• Preparing search index...
  • The search index is not available
lootex - v0.2.0
  • lootex
  • api/endpoints/collection
  • createCollectionEndpoints

Function createCollectionEndpoints

  • createCollectionEndpoints(request): {
        getAccountCollections: ((params: GetAccountCollectionsParams) => Promise<GetAccountCollectionsResponse>);
        getCollection: ((collectionSlug: string) => Promise<LootexCollection>);
        getCollectionDropInfo: ((params: GetCollectionDropInfoParams) => Promise<GetCollectionDropInfoResponse>);
        getCollectionsBySlugs: ((params: {
            slugs: string[];
        }) => Promise<LootexCollection[]>);
        getMantleCollections: ((params: GetMantleCollectionsParams) => Promise<GetMantleCollectionsResponse>);
        getMetadata: ((collectionSlug: string) => Promise<LootexCollectionMetadata>);
        getTradingBoard: ((params: GetCollectionTradingBoardParams) => Promise<GetCollectionTradingBoardResponse>);
        getTraits: ((params: GetCollectionTraitsParams) => Promise<GetCollectionTraitsResponse>);
        import: ((params: ImportCollectionParams) => Promise<LootexCollection>);
        personal: ((params: Partial<GetCollectionsParams>) => Promise<GetCollectionsResponse>);
        updateCollection: ((params: Partial<LootexCollection>) => Promise<LootexCollection>);
        updateVerification: ((params: {
            slug: string;
        }) => Promise<unknown>);
        uploadBanner: ((file: File) => Promise<{
            url: string;
        }>);
        uploadFeatured: ((file: File) => Promise<{
            url: string;
        }>);
        uploadLogo: ((file: File) => Promise<{
            url: string;
        }>);
    }
  • Parameters

    • request: (<ResponseBody>(__namedParameters: RequestOptions) => Promise<ResponseBody>)
        • <ResponseBody>(__namedParameters): Promise<ResponseBody>
        • Type Parameters

          • ResponseBody

          Parameters

          • __namedParameters: RequestOptions

          Returns Promise<ResponseBody>

    Returns {
        getAccountCollections: ((params: GetAccountCollectionsParams) => Promise<GetAccountCollectionsResponse>);
        getCollection: ((collectionSlug: string) => Promise<LootexCollection>);
        getCollectionDropInfo: ((params: GetCollectionDropInfoParams) => Promise<GetCollectionDropInfoResponse>);
        getCollectionsBySlugs: ((params: {
            slugs: string[];
        }) => Promise<LootexCollection[]>);
        getMantleCollections: ((params: GetMantleCollectionsParams) => Promise<GetMantleCollectionsResponse>);
        getMetadata: ((collectionSlug: string) => Promise<LootexCollectionMetadata>);
        getTradingBoard: ((params: GetCollectionTradingBoardParams) => Promise<GetCollectionTradingBoardResponse>);
        getTraits: ((params: GetCollectionTraitsParams) => Promise<GetCollectionTraitsResponse>);
        import: ((params: ImportCollectionParams) => Promise<LootexCollection>);
        personal: ((params: Partial<GetCollectionsParams>) => Promise<GetCollectionsResponse>);
        updateCollection: ((params: Partial<LootexCollection>) => Promise<LootexCollection>);
        updateVerification: ((params: {
            slug: string;
        }) => Promise<unknown>);
        uploadBanner: ((file: File) => Promise<{
            url: string;
        }>);
        uploadFeatured: ((file: File) => Promise<{
            url: string;
        }>);
        uploadLogo: ((file: File) => Promise<{
            url: string;
        }>);
    }

    • getAccountCollections: ((params: GetAccountCollectionsParams) => Promise<GetAccountCollectionsResponse>)
        • (params): Promise<GetAccountCollectionsResponse>
        • Parameters

          • params: GetAccountCollectionsParams

          Returns Promise<GetAccountCollectionsResponse>

    • getCollection: ((collectionSlug: string) => Promise<LootexCollection>)
        • (collectionSlug): Promise<LootexCollection>
        • Parameters

          • collectionSlug: string

          Returns Promise<LootexCollection>

    • getCollectionDropInfo: ((params: GetCollectionDropInfoParams) => Promise<GetCollectionDropInfoResponse>)
        • (params): Promise<GetCollectionDropInfoResponse>
        • Parameters

          • params: GetCollectionDropInfoParams

          Returns Promise<GetCollectionDropInfoResponse>

    • getCollectionsBySlugs: ((params: {
          slugs: string[];
      }) => Promise<LootexCollection[]>)
        • (params): Promise<LootexCollection[]>
        • Parameters

          • params: {
                slugs: string[];
            }
            • slugs: string[]

          Returns Promise<LootexCollection[]>

    • getMantleCollections: ((params: GetMantleCollectionsParams) => Promise<GetMantleCollectionsResponse>)
        • (params): Promise<GetMantleCollectionsResponse>
        • Parameters

          • params: GetMantleCollectionsParams

          Returns Promise<GetMantleCollectionsResponse>

    • getMetadata: ((collectionSlug: string) => Promise<LootexCollectionMetadata>)
        • (collectionSlug): Promise<LootexCollectionMetadata>
        • Parameters

          • collectionSlug: string

          Returns Promise<LootexCollectionMetadata>

    • getTradingBoard: ((params: GetCollectionTradingBoardParams) => Promise<GetCollectionTradingBoardResponse>)
        • (params): Promise<GetCollectionTradingBoardResponse>
        • Parameters

          • params: GetCollectionTradingBoardParams

          Returns Promise<GetCollectionTradingBoardResponse>

    • getTraits: ((params: GetCollectionTraitsParams) => Promise<GetCollectionTraitsResponse>)
        • (params): Promise<GetCollectionTraitsResponse>
        • Parameters

          • params: GetCollectionTraitsParams

          Returns Promise<GetCollectionTraitsResponse>

    • import: ((params: ImportCollectionParams) => Promise<LootexCollection>)
        • (params): Promise<LootexCollection>
        • Parameters

          • params: ImportCollectionParams

          Returns Promise<LootexCollection>

    • personal: ((params: Partial<GetCollectionsParams>) => Promise<GetCollectionsResponse>)
        • (params): Promise<GetCollectionsResponse>
        • Parameters

          • params: Partial<GetCollectionsParams>

          Returns Promise<GetCollectionsResponse>

    • updateCollection: ((params: Partial<LootexCollection>) => Promise<LootexCollection>)
        • (params): Promise<LootexCollection>
        • Parameters

          • params: Partial<LootexCollection>

          Returns Promise<LootexCollection>

    • updateVerification: ((params: {
          slug: string;
      }) => Promise<unknown>)
        • (params): Promise<unknown>
        • Parameters

          • params: {
                slug: string;
            }
            • slug: string

          Returns Promise<unknown>

    • uploadBanner: ((file: File) => Promise<{
          url: string;
      }>)
        • (file): Promise<{
              url: string;
          }>
        • Parameters

          • file: File

          Returns Promise<{
              url: string;
          }>

    • uploadFeatured: ((file: File) => Promise<{
          url: string;
      }>)
        • (file): Promise<{
              url: string;
          }>
        • Parameters

          • file: File

          Returns Promise<{
              url: string;
          }>

    • uploadLogo: ((file: File) => Promise<{
          url: string;
      }>)
        • (file): Promise<{
              url: string;
          }>
        • Parameters

          • file: File

          Returns Promise<{
              url: string;
          }>

    • Defined in packages/lootex/src/api/endpoints/collection.ts:142

Settings

Member Visibility
lootex - v0.2.0
  • Loading...

Generated using TypeDoc