@milaboratories/pl-model-backend 1.1.53 → 1.1.55
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/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/index.cjs +25 -21
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -3
- package/dist/serde.cjs +16 -20
- package/dist/serde.cjs.map +1 -1
- package/dist/serde.d.ts +8 -4
- package/dist/serde.js +14 -18
- package/dist/serde.js.map +1 -1
- package/dist/template_data_v2.d.ts +46 -43
- package/dist/template_data_v3.d.ts +50 -47
- package/dist/template_resources_v1.cjs +127 -121
- package/dist/template_resources_v1.cjs.map +1 -1
- package/dist/template_resources_v1.d.ts +64 -67
- package/dist/template_resources_v1.js +98 -116
- package/dist/template_resources_v1.js.map +1 -1
- package/package.json +6 -6
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/serde.d.ts.map +0 -1
- package/dist/template_data_v2.d.ts.map +0 -1
- package/dist/template_data_v3.d.ts.map +0 -1
- package/dist/template_resources_v1.d.ts.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
package/dist/index.cjs
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
'
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_serde = require('./serde.cjs');
|
|
3
|
+
const require_template_resources_v1 = require('./template_resources_v1.cjs');
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.parseTemplate = serde.parseTemplate;
|
|
9
|
-
exports.serializeTemplate = serde.serializeTemplate;
|
|
10
|
-
Object.defineProperty(exports, "PlTemplateLibV1", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return template_resources_v1.PlTemplateLibV1; }
|
|
5
|
+
Object.defineProperty(exports, 'PlTemplateLibV1', {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () {
|
|
8
|
+
return require_template_resources_v1.PlTemplateLibV1;
|
|
9
|
+
}
|
|
13
10
|
});
|
|
14
|
-
Object.defineProperty(exports,
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
Object.defineProperty(exports, 'PlTemplateOverrideV1', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return require_template_resources_v1.PlTemplateOverrideV1;
|
|
15
|
+
}
|
|
17
16
|
});
|
|
18
|
-
Object.defineProperty(exports,
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
Object.defineProperty(exports, 'PlTemplateSoftwareV1', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return require_template_resources_v1.PlTemplateSoftwareV1;
|
|
21
|
+
}
|
|
21
22
|
});
|
|
22
|
-
Object.defineProperty(exports,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
Object.defineProperty(exports, 'PlTemplateV1', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return require_template_resources_v1.PlTemplateV1;
|
|
27
|
+
}
|
|
25
28
|
});
|
|
26
|
-
|
|
29
|
+
exports.parseTemplate = require_serde.parseTemplate;
|
|
30
|
+
exports.serializeTemplate = require_serde.serializeTemplate;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData } from "./template_data_v2.js";
|
|
2
|
+
import { CompiledTemplateV3, TemplateAssetDataV3, TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3 } from "./template_data_v3.js";
|
|
3
|
+
import { parseTemplate, serializeTemplate } from "./serde.js";
|
|
4
|
+
import { PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1 } from "./template_resources_v1.js";
|
|
5
|
+
export { CompiledTemplateV3, PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1, TemplateAssetData, TemplateAssetDataV3, TemplateData, TemplateDataV3, TemplateLibData, TemplateLibDataV3, TemplateSoftwareData, TemplateSoftwareDataV3, parseTemplate, serializeTemplate };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { parseTemplate, serializeTemplate } from "./serde.js";
|
|
2
|
+
import { PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1 } from "./template_resources_v1.js";
|
|
3
|
+
|
|
4
|
+
export { PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1, parseTemplate, serializeTemplate };
|
package/dist/serde.cjs
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
+
let node_zlib = require("node:zlib");
|
|
3
|
+
let canonicalize = require("canonicalize");
|
|
4
|
+
canonicalize = require_runtime.__toESM(canonicalize);
|
|
5
|
+
let zod = require("zod");
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var zod = require('zod');
|
|
6
|
-
|
|
7
|
-
const TypeSchema = zod.z
|
|
8
|
-
.object({
|
|
9
|
-
type: zod.z.string(),
|
|
10
|
-
})
|
|
11
|
-
.passthrough();
|
|
7
|
+
//#region src/serde.ts
|
|
8
|
+
const TypeSchema = zod.z.object({ type: zod.z.string() }).passthrough();
|
|
12
9
|
const templateArchiveEncoder = new TextEncoder();
|
|
13
10
|
const templateArchiveDecoder = new TextDecoder();
|
|
14
11
|
function parseTemplate(content) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
return data;
|
|
12
|
+
const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode((0, node_zlib.gunzipSync)(content))));
|
|
13
|
+
if (data.type !== "pl.tengo-template.v2" && data.type !== "pl.tengo-template.v3") throw new Error("malformed template");
|
|
14
|
+
return data;
|
|
20
15
|
}
|
|
21
16
|
function serializeTemplate(data) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
return (0, node_zlib.gzipSync)(templateArchiveEncoder.encode((0, canonicalize.default)(data)), {
|
|
18
|
+
chunkSize: 256 * 1024,
|
|
19
|
+
level: 9
|
|
20
|
+
});
|
|
26
21
|
}
|
|
27
22
|
|
|
23
|
+
//#endregion
|
|
28
24
|
exports.parseTemplate = parseTemplate;
|
|
29
25
|
exports.serializeTemplate = serializeTemplate;
|
|
30
|
-
//# sourceMappingURL=serde.cjs.map
|
|
26
|
+
//# sourceMappingURL=serde.cjs.map
|
package/dist/serde.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serde.cjs","sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"
|
|
1
|
+
{"version":3,"file":"serde.cjs","names":["z"],"sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"mappings":";;;;;;;AAMA,MAAM,aAAaA,MAChB,OAAO,EACN,MAAMA,MAAE,QAAQ,EACjB,CAAC,CACD,aAAa;AAEhB,MAAM,yBAAyB,IAAI,aAAa;AAChD,MAAM,yBAAyB,IAAI,aAAa;AAEhD,SAAgB,cAAc,SAAwD;CACpF,MAAM,OAAO,WAAW,MAAM,KAAK,MAAM,uBAAuB,iCAAkB,QAAQ,CAAC,CAAC,CAAC;AAC7F,KAAI,KAAK,SAAS,0BAA0B,KAAK,SAAS,uBACxD,OAAM,IAAI,MAAM,qBAAqB;AAGvC,QAAO;;AAGT,SAAgB,kBAAkB,MAAqD;AACrF,gCAAgB,uBAAuB,iCAAoB,KAAK,CAAC,EAAE;EACjE,WAAW,MAAM;EACjB,OAAO;EACR,CAAC"}
|
package/dist/serde.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TemplateData } from "./template_data_v2.js";
|
|
2
|
+
import { CompiledTemplateV3 } from "./template_data_v3.js";
|
|
3
|
+
|
|
4
|
+
//#region src/serde.d.ts
|
|
5
|
+
declare function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3;
|
|
6
|
+
declare function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseTemplate, serializeTemplate };
|
|
5
9
|
//# sourceMappingURL=serde.d.ts.map
|
package/dist/serde.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import { gunzipSync, gzipSync } from
|
|
2
|
-
import canonicalize from
|
|
3
|
-
import { z } from
|
|
1
|
+
import { gunzipSync, gzipSync } from "node:zlib";
|
|
2
|
+
import canonicalize from "canonicalize";
|
|
3
|
+
import { z } from "zod";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type: z.string(),
|
|
8
|
-
})
|
|
9
|
-
.passthrough();
|
|
5
|
+
//#region src/serde.ts
|
|
6
|
+
const TypeSchema = z.object({ type: z.string() }).passthrough();
|
|
10
7
|
const templateArchiveEncoder = new TextEncoder();
|
|
11
8
|
const templateArchiveDecoder = new TextDecoder();
|
|
12
9
|
function parseTemplate(content) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return data;
|
|
10
|
+
const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));
|
|
11
|
+
if (data.type !== "pl.tengo-template.v2" && data.type !== "pl.tengo-template.v3") throw new Error("malformed template");
|
|
12
|
+
return data;
|
|
18
13
|
}
|
|
19
14
|
function serializeTemplate(data) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {
|
|
16
|
+
chunkSize: 256 * 1024,
|
|
17
|
+
level: 9
|
|
18
|
+
});
|
|
24
19
|
}
|
|
25
20
|
|
|
21
|
+
//#endregion
|
|
26
22
|
export { parseTemplate, serializeTemplate };
|
|
27
|
-
//# sourceMappingURL=serde.js.map
|
|
23
|
+
//# sourceMappingURL=serde.js.map
|
package/dist/serde.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serde.js","sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"
|
|
1
|
+
{"version":3,"file":"serde.js","names":[],"sources":["../src/serde.ts"],"sourcesContent":["import { gunzipSync, gzipSync } from \"node:zlib\";\nimport canonicalize from \"canonicalize\";\nimport type { TemplateData } from \"./template_data_v2\";\nimport type { CompiledTemplateV3 } from \"./template_data_v3\";\nimport { z } from \"zod\";\n\nconst TypeSchema = z\n .object({\n type: z.string(),\n })\n .passthrough();\n\nconst templateArchiveEncoder = new TextEncoder();\nconst templateArchiveDecoder = new TextDecoder();\n\nexport function parseTemplate(content: Uint8Array): TemplateData | CompiledTemplateV3 {\n const data = TypeSchema.parse(JSON.parse(templateArchiveDecoder.decode(gunzipSync(content))));\n if (data.type !== \"pl.tengo-template.v2\" && data.type !== \"pl.tengo-template.v3\") {\n throw new Error(\"malformed template\");\n }\n\n return data as unknown as TemplateData | CompiledTemplateV3;\n}\n\nexport function serializeTemplate(data: TemplateData | CompiledTemplateV3): Uint8Array {\n return gzipSync(templateArchiveEncoder.encode(canonicalize(data)), {\n chunkSize: 256 * 1024,\n level: 9,\n });\n}\n"],"mappings":";;;;;AAMA,MAAM,aAAa,EAChB,OAAO,EACN,MAAM,EAAE,QAAQ,EACjB,CAAC,CACD,aAAa;AAEhB,MAAM,yBAAyB,IAAI,aAAa;AAChD,MAAM,yBAAyB,IAAI,aAAa;AAEhD,SAAgB,cAAc,SAAwD;CACpF,MAAM,OAAO,WAAW,MAAM,KAAK,MAAM,uBAAuB,OAAO,WAAW,QAAQ,CAAC,CAAC,CAAC;AAC7F,KAAI,KAAK,SAAS,0BAA0B,KAAK,SAAS,uBACxD,OAAM,IAAI,MAAM,qBAAqB;AAGvC,QAAO;;AAGT,SAAgB,kBAAkB,MAAqD;AACrF,QAAO,SAAS,uBAAuB,OAAO,aAAa,KAAK,CAAC,EAAE;EACjE,WAAW,MAAM;EACjB,OAAO;EACR,CAAC"}
|
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/template_data_v2.d.ts
|
|
2
|
+
interface TemplateLibData {
|
|
3
|
+
/** i.e. @milaboratory/some-package:lib1 */
|
|
4
|
+
name: string;
|
|
5
|
+
/** i.e. 1.2.3 */
|
|
6
|
+
version: string;
|
|
7
|
+
/** full source code */
|
|
8
|
+
src: string;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
interface TemplateSoftwareData {
|
|
11
|
+
/** i.e. @milaboratory/mixcr:main */
|
|
12
|
+
name: string;
|
|
13
|
+
/** i.e. 4.2.3 */
|
|
14
|
+
version: string;
|
|
15
|
+
/** full contents of software dependency description */
|
|
16
|
+
src: string;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
interface TemplateAssetData {
|
|
19
|
+
/** i.e. @milaboratory/mixcr:main */
|
|
20
|
+
name: string;
|
|
21
|
+
/** i.e. 4.2.3 */
|
|
22
|
+
version: string;
|
|
23
|
+
/** full contents of asset dependency description */
|
|
24
|
+
src: string;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
interface TemplateData {
|
|
27
|
+
/** Discriminator for future use */
|
|
28
|
+
type: "pl.tengo-template.v2";
|
|
29
|
+
/** i.e. @milaboratory/some-package:template */
|
|
30
|
+
name: string;
|
|
31
|
+
/** i.e. 1.2.3 */
|
|
32
|
+
version: string;
|
|
33
|
+
/**
|
|
34
|
+
* Custom hash token of the template for deduplication purposes. Can be set with 'hash_override' compiler option.
|
|
35
|
+
* Dangerous! Remember: great power comes with great responsibility.
|
|
36
|
+
*/
|
|
37
|
+
hashOverride?: string;
|
|
38
|
+
/** i.e. @milaboratory/some-package:some-lib -> normalized library source code */
|
|
39
|
+
libs: Record<string, TemplateLibData>;
|
|
40
|
+
/** i.e. @milaboratory/some-package:some-lib -> to nested template data */
|
|
41
|
+
templates: Record<string, TemplateData>;
|
|
42
|
+
/** i.e. @milaboratory/mixcr:main -> software metadata */
|
|
43
|
+
software: Record<string, TemplateSoftwareData>;
|
|
44
|
+
/** i.e. @milaboratory/genome:human -> asset metadata */
|
|
45
|
+
assets: Record<string, TemplateAssetData>;
|
|
46
|
+
/** Template source code */
|
|
47
|
+
src: string;
|
|
47
48
|
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData };
|
|
48
51
|
//# sourceMappingURL=template_data_v2.d.ts.map
|
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/template_data_v3.d.ts
|
|
2
|
+
interface TemplateLibDataV3 {
|
|
3
|
+
/** i.e. @milaboratory/some-package:lib1 */
|
|
4
|
+
name: string;
|
|
5
|
+
/** i.e. 1.2.3 */
|
|
6
|
+
version: string;
|
|
7
|
+
/** hash of the source code */
|
|
8
|
+
sourceHash: string;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
interface TemplateSoftwareDataV3 {
|
|
11
|
+
/** i.e. @milaboratory/mixcr:main */
|
|
12
|
+
name: string;
|
|
13
|
+
/** i.e. 4.2.3 */
|
|
14
|
+
version: string;
|
|
15
|
+
/** hash of the source code */
|
|
16
|
+
sourceHash: string;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
interface TemplateAssetDataV3 {
|
|
19
|
+
/** i.e. @milaboratory/mixcr:main */
|
|
20
|
+
name: string;
|
|
21
|
+
/** i.e. 4.2.3 */
|
|
22
|
+
version: string;
|
|
23
|
+
/** hash of the full contents of asset dependency description */
|
|
24
|
+
sourceHash: string;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
interface TemplateDataV3 {
|
|
27
|
+
/** i.e. @milaboratory/some-package:template */
|
|
28
|
+
name: string;
|
|
29
|
+
/** i.e. 1.2.3 */
|
|
30
|
+
version: string;
|
|
31
|
+
/** Hash of the source from the `sources` field. */
|
|
32
|
+
sourceHash: string;
|
|
33
|
+
/**
|
|
34
|
+
* Custom hash token of the template for deduplication purposes. Can be set with 'hash_override' compiler option.
|
|
35
|
+
* Dangerous! Remember: great power comes with great responsibility.
|
|
36
|
+
*/
|
|
37
|
+
hashOverride?: string;
|
|
38
|
+
/** i.e. @milaboratory/some-package:some-lib -> the library source code */
|
|
39
|
+
libs: Record<string, TemplateLibDataV3>;
|
|
40
|
+
/** i.e. @milaboratory/some-package:some-template -> the nested template source code */
|
|
41
|
+
templates: Record<string, TemplateDataV3>;
|
|
42
|
+
/** i.e. @milaboratory/mixcr:main -> the software metadata */
|
|
43
|
+
software: Record<string, TemplateSoftwareDataV3>;
|
|
44
|
+
/** i.e. @milaboratory/genome:human -> the asset metadata */
|
|
45
|
+
assets: Record<string, TemplateAssetDataV3>;
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
interface CompiledTemplateV3 {
|
|
48
|
+
/** Discriminator for future use */
|
|
49
|
+
type: "pl.tengo-template.v3";
|
|
50
|
+
/** Hashes of all artifacts to sources itself. */
|
|
51
|
+
hashToSource: Record<string, string>;
|
|
52
|
+
template: TemplateDataV3;
|
|
52
53
|
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { CompiledTemplateV3, TemplateAssetDataV3, TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3 };
|
|
53
56
|
//# sourceMappingURL=template_data_v3.d.ts.map
|
|
@@ -1,123 +1,129 @@
|
|
|
1
|
-
|
|
1
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
+
let _milaboratories_pl_client = require("@milaboratories/pl-client");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/template_resources_v1.ts
|
|
5
|
+
let PlTemplateLibV1;
|
|
6
|
+
(function(_PlTemplateLibV) {
|
|
7
|
+
_PlTemplateLibV.type = (0, _milaboratories_pl_client.resourceType)("TengoLib", "1");
|
|
8
|
+
function fromV2Data(info) {
|
|
9
|
+
return { data: {
|
|
10
|
+
Name: info.name,
|
|
11
|
+
Version: info.version,
|
|
12
|
+
Code: Buffer.from(info.src, "utf8").toString("base64")
|
|
13
|
+
} };
|
|
14
|
+
}
|
|
15
|
+
_PlTemplateLibV.fromV2Data = fromV2Data;
|
|
16
|
+
function fromV3Data(info, sourceCode) {
|
|
17
|
+
return { data: {
|
|
18
|
+
Name: info.name,
|
|
19
|
+
Version: info.version,
|
|
20
|
+
Code: Buffer.from(sourceCode, "utf8").toString("base64")
|
|
21
|
+
} };
|
|
22
|
+
}
|
|
23
|
+
_PlTemplateLibV.fromV3Data = fromV3Data;
|
|
24
|
+
})(PlTemplateLibV1 || (PlTemplateLibV1 = {}));
|
|
25
|
+
let PlTemplateSoftwareV1;
|
|
26
|
+
(function(_PlTemplateSoftwareV) {
|
|
27
|
+
_PlTemplateSoftwareV.type = (0, _milaboratories_pl_client.resourceType)("SoftwareInfo", "1");
|
|
28
|
+
_PlTemplateSoftwareV.metaNameKey = "ctl/runner/package/name";
|
|
29
|
+
function fromV2Data(info) {
|
|
30
|
+
return {
|
|
31
|
+
data: info.src,
|
|
32
|
+
name: {
|
|
33
|
+
Name: info.name,
|
|
34
|
+
Version: info.version
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
_PlTemplateSoftwareV.fromV2Data = fromV2Data;
|
|
39
|
+
function fromV3Data(info, sourceCode) {
|
|
40
|
+
return {
|
|
41
|
+
data: sourceCode,
|
|
42
|
+
name: {
|
|
43
|
+
Name: info.name,
|
|
44
|
+
Version: info.version
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
_PlTemplateSoftwareV.fromV3Data = fromV3Data;
|
|
49
|
+
})(PlTemplateSoftwareV1 || (PlTemplateSoftwareV1 = {}));
|
|
50
|
+
let PlTemplateV1;
|
|
51
|
+
(function(_PlTemplateV) {
|
|
52
|
+
_PlTemplateV.type = (0, _milaboratories_pl_client.resourceType)("TengoTemplate", "1");
|
|
53
|
+
const libPrefix = _PlTemplateV.libPrefix = "lib";
|
|
54
|
+
const softPrefix = _PlTemplateV.softPrefix = "soft";
|
|
55
|
+
const tplPrefix = _PlTemplateV.tplPrefix = "tpl";
|
|
56
|
+
function libField(ref, libId) {
|
|
57
|
+
return (0, _milaboratories_pl_client.field)(ref, `${libPrefix}/${libId}`);
|
|
58
|
+
}
|
|
59
|
+
_PlTemplateV.libField = libField;
|
|
60
|
+
function tplField(ref, tplId) {
|
|
61
|
+
return (0, _milaboratories_pl_client.field)(ref, `${tplPrefix}/${tplId}`);
|
|
62
|
+
}
|
|
63
|
+
_PlTemplateV.tplField = tplField;
|
|
64
|
+
function swField(ref, softwareId) {
|
|
65
|
+
return (0, _milaboratories_pl_client.field)(ref, `${softPrefix}/${softwareId}`);
|
|
66
|
+
}
|
|
67
|
+
_PlTemplateV.swField = swField;
|
|
68
|
+
function fromV2Data(info) {
|
|
69
|
+
return { data: {
|
|
70
|
+
Name: info.name,
|
|
71
|
+
Version: info.version,
|
|
72
|
+
Code: Buffer.from(info.src, "utf8").toString("base64")
|
|
73
|
+
} };
|
|
74
|
+
}
|
|
75
|
+
_PlTemplateV.fromV2Data = fromV2Data;
|
|
76
|
+
function fromV3Data(info, sourceCode) {
|
|
77
|
+
return { data: {
|
|
78
|
+
Name: info.name,
|
|
79
|
+
Version: info.version,
|
|
80
|
+
Code: Buffer.from(sourceCode, "utf8").toString("base64")
|
|
81
|
+
} };
|
|
82
|
+
}
|
|
83
|
+
_PlTemplateV.fromV3Data = fromV3Data;
|
|
84
|
+
})(PlTemplateV1 || (PlTemplateV1 = {}));
|
|
85
|
+
let PlTemplateOverrideV1;
|
|
86
|
+
(function(_PlTemplateOverrideV) {
|
|
87
|
+
_PlTemplateOverrideV.type = (0, _milaboratories_pl_client.resourceType)("TengoTemplateOverride", "1");
|
|
88
|
+
function tplField(ref) {
|
|
89
|
+
return (0, _milaboratories_pl_client.field)(ref, "tpl");
|
|
90
|
+
}
|
|
91
|
+
_PlTemplateOverrideV.tplField = tplField;
|
|
92
|
+
function fromV2Data(info) {
|
|
93
|
+
if (!info.hashOverride) throw new Error(`template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`);
|
|
94
|
+
return { data: { OverrideUUID: info.hashOverride } };
|
|
95
|
+
}
|
|
96
|
+
_PlTemplateOverrideV.fromV2Data = fromV2Data;
|
|
97
|
+
function fromV3Data(info) {
|
|
98
|
+
if (!info.hashOverride) throw new Error(`template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`);
|
|
99
|
+
return { data: { OverrideUUID: info.hashOverride } };
|
|
100
|
+
}
|
|
101
|
+
_PlTemplateOverrideV.fromV3Data = fromV3Data;
|
|
102
|
+
})(PlTemplateOverrideV1 || (PlTemplateOverrideV1 = {}));
|
|
4
103
|
|
|
5
|
-
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
PlTemplateSoftwareV1.type = plClient.resourceType("SoftwareInfo", "1");
|
|
32
|
-
PlTemplateSoftwareV1.metaNameKey = "ctl/runner/package/name";
|
|
33
|
-
function fromV2Data(info) {
|
|
34
|
-
return {
|
|
35
|
-
data: info.src,
|
|
36
|
-
name: {
|
|
37
|
-
Name: info.name,
|
|
38
|
-
Version: info.version,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
PlTemplateSoftwareV1.fromV2Data = fromV2Data;
|
|
43
|
-
function fromV3Data(info, sourceCode) {
|
|
44
|
-
return {
|
|
45
|
-
data: sourceCode,
|
|
46
|
-
name: {
|
|
47
|
-
Name: info.name,
|
|
48
|
-
Version: info.version,
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
PlTemplateSoftwareV1.fromV3Data = fromV3Data;
|
|
53
|
-
})(exports.PlTemplateSoftwareV1 || (exports.PlTemplateSoftwareV1 = {}));
|
|
54
|
-
exports.PlTemplateV1 = void 0;
|
|
55
|
-
(function (PlTemplateV1) {
|
|
56
|
-
PlTemplateV1.type = plClient.resourceType("TengoTemplate", "1");
|
|
57
|
-
PlTemplateV1.libPrefix = "lib";
|
|
58
|
-
PlTemplateV1.softPrefix = "soft";
|
|
59
|
-
PlTemplateV1.tplPrefix = "tpl";
|
|
60
|
-
function libField(ref, libId) {
|
|
61
|
-
return plClient.field(ref, `${PlTemplateV1.libPrefix}/${libId}`);
|
|
62
|
-
}
|
|
63
|
-
PlTemplateV1.libField = libField;
|
|
64
|
-
function tplField(ref, tplId) {
|
|
65
|
-
return plClient.field(ref, `${PlTemplateV1.tplPrefix}/${tplId}`);
|
|
66
|
-
}
|
|
67
|
-
PlTemplateV1.tplField = tplField;
|
|
68
|
-
function swField(ref, softwareId) {
|
|
69
|
-
return plClient.field(ref, `${PlTemplateV1.softPrefix}/${softwareId}`);
|
|
70
|
-
}
|
|
71
|
-
PlTemplateV1.swField = swField;
|
|
72
|
-
function fromV2Data(info) {
|
|
73
|
-
return {
|
|
74
|
-
data: {
|
|
75
|
-
Name: info.name,
|
|
76
|
-
Version: info.version,
|
|
77
|
-
Code: Buffer.from(info.src, "utf8").toString("base64"),
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
PlTemplateV1.fromV2Data = fromV2Data;
|
|
82
|
-
function fromV3Data(info, sourceCode) {
|
|
83
|
-
return {
|
|
84
|
-
data: {
|
|
85
|
-
Name: info.name,
|
|
86
|
-
Version: info.version,
|
|
87
|
-
Code: Buffer.from(sourceCode, "utf8").toString("base64"),
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
PlTemplateV1.fromV3Data = fromV3Data;
|
|
92
|
-
})(exports.PlTemplateV1 || (exports.PlTemplateV1 = {}));
|
|
93
|
-
exports.PlTemplateOverrideV1 = void 0;
|
|
94
|
-
(function (PlTemplateOverrideV1) {
|
|
95
|
-
PlTemplateOverrideV1.type = plClient.resourceType("TengoTemplateOverride", "1");
|
|
96
|
-
function tplField(ref) {
|
|
97
|
-
return plClient.field(ref, "tpl");
|
|
98
|
-
}
|
|
99
|
-
PlTemplateOverrideV1.tplField = tplField;
|
|
100
|
-
function fromV2Data(info) {
|
|
101
|
-
if (!info.hashOverride) {
|
|
102
|
-
throw new Error(`template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`);
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
data: {
|
|
106
|
-
OverrideUUID: info.hashOverride,
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
PlTemplateOverrideV1.fromV2Data = fromV2Data;
|
|
111
|
-
function fromV3Data(info) {
|
|
112
|
-
if (!info.hashOverride) {
|
|
113
|
-
throw new Error(`template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`);
|
|
114
|
-
}
|
|
115
|
-
return {
|
|
116
|
-
data: {
|
|
117
|
-
OverrideUUID: info.hashOverride,
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
PlTemplateOverrideV1.fromV3Data = fromV3Data;
|
|
122
|
-
})(exports.PlTemplateOverrideV1 || (exports.PlTemplateOverrideV1 = {}));
|
|
123
|
-
//# sourceMappingURL=template_resources_v1.cjs.map
|
|
104
|
+
//#endregion
|
|
105
|
+
Object.defineProperty(exports, 'PlTemplateLibV1', {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () {
|
|
108
|
+
return PlTemplateLibV1;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, 'PlTemplateOverrideV1', {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () {
|
|
114
|
+
return PlTemplateOverrideV1;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, 'PlTemplateSoftwareV1', {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () {
|
|
120
|
+
return PlTemplateSoftwareV1;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, 'PlTemplateV1', {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () {
|
|
126
|
+
return PlTemplateV1;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
//# sourceMappingURL=template_resources_v1.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template_resources_v1.cjs","sources":["../src/template_resources_v1.ts"],"sourcesContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"template_resources_v1.cjs","names":[],"sources":["../src/template_resources_v1.ts"],"sourcesContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n}\n"],"mappings":";;;;AAIO;;oEAC4B,YAAY,IAAI;CAe1C,SAAS,WAAW,MAAiD;AAC1E,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,KAAK,KAAK,OAAO,CAAC,SAAS,SAAS;GACvD,EACF;;;CAGI,SAAS,WACd,MACA,YACmB;AACnB,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,YAAY,OAAO,CAAC,SAAS,SAAS;GACzD,EACF;;;6CAEJ;AAEM;;yEAC4B,gBAAgB,IAAI;oCAU1B;CAQpB,SAAS,WACd,MACmB;AACnB,SAAO;GACL,MAAM,KAAK;GACX,MAAM;IACJ,MAAM,KAAK;IACX,SAAS,KAAK;IACf;GACF;;;CAGI,SAAS,WACd,MACA,YACmB;AACnB,SAAO;GACL,MAAM;GACN,MAAM;IACJ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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { TemplateAssetData, TemplateData, TemplateLibData, TemplateSoftwareData } from "./template_data_v2.js";
|
|
2
|
+
import { TemplateDataV3, TemplateLibDataV3, TemplateSoftwareDataV3 } from "./template_data_v3.js";
|
|
3
|
+
import * as _milaboratories_pl_client0 from "@milaboratories/pl-client";
|
|
4
|
+
import { AnyFieldRef, AnyResourceRef } from "@milaboratories/pl-client";
|
|
5
|
+
|
|
6
|
+
//#region src/template_resources_v1.d.ts
|
|
7
|
+
declare namespace PlTemplateLibV1 {
|
|
8
|
+
const type: _milaboratories_pl_client0.ResourceType;
|
|
9
|
+
type ResourceStructure = {
|
|
10
|
+
data: Data;
|
|
11
|
+
};
|
|
12
|
+
type Data = {
|
|
13
|
+
/** i.e. @milaboratory/some-package:lib1 */Name: string; /** i.e. 1.2.3 */
|
|
14
|
+
Version: string; /** Full source code encoded with Base64 */
|
|
15
|
+
Code: string;
|
|
16
|
+
};
|
|
17
|
+
function fromV2Data(info: TemplateLibData): ResourceStructure;
|
|
18
|
+
function fromV3Data(info: TemplateLibDataV3, sourceCode: string): ResourceStructure;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
function fromV2Data(info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData): ResourceStructure;
|
|
36
|
-
function fromV3Data(info: infoV3.TemplateSoftwareDataV3, sourceCode: string): ResourceStructure;
|
|
20
|
+
declare namespace PlTemplateSoftwareV1 {
|
|
21
|
+
const type: _milaboratories_pl_client0.ResourceType;
|
|
22
|
+
type ResourceStructure = {
|
|
23
|
+
data: Data;
|
|
24
|
+
name: MetaName;
|
|
25
|
+
};
|
|
26
|
+
/** Raw entrypoint descriptor encoded with Base64 */
|
|
27
|
+
type Data = string;
|
|
28
|
+
const metaNameKey = "ctl/runner/package/name";
|
|
29
|
+
type MetaName = {
|
|
30
|
+
/** i.e. @milaboratory/some-package:sw1 */Name: string; /** i.e. 1.2.3 */
|
|
31
|
+
Version: string;
|
|
32
|
+
};
|
|
33
|
+
function fromV2Data(info: TemplateSoftwareData | TemplateAssetData): ResourceStructure;
|
|
34
|
+
function fromV3Data(info: TemplateSoftwareDataV3, sourceCode: string): ResourceStructure;
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
function fromV2Data(info: infoV2.TemplateData): ResourceStructure;
|
|
58
|
-
function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure;
|
|
36
|
+
declare namespace PlTemplateV1 {
|
|
37
|
+
const type: _milaboratories_pl_client0.ResourceType;
|
|
38
|
+
type ResourceStructure = {
|
|
39
|
+
data: Data;
|
|
40
|
+
};
|
|
41
|
+
const libPrefix = "lib";
|
|
42
|
+
const softPrefix = "soft";
|
|
43
|
+
const tplPrefix = "tpl";
|
|
44
|
+
function libField(ref: AnyResourceRef, libId: string): AnyFieldRef;
|
|
45
|
+
function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef;
|
|
46
|
+
function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef;
|
|
47
|
+
type Data = {
|
|
48
|
+
/** i.e. @milaboratory/some-package:tpl1 */Name: string; /** i.e. 1.2.3 */
|
|
49
|
+
Version: string; /** Full source code encoded with Base64 */
|
|
50
|
+
Code: string;
|
|
51
|
+
};
|
|
52
|
+
function fromV2Data(info: TemplateData): ResourceStructure;
|
|
53
|
+
function fromV3Data(info: TemplateDataV3, sourceCode: string): ResourceStructure;
|
|
59
54
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
declare namespace PlTemplateOverrideV1 {
|
|
56
|
+
const type: _milaboratories_pl_client0.ResourceType;
|
|
57
|
+
type ResourceStructure = {
|
|
58
|
+
data: Data;
|
|
59
|
+
};
|
|
60
|
+
function tplField(ref: AnyResourceRef): AnyFieldRef;
|
|
61
|
+
type Data = {
|
|
62
|
+
OverrideUUID: string;
|
|
63
|
+
};
|
|
64
|
+
function fromV2Data(info: TemplateData): ResourceStructure;
|
|
65
|
+
function fromV3Data(info: TemplateDataV3): ResourceStructure;
|
|
71
66
|
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1 };
|
|
72
69
|
//# sourceMappingURL=template_resources_v1.d.ts.map
|
|
@@ -1,123 +1,105 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { field, resourceType } from "@milaboratories/pl-client";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
PlTemplateLibV1.fromV3Data = fromV3Data;
|
|
3
|
+
//#region src/template_resources_v1.ts
|
|
4
|
+
let PlTemplateLibV1;
|
|
5
|
+
(function(_PlTemplateLibV) {
|
|
6
|
+
_PlTemplateLibV.type = resourceType("TengoLib", "1");
|
|
7
|
+
function fromV2Data(info) {
|
|
8
|
+
return { data: {
|
|
9
|
+
Name: info.name,
|
|
10
|
+
Version: info.version,
|
|
11
|
+
Code: Buffer.from(info.src, "utf8").toString("base64")
|
|
12
|
+
} };
|
|
13
|
+
}
|
|
14
|
+
_PlTemplateLibV.fromV2Data = fromV2Data;
|
|
15
|
+
function fromV3Data(info, sourceCode) {
|
|
16
|
+
return { data: {
|
|
17
|
+
Name: info.name,
|
|
18
|
+
Version: info.version,
|
|
19
|
+
Code: Buffer.from(sourceCode, "utf8").toString("base64")
|
|
20
|
+
} };
|
|
21
|
+
}
|
|
22
|
+
_PlTemplateLibV.fromV3Data = fromV3Data;
|
|
26
23
|
})(PlTemplateLibV1 || (PlTemplateLibV1 = {}));
|
|
27
|
-
|
|
28
|
-
(function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
24
|
+
let PlTemplateSoftwareV1;
|
|
25
|
+
(function(_PlTemplateSoftwareV) {
|
|
26
|
+
_PlTemplateSoftwareV.type = resourceType("SoftwareInfo", "1");
|
|
27
|
+
_PlTemplateSoftwareV.metaNameKey = "ctl/runner/package/name";
|
|
28
|
+
function fromV2Data(info) {
|
|
29
|
+
return {
|
|
30
|
+
data: info.src,
|
|
31
|
+
name: {
|
|
32
|
+
Name: info.name,
|
|
33
|
+
Version: info.version
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
_PlTemplateSoftwareV.fromV2Data = fromV2Data;
|
|
38
|
+
function fromV3Data(info, sourceCode) {
|
|
39
|
+
return {
|
|
40
|
+
data: sourceCode,
|
|
41
|
+
name: {
|
|
42
|
+
Name: info.name,
|
|
43
|
+
Version: info.version
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
_PlTemplateSoftwareV.fromV3Data = fromV3Data;
|
|
51
48
|
})(PlTemplateSoftwareV1 || (PlTemplateSoftwareV1 = {}));
|
|
52
|
-
|
|
53
|
-
(function
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
PlTemplateV1.fromV3Data = fromV3Data;
|
|
49
|
+
let PlTemplateV1;
|
|
50
|
+
(function(_PlTemplateV) {
|
|
51
|
+
_PlTemplateV.type = resourceType("TengoTemplate", "1");
|
|
52
|
+
const libPrefix = _PlTemplateV.libPrefix = "lib";
|
|
53
|
+
const softPrefix = _PlTemplateV.softPrefix = "soft";
|
|
54
|
+
const tplPrefix = _PlTemplateV.tplPrefix = "tpl";
|
|
55
|
+
function libField(ref, libId) {
|
|
56
|
+
return field(ref, `${libPrefix}/${libId}`);
|
|
57
|
+
}
|
|
58
|
+
_PlTemplateV.libField = libField;
|
|
59
|
+
function tplField(ref, tplId) {
|
|
60
|
+
return field(ref, `${tplPrefix}/${tplId}`);
|
|
61
|
+
}
|
|
62
|
+
_PlTemplateV.tplField = tplField;
|
|
63
|
+
function swField(ref, softwareId) {
|
|
64
|
+
return field(ref, `${softPrefix}/${softwareId}`);
|
|
65
|
+
}
|
|
66
|
+
_PlTemplateV.swField = swField;
|
|
67
|
+
function fromV2Data(info) {
|
|
68
|
+
return { data: {
|
|
69
|
+
Name: info.name,
|
|
70
|
+
Version: info.version,
|
|
71
|
+
Code: Buffer.from(info.src, "utf8").toString("base64")
|
|
72
|
+
} };
|
|
73
|
+
}
|
|
74
|
+
_PlTemplateV.fromV2Data = fromV2Data;
|
|
75
|
+
function fromV3Data(info, sourceCode) {
|
|
76
|
+
return { data: {
|
|
77
|
+
Name: info.name,
|
|
78
|
+
Version: info.version,
|
|
79
|
+
Code: Buffer.from(sourceCode, "utf8").toString("base64")
|
|
80
|
+
} };
|
|
81
|
+
}
|
|
82
|
+
_PlTemplateV.fromV3Data = fromV3Data;
|
|
90
83
|
})(PlTemplateV1 || (PlTemplateV1 = {}));
|
|
91
|
-
|
|
92
|
-
(function
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
PlTemplateOverrideV1.fromV2Data = fromV2Data;
|
|
109
|
-
function fromV3Data(info) {
|
|
110
|
-
if (!info.hashOverride) {
|
|
111
|
-
throw new Error(`template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`);
|
|
112
|
-
}
|
|
113
|
-
return {
|
|
114
|
-
data: {
|
|
115
|
-
OverrideUUID: info.hashOverride,
|
|
116
|
-
},
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
PlTemplateOverrideV1.fromV3Data = fromV3Data;
|
|
84
|
+
let PlTemplateOverrideV1;
|
|
85
|
+
(function(_PlTemplateOverrideV) {
|
|
86
|
+
_PlTemplateOverrideV.type = resourceType("TengoTemplateOverride", "1");
|
|
87
|
+
function tplField(ref) {
|
|
88
|
+
return field(ref, "tpl");
|
|
89
|
+
}
|
|
90
|
+
_PlTemplateOverrideV.tplField = tplField;
|
|
91
|
+
function fromV2Data(info) {
|
|
92
|
+
if (!info.hashOverride) throw new Error(`template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`);
|
|
93
|
+
return { data: { OverrideUUID: info.hashOverride } };
|
|
94
|
+
}
|
|
95
|
+
_PlTemplateOverrideV.fromV2Data = fromV2Data;
|
|
96
|
+
function fromV3Data(info) {
|
|
97
|
+
if (!info.hashOverride) throw new Error(`template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`);
|
|
98
|
+
return { data: { OverrideUUID: info.hashOverride } };
|
|
99
|
+
}
|
|
100
|
+
_PlTemplateOverrideV.fromV3Data = fromV3Data;
|
|
120
101
|
})(PlTemplateOverrideV1 || (PlTemplateOverrideV1 = {}));
|
|
121
102
|
|
|
103
|
+
//#endregion
|
|
122
104
|
export { PlTemplateLibV1, PlTemplateOverrideV1, PlTemplateSoftwareV1, PlTemplateV1 };
|
|
123
|
-
//# sourceMappingURL=template_resources_v1.js.map
|
|
105
|
+
//# sourceMappingURL=template_resources_v1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template_resources_v1.js","sources":["../src/template_resources_v1.ts"],"sourcesContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"template_resources_v1.js","names":[],"sources":["../src/template_resources_v1.ts"],"sourcesContent":["import type { AnyFieldRef, AnyResourceRef } from \"@milaboratories/pl-client\";\nimport { field, resourceType } from \"@milaboratories/pl-client\";\nimport type * as infoV2 from \"./template_data_v2\";\nimport type * as infoV3 from \"./template_data_v3\";\nexport namespace PlTemplateLibV1 {\n export const type = resourceType(\"TengoLib\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export type Data = {\n /** i.e. @milaboratory/some-package:lib1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateLibData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateLibDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateSoftwareV1 {\n export const type = resourceType(\"SoftwareInfo\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n name: MetaName;\n };\n\n /** Raw entrypoint descriptor encoded with Base64 */\n export type Data = string;\n\n export const metaNameKey = \"ctl/runner/package/name\";\n export type MetaName = {\n /** i.e. @milaboratory/some-package:sw1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n };\n\n export function fromV2Data(\n info: infoV2.TemplateSoftwareData | infoV2.TemplateAssetData,\n ): ResourceStructure {\n return {\n data: info.src,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n\n export function fromV3Data(\n info: infoV3.TemplateSoftwareDataV3,\n sourceCode: string,\n ): ResourceStructure {\n return {\n data: sourceCode,\n name: {\n Name: info.name,\n Version: info.version,\n },\n };\n }\n}\n\nexport namespace PlTemplateV1 {\n export const type = resourceType(\"TengoTemplate\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export const libPrefix = \"lib\";\n export const softPrefix = \"soft\";\n export const tplPrefix = \"tpl\";\n\n export function libField(ref: AnyResourceRef, libId: string): AnyFieldRef {\n return field(ref, `${libPrefix}/${libId}`);\n }\n export function tplField(ref: AnyResourceRef, tplId: string): AnyFieldRef {\n return field(ref, `${tplPrefix}/${tplId}`);\n }\n export function swField(ref: AnyResourceRef, softwareId: string): AnyFieldRef {\n return field(ref, `${softPrefix}/${softwareId}`);\n }\n\n export type Data = {\n /** i.e. @milaboratory/some-package:tpl1 */\n Name: string;\n /** i.e. 1.2.3 */\n Version: string;\n /** Full source code encoded with Base64 */\n Code: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(info.src, \"utf8\").toString(\"base64\"),\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3, sourceCode: string): ResourceStructure {\n return {\n data: {\n Name: info.name,\n Version: info.version,\n Code: Buffer.from(sourceCode, \"utf8\").toString(\"base64\"),\n },\n };\n }\n}\n\nexport namespace PlTemplateOverrideV1 {\n export const type = resourceType(\"TengoTemplateOverride\", \"1\");\n\n export type ResourceStructure = {\n data: Data;\n };\n\n export function tplField(ref: AnyResourceRef): AnyFieldRef {\n return field(ref, \"tpl\");\n }\n\n export type Data = {\n OverrideUUID: string;\n };\n\n export function fromV2Data(info: infoV2.TemplateData): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n\n export function fromV3Data(info: infoV3.TemplateDataV3): ResourceStructure {\n if (!info.hashOverride) {\n throw new Error(\n `template tree rendering error: template has no hash override, cannot generate PlTemplateOverrideV1.ResourceStructure from template data`,\n );\n }\n\n return {\n data: {\n OverrideUUID: info.hashOverride,\n },\n };\n }\n}\n"],"mappings":";;;AAIO;;wBACe,aAAa,YAAY,IAAI;CAe1C,SAAS,WAAW,MAAiD;AAC1E,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,KAAK,KAAK,OAAO,CAAC,SAAS,SAAS;GACvD,EACF;;;CAGI,SAAS,WACd,MACA,YACmB;AACnB,SAAO,EACL,MAAM;GACJ,MAAM,KAAK;GACX,SAAS,KAAK;GACd,MAAM,OAAO,KAAK,YAAY,OAAO,CAAC,SAAS,SAAS;GACzD,EACF;;;6CAEJ;AAEM;;6BACe,aAAa,gBAAgB,IAAI;oCAU1B;CAQ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AK,cACpB,EACF;;;uDAEJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-backend",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.55",
|
|
4
4
|
"description": "Backend model for Platforma.bio",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/**/*",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"canonicalize": "~2.1.0",
|
|
22
22
|
"zod": "~3.23.8",
|
|
23
|
-
"@milaboratories/pl-client": "2.17.
|
|
23
|
+
"@milaboratories/pl-client": "2.17.8"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "~24.5.2",
|
|
27
|
-
"typescript": "~5.
|
|
28
|
-
"@milaboratories/build-configs": "1.
|
|
29
|
-
"@milaboratories/ts-builder": "1.2.
|
|
30
|
-
"@milaboratories/ts-configs": "1.2.
|
|
27
|
+
"typescript": "~5.9.3",
|
|
28
|
+
"@milaboratories/build-configs": "1.5.1",
|
|
29
|
+
"@milaboratories/ts-builder": "1.2.13",
|
|
30
|
+
"@milaboratories/ts-configs": "1.2.2"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "ts-builder build --target node",
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/serde.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serde.d.ts","sourceRoot":"","sources":["../src/serde.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAY7D,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,YAAY,GAAG,kBAAkB,CAOpF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,kBAAkB,GAAG,UAAU,CAKrF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template_data_v2.d.ts","sourceRoot":"","sources":["../src/template_data_v2.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,IAAI,EAAE,sBAAsB,CAAC;IAE7B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,OAAO,EAAE,MAAM,CAAC;IAEhB;;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