@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,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 @@
|
|
|
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 @@
|
|
|
1
|
+
import{a}from"../../chunk-7FC5ZQDK.js";import"../../chunk-JFKSI6I7.js";export{a as SmpFilterException};
|
|
File without changes
|
|
@@ -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};
|