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.
- package/lib/Cart.js +20 -25
- package/lib/CartAlert.js +14 -12
- package/lib/CartHeader.js +9 -9
- package/lib/CartProvider.js +157 -226
- package/lib/CartTotals.js +44 -44
- package/lib/MerchiSDK/constants/auto_assign_production_on_actions.js +1 -1
- package/lib/MerchiSDK/constants/call_to_actions.js +1 -1
- package/lib/MerchiSDK/constants/discount_types.js +1 -1
- package/lib/MerchiSDK/constants/domain_types.js +1 -1
- package/lib/MerchiSDK/constants/errors.js +1 -1
- package/lib/MerchiSDK/constants/event_types.js +1 -1
- package/lib/MerchiSDK/constants/field_types.js +1 -1
- package/lib/MerchiSDK/constants/input_types.js +1 -1
- package/lib/MerchiSDK/constants/inventory_statuses.js +1 -1
- package/lib/MerchiSDK/constants/invoice_types.js +1 -1
- package/lib/MerchiSDK/constants/item_types.js +1 -1
- package/lib/MerchiSDK/constants/job/drafting_status.js +1 -1
- package/lib/MerchiSDK/constants/job/payment_status.js +1 -1
- package/lib/MerchiSDK/constants/job/production_status.js +1 -1
- package/lib/MerchiSDK/constants/job/shipment_status.js +1 -1
- package/lib/MerchiSDK/constants/job/supply_chain_request_status.js +1 -1
- package/lib/MerchiSDK/constants/job_priorities.js +1 -1
- package/lib/MerchiSDK/constants/job_status.js +5 -5
- package/lib/MerchiSDK/constants/job_types.js +1 -1
- package/lib/MerchiSDK/constants/notification_sections.js +1 -1
- package/lib/MerchiSDK/constants/notification_types.js +1 -1
- package/lib/MerchiSDK/constants/notification_urgencies.js +1 -1
- package/lib/MerchiSDK/constants/payment_types.js +1 -1
- package/lib/MerchiSDK/constants/platform.js +5 -5
- package/lib/MerchiSDK/constants/product_types.js +1 -1
- package/lib/MerchiSDK/constants/rights.js +1 -1
- package/lib/MerchiSDK/constants/robots_meta_directives.js +1 -1
- package/lib/MerchiSDK/constants/roles.js +8 -14
- package/lib/MerchiSDK/constants/shipment_companies.js +1 -1
- package/lib/MerchiSDK/constants/shipment_services.js +1 -1
- package/lib/MerchiSDK/constants/system_roles.js +1 -1
- package/lib/MerchiSDK/constants/theme_foundations.js +1 -1
- package/lib/MerchiSDK/constants/theme_status.js +1 -1
- package/lib/MerchiSDK/constants/user_types.js +1 -1
- package/lib/MerchiSDK/constants/white_label_accessibilities.js +1 -1
- package/lib/MerchiSDK/cookie.js +3 -3
- package/lib/MerchiSDK/entities/address.js +22 -43
- package/lib/MerchiSDK/entities/assignment.js +28 -49
- package/lib/MerchiSDK/entities/automatic_payment_relationship.js +11 -32
- package/lib/MerchiSDK/entities/backup.js +6 -27
- package/lib/MerchiSDK/entities/bank.js +17 -38
- package/lib/MerchiSDK/entities/cart.js +31 -64
- package/lib/MerchiSDK/entities/cart_item.js +30 -51
- package/lib/MerchiSDK/entities/cart_shipment_group.js +9 -30
- package/lib/MerchiSDK/entities/cart_shipment_quote.js +13 -34
- package/lib/MerchiSDK/entities/category.js +14 -35
- package/lib/MerchiSDK/entities/company.js +88 -109
- package/lib/MerchiSDK/entities/company_invitation.js +13 -34
- package/lib/MerchiSDK/entities/component.js +33 -54
- package/lib/MerchiSDK/entities/component_tag.js +7 -28
- package/lib/MerchiSDK/entities/component_version.js +12 -33
- package/lib/MerchiSDK/entities/country_tax.js +21 -45
- package/lib/MerchiSDK/entities/discount.js +13 -34
- package/lib/MerchiSDK/entities/discount_group.js +11 -32
- package/lib/MerchiSDK/entities/domain.js +80 -101
- package/lib/MerchiSDK/entities/domain_invitation.js +14 -35
- package/lib/MerchiSDK/entities/domain_tag.js +15 -36
- package/lib/MerchiSDK/entities/draft.js +32 -65
- package/lib/MerchiSDK/entities/draft_comment.js +19 -40
- package/lib/MerchiSDK/entities/draft_template.js +15 -36
- package/lib/MerchiSDK/entities/email_address.js +10 -31
- package/lib/MerchiSDK/entities/email_counter.js +8 -29
- package/lib/MerchiSDK/entities/enrolled_domain.js +20 -44
- package/lib/MerchiSDK/entities/exchange_rate.js +9 -30
- package/lib/MerchiSDK/entities/file.js +59 -80
- package/lib/MerchiSDK/entities/internal_tag.js +17 -38
- package/lib/MerchiSDK/entities/inventory.js +19 -42
- package/lib/MerchiSDK/entities/inventory_unit_variation.js +12 -33
- package/lib/MerchiSDK/entities/invoice.js +57 -78
- package/lib/MerchiSDK/entities/item.js +18 -39
- package/lib/MerchiSDK/entities/job.js +117 -140
- package/lib/MerchiSDK/entities/job_comment.js +18 -39
- package/lib/MerchiSDK/entities/matching_inventory.js +11 -32
- package/lib/MerchiSDK/entities/menu.js +12 -33
- package/lib/MerchiSDK/entities/menu_item.js +12 -33
- package/lib/MerchiSDK/entities/notification.js +32 -53
- package/lib/MerchiSDK/entities/page.js +13 -34
- package/lib/MerchiSDK/entities/payment.js +25 -46
- package/lib/MerchiSDK/entities/payment_device.js +12 -33
- package/lib/MerchiSDK/entities/phone_number.js +14 -35
- package/lib/MerchiSDK/entities/product.js +153 -188
- package/lib/MerchiSDK/entities/production_comment.js +18 -39
- package/lib/MerchiSDK/entities/quote.js +70 -106
- package/lib/MerchiSDK/entities/quote_item.js +28 -49
- package/lib/MerchiSDK/entities/seo_domain_page.js +13 -34
- package/lib/MerchiSDK/entities/session.js +11 -32
- package/lib/MerchiSDK/entities/shipment.js +62 -83
- package/lib/MerchiSDK/entities/shipment_item.js +7 -28
- package/lib/MerchiSDK/entities/shipment_item_fulfillment.js +7 -28
- package/lib/MerchiSDK/entities/shipment_method.js +21 -42
- package/lib/MerchiSDK/entities/shipment_method_variation.js +15 -36
- package/lib/MerchiSDK/entities/short_url.js +14 -35
- package/lib/MerchiSDK/entities/subscription_plan.js +26 -47
- package/lib/MerchiSDK/entities/supply_domain.js +11 -32
- package/lib/MerchiSDK/entities/system_role.js +7 -28
- package/lib/MerchiSDK/entities/theme.js +89 -110
- package/lib/MerchiSDK/entities/theme_css_setting.js +10 -31
- package/lib/MerchiSDK/entities/user.js +151 -213
- package/lib/MerchiSDK/entities/user_company.js +11 -32
- package/lib/MerchiSDK/entities/variation.js +21 -42
- package/lib/MerchiSDK/entities/variation_field.js +61 -94
- package/lib/MerchiSDK/entities/variation_fields_option.js +40 -61
- package/lib/MerchiSDK/entities/variation_option.js +20 -41
- package/lib/MerchiSDK/entities/variations_group.js +15 -36
- package/lib/MerchiSDK/entity.js +534 -624
- package/lib/MerchiSDK/merchi.js +42 -53
- package/lib/MerchiSDK/request.js +47 -75
- package/lib/MerchiSDK/test_util.js +6 -10
- package/lib/MerchiSDK/toasts.js +12 -13
- package/lib/MerchiSDK/util/float.js +7 -19
- package/lib/MerchiSDK/util/query_string.js +4 -4
- package/lib/MerchiSDK/util/validation.js +2 -3
- package/lib/MerchiSDK/uuid.js +2 -2
- package/lib/buttons/Button.js +15 -15
- package/lib/buttons/ButtonBack.js +22 -25
- package/lib/buttons/ButtonClearCart.js +8 -9
- package/lib/buttons/ButtonInvoiceDownload.js +26 -61
- package/lib/buttons/ButtonNext.js +20 -25
- package/lib/buttons/ButtonNextDynamic.js +16 -18
- package/lib/buttons/ButtonPay.js +17 -13
- package/lib/buttons/ButtonShipmentTabNext.js +12 -13
- package/lib/buttons/index.js +13 -13
- package/lib/components/Alert.js +14 -12
- package/lib/components/CartBody.js +10 -8
- package/lib/components/CartClient.js +22 -17
- package/lib/components/CartFooter.js +9 -7
- package/lib/components/CartItemRow.js +58 -48
- package/lib/components/CartPaymentSettingsInvalid.js +3 -4
- package/lib/components/CartShipment.js +18 -13
- package/lib/components/CartTabContent.js +9 -7
- package/lib/components/CartTabPanel.js +15 -13
- package/lib/components/CartTableContainer.js +9 -7
- package/lib/components/Collapse.js +14 -22
- package/lib/components/LoadingTemplate.js +10 -7
- package/lib/components/NoCartItems.js +9 -9
- package/lib/components/ShipmentGroupCard.js +69 -52
- package/lib/components/Table.js +7 -4
- package/lib/components/Title.js +11 -9
- package/lib/components/containers.js +12 -11
- package/lib/components/index.js +30 -31
- package/lib/forms/FormNewCustomer.js +48 -76
- package/lib/forms/FormReturningCustomer.js +38 -58
- package/lib/forms/FormShipmentAddressAndNotes.js +42 -47
- package/lib/forms/FormSquarePayment.js +8 -9
- package/lib/forms/FormStripePayment.js +8 -9
- package/lib/forms/InputAcceptUserTermsAndConditions.js +12 -11
- package/lib/forms/InputError.js +11 -9
- package/lib/forms/InputSelect.js +34 -36
- package/lib/forms/InputText.js +38 -42
- package/lib/forms/InputsAddress.js +59 -69
- package/lib/index.js +6 -6
- package/lib/panels/PanelCartItems.js +14 -17
- package/lib/panels/PanelCartShipment.js +10 -13
- package/lib/panels/PanelClearCart.js +8 -7
- package/lib/panels/PanelClientCheckout.js +18 -17
- package/lib/panels/PanelEditCartItem.js +17 -22
- package/lib/panels/PanelPaymentSuccess.js +18 -16
- package/lib/panels/index.js +13 -13
- package/lib/slices/sliceCart.js +53 -56
- package/lib/slices/sliceCartAlert.js +11 -15
- package/lib/slices/sliceCartItem.js +11 -10
- package/lib/slices/sliceCartPayment.js +15 -16
- package/lib/slices/sliceCartShipment.js +23 -26
- package/lib/slices/sliceFormReturningCustomer.js +7 -7
- package/lib/slices/sliceNewCustomerForm.js +6 -6
- package/lib/square/SquareCard.js +16 -18
- package/lib/square/actions.js +24 -46
- package/lib/square/slices/reducersSquare.js +6 -6
- package/lib/square/slices/sliceSquareAlerts.js +10 -16
- package/lib/square/slices/sliceSquareForm.js +10 -9
- package/lib/store.js +359 -565
- package/lib/stripe/StripeCardFields.js +43 -44
- package/lib/stripe/StripeCardForm.js +51 -109
- package/lib/stripe/StripePaymentButtons.js +35 -46
- package/lib/stripe/actions.js +75 -196
- package/lib/stripe/slices/sliceStripeAlerts.js +10 -16
- package/lib/stripe/slices/sliceStripeCardForm.js +6 -6
- package/lib/stripe/slices/sliceStripeForm.js +18 -17
- package/lib/stripe/utils.js +1 -1
- package/lib/tabs/CartNav.js +15 -24
- package/lib/tabs/NavTab.js +20 -19
- package/lib/utilities/address.js +32 -30
- package/lib/utilities/cart.js +33 -50
- package/lib/utilities/cookie.js +46 -129
- package/lib/utilities/currency.js +29 -25
- package/lib/utilities/helpers.js +41 -60
- package/lib/utilities/invoice.js +45 -114
- package/lib/utilities/product.js +5 -3
- package/lib/utilities/user.js +24 -62
- package/lib/utilities/variations.js +16 -14
- 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
|
});
|
|
@@ -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, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _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, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52, _descriptor53, _descriptor54, _descriptor55, _descriptor56, _descriptor57, _descriptor58, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _descriptor64, _descriptor65, _descriptor66, _descriptor67, _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
|
-
|
|
13
|
+
let Domain = exports.Domain = (_dec = Domain.property({
|
|
27
14
|
type: Date
|
|
28
15
|
}), _dec2 = Domain.property(), _dec3 = Domain.property(), _dec4 = Domain.property(), _dec5 = Domain.property(), _dec6 = Domain.property(), _dec7 = Domain.property(), _dec8 = Domain.property(), _dec9 = Domain.property(), _dec10 = Domain.property(), _dec11 = Domain.property(), _dec12 = Domain.property(), _dec13 = Domain.property(), _dec14 = Domain.property(), _dec15 = Domain.property(), _dec16 = Domain.property(), _dec17 = Domain.property(), _dec18 = Domain.property(), _dec19 = Domain.property(), _dec20 = Domain.property(), _dec21 = Domain.property(), _dec22 = Domain.property(), _dec23 = Domain.property({
|
|
29
16
|
type: String
|
|
@@ -107,102 +94,94 @@ var Domain = exports.Domain = (_dec = Domain.property({
|
|
|
107
94
|
arrayType: 'SeoDomainPage'
|
|
108
95
|
}), _dec67 = Domain.property({
|
|
109
96
|
arrayType: 'Theme'
|
|
110
|
-
}), (_class = (_class2 =
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
_initializerDefineProperty(
|
|
120
|
-
_initializerDefineProperty(
|
|
121
|
-
_initializerDefineProperty(
|
|
122
|
-
_initializerDefineProperty(
|
|
123
|
-
_initializerDefineProperty(
|
|
124
|
-
_initializerDefineProperty(
|
|
125
|
-
_initializerDefineProperty(
|
|
126
|
-
_initializerDefineProperty(
|
|
127
|
-
_initializerDefineProperty(
|
|
128
|
-
_initializerDefineProperty(
|
|
129
|
-
_initializerDefineProperty(
|
|
130
|
-
_initializerDefineProperty(
|
|
131
|
-
_initializerDefineProperty(
|
|
132
|
-
_initializerDefineProperty(
|
|
133
|
-
_initializerDefineProperty(
|
|
134
|
-
_initializerDefineProperty(
|
|
135
|
-
_initializerDefineProperty(
|
|
136
|
-
_initializerDefineProperty(
|
|
137
|
-
_initializerDefineProperty(
|
|
138
|
-
_initializerDefineProperty(
|
|
139
|
-
_initializerDefineProperty(
|
|
140
|
-
_initializerDefineProperty(
|
|
141
|
-
_initializerDefineProperty(
|
|
142
|
-
_initializerDefineProperty(
|
|
143
|
-
_initializerDefineProperty(
|
|
144
|
-
_initializerDefineProperty(
|
|
145
|
-
_initializerDefineProperty(
|
|
146
|
-
_initializerDefineProperty(
|
|
147
|
-
_initializerDefineProperty(
|
|
148
|
-
_initializerDefineProperty(
|
|
149
|
-
_initializerDefineProperty(
|
|
150
|
-
_initializerDefineProperty(
|
|
151
|
-
_initializerDefineProperty(
|
|
152
|
-
_initializerDefineProperty(
|
|
153
|
-
_initializerDefineProperty(
|
|
154
|
-
_initializerDefineProperty(
|
|
155
|
-
_initializerDefineProperty(
|
|
156
|
-
_initializerDefineProperty(
|
|
157
|
-
_initializerDefineProperty(
|
|
158
|
-
_initializerDefineProperty(
|
|
159
|
-
_initializerDefineProperty(
|
|
160
|
-
_initializerDefineProperty(
|
|
161
|
-
_initializerDefineProperty(
|
|
162
|
-
_initializerDefineProperty(
|
|
163
|
-
_initializerDefineProperty(
|
|
164
|
-
_initializerDefineProperty(
|
|
165
|
-
_initializerDefineProperty(
|
|
166
|
-
_initializerDefineProperty(
|
|
167
|
-
_initializerDefineProperty(
|
|
168
|
-
_initializerDefineProperty(
|
|
169
|
-
_initializerDefineProperty(
|
|
170
|
-
_initializerDefineProperty(
|
|
171
|
-
_initializerDefineProperty(
|
|
172
|
-
_initializerDefineProperty(
|
|
173
|
-
_initializerDefineProperty(
|
|
174
|
-
_initializerDefineProperty(
|
|
175
|
-
_initializerDefineProperty(
|
|
176
|
-
_initializerDefineProperty(
|
|
177
|
-
_initializerDefineProperty(
|
|
178
|
-
_initializerDefineProperty(
|
|
179
|
-
_initializerDefineProperty(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
_initializerDefineProperty(_this, "invoices", _descriptor64, _assertThisInitialized(_this));
|
|
183
|
-
_initializerDefineProperty(_this, "domainInvitations", _descriptor65, _assertThisInitialized(_this));
|
|
184
|
-
_initializerDefineProperty(_this, "seoDomainPages", _descriptor66, _assertThisInitialized(_this));
|
|
185
|
-
_initializerDefineProperty(_this, "themes", _descriptor67, _assertThisInitialized(_this));
|
|
186
|
-
_this.defaultTaxType = function () {
|
|
187
|
-
if (_this.company === undefined) {
|
|
97
|
+
}), (_class = (_class2 = class Domain extends _entity.Entity {
|
|
98
|
+
constructor() {
|
|
99
|
+
super(...arguments);
|
|
100
|
+
_initializerDefineProperty(this, "archived", _descriptor, this);
|
|
101
|
+
_initializerDefineProperty(this, "id", _descriptor2, this);
|
|
102
|
+
_initializerDefineProperty(this, "domain", _descriptor3, this);
|
|
103
|
+
_initializerDefineProperty(this, "country", _descriptor4, this);
|
|
104
|
+
_initializerDefineProperty(this, "currency", _descriptor5, this);
|
|
105
|
+
_initializerDefineProperty(this, "callToActions", _descriptor6, this);
|
|
106
|
+
_initializerDefineProperty(this, "callToActionDetails", _descriptor7, this);
|
|
107
|
+
_initializerDefineProperty(this, "isMaster", _descriptor8, this);
|
|
108
|
+
_initializerDefineProperty(this, "internalUseNotes", _descriptor9, this);
|
|
109
|
+
_initializerDefineProperty(this, "internalUseAiContext", _descriptor10, this);
|
|
110
|
+
_initializerDefineProperty(this, "aiContext", _descriptor11, this);
|
|
111
|
+
_initializerDefineProperty(this, "domainType", _descriptor12, this);
|
|
112
|
+
_initializerDefineProperty(this, "subDomain", _descriptor13, this);
|
|
113
|
+
_initializerDefineProperty(this, "emailDomain", _descriptor14, this);
|
|
114
|
+
_initializerDefineProperty(this, "smsName", _descriptor15, this);
|
|
115
|
+
_initializerDefineProperty(this, "showDomainPublicly", _descriptor16, this);
|
|
116
|
+
_initializerDefineProperty(this, "publicAccessRestricted", _descriptor17, this);
|
|
117
|
+
_initializerDefineProperty(this, "showDomainToAccessibleEntitiesOnly", _descriptor18, this);
|
|
118
|
+
_initializerDefineProperty(this, "enableEmailNotifications", _descriptor19, this);
|
|
119
|
+
_initializerDefineProperty(this, "enableSmsNotifications", _descriptor20, this);
|
|
120
|
+
_initializerDefineProperty(this, "mailgunRecords", _descriptor21, this);
|
|
121
|
+
_initializerDefineProperty(this, "enableNotifications", _descriptor22, this);
|
|
122
|
+
_initializerDefineProperty(this, "trackingCodeGoogleConversion", _descriptor23, this);
|
|
123
|
+
_initializerDefineProperty(this, "trackingCodeGoogleGlobal", _descriptor24, this);
|
|
124
|
+
_initializerDefineProperty(this, "apiSecret", _descriptor25, this);
|
|
125
|
+
_initializerDefineProperty(this, "webflowApiKey", _descriptor26, this);
|
|
126
|
+
_initializerDefineProperty(this, "shopifyShopUrl", _descriptor27, this);
|
|
127
|
+
_initializerDefineProperty(this, "shopifyIsActive", _descriptor28, this);
|
|
128
|
+
_initializerDefineProperty(this, "qrShopQrCode", _descriptor29, this);
|
|
129
|
+
_initializerDefineProperty(this, "unltdAiApiOrganizationId", _descriptor30, this);
|
|
130
|
+
_initializerDefineProperty(this, "unltdAiApiSecretKey", _descriptor31, this);
|
|
131
|
+
_initializerDefineProperty(this, "socialBitchute", _descriptor32, this);
|
|
132
|
+
_initializerDefineProperty(this, "socialDiscord", _descriptor33, this);
|
|
133
|
+
_initializerDefineProperty(this, "socialFacebook", _descriptor34, this);
|
|
134
|
+
_initializerDefineProperty(this, "socialGoogle", _descriptor35, this);
|
|
135
|
+
_initializerDefineProperty(this, "socialInstagram", _descriptor36, this);
|
|
136
|
+
_initializerDefineProperty(this, "socialLinkedin", _descriptor37, this);
|
|
137
|
+
_initializerDefineProperty(this, "socialRumble", _descriptor38, this);
|
|
138
|
+
_initializerDefineProperty(this, "socialTelegram", _descriptor39, this);
|
|
139
|
+
_initializerDefineProperty(this, "socialTiktok", _descriptor40, this);
|
|
140
|
+
_initializerDefineProperty(this, "socialX", _descriptor41, this);
|
|
141
|
+
_initializerDefineProperty(this, "socialYoutube", _descriptor42, this);
|
|
142
|
+
_initializerDefineProperty(this, "ownedBy", _descriptor43, this);
|
|
143
|
+
_initializerDefineProperty(this, "company", _descriptor44, this);
|
|
144
|
+
_initializerDefineProperty(this, "logo", _descriptor45, this);
|
|
145
|
+
_initializerDefineProperty(this, "favicon", _descriptor46, this);
|
|
146
|
+
_initializerDefineProperty(this, "activeTheme", _descriptor47, this);
|
|
147
|
+
_initializerDefineProperty(this, "internalTags", _descriptor48, this);
|
|
148
|
+
_initializerDefineProperty(this, "tags", _descriptor49, this);
|
|
149
|
+
_initializerDefineProperty(this, "canSupply", _descriptor50, this);
|
|
150
|
+
_initializerDefineProperty(this, "suppliedBy", _descriptor51, this);
|
|
151
|
+
_initializerDefineProperty(this, "accessibleClients", _descriptor52, this);
|
|
152
|
+
_initializerDefineProperty(this, "accessibleClientCompanies", _descriptor53, this);
|
|
153
|
+
_initializerDefineProperty(this, "menus", _descriptor54, this);
|
|
154
|
+
_initializerDefineProperty(this, "sessions", _descriptor55, this);
|
|
155
|
+
_initializerDefineProperty(this, "categories", _descriptor56, this);
|
|
156
|
+
_initializerDefineProperty(this, "notifications", _descriptor57, this);
|
|
157
|
+
_initializerDefineProperty(this, "products", _descriptor58, this);
|
|
158
|
+
_initializerDefineProperty(this, "supplyProducts", _descriptor59, this);
|
|
159
|
+
_initializerDefineProperty(this, "jobs", _descriptor60, this);
|
|
160
|
+
_initializerDefineProperty(this, "jobsAssignees", _descriptor61, this);
|
|
161
|
+
_initializerDefineProperty(this, "carts", _descriptor62, this);
|
|
162
|
+
_initializerDefineProperty(this, "enrollments", _descriptor63, this);
|
|
163
|
+
_initializerDefineProperty(this, "invoices", _descriptor64, this);
|
|
164
|
+
_initializerDefineProperty(this, "domainInvitations", _descriptor65, this);
|
|
165
|
+
_initializerDefineProperty(this, "seoDomainPages", _descriptor66, this);
|
|
166
|
+
_initializerDefineProperty(this, "themes", _descriptor67, this);
|
|
167
|
+
this.defaultTaxType = () => {
|
|
168
|
+
if (this.company === undefined) {
|
|
188
169
|
throw new Error('company is undefined, did you forget to embed it?');
|
|
189
170
|
}
|
|
190
|
-
if (
|
|
191
|
-
|
|
171
|
+
if (this.company.defaultTaxType === undefined) {
|
|
172
|
+
const err = 'company.defaultTaxType is undefined, did you forget to' + ' embed it?';
|
|
192
173
|
throw new Error(err);
|
|
193
174
|
}
|
|
194
|
-
return
|
|
175
|
+
return this.company.defaultTaxType;
|
|
195
176
|
};
|
|
196
|
-
|
|
197
|
-
if (
|
|
177
|
+
this.getActiveTheme = () => {
|
|
178
|
+
if (this.activeTheme === undefined) {
|
|
198
179
|
throw new Error('activeTheme is undefined, did you forget to embed it?');
|
|
199
180
|
}
|
|
200
|
-
return
|
|
181
|
+
return this.activeTheme;
|
|
201
182
|
};
|
|
202
|
-
return _this;
|
|
203
183
|
}
|
|
204
|
-
|
|
205
|
-
}(_entity.Entity), _class2.resourceName = 'domains', _class2.singularName = 'domain', _class2.pluralName = 'domains', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
184
|
+
}, _class2.resourceName = 'domains', _class2.singularName = 'domain', _class2.pluralName = 'domains', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
206
185
|
configurable: true,
|
|
207
186
|
enumerable: true,
|
|
208
187
|
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.DomainInvitation = 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 _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
|
-
|
|
12
|
+
let DomainInvitation = exports.DomainInvitation = (_dec = DomainInvitation.property({
|
|
26
13
|
type: Date
|
|
27
14
|
}), _dec2 = DomainInvitation.property(), _dec3 = DomainInvitation.property(), _dec4 = DomainInvitation.property(), _dec5 = DomainInvitation.property(), _dec6 = DomainInvitation.property(), _dec7 = DomainInvitation.property(), _dec8 = DomainInvitation.property(), _dec9 = DomainInvitation.property({
|
|
28
15
|
type: Date
|
|
29
|
-
}), (_class = (_class2 =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
_initializerDefineProperty(
|
|
39
|
-
_initializerDefineProperty(
|
|
40
|
-
_initializerDefineProperty(
|
|
41
|
-
_initializerDefineProperty(_this, "userEmail", _descriptor4, _assertThisInitialized(_this));
|
|
42
|
-
_initializerDefineProperty(_this, "role", _descriptor5, _assertThisInitialized(_this));
|
|
43
|
-
_initializerDefineProperty(_this, "token", _descriptor6, _assertThisInitialized(_this));
|
|
44
|
-
_initializerDefineProperty(_this, "domain", _descriptor7, _assertThisInitialized(_this));
|
|
45
|
-
_initializerDefineProperty(_this, "sender", _descriptor8, _assertThisInitialized(_this));
|
|
46
|
-
_initializerDefineProperty(_this, "user", _descriptor9, _assertThisInitialized(_this));
|
|
47
|
-
return _this;
|
|
16
|
+
}), (_class = (_class2 = class DomainInvitation extends _entity.Entity {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
_initializerDefineProperty(this, "archived", _descriptor, this);
|
|
20
|
+
_initializerDefineProperty(this, "id", _descriptor2, this);
|
|
21
|
+
_initializerDefineProperty(this, "userName", _descriptor3, this);
|
|
22
|
+
_initializerDefineProperty(this, "userEmail", _descriptor4, this);
|
|
23
|
+
_initializerDefineProperty(this, "role", _descriptor5, this);
|
|
24
|
+
_initializerDefineProperty(this, "token", _descriptor6, this);
|
|
25
|
+
_initializerDefineProperty(this, "domain", _descriptor7, this);
|
|
26
|
+
_initializerDefineProperty(this, "sender", _descriptor8, this);
|
|
27
|
+
_initializerDefineProperty(this, "user", _descriptor9, this);
|
|
48
28
|
}
|
|
49
|
-
|
|
50
|
-
}(_entity.Entity), _class2.resourceName = 'domain_invitations', _class2.singularName = 'domainInvitation', _class2.pluralName = 'domainInvitations', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
29
|
+
}, _class2.resourceName = 'domain_invitations', _class2.singularName = 'domainInvitation', _class2.pluralName = 'domainInvitations', _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.DomainTag = void 0;
|
|
|
8
7
|
var _entity = require("../entity");
|
|
9
8
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _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
|
-
|
|
12
|
+
let DomainTag = exports.DomainTag = (_dec = DomainTag.property(), _dec2 = DomainTag.property(), _dec3 = DomainTag.property(), _dec4 = DomainTag.property(), _dec5 = DomainTag.property(), _dec6 = DomainTag.property(), _dec7 = DomainTag.property({
|
|
26
13
|
arrayType: 'Job'
|
|
27
14
|
}), _dec8 = DomainTag.property({
|
|
28
15
|
arrayType: 'Product'
|
|
@@ -30,29 +17,21 @@ var DomainTag = exports.DomainTag = (_dec = DomainTag.property(), _dec2 = Domain
|
|
|
30
17
|
arrayType: 'Invoice'
|
|
31
18
|
}), _dec10 = DomainTag.property({
|
|
32
19
|
arrayType: 'Shipment'
|
|
33
|
-
}), (_class = (_class2 =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
_initializerDefineProperty(
|
|
43
|
-
_initializerDefineProperty(
|
|
44
|
-
_initializerDefineProperty(
|
|
45
|
-
_initializerDefineProperty(
|
|
46
|
-
_initializerDefineProperty(_this, "showPublic", _descriptor5, _assertThisInitialized(_this));
|
|
47
|
-
_initializerDefineProperty(_this, "domain", _descriptor6, _assertThisInitialized(_this));
|
|
48
|
-
_initializerDefineProperty(_this, "jobs", _descriptor7, _assertThisInitialized(_this));
|
|
49
|
-
_initializerDefineProperty(_this, "products", _descriptor8, _assertThisInitialized(_this));
|
|
50
|
-
_initializerDefineProperty(_this, "invoices", _descriptor9, _assertThisInitialized(_this));
|
|
51
|
-
_initializerDefineProperty(_this, "shipments", _descriptor10, _assertThisInitialized(_this));
|
|
52
|
-
return _this;
|
|
20
|
+
}), (_class = (_class2 = class DomainTag extends _entity.Entity {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
24
|
+
_initializerDefineProperty(this, "colour", _descriptor2, this);
|
|
25
|
+
_initializerDefineProperty(this, "name", _descriptor3, this);
|
|
26
|
+
_initializerDefineProperty(this, "description", _descriptor4, this);
|
|
27
|
+
_initializerDefineProperty(this, "showPublic", _descriptor5, this);
|
|
28
|
+
_initializerDefineProperty(this, "domain", _descriptor6, this);
|
|
29
|
+
_initializerDefineProperty(this, "jobs", _descriptor7, this);
|
|
30
|
+
_initializerDefineProperty(this, "products", _descriptor8, this);
|
|
31
|
+
_initializerDefineProperty(this, "invoices", _descriptor9, this);
|
|
32
|
+
_initializerDefineProperty(this, "shipments", _descriptor10, this);
|
|
53
33
|
}
|
|
54
|
-
|
|
55
|
-
}(_entity.Entity), _class2.resourceName = 'domain_tags', _class2.singularName = 'domainTag', _class2.pluralName = 'domainTags', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "id", [_dec], {
|
|
34
|
+
}, _class2.resourceName = 'domain_tags', _class2.singularName = 'domainTag', _class2.pluralName = 'domainTags', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "id", [_dec], {
|
|
56
35
|
configurable: true,
|
|
57
36
|
enumerable: true,
|
|
58
37
|
writable: true,
|
|
@@ -1,31 +1,15 @@
|
|
|
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
|
});
|
|
7
6
|
exports.Draft = void 0;
|
|
8
7
|
var _entity = require("../entity");
|
|
9
8
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _class2;
|
|
10
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
11
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
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 }); }
|
|
14
|
-
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); } }
|
|
15
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
-
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); }
|
|
18
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
20
|
-
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); }
|
|
21
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24
|
-
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); }
|
|
25
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
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; }
|
|
27
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.'); }
|
|
28
|
-
|
|
12
|
+
let Draft = exports.Draft = (_dec = Draft.property({
|
|
29
13
|
type: Date
|
|
30
14
|
}), _dec2 = Draft.property(), _dec3 = Draft.property({
|
|
31
15
|
type: Date
|
|
@@ -39,70 +23,53 @@ var Draft = exports.Draft = (_dec = Draft.property({
|
|
|
39
23
|
arrayType: 'MerchiFile'
|
|
40
24
|
}), _dec14 = Draft.property({
|
|
41
25
|
arrayType: 'Notification'
|
|
42
|
-
}), _dec15 = Draft.property(), _dec16 = Draft.property(), (_class = (_class2 =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
_initializerDefineProperty(
|
|
52
|
-
_initializerDefineProperty(
|
|
53
|
-
_initializerDefineProperty(
|
|
54
|
-
_initializerDefineProperty(
|
|
55
|
-
_initializerDefineProperty(
|
|
56
|
-
_initializerDefineProperty(
|
|
57
|
-
_initializerDefineProperty(
|
|
58
|
-
_initializerDefineProperty(
|
|
59
|
-
_initializerDefineProperty(
|
|
60
|
-
_initializerDefineProperty(
|
|
61
|
-
|
|
62
|
-
_initializerDefineProperty(_this, "designer", _descriptor12, _assertThisInitialized(_this));
|
|
63
|
-
_initializerDefineProperty(_this, "images", _descriptor13, _assertThisInitialized(_this));
|
|
64
|
-
_initializerDefineProperty(_this, "notification", _descriptor14, _assertThisInitialized(_this));
|
|
65
|
-
_initializerDefineProperty(_this, "job", _descriptor15, _assertThisInitialized(_this));
|
|
66
|
-
_initializerDefineProperty(_this, "sharedWithJob", _descriptor16, _assertThisInitialized(_this));
|
|
67
|
-
_this.wereChangesRequested = function () {
|
|
26
|
+
}), _dec15 = Draft.property(), _dec16 = Draft.property(), (_class = (_class2 = class Draft extends _entity.Entity {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
_initializerDefineProperty(this, "archived", _descriptor, this);
|
|
30
|
+
_initializerDefineProperty(this, "id", _descriptor2, this);
|
|
31
|
+
_initializerDefineProperty(this, "date", _descriptor3, this);
|
|
32
|
+
_initializerDefineProperty(this, "accepted", _descriptor4, this);
|
|
33
|
+
_initializerDefineProperty(this, "resendDate", _descriptor5, this);
|
|
34
|
+
_initializerDefineProperty(this, "viewed", _descriptor6, this);
|
|
35
|
+
_initializerDefineProperty(this, "sendSms", _descriptor7, this);
|
|
36
|
+
_initializerDefineProperty(this, "sendEmail", _descriptor8, this);
|
|
37
|
+
_initializerDefineProperty(this, "comments", _descriptor9, this);
|
|
38
|
+
_initializerDefineProperty(this, "commentsCount", _descriptor10, this);
|
|
39
|
+
_initializerDefineProperty(this, "changesRequested", _descriptor11, this);
|
|
40
|
+
_initializerDefineProperty(this, "designer", _descriptor12, this);
|
|
41
|
+
_initializerDefineProperty(this, "images", _descriptor13, this);
|
|
42
|
+
_initializerDefineProperty(this, "notification", _descriptor14, this);
|
|
43
|
+
_initializerDefineProperty(this, "job", _descriptor15, this);
|
|
44
|
+
_initializerDefineProperty(this, "sharedWithJob", _descriptor16, this);
|
|
45
|
+
this.wereChangesRequested = () => {
|
|
68
46
|
/* true if any comment is/was a change request comment. */
|
|
69
|
-
if (
|
|
47
|
+
if (this.comments === undefined) {
|
|
70
48
|
throw 'comments is undefined. did you forget to embed it?';
|
|
71
49
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
throw 'changeRequest is undefined.';
|
|
79
|
-
}
|
|
80
|
-
if (comment.changeRequest) {
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
50
|
+
for (const comment of this.comments) {
|
|
51
|
+
if (comment.changeRequest === undefined) {
|
|
52
|
+
throw 'changeRequest is undefined.';
|
|
53
|
+
}
|
|
54
|
+
if (comment.changeRequest) {
|
|
55
|
+
return true;
|
|
83
56
|
}
|
|
84
|
-
} catch (err) {
|
|
85
|
-
_iterator.e(err);
|
|
86
|
-
} finally {
|
|
87
|
-
_iterator.f();
|
|
88
57
|
}
|
|
89
58
|
return false;
|
|
90
59
|
};
|
|
91
|
-
|
|
92
|
-
if (
|
|
60
|
+
this.commentsYoungestToEldest = () => {
|
|
61
|
+
if (this.comments === undefined) {
|
|
93
62
|
throw 'comments is undefined. did you forget to embed it?';
|
|
94
63
|
}
|
|
95
|
-
return
|
|
64
|
+
return this.comments.sort((a, b) => {
|
|
96
65
|
if (a.id === undefined || b.id === undefined) {
|
|
97
66
|
throw 'comment id is undefined. did you forget to embed it?';
|
|
98
67
|
}
|
|
99
68
|
return a.id - b.id;
|
|
100
69
|
});
|
|
101
70
|
};
|
|
102
|
-
return _this;
|
|
103
71
|
}
|
|
104
|
-
|
|
105
|
-
}(_entity.Entity), _class2.resourceName = 'drafts', _class2.singularName = 'draft', _class2.pluralName = 'drafts', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
72
|
+
}, _class2.resourceName = 'drafts', _class2.singularName = 'draft', _class2.pluralName = 'drafts', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
106
73
|
configurable: true,
|
|
107
74
|
enumerable: true,
|
|
108
75
|
writable: true,
|