@open-norantec/utilities 1.0.0-alpha.3 → 1.0.0-alpha.31

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,3 @@
1
+ export declare class CryptoUtil {
2
+ static importRsaPkcs8Pem(pemString: string, algorithm: AlgorithmIdentifier, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
3
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptoUtil = void 0;
4
+ class CryptoUtil {
5
+ static async importRsaPkcs8Pem(pemString, algorithm, keyUsages) {
6
+ const base64 = pemString.replace(/(-----(BEGIN|END) PRIVATE KEY-----|\n|\r)/g, '').trim();
7
+ const binaryString = atob(base64);
8
+ const keyArrayBuffer = new ArrayBuffer(binaryString.length);
9
+ const keyArrayBufferView = new Uint8Array(keyArrayBuffer);
10
+ for (let i = 0; i < binaryString.length; i += 1) {
11
+ keyArrayBufferView[i] = binaryString.charCodeAt(i);
12
+ }
13
+ const importedKey = await crypto.subtle.importKey('pkcs8', keyArrayBuffer, algorithm, true, keyUsages);
14
+ return importedKey;
15
+ }
16
+ }
17
+ exports.CryptoUtil = CryptoUtil;
@@ -0,0 +1,4 @@
1
+ export declare class DateUtil {
2
+ static isValidDate(date: Date): boolean;
3
+ static isValidDateString(value: string): boolean;
4
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DateUtil = void 0;
4
+ const string_util_class_1 = require("./string-util.class");
5
+ class DateUtil {
6
+ static isValidDate(date) {
7
+ return date instanceof Date && !Number.isNaN(Date.prototype.getTime.call(date));
8
+ }
9
+ static isValidDateString(value) {
10
+ if (string_util_class_1.StringUtil.isFalsyString(value))
11
+ return false;
12
+ return DateUtil.isValidDate(new Date(value));
13
+ }
14
+ }
15
+ exports.DateUtil = DateUtil;
@@ -0,0 +1,8 @@
1
+ export interface IEnum {
2
+ [x: string]: any;
3
+ }
4
+ export declare class EnumUtil {
5
+ static getEntries(inputEnum: IEnum): Array<[string, any]>;
6
+ static isValidValue(inputEnum: IEnum, inputValue: any): boolean;
7
+ static isEqual(enum1: IEnum, enum2: IEnum): 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,10 @@
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';
10
+ export * from './crypto-util.class';
package/dist/index.js CHANGED
@@ -15,8 +15,12 @@ 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);
26
+ __exportStar(require("./crypto-util.class"), exports);
@@ -0,0 +1,4 @@
1
+ import { Schema } from './schema-util.class';
2
+ export declare class LogUtil {
3
+ match(bottomLogLevel: Schema.LogLevel | boolean, logLevel: Schema.LogLevel): boolean;
4
+ }
@@ -0,0 +1,14 @@
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
+ if (bottomLogLevel === true)
10
+ return true;
11
+ return LOG_LEVELS.slice(LOG_LEVELS.findIndex((level) => level === bottomLogLevel)).includes(logLevel);
12
+ }
13
+ }
14
+ exports.LogUtil = LogUtil;
@@ -0,0 +1,285 @@
1
+ import { z } from 'zod';
2
+ export declare namespace Enum {
3
+ const OrderOrientation: {
4
+ readonly ASC: "ASC";
5
+ readonly DESC: "DESC";
6
+ };
7
+ const WhereClauseOp: {
8
+ readonly ADJACENT: "adjacent";
9
+ readonly ANY: "any";
10
+ readonly BETWEEN: "between";
11
+ readonly COL: "col";
12
+ readonly CONTAINED: "contained";
13
+ readonly CONTAINS: "contains";
14
+ readonly ENDS_WITH: "endsWith";
15
+ readonly EQ: "eq";
16
+ readonly GT: "gt";
17
+ readonly GTE: "gte";
18
+ readonly I_LIKE: "iLike";
19
+ readonly IN: "in";
20
+ readonly I_REGEXP: "iRegexp";
21
+ readonly IS: "is";
22
+ readonly LIKE: "like";
23
+ readonly LT: "lt";
24
+ readonly LTE: "lte";
25
+ readonly MATCH: "match";
26
+ readonly NE: "ne";
27
+ readonly NO_EXTEND_LEFT: "noExtendLeft";
28
+ readonly NO_EXTEND_RIGHT: "noExtendRight";
29
+ readonly NOT: "not";
30
+ readonly NOT_BETWEEN: "notBetween";
31
+ readonly NOT_I_LIKE: "notILike";
32
+ readonly NOT_IN: "notIn";
33
+ readonly NOT_I_REGEXP: "notIRegexp";
34
+ readonly NOT_LIKE: "notLike";
35
+ readonly NOT_REGEXP: "notRegexp";
36
+ readonly OVERLAP: "overlap";
37
+ readonly PLACEHOLDER: "placeholder";
38
+ readonly REGEXP: "regexp";
39
+ readonly STARTS_WITH: "startsWith";
40
+ readonly STRICT_LEFT: "strictLeft";
41
+ readonly STRICT_RIGHT: "strictRight";
42
+ readonly SUBSTRING: "substring";
43
+ readonly VALUES: "values";
44
+ };
45
+ const LogLevel: {
46
+ readonly ERROR: "error";
47
+ readonly WARN: "warn";
48
+ readonly INFO: "info";
49
+ readonly VERBOSE: "verbose";
50
+ readonly DEBUG: "debug";
51
+ };
52
+ }
53
+ export declare class SchemaUtil {
54
+ static createEnumSchema<const T extends Record<string, string>>(object: T): z.ZodEnum<[T[keyof T], ...T[keyof T][]]>;
55
+ static readonly ID: z.ZodString;
56
+ static readonly ID_OBJECT: z.ZodObject<{
57
+ id: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: string;
60
+ }, {
61
+ id: string;
62
+ }>;
63
+ static readonly JSON_STRING: z.ZodEffects<z.ZodString, string, string>;
64
+ static readonly DATE_STRING: z.ZodEffects<z.ZodString, string, string>;
65
+ static readonly TIME_RECORD: z.ZodObject<{
66
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
67
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ createdAt?: string | null | undefined;
70
+ updatedAt?: string | null | undefined;
71
+ }, {
72
+ createdAt?: string | null | undefined;
73
+ updatedAt?: string | null | undefined;
74
+ }>;
75
+ static readonly ORDER_ORIENTATION: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
76
+ static readonly WHERE_CLAUSE_OP: z.ZodEnum<["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", ...("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")[]]>;
77
+ static readonly LOG_LEVEL: z.ZodEnum<["error" | "warn" | "info" | "verbose" | "debug", ...("error" | "warn" | "info" | "verbose" | "debug")[]]>;
78
+ static readonly COMMON_RESULT: z.ZodObject<{
79
+ succeeded: z.ZodBoolean;
80
+ content: z.ZodOptional<z.ZodString>;
81
+ } & {
82
+ id: z.ZodOptional<z.ZodString>;
83
+ } & {
84
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
85
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ succeeded: boolean;
88
+ id?: string | undefined;
89
+ createdAt?: string | null | undefined;
90
+ updatedAt?: string | null | undefined;
91
+ content?: string | undefined;
92
+ }, {
93
+ succeeded: boolean;
94
+ id?: string | undefined;
95
+ createdAt?: string | null | undefined;
96
+ updatedAt?: string | null | undefined;
97
+ content?: string | undefined;
98
+ }>;
99
+ static readonly WHERE_CLAUSE: z.ZodObject<{
100
+ field: z.ZodString;
101
+ op: z.ZodEnum<["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", ...("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")[]]>;
102
+ value: z.ZodEffects<z.ZodString, string, string>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ value: string;
105
+ field: string;
106
+ 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";
107
+ }, {
108
+ value: string;
109
+ field: string;
110
+ 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";
111
+ }>;
112
+ static readonly ORDER_ITEM: z.ZodObject<{
113
+ field: z.ZodString;
114
+ orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ field: string;
117
+ orientation: "ASC" | "DESC";
118
+ }, {
119
+ field: string;
120
+ orientation: "ASC" | "DESC";
121
+ }>;
122
+ static readonly PAGINATION_OPTIONS: z.ZodObject<{
123
+ createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
124
+ cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
125
+ lastCursor: z.ZodOptional<z.ZodString>;
126
+ limit: z.ZodOptional<z.ZodNumber>;
127
+ order: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ field: z.ZodString;
129
+ orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ field: string;
132
+ orientation: "ASC" | "DESC";
133
+ }, {
134
+ field: string;
135
+ orientation: "ASC" | "DESC";
136
+ }>, "many">>;
137
+ where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
138
+ field: z.ZodString;
139
+ op: z.ZodEnum<["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", ...("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")[]]>;
140
+ value: z.ZodEffects<z.ZodString, string, string>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ value: string;
143
+ field: string;
144
+ 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";
145
+ }, {
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
+ }>, "many">, "many">>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ createdAtField?: string | undefined;
152
+ cursorField?: string | undefined;
153
+ lastCursor?: string | undefined;
154
+ limit?: number | undefined;
155
+ order?: {
156
+ field: string;
157
+ orientation: "ASC" | "DESC";
158
+ }[] | undefined;
159
+ where?: {
160
+ value: string;
161
+ field: string;
162
+ 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";
163
+ }[][] | undefined;
164
+ }, {
165
+ createdAtField?: string | undefined;
166
+ cursorField?: string | undefined;
167
+ lastCursor?: string | undefined;
168
+ limit?: number | undefined;
169
+ order?: {
170
+ field: string;
171
+ orientation: "ASC" | "DESC";
172
+ }[] | undefined;
173
+ where?: {
174
+ value: string;
175
+ field: string;
176
+ 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";
177
+ }[][] | undefined;
178
+ }>;
179
+ static readonly FIND_ONE_OPTIONS: z.ZodObject<Omit<{
180
+ createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
181
+ cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
182
+ lastCursor: z.ZodOptional<z.ZodString>;
183
+ limit: z.ZodOptional<z.ZodNumber>;
184
+ order: z.ZodOptional<z.ZodArray<z.ZodObject<{
185
+ field: z.ZodString;
186
+ orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ field: string;
189
+ orientation: "ASC" | "DESC";
190
+ }, {
191
+ field: string;
192
+ orientation: "ASC" | "DESC";
193
+ }>, "many">>;
194
+ where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
195
+ field: z.ZodString;
196
+ op: z.ZodEnum<["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", ...("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")[]]>;
197
+ value: z.ZodEffects<z.ZodString, string, string>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ value: string;
200
+ field: string;
201
+ 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";
202
+ }, {
203
+ value: string;
204
+ field: string;
205
+ 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";
206
+ }>, "many">, "many">>;
207
+ }, "lastCursor" | "limit">, "strip", z.ZodTypeAny, {
208
+ createdAtField?: string | undefined;
209
+ cursorField?: string | undefined;
210
+ order?: {
211
+ field: string;
212
+ orientation: "ASC" | "DESC";
213
+ }[] | undefined;
214
+ where?: {
215
+ value: string;
216
+ field: string;
217
+ 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";
218
+ }[][] | undefined;
219
+ }, {
220
+ createdAtField?: string | undefined;
221
+ cursorField?: string | undefined;
222
+ order?: {
223
+ field: string;
224
+ orientation: "ASC" | "DESC";
225
+ }[] | undefined;
226
+ where?: {
227
+ value: string;
228
+ field: string;
229
+ 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";
230
+ }[][] | undefined;
231
+ }>;
232
+ static readonly PAGINATION_RESULT: z.ZodObject<{
233
+ hasNext: z.ZodBoolean;
234
+ nextCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
235
+ previousCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ hasNext: boolean;
238
+ nextCursor: string | null;
239
+ previousCursor: string | null;
240
+ }, {
241
+ hasNext: boolean;
242
+ nextCursor: string | null;
243
+ previousCursor: string | null;
244
+ }>;
245
+ static readonly FILE: z.ZodObject<{
246
+ mimeType: z.ZodString;
247
+ name: z.ZodString;
248
+ progres: z.ZodNumber;
249
+ size: z.ZodNumber;
250
+ url: z.ZodString;
251
+ } & {
252
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
253
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ mimeType: string;
256
+ name: string;
257
+ progres: number;
258
+ size: number;
259
+ url: string;
260
+ createdAt?: string | null | undefined;
261
+ updatedAt?: string | null | undefined;
262
+ }, {
263
+ mimeType: string;
264
+ name: string;
265
+ progres: number;
266
+ size: number;
267
+ url: string;
268
+ createdAt?: string | null | undefined;
269
+ updatedAt?: string | null | undefined;
270
+ }>;
271
+ }
272
+ export declare namespace Schema {
273
+ type CommonResult = z.infer<typeof SchemaUtil.COMMON_RESULT>;
274
+ type File = z.infer<typeof SchemaUtil.FILE>;
275
+ type FindOneOptions = z.infer<typeof SchemaUtil.FIND_ONE_OPTIONS>;
276
+ type IDObject = z.infer<typeof SchemaUtil.ID_OBJECT>;
277
+ type LogLevel = z.infer<typeof SchemaUtil.LOG_LEVEL>;
278
+ type OrderItem = z.infer<typeof SchemaUtil.ORDER_ITEM>;
279
+ type OrderOrientation = z.infer<typeof SchemaUtil.ORDER_ORIENTATION>;
280
+ type PaginationOptions = z.infer<typeof SchemaUtil.PAGINATION_OPTIONS>;
281
+ type PaginationResult = z.infer<typeof SchemaUtil.PAGINATION_RESULT>;
282
+ type TimeRecord = z.infer<typeof SchemaUtil.TIME_RECORD>;
283
+ type WhereClause = z.infer<typeof SchemaUtil.WHERE_CLAUSE>;
284
+ type WhereClauseOp = z.infer<typeof SchemaUtil.WHERE_CLAUSE_OP>;
285
+ }
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaUtil = exports.Enum = void 0;
4
+ const zod_1 = require("zod");
5
+ const date_util_class_1 = require("./date-util.class");
6
+ var Enum;
7
+ (function (Enum) {
8
+ Enum.OrderOrientation = {
9
+ ASC: 'ASC',
10
+ DESC: 'DESC',
11
+ };
12
+ Enum.WhereClauseOp = {
13
+ ADJACENT: 'adjacent',
14
+ ANY: 'any',
15
+ BETWEEN: 'between',
16
+ COL: 'col',
17
+ CONTAINED: 'contained',
18
+ CONTAINS: 'contains',
19
+ ENDS_WITH: 'endsWith',
20
+ EQ: 'eq',
21
+ GT: 'gt',
22
+ GTE: 'gte',
23
+ I_LIKE: 'iLike',
24
+ IN: 'in',
25
+ I_REGEXP: 'iRegexp',
26
+ IS: 'is',
27
+ LIKE: 'like',
28
+ LT: 'lt',
29
+ LTE: 'lte',
30
+ MATCH: 'match',
31
+ NE: 'ne',
32
+ NO_EXTEND_LEFT: 'noExtendLeft',
33
+ NO_EXTEND_RIGHT: 'noExtendRight',
34
+ NOT: 'not',
35
+ NOT_BETWEEN: 'notBetween',
36
+ NOT_I_LIKE: 'notILike',
37
+ NOT_IN: 'notIn',
38
+ NOT_I_REGEXP: 'notIRegexp',
39
+ NOT_LIKE: 'notLike',
40
+ NOT_REGEXP: 'notRegexp',
41
+ OVERLAP: 'overlap',
42
+ PLACEHOLDER: 'placeholder',
43
+ REGEXP: 'regexp',
44
+ STARTS_WITH: 'startsWith',
45
+ STRICT_LEFT: 'strictLeft',
46
+ STRICT_RIGHT: 'strictRight',
47
+ SUBSTRING: 'substring',
48
+ VALUES: 'values',
49
+ };
50
+ Enum.LogLevel = {
51
+ ERROR: 'error',
52
+ WARN: 'warn',
53
+ INFO: 'info',
54
+ VERBOSE: 'verbose',
55
+ DEBUG: 'debug',
56
+ };
57
+ })(Enum || (exports.Enum = Enum = {}));
58
+ class SchemaUtil {
59
+ static createEnumSchema(object) {
60
+ return zod_1.z.enum(Object.values(object));
61
+ }
62
+ }
63
+ exports.SchemaUtil = SchemaUtil;
64
+ SchemaUtil.ID = zod_1.z.string().uuid();
65
+ SchemaUtil.ID_OBJECT = zod_1.z.object({
66
+ id: SchemaUtil.ID,
67
+ });
68
+ SchemaUtil.JSON_STRING = zod_1.z.string().refine((value) => {
69
+ try {
70
+ JSON.parse(value);
71
+ return true;
72
+ }
73
+ catch (_a) {
74
+ return false;
75
+ }
76
+ });
77
+ SchemaUtil.DATE_STRING = zod_1.z.string().refine((value) => date_util_class_1.DateUtil.isValidDateString(value));
78
+ SchemaUtil.TIME_RECORD = zod_1.z.object({
79
+ createdAt: SchemaUtil.DATE_STRING.nullable().optional(),
80
+ updatedAt: SchemaUtil.DATE_STRING.nullable().optional(),
81
+ });
82
+ SchemaUtil.ORDER_ORIENTATION = SchemaUtil.createEnumSchema(Enum.OrderOrientation);
83
+ SchemaUtil.WHERE_CLAUSE_OP = SchemaUtil.createEnumSchema(Enum.WhereClauseOp);
84
+ SchemaUtil.LOG_LEVEL = SchemaUtil.createEnumSchema(Enum.LogLevel);
85
+ SchemaUtil.COMMON_RESULT = zod_1.z
86
+ .object({
87
+ succeeded: zod_1.z.boolean(),
88
+ content: zod_1.z.string().optional(),
89
+ })
90
+ .merge(SchemaUtil.ID_OBJECT.partial())
91
+ .merge(SchemaUtil.TIME_RECORD);
92
+ SchemaUtil.WHERE_CLAUSE = zod_1.z.object({
93
+ field: zod_1.z.string(),
94
+ op: SchemaUtil.WHERE_CLAUSE_OP,
95
+ value: SchemaUtil.JSON_STRING,
96
+ });
97
+ SchemaUtil.ORDER_ITEM = zod_1.z.object({
98
+ field: zod_1.z.string(),
99
+ orientation: SchemaUtil.ORDER_ORIENTATION,
100
+ });
101
+ SchemaUtil.PAGINATION_OPTIONS = zod_1.z.object({
102
+ createdAtField: zod_1.z.union([zod_1.z.string().optional().default('createdAt'), zod_1.z.undefined()]),
103
+ cursorField: zod_1.z.union([zod_1.z.string().optional().default('id'), zod_1.z.undefined()]),
104
+ lastCursor: zod_1.z.string().optional(),
105
+ limit: zod_1.z.number().min(0).optional(),
106
+ order: zod_1.z.array(SchemaUtil.ORDER_ITEM).optional(),
107
+ where: zod_1.z.array(zod_1.z.array(SchemaUtil.WHERE_CLAUSE).min(1)).optional(),
108
+ });
109
+ SchemaUtil.FIND_ONE_OPTIONS = SchemaUtil.PAGINATION_OPTIONS.omit({
110
+ limit: true,
111
+ lastCursor: true,
112
+ });
113
+ SchemaUtil.PAGINATION_RESULT = zod_1.z.object({
114
+ hasNext: zod_1.z.boolean(),
115
+ nextCursor: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
116
+ previousCursor: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
117
+ });
118
+ SchemaUtil.FILE = zod_1.z
119
+ .object({
120
+ mimeType: zod_1.z.string(),
121
+ name: zod_1.z.string(),
122
+ progres: zod_1.z.number().min(0).max(1),
123
+ size: zod_1.z.number().min(0),
124
+ url: zod_1.z.string(),
125
+ })
126
+ .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 +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","../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","../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"},{"version":"c5256295a902c1dc85e9837e43a7ecc3c930ad06174d43e0bf3cd6e6af077bac","signature":"398ad0be302b81e4ef107d672b046026b9bca96095c4f757ec2c5eb8e5b932f8"},{"version":"6d63edd6617c9ddf33f4aca2fde31cae6dfe70930178964bbf28d7207e21bc54","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,56]],"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":[[57,103],[60,103],[61,66,94,103],[62,73,74,81,91,102,103],[62,63,73,81,103],[64,103],[65,66,74,82,103],[66,91,99,103],[67,69,73,81,103],[68,103],[69,70,103],[73,103],[71,73,103],[73,74,75,91,102,103],[73,74,75,88,91,94,103],[103,107],[103],[69,76,81,91,102,103],[73,74,76,77,81,91,99,102,103],[76,78,91,99,102,103],[57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,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],[73,79,103],[80,102,103],[69,73,81,91,103],[82,103],[83,103],[60,84,103],[85,101,103,107],[86,103],[87,103],[73,88,89,103],[88,90,103,105],[61,73,91,92,93,94,103],[61,91,93,103],[91,92,103],[94,103],[95,103],[73,97,98,103],[97,98,103],[66,81,91,99,103],[100,103],[81,101,103],[61,76,87,102,103],[66,103],[91,103,104],[103,105],[103,106],[61,66,73,75,84,91,102,103,105,107],[91,103,108],[51,103],[49,51,52,53,54,55,103],[50,103]],"referencedMap":[[57,1],[58,1],[60,2],[61,3],[62,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,11],[72,12],[71,13],[73,12],[74,14],[75,15],[59,16],[109,17],[76,18],[77,19],[78,20],[110,21],[79,22],[80,23],[81,24],[82,25],[83,26],[84,27],[85,28],[86,29],[87,30],[88,31],[89,31],[90,32],[91,33],[93,34],[92,35],[94,36],[95,37],[96,17],[97,38],[98,39],[99,40],[100,41],[101,42],[102,43],[103,44],[104,45],[105,46],[106,47],[107,48],[108,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],[49,17],[52,50],[56,51],[53,17],[51,52],[54,17],[50,17],[55,46]],"exportedModulesMap":[[57,1],[58,1],[60,2],[61,3],[62,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,11],[72,12],[71,13],[73,12],[74,14],[75,15],[59,16],[109,17],[76,18],[77,19],[78,20],[110,21],[79,22],[80,23],[81,24],[82,25],[83,26],[84,27],[85,28],[86,29],[87,30],[88,31],[89,31],[90,32],[91,33],[93,34],[92,35],[94,36],[95,37],[96,17],[97,38],[98,39],[99,40],[100,41],[101,42],[102,43],[103,44],[104,45],[105,46],[106,47],[107,48],[108,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],[56,51]],"semanticDiagnosticsPerFile":[57,58,60,61,62,63,64,65,66,67,68,69,70,72,71,73,74,75,59,109,76,77,78,110,79,80,81,82,83,84,85,86,87,88,89,90,91,93,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,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,49,52,56,53,51,54,50,55]},"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/crypto-util.class.ts","../src/uuid-util.class.ts","../src/string-util.class.ts","../src/date-util.class.ts","../src/enum-util.class.ts","../src/header-util.class.ts","../src/json-util.class.ts","../src/user-agent-util.class.ts","../node_modules/zod/v3/helpers/typeAliases.d.cts","../node_modules/zod/v3/helpers/util.d.cts","../node_modules/zod/v3/index.d.cts","../node_modules/zod/v3/ZodError.d.cts","../node_modules/zod/v3/locales/en.d.cts","../node_modules/zod/v3/errors.d.cts","../node_modules/zod/v3/helpers/parseUtil.d.cts","../node_modules/zod/v3/helpers/enumUtil.d.cts","../node_modules/zod/v3/helpers/errorUtil.d.cts","../node_modules/zod/v3/helpers/partialUtil.d.cts","../node_modules/zod/v3/standard-schema.d.cts","../node_modules/zod/v3/types.d.cts","../node_modules/zod/v3/external.d.cts","../node_modules/zod/index.d.cts","../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":"71235256fbc4d4dd7c97a030c33b32fa779325428c2e3a2081a036088f0ca7c3","signature":"d949f0a228d71761823fd7424f6fdd14e6a312863acb4f30175c68e023e0ccdb"},{"version":"c7ab28a88605d141d5b2e5d5bc3e65d13279945e4271e36b49ebe0121f018c1c","signature":"520561ea7df70ae5ec5699252dccbabc2c84219bf9581b4dbb7ddc1c92a35fe4"},{"version":"6d63edd6617c9ddf33f4aca2fde31cae6dfe70930178964bbf28d7207e21bc54","signature":"d02209027f680dc99be375f7e4302c823df6a683971c386ed4c1ffecf94623a2"},{"version":"9aca186870df5ba5e44df66cf80c1e55634c0d91ec0ac731ee7117a5675c8464","signature":"6a03e2d74d9c0eb322272eb01b11619c0cb11fc4a870bc3a3fd99653915eac69"},{"version":"97a39142aeb919ebf12ae22a445c47485edc319994d185aa126054559623b22b","signature":"6bdc4358f39bccdda5699cef84d8013eec5c3c698f9fb4c9e70f1274671223a7"},{"version":"9bced8e3b426d2629cac0bcf11acb1bfee7790db64ac55084d6fbcbed983528d","signature":"d10b0cee405f198c5125d813dbfe49a5a265c6ede03f38ee3d1781a99dfdf2cb"},{"version":"2aa8f2e2306dcc4db2a8baa54be5960b22412113145413376660f287d6caaa8e","signature":"aad90a5a003c8756d6f2e56e15e5a6ead5f601ba1f0d50958f0960a91ab21613"},{"version":"51de8250c727f1446d2c49ecbae28a5c4b0bc09cbc26cbb488825ff854c52447","signature":"d6afe47645522dd88c7ae70694bc0317add95de9053baf10df9f5091f303d652"},"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9",{"version":"4ecafd4617e5a83b4d5915911656695031742c1ffe85e6416297b93741a20d83","signature":"ede9ca6c2d163ad57b5b07d330fc1427bf0a4d3db2d62e402b7fd368c2ed64ee"},{"version":"52d8370933a6a1deabf48573d906142ead73c54194f0c7ccf2ceccb5e7db0c44","signature":"85dd70e31805c2f7218408c644e5f797797733b193207493c2258b97972cda58"},"49d038e1910932f9758f66c22158a09c6b941f905df36c916d387e5038aeef13",{"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,58],[73,76]],"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":[[77,123],[80,123],[81,86,114,123],[82,93,94,101,111,122,123],[82,83,93,101,123],[84,123],[85,86,94,102,123],[86,111,119,123],[87,89,93,101,123],[88,123],[89,90,123],[93,123],[91,93,123],[93,94,95,111,122,123],[93,94,95,108,111,114,123],[123,127],[123],[89,96,101,111,122,123],[93,94,96,97,101,111,119,122,123],[96,98,111,119,122,123],[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,128,129],[93,99,123],[100,122,123],[89,93,101,111,123],[102,123],[103,123],[80,104,123],[105,121,123,127],[106,123],[107,123],[93,108,109,123],[108,110,123,125],[81,93,111,112,113,114,123],[81,111,113,123],[111,112,123],[114,123],[115,123],[93,117,118,123],[117,118,123],[86,101,111,119,123],[120,123],[101,121,123],[81,96,107,122,123],[86,123],[111,123,124],[123,125],[123,126],[81,86,93,95,104,111,122,123,125,127],[111,123,128],[71,123],[59,60,61,123],[62,63,123],[59,60,62,64,65,70,123],[60,62,123],[70,123],[62,123],[59,60,62,65,66,67,68,69,123],[53,123],[49,50,51,53,55,56,57,58,73,74,123],[73,123],[54,72,123],[52,123],[73],[72]],"referencedMap":[[77,1],[78,1],[80,2],[81,3],[82,4],[83,5],[84,6],[85,7],[86,8],[87,9],[88,10],[89,11],[90,11],[92,12],[91,13],[93,12],[94,14],[95,15],[79,16],[129,17],[96,18],[97,19],[98,20],[130,21],[99,22],[100,23],[101,24],[102,25],[103,26],[104,27],[105,28],[106,29],[107,30],[108,31],[109,31],[110,32],[111,33],[113,34],[112,35],[114,36],[115,37],[116,17],[117,38],[118,39],[119,40],[120,41],[121,42],[122,43],[123,44],[124,45],[125,46],[126,47],[127,48],[128,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],[72,50],[62,51],[64,52],[71,53],[66,17],[67,17],[65,54],[68,55],[59,17],[60,17],[61,50],[63,56],[69,17],[70,57],[49,17],[50,17],[51,17],[54,58],[55,17],[56,58],[75,59],[57,17],[74,60],[73,61],[53,62],[58,17],[52,17],[76,46]],"exportedModulesMap":[[77,1],[78,1],[80,2],[81,3],[82,4],[83,5],[84,6],[85,7],[86,8],[87,9],[88,10],[89,11],[90,11],[92,12],[91,13],[93,12],[94,14],[95,15],[79,16],[129,17],[96,18],[97,19],[98,20],[130,21],[99,22],[100,23],[101,24],[102,25],[103,26],[104,27],[105,28],[106,29],[107,30],[108,31],[109,31],[110,32],[111,33],[113,34],[112,35],[114,36],[115,37],[116,17],[117,38],[118,39],[119,40],[120,41],[121,42],[122,43],[123,44],[124,45],[125,46],[126,47],[127,48],[128,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],[72,50],[62,51],[64,52],[71,53],[66,17],[67,17],[65,54],[68,55],[59,17],[60,17],[61,50],[63,56],[69,17],[70,57],[75,59],[74,63],[73,64]],"semanticDiagnosticsPerFile":[77,78,80,81,82,83,84,85,86,87,88,89,90,92,91,93,94,95,79,129,96,97,98,130,99,100,101,102,103,104,105,106,107,108,109,110,111,113,112,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,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,72,62,64,71,66,67,65,68,59,60,61,63,69,70,49,50,51,54,55,56,75,57,74,73,53,58,52,76]},"version":"5.1.6"}
@@ -1,3 +1,3 @@
1
1
  export declare class UUIDUtil {
2
- static generateV4(): any;
2
+ static generateV4(): string;
3
3
  }
@@ -3,13 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UUIDUtil = void 0;
4
4
  class UUIDUtil {
5
5
  static generateV4() {
6
- var _a;
7
- if (typeof window !== 'undefined' && typeof ((_a = window === null || window === void 0 ? void 0 : window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) === 'function') {
8
- return window.crypto.randomUUID();
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) { }
9
12
  }
10
- else {
13
+ else if (typeof global !== 'undefined' && typeof ((_b = global.crypto) === null || _b === void 0 ? void 0 : _b.randomUUID) === 'function') {
11
14
  try {
12
- return require('crypto').randomUUID();
15
+ return global.crypto.randomUUID();
13
16
  }
14
17
  catch (e) { }
15
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/utilities",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.31",
4
4
  "description": "NoranTec Utilities",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -43,5 +43,8 @@
43
43
  "ts-node": "^10.0.0",
44
44
  "type-fest": "^4.37.0",
45
45
  "typescript": "~5.1.3"
46
+ },
47
+ "dependencies": {
48
+ "zod": "^3.25.67"
46
49
  }
47
50
  }