@squidcloud/local-backend 1.0.49 → 1.0.51

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 (179) hide show
  1. package/dist/common/src/ai-assistant.context.d.ts +13 -13
  2. package/dist/common/src/ai-assistant.context.js +19 -19
  3. package/dist/common/src/ai-assistant.schemas.d.ts +243 -243
  4. package/dist/common/src/ai-assistant.schemas.js +210 -210
  5. package/dist/common/src/ai-assistant.types.d.ts +90 -90
  6. package/dist/common/src/ai-assistant.types.js +11 -11
  7. package/dist/common/src/api-call.context.d.ts +13 -13
  8. package/dist/common/src/api-call.context.js +16 -16
  9. package/dist/common/src/api.types.d.ts +23 -23
  10. package/dist/common/src/api.types.js +2 -2
  11. package/dist/common/src/application.schemas.d.ts +1168 -1168
  12. package/dist/common/src/application.schemas.js +741 -741
  13. package/dist/common/src/application.types.d.ts +228 -228
  14. package/dist/common/src/application.types.js +89 -89
  15. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  16. package/dist/common/src/backend-function.schemas.js +12 -12
  17. package/dist/common/src/backend-function.types.d.ts +6 -6
  18. package/dist/common/src/backend-function.types.js +2 -2
  19. package/dist/common/src/backend-run.types.d.ts +54 -54
  20. package/dist/common/src/backend-run.types.js +96 -73
  21. package/dist/common/src/backend-run.types.js.map +1 -1
  22. package/dist/common/src/bundle-api.types.d.ts +63 -62
  23. package/dist/common/src/bundle-api.types.js +2 -2
  24. package/dist/common/src/bundle-data.types.d.ts +59 -59
  25. package/dist/common/src/bundle-data.types.js +2 -2
  26. package/dist/common/src/communication.types.d.ts +18 -18
  27. package/dist/common/src/communication.types.js +40 -40
  28. package/dist/common/src/context.types.d.ts +24 -24
  29. package/dist/common/src/context.types.js +2 -2
  30. package/dist/common/src/distributed-lock.context.d.ts +5 -5
  31. package/dist/common/src/distributed-lock.context.js +10 -10
  32. package/dist/common/src/document.types.d.ts +32 -32
  33. package/dist/common/src/document.types.js +50 -50
  34. package/dist/common/src/graphql.context.d.ts +14 -14
  35. package/dist/common/src/graphql.context.js +12 -12
  36. package/dist/common/src/graphql.types.d.ts +11 -11
  37. package/dist/common/src/graphql.types.js +34 -34
  38. package/dist/common/src/heartbeat.types.d.ts +4 -4
  39. package/dist/common/src/heartbeat.types.js +16 -16
  40. package/dist/common/src/http-status.enum.d.ts +50 -50
  41. package/dist/common/src/http-status.enum.js +54 -54
  42. package/dist/common/src/index.d.ts +53 -53
  43. package/dist/common/src/index.js +69 -69
  44. package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -30
  45. package/dist/common/src/integrations/ai_assistant.types.js +2 -2
  46. package/dist/common/src/integrations/api.types.d.ts +80 -80
  47. package/dist/common/src/integrations/api.types.js +2 -2
  48. package/dist/common/src/integrations/auth.types.d.ts +39 -39
  49. package/dist/common/src/integrations/auth.types.js +2 -2
  50. package/dist/common/src/integrations/database.types.d.ts +236 -236
  51. package/dist/common/src/integrations/database.types.js +2 -2
  52. package/dist/common/src/integrations/index.d.ts +101 -101
  53. package/dist/common/src/integrations/index.js +105 -105
  54. package/dist/common/src/integrations/observability.types.d.ts +23 -23
  55. package/dist/common/src/integrations/observability.types.js +23 -23
  56. package/dist/common/src/integrations/observability.types.js.map +1 -1
  57. package/dist/common/src/logger.types.d.ts +21 -21
  58. package/dist/common/src/logger.types.js +11 -11
  59. package/dist/common/src/metrics.types.d.ts +73 -73
  60. package/dist/common/src/metrics.types.js +11 -11
  61. package/dist/common/src/mutation.context.d.ts +13 -13
  62. package/dist/common/src/mutation.context.js +26 -26
  63. package/dist/common/src/mutation.schemas.d.ts +5 -5
  64. package/dist/common/src/mutation.schemas.js +114 -114
  65. package/dist/common/src/mutation.types.d.ts +63 -63
  66. package/dist/common/src/mutation.types.js +142 -142
  67. package/dist/common/src/named-query.context.d.ts +4 -4
  68. package/dist/common/src/named-query.context.js +9 -9
  69. package/dist/common/src/named-query.schemas.d.ts +3 -3
  70. package/dist/common/src/named-query.schemas.js +13 -13
  71. package/dist/common/src/named-query.types.d.ts +8 -8
  72. package/dist/common/src/named-query.types.js +2 -2
  73. package/dist/common/src/query/base-query-builder.d.ts +65 -65
  74. package/dist/common/src/query/base-query-builder.js +294 -294
  75. package/dist/common/src/query/index.d.ts +3 -3
  76. package/dist/common/src/query/index.js +19 -19
  77. package/dist/common/src/query/query-context.d.ts +47 -47
  78. package/dist/common/src/query/query-context.js +159 -159
  79. package/dist/common/src/query/serialized-query.types.d.ts +24 -24
  80. package/dist/common/src/query/serialized-query.types.js +2 -2
  81. package/dist/common/src/query.types.d.ts +81 -81
  82. package/dist/common/src/query.types.js +153 -153
  83. package/dist/common/src/regions.d.ts +21 -21
  84. package/dist/common/src/regions.js +46 -46
  85. package/dist/common/src/schema/schema.types.d.ts +30 -30
  86. package/dist/common/src/schema/schema.types.js +172 -172
  87. package/dist/common/src/secret.schemas.d.ts +6 -6
  88. package/dist/common/src/secret.schemas.js +32 -32
  89. package/dist/common/src/secret.types.d.ts +49 -49
  90. package/dist/common/src/secret.types.js +5 -5
  91. package/dist/common/src/security.types.d.ts +3 -3
  92. package/dist/common/src/security.types.js +2 -2
  93. package/dist/common/src/socket.schemas.d.ts +3 -3
  94. package/dist/common/src/socket.schemas.js +58 -58
  95. package/dist/common/src/socket.types.d.ts +108 -108
  96. package/dist/common/src/socket.types.js +2 -2
  97. package/dist/common/src/time-units.d.ts +5 -5
  98. package/dist/common/src/time-units.js +8 -8
  99. package/dist/common/src/trigger.types.d.ts +15 -15
  100. package/dist/common/src/trigger.types.js +2 -2
  101. package/dist/common/src/types.d.ts +21 -21
  102. package/dist/common/src/types.js +2 -2
  103. package/dist/common/src/utils/array.d.ts +8 -8
  104. package/dist/common/src/utils/array.js +51 -51
  105. package/dist/common/src/utils/assert.d.ts +8 -8
  106. package/dist/common/src/utils/assert.js +49 -49
  107. package/dist/common/src/utils/error.d.ts +4 -4
  108. package/dist/common/src/utils/error.js +10 -10
  109. package/dist/common/src/utils/http.d.ts +2 -2
  110. package/dist/common/src/utils/http.js +40 -38
  111. package/dist/common/src/utils/http.js.map +1 -1
  112. package/dist/common/src/utils/id.d.ts +2 -2
  113. package/dist/common/src/utils/id.js +21 -21
  114. package/dist/common/src/utils/lock.manager.d.ts +9 -9
  115. package/dist/common/src/utils/lock.manager.js +39 -39
  116. package/dist/common/src/utils/nullish.d.ts +2 -2
  117. package/dist/common/src/utils/nullish.js +11 -11
  118. package/dist/common/src/utils/object.d.ts +5 -6
  119. package/dist/common/src/utils/object.js +75 -89
  120. package/dist/common/src/utils/object.js.map +1 -1
  121. package/dist/common/src/utils/serialization.d.ts +6 -6
  122. package/dist/common/src/utils/serialization.js +77 -77
  123. package/dist/common/src/utils/transforms.d.ts +18 -18
  124. package/dist/common/src/utils/transforms.js +92 -92
  125. package/dist/common/src/utils/url.d.ts +1 -1
  126. package/dist/common/src/utils/url.js +15 -15
  127. package/dist/common/src/utils/validation.d.ts +17 -17
  128. package/dist/common/src/utils/validation.js +209 -209
  129. package/dist/common/src/utils/validation.js.map +1 -1
  130. package/dist/common/src/webhook-response.d.ts +6 -7
  131. package/dist/common/src/webhook-response.js +2 -7
  132. package/dist/common/src/webhook-response.js.map +1 -1
  133. package/dist/internal-common/src/async-queue.d.ts +4 -4
  134. package/dist/internal-common/src/async-queue.js +17 -17
  135. package/dist/internal-common/src/code-executor.types.d.ts +13 -13
  136. package/dist/internal-common/src/code-executor.types.js +2 -2
  137. package/dist/internal-common/src/environment/environment.types.d.ts +74 -74
  138. package/dist/internal-common/src/environment/environment.types.js +2 -2
  139. package/dist/internal-common/src/environment/index.d.ts +6 -6
  140. package/dist/internal-common/src/environment/index.js +27 -27
  141. package/dist/internal-common/src/environment/local.environment.d.ts +2 -2
  142. package/dist/internal-common/src/environment/local.environment.js +62 -62
  143. package/dist/internal-common/src/filters/custom-exception.filter.d.ts +6 -6
  144. package/dist/internal-common/src/filters/custom-exception.filter.js +44 -44
  145. package/dist/internal-common/src/index.d.ts +14 -14
  146. package/dist/internal-common/src/index.js +32 -32
  147. package/dist/internal-common/src/interceptors/body.interceptor.d.ts +5 -5
  148. package/dist/internal-common/src/interceptors/body.interceptor.js +24 -24
  149. package/dist/internal-common/src/kafka/kafka.manager.d.ts +22 -22
  150. package/dist/internal-common/src/kafka/kafka.manager.js +129 -129
  151. package/dist/internal-common/src/kafka/kafka.types.d.ts +17 -17
  152. package/dist/internal-common/src/kafka/kafka.types.js +2 -2
  153. package/dist/internal-common/src/kafka-observability-publisher.d.ts +11 -11
  154. package/dist/internal-common/src/kafka-observability-publisher.js +20 -20
  155. package/dist/internal-common/src/local-dev.types.d.ts +31 -31
  156. package/dist/internal-common/src/local-dev.types.js +2 -2
  157. package/dist/internal-common/src/observability-publisher.d.ts +9 -9
  158. package/dist/internal-common/src/observability-publisher.js +58 -58
  159. package/dist/internal-common/src/observability.types.d.ts +17 -17
  160. package/dist/internal-common/src/observability.types.js +2 -2
  161. package/dist/internal-common/src/shutdown.manager.d.ts +20 -20
  162. package/dist/internal-common/src/shutdown.manager.js +75 -75
  163. package/dist/internal-common/src/utils.d.ts +5 -5
  164. package/dist/internal-common/src/utils.js +29 -29
  165. package/dist/local-backend/src/index.d.ts +4 -4
  166. package/dist/local-backend/src/index.js +20 -20
  167. package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
  168. package/dist/local-backend/src/local-backend-socket.service.js +107 -108
  169. package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
  170. package/dist/local-backend/src/local-backend.app.d.ts +2 -2
  171. package/dist/local-backend/src/local-backend.app.js +19 -19
  172. package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
  173. package/dist/local-backend/src/local-backend.controller.js +49 -49
  174. package/dist/local-backend/src/local-backend.module.d.ts +8 -8
  175. package/dist/local-backend/src/local-backend.module.js +53 -53
  176. package/dist/local-backend/src/local-backend.service.d.ts +15 -15
  177. package/dist/local-backend/src/local-backend.service.js +165 -165
  178. package/dist/tsconfig.build.tsbuildinfo +1 -1
  179. package/package.json +2 -1
