@commercelayer/provisioning-sdk 3.0.0-beta.0 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -9
- package/lib/{api-BY0jb79k.d.cts → api-C4jp_9vb.d.cts} +489 -480
- package/lib/{api-e4p3q-SB.d.ts → api-C_E9e1ea.d.ts} +489 -480
- package/lib/api.cjs +23 -23
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +13 -13
- package/lib/binding.cjs +3 -3
- package/lib/binding.d.cts +2 -2
- package/lib/binding.d.ts +2 -2
- package/lib/binding.js +2 -2
- package/lib/bundle.cjs +17 -17
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +15 -15
- package/lib/{chunk-63TTSE4U.cjs → chunk-3ILNEP2F.cjs} +26 -26
- package/lib/{chunk-63TTSE4U.cjs.map → chunk-3ILNEP2F.cjs.map} +1 -1
- package/lib/{chunk-C6AOOHOR.cjs → chunk-3NDVX4SE.cjs} +4 -4
- package/lib/{chunk-C6AOOHOR.cjs.map → chunk-3NDVX4SE.cjs.map} +1 -1
- package/lib/{chunk-DTD2FIJ3.js → chunk-3PJNJ7B6.js} +3 -3
- package/lib/{chunk-DTD2FIJ3.js.map → chunk-3PJNJ7B6.js.map} +1 -1
- package/lib/{chunk-ELYBYKRM.cjs → chunk-6FB54J7W.cjs} +4 -4
- package/lib/chunk-6FB54J7W.cjs.map +1 -0
- package/lib/{chunk-5KN7B3T2.cjs → chunk-6MXIGF2G.cjs} +10 -10
- package/lib/{chunk-5KN7B3T2.cjs.map → chunk-6MXIGF2G.cjs.map} +1 -1
- package/lib/{chunk-YYHZPR4Z.js → chunk-7YEOUGXO.js} +3 -3
- package/lib/{chunk-YYHZPR4Z.js.map → chunk-7YEOUGXO.js.map} +1 -1
- package/lib/{chunk-E2ERI2EX.js → chunk-CWXGTX7W.js} +4 -4
- package/lib/{chunk-E2ERI2EX.js.map → chunk-CWXGTX7W.js.map} +1 -1
- package/lib/{chunk-HAZ53WDW.cjs → chunk-DYMRH6LP.cjs} +4 -4
- package/lib/{chunk-HAZ53WDW.cjs.map → chunk-DYMRH6LP.cjs.map} +1 -1
- package/lib/{chunk-FWF7HBWB.js → chunk-ECGUWRRG.js} +3 -3
- package/lib/{chunk-FWF7HBWB.js.map → chunk-ECGUWRRG.js.map} +1 -1
- package/lib/{chunk-F2RLD5SN.cjs → chunk-EVDEBFHZ.cjs} +13 -8
- package/lib/chunk-EVDEBFHZ.cjs.map +1 -0
- package/lib/{chunk-BWDFMGX6.cjs → chunk-FMHTNUZ4.cjs} +4 -4
- package/lib/{chunk-BWDFMGX6.cjs.map → chunk-FMHTNUZ4.cjs.map} +1 -1
- package/lib/{chunk-HOL7SMFN.cjs → chunk-FRLV5YFL.cjs} +4 -4
- package/lib/{chunk-HOL7SMFN.cjs.map → chunk-FRLV5YFL.cjs.map} +1 -1
- package/lib/{chunk-UYATAIX7.js → chunk-G4JBHI2H.js} +3 -3
- package/lib/{chunk-UYATAIX7.js.map → chunk-G4JBHI2H.js.map} +1 -1
- package/lib/{chunk-4Z4U45XQ.js → chunk-GHXKZEH7.js} +8 -3
- package/lib/chunk-GHXKZEH7.js.map +1 -0
- package/lib/{chunk-35GNS3WW.js → chunk-I4LPOTDO.js} +3 -3
- package/lib/{chunk-35GNS3WW.js.map → chunk-I4LPOTDO.js.map} +1 -1
- package/lib/{chunk-VAL4CE5R.js → chunk-IRFPCJTG.js} +3 -3
- package/lib/{chunk-VAL4CE5R.js.map → chunk-IRFPCJTG.js.map} +1 -1
- package/lib/{chunk-3XLKYXM6.cjs → chunk-KO4FQ4V2.cjs} +4 -4
- package/lib/{chunk-3XLKYXM6.cjs.map → chunk-KO4FQ4V2.cjs.map} +1 -1
- package/lib/{chunk-U2CAAK2J.js → chunk-KT6LCJJQ.js} +3 -3
- package/lib/{chunk-U2CAAK2J.js.map → chunk-KT6LCJJQ.js.map} +1 -1
- package/lib/{chunk-FOU52N6P.js → chunk-LTIWXCVE.js} +3 -3
- package/lib/{chunk-FOU52N6P.js.map → chunk-LTIWXCVE.js.map} +1 -1
- package/lib/{chunk-W6XILXYS.cjs → chunk-MHV7FMLE.cjs} +4 -4
- package/lib/{chunk-W6XILXYS.cjs.map → chunk-MHV7FMLE.cjs.map} +1 -1
- package/lib/{chunk-Z4IAVXOO.cjs → chunk-NDKGLF4B.cjs} +4 -4
- package/lib/{chunk-Z4IAVXOO.cjs.map → chunk-NDKGLF4B.cjs.map} +1 -1
- package/lib/{chunk-CFU5DNH2.cjs → chunk-OROPOAHK.cjs} +4 -4
- package/lib/{chunk-CFU5DNH2.cjs.map → chunk-OROPOAHK.cjs.map} +1 -1
- package/lib/{chunk-UB3WPGDV.js → chunk-SQLX22US.js} +3 -3
- package/lib/chunk-SQLX22US.js.map +1 -0
- package/lib/{chunk-3ELZDTFF.js → chunk-STPXKF53.js} +4 -4
- package/lib/{chunk-3ELZDTFF.js.map → chunk-STPXKF53.js.map} +1 -1
- package/lib/{chunk-RDLVNJEW.js → chunk-T2U6MUX4.js} +3 -3
- package/lib/{chunk-RDLVNJEW.js.map → chunk-T2U6MUX4.js.map} +1 -1
- package/lib/{chunk-CLOSZJSZ.cjs → chunk-TXONK7R5.cjs} +4 -4
- package/lib/{chunk-CLOSZJSZ.cjs.map → chunk-TXONK7R5.cjs.map} +1 -1
- package/lib/{chunk-WRVLCJQZ.cjs → chunk-TY46WNR6.cjs} +8 -8
- package/lib/{chunk-WRVLCJQZ.cjs.map → chunk-TY46WNR6.cjs.map} +1 -1
- package/lib/{chunk-7OPCEEJV.cjs → chunk-UILXNOZE.cjs} +4 -4
- package/lib/{chunk-7OPCEEJV.cjs.map → chunk-UILXNOZE.cjs.map} +1 -1
- package/lib/{chunk-GES5UXTI.js → chunk-WMUY7Z2Q.js} +3 -3
- package/lib/{chunk-GES5UXTI.js.map → chunk-WMUY7Z2Q.js.map} +1 -1
- package/lib/{chunk-3FP4NVLD.cjs → chunk-XS6QLJHG.cjs} +3 -3
- package/lib/chunk-XS6QLJHG.cjs.map +1 -0
- package/lib/{chunk-6I5KGZAU.js → chunk-YUNEDDTL.js} +14 -14
- package/lib/{chunk-6I5KGZAU.js.map → chunk-YUNEDDTL.js.map} +1 -1
- package/lib/{chunk-QRZGS4TB.js → chunk-ZWZHZ4SU.js} +3 -3
- package/lib/chunk-ZWZHZ4SU.js.map +1 -0
- package/lib/commercelayer.cjs +10 -10
- package/lib/commercelayer.d.cts +1 -1
- package/lib/commercelayer.d.ts +1 -1
- package/lib/commercelayer.js +4 -4
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +22 -22
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +17 -17
- package/lib/index.js.map +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/resources/api_credentials.cjs +5 -5
- package/lib/resources/api_credentials.d.cts +2 -2
- package/lib/resources/api_credentials.d.ts +1 -1
- package/lib/resources/api_credentials.js +4 -4
- package/lib/resources/application_memberships.cjs +5 -5
- package/lib/resources/application_memberships.d.cts +2 -2
- package/lib/resources/application_memberships.d.ts +1 -1
- package/lib/resources/application_memberships.js +4 -4
- package/lib/resources/identity_providers.cjs +5 -5
- package/lib/resources/identity_providers.d.cts +2 -2
- package/lib/resources/identity_providers.d.ts +1 -1
- package/lib/resources/identity_providers.js +4 -4
- package/lib/resources/membership_profiles.cjs +5 -5
- package/lib/resources/membership_profiles.d.cts +2 -2
- package/lib/resources/membership_profiles.d.ts +1 -1
- package/lib/resources/membership_profiles.js +4 -4
- package/lib/resources/memberships.cjs +5 -5
- package/lib/resources/memberships.d.cts +2 -2
- package/lib/resources/memberships.d.ts +1 -1
- package/lib/resources/memberships.js +4 -4
- package/lib/resources/organizations.cjs +5 -5
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +4 -4
- package/lib/resources/permissions.cjs +5 -5
- package/lib/resources/permissions.d.cts +2 -2
- package/lib/resources/permissions.d.ts +1 -1
- package/lib/resources/permissions.js +4 -4
- package/lib/resources/roles.cjs +5 -5
- package/lib/resources/roles.d.cts +2 -2
- package/lib/resources/roles.d.ts +1 -1
- package/lib/resources/roles.js +4 -4
- package/lib/resources/users.cjs +5 -5
- package/lib/resources/users.d.cts +2 -2
- package/lib/resources/users.d.ts +1 -1
- package/lib/resources/users.js +4 -4
- package/lib/resources/versions.cjs +5 -5
- package/lib/resources/versions.d.cts +2 -2
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/versions.js +4 -4
- package/lib/static.cjs +6 -6
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +5 -5
- package/lib/version.cjs +4 -4
- package/lib/version.js +1 -1
- package/package.json +10 -11
- package/lib/chunk-3FP4NVLD.cjs.map +0 -1
- package/lib/chunk-4Z4U45XQ.js.map +0 -1
- package/lib/chunk-ELYBYKRM.cjs.map +0 -1
- package/lib/chunk-F2RLD5SN.cjs.map +0 -1
- package/lib/chunk-QRZGS4TB.js.map +0 -1
- package/lib/chunk-UB3WPGDV.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../gen/resources/identity_providers.ts"],"names":[],"mappings":";;;AAgOA,IAAM,iBAAA,GAAN,MAAM,kBAAA,SAA0B,WAAA,CAA8B;AAAA,EAC5D,OAAgB,IAAA,GAA6B,oBAAA;AAAA,EAE7C,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAkB,IAAA,EAAK;AAAA,MAC5C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,M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AAA,GAAK,EAAA,CAAG,EAAA,EAAI,IAAA,EAAM,kBAAA,CAAkB,IAAA,EAAM,OAAA,EAAS,IAAA,EAAK;AAAA,MACvF,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,mBAAmB,QAAA,EAA6C;AAC9D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,kBAAA,CAAkB,IAAA;AAAA,EAC9D;AAAA,EAEA,aAAa,EAAA,EAAqD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAA0C,EAAE,CAAA;AAAA,EAC3D;AAAA,EAEA,sBAAsB,GAAA,EAAsC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA2C,GAAG,GAAG,CAAA;AAAA,EAChE;AAAA,EAEA,IAAA,GAA6B;AAC3B,IAAA,OAAO,kBAAA,CAAkB,IAAA;AAAA,EAC3B;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,iBAAA,EAAkB;AACvC,IAAO,0BAAA,GAAQ","file":"chunk-GES5UXTI.js","sourcesContent":["import type { QueryParamsRetrieve } from '@runtime/query'\nimport type {\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\n\nimport type { User } from './users'\n\ntype IdentityProviderType = 'identity_providers'\ntype IdentityProviderRel = ResourceRel & { type: IdentityProviderType }\n\nexport type IdentityProviderSort = Pick<\n IdentityProvider,\n | 'id'\n | 'name'\n | 'client_id'\n | 'client_secret'\n | 'issuer'\n | 'status'\n | 'domains'\n | 'token_url'\n | 'authorize_url'\n | 'jwks_url'\n | 'txt_record'\n | 'organization'\n | 'disabled_at'\n> &\n ResourceSort\n// export type IdentityProviderFilter = Pick<IdentityProvider, 'id' | 'name' | 'client_id' | 'client_secret' | 'issuer' | 'status' | 'domains' | 'token_url' | 'authorize_url' | 'jwks_url' | 'txt_record' | 'organization' | 'disabled_at'> & ResourceFilter\n\n/**\n * The Identity provider object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/identity_providers endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/identity_providers/object\n */\ninterface IdentityProvider extends Resource {\n readonly type: IdentityProviderType\n\n /**\n * The name of the Identity provider.\n * @example ```\"Org auth0\"```\n */\n name: string\n /**\n * The client ID used for the auth workflow.\n * @example ```\"a6CDk5v1ZV99GrtOcfYVEZRnDDt\"```\n */\n client_id: string\n /**\n * The client secret used for the auth workflow.\n * @example ```\"s6CD55v1ZV99ArtOcfYVEZRnDDf\"```\n */\n client_secret: string\n /**\n * The issuer used for the auth workflow.\n * @example ```\"https://dev.auth987.com/\"```\n */\n issuer: string\n /**\n * The identity provider status. One of `pending` (default), `verified` or `error`.\n * @example ```\"pending\"```\n */\n status: 'pending' | 'verified' | 'error'\n /**\n * The list of domains in scope (comma-separated).\n * @example ```\"dev.auth987.com,stg.auth987.com\"```\n */\n domains: string\n /**\n * The token URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/oauth/token\"```\n */\n token_url: string\n /**\n * The authorize URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/authorize\"```\n */\n authorize_url: string\n /**\n * The JWKS key store URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/.well-known/jwks.json\"```\n */\n jwks_url: string\n /**\n * The TXT record value used to check the domain.\n * @example ```\"cl-verification=a6CDk5v\"```\n */\n txt_record?: string | null\n /**\n * The organization identifier for authorize params.\n * @example ```\"org_76gsfs5gd\"```\n */\n organization?: string | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n\n user?: User | null\n}\n\ninterface IdentityProviderCreate extends ResourceCreate {\n /**\n * The name of the Identity provider.\n * @example ```\"Org auth0\"```\n */\n name: string\n /**\n * The client ID used for the auth workflow.\n * @example ```\"a6CDk5v1ZV99GrtOcfYVEZRnDDt\"```\n */\n client_id: string\n /**\n * The client secret used for the auth workflow.\n * @example ```\"s6CD55v1ZV99ArtOcfYVEZRnDDf\"```\n */\n client_secret: string\n /**\n * The issuer used for the auth workflow.\n * @example ```\"https://dev.auth987.com/\"```\n */\n issuer: string\n /**\n * The list of domains in scope (comma-separated).\n * @example ```\"dev.auth987.com,stg.auth987.com\"```\n */\n domains: string\n /**\n * The token URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/oauth/token\"```\n */\n token_url: string\n /**\n * The authorize URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/authorize\"```\n */\n authorize_url: string\n /**\n * The JWKS key store URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/.well-known/jwks.json\"```\n */\n jwks_url: string\n /**\n * The organization identifier for authorize params.\n * @example ```\"org_76gsfs5gd\"```\n */\n organization?: string | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n}\n\ninterface IdentityProviderUpdate extends ResourceUpdate {\n /**\n * The name of the Identity provider.\n * @example ```\"Org auth0\"```\n */\n name?: string | null\n /**\n * The client ID used for the auth workflow.\n * @example ```\"a6CDk5v1ZV99GrtOcfYVEZRnDDt\"```\n */\n client_id?: string | null\n /**\n * The client secret used for the auth workflow.\n * @example ```\"s6CD55v1ZV99ArtOcfYVEZRnDDf\"```\n */\n client_secret?: string | null\n /**\n * The issuer used for the auth workflow.\n * @example ```\"https://dev.auth987.com/\"```\n */\n issuer?: string | null\n /**\n * The list of domains in scope (comma-separated).\n * @example ```\"dev.auth987.com,stg.auth987.com\"```\n */\n domains?: string | null\n /**\n * The token URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/oauth/token\"```\n */\n token_url?: string | null\n /**\n * The authorize URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/authorize\"```\n */\n authorize_url?: string | null\n /**\n * The JWKS key store URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/.well-known/jwks.json\"```\n */\n jwks_url?: string | null\n /**\n * The organization identifier for authorize params.\n * @example ```\"org_76gsfs5gd\"```\n */\n organization?: string | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n}\n\nclass IdentityProviders extends ApiResource<IdentityProvider> {\n static readonly TYPE: IdentityProviderType = 'identity_providers' as const\n\n async create(\n resource: IdentityProviderCreate,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.create<IdentityProviderCreate, IdentityProvider>(\n { ...resource, type: IdentityProviders.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: IdentityProviderUpdate,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.update<IdentityProviderUpdate, IdentityProvider>(\n { ...resource, type: IdentityProviders.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: IdentityProviders.TYPE } : id, options)\n }\n\n async user(\n identityProviderId: string | IdentityProvider,\n params?: QueryParamsRetrieve<User>,\n options?: ResourcesConfig,\n ): Promise<User> {\n const _identityProviderId = (identityProviderId as IdentityProvider).id || (identityProviderId as string)\n return this.resources.fetch<User>(\n { type: 'users' },\n `identity_providers/${_identityProviderId}/user`,\n params,\n options,\n ) as unknown as User\n }\n\n async _disable(\n id: string | IdentityProvider,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.update<IdentityProviderUpdate, IdentityProvider>(\n { id: typeof id === 'string' ? id : id.id, type: IdentityProviders.TYPE, _disable: true },\n params,\n options,\n )\n }\n\n async _enable(\n id: string | IdentityProvider,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.update<IdentityProviderUpdate, IdentityProvider>(\n { id: typeof id === 'string' ? id : id.id, type: IdentityProviders.TYPE, _enable: true },\n params,\n options,\n )\n }\n\n isIdentityProvider(resource: any): resource is IdentityProvider {\n return resource.type && resource.type === IdentityProviders.TYPE\n }\n\n relationship(id: string | ResourceId | null): IdentityProviderRel {\n return super.relationshipOneToOne<IdentityProviderRel>(id)\n }\n\n relationshipToMany(...ids: string[]): IdentityProviderRel[] {\n return super.relationshipOneToMany<IdentityProviderRel>(...ids)\n }\n\n type(): IdentityProviderType {\n return IdentityProviders.TYPE\n }\n}\n\nconst instance = new IdentityProviders()\nexport default instance\n\nexport type {\n IdentityProvider,\n IdentityProviderCreate,\n IdentityProviders,\n IdentityProviderType,\n IdentityProviderUpdate,\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../gen/resources/identity_providers.ts"],"names":[],"mappings":";;;AAgOA,IAAM,iBAAA,GAAN,MAAM,kBAAA,SAA0B,WAAA,CAA8B;AAAA,EAC5D,OAAgB,IAAA,GAA6B,oBAAA;AAAA,EAE7C,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAkB,IAAA,EAAK;AAAA,MAC5C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAkB,IAAA,EAAK;AAAA,MAC5C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAA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,CAAkB,IAAA;AAAA,EAC9D;AAAA,EAEA,aAAa,EAAA,EAAqD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAA0C,EAAE,CAAA;AAAA,EAC3D;AAAA,EAEA,sBAAsB,GAAA,EAAsC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA2C,GAAG,GAAG,CAAA;AAAA,EAChE;AAAA,EAEA,IAAA,GAA6B;AAC3B,IAAA,OAAO,kBAAA,CAAkB,IAAA;AAAA,EAC3B;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,iBAAA,EAAkB;AACvC,IAAO,0BAAA,GAAQ","file":"chunk-WMUY7Z2Q.js","sourcesContent":["import type { QueryParamsRetrieve } from '@runtime/query'\nimport type {\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\n\nimport type { User } from './users'\n\ntype IdentityProviderType = 'identity_providers'\ntype IdentityProviderRel = ResourceRel & { type: IdentityProviderType }\n\nexport type IdentityProviderSort = Pick<\n IdentityProvider,\n | 'id'\n | 'name'\n | 'client_id'\n | 'client_secret'\n | 'issuer'\n | 'status'\n | 'domains'\n | 'token_url'\n | 'authorize_url'\n | 'jwks_url'\n | 'txt_record'\n | 'organization'\n | 'disabled_at'\n> &\n ResourceSort\n// export type IdentityProviderFilter = Pick<IdentityProvider, 'id' | 'name' | 'client_id' | 'client_secret' | 'issuer' | 'status' | 'domains' | 'token_url' | 'authorize_url' | 'jwks_url' | 'txt_record' | 'organization' | 'disabled_at'> & ResourceFilter\n\n/**\n * The Identity provider object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/identity_providers endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/identity_providers/object\n */\ninterface IdentityProvider extends Resource {\n readonly type: IdentityProviderType\n\n /**\n * The name of the Identity provider.\n * @example ```\"Org auth0\"```\n */\n name: string\n /**\n * The client ID used for the auth workflow.\n * @example ```\"a6CDk5v1ZV99GrtOcfYVEZRnDDt\"```\n */\n client_id: string\n /**\n * The client secret used for the auth workflow.\n * @example ```\"s6CD55v1ZV99ArtOcfYVEZRnDDf\"```\n */\n client_secret: string\n /**\n * The issuer used for the auth workflow.\n * @example ```\"https://dev.auth987.com/\"```\n */\n issuer: string\n /**\n * The identity provider status. One of `pending` (default), `verified` or `error`.\n * @example ```\"pending\"```\n */\n status: 'pending' | 'verified' | 'error'\n /**\n * The list of domains in scope (comma-separated).\n * @example ```\"dev.auth987.com,stg.auth987.com\"```\n */\n domains: string\n /**\n * The token URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/oauth/token\"```\n */\n token_url: string\n /**\n * The authorize URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/authorize\"```\n */\n authorize_url: string\n /**\n * The JWKS key store URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/.well-known/jwks.json\"```\n */\n jwks_url: string\n /**\n * The TXT record value used to check the domain.\n * @example ```\"cl-verification=a6CDk5v\"```\n */\n txt_record?: string | null\n /**\n * The organization identifier for authorize params.\n * @example ```\"org_76gsfs5gd\"```\n */\n organization?: string | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n\n user?: User | null\n}\n\ninterface IdentityProviderCreate extends ResourceCreate {\n /**\n * The name of the Identity provider.\n * @example ```\"Org auth0\"```\n */\n name: string\n /**\n * The client ID used for the auth workflow.\n * @example ```\"a6CDk5v1ZV99GrtOcfYVEZRnDDt\"```\n */\n client_id: string\n /**\n * The client secret used for the auth workflow.\n * @example ```\"s6CD55v1ZV99ArtOcfYVEZRnDDf\"```\n */\n client_secret: string\n /**\n * The issuer used for the auth workflow.\n * @example ```\"https://dev.auth987.com/\"```\n */\n issuer: string\n /**\n * The list of domains in scope (comma-separated).\n * @example ```\"dev.auth987.com,stg.auth987.com\"```\n */\n domains: string\n /**\n * The token URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/oauth/token\"```\n */\n token_url: string\n /**\n * The authorize URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/authorize\"```\n */\n authorize_url: string\n /**\n * The JWKS key store URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/.well-known/jwks.json\"```\n */\n jwks_url: string\n /**\n * The organization identifier for authorize params.\n * @example ```\"org_76gsfs5gd\"```\n */\n organization?: string | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n}\n\ninterface IdentityProviderUpdate extends ResourceUpdate {\n /**\n * The name of the Identity provider.\n * @example ```\"Org auth0\"```\n */\n name?: string | null\n /**\n * The client ID used for the auth workflow.\n * @example ```\"a6CDk5v1ZV99GrtOcfYVEZRnDDt\"```\n */\n client_id?: string | null\n /**\n * The client secret used for the auth workflow.\n * @example ```\"s6CD55v1ZV99ArtOcfYVEZRnDDf\"```\n */\n client_secret?: string | null\n /**\n * The issuer used for the auth workflow.\n * @example ```\"https://dev.auth987.com/\"```\n */\n issuer?: string | null\n /**\n * The list of domains in scope (comma-separated).\n * @example ```\"dev.auth987.com,stg.auth987.com\"```\n */\n domains?: string | null\n /**\n * The token URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/oauth/token\"```\n */\n token_url?: string | null\n /**\n * The authorize URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/authorize\"```\n */\n authorize_url?: string | null\n /**\n * The JWKS key store URL used for the auth workflow.\n * @example ```\"https://dev.auth987.com/.well-known/jwks.json\"```\n */\n jwks_url?: string | null\n /**\n * The organization identifier for authorize params.\n * @example ```\"org_76gsfs5gd\"```\n */\n organization?: string | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n}\n\nclass IdentityProviders extends ApiResource<IdentityProvider> {\n static readonly TYPE: IdentityProviderType = 'identity_providers' as const\n\n async create(\n resource: IdentityProviderCreate,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.create<IdentityProviderCreate, IdentityProvider>(\n { ...resource, type: IdentityProviders.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: IdentityProviderUpdate,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.update<IdentityProviderUpdate, IdentityProvider>(\n { ...resource, type: IdentityProviders.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: IdentityProviders.TYPE } : id, options)\n }\n\n async user(\n identityProviderId: string | IdentityProvider,\n params?: QueryParamsRetrieve<User>,\n options?: ResourcesConfig,\n ): Promise<User> {\n const _identityProviderId = (identityProviderId as IdentityProvider).id || (identityProviderId as string)\n return this.resources.fetch<User>(\n { type: 'users' },\n `identity_providers/${_identityProviderId}/user`,\n params,\n options,\n ) as unknown as User\n }\n\n async _disable(\n id: string | IdentityProvider,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.update<IdentityProviderUpdate, IdentityProvider>(\n { id: typeof id === 'string' ? id : id.id, type: IdentityProviders.TYPE, _disable: true },\n params,\n options,\n )\n }\n\n async _enable(\n id: string | IdentityProvider,\n params?: QueryParamsRetrieve<IdentityProvider>,\n options?: ResourcesConfig,\n ): Promise<IdentityProvider> {\n return this.resources.update<IdentityProviderUpdate, IdentityProvider>(\n { id: typeof id === 'string' ? id : id.id, type: IdentityProviders.TYPE, _enable: true },\n params,\n options,\n )\n }\n\n isIdentityProvider(resource: any): resource is IdentityProvider {\n return resource.type && resource.type === IdentityProviders.TYPE\n }\n\n relationship(id: string | ResourceId | null): IdentityProviderRel {\n return super.relationshipOneToOne<IdentityProviderRel>(id)\n }\n\n relationshipToMany(...ids: string[]): IdentityProviderRel[] {\n return super.relationshipOneToMany<IdentityProviderRel>(...ids)\n }\n\n type(): IdentityProviderType {\n return IdentityProviders.TYPE\n }\n}\n\nconst instance = new IdentityProviders()\nexport default instance\n\nexport type {\n IdentityProvider,\n IdentityProviderCreate,\n IdentityProviders,\n IdentityProviderType,\n IdentityProviderUpdate,\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
|
-
version: "3.0.0-beta.
|
|
5
|
+
version: "3.0.0-beta.2"};
|
|
6
6
|
|
|
7
7
|
// gen/version.ts
|
|
8
8
|
var SDK_VERSION = package_default.version;
|
|
@@ -12,5 +12,5 @@ var API_SUPPORTED_VERSIONS = [];
|
|
|
12
12
|
exports.API_SCHEMA_VERSION = API_SCHEMA_VERSION;
|
|
13
13
|
exports.API_SUPPORTED_VERSIONS = API_SUPPORTED_VERSIONS;
|
|
14
14
|
exports.SDK_VERSION = SDK_VERSION;
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-XS6QLJHG.cjs.map
|
|
16
|
+
//# sourceMappingURL=chunk-XS6QLJHG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../package.json","../gen/version.ts"],"names":[],"mappings":";;;AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,cAmEb,CAAA;;;ACnEO,IAAM,cAAsB,eAAA,CAAI;AAGhC,IAAM,kBAAA,GAA6B;AAGnC,IAAM,yBAAyB","file":"chunk-XS6QLJHG.cjs","sourcesContent":["{\n \"name\": \"@commercelayer/provisioning-sdk\",\n \"version\": \"3.0.0-beta.2\",\n \"main\": \"lib/index.cjs\",\n \"types\": \"lib/index.d.ts\",\n \"module\": \"lib/index.js\",\n \"type\": \"module\",\n \"sideEffects\": false,\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./lib/index.d.ts\",\n \"default\": \"./lib/index.js\"\n },\n \"require\": {\n \"types\": \"./lib/index.d.cts\",\n \"default\": \"./lib/index.cjs\"\n }\n }\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"generate\": \"tsx ../sdk-generator/src/generator.ts && pnpm check\",\n \"generate-local\": \"tsx ../sdk-generator/src/generator.ts --local && pnpm check\",\n \"lint\": \"biome check --enforce-assist=true\",\n \"check\": \"biome check --enforce-assist=true --write\",\n \"ts:check\": \"tsc --noEmit -p tsconfig.json\",\n \"test\": \"vitest\",\n \"coverage\": \"vitest run --coverage\",\n \"verify:pack\": \"publint && attw --pack .\"\n },\n \"keywords\": [\n \"javascript\",\n \"ecommerce\",\n \"jamstack\",\n \"commercelayer\",\n \"provisioning\"\n ],\n \"author\": \"Pierluigi Viti <pierluigi@commercelayer.io>\",\n \"license\": \"MIT\",\n \"description\": \"Commerce Layer Provisioning API Javascript SDK\",\n \"files\": [\n \"lib/**/*\"\n ],\n \"engines\": {\n \"node\": \">=20\"\n },\n \"devDependencies\": {\n \"@arethetypeswrong/cli\": \"^0.18.5\",\n \"@biomejs/biome\": \"^2.5.14\",\n \"@commercelayer/js-auth\": \"^8.0.1\",\n \"@commercelayer/sdk-generator\": \"workspace:*\",\n \"@types/debug\": \"^4.1.13\",\n \"@types/node\": \"^25.9.8\",\n \"@vitest/coverage-v8\": \"^5.0.2\",\n \"dotenv\": \"^18.0.4\",\n \"json-typescript\": \"^1.1.2\",\n \"jsonapi-typescript\": \"^0.1.3\",\n \"publint\": \"^0.3.24\",\n \"tsup\": \"^8.5.1\",\n \"tsx\": \"^4.23.15\",\n \"typescript\": \"^5.9.3\",\n \"vitest\": \"^5.0.2\"\n },\n \"repository\": \"github:commercelayer/commercelayer-sdk\",\n \"bugs\": \"https://github.com/commercelayer/commercelayer-sdk/issues\",\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n","import pkg from '../package.json' with { type: 'json' }\n\nexport const SDK_VERSION: string = pkg.version\n\n// Autogenerated API schema version, do not remove this line\nexport const API_SCHEMA_VERSION: string = 'latest'\n\n// Autogenerated supported API versions, do not remove this line\nexport const API_SUPPORTED_VERSIONS = [] as const\n\n/**\n * The API versions this build accepts as the `apiVersion` init option — the\n * union of {@link API_SUPPORTED_VERSIONS}. On a legacy build the tuple is\n * empty, so this resolves to `never` and the option can only be omitted (the\n * legacy API is unversioned).\n */\nexport type ApiVersion = (typeof API_SUPPORTED_VERSIONS)[number]\n"]}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CommerceLayerProvisioningBaseClient } from './chunk-
|
|
2
|
-
import { permissions_default } from './chunk-
|
|
3
|
-
import { roles_default } from './chunk-
|
|
4
|
-
import { users_default } from './chunk-
|
|
5
|
-
import { versions_default } from './chunk-
|
|
6
|
-
import { api_credentials_default } from './chunk-
|
|
7
|
-
import { application_memberships_default } from './chunk-
|
|
8
|
-
import { identity_providers_default } from './chunk-
|
|
9
|
-
import { membership_profiles_default } from './chunk-
|
|
10
|
-
import { memberships_default } from './chunk-
|
|
11
|
-
import { organizations_default } from './chunk-
|
|
12
|
-
import { debug_default } from './chunk-
|
|
1
|
+
import { CommerceLayerProvisioningBaseClient } from './chunk-CWXGTX7W.js';
|
|
2
|
+
import { permissions_default } from './chunk-I4LPOTDO.js';
|
|
3
|
+
import { roles_default } from './chunk-IRFPCJTG.js';
|
|
4
|
+
import { users_default } from './chunk-ZWZHZ4SU.js';
|
|
5
|
+
import { versions_default } from './chunk-G4JBHI2H.js';
|
|
6
|
+
import { api_credentials_default } from './chunk-7YEOUGXO.js';
|
|
7
|
+
import { application_memberships_default } from './chunk-LTIWXCVE.js';
|
|
8
|
+
import { identity_providers_default } from './chunk-WMUY7Z2Q.js';
|
|
9
|
+
import { membership_profiles_default } from './chunk-KT6LCJJQ.js';
|
|
10
|
+
import { memberships_default } from './chunk-T2U6MUX4.js';
|
|
11
|
+
import { organizations_default } from './chunk-ECGUWRRG.js';
|
|
12
|
+
import { debug_default } from './chunk-GHXKZEH7.js';
|
|
13
13
|
|
|
14
14
|
// gen/bundle.ts
|
|
15
15
|
var debug = debug_default("bundle");
|
|
@@ -86,5 +86,5 @@ function CommerceLayerProvisioning(config) {
|
|
|
86
86
|
var bundle_default = CommerceLayerProvisioning;
|
|
87
87
|
|
|
88
88
|
export { CommerceLayerProvisioning, bundle_default };
|
|
89
|
-
//# sourceMappingURL=chunk-
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
89
|
+
//# sourceMappingURL=chunk-YUNEDDTL.js.map
|
|
90
|
+
//# sourceMappingURL=chunk-YUNEDDTL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../gen/bundle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA,IAAM,KAAA,GAAQ,cAAM,QAAQ,CAAA;AAE5B,IAAM,+BAAA,GAAN,MAAM,gCAAA,SAAwC,mCAAA,CAAoC;AAAA;AAAA;AAAA,EAGhF,gBAAA;AAAA,EACA,wBAAA;AAAA,EACA,mBAAA;AAAA,EACA,YAAA;AAAA,EACA,oBAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AAAA,EACA,MAAA;AAAA,EACA,KAAA;AAAA,EACA,SAAA;AAAA;AAAA,EAGO,YAAY,MAAA,EAAiC;AAClD,IAAA,KAAA,CAAM,MAAM,CAAA;AACZ,IAAA,KAAA,CAAM,wCAAwC,MAAM,CAAA;AAAA,EAKtD;AAAA,EAEA,OAAO,IAAI,MAAA,EAAmE;AAC5E,IAAA,IAAI,QAAQ,OAAQ,gCAAA,CAAgC,EAAA,GAAK,IAAI,iCAAgC,MAAM,CAAA;AAAA,SAAA,IAC1F,CAAC,gCAAA,CAAgC,EAAA;AACxC,MAAA,MAAM,IAAI,MAAM,yDAAyD,CAAA;AAC3E,IAAA,OAAO,gCAAA,CAAgC,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A;AAAA,EAC3F;AAAA,EACA,IAAI,KAAA,GAAmB;AACrB,IAAA,OAAO,KAAK,MAAA,KAAW,IAAA,CAAK,SAAa,aAAA,CAAM,WAAA,CAAY,KAAK,OAAO,CAAA,CAAA;AAAA,EACzE;AAAA,EACA,IAAI,IAAA,GAAkB;AACpB,IAAA,OAAO,KAAK,KAAA,KAAU,IAAA,CAAK,QAAY,aAAA,CAAK,WAAA,CAAY,KAAK,OAAO,CAAA,CAAA;AAAA,EACtE;AAAA,EACA,IAAI,QAAA,GAAyB;AAC3B,IAAA,OAAO,KAAK,SAAA,KAAc,IAAA,CAAK,YAAgB,gBAAA,CAAS,WAAA,CAAY,KAAK,OAAO,CAAA,CAAA;AAAA,EAClF;AAAA;AAAA;AAAA;AAAA;AAMF,CAAA;AAEA,SAAS,0BAA0B,MAAA,EAAkE;AACnG,EAAA,OAAO,+BAAA,CAAgC,IAAI,MAAM,CAAA;AACnD;AAEA,IAAO,cAAA,GAAQ","file":"chunk-YUNEDDTL.js","sourcesContent":["import Debug from '@runtime/debug'\nimport type { ResourceAdapter } from '@runtime/resource'\nimport { type CommerceLayerInitConfig, CommerceLayerProvisioningBaseClient } from '../src/commercelayer'\nimport * as api from './api'\n\nconst debug = Debug('bundle')\n\nclass CommerceLayerProvisioningClient extends CommerceLayerProvisioningBaseClient {\n // ##__CL_RESOURCES_DEF_START__##\n // ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n #api_credentials?: api.ApiCredentials\n #application_memberships?: api.ApplicationMemberships\n #identity_providers?: api.IdentityProviders\n #memberships?: api.Memberships\n #membership_profiles?: api.MembershipProfiles\n #organizations?: api.Organizations\n #permissions?: api.Permissions\n #roles?: api.Roles\n #user?: api.Users\n #versions?: api.Versions\n // ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n super(config)\n debug('new commercelayer bundle instance %O', config)\n\n // ##__CL_RESOURCES_INIT_START__##\n // ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n // ##__CL_RESOURCES_INIT_STOP__##\n }\n\n static get(config?: CommerceLayerInitConfig): CommerceLayerProvisioningClient {\n if (config) return (CommerceLayerProvisioningClient.cl = new CommerceLayerProvisioningClient(config))\n else if (!CommerceLayerProvisioningClient.cl)\n throw new Error('CommerceLayerProvisioning bundle client not initialized')\n return CommerceLayerProvisioningClient.cl as CommerceLayerProvisioningClient\n }\n\n // Bundle clients are isolated: route this instance's requests, config and\n // interceptors through the adapter built for it, not the process-global\n // static one. The resource accessors below bind to this same adapter.\n protected override get adapter(): ResourceAdapter {\n return this.instanceAdapter\n }\n\n // ##__CL_RESOURCES_LAZY_LOADING_START__##\n // ##__CL_RESOURCES_LAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = api.##__RESOURCE_TYPE__##.withAdapter(this.adapter)) }\n get api_credentials(): api.ApiCredentials {\n return this.#api_credentials || (this.#api_credentials = api.api_credentials.withAdapter(this.adapter))\n }\n get application_memberships(): api.ApplicationMemberships {\n return (\n this.#application_memberships ||\n (this.#application_memberships = api.application_memberships.withAdapter(this.adapter))\n )\n }\n get identity_providers(): api.IdentityProviders {\n return this.#identity_providers || (this.#identity_providers = api.identity_providers.withAdapter(this.adapter))\n }\n get memberships(): api.Memberships {\n return this.#memberships || (this.#memberships = api.memberships.withAdapter(this.adapter))\n }\n get membership_profiles(): api.MembershipProfiles {\n return this.#membership_profiles || (this.#membership_profiles = api.membership_profiles.withAdapter(this.adapter))\n }\n get organizations(): api.Organizations {\n return this.#organizations || (this.#organizations = api.organizations.withAdapter(this.adapter))\n }\n get permissions(): api.Permissions {\n return this.#permissions || (this.#permissions = api.permissions.withAdapter(this.adapter))\n }\n get roles(): api.Roles {\n return this.#roles || (this.#roles = api.roles.withAdapter(this.adapter))\n }\n get user(): api.Users {\n return this.#user || (this.#user = api.user.withAdapter(this.adapter))\n }\n get versions(): api.Versions {\n return this.#versions || (this.#versions = api.versions.withAdapter(this.adapter))\n }\n // ##__CL_RESOURCES_LAZY_LOADING_STOP__##\n\n // ##__CL_RESOURCES_ACCESSORS_ONLY_START__##\n // ##__CL_RESOURCES_ACCESSORS_ONLY_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return api.##__RESOURCE_TYPE__## }\n // ##__CL_RESOURCES_ACCESSORS_ONLY_STOP__##\n}\n\nfunction CommerceLayerProvisioning(config: CommerceLayerInitConfig): CommerceLayerProvisioningClient {\n return CommerceLayerProvisioningClient.get(config)\n}\n\nexport default CommerceLayerProvisioning\nexport { CommerceLayerProvisioning, type CommerceLayerProvisioningClient }\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiSingleton } from './chunk-
|
|
1
|
+
import { ApiSingleton } from './chunk-GHXKZEH7.js';
|
|
2
2
|
|
|
3
3
|
// gen/resources/users.ts
|
|
4
4
|
var Users = class _Users extends ApiSingleton {
|
|
@@ -26,5 +26,5 @@ var instance = new Users();
|
|
|
26
26
|
var users_default = instance;
|
|
27
27
|
|
|
28
28
|
export { users_default };
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-ZWZHZ4SU.js.map
|
|
30
|
+
//# sourceMappingURL=chunk-ZWZHZ4SU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/users.ts"],"names":[],"mappings":";;;AA2EA,IAAM,KAAA,GAAN,MAAM,MAAA,SAAc,YAAA,CAAmB;AAAA,EACrC,OAAgB,IAAA,GAAiB,OAAA;AAAA,EAEjC,MAAM,MAAA,CAAO,QAAA,EAAsB,MAAA,EAAoC,OAAA,EAA0C;AAC/G,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,MAAA,CAAM,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAA,EAAS,IAAA,CAAK,MAAM,CAAA;AAAA,EAChH;AAAA,EAEA,OAAO,QAAA,EAAiC;AACtC,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,MAAA,CAAM,IAAA;AAAA,EAClD;AAAA,EAEA,aAAa,EAAA,EAAyC;AACpD,IAAA,OAAO,KAAA,CAAM,qBAA8B,EAAE,CAAA;AAAA,EAC/C;AAAA,EAEA,sBAAsB,GAAA,EAA0B;AAC9C,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA+B,GAAG,GAAG,CAAA;AAAA,EACpD;AAAA,EAEA,IAAA,GAAiB;AACf,IAAA,OAAO,MAAA,CAAM,IAAA;AAAA,EACf;AAAA,EAEA,IAAA,GAAe;AACb,IAAA,OAAO,MAAA;AAAA,EACT;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,KAAA,EAAM;AAC3B,IAAO,aAAA,GAAQ","file":"chunk-ZWZHZ4SU.js","sourcesContent":["import type { QueryParamsRetrieve } from '@runtime/query'\nimport type {\n Resource,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n SingletonUpdate,\n} from '@runtime/resource'\nimport { ApiSingleton } from '@runtime/resource'\n\ntype UserType = 'users'\ntype UserRel = ResourceRel & { type: UserType }\n\nexport type UserSort = Pick<User, 'id' | 'email' | 'first_name' | 'last_name'> & ResourceSort\n// export type UserFilter = Pick<User, 'id' | 'email' | 'first_name' | 'last_name' | 'time_zone'> & ResourceFilter\n\n/**\n * The User object is returned as part of the response body of each successful retrieve or update API call to the /api/user endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/users/object\n */\ninterface User extends Resource {\n readonly type: UserType\n\n /**\n * The user email.\n * @example ```\"user@commercelayer.io\"```\n */\n email: string\n /**\n * The user first name.\n * @example ```\"John\"```\n */\n first_name: string\n /**\n * The user last name.\n * @example ```\"Doe\"```\n */\n last_name: string\n /**\n * The user preferred timezone.\n * @example ```\"UTC\"```\n */\n time_zone?: string | null\n /**\n * The user 2FA setting.\n * @example ```true```\n */\n otp_required_for_login?: boolean | null\n}\n\ninterface UserUpdate extends SingletonUpdate {\n /**\n * The user email.\n * @example ```\"user@commercelayer.io\"```\n */\n email?: string | null\n /**\n * The user first name.\n * @example ```\"John\"```\n */\n first_name?: string | null\n /**\n * The user last name.\n * @example ```\"Doe\"```\n */\n last_name?: string | null\n /**\n * The user preferred timezone.\n * @example ```\"UTC\"```\n */\n time_zone?: string | null\n}\n\nclass Users extends ApiSingleton<User> {\n static readonly TYPE: UserType = 'users' as const\n\n async update(resource: UserUpdate, params?: QueryParamsRetrieve<User>, options?: ResourcesConfig): Promise<User> {\n return this.resources.update<UserUpdate, User>({ ...resource, type: Users.TYPE }, params, options, this.path())\n }\n\n isUser(resource: any): resource is User {\n return resource.type && resource.type === Users.TYPE\n }\n\n relationship(id: string | ResourceId | null): UserRel {\n return super.relationshipOneToOne<UserRel>(id)\n }\n\n relationshipToMany(...ids: string[]): UserRel[] {\n return super.relationshipOneToMany<UserRel>(...ids)\n }\n\n type(): UserType {\n return Users.TYPE\n }\n\n path(): string {\n return 'user'\n }\n}\n\nconst instance = new Users()\nexport default instance\n\nexport type { User, Users, UserType, UserUpdate }\n"]}
|
package/lib/commercelayer.cjs
CHANGED
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
var
|
|
5
|
+
var chunk6MXIGF2G_cjs = require('./chunk-6MXIGF2G.cjs');
|
|
6
|
+
require('./chunk-EVDEBFHZ.cjs');
|
|
7
|
+
require('./chunk-OROPOAHK.cjs');
|
|
8
|
+
var chunkXS6QLJHG_cjs = require('./chunk-XS6QLJHG.cjs');
|
|
9
9
|
require('./chunk-VFTFSHXQ.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "CommerceLayerProvisioning", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk6MXIGF2G_cjs.CommerceLayerProvisioning; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "CommerceLayerProvisioningBaseClient", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk6MXIGF2G_cjs.CommerceLayerProvisioningBaseClient; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "default", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk6MXIGF2G_cjs.commercelayer_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "API_SCHEMA_VERSION", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkXS6QLJHG_cjs.API_SCHEMA_VERSION; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "API_SUPPORTED_VERSIONS", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkXS6QLJHG_cjs.API_SUPPORTED_VERSIONS; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkXS6QLJHG_cjs.SDK_VERSION; }
|
|
36
36
|
});
|
|
37
37
|
//# sourceMappingURL=commercelayer.cjs.map
|
|
38
38
|
//# sourceMappingURL=commercelayer.cjs.map
|
package/lib/commercelayer.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ApiError } from './error-CVRdwnY9.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { ai as ResourcesInitConfig, aD as ResourceAdapter, aE as RequestInterceptor, aF as ErrorInterceptor, aG as ResponseInterceptor, aH as InterceptorType, aI as RawResponseReader } from './api-C4jp_9vb.cjs';
|
|
3
3
|
import { ApiVersion } from './version.cjs';
|
|
4
4
|
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, SDK_VERSION } from './version.cjs';
|
|
5
5
|
import './actions.cjs';
|
package/lib/commercelayer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ApiError } from './error-CVRdwnY9.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ai as ResourcesInitConfig, aD as ResourceAdapter, aE as RequestInterceptor, aF as ErrorInterceptor, aG as ResponseInterceptor, aH as InterceptorType, aI as RawResponseReader } from './api-C_E9e1ea.js';
|
|
3
3
|
import { ApiVersion } from './version.js';
|
|
4
4
|
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, SDK_VERSION } from './version.js';
|
|
5
5
|
import './actions.js';
|
package/lib/commercelayer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CommerceLayerProvisioning, CommerceLayerProvisioningBaseClient, commercelayer_default as default } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, SDK_VERSION } from './chunk-
|
|
1
|
+
export { CommerceLayerProvisioning, CommerceLayerProvisioningBaseClient, commercelayer_default as default } from './chunk-CWXGTX7W.js';
|
|
2
|
+
import './chunk-GHXKZEH7.js';
|
|
3
|
+
import './chunk-3PJNJ7B6.js';
|
|
4
|
+
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, SDK_VERSION } from './chunk-SQLX22US.js';
|
|
5
5
|
import './chunk-YS5PCY5D.js';
|
|
6
6
|
//# sourceMappingURL=commercelayer.js.map
|
|
7
7
|
//# sourceMappingURL=commercelayer.js.map
|
package/lib/enum.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CreatableResource,
|
|
1
|
+
export { C as CreatableResource, o as CreatableResourceType, D as DeletableResource, p as DeletableResourceType, v as ListableResource, w as ListableResourceType, R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock, ak as RetrievableResource, al as RetrievableResourceType, as as UpdatableResource, at as UpdatableResourceType, a$ as creatableResources, b0 as deletableResources, g as getResources, b1 as getSingletons, b2 as isCreatable, b3 as isDeletable, b4 as isSingleton, b5 as isUpdatable, aB as resourceList, aC as singletonList, b6 as updatableResources } from './api-C4jp_9vb.cjs';
|
|
2
2
|
import './actions.cjs';
|
package/lib/enum.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CreatableResource,
|
|
1
|
+
export { C as CreatableResource, o as CreatableResourceType, D as DeletableResource, p as DeletableResourceType, v as ListableResource, w as ListableResourceType, R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock, ak as RetrievableResource, al as RetrievableResourceType, as as UpdatableResource, at as UpdatableResourceType, a$ as creatableResources, b0 as deletableResources, g as getResources, b1 as getSingletons, b2 as isCreatable, b3 as isDeletable, b4 as isSingleton, b5 as isUpdatable, aB as resourceList, aC as singletonList, b6 as updatableResources } from './api-C_E9e1ea.js';
|
|
2
2
|
import './actions.js';
|
package/lib/index.cjs
CHANGED
|
@@ -2,47 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkTY46WNR6_cjs = require('./chunk-TY46WNR6.cjs');
|
|
6
|
+
var chunk3ILNEP2F_cjs = require('./chunk-3ILNEP2F.cjs');
|
|
7
|
+
require('./chunk-6MXIGF2G.cjs');
|
|
8
8
|
require('./chunk-N567T7FT.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
21
|
-
var
|
|
9
|
+
require('./chunk-FRLV5YFL.cjs');
|
|
10
|
+
require('./chunk-KO4FQ4V2.cjs');
|
|
11
|
+
require('./chunk-6FB54J7W.cjs');
|
|
12
|
+
require('./chunk-DYMRH6LP.cjs');
|
|
13
|
+
require('./chunk-MHV7FMLE.cjs');
|
|
14
|
+
require('./chunk-UILXNOZE.cjs');
|
|
15
|
+
require('./chunk-TXONK7R5.cjs');
|
|
16
|
+
require('./chunk-3NDVX4SE.cjs');
|
|
17
|
+
require('./chunk-FMHTNUZ4.cjs');
|
|
18
|
+
require('./chunk-NDKGLF4B.cjs');
|
|
19
|
+
require('./chunk-EVDEBFHZ.cjs');
|
|
20
|
+
require('./chunk-OROPOAHK.cjs');
|
|
21
|
+
var chunkXS6QLJHG_cjs = require('./chunk-XS6QLJHG.cjs');
|
|
22
22
|
var chunkVFTFSHXQ_cjs = require('./chunk-VFTFSHXQ.cjs');
|
|
23
23
|
|
|
24
24
|
// src/index.ts
|
|
25
|
-
var src_default =
|
|
25
|
+
var src_default = chunk3ILNEP2F_cjs.bundle_default;
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "CommerceLayerProvisioningStatic", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkTY46WNR6_cjs.CommerceLayerProvisioningStatic; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "CommerceLayerProvisioning", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk3ILNEP2F_cjs.bundle_default; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "API_SCHEMA_VERSION", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkXS6QLJHG_cjs.API_SCHEMA_VERSION; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "API_SUPPORTED_VERSIONS", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkXS6QLJHG_cjs.API_SUPPORTED_VERSIONS; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkXS6QLJHG_cjs.SDK_VERSION; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "resourceList", {
|
|
48
48
|
enumerable: true,
|
package/lib/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["bundle_default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAO,WAAA,GAAQA","file":"index.cjs","sourcesContent":["// SDK — single entry point exposing the bundle client. Unlike the Core API SDK\n// there is no tree-shakeable single-client surface.\nimport CommerceLayerProvisioning, { type CommerceLayerProvisioningClient } from '../gen/bundle'\n\nexport { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, type ApiVersion, SDK_VERSION } from '../gen/version'\nexport { CommerceLayerProvisioning, type CommerceLayerProvisioningClient }\n\nexport default CommerceLayerProvisioning\n\n// The resource catalogue, as values. 2.10.2 exposed these; they must be real\n// value exports, not type-only, or consumers get bindings that fail at runtime.\nexport { resourceList, singletonList } from '../gen/enum'\n// Commerce Layer Provisioning static functions\nexport { CommerceLayerProvisioningStatic } from './static'\n\n/** ** TYPES ** **/\n\n// Curated rather than wildcarded. 2.10.2 built its surface from `export type *`\n// over api/model/query/resource, but sdk8's modules have different shapes: the\n// same wildcards re-export resource *instances* and enum helper *functions*\n// into the .d.ts while the runtime exports only six names — so consumers could\n// import bindings that typecheck and then fail at runtime.\n\n// Error types\nexport type { ApiError, ErrorType, SdkError } from '@runtime/error'\n// Raw response reader and request/response interceptors\nexport type { ErrorObj, HeadersObj, RequestObj, ResponseObj } from '@runtime/interceptor'\n// Query filter types\nexport type {\n QueryFields,\n QueryFilter,\n QueryInclude,\n QueryPageCursor,\n QueryPageNumber,\n QueryPageSize,\n QueryParams,\n QueryParamsList,\n QueryParamsRetrieve,\n QuerySort,\n} from '@runtime/query'\n// Resource types\nexport type {\n ApiResource,\n ApiSingleton,\n ListMeta,\n ListResponse,\n Metadata,\n Resource,\n ResourceCreate,\n ResourceFilter,\n ResourceId,\n ResourceRel,\n ResourceSort,\n ResourcesConfig,\n ResourcesInitConfig,\n ResourceType,\n ResourceUpdate,\n} from '@runtime/resource'\n// Resource classes, as 2.10.2 exposed them\nexport type {\n ApiCredentials,\n ApplicationMemberships,\n IdentityProviders,\n MembershipProfiles,\n Memberships,\n Organizations,\n Permissions,\n Roles,\n Users,\n Versions,\n} from '../gen/api'\n// Resource API type unions\nexport type {\n CreatableResource,\n CreatableResourceType,\n DeletableResource,\n DeletableResourceType,\n ListableResource,\n ListableResourceType,\n ResourceFields,\n ResourceSortFields,\n ResourceTypeLock,\n RetrievableResource,\n RetrievableResourceType,\n UpdatableResource,\n UpdatableResourceType,\n} from '../gen/enum'\n// Resource model types — model.ts declares types only, so a wildcard is safe\nexport type * from '../gen/model'\n// Payload types for custom actions\nexport type { TransferOwnershipDataType } from './actions'\n// Client config types\nexport type { CommerceLayerConfig, CommerceLayerInitConfig } from './commercelayer'\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["bundle_default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAO,WAAA,GAAQA","file":"index.cjs","sourcesContent":["// SDK — single entry point exposing the bundle client. Unlike the Core API SDK\n// there is no tree-shakeable single-client surface.\nimport CommerceLayerProvisioning, { type CommerceLayerProvisioningClient } from '../gen/bundle'\n\nexport { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, type ApiVersion, SDK_VERSION } from '../gen/version'\nexport { CommerceLayerProvisioning, type CommerceLayerProvisioningClient }\n\nexport default CommerceLayerProvisioning\n\n// The resource catalogue, as values. 2.10.2 exposed these; they must be real\n// value exports, not type-only, or consumers get bindings that fail at runtime.\nexport { resourceList, singletonList } from '../gen/enum'\n// Commerce Layer Provisioning static functions\nexport { CommerceLayerProvisioningStatic } from './static'\n\n/** ** TYPES ** **/\n\n// Curated rather than wildcarded. 2.10.2 built its surface from `export type *`\n// over api/model/query/resource, but sdk8's modules have different shapes: the\n// same wildcards re-export resource *instances* and enum helper *functions*\n// into the .d.ts while the runtime exports only six names — so consumers could\n// import bindings that typecheck and then fail at runtime.\n\n// Error types\nexport type { ApiError, ErrorType, SdkError } from '@runtime/error'\n// Raw response reader and request/response interceptors\nexport type { ErrorObj, HeadersObj, RequestObj, ResponseObj } from '@runtime/interceptor'\n// Query filter types\nexport type {\n QueryFields,\n QueryFilter,\n QueryInclude,\n QueryPageCursor,\n QueryPageNumber,\n QueryPageSize,\n QueryParams,\n QueryParamsList,\n QueryParamsRetrieve,\n QuerySort,\n} from '@runtime/query'\n// Resource types\nexport type {\n ApiResource,\n ApiSingleton,\n ListMeta,\n ListResponse,\n Metadata,\n Resource,\n ResourceCreate,\n ResourceFilter,\n ResourceId,\n ResourceRel,\n ResourceSort,\n ResourcesConfig,\n ResourcesInitConfig,\n ResourceType,\n ResourceUpdate,\n SingletonUpdate,\n} from '@runtime/resource'\n// Resource classes, as 2.10.2 exposed them\nexport type {\n ApiCredentials,\n ApplicationMemberships,\n IdentityProviders,\n MembershipProfiles,\n Memberships,\n Organizations,\n Permissions,\n Roles,\n Users,\n Versions,\n} from '../gen/api'\n// Resource API type unions\nexport type {\n CreatableResource,\n CreatableResourceType,\n DeletableResource,\n DeletableResourceType,\n ListableResource,\n ListableResourceType,\n ResourceFields,\n ResourceSortFields,\n ResourceTypeLock,\n RetrievableResource,\n RetrievableResourceType,\n UpdatableResource,\n UpdatableResourceType,\n} from '../gen/enum'\n// Resource model types — model.ts declares types only, so a wildcard is safe\nexport type * from '../gen/model'\n// Payload types for custom actions\nexport type { TransferOwnershipDataType } from './actions'\n// Client config types\nexport type { CommerceLayerConfig, CommerceLayerInitConfig } from './commercelayer'\n"]}
|
package/lib/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommerceLayerProvisioning } from './bundle.cjs';
|
|
2
2
|
export { CommerceLayerProvisioningClient } from './bundle.cjs';
|
|
3
3
|
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, ApiVersion, SDK_VERSION } from './version.cjs';
|
|
4
|
-
export { A as ApiCredential,
|
|
4
|
+
export { A as ApiCredential, c as ApiCredentialCreate, d as ApiCredentialSort, e as ApiCredentialUpdate, f as ApiCredentials, h as ApiResource, i as ApiSingleton, j as ApplicationMembership, k as ApplicationMembershipCreate, l as ApplicationMembershipSort, m as ApplicationMembershipUpdate, n as ApplicationMemberships, C as CreatableResource, o as CreatableResourceType, D as DeletableResource, p as DeletableResourceType, E as ErrorObj, H as HeadersObj, I as IdentityProvider, q as IdentityProviderCreate, r as IdentityProviderSort, s as IdentityProviderUpdate, t as IdentityProviders, L as ListMeta, u as ListResponse, v as ListableResource, w as ListableResourceType, M as Membership, x as MembershipCreate, y as MembershipProfile, z as MembershipProfileCreate, B as MembershipProfileSort, F as MembershipProfileUpdate, G as MembershipProfiles, J as MembershipSort, K as MembershipUpdate, N as Memberships, O as Metadata, P as Organization, Q as OrganizationCreate, S as OrganizationSort, T as OrganizationUpdate, U as Organizations, V as Permission, W as PermissionCreate, X as PermissionSort, Y as PermissionUpdate, Z as Permissions, _ as QueryFields, $ as QueryFilter, a0 as QueryInclude, a1 as QueryPageCursor, a2 as QueryPageNumber, a3 as QueryPageSize, a4 as QueryParams, a5 as QueryParamsList, a6 as QueryParamsRetrieve, a7 as QuerySort, a8 as RequestObj, a9 as Resource, aa as ResourceCreate, R as ResourceFields, ab as ResourceFilter, ac as ResourceId, ad as ResourceRel, ae as ResourceSort, a as ResourceSortFields, af as ResourceType, b as ResourceTypeLock, ag as ResourceUpdate, ah as ResourcesConfig, ai as ResourcesInitConfig, aj as ResponseObj, ak as RetrievableResource, al as RetrievableResourceType, am as Role, an as RoleCreate, ao as RoleSort, ap as RoleUpdate, aq as Roles, ar as SingletonUpdate, as as UpdatableResource, at as UpdatableResourceType, au as User, av as UserSort, aw as UserUpdate, ax as Users, ay as Version, az as VersionSort, aA as Versions, aB as resourceList, aC as singletonList } from './api-C4jp_9vb.cjs';
|
|
5
5
|
export { CommerceLayerProvisioningStatic } from './static.cjs';
|
|
6
6
|
export { A as ApiError, E as ErrorType, S as SdkError } from './error-CVRdwnY9.cjs';
|
|
7
7
|
export { TransferOwnershipDataType } from './actions.cjs';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommerceLayerProvisioning } from './bundle.js';
|
|
2
2
|
export { CommerceLayerProvisioningClient } from './bundle.js';
|
|
3
3
|
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, ApiVersion, SDK_VERSION } from './version.js';
|
|
4
|
-
export { A as ApiCredential,
|
|
4
|
+
export { A as ApiCredential, c as ApiCredentialCreate, d as ApiCredentialSort, e as ApiCredentialUpdate, f as ApiCredentials, h as ApiResource, i as ApiSingleton, j as ApplicationMembership, k as ApplicationMembershipCreate, l as ApplicationMembershipSort, m as ApplicationMembershipUpdate, n as ApplicationMemberships, C as CreatableResource, o as CreatableResourceType, D as DeletableResource, p as DeletableResourceType, E as ErrorObj, H as HeadersObj, I as IdentityProvider, q as IdentityProviderCreate, r as IdentityProviderSort, s as IdentityProviderUpdate, t as IdentityProviders, L as ListMeta, u as ListResponse, v as ListableResource, w as ListableResourceType, M as Membership, x as MembershipCreate, y as MembershipProfile, z as MembershipProfileCreate, B as MembershipProfileSort, F as MembershipProfileUpdate, G as MembershipProfiles, J as MembershipSort, K as MembershipUpdate, N as Memberships, O as Metadata, P as Organization, Q as OrganizationCreate, S as OrganizationSort, T as OrganizationUpdate, U as Organizations, V as Permission, W as PermissionCreate, X as PermissionSort, Y as PermissionUpdate, Z as Permissions, _ as QueryFields, $ as QueryFilter, a0 as QueryInclude, a1 as QueryPageCursor, a2 as QueryPageNumber, a3 as QueryPageSize, a4 as QueryParams, a5 as QueryParamsList, a6 as QueryParamsRetrieve, a7 as QuerySort, a8 as RequestObj, a9 as Resource, aa as ResourceCreate, R as ResourceFields, ab as ResourceFilter, ac as ResourceId, ad as ResourceRel, ae as ResourceSort, a as ResourceSortFields, af as ResourceType, b as ResourceTypeLock, ag as ResourceUpdate, ah as ResourcesConfig, ai as ResourcesInitConfig, aj as ResponseObj, ak as RetrievableResource, al as RetrievableResourceType, am as Role, an as RoleCreate, ao as RoleSort, ap as RoleUpdate, aq as Roles, ar as SingletonUpdate, as as UpdatableResource, at as UpdatableResourceType, au as User, av as UserSort, aw as UserUpdate, ax as Users, ay as Version, az as VersionSort, aA as Versions, aB as resourceList, aC as singletonList } from './api-C_E9e1ea.js';
|
|
5
5
|
export { CommerceLayerProvisioningStatic } from './static.js';
|
|
6
6
|
export { A as ApiError, E as ErrorType, S as SdkError } from './error-CVRdwnY9.js';
|
|
7
7
|
export { TransferOwnershipDataType } from './actions.js';
|
package/lib/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { CommerceLayerProvisioningStatic } from './chunk-
|
|
2
|
-
import { bundle_default } from './chunk-
|
|
3
|
-
export { bundle_default as CommerceLayerProvisioning } from './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { CommerceLayerProvisioningStatic } from './chunk-STPXKF53.js';
|
|
2
|
+
import { bundle_default } from './chunk-YUNEDDTL.js';
|
|
3
|
+
export { bundle_default as CommerceLayerProvisioning } from './chunk-YUNEDDTL.js';
|
|
4
|
+
import './chunk-CWXGTX7W.js';
|
|
5
5
|
import './chunk-IW2T22VR.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, SDK_VERSION } from './chunk-
|
|
6
|
+
import './chunk-I4LPOTDO.js';
|
|
7
|
+
import './chunk-IRFPCJTG.js';
|
|
8
|
+
import './chunk-ZWZHZ4SU.js';
|
|
9
|
+
import './chunk-G4JBHI2H.js';
|
|
10
|
+
import './chunk-7YEOUGXO.js';
|
|
11
|
+
import './chunk-LTIWXCVE.js';
|
|
12
|
+
import './chunk-WMUY7Z2Q.js';
|
|
13
|
+
import './chunk-KT6LCJJQ.js';
|
|
14
|
+
import './chunk-T2U6MUX4.js';
|
|
15
|
+
import './chunk-ECGUWRRG.js';
|
|
16
|
+
import './chunk-GHXKZEH7.js';
|
|
17
|
+
import './chunk-3PJNJ7B6.js';
|
|
18
|
+
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, SDK_VERSION } from './chunk-SQLX22US.js';
|
|
19
19
|
export { resourceList, singletonList } from './chunk-YS5PCY5D.js';
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,IAAO,WAAA,GAAQ","file":"index.js","sourcesContent":["// SDK — single entry point exposing the bundle client. Unlike the Core API SDK\n// there is no tree-shakeable single-client surface.\nimport CommerceLayerProvisioning, { type CommerceLayerProvisioningClient } from '../gen/bundle'\n\nexport { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, type ApiVersion, SDK_VERSION } from '../gen/version'\nexport { CommerceLayerProvisioning, type CommerceLayerProvisioningClient }\n\nexport default CommerceLayerProvisioning\n\n// The resource catalogue, as values. 2.10.2 exposed these; they must be real\n// value exports, not type-only, or consumers get bindings that fail at runtime.\nexport { resourceList, singletonList } from '../gen/enum'\n// Commerce Layer Provisioning static functions\nexport { CommerceLayerProvisioningStatic } from './static'\n\n/** ** TYPES ** **/\n\n// Curated rather than wildcarded. 2.10.2 built its surface from `export type *`\n// over api/model/query/resource, but sdk8's modules have different shapes: the\n// same wildcards re-export resource *instances* and enum helper *functions*\n// into the .d.ts while the runtime exports only six names — so consumers could\n// import bindings that typecheck and then fail at runtime.\n\n// Error types\nexport type { ApiError, ErrorType, SdkError } from '@runtime/error'\n// Raw response reader and request/response interceptors\nexport type { ErrorObj, HeadersObj, RequestObj, ResponseObj } from '@runtime/interceptor'\n// Query filter types\nexport type {\n QueryFields,\n QueryFilter,\n QueryInclude,\n QueryPageCursor,\n QueryPageNumber,\n QueryPageSize,\n QueryParams,\n QueryParamsList,\n QueryParamsRetrieve,\n QuerySort,\n} from '@runtime/query'\n// Resource types\nexport type {\n ApiResource,\n ApiSingleton,\n ListMeta,\n ListResponse,\n Metadata,\n Resource,\n ResourceCreate,\n ResourceFilter,\n ResourceId,\n ResourceRel,\n ResourceSort,\n ResourcesConfig,\n ResourcesInitConfig,\n ResourceType,\n ResourceUpdate,\n} from '@runtime/resource'\n// Resource classes, as 2.10.2 exposed them\nexport type {\n ApiCredentials,\n ApplicationMemberships,\n IdentityProviders,\n MembershipProfiles,\n Memberships,\n Organizations,\n Permissions,\n Roles,\n Users,\n Versions,\n} from '../gen/api'\n// Resource API type unions\nexport type {\n CreatableResource,\n CreatableResourceType,\n DeletableResource,\n DeletableResourceType,\n ListableResource,\n ListableResourceType,\n ResourceFields,\n ResourceSortFields,\n ResourceTypeLock,\n RetrievableResource,\n RetrievableResourceType,\n UpdatableResource,\n UpdatableResourceType,\n} from '../gen/enum'\n// Resource model types — model.ts declares types only, so a wildcard is safe\nexport type * from '../gen/model'\n// Payload types for custom actions\nexport type { TransferOwnershipDataType } from './actions'\n// Client config types\nexport type { CommerceLayerConfig, CommerceLayerInitConfig } from './commercelayer'\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,IAAO,WAAA,GAAQ","file":"index.js","sourcesContent":["// SDK — single entry point exposing the bundle client. Unlike the Core API SDK\n// there is no tree-shakeable single-client surface.\nimport CommerceLayerProvisioning, { type CommerceLayerProvisioningClient } from '../gen/bundle'\n\nexport { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, type ApiVersion, SDK_VERSION } from '../gen/version'\nexport { CommerceLayerProvisioning, type CommerceLayerProvisioningClient }\n\nexport default CommerceLayerProvisioning\n\n// The resource catalogue, as values. 2.10.2 exposed these; they must be real\n// value exports, not type-only, or consumers get bindings that fail at runtime.\nexport { resourceList, singletonList } from '../gen/enum'\n// Commerce Layer Provisioning static functions\nexport { CommerceLayerProvisioningStatic } from './static'\n\n/** ** TYPES ** **/\n\n// Curated rather than wildcarded. 2.10.2 built its surface from `export type *`\n// over api/model/query/resource, but sdk8's modules have different shapes: the\n// same wildcards re-export resource *instances* and enum helper *functions*\n// into the .d.ts while the runtime exports only six names — so consumers could\n// import bindings that typecheck and then fail at runtime.\n\n// Error types\nexport type { ApiError, ErrorType, SdkError } from '@runtime/error'\n// Raw response reader and request/response interceptors\nexport type { ErrorObj, HeadersObj, RequestObj, ResponseObj } from '@runtime/interceptor'\n// Query filter types\nexport type {\n QueryFields,\n QueryFilter,\n QueryInclude,\n QueryPageCursor,\n QueryPageNumber,\n QueryPageSize,\n QueryParams,\n QueryParamsList,\n QueryParamsRetrieve,\n QuerySort,\n} from '@runtime/query'\n// Resource types\nexport type {\n ApiResource,\n ApiSingleton,\n ListMeta,\n ListResponse,\n Metadata,\n Resource,\n ResourceCreate,\n ResourceFilter,\n ResourceId,\n ResourceRel,\n ResourceSort,\n ResourcesConfig,\n ResourcesInitConfig,\n ResourceType,\n ResourceUpdate,\n SingletonUpdate,\n} from '@runtime/resource'\n// Resource classes, as 2.10.2 exposed them\nexport type {\n ApiCredentials,\n ApplicationMemberships,\n IdentityProviders,\n MembershipProfiles,\n Memberships,\n Organizations,\n Permissions,\n Roles,\n Users,\n Versions,\n} from '../gen/api'\n// Resource API type unions\nexport type {\n CreatableResource,\n CreatableResourceType,\n DeletableResource,\n DeletableResourceType,\n ListableResource,\n ListableResourceType,\n ResourceFields,\n ResourceSortFields,\n ResourceTypeLock,\n RetrievableResource,\n RetrievableResourceType,\n UpdatableResource,\n UpdatableResourceType,\n} from '../gen/enum'\n// Resource model types — model.ts declares types only, so a wildcard is safe\nexport type * from '../gen/model'\n// Payload types for custom actions\nexport type { TransferOwnershipDataType } from './actions'\n// Client config types\nexport type { CommerceLayerConfig, CommerceLayerInitConfig } from './commercelayer'\n"]}
|
package/lib/model.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ApiCredential,
|
|
1
|
+
export { A as ApiCredential, c as ApiCredentialCreate, d as ApiCredentialSort, e as ApiCredentialUpdate, j as ApplicationMembership, k as ApplicationMembershipCreate, l as ApplicationMembershipSort, m as ApplicationMembershipUpdate, I as IdentityProvider, q as IdentityProviderCreate, r as IdentityProviderSort, s as IdentityProviderUpdate, M as Membership, x as MembershipCreate, y as MembershipProfile, z as MembershipProfileCreate, B as MembershipProfileSort, F as MembershipProfileUpdate, J as MembershipSort, K as MembershipUpdate, P as Organization, Q as OrganizationCreate, S as OrganizationSort, T as OrganizationUpdate, V as Permission, W as PermissionCreate, X as PermissionSort, Y as PermissionUpdate, am as Role, an as RoleCreate, ao as RoleSort, ap as RoleUpdate, au as User, av as UserSort, aw as UserUpdate, ay as Version, az as VersionSort } from './api-C4jp_9vb.cjs';
|
|
2
2
|
import './actions.cjs';
|
package/lib/model.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ApiCredential,
|
|
1
|
+
export { A as ApiCredential, c as ApiCredentialCreate, d as ApiCredentialSort, e as ApiCredentialUpdate, j as ApplicationMembership, k as ApplicationMembershipCreate, l as ApplicationMembershipSort, m as ApplicationMembershipUpdate, I as IdentityProvider, q as IdentityProviderCreate, r as IdentityProviderSort, s as IdentityProviderUpdate, M as Membership, x as MembershipCreate, y as MembershipProfile, z as MembershipProfileCreate, B as MembershipProfileSort, F as MembershipProfileUpdate, J as MembershipSort, K as MembershipUpdate, P as Organization, Q as OrganizationCreate, S as OrganizationSort, T as OrganizationUpdate, V as Permission, W as PermissionCreate, X as PermissionSort, Y as PermissionUpdate, am as Role, an as RoleCreate, ao as RoleSort, ap as RoleUpdate, au as User, av as UserSort, aw as UserUpdate, ay as Version, az as VersionSort } from './api-C_E9e1ea.js';
|
|
2
2
|
import './actions.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkMHV7FMLE_cjs = require('../chunk-MHV7FMLE.cjs');
|
|
4
|
+
require('../chunk-EVDEBFHZ.cjs');
|
|
5
|
+
require('../chunk-OROPOAHK.cjs');
|
|
6
|
+
require('../chunk-XS6QLJHG.cjs');
|
|
7
7
|
require('../chunk-VFTFSHXQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
module.exports =
|
|
11
|
+
module.exports = chunkMHV7FMLE_cjs.api_credentials_default;
|
|
12
12
|
//# sourceMappingURL=api_credentials.cjs.map
|
|
13
13
|
|
|
14
14
|
module.exports = exports.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _default from '../api-
|
|
1
|
+
import _default from '../api-C4jp_9vb.cjs';
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
export = _default;
|
|
4
|
-
export { A as ApiCredential,
|
|
4
|
+
export { A as ApiCredential, c as ApiCredentialCreate, d as ApiCredentialSort, b7 as ApiCredentialType, e as ApiCredentialUpdate, f as ApiCredentials } from '../api-C4jp_9vb.cjs';
|
|
5
5
|
import '../actions.cjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ApiCredential,
|
|
1
|
+
export { A as ApiCredential, c as ApiCredentialCreate, d as ApiCredentialSort, b7 as ApiCredentialType, e as ApiCredentialUpdate, f as ApiCredentials, b8 as default } from '../api-C_E9e1ea.js';
|
|
2
2
|
import '../actions.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { api_credentials_default as default } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { api_credentials_default as default } from '../chunk-7YEOUGXO.js';
|
|
2
|
+
import '../chunk-GHXKZEH7.js';
|
|
3
|
+
import '../chunk-3PJNJ7B6.js';
|
|
4
|
+
import '../chunk-SQLX22US.js';
|
|
5
5
|
import '../chunk-YS5PCY5D.js';
|
|
6
6
|
//# sourceMappingURL=api_credentials.js.map
|
|
7
7
|
//# sourceMappingURL=api_credentials.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkUILXNOZE_cjs = require('../chunk-UILXNOZE.cjs');
|
|
4
|
+
require('../chunk-EVDEBFHZ.cjs');
|
|
5
|
+
require('../chunk-OROPOAHK.cjs');
|
|
6
|
+
require('../chunk-XS6QLJHG.cjs');
|
|
7
7
|
require('../chunk-VFTFSHXQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
module.exports =
|
|
11
|
+
module.exports = chunkUILXNOZE_cjs.application_memberships_default;
|
|
12
12
|
//# sourceMappingURL=application_memberships.cjs.map
|
|
13
13
|
|
|
14
14
|
module.exports = exports.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _default from '../api-
|
|
1
|
+
import _default from '../api-C4jp_9vb.cjs';
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
export = _default;
|
|
4
|
-
export {
|
|
4
|
+
export { j as ApplicationMembership, k as ApplicationMembershipCreate, l as ApplicationMembershipSort, aV as ApplicationMembershipType, m as ApplicationMembershipUpdate, n as ApplicationMemberships } from '../api-C4jp_9vb.cjs';
|
|
5
5
|
import '../actions.cjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { j as ApplicationMembership, k as ApplicationMembershipCreate, l as ApplicationMembershipSort, aV as ApplicationMembershipType, m as ApplicationMembershipUpdate, n as ApplicationMemberships, aW as default } from '../api-C_E9e1ea.js';
|
|
2
2
|
import '../actions.js';
|