@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,12 @@
1
+ import { SmpCacheStrategy } from './smp-cache-strategy.interface.js';
2
+
3
+ declare class SmpInMemoryCache implements SmpCacheStrategy {
4
+ private static _storage;
5
+ get staticStorage(): Map<string, unknown>;
6
+ flush(): void;
7
+ read<T = unknown>(key: string): T | undefined;
8
+ remove(key: string): void;
9
+ write<T = unknown>(key: string, value: T): void;
10
+ }
11
+
12
+ export { SmpInMemoryCache };
@@ -0,0 +1 @@
1
+ import{a}from"../../../chunk-IFZTF7A7.js";import"../../../chunk-JFKSI6I7.js";export{a as SmpInMemoryCache};
@@ -0,0 +1,10 @@
1
+ export { SmpCommonUtils } from './smp-common-utils.class.js';
2
+ export { SmpFilterException } from './smp-filter-exception.class.js';
3
+ export { SmpSid } from './smp-sid.class.js';
4
+ export { smpNoop } from './smp-noop.function.js';
5
+ export { SmpRegularExpressions } from './smp-regular-expressions.class.js';
6
+ export { SmpBrowserCache } from './cache/smp-browser-cache.class.js';
7
+ export { SmpCacheStrategy } from './cache/smp-cache-strategy.interface.js';
8
+ export { SmpInMemoryCache } from './cache/smp-in-memory-cache.class.js';
9
+ import '../api/smp-rest-verbs.enum.js';
10
+ import './smp-gcpsid-raw.interface.js';
@@ -0,0 +1 @@
1
+ import"../../chunk-T3P4NVTG.js";import{a as e}from"../../chunk-7FC5ZQDK.js";import"../../chunk-NIN4PUZX.js";import{a as g}from"../../chunk-NRABUNRU.js";import{a as f}from"../../chunk-VFSRM2TJ.js";import"../../chunk-THUEL7AA.js";import"../../chunk-VU2BXAMO.js";import{a as d}from"../../chunk-NPHREL4D.js";import"../../chunk-HTUF5T5K.js";import"../../chunk-IZD3BY3X.js";import"../../chunk-2DFXGAWG.js";import{a as c}from"../../chunk-NOYOAWWX.js";import{a as b}from"../../chunk-IFZTF7A7.js";import{a}from"../../chunk-JCZRE6MU.js";import"../../chunk-JFKSI6I7.js";export{a as SmpBrowserCache,d as SmpCommonUtils,e as SmpFilterException,b as SmpInMemoryCache,g as SmpRegularExpressions,f as SmpSid,c as smpNoop};
@@ -0,0 +1,3 @@
1
+ declare function smpAsciiWords(string: string): string[] | null;
2
+
3
+ export { smpAsciiWords };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-IZD3BY3X.js";import"../../chunk-JFKSI6I7.js";export{a as smpAsciiWords};
@@ -0,0 +1,100 @@
1
+ import { SmpRestVerbs } from '../api/smp-rest-verbs.enum.js';
2
+
3
+ declare class SmpCommonUtils {
4
+ /**
5
+ * Removes items the predicate returns truthy for from the source array and returns them
6
+ */
7
+ static arrayRemove<T = any>(array: T[], iteratee: (item: T, index: number) => any): T[];
8
+ static assertIsArray<T>(entity: T[], withMessage?: string): asserts entity is T[];
9
+ static assertIsBoolean(entity: any, withMessage?: string): asserts entity is boolean;
10
+ static assertIsFunction(entity: any, withMessage?: string): asserts entity is Function;
11
+ static assertIsInstance(entity: any, klass: new (...args: any[]) => any, withMessage?: string): asserts entity is typeof klass;
12
+ static assertIsNotEmpty(val: any, withMessage?: string): void;
13
+ static assertIsNumber(entity: any, withMessage?: string): asserts entity is number;
14
+ static assertIsNumeric(entity: any, withMessage?: string): void;
15
+ static assertIsObject(entity: any, withMessage?: string): asserts entity is object;
16
+ static assertIsString(entity: any, withMessage?: string): asserts entity is string;
17
+ static assertIsTruthy<T>(condition: T, withMessage?: string): asserts condition;
18
+ static buildPath(...args: any[]): string;
19
+ static downloadBlob(blob: Blob, filename: string): void;
20
+ static generateRandomHexString(length?: number): string;
21
+ static generateUUID(): string;
22
+ static getDecimalPrecision(val: number | string): number;
23
+ /**
24
+ * More accurately check the type of JavaScript object
25
+ * @param {Object} entity The object
26
+ * @return {String} The object type
27
+ */
28
+ static getType(entity: any): string;
29
+ static isBoolean(value: any): value is boolean;
30
+ /**
31
+ * Returns true if string is a valid CSS color
32
+ * @param str
33
+ */
34
+ static isColor(str: string): boolean;
35
+ static isEmpty(entity: any): boolean;
36
+ /**
37
+ *
38
+ * @param value1 {any} first term of comparison
39
+ * @param value2 {any} second term of comparison
40
+ *
41
+ * @returns boolean
42
+ */
43
+ static isEqual(value1: any, value2: any): boolean;
44
+ static isFormField(el: HTMLElement): boolean;
45
+ static isFunction(entity: any): entity is Function;
46
+ static isNotEmpty(entity: any): boolean;
47
+ /**
48
+ * Returns true if the entity is a number
49
+ * @param entity
50
+ */
51
+ static isNumber(entity: any): entity is number;
52
+ /**
53
+ * Returns true whether you're dealing with a numeric entity. Use isNumber if you want exact type check
54
+ * @param entity
55
+ */
56
+ static isNumeric(entity: any): boolean;
57
+ static isObject(entity: any): entity is object;
58
+ /**
59
+ * This one is from underscore.js 1.13.6
60
+ * It basically checks if a value is generically an object (meaning Array, Date, Map).
61
+ * If you want a strict check use KikCommonUtils.isObject instead.
62
+ * [TS] TODO: It would be nice to exclude String, Number, Boolean and Symbol, but for now, this will do
63
+ * @param entity
64
+ * @returns {boolean}
65
+ */
66
+ static isPrimitive(entity: any): boolean;
67
+ static isString(entity: any): entity is string;
68
+ static isWindows(): boolean;
69
+ /**
70
+ *
71
+ * @param objLike object or array
72
+ * @param iteratee the map fn
73
+ */
74
+ static mapObject<T = any>(objLike: any, iteratee: (v: any, indexOrKey: string | number, arr?: string[]) => any): T[];
75
+ static mapObjectKeys<T extends string = string>(obj: Record<T, any>, callback: (key: string, value: any) => any): Record<string, any>;
76
+ static mapObjectValues<T extends string = string>(obj: Partial<Record<T, any>>, callback: (value: any, key: string) => any): Record<string, any>;
77
+ static noop(): void;
78
+ static objectHasValue<T extends object>(obj: T, value: any): boolean;
79
+ static parseBoolean(str?: string): boolean;
80
+ static parseJsonSafely<T = any>(str: string): T | void;
81
+ static pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
82
+ static runSafely<V = any, U = any, T extends Function = (...args: V[]) => U>(fn?: T, thisArg?: null, params?: V[]): U | void;
83
+ static sleep(timeToDelay: number): Promise<unknown>;
84
+ static sprintf(str: string, ...argv: (string | number | symbol)[]): string;
85
+ static stripComments(html: string): string;
86
+ static submitFakeForm<T extends object = object>({ action, method, data, target }: {
87
+ action: string;
88
+ method: SmpRestVerbs;
89
+ data?: T;
90
+ target?: "_blank" | "_self";
91
+ }): void;
92
+ static toCamelCase(s: string): string;
93
+ static toKebabCase(s: string): string;
94
+ static toPascalCase(s: string): string;
95
+ static toSnakeCase(s: string): string;
96
+ static toUpperSnakeCase(s: string): string;
97
+ static words(string: string, pattern?: RegExp): string[];
98
+ }
99
+
100
+ export { SmpCommonUtils };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-NPHREL4D.js";import"../../chunk-HTUF5T5K.js";import"../../chunk-IZD3BY3X.js";import"../../chunk-2DFXGAWG.js";import"../../chunk-JFKSI6I7.js";export{a as SmpCommonUtils};
@@ -0,0 +1,7 @@
1
+ declare class SmpFilterException extends Error {
2
+ message: string;
3
+ data?: any | undefined;
4
+ constructor(message?: string, data?: any | undefined);
5
+ }
6
+
7
+ export { SmpFilterException };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-7FC5ZQDK.js";import"../../chunk-JFKSI6I7.js";export{a as SmpFilterException};
@@ -0,0 +1,6 @@
1
+ interface SmpSidRaw {
2
+ expiry: number;
3
+ value: string;
4
+ }
5
+
6
+ export type { SmpSidRaw };
@@ -0,0 +1,3 @@
1
+ declare function smpNoop(): undefined;
2
+
3
+ export { smpNoop };
@@ -0,0 +1 @@
1
+ import"../../chunk-NIN4PUZX.js";import{a}from"../../chunk-NOYOAWWX.js";import"../../chunk-JFKSI6I7.js";export{a as smpNoop};
@@ -0,0 +1,16 @@
1
+ declare class SmpRegularExpressions {
2
+ static get COUNTRY(): RegExp;
3
+ static get DOMAIN(): RegExp;
4
+ static get EMAIL(): RegExp;
5
+ static get LANGUAGE(): RegExp;
6
+ static get LATIN_CHARS(): RegExp;
7
+ static get LOCALE(): RegExp;
8
+ static get NO_EMOJI_NO_PUNCTUATION(): RegExp;
9
+ static get PHONE_NUMBER(): RegExp;
10
+ static get PHONE_NUMBER_BY_PREFIX(): Record<string, Record<string, RegExp>>;
11
+ static get TAXCODE_BY_COUNTRY(): Record<string, Record<string, RegExp>>;
12
+ protected static _country: RegExp;
13
+ protected static _language: RegExp;
14
+ }
15
+
16
+ export { SmpRegularExpressions };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-NRABUNRU.js";import"../../chunk-JFKSI6I7.js";export{a as SmpRegularExpressions};
@@ -0,0 +1,18 @@
1
+ import { SmpSidRaw } from './smp-gcpsid-raw.interface.js';
2
+
3
+ /**
4
+ * A util to generate session ids
5
+ */
6
+ declare class SmpSid implements SmpSidRaw {
7
+ value: string;
8
+ expiry: number;
9
+ get active(): boolean;
10
+ get expired(): boolean;
11
+ get valid(): boolean;
12
+ protected _controlSuffix: string;
13
+ constructor(value?: string, expiry?: number);
14
+ static parse(raw: SmpSidRaw): SmpSid;
15
+ toPlain(): SmpSidRaw;
16
+ }
17
+
18
+ export { SmpSid };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-VFSRM2TJ.js";import"../../chunk-JFKSI6I7.js";export{a as SmpSid};
@@ -0,0 +1,15 @@
1
+ declare class SmpUnicodeWords {
2
+ static readonly HAS_UNICODE_WORD: (string: string) => boolean;
3
+ static readonly RE_UNICODE_WORDS: RegExp;
4
+ static readonly RS_EMOJI: string;
5
+ /**
6
+ * Splits a Unicode `string` into an array of its words.
7
+ *
8
+ * @private
9
+ * @param string {string} string: the string to inspect.
10
+ * @returns {Array<string>} Returns the words of `string`.
11
+ */
12
+ static unicodeWords(string: string): string[] | null;
13
+ }
14
+
15
+ export { SmpUnicodeWords };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-HTUF5T5K.js";import"../../chunk-JFKSI6I7.js";export{a as SmpUnicodeWords};