@nosana/types 2.2.13 → 2.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/Jobs/JobDefinition/args/index.d.ts +17 -0
  2. package/dist/Jobs/JobDefinition/args/index.d.ts.map +1 -1
  3. package/dist/Jobs/JobDefinition/args/index.js +2365 -0
  4. package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
  5. package/dist/Jobs/JobDefinition/execution/index.d.ts +3 -0
  6. package/dist/Jobs/JobDefinition/execution/index.d.ts.map +1 -1
  7. package/dist/Jobs/JobDefinition/execution/index.js +136 -1
  8. package/dist/Jobs/JobDefinition/execution/index.js.map +1 -1
  9. package/dist/Jobs/JobDefinition/global/index.d.ts +2 -0
  10. package/dist/Jobs/JobDefinition/global/index.d.ts.map +1 -1
  11. package/dist/Jobs/JobDefinition/global/index.js +127 -1
  12. package/dist/Jobs/JobDefinition/global/index.js.map +1 -1
  13. package/dist/Jobs/JobDefinition/logistics/index.d.ts +2 -0
  14. package/dist/Jobs/JobDefinition/logistics/index.d.ts.map +1 -1
  15. package/dist/Jobs/JobDefinition/logistics/index.js +133 -0
  16. package/dist/Jobs/JobDefinition/logistics/index.js.map +1 -1
  17. package/dist/Jobs/JobDefinition/meta/index.d.ts +2 -0
  18. package/dist/Jobs/JobDefinition/meta/index.d.ts.map +1 -1
  19. package/dist/Jobs/JobDefinition/meta/index.js +118 -1
  20. package/dist/Jobs/JobDefinition/meta/index.js.map +1 -1
  21. package/dist/Jobs/JobDefinition/operations/index.d.ts +13 -2
  22. package/dist/Jobs/JobDefinition/operations/index.d.ts.map +1 -1
  23. package/dist/Jobs/JobDefinition/operations/index.js +2663 -2
  24. package/dist/Jobs/JobDefinition/operations/index.js.map +1 -1
  25. package/dist/Jobs/JobDefinition/operations/rules.d.ts +11 -0
  26. package/dist/Jobs/JobDefinition/operations/rules.d.ts.map +1 -0
  27. package/dist/Jobs/JobDefinition/operations/rules.js +20 -0
  28. package/dist/Jobs/JobDefinition/operations/rules.js.map +1 -0
  29. package/dist/Jobs/index.d.ts +3 -19
  30. package/dist/Jobs/index.d.ts.map +1 -1
  31. package/dist/Jobs/index.js +16 -8
  32. package/dist/Jobs/index.js.map +1 -1
  33. package/dist/Schemas/job.js +10 -4
  34. package/dist/Schemas/job.js.map +1 -1
  35. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":"AAaA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAehD,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAsB9B,MAAM,CAAC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwC0B,CAAC;AAC7C,MAAM,CAAC,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type IValidation } from "typia";
