@powfix/core-js 0.23.9 → 0.24.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.
Files changed (121) hide show
  1. package/dist/chunk-AQ5VUG5P.js +39 -0
  2. package/dist/chunk-JE77HYXB.cjs +43 -0
  3. package/dist/node/constants/TransactionManagerLogLevel.cjs +1 -1
  4. package/dist/node/constants/TransactionManagerLogLevel.js +1 -1
  5. package/dist/node/constants/TransactionManagerTimeoutAction.cjs +1 -1
  6. package/dist/node/constants/TransactionManagerTimeoutAction.js +1 -1
  7. package/dist/node/managers/TransactionManager.cjs +7 -7
  8. package/dist/node/managers/TransactionManager.js +1 -1
  9. package/dist/node/services/redis/RedisClient.cjs +4 -4
  10. package/dist/node/services/redis/RedisClient.js +1 -1
  11. package/dist/node/services/redis/RedisPublisher.cjs +2 -2
  12. package/dist/node/services/redis/RedisPublisher.js +1 -1
  13. package/dist/node/services/redis/RedisSubscriber.cjs +1 -1
  14. package/dist/node/services/redis/RedisSubscriber.js +1 -1
  15. package/dist/node/utils/HookUtils.cjs +1 -1
  16. package/dist/node/utils/HookUtils.js +1 -1
  17. package/dist/node/utils/sequelize-utils/SequelizeUtils.cjs +2 -2
  18. package/dist/node/utils/sequelize-utils/SequelizeUtils.js +1 -1
  19. package/dist/shared/constants/COORDINATE.cjs +5 -5
  20. package/dist/shared/constants/COORDINATE.js +1 -1
  21. package/dist/shared/constants/CRUD.cjs +1 -1
  22. package/dist/shared/constants/CRUD.js +1 -1
  23. package/dist/shared/constants/DATE.cjs +1 -1
  24. package/dist/shared/constants/DATE.js +1 -1
  25. package/dist/shared/constants/DISTANCE.cjs +1 -1
  26. package/dist/shared/constants/DISTANCE.js +1 -1
  27. package/dist/shared/constants/DURATION.cjs +1 -1
  28. package/dist/shared/constants/DURATION.js +1 -1
  29. package/dist/shared/constants/NOT_NULL.cjs +1 -1
  30. package/dist/shared/constants/NOT_NULL.js +1 -1
  31. package/dist/shared/features/WatchablePromise.cjs +203 -0
  32. package/dist/shared/features/WatchablePromise.d.ts +8 -0
  33. package/dist/shared/features/WatchablePromise.js +203 -0
  34. package/dist/shared/features/WatchablePromise.types.cjs +1 -0
  35. package/dist/shared/features/WatchablePromise.types.d.ts +1 -0
  36. package/dist/shared/features/WatchablePromise.types.js +0 -0
  37. package/dist/shared/features/index.cjs +10 -0
  38. package/dist/shared/features/index.d.ts +2 -0
  39. package/dist/shared/features/index.js +1 -0
  40. package/dist/shared/index.cjs +9 -0
  41. package/dist/shared/index.d.ts +1 -0
  42. package/dist/shared/index.js +1 -0
  43. package/dist/shared/managers/SessionManager.cjs +4 -4
  44. package/dist/shared/managers/SessionManager.js +1 -1
  45. package/dist/shared/scripts/base64Polyfill.cjs +1 -1
  46. package/dist/shared/scripts/base64Polyfill.js +1 -1
  47. package/dist/shared/services/time/TimeService.cjs +7 -7
  48. package/dist/shared/services/time/TimeService.js +1 -1
  49. package/dist/shared/utils/ArrayUtils.cjs +1 -1
  50. package/dist/shared/utils/ArrayUtils.js +1 -1
  51. package/dist/shared/utils/AxiosUtils.cjs +1 -1
  52. package/dist/shared/utils/AxiosUtils.js +1 -1
  53. package/dist/shared/utils/BooleanUtils.cjs +1 -1
  54. package/dist/shared/utils/BooleanUtils.js +1 -1
  55. package/dist/shared/utils/Calc.cjs +1 -1
  56. package/dist/shared/utils/Calc.js +1 -1
  57. package/dist/shared/utils/CoordinateUtils.cjs +1 -1
  58. package/dist/shared/utils/CoordinateUtils.js +1 -1
  59. package/dist/shared/utils/DateUtils.cjs +4 -4
  60. package/dist/shared/utils/DateUtils.js +1 -1
  61. package/dist/shared/utils/Enum.cjs +5 -5
  62. package/dist/shared/utils/Enum.js +1 -1
  63. package/dist/shared/utils/I18nUtils.cjs +1 -1
  64. package/dist/shared/utils/I18nUtils.js +1 -1
  65. package/dist/shared/utils/JuminNumberUtils.cjs +1 -1
  66. package/dist/shared/utils/JuminNumberUtils.js +1 -1
  67. package/dist/shared/utils/NumberUtils.cjs +1 -1
  68. package/dist/shared/utils/NumberUtils.js +1 -1
  69. package/dist/shared/utils/ObjectIdUtils.cjs +1 -1
  70. package/dist/shared/utils/ObjectIdUtils.js +1 -1
  71. package/dist/shared/utils/Point3Utils.cjs +1 -1
  72. package/dist/shared/utils/Point3Utils.js +1 -1
  73. package/dist/shared/utils/RandomUtils.cjs +1 -1
  74. package/dist/shared/utils/RandomUtils.js +1 -1
  75. package/dist/shared/utils/Sequencer.cjs +10 -10
  76. package/dist/shared/utils/Sequencer.js +1 -1
  77. package/dist/shared/utils/StringUtils.cjs +2 -2
  78. package/dist/shared/utils/StringUtils.js +1 -1
  79. package/dist/shared/utils/Uint8ArrayUtils.cjs +1 -1
  80. package/dist/shared/utils/Uint8ArrayUtils.js +1 -1
  81. package/dist/shared/utils/UuidUtils.cjs +1 -1
  82. package/dist/shared/utils/UuidUtils.js +1 -1
  83. package/dist/shared/utils/Validator.cjs +1 -1
  84. package/dist/shared/utils/Validator.js +1 -1
  85. package/dist/shared/utils/global/atob.cjs +1 -1
  86. package/dist/shared/utils/global/atob.js +1 -1
  87. package/dist/shared/utils/global/base64.cjs +1 -1
  88. package/dist/shared/utils/global/base64.js +1 -1
  89. package/dist/shared/utils/global/between.cjs +1 -1
  90. package/dist/shared/utils/global/between.js +1 -1
  91. package/dist/shared/utils/global/btoa.cjs +1 -1
  92. package/dist/shared/utils/global/btoa.js +1 -1
  93. package/dist/shared/utils/global/castArray.cjs +1 -1
  94. package/dist/shared/utils/global/castArray.js +1 -1
  95. package/dist/shared/utils/global/circularDistance.cjs +1 -1
  96. package/dist/shared/utils/global/circularDistance.js +1 -1
  97. package/dist/shared/utils/global/fallbackIfMatch.cjs +1 -1
  98. package/dist/shared/utils/global/fallbackIfMatch.js +1 -1
  99. package/dist/shared/utils/global/fallbackIfNull.cjs +1 -1
  100. package/dist/shared/utils/global/fallbackIfNull.js +1 -1
  101. package/dist/shared/utils/global/fallbackIfNullish.cjs +1 -1
  102. package/dist/shared/utils/global/fallbackIfNullish.js +1 -1
  103. package/dist/shared/utils/global/fallbackIfUndefined.cjs +1 -1
  104. package/dist/shared/utils/global/fallbackIfUndefined.js +1 -1
  105. package/dist/shared/utils/global/firstNonNullish.cjs +1 -1
  106. package/dist/shared/utils/global/firstNonNullish.js +1 -1
  107. package/dist/shared/utils/global/flat.cjs +1 -1
  108. package/dist/shared/utils/global/flat.js +1 -1
  109. package/dist/shared/utils/global/mapIfNotNullish.cjs +1 -1
  110. package/dist/shared/utils/global/mapIfNotNullish.js +1 -1
  111. package/dist/shared/utils/global/processFirstNonNullish.cjs +1 -1
  112. package/dist/shared/utils/global/processFirstNonNullish.js +1 -1
  113. package/dist/shared/utils/global/pureEnum.cjs +1 -1
  114. package/dist/shared/utils/global/pureEnum.js +1 -1
  115. package/dist/shared/utils/global/sleep.cjs +1 -1
  116. package/dist/shared/utils/global/sleep.js +1 -1
  117. package/dist/shared/utils/try-catch/TryCatch.cjs +1 -1
  118. package/dist/shared/utils/try-catch/TryCatch.js +1 -1
  119. package/package.json +1 -1
  120. package/dist/chunk-ETV4XYOV.cjs +0 -18
  121. package/dist/chunk-PKBMQBKP.js +0 -17
