addio-admin-sdk 1.6.5

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 (854) hide show
  1. package/.babelrc +17 -0
  2. package/.env.dev +15 -0
  3. package/.github/workflows/publish_coverage.yaml +69 -0
  4. package/addio-sdk-doc.md +1380 -0
  5. package/changelog.md +353 -0
  6. package/dist/Interfaces/Address/index.d.ts +21 -0
  7. package/dist/Interfaces/Address/index.js +17 -0
  8. package/dist/Interfaces/Address/index.js.map +1 -0
  9. package/dist/Interfaces/Algolia/index.d.ts +145 -0
  10. package/dist/Interfaces/Algolia/index.js +3 -0
  11. package/dist/Interfaces/Algolia/index.js.map +1 -0
  12. package/dist/Interfaces/Attachement/index.d.ts +5 -0
  13. package/dist/Interfaces/Attachement/index.js +3 -0
  14. package/dist/Interfaces/Attachement/index.js.map +1 -0
  15. package/dist/Interfaces/Attribute/index.d.ts +47 -0
  16. package/dist/Interfaces/Attribute/index.js +11 -0
  17. package/dist/Interfaces/Attribute/index.js.map +1 -0
  18. package/dist/Interfaces/BGJob/index.d.ts +56 -0
  19. package/dist/Interfaces/BGJob/index.js +37 -0
  20. package/dist/Interfaces/BGJob/index.js.map +1 -0
  21. package/dist/Interfaces/BaseClass/index.d.ts +8 -0
  22. package/dist/Interfaces/BaseClass/index.js +3 -0
  23. package/dist/Interfaces/BaseClass/index.js.map +1 -0
  24. package/dist/Interfaces/Blog/IBlogArticle.d.ts +18 -0
  25. package/dist/Interfaces/Blog/IBlogArticle.js +3 -0
  26. package/dist/Interfaces/Blog/IBlogArticle.js.map +1 -0
  27. package/dist/Interfaces/Blog/IBlogAuthor.d.ts +7 -0
  28. package/dist/Interfaces/Blog/IBlogAuthor.js +3 -0
  29. package/dist/Interfaces/Blog/IBlogAuthor.js.map +1 -0
  30. package/dist/Interfaces/Blog/IBlogCategory.d.ts +9 -0
  31. package/dist/Interfaces/Blog/IBlogCategory.js +3 -0
  32. package/dist/Interfaces/Blog/IBlogCategory.js.map +1 -0
  33. package/dist/Interfaces/Blog/IBlogComment.d.ts +13 -0
  34. package/dist/Interfaces/Blog/IBlogComment.js +3 -0
  35. package/dist/Interfaces/Blog/IBlogComment.js.map +1 -0
  36. package/dist/Interfaces/Blog/IBlogKeywords.d.ts +9 -0
  37. package/dist/Interfaces/Blog/IBlogKeywords.js +3 -0
  38. package/dist/Interfaces/Blog/IBlogKeywords.js.map +1 -0
  39. package/dist/Interfaces/Booking/index.d.ts +68 -0
  40. package/dist/Interfaces/Booking/index.js +18 -0
  41. package/dist/Interfaces/Booking/index.js.map +1 -0
  42. package/dist/Interfaces/Brand/index.d.ts +13 -0
  43. package/dist/Interfaces/Brand/index.js +3 -0
  44. package/dist/Interfaces/Brand/index.js.map +1 -0
  45. package/dist/Interfaces/CMS/Creator/index.d.ts +12 -0
  46. package/dist/Interfaces/CMS/Creator/index.js +3 -0
  47. package/dist/Interfaces/CMS/Creator/index.js.map +1 -0
  48. package/dist/Interfaces/CMS/Reader/index.d.ts +47 -0
  49. package/dist/Interfaces/CMS/Reader/index.js +3 -0
  50. package/dist/Interfaces/CMS/Reader/index.js.map +1 -0
  51. package/dist/Interfaces/CMS/index.d.ts +25 -0
  52. package/dist/Interfaces/CMS/index.js +3 -0
  53. package/dist/Interfaces/CMS/index.js.map +1 -0
  54. package/dist/Interfaces/Cart/IPandaPayload.d.ts +64 -0
  55. package/dist/Interfaces/Cart/IPandaPayload.js +19 -0
  56. package/dist/Interfaces/Cart/IPandaPayload.js.map +1 -0
  57. package/dist/Interfaces/Cart/IPaymentCard.d.ts +22 -0
  58. package/dist/Interfaces/Cart/IPaymentCard.js +45 -0
  59. package/dist/Interfaces/Cart/IPaymentCard.js.map +1 -0
  60. package/dist/Interfaces/Cart/IPaypalPayload.d.ts +9 -0
  61. package/dist/Interfaces/Cart/IPaypalPayload.js +3 -0
  62. package/dist/Interfaces/Cart/IPaypalPayload.js.map +1 -0
  63. package/dist/Interfaces/Cart/IPaysafePayload.d.ts +72 -0
  64. package/dist/Interfaces/Cart/IPaysafePayload.js +3 -0
  65. package/dist/Interfaces/Cart/IPaysafePayload.js.map +1 -0
  66. package/dist/Interfaces/Cart/IStripePayload.d.ts +66 -0
  67. package/dist/Interfaces/Cart/IStripePayload.js +3 -0
  68. package/dist/Interfaces/Cart/IStripePayload.js.map +1 -0
  69. package/dist/Interfaces/Cart/index.d.ts +395 -0
  70. package/dist/Interfaces/Cart/index.js +182 -0
  71. package/dist/Interfaces/Cart/index.js.map +1 -0
  72. package/dist/Interfaces/Catalogue/index.d.ts +68 -0
  73. package/dist/Interfaces/Catalogue/index.js +38 -0
  74. package/dist/Interfaces/Catalogue/index.js.map +1 -0
  75. package/dist/Interfaces/Category/index.d.ts +26 -0
  76. package/dist/Interfaces/Category/index.js +3 -0
  77. package/dist/Interfaces/Category/index.js.map +1 -0
  78. package/dist/Interfaces/Chart/index.d.ts +11 -0
  79. package/dist/Interfaces/Chart/index.js +3 -0
  80. package/dist/Interfaces/Chart/index.js.map +1 -0
  81. package/dist/Interfaces/Class/index.d.ts +8 -0
  82. package/dist/Interfaces/Class/index.js +3 -0
  83. package/dist/Interfaces/Class/index.js.map +1 -0
  84. package/dist/Interfaces/Consent/index.d.ts +6 -0
  85. package/dist/Interfaces/Consent/index.js +3 -0
  86. package/dist/Interfaces/Consent/index.js.map +1 -0
  87. package/dist/Interfaces/Context/IContextProps.d.ts +5 -0
  88. package/dist/Interfaces/Context/IContextProps.js +3 -0
  89. package/dist/Interfaces/Context/IContextProps.js.map +1 -0
  90. package/dist/Interfaces/Context/IContextState.d.ts +15 -0
  91. package/dist/Interfaces/Context/IContextState.js +3 -0
  92. package/dist/Interfaces/Context/IContextState.js.map +1 -0
  93. package/dist/Interfaces/Customer/ICustomerBadge.d.ts +2 -0
  94. package/dist/Interfaces/Customer/ICustomerBadge.js +3 -0
  95. package/dist/Interfaces/Customer/ICustomerBadge.js.map +1 -0
  96. package/dist/Interfaces/Customer/ICustomerRating.d.ts +10 -0
  97. package/dist/Interfaces/Customer/ICustomerRating.js +3 -0
  98. package/dist/Interfaces/Customer/ICustomerRating.js.map +1 -0
  99. package/dist/Interfaces/Customer/index.d.ts +92 -0
  100. package/dist/Interfaces/Customer/index.js +159 -0
  101. package/dist/Interfaces/Customer/index.js.map +1 -0
  102. package/dist/Interfaces/Declination/index.d.ts +106 -0
  103. package/dist/Interfaces/Declination/index.js +65 -0
  104. package/dist/Interfaces/Declination/index.js.map +1 -0
  105. package/dist/Interfaces/Delivery/CalendarDay.d.ts +9 -0
  106. package/dist/Interfaces/Delivery/CalendarDay.js +12 -0
  107. package/dist/Interfaces/Delivery/CalendarDay.js.map +1 -0
  108. package/dist/Interfaces/Delivery/Driver.d.ts +7 -0
  109. package/dist/Interfaces/Delivery/Driver.js +10 -0
  110. package/dist/Interfaces/Delivery/Driver.js.map +1 -0
  111. package/dist/Interfaces/Delivery/PlannedOrder.d.ts +26 -0
  112. package/dist/Interfaces/Delivery/PlannedOrder.js +20 -0
  113. package/dist/Interfaces/Delivery/PlannedOrder.js.map +1 -0
  114. package/dist/Interfaces/Delivery/ScheduledRun.d.ts +14 -0
  115. package/dist/Interfaces/Delivery/ScheduledRun.js +15 -0
  116. package/dist/Interfaces/Delivery/ScheduledRun.js.map +1 -0
  117. package/dist/Interfaces/Delivery/Truck.d.ts +21 -0
  118. package/dist/Interfaces/Delivery/Truck.js +25 -0
  119. package/dist/Interfaces/Delivery/Truck.js.map +1 -0
  120. package/dist/Interfaces/Directions/index.d.ts +72 -0
  121. package/dist/Interfaces/Directions/index.js +3 -0
  122. package/dist/Interfaces/Directions/index.js.map +1 -0
  123. package/dist/Interfaces/Document/index.d.ts +8 -0
  124. package/dist/Interfaces/Document/index.js +3 -0
  125. package/dist/Interfaces/Document/index.js.map +1 -0
  126. package/dist/Interfaces/Elastic/index.d.ts +89 -0
  127. package/dist/Interfaces/Elastic/index.js +3 -0
  128. package/dist/Interfaces/Elastic/index.js.map +1 -0
  129. package/dist/Interfaces/Email/CustomGR/I3DPrintEmail.d.ts +11 -0
  130. package/dist/Interfaces/Email/CustomGR/I3DPrintEmail.js +3 -0
  131. package/dist/Interfaces/Email/CustomGR/I3DPrintEmail.js.map +1 -0
  132. package/dist/Interfaces/Email/CustomGR/IBorrowToolsEmail.d.ts +15 -0
  133. package/dist/Interfaces/Email/CustomGR/IBorrowToolsEmail.js +3 -0
  134. package/dist/Interfaces/Email/CustomGR/IBorrowToolsEmail.js.map +1 -0
  135. package/dist/Interfaces/Email/CustomGR/IPickupMaterialsEmail.d.ts +12 -0
  136. package/dist/Interfaces/Email/CustomGR/IPickupMaterialsEmail.js +3 -0
  137. package/dist/Interfaces/Email/CustomGR/IPickupMaterialsEmail.js.map +1 -0
  138. package/dist/Interfaces/Email/CustomGR/IPreMeetingFormEmail.d.ts +36 -0
  139. package/dist/Interfaces/Email/CustomGR/IPreMeetingFormEmail.js +3 -0
  140. package/dist/Interfaces/Email/CustomGR/IPreMeetingFormEmail.js.map +1 -0
  141. package/dist/Interfaces/Email/CustomGR/ISponsorRequestEmail.d.ts +12 -0
  142. package/dist/Interfaces/Email/CustomGR/ISponsorRequestEmail.js +3 -0
  143. package/dist/Interfaces/Email/CustomGR/ISponsorRequestEmail.js.map +1 -0
  144. package/dist/Interfaces/Email/CustomGR/ITransportEmail.d.ts +12 -0
  145. package/dist/Interfaces/Email/CustomGR/ITransportEmail.js +3 -0
  146. package/dist/Interfaces/Email/CustomGR/ITransportEmail.js.map +1 -0
  147. package/dist/Interfaces/Email/CustomGR/ITransportQuoteEmail.d.ts +12 -0
  148. package/dist/Interfaces/Email/CustomGR/ITransportQuoteEmail.js +3 -0
  149. package/dist/Interfaces/Email/CustomGR/ITransportQuoteEmail.js.map +1 -0
  150. package/dist/Interfaces/Email/CustomGR/IVegetalsEmail.d.ts +16 -0
  151. package/dist/Interfaces/Email/CustomGR/IVegetalsEmail.js +3 -0
  152. package/dist/Interfaces/Email/CustomGR/IVegetalsEmail.js.map +1 -0
  153. package/dist/Interfaces/Email/CustomGR/IWishlistEmail.d.ts +15 -0
  154. package/dist/Interfaces/Email/CustomGR/IWishlistEmail.js +3 -0
  155. package/dist/Interfaces/Email/CustomGR/IWishlistEmail.js.map +1 -0
  156. package/dist/Interfaces/Email/IAbandonnedCartEmail.d.ts +29 -0
  157. package/dist/Interfaces/Email/IAbandonnedCartEmail.js +3 -0
  158. package/dist/Interfaces/Email/IAbandonnedCartEmail.js.map +1 -0
  159. package/dist/Interfaces/Email/IAccountConfirmationEmail.d.ts +22 -0
  160. package/dist/Interfaces/Email/IAccountConfirmationEmail.js +3 -0
  161. package/dist/Interfaces/Email/IAccountConfirmationEmail.js.map +1 -0
  162. package/dist/Interfaces/Email/IApplicationEmail.d.ts +19 -0
  163. package/dist/Interfaces/Email/IApplicationEmail.js +3 -0
  164. package/dist/Interfaces/Email/IApplicationEmail.js.map +1 -0
  165. package/dist/Interfaces/Email/IBackInStockEmail.d.ts +21 -0
  166. package/dist/Interfaces/Email/IBackInStockEmail.js +3 -0
  167. package/dist/Interfaces/Email/IBackInStockEmail.js.map +1 -0
  168. package/dist/Interfaces/Email/IContactEmail.d.ts +20 -0
  169. package/dist/Interfaces/Email/IContactEmail.js +3 -0
  170. package/dist/Interfaces/Email/IContactEmail.js.map +1 -0
  171. package/dist/Interfaces/Email/ICustomerBookingAdminEmail.d.ts +15 -0
  172. package/dist/Interfaces/Email/ICustomerBookingAdminEmail.js +3 -0
  173. package/dist/Interfaces/Email/ICustomerBookingAdminEmail.js.map +1 -0
  174. package/dist/Interfaces/Email/ICustomerBookingEmail.d.ts +14 -0
  175. package/dist/Interfaces/Email/ICustomerBookingEmail.js +3 -0
  176. package/dist/Interfaces/Email/ICustomerBookingEmail.js.map +1 -0
  177. package/dist/Interfaces/Email/IEmail.d.ts +20 -0
  178. package/dist/Interfaces/Email/IEmail.js +70 -0
  179. package/dist/Interfaces/Email/IEmail.js.map +1 -0
  180. package/dist/Interfaces/Email/IOrderConfirmationEmail.d.ts +47 -0
  181. package/dist/Interfaces/Email/IOrderConfirmationEmail.js +3 -0
  182. package/dist/Interfaces/Email/IOrderConfirmationEmail.js.map +1 -0
  183. package/dist/Interfaces/Email/IPasswordResetEmail.d.ts +17 -0
  184. package/dist/Interfaces/Email/IPasswordResetEmail.js +3 -0
  185. package/dist/Interfaces/Email/IPasswordResetEmail.js.map +1 -0
  186. package/dist/Interfaces/Email/IPhotoShootEmail.d.ts +14 -0
  187. package/dist/Interfaces/Email/IPhotoShootEmail.js +3 -0
  188. package/dist/Interfaces/Email/IPhotoShootEmail.js.map +1 -0
  189. package/dist/Interfaces/Email/IPickupConfirmation.d.ts +23 -0
  190. package/dist/Interfaces/Email/IPickupConfirmation.js +3 -0
  191. package/dist/Interfaces/Email/IPickupConfirmation.js.map +1 -0
  192. package/dist/Interfaces/Email/IQuoteApprobationEmail.d.ts +29 -0
  193. package/dist/Interfaces/Email/IQuoteApprobationEmail.js +3 -0
  194. package/dist/Interfaces/Email/IQuoteApprobationEmail.js.map +1 -0
  195. package/dist/Interfaces/Email/IShippingConfirmation.d.ts +23 -0
  196. package/dist/Interfaces/Email/IShippingConfirmation.js +3 -0
  197. package/dist/Interfaces/Email/IShippingConfirmation.js.map +1 -0
  198. package/dist/Interfaces/Email/IWelcomeEmail.d.ts +19 -0
  199. package/dist/Interfaces/Email/IWelcomeEmail.js +3 -0
  200. package/dist/Interfaces/Email/IWelcomeEmail.js.map +1 -0
  201. package/dist/Interfaces/ExportSchema/index.d.ts +7 -0
  202. package/dist/Interfaces/ExportSchema/index.js +3 -0
  203. package/dist/Interfaces/ExportSchema/index.js.map +1 -0
  204. package/dist/Interfaces/ExternalService/BaseExternalService.d.ts +12 -0
  205. package/dist/Interfaces/ExternalService/BaseExternalService.js +3 -0
  206. package/dist/Interfaces/ExternalService/BaseExternalService.js.map +1 -0
  207. package/dist/Interfaces/ExternalService/index.d.ts +9 -0
  208. package/dist/Interfaces/ExternalService/index.js +3 -0
  209. package/dist/Interfaces/ExternalService/index.js.map +1 -0
  210. package/dist/Interfaces/G2/index.d.ts +286 -0
  211. package/dist/Interfaces/G2/index.js +32 -0
  212. package/dist/Interfaces/G2/index.js.map +1 -0
  213. package/dist/Interfaces/Indexed/Product/IIndexedLastSavedProduct.d.ts +20 -0
  214. package/dist/Interfaces/Indexed/Product/IIndexedLastSavedProduct.js +3 -0
  215. package/dist/Interfaces/Indexed/Product/IIndexedLastSavedProduct.js.map +1 -0
  216. package/dist/Interfaces/Indexed/Product/index.d.ts +91 -0
  217. package/dist/Interfaces/Indexed/Product/index.js +316 -0
  218. package/dist/Interfaces/Indexed/Product/index.js.map +1 -0
  219. package/dist/Interfaces/Inventory/index.d.ts +19 -0
  220. package/dist/Interfaces/Inventory/index.js +9 -0
  221. package/dist/Interfaces/Inventory/index.js.map +1 -0
  222. package/dist/Interfaces/Invoice/index.d.ts +4 -0
  223. package/dist/Interfaces/Invoice/index.js +3 -0
  224. package/dist/Interfaces/Invoice/index.js.map +1 -0
  225. package/dist/Interfaces/MarketplacePublication/MarketplaceOrderData.d.ts +3 -0
  226. package/dist/Interfaces/MarketplacePublication/MarketplaceOrderData.js +3 -0
  227. package/dist/Interfaces/MarketplacePublication/MarketplaceOrderData.js.map +1 -0
  228. package/dist/Interfaces/MarketplacePublication/index.d.ts +23 -0
  229. package/dist/Interfaces/MarketplacePublication/index.js +34 -0
  230. package/dist/Interfaces/MarketplacePublication/index.js.map +1 -0
  231. package/dist/Interfaces/Operations/ICreatedBy.d.ts +6 -0
  232. package/dist/Interfaces/Operations/ICreatedBy.js +3 -0
  233. package/dist/Interfaces/Operations/ICreatedBy.js.map +1 -0
  234. package/dist/Interfaces/Operations/IUpdate.d.ts +5 -0
  235. package/dist/Interfaces/Operations/IUpdate.js +3 -0
  236. package/dist/Interfaces/Operations/IUpdate.js.map +1 -0
  237. package/dist/Interfaces/Order/index.d.ts +4 -0
  238. package/dist/Interfaces/Order/index.js +3 -0
  239. package/dist/Interfaces/Order/index.js.map +1 -0
  240. package/dist/Interfaces/Org/IRelUser.d.ts +9 -0
  241. package/dist/Interfaces/Org/IRelUser.js +3 -0
  242. package/dist/Interfaces/Org/IRelUser.js.map +1 -0
  243. package/dist/Interfaces/Org/index.d.ts +29 -0
  244. package/dist/Interfaces/Org/index.js +13 -0
  245. package/dist/Interfaces/Org/index.js.map +1 -0
  246. package/dist/Interfaces/Payment/index.d.ts +11 -0
  247. package/dist/Interfaces/Payment/index.js +3 -0
  248. package/dist/Interfaces/Payment/index.js.map +1 -0
  249. package/dist/Interfaces/Product/IAttributeFamily.d.ts +6 -0
  250. package/dist/Interfaces/Product/IAttributeFamily.js +3 -0
  251. package/dist/Interfaces/Product/IAttributeFamily.js.map +1 -0
  252. package/dist/Interfaces/Product/IImportProduct.d.ts +42 -0
  253. package/dist/Interfaces/Product/IImportProduct.js +967 -0
  254. package/dist/Interfaces/Product/IImportProduct.js.map +1 -0
  255. package/dist/Interfaces/Product/IInventoryItem.d.ts +81 -0
  256. package/dist/Interfaces/Product/IInventoryItem.js +37 -0
  257. package/dist/Interfaces/Product/IInventoryItem.js.map +1 -0
  258. package/dist/Interfaces/Product/IPricing.d.ts +177 -0
  259. package/dist/Interfaces/Product/IPricing.js +175 -0
  260. package/dist/Interfaces/Product/IPricing.js.map +1 -0
  261. package/dist/Interfaces/Product/index.d.ts +121 -0
  262. package/dist/Interfaces/Product/index.js +57 -0
  263. package/dist/Interfaces/Product/index.js.map +1 -0
  264. package/dist/Interfaces/ProductAttribute/index.d.ts +11 -0
  265. package/dist/Interfaces/ProductAttribute/index.js +3 -0
  266. package/dist/Interfaces/ProductAttribute/index.js.map +1 -0
  267. package/dist/Interfaces/ProductGroup/index.d.ts +20 -0
  268. package/dist/Interfaces/ProductGroup/index.js +3 -0
  269. package/dist/Interfaces/ProductGroup/index.js.map +1 -0
  270. package/dist/Interfaces/PromiseToPurchase/BankType.d.ts +41 -0
  271. package/dist/Interfaces/PromiseToPurchase/BankType.js +43 -0
  272. package/dist/Interfaces/PromiseToPurchase/BankType.js.map +1 -0
  273. package/dist/Interfaces/PromiseToPurchase/IIndexedBankUsed.d.ts +33 -0
  274. package/dist/Interfaces/PromiseToPurchase/IIndexedBankUsed.js +16 -0
  275. package/dist/Interfaces/PromiseToPurchase/IIndexedBankUsed.js.map +1 -0
  276. package/dist/Interfaces/PromiseToPurchase/IIndexedCustomerPromiseToPurchase.d.ts +19 -0
  277. package/dist/Interfaces/PromiseToPurchase/IIndexedCustomerPromiseToPurchase.js +3 -0
  278. package/dist/Interfaces/PromiseToPurchase/IIndexedCustomerPromiseToPurchase.js.map +1 -0
  279. package/dist/Interfaces/PromiseToPurchase/index.d.ts +50 -0
  280. package/dist/Interfaces/PromiseToPurchase/index.js +14 -0
  281. package/dist/Interfaces/PromiseToPurchase/index.js.map +1 -0
  282. package/dist/Interfaces/PurchaseOrder/index.d.ts +17 -0
  283. package/dist/Interfaces/PurchaseOrder/index.js +3 -0
  284. package/dist/Interfaces/PurchaseOrder/index.js.map +1 -0
  285. package/dist/Interfaces/Query/IBrandQueryOptions.d.ts +11 -0
  286. package/dist/Interfaces/Query/IBrandQueryOptions.js +3 -0
  287. package/dist/Interfaces/Query/IBrandQueryOptions.js.map +1 -0
  288. package/dist/Interfaces/Query/ICategoryQueryOptions.d.ts +11 -0
  289. package/dist/Interfaces/Query/ICategoryQueryOptions.js +3 -0
  290. package/dist/Interfaces/Query/ICategoryQueryOptions.js.map +1 -0
  291. package/dist/Interfaces/Query/IProductQueryOptions.d.ts +15 -0
  292. package/dist/Interfaces/Query/IProductQueryOptions.js +3 -0
  293. package/dist/Interfaces/Query/IProductQueryOptions.js.map +1 -0
  294. package/dist/Interfaces/Quote/QuoteCMS/actions.d.ts +6 -0
  295. package/dist/Interfaces/Quote/QuoteCMS/actions.js +50 -0
  296. package/dist/Interfaces/Quote/QuoteCMS/actions.js.map +1 -0
  297. package/dist/Interfaces/Quote/QuoteCMS/defaults.d.ts +4 -0
  298. package/dist/Interfaces/Quote/QuoteCMS/defaults.js +32 -0
  299. package/dist/Interfaces/Quote/QuoteCMS/defaults.js.map +1 -0
  300. package/dist/Interfaces/Quote/QuoteCMS/enums.d.ts +50 -0
  301. package/dist/Interfaces/Quote/QuoteCMS/enums.js +61 -0
  302. package/dist/Interfaces/Quote/QuoteCMS/enums.js.map +1 -0
  303. package/dist/Interfaces/Quote/index.d.ts +5 -0
  304. package/dist/Interfaces/Quote/index.js +3 -0
  305. package/dist/Interfaces/Quote/index.js.map +1 -0
  306. package/dist/Interfaces/Rules/IDiscountRule.d.ts +131 -0
  307. package/dist/Interfaces/Rules/IDiscountRule.js +96 -0
  308. package/dist/Interfaces/Rules/IDiscountRule.js.map +1 -0
  309. package/dist/Interfaces/Services/IAddServiceResponse.d.ts +4 -0
  310. package/dist/Interfaces/Services/IAddServiceResponse.js +3 -0
  311. package/dist/Interfaces/Services/IAddServiceResponse.js.map +1 -0
  312. package/dist/Interfaces/Services/IService.d.ts +12 -0
  313. package/dist/Interfaces/Services/IService.js +3 -0
  314. package/dist/Interfaces/Services/IService.js.map +1 -0
  315. package/dist/Interfaces/Services/IServiceSecret.d.ts +8 -0
  316. package/dist/Interfaces/Services/IServiceSecret.js +3 -0
  317. package/dist/Interfaces/Services/IServiceSecret.js.map +1 -0
  318. package/dist/Interfaces/Shipping/Shipstation/carriers.d.ts +10 -0
  319. package/dist/Interfaces/Shipping/Shipstation/carriers.js +3 -0
  320. package/dist/Interfaces/Shipping/Shipstation/carriers.js.map +1 -0
  321. package/dist/Interfaces/Shipping/Shipstation/order.d.ts +227 -0
  322. package/dist/Interfaces/Shipping/Shipstation/order.js +3 -0
  323. package/dist/Interfaces/Shipping/Shipstation/order.js.map +1 -0
  324. package/dist/Interfaces/Shipping/Shipstation/quote.d.ts +31 -0
  325. package/dist/Interfaces/Shipping/Shipstation/quote.js +3 -0
  326. package/dist/Interfaces/Shipping/Shipstation/quote.js.map +1 -0
  327. package/dist/Interfaces/Shipping/Shiptime/order.d.ts +54 -0
  328. package/dist/Interfaces/Shipping/Shiptime/order.js +49 -0
  329. package/dist/Interfaces/Shipping/Shiptime/order.js.map +1 -0
  330. package/dist/Interfaces/Shipping/Shiptime/quote.d.ts +111 -0
  331. package/dist/Interfaces/Shipping/Shiptime/quote.js +3 -0
  332. package/dist/Interfaces/Shipping/Shiptime/quote.js.map +1 -0
  333. package/dist/Interfaces/Slider/GR.d.ts +130 -0
  334. package/dist/Interfaces/Slider/GR.js +272 -0
  335. package/dist/Interfaces/Slider/GR.js.map +1 -0
  336. package/dist/Interfaces/Slider/index.d.ts +14 -0
  337. package/dist/Interfaces/Slider/index.js +3 -0
  338. package/dist/Interfaces/Slider/index.js.map +1 -0
  339. package/dist/Interfaces/Space/IMember.d.ts +16 -0
  340. package/dist/Interfaces/Space/IMember.js +10 -0
  341. package/dist/Interfaces/Space/IMember.js.map +1 -0
  342. package/dist/Interfaces/Space/index.d.ts +311 -0
  343. package/dist/Interfaces/Space/index.js +78 -0
  344. package/dist/Interfaces/Space/index.js.map +1 -0
  345. package/dist/Interfaces/Specials/bb.d.ts +27 -0
  346. package/dist/Interfaces/Specials/bb.js +23 -0
  347. package/dist/Interfaces/Specials/bb.js.map +1 -0
  348. package/dist/Interfaces/Specials/gr.d.ts +61 -0
  349. package/dist/Interfaces/Specials/gr.js +3 -0
  350. package/dist/Interfaces/Specials/gr.js.map +1 -0
  351. package/dist/Interfaces/StockNotification/index.d.ts +7 -0
  352. package/dist/Interfaces/StockNotification/index.js +3 -0
  353. package/dist/Interfaces/StockNotification/index.js.map +1 -0
  354. package/dist/Interfaces/Store/index.d.ts +60 -0
  355. package/dist/Interfaces/Store/index.js +28 -0
  356. package/dist/Interfaces/Store/index.js.map +1 -0
  357. package/dist/Interfaces/Supplier/ICommand.d.ts +11 -0
  358. package/dist/Interfaces/Supplier/ICommand.js +3 -0
  359. package/dist/Interfaces/Supplier/ICommand.js.map +1 -0
  360. package/dist/Interfaces/Supplier/index.d.ts +36 -0
  361. package/dist/Interfaces/Supplier/index.js +25 -0
  362. package/dist/Interfaces/Supplier/index.js.map +1 -0
  363. package/dist/Interfaces/Tag/index.d.ts +18 -0
  364. package/dist/Interfaces/Tag/index.js +3 -0
  365. package/dist/Interfaces/Tag/index.js.map +1 -0
  366. package/dist/Interfaces/Tax/index.d.ts +12 -0
  367. package/dist/Interfaces/Tax/index.js +3 -0
  368. package/dist/Interfaces/Tax/index.js.map +1 -0
  369. package/dist/Interfaces/TransferRequest/index.d.ts +32 -0
  370. package/dist/Interfaces/TransferRequest/index.js +27 -0
  371. package/dist/Interfaces/TransferRequest/index.js.map +1 -0
  372. package/dist/Interfaces/Translation/index.d.ts +4 -0
  373. package/dist/Interfaces/Translation/index.js +3 -0
  374. package/dist/Interfaces/Translation/index.js.map +1 -0
  375. package/dist/Interfaces/Update/index.d.ts +10 -0
  376. package/dist/Interfaces/Update/index.js +3 -0
  377. package/dist/Interfaces/Update/index.js.map +1 -0
  378. package/dist/Interfaces/User/IUser.d.ts +29 -0
  379. package/dist/Interfaces/User/IUser.js +9 -0
  380. package/dist/Interfaces/User/IUser.js.map +1 -0
  381. package/dist/Interfaces/Version/index.d.ts +11 -0
  382. package/dist/Interfaces/Version/index.js +3 -0
  383. package/dist/Interfaces/Version/index.js.map +1 -0
  384. package/dist/Interfaces/Wishlist/index.d.ts +7 -0
  385. package/dist/Interfaces/Wishlist/index.js +3 -0
  386. package/dist/Interfaces/Wishlist/index.js.map +1 -0
  387. package/dist/constants/Interfaces/IBaseApi.d.ts +15 -0
  388. package/dist/constants/Interfaces/IBaseApi.js +3 -0
  389. package/dist/constants/Interfaces/IBaseApi.js.map +1 -0
  390. package/dist/constants/Interfaces/IEndpointResult.d.ts +9 -0
  391. package/dist/constants/Interfaces/IEndpointResult.js +3 -0
  392. package/dist/constants/Interfaces/IEndpointResult.js.map +1 -0
  393. package/dist/constants/enums.d.ts +6 -0
  394. package/dist/constants/enums.js +11 -0
  395. package/dist/constants/enums.js.map +1 -0
  396. package/dist/constants/errors.d.ts +27 -0
  397. package/dist/constants/errors.js +33 -0
  398. package/dist/constants/errors.js.map +1 -0
  399. package/dist/constants/version.d.ts +2 -0
  400. package/dist/constants/version.js +6 -0
  401. package/dist/constants/version.js.map +1 -0
  402. package/dist/index.d.ts +32 -0
  403. package/dist/index.js +417 -0
  404. package/dist/index.js.map +1 -0
  405. package/dist/lib/Attribute/index.d.ts +14 -0
  406. package/dist/lib/Attribute/index.js +250 -0
  407. package/dist/lib/Attribute/index.js.map +1 -0
  408. package/dist/lib/BGJob/index.d.ts +9 -0
  409. package/dist/lib/BGJob/index.js +377 -0
  410. package/dist/lib/BGJob/index.js.map +1 -0
  411. package/dist/lib/BackgroundWorker/index.d.ts +34 -0
  412. package/dist/lib/BackgroundWorker/index.js +73 -0
  413. package/dist/lib/BackgroundWorker/index.js.map +1 -0
  414. package/dist/lib/Blog/BlogArticle.d.ts +5 -0
  415. package/dist/lib/Blog/BlogArticle.js +29 -0
  416. package/dist/lib/Blog/BlogArticle.js.map +1 -0
  417. package/dist/lib/Blog/BlogAuthor.d.ts +5 -0
  418. package/dist/lib/Blog/BlogAuthor.js +29 -0
  419. package/dist/lib/Blog/BlogAuthor.js.map +1 -0
  420. package/dist/lib/Blog/BlogCategory.d.ts +5 -0
  421. package/dist/lib/Blog/BlogCategory.js +29 -0
  422. package/dist/lib/Blog/BlogCategory.js.map +1 -0
  423. package/dist/lib/Blog/BlogKeyword.d.ts +5 -0
  424. package/dist/lib/Blog/BlogKeyword.js +29 -0
  425. package/dist/lib/Blog/BlogKeyword.js.map +1 -0
  426. package/dist/lib/Booking/index.d.ts +63 -0
  427. package/dist/lib/Booking/index.js +814 -0
  428. package/dist/lib/Booking/index.js.map +1 -0
  429. package/dist/lib/Brand/index.d.ts +17 -0
  430. package/dist/lib/Brand/index.js +274 -0
  431. package/dist/lib/Brand/index.js.map +1 -0
  432. package/dist/lib/CMS/Creator/index.d.ts +38 -0
  433. package/dist/lib/CMS/Creator/index.js +625 -0
  434. package/dist/lib/CMS/Creator/index.js.map +1 -0
  435. package/dist/lib/CMS/Reader/index.d.ts +64 -0
  436. package/dist/lib/CMS/Reader/index.js +1174 -0
  437. package/dist/lib/CMS/Reader/index.js.map +1 -0
  438. package/dist/lib/CMS/Utils.d.ts +1 -0
  439. package/dist/lib/CMS/Utils.js +30 -0
  440. package/dist/lib/CMS/Utils.js.map +1 -0
  441. package/dist/lib/CMS/Writer/index.d.ts +6 -0
  442. package/dist/lib/CMS/Writer/index.js +91 -0
  443. package/dist/lib/CMS/Writer/index.js.map +1 -0
  444. package/dist/lib/Cart/index.d.ts +184 -0
  445. package/dist/lib/Cart/index.js +3644 -0
  446. package/dist/lib/Cart/index.js.map +1 -0
  447. package/dist/lib/Catalogue/index.d.ts +11 -0
  448. package/dist/lib/Catalogue/index.js +205 -0
  449. package/dist/lib/Catalogue/index.js.map +1 -0
  450. package/dist/lib/Category/index.d.ts +26 -0
  451. package/dist/lib/Category/index.js +358 -0
  452. package/dist/lib/Category/index.js.map +1 -0
  453. package/dist/lib/Class/index.d.ts +12 -0
  454. package/dist/lib/Class/index.js +160 -0
  455. package/dist/lib/Class/index.js.map +1 -0
  456. package/dist/lib/Consent/index.d.ts +4 -0
  457. package/dist/lib/Consent/index.js +80 -0
  458. package/dist/lib/Consent/index.js.map +1 -0
  459. package/dist/lib/Customer/index.d.ts +10 -0
  460. package/dist/lib/Customer/index.js +141 -0
  461. package/dist/lib/Customer/index.js.map +1 -0
  462. package/dist/lib/Declination/index.d.ts +10 -0
  463. package/dist/lib/Declination/index.js +86 -0
  464. package/dist/lib/Declination/index.js.map +1 -0
  465. package/dist/lib/Delivery/CalendarDay.d.ts +10 -0
  466. package/dist/lib/Delivery/CalendarDay.js +149 -0
  467. package/dist/lib/Delivery/CalendarDay.js.map +1 -0
  468. package/dist/lib/Delivery/Dispatch.d.ts +56 -0
  469. package/dist/lib/Delivery/Dispatch.js +1055 -0
  470. package/dist/lib/Delivery/Dispatch.js.map +1 -0
  471. package/dist/lib/Delivery/Driver.d.ts +12 -0
  472. package/dist/lib/Delivery/Driver.js +153 -0
  473. package/dist/lib/Delivery/Driver.js.map +1 -0
  474. package/dist/lib/Delivery/PlannedOrder.d.ts +15 -0
  475. package/dist/lib/Delivery/PlannedOrder.js +237 -0
  476. package/dist/lib/Delivery/PlannedOrder.js.map +1 -0
  477. package/dist/lib/Delivery/ScheduledRun.d.ts +12 -0
  478. package/dist/lib/Delivery/ScheduledRun.js +165 -0
  479. package/dist/lib/Delivery/ScheduledRun.js.map +1 -0
  480. package/dist/lib/Delivery/Truck.d.ts +12 -0
  481. package/dist/lib/Delivery/Truck.js +158 -0
  482. package/dist/lib/Delivery/Truck.js.map +1 -0
  483. package/dist/lib/Discount/index.d.ts +18 -0
  484. package/dist/lib/Discount/index.js +760 -0
  485. package/dist/lib/Discount/index.js.map +1 -0
  486. package/dist/lib/ElasticSearch/index.d.ts +8 -0
  487. package/dist/lib/ElasticSearch/index.js +102 -0
  488. package/dist/lib/ElasticSearch/index.js.map +1 -0
  489. package/dist/lib/Email/AbandonedCartEmail.d.ts +8 -0
  490. package/dist/lib/Email/AbandonedCartEmail.js +79 -0
  491. package/dist/lib/Email/AbandonedCartEmail.js.map +1 -0
  492. package/dist/lib/Email/AccountConfirmationEmail.d.ts +11 -0
  493. package/dist/lib/Email/AccountConfirmationEmail.js +96 -0
  494. package/dist/lib/Email/AccountConfirmationEmail.js.map +1 -0
  495. package/dist/lib/Email/AdminOrderConfirmationEmail.d.ts +8 -0
  496. package/dist/lib/Email/AdminOrderConfirmationEmail.js +79 -0
  497. package/dist/lib/Email/AdminOrderConfirmationEmail.js.map +1 -0
  498. package/dist/lib/Email/ApplicationEmail.d.ts +8 -0
  499. package/dist/lib/Email/ApplicationEmail.js +79 -0
  500. package/dist/lib/Email/ApplicationEmail.js.map +1 -0
  501. package/dist/lib/Email/BackInStockEmail.d.ts +8 -0
  502. package/dist/lib/Email/BackInStockEmail.js +79 -0
  503. package/dist/lib/Email/BackInStockEmail.js.map +1 -0
  504. package/dist/lib/Email/ContactEmail.d.ts +8 -0
  505. package/dist/lib/Email/ContactEmail.js +79 -0
  506. package/dist/lib/Email/ContactEmail.js.map +1 -0
  507. package/dist/lib/Email/CustomerBookingAdminEmail.d.ts +8 -0
  508. package/dist/lib/Email/CustomerBookingAdminEmail.js +79 -0
  509. package/dist/lib/Email/CustomerBookingAdminEmail.js.map +1 -0
  510. package/dist/lib/Email/CustomerBookingEmail.d.ts +8 -0
  511. package/dist/lib/Email/CustomerBookingEmail.js +79 -0
  512. package/dist/lib/Email/CustomerBookingEmail.js.map +1 -0
  513. package/dist/lib/Email/OrderConfirmationEmail.d.ts +8 -0
  514. package/dist/lib/Email/OrderConfirmationEmail.js +79 -0
  515. package/dist/lib/Email/OrderConfirmationEmail.js.map +1 -0
  516. package/dist/lib/Email/OrderDenounciationEmail.d.ts +8 -0
  517. package/dist/lib/Email/OrderDenounciationEmail.js +79 -0
  518. package/dist/lib/Email/OrderDenounciationEmail.js.map +1 -0
  519. package/dist/lib/Email/OrderSampleEmail.d.ts +8 -0
  520. package/dist/lib/Email/OrderSampleEmail.js +79 -0
  521. package/dist/lib/Email/OrderSampleEmail.js.map +1 -0
  522. package/dist/lib/Email/OtherTypeEmails.d.ts +8 -0
  523. package/dist/lib/Email/OtherTypeEmails.js +91 -0
  524. package/dist/lib/Email/OtherTypeEmails.js.map +1 -0
  525. package/dist/lib/Email/PasswordResetEmail.d.ts +8 -0
  526. package/dist/lib/Email/PasswordResetEmail.js +79 -0
  527. package/dist/lib/Email/PasswordResetEmail.js.map +1 -0
  528. package/dist/lib/Email/PhotoShootEmail.d.ts +8 -0
  529. package/dist/lib/Email/PhotoShootEmail.js +79 -0
  530. package/dist/lib/Email/PhotoShootEmail.js.map +1 -0
  531. package/dist/lib/Email/PickUpConfirmation.d.ts +8 -0
  532. package/dist/lib/Email/PickUpConfirmation.js +79 -0
  533. package/dist/lib/Email/PickUpConfirmation.js.map +1 -0
  534. package/dist/lib/Email/QuoteApprobationEmail.d.ts +8 -0
  535. package/dist/lib/Email/QuoteApprobationEmail.js +79 -0
  536. package/dist/lib/Email/QuoteApprobationEmail.js.map +1 -0
  537. package/dist/lib/Email/ShippingConfirmation.d.ts +8 -0
  538. package/dist/lib/Email/ShippingConfirmation.js +79 -0
  539. package/dist/lib/Email/ShippingConfirmation.js.map +1 -0
  540. package/dist/lib/Email/WelcomeEmail.d.ts +8 -0
  541. package/dist/lib/Email/WelcomeEmail.js +79 -0
  542. package/dist/lib/Email/WelcomeEmail.js.map +1 -0
  543. package/dist/lib/Email/index.d.ts +8 -0
  544. package/dist/lib/Email/index.js +83 -0
  545. package/dist/lib/Email/index.js.map +1 -0
  546. package/dist/lib/ExternalService/Ebay.d.ts +63 -0
  547. package/dist/lib/ExternalService/Ebay.js +186 -0
  548. package/dist/lib/ExternalService/Ebay.js.map +1 -0
  549. package/dist/lib/ExternalService/index.d.ts +5 -0
  550. package/dist/lib/ExternalService/index.js +29 -0
  551. package/dist/lib/ExternalService/index.js.map +1 -0
  552. package/dist/lib/Indexed/IndexedCart.d.ts +13 -0
  553. package/dist/lib/Indexed/IndexedCart.js +195 -0
  554. package/dist/lib/Indexed/IndexedCart.js.map +1 -0
  555. package/dist/lib/Indexed/Product.d.ts +17 -0
  556. package/dist/lib/Indexed/Product.js +117 -0
  557. package/dist/lib/Indexed/Product.js.map +1 -0
  558. package/dist/lib/Inventory/__tests__.d.ts +1 -0
  559. package/dist/lib/Inventory/__tests__.js +199 -0
  560. package/dist/lib/Inventory/__tests__.js.map +1 -0
  561. package/dist/lib/Inventory/index.d.ts +31 -0
  562. package/dist/lib/Inventory/index.js +561 -0
  563. package/dist/lib/Inventory/index.js.map +1 -0
  564. package/dist/lib/Invoice/index.d.ts +5 -0
  565. package/dist/lib/Invoice/index.js +29 -0
  566. package/dist/lib/Invoice/index.js.map +1 -0
  567. package/dist/lib/MarketplacePublication/index.d.ts +9 -0
  568. package/dist/lib/MarketplacePublication/index.js +222 -0
  569. package/dist/lib/MarketplacePublication/index.js.map +1 -0
  570. package/dist/lib/MongoDB/BaseAPI.d.ts +18 -0
  571. package/dist/lib/MongoDB/BaseAPI.js +309 -0
  572. package/dist/lib/MongoDB/BaseAPI.js.map +1 -0
  573. package/dist/lib/Order/index.d.ts +7 -0
  574. package/dist/lib/Order/index.js +63 -0
  575. package/dist/lib/Order/index.js.map +1 -0
  576. package/dist/lib/Org/index.d.ts +26 -0
  577. package/dist/lib/Org/index.js +287 -0
  578. package/dist/lib/Org/index.js.map +1 -0
  579. package/dist/lib/PandaPay/index.d.ts +16 -0
  580. package/dist/lib/PandaPay/index.js +220 -0
  581. package/dist/lib/PandaPay/index.js.map +1 -0
  582. package/dist/lib/Paysafe/index.d.ts +11 -0
  583. package/dist/lib/Paysafe/index.js +101 -0
  584. package/dist/lib/Paysafe/index.js.map +1 -0
  585. package/dist/lib/Product/index.d.ts +143 -0
  586. package/dist/lib/Product/index.js +1325 -0
  587. package/dist/lib/Product/index.js.map +1 -0
  588. package/dist/lib/ProductAttribute/index.d.ts +15 -0
  589. package/dist/lib/ProductAttribute/index.js +115 -0
  590. package/dist/lib/ProductAttribute/index.js.map +1 -0
  591. package/dist/lib/ProductGroup/index.d.ts +49 -0
  592. package/dist/lib/ProductGroup/index.js +141 -0
  593. package/dist/lib/ProductGroup/index.js.map +1 -0
  594. package/dist/lib/PromiseToPurchase/index.d.ts +35 -0
  595. package/dist/lib/PromiseToPurchase/index.js +475 -0
  596. package/dist/lib/PromiseToPurchase/index.js.map +1 -0
  597. package/dist/lib/PurchaseOrder/index.d.ts +9 -0
  598. package/dist/lib/PurchaseOrder/index.js +73 -0
  599. package/dist/lib/PurchaseOrder/index.js.map +1 -0
  600. package/dist/lib/Queue/index.d.ts +40 -0
  601. package/dist/lib/Queue/index.js +255 -0
  602. package/dist/lib/Queue/index.js.map +1 -0
  603. package/dist/lib/Quote/index.d.ts +204 -0
  604. package/dist/lib/Quote/index.js +721 -0
  605. package/dist/lib/Quote/index.js.map +1 -0
  606. package/dist/lib/Service/Enum/ServiceEnum.d.ts +3 -0
  607. package/dist/lib/Service/Enum/ServiceEnum.js +8 -0
  608. package/dist/lib/Service/Enum/ServiceEnum.js.map +1 -0
  609. package/dist/lib/Service/index.d.ts +5 -0
  610. package/dist/lib/Service/index.js +58 -0
  611. package/dist/lib/Service/index.js.map +1 -0
  612. package/dist/lib/Shipment/index.d.ts +28 -0
  613. package/dist/lib/Shipment/index.js +560 -0
  614. package/dist/lib/Shipment/index.js.map +1 -0
  615. package/dist/lib/Slider/index.d.ts +18 -0
  616. package/dist/lib/Slider/index.js +233 -0
  617. package/dist/lib/Slider/index.js.map +1 -0
  618. package/dist/lib/Space/index.d.ts +758 -0
  619. package/dist/lib/Space/index.js +6692 -0
  620. package/dist/lib/Space/index.js.map +1 -0
  621. package/dist/lib/SpecialOPS/Cases/BB.d.ts +8 -0
  622. package/dist/lib/SpecialOPS/Cases/BB.js +24 -0
  623. package/dist/lib/SpecialOPS/Cases/BB.js.map +1 -0
  624. package/dist/lib/SpecialOPS/index.d.ts +14 -0
  625. package/dist/lib/SpecialOPS/index.js +21 -0
  626. package/dist/lib/SpecialOPS/index.js.map +1 -0
  627. package/dist/lib/StockNotification/index.d.ts +4 -0
  628. package/dist/lib/StockNotification/index.js +27 -0
  629. package/dist/lib/StockNotification/index.js.map +1 -0
  630. package/dist/lib/Store/index.d.ts +5 -0
  631. package/dist/lib/Store/index.js +31 -0
  632. package/dist/lib/Store/index.js.map +1 -0
  633. package/dist/lib/Supplier/Command.d.ts +5 -0
  634. package/dist/lib/Supplier/Command.js +29 -0
  635. package/dist/lib/Supplier/Command.js.map +1 -0
  636. package/dist/lib/Supplier/index.d.ts +25 -0
  637. package/dist/lib/Supplier/index.js +93 -0
  638. package/dist/lib/Supplier/index.js.map +1 -0
  639. package/dist/lib/Tags/index.d.ts +6 -0
  640. package/dist/lib/Tags/index.js +85 -0
  641. package/dist/lib/Tags/index.js.map +1 -0
  642. package/dist/lib/Tax/index.d.ts +8 -0
  643. package/dist/lib/Tax/index.js +137 -0
  644. package/dist/lib/Tax/index.js.map +1 -0
  645. package/dist/lib/TransferRequest/index.d.ts +21 -0
  646. package/dist/lib/TransferRequest/index.js +303 -0
  647. package/dist/lib/TransferRequest/index.js.map +1 -0
  648. package/dist/lib/Update/index.d.ts +10 -0
  649. package/dist/lib/Update/index.js +72 -0
  650. package/dist/lib/Update/index.js.map +1 -0
  651. package/dist/lib/User/index.d.ts +33 -0
  652. package/dist/lib/User/index.js +361 -0
  653. package/dist/lib/User/index.js.map +1 -0
  654. package/dist/lib/Wishlist/index.d.ts +5 -0
  655. package/dist/lib/Wishlist/index.js +29 -0
  656. package/dist/lib/Wishlist/index.js.map +1 -0
  657. package/dist/lib/base copy.d.ts +14 -0
  658. package/dist/lib/base copy.js +136 -0
  659. package/dist/lib/base copy.js.map +1 -0
  660. package/dist/lib/base.d.ts +14 -0
  661. package/dist/lib/base.js +136 -0
  662. package/dist/lib/base.js.map +1 -0
  663. package/dist/lib/baseService.d.ts +17 -0
  664. package/dist/lib/baseService.js +114 -0
  665. package/dist/lib/baseService.js.map +1 -0
  666. package/dist/rules/GR/constants/data.d.ts +28 -0
  667. package/dist/rules/GR/constants/data.js +58 -0
  668. package/dist/rules/GR/constants/data.js.map +1 -0
  669. package/dist/rules/GR/constants/products.d.ts +8 -0
  670. package/dist/rules/GR/constants/products.js +235 -0
  671. package/dist/rules/GR/constants/products.js.map +1 -0
  672. package/dist/rules/GR/interfaces/cart.d.ts +68 -0
  673. package/dist/rules/GR/interfaces/cart.js +50 -0
  674. package/dist/rules/GR/interfaces/cart.js.map +1 -0
  675. package/dist/rules/GR/interfaces/data.d.ts +97 -0
  676. package/dist/rules/GR/interfaces/data.js +105 -0
  677. package/dist/rules/GR/interfaces/data.js.map +1 -0
  678. package/dist/rules/GR/interfaces/products.d.ts +61 -0
  679. package/dist/rules/GR/interfaces/products.js +11 -0
  680. package/dist/rules/GR/interfaces/products.js.map +1 -0
  681. package/dist/rules/GR/utils/anonymisation.d.ts +29 -0
  682. package/dist/rules/GR/utils/anonymisation.js +269 -0
  683. package/dist/rules/GR/utils/anonymisation.js.map +1 -0
  684. package/dist/rules/GR/utils/cart.d.ts +39 -0
  685. package/dist/rules/GR/utils/cart.js +645 -0
  686. package/dist/rules/GR/utils/cart.js.map +1 -0
  687. package/dist/rules/GR/utils/data.d.ts +3 -0
  688. package/dist/rules/GR/utils/data.js +26 -0
  689. package/dist/rules/GR/utils/data.js.map +1 -0
  690. package/dist/rules/GR/utils/expedition.d.ts +70 -0
  691. package/dist/rules/GR/utils/expedition.js +1584 -0
  692. package/dist/rules/GR/utils/expedition.js.map +1 -0
  693. package/dist/rules/GR/utils/g2.d.ts +153 -0
  694. package/dist/rules/GR/utils/g2.js +915 -0
  695. package/dist/rules/GR/utils/g2.js.map +1 -0
  696. package/dist/rules/GR/utils/invoices.d.ts +5 -0
  697. package/dist/rules/GR/utils/invoices.js +141 -0
  698. package/dist/rules/GR/utils/invoices.js.map +1 -0
  699. package/dist/rules/GR/utils/products.d.ts +105 -0
  700. package/dist/rules/GR/utils/products.js +1014 -0
  701. package/dist/rules/GR/utils/products.js.map +1 -0
  702. package/dist/rules/GR/utils/upsells.d.ts +75 -0
  703. package/dist/rules/GR/utils/upsells.js +279 -0
  704. package/dist/rules/GR/utils/upsells.js.map +1 -0
  705. package/dist/services/database/AuthProvider.d.ts +3 -0
  706. package/dist/services/database/AuthProvider.js +67 -0
  707. package/dist/services/database/AuthProvider.js.map +1 -0
  708. package/dist/services/database/BaseProvider.d.ts +28 -0
  709. package/dist/services/database/BaseProvider.js +78 -0
  710. package/dist/services/database/BaseProvider.js.map +1 -0
  711. package/dist/services/database/BatchUtils.d.ts +14 -0
  712. package/dist/services/database/BatchUtils.js +89 -0
  713. package/dist/services/database/BatchUtils.js.map +1 -0
  714. package/dist/services/database/Config.d.ts +2 -0
  715. package/dist/services/database/Config.js +6 -0
  716. package/dist/services/database/Config.js.map +1 -0
  717. package/dist/services/database/DatabaseService.d.ts +41 -0
  718. package/dist/services/database/DatabaseService.js +312 -0
  719. package/dist/services/database/DatabaseService.js.map +1 -0
  720. package/dist/services/database/FirebaseProvider.d.ts +17 -0
  721. package/dist/services/database/FirebaseProvider.js +301 -0
  722. package/dist/services/database/FirebaseProvider.js.map +1 -0
  723. package/dist/services/database/NotFirebaseProvider.d.ts +35 -0
  724. package/dist/services/database/NotFirebaseProvider.js +368 -0
  725. package/dist/services/database/NotFirebaseProvider.js.map +1 -0
  726. package/dist/utils/algolia.d.ts +6 -0
  727. package/dist/utils/algolia.js +23 -0
  728. package/dist/utils/algolia.js.map +1 -0
  729. package/dist/utils/anonymisation.d.ts +30 -0
  730. package/dist/utils/anonymisation.js +270 -0
  731. package/dist/utils/anonymisation.js.map +1 -0
  732. package/dist/utils/array.d.ts +5 -0
  733. package/dist/utils/array.js +37 -0
  734. package/dist/utils/array.js.map +1 -0
  735. package/dist/utils/aws.d.ts +18 -0
  736. package/dist/utils/aws.js +144 -0
  737. package/dist/utils/aws.js.map +1 -0
  738. package/dist/utils/booking.d.ts +22 -0
  739. package/dist/utils/booking.js +176 -0
  740. package/dist/utils/booking.js.map +1 -0
  741. package/dist/utils/cart.d.ts +505 -0
  742. package/dist/utils/cart.js +504 -0
  743. package/dist/utils/cart.js.map +1 -0
  744. package/dist/utils/cmv.d.ts +10 -0
  745. package/dist/utils/cmv.js +108 -0
  746. package/dist/utils/cmv.js.map +1 -0
  747. package/dist/utils/console.d.ts +6 -0
  748. package/dist/utils/console.js +122 -0
  749. package/dist/utils/console.js.map +1 -0
  750. package/dist/utils/context.d.ts +19 -0
  751. package/dist/utils/context.js +42 -0
  752. package/dist/utils/context.js.map +1 -0
  753. package/dist/utils/currency.d.ts +6 -0
  754. package/dist/utils/currency.js +63 -0
  755. package/dist/utils/currency.js.map +1 -0
  756. package/dist/utils/data.d.ts +40 -0
  757. package/dist/utils/data.js +227 -0
  758. package/dist/utils/data.js.map +1 -0
  759. package/dist/utils/date.d.ts +1 -0
  760. package/dist/utils/date.js +17 -0
  761. package/dist/utils/date.js.map +1 -0
  762. package/dist/utils/dimensions.d.ts +3 -0
  763. package/dist/utils/dimensions.js +19 -0
  764. package/dist/utils/dimensions.js.map +1 -0
  765. package/dist/utils/discount.d.ts +33 -0
  766. package/dist/utils/discount.js +907 -0
  767. package/dist/utils/discount.js.map +1 -0
  768. package/dist/utils/env.d.ts +1 -0
  769. package/dist/utils/env.js +14 -0
  770. package/dist/utils/env.js.map +1 -0
  771. package/dist/utils/errors.d.ts +113 -0
  772. package/dist/utils/errors.js +114 -0
  773. package/dist/utils/errors.js.map +1 -0
  774. package/dist/utils/file-admin.d.ts +8 -0
  775. package/dist/utils/file-admin.js +95 -0
  776. package/dist/utils/file-admin.js.map +1 -0
  777. package/dist/utils/file.d.ts +19 -0
  778. package/dist/utils/file.js +339 -0
  779. package/dist/utils/file.js.map +1 -0
  780. package/dist/utils/firebase-admin.d.ts +2 -0
  781. package/dist/utils/firebase-admin.js +119 -0
  782. package/dist/utils/firebase-admin.js.map +1 -0
  783. package/dist/utils/firebase.d.ts +23 -0
  784. package/dist/utils/firebase.js +59 -0
  785. package/dist/utils/firebase.js.map +1 -0
  786. package/dist/utils/import.d.ts +1 -0
  787. package/dist/utils/import.js +82 -0
  788. package/dist/utils/import.js.map +1 -0
  789. package/dist/utils/inventories.d.ts +26 -0
  790. package/dist/utils/inventories.js +356 -0
  791. package/dist/utils/inventories.js.map +1 -0
  792. package/dist/utils/locale.d.ts +13 -0
  793. package/dist/utils/locale.js +68 -0
  794. package/dist/utils/locale.js.map +1 -0
  795. package/dist/utils/mailchimp.d.ts +57 -0
  796. package/dist/utils/mailchimp.js +736 -0
  797. package/dist/utils/mailchimp.js.map +1 -0
  798. package/dist/utils/math.d.ts +1 -0
  799. package/dist/utils/math.js +16 -0
  800. package/dist/utils/math.js.map +1 -0
  801. package/dist/utils/mongodb.d.ts +1 -0
  802. package/dist/utils/mongodb.js +69 -0
  803. package/dist/utils/mongodb.js.map +1 -0
  804. package/dist/utils/object.d.ts +6 -0
  805. package/dist/utils/object.js +125 -0
  806. package/dist/utils/object.js.map +1 -0
  807. package/dist/utils/payment.d.ts +10 -0
  808. package/dist/utils/payment.js +26 -0
  809. package/dist/utils/payment.js.map +1 -0
  810. package/dist/utils/products.d.ts +26 -0
  811. package/dist/utils/products.js +302 -0
  812. package/dist/utils/products.js.map +1 -0
  813. package/dist/utils/promiseToPurchase.d.ts +56 -0
  814. package/dist/utils/promiseToPurchase.js +229 -0
  815. package/dist/utils/promiseToPurchase.js.map +1 -0
  816. package/dist/utils/prosprsearch.d.ts +21 -0
  817. package/dist/utils/prosprsearch.js +277 -0
  818. package/dist/utils/prosprsearch.js.map +1 -0
  819. package/dist/utils/sdc.d.ts +10 -0
  820. package/dist/utils/sdc.js +1309 -0
  821. package/dist/utils/sdc.js.map +1 -0
  822. package/dist/utils/searchIndexes.d.ts +20 -0
  823. package/dist/utils/searchIndexes.js +274 -0
  824. package/dist/utils/searchIndexes.js.map +1 -0
  825. package/dist/utils/services.d.ts +38 -0
  826. package/dist/utils/services.js +395 -0
  827. package/dist/utils/services.js.map +1 -0
  828. package/dist/utils/shipment.d.ts +110 -0
  829. package/dist/utils/shipment.js +411 -0
  830. package/dist/utils/shipment.js.map +1 -0
  831. package/dist/utils/simpletexting.d.ts +2 -0
  832. package/dist/utils/simpletexting.js +89 -0
  833. package/dist/utils/simpletexting.js.map +1 -0
  834. package/dist/utils/slack.d.ts +33 -0
  835. package/dist/utils/slack.js +178 -0
  836. package/dist/utils/slack.js.map +1 -0
  837. package/dist/utils/sliders.d.ts +4 -0
  838. package/dist/utils/sliders.js +71 -0
  839. package/dist/utils/sliders.js.map +1 -0
  840. package/dist/utils/string.d.ts +16 -0
  841. package/dist/utils/string.js +195 -0
  842. package/dist/utils/string.js.map +1 -0
  843. package/dist/utils/update.d.ts +7 -0
  844. package/dist/utils/update.js +245 -0
  845. package/dist/utils/update.js.map +1 -0
  846. package/dist/utils/weight.d.ts +3 -0
  847. package/dist/utils/weight.js +19 -0
  848. package/dist/utils/weight.js.map +1 -0
  849. package/dist/utils/zones.d.ts +10 -0
  850. package/dist/utils/zones.js +288 -0
  851. package/dist/utils/zones.js.map +1 -0
  852. package/package.json +106 -0
  853. package/publish.sh +144 -0
  854. package/readme.md +182 -0
