merchi_cart 0.0.4-c → 0.0.4-e

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.
Files changed (196) hide show
  1. package/lib/Cart.js +20 -25
  2. package/lib/CartAlert.js +14 -12
  3. package/lib/CartHeader.js +9 -9
  4. package/lib/CartProvider.js +157 -226
  5. package/lib/CartTotals.js +44 -44
  6. package/lib/MerchiSDK/constants/auto_assign_production_on_actions.js +1 -1
  7. package/lib/MerchiSDK/constants/call_to_actions.js +1 -1
  8. package/lib/MerchiSDK/constants/discount_types.js +1 -1
  9. package/lib/MerchiSDK/constants/domain_types.js +1 -1
  10. package/lib/MerchiSDK/constants/errors.js +1 -1
  11. package/lib/MerchiSDK/constants/event_types.js +1 -1
  12. package/lib/MerchiSDK/constants/field_types.js +1 -1
  13. package/lib/MerchiSDK/constants/input_types.js +1 -1
  14. package/lib/MerchiSDK/constants/inventory_statuses.js +1 -1
  15. package/lib/MerchiSDK/constants/invoice_types.js +1 -1
  16. package/lib/MerchiSDK/constants/item_types.js +1 -1
  17. package/lib/MerchiSDK/constants/job/drafting_status.js +1 -1
  18. package/lib/MerchiSDK/constants/job/payment_status.js +1 -1
  19. package/lib/MerchiSDK/constants/job/production_status.js +1 -1
  20. package/lib/MerchiSDK/constants/job/shipment_status.js +1 -1
  21. package/lib/MerchiSDK/constants/job/supply_chain_request_status.js +1 -1
  22. package/lib/MerchiSDK/constants/job_priorities.js +1 -1
  23. package/lib/MerchiSDK/constants/job_status.js +5 -5
  24. package/lib/MerchiSDK/constants/job_types.js +1 -1
  25. package/lib/MerchiSDK/constants/notification_sections.js +1 -1
  26. package/lib/MerchiSDK/constants/notification_types.js +1 -1
  27. package/lib/MerchiSDK/constants/notification_urgencies.js +1 -1
  28. package/lib/MerchiSDK/constants/payment_types.js +1 -1
  29. package/lib/MerchiSDK/constants/platform.js +5 -5
  30. package/lib/MerchiSDK/constants/product_types.js +1 -1
  31. package/lib/MerchiSDK/constants/rights.js +1 -1
  32. package/lib/MerchiSDK/constants/robots_meta_directives.js +1 -1
  33. package/lib/MerchiSDK/constants/roles.js +8 -14
  34. package/lib/MerchiSDK/constants/shipment_companies.js +1 -1
  35. package/lib/MerchiSDK/constants/shipment_services.js +1 -1
  36. package/lib/MerchiSDK/constants/system_roles.js +1 -1
  37. package/lib/MerchiSDK/constants/theme_foundations.js +1 -1
  38. package/lib/MerchiSDK/constants/theme_status.js +1 -1
  39. package/lib/MerchiSDK/constants/user_types.js +1 -1
  40. package/lib/MerchiSDK/constants/white_label_accessibilities.js +1 -1
  41. package/lib/MerchiSDK/cookie.js +3 -3
  42. package/lib/MerchiSDK/entities/address.js +22 -43
  43. package/lib/MerchiSDK/entities/assignment.js +28 -49
  44. package/lib/MerchiSDK/entities/automatic_payment_relationship.js +11 -32
  45. package/lib/MerchiSDK/entities/backup.js +6 -27
  46. package/lib/MerchiSDK/entities/bank.js +17 -38
  47. package/lib/MerchiSDK/entities/cart.js +31 -64
  48. package/lib/MerchiSDK/entities/cart_item.js +30 -51
  49. package/lib/MerchiSDK/entities/cart_shipment_group.js +9 -30
  50. package/lib/MerchiSDK/entities/cart_shipment_quote.js +13 -34
  51. package/lib/MerchiSDK/entities/category.js +14 -35
  52. package/lib/MerchiSDK/entities/company.js +88 -109
  53. package/lib/MerchiSDK/entities/company_invitation.js +13 -34
  54. package/lib/MerchiSDK/entities/component.js +33 -54
  55. package/lib/MerchiSDK/entities/component_tag.js +7 -28
  56. package/lib/MerchiSDK/entities/component_version.js +12 -33
  57. package/lib/MerchiSDK/entities/country_tax.js +21 -45
  58. package/lib/MerchiSDK/entities/discount.js +13 -34
  59. package/lib/MerchiSDK/entities/discount_group.js +11 -32
  60. package/lib/MerchiSDK/entities/domain.js +80 -101
  61. package/lib/MerchiSDK/entities/domain_invitation.js +14 -35
  62. package/lib/MerchiSDK/entities/domain_tag.js +15 -36
  63. package/lib/MerchiSDK/entities/draft.js +32 -65
  64. package/lib/MerchiSDK/entities/draft_comment.js +19 -40
  65. package/lib/MerchiSDK/entities/draft_template.js +15 -36
  66. package/lib/MerchiSDK/entities/email_address.js +10 -31
  67. package/lib/MerchiSDK/entities/email_counter.js +8 -29
  68. package/lib/MerchiSDK/entities/enrolled_domain.js +20 -44
  69. package/lib/MerchiSDK/entities/exchange_rate.js +9 -30
  70. package/lib/MerchiSDK/entities/file.js +59 -80
  71. package/lib/MerchiSDK/entities/internal_tag.js +17 -38
  72. package/lib/MerchiSDK/entities/inventory.js +19 -42
  73. package/lib/MerchiSDK/entities/inventory_unit_variation.js +12 -33
  74. package/lib/MerchiSDK/entities/invoice.js +57 -78
  75. package/lib/MerchiSDK/entities/item.js +18 -39
  76. package/lib/MerchiSDK/entities/job.js +117 -140
  77. package/lib/MerchiSDK/entities/job_comment.js +18 -39
  78. package/lib/MerchiSDK/entities/matching_inventory.js +11 -32
  79. package/lib/MerchiSDK/entities/menu.js +12 -33
  80. package/lib/MerchiSDK/entities/menu_item.js +12 -33
  81. package/lib/MerchiSDK/entities/notification.js +32 -53
  82. package/lib/MerchiSDK/entities/page.js +13 -34
  83. package/lib/MerchiSDK/entities/payment.js +25 -46
  84. package/lib/MerchiSDK/entities/payment_device.js +12 -33
  85. package/lib/MerchiSDK/entities/phone_number.js +14 -35
  86. package/lib/MerchiSDK/entities/product.js +153 -188
  87. package/lib/MerchiSDK/entities/production_comment.js +18 -39
  88. package/lib/MerchiSDK/entities/quote.js +70 -106
  89. package/lib/MerchiSDK/entities/quote_item.js +28 -49
  90. package/lib/MerchiSDK/entities/seo_domain_page.js +13 -34
  91. package/lib/MerchiSDK/entities/session.js +11 -32
  92. package/lib/MerchiSDK/entities/shipment.js +62 -83
  93. package/lib/MerchiSDK/entities/shipment_item.js +7 -28
  94. package/lib/MerchiSDK/entities/shipment_item_fulfillment.js +7 -28
  95. package/lib/MerchiSDK/entities/shipment_method.js +21 -42
  96. package/lib/MerchiSDK/entities/shipment_method_variation.js +15 -36
  97. package/lib/MerchiSDK/entities/short_url.js +14 -35
  98. package/lib/MerchiSDK/entities/subscription_plan.js +26 -47
  99. package/lib/MerchiSDK/entities/supply_domain.js +11 -32
  100. package/lib/MerchiSDK/entities/system_role.js +7 -28
  101. package/lib/MerchiSDK/entities/theme.js +89 -110
  102. package/lib/MerchiSDK/entities/theme_css_setting.js +10 -31
  103. package/lib/MerchiSDK/entities/user.js +151 -213
  104. package/lib/MerchiSDK/entities/user_company.js +11 -32
  105. package/lib/MerchiSDK/entities/variation.js +21 -42
  106. package/lib/MerchiSDK/entities/variation_field.js +61 -94
  107. package/lib/MerchiSDK/entities/variation_fields_option.js +40 -61
  108. package/lib/MerchiSDK/entities/variation_option.js +20 -41
  109. package/lib/MerchiSDK/entities/variations_group.js +15 -36
  110. package/lib/MerchiSDK/entity.js +534 -624
  111. package/lib/MerchiSDK/merchi.js +42 -53
  112. package/lib/MerchiSDK/request.js +47 -75
  113. package/lib/MerchiSDK/test_util.js +6 -10
  114. package/lib/MerchiSDK/toasts.js +12 -13
  115. package/lib/MerchiSDK/util/float.js +7 -19
  116. package/lib/MerchiSDK/util/query_string.js +4 -4
  117. package/lib/MerchiSDK/util/validation.js +2 -3
  118. package/lib/MerchiSDK/uuid.js +2 -2
  119. package/lib/buttons/Button.js +15 -15
  120. package/lib/buttons/ButtonBack.js +22 -25
  121. package/lib/buttons/ButtonClearCart.js +8 -9
  122. package/lib/buttons/ButtonInvoiceDownload.js +26 -61
  123. package/lib/buttons/ButtonNext.js +20 -25
  124. package/lib/buttons/ButtonNextDynamic.js +16 -18
  125. package/lib/buttons/ButtonPay.js +17 -13
  126. package/lib/buttons/ButtonShipmentTabNext.js +12 -13
  127. package/lib/buttons/index.js +13 -13
  128. package/lib/components/Alert.js +14 -12
  129. package/lib/components/CartBody.js +10 -8
  130. package/lib/components/CartClient.js +22 -17
  131. package/lib/components/CartFooter.js +9 -7
  132. package/lib/components/CartItemRow.js +58 -48
  133. package/lib/components/CartPaymentSettingsInvalid.js +3 -4
  134. package/lib/components/CartShipment.js +18 -13
  135. package/lib/components/CartTabContent.js +9 -7
  136. package/lib/components/CartTabPanel.js +15 -13
  137. package/lib/components/CartTableContainer.js +9 -7
  138. package/lib/components/Collapse.js +14 -22
  139. package/lib/components/LoadingTemplate.js +10 -7
  140. package/lib/components/NoCartItems.js +9 -9
  141. package/lib/components/ShipmentGroupCard.js +69 -52
  142. package/lib/components/Table.js +7 -4
  143. package/lib/components/Title.js +11 -9
  144. package/lib/components/containers.js +12 -11
  145. package/lib/components/index.js +30 -31
  146. package/lib/forms/FormNewCustomer.js +48 -76
  147. package/lib/forms/FormReturningCustomer.js +38 -58
  148. package/lib/forms/FormShipmentAddressAndNotes.js +42 -47
  149. package/lib/forms/FormSquarePayment.js +8 -9
  150. package/lib/forms/FormStripePayment.js +8 -9
  151. package/lib/forms/InputAcceptUserTermsAndConditions.js +12 -11
  152. package/lib/forms/InputError.js +11 -9
  153. package/lib/forms/InputSelect.js +34 -36
  154. package/lib/forms/InputText.js +38 -42
  155. package/lib/forms/InputsAddress.js +59 -69
  156. package/lib/index.js +6 -6
  157. package/lib/panels/PanelCartItems.js +14 -17
  158. package/lib/panels/PanelCartShipment.js +10 -13
  159. package/lib/panels/PanelClearCart.js +8 -7
  160. package/lib/panels/PanelClientCheckout.js +18 -17
  161. package/lib/panels/PanelEditCartItem.js +17 -22
  162. package/lib/panels/PanelPaymentSuccess.js +18 -16
  163. package/lib/panels/index.js +13 -13
  164. package/lib/slices/sliceCart.js +53 -56
  165. package/lib/slices/sliceCartAlert.js +11 -15
  166. package/lib/slices/sliceCartItem.js +11 -10
  167. package/lib/slices/sliceCartPayment.js +15 -16
  168. package/lib/slices/sliceCartShipment.js +23 -26
  169. package/lib/slices/sliceFormReturningCustomer.js +7 -7
  170. package/lib/slices/sliceNewCustomerForm.js +6 -6
  171. package/lib/square/SquareCard.js +16 -18
  172. package/lib/square/actions.js +24 -46
  173. package/lib/square/slices/reducersSquare.js +6 -6
  174. package/lib/square/slices/sliceSquareAlerts.js +10 -16
  175. package/lib/square/slices/sliceSquareForm.js +10 -9
  176. package/lib/store.js +359 -565
  177. package/lib/stripe/StripeCardFields.js +43 -44
  178. package/lib/stripe/StripeCardForm.js +51 -109
  179. package/lib/stripe/StripePaymentButtons.js +35 -46
  180. package/lib/stripe/actions.js +75 -196
  181. package/lib/stripe/slices/sliceStripeAlerts.js +10 -16
  182. package/lib/stripe/slices/sliceStripeCardForm.js +6 -6
  183. package/lib/stripe/slices/sliceStripeForm.js +18 -17
  184. package/lib/stripe/utils.js +1 -1
  185. package/lib/tabs/CartNav.js +15 -24
  186. package/lib/tabs/NavTab.js +20 -19
  187. package/lib/utilities/address.js +32 -30
  188. package/lib/utilities/cart.js +33 -50
  189. package/lib/utilities/cookie.js +46 -129
  190. package/lib/utilities/currency.js +29 -25
  191. package/lib/utilities/helpers.js +41 -60
  192. package/lib/utilities/invoice.js +45 -114
  193. package/lib/utilities/product.js +5 -3
  194. package/lib/utilities/user.js +24 -62
  195. package/lib/utilities/variations.js +16 -14
  196. package/package.json +1 -1
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -8,43 +7,23 @@ exports.CompanyInvitation = void 0;
8
7
  var _entity = require("../entity");
