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
|
});
|
|
@@ -16,21 +15,9 @@ var _shipment = require("./shipment");
|
|
|
16
15
|
var _user = require("./user");
|
|
17
16
|
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, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _dec75, _dec76, _dec77, _dec78, _dec79, _dec80, _dec81, _dec82, _dec83, _dec84, _dec85, _dec86, _dec87, _dec88, _dec89, _dec90, _dec91, _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, _descriptor68, _descriptor69, _descriptor70, _descriptor71, _descriptor72, _descriptor73, _descriptor74, _descriptor75, _descriptor76, _descriptor77, _descriptor78, _descriptor79, _descriptor80, _descriptor81, _descriptor82, _descriptor83, _descriptor84, _descriptor85, _descriptor86, _descriptor87, _descriptor88, _descriptor89, _descriptor90, _descriptor91, _class2;
|
|
18
17
|
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 }); }
|
|
19
|
-
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); } }
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
22
|
-
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); }
|
|
23
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
25
|
-
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); }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
-
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); }
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
18
|
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; }
|
|
32
19
|
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.'); }
|
|
33
|
-
|
|
20
|
+
let Job = exports.Job = (_dec = Job.property({
|
|
34
21
|
type: Date
|
|
35
22
|
}), _dec2 = Job.property(), _dec3 = Job.property(), _dec4 = Job.property(), _dec5 = Job.property(), _dec6 = Job.property({
|
|
36
23
|
type: String
|
|
@@ -138,160 +125,150 @@ var Job = exports.Job = (_dec = Job.property({
|
|
|
138
125
|
arrayType: 'Notification'
|
|
139
126
|
}), _dec87 = Job.property({
|
|
140
127
|
arrayType: 'Assignment'
|
|
141
|
-
}), _dec88 = Job.property(), _dec89 = Job.property(), _dec90 = Job.property(), _dec91 = Job.property(), (_class = (_class2 =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
_initializerDefineProperty(
|
|
181
|
-
_initializerDefineProperty(
|
|
182
|
-
_initializerDefineProperty(
|
|
183
|
-
_initializerDefineProperty(
|
|
184
|
-
_initializerDefineProperty(
|
|
185
|
-
_initializerDefineProperty(
|
|
186
|
-
_initializerDefineProperty(
|
|
187
|
-
_initializerDefineProperty(
|
|
188
|
-
_initializerDefineProperty(
|
|
189
|
-
_initializerDefineProperty(
|
|
190
|
-
_initializerDefineProperty(
|
|
191
|
-
_initializerDefineProperty(
|
|
192
|
-
_initializerDefineProperty(
|
|
193
|
-
_initializerDefineProperty(
|
|
194
|
-
_initializerDefineProperty(
|
|
195
|
-
_initializerDefineProperty(
|
|
196
|
-
_initializerDefineProperty(
|
|
197
|
-
_initializerDefineProperty(
|
|
198
|
-
_initializerDefineProperty(
|
|
199
|
-
_initializerDefineProperty(
|
|
200
|
-
_initializerDefineProperty(
|
|
201
|
-
_initializerDefineProperty(
|
|
202
|
-
_initializerDefineProperty(
|
|
203
|
-
_initializerDefineProperty(
|
|
204
|
-
_initializerDefineProperty(
|
|
205
|
-
_initializerDefineProperty(
|
|
206
|
-
_initializerDefineProperty(
|
|
207
|
-
_initializerDefineProperty(
|
|
208
|
-
_initializerDefineProperty(
|
|
209
|
-
_initializerDefineProperty(
|
|
210
|
-
_initializerDefineProperty(
|
|
211
|
-
_initializerDefineProperty(
|
|
212
|
-
_initializerDefineProperty(
|
|
213
|
-
_initializerDefineProperty(
|
|
214
|
-
_initializerDefineProperty(
|
|
215
|
-
_initializerDefineProperty(
|
|
216
|
-
_initializerDefineProperty(
|
|
217
|
-
_initializerDefineProperty(
|
|
218
|
-
_initializerDefineProperty(
|
|
219
|
-
_initializerDefineProperty(
|
|
220
|
-
_initializerDefineProperty(
|
|
221
|
-
_initializerDefineProperty(
|
|
222
|
-
_initializerDefineProperty(
|
|
223
|
-
_initializerDefineProperty(
|
|
224
|
-
_initializerDefineProperty(
|
|
225
|
-
_initializerDefineProperty(
|
|
226
|
-
_initializerDefineProperty(
|
|
227
|
-
_initializerDefineProperty(
|
|
228
|
-
_initializerDefineProperty(
|
|
229
|
-
_initializerDefineProperty(
|
|
230
|
-
_initializerDefineProperty(
|
|
231
|
-
_initializerDefineProperty(
|
|
232
|
-
_initializerDefineProperty(
|
|
233
|
-
_initializerDefineProperty(
|
|
234
|
-
_initializerDefineProperty(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
_initializerDefineProperty(_this, "supplyJob", _descriptor89, _assertThisInitialized(_this));
|
|
239
|
-
_initializerDefineProperty(_this, "hasValidVolume", _descriptor90, _assertThisInitialized(_this));
|
|
240
|
-
_initializerDefineProperty(_this, "hasValidWeight", _descriptor91, _assertThisInitialized(_this));
|
|
241
|
-
_this.getQuote = function () {
|
|
242
|
-
var resource = '/specialised-order-estimate/';
|
|
243
|
-
var data = _this.toFormData({
|
|
128
|
+
}), _dec88 = Job.property(), _dec89 = Job.property(), _dec90 = Job.property(), _dec91 = Job.property(), (_class = (_class2 = class Job extends _entity.Entity {
|
|
129
|
+
constructor() {
|
|
130
|
+
super(...arguments);
|
|
131
|
+
_initializerDefineProperty(this, "archived", _descriptor, this);
|
|
132
|
+
_initializerDefineProperty(this, "id", _descriptor2, this);
|
|
133
|
+
_initializerDefineProperty(this, "jobType", _descriptor3, this);
|
|
134
|
+
_initializerDefineProperty(this, "quantity", _descriptor4, this);
|
|
135
|
+
_initializerDefineProperty(this, "currency", _descriptor5, this);
|
|
136
|
+
_initializerDefineProperty(this, "notes", _descriptor6, this);
|
|
137
|
+
_initializerDefineProperty(this, "productionNotes", _descriptor7, this);
|
|
138
|
+
_initializerDefineProperty(this, "shopifyShopUrl", _descriptor8, this);
|
|
139
|
+
_initializerDefineProperty(this, "shopifyOrderId", _descriptor9, this);
|
|
140
|
+
_initializerDefineProperty(this, "shopifyOrderLineItemId", _descriptor10, this);
|
|
141
|
+
_initializerDefineProperty(this, "productionStatus", _descriptor11, this);
|
|
142
|
+
_initializerDefineProperty(this, "designStatus", _descriptor12, this);
|
|
143
|
+
_initializerDefineProperty(this, "supplyChainRequestStatus", _descriptor13, this);
|
|
144
|
+
_initializerDefineProperty(this, "needsDrafting", _descriptor14, this);
|
|
145
|
+
_initializerDefineProperty(this, "needsGroupBuy", _descriptor15, this);
|
|
146
|
+
_initializerDefineProperty(this, "needsProduction", _descriptor16, this);
|
|
147
|
+
_initializerDefineProperty(this, "needsShipping", _descriptor17, this);
|
|
148
|
+
_initializerDefineProperty(this, "needsInvoicing", _descriptor18, this);
|
|
149
|
+
_initializerDefineProperty(this, "needsInventory", _descriptor19, this);
|
|
150
|
+
_initializerDefineProperty(this, "needsSupplyChainRequest", _descriptor20, this);
|
|
151
|
+
_initializerDefineProperty(this, "showProductionFilesToClient", _descriptor21, this);
|
|
152
|
+
_initializerDefineProperty(this, "allowClientDraftContribution", _descriptor22, this);
|
|
153
|
+
_initializerDefineProperty(this, "quoteSet", _descriptor23, this);
|
|
154
|
+
_initializerDefineProperty(this, "jobInfoApprovedByClient", _descriptor24, this);
|
|
155
|
+
_initializerDefineProperty(this, "groupBuyStatus", _descriptor25, this);
|
|
156
|
+
_initializerDefineProperty(this, "paymentStatus", _descriptor26, this);
|
|
157
|
+
_initializerDefineProperty(this, "deductionDate", _descriptor27, this);
|
|
158
|
+
_initializerDefineProperty(this, "shippingStatus", _descriptor28, this);
|
|
159
|
+
_initializerDefineProperty(this, "completed", _descriptor29, this);
|
|
160
|
+
_initializerDefineProperty(this, "callToActions", _descriptor30, this);
|
|
161
|
+
_initializerDefineProperty(this, "callToActionDetails", _descriptor31, this);
|
|
162
|
+
_initializerDefineProperty(this, "priority", _descriptor32, this);
|
|
163
|
+
_initializerDefineProperty(this, "jobWeight", _descriptor33, this);
|
|
164
|
+
_initializerDefineProperty(this, "jobVolume", _descriptor34, this);
|
|
165
|
+
_initializerDefineProperty(this, "received", _descriptor35, this);
|
|
166
|
+
_initializerDefineProperty(this, "deadline", _descriptor36, this);
|
|
167
|
+
_initializerDefineProperty(this, "updated", _descriptor37, this);
|
|
168
|
+
_initializerDefineProperty(this, "groupBuyProductionStarted", _descriptor38, this);
|
|
169
|
+
_initializerDefineProperty(this, "automaticPriceEnabled", _descriptor39, this);
|
|
170
|
+
_initializerDefineProperty(this, "dropShip", _descriptor40, this);
|
|
171
|
+
_initializerDefineProperty(this, "pickUp", _descriptor41, this);
|
|
172
|
+
_initializerDefineProperty(this, "costPerUnit", _descriptor42, this);
|
|
173
|
+
_initializerDefineProperty(this, "cost", _descriptor43, this);
|
|
174
|
+
_initializerDefineProperty(this, "taxAmount", _descriptor44, this);
|
|
175
|
+
_initializerDefineProperty(this, "totalCost", _descriptor45, this);
|
|
176
|
+
_initializerDefineProperty(this, "inventoriesStatus", _descriptor46, this);
|
|
177
|
+
_initializerDefineProperty(this, "unreadNotificationsCount", _descriptor47, this);
|
|
178
|
+
_initializerDefineProperty(this, "unreadJobInfoNotificationsCount", _descriptor48, this);
|
|
179
|
+
_initializerDefineProperty(this, "unreadJobDraftingNotificationsCount", _descriptor49, this);
|
|
180
|
+
_initializerDefineProperty(this, "unreadJobProductionNotificationsCount", _descriptor50, this);
|
|
181
|
+
_initializerDefineProperty(this, "unreadJobShippingNotificationsCount", _descriptor51, this);
|
|
182
|
+
_initializerDefineProperty(this, "unreadJobInvoicingNotificationsCount", _descriptor52, this);
|
|
183
|
+
_initializerDefineProperty(this, "limitedStock", _descriptor53, this);
|
|
184
|
+
_initializerDefineProperty(this, "inventoryCount", _descriptor54, this);
|
|
185
|
+
_initializerDefineProperty(this, "inventorySufficient", _descriptor55, this);
|
|
186
|
+
_initializerDefineProperty(this, "drafts", _descriptor56, this);
|
|
187
|
+
_initializerDefineProperty(this, "sharedDrafts", _descriptor57, this);
|
|
188
|
+
_initializerDefineProperty(this, "ownDrafts", _descriptor58, this);
|
|
189
|
+
_initializerDefineProperty(this, "comments", _descriptor59, this);
|
|
190
|
+
_initializerDefineProperty(this, "client", _descriptor60, this);
|
|
191
|
+
_initializerDefineProperty(this, "manager", _descriptor61, this);
|
|
192
|
+
_initializerDefineProperty(this, "designer", _descriptor62, this);
|
|
193
|
+
_initializerDefineProperty(this, "clientCompany", _descriptor63, this);
|
|
194
|
+
_initializerDefineProperty(this, "clientPhone", _descriptor64, this);
|
|
195
|
+
_initializerDefineProperty(this, "clientEmail", _descriptor65, this);
|
|
196
|
+
_initializerDefineProperty(this, "clientCompanyPhone", _descriptor66, this);
|
|
197
|
+
_initializerDefineProperty(this, "clientCompanyEmail", _descriptor67, this);
|
|
198
|
+
_initializerDefineProperty(this, "product", _descriptor68, this);
|
|
199
|
+
_initializerDefineProperty(this, "supplyChainRequestProduct", _descriptor69, this);
|
|
200
|
+
_initializerDefineProperty(this, "draftComments", _descriptor70, this);
|
|
201
|
+
_initializerDefineProperty(this, "preDraftCommentsCount", _descriptor71, this);
|
|
202
|
+
_initializerDefineProperty(this, "taxType", _descriptor72, this);
|
|
203
|
+
_initializerDefineProperty(this, "internalTags", _descriptor73, this);
|
|
204
|
+
_initializerDefineProperty(this, "tags", _descriptor74, this);
|
|
205
|
+
_initializerDefineProperty(this, "createdProducts", _descriptor75, this);
|
|
206
|
+
_initializerDefineProperty(this, "shipping", _descriptor76, this);
|
|
207
|
+
_initializerDefineProperty(this, "productionShippingAddress", _descriptor77, this);
|
|
208
|
+
_initializerDefineProperty(this, "domain", _descriptor78, this);
|
|
209
|
+
_initializerDefineProperty(this, "invoice", _descriptor79, this);
|
|
210
|
+
_initializerDefineProperty(this, "productionFiles", _descriptor80, this);
|
|
211
|
+
_initializerDefineProperty(this, "clientFiles", _descriptor81, this);
|
|
212
|
+
_initializerDefineProperty(this, "shipment", _descriptor82, this);
|
|
213
|
+
_initializerDefineProperty(this, "matchingInventories", _descriptor83, this);
|
|
214
|
+
_initializerDefineProperty(this, "variationsGroups", _descriptor84, this);
|
|
215
|
+
_initializerDefineProperty(this, "variations", _descriptor85, this);
|
|
216
|
+
_initializerDefineProperty(this, "notifications", _descriptor86, this);
|
|
217
|
+
_initializerDefineProperty(this, "assignments", _descriptor87, this);
|
|
218
|
+
_initializerDefineProperty(this, "supplyAssignment", _descriptor88, this);
|
|
219
|
+
_initializerDefineProperty(this, "supplyJob", _descriptor89, this);
|
|
220
|
+
_initializerDefineProperty(this, "hasValidVolume", _descriptor90, this);
|
|
221
|
+
_initializerDefineProperty(this, "hasValidWeight", _descriptor91, this);
|
|
222
|
+
this.getQuote = () => {
|
|
223
|
+
const resource = '/specialised-order-estimate/';
|
|
224
|
+
const data = this.toFormData({
|
|
244
225
|
excludeOld: false
|
|
245
226
|
});
|
|
246
|
-
|
|
227
|
+
const fetchOptions = {
|
|
247
228
|
method: 'POST',
|
|
248
229
|
body: data
|
|
249
230
|
};
|
|
250
231
|
fetchOptions.query = [];
|
|
251
232
|
fetchOptions.query.push(['skip_rights', 'y']);
|
|
252
233
|
// insert product id to query for debug purposes
|
|
253
|
-
fetchOptions.query.push(['product_id',
|
|
254
|
-
return
|
|
255
|
-
|
|
234
|
+
fetchOptions.query.push(['product_id', this.product.id ? this.product.id.toString() : 'null']);
|
|
235
|
+
return this.merchi.authenticatedFetch(resource, fetchOptions).then(data => {
|
|
236
|
+
this.fromJson(data, {
|
|
256
237
|
makeDirty: true
|
|
257
238
|
});
|
|
258
|
-
return
|
|
239
|
+
return this;
|
|
259
240
|
});
|
|
260
241
|
};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
});
|
|
266
|
-
var embed = {
|
|
242
|
+
this.deduct = matchingInventories => {
|
|
243
|
+
const resource = `/jobs/${this.id}/deduct/`;
|
|
244
|
+
const inventoriesNeedToBeDeducted = matchingInventories.map(matchingInventory => matchingInventory.inventory.id);
|
|
245
|
+
const embed = {
|
|
267
246
|
matchingInventories: {
|
|
268
247
|
inventory: {},
|
|
269
248
|
group: {}
|
|
270
249
|
}
|
|
271
250
|
};
|
|
272
|
-
|
|
251
|
+
const data = new FormData();
|
|
273
252
|
data.append('inventories', JSON.stringify(inventoriesNeedToBeDeducted));
|
|
274
|
-
|
|
253
|
+
const fetchOptions = {
|
|
275
254
|
method: 'POST',
|
|
276
255
|
body: data,
|
|
277
256
|
query: [['embed', JSON.stringify(embed)]]
|
|
278
257
|
};
|
|
279
|
-
return
|
|
280
|
-
|
|
281
|
-
return
|
|
258
|
+
return this.merchi.authenticatedFetch(resource, fetchOptions).then(data => {
|
|
259
|
+
this.fromJson(data);
|
|
260
|
+
return this;
|
|
282
261
|
});
|
|
283
262
|
};
|
|
284
|
-
|
|
285
|
-
if (
|
|
286
|
-
|
|
263
|
+
this.bulkDeduct = () => {
|
|
264
|
+
if (this.matchingInventories === undefined) {
|
|
265
|
+
const err = 'matchingInventories is undefined, did you forget to embed' + ' it?';
|
|
287
266
|
throw new Error(err);
|
|
288
267
|
}
|
|
289
|
-
return
|
|
268
|
+
return this.deduct(this.matchingInventories);
|
|
290
269
|
};
|
|
291
|
-
return _this;
|
|
292
270
|
}
|
|
293
|
-
|
|
294
|
-
}(_entity.Entity), _class2.resourceName = 'jobs', _class2.singularName = 'job', _class2.pluralName = 'jobs', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
271
|
+
}, _class2.resourceName = 'jobs', _class2.singularName = 'job', _class2.pluralName = 'jobs', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
295
272
|
configurable: true,
|
|
296
273
|
enumerable: true,
|
|
297
274
|
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.JobComment = void 0;
|
|
|
8
7
|
var _entity = require("../entity");
|
|
9
8
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _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 JobComment = exports.JobComment = (_dec = JobComment.property({
|
|
26
13
|
type: Date
|
|
27
14
|
}), _dec2 = JobComment.property(), _dec3 = JobComment.property({
|
|
28
15
|
type: Date
|
|
@@ -32,32 +19,24 @@ var JobComment = exports.JobComment = (_dec = JobComment.property({
|
|
|
32
19
|
arrayType: 'User'
|
|
33
20
|
}), _dec11 = JobComment.property({
|
|
34
21
|
arrayType: 'Notification'
|
|
35
|
-
}), _dec12 = JobComment.property(), _dec13 = JobComment.property(), (_class = (_class2 =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
_initializerDefineProperty(
|
|
45
|
-
_initializerDefineProperty(
|
|
46
|
-
_initializerDefineProperty(
|
|
47
|
-
_initializerDefineProperty(
|
|
48
|
-
_initializerDefineProperty(
|
|
49
|
-
_initializerDefineProperty(
|
|
50
|
-
_initializerDefineProperty(
|
|
51
|
-
_initializerDefineProperty(_this, "urgency", _descriptor8, _assertThisInitialized(_this));
|
|
52
|
-
_initializerDefineProperty(_this, "files", _descriptor9, _assertThisInitialized(_this));
|
|
53
|
-
_initializerDefineProperty(_this, "forwards", _descriptor10, _assertThisInitialized(_this));
|
|
54
|
-
_initializerDefineProperty(_this, "notifications", _descriptor11, _assertThisInitialized(_this));
|
|
55
|
-
_initializerDefineProperty(_this, "job", _descriptor12, _assertThisInitialized(_this));
|
|
56
|
-
_initializerDefineProperty(_this, "user", _descriptor13, _assertThisInitialized(_this));
|
|
57
|
-
return _this;
|
|
22
|
+
}), _dec12 = JobComment.property(), _dec13 = JobComment.property(), (_class = (_class2 = class JobComment extends _entity.Entity {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
_initializerDefineProperty(this, "archived", _descriptor, this);
|
|
26
|
+
_initializerDefineProperty(this, "id", _descriptor2, this);
|
|
27
|
+
_initializerDefineProperty(this, "date", _descriptor3, this);
|
|
28
|
+
_initializerDefineProperty(this, "text", _descriptor4, this);
|
|
29
|
+
_initializerDefineProperty(this, "sendSms", _descriptor5, this);
|
|
30
|
+
_initializerDefineProperty(this, "sendEmail", _descriptor6, this);
|
|
31
|
+
_initializerDefineProperty(this, "openToClient", _descriptor7, this);
|
|
32
|
+
_initializerDefineProperty(this, "urgency", _descriptor8, this);
|
|
33
|
+
_initializerDefineProperty(this, "files", _descriptor9, this);
|
|
34
|
+
_initializerDefineProperty(this, "forwards", _descriptor10, this);
|
|
35
|
+
_initializerDefineProperty(this, "notifications", _descriptor11, this);
|
|
36
|
+
_initializerDefineProperty(this, "job", _descriptor12, this);
|
|
37
|
+
_initializerDefineProperty(this, "user", _descriptor13, this);
|
|
58
38
|
}
|
|
59
|
-
|
|
60
|
-
}(_entity.Entity), _class2.resourceName = 'job_comments', _class2.singularName = 'jobComment', _class2.pluralName = 'jobComments', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
39
|
+
}, _class2.resourceName = 'job_comments', _class2.singularName = 'jobComment', _class2.pluralName = 'jobComments', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
61
40
|
configurable: true,
|
|
62
41
|
enumerable: true,
|
|
63
42
|
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 _inventory = require("./inventory");
|
|
10
9
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _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 MatchingInventory = exports.MatchingInventory = (_dec = MatchingInventory.property({
|
|
27
14
|
type: Date
|
|
28
15
|
}), _dec2 = MatchingInventory.property({
|
|
29
16
|
type: Date
|
|
@@ -31,25 +18,17 @@ var MatchingInventory = exports.MatchingInventory = (_dec = MatchingInventory.pr
|
|
|
31
18
|
type: 'VariationsGroup'
|
|
32
19
|
}), _dec5 = MatchingInventory.property({
|
|
33
20
|
type: _inventory.Inventory
|
|
34
|
-
}), _dec6 = MatchingInventory.property(), (_class = (_class2 =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
_initializerDefineProperty(_this, "archived", _descriptor, _assertThisInitialized(_this));
|
|
44
|
-
_initializerDefineProperty(_this, "deductionDate", _descriptor2, _assertThisInitialized(_this));
|
|
45
|
-
_initializerDefineProperty(_this, "job", _descriptor3, _assertThisInitialized(_this));
|
|
46
|
-
_initializerDefineProperty(_this, "group", _descriptor4, _assertThisInitialized(_this));
|
|
47
|
-
_initializerDefineProperty(_this, "inventory", _descriptor5, _assertThisInitialized(_this));
|
|
48
|
-
_initializerDefineProperty(_this, "status", _descriptor6, _assertThisInitialized(_this));
|
|
49
|
-
return _this;
|
|
21
|
+
}), _dec6 = MatchingInventory.property(), (_class = (_class2 = class MatchingInventory extends _entity.Entity {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
_initializerDefineProperty(this, "archived", _descriptor, this);
|
|
25
|
+
_initializerDefineProperty(this, "deductionDate", _descriptor2, this);
|
|
26
|
+
_initializerDefineProperty(this, "job", _descriptor3, this);
|
|
27
|
+
_initializerDefineProperty(this, "group", _descriptor4, this);
|
|
28
|
+
_initializerDefineProperty(this, "inventory", _descriptor5, this);
|
|
29
|
+
_initializerDefineProperty(this, "status", _descriptor6, this);
|
|
50
30
|
}
|
|
51
|
-
|
|
52
|
-
}(_entity.Entity), _class2.resourceName = 'matching_inventories', _class2.singularName = 'matchingInventory', _class2.pluralName = 'matchingInventories', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
31
|
+
}, _class2.resourceName = 'matching_inventories', _class2.singularName = 'matchingInventory', _class2.pluralName = 'matchingInventories', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
53
32
|
configurable: true,
|
|
54
33
|
enumerable: true,
|
|
55
34
|
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,44 +7,24 @@ exports.Menu = 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
|
-
|
|
12
|
+
let Menu = exports.Menu = (_dec = Menu.property({
|
|
26
13
|
type: Date
|
|
27
14
|
}), _dec2 = Menu.property(), _dec3 = Menu.property(), _dec4 = Menu.property(), _dec5 = Menu.property(), _dec6 = Menu.property(), _dec7 = Menu.property({
|
|
28
15
|
arrayType: 'MenuItem'
|
|
29
|
-
}), (_class = (_class2 =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
_initializerDefineProperty(
|
|
39
|
-
_initializerDefineProperty(_this, "id", _descriptor2, _assertThisInitialized(_this));
|
|
40
|
-
_initializerDefineProperty(_this, "name", _descriptor3, _assertThisInitialized(_this));
|
|
41
|
-
_initializerDefineProperty(_this, "menuHandle", _descriptor4, _assertThisInitialized(_this));
|
|
42
|
-
_initializerDefineProperty(_this, "menuType", _descriptor5, _assertThisInitialized(_this));
|
|
43
|
-
_initializerDefineProperty(_this, "theme", _descriptor6, _assertThisInitialized(_this));
|
|
44
|
-
_initializerDefineProperty(_this, "menuItems", _descriptor7, _assertThisInitialized(_this));
|
|
45
|
-
return _this;
|
|
16
|
+
}), (_class = (_class2 = class Menu extends _entity.Entity {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
_initializerDefineProperty(this, "archived", _descriptor, this);
|
|
20
|
+
_initializerDefineProperty(this, "id", _descriptor2, this);
|
|
21
|
+
_initializerDefineProperty(this, "name", _descriptor3, this);
|
|
22
|
+
_initializerDefineProperty(this, "menuHandle", _descriptor4, this);
|
|
23
|
+
_initializerDefineProperty(this, "menuType", _descriptor5, this);
|
|
24
|
+
_initializerDefineProperty(this, "theme", _descriptor6, this);
|
|
25
|
+
_initializerDefineProperty(this, "menuItems", _descriptor7, this);
|
|
46
26
|
}
|
|
47
|
-
|
|
48
|
-
}(_entity.Entity), _class2.resourceName = 'menus', _class2.singularName = 'menu', _class2.pluralName = 'menus', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
27
|
+
}, _class2.resourceName = 'menus', _class2.singularName = 'menu', _class2.pluralName = 'menus', _class2), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
49
28
|
configurable: true,
|
|
50
29
|
enumerable: true,
|
|
51
30
|
writable: true,
|