@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.
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/changelog.md +2 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +59 -0
- package/dist/cjs/services/firebase/index.cjs +2 -0
- package/dist/cjs/services/firebase/index.cjs.map +1 -0
- package/dist/cjs/services/firebase/index.d.cts +7 -0
- package/dist/cjs/services/firebase/smp-firebase-service-config.interface.cjs +2 -0
- package/dist/cjs/services/firebase/smp-firebase-service-config.interface.cjs.map +1 -0
- package/dist/cjs/services/firebase/smp-firebase-service-config.interface.d.cts +12 -0
- package/dist/cjs/services/firebase/smp-firebase.service.cjs +2 -0
- package/dist/cjs/services/firebase/smp-firebase.service.cjs.map +1 -0
- package/dist/cjs/services/firebase/smp-firebase.service.d.cts +56 -0
- package/dist/cjs/services/http/index.cjs +2 -0
- package/dist/cjs/services/http/index.cjs.map +1 -0
- package/dist/cjs/services/http/index.d.cts +9 -0
- package/dist/cjs/services/http/smp-dynamic-fetch-return.type.cjs +2 -0
- package/dist/cjs/services/http/smp-dynamic-fetch-return.type.cjs.map +1 -0
- package/dist/cjs/services/http/smp-dynamic-fetch-return.type.d.cts +3 -0
- package/dist/cjs/services/http/smp-http-config.interface.cjs +2 -0
- package/dist/cjs/services/http/smp-http-config.interface.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http-config.interface.d.cts +16 -0
- package/dist/cjs/services/http/smp-http-session-storage-cache.class.cjs +2 -0
- package/dist/cjs/services/http/smp-http-session-storage-cache.class.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http-session-storage-cache.class.d.cts +8 -0
- package/dist/cjs/services/http/smp-http-status-code.enum.cjs +2 -0
- package/dist/cjs/services/http/smp-http-status-code.enum.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http-status-code.enum.d.cts +70 -0
- package/dist/cjs/services/http/smp-http.service.cjs +2 -0
- package/dist/cjs/services/http/smp-http.service.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http.service.d.cts +43 -0
- package/dist/cjs/services/index.cjs +2 -0
- package/dist/cjs/services/index.cjs.map +1 -0
- package/dist/cjs/services/index.d.cts +19 -0
- package/dist/cjs/services/smp-dynamo.service.cjs +2 -0
- package/dist/cjs/services/smp-dynamo.service.cjs.map +1 -0
- package/dist/cjs/services/smp-dynamo.service.d.cts +39 -0
- package/dist/cjs/shared/api/index.cjs +2 -0
- package/dist/cjs/shared/api/index.cjs.map +1 -0
- package/dist/cjs/shared/api/index.d.cts +10 -0
- package/dist/cjs/shared/api/smp-api-common-utils.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-api-common-utils.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-api-common-utils.class.d.cts +15 -0
- package/dist/cjs/shared/api/smp-error-response.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-error-response.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-error-response.class.d.cts +35 -0
- package/dist/cjs/shared/api/smp-generic-response-base.interface.cjs +2 -0
- package/dist/cjs/shared/api/smp-generic-response-base.interface.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-generic-response-base.interface.d.cts +9 -0
- package/dist/cjs/shared/api/smp-generic-response.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-generic-response.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-generic-response.class.d.cts +20 -0
- package/dist/cjs/shared/api/smp-healtz.const.cjs +2 -0
- package/dist/cjs/shared/api/smp-healtz.const.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-healtz.const.d.cts +5 -0
- package/dist/cjs/shared/api/smp-response-message-base.interface.cjs +2 -0
- package/dist/cjs/shared/api/smp-response-message-base.interface.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-response-message-base.interface.d.cts +8 -0
- package/dist/cjs/shared/api/smp-response-message-types.enum.cjs +2 -0
- package/dist/cjs/shared/api/smp-response-message-types.enum.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-response-message-types.enum.d.cts +8 -0
- package/dist/cjs/shared/api/smp-response-message.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-response-message.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-response-message.class.d.cts +13 -0
- package/dist/cjs/shared/api/smp-rest-verbs.enum.cjs +2 -0
- package/dist/cjs/shared/api/smp-rest-verbs.enum.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-rest-verbs.enum.d.cts +9 -0
- package/dist/cjs/shared/common/index.cjs +2 -0
- package/dist/cjs/shared/common/index.cjs.map +1 -0
- package/dist/cjs/shared/common/index.d.cts +4 -0
- package/dist/cjs/shared/common/smp-generic-constructor.type.cjs +2 -0
- package/dist/cjs/shared/common/smp-generic-constructor.type.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-generic-constructor.type.d.cts +3 -0
- package/dist/cjs/shared/common/smp-primitives.type.cjs +2 -0
- package/dist/cjs/shared/common/smp-primitives.type.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-primitives.type.d.cts +3 -0
- package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.cjs +2 -0
- package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.d.cts +7 -0
- package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.cjs +2 -0
- package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.d.cts +6 -0
- package/dist/cjs/shared/crypto/index.cjs +2 -0
- package/dist/cjs/shared/crypto/index.cjs.map +1 -0
- package/dist/cjs/shared/crypto/index.d.cts +3 -0
- package/dist/cjs/shared/crypto/smp-aes-crypt.class.cjs +2 -0
- package/dist/cjs/shared/crypto/smp-aes-crypt.class.cjs.map +1 -0
- package/dist/cjs/shared/crypto/smp-aes-crypt.class.d.cts +1 -0
- package/dist/cjs/shared/crypto/smp-crypto.class.cjs +2 -0
- package/dist/cjs/shared/crypto/smp-crypto.class.cjs.map +1 -0
- package/dist/cjs/shared/crypto/smp-crypto.class.d.cts +10 -0
- package/dist/cjs/shared/crypto/smp-secure-code.class.cjs +2 -0
- package/dist/cjs/shared/crypto/smp-secure-code.class.cjs.map +1 -0
- package/dist/cjs/shared/crypto/smp-secure-code.class.d.cts +15 -0
- package/dist/cjs/shared/firebase/index.cjs +2 -0
- package/dist/cjs/shared/firebase/index.cjs.map +1 -0
- package/dist/cjs/shared/firebase/index.d.cts +1 -0
- package/dist/cjs/shared/firebase/smp-firebase-errors.enum.cjs +2 -0
- package/dist/cjs/shared/firebase/smp-firebase-errors.enum.cjs.map +1 -0
- package/dist/cjs/shared/firebase/smp-firebase-errors.enum.d.cts +14 -0
- package/dist/cjs/shared/giftcard/index.cjs +2 -0
- package/dist/cjs/shared/giftcard/index.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/index.d.cts +8 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.d.cts +11 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.d.cts +8 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.d.cts +16 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.d.cts +8 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.d.cts +56 -0
- package/dist/cjs/shared/marketing-cloud/index.cjs +2 -0
- package/dist/cjs/shared/marketing-cloud/index.cjs.map +1 -0
- package/dist/cjs/shared/marketing-cloud/index.d.cts +2 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.cjs +2 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.cjs.map +1 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.cts +14 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.cjs +2 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.cjs.map +1 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.d.cts +7 -0
- package/dist/cjs/shared/rxjs/index.cjs +2 -0
- package/dist/cjs/shared/rxjs/index.cjs.map +1 -0
- package/dist/cjs/shared/rxjs/index.d.cts +3 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.cjs +2 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.cjs.map +1 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.d.cts +38 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.cjs +2 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.cjs.map +1 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.d.cts +30 -0
- package/dist/cjs/shared/utils/cache/index.cjs +2 -0
- package/dist/cjs/shared/utils/cache/index.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/index.d.cts +3 -0
- package/dist/cjs/shared/utils/cache/smp-browser-cache.class.cjs +2 -0
- package/dist/cjs/shared/utils/cache/smp-browser-cache.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/smp-browser-cache.class.d.cts +13 -0
- package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.cjs +2 -0
- package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.d.cts +8 -0
- package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.cjs +2 -0
- package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.d.cts +12 -0
- package/dist/cjs/shared/utils/index.cjs +2 -0
- package/dist/cjs/shared/utils/index.cjs.map +1 -0
- package/dist/cjs/shared/utils/index.d.cts +10 -0
- package/dist/cjs/shared/utils/smp-ascii-words.function.cjs +2 -0
- package/dist/cjs/shared/utils/smp-ascii-words.function.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-ascii-words.function.d.cts +3 -0
- package/dist/cjs/shared/utils/smp-common-utils.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-common-utils.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-common-utils.class.d.cts +100 -0
- package/dist/cjs/shared/utils/smp-filter-exception.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-filter-exception.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-filter-exception.class.d.cts +7 -0
- package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.cjs +2 -0
- package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.d.cts +6 -0
- package/dist/cjs/shared/utils/smp-noop.function.cjs +2 -0
- package/dist/cjs/shared/utils/smp-noop.function.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-noop.function.d.cts +3 -0
- package/dist/cjs/shared/utils/smp-regular-expressions.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-regular-expressions.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-regular-expressions.class.d.cts +16 -0
- package/dist/cjs/shared/utils/smp-sid.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-sid.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-sid.class.d.cts +18 -0
- package/dist/cjs/shared/utils/smp-unicode-words.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-unicode-words.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-unicode-words.class.d.cts +15 -0
- package/dist/cjs/smp-aes-crypt.class-CI82T7GV.d.cts +470 -0
- package/dist/cjs/smp-logger-methods.class-F7p-lMeQ.d.cts +66 -0
- package/dist/esm/chunk-24AHYMAJ.js +0 -0
- package/dist/esm/chunk-2DFXGAWG.js +1 -0
- package/dist/esm/chunk-2Q3A3WHV.js +1 -0
- package/dist/esm/chunk-2TQSQ6UP.js +1 -0
- package/dist/esm/chunk-2YYH6VGI.js +1 -0
- package/dist/esm/chunk-4S2VS5TZ.js +1 -0
- package/dist/esm/chunk-5D4O273A.js +1 -0
- package/dist/esm/chunk-5VHPHFOY.js +1 -0
- package/dist/esm/chunk-73A5OTVH.js +1 -0
- package/dist/esm/chunk-77XHVETN.js +0 -0
- package/dist/esm/chunk-7FC5ZQDK.js +1 -0
- package/dist/esm/chunk-7ZJA47VN.js +1 -0
- package/dist/esm/chunk-AOHQUNHA.js +0 -0
- package/dist/esm/chunk-APLEU3C2.js +1 -0
- package/dist/esm/chunk-BCKQYO6O.js +0 -0
- package/dist/esm/chunk-BIAKHPIF.js +0 -0
- package/dist/esm/chunk-BWZ6SM6P.js +0 -0
- package/dist/esm/chunk-BYEFRPVT.js +1 -0
- package/dist/esm/chunk-C2FQU2TR.js +1 -0
- package/dist/esm/chunk-D66G2KIE.js +0 -0
- package/dist/esm/chunk-EHABREBA.js +0 -0
- package/dist/esm/chunk-EZ4NN7JG.js +0 -0
- package/dist/esm/chunk-GYZH6FYB.js +1 -0
- package/dist/esm/chunk-H5UU33RN.js +1 -0
- package/dist/esm/chunk-HA3BETKN.js +1 -0
- package/dist/esm/chunk-HOM5S5W3.js +0 -0
- package/dist/esm/chunk-HTUF5T5K.js +1 -0
- package/dist/esm/chunk-IFZTF7A7.js +1 -0
- package/dist/esm/chunk-IZD3BY3X.js +1 -0
- package/dist/esm/chunk-J6MWJEP3.js +1 -0
- package/dist/esm/chunk-JCZRE6MU.js +1 -0
- package/dist/esm/chunk-JFKSI6I7.js +1 -0
- package/dist/esm/chunk-JP7P2SIN.js +1 -0
- package/dist/esm/chunk-JSNCOALE.js +0 -0
- package/dist/esm/chunk-KIMBWGNC.js +1 -0
- package/dist/esm/chunk-NIN4PUZX.js +0 -0
- package/dist/esm/chunk-NOYOAWWX.js +1 -0
- package/dist/esm/chunk-NPHREL4D.js +1 -0
- package/dist/esm/chunk-NQICKEAS.js +0 -0
- package/dist/esm/chunk-NRABUNRU.js +1 -0
- package/dist/esm/chunk-OMUFNPZF.js +1 -0
- package/dist/esm/chunk-Q77KUWBZ.js +0 -0
- package/dist/esm/chunk-QCY65CEY.js +1 -0
- package/dist/esm/chunk-RFVBH4FB.js +1 -0
- package/dist/esm/chunk-RQMWVXXI.js +1 -0
- package/dist/esm/chunk-SCRNHKVE.js +0 -0
- package/dist/esm/chunk-SDQLEPBS.js +0 -0
- package/dist/esm/chunk-T3P4NVTG.js +0 -0
- package/dist/esm/chunk-THA6XUM5.js +1 -0
- package/dist/esm/chunk-THUEL7AA.js +0 -0
- package/dist/esm/chunk-UHEBXSHT.js +0 -0
- package/dist/esm/chunk-VA34RBMX.js +0 -0
- package/dist/esm/chunk-VFSRM2TJ.js +1 -0
- package/dist/esm/chunk-VQRTVHM5.js +1 -0
- package/dist/esm/chunk-VU2BXAMO.js +0 -0
- package/dist/esm/chunk-WVAB4IBD.js +0 -0
- package/dist/esm/chunk-XBCBZ3FR.js +1 -0
- package/dist/esm/chunk-YSQCITEQ.js +1 -0
- package/dist/esm/index.d.ts +54 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/services/firebase/index.d.ts +7 -0
- package/dist/esm/services/firebase/index.js +1 -0
- package/dist/esm/services/firebase/smp-firebase-service-config.interface.d.ts +12 -0
- package/dist/esm/services/firebase/smp-firebase-service-config.interface.js +1 -0
- package/dist/esm/services/firebase/smp-firebase.service.d.ts +56 -0
- package/dist/esm/services/firebase/smp-firebase.service.js +1 -0
- package/dist/esm/services/http/index.d.ts +9 -0
- package/dist/esm/services/http/index.js +1 -0
- package/dist/esm/services/http/smp-dynamic-fetch-return.type.d.ts +3 -0
- package/dist/esm/services/http/smp-dynamic-fetch-return.type.js +0 -0
- package/dist/esm/services/http/smp-http-config.interface.d.ts +16 -0
- package/dist/esm/services/http/smp-http-config.interface.js +1 -0
- package/dist/esm/services/http/smp-http-session-storage-cache.class.d.ts +8 -0
- package/dist/esm/services/http/smp-http-session-storage-cache.class.js +1 -0
- package/dist/esm/services/http/smp-http-status-code.enum.d.ts +70 -0
- package/dist/esm/services/http/smp-http-status-code.enum.js +1 -0
- package/dist/esm/services/http/smp-http.service.d.ts +43 -0
- package/dist/esm/services/http/smp-http.service.js +1 -0
- package/dist/esm/services/index.d.ts +19 -0
- package/dist/esm/services/index.js +1 -0
- package/dist/esm/services/smp-dynamo.service.d.ts +39 -0
- package/dist/esm/services/smp-dynamo.service.js +1 -0
- package/dist/esm/shared/api/index.d.ts +10 -0
- package/dist/esm/shared/api/index.js +1 -0
- package/dist/esm/shared/api/smp-api-common-utils.class.d.ts +15 -0
- package/dist/esm/shared/api/smp-api-common-utils.class.js +1 -0
- package/dist/esm/shared/api/smp-error-response.class.d.ts +35 -0
- package/dist/esm/shared/api/smp-error-response.class.js +1 -0
- package/dist/esm/shared/api/smp-generic-response-base.interface.d.ts +9 -0
- package/dist/esm/shared/api/smp-generic-response-base.interface.js +1 -0
- package/dist/esm/shared/api/smp-generic-response.class.d.ts +20 -0
- package/dist/esm/shared/api/smp-generic-response.class.js +1 -0
- package/dist/esm/shared/api/smp-healtz.const.d.ts +5 -0
- package/dist/esm/shared/api/smp-healtz.const.js +1 -0
- package/dist/esm/shared/api/smp-response-message-base.interface.d.ts +8 -0
- package/dist/esm/shared/api/smp-response-message-base.interface.js +1 -0
- package/dist/esm/shared/api/smp-response-message-types.enum.d.ts +8 -0
- package/dist/esm/shared/api/smp-response-message-types.enum.js +1 -0
- package/dist/esm/shared/api/smp-response-message.class.d.ts +13 -0
- package/dist/esm/shared/api/smp-response-message.class.js +1 -0
- package/dist/esm/shared/api/smp-rest-verbs.enum.d.ts +9 -0
- package/dist/esm/shared/api/smp-rest-verbs.enum.js +1 -0
- package/dist/esm/shared/common/index.d.ts +4 -0
- package/dist/esm/shared/common/index.js +1 -0
- package/dist/esm/shared/common/smp-generic-constructor.type.d.ts +3 -0
- package/dist/esm/shared/common/smp-generic-constructor.type.js +1 -0
- package/dist/esm/shared/common/smp-primitives.type.d.ts +3 -0
- package/dist/esm/shared/common/smp-primitives.type.js +1 -0
- package/dist/esm/shared/common/smp-social-sign-in-keys.enum.d.ts +7 -0
- package/dist/esm/shared/common/smp-social-sign-in-keys.enum.js +1 -0
- package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.d.ts +6 -0
- package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.js +1 -0
- package/dist/esm/shared/crypto/index.d.ts +3 -0
- package/dist/esm/shared/crypto/index.js +1 -0
- package/dist/esm/shared/crypto/smp-aes-crypt.class.d.ts +1 -0
- package/dist/esm/shared/crypto/smp-aes-crypt.class.js +1 -0
- package/dist/esm/shared/crypto/smp-crypto.class.d.ts +10 -0
- package/dist/esm/shared/crypto/smp-crypto.class.js +1 -0
- package/dist/esm/shared/crypto/smp-secure-code.class.d.ts +15 -0
- package/dist/esm/shared/crypto/smp-secure-code.class.js +1 -0
- package/dist/esm/shared/firebase/index.d.ts +1 -0
- package/dist/esm/shared/firebase/index.js +1 -0
- package/dist/esm/shared/firebase/smp-firebase-errors.enum.d.ts +14 -0
- package/dist/esm/shared/firebase/smp-firebase-errors.enum.js +1 -0
- package/dist/esm/shared/giftcard/index.d.ts +8 -0
- package/dist/esm/shared/giftcard/index.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.d.ts +11 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.d.ts +8 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.d.ts +16 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.d.ts +8 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.d.ts +56 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.js +1 -0
- package/dist/esm/shared/marketing-cloud/index.d.ts +2 -0
- package/dist/esm/shared/marketing-cloud/index.js +1 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.ts +14 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.js +1 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.d.ts +7 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.js +1 -0
- package/dist/esm/shared/rxjs/index.d.ts +3 -0
- package/dist/esm/shared/rxjs/index.js +1 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.d.ts +38 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.js +1 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.d.ts +30 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.js +1 -0
- package/dist/esm/shared/utils/cache/index.d.ts +3 -0
- package/dist/esm/shared/utils/cache/index.js +1 -0
- package/dist/esm/shared/utils/cache/smp-browser-cache.class.d.ts +13 -0
- package/dist/esm/shared/utils/cache/smp-browser-cache.class.js +1 -0
- package/dist/esm/shared/utils/cache/smp-cache-strategy.interface.d.ts +8 -0
- package/dist/esm/shared/utils/cache/smp-cache-strategy.interface.js +1 -0
- package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.d.ts +12 -0
- package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.js +1 -0
- package/dist/esm/shared/utils/index.d.ts +10 -0
- package/dist/esm/shared/utils/index.js +1 -0
- package/dist/esm/shared/utils/smp-ascii-words.function.d.ts +3 -0
- package/dist/esm/shared/utils/smp-ascii-words.function.js +1 -0
- package/dist/esm/shared/utils/smp-common-utils.class.d.ts +100 -0
- package/dist/esm/shared/utils/smp-common-utils.class.js +1 -0
- package/dist/esm/shared/utils/smp-filter-exception.class.d.ts +7 -0
- package/dist/esm/shared/utils/smp-filter-exception.class.js +1 -0
- package/dist/esm/shared/utils/smp-gcpsid-raw.interface.d.ts +6 -0
- package/dist/esm/shared/utils/smp-gcpsid-raw.interface.js +0 -0
- package/dist/esm/shared/utils/smp-noop.function.d.ts +3 -0
- package/dist/esm/shared/utils/smp-noop.function.js +1 -0
- package/dist/esm/shared/utils/smp-regular-expressions.class.d.ts +16 -0
- package/dist/esm/shared/utils/smp-regular-expressions.class.js +1 -0
- package/dist/esm/shared/utils/smp-sid.class.d.ts +18 -0
- package/dist/esm/shared/utils/smp-sid.class.js +1 -0
- package/dist/esm/shared/utils/smp-unicode-words.class.d.ts +15 -0
- package/dist/esm/shared/utils/smp-unicode-words.class.js +1 -0
- package/dist/esm/smp-aes-crypt.class-CI82T7GV.d.ts +470 -0
- package/dist/esm/smp-logger-methods.class-F7p-lMeQ.d.ts +66 -0
- 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 @@
|
|
|
1
|
+
import{a}from"../../chunk-2YYH6VGI.js";import"../../chunk-JFKSI6I7.js";export{a as SMP_HEALTHZ};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../chunk-77XHVETN.js";
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
import"../../chunk-VA34RBMX.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../chunk-AOHQUNHA.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-XBCBZ3FR.js";import"../../chunk-JFKSI6I7.js";export{a as SmpSocialSignInKeys};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-VQRTVHM5.js";import"../../chunk-JFKSI6I7.js";export{a as SmpSocialSignInUxModes};
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
import"../../chunk-Q77KUWBZ.js";import"../../chunk-BWZ6SM6P.js";import{a}from"../../chunk-2Q3A3WHV.js";import"../../chunk-JFKSI6I7.js";export{a as SmpMarketingCloudValidators};
|
package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.ts
ADDED
|
@@ -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 @@
|
|
|
1
|
+
import"../../chunk-BWZ6SM6P.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-2Q3A3WHV.js";import"../../chunk-JFKSI6I7.js";export{a as SmpMarketingCloudValidators};
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
import"../../../chunk-VU2BXAMO.js";
|