@one-commerce/sdk-core 1.19.7 → 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 +38 -1
- 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 +38 -1
- 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/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/shop/services.js +36 -1
- package/lib/cjs/shop/services.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/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
|
@@ -218,7 +218,11 @@ Object.defineProperty(api, "__esModule", { value: true });
|
|
|
218
218
|
(function (exports) {
|
|
219
219
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
220
220
|
if (k2 === undefined) k2 = k;
|
|
221
|
-
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);
|
|
222
226
|
}) : (function(o, m, k, k2) {
|
|
223
227
|
if (k2 === undefined) k2 = k;
|
|
224
228
|
o[k2] = m[k];
|
|
@@ -836,6 +840,11 @@ var ShopUtils = /*#__PURE__*/function (_BaseCallClass6) {
|
|
|
836
840
|
}
|
|
837
841
|
|
|
838
842
|
_createClass(ShopUtils, [{
|
|
843
|
+
key: "notify",
|
|
844
|
+
value: function notify(options) {
|
|
845
|
+
return this.call('notify', options);
|
|
846
|
+
}
|
|
847
|
+
}, {
|
|
839
848
|
key: "getCategoryPath",
|
|
840
849
|
value: function getCategoryPath(id) {
|
|
841
850
|
return this.call('getCategoryPath', id);
|
|
@@ -900,6 +909,33 @@ var ShopConfig = /*#__PURE__*/function (_BaseCallClass7) {
|
|
|
900
909
|
|
|
901
910
|
return _createClass(ShopConfig);
|
|
902
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);
|
|
903
939
|
|
|
904
940
|
var SdkInternalEvents;
|
|
905
941
|
|
|
@@ -1211,6 +1247,7 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
|
|
|
1211
1247
|
account: new ShopAccount(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1212
1248
|
utils: new ShopUtils(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1213
1249
|
config: new ShopConfig(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1250
|
+
tenant: new ShopTenant(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1214
1251
|
wishlist: new ShopWishlist(_this6.callFunction.bind(_assertThisInitialized(_this6)))
|
|
1215
1252
|
});
|
|
1216
1253
|
|