@commercelayer/provisioning-sdk 3.0.0-beta.1 → 3.0.0-beta.3
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-BQ6Y-J8P.d.ts → api-CrVODncY.d.ts} +502 -485
- package/lib/{api-BQZ9r4RA.d.cts → api-DtxN9ZNI.d.cts} +502 -485
- 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-QVV2ORWB.cjs → chunk-2H27UDGO.cjs} +4 -4
- package/lib/{chunk-QVV2ORWB.cjs.map → chunk-2H27UDGO.cjs.map} +1 -1
- package/lib/{chunk-PIDJDUN3.js → chunk-37LZALYC.js} +3 -3
- package/lib/{chunk-PIDJDUN3.js.map → chunk-37LZALYC.js.map} +1 -1
- package/lib/{chunk-BFXJ3YNR.js → chunk-3AXLHEDT.js} +3 -3
- package/lib/{chunk-BFXJ3YNR.js.map → chunk-3AXLHEDT.js.map} +1 -1
- package/lib/{chunk-U76G3DPW.js → chunk-3PE2OE6B.js} +3 -3
- package/lib/{chunk-U76G3DPW.js.map → chunk-3PE2OE6B.js.map} +1 -1
- package/lib/{chunk-KJRFIWHK.cjs → chunk-43XNULI4.cjs} +4 -4
- package/lib/{chunk-KJRFIWHK.cjs.map → chunk-43XNULI4.cjs.map} +1 -1
- package/lib/{chunk-RSAADRRH.cjs → chunk-4PMMCL4I.cjs} +4 -4
- package/lib/{chunk-RSAADRRH.cjs.map → chunk-4PMMCL4I.cjs.map} +1 -1
- package/lib/{chunk-47HG76BX.cjs → chunk-4TC4U7TK.cjs} +4 -4
- package/lib/{chunk-47HG76BX.cjs.map → chunk-4TC4U7TK.cjs.map} +1 -1
- package/lib/{chunk-ZTAL3U2D.js → chunk-5VPJA5UV.js} +3 -3
- package/lib/{chunk-ZTAL3U2D.js.map → chunk-5VPJA5UV.js.map} +1 -1
- package/lib/{chunk-O6ACW64H.js → chunk-6FFP3YXV.js} +3 -3
- package/lib/{chunk-O6ACW64H.js.map → chunk-6FFP3YXV.js.map} +1 -1
- package/lib/{chunk-CESAPW7Z.js → chunk-6MIFOPOB.js} +14 -14
- package/lib/{chunk-CESAPW7Z.js.map → chunk-6MIFOPOB.js.map} +1 -1
- package/lib/{chunk-OEYUWL5K.js → chunk-6PWTKNOC.js} +4 -4
- package/lib/{chunk-OEYUWL5K.js.map → chunk-6PWTKNOC.js.map} +1 -1
- package/lib/{chunk-4GOUGGBM.js → chunk-6SNLYMKG.js} +4 -4
- package/lib/{chunk-4GOUGGBM.js.map → chunk-6SNLYMKG.js.map} +1 -1
- package/lib/{chunk-OKBMV3W5.cjs → chunk-73VBQFUA.cjs} +4 -4
- package/lib/{chunk-OKBMV3W5.cjs.map → chunk-73VBQFUA.cjs.map} +1 -1
- package/lib/{chunk-6B2AFMGT.js → chunk-BFBXXP4Q.js} +3 -3
- package/lib/{chunk-6B2AFMGT.js.map → chunk-BFBXXP4Q.js.map} +1 -1
- package/lib/{chunk-YLA6YCK5.cjs → chunk-DDFTZDVN.cjs} +3 -3
- package/lib/chunk-DDFTZDVN.cjs.map +1 -0
- package/lib/{chunk-BI4FXO5V.cjs → chunk-DTORLDNE.cjs} +8 -8
- package/lib/{chunk-BI4FXO5V.cjs.map → chunk-DTORLDNE.cjs.map} +1 -1
- package/lib/{chunk-LISATEFD.cjs → chunk-EUMMY3TQ.cjs} +4 -4
- package/lib/{chunk-LISATEFD.cjs.map → chunk-EUMMY3TQ.cjs.map} +1 -1
- package/lib/{chunk-SZSANTXM.cjs → chunk-H5YSO3AX.cjs} +10 -10
- package/lib/{chunk-SZSANTXM.cjs.map → chunk-H5YSO3AX.cjs.map} +1 -1
- package/lib/{chunk-QTTL5EGB.cjs → chunk-HVYM2S4K.cjs} +40 -13
- package/lib/chunk-HVYM2S4K.cjs.map +1 -0
- package/lib/{chunk-QRMCUYRK.js → chunk-IRQX6AG3.js} +3 -3
- package/lib/{chunk-QRMCUYRK.js.map → chunk-IRQX6AG3.js.map} +1 -1
- package/lib/{chunk-XCKSYX22.js → chunk-LSEKNECC.js} +3 -3
- package/lib/{chunk-XCKSYX22.js.map → chunk-LSEKNECC.js.map} +1 -1
- package/lib/{chunk-5D5YOHG4.cjs → chunk-LV5XV2UF.cjs} +26 -26
- package/lib/{chunk-5D5YOHG4.cjs.map → chunk-LV5XV2UF.cjs.map} +1 -1
- package/lib/{chunk-YFZRO7OE.cjs → chunk-MT2XP4UJ.cjs} +4 -4
- package/lib/{chunk-YFZRO7OE.cjs.map → chunk-MT2XP4UJ.cjs.map} +1 -1
- package/lib/{chunk-F2Z6XJTZ.js → chunk-NDCVBYCJ.js} +3 -3
- package/lib/{chunk-F2Z6XJTZ.js.map → chunk-NDCVBYCJ.js.map} +1 -1
- package/lib/{chunk-HNSO4ZPF.js → chunk-OTK6VLW5.js} +35 -8
- package/lib/chunk-OTK6VLW5.js.map +1 -0
- package/lib/{chunk-TOXS3OUT.cjs → chunk-PBYGXPJ6.cjs} +4 -4
- package/lib/{chunk-TOXS3OUT.cjs.map → chunk-PBYGXPJ6.cjs.map} +1 -1
- package/lib/{chunk-XV25RH6C.js → chunk-QTXYKCKC.js} +3 -3
- package/lib/{chunk-XV25RH6C.js.map → chunk-QTXYKCKC.js.map} +1 -1
- package/lib/{chunk-OAXFNHFA.js → chunk-RWUBFJZ6.js} +3 -3
- package/lib/{chunk-OAXFNHFA.js.map → chunk-RWUBFJZ6.js.map} +1 -1
- package/lib/{chunk-MANW7JPJ.js → chunk-VVSV5FR6.js} +3 -3
- package/lib/chunk-VVSV5FR6.js.map +1 -0
- package/lib/{chunk-NFF6DWKZ.cjs → chunk-XKY46RI6.cjs} +4 -4
- package/lib/{chunk-NFF6DWKZ.cjs.map → chunk-XKY46RI6.cjs.map} +1 -1
- package/lib/{chunk-FHXWFSIQ.cjs → chunk-YAVEKFKE.cjs} +4 -4
- package/lib/{chunk-FHXWFSIQ.cjs.map → chunk-YAVEKFKE.cjs.map} +1 -1
- package/lib/{chunk-JDXNOZFC.cjs → chunk-YYM7BH33.cjs} +4 -4
- package/lib/{chunk-JDXNOZFC.cjs.map → chunk-YYM7BH33.cjs.map} +1 -1
- 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-HNSO4ZPF.js.map +0 -1
- package/lib/chunk-MANW7JPJ.js.map +0 -1
- package/lib/chunk-QTTL5EGB.cjs.map +0 -1
- package/lib/chunk-YLA6YCK5.cjs.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 chunk73VBQFUA_cjs = require('./chunk-73VBQFUA.cjs');
|
|
5
|
+
var chunk4PMMCL4I_cjs = require('./chunk-4PMMCL4I.cjs');
|
|
6
|
+
var chunkXKY46RI6_cjs = require('./chunk-XKY46RI6.cjs');
|
|
7
|
+
var chunkEUMMY3TQ_cjs = require('./chunk-EUMMY3TQ.cjs');
|
|
8
|
+
var chunk43XNULI4_cjs = require('./chunk-43XNULI4.cjs');
|
|
9
|
+
var chunkYAVEKFKE_cjs = require('./chunk-YAVEKFKE.cjs');
|
|
10
|
+
var chunkYYM7BH33_cjs = require('./chunk-YYM7BH33.cjs');
|
|
11
|
+
var chunk2H27UDGO_cjs = require('./chunk-2H27UDGO.cjs');
|
|
12
|
+
var chunkMT2XP4UJ_cjs = require('./chunk-MT2XP4UJ.cjs');
|
|
13
|
+
var chunkPBYGXPJ6_cjs = require('./chunk-PBYGXPJ6.cjs');
|
|
14
|
+
require('./chunk-HVYM2S4K.cjs');
|
|
15
|
+
require('./chunk-4TC4U7TK.cjs');
|
|
16
|
+
require('./chunk-DDFTZDVN.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 chunk73VBQFUA_cjs.permissions_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "roles", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk4PMMCL4I_cjs.roles_default; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "user", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkXKY46RI6_cjs.users_default; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "versions", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkEUMMY3TQ_cjs.versions_default; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "api_credentials", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk43XNULI4_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 chunkYAVEKFKE_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 chunkYYM7BH33_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 chunk2H27UDGO_cjs.membership_profiles_default; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "memberships", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkMT2XP4UJ_cjs.memberships_default; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "organizations", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkPBYGXPJ6_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 {
|
|
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-DtxN9ZNI.cjs';
|
|
2
2
|
import './actions.cjs';
|
package/lib/api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
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-CrVODncY.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-3AXLHEDT.js';
|
|
3
|
+
export { roles_default as roles } from './chunk-BFBXXP4Q.js';
|
|
4
|
+
export { users_default as user } from './chunk-6FFP3YXV.js';
|
|
5
|
+
export { versions_default as versions } from './chunk-IRQX6AG3.js';
|
|
6
|
+
export { api_credentials_default as api_credentials } from './chunk-NDCVBYCJ.js';
|
|
7
|
+
export { application_memberships_default as application_memberships } from './chunk-37LZALYC.js';
|
|
8
|
+
export { identity_providers_default as identity_providers } from './chunk-3PE2OE6B.js';
|
|
9
|
+
export { membership_profiles_default as membership_profiles } from './chunk-RWUBFJZ6.js';
|
|
10
|
+
export { memberships_default as memberships } from './chunk-5VPJA5UV.js';
|
|
11
|
+
export { organizations_default as organizations } from './chunk-LSEKNECC.js';
|
|
12
|
+
import './chunk-OTK6VLW5.js';
|
|
13
|
+
import './chunk-QTXYKCKC.js';
|
|
14
|
+
import './chunk-VVSV5FR6.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 chunk4TC4U7TK_cjs = require('./chunk-4TC4U7TK.cjs');
|
|
4
|
+
require('./chunk-DDFTZDVN.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 chunk4TC4U7TK_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 {
|
|
2
|
-
export {
|
|
1
|
+
import { g as getResources } from './api-DtxN9ZNI.cjs';
|
|
2
|
+
export { R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock } from './api-DtxN9ZNI.cjs';
|
|
3
3
|
import './actions.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/lib/binding.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { g as getResources } from './api-CrVODncY.js';
|
|
2
|
+
export { R as ResourceFields, a as ResourceSortFields, b as ResourceTypeLock } from './api-CrVODncY.js';
|
|
3
3
|
import './actions.js';
|
|
4
4
|
|
|
5
5
|
/**
|
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 chunkLV5XV2UF_cjs = require('./chunk-LV5XV2UF.cjs');
|
|
6
|
+
require('./chunk-H5YSO3AX.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-73VBQFUA.cjs');
|
|
9
|
+
require('./chunk-4PMMCL4I.cjs');
|
|
10
|
+
require('./chunk-XKY46RI6.cjs');
|
|
11
|
+
require('./chunk-EUMMY3TQ.cjs');
|
|
12
|
+
require('./chunk-43XNULI4.cjs');
|
|
13
|
+
require('./chunk-YAVEKFKE.cjs');
|
|
14
|
+
require('./chunk-YYM7BH33.cjs');
|
|
15
|
+
require('./chunk-2H27UDGO.cjs');
|
|
16
|
+
require('./chunk-MT2XP4UJ.cjs');
|
|
17
|
+
require('./chunk-PBYGXPJ6.cjs');
|
|
18
|
+
require('./chunk-HVYM2S4K.cjs');
|
|
19
|
+
require('./chunk-4TC4U7TK.cjs');
|
|
20
|
+
require('./chunk-DDFTZDVN.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 chunkLV5XV2UF_cjs.CommerceLayerProvisioning; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "default", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkLV5XV2UF_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-DtxN9ZNI.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-CrVODncY.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-6MIFOPOB.js';
|
|
2
|
+
import './chunk-6SNLYMKG.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-3AXLHEDT.js';
|
|
5
|
+
import './chunk-BFBXXP4Q.js';
|
|
6
|
+
import './chunk-6FFP3YXV.js';
|
|
7
|
+
import './chunk-IRQX6AG3.js';
|
|
8
|
+
import './chunk-NDCVBYCJ.js';
|
|
9
|
+
import './chunk-37LZALYC.js';
|
|
10
|
+
import './chunk-3PE2OE6B.js';
|
|
11
|
+
import './chunk-RWUBFJZ6.js';
|
|
12
|
+
import './chunk-5VPJA5UV.js';
|
|
13
|
+
import './chunk-LSEKNECC.js';
|
|
14
|
+
import './chunk-OTK6VLW5.js';
|
|
15
|
+
import './chunk-QTXYKCKC.js';
|
|
16
|
+
import './chunk-VVSV5FR6.js';
|
|
17
17
|
import './chunk-YS5PCY5D.js';
|
|
18
18
|
//# sourceMappingURL=bundle.js.map
|
|
19
19
|
//# sourceMappingURL=bundle.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHVYM2S4K_cjs = require('./chunk-HVYM2S4K.cjs');
|
|
4
4
|
|
|
5
5
|
// gen/resources/membership_profiles.ts
|
|
6
|
-
var MembershipProfiles = class _MembershipProfiles extends
|
|
6
|
+
var MembershipProfiles = class _MembershipProfiles extends chunkHVYM2S4K_cjs.ApiResource {
|
|
7
7
|
static TYPE = "membership_profiles";
|
|
8
8
|
async create(resource, params, options) {
|
|
9
9
|
return this.resources.create(
|
|
@@ -57,5 +57,5 @@ var instance = new MembershipProfiles();
|
|
|
57
57
|
var membership_profiles_default = instance;
|
|
58
58
|
|
|
59
59
|
exports.membership_profiles_default = membership_profiles_default;
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-2H27UDGO.cjs.map
|
|
61
|
+
//# sourceMappingURL=chunk-2H27UDGO.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../gen/resources/membership_profiles.ts"],"names":["ApiResource"],"mappings":";;;;;AAkFA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2BA,6BAAA,CAA+B;AAAA,EAC9D,OAAgB,IAAA,GAA8B,qBAAA;AAAA,EAE9C,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC4B;AAC5B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAmB,IAAA,EAAK;AAAA,MAC7C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC4B;AAC5B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAmB,IAAA,EAAK;AAAA,MAC7C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC1G;AAAA,EAEA,MAAM,YAAA,CACJ,mBAAA,EACA,MAAA,EACA,OAAA,EACuB;AACvB,IAAA,MAAM,oBAAA,GAAwB,oBAA0C,EAAA,IAAO,mBAAA;AAC/E,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,eA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,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,mBAAA,CAAmB,IAAA;AAAA,EAC/D;AAAA,EAEA,aAAa,EAAA,EAAsD;AACjE,IAAA,OAAO,KAAA,CAAM,qBAA2C,EAAE,CAAA;AAAA,EAC5D;AAAA,EAEA,sBAAsB,GAAA,EAAuC;AAC3D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA4C,GAAG,GAAG,CAAA;AAAA,EACjE;AAAA,EAEA,IAAA,GAA8B;AAC5B,IAAA,OAAO,mBAAA,CAAmB,IAAA;AAAA,EAC5B;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,2BAAA,GAAQ","file":"chunk-2H27UDGO.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 { ApplicationMembership, ApplicationMembershipType } from './application_memberships'\nimport type { Organization, OrganizationType } from './organizations'\n\ntype MembershipProfileType = 'membership_profiles'\ntype MembershipProfileRel = ResourceRel & { type: MembershipProfileType }\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\ntype ApplicationMembershipRel = ResourceRel & { type: ApplicationMembershipType }\n\nexport type MembershipProfileSort = Pick<MembershipProfile, 'id' | 'name'> & ResourceSort\n// export type MembershipProfileFilter = Pick<MembershipProfile, 'id' | 'name' | 'access_scope'> & ResourceFilter\n\n/**\n * The Membership profile object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/membership_profiles endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/membership_profiles/object\n */\ninterface MembershipProfile extends Resource {\n readonly type: MembershipProfileType\n\n /**\n * The membership profile name.\n * @example ```\"Marketing group\"```\n */\n name: string\n /**\n * Reflects the organization's access scope, either test_access or all_access.\n * @example ```true```\n */\n test_enabled?: boolean | null\n /**\n * The access scope for applications. One of `live_access` (default), `test_access`, `all_access`.\n * @example ```\"live_access\"```\n */\n access_scope: 'live_access' | 'test_access' | 'all_access'\n\n organization?: Organization | null\n application_memberships?: ApplicationMembership[] | null\n}\n\ninterface MembershipProfileCreate extends ResourceCreate {\n /**\n * The membership profile name.\n * @example ```\"Marketing group\"```\n */\n name: string\n /**\n * The access scope for applications. One of `live_access` (default), `test_access`, `all_access`.\n * @example ```\"live_access\"```\n */\n access_scope: 'live_access' | 'test_access' | 'all_access'\n\n organization: OrganizationRel\n application_memberships?: ApplicationMembershipRel[] | null\n}\n\ninterface MembershipProfileUpdate extends ResourceUpdate {\n /**\n * The membership profile name.\n * @example ```\"Marketing group\"```\n */\n name?: string | null\n /**\n * The access scope for applications. One of `live_access` (default), `test_access`, `all_access`.\n * @example ```\"live_access\"```\n */\n access_scope?: 'live_access' | 'test_access' | 'all_access' | null\n\n application_memberships?: ApplicationMembershipRel[] | null\n}\n\nclass MembershipProfiles extends ApiResource<MembershipProfile> {\n static readonly TYPE: MembershipProfileType = 'membership_profiles' as const\n\n async create(\n resource: MembershipProfileCreate,\n params?: QueryParamsRetrieve<MembershipProfile>,\n options?: ResourcesConfig,\n ): Promise<MembershipProfile> {\n return this.resources.create<MembershipProfileCreate, MembershipProfile>(\n { ...resource, type: MembershipProfiles.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: MembershipProfileUpdate,\n params?: QueryParamsRetrieve<MembershipProfile>,\n options?: ResourcesConfig,\n ): Promise<MembershipProfile> {\n return this.resources.update<MembershipProfileUpdate, MembershipProfile>(\n { ...resource, type: MembershipProfiles.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: MembershipProfiles.TYPE } : id, options)\n }\n\n async organization(\n membershipProfileId: string | MembershipProfile,\n params?: QueryParamsRetrieve<Organization>,\n options?: ResourcesConfig,\n ): Promise<Organization> {\n const _membershipProfileId = (membershipProfileId as MembershipProfile).id || (membershipProfileId as string)\n return this.resources.fetch<Organization>(\n { type: 'organizations' },\n `membership_profiles/${_membershipProfileId}/organization`,\n params,\n options,\n ) as unknown as Organization\n }\n\n async application_memberships(\n membershipProfileId: string | MembershipProfile,\n params?: QueryParamsList<ApplicationMembership>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<ApplicationMembership>> {\n const _membershipProfileId = (membershipProfileId as MembershipProfile).id || (membershipProfileId as string)\n return this.resources.fetch<ApplicationMembership>(\n { type: 'application_memberships' },\n `membership_profiles/${_membershipProfileId}/application_memberships`,\n params,\n options,\n ) as unknown as ListResponse<ApplicationMembership>\n }\n\n isMembershipProfile(resource: any): resource is MembershipProfile {\n return resource.type && resource.type === MembershipProfiles.TYPE\n }\n\n relationship(id: string | ResourceId | null): MembershipProfileRel {\n return super.relationshipOneToOne<MembershipProfileRel>(id)\n }\n\n relationshipToMany(...ids: string[]): MembershipProfileRel[] {\n return super.relationshipOneToMany<MembershipProfileRel>(...ids)\n }\n\n type(): MembershipProfileType {\n return MembershipProfiles.TYPE\n }\n}\n\nconst instance = new MembershipProfiles()\nexport default instance\n\nexport type {\n MembershipProfile,\n MembershipProfileCreate,\n MembershipProfiles,\n MembershipProfileType,\n MembershipProfileUpdate,\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-
|
|
1
|
+
import { ApiResource } from './chunk-OTK6VLW5.js';
|
|
2
2
|
|
|
3
3
|
// gen/resources/application_memberships.ts
|
|
4
4
|
var ApplicationMemberships = class _ApplicationMemberships extends ApiResource {
|
|
@@ -82,5 +82,5 @@ var instance = new ApplicationMemberships();
|
|
|
82
82
|
var application_memberships_default = instance;
|
|
83
83
|
|
|
84
84
|
export { application_memberships_default };
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
85
|
+
//# sourceMappingURL=chunk-37LZALYC.js.map
|
|
86
|
+
//# sourceMappingURL=chunk-37LZALYC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../gen/resources/application_memberships.ts"],"names":[],"mappings":";;;AA2EA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+B,WAAA,CAAmC;AAAA,EACtE,OAAgB,IAAA,GAAkC,yBAAA;AAAA,EAElD,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACgC;AAChC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAuB,IAAA,EAAK;AAAA,MACjD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACgC;AAChC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAuB,IAAA,EAAK;AAAA,MACjD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,cAAA,CACJ,uBAAA,EACA,MAAA,EACA,OAAA,EACwB;AACxB,IAAA,MAAM,wBAAA,GACH,wBAAkD,EAAA,IAAO,uBAAA;AAC5D,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,iBAAA,EAAkB;AAAA,MAC1B,2BAA2B,wBAAwB,CAAA,eAAA,CAAA;AAAA,MACnD,MAAA;AAAA,MACA;AAAA,K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,wBAAwB,QAAA,EAAkD;AACxE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAEA,aAAa,EAAA,EAA0D;AACrE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAChE;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACrE;AAAA,EAEA,IAAA,GAAkC;AAChC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAChC;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,+BAAA,GAAQ","file":"chunk-PIDJDUN3.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 { ApiCredential, ApiCredentialType } from './api_credentials'\nimport type { MembershipProfile, MembershipProfileType } from './membership_profiles'\nimport type { Membership, MembershipType } from './memberships'\nimport type { Organization, OrganizationType } from './organizations'\nimport type { Role, RoleType } from './roles'\n\ntype ApplicationMembershipType = 'application_memberships'\ntype ApplicationMembershipRel = ResourceRel & { type: ApplicationMembershipType }\ntype ApiCredentialRel = ResourceRel & { type: ApiCredentialType }\ntype MembershipRel = ResourceRel & { type: MembershipType }\ntype MembershipProfileRel = ResourceRel & { type: MembershipProfileType }\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\ntype RoleRel = ResourceRel & { type: RoleType }\n\nexport type ApplicationMembershipSort = Pick<ApplicationMembership, 'id'> & ResourceSort\n// export type ApplicationMembershipFilter = Pick<ApplicationMembership, 'id' | 'filters'> & ResourceFilter\n\n/**\n * The Application membership object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/application_memberships endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/application_memberships/object\n */\ninterface ApplicationMembership extends Resource {\n readonly type: ApplicationMembershipType\n\n /**\n * Set of key-value pairs that contains restrictions and scopes of the application membership.\n * @example ```{\"market_id_in\":[202,203]}```\n */\n filters?: Record<string, any> | null\n\n api_credential?: ApiCredential | null\n membership?: Membership | null\n membership_profile?: MembershipProfile | null\n organization?: Organization | null\n role?: Role | null\n}\n\ninterface ApplicationMembershipCreate extends ResourceCreate {\n /**\n * Set of key-value pairs that contains restrictions and scopes of the application membership.\n * @example ```{\"market_id_in\":[202,203]}```\n */\n filters?: Record<string, any> | null\n\n api_credential: ApiCredentialRel\n membership?: MembershipRel | null\n membership_profile?: MembershipProfileRel | null\n organization: OrganizationRel\n role: RoleRel\n}\n\ninterface ApplicationMembershipUpdate extends ResourceUpdate {\n /**\n * Set of key-value pairs that contains restrictions and scopes of the application membership.\n * @example ```{\"market_id_in\":[202,203]}```\n */\n filters?: Record<string, any> | null\n\n membership_profile?: MembershipProfileRel | null\n role?: RoleRel | null\n}\n\nclass ApplicationMemberships extends ApiResource<ApplicationMembership> {\n static readonly TYPE: ApplicationMembershipType = 'application_memberships' as const\n\n async create(\n resource: ApplicationMembershipCreate,\n params?: QueryParamsRetrieve<ApplicationMembership>,\n options?: ResourcesConfig,\n ): Promise<ApplicationMembership> {\n return this.resources.create<ApplicationMembershipCreate, ApplicationMembership>(\n { ...resource, type: ApplicationMemberships.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: ApplicationMembershipUpdate,\n params?: QueryParamsRetrieve<ApplicationMembership>,\n options?: ResourcesConfig,\n ): Promise<ApplicationMembership> {\n return this.resources.update<ApplicationMembershipUpdate, ApplicationMembership>(\n { ...resource, type: ApplicationMemberships.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: ApplicationMemberships.TYPE } : id, options)\n }\n\n async api_credential(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<ApiCredential>,\n options?: ResourcesConfig,\n ): Promise<ApiCredential> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<ApiCredential>(\n { type: 'api_credentials' },\n `application_memberships/${_applicationMembershipId}/api_credential`,\n params,\n options,\n ) as unknown as ApiCredential\n }\n\n async membership(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<Membership>,\n options?: ResourcesConfig,\n ): Promise<Membership> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<Membership>(\n { type: 'memberships' },\n `application_memberships/${_applicationMembershipId}/membership`,\n params,\n options,\n ) as unknown as Membership\n }\n\n async membership_profile(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<MembershipProfile>,\n options?: ResourcesConfig,\n ): Promise<MembershipProfile> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<MembershipProfile>(\n { type: 'membership_profiles' },\n `application_memberships/${_applicationMembershipId}/membership_profile`,\n params,\n options,\n ) as unknown as MembershipProfile\n }\n\n async organization(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<Organization>,\n options?: ResourcesConfig,\n ): Promise<Organization> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<Organization>(\n { type: 'organizations' },\n `application_memberships/${_applicationMembershipId}/organization`,\n params,\n options,\n ) as unknown as Organization\n }\n\n async role(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<Role>,\n options?: ResourcesConfig,\n ): Promise<Role> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<Role>(\n { type: 'roles' },\n `application_memberships/${_applicationMembershipId}/role`,\n params,\n options,\n ) as unknown as Role\n }\n\n isApplicationMembership(resource: any): resource is ApplicationMembership {\n return resource.type && resource.type === ApplicationMemberships.TYPE\n }\n\n relationship(id: string | ResourceId | null): ApplicationMembershipRel {\n return super.relationshipOneToOne<ApplicationMembershipRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ApplicationMembershipRel[] {\n return super.relationshipOneToMany<ApplicationMembershipRel>(...ids)\n }\n\n type(): ApplicationMembershipType {\n return ApplicationMemberships.TYPE\n }\n}\n\nconst instance = new ApplicationMemberships()\nexport default instance\n\nexport type {\n ApplicationMembership,\n ApplicationMembershipCreate,\n ApplicationMemberships,\n ApplicationMembershipType,\n ApplicationMembershipUpdate,\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../gen/resources/application_memberships.ts"],"names":[],"mappings":";;;AA2EA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+B,WAAA,CAAmC;AAAA,EACtE,OAAgB,IAAA,GAAkC,yBAAA;AAAA,EAElD,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACgC;AAChC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAuB,IAAA,EAAK;AAAA,MACjD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACgC;AAChC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAuB,IAAA,EAAK;AAAA,MACjD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAA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BAAwB,CAAA,aAAA,CAAA;AAAA,MACnD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,IAAA,CACJ,uBAAA,EACA,MAAA,EACA,OAAA,EACe;AACf,IAAA,MAAM,wBAAA,GACH,wBAAkD,EAAA,IAAO,uBAAA;AAC5D,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,OAAA,EAAQ;AAAA,MAChB,2BAA2B,wBAAwB,CAAA,KAAA,CAAA;AAAA,MACnD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,wBAAwB,QAAA,EAAkD;AACxE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAEA,aAAa,EAAA,EAA0D;AACrE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAChE;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACrE;AAAA,EAEA,IAAA,GAAkC;AAChC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAChC;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,+BAAA,GAAQ","file":"chunk-37LZALYC.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 { ApiCredential, ApiCredentialType } from './api_credentials'\nimport type { MembershipProfile, MembershipProfileType } from './membership_profiles'\nimport type { Membership, MembershipType } from './memberships'\nimport type { Organization, OrganizationType } from './organizations'\nimport type { Role, RoleType } from './roles'\n\ntype ApplicationMembershipType = 'application_memberships'\ntype ApplicationMembershipRel = ResourceRel & { type: ApplicationMembershipType }\ntype ApiCredentialRel = ResourceRel & { type: ApiCredentialType }\ntype MembershipRel = ResourceRel & { type: MembershipType }\ntype MembershipProfileRel = ResourceRel & { type: MembershipProfileType }\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\ntype RoleRel = ResourceRel & { type: RoleType }\n\nexport type ApplicationMembershipSort = Pick<ApplicationMembership, 'id'> & ResourceSort\n// export type ApplicationMembershipFilter = Pick<ApplicationMembership, 'id' | 'filters'> & ResourceFilter\n\n/**\n * The Application membership object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/application_memberships endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/application_memberships/object\n */\ninterface ApplicationMembership extends Resource {\n readonly type: ApplicationMembershipType\n\n /**\n * Set of key-value pairs that contains restrictions and scopes of the application membership.\n * @example ```{\"market_id_in\":[202,203]}```\n */\n filters?: Record<string, any> | null\n\n api_credential?: ApiCredential | null\n membership?: Membership | null\n membership_profile?: MembershipProfile | null\n organization?: Organization | null\n role?: Role | null\n}\n\ninterface ApplicationMembershipCreate extends ResourceCreate {\n /**\n * Set of key-value pairs that contains restrictions and scopes of the application membership.\n * @example ```{\"market_id_in\":[202,203]}```\n */\n filters?: Record<string, any> | null\n\n api_credential: ApiCredentialRel\n membership?: MembershipRel | null\n membership_profile?: MembershipProfileRel | null\n organization: OrganizationRel\n role: RoleRel\n}\n\ninterface ApplicationMembershipUpdate extends ResourceUpdate {\n /**\n * Set of key-value pairs that contains restrictions and scopes of the application membership.\n * @example ```{\"market_id_in\":[202,203]}```\n */\n filters?: Record<string, any> | null\n\n membership_profile?: MembershipProfileRel | null\n role?: RoleRel | null\n}\n\nclass ApplicationMemberships extends ApiResource<ApplicationMembership> {\n static readonly TYPE: ApplicationMembershipType = 'application_memberships' as const\n\n async create(\n resource: ApplicationMembershipCreate,\n params?: QueryParamsRetrieve<ApplicationMembership>,\n options?: ResourcesConfig,\n ): Promise<ApplicationMembership> {\n return this.resources.create<ApplicationMembershipCreate, ApplicationMembership>(\n { ...resource, type: ApplicationMemberships.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: ApplicationMembershipUpdate,\n params?: QueryParamsRetrieve<ApplicationMembership>,\n options?: ResourcesConfig,\n ): Promise<ApplicationMembership> {\n return this.resources.update<ApplicationMembershipUpdate, ApplicationMembership>(\n { ...resource, type: ApplicationMemberships.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: ApplicationMemberships.TYPE } : id, options)\n }\n\n async api_credential(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<ApiCredential>,\n options?: ResourcesConfig,\n ): Promise<ApiCredential> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<ApiCredential>(\n { type: 'api_credentials' },\n `application_memberships/${_applicationMembershipId}/api_credential`,\n params,\n options,\n ) as unknown as ApiCredential\n }\n\n async membership(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<Membership>,\n options?: ResourcesConfig,\n ): Promise<Membership> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<Membership>(\n { type: 'memberships' },\n `application_memberships/${_applicationMembershipId}/membership`,\n params,\n options,\n ) as unknown as Membership\n }\n\n async membership_profile(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<MembershipProfile>,\n options?: ResourcesConfig,\n ): Promise<MembershipProfile> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<MembershipProfile>(\n { type: 'membership_profiles' },\n `application_memberships/${_applicationMembershipId}/membership_profile`,\n params,\n options,\n ) as unknown as MembershipProfile\n }\n\n async organization(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<Organization>,\n options?: ResourcesConfig,\n ): Promise<Organization> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<Organization>(\n { type: 'organizations' },\n `application_memberships/${_applicationMembershipId}/organization`,\n params,\n options,\n ) as unknown as Organization\n }\n\n async role(\n applicationMembershipId: string | ApplicationMembership,\n params?: QueryParamsRetrieve<Role>,\n options?: ResourcesConfig,\n ): Promise<Role> {\n const _applicationMembershipId =\n (applicationMembershipId as ApplicationMembership).id || (applicationMembershipId as string)\n return this.resources.fetch<Role>(\n { type: 'roles' },\n `application_memberships/${_applicationMembershipId}/role`,\n params,\n options,\n ) as unknown as Role\n }\n\n isApplicationMembership(resource: any): resource is ApplicationMembership {\n return resource.type && resource.type === ApplicationMemberships.TYPE\n }\n\n relationship(id: string | ResourceId | null): ApplicationMembershipRel {\n return super.relationshipOneToOne<ApplicationMembershipRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ApplicationMembershipRel[] {\n return super.relationshipOneToMany<ApplicationMembershipRel>(...ids)\n }\n\n type(): ApplicationMembershipType {\n return ApplicationMemberships.TYPE\n }\n}\n\nconst instance = new ApplicationMemberships()\nexport default instance\n\nexport type {\n ApplicationMembership,\n ApplicationMembershipCreate,\n ApplicationMemberships,\n ApplicationMembershipType,\n ApplicationMembershipUpdate,\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-
|
|
1
|
+
import { ApiResource } from './chunk-OTK6VLW5.js';
|
|
2
2
|
|
|
3
3
|
// gen/resources/permissions.ts
|
|
4
4
|
var Permissions = class _Permissions extends ApiResource {
|
|
@@ -53,5 +53,5 @@ var instance = new Permissions();
|
|
|
53
53
|
var permissions_default = instance;
|
|
54
54
|
|
|
55
55
|
export { permissions_default };
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chun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A,EAA+C;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAgC;AACpD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAqC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAEA,IAAA,GAAuB;AACrB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACrB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,mBAAA,GAAQ","file":"chunk-3AXLHEDT.js","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'\n\nimport type { Organization } from './organizations'\nimport type { Role, RoleType } from './roles'\nimport type { Version } from './versions'\n\ntype PermissionType = 'permissions'\ntype PermissionRel = ResourceRel & { type: PermissionType }\ntype RoleRel = ResourceRel & { type: RoleType }\n\nexport type PermissionSort = Pick<Permission, 'id'> & ResourceSort\n// export type PermissionFilter = Pick<Permission, 'id' | 'can_create' | 'can_read' | 'can_update' | 'can_destroy' | 'subject' | 'restrictions'> & ResourceFilter\n\n/**\n * The Permission object is returned as part of the response body of each successful list, retrieve, create or update API call to the /api/permissions endpoint.\n *\n * @link https://docs.commercelayer.io/provisioning-api-reference/permissions/object\n */\ninterface Permission extends Resource {\n readonly type: PermissionType\n\n /**\n * Determines if the permission have access to create rights.\n */\n can_create: boolean\n /**\n * Determines if the permission have access to read rights.\n */\n can_read: boolean\n /**\n * Determines if the permission have access to update rights.\n */\n can_update: boolean\n /**\n * Determines if the permission have access to destroy rights.\n */\n can_destroy: boolean\n /**\n * The resource where this permission is applied.\n */\n subject: string\n /**\n * An object that contains additional restrictions.\n * @example ```{\"foo\":\"bar\"}```\n */\n restrictions?: Record<string, any> | null\n\n organization?: Organization | null\n role?: Role | null\n versions?: Version[] | null\n}\n\ninterface PermissionCreate extends ResourceCreate {\n /**\n * Determines if the permission have access to create rights.\n */\n can_create: boolean\n /**\n * Determines if the permission have access to read rights.\n */\n can_read: boolean\n /**\n * Determines if the permission have access to update rights.\n */\n can_update: boolean\n /**\n * Determines if the permission have access to destroy rights.\n */\n can_destroy: boolean\n /**\n * The resource where this permission is applied.\n */\n subject: string\n\n role: RoleRel\n}\n\ninterface PermissionUpdate extends ResourceUpdate {\n /**\n * Determines if the permission have access to create rights.\n */\n can_create?: boolean | null\n /**\n * Determines if the permission have access to read rights.\n */\n can_read?: boolean | null\n /**\n * Determines if the permission have access to update rights.\n */\n can_update?: boolean | null\n /**\n * Determines if the permission have access to destroy rights.\n */\n can_destroy?: boolean | null\n}\n\nclass Permissions extends ApiResource<Permission> {\n static readonly TYPE: PermissionType = 'permissions' as const\n\n async create(\n resource: PermissionCreate,\n params?: QueryParamsRetrieve<Permission>,\n options?: ResourcesConfig,\n ): Promise<Permission> {\n return this.resources.create<PermissionCreate, Permission>({ ...resource, type: Permissions.TYPE }, params, options)\n }\n\n async update(\n resource: PermissionUpdate,\n params?: QueryParamsRetrieve<Permission>,\n options?: ResourcesConfig,\n ): Promise<Permission> {\n return this.resources.update<PermissionUpdate, Permission>({ ...resource, type: Permissions.TYPE }, params, options)\n }\n\n async organization(\n permissionId: string | Permission,\n params?: QueryParamsRetrieve<Organization>,\n options?: ResourcesConfig,\n ): Promise<Organization> {\n const _permissionId = (permissionId as Permission).id || (permissionId as string)\n return this.resources.fetch<Organization>(\n { type: 'organizations' },\n `permissions/${_permissionId}/organization`,\n params,\n options,\n ) as unknown as Organization\n }\n\n async role(\n permissionId: string | Permission,\n params?: QueryParamsRetrieve<Role>,\n options?: ResourcesConfig,\n ): Promise<Role> {\n const _permissionId = (permissionId as Permission).id || (permissionId as string)\n return this.resources.fetch<Role>(\n { type: 'roles' },\n `permissions/${_permissionId}/role`,\n params,\n options,\n ) as unknown as Role\n }\n\n async versions(\n permissionId: string | Permission,\n params?: QueryParamsList<Version>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Version>> {\n const _permissionId = (permissionId as Permission).id || (permissionId as string)\n return this.resources.fetch<Version>(\n { type: 'versions' },\n `permissions/${_permissionId}/versions`,\n params,\n options,\n ) as unknown as ListResponse<Version>\n }\n\n isPermission(resource: any): resource is Permission {\n return resource.type && resource.type === Permissions.TYPE\n }\n\n relationship(id: string | ResourceId | null): PermissionRel {\n return super.relationshipOneToOne<PermissionRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PermissionRel[] {\n return super.relationshipOneToMany<PermissionRel>(...ids)\n }\n\n type(): PermissionType {\n return Permissions.TYPE\n }\n}\n\nconst instance = new Permissions()\nexport default instance\n\nexport type { Permission, PermissionCreate, Permissions, PermissionType, PermissionUpdate }\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-
|
|
1
|
+
import { ApiResource } from './chunk-OTK6VLW5.js';
|
|
2
2
|
|
|
3
3
|
// gen/resources/identity_providers.ts
|
|
4
4
|
var IdentityProviders = class _IdentityProviders extends ApiResource {
|
|
@@ -60,5 +60,5 @@ var instance = new IdentityProviders();
|
|
|
60
60
|
var identity_providers_default = instance;
|
|
61
61
|
|
|
62
62
|
export { identity_providers_default };
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-3PE2OE6B.js.map
|
|
64
|
+
//# sourceMappingURL=chunk-3PE2OE6B.js.map
|
|
@@ -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,E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AA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,OAAA,CACJ,EAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,EAAA,EAAI,OAAO,EAAA,KAAO,QAAA,GAAW,EAAA,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-U76G3DPW.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,IAA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AkB,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-3PE2OE6B.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,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHVYM2S4K_cjs = require('./chunk-HVYM2S4K.cjs');
|
|
4
4
|
|
|
5
5
|
// gen/resources/api_credentials.ts
|
|
6
|
-
var ApiCredentials = class _ApiCredentials extends
|
|
6
|
+
var ApiCredentials = class _ApiCredentials extends chunkHVYM2S4K_cjs.ApiResource {
|
|
7
7
|
static TYPE = "api_credentials";
|
|
8
8
|
async create(resource, params, options) {
|
|
9
9
|
return this.resources.create(
|
|
@@ -57,5 +57,5 @@ var instance = new ApiCredentials();
|
|
|
57
57
|
var api_credentials_default = instance;
|
|
58
58
|
|
|
59
59
|
exports.api_credentials_default = api_credentials_default;
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-43XNULI4.cjs.map
|
|
61
|
+
//# sourceMappingURL=chunk-43XNULI4.cjs.map
|