merchi_sdk_ts 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/auto_assign_production_on_actions.js +5 -2
- package/dist/constants/call_to_actions.js +5 -2
- package/dist/constants/call_to_actions.test.js +4 -2
- package/dist/constants/discount_types.js +5 -2
- package/dist/constants/discount_types.test.js +4 -2
- package/dist/constants/domain_types.js +5 -2
- package/dist/constants/domain_types.test.js +4 -2
- package/dist/constants/errors.js +7 -3
- package/dist/constants/event_types.js +5 -2
- package/dist/constants/event_types.test.js +4 -2
- package/dist/constants/field_types.js +5 -2
- package/dist/constants/field_types.test.js +4 -2
- package/dist/constants/input_types.js +5 -2
- package/dist/constants/input_types.test.js +4 -2
- package/dist/constants/inventory_status.test.js +4 -2
- package/dist/constants/inventory_statuses.js +5 -2
- package/dist/constants/invoice_types.js +5 -2
- package/dist/constants/invoice_types.test.js +4 -2
- package/dist/constants/item_types.js +5 -2
- package/dist/constants/item_types.test.js +4 -2
- package/dist/constants/job/drafting_status.js +5 -2
- package/dist/constants/job/drafting_status.test.js +4 -2
- package/dist/constants/job/payment_status.js +5 -2
- package/dist/constants/job/payment_status.test.js +4 -2
- package/dist/constants/job/production_status.js +5 -2
- package/dist/constants/job/production_status.test.js +4 -2
- package/dist/constants/job/shipment_status.js +5 -2
- package/dist/constants/job/shipment_status.test.js +4 -2
- package/dist/constants/job/supply_chain_request_status.js +5 -2
- package/dist/constants/job/supply_chain_request_status.test.js +4 -2
- package/dist/constants/job_priorities.js +5 -2
- package/dist/constants/job_priorities.test.js +4 -2
- package/dist/constants/job_status.js +13 -10
- package/dist/constants/job_status.test.js +4 -2
- package/dist/constants/job_types.js +5 -2
- package/dist/constants/job_types.test.js +4 -2
- package/dist/constants/notification_sections.js +5 -2
- package/dist/constants/notification_sections.test.js +4 -2
- package/dist/constants/notification_types.js +5 -2
- package/dist/constants/notification_types.test.js +4 -2
- package/dist/constants/notification_urgencies.js +5 -2
- package/dist/constants/notification_urgencies.test.js +4 -2
- package/dist/constants/payment_types.js +5 -2
- package/dist/constants/payment_types.test.js +4 -2
- package/dist/constants/platform.js +8 -5
- package/dist/constants/platform.test.js +8 -6
- package/dist/constants/product_types.js +5 -2
- package/dist/constants/product_types.test.js +4 -2
- package/dist/constants/rights.js +5 -2
- package/dist/constants/rights.test.js +4 -2
- package/dist/constants/robots_meta_directives.js +4 -1
- package/dist/constants/robots_meta_directives.test.js +4 -2
- package/dist/constants/roles.js +12 -9
- package/dist/constants/roles.test.js +4 -2
- package/dist/constants/shipment_companies.js +5 -2
- package/dist/constants/shipment_companies.test.js +4 -2
- package/dist/constants/shipment_services.js +5 -2
- package/dist/constants/shipment_services.test.js +4 -2
- package/dist/constants/system_roles.js +5 -2
- package/dist/constants/system_roles.test.js +4 -2
- package/dist/constants/theme_foundations.js +5 -2
- package/dist/constants/theme_foundations.test.js +4 -2
- package/dist/constants/theme_status.js +5 -2
- package/dist/constants/theme_status.test.js +4 -2
- package/dist/constants/user_types.js +5 -2
- package/dist/constants/user_types.test.js +4 -2
- package/dist/constants/white_label_accessibilities.js +5 -2
- package/dist/constants/white_label_accessibilities.test.js +4 -2
- package/dist/cookie.js +5 -1
- package/dist/cookie.test.js +4 -2
- package/dist/entities/address.js +6 -3
- package/dist/entities/address.test.js +4 -2
- package/dist/entities/assignment.js +14 -11
- package/dist/entities/assignment.test.js +10 -8
- package/dist/entities/automatic_payment_relationship.js +11 -8
- package/dist/entities/automatic_payment_relationship.test.js +4 -2
- package/dist/entities/backup.js +8 -5
- package/dist/entities/backup.test.js +4 -2
- package/dist/entities/bank.js +8 -5
- package/dist/entities/bank.test.js +4 -2
- package/dist/entities/cart.js +12 -9
- package/dist/entities/cart.test.js +11 -9
- package/dist/entities/cart_item.js +12 -9
- package/dist/entities/cart_item.test.js +9 -7
- package/dist/entities/cart_shipment_group.js +8 -5
- package/dist/entities/cart_shipment_quote.js +10 -7
- package/dist/entities/category.js +8 -5
- package/dist/entities/category.test.js +8 -6
- package/dist/entities/company.js +12 -9
- package/dist/entities/company.test.js +4 -2
- package/dist/entities/company_invitation.js +10 -7
- package/dist/entities/company_invitation.test.js +4 -2
- package/dist/entities/component.js +8 -5
- package/dist/entities/component.test.js +5 -3
- package/dist/entities/component_tag.js +8 -5
- package/dist/entities/component_tag.test.js +4 -2
- package/dist/entities/component_version.js +8 -5
- package/dist/entities/component_version.test.js +4 -2
- package/dist/entities/country_tax.js +8 -5
- package/dist/entities/country_tax.test.js +5 -3
- package/dist/entities/discount.js +8 -5
- package/dist/entities/discount.test.js +5 -3
- package/dist/entities/discount_group.js +6 -3
- package/dist/entities/discount_group.test.js +4 -2
- package/dist/entities/domain.js +15 -32
- package/dist/entities/domain.test.js +16 -14
- package/dist/entities/domain_invitation.js +10 -7
- package/dist/entities/domain_invitation.test.js +4 -2
- package/dist/entities/domain_tag.js +8 -5
- package/dist/entities/domain_tag.test.js +4 -2
- package/dist/entities/draft.js +11 -8
- package/dist/entities/draft.test.js +7 -5
- package/dist/entities/draft_comment.js +12 -9
- package/dist/entities/draft_comment.test.js +4 -2
- package/dist/entities/draft_template.js +13 -10
- package/dist/entities/draft_template.test.js +4 -2
- package/dist/entities/email_address.js +6 -3
- package/dist/entities/email_address.test.js +4 -2
- package/dist/entities/email_counter.js +6 -3
- package/dist/entities/email_counter.test.js +4 -2
- package/dist/entities/enrolled_domain.js +15 -12
- package/dist/entities/enrolled_domain.test.js +4 -2
- package/dist/entities/exchange_rate.js +6 -3
- package/dist/entities/exchange_rate.test.js +4 -2
- package/dist/entities/file.js +8 -5
- package/dist/entities/file.test.js +10 -8
- package/dist/entities/internal_tag.js +6 -3
- package/dist/entities/internal_tag.test.js +4 -2
- package/dist/entities/inventory.js +10 -7
- package/dist/entities/inventory.test.js +5 -3
- package/dist/entities/inventory_unit_variation.js +10 -7
- package/dist/entities/inventory_unit_variation.test.js +4 -2
- package/dist/entities/invoice.js +28 -25
- package/dist/entities/invoice.test.js +10 -8
- package/dist/entities/item.js +10 -7
- package/dist/entities/item.test.js +5 -3
- package/dist/entities/job.js +36 -33
- package/dist/entities/job.test.js +18 -16
- package/dist/entities/job_comment.js +10 -7
- package/dist/entities/job_comment.test.js +4 -2
- package/dist/entities/matching_inventory.js +11 -8
- package/dist/entities/menu.js +8 -5
- package/dist/entities/menu.test.js +4 -2
- package/dist/entities/menu_item.js +8 -5
- package/dist/entities/menu_item.test.js +4 -2
- package/dist/entities/notification.js +30 -27
- package/dist/entities/notification.test.js +4 -2
- package/dist/entities/page.js +8 -5
- package/dist/entities/page.test.js +4 -2
- package/dist/entities/payment.js +13 -10
- package/dist/entities/payment.test.js +8 -6
- package/dist/entities/payment_device.js +8 -5
- package/dist/entities/payment_device.test.js +4 -2
- package/dist/entities/phone_number.js +6 -3
- package/dist/entities/phone_number.test.js +4 -2
- package/dist/entities/product.js +45 -18
- package/dist/entities/product.test.js +78 -76
- package/dist/entities/production_comment.js +10 -7
- package/dist/entities/production_comment.test.js +4 -2
- package/dist/entities/quote.js +15 -12
- package/dist/entities/quote.test.js +8 -6
- package/dist/entities/quote_item.js +11 -8
- package/dist/entities/quote_item.test.js +5 -3
- package/dist/entities/seo_domain_page.js +10 -7
- package/dist/entities/seo_domain_page.test.js +4 -2
- package/dist/entities/session.js +10 -7
- package/dist/entities/session.test.js +4 -2
- package/dist/entities/shipment.js +25 -22
- package/dist/entities/shipment.test.js +6 -4
- package/dist/entities/shipment_item.js +9 -6
- package/dist/entities/shipment_item.test.js +4 -2
- package/dist/entities/shipment_item_fulfillment.js +10 -7
- package/dist/entities/shipment_item_fulfillment.test.js +4 -2
- package/dist/entities/shipment_method.js +14 -11
- package/dist/entities/shipment_method.test.js +4 -2
- package/dist/entities/shipment_method_variation.js +8 -5
- package/dist/entities/shipment_method_variation.test.js +4 -2
- package/dist/entities/short_url.js +8 -5
- package/dist/entities/short_url.test.js +4 -2
- package/dist/entities/subscription_plan.js +11 -8
- package/dist/entities/subscription_plan.test.js +4 -2
- package/dist/entities/supply_domain.js +11 -8
- package/dist/entities/supply_domain.test.js +4 -2
- package/dist/entities/system_role.js +8 -5
- package/dist/entities/system_role.test.js +4 -2
- package/dist/entities/theme.js +12 -9
- package/dist/entities/theme.test.js +6 -4
- package/dist/entities/theme_css_setting.js +8 -5
- package/dist/entities/theme_css_setting.test.js +4 -2
- package/dist/entities/user.js +18 -15
- package/dist/entities/user.test.js +41 -39
- package/dist/entities/user_company.js +10 -7
- package/dist/entities/user_company.test.js +4 -2
- package/dist/entities/variation.js +14 -11
- package/dist/entities/variation.test.js +4 -2
- package/dist/entities/variation_field.js +16 -13
- package/dist/entities/variation_field.test.js +8 -6
- package/dist/entities/variation_fields_option.js +10 -7
- package/dist/entities/variation_fields_option.test.js +6 -4
- package/dist/entities/variation_option.js +8 -5
- package/dist/entities/variation_option.test.js +4 -2
- package/dist/entities/variations_group.js +12 -9
- package/dist/entities/variations_group.test.js +4 -2
- package/dist/entity.js +9 -6
- package/dist/index.js +149 -77
- package/dist/merchi.js +150 -147
- package/dist/merchi.test.js +9 -7
- package/dist/request.js +23 -20
- package/dist/request.test.js +16 -14
- package/dist/test_util.js +7 -2
- package/dist/toasts.js +5 -1
- package/dist/toasts.test.js +15 -13
- package/dist/util/float.js +5 -1
- package/dist/util/query_string.js +5 -1
- package/dist/util/query_string.test.js +5 -3
- package/dist/util/validation.js +5 -1
- package/dist/util/validation.test.js +8 -6
- package/dist/uuid.js +5 -1
- package/dist/uuid.test.js +4 -2
- package/package.json +1 -1
- package/src/entities/automatic_payment_relationship.ts +3 -0
- package/dist/constants/index.js +0 -26
- package/dist/util/index.js +0 -3
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutoAssignProductionOnAction = void 0;
|
|
4
|
+
var AutoAssignProductionOnAction;
|
|
2
5
|
(function (AutoAssignProductionOnAction) {
|
|
3
6
|
AutoAssignProductionOnAction[AutoAssignProductionOnAction["NOT_REQUIRED"] = 0] = "NOT_REQUIRED";
|
|
4
7
|
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_CREATION"] = 1] = "ON_JOB_CREATION";
|
|
5
8
|
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_INVOICE_PAID"] = 2] = "ON_JOB_INVOICE_PAID";
|
|
6
9
|
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_DRAFT_APPROVED"] = 3] = "ON_JOB_DRAFT_APPROVED";
|
|
7
|
-
})(AutoAssignProductionOnAction || (AutoAssignProductionOnAction = {}));
|
|
10
|
+
})(AutoAssignProductionOnAction = exports.AutoAssignProductionOnAction || (exports.AutoAssignProductionOnAction = {}));
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallToActions = void 0;
|
|
4
|
+
var CallToActions;
|
|
2
5
|
(function (CallToActions) {
|
|
3
6
|
CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN"] = 0] = "COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN";
|
|
4
7
|
CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE"] = 1] = "COMPLETE_COMPANY_PROFILE";
|
|
@@ -12,4 +15,4 @@ export var CallToActions;
|
|
|
12
15
|
CallToActions[CallToActions["YOUR_COMPANIES_NEED_STRIPE_TO_COLLECT_PAYMENT"] = 9] = "YOUR_COMPANIES_NEED_STRIPE_TO_COLLECT_PAYMENT";
|
|
13
16
|
CallToActions[CallToActions["SUPPLIER_PRODUCT_READY_FOR_SALE"] = 10] = "SUPPLIER_PRODUCT_READY_FOR_SALE";
|
|
14
17
|
CallToActions[CallToActions["SET_PASSWORD"] = 11] = "SET_PASSWORD";
|
|
15
|
-
})(CallToActions || (CallToActions = {}));
|
|
18
|
+
})(CallToActions = exports.CallToActions || (exports.CallToActions = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var call_to_actions_1 = require("./call_to_actions");
|
|
2
4
|
test('seller type exists', function () {
|
|
3
|
-
expect(CallToActions.COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN).toBe(0);
|
|
5
|
+
expect(call_to_actions_1.CallToActions.COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscountType = void 0;
|
|
4
|
+
var DiscountType;
|
|
2
5
|
(function (DiscountType) {
|
|
3
6
|
DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
|
|
4
|
-
})(DiscountType || (DiscountType = {}));
|
|
7
|
+
})(DiscountType = exports.DiscountType || (exports.DiscountType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var discount_types_1 = require("./discount_types");
|
|
2
4
|
test('discount type volumetric exists', function () {
|
|
3
|
-
expect(DiscountType.VOLUMETRIC).toBe(0);
|
|
5
|
+
expect(discount_types_1.DiscountType.VOLUMETRIC).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DomainType = void 0;
|
|
4
|
+
var DomainType;
|
|
2
5
|
(function (DomainType) {
|
|
3
6
|
DomainType[DomainType["UNRESTRICTED"] = 0] = "UNRESTRICTED";
|
|
4
7
|
DomainType[DomainType["SELLER"] = 1] = "SELLER";
|
|
@@ -10,4 +13,4 @@ export var DomainType;
|
|
|
10
13
|
DomainType[DomainType["DOMAIN_SHOPIFY_SELLER"] = 7] = "DOMAIN_SHOPIFY_SELLER";
|
|
11
14
|
DomainType[DomainType["UNRESTRICTED_SHOPIFY_APP"] = 8] = "UNRESTRICTED_SHOPIFY_APP";
|
|
12
15
|
DomainType[DomainType["RESERVED"] = 9] = "RESERVED";
|
|
13
|
-
})(DomainType || (DomainType = {}));
|
|
16
|
+
})(DomainType = exports.DomainType || (exports.DomainType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var domain_types_1 = require("./domain_types");
|
|
2
4
|
test('seller type exists', function () {
|
|
3
|
-
expect(DomainType.SELLER).toBe(1);
|
|
5
|
+
expect(domain_types_1.DomainType.SELLER).toBe(1);
|
|
4
6
|
});
|
package/dist/constants/errors.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getErrorFromCode = exports.ErrorType = void 0;
|
|
4
|
+
var ErrorType;
|
|
2
5
|
(function (ErrorType) {
|
|
3
6
|
ErrorType[ErrorType["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
|
|
4
7
|
ErrorType[ErrorType["SERVER_ERROR"] = 1] = "SERVER_ERROR";
|
|
@@ -23,10 +26,11 @@ export var ErrorType;
|
|
|
23
26
|
ErrorType[ErrorType["DUPLICATE_SUBSCRIPTION_TOKEN"] = 20] = "DUPLICATE_SUBSCRIPTION_TOKEN";
|
|
24
27
|
ErrorType[ErrorType["BAD_SMS_TOKEN"] = 21] = "BAD_SMS_TOKEN";
|
|
25
28
|
ErrorType[ErrorType["DOMAIN_NOT_FOUND"] = 22] = "DOMAIN_NOT_FOUND";
|
|
26
|
-
})(ErrorType || (ErrorType = {}));
|
|
27
|
-
|
|
29
|
+
})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
|
|
30
|
+
function getErrorFromCode(code) {
|
|
28
31
|
if (code in ErrorType) {
|
|
29
32
|
return code;
|
|
30
33
|
}
|
|
31
34
|
return ErrorType.UNKNOWN_ERROR;
|
|
32
35
|
}
|
|
36
|
+
exports.getErrorFromCode = getErrorFromCode;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventType = void 0;
|
|
4
|
+
var EventType;
|
|
2
5
|
(function (EventType) {
|
|
3
6
|
EventType[EventType["POST"] = 0] = "POST";
|
|
4
7
|
EventType[EventType["PATCH"] = 1] = "PATCH";
|
|
5
8
|
EventType[EventType["DELETE"] = 1] = "DELETE";
|
|
6
|
-
})(EventType || (EventType = {}));
|
|
9
|
+
})(EventType = exports.EventType || (exports.EventType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var event_types_1 = require("./event_types");
|
|
2
4
|
test('post event type exists', function () {
|
|
3
|
-
expect(EventType.POST).toBe(0);
|
|
5
|
+
expect(event_types_1.EventType.POST).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldType = void 0;
|
|
4
|
+
var FieldType;
|
|
2
5
|
(function (FieldType) {
|
|
3
6
|
FieldType[FieldType["TEXT_INPUT"] = 1] = "TEXT_INPUT";
|
|
4
7
|
FieldType[FieldType["SELECT"] = 2] = "SELECT";
|
|
@@ -11,4 +14,4 @@ export var FieldType;
|
|
|
11
14
|
FieldType[FieldType["IMAGE_SELECT"] = 9] = "IMAGE_SELECT";
|
|
12
15
|
FieldType[FieldType["COLOUR_PICKER"] = 10] = "COLOUR_PICKER";
|
|
13
16
|
FieldType[FieldType["COLOUR_SELECT"] = 11] = "COLOUR_SELECT";
|
|
14
|
-
})(FieldType || (FieldType = {}));
|
|
17
|
+
})(FieldType = exports.FieldType || (exports.FieldType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var field_types_1 = require("./field_types");
|
|
2
4
|
test('text input type exists', function () {
|
|
3
|
-
expect(FieldType.TEXT_INPUT).toBe(1);
|
|
5
|
+
expect(field_types_1.FieldType.TEXT_INPUT).toBe(1);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InputType = void 0;
|
|
4
|
+
var InputType;
|
|
2
5
|
(function (InputType) {
|
|
3
6
|
InputType[InputType["TEXT"] = 1] = "TEXT";
|
|
4
7
|
InputType[InputType["SELECT"] = 2] = "SELECT";
|
|
@@ -11,4 +14,4 @@ export var InputType;
|
|
|
11
14
|
InputType[InputType["IMAGE_SELECT"] = 9] = "IMAGE_SELECT";
|
|
12
15
|
InputType[InputType["COLUR_PICKER"] = 10] = "COLUR_PICKER";
|
|
13
16
|
InputType[InputType["COLOUR_SELECT"] = 11] = "COLOUR_SELECT";
|
|
14
|
-
})(InputType || (InputType = {}));
|
|
17
|
+
})(InputType = exports.InputType || (exports.InputType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var input_types_1 = require("./input_types");
|
|
2
4
|
test('text type exists', function () {
|
|
3
|
-
expect(InputType.TEXT).toBe(1);
|
|
5
|
+
expect(input_types_1.InputType.TEXT).toBe(1);
|
|
4
6
|
});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var inventory_statuses_1 = require("./inventory_statuses");
|
|
2
4
|
test('inventory deducted', function () {
|
|
3
|
-
expect(InventoryStatus.DEDUCTED).toBe(0);
|
|
5
|
+
expect(inventory_statuses_1.InventoryStatus.DEDUCTED).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InventoryStatus = void 0;
|
|
4
|
+
var InventoryStatus;
|
|
2
5
|
(function (InventoryStatus) {
|
|
3
6
|
InventoryStatus[InventoryStatus["DEDUCTED"] = 0] = "DEDUCTED";
|
|
4
7
|
InventoryStatus[InventoryStatus["CAN_DEDUCT"] = 1] = "CAN_DEDUCT";
|
|
5
8
|
InventoryStatus[InventoryStatus["NOT_SUFFICIENT"] = 2] = "NOT_SUFFICIENT";
|
|
6
9
|
InventoryStatus[InventoryStatus["NO_MATCHING_INVENTORY"] = 3] = "NO_MATCHING_INVENTORY";
|
|
7
|
-
})(InventoryStatus || (InventoryStatus = {}));
|
|
10
|
+
})(InventoryStatus = exports.InventoryStatus || (exports.InventoryStatus = {}));
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InoviceType = void 0;
|
|
4
|
+
var InoviceType;
|
|
2
5
|
(function (InoviceType) {
|
|
3
6
|
InoviceType[InoviceType["ORDER"] = 0] = "ORDER";
|
|
4
7
|
InoviceType[InoviceType["SUBSCRIPTION_BILL"] = 1] = "SUBSCRIPTION_BILL";
|
|
5
8
|
InoviceType[InoviceType["AUTO_SUPPLY_BILL"] = 2] = "AUTO_SUPPLY_BILL";
|
|
6
|
-
})(InoviceType || (InoviceType = {}));
|
|
9
|
+
})(InoviceType = exports.InoviceType || (exports.InoviceType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var invoice_types_1 = require("./invoice_types");
|
|
2
4
|
test('invoice type exists', function () {
|
|
3
|
-
expect(InoviceType.ORDER).toBe(0);
|
|
5
|
+
expect(invoice_types_1.InoviceType.ORDER).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemType = void 0;
|
|
4
|
+
var ItemType;
|
|
2
5
|
(function (ItemType) {
|
|
3
6
|
ItemType[ItemType["CUSTOM"] = 0] = "CUSTOM";
|
|
4
7
|
ItemType[ItemType["SHIPPING"] = 1] = "SHIPPING";
|
|
5
8
|
ItemType[ItemType["TAX"] = 2] = "TAX";
|
|
6
|
-
})(ItemType || (ItemType = {}));
|
|
9
|
+
})(ItemType = exports.ItemType || (exports.ItemType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var item_types_1 = require("./item_types");
|
|
2
4
|
test('custom type exists', function () {
|
|
3
|
-
expect(ItemType.CUSTOM).toBe(0);
|
|
5
|
+
expect(item_types_1.ItemType.CUSTOM).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DraftingStatus = void 0;
|
|
4
|
+
var DraftingStatus;
|
|
2
5
|
(function (DraftingStatus) {
|
|
3
6
|
DraftingStatus[DraftingStatus["INIT"] = 0] = "INIT";
|
|
4
7
|
DraftingStatus[DraftingStatus["WAIT_DRAFTING"] = 1] = "WAIT_DRAFTING";
|
|
5
8
|
DraftingStatus[DraftingStatus["CHANGES_REQUESTED"] = 2] = "CHANGES_REQUESTED";
|
|
6
9
|
DraftingStatus[DraftingStatus["DRAFTING_UPLOADED"] = 3] = "DRAFTING_UPLOADED";
|
|
7
10
|
DraftingStatus[DraftingStatus["DRAFTINGA_APPROVED"] = 4] = "DRAFTINGA_APPROVED";
|
|
8
|
-
})(DraftingStatus || (DraftingStatus = {}));
|
|
11
|
+
})(DraftingStatus = exports.DraftingStatus || (exports.DraftingStatus = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var drafting_status_1 = require("./drafting_status");
|
|
2
4
|
test('init status exists', function () {
|
|
3
|
-
expect(DraftingStatus.INIT).toBe(0);
|
|
5
|
+
expect(drafting_status_1.DraftingStatus.INIT).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentStatus = void 0;
|
|
4
|
+
var PaymentStatus;
|
|
2
5
|
(function (PaymentStatus) {
|
|
3
6
|
PaymentStatus[PaymentStatus["INIT"] = 0] = "INIT";
|
|
4
7
|
PaymentStatus[PaymentStatus["ISSUED"] = 1] = "ISSUED";
|
|
5
8
|
PaymentStatus[PaymentStatus["OVERDUE"] = 2] = "OVERDUE";
|
|
6
9
|
PaymentStatus[PaymentStatus["PARTIAL_PAID"] = 3] = "PARTIAL_PAID";
|
|
7
10
|
PaymentStatus[PaymentStatus["FULLY_PAID"] = 4] = "FULLY_PAID";
|
|
8
|
-
})(PaymentStatus || (PaymentStatus = {}));
|
|
11
|
+
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var payment_status_1 = require("./payment_status");
|
|
2
4
|
test('init status exists', function () {
|
|
3
|
-
expect(PaymentStatus.INIT).toBe(0);
|
|
5
|
+
expect(payment_status_1.PaymentStatus.INIT).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductionStatus = void 0;
|
|
4
|
+
var ProductionStatus;
|
|
2
5
|
(function (ProductionStatus) {
|
|
3
6
|
ProductionStatus[ProductionStatus["INIT"] = 0] = "INIT";
|
|
4
7
|
ProductionStatus[ProductionStatus["REJECTED"] = 1] = "REJECTED";
|
|
@@ -10,4 +13,4 @@ export var ProductionStatus;
|
|
|
10
13
|
ProductionStatus[ProductionStatus["FINISHED"] = 8] = "FINISHED";
|
|
11
14
|
ProductionStatus[ProductionStatus["SHIPPED"] = 9] = "SHIPPED";
|
|
12
15
|
ProductionStatus[ProductionStatus["COMPLETED"] = 10] = "COMPLETED";
|
|
13
|
-
})(ProductionStatus || (ProductionStatus = {}));
|
|
16
|
+
})(ProductionStatus = exports.ProductionStatus || (exports.ProductionStatus = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var production_status_1 = require("./production_status");
|
|
2
4
|
test('init status exists', function () {
|
|
3
|
-
expect(ProductionStatus.INIT).toBe(0);
|
|
5
|
+
expect(production_status_1.ProductionStatus.INIT).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShipmentStatus = void 0;
|
|
4
|
+
var ShipmentStatus;
|
|
2
5
|
(function (ShipmentStatus) {
|
|
3
6
|
ShipmentStatus[ShipmentStatus["NOT_ASSIGNED"] = 0] = "NOT_ASSIGNED";
|
|
4
7
|
ShipmentStatus[ShipmentStatus["ASSIGNED"] = 1] = "ASSIGNED";
|
|
@@ -9,4 +12,4 @@ export var ShipmentStatus;
|
|
|
9
12
|
ShipmentStatus[ShipmentStatus["EXPECTED_RECEIVE_DATE_WARNING"] = 6] = "EXPECTED_RECEIVE_DATE_WARNING";
|
|
10
13
|
ShipmentStatus[ShipmentStatus["EXPECTED_RECEIVE_DATE_PAST"] = 7] = "EXPECTED_RECEIVE_DATE_PAST";
|
|
11
14
|
ShipmentStatus[ShipmentStatus["RECEIVED"] = 8] = "RECEIVED";
|
|
12
|
-
})(ShipmentStatus || (ShipmentStatus = {}));
|
|
15
|
+
})(ShipmentStatus = exports.ShipmentStatus || (exports.ShipmentStatus = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var shipment_status_1 = require("./shipment_status");
|
|
2
4
|
test('not assigned status exists', function () {
|
|
3
|
-
expect(ShipmentStatus.NOT_ASSIGNED).toBe(0);
|
|
5
|
+
expect(shipment_status_1.ShipmentStatus.NOT_ASSIGNED).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SupplyChainRequestStatus = void 0;
|
|
4
|
+
var SupplyChainRequestStatus;
|
|
2
5
|
(function (SupplyChainRequestStatus) {
|
|
3
6
|
SupplyChainRequestStatus[SupplyChainRequestStatus["NO_REQUEST"] = 0] = "NO_REQUEST";
|
|
4
7
|
SupplyChainRequestStatus[SupplyChainRequestStatus["REQUESTED"] = 1] = "REQUESTED";
|
|
5
8
|
SupplyChainRequestStatus[SupplyChainRequestStatus["DECLINED"] = 2] = "DECLINED";
|
|
6
9
|
SupplyChainRequestStatus[SupplyChainRequestStatus["ACCEPTED"] = 3] = "ACCEPTED";
|
|
7
|
-
})(SupplyChainRequestStatus || (SupplyChainRequestStatus = {}));
|
|
10
|
+
})(SupplyChainRequestStatus = exports.SupplyChainRequestStatus || (exports.SupplyChainRequestStatus = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var supply_chain_request_status_1 = require("./supply_chain_request_status");
|
|
2
4
|
test('not supply chain status exists', function () {
|
|
3
|
-
expect(SupplyChainRequestStatus.NO_REQUEST).toBe(0);
|
|
5
|
+
expect(supply_chain_request_status_1.SupplyChainRequestStatus.NO_REQUEST).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JobPriority = void 0;
|
|
4
|
+
var JobPriority;
|
|
2
5
|
(function (JobPriority) {
|
|
3
6
|
JobPriority[JobPriority["URGENT"] = 1] = "URGENT";
|
|
4
7
|
JobPriority[JobPriority["HIGH"] = 2] = "HIGH";
|
|
5
8
|
JobPriority[JobPriority["MEDIUM"] = 3] = "MEDIUM";
|
|
6
9
|
JobPriority[JobPriority["LOW"] = 4] = "LOW";
|
|
7
|
-
})(JobPriority || (JobPriority = {}));
|
|
10
|
+
})(JobPriority = exports.JobPriority || (exports.JobPriority = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var job_priorities_1 = require("./job_priorities");
|
|
2
4
|
test('urgent priority exists', function () {
|
|
3
|
-
expect(JobPriority.URGENT).toBe(1);
|
|
5
|
+
expect(job_priorities_1.JobPriority.URGENT).toBe(1);
|
|
4
6
|
});
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SupplyChainRequestStatus = exports.ShipmentStatus = exports.ProductionStatus = exports.PaymentStatus = exports.DraftingStatus = void 0;
|
|
4
|
+
var DraftingStatus;
|
|
2
5
|
(function (DraftingStatus) {
|
|
3
6
|
DraftingStatus[DraftingStatus["INIT"] = 0] = "INIT";
|
|
4
7
|
DraftingStatus[DraftingStatus["WAIT_DRAFTING"] = 1] = "WAIT_DRAFTING";
|
|
5
8
|
DraftingStatus[DraftingStatus["CHANGES_REQUESTED"] = 2] = "CHANGES_REQUESTED";
|
|
6
9
|
DraftingStatus[DraftingStatus["DRAFTING_UPLOADED"] = 3] = "DRAFTING_UPLOADED";
|
|
7
10
|
DraftingStatus[DraftingStatus["DRAFTING_APPROVED"] = 4] = "DRAFTING_APPROVED";
|
|
8
|
-
})(DraftingStatus || (DraftingStatus = {}));
|
|
9
|
-
|
|
11
|
+
})(DraftingStatus = exports.DraftingStatus || (exports.DraftingStatus = {}));
|
|
12
|
+
var PaymentStatus;
|
|
10
13
|
(function (PaymentStatus) {
|
|
11
14
|
PaymentStatus[PaymentStatus["INIT"] = 0] = "INIT";
|
|
12
15
|
PaymentStatus[PaymentStatus["ISSUED"] = 1] = "ISSUED";
|
|
13
16
|
PaymentStatus[PaymentStatus["OVERDUE"] = 2] = "OVERDUE";
|
|
14
17
|
PaymentStatus[PaymentStatus["PARTIAL_PAID"] = 3] = "PARTIAL_PAID";
|
|
15
18
|
PaymentStatus[PaymentStatus["FULLY_PAID"] = 4] = "FULLY_PAID";
|
|
16
|
-
})(PaymentStatus || (PaymentStatus = {}));
|
|
17
|
-
|
|
19
|
+
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
20
|
+
var ProductionStatus;
|
|
18
21
|
(function (ProductionStatus) {
|
|
19
22
|
ProductionStatus[ProductionStatus["INIT"] = 0] = "INIT";
|
|
20
23
|
ProductionStatus[ProductionStatus["REJECTED"] = 1] = "REJECTED";
|
|
@@ -27,8 +30,8 @@ export var ProductionStatus;
|
|
|
27
30
|
ProductionStatus[ProductionStatus["FINISHED"] = 8] = "FINISHED";
|
|
28
31
|
ProductionStatus[ProductionStatus["SHIPPED"] = 9] = "SHIPPED";
|
|
29
32
|
ProductionStatus[ProductionStatus["COMPLETED"] = 10] = "COMPLETED";
|
|
30
|
-
})(ProductionStatus || (ProductionStatus = {}));
|
|
31
|
-
|
|
33
|
+
})(ProductionStatus = exports.ProductionStatus || (exports.ProductionStatus = {}));
|
|
34
|
+
var ShipmentStatus;
|
|
32
35
|
(function (ShipmentStatus) {
|
|
33
36
|
ShipmentStatus[ShipmentStatus["NOT_ASSIGNED"] = 0] = "NOT_ASSIGNED";
|
|
34
37
|
ShipmentStatus[ShipmentStatus["ASSIGNED"] = 1] = "ASSIGNED";
|
|
@@ -40,11 +43,11 @@ export var ShipmentStatus;
|
|
|
40
43
|
ShipmentStatus[ShipmentStatus["EXPECTED_RECEIVE_DATE_PAST"] = 7] = "EXPECTED_RECEIVE_DATE_PAST";
|
|
41
44
|
ShipmentStatus[ShipmentStatus["RECEIVED"] = 8] = "RECEIVED";
|
|
42
45
|
ShipmentStatus[ShipmentStatus["PICKED_UP"] = 9] = "PICKED_UP";
|
|
43
|
-
})(ShipmentStatus || (ShipmentStatus = {}));
|
|
44
|
-
|
|
46
|
+
})(ShipmentStatus = exports.ShipmentStatus || (exports.ShipmentStatus = {}));
|
|
47
|
+
var SupplyChainRequestStatus;
|
|
45
48
|
(function (SupplyChainRequestStatus) {
|
|
46
49
|
SupplyChainRequestStatus[SupplyChainRequestStatus["NO_REQUEST"] = 0] = "NO_REQUEST";
|
|
47
50
|
SupplyChainRequestStatus[SupplyChainRequestStatus["REQUESTED"] = 1] = "REQUESTED";
|
|
48
51
|
SupplyChainRequestStatus[SupplyChainRequestStatus["DECLINED"] = 2] = "DECLINED";
|
|
49
52
|
SupplyChainRequestStatus[SupplyChainRequestStatus["ACCEPTED"] = 3] = "ACCEPTED";
|
|
50
|
-
})(SupplyChainRequestStatus || (SupplyChainRequestStatus = {}));
|
|
53
|
+
})(SupplyChainRequestStatus = exports.SupplyChainRequestStatus || (exports.SupplyChainRequestStatus = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var job_status_1 = require("./job_status");
|
|
2
4
|
test('init drafting status exists', function () {
|
|
3
|
-
expect(DraftingStatus.INIT).toBe(0);
|
|
5
|
+
expect(job_status_1.DraftingStatus.INIT).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JobType = void 0;
|
|
4
|
+
var JobType;
|
|
2
5
|
(function (JobType) {
|
|
3
6
|
JobType[JobType["PRODUCT_CREATION_MOD"] = 0] = "PRODUCT_CREATION_MOD";
|
|
4
7
|
JobType[JobType["PRODUCT_CREATION"] = 1] = "PRODUCT_CREATION";
|
|
@@ -13,4 +16,4 @@ export var JobType;
|
|
|
13
16
|
JobType[JobType["SUPPLIER_FULFILLMENT_INVENTORY"] = 10] = "SUPPLIER_FULFILLMENT_INVENTORY";
|
|
14
17
|
JobType[JobType["SUPPLIER_FULFILLMENT_INVENTORY_GROUP_BUY"] = 11] = "SUPPLIER_FULFILLMENT_INVENTORY_GROUP_BUY";
|
|
15
18
|
JobType[JobType["SUPPLY_CHAIN_CREATION"] = 12] = "SUPPLY_CHAIN_CREATION"; // USED TO ID JOBS WHICH ARE TO CREATE A NEW SUPPLY CHAIN
|
|
16
|
-
})(JobType || (JobType = {}));
|
|
19
|
+
})(JobType = exports.JobType || (exports.JobType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var job_types_1 = require("./job_types");
|
|
2
4
|
test('product types exists', function () {
|
|
3
|
-
expect(JobType.PRODUCT_CREATION_MOD).toBe(0);
|
|
5
|
+
expect(job_types_1.JobType.PRODUCT_CREATION_MOD).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationSection = void 0;
|
|
4
|
+
var NotificationSection;
|
|
2
5
|
(function (NotificationSection) {
|
|
3
6
|
NotificationSection[NotificationSection["SYSTEM"] = 0] = "SYSTEM";
|
|
4
7
|
NotificationSection[NotificationSection["USER"] = 1] = "USER";
|
|
@@ -11,4 +14,4 @@ export var NotificationSection;
|
|
|
11
14
|
NotificationSection[NotificationSection["JOB_NOTIFICATIONS"] = 8] = "JOB_NOTIFICATIONS";
|
|
12
15
|
NotificationSection[NotificationSection["REMINDER"] = 9] = "REMINDER";
|
|
13
16
|
NotificationSection[NotificationSection["WEB_FORM"] = 10] = "WEB_FORM";
|
|
14
|
-
})(NotificationSection || (NotificationSection = {}));
|
|
17
|
+
})(NotificationSection = exports.NotificationSection || (exports.NotificationSection = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var notification_sections_1 = require("./notification_sections");
|
|
2
4
|
test('system section exists', function () {
|
|
3
|
-
expect(NotificationSection.SYSTEM).toBe(0);
|
|
5
|
+
expect(notification_sections_1.NotificationSection.SYSTEM).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
2
5
|
(function (NotificationType) {
|
|
3
6
|
NotificationType[NotificationType["NO_TYPE"] = 0] = "NO_TYPE";
|
|
4
7
|
NotificationType[NotificationType["DRAFT_SENT"] = 1] = "DRAFT_SENT";
|
|
@@ -95,4 +98,4 @@ export var NotificationType;
|
|
|
95
98
|
NotificationType[NotificationType["PRODUCT_RESELL_READY_FOR_SALE"] = 92] = "PRODUCT_RESELL_READY_FOR_SALE";
|
|
96
99
|
NotificationType[NotificationType["PRODUCT_RESELL_CREATED"] = 93] = "PRODUCT_RESELL_CREATED";
|
|
97
100
|
NotificationType[NotificationType["PRODUCT_SUPPLY_CHAIN_UPDATED"] = 94] = "PRODUCT_SUPPLY_CHAIN_UPDATED";
|
|
98
|
-
})(NotificationType || (NotificationType = {}));
|
|
101
|
+
})(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var notification_types_1 = require("./notification_types");
|
|
2
4
|
test('no_type notification type exists', function () {
|
|
3
|
-
expect(NotificationType.NO_TYPE).toBe(0);
|
|
5
|
+
expect(notification_types_1.NotificationType.NO_TYPE).toBe(0);
|
|
4
6
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationUrgency = void 0;
|
|
4
|
+
var NotificationUrgency;
|
|
2
5
|
(function (NotificationUrgency) {
|
|
3
6
|
NotificationUrgency[NotificationUrgency["LOW"] = 0] = "LOW";
|
|
4
7
|
NotificationUrgency[NotificationUrgency["MEDIUM"] = 1] = "MEDIUM";
|
|
5
8
|
NotificationUrgency[NotificationUrgency["HIGH"] = 2] = "HIGH";
|
|
6
9
|
NotificationUrgency[NotificationUrgency["URGENT"] = 3] = "URGENT";
|
|
7
|
-
})(NotificationUrgency || (NotificationUrgency = {}));
|
|
10
|
+
})(NotificationUrgency = exports.NotificationUrgency || (exports.NotificationUrgency = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var notification_urgencies_1 = require("./notification_urgencies");
|
|
2
4
|
test('urgent notification urgency exists', function () {
|
|
3
|
-
expect(NotificationUrgency.URGENT).toBe(3);
|
|
5
|
+
expect(notification_urgencies_1.NotificationUrgency.URGENT).toBe(3);
|
|
4
6
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentType = void 0;
|
|
4
|
+
var PaymentType;
|
|
2
5
|
(function (PaymentType) {
|
|
3
6
|
PaymentType[PaymentType["ONLINE_PAYMENT"] = 1] = "ONLINE_PAYMENT";
|
|
4
7
|
PaymentType[PaymentType["PAYPAL_PAYMENT"] = 2] = "PAYPAL_PAYMENT";
|
|
@@ -8,4 +11,4 @@ export var PaymentType;
|
|
|
8
11
|
PaymentType[PaymentType["PHONE_PAYMENT"] = 6] = "PHONE_PAYMENT";
|
|
9
12
|
PaymentType[PaymentType["CREDIT_CARD"] = 7] = "CREDIT_CARD";
|
|
10
13
|
PaymentType[PaymentType["UTRUST_PAYMENT"] = 8] = "UTRUST_PAYMENT";
|
|
11
|
-
})(PaymentType || (PaymentType = {}));
|
|
14
|
+
})(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var payment_types_1 = require("./payment_types");
|
|
2
4
|
test('urgent notification urgency exists', function () {
|
|
3
|
-
expect(PaymentType.ONLINE_PAYMENT).toBe(1);
|
|
5
|
+
expect(payment_types_1.PaymentType.ONLINE_PAYMENT).toBe(1);
|
|
4
6
|
});
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.platformSellerDomainPlus = exports.platformSellerDomain = exports.platformDomain = exports.platformCopyright = exports.platformName = void 0;
|
|
4
|
+
exports.platformName = 'Merchi';
|
|
5
|
+
exports.platformCopyright = 2021;
|
|
6
|
+
exports.platformDomain = 'merchi.co';
|
|
7
|
+
exports.platformSellerDomain = 'merchi.co';
|
|
8
|
+
exports.platformSellerDomainPlus = 'merchi.co';
|