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,535 @@
|
|
|
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, _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, _Domain;
|
|
3
|
+
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 }); }
|
|
4
|
+
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); } }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
+
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); }
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
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); }
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
+
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; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
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.'); }
|
|
19
|
+
import { Entity } from '../entity';
|
|
20
|
+
import { MerchiFile } from './file';
|
|
21
|
+
export var Domain = (_dec = Domain.property({
|
|
22
|
+
type: Date
|
|
23
|
+
}), _dec2 = Domain.property(), _dec3 = Domain.property(), _dec4 = Domain.property(), _dec5 = Domain.property(), _dec6 = Domain.property(), _dec7 = Domain.property(), _dec8 = Domain.property(), _dec9 = Domain.property(), _dec10 = Domain.property(), _dec11 = Domain.property(), _dec12 = Domain.property(), _dec13 = Domain.property(), _dec14 = Domain.property(), _dec15 = Domain.property(), _dec16 = Domain.property(), _dec17 = Domain.property(), _dec18 = Domain.property(), _dec19 = Domain.property(), _dec20 = Domain.property(), _dec21 = Domain.property(), _dec22 = Domain.property(), _dec23 = Domain.property({
|
|
24
|
+
type: String
|
|
25
|
+
}), _dec24 = Domain.property({
|
|
26
|
+
type: String
|
|
27
|
+
}), _dec25 = Domain.property({
|
|
28
|
+
type: String
|
|
29
|
+
}), _dec26 = Domain.property({
|
|
30
|
+
type: String
|
|
31
|
+
}), _dec27 = Domain.property({
|
|
32
|
+
type: String
|
|
33
|
+
}), _dec28 = Domain.property(), _dec29 = Domain.property({
|
|
34
|
+
type: String
|
|
35
|
+
}), _dec30 = Domain.property({
|
|
36
|
+
type: String
|
|
37
|
+
}), _dec31 = Domain.property({
|
|
38
|
+
type: String
|
|
39
|
+
}), _dec32 = Domain.property({
|
|
40
|
+
type: String
|
|
41
|
+
}), _dec33 = Domain.property({
|
|
42
|
+
type: String
|
|
43
|
+
}), _dec34 = Domain.property({
|
|
44
|
+
type: String
|
|
45
|
+
}), _dec35 = Domain.property({
|
|
46
|
+
type: String
|
|
47
|
+
}), _dec36 = Domain.property({
|
|
48
|
+
type: String
|
|
49
|
+
}), _dec37 = Domain.property({
|
|
50
|
+
type: String
|
|
51
|
+
}), _dec38 = Domain.property({
|
|
52
|
+
type: String
|
|
53
|
+
}), _dec39 = Domain.property({
|
|
54
|
+
type: String
|
|
55
|
+
}), _dec40 = Domain.property({
|
|
56
|
+
type: String
|
|
57
|
+
}), _dec41 = Domain.property({
|
|
58
|
+
type: String
|
|
59
|
+
}), _dec42 = Domain.property({
|
|
60
|
+
type: String
|
|
61
|
+
}), _dec43 = Domain.property(), _dec44 = Domain.property(), _dec45 = Domain.property({
|
|
62
|
+
type: MerchiFile
|
|
63
|
+
}), _dec46 = Domain.property({
|
|
64
|
+
type: MerchiFile
|
|
65
|
+
}), _dec47 = Domain.property(), _dec48 = Domain.property({
|
|
66
|
+
arrayType: 'InternalTag'
|
|
67
|
+
}), _dec49 = Domain.property({
|
|
68
|
+
arrayType: 'DomainTag'
|
|
69
|
+
}), _dec50 = Domain.property({
|
|
70
|
+
arrayType: 'Domain'
|
|
71
|
+
}), _dec51 = Domain.property({
|
|
72
|
+
arrayType: 'Domain'
|
|
73
|
+
}), _dec52 = Domain.property({
|
|
74
|
+
arrayType: 'User'
|
|
75
|
+
}), _dec53 = Domain.property({
|
|
76
|
+
arrayType: 'Company'
|
|
77
|
+
}), _dec54 = Domain.property({
|
|
78
|
+
arrayType: 'Menu'
|
|
79
|
+
}), _dec55 = Domain.property({
|
|
80
|
+
arrayType: 'Session'
|
|
81
|
+
}), _dec56 = Domain.property({
|
|
82
|
+
arrayType: 'Category'
|
|
83
|
+
}), _dec57 = Domain.property({
|
|
84
|
+
arrayType: 'Notification'
|
|
85
|
+
}), _dec58 = Domain.property({
|
|
86
|
+
arrayType: 'Product'
|
|
87
|
+
}), _dec59 = Domain.property({
|
|
88
|
+
arrayType: 'SupplyDomain'
|
|
89
|
+
}), _dec60 = Domain.property({
|
|
90
|
+
arrayType: 'Job'
|
|
91
|
+
}), _dec61 = Domain.property({
|
|
92
|
+
arrayType: 'User'
|
|
93
|
+
}), _dec62 = Domain.property({
|
|
94
|
+
arrayType: 'Cart'
|
|
95
|
+
}), _dec63 = Domain.property({
|
|
96
|
+
arrayType: 'EnrolledDomain'
|
|
97
|
+
}), _dec64 = Domain.property({
|
|
98
|
+
arrayType: 'Invoice'
|
|
99
|
+
}), _dec65 = Domain.property({
|
|
100
|
+
arrayType: 'DomainInvitation'
|
|
101
|
+
}), _dec66 = Domain.property({
|
|
102
|
+
arrayType: 'SeoDomainPage'
|
|
103
|
+
}), _dec67 = Domain.property({
|
|
104
|
+
arrayType: 'Theme'
|
|
105
|
+
}), (_class = (_Domain = /*#__PURE__*/function (_Entity) {
|
|
106
|
+
_inherits(Domain, _Entity);
|
|
107
|
+
function Domain() {
|
|
108
|
+
var _this;
|
|
109
|
+
_classCallCheck(this, Domain);
|
|
110
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
111
|
+
args[_key] = arguments[_key];
|
|
112
|
+
}
|
|
113
|
+
_this = _callSuper(this, Domain, [].concat(args));
|
|
114
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "archived", _descriptor, _assertThisInitialized(_this));
|
|
115
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "id", _descriptor2, _assertThisInitialized(_this));
|
|
116
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "domain", _descriptor3, _assertThisInitialized(_this));
|
|
117
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "country", _descriptor4, _assertThisInitialized(_this));
|
|
118
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "currency", _descriptor5, _assertThisInitialized(_this));
|
|
119
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "callToActions", _descriptor6, _assertThisInitialized(_this));
|
|
120
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "callToActionDetails", _descriptor7, _assertThisInitialized(_this));
|
|
121
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "isMaster", _descriptor8, _assertThisInitialized(_this));
|
|
122
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "internalUseNotes", _descriptor9, _assertThisInitialized(_this));
|
|
123
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "internalUseAiContext", _descriptor10, _assertThisInitialized(_this));
|
|
124
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "aiContext", _descriptor11, _assertThisInitialized(_this));
|
|
125
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "domainType", _descriptor12, _assertThisInitialized(_this));
|
|
126
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "subDomain", _descriptor13, _assertThisInitialized(_this));
|
|
127
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "emailDomain", _descriptor14, _assertThisInitialized(_this));
|
|
128
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "smsName", _descriptor15, _assertThisInitialized(_this));
|
|
129
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "showDomainPublicly", _descriptor16, _assertThisInitialized(_this));
|
|
130
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "publicAccessRestricted", _descriptor17, _assertThisInitialized(_this));
|
|
131
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "showDomainToAccessibleEntitiesOnly", _descriptor18, _assertThisInitialized(_this));
|
|
132
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "enableEmailNotifications", _descriptor19, _assertThisInitialized(_this));
|
|
133
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "enableSmsNotifications", _descriptor20, _assertThisInitialized(_this));
|
|
134
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "mailgunRecords", _descriptor21, _assertThisInitialized(_this));
|
|
135
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "enableNotifications", _descriptor22, _assertThisInitialized(_this));
|
|
136
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "trackingCodeGoogleConversion", _descriptor23, _assertThisInitialized(_this));
|
|
137
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "trackingCodeGoogleGlobal", _descriptor24, _assertThisInitialized(_this));
|
|
138
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "apiSecret", _descriptor25, _assertThisInitialized(_this));
|
|
139
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "webflowApiKey", _descriptor26, _assertThisInitialized(_this));
|
|
140
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "shopifyShopUrl", _descriptor27, _assertThisInitialized(_this));
|
|
141
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "shopifyIsActive", _descriptor28, _assertThisInitialized(_this));
|
|
142
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "qrShopQrCode", _descriptor29, _assertThisInitialized(_this));
|
|
143
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unltdAiApiOrganizationId", _descriptor30, _assertThisInitialized(_this));
|
|
144
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "unltdAiApiSecretKey", _descriptor31, _assertThisInitialized(_this));
|
|
145
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialBitchute", _descriptor32, _assertThisInitialized(_this));
|
|
146
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialDiscord", _descriptor33, _assertThisInitialized(_this));
|
|
147
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialFacebook", _descriptor34, _assertThisInitialized(_this));
|
|
148
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialGoogle", _descriptor35, _assertThisInitialized(_this));
|
|
149
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialInstagram", _descriptor36, _assertThisInitialized(_this));
|
|
150
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialLinkedin", _descriptor37, _assertThisInitialized(_this));
|
|
151
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialRumble", _descriptor38, _assertThisInitialized(_this));
|
|
152
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialTelegram", _descriptor39, _assertThisInitialized(_this));
|
|
153
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialTiktok", _descriptor40, _assertThisInitialized(_this));
|
|
154
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialX", _descriptor41, _assertThisInitialized(_this));
|
|
155
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "socialYoutube", _descriptor42, _assertThisInitialized(_this));
|
|
156
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "ownedBy", _descriptor43, _assertThisInitialized(_this));
|
|
157
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "company", _descriptor44, _assertThisInitialized(_this));
|
|
158
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "logo", _descriptor45, _assertThisInitialized(_this));
|
|
159
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "favicon", _descriptor46, _assertThisInitialized(_this));
|
|
160
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "activeTheme", _descriptor47, _assertThisInitialized(_this));
|
|
161
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "internalTags", _descriptor48, _assertThisInitialized(_this));
|
|
162
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "tags", _descriptor49, _assertThisInitialized(_this));
|
|
163
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "canSupply", _descriptor50, _assertThisInitialized(_this));
|
|
164
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "suppliedBy", _descriptor51, _assertThisInitialized(_this));
|
|
165
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "accessibleClients", _descriptor52, _assertThisInitialized(_this));
|
|
166
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "accessibleClientCompanies", _descriptor53, _assertThisInitialized(_this));
|
|
167
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "menus", _descriptor54, _assertThisInitialized(_this));
|
|
168
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "sessions", _descriptor55, _assertThisInitialized(_this));
|
|
169
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "categories", _descriptor56, _assertThisInitialized(_this));
|
|
170
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "notifications", _descriptor57, _assertThisInitialized(_this));
|
|
171
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "products", _descriptor58, _assertThisInitialized(_this));
|
|
172
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "supplyProducts", _descriptor59, _assertThisInitialized(_this));
|
|
173
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "jobs", _descriptor60, _assertThisInitialized(_this));
|
|
174
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "jobsAssignees", _descriptor61, _assertThisInitialized(_this));
|
|
175
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "carts", _descriptor62, _assertThisInitialized(_this));
|
|
176
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "enrollments", _descriptor63, _assertThisInitialized(_this));
|
|
177
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "invoices", _descriptor64, _assertThisInitialized(_this));
|
|
178
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "domainInvitations", _descriptor65, _assertThisInitialized(_this));
|
|
179
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "seoDomainPages", _descriptor66, _assertThisInitialized(_this));
|
|
180
|
+
_initializerDefineProperty(_assertThisInitialized(_this), "themes", _descriptor67, _assertThisInitialized(_this));
|
|
181
|
+
_defineProperty(_assertThisInitialized(_this), "defaultTaxType", function () {
|
|
182
|
+
if (_this.company === undefined) {
|
|
183
|
+
throw new Error('company is undefined, did you forget to embed it?');
|
|
184
|
+
}
|
|
185
|
+
if (_this.company.defaultTaxType === undefined) {
|
|
186
|
+
var err = 'company.defaultTaxType is undefined, did you forget to' + ' embed it?';
|
|
187
|
+
throw new Error(err);
|
|
188
|
+
}
|
|
189
|
+
return _this.company.defaultTaxType;
|
|
190
|
+
});
|
|
191
|
+
_defineProperty(_assertThisInitialized(_this), "getActiveTheme", function () {
|
|
192
|
+
if (_this.activeTheme === undefined) {
|
|
193
|
+
throw new Error('activeTheme is undefined, did you forget to embed it?');
|
|
194
|
+
}
|
|
195
|
+
return _this.activeTheme;
|
|
196
|
+
});
|
|
197
|
+
return _this;
|
|
198
|
+
}
|
|
199
|
+
return _createClass(Domain);
|
|
200
|
+
}(Entity), _defineProperty(_Domain, "resourceName", 'domains'), _defineProperty(_Domain, "singularName", 'domain'), _defineProperty(_Domain, "pluralName", 'domains'), _Domain), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
|
|
201
|
+
configurable: true,
|
|
202
|
+
enumerable: true,
|
|
203
|
+
writable: true,
|
|
204
|
+
initializer: null
|
|
205
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "id", [_dec2], {
|
|
206
|
+
configurable: true,
|
|
207
|
+
enumerable: true,
|
|
208
|
+
writable: true,
|
|
209
|
+
initializer: null
|
|
210
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "domain", [_dec3], {
|
|
211
|
+
configurable: true,
|
|
212
|
+
enumerable: true,
|
|
213
|
+
writable: true,
|
|
214
|
+
initializer: null
|
|
215
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "country", [_dec4], {
|
|
216
|
+
configurable: true,
|
|
217
|
+
enumerable: true,
|
|
218
|
+
writable: true,
|
|
219
|
+
initializer: null
|
|
220
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "currency", [_dec5], {
|
|
221
|
+
configurable: true,
|
|
222
|
+
enumerable: true,
|
|
223
|
+
writable: true,
|
|
224
|
+
initializer: null
|
|
225
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "callToActions", [_dec6], {
|
|
226
|
+
configurable: true,
|
|
227
|
+
enumerable: true,
|
|
228
|
+
writable: true,
|
|
229
|
+
initializer: null
|
|
230
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "callToActionDetails", [_dec7], {
|
|
231
|
+
configurable: true,
|
|
232
|
+
enumerable: true,
|
|
233
|
+
writable: true,
|
|
234
|
+
initializer: null
|
|
235
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "isMaster", [_dec8], {
|
|
236
|
+
configurable: true,
|
|
237
|
+
enumerable: true,
|
|
238
|
+
writable: true,
|
|
239
|
+
initializer: null
|
|
240
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "internalUseNotes", [_dec9], {
|
|
241
|
+
configurable: true,
|
|
242
|
+
enumerable: true,
|
|
243
|
+
writable: true,
|
|
244
|
+
initializer: null
|
|
245
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "internalUseAiContext", [_dec10], {
|
|
246
|
+
configurable: true,
|
|
247
|
+
enumerable: true,
|
|
248
|
+
writable: true,
|
|
249
|
+
initializer: null
|
|
250
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "aiContext", [_dec11], {
|
|
251
|
+
configurable: true,
|
|
252
|
+
enumerable: true,
|
|
253
|
+
writable: true,
|
|
254
|
+
initializer: null
|
|
255
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, "domainType", [_dec12], {
|
|
256
|
+
configurable: true,
|
|
257
|
+
enumerable: true,
|
|
258
|
+
writable: true,
|
|
259
|
+
initializer: null
|
|
260
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, "subDomain", [_dec13], {
|
|
261
|
+
configurable: true,
|
|
262
|
+
enumerable: true,
|
|
263
|
+
writable: true,
|
|
264
|
+
initializer: null
|
|
265
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, "emailDomain", [_dec14], {
|
|
266
|
+
configurable: true,
|
|
267
|
+
enumerable: true,
|
|
268
|
+
writable: true,
|
|
269
|
+
initializer: null
|
|
270
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, "smsName", [_dec15], {
|
|
271
|
+
configurable: true,
|
|
272
|
+
enumerable: true,
|
|
273
|
+
writable: true,
|
|
274
|
+
initializer: null
|
|
275
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, "showDomainPublicly", [_dec16], {
|
|
276
|
+
configurable: true,
|
|
277
|
+
enumerable: true,
|
|
278
|
+
writable: true,
|
|
279
|
+
initializer: null
|
|
280
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, "publicAccessRestricted", [_dec17], {
|
|
281
|
+
configurable: true,
|
|
282
|
+
enumerable: true,
|
|
283
|
+
writable: true,
|
|
284
|
+
initializer: null
|
|
285
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, "showDomainToAccessibleEntitiesOnly", [_dec18], {
|
|
286
|
+
configurable: true,
|
|
287
|
+
enumerable: true,
|
|
288
|
+
writable: true,
|
|
289
|
+
initializer: null
|
|
290
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, "enableEmailNotifications", [_dec19], {
|
|
291
|
+
configurable: true,
|
|
292
|
+
enumerable: true,
|
|
293
|
+
writable: true,
|
|
294
|
+
initializer: null
|
|
295
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, "enableSmsNotifications", [_dec20], {
|
|
296
|
+
configurable: true,
|
|
297
|
+
enumerable: true,
|
|
298
|
+
writable: true,
|
|
299
|
+
initializer: null
|
|
300
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, "mailgunRecords", [_dec21], {
|
|
301
|
+
configurable: true,
|
|
302
|
+
enumerable: true,
|
|
303
|
+
writable: true,
|
|
304
|
+
initializer: null
|
|
305
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, "enableNotifications", [_dec22], {
|
|
306
|
+
configurable: true,
|
|
307
|
+
enumerable: true,
|
|
308
|
+
writable: true,
|
|
309
|
+
initializer: null
|
|
310
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, "trackingCodeGoogleConversion", [_dec23], {
|
|
311
|
+
configurable: true,
|
|
312
|
+
enumerable: true,
|
|
313
|
+
writable: true,
|
|
314
|
+
initializer: null
|
|
315
|
+
}), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, "trackingCodeGoogleGlobal", [_dec24], {
|
|
316
|
+
configurable: true,
|
|
317
|
+
enumerable: true,
|
|
318
|
+
writable: true,
|
|
319
|
+
initializer: null
|
|
320
|
+
}), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, "apiSecret", [_dec25], {
|
|
321
|
+
configurable: true,
|
|
322
|
+
enumerable: true,
|
|
323
|
+
writable: true,
|
|
324
|
+
initializer: null
|
|
325
|
+
}), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, "webflowApiKey", [_dec26], {
|
|
326
|
+
configurable: true,
|
|
327
|
+
enumerable: true,
|
|
328
|
+
writable: true,
|
|
329
|
+
initializer: null
|
|
330
|
+
}), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, "shopifyShopUrl", [_dec27], {
|
|
331
|
+
configurable: true,
|
|
332
|
+
enumerable: true,
|
|
333
|
+
writable: true,
|
|
334
|
+
initializer: null
|
|
335
|
+
}), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, "shopifyIsActive", [_dec28], {
|
|
336
|
+
configurable: true,
|
|
337
|
+
enumerable: true,
|
|
338
|
+
writable: true,
|
|
339
|
+
initializer: null
|
|
340
|
+
}), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, "qrShopQrCode", [_dec29], {
|
|
341
|
+
configurable: true,
|
|
342
|
+
enumerable: true,
|
|
343
|
+
writable: true,
|
|
344
|
+
initializer: null
|
|
345
|
+
}), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, "unltdAiApiOrganizationId", [_dec30], {
|
|
346
|
+
configurable: true,
|
|
347
|
+
enumerable: true,
|
|
348
|
+
writable: true,
|
|
349
|
+
initializer: null
|
|
350
|
+
}), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, "unltdAiApiSecretKey", [_dec31], {
|
|
351
|
+
configurable: true,
|
|
352
|
+
enumerable: true,
|
|
353
|
+
writable: true,
|
|
354
|
+
initializer: null
|
|
355
|
+
}), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, "socialBitchute", [_dec32], {
|
|
356
|
+
configurable: true,
|
|
357
|
+
enumerable: true,
|
|
358
|
+
writable: true,
|
|
359
|
+
initializer: null
|
|
360
|
+
}), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, "socialDiscord", [_dec33], {
|
|
361
|
+
configurable: true,
|
|
362
|
+
enumerable: true,
|
|
363
|
+
writable: true,
|
|
364
|
+
initializer: null
|
|
365
|
+
}), _descriptor34 = _applyDecoratedDescriptor(_class.prototype, "socialFacebook", [_dec34], {
|
|
366
|
+
configurable: true,
|
|
367
|
+
enumerable: true,
|
|
368
|
+
writable: true,
|
|
369
|
+
initializer: null
|
|
370
|
+
}), _descriptor35 = _applyDecoratedDescriptor(_class.prototype, "socialGoogle", [_dec35], {
|
|
371
|
+
configurable: true,
|
|
372
|
+
enumerable: true,
|
|
373
|
+
writable: true,
|
|
374
|
+
initializer: null
|
|
375
|
+
}), _descriptor36 = _applyDecoratedDescriptor(_class.prototype, "socialInstagram", [_dec36], {
|
|
376
|
+
configurable: true,
|
|
377
|
+
enumerable: true,
|
|
378
|
+
writable: true,
|
|
379
|
+
initializer: null
|
|
380
|
+
}), _descriptor37 = _applyDecoratedDescriptor(_class.prototype, "socialLinkedin", [_dec37], {
|
|
381
|
+
configurable: true,
|
|
382
|
+
enumerable: true,
|
|
383
|
+
writable: true,
|
|
384
|
+
initializer: null
|
|
385
|
+
}), _descriptor38 = _applyDecoratedDescriptor(_class.prototype, "socialRumble", [_dec38], {
|
|
386
|
+
configurable: true,
|
|
387
|
+
enumerable: true,
|
|
388
|
+
writable: true,
|
|
389
|
+
initializer: null
|
|
390
|
+
}), _descriptor39 = _applyDecoratedDescriptor(_class.prototype, "socialTelegram", [_dec39], {
|
|
391
|
+
configurable: true,
|
|
392
|
+
enumerable: true,
|
|
393
|
+
writable: true,
|
|
394
|
+
initializer: null
|
|
395
|
+
}), _descriptor40 = _applyDecoratedDescriptor(_class.prototype, "socialTiktok", [_dec40], {
|
|
396
|
+
configurable: true,
|
|
397
|
+
enumerable: true,
|
|
398
|
+
writable: true,
|
|
399
|
+
initializer: null
|
|
400
|
+
}), _descriptor41 = _applyDecoratedDescriptor(_class.prototype, "socialX", [_dec41], {
|
|
401
|
+
configurable: true,
|
|
402
|
+
enumerable: true,
|
|
403
|
+
writable: true,
|
|
404
|
+
initializer: null
|
|
405
|
+
}), _descriptor42 = _applyDecoratedDescriptor(_class.prototype, "socialYoutube", [_dec42], {
|
|
406
|
+
configurable: true,
|
|
407
|
+
enumerable: true,
|
|
408
|
+
writable: true,
|
|
409
|
+
initializer: null
|
|
410
|
+
}), _descriptor43 = _applyDecoratedDescriptor(_class.prototype, "ownedBy", [_dec43], {
|
|
411
|
+
configurable: true,
|
|
412
|
+
enumerable: true,
|
|
413
|
+
writable: true,
|
|
414
|
+
initializer: null
|
|
415
|
+
}), _descriptor44 = _applyDecoratedDescriptor(_class.prototype, "company", [_dec44], {
|
|
416
|
+
configurable: true,
|
|
417
|
+
enumerable: true,
|
|
418
|
+
writable: true,
|
|
419
|
+
initializer: null
|
|
420
|
+
}), _descriptor45 = _applyDecoratedDescriptor(_class.prototype, "logo", [_dec45], {
|
|
421
|
+
configurable: true,
|
|
422
|
+
enumerable: true,
|
|
423
|
+
writable: true,
|
|
424
|
+
initializer: null
|
|
425
|
+
}), _descriptor46 = _applyDecoratedDescriptor(_class.prototype, "favicon", [_dec46], {
|
|
426
|
+
configurable: true,
|
|
427
|
+
enumerable: true,
|
|
428
|
+
writable: true,
|
|
429
|
+
initializer: null
|
|
430
|
+
}), _descriptor47 = _applyDecoratedDescriptor(_class.prototype, "activeTheme", [_dec47], {
|
|
431
|
+
configurable: true,
|
|
432
|
+
enumerable: true,
|
|
433
|
+
writable: true,
|
|
434
|
+
initializer: null
|
|
435
|
+
}), _descriptor48 = _applyDecoratedDescriptor(_class.prototype, "internalTags", [_dec48], {
|
|
436
|
+
configurable: true,
|
|
437
|
+
enumerable: true,
|
|
438
|
+
writable: true,
|
|
439
|
+
initializer: null
|
|
440
|
+
}), _descriptor49 = _applyDecoratedDescriptor(_class.prototype, "tags", [_dec49], {
|
|
441
|
+
configurable: true,
|
|
442
|
+
enumerable: true,
|
|
443
|
+
writable: true,
|
|
444
|
+
initializer: null
|
|
445
|
+
}), _descriptor50 = _applyDecoratedDescriptor(_class.prototype, "canSupply", [_dec50], {
|
|
446
|
+
configurable: true,
|
|
447
|
+
enumerable: true,
|
|
448
|
+
writable: true,
|
|
449
|
+
initializer: null
|
|
450
|
+
}), _descriptor51 = _applyDecoratedDescriptor(_class.prototype, "suppliedBy", [_dec51], {
|
|
451
|
+
configurable: true,
|
|
452
|
+
enumerable: true,
|
|
453
|
+
writable: true,
|
|
454
|
+
initializer: null
|
|
455
|
+
}), _descriptor52 = _applyDecoratedDescriptor(_class.prototype, "accessibleClients", [_dec52], {
|
|
456
|
+
configurable: true,
|
|
457
|
+
enumerable: true,
|
|
458
|
+
writable: true,
|
|
459
|
+
initializer: null
|
|
460
|
+
}), _descriptor53 = _applyDecoratedDescriptor(_class.prototype, "accessibleClientCompanies", [_dec53], {
|
|
461
|
+
configurable: true,
|
|
462
|
+
enumerable: true,
|
|
463
|
+
writable: true,
|
|
464
|
+
initializer: null
|
|
465
|
+
}), _descriptor54 = _applyDecoratedDescriptor(_class.prototype, "menus", [_dec54], {
|
|
466
|
+
configurable: true,
|
|
467
|
+
enumerable: true,
|
|
468
|
+
writable: true,
|
|
469
|
+
initializer: null
|
|
470
|
+
}), _descriptor55 = _applyDecoratedDescriptor(_class.prototype, "sessions", [_dec55], {
|
|
471
|
+
configurable: true,
|
|
472
|
+
enumerable: true,
|
|
473
|
+
writable: true,
|
|
474
|
+
initializer: null
|
|
475
|
+
}), _descriptor56 = _applyDecoratedDescriptor(_class.prototype, "categories", [_dec56], {
|
|
476
|
+
configurable: true,
|
|
477
|
+
enumerable: true,
|
|
478
|
+
writable: true,
|
|
479
|
+
initializer: null
|
|
480
|
+
}), _descriptor57 = _applyDecoratedDescriptor(_class.prototype, "notifications", [_dec57], {
|
|
481
|
+
configurable: true,
|
|
482
|
+
enumerable: true,
|
|
483
|
+
writable: true,
|
|
484
|
+
initializer: null
|
|
485
|
+
}), _descriptor58 = _applyDecoratedDescriptor(_class.prototype, "products", [_dec58], {
|
|
486
|
+
configurable: true,
|
|
487
|
+
enumerable: true,
|
|
488
|
+
writable: true,
|
|
489
|
+
initializer: null
|
|
490
|
+
}), _descriptor59 = _applyDecoratedDescriptor(_class.prototype, "supplyProducts", [_dec59], {
|
|
491
|
+
configurable: true,
|
|
492
|
+
enumerable: true,
|
|
493
|
+
writable: true,
|
|
494
|
+
initializer: null
|
|
495
|
+
}), _descriptor60 = _applyDecoratedDescriptor(_class.prototype, "jobs", [_dec60], {
|
|
496
|
+
configurable: true,
|
|
497
|
+
enumerable: true,
|
|
498
|
+
writable: true,
|
|
499
|
+
initializer: null
|
|
500
|
+
}), _descriptor61 = _applyDecoratedDescriptor(_class.prototype, "jobsAssignees", [_dec61], {
|
|
501
|
+
configurable: true,
|
|
502
|
+
enumerable: true,
|
|
503
|
+
writable: true,
|
|
504
|
+
initializer: null
|
|
505
|
+
}), _descriptor62 = _applyDecoratedDescriptor(_class.prototype, "carts", [_dec62], {
|
|
506
|
+
configurable: true,
|
|
507
|
+
enumerable: true,
|
|
508
|
+
writable: true,
|
|
509
|
+
initializer: null
|
|
510
|
+
}), _descriptor63 = _applyDecoratedDescriptor(_class.prototype, "enrollments", [_dec63], {
|
|
511
|
+
configurable: true,
|
|
512
|
+
enumerable: true,
|
|
513
|
+
writable: true,
|
|
514
|
+
initializer: null
|
|
515
|
+
}), _descriptor64 = _applyDecoratedDescriptor(_class.prototype, "invoices", [_dec64], {
|
|
516
|
+
configurable: true,
|
|
517
|
+
enumerable: true,
|
|
518
|
+
writable: true,
|
|
519
|
+
initializer: null
|
|
520
|
+
}), _descriptor65 = _applyDecoratedDescriptor(_class.prototype, "domainInvitations", [_dec65], {
|
|
521
|
+
configurable: true,
|
|
522
|
+
enumerable: true,
|
|
523
|
+
writable: true,
|
|
524
|
+
initializer: null
|
|
525
|
+
}), _descriptor66 = _applyDecoratedDescriptor(_class.prototype, "seoDomainPages", [_dec66], {
|
|
526
|
+
configurable: true,
|
|
527
|
+
enumerable: true,
|
|
528
|
+
writable: true,
|
|
529
|
+
initializer: null
|
|
530
|
+
}), _descriptor67 = _applyDecoratedDescriptor(_class.prototype, "themes", [_dec67], {
|
|
531
|
+
configurable: true,
|
|
532
|
+
enumerable: true,
|
|
533
|
+
writable: true,
|
|
534
|
+
initializer: null
|
|
535
|
+
})), _class));
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Merchi } from '../merchi';
|
|
2
|
+
import { setup, mockFetch } from '../test_util';
|
|
3
|
+
setup();
|
|
4
|
+
test('can make domain', function () {
|
|
5
|
+
var merchi = new Merchi();
|
|
6
|
+
var domain = new merchi.Domain();
|
|
7
|
+
expect(domain).toBeTruthy();
|
|
8
|
+
});
|
|
9
|
+
test('can get and set id', function () {
|
|
10
|
+
var merchi = new Merchi();
|
|
11
|
+
var domain = new merchi.Domain();
|
|
12
|
+
domain.id = 2;
|
|
13
|
+
expect(domain.id).toBe(2);
|
|
14
|
+
});
|
|
15
|
+
test('can get and set domain', function () {
|
|
16
|
+
var merchi = new Merchi();
|
|
17
|
+
var domain = new merchi.Domain();
|
|
18
|
+
domain.domain = 'example.com';
|
|
19
|
+
expect(domain.domain).toBe('example.com');
|
|
20
|
+
});
|
|
21
|
+
test('can create domain on server', function () {
|
|
22
|
+
var merchi = new Merchi();
|
|
23
|
+
var domain = new merchi.Domain();
|
|
24
|
+
domain.domain = 'example.com';
|
|
25
|
+
var data = Array.from(domain.toFormData().entries());
|
|
26
|
+
var fetch = mockFetch(true, {}, 201);
|
|
27
|
+
domain.create();
|
|
28
|
+
var sentToServer = Array.from(fetch.mock.calls[0][1]['body'].entries());
|
|
29
|
+
expect(sentToServer).toEqual(data);
|
|
30
|
+
});
|
|
31
|
+
test('can delete domain', function () {
|
|
32
|
+
var merchi = new Merchi();
|
|
33
|
+
var domain = new merchi.Domain();
|
|
34
|
+
domain.id = 1;
|
|
35
|
+
var fetch = mockFetch(true, {}, 204);
|
|
36
|
+
domain["delete"]();
|
|
37
|
+
expect(fetch.mock.calls[0][1].method).toBe('DELETE');
|
|
38
|
+
});
|
|
39
|
+
test('taxType', function () {
|
|
40
|
+
var merchi = new Merchi();
|
|
41
|
+
var domain = new merchi.Domain();
|
|
42
|
+
expect(domain.defaultTaxType).toThrow();
|
|
43
|
+
domain.company = new merchi.Company();
|
|
44
|
+
expect(domain.defaultTaxType).toThrow();
|
|
45
|
+
var tax = new merchi.CountryTax();
|
|
46
|
+
domain.company.defaultTaxType = tax;
|
|
47
|
+
expect(domain.defaultTaxType()).toBe(tax);
|
|
48
|
+
domain.company.defaultTaxType = null;
|
|
49
|
+
expect(domain.defaultTaxType()).toBe(null);
|
|
50
|
+
});
|
|
51
|
+
test('can get domain active theme', function () {
|
|
52
|
+
var merchi = new Merchi();
|
|
53
|
+
var domain = new merchi.Domain();
|
|
54
|
+
|
|
55
|
+
// throw error if active theme is undefined which seems to be an embed issue
|
|
56
|
+
expect(function () {
|
|
57
|
+
domain.getActiveTheme();
|
|
58
|
+
}).toThrow(Error);
|
|
59
|
+
var theme = new merchi.Theme();
|
|
60
|
+
domain.activeTheme = theme;
|
|
61
|
+
expect(domain.getActiveTheme()).toEqual(theme);
|
|
62
|
+
});
|
|
63
|
+
test('fail to delete non-existant domain', function () {
|
|
64
|
+
var merchi = new Merchi('YrDwzmh8&QGtAfg9quh(4QfSlE^RPXWl');
|
|
65
|
+
var domain = new merchi.Domain();
|
|
66
|
+
domain.id = -1;
|
|
67
|
+
var fetch = mockFetch(true, {
|
|
68
|
+
statusCode: 404
|
|
69
|
+
}, 404);
|
|
70
|
+
var invocation = domain["delete"]();
|
|
71
|
+
expect(fetch.mock.calls[0][1].method).toBe('DELETE');
|
|
72
|
+
return invocation["catch"](function (e) {
|
|
73
|
+
return expect(e.statusCode).toEqual(404);
|
|
74
|
+
});
|
|
75
|
+
});
|