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