@commercelayer/provisioning-sdk 3.0.0-beta.2 → 3.0.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/README.md +23 -4
- package/lib/{api-C_E9e1ea.d.ts → api-CnrR2t1g.d.ts} +50 -26
- package/lib/{api-C4jp_9vb.d.cts → api-R3mMNn87.d.cts} +50 -26
- 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 +4 -4
- package/lib/binding.d.ts +4 -4
- 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-3PJNJ7B6.js → chunk-2FZWJMYX.js} +5 -5
- package/lib/chunk-2FZWJMYX.js.map +1 -0
- package/lib/{chunk-OROPOAHK.cjs → chunk-3UQ4UNHL.cjs} +6 -6
- package/lib/chunk-3UQ4UNHL.cjs.map +1 -0
- package/lib/{chunk-6MXIGF2G.cjs → chunk-5RZ2O2CJ.cjs} +10 -10
- package/lib/{chunk-6MXIGF2G.cjs.map → chunk-5RZ2O2CJ.cjs.map} +1 -1
- package/lib/{chunk-NDKGLF4B.cjs → chunk-5V2JEFHA.cjs} +4 -4
- package/lib/chunk-5V2JEFHA.cjs.map +1 -0
- package/lib/{chunk-T2U6MUX4.js → chunk-7BSFPWED.js} +3 -3
- package/lib/chunk-7BSFPWED.js.map +1 -0
- package/lib/{chunk-EVDEBFHZ.cjs → chunk-ATSYNXFW.cjs} +35 -13
- package/lib/chunk-ATSYNXFW.cjs.map +1 -0
- package/lib/{chunk-MHV7FMLE.cjs → chunk-B77PPXQ4.cjs} +4 -4
- package/lib/chunk-B77PPXQ4.cjs.map +1 -0
- package/lib/{chunk-ZWZHZ4SU.js → chunk-BOAFNR4A.js} +3 -3
- package/lib/chunk-BOAFNR4A.js.map +1 -0
- package/lib/{chunk-3NDVX4SE.cjs → chunk-C4PVJRMW.cjs} +4 -4
- package/lib/chunk-C4PVJRMW.cjs.map +1 -0
- package/lib/{chunk-GHXKZEH7.js → chunk-CR45TDCY.js} +30 -8
- package/lib/chunk-CR45TDCY.js.map +1 -0
- package/lib/{chunk-7YEOUGXO.js → chunk-D7JC6E6O.js} +3 -3
- package/lib/chunk-D7JC6E6O.js.map +1 -0
- package/lib/{chunk-DYMRH6LP.cjs → chunk-EXABJOAU.cjs} +4 -4
- package/lib/chunk-EXABJOAU.cjs.map +1 -0
- package/lib/{chunk-UILXNOZE.cjs → chunk-F52NPQLI.cjs} +4 -4
- package/lib/{chunk-UILXNOZE.cjs.map → chunk-F52NPQLI.cjs.map} +1 -1
- package/lib/{chunk-STPXKF53.js → chunk-H76I777K.js} +4 -4
- package/lib/{chunk-STPXKF53.js.map → chunk-H76I777K.js.map} +1 -1
- package/lib/{chunk-3ILNEP2F.cjs → chunk-HKSMUVBZ.cjs} +26 -26
- package/lib/{chunk-3ILNEP2F.cjs.map → chunk-HKSMUVBZ.cjs.map} +1 -1
- package/lib/{chunk-IRFPCJTG.js → chunk-IRSVIAA3.js} +3 -3
- package/lib/chunk-IRSVIAA3.js.map +1 -0
- package/lib/{chunk-WMUY7Z2Q.js → chunk-JEP7T7W5.js} +3 -3
- package/lib/chunk-JEP7T7W5.js.map +1 -0
- package/lib/{chunk-KO4FQ4V2.cjs → chunk-JO4BHGCD.cjs} +4 -4
- package/lib/chunk-JO4BHGCD.cjs.map +1 -0
- package/lib/{chunk-6FB54J7W.cjs → chunk-KOCBBI6X.cjs} +4 -4
- package/lib/chunk-KOCBBI6X.cjs.map +1 -0
- package/lib/{chunk-KT6LCJJQ.js → chunk-LWRSBPJL.js} +3 -3
- package/lib/chunk-LWRSBPJL.js.map +1 -0
- package/lib/{chunk-TY46WNR6.cjs → chunk-NYLVQKFV.cjs} +8 -8
- package/lib/{chunk-TY46WNR6.cjs.map → chunk-NYLVQKFV.cjs.map} +1 -1
- package/lib/{chunk-ECGUWRRG.js → chunk-OJYX2GPK.js} +3 -3
- package/lib/chunk-OJYX2GPK.js.map +1 -0
- package/lib/{chunk-YUNEDDTL.js → chunk-OO2DV22U.js} +14 -14
- package/lib/{chunk-YUNEDDTL.js.map → chunk-OO2DV22U.js.map} +1 -1
- package/lib/{chunk-FRLV5YFL.cjs → chunk-PG4GQVZI.cjs} +4 -4
- package/lib/{chunk-FRLV5YFL.cjs.map → chunk-PG4GQVZI.cjs.map} +1 -1
- package/lib/{chunk-CWXGTX7W.js → chunk-PKQGWLOZ.js} +4 -4
- package/lib/{chunk-CWXGTX7W.js.map → chunk-PKQGWLOZ.js.map} +1 -1
- package/lib/{chunk-FMHTNUZ4.cjs → chunk-RADEEFOM.cjs} +4 -4
- package/lib/chunk-RADEEFOM.cjs.map +1 -0
- package/lib/chunk-T7GAOLT5.js +12 -0
- package/lib/chunk-T7GAOLT5.js.map +1 -0
- package/lib/{chunk-XS6QLJHG.cjs → chunk-TVU45BYJ.cjs} +5 -5
- package/lib/chunk-TVU45BYJ.cjs.map +1 -0
- package/lib/{chunk-LTIWXCVE.js → chunk-VGP6LU6F.js} +3 -3
- package/lib/{chunk-LTIWXCVE.js.map → chunk-VGP6LU6F.js.map} +1 -1
- package/lib/{chunk-TXONK7R5.cjs → chunk-VUWMD2QC.cjs} +4 -4
- package/lib/chunk-VUWMD2QC.cjs.map +1 -0
- package/lib/{chunk-I4LPOTDO.js → chunk-YT2JKVV4.js} +3 -3
- package/lib/{chunk-I4LPOTDO.js.map → chunk-YT2JKVV4.js.map} +1 -1
- package/lib/{chunk-G4JBHI2H.js → chunk-ZJNUYDXX.js} +3 -3
- package/lib/chunk-ZJNUYDXX.js.map +1 -0
- package/lib/commercelayer.cjs +10 -10
- package/lib/commercelayer.d.cts +2 -2
- package/lib/commercelayer.d.ts +2 -2
- 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.d.cts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -8
- package/lib/chunk-3NDVX4SE.cjs.map +0 -1
- package/lib/chunk-3PJNJ7B6.js.map +0 -1
- package/lib/chunk-6FB54J7W.cjs.map +0 -1
- package/lib/chunk-7YEOUGXO.js.map +0 -1
- package/lib/chunk-DYMRH6LP.cjs.map +0 -1
- package/lib/chunk-ECGUWRRG.js.map +0 -1
- package/lib/chunk-EVDEBFHZ.cjs.map +0 -1
- package/lib/chunk-FMHTNUZ4.cjs.map +0 -1
- package/lib/chunk-G4JBHI2H.js.map +0 -1
- package/lib/chunk-GHXKZEH7.js.map +0 -1
- package/lib/chunk-IRFPCJTG.js.map +0 -1
- package/lib/chunk-KO4FQ4V2.cjs.map +0 -1
- package/lib/chunk-KT6LCJJQ.js.map +0 -1
- package/lib/chunk-MHV7FMLE.cjs.map +0 -1
- package/lib/chunk-NDKGLF4B.cjs.map +0 -1
- package/lib/chunk-OROPOAHK.cjs.map +0 -1
- package/lib/chunk-SQLX22US.js +0 -12
- package/lib/chunk-SQLX22US.js.map +0 -1
- package/lib/chunk-T2U6MUX4.js.map +0 -1
- package/lib/chunk-TXONK7R5.cjs.map +0 -1
- package/lib/chunk-WMUY7Z2Q.js.map +0 -1
- package/lib/chunk-XS6QLJHG.cjs.map +0 -1
- package/lib/chunk-ZWZHZ4SU.js.map +0 -1
package/lib/api.cjs
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-N567T7FT.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
4
|
+
var chunkPG4GQVZI_cjs = require('./chunk-PG4GQVZI.cjs');
|
|
5
|
+
var chunkJO4BHGCD_cjs = require('./chunk-JO4BHGCD.cjs');
|
|
6
|
+
var chunkKOCBBI6X_cjs = require('./chunk-KOCBBI6X.cjs');
|
|
7
|
+
var chunkEXABJOAU_cjs = require('./chunk-EXABJOAU.cjs');
|
|
8
|
+
var chunkB77PPXQ4_cjs = require('./chunk-B77PPXQ4.cjs');
|
|
9
|
+
var chunkF52NPQLI_cjs = require('./chunk-F52NPQLI.cjs');
|
|
10
|
+
var chunkVUWMD2QC_cjs = require('./chunk-VUWMD2QC.cjs');
|
|
11
|
+
var chunkC4PVJRMW_cjs = require('./chunk-C4PVJRMW.cjs');
|
|
12
|
+
var chunkRADEEFOM_cjs = require('./chunk-RADEEFOM.cjs');
|
|
13
|
+
var chunk5V2JEFHA_cjs = require('./chunk-5V2JEFHA.cjs');
|
|
14
|
+
require('./chunk-ATSYNXFW.cjs');
|
|
15
|
+
require('./chunk-3UQ4UNHL.cjs');
|
|
16
|
+
require('./chunk-TVU45BYJ.cjs');
|
|
17
17
|
require('./chunk-VFTFSHXQ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
Object.defineProperty(exports, "permissions", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkPG4GQVZI_cjs.permissions_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "roles", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkJO4BHGCD_cjs.roles_default; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "user", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkKOCBBI6X_cjs.users_default; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "versions", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkEXABJOAU_cjs.versions_default; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "api_credentials", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkB77PPXQ4_cjs.api_credentials_default; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "application_memberships", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkF52NPQLI_cjs.application_memberships_default; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "identity_providers", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkVUWMD2QC_cjs.identity_providers_default; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "membership_profiles", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkC4PVJRMW_cjs.membership_profiles_default; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "memberships", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkRADEEFOM_cjs.memberships_default; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "organizations", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk5V2JEFHA_cjs.organizations_default; }
|
|
60
60
|
});
|
|
61
61
|
//# sourceMappingURL=api.cjs.map
|
|
62
62
|
//# sourceMappingURL=api.cjs.map
|
package/lib/api.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as ApiCredentials, n as ApplicationMemberships, t as IdentityProviders, G as MembershipProfiles, N as Memberships, U as Organizations, Z as Permissions,
|
|
1
|
+
export { f as ApiCredentials, n as ApplicationMemberships, t as IdentityProviders, G as MembershipProfiles, N as Memberships, U as Organizations, Z as Permissions, ar as Roles, ay as Users, aB as Versions, b9 as api_credentials, aX as application_memberships, a$ as identity_providers, aV as membership_profiles, aR as memberships, aT as organizations, aN as permissions, aP as roles, aZ as user, aL as versions } from './api-R3mMNn87.cjs';
|
|
2
2
|
import './actions.cjs';
|
package/lib/api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as ApiCredentials, n as ApplicationMemberships, t as IdentityProviders, G as MembershipProfiles, N as Memberships, U as Organizations, Z as Permissions,
|
|
1
|
+
export { f as ApiCredentials, n as ApplicationMemberships, t as IdentityProviders, G as MembershipProfiles, N as Memberships, U as Organizations, Z as Permissions, ar as Roles, ay as Users, aB as Versions, b9 as api_credentials, aX as application_memberships, a$ as identity_providers, aV as membership_profiles, aR as memberships, aT as organizations, aN as permissions, aP as roles, aZ as user, aL as versions } from './api-CnrR2t1g.js';
|
|
2
2
|
import './actions.js';
|
package/lib/api.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import './chunk-IW2T22VR.js';
|
|
2
|
-
export { permissions_default as permissions } from './chunk-
|
|
3
|
-
export { roles_default as roles } from './chunk-
|
|
4
|
-
export { users_default as user } from './chunk-
|
|
5
|
-
export { versions_default as versions } from './chunk-
|
|
6
|
-
export { api_credentials_default as api_credentials } from './chunk-
|
|
7
|
-
export { application_memberships_default as application_memberships } from './chunk-
|
|
8
|
-
export { identity_providers_default as identity_providers } from './chunk-
|
|
9
|
-
export { membership_profiles_default as membership_profiles } from './chunk-
|
|
10
|
-
export { memberships_default as memberships } from './chunk-
|
|
11
|
-
export { organizations_default as organizations } from './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
2
|
+
export { permissions_default as permissions } from './chunk-YT2JKVV4.js';
|
|
3
|
+
export { roles_default as roles } from './chunk-IRSVIAA3.js';
|
|
4
|
+
export { users_default as user } from './chunk-BOAFNR4A.js';
|
|
5
|
+
export { versions_default as versions } from './chunk-ZJNUYDXX.js';
|
|
6
|
+
export { api_credentials_default as api_credentials } from './chunk-D7JC6E6O.js';
|
|
7
|
+
export { application_memberships_default as application_memberships } from './chunk-VGP6LU6F.js';
|
|
8
|
+
export { identity_providers_default as identity_providers } from './chunk-JEP7T7W5.js';
|
|
9
|
+
export { membership_profiles_default as membership_profiles } from './chunk-LWRSBPJL.js';
|
|
10
|
+
export { memberships_default as memberships } from './chunk-7BSFPWED.js';
|
|
11
|
+
export { organizations_default as organizations } from './chunk-OJYX2GPK.js';
|
|
12
|
+
import './chunk-CR45TDCY.js';
|
|
13
|
+
import './chunk-2FZWJMYX.js';
|
|
14
|
+
import './chunk-T7GAOLT5.js';
|
|
15
15
|
import './chunk-YS5PCY5D.js';
|
|
16
16
|
//# sourceMappingURL=api.js.map
|
|
17
17
|
//# sourceMappingURL=api.js.map
|
package/lib/binding.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk3UQ4UNHL_cjs = require('./chunk-3UQ4UNHL.cjs');
|
|
4
|
+
require('./chunk-TVU45BYJ.cjs');
|
|
5
5
|
require('./chunk-VFTFSHXQ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "binding", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk3UQ4UNHL_cjs.binding; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=binding.cjs.map
|
|
14
14
|
//# sourceMappingURL=binding.cjs.map
|
package/lib/binding.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getResources } from './api-
|
|
2
|
-
export { R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock } from './api-
|
|
1
|
+
import { g as getResources } from './api-R3mMNn87.cjs';
|
|
2
|
+
export { R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock } from './api-R3mMNn87.cjs';
|
|
3
3
|
import './actions.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -10,8 +10,8 @@ declare const binding: {
|
|
|
10
10
|
readonly subdomain: "provisioning";
|
|
11
11
|
readonly name: "provisioning";
|
|
12
12
|
readonly sdkVersion: string;
|
|
13
|
-
readonly schemaVersion: "
|
|
14
|
-
readonly supportedVersions: readonly [];
|
|
13
|
+
readonly schemaVersion: "2026-05";
|
|
14
|
+
readonly supportedVersions: readonly ["2026-05"];
|
|
15
15
|
readonly resourceList: readonly ("api_credentials" | "application_memberships" | "identity_providers" | "memberships" | "membership_profiles" | "organizations" | "permissions" | "roles" | "users" | "versions")[];
|
|
16
16
|
readonly getResources: typeof getResources;
|
|
17
17
|
};
|
package/lib/binding.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getResources } from './api-
|
|
2
|
-
export { R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock } from './api-
|
|
1
|
+
import { g as getResources } from './api-CnrR2t1g.js';
|
|
2
|
+
export { R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock } from './api-CnrR2t1g.js';
|
|
3
3
|
import './actions.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -10,8 +10,8 @@ declare const binding: {
|
|
|
10
10
|
readonly subdomain: "provisioning";
|
|
11
11
|
readonly name: "provisioning";
|
|
12
12
|
readonly sdkVersion: string;
|
|
13
|
-
readonly schemaVersion: "
|
|
14
|
-
readonly supportedVersions: readonly [];
|
|
13
|
+
readonly schemaVersion: "2026-05";
|
|
14
|
+
readonly supportedVersions: readonly ["2026-05"];
|
|
15
15
|
readonly resourceList: readonly ("api_credentials" | "application_memberships" | "identity_providers" | "memberships" | "membership_profiles" | "organizations" | "permissions" | "roles" | "users" | "versions")[];
|
|
16
16
|
readonly getResources: typeof getResources;
|
|
17
17
|
};
|
package/lib/binding.js
CHANGED
package/lib/bundle.cjs
CHANGED
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkHKSMUVBZ_cjs = require('./chunk-HKSMUVBZ.cjs');
|
|
6
|
+
require('./chunk-5RZ2O2CJ.cjs');
|
|
7
7
|
require('./chunk-N567T7FT.cjs');
|
|
8
|
-
require('./chunk-
|
|
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-
|
|
8
|
+
require('./chunk-PG4GQVZI.cjs');
|
|
9
|
+
require('./chunk-JO4BHGCD.cjs');
|
|
10
|
+
require('./chunk-KOCBBI6X.cjs');
|
|
11
|
+
require('./chunk-EXABJOAU.cjs');
|
|
12
|
+
require('./chunk-B77PPXQ4.cjs');
|
|
13
|
+
require('./chunk-F52NPQLI.cjs');
|
|
14
|
+
require('./chunk-VUWMD2QC.cjs');
|
|
15
|
+
require('./chunk-C4PVJRMW.cjs');
|
|
16
|
+
require('./chunk-RADEEFOM.cjs');
|
|
17
|
+
require('./chunk-5V2JEFHA.cjs');
|
|
18
|
+
require('./chunk-ATSYNXFW.cjs');
|
|
19
|
+
require('./chunk-3UQ4UNHL.cjs');
|
|
20
|
+
require('./chunk-TVU45BYJ.cjs');
|
|
21
21
|
require('./chunk-VFTFSHXQ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "CommerceLayerProvisioning", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkHKSMUVBZ_cjs.CommerceLayerProvisioning; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "default", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkHKSMUVBZ_cjs.bundle_default; }
|
|
32
32
|
});
|
|
33
33
|
//# sourceMappingURL=bundle.cjs.map
|
|
34
34
|
//# sourceMappingURL=bundle.cjs.map
|
package/lib/bundle.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aE as ResourceAdapter, f as ApiCredentials, n as ApplicationMemberships, t as IdentityProviders, N as Memberships, G as MembershipProfiles, U as Organizations, Z as Permissions, ar as Roles, ay as Users, aB as Versions } from './api-R3mMNn87.cjs';
|
|
2
2
|
import { CommerceLayerInitConfig, CommerceLayerProvisioningBaseClient } from './commercelayer.cjs';
|
|
3
3
|
import './actions.cjs';
|
|
4
4
|
import './error-CVRdwnY9.cjs';
|
package/lib/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aE as ResourceAdapter, f as ApiCredentials, n as ApplicationMemberships, t as IdentityProviders, N as Memberships, G as MembershipProfiles, U as Organizations, Z as Permissions, ar as Roles, ay as Users, aB as Versions } from './api-CnrR2t1g.js';
|
|
2
2
|
import { CommerceLayerInitConfig, CommerceLayerProvisioningBaseClient } from './commercelayer.js';
|
|
3
3
|
import './actions.js';
|
|
4
4
|
import './error-CVRdwnY9.js';
|
package/lib/bundle.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { CommerceLayerProvisioning, bundle_default as default } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { CommerceLayerProvisioning, bundle_default as default } from './chunk-OO2DV22U.js';
|
|
2
|
+
import './chunk-PKQGWLOZ.js';
|
|
3
3
|
import './chunk-IW2T22VR.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
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-
|
|
4
|
+
import './chunk-YT2JKVV4.js';
|
|
5
|
+
import './chunk-IRSVIAA3.js';
|
|
6
|
+
import './chunk-BOAFNR4A.js';
|
|
7
|
+
import './chunk-ZJNUYDXX.js';
|
|
8
|
+
import './chunk-D7JC6E6O.js';
|
|
9
|
+
import './chunk-VGP6LU6F.js';
|
|
10
|
+
import './chunk-JEP7T7W5.js';
|
|
11
|
+
import './chunk-LWRSBPJL.js';
|
|
12
|
+
import './chunk-7BSFPWED.js';
|
|
13
|
+
import './chunk-OJYX2GPK.js';
|
|
14
|
+
import './chunk-CR45TDCY.js';
|
|
15
|
+
import './chunk-2FZWJMYX.js';
|
|
16
|
+
import './chunk-T7GAOLT5.js';
|
|
17
17
|
import './chunk-YS5PCY5D.js';
|
|
18
18
|
//# sourceMappingURL=bundle.js.map
|
|
19
19
|
//# sourceMappingURL=bundle.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SDK_VERSION } from './chunk-
|
|
1
|
+
import { SDK_VERSION } from './chunk-T7GAOLT5.js';
|
|
2
2
|
import { getResources, resourceList } from './chunk-YS5PCY5D.js';
|
|
3
3
|
|
|
4
4
|
// gen/binding.ts
|
|
@@ -6,12 +6,12 @@ var binding = {
|
|
|
6
6
|
subdomain: "provisioning",
|
|
7
7
|
name: "provisioning",
|
|
8
8
|
sdkVersion: SDK_VERSION,
|
|
9
|
-
schemaVersion: "
|
|
10
|
-
supportedVersions: [],
|
|
9
|
+
schemaVersion: "2026-05",
|
|
10
|
+
supportedVersions: ["2026-05"],
|
|
11
11
|
resourceList,
|
|
12
12
|
getResources
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { binding };
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-2FZWJMYX.js.map
|
|
17
|
+
//# sourceMappingURL=chunk-2FZWJMYX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/binding.ts"],"names":[],"mappings":";;;;AAeO,IAAM,OAAA,GAAU;AAAA,EACrB,SAAA,EAAW,cAAA;AAAA,EACX,IAAA,EAAM,cAAA;AAAA,EACN,UAAA,EAAY,WAAA;AAAA,EACZ,aAAA,EAAe,SAAA;AAAA,EACf,iBAAA,EAAmB,CAAC,SAAS,CAAA;AAAA,EAC7B,YAAA;AAAA,EACA;AACF","file":"chunk-2FZWJMYX.js","sourcesContent":["/**\n * © Commerce Layer Inc.\n **/\nimport type { TargetBinding } from '@runtime/binding'\nimport { getResources, resourceList } from './enum'\nimport { SDK_VERSION } from './version'\n\n// Type-level maps cannot be injected, so they are re-exported here and reached\n// through the same `#registry` alias as the value binding below.\nexport type { ResourceFields, ResourceSortFields, ResourceTypeLock } from './enum'\n\n/**\n * This target's binding. Every field comes from the Target config or the parsed\n * schema — edit `sdk.config.ts`, not this file.\n */\nexport const binding = {\n subdomain: 'provisioning',\n name: 'provisioning',\n sdkVersion: SDK_VERSION,\n schemaVersion: '2026-05',\n supportedVersions: ['2026-05'] as const,\n resourceList,\n getResources,\n} as const satisfies TargetBinding\n\n/** The API versions this build accepts as `apiVersion`; `never` on legacy schemas. */\nexport type ApiVersion = (typeof binding.supportedVersions)[number]\n"]}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTVU45BYJ_cjs = require('./chunk-TVU45BYJ.cjs');
|
|
4
4
|
var chunkVFTFSHXQ_cjs = require('./chunk-VFTFSHXQ.cjs');
|
|
5
5
|
|
|
6
6
|
// gen/binding.ts
|
|
7
7
|
var binding = {
|
|
8
8
|
subdomain: "provisioning",
|
|
9
9
|
name: "provisioning",
|
|
10
|
-
sdkVersion:
|
|
11
|
-
schemaVersion: "
|
|
12
|
-
supportedVersions: [],
|
|
10
|
+
sdkVersion: chunkTVU45BYJ_cjs.SDK_VERSION,
|
|
11
|
+
schemaVersion: "2026-05",
|
|
12
|
+
supportedVersions: ["2026-05"],
|
|
13
13
|
resourceList: chunkVFTFSHXQ_cjs.resourceList,
|
|
14
14
|
getResources: chunkVFTFSHXQ_cjs.getResources
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
exports.binding = binding;
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-3UQ4UNHL.cjs.map
|
|
19
|
+
//# sourceMappingURL=chunk-3UQ4UNHL.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/binding.ts"],"names":["SDK_VERSION","resourceList","getResources"],"mappings":";;;;;;AAeO,IAAM,OAAA,GAAU;AAAA,EACrB,SAAA,EAAW,cAAA;AAAA,EACX,IAAA,EAAM,cAAA;AAAA,EACN,UAAA,EAAYA,6BAAA;AAAA,EACZ,aAAA,EAAe,SAAA;AAAA,EACf,iBAAA,EAAmB,CAAC,SAAS,CAAA;AAAA,gBAC7BC,8BAAA;AAAA,gBACAC;AACF","file":"chunk-3UQ4UNHL.cjs","sourcesContent":["/**\n * © Commerce Layer Inc.\n **/\nimport type { TargetBinding } from '@runtime/binding'\nimport { getResources, resourceList } from './enum'\nimport { SDK_VERSION } from './version'\n\n// Type-level maps cannot be injected, so they are re-exported here and reached\n// through the same `#registry` alias as the value binding below.\nexport type { ResourceFields, ResourceSortFields, ResourceTypeLock } from './enum'\n\n/**\n * This target's binding. Every field comes from the Target config or the parsed\n * schema — edit `sdk.config.ts`, not this file.\n */\nexport const binding = {\n subdomain: 'provisioning',\n name: 'provisioning',\n sdkVersion: SDK_VERSION,\n schemaVersion: '2026-05',\n supportedVersions: ['2026-05'] as const,\n resourceList,\n getResources,\n} as const satisfies TargetBinding\n\n/** The API versions this build accepts as `apiVersion`; `never` on legacy schemas. */\nexport type ApiVersion = (typeof binding.supportedVersions)[number]\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkATSYNXFW_cjs = require('./chunk-ATSYNXFW.cjs');
|
|
4
|
+
var chunkTVU45BYJ_cjs = require('./chunk-TVU45BYJ.cjs');
|
|
5
5
|
var chunkVFTFSHXQ_cjs = require('./chunk-VFTFSHXQ.cjs');
|
|
6
6
|
|
|
7
7
|
// src/commercelayer.ts
|
|
8
|
-
var debug =
|
|
8
|
+
var debug = chunkATSYNXFW_cjs.debug_default("commercelayer");
|
|
9
9
|
var CommerceLayerProvisioningBaseClient = class _CommerceLayerProvisioningBaseClient {
|
|
10
|
-
apiSchemaVersion =
|
|
11
|
-
apiSupportedVersions =
|
|
10
|
+
apiSchemaVersion = chunkTVU45BYJ_cjs.API_SCHEMA_VERSION;
|
|
11
|
+
apiSupportedVersions = chunkTVU45BYJ_cjs.API_SUPPORTED_VERSIONS;
|
|
12
12
|
static cl;
|
|
13
13
|
static get(config) {
|
|
14
14
|
if (config) return _CommerceLayerProvisioningBaseClient.cl = new _CommerceLayerProvisioningBaseClient(config);
|
|
@@ -23,14 +23,14 @@ var CommerceLayerProvisioningBaseClient = class _CommerceLayerProvisioningBaseCl
|
|
|
23
23
|
instanceAdapter;
|
|
24
24
|
constructor(config) {
|
|
25
25
|
debug("new commercelayer instance %O", config);
|
|
26
|
-
this.instanceAdapter =
|
|
26
|
+
this.instanceAdapter = chunkATSYNXFW_cjs.ApiResourceAdapter.init(config);
|
|
27
27
|
}
|
|
28
28
|
// Adapter seam. The base (plain SDK) reports the process-global static
|
|
29
29
|
// adapter so `config()` and the getters below stay in sync with the
|
|
30
30
|
// directly-imported resource singletons — unchanged behaviour. The bundle
|
|
31
31
|
// overrides this to return its own `instanceAdapter`, isolating clients.
|
|
32
32
|
get adapter() {
|
|
33
|
-
return
|
|
33
|
+
return chunkATSYNXFW_cjs.ApiResourceAdapter.get();
|
|
34
34
|
}
|
|
35
35
|
get currentOrganization() {
|
|
36
36
|
return this.adapter.client?.currentOrganization;
|
|
@@ -57,7 +57,7 @@ var CommerceLayerProvisioningBaseClient = class _CommerceLayerProvisioningBaseCl
|
|
|
57
57
|
return chunkVFTFSHXQ_cjs.getResources(sort);
|
|
58
58
|
}
|
|
59
59
|
isApiError(error) {
|
|
60
|
-
return
|
|
60
|
+
return chunkATSYNXFW_cjs.isApiError(error);
|
|
61
61
|
}
|
|
62
62
|
addRequestInterceptor(onSuccess, onFailure) {
|
|
63
63
|
this.interceptors.request = { onSuccess, onFailure };
|
|
@@ -114,5 +114,5 @@ var commercelayer_default = CommerceLayerProvisioning;
|
|
|
114
114
|
exports.CommerceLayerProvisioning = CommerceLayerProvisioning;
|
|
115
115
|
exports.CommerceLayerProvisioningBaseClient = CommerceLayerProvisioningBaseClient;
|
|
116
116
|
exports.commercelayer_default = commercelayer_default;
|
|
117
|
-
//# sourceMappingURL=chunk-
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
117
|
+
//# sourceMappingURL=chunk-5RZ2O2CJ.cjs.map
|
|
118
|
+
//# sourceMappingURL=chunk-5RZ2O2CJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commercelayer.ts"],"names":["debug_default","API_SCHEMA_VERSION","API_SUPPORTED_VERSIONS","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;AAiBA,IAAM,KAAA,GAAQA,gCAAM,eAAe,CAAA;AAyBnC,IAAM,mCAAA,GAAN,MAAM,oCAAA,CAAoC;AAAA,EAC/B,gBAAA,GAA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AA;AACjB,MAAA,MAAA,CAAO,KAAK,QAAA,CAAS,EAAA;AACrB,MAAA,IAAI,SAAS,OAAA,EAAS;AACpB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAA,CAAQ,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAA,KAAQ;AACvC,UAAA,EAAA,CAAG,GAAG,CAAA,GAAI,KAAA;AAAA,QACZ,CAAC,CAAA;AACD,QAAA,MAAA,CAAO,OAAA,GAAU,EAAA;AAAA,MACnB;AACA,MAAA,OAAO,QAAA;AAAA,IACT;AAE0B,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY;AAAA,MACtD,SAAA,EAAW,sBAAA;AAAA,MACX,SAAA,EAAW;AAAA,KACb;AACA,IAAA,MAAA,CAAO,EAAA,GAAK,CAAA;AAEZ,IAAA,OAAO,MAAA;AAAA,EACT;AAAA,EAEA,uBAAA,GAAwE;AAKtE,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,MAAA;AAAA,EAChC;AACF;AAEA,IAAM,yBAAA,GAA4B,CAAC,MAAA,KAAyE;AAC1G,EAAA,OAAO,mCAAA,CAAoC,IAAI,MAAM,CAAA;AACvD;AAEA,IAAO,qBAAA,GAAQ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/commercelayer.ts"],"names":["debug_default","API_SCHEMA_VERSION","API_SUPPORTED_VERSIONS","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;AAiBA,IAAM,KAAA,GAAQA,gCAAM,eAAe,CAAA;AAyBnC,IAAM,mCAAA,GAAN,MAAM,oCAAA,CAAoC;AAAA,EAC/B,gBAAA,GAAmBC,oCAAA;AAAA,EACnB,oBAAA,GAAuBC,wCAAA;AAAA,EAEhC,OAAiB,EAAA;AAAA,EAEjB,OAAO,IAAI,MAAA,EAAuE;AAChF,IAAA,IAAI,QAAQ,OAAQ,oCAAA,CAAoC,EAAA,GAAK,IAAI,qCAAoC,MAAM,CAAA;AAAA,SAAA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AAA,EAAA,CAAG,GAAG,CAAA,GAAI,KAAA;AAAA,QACZ,CAAC,CAAA;AACD,QAAA,MAAA,CAAO,OAAA,GAAU,EAAA;AAAA,MACnB;AACA,MAAA,OAAO,QAAA;AAAA,IACT;AAE0B,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY;AAAA,MACtD,SAAA,EAAW,sBAAA;AAAA,MACX,SAAA,EAAW;AAAA,KACb;AACA,IAAA,MAAA,CAAO,EAAA,GAAK,CAAA;AAEZ,IAAA,OAAO,MAAA;AAAA,EACT;AAAA,EAEA,uBAAA,GAAwE;AAKtE,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,MAAA;AAAA,EAChC;AACF;AAEA,IAAM,yBAAA,GAA4B,CAAC,MAAA,KAAyE;AAC1G,EAAA,OAAO,mCAAA,CAAoC,IAAI,MAAM,CAAA;AACvD;AAEA,IAAO,qBAAA,GAAQ","file":"chunk-5RZ2O2CJ.cjs","sourcesContent":["import Debug from '@runtime/debug'\nimport { type ApiError, isApiError } from '@runtime/error'\nimport type {\n ErrorInterceptor,\n HeadersObj,\n InterceptorManager,\n InterceptorType,\n RawResponseReader,\n RequestInterceptor,\n ResponseInterceptor,\n ResponseObj,\n} from '@runtime/interceptor'\nimport { ApiResourceAdapter, type ResourceAdapter, type ResourcesInitConfig } from '@runtime/resource'\n// import * as api from '../gen/api'\nimport { getResources } from '../gen/enum'\nimport { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, type ApiVersion, SDK_VERSION } from '../gen/version'\n\nconst debug = Debug('commercelayer')\n\nexport { API_SCHEMA_VERSION, API_SUPPORTED_VERSIONS, type ApiVersion, SDK_VERSION }\n\n// SDK local configuration\ntype SdkConfig = {\n /** Set to `false` to omit the `X-CL-SDK` request header that identifies the SDK and its version. Defaults to `true`. */\n telemetry?: boolean\n}\n\n/**\n * The `apiVersion` init option, conditioned on how the SDK was generated:\n * - **Version-aware (unified) builds** — {@link API_SUPPORTED_VERSIONS} is\n * non-empty — **require** `apiVersion`. The chosen value becomes a URL path\n * segment (`/api/2026-05/orders`), keeping requests aligned with the version\n * the types were generated for.\n * - **Legacy builds** — empty {@link API_SUPPORTED_VERSIONS}, so {@link ApiVersion}\n * is `never` — take **no** `apiVersion` argument. The API is unversioned\n * (`/api/orders`).\n */\ntype ApiVersionConfig = [ApiVersion] extends [never] ? { apiVersion?: never } : { apiVersion: ApiVersion }\n\ntype CommerceLayerInitConfig = SdkConfig & ApiVersionConfig & ResourcesInitConfig\ntype CommerceLayerConfig = Partial<CommerceLayerInitConfig>\n\nclass CommerceLayerProvisioningBaseClient {\n readonly apiSchemaVersion = API_SCHEMA_VERSION\n readonly apiSupportedVersions = API_SUPPORTED_VERSIONS\n\n protected static cl: CommerceLayerProvisioningBaseClient\n\n static get(config?: CommerceLayerInitConfig): CommerceLayerProvisioningBaseClient {\n if (config) return (CommerceLayerProvisioningBaseClient.cl = new CommerceLayerProvisioningBaseClient(config))\n else if (!CommerceLayerProvisioningBaseClient.cl)\n throw new Error('CommerceLayerProvisioning client not initialized')\n return CommerceLayerProvisioningBaseClient.cl\n }\n\n // The ResourceAdapter created for this specific client instance. Every\n // `CommerceLayerProvisioning(config)` call builds a fresh adapter (its own ApiClient\n // with its own access token). The bundle client reads this so two clients\n // stay isolated; see the `adapter` seam below.\n protected readonly instanceAdapter: ResourceAdapter\n\n protected constructor(config: CommerceLayerInitConfig) {\n debug('new commercelayer instance %O', config)\n\n // `init` builds a new adapter AND sets the process-global static one.\n // We keep the return value so the bundle can bind resources to this\n // exact adapter; the static assignment stays for the plain SDK, whose\n // directly-imported resource singletons resolve through it.\n this.instanceAdapter = ApiResourceAdapter.init(config)\n }\n\n // Adapter seam. The base (plain SDK) reports the process-global static\n // adapter so `config()` and the getters below stay in sync with the\n // directly-imported resource singletons — unchanged behaviour. The bundle\n // overrides this to return its own `instanceAdapter`, isolating clients.\n protected get adapter(): ResourceAdapter {\n return ApiResourceAdapter.get()\n }\n\n get currentOrganization(): string {\n return this.adapter.client?.currentOrganization\n }\n get currentAccessToken(): string {\n return this.adapter.client?.currentAccessToken\n }\n /** The API version pinned via `apiVersion`, or `undefined` when requests are unversioned. */\n get currentApiVersion(): string | undefined {\n return this.adapter.client?.currentApiVersion\n }\n private get interceptors(): InterceptorManager {\n return this.adapter.client?.interceptors\n }\n\n private localConfig(_config: Partial<SdkConfig>): void {\n // if (config.abc) this.abc = config.abc\n }\n\n config(config: CommerceLayerConfig): this {\n debug('config %o', config)\n\n // CommerceLayerProvisioning config\n this.localConfig(config)\n // ResourceAdapter config\n this.adapter.config(config)\n\n return this\n }\n\n resources(sort?: boolean): readonly string[] {\n return getResources(sort)\n }\n\n isApiError(error: any): error is ApiError {\n return isApiError(error)\n }\n\n addRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number {\n this.interceptors.request = { onSuccess, onFailure }\n return 1\n }\n\n addResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number {\n this.interceptors.response = { onSuccess, onFailure }\n return 1\n }\n\n removeInterceptor(type: InterceptorType, _id: number = 1): void {\n this.interceptors[type] = undefined\n }\n\n removeInterceptors(): void {\n this.removeInterceptor('request')\n this.removeInterceptor('response')\n this.removeRawResponseReader()\n }\n\n addRawResponseReader(options?: { headers: boolean }): RawResponseReader {\n const reader: RawResponseReader = {\n id: 0,\n rawResponse: undefined,\n headers: undefined,\n ok: true,\n }\n\n async function rawResponseInterceptor(response: ResponseObj): Promise<ResponseObj> {\n reader.rawResponse = await response\n ?.clone()\n .json()\n .catch(() => {})\n reader.ok = response.ok\n if (options?.headers) {\n const ho: HeadersObj = {}\n response.headers.forEach((value, key) => {\n ho[key] = value\n })\n reader.headers = ho\n }\n return response\n }\n\n /* const interceptor = */ this.interceptors.rawReader = {\n onSuccess: rawResponseInterceptor,\n onFailure: rawResponseInterceptor,\n }\n reader.id = 1 // interceptor\n\n return reader\n }\n\n removeRawResponseReader(/* reader: number | RawResponseReader */): void {\n /*\n\t\tconst id = (typeof reader === 'number') ? reader : reader?.id\n\t\tif (id && (id >= 0)) this.removeInterceptor('response', id)\n\t\t*/\n this.interceptors.rawReader = undefined\n }\n}\n\nconst CommerceLayerProvisioning = (config: CommerceLayerInitConfig): CommerceLayerProvisioningBaseClient => {\n return CommerceLayerProvisioningBaseClient.get(config)\n}\n\nexport default CommerceLayerProvisioning\nexport type { CommerceLayerConfig, CommerceLayerInitConfig }\nexport { CommerceLayerProvisioning, CommerceLayerProvisioningBaseClient }\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkATSYNXFW_cjs = require('./chunk-ATSYNXFW.cjs');
|
|
4
4
|
|
|
5
5
|
// gen/resources/organizations.ts
|
|
6
|
-
var Organizations = class _Organizations extends
|
|
6
|
+
var Organizations = class _Organizations extends chunkATSYNXFW_cjs.ApiResource {
|
|
7
7
|
static TYPE = "organizations";
|
|
8
8
|
async create(resource, params, options) {
|
|
9
9
|
return this.resources.create(
|
|
@@ -76,5 +76,5 @@ var instance = new Organizations();
|
|
|
76
76
|
var organizations_default = instance;
|
|
77
77
|
|
|
78
78
|
exports.organizations_default = organizations_default;
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-5V2JEFHA.cjs.map
|
|
80
|
+
//# sourceMappingURL=chunk-5V2JEFHA.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/organizations.ts"],"names":["ApiResource"],"mappings":";;;;;AAycA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAAA,CAA0B;AAAA,EACpD,OAAgB,IAAA,GAAyB,eAAA;AAAA,EAEzC,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACuB;AACvB,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,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A,MAAA,EACA,OAAA,EACsC;AACtC,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAO,cAAA;AAChE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,iBAAA,EAAkB;AAAA,MAC1B,iBAAiB,eAAe,CAAA,gBAAA,CAAA;AAAA,MAChC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,kBAAA,CACJ,cAAA,EACA,OAAA,EACA,OAAA,EACe;AACf,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAO,cAAA;AAChE,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAA,EAAS,CAAA,cAAA,EAAiB,eAAe,CAAA,mBAAA,CAAA,EAAuB,EAAE,GAAG,OAAA,EAAQ,EAAG,OAAO,CAAA;AAAA,EACrH;AAAA,EAEA,eAAe,QAAA,EAAyC;AACtD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAEA,aAAa,EAAA,EAAiD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAEA,IAAA,GAAyB;AACvB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACvB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,qBAAA,GAAQ","file":"chunk-5V2JEFHA.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '@runtime/query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\nimport type { TransferOwnershipDataType } from '../../src/actions'\nimport type { ApiCredential } from './api_credentials'\nimport type { Membership } from './memberships'\nimport type { Permission } from './permissions'\nimport type { Role } from './roles'\n\ntype OrganizationType = 'organizations'\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\n\nexport type OrganizationSort = Pick<Organization, 'id' | 'name' | 'slug' | 'domain'> & ResourceSort\n// export type OrganizationFilter = Pick<Organization, 'id' | 'name' | 'slug' | 'domain' | 'contrast_color' | 'region'> & ResourceFilter\n\n/**\n * The Organization object is returned as part of the response body of each successful list, retrieve, create or update API call to the /api/organizations endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/organizations/object\n */\ninterface Organization extends Resource {\n readonly type: OrganizationType\n\n /**\n * The organization's internal name.\n * @example ```\"The Blue Brand\"```\n */\n name: string\n /**\n * The organization's slug name.\n * @example ```\"the-blue-brand\"```\n */\n slug: string\n /**\n * The organization's domain.\n * @example ```\"the-blue-brand.commercelayer.io\"```\n */\n domain: string\n /**\n * The organization's support phone.\n * @example ```\"+01 30800857\"```\n */\n support_phone?: string | null\n /**\n * The organization's support email.\n * @example ```\"support@bluebrand.com\"```\n */\n support_email?: string | null\n /**\n * The URL to the organization's logo.\n * @example ```\"https://bluebrand.com/img/logo.svg\"```\n */\n logo_url?: string | null\n /**\n * The URL to the organization's favicon.\n * @example ```\"https://bluebrand.com/img/favicon.ico\"```\n */\n favicon_url?: string | null\n /**\n * The organization's primary color.\n * @example ```\"#C8984E\"```\n */\n primary_color?: string | null\n /**\n * The organization's contrast color. Format is HEX (starts with `#` and is followed by six letters and/or numbers).\n * @example ```\"#FFFFCC\"```\n */\n contrast_color?: string | null\n /**\n * The organization's Google Tag Manager ID.\n * @example ```\"GTM-5FJXX6\"```\n */\n gtm_id?: string | null\n /**\n * The organization's Google Tag Manager ID for test.\n * @example ```\"GTM-5FJXX7\"```\n */\n gtm_id_test?: string | null\n /**\n * The region where the organization is located. The default value is `eu-west-1`.\n * @example ```\"eu-west-1\"```\n */\n region?: string | null\n /**\n * Indicates if the organization can switch to live mode.\n */\n can_switch_live: boolean\n /**\n * Information about the current subscription such as the plan type, limits, and subscription totals counter.\n * @example ```{\"plan_type\":\"growth\",\"limits\":{\"markets\":5,\"skus\":10000,\"organizations\":2,\"memberships\":5},\"totals\":{\"organizations\":1,\"markets\":0,\"memberships\":2,\"skus\":0}}```\n */\n subscription_info: Record<string, any>\n /**\n * The organization's configuration.\n * @example ```{\"mfe\":{\"language\":\"it-IT\",\"default\":{\"links\":{\"cart\":\"https://cart.example.com/:order_id?accessToken=:access_token\",\"checkout\":\"https://checkout.example.com/:order_id?accessToken=:access_token\",\"identity\":\"https://example.com/login\",\"microstore\":\"https://example.com/microstore/?accessToken=:access_token\",\"my_account\":\"https://example.com/my-custom-account?accessToken=:access_token\"},\"checkout\":{\"optional_billing_info\":false,\"thankyou_page\":\"https://example.com/thanks/:lang/:order_id\",\"billing_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"shipping_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"billing_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"shipping_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"default_country\":\"US\"},\"urls\":{\"privacy\":\"https://example.com/privacy/:lang\",\"terms\":\"https://example.com/terms/:lang\"}},\"market:id:ZKcv13rT\":{\"links\":{\"cart\":\"https://example.com/custom-cart/:order_id?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:order_id\"}}},\"well-known\":{\"shopping\":{\"catalog_mcp_url\":\"https://catalog-mcp.example.com/mcp\",\"client_id\":\"abc123example\",\"locale_scopes\":{\"it-IT\":{\"id\":\"ZKcv13rT\"},\"en-US\":{\"id\":\"ZKcv13rT\"}},\"ui\":{\"domain\":\"\",\"csp\":{\"resourceDomains\":[\"https://data.commercelayer.app\",\"https://cdn.brand.com\"],\"baseUriDomains\":[],\"connectDomains\":[],\"frameDomains\":[]}}}}}```\n */\n config?: Record<string, any> | null\n /**\n * Enables the redirect on the new Auth API.\n * @example ```true```\n */\n api_auth_redirect?: boolean | null\n /**\n * Enables fragment caching for resources with related directive.\n */\n api_fragment_caching_enabled?: boolean | null\n /**\n * Enables the rules engine for flex promotions and price list rules.\n */\n api_rules_engine?: boolean | null\n /**\n * The fallback maximum number of conditions within a rules payload on a ruleable object, default is {API_RULES_ENGINE_MAX_CONDITIONS_SIZE}.\n * @example ```150```\n */\n api_rules_engine_max_conditions_size?: number | null\n /**\n * The fallback maximum number of rules within a rules payload on a ruleable object, default is {API_RULES_ENGINE_MAX_RULES_SIZE}.\n * @example ```15```\n */\n api_rules_engine_max_rules_size?: number | null\n /**\n * Forces the usage of the new Authentication API.\n * @example ```true```\n */\n api_new_auth?: boolean | null\n /**\n * Enables the purge of cached single resources when list is purged.\n */\n api_purge_single_resource?: boolean | null\n /**\n * The maximum length for the regular expressions, default is {API_MAX_REGEX_LENGTH}.\n * @example ```5000```\n */\n api_max_regex_length?: number | null\n /**\n * Indicates if AVS checking will be enforced during payment workflow by passing specific attributes, default is {ADDRESSES_AVS_CHECK}.\n * @example ```true```\n */\n addresses_avs_check?: boolean | null\n /**\n * Indicates if the phone attribute is required for addresses, default is {ADDRESSES_PHONE_REQUIRED}.\n * @example ```true```\n */\n addresses_phone_required?: boolean | null\n /**\n * Indicates if a sales channel application without customer can read and update just guest orders.\n * @example ```true```\n */\n orders_sales_channel_guest_only?: boolean | null\n /**\n * The minimum lapse in fraction of seconds to be observed between two consecutive shipments rebuilt. If shipments rebuilt is triggered within the minimum lapse, the update is performed, but no rebuilt is done.\n */\n orders_min_rebuild_shipments_lapse?: number | null\n /**\n * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done.\n */\n orders_min_refresh_lapse?: number | null\n /**\n * The maximum number line items allowed for a test order before disabling the autorefresh option.\n * @example ```50```\n */\n orders_autorefresh_cutoff_test?: number | null\n /**\n * The maximum number line items allowed for a live order before disabling the autorefresh option.\n * @example ```500```\n */\n orders_autorefresh_cutoff_live?: number | null\n /**\n * Enables orders number editing as a string in test (for enterprise plans only).\n */\n orders_number_editable_test?: boolean | null\n /**\n * Enables orders number editing as a string in live (for enterprise plans only).\n */\n orders_number_editable_live?: boolean | null\n /**\n * Enables to use the order number as payment reference on supported gateways.\n * @example ```true```\n */\n orders_number_as_reference?: boolean | null\n /**\n * Enables raising of API errors in case the provided coupon code is invalid, default is {ORDERS_INVALID_COUPON_ERRORS}.\n * @example ```true```\n */\n orders_invalid_coupon_errors?: boolean | null\n /**\n * Enables raising of API errors in case the provided gift card code is invalid, default is {ORDERS_INVALID_GIFT_CARD_ERRORS}.\n * @example ```true```\n */\n orders_invalid_gift_card_errors?: boolean | null\n /**\n * Enables the validation of the generated stock line items and stock transfers before placing the order, default is {ORDERS_VALIDATE_SHIPPING_STOCK}.\n */\n orders_validate_shipping_stock?: boolean | null\n /**\n * The maximum number of SKUs allowed for bundles, default is {BUNDLES_MAX_ITEMS_COUNT}.\n * @example ```10```\n */\n bundles_max_items_count?: number | null\n /**\n * The minimum length for coupon code, default is {COUPONS_MIN_CODE_LENGTH}.\n * @example ```8```\n */\n coupons_min_code_length?: number | null\n /**\n * The maximum length for coupon code, default is {COUPONS_MAX_CODE_LENGTH}.\n * @example ```40```\n */\n coupons_max_code_length?: number | null\n /**\n * Enables matching the gift card code by its exact value, instead of by its first charachters, default is {GIFT_CARDS_EXACT_CODE_MATCHING}.\n */\n gift_cards_exact_code_matching?: boolean | null\n /**\n * The minimum length for gift card code, default is {GIFT_CARDS_MIN_CODE_LENGTH}.\n * @example ```8```\n */\n gift_cards_min_code_length?: number | null\n /**\n * The maximum length for gift card code, default is {GIFT_CARDS_MAX_CODE_LENGTH}.\n * @example ```40```\n */\n gift_cards_max_code_length?: number | null\n /**\n * Enables automatic restoration of the gift card balance when an order is cancelled or reopened for editing, default is {GIFT_CARDS_AUTO_RESTORE}.\n * @example ```true```\n */\n gift_cards_auto_restore?: boolean | null\n /**\n * The maximum number of concurrent cleanups allowed for your organization, default is {CLEANUPS_MAX_CONCURRENT_COUNT}.\n * @example ```10```\n */\n cleanups_max_concurrent_count?: number | null\n /**\n * The maximum number of concurrent exports allowed for your organization, default is {EXPORTS_MAX_CONCURRENT_COUNT}.\n * @example ```10```\n */\n exports_max_concurrent_count?: number | null\n /**\n * The maximum number of concurrent imports allowed for your organization, default is {IMPORTS_MAX_CONCURRENT_COUNT}.\n * @example ```10```\n */\n imports_max_concurrent_count?: number | null\n /**\n * Enables purging of cached resources upon succeeded imports.\n * @example ```true```\n */\n imports_purge_cache?: boolean | null\n /**\n * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is {IMPORTS_SKIP_ERRORS}.\n */\n imports_skip_errors?: boolean | null\n /**\n * The maximum number for stock locations cutoff, default is {INVENTORY_MODELS_MAX_STOCK_LOCATIONS_CUTOFF}.\n * @example ```10```\n */\n inventory_models_max_stock_locations_cutoff?: number | null\n /**\n * The maximum number of active concurrent promotions allowed for your organization, default is {PROMOTIONS_MAX_CONCURRENT_COUNT}.\n * @example ```10```\n */\n promotions_max_concurrent_count?: number | null\n /**\n * The maximum number of conditions within a rules payload on a promotion object, default is {PROMOTIONS_MAX_CONDITIONS_SIZE}.\n * @example ```150```\n */\n promotions_max_conditions_size?: number | null\n /**\n * The maximum number of rules within a rules payload on a promotion object, default is {PROMOTIONS_MAX_RULES_SIZE}.\n * @example ```15```\n */\n promotions_max_rules_size?: number | null\n /**\n * The maximum number of conditions within a rules payload on a price list object, default is {PRICE_LISTS_MAX_CONDITIONS_SIZE}.\n * @example ```150```\n */\n price_lists_max_conditions_size?: number | null\n /**\n * The maximum number of rules within a rules payload on a price list object, default is {PRICE_LISTS_MAX_RULES_SIZE}.\n * @example ```15```\n */\n price_lists_max_rules_size?: number | null\n /**\n * Enables triggering of webhooks during imports, default is {IMPORTS_TRIGGER_WEBHOOKS}.\n * @example ```\"false\"```\n */\n imports_trigger_webhooks?: number | null\n /**\n * Enables the use of an external discount engine in place of the standard one, default is {DISCOUNT_ENGINES_ENABLED}.\n */\n discount_engines_enabled?: boolean | null\n /**\n * Enables raising of API errors in case of discount engine failure, default is {DISCOUNT_ENGINES_ERRORS}.\n */\n discount_engines_errors?: boolean | null\n /**\n * The maximum length for the tag name, default is {TAGS_MAX_NAME_LENGTH}.\n * @example ```25```\n */\n tags_max_name_length?: number | null\n /**\n * The maximum allowed number of tags for each resource, default is {TAGS_MAX_ALLOWED_NUMBER}.\n * @example ```10```\n */\n tags_max_allowed_number?: number | null\n /**\n * Enables raising of API errors in case of tax calculation failure, default is {TAX_CALCULATORS_ERRORS}.\n */\n tax_calculators_errors?: boolean | null\n /**\n * Enables raising of API errors in case of external promotion failure, default is {EXTERNAL_PROMOTIONS_ERRORS}.\n */\n external_promotions_errors?: boolean | null\n /**\n * Enables raising of API errors in case of external price failure, default is {EXTERNAL_PRICES_ERRORS}.\n * @example ```true```\n */\n external_prices_errors?: boolean | null\n /**\n * Enables the Sku discovery by similarity search.\n */\n skus_discovery?: boolean | null\n /**\n * Enables the creation of the authorization when the gateway event is received, even if there is no reference on Commerce Layer.\n */\n payment_gateways_transaction_on_event?: boolean | null\n /**\n * Enables blocking a new refund (or compensation) on a capture while an earlier async refund on the same capture is still unresolved.\n */\n refunds_check_for_pending?: boolean | null\n\n memberships?: Membership[] | null\n roles?: Role[] | null\n permissions?: Permission[] | null\n api_credentials?: ApiCredential[] | null\n}\n\ninterface OrganizationCreate extends ResourceCreate {\n /**\n * The organization's internal name.\n * @example ```\"The Blue Brand\"```\n */\n name: string\n /**\n * The organization's support phone.\n * @example ```\"+01 30800857\"```\n */\n support_phone?: string | null\n /**\n * The organization's support email.\n * @example ```\"support@bluebrand.com\"```\n */\n support_email?: string | null\n /**\n * The URL to the organization's logo.\n * @example ```\"https://bluebrand.com/img/logo.svg\"```\n */\n logo_url?: string | null\n /**\n * The URL to the organization's favicon.\n * @example ```\"https://bluebrand.com/img/favicon.ico\"```\n */\n favicon_url?: string | null\n /**\n * The organization's primary color.\n * @example ```\"#C8984E\"```\n */\n primary_color?: string | null\n /**\n * The organization's contrast color. Format is HEX (starts with `#` and is followed by six letters and/or numbers).\n * @example ```\"#FFFFCC\"```\n */\n contrast_color?: string | null\n /**\n * The organization's Google Tag Manager ID.\n * @example ```\"GTM-5FJXX6\"```\n */\n gtm_id?: string | null\n /**\n * The organization's Google Tag Manager ID for test.\n * @example ```\"GTM-5FJXX7\"```\n */\n gtm_id_test?: string | null\n /**\n * The region where the organization is located. The default value is `eu-west-1`.\n * @example ```\"eu-west-1\"```\n */\n region?: string | null\n /**\n * The organization's configuration.\n * @example ```{\"mfe\":{\"language\":\"it-IT\",\"default\":{\"links\":{\"cart\":\"https://cart.example.com/:order_id?accessToken=:access_token\",\"checkout\":\"https://checkout.example.com/:order_id?accessToken=:access_token\",\"identity\":\"https://example.com/login\",\"microstore\":\"https://example.com/microstore/?accessToken=:access_token\",\"my_account\":\"https://example.com/my-custom-account?accessToken=:access_token\"},\"checkout\":{\"optional_billing_info\":false,\"thankyou_page\":\"https://example.com/thanks/:lang/:order_id\",\"billing_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"shipping_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"billing_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"shipping_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"default_country\":\"US\"},\"urls\":{\"privacy\":\"https://example.com/privacy/:lang\",\"terms\":\"https://example.com/terms/:lang\"}},\"market:id:ZKcv13rT\":{\"links\":{\"cart\":\"https://example.com/custom-cart/:order_id?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:order_id\"}}},\"well-known\":{\"shopping\":{\"catalog_mcp_url\":\"https://catalog-mcp.example.com/mcp\",\"client_id\":\"abc123example\",\"locale_scopes\":{\"it-IT\":{\"id\":\"ZKcv13rT\"},\"en-US\":{\"id\":\"ZKcv13rT\"}},\"ui\":{\"domain\":\"\",\"csp\":{\"resourceDomains\":[\"https://data.commercelayer.app\",\"https://cdn.brand.com\"],\"baseUriDomains\":[],\"connectDomains\":[],\"frameDomains\":[]}}}}}```\n */\n config?: Record<string, any> | null\n}\n\ninterface OrganizationUpdate extends ResourceUpdate {\n /**\n * The organization's internal name.\n * @example ```\"The Blue Brand\"```\n */\n name?: string | null\n /**\n * The organization's support phone.\n * @example ```\"+01 30800857\"```\n */\n support_phone?: string | null\n /**\n * The organization's support email.\n * @example ```\"support@bluebrand.com\"```\n */\n support_email?: string | null\n /**\n * The URL to the organization's logo.\n * @example ```\"https://bluebrand.com/img/logo.svg\"```\n */\n logo_url?: string | null\n /**\n * The URL to the organization's favicon.\n * @example ```\"https://bluebrand.com/img/favicon.ico\"```\n */\n favicon_url?: string | null\n /**\n * The organization's primary color.\n * @example ```\"#C8984E\"```\n */\n primary_color?: string | null\n /**\n * The organization's contrast color. Format is HEX (starts with `#` and is followed by six letters and/or numbers).\n * @example ```\"#FFFFCC\"```\n */\n contrast_color?: string | null\n /**\n * The organization's Google Tag Manager ID.\n * @example ```\"GTM-5FJXX6\"```\n */\n gtm_id?: string | null\n /**\n * The organization's Google Tag Manager ID for test.\n * @example ```\"GTM-5FJXX7\"```\n */\n gtm_id_test?: string | null\n /**\n * The organization's configuration.\n * @example ```{\"mfe\":{\"language\":\"it-IT\",\"default\":{\"links\":{\"cart\":\"https://cart.example.com/:order_id?accessToken=:access_token\",\"checkout\":\"https://checkout.example.com/:order_id?accessToken=:access_token\",\"identity\":\"https://example.com/login\",\"microstore\":\"https://example.com/microstore/?accessToken=:access_token\",\"my_account\":\"https://example.com/my-custom-account?accessToken=:access_token\"},\"checkout\":{\"optional_billing_info\":false,\"thankyou_page\":\"https://example.com/thanks/:lang/:order_id\",\"billing_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"shipping_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"billing_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"shipping_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"default_country\":\"US\"},\"urls\":{\"privacy\":\"https://example.com/privacy/:lang\",\"terms\":\"https://example.com/terms/:lang\"}},\"market:id:ZKcv13rT\":{\"links\":{\"cart\":\"https://example.com/custom-cart/:order_id?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:order_id\"}}},\"well-known\":{\"shopping\":{\"catalog_mcp_url\":\"https://catalog-mcp.example.com/mcp\",\"client_id\":\"abc123example\",\"locale_scopes\":{\"it-IT\":{\"id\":\"ZKcv13rT\"},\"en-US\":{\"id\":\"ZKcv13rT\"}},\"ui\":{\"domain\":\"\",\"csp\":{\"resourceDomains\":[\"https://data.commercelayer.app\",\"https://cdn.brand.com\"],\"baseUriDomains\":[],\"connectDomains\":[],\"frameDomains\":[]}}}}}```\n */\n config?: Record<string, any> | null\n}\n\nclass Organizations extends ApiResource<Organization> {\n static readonly TYPE: OrganizationType = 'organizations' as const\n\n async create(\n resource: OrganizationCreate,\n params?: QueryParamsRetrieve<Organization>,\n options?: ResourcesConfig,\n ): Promise<Organization> {\n return this.resources.create<OrganizationCreate, Organization>(\n { ...resource, type: Organizations.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: OrganizationUpdate,\n params?: QueryParamsRetrieve<Organization>,\n options?: ResourcesConfig,\n ): Promise<Organization> {\n return this.resources.update<OrganizationUpdate, Organization>(\n { ...resource, type: Organizations.TYPE },\n params,\n options,\n )\n }\n\n async memberships(\n organizationId: string | Organization,\n params?: QueryParamsList<Membership>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Membership>> {\n const _organizationId = (organizationId as Organization).id || (organizationId as string)\n return this.resources.fetch<Membership>(\n { type: 'memberships' },\n `organizations/${_organizationId}/memberships`,\n params,\n options,\n ) as unknown as ListResponse<Membership>\n }\n\n async roles(\n organizationId: string | Organization,\n params?: QueryParamsList<Role>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Role>> {\n const _organizationId = (organizationId as Organization).id || (organizationId as string)\n return this.resources.fetch<Role>(\n { type: 'roles' },\n `organizations/${_organizationId}/roles`,\n params,\n options,\n ) as unknown as ListResponse<Role>\n }\n\n async permissions(\n organizationId: string | Organization,\n params?: QueryParamsList<Permission>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Permission>> {\n const _organizationId = (organizationId as Organization).id || (organizationId as string)\n return this.resources.fetch<Permission>(\n { type: 'permissions' },\n `organizations/${_organizationId}/permissions`,\n params,\n options,\n ) as unknown as ListResponse<Permission>\n }\n\n async api_credentials(\n organizationId: string | Organization,\n params?: QueryParamsList<ApiCredential>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<ApiCredential>> {\n const _organizationId = (organizationId as Organization).id || (organizationId as string)\n return this.resources.fetch<ApiCredential>(\n { type: 'api_credentials' },\n `organizations/${_organizationId}/api_credentials`,\n params,\n options,\n ) as unknown as ListResponse<ApiCredential>\n }\n\n async transfer_ownership(\n organizationId: string | Organization,\n payload: TransferOwnershipDataType,\n options?: ResourcesConfig,\n ): Promise<void> {\n const _organizationId = (organizationId as Organization).id || (organizationId as string)\n await this.resources.action('PATCH', `organizations/${_organizationId}/transfer_ownership`, { ...payload }, options)\n }\n\n isOrganization(resource: any): resource is Organization {\n return resource.type && resource.type === Organizations.TYPE\n }\n\n relationship(id: string | ResourceId | null): OrganizationRel {\n return super.relationshipOneToOne<OrganizationRel>(id)\n }\n\n relationshipToMany(...ids: string[]): OrganizationRel[] {\n return super.relationshipOneToMany<OrganizationRel>(...ids)\n }\n\n type(): OrganizationType {\n return Organizations.TYPE\n }\n}\n\nconst instance = new Organizations()\nexport default instance\n\nexport type { Organization, OrganizationCreate, Organizations, OrganizationType, OrganizationUpdate }\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-
|
|
1
|
+
import { ApiResource } from './chunk-CR45TDCY.js';
|
|
2
2
|
|
|
3
3
|
// gen/resources/memberships.ts
|
|
4
4
|
var Memberships = class _Memberships extends ApiResource {
|
|
@@ -78,5 +78,5 @@ var instance = new Memberships();
|
|
|
78
78
|
var memberships_default = instance;
|
|
79
79
|
|
|
80
80
|
export { memberships_default };
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-7BSFPWED.js.map
|
|
82
|
+
//# sourceMappingURL=chunk-7BSFPWED.js.map
|