@commercelayer/provisioning-sdk 2.10.1 → 3.0.0-beta.0
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/LICENSE +1 -1
- package/lib/actions.cjs +4 -0
- package/lib/actions.cjs.map +1 -0
- package/lib/actions.d.cts +15 -0
- package/lib/actions.d.ts +15 -0
- package/lib/actions.js +3 -0
- package/lib/actions.js.map +1 -0
- package/lib/{index.d.mts → api-BY0jb79k.d.cts} +540 -496
- package/lib/api-e4p3q-SB.d.ts +1636 -0
- package/lib/api.cjs +62 -0
- package/lib/api.cjs.map +1 -0
- package/lib/api.d.cts +2 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.js +17 -0
- package/lib/api.js.map +1 -0
- package/lib/binding.cjs +14 -0
- package/lib/binding.cjs.map +1 -0
- package/lib/binding.d.cts +21 -0
- package/lib/binding.d.ts +21 -0
- package/lib/binding.js +5 -0
- package/lib/binding.js.map +1 -0
- package/lib/bundle.cjs +34 -0
- package/lib/bundle.cjs.map +1 -0
- package/lib/bundle.d.cts +27 -0
- package/lib/bundle.d.ts +25 -0
- package/lib/bundle.js +19 -0
- package/lib/bundle.js.map +1 -0
- package/lib/chunk-35GNS3WW.js +57 -0
- package/lib/chunk-35GNS3WW.js.map +1 -0
- package/lib/chunk-3ELZDTFF.js +41 -0
- package/lib/chunk-3ELZDTFF.js.map +1 -0
- package/lib/chunk-3FP4NVLD.cjs +16 -0
- package/lib/chunk-3FP4NVLD.cjs.map +1 -0
- package/lib/chunk-3XLKYXM6.cjs +84 -0
- package/lib/chunk-3XLKYXM6.cjs.map +1 -0
- package/lib/chunk-4Z4U45XQ.js +808 -0
- package/lib/chunk-4Z4U45XQ.js.map +1 -0
- package/lib/chunk-5KN7B3T2.cjs +118 -0
- package/lib/chunk-5KN7B3T2.cjs.map +1 -0
- package/lib/chunk-63TTSE4U.cjs +93 -0
- package/lib/chunk-63TTSE4U.cjs.map +1 -0
- package/lib/chunk-6I5KGZAU.js +90 -0
- package/lib/chunk-6I5KGZAU.js.map +1 -0
- package/lib/chunk-7OPCEEJV.cjs +88 -0
- package/lib/chunk-7OPCEEJV.cjs.map +1 -0
- package/lib/chunk-BWDFMGX6.cjs +84 -0
- package/lib/chunk-BWDFMGX6.cjs.map +1 -0
- package/lib/chunk-C6AOOHOR.cjs +61 -0
- package/lib/chunk-C6AOOHOR.cjs.map +1 -0
- package/lib/chunk-CFU5DNH2.cjs +19 -0
- package/lib/chunk-CFU5DNH2.cjs.map +1 -0
- package/lib/chunk-CLOSZJSZ.cjs +66 -0
- package/lib/chunk-CLOSZJSZ.cjs.map +1 -0
- package/lib/chunk-DTD2FIJ3.js +17 -0
- package/lib/chunk-DTD2FIJ3.js.map +1 -0
- package/lib/chunk-E2ERI2EX.js +114 -0
- package/lib/chunk-E2ERI2EX.js.map +1 -0
- package/lib/chunk-ELYBYKRM.cjs +32 -0
- package/lib/chunk-ELYBYKRM.cjs.map +1 -0
- package/lib/chunk-F2RLD5SN.cjs +816 -0
- package/lib/chunk-F2RLD5SN.cjs.map +1 -0
- package/lib/chunk-FOU52N6P.js +86 -0
- package/lib/chunk-FOU52N6P.js.map +1 -0
- package/lib/chunk-FWF7HBWB.js +78 -0
- package/lib/chunk-FWF7HBWB.js.map +1 -0
- package/lib/chunk-GES5UXTI.js +64 -0
- package/lib/chunk-GES5UXTI.js.map +1 -0
- package/lib/chunk-HAZ53WDW.cjs +26 -0
- package/lib/chunk-HAZ53WDW.cjs.map +1 -0
- package/lib/chunk-HOL7SMFN.cjs +59 -0
- package/lib/chunk-HOL7SMFN.cjs.map +1 -0
- package/lib/chunk-IW2T22VR.js +3 -0
- package/lib/chunk-IW2T22VR.js.map +1 -0
- package/lib/chunk-N567T7FT.cjs +4 -0
- package/lib/chunk-N567T7FT.cjs.map +1 -0
- package/lib/chunk-QRZGS4TB.js +30 -0
- package/lib/chunk-QRZGS4TB.js.map +1 -0
- package/lib/chunk-RDLVNJEW.js +82 -0
- package/lib/chunk-RDLVNJEW.js.map +1 -0
- package/lib/chunk-U2CAAK2J.js +59 -0
- package/lib/chunk-U2CAAK2J.js.map +1 -0
- package/lib/chunk-UB3WPGDV.js +12 -0
- package/lib/chunk-UB3WPGDV.js.map +1 -0
- package/lib/chunk-UYATAIX7.js +24 -0
- package/lib/chunk-UYATAIX7.js.map +1 -0
- package/lib/chunk-VAL4CE5R.js +82 -0
- package/lib/chunk-VAL4CE5R.js.map +1 -0
- package/lib/chunk-VFTFSHXQ.cjs +88 -0
- package/lib/chunk-VFTFSHXQ.cjs.map +1 -0
- package/lib/chunk-W6XILXYS.cjs +61 -0
- package/lib/chunk-W6XILXYS.cjs.map +1 -0
- package/lib/chunk-WRVLCJQZ.cjs +43 -0
- package/lib/chunk-WRVLCJQZ.cjs.map +1 -0
- package/lib/chunk-YS5PCY5D.js +76 -0
- package/lib/chunk-YS5PCY5D.js.map +1 -0
- package/lib/chunk-YYHZPR4Z.js +59 -0
- package/lib/chunk-YYHZPR4Z.js.map +1 -0
- package/lib/chunk-Z4IAVXOO.cjs +80 -0
- package/lib/chunk-Z4IAVXOO.cjs.map +1 -0
- package/lib/commercelayer.cjs +38 -0
- package/lib/commercelayer.cjs.map +1 -0
- package/lib/commercelayer.d.cts +58 -0
- package/lib/commercelayer.d.ts +56 -0
- package/lib/commercelayer.js +7 -0
- package/lib/commercelayer.js.map +1 -0
- package/lib/enum.cjs +52 -0
- package/lib/enum.cjs.map +1 -0
- package/lib/enum.d.cts +2 -0
- package/lib/enum.d.ts +2 -0
- package/lib/enum.js +3 -0
- package/lib/enum.js.map +1 -0
- package/lib/error-CVRdwnY9.d.cts +33 -0
- package/lib/error-CVRdwnY9.d.ts +33 -0
- package/lib/index.cjs +57 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +14 -0
- package/lib/index.d.ts +9 -1591
- package/lib/index.js +26 -1
- package/lib/index.js.map +1 -0
- package/lib/model.cjs +4 -0
- package/lib/model.cjs.map +1 -0
- package/lib/model.d.cts +2 -0
- package/lib/model.d.ts +2 -0
- package/lib/model.js +3 -0
- package/lib/model.js.map +1 -0
- package/lib/resources/api_credentials.cjs +15 -0
- package/lib/resources/api_credentials.cjs.map +1 -0
- package/lib/resources/api_credentials.d.cts +5 -0
- package/lib/resources/api_credentials.d.ts +2 -0
- package/lib/resources/api_credentials.js +7 -0
- package/lib/resources/api_credentials.js.map +1 -0
- package/lib/resources/application_memberships.cjs +15 -0
- package/lib/resources/application_memberships.cjs.map +1 -0
- package/lib/resources/application_memberships.d.cts +5 -0
- package/lib/resources/application_memberships.d.ts +2 -0
- package/lib/resources/application_memberships.js +7 -0
- package/lib/resources/application_memberships.js.map +1 -0
- package/lib/resources/identity_providers.cjs +15 -0
- package/lib/resources/identity_providers.cjs.map +1 -0
- package/lib/resources/identity_providers.d.cts +5 -0
- package/lib/resources/identity_providers.d.ts +2 -0
- package/lib/resources/identity_providers.js +7 -0
- package/lib/resources/identity_providers.js.map +1 -0
- package/lib/resources/membership_profiles.cjs +15 -0
- package/lib/resources/membership_profiles.cjs.map +1 -0
- package/lib/resources/membership_profiles.d.cts +5 -0
- package/lib/resources/membership_profiles.d.ts +2 -0
- package/lib/resources/membership_profiles.js +7 -0
- package/lib/resources/membership_profiles.js.map +1 -0
- package/lib/resources/memberships.cjs +15 -0
- package/lib/resources/memberships.cjs.map +1 -0
- package/lib/resources/memberships.d.cts +5 -0
- package/lib/resources/memberships.d.ts +2 -0
- package/lib/resources/memberships.js +7 -0
- package/lib/resources/memberships.js.map +1 -0
- package/lib/resources/organizations.cjs +15 -0
- package/lib/resources/organizations.cjs.map +1 -0
- package/lib/resources/organizations.d.cts +5 -0
- package/lib/resources/organizations.d.ts +2 -0
- package/lib/resources/organizations.js +7 -0
- package/lib/resources/organizations.js.map +1 -0
- package/lib/resources/permissions.cjs +15 -0
- package/lib/resources/permissions.cjs.map +1 -0
- package/lib/resources/permissions.d.cts +5 -0
- package/lib/resources/permissions.d.ts +2 -0
- package/lib/resources/permissions.js +7 -0
- package/lib/resources/permissions.js.map +1 -0
- package/lib/resources/roles.cjs +15 -0
- package/lib/resources/roles.cjs.map +1 -0
- package/lib/resources/roles.d.cts +5 -0
- package/lib/resources/roles.d.ts +2 -0
- package/lib/resources/roles.js +7 -0
- package/lib/resources/roles.js.map +1 -0
- package/lib/resources/users.cjs +15 -0
- package/lib/resources/users.cjs.map +1 -0
- package/lib/resources/users.d.cts +5 -0
- package/lib/resources/users.d.ts +2 -0
- package/lib/resources/users.js +7 -0
- package/lib/resources/users.js.map +1 -0
- package/lib/resources/versions.cjs +15 -0
- package/lib/resources/versions.cjs.map +1 -0
- package/lib/resources/versions.d.cts +5 -0
- package/lib/resources/versions.d.ts +2 -0
- package/lib/resources/versions.js +7 -0
- package/lib/resources/versions.js.map +1 -0
- package/lib/static.cjs +17 -0
- package/lib/static.cjs.map +1 -0
- package/lib/static.d.cts +18 -0
- package/lib/static.d.ts +18 -0
- package/lib/static.js +8 -0
- package/lib/static.js.map +1 -0
- package/lib/version.cjs +20 -0
- package/lib/version.cjs.map +1 -0
- package/lib/version.d.cts +12 -0
- package/lib/version.d.ts +12 -0
- package/lib/version.js +3 -0
- package/lib/version.js.map +1 -0
- package/package.json +36 -26
- package/lib/index.mjs +0 -1
package/lib/enum.cjs
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkVFTFSHXQ_cjs = require('./chunk-VFTFSHXQ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "creatableResources", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkVFTFSHXQ_cjs.creatableResources; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "deletableResources", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkVFTFSHXQ_cjs.deletableResources; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "getResources", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkVFTFSHXQ_cjs.getResources; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getSingletons", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkVFTFSHXQ_cjs.getSingletons; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "isCreatable", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkVFTFSHXQ_cjs.isCreatable; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "isDeletable", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkVFTFSHXQ_cjs.isDeletable; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isSingleton", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkVFTFSHXQ_cjs.isSingleton; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "isUpdatable", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkVFTFSHXQ_cjs.isUpdatable; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "resourceList", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkVFTFSHXQ_cjs.resourceList; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "singletonList", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkVFTFSHXQ_cjs.singletonList; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "updatableResources", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkVFTFSHXQ_cjs.updatableResources; }
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=enum.cjs.map
|
|
52
|
+
//# sourceMappingURL=enum.cjs.map
|
package/lib/enum.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"enum.cjs"}
|
package/lib/enum.d.cts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { C as CreatableResource, l as CreatableResourceType, D as DeletableResource, m as DeletableResourceType, s as ListableResource, t as ListableResourceType, a7 as ResourceFields, ac as ResourceSortFields, ae as ResourceTypeLock, aj as RetrievableResource, ak as RetrievableResourceType, aq as UpdatableResource, ar as UpdatableResourceType, b0 as creatableResources, b1 as deletableResources, aB as getResources, b2 as getSingletons, b3 as isCreatable, b4 as isDeletable, b5 as isSingleton, b6 as isUpdatable, az as resourceList, aA as singletonList, b7 as updatableResources } from './api-BY0jb79k.cjs';
|
|
2
|
+
import './actions.cjs';
|
package/lib/enum.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { C as CreatableResource, l as CreatableResourceType, D as DeletableResource, m as DeletableResourceType, s as ListableResource, t as ListableResourceType, a7 as ResourceFields, ac as ResourceSortFields, ae as ResourceTypeLock, aj as RetrievableResource, ak as RetrievableResourceType, aq as UpdatableResource, ar as UpdatableResourceType, b0 as creatableResources, b1 as deletableResources, aB as getResources, b2 as getSingletons, b3 as isCreatable, b4 as isDeletable, b5 as isSingleton, b6 as isUpdatable, az as resourceList, aA as singletonList, b7 as updatableResources } from './api-e4p3q-SB.js';
|
|
2
|
+
import './actions.js';
|
package/lib/enum.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { creatableResources, deletableResources, getResources, getSingletons, isCreatable, isDeletable, isSingleton, isUpdatable, resourceList, singletonList, updatableResources } from './chunk-YS5PCY5D.js';
|
|
2
|
+
//# sourceMappingURL=enum.js.map
|
|
3
|
+
//# sourceMappingURL=enum.js.map
|
package/lib/enum.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"enum.js"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare enum ErrorType {
|
|
2
|
+
CLIENT = "client",// Generic Client error
|
|
3
|
+
REQUEST = "request",// Error preparing API request
|
|
4
|
+
RESPONSE = "response",// Error response from API
|
|
5
|
+
CANCEL = "cancel",// Forced request abort using interceptor
|
|
6
|
+
PARSE = "parse",// Error parsing API resource
|
|
7
|
+
TIMEOUT = "timeout",// Timeout error
|
|
8
|
+
TOKEN_REFRESH = "token-refresh"
|
|
9
|
+
}
|
|
10
|
+
declare class SdkError extends Error {
|
|
11
|
+
static NAME: string;
|
|
12
|
+
static isSdkError(error: any): error is SdkError;
|
|
13
|
+
type: ErrorType;
|
|
14
|
+
code?: string;
|
|
15
|
+
source?: Error;
|
|
16
|
+
constructor(error: {
|
|
17
|
+
message: string;
|
|
18
|
+
type?: ErrorType;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
declare class ApiError extends SdkError {
|
|
22
|
+
static NAME: string;
|
|
23
|
+
static isApiError(error: any): error is ApiError;
|
|
24
|
+
errors: any[];
|
|
25
|
+
status?: number;
|
|
26
|
+
statusText?: string;
|
|
27
|
+
constructor(error: {
|
|
28
|
+
message: string;
|
|
29
|
+
});
|
|
30
|
+
first(): any;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ApiError as A, ErrorType as E, SdkError as S };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare enum ErrorType {
|
|
2
|
+
CLIENT = "client",// Generic Client error
|
|
3
|
+
REQUEST = "request",// Error preparing API request
|
|
4
|
+
RESPONSE = "response",// Error response from API
|
|
5
|
+
CANCEL = "cancel",// Forced request abort using interceptor
|
|
6
|
+
PARSE = "parse",// Error parsing API resource
|
|
7
|
+
TIMEOUT = "timeout",// Timeout error
|
|
8
|
+
TOKEN_REFRESH = "token-refresh"
|
|
9
|
+
}
|
|
10
|
+
declare class SdkError extends Error {
|
|
11
|
+
static NAME: string;
|
|
12
|
+
static isSdkError(error: any): error is SdkError;
|
|
13
|
+
type: ErrorType;
|
|
14
|
+
code?: string;
|
|
15
|
+
source?: Error;
|
|
16
|
+
constructor(error: {
|
|
17
|
+
message: string;
|
|
18
|
+
type?: ErrorType;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
declare class ApiError extends SdkError {
|
|
22
|
+
static NAME: string;
|
|
23
|
+
static isApiError(error: any): error is ApiError;
|
|
24
|
+
errors: any[];
|
|
25
|
+
status?: number;
|
|
26
|
+
statusText?: string;
|
|
27
|
+
constructor(error: {
|
|
28
|
+
message: string;
|
|
29
|
+
});
|
|
30
|
+
first(): any;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ApiError as A, ErrorType as E, SdkError as S };
|
package/lib/index.cjs
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkWRVLCJQZ_cjs = require('./chunk-WRVLCJQZ.cjs');
|
|
6
|
+
var chunk63TTSE4U_cjs = require('./chunk-63TTSE4U.cjs');
|
|
7
|
+
require('./chunk-5KN7B3T2.cjs');
|
|
8
|
+
require('./chunk-N567T7FT.cjs');
|
|
9
|
+
require('./chunk-HOL7SMFN.cjs');
|
|
10
|
+
require('./chunk-3XLKYXM6.cjs');
|
|
11
|
+
require('./chunk-ELYBYKRM.cjs');
|
|
12
|
+
require('./chunk-HAZ53WDW.cjs');
|
|
13
|
+
require('./chunk-W6XILXYS.cjs');
|
|
14
|
+
require('./chunk-7OPCEEJV.cjs');
|
|
15
|
+
require('./chunk-CLOSZJSZ.cjs');
|
|
16
|
+
require('./chunk-C6AOOHOR.cjs');
|
|
17
|
+
require('./chunk-BWDFMGX6.cjs');
|
|
18
|
+
require('./chunk-Z4IAVXOO.cjs');
|
|
19
|
+
require('./chunk-F2RLD5SN.cjs');
|
|
20
|
+
require('./chunk-CFU5DNH2.cjs');
|
|
21
|
+
var chunk3FP4NVLD_cjs = require('./chunk-3FP4NVLD.cjs');
|
|
22
|
+
var chunkVFTFSHXQ_cjs = require('./chunk-VFTFSHXQ.cjs');
|
|
23
|
+
|
|
24
|
+
// src/index.ts
|
|
25
|
+
var src_default = chunk63TTSE4U_cjs.bundle_default;
|
|
26
|
+
|
|
27
|
+
Object.defineProperty(exports, "CommerceLayerProvisioningStatic", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkWRVLCJQZ_cjs.CommerceLayerProvisioningStatic; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "CommerceLayerProvisioning", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk63TTSE4U_cjs.bundle_default; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "API_SCHEMA_VERSION", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunk3FP4NVLD_cjs.API_SCHEMA_VERSION; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "API_SUPPORTED_VERSIONS", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunk3FP4NVLD_cjs.API_SUPPORTED_VERSIONS; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "SDK_VERSION", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunk3FP4NVLD_cjs.SDK_VERSION; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "resourceList", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkVFTFSHXQ_cjs.resourceList; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "singletonList", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkVFTFSHXQ_cjs.singletonList; }
|
|
54
|
+
});
|
|
55
|
+
exports.default = src_default;
|
|
56
|
+
//# sourceMappingURL=index.cjs.map
|
|
57
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +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"]}
|
package/lib/index.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CommerceLayerProvisioning } from './bundle.cjs';
|
|
2
|
+
export { CommerceLayerProvisioningClient } from './bundle.cjs';
|
|
3
|
+
export { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, ApiVersion, SDK_VERSION } from './version.cjs';
|
|
4
|
+
export { A as ApiCredential, a as ApiCredentialCreate, b as ApiCredentialSort, c as ApiCredentialUpdate, d as ApiCredentials, e as ApiResource, f as ApiSingleton, g as ApplicationMembership, h as ApplicationMembershipCreate, i as ApplicationMembershipSort, j as ApplicationMembershipUpdate, k as ApplicationMemberships, C as CreatableResource, l as CreatableResourceType, D as DeletableResource, m as DeletableResourceType, E as ErrorObj, H as HeadersObj, I as IdentityProvider, n as IdentityProviderCreate, o as IdentityProviderSort, p as IdentityProviderUpdate, q as IdentityProviders, L as ListMeta, r as ListResponse, s as ListableResource, t as ListableResourceType, M as Membership, u as MembershipCreate, v as MembershipProfile, w as MembershipProfileCreate, x as MembershipProfileSort, y as MembershipProfileUpdate, z as MembershipProfiles, B as MembershipSort, F as MembershipUpdate, G as Memberships, J as Metadata, O as Organization, K as OrganizationCreate, N as OrganizationSort, P as OrganizationUpdate, Q as Organizations, R as Permission, S as PermissionCreate, T as PermissionSort, U as PermissionUpdate, V as Permissions, W as QueryFields, X as QueryFilter, Y as QueryInclude, Z as QueryPageCursor, _ as QueryPageNumber, $ as QueryPageSize, a0 as QueryParams, a1 as QueryParamsList, a2 as QueryParamsRetrieve, a3 as QuerySort, a4 as RequestObj, a5 as Resource, a6 as ResourceCreate, a7 as ResourceFields, a8 as ResourceFilter, a9 as ResourceId, aa as ResourceRel, ab as ResourceSort, ac as ResourceSortFields, ad as ResourceType, ae as ResourceTypeLock, af as ResourceUpdate, ag as ResourcesConfig, ah as ResourcesInitConfig, ai as ResponseObj, aj as RetrievableResource, ak as RetrievableResourceType, al as Role, am as RoleCreate, an as RoleSort, ao as RoleUpdate, ap as Roles, aq as UpdatableResource, ar as UpdatableResourceType, as as User, at as UserSort, au as UserUpdate, av as Users, aw as Version, ax as VersionSort, ay as Versions, az as resourceList, aA as singletonList } from './api-BY0jb79k.cjs';
|
|
5
|
+
export { CommerceLayerProvisioningStatic } from './static.cjs';
|
|
6
|
+
export { A as ApiError, E as ErrorType, S as SdkError } from './error-CVRdwnY9.cjs';
|
|
7
|
+
export { TransferOwnershipDataType } from './actions.cjs';
|
|
8
|
+
export { CommerceLayerConfig, CommerceLayerInitConfig } from './commercelayer.cjs';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
export = CommerceLayerProvisioning;
|
|
14
|
+
export { CommerceLayerProvisioning };
|