@open-norantec/utilities 1.0.0-alpha.9 → 1.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array-util.class.d.ts +1 -1
- package/dist/attempt-util.class.d.ts +4 -0
- package/dist/attempt-util.class.js +23 -0
- package/dist/crypto-util.class.d.ts +5 -0
- package/dist/crypto-util.class.js +35 -0
- package/dist/date-util.class.d.ts +4 -0
- package/dist/date-util.class.js +15 -0
- package/dist/enum-util.class.d.ts +4 -3
- package/dist/enum-util.class.js +6 -0
- package/dist/header-util.class.js +11 -6
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/log-util.class.d.ts +4 -0
- package/dist/log-util.class.js +14 -0
- package/dist/schema-util.class.d.ts +650 -0
- package/dist/schema-util.class.js +147 -0
- package/dist/string-util.class.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/url-util.class.d.ts +4 -0
- package/dist/url-util.class.js +31 -0
- package/package.json +4 -1
|
@@ -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,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,5 @@
|
|
|
1
|
+
export declare class CryptoUtil {
|
|
2
|
+
static importRsaPrivatePemKey(pemString: string, algorithm: AlgorithmIdentifier, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
3
|
+
static importRsaPublicPemKey(pemString: string, algorithm: AlgorithmIdentifier, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
4
|
+
static sha256Hex(input: string): Promise<string>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CryptoUtil = void 0;
|
|
4
|
+
class CryptoUtil {
|
|
5
|
+
static async importRsaPrivatePemKey(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
|
+
static async importRsaPublicPemKey(pemString, algorithm, keyUsages) {
|
|
17
|
+
const base64 = pemString.replace(/(-----(BEGIN|END) PUBLIC KEY-----|\n|\r)/g, '').trim();
|
|
18
|
+
const binaryString = atob(base64);
|
|
19
|
+
const keyArrayBuffer = new ArrayBuffer(binaryString.length);
|
|
20
|
+
const keyArrayBufferView = new Uint8Array(keyArrayBuffer);
|
|
21
|
+
for (let i = 0; i < binaryString.length; i += 1) {
|
|
22
|
+
keyArrayBufferView[i] = binaryString.charCodeAt(i);
|
|
23
|
+
}
|
|
24
|
+
const importedKey = await crypto.subtle.importKey('spki', keyArrayBuffer, algorithm, true, keyUsages);
|
|
25
|
+
return importedKey;
|
|
26
|
+
}
|
|
27
|
+
static async sha256Hex(input) {
|
|
28
|
+
const encoder = new TextEncoder();
|
|
29
|
+
const data = encoder.encode(input);
|
|
30
|
+
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
|
|
31
|
+
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
32
|
+
return hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.CryptoUtil = CryptoUtil;
|
|
@@ -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;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface IEnum {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
}
|
|
4
4
|
export declare class EnumUtil {
|
|
5
|
-
static getEntries(inputEnum:
|
|
6
|
-
static
|
|
5
|
+
static getEntries(inputEnum: IEnum): Array<[string, any]>;
|
|
6
|
+
static isValidValue(inputEnum: IEnum, inputValue: any): boolean;
|
|
7
|
+
static isEqual(enum1: IEnum, enum2: IEnum): boolean;
|
|
7
8
|
}
|
package/dist/enum-util.class.js
CHANGED
|
@@ -12,6 +12,12 @@ class EnumUtil {
|
|
|
12
12
|
return [];
|
|
13
13
|
}
|
|
14
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
|
+
}
|
|
15
21
|
static isEqual(enum1, enum2) {
|
|
16
22
|
const entries1 = this.getEntries(enum1);
|
|
17
23
|
const entries2 = this.getEntries(enum2);
|
|
@@ -9,12 +9,17 @@ class HeaderUtil {
|
|
|
9
9
|
if (!headers || string_util_class_1.StringUtil.isFalsyString(name)) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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,12 @@
|
|
|
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
7
|
export * from './enum-util.class';
|
|
8
|
+
export * from './schema-util.class';
|
|
9
|
+
export * from './log-util.class';
|
|
10
|
+
export * from './crypto-util.class';
|
|
11
|
+
export * from './date-util.class';
|
|
12
|
+
export * from './url-util.class';
|
package/dist/index.js
CHANGED
|
@@ -15,8 +15,14 @@ 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
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);
|
|
27
|
+
__exportStar(require("./date-util.class"), exports);
|
|
28
|
+
__exportStar(require("./url-util.class"), exports);
|
|
@@ -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,650 @@
|
|
|
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.ZodDiscriminatedUnion<"type", [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
|
+
type: z.ZodLiteral<"condition">;
|
|
103
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
value: string;
|
|
106
|
+
type: "condition";
|
|
107
|
+
field: string;
|
|
108
|
+
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";
|
|
109
|
+
}, {
|
|
110
|
+
value: string;
|
|
111
|
+
type: "condition";
|
|
112
|
+
field: string;
|
|
113
|
+
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";
|
|
114
|
+
}>, z.ZodObject<{
|
|
115
|
+
literal: z.ZodString;
|
|
116
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
117
|
+
type: z.ZodLiteral<"literal">;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: "literal";
|
|
120
|
+
literal: string;
|
|
121
|
+
params?: any[] | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
type: "literal";
|
|
124
|
+
literal: string;
|
|
125
|
+
params?: any[] | undefined;
|
|
126
|
+
}>]>;
|
|
127
|
+
static readonly CONDITION_ONLY_WHERE_CLAUSE: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
128
|
+
field: z.ZodString;
|
|
129
|
+
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")[]]>;
|
|
130
|
+
type: z.ZodLiteral<"condition">;
|
|
131
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
value: string;
|
|
134
|
+
type: "condition";
|
|
135
|
+
field: string;
|
|
136
|
+
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";
|
|
137
|
+
}, {
|
|
138
|
+
value: string;
|
|
139
|
+
type: "condition";
|
|
140
|
+
field: string;
|
|
141
|
+
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";
|
|
142
|
+
}>, z.ZodObject<{
|
|
143
|
+
literal: z.ZodString;
|
|
144
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
145
|
+
type: z.ZodLiteral<"literal">;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
type: "literal";
|
|
148
|
+
literal: string;
|
|
149
|
+
params?: any[] | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
type: "literal";
|
|
152
|
+
literal: string;
|
|
153
|
+
params?: any[] | undefined;
|
|
154
|
+
}>]>, {
|
|
155
|
+
value: string;
|
|
156
|
+
type: "condition";
|
|
157
|
+
field: string;
|
|
158
|
+
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";
|
|
159
|
+
} | {
|
|
160
|
+
type: "literal";
|
|
161
|
+
literal: string;
|
|
162
|
+
params?: any[] | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
value: string;
|
|
165
|
+
type: "condition";
|
|
166
|
+
field: string;
|
|
167
|
+
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";
|
|
168
|
+
} | {
|
|
169
|
+
type: "literal";
|
|
170
|
+
literal: string;
|
|
171
|
+
params?: any[] | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
static readonly ORDER_ITEM: z.ZodObject<{
|
|
174
|
+
field: z.ZodString;
|
|
175
|
+
orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
field: string;
|
|
178
|
+
orientation: "ASC" | "DESC";
|
|
179
|
+
}, {
|
|
180
|
+
field: string;
|
|
181
|
+
orientation: "ASC" | "DESC";
|
|
182
|
+
}>;
|
|
183
|
+
static readonly PAGINATION_OPTIONS: z.ZodObject<{
|
|
184
|
+
createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
185
|
+
cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
186
|
+
lastCursor: z.ZodOptional<z.ZodString>;
|
|
187
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
order: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
+
field: z.ZodString;
|
|
190
|
+
orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
field: string;
|
|
193
|
+
orientation: "ASC" | "DESC";
|
|
194
|
+
}, {
|
|
195
|
+
field: string;
|
|
196
|
+
orientation: "ASC" | "DESC";
|
|
197
|
+
}>, "many">>;
|
|
198
|
+
where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
199
|
+
field: z.ZodString;
|
|
200
|
+
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")[]]>;
|
|
201
|
+
type: z.ZodLiteral<"condition">;
|
|
202
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
value: string;
|
|
205
|
+
type: "condition";
|
|
206
|
+
field: string;
|
|
207
|
+
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";
|
|
208
|
+
}, {
|
|
209
|
+
value: string;
|
|
210
|
+
type: "condition";
|
|
211
|
+
field: string;
|
|
212
|
+
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";
|
|
213
|
+
}>, z.ZodObject<{
|
|
214
|
+
literal: z.ZodString;
|
|
215
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
216
|
+
type: z.ZodLiteral<"literal">;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
type: "literal";
|
|
219
|
+
literal: string;
|
|
220
|
+
params?: any[] | undefined;
|
|
221
|
+
}, {
|
|
222
|
+
type: "literal";
|
|
223
|
+
literal: string;
|
|
224
|
+
params?: any[] | undefined;
|
|
225
|
+
}>]>, "many">, "many">>;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
createdAtField?: string | undefined;
|
|
228
|
+
cursorField?: string | undefined;
|
|
229
|
+
lastCursor?: string | undefined;
|
|
230
|
+
limit?: number | undefined;
|
|
231
|
+
order?: {
|
|
232
|
+
field: string;
|
|
233
|
+
orientation: "ASC" | "DESC";
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
where?: ({
|
|
236
|
+
value: string;
|
|
237
|
+
type: "condition";
|
|
238
|
+
field: string;
|
|
239
|
+
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";
|
|
240
|
+
} | {
|
|
241
|
+
type: "literal";
|
|
242
|
+
literal: string;
|
|
243
|
+
params?: any[] | undefined;
|
|
244
|
+
})[][] | undefined;
|
|
245
|
+
}, {
|
|
246
|
+
createdAtField?: string | undefined;
|
|
247
|
+
cursorField?: string | undefined;
|
|
248
|
+
lastCursor?: string | undefined;
|
|
249
|
+
limit?: number | undefined;
|
|
250
|
+
order?: {
|
|
251
|
+
field: string;
|
|
252
|
+
orientation: "ASC" | "DESC";
|
|
253
|
+
}[] | undefined;
|
|
254
|
+
where?: ({
|
|
255
|
+
value: string;
|
|
256
|
+
type: "condition";
|
|
257
|
+
field: string;
|
|
258
|
+
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";
|
|
259
|
+
} | {
|
|
260
|
+
type: "literal";
|
|
261
|
+
literal: string;
|
|
262
|
+
params?: any[] | undefined;
|
|
263
|
+
})[][] | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
static readonly FIND_ONE_OPTIONS: z.ZodObject<Omit<{
|
|
266
|
+
createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
267
|
+
cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
268
|
+
lastCursor: z.ZodOptional<z.ZodString>;
|
|
269
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
order: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
271
|
+
field: z.ZodString;
|
|
272
|
+
orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
field: string;
|
|
275
|
+
orientation: "ASC" | "DESC";
|
|
276
|
+
}, {
|
|
277
|
+
field: string;
|
|
278
|
+
orientation: "ASC" | "DESC";
|
|
279
|
+
}>, "many">>;
|
|
280
|
+
where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
281
|
+
field: z.ZodString;
|
|
282
|
+
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")[]]>;
|
|
283
|
+
type: z.ZodLiteral<"condition">;
|
|
284
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
value: string;
|
|
287
|
+
type: "condition";
|
|
288
|
+
field: string;
|
|
289
|
+
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";
|
|
290
|
+
}, {
|
|
291
|
+
value: string;
|
|
292
|
+
type: "condition";
|
|
293
|
+
field: string;
|
|
294
|
+
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";
|
|
295
|
+
}>, z.ZodObject<{
|
|
296
|
+
literal: z.ZodString;
|
|
297
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
298
|
+
type: z.ZodLiteral<"literal">;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
type: "literal";
|
|
301
|
+
literal: string;
|
|
302
|
+
params?: any[] | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
type: "literal";
|
|
305
|
+
literal: string;
|
|
306
|
+
params?: any[] | undefined;
|
|
307
|
+
}>]>, "many">, "many">>;
|
|
308
|
+
}, "lastCursor" | "limit">, "strip", z.ZodTypeAny, {
|
|
309
|
+
createdAtField?: string | undefined;
|
|
310
|
+
cursorField?: string | undefined;
|
|
311
|
+
order?: {
|
|
312
|
+
field: string;
|
|
313
|
+
orientation: "ASC" | "DESC";
|
|
314
|
+
}[] | undefined;
|
|
315
|
+
where?: ({
|
|
316
|
+
value: string;
|
|
317
|
+
type: "condition";
|
|
318
|
+
field: string;
|
|
319
|
+
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";
|
|
320
|
+
} | {
|
|
321
|
+
type: "literal";
|
|
322
|
+
literal: string;
|
|
323
|
+
params?: any[] | undefined;
|
|
324
|
+
})[][] | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
createdAtField?: string | undefined;
|
|
327
|
+
cursorField?: string | undefined;
|
|
328
|
+
order?: {
|
|
329
|
+
field: string;
|
|
330
|
+
orientation: "ASC" | "DESC";
|
|
331
|
+
}[] | undefined;
|
|
332
|
+
where?: ({
|
|
333
|
+
value: string;
|
|
334
|
+
type: "condition";
|
|
335
|
+
field: string;
|
|
336
|
+
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";
|
|
337
|
+
} | {
|
|
338
|
+
type: "literal";
|
|
339
|
+
literal: string;
|
|
340
|
+
params?: any[] | undefined;
|
|
341
|
+
})[][] | undefined;
|
|
342
|
+
}>;
|
|
343
|
+
static readonly PAGINATION_RESULT: z.ZodObject<{
|
|
344
|
+
hasNext: z.ZodBoolean;
|
|
345
|
+
nextCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
346
|
+
previousCursor: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
347
|
+
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
hasNext: boolean;
|
|
349
|
+
nextCursor: string | null;
|
|
350
|
+
previousCursor: string | null;
|
|
351
|
+
}, {
|
|
352
|
+
hasNext: boolean;
|
|
353
|
+
nextCursor: string | null;
|
|
354
|
+
previousCursor: string | null;
|
|
355
|
+
}>;
|
|
356
|
+
static readonly FILE: z.ZodObject<{
|
|
357
|
+
mimeType: z.ZodString;
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
progres: z.ZodNumber;
|
|
360
|
+
size: z.ZodNumber;
|
|
361
|
+
url: z.ZodString;
|
|
362
|
+
} & {
|
|
363
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
364
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
mimeType: string;
|
|
367
|
+
name: string;
|
|
368
|
+
progres: number;
|
|
369
|
+
size: number;
|
|
370
|
+
url: string;
|
|
371
|
+
createdAt?: string | null | undefined;
|
|
372
|
+
updatedAt?: string | null | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
mimeType: string;
|
|
375
|
+
name: string;
|
|
376
|
+
progres: number;
|
|
377
|
+
size: number;
|
|
378
|
+
url: string;
|
|
379
|
+
createdAt?: string | null | undefined;
|
|
380
|
+
updatedAt?: string | null | undefined;
|
|
381
|
+
}>;
|
|
382
|
+
static readonly CONDITION_ONLY_PAGINATION_OPTIONS: z.ZodObject<Omit<{
|
|
383
|
+
createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
384
|
+
cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
385
|
+
lastCursor: z.ZodOptional<z.ZodString>;
|
|
386
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
order: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
388
|
+
field: z.ZodString;
|
|
389
|
+
orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
|
|
390
|
+
}, "strip", z.ZodTypeAny, {
|
|
391
|
+
field: string;
|
|
392
|
+
orientation: "ASC" | "DESC";
|
|
393
|
+
}, {
|
|
394
|
+
field: string;
|
|
395
|
+
orientation: "ASC" | "DESC";
|
|
396
|
+
}>, "many">>;
|
|
397
|
+
where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
398
|
+
field: z.ZodString;
|
|
399
|
+
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")[]]>;
|
|
400
|
+
type: z.ZodLiteral<"condition">;
|
|
401
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
402
|
+
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
value: string;
|
|
404
|
+
type: "condition";
|
|
405
|
+
field: string;
|
|
406
|
+
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";
|
|
407
|
+
}, {
|
|
408
|
+
value: string;
|
|
409
|
+
type: "condition";
|
|
410
|
+
field: string;
|
|
411
|
+
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";
|
|
412
|
+
}>, z.ZodObject<{
|
|
413
|
+
literal: z.ZodString;
|
|
414
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
415
|
+
type: z.ZodLiteral<"literal">;
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
type: "literal";
|
|
418
|
+
literal: string;
|
|
419
|
+
params?: any[] | undefined;
|
|
420
|
+
}, {
|
|
421
|
+
type: "literal";
|
|
422
|
+
literal: string;
|
|
423
|
+
params?: any[] | undefined;
|
|
424
|
+
}>]>, "many">, "many">>;
|
|
425
|
+
}, "where"> & {
|
|
426
|
+
where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
427
|
+
field: z.ZodString;
|
|
428
|
+
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")[]]>;
|
|
429
|
+
type: z.ZodLiteral<"condition">;
|
|
430
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
|
432
|
+
value: string;
|
|
433
|
+
type: "condition";
|
|
434
|
+
field: string;
|
|
435
|
+
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";
|
|
436
|
+
}, {
|
|
437
|
+
value: string;
|
|
438
|
+
type: "condition";
|
|
439
|
+
field: string;
|
|
440
|
+
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";
|
|
441
|
+
}>, z.ZodObject<{
|
|
442
|
+
literal: z.ZodString;
|
|
443
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
444
|
+
type: z.ZodLiteral<"literal">;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
type: "literal";
|
|
447
|
+
literal: string;
|
|
448
|
+
params?: any[] | undefined;
|
|
449
|
+
}, {
|
|
450
|
+
type: "literal";
|
|
451
|
+
literal: string;
|
|
452
|
+
params?: any[] | undefined;
|
|
453
|
+
}>]>, {
|
|
454
|
+
value: string;
|
|
455
|
+
type: "condition";
|
|
456
|
+
field: string;
|
|
457
|
+
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";
|
|
458
|
+
} | {
|
|
459
|
+
type: "literal";
|
|
460
|
+
literal: string;
|
|
461
|
+
params?: any[] | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
value: string;
|
|
464
|
+
type: "condition";
|
|
465
|
+
field: string;
|
|
466
|
+
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";
|
|
467
|
+
} | {
|
|
468
|
+
type: "literal";
|
|
469
|
+
literal: string;
|
|
470
|
+
params?: any[] | undefined;
|
|
471
|
+
}>, "many">, "many">>;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
createdAtField?: string | undefined;
|
|
474
|
+
cursorField?: string | undefined;
|
|
475
|
+
lastCursor?: string | undefined;
|
|
476
|
+
limit?: number | undefined;
|
|
477
|
+
order?: {
|
|
478
|
+
field: string;
|
|
479
|
+
orientation: "ASC" | "DESC";
|
|
480
|
+
}[] | undefined;
|
|
481
|
+
where?: ({
|
|
482
|
+
value: string;
|
|
483
|
+
type: "condition";
|
|
484
|
+
field: string;
|
|
485
|
+
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";
|
|
486
|
+
} | {
|
|
487
|
+
type: "literal";
|
|
488
|
+
literal: string;
|
|
489
|
+
params?: any[] | undefined;
|
|
490
|
+
})[][] | undefined;
|
|
491
|
+
}, {
|
|
492
|
+
createdAtField?: string | undefined;
|
|
493
|
+
cursorField?: string | undefined;
|
|
494
|
+
lastCursor?: string | undefined;
|
|
495
|
+
limit?: number | undefined;
|
|
496
|
+
order?: {
|
|
497
|
+
field: string;
|
|
498
|
+
orientation: "ASC" | "DESC";
|
|
499
|
+
}[] | undefined;
|
|
500
|
+
where?: ({
|
|
501
|
+
value: string;
|
|
502
|
+
type: "condition";
|
|
503
|
+
field: string;
|
|
504
|
+
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";
|
|
505
|
+
} | {
|
|
506
|
+
type: "literal";
|
|
507
|
+
literal: string;
|
|
508
|
+
params?: any[] | undefined;
|
|
509
|
+
})[][] | undefined;
|
|
510
|
+
}>;
|
|
511
|
+
static readonly CONDITION_ONLY_FIND_ONE_OPTIONS: z.ZodObject<Omit<Omit<{
|
|
512
|
+
createdAtField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
513
|
+
cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
|
|
514
|
+
lastCursor: z.ZodOptional<z.ZodString>;
|
|
515
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
order: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
517
|
+
field: z.ZodString;
|
|
518
|
+
orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
field: string;
|
|
521
|
+
orientation: "ASC" | "DESC";
|
|
522
|
+
}, {
|
|
523
|
+
field: string;
|
|
524
|
+
orientation: "ASC" | "DESC";
|
|
525
|
+
}>, "many">>;
|
|
526
|
+
where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
527
|
+
field: z.ZodString;
|
|
528
|
+
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")[]]>;
|
|
529
|
+
type: z.ZodLiteral<"condition">;
|
|
530
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
531
|
+
}, "strip", z.ZodTypeAny, {
|
|
532
|
+
value: string;
|
|
533
|
+
type: "condition";
|
|
534
|
+
field: string;
|
|
535
|
+
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";
|
|
536
|
+
}, {
|
|
537
|
+
value: string;
|
|
538
|
+
type: "condition";
|
|
539
|
+
field: string;
|
|
540
|
+
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";
|
|
541
|
+
}>, z.ZodObject<{
|
|
542
|
+
literal: z.ZodString;
|
|
543
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
544
|
+
type: z.ZodLiteral<"literal">;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
type: "literal";
|
|
547
|
+
literal: string;
|
|
548
|
+
params?: any[] | undefined;
|
|
549
|
+
}, {
|
|
550
|
+
type: "literal";
|
|
551
|
+
literal: string;
|
|
552
|
+
params?: any[] | undefined;
|
|
553
|
+
}>]>, "many">, "many">>;
|
|
554
|
+
}, "where"> & {
|
|
555
|
+
where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
556
|
+
field: z.ZodString;
|
|
557
|
+
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")[]]>;
|
|
558
|
+
type: z.ZodLiteral<"condition">;
|
|
559
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
560
|
+
}, "strip", z.ZodTypeAny, {
|
|
561
|
+
value: string;
|
|
562
|
+
type: "condition";
|
|
563
|
+
field: string;
|
|
564
|
+
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";
|
|
565
|
+
}, {
|
|
566
|
+
value: string;
|
|
567
|
+
type: "condition";
|
|
568
|
+
field: string;
|
|
569
|
+
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";
|
|
570
|
+
}>, z.ZodObject<{
|
|
571
|
+
literal: z.ZodString;
|
|
572
|
+
params: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
573
|
+
type: z.ZodLiteral<"literal">;
|
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
|
575
|
+
type: "literal";
|
|
576
|
+
literal: string;
|
|
577
|
+
params?: any[] | undefined;
|
|
578
|
+
}, {
|
|
579
|
+
type: "literal";
|
|
580
|
+
literal: string;
|
|
581
|
+
params?: any[] | undefined;
|
|
582
|
+
}>]>, {
|
|
583
|
+
value: string;
|
|
584
|
+
type: "condition";
|
|
585
|
+
field: string;
|
|
586
|
+
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";
|
|
587
|
+
} | {
|
|
588
|
+
type: "literal";
|
|
589
|
+
literal: string;
|
|
590
|
+
params?: any[] | undefined;
|
|
591
|
+
}, {
|
|
592
|
+
value: string;
|
|
593
|
+
type: "condition";
|
|
594
|
+
field: string;
|
|
595
|
+
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";
|
|
596
|
+
} | {
|
|
597
|
+
type: "literal";
|
|
598
|
+
literal: string;
|
|
599
|
+
params?: any[] | undefined;
|
|
600
|
+
}>, "many">, "many">>;
|
|
601
|
+
}, "lastCursor" | "limit">, "strip", z.ZodTypeAny, {
|
|
602
|
+
createdAtField?: string | undefined;
|
|
603
|
+
cursorField?: string | undefined;
|
|
604
|
+
order?: {
|
|
605
|
+
field: string;
|
|
606
|
+
orientation: "ASC" | "DESC";
|
|
607
|
+
}[] | undefined;
|
|
608
|
+
where?: ({
|
|
609
|
+
value: string;
|
|
610
|
+
type: "condition";
|
|
611
|
+
field: string;
|
|
612
|
+
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";
|
|
613
|
+
} | {
|
|
614
|
+
type: "literal";
|
|
615
|
+
literal: string;
|
|
616
|
+
params?: any[] | undefined;
|
|
617
|
+
})[][] | undefined;
|
|
618
|
+
}, {
|
|
619
|
+
createdAtField?: string | undefined;
|
|
620
|
+
cursorField?: string | undefined;
|
|
621
|
+
order?: {
|
|
622
|
+
field: string;
|
|
623
|
+
orientation: "ASC" | "DESC";
|
|
624
|
+
}[] | undefined;
|
|
625
|
+
where?: ({
|
|
626
|
+
value: string;
|
|
627
|
+
type: "condition";
|
|
628
|
+
field: string;
|
|
629
|
+
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";
|
|
630
|
+
} | {
|
|
631
|
+
type: "literal";
|
|
632
|
+
literal: string;
|
|
633
|
+
params?: any[] | undefined;
|
|
634
|
+
})[][] | undefined;
|
|
635
|
+
}>;
|
|
636
|
+
}
|
|
637
|
+
export declare namespace Schema {
|
|
638
|
+
type CommonResult = z.infer<typeof SchemaUtil.COMMON_RESULT>;
|
|
639
|
+
type File = z.infer<typeof SchemaUtil.FILE>;
|
|
640
|
+
type FindOneOptions = z.infer<typeof SchemaUtil.FIND_ONE_OPTIONS>;
|
|
641
|
+
type IDObject = z.infer<typeof SchemaUtil.ID_OBJECT>;
|
|
642
|
+
type LogLevel = z.infer<typeof SchemaUtil.LOG_LEVEL>;
|
|
643
|
+
type OrderItem = z.infer<typeof SchemaUtil.ORDER_ITEM>;
|
|
644
|
+
type OrderOrientation = z.infer<typeof SchemaUtil.ORDER_ORIENTATION>;
|
|
645
|
+
type PaginationOptions = z.infer<typeof SchemaUtil.PAGINATION_OPTIONS>;
|
|
646
|
+
type PaginationResult = z.infer<typeof SchemaUtil.PAGINATION_RESULT>;
|
|
647
|
+
type TimeRecord = z.infer<typeof SchemaUtil.TIME_RECORD>;
|
|
648
|
+
type WhereClause = z.infer<typeof SchemaUtil.WHERE_CLAUSE>;
|
|
649
|
+
type WhereClauseOp = z.infer<typeof SchemaUtil.WHERE_CLAUSE_OP>;
|
|
650
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
const FIND_ONE_OPTIONS_OMIT_PARAMS = {
|
|
7
|
+
limit: true,
|
|
8
|
+
lastCursor: true,
|
|
9
|
+
};
|
|
10
|
+
var Enum;
|
|
11
|
+
(function (Enum) {
|
|
12
|
+
Enum.OrderOrientation = {
|
|
13
|
+
ASC: 'ASC',
|
|
14
|
+
DESC: 'DESC',
|
|
15
|
+
};
|
|
16
|
+
Enum.WhereClauseOp = {
|
|
17
|
+
ADJACENT: 'adjacent',
|
|
18
|
+
ANY: 'any',
|
|
19
|
+
BETWEEN: 'between',
|
|
20
|
+
COL: 'col',
|
|
21
|
+
CONTAINED: 'contained',
|
|
22
|
+
CONTAINS: 'contains',
|
|
23
|
+
ENDS_WITH: 'endsWith',
|
|
24
|
+
EQ: 'eq',
|
|
25
|
+
GT: 'gt',
|
|
26
|
+
GTE: 'gte',
|
|
27
|
+
I_LIKE: 'iLike',
|
|
28
|
+
IN: 'in',
|
|
29
|
+
I_REGEXP: 'iRegexp',
|
|
30
|
+
IS: 'is',
|
|
31
|
+
LIKE: 'like',
|
|
32
|
+
LT: 'lt',
|
|
33
|
+
LTE: 'lte',
|
|
34
|
+
MATCH: 'match',
|
|
35
|
+
NE: 'ne',
|
|
36
|
+
NO_EXTEND_LEFT: 'noExtendLeft',
|
|
37
|
+
NO_EXTEND_RIGHT: 'noExtendRight',
|
|
38
|
+
NOT: 'not',
|
|
39
|
+
NOT_BETWEEN: 'notBetween',
|
|
40
|
+
NOT_I_LIKE: 'notILike',
|
|
41
|
+
NOT_IN: 'notIn',
|
|
42
|
+
NOT_I_REGEXP: 'notIRegexp',
|
|
43
|
+
NOT_LIKE: 'notLike',
|
|
44
|
+
NOT_REGEXP: 'notRegexp',
|
|
45
|
+
OVERLAP: 'overlap',
|
|
46
|
+
PLACEHOLDER: 'placeholder',
|
|
47
|
+
REGEXP: 'regexp',
|
|
48
|
+
STARTS_WITH: 'startsWith',
|
|
49
|
+
STRICT_LEFT: 'strictLeft',
|
|
50
|
+
STRICT_RIGHT: 'strictRight',
|
|
51
|
+
SUBSTRING: 'substring',
|
|
52
|
+
VALUES: 'values',
|
|
53
|
+
};
|
|
54
|
+
Enum.LogLevel = {
|
|
55
|
+
ERROR: 'error',
|
|
56
|
+
WARN: 'warn',
|
|
57
|
+
INFO: 'info',
|
|
58
|
+
VERBOSE: 'verbose',
|
|
59
|
+
DEBUG: 'debug',
|
|
60
|
+
};
|
|
61
|
+
})(Enum || (exports.Enum = Enum = {}));
|
|
62
|
+
class SchemaUtil {
|
|
63
|
+
static createEnumSchema(object) {
|
|
64
|
+
return zod_1.z.enum(Object.values(object));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.SchemaUtil = SchemaUtil;
|
|
68
|
+
SchemaUtil.ID = zod_1.z.string().uuid();
|
|
69
|
+
SchemaUtil.ID_OBJECT = zod_1.z.object({
|
|
70
|
+
id: SchemaUtil.ID,
|
|
71
|
+
});
|
|
72
|
+
SchemaUtil.JSON_STRING = zod_1.z.string().refine((value) => {
|
|
73
|
+
try {
|
|
74
|
+
JSON.parse(value);
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
catch (_a) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
SchemaUtil.DATE_STRING = zod_1.z.string().refine((value) => date_util_class_1.DateUtil.isValidDateString(value));
|
|
82
|
+
SchemaUtil.TIME_RECORD = zod_1.z.object({
|
|
83
|
+
createdAt: SchemaUtil.DATE_STRING.nullable().optional(),
|
|
84
|
+
updatedAt: SchemaUtil.DATE_STRING.nullable().optional(),
|
|
85
|
+
});
|
|
86
|
+
SchemaUtil.ORDER_ORIENTATION = SchemaUtil.createEnumSchema(Enum.OrderOrientation);
|
|
87
|
+
SchemaUtil.WHERE_CLAUSE_OP = SchemaUtil.createEnumSchema(Enum.WhereClauseOp);
|
|
88
|
+
SchemaUtil.LOG_LEVEL = SchemaUtil.createEnumSchema(Enum.LogLevel);
|
|
89
|
+
SchemaUtil.COMMON_RESULT = zod_1.z
|
|
90
|
+
.object({
|
|
91
|
+
succeeded: zod_1.z.boolean(),
|
|
92
|
+
content: zod_1.z.string().optional(),
|
|
93
|
+
})
|
|
94
|
+
.merge(SchemaUtil.ID_OBJECT.partial())
|
|
95
|
+
.merge(SchemaUtil.TIME_RECORD);
|
|
96
|
+
SchemaUtil.WHERE_CLAUSE = zod_1.z.discriminatedUnion('type', [
|
|
97
|
+
zod_1.z.object({
|
|
98
|
+
field: zod_1.z.string(),
|
|
99
|
+
op: SchemaUtil.WHERE_CLAUSE_OP,
|
|
100
|
+
type: zod_1.z.literal('condition'),
|
|
101
|
+
value: SchemaUtil.JSON_STRING,
|
|
102
|
+
}),
|
|
103
|
+
zod_1.z.object({
|
|
104
|
+
literal: zod_1.z.string().min(1),
|
|
105
|
+
params: zod_1.z.array(zod_1.z.any()).optional(),
|
|
106
|
+
type: zod_1.z.literal('literal'),
|
|
107
|
+
}),
|
|
108
|
+
]);
|
|
109
|
+
SchemaUtil.CONDITION_ONLY_WHERE_CLAUSE = SchemaUtil.WHERE_CLAUSE.superRefine((value, context) => {
|
|
110
|
+
if ((value === null || value === void 0 ? void 0 : value.type) === 'literal') {
|
|
111
|
+
context.addIssue({
|
|
112
|
+
code: 'custom',
|
|
113
|
+
message: 'Literal where clause item is strictly forbidden for safety reasons',
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
SchemaUtil.ORDER_ITEM = zod_1.z.object({
|
|
118
|
+
field: zod_1.z.string(),
|
|
119
|
+
orientation: SchemaUtil.ORDER_ORIENTATION,
|
|
120
|
+
});
|
|
121
|
+
SchemaUtil.PAGINATION_OPTIONS = zod_1.z.object({
|
|
122
|
+
createdAtField: zod_1.z.union([zod_1.z.string().optional().default('createdAt'), zod_1.z.undefined()]),
|
|
123
|
+
cursorField: zod_1.z.union([zod_1.z.string().optional().default('id'), zod_1.z.undefined()]),
|
|
124
|
+
lastCursor: zod_1.z.string().optional(),
|
|
125
|
+
limit: zod_1.z.number().min(0).optional(),
|
|
126
|
+
order: zod_1.z.array(SchemaUtil.ORDER_ITEM).optional(),
|
|
127
|
+
where: zod_1.z.array(zod_1.z.array(SchemaUtil.WHERE_CLAUSE).min(1)).optional(),
|
|
128
|
+
});
|
|
129
|
+
SchemaUtil.FIND_ONE_OPTIONS = SchemaUtil.PAGINATION_OPTIONS.omit(FIND_ONE_OPTIONS_OMIT_PARAMS);
|
|
130
|
+
SchemaUtil.PAGINATION_RESULT = zod_1.z.object({
|
|
131
|
+
hasNext: zod_1.z.boolean(),
|
|
132
|
+
nextCursor: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
|
|
133
|
+
previousCursor: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
|
|
134
|
+
});
|
|
135
|
+
SchemaUtil.FILE = zod_1.z
|
|
136
|
+
.object({
|
|
137
|
+
mimeType: zod_1.z.string(),
|
|
138
|
+
name: zod_1.z.string(),
|
|
139
|
+
progres: zod_1.z.number().min(0).max(1),
|
|
140
|
+
size: zod_1.z.number().min(0),
|
|
141
|
+
url: zod_1.z.string(),
|
|
142
|
+
})
|
|
143
|
+
.merge(SchemaUtil.TIME_RECORD);
|
|
144
|
+
SchemaUtil.CONDITION_ONLY_PAGINATION_OPTIONS = SchemaUtil.PAGINATION_OPTIONS.omit({
|
|
145
|
+
where: true,
|
|
146
|
+
}).extend({ where: zod_1.z.array(zod_1.z.array(SchemaUtil.CONDITION_ONLY_WHERE_CLAUSE).min(1)).optional() });
|
|
147
|
+
SchemaUtil.CONDITION_ONLY_FIND_ONE_OPTIONS = SchemaUtil.CONDITION_ONLY_PAGINATION_OPTIONS.omit(FIND_ONE_OPTIONS_OMIT_PARAMS);
|
|
@@ -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/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","../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":"d35f55376249d4c6135fd299b13e8fa27a21c19b80cee2c150d690f0e4b90457"},{"version":"1ee34aeb445a47e79761490a36beafd01ac08ba796210c7452c8704bcee45efc","signature":"83cb4f4b48f2a6dcc58276cfa8266babf57088946aa76356840b67116ebd09d9"},{"version":"c7ab28a88605d141d5b2e5d5bc3e65d13279945e4271e36b49ebe0121f018c1c","signature":"520561ea7df70ae5ec5699252dccbabc2c84219bf9581b4dbb7ddc1c92a35fe4"},{"version":"6d63edd6617c9ddf33f4aca2fde31cae6dfe70930178964bbf28d7207e21bc54","signature":"d813e8c87be51caa7afddd94642ae4edbced2b2e0b351c5e5116e270e33e869b"},{"version":"96b80d810190927f5232bd9c1021c7f9f07ca34e9bd173c292794049d67da621","signature":"d10b0cee405f198c5125d813dbfe49a5a265c6ede03f38ee3d1781a99dfdf2cb"},{"version":"2aa8f2e2306dcc4db2a8baa54be5960b22412113145413376660f287d6caaa8e","signature":"aad90a5a003c8756d6f2e56e15e5a6ead5f601ba1f0d50958f0960a91ab21613"},{"version":"51de8250c727f1446d2c49ecbae28a5c4b0bc09cbc26cbb488825ff854c52447","signature":"d6afe47645522dd88c7ae70694bc0317add95de9053baf10df9f5091f303d652"},"24d474787d05f5eaca0bbf714fc39b871f7c8d5132f127a012e8184c32a1df20",{"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,57]],"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":[[58,104],[61,104],[62,67,95,104],[63,74,75,82,92,103,104],[63,64,74,82,104],[65,104],[66,67,75,83,104],[67,92,100,104],[68,70,74,82,104],[69,104],[70,71,104],[74,104],[72,74,104],[74,75,76,92,103,104],[74,75,76,89,92,95,104],[104,108],[104],[70,77,82,92,103,104],[74,75,77,78,82,92,100,103,104],[77,79,92,100,103,104],[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,110],[74,80,104],[81,103,104],[70,74,82,92,104],[83,104],[84,104],[61,85,104],[86,102,104,108],[87,104],[88,104],[74,89,90,104],[89,91,104,106],[62,74,92,93,94,95,104],[62,92,94,104],[92,93,104],[95,104],[96,104],[74,98,99,104],[98,99,104],[67,82,92,100,104],[101,104],[82,102,104],[62,77,88,103,104],[67,104],[92,104,105],[104,106],[104,107],[62,67,74,76,85,92,103,104,106,108],[92,104,109],[52,104],[49,50,52,53,54,55,104],[51,104]],"referencedMap":[[58,1],[59,1],[61,2],[62,3],[63,4],[64,5],[65,6],[66,7],[67,8],[68,9],[69,10],[70,11],[71,11],[73,12],[72,13],[74,12],[75,14],[76,15],[60,16],[110,17],[77,18],[78,19],[79,20],[111,21],[80,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,31],[91,32],[92,33],[94,34],[93,35],[95,36],[96,37],[97,17],[98,38],[99,39],[100,40],[101,41],[102,42],[103,43],[104,44],[105,45],[106,46],[107,47],[108,48],[109,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],[50,17],[53,50],[56,51],[54,17],[52,52],[55,17],[51,17],[57,46]],"exportedModulesMap":[[58,1],[59,1],[61,2],[62,3],[63,4],[64,5],[65,6],[66,7],[67,8],[68,9],[69,10],[70,11],[71,11],[73,12],[72,13],[74,12],[75,14],[76,15],[60,16],[110,17],[77,18],[78,19],[79,20],[111,21],[80,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,31],[91,32],[92,33],[94,34],[93,35],[95,36],[96,37],[97,17],[98,38],[99,39],[100,40],[101,41],[102,42],[103,43],[104,44],[105,45],[106,46],[107,47],[108,48],[109,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":[58,59,61,62,63,64,65,66,67,68,69,70,71,73,72,74,75,76,60,110,77,78,79,111,80,81,82,83,84,85,86,87,88,89,90,91,92,94,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,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,50,53,56,54,52,55,51,57]},"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/url-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":"59a1c7aa5c90a54dcac10022106ac7cfa9df3c4decfba6762028c73b543f3a00","signature":"2af7a2d1602592af433ee83ea922bb34b7c912b358d48364fd9604a85b6c4a3e"},{"version":"1c0600bc9892d921e377122afab7a7b3b3db818258ad9d9a073e4c25624c85f5","signature":"68719b4c699acb840c70c0876c666ff21694b991a097f61491b24dff52505b38"},{"version":"b1aa2b97294eb8bb5889a04366e0cb17985ecc7be503998a7cbc49cb1717fb62","signature":"bd1797cea12cf2b77b6c33f9878275cb9cba24dbdea02172542e73b04c9a178a"},{"version":"d0023937078c15e5561f754f477682cf729f2aa9716edfd6f707f29d09a5a59e","signature":"520561ea7df70ae5ec5699252dccbabc2c84219bf9581b4dbb7ddc1c92a35fe4"},{"version":"93af058cefff266899e43bc3dd007ed9913ffd81db781a2d3472db0fad12894f","signature":"d02209027f680dc99be375f7e4302c823df6a683971c386ed4c1ffecf94623a2"},{"version":"a9bf6cb4ee8a67f7b07f6387e53b1bb1366f774552e5c9191426f898734178c2","signature":"6a03e2d74d9c0eb322272eb01b11619c0cb11fc4a870bc3a3fd99653915eac69"},{"version":"529bcbdf3e4050ce7120f4b4bdb4f6dea8cec1023e2f44adb92320c07496313c","signature":"6bdc4358f39bccdda5699cef84d8013eec5c3c698f9fb4c9e70f1274671223a7"},{"version":"47af4c2b5b599d7d88a1b535146ad13b94e6f9da117cef2df55dfc8be70b4e3a","signature":"d10b0cee405f198c5125d813dbfe49a5a265c6ede03f38ee3d1781a99dfdf2cb"},{"version":"2c9e359e95cc31743c8709cbc4078a287c87daf3e394464e19bfdb5e8b89b392","signature":"aad90a5a003c8756d6f2e56e15e5a6ead5f601ba1f0d50958f0960a91ab21613"},{"version":"71664097fc74f7280bee3b27a8ab9192eeb214c2e20ecd78da0f388d9cfe410b","signature":"d6afe47645522dd88c7ae70694bc0317add95de9053baf10df9f5091f303d652"},"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9",{"version":"0d3c4a591a0e8bb0000f7d0e6e9fbcd7644d0b88fc72401e7113e7435f53c343","signature":"f25ea2f1cb0e99a9f85fc8ef329cf1d97fefc5b625a786c03da5b16e02cde849"},{"version":"71c9417005641f6bcda240cf554cf90cde32f6de0851c79c90a1019d9c68c8b3","signature":"85dd70e31805c2f7218408c644e5f797797733b193207493c2258b97972cda58"},{"version":"ef508d9e2eb9e0851f1ed5c35d7f7ba3f4ccc6aa0075778d3baa07f9ad8c19ff","signature":"3c833a76c4f8aac46ee0791aab7e37db8492106eb55bdc732d8d0098c08db0c9"},"771f98d2ff3891cb52c4e153b7f1fa6f0b7743048c60b19de6a7f6989bea8b83",{"version":"71383592e35356655bea163e00c40e891468b181144d270617a9445f5e9a8398","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,77]],"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":[[78,124],[81,124],[82,87,115,124],[83,94,95,102,112,123,124],[83,84,94,102,124],[85,124],[86,87,95,103,124],[87,112,120,124],[88,90,94,102,124],[89,124],[90,91,124],[94,124],[92,94,124],[94,95,96,112,123,124],[94,95,96,109,112,115,124],[124,128],[124],[90,97,102,112,123,124],[94,95,97,98,102,112,120,123,124],[97,99,112,120,123,124],[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,130],[94,100,124],[101,123,124],[90,94,102,112,124],[103,124],[104,124],[81,105,124],[106,122,124,128],[107,124],[108,124],[94,109,110,124],[109,111,124,126],[82,94,112,113,114,115,124],[82,112,114,124],[112,113,124],[115,124],[116,124],[94,118,119,124],[118,119,124],[87,102,112,120,124],[121,124],[102,122,124],[82,97,108,123,124],[87,124],[112,124,125],[124,126],[124,127],[82,87,94,96,105,112,123,124,126,128],[112,124,129],[71,124],[59,60,61,124],[62,63,124],[59,60,62,64,65,70,124],[60,62,124],[70,124],[62,124],[59,60,62,65,66,67,68,69,124],[53,124],[49,50,51,53,54,55,56,57,58,73,74,75,124],[73,124],[54,72,124],[52,124],[51,124],[73],[72]],"referencedMap":[[78,1],[79,1],[81,2],[82,3],[83,4],[84,5],[85,6],[86,7],[87,8],[88,9],[89,10],[90,11],[91,11],[93,12],[92,13],[94,12],[95,14],[96,15],[80,16],[130,17],[97,18],[98,19],[99,20],[131,21],[100,22],[101,23],[102,24],[103,25],[104,26],[105,27],[106,28],[107,29],[108,30],[109,31],[110,31],[111,32],[112,33],[114,34],[113,35],[115,36],[116,37],[117,17],[118,38],[119,39],[120,40],[121,41],[122,42],[123,43],[124,44],[125,45],[126,46],[127,47],[128,48],[129,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],[76,59],[57,17],[74,60],[73,61],[53,62],[75,63],[58,17],[52,17],[77,46]],"exportedModulesMap":[[78,1],[79,1],[81,2],[82,3],[83,4],[84,5],[85,6],[86,7],[87,8],[88,9],[89,10],[90,11],[91,11],[93,12],[92,13],[94,12],[95,14],[96,15],[80,16],[130,17],[97,18],[98,19],[99,20],[131,21],[100,22],[101,23],[102,24],[103,25],[104,26],[105,27],[106,28],[107,29],[108,30],[109,31],[110,31],[111,32],[112,33],[114,34],[113,35],[115,36],[116,37],[117,17],[118,38],[119,39],[120,40],[121,41],[122,42],[123,43],[124,44],[125,45],[126,46],[127,47],[128,48],[129,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],[76,59],[74,64],[73,65]],"semanticDiagnosticsPerFile":[78,79,81,82,83,84,85,86,87,88,89,90,91,93,92,94,95,96,80,130,97,98,99,131,100,101,102,103,104,105,106,107,108,109,110,111,112,114,113,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,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,76,57,74,73,53,75,58,52,77]},"version":"5.1.6"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UrlUtil = void 0;
|
|
4
|
+
const crypto_util_class_1 = require("./crypto-util.class");
|
|
5
|
+
class UrlUtil {
|
|
6
|
+
static normalize(urlString) {
|
|
7
|
+
const url = new URL(urlString);
|
|
8
|
+
const searchParams = new URLSearchParams(url.search);
|
|
9
|
+
url.search = '';
|
|
10
|
+
const newSearchParams = new URLSearchParams();
|
|
11
|
+
const searchParamsEntries = Array.from(searchParams.entries());
|
|
12
|
+
const newSearchParamsEntries = searchParamsEntries
|
|
13
|
+
.map(([key]) => key)
|
|
14
|
+
.sort((a, b) => a.localeCompare(b))
|
|
15
|
+
.map((key) => [key, []]);
|
|
16
|
+
searchParamsEntries.forEach(([key, value]) => {
|
|
17
|
+
newSearchParamsEntries.find(([k]) => k === key)[1].push(value);
|
|
18
|
+
});
|
|
19
|
+
newSearchParamsEntries.forEach(([key, values]) => {
|
|
20
|
+
values.forEach((value) => {
|
|
21
|
+
newSearchParams.append(key, value);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
url.search = newSearchParams.toString();
|
|
25
|
+
return url.toString();
|
|
26
|
+
}
|
|
27
|
+
static async hash(urlString) {
|
|
28
|
+
return await crypto_util_class_1.CryptoUtil.sha256Hex(UrlUtil.normalize(urlString));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.UrlUtil = UrlUtil;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-norantec/utilities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-alpha.0",
|
|
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
|
}
|