merchi_sdk_ts 1.0.2-q → 1.0.2
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/entities/user.js +1 -2
- package/dist/entities/user.test.js +1 -1
- package/package.json +2 -7
- package/esm/dist/constants/auto_assign_production_on_actions.js +0 -22
- package/esm/dist/constants/call_to_actions.js +0 -30
- package/esm/dist/constants/call_to_actions.test.js +0 -18
- package/esm/dist/constants/discount_types.js +0 -19
- package/esm/dist/constants/discount_types.test.js +0 -18
- package/esm/dist/constants/domain_types.js +0 -28
- package/esm/dist/constants/domain_types.test.js +0 -18
- package/esm/dist/constants/errors.js +0 -48
- package/esm/dist/constants/event_types.js +0 -21
- package/esm/dist/constants/event_types.test.js +0 -18
- package/esm/dist/constants/field_types.js +0 -29
- package/esm/dist/constants/field_types.test.js +0 -18
- package/esm/dist/constants/input_types.js +0 -29
- package/esm/dist/constants/input_types.test.js +0 -18
- package/esm/dist/constants/inventory_status.test.js +0 -18
- package/esm/dist/constants/inventory_statuses.js +0 -22
- package/esm/dist/constants/invoice_types.js +0 -21
- package/esm/dist/constants/invoice_types.test.js +0 -18
- package/esm/dist/constants/item_types.js +0 -21
- package/esm/dist/constants/item_types.test.js +0 -18
- package/esm/dist/constants/job/drafting_status.js +0 -23
- package/esm/dist/constants/job/drafting_status.test.js +0 -18
- package/esm/dist/constants/job/payment_status.js +0 -23
- package/esm/dist/constants/job/payment_status.test.js +0 -18
- package/esm/dist/constants/job/production_status.js +0 -28
- package/esm/dist/constants/job/production_status.test.js +0 -18
- package/esm/dist/constants/job/shipment_status.js +0 -27
- package/esm/dist/constants/job/shipment_status.test.js +0 -18
- package/esm/dist/constants/job/supply_chain_request_status.js +0 -22
- package/esm/dist/constants/job/supply_chain_request_status.test.js +0 -18
- package/esm/dist/constants/job_priorities.js +0 -22
- package/esm/dist/constants/job_priorities.test.js +0 -18
- package/esm/dist/constants/job_status.js +0 -65
- package/esm/dist/constants/job_status.test.js +0 -18
- package/esm/dist/constants/job_types.js +0 -31
- package/esm/dist/constants/job_types.test.js +0 -18
- package/esm/dist/constants/notification_sections.js +0 -29
- package/esm/dist/constants/notification_sections.test.js +0 -18
- package/esm/dist/constants/notification_types.js +0 -113
- package/esm/dist/constants/notification_types.test.js +0 -18
- package/esm/dist/constants/notification_urgencies.js +0 -22
- package/esm/dist/constants/notification_urgencies.test.js +0 -18
- package/esm/dist/constants/payment_types.js +0 -26
- package/esm/dist/constants/payment_types.test.js +0 -18
- package/esm/dist/constants/platform.js +0 -20
- package/esm/dist/constants/platform.test.js +0 -22
- package/esm/dist/constants/product_types.js +0 -41
- package/esm/dist/constants/product_types.test.js +0 -18
- package/esm/dist/constants/rights.js +0 -21
- package/esm/dist/constants/rights.test.js +0 -18
- package/esm/dist/constants/robots_meta_directives.js +0 -26
- package/esm/dist/constants/robots_meta_directives.test.js +0 -18
- package/esm/dist/constants/roles.js +0 -82
- package/esm/dist/constants/roles.test.js +0 -18
- package/esm/dist/constants/shipment_companies.js +0 -34
- package/esm/dist/constants/shipment_companies.test.js +0 -18
- package/esm/dist/constants/shipment_services.js +0 -19
- package/esm/dist/constants/shipment_services.test.js +0 -18
- package/esm/dist/constants/system_roles.js +0 -19
- package/esm/dist/constants/system_roles.test.js +0 -18
- package/esm/dist/constants/theme_foundations.js +0 -22
- package/esm/dist/constants/theme_foundations.test.js +0 -18
- package/esm/dist/constants/theme_status.js +0 -21
- package/esm/dist/constants/theme_status.test.js +0 -18
- package/esm/dist/constants/user_types.js +0 -33
- package/esm/dist/constants/user_types.test.js +0 -18
- package/esm/dist/constants/white_label_accessibilities.js +0 -21
- package/esm/dist/constants/white_label_accessibilities.test.js +0 -18
- package/esm/dist/cookie.js +0 -31
- package/esm/dist/cookie.test.js +0 -24
- package/esm/dist/entities/address.js +0 -126
- package/esm/dist/entities/address.test.js +0 -20
- package/esm/dist/entities/assignment.js +0 -149
- package/esm/dist/entities/assignment.test.js +0 -44
- package/esm/dist/entities/automatic_payment_relationship.js +0 -83
- package/esm/dist/entities/automatic_payment_relationship.test.js +0 -20
- package/esm/dist/entities/backup.js +0 -67
- package/esm/dist/entities/backup.test.js +0 -20
- package/esm/dist/entities/bank.js +0 -107
- package/esm/dist/entities/bank.test.js +0 -20
- package/esm/dist/entities/cart.js +0 -188
- package/esm/dist/entities/cart.test.js +0 -59
- package/esm/dist/entities/cart_item.js +0 -139
- package/esm/dist/entities/cart_item.test.js +0 -42
- package/esm/dist/entities/cart_shipment_group.js +0 -75
- package/esm/dist/entities/cart_shipment_quote.js +0 -92
- package/esm/dist/entities/category.js +0 -95
- package/esm/dist/entities/category.test.js +0 -66
- package/esm/dist/entities/company.js +0 -393
- package/esm/dist/entities/company.test.js +0 -20
- package/esm/dist/entities/company_invitation.js +0 -92
- package/esm/dist/entities/company_invitation.test.js +0 -20
- package/esm/dist/entities/component.js +0 -163
- package/esm/dist/entities/component.test.js +0 -26
- package/esm/dist/entities/component_tag.js +0 -71
- package/esm/dist/entities/component_tag.test.js +0 -20
- package/esm/dist/entities/component_version.js +0 -87
- package/esm/dist/entities/component_version.test.js +0 -20
- package/esm/dist/entities/country_tax.js +0 -102
- package/esm/dist/entities/country_tax.test.js +0 -25
- package/esm/dist/entities/discount.js +0 -90
- package/esm/dist/entities/discount.test.js +0 -30
- package/esm/dist/entities/discount_group.js +0 -82
- package/esm/dist/entities/discount_group.test.js +0 -20
- package/esm/dist/entities/domain.js +0 -348
- package/esm/dist/entities/domain.test.js +0 -82
- package/esm/dist/entities/domain_invitation.js +0 -96
- package/esm/dist/entities/domain_invitation.test.js +0 -20
- package/esm/dist/entities/domain_tag.js +0 -99
- package/esm/dist/entities/domain_tag.test.js +0 -20
- package/esm/dist/entities/draft.js +0 -182
- package/esm/dist/entities/draft.test.js +0 -53
- package/esm/dist/entities/draft_comment.js +0 -117
- package/esm/dist/entities/draft_comment.test.js +0 -20
- package/esm/dist/entities/draft_template.js +0 -101
- package/esm/dist/entities/draft_template.test.js +0 -20
- package/esm/dist/entities/email_address.js +0 -78
- package/esm/dist/entities/email_address.test.js +0 -20
- package/esm/dist/entities/email_counter.js +0 -75
- package/esm/dist/entities/email_counter.test.js +0 -20
- package/esm/dist/entities/enrolled_domain.js +0 -96
- package/esm/dist/entities/enrolled_domain.test.js +0 -20
- package/esm/dist/entities/exchange_rate.js +0 -78
- package/esm/dist/entities/exchange_rate.test.js +0 -20
- package/esm/dist/entities/file.js +0 -248
- package/esm/dist/entities/file.test.js +0 -52
- package/esm/dist/entities/internal_tag.js +0 -106
- package/esm/dist/entities/internal_tag.test.js +0 -20
- package/esm/dist/entities/inventory.js +0 -111
- package/esm/dist/entities/inventory.test.js +0 -36
- package/esm/dist/entities/inventory_unit_variation.js +0 -83
- package/esm/dist/entities/inventory_unit_variation.test.js +0 -20
- package/esm/dist/entities/invoice.js +0 -274
- package/esm/dist/entities/invoice.test.js +0 -53
- package/esm/dist/entities/item.js +0 -103
- package/esm/dist/entities/item.test.js +0 -31
- package/esm/dist/entities/job.js +0 -477
- package/esm/dist/entities/job.test.js +0 -97
- package/esm/dist/entities/job_comment.js +0 -112
- package/esm/dist/entities/job_comment.test.js +0 -20
- package/esm/dist/entities/matching_inventory.js +0 -85
- package/esm/dist/entities/menu.js +0 -87
- package/esm/dist/entities/menu.test.js +0 -20
- package/esm/dist/entities/menu_item.js +0 -87
- package/esm/dist/entities/menu_item.test.js +0 -20
- package/esm/dist/entities/notification.js +0 -177
- package/esm/dist/entities/notification.test.js +0 -20
- package/esm/dist/entities/page.js +0 -91
- package/esm/dist/entities/page.test.js +0 -20
- package/esm/dist/entities/payment.js +0 -128
- package/esm/dist/entities/payment.test.js +0 -30
- package/esm/dist/entities/payment_device.js +0 -87
- package/esm/dist/entities/payment_device.test.js +0 -20
- package/esm/dist/entities/phone_number.js +0 -94
- package/esm/dist/entities/phone_number.test.js +0 -20
- package/esm/dist/entities/product.js +0 -604
- package/esm/dist/entities/product.test.js +0 -712
- package/esm/dist/entities/production_comment.js +0 -112
- package/esm/dist/entities/production_comment.test.js +0 -20
- package/esm/dist/entities/quote.js +0 -190
- package/esm/dist/entities/quote.test.js +0 -100
- package/esm/dist/entities/quote_item.js +0 -121
- package/esm/dist/entities/quote_item.test.js +0 -54
- package/esm/dist/entities/seo_domain_page.js +0 -92
- package/esm/dist/entities/seo_domain_page.test.js +0 -20
- package/esm/dist/entities/session.js +0 -85
- package/esm/dist/entities/session.test.js +0 -20
- package/esm/dist/entities/shipment.js +0 -266
- package/esm/dist/entities/shipment.test.js +0 -34
- package/esm/dist/entities/shipment_item.js +0 -67
- package/esm/dist/entities/shipment_item.test.js +0 -20
- package/esm/dist/entities/shipment_item_fulfillment.js +0 -68
- package/esm/dist/entities/shipment_item_fulfillment.test.js +0 -20
- package/esm/dist/entities/shipment_method.js +0 -126
- package/esm/dist/entities/shipment_method.test.js +0 -20
- package/esm/dist/entities/shipment_method_variation.js +0 -99
- package/esm/dist/entities/shipment_method_variation.test.js +0 -20
- package/esm/dist/entities/short_url.js +0 -95
- package/esm/dist/entities/short_url.test.js +0 -20
- package/esm/dist/entities/subscription_plan.js +0 -144
- package/esm/dist/entities/subscription_plan.test.js +0 -20
- package/esm/dist/entities/supply_domain.js +0 -84
- package/esm/dist/entities/supply_domain.test.js +0 -20
- package/esm/dist/entities/system_role.js +0 -71
- package/esm/dist/entities/system_role.test.js +0 -20
- package/esm/dist/entities/theme.js +0 -388
- package/esm/dist/entities/theme.test.js +0 -49
- package/esm/dist/entities/theme_css_setting.js +0 -79
- package/esm/dist/entities/theme_css_setting.test.js +0 -20
- package/esm/dist/entities/user.js +0 -503
- package/esm/dist/entities/user.test.js +0 -148
- package/esm/dist/entities/user_company.js +0 -84
- package/esm/dist/entities/user_company.test.js +0 -20
- package/esm/dist/entities/variation.js +0 -126
- package/esm/dist/entities/variation.test.js +0 -20
- package/esm/dist/entities/variation_field.js +0 -281
- package/esm/dist/entities/variation_field.test.js +0 -83
- package/esm/dist/entities/variation_fields_option.js +0 -159
- package/esm/dist/entities/variation_fields_option.test.js +0 -57
- package/esm/dist/entities/variation_option.js +0 -118
- package/esm/dist/entities/variation_option.test.js +0 -20
- package/esm/dist/entities/variations_group.js +0 -101
- package/esm/dist/entities/variations_group.test.js +0 -20
- package/esm/dist/entity.js +0 -945
- package/esm/dist/index.js +0 -160
- package/esm/dist/merchi.js +0 -264
- package/esm/dist/merchi.test.js +0 -35
- package/esm/dist/request.js +0 -179
- package/esm/dist/request.test.js +0 -51
- package/esm/dist/test_util.js +0 -34
- package/esm/dist/toasts.js +0 -30
- package/esm/dist/toasts.test.js +0 -42
- package/esm/dist/util/float.js +0 -59
- package/esm/dist/util/query_string.js +0 -27
- package/esm/dist/util/query_string.test.js +0 -20
- package/esm/dist/util/validation.js +0 -19
- package/esm/dist/util/validation.test.js +0 -26
- package/esm/dist/uuid.js +0 -24
- package/esm/dist/uuid.test.js +0 -25
- package/esm/jest.config.js +0 -17
- package/esm/src/constants/auto_assign_production_on_actions.js +0 -7
- package/esm/src/constants/call_to_actions.js +0 -15
- package/esm/src/constants/call_to_actions.test.js +0 -4
- package/esm/src/constants/discount_types.js +0 -4
- package/esm/src/constants/discount_types.test.js +0 -4
- package/esm/src/constants/domain_types.js +0 -13
- package/esm/src/constants/domain_types.test.js +0 -4
- package/esm/src/constants/errors.js +0 -32
- package/esm/src/constants/event_types.js +0 -6
- package/esm/src/constants/event_types.test.js +0 -4
- package/esm/src/constants/field_types.js +0 -14
- package/esm/src/constants/field_types.test.js +0 -4
- package/esm/src/constants/input_types.js +0 -14
- package/esm/src/constants/input_types.test.js +0 -4
- package/esm/src/constants/inventory_status.test.js +0 -4
- package/esm/src/constants/inventory_statuses.js +0 -7
- package/esm/src/constants/invoice_types.js +0 -6
- package/esm/src/constants/invoice_types.test.js +0 -4
- package/esm/src/constants/item_types.js +0 -6
- package/esm/src/constants/item_types.test.js +0 -4
- package/esm/src/constants/job/drafting_status.js +0 -8
- package/esm/src/constants/job/drafting_status.test.js +0 -4
- package/esm/src/constants/job/payment_status.js +0 -8
- package/esm/src/constants/job/payment_status.test.js +0 -4
- package/esm/src/constants/job/production_status.js +0 -13
- package/esm/src/constants/job/production_status.test.js +0 -4
- package/esm/src/constants/job/shipment_status.js +0 -12
- package/esm/src/constants/job/shipment_status.test.js +0 -4
- package/esm/src/constants/job/supply_chain_request_status.js +0 -7
- package/esm/src/constants/job/supply_chain_request_status.test.js +0 -4
- package/esm/src/constants/job_priorities.js +0 -7
- package/esm/src/constants/job_priorities.test.js +0 -4
- package/esm/src/constants/job_status.js +0 -50
- package/esm/src/constants/job_status.test.js +0 -4
- package/esm/src/constants/job_types.js +0 -16
- package/esm/src/constants/job_types.test.js +0 -4
- package/esm/src/constants/notification_sections.js +0 -14
- package/esm/src/constants/notification_sections.test.js +0 -4
- package/esm/src/constants/notification_types.js +0 -98
- package/esm/src/constants/notification_types.test.js +0 -4
- package/esm/src/constants/notification_urgencies.js +0 -7
- package/esm/src/constants/notification_urgencies.test.js +0 -4
- package/esm/src/constants/payment_types.js +0 -11
- package/esm/src/constants/payment_types.test.js +0 -4
- package/esm/src/constants/platform.js +0 -5
- package/esm/src/constants/platform.test.js +0 -8
- package/esm/src/constants/product_types.js +0 -26
- package/esm/src/constants/product_types.test.js +0 -4
- package/esm/src/constants/rights.js +0 -6
- package/esm/src/constants/rights.test.js +0 -4
- package/esm/src/constants/robots_meta_directives.js +0 -11
- package/esm/src/constants/robots_meta_directives.test.js +0 -4
- package/esm/src/constants/roles.js +0 -57
- package/esm/src/constants/roles.test.js +0 -4
- package/esm/src/constants/shipment_companies.js +0 -19
- package/esm/src/constants/shipment_companies.test.js +0 -4
- package/esm/src/constants/shipment_services.js +0 -4
- package/esm/src/constants/shipment_services.test.js +0 -4
- package/esm/src/constants/system_roles.js +0 -4
- package/esm/src/constants/system_roles.test.js +0 -4
- package/esm/src/constants/theme_foundations.js +0 -7
- package/esm/src/constants/theme_foundations.test.js +0 -4
- package/esm/src/constants/theme_status.js +0 -6
- package/esm/src/constants/theme_status.test.js +0 -4
- package/esm/src/constants/user_types.js +0 -18
- package/esm/src/constants/user_types.test.js +0 -4
- package/esm/src/constants/white_label_accessibilities.js +0 -6
- package/esm/src/constants/white_label_accessibilities.test.js +0 -4
- package/esm/src/cookie.js +0 -15
- package/esm/src/cookie.test.js +0 -10
- package/esm/src/entities/address.js +0 -104
- package/esm/src/entities/address.test.js +0 -6
- package/esm/src/entities/assignment.js +0 -127
- package/esm/src/entities/assignment.test.js +0 -30
- package/esm/src/entities/automatic_payment_relationship.js +0 -61
- package/esm/src/entities/automatic_payment_relationship.test.js +0 -6
- package/esm/src/entities/backup.js +0 -45
- package/esm/src/entities/backup.test.js +0 -6
- package/esm/src/entities/bank.js +0 -85
- package/esm/src/entities/bank.test.js +0 -6
- package/esm/src/entities/cart.js +0 -157
- package/esm/src/entities/cart.test.js +0 -45
- package/esm/src/entities/cart_item.js +0 -117
- package/esm/src/entities/cart_item.test.js +0 -28
- package/esm/src/entities/cart_shipment_group.js +0 -53
- package/esm/src/entities/cart_shipment_quote.js +0 -70
- package/esm/src/entities/category.js +0 -73
- package/esm/src/entities/category.test.js +0 -52
- package/esm/src/entities/company.js +0 -371
- package/esm/src/entities/company.test.js +0 -6
- package/esm/src/entities/company_invitation.js +0 -70
- package/esm/src/entities/company_invitation.test.js +0 -6
- package/esm/src/entities/component.js +0 -141
- package/esm/src/entities/component.test.js +0 -12
- package/esm/src/entities/component_tag.js +0 -49
- package/esm/src/entities/component_tag.test.js +0 -6
- package/esm/src/entities/component_version.js +0 -65
- package/esm/src/entities/component_version.test.js +0 -6
- package/esm/src/entities/country_tax.js +0 -80
- package/esm/src/entities/country_tax.test.js +0 -11
- package/esm/src/entities/discount.js +0 -68
- package/esm/src/entities/discount.test.js +0 -16
- package/esm/src/entities/discount_group.js +0 -60
- package/esm/src/entities/discount_group.test.js +0 -6
- package/esm/src/entities/domain.js +0 -326
- package/esm/src/entities/domain.test.js +0 -68
- package/esm/src/entities/domain_invitation.js +0 -74
- package/esm/src/entities/domain_invitation.test.js +0 -6
- package/esm/src/entities/domain_tag.js +0 -77
- package/esm/src/entities/domain_tag.test.js +0 -6
- package/esm/src/entities/draft.js +0 -151
- package/esm/src/entities/draft.test.js +0 -39
- package/esm/src/entities/draft_comment.js +0 -95
- package/esm/src/entities/draft_comment.test.js +0 -6
- package/esm/src/entities/draft_template.js +0 -79
- package/esm/src/entities/draft_template.test.js +0 -6
- package/esm/src/entities/email_address.js +0 -56
- package/esm/src/entities/email_address.test.js +0 -6
- package/esm/src/entities/email_counter.js +0 -53
- package/esm/src/entities/email_counter.test.js +0 -6
- package/esm/src/entities/enrolled_domain.js +0 -74
- package/esm/src/entities/enrolled_domain.test.js +0 -6
- package/esm/src/entities/exchange_rate.js +0 -56
- package/esm/src/entities/exchange_rate.test.js +0 -6
- package/esm/src/entities/file.js +0 -226
- package/esm/src/entities/file.test.js +0 -38
- package/esm/src/entities/internal_tag.js +0 -84
- package/esm/src/entities/internal_tag.test.js +0 -6
- package/esm/src/entities/inventory.js +0 -89
- package/esm/src/entities/inventory.test.js +0 -22
- package/esm/src/entities/inventory_unit_variation.js +0 -61
- package/esm/src/entities/inventory_unit_variation.test.js +0 -6
- package/esm/src/entities/invoice.js +0 -252
- package/esm/src/entities/invoice.test.js +0 -39
- package/esm/src/entities/item.js +0 -81
- package/esm/src/entities/item.test.js +0 -17
- package/esm/src/entities/job.js +0 -455
- package/esm/src/entities/job.test.js +0 -83
- package/esm/src/entities/job_comment.js +0 -90
- package/esm/src/entities/job_comment.test.js +0 -6
- package/esm/src/entities/matching_inventory.js +0 -63
- package/esm/src/entities/menu.js +0 -65
- package/esm/src/entities/menu.test.js +0 -6
- package/esm/src/entities/menu_item.js +0 -65
- package/esm/src/entities/menu_item.test.js +0 -6
- package/esm/src/entities/notification.js +0 -155
- package/esm/src/entities/notification.test.js +0 -6
- package/esm/src/entities/page.js +0 -69
- package/esm/src/entities/page.test.js +0 -6
- package/esm/src/entities/payment.js +0 -106
- package/esm/src/entities/payment.test.js +0 -16
- package/esm/src/entities/payment_device.js +0 -65
- package/esm/src/entities/payment_device.test.js +0 -6
- package/esm/src/entities/phone_number.js +0 -72
- package/esm/src/entities/phone_number.test.js +0 -6
- package/esm/src/entities/product.js +0 -544
- package/esm/src/entities/product.test.js +0 -698
- package/esm/src/entities/production_comment.js +0 -90
- package/esm/src/entities/production_comment.test.js +0 -6
- package/esm/src/entities/quote.js +0 -168
- package/esm/src/entities/quote.test.js +0 -86
- package/esm/src/entities/quote_item.js +0 -99
- package/esm/src/entities/quote_item.test.js +0 -40
- package/esm/src/entities/seo_domain_page.js +0 -70
- package/esm/src/entities/seo_domain_page.test.js +0 -6
- package/esm/src/entities/session.js +0 -63
- package/esm/src/entities/session.test.js +0 -6
- package/esm/src/entities/shipment.js +0 -244
- package/esm/src/entities/shipment.test.js +0 -20
- package/esm/src/entities/shipment_item.js +0 -45
- package/esm/src/entities/shipment_item.test.js +0 -6
- package/esm/src/entities/shipment_item_fulfillment.js +0 -46
- package/esm/src/entities/shipment_item_fulfillment.test.js +0 -6
- package/esm/src/entities/shipment_method.js +0 -104
- package/esm/src/entities/shipment_method.test.js +0 -6
- package/esm/src/entities/shipment_method_variation.js +0 -77
- package/esm/src/entities/shipment_method_variation.test.js +0 -6
- package/esm/src/entities/short_url.js +0 -73
- package/esm/src/entities/short_url.test.js +0 -6
- package/esm/src/entities/subscription_plan.js +0 -122
- package/esm/src/entities/subscription_plan.test.js +0 -6
- package/esm/src/entities/supply_domain.js +0 -62
- package/esm/src/entities/supply_domain.test.js +0 -6
- package/esm/src/entities/system_role.js +0 -49
- package/esm/src/entities/system_role.test.js +0 -6
- package/esm/src/entities/theme.js +0 -366
- package/esm/src/entities/theme.test.js +0 -35
- package/esm/src/entities/theme_css_setting.js +0 -57
- package/esm/src/entities/theme_css_setting.test.js +0 -6
- package/esm/src/entities/user.js +0 -469
- package/esm/src/entities/user.test.js +0 -134
- package/esm/src/entities/user_company.js +0 -62
- package/esm/src/entities/user_company.test.js +0 -6
- package/esm/src/entities/variation.js +0 -104
- package/esm/src/entities/variation.test.js +0 -6
- package/esm/src/entities/variation_field.js +0 -250
- package/esm/src/entities/variation_field.test.js +0 -69
- package/esm/src/entities/variation_fields_option.js +0 -137
- package/esm/src/entities/variation_fields_option.test.js +0 -43
- package/esm/src/entities/variation_option.js +0 -96
- package/esm/src/entities/variation_option.test.js +0 -6
- package/esm/src/entities/variations_group.js +0 -79
- package/esm/src/entities/variations_group.test.js +0 -6
- package/esm/src/entity.js +0 -885
- package/esm/src/index.js +0 -73
- package/esm/src/merchi.js +0 -248
- package/esm/src/merchi.test.js +0 -21
- package/esm/src/request.js +0 -150
- package/esm/src/request.test.js +0 -37
- package/esm/src/test_util.js +0 -17
- package/esm/src/toasts.js +0 -14
- package/esm/src/toasts.test.js +0 -28
- package/esm/src/util/float.js +0 -34
- package/esm/src/util/query_string.js +0 -11
- package/esm/src/util/query_string.test.js +0 -6
- package/esm/src/util/validation.js +0 -3
- package/esm/src/util/validation.test.js +0 -12
- package/esm/src/uuid.js +0 -8
- package/esm/src/uuid.test.js +0 -11
- package/src/constants/auto_assign_production_on_actions.js +0 -7
- package/src/constants/call_to_actions.js +0 -15
- package/src/constants/call_to_actions.test.js +0 -4
- package/src/constants/discount_types.js +0 -4
- package/src/constants/discount_types.test.js +0 -4
- package/src/constants/domain_types.js +0 -13
- package/src/constants/domain_types.test.js +0 -4
- package/src/constants/errors.js +0 -32
- package/src/constants/event_types.js +0 -6
- package/src/constants/event_types.test.js +0 -4
- package/src/constants/field_types.js +0 -14
- package/src/constants/field_types.test.js +0 -4
- package/src/constants/input_types.js +0 -14
- package/src/constants/input_types.test.js +0 -4
- package/src/constants/inventory_status.test.js +0 -4
- package/src/constants/inventory_statuses.js +0 -7
- package/src/constants/invoice_types.js +0 -6
- package/src/constants/invoice_types.test.js +0 -4
- package/src/constants/item_types.js +0 -6
- package/src/constants/item_types.test.js +0 -4
- package/src/constants/job/drafting_status.js +0 -8
- package/src/constants/job/drafting_status.test.js +0 -4
- package/src/constants/job/payment_status.js +0 -8
- package/src/constants/job/payment_status.test.js +0 -4
- package/src/constants/job/production_status.js +0 -13
- package/src/constants/job/production_status.test.js +0 -4
- package/src/constants/job/shipment_status.js +0 -12
- package/src/constants/job/shipment_status.test.js +0 -4
- package/src/constants/job/supply_chain_request_status.js +0 -7
- package/src/constants/job/supply_chain_request_status.test.js +0 -4
- package/src/constants/job_priorities.js +0 -7
- package/src/constants/job_priorities.test.js +0 -4
- package/src/constants/job_status.js +0 -50
- package/src/constants/job_status.test.js +0 -4
- package/src/constants/job_types.js +0 -16
- package/src/constants/job_types.test.js +0 -4
- package/src/constants/notification_sections.js +0 -14
- package/src/constants/notification_sections.test.js +0 -4
- package/src/constants/notification_types.js +0 -98
- package/src/constants/notification_types.test.js +0 -4
- package/src/constants/notification_urgencies.js +0 -7
- package/src/constants/notification_urgencies.test.js +0 -4
- package/src/constants/payment_types.js +0 -11
- package/src/constants/payment_types.test.js +0 -4
- package/src/constants/platform.js +0 -5
- package/src/constants/platform.test.js +0 -8
- package/src/constants/product_types.js +0 -26
- package/src/constants/product_types.test.js +0 -4
- package/src/constants/rights.js +0 -6
- package/src/constants/rights.test.js +0 -4
- package/src/constants/robots_meta_directives.js +0 -11
- package/src/constants/robots_meta_directives.test.js +0 -4
- package/src/constants/roles.js +0 -57
- package/src/constants/roles.test.js +0 -4
- package/src/constants/shipment_companies.js +0 -19
- package/src/constants/shipment_companies.test.js +0 -4
- package/src/constants/shipment_services.js +0 -4
- package/src/constants/shipment_services.test.js +0 -4
- package/src/constants/system_roles.js +0 -4
- package/src/constants/system_roles.test.js +0 -4
- package/src/constants/theme_foundations.js +0 -7
- package/src/constants/theme_foundations.test.js +0 -4
- package/src/constants/theme_status.js +0 -6
- package/src/constants/theme_status.test.js +0 -4
- package/src/constants/user_types.js +0 -18
- package/src/constants/user_types.test.js +0 -4
- package/src/constants/white_label_accessibilities.js +0 -6
- package/src/constants/white_label_accessibilities.test.js +0 -4
- package/src/cookie.js +0 -15
- package/src/cookie.test.js +0 -10
- package/src/entities/address.js +0 -104
- package/src/entities/address.test.js +0 -6
- package/src/entities/assignment.js +0 -127
- package/src/entities/assignment.test.js +0 -30
- package/src/entities/automatic_payment_relationship.js +0 -61
- package/src/entities/automatic_payment_relationship.test.js +0 -6
- package/src/entities/backup.js +0 -45
- package/src/entities/backup.test.js +0 -6
- package/src/entities/bank.js +0 -85
- package/src/entities/bank.test.js +0 -6
- package/src/entities/cart.js +0 -157
- package/src/entities/cart.test.js +0 -45
- package/src/entities/cart_item.js +0 -117
- package/src/entities/cart_item.test.js +0 -28
- package/src/entities/cart_shipment_group.js +0 -53
- package/src/entities/cart_shipment_quote.js +0 -70
- package/src/entities/category.js +0 -73
- package/src/entities/category.test.js +0 -52
- package/src/entities/company.js +0 -371
- package/src/entities/company.test.js +0 -6
- package/src/entities/company_invitation.js +0 -70
- package/src/entities/company_invitation.test.js +0 -6
- package/src/entities/component.js +0 -141
- package/src/entities/component.test.js +0 -12
- package/src/entities/component_tag.js +0 -49
- package/src/entities/component_tag.test.js +0 -6
- package/src/entities/component_version.js +0 -65
- package/src/entities/component_version.test.js +0 -6
- package/src/entities/country_tax.js +0 -80
- package/src/entities/country_tax.test.js +0 -11
- package/src/entities/discount.js +0 -68
- package/src/entities/discount.test.js +0 -16
- package/src/entities/discount_group.js +0 -60
- package/src/entities/discount_group.test.js +0 -6
- package/src/entities/domain.js +0 -326
- package/src/entities/domain.test.js +0 -68
- package/src/entities/domain_invitation.js +0 -74
- package/src/entities/domain_invitation.test.js +0 -6
- package/src/entities/domain_tag.js +0 -77
- package/src/entities/domain_tag.test.js +0 -6
- package/src/entities/draft.js +0 -151
- package/src/entities/draft.test.js +0 -39
- package/src/entities/draft_comment.js +0 -95
- package/src/entities/draft_comment.test.js +0 -6
- package/src/entities/draft_template.js +0 -79
- package/src/entities/draft_template.test.js +0 -6
- package/src/entities/email_address.js +0 -56
- package/src/entities/email_address.test.js +0 -6
- package/src/entities/email_counter.js +0 -53
- package/src/entities/email_counter.test.js +0 -6
- package/src/entities/enrolled_domain.js +0 -74
- package/src/entities/enrolled_domain.test.js +0 -6
- package/src/entities/exchange_rate.js +0 -56
- package/src/entities/exchange_rate.test.js +0 -6
- package/src/entities/file.js +0 -226
- package/src/entities/file.test.js +0 -38
- package/src/entities/internal_tag.js +0 -84
- package/src/entities/internal_tag.test.js +0 -6
- package/src/entities/inventory.js +0 -89
- package/src/entities/inventory.test.js +0 -22
- package/src/entities/inventory_unit_variation.js +0 -61
- package/src/entities/inventory_unit_variation.test.js +0 -6
- package/src/entities/invoice.js +0 -252
- package/src/entities/invoice.test.js +0 -39
- package/src/entities/item.js +0 -81
- package/src/entities/item.test.js +0 -17
- package/src/entities/job.js +0 -455
- package/src/entities/job.test.js +0 -83
- package/src/entities/job_comment.js +0 -90
- package/src/entities/job_comment.test.js +0 -6
- package/src/entities/matching_inventory.js +0 -63
- package/src/entities/menu.js +0 -65
- package/src/entities/menu.test.js +0 -6
- package/src/entities/menu_item.js +0 -65
- package/src/entities/menu_item.test.js +0 -6
- package/src/entities/notification.js +0 -155
- package/src/entities/notification.test.js +0 -6
- package/src/entities/page.js +0 -69
- package/src/entities/page.test.js +0 -6
- package/src/entities/payment.js +0 -106
- package/src/entities/payment.test.js +0 -16
- package/src/entities/payment_device.js +0 -65
- package/src/entities/payment_device.test.js +0 -6
- package/src/entities/phone_number.js +0 -72
- package/src/entities/phone_number.test.js +0 -6
- package/src/entities/product.js +0 -544
- package/src/entities/product.test.js +0 -698
- package/src/entities/production_comment.js +0 -90
- package/src/entities/production_comment.test.js +0 -6
- package/src/entities/quote.js +0 -168
- package/src/entities/quote.test.js +0 -86
- package/src/entities/quote_item.js +0 -99
- package/src/entities/quote_item.test.js +0 -40
- package/src/entities/seo_domain_page.js +0 -70
- package/src/entities/seo_domain_page.test.js +0 -6
- package/src/entities/session.js +0 -63
- package/src/entities/session.test.js +0 -6
- package/src/entities/shipment.js +0 -244
- package/src/entities/shipment.test.js +0 -20
- package/src/entities/shipment_item.js +0 -45
- package/src/entities/shipment_item.test.js +0 -6
- package/src/entities/shipment_item_fulfillment.js +0 -46
- package/src/entities/shipment_item_fulfillment.test.js +0 -6
- package/src/entities/shipment_method.js +0 -104
- package/src/entities/shipment_method.test.js +0 -6
- package/src/entities/shipment_method_variation.js +0 -77
- package/src/entities/shipment_method_variation.test.js +0 -6
- package/src/entities/short_url.js +0 -73
- package/src/entities/short_url.test.js +0 -6
- package/src/entities/subscription_plan.js +0 -122
- package/src/entities/subscription_plan.test.js +0 -6
- package/src/entities/supply_domain.js +0 -62
- package/src/entities/supply_domain.test.js +0 -6
- package/src/entities/system_role.js +0 -49
- package/src/entities/system_role.test.js +0 -6
- package/src/entities/theme.js +0 -366
- package/src/entities/theme.test.js +0 -35
- package/src/entities/theme_css_setting.js +0 -57
- package/src/entities/theme_css_setting.test.js +0 -6
- package/src/entities/user.js +0 -469
- package/src/entities/user.test.js +0 -134
- package/src/entities/user_company.js +0 -62
- package/src/entities/user_company.test.js +0 -6
- package/src/entities/variation.js +0 -104
- package/src/entities/variation.test.js +0 -6
- package/src/entities/variation_field.js +0 -250
- package/src/entities/variation_field.test.js +0 -69
- package/src/entities/variation_fields_option.js +0 -137
- package/src/entities/variation_fields_option.test.js +0 -43
- package/src/entities/variation_option.js +0 -96
- package/src/entities/variation_option.test.js +0 -6
- package/src/entities/variations_group.js +0 -79
- package/src/entities/variations_group.test.js +0 -6
- package/src/entity.js +0 -885
- package/src/index.js +0 -73
- package/src/merchi.js +0 -248
- package/src/merchi.test.js +0 -21
- package/src/request.js +0 -150
- package/src/request.test.js +0 -37
- package/src/test_util.js +0 -17
- package/src/toasts.js +0 -14
- package/src/toasts.test.js +0 -28
- package/src/util/float.js +0 -34
- package/src/util/query_string.js +0 -11
- package/src/util/query_string.test.js +0 -6
- package/src/util/validation.js +0 -3
- package/src/util/validation.test.js +0 -12
- package/src/uuid.js +0 -8
- package/src/uuid.test.js +0 -11
- package/tsconfig.esm.json +0 -47
- package/tsconfig.umd.json +0 -23
package/dist/entities/user.js
CHANGED
|
@@ -67,8 +67,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
67
67
|
__extends(User, _super);
|
|
68
68
|
function User() {
|
|
69
69
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
-
|
|
71
|
-
// {resourceName: 'public_user_create'});
|
|
70
|
+
_this.publicCreate = _this.createFactory({ resourceName: 'public_user_create' });
|
|
72
71
|
_this.roleInDomain = function (domain) {
|
|
73
72
|
if (_this.enrolledDomains === undefined) {
|
|
74
73
|
var err = 'enrolledDomains is undefined, did you forget to embed it?';
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
user.name = 'Test User';
|
|
28
28
|
var data = Array.from(user.toFormData().entries());
|
|
29
29
|
var fetch = (0, test_util_1.mockFetch)(true, {}, 201);
|
|
30
|
-
|
|
30
|
+
user.publicCreate();
|
|
31
31
|
var fetchUrl = fetch.mock.calls[0][0];
|
|
32
32
|
var sentToServer = Array.from(fetch.mock.calls[0][1]['body'].entries());
|
|
33
33
|
expect(sentToServer).toEqual(data);
|
package/package.json
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "merchi_sdk_ts",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"source": "src/index.ts",
|
|
3
|
+
"version": "1.0.2",
|
|
5
4
|
"main": "dist/index.js",
|
|
6
|
-
"module": "esm/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
5
|
"type": "module",
|
|
9
6
|
"repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
|
|
10
7
|
"author": "Daniel Collins <mail@dcollins.info>, James Campton <james@merchi.co>, Cheng Yu <chengyu0316@gmail.com>",
|
|
11
8
|
"license": "GPL-3.0",
|
|
12
9
|
"scripts": {
|
|
13
|
-
"build
|
|
14
|
-
"build:esm": "tsc --project tsconfig.esm.json",
|
|
15
|
-
"build": "npm run build:umd && npm run build:esm",
|
|
10
|
+
"build": "tsc",
|
|
16
11
|
"test": "jest --coverage"
|
|
17
12
|
},
|
|
18
13
|
"devDependencies": {
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.AutoAssignProductionOnAction = void 0;
|
|
15
|
-
var AutoAssignProductionOnAction;
|
|
16
|
-
(function (AutoAssignProductionOnAction) {
|
|
17
|
-
AutoAssignProductionOnAction[AutoAssignProductionOnAction["NOT_REQUIRED"] = 0] = "NOT_REQUIRED";
|
|
18
|
-
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_CREATION"] = 1] = "ON_JOB_CREATION";
|
|
19
|
-
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_INVOICE_PAID"] = 2] = "ON_JOB_INVOICE_PAID";
|
|
20
|
-
AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_DRAFT_APPROVED"] = 3] = "ON_JOB_DRAFT_APPROVED";
|
|
21
|
-
})(AutoAssignProductionOnAction = exports.AutoAssignProductionOnAction || (exports.AutoAssignProductionOnAction = {}));
|
|
22
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.CallToActions = void 0;
|
|
15
|
-
var CallToActions;
|
|
16
|
-
(function (CallToActions) {
|
|
17
|
-
CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN"] = 0] = "COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN";
|
|
18
|
-
CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE"] = 1] = "COMPLETE_COMPANY_PROFILE";
|
|
19
|
-
CallToActions[CallToActions["UPGRADE_SUBSCRIPTION_PLAN"] = 2] = "UPGRADE_SUBSCRIPTION_PLAN";
|
|
20
|
-
CallToActions[CallToActions["COMPANY_ADD_PAYMENT_DETAILS_TO_UNLOCK_MORE_FEATURES"] = 3] = "COMPANY_ADD_PAYMENT_DETAILS_TO_UNLOCK_MORE_FEATURES";
|
|
21
|
-
CallToActions[CallToActions["COMPANY_SUBSCRIPTION_OUTSTANDING"] = 4] = "COMPANY_SUBSCRIPTION_OUTSTANDING";
|
|
22
|
-
CallToActions[CallToActions["COMPANY_OWNERSHIP_NEEDS_CONFIRMATION"] = 5] = "COMPANY_OWNERSHIP_NEEDS_CONFIRMATION";
|
|
23
|
-
CallToActions[CallToActions["MOD_PRODUCT_READY_FOR_SALE"] = 6] = "MOD_PRODUCT_READY_FOR_SALE";
|
|
24
|
-
CallToActions[CallToActions["CREATE_STORE_FOR_SELLING"] = 7] = "CREATE_STORE_FOR_SELLING";
|
|
25
|
-
CallToActions[CallToActions["COMPANY_NEEDS_TO_ADD_PAYMENT_METHOD"] = 8] = "COMPANY_NEEDS_TO_ADD_PAYMENT_METHOD";
|
|
26
|
-
CallToActions[CallToActions["YOUR_COMPANIES_NEED_STRIPE_TO_COLLECT_PAYMENT"] = 9] = "YOUR_COMPANIES_NEED_STRIPE_TO_COLLECT_PAYMENT";
|
|
27
|
-
CallToActions[CallToActions["SUPPLIER_PRODUCT_READY_FOR_SALE"] = 10] = "SUPPLIER_PRODUCT_READY_FOR_SALE";
|
|
28
|
-
CallToActions[CallToActions["SET_PASSWORD"] = 11] = "SET_PASSWORD";
|
|
29
|
-
})(CallToActions = exports.CallToActions || (exports.CallToActions = {}));
|
|
30
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./call_to_actions"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var call_to_actions_1 = require("./call_to_actions");
|
|
15
|
-
test('seller type exists', function () {
|
|
16
|
-
expect(call_to_actions_1.CallToActions.COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.DiscountType = void 0;
|
|
15
|
-
var DiscountType;
|
|
16
|
-
(function (DiscountType) {
|
|
17
|
-
DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
|
|
18
|
-
})(DiscountType = exports.DiscountType || (exports.DiscountType = {}));
|
|
19
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./discount_types"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var discount_types_1 = require("./discount_types");
|
|
15
|
-
test('discount type volumetric exists', function () {
|
|
16
|
-
expect(discount_types_1.DiscountType.VOLUMETRIC).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.DomainType = void 0;
|
|
15
|
-
var DomainType;
|
|
16
|
-
(function (DomainType) {
|
|
17
|
-
DomainType[DomainType["UNRESTRICTED"] = 0] = "UNRESTRICTED";
|
|
18
|
-
DomainType[DomainType["SELLER"] = 1] = "SELLER";
|
|
19
|
-
DomainType[DomainType["SELLER_PLUS"] = 2] = "SELLER_PLUS";
|
|
20
|
-
DomainType[DomainType["SUPPLIER"] = 3] = "SUPPLIER";
|
|
21
|
-
DomainType[DomainType["RESTRICTED_SUPPLIER"] = 4] = "RESTRICTED_SUPPLIER";
|
|
22
|
-
DomainType[DomainType["DOMAIN_SUPPLIER"] = 5] = "DOMAIN_SUPPLIER";
|
|
23
|
-
DomainType[DomainType["DOMAIN_CLIENT_CATALOGUE"] = 6] = "DOMAIN_CLIENT_CATALOGUE";
|
|
24
|
-
DomainType[DomainType["DOMAIN_SHOPIFY_SELLER"] = 7] = "DOMAIN_SHOPIFY_SELLER";
|
|
25
|
-
DomainType[DomainType["UNRESTRICTED_SHOPIFY_APP"] = 8] = "UNRESTRICTED_SHOPIFY_APP";
|
|
26
|
-
DomainType[DomainType["RESERVED"] = 9] = "RESERVED";
|
|
27
|
-
})(DomainType = exports.DomainType || (exports.DomainType = {}));
|
|
28
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./domain_types"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var domain_types_1 = require("./domain_types");
|
|
15
|
-
test('seller type exists', function () {
|
|
16
|
-
expect(domain_types_1.DomainType.SELLER).toBe(1);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.getErrorFromCode = exports.ErrorType = void 0;
|
|
15
|
-
var ErrorType;
|
|
16
|
-
(function (ErrorType) {
|
|
17
|
-
ErrorType[ErrorType["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
|
|
18
|
-
ErrorType[ErrorType["SERVER_ERROR"] = 1] = "SERVER_ERROR";
|
|
19
|
-
ErrorType[ErrorType["CLIENT_ERROR"] = 2] = "CLIENT_ERROR";
|
|
20
|
-
ErrorType[ErrorType["EMAIL_ALREADY_EXISTS"] = 3] = "EMAIL_ALREADY_EXISTS";
|
|
21
|
-
ErrorType[ErrorType["SUPPLIER_NOT_ADDED_TO_PRODUCT"] = 4] = "SUPPLIER_NOT_ADDED_TO_PRODUCT";
|
|
22
|
-
ErrorType[ErrorType["EMAIL_NOT_FOUND"] = 5] = "EMAIL_NOT_FOUND";
|
|
23
|
-
ErrorType[ErrorType["INVALID_PHONE_NUMBER"] = 6] = "INVALID_PHONE_NUMBER";
|
|
24
|
-
ErrorType[ErrorType["INVALID_PASSWORD"] = 7] = "INVALID_PASSWORD";
|
|
25
|
-
ErrorType[ErrorType["RESOURCE_NOT_FOUND"] = 8] = "RESOURCE_NOT_FOUND";
|
|
26
|
-
ErrorType[ErrorType["RESOURCE_GONE"] = 9] = "RESOURCE_GONE";
|
|
27
|
-
ErrorType[ErrorType["REQUEST_TOO_LARGE"] = 10] = "REQUEST_TOO_LARGE";
|
|
28
|
-
ErrorType[ErrorType["UNKNOWN_DOMAIN"] = 11] = "UNKNOWN_DOMAIN";
|
|
29
|
-
ErrorType[ErrorType["UNSUPPORTED_METHOD"] = 12] = "UNSUPPORTED_METHOD";
|
|
30
|
-
ErrorType[ErrorType["MISSING_EVENT_TYPES"] = 13] = "MISSING_EVENT_TYPES";
|
|
31
|
-
ErrorType[ErrorType["INVALID_EVENT_TYPES"] = 14] = "INVALID_EVENT_TYPES";
|
|
32
|
-
ErrorType[ErrorType["MISSING_URI"] = 15] = "MISSING_URI";
|
|
33
|
-
ErrorType[ErrorType["MISSING_SID"] = 16] = "MISSING_SID";
|
|
34
|
-
ErrorType[ErrorType["MISSING_SECRET_KEY"] = 17] = "MISSING_SECRET_KEY";
|
|
35
|
-
ErrorType[ErrorType["MISSING_SUBSCRIPTION_TOKEN"] = 18] = "MISSING_SUBSCRIPTION_TOKEN";
|
|
36
|
-
ErrorType[ErrorType["WRONG_SECRET_KEY"] = 19] = "WRONG_SECRET_KEY";
|
|
37
|
-
ErrorType[ErrorType["DUPLICATE_SUBSCRIPTION_TOKEN"] = 20] = "DUPLICATE_SUBSCRIPTION_TOKEN";
|
|
38
|
-
ErrorType[ErrorType["BAD_SMS_TOKEN"] = 21] = "BAD_SMS_TOKEN";
|
|
39
|
-
ErrorType[ErrorType["DOMAIN_NOT_FOUND"] = 22] = "DOMAIN_NOT_FOUND";
|
|
40
|
-
})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
|
|
41
|
-
function getErrorFromCode(code) {
|
|
42
|
-
if (code in ErrorType) {
|
|
43
|
-
return code;
|
|
44
|
-
}
|
|
45
|
-
return ErrorType.UNKNOWN_ERROR;
|
|
46
|
-
}
|
|
47
|
-
exports.getErrorFromCode = getErrorFromCode;
|
|
48
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.EventType = void 0;
|
|
15
|
-
var EventType;
|
|
16
|
-
(function (EventType) {
|
|
17
|
-
EventType[EventType["POST"] = 0] = "POST";
|
|
18
|
-
EventType[EventType["PATCH"] = 1] = "PATCH";
|
|
19
|
-
EventType[EventType["DELETE"] = 1] = "DELETE";
|
|
20
|
-
})(EventType = exports.EventType || (exports.EventType = {}));
|
|
21
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./event_types"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var event_types_1 = require("./event_types");
|
|
15
|
-
test('post event type exists', function () {
|
|
16
|
-
expect(event_types_1.EventType.POST).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.FieldType = void 0;
|
|
15
|
-
var FieldType;
|
|
16
|
-
(function (FieldType) {
|
|
17
|
-
FieldType[FieldType["TEXT_INPUT"] = 1] = "TEXT_INPUT";
|
|
18
|
-
FieldType[FieldType["SELECT"] = 2] = "SELECT";
|
|
19
|
-
FieldType[FieldType["FILE_UPLOAD"] = 3] = "FILE_UPLOAD";
|
|
20
|
-
FieldType[FieldType["TEXT_AREA"] = 4] = "TEXT_AREA";
|
|
21
|
-
FieldType[FieldType["NUMBER_INPUT"] = 5] = "NUMBER_INPUT";
|
|
22
|
-
FieldType[FieldType["CHECKBOX"] = 6] = "CHECKBOX";
|
|
23
|
-
FieldType[FieldType["RADIO"] = 7] = "RADIO";
|
|
24
|
-
FieldType[FieldType["FIELD_INSTRUCTIONS"] = 8] = "FIELD_INSTRUCTIONS";
|
|
25
|
-
FieldType[FieldType["IMAGE_SELECT"] = 9] = "IMAGE_SELECT";
|
|
26
|
-
FieldType[FieldType["COLOUR_PICKER"] = 10] = "COLOUR_PICKER";
|
|
27
|
-
FieldType[FieldType["COLOUR_SELECT"] = 11] = "COLOUR_SELECT";
|
|
28
|
-
})(FieldType = exports.FieldType || (exports.FieldType = {}));
|
|
29
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./field_types"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var field_types_1 = require("./field_types");
|
|
15
|
-
test('text input type exists', function () {
|
|
16
|
-
expect(field_types_1.FieldType.TEXT_INPUT).toBe(1);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.InputType = void 0;
|
|
15
|
-
var InputType;
|
|
16
|
-
(function (InputType) {
|
|
17
|
-
InputType[InputType["TEXT"] = 1] = "TEXT";
|
|
18
|
-
InputType[InputType["SELECT"] = 2] = "SELECT";
|
|
19
|
-
InputType[InputType["FILE"] = 3] = "FILE";
|
|
20
|
-
InputType[InputType["TEXTAREA"] = 4] = "TEXTAREA";
|
|
21
|
-
InputType[InputType["NUMBER"] = 5] = "NUMBER";
|
|
22
|
-
InputType[InputType["CHECKBOX"] = 6] = "CHECKBOX";
|
|
23
|
-
InputType[InputType["RADIO"] = 7] = "RADIO";
|
|
24
|
-
InputType[InputType["INSTRUCTIONS"] = 8] = "INSTRUCTIONS";
|
|
25
|
-
InputType[InputType["IMAGE_SELECT"] = 9] = "IMAGE_SELECT";
|
|
26
|
-
InputType[InputType["COLUR_PICKER"] = 10] = "COLUR_PICKER";
|
|
27
|
-
InputType[InputType["COLOUR_SELECT"] = 11] = "COLOUR_SELECT";
|
|
28
|
-
})(InputType = exports.InputType || (exports.InputType = {}));
|
|
29
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./input_types"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var input_types_1 = require("./input_types");
|
|
15
|
-
test('text type exists', function () {
|
|
16
|
-
expect(input_types_1.InputType.TEXT).toBe(1);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./inventory_statuses"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var inventory_statuses_1 = require("./inventory_statuses");
|
|
15
|
-
test('inventory deducted', function () {
|
|
16
|
-
expect(inventory_statuses_1.InventoryStatus.DEDUCTED).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.InventoryStatus = void 0;
|
|
15
|
-
var InventoryStatus;
|
|
16
|
-
(function (InventoryStatus) {
|
|
17
|
-
InventoryStatus[InventoryStatus["DEDUCTED"] = 0] = "DEDUCTED";
|
|
18
|
-
InventoryStatus[InventoryStatus["CAN_DEDUCT"] = 1] = "CAN_DEDUCT";
|
|
19
|
-
InventoryStatus[InventoryStatus["NOT_SUFFICIENT"] = 2] = "NOT_SUFFICIENT";
|
|
20
|
-
InventoryStatus[InventoryStatus["NO_MATCHING_INVENTORY"] = 3] = "NO_MATCHING_INVENTORY";
|
|
21
|
-
})(InventoryStatus = exports.InventoryStatus || (exports.InventoryStatus = {}));
|
|
22
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.InoviceType = void 0;
|
|
15
|
-
var InoviceType;
|
|
16
|
-
(function (InoviceType) {
|
|
17
|
-
InoviceType[InoviceType["ORDER"] = 0] = "ORDER";
|
|
18
|
-
InoviceType[InoviceType["SUBSCRIPTION_BILL"] = 1] = "SUBSCRIPTION_BILL";
|
|
19
|
-
InoviceType[InoviceType["AUTO_SUPPLY_BILL"] = 2] = "AUTO_SUPPLY_BILL";
|
|
20
|
-
})(InoviceType = exports.InoviceType || (exports.InoviceType = {}));
|
|
21
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./invoice_types"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var invoice_types_1 = require("./invoice_types");
|
|
15
|
-
test('invoice type exists', function () {
|
|
16
|
-
expect(invoice_types_1.InoviceType.ORDER).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ItemType = void 0;
|
|
15
|
-
var ItemType;
|
|
16
|
-
(function (ItemType) {
|
|
17
|
-
ItemType[ItemType["CUSTOM"] = 0] = "CUSTOM";
|
|
18
|
-
ItemType[ItemType["SHIPPING"] = 1] = "SHIPPING";
|
|
19
|
-
ItemType[ItemType["TAX"] = 2] = "TAX";
|
|
20
|
-
})(ItemType = exports.ItemType || (exports.ItemType = {}));
|
|
21
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./item_types"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var item_types_1 = require("./item_types");
|
|
15
|
-
test('custom type exists', function () {
|
|
16
|
-
expect(item_types_1.ItemType.CUSTOM).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.DraftingStatus = void 0;
|
|
15
|
-
var DraftingStatus;
|
|
16
|
-
(function (DraftingStatus) {
|
|
17
|
-
DraftingStatus[DraftingStatus["INIT"] = 0] = "INIT";
|
|
18
|
-
DraftingStatus[DraftingStatus["WAIT_DRAFTING"] = 1] = "WAIT_DRAFTING";
|
|
19
|
-
DraftingStatus[DraftingStatus["CHANGES_REQUESTED"] = 2] = "CHANGES_REQUESTED";
|
|
20
|
-
DraftingStatus[DraftingStatus["DRAFTING_UPLOADED"] = 3] = "DRAFTING_UPLOADED";
|
|
21
|
-
DraftingStatus[DraftingStatus["DRAFTINGA_APPROVED"] = 4] = "DRAFTINGA_APPROVED";
|
|
22
|
-
})(DraftingStatus = exports.DraftingStatus || (exports.DraftingStatus = {}));
|
|
23
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./drafting_status"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var drafting_status_1 = require("./drafting_status");
|
|
15
|
-
test('init status exists', function () {
|
|
16
|
-
expect(drafting_status_1.DraftingStatus.INIT).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PaymentStatus = void 0;
|
|
15
|
-
var PaymentStatus;
|
|
16
|
-
(function (PaymentStatus) {
|
|
17
|
-
PaymentStatus[PaymentStatus["INIT"] = 0] = "INIT";
|
|
18
|
-
PaymentStatus[PaymentStatus["ISSUED"] = 1] = "ISSUED";
|
|
19
|
-
PaymentStatus[PaymentStatus["OVERDUE"] = 2] = "OVERDUE";
|
|
20
|
-
PaymentStatus[PaymentStatus["PARTIAL_PAID"] = 3] = "PARTIAL_PAID";
|
|
21
|
-
PaymentStatus[PaymentStatus["FULLY_PAID"] = 4] = "FULLY_PAID";
|
|
22
|
-
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
23
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports", "./payment_status"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var payment_status_1 = require("./payment_status");
|
|
15
|
-
test('init status exists', function () {
|
|
16
|
-
expect(payment_status_1.PaymentStatus.INIT).toBe(0);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(function (factory) {
|
|
3
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
4
|
-
var v = factory(require, exports);
|
|
5
|
-
if (v !== undefined)
|
|
6
|
-
module.exports = v;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof define === "function" && define.amd) {
|
|
9
|
-
define(["require", "exports"], factory);
|
|
10
|
-
}
|
|
11
|
-
})(function (require, exports) {
|
|
12
|
-
"use strict";
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ProductionStatus = void 0;
|
|
15
|
-
var ProductionStatus;
|
|
16
|
-
(function (ProductionStatus) {
|
|
17
|
-
ProductionStatus[ProductionStatus["INIT"] = 0] = "INIT";
|
|
18
|
-
ProductionStatus[ProductionStatus["REJECTED"] = 1] = "REJECTED";
|
|
19
|
-
ProductionStatus[ProductionStatus["QUOTING"] = 2] = "QUOTING";
|
|
20
|
-
ProductionStatus[ProductionStatus["ASSIGN_SENT"] = 3] = "ASSIGN_SENT";
|
|
21
|
-
ProductionStatus[ProductionStatus["ASSIGN_DEADLINE_REACHED"] = 5] = "ASSIGN_DEADLINE_REACHED";
|
|
22
|
-
ProductionStatus[ProductionStatus["QUESTIONING"] = 6] = "QUESTIONING";
|
|
23
|
-
ProductionStatus[ProductionStatus["COMMENCED"] = 7] = "COMMENCED";
|
|
24
|
-
ProductionStatus[ProductionStatus["FINISHED"] = 8] = "FINISHED";
|
|
25
|
-
ProductionStatus[ProductionStatus["SHIPPED"] = 9] = "SHIPPED";
|
|
26
|
-
ProductionStatus[ProductionStatus["COMPLETED"] = 10] = "COMPLETED";
|
|
27
|
-
})(ProductionStatus = exports.ProductionStatus || (exports.ProductionStatus = {}));
|
|
28
|
-
});
|