@nosana/types 0.1.5 → 0.1.6
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/Jobs/JobDefinition/args/index.d.ts +3 -0
- package/dist/Jobs/JobDefinition/args/index.js +1 -0
- package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/args/private.d.ts +1 -0
- package/dist/Jobs/JobDefinition/args/private.js +2 -0
- package/dist/Jobs/JobDefinition/args/private.js.map +1 -0
- package/dist/Jobs/index.js +7 -3
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/job.js +3 -0
- package/dist/Schemas/job.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import type { Env } from "./env.js";
|
|
|
5
5
|
import type { Expose } from "./expose.js";
|
|
6
6
|
import type { GPU } from "./gpu.js";
|
|
7
7
|
import type { Image } from "./image.js";
|
|
8
|
+
import type { Private } from "./private.js";
|
|
8
9
|
import type { Resources } from "./resources.js";
|
|
9
10
|
import type { Volume } from "./volumes.js";
|
|
10
11
|
import type { WorkDir } from "./work_dir.js";
|
|
@@ -16,6 +17,7 @@ export * from "./expose.js";
|
|
|
16
17
|
export * from "./gpu.js";
|
|
17
18
|
export * from "./image.js";
|
|
18
19
|
export * from "./literals.js";
|
|
20
|
+
export * from "./private.js";
|
|
19
21
|
export * from "./resources.js";
|
|
20
22
|
export * from "./variables.js";
|
|
21
23
|
export * from "./volumes.js";
|
|
@@ -30,6 +32,7 @@ export interface ContainerRun {
|
|
|
30
32
|
work_dir?: WorkDir;
|
|
31
33
|
entrypoint?: CMDString | CMDArray;
|
|
32
34
|
env?: Env;
|
|
35
|
+
private?: Private;
|
|
33
36
|
resources?: Resources;
|
|
34
37
|
authentication?: Authentication;
|
|
35
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":"AAYA,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,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Private = boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/private.ts"],"names":[],"mappings":""}
|
package/dist/Jobs/index.js
CHANGED
|
@@ -114,8 +114,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
return true;
|
|
117
|
-
})() && input.expose.every((elem, _index6) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem)) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index7) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io7(input.env, true && _exceptionable)) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index8) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu2(elem, true && _exceptionable)))) && (undefined === input.authentication || "object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) && _io24(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
118
|
-
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "resources", "authentication"].some(prop => key === prop))
|
|
117
|
+
})() && input.expose.every((elem, _index6) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem)) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index7) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io7(input.env, true && _exceptionable)) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index8) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu2(elem, true && _exceptionable)))) && (undefined === input.authentication || "object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) && _io24(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
118
|
+
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "private", "resources", "authentication"].some(prop => key === prop))
|
|
119
119
|
return true;
|
|
120
120
|
const value = input[key];
|
|
121
121
|
if (undefined === value)
|
|
@@ -791,6 +791,10 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
791
791
|
path: _path + ".env",
|
|
792
792
|
expected: "(Env | undefined)",
|
|
793
793
|
value: input.env
|
|
794
|
+
}), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
|
|
795
|
+
path: _path + "[\"private\"]",
|
|
796
|
+
expected: "(boolean | undefined)",
|
|
797
|
+
value: input["private"]
|
|
794
798
|
}), undefined === input.resources || (Array.isArray(input.resources) || _report(_exceptionable, {
|
|
795
799
|
path: _path + ".resources",
|
|
796
800
|
expected: "(Resources | undefined)",
|
|
@@ -824,7 +828,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
824
828
|
expected: "(Authentication | undefined)",
|
|
825
829
|
value: input.authentication
|
|
826
830
|
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
827
|
-
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "resources", "authentication"].some(prop => key === prop))
|
|
831
|
+
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "private", "resources", "authentication"].some(prop => key === prop))
|
|
828
832
|
return true;
|
|
829
833
|
const value = input[key];
|
|
830
834
|
if (undefined === value)
|
package/dist/Jobs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Jobs/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAwB/B,MAAM,CAAC,MAAM,qBAAqB,yvBA7BD,EAAE;;;qBAGV,EAAE;;;;;IAIT,CAAC;;AACP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;04BARH,EAAG;;;;;;;;;;4CAgBJ,CAAE,SAAQ,CAAE;;;;;QA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