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.
@@ -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 interface ZephyrDependency {
135
- application_uid: string;
136
- remote_entry_url: string;
137
- default_url: string;
138
- name: string;
139
- library_type: string;
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;;AAuI1B,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"}
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 type { ZephyrDependency } from './zephyr-build-stats';
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 interface ZephyrManifest {
5
- version: string;
6
- timestamp: string;
7
- dependencies: Record<string, ZephyrDependency>;
8
- zeVars: Record<string, string>;
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":";;;AAEa,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAClC,QAAA,wBAAwB,GAAG,sBAAsB,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-edge-contract",
3
- "version": "0.0.0-canary.11",
3
+ "version": "0.0.0-canary.12",
4
4
  "description": "Edge contract for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",