9
8
  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class2;
10
9
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
11
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
18
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
10
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
24
11
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
25
- var CompanyInvitation = exports.CompanyInvitation = (_dec = CompanyInvitation.property({
12
+ let CompanyInvitation = exports.CompanyInvitation = (_dec = CompanyInvitation.property({
26
13
  type: Date
27
- }), _dec2 = CompanyInvitation.property(), _dec3 = CompanyInvitation.property(), _dec4 = CompanyInvitation.property(), _dec5 = CompanyInvitation.property(), _dec6 = CompanyInvitation.property(), _dec7 = CompanyInvitation.property(), _dec8 = CompanyInvitation.property(), (_class = (_class2 = /*#__PURE__*/function (_Entity) {
28
- _inherits(CompanyInvitation, _Entity);
29
- function CompanyInvitation() {
30
- var _this;
31
- _classCallCheck(this, CompanyInvitation);
32
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
33
- args[_key] = arguments[_key];
34
- }
35
- _this = _callSuper(this, CompanyInvitation, [].concat(args));
36
- _initializerDefineProperty(_this, "archived", _descriptor, _assertThisInitialized(_this));
37
- _initializerDefineProperty(_this, "id", _descriptor2, _assertThisInitialized(_this));
38
- _initializerDefineProperty(_this, "userName", _descriptor3, _assertThisInitialized(_this));
39
- _initializerDefineProperty(_this, "userEmail", _descriptor4, _assertThisInitialized(_this));
40
- _initializerDefineProperty(_this, "inviteAsAdmin", _descriptor5, _assertThisInitialized(_this));
41
- _initializerDefineProperty(_this, "token", _descriptor6, _assertThisInitialized(_this));
42
- _initializerDefineProperty(_this, "company", _descriptor7, _assertThisInitialized(_this));
43
- _initializerDefineProperty(_this, "sender", _descriptor8, _assertThisInitialized(_this));
44
- return _this;
14
+ }), _dec2 = CompanyInvitation.property(), _dec3 = CompanyInvitation.property(), _dec4 = CompanyInvitation.property(), _dec5 = CompanyInvitation.property(), _dec6 = CompanyInvitation.property(), _dec7 = CompanyInvitation.property(), _dec8 = CompanyInvitation.property(), (_class = (_class2 = class CompanyInvitation extends _entity.Entity {
15
+ constructor() {
16
+ super(...arguments);
17
+ _initializerDefineProperty(this, "archived", _descriptor, this);
18
+ _initializerDefineProperty(this, "id", _descriptor2, this);
19
+ _initializerDefineProperty(this, "userName", _descriptor3, this);
20
+ _initializerDefineProperty(this, "userEmail", _descriptor4, this);
21
+ _initializerDefineProperty(this, "inviteAsAdmin", _descriptor5, this);
22
+ _initializerDefineProperty(this, "token", _descriptor6, this);
23
+ _initializerDefineProperty(this, "company", _descriptor7, this);
24
+ _initializerDefineProperty(this, "sender", _descriptor8, this);
45
25
  }
46
- return _createClass(CompanyInvitation);
47
- }(_entity.Entity), _class2.resourceName = 'company_invitations', _class2.singularName = 'companyInvitation', _class2.pluralName = 'companyInvitations', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
26
+ }, _class2.resourceName = 'company_invitations', _class2.singularName = 'companyInvitation', _class2.pluralName = 'companyInvitations', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
48
27
  configurable: true,
49
28
  enumerable: true,
50
29
  writable: true,
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -9,21 +8,9 @@ var _entity = require("../entity");
9
8
  var _file = require("./file");
10
9
  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _class2;
11
10
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
12
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
13
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
18
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
19
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
11
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
25
12
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
26
- var Component = exports.Component = (_dec = Component.property({
13
+ let Component = exports.Component = (_dec = Component.property({
27
14
  type: Date
28
15
  }), _dec2 = Component.property({
29
16
  type: Date
@@ -49,49 +36,41 @@ var Component = exports.Component = (_dec = Component.property({
49
36
  type: 'User'
50
37
  }), _dec24 = Component.property({
51
38
  arrayType: 'ComponentVersion'
52
- }), (_class = (_class2 = /*#__PURE__*/function (_Entity) {
53
- _inherits(Component, _Entity);
54
- function Component() {
55
- var _this;
56
- _classCallCheck(this, Component);
57
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
58
- args[_key] = arguments[_key];
59
- }
60
- _this = _callSuper(this, Component, [].concat(args));
61
- _initializerDefineProperty(_this, "archived", _descriptor, _assertThisInitialized(_this));
62
- _initializerDefineProperty(_this, "created", _descriptor2, _assertThisInitialized(_this));
63
- _initializerDefineProperty(_this, "updated", _descriptor3, _assertThisInitialized(_this));
64
- _initializerDefineProperty(_this, "id", _descriptor4, _assertThisInitialized(_this));
65
- _initializerDefineProperty(_this, "isClassBased", _descriptor5, _assertThisInitialized(_this));
66
- _initializerDefineProperty(_this, "outOfSyncWithOriginal", _descriptor6, _assertThisInitialized(_this));
67
- _initializerDefineProperty(_this, "needsUpdate", _descriptor7, _assertThisInitialized(_this));
68
- _initializerDefineProperty(_this, "hasImports", _descriptor8, _assertThisInitialized(_this));
69
- _initializerDefineProperty(_this, "isClone", _descriptor9, _assertThisInitialized(_this));
70
- _initializerDefineProperty(_this, "warnings", _descriptor10, _assertThisInitialized(_this));
71
- _initializerDefineProperty(_this, "name", _descriptor11, _assertThisInitialized(_this));
72
- _initializerDefineProperty(_this, "body", _descriptor12, _assertThisInitialized(_this));
73
- _initializerDefineProperty(_this, "description", _descriptor13, _assertThisInitialized(_this));
74
- _initializerDefineProperty(_this, "compiled", _descriptor14, _assertThisInitialized(_this));
75
- _initializerDefineProperty(_this, "componentExport", _descriptor15, _assertThisInitialized(_this));
76
- _initializerDefineProperty(_this, "componentExports", _descriptor16, _assertThisInitialized(_this));
77
- _initializerDefineProperty(_this, "componentImports", _descriptor17, _assertThisInitialized(_this));
78
- _initializerDefineProperty(_this, "originalComponent", _descriptor18, _assertThisInitialized(_this));
79
- _initializerDefineProperty(_this, "images", _descriptor19, _assertThisInitialized(_this));
80
- _initializerDefineProperty(_this, "featureImage", _descriptor20, _assertThisInitialized(_this));
81
- _initializerDefineProperty(_this, "tags", _descriptor21, _assertThisInitialized(_this));
82
- _initializerDefineProperty(_this, "createdBy", _descriptor22, _assertThisInitialized(_this));
83
- _initializerDefineProperty(_this, "updatedBy", _descriptor23, _assertThisInitialized(_this));
84
- _initializerDefineProperty(_this, "versions", _descriptor24, _assertThisInitialized(_this));
85
- _this.toReact = function (context) {
86
- var componentCode = 'with (this) { ' + _this.compiled + ' return ' + _this.name + ';}';
87
- var proxy = new Proxy(context, {});
88
- var callable = new Function(componentCode);
39
+ }), (_class = (_class2 = class Component extends _entity.Entity {
40
+ constructor() {
41
+ super(...arguments);
42
+ _initializerDefineProperty(this, "archived", _descriptor, this);
43
+ _initializerDefineProperty(this, "created", _descriptor2, this);
44
+ _initializerDefineProperty(this, "updated", _descriptor3, this);
45
+ _initializerDefineProperty(this, "id", _descriptor4, this);
46
+ _initializerDefineProperty(this, "isClassBased", _descriptor5, this);
47
+ _initializerDefineProperty(this, "outOfSyncWithOriginal", _descriptor6, this);
48
+ _initializerDefineProperty(this, "needsUpdate", _descriptor7, this);
49
+ _initializerDefineProperty(this, "hasImports", _descriptor8, this);
50
+ _initializerDefineProperty(this, "isClone", _descriptor9, this);
51
+ _initializerDefineProperty(this, "warnings", _descriptor10, this);
52
+ _initializerDefineProperty(this, "name", _descriptor11, this);
53
+ _initializerDefineProperty(this, "body", _descriptor12, this);
54
+ _initializerDefineProperty(this, "description", _descriptor13, this);
55
+ _initializerDefineProperty(this, "compiled", _descriptor14, this);
56
+ _initializerDefineProperty(this, "componentExport", _descriptor15, this);
57
+ _initializerDefineProperty(this, "componentExports", _descriptor16, this);
58
+ _initializerDefineProperty(this, "componentImports", _descriptor17, this);
59
+ _initializerDefineProperty(this, "originalComponent", _descriptor18, this);
60
+ _initializerDefineProperty(this, "images", _descriptor19, this);
61
+ _initializerDefineProperty(this, "featureImage", _descriptor20, this);
62
+ _initializerDefineProperty(this, "tags", _descriptor21, this);
63
+ _initializerDefineProperty(this, "createdBy", _descriptor22, this);
64
+ _initializerDefineProperty(this, "updatedBy", _descriptor23, this);
65
+ _initializerDefineProperty(this, "versions", _descriptor24, this);
66
+ this.toReact = context => {
67
+ const componentCode = 'with (this) { ' + this.compiled + ' return ' + this.name + ';}';
68
+ const proxy = new Proxy(context, {});
69
+ const callable = new Function(componentCode);
89
70
  return callable.call(proxy);
90
71
  };
91
- return _this;
92
72
  }
93
- return _createClass(Component);
94
- }(_entity.Entity), _class2.resourceName = 'components', _class2.singularName = 'component', _class2.pluralName = 'components', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
73
+ }, _class2.resourceName = 'components', _class2.singularName = 'component', _class2.pluralName = 'components', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
95
74
  configurable: true,
96
75
  enumerable: true,
97
76
  writable: true,
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -8,36 +7,16 @@ exports.ComponentTag = void 0;
8
7
  var _entity = require("../entity");
9
8
  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _class2;
10
9
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
11
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
18
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
10
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
24
11
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
25
- var ComponentTag = exports.ComponentTag = (_dec = ComponentTag.property(), _dec2 = ComponentTag.property(), _dec3 = ComponentTag.property(), (_class = (_class2 = /*#__PURE__*/function (_Entity) {
26
- _inherits(ComponentTag, _Entity);
27
- function ComponentTag() {
28
- var _this;
29
- _classCallCheck(this, ComponentTag);
30
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
31
- args[_key] = arguments[_key];
32
- }
33
- _this = _callSuper(this, ComponentTag, [].concat(args));
34
- _initializerDefineProperty(_this, "id", _descriptor, _assertThisInitialized(_this));
35
- _initializerDefineProperty(_this, "name", _descriptor2, _assertThisInitialized(_this));
36
- _initializerDefineProperty(_this, "component", _descriptor3, _assertThisInitialized(_this));
37
- return _this;
12
+ let ComponentTag = exports.ComponentTag = (_dec = ComponentTag.property(), _dec2 = ComponentTag.property(), _dec3 = ComponentTag.property(), (_class = (_class2 = class ComponentTag extends _entity.Entity {
13
+ constructor() {
14
+ super(...arguments);
15
+ _initializerDefineProperty(this, "id", _descriptor, this);
16
+ _initializerDefineProperty(this, "name", _descriptor2, this);
17
+ _initializerDefineProperty(this, "component", _descriptor3, this);
38
18
  }
39
- return _createClass(ComponentTag);
40
- }(_entity.Entity), _class2.resourceName = 'component_tags', _class2.singularName = 'componentTag', _class2.pluralName = 'componentTags', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "id", [_dec], {
19
+ }, _class2.resourceName = 'component_tags', _class2.singularName = 'componentTag', _class2.pluralName = 'componentTags', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "id", [_dec], {
41
20
  configurable: true,
42
21
  enumerable: true,
43
22
  writable: true,
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -8,46 +7,26 @@ exports.ComponentVersion = void 0;
8
7
  var _entity = require("../entity");
9
8
  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _class2;
10
9
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
11
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
18
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
10
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
24
11
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
25
- var ComponentVersion = exports.ComponentVersion = (_dec = ComponentVersion.property({
12
+ let ComponentVersion = exports.ComponentVersion = (_dec = ComponentVersion.property({
26
13
  type: Date
27
14
  }), _dec2 = ComponentVersion.property({
28
15
  type: Date
29
16
  }), _dec3 = ComponentVersion.property(), _dec4 = ComponentVersion.property(), _dec5 = ComponentVersion.property(), _dec6 = ComponentVersion.property(), _dec7 = ComponentVersion.property({
30
17
  type: 'Component'
31
- }), (_class = (_class2 = /*#__PURE__*/function (_Entity) {
32
- _inherits(ComponentVersion, _Entity);
33
- function ComponentVersion() {
34
- var _this;
35
- _classCallCheck(this, ComponentVersion);
36
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37
- args[_key] = arguments[_key];
38
- }
39
- _this = _callSuper(this, ComponentVersion, [].concat(args));
40
- _initializerDefineProperty(_this, "archived", _descriptor, _assertThisInitialized(_this));
41
- _initializerDefineProperty(_this, "created", _descriptor2, _assertThisInitialized(_this));
42
- _initializerDefineProperty(_this, "id", _descriptor3, _assertThisInitialized(_this));
43
- _initializerDefineProperty(_this, "body", _descriptor4, _assertThisInitialized(_this));
44
- _initializerDefineProperty(_this, "description", _descriptor5, _assertThisInitialized(_this));
45
- _initializerDefineProperty(_this, "isClassBased", _descriptor6, _assertThisInitialized(_this));
46
- _initializerDefineProperty(_this, "component", _descriptor7, _assertThisInitialized(_this));
47
- return _this;
18
+ }), (_class = (_class2 = class ComponentVersion extends _entity.Entity {
19
+ constructor() {
20
+ super(...arguments);
21
+ _initializerDefineProperty(this, "archived", _descriptor, this);
22
+ _initializerDefineProperty(this, "created", _descriptor2, this);
23
+ _initializerDefineProperty(this, "id", _descriptor3, this);
24
+ _initializerDefineProperty(this, "body", _descriptor4, this);
25
+ _initializerDefineProperty(this, "description", _descriptor5, this);
26
+ _initializerDefineProperty(this, "isClassBased", _descriptor6, this);
27
+ _initializerDefineProperty(this, "component", _descriptor7, this);
48
28
  }
49
- return _createClass(ComponentVersion);
50
- }(_entity.Entity), _class2.resourceName = 'component_versions', _class2.singularName = 'componentVersion', _class2.pluralName = 'componentVersions', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
29
+ }, _class2.resourceName = 'component_versions', _class2.singularName = 'componentVersion', _class2.pluralName = 'componentVersions', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
51
30
  configurable: true,
52
31
  enumerable: true,
53
32
  writable: true,
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -8,21 +7,9 @@ exports.CountryTax = void 0;
8
7
  var _entity = require("../entity");
9
8
  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _class2;
10
9
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
11
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
13
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
18
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
10
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
24
11
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
25
- var CountryTax = exports.CountryTax = (_dec = CountryTax.property({
12
+ let CountryTax = exports.CountryTax = (_dec = CountryTax.property({
26
13
  type: Date
27
14
  }), _dec2 = CountryTax.property(), _dec3 = CountryTax.property({
28
15
  type: String
@@ -36,38 +23,27 @@ var CountryTax = exports.CountryTax = (_dec = CountryTax.property({
36
23
  arrayType: 'Job'
37
24
  }), _dec9 = CountryTax.property({
38
25
  arrayType: 'Item'
39
- }), (_class = (_class2 = /*#__PURE__*/function (_Entity) {
40
- _inherits(CountryTax, _Entity);
41
- function CountryTax() {
42
- var _this;
43
- _classCallCheck(this, CountryTax);
44
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
45
- args[_key] = arguments[_key];
46
- }
47
- _this = _callSuper(this, CountryTax, [].concat(args));
48
- _initializerDefineProperty(_this, "archived", _descriptor, _assertThisInitialized(_this));
49
- _initializerDefineProperty(_this, "id", _descriptor2, _assertThisInitialized(_this));
50
- _initializerDefineProperty(_this, "country", _descriptor3, _assertThisInitialized(_this));
51
- _initializerDefineProperty(_this, "taxName", _descriptor4, _assertThisInitialized(_this));
52
- _initializerDefineProperty(_this, "taxPercent", _descriptor5, _assertThisInitialized(_this));
53
- _initializerDefineProperty(_this, "shipments", _descriptor6, _assertThisInitialized(_this));
54
- _initializerDefineProperty(_this, "company", _descriptor7, _assertThisInitialized(_this));
55
- _initializerDefineProperty(_this, "jobs", _descriptor8, _assertThisInitialized(_this));
56
- _initializerDefineProperty(_this, "items", _descriptor9, _assertThisInitialized(_this));
57
- return _this;
26
+ }), (_class = (_class2 = class CountryTax extends _entity.Entity {
27
+ constructor() {
28
+ super(...arguments);
29
+ _initializerDefineProperty(this, "archived", _descriptor, this);
30
+ _initializerDefineProperty(this, "id", _descriptor2, this);
31
+ _initializerDefineProperty(this, "country", _descriptor3, this);
32
+ _initializerDefineProperty(this, "taxName", _descriptor4, this);
33
+ _initializerDefineProperty(this, "taxPercent", _descriptor5, this);
34
+ _initializerDefineProperty(this, "shipments", _descriptor6, this);
35
+ _initializerDefineProperty(this, "company", _descriptor7, this);
36
+ _initializerDefineProperty(this, "jobs", _descriptor8, this);
37
+ _initializerDefineProperty(this, "items", _descriptor9, this);
58
38
  }
59
- _createClass(CountryTax, null, [{
60
- key: "getNoTax",
61
- value: function getNoTax() {
62
- var result = new this.merchi.CountryTax();
63
- result.id = 3; // 3 is a reserved id for 'no tax' by the backend
64
- result.taxName = 'No tax';
65
- result.taxPercent = 0;
66
- return result;
67
- }
68
- }]);
69
- return CountryTax;
70
- }(_entity.Entity), _class2.resourceName = 'country_taxes', _class2.singularName = 'countryTax', _class2.pluralName = 'countryTaxes', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
39
+ static getNoTax() {
40
+ const result = new this.merchi.CountryTax();
41
+ result.id = 3; // 3 is a reserved id for 'no tax' by the backend
42
+ result.taxName = 'No tax';
43
+ result.taxPercent = 0;
44
+ return result;
45
+ }
46
+ }, _class2.resourceName = 'country_taxes', _class2.singularName = 'countryTax', _class2.pluralName = 'countryTaxes', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
71
47
  configurable: true,
72
48
  enumerable: true,
73
49
  writable: true,
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -9,52 +8,32 @@ var _entity = require("../entity");
9
8
  var _discount_group = require("./discount_group");
10
9
  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class2;
11
10
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
12
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
13
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
18
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
19
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
11
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
25
12
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
26
- var Discount = exports.Discount = (_dec = Discount.property({
13
+ let Discount = exports.Discount = (_dec = Discount.property({
27
14
  type: Date
28
15
  }), _dec2 = Discount.property(), _dec3 = Discount.property(), _dec4 = Discount.property(), _dec5 = Discount.property({
29
16
  type: _discount_group.DiscountGroup
30
- }), (_class = (_class2 = /*#__PURE__*/function (_Entity) {
31
- _inherits(Discount, _Entity);
32
- function Discount() {
33
- var _this;
34
- _classCallCheck(this, Discount);
35
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
36
- args[_key] = arguments[_key];
37
- }
38
- _this = _callSuper(this, Discount, [].concat(args));
39
- _initializerDefineProperty(_this, "archived", _descriptor, _assertThisInitialized(_this));
40
- _initializerDefineProperty(_this, "id", _descriptor2, _assertThisInitialized(_this));
41
- _initializerDefineProperty(_this, "lowerLimit", _descriptor3, _assertThisInitialized(_this));
42
- _initializerDefineProperty(_this, "amount", _descriptor4, _assertThisInitialized(_this));
43
- _initializerDefineProperty(_this, "discountGroup", _descriptor5, _assertThisInitialized(_this));
44
- _this.discountedUnitCost = function (unitPrice) {
17
+ }), (_class = (_class2 = class Discount extends _entity.Entity {
18
+ constructor() {
19
+ super(...arguments);
20
+ _initializerDefineProperty(this, "archived", _descriptor, this);
21
+ _initializerDefineProperty(this, "id", _descriptor2, this);
22
+ _initializerDefineProperty(this, "lowerLimit", _descriptor3, this);
23
+ _initializerDefineProperty(this, "amount", _descriptor4, this);
24
+ _initializerDefineProperty(this, "discountGroup", _descriptor5, this);
25
+ this.discountedUnitCost = unitPrice => {
45
26
  if (unitPrice === undefined) {
46
27
  throw 'unitPrice is undefined, did you forget to embed it?';
47
28
  }
48
- if (_this.amount === undefined) {
29
+ if (this.amount === undefined) {
49
30
  throw 'amount is undefined, did you forget to embed it?';
50
31
  }
51
- var discount = 100 - _this.amount;
32
+ const discount = 100 - this.amount;
52
33
  return (unitPrice * discount / 100).toFixed(3);
53
34
  };
54
- return _this;
55
35
  }
56
- return _createClass(Discount);
57
- }(_entity.Entity), _class2.resourceName = 'discounts', _class2.singularName = 'discount', _class2.pluralName = 'discounts', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
36
+ }, _class2.resourceName = 'discounts', _class2.singularName = 'discount', _class2.pluralName = 'discounts', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
58
37
  configurable: true,
59
38
  enumerable: true,
60
39
  writable: true,
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -8,45 +7,25 @@ exports.DiscountGroup = void 0;
8
7
  var _entity = require("../entity");
9
8
  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _class2;
10
9
  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
11
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
18
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
10
  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
24
11
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
25
- var DiscountGroup = exports.DiscountGroup = (_dec = DiscountGroup.property({
12
+ let DiscountGroup = exports.DiscountGroup = (_dec = DiscountGroup.property({
26
13
  type: Date
27
14
  }), _dec2 = DiscountGroup.property(), _dec3 = DiscountGroup.property(), _dec4 = DiscountGroup.property({
28
15
  arrayType: 'Discount'
29
16
  }), _dec5 = DiscountGroup.property(), _dec6 = DiscountGroup.property({
30
17
  type: 'Product'
31
- }), (_class = (_class2 = /*#__PURE__*/function (_Entity) {
32
- _inherits(DiscountGroup, _Entity);
33
- function DiscountGroup() {
34
- var _this;
35
- _classCallCheck(this, DiscountGroup);
36
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37
- args[_key] = arguments[_key];
38
- }
39
- _this = _callSuper(this, DiscountGroup, [].concat(args));
40
- _initializerDefineProperty(_this, "archived", _descriptor, _assertThisInitialized(_this));
41
- _initializerDefineProperty(_this, "id", _descriptor2, _assertThisInitialized(_this));
42
- _initializerDefineProperty(_this, "discountType", _descriptor3, _assertThisInitialized(_this));
43
- _initializerDefineProperty(_this, "discounts", _descriptor4, _assertThisInitialized(_this));
44
- _initializerDefineProperty(_this, "name", _descriptor5, _assertThisInitialized(_this));
45
- _initializerDefineProperty(_this, "product", _descriptor6, _assertThisInitialized(_this));
46
- return _this;
18
+ }), (_class = (_class2 = class DiscountGroup extends _entity.Entity {
19
+ constructor() {
20
+ super(...arguments);
21
+ _initializerDefineProperty(this, "archived", _descriptor, this);
22
+ _initializerDefineProperty(this, "id", _descriptor2, this);
23
+ _initializerDefineProperty(this, "discountType", _descriptor3, this);
24
+ _initializerDefineProperty(this, "discounts", _descriptor4, this);
25
+ _initializerDefineProperty(this, "name", _descriptor5, this);
26
+ _initializerDefineProperty(this, "product", _descriptor6, this);
47
27
  }
48
- return _createClass(DiscountGroup);
49
- }(_entity.Entity), _class2.resourceName = 'discount_groups', _class2.singularName = 'discountGroup', _class2.pluralName = 'discountGroups', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
28
+ }, _class2.resourceName = 'discount_groups', _class2.singularName = 'discountGroup', _class2.pluralName = 'discountGroups', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
50
29
  configurable: true,
51
30
  enumerable: true,
52
31
  writable: true,