@powfix/core-js 0.23.2 → 0.23.3
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.d.ts +1 -2
- package/dist/index.browser.d.ts +2 -57
- package/dist/index.d.ts +1 -57
- package/dist/index.node.d.ts +2 -81
- package/dist/node/constants/TransactionManagerLogLevel.d.ts +1 -3
- package/dist/node/constants/TransactionManagerTimeoutAction.d.ts +1 -3
- package/dist/node/constants/index.d.ts +2 -2
- package/dist/node/index.d.ts +6 -25
- package/dist/node/interfaces/db/index.d.ts +1 -10
- package/dist/node/interfaces/db/sequelize/Hook.d.ts +4 -9
- package/dist/node/interfaces/db/sequelize/HookFn.d.ts +4 -7
- package/dist/node/interfaces/db/sequelize/HookType.d.ts +3 -6
- package/dist/node/interfaces/db/sequelize/ReloadOption.d.ts +1 -3
- package/dist/node/interfaces/db/sequelize/TransactionOption.d.ts +2 -5
- package/dist/node/interfaces/db/sequelize/UpsertOptions.d.ts +3 -7
- package/dist/node/interfaces/db/sequelize/index.d.ts +6 -10
- package/dist/node/interfaces/index.d.ts +1 -10
- package/dist/node/managers/TransactionManager.d.ts +4 -8
- package/dist/node/managers/TransactionManager.types.d.ts +4 -7
- package/dist/node/managers/index.d.ts +2 -6
- package/dist/node/services/index.d.ts +1 -5
- package/dist/node/services/redis/RedisClient.d.ts +2 -5
- package/dist/node/services/redis/RedisPublisher.d.ts +3 -7
- package/dist/node/services/redis/RedisSubscriber.d.ts +3 -7
- package/dist/node/services/redis/index.d.ts +3 -5
- package/dist/node/types/UpsertResult.d.ts +2 -5
- package/dist/node/types/index.d.ts +2 -9
- package/dist/node/types/mariaDb.d.ts +4 -11
- package/dist/node/utils/HookUtils.d.ts +3 -10
- package/dist/node/utils/index.d.ts +2 -10
- package/dist/node/utils/sequelize-utils/SequelizeUtils.d.ts +3 -6
- package/dist/node/utils/sequelize-utils/index.d.ts +2 -3
- package/dist/node/utils/sequelize-utils/types.d.ts +8 -11
- package/dist/shared/constants/COORDINATE.d.ts +2 -4
- package/dist/shared/constants/CRUD.d.ts +2 -4
- package/dist/shared/constants/DATE.d.ts +2 -4
- package/dist/shared/constants/DISTANCE.d.ts +2 -4
- package/dist/shared/constants/DURATION.d.ts +2 -4
- package/dist/shared/constants/NOT_NULL.d.ts +1 -3
- package/dist/shared/constants/index.d.ts +6 -6
- package/dist/shared/exports/Uint8Array.d.ts +1 -0
- package/dist/shared/exports/atob.d.ts +1 -2
- package/dist/shared/exports/btoa.d.ts +1 -2
- package/dist/shared/index.d.ts +7 -57
- package/dist/shared/interfaces/Coordinate.d.ts +2 -4
- package/dist/shared/interfaces/Point2.d.ts +1 -3
- package/dist/shared/interfaces/Point3.d.ts +2 -5
- package/dist/shared/interfaces/StorageProvider.d.ts +1 -3
- package/dist/shared/interfaces/index.d.ts +4 -4
- package/dist/shared/managers/SessionManager.d.ts +4 -7
- package/dist/shared/managers/SessionManager.type.d.ts +4 -7
- package/dist/shared/managers/index.d.ts +2 -5
- package/dist/shared/scripts/base64Polyfill.d.ts +1 -3
- package/dist/shared/scripts/index.d.ts +1 -1
- package/dist/shared/services/index.d.ts +1 -3
- package/dist/shared/services/time/TimeService.d.ts +2 -5
- package/dist/shared/services/time/TimeService.type.d.ts +8 -10
- package/dist/shared/services/time/index.d.ts +2 -3
- package/dist/shared/types/IntRage.d.ts +2 -3
- package/dist/shared/types/PartialExcept.d.ts +1 -3
- package/dist/shared/types/index.d.ts +2 -2
- package/dist/shared/utils/ArrayUtils.d.ts +1 -3
- package/dist/shared/utils/AxiosUtils.d.ts +2 -5
- package/dist/shared/utils/BooleanUtils.d.ts +1 -3
- package/dist/shared/utils/Calc.d.ts +1 -3
- package/dist/shared/utils/CoordinateUtils.d.ts +2 -5
- package/dist/shared/utils/DateUtils.d.ts +4 -7
- package/dist/shared/utils/Enum.d.ts +2 -5
- package/dist/shared/utils/Enum.types.d.ts +3 -4
- package/dist/shared/utils/I18nUtils.d.ts +2 -5
- package/dist/shared/utils/JuminNumberUtils.d.ts +1 -3
- package/dist/shared/utils/NumberUtils.d.ts +1 -3
- package/dist/shared/utils/ObjectIdUtils.cjs +3 -3
- package/dist/shared/utils/ObjectIdUtils.d.ts +3 -4
- package/dist/shared/utils/ObjectIdUtils.js +3 -3
- package/dist/shared/utils/Point3Utils.d.ts +2 -6
- package/dist/shared/utils/RandomUtils.d.ts +1 -3
- package/dist/shared/utils/Sequencer.d.ts +7 -10
- package/dist/shared/utils/StringUtils.d.ts +1 -3
- package/dist/shared/utils/Uint8ArrayUtils.d.ts +1 -3
- package/dist/shared/utils/UuidUtils.d.ts +1 -3
- package/dist/shared/utils/Validator.d.ts +2 -4
- package/dist/shared/utils/global/atob.d.ts +2 -5
- package/dist/shared/utils/global/base64.d.ts +2 -4
- package/dist/shared/utils/global/between.d.ts +1 -3
- package/dist/shared/utils/global/btoa.d.ts +2 -5
- package/dist/shared/utils/global/castArray.d.ts +1 -3
- package/dist/shared/utils/global/circularDistance.d.ts +1 -3
- package/dist/shared/utils/global/fallbackIfMatch.d.ts +1 -3
- package/dist/shared/utils/global/fallbackIfNull.d.ts +1 -3
- package/dist/shared/utils/global/fallbackIfNullish.d.ts +1 -3
- package/dist/shared/utils/global/fallbackIfUndefined.d.ts +1 -3
- package/dist/shared/utils/global/firstNonNullish.d.ts +1 -3
- package/dist/shared/utils/global/flat.d.ts +4 -6
- package/dist/shared/utils/global/index.d.ts +15 -16
- package/dist/shared/utils/global/processFirstNonNullish.d.ts +1 -3
- package/dist/shared/utils/global/pureEnum.d.ts +4 -5
- package/dist/shared/utils/global/sleep.d.ts +1 -3
- package/dist/shared/utils/index.d.ts +21 -44
- package/dist/shared/utils/try-catch/TryCatch.d.ts +1 -3
- package/dist/shared/utils/try-catch/index.d.ts +1 -1
- package/package.json +5 -4
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { }
|
|
1
|
+
export {};
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,57 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
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
|
-
import 'axios';
|
|
54
|
-
import 'eventemitter3';
|
|
55
|
-
import 'base-64';
|
|
56
|
-
import 'moment';
|
|
57
|
-
import 'i18next';
|
|
1
|
+
export * from './shared';
|
|
2
|
+
export * from './browser';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,57 +1 @@
|
|
|
1
|
-
export
|
|
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
|
-
import 'axios';
|
|
54
|
-
import 'eventemitter3';
|
|
55
|
-
import 'base-64';
|
|
56
|
-
import 'moment';
|
|
57
|
-
import 'i18next';
|
|
1
|
+
export * from './shared';
|
package/dist/index.node.d.ts
CHANGED
|
@@ -1,81 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
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 './node/constants/TransactionManagerLogLevel.js';
|
|
54
|
-
export { TransactionManagerTimeoutAction } from './node/constants/TransactionManagerTimeoutAction.js';
|
|
55
|
-
export { Hook } from './node/interfaces/db/sequelize/Hook.js';
|
|
56
|
-
export { HookFn } from './node/interfaces/db/sequelize/HookFn.js';
|
|
57
|
-
export { HookType } from './node/interfaces/db/sequelize/HookType.js';
|
|
58
|
-
export { ReloadOption } from './node/interfaces/db/sequelize/ReloadOption.js';
|
|
59
|
-
export { TransactionOption } from './node/interfaces/db/sequelize/TransactionOption.js';
|
|
60
|
-
export { UpsertOptions } from './node/interfaces/db/sequelize/UpsertOptions.js';
|
|
61
|
-
export { TransactionManager } from './node/managers/TransactionManager.js';
|
|
62
|
-
export { TransactionManagerAddOption, TransactionManagerEventTypes } from './node/managers/TransactionManager.types.js';
|
|
63
|
-
export { RedisClient } from './node/services/redis/RedisClient.js';
|
|
64
|
-
export { RedisPublisher } from './node/services/redis/RedisPublisher.js';
|
|
65
|
-
export { RedisSubscriber } from './node/services/redis/RedisSubscriber.js';
|
|
66
|
-
export { UpsertResult } from './node/types/UpsertResult.js';
|
|
67
|
-
export { MariaDbConnection } from './node/types/mariaDb.js';
|
|
68
|
-
export { SequelizeUtils } from './node/utils/sequelize-utils/SequelizeUtils.js';
|
|
69
|
-
export { ConcreteUuidKeys, ExtractStringKeys, ExtractUuidKeys, Model, NonKnownUuidStringKeys, UuidColumnOptionsBase, UuidColumnOptionsForModel } from './node/utils/sequelize-utils/types.js';
|
|
70
|
-
export { HookUtils } from './node/utils/HookUtils.js';
|
|
71
|
-
import 'axios';
|
|
72
|
-
import 'eventemitter3';
|
|
73
|
-
import 'base-64';
|
|
74
|
-
import 'moment';
|
|
75
|
-
import 'i18next';
|
|
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';
|
|
1
|
+
export * from './shared';
|
|
2
|
+
export * from './node';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './TransactionManagerLogLevel';
|
|
2
|
+
export * from './TransactionManagerTimeoutAction';
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export { TransactionOption } from './interfaces/db/sequelize/TransactionOption.js';
|
|
8
|
-
export { UpsertOptions } from './interfaces/db/sequelize/UpsertOptions.js';
|
|
9
|
-
export { TransactionManager } from './managers/TransactionManager.js';
|
|
10
|
-
export { TransactionManagerAddOption, TransactionManagerEventTypes } from './managers/TransactionManager.types.js';
|
|
11
|
-
export { RedisClient } from './services/redis/RedisClient.js';
|
|
12
|
-
export { RedisPublisher } from './services/redis/RedisPublisher.js';
|
|
13
|
-
export { RedisSubscriber } from './services/redis/RedisSubscriber.js';
|
|
14
|
-
export { UpsertResult } from './types/UpsertResult.js';
|
|
15
|
-
export { MariaDbConnection } from './types/mariaDb.js';
|
|
16
|
-
export { SequelizeUtils } from './utils/sequelize-utils/SequelizeUtils.js';
|
|
17
|
-
export { ConcreteUuidKeys, ExtractStringKeys, ExtractUuidKeys, Model, NonKnownUuidStringKeys, UuidColumnOptionsBase, UuidColumnOptionsForModel } from './utils/sequelize-utils/types.js';
|
|
18
|
-
export { HookUtils } from './utils/HookUtils.js';
|
|
19
|
-
import 'sequelize-typescript';
|
|
20
|
-
import 'sequelize/types/hooks';
|
|
21
|
-
import 'sequelize/types/model';
|
|
22
|
-
import 'sequelize';
|
|
23
|
-
import 'eventemitter3';
|
|
24
|
-
import 'redis';
|
|
25
|
-
import '@redis/client/dist/lib/client/pub-sub';
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './interfaces';
|
|
3
|
+
export * from './managers';
|
|
4
|
+
export * from './services';
|
|
5
|
+
export * from './types';
|
|
6
|
+
export * from './utils';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { HookFn } from './sequelize/HookFn.js';
|
|
3
|
-
export { HookType } from './sequelize/HookType.js';
|
|
4
|
-
export { ReloadOption } from './sequelize/ReloadOption.js';
|
|
5
|
-
export { TransactionOption } from './sequelize/TransactionOption.js';
|
|
6
|
-
export { UpsertOptions } from './sequelize/UpsertOptions.js';
|
|
7
|
-
import 'sequelize-typescript';
|
|
8
|
-
import 'sequelize/types/hooks';
|
|
9
|
-
import 'sequelize/types/model';
|
|
10
|
-
import 'sequelize';
|
|
1
|
+
export * from './sequelize';
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { ModelCtor } from
|
|
2
|
-
import { HookType } from
|
|
3
|
-
import { HookFn } from
|
|
4
|
-
|
|
5
|
-
import 'sequelize/types/model';
|
|
6
|
-
|
|
7
|
-
interface Hook {
|
|
1
|
+
import { ModelCtor } from "sequelize-typescript";
|
|
2
|
+
import { HookType } from "./HookType";
|
|
3
|
+
import { HookFn } from "./HookFn";
|
|
4
|
+
export interface Hook {
|
|
8
5
|
model: ModelCtor;
|
|
9
6
|
hookType: HookType;
|
|
10
7
|
fn: HookFn;
|
|
11
8
|
}
|
|
12
|
-
|
|
13
|
-
export type { Hook };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Attributes, CreationAttributes } from
|
|
3
|
-
import { HookType } from
|
|
4
|
-
|
|
5
|
-
type HookFn = SequelizeHooks<Hooks['_model'], Attributes<Hooks>, CreationAttributes<Hooks>>[HookType];
|
|
6
|
-
|
|
7
|
-
export type { HookFn };
|
|
1
|
+
import { Hooks, SequelizeHooks } from "sequelize/types/hooks";
|
|
2
|
+
import { Attributes, CreationAttributes } from "sequelize/types/model";
|
|
3
|
+
import { HookType } from "./HookType";
|
|
4
|
+
export type HookFn = SequelizeHooks<Hooks['_model'], Attributes<Hooks>, CreationAttributes<Hooks>>[HookType];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Attributes, CreationAttributes } from
|
|
3
|
-
|
|
4
|
-
type HookType = keyof SequelizeHooks<Hooks['_model'], Attributes<Hooks>, CreationAttributes<Hooks>>;
|
|
5
|
-
|
|
6
|
-
export type { HookType };
|
|
1
|
+
import { Hooks, SequelizeHooks } from "sequelize/types/hooks";
|
|
2
|
+
import { Attributes, CreationAttributes } from "sequelize/types/model";
|
|
3
|
+
export type HookType = keyof SequelizeHooks<Hooks['_model'], Attributes<Hooks>, CreationAttributes<Hooks>>;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { ReloadOption } from
|
|
2
|
-
import { TransactionOption } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
interface UpsertOptions extends ReloadOption, TransactionOption {
|
|
1
|
+
import { ReloadOption } from "./ReloadOption";
|
|
2
|
+
import { TransactionOption } from "./TransactionOption";
|
|
3
|
+
export interface UpsertOptions extends ReloadOption, TransactionOption {
|
|
6
4
|
}
|
|
7
|
-
|
|
8
|
-
export type { UpsertOptions };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
import 'sequelize-typescript';
|
|
8
|
-
import 'sequelize/types/hooks';
|
|
9
|
-
import 'sequelize/types/model';
|
|
10
|
-
import 'sequelize';
|
|
1
|
+
export * from './Hook';
|
|
2
|
+
export * from './HookFn';
|
|
3
|
+
export * from './HookType';
|
|
4
|
+
export * from './ReloadOption';
|
|
5
|
+
export * from './TransactionOption';
|
|
6
|
+
export * from './UpsertOptions';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { HookFn } from './db/sequelize/HookFn.js';
|
|
3
|
-
export { HookType } from './db/sequelize/HookType.js';
|
|
4
|
-
export { ReloadOption } from './db/sequelize/ReloadOption.js';
|
|
5
|
-
export { TransactionOption } from './db/sequelize/TransactionOption.js';
|
|
6
|
-
export { UpsertOptions } from './db/sequelize/UpsertOptions.js';
|
|
7
|
-
import 'sequelize-typescript';
|
|
8
|
-
import 'sequelize/types/hooks';
|
|
9
|
-
import 'sequelize/types/model';
|
|
10
|
-
import 'sequelize';
|
|
1
|
+
export * from './db';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Transaction } from
|
|
1
|
+
import { Transaction } from "sequelize";
|
|
2
2
|
import EventEmitter from 'eventemitter3';
|
|
3
|
-
import { TransactionManagerLogLevel } from
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare class TransactionManager {
|
|
3
|
+
import { TransactionManagerLogLevel, TransactionManagerTimeoutAction } from "../constants";
|
|
4
|
+
import { TransactionManagerAddOption, TransactionManagerEventTypes } from "./TransactionManager.types";
|
|
5
|
+
export declare class TransactionManager {
|
|
8
6
|
static DEFAULT_TIMEOUT: number;
|
|
9
7
|
static DEFAULT_ACTION: TransactionManagerTimeoutAction;
|
|
10
8
|
private static instance;
|
|
@@ -27,5 +25,3 @@ declare class TransactionManager {
|
|
|
27
25
|
private timeout;
|
|
28
26
|
private afterCommit;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
|
-
export { TransactionManager };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { TransactionManagerTimeoutAction } from
|
|
2
|
-
import { Transaction } from
|
|
3
|
-
|
|
4
|
-
interface TransactionManagerAddOption {
|
|
1
|
+
import { TransactionManagerTimeoutAction } from "../constants";
|
|
2
|
+
import { Transaction } from "sequelize";
|
|
3
|
+
export interface TransactionManagerAddOption {
|
|
5
4
|
timeout?: number;
|
|
6
5
|
timeoutAction?: TransactionManagerTimeoutAction;
|
|
7
6
|
}
|
|
8
|
-
type TransactionManagerEventTypes = {
|
|
7
|
+
export type TransactionManagerEventTypes = {
|
|
9
8
|
onUnhandledTransaction: (transaction: Transaction, handled: boolean) => any;
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
export type { TransactionManagerAddOption, TransactionManagerEventTypes };
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
import 'sequelize';
|
|
4
|
-
import 'eventemitter3';
|
|
5
|
-
import '../constants/TransactionManagerLogLevel.js';
|
|
6
|
-
import '../constants/TransactionManagerTimeoutAction.js';
|
|
1
|
+
export * from './TransactionManager';
|
|
2
|
+
export * from './TransactionManager.types';
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { RedisPublisher } from './redis/RedisPublisher.js';
|
|
3
|
-
export { RedisSubscriber } from './redis/RedisSubscriber.js';
|
|
4
|
-
import 'redis';
|
|
5
|
-
import '@redis/client/dist/lib/client/pub-sub';
|
|
1
|
+
export * from './redis';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import redis, { createClient } from 'redis';
|
|
2
|
-
|
|
3
|
-
declare class RedisClient {
|
|
2
|
+
export declare class RedisClient {
|
|
4
3
|
private readonly options;
|
|
5
4
|
private status;
|
|
6
5
|
readonly client: ReturnType<typeof createClient>;
|
|
@@ -11,7 +10,7 @@ declare class RedisClient {
|
|
|
11
10
|
private handleOnConnect;
|
|
12
11
|
private handleOnError;
|
|
13
12
|
}
|
|
14
|
-
declare namespace RedisClient {
|
|
13
|
+
export declare namespace RedisClient {
|
|
15
14
|
enum Status {
|
|
16
15
|
RUNNING = 0,
|
|
17
16
|
STOPPED = 1
|
|
@@ -20,5 +19,3 @@ declare namespace RedisClient {
|
|
|
20
19
|
redisOptions?: redis.RedisClientOptions;
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
export { RedisClient };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { RedisClient } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare class RedisPublisher extends RedisClient {
|
|
1
|
+
import { RedisClient } from "./RedisClient";
|
|
2
|
+
export declare class RedisPublisher extends RedisClient {
|
|
5
3
|
private logging;
|
|
6
4
|
constructor(options?: RedisClient.RedisClientOptions);
|
|
7
5
|
start(): Promise<RedisClient.Status>;
|
|
@@ -10,8 +8,6 @@ declare class RedisPublisher extends RedisClient {
|
|
|
10
8
|
getLogging(): RedisPublisher.LOGGING;
|
|
11
9
|
publish(channel: string, data: string | object): Promise<void>;
|
|
12
10
|
}
|
|
13
|
-
declare namespace RedisPublisher {
|
|
11
|
+
export declare namespace RedisPublisher {
|
|
14
12
|
type LOGGING = 'none' | 'length' | 'data';
|
|
15
13
|
}
|
|
16
|
-
|
|
17
|
-
export { RedisPublisher };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { RedisClient } from
|
|
2
|
-
import { PubSubListener } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare class RedisSubscriber extends RedisClient {
|
|
1
|
+
import { RedisClient } from "./RedisClient";
|
|
2
|
+
import { PubSubListener } from "@redis/client/dist/lib/client/pub-sub";
|
|
3
|
+
export declare class RedisSubscriber extends RedisClient {
|
|
6
4
|
constructor(options?: RedisClient.RedisClientOptions);
|
|
7
5
|
subscribe<T extends boolean = false>(channels: string | string[], listener: PubSubListener<T>, bufferMode?: T | undefined): Promise<void>;
|
|
8
6
|
unsubscribe<T extends boolean = false>(channels: string | string[], listener?: PubSubListener<T> | undefined, bufferMode?: T | undefined): Promise<void>;
|
|
@@ -11,5 +9,3 @@ declare class RedisSubscriber extends RedisClient {
|
|
|
11
9
|
protected registerListeners(): Promise<void>;
|
|
12
10
|
protected unregisterListeners(): Promise<void>;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
export { RedisSubscriber };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
import 'redis';
|
|
5
|
-
import '@redis/client/dist/lib/client/pub-sub';
|
|
1
|
+
export * from './RedisClient';
|
|
2
|
+
export * from './RedisPublisher';
|
|
3
|
+
export * from './RedisSubscriber';
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
import 'sequelize-typescript';
|
|
4
|
-
import '../managers/TransactionManager.js';
|
|
5
|
-
import 'sequelize';
|
|
6
|
-
import 'eventemitter3';
|
|
7
|
-
import '../constants/TransactionManagerLogLevel.js';
|
|
8
|
-
import '../constants/TransactionManagerTimeoutAction.js';
|
|
9
|
-
import '../managers/TransactionManager.types.js';
|
|
1
|
+
export * from './UpsertResult';
|
|
2
|
+
export * from './mariaDb';
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { TransactionManager } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import 'eventemitter3';
|
|
6
|
-
import '../constants/TransactionManagerLogLevel.js';
|
|
7
|
-
import '../constants/TransactionManagerTimeoutAction.js';
|
|
8
|
-
|
|
9
|
-
interface MariaDbConnection {
|
|
1
|
+
import type { TransactionManager, TransactionManagerAddOption } from "../managers";
|
|
2
|
+
import type { Sequelize } from "sequelize-typescript";
|
|
3
|
+
import type { Transaction, TransactionOptions } from "sequelize";
|
|
4
|
+
export interface MariaDbConnection {
|
|
10
5
|
transactionManager: TransactionManager;
|
|
11
6
|
sequelize: Sequelize;
|
|
12
7
|
transaction: (options?: TransactionOptions, managerOptions?: TransactionManagerAddOption) => Promise<Transaction>;
|
|
13
8
|
}
|
|
14
|
-
|
|
15
|
-
export type { MariaDbConnection };
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { Hook } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import '../interfaces/db/sequelize/HookType.js';
|
|
5
|
-
import 'sequelize/types/hooks';
|
|
6
|
-
import 'sequelize/types/model';
|
|
7
|
-
|
|
8
|
-
declare class HookUtils {
|
|
1
|
+
import { Hook, HookFn } from "../interfaces";
|
|
2
|
+
import { ModelCtor } from "sequelize-typescript";
|
|
3
|
+
export declare class HookUtils {
|
|
9
4
|
static getFkChanges<T>(pFkValue: T | null | undefined, cFkValue: T | null | undefined): {
|
|
10
5
|
pFkValue: T | null;
|
|
11
6
|
cFkValue: T | null;
|
|
@@ -16,5 +11,3 @@ declare class HookUtils {
|
|
|
16
11
|
destroy: HookFn;
|
|
17
12
|
}): Hook[];
|
|
18
13
|
}
|
|
19
|
-
|
|
20
|
-
export { HookUtils };
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { HookUtils } from './HookUtils.js';
|
|
4
|
-
import 'sequelize';
|
|
5
|
-
import '../interfaces/db/sequelize/Hook.js';
|
|
6
|
-
import 'sequelize-typescript';
|
|
7
|
-
import '../interfaces/db/sequelize/HookType.js';
|
|
8
|
-
import 'sequelize/types/hooks';
|
|
9
|
-
import 'sequelize/types/model';
|
|
10
|
-
import '../interfaces/db/sequelize/HookFn.js';
|
|
1
|
+
export * from './sequelize-utils';
|
|
2
|
+
export * from './HookUtils';
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { ModelAttributeColumnOptions, WhereOptions } from
|
|
2
|
-
import { Model, NonKnownUuidStringKeys,
|
|
3
|
-
|
|
4
|
-
declare class SequelizeUtils {
|
|
1
|
+
import { ModelAttributeColumnOptions, WhereOptions } from "sequelize";
|
|
2
|
+
import { Model, NonKnownUuidStringKeys, UuidColumnOptionsBase, UuidColumnOptionsForModel } from "./types";
|
|
3
|
+
export declare class SequelizeUtils {
|
|
5
4
|
static decimal2Number(value: any): number | null | undefined;
|
|
6
5
|
static buildPrimaryUuidColumn: () => Partial<ModelAttributeColumnOptions>;
|
|
7
6
|
static buildUuidColumn<T extends Model, AdditionalKeys extends NonKnownUuidStringKeys<T> = never>(options: UuidColumnOptionsForModel<T, AdditionalKeys>): Partial<ModelAttributeColumnOptions>;
|
|
8
7
|
static buildUuidColumn(options: UuidColumnOptionsBase): Partial<ModelAttributeColumnOptions>;
|
|
9
8
|
static getNullableArrayFilter<T = undefined>(arr: (null | any)[]): WhereOptions<T>;
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
export { SequelizeUtils };
|