@one-commerce/sdk-core 1.19.1-alpha.0 → 1.19.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["AddToCartContext","Backoffice","Context","AvailableContext","ADD_TO_CART","call","BaseCallClass"],"mappings":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,gB;;;;;;;;;;;;;;;;kEACGC,sBAAWC,OAAX,CAAmBC,gBAAnB,CAAoCC,W;;;;;;;;;;;;;WAIlD,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;;;;EAbmCC,oB","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\nimport {BaseCallClass} from \"../utils\";\n\nexport class AddToCartContext extends BaseCallClass implements Backoffice.Context.AddToCart {\n serviceName = Backoffice.Context.AvailableContext.ADD_TO_CART\n productId: string;\n cartId: string;\n warehouses: 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 type AvailableContext = AddToCartContext\n"],"file":"context.js"}
1
+ {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["ContextCallClass","BaseCallClass","AddToCartContext","call"],"mappings":";;;;;;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,gB;;;;;;;;;;;;;;;;kEACU,S;;;;;;EADeC,oB;;IAIlBC,gB;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIX,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;;;;EAZmCH,gB","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\nimport {BaseCallClass} from \"../utils\";\n\nclass ContextCallClass extends BaseCallClass {\n serviceName = 'context'\n}\n\nexport class AddToCartContext extends ContextCallClass implements Backoffice.Context.AddToCart {\n productId: string;\n cartId: string;\n warehouses: 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 type AvailableContext = AddToCartContext\n"],"file":"context.js"}
@@ -1,12 +1,19 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- import { Backoffice } from "@one-commerce/sdk-shared";
4
3
  import { BaseCallClass } from "../utils";
5
- export class AddToCartContext extends BaseCallClass {
4
+
5
+ class ContextCallClass extends BaseCallClass {
6
6
  constructor(...args) {
7
7
  super(...args);
8
8
 
9
- _defineProperty(this, "serviceName", Backoffice.Context.AvailableContext.ADD_TO_CART);
9
+ _defineProperty(this, "serviceName", 'context');
10
+ }
11
+
12
+ }
13
+
14
+ export class AddToCartContext extends ContextCallClass {
15
+ constructor(...args) {
16
+ super(...args);
10
17
 
11
18
  _defineProperty(this, "productId", void 0);
12
19
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["Backoffice","BaseCallClass","AddToCartContext","Context","AvailableContext","ADD_TO_CART","closePlugin","call","closePluginAndAddToCart","closePluginAndRefreshCart"],"mappings":";;AAAA,SAAQA,UAAR,QAAyB,0BAAzB;AACA,SAAQC,aAAR,QAA4B,UAA5B;AAEA,OAAO,MAAMC,gBAAN,SAA+BD,aAA/B,CAAqF;AAAA;AAAA;;AAAA,yCAC5ED,UAAU,CAACG,OAAX,CAAmBC,gBAAnB,CAAoCC,WADwC;;AAAA;;AAAA;;AAAA;AAAA;;AAK1FC,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;;AAbyF","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\nimport {BaseCallClass} from \"../utils\";\n\nexport class AddToCartContext extends BaseCallClass implements Backoffice.Context.AddToCart {\n serviceName = Backoffice.Context.AvailableContext.ADD_TO_CART\n productId: string;\n cartId: string;\n warehouses: 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 type AvailableContext = AddToCartContext\n"],"file":"context.js"}
1
+ {"version":3,"sources":["../../../src/backoffice/context.ts"],"names":["BaseCallClass","ContextCallClass","AddToCartContext","closePlugin","call","closePluginAndAddToCart","closePluginAndRefreshCart"],"mappings":";;AACA,SAAQA,aAAR,QAA4B,UAA5B;;AAEA,MAAMC,gBAAN,SAA+BD,aAA/B,CAA6C;AAAA;AAAA;;AAAA,yCAC7B,SAD6B;AAAA;;AAAA;;AAI7C,OAAO,MAAME,gBAAN,SAA+BD,gBAA/B,CAAwF;AAAA;AAAA;;AAAA;;AAAA;;AAAA;AAAA;;AAI7FE,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;;AAZ4F","sourcesContent":["import {Backoffice} from \"@one-commerce/sdk-shared\";\nimport {BaseCallClass} from \"../utils\";\n\nclass ContextCallClass extends BaseCallClass {\n serviceName = 'context'\n}\n\nexport class AddToCartContext extends ContextCallClass implements Backoffice.Context.AddToCart {\n productId: string;\n cartId: string;\n warehouses: 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 type AvailableContext = AddToCartContext\n"],"file":"context.js"}
@@ -1,7 +1,9 @@
1
1
  import { Backoffice } from "@one-commerce/sdk-shared";
2
2
  import { BaseCallClass } from "../utils";
3
- export declare class AddToCartContext extends BaseCallClass implements Backoffice.Context.AddToCart {
4
- serviceName: Backoffice.Context.AvailableContext;
3
+ declare class ContextCallClass extends BaseCallClass {
4
+ serviceName: string;
5
+ }
6
+ export declare class AddToCartContext extends ContextCallClass implements Backoffice.Context.AddToCart {
5
7
  productId: string;
6
8
  cartId: string;
7
9
  warehouses: Array<any>;
@@ -10,4 +12,5 @@ export declare class AddToCartContext extends BaseCallClass implements Backoffic
10
12
  closePluginAndRefreshCart(): Promise<void>;
11
13
  }
12
14
  export declare type AvailableContext = AddToCartContext;
15
+ export {};
13
16
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/backoffice/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,qBAAa,gBAAiB,SAAQ,aAAc,YAAW,UAAU,CAAC,OAAO,CAAC,SAAS;IACzF,WAAW,sCAAkD;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAGxC,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3C;AAED,oBAAY,gBAAgB,GAAG,gBAAgB,CAAA"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/backoffice/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,cAAM,gBAAiB,SAAQ,aAAa;IAC1C,WAAW,SAAY;CACxB;AAED,qBAAa,gBAAiB,SAAQ,gBAAiB,YAAW,UAAU,CAAC,OAAO,CAAC,SAAS;IAC5F,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAGxC,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3C;AAED,oBAAY,gBAAgB,GAAG,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-commerce/sdk-core",
3
- "version": "1.19.1-alpha.0",
3
+ "version": "1.19.2-alpha.0",
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": ">=14"
56
56
  },
57
57
  "dependencies": {
58
- "@one-commerce/sdk-shared": "^1.19.0-alpha.0",
58
+ "@one-commerce/sdk-shared": "^1.19.2-alpha.0",
59
59
  "iframe-channel": "^1.2.5"
60
60
  },
61
61
  "devDependencies": {
@@ -125,5 +125,5 @@
125
125
  "**/*.spec.js"
126
126
  ]
127
127
  },
128
- "gitHead": "9c64ee77b0605e6788543070433d139274b69b74"
128
+ "gitHead": "58b5bddb9269fa7f5a264bd79faf27eeb4a9b5a3"
129
129
  }