1
2
  type GroupDependencies = {
2
3
  depends_on?: never;
3
4
  stop_if_dependent_stops?: never;
@@ -7,6 +8,8 @@ type GroupDependencies = {
7
8
  };
8
9
  export type Execution = {
9
10
  group?: string;
11
+ timeout?: number;
10
12
  } & GroupDependencies;
13
+ export declare const validateExecution: (input: unknown) => IValidation<Execution>;
11
14
  export {};
12
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC,GACG;IACA,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAGJ,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC,GACG;IACA,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAGJ,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,iBAAiB,CAAA;AAErB,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,SAAS,CAChC,CAAC"}
@@ -1,2 +1,137 @@
1
- export {};
1
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
2
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
3
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
+ import typia from "typia";
5
+ export const validateExecution = (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (null !== input.depends_on && undefined === input.depends_on) && (null !== input.stop_if_dependent_stops && undefined === input.stop_if_dependent_stops) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
7
+ return true;
8
+ const value = input[key];
9
+ if (undefined === value)
10
+ return true;
11
+ return false;
12
+ })); const _io1 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
13
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
14
+ return true;
15
+ const value = input[key];
16
+ if (undefined === value)
17
+ return true;
18
+ return false;
19
+ })); const _iu0 = (input, _exceptionable = true) => (() => {
20
+ if (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index2) => "string" === typeof elem))
21
+ return _io1(input, true && _exceptionable);
22
+ else
23
+ return _io0(input, true && _exceptionable);
24
+ })(); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
25
+ path: _path + ".group",
26
+ expected: "(string | undefined)",
27
+ value: input.group
28
+ }), undefined === input.timeout || "number" === typeof input.timeout || _report(_exceptionable, {
29
+ path: _path + ".timeout",
30
+ expected: "(number | undefined)",
31
+ value: input.timeout
32
+ }), (null !== input.depends_on || _report(_exceptionable, {
33
+ path: _path + ".depends_on",
34
+ expected: "undefined",
35
+ value: input.depends_on
36
+ })) && (undefined === input.depends_on || _report(_exceptionable, {
37
+ path: _path + ".depends_on",
38
+ expected: "undefined",
39
+ value: input.depends_on
40
+ })), (null !== input.stop_if_dependent_stops || _report(_exceptionable, {
41
+ path: _path + ".stop_if_dependent_stops",
42
+ expected: "undefined",
43
+ value: input.stop_if_dependent_stops
44
+ })) && (undefined === input.stop_if_dependent_stops || _report(_exceptionable, {
45
+ path: _path + ".stop_if_dependent_stops",
46
+ expected: "undefined",
47
+ value: input.stop_if_dependent_stops
48
+ })), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
49
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
50
+ return true;
51
+ const value = input[key];
52
+ if (undefined === value)
53
+ return true;
54
+ return _report(_exceptionable, {
55
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
56
+ expected: "undefined",
57
+ value: value,
58
+ description: [
59
+ `The property \`${key}\` is not defined in the object type.`,
60
+ "",
61
+ "Please remove the property next time."
62
+ ].join("\n")
63
+ });
64
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
65
+ path: _path + ".group",
66
+ expected: "(string | undefined)",
67
+ value: input.group
68
+ }), undefined === input.timeout || "number" === typeof input.timeout || _report(_exceptionable, {
69
+ path: _path + ".timeout",
70
+ expected: "(number | undefined)",
71
+ value: input.timeout
72
+ }), (Array.isArray(input.depends_on) || _report(_exceptionable, {
73
+ path: _path + ".depends_on",
74
+ expected: "Array<string>",
75
+ value: input.depends_on
76
+ })) && input.depends_on.map((elem, _index3) => "string" === typeof elem || _report(_exceptionable, {
77
+ path: _path + ".depends_on[" + _index3 + "]",
78
+ expected: "string",
79
+ value: elem
80
+ })).every(flag => flag) || _report(_exceptionable, {
81
+ path: _path + ".depends_on",
82
+ expected: "Array<string>",
83
+ value: input.depends_on
84
+ }), undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops || _report(_exceptionable, {
85
+ path: _path + ".stop_if_dependent_stops",
86
+ expected: "(boolean | undefined)",
87
+ value: input.stop_if_dependent_stops
88
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
89
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
90
+ return true;
91
+ const value = input[key];
92
+ if (undefined === value)
93
+ return true;
94
+ return _report(_exceptionable, {
95
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
96
+ expected: "undefined",
97
+ value: value,
98
+ description: [
99
+ `The property \`${key}\` is not defined in the object type.`,
100
+ "",
101
+ "Please remove the property next time."
102
+ ].join("\n")
103
+ });
104
+ }).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
105
+ if (Array.isArray(input.depends_on) && input.depends_on.map((elem, _index4) => "string" === typeof elem).every(flag => flag))
106
+ return _vo1(input, _path, true && _exceptionable);
107
+ else
108
+ return _vo0(input, _path, true && _exceptionable);
109
+ })(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _iu0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
110
+ if (false === __is(input)) {
111
+ errors = [];
112
+ _report = __typia_transform__validateReport._validateReport(errors);
113
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
114
+ path: _path + "",
115
+ expected: "({ group?: string | undefined; timeout?: number | undefined; } & { depends_on: string[]; stop_if_dependent_stops?: boolean | undefined; } | { group?: string | undefined; timeout?: number | undefined; } & { depends_on?: undefined; stop_if_dependent_stops?: undefined; })",
116
+ value: input
117
+ })) && _vu0(input, _path + "", true) || _report(true, {
118
+ path: _path + "",
119
+ expected: "({ group?: string | undefined; timeout?: number | undefined; } & { depends_on: string[]; stop_if_dependent_stops?: boolean | undefined; } | { group?: string | undefined; timeout?: number | undefined; } & { depends_on?: undefined; stop_if_dependent_stops?: undefined; })",
120
+ value: input
121
+ }))(input, "$input", true);
122
+ const success = 0 === errors.length;
123
+ return success ? {
124
+ success,
125
+ data: input
126
+ } : {
127
+ success,
128
+ errors,
129
+ data: input
130
+ };
131
+ }
132
+ return {
133
+ success: true,
134
+ data: input
135
+ };
136
+ }); })();
2
137
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAiBhD,MAAM,CAAC,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type IValidation } from "typia";
1
2
  import type { CMDArray, CMDString, Env, GPU, Image, Variables, WorkDir } from "../args/index.js";