@@ -0,0 +1,39 @@
1
+ function _instanceof(left, right) {
2
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3
+ return !!right[Symbol.hasInstance](left);
4
+ } else {
5
+ return left instanceof right;
6
+ }
7
+ }
8
+ function _type_of(obj) {
9
+ "@swc/helpers - typeof";
10
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
11
+ }
12
+ var __defProp = Object.defineProperty;
13
+ var __typeError = function(msg) {
14
+ throw TypeError(msg);
15
+ };
16
+ var __defNormalProp = function(obj, key, value) {
17
+ return key in obj ? __defProp(obj, key, {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: value
22
+ }) : obj[key] = value;
23
+ };
24
+ var __publicField = function(obj, key, value) {
25
+ return __defNormalProp(obj, (typeof key === "undefined" ? "undefined" : _type_of(key)) !== "symbol" ? key + "" : key, value);
26
+ };
27
+ var __accessCheck = function(obj, member, msg) {
28
+ return member.has(obj) || __typeError("Cannot " + msg);
29
+ };
30
+ var __privateGet = function(obj, member, getter) {
31
+ return __accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj);
32
+ };
33
+ var __privateAdd = function(obj, member, value) {
34
+ return member.has(obj) ? __typeError("Cannot add the same private member more than once") : _instanceof(member, WeakSet) ? member.add(obj) : member.set(obj, value);
35
+ };
36
+ var __privateSet = function(obj, member, value, setter) {
37
+ return __accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value;
38
+ };
39
+ export { __privateAdd, __privateGet, __privateSet, __publicField };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+ function _instanceof(left, right) {
3
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
4
+ return !!right[Symbol.hasInstance](left);
5
+ } else {
6
+ return left instanceof right;
7
+ }
8
+ }
9
+ function _type_of(obj) {
10
+ "@swc/helpers - typeof";
11
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
12
+ }
13
+ var __defProp = Object.defineProperty;
14
+ var __typeError = function(msg) {
15
+ throw TypeError(msg);
16
+ };
17
+ var __defNormalProp = function(obj, key, value) {
18
+ return key in obj ? __defProp(obj, key, {
19
+ enumerable: true,
20
+ configurable: true,
21
+ writable: true,
22
+ value: value
23
+ }) : obj[key] = value;
24
+ };
25
+ var __publicField = function(obj, key, value) {
26
+ return __defNormalProp(obj, (typeof key === "undefined" ? "undefined" : _type_of(key)) !== "symbol" ? key + "" : key, value);
27
+ };
28
+ var __accessCheck = function(obj, member, msg) {
29
+ return member.has(obj) || __typeError("Cannot " + msg);
30
+ };
31
+ var __privateGet = function(obj, member, getter) {
32
+ return __accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj);
33
+ };
34
+ var __privateAdd = function(obj, member, value) {
35
+ return member.has(obj) ? __typeError("Cannot add the same private member more than once") : _instanceof(member, WeakSet) ? member.add(obj) : member.set(obj, value);
36
+ };
37
+ var __privateSet = function(obj, member, value, setter) {
38
+ return __accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value;
39
+ };
40
+ exports.__privateAdd = __privateAdd;
41
+ exports.__privateGet = __privateGet;
42
+ exports.__privateSet = __privateSet;
43
+ exports.__publicField = __publicField;
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- require('../../chunk-ETV4XYOV.cjs');
2
+ require('../../chunk-JE77HYXB.cjs');
3
3
  var TransactionManagerLogLevel = /* @__PURE__ */ function(TransactionManagerLogLevel2) {
4
4
  TransactionManagerLogLevel2[TransactionManagerLogLevel2["VERBOSE"] = 1] = "VERBOSE";
5
5
  TransactionManagerLogLevel2[TransactionManagerLogLevel2["INFO"] = 2] = "INFO";
@@ -1,4 +1,4 @@
1
- import '../../chunk-PKBMQBKP.js';
1
+ import '../../chunk-AQ5VUG5P.js';
2
2
  var TransactionManagerLogLevel = /* @__PURE__ */ function(TransactionManagerLogLevel2) {
3
3
  TransactionManagerLogLevel2[TransactionManagerLogLevel2["VERBOSE"] = 1] = "VERBOSE";
4
4
  TransactionManagerLogLevel2[TransactionManagerLogLevel2["INFO"] = 2] = "INFO";
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- require('../../chunk-ETV4XYOV.cjs');
2
+ require('../../chunk-JE77HYXB.cjs');
3
3
  var TransactionManagerTimeoutAction = /* @__PURE__ */ function(TransactionManagerTimeoutAction2) {
4
4
  TransactionManagerTimeoutAction2[TransactionManagerTimeoutAction2["COMMIT"] = 1] = "COMMIT";
5
5
  TransactionManagerTimeoutAction2[TransactionManagerTimeoutAction2["ROLLBACK"] = 2] = "ROLLBACK";
@@ -1,4 +1,4 @@
1
- import '../../chunk-PKBMQBKP.js';
1
+ import '../../chunk-AQ5VUG5P.js';
2
2
  var TransactionManagerTimeoutAction = /* @__PURE__ */ function(TransactionManagerTimeoutAction2) {
3
3
  TransactionManagerTimeoutAction2[TransactionManagerTimeoutAction2["COMMIT"] = 1] = "COMMIT";
4
4
  TransactionManagerTimeoutAction2[TransactionManagerTimeoutAction2["ROLLBACK"] = 2] = "ROLLBACK";
@@ -184,7 +184,7 @@ function _ts_generator(thisArg, body) {
184
184
  };
185
185
  }
186
186
  }
187
- var chunkETV4XYOV_cjs = require('../../chunk-ETV4XYOV.cjs');
187
+ var chunkJE77HYXB_cjs = require('../../chunk-JE77HYXB.cjs');
188
188
  var EventEmitter = require('eventemitter3');
189
189
  var constants = require('../constants');
190
190
  function _interopDefault(e) {
@@ -198,10 +198,10 @@ var _TransactionManager = /*#__PURE__*/ function() {
198
198
  function _TransactionManager() {
199
199
  _class_call_check(this, _TransactionManager);
200
200
  // Members
201
- chunkETV4XYOV_cjs.__publicField(this, "logLevel", constants.TransactionManagerLogLevel.VERBOSE);
202
- chunkETV4XYOV_cjs.__publicField(this, "transactionTimeoutMap", /* @__PURE__ */ new Map());
201
+ chunkJE77HYXB_cjs.__publicField(this, "logLevel", constants.TransactionManagerLogLevel.VERBOSE);
202
+ chunkJE77HYXB_cjs.__publicField(this, "transactionTimeoutMap", /* @__PURE__ */ new Map());
203
203
  // Emitter
204
- chunkETV4XYOV_cjs.__publicField(this, "emitter", new EventEmitter__default.default());
204
+ chunkJE77HYXB_cjs.__publicField(this, "emitter", new EventEmitter__default.default());
205
205
  if (this.logLevel <= constants.TransactionManagerLogLevel.VERBOSE) {
206
206
  console.log(LOG_TAG, "TransactionManager instance initialized");
207
207
  }
@@ -455,9 +455,9 @@ var _TransactionManager = /*#__PURE__*/ function() {
455
455
  ]);
456
456
  return _TransactionManager;
457
457
  }();
458
- chunkETV4XYOV_cjs.__publicField(_TransactionManager, "DEFAULT_TIMEOUT", 60 * 1e3);
459
- chunkETV4XYOV_cjs.__publicField(_TransactionManager, "DEFAULT_ACTION", constants.TransactionManagerTimeoutAction.ROLLBACK);
458
+ chunkJE77HYXB_cjs.__publicField(_TransactionManager, "DEFAULT_TIMEOUT", 60 * 1e3);
459
+ chunkJE77HYXB_cjs.__publicField(_TransactionManager, "DEFAULT_ACTION", constants.TransactionManagerTimeoutAction.ROLLBACK);
460
460
  // Static instance
461
- chunkETV4XYOV_cjs.__publicField(_TransactionManager, "instance");
461
+ chunkJE77HYXB_cjs.__publicField(_TransactionManager, "instance");
462
462
  var TransactionManager = _TransactionManager;
463
463
  exports.TransactionManager = TransactionManager;
@@ -183,7 +183,7 @@ function _ts_generator(thisArg, body) {
183
183
  };
184
184
  }
185
185
  }
186
- import { __publicField } from '../../chunk-PKBMQBKP.js';
186
+ import { __publicField } from '../../chunk-AQ5VUG5P.js';
187
187
  import EventEmitter from 'eventemitter3';
188
188
  import { TransactionManagerTimeoutAction, TransactionManagerLogLevel } from '../constants/index.js';
189
189
  var LOG_TAG = "[TransactionManager]";
@@ -138,15 +138,15 @@ function _ts_generator(thisArg, body) {
138
138
  };
139
139
  }
