{"version":3,"file":"index.cjs","sources":["../../../../packages/sdk/types/unique-types.ts","../../../../packages/sdk/types/unique-fields.ts","../../../../packages/sdk/types/polkadot-types.ts"],"sourcesContent":["// eslint-disable-next-line  @typescript-eslint/no-explicit-any\nexport type AnyObject = Record<string, any>;\n\nexport enum CollectionSchemaVersion {\n  ImageURL = 'ImageURL',\n  Unique = 'Unique',\n}\n\nexport enum TokenPropertiesKeys {\n  constData = '_old_constData',\n}\n\nexport interface TokenPropertyPermissions {\n  mutable?: boolean;\n  collectionAdmin?: boolean;\n  tokenOwner?: boolean;\n}\n\nexport interface TokenProperties {\n  constData?: AnyObject;\n}\n\nexport interface TokenInfo {\n  id: number;\n  collectionId: number;\n  url: string | null;\n  owner: string | null;\n  properties: TokenProperties;\n}\n\nexport type TokenPayload =\n  | {\n      // eslint-disable-next-line  @typescript-eslint/no-explicit-any\n      NFT: any;\n    }\n  | {\n      // eslint-disable-next-line  @typescript-eslint/no-explicit-any\n      Fungible: any;\n    }\n  | {\n      // eslint-disable-next-line  @typescript-eslint/no-explicit-any\n      ReFungible: any;\n    };\n","export enum CollectionFieldTypes {\n  TEXT = 'text',\n  SELECT = 'select',\n}\n\nexport interface CollectionFieldBase {\n  id: number;\n  name: string;\n  type: CollectionFieldTypes;\n  required?: boolean;\n}\n\nexport interface CollectionTextField extends CollectionFieldBase {\n  type: CollectionFieldTypes.TEXT;\n}\n\nexport interface CollectionSelectField extends CollectionFieldBase {\n  type: CollectionFieldTypes.SELECT;\n  items: string[];\n  multi?: boolean;\n}\n\nexport type CollectionField = CollectionTextField | CollectionSelectField;\n\nexport type CollectionFields = Array<CollectionField>;\n","import { HexString } from '@polkadot/util/types';\n\nexport enum SignatureType {\n  Sr25519 = 'sr25519',\n  Ed25519 = 'ed25519',\n  Ecdsa = 'ecdsa',\n  Ethereum = 'ethereum',\n}\n\nexport interface SignResult {\n  signatureType: SignatureType;\n  signature: HexString;\n}\n\nexport { SignerPayloadJSON, SignerPayloadRaw } from '@polkadot/types/types';\nexport { AnyJson, ISubmittableResult } from '@polkadot/types/types';\nexport { HexString } from '@polkadot/util/types';\n"],"names":[],"mappings":";;;;;;;AAAU,IAAC,uBAAuB,mBAAmB,CAAC,CAAC,wBAAwB,KAAK;AACpF,EAAE,wBAAwB,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;AACpD,EAAE,wBAAwB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAChD,EAAE,OAAO,wBAAwB,CAAC;AAClC,CAAC,EAAE,uBAAuB,IAAI,EAAE,EAAE;AACxB,IAAC,mBAAmB,mBAAmB,CAAC,CAAC,oBAAoB,KAAK;AAC5E,EAAE,oBAAoB,CAAC,WAAW,CAAC,GAAG,gBAAgB,CAAC;AACvD,EAAE,OAAO,oBAAoB,CAAC;AAC9B,CAAC,EAAE,mBAAmB,IAAI,EAAE;;ACRlB,IAAC,oBAAoB,mBAAmB,CAAC,CAAC,qBAAqB,KAAK;AAC9E,EAAE,qBAAqB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AACzC,EAAE,qBAAqB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAC7C,EAAE,OAAO,qBAAqB,CAAC;AAC/B,CAAC,EAAE,oBAAoB,IAAI,EAAE;;ACJnB,IAAC,aAAa,mBAAmB,CAAC,CAAC,cAAc,KAAK;AAChE,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AACxC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AACxC,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AACpC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;AAC1C,EAAE,OAAO,cAAc,CAAC;AACxB,CAAC,EAAE,aAAa,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;"}