merchi_sdk_ts 0.0.1-a
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/.babelrc +13 -0
- package/.eslintrc.cjs +43 -0
- package/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/constants/auto_assign_production_on_actions.js +7 -0
- package/dist/constants/call_to_actions.js +15 -0
- package/dist/constants/call_to_actions.test.js +4 -0
- package/dist/constants/discount_types.js +4 -0
- package/dist/constants/discount_types.test.js +4 -0
- package/dist/constants/domain_types.js +13 -0
- package/dist/constants/domain_types.test.js +4 -0
- package/dist/constants/errors.js +32 -0
- package/dist/constants/event_types.js +6 -0
- package/dist/constants/event_types.test.js +4 -0
- package/dist/constants/field_types.js +14 -0
- package/dist/constants/field_types.test.js +4 -0
- package/dist/constants/input_types.js +14 -0
- package/dist/constants/input_types.test.js +4 -0
- package/dist/constants/inventory_status.test.js +4 -0
- package/dist/constants/inventory_statuses.js +7 -0
- package/dist/constants/invoice_types.js +6 -0
- package/dist/constants/invoice_types.test.js +4 -0
- package/dist/constants/item_types.js +6 -0
- package/dist/constants/item_types.test.js +4 -0
- package/dist/constants/job/drafting_status.js +8 -0
- package/dist/constants/job/drafting_status.test.js +4 -0
- package/dist/constants/job/payment_status.js +8 -0
- package/dist/constants/job/payment_status.test.js +4 -0
- package/dist/constants/job/production_status.js +13 -0
- package/dist/constants/job/production_status.test.js +4 -0
- package/dist/constants/job/shipment_status.js +12 -0
- package/dist/constants/job/shipment_status.test.js +4 -0
- package/dist/constants/job/supply_chain_request_status.js +7 -0
- package/dist/constants/job/supply_chain_request_status.test.js +4 -0
- package/dist/constants/job_priorities.js +7 -0
- package/dist/constants/job_priorities.test.js +4 -0
- package/dist/constants/job_status.js +50 -0
- package/dist/constants/job_status.test.js +4 -0
- package/dist/constants/job_types.js +16 -0
- package/dist/constants/job_types.test.js +4 -0
- package/dist/constants/notification_sections.js +14 -0
- package/dist/constants/notification_sections.test.js +4 -0
- package/dist/constants/notification_types.js +98 -0
- package/dist/constants/notification_types.test.js +4 -0
- package/dist/constants/notification_urgencies.js +7 -0
- package/dist/constants/notification_urgencies.test.js +4 -0
- package/dist/constants/payment_types.js +11 -0
- package/dist/constants/payment_types.test.js +4 -0
- package/dist/constants/platform.js +5 -0
- package/dist/constants/platform.test.js +8 -0
- package/dist/constants/product_types.js +26 -0
- package/dist/constants/product_types.test.js +4 -0
- package/dist/constants/rights.js +6 -0
- package/dist/constants/rights.test.js +4 -0
- package/dist/constants/robots_meta_directives.js +1 -0
- package/dist/constants/robots_meta_directives.test.js +4 -0
- package/dist/constants/roles.js +25 -0
- package/dist/constants/roles.test.js +4 -0
- package/dist/constants/shipment_companies.js +19 -0
- package/dist/constants/shipment_companies.test.js +4 -0
- package/dist/constants/shipment_services.js +4 -0
- package/dist/constants/shipment_services.test.js +4 -0
- package/dist/constants/system_roles.js +4 -0
- package/dist/constants/system_roles.test.js +4 -0
- package/dist/constants/theme_foundations.js +7 -0
- package/dist/constants/theme_foundations.test.js +4 -0
- package/dist/constants/theme_status.js +6 -0
- package/dist/constants/theme_status.test.js +4 -0
- package/dist/constants/user_types.js +18 -0
- package/dist/constants/user_types.test.js +4 -0
- package/dist/constants/white_label_accessibilities.js +6 -0
- package/dist/constants/white_label_accessibilities.test.js +4 -0
- package/dist/cookie.js +16 -0
- package/dist/cookie.test.js +12 -0
- package/dist/entities/address.js +166 -0
- package/dist/entities/address.test.js +6 -0
- package/dist/entities/assignment.js +185 -0
- package/dist/entities/assignment.test.js +38 -0
- package/dist/entities/automatic_payment_relationship.js +77 -0
- package/dist/entities/automatic_payment_relationship.test.js +6 -0
- package/dist/entities/backup.js +44 -0
- package/dist/entities/backup.test.js +6 -0
- package/dist/entities/bank.js +116 -0
- package/dist/entities/bank.test.js +6 -0
- package/dist/entities/cart.js +203 -0
- package/dist/entities/cart.test.js +52 -0
- package/dist/entities/cart_item.js +153 -0
- package/dist/entities/cart_item.test.js +34 -0
- package/dist/entities/cart_shipment_group.js +62 -0
- package/dist/entities/cart_shipment_quote.js +85 -0
- package/dist/entities/category.js +92 -0
- package/dist/entities/category.test.js +52 -0
- package/dist/entities/company.js +648 -0
- package/dist/entities/company.test.js +6 -0
- package/dist/entities/company_invitation.js +82 -0
- package/dist/entities/company_invitation.test.js +6 -0
- package/dist/entities/component.js +209 -0
- package/dist/entities/component.test.js +12 -0
- package/dist/entities/component_tag.js +50 -0
- package/dist/entities/component_tag.test.js +6 -0
- package/dist/entities/component_version.js +80 -0
- package/dist/entities/component_version.test.js +6 -0
- package/dist/entities/country_tax.js +110 -0
- package/dist/entities/country_tax.test.js +11 -0
- package/dist/entities/discount.js +77 -0
- package/dist/entities/discount.test.js +20 -0
- package/dist/entities/discount_group.js +74 -0
- package/dist/entities/discount_group.test.js +6 -0
- package/dist/entities/domain.js +535 -0
- package/dist/entities/domain.test.js +75 -0
- package/dist/entities/domain_invitation.js +90 -0
- package/dist/entities/domain_invitation.test.js +6 -0
- package/dist/entities/domain_tag.js +100 -0
- package/dist/entities/domain_tag.test.js +6 -0
- package/dist/entities/draft.js +180 -0
- package/dist/entities/draft.test.js +39 -0
- package/dist/entities/draft_comment.js +132 -0
- package/dist/entities/draft_comment.test.js +6 -0
- package/dist/entities/draft_template.js +105 -0
- package/dist/entities/draft_template.test.js +6 -0
- package/dist/entities/email_address.js +68 -0
- package/dist/entities/email_address.test.js +6 -0
- package/dist/entities/email_counter.js +56 -0
- package/dist/entities/email_counter.test.js +6 -0
- package/dist/entities/enrolled_domain.js +85 -0
- package/dist/entities/enrolled_domain.test.js +6 -0
- package/dist/entities/exchange_rate.js +62 -0
- package/dist/entities/exchange_rate.test.js +6 -0
- package/dist/entities/file.js +383 -0
- package/dist/entities/file.test.js +38 -0
- package/dist/entities/internal_tag.js +120 -0
- package/dist/entities/internal_tag.test.js +6 -0
- package/dist/entities/inventory.js +120 -0
- package/dist/entities/inventory.test.js +26 -0
- package/dist/entities/inventory_unit_variation.js +64 -0
- package/dist/entities/inventory_unit_variation.test.js +6 -0
- package/dist/entities/invoice.js +420 -0
- package/dist/entities/invoice.test.js +39 -0
- package/dist/entities/item.js +102 -0
- package/dist/entities/item.test.js +17 -0
- package/dist/entities/job.js +744 -0
- package/dist/entities/job.test.js +103 -0
- package/dist/entities/job_comment.js +120 -0
- package/dist/entities/job_comment.test.js +6 -0
- package/dist/entities/matching_inventory.js +77 -0
- package/dist/entities/menu.js +78 -0
- package/dist/entities/menu.test.js +6 -0
- package/dist/entities/menu_item.js +76 -0
- package/dist/entities/menu_item.test.js +6 -0
- package/dist/entities/notification.js +234 -0
- package/dist/entities/notification.test.js +6 -0
- package/dist/entities/page.js +84 -0
- package/dist/entities/page.test.js +6 -0
- package/dist/entities/payment.js +141 -0
- package/dist/entities/payment.test.js +18 -0
- package/dist/entities/payment_device.js +87 -0
- package/dist/entities/payment_device.test.js +6 -0
- package/dist/entities/phone_number.js +98 -0
- package/dist/entities/phone_number.test.js +6 -0
- package/dist/entities/product.js +806 -0
- package/dist/entities/product.test.js +811 -0
- package/dist/entities/production_comment.js +120 -0
- package/dist/entities/production_comment.test.js +6 -0
- package/dist/entities/quote.js +208 -0
- package/dist/entities/quote.test.js +107 -0
- package/dist/entities/quote_item.js +121 -0
- package/dist/entities/quote_item.test.js +56 -0
- package/dist/entities/seo_domain_page.js +82 -0
- package/dist/entities/seo_domain_page.test.js +6 -0
- package/dist/entities/session.js +77 -0
- package/dist/entities/session.test.js +6 -0
- package/dist/entities/shipment.js +401 -0
- package/dist/entities/shipment.test.js +28 -0
- package/dist/entities/shipment_item.js +49 -0
- package/dist/entities/shipment_item.test.js +6 -0
- package/dist/entities/shipment_item_fulfillment.js +48 -0
- package/dist/entities/shipment_item_fulfillment.test.js +6 -0
- package/dist/entities/shipment_method.js +146 -0
- package/dist/entities/shipment_method.test.js +6 -0
- package/dist/entities/shipment_method_variation.js +104 -0
- package/dist/entities/shipment_method_variation.test.js +6 -0
- package/dist/entities/short_url.js +95 -0
- package/dist/entities/short_url.test.js +6 -0
- package/dist/entities/subscription_plan.js +172 -0
- package/dist/entities/subscription_plan.test.js +6 -0
- package/dist/entities/supply_domain.js +73 -0
- package/dist/entities/supply_domain.test.js +6 -0
- package/dist/entities/system_role.js +50 -0
- package/dist/entities/system_role.test.js +6 -0
- package/dist/entities/theme.js +614 -0
- package/dist/entities/theme.test.js +39 -0
- package/dist/entities/theme_css_setting.js +67 -0
- package/dist/entities/theme_css_setting.test.js +6 -0
- package/dist/entities/user.js +749 -0
- package/dist/entities/user.test.js +157 -0
- package/dist/entities/user_company.js +78 -0
- package/dist/entities/user_company.test.js +6 -0
- package/dist/entities/variation.js +147 -0
- package/dist/entities/variation.test.js +6 -0
- package/dist/entities/variation_field.js +313 -0
- package/dist/entities/variation_field.test.js +69 -0
- package/dist/entities/variation_fields_option.js +190 -0
- package/dist/entities/variation_fields_option.test.js +47 -0
- package/dist/entities/variation_option.js +129 -0
- package/dist/entities/variation_option.test.js +6 -0
- package/dist/entities/variations_group.js +111 -0
- package/dist/entities/variations_group.test.js +6 -0
- package/dist/entity.js +888 -0
- package/dist/merchi.js +259 -0
- package/dist/merchi.test.js +35 -0
- package/dist/request.js +132 -0
- package/dist/request.test.js +46 -0
- package/dist/test_util.js +19 -0
- package/dist/toasts.js +27 -0
- package/dist/toasts.test.js +46 -0
- package/dist/util/float.js +24 -0
- package/dist/util/query_string.js +11 -0
- package/dist/util/query_string.test.js +6 -0
- package/dist/util/validation.js +3 -0
- package/dist/util/validation.test.js +12 -0
- package/dist/uuid.js +8 -0
- package/dist/uuid.test.js +13 -0
- package/jest.config.js +17 -0
- package/package.json +44 -0
- package/src/constants/auto_assign_production_on_actions.ts +6 -0
- package/src/constants/call_to_actions.test.ts +5 -0
- package/src/constants/call_to_actions.ts +14 -0
- package/src/constants/discount_types.test.ts +5 -0
- package/src/constants/discount_types.ts +3 -0
- package/src/constants/domain_types.test.ts +5 -0
- package/src/constants/domain_types.ts +12 -0
- package/src/constants/errors.ts +32 -0
- package/src/constants/event_types.test.ts +5 -0
- package/src/constants/event_types.ts +5 -0
- package/src/constants/field_types.test.ts +5 -0
- package/src/constants/field_types.ts +13 -0
- package/src/constants/input_types.test.ts +5 -0
- package/src/constants/input_types.ts +13 -0
- package/src/constants/inventory_status.test.ts +5 -0
- package/src/constants/inventory_statuses.ts +6 -0
- package/src/constants/invoice_types.test.ts +5 -0
- package/src/constants/invoice_types.ts +5 -0
- package/src/constants/item_types.test.ts +5 -0
- package/src/constants/item_types.ts +5 -0
- package/src/constants/job/drafting_status.test.ts +5 -0
- package/src/constants/job/drafting_status.ts +7 -0
- package/src/constants/job/payment_status.test.ts +5 -0
- package/src/constants/job/payment_status.ts +7 -0
- package/src/constants/job/production_status.test.ts +5 -0
- package/src/constants/job/production_status.ts +12 -0
- package/src/constants/job/shipment_status.test.ts +5 -0
- package/src/constants/job/shipment_status.ts +11 -0
- package/src/constants/job/supply_chain_request_status.test.ts +5 -0
- package/src/constants/job/supply_chain_request_status.ts +6 -0
- package/src/constants/job_priorities.test.ts +5 -0
- package/src/constants/job_priorities.ts +6 -0
- package/src/constants/job_status.test.ts +5 -0
- package/src/constants/job_status.ts +49 -0
- package/src/constants/job_types.test.ts +5 -0
- package/src/constants/job_types.ts +15 -0
- package/src/constants/notification_sections.test.ts +5 -0
- package/src/constants/notification_sections.ts +13 -0
- package/src/constants/notification_types.test.ts +5 -0
- package/src/constants/notification_types.ts +97 -0
- package/src/constants/notification_urgencies.test.ts +5 -0
- package/src/constants/notification_urgencies.ts +7 -0
- package/src/constants/payment_types.test.ts +5 -0
- package/src/constants/payment_types.ts +10 -0
- package/src/constants/platform.test.ts +15 -0
- package/src/constants/platform.ts +6 -0
- package/src/constants/product_types.test.ts +6 -0
- package/src/constants/product_types.ts +25 -0
- package/src/constants/rights.test.ts +5 -0
- package/src/constants/rights.ts +5 -0
- package/src/constants/robots_meta_directives.test.ts +5 -0
- package/src/constants/robots_meta_directives.ts +11 -0
- package/src/constants/roles.test.ts +5 -0
- package/src/constants/roles.ts +38 -0
- package/src/constants/shipment_companies.test.ts +5 -0
- package/src/constants/shipment_companies.ts +18 -0
- package/src/constants/shipment_services.test.ts +5 -0
- package/src/constants/shipment_services.ts +3 -0
- package/src/constants/system_roles.test.ts +5 -0
- package/src/constants/system_roles.ts +3 -0
- package/src/constants/theme_foundations.test.ts +5 -0
- package/src/constants/theme_foundations.ts +6 -0
- package/src/constants/theme_status.test.ts +5 -0
- package/src/constants/theme_status.ts +5 -0
- package/src/constants/user_types.test.ts +5 -0
- package/src/constants/user_types.ts +17 -0
- package/src/constants/white_label_accessibilities.test.ts +5 -0
- package/src/constants/white_label_accessibilities.ts +6 -0
- package/src/cookie.test.ts +11 -0
- package/src/cookie.ts +16 -0
- package/src/entities/address.test.ts +7 -0
- package/src/entities/address.ts +65 -0
- package/src/entities/assignment.test.ts +39 -0
- package/src/entities/assignment.ts +92 -0
- package/src/entities/automatic_payment_relationship.test.ts +8 -0
- package/src/entities/automatic_payment_relationship.ts +26 -0
- package/src/entities/backup.test.ts +7 -0
- package/src/entities/backup.ts +14 -0
- package/src/entities/bank.test.ts +7 -0
- package/src/entities/bank.ts +45 -0
- package/src/entities/cart.test.ts +50 -0
- package/src/entities/cart.ts +89 -0
- package/src/entities/cart_item.test.ts +33 -0
- package/src/entities/cart_item.ts +77 -0
- package/src/entities/cart_shipment_group.ts +21 -0
- package/src/entities/cart_shipment_quote.ts +33 -0
- package/src/entities/category.test.ts +57 -0
- package/src/entities/category.ts +37 -0
- package/src/entities/company.test.ts +7 -0
- package/src/entities/company.ts +275 -0
- package/src/entities/company_invitation.test.ts +7 -0
- package/src/entities/company_invitation.ts +33 -0
- package/src/entities/component.test.ts +14 -0
- package/src/entities/component.ts +92 -0
- package/src/entities/component_tag.test.ts +7 -0
- package/src/entities/component_tag.ts +17 -0
- package/src/entities/component_version.test.ts +7 -0
- package/src/entities/component_version.ts +30 -0
- package/src/entities/country_tax.test.ts +13 -0
- package/src/entities/country_tax.ts +46 -0
- package/src/entities/discount.test.ts +18 -0
- package/src/entities/discount.ts +34 -0
- package/src/entities/discount_group.test.ts +7 -0
- package/src/entities/discount_group.ts +28 -0
- package/src/entities/domain.test.ts +79 -0
- package/src/entities/domain.ts +246 -0
- package/src/entities/domain_invitation.test.ts +7 -0
- package/src/entities/domain_invitation.ts +36 -0
- package/src/entities/domain_tag.test.ts +7 -0
- package/src/entities/domain_tag.ts +42 -0
- package/src/entities/draft.test.ts +43 -0
- package/src/entities/draft.ts +88 -0
- package/src/entities/draft_comment.test.ts +7 -0
- package/src/entities/draft_comment.ts +54 -0
- package/src/entities/draft_template.test.ts +7 -0
- package/src/entities/draft_template.ts +40 -0
- package/src/entities/email_address.test.ts +7 -0
- package/src/entities/email_address.ts +24 -0
- package/src/entities/email_counter.test.ts +7 -0
- package/src/entities/email_counter.ts +20 -0
- package/src/entities/enrolled_domain.test.ts +7 -0
- package/src/entities/enrolled_domain.ts +40 -0
- package/src/entities/exchange_rate.test.ts +7 -0
- package/src/entities/exchange_rate.ts +22 -0
- package/src/entities/file.test.ts +43 -0
- package/src/entities/file.ts +172 -0
- package/src/entities/internal_tag.test.ts +7 -0
- package/src/entities/internal_tag.ts +51 -0
- package/src/entities/inventory.test.ts +28 -0
- package/src/entities/inventory.ts +56 -0
- package/src/entities/inventory_unit_variation.test.ts +7 -0
- package/src/entities/inventory_unit_variation.ts +29 -0
- package/src/entities/invoice.test.ts +43 -0
- package/src/entities/invoice.ts +179 -0
- package/src/entities/item.test.ts +19 -0
- package/src/entities/item.ts +44 -0
- package/src/entities/job.test.ts +95 -0
- package/src/entities/job.ts +349 -0
- package/src/entities/job_comment.test.ts +7 -0
- package/src/entities/job_comment.ts +50 -0
- package/src/entities/matching_inventory.ts +29 -0
- package/src/entities/menu.test.ts +7 -0
- package/src/entities/menu.ts +30 -0
- package/src/entities/menu_item.test.ts +7 -0
- package/src/entities/menu_item.ts +29 -0
- package/src/entities/notification.test.ts +7 -0
- package/src/entities/notification.ts +99 -0
- package/src/entities/page.test.ts +7 -0
- package/src/entities/page.ts +32 -0
- package/src/entities/payment.test.ts +19 -0
- package/src/entities/payment.ts +65 -0
- package/src/entities/payment_device.test.ts +7 -0
- package/src/entities/payment_device.ts +30 -0
- package/src/entities/phone_number.test.ts +7 -0
- package/src/entities/phone_number.ts +36 -0
- package/src/entities/product.test.ts +750 -0
- package/src/entities/product.ts +427 -0
- package/src/entities/production_comment.test.ts +7 -0
- package/src/entities/production_comment.ts +50 -0
- package/src/entities/quote.test.ts +98 -0
- package/src/entities/quote.ts +140 -0
- package/src/entities/quote_item.test.ts +50 -0
- package/src/entities/quote_item.ts +71 -0
- package/src/entities/seo_domain_page.test.ts +7 -0
- package/src/entities/seo_domain_page.ts +33 -0
- package/src/entities/session.test.ts +7 -0
- package/src/entities/session.ts +28 -0
- package/src/entities/shipment.test.ts +24 -0
- package/src/entities/shipment.ts +185 -0
- package/src/entities/shipment_item.test.ts +7 -0
- package/src/entities/shipment_item.ts +15 -0
- package/src/entities/shipment_item_fulfillment.test.ts +8 -0
- package/src/entities/shipment_item_fulfillment.ts +15 -0
- package/src/entities/shipment_method.test.ts +7 -0
- package/src/entities/shipment_method.ts +61 -0
- package/src/entities/shipment_method_variation.test.ts +7 -0
- package/src/entities/shipment_method_variation.ts +39 -0
- package/src/entities/short_url.test.ts +7 -0
- package/src/entities/short_url.ts +36 -0
- package/src/entities/subscription_plan.test.ts +7 -0
- package/src/entities/subscription_plan.ts +73 -0
- package/src/entities/supply_domain.test.ts +7 -0
- package/src/entities/supply_domain.ts +27 -0
- package/src/entities/system_role.test.ts +7 -0
- package/src/entities/system_role.ts +17 -0
- package/src/entities/theme.test.ts +38 -0
- package/src/entities/theme.ts +267 -0
- package/src/entities/theme_css_setting.test.ts +7 -0
- package/src/entities/theme_css_setting.ts +23 -0
- package/src/entities/user.test.ts +154 -0
- package/src/entities/user.ts +394 -0
- package/src/entities/user_company.test.ts +7 -0
- package/src/entities/user_company.ts +27 -0
- package/src/entities/variation.test.ts +7 -0
- package/src/entities/variation.ts +61 -0
- package/src/entities/variation_field.test.ts +76 -0
- package/src/entities/variation_field.ts +169 -0
- package/src/entities/variation_fields_option.test.ts +46 -0
- package/src/entities/variation_fields_option.ts +95 -0
- package/src/entities/variation_option.test.ts +7 -0
- package/src/entities/variation_option.ts +52 -0
- package/src/entities/variations_group.test.ts +7 -0
- package/src/entities/variations_group.ts +41 -0
- package/src/entity.ts +1002 -0
- package/src/merchi.test.ts +25 -0
- package/src/merchi.ts +379 -0
- package/src/request.test.ts +43 -0
- package/src/request.ts +124 -0
- package/src/test_util.ts +18 -0
- package/src/toasts.test.ts +38 -0
- package/src/toasts.ts +34 -0
- package/src/util/float.ts +12 -0
- package/src/util/query_string.test.ts +7 -0
- package/src/util/query_string.ts +11 -0
- package/src/util/validation.test.ts +16 -0
- package/src/util/validation.ts +2 -0
- package/src/uuid.test.ts +15 -0
- package/src/uuid.ts +8 -0
- package/tsconfig.json +23 -0
- package/webpack.config.cjs +27 -0
|
@@ -0,0 +1,806 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _dec62, _dec63, _dec64, _dec65, _dec66, _dec67, _dec68, _dec69, _dec70, _dec71, _dec72, _dec73, _dec74, _dec75, _dec76, _dec77, _dec78, _dec79, _dec80, _dec81, _dec82, _dec83, _dec84, _dec85, _dec86, _dec87, _dec88, _dec89, _dec90, _dec91, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52, _descriptor53, _descriptor54, _descriptor55, _descriptor56, _descriptor57, _descriptor58, _descriptor59, _descriptor60, _descriptor61, _descriptor62, _descriptor63, _descriptor64, _descriptor65, _descriptor66, _descriptor67, _descriptor68, _descriptor69, _descriptor70, _descriptor71, _descriptor72, _descriptor73, _descriptor74, _descriptor75, _descriptor76, _descriptor77, _descriptor78, _descriptor79, _descriptor80, _descriptor81, _descriptor82, _descriptor83, _descriptor84, _descriptor85, _descriptor86, _descriptor87, _descriptor88, _descriptor89, _descriptor90, _descriptor91, _Product;
|
|
3
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
+
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
7
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
8
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
9
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
15
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
21
|
+
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
22
|
+
import * as _ from 'lodash';
|
|
23
|
+
import { Component } from './component';
|
|
24
|
+
import { CountryTax } from './country_tax';
|
|
25
|
+
import { Entity } from '../entity';
|
|
26
|
+
import { MerchiFile } from './file';
|
|
27
|
+
export var Product = (_dec = Product.property({
|
|
28
|
+
type: Date
|
|
29
|
+
}), _dec2 = Product.property(), _dec3 = Component.property({
|
|
30
|
+
type: Date
|
|
31
|
+
}), _dec4 = Component.property({
|
|
32
|
+
type: Date
|
|
33
|
+
}), _dec5 = Component.property({
|
|
34
|
+
type: 'User'
|
|
35
|
+
}), _dec6 = Component.property({
|
|
36
|
+
type: 'User'
|
|
37
|
+
}), _dec7 = Product.property(), _dec8 = Product.property(), _dec9 = Product.property(), _dec10 = Product.property(), _dec11 = Product.property(), _dec12 = Product.property({
|
|
38
|
+
embeddedByDefault: false
|
|
39
|
+
}), _dec13 = Product.property({
|
|
40
|
+
type: 'DiscountGroup'
|
|
41
|
+
}), _dec14 = Product.property({
|
|
42
|
+
arrayType: 'ShipmentMethod'
|
|
43
|
+
}), _dec15 = Product.property(), _dec16 = Product.property({
|
|
44
|
+
type: Number
|
|
45
|
+
}), _dec17 = Product.property({
|
|
46
|
+
type: Number
|
|
47
|
+
}), _dec18 = Product.property({
|
|
48
|
+
type: Number
|
|
49
|
+
}), _dec19 = Product.property({
|
|
50
|
+
type: Number
|
|
51
|
+
}), _dec20 = Product.property(), _dec21 = Product.property(), _dec22 = Product.property(), _dec23 = Product.property({
|
|
52
|
+
type: String
|
|
53
|
+
}), _dec24 = Product.property({
|
|
54
|
+
type: String
|
|
55
|
+
}), _dec25 = Product.property({
|
|
56
|
+
type: String
|
|
57
|
+
}), _dec26 = Product.property({
|
|
58
|
+
type: String
|
|
59
|
+
}), _dec27 = Product.property({
|
|
60
|
+
type: String
|
|
61
|
+
}), _dec28 = Product.property({
|
|
62
|
+
type: String
|
|
63
|
+
}), _dec29 = Product.property(), _dec30 = Product.property(), _dec31 = Product.property(), _dec32 = Product.property(), _dec33 = Product.property(), _dec34 = Product.property(), _dec35 = Product.property(), _dec36 = Product.property({
|
|
64
|
+
type: Date
|
|
65
|
+
}), _dec37 = Product.property(), _dec38 = Product.property(), _dec39 = Product.property(), _dec40 = Product.property({
|
|
66
|
+
type: Number
|
|
67
|
+
}), _dec41 = Product.property(), _dec42 = Product.property(), _dec43 = Product.property(), _dec44 = Product.property(), _dec45 = Product.property(), _dec46 = Product.property(), _dec47 = Product.property(), _dec48 = Product.property(), _dec49 = Product.property(), _dec50 = Product.property(), _dec51 = Product.property(), _dec52 = Product.property(), _dec53 = Product.property(), _dec54 = Product.property(), _dec55 = Product.property(), _dec56 = Product.property({
|
|
68
|
+
arrayType: 'Category'
|
|
69
|
+
}), _dec57 = Product.property({
|
|
70
|
+
arrayType: 'Category'
|
|
71
|
+
}), _dec58 = Product.property({
|
|
72
|
+
arrayType: 'DiscountGroup'
|
|
73
|
+
}), _dec59 = Product.property(), _dec60 = Product.property({
|
|
74
|
+
type: CountryTax
|
|
75
|
+
}), _dec61 = Product.property({
|
|
76
|
+
type: Product
|
|
77
|
+
}), _dec62 = Product.property({
|
|
78
|
+
type: Product
|
|
79
|
+
}), _dec63 = Product.property({
|
|
80
|
+
type: Product
|
|
81
|
+
}), _dec64 = Product.property({
|
|
82
|
+
arrayType: 'Product'
|
|
83
|
+
}), _dec65 = Product.property({
|
|
84
|
+
type: Product
|
|
85
|
+
}), _dec66 = Product.property({
|
|
86
|
+
arrayType: 'Product'
|
|
87
|
+
}), _dec67 = Product.property({
|
|
88
|
+
type: Component
|
|
89
|
+
}), _dec68 = Product.property({
|
|
90
|
+
arrayType: 'MerchiFile'
|
|
91
|
+
}), _dec69 = Product.property({
|
|
92
|
+
arrayType: 'MerchiFile'
|
|
93
|
+
}), _dec70 = Product.property({
|
|
94
|
+
arrayType: 'MerchiFile'
|
|
95
|
+
}), _dec71 = Product.property({
|
|
96
|
+
arrayType: 'VariationField'
|
|
97
|
+
}), _dec72 = Product.property({
|
|
98
|
+
arrayType: 'VariationField'
|
|
99
|
+
}), _dec73 = Product.property({
|
|
100
|
+
arrayType: 'DomainTag'
|
|
101
|
+
}), _dec74 = Product.property({
|
|
102
|
+
arrayType: 'InternalTag'
|
|
103
|
+
}), _dec75 = Product.property({
|
|
104
|
+
arrayType: 'SeoDomainPage'
|
|
105
|
+
}), _dec76 = Product.property({
|
|
106
|
+
type: MerchiFile
|
|
107
|
+
}), _dec77 = Product.property({
|
|
108
|
+
type: 'Job'
|
|
109
|
+
}), _dec78 = Product.property({
|
|
110
|
+
type: 'Job'
|
|
111
|
+
}), _dec79 = Product.property({
|
|
112
|
+
arrayType: 'Company',
|
|
113
|
+
jsonName: 'saved_by_companies'
|
|
114
|
+
}), _dec80 = Product.property({
|
|
115
|
+
arrayType: 'SupplyDomain'
|
|
116
|
+
}), _dec81 = Product.property(), _dec82 = Product.property({
|
|
117
|
+
arrayType: 'SupplyDomain'
|
|
118
|
+
}), _dec83 = Product.property(), _dec84 = Product.property(), _dec85 = Product.property({
|
|
119
|
+
arrayType: 'Inventory'
|
|
120
|
+
}), _dec86 = Product.property({
|
|
121
|
+
arrayType: 'CartItem'
|
|
122
|
+
}), _dec87 = Product.property({
|
|
123
|
+
arrayType: 'Job'
|
|
124
|
+
}), _dec88 = Product.property({
|
|
125
|
+
arrayType: 'Job'
|
|
126
|
+
}), _dec89 = Product.property({
|
|
127
|
+
arrayType: 'User',
|
|
128
|
+
jsonName: 'saved_by_users'
|
|
129
|
+
}), _dec90 = Product.property({
|
|
130
|
+
arrayType: 'User'
|
|
131
|
+
}), _dec91 = Product.property({
|
|
132
|
+
arrayType: 'DraftTemplate'
|
|
133
|
+
}), (_class = (_Product = /*#__PURE__*/function (_Entity) {
|
|
134
|
+
_inherits(Product, _Entity);
|
|
135
|
+
function Product() {
|
|
136
|
+
var _this;
|
|
137
|
+
_classCallCheck(this, Product);
|
|
138
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
139
|
+
args[_key] = arguments[_key];
|
|
140
|
+
}
|
|
141
|
+
_this = _callSuper(this, Product, [].concat(args));
|
|
142
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "archived", _descriptor, _assertThisInitialized(_this));
|
|
143
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "id", _descriptor2, _assertThisInitialized(_this));
|
|
144
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "created", _descriptor3, _assertThisInitialized(_this));
|
|
145
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "updated", _descriptor4, _assertThisInitialized(_this));
|
|
146
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "createdBy", _descriptor5, _assertThisInitialized(_this));
|
|
147
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "updatedBy", _descriptor6, _assertThisInitialized(_this));
|
|
148
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "productType", _descriptor7, _assertThisInitialized(_this));
|
|
149
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "minimum", _descriptor8, _assertThisInitialized(_this));
|
|
150
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "minimumPerGroup", _descriptor9, _assertThisInitialized(_this));
|
|
151
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "deliveryDaysNormal", _descriptor10, _assertThisInitialized(_this));
|
|
152
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unitPrice", _descriptor11, _assertThisInitialized(_this));
|
|
153
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "buyUnitPrice", _descriptor12, _assertThisInitialized(_this));
|
|
154
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unitPriceDiscountGroup", _descriptor13, _assertThisInitialized(_this));
|
|
155
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "shipmentMethods", _descriptor14, _assertThisInitialized(_this));
|
|
156
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "margin", _descriptor15, _assertThisInitialized(_this));
|
|
157
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unitWeight", _descriptor16, _assertThisInitialized(_this));
|
|
158
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unitHeight", _descriptor17, _assertThisInitialized(_this));
|
|
159
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unitWidth", _descriptor18, _assertThisInitialized(_this));
|
|
160
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unitDepth", _descriptor19, _assertThisInitialized(_this));
|
|
161
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "name", _descriptor20, _assertThisInitialized(_this));
|
|
162
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "country", _descriptor21, _assertThisInitialized(_this));
|
|
163
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "currency", _descriptor22, _assertThisInitialized(_this));
|
|
164
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "description", _descriptor23, _assertThisInitialized(_this));
|
|
165
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "notes", _descriptor24, _assertThisInitialized(_this));
|
|
166
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "internalUseNotes", _descriptor25, _assertThisInitialized(_this));
|
|
167
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "internalUseAiContext", _descriptor26, _assertThisInitialized(_this));
|
|
168
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "aiContext", _descriptor27, _assertThisInitialized(_this));
|
|
169
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "shopifyProductId", _descriptor28, _assertThisInitialized(_this));
|
|
170
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "useCompanyShipmentMethods", _descriptor29, _assertThisInitialized(_this));
|
|
171
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "dropShipment", _descriptor30, _assertThisInitialized(_this));
|
|
172
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "needsDrafting", _descriptor31, _assertThisInitialized(_this));
|
|
173
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "needsProduction", _descriptor32, _assertThisInitialized(_this));
|
|
174
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "needsShipping", _descriptor33, _assertThisInitialized(_this));
|
|
175
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "needsInvoicing", _descriptor34, _assertThisInitialized(_this));
|
|
176
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "needsInventory", _descriptor35, _assertThisInitialized(_this));
|
|
177
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "featureDeadline", _descriptor36, _assertThisInitialized(_this));
|
|
178
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "showFeatureDeadline", _descriptor37, _assertThisInitialized(_this));
|
|
179
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "showPublic", _descriptor38, _assertThisInitialized(_this));
|
|
180
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "showGroupBuyStatus", _descriptor39, _assertThisInitialized(_this));
|
|
181
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "groupBuyStatus", _descriptor40, _assertThisInitialized(_this));
|
|
182
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "acceptSquare", _descriptor41, _assertThisInitialized(_this));
|
|
183
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "acceptStripe", _descriptor42, _assertThisInitialized(_this));
|
|
184
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "acceptPaypal", _descriptor43, _assertThisInitialized(_this));
|
|
185
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "acceptUtrust", _descriptor44, _assertThisInitialized(_this));
|
|
186
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "acceptBankTransfer", _descriptor45, _assertThisInitialized(_this));
|
|
187
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "acceptPhonePayment", _descriptor46, _assertThisInitialized(_this));
|
|
188
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "allowAutomaticPaymentSupply", _descriptor47, _assertThisInitialized(_this));
|
|
189
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "allowGroupBuy", _descriptor48, _assertThisInitialized(_this));
|
|
190
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "allowPaymentUpfront", _descriptor49, _assertThisInitialized(_this));
|
|
191
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "allowQuotation", _descriptor50, _assertThisInitialized(_this));
|
|
192
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "allowChainedInventoryCreation", _descriptor51, _assertThisInitialized(_this));
|
|
193
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "allowClientDraftContribution", _descriptor52, _assertThisInitialized(_this));
|
|
194
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "chainedInventoryHandlingUnitPrice", _descriptor53, _assertThisInitialized(_this));
|
|
195
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "bestPrice", _descriptor54, _assertThisInitialized(_this));
|
|
196
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unitVolume", _descriptor55, _assertThisInitialized(_this));
|
|
197
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "categories", _descriptor56, _assertThisInitialized(_this));
|
|
198
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "platformCategories", _descriptor57, _assertThisInitialized(_this));
|
|
199
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "discountGroups", _descriptor58, _assertThisInitialized(_this));
|
|
200
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "domain", _descriptor59, _assertThisInitialized(_this));
|
|
201
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "taxType", _descriptor60, _assertThisInitialized(_this));
|
|
202
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "originalProduct", _descriptor61, _assertThisInitialized(_this));
|
|
203
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "clonedFromProduct", _descriptor62, _assertThisInitialized(_this));
|
|
204
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "chainedSupplierProduct", _descriptor63, _assertThisInitialized(_this));
|
|
205
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "chainedSellerProducts", _descriptor64, _assertThisInitialized(_this));
|
|
206
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "chainedInventorySupplierProduct", _descriptor65, _assertThisInitialized(_this));
|
|
207
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "chainedInventorySellerProducts", _descriptor66, _assertThisInitialized(_this));
|
|
208
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "component", _descriptor67, _assertThisInitialized(_this));
|
|
209
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "images", _descriptor68, _assertThisInitialized(_this));
|
|
210
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "publicFiles", _descriptor69, _assertThisInitialized(_this));
|
|
211
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "productionFiles", _descriptor70, _assertThisInitialized(_this));
|
|
212
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "groupVariationFields", _descriptor71, _assertThisInitialized(_this));
|
|
213
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "independentVariationFields", _descriptor72, _assertThisInitialized(_this));
|
|
214
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "tags", _descriptor73, _assertThisInitialized(_this));
|
|
215
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "internalTags", _descriptor74, _assertThisInitialized(_this));
|
|
216
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "seoDomainPages", _descriptor75, _assertThisInitialized(_this));
|
|
217
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "featureImage", _descriptor76, _assertThisInitialized(_this));
|
|
218
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "createdByJob", _descriptor77, _assertThisInitialized(_this));
|
|
219
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "defaultJob", _descriptor78, _assertThisInitialized(_this));
|
|
220
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "savedByCompanies", _descriptor79, _assertThisInitialized(_this));
|
|
221
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "suppliedByDomains", _descriptor80, _assertThisInitialized(_this));
|
|
222
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "autoAssignProductionOnAction", _descriptor81, _assertThisInitialized(_this));
|
|
223
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "supplyDomains", _descriptor82, _assertThisInitialized(_this));
|
|
224
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "inventoriesOpen", _descriptor83, _assertThisInitialized(_this));
|
|
225
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "supplyChainDisabled", _descriptor84, _assertThisInitialized(_this));
|
|
226
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "inventories", _descriptor85, _assertThisInitialized(_this));
|
|
227
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "cartItems", _descriptor86, _assertThisInitialized(_this));
|
|
228
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "jobs", _descriptor87, _assertThisInitialized(_this));
|
|
229
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "supplyChainRequestJobs", _descriptor88, _assertThisInitialized(_this));
|
|
230
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "savedByUsers", _descriptor89, _assertThisInitialized(_this));
|
|
231
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "suppliers", _descriptor90, _assertThisInitialized(_this));
|
|
232
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "draftTemplates", _descriptor91, _assertThisInitialized(_this));
|
|
233
|
+
_defineProperty(_assertThisInitialized(_this), "duplicate", function () {
|
|
234
|
+
/* create a clone of this product on the backend, returning it. */
|
|
235
|
+
var constructor = _this.constructor;
|
|
236
|
+
var resourceName = constructor.resourceName;
|
|
237
|
+
var singularName = constructor.singularName;
|
|
238
|
+
var resource = "/".concat(resourceName, "/").concat(String(_this.id), "/copy/");
|
|
239
|
+
var fetchOptions = {
|
|
240
|
+
method: 'POST'
|
|
241
|
+
};
|
|
242
|
+
return _this.merchi.authenticatedFetch(resource, fetchOptions).then(function (data) {
|
|
243
|
+
var product = new _this.merchi.Product();
|
|
244
|
+
product.fromJson(data[singularName]);
|
|
245
|
+
return product;
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
_defineProperty(_assertThisInitialized(_this), "primaryImage", function () {
|
|
249
|
+
if (_this.featureImage === undefined) {
|
|
250
|
+
throw new Error('featureImage is undefined, did you forget to embed it?');
|
|
251
|
+
}
|
|
252
|
+
if (_this.images === undefined) {
|
|
253
|
+
throw new Error('images is undefined, did you forget to embed it?');
|
|
254
|
+
}
|
|
255
|
+
if (_this.featureImage !== null) {
|
|
256
|
+
return _this.featureImage;
|
|
257
|
+
}
|
|
258
|
+
if (_this.images.length > 0) {
|
|
259
|
+
return _this.images[0];
|
|
260
|
+
}
|
|
261
|
+
return null;
|
|
262
|
+
});
|
|
263
|
+
_defineProperty(_assertThisInitialized(_this), "hasGroupVariationFields", function () {
|
|
264
|
+
if (_this.groupVariationFields === undefined) {
|
|
265
|
+
var err = 'groupVariationFields is undefined, did you forget to embed' + ' it?';
|
|
266
|
+
throw new Error(err);
|
|
267
|
+
}
|
|
268
|
+
return _this.groupVariationFields.length > 0;
|
|
269
|
+
});
|
|
270
|
+
_defineProperty(_assertThisInitialized(_this), "hasIndependentVariationFields", function () {
|
|
271
|
+
if (_this.independentVariationFields === undefined) {
|
|
272
|
+
var err = 'independentVariationFields is undefined, did you forget to' + ' embed it?';
|
|
273
|
+
throw new Error(err);
|
|
274
|
+
}
|
|
275
|
+
return _this.independentVariationFields.length > 0;
|
|
276
|
+
});
|
|
277
|
+
_defineProperty(_assertThisInitialized(_this), "allVariationFields", function () {
|
|
278
|
+
if (_this.groupVariationFields === undefined) {
|
|
279
|
+
var err = 'groupVariationFields is undefined, did you forget to embed' + ' it?';
|
|
280
|
+
throw new Error(err);
|
|
281
|
+
}
|
|
282
|
+
if (_this.independentVariationFields === undefined) {
|
|
283
|
+
var _err = 'independentVariationFields is undefined, did you forget to' + ' embed it?';
|
|
284
|
+
throw new Error(_err);
|
|
285
|
+
}
|
|
286
|
+
var result = [];
|
|
287
|
+
return result.concat(_this.groupVariationFields, _this.independentVariationFields);
|
|
288
|
+
});
|
|
289
|
+
_defineProperty(_assertThisInitialized(_this), "buildEmptyVariations", function () {
|
|
290
|
+
if (_this.independentVariationFields === undefined) {
|
|
291
|
+
var err = 'independentVariationFields is undefined, did you forget to' + ' embed it?';
|
|
292
|
+
throw new Error(err);
|
|
293
|
+
}
|
|
294
|
+
var iVF = _.orderBy(_this.independentVariationFields, ['position'], ['asc']);
|
|
295
|
+
return iVF.map(function (field) {
|
|
296
|
+
return field.buildEmptyVariation();
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
_defineProperty(_assertThisInitialized(_this), "buildEmptyVariationGroup", function () {
|
|
300
|
+
if (_this.groupVariationFields === undefined) {
|
|
301
|
+
var err = 'groupVariationFields is undefined, did you forget to embed' + ' it?';
|
|
302
|
+
throw new Error(err);
|
|
303
|
+
}
|
|
304
|
+
var result = new _this.merchi.VariationsGroup();
|
|
305
|
+
var variations = [];
|
|
306
|
+
var cost = 0;
|
|
307
|
+
var sortedFields = _.orderBy(_this.groupVariationFields, ['position'], ['asc']);
|
|
308
|
+
result.quantity = 0;
|
|
309
|
+
var _iterator = _createForOfIteratorHelper(sortedFields),
|
|
310
|
+
_step;
|
|
311
|
+
try {
|
|
312
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
313
|
+
var variationField = _step.value;
|
|
314
|
+
var empty = variationField.buildEmptyVariation();
|
|
315
|
+
variations.push(empty);
|
|
316
|
+
cost += empty.cost;
|
|
317
|
+
}
|
|
318
|
+
} catch (err) {
|
|
319
|
+
_iterator.e(err);
|
|
320
|
+
} finally {
|
|
321
|
+
_iterator.f();
|
|
322
|
+
}
|
|
323
|
+
result.groupCost = cost;
|
|
324
|
+
result.variations = variations;
|
|
325
|
+
return result;
|
|
326
|
+
});
|
|
327
|
+
_defineProperty(_assertThisInitialized(_this), "removeVariationField", function (variationField) {
|
|
328
|
+
if (variationField.independent === undefined) {
|
|
329
|
+
throw new Error('variation.independent is undefined, did you ' + 'forget to embed it?');
|
|
330
|
+
}
|
|
331
|
+
if (_this.independentVariationFields === undefined) {
|
|
332
|
+
var err = 'independentVariationFields is undefined, did you forget to' + ' embed it?';
|
|
333
|
+
throw new Error(err);
|
|
334
|
+
}
|
|
335
|
+
if (_this.groupVariationFields === undefined) {
|
|
336
|
+
var _err2 = 'groupVariationFields is undefined, did you forget to embed' + ' it?';
|
|
337
|
+
throw new Error(_err2);
|
|
338
|
+
}
|
|
339
|
+
var variationFields = variationField.independent ? _this.independentVariationFields : _this.groupVariationFields;
|
|
340
|
+
var index = variationFields.findIndex(function (v) {
|
|
341
|
+
if (v.id === undefined) {
|
|
342
|
+
throw new Error('variation id is undefined, did you forget to ' + 'embed it?');
|
|
343
|
+
}
|
|
344
|
+
return v.id === variationField.id;
|
|
345
|
+
});
|
|
346
|
+
return variationFields.splice(index, 1);
|
|
347
|
+
});
|
|
348
|
+
return _this;
|
|
349
|
+
}
|
|
350
|
+
return _createClass(Product);
|
|
351
|
+
}(Entity), _defineProperty(_Product, "resourceName", 'products'), _defineProperty(_Product, "singularName", 'product'), _defineProperty(_Product, "pluralName", 'products'), _Product), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
352
|
+
configurable: true,
|
|
353
|
+
enumerable: true,
|
|
354
|
+
writable: true,
|
|
355
|
+
initializer: null
|
|
356
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "id", [_dec2], {
|
|
357
|
+
configurable: true,
|
|
358
|
+
enumerable: true,
|
|
359
|
+
writable: true,
|
|
360
|
+
initializer: null
|
|
361
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "created", [_dec3], {
|
|
362
|
+
configurable: true,
|
|
363
|
+
enumerable: true,
|
|
364
|
+
writable: true,
|
|
365
|
+
initializer: null
|
|
366
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "updated", [_dec4], {
|
|
367
|
+
configurable: true,
|
|
368
|
+
enumerable: true,
|
|
369
|
+
writable: true,
|
|
370
|
+
initializer: null
|
|
371
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "createdBy", [_dec5], {
|
|
372
|
+
configurable: true,
|
|
373
|
+
enumerable: true,
|
|
374
|
+
writable: true,
|
|
375
|
+
initializer: null
|
|
376
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "updatedBy", [_dec6], {
|
|
377
|
+
configurable: true,
|
|
378
|
+
enumerable: true,
|
|
379
|
+
writable: true,
|
|
380
|
+
initializer: null
|
|
381
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "productType", [_dec7], {
|
|
382
|
+
configurable: true,
|
|
383
|
+
enumerable: true,
|
|
384
|
+
writable: true,
|
|
385
|
+
initializer: null
|
|
386
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "minimum", [_dec8], {
|
|
387
|
+
configurable: true,
|
|
388
|
+
enumerable: true,
|
|
389
|
+
writable: true,
|
|
390
|
+
initializer: null
|
|
391
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "minimumPerGroup", [_dec9], {
|
|
392
|
+
configurable: true,
|
|
393
|
+
enumerable: true,
|
|
394
|
+
writable: true,
|
|
395
|
+
initializer: null
|
|
396
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "deliveryDaysNormal", [_dec10], {
|
|
397
|
+
configurable: true,
|
|
398
|
+
enumerable: true,
|
|
399
|
+
writable: true,
|
|
400
|
+
initializer: null
|
|
401
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "unitPrice", [_dec11], {
|
|
402
|
+
configurable: true,
|
|
403
|
+
enumerable: true,
|
|
404
|
+
writable: true,
|
|
405
|
+
initializer: null
|
|
406
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, "buyUnitPrice", [_dec12], {
|
|
407
|
+
configurable: true,
|
|
408
|
+
enumerable: true,
|
|
409
|
+
writable: true,
|
|
410
|
+
initializer: null
|
|
411
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, "unitPriceDiscountGroup", [_dec13], {
|
|
412
|
+
configurable: true,
|
|
413
|
+
enumerable: true,
|
|
414
|
+
writable: true,
|
|
415
|
+
initializer: null
|
|
416
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, "shipmentMethods", [_dec14], {
|
|
417
|
+
configurable: true,
|
|
418
|
+
enumerable: true,
|
|
419
|
+
writable: true,
|
|
420
|
+
initializer: null
|
|
421
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, "margin", [_dec15], {
|
|
422
|
+
configurable: true,
|
|
423
|
+
enumerable: true,
|
|
424
|
+
writable: true,
|
|
425
|
+
initializer: null
|
|
426
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, "unitWeight", [_dec16], {
|
|
427
|
+
configurable: true,
|
|
428
|
+
enumerable: true,
|
|
429
|
+
writable: true,
|
|
430
|
+
initializer: null
|
|
431
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, "unitHeight", [_dec17], {
|
|
432
|
+
configurable: true,
|
|
433
|
+
enumerable: true,
|
|
434
|
+
writable: true,
|
|
435
|
+
initializer: null
|
|
436
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, "unitWidth", [_dec18], {
|
|
437
|
+
configurable: true,
|
|
438
|
+
enumerable: true,
|
|
439
|
+
writable: true,
|
|
440
|
+
initializer: null
|
|
441
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, "unitDepth", [_dec19], {
|
|
442
|
+
configurable: true,
|
|
443
|
+
enumerable: true,
|
|
444
|
+
writable: true,
|
|
445
|
+
initializer: null
|
|
446
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, "name", [_dec20], {
|
|
447
|
+
configurable: true,
|
|
448
|
+
enumerable: true,
|
|
449
|
+
writable: true,
|
|
450
|
+
initializer: null
|
|
451
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, "country", [_dec21], {
|
|
452
|
+
configurable: true,
|
|
453
|
+
enumerable: true,
|
|
454
|
+
writable: true,
|
|
455
|
+
initializer: null
|
|
456
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, "currency", [_dec22], {
|
|
457
|
+
configurable: true,
|
|
458
|
+
enumerable: true,
|
|
459
|
+
writable: true,
|
|
460
|
+
initializer: null
|
|
461
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, "description", [_dec23], {
|
|
462
|
+
configurable: true,
|
|
463
|
+
enumerable: true,
|
|
464
|
+
writable: true,
|
|
465
|
+
initializer: null
|
|
466
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, "notes", [_dec24], {
|
|
467
|
+
configurable: true,
|
|
468
|
+
enumerable: true,
|
|
469
|
+
writable: true,
|
|
470
|
+
initializer: null
|
|
471
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, "internalUseNotes", [_dec25], {
|
|
472
|
+
configurable: true,
|
|
473
|
+
enumerable: true,
|
|
474
|
+
writable: true,
|
|
475
|
+
initializer: null
|
|
476
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, "internalUseAiContext", [_dec26], {
|
|
477
|
+
configurable: true,
|
|
478
|
+
enumerable: true,
|
|
479
|
+
writable: true,
|
|
480
|
+
initializer: null
|
|
481
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, "aiContext", [_dec27], {
|
|
482
|
+
configurable: true,
|
|
483
|
+
enumerable: true,
|
|
484
|
+
writable: true,
|
|
485
|
+
initializer: null
|
|
486
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, "shopifyProductId", [_dec28], {
|
|
487
|
+
configurable: true,
|
|
488
|
+
enumerable: true,
|
|
489
|
+
writable: true,
|
|
490
|
+
initializer: null
|
|
491
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, "useCompanyShipmentMethods", [_dec29], {
|
|
492
|
+
configurable: true,
|
|
493
|
+
enumerable: true,
|
|
494
|
+
writable: true,
|
|
495
|
+
initializer: null
|
|
496
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, "dropShipment", [_dec30], {
|
|
497
|
+
configurable: true,
|
|
498
|
+
enumerable: true,
|
|
499
|
+
writable: true,
|
|
500
|
+
initializer: null
|
|
501
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, "needsDrafting", [_dec31], {
|
|
502
|
+
configurable: true,
|
|
503
|
+
enumerable: true,
|
|
504
|
+
writable: true,
|
|
505
|
+
initializer: null
|
|
506
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, "needsProduction", [_dec32], {
|
|
507
|
+
configurable: true,
|
|
508
|
+
enumerable: true,
|
|
509
|
+
writable: true,
|
|
510
|
+
initializer: null
|
|
511
|
+
}), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, "needsShipping", [_dec33], {
|
|
512
|
+
configurable: true,
|
|
513
|
+
enumerable: true,
|
|
514
|
+
writable: true,
|
|
515
|
+
initializer: null
|
|
516
|
+
}), _descriptor34 = _applyDecoratedDescriptor(_class.prototype, "needsInvoicing", [_dec34], {
|
|
517
|
+
configurable: true,
|
|
518
|
+
enumerable: true,
|
|
519
|
+
writable: true,
|
|
520
|
+
initializer: null
|
|
521
|
+
}), _descriptor35 = _applyDecoratedDescriptor(_class.prototype, "needsInventory", [_dec35], {
|
|
522
|
+
configurable: true,
|
|
523
|
+
enumerable: true,
|
|
524
|
+
writable: true,
|
|
525
|
+
initializer: null
|
|
526
|
+
}), _descriptor36 = _applyDecoratedDescriptor(_class.prototype, "featureDeadline", [_dec36], {
|
|
527
|
+
configurable: true,
|
|
528
|
+
enumerable: true,
|
|
529
|
+
writable: true,
|
|
530
|
+
initializer: null
|
|
531
|
+
}), _descriptor37 = _applyDecoratedDescriptor(_class.prototype, "showFeatureDeadline", [_dec37], {
|
|
532
|
+
configurable: true,
|
|
533
|
+
enumerable: true,
|
|
534
|
+
writable: true,
|
|
535
|
+
initializer: null
|
|
536
|
+
}), _descriptor38 = _applyDecoratedDescriptor(_class.prototype, "showPublic", [_dec38], {
|
|
537
|
+
configurable: true,
|
|
538
|
+
enumerable: true,
|
|
539
|
+
writable: true,
|
|
540
|
+
initializer: null
|
|
541
|
+
}), _descriptor39 = _applyDecoratedDescriptor(_class.prototype, "showGroupBuyStatus", [_dec39], {
|
|
542
|
+
configurable: true,
|
|
543
|
+
enumerable: true,
|
|
544
|
+
writable: true,
|
|
545
|
+
initializer: null
|
|
546
|
+
}), _descriptor40 = _applyDecoratedDescriptor(_class.prototype, "groupBuyStatus", [_dec40], {
|
|
547
|
+
configurable: true,
|
|
548
|
+
enumerable: true,
|
|
549
|
+
writable: true,
|
|
550
|
+
initializer: null
|
|
551
|
+
}), _descriptor41 = _applyDecoratedDescriptor(_class.prototype, "acceptSquare", [_dec41], {
|
|
552
|
+
configurable: true,
|
|
553
|
+
enumerable: true,
|
|
554
|
+
writable: true,
|
|
555
|
+
initializer: null
|
|
556
|
+
}), _descriptor42 = _applyDecoratedDescriptor(_class.prototype, "acceptStripe", [_dec42], {
|
|
557
|
+
configurable: true,
|
|
558
|
+
enumerable: true,
|
|
559
|
+
writable: true,
|
|
560
|
+
initializer: null
|
|
561
|
+
}), _descriptor43 = _applyDecoratedDescriptor(_class.prototype, "acceptPaypal", [_dec43], {
|
|
562
|
+
configurable: true,
|
|
563
|
+
enumerable: true,
|
|
564
|
+
writable: true,
|
|
565
|
+
initializer: null
|
|
566
|
+
}), _descriptor44 = _applyDecoratedDescriptor(_class.prototype, "acceptUtrust", [_dec44], {
|
|
567
|
+
configurable: true,
|
|
568
|
+
enumerable: true,
|
|
569
|
+
writable: true,
|
|
570
|
+
initializer: null
|
|
571
|
+
}), _descriptor45 = _applyDecoratedDescriptor(_class.prototype, "acceptBankTransfer", [_dec45], {
|
|
572
|
+
configurable: true,
|
|
573
|
+
enumerable: true,
|
|
574
|
+
writable: true,
|
|
575
|
+
initializer: null
|
|
576
|
+
}), _descriptor46 = _applyDecoratedDescriptor(_class.prototype, "acceptPhonePayment", [_dec46], {
|
|
577
|
+
configurable: true,
|
|
578
|
+
enumerable: true,
|
|
579
|
+
writable: true,
|
|
580
|
+
initializer: null
|
|
581
|
+
}), _descriptor47 = _applyDecoratedDescriptor(_class.prototype, "allowAutomaticPaymentSupply", [_dec47], {
|
|
582
|
+
configurable: true,
|
|
583
|
+
enumerable: true,
|
|
584
|
+
writable: true,
|
|
585
|
+
initializer: null
|
|
586
|
+
}), _descriptor48 = _applyDecoratedDescriptor(_class.prototype, "allowGroupBuy", [_dec48], {
|
|
587
|
+
configurable: true,
|
|
588
|
+
enumerable: true,
|
|
589
|
+
writable: true,
|
|
590
|
+
initializer: null
|
|
591
|
+
}), _descriptor49 = _applyDecoratedDescriptor(_class.prototype, "allowPaymentUpfront", [_dec49], {
|
|
592
|
+
configurable: true,
|
|
593
|
+
enumerable: true,
|
|
594
|
+
writable: true,
|
|
595
|
+
initializer: null
|
|
596
|
+
}), _descriptor50 = _applyDecoratedDescriptor(_class.prototype, "allowQuotation", [_dec50], {
|
|
597
|
+
configurable: true,
|
|
598
|
+
enumerable: true,
|
|
599
|
+
writable: true,
|
|
600
|
+
initializer: null
|
|
601
|
+
}), _descriptor51 = _applyDecoratedDescriptor(_class.prototype, "allowChainedInventoryCreation", [_dec51], {
|
|
602
|
+
configurable: true,
|
|
603
|
+
enumerable: true,
|
|
604
|
+
writable: true,
|
|
605
|
+
initializer: null
|
|
606
|
+
}), _descriptor52 = _applyDecoratedDescriptor(_class.prototype, "allowClientDraftContribution", [_dec52], {
|
|
607
|
+
configurable: true,
|
|
608
|
+
enumerable: true,
|
|
609
|
+
writable: true,
|
|
610
|
+
initializer: null
|
|
611
|
+
}), _descriptor53 = _applyDecoratedDescriptor(_class.prototype, "chainedInventoryHandlingUnitPrice", [_dec53], {
|
|
612
|
+
configurable: true,
|
|
613
|
+
enumerable: true,
|
|
614
|
+
writable: true,
|
|
615
|
+
initializer: null
|
|
616
|
+
}), _descriptor54 = _applyDecoratedDescriptor(_class.prototype, "bestPrice", [_dec54], {
|
|
617
|
+
configurable: true,
|
|
618
|
+
enumerable: true,
|
|
619
|
+
writable: true,
|
|
620
|
+
initializer: null
|
|
621
|
+
}), _descriptor55 = _applyDecoratedDescriptor(_class.prototype, "unitVolume", [_dec55], {
|
|
622
|
+
configurable: true,
|
|
623
|
+
enumerable: true,
|
|
624
|
+
writable: true,
|
|
625
|
+
initializer: null
|
|
626
|
+
}), _descriptor56 = _applyDecoratedDescriptor(_class.prototype, "categories", [_dec56], {
|
|
627
|
+
configurable: true,
|
|
628
|
+
enumerable: true,
|
|
629
|
+
writable: true,
|
|
630
|
+
initializer: null
|
|
631
|
+
}), _descriptor57 = _applyDecoratedDescriptor(_class.prototype, "platformCategories", [_dec57], {
|
|
632
|
+
configurable: true,
|
|
633
|
+
enumerable: true,
|
|
634
|
+
writable: true,
|
|
635
|
+
initializer: null
|
|
636
|
+
}), _descriptor58 = _applyDecoratedDescriptor(_class.prototype, "discountGroups", [_dec58], {
|
|
637
|
+
configurable: true,
|
|
638
|
+
enumerable: true,
|
|
639
|
+
writable: true,
|
|
640
|
+
initializer: null
|
|
641
|
+
}), _descriptor59 = _applyDecoratedDescriptor(_class.prototype, "domain", [_dec59], {
|
|
642
|
+
configurable: true,
|
|
643
|
+
enumerable: true,
|
|
644
|
+
writable: true,
|
|
645
|
+
initializer: null
|
|
646
|
+
}), _descriptor60 = _applyDecoratedDescriptor(_class.prototype, "taxType", [_dec60], {
|
|
647
|
+
configurable: true,
|
|
648
|
+
enumerable: true,
|
|
649
|
+
writable: true,
|
|
650
|
+
initializer: null
|
|
651
|
+
}), _descriptor61 = _applyDecoratedDescriptor(_class.prototype, "originalProduct", [_dec61], {
|
|
652
|
+
configurable: true,
|
|
653
|
+
enumerable: true,
|
|
654
|
+
writable: true,
|
|
655
|
+
initializer: null
|
|
656
|
+
}), _descriptor62 = _applyDecoratedDescriptor(_class.prototype, "clonedFromProduct", [_dec62], {
|
|
657
|
+
configurable: true,
|
|
658
|
+
enumerable: true,
|
|
659
|
+
writable: true,
|
|
660
|
+
initializer: null
|
|
661
|
+
}), _descriptor63 = _applyDecoratedDescriptor(_class.prototype, "chainedSupplierProduct", [_dec63], {
|
|
662
|
+
configurable: true,
|
|
663
|
+
enumerable: true,
|
|
664
|
+
writable: true,
|
|
665
|
+
initializer: null
|
|
666
|
+
}), _descriptor64 = _applyDecoratedDescriptor(_class.prototype, "chainedSellerProducts", [_dec64], {
|
|
667
|
+
configurable: true,
|
|
668
|
+
enumerable: true,
|
|
669
|
+
writable: true,
|
|
670
|
+
initializer: null
|
|
671
|
+
}), _descriptor65 = _applyDecoratedDescriptor(_class.prototype, "chainedInventorySupplierProduct", [_dec65], {
|
|
672
|
+
configurable: true,
|
|
673
|
+
enumerable: true,
|
|
674
|
+
writable: true,
|
|
675
|
+
initializer: null
|
|
676
|
+
}), _descriptor66 = _applyDecoratedDescriptor(_class.prototype, "chainedInventorySellerProducts", [_dec66], {
|
|
677
|
+
configurable: true,
|
|
678
|
+
enumerable: true,
|
|
679
|
+
writable: true,
|
|
680
|
+
initializer: null
|
|
681
|
+
}), _descriptor67 = _applyDecoratedDescriptor(_class.prototype, "component", [_dec67], {
|
|
682
|
+
configurable: true,
|
|
683
|
+
enumerable: true,
|
|
684
|
+
writable: true,
|
|
685
|
+
initializer: null
|
|
686
|
+
}), _descriptor68 = _applyDecoratedDescriptor(_class.prototype, "images", [_dec68], {
|
|
687
|
+
configurable: true,
|
|
688
|
+
enumerable: true,
|
|
689
|
+
writable: true,
|
|
690
|
+
initializer: null
|
|
691
|
+
}), _descriptor69 = _applyDecoratedDescriptor(_class.prototype, "publicFiles", [_dec69], {
|
|
692
|
+
configurable: true,
|
|
693
|
+
enumerable: true,
|
|
694
|
+
writable: true,
|
|
695
|
+
initializer: null
|
|
696
|
+
}), _descriptor70 = _applyDecoratedDescriptor(_class.prototype, "productionFiles", [_dec70], {
|
|
697
|
+
configurable: true,
|
|
698
|
+
enumerable: true,
|
|
699
|
+
writable: true,
|
|
700
|
+
initializer: null
|
|
701
|
+
}), _descriptor71 = _applyDecoratedDescriptor(_class.prototype, "groupVariationFields", [_dec71], {
|
|
702
|
+
configurable: true,
|
|
703
|
+
enumerable: true,
|
|
704
|
+
writable: true,
|
|
705
|
+
initializer: null
|
|
706
|
+
}), _descriptor72 = _applyDecoratedDescriptor(_class.prototype, "independentVariationFields", [_dec72], {
|
|
707
|
+
configurable: true,
|
|
708
|
+
enumerable: true,
|
|
709
|
+
writable: true,
|
|
710
|
+
initializer: null
|
|
711
|
+
}), _descriptor73 = _applyDecoratedDescriptor(_class.prototype, "tags", [_dec73], {
|
|
712
|
+
configurable: true,
|
|
713
|
+
enumerable: true,
|
|
714
|
+
writable: true,
|
|
715
|
+
initializer: null
|
|
716
|
+
}), _descriptor74 = _applyDecoratedDescriptor(_class.prototype, "internalTags", [_dec74], {
|
|
717
|
+
configurable: true,
|
|
718
|
+
enumerable: true,
|
|
719
|
+
writable: true,
|
|
720
|
+
initializer: null
|
|
721
|
+
}), _descriptor75 = _applyDecoratedDescriptor(_class.prototype, "seoDomainPages", [_dec75], {
|
|
722
|
+
configurable: true,
|
|
723
|
+
enumerable: true,
|
|
724
|
+
writable: true,
|
|
725
|
+
initializer: null
|
|
726
|
+
}), _descriptor76 = _applyDecoratedDescriptor(_class.prototype, "featureImage", [_dec76], {
|
|
727
|
+
configurable: true,
|
|
728
|
+
enumerable: true,
|
|
729
|
+
writable: true,
|
|
730
|
+
initializer: null
|
|
731
|
+
}), _descriptor77 = _applyDecoratedDescriptor(_class.prototype, "createdByJob", [_dec77], {
|
|
732
|
+
configurable: true,
|
|
733
|
+
enumerable: true,
|
|
734
|
+
writable: true,
|
|
735
|
+
initializer: null
|
|
736
|
+
}), _descriptor78 = _applyDecoratedDescriptor(_class.prototype, "defaultJob", [_dec78], {
|
|
737
|
+
configurable: true,
|
|
738
|
+
enumerable: true,
|
|
739
|
+
writable: true,
|
|
740
|
+
initializer: null
|
|
741
|
+
}), _descriptor79 = _applyDecoratedDescriptor(_class.prototype, "savedByCompanies", [_dec79], {
|
|
742
|
+
configurable: true,
|
|
743
|
+
enumerable: true,
|
|
744
|
+
writable: true,
|
|
745
|
+
initializer: null
|
|
746
|
+
}), _descriptor80 = _applyDecoratedDescriptor(_class.prototype, "suppliedByDomains", [_dec80], {
|
|
747
|
+
configurable: true,
|
|
748
|
+
enumerable: true,
|
|
749
|
+
writable: true,
|
|
750
|
+
initializer: null
|
|
751
|
+
}), _descriptor81 = _applyDecoratedDescriptor(_class.prototype, "autoAssignProductionOnAction", [_dec81], {
|
|
752
|
+
configurable: true,
|
|
753
|
+
enumerable: true,
|
|
754
|
+
writable: true,
|
|
755
|
+
initializer: null
|
|
756
|
+
}), _descriptor82 = _applyDecoratedDescriptor(_class.prototype, "supplyDomains", [_dec82], {
|
|
757
|
+
configurable: true,
|
|
758
|
+
enumerable: true,
|
|
759
|
+
writable: true,
|
|
760
|
+
initializer: null
|
|
761
|
+
}), _descriptor83 = _applyDecoratedDescriptor(_class.prototype, "inventoriesOpen", [_dec83], {
|
|
762
|
+
configurable: true,
|
|
763
|
+
enumerable: true,
|
|
764
|
+
writable: true,
|
|
765
|
+
initializer: null
|
|
766
|
+
}), _descriptor84 = _applyDecoratedDescriptor(_class.prototype, "supplyChainDisabled", [_dec84], {
|
|
767
|
+
configurable: true,
|
|
768
|
+
enumerable: true,
|
|
769
|
+
writable: true,
|
|
770
|
+
initializer: null
|
|
771
|
+
}), _descriptor85 = _applyDecoratedDescriptor(_class.prototype, "inventories", [_dec85], {
|
|
772
|
+
configurable: true,
|
|
773
|
+
enumerable: true,
|
|
774
|
+
writable: true,
|
|
775
|
+
initializer: null
|
|
776
|
+
}), _descriptor86 = _applyDecoratedDescriptor(_class.prototype, "cartItems", [_dec86], {
|
|
777
|
+
configurable: true,
|
|
778
|
+
enumerable: true,
|
|
779
|
+
writable: true,
|
|
780
|
+
initializer: null
|
|
781
|
+
}), _descriptor87 = _applyDecoratedDescriptor(_class.prototype, "jobs", [_dec87], {
|
|
782
|
+
configurable: true,
|
|
783
|
+
enumerable: true,
|
|
784
|
+
writable: true,
|
|
785
|
+
initializer: null
|
|
786
|
+
}), _descriptor88 = _applyDecoratedDescriptor(_class.prototype, "supplyChainRequestJobs", [_dec88], {
|
|
787
|
+
configurable: true,
|
|
788
|
+
enumerable: true,
|
|
789
|
+
writable: true,
|
|
790
|
+
initializer: null
|
|
791
|
+
}), _descriptor89 = _applyDecoratedDescriptor(_class.prototype, "savedByUsers", [_dec89], {
|
|
792
|
+
configurable: true,
|
|
793
|
+
enumerable: true,
|
|
794
|
+
writable: true,
|
|
795
|
+
initializer: null
|
|
796
|
+
}), _descriptor90 = _applyDecoratedDescriptor(_class.prototype, "suppliers", [_dec90], {
|
|
797
|
+
configurable: true,
|
|
798
|
+
enumerable: true,
|
|
799
|
+
writable: true,
|
|
800
|
+
initializer: null
|
|
801
|
+
}), _descriptor91 = _applyDecoratedDescriptor(_class.prototype, "draftTemplates", [_dec91], {
|
|
802
|
+
configurable: true,
|
|
803
|
+
enumerable: true,
|
|
804
|
+
writable: true,
|
|
805
|
+
initializer: null
|
|
806
|
+
})), _class));
|