2
3
  export interface Global {
3
4
  image?: Image;
@@ -7,4 +8,5 @@ export interface Global {
7
8
  work_dir?: WorkDir;
8
9
  variables?: Variables;
9
10
  }
11
+ export declare const validateGlobal: (input: unknown) => IValidation<Global>;
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEjG,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEjG,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,MAAM,CAC7B,CAAC"}
@@ -1,2 +1,128 @@
1
- export {};
1
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
2
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
3
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
+ import typia from "typia";
5
+ export const validateGlobal = (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.image || "string" === typeof input.image) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index1) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io1(input.env, true && _exceptionable)) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && _io2(input.variables, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6
+ if (["image", "gpu", "entrypoint", "env", "work_dir", "variables"].some(prop => key === prop))
7
+ return true;
8
+ const value = input[key];
9
+ if (undefined === value)
10
+ return true;
11
+ return false;
12
+ })); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
13
+ const value = input[key];
14
+ if (undefined === value)
15
+ return true;
16
+ return "string" === typeof value;
17
+ }); const _io2 = (input, _exceptionable = true) => Object.keys(input).every(key => {
18
+ const value = input[key];
19
+ if (undefined === value)
20
+ return true;
21
+ return "string" === typeof value;
22
+ }); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
23
+ path: _path + ".image",
24
+ expected: "(string | undefined)",
25
+ value: input.image
26
+ }), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
27
+ path: _path + ".gpu",
28
+ expected: "(boolean | undefined)",
29
+ value: input.gpu
30
+ }), (null !== input.entrypoint || _report(_exceptionable, {
31
+ path: _path + ".entrypoint",
32
+ expected: "(CMDArray | string | undefined)",
33
+ value: input.entrypoint
34
+ })) && (undefined === input.entrypoint || "string" === typeof input.entrypoint || (Array.isArray(input.entrypoint) || _report(_exceptionable, {
35
+ path: _path + ".entrypoint",
36
+ expected: "(CMDArray | string | undefined)",
37
+ value: input.entrypoint
38
+ })) && input.entrypoint.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
39
+ path: _path + ".entrypoint[" + _index2 + "]",
40
+ expected: "string",
41
+ value: elem
42
+ })).every(flag => flag) || _report(_exceptionable, {
43
+ path: _path + ".entrypoint",
44
+ expected: "(CMDArray | string | undefined)",
45
+ value: input.entrypoint
46
+ })), undefined === input.env || ("object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) || _report(_exceptionable, {
47
+ path: _path + ".env",
48
+ expected: "(Env | undefined)",
49
+ value: input.env
50
+ })) && _vo1(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
51
+ path: _path + ".env",
52
+ expected: "(Env | undefined)",
53
+ value: input.env
54
+ }), undefined === input.work_dir || "string" === typeof input.work_dir || _report(_exceptionable, {
55
+ path: _path + ".work_dir",
56
+ expected: "(string | undefined)",
57
+ value: input.work_dir
58
+ }), undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || _report(_exceptionable, {
59
+ path: _path + ".variables",
60
+ expected: "(Variables | undefined)",
61
+ value: input.variables
62
+ })) && _vo2(input.variables, _path + ".variables", true && _exceptionable) || _report(_exceptionable, {
63
+ path: _path + ".variables",
64
+ expected: "(Variables | undefined)",
65
+ value: input.variables
66
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
67
+ if (["image", "gpu", "entrypoint", "env", "work_dir", "variables"].some(prop => key === prop))
68
+ return true;
69
+ const value = input[key];
70
+ if (undefined === value)
71
+ return true;
72
+ return _report(_exceptionable, {
73
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
74
+ expected: "undefined",
75
+ value: value,
76
+ description: [
77
+ `The property \`${key}\` is not defined in the object type.`,
78
+ "",
79
+ "Please remove the property next time."
80
+ ].join("\n")
81
+ });
82
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
83
+ const value = input[key];
84
+ if (undefined === value)
85
+ return true;
86
+ return "string" === typeof value || _report(_exceptionable, {
87
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
88
+ expected: "string",
89
+ value: value
90
+ });
91
+ }).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
92
+ const value = input[key];
93
+ if (undefined === value)
94
+ return true;
95
+ return "string" === typeof value || _report(_exceptionable, {
96
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
97
+ expected: "string",
98
+ value: value
99
+ });
100
+ }).every(flag => flag)].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
101
+ if (false === __is(input)) {
102
+ errors = [];
103
+ _report = __typia_transform__validateReport._validateReport(errors);
104
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
105
+ path: _path + "",
106
+ expected: "Global",
107
+ value: input
108
+ })) && _vo0(input, _path + "", true) || _report(true, {
109
+ path: _path + "",
110
+ expected: "Global",
111
+ value: input
112
+ }))(input, "$input", true);
113
+ const success = 0 === errors.length;
114
+ return success ? {
115
+ success,
116
+ data: input
117
+ } : {
118
+ success,
119
+ errors,
120
+ data: input
121
+ };
122
+ }
123
+ return {
124
+ success: true,
125
+ data: input
126
+ };
127
+ }); })();
2
128
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAYhD,MAAM,CAAC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type IValidation } from "typia";
1
2
  /**
2
3
  * api - we receive and send via an endpoint endpoint
3
4
  * api-listen - we create an endpoint to listen for incoming requests
@@ -18,5 +19,6 @@ export interface Logistics {
18
19
  send: Logistic;
19
20
  receive: Logistic;
20
21
  }
22
+ export declare const validateLogistics: (input: unknown) => IValidation<Logistics>;
21
23
  export {};
22
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAC1E,KAAK,YAAY,GAAG,OAAO,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,QAAQ,CAAC;CACnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAC1E,KAAK,YAAY,GAAG,OAAO,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,SAAS,CAChC,CAAC"}
@@ -1,3 +1,7 @@
1
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
2
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
3
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
+ import typia from "typia";
1
5
  /**
2
6
  * api - we receive and send via an endpoint endpoint
3
7
  * api-listen - we create an endpoint to listen for incoming requests
@@ -6,4 +10,133 @@ export const LogisticType = {
6
10
  API: 'api',
7
11
  API_LISTEN: 'api-listen',
8
12
  };
13
+ export const validateLogistics = (() => { const _io0 = (input, _exceptionable = true) => "object" === typeof input.send && null !== input.send && _io1(input.send, true && _exceptionable) && ("object" === typeof input.receive && null !== input.receive && _io1(input.receive, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
14
+ if (["send", "receive"].some(prop => key === prop))
15
+ return true;
16
+ const value = input[key];
17
+ if (undefined === value)
18
+ return true;
19
+ return false;
20
+ })); const _io1 = (input, _exceptionable = true) => ("api" === input.type || "api-listen" === input.type) && ("object" === typeof input.args && null !== input.args && false === Array.isArray(input.args) && _io2(input.args, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
21
+ if (["type", "args"].some(prop => key === prop))
22
+ return true;
23
+ const value = input[key];
24
+ if (undefined === value)
25
+ return true;
26
+ return false;
27
+ })); const _io2 = (input, _exceptionable = true) => (undefined === input.endpoint || "string" === typeof input.endpoint) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
28
+ if (["endpoint"].some(prop => key === prop))
29
+ return true;
30
+ const value = input[key];
31
+ if (undefined === value)
32
+ return true;
33
+ return false;
34
+ })); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.send && null !== input.send || _report(_exceptionable, {
35
+ path: _path + ".send",
36
+ expected: "Logistic",
37
+ value: input.send
38
+ })) && _vo1(input.send, _path + ".send", true && _exceptionable) || _report(_exceptionable, {
39
+ path: _path + ".send",
40
+ expected: "Logistic",
41
+ value: input.send
42
+ }), ("object" === typeof input.receive && null !== input.receive || _report(_exceptionable, {
43
+ path: _path + ".receive",
44
+ expected: "Logistic",
45
+ value: input.receive
46
+ })) && _vo1(input.receive, _path + ".receive", true && _exceptionable) || _report(_exceptionable, {
47
+ path: _path + ".receive",
48
+ expected: "Logistic",
49
+ value: input.receive
50
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
51
+ if (["send", "receive"].some(prop => key === prop))
52
+ return true;
53
+ const value = input[key];
54
+ if (undefined === value)
55
+ return true;
56
+ return _report(_exceptionable, {
57
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
58
+ expected: "undefined",
59
+ value: value,
60
+ description: [
61
+ `The property \`${key}\` is not defined in the object type.`,
62
+ "",
63
+ "Please remove the property next time."
64
+ ].join("\n")
65
+ });
66
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["api" === input.type || "api-listen" === input.type || _report(_exceptionable, {
67
+ path: _path + ".type",
68
+ expected: "(\"api\" | \"api-listen\")",
69
+ value: input.type
70
+ }), ("object" === typeof input.args && null !== input.args && false === Array.isArray(input.args) || _report(_exceptionable, {
71
+ path: _path + ".args",
72
+ expected: "Partial<__type>",
73
+ value: input.args
74
+ })) && _vo2(input.args, _path + ".args", true && _exceptionable) || _report(_exceptionable, {
75
+ path: _path + ".args",
76
+ expected: "Partial<__type>",
77
+ value: input.args
78
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
79
+ if (["type", "args"].some(prop => key === prop))
80
+ return true;
81
+ const value = input[key];
82
+ if (undefined === value)
83
+ return true;
84
+ return _report(_exceptionable, {
85
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
86
+ expected: "undefined",
87
+ value: value,
88
+ description: [
89
+ `The property \`${key}\` is not defined in the object type.`,
90
+ "",
91
+ "Please remove the property next time."
92
+ ].join("\n")
93
+ });
94
+ }).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.endpoint || "string" === typeof input.endpoint || _report(_exceptionable, {
95
+ path: _path + ".endpoint",
96
+ expected: "(string | undefined)",
97
+ value: input.endpoint
98
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
99
+ if (["endpoint"].some(prop => key === prop))
100
+ return true;
101
+ const value = input[key];
102
+ if (undefined === value)
103
+ return true;
104
+ return _report(_exceptionable, {
105
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
106
+ expected: "undefined",
107
+ value: value,
108
+ description: [
109
+ `The property \`${key}\` is not defined in the object type.`,
110
+ "",
111
+ "Please remove the property next time."
112
+ ].join("\n")
113
+ });
114
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
115
+ if (false === __is(input)) {
116
+ errors = [];
117
+ _report = __typia_transform__validateReport._validateReport(errors);
118
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
119
+ path: _path + "",
120
+ expected: "Logistics",
121
+ value: input
122
+ })) && _vo0(input, _path + "", true) || _report(true, {
123
+ path: _path + "",
124
+ expected: "Logistics",
125
+ value: input
126
+ }))(input, "$input", true);
127
+ const success = 0 === errors.length;
128
+ return success ? {
129
+ success,
130
+ data: input
131
+ } : {
132
+ success,
133
+ errors,
134
+ data: input
135
+ };
136
+ }
137
+ return {
138
+ success: true,
139
+ data: input
140
+ };
141
+ }); })();
9
142
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;CAChB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;CAChB,CAAC;AAgBX,MAAM,CAAC,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -1,6 +1,8 @@
1
+ import { type IValidation } from "typia";
1
2
  export type Meta = {
2
3
  trigger?: string;
3
4
  system_resources?: Record<string, string | number>;
4
5
  [key: string]: string | number | Record<string, string | number | Array<string | number>> | Array<string | number> | undefined;
5
6
  };
7
+ export declare const validateMeta: (input: unknown) => IValidation<Meta>;
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,IAAI,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CAChI,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,MAAM,IAAI,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CAChI,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,IAAI,CAC3B,CAAC"}
@@ -1,2 +1,119 @@
1
- export {};
1
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
2
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
3
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
+ import typia from "typia";
5
+ export const validateMeta = (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.trigger || "string" === typeof input.trigger) && (undefined === input.system_resources || "object" === typeof input.system_resources && null !== input.system_resources && false === Array.isArray(input.system_resources) && _io1(input.system_resources, true && _exceptionable)) && Object.keys(input).every(key => {
6
+ if (["trigger", "system_resources"].some(prop => key === prop))
7
+ return true;
8
+ const value = input[key];
9
+ if (undefined === value)
10
+ return true;
11
+ return null !== value && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.every((elem, _index1) => "string" === typeof elem || "number" === typeof elem) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value, true && _exceptionable)));
12
+ }); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
13
+ const value = input[key];
14
+ if (undefined === value)
15
+ return true;
16
+ return "string" === typeof value || "number" === typeof value;
17
+ }); const _io2 = (input, _exceptionable = true) => Object.keys(input).every(key => {
18
+ const value = input[key];
19
+ if (undefined === value)
20
+ return true;
21
+ return null !== value && undefined !== value && ("string" === typeof value || "number" === typeof value || Array.isArray(value) && value.every((elem, _index2) => "string" === typeof elem || "number" === typeof elem));
22
+ }); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.trigger || "string" === typeof input.trigger || _report(_exceptionable, {
23
+ path: _path + ".trigger",
24
+ expected: "(string | undefined)",
25
+ value: input.trigger
26
+ }), undefined === input.system_resources || ("object" === typeof input.system_resources && null !== input.system_resources && false === Array.isArray(input.system_resources) || _report(_exceptionable, {
27
+ path: _path + ".system_resources",
28
+ expected: "(Record<string, string | number> | undefined)",
29
+ value: input.system_resources
30
+ })) && _vo1(input.system_resources, _path + ".system_resources", true && _exceptionable) || _report(_exceptionable, {
31
+ path: _path + ".system_resources",
32
+ expected: "(Record<string, string | number> | undefined)",
33
+ value: input.system_resources
34
+ }), false === _exceptionable || Object.keys(input).map(key => {
35
+ if (["trigger", "system_resources"].some(prop => key === prop))
36
+ return true;
37
+ const value = input[key];
38
+ if (undefined === value)
39
+ return true;
40
+ return (null !== value || _report(_exceptionable, {
41
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
42
+ expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
43
+ value: value
44
+ })) && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.map((elem, _index3) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
45
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index3 + "]",
46
+ expected: "(number | string)",
47
+ value: elem
48
+ })).every(flag => flag) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
49
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
50
+ expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
51
+ value: value
52
+ })) || _report(_exceptionable, {
53
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
54
+ expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
55
+ value: value
56
+ }));
57
+ }).every(flag => flag)].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
58
+ const value = input[key];
59
+ if (undefined === value)
60
+ return true;
61
+ return "string" === typeof value || "number" === typeof value || _report(_exceptionable, {
62
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
63
+ expected: "(number | string)",
64
+ value: value
65
+ });
66
+ }).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
67
+ const value = input[key];
68
+ if (undefined === value)
69
+ return true;
70
+ return (null !== value || _report(_exceptionable, {
71
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
72
+ expected: "(Array<string | number> | number | string)",
73
+ value: value
74
+ })) && (undefined !== value || _report(_exceptionable, {
75
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
76
+ expected: "(Array<string | number> | number | string)",
77
+ value: value
78
+ })) && ("string" === typeof value || "number" === typeof value || (Array.isArray(value) || _report(_exceptionable, {
79
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
80
+ expected: "(Array<string | number> | number | string)",
81
+ value: value
82
+ })) && value.map((elem, _index4) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
83
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index4 + "]",
84
+ expected: "(number | string)",
85
+ value: elem
86
+ })).every(flag => flag) || _report(_exceptionable, {
87
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
88
+ expected: "(Array<string | number> | number | string)",
89
+ value: value
90
+ }));
91
+ }).every(flag => flag)].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
92
+ if (false === __is(input)) {
93
+ errors = [];
94
+ _report = __typia_transform__validateReport._validateReport(errors);
95
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
96
+ path: _path + "",
97
+ expected: "Meta",
98
+ value: input
99
+ })) && _vo0(input, _path + "", true) || _report(true, {
100
+ path: _path + "",
101
+ expected: "Meta",
102
+ value: input
103
+ }))(input, "$input", true);
104
+ const success = 0 === errors.length;
105
+ return success ? {
106
+ success,
107
+ data: input
108
+ } : {
109
+ success,
110
+ errors,
111
+ data: input
112
+ };
113
+ }
114
+ return {
115
+ success: true,
116
+ data: input
117
+ };
118
+ }); })();
2
119
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAQhD,MAAM,CAAC,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}