merchi_sdk_ts 0.0.1-a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/.babelrc +13 -0
  2. package/.eslintrc.cjs +43 -0
  3. package/LICENSE +21 -0
  4. package/README.md +2 -0
  5. package/dist/constants/auto_assign_production_on_actions.js +7 -0
  6. package/dist/constants/call_to_actions.js +15 -0
  7. package/dist/constants/call_to_actions.test.js +4 -0
  8. package/dist/constants/discount_types.js +4 -0
  9. package/dist/constants/discount_types.test.js +4 -0
  10. package/dist/constants/domain_types.js +13 -0
  11. package/dist/constants/domain_types.test.js +4 -0
  12. package/dist/constants/errors.js +32 -0
  13. package/dist/constants/event_types.js +6 -0
  14. package/dist/constants/event_types.test.js +4 -0
  15. package/dist/constants/field_types.js +14 -0
  16. package/dist/constants/field_types.test.js +4 -0
  17. package/dist/constants/input_types.js +14 -0
  18. package/dist/constants/input_types.test.js +4 -0
  19. package/dist/constants/inventory_status.test.js +4 -0
  20. package/dist/constants/inventory_statuses.js +7 -0
  21. package/dist/constants/invoice_types.js +6 -0
  22. package/dist/constants/invoice_types.test.js +4 -0
  23. package/dist/constants/item_types.js +6 -0
  24. package/dist/constants/item_types.test.js +4 -0
  25. package/dist/constants/job/drafting_status.js +8 -0
  26. package/dist/constants/job/drafting_status.test.js +4 -0
  27. package/dist/constants/job/payment_status.js +8 -0
  28. package/dist/constants/job/payment_status.test.js +4 -0
  29. package/dist/constants/job/production_status.js +13 -0
  30. package/dist/constants/job/production_status.test.js +4 -0
  31. package/dist/constants/job/shipment_status.js +12 -0
  32. package/dist/constants/job/shipment_status.test.js +4 -0
  33. package/dist/constants/job/supply_chain_request_status.js +7 -0
  34. package/dist/constants/job/supply_chain_request_status.test.js +4 -0
  35. package/dist/constants/job_priorities.js +7 -0
  36. package/dist/constants/job_priorities.test.js +4 -0
  37. package/dist/constants/job_status.js +50 -0
  38. package/dist/constants/job_status.test.js +4 -0
  39. package/dist/constants/job_types.js +16 -0
  40. package/dist/constants/job_types.test.js +4 -0
  41. package/dist/constants/notification_sections.js +14 -0
  42. package/dist/constants/notification_sections.test.js +4 -0
  43. package/dist/constants/notification_types.js +98 -0
  44. package/dist/constants/notification_types.test.js +4 -0
  45. package/dist/constants/notification_urgencies.js +7 -0
  46. package/dist/constants/notification_urgencies.test.js +4 -0
  47. package/dist/constants/payment_types.js +11 -0
  48. package/dist/constants/payment_types.test.js +4 -0
  49. package/dist/constants/platform.js +5 -0
  50. package/dist/constants/platform.test.js +8 -0
  51. package/dist/constants/product_types.js +26 -0
  52. package/dist/constants/product_types.test.js +4 -0
  53. package/dist/constants/rights.js +6 -0
  54. package/dist/constants/rights.test.js +4 -0
  55. package/dist/constants/robots_meta_directives.js +1 -0
  56. package/dist/constants/robots_meta_directives.test.js +4 -0
  57. package/dist/constants/roles.js +25 -0
  58. package/dist/constants/roles.test.js +4 -0
  59. package/dist/constants/shipment_companies.js +19 -0
  60. package/dist/constants/shipment_companies.test.js +4 -0
  61. package/dist/constants/shipment_services.js +4 -0
  62. package/dist/constants/shipment_services.test.js +4 -0
  63. package/dist/constants/system_roles.js +4 -0
  64. package/dist/constants/system_roles.test.js +4 -0
  65. package/dist/constants/theme_foundations.js +7 -0
  66. package/dist/constants/theme_foundations.test.js +4 -0
  67. package/dist/constants/theme_status.js +6 -0
  68. package/dist/constants/theme_status.test.js +4 -0
  69. package/dist/constants/user_types.js +18 -0
  70. package/dist/constants/user_types.test.js +4 -0
  71. package/dist/constants/white_label_accessibilities.js +6 -0
  72. package/dist/constants/white_label_accessibilities.test.js +4 -0
  73. package/dist/cookie.js +16 -0
  74. package/dist/cookie.test.js +12 -0
  75. package/dist/entities/address.js +166 -0
  76. package/dist/entities/address.test.js +6 -0
  77. package/dist/entities/assignment.js +185 -0
  78. package/dist/entities/assignment.test.js +38 -0
  79. package/dist/entities/automatic_payment_relationship.js +77 -0
  80. package/dist/entities/automatic_payment_relationship.test.js +6 -0
  81. package/dist/entities/backup.js +44 -0
  82. package/dist/entities/backup.test.js +6 -0
  83. package/dist/entities/bank.js +116 -0
  84. package/dist/entities/bank.test.js +6 -0
  85. package/dist/entities/cart.js +203 -0
  86. package/dist/entities/cart.test.js +52 -0
  87. package/dist/entities/cart_item.js +153 -0
  88. package/dist/entities/cart_item.test.js +34 -0
  89. package/dist/entities/cart_shipment_group.js +62 -0
  90. package/dist/entities/cart_shipment_quote.js +85 -0
  91. package/dist/entities/category.js +92 -0
  92. package/dist/entities/category.test.js +52 -0
  93. package/dist/entities/company.js +648 -0
  94. package/dist/entities/company.test.js +6 -0
  95. package/dist/entities/company_invitation.js +82 -0
  96. package/dist/entities/company_invitation.test.js +6 -0
  97. package/dist/entities/component.js +209 -0
  98. package/dist/entities/component.test.js +12 -0
  99. package/dist/entities/component_tag.js +50 -0
  100. package/dist/entities/component_tag.test.js +6 -0
  101. package/dist/entities/component_version.js +80 -0
  102. package/dist/entities/component_version.test.js +6 -0
  103. package/dist/entities/country_tax.js +110 -0
  104. package/dist/entities/country_tax.test.js +11 -0
  105. package/dist/entities/discount.js +77 -0
  106. package/dist/entities/discount.test.js +20 -0
  107. package/dist/entities/discount_group.js +74 -0
  108. package/dist/entities/discount_group.test.js +6 -0
  109. package/dist/entities/domain.js +535 -0
  110. package/dist/entities/domain.test.js +75 -0
  111. package/dist/entities/domain_invitation.js +90 -0
  112. package/dist/entities/domain_invitation.test.js +6 -0
  113. package/dist/entities/domain_tag.js +100 -0
  114. package/dist/entities/domain_tag.test.js +6 -0
  115. package/dist/entities/draft.js +180 -0
  116. package/dist/entities/draft.test.js +39 -0
  117. package/dist/entities/draft_comment.js +132 -0
  118. package/dist/entities/draft_comment.test.js +6 -0
  119. package/dist/entities/draft_template.js +105 -0
  120. package/dist/entities/draft_template.test.js +6 -0
  121. package/dist/entities/email_address.js +68 -0
  122. package/dist/entities/email_address.test.js +6 -0
  123. package/dist/entities/email_counter.js +56 -0
  124. package/dist/entities/email_counter.test.js +6 -0
  125. package/dist/entities/enrolled_domain.js +85 -0
  126. package/dist/entities/enrolled_domain.test.js +6 -0
  127. package/dist/entities/exchange_rate.js +62 -0
  128. package/dist/entities/exchange_rate.test.js +6 -0
  129. package/dist/entities/file.js +383 -0
  130. package/dist/entities/file.test.js +38 -0
  131. package/dist/entities/internal_tag.js +120 -0
  132. package/dist/entities/internal_tag.test.js +6 -0
  133. package/dist/entities/inventory.js +120 -0
  134. package/dist/entities/inventory.test.js +26 -0
  135. package/dist/entities/inventory_unit_variation.js +64 -0
  136. package/dist/entities/inventory_unit_variation.test.js +6 -0
  137. package/dist/entities/invoice.js +420 -0
  138. package/dist/entities/invoice.test.js +39 -0
  139. package/dist/entities/item.js +102 -0
  140. package/dist/entities/item.test.js +17 -0
  141. package/dist/entities/job.js +744 -0
  142. package/dist/entities/job.test.js +103 -0
  143. package/dist/entities/job_comment.js +120 -0
  144. package/dist/entities/job_comment.test.js +6 -0
  145. package/dist/entities/matching_inventory.js +77 -0
  146. package/dist/entities/menu.js +78 -0
  147. package/dist/entities/menu.test.js +6 -0
  148. package/dist/entities/menu_item.js +76 -0
  149. package/dist/entities/menu_item.test.js +6 -0
  150. package/dist/entities/notification.js +234 -0
  151. package/dist/entities/notification.test.js +6 -0
  152. package/dist/entities/page.js +84 -0
  153. package/dist/entities/page.test.js +6 -0
  154. package/dist/entities/payment.js +141 -0
  155. package/dist/entities/payment.test.js +18 -0
  156. package/dist/entities/payment_device.js +87 -0
  157. package/dist/entities/payment_device.test.js +6 -0
  158. package/dist/entities/phone_number.js +98 -0
  159. package/dist/entities/phone_number.test.js +6 -0
  160. package/dist/entities/product.js +806 -0
  161. package/dist/entities/product.test.js +811 -0
  162. package/dist/entities/production_comment.js +120 -0
  163. package/dist/entities/production_comment.test.js +6 -0
  164. package/dist/entities/quote.js +208 -0
  165. package/dist/entities/quote.test.js +107 -0
  166. package/dist/entities/quote_item.js +121 -0
  167. package/dist/entities/quote_item.test.js +56 -0
  168. package/dist/entities/seo_domain_page.js +82 -0
  169. package/dist/entities/seo_domain_page.test.js +6 -0
  170. package/dist/entities/session.js +77 -0
  171. package/dist/entities/session.test.js +6 -0
  172. package/dist/entities/shipment.js +401 -0
  173. package/dist/entities/shipment.test.js +28 -0
  174. package/dist/entities/shipment_item.js +49 -0
  175. package/dist/entities/shipment_item.test.js +6 -0
  176. package/dist/entities/shipment_item_fulfillment.js +48 -0
  177. package/dist/entities/shipment_item_fulfillment.test.js +6 -0
  178. package/dist/entities/shipment_method.js +146 -0
  179. package/dist/entities/shipment_method.test.js +6 -0
  180. package/dist/entities/shipment_method_variation.js +104 -0
  181. package/dist/entities/shipment_method_variation.test.js +6 -0
  182. package/dist/entities/short_url.js +95 -0
  183. package/dist/entities/short_url.test.js +6 -0
  184. package/dist/entities/subscription_plan.js +172 -0
  185. package/dist/entities/subscription_plan.test.js +6 -0
  186. package/dist/entities/supply_domain.js +73 -0
  187. package/dist/entities/supply_domain.test.js +6 -0
  188. package/dist/entities/system_role.js +50 -0
  189. package/dist/entities/system_role.test.js +6 -0
  190. package/dist/entities/theme.js +614 -0
  191. package/dist/entities/theme.test.js +39 -0
  192. package/dist/entities/theme_css_setting.js +67 -0
  193. package/dist/entities/theme_css_setting.test.js +6 -0
  194. package/dist/entities/user.js +749 -0
  195. package/dist/entities/user.test.js +157 -0
  196. package/dist/entities/user_company.js +78 -0
  197. package/dist/entities/user_company.test.js +6 -0
  198. package/dist/entities/variation.js +147 -0
  199. package/dist/entities/variation.test.js +6 -0
  200. package/dist/entities/variation_field.js +313 -0
  201. package/dist/entities/variation_field.test.js +69 -0
  202. package/dist/entities/variation_fields_option.js +190 -0
  203. package/dist/entities/variation_fields_option.test.js +47 -0
  204. package/dist/entities/variation_option.js +129 -0
  205. package/dist/entities/variation_option.test.js +6 -0
  206. package/dist/entities/variations_group.js +111 -0
  207. package/dist/entities/variations_group.test.js +6 -0
  208. package/dist/entity.js +888 -0
  209. package/dist/merchi.js +259 -0
  210. package/dist/merchi.test.js +35 -0
  211. package/dist/request.js +132 -0
  212. package/dist/request.test.js +46 -0
  213. package/dist/test_util.js +19 -0
  214. package/dist/toasts.js +27 -0
  215. package/dist/toasts.test.js +46 -0
  216. package/dist/util/float.js +24 -0
  217. package/dist/util/query_string.js +11 -0
  218. package/dist/util/query_string.test.js +6 -0
  219. package/dist/util/validation.js +3 -0
  220. package/dist/util/validation.test.js +12 -0
  221. package/dist/uuid.js +8 -0
  222. package/dist/uuid.test.js +13 -0
  223. package/jest.config.js +17 -0
  224. package/package.json +44 -0
  225. package/src/constants/auto_assign_production_on_actions.ts +6 -0
  226. package/src/constants/call_to_actions.test.ts +5 -0
  227. package/src/constants/call_to_actions.ts +14 -0
  228. package/src/constants/discount_types.test.ts +5 -0
  229. package/src/constants/discount_types.ts +3 -0
  230. package/src/constants/domain_types.test.ts +5 -0
  231. package/src/constants/domain_types.ts +12 -0
  232. package/src/constants/errors.ts +32 -0
  233. package/src/constants/event_types.test.ts +5 -0
  234. package/src/constants/event_types.ts +5 -0
  235. package/src/constants/field_types.test.ts +5 -0
  236. package/src/constants/field_types.ts +13 -0
  237. package/src/constants/input_types.test.ts +5 -0
  238. package/src/constants/input_types.ts +13 -0
  239. package/src/constants/inventory_status.test.ts +5 -0
  240. package/src/constants/inventory_statuses.ts +6 -0
  241. package/src/constants/invoice_types.test.ts +5 -0
  242. package/src/constants/invoice_types.ts +5 -0
  243. package/src/constants/item_types.test.ts +5 -0
  244. package/src/constants/item_types.ts +5 -0
  245. package/src/constants/job/drafting_status.test.ts +5 -0
  246. package/src/constants/job/drafting_status.ts +7 -0
  247. package/src/constants/job/payment_status.test.ts +5 -0
  248. package/src/constants/job/payment_status.ts +7 -0
  249. package/src/constants/job/production_status.test.ts +5 -0
  250. package/src/constants/job/production_status.ts +12 -0
  251. package/src/constants/job/shipment_status.test.ts +5 -0
  252. package/src/constants/job/shipment_status.ts +11 -0
  253. package/src/constants/job/supply_chain_request_status.test.ts +5 -0
  254. package/src/constants/job/supply_chain_request_status.ts +6 -0
  255. package/src/constants/job_priorities.test.ts +5 -0
  256. package/src/constants/job_priorities.ts +6 -0
  257. package/src/constants/job_status.test.ts +5 -0
  258. package/src/constants/job_status.ts +49 -0
  259. package/src/constants/job_types.test.ts +5 -0
  260. package/src/constants/job_types.ts +15 -0
  261. package/src/constants/notification_sections.test.ts +5 -0
  262. package/src/constants/notification_sections.ts +13 -0
  263. package/src/constants/notification_types.test.ts +5 -0
  264. package/src/constants/notification_types.ts +97 -0
  265. package/src/constants/notification_urgencies.test.ts +5 -0
  266. package/src/constants/notification_urgencies.ts +7 -0
  267. package/src/constants/payment_types.test.ts +5 -0
  268. package/src/constants/payment_types.ts +10 -0
  269. package/src/constants/platform.test.ts +15 -0
  270. package/src/constants/platform.ts +6 -0
  271. package/src/constants/product_types.test.ts +6 -0
  272. package/src/constants/product_types.ts +25 -0
  273. package/src/constants/rights.test.ts +5 -0
  274. package/src/constants/rights.ts +5 -0
  275. package/src/constants/robots_meta_directives.test.ts +5 -0
  276. package/src/constants/robots_meta_directives.ts +11 -0
  277. package/src/constants/roles.test.ts +5 -0
  278. package/src/constants/roles.ts +38 -0
  279. package/src/constants/shipment_companies.test.ts +5 -0
  280. package/src/constants/shipment_companies.ts +18 -0
  281. package/src/constants/shipment_services.test.ts +5 -0
  282. package/src/constants/shipment_services.ts +3 -0
  283. package/src/constants/system_roles.test.ts +5 -0
  284. package/src/constants/system_roles.ts +3 -0
  285. package/src/constants/theme_foundations.test.ts +5 -0
  286. package/src/constants/theme_foundations.ts +6 -0
  287. package/src/constants/theme_status.test.ts +5 -0
  288. package/src/constants/theme_status.ts +5 -0
  289. package/src/constants/user_types.test.ts +5 -0
  290. package/src/constants/user_types.ts +17 -0
  291. package/src/constants/white_label_accessibilities.test.ts +5 -0
  292. package/src/constants/white_label_accessibilities.ts +6 -0
  293. package/src/cookie.test.ts +11 -0
  294. package/src/cookie.ts +16 -0
  295. package/src/entities/address.test.ts +7 -0
  296. package/src/entities/address.ts +65 -0
  297. package/src/entities/assignment.test.ts +39 -0
  298. package/src/entities/assignment.ts +92 -0
  299. package/src/entities/automatic_payment_relationship.test.ts +8 -0
  300. package/src/entities/automatic_payment_relationship.ts +26 -0
  301. package/src/entities/backup.test.ts +7 -0
  302. package/src/entities/backup.ts +14 -0
  303. package/src/entities/bank.test.ts +7 -0
  304. package/src/entities/bank.ts +45 -0
  305. package/src/entities/cart.test.ts +50 -0
  306. package/src/entities/cart.ts +89 -0
  307. package/src/entities/cart_item.test.ts +33 -0
  308. package/src/entities/cart_item.ts +77 -0
  309. package/src/entities/cart_shipment_group.ts +21 -0
  310. package/src/entities/cart_shipment_quote.ts +33 -0
  311. package/src/entities/category.test.ts +57 -0
  312. package/src/entities/category.ts +37 -0
  313. package/src/entities/company.test.ts +7 -0
  314. package/src/entities/company.ts +275 -0
  315. package/src/entities/company_invitation.test.ts +7 -0
  316. package/src/entities/company_invitation.ts +33 -0
  317. package/src/entities/component.test.ts +14 -0
  318. package/src/entities/component.ts +92 -0
  319. package/src/entities/component_tag.test.ts +7 -0
  320. package/src/entities/component_tag.ts +17 -0
  321. package/src/entities/component_version.test.ts +7 -0
  322. package/src/entities/component_version.ts +30 -0
  323. package/src/entities/country_tax.test.ts +13 -0
  324. package/src/entities/country_tax.ts +46 -0
  325. package/src/entities/discount.test.ts +18 -0
  326. package/src/entities/discount.ts +34 -0
  327. package/src/entities/discount_group.test.ts +7 -0
  328. package/src/entities/discount_group.ts +28 -0
  329. package/src/entities/domain.test.ts +79 -0
  330. package/src/entities/domain.ts +246 -0
  331. package/src/entities/domain_invitation.test.ts +7 -0
  332. package/src/entities/domain_invitation.ts +36 -0
  333. package/src/entities/domain_tag.test.ts +7 -0
  334. package/src/entities/domain_tag.ts +42 -0
  335. package/src/entities/draft.test.ts +43 -0
  336. package/src/entities/draft.ts +88 -0
  337. package/src/entities/draft_comment.test.ts +7 -0
  338. package/src/entities/draft_comment.ts +54 -0
  339. package/src/entities/draft_template.test.ts +7 -0
  340. package/src/entities/draft_template.ts +40 -0
  341. package/src/entities/email_address.test.ts +7 -0
  342. package/src/entities/email_address.ts +24 -0
  343. package/src/entities/email_counter.test.ts +7 -0
  344. package/src/entities/email_counter.ts +20 -0
  345. package/src/entities/enrolled_domain.test.ts +7 -0
  346. package/src/entities/enrolled_domain.ts +40 -0
  347. package/src/entities/exchange_rate.test.ts +7 -0
  348. package/src/entities/exchange_rate.ts +22 -0
  349. package/src/entities/file.test.ts +43 -0
  350. package/src/entities/file.ts +172 -0
  351. package/src/entities/internal_tag.test.ts +7 -0
  352. package/src/entities/internal_tag.ts +51 -0
  353. package/src/entities/inventory.test.ts +28 -0
  354. package/src/entities/inventory.ts +56 -0
  355. package/src/entities/inventory_unit_variation.test.ts +7 -0
  356. package/src/entities/inventory_unit_variation.ts +29 -0
  357. package/src/entities/invoice.test.ts +43 -0
  358. package/src/entities/invoice.ts +179 -0
  359. package/src/entities/item.test.ts +19 -0
  360. package/src/entities/item.ts +44 -0
  361. package/src/entities/job.test.ts +95 -0
  362. package/src/entities/job.ts +349 -0
  363. package/src/entities/job_comment.test.ts +7 -0
  364. package/src/entities/job_comment.ts +50 -0
  365. package/src/entities/matching_inventory.ts +29 -0
  366. package/src/entities/menu.test.ts +7 -0
  367. package/src/entities/menu.ts +30 -0
  368. package/src/entities/menu_item.test.ts +7 -0
  369. package/src/entities/menu_item.ts +29 -0
  370. package/src/entities/notification.test.ts +7 -0
  371. package/src/entities/notification.ts +99 -0
  372. package/src/entities/page.test.ts +7 -0
  373. package/src/entities/page.ts +32 -0
  374. package/src/entities/payment.test.ts +19 -0
  375. package/src/entities/payment.ts +65 -0
  376. package/src/entities/payment_device.test.ts +7 -0
  377. package/src/entities/payment_device.ts +30 -0
  378. package/src/entities/phone_number.test.ts +7 -0
  379. package/src/entities/phone_number.ts +36 -0
  380. package/src/entities/product.test.ts +750 -0
  381. package/src/entities/product.ts +427 -0
  382. package/src/entities/production_comment.test.ts +7 -0
  383. package/src/entities/production_comment.ts +50 -0
  384. package/src/entities/quote.test.ts +98 -0
  385. package/src/entities/quote.ts +140 -0
  386. package/src/entities/quote_item.test.ts +50 -0
  387. package/src/entities/quote_item.ts +71 -0
  388. package/src/entities/seo_domain_page.test.ts +7 -0
  389. package/src/entities/seo_domain_page.ts +33 -0
  390. package/src/entities/session.test.ts +7 -0
  391. package/src/entities/session.ts +28 -0
  392. package/src/entities/shipment.test.ts +24 -0
  393. package/src/entities/shipment.ts +185 -0
  394. package/src/entities/shipment_item.test.ts +7 -0
  395. package/src/entities/shipment_item.ts +15 -0
  396. package/src/entities/shipment_item_fulfillment.test.ts +8 -0
  397. package/src/entities/shipment_item_fulfillment.ts +15 -0
  398. package/src/entities/shipment_method.test.ts +7 -0
  399. package/src/entities/shipment_method.ts +61 -0
  400. package/src/entities/shipment_method_variation.test.ts +7 -0
  401. package/src/entities/shipment_method_variation.ts +39 -0
  402. package/src/entities/short_url.test.ts +7 -0
  403. package/src/entities/short_url.ts +36 -0
  404. package/src/entities/subscription_plan.test.ts +7 -0
  405. package/src/entities/subscription_plan.ts +73 -0
  406. package/src/entities/supply_domain.test.ts +7 -0
  407. package/src/entities/supply_domain.ts +27 -0
  408. package/src/entities/system_role.test.ts +7 -0
  409. package/src/entities/system_role.ts +17 -0
  410. package/src/entities/theme.test.ts +38 -0
  411. package/src/entities/theme.ts +267 -0
  412. package/src/entities/theme_css_setting.test.ts +7 -0
  413. package/src/entities/theme_css_setting.ts +23 -0
  414. package/src/entities/user.test.ts +154 -0
  415. package/src/entities/user.ts +394 -0
  416. package/src/entities/user_company.test.ts +7 -0
  417. package/src/entities/user_company.ts +27 -0
  418. package/src/entities/variation.test.ts +7 -0
  419. package/src/entities/variation.ts +61 -0
  420. package/src/entities/variation_field.test.ts +76 -0
  421. package/src/entities/variation_field.ts +169 -0
  422. package/src/entities/variation_fields_option.test.ts +46 -0
  423. package/src/entities/variation_fields_option.ts +95 -0
  424. package/src/entities/variation_option.test.ts +7 -0
  425. package/src/entities/variation_option.ts +52 -0
  426. package/src/entities/variations_group.test.ts +7 -0
  427. package/src/entities/variations_group.ts +41 -0
  428. package/src/entity.ts +1002 -0
  429. package/src/merchi.test.ts +25 -0
  430. package/src/merchi.ts +379 -0
  431. package/src/request.test.ts +43 -0
  432. package/src/request.ts +124 -0
  433. package/src/test_util.ts +18 -0
  434. package/src/toasts.test.ts +38 -0
  435. package/src/toasts.ts +34 -0
  436. package/src/util/float.ts +12 -0
  437. package/src/util/query_string.test.ts +7 -0
  438. package/src/util/query_string.ts +11 -0
  439. package/src/util/validation.test.ts +16 -0
  440. package/src/util/validation.ts +2 -0
  441. package/src/uuid.test.ts +15 -0
  442. package/src/uuid.ts +8 -0
  443. package/tsconfig.json +23 -0
  444. package/webpack.config.cjs +27 -0