@@ -1,50 +1,50 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateTruthy = exports.notNullish = exports.truthy = exports.assertValidateTruthy = exports.assertNotNullish = exports.assertTruthy = void 0;
4
- const http_status_enum_1 = require("../http-status.enum");
5
- const nullish_1 = require("./nullish");
6
- const validation_1 = require("./validation");
7
- function assertTruthy(value, error) {
8
- if (value) {
9
- return;
10
- }
11
- const messageOrObject = typeof error === 'function' ? error() : error;
12
- if (messageOrObject instanceof Error) {
13
- throw messageOrObject;
14
- }
15
- else {
16
- throw new Error(messageOrObject !== null && messageOrObject !== void 0 ? messageOrObject : 'Assertion error');
17
- }
18
- }
19
- exports.assertTruthy = assertTruthy;
20
- function assertNotNullish(value, error) {
21
- if ((0, nullish_1.isNotNullish)(value))
22
- return;
23
- const messageOrObject = typeof error === 'function' ? error() : error;
24
- if (messageOrObject instanceof Error) {
25
- throw messageOrObject;
26
- }
27
- else {
28
- throw new Error(messageOrObject !== null && messageOrObject !== void 0 ? messageOrObject : 'Assertion error');
29
- }
30
- }
31
- exports.assertNotNullish = assertNotNullish;
32
- function assertValidateTruthy(value, message, statusCode = http_status_enum_1.HttpStatus.BAD_REQUEST, details) {
33
- assertTruthy(value, () => new validation_1.ValidationError(message, statusCode, details));
34
- }
35
- exports.assertValidateTruthy = assertValidateTruthy;
36
- function truthy(value, error) {
37
- assertTruthy(value, error);
38
- return value;
39
- }
40
- exports.truthy = truthy;
41
- function notNullish(value, error) {
42
- assertNotNullish(value, error);
43
- return value;
44
- }
45
- exports.notNullish = notNullish;
46
- function validateTruthy(value, message, statusCode = http_status_enum_1.HttpStatus.BAD_REQUEST, details) {
47
- return truthy(value, () => new validation_1.ValidationError(message, statusCode, details));
48
- }
49
- exports.validateTruthy = validateTruthy;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateTruthy = exports.notNullish = exports.truthy = exports.assertValidateTruthy = exports.assertNotNullish = exports.assertTruthy = void 0;
4
+ const http_status_enum_1 = require("../http-status.enum");
5
+ const nullish_1 = require("./nullish");
6
+ const validation_1 = require("./validation");
7
+ function assertTruthy(value, error) {
8
+ if (value) {
9
+ return;
10
+ }
11
+ const messageOrObject = typeof error === 'function' ? error() : error;
12
+ if (messageOrObject instanceof Error) {
13
+ throw messageOrObject;
14
+ }
15
+ else {
16
+ throw new Error(messageOrObject !== null && messageOrObject !== void 0 ? messageOrObject : 'Assertion error');
17
+ }
18
+ }
19
+ exports.assertTruthy = assertTruthy;
20
+ function assertNotNullish(value, error) {
21
+ if ((0, nullish_1.isNotNullish)(value))
22
+ return;
23
+ const messageOrObject = typeof error === 'function' ? error() : error;
24
+ if (messageOrObject instanceof Error) {
25
+ throw messageOrObject;
26
+ }
27
+ else {
28
+ throw new Error(messageOrObject !== null && messageOrObject !== void 0 ? messageOrObject : 'Assertion error');
29
+ }
30
+ }
31
+ exports.assertNotNullish = assertNotNullish;
32
+ function assertValidateTruthy(value, message, statusCode = http_status_enum_1.HttpStatus.BAD_REQUEST, details) {
33
+ assertTruthy(value, () => new validation_1.ValidationError(message, statusCode, details));
34
+ }
35
+ exports.assertValidateTruthy = assertValidateTruthy;
36
+ function truthy(value, error) {
37
+ assertTruthy(value, error);
38
+ return value;
39
+ }
40
+ exports.truthy = truthy;
41
+ function notNullish(value, error) {
42
+ assertNotNullish(value, error);
43
+ return value;
44
+ }
45
+ exports.notNullish = notNullish;
46
+ function validateTruthy(value, message, statusCode = http_status_enum_1.HttpStatus.BAD_REQUEST, details) {
47
+ return truthy(value, () => new validation_1.ValidationError(message, statusCode, details));
48
+ }
49
+ exports.validateTruthy = validateTruthy;
50
50
  //# sourceMappingURL=assert.js.map
