@open-norantec/utilities 1.0.1-alpha.1 → 1.0.1-alpha.11

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.
@@ -0,0 +1,29 @@
1
+ import * as tsParser from '@typescript-eslint/parser';
2
+ import * as stylistic from '@stylistic/eslint-plugin';
3
+ export declare class ESLintUtil {
4
+ static create({ ignores, project }: {
5
+ ignores?: string[];
6
+ project?: string;
7
+ }): {
8
+ files: string[];
9
+ languageOptions: {
10
+ parser: typeof tsParser;
11
+ parserOptions: {
12
+ project: string;
13
+ tsconfigRootDir: string;
14
+ sourceType: string;
15
+ };
16
+ };
17
+ ignores: string[];
18
+ plugins: {
19
+ '@typescript-eslint': {
20
+ configs: Record<string, ClassicConfig.Config>;
21
+ meta: FlatConfig.PluginMeta;
22
+ rules: import("@typescript-eslint/eslint-plugin/rules").TypeScriptESLintRules;
23
+ };
24
+ '@stylistic': typeof stylistic;
25
+ prettier: ESLint.Plugin;
26
+ };
27
+ rules: any;
28
+ }[];
29
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESLintUtil = void 0;
4
+ const tsParser = require("@typescript-eslint/parser");
5
+ const tsPlugin = require("@typescript-eslint/eslint-plugin");
6
+ const stylistic = require("@stylistic/eslint-plugin");
7
+ const prettier = require("eslint-plugin-prettier");
8
+ class ESLintUtil {
9
+ static create({ ignores = [], project = './tsconfig.json' }) {
10
+ var _a, _b, _c, _d;
11
+ return [
12
+ {
13
+ files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.mts', '**/*.cts', '**/*.mjs', '**/*.cjs'],
14
+ languageOptions: {
15
+ parser: tsParser,
16
+ parserOptions: {
17
+ project,
18
+ tsconfigRootDir: process.cwd(),
19
+ sourceType: 'module',
20
+ },
21
+ },
22
+ ignores,
23
+ plugins: {
24
+ '@typescript-eslint': tsPlugin,
25
+ '@stylistic': stylistic,
26
+ prettier,
27
+ },
28
+ rules: Object.assign(Object.assign(Object.assign({}, (_b = (_a = tsPlugin === null || tsPlugin === void 0 ? void 0 : tsPlugin.configs) === null || _a === void 0 ? void 0 : _a.recommended) === null || _b === void 0 ? void 0 : _b.rules), (_d = (_c = prettier === null || prettier === void 0 ? void 0 : prettier.configs) === null || _c === void 0 ? void 0 : _c.recommended) === null || _d === void 0 ? void 0 : _d.rules), { 'prettier/prettier': [
29
+ 'error',
30
+ {
31
+ singleQuote: true,
32
+ trailingComma: 'all',
33
+ tabWidth: 2,
34
+ printWidth: 120,
35
+ },
36
+ {
37
+ usePrettierrc: false,
38
+ },
39
+ ], '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-empty-object-type': 'off', '@typescript-eslint/no-unsafe-function-type': 'off', '@typescript-eslint/no-namespace': 'off', '@stylistic/member-delimiter-style': [
40
+ 'error',
41
+ {
42
+ multiline: {
43
+ delimiter: 'semi',
44
+ requireLast: true,
45
+ },
46
+ singleline: {
47
+ delimiter: 'semi',
48
+ requireLast: false,
49
+ },
50
+ },
51
+ ], 'multiline-ternary': ['error', 'always-multiline'], 'object-curly-newline': ['error', { multiline: true, consistent: true }] }),
52
+ },
53
+ ];
54
+ }
55
+ }
56
+ exports.ESLintUtil = ESLintUtil;
@@ -1,4 +1,7 @@
1
1
  import { Schema } from './schema-util.class';
2
2
  export declare class LogUtil {
3
+ private readonly defaultLogLevel;
4
+ constructor(defaultLogLevel?: Schema.LogLevel);
3
5
  match(bottomLogLevel: Schema.LogLevel | boolean, logLevel: Schema.LogLevel): boolean;
6
+ log(level: Schema.LogLevel, message: string | Error): void;
4
7
  }
@@ -1,8 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LogUtil = void 0;
4
+ const string_util_class_1 = require("./string-util.class");
5
+ const colors_1 = require("colors");
4
6
  const LOG_LEVELS = ['debug', 'verbose', 'info', 'warn', 'error'];
5
7
  class LogUtil {
8
+ constructor(defaultLogLevel = 'info') {
9
+ this.defaultLogLevel = defaultLogLevel;
10
+ }
6
11
  match(bottomLogLevel, logLevel) {
7
12
  if (bottomLogLevel === false)
8
13
  return false;
@@ -10,5 +15,30 @@ class LogUtil {
10
15
  return true;
11
16
  return LOG_LEVELS.slice(LOG_LEVELS.findIndex((level) => level === bottomLogLevel)).includes(logLevel);
12
17
  }
18
+ log(level, message) {
19
+ var _a, _b, _c, _d;
20
+ const colorizer = (() => {
21
+ switch (level) {
22
+ case 'debug':
23
+ return colors_1.gray;
24
+ case 'verbose':
25
+ return colors_1.cyan;
26
+ case 'info':
27
+ return (text) => text;
28
+ case 'warn':
29
+ return colors_1.yellow;
30
+ case 'error':
31
+ return colors_1.red;
32
+ default:
33
+ return (text) => text;
34
+ }
35
+ })();
36
+ if (this.match(this.defaultLogLevel, level) === false)
37
+ return;
38
+ const finalExtraMessage = level === 'debug' || (this.defaultLogLevel === 'debug' && level === 'error')
39
+ ? (_d = (_c = (_b = (_a = (message instanceof Error ? message : new Error()).stack) === null || _a === void 0 ? void 0 : _a.split) === null || _b === void 0 ? void 0 : _b.call(_a, '\n')) === null || _c === void 0 ? void 0 : _c.slice(1)) === null || _d === void 0 ? void 0 : _d.join('\n')
40
+ : '';
41
+ console.log(colorizer(`[${new Date().toLocaleString()}] [${level.toUpperCase()}] ${message instanceof Error ? message.message : message}${string_util_class_1.StringUtil.isFalsyString(finalExtraMessage) ? '' : `\n${finalExtraMessage}`}`));
42
+ }
13
43
  }
14
44
  exports.LogUtil = LogUtil;
@@ -53,6 +53,14 @@ export declare namespace Enum {
53
53
  export declare class SchemaUtil {
54
54
  static createEnumSchema<const T extends Record<string, string>>(object: T): z.ZodEnum<[T[keyof T], ...T[keyof T][]]>;
55
55
  static readonly ID: z.ZodString;
56
+ static readonly ID_LIST: z.ZodArray<z.ZodString, "many">;
57
+ static readonly ID_LIST_OBJECT: z.ZodObject<{
58
+ idList: z.ZodArray<z.ZodString, "many">;
59
+ }, "strip", z.ZodTypeAny, {
60
+ idList: string[];
61
+ }, {
62
+ idList: string[];
63
+ }>;
56
64
  static readonly ID_OBJECT: z.ZodObject<{
57
65
  id: z.ZodString;
58
66
  }, "strip", z.ZodTypeAny, {
@@ -182,8 +190,34 @@ export declare class SchemaUtil {
182
190
  }>;
183
191
  static readonly PAGINATION_OPTIONS: z.ZodObject<{
184
192
  cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
193
+ cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
185
194
  lastCursor: z.ZodOptional<z.ZodString>;
186
195
  limit: z.ZodOptional<z.ZodNumber>;
196
+ search: z.ZodOptional<z.ZodObject<{
197
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
198
+ field: z.ZodString;
199
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ field: string;
202
+ ratio: number;
203
+ }, {
204
+ field: string;
205
+ ratio?: number | undefined;
206
+ }>]>, "many">;
207
+ value: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ value: string;
210
+ fields: (string | {
211
+ field: string;
212
+ ratio: number;
213
+ })[];
214
+ }, {
215
+ value: string;
216
+ fields: (string | {
217
+ field: string;
218
+ ratio?: number | undefined;
219
+ })[];
220
+ }>>;
187
221
  order: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
222
  field: z.ZodString;
189
223
  orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
@@ -195,6 +229,7 @@ export declare class SchemaUtil {
195
229
  orientation: "ASC" | "DESC";
196
230
  }>, "many">>;
197
231
  orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
232
+ orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
198
233
  where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
199
234
  field: z.ZodString;
200
235
  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")[]]>;
@@ -224,7 +259,15 @@ export declare class SchemaUtil {
224
259
  params?: any[] | undefined;
225
260
  }>]>, "many">, "many">>;
226
261
  }, "strip", z.ZodTypeAny, {
262
+ search?: {
263
+ value: string;
264
+ fields: (string | {
265
+ field: string;
266
+ ratio: number;
267
+ })[];
268
+ } | undefined;
227
269
  cursorField?: string | undefined;
270
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
228
271
  lastCursor?: string | undefined;
229
272
  limit?: number | undefined;
230
273
  order?: {
@@ -232,6 +275,7 @@ export declare class SchemaUtil {
232
275
  orientation: "ASC" | "DESC";
233
276
  }[] | undefined;
234
277
  orderField?: string | undefined;
278
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
235
279
  where?: ({
236
280
  value: string;
237
281
  type: "condition";
@@ -243,7 +287,15 @@ export declare class SchemaUtil {
243
287
  params?: any[] | undefined;
244
288
  })[][] | undefined;
245
289
  }, {
290
+ search?: {
291
+ value: string;
292
+ fields: (string | {
293
+ field: string;
294
+ ratio?: number | undefined;
295
+ })[];
296
+ } | undefined;
246
297
  cursorField?: string | undefined;
298
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
247
299
  lastCursor?: string | undefined;
248
300
  limit?: number | undefined;
249
301
  order?: {
@@ -251,6 +303,7 @@ export declare class SchemaUtil {
251
303
  orientation: "ASC" | "DESC";
252
304
  }[] | undefined;
253
305
  orderField?: string | undefined;
306
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
254
307
  where?: ({
255
308
  value: string;
256
309
  type: "condition";
@@ -264,8 +317,34 @@ export declare class SchemaUtil {
264
317
  }>;
265
318
  static readonly FIND_ONE_OPTIONS: z.ZodObject<Omit<{
266
319
  cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
320
+ cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
267
321
  lastCursor: z.ZodOptional<z.ZodString>;
268
322
  limit: z.ZodOptional<z.ZodNumber>;
323
+ search: z.ZodOptional<z.ZodObject<{
324
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
325
+ field: z.ZodString;
326
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ field: string;
329
+ ratio: number;
330
+ }, {
331
+ field: string;
332
+ ratio?: number | undefined;
333
+ }>]>, "many">;
334
+ value: z.ZodString;
335
+ }, "strip", z.ZodTypeAny, {
336
+ value: string;
337
+ fields: (string | {
338
+ field: string;
339
+ ratio: number;
340
+ })[];
341
+ }, {
342
+ value: string;
343
+ fields: (string | {
344
+ field: string;
345
+ ratio?: number | undefined;
346
+ })[];
347
+ }>>;
269
348
  order: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
349
  field: z.ZodString;
271
350
  orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
@@ -277,6 +356,7 @@ export declare class SchemaUtil {
277
356
  orientation: "ASC" | "DESC";
278
357
  }>, "many">>;
279
358
  orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
359
+ orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
280
360
  where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
281
361
  field: z.ZodString;
282
362
  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")[]]>;
@@ -306,12 +386,21 @@ export declare class SchemaUtil {
306
386
  params?: any[] | undefined;
307
387
  }>]>, "many">, "many">>;
308
388
  }, "lastCursor" | "limit">, "strip", z.ZodTypeAny, {
389
+ search?: {
390
+ value: string;
391
+ fields: (string | {
392
+ field: string;
393
+ ratio: number;
394
+ })[];
395
+ } | undefined;
309
396
  cursorField?: string | undefined;
397
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
310
398
  order?: {
311
399
  field: string;
312
400
  orientation: "ASC" | "DESC";
313
401
  }[] | undefined;
314
402
  orderField?: string | undefined;
403
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
315
404
  where?: ({
316
405
  value: string;
317
406
  type: "condition";
@@ -323,12 +412,21 @@ export declare class SchemaUtil {
323
412
  params?: any[] | undefined;
324
413
  })[][] | undefined;
325
414
  }, {
415
+ search?: {
416
+ value: string;
417
+ fields: (string | {
418
+ field: string;
419
+ ratio?: number | undefined;
420
+ })[];
421
+ } | undefined;
326
422
  cursorField?: string | undefined;
423
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
327
424
  order?: {
328
425
  field: string;
329
426
  orientation: "ASC" | "DESC";
330
427
  }[] | undefined;
331
428
  orderField?: string | undefined;
429
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
332
430
  where?: ({
333
431
  value: string;
334
432
  type: "condition";
@@ -381,8 +479,34 @@ export declare class SchemaUtil {
381
479
  }>;
382
480
  static readonly CONDITION_ONLY_PAGINATION_OPTIONS: z.ZodObject<Omit<{
383
481
  cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
482
+ cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
384
483
  lastCursor: z.ZodOptional<z.ZodString>;
385
484
  limit: z.ZodOptional<z.ZodNumber>;
485
+ search: z.ZodOptional<z.ZodObject<{
486
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
487
+ field: z.ZodString;
488
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ field: string;
491
+ ratio: number;
492
+ }, {
493
+ field: string;
494
+ ratio?: number | undefined;
495
+ }>]>, "many">;
496
+ value: z.ZodString;
497
+ }, "strip", z.ZodTypeAny, {
498
+ value: string;
499
+ fields: (string | {
500
+ field: string;
501
+ ratio: number;
502
+ })[];
503
+ }, {
504
+ value: string;
505
+ fields: (string | {
506
+ field: string;
507
+ ratio?: number | undefined;
508
+ })[];
509
+ }>>;
386
510
  order: z.ZodOptional<z.ZodArray<z.ZodObject<{
387
511
  field: z.ZodString;
388
512
  orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
@@ -394,6 +518,7 @@ export declare class SchemaUtil {
394
518
  orientation: "ASC" | "DESC";
395
519
  }>, "many">>;
396
520
  orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
521
+ orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
397
522
  where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
398
523
  field: z.ZodString;
399
524
  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")[]]>;
@@ -470,7 +595,15 @@ export declare class SchemaUtil {
470
595
  params?: any[] | undefined;
471
596
  }>, "many">, "many">>;
472
597
  }, "strip", z.ZodTypeAny, {
598
+ search?: {
599
+ value: string;
600
+ fields: (string | {
601
+ field: string;
602
+ ratio: number;
603
+ })[];
604
+ } | undefined;
473
605
  cursorField?: string | undefined;
606
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
474
607
  lastCursor?: string | undefined;
475
608
  limit?: number | undefined;
476
609
  order?: {
@@ -478,6 +611,7 @@ export declare class SchemaUtil {
478
611
  orientation: "ASC" | "DESC";
479
612
  }[] | undefined;
480
613
  orderField?: string | undefined;
614
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
481
615
  where?: ({
482
616
  value: string;
483
617
  type: "condition";
@@ -489,7 +623,15 @@ export declare class SchemaUtil {
489
623
  params?: any[] | undefined;
490
624
  })[][] | undefined;
491
625
  }, {
626
+ search?: {
627
+ value: string;
628
+ fields: (string | {
629
+ field: string;
630
+ ratio?: number | undefined;
631
+ })[];
632
+ } | undefined;
492
633
  cursorField?: string | undefined;
634
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
493
635
  lastCursor?: string | undefined;
494
636
  limit?: number | undefined;
495
637
  order?: {
@@ -497,6 +639,7 @@ export declare class SchemaUtil {
497
639
  orientation: "ASC" | "DESC";
498
640
  }[] | undefined;
499
641
  orderField?: string | undefined;
642
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
500
643
  where?: ({
501
644
  value: string;
502
645
  type: "condition";
@@ -510,8 +653,34 @@ export declare class SchemaUtil {
510
653
  }>;
511
654
  static readonly CONDITION_ONLY_FIND_ONE_OPTIONS: z.ZodObject<Omit<Omit<{
512
655
  cursorField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
656
+ cursorFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
513
657
  lastCursor: z.ZodOptional<z.ZodString>;
514
658
  limit: z.ZodOptional<z.ZodNumber>;
659
+ search: z.ZodOptional<z.ZodObject<{
660
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
661
+ field: z.ZodString;
662
+ ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ field: string;
665
+ ratio: number;
666
+ }, {
667
+ field: string;
668
+ ratio?: number | undefined;
669
+ }>]>, "many">;
670
+ value: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ value: string;
673
+ fields: (string | {
674
+ field: string;
675
+ ratio: number;
676
+ })[];
677
+ }, {
678
+ value: string;
679
+ fields: (string | {
680
+ field: string;
681
+ ratio?: number | undefined;
682
+ })[];
683
+ }>>;
515
684
  order: z.ZodOptional<z.ZodArray<z.ZodObject<{
516
685
  field: z.ZodString;
517
686
  orientation: z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>;
@@ -523,6 +692,7 @@ export declare class SchemaUtil {
523
692
  orientation: "ASC" | "DESC";
524
693
  }>, "many">>;
525
694
  orderField: z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUndefined]>;
695
+ orderFieldOrderOrientation: z.ZodUnion<[z.ZodDefault<z.ZodEnum<["ASC" | "DESC", ...("ASC" | "DESC")[]]>>, z.ZodUndefined]>;
526
696
  where: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
527
697
  field: z.ZodString;
528
698
  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")[]]>;
@@ -599,12 +769,21 @@ export declare class SchemaUtil {
599
769
  params?: any[] | undefined;
600
770
  }>, "many">, "many">>;
601
771
  }, "lastCursor" | "limit">, "strip", z.ZodTypeAny, {
772
+ search?: {
773
+ value: string;
774
+ fields: (string | {
775
+ field: string;
776
+ ratio: number;
777
+ })[];
778
+ } | undefined;
602
779
  cursorField?: string | undefined;
780
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
603
781
  order?: {
604
782
  field: string;
605
783
  orientation: "ASC" | "DESC";
606
784
  }[] | undefined;
607
785
  orderField?: string | undefined;
786
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
608
787
  where?: ({
609
788
  value: string;
610
789
  type: "condition";
@@ -616,12 +795,21 @@ export declare class SchemaUtil {
616
795
  params?: any[] | undefined;
617
796
  })[][] | undefined;
618
797
  }, {
798
+ search?: {
799
+ value: string;
800
+ fields: (string | {
801
+ field: string;
802
+ ratio?: number | undefined;
803
+ })[];
804
+ } | undefined;
619
805
  cursorField?: string | undefined;
806
+ cursorFieldOrderOrientation?: "ASC" | "DESC" | undefined;
620
807
  order?: {
621
808
  field: string;
622
809
  orientation: "ASC" | "DESC";
623
810
  }[] | undefined;
624
811
  orderField?: string | undefined;
812
+ orderFieldOrderOrientation?: "ASC" | "DESC" | undefined;
625
813
  where?: ({
626
814
  value: string;
627
815
  type: "condition";
@@ -66,6 +66,10 @@ class SchemaUtil {
66
66
  }
67
67
  exports.SchemaUtil = SchemaUtil;
68
68
  SchemaUtil.ID = zod_1.z.string().uuid();
69
+ SchemaUtil.ID_LIST = zod_1.z.array(SchemaUtil.ID).min(1);
70
+ SchemaUtil.ID_LIST_OBJECT = zod_1.z.object({
71
+ idList: SchemaUtil.ID_LIST,
72
+ });
69
73
  SchemaUtil.ID_OBJECT = zod_1.z.object({
70
74
  id: SchemaUtil.ID,
71
75
  });
@@ -120,10 +124,24 @@ SchemaUtil.ORDER_ITEM = zod_1.z.object({
120
124
  });
121
125
  SchemaUtil.PAGINATION_OPTIONS = zod_1.z.object({
122
126
  cursorField: zod_1.z.union([zod_1.z.string().optional().default('id'), zod_1.z.undefined()]),
127
+ cursorFieldOrderOrientation: zod_1.z.union([SchemaUtil.ORDER_ORIENTATION.default('DESC'), zod_1.z.undefined()]),
123
128
  lastCursor: zod_1.z.string().optional(),
124
129
  limit: zod_1.z.number().min(0).optional(),
130
+ search: zod_1.z
131
+ .object({
132
+ fields: zod_1.z.array(zod_1.z.union([
133
+ zod_1.z.string().min(1),
134
+ zod_1.z.object({
135
+ field: zod_1.z.string().min(1),
136
+ ratio: zod_1.z.number().min(-1).max(1).optional().default(1),
137
+ }),
138
+ ])),
139
+ value: zod_1.z.string().min(1),
140
+ })
141
+ .optional(),
125
142
  order: zod_1.z.array(SchemaUtil.ORDER_ITEM).optional(),
126
143
  orderField: zod_1.z.union([zod_1.z.string().optional().default('createdAt'), zod_1.z.undefined()]),
144
+ orderFieldOrderOrientation: zod_1.z.union([SchemaUtil.ORDER_ORIENTATION.default('DESC'), zod_1.z.undefined()]),
127
145
  where: zod_1.z.array(zod_1.z.array(SchemaUtil.WHERE_CLAUSE).min(1)).optional(),
128
146
  });
129
147
  SchemaUtil.FIND_ONE_OPTIONS = SchemaUtil.PAGINATION_OPTIONS.omit(FIND_ONE_OPTIONS_OMIT_PARAMS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/utilities",
3
- "version": "1.0.1-alpha.1",
3
+ "version": "1.0.1-alpha.11",
4
4
  "description": "NoranTec Utilities",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -30,21 +30,24 @@
30
30
  },
31
31
  "homepage": "https://github.com/norantec/utilities#readme",
32
32
  "devDependencies": {
33
- "@stylistic/eslint-plugin": "^2.12.1",
33
+ "@types/colors": "^1.1.3",
34
34
  "@types/node": "18.11.18",
35
- "@typescript-eslint/eslint-plugin": "^8.0.0",
36
- "@typescript-eslint/parser": "^8.0.0",
37
35
  "cross-env": "^7.0.3",
38
36
  "eslint": "^8.0.0",
39
- "eslint-config-prettier": "^9.0.0",
40
- "eslint-plugin-prettier": "^5.0.0",
41
- "prettier": "^3.0.0",
42
37
  "rimraf": "^6.0.1",
43
38
  "ts-node": "^10.0.0",
44
39
  "type-fest": "^4.37.0",
45
40
  "typescript": "~5.1.3"
46
41
  },
47
42
  "dependencies": {
43
+ "@stylistic/eslint-plugin": "^5.10.0",
44
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
45
+ "@typescript-eslint/parser": "^8.0.0",
46
+ "eslint-config-prettier": "^10.0.0",
47
+ "eslint-plugin-prettier": "^5.0.0",
48
+ "colors": "^1.4.0",
49
+ "prettier": "^3.0.0",
50
+ "uuid": "^11.1.0",
48
51
  "zod": "^3.25.67"
49
52
  }
50
53
  }
@@ -1 +0,0 @@
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":"213290d1ec6f7f76964bdf972a5619b33bda9d41f73aa2b31d074b6db261035c","signature":"c486b1d7f174d0307cb00c844d0285957d008f4059cbd852a23d6eb71adff97f"},{"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"}