merchi_sdk_ts 1.0.2-q → 1.0.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.
Files changed (663) hide show
  1. package/dist/entities/user.js +1 -2
  2. package/dist/entities/user.test.js +1 -1
  3. package/package.json +2 -7
  4. package/esm/dist/constants/auto_assign_production_on_actions.js +0 -22
  5. package/esm/dist/constants/call_to_actions.js +0 -30
  6. package/esm/dist/constants/call_to_actions.test.js +0 -18
  7. package/esm/dist/constants/discount_types.js +0 -19
  8. package/esm/dist/constants/discount_types.test.js +0 -18
  9. package/esm/dist/constants/domain_types.js +0 -28
  10. package/esm/dist/constants/domain_types.test.js +0 -18
  11. package/esm/dist/constants/errors.js +0 -48
  12. package/esm/dist/constants/event_types.js +0 -21
  13. package/esm/dist/constants/event_types.test.js +0 -18
  14. package/esm/dist/constants/field_types.js +0 -29
  15. package/esm/dist/constants/field_types.test.js +0 -18
  16. package/esm/dist/constants/input_types.js +0 -29
  17. package/esm/dist/constants/input_types.test.js +0 -18
  18. package/esm/dist/constants/inventory_status.test.js +0 -18
  19. package/esm/dist/constants/inventory_statuses.js +0 -22
  20. package/esm/dist/constants/invoice_types.js +0 -21
  21. package/esm/dist/constants/invoice_types.test.js +0 -18
  22. package/esm/dist/constants/item_types.js +0 -21
  23. package/esm/dist/constants/item_types.test.js +0 -18
  24. package/esm/dist/constants/job/drafting_status.js +0 -23
  25. package/esm/dist/constants/job/drafting_status.test.js +0 -18
  26. package/esm/dist/constants/job/payment_status.js +0 -23
  27. package/esm/dist/constants/job/payment_status.test.js +0 -18
  28. package/esm/dist/constants/job/production_status.js +0 -28
  29. package/esm/dist/constants/job/production_status.test.js +0 -18
  30. package/esm/dist/constants/job/shipment_status.js +0 -27
  31. package/esm/dist/constants/job/shipment_status.test.js +0 -18
  32. package/esm/dist/constants/job/supply_chain_request_status.js +0 -22
  33. package/esm/dist/constants/job/supply_chain_request_status.test.js +0 -18
  34. package/esm/dist/constants/job_priorities.js +0 -22
  35. package/esm/dist/constants/job_priorities.test.js +0 -18
  36. package/esm/dist/constants/job_status.js +0 -65
  37. package/esm/dist/constants/job_status.test.js +0 -18
  38. package/esm/dist/constants/job_types.js +0 -31
  39. package/esm/dist/constants/job_types.test.js +0 -18
  40. package/esm/dist/constants/notification_sections.js +0 -29
  41. package/esm/dist/constants/notification_sections.test.js +0 -18
  42. package/esm/dist/constants/notification_types.js +0 -113
  43. package/esm/dist/constants/notification_types.test.js +0 -18
  44. package/esm/dist/constants/notification_urgencies.js +0 -22
  45. package/esm/dist/constants/notification_urgencies.test.js +0 -18
  46. package/esm/dist/constants/payment_types.js +0 -26
  47. package/esm/dist/constants/payment_types.test.js +0 -18
  48. package/esm/dist/constants/platform.js +0 -20
  49. package/esm/dist/constants/platform.test.js +0 -22
  50. package/esm/dist/constants/product_types.js +0 -41
  51. package/esm/dist/constants/product_types.test.js +0 -18
  52. package/esm/dist/constants/rights.js +0 -21
  53. package/esm/dist/constants/rights.test.js +0 -18
  54. package/esm/dist/constants/robots_meta_directives.js +0 -26
  55. package/esm/dist/constants/robots_meta_directives.test.js +0 -18
  56. package/esm/dist/constants/roles.js +0 -82
  57. package/esm/dist/constants/roles.test.js +0 -18
  58. package/esm/dist/constants/shipment_companies.js +0 -34
  59. package/esm/dist/constants/shipment_companies.test.js +0 -18
  60. package/esm/dist/constants/shipment_services.js +0 -19
  61. package/esm/dist/constants/shipment_services.test.js +0 -18
  62. package/esm/dist/constants/system_roles.js +0 -19
  63. package/esm/dist/constants/system_roles.test.js +0 -18
  64. package/esm/dist/constants/theme_foundations.js +0 -22
  65. package/esm/dist/constants/theme_foundations.test.js +0 -18
  66. package/esm/dist/constants/theme_status.js +0 -21
  67. package/esm/dist/constants/theme_status.test.js +0 -18
  68. package/esm/dist/constants/user_types.js +0 -33
  69. package/esm/dist/constants/user_types.test.js +0 -18
  70. package/esm/dist/constants/white_label_accessibilities.js +0 -21
  71. package/esm/dist/constants/white_label_accessibilities.test.js +0 -18
  72. package/esm/dist/cookie.js +0 -31
  73. package/esm/dist/cookie.test.js +0 -24
  74. package/esm/dist/entities/address.js +0 -126
  75. package/esm/dist/entities/address.test.js +0 -20
  76. package/esm/dist/entities/assignment.js +0 -149
  77. package/esm/dist/entities/assignment.test.js +0 -44
  78. package/esm/dist/entities/automatic_payment_relationship.js +0 -83
  79. package/esm/dist/entities/automatic_payment_relationship.test.js +0 -20
  80. package/esm/dist/entities/backup.js +0 -67
  81. package/esm/dist/entities/backup.test.js +0 -20
  82. package/esm/dist/entities/bank.js +0 -107
  83. package/esm/dist/entities/bank.test.js +0 -20
  84. package/esm/dist/entities/cart.js +0 -188
  85. package/esm/dist/entities/cart.test.js +0 -59
  86. package/esm/dist/entities/cart_item.js +0 -139
  87. package/esm/dist/entities/cart_item.test.js +0 -42
  88. package/esm/dist/entities/cart_shipment_group.js +0 -75
  89. package/esm/dist/entities/cart_shipment_quote.js +0 -92
  90. package/esm/dist/entities/category.js +0 -95
  91. package/esm/dist/entities/category.test.js +0 -66
  92. package/esm/dist/entities/company.js +0 -393
  93. package/esm/dist/entities/company.test.js +0 -20
  94. package/esm/dist/entities/company_invitation.js +0 -92
  95. package/esm/dist/entities/company_invitation.test.js +0 -20
  96. package/esm/dist/entities/component.js +0 -163
  97. package/esm/dist/entities/component.test.js +0 -26
  98. package/esm/dist/entities/component_tag.js +0 -71
  99. package/esm/dist/entities/component_tag.test.js +0 -20
  100. package/esm/dist/entities/component_version.js +0 -87
  101. package/esm/dist/entities/component_version.test.js +0 -20
  102. package/esm/dist/entities/country_tax.js +0 -102
  103. package/esm/dist/entities/country_tax.test.js +0 -25
  104. package/esm/dist/entities/discount.js +0 -90
  105. package/esm/dist/entities/discount.test.js +0 -30
  106. package/esm/dist/entities/discount_group.js +0 -82
  107. package/esm/dist/entities/discount_group.test.js +0 -20
  108. package/esm/dist/entities/domain.js +0 -348
  109. package/esm/dist/entities/domain.test.js +0 -82
  110. package/esm/dist/entities/domain_invitation.js +0 -96
  111. package/esm/dist/entities/domain_invitation.test.js +0 -20
  112. package/esm/dist/entities/domain_tag.js +0 -99
  113. package/esm/dist/entities/domain_tag.test.js +0 -20
  114. package/esm/dist/entities/draft.js +0 -182
  115. package/esm/dist/entities/draft.test.js +0 -53
  116. package/esm/dist/entities/draft_comment.js +0 -117
  117. package/esm/dist/entities/draft_comment.test.js +0 -20
  118. package/esm/dist/entities/draft_template.js +0 -101
  119. package/esm/dist/entities/draft_template.test.js +0 -20
  120. package/esm/dist/entities/email_address.js +0 -78
  121. package/esm/dist/entities/email_address.test.js +0 -20
  122. package/esm/dist/entities/email_counter.js +0 -75
  123. package/esm/dist/entities/email_counter.test.js +0 -20
  124. package/esm/dist/entities/enrolled_domain.js +0 -96
  125. package/esm/dist/entities/enrolled_domain.test.js +0 -20
  126. package/esm/dist/entities/exchange_rate.js +0 -78
  127. package/esm/dist/entities/exchange_rate.test.js +0 -20
  128. package/esm/dist/entities/file.js +0 -248
  129. package/esm/dist/entities/file.test.js +0 -52
  130. package/esm/dist/entities/internal_tag.js +0 -106
  131. package/esm/dist/entities/internal_tag.test.js +0 -20
  132. package/esm/dist/entities/inventory.js +0 -111
  133. package/esm/dist/entities/inventory.test.js +0 -36
  134. package/esm/dist/entities/inventory_unit_variation.js +0 -83
  135. package/esm/dist/entities/inventory_unit_variation.test.js +0 -20
  136. package/esm/dist/entities/invoice.js +0 -274
  137. package/esm/dist/entities/invoice.test.js +0 -53
  138. package/esm/dist/entities/item.js +0 -103
  139. package/esm/dist/entities/item.test.js +0 -31
  140. package/esm/dist/entities/job.js +0 -477
  141. package/esm/dist/entities/job.test.js +0 -97
  142. package/esm/dist/entities/job_comment.js +0 -112
  143. package/esm/dist/entities/job_comment.test.js +0 -20
  144. package/esm/dist/entities/matching_inventory.js +0 -85
  145. package/esm/dist/entities/menu.js +0 -87
  146. package/esm/dist/entities/menu.test.js +0 -20
  147. package/esm/dist/entities/menu_item.js +0 -87
  148. package/esm/dist/entities/menu_item.test.js +0 -20
  149. package/esm/dist/entities/notification.js +0 -177
  150. package/esm/dist/entities/notification.test.js +0 -20
  151. package/esm/dist/entities/page.js +0 -91
  152. package/esm/dist/entities/page.test.js +0 -20
  153. package/esm/dist/entities/payment.js +0 -128
  154. package/esm/dist/entities/payment.test.js +0 -30
  155. package/esm/dist/entities/payment_device.js +0 -87
  156. package/esm/dist/entities/payment_device.test.js +0 -20
  157. package/esm/dist/entities/phone_number.js +0 -94
  158. package/esm/dist/entities/phone_number.test.js +0 -20
  159. package/esm/dist/entities/product.js +0 -604
  160. package/esm/dist/entities/product.test.js +0 -712
  161. package/esm/dist/entities/production_comment.js +0 -112
  162. package/esm/dist/entities/production_comment.test.js +0 -20
  163. package/esm/dist/entities/quote.js +0 -190
  164. package/esm/dist/entities/quote.test.js +0 -100
  165. package/esm/dist/entities/quote_item.js +0 -121
  166. package/esm/dist/entities/quote_item.test.js +0 -54
  167. package/esm/dist/entities/seo_domain_page.js +0 -92
  168. package/esm/dist/entities/seo_domain_page.test.js +0 -20
  169. package/esm/dist/entities/session.js +0 -85
  170. package/esm/dist/entities/session.test.js +0 -20
  171. package/esm/dist/entities/shipment.js +0 -266
  172. package/esm/dist/entities/shipment.test.js +0 -34
  173. package/esm/dist/entities/shipment_item.js +0 -67
  174. package/esm/dist/entities/shipment_item.test.js +0 -20
  175. package/esm/dist/entities/shipment_item_fulfillment.js +0 -68
  176. package/esm/dist/entities/shipment_item_fulfillment.test.js +0 -20
  177. package/esm/dist/entities/shipment_method.js +0 -126
  178. package/esm/dist/entities/shipment_method.test.js +0 -20
  179. package/esm/dist/entities/shipment_method_variation.js +0 -99
  180. package/esm/dist/entities/shipment_method_variation.test.js +0 -20
  181. package/esm/dist/entities/short_url.js +0 -95
  182. package/esm/dist/entities/short_url.test.js +0 -20
  183. package/esm/dist/entities/subscription_plan.js +0 -144
  184. package/esm/dist/entities/subscription_plan.test.js +0 -20
  185. package/esm/dist/entities/supply_domain.js +0 -84
  186. package/esm/dist/entities/supply_domain.test.js +0 -20
  187. package/esm/dist/entities/system_role.js +0 -71
  188. package/esm/dist/entities/system_role.test.js +0 -20
  189. package/esm/dist/entities/theme.js +0 -388
  190. package/esm/dist/entities/theme.test.js +0 -49
  191. package/esm/dist/entities/theme_css_setting.js +0 -79
  192. package/esm/dist/entities/theme_css_setting.test.js +0 -20
  193. package/esm/dist/entities/user.js +0 -503
  194. package/esm/dist/entities/user.test.js +0 -148
  195. package/esm/dist/entities/user_company.js +0 -84
  196. package/esm/dist/entities/user_company.test.js +0 -20
  197. package/esm/dist/entities/variation.js +0 -126
  198. package/esm/dist/entities/variation.test.js +0 -20
  199. package/esm/dist/entities/variation_field.js +0 -281
  200. package/esm/dist/entities/variation_field.test.js +0 -83
  201. package/esm/dist/entities/variation_fields_option.js +0 -159
  202. package/esm/dist/entities/variation_fields_option.test.js +0 -57
  203. package/esm/dist/entities/variation_option.js +0 -118
  204. package/esm/dist/entities/variation_option.test.js +0 -20
  205. package/esm/dist/entities/variations_group.js +0 -101
  206. package/esm/dist/entities/variations_group.test.js +0 -20
  207. package/esm/dist/entity.js +0 -945
  208. package/esm/dist/index.js +0 -160
  209. package/esm/dist/merchi.js +0 -264
  210. package/esm/dist/merchi.test.js +0 -35
  211. package/esm/dist/request.js +0 -179
  212. package/esm/dist/request.test.js +0 -51
  213. package/esm/dist/test_util.js +0 -34
  214. package/esm/dist/toasts.js +0 -30
  215. package/esm/dist/toasts.test.js +0 -42
  216. package/esm/dist/util/float.js +0 -59
  217. package/esm/dist/util/query_string.js +0 -27
  218. package/esm/dist/util/query_string.test.js +0 -20
  219. package/esm/dist/util/validation.js +0 -19
  220. package/esm/dist/util/validation.test.js +0 -26
  221. package/esm/dist/uuid.js +0 -24
  222. package/esm/dist/uuid.test.js +0 -25
  223. package/esm/jest.config.js +0 -17
  224. package/esm/src/constants/auto_assign_production_on_actions.js +0 -7
  225. package/esm/src/constants/call_to_actions.js +0 -15
  226. package/esm/src/constants/call_to_actions.test.js +0 -4
  227. package/esm/src/constants/discount_types.js +0 -4
  228. package/esm/src/constants/discount_types.test.js +0 -4
  229. package/esm/src/constants/domain_types.js +0 -13
  230. package/esm/src/constants/domain_types.test.js +0 -4
  231. package/esm/src/constants/errors.js +0 -32
  232. package/esm/src/constants/event_types.js +0 -6
  233. package/esm/src/constants/event_types.test.js +0 -4
  234. package/esm/src/constants/field_types.js +0 -14
  235. package/esm/src/constants/field_types.test.js +0 -4
  236. package/esm/src/constants/input_types.js +0 -14
  237. package/esm/src/constants/input_types.test.js +0 -4
  238. package/esm/src/constants/inventory_status.test.js +0 -4
  239. package/esm/src/constants/inventory_statuses.js +0 -7
  240. package/esm/src/constants/invoice_types.js +0 -6
  241. package/esm/src/constants/invoice_types.test.js +0 -4
  242. package/esm/src/constants/item_types.js +0 -6
  243. package/esm/src/constants/item_types.test.js +0 -4
  244. package/esm/src/constants/job/drafting_status.js +0 -8
  245. package/esm/src/constants/job/drafting_status.test.js +0 -4
  246. package/esm/src/constants/job/payment_status.js +0 -8
  247. package/esm/src/constants/job/payment_status.test.js +0 -4
  248. package/esm/src/constants/job/production_status.js +0 -13
  249. package/esm/src/constants/job/production_status.test.js +0 -4
  250. package/esm/src/constants/job/shipment_status.js +0 -12
  251. package/esm/src/constants/job/shipment_status.test.js +0 -4
  252. package/esm/src/constants/job/supply_chain_request_status.js +0 -7
  253. package/esm/src/constants/job/supply_chain_request_status.test.js +0 -4
  254. package/esm/src/constants/job_priorities.js +0 -7
  255. package/esm/src/constants/job_priorities.test.js +0 -4
  256. package/esm/src/constants/job_status.js +0 -50
  257. package/esm/src/constants/job_status.test.js +0 -4
  258. package/esm/src/constants/job_types.js +0 -16
  259. package/esm/src/constants/job_types.test.js +0 -4
  260. package/esm/src/constants/notification_sections.js +0 -14
  261. package/esm/src/constants/notification_sections.test.js +0 -4
  262. package/esm/src/constants/notification_types.js +0 -98
  263. package/esm/src/constants/notification_types.test.js +0 -4
  264. package/esm/src/constants/notification_urgencies.js +0 -7
  265. package/esm/src/constants/notification_urgencies.test.js +0 -4
  266. package/esm/src/constants/payment_types.js +0 -11
  267. package/esm/src/constants/payment_types.test.js +0 -4
  268. package/esm/src/constants/platform.js +0 -5
  269. package/esm/src/constants/platform.test.js +0 -8
  270. package/esm/src/constants/product_types.js +0 -26
  271. package/esm/src/constants/product_types.test.js +0 -4
  272. package/esm/src/constants/rights.js +0 -6
  273. package/esm/src/constants/rights.test.js +0 -4
  274. package/esm/src/constants/robots_meta_directives.js +0 -11
  275. package/esm/src/constants/robots_meta_directives.test.js +0 -4
  276. package/esm/src/constants/roles.js +0 -57
  277. package/esm/src/constants/roles.test.js +0 -4
  278. package/esm/src/constants/shipment_companies.js +0 -19
  279. package/esm/src/constants/shipment_companies.test.js +0 -4
  280. package/esm/src/constants/shipment_services.js +0 -4
  281. package/esm/src/constants/shipment_services.test.js +0 -4
  282. package/esm/src/constants/system_roles.js +0 -4
  283. package/esm/src/constants/system_roles.test.js +0 -4
  284. package/esm/src/constants/theme_foundations.js +0 -7
  285. package/esm/src/constants/theme_foundations.test.js +0 -4
  286. package/esm/src/constants/theme_status.js +0 -6
  287. package/esm/src/constants/theme_status.test.js +0 -4
  288. package/esm/src/constants/user_types.js +0 -18
  289. package/esm/src/constants/user_types.test.js +0 -4
  290. package/esm/src/constants/white_label_accessibilities.js +0 -6
  291. package/esm/src/constants/white_label_accessibilities.test.js +0 -4
  292. package/esm/src/cookie.js +0 -15
  293. package/esm/src/cookie.test.js +0 -10
  294. package/esm/src/entities/address.js +0 -104
  295. package/esm/src/entities/address.test.js +0 -6
  296. package/esm/src/entities/assignment.js +0 -127
  297. package/esm/src/entities/assignment.test.js +0 -30
  298. package/esm/src/entities/automatic_payment_relationship.js +0 -61
  299. package/esm/src/entities/automatic_payment_relationship.test.js +0 -6
  300. package/esm/src/entities/backup.js +0 -45
  301. package/esm/src/entities/backup.test.js +0 -6
  302. package/esm/src/entities/bank.js +0 -85
  303. package/esm/src/entities/bank.test.js +0 -6
  304. package/esm/src/entities/cart.js +0 -157
  305. package/esm/src/entities/cart.test.js +0 -45
  306. package/esm/src/entities/cart_item.js +0 -117
  307. package/esm/src/entities/cart_item.test.js +0 -28
  308. package/esm/src/entities/cart_shipment_group.js +0 -53
  309. package/esm/src/entities/cart_shipment_quote.js +0 -70
  310. package/esm/src/entities/category.js +0 -73
  311. package/esm/src/entities/category.test.js +0 -52
  312. package/esm/src/entities/company.js +0 -371
  313. package/esm/src/entities/company.test.js +0 -6
  314. package/esm/src/entities/company_invitation.js +0 -70
  315. package/esm/src/entities/company_invitation.test.js +0 -6
  316. package/esm/src/entities/component.js +0 -141
  317. package/esm/src/entities/component.test.js +0 -12
  318. package/esm/src/entities/component_tag.js +0 -49
  319. package/esm/src/entities/component_tag.test.js +0 -6
  320. package/esm/src/entities/component_version.js +0 -65
  321. package/esm/src/entities/component_version.test.js +0 -6
  322. package/esm/src/entities/country_tax.js +0 -80
  323. package/esm/src/entities/country_tax.test.js +0 -11
  324. package/esm/src/entities/discount.js +0 -68
  325. package/esm/src/entities/discount.test.js +0 -16
  326. package/esm/src/entities/discount_group.js +0 -60
  327. package/esm/src/entities/discount_group.test.js +0 -6
  328. package/esm/src/entities/domain.js +0 -326
  329. package/esm/src/entities/domain.test.js +0 -68
  330. package/esm/src/entities/domain_invitation.js +0 -74
  331. package/esm/src/entities/domain_invitation.test.js +0 -6
  332. package/esm/src/entities/domain_tag.js +0 -77
  333. package/esm/src/entities/domain_tag.test.js +0 -6
  334. package/esm/src/entities/draft.js +0 -151
  335. package/esm/src/entities/draft.test.js +0 -39
  336. package/esm/src/entities/draft_comment.js +0 -95
  337. package/esm/src/entities/draft_comment.test.js +0 -6
  338. package/esm/src/entities/draft_template.js +0 -79
  339. package/esm/src/entities/draft_template.test.js +0 -6
  340. package/esm/src/entities/email_address.js +0 -56
  341. package/esm/src/entities/email_address.test.js +0 -6
  342. package/esm/src/entities/email_counter.js +0 -53
  343. package/esm/src/entities/email_counter.test.js +0 -6
  344. package/esm/src/entities/enrolled_domain.js +0 -74
  345. package/esm/src/entities/enrolled_domain.test.js +0 -6
  346. package/esm/src/entities/exchange_rate.js +0 -56
  347. package/esm/src/entities/exchange_rate.test.js +0 -6
  348. package/esm/src/entities/file.js +0 -226
  349. package/esm/src/entities/file.test.js +0 -38
  350. package/esm/src/entities/internal_tag.js +0 -84
  351. package/esm/src/entities/internal_tag.test.js +0 -6
  352. package/esm/src/entities/inventory.js +0 -89
  353. package/esm/src/entities/inventory.test.js +0 -22
  354. package/esm/src/entities/inventory_unit_variation.js +0 -61
  355. package/esm/src/entities/inventory_unit_variation.test.js +0 -6
  356. package/esm/src/entities/invoice.js +0 -252
  357. package/esm/src/entities/invoice.test.js +0 -39
  358. package/esm/src/entities/item.js +0 -81
  359. package/esm/src/entities/item.test.js +0 -17
  360. package/esm/src/entities/job.js +0 -455
  361. package/esm/src/entities/job.test.js +0 -83
  362. package/esm/src/entities/job_comment.js +0 -90
  363. package/esm/src/entities/job_comment.test.js +0 -6
  364. package/esm/src/entities/matching_inventory.js +0 -63
  365. package/esm/src/entities/menu.js +0 -65
  366. package/esm/src/entities/menu.test.js +0 -6
  367. package/esm/src/entities/menu_item.js +0 -65
  368. package/esm/src/entities/menu_item.test.js +0 -6
  369. package/esm/src/entities/notification.js +0 -155
  370. package/esm/src/entities/notification.test.js +0 -6
  371. package/esm/src/entities/page.js +0 -69
  372. package/esm/src/entities/page.test.js +0 -6
  373. package/esm/src/entities/payment.js +0 -106
  374. package/esm/src/entities/payment.test.js +0 -16
  375. package/esm/src/entities/payment_device.js +0 -65
  376. package/esm/src/entities/payment_device.test.js +0 -6
  377. package/esm/src/entities/phone_number.js +0 -72
  378. package/esm/src/entities/phone_number.test.js +0 -6
  379. package/esm/src/entities/product.js +0 -544
  380. package/esm/src/entities/product.test.js +0 -698
  381. package/esm/src/entities/production_comment.js +0 -90
  382. package/esm/src/entities/production_comment.test.js +0 -6
  383. package/esm/src/entities/quote.js +0 -168
  384. package/esm/src/entities/quote.test.js +0 -86
  385. package/esm/src/entities/quote_item.js +0 -99
  386. package/esm/src/entities/quote_item.test.js +0 -40
  387. package/esm/src/entities/seo_domain_page.js +0 -70
  388. package/esm/src/entities/seo_domain_page.test.js +0 -6
  389. package/esm/src/entities/session.js +0 -63
  390. package/esm/src/entities/session.test.js +0 -6
  391. package/esm/src/entities/shipment.js +0 -244
  392. package/esm/src/entities/shipment.test.js +0 -20
  393. package/esm/src/entities/shipment_item.js +0 -45
  394. package/esm/src/entities/shipment_item.test.js +0 -6
  395. package/esm/src/entities/shipment_item_fulfillment.js +0 -46
  396. package/esm/src/entities/shipment_item_fulfillment.test.js +0 -6
  397. package/esm/src/entities/shipment_method.js +0 -104
  398. package/esm/src/entities/shipment_method.test.js +0 -6
  399. package/esm/src/entities/shipment_method_variation.js +0 -77
  400. package/esm/src/entities/shipment_method_variation.test.js +0 -6
  401. package/esm/src/entities/short_url.js +0 -73
  402. package/esm/src/entities/short_url.test.js +0 -6
  403. package/esm/src/entities/subscription_plan.js +0 -122
  404. package/esm/src/entities/subscription_plan.test.js +0 -6
  405. package/esm/src/entities/supply_domain.js +0 -62
  406. package/esm/src/entities/supply_domain.test.js +0 -6
  407. package/esm/src/entities/system_role.js +0 -49
  408. package/esm/src/entities/system_role.test.js +0 -6
  409. package/esm/src/entities/theme.js +0 -366
  410. package/esm/src/entities/theme.test.js +0 -35
  411. package/esm/src/entities/theme_css_setting.js +0 -57
  412. package/esm/src/entities/theme_css_setting.test.js +0 -6
  413. package/esm/src/entities/user.js +0 -469
  414. package/esm/src/entities/user.test.js +0 -134
  415. package/esm/src/entities/user_company.js +0 -62
  416. package/esm/src/entities/user_company.test.js +0 -6
  417. package/esm/src/entities/variation.js +0 -104
  418. package/esm/src/entities/variation.test.js +0 -6
  419. package/esm/src/entities/variation_field.js +0 -250
  420. package/esm/src/entities/variation_field.test.js +0 -69
  421. package/esm/src/entities/variation_fields_option.js +0 -137
  422. package/esm/src/entities/variation_fields_option.test.js +0 -43
  423. package/esm/src/entities/variation_option.js +0 -96
  424. package/esm/src/entities/variation_option.test.js +0 -6
  425. package/esm/src/entities/variations_group.js +0 -79
  426. package/esm/src/entities/variations_group.test.js +0 -6
  427. package/esm/src/entity.js +0 -885
  428. package/esm/src/index.js +0 -73
  429. package/esm/src/merchi.js +0 -248
  430. package/esm/src/merchi.test.js +0 -21
  431. package/esm/src/request.js +0 -150
  432. package/esm/src/request.test.js +0 -37
  433. package/esm/src/test_util.js +0 -17
  434. package/esm/src/toasts.js +0 -14
  435. package/esm/src/toasts.test.js +0 -28
  436. package/esm/src/util/float.js +0 -34
  437. package/esm/src/util/query_string.js +0 -11
  438. package/esm/src/util/query_string.test.js +0 -6
  439. package/esm/src/util/validation.js +0 -3
  440. package/esm/src/util/validation.test.js +0 -12
  441. package/esm/src/uuid.js +0 -8
  442. package/esm/src/uuid.test.js +0 -11
  443. package/src/constants/auto_assign_production_on_actions.js +0 -7
  444. package/src/constants/call_to_actions.js +0 -15
  445. package/src/constants/call_to_actions.test.js +0 -4
  446. package/src/constants/discount_types.js +0 -4
  447. package/src/constants/discount_types.test.js +0 -4
  448. package/src/constants/domain_types.js +0 -13
  449. package/src/constants/domain_types.test.js +0 -4
  450. package/src/constants/errors.js +0 -32
  451. package/src/constants/event_types.js +0 -6
  452. package/src/constants/event_types.test.js +0 -4
  453. package/src/constants/field_types.js +0 -14
  454. package/src/constants/field_types.test.js +0 -4
  455. package/src/constants/input_types.js +0 -14
  456. package/src/constants/input_types.test.js +0 -4
  457. package/src/constants/inventory_status.test.js +0 -4
  458. package/src/constants/inventory_statuses.js +0 -7
  459. package/src/constants/invoice_types.js +0 -6
  460. package/src/constants/invoice_types.test.js +0 -4
  461. package/src/constants/item_types.js +0 -6
  462. package/src/constants/item_types.test.js +0 -4
  463. package/src/constants/job/drafting_status.js +0 -8
  464. package/src/constants/job/drafting_status.test.js +0 -4
  465. package/src/constants/job/payment_status.js +0 -8
  466. package/src/constants/job/payment_status.test.js +0 -4
  467. package/src/constants/job/production_status.js +0 -13
  468. package/src/constants/job/production_status.test.js +0 -4
  469. package/src/constants/job/shipment_status.js +0 -12
  470. package/src/constants/job/shipment_status.test.js +0 -4
  471. package/src/constants/job/supply_chain_request_status.js +0 -7
  472. package/src/constants/job/supply_chain_request_status.test.js +0 -4
  473. package/src/constants/job_priorities.js +0 -7
  474. package/src/constants/job_priorities.test.js +0 -4
  475. package/src/constants/job_status.js +0 -50
  476. package/src/constants/job_status.test.js +0 -4
  477. package/src/constants/job_types.js +0 -16
  478. package/src/constants/job_types.test.js +0 -4
  479. package/src/constants/notification_sections.js +0 -14
  480. package/src/constants/notification_sections.test.js +0 -4
  481. package/src/constants/notification_types.js +0 -98
  482. package/src/constants/notification_types.test.js +0 -4
  483. package/src/constants/notification_urgencies.js +0 -7
  484. package/src/constants/notification_urgencies.test.js +0 -4
  485. package/src/constants/payment_types.js +0 -11
  486. package/src/constants/payment_types.test.js +0 -4
  487. package/src/constants/platform.js +0 -5
  488. package/src/constants/platform.test.js +0 -8
  489. package/src/constants/product_types.js +0 -26
  490. package/src/constants/product_types.test.js +0 -4
  491. package/src/constants/rights.js +0 -6
  492. package/src/constants/rights.test.js +0 -4
  493. package/src/constants/robots_meta_directives.js +0 -11
  494. package/src/constants/robots_meta_directives.test.js +0 -4
  495. package/src/constants/roles.js +0 -57
  496. package/src/constants/roles.test.js +0 -4
  497. package/src/constants/shipment_companies.js +0 -19
  498. package/src/constants/shipment_companies.test.js +0 -4
  499. package/src/constants/shipment_services.js +0 -4
  500. package/src/constants/shipment_services.test.js +0 -4
  501. package/src/constants/system_roles.js +0 -4
  502. package/src/constants/system_roles.test.js +0 -4
  503. package/src/constants/theme_foundations.js +0 -7
  504. package/src/constants/theme_foundations.test.js +0 -4
  505. package/src/constants/theme_status.js +0 -6
  506. package/src/constants/theme_status.test.js +0 -4
  507. package/src/constants/user_types.js +0 -18
  508. package/src/constants/user_types.test.js +0 -4
  509. package/src/constants/white_label_accessibilities.js +0 -6
  510. package/src/constants/white_label_accessibilities.test.js +0 -4
  511. package/src/cookie.js +0 -15
  512. package/src/cookie.test.js +0 -10
  513. package/src/entities/address.js +0 -104
  514. package/src/entities/address.test.js +0 -6
  515. package/src/entities/assignment.js +0 -127
  516. package/src/entities/assignment.test.js +0 -30
  517. package/src/entities/automatic_payment_relationship.js +0 -61
  518. package/src/entities/automatic_payment_relationship.test.js +0 -6
  519. package/src/entities/backup.js +0 -45
  520. package/src/entities/backup.test.js +0 -6
  521. package/src/entities/bank.js +0 -85
  522. package/src/entities/bank.test.js +0 -6
  523. package/src/entities/cart.js +0 -157
  524. package/src/entities/cart.test.js +0 -45
  525. package/src/entities/cart_item.js +0 -117
  526. package/src/entities/cart_item.test.js +0 -28
  527. package/src/entities/cart_shipment_group.js +0 -53
  528. package/src/entities/cart_shipment_quote.js +0 -70
  529. package/src/entities/category.js +0 -73
  530. package/src/entities/category.test.js +0 -52
  531. package/src/entities/company.js +0 -371
  532. package/src/entities/company.test.js +0 -6
  533. package/src/entities/company_invitation.js +0 -70
  534. package/src/entities/company_invitation.test.js +0 -6
  535. package/src/entities/component.js +0 -141
  536. package/src/entities/component.test.js +0 -12
  537. package/src/entities/component_tag.js +0 -49
  538. package/src/entities/component_tag.test.js +0 -6
  539. package/src/entities/component_version.js +0 -65
  540. package/src/entities/component_version.test.js +0 -6
  541. package/src/entities/country_tax.js +0 -80
  542. package/src/entities/country_tax.test.js +0 -11
  543. package/src/entities/discount.js +0 -68
  544. package/src/entities/discount.test.js +0 -16
  545. package/src/entities/discount_group.js +0 -60
  546. package/src/entities/discount_group.test.js +0 -6
  547. package/src/entities/domain.js +0 -326
  548. package/src/entities/domain.test.js +0 -68
  549. package/src/entities/domain_invitation.js +0 -74
  550. package/src/entities/domain_invitation.test.js +0 -6
  551. package/src/entities/domain_tag.js +0 -77
  552. package/src/entities/domain_tag.test.js +0 -6
  553. package/src/entities/draft.js +0 -151
  554. package/src/entities/draft.test.js +0 -39
  555. package/src/entities/draft_comment.js +0 -95
  556. package/src/entities/draft_comment.test.js +0 -6
  557. package/src/entities/draft_template.js +0 -79
  558. package/src/entities/draft_template.test.js +0 -6
  559. package/src/entities/email_address.js +0 -56
  560. package/src/entities/email_address.test.js +0 -6
  561. package/src/entities/email_counter.js +0 -53
  562. package/src/entities/email_counter.test.js +0 -6
  563. package/src/entities/enrolled_domain.js +0 -74
  564. package/src/entities/enrolled_domain.test.js +0 -6
  565. package/src/entities/exchange_rate.js +0 -56
  566. package/src/entities/exchange_rate.test.js +0 -6
  567. package/src/entities/file.js +0 -226
  568. package/src/entities/file.test.js +0 -38
  569. package/src/entities/internal_tag.js +0 -84
  570. package/src/entities/internal_tag.test.js +0 -6
  571. package/src/entities/inventory.js +0 -89
  572. package/src/entities/inventory.test.js +0 -22
  573. package/src/entities/inventory_unit_variation.js +0 -61
  574. package/src/entities/inventory_unit_variation.test.js +0 -6
  575. package/src/entities/invoice.js +0 -252
  576. package/src/entities/invoice.test.js +0 -39
  577. package/src/entities/item.js +0 -81
  578. package/src/entities/item.test.js +0 -17
  579. package/src/entities/job.js +0 -455
  580. package/src/entities/job.test.js +0 -83
  581. package/src/entities/job_comment.js +0 -90
  582. package/src/entities/job_comment.test.js +0 -6
  583. package/src/entities/matching_inventory.js +0 -63
  584. package/src/entities/menu.js +0 -65
  585. package/src/entities/menu.test.js +0 -6
  586. package/src/entities/menu_item.js +0 -65
  587. package/src/entities/menu_item.test.js +0 -6
  588. package/src/entities/notification.js +0 -155
  589. package/src/entities/notification.test.js +0 -6
  590. package/src/entities/page.js +0 -69
  591. package/src/entities/page.test.js +0 -6
  592. package/src/entities/payment.js +0 -106
  593. package/src/entities/payment.test.js +0 -16
  594. package/src/entities/payment_device.js +0 -65
  595. package/src/entities/payment_device.test.js +0 -6
  596. package/src/entities/phone_number.js +0 -72
  597. package/src/entities/phone_number.test.js +0 -6
  598. package/src/entities/product.js +0 -544
  599. package/src/entities/product.test.js +0 -698
  600. package/src/entities/production_comment.js +0 -90
  601. package/src/entities/production_comment.test.js +0 -6
  602. package/src/entities/quote.js +0 -168
  603. package/src/entities/quote.test.js +0 -86
  604. package/src/entities/quote_item.js +0 -99
  605. package/src/entities/quote_item.test.js +0 -40
  606. package/src/entities/seo_domain_page.js +0 -70
  607. package/src/entities/seo_domain_page.test.js +0 -6
  608. package/src/entities/session.js +0 -63
  609. package/src/entities/session.test.js +0 -6
  610. package/src/entities/shipment.js +0 -244
  611. package/src/entities/shipment.test.js +0 -20
  612. package/src/entities/shipment_item.js +0 -45
  613. package/src/entities/shipment_item.test.js +0 -6
  614. package/src/entities/shipment_item_fulfillment.js +0 -46
  615. package/src/entities/shipment_item_fulfillment.test.js +0 -6
  616. package/src/entities/shipment_method.js +0 -104
  617. package/src/entities/shipment_method.test.js +0 -6
  618. package/src/entities/shipment_method_variation.js +0 -77
  619. package/src/entities/shipment_method_variation.test.js +0 -6
  620. package/src/entities/short_url.js +0 -73
  621. package/src/entities/short_url.test.js +0 -6
  622. package/src/entities/subscription_plan.js +0 -122
  623. package/src/entities/subscription_plan.test.js +0 -6
  624. package/src/entities/supply_domain.js +0 -62
  625. package/src/entities/supply_domain.test.js +0 -6
  626. package/src/entities/system_role.js +0 -49
  627. package/src/entities/system_role.test.js +0 -6
  628. package/src/entities/theme.js +0 -366
  629. package/src/entities/theme.test.js +0 -35
  630. package/src/entities/theme_css_setting.js +0 -57
  631. package/src/entities/theme_css_setting.test.js +0 -6
  632. package/src/entities/user.js +0 -469
  633. package/src/entities/user.test.js +0 -134
  634. package/src/entities/user_company.js +0 -62
  635. package/src/entities/user_company.test.js +0 -6
  636. package/src/entities/variation.js +0 -104
  637. package/src/entities/variation.test.js +0 -6
  638. package/src/entities/variation_field.js +0 -250
  639. package/src/entities/variation_field.test.js +0 -69
  640. package/src/entities/variation_fields_option.js +0 -137
  641. package/src/entities/variation_fields_option.test.js +0 -43
  642. package/src/entities/variation_option.js +0 -96
  643. package/src/entities/variation_option.test.js +0 -6
  644. package/src/entities/variations_group.js +0 -79
  645. package/src/entities/variations_group.test.js +0 -6
  646. package/src/entity.js +0 -885
  647. package/src/index.js +0 -73
  648. package/src/merchi.js +0 -248
  649. package/src/merchi.test.js +0 -21
  650. package/src/request.js +0 -150
  651. package/src/request.test.js +0 -37
  652. package/src/test_util.js +0 -17
  653. package/src/toasts.js +0 -14
  654. package/src/toasts.test.js +0 -28
  655. package/src/util/float.js +0 -34
  656. package/src/util/query_string.js +0 -11
  657. package/src/util/query_string.test.js +0 -6
  658. package/src/util/validation.js +0 -3
  659. package/src/util/validation.test.js +0 -12
  660. package/src/uuid.js +0 -8
  661. package/src/uuid.test.js +0 -11
  662. package/tsconfig.esm.json +0 -47
  663. package/tsconfig.umd.json +0 -23
