zephyr-edge-contract 0.0.0-canary.4 → 0.0.0-canary.5
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/edge-api/publish-request.d.ts +0 -6
- package/dist/lib/snapshot.d.ts +0 -9
- package/dist/lib/zephyr-build-stats.d.ts +7 -13
- package/dist/lib/zephyr-build-stats.js +0 -9
- package/dist/lib/zephyr-build-stats.js.map +1 -1
- package/dist/lib/zephyr-manifest.d.ts +7 -14
- package/dist/lib/zephyr-manifest.js +1 -9
- package/dist/lib/zephyr-manifest.js.map +1 -1
- package/dist/package.json +1 -0
- package/package.json +2 -1
|
@@ -25,15 +25,11 @@ export interface GatewayPublishRequest {
|
|
|
25
25
|
targets: PublishTargets;
|
|
26
26
|
/** Previously `can_write_jwt` */
|
|
27
27
|
jwt: string;
|
|
28
|
-
/** Per-environment variables - map of hostname to variables for all deploys */
|
|
29
|
-
envVarSetEnvMap?: Record<string, Record<string, string>>;
|
|
30
28
|
}
|
|
31
29
|
export interface StageZeroPublishRequest {
|
|
32
30
|
application_uid: string;
|
|
33
31
|
snapshot_id: string;
|
|
34
32
|
targets: PublishTarget[];
|
|
35
|
-
/** Per-environment variables - map of hostname to variables for all deploys */
|
|
36
|
-
environmentVariables?: Record<string, Record<string, string>>;
|
|
37
33
|
}
|
|
38
34
|
export interface PublishRequest {
|
|
39
35
|
EDGE_URL: string;
|
|
@@ -51,7 +47,5 @@ export interface PublishRequest {
|
|
|
51
47
|
envs: PublishTarget[];
|
|
52
48
|
cnames: PublishTarget[];
|
|
53
49
|
};
|
|
54
|
-
envVarsHash?: string;
|
|
55
|
-
environmentVariables?: Record<string, Record<string, string>>;
|
|
56
50
|
jwt: string;
|
|
57
51
|
}
|
package/dist/lib/snapshot.d.ts
CHANGED
|
@@ -31,8 +31,6 @@ export interface Snapshot {
|
|
|
31
31
|
shared?: Record<string, unknown>;
|
|
32
32
|
};
|
|
33
33
|
assets: Record<string, SnapshotAsset>;
|
|
34
|
-
ze_envs?: Record<string, string>;
|
|
35
|
-
ze_envs_hash?: string;
|
|
36
34
|
}
|
|
37
35
|
export interface SnapshotAsset {
|
|
38
36
|
path: string;
|
|
@@ -42,11 +40,4 @@ export interface SnapshotAsset {
|
|
|
42
40
|
}
|
|
43
41
|
export interface SnapshotMetadata {
|
|
44
42
|
pages_url?: string;
|
|
45
|
-
public_envs?: Record<string, string>;
|
|
46
|
-
version?: string;
|
|
47
|
-
build_id?: string;
|
|
48
|
-
etag?: string;
|
|
49
|
-
env?: {
|
|
50
|
-
public?: Record<string, string>;
|
|
51
|
-
};
|
|
52
43
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
/** Todo: this worst and most outdated model so far, had to be refactored */
|
|
3
2
|
export interface ZephyrBuildStats {
|
|
4
3
|
/** @deprecated */
|
|
@@ -118,10 +117,6 @@ export interface ZephyrBuildStats {
|
|
|
118
117
|
build_target?: string;
|
|
119
118
|
/** @deprecated */
|
|
120
119
|
type: unknown;
|
|
121
|
-
/** Public environment variables captured at build time (ZE_PUBLIC_* only) */
|
|
122
|
-
ze_envs?: Record<string, string>;
|
|
123
|
-
/** Content-addressable hash of ze_envs for deduplication */
|
|
124
|
-
ze_envs_hash?: string;
|
|
125
120
|
/** Resolved zephyr dependencies */
|
|
126
121
|
zephyrDependencies?: Record<string, ZephyrDependency>;
|
|
127
122
|
}
|
|
@@ -132,14 +127,13 @@ declare enum DeploymentIntegrationPlatform {
|
|
|
132
127
|
AZURE = "azure",
|
|
133
128
|
GCP = "gcp"
|
|
134
129
|
}
|
|
135
|
-
export
|
|
136
|
-
application_uid:
|
|
137
|
-
remote_entry_url:
|
|
138
|
-
default_url:
|
|
139
|
-
name:
|
|
140
|
-
library_type:
|
|
141
|
-
}
|
|
142
|
-
export type ZephyrDependency = z.infer<typeof ZephyrDependencySchema>;
|
|
130
|
+
export interface ZephyrDependency {
|
|
131
|
+
application_uid: string;
|
|
132
|
+
remote_entry_url: string;
|
|
133
|
+
default_url: string;
|
|
134
|
+
name: string;
|
|
135
|
+
library_type: string;
|
|
136
|
+
}
|
|
143
137
|
export interface RawDependency {
|
|
144
138
|
name: string;
|
|
145
139
|
version: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
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");
|
|
6
4
|
var DeploymentIntegrationPlatform;
|
|
7
5
|
(function (DeploymentIntegrationPlatform) {
|
|
8
6
|
DeploymentIntegrationPlatform["CLOUDFLARE"] = "cloudflare";
|
|
@@ -11,11 +9,4 @@ var DeploymentIntegrationPlatform;
|
|
|
11
9
|
DeploymentIntegrationPlatform["AZURE"] = "azure";
|
|
12
10
|
DeploymentIntegrationPlatform["GCP"] = "gcp";
|
|
13
11
|
})(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
|
-
});
|
|
21
12
|
//# 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;;AAmI1B,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,16 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ZephyrDependency } from './zephyr-build-stats';
|
|
2
2
|
export declare const ZEPHYR_MANIFEST_VERSION = "1.0.0";
|
|
3
3
|
export declare const ZEPHYR_MANIFEST_FILENAME = "zephyr-manifest.json";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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>;
|
|
4
|
+
/** Changes to this interface should be semanticaly reflect on the const above; */
|
|
5
|
+
export interface ZephyrManifest {
|
|
6
|
+
version: typeof ZEPHYR_MANIFEST_VERSION;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
dependencies: Record<string, ZephyrDependency>;
|
|
9
|
+
}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const zephyr_build_stats_1 = require("./zephyr-build-stats");
|
|
3
|
+
exports.ZEPHYR_MANIFEST_FILENAME = exports.ZEPHYR_MANIFEST_VERSION = void 0;
|
|
6
4
|
exports.ZEPHYR_MANIFEST_VERSION = '1.0.0';
|
|
7
5
|
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
|
-
});
|
|
14
6
|
//# 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":";;;AAEa,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAElC,QAAA,wBAAwB,GAAG,sBAAsB,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-edge-contract",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.5",
|
|
4
4
|
"description": "Edge contract for Zephyr",
|
|
5
|
+
"sideEffects": false,
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/ZephyrCloudIO/zephyr-packages.git",
|