@@ -1,4 +1,4 @@
1
- export declare class CodeExecutionError extends Error {
2
- readonly details?: string | undefined;
3
- constructor(error: string, details?: string | undefined);
4
- }
1
+ export declare class CodeExecutionError extends Error {
2
+ readonly details?: string | undefined;
3
+ constructor(error: string, details?: string | undefined);
4
+ }
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CodeExecutionError = void 0;
4
- class CodeExecutionError extends Error {
5
- constructor(error, details) {
6
- super(error);
7
- this.details = details;
8
- }
9
- }
10
- exports.CodeExecutionError = CodeExecutionError;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeExecutionError = void 0;
4
+ class CodeExecutionError extends Error {
5
+ constructor(error, details) {
6
+ super(error);
7
+ this.details = details;
8
+ }
9
+ }
10
+ exports.CodeExecutionError = CodeExecutionError;
11
11
  //# sourceMappingURL=error.js.map
@@ -1,2 +1,2 @@
1
- export declare function getApplicationUrl(regionPrefix: string, appId: string): string;
2
- export declare function getApplicationHttpHeaders(regionPrefix: string, appId: string): Record<string, string>;
1
+ export declare function getApplicationUrl(regionPrefix: string, appId: string, path: string): string;
2
+ export declare function getApplicationHttpHeaders(regionPrefix: string, appId: string): Record<string, string>;
@@ -1,39 +1,41 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getApplicationHttpHeaders = exports.getApplicationUrl = void 0;
4
- function getApplicationUrl(regionPrefix, appId) {
5
- const baseUrl = 'https://squid.cloud';
6
- const parsedBaseUrl = new URL(baseUrl);
7
- parsedBaseUrl.host = `${appId}.${regionPrefix}.${parsedBaseUrl.host}`;
8
- if (isLocal(regionPrefix)) {
9
- parsedBaseUrl.protocol = 'http';
10
- parsedBaseUrl.port = '8000';
11
- if (isAndroid(regionPrefix)) {
12
- parsedBaseUrl.host = '10.0.2.2';
13
- }
14
- else if (isIOS(regionPrefix)) {
15
- parsedBaseUrl.host = 'localhost';
16
- }
17
- }
18
- const url = parsedBaseUrl.toString();
19
- return url.endsWith('/') ? url : url + '/';
20
- }
21
- exports.getApplicationUrl = getApplicationUrl;
22
- function getApplicationHttpHeaders(regionPrefix, appId) {
23
- const headers = {};
24
- if (isLocal(regionPrefix)) {
25
- headers['x-squid-appid'] = appId;
26
- }
27
- return headers;
28
- }
29
- exports.getApplicationHttpHeaders = getApplicationHttpHeaders;
30
- function isLocal(regionPrefix) {
31
- return /^local/.test(regionPrefix);
32
- }
33
- function isAndroid(regionPrefix) {
34
- return /android$/.test(regionPrefix);
35
- }
36
- function isIOS(regionPrefix) {
37
- return /ios$/.test(regionPrefix);
38
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getApplicationHttpHeaders = exports.getApplicationUrl = void 0;
4
+ const kotlinControllers = ['query', 'aiData', 'api', 'backend-function', 'webhooks'];
5
+ function getApplicationUrl(regionPrefix, appId, path) {
6
+ const baseUrl = 'https://squid.cloud';
7
+ const parsedBaseUrl = new URL(baseUrl);
8
+ parsedBaseUrl.host = `${appId}.${regionPrefix}.${parsedBaseUrl.host}`;
9
+ const controller = path.split('/')[0] || '';
10
+ if (isLocal(regionPrefix)) {
11
+ parsedBaseUrl.protocol = 'http';
12
+ parsedBaseUrl.port = kotlinControllers.includes(controller) ? '8001' : '8000';
13
+ if (isAndroid(regionPrefix)) {
14
+ parsedBaseUrl.host = '10.0.2.2';
15
+ }
16
+ else if (isIOS(regionPrefix)) {
17
+ parsedBaseUrl.host = 'localhost';
18
+ }
19
+ }
20
+ const url = parsedBaseUrl.toString();
21
+ return (url.endsWith('/') ? url : url + '/') + path;
22
+ }
23
+ exports.getApplicationUrl = getApplicationUrl;
24
+ function getApplicationHttpHeaders(regionPrefix, appId) {
25
+ const headers = {};
26
+ if (isLocal(regionPrefix)) {
27
+ headers['x-squid-appid'] = appId;
28
+ }
29
+ return headers;
30
+ }
31
+ exports.getApplicationHttpHeaders = getApplicationHttpHeaders;
32
+ function isLocal(regionPrefix) {
33
+ return /^local/.test(regionPrefix);
34
+ }
35
+ function isAndroid(regionPrefix) {
36
+ return /android$/.test(regionPrefix);
37
+ }
38
+ function isIOS(regionPrefix) {
39
+ return /ios$/.test(regionPrefix);
40
+ }
39
41
  //# sourceMappingURL=http.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","source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ED,SAAgB,yBAAyB,CAAC,YAAoB,EAAE,KAAa;IAC3E,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE;QACzB,OAAO,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;KAClC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAPD,8DAOC;AAED,SAAS,OAAO,CAAC,YAAoB;IACnC,OAAO,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,SAAS,CAAC,YAAoB;IACrC,OAAO,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,KAAK,CAAC,YAAoB;IACjC,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACnC,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare function generateId(): string;
2
- export declare function generateShortId(length?: number): string;
1
+ export declare function generateId(): string;
2
+ export declare function generateShortId(length?: number): string;
@@ -1,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateShortId = exports.generateId = void 0;
4
- function generateId() {
5
- let dt = new Date().getTime();
6
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
7
- const r = (dt + Math.random() * 16) % 16 | 0;
8
- dt = Math.floor(dt / 16);
9
- return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16);
10
- });
11
- }
12
- exports.generateId = generateId;
13
- function generateShortId(length = 18) {
14
- const characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
15
- let id = '';
16
- for (let i = 0; i < length; i++) {
17
- id += characters.charAt(Math.floor(Math.random() * characters.length));
18
- }
19
- return id;
20
- }
21
- exports.generateShortId = generateShortId;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateShortId = exports.generateId = void 0;
4
+ function generateId() {
5
+ let dt = new Date().getTime();
6
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
7
+ const r = (dt + Math.random() * 16) % 16 | 0;
8
+ dt = Math.floor(dt / 16);
9
+ return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16);
10
+ });
11
+ }
12
+ exports.generateId = generateId;
13
+ function generateShortId(length = 18) {
14
+ const characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
15
+ let id = '';
16
+ for (let i = 0; i < length; i++) {
17
+ id += characters.charAt(Math.floor(Math.random() * characters.length));
18
+ }
19
+ return id;
20
+ }
21
+ exports.generateShortId = generateShortId;
22
22
  //# sourceMappingURL=id.js.map
