@commercelayer/provisioning-sdk 2.4.0 → 2.4.1
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/index.d.mts +10 -10
- package/lib/index.d.ts +10 -10
- package/package.json +4 -4
package/lib/index.d.mts
CHANGED
|
@@ -225,12 +225,12 @@ interface Version extends Resource {
|
|
|
225
225
|
event: string;
|
|
226
226
|
/**
|
|
227
227
|
* The object changes payload.
|
|
228
|
-
* @example ```
|
|
228
|
+
* @example ```{"name":["previous","new"]}```
|
|
229
229
|
*/
|
|
230
230
|
changes: Record<string, any>;
|
|
231
231
|
/**
|
|
232
232
|
* Information about who triggered the change, only showed when it's from a JWT token.
|
|
233
|
-
* @example ```
|
|
233
|
+
* @example ```{"application":{"id":"DNOPYiZYpn","kind":"integration","public":true}}```
|
|
234
234
|
*/
|
|
235
235
|
who: Record<string, any>;
|
|
236
236
|
}
|
|
@@ -274,7 +274,7 @@ interface Permission extends Resource {
|
|
|
274
274
|
subject: string;
|
|
275
275
|
/**
|
|
276
276
|
* An object that contains additional restrictions.
|
|
277
|
-
* @example ```
|
|
277
|
+
* @example ```{"foo":"bar"}```
|
|
278
278
|
*/
|
|
279
279
|
restrictions: Record<string, any>;
|
|
280
280
|
organization?: Nullable<Organization>;
|
|
@@ -412,7 +412,7 @@ interface ApplicationMembership extends Resource {
|
|
|
412
412
|
readonly type: ApplicationMembershipType;
|
|
413
413
|
/**
|
|
414
414
|
* Set of key-value pairs that contains restrictions and scopes of the application membership.
|
|
415
|
-
* @example ```
|
|
415
|
+
* @example ```{"market_id_in":[202,203]}```
|
|
416
416
|
*/
|
|
417
417
|
filters?: Nullable<Record<string, any>>;
|
|
418
418
|
api_credential?: Nullable<ApiCredential>;
|
|
@@ -423,7 +423,7 @@ interface ApplicationMembership extends Resource {
|
|
|
423
423
|
interface ApplicationMembershipCreate extends ResourceCreate {
|
|
424
424
|
/**
|
|
425
425
|
* Set of key-value pairs that contains restrictions and scopes of the application membership.
|
|
426
|
-
* @example ```
|
|
426
|
+
* @example ```{"market_id_in":[202,203]}```
|
|
427
427
|
*/
|
|
428
428
|
filters?: Nullable<Record<string, any>>;
|
|
429
429
|
api_credential: ApiCredentialRel$1;
|
|
@@ -434,7 +434,7 @@ interface ApplicationMembershipCreate extends ResourceCreate {
|
|
|
434
434
|
interface ApplicationMembershipUpdate extends ResourceUpdate {
|
|
435
435
|
/**
|
|
436
436
|
* Set of key-value pairs that contains restrictions and scopes of the application membership.
|
|
437
|
-
* @example ```
|
|
437
|
+
* @example ```{"market_id_in":[202,203]}```
|
|
438
438
|
*/
|
|
439
439
|
filters?: Nullable<Record<string, any>>;
|
|
440
440
|
role?: Nullable<RoleRel$2>;
|
|
@@ -603,12 +603,12 @@ interface Organization extends Resource {
|
|
|
603
603
|
can_switch_live: boolean;
|
|
604
604
|
/**
|
|
605
605
|
* Information about the current subscription such as the plan type, limits, and subscription totals counter.
|
|
606
|
-
* @example ```
|
|
606
|
+
* @example ```{"plan_type":"growth","limits":{"markets":5,"skus":10000,"organizations":2,"memberships":5},"totals":{"organizations":1,"markets":0,"memberships":2,"skus":0}}```
|
|
607
607
|
*/
|
|
608
608
|
subscription_info: Record<string, any>;
|
|
609
609
|
/**
|
|
610
610
|
* The organization's configuration.
|
|
611
|
-
* @example ```
|
|
611
|
+
* @example ```{"mfe":{"default":{"links":{"cart":"https://cart.example.com/:order_id?accessToken=:access_token","checkout":"https://checkout.example.com/:order_id?accessToken=:access_token","identity":"https://example.com/login","microstore":"https://example.com/microstore/?accessToken=:access_token","my_account":"https://example.com/my-custom-account?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:lang/:order_id","billing_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"shipping_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"billing_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"shipping_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"default_country":"US"},"urls":{"privacy":"https://example.com/privacy/:lang","terms":"https://example.com/terms/:lang"}},"market:id:ZKcv13rT":{"links":{"cart":"https://example.com/custom-cart/:order_id?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:order_id"}}}}```
|
|
612
612
|
*/
|
|
613
613
|
config?: Nullable<Record<string, any>>;
|
|
614
614
|
/**
|
|
@@ -834,7 +834,7 @@ interface OrganizationCreate extends ResourceCreate {
|
|
|
834
834
|
region?: Nullable<string>;
|
|
835
835
|
/**
|
|
836
836
|
* The organization's configuration.
|
|
837
|
-
* @example ```
|
|
837
|
+
* @example ```{"mfe":{"default":{"links":{"cart":"https://cart.example.com/:order_id?accessToken=:access_token","checkout":"https://checkout.example.com/:order_id?accessToken=:access_token","identity":"https://example.com/login","microstore":"https://example.com/microstore/?accessToken=:access_token","my_account":"https://example.com/my-custom-account?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:lang/:order_id","billing_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"shipping_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"billing_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"shipping_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"default_country":"US"},"urls":{"privacy":"https://example.com/privacy/:lang","terms":"https://example.com/terms/:lang"}},"market:id:ZKcv13rT":{"links":{"cart":"https://example.com/custom-cart/:order_id?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:order_id"}}}}```
|
|
838
838
|
*/
|
|
839
839
|
config?: Nullable<Record<string, any>>;
|
|
840
840
|
}
|
|
@@ -886,7 +886,7 @@ interface OrganizationUpdate extends ResourceUpdate {
|
|
|
886
886
|
gtm_id_test?: Nullable<string>;
|
|
887
887
|
/**
|
|
888
888
|
* The organization's configuration.
|
|
889
|
-
* @example ```
|
|
889
|
+
* @example ```{"mfe":{"default":{"links":{"cart":"https://cart.example.com/:order_id?accessToken=:access_token","checkout":"https://checkout.example.com/:order_id?accessToken=:access_token","identity":"https://example.com/login","microstore":"https://example.com/microstore/?accessToken=:access_token","my_account":"https://example.com/my-custom-account?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:lang/:order_id","billing_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"shipping_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"billing_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"shipping_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"default_country":"US"},"urls":{"privacy":"https://example.com/privacy/:lang","terms":"https://example.com/terms/:lang"}},"market:id:ZKcv13rT":{"links":{"cart":"https://example.com/custom-cart/:order_id?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:order_id"}}}}```
|
|
890
890
|
*/
|
|
891
891
|
config?: Nullable<Record<string, any>>;
|
|
892
892
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -225,12 +225,12 @@ interface Version extends Resource {
|
|
|
225
225
|
event: string;
|
|
226
226
|
/**
|
|
227
227
|
* The object changes payload.
|
|
228
|
-
* @example ```
|
|
228
|
+
* @example ```{"name":["previous","new"]}```
|
|
229
229
|
*/
|
|
230
230
|
changes: Record<string, any>;
|
|
231
231
|
/**
|
|
232
232
|
* Information about who triggered the change, only showed when it's from a JWT token.
|
|
233
|
-
* @example ```
|
|
233
|
+
* @example ```{"application":{"id":"DNOPYiZYpn","kind":"integration","public":true}}```
|
|
234
234
|
*/
|
|
235
235
|
who: Record<string, any>;
|
|
236
236
|
}
|
|
@@ -274,7 +274,7 @@ interface Permission extends Resource {
|
|
|
274
274
|
subject: string;
|
|
275
275
|
/**
|
|
276
276
|
* An object that contains additional restrictions.
|
|
277
|
-
* @example ```
|
|
277
|
+
* @example ```{"foo":"bar"}```
|
|
278
278
|
*/
|
|
279
279
|
restrictions: Record<string, any>;
|
|
280
280
|
organization?: Nullable<Organization>;
|
|
@@ -412,7 +412,7 @@ interface ApplicationMembership extends Resource {
|
|
|
412
412
|
readonly type: ApplicationMembershipType;
|
|
413
413
|
/**
|
|
414
414
|
* Set of key-value pairs that contains restrictions and scopes of the application membership.
|
|
415
|
-
* @example ```
|
|
415
|
+
* @example ```{"market_id_in":[202,203]}```
|
|
416
416
|
*/
|
|
417
417
|
filters?: Nullable<Record<string, any>>;
|
|
418
418
|
api_credential?: Nullable<ApiCredential>;
|
|
@@ -423,7 +423,7 @@ interface ApplicationMembership extends Resource {
|
|
|
423
423
|
interface ApplicationMembershipCreate extends ResourceCreate {
|
|
424
424
|
/**
|
|
425
425
|
* Set of key-value pairs that contains restrictions and scopes of the application membership.
|
|
426
|
-
* @example ```
|
|
426
|
+
* @example ```{"market_id_in":[202,203]}```
|
|
427
427
|
*/
|
|
428
428
|
filters?: Nullable<Record<string, any>>;
|
|
429
429
|
api_credential: ApiCredentialRel$1;
|
|
@@ -434,7 +434,7 @@ interface ApplicationMembershipCreate extends ResourceCreate {
|
|
|
434
434
|
interface ApplicationMembershipUpdate extends ResourceUpdate {
|
|
435
435
|
/**
|
|
436
436
|
* Set of key-value pairs that contains restrictions and scopes of the application membership.
|
|
437
|
-
* @example ```
|
|
437
|
+
* @example ```{"market_id_in":[202,203]}```
|
|
438
438
|
*/
|
|
439
439
|
filters?: Nullable<Record<string, any>>;
|
|
440
440
|
role?: Nullable<RoleRel$2>;
|
|
@@ -603,12 +603,12 @@ interface Organization extends Resource {
|
|
|
603
603
|
can_switch_live: boolean;
|
|
604
604
|
/**
|
|
605
605
|
* Information about the current subscription such as the plan type, limits, and subscription totals counter.
|
|
606
|
-
* @example ```
|
|
606
|
+
* @example ```{"plan_type":"growth","limits":{"markets":5,"skus":10000,"organizations":2,"memberships":5},"totals":{"organizations":1,"markets":0,"memberships":2,"skus":0}}```
|
|
607
607
|
*/
|
|
608
608
|
subscription_info: Record<string, any>;
|
|
609
609
|
/**
|
|
610
610
|
* The organization's configuration.
|
|
611
|
-
* @example ```
|
|
611
|
+
* @example ```{"mfe":{"default":{"links":{"cart":"https://cart.example.com/:order_id?accessToken=:access_token","checkout":"https://checkout.example.com/:order_id?accessToken=:access_token","identity":"https://example.com/login","microstore":"https://example.com/microstore/?accessToken=:access_token","my_account":"https://example.com/my-custom-account?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:lang/:order_id","billing_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"shipping_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"billing_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"shipping_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"default_country":"US"},"urls":{"privacy":"https://example.com/privacy/:lang","terms":"https://example.com/terms/:lang"}},"market:id:ZKcv13rT":{"links":{"cart":"https://example.com/custom-cart/:order_id?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:order_id"}}}}```
|
|
612
612
|
*/
|
|
613
613
|
config?: Nullable<Record<string, any>>;
|
|
614
614
|
/**
|
|
@@ -834,7 +834,7 @@ interface OrganizationCreate extends ResourceCreate {
|
|
|
834
834
|
region?: Nullable<string>;
|
|
835
835
|
/**
|
|
836
836
|
* The organization's configuration.
|
|
837
|
-
* @example ```
|
|
837
|
+
* @example ```{"mfe":{"default":{"links":{"cart":"https://cart.example.com/:order_id?accessToken=:access_token","checkout":"https://checkout.example.com/:order_id?accessToken=:access_token","identity":"https://example.com/login","microstore":"https://example.com/microstore/?accessToken=:access_token","my_account":"https://example.com/my-custom-account?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:lang/:order_id","billing_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"shipping_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"billing_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"shipping_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"default_country":"US"},"urls":{"privacy":"https://example.com/privacy/:lang","terms":"https://example.com/terms/:lang"}},"market:id:ZKcv13rT":{"links":{"cart":"https://example.com/custom-cart/:order_id?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:order_id"}}}}```
|
|
838
838
|
*/
|
|
839
839
|
config?: Nullable<Record<string, any>>;
|
|
840
840
|
}
|
|
@@ -886,7 +886,7 @@ interface OrganizationUpdate extends ResourceUpdate {
|
|
|
886
886
|
gtm_id_test?: Nullable<string>;
|
|
887
887
|
/**
|
|
888
888
|
* The organization's configuration.
|
|
889
|
-
* @example ```
|
|
889
|
+
* @example ```{"mfe":{"default":{"links":{"cart":"https://cart.example.com/:order_id?accessToken=:access_token","checkout":"https://checkout.example.com/:order_id?accessToken=:access_token","identity":"https://example.com/login","microstore":"https://example.com/microstore/?accessToken=:access_token","my_account":"https://example.com/my-custom-account?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:lang/:order_id","billing_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"shipping_countries":[{"value":"ES","label":"Espana"},{"value":"IT","label":"Italia"},{"value":"US","label":"Unites States of America"}],"billing_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"shipping_states":{"FR":[{"value":"PA","label":"Paris"},{"value":"LY","label":"Lyon"},{"value":"NI","label":"Nice"},{"value":"MA","label":"Marseille"},{"value":"BO","label":"Bordeaux"}]},"default_country":"US"},"urls":{"privacy":"https://example.com/privacy/:lang","terms":"https://example.com/terms/:lang"}},"market:id:ZKcv13rT":{"links":{"cart":"https://example.com/custom-cart/:order_id?accessToken=:access_token"},"checkout":{"thankyou_page":"https://example.com/thanks/:order_id"}}}}```
|
|
890
890
|
*/
|
|
891
891
|
config?: Nullable<Record<string, any>>;
|
|
892
892
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/provisioning-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"node": ">=20"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@babel/preset-env": "^7.26.
|
|
37
|
+
"@babel/preset-env": "^7.26.7",
|
|
38
38
|
"@babel/preset-typescript": "^7.26.0",
|
|
39
39
|
"@commercelayer/eslint-config-ts": "1.4.5",
|
|
40
40
|
"@commercelayer/js-auth": "^6.7.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@semantic-release/git": "^10.0.1",
|
|
43
43
|
"@types/debug": "^4.1.12",
|
|
44
44
|
"@types/jest": "^29.5.14",
|
|
45
|
-
"@types/node": "^22.
|
|
45
|
+
"@types/node": "^22.12.0",
|
|
46
46
|
"dotenv": "^16.4.7",
|
|
47
47
|
"eslint": "^8.57.1",
|
|
48
48
|
"jest": "^29.7.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"jsonapi-typescript": "^0.1.3",
|
|
51
51
|
"lodash.isequal": "^4.5.0",
|
|
52
52
|
"semantic-release": "^24.2.1",
|
|
53
|
-
"tsup": "^8.3.
|
|
53
|
+
"tsup": "^8.3.6",
|
|
54
54
|
"tsx": "^4.19.2",
|
|
55
55
|
"typescript": "^5.7.3"
|
|
56
56
|
},
|