@como/como-client 0.7.78 → 0.7.79
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/como.js +1 -1
- package/lib/services/loyalty.service.js +27 -27
- package/package.json +1 -1
- package/src/como.js +1 -0
package/lib/como.js
CHANGED
|
@@ -1003,7 +1003,7 @@ var Como = function () {
|
|
|
1003
1003
|
case 5:
|
|
1004
1004
|
_comoData8 = this.comoData, env = _comoData8.env_params, api = _comoData8.api;
|
|
1005
1005
|
_context15.next = 8;
|
|
1006
|
-
return api.getLoyaltyResource(env.services_root_cdn, resource.id, 'Namespace' in resource ? resource.Namespace : 'location_' + this.comoData.locationId, resource.Version);
|
|
1006
|
+
return api.getLoyaltyResource(env.services_root_cdn, resource.id, 'Namespace' in resource ? resource.Namespace : 'location_' + this.comoData.locationId, resource.Version, this.comoData.locationId);
|
|
1007
1007
|
|
|
1008
1008
|
case 8:
|
|
1009
1009
|
responseJson = _context15.sent;
|
|
@@ -309,14 +309,14 @@ exports.getResourceUrl = function (service) {
|
|
|
309
309
|
|
|
310
310
|
exports.getLoyaltyResource = function (service) {
|
|
311
311
|
return function () {
|
|
312
|
-
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(baseUrl, resourceId, namespace, version) {
|
|
312
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(baseUrl, resourceId, namespace, version, locationId) {
|
|
313
313
|
var url, _ref16, data;
|
|
314
314
|
|
|
315
315
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
316
316
|
while (1) {
|
|
317
317
|
switch (_context9.prev = _context9.next) {
|
|
318
318
|
case 0:
|
|
319
|
-
url = buildResourceUrl(baseUrl, resourceId, namespace, version);
|
|
319
|
+
url = buildResourceUrl(baseUrl, resourceId, namespace, version, locationId);
|
|
320
320
|
_context9.next = 3;
|
|
321
321
|
return axios.get(url);
|
|
322
322
|
|
|
@@ -333,7 +333,7 @@ exports.getLoyaltyResource = function (service) {
|
|
|
333
333
|
}, _callee9, undefined);
|
|
334
334
|
}));
|
|
335
335
|
|
|
336
|
-
return function (_x22, _x23, _x24, _x25) {
|
|
336
|
+
return function (_x22, _x23, _x24, _x25, _x26) {
|
|
337
337
|
return _ref15.apply(this, arguments);
|
|
338
338
|
};
|
|
339
339
|
}();
|
|
@@ -365,7 +365,7 @@ exports.generateReferralCode = function (service) {
|
|
|
365
365
|
}, _callee10, undefined);
|
|
366
366
|
}));
|
|
367
367
|
|
|
368
|
-
return function (
|
|
368
|
+
return function (_x27, _x28, _x29) {
|
|
369
369
|
return _ref17.apply(this, arguments);
|
|
370
370
|
};
|
|
371
371
|
}();
|
|
@@ -397,7 +397,7 @@ exports.verifyReferralCode = function (service) {
|
|
|
397
397
|
}, _callee11, undefined);
|
|
398
398
|
}));
|
|
399
399
|
|
|
400
|
-
return function (
|
|
400
|
+
return function (_x30, _x31, _x32, _x33) {
|
|
401
401
|
return _ref19.apply(this, arguments);
|
|
402
402
|
};
|
|
403
403
|
}();
|
|
@@ -428,7 +428,7 @@ exports.openApp = function (service) {
|
|
|
428
428
|
}, _callee12, undefined);
|
|
429
429
|
}));
|
|
430
430
|
|
|
431
|
-
return function (
|
|
431
|
+
return function (_x34, _x35, _x36, _x37) {
|
|
432
432
|
return _ref21.apply(this, arguments);
|
|
433
433
|
};
|
|
434
434
|
}();
|
|
@@ -458,7 +458,7 @@ exports.clientUpdateMembership = function (service) {
|
|
|
458
458
|
}, _callee13, undefined);
|
|
459
459
|
}));
|
|
460
460
|
|
|
461
|
-
return function (
|
|
461
|
+
return function (_x38, _x39, _x40, _x41, _x42) {
|
|
462
462
|
return _ref22.apply(this, arguments);
|
|
463
463
|
};
|
|
464
464
|
}();
|
|
@@ -494,7 +494,7 @@ exports.generateTemporaryToken = function (service) {
|
|
|
494
494
|
}, _callee14, undefined);
|
|
495
495
|
}));
|
|
496
496
|
|
|
497
|
-
return function (
|
|
497
|
+
return function (_x43, _x44, _x45, _x46) {
|
|
498
498
|
return _ref23.apply(this, arguments);
|
|
499
499
|
};
|
|
500
500
|
}();
|
|
@@ -526,7 +526,7 @@ exports.getFeedbackFormData = function (service) {
|
|
|
526
526
|
}, _callee15, undefined);
|
|
527
527
|
}));
|
|
528
528
|
|
|
529
|
-
return function (
|
|
529
|
+
return function (_x47, _x48, _x49) {
|
|
530
530
|
return _ref25.apply(this, arguments);
|
|
531
531
|
};
|
|
532
532
|
}();
|
|
@@ -561,7 +561,7 @@ exports.sendPushChannel = function (service) {
|
|
|
561
561
|
}, _callee16, undefined);
|
|
562
562
|
}));
|
|
563
563
|
|
|
564
|
-
return function (
|
|
564
|
+
return function (_x50, _x51, _x52, _x53) {
|
|
565
565
|
return _ref27.apply(this, arguments);
|
|
566
566
|
};
|
|
567
567
|
}();
|
|
@@ -593,7 +593,7 @@ exports.getClientBusinessBackend = function (service) {
|
|
|
593
593
|
}, _callee17, undefined);
|
|
594
594
|
}));
|
|
595
595
|
|
|
596
|
-
return function (
|
|
596
|
+
return function (_x55, _x56, _x57) {
|
|
597
597
|
return _ref28.apply(this, arguments);
|
|
598
598
|
};
|
|
599
599
|
}();
|
|
@@ -623,7 +623,7 @@ exports.sendCouponCode = function (service) {
|
|
|
623
623
|
}, _callee18, undefined);
|
|
624
624
|
}));
|
|
625
625
|
|
|
626
|
-
return function (
|
|
626
|
+
return function (_x58, _x59, _x60, _x61) {
|
|
627
627
|
return _ref30.apply(this, arguments);
|
|
628
628
|
};
|
|
629
629
|
}();
|
|
@@ -659,7 +659,7 @@ exports.consentWithdraw = function (service) {
|
|
|
659
659
|
}, _callee19, undefined);
|
|
660
660
|
}));
|
|
661
661
|
|
|
662
|
-
return function (
|
|
662
|
+
return function (_x62, _x63, _x64, _x65) {
|
|
663
663
|
return _ref31.apply(this, arguments);
|
|
664
664
|
};
|
|
665
665
|
}();
|
|
@@ -695,7 +695,7 @@ exports.knowYourData = function (service) {
|
|
|
695
695
|
}, _callee20, undefined);
|
|
696
696
|
}));
|
|
697
697
|
|
|
698
|
-
return function (
|
|
698
|
+
return function (_x66, _x67, _x68, _x69) {
|
|
699
699
|
return _ref33.apply(this, arguments);
|
|
700
700
|
};
|
|
701
701
|
}();
|
|
@@ -722,7 +722,7 @@ exports.addPaymentMethod = function (service) {
|
|
|
722
722
|
}, _callee21, undefined);
|
|
723
723
|
}));
|
|
724
724
|
|
|
725
|
-
return function (
|
|
725
|
+
return function (_x70, _x71, _x72, _x73) {
|
|
726
726
|
return _ref35.apply(this, arguments);
|
|
727
727
|
};
|
|
728
728
|
}();
|
|
@@ -749,7 +749,7 @@ exports.getPaymentMethods = function (service) {
|
|
|
749
749
|
}, _callee22, undefined);
|
|
750
750
|
}));
|
|
751
751
|
|
|
752
|
-
return function (
|
|
752
|
+
return function (_x74, _x75) {
|
|
753
753
|
return _ref36.apply(this, arguments);
|
|
754
754
|
};
|
|
755
755
|
}();
|
|
@@ -790,7 +790,7 @@ exports.payInApp = function (service) {
|
|
|
790
790
|
}, _callee23, undefined);
|
|
791
791
|
}));
|
|
792
792
|
|
|
793
|
-
return function (
|
|
793
|
+
return function (_x76, _x77, _x78, _x79, _x80, _x81, _x82, _x83) {
|
|
794
794
|
return _ref37.apply(this, arguments);
|
|
795
795
|
};
|
|
796
796
|
}();
|
|
@@ -820,7 +820,7 @@ exports.deletePayment = function (service) {
|
|
|
820
820
|
}, _callee24, undefined);
|
|
821
821
|
}));
|
|
822
822
|
|
|
823
|
-
return function (
|
|
823
|
+
return function (_x84, _x85, _x86, _x87) {
|
|
824
824
|
return _ref38.apply(this, arguments);
|
|
825
825
|
};
|
|
826
826
|
}();
|
|
@@ -852,7 +852,7 @@ exports.getMemberMessages = function (service) {
|
|
|
852
852
|
}, _callee25, undefined);
|
|
853
853
|
}));
|
|
854
854
|
|
|
855
|
-
return function (
|
|
855
|
+
return function (_x88, _x89, _x90, _x91, _x92) {
|
|
856
856
|
return _ref39.apply(this, arguments);
|
|
857
857
|
};
|
|
858
858
|
}();
|
|
@@ -884,7 +884,7 @@ exports.markAsReadMemberMessages = function (service) {
|
|
|
884
884
|
}, _callee26, undefined);
|
|
885
885
|
}));
|
|
886
886
|
|
|
887
|
-
return function (
|
|
887
|
+
return function (_x93, _x94, _x95) {
|
|
888
888
|
return _ref40.apply(this, arguments);
|
|
889
889
|
};
|
|
890
890
|
}();
|
|
@@ -917,7 +917,7 @@ exports.budgetTransfer = function (service) {
|
|
|
917
917
|
}, _callee27, undefined);
|
|
918
918
|
}));
|
|
919
919
|
|
|
920
|
-
return function (
|
|
920
|
+
return function (_x96, _x97, _x98, _x99, _x100, _x101) {
|
|
921
921
|
return _ref41.apply(this, arguments);
|
|
922
922
|
};
|
|
923
923
|
}();
|
|
@@ -943,7 +943,7 @@ exports.budgetTransferClaim = function (service) {
|
|
|
943
943
|
}, _callee28, undefined);
|
|
944
944
|
}));
|
|
945
945
|
|
|
946
|
-
return function (
|
|
946
|
+
return function (_x102, _x103, _x104) {
|
|
947
947
|
return _ref42.apply(this, arguments);
|
|
948
948
|
};
|
|
949
949
|
}();
|
|
@@ -973,7 +973,7 @@ exports.getCreditClaimData = function (service) {
|
|
|
973
973
|
}, _callee29, undefined);
|
|
974
974
|
}));
|
|
975
975
|
|
|
976
|
-
return function (
|
|
976
|
+
return function (_x105, _x106) {
|
|
977
977
|
return _ref43.apply(this, arguments);
|
|
978
978
|
};
|
|
979
979
|
}();
|
|
@@ -1004,7 +1004,7 @@ exports.claim = function (service) {
|
|
|
1004
1004
|
}, _callee30, undefined);
|
|
1005
1005
|
}));
|
|
1006
1006
|
|
|
1007
|
-
return function (
|
|
1007
|
+
return function (_x107, _x108, _x109, _x110, _x111, _x112) {
|
|
1008
1008
|
return _ref44.apply(this, arguments);
|
|
1009
1009
|
};
|
|
1010
1010
|
}();
|
|
@@ -1034,7 +1034,7 @@ exports.getUserPointShopDataAPI2 = function (service) {
|
|
|
1034
1034
|
}, _callee31, undefined);
|
|
1035
1035
|
}));
|
|
1036
1036
|
|
|
1037
|
-
return function (
|
|
1037
|
+
return function (_x113, _x114) {
|
|
1038
1038
|
return _ref45.apply(this, arguments);
|
|
1039
1039
|
};
|
|
1040
1040
|
}();
|
|
@@ -1064,7 +1064,7 @@ exports.purchaseAssetAPI2 = function (service) {
|
|
|
1064
1064
|
}, _callee32, undefined);
|
|
1065
1065
|
}));
|
|
1066
1066
|
|
|
1067
|
-
return function (
|
|
1067
|
+
return function (_x115, _x116, _x117) {
|
|
1068
1068
|
return _ref46.apply(this, arguments);
|
|
1069
1069
|
};
|
|
1070
1070
|
}();
|
|
@@ -1100,7 +1100,7 @@ exports.logUserAction = function (service) {
|
|
|
1100
1100
|
}, _callee33, undefined);
|
|
1101
1101
|
}));
|
|
1102
1102
|
|
|
1103
|
-
return function (
|
|
1103
|
+
return function (_x118, _x119, _x120, _x121, _x122) {
|
|
1104
1104
|
return _ref47.apply(this, arguments);
|
|
1105
1105
|
};
|
|
1106
1106
|
}();
|
package/package.json
CHANGED
package/src/como.js
CHANGED