140
140
  }
141
- var chunkETV4XYOV_cjs = require('../../../chunk-ETV4XYOV.cjs');
141
+ var chunkJE77HYXB_cjs = require('../../../chunk-JE77HYXB.cjs');
142
142
  var redis = require('redis');
143
143
  var LOG_PREFIX = "RedisClient";
144
144
  var RedisClient = /*#__PURE__*/ function() {
145
145
  function RedisClient(options) {
146
146
  _class_call_check(this, RedisClient);
147
- chunkETV4XYOV_cjs.__publicField(this, "options", {});
148
- chunkETV4XYOV_cjs.__publicField(this, "status", RedisClient.Status.STOPPED);
149
- chunkETV4XYOV_cjs.__publicField(this, "client");
147
+ chunkJE77HYXB_cjs.__publicField(this, "options", {});
148
+ chunkJE77HYXB_cjs.__publicField(this, "status", RedisClient.Status.STOPPED);
149
+ chunkJE77HYXB_cjs.__publicField(this, "client");
150
150
  console.log(Date.now(), LOG_PREFIX, "initialized");
151
151
  if (options) {
152
152
  this.options = options;
@@ -137,7 +137,7 @@ function _ts_generator(thisArg, body) {
137
137
  };
138
138
  }
139
139
  }
140
- import { __publicField } from '../../../chunk-PKBMQBKP.js';
140
+ import { __publicField } from '../../../chunk-AQ5VUG5P.js';
141
141
  import { createClient } from 'redis';
142
142
  var LOG_PREFIX = "RedisClient";
143
143
  var RedisClient = /*#__PURE__*/ function() {
@@ -215,7 +215,7 @@ function _ts_generator(thisArg, body) {
215
215
  };
216
216
  }
217
217
  }
