@powfix/core-js 0.23.2 → 0.23.4

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.
Files changed (104) hide show
  1. package/dist/browser/index.d.ts +1 -2
  2. package/dist/index.browser.d.ts +2 -57
  3. package/dist/index.d.ts +1 -57
  4. package/dist/index.node.d.ts +2 -81
  5. package/dist/node/constants/TransactionManagerLogLevel.d.ts +1 -3
  6. package/dist/node/constants/TransactionManagerTimeoutAction.d.ts +1 -3
  7. package/dist/node/constants/index.d.ts +2 -2
  8. package/dist/node/index.d.ts +6 -25
  9. package/dist/node/interfaces/db/index.d.ts +1 -10
  10. package/dist/node/interfaces/db/sequelize/Hook.d.ts +4 -9
  11. package/dist/node/interfaces/db/sequelize/HookFn.d.ts +4 -7
  12. package/dist/node/interfaces/db/sequelize/HookType.d.ts +3 -6
  13. package/dist/node/interfaces/db/sequelize/ReloadOption.d.ts +1 -3
  14. package/dist/node/interfaces/db/sequelize/TransactionOption.d.ts +2 -5
  15. package/dist/node/interfaces/db/sequelize/UpsertOptions.d.ts +3 -7
  16. package/dist/node/interfaces/db/sequelize/index.d.ts +6 -10
  17. package/dist/node/interfaces/index.d.ts +1 -10
  18. package/dist/node/managers/TransactionManager.d.ts +4 -8
  19. package/dist/node/managers/TransactionManager.types.d.ts +4 -7
  20. package/dist/node/managers/index.d.ts +2 -6
  21. package/dist/node/services/index.d.ts +1 -5
  22. package/dist/node/services/redis/RedisClient.d.ts +2 -5
  23. package/dist/node/services/redis/RedisPublisher.d.ts +3 -7
  24. package/dist/node/services/redis/RedisSubscriber.d.ts +3 -7
  25. package/dist/node/services/redis/index.d.ts +3 -5
  26. package/dist/node/types/UpsertResult.d.ts +2 -5
  27. package/dist/node/types/index.d.ts +2 -9
  28. package/dist/node/types/mariaDb.d.ts +4 -11
  29. package/dist/node/utils/HookUtils.d.ts +3 -10
  30. package/dist/node/utils/index.d.ts +2 -10
  31. package/dist/node/utils/sequelize-utils/SequelizeUtils.cjs +1 -2
  32. package/dist/node/utils/sequelize-utils/SequelizeUtils.d.ts +3 -6
  33. package/dist/node/utils/sequelize-utils/SequelizeUtils.js +1 -2
  34. package/dist/node/utils/sequelize-utils/index.d.ts +2 -3
  35. package/dist/node/utils/sequelize-utils/types.d.ts +8 -11
  36. package/dist/shared/constants/COORDINATE.d.ts +2 -4
  37. package/dist/shared/constants/CRUD.d.ts +2 -4
  38. package/dist/shared/constants/DATE.d.ts +2 -4
  39. package/dist/shared/constants/DISTANCE.d.ts +2 -4
  40. package/dist/shared/constants/DURATION.d.ts +2 -4
  41. package/dist/shared/constants/NOT_NULL.d.ts +1 -3
  42. package/dist/shared/constants/index.d.ts +6 -6
  43. package/dist/shared/exports/Uint8Array.d.ts +1 -0
  44. package/dist/shared/exports/atob.d.ts +1 -2
  45. package/dist/shared/exports/btoa.d.ts +1 -2
  46. package/dist/shared/index.d.ts +7 -57
  47. package/dist/shared/interfaces/Coordinate.d.ts +2 -4
  48. package/dist/shared/interfaces/Point2.d.ts +1 -3
  49. package/dist/shared/interfaces/Point3.d.ts +2 -5
  50. package/dist/shared/interfaces/StorageProvider.d.ts +1 -3
  51. package/dist/shared/interfaces/index.d.ts +4 -4
  52. package/dist/shared/managers/SessionManager.d.ts +4 -7
  53. package/dist/shared/managers/SessionManager.type.d.ts +4 -7
  54. package/dist/shared/managers/index.d.ts +2 -5
  55. package/dist/shared/scripts/base64Polyfill.d.ts +1 -3
  56. package/dist/shared/scripts/index.d.ts +1 -1
  57. package/dist/shared/services/index.d.ts +1 -3
  58. package/dist/shared/services/time/TimeService.d.ts +2 -5
  59. package/dist/shared/services/time/TimeService.type.d.ts +8 -10
  60. package/dist/shared/services/time/index.d.ts +2 -3
  61. package/dist/shared/types/IntRage.d.ts +2 -3
  62. package/dist/shared/types/PartialExcept.d.ts +1 -3
  63. package/dist/shared/types/index.d.ts +2 -2
  64. package/dist/shared/utils/ArrayUtils.d.ts +1 -3
  65. package/dist/shared/utils/AxiosUtils.d.ts +2 -5
  66. package/dist/shared/utils/BooleanUtils.d.ts +1 -3
  67. package/dist/shared/utils/Calc.d.ts +1 -3
  68. package/dist/shared/utils/CoordinateUtils.d.ts +2 -5
  69. package/dist/shared/utils/DateUtils.d.ts +4 -7
  70. package/dist/shared/utils/Enum.d.ts +2 -5
  71. package/dist/shared/utils/Enum.types.d.ts +3 -4
  72. package/dist/shared/utils/I18nUtils.d.ts +2 -5
  73. package/dist/shared/utils/JuminNumberUtils.d.ts +1 -3
  74. package/dist/shared/utils/NumberUtils.d.ts +1 -3
  75. package/dist/shared/utils/ObjectIdUtils.cjs +3 -3
  76. package/dist/shared/utils/ObjectIdUtils.d.ts +3 -4
  77. package/dist/shared/utils/ObjectIdUtils.js +3 -3
  78. package/dist/shared/utils/Point3Utils.d.ts +2 -6
  79. package/dist/shared/utils/RandomUtils.d.ts +1 -3
  80. package/dist/shared/utils/Sequencer.d.ts +7 -10
  81. package/dist/shared/utils/StringUtils.d.ts +1 -3
  82. package/dist/shared/utils/Uint8ArrayUtils.d.ts +1 -3
  83. package/dist/shared/utils/UuidUtils.d.ts +1 -3
  84. package/dist/shared/utils/Validator.d.ts +2 -4
  85. package/dist/shared/utils/global/atob.d.ts +2 -5
  86. package/dist/shared/utils/global/base64.d.ts +2 -4
  87. package/dist/shared/utils/global/between.d.ts +1 -3
  88. package/dist/shared/utils/global/btoa.d.ts +2 -5
  89. package/dist/shared/utils/global/castArray.d.ts +1 -3
  90. package/dist/shared/utils/global/circularDistance.d.ts +1 -3
  91. package/dist/shared/utils/global/fallbackIfMatch.d.ts +1 -3
  92. package/dist/shared/utils/global/fallbackIfNull.d.ts +1 -3
  93. package/dist/shared/utils/global/fallbackIfNullish.d.ts +1 -3
  94. package/dist/shared/utils/global/fallbackIfUndefined.d.ts +1 -3
  95. package/dist/shared/utils/global/firstNonNullish.d.ts +1 -3
  96. package/dist/shared/utils/global/flat.d.ts +4 -6
  97. package/dist/shared/utils/global/index.d.ts +15 -16
  98. package/dist/shared/utils/global/processFirstNonNullish.d.ts +1 -3
  99. package/dist/shared/utils/global/pureEnum.d.ts +4 -5
  100. package/dist/shared/utils/global/sleep.d.ts +1 -3
  101. package/dist/shared/utils/index.d.ts +21 -44
  102. package/dist/shared/utils/try-catch/TryCatch.d.ts +1 -3
  103. package/dist/shared/utils/try-catch/index.d.ts +1 -1
  104. package/package.json +5 -4
