@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,849 @@
|
|
|
1
|
+
$ jest --coverage
|
|
2
|
+
PASS src/request.test.ts
|
|
3
|
+
PASS src/pricing/visibility.test.ts
|
|
4
|
+
PASS src/pricing/inventory.test.ts
|
|
5
|
+
PASS src/pricing/golden.test.ts
|
|
6
|
+
PASS src/pricing/estimate.test.ts
|
|
7
|
+
PASS src/pricing/matrix.test.ts
|
|
8
|
+
PASS src/entities/quote_item.test.ts
|
|
9
|
+
PASS src/entities/notification.test.ts
|
|
10
|
+
PASS src/entities/cart.test.ts
|
|
11
|
+
PASS src/entities/category.test.ts
|
|
12
|
+
PASS src/entities/variation_fields_option.test.ts
|
|
13
|
+
PASS src/entities/job.test.ts (7.29 s)
|
|
14
|
+
PASS src/entities/user.test.ts (7.311 s)
|
|
15
|
+
PASS src/entities/domain.test.ts (7.331 s)
|
|
16
|
+
PASS src/pricing/discount.test.ts
|
|
17
|
+
PASS src/entities/quote.test.ts (7.254 s)
|
|
18
|
+
PASS src/pricing/round.test.ts
|
|
19
|
+
PASS src/entities/variation_field.test.ts (7.297 s)
|
|
20
|
+
PASS src/entities/product.test.ts (7.429 s)
|
|
21
|
+
PASS src/entities/invoice.test.ts
|
|
22
|
+
FAIL src/toasts.test.ts
|
|
23
|
+
● fetch toast of jobs
|
|
24
|
+
|
|
25
|
+
expect(received).toEqual(expected) // deep equality
|
|
26
|
+
|
|
27
|
+
Expected: "http://example.com/v6/notifications-check-update/"
|
|
28
|
+
Received: "https://api.merchi.co/v6/notifications-check-update/"
|
|
29
|
+
|
|
30
|
+
19 | const invocation = toastNotifications(merchi, options as any);
|
|
31
|
+
20 | const expectUrl = `${(global as any).BACKEND_URI}v6/notifications-check-update/`;
|
|
32
|
+
> 21 | expect(fetch.mock.calls[0][0]).toEqual(expectUrl);
|
|
33
|
+
| ^
|
|
34
|
+
22 | expect(fetch.mock.calls[0][1].method).toEqual('POST');
|
|
35
|
+
23 | expect(JSON.parse(fetch.mock.calls[0][1].body.get('entities'))).toEqual(
|
|
36
|
+
24 | [{id: 1, type: 'job'}]);
|
|
37
|
+
|
|
38
|
+
at Object.<anonymous> (src/toasts.test.ts:21:34)
|
|
39
|
+
|
|
40
|
+
PASS src/entities/file.test.ts
|
|
41
|
+
FAIL src/entities/draft_preview.test.ts
|
|
42
|
+
● can create draft preview from json
|
|
43
|
+
|
|
44
|
+
TypeError: Cannot read properties of undefined (reading 'setupClass')
|
|
45
|
+
|
|
46
|
+
291 | }
|
|
47
|
+
292 | if (type.prototype instanceof Entity) {
|
|
48
|
+
> 293 | type = self.merchi.setupClass(type);
|
|
49
|
+
| ^
|
|
50
|
+
294 | }
|
|
51
|
+
295 | }
|
|
52
|
+
296 | const normallyEmbeddedByDefault = !(realArrayType ||
|
|
53
|
+
|
|
54
|
+
at setupClass (src/entity.ts:293:30)
|
|
55
|
+
at Set.forEach (<anonymous>)
|
|
56
|
+
at DraftPreview.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
57
|
+
at DraftPreview.makePropertiesMap (src/entity.ts:325:31)
|
|
58
|
+
at new DraftPreview (src/entities/draft_preview.ts:1806:42)
|
|
59
|
+
at Object.<anonymous> (src/entities/draft_preview.test.ts:18:24)
|
|
60
|
+
|
|
61
|
+
● can fetch draft preview from server
|
|
62
|
+
|
|
63
|
+
TypeError: Cannot read properties of undefined (reading 'authenticatedFetch')
|
|
64
|
+
|
|
65
|
+
403 | fetchOptions.query.push(['skip_rights', 'y']);
|
|
66
|
+
404 | }
|
|
67
|
+
> 405 | return this.merchi.authenticatedFetch(resource, fetchOptions).
|
|
68
|
+
| ^
|
|
69
|
+
406 | then((data: any) => {
|
|
70
|
+
407 | const result: InstanceType<T> = (new this()) as InstanceType<T>;
|
|
71
|
+
408 | result.fromJson(data[this.singularName]);
|
|
72
|
+
|
|
73
|
+
at Function.authenticatedFetch [as get] (src/entity.ts:405:24)
|
|
74
|
+
at Object.<anonymous> (src/entities/draft_preview.test.ts:38:23)
|
|
75
|
+
|
|
76
|
+
PASS src/entities/theme.test.ts
|
|
77
|
+
PASS src/entities/inventory.test.ts
|
|
78
|
+
PASS src/entities/assignment.test.ts
|
|
79
|
+
PASS src/entities/discount.test.ts
|
|
80
|
+
PASS src/entities/payment.test.ts
|
|
81
|
+
PASS src/entities/draft.test.ts
|
|
82
|
+
PASS src/util/validation.test.ts
|
|
83
|
+
PASS src/entities/cart_item.test.ts
|
|
84
|
+
PASS src/constants/platform.test.ts
|
|
85
|
+
PASS src/merchi.test.ts
|
|
86
|
+
PASS src/cookie.test.ts
|
|
87
|
+
PASS src/uuid.test.ts
|
|
88
|
+
PASS src/entities/shipment.test.ts
|
|
89
|
+
PASS src/entities/reminder.test.ts
|
|
90
|
+
PASS src/entities/item.test.ts
|
|
91
|
+
PASS src/entities/draft_template.test.ts
|
|
92
|
+
FAIL src/entities/domain_chat_settings.test.ts
|
|
93
|
+
● can make DomainChatSettings
|
|
94
|
+
|
|
95
|
+
TypeError: Cannot read properties of undefined (reading 'prototype')
|
|
96
|
+
|
|
97
|
+
295 | }
|
|
98
|
+
296 | const normallyEmbeddedByDefault = !(realArrayType ||
|
|
99
|
+
> 297 | type.prototype instanceof Entity);
|
|
100
|
+
| ^
|
|
101
|
+
298 | const embeddedByDefault = options.embeddedByDefault !== undefined ?
|
|
102
|
+
299 | options.embeddedByDefault : normallyEmbeddedByDefault;
|
|
103
|
+
300 | /* istanbul ignore next */
|
|
104
|
+
|
|
105
|
+
at prototype (src/entity.ts:297:14)
|
|
106
|
+
at Set.forEach (<anonymous>)
|
|
107
|
+
at DomainChatSettings.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
108
|
+
at DomainChatSettings.makePropertiesMap (src/entity.ts:325:31)
|
|
109
|
+
at new DomainChatSettings (src/entities/domain_chat_settings.ts:1971:42)
|
|
110
|
+
at Object.<anonymous> (src/entities/domain_chat_settings.test.ts:5:20)
|
|
111
|
+
|
|
112
|
+
● can set assignedUsers
|
|
113
|
+
|
|
114
|
+
TypeError: Cannot read properties of undefined (reading 'prototype')
|
|
115
|
+
|
|
116
|
+
295 | }
|
|
117
|
+
296 | const normallyEmbeddedByDefault = !(realArrayType ||
|
|
118
|
+
> 297 | type.prototype instanceof Entity);
|
|
119
|
+
| ^
|
|
120
|
+
298 | const embeddedByDefault = options.embeddedByDefault !== undefined ?
|
|
121
|
+
299 | options.embeddedByDefault : normallyEmbeddedByDefault;
|
|
122
|
+
300 | /* istanbul ignore next */
|
|
123
|
+
|
|
124
|
+
at prototype (src/entity.ts:297:14)
|
|
125
|
+
at Set.forEach (<anonymous>)
|
|
126
|
+
at DomainChatSettings.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
127
|
+
at DomainChatSettings.makePropertiesMap (src/entity.ts:325:31)
|
|
128
|
+
at new DomainChatSettings (src/entities/domain_chat_settings.ts:1971:42)
|
|
129
|
+
at Object.<anonymous> (src/entities/domain_chat_settings.test.ts:11:20)
|
|
130
|
+
|
|
131
|
+
PASS src/util/query_string.test.ts
|
|
132
|
+
PASS src/entities/country_tax.test.ts
|
|
133
|
+
PASS src/entities/shipment_method_variation.test.ts
|
|
134
|
+
FAIL src/entities/agent_skill.test.ts
|
|
135
|
+
● can make AgentSkill
|
|
136
|
+
|
|
137
|
+
Bad attribute type agent_skills.description: function Object() { [native code] }
|
|
138
|
+
|
|
139
|
+
304 | const err = 'Bad attribute type ' +
|
|
140
|
+
305 | `${resource}.${attributeName}: ${type}`;
|
|
141
|
+
> 306 | throw new Error(err);
|
|
142
|
+
| ^
|
|
143
|
+
307 | }
|
|
144
|
+
308 | const propertyInfo: PropertyInfo = {property: jsonName,
|
|
145
|
+
309 | attribute: attributeName,
|
|
146
|
+
|
|
147
|
+
at src/entity.ts:306:15
|
|
148
|
+
at Set.forEach (<anonymous>)
|
|
149
|
+
at AgentSkill.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
150
|
+
at AgentSkill.makePropertiesMap (src/entity.ts:325:31)
|
|
151
|
+
at new apply (src/entities/agent_skill.ts:12:1)
|
|
152
|
+
at Object.<anonymous> (src/entities/agent_skill.test.ts:5:22)
|
|
153
|
+
|
|
154
|
+
PASS src/entities/shipment_item_fulfillment.test.ts
|
|
155
|
+
PASS src/entities/inventory_unit_variation.test.ts
|
|
156
|
+
PASS src/entities/automatic_payment_relationship.test.ts
|
|
157
|
+
PASS src/entities/production_comment.test.ts
|
|
158
|
+
PASS src/entities/company_invitation.test.ts
|
|
159
|
+
PASS src/entities/support_conversation.test.ts
|
|
160
|
+
PASS src/entities/draft_preview_layer.test.ts
|
|
161
|
+
PASS src/pricing/index.test.ts
|
|
162
|
+
FAIL src/entities/agent_conversation.test.ts
|
|
163
|
+
● can make AgentConversation
|
|
164
|
+
|
|
165
|
+
Bad attribute type agent_conversations.entityType: function Object() { [native code] }
|
|
166
|
+
|
|
167
|
+
304 | const err = 'Bad attribute type ' +
|
|
168
|
+
305 | `${resource}.${attributeName}: ${type}`;
|
|
169
|
+
> 306 | throw new Error(err);
|
|
170
|
+
| ^
|
|
171
|
+
307 | }
|
|
172
|
+
308 | const propertyInfo: PropertyInfo = {property: jsonName,
|
|
173
|
+
309 | attribute: attributeName,
|
|
174
|
+
|
|
175
|
+
at src/entity.ts:306:15
|
|
176
|
+
at Set.forEach (<anonymous>)
|
|
177
|
+
at AgentConversation.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
178
|
+
at AgentConversation.makePropertiesMap (src/entity.ts:325:31)
|
|
179
|
+
at new AgentConversation (src/entities/agent_conversation.ts:1817:42)
|
|
180
|
+
at Object.<anonymous> (src/entities/agent_conversation.test.ts:5:29)
|
|
181
|
+
|
|
182
|
+
PASS src/entities/domain_invitation.test.ts
|
|
183
|
+
PASS src/entities/subscription_plan.test.ts
|
|
184
|
+
PASS src/entities/support_message.test.ts
|
|
185
|
+
PASS src/entities/variations_group.test.ts
|
|
186
|
+
PASS src/entities/theme_css_setting.test.ts
|
|
187
|
+
PASS src/entities/shipment_method.test.ts
|
|
188
|
+
PASS src/entities/inventory_group.test.ts
|
|
189
|
+
PASS src/entities/enrolled_domain.test.ts
|
|
190
|
+
PASS src/entities/discount_group.test.ts
|
|
191
|
+
PASS src/entities/payment_device.test.ts
|
|
192
|
+
PASS src/entities/exchange_rate.test.ts
|
|
193
|
+
PASS src/entities/supply_domain.test.ts
|
|
194
|
+
PASS src/entities/shipment_item.test.ts
|
|
195
|
+
PASS src/entities/email_counter.test.ts
|
|
196
|
+
PASS src/entities/email_address.test.ts
|
|
197
|
+
PASS src/entities/draft_comment.test.ts
|
|
198
|
+
PASS src/entities/user_company.test.ts
|
|
199
|
+
PASS src/entities/phone_number.test.ts
|
|
200
|
+
PASS src/constants/job/supply_chain_request_status.test.ts
|
|
201
|
+
PASS src/entities/internal_tag.test.ts
|
|
202
|
+
PASS src/entities/agent_token_usage.test.ts
|
|
203
|
+
PASS src/entities/system_role.test.ts
|
|
204
|
+
PASS src/constants/call_to_actions.test.ts
|
|
205
|
+
PASS src/entities/job_comment.test.ts
|
|
206
|
+
PASS src/entities/variation.test.ts
|
|
207
|
+
PASS src/entities/job_operation_log.test.ts
|
|
208
|
+
PASS src/constants/white_label_accessibilities.test.ts
|
|
209
|
+
PASS src/entities/variation_option.test.ts
|
|
210
|
+
PASS src/constants/notification_urgencies.test.ts
|
|
211
|
+
PASS src/entities/domain_tag.test.ts
|
|
212
|
+
PASS src/constants/robots_meta_directives.test.ts
|
|
213
|
+
PASS src/entities/short_url.test.ts
|
|
214
|
+
PASS src/constants/system_roles.test.ts
|
|
215
|
+
PASS src/constants/notification_types.test.ts
|
|
216
|
+
PASS src/entities/session.test.ts
|
|
217
|
+
PASS src/constants/payment_types.test.ts
|
|
218
|
+
PASS src/constants/notification_sections.test.ts
|
|
219
|
+
PASS src/entities/company.test.ts
|
|
220
|
+
PASS src/constants/job/shipment_status.test.ts
|
|
221
|
+
PASS src/constants/discount_types.test.ts
|
|
222
|
+
PASS src/constants/inventory_status.test.ts
|
|
223
|
+
PASS src/constants/job/production_status.test.ts
|
|
224
|
+
PASS src/constants/job_status.test.ts
|
|
225
|
+
PASS src/entities/address.test.ts
|
|
226
|
+
PASS src/constants/product_types.test.ts
|
|
227
|
+
PASS src/constants/job/drafting_status.test.ts
|
|
228
|
+
PASS src/constants/shipment_services.test.ts
|
|
229
|
+
PASS src/constants/theme_status.test.ts
|
|
230
|
+
PASS src/constants/job_priorities.test.ts
|
|
231
|
+
PASS src/constants/job_types.test.ts
|
|
232
|
+
PASS src/entities/bank.test.ts
|
|
233
|
+
PASS src/constants/job/payment_status.test.ts
|
|
234
|
+
PASS src/constants/shipment_companies.test.ts
|
|
235
|
+
PASS src/constants/user_types.test.ts
|
|
236
|
+
PASS src/constants/field_types.test.ts
|
|
237
|
+
PASS src/constants/invoice_types.test.ts
|
|
238
|
+
PASS src/constants/item_types.test.ts
|
|
239
|
+
PASS src/constants/domain_types.test.ts
|
|
240
|
+
PASS src/constants/rights.test.ts
|
|
241
|
+
PASS src/constants/input_types.test.ts
|
|
242
|
+
PASS src/constants/event_types.test.ts
|
|
243
|
+
PASS src/constants/roles.test.ts
|
|
244
|
+
Failed to collect coverage from /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/conditional_field_visible.json
|
|
245
|
+
ERROR: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/conditional_field_visible.json: Missing semicolon. (2:10)
|
|
246
|
+
|
|
247
|
+
1 | {
|
|
248
|
+
> 2 | "bundle": {
|
|
249
|
+
| ^
|
|
250
|
+
3 | "currency": "AUD",
|
|
251
|
+
4 | "fields": [
|
|
252
|
+
5 | {
|
|
253
|
+
STACK: SyntaxError: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/conditional_field_visible.json: Missing semicolon. (2:10)
|
|
254
|
+
|
|
255
|
+
1 | {
|
|
256
|
+
> 2 | "bundle": {
|
|
257
|
+
| ^
|
|
258
|
+
3 | "currency": "AUD",
|
|
259
|
+
4 | "fields": [
|
|
260
|
+
5 | {
|
|
261
|
+
at constructor (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:369:19)
|
|
262
|
+
at Parser.raise (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6620:19)
|
|
263
|
+
at Parser.semicolon (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6916:10)
|
|
264
|
+
at Parser.parseExpressionStatement (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13314:10)
|
|
265
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12928:19)
|
|
266
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
267
|
+
at Parser.parseStatementListItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12776:17)
|
|
268
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:61)
|
|
269
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
270
|
+
at Parser.parseBlock (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13326:10)
|
|
271
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12887:21)
|
|
272
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
273
|
+
at Parser.parseModuleItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12773:17)
|
|
274
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:36)
|
|
275
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
276
|
+
at Parser.parseProgram (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12651:10)
|
|
277
|
+
at Parser.parseTopLevel (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12641:25)
|
|
278
|
+
at Parser.parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14517:25)
|
|
279
|
+
at parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14551:38)
|
|
280
|
+
at parser (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/parser/index.js:41:34)
|
|
281
|
+
at parser.next (<anonymous>)
|
|
282
|
+
at normalizeFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/normalize-file.js:51:37)
|
|
283
|
+
at normalizeFile.next (<anonymous>)
|
|
284
|
+
at run (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/index.js:22:50)
|
|
285
|
+
at run.next (<anonymous>)
|
|
286
|
+
at transform (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:22:33)
|
|
287
|
+
at transform.next (<anonymous>)
|
|
288
|
+
at evaluateSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:251:28)
|
|
289
|
+
at sync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:89:14)
|
|
290
|
+
at stopHiding - secret - don't use this - v1 (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)
|
|
291
|
+
at transformSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:40:76)
|
|
292
|
+
at ScriptTransformer._instrumentFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:449:46)
|
|
293
|
+
at ScriptTransformer._buildTransformResult (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:559:33)
|
|
294
|
+
at ScriptTransformer.transformSourceAsync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:685:17)
|
|
295
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
296
|
+
at async generateEmptyCoverage (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+reporters@28.1.3_supports-color@8.1.1/node_modules/@jest/reporters/build/generateEmptyCoverage.js:143:20)
|
|
297
|
+
Failed to collect coverage from /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/quantity_break_discount.json
|
|
298
|
+
ERROR: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/quantity_break_discount.json: Missing semicolon. (2:10)
|
|
299
|
+
|
|
300
|
+
1 | {
|
|
301
|
+
> 2 | "bundle": {
|
|
302
|
+
| ^
|
|
303
|
+
3 | "currency": "AUD",
|
|
304
|
+
4 | "fields": [
|
|
305
|
+
5 | {
|
|
306
|
+
STACK: SyntaxError: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/quantity_break_discount.json: Missing semicolon. (2:10)
|
|
307
|
+
|
|
308
|
+
1 | {
|
|
309
|
+
> 2 | "bundle": {
|
|
310
|
+
| ^
|
|
311
|
+
3 | "currency": "AUD",
|
|
312
|
+
4 | "fields": [
|
|
313
|
+
5 | {
|
|
314
|
+
at constructor (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:369:19)
|
|
315
|
+
at Parser.raise (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6620:19)
|
|
316
|
+
at Parser.semicolon (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6916:10)
|
|
317
|
+
at Parser.parseExpressionStatement (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13314:10)
|
|
318
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12928:19)
|
|
319
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
320
|
+
at Parser.parseStatementListItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12776:17)
|
|
321
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:61)
|
|
322
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
323
|
+
at Parser.parseBlock (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13326:10)
|
|
324
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12887:21)
|
|
325
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
326
|
+
at Parser.parseModuleItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12773:17)
|
|
327
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:36)
|
|
328
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
329
|
+
at Parser.parseProgram (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12651:10)
|
|
330
|
+
at Parser.parseTopLevel (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12641:25)
|
|
331
|
+
at Parser.parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14517:25)
|
|
332
|
+
at parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14551:38)
|
|
333
|
+
at parser (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/parser/index.js:41:34)
|
|
334
|
+
at parser.next (<anonymous>)
|
|
335
|
+
at normalizeFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/normalize-file.js:51:37)
|
|
336
|
+
at normalizeFile.next (<anonymous>)
|
|
337
|
+
at run (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/index.js:22:50)
|
|
338
|
+
at run.next (<anonymous>)
|
|
339
|
+
at transform (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:22:33)
|
|
340
|
+
at transform.next (<anonymous>)
|
|
341
|
+
at evaluateSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:251:28)
|
|
342
|
+
at sync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:89:14)
|
|
343
|
+
at stopHiding - secret - don't use this - v1 (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)
|
|
344
|
+
at transformSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:40:76)
|
|
345
|
+
at ScriptTransformer._instrumentFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:449:46)
|
|
346
|
+
at ScriptTransformer._buildTransformResult (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:559:33)
|
|
347
|
+
at ScriptTransformer.transformSourceAsync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:685:17)
|
|
348
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
349
|
+
at async generateEmptyCoverage (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+reporters@28.1.3_supports-color@8.1.1/node_modules/@jest/reporters/build/generateEmptyCoverage.js:143:20)
|
|
350
|
+
Failed to collect coverage from /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/group_product.json
|
|
351
|
+
ERROR: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/group_product.json: Missing semicolon. (2:10)
|
|
352
|
+
|
|
353
|
+
1 | {
|
|
354
|
+
> 2 | "bundle": {
|
|
355
|
+
| ^
|
|
356
|
+
3 | "currency": "AUD",
|
|
357
|
+
4 | "fields": [
|
|
358
|
+
5 | {
|
|
359
|
+
STACK: SyntaxError: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/group_product.json: Missing semicolon. (2:10)
|
|
360
|
+
|
|
361
|
+
1 | {
|
|
362
|
+
> 2 | "bundle": {
|
|
363
|
+
| ^
|
|
364
|
+
3 | "currency": "AUD",
|
|
365
|
+
4 | "fields": [
|
|
366
|
+
5 | {
|
|
367
|
+
at constructor (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:369:19)
|
|
368
|
+
at Parser.raise (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6620:19)
|
|
369
|
+
at Parser.semicolon (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6916:10)
|
|
370
|
+
at Parser.parseExpressionStatement (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13314:10)
|
|
371
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12928:19)
|
|
372
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
373
|
+
at Parser.parseStatementListItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12776:17)
|
|
374
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:61)
|
|
375
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
376
|
+
at Parser.parseBlock (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13326:10)
|
|
377
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12887:21)
|
|
378
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
379
|
+
at Parser.parseModuleItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12773:17)
|
|
380
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:36)
|
|
381
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
382
|
+
at Parser.parseProgram (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12651:10)
|
|
383
|
+
at Parser.parseTopLevel (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12641:25)
|
|
384
|
+
at Parser.parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14517:25)
|
|
385
|
+
at parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14551:38)
|
|
386
|
+
at parser (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/parser/index.js:41:34)
|
|
387
|
+
at parser.next (<anonymous>)
|
|
388
|
+
at normalizeFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/normalize-file.js:51:37)
|
|
389
|
+
at normalizeFile.next (<anonymous>)
|
|
390
|
+
at run (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/index.js:22:50)
|
|
391
|
+
at run.next (<anonymous>)
|
|
392
|
+
at transform (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:22:33)
|
|
393
|
+
at transform.next (<anonymous>)
|
|
394
|
+
at evaluateSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:251:28)
|
|
395
|
+
at sync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:89:14)
|
|
396
|
+
at stopHiding - secret - don't use this - v1 (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)
|
|
397
|
+
at transformSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:40:76)
|
|
398
|
+
at ScriptTransformer._instrumentFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:449:46)
|
|
399
|
+
at ScriptTransformer._buildTransformResult (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:559:33)
|
|
400
|
+
at ScriptTransformer.transformSourceAsync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:685:17)
|
|
401
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
402
|
+
at async generateEmptyCoverage (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+reporters@28.1.3_supports-color@8.1.1/node_modules/@jest/reporters/build/generateEmptyCoverage.js:143:20)
|
|
403
|
+
Failed to collect coverage from /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/conditional_field_hidden.json
|
|
404
|
+
ERROR: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/conditional_field_hidden.json: Missing semicolon. (2:10)
|
|
405
|
+
|
|
406
|
+
1 | {
|
|
407
|
+
> 2 | "bundle": {
|
|
408
|
+
| ^
|
|
409
|
+
3 | "currency": "AUD",
|
|
410
|
+
4 | "fields": [
|
|
411
|
+
5 | {
|
|
412
|
+
STACK: SyntaxError: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/conditional_field_hidden.json: Missing semicolon. (2:10)
|
|
413
|
+
|
|
414
|
+
1 | {
|
|
415
|
+
> 2 | "bundle": {
|
|
416
|
+
| ^
|
|
417
|
+
3 | "currency": "AUD",
|
|
418
|
+
4 | "fields": [
|
|
419
|
+
5 | {
|
|
420
|
+
at constructor (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:369:19)
|
|
421
|
+
at Parser.raise (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6620:19)
|
|
422
|
+
at Parser.semicolon (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6916:10)
|
|
423
|
+
at Parser.parseExpressionStatement (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13314:10)
|
|
424
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12928:19)
|
|
425
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
426
|
+
at Parser.parseStatementListItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12776:17)
|
|
427
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:61)
|
|
428
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
429
|
+
at Parser.parseBlock (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13326:10)
|
|
430
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12887:21)
|
|
431
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
432
|
+
at Parser.parseModuleItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12773:17)
|
|
433
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:36)
|
|
434
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
435
|
+
at Parser.parseProgram (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12651:10)
|
|
436
|
+
at Parser.parseTopLevel (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12641:25)
|
|
437
|
+
at Parser.parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14517:25)
|
|
438
|
+
at parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14551:38)
|
|
439
|
+
at parser (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/parser/index.js:41:34)
|
|
440
|
+
at parser.next (<anonymous>)
|
|
441
|
+
at normalizeFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/normalize-file.js:51:37)
|
|
442
|
+
at normalizeFile.next (<anonymous>)
|
|
443
|
+
at run (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/index.js:22:50)
|
|
444
|
+
at run.next (<anonymous>)
|
|
445
|
+
at transform (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:22:33)
|
|
446
|
+
at transform.next (<anonymous>)
|
|
447
|
+
at evaluateSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:251:28)
|
|
448
|
+
at sync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:89:14)
|
|
449
|
+
at stopHiding - secret - don't use this - v1 (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)
|
|
450
|
+
at transformSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:40:76)
|
|
451
|
+
at ScriptTransformer._instrumentFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:449:46)
|
|
452
|
+
at ScriptTransformer._buildTransformResult (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:559:33)
|
|
453
|
+
at ScriptTransformer.transformSourceAsync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:685:17)
|
|
454
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
455
|
+
at async generateEmptyCoverage (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+reporters@28.1.3_supports-color@8.1.1/node_modules/@jest/reporters/build/generateEmptyCoverage.js:143:20)
|
|
456
|
+
Failed to collect coverage from /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/non_selectable_number_field.json
|
|
457
|
+
ERROR: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/non_selectable_number_field.json: Missing semicolon. (2:10)
|
|
458
|
+
|
|
459
|
+
1 | {
|
|
460
|
+
> 2 | "bundle": {
|
|
461
|
+
| ^
|
|
462
|
+
3 | "currency": "AUD",
|
|
463
|
+
4 | "fields": [
|
|
464
|
+
5 | {
|
|
465
|
+
STACK: SyntaxError: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/non_selectable_number_field.json: Missing semicolon. (2:10)
|
|
466
|
+
|
|
467
|
+
1 | {
|
|
468
|
+
> 2 | "bundle": {
|
|
469
|
+
| ^
|
|
470
|
+
3 | "currency": "AUD",
|
|
471
|
+
4 | "fields": [
|
|
472
|
+
5 | {
|
|
473
|
+
at constructor (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:369:19)
|
|
474
|
+
at Parser.raise (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6620:19)
|
|
475
|
+
at Parser.semicolon (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6916:10)
|
|
476
|
+
at Parser.parseExpressionStatement (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13314:10)
|
|
477
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12928:19)
|
|
478
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
479
|
+
at Parser.parseStatementListItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12776:17)
|
|
480
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:61)
|
|
481
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
482
|
+
at Parser.parseBlock (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13326:10)
|
|
483
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12887:21)
|
|
484
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
485
|
+
at Parser.parseModuleItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12773:17)
|
|
486
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:36)
|
|
487
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
488
|
+
at Parser.parseProgram (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12651:10)
|
|
489
|
+
at Parser.parseTopLevel (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12641:25)
|
|
490
|
+
at Parser.parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14517:25)
|
|
491
|
+
at parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14551:38)
|
|
492
|
+
at parser (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/parser/index.js:41:34)
|
|
493
|
+
at parser.next (<anonymous>)
|
|
494
|
+
at normalizeFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/normalize-file.js:51:37)
|
|
495
|
+
at normalizeFile.next (<anonymous>)
|
|
496
|
+
at run (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/index.js:22:50)
|
|
497
|
+
at run.next (<anonymous>)
|
|
498
|
+
at transform (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:22:33)
|
|
499
|
+
at transform.next (<anonymous>)
|
|
500
|
+
at evaluateSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:251:28)
|
|
501
|
+
at sync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:89:14)
|
|
502
|
+
at stopHiding - secret - don't use this - v1 (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)
|
|
503
|
+
at transformSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:40:76)
|
|
504
|
+
at ScriptTransformer._instrumentFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:449:46)
|
|
505
|
+
at ScriptTransformer._buildTransformResult (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:559:33)
|
|
506
|
+
at ScriptTransformer.transformSourceAsync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:685:17)
|
|
507
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
508
|
+
at async generateEmptyCoverage (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+reporters@28.1.3_supports-color@8.1.1/node_modules/@jest/reporters/build/generateEmptyCoverage.js:143:20)
|
|
509
|
+
Failed to collect coverage from /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/simple_selectable_field.json
|
|
510
|
+
ERROR: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/simple_selectable_field.json: Missing semicolon. (2:10)
|
|
511
|
+
|
|
512
|
+
1 | {
|
|
513
|
+
> 2 | "bundle": {
|
|
514
|
+
| ^
|
|
515
|
+
3 | "currency": "AUD",
|
|
516
|
+
4 | "fields": [
|
|
517
|
+
5 | {
|
|
518
|
+
STACK: SyntaxError: /Users/chengyu/Documents/projects/merchi/merchi_ts/packages/sdk/src/pricing/__fixtures__/simple_selectable_field.json: Missing semicolon. (2:10)
|
|
519
|
+
|
|
520
|
+
1 | {
|
|
521
|
+
> 2 | "bundle": {
|
|
522
|
+
| ^
|
|
523
|
+
3 | "currency": "AUD",
|
|
524
|
+
4 | "fields": [
|
|
525
|
+
5 | {
|
|
526
|
+
at constructor (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:369:19)
|
|
527
|
+
at Parser.raise (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6620:19)
|
|
528
|
+
at Parser.semicolon (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:6916:10)
|
|
529
|
+
at Parser.parseExpressionStatement (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13314:10)
|
|
530
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12928:19)
|
|
531
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
532
|
+
at Parser.parseStatementListItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12776:17)
|
|
533
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:61)
|
|
534
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
535
|
+
at Parser.parseBlock (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13326:10)
|
|
536
|
+
at Parser.parseStatementContent (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12887:21)
|
|
537
|
+
at Parser.parseStatementLike (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12796:17)
|
|
538
|
+
at Parser.parseModuleItem (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12773:17)
|
|
539
|
+
at Parser.parseBlockOrModuleBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13345:36)
|
|
540
|
+
at Parser.parseBlockBody (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:13338:10)
|
|
541
|
+
at Parser.parseProgram (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12651:10)
|
|
542
|
+
at Parser.parseTopLevel (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:12641:25)
|
|
543
|
+
at Parser.parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14517:25)
|
|
544
|
+
at parse (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/lib/index.js:14551:38)
|
|
545
|
+
at parser (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/parser/index.js:41:34)
|
|
546
|
+
at parser.next (<anonymous>)
|
|
547
|
+
at normalizeFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/normalize-file.js:51:37)
|
|
548
|
+
at normalizeFile.next (<anonymous>)
|
|
549
|
+
at run (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transformation/index.js:22:50)
|
|
550
|
+
at run.next (<anonymous>)
|
|
551
|
+
at transform (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:22:33)
|
|
552
|
+
at transform.next (<anonymous>)
|
|
553
|
+
at evaluateSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:251:28)
|
|
554
|
+
at sync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js:89:14)
|
|
555
|
+
at stopHiding - secret - don't use this - v1 (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)
|
|
556
|
+
at transformSync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@babel+core@7.29.7_supports-color@8.1.1/node_modules/@babel/core/lib/transform.js:40:76)
|
|
557
|
+
at ScriptTransformer._instrumentFile (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:449:46)
|
|
558
|
+
at ScriptTransformer._buildTransformResult (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:559:33)
|
|
559
|
+
at ScriptTransformer.transformSourceAsync (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+transform@28.1.3_supports-color@8.1.1/node_modules/@jest/transform/build/ScriptTransformer.js:685:17)
|
|
560
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
561
|
+
at async generateEmptyCoverage (/Users/chengyu/Documents/projects/merchi/merchi_ts/node_modules/.pnpm/@jest+reporters@28.1.3_supports-color@8.1.1/node_modules/@jest/reporters/build/generateEmptyCoverage.js:143:20)
|
|
562
|
+
---------------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------
|
|
563
|
+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
564
|
+
---------------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------
|
|
565
|
+
All files | 96.63 | 88.69 | 73.9 | 96.46 |
|
|
566
|
+
src | 98.91 | 95.56 | 48.1 | 98.86 |
|
|
567
|
+
cookie.ts | 100 | 100 | 100 | 100 |
|
|
568
|
+
entity.ts | 99.27 | 97.95 | 100 | 99.22 | 457,488,594,672
|
|
569
|
+
index.ts | 100 | 100 | 0 | 100 |
|
|
570
|
+
merchi.ts | 98.59 | 84.37 | 100 | 98.57 | 242,250,259
|
|
571
|
+
request.ts | 91.11 | 80 | 100 | 89.47 | 79,88-90
|
|
572
|
+
test_util.ts | 100 | 100 | 100 | 100 |
|
|
573
|
+
toasts.ts | 100 | 100 | 100 | 100 |
|
|
574
|
+
uuid.ts | 100 | 100 | 100 | 100 |
|
|
575
|
+
src/constants | 100 | 100 | 100 | 100 |
|
|
576
|
+
auto_assign_production_on_actions.ts | 100 | 100 | 100 | 100 |
|
|
577
|
+
call_to_actions.ts | 100 | 100 | 100 | 100 |
|
|
578
|
+
discount_types.ts | 100 | 100 | 100 | 100 |
|
|
579
|
+
domain_types.ts | 100 | 100 | 100 | 100 |
|
|
580
|
+
errors.ts | 100 | 100 | 100 | 100 |
|
|
581
|
+
event_types.ts | 100 | 100 | 100 | 100 |
|
|
582
|
+
field_types.ts | 100 | 100 | 100 | 100 |
|
|
583
|
+
index.ts | 100 | 100 | 100 | 100 |
|
|
584
|
+
input_types.ts | 100 | 100 | 100 | 100 |
|
|
585
|
+
inventory_statuses.ts | 100 | 100 | 100 | 100 |
|
|
586
|
+
invoice_types.ts | 100 | 100 | 100 | 100 |
|
|
587
|
+
item_types.ts | 100 | 100 | 100 | 100 |
|
|
588
|
+
job_priorities.ts | 100 | 100 | 100 | 100 |
|
|
589
|
+
job_status.ts | 100 | 100 | 100 | 100 |
|
|
590
|
+
job_types.ts | 100 | 100 | 100 | 100 |
|
|
591
|
+
notification_sections.ts | 100 | 100 | 100 | 100 |
|
|
592
|
+
notification_types.ts | 100 | 100 | 100 | 100 |
|
|
593
|
+
notification_urgencies.ts | 100 | 100 | 100 | 100 |
|
|
594
|
+
payment_types.ts | 100 | 100 | 100 | 100 |
|
|
595
|
+
platform.ts | 100 | 100 | 100 | 100 |
|
|
596
|
+
product_types.ts | 100 | 100 | 100 | 100 |
|
|
597
|
+
rights.ts | 100 | 100 | 100 | 100 |
|
|
598
|
+
robots_meta_directives.ts | 100 | 100 | 100 | 100 |
|
|
599
|
+
roles.ts | 100 | 100 | 100 | 100 |
|
|
600
|
+
shipment_companies.ts | 100 | 100 | 100 | 100 |
|
|
601
|
+
shipment_services.ts | 100 | 100 | 100 | 100 |
|
|
602
|
+
system_roles.ts | 100 | 100 | 100 | 100 |
|
|
603
|
+
theme_status.ts | 100 | 100 | 100 | 100 |
|
|
604
|
+
user_types.ts | 100 | 100 | 100 | 100 |
|
|
605
|
+
white_label_accessibilities.ts | 100 | 100 | 100 | 100 |
|
|
606
|
+
src/constants/job | 100 | 100 | 100 | 100 |
|
|
607
|
+
drafting_status.ts | 100 | 100 | 100 | 100 |
|
|
608
|
+
payment_status.ts | 100 | 100 | 100 | 100 |
|
|
609
|
+
production_status.ts | 100 | 100 | 100 | 100 |
|
|
610
|
+
shipment_status.ts | 100 | 100 | 100 | 100 |
|
|
611
|
+
supply_chain_request_status.ts | 100 | 100 | 100 | 100 |
|
|
612
|
+
src/entities | 94.85 | 76.13 | 80 | 94.59 |
|
|
613
|
+
address.ts | 100 | 100 | 100 | 100 |
|
|
614
|
+
agent_conversation.ts | 100 | 100 | 100 | 100 |
|
|
615
|
+
agent_skill.ts | 49.09 | 33.33 | 12.5 | 46.15 | 60-97
|
|
616
|
+
agent_skill_approval.ts | 100 | 100 | 100 | 100 |
|
|
617
|
+
agent_skill_version.ts | 55.26 | 100 | 14.28 | 51.42 | 37-41,46-51,56-61
|
|
618
|
+
agent_token_usage.ts | 91.17 | 0 | 50 | 90.62 | 73-83
|
|
619
|
+
assignment.ts | 100 | 100 | 100 | 100 |
|
|
620
|
+
automatic_payment_relationship.ts | 100 | 100 | 100 | 100 |
|
|
621
|
+
bank.ts | 100 | 100 | 100 | 100 |
|
|
622
|
+
cart.ts | 100 | 100 | 100 | 100 |
|
|
623
|
+
cart_item.ts | 100 | 100 | 100 | 100 |
|
|
624
|
+
cart_shipment_group.ts | 100 | 100 | 100 | 100 |
|
|
625
|
+
cart_shipment_quote.ts | 100 | 100 | 100 | 100 |
|
|
626
|
+
category.ts | 100 | 100 | 100 | 100 |
|
|
627
|
+
company.ts | 86.42 | 25 | 16.66 | 88.05 | 349-352,357-377,381,390
|
|
628
|
+
company_invitation.ts | 100 | 100 | 100 | 100 |
|
|
629
|
+
country_tax.ts | 100 | 100 | 100 | 100 |
|
|
630
|
+
discount.ts | 100 | 100 | 100 | 100 |
|
|
631
|
+
discount_group.ts | 100 | 100 | 100 | 100 |
|
|
632
|
+
domain.ts | 91.54 | 66.66 | 61.9 | 91.19 | 732,820,830-835,843,852,861,876,884,893,908,1014,1024,1035,1064,1072,1081
|
|
633
|
+
domain_chat_settings.ts | 100 | 100 | 100 | 100 |
|
|
634
|
+
domain_invitation.ts | 100 | 100 | 100 | 100 |
|
|
635
|
+
domain_tag.ts | 100 | 100 | 100 | 100 |
|
|
636
|
+
draft.ts | 100 | 100 | 100 | 100 |
|
|
637
|
+
draft_comment.ts | 100 | 100 | 100 | 100 |
|
|
638
|
+
draft_preview.ts | 100 | 100 | 100 | 100 |
|
|
639
|
+
draft_preview_layer.ts | 100 | 100 | 100 | 100 |
|
|
640
|
+
draft_template.ts | 100 | 100 | 66.66 | 100 |
|
|
641
|
+
email_address.ts | 100 | 100 | 100 | 100 |
|
|
642
|
+
email_counter.ts | 100 | 100 | 100 | 100 |
|
|
643
|
+
enrolled_domain.ts | 100 | 100 | 100 | 100 |
|
|
644
|
+
exchange_rate.ts | 100 | 100 | 100 | 100 |
|
|
645
|
+
file.ts | 100 | 100 | 100 | 100 |
|
|
646
|
+
internal_tag.ts | 100 | 100 | 100 | 100 |
|
|
647
|
+
inventory.ts | 100 | 100 | 100 | 100 |
|
|
648
|
+
inventory_group.ts | 100 | 100 | 100 | 100 |
|
|
649
|
+
inventory_unit_variation.ts | 100 | 100 | 100 | 100 |
|
|
650
|
+
invoice.ts | 100 | 100 | 100 | 100 |
|
|
651
|
+
item.ts | 100 | 100 | 100 | 100 |
|
|
652
|
+
job.ts | 100 | 100 | 100 | 100 |
|
|
653
|
+
job_comment.ts | 100 | 100 | 100 | 100 |
|
|
654
|
+
job_note.ts | 100 | 100 | 100 | 100 |
|
|
655
|
+
job_operation_log.ts | 100 | 100 | 66.66 | 100 |
|
|
656
|
+
matching_inventory.ts | 100 | 100 | 100 | 100 |
|
|
657
|
+
notification.ts | 100 | 100 | 100 | 100 |
|
|
658
|
+
payment.ts | 100 | 100 | 100 | 100 |
|
|
659
|
+
payment_device.ts | 100 | 100 | 100 | 100 |
|
|
660
|
+
phone_number.ts | 100 | 100 | 100 | 100 |
|
|
661
|
+
product.ts | 100 | 100 | 100 | 100 |
|
|
662
|
+
product_form.ts | 100 | 100 | 100 | 100 |
|
|
663
|
+
product_form_version.ts | 100 | 100 | 66.66 | 100 |
|
|
664
|
+
product_review.ts | 27.65 | 0 | 11.11 | 26.37 | 85-107,118-131,147-172,185-217
|
|
665
|
+
production_comment.ts | 100 | 100 | 100 | 100 |
|
|
666
|
+
quote.ts | 100 | 100 | 100 | 100 |
|
|
667
|
+
quote_item.ts | 100 | 100 | 100 | 100 |
|
|
668
|
+
reminder.ts | 100 | 100 | 100 | 100 |
|
|
669
|
+
session.ts | 100 | 100 | 100 | 100 |
|
|
670
|
+
shipment.ts | 100 | 100 | 100 | 100 |
|
|
671
|
+
shipment_item.ts | 100 | 100 | 100 | 100 |
|
|
672
|
+
shipment_item_fulfillment.ts | 100 | 100 | 100 | 100 |
|
|
673
|
+
shipment_log.ts | 100 | 100 | 66.66 | 100 |
|
|
674
|
+
shipment_method.ts | 100 | 100 | 100 | 100 |
|
|
675
|
+
shipment_method_variation.ts | 100 | 100 | 100 | 100 |
|
|
676
|
+
short_url.ts | 100 | 100 | 100 | 100 |
|
|
677
|
+
subscription_plan.ts | 100 | 100 | 100 | 100 |
|
|
678
|
+
supply_domain.ts | 100 | 100 | 100 | 100 |
|
|
679
|
+
support_conversation.ts | 100 | 100 | 100 | 100 |
|
|
680
|
+
support_message.ts | 100 | 100 | 100 | 100 |
|
|
681
|
+
system_role.ts | 100 | 100 | 100 | 100 |
|
|
682
|
+
theme.ts | 100 | 100 | 100 | 100 |
|
|
683
|
+
theme_css_setting.ts | 100 | 100 | 100 | 100 |
|
|
684
|
+
user.ts | 100 | 100 | 100 | 100 |
|
|
685
|
+
user_company.ts | 100 | 100 | 100 | 100 |
|
|
686
|
+
variation.ts | 100 | 100 | 100 | 100 |
|
|
687
|
+
variation_field.ts | 95.86 | 90 | 100 | 95.65 | 231-233,235-236
|
|
688
|
+
variation_fields_option.ts | 100 | 100 | 100 | 100 |
|
|
689
|
+
variation_option.ts | 100 | 100 | 100 | 100 |
|
|
690
|
+
variations_group.ts | 100 | 100 | 100 | 100 |
|
|
691
|
+
src/pricing | 99.41 | 94.24 | 97.1 | 100 |
|
|
692
|
+
discount.ts | 100 | 100 | 100 | 100 |
|
|
693
|
+
estimate.ts | 98.36 | 88.07 | 100 | 100 | 22-26,92,99,106,113,121,129-132
|
|
694
|
+
index.ts | 100 | 100 | 71.42 | 100 |
|
|
695
|
+
inventory.ts | 100 | 100 | 100 | 100 |
|
|
696
|
+
matrix.ts | 100 | 100 | 100 | 100 |
|
|
697
|
+
round.ts | 100 | 100 | 100 | 100 |
|
|
698
|
+
visibility.ts | 100 | 100 | 100 | 100 |
|
|
699
|
+
src/util | 100 | 100 | 100 | 100 |
|
|
700
|
+
float.ts | 100 | 100 | 100 | 100 |
|
|
701
|
+
index.ts | 100 | 100 | 100 | 100 |
|
|
702
|
+
query_string.ts | 100 | 100 | 100 | 100 |
|
|
703
|
+
validation.ts | 100 | 100 | 100 | 100 |
|
|
704
|
+
---------------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------
|
|
705
|
+
Jest: "global" coverage threshold for statements (100%) not met: 96.63%
|
|
706
|
+
Jest: "global" coverage threshold for branches (100%) not met: 88.69%
|
|
707
|
+
Jest: "global" coverage threshold for lines (100%) not met: 96.46%
|
|
708
|
+
Jest: "global" coverage threshold for functions (100%) not met: 73.9%
|
|
709
|
+
|
|
710
|
+
Summary of all failing tests
|
|
711
|
+
FAIL src/toasts.test.ts
|
|
712
|
+
● fetch toast of jobs
|
|
713
|
+
|
|
714
|
+
expect(received).toEqual(expected) // deep equality
|
|
715
|
+
|
|
716
|
+
Expected: "http://example.com/v6/notifications-check-update/"
|
|
717
|
+
Received: "https://api.merchi.co/v6/notifications-check-update/"
|
|
718
|
+
|
|
719
|
+
19 | const invocation = toastNotifications(merchi, options as any);
|
|
720
|
+
20 | const expectUrl = `${(global as any).BACKEND_URI}v6/notifications-check-update/`;
|
|
721
|
+
> 21 | expect(fetch.mock.calls[0][0]).toEqual(expectUrl);
|
|
722
|
+
| ^
|
|
723
|
+
22 | expect(fetch.mock.calls[0][1].method).toEqual('POST');
|
|
724
|
+
23 | expect(JSON.parse(fetch.mock.calls[0][1].body.get('entities'))).toEqual(
|
|
725
|
+
24 | [{id: 1, type: 'job'}]);
|
|
726
|
+
|
|
727
|
+
at Object.<anonymous> (src/toasts.test.ts:21:34)
|
|
728
|
+
|
|
729
|
+
FAIL src/entities/draft_preview.test.ts
|
|
730
|
+
● can create draft preview from json
|
|
731
|
+
|
|
732
|
+
TypeError: Cannot read properties of undefined (reading 'setupClass')
|
|
733
|
+
|
|
734
|
+
291 | }
|
|
735
|
+
292 | if (type.prototype instanceof Entity) {
|
|
736
|
+
> 293 | type = self.merchi.setupClass(type);
|
|
737
|
+
| ^
|
|
738
|
+
294 | }
|
|
739
|
+
295 | }
|
|
740
|
+
296 | const normallyEmbeddedByDefault = !(realArrayType ||
|
|
741
|
+
|
|
742
|
+
at setupClass (src/entity.ts:293:30)
|
|
743
|
+
at Set.forEach (<anonymous>)
|
|
744
|
+
at DraftPreview.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
745
|
+
at DraftPreview.makePropertiesMap (src/entity.ts:325:31)
|
|
746
|
+
at new DraftPreview (src/entities/draft_preview.ts:1806:42)
|
|
747
|
+
at Object.<anonymous> (src/entities/draft_preview.test.ts:18:24)
|
|
748
|
+
|
|
749
|
+
● can fetch draft preview from server
|
|
750
|
+
|
|
751
|
+
TypeError: Cannot read properties of undefined (reading 'authenticatedFetch')
|
|
752
|
+
|
|
753
|
+
403 | fetchOptions.query.push(['skip_rights', 'y']);
|
|
754
|
+
404 | }
|
|
755
|
+
> 405 | return this.merchi.authenticatedFetch(resource, fetchOptions).
|
|
756
|
+
| ^
|
|
757
|
+
406 | then((data: any) => {
|
|
758
|
+
407 | const result: InstanceType<T> = (new this()) as InstanceType<T>;
|
|
759
|
+
408 | result.fromJson(data[this.singularName]);
|
|
760
|
+
|
|
761
|
+
at Function.authenticatedFetch [as get] (src/entity.ts:405:24)
|
|
762
|
+
at Object.<anonymous> (src/entities/draft_preview.test.ts:38:23)
|
|
763
|
+
|
|
764
|
+
FAIL src/entities/domain_chat_settings.test.ts
|
|
765
|
+
● can make DomainChatSettings
|
|
766
|
+
|
|
767
|
+
TypeError: Cannot read properties of undefined (reading 'prototype')
|
|
768
|
+
|
|
769
|
+
295 | }
|
|
770
|
+
296 | const normallyEmbeddedByDefault = !(realArrayType ||
|
|
771
|
+
> 297 | type.prototype instanceof Entity);
|
|
772
|
+
| ^
|
|
773
|
+
298 | const embeddedByDefault = options.embeddedByDefault !== undefined ?
|
|
774
|
+
299 | options.embeddedByDefault : normallyEmbeddedByDefault;
|
|
775
|
+
300 | /* istanbul ignore next */
|
|
776
|
+
|
|
777
|
+
at prototype (src/entity.ts:297:14)
|
|
778
|
+
at Set.forEach (<anonymous>)
|
|
779
|
+
at DomainChatSettings.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
780
|
+
at DomainChatSettings.makePropertiesMap (src/entity.ts:325:31)
|
|
781
|
+
at new DomainChatSettings (src/entities/domain_chat_settings.ts:1971:42)
|
|
782
|
+
at Object.<anonymous> (src/entities/domain_chat_settings.test.ts:5:20)
|
|
783
|
+
|
|
784
|
+
● can set assignedUsers
|
|
785
|
+
|
|
786
|
+
TypeError: Cannot read properties of undefined (reading 'prototype')
|
|
787
|
+
|
|
788
|
+
295 | }
|
|
789
|
+
296 | const normallyEmbeddedByDefault = !(realArrayType ||
|
|
790
|
+
> 297 | type.prototype instanceof Entity);
|
|
791
|
+
| ^
|
|
792
|
+
298 | const embeddedByDefault = options.embeddedByDefault !== undefined ?
|
|
793
|
+
299 | options.embeddedByDefault : normallyEmbeddedByDefault;
|
|
794
|
+
300 | /* istanbul ignore next */
|
|
795
|
+
|
|
796
|
+
at prototype (src/entity.ts:297:14)
|
|
797
|
+
at Set.forEach (<anonymous>)
|
|
798
|
+
at DomainChatSettings.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
799
|
+
at DomainChatSettings.makePropertiesMap (src/entity.ts:325:31)
|
|
800
|
+
at new DomainChatSettings (src/entities/domain_chat_settings.ts:1971:42)
|
|
801
|
+
at Object.<anonymous> (src/entities/domain_chat_settings.test.ts:11:20)
|
|
802
|
+
|
|
803
|
+
FAIL src/entities/agent_skill.test.ts
|
|
804
|
+
● can make AgentSkill
|
|
805
|
+
|
|
806
|
+
Bad attribute type agent_skills.description: function Object() { [native code] }
|
|
807
|
+
|
|
808
|
+
304 | const err = 'Bad attribute type ' +
|
|
809
|
+
305 | `${resource}.${attributeName}: ${type}`;
|
|
810
|
+
> 306 | throw new Error(err);
|
|
811
|
+
| ^
|
|
812
|
+
307 | }
|
|
813
|
+
308 | const propertyInfo: PropertyInfo = {property: jsonName,
|
|
814
|
+
309 | attribute: attributeName,
|
|
815
|
+
|
|
816
|
+
at src/entity.ts:306:15
|
|
817
|
+
at Set.forEach (<anonymous>)
|
|
818
|
+
at AgentSkill.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
819
|
+
at AgentSkill.makePropertiesMap (src/entity.ts:325:31)
|
|
820
|
+
at new apply (src/entities/agent_skill.ts:12:1)
|
|
821
|
+
at Object.<anonymous> (src/entities/agent_skill.test.ts:5:22)
|
|
822
|
+
|
|
823
|
+
FAIL src/entities/agent_conversation.test.ts
|
|
824
|
+
● can make AgentConversation
|
|
825
|
+
|
|
826
|
+
Bad attribute type agent_conversations.entityType: function Object() { [native code] }
|
|
827
|
+
|
|
828
|
+
304 | const err = 'Bad attribute type ' +
|
|
829
|
+
305 | `${resource}.${attributeName}: ${type}`;
|
|
830
|
+
> 306 | throw new Error(err);
|
|
831
|
+
| ^
|
|
832
|
+
307 | }
|
|
833
|
+
308 | const propertyInfo: PropertyInfo = {property: jsonName,
|
|
834
|
+
309 | attribute: attributeName,
|
|
835
|
+
|
|
836
|
+
at src/entity.ts:306:15
|
|
837
|
+
at Set.forEach (<anonymous>)
|
|
838
|
+
at AgentConversation.forEach [as makePropertiesMap] (src/entity.ts:264:16)
|
|
839
|
+
at AgentConversation.makePropertiesMap (src/entity.ts:325:31)
|
|
840
|
+
at new AgentConversation (src/entities/agent_conversation.ts:1817:42)
|
|
841
|
+
at Object.<anonymous> (src/entities/agent_conversation.test.ts:5:29)
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
Test Suites: 5 failed, 110 passed, 115 total
|
|
845
|
+
Tests: 7 failed, 337 passed, 344 total
|
|
846
|
+
Snapshots: 0 total
|
|
847
|
+
Time: 12.681 s
|
|
848
|
+
Ran all test suites.
|
|
849
|
+
[ELIFECYCLE] Test failed. See above for more details.
|