@@ -67,8 +67,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
67
67
  __extends(User, _super);
68
68
  function User() {
69
69
  var _this = _super !== null && _super.apply(this, arguments) || this;
70
- // public publicCreate = this.createFactory(
71
- // {resourceName: 'public_user_create'});
70
+ _this.publicCreate = _this.createFactory({ resourceName: 'public_user_create' });
72
71
  _this.roleInDomain = function (domain) {
73
72
  if (_this.enrolledDomains === undefined) {
74
73
  var err = 'enrolledDomains is undefined, did you forget to embed it?';
@@ -27,7 +27,7 @@
27
27
  user.name = 'Test User';
28
28
  var data = Array.from(user.toFormData().entries());
29
29
  var fetch = (0, test_util_1.mockFetch)(true, {}, 201);
30
- // user.publicCreate();
30
+ user.publicCreate();
31
31
  var fetchUrl = fetch.mock.calls[0][0];
32
32
  var sentToServer = Array.from(fetch.mock.calls[0][1]['body'].entries());
33
33
  expect(sentToServer).toEqual(data);
package/package.json CHANGED
@@ -1,18 +1,13 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.0.2q",
4
- "source": "src/index.ts",
3
+ "version": "1.0.2",
5
4
  "main": "dist/index.js",
6
- "module": "esm/index.js",
7
- "types": "dist/index.d.ts",
8
5
  "type": "module",
9
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
10
7
  "author": "Daniel Collins <mail@dcollins.info>, James Campton <james@merchi.co>, Cheng Yu <chengyu0316@gmail.com>",
11
8
  "license": "GPL-3.0",
12
9
  "scripts": {
13
- "build:umd": "tsc --project tsconfig.umd.json",
14
- "build:esm": "tsc --project tsconfig.esm.json",
15
- "build": "npm run build:umd && npm run build:esm",
10
+ "build": "tsc",
16
11
  "test": "jest --coverage"
17
12
  },
18
13
  "devDependencies": {
@@ -1,22 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.AutoAssignProductionOnAction = void 0;
15
- var AutoAssignProductionOnAction;
16
- (function (AutoAssignProductionOnAction) {
17
- AutoAssignProductionOnAction[AutoAssignProductionOnAction["NOT_REQUIRED"] = 0] = "NOT_REQUIRED";
18
- AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_CREATION"] = 1] = "ON_JOB_CREATION";
19
- AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_INVOICE_PAID"] = 2] = "ON_JOB_INVOICE_PAID";
20
- AutoAssignProductionOnAction[AutoAssignProductionOnAction["ON_JOB_DRAFT_APPROVED"] = 3] = "ON_JOB_DRAFT_APPROVED";
21
- })(AutoAssignProductionOnAction = exports.AutoAssignProductionOnAction || (exports.AutoAssignProductionOnAction = {}));
22
- });
@@ -1,30 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.CallToActions = void 0;
15
- var CallToActions;
16
- (function (CallToActions) {
17
- CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN"] = 0] = "COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN";
18
- CallToActions[CallToActions["COMPLETE_COMPANY_PROFILE"] = 1] = "COMPLETE_COMPANY_PROFILE";
19
- CallToActions[CallToActions["UPGRADE_SUBSCRIPTION_PLAN"] = 2] = "UPGRADE_SUBSCRIPTION_PLAN";
20
- CallToActions[CallToActions["COMPANY_ADD_PAYMENT_DETAILS_TO_UNLOCK_MORE_FEATURES"] = 3] = "COMPANY_ADD_PAYMENT_DETAILS_TO_UNLOCK_MORE_FEATURES";
21
- CallToActions[CallToActions["COMPANY_SUBSCRIPTION_OUTSTANDING"] = 4] = "COMPANY_SUBSCRIPTION_OUTSTANDING";
22
- CallToActions[CallToActions["COMPANY_OWNERSHIP_NEEDS_CONFIRMATION"] = 5] = "COMPANY_OWNERSHIP_NEEDS_CONFIRMATION";
23
- CallToActions[CallToActions["MOD_PRODUCT_READY_FOR_SALE"] = 6] = "MOD_PRODUCT_READY_FOR_SALE";
24
- CallToActions[CallToActions["CREATE_STORE_FOR_SELLING"] = 7] = "CREATE_STORE_FOR_SELLING";
25
- CallToActions[CallToActions["COMPANY_NEEDS_TO_ADD_PAYMENT_METHOD"] = 8] = "COMPANY_NEEDS_TO_ADD_PAYMENT_METHOD";
26
- CallToActions[CallToActions["YOUR_COMPANIES_NEED_STRIPE_TO_COLLECT_PAYMENT"] = 9] = "YOUR_COMPANIES_NEED_STRIPE_TO_COLLECT_PAYMENT";
27
- CallToActions[CallToActions["SUPPLIER_PRODUCT_READY_FOR_SALE"] = 10] = "SUPPLIER_PRODUCT_READY_FOR_SALE";
28
- CallToActions[CallToActions["SET_PASSWORD"] = 11] = "SET_PASSWORD";
29
- })(CallToActions = exports.CallToActions || (exports.CallToActions = {}));
30
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./call_to_actions"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var call_to_actions_1 = require("./call_to_actions");
15
- test('seller type exists', function () {
16
- expect(call_to_actions_1.CallToActions.COMPLETE_COMPANY_PROFILE_AND_UPGRADE_SUBSCRIPTION_PLAN).toBe(0);
17
- });
18
- });
@@ -1,19 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.DiscountType = void 0;
15
- var DiscountType;
16
- (function (DiscountType) {
17
- DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
18
- })(DiscountType = exports.DiscountType || (exports.DiscountType = {}));
19
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./discount_types"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var discount_types_1 = require("./discount_types");
15
- test('discount type volumetric exists', function () {
16
- expect(discount_types_1.DiscountType.VOLUMETRIC).toBe(0);
17
- });
18
- });
@@ -1,28 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.DomainType = void 0;
15
- var DomainType;
16
- (function (DomainType) {
17
- DomainType[DomainType["UNRESTRICTED"] = 0] = "UNRESTRICTED";
18
- DomainType[DomainType["SELLER"] = 1] = "SELLER";
19
- DomainType[DomainType["SELLER_PLUS"] = 2] = "SELLER_PLUS";
20
- DomainType[DomainType["SUPPLIER"] = 3] = "SUPPLIER";
21
- DomainType[DomainType["RESTRICTED_SUPPLIER"] = 4] = "RESTRICTED_SUPPLIER";
22
- DomainType[DomainType["DOMAIN_SUPPLIER"] = 5] = "DOMAIN_SUPPLIER";
23
- DomainType[DomainType["DOMAIN_CLIENT_CATALOGUE"] = 6] = "DOMAIN_CLIENT_CATALOGUE";
24
- DomainType[DomainType["DOMAIN_SHOPIFY_SELLER"] = 7] = "DOMAIN_SHOPIFY_SELLER";
25
- DomainType[DomainType["UNRESTRICTED_SHOPIFY_APP"] = 8] = "UNRESTRICTED_SHOPIFY_APP";
26
- DomainType[DomainType["RESERVED"] = 9] = "RESERVED";
27
- })(DomainType = exports.DomainType || (exports.DomainType = {}));
28
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./domain_types"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var domain_types_1 = require("./domain_types");
15
- test('seller type exists', function () {
16
- expect(domain_types_1.DomainType.SELLER).toBe(1);
17
- });
18
- });
@@ -1,48 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.getErrorFromCode = exports.ErrorType = void 0;
15
- var ErrorType;
16
- (function (ErrorType) {
17
- ErrorType[ErrorType["UNKNOWN_ERROR"] = 0] = "UNKNOWN_ERROR";
18
- ErrorType[ErrorType["SERVER_ERROR"] = 1] = "SERVER_ERROR";
19
- ErrorType[ErrorType["CLIENT_ERROR"] = 2] = "CLIENT_ERROR";
20
- ErrorType[ErrorType["EMAIL_ALREADY_EXISTS"] = 3] = "EMAIL_ALREADY_EXISTS";
21
- ErrorType[ErrorType["SUPPLIER_NOT_ADDED_TO_PRODUCT"] = 4] = "SUPPLIER_NOT_ADDED_TO_PRODUCT";
22
- ErrorType[ErrorType["EMAIL_NOT_FOUND"] = 5] = "EMAIL_NOT_FOUND";
23
- ErrorType[ErrorType["INVALID_PHONE_NUMBER"] = 6] = "INVALID_PHONE_NUMBER";
24
- ErrorType[ErrorType["INVALID_PASSWORD"] = 7] = "INVALID_PASSWORD";
25
- ErrorType[ErrorType["RESOURCE_NOT_FOUND"] = 8] = "RESOURCE_NOT_FOUND";
26
- ErrorType[ErrorType["RESOURCE_GONE"] = 9] = "RESOURCE_GONE";
27
- ErrorType[ErrorType["REQUEST_TOO_LARGE"] = 10] = "REQUEST_TOO_LARGE";
28
- ErrorType[ErrorType["UNKNOWN_DOMAIN"] = 11] = "UNKNOWN_DOMAIN";
29
- ErrorType[ErrorType["UNSUPPORTED_METHOD"] = 12] = "UNSUPPORTED_METHOD";
30
- ErrorType[ErrorType["MISSING_EVENT_TYPES"] = 13] = "MISSING_EVENT_TYPES";
31
- ErrorType[ErrorType["INVALID_EVENT_TYPES"] = 14] = "INVALID_EVENT_TYPES";
32
- ErrorType[ErrorType["MISSING_URI"] = 15] = "MISSING_URI";
33
- ErrorType[ErrorType["MISSING_SID"] = 16] = "MISSING_SID";
34
- ErrorType[ErrorType["MISSING_SECRET_KEY"] = 17] = "MISSING_SECRET_KEY";
35
- ErrorType[ErrorType["MISSING_SUBSCRIPTION_TOKEN"] = 18] = "MISSING_SUBSCRIPTION_TOKEN";
36
- ErrorType[ErrorType["WRONG_SECRET_KEY"] = 19] = "WRONG_SECRET_KEY";
37
- ErrorType[ErrorType["DUPLICATE_SUBSCRIPTION_TOKEN"] = 20] = "DUPLICATE_SUBSCRIPTION_TOKEN";
38
- ErrorType[ErrorType["BAD_SMS_TOKEN"] = 21] = "BAD_SMS_TOKEN";
39
- ErrorType[ErrorType["DOMAIN_NOT_FOUND"] = 22] = "DOMAIN_NOT_FOUND";
40
- })(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
41
- function getErrorFromCode(code) {
42
- if (code in ErrorType) {
43
- return code;
44
- }
45
- return ErrorType.UNKNOWN_ERROR;
46
- }
47
- exports.getErrorFromCode = getErrorFromCode;
48
- });
@@ -1,21 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.EventType = void 0;
15
- var EventType;
16
- (function (EventType) {
17
- EventType[EventType["POST"] = 0] = "POST";
18
- EventType[EventType["PATCH"] = 1] = "PATCH";
19
- EventType[EventType["DELETE"] = 1] = "DELETE";
20
- })(EventType = exports.EventType || (exports.EventType = {}));
21
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./event_types"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var event_types_1 = require("./event_types");
15
- test('post event type exists', function () {
16
- expect(event_types_1.EventType.POST).toBe(0);
17
- });
18
- });
@@ -1,29 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.FieldType = void 0;
15
- var FieldType;
16
- (function (FieldType) {
17
- FieldType[FieldType["TEXT_INPUT"] = 1] = "TEXT_INPUT";
18
- FieldType[FieldType["SELECT"] = 2] = "SELECT";
19
- FieldType[FieldType["FILE_UPLOAD"] = 3] = "FILE_UPLOAD";
20
- FieldType[FieldType["TEXT_AREA"] = 4] = "TEXT_AREA";
21
- FieldType[FieldType["NUMBER_INPUT"] = 5] = "NUMBER_INPUT";
22
- FieldType[FieldType["CHECKBOX"] = 6] = "CHECKBOX";
23
- FieldType[FieldType["RADIO"] = 7] = "RADIO";
24
- FieldType[FieldType["FIELD_INSTRUCTIONS"] = 8] = "FIELD_INSTRUCTIONS";
25
- FieldType[FieldType["IMAGE_SELECT"] = 9] = "IMAGE_SELECT";
26
- FieldType[FieldType["COLOUR_PICKER"] = 10] = "COLOUR_PICKER";
27
- FieldType[FieldType["COLOUR_SELECT"] = 11] = "COLOUR_SELECT";
28
- })(FieldType = exports.FieldType || (exports.FieldType = {}));
29
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./field_types"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var field_types_1 = require("./field_types");
15
- test('text input type exists', function () {
16
- expect(field_types_1.FieldType.TEXT_INPUT).toBe(1);
17
- });
18
- });
@@ -1,29 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.InputType = void 0;
15
- var InputType;
16
- (function (InputType) {
17
- InputType[InputType["TEXT"] = 1] = "TEXT";
18
- InputType[InputType["SELECT"] = 2] = "SELECT";
19
- InputType[InputType["FILE"] = 3] = "FILE";
20
- InputType[InputType["TEXTAREA"] = 4] = "TEXTAREA";
21
- InputType[InputType["NUMBER"] = 5] = "NUMBER";
22
- InputType[InputType["CHECKBOX"] = 6] = "CHECKBOX";
23
- InputType[InputType["RADIO"] = 7] = "RADIO";
24
- InputType[InputType["INSTRUCTIONS"] = 8] = "INSTRUCTIONS";
25
- InputType[InputType["IMAGE_SELECT"] = 9] = "IMAGE_SELECT";
26
- InputType[InputType["COLUR_PICKER"] = 10] = "COLUR_PICKER";
27
- InputType[InputType["COLOUR_SELECT"] = 11] = "COLOUR_SELECT";
28
- })(InputType = exports.InputType || (exports.InputType = {}));
29
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./input_types"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var input_types_1 = require("./input_types");
15
- test('text type exists', function () {
16
- expect(input_types_1.InputType.TEXT).toBe(1);
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./inventory_statuses"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var inventory_statuses_1 = require("./inventory_statuses");
15
- test('inventory deducted', function () {
16
- expect(inventory_statuses_1.InventoryStatus.DEDUCTED).toBe(0);
17
- });
18
- });
@@ -1,22 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.InventoryStatus = void 0;
15
- var InventoryStatus;
16
- (function (InventoryStatus) {
17
- InventoryStatus[InventoryStatus["DEDUCTED"] = 0] = "DEDUCTED";
18
- InventoryStatus[InventoryStatus["CAN_DEDUCT"] = 1] = "CAN_DEDUCT";
19
- InventoryStatus[InventoryStatus["NOT_SUFFICIENT"] = 2] = "NOT_SUFFICIENT";
20
- InventoryStatus[InventoryStatus["NO_MATCHING_INVENTORY"] = 3] = "NO_MATCHING_INVENTORY";
21
- })(InventoryStatus = exports.InventoryStatus || (exports.InventoryStatus = {}));
22
- });
@@ -1,21 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.InoviceType = void 0;
15
- var InoviceType;
16
- (function (InoviceType) {
17
- InoviceType[InoviceType["ORDER"] = 0] = "ORDER";
18
- InoviceType[InoviceType["SUBSCRIPTION_BILL"] = 1] = "SUBSCRIPTION_BILL";
19
- InoviceType[InoviceType["AUTO_SUPPLY_BILL"] = 2] = "AUTO_SUPPLY_BILL";
20
- })(InoviceType = exports.InoviceType || (exports.InoviceType = {}));
21
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./invoice_types"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var invoice_types_1 = require("./invoice_types");
15
- test('invoice type exists', function () {
16
- expect(invoice_types_1.InoviceType.ORDER).toBe(0);
17
- });
18
- });
@@ -1,21 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.ItemType = void 0;
15
- var ItemType;
16
- (function (ItemType) {
17
- ItemType[ItemType["CUSTOM"] = 0] = "CUSTOM";
18
- ItemType[ItemType["SHIPPING"] = 1] = "SHIPPING";
19
- ItemType[ItemType["TAX"] = 2] = "TAX";
20
- })(ItemType = exports.ItemType || (exports.ItemType = {}));
21
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./item_types"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var item_types_1 = require("./item_types");
15
- test('custom type exists', function () {
16
- expect(item_types_1.ItemType.CUSTOM).toBe(0);
17
- });
18
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.DraftingStatus = void 0;
15
- var DraftingStatus;
16
- (function (DraftingStatus) {
17
- DraftingStatus[DraftingStatus["INIT"] = 0] = "INIT";
18
- DraftingStatus[DraftingStatus["WAIT_DRAFTING"] = 1] = "WAIT_DRAFTING";
19
- DraftingStatus[DraftingStatus["CHANGES_REQUESTED"] = 2] = "CHANGES_REQUESTED";
20
- DraftingStatus[DraftingStatus["DRAFTING_UPLOADED"] = 3] = "DRAFTING_UPLOADED";
21
- DraftingStatus[DraftingStatus["DRAFTINGA_APPROVED"] = 4] = "DRAFTINGA_APPROVED";
22
- })(DraftingStatus = exports.DraftingStatus || (exports.DraftingStatus = {}));
23
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./drafting_status"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var drafting_status_1 = require("./drafting_status");
15
- test('init status exists', function () {
16
- expect(drafting_status_1.DraftingStatus.INIT).toBe(0);
17
- });
18
- });
@@ -1,23 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PaymentStatus = void 0;
15
- var PaymentStatus;
16
- (function (PaymentStatus) {
17
- PaymentStatus[PaymentStatus["INIT"] = 0] = "INIT";
18
- PaymentStatus[PaymentStatus["ISSUED"] = 1] = "ISSUED";
19
- PaymentStatus[PaymentStatus["OVERDUE"] = 2] = "OVERDUE";
20
- PaymentStatus[PaymentStatus["PARTIAL_PAID"] = 3] = "PARTIAL_PAID";
21
- PaymentStatus[PaymentStatus["FULLY_PAID"] = 4] = "FULLY_PAID";
22
- })(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
23
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports", "./payment_status"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- var payment_status_1 = require("./payment_status");
15
- test('init status exists', function () {
16
- expect(payment_status_1.PaymentStatus.INIT).toBe(0);
17
- });
18
- });
@@ -1,28 +0,0 @@
1
- "use strict";
2
- (function (factory) {
3
- if (typeof module === "object" && typeof module.exports === "object") {
4
- var v = factory(require, exports);
5
- if (v !== undefined)
6
- module.exports = v;
7
- }
8
- else if (typeof define === "function" && define.amd) {
9
- define(["require", "exports"], factory);
10
- }
11
- })(function (require, exports) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.ProductionStatus = void 0;
15
- var ProductionStatus;
16
- (function (ProductionStatus) {
17
- ProductionStatus[ProductionStatus["INIT"] = 0] = "INIT";
18
- ProductionStatus[ProductionStatus["REJECTED"] = 1] = "REJECTED";
19
- ProductionStatus[ProductionStatus["QUOTING"] = 2] = "QUOTING";
20
- ProductionStatus[ProductionStatus["ASSIGN_SENT"] = 3] = "ASSIGN_SENT";
21
- ProductionStatus[ProductionStatus["ASSIGN_DEADLINE_REACHED"] = 5] = "ASSIGN_DEADLINE_REACHED";
22
- ProductionStatus[ProductionStatus["QUESTIONING"] = 6] = "QUESTIONING";
23
- ProductionStatus[ProductionStatus["COMMENCED"] = 7] = "COMMENCED";
24
- ProductionStatus[ProductionStatus["FINISHED"] = 8] = "FINISHED";
25
- ProductionStatus[ProductionStatus["SHIPPED"] = 9] = "SHIPPED";
26
- ProductionStatus[ProductionStatus["COMPLETED"] = 10] = "COMPLETED";
27
- })(ProductionStatus = exports.ProductionStatus || (exports.ProductionStatus = {}));
28
- });