@@ -0,0 +1,120 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _Inventory;
3
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
4
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
18
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
19
+ import { Address } from './address';
20
+ import { Entity } from '../entity';
21
+ import { some } from 'lodash';
22
+ export var Inventory = (_dec = Inventory.property({
23
+ type: Date
24
+ }), _dec2 = Inventory.property(), _dec3 = Inventory.property(), _dec4 = Inventory.property(), _dec5 = Inventory.property(), _dec6 = Inventory.property(), _dec7 = Inventory.property({
25
+ arrayType: 'Product'
26
+ }), _dec8 = Inventory.property({
27
+ type: Address
28
+ }), _dec9 = Inventory.property({
29
+ arrayType: 'VariationsGroup'
30
+ }), _dec10 = Inventory.property({
31
+ arrayType: 'Job'
32
+ }), _dec11 = Inventory.property({
33
+ arrayType: 'InventoryUnitVariation'
34
+ }), (_class = (_Inventory = /*#__PURE__*/function (_Entity) {
35
+ _inherits(Inventory, _Entity);
36
+ function Inventory() {
37
+ var _this;
38
+ _classCallCheck(this, Inventory);
39
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
40
+ args[_key] = arguments[_key];
41
+ }
42
+ _this = _callSuper(this, Inventory, [].concat(args));
43
+ _initializerDefineProperty(_assertThisInitialized(_this), "archived", _descriptor, _assertThisInitialized(_this));
44
+ _initializerDefineProperty(_assertThisInitialized(_this), "id", _descriptor2, _assertThisInitialized(_this));
45
+ _initializerDefineProperty(_assertThisInitialized(_this), "quantity", _descriptor3, _assertThisInitialized(_this));
46
+ _initializerDefineProperty(_assertThisInitialized(_this), "name", _descriptor4, _assertThisInitialized(_this));
47
+ _initializerDefineProperty(_assertThisInitialized(_this), "notes", _descriptor5, _assertThisInitialized(_this));
48
+ _initializerDefineProperty(_assertThisInitialized(_this), "isOrphan", _descriptor6, _assertThisInitialized(_this));
49
+ _initializerDefineProperty(_assertThisInitialized(_this), "products", _descriptor7, _assertThisInitialized(_this));
50
+ _initializerDefineProperty(_assertThisInitialized(_this), "address", _descriptor8, _assertThisInitialized(_this));
51
+ _initializerDefineProperty(_assertThisInitialized(_this), "variationsGroups", _descriptor9, _assertThisInitialized(_this));
52
+ _initializerDefineProperty(_assertThisInitialized(_this), "jobs", _descriptor10, _assertThisInitialized(_this));
53
+ _initializerDefineProperty(_assertThisInitialized(_this), "inventoryUnitVariations", _descriptor11, _assertThisInitialized(_this));
54
+ _defineProperty(_assertThisInitialized(_this), "isVariationFieldOptionSelected", function (option) {
55
+ if (_this.inventoryUnitVariations === undefined) {
56
+ throw new Error('inventoryUnitVariations is undefined, did you forget to embed it?');
57
+ }
58
+ return some(_this.inventoryUnitVariations.map(function (v) {
59
+ return v.optionId() === option.id;
60
+ }));
61
+ });
62
+ return _this;
63
+ }
64
+ return _createClass(Inventory);
65
+ }(Entity), _defineProperty(_Inventory, "resourceName", 'inventories'), _defineProperty(_Inventory, "singularName", 'inventory'), _defineProperty(_Inventory, "pluralName", 'inventories'), _Inventory), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
66
+ configurable: true,
67
+ enumerable: true,
68
+ writable: true,
69
+ initializer: null
70
+ }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "id", [_dec2], {
71
+ configurable: true,
72
+ enumerable: true,
73
+ writable: true,
74
+ initializer: null
75
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "quantity", [_dec3], {
76
+ configurable: true,
77
+ enumerable: true,
78
+ writable: true,
79
+ initializer: null
80
+ }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "name", [_dec4], {
81
+ configurable: true,
82
+ enumerable: true,
83
+ writable: true,
84
+ initializer: null
85
+ }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "notes", [_dec5], {
86
+ configurable: true,
87
+ enumerable: true,
88
+ writable: true,
89
+ initializer: null
90
+ }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "isOrphan", [_dec6], {
91
+ configurable: true,
92
+ enumerable: true,
93
+ writable: true,
94
+ initializer: null
95
+ }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "products", [_dec7], {
96
+ configurable: true,
97
+ enumerable: true,
98
+ writable: true,
99
+ initializer: null
100
+ }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "address", [_dec8], {
101
+ configurable: true,
102
+ enumerable: true,
103
+ writable: true,
104
+ initializer: null
105
+ }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "variationsGroups", [_dec9], {
106
+ configurable: true,
107
+ enumerable: true,
108
+ writable: true,
109
+ initializer: null
110
+ }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "jobs", [_dec10], {
111
+ configurable: true,
112
+ enumerable: true,
113
+ writable: true,
114
+ initializer: null
115
+ }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "inventoryUnitVariations", [_dec11], {
116
+ configurable: true,
117
+ enumerable: true,
118
+ writable: true,
119
+ initializer: null
120
+ })), _class));
@@ -0,0 +1,26 @@
1
+ import { Merchi } from '../merchi';
2
+ test('can make Inventory', function () {
3
+ var merchi = new Merchi();
4
+ var inventory = new merchi.Inventory();
5
+ expect(inventory).toBeTruthy();
6
+ });
7
+ test('isVariationFieldOptionSelected function', function () {
8
+ var merchi = new Merchi();
9
+ var inventory = new merchi.Inventory();
10
+ var option1 = new merchi.VariationFieldsOption();
11
+ option1.id = 1;
12
+ var option2 = new merchi.VariationFieldsOption();
13
+ option2.id = 2;
14
+ expect(function () {
15
+ return inventory.isVariationFieldOptionSelected(option1);
16
+ }).toThrow();
17
+ var inventoryUnitVariation = new merchi.InventoryUnitVariation();
18
+ inventory.inventoryUnitVariations = [inventoryUnitVariation];
19
+ expect(function () {
20
+ return inventory.isVariationFieldOptionSelected(option1);
21
+ }).toThrow();
22
+ inventoryUnitVariation.variationFieldsOption = option2;
23
+ expect(inventory.isVariationFieldOptionSelected(option1)).toBe(false);
24
+ inventoryUnitVariation.variationFieldsOption = option1;
25
+ expect(inventory.isVariationFieldOptionSelected(option1)).toBe(true);
26
+ });
@@ -0,0 +1,64 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _InventoryUnitVariation;
3
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
4
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
18
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
19
+ import { Entity } from '../entity';
20
+ export var InventoryUnitVariation = (_dec = InventoryUnitVariation.property({
21
+ type: Date
22
+ }), _dec2 = InventoryUnitVariation.property(), _dec3 = InventoryUnitVariation.property(), _dec4 = InventoryUnitVariation.property(), (_class = (_InventoryUnitVariation = /*#__PURE__*/function (_Entity) {
23
+ _inherits(InventoryUnitVariation, _Entity);
24
+ function InventoryUnitVariation() {
25
+ var _this;
26
+ _classCallCheck(this, InventoryUnitVariation);
27
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28
+ args[_key] = arguments[_key];
29
+ }
30
+ _this = _callSuper(this, InventoryUnitVariation, [].concat(args));
31
+ _initializerDefineProperty(_assertThisInitialized(_this), "archived", _descriptor, _assertThisInitialized(_this));
32
+ _initializerDefineProperty(_assertThisInitialized(_this), "id", _descriptor2, _assertThisInitialized(_this));
33
+ _initializerDefineProperty(_assertThisInitialized(_this), "inventory", _descriptor3, _assertThisInitialized(_this));
34
+ _initializerDefineProperty(_assertThisInitialized(_this), "variationFieldsOption", _descriptor4, _assertThisInitialized(_this));
35
+ _defineProperty(_assertThisInitialized(_this), "optionId", function () {
36
+ if (_this.variationFieldsOption === undefined) {
37
+ throw new Error('variationFieldsOption is undefined, did you forget to embed it?');
38
+ }
39
+ return _this.variationFieldsOption.id;
40
+ });
41
+ return _this;
42
+ }
43
+ return _createClass(InventoryUnitVariation);
44
+ }(Entity), _defineProperty(_InventoryUnitVariation, "resourceName", 'inventory_unit_variations'), _defineProperty(_InventoryUnitVariation, "singularName", 'inventoryUnitVariation'), _defineProperty(_InventoryUnitVariation, "pluralName", 'inventoryUnitVariations'), _InventoryUnitVariation), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
45
+ configurable: true,
46
+ enumerable: true,
47
+ writable: true,
48
+ initializer: null
49
+ }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "id", [_dec2], {
50
+ configurable: true,
51
+ enumerable: true,
52
+ writable: true,
53
+ initializer: null
54
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "inventory", [_dec3], {
55
+ configurable: true,
56
+ enumerable: true,
57
+ writable: true,
58
+ initializer: null
59
+ }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "variationFieldsOption", [_dec4], {
60
+ configurable: true,
61
+ enumerable: true,
62
+ writable: true,
63
+ initializer: null
64
+ })), _class));
@@ -0,0 +1,6 @@
1
+ import { Merchi } from '../merchi';
2
+ test('can make InventoryUnitVariation', function () {
3
+ var merchi = new Merchi();
4
+ var inventoryUnitVariation = new merchi.InventoryUnitVariation();
5
+ expect(inventoryUnitVariation).toBeTruthy();
6
+ });
@@ -0,0 +1,420 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52, _Invoice;
3
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
4
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
18
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
19
+ import { Address } from './address';
20
+ import { Company } from './company';
21
+ import { EmailAddress } from './email_address';
22
+ import { Entity } from '../entity';
23
+ import { MerchiFile } from './file';
24
+ import { PhoneNumber } from './phone_number';
25
+ import { User } from './user';
26
+ export var Invoice = (_dec = Invoice.property({
27
+ type: Date
28
+ }), _dec2 = Invoice.property(), _dec3 = Invoice.property({
29
+ type: Date
30
+ }), _dec4 = Invoice.property({
31
+ type: Date
32
+ }), _dec5 = Invoice.property({
33
+ type: Date
34
+ }), _dec6 = Invoice.property(), _dec7 = Invoice.property(), _dec8 = Invoice.property(), _dec9 = Invoice.property(), _dec10 = Invoice.property(), _dec11 = Invoice.property({
35
+ type: String
36
+ }), _dec12 = Invoice.property({
37
+ type: Date
38
+ }), _dec13 = Invoice.property({
39
+ type: Number
40
+ }), _dec14 = Invoice.property({
41
+ type: Number
42
+ }), _dec15 = Invoice.property({
43
+ type: Number
44
+ }), _dec16 = Invoice.property({
45
+ type: Boolean
46
+ }), _dec17 = Invoice.property({
47
+ type: Boolean
48
+ }), _dec18 = Invoice.property({
49
+ type: Boolean
50
+ }), _dec19 = Invoice.property(), _dec20 = Invoice.property(), _dec21 = Invoice.property(), _dec22 = Invoice.property(), _dec23 = Invoice.property(), _dec24 = Invoice.property(), _dec25 = Invoice.property(), _dec26 = Invoice.property({
51
+ type: String
52
+ }), _dec27 = Invoice.property(), _dec28 = Invoice.property({
53
+ embeddedByDefault: false
54
+ }), _dec29 = Invoice.property({
55
+ embeddedByDefault: false
56
+ }), _dec30 = Invoice.property({
57
+ embeddedByDefault: false
58
+ }), _dec31 = Invoice.property({
59
+ type: User
60
+ }), _dec32 = Invoice.property({
61
+ type: User
62
+ }), _dec33 = Invoice.property(), _dec34 = Invoice.property({
63
+ type: Company
64
+ }), _dec35 = Company.property({
65
+ arrayType: 'Company'
66
+ }), _dec36 = Invoice.property({
67
+ type: Address
68
+ }), _dec37 = Invoice.property(), _dec38 = Invoice.property({
69
+ arrayType: 'Item'
70
+ }), _dec39 = Invoice.property({
71
+ type: MerchiFile
72
+ }), _dec40 = Invoice.property({
73
+ type: MerchiFile
74
+ }), _dec41 = Invoice.property({
75
+ type: PhoneNumber
76
+ }), _dec42 = Invoice.property({
77
+ type: EmailAddress
78
+ }), _dec43 = Invoice.property({
79
+ type: PhoneNumber
80
+ }), _dec44 = Invoice.property({
81
+ type: EmailAddress
82
+ }), _dec45 = Invoice.property({
83
+ arrayType: 'InternalTag'
84
+ }), _dec46 = Invoice.property({
85
+ arrayType: 'DomainTag'
86
+ }), _dec47 = Invoice.property({
87
+ arrayType: 'Shipment'
88
+ }), _dec48 = Invoice.property({
89
+ arrayType: 'Notification'
90
+ }), _dec49 = Invoice.property({
91
+ arrayType: 'Job'
92
+ }), _dec50 = Invoice.property({
93
+ arrayType: 'Quote'
94
+ }), _dec51 = Invoice.property(), _dec52 = Invoice.property({
95
+ arrayType: 'Payment'
96
+ }), (_class = (_Invoice = /*#__PURE__*/function (_Entity) {
97
+ _inherits(Invoice, _Entity);
98
+ function Invoice() {
99
+ var _this;
100
+ _classCallCheck(this, Invoice);
101
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
102
+ args[_key] = arguments[_key];
103
+ }
104
+ _this = _callSuper(this, Invoice, [].concat(args));
105
+ _initializerDefineProperty(_assertThisInitialized(_this), "archived", _descriptor, _assertThisInitialized(_this));
106
+ _initializerDefineProperty(_assertThisInitialized(_this), "id", _descriptor2, _assertThisInitialized(_this));
107
+ _initializerDefineProperty(_assertThisInitialized(_this), "creationDate", _descriptor3, _assertThisInitialized(_this));
108
+ _initializerDefineProperty(_assertThisInitialized(_this), "paymentDeadline", _descriptor4, _assertThisInitialized(_this));
109
+ _initializerDefineProperty(_assertThisInitialized(_this), "reminded", _descriptor5, _assertThisInitialized(_this));
110
+ _initializerDefineProperty(_assertThisInitialized(_this), "reminderMessage", _descriptor6, _assertThisInitialized(_this));
111
+ _initializerDefineProperty(_assertThisInitialized(_this), "shopifyOrderId", _descriptor7, _assertThisInitialized(_this));
112
+ _initializerDefineProperty(_assertThisInitialized(_this), "forceReminders", _descriptor8, _assertThisInitialized(_this));
113
+ _initializerDefineProperty(_assertThisInitialized(_this), "buySide", _descriptor9, _assertThisInitialized(_this));
114
+ _initializerDefineProperty(_assertThisInitialized(_this), "canAutoPay", _descriptor10, _assertThisInitialized(_this));
115
+ _initializerDefineProperty(_assertThisInitialized(_this), "note", _descriptor11, _assertThisInitialized(_this));
116
+ _initializerDefineProperty(_assertThisInitialized(_this), "terms", _descriptor12, _assertThisInitialized(_this));
117
+ _initializerDefineProperty(_assertThisInitialized(_this), "subtotalCost", _descriptor13, _assertThisInitialized(_this));
118
+ _initializerDefineProperty(_assertThisInitialized(_this), "taxAmount", _descriptor14, _assertThisInitialized(_this));
119
+ _initializerDefineProperty(_assertThisInitialized(_this), "totalCost", _descriptor15, _assertThisInitialized(_this));
120
+ _initializerDefineProperty(_assertThisInitialized(_this), "sendSms", _descriptor16, _assertThisInitialized(_this));
121
+ _initializerDefineProperty(_assertThisInitialized(_this), "sendEmail", _descriptor17, _assertThisInitialized(_this));
122
+ _initializerDefineProperty(_assertThisInitialized(_this), "unpaid", _descriptor18, _assertThisInitialized(_this));
123
+ _initializerDefineProperty(_assertThisInitialized(_this), "currency", _descriptor19, _assertThisInitialized(_this));
124
+ _initializerDefineProperty(_assertThisInitialized(_this), "acceptSquare", _descriptor20, _assertThisInitialized(_this));
125
+ _initializerDefineProperty(_assertThisInitialized(_this), "acceptStripe", _descriptor21, _assertThisInitialized(_this));
126
+ _initializerDefineProperty(_assertThisInitialized(_this), "acceptPaypal", _descriptor22, _assertThisInitialized(_this));
127
+ _initializerDefineProperty(_assertThisInitialized(_this), "acceptUtrust", _descriptor23, _assertThisInitialized(_this));
128
+ _initializerDefineProperty(_assertThisInitialized(_this), "acceptBankTransfer", _descriptor24, _assertThisInitialized(_this));
129
+ _initializerDefineProperty(_assertThisInitialized(_this), "acceptPhonePayment", _descriptor25, _assertThisInitialized(_this));
130
+ _initializerDefineProperty(_assertThisInitialized(_this), "invoiceToken", _descriptor26, _assertThisInitialized(_this));
131
+ _initializerDefineProperty(_assertThisInitialized(_this), "isRemindable", _descriptor27, _assertThisInitialized(_this));
132
+ _initializerDefineProperty(_assertThisInitialized(_this), "owedMoney", _descriptor28, _assertThisInitialized(_this));
133
+ _initializerDefineProperty(_assertThisInitialized(_this), "paidMoney", _descriptor29, _assertThisInitialized(_this));
134
+ _initializerDefineProperty(_assertThisInitialized(_this), "isCompletelyPaid", _descriptor30, _assertThisInitialized(_this));
135
+ _initializerDefineProperty(_assertThisInitialized(_this), "responsibleManager", _descriptor31, _assertThisInitialized(_this));
136
+ _initializerDefineProperty(_assertThisInitialized(_this), "creator", _descriptor32, _assertThisInitialized(_this));
137
+ _initializerDefineProperty(_assertThisInitialized(_this), "client", _descriptor33, _assertThisInitialized(_this));
138
+ _initializerDefineProperty(_assertThisInitialized(_this), "clientCompany", _descriptor34, _assertThisInitialized(_this));
139
+ _initializerDefineProperty(_assertThisInitialized(_this), "subscriptionCompanies", _descriptor35, _assertThisInitialized(_this));
140
+ _initializerDefineProperty(_assertThisInitialized(_this), "shipping", _descriptor36, _assertThisInitialized(_this));
141
+ _initializerDefineProperty(_assertThisInitialized(_this), "domain", _descriptor37, _assertThisInitialized(_this));
142
+ _initializerDefineProperty(_assertThisInitialized(_this), "items", _descriptor38, _assertThisInitialized(_this));
143
+ _initializerDefineProperty(_assertThisInitialized(_this), "pdf", _descriptor39, _assertThisInitialized(_this));
144
+ _initializerDefineProperty(_assertThisInitialized(_this), "receipt", _descriptor40, _assertThisInitialized(_this));
145
+ _initializerDefineProperty(_assertThisInitialized(_this), "clientPhone", _descriptor41, _assertThisInitialized(_this));
146
+ _initializerDefineProperty(_assertThisInitialized(_this), "clientEmail", _descriptor42, _assertThisInitialized(_this));
147
+ _initializerDefineProperty(_assertThisInitialized(_this), "clientCompanyPhone", _descriptor43, _assertThisInitialized(_this));
148
+ _initializerDefineProperty(_assertThisInitialized(_this), "clientCompanyEmail", _descriptor44, _assertThisInitialized(_this));
149
+ _initializerDefineProperty(_assertThisInitialized(_this), "internalTags", _descriptor45, _assertThisInitialized(_this));
150
+ _initializerDefineProperty(_assertThisInitialized(_this), "tags", _descriptor46, _assertThisInitialized(_this));
151
+ _initializerDefineProperty(_assertThisInitialized(_this), "shipments", _descriptor47, _assertThisInitialized(_this));
152
+ _initializerDefineProperty(_assertThisInitialized(_this), "notifications", _descriptor48, _assertThisInitialized(_this));
153
+ _initializerDefineProperty(_assertThisInitialized(_this), "jobs", _descriptor49, _assertThisInitialized(_this));
154
+ _initializerDefineProperty(_assertThisInitialized(_this), "quotes", _descriptor50, _assertThisInitialized(_this));
155
+ _initializerDefineProperty(_assertThisInitialized(_this), "cart", _descriptor51, _assertThisInitialized(_this));
156
+ _initializerDefineProperty(_assertThisInitialized(_this), "payments", _descriptor52, _assertThisInitialized(_this));
157
+ return _this;
158
+ }
159
+ return _createClass(Invoice);
160
+ }(Entity), _defineProperty(_Invoice, "resourceName", 'invoices'), _defineProperty(_Invoice, "singularName", 'invoice'), _defineProperty(_Invoice, "pluralName", 'invoices'), _Invoice), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "archived", [_dec], {
161
+ configurable: true,
162
+ enumerable: true,
163
+ writable: true,
164
+ initializer: null
165
+ }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "id", [_dec2], {
166
+ configurable: true,
167
+ enumerable: true,
168
+ writable: true,
169
+ initializer: null
170
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "creationDate", [_dec3], {
171
+ configurable: true,
172
+ enumerable: true,
173
+ writable: true,
174
+ initializer: null
175
+ }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "paymentDeadline", [_dec4], {
176
+ configurable: true,
177
+ enumerable: true,
178
+ writable: true,
179
+ initializer: null
180
+ }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "reminded", [_dec5], {
181
+ configurable: true,
182
+ enumerable: true,
183
+ writable: true,
184
+ initializer: null
185
+ }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "reminderMessage", [_dec6], {
186
+ configurable: true,
187
+ enumerable: true,
188
+ writable: true,
189
+ initializer: null
190
+ }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "shopifyOrderId", [_dec7], {
191
+ configurable: true,
192
+ enumerable: true,
193
+ writable: true,
194
+ initializer: null
195
+ }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "forceReminders", [_dec8], {
196
+ configurable: true,
197
+ enumerable: true,
198
+ writable: true,
199
+ initializer: null
200
+ }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "buySide", [_dec9], {
201
+ configurable: true,
202
+ enumerable: true,
203
+ writable: true,
204
+ initializer: null
205
+ }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "canAutoPay", [_dec10], {
206
+ configurable: true,
207
+ enumerable: true,
208
+ writable: true,
209
+ initializer: null
210
+ }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "note", [_dec11], {
211
+ configurable: true,
212
+ enumerable: true,
213
+ writable: true,
214
+ initializer: null
215
+ }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, "terms", [_dec12], {
216
+ configurable: true,
217
+ enumerable: true,
218
+ writable: true,
219
+ initializer: null
220
+ }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, "subtotalCost", [_dec13], {
221
+ configurable: true,
222
+ enumerable: true,
223
+ writable: true,
224
+ initializer: null
225
+ }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, "taxAmount", [_dec14], {
226
+ configurable: true,
227
+ enumerable: true,
228
+ writable: true,
229
+ initializer: null
230
+ }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, "totalCost", [_dec15], {
231
+ configurable: true,
232
+ enumerable: true,
233
+ writable: true,
234
+ initializer: null
235
+ }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, "sendSms", [_dec16], {
236
+ configurable: true,
237
+ enumerable: true,
238
+ writable: true,
239
+ initializer: null
240
+ }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, "sendEmail", [_dec17], {
241
+ configurable: true,
242
+ enumerable: true,
243
+ writable: true,
244
+ initializer: null
245
+ }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, "unpaid", [_dec18], {
246
+ configurable: true,
247
+ enumerable: true,
248
+ writable: true,
249
+ initializer: null
250
+ }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, "currency", [_dec19], {
251
+ configurable: true,
252
+ enumerable: true,
253
+ writable: true,
254
+ initializer: null
255
+ }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, "acceptSquare", [_dec20], {
256
+ configurable: true,
257
+ enumerable: true,
258
+ writable: true,
259
+ initializer: null
260
+ }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, "acceptStripe", [_dec21], {
261
+ configurable: true,
262
+ enumerable: true,
263
+ writable: true,
264
+ initializer: null
265
+ }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, "acceptPaypal", [_dec22], {
266
+ configurable: true,
267
+ enumerable: true,
268
+ writable: true,
269
+ initializer: null
270
+ }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, "acceptUtrust", [_dec23], {
271
+ configurable: true,
272
+ enumerable: true,
273
+ writable: true,
274
+ initializer: null
275
+ }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, "acceptBankTransfer", [_dec24], {
276
+ configurable: true,
277
+ enumerable: true,
278
+ writable: true,
279
+ initializer: null
280
+ }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, "acceptPhonePayment", [_dec25], {
281
+ configurable: true,
282
+ enumerable: true,
283
+ writable: true,
284
+ initializer: null
285
+ }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, "invoiceToken", [_dec26], {
286
+ configurable: true,
287
+ enumerable: true,
288
+ writable: true,
289
+ initializer: null
290
+ }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, "isRemindable", [_dec27], {
291
+ configurable: true,
292
+ enumerable: true,
293
+ writable: true,
294
+ initializer: null
295
+ }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, "owedMoney", [_dec28], {
296
+ configurable: true,
297
+ enumerable: true,
298
+ writable: true,
299
+ initializer: null
300
+ }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, "paidMoney", [_dec29], {
301
+ configurable: true,
302
+ enumerable: true,
303
+ writable: true,
304
+ initializer: null
305
+ }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, "isCompletelyPaid", [_dec30], {
306
+ configurable: true,
307
+ enumerable: true,
308
+ writable: true,
309
+ initializer: null
310
+ }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, "responsibleManager", [_dec31], {
311
+ configurable: true,
312
+ enumerable: true,
313
+ writable: true,
314
+ initializer: null
315
+ }), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, "creator", [_dec32], {
316
+ configurable: true,
317
+ enumerable: true,
318
+ writable: true,
319
+ initializer: null
320
+ }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, "client", [_dec33], {
321
+ configurable: true,
322
+ enumerable: true,
323
+ writable: true,
324
+ initializer: null
325
+ }), _descriptor34 = _applyDecoratedDescriptor(_class.prototype, "clientCompany", [_dec34], {
326
+ configurable: true,
327
+ enumerable: true,
328
+ writable: true,
329
+ initializer: null
330
+ }), _descriptor35 = _applyDecoratedDescriptor(_class.prototype, "subscriptionCompanies", [_dec35], {
331
+ configurable: true,
332
+ enumerable: true,
333
+ writable: true,
334
+ initializer: null
335
+ }), _descriptor36 = _applyDecoratedDescriptor(_class.prototype, "shipping", [_dec36], {
336
+ configurable: true,
337
+ enumerable: true,
338
+ writable: true,
339
+ initializer: null
340
+ }), _descriptor37 = _applyDecoratedDescriptor(_class.prototype, "domain", [_dec37], {
341
+ configurable: true,
342
+ enumerable: true,
343
+ writable: true,
344
+ initializer: null
345
+ }), _descriptor38 = _applyDecoratedDescriptor(_class.prototype, "items", [_dec38], {
346
+ configurable: true,
347
+ enumerable: true,
348
+ writable: true,
349
+ initializer: null
350
+ }), _descriptor39 = _applyDecoratedDescriptor(_class.prototype, "pdf", [_dec39], {
351
+ configurable: true,
352
+ enumerable: true,
353
+ writable: true,
354
+ initializer: null
355
+ }), _descriptor40 = _applyDecoratedDescriptor(_class.prototype, "receipt", [_dec40], {
356
+ configurable: true,
357
+ enumerable: true,
358
+ writable: true,
359
+ initializer: null
360
+ }), _descriptor41 = _applyDecoratedDescriptor(_class.prototype, "clientPhone", [_dec41], {
361
+ configurable: true,
362
+ enumerable: true,
363
+ writable: true,
364
+ initializer: null
365
+ }), _descriptor42 = _applyDecoratedDescriptor(_class.prototype, "clientEmail", [_dec42], {
366
+ configurable: true,
367
+ enumerable: true,
368
+ writable: true,
369
+ initializer: null
370
+ }), _descriptor43 = _applyDecoratedDescriptor(_class.prototype, "clientCompanyPhone", [_dec43], {
371
+ configurable: true,
372
+ enumerable: true,
373
+ writable: true,
374
+ initializer: null
375
+ }), _descriptor44 = _applyDecoratedDescriptor(_class.prototype, "clientCompanyEmail", [_dec44], {
376
+ configurable: true,
377
+ enumerable: true,
378
+ writable: true,
379
+ initializer: null
380
+ }), _descriptor45 = _applyDecoratedDescriptor(_class.prototype, "internalTags", [_dec45], {
381
+ configurable: true,
382
+ enumerable: true,
383
+ writable: true,
384
+ initializer: null
385
+ }), _descriptor46 = _applyDecoratedDescriptor(_class.prototype, "tags", [_dec46], {
386
+ configurable: true,
387
+ enumerable: true,
388
+ writable: true,
389
+ initializer: null
390
+ }), _descriptor47 = _applyDecoratedDescriptor(_class.prototype, "shipments", [_dec47], {
391
+ configurable: true,
392
+ enumerable: true,
393
+ writable: true,
394
+ initializer: null
395
+ }), _descriptor48 = _applyDecoratedDescriptor(_class.prototype, "notifications", [_dec48], {
396
+ configurable: true,
397
+ enumerable: true,
398
+ writable: true,
399
+ initializer: null
400
+ }), _descriptor49 = _applyDecoratedDescriptor(_class.prototype, "jobs", [_dec49], {
401
+ configurable: true,
402
+ enumerable: true,
403
+ writable: true,
404
+ initializer: null
405
+ }), _descriptor50 = _applyDecoratedDescriptor(_class.prototype, "quotes", [_dec50], {
406
+ configurable: true,
407
+ enumerable: true,
408
+ writable: true,
409
+ initializer: null
410
+ }), _descriptor51 = _applyDecoratedDescriptor(_class.prototype, "cart", [_dec51], {
411
+ configurable: true,
412
+ enumerable: true,
413
+ writable: true,
414
+ initializer: null
415
+ }), _descriptor52 = _applyDecoratedDescriptor(_class.prototype, "payments", [_dec52], {
416
+ configurable: true,
417
+ enumerable: true,
418
+ writable: true,
419
+ initializer: null
420
+ })), _class));