@merchi/sdk 1.40.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/.eslintrc.cjs +43 -0
- package/.turbo/turbo-build.log +1 -0
- package/.turbo/turbo-test.log +849 -0
- package/LICENSE +21 -0
- package/README.md +244 -0
- package/coverage/clover.xml +5057 -0
- package/coverage/coverage-final.json +133 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +191 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +210 -0
- package/coverage/lcov-report/src/constants/auto_assign_production_on_actions.ts.html +103 -0
- package/coverage/lcov-report/src/constants/call_to_actions.ts.html +127 -0
- package/coverage/lcov-report/src/constants/discount_types.ts.html +100 -0
- package/coverage/lcov-report/src/constants/domain_types.ts.html +121 -0
- package/coverage/lcov-report/src/constants/errors.ts.html +181 -0
- package/coverage/lcov-report/src/constants/event_types.ts.html +100 -0
- package/coverage/lcov-report/src/constants/field_types.ts.html +133 -0
- package/coverage/lcov-report/src/constants/index.html +551 -0
- package/coverage/lcov-report/src/constants/index.ts.html +238 -0
- package/coverage/lcov-report/src/constants/input_types.ts.html +124 -0
- package/coverage/lcov-report/src/constants/inventory_statuses.ts.html +103 -0
- package/coverage/lcov-report/src/constants/invoice_types.ts.html +100 -0
- package/coverage/lcov-report/src/constants/item_types.ts.html +100 -0
- package/coverage/lcov-report/src/constants/job/drafting_status.ts.html +106 -0
- package/coverage/lcov-report/src/constants/job/index.html +176 -0
- package/coverage/lcov-report/src/constants/job/payment_status.ts.html +106 -0
- package/coverage/lcov-report/src/constants/job/production_status.ts.html +121 -0
- package/coverage/lcov-report/src/constants/job/shipment_status.ts.html +118 -0
- package/coverage/lcov-report/src/constants/job/supply_chain_request_status.ts.html +103 -0
- package/coverage/lcov-report/src/constants/job_priorities.ts.html +103 -0
- package/coverage/lcov-report/src/constants/job_status.ts.html +232 -0
- package/coverage/lcov-report/src/constants/job_types.ts.html +133 -0
- package/coverage/lcov-report/src/constants/notification_sections.ts.html +124 -0
- package/coverage/lcov-report/src/constants/notification_types.ts.html +385 -0
- package/coverage/lcov-report/src/constants/notification_urgencies.ts.html +106 -0
- package/coverage/lcov-report/src/constants/payment_types.ts.html +115 -0
- package/coverage/lcov-report/src/constants/platform.ts.html +103 -0
- package/coverage/lcov-report/src/constants/product_types.ts.html +163 -0
- package/coverage/lcov-report/src/constants/rights.ts.html +100 -0
- package/coverage/lcov-report/src/constants/robots_meta_directives.ts.html +118 -0
- package/coverage/lcov-report/src/constants/roles.ts.html +223 -0
- package/coverage/lcov-report/src/constants/shipment_companies.ts.html +142 -0
- package/coverage/lcov-report/src/constants/shipment_services.ts.html +94 -0
- package/coverage/lcov-report/src/constants/system_roles.ts.html +94 -0
- package/coverage/lcov-report/src/constants/theme_status.ts.html +100 -0
- package/coverage/lcov-report/src/constants/user_types.ts.html +136 -0
- package/coverage/lcov-report/src/constants/white_label_accessibilities.ts.html +103 -0
- package/coverage/lcov-report/src/cookie.ts.html +133 -0
- package/coverage/lcov-report/src/entities/address.ts.html +280 -0
- package/coverage/lcov-report/src/entities/agent_conversation.ts.html +202 -0
- package/coverage/lcov-report/src/entities/agent_skill.ts.html +382 -0
- package/coverage/lcov-report/src/entities/agent_skill_approval.ts.html +163 -0
- package/coverage/lcov-report/src/entities/agent_skill_version.ts.html +277 -0
- package/coverage/lcov-report/src/entities/agent_token_usage.ts.html +349 -0
- package/coverage/lcov-report/src/entities/assignment.ts.html +382 -0
- package/coverage/lcov-report/src/entities/automatic_payment_relationship.ts.html +172 -0
- package/coverage/lcov-report/src/entities/bank.ts.html +220 -0
- package/coverage/lcov-report/src/entities/cart.ts.html +391 -0
- package/coverage/lcov-report/src/entities/cart_item.ts.html +340 -0
- package/coverage/lcov-report/src/entities/cart_shipment_group.ts.html +148 -0
- package/coverage/lcov-report/src/entities/cart_shipment_quote.ts.html +184 -0
- package/coverage/lcov-report/src/entities/category.ts.html +262 -0
- package/coverage/lcov-report/src/entities/company.ts.html +1276 -0
- package/coverage/lcov-report/src/entities/company_invitation.ts.html +184 -0
- package/coverage/lcov-report/src/entities/country_tax.ts.html +223 -0
- package/coverage/lcov-report/src/entities/discount.ts.html +235 -0
- package/coverage/lcov-report/src/entities/discount_group.ts.html +214 -0
- package/coverage/lcov-report/src/entities/domain.ts.html +3349 -0
- package/coverage/lcov-report/src/entities/domain_chat_settings.ts.html +331 -0
- package/coverage/lcov-report/src/entities/domain_invitation.ts.html +193 -0
- package/coverage/lcov-report/src/entities/domain_tag.ts.html +211 -0
- package/coverage/lcov-report/src/entities/draft.ts.html +322 -0
- package/coverage/lcov-report/src/entities/draft_comment.ts.html +274 -0
- package/coverage/lcov-report/src/entities/draft_preview.ts.html +196 -0
- package/coverage/lcov-report/src/entities/draft_preview_layer.ts.html +148 -0
- package/coverage/lcov-report/src/entities/draft_template.ts.html +328 -0
- package/coverage/lcov-report/src/entities/email_address.ts.html +157 -0
- package/coverage/lcov-report/src/entities/email_counter.ts.html +145 -0
- package/coverage/lcov-report/src/entities/enrolled_domain.ts.html +205 -0
- package/coverage/lcov-report/src/entities/exchange_rate.ts.html +151 -0
- package/coverage/lcov-report/src/entities/file.ts.html +580 -0
- package/coverage/lcov-report/src/entities/index.html +1271 -0
- package/coverage/lcov-report/src/entities/internal_tag.ts.html +238 -0
- package/coverage/lcov-report/src/entities/inventory.ts.html +274 -0
- package/coverage/lcov-report/src/entities/inventory_group.ts.html +193 -0
- package/coverage/lcov-report/src/entities/inventory_unit_variation.ts.html +172 -0
- package/coverage/lcov-report/src/entities/invoice.ts.html +661 -0
- package/coverage/lcov-report/src/entities/item.ts.html +262 -0
- package/coverage/lcov-report/src/entities/job.ts.html +1288 -0
- package/coverage/lcov-report/src/entities/job_comment.ts.html +244 -0
- package/coverage/lcov-report/src/entities/job_note.ts.html +205 -0
- package/coverage/lcov-report/src/entities/job_operation_log.ts.html +208 -0
- package/coverage/lcov-report/src/entities/matching_inventory.ts.html +172 -0
- package/coverage/lcov-report/src/entities/notification.ts.html +403 -0
- package/coverage/lcov-report/src/entities/payment.ts.html +316 -0
- package/coverage/lcov-report/src/entities/payment_device.ts.html +175 -0
- package/coverage/lcov-report/src/entities/phone_number.ts.html +193 -0
- package/coverage/lcov-report/src/entities/product.ts.html +1543 -0
- package/coverage/lcov-report/src/entities/product_form.ts.html +238 -0
- package/coverage/lcov-report/src/entities/product_form_version.ts.html +238 -0
- package/coverage/lcov-report/src/entities/product_review.ts.html +748 -0
- package/coverage/lcov-report/src/entities/production_comment.ts.html +244 -0
- package/coverage/lcov-report/src/entities/quote.ts.html +505 -0
- package/coverage/lcov-report/src/entities/quote_item.ts.html +298 -0
- package/coverage/lcov-report/src/entities/reminder.ts.html +307 -0
- package/coverage/lcov-report/src/entities/session.ts.html +169 -0
- package/coverage/lcov-report/src/entities/shipment.ts.html +673 -0
- package/coverage/lcov-report/src/entities/shipment_item.ts.html +130 -0
- package/coverage/lcov-report/src/entities/shipment_item_fulfillment.ts.html +130 -0
- package/coverage/lcov-report/src/entities/shipment_log.ts.html +196 -0
- package/coverage/lcov-report/src/entities/shipment_method.ts.html +268 -0
- package/coverage/lcov-report/src/entities/shipment_method_variation.ts.html +202 -0
- package/coverage/lcov-report/src/entities/short_url.ts.html +193 -0
- package/coverage/lcov-report/src/entities/subscription_plan.ts.html +304 -0
- package/coverage/lcov-report/src/entities/supply_domain.ts.html +166 -0
- package/coverage/lcov-report/src/entities/support_conversation.ts.html +280 -0
- package/coverage/lcov-report/src/entities/support_message.ts.html +175 -0
- package/coverage/lcov-report/src/entities/system_role.ts.html +136 -0
- package/coverage/lcov-report/src/entities/theme.ts.html +331 -0
- package/coverage/lcov-report/src/entities/theme_css_setting.ts.html +154 -0
- package/coverage/lcov-report/src/entities/user.ts.html +1369 -0
- package/coverage/lcov-report/src/entities/user_company.ts.html +166 -0
- package/coverage/lcov-report/src/entities/variation.ts.html +277 -0
- package/coverage/lcov-report/src/entities/variation_field.ts.html +889 -0
- package/coverage/lcov-report/src/entities/variation_fields_option.ts.html +406 -0
- package/coverage/lcov-report/src/entities/variation_option.ts.html +259 -0
- package/coverage/lcov-report/src/entities/variations_group.ts.html +208 -0
- package/coverage/lcov-report/src/entity.ts.html +3379 -0
- package/coverage/lcov-report/src/index.html +221 -0
- package/coverage/lcov-report/src/index.ts.html +652 -0
- package/coverage/lcov-report/src/merchi.ts.html +1420 -0
- package/coverage/lcov-report/src/pricing/discount.ts.html +136 -0
- package/coverage/lcov-report/src/pricing/estimate.ts.html +1015 -0
- package/coverage/lcov-report/src/pricing/index.html +206 -0
- package/coverage/lcov-report/src/pricing/index.ts.html +106 -0
- package/coverage/lcov-report/src/pricing/inventory.ts.html +352 -0
- package/coverage/lcov-report/src/pricing/matrix.ts.html +736 -0
- package/coverage/lcov-report/src/pricing/round.ts.html +166 -0
- package/coverage/lcov-report/src/pricing/visibility.ts.html +418 -0
- package/coverage/lcov-report/src/request.ts.html +673 -0
- package/coverage/lcov-report/src/test_util.ts.html +139 -0
- package/coverage/lcov-report/src/toasts.ts.html +187 -0
- package/coverage/lcov-report/src/util/float.ts.html +121 -0
- package/coverage/lcov-report/src/util/index.html +161 -0
- package/coverage/lcov-report/src/util/index.ts.html +106 -0
- package/coverage/lcov-report/src/util/query_string.ts.html +124 -0
- package/coverage/lcov-report/src/util/validation.ts.html +91 -0
- package/coverage/lcov-report/src/uuid.ts.html +109 -0
- package/coverage/lcov.info +7758 -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 +6 -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 +17 -0
- package/dist/constants/field_types.test.js +4 -0
- package/dist/constants/index.js +25 -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 +17 -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 +101 -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 +27 -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 +11 -0
- package/dist/constants/robots_meta_directives.test.js +4 -0
- package/dist/constants/roles.js +64 -0
- package/dist/constants/roles.test.js +4 -0
- package/dist/constants/shipment_companies.js +20 -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_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 +15 -0
- package/dist/cookie.test.js +10 -0
- package/dist/entities/address.js +104 -0
- package/dist/entities/address.test.js +6 -0
- package/dist/entities/agent_conversation.js +78 -0
- package/dist/entities/agent_conversation.test.js +6 -0
- package/dist/entities/agent_skill.js +133 -0
- package/dist/entities/agent_skill.test.js +11 -0
- package/dist/entities/agent_skill_approval.js +61 -0
- package/dist/entities/agent_skill_version.js +99 -0
- package/dist/entities/agent_token_analytics.js +1 -0
- package/dist/entities/agent_token_usage.js +127 -0
- package/dist/entities/agent_token_usage.test.js +6 -0
- package/dist/entities/assignment.js +135 -0
- package/dist/entities/assignment.test.js +30 -0
- package/dist/entities/automatic_payment_relationship.js +65 -0
- package/dist/entities/automatic_payment_relationship.test.js +6 -0
- package/dist/entities/bank.js +85 -0
- package/dist/entities/bank.test.js +6 -0
- package/dist/entities/cart.js +173 -0
- package/dist/entities/cart.test.js +51 -0
- package/dist/entities/cart_item.js +125 -0
- package/dist/entities/cart_item.test.js +28 -0
- package/dist/entities/cart_shipment_group.js +53 -0
- package/dist/entities/cart_shipment_quote.js +70 -0
- package/dist/entities/category.js +101 -0
- package/dist/entities/category.test.js +52 -0
- package/dist/entities/company.js +509 -0
- package/dist/entities/company.test.js +6 -0
- package/dist/entities/company_invitation.js +70 -0
- package/dist/entities/company_invitation.test.js +6 -0
- package/dist/entities/country_tax.js +80 -0
- package/dist/entities/country_tax.test.js +11 -0
- package/dist/entities/discount.js +89 -0
- package/dist/entities/discount.test.js +34 -0
- package/dist/entities/discount_group.js +80 -0
- package/dist/entities/discount_group.test.js +6 -0
- package/dist/entities/domain.js +567 -0
- package/dist/entities/domain.test.js +356 -0
- package/dist/entities/domain_chat_settings.js +134 -0
- package/dist/entities/domain_chat_settings.test.js +15 -0
- package/dist/entities/domain_invitation.js +74 -0
- package/dist/entities/domain_invitation.test.js +6 -0
- package/dist/entities/domain_tag.js +77 -0
- package/dist/entities/domain_tag.test.js +6 -0
- package/dist/entities/draft.js +122 -0
- package/dist/entities/draft.test.js +26 -0
- package/dist/entities/draft_comment.js +107 -0
- package/dist/entities/draft_comment.test.js +6 -0
- package/dist/entities/draft_preview.js +74 -0
- package/dist/entities/draft_preview.test.js +36 -0
- package/dist/entities/draft_preview_layer.js +54 -0
- package/dist/entities/draft_preview_layer.test.js +6 -0
- package/dist/entities/draft_template.js +119 -0
- package/dist/entities/draft_template.test.js +12 -0
- package/dist/entities/email_address.js +56 -0
- package/dist/entities/email_address.test.js +6 -0
- package/dist/entities/email_counter.js +53 -0
- package/dist/entities/email_counter.test.js +6 -0
- package/dist/entities/enrolled_domain.js +74 -0
- package/dist/entities/enrolled_domain.test.js +6 -0
- package/dist/entities/exchange_rate.js +56 -0
- package/dist/entities/exchange_rate.test.js +6 -0
- package/dist/entities/file.js +218 -0
- package/dist/entities/file.test.js +38 -0
- package/dist/entities/internal_tag.js +84 -0
- package/dist/entities/internal_tag.test.js +6 -0
- package/dist/entities/inventory.js +97 -0
- package/dist/entities/inventory.test.js +22 -0
- package/dist/entities/inventory_group.js +69 -0
- package/dist/entities/inventory_group.test.js +6 -0
- package/dist/entities/inventory_unit_variation.js +61 -0
- package/dist/entities/inventory_unit_variation.test.js +6 -0
- package/dist/entities/invoice.js +268 -0
- package/dist/entities/invoice.test.js +45 -0
- package/dist/entities/item.js +96 -0
- package/dist/entities/item.test.js +17 -0
- package/dist/entities/job.js +519 -0
- package/dist/entities/job.test.js +83 -0
- package/dist/entities/job_comment.js +94 -0
- package/dist/entities/job_comment.test.js +6 -0
- package/dist/entities/job_note.js +78 -0
- package/dist/entities/job_operation_log.js +82 -0
- package/dist/entities/job_operation_log.test.js +6 -0
- package/dist/entities/matching_inventory.js +63 -0
- package/dist/entities/notification.js +163 -0
- package/dist/entities/notification.test.js +51 -0
- package/dist/entities/payment.js +122 -0
- package/dist/entities/payment.test.js +22 -0
- package/dist/entities/payment_device.js +65 -0
- package/dist/entities/payment_device.test.js +6 -0
- package/dist/entities/phone_number.js +72 -0
- package/dist/entities/phone_number.test.js +6 -0
- package/dist/entities/product.js +619 -0
- package/dist/entities/product.test.js +720 -0
- package/dist/entities/product_form.js +92 -0
- package/dist/entities/product_form_version.js +95 -0
- package/dist/entities/product_review.js +234 -0
- package/dist/entities/production_comment.js +94 -0
- package/dist/entities/production_comment.test.js +6 -0
- package/dist/entities/quote.js +168 -0
- package/dist/entities/quote.test.js +86 -0
- package/dist/entities/quote_item.js +99 -0
- package/dist/entities/quote_item.test.js +40 -0
- package/dist/entities/reminder.js +120 -0
- package/dist/entities/reminder.test.js +14 -0
- package/dist/entities/session.js +63 -0
- package/dist/entities/session.test.js +6 -0
- package/dist/entities/shipment.js +256 -0
- package/dist/entities/shipment.test.js +20 -0
- package/dist/entities/shipment_item.js +45 -0
- package/dist/entities/shipment_item.test.js +6 -0
- package/dist/entities/shipment_item_fulfillment.js +46 -0
- package/dist/entities/shipment_item_fulfillment.test.js +6 -0
- package/dist/entities/shipment_log.js +75 -0
- package/dist/entities/shipment_method.js +104 -0
- package/dist/entities/shipment_method.test.js +6 -0
- package/dist/entities/shipment_method_variation.js +77 -0
- package/dist/entities/shipment_method_variation.test.js +6 -0
- package/dist/entities/short_url.js +73 -0
- package/dist/entities/short_url.test.js +6 -0
- package/dist/entities/subscription_plan.js +122 -0
- package/dist/entities/subscription_plan.test.js +6 -0
- package/dist/entities/supply_domain.js +62 -0
- package/dist/entities/supply_domain.test.js +6 -0
- package/dist/entities/support_conversation.js +106 -0
- package/dist/entities/support_conversation.test.js +6 -0
- package/dist/entities/support_message.js +66 -0
- package/dist/entities/support_message.test.js +6 -0
- package/dist/entities/system_role.js +49 -0
- package/dist/entities/system_role.test.js +6 -0
- package/dist/entities/theme.js +125 -0
- package/dist/entities/theme.test.js +35 -0
- package/dist/entities/theme_css_setting.js +57 -0
- package/dist/entities/theme_css_setting.test.js +6 -0
- package/dist/entities/user.js +508 -0
- package/dist/entities/user.test.js +134 -0
- package/dist/entities/user_company.js +62 -0
- package/dist/entities/user_company.test.js +6 -0
- package/dist/entities/variation.js +108 -0
- package/dist/entities/variation.test.js +6 -0
- package/dist/entities/variation_field.js +381 -0
- package/dist/entities/variation_field.test.js +69 -0
- package/dist/entities/variation_fields_option.js +153 -0
- package/dist/entities/variation_fields_option.test.js +43 -0
- package/dist/entities/variation_option.js +104 -0
- package/dist/entities/variation_option.test.js +6 -0
- package/dist/entities/variations_group.js +79 -0
- package/dist/entities/variations_group.test.js +6 -0
- package/dist/entity.js +950 -0
- package/dist/index.js +86 -0
- package/dist/merchi.js +296 -0
- package/dist/merchi.test.js +21 -0
- package/dist/pricing/discount.js +11 -0
- package/dist/pricing/discount.test.js +35 -0
- package/dist/pricing/estimate.js +335 -0
- package/dist/pricing/estimate.test.js +403 -0
- package/dist/pricing/golden.test.js +61 -0
- package/dist/pricing/index.js +7 -0
- package/dist/pricing/index.test.js +8 -0
- package/dist/pricing/inventory.js +238 -0
- package/dist/pricing/inventory.test.js +188 -0
- package/dist/pricing/matrix.js +245 -0
- package/dist/pricing/matrix.test.js +437 -0
- package/dist/pricing/round.js +29 -0
- package/dist/pricing/round.test.js +27 -0
- package/dist/pricing/types.js +1 -0
- package/dist/pricing/visibility.js +227 -0
- package/dist/pricing/visibility.test.js +210 -0
- package/dist/request.js +169 -0
- package/dist/request.test.js +70 -0
- package/dist/test_util.js +17 -0
- package/dist/toasts.js +14 -0
- package/dist/toasts.test.js +28 -0
- package/dist/util/float.js +34 -0
- package/dist/util/index.js +3 -0
- package/dist/util/query_string.js +13 -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 +11 -0
- package/jest.config.js +23 -0
- package/merchi_sdk_ts-1.13.1.tgz +0 -0
- package/package.json +41 -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 +5 -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 +16 -0
- package/src/constants/index.ts +51 -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 +16 -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 +100 -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 +26 -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 +46 -0
- package/src/constants/shipment_companies.test.ts +5 -0
- package/src/constants/shipment_companies.ts +19 -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_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/agent_conversation.test.ts +7 -0
- package/src/entities/agent_conversation.ts +39 -0
- package/src/entities/agent_skill.test.ts +13 -0
- package/src/entities/agent_skill.ts +99 -0
- package/src/entities/agent_skill_approval.ts +26 -0
- package/src/entities/agent_skill_version.ts +64 -0
- package/src/entities/agent_token_analytics.ts +49 -0
- package/src/entities/agent_token_usage.test.ts +7 -0
- package/src/entities/agent_token_usage.ts +88 -0
- package/src/entities/assignment.test.ts +39 -0
- package/src/entities/assignment.ts +99 -0
- package/src/entities/automatic_payment_relationship.test.ts +8 -0
- package/src/entities/automatic_payment_relationship.ts +29 -0
- package/src/entities/bank.test.ts +7 -0
- package/src/entities/bank.ts +45 -0
- package/src/entities/cart.test.ts +57 -0
- package/src/entities/cart.ts +102 -0
- package/src/entities/cart_item.test.ts +33 -0
- package/src/entities/cart_item.ts +85 -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 +59 -0
- package/src/entities/company.test.ts +7 -0
- package/src/entities/company.ts +397 -0
- package/src/entities/company_invitation.test.ts +7 -0
- package/src/entities/company_invitation.ts +33 -0
- package/src/entities/country_tax.test.ts +13 -0
- package/src/entities/country_tax.ts +46 -0
- package/src/entities/discount.test.ts +36 -0
- package/src/entities/discount.ts +50 -0
- package/src/entities/discount_group.test.ts +7 -0
- package/src/entities/discount_group.ts +43 -0
- package/src/entities/domain.test.ts +393 -0
- package/src/entities/domain.ts +1088 -0
- package/src/entities/domain_chat_settings.test.ts +16 -0
- package/src/entities/domain_chat_settings.ts +82 -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 +29 -0
- package/src/entities/draft.ts +79 -0
- package/src/entities/draft_comment.test.ts +7 -0
- package/src/entities/draft_comment.ts +63 -0
- package/src/entities/draft_preview.test.ts +42 -0
- package/src/entities/draft_preview.ts +37 -0
- package/src/entities/draft_preview_layer.test.ts +7 -0
- package/src/entities/draft_preview_layer.ts +21 -0
- package/src/entities/draft_template.test.ts +14 -0
- package/src/entities/draft_template.ts +81 -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 +165 -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 +63 -0
- package/src/entities/inventory_group.test.ts +7 -0
- package/src/entities/inventory_group.ts +36 -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 +50 -0
- package/src/entities/invoice.ts +192 -0
- package/src/entities/item.test.ts +19 -0
- package/src/entities/item.ts +59 -0
- package/src/entities/job.test.ts +95 -0
- package/src/entities/job.ts +401 -0
- package/src/entities/job_comment.test.ts +7 -0
- package/src/entities/job_comment.ts +53 -0
- package/src/entities/job_note.ts +40 -0
- package/src/entities/job_operation_log.test.ts +7 -0
- package/src/entities/job_operation_log.ts +41 -0
- package/src/entities/matching_inventory.ts +29 -0
- package/src/entities/notification.test.ts +58 -0
- package/src/entities/notification.ts +106 -0
- package/src/entities/payment.test.ts +27 -0
- package/src/entities/payment.ts +77 -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 +776 -0
- package/src/entities/product.ts +486 -0
- package/src/entities/product_form.ts +51 -0
- package/src/entities/product_form_version.ts +51 -0
- package/src/entities/product_review.ts +221 -0
- package/src/entities/production_comment.test.ts +7 -0
- package/src/entities/production_comment.ts +53 -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/reminder.test.ts +16 -0
- package/src/entities/reminder.ts +74 -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 +196 -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_log.ts +37 -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/support_conversation.test.ts +7 -0
- package/src/entities/support_conversation.ts +65 -0
- package/src/entities/support_message.test.ts +7 -0
- package/src/entities/support_message.ts +30 -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 +82 -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 +428 -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 +64 -0
- package/src/entities/variation_field.test.ts +76 -0
- package/src/entities/variation_field.ts +268 -0
- package/src/entities/variation_fields_option.test.ts +46 -0
- package/src/entities/variation_fields_option.ts +107 -0
- package/src/entities/variation_option.test.ts +7 -0
- package/src/entities/variation_option.ts +58 -0
- package/src/entities/variations_group.test.ts +7 -0
- package/src/entities/variations_group.ts +41 -0
- package/src/entity.ts +1098 -0
- package/src/index.ts +189 -0
- package/src/merchi.test.ts +25 -0
- package/src/merchi.ts +445 -0
- package/src/pricing/__fixtures__/conditional_field_hidden.json +112 -0
- package/src/pricing/__fixtures__/conditional_field_visible.json +113 -0
- package/src/pricing/__fixtures__/group_product.json +130 -0
- package/src/pricing/__fixtures__/non_selectable_number_field.json +108 -0
- package/src/pricing/__fixtures__/quantity_break_discount.json +104 -0
- package/src/pricing/__fixtures__/simple_selectable_field.json +110 -0
- package/src/pricing/discount.test.ts +47 -0
- package/src/pricing/discount.ts +17 -0
- package/src/pricing/estimate.test.ts +486 -0
- package/src/pricing/estimate.ts +310 -0
- package/src/pricing/golden.test.ts +51 -0
- package/src/pricing/index.test.ts +9 -0
- package/src/pricing/index.ts +7 -0
- package/src/pricing/inventory.test.ts +197 -0
- package/src/pricing/inventory.ts +89 -0
- package/src/pricing/matrix.test.ts +553 -0
- package/src/pricing/matrix.ts +217 -0
- package/src/pricing/round.test.ts +31 -0
- package/src/pricing/round.ts +27 -0
- package/src/pricing/types.ts +140 -0
- package/src/pricing/visibility.test.ts +223 -0
- package/src/pricing/visibility.ts +111 -0
- package/src/request.test.ts +79 -0
- package/src/request.ts +196 -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/index.ts +7 -0
- package/src/util/query_string.test.ts +7 -0
- package/src/util/query_string.ts +13 -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 +29 -0
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
+
};
|
|
22
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
var __values = (this && this.__values) || function(o) {
|
|
26
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
27
|
+
if (m) return m.call(o);
|
|
28
|
+
if (o && typeof o.length === "number") return {
|
|
29
|
+
next: function () {
|
|
30
|
+
if (o && i >= o.length) o = void 0;
|
|
31
|
+
return { value: o && o[i++], done: !o };
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
35
|
+
};
|
|
36
|
+
import * as _ from 'lodash';
|
|
37
|
+
import { ProductForm } from './product_form.js';
|
|
38
|
+
import { CountryTax } from './country_tax.js';
|
|
39
|
+
import { Domain } from './domain.js';
|
|
40
|
+
import { Entity } from '../entity.js';
|
|
41
|
+
import { MerchiFile } from './file.js';
|
|
42
|
+
import { AutoAssignProductionOnAction } from '../constants/auto_assign_production_on_actions.js';
|
|
43
|
+
var Product = /** @class */ (function (_super) {
|
|
44
|
+
__extends(Product, _super);
|
|
45
|
+
function Product() {
|
|
46
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
_this.duplicate = function () {
|
|
48
|
+
/* create a clone of this product on the backend, returning it. */
|
|
49
|
+
var constructor = _this.constructor;
|
|
50
|
+
var resourceName = constructor.resourceName;
|
|
51
|
+
var singularName = constructor.singularName;
|
|
52
|
+
var resource = "/".concat(resourceName, "/").concat(String(_this.id), "/copy/");
|
|
53
|
+
var fetchOptions = { method: 'POST' };
|
|
54
|
+
return _this.merchi.authenticatedFetch(resource, fetchOptions).
|
|
55
|
+
then(function (data) {
|
|
56
|
+
var product = new _this.merchi.Product();
|
|
57
|
+
product.fromJson(data[singularName]);
|
|
58
|
+
return product;
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
_this.primaryImage = function () {
|
|
62
|
+
if (_this.featureImage === undefined) {
|
|
63
|
+
throw new Error('featureImage is undefined, did you forget to embed it?');
|
|
64
|
+
}
|
|
65
|
+
if (_this.images === undefined) {
|
|
66
|
+
throw new Error('images is undefined, did you forget to embed it?');
|
|
67
|
+
}
|
|
68
|
+
if (_this.featureImage !== null) {
|
|
69
|
+
return _this.featureImage;
|
|
70
|
+
}
|
|
71
|
+
if (_this.images.length > 0) {
|
|
72
|
+
return _this.images[0];
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
};
|
|
76
|
+
_this.hasGroupVariationFields = function () {
|
|
77
|
+
if (_this.groupVariationFields === undefined) {
|
|
78
|
+
var err = 'groupVariationFields is undefined, did you forget to embed' +
|
|
79
|
+
' it?';
|
|
80
|
+
throw new Error(err);
|
|
81
|
+
}
|
|
82
|
+
return _this.groupVariationFields.length > 0;
|
|
83
|
+
};
|
|
84
|
+
_this.hasIndependentVariationFields = function () {
|
|
85
|
+
if (_this.independentVariationFields === undefined) {
|
|
86
|
+
var err = 'independentVariationFields is undefined, did you forget to' +
|
|
87
|
+
' embed it?';
|
|
88
|
+
throw new Error(err);
|
|
89
|
+
}
|
|
90
|
+
return _this.independentVariationFields.length > 0;
|
|
91
|
+
};
|
|
92
|
+
_this.allVariationFields = function () {
|
|
93
|
+
if (_this.groupVariationFields === undefined) {
|
|
94
|
+
var err = 'groupVariationFields is undefined, did you forget to embed' +
|
|
95
|
+
' it?';
|
|
96
|
+
throw new Error(err);
|
|
97
|
+
}
|
|
98
|
+
if (_this.independentVariationFields === undefined) {
|
|
99
|
+
var err = 'independentVariationFields is undefined, did you forget to' +
|
|
100
|
+
' embed it?';
|
|
101
|
+
throw new Error(err);
|
|
102
|
+
}
|
|
103
|
+
var result = [];
|
|
104
|
+
return result.concat(_this.groupVariationFields, _this.independentVariationFields);
|
|
105
|
+
};
|
|
106
|
+
_this.buildEmptyVariations = function () {
|
|
107
|
+
if (_this.independentVariationFields === undefined) {
|
|
108
|
+
var err = 'independentVariationFields is undefined, did you forget to' +
|
|
109
|
+
' embed it?';
|
|
110
|
+
throw new Error(err);
|
|
111
|
+
}
|
|
112
|
+
var iVF = _.orderBy(_this.independentVariationFields, ['position'], ['asc']);
|
|
113
|
+
return iVF.map(function (field) { return field.buildEmptyVariation(); });
|
|
114
|
+
};
|
|
115
|
+
_this.buildEmptyVariationGroup = function () {
|
|
116
|
+
var e_1, _a;
|
|
117
|
+
if (_this.groupVariationFields === undefined) {
|
|
118
|
+
var err = 'groupVariationFields is undefined, did you forget to embed' +
|
|
119
|
+
' it?';
|
|
120
|
+
throw new Error(err);
|
|
121
|
+
}
|
|
122
|
+
var result = new _this.merchi.VariationsGroup();
|
|
123
|
+
var variations = [];
|
|
124
|
+
var cost = 0;
|
|
125
|
+
var sortedFields = _.orderBy(_this.groupVariationFields, ['position'], ['asc']);
|
|
126
|
+
result.quantity = 0;
|
|
127
|
+
try {
|
|
128
|
+
for (var sortedFields_1 = __values(sortedFields), sortedFields_1_1 = sortedFields_1.next(); !sortedFields_1_1.done; sortedFields_1_1 = sortedFields_1.next()) {
|
|
129
|
+
var variationField = sortedFields_1_1.value;
|
|
130
|
+
var empty = variationField.buildEmptyVariation();
|
|
131
|
+
variations.push(empty);
|
|
132
|
+
cost += empty.cost;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
136
|
+
finally {
|
|
137
|
+
try {
|
|
138
|
+
if (sortedFields_1_1 && !sortedFields_1_1.done && (_a = sortedFields_1.return)) _a.call(sortedFields_1);
|
|
139
|
+
}
|
|
140
|
+
finally { if (e_1) throw e_1.error; }
|
|
141
|
+
}
|
|
142
|
+
result.groupCost = cost;
|
|
143
|
+
result.variations = variations;
|
|
144
|
+
return result;
|
|
145
|
+
};
|
|
146
|
+
_this.removeVariationField = function (variationField) {
|
|
147
|
+
if (variationField.independent === undefined) {
|
|
148
|
+
throw new Error('variation.independent is undefined, did you ' +
|
|
149
|
+
'forget to embed it?');
|
|
150
|
+
}
|
|
151
|
+
if (_this.independentVariationFields === undefined) {
|
|
152
|
+
var err = 'independentVariationFields is undefined, did you forget to' +
|
|
153
|
+
' embed it?';
|
|
154
|
+
throw new Error(err);
|
|
155
|
+
}
|
|
156
|
+
if (_this.groupVariationFields === undefined) {
|
|
157
|
+
var err = 'groupVariationFields is undefined, did you forget to embed' +
|
|
158
|
+
' it?';
|
|
159
|
+
throw new Error(err);
|
|
160
|
+
}
|
|
161
|
+
var variationFields = variationField.independent ?
|
|
162
|
+
_this.independentVariationFields : _this.groupVariationFields;
|
|
163
|
+
var index = variationFields.findIndex(function (v) {
|
|
164
|
+
if (v.id === undefined) {
|
|
165
|
+
throw new Error('variation id is undefined, did you forget to ' +
|
|
166
|
+
'embed it?');
|
|
167
|
+
}
|
|
168
|
+
return v.id === variationField.id;
|
|
169
|
+
});
|
|
170
|
+
return variationFields.splice(index, 1);
|
|
171
|
+
};
|
|
172
|
+
return _this;
|
|
173
|
+
}
|
|
174
|
+
Product.resourceName = 'products';
|
|
175
|
+
Product.singularName = 'product';
|
|
176
|
+
Product.pluralName = 'products';
|
|
177
|
+
__decorate([
|
|
178
|
+
Product.property({ type: Date }),
|
|
179
|
+
__metadata("design:type", Object)
|
|
180
|
+
], Product.prototype, "archived", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
Product.property(),
|
|
183
|
+
__metadata("design:type", Number)
|
|
184
|
+
], Product.prototype, "id", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
Product.property(),
|
|
187
|
+
__metadata("design:type", Number)
|
|
188
|
+
], Product.prototype, "position", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
Product.property({ type: Date }),
|
|
191
|
+
__metadata("design:type", Date)
|
|
192
|
+
], Product.prototype, "created", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
Product.property({ type: Date }),
|
|
195
|
+
__metadata("design:type", Date)
|
|
196
|
+
], Product.prototype, "updated", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
Product.property({ type: Date }),
|
|
199
|
+
__metadata("design:type", Object)
|
|
200
|
+
], Product.prototype, "storefrontLastDeployed", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
Product.property({ type: 'User' }),
|
|
203
|
+
__metadata("design:type", Object)
|
|
204
|
+
], Product.prototype, "createdBy", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
Product.property({ type: 'User' }),
|
|
207
|
+
__metadata("design:type", Object)
|
|
208
|
+
], Product.prototype, "designer", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
Product.property({ type: 'User' }),
|
|
211
|
+
__metadata("design:type", Object)
|
|
212
|
+
], Product.prototype, "updatedBy", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
Product.property(),
|
|
215
|
+
__metadata("design:type", Number)
|
|
216
|
+
], Product.prototype, "productType", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
Product.property(),
|
|
219
|
+
__metadata("design:type", Number)
|
|
220
|
+
], Product.prototype, "minimum", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
Product.property(),
|
|
223
|
+
__metadata("design:type", Number)
|
|
224
|
+
], Product.prototype, "defaultQuantity", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
Product.property(),
|
|
227
|
+
__metadata("design:type", Number)
|
|
228
|
+
], Product.prototype, "minimumPrice", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
Product.property(),
|
|
231
|
+
__metadata("design:type", Number)
|
|
232
|
+
], Product.prototype, "setupPrice", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
Product.property(),
|
|
235
|
+
__metadata("design:type", Boolean)
|
|
236
|
+
], Product.prototype, "setupPerGroup", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
Product.property(),
|
|
239
|
+
__metadata("design:type", Boolean)
|
|
240
|
+
], Product.prototype, "minimumPerGroup", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
Product.property(),
|
|
243
|
+
__metadata("design:type", Boolean)
|
|
244
|
+
], Product.prototype, "groupsFirst", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
Product.property(),
|
|
247
|
+
__metadata("design:type", Number)
|
|
248
|
+
], Product.prototype, "deliveryDaysNormal", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
Product.property(),
|
|
251
|
+
__metadata("design:type", Number)
|
|
252
|
+
], Product.prototype, "unitPrice", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
Product.property({ embeddedByDefault: false }),
|
|
255
|
+
__metadata("design:type", Number)
|
|
256
|
+
], Product.prototype, "buyUnitPrice", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
Product.property({ type: 'DiscountGroup' }),
|
|
259
|
+
__metadata("design:type", Object)
|
|
260
|
+
], Product.prototype, "unitPriceDiscountGroup", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
Product.property({ arrayType: 'ShipmentMethod' }),
|
|
263
|
+
__metadata("design:type", Array)
|
|
264
|
+
], Product.prototype, "shipmentMethods", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
Product.property(),
|
|
267
|
+
__metadata("design:type", Number)
|
|
268
|
+
], Product.prototype, "margin", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
Product.property({ type: Number }),
|
|
271
|
+
__metadata("design:type", Object)
|
|
272
|
+
], Product.prototype, "unitWeight", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
Product.property({ type: Number }),
|
|
275
|
+
__metadata("design:type", Object)
|
|
276
|
+
], Product.prototype, "unitHeight", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
Product.property({ type: Number }),
|
|
279
|
+
__metadata("design:type", Object)
|
|
280
|
+
], Product.prototype, "unitWidth", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
Product.property({ type: Number }),
|
|
283
|
+
__metadata("design:type", Object)
|
|
284
|
+
], Product.prototype, "unitDepth", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
Product.property(),
|
|
287
|
+
__metadata("design:type", String)
|
|
288
|
+
], Product.prototype, "name", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
Product.property(),
|
|
291
|
+
__metadata("design:type", String)
|
|
292
|
+
], Product.prototype, "country", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
Product.property(),
|
|
295
|
+
__metadata("design:type", String)
|
|
296
|
+
], Product.prototype, "currency", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
Product.property({ type: String }),
|
|
299
|
+
__metadata("design:type", Object)
|
|
300
|
+
], Product.prototype, "description", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
Product.property({ type: String }),
|
|
303
|
+
__metadata("design:type", Object)
|
|
304
|
+
], Product.prototype, "notes", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
Product.property({ type: String }),
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], Product.prototype, "internalUseNotes", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
Product.property({ type: String }),
|
|
311
|
+
__metadata("design:type", String)
|
|
312
|
+
], Product.prototype, "internalUseAiContext", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
Product.property({ type: String }),
|
|
315
|
+
__metadata("design:type", String)
|
|
316
|
+
], Product.prototype, "aiContext", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
Product.property({ type: String }),
|
|
319
|
+
__metadata("design:type", String)
|
|
320
|
+
], Product.prototype, "googleMerchantCenterId", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
Product.property({ type: String }),
|
|
323
|
+
__metadata("design:type", String)
|
|
324
|
+
], Product.prototype, "googleMerchantCenterTitle", void 0);
|
|
325
|
+
__decorate([
|
|
326
|
+
Product.property({ type: String }),
|
|
327
|
+
__metadata("design:type", String)
|
|
328
|
+
], Product.prototype, "googleMerchantCenterDescription", void 0);
|
|
329
|
+
__decorate([
|
|
330
|
+
Product.property({ type: String }),
|
|
331
|
+
__metadata("design:type", String)
|
|
332
|
+
], Product.prototype, "googleMerchantCenterProductUrl", void 0);
|
|
333
|
+
__decorate([
|
|
334
|
+
Product.property({ type: String }),
|
|
335
|
+
__metadata("design:type", Number)
|
|
336
|
+
], Product.prototype, "googleMerchantCenterPrice", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
Product.property({ type: String }),
|
|
339
|
+
__metadata("design:type", Object)
|
|
340
|
+
], Product.prototype, "shopifyProductId", void 0);
|
|
341
|
+
__decorate([
|
|
342
|
+
Product.property({ type: String }),
|
|
343
|
+
__metadata("design:type", Object)
|
|
344
|
+
], Product.prototype, "spProductId", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
Product.property(),
|
|
347
|
+
__metadata("design:type", Boolean)
|
|
348
|
+
], Product.prototype, "useCompanyShipmentMethods", void 0);
|
|
349
|
+
__decorate([
|
|
350
|
+
Product.property(),
|
|
351
|
+
__metadata("design:type", Boolean)
|
|
352
|
+
], Product.prototype, "dropShipment", void 0);
|
|
353
|
+
__decorate([
|
|
354
|
+
Product.property(),
|
|
355
|
+
__metadata("design:type", Boolean)
|
|
356
|
+
], Product.prototype, "needsDrafting", void 0);
|
|
357
|
+
__decorate([
|
|
358
|
+
Product.property(),
|
|
359
|
+
__metadata("design:type", Boolean)
|
|
360
|
+
], Product.prototype, "needsProduction", void 0);
|
|
361
|
+
__decorate([
|
|
362
|
+
Product.property(),
|
|
363
|
+
__metadata("design:type", Boolean)
|
|
364
|
+
], Product.prototype, "needsShipping", void 0);
|
|
365
|
+
__decorate([
|
|
366
|
+
Product.property(),
|
|
367
|
+
__metadata("design:type", Boolean)
|
|
368
|
+
], Product.prototype, "needsInvoicing", void 0);
|
|
369
|
+
__decorate([
|
|
370
|
+
Product.property(),
|
|
371
|
+
__metadata("design:type", Boolean)
|
|
372
|
+
], Product.prototype, "needsInventory", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
Product.property({ type: Date }),
|
|
375
|
+
__metadata("design:type", Date)
|
|
376
|
+
], Product.prototype, "featureDeadline", void 0);
|
|
377
|
+
__decorate([
|
|
378
|
+
Product.property(),
|
|
379
|
+
__metadata("design:type", Boolean)
|
|
380
|
+
], Product.prototype, "showFeatureDeadline", void 0);
|
|
381
|
+
__decorate([
|
|
382
|
+
Product.property(),
|
|
383
|
+
__metadata("design:type", Boolean)
|
|
384
|
+
], Product.prototype, "showPublic", void 0);
|
|
385
|
+
__decorate([
|
|
386
|
+
Product.property(),
|
|
387
|
+
__metadata("design:type", Boolean)
|
|
388
|
+
], Product.prototype, "isDraft", void 0);
|
|
389
|
+
__decorate([
|
|
390
|
+
Product.property(),
|
|
391
|
+
__metadata("design:type", Boolean)
|
|
392
|
+
], Product.prototype, "showGroupBuyStatus", void 0);
|
|
393
|
+
__decorate([
|
|
394
|
+
Product.property({ type: Number }),
|
|
395
|
+
__metadata("design:type", Object)
|
|
396
|
+
], Product.prototype, "groupBuyStatus", void 0);
|
|
397
|
+
__decorate([
|
|
398
|
+
Product.property(),
|
|
399
|
+
__metadata("design:type", Boolean)
|
|
400
|
+
], Product.prototype, "acceptSquare", void 0);
|
|
401
|
+
__decorate([
|
|
402
|
+
Product.property(),
|
|
403
|
+
__metadata("design:type", Boolean)
|
|
404
|
+
], Product.prototype, "acceptStripe", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
Product.property(),
|
|
407
|
+
__metadata("design:type", Boolean)
|
|
408
|
+
], Product.prototype, "acceptPaypal", void 0);
|
|
409
|
+
__decorate([
|
|
410
|
+
Product.property(),
|
|
411
|
+
__metadata("design:type", Boolean)
|
|
412
|
+
], Product.prototype, "acceptUtrust", void 0);
|
|
413
|
+
__decorate([
|
|
414
|
+
Product.property(),
|
|
415
|
+
__metadata("design:type", Boolean)
|
|
416
|
+
], Product.prototype, "acceptBankTransfer", void 0);
|
|
417
|
+
__decorate([
|
|
418
|
+
Product.property(),
|
|
419
|
+
__metadata("design:type", Boolean)
|
|
420
|
+
], Product.prototype, "acceptPhonePayment", void 0);
|
|
421
|
+
__decorate([
|
|
422
|
+
Product.property(),
|
|
423
|
+
__metadata("design:type", Boolean)
|
|
424
|
+
], Product.prototype, "allowAddToCart", void 0);
|
|
425
|
+
__decorate([
|
|
426
|
+
Product.property(),
|
|
427
|
+
__metadata("design:type", Boolean)
|
|
428
|
+
], Product.prototype, "allowAutomaticPaymentSupply", void 0);
|
|
429
|
+
__decorate([
|
|
430
|
+
Product.property(),
|
|
431
|
+
__metadata("design:type", Boolean)
|
|
432
|
+
], Product.prototype, "allowGroupBuy", void 0);
|
|
433
|
+
__decorate([
|
|
434
|
+
Product.property(),
|
|
435
|
+
__metadata("design:type", Boolean)
|
|
436
|
+
], Product.prototype, "allowPaymentUpfront", void 0);
|
|
437
|
+
__decorate([
|
|
438
|
+
Product.property(),
|
|
439
|
+
__metadata("design:type", Boolean)
|
|
440
|
+
], Product.prototype, "allowQuotation", void 0);
|
|
441
|
+
__decorate([
|
|
442
|
+
Product.property(),
|
|
443
|
+
__metadata("design:type", Boolean)
|
|
444
|
+
], Product.prototype, "allowChainedInventoryCreation", void 0);
|
|
445
|
+
__decorate([
|
|
446
|
+
Product.property(),
|
|
447
|
+
__metadata("design:type", Boolean)
|
|
448
|
+
], Product.prototype, "allowClientDraftContribution", void 0);
|
|
449
|
+
__decorate([
|
|
450
|
+
Product.property(),
|
|
451
|
+
__metadata("design:type", Number)
|
|
452
|
+
], Product.prototype, "chainedInventoryHandlingUnitPrice", void 0);
|
|
453
|
+
__decorate([
|
|
454
|
+
Product.property(),
|
|
455
|
+
__metadata("design:type", Number)
|
|
456
|
+
], Product.prototype, "bestPrice", void 0);
|
|
457
|
+
__decorate([
|
|
458
|
+
Product.property(),
|
|
459
|
+
__metadata("design:type", Number)
|
|
460
|
+
], Product.prototype, "unitVolume", void 0);
|
|
461
|
+
__decorate([
|
|
462
|
+
Product.property({ arrayType: 'Category' }),
|
|
463
|
+
__metadata("design:type", Array)
|
|
464
|
+
], Product.prototype, "categories", void 0);
|
|
465
|
+
__decorate([
|
|
466
|
+
Product.property({ arrayType: 'Category' }),
|
|
467
|
+
__metadata("design:type", Array)
|
|
468
|
+
], Product.prototype, "platformCategories", void 0);
|
|
469
|
+
__decorate([
|
|
470
|
+
Product.property({ arrayType: 'DiscountGroup' }),
|
|
471
|
+
__metadata("design:type", Array)
|
|
472
|
+
], Product.prototype, "discountGroups", void 0);
|
|
473
|
+
__decorate([
|
|
474
|
+
Product.property(),
|
|
475
|
+
__metadata("design:type", Domain)
|
|
476
|
+
], Product.prototype, "domain", void 0);
|
|
477
|
+
__decorate([
|
|
478
|
+
Product.property({ type: CountryTax }),
|
|
479
|
+
__metadata("design:type", Object)
|
|
480
|
+
], Product.prototype, "taxType", void 0);
|
|
481
|
+
__decorate([
|
|
482
|
+
Product.property({ type: Product }),
|
|
483
|
+
__metadata("design:type", Object)
|
|
484
|
+
], Product.prototype, "originalProduct", void 0);
|
|
485
|
+
__decorate([
|
|
486
|
+
Product.property({ type: Product }),
|
|
487
|
+
__metadata("design:type", Object)
|
|
488
|
+
], Product.prototype, "clonedFromProduct", void 0);
|
|
489
|
+
__decorate([
|
|
490
|
+
Product.property({ type: Product }),
|
|
491
|
+
__metadata("design:type", Object)
|
|
492
|
+
], Product.prototype, "chainedSupplierProduct", void 0);
|
|
493
|
+
__decorate([
|
|
494
|
+
Product.property({ arrayType: 'Product' }),
|
|
495
|
+
__metadata("design:type", Array)
|
|
496
|
+
], Product.prototype, "chainedSellerProducts", void 0);
|
|
497
|
+
__decorate([
|
|
498
|
+
Product.property({ type: Product }),
|
|
499
|
+
__metadata("design:type", Object)
|
|
500
|
+
], Product.prototype, "chainedInventorySupplierProduct", void 0);
|
|
501
|
+
__decorate([
|
|
502
|
+
Product.property({ arrayType: 'Product' }),
|
|
503
|
+
__metadata("design:type", Array)
|
|
504
|
+
], Product.prototype, "chainedInventorySellerProducts", void 0);
|
|
505
|
+
__decorate([
|
|
506
|
+
Product.property({ type: ProductForm }),
|
|
507
|
+
__metadata("design:type", Object)
|
|
508
|
+
], Product.prototype, "productForm", void 0);
|
|
509
|
+
__decorate([
|
|
510
|
+
Product.property({ arrayType: 'MerchiFile' }),
|
|
511
|
+
__metadata("design:type", Array)
|
|
512
|
+
], Product.prototype, "images", void 0);
|
|
513
|
+
__decorate([
|
|
514
|
+
Product.property({ arrayType: 'MerchiFile' }),
|
|
515
|
+
__metadata("design:type", Array)
|
|
516
|
+
], Product.prototype, "publicFiles", void 0);
|
|
517
|
+
__decorate([
|
|
518
|
+
Product.property({ arrayType: 'MerchiFile' }),
|
|
519
|
+
__metadata("design:type", Array)
|
|
520
|
+
], Product.prototype, "productionFiles", void 0);
|
|
521
|
+
__decorate([
|
|
522
|
+
Product.property({ arrayType: 'VariationField' }),
|
|
523
|
+
__metadata("design:type", Array)
|
|
524
|
+
], Product.prototype, "groupVariationFields", void 0);
|
|
525
|
+
__decorate([
|
|
526
|
+
Product.property({ arrayType: 'VariationField' }),
|
|
527
|
+
__metadata("design:type", Array)
|
|
528
|
+
], Product.prototype, "independentVariationFields", void 0);
|
|
529
|
+
__decorate([
|
|
530
|
+
Product.property({ arrayType: 'DomainTag' }),
|
|
531
|
+
__metadata("design:type", Array)
|
|
532
|
+
], Product.prototype, "tags", void 0);
|
|
533
|
+
__decorate([
|
|
534
|
+
Product.property({ arrayType: 'InternalTag' }),
|
|
535
|
+
__metadata("design:type", Array)
|
|
536
|
+
], Product.prototype, "internalTags", void 0);
|
|
537
|
+
__decorate([
|
|
538
|
+
Product.property({ type: MerchiFile }),
|
|
539
|
+
__metadata("design:type", Object)
|
|
540
|
+
], Product.prototype, "featureImage", void 0);
|
|
541
|
+
__decorate([
|
|
542
|
+
Product.property({ type: 'Job' }),
|
|
543
|
+
__metadata("design:type", Object)
|
|
544
|
+
], Product.prototype, "createdByJob", void 0);
|
|
545
|
+
__decorate([
|
|
546
|
+
Product.property({ type: 'Job' }),
|
|
547
|
+
__metadata("design:type", Object)
|
|
548
|
+
], Product.prototype, "defaultJob", void 0);
|
|
549
|
+
__decorate([
|
|
550
|
+
Product.property({ arrayType: 'Company', jsonName: 'saved_by_companies' }),
|
|
551
|
+
__metadata("design:type", Array)
|
|
552
|
+
], Product.prototype, "savedByCompanies", void 0);
|
|
553
|
+
__decorate([
|
|
554
|
+
Product.property({ arrayType: 'SupplyDomain' }),
|
|
555
|
+
__metadata("design:type", Array)
|
|
556
|
+
], Product.prototype, "suppliedByDomains", void 0);
|
|
557
|
+
__decorate([
|
|
558
|
+
Product.property(),
|
|
559
|
+
__metadata("design:type", Number)
|
|
560
|
+
], Product.prototype, "autoAssignProductionOnAction", void 0);
|
|
561
|
+
__decorate([
|
|
562
|
+
Product.property({ arrayType: 'SupplyDomain' }),
|
|
563
|
+
__metadata("design:type", Array)
|
|
564
|
+
], Product.prototype, "supplyDomains", void 0);
|
|
565
|
+
__decorate([
|
|
566
|
+
Product.property(),
|
|
567
|
+
__metadata("design:type", Boolean)
|
|
568
|
+
], Product.prototype, "inventoriesOpen", void 0);
|
|
569
|
+
__decorate([
|
|
570
|
+
Product.property(),
|
|
571
|
+
__metadata("design:type", Boolean)
|
|
572
|
+
], Product.prototype, "clientSideCalculation", void 0);
|
|
573
|
+
__decorate([
|
|
574
|
+
Product.property(),
|
|
575
|
+
__metadata("design:type", Boolean)
|
|
576
|
+
], Product.prototype, "supplyChainDisabled", void 0);
|
|
577
|
+
__decorate([
|
|
578
|
+
Product.property({ arrayType: 'Inventory' }),
|
|
579
|
+
__metadata("design:type", Array)
|
|
580
|
+
], Product.prototype, "inventories", void 0);
|
|
581
|
+
__decorate([
|
|
582
|
+
Product.property({ arrayType: 'InventoryGroup' }),
|
|
583
|
+
__metadata("design:type", Array)
|
|
584
|
+
], Product.prototype, "inventoryGroups", void 0);
|
|
585
|
+
__decorate([
|
|
586
|
+
Product.property({ arrayType: 'CartItem' }),
|
|
587
|
+
__metadata("design:type", Array)
|
|
588
|
+
], Product.prototype, "cartItems", void 0);
|
|
589
|
+
__decorate([
|
|
590
|
+
Product.property({ arrayType: 'Job' }),
|
|
591
|
+
__metadata("design:type", Array)
|
|
592
|
+
], Product.prototype, "jobs", void 0);
|
|
593
|
+
__decorate([
|
|
594
|
+
Product.property({ arrayType: 'Reminder' }),
|
|
595
|
+
__metadata("design:type", Array)
|
|
596
|
+
], Product.prototype, "reminders", void 0);
|
|
597
|
+
__decorate([
|
|
598
|
+
Product.property({ arrayType: 'Job' }),
|
|
599
|
+
__metadata("design:type", Array)
|
|
600
|
+
], Product.prototype, "supplyChainRequestJobs", void 0);
|
|
601
|
+
__decorate([
|
|
602
|
+
Product.property({ arrayType: 'User', jsonName: 'saved_by_users' }),
|
|
603
|
+
__metadata("design:type", Array)
|
|
604
|
+
], Product.prototype, "savedByUsers", void 0);
|
|
605
|
+
__decorate([
|
|
606
|
+
Product.property({ arrayType: 'User' }),
|
|
607
|
+
__metadata("design:type", Array)
|
|
608
|
+
], Product.prototype, "suppliers", void 0);
|
|
609
|
+
__decorate([
|
|
610
|
+
Product.property({ arrayType: 'DraftTemplate' }),
|
|
611
|
+
__metadata("design:type", Array)
|
|
612
|
+
], Product.prototype, "draftTemplates", void 0);
|
|
613
|
+
__decorate([
|
|
614
|
+
Product.property({ arrayType: 'DraftPreview' }),
|
|
615
|
+
__metadata("design:type", Array)
|
|
616
|
+
], Product.prototype, "draftPreviews", void 0);
|
|
617
|
+
return Product;
|
|
618
|
+
}(Entity));
|
|
619
|
+
export { Product };
|