@commercelayer/provisioning-sdk 3.0.0-beta.2 → 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/lib/{api-C_E9e1ea.d.ts → api-CrVODncY.d.ts} +16 -1
- package/lib/{api-C4jp_9vb.d.cts → api-DtxN9ZNI.d.cts} +16 -1
- 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-3NDVX4SE.cjs → chunk-2H27UDGO.cjs} +4 -4
- package/lib/{chunk-3NDVX4SE.cjs.map → chunk-2H27UDGO.cjs.map} +1 -1
- package/lib/{chunk-LTIWXCVE.js → chunk-37LZALYC.js} +3 -3
- package/lib/{chunk-LTIWXCVE.js.map → chunk-37LZALYC.js.map} +1 -1
- package/lib/{chunk-I4LPOTDO.js → chunk-3AXLHEDT.js} +3 -3
- package/lib/{chunk-I4LPOTDO.js.map → chunk-3AXLHEDT.js.map} +1 -1
- package/lib/{chunk-WMUY7Z2Q.js → chunk-3PE2OE6B.js} +3 -3
- package/lib/{chunk-WMUY7Z2Q.js.map → chunk-3PE2OE6B.js.map} +1 -1
- package/lib/{chunk-MHV7FMLE.cjs → chunk-43XNULI4.cjs} +4 -4
- package/lib/{chunk-MHV7FMLE.cjs.map → chunk-43XNULI4.cjs.map} +1 -1
- package/lib/{chunk-KO4FQ4V2.cjs → chunk-4PMMCL4I.cjs} +4 -4
- package/lib/{chunk-KO4FQ4V2.cjs.map → chunk-4PMMCL4I.cjs.map} +1 -1
- package/lib/{chunk-OROPOAHK.cjs → chunk-4TC4U7TK.cjs} +4 -4
- package/lib/{chunk-OROPOAHK.cjs.map → chunk-4TC4U7TK.cjs.map} +1 -1
- package/lib/{chunk-T2U6MUX4.js → chunk-5VPJA5UV.js} +3 -3
- package/lib/{chunk-T2U6MUX4.js.map → chunk-5VPJA5UV.js.map} +1 -1
- package/lib/{chunk-ZWZHZ4SU.js → chunk-6FFP3YXV.js} +3 -3
- package/lib/{chunk-ZWZHZ4SU.js.map → chunk-6FFP3YXV.js.map} +1 -1
- package/lib/{chunk-YUNEDDTL.js → chunk-6MIFOPOB.js} +14 -14
- package/lib/{chunk-YUNEDDTL.js.map → chunk-6MIFOPOB.js.map} +1 -1
- package/lib/{chunk-STPXKF53.js → chunk-6PWTKNOC.js} +4 -4
- package/lib/{chunk-STPXKF53.js.map → chunk-6PWTKNOC.js.map} +1 -1
- package/lib/{chunk-CWXGTX7W.js → chunk-6SNLYMKG.js} +4 -4
- package/lib/{chunk-CWXGTX7W.js.map → chunk-6SNLYMKG.js.map} +1 -1
- package/lib/{chunk-FRLV5YFL.cjs → chunk-73VBQFUA.cjs} +4 -4
- package/lib/{chunk-FRLV5YFL.cjs.map → chunk-73VBQFUA.cjs.map} +1 -1
- package/lib/{chunk-IRFPCJTG.js → chunk-BFBXXP4Q.js} +3 -3
- package/lib/{chunk-IRFPCJTG.js.map → chunk-BFBXXP4Q.js.map} +1 -1
- package/lib/{chunk-XS6QLJHG.cjs → chunk-DDFTZDVN.cjs} +3 -3
- package/lib/{chunk-XS6QLJHG.cjs.map → chunk-DDFTZDVN.cjs.map} +1 -1
- package/lib/{chunk-TY46WNR6.cjs → chunk-DTORLDNE.cjs} +8 -8
- package/lib/{chunk-TY46WNR6.cjs.map → chunk-DTORLDNE.cjs.map} +1 -1
- package/lib/{chunk-DYMRH6LP.cjs → chunk-EUMMY3TQ.cjs} +4 -4
- package/lib/{chunk-DYMRH6LP.cjs.map → chunk-EUMMY3TQ.cjs.map} +1 -1
- package/lib/{chunk-6MXIGF2G.cjs → chunk-H5YSO3AX.cjs} +10 -10
- package/lib/{chunk-6MXIGF2G.cjs.map → chunk-H5YSO3AX.cjs.map} +1 -1
- package/lib/{chunk-EVDEBFHZ.cjs → chunk-HVYM2S4K.cjs} +35 -13
- package/lib/chunk-HVYM2S4K.cjs.map +1 -0
- package/lib/{chunk-G4JBHI2H.js → chunk-IRQX6AG3.js} +3 -3
- package/lib/{chunk-G4JBHI2H.js.map → chunk-IRQX6AG3.js.map} +1 -1
- package/lib/{chunk-ECGUWRRG.js → chunk-LSEKNECC.js} +3 -3
- package/lib/{chunk-ECGUWRRG.js.map → chunk-LSEKNECC.js.map} +1 -1
- package/lib/{chunk-3ILNEP2F.cjs → chunk-LV5XV2UF.cjs} +26 -26
- package/lib/{chunk-3ILNEP2F.cjs.map → chunk-LV5XV2UF.cjs.map} +1 -1
- package/lib/{chunk-FMHTNUZ4.cjs → chunk-MT2XP4UJ.cjs} +4 -4
- package/lib/{chunk-FMHTNUZ4.cjs.map → chunk-MT2XP4UJ.cjs.map} +1 -1
- package/lib/{chunk-7YEOUGXO.js → chunk-NDCVBYCJ.js} +3 -3
- package/lib/{chunk-7YEOUGXO.js.map → chunk-NDCVBYCJ.js.map} +1 -1
- package/lib/{chunk-GHXKZEH7.js → chunk-OTK6VLW5.js} +30 -8
- package/lib/chunk-OTK6VLW5.js.map +1 -0
- package/lib/{chunk-NDKGLF4B.cjs → chunk-PBYGXPJ6.cjs} +4 -4
- package/lib/{chunk-NDKGLF4B.cjs.map → chunk-PBYGXPJ6.cjs.map} +1 -1
- package/lib/{chunk-3PJNJ7B6.js → chunk-QTXYKCKC.js} +3 -3
- package/lib/{chunk-3PJNJ7B6.js.map → chunk-QTXYKCKC.js.map} +1 -1
- package/lib/{chunk-KT6LCJJQ.js → chunk-RWUBFJZ6.js} +3 -3
- package/lib/{chunk-KT6LCJJQ.js.map → chunk-RWUBFJZ6.js.map} +1 -1
- package/lib/{chunk-SQLX22US.js → chunk-VVSV5FR6.js} +3 -3
- package/lib/{chunk-SQLX22US.js.map → chunk-VVSV5FR6.js.map} +1 -1
- package/lib/{chunk-6FB54J7W.cjs → chunk-XKY46RI6.cjs} +4 -4
- package/lib/{chunk-6FB54J7W.cjs.map → chunk-XKY46RI6.cjs.map} +1 -1
- package/lib/{chunk-UILXNOZE.cjs → chunk-YAVEKFKE.cjs} +4 -4
- package/lib/{chunk-UILXNOZE.cjs.map → chunk-YAVEKFKE.cjs.map} +1 -1
- package/lib/{chunk-TXONK7R5.cjs → chunk-YYM7BH33.cjs} +4 -4
- package/lib/{chunk-TXONK7R5.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 +2 -2
- package/lib/chunk-EVDEBFHZ.cjs.map +0 -1
- package/lib/chunk-GHXKZEH7.js.map +0 -1
|
@@ -108,9 +108,24 @@ interface ResourceBase {
|
|
|
108
108
|
reference_origin?: string | null;
|
|
109
109
|
metadata?: Metadata;
|
|
110
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* The JSON:API `meta` member of a resource object — server-supplied facts about
|
|
113
|
+
* the resource rather than fields of it. Not to be confused with `metadata`,
|
|
114
|
+
* which is a user-writable attribute.
|
|
115
|
+
*
|
|
116
|
+
* Distinct from the document-level `meta` of a list response, which is what
|
|
117
|
+
* `ListMeta` reflects.
|
|
118
|
+
*/
|
|
119
|
+
type ResourceMeta = {
|
|
120
|
+
/** The API version the resource was created with, when the API reports it. */
|
|
121
|
+
readonly created_with_version?: string;
|
|
122
|
+
readonly [key: string]: unknown;
|
|
123
|
+
};
|
|
111
124
|
interface Resource extends ResourceBase, ResourceId {
|
|
112
125
|
readonly created_at: string;
|
|
113
126
|
readonly updated_at: string;
|
|
127
|
+
/** Present only when the API returns a `meta` member for this resource. */
|
|
128
|
+
readonly meta?: ResourceMeta;
|
|
114
129
|
}
|
|
115
130
|
interface ResourceCreate extends ResourceBase {
|
|
116
131
|
}
|
|
@@ -1642,4 +1657,4 @@ declare class ApiCredentials extends ApiResource<ApiCredential> {
|
|
|
1642
1657
|
}
|
|
1643
1658
|
declare const instance: ApiCredentials;
|
|
1644
1659
|
|
|
1645
|
-
export { type QueryFilter as $, type ApiCredential as A, type MembershipProfileSort as B, type CreatableResource as C, type DeletableResource as D, type ErrorObj as E, type MembershipProfileUpdate as F, MembershipProfiles as G, type HeadersObj as H, type IdentityProvider as I, type MembershipSort as J, type MembershipUpdate as K, type ListMeta as L, type Membership as M, Memberships as N, type Metadata as O, type Organization as P, type OrganizationCreate as Q, type ResourceFields as R, type OrganizationSort as S, type OrganizationUpdate as T, Organizations as U, type Permission as V, type PermissionCreate as W, type PermissionSort as X, type PermissionUpdate as Y, Permissions as Z, type QueryFields as _, type ResourceSortFields as a,
|
|
1660
|
+
export { type QueryFilter as $, type ApiCredential as A, type MembershipProfileSort as B, type CreatableResource as C, type DeletableResource as D, type ErrorObj as E, type MembershipProfileUpdate as F, MembershipProfiles as G, type HeadersObj as H, type IdentityProvider as I, type MembershipSort as J, type MembershipUpdate as K, type ListMeta as L, type Membership as M, Memberships as N, type Metadata as O, type Organization as P, type OrganizationCreate as Q, type ResourceFields as R, type OrganizationSort as S, type OrganizationUpdate as T, Organizations as U, type Permission as V, type PermissionCreate as W, type PermissionSort as X, type PermissionUpdate as Y, Permissions as Z, type QueryFields as _, type ResourceSortFields as a, instance$1 as a$, type QueryInclude as a0, type QueryPageCursor as a1, type QueryPageNumber as a2, type QueryPageSize as a3, type QueryParams as a4, type QueryParamsList as a5, type QueryParamsRetrieve as a6, type QuerySort as a7, type RequestObj as a8, type Resource as a9, type VersionSort as aA, Versions as aB, resourceList as aC, singletonList as aD, ResourceAdapter as aE, type RequestInterceptor as aF, type ErrorInterceptor as aG, type ResponseInterceptor as aH, type InterceptorType as aI, type RawResponseReader as aJ, type VersionType as aK, instance$9 as aL, type PermissionType as aM, instance$8 as aN, type RoleType as aO, instance$7 as aP, type MembershipType as aQ, instance$6 as aR, type OrganizationType as aS, instance$5 as aT, type MembershipProfileType as aU, instance$4 as aV, type ApplicationMembershipType as aW, instance$3 as aX, type UserType as aY, instance$2 as aZ, type IdentityProviderType as a_, type ResourceCreate as aa, type ResourceFilter as ab, type ResourceId as ac, type ResourceMeta as ad, type ResourceRel as ae, type ResourceSort as af, type ResourceType as ag, type ResourceUpdate as ah, type ResourcesConfig as ai, type ResourcesInitConfig as aj, type ResponseObj as ak, type RetrievableResource as al, type RetrievableResourceType as am, type Role as an, type RoleCreate as ao, type RoleSort as ap, type RoleUpdate as aq, Roles as ar, type SingletonUpdate as as, type UpdatableResource as at, type UpdatableResourceType as au, type User as av, type UserSort as aw, type UserUpdate as ax, Users as ay, type Version as az, type ResourceTypeLock as b, creatableResources as b0, deletableResources as b1, getSingletons as b2, isCreatable as b3, isDeletable as b4, isSingleton as b5, isUpdatable as b6, updatableResources as b7, type ApiCredentialType as b8, instance as b9, type ApiCredentialCreate as c, type ApiCredentialSort as d, type ApiCredentialUpdate as e, ApiCredentials as f, getResources as g, ApiResource as h, ApiSingleton as i, type ApplicationMembership as j, type ApplicationMembershipCreate as k, type ApplicationMembershipSort as l, type ApplicationMembershipUpdate as m, ApplicationMemberships as n, type CreatableResourceType as o, type DeletableResourceType as p, type IdentityProviderCreate as q, type IdentityProviderSort as r, type IdentityProviderUpdate as s, IdentityProviders as t, ListResponse as u, type ListableResource as v, type ListableResourceType as w, type MembershipCreate as x, type MembershipProfile as y, type MembershipProfileCreate as z };
|
|
@@ -108,9 +108,24 @@ interface ResourceBase {
|
|
|
108
108
|
reference_origin?: string | null;
|
|
109
109
|
metadata?: Metadata;
|
|
110
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* The JSON:API `meta` member of a resource object — server-supplied facts about
|
|
113
|
+
* the resource rather than fields of it. Not to be confused with `metadata`,
|
|
114
|
+
* which is a user-writable attribute.
|
|
115
|
+
*
|
|
116
|
+
* Distinct from the document-level `meta` of a list response, which is what
|
|
117
|
+
* `ListMeta` reflects.
|
|
118
|
+
*/
|
|
119
|
+
type ResourceMeta = {
|
|
120
|
+
/** The API version the resource was created with, when the API reports it. */
|
|
121
|
+
readonly created_with_version?: string;
|
|
122
|
+
readonly [key: string]: unknown;
|
|
123
|
+
};
|
|
111
124
|
interface Resource extends ResourceBase, ResourceId {
|
|
112
125
|
readonly created_at: string;
|
|
113
126
|
readonly updated_at: string;
|
|
127
|
+
/** Present only when the API returns a `meta` member for this resource. */
|
|
128
|
+
readonly meta?: ResourceMeta;
|
|
114
129
|
}
|
|
115
130
|
interface ResourceCreate extends ResourceBase {
|
|
116
131
|
}
|
|
@@ -1642,4 +1657,4 @@ declare class ApiCredentials extends ApiResource<ApiCredential> {
|
|
|
1642
1657
|
}
|
|
1643
1658
|
declare const instance: ApiCredentials;
|
|
1644
1659
|
|
|
1645
|
-
export { type QueryFilter as $, type ApiCredential as A, type MembershipProfileSort as B, type CreatableResource as C, type DeletableResource as D, type ErrorObj as E, type MembershipProfileUpdate as F, MembershipProfiles as G, type HeadersObj as H, type IdentityProvider as I, type MembershipSort as J, type MembershipUpdate as K, type ListMeta as L, type Membership as M, Memberships as N, type Metadata as O, type Organization as P, type OrganizationCreate as Q, type ResourceFields as R, type OrganizationSort as S, type OrganizationUpdate as T, Organizations as U, type Permission as V, type PermissionCreate as W, type PermissionSort as X, type PermissionUpdate as Y, Permissions as Z, type QueryFields as _, type ResourceSortFields as a,
|
|
1660
|
+
export { type QueryFilter as $, type ApiCredential as A, type MembershipProfileSort as B, type CreatableResource as C, type DeletableResource as D, type ErrorObj as E, type MembershipProfileUpdate as F, MembershipProfiles as G, type HeadersObj as H, type IdentityProvider as I, type MembershipSort as J, type MembershipUpdate as K, type ListMeta as L, type Membership as M, Memberships as N, type Metadata as O, type Organization as P, type OrganizationCreate as Q, type ResourceFields as R, type OrganizationSort as S, type OrganizationUpdate as T, Organizations as U, type Permission as V, type PermissionCreate as W, type PermissionSort as X, type PermissionUpdate as Y, Permissions as Z, type QueryFields as _, type ResourceSortFields as a, instance$1 as a$, type QueryInclude as a0, type QueryPageCursor as a1, type QueryPageNumber as a2, type QueryPageSize as a3, type QueryParams as a4, type QueryParamsList as a5, type QueryParamsRetrieve as a6, type QuerySort as a7, type RequestObj as a8, type Resource as a9, type VersionSort as aA, Versions as aB, resourceList as aC, singletonList as aD, ResourceAdapter as aE, type RequestInterceptor as aF, type ErrorInterceptor as aG, type ResponseInterceptor as aH, type InterceptorType as aI, type RawResponseReader as aJ, type VersionType as aK, instance$9 as aL, type PermissionType as aM, instance$8 as aN, type RoleType as aO, instance$7 as aP, type MembershipType as aQ, instance$6 as aR, type OrganizationType as aS, instance$5 as aT, type MembershipProfileType as aU, instance$4 as aV, type ApplicationMembershipType as aW, instance$3 as aX, type UserType as aY, instance$2 as aZ, type IdentityProviderType as a_, type ResourceCreate as aa, type ResourceFilter as ab, type ResourceId as ac, type ResourceMeta as ad, type ResourceRel as ae, type ResourceSort as af, type ResourceType as ag, type ResourceUpdate as ah, type ResourcesConfig as ai, type ResourcesInitConfig as aj, type ResponseObj as ak, type RetrievableResource as al, type RetrievableResourceType as am, type Role as an, type RoleCreate as ao, type RoleSort as ap, type RoleUpdate as aq, Roles as ar, type SingletonUpdate as as, type UpdatableResource as at, type UpdatableResourceType as au, type User as av, type UserSort as aw, type UserUpdate as ax, Users as ay, type Version as az, type ResourceTypeLock as b, creatableResources as b0, deletableResources as b1, getSingletons as b2, isCreatable as b3, isDeletable as b4, isSingleton as b5, isUpdatable as b6, updatableResources as b7, type ApiCredentialType as b8, instance as b9, type ApiCredentialCreate as c, type ApiCredentialSort as d, type ApiCredentialUpdate as e, ApiCredentials as f, getResources as g, ApiResource as h, ApiSingleton as i, type ApplicationMembership as j, type ApplicationMembershipCreate as k, type ApplicationMembershipSort as l, type ApplicationMembershipUpdate as m, ApplicationMemberships as n, type CreatableResourceType as o, type DeletableResourceType as p, type IdentityProviderCreate as q, type IdentityProviderSort as r, type IdentityProviderUpdate as s, IdentityProviders as t, ListResponse as u, type ListableResource as v, type ListableResourceType as w, type MembershipCreate as x, type MembershipProfile as y, type MembershipProfileCreate as z };
|
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 { 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-DtxN9ZNI.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-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 { 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-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 { 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-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":";;;;;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AAM,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,IA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AA,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-LTIWXCVE.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,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,K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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=chunk-3AXLHEDT.js.map
|
|
57
|
+
//# sourceMappingURL=chunk-3AXLHEDT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../gen/resources/permissions.ts"],"names":[],"mappings":";;;AA2GA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoB,WAAA,CAAwB;AAAA,EAChD,OAAgB,IAAA,GAAuB,aAAA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AAA;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
|