@powfix/core-js 0.22.1 → 0.23.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/browser/index.cjs +1 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.js +0 -0
- package/dist/chunk-ETV4XYOV.cjs +18 -0
- package/dist/chunk-PKBMQBKP.js +17 -0
- package/dist/index.browser.cjs +15 -1831
- package/dist/index.browser.d.ts +57 -484
- package/dist/index.browser.js +2 -1773
- package/dist/index.cjs +7 -1832
- package/dist/index.d.ts +52 -1
- package/dist/index.js +1 -1773
- package/dist/index.node.cjs +13 -76631
- package/dist/index.node.d.ts +77 -164
- package/dist/index.node.js +2 -76578
- package/dist/nodejs/constants/TransactionManagerLogLevel.cjs +11 -0
- package/dist/nodejs/constants/TransactionManagerLogLevel.d.ts +9 -0
- package/dist/nodejs/constants/TransactionManagerLogLevel.js +10 -0
- package/dist/nodejs/constants/TransactionManagerTimeoutAction.cjs +8 -0
- package/dist/nodejs/constants/TransactionManagerTimeoutAction.d.ts +6 -0
- package/dist/nodejs/constants/TransactionManagerTimeoutAction.js +7 -0
- package/dist/nodejs/constants/index.cjs +19 -0
- package/dist/nodejs/constants/index.d.ts +2 -0
- package/dist/nodejs/constants/index.js +2 -0
- package/dist/nodejs/index.cjs +55 -0
- package/dist/nodejs/index.d.ts +25 -0
- package/dist/nodejs/index.js +6 -0
- package/dist/nodejs/interfaces/db/index.cjs +10 -0
- package/dist/nodejs/interfaces/db/index.d.ts +10 -0
- package/dist/nodejs/interfaces/db/index.js +1 -0
- package/dist/nodejs/interfaces/db/sequelize/Hook.cjs +1 -0
- package/dist/nodejs/interfaces/db/sequelize/Hook.d.ts +13 -0
- package/dist/nodejs/interfaces/db/sequelize/Hook.js +0 -0
- package/dist/nodejs/interfaces/db/sequelize/HookFn.cjs +1 -0
- package/dist/nodejs/interfaces/db/sequelize/HookFn.d.ts +7 -0
- package/dist/nodejs/interfaces/db/sequelize/HookFn.js +0 -0
- package/dist/nodejs/interfaces/db/sequelize/HookType.cjs +1 -0
- package/dist/nodejs/interfaces/db/sequelize/HookType.d.ts +6 -0
- package/dist/nodejs/interfaces/db/sequelize/HookType.js +0 -0
- package/dist/nodejs/interfaces/db/sequelize/ReloadOption.cjs +1 -0
- package/dist/nodejs/interfaces/db/sequelize/ReloadOption.d.ts +5 -0
- package/dist/nodejs/interfaces/db/sequelize/ReloadOption.js +0 -0
- package/dist/nodejs/interfaces/db/sequelize/TransactionOption.cjs +1 -0
- package/dist/nodejs/interfaces/db/sequelize/TransactionOption.d.ts +7 -0
- package/dist/nodejs/interfaces/db/sequelize/TransactionOption.js +0 -0
- package/dist/nodejs/interfaces/db/sequelize/UpsertOptions.cjs +1 -0
- package/dist/nodejs/interfaces/db/sequelize/UpsertOptions.d.ts +8 -0
- package/dist/nodejs/interfaces/db/sequelize/UpsertOptions.js +0 -0
- package/dist/nodejs/interfaces/db/sequelize/index.cjs +55 -0
- package/dist/nodejs/interfaces/db/sequelize/index.d.ts +10 -0
- package/dist/nodejs/interfaces/db/sequelize/index.js +6 -0
- package/dist/nodejs/interfaces/index.cjs +10 -0
- package/dist/nodejs/interfaces/index.d.ts +10 -0
- package/dist/nodejs/interfaces/index.js +1 -0
- package/dist/nodejs/managers/TransactionManager.cjs +463 -0
- package/dist/nodejs/managers/TransactionManager.d.ts +31 -0
- package/dist/nodejs/managers/TransactionManager.js +457 -0
- package/dist/nodejs/managers/TransactionManager.types.cjs +1 -0
- package/dist/nodejs/managers/TransactionManager.types.d.ts +12 -0
- package/dist/nodejs/managers/TransactionManager.types.js +0 -0
- package/dist/nodejs/managers/index.cjs +19 -0
- package/dist/nodejs/managers/index.d.ts +6 -0
- package/dist/nodejs/managers/index.js +2 -0
- package/dist/nodejs/services/index.cjs +10 -0
- package/dist/nodejs/services/index.d.ts +5 -0
- package/dist/nodejs/services/index.js +1 -0
- package/dist/nodejs/services/redis/RedisClient.cjs +250 -0
- package/dist/nodejs/services/redis/RedisClient.d.ts +24 -0
- package/dist/nodejs/services/redis/RedisClient.js +250 -0
- package/dist/nodejs/services/redis/RedisPublisher.cjs +323 -0
- package/dist/nodejs/services/redis/RedisPublisher.d.ts +17 -0
- package/dist/nodejs/services/redis/RedisPublisher.js +323 -0
- package/dist/nodejs/services/redis/RedisSubscriber.cjs +502 -0
- package/dist/nodejs/services/redis/RedisSubscriber.d.ts +15 -0
- package/dist/nodejs/services/redis/RedisSubscriber.js +502 -0
- package/dist/nodejs/services/redis/index.cjs +28 -0
- package/dist/nodejs/services/redis/index.d.ts +5 -0
- package/dist/nodejs/services/redis/index.js +3 -0
- package/dist/nodejs/types/UpsertResult.cjs +1 -0
- package/dist/nodejs/types/UpsertResult.d.ts +5 -0
- package/dist/nodejs/types/UpsertResult.js +0 -0
- package/dist/nodejs/types/index.cjs +19 -0
- package/dist/nodejs/types/index.d.ts +9 -0
- package/dist/nodejs/types/index.js +2 -0
- package/dist/nodejs/types/mariaDb.cjs +1 -0
- package/dist/nodejs/types/mariaDb.d.ts +15 -0
- package/dist/nodejs/types/mariaDb.js +0 -0
- package/dist/nodejs/utils/HookUtils.cjs +87 -0
- package/dist/nodejs/utils/HookUtils.d.ts +20 -0
- package/dist/nodejs/utils/HookUtils.js +87 -0
- package/dist/nodejs/utils/index.cjs +19 -0
- package/dist/nodejs/utils/index.d.ts +10 -0
- package/dist/nodejs/utils/index.js +2 -0
- package/dist/nodejs/utils/sequelize-utils/SequelizeUtils.cjs +165 -0
- package/dist/nodejs/utils/sequelize-utils/SequelizeUtils.d.ts +12 -0
- package/dist/nodejs/utils/sequelize-utils/SequelizeUtils.js +165 -0
- package/dist/nodejs/utils/sequelize-utils/index.cjs +19 -0
- package/dist/nodejs/utils/sequelize-utils/index.d.ts +3 -0
- package/dist/nodejs/utils/sequelize-utils/index.js +2 -0
- package/dist/nodejs/utils/sequelize-utils/types.cjs +1 -0
- package/dist/nodejs/utils/sequelize-utils/types.d.ts +19 -0
- package/dist/nodejs/utils/sequelize-utils/types.js +0 -0
- package/dist/shared/constants/COORDINATE.cjs +15 -0
- package/dist/shared/constants/COORDINATE.d.ts +9 -0
- package/dist/shared/constants/COORDINATE.js +15 -0
- package/dist/shared/constants/CRUD.cjs +26 -0
- package/dist/shared/constants/CRUD.d.ts +11 -0
- package/dist/shared/constants/CRUD.js +26 -0
- package/dist/shared/constants/DATE.cjs +34 -0
- package/dist/shared/constants/DATE.d.ts +15 -0
- package/dist/shared/constants/DATE.js +34 -0
- package/dist/shared/constants/DISTANCE.cjs +22 -0
- package/dist/shared/constants/DISTANCE.d.ts +15 -0
- package/dist/shared/constants/DISTANCE.js +22 -0
- package/dist/shared/constants/DURATION.cjs +25 -0
- package/dist/shared/constants/DURATION.d.ts +18 -0
- package/dist/shared/constants/DURATION.js +25 -0
- package/dist/shared/constants/NOT_NULL.cjs +4 -0
- package/dist/shared/constants/NOT_NULL.d.ts +3 -0
- package/dist/shared/constants/NOT_NULL.js +3 -0
- package/dist/shared/constants/index.cjs +55 -0
- package/dist/shared/constants/index.d.ts +6 -0
- package/dist/shared/constants/index.js +6 -0
- package/dist/shared/exports/Uint8Array.cjs +9 -0
- package/dist/shared/exports/Uint8Array.d.ts +6 -0
- package/dist/shared/exports/Uint8Array.js +8 -0
- package/dist/shared/exports/atob.cjs +3 -0
- package/dist/shared/exports/atob.d.ts +2 -0
- package/dist/shared/exports/atob.js +2 -0
- package/dist/shared/exports/btoa.cjs +3 -0
- package/dist/shared/exports/btoa.d.ts +2 -0
- package/dist/shared/exports/btoa.js +2 -0
- package/dist/shared/index.cjs +64 -0
- package/dist/shared/index.d.ts +57 -0
- package/dist/shared/index.js +7 -0
- package/dist/shared/interfaces/Coordinate.cjs +1 -0
- package/dist/shared/interfaces/Coordinate.d.ts +10 -0
- package/dist/shared/interfaces/Coordinate.js +0 -0
- package/dist/shared/interfaces/Point2.cjs +1 -0
- package/dist/shared/interfaces/Point2.d.ts +6 -0
- package/dist/shared/interfaces/Point2.js +0 -0
- package/dist/shared/interfaces/Point3.cjs +1 -0
- package/dist/shared/interfaces/Point3.d.ts +7 -0
- package/dist/shared/interfaces/Point3.js +0 -0
- package/dist/shared/interfaces/StorageProvider.cjs +1 -0
- package/dist/shared/interfaces/StorageProvider.d.ts +9 -0
- package/dist/shared/interfaces/StorageProvider.js +0 -0
- package/dist/shared/interfaces/index.cjs +37 -0
- package/dist/shared/interfaces/index.d.ts +4 -0
- package/dist/shared/interfaces/index.js +4 -0
- package/dist/shared/managers/SessionManager.cjs +498 -0
- package/dist/shared/managers/SessionManager.d.ts +18 -0
- package/dist/shared/managers/SessionManager.js +491 -0
- package/dist/shared/managers/SessionManager.type.cjs +1 -0
- package/dist/shared/managers/SessionManager.type.d.ts +12 -0
- package/dist/shared/managers/SessionManager.type.js +0 -0
- package/dist/shared/managers/index.cjs +19 -0
- package/dist/shared/managers/index.d.ts +5 -0
- package/dist/shared/managers/index.js +2 -0
- package/dist/shared/scripts/base64Polyfill.cjs +20 -0
- package/dist/shared/scripts/base64Polyfill.d.ts +3 -0
- package/dist/shared/scripts/base64Polyfill.js +13 -0
- package/dist/shared/scripts/index.cjs +10 -0
- package/dist/shared/scripts/index.d.ts +1 -0
- package/dist/shared/scripts/index.js +1 -0
- package/dist/shared/services/index.cjs +10 -0
- package/dist/shared/services/index.d.ts +3 -0
- package/dist/shared/services/index.js +1 -0
- package/dist/shared/services/time/TimeService.cjs +487 -0
- package/dist/shared/services/time/TimeService.d.ts +34 -0
- package/dist/shared/services/time/TimeService.js +481 -0
- package/dist/shared/services/time/TimeService.type.cjs +1 -0
- package/dist/shared/services/time/TimeService.type.d.ts +23 -0
- package/dist/shared/services/time/TimeService.type.js +0 -0
- package/dist/shared/services/time/index.cjs +19 -0
- package/dist/shared/services/time/index.d.ts +3 -0
- package/dist/shared/services/time/index.js +2 -0
- package/dist/shared/types/IntRage.cjs +1 -0
- package/dist/shared/types/IntRage.d.ts +4 -0
- package/dist/shared/types/IntRage.js +0 -0
- package/dist/shared/types/PartialExcept.cjs +1 -0
- package/dist/shared/types/PartialExcept.d.ts +3 -0
- package/dist/shared/types/PartialExcept.js +0 -0
- package/dist/shared/types/index.cjs +19 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/index.js +2 -0
- package/dist/shared/utils/ArrayUtils.cjs +104 -0
- package/dist/shared/utils/ArrayUtils.d.ts +14 -0
- package/dist/shared/utils/ArrayUtils.js +104 -0
- package/dist/shared/utils/AxiosUtils.cjs +113 -0
- package/dist/shared/utils/AxiosUtils.d.ts +8 -0
- package/dist/shared/utils/AxiosUtils.js +113 -0
- package/dist/shared/utils/BooleanUtils.cjs +7 -0
- package/dist/shared/utils/BooleanUtils.d.ts +3 -0
- package/dist/shared/utils/BooleanUtils.js +6 -0
- package/dist/shared/utils/Calc.cjs +62 -0
- package/dist/shared/utils/Calc.d.ts +6 -0
- package/dist/shared/utils/Calc.js +62 -0
- package/dist/shared/utils/CoordinateUtils.cjs +85 -0
- package/dist/shared/utils/CoordinateUtils.d.ts +11 -0
- package/dist/shared/utils/CoordinateUtils.js +85 -0
- package/dist/shared/utils/DateUtils.cjs +656 -0
- package/dist/shared/utils/DateUtils.d.ts +27 -0
- package/dist/shared/utils/DateUtils.js +651 -0
- package/dist/shared/utils/Enum.cjs +142 -0
- package/dist/shared/utils/Enum.d.ts +19 -0
- package/dist/shared/utils/Enum.js +142 -0
- package/dist/shared/utils/Enum.types.cjs +1 -0
- package/dist/shared/utils/Enum.types.d.ts +7 -0
- package/dist/shared/utils/Enum.types.js +0 -0
- package/dist/shared/utils/I18nUtils.cjs +48 -0
- package/dist/shared/utils/I18nUtils.d.ts +7 -0
- package/dist/shared/utils/I18nUtils.js +42 -0
- package/dist/shared/utils/JuminNumberUtils.cjs +71 -0
- package/dist/shared/utils/JuminNumberUtils.d.ts +6 -0
- package/dist/shared/utils/JuminNumberUtils.js +71 -0
- package/dist/shared/utils/NumberUtils.cjs +80 -0
- package/dist/shared/utils/NumberUtils.d.ts +6 -0
- package/dist/shared/utils/NumberUtils.js +80 -0
- package/dist/shared/utils/ObjectIdUtils.cjs +65 -0
- package/dist/shared/utils/ObjectIdUtils.d.ts +6 -0
- package/dist/shared/utils/ObjectIdUtils.js +65 -0
- package/dist/shared/utils/Point3Utils.cjs +39 -0
- package/dist/shared/utils/Point3Utils.d.ts +8 -0
- package/dist/shared/utils/Point3Utils.js +39 -0
- package/dist/shared/utils/RandomUtils.cjs +103 -0
- package/dist/shared/utils/RandomUtils.d.ts +10 -0
- package/dist/shared/utils/RandomUtils.js +103 -0
- package/dist/shared/utils/Sequencer.cjs +476 -0
- package/dist/shared/utils/Sequencer.d.ts +41 -0
- package/dist/shared/utils/Sequencer.js +467 -0
- package/dist/shared/utils/StringUtils.cjs +71 -0
- package/dist/shared/utils/StringUtils.d.ts +7 -0
- package/dist/shared/utils/StringUtils.js +71 -0
- package/dist/shared/utils/Uint8ArrayUtils.cjs +48 -0
- package/dist/shared/utils/Uint8ArrayUtils.d.ts +6 -0
- package/dist/shared/utils/Uint8ArrayUtils.js +48 -0
- package/dist/shared/utils/UuidUtils.cjs +95 -0
- package/dist/shared/utils/UuidUtils.d.ts +16 -0
- package/dist/shared/utils/UuidUtils.js +75 -0
- package/dist/shared/utils/Validator.cjs +135 -0
- package/dist/shared/utils/Validator.d.ts +50 -0
- package/dist/shared/utils/Validator.js +135 -0
- package/dist/shared/utils/global/atob.cjs +12 -0
- package/dist/shared/utils/global/atob.d.ts +5 -0
- package/dist/shared/utils/global/atob.js +5 -0
- package/dist/shared/utils/global/base64.cjs +42 -0
- package/dist/shared/utils/global/base64.d.ts +4 -0
- package/dist/shared/utils/global/base64.js +40 -0
- package/dist/shared/utils/global/between.cjs +6 -0
- package/dist/shared/utils/global/between.d.ts +3 -0
- package/dist/shared/utils/global/between.js +5 -0
- package/dist/shared/utils/global/btoa.cjs +12 -0
- package/dist/shared/utils/global/btoa.d.ts +5 -0
- package/dist/shared/utils/global/btoa.js +5 -0
- package/dist/shared/utils/global/castArray.cjs +8 -0
- package/dist/shared/utils/global/castArray.d.ts +3 -0
- package/dist/shared/utils/global/castArray.js +7 -0
- package/dist/shared/utils/global/circularDistance.cjs +13 -0
- package/dist/shared/utils/global/circularDistance.d.ts +3 -0
- package/dist/shared/utils/global/circularDistance.js +12 -0
- package/dist/shared/utils/global/fallbackIfMatch.cjs +13 -0
- package/dist/shared/utils/global/fallbackIfMatch.d.ts +3 -0
- package/dist/shared/utils/global/fallbackIfMatch.js +12 -0
- package/dist/shared/utils/global/fallbackIfNull.cjs +7 -0
- package/dist/shared/utils/global/fallbackIfNull.d.ts +3 -0
- package/dist/shared/utils/global/fallbackIfNull.js +6 -0
- package/dist/shared/utils/global/fallbackIfNullish.cjs +9 -0
- package/dist/shared/utils/global/fallbackIfNullish.d.ts +3 -0
- package/dist/shared/utils/global/fallbackIfNullish.js +8 -0
- package/dist/shared/utils/global/fallbackIfUndefined.cjs +7 -0
- package/dist/shared/utils/global/fallbackIfUndefined.d.ts +3 -0
- package/dist/shared/utils/global/fallbackIfUndefined.js +6 -0
- package/dist/shared/utils/global/firstNonNullish.cjs +40 -0
- package/dist/shared/utils/global/firstNonNullish.d.ts +3 -0
- package/dist/shared/utils/global/firstNonNullish.js +39 -0
- package/dist/shared/utils/global/flat.cjs +102 -0
- package/dist/shared/utils/global/flat.d.ts +16 -0
- package/dist/shared/utils/global/flat.js +100 -0
- package/dist/shared/utils/global/index.cjs +136 -0
- package/dist/shared/utils/global/index.d.ts +16 -0
- package/dist/shared/utils/global/index.js +15 -0
- package/dist/shared/utils/global/processFirstNonNullish.cjs +40 -0
- package/dist/shared/utils/global/processFirstNonNullish.d.ts +3 -0
- package/dist/shared/utils/global/processFirstNonNullish.js +38 -0
- package/dist/shared/utils/global/pureEnum.cjs +69 -0
- package/dist/shared/utils/global/pureEnum.d.ts +18 -0
- package/dist/shared/utils/global/pureEnum.js +66 -0
- package/dist/shared/utils/global/sleep.cjs +8 -0
- package/dist/shared/utils/global/sleep.d.ts +3 -0
- package/dist/shared/utils/global/sleep.js +7 -0
- package/dist/shared/utils/index.cjs +190 -0
- package/dist/shared/utils/index.d.ts +44 -0
- package/dist/shared/utils/index.js +21 -0
- package/dist/shared/utils/try-catch/TryCatch.cjs +237 -0
- package/dist/shared/utils/try-catch/TryCatch.d.ts +26 -0
- package/dist/shared/utils/try-catch/TryCatch.js +237 -0
- package/dist/shared/utils/try-catch/index.cjs +10 -0
- package/dist/shared/utils/try-catch/index.d.ts +1 -0
- package/dist/shared/utils/try-catch/index.js +1 -0
- package/package.json +6 -10
- package/dist/index.browser.d.cts +0 -484
- package/dist/index.d.cts +0 -6
- package/dist/index.node.d.cts +0 -168
package/dist/index.node.d.ts
CHANGED
|
@@ -1,168 +1,81 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export { COORDINATE } from './shared/constants/COORDINATE.js';
|
|
2
|
+
export { CRUD } from './shared/constants/CRUD.js';
|
|
3
|
+
export { DATE } from './shared/constants/DATE.js';
|
|
4
|
+
export { DISTANCE } from './shared/constants/DISTANCE.js';
|
|
5
|
+
export { DURATION } from './shared/constants/DURATION.js';
|
|
6
|
+
export { NOT_NULL } from './shared/constants/NOT_NULL.js';
|
|
7
|
+
export { Coordinate, CoordinateM } from './shared/interfaces/Coordinate.js';
|
|
8
|
+
export { Point2 } from './shared/interfaces/Point2.js';
|
|
9
|
+
export { Point3 } from './shared/interfaces/Point3.js';
|
|
10
|
+
export { StorageProvider } from './shared/interfaces/StorageProvider.js';
|
|
11
|
+
export { SessionManager } from './shared/managers/SessionManager.js';
|
|
12
|
+
export { SessionManagerEvent, SessionManagerOptions } from './shared/managers/SessionManager.type.js';
|
|
13
|
+
export { base64Polyfill } from './shared/scripts/base64Polyfill.js';
|
|
14
|
+
export { TimeService } from './shared/services/time/TimeService.js';
|
|
15
|
+
export { TimeServiceClientTimeProvider, TimeServiceEvent, TimeServiceNtpResult, TimeServiceOffset, TimeServiceOptions, TimeServiceServerNtpResult, TimeServiceServerTimeProvider, TimeServiceTimeStamp } from './shared/services/time/TimeService.type.js';
|
|
16
|
+
export { IntRange } from './shared/types/IntRage.js';
|
|
17
|
+
export { PartialExcept } from './shared/types/PartialExcept.js';
|
|
18
|
+
export { atob } from './shared/utils/global/atob.js';
|
|
19
|
+
export { decodeBase64, encodeBase64 } from './shared/utils/global/base64.js';
|
|
20
|
+
export { between } from './shared/utils/global/between.js';
|
|
21
|
+
export { btoa } from './shared/utils/global/btoa.js';
|
|
22
|
+
export { castArray } from './shared/utils/global/castArray.js';
|
|
23
|
+
export { circularDistance } from './shared/utils/global/circularDistance.js';
|
|
24
|
+
export { sleep } from './shared/utils/global/sleep.js';
|
|
25
|
+
export { fallbackIfMatch } from './shared/utils/global/fallbackIfMatch.js';
|
|
26
|
+
export { fallbackIfNull } from './shared/utils/global/fallbackIfNull.js';
|
|
27
|
+
export { fallbackIfNullish } from './shared/utils/global/fallbackIfNullish.js';
|
|
28
|
+
export { fallbackIfUndefined } from './shared/utils/global/fallbackIfUndefined.js';
|
|
29
|
+
export { firstNonNullish } from './shared/utils/global/firstNonNullish.js';
|
|
30
|
+
export { FlattenOptions, UnflattenOptions, flatten, unflatten } from './shared/utils/global/flat.js';
|
|
31
|
+
export { processFirstNonNullish } from './shared/utils/global/processFirstNonNullish.js';
|
|
32
|
+
export { pureEnum, pureEnumKeys, pureEnumValues } from './shared/utils/global/pureEnum.js';
|
|
33
|
+
export { ArrayUtils } from './shared/utils/ArrayUtils.js';
|
|
34
|
+
export { AxiosUtils } from './shared/utils/AxiosUtils.js';
|
|
35
|
+
export { StringUtils } from './shared/utils/StringUtils.js';
|
|
36
|
+
export { Uint8ArrayUtils } from './shared/utils/Uint8ArrayUtils.js';
|
|
37
|
+
export { UuidUtils } from './shared/utils/UuidUtils.js';
|
|
38
|
+
export { parseBoolean } from './shared/utils/BooleanUtils.js';
|
|
39
|
+
export { Calc } from './shared/utils/Calc.js';
|
|
40
|
+
export { CoordinateUtils } from './shared/utils/CoordinateUtils.js';
|
|
41
|
+
export { DateUtils } from './shared/utils/DateUtils.js';
|
|
42
|
+
export { Enum } from './shared/utils/Enum.js';
|
|
43
|
+
export { EnumEntries, EnumEntry } from './shared/utils/Enum.types.js';
|
|
44
|
+
export { I18nUtils } from './shared/utils/I18nUtils.js';
|
|
45
|
+
export { NumberUtils } from './shared/utils/NumberUtils.js';
|
|
46
|
+
export { ObjectIdUtils } from './shared/utils/ObjectIdUtils.js';
|
|
47
|
+
export { Point3Utils } from './shared/utils/Point3Utils.js';
|
|
48
|
+
export { RandomUtils } from './shared/utils/RandomUtils.js';
|
|
49
|
+
export { Validator } from './shared/utils/Validator.js';
|
|
50
|
+
export { JuminNumberUtils } from './shared/utils/JuminNumberUtils.js';
|
|
51
|
+
export { Sequence, Sequencer, SequencerEvent, SequencerOption, SequencerStatus } from './shared/utils/Sequencer.js';
|
|
52
|
+
export { TryCatch } from './shared/utils/try-catch/TryCatch.js';
|
|
53
|
+
export { TransactionManagerLogLevel } from './nodejs/constants/TransactionManagerLogLevel.js';
|
|
54
|
+
export { TransactionManagerTimeoutAction } from './nodejs/constants/TransactionManagerTimeoutAction.js';
|
|
55
|
+
export { Hook } from './nodejs/interfaces/db/sequelize/Hook.js';
|
|
56
|
+
export { HookFn } from './nodejs/interfaces/db/sequelize/HookFn.js';
|
|
57
|
+
export { HookType } from './nodejs/interfaces/db/sequelize/HookType.js';
|
|
58
|
+
export { ReloadOption } from './nodejs/interfaces/db/sequelize/ReloadOption.js';
|
|
59
|
+
export { TransactionOption } from './nodejs/interfaces/db/sequelize/TransactionOption.js';
|
|
60
|
+
export { UpsertOptions } from './nodejs/interfaces/db/sequelize/UpsertOptions.js';
|
|
61
|
+
export { TransactionManager } from './nodejs/managers/TransactionManager.js';
|
|
62
|
+
export { TransactionManagerAddOption, TransactionManagerEventTypes } from './nodejs/managers/TransactionManager.types.js';
|
|
63
|
+
export { RedisClient } from './nodejs/services/redis/RedisClient.js';
|
|
64
|
+
export { RedisPublisher } from './nodejs/services/redis/RedisPublisher.js';
|
|
65
|
+
export { RedisSubscriber } from './nodejs/services/redis/RedisSubscriber.js';
|
|
66
|
+
export { UpsertResult } from './nodejs/types/UpsertResult.js';
|
|
67
|
+
export { MariaDbConnection } from './nodejs/types/mariaDb.js';
|
|
68
|
+
export { SequelizeUtils } from './nodejs/utils/sequelize-utils/SequelizeUtils.js';
|
|
69
|
+
export { ConcreteUuidKeys, ExtractStringKeys, ExtractUuidKeys, Model, NonKnownUuidStringKeys, UuidColumnOptionsBase, UuidColumnOptionsForModel } from './nodejs/utils/sequelize-utils/types.js';
|
|
70
|
+
export { HookUtils } from './nodejs/utils/HookUtils.js';
|
|
9
71
|
import 'axios';
|
|
72
|
+
import 'eventemitter3';
|
|
10
73
|
import 'base-64';
|
|
11
74
|
import 'moment';
|
|
12
75
|
import 'i18next';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
CRITICAL = 5
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare enum TransactionManagerTimeoutAction {
|
|
23
|
-
COMMIT = 1,
|
|
24
|
-
ROLLBACK = 2
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type HookType = keyof SequelizeHooks<Hooks['_model'], Attributes<Hooks>, CreationAttributes<Hooks>>;
|
|
28
|
-
|
|
29
|
-
type HookFn = SequelizeHooks<Hooks['_model'], Attributes<Hooks>, CreationAttributes<Hooks>>[HookType];
|
|
30
|
-
|
|
31
|
-
interface Hook {
|
|
32
|
-
model: ModelCtor;
|
|
33
|
-
hookType: HookType;
|
|
34
|
-
fn: HookFn;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface ReloadOption {
|
|
38
|
-
reload: boolean;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface TransactionOption {
|
|
42
|
-
transaction: Transaction;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface UpsertOptions extends ReloadOption, TransactionOption {
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface TransactionManagerAddOption {
|
|
49
|
-
timeout?: number;
|
|
50
|
-
timeoutAction?: TransactionManagerTimeoutAction;
|
|
51
|
-
}
|
|
52
|
-
type TransactionManagerEventTypes = {
|
|
53
|
-
onUnhandledTransaction: (transaction: Transaction, handled: boolean) => any;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
declare class TransactionManager {
|
|
57
|
-
static DEFAULT_TIMEOUT: number;
|
|
58
|
-
static DEFAULT_ACTION: TransactionManagerTimeoutAction;
|
|
59
|
-
private static instance;
|
|
60
|
-
private logLevel;
|
|
61
|
-
private transactionTimeoutMap;
|
|
62
|
-
private readonly emitter;
|
|
63
|
-
constructor();
|
|
64
|
-
static getInstance(): TransactionManager;
|
|
65
|
-
private getTransactionLogArg;
|
|
66
|
-
setLogLevel(logLevel: TransactionManagerLogLevel): void;
|
|
67
|
-
addListener<T extends EventEmitter.EventNames<TransactionManagerEventTypes>>(event: T, fn: EventEmitter.EventListener<TransactionManagerEventTypes, T>): void;
|
|
68
|
-
removeListener<T extends EventEmitter.EventNames<TransactionManagerEventTypes>>(event: T, fn: EventEmitter.EventListener<TransactionManagerEventTypes, T>): void;
|
|
69
|
-
add(transaction: Transaction, option?: TransactionManagerAddOption): void;
|
|
70
|
-
remove(transaction: Transaction): void;
|
|
71
|
-
flush(action?: TransactionManagerTimeoutAction): Promise<PromiseSettledResult<{
|
|
72
|
-
handled: boolean;
|
|
73
|
-
transaction: Transaction;
|
|
74
|
-
}>[]>;
|
|
75
|
-
private execute;
|
|
76
|
-
private timeout;
|
|
77
|
-
private afterCommit;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
declare class RedisClient {
|
|
81
|
-
private readonly options;
|
|
82
|
-
private status;
|
|
83
|
-
readonly client: ReturnType<typeof createClient>;
|
|
84
|
-
constructor(options?: RedisClient.RedisClientOptions);
|
|
85
|
-
getStatus(): RedisClient.Status;
|
|
86
|
-
start(): Promise<RedisClient.Status>;
|
|
87
|
-
stop(): Promise<RedisClient.Status>;
|
|
88
|
-
private handleOnConnect;
|
|
89
|
-
private handleOnError;
|
|
90
|
-
}
|
|
91
|
-
declare namespace RedisClient {
|
|
92
|
-
enum Status {
|
|
93
|
-
RUNNING = 0,
|
|
94
|
-
STOPPED = 1
|
|
95
|
-
}
|
|
96
|
-
interface RedisClientOptions {
|
|
97
|
-
redisOptions?: redis.RedisClientOptions;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare class RedisPublisher extends RedisClient {
|
|
102
|
-
private logging;
|
|
103
|
-
constructor(options?: RedisClient.RedisClientOptions);
|
|
104
|
-
start(): Promise<RedisClient.Status>;
|
|
105
|
-
stop(): Promise<RedisClient.Status>;
|
|
106
|
-
setLogging(logging: RedisPublisher.LOGGING): void;
|
|
107
|
-
getLogging(): RedisPublisher.LOGGING;
|
|
108
|
-
publish(channel: string, data: string | object): Promise<void>;
|
|
109
|
-
}
|
|
110
|
-
declare namespace RedisPublisher {
|
|
111
|
-
type LOGGING = 'none' | 'length' | 'data';
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare class RedisSubscriber extends RedisClient {
|
|
115
|
-
constructor(options?: RedisClient.RedisClientOptions);
|
|
116
|
-
subscribe<T extends boolean = false>(channels: string | string[], listener: PubSubListener<T>, bufferMode?: T | undefined): Promise<void>;
|
|
117
|
-
unsubscribe<T extends boolean = false>(channels: string | string[], listener?: PubSubListener<T> | undefined, bufferMode?: T | undefined): Promise<void>;
|
|
118
|
-
start(): Promise<RedisClient.Status>;
|
|
119
|
-
stop(): Promise<RedisClient.Status>;
|
|
120
|
-
protected registerListeners(): Promise<void>;
|
|
121
|
-
protected unregisterListeners(): Promise<void>;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
type UpsertResult<M extends Model$1> = [M, boolean];
|
|
125
|
-
|
|
126
|
-
interface MariaDbConnection {
|
|
127
|
-
transactionManager: TransactionManager;
|
|
128
|
-
sequelize: Sequelize;
|
|
129
|
-
transaction: (options?: TransactionOptions, managerOptions?: TransactionManagerAddOption) => Promise<Transaction>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
type Model = Record<string, any> | undefined;
|
|
133
|
-
type ExtractUuidKeys<T extends Model> = {
|
|
134
|
-
[Property in keyof T]: Property extends `${string}Uuid` | 'uuid' ? Property : never;
|
|
135
|
-
}[keyof T];
|
|
136
|
-
type ExtractStringKeys<T extends Model> = {
|
|
137
|
-
[Property in keyof T]: string extends T[Property] ? Property : never;
|
|
138
|
-
}[keyof T];
|
|
139
|
-
type ConcreteUuidKeys<T extends Model> = ExtractUuidKeys<T>;
|
|
140
|
-
type NonKnownUuidStringKeys<T extends Model> = Exclude<ExtractStringKeys<T>, ConcreteUuidKeys<T>> & string;
|
|
141
|
-
interface UuidColumnOptionsBase extends Omit<ModelAttributeColumnOptions, 'type'> {
|
|
142
|
-
columnName: string;
|
|
143
|
-
}
|
|
144
|
-
interface UuidColumnOptionsForModel<T extends Model, AdditionalKeys extends string> extends Omit<ModelAttributeColumnOptions, 'type'> {
|
|
145
|
-
columnName: ConcreteUuidKeys<T> | AdditionalKeys;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
declare class SequelizeUtils {
|
|
149
|
-
static decimal2Number(value: any): number | null | undefined;
|
|
150
|
-
static buildPrimaryUuidColumn: () => Partial<ModelAttributeColumnOptions>;
|
|
151
|
-
static buildUuidColumn<T extends Model, AdditionalKeys extends NonKnownUuidStringKeys<T> = never>(options: UuidColumnOptionsForModel<T, AdditionalKeys>): Partial<ModelAttributeColumnOptions>;
|
|
152
|
-
static buildUuidColumn(options: UuidColumnOptionsBase): Partial<ModelAttributeColumnOptions>;
|
|
153
|
-
static getNullableArrayFilter<T = undefined>(arr: (null | any)[]): WhereOptions<T>;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
declare class HookUtils {
|
|
157
|
-
static getFkChanges<T>(pFkValue: T | null | undefined, cFkValue: T | null | undefined): {
|
|
158
|
-
pFkValue: T | null;
|
|
159
|
-
cFkValue: T | null;
|
|
160
|
-
};
|
|
161
|
-
static makeModelHooks(model: ModelCtor, fns: {
|
|
162
|
-
create: HookFn;
|
|
163
|
-
update: HookFn;
|
|
164
|
-
destroy: HookFn;
|
|
165
|
-
}): Hook[];
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export { type ConcreteUuidKeys, type ExtractStringKeys, type ExtractUuidKeys, type Hook, type HookFn, type HookType, HookUtils, type MariaDbConnection, type Model, type NonKnownUuidStringKeys, RedisClient, RedisPublisher, RedisSubscriber, type ReloadOption, SequelizeUtils, TransactionManager, type TransactionManagerAddOption, type TransactionManagerEventTypes, TransactionManagerLogLevel, TransactionManagerTimeoutAction, type TransactionOption, type UpsertOptions, type UpsertResult, type UuidColumnOptionsBase, type UuidColumnOptionsForModel };
|
|
76
|
+
import 'sequelize-typescript';
|
|
77
|
+
import 'sequelize/types/hooks';
|
|
78
|
+
import 'sequelize/types/model';
|
|
79
|
+
import 'sequelize';
|
|
80
|
+
import 'redis';
|
|
81
|
+
import '@redis/client/dist/lib/client/pub-sub';
|