@one-commerce/sdk-core 2.1.1 → 2.2.0-one

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.
@@ -63,6 +63,8 @@ var AddToCartContext = /*#__PURE__*/function (_ContextCallClass) {
63
63
 
64
64
  _defineProperty(_assertThisInitialized(_this), "productLines", void 0);
65
65
 
66
+ _defineProperty(_assertThisInitialized(_this), "productAmount", void 0);
67
+
66
68
  return _this;
67
69
  }
68
70
 
@@ -122,6 +124,8 @@ var EditProductLinesOnCartContext = /*#__PURE__*/function (_ContextCallClass2) {
122
124
 
123
125
  _defineProperty(_assertThisInitialized(_this2), "pluginProductLines", void 0);
124
126
 
127
+ _defineProperty(_assertThisInitialized(_this2), "productAmount", void 0);
128
+
125
129
  return _this2;
126
130
  }
127
131
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["AddToCartContext","call","ContextCallClass","EditProductLinesOnCartContext"],"mappings":";;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,gB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WASX,uBAA6B;AAC3B,aAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,mCAAyC;AACvC,aAAO,KAAKA,IAAL,CAAU,yBAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAjBmCC,uB;;;;IAoBzBC,6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAUX,uBAA6B;AAC3B,aAAO,KAAKF,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAfgDC,uB","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\n\nimport {ContextCallClass} from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Backoffice.Context.AddToCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Backoffice.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type BackofficeAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
1
+ {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["AddToCartContext","call","ContextCallClass","EditProductLinesOnCartContext"],"mappings":";;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,gB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAUX,uBAA6B;AAC3B,aAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,mCAAyC;AACvC,aAAO,KAAKA,IAAL,CAAU,yBAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAlBmCC,uB;;;;IAqBzBC,6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAWX,uBAA6B;AAC3B,aAAO,KAAKF,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAhBgDC,uB","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\n\nimport {ContextCallClass} from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Backoffice.Context.AddToCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Backoffice.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type BackofficeAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
@@ -61,6 +61,8 @@ var AddToCartContext = /*#__PURE__*/function (_ContextCallClass) {
61
61
 
62
62
  _defineProperty(_assertThisInitialized(_this), "productLines", void 0);
63
63
 
64
+ _defineProperty(_assertThisInitialized(_this), "productAmount", void 0);
65
+
64
66
  return _this;
65
67
  }
66
68
 
@@ -118,6 +120,8 @@ var EditProductLinesOnCartContext = /*#__PURE__*/function (_ContextCallClass2) {
118
120
 
119
121
  _defineProperty(_assertThisInitialized(_this2), "pluginProductLines", void 0);
120
122
 
123
+ _defineProperty(_assertThisInitialized(_this2), "productAmount", void 0);
124
+
121
125
  return _this2;
122
126
  }
123
127
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shop/context.ts"],"names":["AddToCartContext","call","ContextCallClass","EditProductLinesOnCartContext"],"mappings":";;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,gB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAQX,uBAA6B;AAC3B,aAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,mCAAyC;AACvC,aAAO,KAAKA,IAAL,CAAU,yBAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAhBmCC,uB;;;;IAmBzBC,6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WASX,uBAA6B;AAC3B,aAAO,KAAKF,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAdgDC,uB","sourcesContent":["import {Shop} from \"@one-commerce/sdk-shared\";\n\nimport { ContextCallClass } from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Shop.Context.AddToCart {\n productId: string;\n cartId: string;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Shop.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type ShopAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
1
+ {"version":3,"sources":["../../../src/shop/context.ts"],"names":["AddToCartContext","call","ContextCallClass","EditProductLinesOnCartContext"],"mappings":";;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,gB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WASX,uBAA6B;AAC3B,aAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,mCAAyC;AACvC,aAAO,KAAKA,IAAL,CAAU,yBAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAjBmCC,uB;;;;IAoBzBC,6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAUX,uBAA6B;AAC3B,aAAO,KAAKF,IAAL,CAAU,aAAV,CAAP;AACD;;;WACD,qCAA2C;AACzC,aAAO,KAAKA,IAAL,CAAU,2BAAV,CAAP;AACD;;;;EAfgDC,uB","sourcesContent":["import {Shop} from \"@one-commerce/sdk-shared\";\n\nimport { ContextCallClass } from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Shop.Context.AddToCart {\n productId: string;\n cartId: string;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Shop.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type ShopAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
@@ -20,6 +20,8 @@ export class AddToCartContext extends ContextCallClass {
20
20
  _defineProperty(this, "pluginProductLines", void 0);
21
21
 
22
22
  _defineProperty(this, "productLines", void 0);
23
+
24
+ _defineProperty(this, "productAmount", void 0);
23
25
  }
24
26
 
25
27
  closePlugin() {
@@ -56,6 +58,8 @@ export class EditProductLinesOnCartContext extends ContextCallClass {
56
58
  _defineProperty(this, "productLines", void 0);
57
59
 
58
60
  _defineProperty(this, "pluginProductLines", void 0);
61
+
62
+ _defineProperty(this, "productAmount", void 0);
59
63
  }
60
64
 
61
65
  closePlugin() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["ContextCallClass","AddToCartContext","closePlugin","call","closePluginAndAddToCart","closePluginAndRefreshCart","EditProductLinesOnCartContext"],"mappings":";;AAEA,SAAQA,gBAAR,QAA+B,UAA/B;AAEA,OAAO,MAAMC,gBAAN,SAA+BD,gBAA/B,CAAwF;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAS7FE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDC,EAAAA,uBAAuB,GAAkB;AACvC,WAAO,KAAKD,IAAL,CAAU,yBAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAjB4F;AAoB/F,OAAO,MAAMG,6BAAN,SAA4CN,gBAA5C,CAAkH;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAUvHE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAfsH","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\n\nimport {ContextCallClass} from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Backoffice.Context.AddToCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Backoffice.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type BackofficeAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
1
+ {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["ContextCallClass","AddToCartContext","closePlugin","call","closePluginAndAddToCart","closePluginAndRefreshCart","EditProductLinesOnCartContext"],"mappings":";;AAEA,SAAQA,gBAAR,QAA+B,UAA/B;AAEA,OAAO,MAAMC,gBAAN,SAA+BD,gBAA/B,CAAwF;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAU7FE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDC,EAAAA,uBAAuB,GAAkB;AACvC,WAAO,KAAKD,IAAL,CAAU,yBAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAlB4F;AAqB/F,OAAO,MAAMG,6BAAN,SAA4CN,gBAA5C,CAAkH;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAWvHE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAhBsH","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\n\nimport {ContextCallClass} from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Backoffice.Context.AddToCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Backoffice.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n offerId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type BackofficeAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
@@ -18,6 +18,8 @@ export class AddToCartContext extends ContextCallClass {
18
18
  _defineProperty(this, "pluginProductLines", void 0);
19
19
 
20
20
  _defineProperty(this, "productLines", void 0);
21
+
22
+ _defineProperty(this, "productAmount", void 0);
21
23
  }
22
24
 
23
25
  closePlugin() {
@@ -52,6 +54,8 @@ export class EditProductLinesOnCartContext extends ContextCallClass {
52
54
  _defineProperty(this, "productLines", void 0);
53
55
 
54
56
  _defineProperty(this, "pluginProductLines", void 0);
57
+
58
+ _defineProperty(this, "productAmount", void 0);
55
59
  }
56
60
 
57
61
  closePlugin() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shop/context.ts"],"names":["ContextCallClass","AddToCartContext","closePlugin","call","closePluginAndAddToCart","closePluginAndRefreshCart","EditProductLinesOnCartContext"],"mappings":";;AAEA,SAASA,gBAAT,QAAiC,UAAjC;AAEA,OAAO,MAAMC,gBAAN,SAA+BD,gBAA/B,CAAkF;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAQvFE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDC,EAAAA,uBAAuB,GAAkB;AACvC,WAAO,KAAKD,IAAL,CAAU,yBAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAhBsF;AAmBzF,OAAO,MAAMG,6BAAN,SAA4CN,gBAA5C,CAA4G;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AASjHE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAdgH","sourcesContent":["import {Shop} from \"@one-commerce/sdk-shared\";\n\nimport { ContextCallClass } from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Shop.Context.AddToCart {\n productId: string;\n cartId: string;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Shop.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type ShopAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
1
+ {"version":3,"sources":["../../../src/shop/context.ts"],"names":["ContextCallClass","AddToCartContext","closePlugin","call","closePluginAndAddToCart","closePluginAndRefreshCart","EditProductLinesOnCartContext"],"mappings":";;AAEA,SAASA,gBAAT,QAAiC,UAAjC;AAEA,OAAO,MAAMC,gBAAN,SAA+BD,gBAA/B,CAAkF;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AASvFE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDC,EAAAA,uBAAuB,GAAkB;AACvC,WAAO,KAAKD,IAAL,CAAU,yBAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAjBsF;AAoBzF,OAAO,MAAMG,6BAAN,SAA4CN,gBAA5C,CAA4G;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAUjHE,EAAAA,WAAW,GAAkB;AAC3B,WAAO,KAAKC,IAAL,CAAU,aAAV,CAAP;AACD;;AACDE,EAAAA,yBAAyB,GAAkB;AACzC,WAAO,KAAKF,IAAL,CAAU,2BAAV,CAAP;AACD;;AAfgH","sourcesContent":["import {Shop} from \"@one-commerce/sdk-shared\";\n\nimport { ContextCallClass } from \"../utils\";\n\nexport class AddToCartContext extends ContextCallClass implements Shop.Context.AddToCart {\n productId: string;\n cartId: string;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n pluginProductLines: Array<any>;\n productLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndAddToCart(): Promise<void> {\n return this.call('closePluginAndAddToCart')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport class EditProductLinesOnCartContext extends ContextCallClass implements Shop.Context.EditProductLinesOnCart {\n productId: string;\n cartId: string | null;\n warehouses: Array<any>;\n warehouseId: string;\n meta: unknown;\n productLineId: string;\n productLines: Array<any>;\n pluginProductLines: Array<any>;\n productAmount: number;\n closePlugin(): Promise<void> {\n return this.call('closePlugin')\n }\n closePluginAndRefreshCart(): Promise<void> {\n return this.call('closePluginAndRefreshCart')\n }\n}\n\nexport type ShopAvailableContext = AddToCartContext | EditProductLinesOnCartContext\n"],"file":"context.js"}
@@ -9,6 +9,7 @@ export declare class AddToCartContext extends ContextCallClass implements Backof
9
9
  meta: unknown;
10
10
  pluginProductLines: Array<any>;
11
11
  productLines: Array<any>;
12
+ productAmount: number;
12
13
  closePlugin(): Promise<void>;
13
14
  closePluginAndAddToCart(): Promise<void>;
14
15
  closePluginAndRefreshCart(): Promise<void>;
@@ -23,6 +24,7 @@ export declare class EditProductLinesOnCartContext extends ContextCallClass impl
23
24
  productLineId: string;
24
25
  productLines: Array<any>;
25
26
  pluginProductLines: Array<any>;
27
+ productAmount: number;
26
28
  closePlugin(): Promise<void>;
27
29
  closePluginAndRefreshCart(): Promise<void>;
28
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/back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AO,CAAC,IAAI,CAAC;IAG5B,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3C;AAED,oBAAY,0BAA0B,GAAG,gBAAgB,GAAG,6BAA6B,CAAA"}
@@ -8,6 +8,7 @@ export declare class AddToCartContext extends ContextCallClass implements Shop.C
8
8
  meta: unknown;
9
9
  pluginProductLines: Array<any>;
10
10
  productLines: Array<any>;
11
+ productAmount: number;
11
12
  closePlugin(): Promise<void>;
12
13
  closePluginAndAddToCart(): Promise<void>;
13
14
  closePluginAndRefreshCart(): Promise<void>;
@@ -21,6 +22,7 @@ export declare class EditProductLinesOnCartContext extends ContextCallClass impl
21
22
  productLineId: string;
22
23
  productLines: Array<any>;
23
24
  pluginProductLines: Array<any>;
25
+ productAmount: number;
24
26
  closePlugin(): Promise<void>;
25
27
  closePluginAndRefreshCart(): Promise<void>;
26
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/shop/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,qBAAa,gBAAiB,SAAQ,gBAAiB,YAAW,IAAI,CAAC,OAAO,CAAC,SAAS;IACtF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAGxC,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3C;AAED,qBAAa,6BAA8B,SAAQ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YAAW,IAAI,CAAC,OAAO,CAAC,sBAAsB;IAChH,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,kBAAkB,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3C;AAED,oBAAY,oBAAoB,GAAG,gBAAgB,GAAG,6BAA6B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-commerce/sdk-core",
3
- "version": "2.1.1",
3
+ "version": "2.2.0-one",
4
4
  "description": "Core package for One Plugins",
5
5
  "module": "lib/esm/index.js",
6
6
  "main": "lib/cjs/index.js",
@@ -55,7 +55,7 @@
55
55
  "node": ">=16"
56
56
  },
57
57
  "dependencies": {
58
- "@one-commerce/sdk-shared": "^2.1.0",
58
+ "@one-commerce/sdk-shared": "^2.2.0-one",
59
59
  "iframe-channel": "^1.2.5"
60
60
  },
61
61
  "devDependencies": {
@@ -126,5 +126,5 @@
126
126
  "**/*.spec.js"
127
127
  ]
128
128
  },
129
- "gitHead": "98cf97aef1e2b7dfda63b389c113b14feb960b1b"
129
+ "gitHead": "78341aaf011caa12b678bcfe1005640ce22430e2"
130
130
  }