@one-commerce/sdk-core 1.19.8 → 1.19.9-UNITYONE-12860.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.
- package/lib/bundles/bundle.esm.js +41 -3
- package/lib/bundles/bundle.esm.js.map +1 -1
- package/lib/bundles/bundle.esm.min.js +1 -1
- package/lib/bundles/bundle.esm.min.js.map +1 -1
- package/lib/bundles/bundle.umd.js +41 -3
- package/lib/bundles/bundle.umd.js.map +1 -1
- package/lib/bundles/bundle.umd.min.js +1 -1
- package/lib/bundles/bundle.umd.min.js.map +1 -1
- package/lib/cjs/backoffice/context.js +2 -2
- package/lib/cjs/backoffice/context.js.map +1 -1
- package/lib/cjs/backoffice/services.js +2 -2
- package/lib/cjs/backoffice/services.js.map +1 -1
- package/lib/cjs/events.js.map +1 -1
- package/lib/cjs/index.js +3 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/shop/services.js +38 -3
- package/lib/cjs/shop/services.js.map +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/backoffice/context.js.map +1 -1
- package/lib/esm/backoffice/services.js.map +1 -1
- package/lib/esm/events.js.map +1 -1
- package/lib/esm/index.js +2 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/shop/services.js +16 -0
- package/lib/esm/shop/services.js.map +1 -1
- package/lib/esm/utils.js.map +1 -1
- package/lib/types/index.d.ts +3 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shop/services.d.ts +6 -0
- package/lib/types/shop/services.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -57,17 +57,18 @@ function _inherits(subClass, superClass) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function _getPrototypeOf(o) {
|
|
60
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
60
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
61
61
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
62
62
|
};
|
|
63
63
|
return _getPrototypeOf(o);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
function _setPrototypeOf(o, p) {
|
|
67
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
67
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
68
68
|
o.__proto__ = p;
|
|
69
69
|
return o;
|
|
70
70
|
};
|
|
71
|
+
|
|
71
72
|
return _setPrototypeOf(o, p);
|
|
72
73
|
}
|
|
73
74
|
|
|
@@ -217,7 +218,11 @@ Object.defineProperty(api, "__esModule", { value: true });
|
|
|
217
218
|
(function (exports) {
|
|
218
219
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
219
220
|
if (k2 === undefined) k2 = k;
|
|
220
|
-
Object.
|
|
221
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
222
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
223
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
224
|
+
}
|
|
225
|
+
Object.defineProperty(o, k2, desc);
|
|
221
226
|
}) : (function(o, m, k, k2) {
|
|
222
227
|
if (k2 === undefined) k2 = k;
|
|
223
228
|
o[k2] = m[k];
|
|
@@ -835,6 +840,11 @@ var ShopUtils = /*#__PURE__*/function (_BaseCallClass6) {
|
|
|
835
840
|
}
|
|
836
841
|
|
|
837
842
|
_createClass(ShopUtils, [{
|
|
843
|
+
key: "notify",
|
|
844
|
+
value: function notify(options) {
|
|
845
|
+
return this.call('notify', options);
|
|
846
|
+
}
|
|
847
|
+
}, {
|
|
838
848
|
key: "getCategoryPath",
|
|
839
849
|
value: function getCategoryPath(id) {
|
|
840
850
|
return this.call('getCategoryPath', id);
|
|
@@ -899,6 +909,33 @@ var ShopConfig = /*#__PURE__*/function (_BaseCallClass7) {
|
|
|
899
909
|
|
|
900
910
|
return _createClass(ShopConfig);
|
|
901
911
|
}(BaseCallClass);
|
|
912
|
+
var ShopTenant = /*#__PURE__*/function (_BaseCallClass8) {
|
|
913
|
+
_inherits(ShopTenant, _BaseCallClass8);
|
|
914
|
+
|
|
915
|
+
var _super8 = _createSuper(ShopTenant);
|
|
916
|
+
|
|
917
|
+
function ShopTenant() {
|
|
918
|
+
var _this8;
|
|
919
|
+
|
|
920
|
+
_classCallCheck(this, ShopTenant);
|
|
921
|
+
|
|
922
|
+
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
923
|
+
args[_key7] = arguments[_key7];
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
_this8 = _super8.call.apply(_super8, [this].concat(args));
|
|
927
|
+
|
|
928
|
+
_defineProperty(_assertThisInitialized(_this8), "serviceName", 'tenant');
|
|
929
|
+
|
|
930
|
+
_defineProperty(_assertThisInitialized(_this8), "tenantKey", void 0);
|
|
931
|
+
|
|
932
|
+
_defineProperty(_assertThisInitialized(_this8), "language", void 0);
|
|
933
|
+
|
|
934
|
+
return _this8;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
return _createClass(ShopTenant);
|
|
938
|
+
}(BaseCallClass);
|
|
902
939
|
|
|
903
940
|
var SdkInternalEvents;
|
|
904
941
|
|
|
@@ -1210,6 +1247,7 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
|
|
|
1210
1247
|
account: new ShopAccount(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1211
1248
|
utils: new ShopUtils(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1212
1249
|
config: new ShopConfig(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1250
|
+
tenant: new ShopTenant(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1213
1251
|
wishlist: new ShopWishlist(_this6.callFunction.bind(_assertThisInitialized(_this6)))
|
|
1214
1252
|
});
|
|
1215
1253
|
|