@tonysamperi/ts-mapi-core 1.8.0 → 2.0.0-beta.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/dist/cjs/dynamo.cjs +2 -0
- package/dist/cjs/dynamo.cjs.map +1 -0
- package/dist/cjs/firebase.cjs +2 -0
- package/dist/cjs/firebase.cjs.map +1 -0
- package/dist/cjs/firebase.d.cts +61 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +8 -291
- package/dist/cjs/rxjs.cjs +2 -0
- package/dist/cjs/rxjs.cjs.map +1 -0
- package/dist/cjs/rxjs.d.cts +106 -0
- package/dist/{esm/shared/utils/cache/smp-abstract-cache-strategy.class.d.ts → cjs/smp-cached-value.interface-BdPg-J7L.d.cts} +6 -1
- package/dist/cjs/smp-generic-response-base.interface-D0jHrkjw.d.cts +27 -0
- package/dist/cjs/smp-social-sign-in-ux-modes.enum-Cw9H3EqT.d.cts +12 -0
- package/dist/cjs/zod.cjs +2 -0
- package/dist/cjs/zod.cjs.map +1 -0
- package/dist/cjs/zod.d.cts +45 -0
- package/dist/esm/chunk-DIVAYUSN.js +1 -0
- package/dist/esm/chunk-VBEMFJKM.js +1 -0
- package/dist/esm/dynamo.d.ts +39 -0
- package/dist/esm/{chunk-XF457SYA.js → dynamo.js} +1 -1
- package/dist/esm/{services/firebase/smp-firebase.service.d.ts → firebase.d.ts} +9 -4
- package/dist/esm/firebase.js +1 -0
- package/dist/esm/index.d.ts +999 -62
- package/dist/esm/index.js +1 -1
- package/dist/esm/rxjs.d.ts +106 -0
- package/dist/esm/rxjs.js +1 -0
- package/dist/esm/smp-cached-value.interface-BdPg-J7L.d.ts +21 -0
- package/dist/esm/smp-generic-response-base.interface-D0jHrkjw.d.ts +27 -0
- package/dist/esm/smp-social-sign-in-ux-modes.enum-Cw9H3EqT.d.ts +12 -0
- package/dist/esm/zod.d.ts +45 -0
- package/dist/esm/zod.js +1 -0
- package/package.json +38 -14
- package/dist/esm/chunk-2JBVVJ2E.js +0 -0
- package/dist/esm/chunk-2UDNZC5A.js +0 -1
- package/dist/esm/chunk-2YYH6VGI.js +0 -1
- package/dist/esm/chunk-3HRZ6R3F.js +0 -1
- package/dist/esm/chunk-4LYXZUNL.js +0 -0
- package/dist/esm/chunk-4TNTWTMN.js +0 -1
- package/dist/esm/chunk-4UTF5FWK.js +0 -1
- package/dist/esm/chunk-553CS7VH.js +0 -0
- package/dist/esm/chunk-5VCNTUI6.js +0 -1
- package/dist/esm/chunk-5WULAY6L.js +0 -1
- package/dist/esm/chunk-7CWGJ3NF.js +0 -1
- package/dist/esm/chunk-AV6X4R7W.js +0 -0
- package/dist/esm/chunk-BHFFGFHY.js +0 -0
- package/dist/esm/chunk-CFV5G67M.js +0 -1
- package/dist/esm/chunk-D2XOH6K4.js +0 -1
- package/dist/esm/chunk-D66G2KIE.js +0 -0
- package/dist/esm/chunk-DADFHUII.js +0 -1
- package/dist/esm/chunk-DGUMFWCQ.js +0 -0
- package/dist/esm/chunk-DOKJQH4K.js +0 -1
- package/dist/esm/chunk-EB55SS67.js +0 -0
- package/dist/esm/chunk-ELQKTQ6W.js +0 -0
- package/dist/esm/chunk-ET5LYR3A.js +0 -1
- package/dist/esm/chunk-FLTR4ZY6.js +0 -1
- package/dist/esm/chunk-FTXCYY5S.js +0 -1
- package/dist/esm/chunk-G7PUYG2K.js +0 -1
- package/dist/esm/chunk-GRXWCGMW.js +0 -1
- package/dist/esm/chunk-HM7F3YYW.js +0 -0
- package/dist/esm/chunk-HOM5S5W3.js +0 -0
- package/dist/esm/chunk-I3CNDIWD.js +0 -0
- package/dist/esm/chunk-JXSMI3MI.js +0 -1
- package/dist/esm/chunk-L7KNFRNV.js +0 -1
- package/dist/esm/chunk-LD5COSFG.js +0 -1
- package/dist/esm/chunk-MLBCWEB4.js +0 -1
- package/dist/esm/chunk-MRKAFTDG.js +0 -1
- package/dist/esm/chunk-NQICKEAS.js +0 -0
- package/dist/esm/chunk-O7TJDNO6.js +0 -0
- package/dist/esm/chunk-OUSY7GMI.js +0 -1
- package/dist/esm/chunk-PKEW426R.js +0 -0
- package/dist/esm/chunk-Q77KUWBZ.js +0 -0
- package/dist/esm/chunk-QK6DPGU6.js +0 -1
- package/dist/esm/chunk-QPKVVZUA.js +0 -1
- package/dist/esm/chunk-QRCMHI3B.js +0 -1
- package/dist/esm/chunk-QW43DOPY.js +0 -1
- package/dist/esm/chunk-QWZP25QT.js +0 -1
- package/dist/esm/chunk-R6VG4656.js +0 -1
- package/dist/esm/chunk-RAJGA43T.js +0 -1
- package/dist/esm/chunk-RAVJJJYE.js +0 -1
- package/dist/esm/chunk-RGLXAD7B.js +0 -1
- package/dist/esm/chunk-RJBWCWAE.js +0 -1
- package/dist/esm/chunk-SDQLEPBS.js +0 -0
- package/dist/esm/chunk-SJOEBOGG.js +0 -1
- package/dist/esm/chunk-SPPRTVHH.js +0 -1
- package/dist/esm/chunk-STU5GUNH.js +0 -1
- package/dist/esm/chunk-SXISZIFJ.js +0 -0
- package/dist/esm/chunk-SZM4WHQJ.js +0 -0
- package/dist/esm/chunk-TGY6ZSQU.js +0 -1
- package/dist/esm/chunk-U5DBFRKV.js +0 -0
- package/dist/esm/chunk-V6NBH54E.js +0 -1
- package/dist/esm/chunk-VHMV4QQT.js +0 -1
- package/dist/esm/chunk-WTEJYEK2.js +0 -0
- package/dist/esm/chunk-WTLVPDI2.js +0 -1
- package/dist/esm/chunk-XZEYUIQ6.js +0 -1
- package/dist/esm/chunk-YEQJ4M3P.js +0 -1
- package/dist/esm/chunk-ZKODHJSY.js +0 -1
- package/dist/esm/chunk-ZTDFA2UA.js +0 -1
- package/dist/esm/chunk-ZYPNYJVE.js +0 -0
- package/dist/esm/services/firebase/index.d.ts +0 -7
- package/dist/esm/services/firebase/index.js +0 -1
- package/dist/esm/services/firebase/smp-firebase-service-config.interface.d.ts +0 -12
- package/dist/esm/services/firebase/smp-firebase-service-config.interface.js +0 -0
- package/dist/esm/services/firebase/smp-firebase.service.js +0 -1
- package/dist/esm/services/http/index.d.ts +0 -12
- package/dist/esm/services/http/index.js +0 -1
- package/dist/esm/services/http/smp-dynamic-fetch-return.type.d.ts +0 -3
- package/dist/esm/services/http/smp-dynamic-fetch-return.type.js +0 -0
- package/dist/esm/services/http/smp-http-config.interface.d.ts +0 -16
- package/dist/esm/services/http/smp-http-config.interface.js +0 -1
- package/dist/esm/services/http/smp-http-session-storage-cache.class.d.ts +0 -11
- package/dist/esm/services/http/smp-http-session-storage-cache.class.js +0 -1
- package/dist/esm/services/http/smp-http-status-code.enum.d.ts +0 -70
- package/dist/esm/services/http/smp-http-status-code.enum.js +0 -1
- package/dist/esm/services/http/smp-http.service.d.ts +0 -46
- package/dist/esm/services/http/smp-http.service.js +0 -1
- package/dist/esm/services/index.d.ts +0 -22
- package/dist/esm/services/index.js +0 -1
- package/dist/esm/services/smp-dynamo.service.js +0 -1
- package/dist/esm/shared/api/index.d.ts +0 -11
- package/dist/esm/shared/api/index.js +0 -1
- package/dist/esm/shared/api/smp-api-common-utils.class.d.ts +0 -15
- package/dist/esm/shared/api/smp-api-common-utils.class.js +0 -1
- package/dist/esm/shared/api/smp-error-response-create-opts.interface.d.ts +0 -13
- package/dist/esm/shared/api/smp-error-response-create-opts.interface.js +0 -1
- package/dist/esm/shared/api/smp-error-response.class.d.ts +0 -25
- package/dist/esm/shared/api/smp-error-response.class.js +0 -1
- package/dist/esm/shared/api/smp-generic-response-base.interface.d.ts +0 -9
- package/dist/esm/shared/api/smp-generic-response-base.interface.js +0 -1
- package/dist/esm/shared/api/smp-generic-response.class.d.ts +0 -20
- package/dist/esm/shared/api/smp-generic-response.class.js +0 -1
- package/dist/esm/shared/api/smp-healtz.const.d.ts +0 -5
- package/dist/esm/shared/api/smp-healtz.const.js +0 -1
- package/dist/esm/shared/api/smp-response-message-base.interface.d.ts +0 -8
- package/dist/esm/shared/api/smp-response-message-base.interface.js +0 -1
- package/dist/esm/shared/api/smp-response-message-types.enum.d.ts +0 -8
- package/dist/esm/shared/api/smp-response-message-types.enum.js +0 -1
- package/dist/esm/shared/api/smp-response-message.class.d.ts +0 -13
- package/dist/esm/shared/api/smp-response-message.class.js +0 -1
- package/dist/esm/shared/api/smp-rest-verbs.enum.d.ts +0 -9
- package/dist/esm/shared/api/smp-rest-verbs.enum.js +0 -1
- package/dist/esm/shared/common/index.d.ts +0 -6
- package/dist/esm/shared/common/index.js +0 -1
- package/dist/esm/shared/common/smp-base-jwt-token-plain.interface.d.ts +0 -7
- package/dist/esm/shared/common/smp-base-jwt-token-plain.interface.js +0 -1
- package/dist/esm/shared/common/smp-base-jwt-token.class.d.ts +0 -14
- package/dist/esm/shared/common/smp-base-jwt-token.class.js +0 -1
- package/dist/esm/shared/common/smp-generic-constructor.type.d.ts +0 -3
- package/dist/esm/shared/common/smp-generic-constructor.type.js +0 -1
- package/dist/esm/shared/common/smp-primitive.type.d.ts +0 -3
- package/dist/esm/shared/common/smp-primitive.type.js +0 -1
- package/dist/esm/shared/common/smp-social-sign-in-keys.enum.d.ts +0 -7
- package/dist/esm/shared/common/smp-social-sign-in-keys.enum.js +0 -1
- package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.d.ts +0 -6
- package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.js +0 -1
- package/dist/esm/shared/crypto/index.d.ts +0 -3
- package/dist/esm/shared/crypto/index.js +0 -1
- package/dist/esm/shared/crypto/smp-aes-crypt.class.d.ts +0 -1
- package/dist/esm/shared/crypto/smp-aes-crypt.class.js +0 -1
- package/dist/esm/shared/crypto/smp-crypto.class.d.ts +0 -10
- package/dist/esm/shared/crypto/smp-crypto.class.js +0 -1
- package/dist/esm/shared/crypto/smp-secure-code.class.d.ts +0 -20
- package/dist/esm/shared/crypto/smp-secure-code.class.js +0 -1
- package/dist/esm/shared/firebase/index.d.ts +0 -1
- package/dist/esm/shared/firebase/index.js +0 -1
- package/dist/esm/shared/firebase/smp-firebase-errors.enum.d.ts +0 -14
- package/dist/esm/shared/firebase/smp-firebase-errors.enum.js +0 -1
- package/dist/esm/shared/giftcard/index.d.ts +0 -8
- package/dist/esm/shared/giftcard/index.js +0 -1
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.d.ts +0 -11
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.js +0 -1
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.d.ts +0 -8
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.js +0 -1
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.d.ts +0 -16
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.js +0 -1
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.d.ts +0 -8
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.js +0 -1
- package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.d.ts +0 -56
- package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.js +0 -1
- package/dist/esm/shared/marketing-cloud/index.d.ts +0 -2
- package/dist/esm/shared/marketing-cloud/index.js +0 -1
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.ts +0 -14
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.js +0 -1
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.d.ts +0 -7
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.js +0 -1
- package/dist/esm/shared/rxjs/index.d.ts +0 -10
- package/dist/esm/shared/rxjs/index.js +0 -1
- package/dist/esm/shared/rxjs/smp-abstract-rxjs-ttl-cache-strategy.class.d.ts +0 -17
- package/dist/esm/shared/rxjs/smp-abstract-rxjs-ttl-cache-strategy.class.js +0 -1
- package/dist/esm/shared/rxjs/smp-rxjs-catch-only.function.d.ts +0 -5
- package/dist/esm/shared/rxjs/smp-rxjs-catch-only.function.js +0 -1
- package/dist/esm/shared/rxjs/smp-rxjs-in-memory-cache.class.d.ts +0 -15
- package/dist/esm/shared/rxjs/smp-rxjs-in-memory-cache.class.js +0 -1
- package/dist/esm/shared/rxjs/smp-rxjs-queue.function.d.ts +0 -11
- package/dist/esm/shared/rxjs/smp-rxjs-queue.function.js +0 -1
- package/dist/esm/shared/rxjs/smp-rxjs-sequence.function.d.ts +0 -12
- package/dist/esm/shared/rxjs/smp-rxjs-sequence.function.js +0 -1
- package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.d.ts +0 -38
- package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.js +0 -1
- package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.d.ts +0 -30
- package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.js +0 -1
- package/dist/esm/shared/utils/cache/index.d.ts +0 -7
- package/dist/esm/shared/utils/cache/index.js +0 -1
- package/dist/esm/shared/utils/cache/smp-abstract-cache-strategy.class.js +0 -1
- package/dist/esm/shared/utils/cache/smp-abstract-ttl-cache-strategy.class.d.ts +0 -17
- package/dist/esm/shared/utils/cache/smp-abstract-ttl-cache-strategy.class.js +0 -1
- package/dist/esm/shared/utils/cache/smp-browser-cache.class.d.ts +0 -16
- package/dist/esm/shared/utils/cache/smp-browser-cache.class.js +0 -1
- package/dist/esm/shared/utils/cache/smp-cached-value.interface.d.ts +0 -6
- package/dist/esm/shared/utils/cache/smp-cached-value.interface.js +0 -1
- package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.d.ts +0 -15
- package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.js +0 -1
- package/dist/esm/shared/utils/cache/smp-is-smp-cached-value.function.d.ts +0 -9
- package/dist/esm/shared/utils/cache/smp-is-smp-cached-value.function.js +0 -1
- package/dist/esm/shared/utils/index.d.ts +0 -15
- package/dist/esm/shared/utils/index.js +0 -1
- package/dist/esm/shared/utils/smp-apply-mixin.function.d.ts +0 -5
- package/dist/esm/shared/utils/smp-apply-mixin.function.js +0 -1
- package/dist/esm/shared/utils/smp-ascii-words.function.d.ts +0 -3
- package/dist/esm/shared/utils/smp-ascii-words.function.js +0 -1
- package/dist/esm/shared/utils/smp-common-utils.class.d.ts +0 -101
- package/dist/esm/shared/utils/smp-common-utils.class.js +0 -1
- package/dist/esm/shared/utils/smp-filter-exception.class.d.ts +0 -7
- package/dist/esm/shared/utils/smp-filter-exception.class.js +0 -1
- package/dist/esm/shared/utils/smp-noop.function.d.ts +0 -1
- package/dist/esm/shared/utils/smp-noop.function.js +0 -1
- package/dist/esm/shared/utils/smp-regular-expressions.class.d.ts +0 -16
- package/dist/esm/shared/utils/smp-regular-expressions.class.js +0 -1
- package/dist/esm/shared/utils/smp-sid.class.d.ts +0 -18
- package/dist/esm/shared/utils/smp-sid.class.js +0 -1
- package/dist/esm/shared/utils/smp-unicode-words.class.d.ts +0 -15
- package/dist/esm/shared/utils/smp-unicode-words.class.js +0 -1
- package/dist/esm/shared/zod/index.d.ts +0 -3
- package/dist/esm/shared/zod/index.js +0 -1
- package/dist/esm/shared/zod/smp-zod-date-time.definition.d.ts +0 -28
- package/dist/esm/shared/zod/smp-zod-date-time.definition.js +0 -1
- package/dist/esm/smp-aes-crypt.class-CI82T7GV.d.ts +0 -470
- /package/dist/{esm/services/smp-dynamo.service.d.ts → cjs/dynamo.d.cts} +0 -0
- /package/dist/esm/{chunk-QYDMV6LH.js → chunk-F3OJMKBL.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-SXISZIFJ.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-QYDMV6LH.js";import"../../chunk-EI7MMDWY.js";export{a as SmpResponseMessageTypes};
|
|
@@ -1,13 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-CFV5G67M.js";import"../../chunk-QYDMV6LH.js";import"../../chunk-EI7MMDWY.js";export{a as SmpResponseMessage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-VHMV4QQT.js";import"../../chunk-EI7MMDWY.js";export{a as SmpRestVerbs};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { SmpBaseJwtToken } from './smp-base-jwt-token.class.js';
|
|
2
|
-
export { SmpBaseJwtTokenPlain } from './smp-base-jwt-token-plain.interface.js';
|
|
3
|
-
export { SmpGenericConstructor } from './smp-generic-constructor.type.js';
|
|
4
|
-
export { SmpPrimitive } from './smp-primitive.type.js';
|
|
5
|
-
export { SmpSocialSignInKeys } from './smp-social-sign-in-keys.enum.js';
|
|
6
|
-
export { SmpSocialSignInUxModes } from './smp-social-sign-in-ux-modes.enum.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-HM7F3YYW.js";import{a as b}from"../../chunk-MLBCWEB4.js";import{a}from"../../chunk-GRXWCGMW.js";import"../../chunk-4LYXZUNL.js";import"../../chunk-ELQKTQ6W.js";import{a as c}from"../../chunk-TGY6ZSQU.js";import{a as d}from"../../chunk-RAVJJJYE.js";import"../../chunk-EI7MMDWY.js";export{a as SmpBaseJwtToken,b as SmpBaseJwtTokenPlain,c as SmpSocialSignInKeys,d as SmpSocialSignInUxModes};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-MLBCWEB4.js";import"../../chunk-EI7MMDWY.js";export{a as SmpBaseJwtTokenPlain};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SmpBaseJwtTokenPlain } from './smp-base-jwt-token-plain.interface.js';
|
|
2
|
-
|
|
3
|
-
declare class SmpBaseJwtToken {
|
|
4
|
-
protected _access_token: string;
|
|
5
|
-
protected _exp: number;
|
|
6
|
-
protected _iss?: string | undefined;
|
|
7
|
-
get access_token(): string;
|
|
8
|
-
get exp(): number;
|
|
9
|
-
get iss(): string | undefined;
|
|
10
|
-
constructor(_access_token: string, _exp: number, _iss?: string | undefined);
|
|
11
|
-
serialize(): SmpBaseJwtTokenPlain;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { SmpBaseJwtToken };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-GRXWCGMW.js";import"../../chunk-EI7MMDWY.js";export{a as SmpBaseJwtToken};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-4LYXZUNL.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-ELQKTQ6W.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-TGY6ZSQU.js";import"../../chunk-EI7MMDWY.js";export{a as SmpSocialSignInKeys};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-RAVJJJYE.js";import"../../chunk-EI7MMDWY.js";export{a as SmpSocialSignInUxModes};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-NQICKEAS.js";import{a as b}from"../../chunk-RJBWCWAE.js";import{a as c}from"../../chunk-STU5GUNH.js";import{a}from"../../chunk-QRCMHI3B.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-5WULAY6L.js";import"../../chunk-ET5LYR3A.js";import"../../chunk-CFV5G67M.js";import"../../chunk-QYDMV6LH.js";import"../../chunk-OUSY7GMI.js";import"../../chunk-EI7MMDWY.js";export{a as SmpAesCrypt,b as SmpCrypto,c as SmpSecureCode};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { S as SmpAesCrypt } from '../../smp-aes-crypt.class-CI82T7GV.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-QRCMHI3B.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-EI7MMDWY.js";export{a as SmpAesCrypt};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-RJBWCWAE.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-EI7MMDWY.js";export{a as SmpCrypto};
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* Checks secure code, throws a 400 error on failure
|
|
13
|
-
* @param giftcardCode
|
|
14
|
-
* @param pinToVerify
|
|
15
|
-
*/
|
|
16
|
-
static check<T extends string>(giftcardCode: string, pinToVerify: T): asserts giftcardCode is T;
|
|
17
|
-
protected _encode(): string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { SmpSecureCode };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-STU5GUNH.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-5WULAY6L.js";import"../../chunk-ET5LYR3A.js";import"../../chunk-CFV5G67M.js";import"../../chunk-QYDMV6LH.js";import"../../chunk-OUSY7GMI.js";import"../../chunk-EI7MMDWY.js";export{a as SmpSecureCode};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SmpFirebaseErrors } from './smp-firebase-errors.enum.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-D66G2KIE.js";import{a}from"../../chunk-JXSMI3MI.js";import"../../chunk-EI7MMDWY.js";export{a as SmpFirebaseErrors};
|
|
@@ -1,14 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-JXSMI3MI.js";import"../../chunk-EI7MMDWY.js";export{a as SmpFirebaseErrors};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 '@tonysamperi/logger';
|
|
8
|
-
import 'ts-luxon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-HOM5S5W3.js";import"../../chunk-BHFFGFHY.js";import{a as c}from"../../chunk-G7PUYG2K.js";import"../../chunk-ZYPNYJVE.js";import{a as b}from"../../chunk-3HRZ6R3F.js";import{a}from"../../chunk-RAJGA43T.js";import"../../chunk-QRCMHI3B.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-EI7MMDWY.js";export{c as SmpGiftcardTransaction,b as SmpGiftcardTransactionHashStrategies,a as SmpGiftcardTransactionOps};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-ZYPNYJVE.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-3HRZ6R3F.js";import"../../chunk-EI7MMDWY.js";export{a as SmpGiftcardTransactionHashStrategies};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-RAJGA43T.js";import"../../chunk-EI7MMDWY.js";export{a as SmpGiftcardTransactionOps};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-BHFFGFHY.js";
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { S as SmpAesCrypt, W as WordArray } from '../../smp-aes-crypt.class-CI82T7GV.js';
|
|
2
|
-
import { SmpLoggerMethods } from '@tonysamperi/logger';
|
|
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 #SmpGiftcardTransaction._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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-G7PUYG2K.js";import"../../chunk-3HRZ6R3F.js";import"../../chunk-RAJGA43T.js";import"../../chunk-QRCMHI3B.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-EI7MMDWY.js";export{a as SmpGiftcardTransaction};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-Q77KUWBZ.js";import"../../chunk-553CS7VH.js";import{a}from"../../chunk-4TNTWTMN.js";import"../../chunk-EI7MMDWY.js";export{a as SmpMarketingCloudValidators};
|
package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SmpMarketingCloudValidators } from './smp-marketing-cloud-validators.enum.js';
|
|
2
|
-
|
|
3
|
-
interface SmpMarketingCloudValidationResponseOk {
|
|
4
|
-
email: string;
|
|
5
|
-
valid: true;
|
|
6
|
-
}
|
|
7
|
-
interface SmpMarketingCloudValidationResponseKo {
|
|
8
|
-
email: string;
|
|
9
|
-
valid: boolean;
|
|
10
|
-
failedValidation: SmpMarketingCloudValidators;
|
|
11
|
-
}
|
|
12
|
-
type SmpMarketingCloudValidationResponse = SmpMarketingCloudValidationResponseOk | SmpMarketingCloudValidationResponseKo;
|
|
13
|
-
|
|
14
|
-
export type { SmpMarketingCloudValidationResponse, SmpMarketingCloudValidationResponseKo, SmpMarketingCloudValidationResponseOk };
|
package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-553CS7VH.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-4TNTWTMN.js";import"../../chunk-EI7MMDWY.js";export{a as SmpMarketingCloudValidators};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { SmpAbstractRxjsTtlCacheStrategy } from './smp-abstract-rxjs-ttl-cache-strategy.class.js';
|
|
2
|
-
export { smpRxjsCatchOnly } from './smp-rxjs-catch-only.function.js';
|
|
3
|
-
export { SmpRxjsInMemoryCache } from './smp-rxjs-in-memory-cache.class.js';
|
|
4
|
-
export { smpRxjsQueue } from './smp-rxjs-queue.function.js';
|
|
5
|
-
export { smpRxjsSequence } from './smp-rxjs-sequence.function.js';
|
|
6
|
-
export { smpRxjsThrowIfEmpty } from './smp-rxjs-throw-if-empty.function.js';
|
|
7
|
-
export { smpRxjsThrowOnCondition } from './smp-rxjs-throw-on-condition.function.js';
|
|
8
|
-
import 'rxjs';
|
|
9
|
-
import '../utils/cache/smp-abstract-cache-strategy.class.js';
|
|
10
|
-
import '../utils/cache/smp-cached-value.interface.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-SZM4WHQJ.js";import{a as c}from"../../chunk-MRKAFTDG.js";import{a as d}from"../../chunk-2UDNZC5A.js";import{a as e}from"../../chunk-L7KNFRNV.js";import{a as g}from"../../chunk-QWZP25QT.js";import{a as f}from"../../chunk-FLTR4ZY6.js";import{a}from"../../chunk-YEQJ4M3P.js";import{a as b}from"../../chunk-QW43DOPY.js";import"../../chunk-DADFHUII.js";import"../../chunk-5VCNTUI6.js";import"../../chunk-EI7MMDWY.js";export{a as SmpAbstractRxjsTtlCacheStrategy,c as SmpRxjsInMemoryCache,b as smpRxjsCatchOnly,d as smpRxjsQueue,e as smpRxjsSequence,f as smpRxjsThrowIfEmpty,g as smpRxjsThrowOnCondition};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SmpAbstractCacheStrategy } from '../utils/cache/smp-abstract-cache-strategy.class.js';
|
|
3
|
-
import { SmpCachedValue } from '../utils/cache/smp-cached-value.interface.js';
|
|
4
|
-
|
|
5
|
-
declare abstract class SmpAbstractRxjsTtlCacheStrategy extends SmpAbstractCacheStrategy {
|
|
6
|
-
protected abstract _flushRaw(): Observable<void>;
|
|
7
|
-
protected abstract _readRaw(key: string): Observable<unknown | undefined>;
|
|
8
|
-
protected abstract _removeRaw(key: string): Observable<void>;
|
|
9
|
-
protected abstract _writeRaw(key: string, value: unknown, ttl?: number): Observable<void>;
|
|
10
|
-
flush(): Observable<void>;
|
|
11
|
-
read<T = unknown>(key: string): Observable<T | undefined>;
|
|
12
|
-
remove(key: string): Observable<void>;
|
|
13
|
-
write<T = unknown>(key: string, value: T, ttl?: number): Observable<void>;
|
|
14
|
-
protected _isSmpCachedValue<T>(value: unknown): value is SmpCachedValue<T>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { SmpAbstractRxjsTtlCacheStrategy };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-YEQJ4M3P.js";import"../../chunk-DADFHUII.js";import"../../chunk-5VCNTUI6.js";import"../../chunk-EI7MMDWY.js";export{a as SmpAbstractRxjsTtlCacheStrategy};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ObservableInput, OperatorFunction, ObservedValueOf } from 'rxjs';
|
|
2
|
-
|
|
3
|
-
declare function smpRxjsCatchOnly<T, E extends Error, O extends ObservableInput<any>>(errorFilter: (new (...args: any[]) => E) | ((err: unknown) => boolean), selector: (err: E) => O): OperatorFunction<T, T | ObservedValueOf<O>>;
|
|
4
|
-
|
|
5
|
-
export { smpRxjsCatchOnly };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-QW43DOPY.js";import"../../chunk-EI7MMDWY.js";export{a as smpRxjsCatchOnly};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SmpAbstractRxjsTtlCacheStrategy } from './smp-abstract-rxjs-ttl-cache-strategy.class.js';
|
|
3
|
-
import '../utils/cache/smp-abstract-cache-strategy.class.js';
|
|
4
|
-
import '../utils/cache/smp-cached-value.interface.js';
|
|
5
|
-
|
|
6
|
-
declare class SmpRxjsInMemoryCache extends SmpAbstractRxjsTtlCacheStrategy {
|
|
7
|
-
private static _storage;
|
|
8
|
-
protected get _staticSelf(): typeof SmpRxjsInMemoryCache;
|
|
9
|
-
protected _flushRaw(): Observable<void>;
|
|
10
|
-
protected _readRaw(key: string): Observable<unknown | undefined>;
|
|
11
|
-
protected _removeRaw(key: string): Observable<void>;
|
|
12
|
-
protected _writeRaw(key: string, value: unknown): Observable<void>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { SmpRxjsInMemoryCache };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-MRKAFTDG.js";import"../../chunk-YEQJ4M3P.js";import"../../chunk-DADFHUII.js";import"../../chunk-5VCNTUI6.js";import"../../chunk-EI7MMDWY.js";export{a as SmpRxjsInMemoryCache};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
|
|
3
|
-
type ObsFnMap = Record<string, () => Observable<any>>;
|
|
4
|
-
declare function smpRxjsQueue<T extends any[]>(source: {
|
|
5
|
-
[K in keyof T]: () => Observable<T[K]>;
|
|
6
|
-
}): Observable<T>;
|
|
7
|
-
declare function smpRxjsQueue<T extends ObsFnMap>(source: T): Observable<{
|
|
8
|
-
[K in keyof T]: T[K] extends () => Observable<infer U> ? U : never;
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
export { smpRxjsQueue };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-2UDNZC5A.js";import"../../chunk-EI7MMDWY.js";export{a as smpRxjsQueue};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Old version of the sequence. Now rewritten using recursion, which is way faster.
|
|
5
|
-
* But you can use this if you want to stick with the rxjs pattern
|
|
6
|
-
* @param steps
|
|
7
|
-
*/
|
|
8
|
-
declare function smpRxjsSequence<T extends any[]>(steps: {
|
|
9
|
-
[K in keyof T]: () => Observable<T[K]>;
|
|
10
|
-
}): Observable<T>;
|
|
11
|
-
|
|
12
|
-
export { smpRxjsSequence };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-L7KNFRNV.js";import"../../chunk-EI7MMDWY.js";export{a as smpRxjsSequence};
|
|
@@ -1,38 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-FLTR4ZY6.js";import"../../chunk-EI7MMDWY.js";export{a as smpRxjsThrowIfEmpty};
|
|
@@ -1,30 +0,0 @@
|
|
|
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 { smpRxjsThrowOnCondition } from "./path-to-your-file";
|
|
17
|
-
*
|
|
18
|
-
* const source$ = of(1, 5, -3, 7, 12).pipe(
|
|
19
|
-
* smpRxjsThrowOnCondition(value => value >= 0, () => new Error("Value is less than 0")),
|
|
20
|
-
* smpRxjsThrowOnCondition(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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-QWZP25QT.js";import"../../chunk-FLTR4ZY6.js";import"../../chunk-EI7MMDWY.js";export{a as smpRxjsThrowOnCondition};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { SmpAbstractCacheStrategy } from './smp-abstract-cache-strategy.class.js';
|
|
2
|
-
export { SmpAbstractTtlCacheStrategy } from './smp-abstract-ttl-cache-strategy.class.js';
|
|
3
|
-
export { SmpBrowserCache } from './smp-browser-cache.class.js';
|
|
4
|
-
export { SmpCachedValue } from './smp-cached-value.interface.js';
|
|
5
|
-
export { SmpInMemoryCache } from './smp-in-memory-cache.class.js';
|
|
6
|
-
export { smpIsSmpCachedValue } from './smp-is-smp-cached-value.function.js';
|
|
7
|
-
import 'rxjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../../chunk-DGUMFWCQ.js";import"../../../chunk-EB55SS67.js";import{a as e}from"../../../chunk-SJOEBOGG.js";import{a as d}from"../../../chunk-QK6DPGU6.js";import{a as c}from"../../../chunk-FTXCYY5S.js";import{a}from"../../../chunk-DADFHUII.js";import{a as b}from"../../../chunk-5VCNTUI6.js";import"../../../chunk-EI7MMDWY.js";export{a as SmpAbstractCacheStrategy,c as SmpAbstractTtlCacheStrategy,d as SmpBrowserCache,e as SmpInMemoryCache,b as smpIsSmpCachedValue};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../chunk-DADFHUII.js";import"../../../chunk-EI7MMDWY.js";export{a as SmpAbstractCacheStrategy};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SmpAbstractCacheStrategy } from './smp-abstract-cache-strategy.class.js';
|
|
2
|
-
import { SmpCachedValue } from './smp-cached-value.interface.js';
|
|
3
|
-
import 'rxjs';
|
|
4
|
-
|
|
5
|
-
declare abstract class SmpAbstractTtlCacheStrategy extends SmpAbstractCacheStrategy {
|
|
6
|
-
protected abstract _flushRaw(): void;
|
|
7
|
-
protected abstract _readRaw(key: string): unknown | undefined;
|
|
8
|
-
protected abstract _removeRaw(key: string): void;
|
|
9
|
-
protected abstract _writeRaw(key: string, value: unknown, ttl?: number): void;
|
|
10
|
-
flush(): void;
|
|
11
|
-
read<T = unknown>(key: string): T | undefined;
|
|
12
|
-
remove(key: string): void;
|
|
13
|
-
write<T = unknown>(key: string, value: T, ttl?: number): void;
|
|
14
|
-
protected _isSmpCachedValue<T>(value: unknown): value is SmpCachedValue<T>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { SmpAbstractTtlCacheStrategy };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../chunk-FTXCYY5S.js";import"../../../chunk-DADFHUII.js";import"../../../chunk-5VCNTUI6.js";import"../../../chunk-EI7MMDWY.js";export{a as SmpAbstractTtlCacheStrategy};
|