@@ -1,9 +1,9 @@
1
- type LockMutex = string;
2
- export declare class LockManager {
3
- private readonly locks;
4
- lock(...mutexes: LockMutex[]): Promise<void>;
5
- release(...mutexes: LockMutex[]): void;
6
- canGetLock(...mutexes: LockMutex[]): boolean;
7
- lockSync(...mutexes: LockMutex[]): void;
8
- }
9
- export {};
1
+ type LockMutex = string;
2
+ export declare class LockManager {
3
+ private readonly locks;
4
+ lock(...mutexes: LockMutex[]): Promise<void>;
5
+ release(...mutexes: LockMutex[]): void;
6
+ canGetLock(...mutexes: LockMutex[]): boolean;
7
+ lockSync(...mutexes: LockMutex[]): void;
8
+ }
9
+ export {};
@@ -1,40 +1,40 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LockManager = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const assert_1 = require("./assert");
6
- class LockManager {
7
- constructor() {
8
- this.locks = {};
9
- }
10
- async lock(...mutexes) {
11
- if (this.canGetLock(...mutexes)) {
12
- this.lockSync(...mutexes);
13
- return;
14
- }
15
- const relevantLocks = Object.entries(this.locks)
16
- .filter(([mutex]) => mutexes.includes(mutex))
17
- .map(([ignored, isLockedSubject]) => isLockedSubject);
18
- await (0, rxjs_1.lastValueFrom)((0, rxjs_1.combineLatest)(relevantLocks).pipe((0, rxjs_1.filter)((isLockedArray) => !isLockedArray.includes(true)), (0, rxjs_1.take)(1)));
19
- await this.lock(...mutexes);
20
- }
21
- release(...mutexes) {
22
- for (const mutex of mutexes) {
23
- const isLockedSubject = (0, assert_1.truthy)(this.locks[mutex]);
24
- isLockedSubject.next(false);
25
- isLockedSubject.complete();
26
- delete this.locks[mutex];
27
- }
28
- }
29
- canGetLock(...mutexes) {
30
- return !mutexes.some((mutex) => { var _a; return (_a = this.locks[mutex]) === null || _a === void 0 ? void 0 : _a.value; });
31
- }
32
- lockSync(...mutexes) {
33
- (0, assert_1.assertTruthy)(this.canGetLock(...mutexes), 'Cannot acquire lock sync');
34
- for (const mutex of mutexes) {
35
- this.locks[mutex] = new rxjs_1.BehaviorSubject(true);
36
- }
37
- }
38
- }
39
- exports.LockManager = LockManager;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LockManager = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const assert_1 = require("./assert");
6
+ class LockManager {
7
+ constructor() {
8
+ this.locks = {};
9
+ }
10
+ async lock(...mutexes) {
11
+ if (this.canGetLock(...mutexes)) {
12
+ this.lockSync(...mutexes);
13
+ return;
14
+ }
15
+ const relevantLocks = Object.entries(this.locks)
16
+ .filter(([mutex]) => mutexes.includes(mutex))
17
+ .map(([ignored, isLockedSubject]) => isLockedSubject);
18
+ await (0, rxjs_1.lastValueFrom)((0, rxjs_1.combineLatest)(relevantLocks).pipe((0, rxjs_1.filter)((isLockedArray) => !isLockedArray.includes(true)), (0, rxjs_1.take)(1)));
19
+ await this.lock(...mutexes);
20
+ }
21
+ release(...mutexes) {
22
+ for (const mutex of mutexes) {
23
+ const isLockedSubject = (0, assert_1.truthy)(this.locks[mutex]);
24
+ isLockedSubject.next(false);
25
+ isLockedSubject.complete();
26
+ delete this.locks[mutex];
27
+ }
28
+ }
29
+ canGetLock(...mutexes) {
30
+ return !mutexes.some((mutex) => { var _a; return (_a = this.locks[mutex]) === null || _a === void 0 ? void 0 : _a.value; });
31
+ }
32
+ lockSync(...mutexes) {
33
+ (0, assert_1.assertTruthy)(this.canGetLock(...mutexes), 'Cannot acquire lock sync');
34
+ for (const mutex of mutexes) {
35
+ this.locks[mutex] = new rxjs_1.BehaviorSubject(true);
36
+ }
37
+ }
38
+ }
39
+ exports.LockManager = LockManager;
40
40
  //# sourceMappingURL=lock.manager.js.map
