@tonysamperi/ts-mapi-core 1.0.0

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 (356) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/changelog.md +2 -0
  4. package/dist/cjs/index.cjs +2 -0
  5. package/dist/cjs/index.cjs.map +1 -0
  6. package/dist/cjs/index.d.cts +59 -0
  7. package/dist/cjs/services/firebase/index.cjs +2 -0
  8. package/dist/cjs/services/firebase/index.cjs.map +1 -0
  9. package/dist/cjs/services/firebase/index.d.cts +7 -0
  10. package/dist/cjs/services/firebase/smp-firebase-service-config.interface.cjs +2 -0
  11. package/dist/cjs/services/firebase/smp-firebase-service-config.interface.cjs.map +1 -0
  12. package/dist/cjs/services/firebase/smp-firebase-service-config.interface.d.cts +12 -0
  13. package/dist/cjs/services/firebase/smp-firebase.service.cjs +2 -0
  14. package/dist/cjs/services/firebase/smp-firebase.service.cjs.map +1 -0
  15. package/dist/cjs/services/firebase/smp-firebase.service.d.cts +56 -0
  16. package/dist/cjs/services/http/index.cjs +2 -0
  17. package/dist/cjs/services/http/index.cjs.map +1 -0
  18. package/dist/cjs/services/http/index.d.cts +9 -0
  19. package/dist/cjs/services/http/smp-dynamic-fetch-return.type.cjs +2 -0
  20. package/dist/cjs/services/http/smp-dynamic-fetch-return.type.cjs.map +1 -0
  21. package/dist/cjs/services/http/smp-dynamic-fetch-return.type.d.cts +3 -0
  22. package/dist/cjs/services/http/smp-http-config.interface.cjs +2 -0
  23. package/dist/cjs/services/http/smp-http-config.interface.cjs.map +1 -0
  24. package/dist/cjs/services/http/smp-http-config.interface.d.cts +16 -0
  25. package/dist/cjs/services/http/smp-http-session-storage-cache.class.cjs +2 -0
  26. package/dist/cjs/services/http/smp-http-session-storage-cache.class.cjs.map +1 -0
  27. package/dist/cjs/services/http/smp-http-session-storage-cache.class.d.cts +8 -0
  28. package/dist/cjs/services/http/smp-http-status-code.enum.cjs +2 -0
  29. package/dist/cjs/services/http/smp-http-status-code.enum.cjs.map +1 -0
  30. package/dist/cjs/services/http/smp-http-status-code.enum.d.cts +70 -0
  31. package/dist/cjs/services/http/smp-http.service.cjs +2 -0
  32. package/dist/cjs/services/http/smp-http.service.cjs.map +1 -0
  33. package/dist/cjs/services/http/smp-http.service.d.cts +43 -0
  34. package/dist/cjs/services/index.cjs +2 -0
  35. package/dist/cjs/services/index.cjs.map +1 -0
  36. package/dist/cjs/services/index.d.cts +19 -0
  37. package/dist/cjs/services/smp-dynamo.service.cjs +2 -0
  38. package/dist/cjs/services/smp-dynamo.service.cjs.map +1 -0
  39. package/dist/cjs/services/smp-dynamo.service.d.cts +39 -0
  40. package/dist/cjs/shared/api/index.cjs +2 -0
  41. package/dist/cjs/shared/api/index.cjs.map +1 -0
  42. package/dist/cjs/shared/api/index.d.cts +10 -0
  43. package/dist/cjs/shared/api/smp-api-common-utils.class.cjs +2 -0
  44. package/dist/cjs/shared/api/smp-api-common-utils.class.cjs.map +1 -0
  45. package/dist/cjs/shared/api/smp-api-common-utils.class.d.cts +15 -0
  46. package/dist/cjs/shared/api/smp-error-response.class.cjs +2 -0
  47. package/dist/cjs/shared/api/smp-error-response.class.cjs.map +1 -0
  48. package/dist/cjs/shared/api/smp-error-response.class.d.cts +35 -0
  49. package/dist/cjs/shared/api/smp-generic-response-base.interface.cjs +2 -0
  50. package/dist/cjs/shared/api/smp-generic-response-base.interface.cjs.map +1 -0
  51. package/dist/cjs/shared/api/smp-generic-response-base.interface.d.cts +9 -0
  52. package/dist/cjs/shared/api/smp-generic-response.class.cjs +2 -0
  53. package/dist/cjs/shared/api/smp-generic-response.class.cjs.map +1 -0
  54. package/dist/cjs/shared/api/smp-generic-response.class.d.cts +20 -0
  55. package/dist/cjs/shared/api/smp-healtz.const.cjs +2 -0
  56. package/dist/cjs/shared/api/smp-healtz.const.cjs.map +1 -0
  57. package/dist/cjs/shared/api/smp-healtz.const.d.cts +5 -0
  58. package/dist/cjs/shared/api/smp-response-message-base.interface.cjs +2 -0
  59. package/dist/cjs/shared/api/smp-response-message-base.interface.cjs.map +1 -0
  60. package/dist/cjs/shared/api/smp-response-message-base.interface.d.cts +8 -0
  61. package/dist/cjs/shared/api/smp-response-message-types.enum.cjs +2 -0
  62. package/dist/cjs/shared/api/smp-response-message-types.enum.cjs.map +1 -0
  63. package/dist/cjs/shared/api/smp-response-message-types.enum.d.cts +8 -0
  64. package/dist/cjs/shared/api/smp-response-message.class.cjs +2 -0
  65. package/dist/cjs/shared/api/smp-response-message.class.cjs.map +1 -0
  66. package/dist/cjs/shared/api/smp-response-message.class.d.cts +13 -0
  67. package/dist/cjs/shared/api/smp-rest-verbs.enum.cjs +2 -0
  68. package/dist/cjs/shared/api/smp-rest-verbs.enum.cjs.map +1 -0
  69. package/dist/cjs/shared/api/smp-rest-verbs.enum.d.cts +9 -0
  70. package/dist/cjs/shared/common/index.cjs +2 -0
  71. package/dist/cjs/shared/common/index.cjs.map +1 -0
  72. package/dist/cjs/shared/common/index.d.cts +4 -0
  73. package/dist/cjs/shared/common/smp-generic-constructor.type.cjs +2 -0
  74. package/dist/cjs/shared/common/smp-generic-constructor.type.cjs.map +1 -0
  75. package/dist/cjs/shared/common/smp-generic-constructor.type.d.cts +3 -0
  76. package/dist/cjs/shared/common/smp-primitives.type.cjs +2 -0
  77. package/dist/cjs/shared/common/smp-primitives.type.cjs.map +1 -0
  78. package/dist/cjs/shared/common/smp-primitives.type.d.cts +3 -0
  79. package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.cjs +2 -0
  80. package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.cjs.map +1 -0
  81. package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.d.cts +7 -0
  82. package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.cjs +2 -0
  83. package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.cjs.map +1 -0
  84. package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.d.cts +6 -0
  85. package/dist/cjs/shared/crypto/index.cjs +2 -0
  86. package/dist/cjs/shared/crypto/index.cjs.map +1 -0
  87. package/dist/cjs/shared/crypto/index.d.cts +3 -0
  88. package/dist/cjs/shared/crypto/smp-aes-crypt.class.cjs +2 -0
  89. package/dist/cjs/shared/crypto/smp-aes-crypt.class.cjs.map +1 -0
  90. package/dist/cjs/shared/crypto/smp-aes-crypt.class.d.cts +1 -0
  91. package/dist/cjs/shared/crypto/smp-crypto.class.cjs +2 -0
  92. package/dist/cjs/shared/crypto/smp-crypto.class.cjs.map +1 -0
  93. package/dist/cjs/shared/crypto/smp-crypto.class.d.cts +10 -0
  94. package/dist/cjs/shared/crypto/smp-secure-code.class.cjs +2 -0
  95. package/dist/cjs/shared/crypto/smp-secure-code.class.cjs.map +1 -0
  96. package/dist/cjs/shared/crypto/smp-secure-code.class.d.cts +15 -0
  97. package/dist/cjs/shared/firebase/index.cjs +2 -0
  98. package/dist/cjs/shared/firebase/index.cjs.map +1 -0
  99. package/dist/cjs/shared/firebase/index.d.cts +1 -0
  100. package/dist/cjs/shared/firebase/smp-firebase-errors.enum.cjs +2 -0
  101. package/dist/cjs/shared/firebase/smp-firebase-errors.enum.cjs.map +1 -0
  102. package/dist/cjs/shared/firebase/smp-firebase-errors.enum.d.cts +14 -0
  103. package/dist/cjs/shared/giftcard/index.cjs +2 -0
  104. package/dist/cjs/shared/giftcard/index.cjs.map +1 -0
  105. package/dist/cjs/shared/giftcard/index.d.cts +8 -0
  106. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.cjs +2 -0
  107. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.cjs.map +1 -0
  108. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.d.cts +11 -0
  109. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.cjs +2 -0
  110. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.cjs.map +1 -0
  111. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.d.cts +8 -0
  112. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.cjs +2 -0
  113. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.cjs.map +1 -0
  114. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.d.cts +16 -0
  115. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.cjs +2 -0
  116. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.cjs.map +1 -0
  117. package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.d.cts +8 -0
  118. package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.cjs +2 -0
  119. package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.cjs.map +1 -0
  120. package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.d.cts +56 -0
  121. package/dist/cjs/shared/marketing-cloud/index.cjs +2 -0
  122. package/dist/cjs/shared/marketing-cloud/index.cjs.map +1 -0
  123. package/dist/cjs/shared/marketing-cloud/index.d.cts +2 -0
  124. package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.cjs +2 -0
  125. package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.cjs.map +1 -0
  126. package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.cts +14 -0
  127. package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.cjs +2 -0
  128. package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.cjs.map +1 -0
  129. package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.d.cts +7 -0
  130. package/dist/cjs/shared/rxjs/index.cjs +2 -0
  131. package/dist/cjs/shared/rxjs/index.cjs.map +1 -0
  132. package/dist/cjs/shared/rxjs/index.d.cts +3 -0
  133. package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.cjs +2 -0
  134. package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.cjs.map +1 -0
  135. package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.d.cts +38 -0
  136. package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.cjs +2 -0
  137. package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.cjs.map +1 -0
  138. package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.d.cts +30 -0
  139. package/dist/cjs/shared/utils/cache/index.cjs +2 -0
  140. package/dist/cjs/shared/utils/cache/index.cjs.map +1 -0
  141. package/dist/cjs/shared/utils/cache/index.d.cts +3 -0
  142. package/dist/cjs/shared/utils/cache/smp-browser-cache.class.cjs +2 -0
  143. package/dist/cjs/shared/utils/cache/smp-browser-cache.class.cjs.map +1 -0
  144. package/dist/cjs/shared/utils/cache/smp-browser-cache.class.d.cts +13 -0
  145. package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.cjs +2 -0
  146. package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.cjs.map +1 -0
  147. package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.d.cts +8 -0
  148. package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.cjs +2 -0
  149. package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.cjs.map +1 -0
  150. package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.d.cts +12 -0
  151. package/dist/cjs/shared/utils/index.cjs +2 -0
  152. package/dist/cjs/shared/utils/index.cjs.map +1 -0
  153. package/dist/cjs/shared/utils/index.d.cts +10 -0
  154. package/dist/cjs/shared/utils/smp-ascii-words.function.cjs +2 -0
  155. package/dist/cjs/shared/utils/smp-ascii-words.function.cjs.map +1 -0
  156. package/dist/cjs/shared/utils/smp-ascii-words.function.d.cts +3 -0
  157. package/dist/cjs/shared/utils/smp-common-utils.class.cjs +2 -0
  158. package/dist/cjs/shared/utils/smp-common-utils.class.cjs.map +1 -0
  159. package/dist/cjs/shared/utils/smp-common-utils.class.d.cts +100 -0
  160. package/dist/cjs/shared/utils/smp-filter-exception.class.cjs +2 -0
  161. package/dist/cjs/shared/utils/smp-filter-exception.class.cjs.map +1 -0
  162. package/dist/cjs/shared/utils/smp-filter-exception.class.d.cts +7 -0
  163. package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.cjs +2 -0
  164. package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.cjs.map +1 -0
  165. package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.d.cts +6 -0
  166. package/dist/cjs/shared/utils/smp-noop.function.cjs +2 -0
  167. package/dist/cjs/shared/utils/smp-noop.function.cjs.map +1 -0
  168. package/dist/cjs/shared/utils/smp-noop.function.d.cts +3 -0
  169. package/dist/cjs/shared/utils/smp-regular-expressions.class.cjs +2 -0
  170. package/dist/cjs/shared/utils/smp-regular-expressions.class.cjs.map +1 -0
  171. package/dist/cjs/shared/utils/smp-regular-expressions.class.d.cts +16 -0
  172. package/dist/cjs/shared/utils/smp-sid.class.cjs +2 -0
  173. package/dist/cjs/shared/utils/smp-sid.class.cjs.map +1 -0
  174. package/dist/cjs/shared/utils/smp-sid.class.d.cts +18 -0
  175. package/dist/cjs/shared/utils/smp-unicode-words.class.cjs +2 -0
  176. package/dist/cjs/shared/utils/smp-unicode-words.class.cjs.map +1 -0
  177. package/dist/cjs/shared/utils/smp-unicode-words.class.d.cts +15 -0
  178. package/dist/cjs/smp-aes-crypt.class-CI82T7GV.d.cts +470 -0
  179. package/dist/cjs/smp-logger-methods.class-F7p-lMeQ.d.cts +66 -0
  180. package/dist/esm/chunk-24AHYMAJ.js +0 -0
  181. package/dist/esm/chunk-2DFXGAWG.js +1 -0
  182. package/dist/esm/chunk-2Q3A3WHV.js +1 -0
  183. package/dist/esm/chunk-2TQSQ6UP.js +1 -0
  184. package/dist/esm/chunk-2YYH6VGI.js +1 -0
  185. package/dist/esm/chunk-4S2VS5TZ.js +1 -0
  186. package/dist/esm/chunk-5D4O273A.js +1 -0
  187. package/dist/esm/chunk-5VHPHFOY.js +1 -0
  188. package/dist/esm/chunk-73A5OTVH.js +1 -0
  189. package/dist/esm/chunk-77XHVETN.js +0 -0
  190. package/dist/esm/chunk-7FC5ZQDK.js +1 -0
  191. package/dist/esm/chunk-7ZJA47VN.js +1 -0
  192. package/dist/esm/chunk-AOHQUNHA.js +0 -0
  193. package/dist/esm/chunk-APLEU3C2.js +1 -0
  194. package/dist/esm/chunk-BCKQYO6O.js +0 -0
  195. package/dist/esm/chunk-BIAKHPIF.js +0 -0
  196. package/dist/esm/chunk-BWZ6SM6P.js +0 -0
  197. package/dist/esm/chunk-BYEFRPVT.js +1 -0
  198. package/dist/esm/chunk-C2FQU2TR.js +1 -0
  199. package/dist/esm/chunk-D66G2KIE.js +0 -0
  200. package/dist/esm/chunk-EHABREBA.js +0 -0
  201. package/dist/esm/chunk-EZ4NN7JG.js +0 -0
  202. package/dist/esm/chunk-GYZH6FYB.js +1 -0
  203. package/dist/esm/chunk-H5UU33RN.js +1 -0
  204. package/dist/esm/chunk-HA3BETKN.js +1 -0
  205. package/dist/esm/chunk-HOM5S5W3.js +0 -0
  206. package/dist/esm/chunk-HTUF5T5K.js +1 -0
  207. package/dist/esm/chunk-IFZTF7A7.js +1 -0
  208. package/dist/esm/chunk-IZD3BY3X.js +1 -0
  209. package/dist/esm/chunk-J6MWJEP3.js +1 -0
  210. package/dist/esm/chunk-JCZRE6MU.js +1 -0
  211. package/dist/esm/chunk-JFKSI6I7.js +1 -0
  212. package/dist/esm/chunk-JP7P2SIN.js +1 -0
  213. package/dist/esm/chunk-JSNCOALE.js +0 -0
  214. package/dist/esm/chunk-KIMBWGNC.js +1 -0
  215. package/dist/esm/chunk-NIN4PUZX.js +0 -0
  216. package/dist/esm/chunk-NOYOAWWX.js +1 -0
  217. package/dist/esm/chunk-NPHREL4D.js +1 -0
  218. package/dist/esm/chunk-NQICKEAS.js +0 -0
  219. package/dist/esm/chunk-NRABUNRU.js +1 -0
  220. package/dist/esm/chunk-OMUFNPZF.js +1 -0
  221. package/dist/esm/chunk-Q77KUWBZ.js +0 -0
  222. package/dist/esm/chunk-QCY65CEY.js +1 -0
  223. package/dist/esm/chunk-RFVBH4FB.js +1 -0
  224. package/dist/esm/chunk-RQMWVXXI.js +1 -0
  225. package/dist/esm/chunk-SCRNHKVE.js +0 -0
  226. package/dist/esm/chunk-SDQLEPBS.js +0 -0
  227. package/dist/esm/chunk-T3P4NVTG.js +0 -0
  228. package/dist/esm/chunk-THA6XUM5.js +1 -0
  229. package/dist/esm/chunk-THUEL7AA.js +0 -0
  230. package/dist/esm/chunk-UHEBXSHT.js +0 -0
  231. package/dist/esm/chunk-VA34RBMX.js +0 -0
  232. package/dist/esm/chunk-VFSRM2TJ.js +1 -0
  233. package/dist/esm/chunk-VQRTVHM5.js +1 -0
  234. package/dist/esm/chunk-VU2BXAMO.js +0 -0
  235. package/dist/esm/chunk-WVAB4IBD.js +0 -0
  236. package/dist/esm/chunk-XBCBZ3FR.js +1 -0
  237. package/dist/esm/chunk-YSQCITEQ.js +1 -0
  238. package/dist/esm/index.d.ts +54 -0
  239. package/dist/esm/index.js +1 -0
  240. package/dist/esm/services/firebase/index.d.ts +7 -0
  241. package/dist/esm/services/firebase/index.js +1 -0
  242. package/dist/esm/services/firebase/smp-firebase-service-config.interface.d.ts +12 -0
  243. package/dist/esm/services/firebase/smp-firebase-service-config.interface.js +1 -0
  244. package/dist/esm/services/firebase/smp-firebase.service.d.ts +56 -0
  245. package/dist/esm/services/firebase/smp-firebase.service.js +1 -0
  246. package/dist/esm/services/http/index.d.ts +9 -0
  247. package/dist/esm/services/http/index.js +1 -0
  248. package/dist/esm/services/http/smp-dynamic-fetch-return.type.d.ts +3 -0
  249. package/dist/esm/services/http/smp-dynamic-fetch-return.type.js +0 -0
  250. package/dist/esm/services/http/smp-http-config.interface.d.ts +16 -0
  251. package/dist/esm/services/http/smp-http-config.interface.js +1 -0
  252. package/dist/esm/services/http/smp-http-session-storage-cache.class.d.ts +8 -0
  253. package/dist/esm/services/http/smp-http-session-storage-cache.class.js +1 -0
  254. package/dist/esm/services/http/smp-http-status-code.enum.d.ts +70 -0
  255. package/dist/esm/services/http/smp-http-status-code.enum.js +1 -0
  256. package/dist/esm/services/http/smp-http.service.d.ts +43 -0
  257. package/dist/esm/services/http/smp-http.service.js +1 -0
  258. package/dist/esm/services/index.d.ts +19 -0
  259. package/dist/esm/services/index.js +1 -0
  260. package/dist/esm/services/smp-dynamo.service.d.ts +39 -0
  261. package/dist/esm/services/smp-dynamo.service.js +1 -0
  262. package/dist/esm/shared/api/index.d.ts +10 -0
  263. package/dist/esm/shared/api/index.js +1 -0
  264. package/dist/esm/shared/api/smp-api-common-utils.class.d.ts +15 -0
  265. package/dist/esm/shared/api/smp-api-common-utils.class.js +1 -0
  266. package/dist/esm/shared/api/smp-error-response.class.d.ts +35 -0
  267. package/dist/esm/shared/api/smp-error-response.class.js +1 -0
  268. package/dist/esm/shared/api/smp-generic-response-base.interface.d.ts +9 -0
  269. package/dist/esm/shared/api/smp-generic-response-base.interface.js +1 -0
  270. package/dist/esm/shared/api/smp-generic-response.class.d.ts +20 -0
  271. package/dist/esm/shared/api/smp-generic-response.class.js +1 -0
  272. package/dist/esm/shared/api/smp-healtz.const.d.ts +5 -0
  273. package/dist/esm/shared/api/smp-healtz.const.js +1 -0
  274. package/dist/esm/shared/api/smp-response-message-base.interface.d.ts +8 -0
  275. package/dist/esm/shared/api/smp-response-message-base.interface.js +1 -0
  276. package/dist/esm/shared/api/smp-response-message-types.enum.d.ts +8 -0
  277. package/dist/esm/shared/api/smp-response-message-types.enum.js +1 -0
  278. package/dist/esm/shared/api/smp-response-message.class.d.ts +13 -0
  279. package/dist/esm/shared/api/smp-response-message.class.js +1 -0
  280. package/dist/esm/shared/api/smp-rest-verbs.enum.d.ts +9 -0
  281. package/dist/esm/shared/api/smp-rest-verbs.enum.js +1 -0
  282. package/dist/esm/shared/common/index.d.ts +4 -0
  283. package/dist/esm/shared/common/index.js +1 -0
  284. package/dist/esm/shared/common/smp-generic-constructor.type.d.ts +3 -0
  285. package/dist/esm/shared/common/smp-generic-constructor.type.js +1 -0
  286. package/dist/esm/shared/common/smp-primitives.type.d.ts +3 -0
  287. package/dist/esm/shared/common/smp-primitives.type.js +1 -0
  288. package/dist/esm/shared/common/smp-social-sign-in-keys.enum.d.ts +7 -0
  289. package/dist/esm/shared/common/smp-social-sign-in-keys.enum.js +1 -0
  290. package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.d.ts +6 -0
  291. package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.js +1 -0
  292. package/dist/esm/shared/crypto/index.d.ts +3 -0
  293. package/dist/esm/shared/crypto/index.js +1 -0
  294. package/dist/esm/shared/crypto/smp-aes-crypt.class.d.ts +1 -0
  295. package/dist/esm/shared/crypto/smp-aes-crypt.class.js +1 -0
  296. package/dist/esm/shared/crypto/smp-crypto.class.d.ts +10 -0
  297. package/dist/esm/shared/crypto/smp-crypto.class.js +1 -0
  298. package/dist/esm/shared/crypto/smp-secure-code.class.d.ts +15 -0
  299. package/dist/esm/shared/crypto/smp-secure-code.class.js +1 -0
  300. package/dist/esm/shared/firebase/index.d.ts +1 -0
  301. package/dist/esm/shared/firebase/index.js +1 -0
  302. package/dist/esm/shared/firebase/smp-firebase-errors.enum.d.ts +14 -0
  303. package/dist/esm/shared/firebase/smp-firebase-errors.enum.js +1 -0
  304. package/dist/esm/shared/giftcard/index.d.ts +8 -0
  305. package/dist/esm/shared/giftcard/index.js +1 -0
  306. package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.d.ts +11 -0
  307. package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.js +1 -0
  308. package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.d.ts +8 -0
  309. package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.js +1 -0
  310. package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.d.ts +16 -0
  311. package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.js +1 -0
  312. package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.d.ts +8 -0
  313. package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.js +1 -0
  314. package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.d.ts +56 -0
  315. package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.js +1 -0
  316. package/dist/esm/shared/marketing-cloud/index.d.ts +2 -0
  317. package/dist/esm/shared/marketing-cloud/index.js +1 -0
  318. package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.ts +14 -0
  319. package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.js +1 -0
  320. package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.d.ts +7 -0
  321. package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.js +1 -0
  322. package/dist/esm/shared/rxjs/index.d.ts +3 -0
  323. package/dist/esm/shared/rxjs/index.js +1 -0
  324. package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.d.ts +38 -0
  325. package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.js +1 -0
  326. package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.d.ts +30 -0
  327. package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.js +1 -0
  328. package/dist/esm/shared/utils/cache/index.d.ts +3 -0
  329. package/dist/esm/shared/utils/cache/index.js +1 -0
  330. package/dist/esm/shared/utils/cache/smp-browser-cache.class.d.ts +13 -0
  331. package/dist/esm/shared/utils/cache/smp-browser-cache.class.js +1 -0
  332. package/dist/esm/shared/utils/cache/smp-cache-strategy.interface.d.ts +8 -0
  333. package/dist/esm/shared/utils/cache/smp-cache-strategy.interface.js +1 -0
  334. package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.d.ts +12 -0
  335. package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.js +1 -0
  336. package/dist/esm/shared/utils/index.d.ts +10 -0
  337. package/dist/esm/shared/utils/index.js +1 -0
  338. package/dist/esm/shared/utils/smp-ascii-words.function.d.ts +3 -0
  339. package/dist/esm/shared/utils/smp-ascii-words.function.js +1 -0
  340. package/dist/esm/shared/utils/smp-common-utils.class.d.ts +100 -0
  341. package/dist/esm/shared/utils/smp-common-utils.class.js +1 -0
  342. package/dist/esm/shared/utils/smp-filter-exception.class.d.ts +7 -0
  343. package/dist/esm/shared/utils/smp-filter-exception.class.js +1 -0
  344. package/dist/esm/shared/utils/smp-gcpsid-raw.interface.d.ts +6 -0
  345. package/dist/esm/shared/utils/smp-gcpsid-raw.interface.js +0 -0
  346. package/dist/esm/shared/utils/smp-noop.function.d.ts +3 -0
  347. package/dist/esm/shared/utils/smp-noop.function.js +1 -0
  348. package/dist/esm/shared/utils/smp-regular-expressions.class.d.ts +16 -0
  349. package/dist/esm/shared/utils/smp-regular-expressions.class.js +1 -0
  350. package/dist/esm/shared/utils/smp-sid.class.d.ts +18 -0
  351. package/dist/esm/shared/utils/smp-sid.class.js +1 -0
  352. package/dist/esm/shared/utils/smp-unicode-words.class.d.ts +15 -0
  353. package/dist/esm/shared/utils/smp-unicode-words.class.js +1 -0
  354. package/dist/esm/smp-aes-crypt.class-CI82T7GV.d.ts +470 -0
  355. package/dist/esm/smp-logger-methods.class-F7p-lMeQ.d.ts +66 -0
  356. package/package.json +88 -0
