@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,35 @@
|
|
|
1
|
+
import { Merchi } from '../merchi.js';
|
|
2
|
+
test('can make Theme', function () {
|
|
3
|
+
var merchi = new Merchi();
|
|
4
|
+
var theme = new merchi.Theme();
|
|
5
|
+
expect(theme).toBeTruthy();
|
|
6
|
+
});
|
|
7
|
+
test('can be activated', function () {
|
|
8
|
+
var merchi = new Merchi();
|
|
9
|
+
var theme = new merchi.Theme();
|
|
10
|
+
expect(theme.canBeActivated).toThrow();
|
|
11
|
+
theme.mainCssStatus = 3;
|
|
12
|
+
theme.emailCssStatus = 3;
|
|
13
|
+
expect(theme.canBeActivated()).toBe(true);
|
|
14
|
+
theme.mainCssStatus = 1;
|
|
15
|
+
expect(theme.canBeActivated()).toBe(false);
|
|
16
|
+
});
|
|
17
|
+
test('is active on domain', function () {
|
|
18
|
+
var merchi = new Merchi();
|
|
19
|
+
var theme = new merchi.Theme();
|
|
20
|
+
theme.id = 3;
|
|
21
|
+
var otherTheme = new merchi.Theme();
|
|
22
|
+
otherTheme.id = 4;
|
|
23
|
+
var domain = new merchi.Domain();
|
|
24
|
+
domain.id = 1;
|
|
25
|
+
expect(function () { return theme.isActiveOnDomain(1); }).toThrow();
|
|
26
|
+
theme.domain = null;
|
|
27
|
+
expect(theme.isActiveOnDomain(1)).toBe(false);
|
|
28
|
+
theme.domain = domain;
|
|
29
|
+
expect(function () { return theme.isActiveOnDomain(1); }).toThrow();
|
|
30
|
+
domain.activeTheme = otherTheme;
|
|
31
|
+
expect(theme.isActiveOnDomain(1)).toBe(false);
|
|
32
|
+
domain.activeTheme = theme;
|
|
33
|
+
expect(theme.isActiveOnDomain(1)).toBe(true);
|
|
34
|
+
expect(theme.isActiveOnDomain(2)).toBe(false);
|
|
35
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import { Entity } from '../entity.js';
|
|
26
|
+
import { User } from './user.js';
|
|
27
|
+
var ThemeCssSetting = /** @class */ (function (_super) {
|
|
28
|
+
__extends(ThemeCssSetting, _super);
|
|
29
|
+
function ThemeCssSetting() {
|
|
30
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
31
|
+
}
|
|
32
|
+
ThemeCssSetting.resourceName = 'theme_css_settings';
|
|
33
|
+
ThemeCssSetting.singularName = 'themeCssSetting';
|
|
34
|
+
ThemeCssSetting.pluralName = 'themeCssSettings';
|
|
35
|
+
__decorate([
|
|
36
|
+
ThemeCssSetting.property(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], ThemeCssSetting.prototype, "id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ThemeCssSetting.property({ type: Date }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], ThemeCssSetting.prototype, "created", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
ThemeCssSetting.property({ type: User }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], ThemeCssSetting.prototype, "createdBy", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
ThemeCssSetting.property(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ThemeCssSetting.prototype, "allowedAttributes", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
ThemeCssSetting.property(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ThemeCssSetting.prototype, "notAllowedAttributes", void 0);
|
|
55
|
+
return ThemeCssSetting;
|
|
56
|
+
}(Entity));
|
|
57
|
+
export { ThemeCssSetting };
|
|
@@ -0,0 +1,508 @@
|
|
|
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 __read = (this && this.__read) || function (o, n) {
|
|
26
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
27
|
+
if (!m) return o;
|
|
28
|
+
var i = m.call(o), r, ar = [], e;
|
|
29
|
+
try {
|
|
30
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
31
|
+
}
|
|
32
|
+
catch (error) { e = { error: error }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e) throw e.error; }
|
|
38
|
+
}
|
|
39
|
+
return ar;
|
|
40
|
+
};
|
|
41
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
42
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
43
|
+
if (ar || !(i in from)) {
|
|
44
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
45
|
+
ar[i] = from[i];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
49
|
+
};
|
|
50
|
+
import { Entity } from '../entity.js';
|
|
51
|
+
import { Role, DOMAIN_MANAGERS, MANAGEMENT_TEAM, BUSINESS_ACCOUNTS, ROLES_RANK } from '../constants/roles.js';
|
|
52
|
+
import { UserType } from '../constants/user_types.js';
|
|
53
|
+
import { some } from 'lodash';
|
|
54
|
+
var User = /** @class */ (function (_super) {
|
|
55
|
+
__extends(User, _super);
|
|
56
|
+
function User() {
|
|
57
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58
|
+
_this.publicCreate = _this.createFactory({ resourceName: 'public_user_create' });
|
|
59
|
+
_this.roleInDomain = function (domain) {
|
|
60
|
+
if (_this.enrolledDomains === undefined) {
|
|
61
|
+
var err = 'enrolledDomains is undefined, did you forget to embed it?';
|
|
62
|
+
throw new Error(err);
|
|
63
|
+
}
|
|
64
|
+
if (_this.enrolledDomains
|
|
65
|
+
.map(function (enrolledDomain) { return enrolledDomain.domain; })
|
|
66
|
+
.some(function (domain) { return domain === undefined; })) {
|
|
67
|
+
var err = 'Domain of enrolled domain is undefined, did you forget to embed it?';
|
|
68
|
+
throw new Error(err);
|
|
69
|
+
}
|
|
70
|
+
var matchingEnrolledDomains = _this.enrolledDomains.filter(function (enrolledDomain) { return enrolledDomain.domain && enrolledDomain.domain.id === domain.id; });
|
|
71
|
+
if (matchingEnrolledDomains.length > 1) {
|
|
72
|
+
var highestRoleRank = Math.max.apply(Math, __spreadArray([], __read(matchingEnrolledDomains.map(function (ed) { return ROLES_RANK.findIndex(function (e) { return e === ed.role; }); })), false));
|
|
73
|
+
return ROLES_RANK[highestRoleRank];
|
|
74
|
+
}
|
|
75
|
+
// due to some current system issues, user can have multiple enrolled domain
|
|
76
|
+
// of one domain, if that is the case either of them can be consider as
|
|
77
|
+
// valid, need to revisit it in the future related to #
|
|
78
|
+
if (matchingEnrolledDomains.length > 0) {
|
|
79
|
+
if (matchingEnrolledDomains[0].role !== undefined) {
|
|
80
|
+
return matchingEnrolledDomains[0].role;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return Role.PUBLIC;
|
|
84
|
+
};
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
87
|
+
User.prototype.isSuper = function () {
|
|
88
|
+
if (this.isSuperUser === undefined) {
|
|
89
|
+
var err = 'isSuperUser is undefined, did you forget to embed it?';
|
|
90
|
+
throw new Error(err);
|
|
91
|
+
}
|
|
92
|
+
return this.isSuperUser;
|
|
93
|
+
};
|
|
94
|
+
User.prototype.companies = function () {
|
|
95
|
+
if (this.userCompanies === undefined) {
|
|
96
|
+
var err = 'userCompanies is undefined, did you forget to embed it?';
|
|
97
|
+
throw new Error(err);
|
|
98
|
+
}
|
|
99
|
+
return this.userCompanies.map(function (userCompany) {
|
|
100
|
+
if (userCompany.company === undefined) {
|
|
101
|
+
var err = 'userCompany.company is undefined, did you forget to embed it?';
|
|
102
|
+
throw new Error(err);
|
|
103
|
+
}
|
|
104
|
+
return userCompany.company;
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
User.prototype.isDomainManager = function (domain) {
|
|
108
|
+
return DOMAIN_MANAGERS.includes(this.roleInDomain(domain));
|
|
109
|
+
};
|
|
110
|
+
User.prototype.isManagementTeam = function (domain) {
|
|
111
|
+
return MANAGEMENT_TEAM.includes(this.roleInDomain(domain));
|
|
112
|
+
};
|
|
113
|
+
User.prototype.isNotClient = function (domain) {
|
|
114
|
+
return BUSINESS_ACCOUNTS.includes(this.roleInDomain(domain));
|
|
115
|
+
};
|
|
116
|
+
User.prototype.domainsByRoles = function (roles) {
|
|
117
|
+
if (this.enrolledDomains === undefined) {
|
|
118
|
+
var err = 'enrolledDomains is undefined, did you forget to embed it?';
|
|
119
|
+
throw new Error(err);
|
|
120
|
+
}
|
|
121
|
+
var result = [];
|
|
122
|
+
for (var i = 0; i < this.enrolledDomains.length; ++i) {
|
|
123
|
+
var domain = this.enrolledDomains[i].domain;
|
|
124
|
+
if (domain === undefined) {
|
|
125
|
+
var err = 'domain is undefined, did you forget to embed it?';
|
|
126
|
+
throw new Error(err);
|
|
127
|
+
}
|
|
128
|
+
if (this.hasAuthority(domain, roles)) {
|
|
129
|
+
result.push(domain);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return result;
|
|
133
|
+
};
|
|
134
|
+
User.prototype.hasAuthority = function (domain, roles) {
|
|
135
|
+
if (this.isSuper()) {
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
var role = this.roleInDomain(domain);
|
|
139
|
+
for (var i = 0; i < roles.length; ++i) {
|
|
140
|
+
if (roles[i] === role) {
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return false;
|
|
145
|
+
};
|
|
146
|
+
User.prototype.hasSystemRole = function (role) {
|
|
147
|
+
if (this.systemRoles === undefined) {
|
|
148
|
+
var err = 'systemRoles is undefined, did you forget to embed it?';
|
|
149
|
+
throw new Error(err);
|
|
150
|
+
}
|
|
151
|
+
return some(this.systemRoles.map(function (systemRole) { return systemRole.role === role; }));
|
|
152
|
+
};
|
|
153
|
+
User.prototype.hasRoles = function (roles, combinationMethod) {
|
|
154
|
+
if (combinationMethod === void 0) { combinationMethod = some; }
|
|
155
|
+
if (this.enrolledDomains === undefined) {
|
|
156
|
+
var err = 'enrolledDomains is undefined, did you forget to embed it?';
|
|
157
|
+
throw new Error(err);
|
|
158
|
+
}
|
|
159
|
+
var allRoles = this.enrolledDomains.map(function (enrolledDomain) { return enrolledDomain.getRole(); });
|
|
160
|
+
allRoles.push(Role.PUBLIC);
|
|
161
|
+
return combinationMethod(roles.map(function (role) { return allRoles.indexOf(role) !== -1; }));
|
|
162
|
+
};
|
|
163
|
+
User.resourceName = 'users';
|
|
164
|
+
User.singularName = 'user';
|
|
165
|
+
User.pluralName = 'users';
|
|
166
|
+
__decorate([
|
|
167
|
+
User.property({ type: Date }),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], User.prototype, "archived", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
User.property(),
|
|
172
|
+
__metadata("design:type", Number)
|
|
173
|
+
], User.prototype, "id", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
User.property(),
|
|
176
|
+
__metadata("design:type", Boolean)
|
|
177
|
+
], User.prototype, "isSuperUser", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
User.property(),
|
|
180
|
+
__metadata("design:type", Number)
|
|
181
|
+
], User.prototype, "userType", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
User.property(),
|
|
184
|
+
__metadata("design:type", Boolean)
|
|
185
|
+
], User.prototype, "registeredAsGuest", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
User.property(),
|
|
188
|
+
__metadata("design:type", Boolean)
|
|
189
|
+
], User.prototype, "isMerchiAgent", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
User.property({ arrayType: 'InternalTag' }),
|
|
192
|
+
__metadata("design:type", Array)
|
|
193
|
+
], User.prototype, "internalTags", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
User.property({ arrayType: 'DomainTag' }),
|
|
196
|
+
__metadata("design:type", Array)
|
|
197
|
+
], User.prototype, "tags", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
User.property({ arrayType: 'Domain' }),
|
|
200
|
+
__metadata("design:type", Array)
|
|
201
|
+
], User.prototype, "registeredUnderDomains", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
User.property({ type: String }),
|
|
204
|
+
__metadata("design:type", Object)
|
|
205
|
+
], User.prototype, "password", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
User.property({ type: String }),
|
|
208
|
+
__metadata("design:type", Object)
|
|
209
|
+
], User.prototype, "salt", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
User.property({ type: String }),
|
|
212
|
+
__metadata("design:type", Object)
|
|
213
|
+
], User.prototype, "facebookUserId", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
User.property({ type: String }),
|
|
216
|
+
__metadata("design:type", Object)
|
|
217
|
+
], User.prototype, "resetToken", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
User.property({ type: String }),
|
|
220
|
+
__metadata("design:type", Object)
|
|
221
|
+
], User.prototype, "resetTokenDate", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
User.property({ type: String }),
|
|
224
|
+
__metadata("design:type", Object)
|
|
225
|
+
], User.prototype, "smsToken", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
User.property({ type: Date }),
|
|
228
|
+
__metadata("design:type", Object)
|
|
229
|
+
], User.prototype, "resetSmsTokenDate", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
User.property({ type: String }),
|
|
232
|
+
__metadata("design:type", Object)
|
|
233
|
+
], User.prototype, "smsClientToken", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
User.property({ type: Boolean }),
|
|
236
|
+
__metadata("design:type", Boolean)
|
|
237
|
+
], User.prototype, "smsTokenConfirmed", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
User.property({ type: Number }),
|
|
240
|
+
__metadata("design:type", Number)
|
|
241
|
+
], User.prototype, "smsLoginThreshold", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
User.property(),
|
|
244
|
+
__metadata("design:type", Number)
|
|
245
|
+
], User.prototype, "jobCountAsClient", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
User.property(),
|
|
248
|
+
__metadata("design:type", Number)
|
|
249
|
+
], User.prototype, "totalInvoiceValue", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
User.property(),
|
|
252
|
+
__metadata("design:type", Boolean)
|
|
253
|
+
], User.prototype, "hasStore", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
User.property(),
|
|
256
|
+
__metadata("design:type", Boolean)
|
|
257
|
+
], User.prototype, "lastJobReceived", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
User.property(),
|
|
260
|
+
__metadata("design:type", Boolean)
|
|
261
|
+
], User.prototype, "canEdit", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
User.property(),
|
|
264
|
+
__metadata("design:type", Boolean)
|
|
265
|
+
], User.prototype, "enableCrashReports", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
User.property(),
|
|
268
|
+
__metadata("design:type", Boolean)
|
|
269
|
+
], User.prototype, "enableClientEmails", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
User.property({ type: String }),
|
|
272
|
+
__metadata("design:type", Object)
|
|
273
|
+
], User.prototype, "clientToken", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
User.property(),
|
|
276
|
+
__metadata("design:type", String)
|
|
277
|
+
], User.prototype, "name", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
User.property({ type: String }),
|
|
280
|
+
__metadata("design:type", String)
|
|
281
|
+
], User.prototype, "internalUseNotes", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
User.property({ type: String }),
|
|
284
|
+
__metadata("design:type", String)
|
|
285
|
+
], User.prototype, "telegramUsername", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
User.property({ type: String }),
|
|
288
|
+
__metadata("design:type", String)
|
|
289
|
+
], User.prototype, "internalUseAiContext", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
User.property({ type: String }),
|
|
292
|
+
__metadata("design:type", String)
|
|
293
|
+
], User.prototype, "aiContext", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
User.property(),
|
|
296
|
+
__metadata("design:type", String)
|
|
297
|
+
], User.prototype, "callToActions", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
User.property(),
|
|
300
|
+
__metadata("design:type", Array)
|
|
301
|
+
], User.prototype, "callToActionDetails", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
User.property({ type: String }),
|
|
304
|
+
__metadata("design:type", Object)
|
|
305
|
+
], User.prototype, "comments", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
User.property({ type: String }),
|
|
308
|
+
__metadata("design:type", Object)
|
|
309
|
+
], User.prototype, "timezone", void 0);
|
|
310
|
+
__decorate([
|
|
311
|
+
User.property({ type: Date }),
|
|
312
|
+
__metadata("design:type", Object)
|
|
313
|
+
], User.prototype, "created", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
User.property({ type: String }),
|
|
316
|
+
__metadata("design:type", Object)
|
|
317
|
+
], User.prototype, "preferredLanguage", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
User.property(),
|
|
320
|
+
__metadata("design:type", Boolean)
|
|
321
|
+
], User.prototype, "enableInvoiceReminders", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
User.property(),
|
|
324
|
+
__metadata("design:type", Boolean)
|
|
325
|
+
], User.prototype, "enableStoreNotifications", void 0);
|
|
326
|
+
__decorate([
|
|
327
|
+
User.property(),
|
|
328
|
+
__metadata("design:type", Boolean)
|
|
329
|
+
], User.prototype, "isAdminOfSubscribedCompany", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
User.property({ arrayType: 'JobComment' }),
|
|
332
|
+
__metadata("design:type", Array)
|
|
333
|
+
], User.prototype, "jobComments", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
User.property({ arrayType: 'JobOperationLog' }),
|
|
336
|
+
__metadata("design:type", Array)
|
|
337
|
+
], User.prototype, "jobOperationLogs", void 0);
|
|
338
|
+
__decorate([
|
|
339
|
+
User.property({ arrayType: 'ShipmentLog' }),
|
|
340
|
+
__metadata("design:type", Array)
|
|
341
|
+
], User.prototype, "shipmentLogs", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
User.property({ arrayType: 'EmailAddress' }),
|
|
344
|
+
__metadata("design:type", Array)
|
|
345
|
+
], User.prototype, "_emailAddresses", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
User.property({ arrayType: 'PhoneNumber' }),
|
|
348
|
+
__metadata("design:type", Array)
|
|
349
|
+
], User.prototype, "_phoneNumbers", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
User.property({ arrayType: 'Address' }),
|
|
352
|
+
__metadata("design:type", Array)
|
|
353
|
+
], User.prototype, "_addresses", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
User.property({ arrayType: 'UserCompany' }),
|
|
356
|
+
__metadata("design:type", Array)
|
|
357
|
+
], User.prototype, "_companies", void 0);
|
|
358
|
+
__decorate([
|
|
359
|
+
User.property({ arrayType: 'Company' }),
|
|
360
|
+
__metadata("design:type", Array)
|
|
361
|
+
], User.prototype, "companiesNeedStripe", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
User.property({ arrayType: 'Category' }),
|
|
364
|
+
__metadata("design:type", Array)
|
|
365
|
+
], User.prototype, "categories", void 0);
|
|
366
|
+
__decorate([
|
|
367
|
+
User.property({ arrayType: 'Product' }),
|
|
368
|
+
__metadata("design:type", Array)
|
|
369
|
+
], User.prototype, "products", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
User.property({ type: 'MerchiFile' }),
|
|
372
|
+
__metadata("design:type", Object)
|
|
373
|
+
], User.prototype, "profilePicture", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
User.property({ arrayType: 'PhoneNumber' }),
|
|
376
|
+
__metadata("design:type", Array)
|
|
377
|
+
], User.prototype, "phoneNumbers", void 0);
|
|
378
|
+
__decorate([
|
|
379
|
+
User.property({ arrayType: 'Session' }),
|
|
380
|
+
__metadata("design:type", Array)
|
|
381
|
+
], User.prototype, "sessions", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
User.property({ arrayType: 'Shipment' }),
|
|
384
|
+
__metadata("design:type", Array)
|
|
385
|
+
], User.prototype, "shipmentsAsSender", void 0);
|
|
386
|
+
__decorate([
|
|
387
|
+
User.property({ arrayType: 'Shipment' }),
|
|
388
|
+
__metadata("design:type", Array)
|
|
389
|
+
], User.prototype, "shipmentsAsReceiver", void 0);
|
|
390
|
+
__decorate([
|
|
391
|
+
User.property({ arrayType: 'DraftComment' }),
|
|
392
|
+
__metadata("design:type", Array)
|
|
393
|
+
], User.prototype, "draftComments", void 0);
|
|
394
|
+
__decorate([
|
|
395
|
+
User.property({ arrayType: 'DraftComment' }),
|
|
396
|
+
__metadata("design:type", Array)
|
|
397
|
+
], User.prototype, "forwardedDraftComments", void 0);
|
|
398
|
+
__decorate([
|
|
399
|
+
User.property({ arrayType: 'SystemRole' }),
|
|
400
|
+
__metadata("design:type", Array)
|
|
401
|
+
], User.prototype, "systemRoles", void 0);
|
|
402
|
+
__decorate([
|
|
403
|
+
User.property({ arrayType: 'EmailAddress' }),
|
|
404
|
+
__metadata("design:type", Array)
|
|
405
|
+
], User.prototype, "emailAddresses", void 0);
|
|
406
|
+
__decorate([
|
|
407
|
+
User.property({ arrayType: 'Notification' }),
|
|
408
|
+
__metadata("design:type", Array)
|
|
409
|
+
], User.prototype, "notifications", void 0);
|
|
410
|
+
__decorate([
|
|
411
|
+
User.property({ arrayType: 'Notification' }),
|
|
412
|
+
__metadata("design:type", Array)
|
|
413
|
+
], User.prototype, "sentNotifications", void 0);
|
|
414
|
+
__decorate([
|
|
415
|
+
User.property({ arrayType: 'Reminder' }),
|
|
416
|
+
__metadata("design:type", Array)
|
|
417
|
+
], User.prototype, "reminders", void 0);
|
|
418
|
+
__decorate([
|
|
419
|
+
User.property({ arrayType: 'Assignment' }),
|
|
420
|
+
__metadata("design:type", Array)
|
|
421
|
+
], User.prototype, "assignments", void 0);
|
|
422
|
+
__decorate([
|
|
423
|
+
User.property({ arrayType: 'UserCompany' }),
|
|
424
|
+
__metadata("design:type", Array)
|
|
425
|
+
], User.prototype, "userCompanies", void 0);
|
|
426
|
+
__decorate([
|
|
427
|
+
User.property({ arrayType: 'Draft' }),
|
|
428
|
+
__metadata("design:type", Array)
|
|
429
|
+
], User.prototype, "drafts", void 0);
|
|
430
|
+
__decorate([
|
|
431
|
+
User.property({ arrayType: 'CompanyInvitation' }),
|
|
432
|
+
__metadata("design:type", Array)
|
|
433
|
+
], User.prototype, "companyInvitations", void 0);
|
|
434
|
+
__decorate([
|
|
435
|
+
User.property({ arrayType: 'Address' }),
|
|
436
|
+
__metadata("design:type", Array)
|
|
437
|
+
], User.prototype, "addresses", void 0);
|
|
438
|
+
__decorate([
|
|
439
|
+
User.property({ arrayType: 'MerchiFile' }),
|
|
440
|
+
__metadata("design:type", Array)
|
|
441
|
+
], User.prototype, "uploadFiles", void 0);
|
|
442
|
+
__decorate([
|
|
443
|
+
User.property({ arrayType: 'JobComment' }),
|
|
444
|
+
__metadata("design:type", Array)
|
|
445
|
+
], User.prototype, "forwardedJobComments", void 0);
|
|
446
|
+
__decorate([
|
|
447
|
+
User.property({ arrayType: 'Job' }),
|
|
448
|
+
__metadata("design:type", Array)
|
|
449
|
+
], User.prototype, "appliedJobs", void 0);
|
|
450
|
+
__decorate([
|
|
451
|
+
User.property({ arrayType: 'Job' }),
|
|
452
|
+
__metadata("design:type", Array)
|
|
453
|
+
], User.prototype, "managedJobs", void 0);
|
|
454
|
+
__decorate([
|
|
455
|
+
User.property({ arrayType: 'Job' }),
|
|
456
|
+
__metadata("design:type", Array)
|
|
457
|
+
], User.prototype, "draftingJobs", void 0);
|
|
458
|
+
__decorate([
|
|
459
|
+
User.property({ arrayType: 'Product' }),
|
|
460
|
+
__metadata("design:type", Array)
|
|
461
|
+
], User.prototype, "saved_products", void 0);
|
|
462
|
+
__decorate([
|
|
463
|
+
User.property({ arrayType: 'Cart' }),
|
|
464
|
+
__metadata("design:type", Array)
|
|
465
|
+
], User.prototype, "carts", void 0);
|
|
466
|
+
__decorate([
|
|
467
|
+
User.property({ arrayType: 'Payment' }),
|
|
468
|
+
__metadata("design:type", Array)
|
|
469
|
+
], User.prototype, "payments", void 0);
|
|
470
|
+
__decorate([
|
|
471
|
+
User.property({ arrayType: 'EnrolledDomain' }),
|
|
472
|
+
__metadata("design:type", Array)
|
|
473
|
+
], User.prototype, "enrolledDomains", void 0);
|
|
474
|
+
__decorate([
|
|
475
|
+
User.property({ arrayType: 'Invoice' }),
|
|
476
|
+
__metadata("design:type", Array)
|
|
477
|
+
], User.prototype, "responsibleInvoices", void 0);
|
|
478
|
+
__decorate([
|
|
479
|
+
User.property({ arrayType: 'Invoice' }),
|
|
480
|
+
__metadata("design:type", Array)
|
|
481
|
+
], User.prototype, "createdInvoices", void 0);
|
|
482
|
+
__decorate([
|
|
483
|
+
User.property({ arrayType: 'Invoice' }),
|
|
484
|
+
__metadata("design:type", Array)
|
|
485
|
+
], User.prototype, "invoicesHas", void 0);
|
|
486
|
+
__decorate([
|
|
487
|
+
User.property({ arrayType: 'DomainInvitation' }),
|
|
488
|
+
__metadata("design:type", Array)
|
|
489
|
+
], User.prototype, "sentDomainInvitations", void 0);
|
|
490
|
+
__decorate([
|
|
491
|
+
User.property({ arrayType: 'DomainInvitation' }),
|
|
492
|
+
__metadata("design:type", Array)
|
|
493
|
+
], User.prototype, "receivedDomainInvitations", void 0);
|
|
494
|
+
__decorate([
|
|
495
|
+
User.property({ arrayType: 'Theme' }),
|
|
496
|
+
__metadata("design:type", Array)
|
|
497
|
+
], User.prototype, "themes", void 0);
|
|
498
|
+
__decorate([
|
|
499
|
+
User.property({ arrayType: 'ProductionComment' }),
|
|
500
|
+
__metadata("design:type", Array)
|
|
501
|
+
], User.prototype, "forwardedProductionComments", void 0);
|
|
502
|
+
__decorate([
|
|
503
|
+
User.property({ arrayType: 'Domain' }),
|
|
504
|
+
__metadata("design:type", Array)
|
|
505
|
+
], User.prototype, "accessibleDomainsAsClient", void 0);
|
|
506
|
+
return User;
|
|
507
|
+
}(Entity));
|
|
508
|
+
export { User };
|