@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,16 +0,0 @@
|
|
|
1
|
-
import { SmpAbstractTtlCacheStrategy } from './smp-abstract-ttl-cache-strategy.class.js';
|
|
2
|
-
import './smp-abstract-cache-strategy.class.js';
|
|
3
|
-
import 'rxjs';
|
|
4
|
-
import './smp-cached-value.interface.js';
|
|
5
|
-
|
|
6
|
-
declare class SmpBrowserCache extends SmpAbstractTtlCacheStrategy {
|
|
7
|
-
protected _storage: typeof localStorage | typeof sessionStorage;
|
|
8
|
-
protected _prefix: string;
|
|
9
|
-
constructor(_storage: typeof localStorage | typeof sessionStorage, _prefix: string);
|
|
10
|
-
protected _flushRaw(): void;
|
|
11
|
-
protected _readRaw(key: string): unknown | undefined;
|
|
12
|
-
protected _removeRaw(key: string): void;
|
|
13
|
-
protected _writeRaw(key: string, value: unknown): void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { SmpBrowserCache };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../chunk-QK6DPGU6.js";import"../../../chunk-FTXCYY5S.js";import"../../../chunk-DADFHUII.js";import"../../../chunk-5VCNTUI6.js";import"../../../chunk-EI7MMDWY.js";export{a as SmpBrowserCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../../chunk-EB55SS67.js";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SmpAbstractTtlCacheStrategy } from './smp-abstract-ttl-cache-strategy.class.js';
|
|
2
|
-
import './smp-abstract-cache-strategy.class.js';
|
|
3
|
-
import 'rxjs';
|
|
4
|
-
import './smp-cached-value.interface.js';
|
|
5
|
-
|
|
6
|
-
declare class SmpInMemoryCache extends SmpAbstractTtlCacheStrategy {
|
|
7
|
-
private static _storage;
|
|
8
|
-
protected get _staticSelf(): typeof SmpInMemoryCache;
|
|
9
|
-
protected _flushRaw(): void;
|
|
10
|
-
protected _readRaw(key: string): unknown | undefined;
|
|
11
|
-
protected _removeRaw(key: string): void;
|
|
12
|
-
protected _writeRaw(key: string, value: unknown): void;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { SmpInMemoryCache };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../chunk-SJOEBOGG.js";import"../../../chunk-FTXCYY5S.js";import"../../../chunk-DADFHUII.js";import"../../../chunk-5VCNTUI6.js";import"../../../chunk-EI7MMDWY.js";export{a as SmpInMemoryCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../chunk-5VCNTUI6.js";import"../../../chunk-EI7MMDWY.js";export{a as smpIsSmpCachedValue};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { smpApplyMixin } from './smp-apply-mixin.function.js';
|
|
2
|
-
export { SmpCommonUtils } from './smp-common-utils.class.js';
|
|
3
|
-
export { SmpFilterException } from './smp-filter-exception.class.js';
|
|
4
|
-
export { SmpSid } from './smp-sid.class.js';
|
|
5
|
-
export { smpNoop } from '@tonysamperi/logger';
|
|
6
|
-
export { SmpRegularExpressions } from './smp-regular-expressions.class.js';
|
|
7
|
-
export { SmpAbstractCacheStrategy } from './cache/smp-abstract-cache-strategy.class.js';
|
|
8
|
-
export { SmpAbstractTtlCacheStrategy } from './cache/smp-abstract-ttl-cache-strategy.class.js';
|
|
9
|
-
export { SmpBrowserCache } from './cache/smp-browser-cache.class.js';
|
|
10
|
-
export { SmpCachedValue } from './cache/smp-cached-value.interface.js';
|
|
11
|
-
export { SmpInMemoryCache } from './cache/smp-in-memory-cache.class.js';
|
|
12
|
-
export { smpIsSmpCachedValue } from './cache/smp-is-smp-cached-value.function.js';
|
|
13
|
-
import '../common/smp-generic-constructor.type.js';
|
|
14
|
-
import '../api/smp-rest-verbs.enum.js';
|
|
15
|
-
import 'rxjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-PKEW426R.js";import"../../chunk-DGUMFWCQ.js";import"../../chunk-EB55SS67.js";import{a as g}from"../../chunk-ZTDFA2UA.js";import{a as h}from"../../chunk-4UTF5FWK.js";import{a as j}from"../../chunk-WTLVPDI2.js";import{a as k}from"../../chunk-RGLXAD7B.js";import{a as i}from"../../chunk-SPPRTVHH.js";import"../../chunk-DOKJQH4K.js";import{a as f}from"../../chunk-ZKODHJSY.js";import"../../chunk-R6VG4656.js";import"../../chunk-VHMV4QQT.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,g as SmpCommonUtils,h as SmpFilterException,e as SmpInMemoryCache,k as SmpRegularExpressions,i as SmpSid,f as smpApplyMixin,b as smpIsSmpCachedValue,j as smpNoop};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-ZKODHJSY.js";import"../../chunk-EI7MMDWY.js";export{a as smpApplyMixin};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-R6VG4656.js";import"../../chunk-EI7MMDWY.js";export{a as smpAsciiWords};
|
|
@@ -1,101 +0,0 @@
|
|
|
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 SmpCommonUtils.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 omit<T extends object, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
|
|
80
|
-
static parseBoolean(str?: string): boolean;
|
|
81
|
-
static parseJsonSafely<T = any>(str: string): T | void;
|
|
82
|
-
static pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
|
83
|
-
static runSafely<V = any, U = any, T extends Function = (...args: V[]) => U>(fn?: T, thisArg?: null, params?: V[]): U | void;
|
|
84
|
-
static sleep(timeToDelay: number): Promise<unknown>;
|
|
85
|
-
static sprintf(str: string, ...argv: (string | number | symbol)[]): string;
|
|
86
|
-
static stripComments(html: string): string;
|
|
87
|
-
static submitFakeForm<T extends object = object>({ action, method, data, target }: {
|
|
88
|
-
action: string;
|
|
89
|
-
method: SmpRestVerbs;
|
|
90
|
-
data?: T;
|
|
91
|
-
target?: "_blank" | "_self";
|
|
92
|
-
}): void;
|
|
93
|
-
static toCamelCase(s: string): string;
|
|
94
|
-
static toKebabCase(s: string): string;
|
|
95
|
-
static toPascalCase(s: string): string;
|
|
96
|
-
static toSnakeCase(s: string): string;
|
|
97
|
-
static toUpperSnakeCase(s: string): string;
|
|
98
|
-
static words(string: string, pattern?: RegExp): string[];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export { SmpCommonUtils };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-ZTDFA2UA.js";import"../../chunk-DOKJQH4K.js";import"../../chunk-R6VG4656.js";import"../../chunk-VHMV4QQT.js";import"../../chunk-EI7MMDWY.js";export{a as SmpCommonUtils};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-4UTF5FWK.js";import"../../chunk-EI7MMDWY.js";export{a as SmpFilterException};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { smpNoop } from '@tonysamperi/logger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-WTLVPDI2.js";import"../../chunk-EI7MMDWY.js";export{a as smpNoop};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-RGLXAD7B.js";import"../../chunk-EI7MMDWY.js";export{a as SmpRegularExpressions};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SmpCachedValue } from './cache/smp-cached-value.interface.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A util to generate session ids
|
|
5
|
-
*/
|
|
6
|
-
declare class SmpSid implements SmpCachedValue<string> {
|
|
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: SmpCachedValue<string>): SmpSid;
|
|
15
|
-
toPlain(): SmpCachedValue<string>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { SmpSid };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-SPPRTVHH.js";import"../../chunk-EI7MMDWY.js";export{a as SmpSid};
|
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-DOKJQH4K.js";import"../../chunk-EI7MMDWY.js";export{a as SmpUnicodeWords};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../chunk-O7TJDNO6.js";import{a,b}from"../../chunk-QPKVVZUA.js";import"../../chunk-EI7MMDWY.js";export{a as SmpZodDateTime,b as smpZodDateTime};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import z, { ZodTypeDef, ParseInput, ParseReturnType } from 'zod';
|
|
2
|
-
import { DateTime } from 'ts-luxon';
|
|
3
|
-
|
|
4
|
-
interface SmpZodDateTimeCheck {
|
|
5
|
-
kind: "min" | "max" | "between";
|
|
6
|
-
min?: DateTime;
|
|
7
|
-
max?: DateTime;
|
|
8
|
-
message?: string;
|
|
9
|
-
}
|
|
10
|
-
interface SmpZodDateTimeDef extends ZodTypeDef {
|
|
11
|
-
coerce: boolean;
|
|
12
|
-
checks: SmpZodDateTimeCheck[];
|
|
13
|
-
typeName: "SmpZodDateTime";
|
|
14
|
-
}
|
|
15
|
-
declare class SmpZodDateTime extends z.ZodType<DateTime, SmpZodDateTimeDef> {
|
|
16
|
-
constructor(def?: Partial<SmpZodDateTimeDef>);
|
|
17
|
-
_parse(input: ParseInput): ParseReturnType<DateTime>;
|
|
18
|
-
between(min: DateTime, max: DateTime, message?: string): this;
|
|
19
|
-
coerce(): this;
|
|
20
|
-
max(max: DateTime, message?: string): this;
|
|
21
|
-
min(min: DateTime, message?: string): this;
|
|
22
|
-
private _coerceToDateTime;
|
|
23
|
-
}
|
|
24
|
-
declare const smpZodDateTime: (opts?: {
|
|
25
|
-
coerce?: boolean;
|
|
26
|
-
}) => SmpZodDateTime;
|
|
27
|
-
|
|
28
|
-
export { SmpZodDateTime, smpZodDateTime };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-QPKVVZUA.js";import"../../chunk-EI7MMDWY.js";export{a as SmpZodDateTime,b as smpZodDateTime};
|