@@ -1,2 +1 @@
1
-
2
- export { }
1
+ export {};
@@ -1,57 +1,2 @@
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
- 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 { 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
- import 'axios';
54
- import 'eventemitter3';
55
- import 'base-64';
56
- import 'moment';
57
- import 'i18next';
1
+ export * from './shared';
@@ -1,81 +1,2 @@
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 './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,9 +1,7 @@
1
- declare enum TransactionManagerLogLevel {
1
+ export declare enum TransactionManagerLogLevel {
2
2
  VERBOSE = 1,
3
3
  INFO = 2,
4
4
  WARNING = 3,
5
5
  ERROR = 4,
6
6
  CRITICAL = 5
7
7
  }
8
-
9
- export { TransactionManagerLogLevel };
@@ -1,6 +1,4 @@
1
- declare enum TransactionManagerTimeoutAction {
1
+ export declare enum TransactionManagerTimeoutAction {
2
2
  COMMIT = 1,
3
3
  ROLLBACK = 2
4
4
  }
5
-
6
- export { TransactionManagerTimeoutAction };
@@ -1,2 +1,2 @@
1
- export { TransactionManagerLogLevel } from './TransactionManagerLogLevel.js';
2
- export { TransactionManagerTimeoutAction } from './TransactionManagerTimeoutAction.js';
1
+ export * from './TransactionManagerLogLevel';
2
+ export * from './TransactionManagerTimeoutAction';
@@ -1,25 +1,6 @@
1
- export { TransactionManagerLogLevel } from './constants/TransactionManagerLogLevel.js';
2
- export { TransactionManagerTimeoutAction } from './constants/TransactionManagerTimeoutAction.js';
3
- export { Hook } from './interfaces/db/sequelize/Hook.js';
4
- export { HookFn } from './interfaces/db/sequelize/HookFn.js';
5
- export { HookType } from './interfaces/db/sequelize/HookType.js';
6
- export { ReloadOption } from './interfaces/db/sequelize/ReloadOption.js';
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 { Hook } from './sequelize/Hook.js';
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 'sequelize-typescript';
2
- import { HookType } from './HookType.js';
3
- import { HookFn } from './HookFn.js';
4
- import 'sequelize/types/hooks';
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 { SequelizeHooks, Hooks } from 'sequelize/types/hooks';
2
- import { Attributes, CreationAttributes } from 'sequelize/types/model';
3
- import { HookType } from './HookType.js';
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 { SequelizeHooks, Hooks } from 'sequelize/types/hooks';
2
- import { Attributes, CreationAttributes } from 'sequelize/types/model';
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,5 +1,3 @@
1
- interface ReloadOption {
1
+ export interface ReloadOption {
2
2
  reload: boolean;
3
3
  }
4
-
5
- export type { ReloadOption };
@@ -1,7 +1,4 @@
1
- import { Transaction } from 'sequelize';
2
-
3
- interface TransactionOption {
1
+ import { Transaction } from "sequelize";
2
+ export interface TransactionOption {
4
3
  transaction: Transaction;
5
4
  }
6
-
7
- export type { TransactionOption };
@@ -1,8 +1,4 @@
1
- import { ReloadOption } from './ReloadOption.js';
2
- import { TransactionOption } from './TransactionOption.js';
3
- import 'sequelize';
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 { Hook } from './Hook.js';
2
- export { HookFn } from './HookFn.js';
3
- export { HookType } from './HookType.js';
4
- export { ReloadOption } from './ReloadOption.js';
5
- export { TransactionOption } from './TransactionOption.js';
6
- export { UpsertOptions } from './UpsertOptions.js';
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 { Hook } from './db/sequelize/Hook.js';
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 'sequelize';
1
+ import { Transaction } from "sequelize";
2
2
  import EventEmitter from 'eventemitter3';
3
- import { TransactionManagerLogLevel } from '../constants/TransactionManagerLogLevel.js';
4
- import { TransactionManagerTimeoutAction } from '../constants/TransactionManagerTimeoutAction.js';
5
- import { TransactionManagerEventTypes, TransactionManagerAddOption } from './TransactionManager.types.js';
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 '../constants/TransactionManagerTimeoutAction.js';
2
- import { Transaction } from 'sequelize';
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 { TransactionManager } from './TransactionManager.js';
2
- export { TransactionManagerAddOption, TransactionManagerEventTypes } from './TransactionManager.types.js';
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 { RedisClient } from './redis/RedisClient.js';
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 './RedisClient.js';
2
- import 'redis';
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 './RedisClient.js';
2
- import { PubSubListener } from '@redis/client/dist/lib/client/pub-sub';
3
- import 'redis';
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 { RedisClient } from './RedisClient.js';
2
- export { RedisPublisher } from './RedisPublisher.js';
3
- export { RedisSubscriber } from './RedisSubscriber.js';
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,5 +1,2 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- type UpsertResult<M extends Model> = [M, boolean];
4
-
5
- export type { UpsertResult };
1
+ import { Model } from "sequelize-typescript";
2
+ export type UpsertResult<M extends Model> = [M, boolean];
@@ -1,9 +1,2 @@
1
- export { UpsertResult } from './UpsertResult.js';
2
- export { MariaDbConnection } from './mariaDb.js';
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 '../managers/TransactionManager.js';
2
- import { TransactionManagerAddOption } from '../managers/TransactionManager.types.js';
3
- import { Sequelize } from 'sequelize-typescript';
4
- import { TransactionOptions, Transaction } from 'sequelize';
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 '../interfaces/db/sequelize/Hook.js';
2
- import { HookFn } from '../interfaces/db/sequelize/HookFn.js';
3
- import { ModelCtor } from 'sequelize-typescript';
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 { SequelizeUtils } from './sequelize-utils/SequelizeUtils.js';
2
- export { ConcreteUuidKeys, ExtractStringKeys, ExtractUuidKeys, Model, NonKnownUuidStringKeys, UuidColumnOptionsBase, UuidColumnOptionsForModel } from './sequelize-utils/types.js';
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';
@@ -79,7 +79,6 @@ function _type_of(obj) {
79
79
  }
80
80
  var chunkETV4XYOV_cjs = require('../../../chunk-ETV4XYOV.cjs');
81
81
  var sequelize = require('sequelize');
82
- var UuidUtils = require('../../../shared/utils/UuidUtils');
83
82
  var constants = require('../../../shared/constants');
84
83
  var node = require('@powfix/uuid/node');
85
84
  var _SequelizeUtils = /*#__PURE__*/ function() {
@@ -157,7 +156,7 @@ chunkETV4XYOV_cjs.__publicField(_SequelizeUtils, "buildPrimaryUuidColumn", funct
157
156
  primaryKey: true,
158
157
  unique: true,
159
158
  defaultValue: function() {
160
- return node.UUID.from(UuidUtils.UuidUtils.v4()).toBuffer();
159
+ return node.UUID.v4().toBuffer();
161
160
  }
162
161
  }));
163
162
  });