@@ -0,0 +1,10 @@
1
+ export { SmpApiCommonUtils } from './smp-api-common-utils.class.js';
2
+ export { SmpErrorResponse } from './smp-error-response.class.js';
3
+ export { SmpGenericResponse } from './smp-generic-response.class.js';
4
+ export { SmpGenericResponseBase } from './smp-generic-response-base.interface.js';
5
+ export { SMP_HEALTHZ } from './smp-healtz.const.js';
6
+ export { SmpResponseMessage } from './smp-response-message.class.js';
7
+ export { SmpResponseMessageBase } from './smp-response-message-base.interface.js';
8
+ export { SmpResponseMessageTypes } from './smp-response-message-types.enum.js';
9
+ export { SmpRestVerbs } from './smp-rest-verbs.enum.js';
10
+ import '../../smp-logger-methods.class-F7p-lMeQ.js';
@@ -0,0 +1 @@
1
+ import"../../chunk-UHEBXSHT.js";import{a as f}from"../../chunk-2YYH6VGI.js";import"../../chunk-77XHVETN.js";import{a as g}from"../../chunk-2DFXGAWG.js";import{a as e}from"../../chunk-4S2VS5TZ.js";import"../../chunk-BCKQYO6O.js";import"../../chunk-73A5OTVH.js";import"../../chunk-NOYOAWWX.js";import{a as d}from"../../chunk-OMUFNPZF.js";import{a as c}from"../../chunk-BYEFRPVT.js";import{a as b}from"../../chunk-2TQSQ6UP.js";import{a}from"../../chunk-H5UU33RN.js";import"../../chunk-JFKSI6I7.js";export{f as SMP_HEALTHZ,e as SmpApiCommonUtils,d as SmpErrorResponse,c as SmpGenericResponse,b as SmpResponseMessage,a as SmpResponseMessageTypes,g as SmpRestVerbs};
@@ -0,0 +1,15 @@
1
+ import { S as SmpLoggerMethods } from '../../smp-logger-methods.class-F7p-lMeQ.js';
2
+
3
+ declare class SmpApiCommonUtils {
4
+ protected static _javascriptVariablePattern: string;
5
+ protected static _logger: SmpLoggerMethods;
6
+ protected static _pathParamRegex: RegExp;
7
+ static credentialsToBasicAuth(user: string, password: string): string;
8
+ static fromBearer(header?: string): string;
9
+ static getCountryFromReferer(referer: string): string | void;
10
+ static getLanguageFromReferer(referer: string): string | void;
11
+ static getLocaleFromReferer(referer: string): string | void;
12
+ static interpolateParams(urlTemplate: string, params: Record<string, string | number | boolean>): string;
13
+ }
14
+
15
+ export { SmpApiCommonUtils };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-4S2VS5TZ.js";import"../../chunk-73A5OTVH.js";import"../../chunk-NOYOAWWX.js";import"../../chunk-JFKSI6I7.js";export{a as SmpApiCommonUtils};
@@ -0,0 +1,35 @@
1
+ import { SmpGenericResponseBase } from './smp-generic-response-base.interface.js';
2
+ import { SmpGenericResponse } from './smp-generic-response.class.js';
3
+ import { SmpResponseMessage } from './smp-response-message.class.js';
4
+ import './smp-response-message-base.interface.js';
5
+ import './smp-response-message-types.enum.js';
6
+
7
+ type ResponseMessageUnion = string | SmpResponseMessage;
8
+ interface SmpErrorResponseCreateOpts<T> {
9
+ messages: ResponseMessageUnion | ResponseMessageUnion[];
10
+ errorCode: number | string;
11
+ status: number;
12
+ data: T;
13
+ }
14
+ declare class SmpErrorResponse<T = any> extends SmpGenericResponse<T, SmpGenericResponseBase & Pick<SmpErrorResponse, "errorCode" | "timestamp" | "status">> {
15
+ protected _errorCode: number | string;
16
+ protected _status: number;
17
+ get errorCode(): number | string;
18
+ get status(): number;
19
+ get timestamp(): number;
20
+ protected _timestamp: number;
21
+ constructor(messages?: SmpResponseMessage[], _errorCode?: number | string, _status?: number, data?: T);
22
+ /**
23
+ * @deprecated
24
+ * @see SmpErrorResponse.create
25
+ */
26
+ static build<T>(messages?: ResponseMessageUnion | ResponseMessageUnion[], errorCode?: number | string, status?: number, data?: T): SmpErrorResponse;
27
+ static create<T>({ messages, ...opts }: Partial<SmpErrorResponseCreateOpts<T>>): SmpErrorResponse;
28
+ /**
29
+ * This shouldn't be necessary, but it's a workaround for this bug https://github.com/typestack/class-transformer/issues/1807
30
+ * @param plain
31
+ */
32
+ static fromPlain(plain: unknown): SmpErrorResponse<any>;
33
+ }
34
+
35
+ export { SmpErrorResponse };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-OMUFNPZF.js";import"../../chunk-BYEFRPVT.js";import"../../chunk-2TQSQ6UP.js";import"../../chunk-H5UU33RN.js";import"../../chunk-JFKSI6I7.js";export{a as SmpErrorResponse};
@@ -0,0 +1,9 @@
1
+ import { SmpResponseMessageBase } from './smp-response-message-base.interface.js';
2
+ import './smp-response-message-types.enum.js';
3
+
4
+ interface SmpGenericResponseBase<T = any> {
5
+ data?: T;
6
+ messages: SmpResponseMessageBase[] | void;
7
+ }
8
+
9
+ export type { SmpGenericResponseBase };
@@ -0,0 +1 @@
1
+ import"../../chunk-BCKQYO6O.js";
@@ -0,0 +1,20 @@
1
+ import { SmpGenericResponseBase } from './smp-generic-response-base.interface.js';
2
+ import { SmpResponseMessage } from './smp-response-message.class.js';
3
+ import './smp-response-message-base.interface.js';
4
+ import './smp-response-message-types.enum.js';
5
+
6
+ declare class SmpGenericResponse<T, U = SmpGenericResponseBase> implements SmpGenericResponseBase<T> {
7
+ protected _messages: SmpResponseMessage[];
8
+ data?: T | undefined;
9
+ set messages(newValue: string | SmpResponseMessage | (SmpResponseMessage | string)[]);
10
+ get messages(): SmpResponseMessage[] | void;
11
+ constructor(_messages?: SmpResponseMessage[], data?: T | undefined);
12
+ static buildInfo<T = any>(msg: string | string[], data?: T): SmpGenericResponse<T>;
13
+ static buildSuccess<T = any>(msg: string | string[], data?: T): SmpGenericResponse<T>;
14
+ static fromPlain(plain: unknown): SmpGenericResponse<any, SmpGenericResponseBase<any>>;
15
+ isError(): boolean;
16
+ isSuccess(): boolean;
17
+ serialize(): U;
18
+ }
19
+
20
+ export { SmpGenericResponse };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-BYEFRPVT.js";import"../../chunk-2TQSQ6UP.js";import"../../chunk-H5UU33RN.js";import"../../chunk-JFKSI6I7.js";export{a as SmpGenericResponse};
@@ -0,0 +1,5 @@
1
+ declare const SMP_HEALTHZ: {
2
+ status: string;
3
+ };
4
+
5
+ export { SMP_HEALTHZ };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-2YYH6VGI.js";import"../../chunk-JFKSI6I7.js";export{a as SMP_HEALTHZ};
@@ -0,0 +1,8 @@
1
+ import { SmpResponseMessageTypes } from './smp-response-message-types.enum.js';
2
+
3
+ interface SmpResponseMessageBase {
4
+ message: string;
5
+ type: SmpResponseMessageTypes;
6
+ }
7
+
8
+ export type { SmpResponseMessageBase };
@@ -0,0 +1 @@
1
+ import"../../chunk-77XHVETN.js";
@@ -0,0 +1,8 @@
1
+ declare enum SmpResponseMessageTypes {
2
+ INFO = "INFO",
3
+ SUCCESS = "SUCCESS",
4
+ WARNING = "WARNING",
5
+ ERROR = "ERROR"
6
+ }
7
+
8
+ export { SmpResponseMessageTypes };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-H5UU33RN.js";import"../../chunk-JFKSI6I7.js";export{a as SmpResponseMessageTypes};
@@ -0,0 +1,13 @@
1
+ import { SmpResponseMessageBase } from './smp-response-message-base.interface.js';
2
+ import { SmpResponseMessageTypes } from './smp-response-message-types.enum.js';
3
+
4
+ declare class SmpResponseMessage implements SmpResponseMessageBase {
5
+ protected _message: string;
6
+ protected _type: SmpResponseMessageTypes;
7
+ get message(): string;
8
+ get type(): SmpResponseMessageTypes;
9
+ constructor(_message: string, _type?: SmpResponseMessageTypes);
10
+ static sanitizeMessages(messages: string | SmpResponseMessage | (SmpResponseMessage | string)[]): SmpResponseMessage[];
11
+ }
12
+
13
+ export { SmpResponseMessage };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-2TQSQ6UP.js";import"../../chunk-H5UU33RN.js";import"../../chunk-JFKSI6I7.js";export{a as SmpResponseMessage};
@@ -0,0 +1,9 @@
1
+ declare enum SmpRestVerbs {
2
+ GET = "GET",
3
+ POST = "POST",
4
+ PUT = "PUT",
5
+ DELETE = "DELETE",
6
+ PATCH = "PATCH"
7
+ }
8
+
9
+ export { SmpRestVerbs };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-2DFXGAWG.js";import"../../chunk-JFKSI6I7.js";export{a as SmpRestVerbs};
@@ -0,0 +1,4 @@
1
+ export { SmpGenericConstructor } from './smp-generic-constructor.type.js';
2
+ export { SmpPrimitivesType } from './smp-primitives.type.js';
3
+ export { SmpSocialSignInKeys } from './smp-social-sign-in-keys.enum.js';
4
+ export { SmpSocialSignInUxModes } from './smp-social-sign-in-ux-modes.enum.js';
@@ -0,0 +1 @@
1
+ import"../../chunk-EHABREBA.js";import"../../chunk-AOHQUNHA.js";import"../../chunk-VA34RBMX.js";import{a}from"../../chunk-XBCBZ3FR.js";import{a as b}from"../../chunk-VQRTVHM5.js";import"../../chunk-JFKSI6I7.js";export{a as SmpSocialSignInKeys,b as SmpSocialSignInUxModes};
@@ -0,0 +1,3 @@
1
+ type SmpGenericConstructor = new (...args: any[]) => any;
2
+
3
+ export type { SmpGenericConstructor };
@@ -0,0 +1 @@
1
+ import"../../chunk-VA34RBMX.js";
@@ -0,0 +1,3 @@
1
+ type SmpPrimitivesType = string | number | boolean | symbol;
2
+
3
+ export type { SmpPrimitivesType };
@@ -0,0 +1 @@
1
+ import"../../chunk-AOHQUNHA.js";
@@ -0,0 +1,7 @@
1
+ declare enum SmpSocialSignInKeys {
2
+ APPLE = "APPLE",
3
+ FACEBOOK = "FACEBOOK",
4
+ GOOGLE = "GOOGLE"
5
+ }
6
+
7
+ export { SmpSocialSignInKeys };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-XBCBZ3FR.js";import"../../chunk-JFKSI6I7.js";export{a as SmpSocialSignInKeys};
@@ -0,0 +1,6 @@
1
+ declare enum SmpSocialSignInUxModes {
2
+ POPUP = "POPUP",
3
+ REDIRECT = "REDIRECT"
4
+ }
5
+
6
+ export { SmpSocialSignInUxModes };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-VQRTVHM5.js";import"../../chunk-JFKSI6I7.js";export{a as SmpSocialSignInUxModes};
@@ -0,0 +1,3 @@
1
+ export { S as SmpAesCrypt } from '../../smp-aes-crypt.class-CI82T7GV.js';
2
+ export { SmpCrypto } from './smp-crypto.class.js';
3
+ export { SmpSecureCode } from './smp-secure-code.class.js';
@@ -0,0 +1 @@
1
+ import"../../chunk-NQICKEAS.js";import{a}from"../../chunk-5VHPHFOY.js";import{a as b}from"../../chunk-HA3BETKN.js";import{a as c}from"../../chunk-THA6XUM5.js";import"../../chunk-J6MWJEP3.js";import"../../chunk-RFVBH4FB.js";import"../../chunk-OMUFNPZF.js";import"../../chunk-BYEFRPVT.js";import"../../chunk-2TQSQ6UP.js";import"../../chunk-H5UU33RN.js";import"../../chunk-JFKSI6I7.js";export{a as SmpAesCrypt,b as SmpCrypto,c as SmpSecureCode};
@@ -0,0 +1 @@
1
+ export { S as SmpAesCrypt } from '../../smp-aes-crypt.class-CI82T7GV.js';
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-5VHPHFOY.js";import"../../chunk-J6MWJEP3.js";import"../../chunk-JFKSI6I7.js";export{a as SmpAesCrypt};
@@ -0,0 +1,10 @@
1
+ declare class SmpCrypto {
2
+ static base64Decode(str: string): string;
3
+ static base64Encode(str: string): string;
4
+ static md5(data: string): string;
5
+ static sha1(data: string): string;
6
+ static sha256(data: string): string;
7
+ static sha512(data: string): string;
8
+ }
9
+
10
+ export { SmpCrypto };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-HA3BETKN.js";import"../../chunk-J6MWJEP3.js";import"../../chunk-JFKSI6I7.js";export{a as SmpCrypto};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Util to generate predictable secure codes based on a base serial
3
+ */
4
+ declare class SmpSecureCode {
5
+ protected _baseCode: string;
6
+ get baseCode(): string;
7
+ get secureCode(): string;
8
+ protected _crcLength: number;
9
+ protected _seed: string;
10
+ constructor(_baseCode: string);
11
+ static check<T extends string>(giftcardCode: string, pinToVerify: T): asserts giftcardCode is T;
12
+ protected _encode(): string;
13
+ }
14
+
15
+ export { SmpSecureCode };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-THA6XUM5.js";import"../../chunk-J6MWJEP3.js";import"../../chunk-RFVBH4FB.js";import"../../chunk-OMUFNPZF.js";import"../../chunk-BYEFRPVT.js";import"../../chunk-2TQSQ6UP.js";import"../../chunk-H5UU33RN.js";import"../../chunk-JFKSI6I7.js";export{a as SmpSecureCode};
@@ -0,0 +1 @@
1
+ export { SmpFirebaseErrors } from './smp-firebase-errors.enum.js';
@@ -0,0 +1 @@
1
+ import"../../chunk-D66G2KIE.js";import{a}from"../../chunk-C2FQU2TR.js";import"../../chunk-JFKSI6I7.js";export{a as SmpFirebaseErrors};
@@ -0,0 +1,14 @@
1
+ declare enum SmpFirebaseErrors {
2
+ DIFFERENT_CREDENTIAL = "auth/account-exists-with-different-credential",
3
+ DIFFERENT_CREDENTIAL_APPLE = "auth/account-exists-with-different-credential/apple",
4
+ DIFFERENT_CREDENTIAL_FACEBOOK = "auth/account-exists-with-different-credential/facebook",
5
+ DIFFERENT_CREDENTIAL_GOOGLE = "auth/account-exists-with-different-credential/google",
6
+ EMAIL_EXISTS = "auth/email-already-exists",
7
+ INVALID_ACTION_CODE = "auth/invalid-action-code",
8
+ POPUP_BLOCKED = "auth/popup-blocked",
9
+ POPUP_CLOSED_BY_USER = "auth/popup-closed-by-user",
10
+ USER_NOT_FOUND = "auth/user-not-found",
11
+ WRONG_PASSWORD = "auth/wrong-password"
12
+ }
13
+
14
+ export { SmpFirebaseErrors };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-C2FQU2TR.js";import"../../chunk-JFKSI6I7.js";export{a as SmpFirebaseErrors};
@@ -0,0 +1,8 @@
1
+ export { SmpGiftcardTransaction } from './smp-giftcard-transaction.class.js';
2
+ export { SmpGiftcardTransactionConfig } from './smp-giftcard-transaction-config.interface.js';
3
+ export { SmpGiftcardTransactionHashStrategies } from './smp-giftcard-transaction-hash-strategies.enum.js';
4
+ export { SmpGiftcardTransactionOps } from './smp-giftcard-transaction-ops.enum.js';
5
+ export { SmpGiftcardTransactionPlain } from './smp-giftcard-transaction-plain.interface.js';
6
+ import '../../smp-aes-crypt.class-CI82T7GV.js';
7
+ import '../../smp-logger-methods.class-F7p-lMeQ.js';
8
+ import 'ts-luxon';
@@ -0,0 +1 @@
1
+ import"../../chunk-HOM5S5W3.js";import"../../chunk-EZ4NN7JG.js";import"../../chunk-BIAKHPIF.js";import{a as c}from"../../chunk-JP7P2SIN.js";import{a as b}from"../../chunk-5D4O273A.js";import{a}from"../../chunk-YSQCITEQ.js";import"../../chunk-5VHPHFOY.js";import"../../chunk-J6MWJEP3.js";import"../../chunk-JFKSI6I7.js";export{c as SmpGiftcardTransaction,b as SmpGiftcardTransactionHashStrategies,a as SmpGiftcardTransactionOps};
@@ -0,0 +1,11 @@
1
+ import { DateTime } from 'ts-luxon';
2
+ import { SmpGiftcardTransactionOps } from './smp-giftcard-transaction-ops.enum.js';
3
+
4
+ interface SmpGiftcardTransactionConfig {
5
+ gc?: string;
6
+ op: SmpGiftcardTransactionOps;
7
+ ot?: string;
8
+ dto?: DateTime;
9
+ }
10
+
11
+ export type { SmpGiftcardTransactionConfig };
@@ -0,0 +1 @@
1
+ import"../../chunk-EZ4NN7JG.js";
@@ -0,0 +1,8 @@
1
+ declare enum SmpGiftcardTransactionHashStrategies {
2
+ MD5 = "MD5",
3
+ MD5_HMAC = "MD5_HMAC",
4
+ SHA1 = "SHA1",
5
+ SHA1_HMAC = "SHA1_HMAC"
6
+ }
7
+
8
+ export { SmpGiftcardTransactionHashStrategies };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-5D4O273A.js";import"../../chunk-JFKSI6I7.js";export{a as SmpGiftcardTransactionHashStrategies};
@@ -0,0 +1,16 @@
1
+ declare enum SmpGiftcardTransactionOps {
2
+ ACTIVATE = "ACTIVATE",
3
+ BLOCK = "BLOCK",
4
+ CHECK = "CHECK",
5
+ DIGITAL_ACTIVATE = "DIGITAL_ACTIVATE",
6
+ FREEZE = "FREEZE",
7
+ PURCHASE = "PURCHASE",
8
+ RECHARGE = "RECHARGE",
9
+ ROLLBACK = "ROLLBACK",
10
+ TRANSACTION = "TRANSACTION",
11
+ TRANSACTION_DETAIL = "TRANSACTION_DETAIL",
12
+ UNFREEZE = "UNFREEZE",
13
+ XREFUND = "XREFUND"
14
+ }
15
+
16
+ export { SmpGiftcardTransactionOps };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-YSQCITEQ.js";import"../../chunk-JFKSI6I7.js";export{a as SmpGiftcardTransactionOps};
@@ -0,0 +1,8 @@
1
+ interface SmpGiftcardTransactionPlain {
2
+ gc: string;
3
+ op: string;
4
+ ot?: string;
5
+ ts: number;
6
+ }
7
+
8
+ export type { SmpGiftcardTransactionPlain };
@@ -0,0 +1 @@
1
+ import"../../chunk-BIAKHPIF.js";
@@ -0,0 +1,56 @@
1
+ import { S as SmpAesCrypt, W as WordArray } from '../../smp-aes-crypt.class-CI82T7GV.js';
2
+ import { S as SmpLoggerMethods } from '../../smp-logger-methods.class-F7p-lMeQ.js';
3
+ import { DateTime } from 'ts-luxon';
4
+ import { SmpGiftcardTransactionOps } from './smp-giftcard-transaction-ops.enum.js';
5
+ import { SmpGiftcardTransactionPlain } from './smp-giftcard-transaction-plain.interface.js';
6
+ import { SmpGiftcardTransactionConfig } from './smp-giftcard-transaction-config.interface.js';
7
+ import { SmpGiftcardTransactionHashStrategies } from './smp-giftcard-transaction-hash-strategies.enum.js';
8
+
9
+ /**
10
+ * Base implementation that you can extend, even customizing the static parts like #KikGiftcardTransaction._AES_ENCODER.
11
+ * You can create your own instance of KikAesCrypt to override it.
12
+ */
13
+ declare class SmpGiftcardTransaction implements SmpGiftcardTransactionPlain {
14
+ readonly gc: string;
15
+ readonly op: SmpGiftcardTransactionOps;
16
+ readonly ot?: string | undefined;
17
+ protected static _AES_ENCODER: SmpAesCrypt;
18
+ protected static _LOGGER: SmpLoggerMethods;
19
+ protected static _OP_CODES: Record<SmpGiftcardTransactionOps, string>;
20
+ protected static readonly _SEP: string;
21
+ get dto(): DateTime;
22
+ get hash(): string;
23
+ get iso(): string;
24
+ get ts(): number;
25
+ /**
26
+ * A DateTime with second precision
27
+ * @protected
28
+ */
29
+ protected _dto: DateTime;
30
+ protected _hashStrategies: Record<SmpGiftcardTransactionHashStrategies, any>;
31
+ protected _hashStrategy: (str: string) => WordArray;
32
+ /**
33
+ *
34
+ * @param gc giftcard code
35
+ * @param op operation
36
+ * @param ot original transaction in case of refund
37
+ * @param unixTimestampOrMilliseconds
38
+ */
39
+ constructor(gc: string | undefined, // If we're issuing a digital giftcard we won't have the gc code
40
+ op: SmpGiftcardTransactionOps, ot?: string | undefined, unixTimestampOrMilliseconds?: number);
41
+ static build({ gc, op, ot, dto }: SmpGiftcardTransactionConfig): SmpGiftcardTransaction;
42
+ /**
43
+ * @deprecated this method is related to the old transactionId format and will be removed in a few months
44
+ * (around September 2024, since we can safely assume that you can refund those transactions for around 1 month,
45
+ * which means by then all new payment transactions will have the new format)
46
+ * @param transactionId
47
+ */
48
+ static explode(transactionId: string): SmpGiftcardTransaction;
49
+ static isBase64(str: string): boolean;
50
+ static parse(transactionId: string): SmpGiftcardTransaction;
51
+ static prefixToOperation(prefix: string): SmpGiftcardTransactionOps;
52
+ serialize(): SmpGiftcardTransactionPlain;
53
+ toString(): string;
54
+ }
55
+
56
+ export { SmpGiftcardTransaction };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-JP7P2SIN.js";import"../../chunk-5D4O273A.js";import"../../chunk-YSQCITEQ.js";import"../../chunk-5VHPHFOY.js";import"../../chunk-J6MWJEP3.js";import"../../chunk-JFKSI6I7.js";export{a as SmpGiftcardTransaction};
@@ -0,0 +1,2 @@
1
+ export { KikMarketingCloudValidationResponse, KikMarketingCloudValidationResponseKo, KikMarketingCloudValidationResponseOk } from './smp-marketing-cloud-validation-response.interface.js';
2
+ export { SmpMarketingCloudValidators } from './smp-marketing-cloud-validators.enum.js';
@@ -0,0 +1 @@
1
+ import"../../chunk-Q77KUWBZ.js";import"../../chunk-BWZ6SM6P.js";import{a}from"../../chunk-2Q3A3WHV.js";import"../../chunk-JFKSI6I7.js";export{a as SmpMarketingCloudValidators};
@@ -0,0 +1,14 @@
1
+ import { SmpMarketingCloudValidators } from './smp-marketing-cloud-validators.enum.js';
2
+
3
+ interface KikMarketingCloudValidationResponseOk {
4
+ email: string;
5
+ valid: true;
6
+ }
7
+ interface KikMarketingCloudValidationResponseKo {
8
+ email: string;
9
+ valid: boolean;
10
+ failedValidation: SmpMarketingCloudValidators;
11
+ }
12
+ type KikMarketingCloudValidationResponse = KikMarketingCloudValidationResponseOk | KikMarketingCloudValidationResponseKo;
13
+
14
+ export type { KikMarketingCloudValidationResponse, KikMarketingCloudValidationResponseKo, KikMarketingCloudValidationResponseOk };
@@ -0,0 +1,7 @@
1
+ declare enum SmpMarketingCloudValidators {
2
+ ListDetectiveValidator = "ListDetectiveValidator",
3
+ MXValidator = "MXValidator",
4
+ SyntaxValidator = "SyntaxValidator"
5
+ }
6
+
7
+ export { SmpMarketingCloudValidators };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-2Q3A3WHV.js";import"../../chunk-JFKSI6I7.js";export{a as SmpMarketingCloudValidators};
@@ -0,0 +1,3 @@
1
+ export { smpRxjsThrowIfEmpty } from './smp-rxjs-throw-if-empty.function.js';
2
+ export { smpRxjsThrowOnCondition } from './smp-rxjs-throw-on-condition.function.js';
3
+ import 'rxjs';
@@ -0,0 +1 @@
1
+ import"../../chunk-WVAB4IBD.js";import{a as b}from"../../chunk-QCY65CEY.js";import{a}from"../../chunk-RQMWVXXI.js";import"../../chunk-JFKSI6I7.js";export{a as smpRxjsThrowIfEmpty,b as smpRxjsThrowOnCondition};
@@ -0,0 +1,38 @@
1
+ import { OperatorFunction } from 'rxjs';
2
+
3
+ /**
4
+ * If the source observable completes emitting an empty value (empty array or object will be considered empty), it will emit
5
+ * an error. The error will be created at that time by the optional
6
+ * `errorFactory` argument, otherwise, the error will be {@link Error}.
7
+ *
8
+ * ## Example
9
+ *
10
+ * Throw an error if the query didn't match anything
11
+ *
12
+ * ```ts
13
+ * import { of, takeUntil, timer, throwIfEmpty } from 'rxjs';
14
+ *
15
+ * const query$ = of([]);
16
+ *
17
+ * query$.pipe(
18
+ * smpRxjsThrowIfEmpty(() => new Error('The query had no results'))
19
+ * )
20
+ * .subscribe({
21
+ * next() {
22
+ * console.log("The query had results");
23
+ * },
24
+ * error(err) {
25
+ * console.error(err.message);
26
+ * }
27
+ * });
28
+ * ```
29
+ *
30
+ * @param errorFactory A factory function called to produce the
31
+ * error to be thrown when the source observable completes without emitting a
32
+ * value.
33
+ * @return A function that returns an Observable that throws an error if the
34
+ * source Observable completed without emitting.
35
+ */
36
+ declare function smpRxjsThrowIfEmpty<T>(errorFactory?: (value: T) => any): OperatorFunction<T, T>;
37
+
38
+ export { smpRxjsThrowIfEmpty };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-RQMWVXXI.js";import"../../chunk-JFKSI6I7.js";export{a as smpRxjsThrowIfEmpty};
@@ -0,0 +1,30 @@
1
+ import { OperatorFunction } from 'rxjs';
2
+
3
+ /**
4
+ * Custom RxJS operator that filters the source observable based on a condition
5
+ * and throws an error if the resulting observable is empty.
6
+ *
7
+ * @template T The type of items emitted by the source observable.
8
+ * @param {function(T): boolean} condition - A function that takes a value from the source observable and returns a boolean.
9
+ * If the function returns `true`, the value will be emitted; otherwise, it will be filtered out.
10
+ * @param {function(): Error} [errorFactory] - An optional function that returns an error to be thrown if the resulting observable is empty.
11
+ * If not provided, a default error will be thrown.
12
+ * @returns {OperatorFunction<T, T>} An operator function that can be used in the RxJS pipeline.
13
+ *
14
+ * @example
15
+ * import { of } from 'rxjs';
16
+ * import { kikRxjsThrowOnCondition } from "./path-to-your-file";
17
+ *
18
+ * const source$ = of(1, 5, -3, 7, 12).pipe(
19
+ * kikRxjsThrowOnCondition(value => value >= 0, () => new Error("Value is less than 0")),
20
+ * kikRxjsThrowOnCondition(value => value > 12, () => new Error("Value is lower than 12"))
21
+ * );
22
+ *
23
+ * source$.subscribe({
24
+ * next: value => console.log("Value:", value),
25
+ * error: err => console.error("Error:", err)
26
+ * });
27
+ */
28
+ declare function smpRxjsThrowOnCondition<T>(condition: (value: T) => boolean, errorFactory?: () => any): OperatorFunction<T, T>;
29
+
30
+ export { smpRxjsThrowOnCondition };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-QCY65CEY.js";import"../../chunk-RQMWVXXI.js";import"../../chunk-JFKSI6I7.js";export{a as smpRxjsThrowOnCondition};
@@ -0,0 +1,3 @@
1
+ export { SmpBrowserCache } from './smp-browser-cache.class.js';
2
+ export { SmpCacheStrategy } from './smp-cache-strategy.interface.js';
3
+ export { SmpInMemoryCache } from './smp-in-memory-cache.class.js';
@@ -0,0 +1 @@
1
+ import"../../../chunk-THUEL7AA.js";import"../../../chunk-VU2BXAMO.js";import{a as b}from"../../../chunk-IFZTF7A7.js";import{a}from"../../../chunk-JCZRE6MU.js";import"../../../chunk-JFKSI6I7.js";export{a as SmpBrowserCache,b as SmpInMemoryCache};
@@ -0,0 +1,13 @@
1
+ import { SmpCacheStrategy } from './smp-cache-strategy.interface.js';
2
+
3
+ declare class SmpBrowserCache implements SmpCacheStrategy {
4
+ protected _storage: typeof global.localStorage | typeof global.sessionStorage;
5
+ protected _prefix: string;
6
+ constructor(_storage: typeof global.localStorage | typeof global.sessionStorage, _prefix: string);
7
+ flush(): void;
8
+ read<T = unknown>(key: string): T | undefined;
9
+ remove(key: string): void;
10
+ write<T = unknown>(key: string, value: T): void;
11
+ }
12
+
13
+ export { SmpBrowserCache };
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-JCZRE6MU.js";import"../../../chunk-JFKSI6I7.js";export{a as SmpBrowserCache};
@@ -0,0 +1,8 @@
1
+ interface SmpCacheStrategy {
2
+ read<T = unknown>(key: string): T | undefined;
3
+ write<T = unknown>(key: string, value: T): void;
4
+ remove(key: string): void;
5
+ flush(): void;
6
+ }
7
+
8
+ export type { SmpCacheStrategy };
@@ -0,0 +1 @@
1
+ import"../../../chunk-VU2BXAMO.js";