218
- var chunkETV4XYOV_cjs = require('../../../chunk-ETV4XYOV.cjs');
218
+ var chunkJE77HYXB_cjs = require('../../../chunk-JE77HYXB.cjs');
219
219
  var RedisClient = require('./RedisClient');
220
220
  var LOG_TAG = "[REDIS-PUB]";
221
221
  var RedisPublisher = /*#__PURE__*/ function(_RedisClient_RedisClient) {
@@ -226,7 +226,7 @@ var RedisPublisher = /*#__PURE__*/ function(_RedisClient_RedisClient) {
226
226
  _this = _call_super(this, RedisPublisher, [
227
227
  options
228
228
  ]);
229
- chunkETV4XYOV_cjs.__publicField(_this, "logging", "length");
229
+ chunkJE77HYXB_cjs.__publicField(_this, "logging", "length");
230
230
  console.log(Date.now(), "RedisPublisher", "initialized");
231
231
  return _this;
232
232
  }
@@ -214,7 +214,7 @@ function _ts_generator(thisArg, body) {
214
214
  };
215
215
  }
216
216
  }
217
- import { __publicField } from '../../../chunk-PKBMQBKP.js';
217
+ import { __publicField } from '../../../chunk-AQ5VUG5P.js';
218
218
  import { RedisClient } from './RedisClient.js';
