@open-norantec/utilities 1.0.0-alpha.2 → 1.0.0-alpha.21

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.
@@ -1,5 +1,5 @@
1
1
  export declare class ArrayUtil {
2
- static checkUnique<T>(data: Array<T>, validator: (item: T) => Array<string | number | boolean | null | undefined>): boolean;
2
+ static checkUnique<T>(data: Array<T>, validator: (item: T) => Array<string | number | boolean | null | undefined>): boolean | undefined;
3
3
  static getPositiveIndexValue(length: number, index: number): number;
4
4
  static traverse<R, T>(array: Array<T | Array<T>>, transformer?: (item: T) => R): Array<R | Array<R>>;
5
5
  }
@@ -0,0 +1,4 @@
1
+ export declare class AttemptUtil {
2
+ static exec<T>(callbackFn: () => T): T | Error;
3
+ static execPromise<T>(promise: Promise<T>): Promise<T | Error>;
4
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttemptUtil = void 0;
4
+ class AttemptUtil {
5
+ static exec(callbackFn) {
6
+ try {
7
+ return callbackFn === null || callbackFn === void 0 ? void 0 : callbackFn();
8
+ }
9
+ catch (error) {
10
+ return error;
11
+ }
12
+ }
13
+ static async execPromise(promise) {
14
+ var _a;
15
+ try {
16
+ return (_a = promise === null || promise === void 0 ? void 0 : promise.catch) === null || _a === void 0 ? void 0 : _a.call(promise, (error) => Promise.resolve(error));
17
+ }
18
+ catch (error) {
19
+ return error;
20
+ }
21
+ }
22
+ }
23
+ exports.AttemptUtil = AttemptUtil;
@@ -0,0 +1,8 @@
1
+ export interface Enum {
2
+ [x: string]: any;
3
+ }
4
+ export declare class EnumUtil {
5
+ static getEntries(inputEnum: Enum): Array<[string, any]>;
6
+ static isValidValue(inputEnum: Enum, inputValue: any): boolean;
7
+ static isEqual(enum1: Enum, enum2: Enum): boolean;
8
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnumUtil = void 0;
4
+ class EnumUtil {
5
+ static getEntries(inputEnum) {
6
+ try {
7
+ return Object.entries(inputEnum).filter(([key]) => {
8
+ return (key.length > 1 && key.startsWith('0')) || Number.isNaN(Number(key));
9
+ });
10
+ }
11
+ catch (e) {
12
+ return [];
13
+ }
14
+ }
15
+ static isValidValue(inputEnum, inputValue) {
16
+ const entries = EnumUtil.getEntries(inputEnum);
17
+ if (entries.length === 0)
18
+ return false;
19
+ return entries.some(([, value]) => value === inputValue);
20
+ }
21
+ static isEqual(enum1, enum2) {
22
+ const entries1 = this.getEntries(enum1);
23
+ const entries2 = this.getEntries(enum2);
24
+ if (entries1.length !== entries2.length) {
25
+ return false;
26
+ }
27
+ if (entries1.length === 0) {
28
+ return true;
29
+ }
30
+ for (const [key, value] of entries1) {
31
+ if (entries2[key] !== value) {
32
+ return false;
33
+ }
34
+ }
35
+ return true;
36
+ }
37
+ }
38
+ exports.EnumUtil = EnumUtil;
@@ -9,12 +9,17 @@ class HeaderUtil {
9
9
  if (!headers || string_util_class_1.StringUtil.isFalsyString(name)) {
10
10
  return null;
11
11
  }
12
- return (_a = Object.entries(headers).find(([key]) => {
13
- if (string_util_class_1.StringUtil.isFalsyString(key) || key.toUpperCase() !== name.toUpperCase()) {
14
- return false;
15
- }
16
- return true;
17
- })) === null || _a === void 0 ? void 0 : _a[1];
12
+ try {
13
+ return (_a = Object.entries(headers).find(([key]) => {
14
+ if (string_util_class_1.StringUtil.isFalsyString(key) || key.toUpperCase() !== name.toUpperCase()) {
15
+ return false;
16
+ }
17
+ return true;
18
+ })) === null || _a === void 0 ? void 0 : _a[1];
19
+ }
20
+ catch (_b) {
21
+ return null;
22
+ }
18
23
  };
19
24
  return {
20
25
  getValue,
package/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  export * from './array-util.class';
2
+ export * from './attempt-util.class';
2
3
  export * from './header-util.class';
3
4
  export * from './json-util.class';
4
5
  export * from './string-util.class';
5
6
  export * from './user-agent-util.class';
6
- export * from './vm-util.class';
7
+ export * from './enum-util.class';
8
+ export * from './schema-util.class';
9
+ export * from './log-util.class';
package/dist/index.js CHANGED
@@ -15,8 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./array-util.class"), exports);
18
+ __exportStar(require("./attempt-util.class"), exports);
18
19
  __exportStar(require("./header-util.class"), exports);
19
20
  __exportStar(require("./json-util.class"), exports);
20
21
  __exportStar(require("./string-util.class"), exports);
21
22
  __exportStar(require("./user-agent-util.class"), exports);
22
- __exportStar(require("./vm-util.class"), exports);
23
+ __exportStar(require("./enum-util.class"), exports);
24
+ __exportStar(require("./schema-util.class"), exports);
25
+ __exportStar(require("./log-util.class"), exports);
@@ -0,0 +1,4 @@
1
+ import { Schema } from './schema-util.class';
2
+ export declare class LogUtil {
3
+ match(bottomLogLevel: Schema.LogLevel | false, logLevel: Schema.LogLevel): boolean;
4
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogUtil = void 0;
4
+ const LOG_LEVELS = ['debug', 'verbose', 'info', 'warn', 'error'];
5
+ class LogUtil {
6
+ match(bottomLogLevel, logLevel) {
7
+ if (bottomLogLevel === false)
8
+ return false;
9
+ return LOG_LEVELS.slice(0, LOG_LEVELS.findIndex((level) => level === bottomLogLevel) + 1).includes(logLevel);
10
+ }
11
+ }
12
+ exports.LogUtil = LogUtil;
@@ -0,0 +1,224 @@
1
+ import { z } from 'zod';
2
+ export declare class SchemaUtil {
3
+ static readonly ID: z.ZodString;
4
+ static readonly ID_OBJECT: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ }, {
9
+ id: string;
10
+ }>;
11
+ static readonly JSON_STRING: z.ZodEffects<z.ZodString, string, string>;
12
+ static readonly TIME_RECORD: z.ZodObject<{
13
+ createdAt: z.ZodOptional<z.ZodDate>;
14
+ updatedAt: z.ZodOptional<z.ZodDate>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ createdAt?: Date | undefined;
17
+ updatedAt?: Date | undefined;
18
+ }, {
19
+ createdAt?: Date | undefined;
20
+ updatedAt?: Date | undefined;
21
+ }>;
22
+ static readonly ORDER_ORIENTATION: z.ZodEnum<["ASC", "DESC"]>;
23
+ static readonly WHERE_CLAUSE_OP: z.ZodEnum<["adjacent", "any", "between", "col", "contained", "contains", "endsWith", "eq", "gt", "gte", "iLike", "in", "iRegexp", "is", "like", "lt", "lte", "match", "ne", "noExtendLeft", "noExtendRight", "not", "notBetween", "notILike", "notIn", "notIRegexp", "notLike", "notRegexp", "overlap", "placeholder", "regexp", "startsWith", "strictLeft", "strictRight", "substring", "values"]>;
24
+ static readonly LOG_LEVEL: z.ZodEnum<["error", "warn", "info", "debug", "verbose"]>;
25
+ static readonly COMMON_RESULT: z.ZodObject<{
26
+ succeeded: z.ZodBoolean;
27
+ content: z.ZodOptional<z.ZodString>;
28
+ } & {
29
+ id: z.ZodOptional<z.ZodString>;
30
+ } & {
31
+ createdAt: z.ZodOptional<z.ZodDate>;
32
+ updatedAt: z.ZodOptional<z.ZodDate>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ succeeded: boolean;
35
+ id?: string | undefined;
36
+ createdAt?: Date | undefined;
37
+ updatedAt?: Date | undefined;
38
+ content?: string | undefined;
39
+ }, {
40
+ succeeded: boolean;
41
+ id?: string | undefined;
42
+ createdAt?: Date | undefined;
43
+ updatedAt?: Date | undefined;
44
+ content?: string | undefined;
45
+ }>;
46
+ static readonly WHERE_CLAUSE: z.ZodObject<{
47
+ field: z.ZodString;
48
+ op: z.ZodEnum<["adjacent", "any", "between", "col", "contained", "contains", "endsWith", "eq", "gt", "gte", "iLike", "in", "iRegexp", "is", "like", "lt", "lte", "match", "ne", "noExtendLeft", "noExtendRight", "not", "notBetween", "notILike", "notIn", "notIRegexp", "notLike", "notRegexp", "overlap", "placeholder", "regexp", "startsWith", "strictLeft", "strictRight", "substring", "values"]>;
49
+ value: z.ZodEffects<z.ZodString, string, string>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ value: string;
52
+ field: string;
53
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
54
+ }, {
55
+ value: string;
56
+ field: string;
57
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
58
+ }>;
59
+ static readonly ORDER_ITEM: z.ZodObject<{
60
+ field: z.ZodString;
61
+ orientation: z.ZodEnum<["ASC", "DESC"]>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ field: string;
64
+ orientation: "ASC" | "DESC";
65
+ }, {
66
+ field: string;
67
+ orientation: "ASC" | "DESC";
68
+ }>;
69
+ static readonly PAGINATION_OPTIONS: z.ZodObject<{
70
+ createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
71
+ cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
72
+ lastCursor: z.ZodOptional<z.ZodString>;
73
+ limit: z.ZodOptional<z.ZodNumber>;
74
+ order: z.ZodOptional<z.ZodArray<z.ZodObject<{
75
+ field: z.ZodString;
76
+ orientation: z.ZodEnum<["ASC", "DESC"]>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ field: string;
79
+ orientation: "ASC" | "DESC";
80
+ }, {
81
+ field: string;
82
+ orientation: "ASC" | "DESC";
83
+ }>, "many">>;
84
+ where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
85
+ field: z.ZodString;
86
+ op: z.ZodEnum<["adjacent", "any", "between", "col", "contained", "contains", "endsWith", "eq", "gt", "gte", "iLike", "in", "iRegexp", "is", "like", "lt", "lte", "match", "ne", "noExtendLeft", "noExtendRight", "not", "notBetween", "notILike", "notIn", "notIRegexp", "notLike", "notRegexp", "overlap", "placeholder", "regexp", "startsWith", "strictLeft", "strictRight", "substring", "values"]>;
87
+ value: z.ZodEffects<z.ZodString, string, string>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ value: string;
90
+ field: string;
91
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
92
+ }, {
93
+ value: string;
94
+ field: string;
95
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
96
+ }>, "many">, "many">>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ createdAtField?: string | undefined;
99
+ cursorField?: string | undefined;
100
+ lastCursor?: string | undefined;
101
+ limit?: number | undefined;
102
+ order?: {
103
+ field: string;
104
+ orientation: "ASC" | "DESC";
105
+ }[] | undefined;
106
+ where?: {
107
+ value: string;
108
+ field: string;
109
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
110
+ }[][] | undefined;
111
+ }, {
112
+ createdAtField?: string | undefined;
113
+ cursorField?: string | undefined;
114
+ lastCursor?: string | undefined;
115
+ limit?: number | undefined;
116
+ order?: {
117
+ field: string;
118
+ orientation: "ASC" | "DESC";
119
+ }[] | undefined;
120
+ where?: {
121
+ value: string;
122
+ field: string;
123
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
124
+ }[][] | undefined;
125
+ }>;
126
+ static readonly FIND_ONE_OPTIONS: z.ZodObject<Omit<{
127
+ createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
128
+ cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
129
+ lastCursor: z.ZodOptional<z.ZodString>;
130
+ limit: z.ZodOptional<z.ZodNumber>;
131
+ order: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
+ field: z.ZodString;
133
+ orientation: z.ZodEnum<["ASC", "DESC"]>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ field: string;
136
+ orientation: "ASC" | "DESC";
137
+ }, {
138
+ field: string;
139
+ orientation: "ASC" | "DESC";
140
+ }>, "many">>;
141
+ where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
142
+ field: z.ZodString;
143
+ op: z.ZodEnum<["adjacent", "any", "between", "col", "contained", "contains", "endsWith", "eq", "gt", "gte", "iLike", "in", "iRegexp", "is", "like", "lt", "lte", "match", "ne", "noExtendLeft", "noExtendRight", "not", "notBetween", "notILike", "notIn", "notIRegexp", "notLike", "notRegexp", "overlap", "placeholder", "regexp", "startsWith", "strictLeft", "strictRight", "substring", "values"]>;
144
+ value: z.ZodEffects<z.ZodString, string, string>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ value: string;
147
+ field: string;
148
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
149
+ }, {
150
+ value: string;
151
+ field: string;
152
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
153
+ }>, "many">, "many">>;
154
+ }, "lastCursor" | "limit" | "order">, "strip", z.ZodTypeAny, {
155
+ createdAtField?: string | undefined;
156
+ cursorField?: string | undefined;
157
+ where?: {
158
+ value: string;
159
+ field: string;
160
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
161
+ }[][] | undefined;
162
+ }, {
163
+ createdAtField?: string | undefined;
164
+ cursorField?: string | undefined;
165
+ where?: {
166
+ value: string;
167
+ field: string;
168
+ op: "values" | "adjacent" | "any" | "between" | "col" | "contained" | "contains" | "endsWith" | "eq" | "gt" | "gte" | "iLike" | "in" | "iRegexp" | "is" | "like" | "lt" | "lte" | "match" | "ne" | "noExtendLeft" | "noExtendRight" | "not" | "notBetween" | "notILike" | "notIn" | "notIRegexp" | "notLike" | "notRegexp" | "overlap" | "placeholder" | "regexp" | "startsWith" | "strictLeft" | "strictRight" | "substring";
169
+ }[][] | undefined;
170
+ }>;
171
+ static readonly PAGINATION_RESULT: z.ZodObject<{
172
+ hasNext: z.ZodBoolean;
173
+ nextCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
174
+ previousCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ hasNext: boolean;
177
+ nextCursor: string | null;
178
+ previousCursor: string | null;
179
+ }, {
180
+ hasNext: boolean;
181
+ nextCursor: string | null;
182
+ previousCursor: string | null;
183
+ }>;
184
+ static readonly FILE: z.ZodObject<{
185
+ mimeType: z.ZodString;
186
+ name: z.ZodString;
187
+ progres: z.ZodNumber;
188
+ size: z.ZodNumber;
189
+ url: z.ZodString;
190
+ } & {
191
+ createdAt: z.ZodOptional<z.ZodDate>;
192
+ updatedAt: z.ZodOptional<z.ZodDate>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ mimeType: string;
195
+ name: string;
196
+ progres: number;
197
+ size: number;
198
+ url: string;
199
+ createdAt?: Date | undefined;
200
+ updatedAt?: Date | undefined;
201
+ }, {
202
+ mimeType: string;
203
+ name: string;
204
+ progres: number;
205
+ size: number;
206
+ url: string;
207
+ createdAt?: Date | undefined;
208
+ updatedAt?: Date | undefined;
209
+ }>;
210
+ }
211
+ export declare namespace Schema {
212
+ type CommonResult = z.infer<typeof SchemaUtil.COMMON_RESULT>;
213
+ type File = z.infer<typeof SchemaUtil.FILE>;
214
+ type FindOneOptions = z.infer<typeof SchemaUtil.FIND_ONE_OPTIONS>;
215
+ type IDObject = z.infer<typeof SchemaUtil.ID_OBJECT>;
216
+ type LogLevel = z.infer<typeof SchemaUtil.LOG_LEVEL>;
217
+ type OrderItem = z.infer<typeof SchemaUtil.ORDER_ITEM>;
218
+ type OrderOrientation = z.infer<typeof SchemaUtil.ORDER_ORIENTATION>;
219
+ type PaginationOptions = z.infer<typeof SchemaUtil.PAGINATION_OPTIONS>;
220
+ type PaginationResult = z.infer<typeof SchemaUtil.PAGINATION_RESULT>;
221
+ type TimeRecord = z.infer<typeof SchemaUtil.TIME_RECORD>;
222
+ type WhereClause = z.infer<typeof SchemaUtil.WHERE_CLAUSE>;
223
+ type WhereClauseOp = z.infer<typeof SchemaUtil.WHERE_CLAUSE_OP>;
224
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaUtil = void 0;
4
+ const zod_1 = require("zod");
5
+ class SchemaUtil {
6
+ }
7
+ exports.SchemaUtil = SchemaUtil;
8
+ SchemaUtil.ID = zod_1.z.string().uuid();
9
+ SchemaUtil.ID_OBJECT = zod_1.z.object({
10
+ id: SchemaUtil.ID,
11
+ });
12
+ SchemaUtil.JSON_STRING = zod_1.z.string().refine((value) => {
13
+ try {
14
+ JSON.parse(value);
15
+ return true;
16
+ }
17
+ catch (_a) {
18
+ return false;
19
+ }
20
+ });
21
+ SchemaUtil.TIME_RECORD = zod_1.z.object({
22
+ createdAt: zod_1.z.date().optional(),
23
+ updatedAt: zod_1.z.date().optional(),
24
+ });
25
+ SchemaUtil.ORDER_ORIENTATION = zod_1.z.enum(['ASC', 'DESC']);
26
+ SchemaUtil.WHERE_CLAUSE_OP = zod_1.z.enum([
27
+ 'adjacent',
28
+ 'any',
29
+ 'between',
30
+ 'col',
31
+ 'contained',
32
+ 'contains',
33
+ 'endsWith',
34
+ 'eq',
35
+ 'gt',
36
+ 'gte',
37
+ 'iLike',
38
+ 'in',
39
+ 'iRegexp',
40
+ 'is',
41
+ 'like',
42
+ 'lt',
43
+ 'lte',
44
+ 'match',
45
+ 'ne',
46
+ 'noExtendLeft',
47
+ 'noExtendRight',
48
+ 'not',
49
+ 'notBetween',
50
+ 'notILike',
51
+ 'notIn',
52
+ 'notIRegexp',
53
+ 'notLike',
54
+ 'notRegexp',
55
+ 'overlap',
56
+ 'placeholder',
57
+ 'regexp',
58
+ 'startsWith',
59
+ 'strictLeft',
60
+ 'strictRight',
61
+ 'substring',
62
+ 'values',
63
+ ]);
64
+ SchemaUtil.LOG_LEVEL = zod_1.z.enum(['error', 'warn', 'info', 'debug', 'verbose']);
65
+ SchemaUtil.COMMON_RESULT = zod_1.z
66
+ .object({
67
+ succeeded: zod_1.z.boolean(),
68
+ content: zod_1.z.string().optional(),
69
+ })
70
+ .merge(SchemaUtil.ID_OBJECT.partial())
71
+ .merge(SchemaUtil.TIME_RECORD);
72
+ SchemaUtil.WHERE_CLAUSE = zod_1.z.object({
73
+ field: zod_1.z.string(),
74
+ op: SchemaUtil.WHERE_CLAUSE_OP,
75
+ value: SchemaUtil.JSON_STRING,
76
+ });
77
+ SchemaUtil.ORDER_ITEM = zod_1.z.object({
78
+ field: zod_1.z.string(),
79
+ orientation: SchemaUtil.ORDER_ORIENTATION,
80
+ });
81
+ SchemaUtil.PAGINATION_OPTIONS = zod_1.z.object({
82
+ createdAtField: zod_1.z.union([zod_1.z.string().optional().default('createdAt'), zod_1.z.undefined()]),
83
+ cursorField: zod_1.z.union([zod_1.z.string().optional().default('id'), zod_1.z.undefined()]),
84
+ lastCursor: zod_1.z.string().optional(),
85
+ limit: zod_1.z.number().positive().optional(),
86
+ order: zod_1.z.array(SchemaUtil.ORDER_ITEM).optional(),
87
+ where: zod_1.z.array(zod_1.z.array(SchemaUtil.WHERE_CLAUSE).min(1)).optional(),
88
+ });
89
+ SchemaUtil.FIND_ONE_OPTIONS = SchemaUtil.PAGINATION_OPTIONS.omit({
90
+ limit: true,
91
+ lastCursor: true,
92
+ order: true,
93
+ });
94
+ SchemaUtil.PAGINATION_RESULT = zod_1.z.object({
95
+ hasNext: zod_1.z.boolean(),
96
+ nextCursor: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
97
+ previousCursor: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
98
+ });
99
+ SchemaUtil.FILE = zod_1.z
100
+ .object({
101
+ mimeType: zod_1.z.string(),
102
+ name: zod_1.z.string(),
103
+ progres: zod_1.z.number().min(0).max(1),
104
+ size: zod_1.z.number().positive(),
105
+ url: zod_1.z.string(),
106
+ })
107
+ .merge(SchemaUtil.TIME_RECORD);
@@ -2,5 +2,5 @@ export declare class StringUtil {
2
2
  static isFalsyString(value: any, connector?: 'AND' | 'OR'): boolean;
3
3
  static generateRandomText(length?: number, extraCharacters?: string): string;
4
4
  static generateTempId(): string;
5
- static extractTempId(idOrTempId: string): string;
5
+ static extractTempId(idOrTempId: string): string | null | undefined;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StringUtil = void 0;
4
- const uuid_1 = require("uuid");
4
+ const uuid_util_class_1 = require("./uuid-util.class");
5
5
  class StringUtil {
6
6
  static isFalsyString(value, connector = 'AND') {
7
7
  const stringList = Array.isArray(value) ? value : [value];
@@ -25,7 +25,7 @@ class StringUtil {
25
25
  static generateTempId() {
26
26
  const tempIds = [];
27
27
  while (true) {
28
- const currentTempId = (0, uuid_1.v4)();
28
+ const currentTempId = uuid_util_class_1.UUIDUtil.generateV4();
29
29
  if (tempIds.indexOf(currentTempId) === -1) {
30
30
  tempIds.push(currentTempId);
31
31
  return `temp$:${currentTempId}`;
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2017.full.d.ts","../src/array-util.class.ts","../node_modules/uuid/dist/cjs/types.d.ts","../node_modules/uuid/dist/cjs/max.d.ts","../node_modules/uuid/dist/cjs/nil.d.ts","../node_modules/uuid/dist/cjs/parse.d.ts","../node_modules/uuid/dist/cjs/stringify.d.ts","../node_modules/uuid/dist/cjs/v1.d.ts","../node_modules/uuid/dist/cjs/v1ToV6.d.ts","../node_modules/uuid/dist/cjs/v35.d.ts","../node_modules/uuid/dist/cjs/v3.d.ts","../node_modules/uuid/dist/cjs/v4.d.ts","../node_modules/uuid/dist/cjs/v5.d.ts","../node_modules/uuid/dist/cjs/v6.d.ts","../node_modules/uuid/dist/cjs/v6ToV1.d.ts","../node_modules/uuid/dist/cjs/v7.d.ts","../node_modules/uuid/dist/cjs/validate.d.ts","../node_modules/uuid/dist/cjs/version.d.ts","../node_modules/uuid/dist/cjs/index.d.ts","../src/string-util.class.ts","../src/header-util.class.ts","../src/json-util.class.ts","../src/user-agent-util.class.ts","../src/vm-util.class.ts","../src/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"994c234848afc14a2586b6565777f4c0b05dc479ede0a041bfd5becf6dceb586",{"version":"2e05c9d89fb72dbac3ddc8906135b27b00f27ab19a6398023416131032e1ffa7","signature":"d35f55376249d4c6135fd299b13e8fa27a21c19b80cee2c150d690f0e4b90457"},"cff399d99c68e4fafdd5835d443a980622267a39ac6f3f59b9e3d60d60c4f133","6ada175c0c585e89569e8feb8ff6fc9fc443d7f9ca6340b456e0f94cbef559bf","e56e4d95fad615c97eb0ae39c329a4cda9c0af178273a9173676cc9b14b58520","73e8dfd5e7d2abc18bdb5c5873e64dbdd1082408dd1921cad6ff7130d8339334","fc820b2f0c21501f51f79b58a21d3fa7ae5659fc1812784dbfbb72af147659ee","4f041ef66167b5f9c73101e5fd8468774b09429932067926f9b2960cc3e4f99d","31501b8fc4279e78f6a05ca35e365e73c0b0c57d06dbe8faecb10c7254ce7714","7bc76e7d4bbe3764abaf054aed3a622c5cdbac694e474050d71ce9d4ab93ea4b","ff4e9db3eb1e95d7ba4b5765e4dc7f512b90fb3b588adfd5ca9b0d9d7a56a1ae","f205fd03cd15ea054f7006b7ef8378ef29c315149da0726f4928d291e7dce7b9","d683908557d53abeb1b94747e764b3bd6b6226273514b96a942340e9ce4b7be7","7c6d5704e2f236fddaf8dbe9131d998a4f5132609ef795b78c3b63f46317f88a","d05bd4d28c12545827349b0ac3a79c50658d68147dad38d13e97e22353544496","b6436d90a5487d9b3c3916b939f68e43f7eaca4b0bb305d897d5124180a122b9","04ace6bedd6f59c30ea6df1f0f8d432c728c8bc5c5fd0c5c1c80242d3ab51977","57a8a7772769c35ba7b4b1ba125f0812deec5c7102a0d04d9e15b1d22880c9e8","badcc9d59770b91987e962f8e3ddfa1e06671b0e4c5e2738bbd002255cad3f38",{"version":"965e1010090ad4d45d96bc8f082a49a0cd53f5b8c2007a350a6be2eac731c17a","signature":"d813e8c87be51caa7afddd94642ae4edbced2b2e0b351c5e5116e270e33e869b"},{"version":"96b80d810190927f5232bd9c1021c7f9f07ca34e9bd173c292794049d67da621","signature":"d10b0cee405f198c5125d813dbfe49a5a265c6ede03f38ee3d1781a99dfdf2cb"},{"version":"2aa8f2e2306dcc4db2a8baa54be5960b22412113145413376660f287d6caaa8e","signature":"aad90a5a003c8756d6f2e56e15e5a6ead5f601ba1f0d50958f0960a91ab21613"},{"version":"51de8250c727f1446d2c49ecbae28a5c4b0bc09cbc26cbb488825ff854c52447","signature":"d6afe47645522dd88c7ae70694bc0317add95de9053baf10df9f5091f303d652"},{"version":"67281148e1c0a0c4c33b4507f5e9f6069305d5956637121f51ae7720d33115d1","signature":"0e5f78fea076d8eadb39e0bc00614888b0212c4292a816cfd949d87d9c303da8"},"145eff6cbe850af826c54de461c84d1467b7fa32d8d2316c5c94240345e73acc","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"bb65c6267c5d6676be61acbf6604cf0a4555ac4b505df58ac15c831fcbff4e3e","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","dab86d9604fe40854ef3c0a6f9e8948873dc3509213418e5e457f410fd11200f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d076fede3cb042e7b13fc29442aaa03a57806bc51e2b26a67a01fbc66a7c0c12","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","223c37f62ce09a3d99e77498acdee7b2705a4ae14552fbdb4093600cd9164f3f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"4c50342e1b65d3bee2ed4ab18f84842d5724ad11083bd666d8705dc7a6079d80","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"8dbe725f8d237e70310977afcfa011629804d101ebaa0266cafda6b61ad72236"],"root":[49,[67,72]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"noFallthroughCasesInSwitch":false,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":false,"strictBindCallApply":false,"strictNullChecks":false,"target":4},"fileIdsList":[[73,119],[76,119],[77,82,110,119],[78,89,90,97,107,118,119],[78,79,89,97,119],[80,119],[81,82,90,98,119],[82,107,115,119],[83,85,89,97,119],[84,119],[85,86,119],[89,119],[87,89,119],[89,90,91,107,118,119],[89,90,91,104,107,110,119],[119,123],[119],[85,92,97,107,118,119],[89,90,92,93,97,107,115,118,119],[92,94,107,115,118,119],[73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125],[89,95,119],[96,118,119],[85,89,97,107,119],[98,119],[99,119],[76,100,119],[101,117,119,123],[102,119],[103,119],[89,104,105,119],[104,106,119,121],[77,89,107,108,109,110,119],[77,107,109,119],[107,108,119],[110,119],[111,119],[89,113,114,119],[113,114,119],[82,97,107,115,119],[116,119],[97,117,119],[77,92,103,118,119],[82,119],[107,119,120],[119,121],[119,122],[77,82,89,91,100,107,118,119,121,123],[107,119,124],[50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,119],[50,119],[50,57,119],[67,119],[49,67,68,69,70,71,119],[66,119]],"referencedMap":[[73,1],[74,1],[76,2],[77,3],[78,4],[79,5],[80,6],[81,7],[82,8],[83,9],[84,10],[85,11],[86,11],[88,12],[87,13],[89,12],[90,14],[91,15],[75,16],[125,17],[92,18],[93,19],[94,20],[126,21],[95,22],[96,23],[97,24],[98,25],[99,26],[100,27],[101,28],[102,29],[103,30],[104,31],[105,31],[106,32],[107,33],[109,34],[108,35],[110,36],[111,37],[112,17],[113,38],[114,39],[115,40],[116,41],[117,42],[118,43],[119,44],[120,45],[121,46],[122,47],[123,48],[124,49],[46,17],[47,17],[8,17],[9,17],[13,17],[12,17],[2,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[20,17],[21,17],[3,17],[4,17],[48,17],[25,17],[22,17],[23,17],[24,17],[26,17],[27,17],[28,17],[5,17],[29,17],[30,17],[31,17],[32,17],[6,17],[36,17],[33,17],[34,17],[35,17],[37,17],[7,17],[38,17],[43,17],[44,17],[39,17],[40,17],[41,17],[42,17],[1,17],[45,17],[11,17],[10,17],[66,50],[51,17],[52,17],[53,17],[54,17],[50,17],[55,51],[56,17],[58,52],[57,51],[59,51],[60,52],[61,51],[62,17],[63,51],[64,17],[65,17],[49,17],[68,53],[72,54],[69,17],[67,55],[70,17],[71,46]],"exportedModulesMap":[[73,1],[74,1],[76,2],[77,3],[78,4],[79,5],[80,6],[81,7],[82,8],[83,9],[84,10],[85,11],[86,11],[88,12],[87,13],[89,12],[90,14],[91,15],[75,16],[125,17],[92,18],[93,19],[94,20],[126,21],[95,22],[96,23],[97,24],[98,25],[99,26],[100,27],[101,28],[102,29],[103,30],[104,31],[105,31],[106,32],[107,33],[109,34],[108,35],[110,36],[111,37],[112,17],[113,38],[114,39],[115,40],[116,41],[117,42],[118,43],[119,44],[120,45],[121,46],[122,47],[123,48],[124,49],[46,17],[47,17],[8,17],[9,17],[13,17],[12,17],[2,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[20,17],[21,17],[3,17],[4,17],[48,17],[25,17],[22,17],[23,17],[24,17],[26,17],[27,17],[28,17],[5,17],[29,17],[30,17],[31,17],[32,17],[6,17],[36,17],[33,17],[34,17],[35,17],[37,17],[7,17],[38,17],[43,17],[44,17],[39,17],[40,17],[41,17],[42,17],[1,17],[45,17],[11,17],[10,17],[66,50],[51,17],[52,17],[53,17],[54,17],[50,17],[55,51],[56,17],[58,52],[57,51],[59,51],[60,52],[61,51],[62,17],[63,51],[64,17],[65,17],[72,54]],"semanticDiagnosticsPerFile":[73,74,76,77,78,79,80,81,82,83,84,85,86,88,87,89,90,91,75,125,92,93,94,126,95,96,97,98,99,100,101,102,103,104,105,106,107,109,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,46,47,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,48,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,1,45,11,10,66,51,52,53,54,50,55,56,58,57,59,60,61,62,63,64,65,49,68,72,69,67,70,71]},"version":"5.1.6"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2017.full.d.ts","../src/array-util.class.ts","../src/attempt-util.class.ts","../src/enum-util.class.ts","../src/uuid-util.class.ts","../src/string-util.class.ts","../src/header-util.class.ts","../src/json-util.class.ts","../src/user-agent-util.class.ts","../node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts","../node_modules/zod/dist/types/v3/helpers/util.d.ts","../node_modules/zod/dist/types/v3/ZodError.d.ts","../node_modules/zod/dist/types/v3/locales/en.d.ts","../node_modules/zod/dist/types/v3/errors.d.ts","../node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts","../node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts","../node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts","../node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts","../node_modules/zod/dist/types/v3/standard-schema.d.ts","../node_modules/zod/dist/types/v3/types.d.ts","../node_modules/zod/dist/types/v3/external.d.ts","../node_modules/zod/dist/types/v3/index.d.ts","../node_modules/zod/dist/types/index.d.ts","../src/schema-util.class.ts","../src/log-util.class.ts","../src/index.ts","../src/vm-util.class.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"994c234848afc14a2586b6565777f4c0b05dc479ede0a041bfd5becf6dceb586",{"version":"2e05c9d89fb72dbac3ddc8906135b27b00f27ab19a6398023416131032e1ffa7","signature":"2af7a2d1602592af433ee83ea922bb34b7c912b358d48364fd9604a85b6c4a3e"},{"version":"d8048ec018719de526652fbb59ec1f8d35d6ef57d49ee46cf4a855c363bd8e64","signature":"68719b4c699acb840c70c0876c666ff21694b991a097f61491b24dff52505b38"},{"version":"414c7d0e9de91576d34ea92960b8c9891846590ec5efcc5514bf169c8ca67603","signature":"06d92d21c6258bd99ccba0ebd1dcb612b4ebc688beaa0e293bbbe97836550d38"},{"version":"c7ab28a88605d141d5b2e5d5bc3e65d13279945e4271e36b49ebe0121f018c1c","signature":"520561ea7df70ae5ec5699252dccbabc2c84219bf9581b4dbb7ddc1c92a35fe4"},{"version":"6d63edd6617c9ddf33f4aca2fde31cae6dfe70930178964bbf28d7207e21bc54","signature":"d02209027f680dc99be375f7e4302c823df6a683971c386ed4c1ffecf94623a2"},{"version":"9bced8e3b426d2629cac0bcf11acb1bfee7790db64ac55084d6fbcbed983528d","signature":"d10b0cee405f198c5125d813dbfe49a5a265c6ede03f38ee3d1781a99dfdf2cb"},{"version":"2aa8f2e2306dcc4db2a8baa54be5960b22412113145413376660f287d6caaa8e","signature":"aad90a5a003c8756d6f2e56e15e5a6ead5f601ba1f0d50958f0960a91ab21613"},{"version":"51de8250c727f1446d2c49ecbae28a5c4b0bc09cbc26cbb488825ff854c52447","signature":"d6afe47645522dd88c7ae70694bc0317add95de9053baf10df9f5091f303d652"},"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995",{"version":"c752b913583d05d68beeb72c2cfe8ff216085948338b59fe7ba8fb698d37ef8a","signature":"e7745293b8979f1ddfd5cc97a4314b1741ad5f6d35866a44da72c4b9997a55e0"},{"version":"31d0feff90accb0b6f1bd46b884188a7ed728453e6b1b89c7a0227806a13f5a8","signature":"fc87df5720262ea1837bdeeb314110b909988b62d583224cce54c88275ea84be"},"c5c4bc11bf12298893f1c0629b211a9e9d61e87b49957db3c8106158b5f0d8c4",{"version":"67281148e1c0a0c4c33b4507f5e9f6069305d5956637121f51ae7720d33115d1","signature":"0e5f78fea076d8eadb39e0bc00614888b0212c4292a816cfd949d87d9c303da8"},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"bb65c6267c5d6676be61acbf6604cf0a4555ac4b505df58ac15c831fcbff4e3e","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","dab86d9604fe40854ef3c0a6f9e8948873dc3509213418e5e457f410fd11200f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d076fede3cb042e7b13fc29442aaa03a57806bc51e2b26a67a01fbc66a7c0c12","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","223c37f62ce09a3d99e77498acdee7b2705a4ae14552fbdb4093600cd9164f3f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"4c50342e1b65d3bee2ed4ab18f84842d5724ad11083bd666d8705dc7a6079d80","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"8dbe725f8d237e70310977afcfa011629804d101ebaa0266cafda6b61ad72236"],"root":[[49,56],[71,74]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"noFallthroughCasesInSwitch":false,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":false,"strictBindCallApply":false,"strictNullChecks":true,"target":4},"fileIdsList":[[75,121],[78,121],[79,84,112,121],[80,91,92,99,109,120,121],[80,81,91,99,121],[82,121],[83,84,92,100,121],[84,109,117,121],[85,87,91,99,121],[86,121],[87,88,121],[91,121],[89,91,121],[91,92,93,109,120,121],[91,92,93,106,109,112,121],[121,125],[121],[87,94,99,109,120,121],[91,92,94,95,99,109,117,120,121],[94,96,109,117,120,121],[75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127],[91,97,121],[98,120,121],[87,91,99,109,121],[100,121],[101,121],[78,102,121],[103,119,121,125],[104,121],[105,121],[91,106,107,121],[106,108,121,123],[79,91,109,110,111,112,121],[79,109,111,121],[109,110,121],[112,121],[113,121],[91,115,116,121],[115,116,121],[84,99,109,117,121],[118,121],[99,119,121],[79,94,105,120,121],[84,121],[109,121,122],[121,123],[121,124],[79,84,91,93,102,109,120,121,123,125],[109,121,126],[69,121],[57,58,69,121],[59,60,121],[57,58,59,61,62,67,121],[58,59,121],[67,121],[68,121],[59,121],[57,58,59,62,63,64,65,66,121],[53,121],[49,50,51,53,54,55,56,71,72,121],[71,121],[70,121],[52,121],[71],[70]],"referencedMap":[[75,1],[76,1],[78,2],[79,3],[80,4],[81,5],[82,6],[83,7],[84,8],[85,9],[86,10],[87,11],[88,11],[90,12],[89,13],[91,12],[92,14],[93,15],[77,16],[127,17],[94,18],[95,19],[96,20],[128,21],[97,22],[98,23],[99,24],[100,25],[101,26],[102,27],[103,28],[104,29],[105,30],[106,31],[107,31],[108,32],[109,33],[111,34],[110,35],[112,36],[113,37],[114,17],[115,38],[116,39],[117,40],[118,41],[119,42],[120,43],[121,44],[122,45],[123,46],[124,47],[125,48],[126,49],[46,17],[47,17],[8,17],[9,17],[13,17],[12,17],[2,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[20,17],[21,17],[3,17],[4,17],[48,17],[25,17],[22,17],[23,17],[24,17],[26,17],[27,17],[28,17],[5,17],[29,17],[30,17],[31,17],[32,17],[6,17],[36,17],[33,17],[34,17],[35,17],[37,17],[7,17],[38,17],[43,17],[44,17],[39,17],[40,17],[41,17],[42,17],[1,17],[45,17],[11,17],[10,17],[70,50],[59,51],[61,52],[68,53],[63,17],[64,17],[62,54],[65,55],[57,17],[58,17],[69,56],[60,57],[66,17],[67,58],[49,17],[50,17],[51,17],[54,59],[73,60],[55,17],[72,61],[71,62],[53,63],[56,17],[52,17],[74,46]],"exportedModulesMap":[[75,1],[76,1],[78,2],[79,3],[80,4],[81,5],[82,6],[83,7],[84,8],[85,9],[86,10],[87,11],[88,11],[90,12],[89,13],[91,12],[92,14],[93,15],[77,16],[127,17],[94,18],[95,19],[96,20],[128,21],[97,22],[98,23],[99,24],[100,25],[101,26],[102,27],[103,28],[104,29],[105,30],[106,31],[107,31],[108,32],[109,33],[111,34],[110,35],[112,36],[113,37],[114,17],[115,38],[116,39],[117,40],[118,41],[119,42],[120,43],[121,44],[122,45],[123,46],[124,47],[125,48],[126,49],[46,17],[47,17],[8,17],[9,17],[13,17],[12,17],[2,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[20,17],[21,17],[3,17],[4,17],[48,17],[25,17],[22,17],[23,17],[24,17],[26,17],[27,17],[28,17],[5,17],[29,17],[30,17],[31,17],[32,17],[6,17],[36,17],[33,17],[34,17],[35,17],[37,17],[7,17],[38,17],[43,17],[44,17],[39,17],[40,17],[41,17],[42,17],[1,17],[45,17],[11,17],[10,17],[70,50],[59,51],[61,52],[68,53],[63,17],[64,17],[62,54],[65,55],[57,17],[58,17],[69,56],[60,57],[66,17],[67,58],[73,60],[72,64],[71,65]],"semanticDiagnosticsPerFile":[75,76,78,79,80,81,82,83,84,85,86,87,88,90,89,91,92,93,77,127,94,95,96,128,97,98,99,100,101,102,103,104,105,106,107,108,109,111,110,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,46,47,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,48,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,1,45,11,10,70,59,61,68,63,64,62,65,57,58,69,60,66,67,49,50,51,54,73,55,72,71,53,56,52,74]},"version":"5.1.6"}
@@ -0,0 +1,3 @@
1
+ export declare class UUIDUtil {
2
+ static generateV4(): string;
3
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UUIDUtil = void 0;
4
+ class UUIDUtil {
5
+ static generateV4() {
6
+ var _a, _b;
7
+ if (typeof window !== 'undefined' && typeof ((_a = window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) === 'function') {
8
+ try {
9
+ return window.crypto.randomUUID();
10
+ }
11
+ catch (e) { }
12
+ }
13
+ else if (typeof global !== 'undefined' && typeof ((_b = global.crypto) === null || _b === void 0 ? void 0 : _b.randomUUID) === 'function') {
14
+ try {
15
+ return global.crypto.randomUUID();
16
+ }
17
+ catch (e) { }
18
+ }
19
+ const hex = [];
20
+ const bytes = new Uint8Array(16);
21
+ for (let i = 0; i < 16; i++) {
22
+ bytes[i] = Math.floor(Math.random() * 256);
23
+ }
24
+ bytes[6] = (bytes[6] & 0x0f) | 0x40;
25
+ bytes[8] = (bytes[8] & 0x3f) | 0x80;
26
+ for (let i = 0; i < 16; i++) {
27
+ hex.push(bytes[i].toString(16).padStart(2, '0'));
28
+ }
29
+ return `${hex[0]}${hex[1]}${hex[2]}${hex[3]}-${hex[4]}${hex[5]}-${hex[6]}${hex[7]}-${hex[8]}${hex[9]}-${hex[10]}${hex[11]}${hex[12]}${hex[13]}${hex[14]}${hex[15]}`;
30
+ }
31
+ }
32
+ exports.UUIDUtil = UUIDUtil;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/utilities",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.21",
4
4
  "description": "NoranTec Utilities",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -45,6 +45,6 @@
45
45
  "typescript": "~5.1.3"
46
46
  },
47
47
  "dependencies": {
48
- "uuid": "^11.1.0"
48
+ "zod": "^3.25.67"
49
49
  }
50
50
  }