zephyr-edge-contract 0.0.0-canary.11 → 0.0.0-canary.12
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/lib/zephyr-build-stats.d.ts +9 -7
- package/dist/lib/zephyr-build-stats.js +9 -0
- package/dist/lib/zephyr-build-stats.js.map +1 -1
- package/dist/lib/zephyr-manifest.d.ts +14 -7
- package/dist/lib/zephyr-manifest.js +9 -1
- package/dist/lib/zephyr-manifest.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
/** Todo: this worst and most outdated model so far, had to be refactored */
|
|
2
3
|
export interface ZephyrBuildStats {
|
|
3
4
|
/** @deprecated */
|
|
@@ -131,13 +132,14 @@ declare enum DeploymentIntegrationPlatform {
|
|
|
131
132
|
AZURE = "azure",
|
|
132
133
|
GCP = "gcp"
|
|
133
134
|
}
|
|
134
|
-
export
|
|
135
|
-
application_uid:
|
|
136
|
-
remote_entry_url:
|
|
137
|
-
default_url:
|
|
138
|
-
name:
|
|
139
|
-
library_type:
|
|
140
|
-
}
|
|
135
|
+
export declare const ZephyrDependencySchema: z.ZodObject<{
|
|
136
|
+
application_uid: z.ZodString;
|
|
137
|
+
remote_entry_url: z.ZodString;
|
|
138
|
+
default_url: z.ZodString;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
library_type: z.ZodString;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export type ZephyrDependency = z.infer<typeof ZephyrDependencySchema>;
|
|
141
143
|
export interface RawDependency {
|
|
142
144
|
name: string;
|
|
143
145
|
version: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ZephyrDependencySchema = void 0;
|
|
5
|
+
const zod_1 = require("zod");
|
|
4
6
|
var DeploymentIntegrationPlatform;
|
|
5
7
|
(function (DeploymentIntegrationPlatform) {
|
|
6
8
|
DeploymentIntegrationPlatform["CLOUDFLARE"] = "cloudflare";
|
|
@@ -9,4 +11,11 @@ var DeploymentIntegrationPlatform;
|
|
|
9
11
|
DeploymentIntegrationPlatform["AZURE"] = "azure";
|
|
10
12
|
DeploymentIntegrationPlatform["GCP"] = "gcp";
|
|
11
13
|
})(DeploymentIntegrationPlatform || (DeploymentIntegrationPlatform = {}));
|
|
14
|
+
exports.ZephyrDependencySchema = zod_1.z.object({
|
|
15
|
+
application_uid: zod_1.z.string(),
|
|
16
|
+
remote_entry_url: zod_1.z.string(),
|
|
17
|
+
default_url: zod_1.z.string(),
|
|
18
|
+
name: zod_1.z.string(),
|
|
19
|
+
library_type: zod_1.z.string(),
|
|
20
|
+
});
|
|
12
21
|
//# sourceMappingURL=zephyr-build-stats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B
|
|
1
|
+
{"version":3,"file":"zephyr-build-stats.js","sourceRoot":"","sources":["../../src/lib/zephyr-build-stats.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B,6BAAwB;AAuIxB,IAAK,6BAMJ;AAND,WAAK,6BAA6B;IAChC,0DAAyB,CAAA;IACzB,4CAAW,CAAA;IACX,oDAAmB,CAAA;IACnB,gDAAe,CAAA;IACf,4CAAW,CAAA;AACb,CAAC,EANI,6BAA6B,KAA7B,6BAA6B,QAMjC;AAEY,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;IAC3B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const ZEPHYR_MANIFEST_VERSION = "1.0.0";
|
|
3
3
|
export declare const ZEPHYR_MANIFEST_FILENAME = "zephyr-manifest.json";
|
|
4
|
-
export
|
|
5
|
-
version:
|
|
6
|
-
timestamp:
|
|
7
|
-
dependencies:
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
export declare const ZephyrManifestSchema: z.ZodObject<{
|
|
5
|
+
version: z.ZodString;
|
|
6
|
+
timestamp: z.ZodString;
|
|
7
|
+
dependencies: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8
|
+
application_uid: z.ZodString;
|
|
9
|
+
remote_entry_url: z.ZodString;
|
|
10
|
+
default_url: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
library_type: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
zeVars: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type ZephyrManifest = z.infer<typeof ZephyrManifestSchema>;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZEPHYR_MANIFEST_FILENAME = exports.ZEPHYR_MANIFEST_VERSION = void 0;
|
|
3
|
+
exports.ZephyrManifestSchema = exports.ZEPHYR_MANIFEST_FILENAME = exports.ZEPHYR_MANIFEST_VERSION = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zephyr_build_stats_1 = require("./zephyr-build-stats");
|
|
4
6
|
exports.ZEPHYR_MANIFEST_VERSION = '1.0.0';
|
|
5
7
|
exports.ZEPHYR_MANIFEST_FILENAME = 'zephyr-manifest.json';
|
|
8
|
+
exports.ZephyrManifestSchema = zod_1.z.object({
|
|
9
|
+
version: zod_1.z.string(),
|
|
10
|
+
timestamp: zod_1.z.string(),
|
|
11
|
+
dependencies: zod_1.z.record(zod_1.z.string(), zephyr_build_stats_1.ZephyrDependencySchema),
|
|
12
|
+
zeVars: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
13
|
+
});
|
|
6
14
|
//# sourceMappingURL=zephyr-manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zephyr-manifest.js","sourceRoot":"","sources":["../../src/lib/zephyr-manifest.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"zephyr-manifest.js","sourceRoot":"","sources":["../../src/lib/zephyr-manifest.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6DAA8D;AAEjD,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAClC,QAAA,wBAAwB,GAAG,sBAAsB,CAAC;AAElD,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,2CAAsB,CAAC;IAC1D,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC"}
|