219
219
  var LOG_TAG = "[REDIS-PUB]";
220
220
  var RedisPublisher = /*#__PURE__*/ function(RedisClient) {
@@ -215,7 +215,7 @@ function _ts_generator(thisArg, body) {
215
215
  };
216
216
  }
217
217
  }
218
- require('../../../chunk-ETV4XYOV.cjs');
218
+ require('../../../chunk-JE77HYXB.cjs');
219
219
  var RedisClient = require('./RedisClient');
220
220
  var utils = require('../../../shared/utils');
221
221
  var RedisSubscriber = /*#__PURE__*/ function(_RedisClient_RedisClient) {
@@ -214,7 +214,7 @@ function _ts_generator(thisArg, body) {
214
214
  };
215
215
  }
216
216
  }
217
- import '../../../chunk-PKBMQBKP.js';
217
+ import '../../../chunk-AQ5VUG5P.js';
218
218
  import { RedisClient } from './RedisClient.js';
219
219
  import { castArray } from '../../../shared/utils/index.js';
220
220
  var RedisSubscriber = /*#__PURE__*/ function(RedisClient) {
@@ -18,7 +18,7 @@ function _create_class(Constructor, protoProps, staticProps) {
18
18
  if (staticProps) _defineProperties(Constructor, staticProps);
19
19
  return Constructor;
20
20
  }
21
- require('../../chunk-ETV4XYOV.cjs');
21
+ require('../../chunk-JE77HYXB.cjs');
22
22
  var HookUtils = /*#__PURE__*/ function() {
23
23
  function HookUtils() {
24
24
  _class_call_check(this, HookUtils);
@@ -17,7 +17,7 @@ function _create_class(Constructor, protoProps, staticProps) {
17
17
  if (staticProps) _defineProperties(Constructor, staticProps);
18
18
  return Constructor;
19
19
  }
20
- import '../../chunk-PKBMQBKP.js';
20
+ import '../../chunk-AQ5VUG5P.js';
21
21
  var HookUtils = /*#__PURE__*/ function() {
22
22
  "use strict";
23
23
  function HookUtils() {
@@ -77,7 +77,7 @@ function _type_of(obj) {
77
77
  "@swc/helpers - typeof";
78
78
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
79
79
  }
80
- var chunkETV4XYOV_cjs = require('../../../chunk-ETV4XYOV.cjs');
80
+ var chunkJE77HYXB_cjs = require('../../../chunk-JE77HYXB.cjs');
81
81
  var sequelize = require('sequelize');
82
82
  var constants = require('../../../shared/constants');
83
83
  var node = require('@powfix/uuid/node');
@@ -138,7 +138,7 @@ var _SequelizeUtils = /*#__PURE__*/ function() {
138
138
  ]);
139
139
  return _SequelizeUtils;
140
140
  }();
141
- chunkETV4XYOV_cjs.__publicField(_SequelizeUtils, "buildPrimaryUuidColumn", function() {
141
+ chunkJE77HYXB_cjs.__publicField(_SequelizeUtils, "buildPrimaryUuidColumn", function() {
142
142
  return _object_spread({}, _SequelizeUtils.buildUuidColumn({
143
143
  columnName: "uuid",
144
144
  allowNull: false,
@@ -76,7 +76,7 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- import { __publicField } from '../../../chunk-PKBMQBKP.js';
79
+ import { __publicField } from '../../../chunk-AQ5VUG5P.js';
80
80
  import { Op } from 'sequelize';
81
81
  import { NOT_NULL } from '../../../shared/constants/index.js';
82
82
  import { UUID } from '@powfix/uuid/node';
@@ -4,12 +4,12 @@ function _class_call_check(instance, Constructor) {
4
4
  throw new TypeError("Cannot call a class as a function");
5
5
  }
6
6
  }
7
- var chunkETV4XYOV_cjs = require('../../chunk-ETV4XYOV.cjs');
7
+ var chunkJE77HYXB_cjs = require('../../chunk-JE77HYXB.cjs');
8
8
  var COORDINATE = function COORDINATE() {
9
9
  _class_call_check(this, COORDINATE);
10
10
  };
11
- chunkETV4XYOV_cjs.__publicField(COORDINATE, "LATITUDE_MIN_LENGTH", 1);
12
- chunkETV4XYOV_cjs.__publicField(COORDINATE, "LATITUDE_MAX_LENGTH", 10);
13
- chunkETV4XYOV_cjs.__publicField(COORDINATE, "LONGITUDE_MIN_LENGTH", 1);
14
- chunkETV4XYOV_cjs.__publicField(COORDINATE, "LONGITUDE_MAX_LENGTH", 11);
11
+ chunkJE77HYXB_cjs.__publicField(COORDINATE, "LATITUDE_MIN_LENGTH", 1);
12
+ chunkJE77HYXB_cjs.__publicField(COORDINATE, "LATITUDE_MAX_LENGTH", 10);
13
+ chunkJE77HYXB_cjs.__publicField(COORDINATE, "LONGITUDE_MIN_LENGTH", 1);
14
+ chunkJE77HYXB_cjs.__publicField(COORDINATE, "LONGITUDE_MAX_LENGTH", 11);
15
15
  exports.COORDINATE = COORDINATE;
@@ -3,7 +3,7 @@ function _class_call_check(instance, Constructor) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
5
5
  }
6
- import { __publicField } from '../../chunk-PKBMQBKP.js';
6
+ import { __publicField } from '../../chunk-AQ5VUG5P.js';
7
7
  var COORDINATE = function COORDINATE() {
8
8
  "use strict";
9
9
  _class_call_check(this, COORDINATE);
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- require('../../chunk-ETV4XYOV.cjs');
2
+ require('../../chunk-JE77HYXB.cjs');
3
3
  exports.CRUD = /* @__PURE__ */ function(CRUD2) {
4
4
  CRUD2[CRUD2["CREATE"] = 1] = "CREATE";
5
5
  CRUD2[CRUD2["READ"] = 2] = "READ";
@@ -1,4 +1,4 @@
1
- import '../../chunk-PKBMQBKP.js';
1
+ import '../../chunk-AQ5VUG5P.js';
2
2
  var CRUD = /* @__PURE__ */ function(CRUD2) {
3
3
  CRUD2[CRUD2["CREATE"] = 1] = "CREATE";
4
4
  CRUD2[CRUD2["READ"] = 2] = "READ";
@@ -4,7 +4,7 @@ function _class_call_check(instance, Constructor) {
4
4
  throw new TypeError("Cannot call a class as a function");
5
5
  }
6
6
  }
7
- require('../../chunk-ETV4XYOV.cjs');
7
+ require('../../chunk-JE77HYXB.cjs');
8
8
  var DATE = function DATE() {
9
9
  _class_call_check(this, DATE);
10
10
  };
@@ -3,7 +3,7 @@ function _class_call_check(instance, Constructor) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
5
5
  }
6
- import '../../chunk-PKBMQBKP.js';
6
+ import '../../chunk-AQ5VUG5P.js';
7
7
  var DATE = function DATE() {
8
8
  "use strict";
9
9
  _class_call_check(this, DATE);
@@ -4,7 +4,7 @@ function _class_call_check(instance, Constructor) {
4
4
  throw new TypeError("Cannot call a class as a function");
5
5
  }
6
6
  }
7
- require('../../chunk-ETV4XYOV.cjs');
7
+ require('../../chunk-JE77HYXB.cjs');
8
8
  var DISTANCE = function DISTANCE() {
9
9
  _class_call_check(this, DISTANCE);
10
10
  };
@@ -3,7 +3,7 @@ function _class_call_check(instance, Constructor) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
5
5
  }
6
- import '../../chunk-PKBMQBKP.js';
6
+ import '../../chunk-AQ5VUG5P.js';
7
7
  var DISTANCE = function DISTANCE() {
8
8
  "use strict";
9
9
  _class_call_check(this, DISTANCE);
@@ -4,7 +4,7 @@ function _class_call_check(instance, Constructor) {
4
4
  throw new TypeError("Cannot call a class as a function");
5
5
  }
6
6
  }
7
- require('../../chunk-ETV4XYOV.cjs');
7
+ require('../../chunk-JE77HYXB.cjs');
8
8
  var DURATION = function DURATION() {
9
9
  _class_call_check(this, DURATION);
10
10
  };
@@ -3,7 +3,7 @@ function _class_call_check(instance, Constructor) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
5
5
  }
6
- import '../../chunk-PKBMQBKP.js';
6
+ import '../../chunk-AQ5VUG5P.js';
7
7
  var DURATION = function DURATION() {
8
8
  "use strict";
9
9
  _class_call_check(this, DURATION);
@@ -1,4 +1,4 @@
1
1
  'use strict';
2
- require('../../chunk-ETV4XYOV.cjs');
2
+ require('../../chunk-JE77HYXB.cjs');
3
3
  var NOT_NULL = Symbol("!null");
4
4
  exports.NOT_NULL = NOT_NULL;
@@ -1,3 +1,3 @@
1
- import '../../chunk-PKBMQBKP.js';
1
+ import '../../chunk-AQ5VUG5P.js';
2
2
  var NOT_NULL = Symbol("!null");
3
3
  export { NOT_NULL };
@@ -0,0 +1,203 @@
1
+ 'use strict';
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_without_holes(arr) {
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
9
+ }
10
+ function _assert_this_initialized(self) {
11
+ if (self === void 0) {
12
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13
+ }
14
+ return self;
15
+ }
16
+ function _call_super(_this, derived, args) {
17
+ derived = _get_prototype_of(derived);
18
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
19
+ }
20
+ function _class_call_check(instance, Constructor) {
21
+ if (!(instance instanceof Constructor)) {
22
+ throw new TypeError("Cannot call a class as a function");
23
+ }
24
+ }
25
+ function _construct(Parent, args, Class) {
26
+ if (_is_native_reflect_construct()) {
27
+ _construct = Reflect.construct;
28
+ } else {
29
+ _construct = function construct(Parent, args, Class) {
30
+ var a = [
31
+ null
32
+ ];
33
+ a.push.apply(a, args);
34
+ var Constructor = Function.bind.apply(Parent, a);
35
+ var instance = new Constructor();
36
+ if (Class) _set_prototype_of(instance, Class.prototype);
37
+ return instance;
38
+ };
39
+ }
40
+ return _construct.apply(null, arguments);
41
+ }
42
+ function _defineProperties(target, props) {
43
+ for(var i = 0; i < props.length; i++){
44
+ var descriptor = props[i];
45
+ descriptor.enumerable = descriptor.enumerable || false;
46
+ descriptor.configurable = true;
47
+ if ("value" in descriptor) descriptor.writable = true;
48
+ Object.defineProperty(target, descriptor.key, descriptor);
49
+ }
50
+ }
51
+ function _create_class(Constructor, protoProps, staticProps) {
52
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
53
+ if (staticProps) _defineProperties(Constructor, staticProps);
54
+ return Constructor;
55
+ }
56
+ function _get_prototype_of(o) {
57
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
58
+ return o.__proto__ || Object.getPrototypeOf(o);
59
+ };
60
+ return _get_prototype_of(o);
61
+ }
62
+ function _inherits(subClass, superClass) {
63
+ if (typeof superClass !== "function" && superClass !== null) {
64
+ throw new TypeError("Super expression must either be null or a function");
65
+ }
66
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
67
+ constructor: {
68
+ value: subClass,
69
+ writable: true,
70
+ configurable: true
71
+ }
72
+ });
73
+ if (superClass) _set_prototype_of(subClass, superClass);
74
+ }
75
+ function _is_native_function(fn) {
76
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
77
+ }
78
+ function _iterable_to_array(iter) {
79
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
80
+ }
81
+ function _non_iterable_spread() {
82
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
83
+ }
84
+ function _possible_constructor_return(self, call) {
85
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
86
+ return call;
87
+ }
88
+ return _assert_this_initialized(self);
89
+ }
90
+ function _set_prototype_of(o, p) {
91
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
92
+ o.__proto__ = p;
93
+ return o;
94
+ };
95
+ return _set_prototype_of(o, p);
96
+ }
97
+ function _to_consumable_array(arr) {
98
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
99
+ }
100
+ function _type_of(obj) {
101
+ "@swc/helpers - typeof";
102
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
103
+ }
104
+ function _unsupported_iterable_to_array(o, minLen) {
105
+ if (!o) return;
106
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
107
+ var n = Object.prototype.toString.call(o).slice(8, -1);
108
+ if (n === "Object" && o.constructor) n = o.constructor.name;
109
+ if (n === "Map" || n === "Set") return Array.from(n);
110
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
111
+ }
112
+ function _wrap_native_super(Class) {
113
+ var _cache = typeof Map === "function" ? new Map() : undefined;
114
+ _wrap_native_super = function wrapNativeSuper(Class) {
115
+ if (Class === null || !_is_native_function(Class)) return Class;
116
+ if (typeof Class !== "function") {
117
+ throw new TypeError("Super expression must either be null or a function");
118
+ }
119
+ if (typeof _cache !== "undefined") {
120
+ if (_cache.has(Class)) return _cache.get(Class);
121
+ _cache.set(Class, Wrapper);
122
+ }
123
+ function Wrapper() {
124
+ return _construct(Class, arguments, _get_prototype_of(this).constructor);
125
+ }
126
+ Wrapper.prototype = Object.create(Class.prototype, {
127
+ constructor: {
128
+ value: Wrapper,
129
+ enumerable: false,
130
+ writable: true,
131
+ configurable: true
132
+ }
133
+ });
134
+ return _set_prototype_of(Wrapper, Class);
135
+ };
136
+ return _wrap_native_super(Class);
137
+ }
138
+ function _is_native_reflect_construct() {
139
+ try {
140
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
141
+ } catch (_) {}
142
+ return (_is_native_reflect_construct = function() {
143
+ return !!result;
144
+ })();
145
+ }
146
+ var chunkJE77HYXB_cjs = require('../../chunk-JE77HYXB.cjs');
147
+ var _settled, _status, _result;
148
+ var WatchablePromise = /*#__PURE__*/ function(Promise1) {
149
+ _inherits(WatchablePromise, Promise1);
150
+ function WatchablePromise(executor) {
151
+ var _this = this;
152
+ _class_call_check(this, WatchablePromise);
153
+ var _this1;
154
+ var __super = function() {
155
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
156
+ args[_key] = arguments[_key];
157
+ }
158
+ _this1 = _call_super(_this, WatchablePromise, _to_consumable_array(args));
159
+ chunkJE77HYXB_cjs.__privateAdd(_this1, _settled, false);
160
+ chunkJE77HYXB_cjs.__privateAdd(_this1, _status, "pending");
161
+ chunkJE77HYXB_cjs.__privateAdd(_this1, _result);
162
+ return _this1;
163
+ };
164
+ __super(executor);
165
+ __super(function(resolve, reject) {
166
+ executor(function(value) {
167
+ resolve(value);
168
+ chunkJE77HYXB_cjs.__privateSet(_assert_this_initialized(_this1), _status, "fulfilled");
169
+ chunkJE77HYXB_cjs.__privateSet(_assert_this_initialized(_this1), _result, value);
170
+ }, function(reason) {
171
+ reject(reason);
172
+ chunkJE77HYXB_cjs.__privateSet(_assert_this_initialized(_this1), _status, "rejected");
173
+ chunkJE77HYXB_cjs.__privateSet(_assert_this_initialized(_this1), _result, reason);
174
+ });
175
+ });
176
+ return _assert_this_initialized(_this1);
177
+ }
178
+ _create_class(WatchablePromise, [
179
+ {
180
+ key: "settled",
181
+ get: function get() {
182
+ return chunkJE77HYXB_cjs.__privateGet(this, _settled);
183
+ }
184
+ },
185
+ {
186
+ key: "status",
187
+ get: function get() {
188
+ return chunkJE77HYXB_cjs.__privateGet(this, _status);
189
+ }
190
+ },
191
+ {
192
+ key: "result",
193
+ get: function get() {
194
+ return chunkJE77HYXB_cjs.__privateGet(this, _result);
195
+ }
196
+ }
197
+ ]);
198
+ return WatchablePromise;
199
+ }(_wrap_native_super(Promise));
200
+ _settled = new WeakMap();
201
+ _status = new WeakMap();
202
+ _result = new WeakMap();
203
+ exports.WatchablePromise = WatchablePromise;
@@ -0,0 +1,8 @@
1
+ import type { WatchablePromiseStatus } from "./WatchablePromise.types.js";
2
+ export declare class WatchablePromise<T, E = Error> extends Promise<T> {
3
+ #private;
4
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
5
+ get settled(): boolean;
6
+ get status(): WatchablePromiseStatus;
7
+ get result(): T | PromiseLike<T> | E | undefined;
8
+ }