@@ -1,2 +1,2 @@
1
- export declare function isNotNullish<T>(t: T | undefined | null): t is T;
2
- export declare function isString(t: unknown): t is string;
1
+ export declare function isNotNullish<T>(t: T | undefined | null): t is T;
2
+ export declare function isString(t: unknown): t is string;
@@ -1,12 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isString = exports.isNotNullish = void 0;
4
- function isNotNullish(t) {
5
- return t !== null && t !== undefined;
6
- }
7
- exports.isNotNullish = isNotNullish;
8
- function isString(t) {
9
- return typeof t === 'string';
10
- }
11
- exports.isString = isString;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isString = exports.isNotNullish = void 0;
4
+ function isNotNullish(t) {
5
+ return t !== null && t !== undefined;
6
+ }
7
+ exports.isNotNullish = isNotNullish;
8
+ function isString(t) {
9
+ return typeof t === 'string';
10
+ }
11
+ exports.isString = isString;
12
12
  //# sourceMappingURL=nullish.js.map
@@ -1,6 +1,5 @@
1
- export declare function getInPath(obj: any, path: string, delimiter?: string): any;
2
- export declare function setInPath(obj: any, path: string, value: any, delimiter?: string): void;
3
- export declare function deleteInPath(obj: any, path: string, delimiter?: string): void;
4
- export declare function deepReplace(obj: any, keyName: string, replacer: (from: any) => any): void;
5
- export declare function replaceKeyInMap<K, T>(map: Map<K, T | undefined>, a: K, b: K): void;
6
- export declare function replaceKeyInRecord<K extends keyof any, T>(record: Record<K, T>, a: K, b: K): void;
1
+ export declare function getInPath(obj: any, path: string, delimiter?: string): any;
2
+ export declare function setInPath(obj: any, path: string, value: any, delimiter?: string): void;
3
+ export declare function deleteInPath(obj: any, path: string, delimiter?: string): void;
4
+ export declare function replaceKeyInMap<K, T>(map: Map<K, T | undefined>, a: K, b: K): void;
5
+ export declare function replaceKeyInRecord<K extends keyof any, T>(record: Record<K, T>, a: K, b: K): void;
@@ -1,90 +1,76 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.replaceKeyInRecord = exports.replaceKeyInMap = exports.deepReplace = exports.deleteInPath = exports.setInPath = exports.getInPath = void 0;
4
- const _ = require("lodash");
5
- const assert_1 = require("./assert");
6
- function getInPath(obj, path, delimiter = '.') {
7
- const splitPath = path.split(delimiter);
8
- let value = undefined;
9
- let currentObj = obj;
10
- while (currentObj && splitPath.length) {
11
- const key = (0, assert_1.truthy)(splitPath.shift());
12
- if (!(currentObj instanceof Object) || !(key in currentObj)) {
13
- return undefined;
14
- }
15
- value = currentObj[key];
16
- currentObj = value;
17
- }
18
- return value;
19
- }
20
- exports.getInPath = getInPath;
21
- function isJsObject(obj) {
22
- if (typeof obj !== 'object')
23
- return false;
24
- return Reflect.getPrototypeOf(obj) === Object.prototype;
25
- }
26
- function setInPath(obj, path, value, delimiter = '.') {
27
- var _a;
28
- const splitPath = path.split(delimiter);
29
- let currentObj = obj;
30
- while (splitPath.length) {
31
- const key = (0, assert_1.truthy)(splitPath.shift());
32
- if (splitPath.length) {
33
- const newCurrentObj = isJsObject(currentObj[key]) ? (_a = _.clone(currentObj[key])) !== null && _a !== void 0 ? _a : {} : {};
34
- currentObj[key] = newCurrentObj;
35
- currentObj = newCurrentObj;
36
- }
37
- else {
38
- currentObj[key] = value;
39
- }
40
- }
41
- }
42
- exports.setInPath = setInPath;
43
- function deleteInPath(obj, path, delimiter = '.') {
44
- var _a;
45
- const splitPath = path.split(delimiter);
46
- let currentObj = obj;
47
- while (splitPath.length) {
48
- const key = (0, assert_1.truthy)(splitPath.shift());
49
- if (splitPath.length) {
50
- const newCurrentObj = isJsObject(currentObj[key]) ? (_a = _.clone(currentObj[key])) !== null && _a !== void 0 ? _a : {} : {};
51
- currentObj[key] = newCurrentObj;
52
- currentObj = newCurrentObj;
53
- }
54
- else {
55
- delete currentObj[key];
56
- }
57
- }
58
- }
59
- exports.deleteInPath = deleteInPath;
60
- function deepReplace(obj, keyName, replacer) {
61
- for (const key in obj) {
62
- if (key === keyName) {
63
- obj[key] = replacer(obj[key]);
64
- }
65
- else if (Array.isArray(obj[key])) {
66
- obj[key].forEach((member) => deepReplace(member, keyName, replacer));
67
- }
68
- else if (typeof obj[key] === 'object') {
69
- deepReplace(obj[key], keyName, replacer);
70
- }
71
- }
72
- }
73
- exports.deepReplace = deepReplace;
74
- function replaceKeyInMap(map, a, b) {
75
- if (map.has(a)) {
76
- const value = map.get(a);
77
- map.delete(a);
78
- map.set(b, value);
79
- }
80
- }
81
- exports.replaceKeyInMap = replaceKeyInMap;
82
- function replaceKeyInRecord(record, a, b) {
83
- const value = record[a];
84
- if (typeof value !== 'undefined') {
85
- record[b] = value;
86
- delete record[a];
87
- }
88
- }
89
- exports.replaceKeyInRecord = replaceKeyInRecord;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceKeyInRecord = exports.replaceKeyInMap = exports.deleteInPath = exports.setInPath = exports.getInPath = void 0;
4
+ const _ = require("lodash");
5
+ const assert_1 = require("./assert");
6
+ function getInPath(obj, path, delimiter = '.') {
7
+ const splitPath = path.split(delimiter);
8
+ let value = undefined;
9
+ let currentObj = obj;
10
+ while (currentObj && splitPath.length) {
11
+ const key = (0, assert_1.truthy)(splitPath.shift());
12
+ if (!(currentObj instanceof Object) || !(key in currentObj)) {
13
+ return undefined;
14
+ }
15
+ value = currentObj[key];
16
+ currentObj = value;
17
+ }
18
+ return value;
19
+ }
20
+ exports.getInPath = getInPath;
21
+ function isJsObject(obj) {
22
+ if (typeof obj !== 'object')
23
+ return false;
24
+ return Reflect.getPrototypeOf(obj) === Object.prototype;
25
+ }
26
+ function setInPath(obj, path, value, delimiter = '.') {
27
+ var _a;
28
+ const splitPath = path.split(delimiter);
29
+ let currentObj = obj;
30
+ while (splitPath.length) {
31
+ const key = (0, assert_1.truthy)(splitPath.shift());
32
+ if (splitPath.length) {
33
+ const newCurrentObj = isJsObject(currentObj[key]) ? (_a = _.clone(currentObj[key])) !== null && _a !== void 0 ? _a : {} : {};
34
+ currentObj[key] = newCurrentObj;
35
+ currentObj = newCurrentObj;
36
+ }
37
+ else {
38
+ currentObj[key] = value;
39
+ }
40
+ }
41
+ }
42
+ exports.setInPath = setInPath;
43
+ function deleteInPath(obj, path, delimiter = '.') {
44
+ var _a;
45
+ const splitPath = path.split(delimiter);
46
+ let currentObj = obj;
47
+ while (splitPath.length) {
48
+ const key = (0, assert_1.truthy)(splitPath.shift());
49
+ if (splitPath.length) {
50
+ const newCurrentObj = isJsObject(currentObj[key]) ? (_a = _.clone(currentObj[key])) !== null && _a !== void 0 ? _a : {} : {};
51
+ currentObj[key] = newCurrentObj;
52
+ currentObj = newCurrentObj;
53
+ }
54
+ else {
55
+ delete currentObj[key];
56
+ }
57
+ }
58
+ }
59
+ exports.deleteInPath = deleteInPath;
60
+ function replaceKeyInMap(map, a, b) {
61
+ if (map.has(a)) {
62
+ const value = map.get(a);
63
+ map.delete(a);
64
+ map.set(b, value);
65
+ }
66
+ }
67
+ exports.replaceKeyInMap = replaceKeyInMap;
68
+ function replaceKeyInRecord(record, a, b) {
69
+ const value = record[a];
70
+ if (typeof value !== 'undefined') {
71
+ record[b] = value;
72
+ delete record[a];
73
+ }
74
+ }
75
+ exports.replaceKeyInRecord = replaceKeyInRecord;
90
76
  //# sourceMappingURL=object.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../common/src/utils/object.ts"],"names":[],"mappings":";;;AAAA,4BAA4B;AAC5B,qCAAkC;AAElC,SAAgB,SAAS,CAAC,GAAQ,EAAE,IAAY,EAAE,SAAS,GAAG,GAAG;IAC/D,MAAM,SAAS,GAAG,IAAI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any): string;
2
- export declare function serializeObj(obj: any): string;
3
- export declare function deserializeObj<T = any>(str: string): T;
4
- export declare function encodeValueForMapping(value: any): string;
5
- export declare function decodeValueForMapping(encodedString: string): any;
6
- export declare function recodeValue(value: any): any;
1
+ export declare function normalizeJsonAsString(json: any): string;
2
+ export declare function serializeObj(obj: any): string;
3
+ export declare function deserializeObj<T = any>(str: string): T;
4
+ export declare function encodeValueForMapping(value: any): string;
5
+ export declare function decodeValueForMapping(encodedString: string): any;
6
+ export declare function recodeValue(value: any): any;