diff --git a/packages/sdk/schema.graphql b/packages/sdk/schema.graphql index 7bfb0575..9598b4da 100644 --- a/packages/sdk/schema.graphql +++ b/packages/sdk/schema.graphql @@ -114,7 +114,7 @@ type Artist implements Node { """ Filter the artist releases """ - filter: ArtistMintedReleasesFilter + filter: ArtistMintedReleasesFilter! = { appearsOn: false, hasCreditSplits: false, sounds: true } """ Pagination parameters @@ -139,7 +139,7 @@ type Artist implements Node { """ Filter the releases to be counted """ - filter: ArtistMintedReleasesFilter + filter: ArtistMintedReleasesFilter! = { appearsOn: false, hasCreditSplits: false, sounds: true } ): Int! """ @@ -449,13 +449,23 @@ input ArtistMintedReleasesCursorFilterArgs { } """ -Filter for artist minted releases +Filter for artist minted releases. Default is only for artist sounds. """ input ArtistMintedReleasesFilter { + """ + Includes songs where that artist has a split + """ + appearsOn: Boolean + """ Filter if the release has credit splits """ hasCreditSplits: Boolean + + """ + Includes songs uploaded by artist + """ + sounds: Boolean } """ @@ -619,13 +629,18 @@ type AuctionUploadStepInfo { """ List of public addresses to allow for auction """ - allowList: [String!]! + allowList: [String!] """ Max mints per wallet for auction """ maxMintsPerWallet: Int + """ + MerkleRoot derived from allowList + """ + merkleRoot: String + """ Price per mint """ @@ -643,13 +658,13 @@ type AuctionUploadStepInfo { } """ -Release rewards upload step input values +Release auction upload step input values """ input AuctionUploadStepInput { """ List of public addresses to allow for auction """ - allowList: [Address!]! + allowList: [Address!] """ Max mints per wallet for auction @@ -2348,6 +2363,16 @@ type Mutation { """ clientCreateEditionUpsert(txHash: String!): Release! + """ + [ARTIST] Upsert release edition based on transaction + """ + clientCreateNewEditionUpsert( + """ + Transaction hash + """ + hash: String! + ): Release! + """ [AUTHENTICATED] Upsert bought NFT entity from the client-side. An alternative to wait until the transaction is completed and automatically acknowledged on background processes """ @@ -2578,6 +2603,16 @@ type Mutation { input: PrepareMintInput! ): Release! + """ + [ARTIST] Prepare release before minting + """ + prepareReleaseForMint( + """ + ReleaseId to be prepared + """ + id: UUID! + ): Void + """ [AUTHENTICATED] Manually register transaction of nft buy """ @@ -3616,11 +3651,6 @@ type PermissionedAuction { """ freeSaleMaxMintsPerWalletOptions: [Int!]! - """ - List of different quantity options for free sale - """ - freeSaleQuantityOptions: [Int!] - """ List of different max mints per wallet quantity options for presale """ @@ -3631,11 +3661,6 @@ type PermissionedAuction { """ presalePriceOptions: [Float!] - """ - List of different quantity options for presale - """ - presaleQuantityOptions: [Int!] - """ List of different eth prices options for public sale """ @@ -3666,11 +3691,6 @@ input PermissionedAuctionInput { """ freeSaleMaxMintsPerWalletOptions: [Int!]! - """ - List of different options of maximum quantity for free sale mint - """ - freeSaleQuantityOptions: [Int!]! - """ List of different max mints per wallet quantity options for presale """ @@ -3681,11 +3701,6 @@ input PermissionedAuctionInput { """ presalePriceOptions: [Float!]! - """ - List of different options of maximum quantity for presale mint - """ - presaleQuantityOptions: [Int!]! - """ List of different eth prices options for public sale """ @@ -4298,7 +4313,7 @@ type Query { Pagination parameters """ pagination: CursorConnectionArgs! = { first: 10, sort: DESC } - ): ReleaseConnection! + ): ReleaseConnection! @deprecated(reason: "Use Artist.mintedReleasesPaginated instead") """ [PUBLIC] Current UNIX date to test caching @@ -4670,11 +4685,6 @@ type RangeBoundAuction { """ freeSaleMaxMintsPerWalletOptions: [Int!]! - """ - List of different quantity options for free sale - """ - freeSaleQuantityOptions: [Int!] - """ List of different options of maximum quantity for public sale """ @@ -4700,11 +4710,6 @@ type RangeBoundAuction { """ presalePriceOptions: [Float!] - """ - List of different quantity options for presale - """ - presaleQuantityOptions: [Int!] - """ List of different eth prices options for public sale """ @@ -4730,11 +4735,6 @@ input RangeBoundAuctionInput { """ freeSaleMaxMintsPerWalletOptions: [Int!]! - """ - List of different options of maximum quantity for free sale mint - """ - freeSaleQuantityOptions: [Int!]! - """ List of different options of maximum quantity for public sale """ @@ -4760,11 +4760,6 @@ input RangeBoundAuctionInput { """ presalePriceOptions: [Float!]! - """ - List of different options of maximum quantity for presale mint - """ - presaleQuantityOptions: [Int!]! - """ List of different eth prices options for public sale """ @@ -4875,11 +4870,6 @@ type Release implements Node { """ finalSaleScheduleEndTimestamp: Timestamp - """ - Public address of address to receive the transactions funds - """ - fundingRecipient: String! - """ Genre of Release """ diff --git a/packages/sdk/src/api/graphql/gql.ts b/packages/sdk/src/api/graphql/gql.ts index 2be3146d..83ba0d7e 100644 --- a/packages/sdk/src/api/graphql/gql.ts +++ b/packages/sdk/src/api/graphql/gql.ts @@ -102,13 +102,13 @@ export type ArtistcollectorsArgs = { /** Artist Entity */ export type ArtistmintedReleasesPaginatedArgs = { - filter?: InputMaybe + filter?: ArtistMintedReleasesFilter pagination?: CursorConnectionArgs } /** Artist Entity */ export type ArtistnumMintedReleasesArgs = { - filter?: InputMaybe + filter?: ArtistMintedReleasesFilter } /** Data for Artist minting auction process */ @@ -249,10 +249,14 @@ export type ArtistMintedReleasesCursorFilterArgs = { sounds?: InputMaybe } -/** Filter for artist minted releases */ +/** Filter for artist minted releases. Default is only for artist sounds. */ export type ArtistMintedReleasesFilter = { + /** Includes songs where that artist has a split */ + appearsOn?: InputMaybe /** Filter if the release has credit splits */ hasCreditSplits?: InputMaybe + /** Includes songs uploaded by artist */ + sounds?: InputMaybe } /** Artist minting release options */ @@ -340,9 +344,11 @@ export type AuctionType = typeof AuctionType[keyof typeof AuctionType] /** Release info upload step info */ export type AuctionUploadStepInfo = { /** List of public addresses to allow for auction */ - allowList: Array + allowList?: Maybe> /** Max mints per wallet for auction */ maxMintsPerWallet?: Maybe + /** MerkleRoot derived from allowList */ + merkleRoot?: Maybe /** Price per mint */ price: Scalars['Float'] /** Max supply for auction */ @@ -351,10 +357,10 @@ export type AuctionUploadStepInfo = { startTime: Scalars['Int'] } -/** Release rewards upload step input values */ +/** Release auction upload step input values */ export type AuctionUploadStepInput = { /** List of public addresses to allow for auction */ - allowList: Array + allowList?: InputMaybe> /** Max mints per wallet for auction */ maxMintsPerWallet?: InputMaybe /** Price per mint */ @@ -1194,6 +1200,8 @@ export type Mutation = { changeRoleForUser: UserRoles /** [ARTIST] Upsert release mint edition creation from the client-side. An alternative to wait until the transaction is completed and automatically acknowledged on background processes. */ clientCreateEditionUpsert: Release + /** [ARTIST] Upsert release edition based on transaction */ + clientCreateNewEditionUpsert: Release /** [AUTHENTICATED] Upsert bought NFT entity from the client-side. An alternative to wait until the transaction is completed and automatically acknowledged on background processes */ clientNftUpsert?: Maybe /** [AUTHENTICATED] Create artist entity for authenticated user, User has to be allowed to create artist profile beforehand */ @@ -1240,6 +1248,8 @@ export type Mutation = { moveShelfUp: Array /** [ARTIST] Prepare release to be minted, pinning media files */ prepareMint: Release + /** [ARTIST] Prepare release before minting */ + prepareReleaseForMint?: Maybe /** [AUTHENTICATED] Manually register transaction of nft buy */ registerBuyEditionTx: Transaction /** [ARTIST] Manually register transaction of artist contract creation */ @@ -1397,6 +1407,11 @@ export type MutationclientCreateEditionUpsertArgs = { txHash: Scalars['String'] } +/** Mutations */ +export type MutationclientCreateNewEditionUpsertArgs = { + hash: Scalars['String'] +} + /** Mutations */ export type MutationclientNftUpsertArgs = { txHash: Scalars['String'] @@ -1511,6 +1526,11 @@ export type MutationprepareMintArgs = { input: PrepareMintInput } +/** Mutations */ +export type MutationprepareReleaseForMintArgs = { + id: Scalars['UUID'] +} + /** Mutations */ export type MutationregisterBuyEditionTxArgs = { hash: Scalars['String'] @@ -1985,14 +2005,10 @@ export type PageInfo = { export type PermissionedAuction = { /** List of different max mints per wallet quantity options for free sale */ freeSaleMaxMintsPerWalletOptions: Array - /** List of different quantity options for free sale */ - freeSaleQuantityOptions?: Maybe> /** List of different max mints per wallet quantity options for presale */ presaleMaxMintsPerWalletOptions: Array /** List of different eth prices options for presale */ presalePriceOptions?: Maybe> - /** List of different quantity options for presale */ - presaleQuantityOptions?: Maybe> /** List of different eth prices options for public sale */ priceOptions: Array /** List of different max mints per wallet quantity options for public sale */ @@ -2007,14 +2023,10 @@ export type PermissionedAuction = { export type PermissionedAuctionInput = { /** List of different max mints per wallet quantity options for free sale */ freeSaleMaxMintsPerWalletOptions: Array - /** List of different options of maximum quantity for free sale mint */ - freeSaleQuantityOptions: Array /** List of different max mints per wallet quantity options for presale */ presaleMaxMintsPerWalletOptions: Array /** List of different eth prices options for presales */ presalePriceOptions: Array - /** List of different options of maximum quantity for presale mint */ - presaleQuantityOptions: Array /** List of different eth prices options for public sale */ priceOptions: Array /** List of different max mints per wallet quantity options for public sale */ @@ -2236,7 +2248,10 @@ export type Query = { merkleTreeProof?: Maybe /** [PUBLIC] Get minted release by Artist sound handle and release title slug */ mintedRelease?: Maybe - /** [PUBLIC] Get all minted releases of an artist */ + /** + * [PUBLIC] Get all minted releases of an artist + * @deprecated Use Artist.mintedReleasesPaginated instead + */ mintedReleases: ReleaseConnection /** [PUBLIC] Current UNIX date to test caching */ now: Scalars['Int'] @@ -2594,8 +2609,6 @@ export type QueueStatusSubscriptionInput = { export type RangeBoundAuction = { /** List of different max mints per wallet quantity options for free sale */ freeSaleMaxMintsPerWalletOptions: Array - /** List of different quantity options for free sale */ - freeSaleQuantityOptions?: Maybe> /** List of different options of maximum quantity for public sale */ maxOptions: Array /** List of different options of minimum quantity for public sale */ @@ -2606,8 +2619,6 @@ export type RangeBoundAuction = { presaleMaxMintsPerWalletOptions: Array /** List of different eth prices options for presale */ presalePriceOptions?: Maybe> - /** List of different quantity options for presale */ - presaleQuantityOptions?: Maybe> /** List of different eth prices options for public sale */ priceOptions: Array /** List of different max mints per wallet quantity options for public sale */ @@ -2620,8 +2631,6 @@ export type RangeBoundAuction = { export type RangeBoundAuctionInput = { /** List of different max mints per wallet quantity options for free sale */ freeSaleMaxMintsPerWalletOptions: Array - /** List of different options of maximum quantity for free sale mint */ - freeSaleQuantityOptions: Array /** List of different options of maximum quantity for public sale */ maxOptions: Array /** List of different options of minimum quantity for public sale */ @@ -2632,8 +2641,6 @@ export type RangeBoundAuctionInput = { presaleMaxMintsPerWalletOptions: Array /** List of different eth prices options for presales */ presalePriceOptions: Array - /** List of different options of maximum quantity for presale mint */ - presaleQuantityOptions: Array /** List of different eth prices options for public sale */ priceOptions: Array /** List of different max mints per wallet quantity options for public sale */ @@ -2683,8 +2690,6 @@ export type Release = Node & { finalSaleScheduleEndTime?: Maybe /** Last sale schedule end time as number of milliseconds since the ECMAScript epoch. */ finalSaleScheduleEndTimestamp?: Maybe - /** Public address of address to receive the transactions funds */ - fundingRecipient: Scalars['String'] /** Genre of Release */ genre: Genre /** Special golden egg image */ diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 08516fd5..0eddff64 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -2,4 +2,5 @@ export { SoundClient } from './client' export * as Errors from './errors' export * from './types' -export { ApiEndpointsMap, ApiEnvironments } from './utils/constants' +export type { ApiEnvironments } from './utils/constants' +export { ApiEndpointsMap } from './utils/constants'