@quintype/components 2.31.7 → 2.31.8-AT-member-metadata.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/dist/cjs/index.js +90 -24
- package/dist/es/components/access-type.js +90 -24
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5161,6 +5161,70 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5161
5161
|
};
|
|
5162
5162
|
}());
|
|
5163
5163
|
|
|
5164
|
+
_defineProperty(_assertThisInitialized(_this), "getgetSubscriberMetadata", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
5165
|
+
var metadata;
|
|
5166
|
+
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
5167
|
+
while (1) {
|
|
5168
|
+
switch (_context12.prev = _context12.next) {
|
|
5169
|
+
case 0:
|
|
5170
|
+
if (global.AccessType) {
|
|
5171
|
+
_context12.next = 2;
|
|
5172
|
+
break;
|
|
5173
|
+
}
|
|
5174
|
+
|
|
5175
|
+
return _context12.abrupt("return", {});
|
|
5176
|
+
|
|
5177
|
+
case 2:
|
|
5178
|
+
_context12.next = 4;
|
|
5179
|
+
return awaitHelper(global.AccessType.getSubscriberMetadata());
|
|
5180
|
+
|
|
5181
|
+
case 4:
|
|
5182
|
+
metadata = _context12.sent;
|
|
5183
|
+
return _context12.abrupt("return", metadata);
|
|
5184
|
+
|
|
5185
|
+
case 6:
|
|
5186
|
+
case "end":
|
|
5187
|
+
return _context12.stop();
|
|
5188
|
+
}
|
|
5189
|
+
}
|
|
5190
|
+
}, _callee12);
|
|
5191
|
+
})));
|
|
5192
|
+
|
|
5193
|
+
_defineProperty(_assertThisInitialized(_this), "setSubscriberMetadata", /*#__PURE__*/function () {
|
|
5194
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(subscriberMetadata) {
|
|
5195
|
+
var response;
|
|
5196
|
+
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
5197
|
+
while (1) {
|
|
5198
|
+
switch (_context13.prev = _context13.next) {
|
|
5199
|
+
case 0:
|
|
5200
|
+
if (!(!global.AccessType || !subscriberMetadata)) {
|
|
5201
|
+
_context13.next = 2;
|
|
5202
|
+
break;
|
|
5203
|
+
}
|
|
5204
|
+
|
|
5205
|
+
return _context13.abrupt("return", {});
|
|
5206
|
+
|
|
5207
|
+
case 2:
|
|
5208
|
+
_context13.next = 4;
|
|
5209
|
+
return awaitHelper(global.AccessType.setSubscriberMetadata(subscriberMetadata));
|
|
5210
|
+
|
|
5211
|
+
case 4:
|
|
5212
|
+
response = _context13.sent;
|
|
5213
|
+
return _context13.abrupt("return", response);
|
|
5214
|
+
|
|
5215
|
+
case 6:
|
|
5216
|
+
case "end":
|
|
5217
|
+
return _context13.stop();
|
|
5218
|
+
}
|
|
5219
|
+
}
|
|
5220
|
+
}, _callee13);
|
|
5221
|
+
}));
|
|
5222
|
+
|
|
5223
|
+
return function (_x9) {
|
|
5224
|
+
return _ref15.apply(this, arguments);
|
|
5225
|
+
};
|
|
5226
|
+
}());
|
|
5227
|
+
|
|
5164
5228
|
_this.prodHost = props.prodHost || "https://www.accesstype.com";
|
|
5165
5229
|
_this.stagingHost = props.stagingHost || "https://staging.accesstype.com";
|
|
5166
5230
|
return _this;
|
|
@@ -5173,29 +5237,29 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5173
5237
|
}
|
|
5174
5238
|
}, {
|
|
5175
5239
|
key: "makePaymentObject",
|
|
5176
|
-
value: function makePaymentObject(
|
|
5177
|
-
var
|
|
5178
|
-
selectedPlan =
|
|
5179
|
-
|
|
5180
|
-
couponCode =
|
|
5181
|
-
|
|
5182
|
-
recipientSubscriber =
|
|
5183
|
-
|
|
5184
|
-
planType =
|
|
5185
|
-
|
|
5186
|
-
storyId =
|
|
5187
|
-
|
|
5188
|
-
storyHeadline =
|
|
5189
|
-
|
|
5190
|
-
storySlug =
|
|
5191
|
-
|
|
5192
|
-
paymentType =
|
|
5193
|
-
|
|
5194
|
-
successUrl =
|
|
5195
|
-
|
|
5196
|
-
returnUrl =
|
|
5197
|
-
|
|
5198
|
-
cancelUrl =
|
|
5240
|
+
value: function makePaymentObject(_ref16) {
|
|
5241
|
+
var _ref16$selectedPlan = _ref16.selectedPlan,
|
|
5242
|
+
selectedPlan = _ref16$selectedPlan === void 0 ? {} : _ref16$selectedPlan,
|
|
5243
|
+
_ref16$couponCode = _ref16.couponCode,
|
|
5244
|
+
couponCode = _ref16$couponCode === void 0 ? "" : _ref16$couponCode,
|
|
5245
|
+
_ref16$recipientSubsc = _ref16.recipientSubscriber,
|
|
5246
|
+
recipientSubscriber = _ref16$recipientSubsc === void 0 ? {} : _ref16$recipientSubsc,
|
|
5247
|
+
_ref16$planType = _ref16.planType,
|
|
5248
|
+
planType = _ref16$planType === void 0 ? "" : _ref16$planType,
|
|
5249
|
+
_ref16$storyId = _ref16.storyId,
|
|
5250
|
+
storyId = _ref16$storyId === void 0 ? "" : _ref16$storyId,
|
|
5251
|
+
_ref16$storyHeadline = _ref16.storyHeadline,
|
|
5252
|
+
storyHeadline = _ref16$storyHeadline === void 0 ? "" : _ref16$storyHeadline,
|
|
5253
|
+
_ref16$storySlug = _ref16.storySlug,
|
|
5254
|
+
storySlug = _ref16$storySlug === void 0 ? "" : _ref16$storySlug,
|
|
5255
|
+
_ref16$paymentType = _ref16.paymentType,
|
|
5256
|
+
paymentType = _ref16$paymentType === void 0 ? "" : _ref16$paymentType,
|
|
5257
|
+
_ref16$successUrl = _ref16.successUrl,
|
|
5258
|
+
successUrl = _ref16$successUrl === void 0 ? "" : _ref16$successUrl,
|
|
5259
|
+
_ref16$returnUrl = _ref16.returnUrl,
|
|
5260
|
+
returnUrl = _ref16$returnUrl === void 0 ? "" : _ref16$returnUrl,
|
|
5261
|
+
_ref16$cancelUrl = _ref16.cancelUrl,
|
|
5262
|
+
cancelUrl = _ref16$cancelUrl === void 0 ? "" : _ref16$cancelUrl;
|
|
5199
5263
|
var id = selectedPlan.id,
|
|
5200
5264
|
title = selectedPlan.title,
|
|
5201
5265
|
description = selectedPlan.description,
|
|
@@ -5285,7 +5349,9 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5285
5349
|
accessIsLoading: this.props.accessIsLoading,
|
|
5286
5350
|
getAssetPlans: this.props.getAssetPlans,
|
|
5287
5351
|
validateCoupon: this.validateCoupon,
|
|
5288
|
-
cancelSubscription: this.cancelSubscription
|
|
5352
|
+
cancelSubscription: this.cancelSubscription,
|
|
5353
|
+
getgetSubscriberMetadata: this.getgetSubscriberMetadata,
|
|
5354
|
+
setSubscriberMetadata: this.setSubscriberMetadata
|
|
5289
5355
|
});
|
|
5290
5356
|
}
|
|
5291
5357
|
}]);
|
|
@@ -714,6 +714,70 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
714
714
|
};
|
|
715
715
|
}());
|
|
716
716
|
|
|
717
|
+
_defineProperty(_assertThisInitialized(_this), "getgetSubscriberMetadata", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
718
|
+
var metadata;
|
|
719
|
+
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
720
|
+
while (1) {
|
|
721
|
+
switch (_context12.prev = _context12.next) {
|
|
722
|
+
case 0:
|
|
723
|
+
if (global.AccessType) {
|
|
724
|
+
_context12.next = 2;
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
return _context12.abrupt("return", {});
|
|
729
|
+
|
|
730
|
+
case 2:
|
|
731
|
+
_context12.next = 4;
|
|
732
|
+
return awaitHelper(global.AccessType.getSubscriberMetadata());
|
|
733
|
+
|
|
734
|
+
case 4:
|
|
735
|
+
metadata = _context12.sent;
|
|
736
|
+
return _context12.abrupt("return", metadata);
|
|
737
|
+
|
|
738
|
+
case 6:
|
|
739
|
+
case "end":
|
|
740
|
+
return _context12.stop();
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}, _callee12);
|
|
744
|
+
})));
|
|
745
|
+
|
|
746
|
+
_defineProperty(_assertThisInitialized(_this), "setSubscriberMetadata", /*#__PURE__*/function () {
|
|
747
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(subscriberMetadata) {
|
|
748
|
+
var response;
|
|
749
|
+
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
750
|
+
while (1) {
|
|
751
|
+
switch (_context13.prev = _context13.next) {
|
|
752
|
+
case 0:
|
|
753
|
+
if (!(!global.AccessType || !subscriberMetadata)) {
|
|
754
|
+
_context13.next = 2;
|
|
755
|
+
break;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
return _context13.abrupt("return", {});
|
|
759
|
+
|
|
760
|
+
case 2:
|
|
761
|
+
_context13.next = 4;
|
|
762
|
+
return awaitHelper(global.AccessType.setSubscriberMetadata(subscriberMetadata));
|
|
763
|
+
|
|
764
|
+
case 4:
|
|
765
|
+
response = _context13.sent;
|
|
766
|
+
return _context13.abrupt("return", response);
|
|
767
|
+
|
|
768
|
+
case 6:
|
|
769
|
+
case "end":
|
|
770
|
+
return _context13.stop();
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}, _callee13);
|
|
774
|
+
}));
|
|
775
|
+
|
|
776
|
+
return function (_x9) {
|
|
777
|
+
return _ref15.apply(this, arguments);
|
|
778
|
+
};
|
|
779
|
+
}());
|
|
780
|
+
|
|
717
781
|
_this.prodHost = props.prodHost || "https://www.accesstype.com";
|
|
718
782
|
_this.stagingHost = props.stagingHost || "https://staging.accesstype.com";
|
|
719
783
|
return _this;
|
|
@@ -726,29 +790,29 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
726
790
|
}
|
|
727
791
|
}, {
|
|
728
792
|
key: "makePaymentObject",
|
|
729
|
-
value: function makePaymentObject(
|
|
730
|
-
var
|
|
731
|
-
selectedPlan =
|
|
732
|
-
|
|
733
|
-
couponCode =
|
|
734
|
-
|
|
735
|
-
recipientSubscriber =
|
|
736
|
-
|
|
737
|
-
planType =
|
|
738
|
-
|
|
739
|
-
storyId =
|
|
740
|
-
|
|
741
|
-
storyHeadline =
|
|
742
|
-
|
|
743
|
-
storySlug =
|
|
744
|
-
|
|
745
|
-
paymentType =
|
|
746
|
-
|
|
747
|
-
successUrl =
|
|
748
|
-
|
|
749
|
-
returnUrl =
|
|
750
|
-
|
|
751
|
-
cancelUrl =
|
|
793
|
+
value: function makePaymentObject(_ref16) {
|
|
794
|
+
var _ref16$selectedPlan = _ref16.selectedPlan,
|
|
795
|
+
selectedPlan = _ref16$selectedPlan === void 0 ? {} : _ref16$selectedPlan,
|
|
796
|
+
_ref16$couponCode = _ref16.couponCode,
|
|
797
|
+
couponCode = _ref16$couponCode === void 0 ? "" : _ref16$couponCode,
|
|
798
|
+
_ref16$recipientSubsc = _ref16.recipientSubscriber,
|
|
799
|
+
recipientSubscriber = _ref16$recipientSubsc === void 0 ? {} : _ref16$recipientSubsc,
|
|
800
|
+
_ref16$planType = _ref16.planType,
|
|
801
|
+
planType = _ref16$planType === void 0 ? "" : _ref16$planType,
|
|
802
|
+
_ref16$storyId = _ref16.storyId,
|
|
803
|
+
storyId = _ref16$storyId === void 0 ? "" : _ref16$storyId,
|
|
804
|
+
_ref16$storyHeadline = _ref16.storyHeadline,
|
|
805
|
+
storyHeadline = _ref16$storyHeadline === void 0 ? "" : _ref16$storyHeadline,
|
|
806
|
+
_ref16$storySlug = _ref16.storySlug,
|
|
807
|
+
storySlug = _ref16$storySlug === void 0 ? "" : _ref16$storySlug,
|
|
808
|
+
_ref16$paymentType = _ref16.paymentType,
|
|
809
|
+
paymentType = _ref16$paymentType === void 0 ? "" : _ref16$paymentType,
|
|
810
|
+
_ref16$successUrl = _ref16.successUrl,
|
|
811
|
+
successUrl = _ref16$successUrl === void 0 ? "" : _ref16$successUrl,
|
|
812
|
+
_ref16$returnUrl = _ref16.returnUrl,
|
|
813
|
+
returnUrl = _ref16$returnUrl === void 0 ? "" : _ref16$returnUrl,
|
|
814
|
+
_ref16$cancelUrl = _ref16.cancelUrl,
|
|
815
|
+
cancelUrl = _ref16$cancelUrl === void 0 ? "" : _ref16$cancelUrl;
|
|
752
816
|
var id = selectedPlan.id,
|
|
753
817
|
title = selectedPlan.title,
|
|
754
818
|
description = selectedPlan.description,
|
|
@@ -838,7 +902,9 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
838
902
|
accessIsLoading: this.props.accessIsLoading,
|
|
839
903
|
getAssetPlans: this.props.getAssetPlans,
|
|
840
904
|
validateCoupon: this.validateCoupon,
|
|
841
|
-
cancelSubscription: this.cancelSubscription
|
|
905
|
+
cancelSubscription: this.cancelSubscription,
|
|
906
|
+
getgetSubscriberMetadata: this.getgetSubscriberMetadata,
|
|
907
|
+
setSubscriberMetadata: this.setSubscriberMetadata
|
|
842
908
|
});
|
|
843
909
|
}
|
|
844
910
|
}]);
|