@@ -0,0 +1,1380 @@
1
+ ## Classes
2
+
3
+ <dl>
4
+ <dt><a href="#Brand">Brand</a></dt>
5
+ <dd><p>Brand class</p></dd>
6
+ <dt><a href="#Catalogue">Catalogue</a></dt>
7
+ <dd><p>Catalogue class</p></dd>
8
+ <dt><a href="#Customer">Customer</a></dt>
9
+ <dd><p>Customer class</p></dd>
10
+ <dt><a href="#Discount">Discount</a></dt>
11
+ <dd><p>Brand class</p></dd>
12
+ <dt><del><a href="#Invoice">Invoice</a></del></dt>
13
+ <dd></dd>
14
+ <dt><del><a href="#Order">Order</a></del></dt>
15
+ <dd></dd>
16
+ <dt><a href="#Org">Org</a></dt>
17
+ <dd><p>Class Org - Organization
18
+ Represent an organization created by a user. An organization can have multiple space.</p></dd>
19
+ <dt><a href="#Product">Product</a></dt>
20
+ <dd><p>Product class</p></dd>
21
+ <dt><a href="#PurchaseOrder">PurchaseOrder</a></dt>
22
+ <dd><p>Brand class</p></dd>
23
+ <dt><a href="#Service">Service</a></dt>
24
+ <dd><p>Service class</p></dd>
25
+ <dt><a href="#Space">Space</a></dt>
26
+ <dd><p>Class Space
27
+ A Space represent a company.</p></dd>
28
+ <dt><a href="#User">User</a></dt>
29
+ <dd><p>User class</p></dd>
30
+ <dt><a href="#ProsprSearch">ProsprSearch</a></dt>
31
+ <dd><p>À NOTER - Prospr est l'ancien nom du ecomm, est depuis devenu Addio.
32
+ Il faudra éventuellement faire le refactoring nécessaire pour remplacer toutes les appelations,
33
+ mais en attendant, c'est normal qu'il y ait les deux noms à différents endroits.</p></dd>
34
+ </dl>
35
+
36
+ ## Members
37
+
38
+ <dl>
39
+ <dt><a href="#CustomerTypeEnum">CustomerTypeEnum</a></dt>
40
+ <dd><p>ICustomer interface</p>
41
+ <p>Représente un client (customer). Un client peut:</p>
42
+ <ul>
43
+ <li>Faire des recherches parmis les différents items du commerçant</li>
44
+ <li>Afficher une fiche cliente</li>
45
+ </ul></dd>
46
+ <dt><a href="#getDefaultDiscountRule">getDefaultDiscountRule</a></dt>
47
+ <dd><p>Exemple:</p>
48
+ <p>Product = 5.00$</p>
49
+ <p>Discount rule:
50
+ quantity &gt;= 10 ? remove 2</p>
51
+ <p>Result:
52
+ If applied to cart:
53
+ 11 Product = (before) 55.00$ (after) 53.00$</p>
54
+ <p>attribute color == red ? percent 10
55
+ 1 red Product = (before) 5.00$ (after) 4.50$</p>
56
+ <p>attribute color == red ? percent -20
57
+ 1 red Product = (before) 5.00$ (after) 6.00$</p></dd>
58
+ <dt><a href="#installationProductsSlugs">installationProductsSlugs</a></dt>
59
+ <dd><p>Contains all necessary elements for extra questions if adding grass product to cart</p></dd>
60
+ <dt><a href="#getConcreteCartInfo">getConcreteCartInfo</a></dt>
61
+ <dd><ul>
62
+ <li>Create the essential info needed when checking a grass type product for cart</li>
63
+ </ul></dd>
64
+ <dt><a href="#getMinDateOffset">getMinDateOffset</a></dt>
65
+ <dd><p>compares date with blockedDates from DB and blocked days (currently hardcoded in function)</p></dd>
66
+ <dt><a href="#shouldDisableDate">shouldDisableDate</a></dt>
67
+ <dd><p>checks if type of cart corresponds to a blockedDates array and if array has dates defined</p></dd>
68
+ <dt><a href="#installationFeePalletTier">installationFeePalletTier</a></dt>
69
+ <dd><p>Calculates fees that should be applied to provided cart, and fetches them from database or fee array if provided.
70
+ Returns the items to add, update and delete, as well as other cart info to set after fees.
71
+ ** Optimized version possible, where address zones and distance are calculated before and properties are sent directly to function
72
+ ** Optimized version reverted, logic found in commit here : [#2087b32](https://github.com/ciaoqc/gng-tb-admin-sdk/commit/2087b3207df9e5916a979b8bb255abc2a4c1dac6)</p></dd>
73
+ <dt><a href="#applyFeesToCart">applyFeesToCart</a></dt>
74
+ <dd><p>Checks if sample shipping fee should be removed from cart depending on cart items found in cart.
75
+ ** Optimized version possible using brand name instead of brand id, removing async check.
76
+ ** Optimized version reverted, logic found in commit here : [#2087b32](https://github.com/ciaoqc/gng-tb-admin-sdk/commit/2087b3207df9e5916a979b8bb255abc2a4c1dac6)</p></dd>
77
+ <dt><a href="#calculateShippingForVrac">calculateShippingForVrac</a> ⇒</dt>
78
+ <dd><p>checks if cart expired using the updated_at date stored in the shipping_payload</p></dd>
79
+ <dt><a href="#transformG2CustomerToCustomer">transformG2CustomerToCustomer</a></dt>
80
+ <dd><p>Verifies if customer exists in G2.</p></dd>
81
+ <dt><a href="#checkIfCustomerExistsInG2">checkIfCustomerExistsInG2</a></dt>
82
+ <dd><p>Updates customer in database with new info found in G2.</p></dd>
83
+ <dt><a href="#getCustomPriceList">getCustomPriceList</a></dt>
84
+ <dd><p>Get promise to purchase additionnal escompte equivalent from customPriceList for specific cart item</p></dd>
85
+ <dt><a href="#getFittingUnits">getFittingUnits</a> ⇒</dt>
86
+ <dd><p>Returns string corresponding to provided cart's type.</p></dd>
87
+ <dt><a href="#getProductSellUnitLabel">getProductSellUnitLabel</a> ⇒ <code>string</code></dt>
88
+ <dd><p>Returns the plural unit label for a specific slug</p></dd>
89
+ <dt><a href="#getDescriptionString">getDescriptionString</a></dt>
90
+ <dd><p>Returns rounded product quantities depending on current value, value of secondary input if existant and sale unit per command step ratio found in product.</p></dd>
91
+ <dt><a href="#splitOnDashes">splitOnDashes</a> ⇒ <code>Array.&lt;string&gt;</code></dt>
92
+ <dd><p>Get product name as array. Array created mostly by splitting name on dash symbol (and variations).</p></dd>
93
+ <dt><a href="#getProdName">getProdName</a></dt>
94
+ <dd><p>Function getParentProductCategoryGroup</p></dd>
95
+ <dt><a href="#getParentProductCategoryGroup">getParentProductCategoryGroup</a></dt>
96
+ <dd><p>Function getProductFormOptions - Returns all AttributeValues for product to construct options in add to cart form</p></dd>
97
+ <dt><a href="#getProductFormOptions">getProductFormOptions</a> ⇒</dt>
98
+ <dd><p>Checks if product is of type by checking TYPE attribute value. Works with indexed product or cart item.</p></dd>
99
+ <dt><a href="#checkIfProductIsInstallation">checkIfProductIsInstallation</a></dt>
100
+ <dd><p>Returns array of installation items found in provided array</p></dd>
101
+ <dt><a href="#getAllInstallFromItems">getAllInstallFromItems</a></dt>
102
+ <dd><ul>
103
+ <li>Returns items with only one apparent grass product (used for detail customers).
104
+ ** FOR DISPLAY PURPOSES ONLY - Always save grass products separatly in ICart **</li>
105
+ </ul></dd>
106
+ <dt><a href="#getGrassSubQuestionsByType">getGrassSubQuestionsByType</a> ⇒</dt>
107
+ <dd><p>For grass products. Over 1480pi2, if installation, quantities are rounded to rolls (10pi2) if pickup, and to half pal. if shipping</p></dd>
108
+ <dt><a href="#handleGrassProductQtyRoundForShipping">handleGrassProductQtyRoundForShipping</a></dt>
109
+ <dd><p>Returns rounded grass quantity depending on current qty, if customer selected installation and pallet unit (if defined)</p></dd>
110
+ <dt><a href="#getConcreteQteText">getConcreteQteText</a></dt>
111
+ <dd><p>returns all items in cart where attribute AVAILABILITY contains wanted type.</p></dd>
112
+ <dt><a href="#getConcreteItemsByAvailability">getConcreteItemsByAvailability</a> ⇒</dt>
113
+ <dd><p>Function getVracType - constructs vrac helper object is cart contains vrac or vrac associated items.</p></dd>
114
+ <dt><a href="#fetchFeesBeforeCart">fetchFeesBeforeCart</a></dt>
115
+ <dd><p>Check if pro custom promo info should be shown for customer for a specific product.</p></dd>
116
+ <dt><a href="#calculateUpsellQte">calculateUpsellQte</a></dt>
117
+ <dd><ul>
118
+ <li>checks all upsells in product and returns those where associated quantities are found.</li>
119
+ </ul></dd>
120
+ <dt><a href="#getUpsellsToQuantify">getUpsellsToQuantify</a></dt>
121
+ <dd><ul>
122
+ <li>Returns upsell equivalence text</li>
123
+ </ul></dd>
124
+ <dt><a href="#getGeneralUpsellQteText">getGeneralUpsellQteText</a></dt>
125
+ <dd><ul>
126
+ <li>Returns quantity stinrg and upsell name to show in Upsell Quantity indicator</li>
127
+ </ul></dd>
128
+ <dt><a href="#checkIfCartContainsException">checkIfCartContainsException</a></dt>
129
+ <dd><p>Function getCartItemsFromProdUpsells</p></dd>
130
+ <dt><a href="#mockCustomPriceList">mockCustomPriceList</a></dt>
131
+ <dd><p>Takes in a function and checks for error</p></dd>
132
+ <dt><a href="#getRandomValue">getRandomValue</a> ⇒</dt>
133
+ <dd><p>Get an object property value</p></dd>
134
+ <dt><a href="#getObjectProperty">getObjectProperty</a> ⇒</dt>
135
+ <dd><p>Set an object property to an anonymized value if it exists</p></dd>
136
+ <dt><a href="#setObjectProperty">setObjectProperty</a> ⇒</dt>
137
+ <dd><p>Anonymise the customer data if in test env</p></dd>
138
+ <dt><a href="#getCurrentProvince">getCurrentProvince</a> ⇒</dt>
139
+ <dd><p>Constructs and returns data for indexed cart (algolia or addio)</p></dd>
140
+ <dt><a href="#getCartPromo">getCartPromo</a></dt>
141
+ <dd><p>Check if current cart promos applied contain a promo_code type promotion</p></dd>
142
+ <dt><a href="#shouldCheckPromoCode">shouldCheckPromoCode</a></dt>
143
+ <dd><p>Check if a discount rule applies to a specific declination</p></dd>
144
+ <dt><a href="#shouldApplyRuleToDeclination">shouldApplyRuleToDeclination</a></dt>
145
+ <dd><p>Check if a specific rule of a discount rule is respected</p></dd>
146
+ <dt><a href="#getResultRuleDetail">getResultRuleDetail</a></dt>
147
+ <dd><p>Check if rule applied to product attributes is respected for specific declination attributes</p></dd>
148
+ <dt><a href="#getCartPromoType">getCartPromoType</a></dt>
149
+ <dd><p>Check if promo code can be applied to a specific cart</p></dd>
150
+ <dt><a href="#checkPromoCodeEligibility">checkPromoCodeEligibility</a></dt>
151
+ <dd><p>Returns tier pricing step that should be applied for provided quantity, or undefined if none should apply</p></dd>
152
+ <dt><a href="#getTierPricingToApply">getTierPricingToApply</a></dt>
153
+ <dd><p>Converts tier-pricing found in discount_rule to IIndexedTierPricing.</p></dd>
154
+ <dt><a href="#applyTierPricing">applyTierPricing</a></dt>
155
+ <dd><p>Calculate new discount_price object for cart item base on qte and tier_pricing</p></dd>
156
+ <dt><a href="#getNewDiscountPriceFromTierPricing">getNewDiscountPriceFromTierPricing</a></dt>
157
+ <dd><p>Get discounted price after applying discount rules to a provided price</p></dd>
158
+ <dt><a href="#applyDiscountRulesOnProduct">applyDiscountRulesOnProduct</a></dt>
159
+ <dd><p>Get result of discount rule discount on a provided amount</p></dd>
160
+ <dt><a href="#applyDiscountToPrice">applyDiscountToPrice</a> ⇒</dt>
161
+ <dd><p>Get sku(s) affected by a promo as an array of strings</p></dd>
162
+ <dt><a href="#getSkuArrayForPromo">getSkuArrayForPromo</a> ⇒</dt>
163
+ <dd><p>Returns a list of all skus where promo applied to specific products should apply. Check for both amount/percent_sku and amount/percent_category options.</p></dd>
164
+ <dt><a href="#getResultAppliedDiscountSkus">getResultAppliedDiscountSkus</a> ⇒</dt>
165
+ <dd><p>Creates array of all category level slugs for a cart item.</p></dd>
166
+ <dt><a href="#getItemCategorySlugArray">getItemCategorySlugArray</a></dt>
167
+ <dd><p>Apply all valid discounts found in a specific cart's discount_rules props to cart</p></dd>
168
+ <dt><a href="#applyDiscountToCart">applyDiscountToCart</a></dt>
169
+ <dd><p>Get the ICartPromoApplied object for a specified discount_rule. Only works for promos that do not apply to products of certain categories/skus.</p></dd>
170
+ <dt><a href="#getStandardCartPromoFromDiscount">getStandardCartPromoFromDiscount</a> ⇒</dt>
171
+ <dd><p>Calculates the cumulative subtotal for all service/fee type items in cart, including any applied promos. Usefull when calculating a promo's amount when all fees and services should be excluded.</p></dd>
172
+ <dt><a href="#checkIfCouldApplyIncentivePromo">checkIfCouldApplyIncentivePromo</a></dt>
173
+ <dd><p>Calculates amount to be removed for payment incentive type promos.</p></dd>
174
+ <dt><a href="#getAfterTaxesPromosTotalAmount">getAfterTaxesPromosTotalAmount</a></dt>
175
+ <dd><p>Returns cart_promos_applied corresponding to payment incentive, if found. Can also check in discount_rules if props provided</p></dd>
176
+ <dt><a href="#getAfterTaxesPromoInCart">getAfterTaxesPromoInCart</a></dt>
177
+ <dd><p>Returns the information regarding the payment incentive promo if found in cart's discount_rules</p></dd>
178
+ <dt><a href="#unitShortDict">unitShortDict</a> ⇒ <code>ILang</code></dt>
179
+ <dd><p>Returns the dictionnary containing the shortened version of unit labels in multiple languages</p></dd>
180
+ <dt><a href="#getInventoryUnitQuantity">getInventoryUnitQuantity</a></dt>
181
+ <dd><p>Constructs object with detailled inventory quantities by unit (based on other_units for product)</p></dd>
182
+ <dt><a href="#getQty">getQty</a></dt>
183
+ <dd><p>Calculates inventory unit quantity for function getQty</p></dd>
184
+ <dt><a href="#recursiveCheckObject">recursiveCheckObject</a> ⇒</dt>
185
+ <dd><p>Updates value of object by checking recursivly.</p></dd>
186
+ <dt><a href="#getOrderedPromises">getOrderedPromises</a> ⇒</dt>
187
+ <dd><p>Checks list of promises for applicable banks based on space bank types.</p></dd>
188
+ <dt><a href="#checkForApplicableBanks">checkForApplicableBanks</a></dt>
189
+ <dd><p>Returns if a promise is currently active. Promise is active if it is not archived, and if current date is same or after starting_date, and before ending_date (if defined).</p></dd>
190
+ <dt><a href="#checkIfOtherBankOfSameTypeIsActive">checkIfOtherBankOfSameTypeIsActive</a></dt>
191
+ <dd><p>Returns translated name for a provided bank type ID.</p></dd>
192
+ <dt><a href="#getBankTypeName">getBankTypeName</a></dt>
193
+ <dd><p>Calculates the remaining amount for a specific promise's bank</p></dd>
194
+ <dt><a href="#getIndexedByCustomerPromiseValues">getIndexedByCustomerPromiseValues</a> ⇒</dt>
195
+ <dd><p>Returns the most recently emptied bank of a given type</p></dd>
196
+ <dt><a href="#getIndexServices">getIndexServices</a></dt>
197
+ <dd><p>Save new entry objects to provided search index services</p></dd>
198
+ <dt><a href="#saveNewEntryToIndex">saveNewEntryToIndex</a></dt>
199
+ <dd><p>Save a partial object entry to provided search index services.</p></dd>
200
+ <dt><a href="#partialSaveNewEntryToIndex">partialSaveNewEntryToIndex</a></dt>
201
+ <dd><p>Returns an object with base info needed to call Algolia/AddioSearch with search query.</p></dd>
202
+ <dt><a href="#getFetchInfoAlgoliaAddioSearch">getFetchInfoAlgoliaAddioSearch</a></dt>
203
+ <dd><p>Fetch entries from either algolia or AddioSearch (prospr) for a provided index. Client-side only!</p></dd>
204
+ <dt><a href="#fetchEntriesAlgoliaAddioSearch">fetchEntriesAlgoliaAddioSearch</a></dt>
205
+ <dd><p>Returns search result from active search index service. Server-side friendly!</p></dd>
206
+ </dl>
207
+
208
+ ## Constants
209
+
210
+ <dl>
211
+ <dt><a href="#isTestEnv">isTestEnv</a></dt>
212
+ <dd><p>TBSDK - SDK Manager</p>
213
+ <p>Client SDK to access TheBEAST eCommerce</p></dd>
214
+ <dt><a href="#spaceInitData">spaceInitData</a></dt>
215
+ <dd><p>Use this object to change which space is being tested!</p></dd>
216
+ </dl>
217
+
218
+ ## Functions
219
+
220
+ <dl>
221
+ <dt><a href="#getMinDatePicker">getMinDatePicker()</a></dt>
222
+ <dd><p>Sets the minimum shipping day for delivery</p></dd>
223
+ <dt><a href="#getProductSellUnitLabel">getProductSellUnitLabel(otherUnits, locale, returnUnitForSlugs)</a> ⇒ <code>string</code></dt>
224
+ <dd><p>Returns sell unit label in correct language for a specific product's other_units</p></dd>
225
+ <dt><a href="#splitOnDashes">splitOnDashes(stringToSplit)</a> ⇒ <code>Array.&lt;string&gt;</code></dt>
226
+ <dd></dd>
227
+ <dt><a href="#getRandomValue">getRandomValue(val, type)</a> ⇒</dt>
228
+ <dd><p>Replace a value with anonymized value</p></dd>
229
+ <dt><a href="#getCartPromo">getCartPromo(cartData)</a></dt>
230
+ <dd><p>Get formatted array of cart promos applied to a specific cart</p></dd>
231
+ <dt><a href="#_checkRuleApplicationArray">_checkRuleApplicationArray(checkedRulesApplicationArray)</a> ⇒</dt>
232
+ <dd><p>Checks if discount rule should be applied to cart based on each rule verification results.</p></dd>
233
+ <dt><a href="#checkIfCouldApplyIncentivePromo">checkIfCouldApplyIncentivePromo(cartData, skipCheckFor)</a> ⇒</dt>
234
+ <dd><p>Checks if an incentive discount could (in theory) by added to provided cart, by checking found incentive discount's rule array.</p></dd>
235
+ <dt><a href="#getOrderedPromises">getOrderedPromises(promises)</a></dt>
236
+ <dd><p>Get ordered array of promise data objects by starting date.</p></dd>
237
+ <dt><a href="#getIndexServices">getIndexServices(space, partialIndexID)</a></dt>
238
+ <dd><p>Returns objet with possible index service instances
239
+ As of now, checks for Algolia and Addio Search</p></dd>
240
+ </dl>
241
+
242
+ <a name="Brand"></a>
243
+
244
+ ## Brand
245
+ <p>Brand class</p>
246
+
247
+ **Kind**: global class
248
+ <a name="Catalogue"></a>
249
+
250
+ ## Catalogue
251
+ <p>Catalogue class</p>
252
+
253
+ **Kind**: global class
254
+ <a name="Customer"></a>
255
+
256
+ ## Customer
257
+ <p>Customer class</p>
258
+
259
+ **Kind**: global class
260
+ <a name="Discount"></a>
261
+
262
+ ## Discount
263
+ <p>Brand class</p>
264
+
265
+ **Kind**: global class
266
+ <a name="Invoice"></a>
267
+
268
+ ## ~~Invoice~~
269
+ ***Deprecated***
270
+
271
+ **Kind**: global class
272
+ <a name="Order"></a>
273
+
274
+ ## ~~Order~~
275
+ ***Deprecated***
276
+
277
+ **Kind**: global class
278
+ <a name="Org"></a>
279
+
280
+ ## Org
281
+ <p>Class Org - Organization
282
+ Represent an organization created by a user. An organization can have multiple space.</p>
283
+
284
+ **Kind**: global class
285
+ <a name="new_Org_new"></a>
286
+
287
+ ### new Org(org, org_ref, user)
288
+ <p>Organization constructor</p>
289
+
290
+
291
+ | Param | Description |
292
+ | --- | --- |
293
+ | org | <p>Organization to construct</p> |
294
+ | org_ref | <p>Reference to the organization</p> |
295
+ | user | <p>Authfificated user</p> |
296
+
297
+ <a name="Product"></a>
298
+
299
+ ## Product
300
+ <p>Product class</p>
301
+
302
+ **Kind**: global class
303
+ <a name="PurchaseOrder"></a>
304
+
305
+ ## PurchaseOrder
306
+ <p>Brand class</p>
307
+
308
+ **Kind**: global class
309
+ <a name="Service"></a>
310
+
311
+ ## Service
312
+ <p>Service class</p>
313
+
314
+ **Kind**: global class
315
+ <a name="Service+add"></a>
316
+
317
+ ### service.add(newService) ⇒
318
+ <p>Add a new service</p>
319
+
320
+ **Kind**: instance method of [<code>Service</code>](#Service)
321
+ **Returns**: <p>IAddServiceResponse</p>
322
+
323
+ | Param | Description |
324
+ | --- | --- |
325
+ | newService | <p>IService: new service to add.</p> |
326
+
327
+ <a name="Space"></a>
328
+
329
+ ## Space
330
+ <p>Class Space
331
+ A Space represent a company.</p>
332
+
333
+ **Kind**: global class
334
+ <a name="User"></a>
335
+
336
+ ## User
337
+ <p>User class</p>
338
+
339
+ **Kind**: global class
340
+ <a name="new_User_new"></a>
341
+
342
+ ### new User(options, version, orgID)
343
+ <p>Fetch user from database for current org</p>
344
+
345
+
346
+ | Param | Description |
347
+ | --- | --- |
348
+ | options | <p>Parameters for database query. Only one will be checked at a time, in order of &quot;importance&quot; : email &gt; username &gt; external_id.</p> |
349
+ | version | <p>The app version to check</p> |
350
+ | orgID | <p>Optionnal, but must be provided if function is called from the backend (used to find user's organization).</p> |
351
+
352
+ <a name="ProsprSearch"></a>
353
+
354
+ ## ProsprSearch
355
+ <p>À NOTER - Prospr est l'ancien nom du ecomm, est depuis devenu Addio.
356
+ Il faudra éventuellement faire le refactoring nécessaire pour remplacer toutes les appelations,
357
+ mais en attendant, c'est normal qu'il y ait les deux noms à différents endroits.</p>
358
+
359
+ **Kind**: global class
360
+ <a name="CustomerTypeEnum"></a>
361
+
362
+ ## CustomerTypeEnum
363
+ <p>ICustomer interface</p>
364
+ <p>Représente un client (customer). Un client peut:</p>
365
+ <ul>
366
+ <li>Faire des recherches parmis les différents items du commerçant</li>
367
+ <li>Afficher une fiche cliente</li>
368
+ </ul>
369
+
370
+ **Kind**: global variable
371
+ <a name="getDefaultDiscountRule"></a>
372
+
373
+ ## getDefaultDiscountRule
374
+ <p>Exemple:</p>
375
+ <p>Product = 5.00$</p>
376
+ <p>Discount rule:
377
+ quantity &gt;= 10 ? remove 2</p>
378
+ <p>Result:
379
+ If applied to cart:
380
+ 11 Product = (before) 55.00$ (after) 53.00$</p>
381
+ <p>attribute color == red ? percent 10
382
+ 1 red Product = (before) 5.00$ (after) 4.50$</p>
383
+ <p>attribute color == red ? percent -20
384
+ 1 red Product = (before) 5.00$ (after) 6.00$</p>
385
+
386
+ **Kind**: global variable
387
+ <a name="installationProductsSlugs"></a>
388
+
389
+ ## installationProductsSlugs
390
+ <p>Contains all necessary elements for extra questions if adding grass product to cart</p>
391
+
392
+ **Kind**: global variable
393
+ <a name="getConcreteCartInfo"></a>
394
+
395
+ ## getConcreteCartInfo
396
+ <ul>
397
+ <li>Create the essential info needed when checking a grass type product for cart</li>
398
+ </ul>
399
+
400
+ **Kind**: global variable
401
+
402
+ | Param |
403
+ | --- |
404
+ | item |
405
+
406
+ <a name="getMinDateOffset"></a>
407
+
408
+ ## getMinDateOffset
409
+ <p>compares date with blockedDates from DB and blocked days (currently hardcoded in function)</p>
410
+
411
+ **Kind**: global variable
412
+
413
+ | Param | Description |
414
+ | --- | --- |
415
+ | date | <p>Date to check</p> |
416
+ | blockedDates | <p>Blocked dates from DB</p> |
417
+ | expeditionMethod | <p>pickup or shipping</p> |
418
+ | cartData | |
419
+
420
+ <a name="shouldDisableDate"></a>
421
+
422
+ ## shouldDisableDate
423
+ <p>checks if type of cart corresponds to a blockedDates array and if array has dates defined</p>
424
+
425
+ **Kind**: global variable
426
+
427
+ | Param |
428
+ | --- |
429
+ | cartData |
430
+ | blockedDates |
431
+
432
+ <a name="installationFeePalletTier"></a>
433
+
434
+ ## installationFeePalletTier
435
+ <p>Calculates fees that should be applied to provided cart, and fetches them from database or fee array if provided.
436
+ Returns the items to add, update and delete, as well as other cart info to set after fees.
437
+ ** Optimized version possible, where address zones and distance are calculated before and properties are sent directly to function
438
+ ** Optimized version reverted, logic found in commit here : [#2087b32](https://github.com/ciaoqc/gng-tb-admin-sdk/commit/2087b3207df9e5916a979b8bb255abc2a4c1dac6)</p>
439
+
440
+ **Kind**: global variable
441
+
442
+ | Param |
443
+ | --- |
444
+ | fetchProduct |
445
+ | getIfAddressIsInsideZones |
446
+ | getDistanceFromAddress |
447
+ | cart |
448
+ | expeditionMethod |
449
+ | grassProduct |
450
+ | concreteOrder |
451
+ | cartContainsInstallation |
452
+ | cartContainsVrac |
453
+ | isPro |
454
+ | addOnePalletToPickup |
455
+ | cartContainsSample |
456
+ | saveToShippingPayload |
457
+ | deliveryAddress |
458
+ | locale |
459
+ | expeditionDate |
460
+ | equipmentPickupOnSite |
461
+ | cartContainsOnlyAccessories |
462
+ | pickupStore |
463
+ | allStores |
464
+ | customPriceList |
465
+ | useFeeArray |
466
+
467
+ <a name="applyFeesToCart"></a>
468
+
469
+ ## applyFeesToCart
470
+ <p>Checks if sample shipping fee should be removed from cart depending on cart items found in cart.
471
+ ** Optimized version possible using brand name instead of brand id, removing async check.
472
+ ** Optimized version reverted, logic found in commit here : [#2087b32](https://github.com/ciaoqc/gng-tb-admin-sdk/commit/2087b3207df9e5916a979b8bb255abc2a4c1dac6)</p>
473
+
474
+ **Kind**: global variable
475
+
476
+ | Param |
477
+ | --- |
478
+ | fetchProduct |
479
+ | cart |
480
+ | locale |
481
+ | useFeeArray |
482
+
483
+ <a name="calculateShippingForVrac"></a>
484
+
485
+ ## calculateShippingForVrac ⇒
486
+ <p>checks if cart expired using the updated_at date stored in the shipping_payload</p>
487
+
488
+ **Kind**: global variable
489
+ **Returns**: <p>boolean</p>
490
+
491
+ | Param |
492
+ | --- |
493
+ | cartData |
494
+ | grassProduct |
495
+ | concreteOrder |
496
+ | isPro |
497
+ | isSample |
498
+
499
+ <a name="transformG2CustomerToCustomer"></a>
500
+
501
+ ## transformG2CustomerToCustomer
502
+ <p>Verifies if customer exists in G2.</p>
503
+
504
+ **Kind**: global variable
505
+
506
+ | Param | Description |
507
+ | --- | --- |
508
+ | customerID | <p>Customer ID for G2 fetch</p> |
509
+ | space | <p>Space Object</p> |
510
+ | org | <p>Org Object</p> |
511
+
512
+ <a name="checkIfCustomerExistsInG2"></a>
513
+
514
+ ## checkIfCustomerExistsInG2
515
+ <p>Updates customer in database with new info found in G2.</p>
516
+
517
+ **Kind**: global variable
518
+
519
+ | Param | Description |
520
+ | --- | --- |
521
+ | customerID | <p>Customer ID for G2 fetch</p> |
522
+ | space | <p>Space Object</p> |
523
+ | org | <p>Org Object</p> |
524
+ | addToDB | <p>if updated customer should be saved to database (defaults to true)</p> |
525
+ | skipEmailCheck | <p>if check for unique email should be skiped or not (defaults to false)</p> |
526
+
527
+ <a name="getCustomPriceList"></a>
528
+
529
+ ## getCustomPriceList
530
+ <p>Get promise to purchase additionnal escompte equivalent from customPriceList for specific cart item</p>
531
+
532
+ **Kind**: global variable
533
+
534
+ | Param | Description |
535
+ | --- | --- |
536
+ | customPriceList | <p>The pro customers custom price list</p> |
537
+ | item | <p>The cart item to check</p> |
538
+
539
+ <a name="getFittingUnits"></a>
540
+
541
+ ## getFittingUnits ⇒
542
+ <p>Returns string corresponding to provided cart's type.</p>
543
+
544
+ **Kind**: global variable
545
+ **Returns**: <p>a string containing the order type</p>
546
+
547
+ | Param | Description |
548
+ | --- | --- |
549
+ | cartData | <p>Corresponding cart</p> |
550
+ | frOnly | <p>If true, forces french string,</p> |
551
+ | slugSafe | <p>If true, will always return a slug-safe string (with string_to_slug)</p> |
552
+
553
+ <a name="getProductSellUnitLabel"></a>
554
+
555
+ ## getProductSellUnitLabel ⇒ <code>string</code>
556
+ <p>Returns the plural unit label for a specific slug</p>
557
+
558
+ **Kind**: global variable
559
+ **Returns**: <code>string</code> - <p>The plural unit label</p>
560
+
561
+ | Param | Type | Description |
562
+ | --- | --- | --- |
563
+ | unitSlug | <code>string</code> | <p>The slug of the unit for which we want to get the label</p> |
564
+ | locale | <code>string</code> \| <code>undefined</code> | <p>The language in which we want to get the label</p> |
565
+ | returnUnitForSlugs | <code>Array.&lt;string&gt;</code> | <p>The slugs for which we want to return a default value, in this case the unit slug for unit</p> |
566
+
567
+ <a name="getDescriptionString"></a>
568
+
569
+ ## getDescriptionString
570
+ <p>Returns rounded product quantities depending on current value, value of secondary input if existant and sale unit per command step ratio found in product.</p>
571
+
572
+ **Kind**: global variable
573
+
574
+ | Param | Type | Description |
575
+ | --- | --- | --- |
576
+ | value | <code>number</code> | <p>Current quantity as entered by user in first input</p> |
577
+ | otherUnits | <code>Array.&lt;IFilledDimensionUnits&gt;</code> \| <code>undefined</code> | <p>FilledDimensionUnits found in product (possibly undefined)</p> |
578
+ | value2 | <code>number</code> \| <code>undefined</code> | <p>Current quantity as entered by user in second input (possibly undefined)</p> |
579
+ | targetIsSecondaryInput | <code>boolean</code> | <p>If action was triggered from secondary input (defaults to false)</p> |
580
+
581
+ <a name="splitOnDashes"></a>
582
+
583
+ ## splitOnDashes ⇒ <code>Array.&lt;string&gt;</code>
584
+ <p>Get product name as array. Array created mostly by splitting name on dash symbol (and variations).</p>
585
+
586
+ **Kind**: global variable
587
+ **Returns**: <code>Array.&lt;string&gt;</code> - <ul>
588
+ <li>Position 0 is the &quot;commum section&quot; of the name, and position 1 should contain all specifics (ex. color, size, etc...)</li>
589
+ </ul>
590
+
591
+ | Param | Type |
592
+ | --- | --- |
593
+ | product | <code>IIndexedVariationAlgolia</code> \| <code>IIndexedProduct</code> |
594
+ | locale | <code>string</code> \| <code>undefined</code> |
595
+
596
+ <a name="getProdName"></a>
597
+
598
+ ## getProdName
599
+ <p>Function getParentProductCategoryGroup</p>
600
+
601
+ **Kind**: global variable
602
+
603
+ | Param | Description |
604
+ | --- | --- |
605
+ | prod | <p>Product to check</p> |
606
+
607
+ <a name="getParentProductCategoryGroup"></a>
608
+
609
+ ## getParentProductCategoryGroup
610
+ <p>Function getProductFormOptions - Returns all AttributeValues for product to construct options in add to cart form</p>
611
+
612
+ **Kind**: global variable
613
+
614
+ | Param | Description |
615
+ | --- | --- |
616
+ | product | <p>Product to check</p> |
617
+ | attributes | <p>Array of IAttributes to fetch info from</p> |
618
+
619
+ <a name="getProductFormOptions"></a>
620
+
621
+ ## getProductFormOptions ⇒
622
+ <p>Checks if product is of type by checking TYPE attribute value. Works with indexed product or cart item.</p>
623
+
624
+ **Kind**: global variable
625
+ **Returns**: <p>boolean</p>
626
+
627
+ | Param |
628
+ | --- |
629
+ | product |
630
+ | type |
631
+ | excludeUndefined |
632
+
633
+ <a name="checkIfProductIsInstallation"></a>
634
+
635
+ ## checkIfProductIsInstallation
636
+ <p>Returns array of installation items found in provided array</p>
637
+
638
+ **Kind**: global variable
639
+
640
+ | Param | Description |
641
+ | --- | --- |
642
+ | items | <p>Array of cart items or IIndexedDeclinations to check</p> |
643
+
644
+ <a name="getAllInstallFromItems"></a>
645
+
646
+ ## getAllInstallFromItems
647
+ <ul>
648
+ <li>Returns items with only one apparent grass product (used for detail customers).
649
+ ** FOR DISPLAY PURPOSES ONLY - Always save grass products separatly in ICart **</li>
650
+ </ul>
651
+
652
+ **Kind**: global variable
653
+
654
+ | Param | Description |
655
+ | --- | --- |
656
+ | recursiveItems | <p>ICartItems with subitems (object created for display purposes)</p> |
657
+
658
+ <a name="getGrassSubQuestionsByType"></a>
659
+
660
+ ## getGrassSubQuestionsByType ⇒
661
+ <p>For grass products. Over 1480pi2, if installation, quantities are rounded to rolls (10pi2) if pickup, and to half pal. if shipping</p>
662
+
663
+ **Kind**: global variable
664
+ **Returns**: <p>quantity rounded to rolls with items to change or undefined</p>
665
+
666
+ | Param |
667
+ | --- |
668
+ | grassProduct |
669
+ | cartData |
670
+
671
+ <a name="handleGrassProductQtyRoundForShipping"></a>
672
+
673
+ ## handleGrassProductQtyRoundForShipping
674
+ <p>Returns rounded grass quantity depending on current qty, if customer selected installation and pallet unit (if defined)</p>
675
+
676
+ **Kind**: global variable
677
+
678
+ | Param | Type | Description |
679
+ | --- | --- | --- |
680
+ | currentQte | <code>number</code> | <p>Current quantity as entered by user in input</p> |
681
+ | isShipping | <code>boolean</code> | <p>Whether customer has selected installation option</p> |
682
+ | palUnit | <code>IFilledDimensionUnits</code> \| <code>undefined</code> | <p>Pallet FilledDimensionUnit (possibly undefined)</p> |
683
+
684
+ <a name="getConcreteQteText"></a>
685
+
686
+ ## getConcreteQteText
687
+ <p>returns all items in cart where attribute AVAILABILITY contains wanted type.</p>
688
+
689
+ **Kind**: global variable
690
+
691
+ | Param |
692
+ | --- |
693
+ | cartData |
694
+ | availabilityType |
695
+
696
+ <a name="getConcreteItemsByAvailability"></a>
697
+
698
+ ## getConcreteItemsByAvailability ⇒
699
+ <p>Function getVracType - constructs vrac helper object is cart contains vrac or vrac associated items.</p>
700
+
701
+ **Kind**: global variable
702
+ **Returns**: <p>IVracType object containing vrac_type enum value and vrac_store_ids where vrac items are available</p>
703
+
704
+ | Param |
705
+ | --- |
706
+ | stores |
707
+ | cartData |
708
+ | getInventoryItemCallback |
709
+
710
+ <a name="fetchFeesBeforeCart"></a>
711
+
712
+ ## fetchFeesBeforeCart
713
+ <p>Check if pro custom promo info should be shown for customer for a specific product.</p>
714
+
715
+ **Kind**: global variable
716
+
717
+ | Param |
718
+ | --- |
719
+ | userData |
720
+ | isPro |
721
+ | product |
722
+ | customMinPrice |
723
+
724
+ <a name="calculateUpsellQte"></a>
725
+
726
+ ## calculateUpsellQte
727
+ <ul>
728
+ <li>checks all upsells in product and returns those where associated quantities are found.</li>
729
+ </ul>
730
+
731
+ **Kind**: global variable
732
+
733
+ | Param | Description |
734
+ | --- | --- |
735
+ | upsellProducts | <p>All upsells in product</p> |
736
+ | cartItems | <p>All current cart items</p> |
737
+ | checkQte | <p>If all upsells should be checked for quantity</p> |
738
+ | alwaysShow | <p>If upsell should be considered even if it already exists in cart as item</p> |
739
+
740
+ <a name="getUpsellsToQuantify"></a>
741
+
742
+ ## getUpsellsToQuantify
743
+ <ul>
744
+ <li>Returns upsell equivalence text</li>
745
+ </ul>
746
+
747
+ **Kind**: global variable
748
+
749
+ | Param | Description |
750
+ | --- | --- |
751
+ | upsellsToQuantify | <p>All upsells to show in text</p> |
752
+ | qte | <p>Associated product quantity</p> |
753
+ | specificProduct | <p>If upsell shown is a specific products</p> |
754
+ | isMulti | <p>If upsell if shared by more than one item in cart</p> |
755
+ | locale | <p>locale of string to return</p> |
756
+
757
+ <a name="getGeneralUpsellQteText"></a>
758
+
759
+ ## getGeneralUpsellQteText
760
+ <ul>
761
+ <li>Returns quantity stinrg and upsell name to show in Upsell Quantity indicator</li>
762
+ </ul>
763
+
764
+ **Kind**: global variable
765
+
766
+ | Param | Description |
767
+ | --- | --- |
768
+ | upsell | <p>Upsell to show qyantity for</p> |
769
+ | productQte | <p>Quantity of associated product for ratio calculation</p> |
770
+ | locale | <p>locale of string to return</p> |
771
+
772
+ <a name="checkIfCartContainsException"></a>
773
+
774
+ ## checkIfCartContainsException
775
+ <p>Function getCartItemsFromProdUpsells</p>
776
+
777
+ **Kind**: global variable
778
+
779
+ | Param | Type | Description |
780
+ | --- | --- | --- |
781
+ | qte | <code>number</code> | <p>Quantity of product to which upsell is associated</p> |
782
+ | currentSku | <code>string</code> | <p>Sku of the declination selected by user for the product to which upsell is associated</p> |
783
+ | prodUpsell | <code>Array.&lt;IProductRecommendation&gt;</code> | <p>Array of upsells found in product</p> |
784
+ | getProduct | | <p>Callback function to fetch product from DB</p> |
785
+ | locale | <code>string</code> | <p>locale for product fetch (defaults to 'fr')</p> |
786
+
787
+ <a name="mockCustomPriceList"></a>
788
+
789
+ ## mockCustomPriceList
790
+ <p>Takes in a function and checks for error</p>
791
+
792
+ **Kind**: global variable
793
+
794
+ | Param | Type | Description |
795
+ | --- | --- | --- |
796
+ | method | <code>function</code> | <p>The function to check</p> |
797
+ | params | <code>Array.&lt;any&gt;</code> | <p>The array of function parameters</p> |
798
+ | message | <code>string</code> | <p>Optional message to match with error message</p> |
799
+
800
+ <a name="getRandomValue"></a>
801
+
802
+ ## getRandomValue ⇒
803
+ <p>Get an object property value</p>
804
+
805
+ **Kind**: global variable
806
+ **Returns**: <p>the property value</p>
807
+
808
+ | Param | Description |
809
+ | --- | --- |
810
+ | obj | <p>The object to scan</p> |
811
+ | props | <p>The path of the property to get</p> |
812
+
813
+ <a name="getObjectProperty"></a>
814
+
815
+ ## getObjectProperty ⇒
816
+ <p>Set an object property to an anonymized value if it exists</p>
817
+
818
+ **Kind**: global variable
819
+ **Returns**: <p>The object with the edited value</p>
820
+
821
+ | Param | Description |
822
+ | --- | --- |
823
+ | obj | <p>The object to look into</p> |
824
+ | props | <p>The property path</p> |
825
+ | type | <p>The property type used to shuffle the data</p> |
826
+
827
+ <a name="setObjectProperty"></a>
828
+
829
+ ## setObjectProperty ⇒
830
+ <p>Anonymise the customer data if in test env</p>
831
+
832
+ **Kind**: global variable
833
+ **Returns**: <p>The new customer data</p>
834
+
835
+ | Param | Description |
836
+ | --- | --- |
837
+ | c | <p>The customer data</p> |
838
+
839
+ <a name="getCurrentProvince"></a>
840
+
841
+ ## getCurrentProvince ⇒
842
+ <p>Constructs and returns data for indexed cart (algolia or addio)</p>
843
+
844
+ **Kind**: global variable
845
+ **Returns**: <IIndexedCart>
846
+
847
+ | Param | Description |
848
+ | --- | --- |
849
+ | cartData | <p>Current cart data</p> |
850
+ | space | <p>Space object</p> |
851
+ | setPaidAtIfUndefined | <p>Optionnal - If true, will set paid_at with current date</p> |
852
+ | customer | <p>Optionnal - If defined, adds info based on customer to indexedCart</p> |
853
+
854
+ <a name="getCartPromo"></a>
855
+
856
+ ## getCartPromo
857
+ <p>Check if current cart promos applied contain a promo_code type promotion</p>
858
+
859
+ **Kind**: global variable
860
+
861
+ | Param |
862
+ | --- |
863
+ | cartData |
864
+
865
+ <a name="shouldCheckPromoCode"></a>
866
+
867
+ ## shouldCheckPromoCode
868
+ <p>Check if a discount rule applies to a specific declination</p>
869
+
870
+ **Kind**: global variable
871
+
872
+ | Param | Description |
873
+ | --- | --- |
874
+ | discount_rule | <p>The discount rule to check</p> |
875
+ | declination | <p>The declination to compare</p> |
876
+
877
+ <a name="shouldApplyRuleToDeclination"></a>
878
+
879
+ ## shouldApplyRuleToDeclination
880
+ <p>Check if a specific rule of a discount rule is respected</p>
881
+
882
+ **Kind**: global variable
883
+
884
+ | Param | Description |
885
+ | --- | --- |
886
+ | ruleDetail | <p>The rule details object to check</p> |
887
+ | cartValue | <p>The value to compare with rule specifications</p> |
888
+
889
+ <a name="getResultRuleDetail"></a>
890
+
891
+ ## getResultRuleDetail
892
+ <p>Check if rule applied to product attributes is respected for specific declination attributes</p>
893
+
894
+ **Kind**: global variable
895
+
896
+ | Param | Description |
897
+ | --- | --- |
898
+ | attributeAndValues | <p>The rule details object to check</p> |
899
+ | arrDeclinationAttributes | <p>The declinations attributes to compare</p> |
900
+
901
+ <a name="getCartPromoType"></a>
902
+
903
+ ## getCartPromoType
904
+ <p>Check if promo code can be applied to a specific cart</p>
905
+
906
+ **Kind**: global variable
907
+
908
+ | Param | Description |
909
+ | --- | --- |
910
+ | cart | <p>The cart to check</p> |
911
+ | promoCode | <p>The discount rule with promo code to check</p> |
912
+
913
+ <a name="checkPromoCodeEligibility"></a>
914
+
915
+ ## checkPromoCodeEligibility
916
+ <p>Returns tier pricing step that should be applied for provided quantity, or undefined if none should apply</p>
917
+
918
+ **Kind**: global variable
919
+
920
+ | Param | Description |
921
+ | --- | --- |
922
+ | tierPricingToCheck | <p>the indexed tier-pricing array to check</p> |
923
+ | qte | |
924
+
925
+ <a name="getTierPricingToApply"></a>
926
+
927
+ ## getTierPricingToApply
928
+ <p>Converts tier-pricing found in discount_rule to IIndexedTierPricing.</p>
929
+
930
+ **Kind**: global variable
931
+
932
+ | Param | Description |
933
+ | --- | --- |
934
+ | discountRule | <p>the tier-pricing tier discountRule to check</p> |
935
+ | price | <p>declinations regular price from which tier-pricing result is calculated</p> |
936
+ | space | |
937
+ | decimals | <p>the amount of decimals to show on tier-pricing result</p> |
938
+
939
+ <a name="applyTierPricing"></a>
940
+
941
+ ## applyTierPricing
942
+ <p>Calculate new discount_price object for cart item base on qte and tier_pricing</p>
943
+
944
+ **Kind**: global variable
945
+
946
+ | Param | Description |
947
+ | --- | --- |
948
+ | item | <p>the item to check</p> |
949
+ | setOriginalPrice | <p>if original_amount should be set instead of discount_price.amount</p> |
950
+ | originalDecli | <p>Optionnal. The IIndexedDeclination used to construct the cart item originally.</p> |
951
+
952
+ <a name="getNewDiscountPriceFromTierPricing"></a>
953
+
954
+ ## getNewDiscountPriceFromTierPricing
955
+ <p>Get discounted price after applying discount rules to a provided price</p>
956
+
957
+ **Kind**: global variable
958
+
959
+ | Param | Description |
960
+ | --- | --- |
961
+ | discount_rules | <p>The discount rules to apply</p> |
962
+ | amount | <p>The initial amount on which to apply discounts</p> |
963
+ | space | |
964
+
965
+ <a name="applyDiscountRulesOnProduct"></a>
966
+
967
+ ## applyDiscountRulesOnProduct
968
+ <p>Get result of discount rule discount on a provided amount</p>
969
+
970
+ **Kind**: global variable
971
+
972
+ | Param | Description |
973
+ | --- | --- |
974
+ | initial | <p>The price on which to apply the discount</p> |
975
+ | discountResultObj | <p>The discount rule result object</p> |
976
+
977
+ <a name="applyDiscountToPrice"></a>
978
+
979
+ ## applyDiscountToPrice ⇒
980
+ <p>Get sku(s) affected by a promo as an array of strings</p>
981
+
982
+ **Kind**: global variable
983
+ **Returns**: <p>And array of strings</p>
984
+
985
+ | Param | Description |
986
+ | --- | --- |
987
+ | valueToConvert | <p>The sku or sku array associated with the promo</p> |
988
+
989
+ <a name="getSkuArrayForPromo"></a>
990
+
991
+ ## getSkuArrayForPromo ⇒
992
+ <p>Returns a list of all skus where promo applied to specific products should apply. Check for both amount/percent_sku and amount/percent_category options.</p>
993
+
994
+ **Kind**: global variable
995
+ **Returns**: <p>An array of strings</p>
996
+
997
+ | Param | Description |
998
+ | --- | --- |
999
+ | cartItems | <p>The current cart items</p> |
1000
+ | promoToCheck | <p>The promo to check</p> |
1001
+
1002
+ <a name="getResultAppliedDiscountSkus"></a>
1003
+
1004
+ ## getResultAppliedDiscountSkus ⇒
1005
+ <p>Creates array of all category level slugs for a cart item.</p>
1006
+
1007
+ **Kind**: global variable
1008
+ **Returns**: <p>An array of strings</p>
1009
+
1010
+ | Param | Description |
1011
+ | --- | --- |
1012
+ | itemCategories | <p>Value found in props cart.categories</p> |
1013
+
1014
+ <a name="getItemCategorySlugArray"></a>
1015
+
1016
+ ## getItemCategorySlugArray
1017
+ <p>Apply all valid discounts found in a specific cart's discount_rules props to cart</p>
1018
+
1019
+ **Kind**: global variable
1020
+
1021
+ | Param | Description |
1022
+ | --- | --- |
1023
+ | cart | <p>The cart to check</p> |
1024
+ | isMultiPromo | |
1025
+ | forceShipping | <p>If cart should be considered as a shipping cart, even if is_pickup is true</p> |
1026
+
1027
+ <a name="applyDiscountToCart"></a>
1028
+
1029
+ ## applyDiscountToCart
1030
+ <p>Get the ICartPromoApplied object for a specified discount_rule. Only works for promos that do not apply to products of certain categories/skus.</p>
1031
+
1032
+ **Kind**: global variable
1033
+
1034
+ | Param |
1035
+ | --- |
1036
+ | cart |
1037
+ | discount |
1038
+
1039
+ <a name="getStandardCartPromoFromDiscount"></a>
1040
+
1041
+ ## getStandardCartPromoFromDiscount ⇒
1042
+ <p>Calculates the cumulative subtotal for all service/fee type items in cart, including any applied promos. Usefull when calculating a promo's amount when all fees and services should be excluded.</p>
1043
+
1044
+ **Kind**: global variable
1045
+ **Returns**: <p>A number</p>
1046
+
1047
+ | Param | Description |
1048
+ | --- | --- |
1049
+ | cartData | <p>The cartData to check</p> |
1050
+ | allCurrentAppliedToItemPromos | <p>All currently active cartPromos that apply to items in cart. Sent seperatly in case local state is different from current cartData.</p> |
1051
+
1052
+ <a name="checkIfCouldApplyIncentivePromo"></a>
1053
+
1054
+ ## checkIfCouldApplyIncentivePromo
1055
+ <p>Calculates amount to be removed for payment incentive type promos.</p>
1056
+
1057
+ **Kind**: global variable
1058
+
1059
+ | Param | Description |
1060
+ | --- | --- |
1061
+ | cartData | |
1062
+ | checkDiscountRules | <p>Optionnal. If cart discount_rules should be checked if cart_promos_applied does not have promo yet.</p> |
1063
+
1064
+ <a name="getAfterTaxesPromosTotalAmount"></a>
1065
+
1066
+ ## getAfterTaxesPromosTotalAmount
1067
+ <p>Returns cart_promos_applied corresponding to payment incentive, if found. Can also check in discount_rules if props provided</p>
1068
+
1069
+ **Kind**: global variable
1070
+
1071
+ | Param | Description |
1072
+ | --- | --- |
1073
+ | cartData | |
1074
+ | checkDiscountRules | <p>Optionnal. If the function should check in cart discount_rules if nothing found in cart_promos_applied</p> |
1075
+
1076
+ <a name="getAfterTaxesPromoInCart"></a>
1077
+
1078
+ ## getAfterTaxesPromoInCart
1079
+ <p>Returns the information regarding the payment incentive promo if found in cart's discount_rules</p>
1080
+
1081
+ **Kind**: global variable
1082
+
1083
+ | Param |
1084
+ | --- |
1085
+ | cartData |
1086
+
1087
+ <a name="unitShortDict"></a>
1088
+
1089
+ ## unitShortDict ⇒ <code>ILang</code>
1090
+ <p>Returns the dictionnary containing the shortened version of unit labels in multiple languages</p>
1091
+
1092
+ **Kind**: global variable
1093
+ **Returns**: <code>ILang</code> - <p>The dictionnary containing the shortened unit label in multiple languages</p>
1094
+
1095
+ | Param | Type | Description |
1096
+ | --- | --- | --- |
1097
+ | slug | <code>string</code> | <p>The slug for which we want to get the shortened dictionnary</p> |
1098
+ | returnUnitForSlugs | <code>Array.&lt;string&gt;</code> | <p>An array of slugs that we want to return a default dictionnary for, in this case the unit dictionnary for unit</p> |
1099
+
1100
+ <a name="getInventoryUnitQuantity"></a>
1101
+
1102
+ ## getInventoryUnitQuantity
1103
+ <p>Constructs object with detailled inventory quantities by unit (based on other_units for product)</p>
1104
+
1105
+ **Kind**: global variable
1106
+
1107
+ | Param | Description |
1108
+ | --- | --- |
1109
+ | other_units | |
1110
+ | inventoryQuantity | |
1111
+ | isGrass | |
1112
+ | showNegativeInventory | <p>optionnal</p> |
1113
+
1114
+ <a name="getQty"></a>
1115
+
1116
+ ## getQty
1117
+ <p>Calculates inventory unit quantity for function getQty</p>
1118
+
1119
+ **Kind**: global variable
1120
+
1121
+ | Param |
1122
+ | --- |
1123
+ | value |
1124
+ | isUnitFittingUnit |
1125
+ | isNegativeQty |
1126
+
1127
+ <a name="recursiveCheckObject"></a>
1128
+
1129
+ ## recursiveCheckObject ⇒
1130
+ <p>Updates value of object by checking recursivly.</p>
1131
+
1132
+ **Kind**: global variable
1133
+ **Returns**: <p>updated object</p>
1134
+
1135
+ | Param | Description |
1136
+ | --- | --- |
1137
+ | allValues | <p>Full value object</p> |
1138
+ | newValue | <p>New value to update</p> |
1139
+ | propsToCheck | <p>Full key string associated to value to update, with nested keys seperated by dots (.). If the value to update is nested in an array, use square brackets with index between (ex. first_key.second_key[2].third_key)</p> |
1140
+
1141
+ <a name="getOrderedPromises"></a>
1142
+
1143
+ ## getOrderedPromises ⇒
1144
+ <p>Checks list of promises for applicable banks based on space bank types.</p>
1145
+
1146
+ **Kind**: global variable
1147
+ **Returns**: <p>An array of applicable banks. If no bank is active for a type, is not returned in array. If active bank of type is in a inactive promise, is returned with props pa_is_active: false.</p>
1148
+
1149
+ | Param | Description |
1150
+ | --- | --- |
1151
+ | promisesToCheck | <p>The promise list to check</p> |
1152
+ | possibleBanks | <p>the possible bank types (usually found in space data)</p> |
1153
+
1154
+ <a name="checkForApplicableBanks"></a>
1155
+
1156
+ ## checkForApplicableBanks
1157
+ <p>Returns if a promise is currently active. Promise is active if it is not archived, and if current date is same or after starting_date, and before ending_date (if defined).</p>
1158
+
1159
+ **Kind**: global variable
1160
+
1161
+ | Param | Description |
1162
+ | --- | --- |
1163
+ | promise | <p>the promise data to check</p> |
1164
+
1165
+ <a name="checkIfOtherBankOfSameTypeIsActive"></a>
1166
+
1167
+ ## checkIfOtherBankOfSameTypeIsActive
1168
+ <p>Returns translated name for a provided bank type ID.</p>
1169
+
1170
+ **Kind**: global variable
1171
+
1172
+ | Param | Description |
1173
+ | --- | --- |
1174
+ | allBankTypes | <p>The current bank types for space</p> |
1175
+ | bankTypeID | <p>The bank type ID for which we want a name</p> |
1176
+ | locale | <p>Optionnal. Defaults to 'fr'</p> |
1177
+
1178
+ <a name="getBankTypeName"></a>
1179
+
1180
+ ## getBankTypeName
1181
+ <p>Calculates the remaining amount for a specific promise's bank</p>
1182
+
1183
+ **Kind**: global variable
1184
+
1185
+ | Param | Description |
1186
+ | --- | --- |
1187
+ | initialBankAmount | <p>the initial amount of the bank</p> |
1188
+ | bankHistory | <p>array of all history entries for bank. Will be ordered by date before deducing amounts.</p> |
1189
+
1190
+ <a name="getIndexedByCustomerPromiseValues"></a>
1191
+
1192
+ ## getIndexedByCustomerPromiseValues ⇒
1193
+ <p>Returns the most recently emptied bank of a given type</p>
1194
+
1195
+ **Kind**: global variable
1196
+ **Returns**: <p>An IBank with a promise_unique_id</p>
1197
+
1198
+ | Param | Description |
1199
+ | --- | --- |
1200
+ | allCustomerPAsData | <p>the array of all promises to purchase we want to check</p> |
1201
+ | type | <p>the bank_type_id to check</p> |
1202
+ | promiseUniqueID | <p>the current promise unique id</p> |
1203
+
1204
+ <a name="getIndexServices"></a>
1205
+
1206
+ ## getIndexServices
1207
+ <p>Save new entry objects to provided search index services</p>
1208
+
1209
+ **Kind**: global variable
1210
+
1211
+ | Param | Description |
1212
+ | --- | --- |
1213
+ | services | <p>the services to check for save</p> |
1214
+ | newEntry | <p>the object to save</p> |
1215
+ | processLogStr | <p>the string to add to the log shown with service response</p> |
1216
+
1217
+ <a name="saveNewEntryToIndex"></a>
1218
+
1219
+ ## saveNewEntryToIndex
1220
+ <p>Save a partial object entry to provided search index services.</p>
1221
+
1222
+ **Kind**: global variable
1223
+
1224
+ | Param | Description |
1225
+ | --- | --- |
1226
+ | services | <p>the services to check for save</p> |
1227
+ | partialNewEntry | <p>the object to save</p> |
1228
+ | processLogStr | <p>the string to add to the log shown with service response</p> |
1229
+ | createIfNoExists | <p>= Optionnal. If should create entry if it does not already exist in search index</p> |
1230
+
1231
+ <a name="partialSaveNewEntryToIndex"></a>
1232
+
1233
+ ## partialSaveNewEntryToIndex
1234
+ <p>Returns an object with base info needed to call Algolia/AddioSearch with search query.</p>
1235
+
1236
+ **Kind**: global variable
1237
+
1238
+ | Param |
1239
+ | --- |
1240
+ | space |
1241
+
1242
+ <a name="getFetchInfoAlgoliaAddioSearch"></a>
1243
+
1244
+ ## getFetchInfoAlgoliaAddioSearch
1245
+ <p>Fetch entries from either algolia or AddioSearch (prospr) for a provided index. Client-side only!</p>
1246
+
1247
+ **Kind**: global variable
1248
+
1249
+ | Param |
1250
+ | --- |
1251
+ | param0 |
1252
+
1253
+ <a name="fetchEntriesAlgoliaAddioSearch"></a>
1254
+
1255
+ ## fetchEntriesAlgoliaAddioSearch
1256
+ <p>Returns search result from active search index service. Server-side friendly!</p>
1257
+
1258
+ **Kind**: global variable
1259
+
1260
+ | Param | Description |
1261
+ | --- | --- |
1262
+ | parameters | <p>Parsed parameters of IQueryProps. Space and indice must be provided, other props are optionnal.</p> |
1263
+
1264
+ <a name="isTestEnv"></a>
1265
+
1266
+ ## isTestEnv
1267
+ <p>TBSDK - SDK Manager</p>
1268
+ <p>Client SDK to access TheBEAST eCommerce</p>
1269
+
1270
+ **Kind**: global constant
1271
+ <a name="spaceInitData"></a>
1272
+
1273
+ ## spaceInitData
1274
+ <p>Use this object to change which space is being tested!</p>
1275
+
1276
+ **Kind**: global constant
1277
+ <a name="getMinDatePicker"></a>
1278
+
1279
+ ## getMinDatePicker()
1280
+ <p>Sets the minimum shipping day for delivery</p>
1281
+
1282
+ **Kind**: global function
1283
+ <a name="getProductSellUnitLabel"></a>
1284
+
1285
+ ## getProductSellUnitLabel(otherUnits, locale, returnUnitForSlugs) ⇒ <code>string</code>
1286
+ <p>Returns sell unit label in correct language for a specific product's other_units</p>
1287
+
1288
+ **Kind**: global function
1289
+ **Returns**: <code>string</code> - <p>The sell unit label in the correct language</p>
1290
+
1291
+ | Param | Type | Default | Description |
1292
+ | --- | --- | --- | --- |
1293
+ | otherUnits | <code>Array.&lt;IFilledDimensionUnits&gt;</code> \| <code>undefined</code> | | <p>The unit array we have to check to get the sell unit</p> |
1294
+ | locale | <code>string</code> \| <code>undefined</code> | <code>&quot;fr&quot;</code> | <p>The language in which we want to return the label</p> |
1295
+ | returnUnitForSlugs | <code>Array.&lt;string&gt;</code> | | <p>An array of the slugs we want to return the unit label for</p> |
1296
+
1297
+ <a name="splitOnDashes"></a>
1298
+
1299
+ ## splitOnDashes(stringToSplit) ⇒ <code>Array.&lt;string&gt;</code>
1300
+ **Kind**: global function
1301
+
1302
+ | Param | Type | Description |
1303
+ | --- | --- | --- |
1304
+ | stringToSplit | <code>string</code> | |
1305
+ | dummyStringToReplace.currentValue, | <code>string</code> | <p>optionnal, default : '%%-%%'. Used to provide general replace values for a specific string. Is applied to both sections of the splitted string.</p> |
1306
+ | dummyStringToReplace.newValue, | <code>string</code> | <p>optionnal, default : ' - '. Used to provide general replace values for a specific string. Is applied to both sections of the splitted string.</p> |
1307
+
1308
+ <a name="getRandomValue"></a>
1309
+
1310
+ ## getRandomValue(val, type) ⇒
1311
+ <p>Replace a value with anonymized value</p>
1312
+
1313
+ **Kind**: global function
1314
+ **Returns**: <p>the new value</p>
1315
+
1316
+ | Param | Description |
1317
+ | --- | --- |
1318
+ | val | <p>The original value</p> |
1319
+ | type | <p>The type of data</p> |
1320
+
1321
+ <a name="getCartPromo"></a>
1322
+
1323
+ ## getCartPromo(cartData)
1324
+ <p>Get formatted array of cart promos applied to a specific cart</p>
1325
+
1326
+ **Kind**: global function
1327
+
1328
+ | Param |
1329
+ | --- |
1330
+ | cartData |
1331
+
1332
+ <a name="_checkRuleApplicationArray"></a>
1333
+
1334
+ ## \_checkRuleApplicationArray(checkedRulesApplicationArray) ⇒
1335
+ <p>Checks if discount rule should be applied to cart based on each rule verification results.</p>
1336
+
1337
+ **Kind**: global function
1338
+ **Returns**: <p>A boolean</p>
1339
+
1340
+ | Param | Description |
1341
+ | --- | --- |
1342
+ | checkedRulesApplicationArray | <p>Array where each position is a verified rule result (condition with passed of failed (boolean))</p> |
1343
+
1344
+ <a name="checkIfCouldApplyIncentivePromo"></a>
1345
+
1346
+ ## checkIfCouldApplyIncentivePromo(cartData, skipCheckFor) ⇒
1347
+ <p>Checks if an incentive discount could (in theory) by added to provided cart, by checking found incentive discount's rule array.</p>
1348
+
1349
+ **Kind**: global function
1350
+ **Returns**: <p>a boolean</p>
1351
+
1352
+ | Param | Description |
1353
+ | --- | --- |
1354
+ | cartData | <p>The cart to check (checks discount_rules for incentive)</p> |
1355
+ | skipCheckFor | <p>If certain rules should be ignore for check</p> |
1356
+
1357
+ <a name="getOrderedPromises"></a>
1358
+
1359
+ ## getOrderedPromises(promises)
1360
+ <p>Get ordered array of promise data objects by starting date.</p>
1361
+
1362
+ **Kind**: global function
1363
+
1364
+ | Param |
1365
+ | --- |
1366
+ | promises |
1367
+
1368
+ <a name="getIndexServices"></a>
1369
+
1370
+ ## getIndexServices(space, partialIndexID)
1371
+ <p>Returns objet with possible index service instances
1372
+ As of now, checks for Algolia and Addio Search</p>
1373
+
1374
+ **Kind**: global function
1375
+
1376
+ | Param | Description |
1377
+ | --- | --- |
1378
+ | space | <p>the spaceObj to check</p> |
1379
+ | partialIndexID | <p>the partial index ID to consult for search, excluding the env. variable (prod_ or test_ will be added in function). ** Important to use index ID, not table ID!</p> |
1380
+