@elaraai/e3-cloud-client 1.0.91 → 1.0.93
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/src/files.d.ts +107 -0
- package/dist/src/files.d.ts.map +1 -0
- package/dist/src/files.js +143 -0
- package/dist/src/files.js.map +1 -0
- package/dist/src/history.d.ts +6 -3
- package/dist/src/history.d.ts.map +1 -1
- package/dist/src/history.js +6 -3
- package/dist/src/history.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { type FilesBindResponse, type FilesBinding, type FilesDeployResponse, type FilesManifest, type FilesSyncJob, type FilesSyncStart, type FilesWorkspace } from '@elaraai/e3-cloud-types';
|
|
6
|
+
import { type RequestOptions } from '@elaraai/e3-api-client';
|
|
7
|
+
/**
|
|
8
|
+
* A workspace's Files: its declarations, its bindings and its last sync,
|
|
9
|
+
* where the repository's bindings may point, and the sync under way.
|
|
10
|
+
*
|
|
11
|
+
* @param url - Base URL of the e3 API server
|
|
12
|
+
* @param repo - Repository name
|
|
13
|
+
* @param ws - Workspace name
|
|
14
|
+
* @param options - Request options including auth token
|
|
15
|
+
* @returns The workspace's Files
|
|
16
|
+
*/
|
|
17
|
+
export declare function getFiles(url: string, repo: string, ws: string, options: RequestOptions): Promise<FilesWorkspace>;
|
|
18
|
+
/**
|
|
19
|
+
* Deploy declarations to a workspace, checked against the package it runs.
|
|
20
|
+
* An input whose declaration changed is taken again whole by the next sync.
|
|
21
|
+
* A protected workspace (one with a staging) takes declarations only by a
|
|
22
|
+
* release from its staging, unless an admin forces a deploy past it.
|
|
23
|
+
*
|
|
24
|
+
* @param url - Base URL of the e3 API server
|
|
25
|
+
* @param repo - Repository name
|
|
26
|
+
* @param ws - Workspace name
|
|
27
|
+
* @param manifest - The declarations: `Files.manifest(...)`
|
|
28
|
+
* @param options - Request options including auth token
|
|
29
|
+
* @param deploy - `dryRun`: check them, and keep nothing; `force`: deploy past the workspace's protection (an admin's alone)
|
|
30
|
+
* @returns `deployed` (with the inputs taken again whole), `checked`, or `refused` with every problem
|
|
31
|
+
* @throws {ApiError} `workspace_protected` for a protected workspace, unforced;
|
|
32
|
+
* `forbidden` for a force by anyone but an admin
|
|
33
|
+
*/
|
|
34
|
+
export declare function deployFiles(url: string, repo: string, ws: string, manifest: FilesManifest, options: RequestOptions, deploy?: {
|
|
35
|
+
dryRun?: boolean;
|
|
36
|
+
force?: boolean;
|
|
37
|
+
}): Promise<FilesDeployResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Bind a source to where its files are, for a workspace: `s3://bucket/prefix/`
|
|
40
|
+
* in the deployment's files bucket under the repository's folder, or in a
|
|
41
|
+
* bucket its configuration lists. A binding moved elsewhere has its inputs
|
|
42
|
+
* taken again whole by the next sync. A workspace's bindings are its own: a
|
|
43
|
+
* source may be bound before any declaration reads it (a protected
|
|
44
|
+
* workspace's, before the release that brings the declarations), and a
|
|
45
|
+
* release never changes them.
|
|
46
|
+
*
|
|
47
|
+
* @param url - Base URL of the e3 API server
|
|
48
|
+
* @param repo - Repository name
|
|
49
|
+
* @param ws - Workspace name
|
|
50
|
+
* @param binding - The binding (`profile` and `latest` are a local repository's alone)
|
|
51
|
+
* @param options - Request options including auth token
|
|
52
|
+
* @returns `bound` (with the inputs taken again whole), or `refused` with every problem
|
|
53
|
+
*/
|
|
54
|
+
export declare function bindFilesSource(url: string, repo: string, ws: string, binding: FilesBinding, options: RequestOptions): Promise<FilesBindResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Start a sync: the platform brings in what changed in each source's files,
|
|
57
|
+
* in rounds. One sync runs at a time in a workspace.
|
|
58
|
+
*
|
|
59
|
+
* @param url - Base URL of the e3 API server
|
|
60
|
+
* @param repo - Repository name
|
|
61
|
+
* @param ws - Workspace name
|
|
62
|
+
* @param request - `dryRun` lists what it would take and takes nothing; `inputs` syncs only those
|
|
63
|
+
* @param options - Request options including auth token
|
|
64
|
+
* @returns `started` with its id, or `running` with the id of the sync under way
|
|
65
|
+
* @throws {ApiError} `bad_request` when nothing is declared, an input is not
|
|
66
|
+
* declared, or a source is not bound
|
|
67
|
+
*/
|
|
68
|
+
export declare function startFilesSync(url: string, repo: string, ws: string, request: {
|
|
69
|
+
dryRun?: boolean;
|
|
70
|
+
inputs?: readonly string[];
|
|
71
|
+
}, options: RequestOptions): Promise<FilesSyncStart>;
|
|
72
|
+
/**
|
|
73
|
+
* A sync: where it is, and what it has taken, its rounds' together.
|
|
74
|
+
*
|
|
75
|
+
* @param url - Base URL of the e3 API server
|
|
76
|
+
* @param repo - Repository name
|
|
77
|
+
* @param ws - Workspace name
|
|
78
|
+
* @param id - The sync's id
|
|
79
|
+
* @param options - Request options including auth token
|
|
80
|
+
* @returns The sync
|
|
81
|
+
* @throws {ApiError} `not_found` for no sync of the id in the workspace
|
|
82
|
+
*/
|
|
83
|
+
export declare function getFilesSync(url: string, repo: string, ws: string, id: string, options: RequestOptions): Promise<FilesSyncJob>;
|
|
84
|
+
/** How {@link filesSyncWait} waits for a sync. */
|
|
85
|
+
export interface FilesSyncWaitOptions {
|
|
86
|
+
/** Called with the sync each time a poll finds it running */
|
|
87
|
+
onProgress?: (job: FilesSyncJob) => void;
|
|
88
|
+
signal?: AbortSignal;
|
|
89
|
+
/** The request options for each poll, read afresh (a token refreshed as it expires); absent, `options` throughout */
|
|
90
|
+
refresh?: () => Promise<RequestOptions>;
|
|
91
|
+
/** How long to wait at most, in milliseconds; absent, as long as it runs */
|
|
92
|
+
deadlineMs?: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Waits for a sync to end, succeeded or failed.
|
|
96
|
+
*
|
|
97
|
+
* @param url - Base URL of the e3 API server
|
|
98
|
+
* @param repo - Repository name
|
|
99
|
+
* @param ws - Workspace name
|
|
100
|
+
* @param id - The sync's id
|
|
101
|
+
* @param options - Request options including auth token
|
|
102
|
+
* @param waitOptions - Its progress, cancellation, token and deadline
|
|
103
|
+
* @returns The sync, ended: its state says how
|
|
104
|
+
* @throws {Error} When the deadline passes with the sync running: it runs on
|
|
105
|
+
*/
|
|
106
|
+
export declare function filesSyncWait(url: string, repo: string, ws: string, id: string, options: RequestOptions, waitOptions?: FilesSyncWaitOptions): Promise<FilesSyncJob>;
|
|
107
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/files.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqBH,OAAO,EASL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7E;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAEtH;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,cAAc,EACvB,MAAM,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACjD,OAAO,CAAC,mBAAmB,CAAC,CAE9B;AA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|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Files on a deployed workspace: a solution's inputs that come from
|
|
7
|
+
* files in a bucket, declared in its code with `@elaraai/e3-cloud-files`.
|
|
8
|
+
*
|
|
9
|
+
* - {@link getFiles}: the workspace's declarations, bindings and last sync,
|
|
10
|
+
* where the repository's bindings may point, and the sync under way.
|
|
11
|
+
* - {@link deployFiles}: deploy declarations, checked against the package the
|
|
12
|
+
* workspace runs: `deployed`, `checked` (a dry run) or `refused`, naming
|
|
13
|
+
* every problem.
|
|
14
|
+
* - {@link bindFilesSource}: bind a source to where its files are, which must
|
|
15
|
+
* be where the deployment lets the repository's bindings point.
|
|
16
|
+
* - {@link startFilesSync}, {@link getFilesSync}, {@link filesSyncWait}: a
|
|
17
|
+
* sync, which the platform runs in rounds, and what it took.
|
|
18
|
+
*
|
|
19
|
+
* Owners and admins alone; anyone else is refused `forbidden`. A sync takes
|
|
20
|
+
* the workspace's inputs only: the dataflow runs as e3's does (`e3 start`).
|
|
21
|
+
*/
|
|
22
|
+
import { none, some } from '@elaraai/east';
|
|
23
|
+
import { FilesBindResponseType, FilesBindingType, FilesDeployRequestType, FilesDeployResponseType, FilesSyncJobType, FilesSyncRequestType, FilesSyncStartType, FilesWorkspaceType, } from '@elaraai/e3-cloud-types';
|
|
24
|
+
import { get, post, put } from '@elaraai/e3-api-client';
|
|
25
|
+
const enc = encodeURIComponent;
|
|
26
|
+
const filesBase = (repo, ws) => `/repos/${enc(repo)}/workspaces/${enc(ws)}/files`;
|
|
27
|
+
/**
|
|
28
|
+
* A workspace's Files: its declarations, its bindings and its last sync,
|
|
29
|
+
* where the repository's bindings may point, and the sync under way.
|
|
30
|
+
*
|
|
31
|
+
* @param url - Base URL of the e3 API server
|
|
32
|
+
* @param repo - Repository name
|
|
33
|
+
* @param ws - Workspace name
|
|
34
|
+
* @param options - Request options including auth token
|
|
35
|
+
* @returns The workspace's Files
|
|
36
|
+
*/
|
|
37
|
+
export async function getFiles(url, repo, ws, options) {
|
|
38
|
+
return get(url, filesBase(repo, ws), FilesWorkspaceType, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Deploy declarations to a workspace, checked against the package it runs.
|
|
42
|
+
* An input whose declaration changed is taken again whole by the next sync.
|
|
43
|
+
* A protected workspace (one with a staging) takes declarations only by a
|
|
44
|
+
* release from its staging, unless an admin forces a deploy past it.
|
|
45
|
+
*
|
|
46
|
+
* @param url - Base URL of the e3 API server
|
|
47
|
+
* @param repo - Repository name
|
|
48
|
+
* @param ws - Workspace name
|
|
49
|
+
* @param manifest - The declarations: `Files.manifest(...)`
|
|
50
|
+
* @param options - Request options including auth token
|
|
51
|
+
* @param deploy - `dryRun`: check them, and keep nothing; `force`: deploy past the workspace's protection (an admin's alone)
|
|
52
|
+
* @returns `deployed` (with the inputs taken again whole), `checked`, or `refused` with every problem
|
|
53
|
+
* @throws {ApiError} `workspace_protected` for a protected workspace, unforced;
|
|
54
|
+
* `forbidden` for a force by anyone but an admin
|
|
55
|
+
*/
|
|
56
|
+
export async function deployFiles(url, repo, ws, manifest, options, deploy = {}) {
|
|
57
|
+
return put(url, filesBase(repo, ws), { manifest, dryRun: deploy.dryRun === true, force: deploy.force === true }, FilesDeployRequestType, FilesDeployResponseType, options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Bind a source to where its files are, for a workspace: `s3://bucket/prefix/`
|
|
61
|
+
* in the deployment's files bucket under the repository's folder, or in a
|
|
62
|
+
* bucket its configuration lists. A binding moved elsewhere has its inputs
|
|
63
|
+
* taken again whole by the next sync. A workspace's bindings are its own: a
|
|
64
|
+
* source may be bound before any declaration reads it (a protected
|
|
65
|
+
* workspace's, before the release that brings the declarations), and a
|
|
66
|
+
* release never changes them.
|
|
67
|
+
*
|
|
68
|
+
* @param url - Base URL of the e3 API server
|
|
69
|
+
* @param repo - Repository name
|
|
70
|
+
* @param ws - Workspace name
|
|
71
|
+
* @param binding - The binding (`profile` and `latest` are a local repository's alone)
|
|
72
|
+
* @param options - Request options including auth token
|
|
73
|
+
* @returns `bound` (with the inputs taken again whole), or `refused` with every problem
|
|
74
|
+
*/
|
|
75
|
+
export async function bindFilesSource(url, repo, ws, binding, options) {
|
|
76
|
+
return put(url, `${filesBase(repo, ws)}/bindings/${enc(binding.source)}`, binding, FilesBindingType, FilesBindResponseType, options);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Start a sync: the platform brings in what changed in each source's files,
|
|
80
|
+
* in rounds. One sync runs at a time in a workspace.
|
|
81
|
+
*
|
|
82
|
+
* @param url - Base URL of the e3 API server
|
|
83
|
+
* @param repo - Repository name
|
|
84
|
+
* @param ws - Workspace name
|
|
85
|
+
* @param request - `dryRun` lists what it would take and takes nothing; `inputs` syncs only those
|
|
86
|
+
* @param options - Request options including auth token
|
|
87
|
+
* @returns `started` with its id, or `running` with the id of the sync under way
|
|
88
|
+
* @throws {ApiError} `bad_request` when nothing is declared, an input is not
|
|
89
|
+
* declared, or a source is not bound
|
|
90
|
+
*/
|
|
91
|
+
export async function startFilesSync(url, repo, ws, request, options) {
|
|
92
|
+
return post(url, `${filesBase(repo, ws)}/sync`, {
|
|
93
|
+
dryRun: request.dryRun === true,
|
|
94
|
+
inputs: request.inputs === undefined ? none : some([...request.inputs]),
|
|
95
|
+
}, FilesSyncRequestType, FilesSyncStartType, options);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A sync: where it is, and what it has taken, its rounds' together.
|
|
99
|
+
*
|
|
100
|
+
* @param url - Base URL of the e3 API server
|
|
101
|
+
* @param repo - Repository name
|
|
102
|
+
* @param ws - Workspace name
|
|
103
|
+
* @param id - The sync's id
|
|
104
|
+
* @param options - Request options including auth token
|
|
105
|
+
* @returns The sync
|
|
106
|
+
* @throws {ApiError} `not_found` for no sync of the id in the workspace
|
|
107
|
+
*/
|
|
108
|
+
export async function getFilesSync(url, repo, ws, id, options) {
|
|
109
|
+
return get(url, `${filesBase(repo, ws)}/sync/${enc(id)}`, FilesSyncJobType, options);
|
|
110
|
+
}
|
|
111
|
+
/** The waits between polls of a sync: 250 ms, backing off to 2 s, and to 5 s once it has run a minute. */
|
|
112
|
+
const SYNC_POLL_MIN_MS = 250;
|
|
113
|
+
const SYNC_POLL_MAX_MS = 2000;
|
|
114
|
+
const SYNC_POLL_LONG_MS = 5000;
|
|
115
|
+
const SYNC_LONG_AFTER_MS = 60_000;
|
|
116
|
+
/**
|
|
117
|
+
* Waits for a sync to end, succeeded or failed.
|
|
118
|
+
*
|
|
119
|
+
* @param url - Base URL of the e3 API server
|
|
120
|
+
* @param repo - Repository name
|
|
121
|
+
* @param ws - Workspace name
|
|
122
|
+
* @param id - The sync's id
|
|
123
|
+
* @param options - Request options including auth token
|
|
124
|
+
* @param waitOptions - Its progress, cancellation, token and deadline
|
|
125
|
+
* @returns The sync, ended: its state says how
|
|
126
|
+
* @throws {Error} When the deadline passes with the sync running: it runs on
|
|
127
|
+
*/
|
|
128
|
+
export async function filesSyncWait(url, repo, ws, id, options, waitOptions = {}) {
|
|
129
|
+
const started = Date.now();
|
|
130
|
+
for (let wait = SYNC_POLL_MIN_MS;; wait = Math.min(wait * 2, SYNC_POLL_MAX_MS)) {
|
|
131
|
+
waitOptions.signal?.throwIfAborted();
|
|
132
|
+
const job = await getFilesSync(url, repo, ws, id, waitOptions.refresh === undefined ? options : await waitOptions.refresh());
|
|
133
|
+
if (job.state.type !== 'running')
|
|
134
|
+
return job;
|
|
135
|
+
waitOptions.onProgress?.(job);
|
|
136
|
+
const ran = Date.now() - started;
|
|
137
|
+
if (waitOptions.deadlineMs !== undefined && ran >= waitOptions.deadlineMs) {
|
|
138
|
+
throw new Error(`The sync ${id} is still running after ${Math.round(ran / 1000)} s: stopped waiting (it runs on)`);
|
|
139
|
+
}
|
|
140
|
+
await new Promise((resolve) => setTimeout(resolve, ran >= SYNC_LONG_AFTER_MS ? SYNC_POLL_LONG_MS : wait));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/files.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,GAQnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAuB,MAAM,wBAAwB,CAAC;AAE7E,MAAM,GAAG,GAAG,kBAAkB,CAAC;AAE/B,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,EAAU,EAAE,EAAE,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC;AAElG;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,GAAW,EAAE,IAAY,EAAE,EAAU,EAAE,OAAuB;IAC3F,OAAO,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,GAAW,EACX,IAAY,EACZ,EAAU,EACV,QAAuB,EACvB,OAAuB,EACvB,SAAgD,EAAE;IAElD,OAAO,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,KAAK,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,EAAE,GAAG,IAAI,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5G,CAAC;AACH,CAAC"}
|
package/dist/src/history.d.ts
CHANGED
|
@@ -54,7 +54,8 @@ export declare function workspaceHistoryEntry(url: string, repo: string, ws: str
|
|
|
54
54
|
/**
|
|
55
55
|
* Releases another workspace to this one, or answers the plan (owner or
|
|
56
56
|
* admin): the target gets exactly the package and app versions the
|
|
57
|
-
* source runs, by hash,
|
|
57
|
+
* source runs, by hash, and its Files declarations, keeping its edited
|
|
58
|
+
* inputs, where its files come from (its bindings), and migrating its records
|
|
58
59
|
* as e3's deploy does; the datasets named are carried from the source.
|
|
59
60
|
*
|
|
60
61
|
* @param url - Base URL of the e3 API server
|
|
@@ -63,12 +64,14 @@ export declare function workspaceHistoryEntry(url: string, repo: string, ws: str
|
|
|
63
64
|
* @param request - The workspace released, what to carry, whether to remove apps it lacks, and whether only to plan
|
|
64
65
|
* @param options - Request options including auth token
|
|
65
66
|
* @returns `planned`; `refused`, its problems in the plan; `released`, its
|
|
66
|
-
* apps switched; or `releasing`, naming the deploy
|
|
67
|
+
* apps and Files declarations switched; or `releasing`, naming the deploy
|
|
68
|
+
* job `appDeployWait` waits on
|
|
67
69
|
*/
|
|
68
70
|
export declare function releaseWorkspace(url: string, repo: string, target: string, request: ReleaseRequest, options: RequestOptions): Promise<ReleaseResponse>;
|
|
69
71
|
/**
|
|
70
72
|
* Rolls a workspace back to an entry of its history, or answers the plan
|
|
71
|
-
* (owner or admin): the entry's package and
|
|
73
|
+
* (owner or admin): the entry's package, apps and Files declarations, exactly
|
|
74
|
+
* (an entry recorded before Files leaves the declarations as they are).
|
|
72
75
|
*
|
|
73
76
|
* @param url - Base URL of the e3 API server
|
|
74
77
|
* @param repo - Repository name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/history.ts"],"names":[],"mappings":"A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AAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAE1J;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAE1I;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE1J;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,CAExH;AAED;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAEzI"}
|
package/dist/src/history.js
CHANGED
|
@@ -60,7 +60,8 @@ export async function workspaceHistoryEntry(url, repo, ws, id, options) {
|
|
|
60
60
|
/**
|
|
61
61
|
* Releases another workspace to this one, or answers the plan (owner or
|
|
62
62
|
* admin): the target gets exactly the package and app versions the
|
|
63
|
-
* source runs, by hash,
|
|
63
|
+
* source runs, by hash, and its Files declarations, keeping its edited
|
|
64
|
+
* inputs, where its files come from (its bindings), and migrating its records
|
|
64
65
|
* as e3's deploy does; the datasets named are carried from the source.
|
|
65
66
|
*
|
|
66
67
|
* @param url - Base URL of the e3 API server
|
|
@@ -69,14 +70,16 @@ export async function workspaceHistoryEntry(url, repo, ws, id, options) {
|
|
|
69
70
|
* @param request - The workspace released, what to carry, whether to remove apps it lacks, and whether only to plan
|
|
70
71
|
* @param options - Request options including auth token
|
|
71
72
|
* @returns `planned`; `refused`, its problems in the plan; `released`, its
|
|
72
|
-
* apps switched; or `releasing`, naming the deploy
|
|
73
|
+
* apps and Files declarations switched; or `releasing`, naming the deploy
|
|
74
|
+
* job `appDeployWait` waits on
|
|
73
75
|
*/
|
|
74
76
|
export async function releaseWorkspace(url, repo, target, request, options) {
|
|
75
77
|
return post(url, `/repos/${enc(repo)}/workspaces/${enc(target)}/releases`, request, ReleaseRequestType, ReleaseResponseType, options);
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Rolls a workspace back to an entry of its history, or answers the plan
|
|
79
|
-
* (owner or admin): the entry's package and
|
|
81
|
+
* (owner or admin): the entry's package, apps and Files declarations, exactly
|
|
82
|
+
* (an entry recorded before Files leaves the declarations as they are).
|
|
80
83
|
*
|
|
81
84
|
* @param url - Base URL of the e3 API server
|
|
82
85
|
* @param repo - Repository name
|
package/dist/src/history.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/history.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,qBAAqB,GAYtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAuB,MAAM,wBAAwB,CAAC;AAE7E,MAAM,GAAG,GAAG,kBAAkB,CAAC;AAU/B;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAAW,EAAE,IAAY,EAAE,EAAU,EAAE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M,CAAC,KAAK,UAAU,UAAU,CAAC,GAAW,EAAE,IAAY,EAAE,IAAY,EAAE,OAA0B,EAAE,OAAuB;IAC3H,OAAO,IAAI,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAC;AAC3I,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,GAAW,EAAE,IAAY,EAAE,IAAY,EAAE,OAAuB;IAChG,OAAO,GAAG,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;AACnG,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,GAAW,EAAE,IAAY,EAAE,OAAuB;IACnG,OAAO,GAAG,CAAC,GAAG,EAAE,UAAU,GAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAC;AAClG,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -52,12 +52,13 @@ export type { Person, PersonList, RepositorySettings, WorkspaceSettings, Workspa
|
|
|
52
52
|
export { getDelegationPolicy, setDelegationPolicy, getRackSecurityPolicy, setRackSecurityPolicy, listRacks, enrollRack, deregisterRack, rackActivity, approveRackBoot, ApproveBootRequestType, EnrollmentTokenType, type EnrollmentToken, } from './deployment-settings.js';
|
|
53
53
|
export { listRecordInfos, recordAudit, recordStateAt, recordStatePage, recordValueChunks, rollbackRecord, listRecordBackups, createRecordBackup, restoreRecordBackup, recordBackupDownload, recordBackupStream, recordBackupValue, deleteRecordBackup, type RecordClientSource, type RecordStateAt, } from './records.js';
|
|
54
54
|
export type { RecordList, RecordInfo, RecordAuditPage, RecordAuditEntry, RecordBackupInfo, RecordBackupList, RecordBackupDownload, } from '@elaraai/e3-cloud-types';
|
|
55
|
+
export { getFiles, deployFiles, bindFilesSource, startFilesSync, getFilesSync, filesSyncWait, type FilesSyncWaitOptions, } from './files.js';
|
|
55
56
|
export { getFeedbackSettings, putFeedbackSettings, addFeedback, listMyFeedback, listFeedback, getFeedback, feedbackScreenshotUrl, closeFeedback, reopenFeedback, type FeedbackStatusName, type FeedbackListOptions, type FeedbackNoteOptions, } from './feedback.js';
|
|
56
57
|
export { feedbackId, FEEDBACK_NOTE_MAX_CHARS, FEEDBACK_TEXT_MAX_CHARS, FEEDBACK_URL_MAX_CHARS, FEEDBACK_SHORT_MAX_CHARS, FEEDBACK_DATASETS_MAX, FEEDBACK_NOTE_MAX_BYTES, FEEDBACK_SCREENSHOT_MAX_BYTES, FEEDBACK_SCREENSHOT_TYPES, FEEDBACK_SUMMARY_CHARS, FEEDBACK_PAGE_DEFAULT, FEEDBACK_PAGE_MAX, } from '@elaraai/e3-cloud-types';
|
|
57
58
|
export type { FeedbackSendRequest, FeedbackSent, FeedbackPage, FeedbackPart, FeedbackPartKind, FeedbackScope, FeedbackRect, FeedbackPoint, FeedbackData, FeedbackImage, FeedbackScreenshotRequest, FeedbackNote, FeedbackSender, FeedbackScreenshot, FeedbackStatus, FeedbackSummary, FeedbackList, FeedbackMine, FeedbackCounts, FeedbackSettings, } from '@elaraai/e3-cloud-types';
|
|
58
59
|
export { workspaceHistory, workspaceHistoryEntry, repositoryHistory, releaseWorkspace, rollbackWorkspace, getReleaseSettings, getRepositoryReleaseSettings, addStaging, stopStaging, type WorkspaceHistoryOptions, } from './history.js';
|
|
59
60
|
export { WORKSPACE_HISTORY_PAGE_DEFAULT, WORKSPACE_HISTORY_PAGE_MAX, RELEASE_CARRY_MAX, releaseProblemText, releasePlanRefusalLines, workspaceProtectedText, historyKindChangesWorkspace, } from '@elaraai/e3-cloud-types';
|
|
60
|
-
export type { RepositoryHistory, WorkspaceHistorySummary, WorkspaceHistoryApp, WorkspaceHistoryEntry, WorkspaceHistoryKind, WorkspaceHistoryOutcome, WorkspaceHistoryPage, ReleaseApp, ReleaseAppChange, ReleaseAppVersion, ReleaseCarry, ReleaseCarryKind, ReleasePlan, ReleaseProblem, ReleaseRequest, ReleaseResponse, ReleaseSource, RollbackRequest, WorkspaceReleaseSettings, RepositoryReleaseSettings, ReleaseUndone, StagingStart, StagingApp, StagingRuns, AddStagingRequest, StagingPlan, AddStagingResponse, StagingLink, } from '@elaraai/e3-cloud-types';
|
|
61
|
+
export type { RepositoryHistory, WorkspaceHistorySummary, WorkspaceHistoryApp, WorkspaceHistoryEntry, WorkspaceHistoryKind, WorkspaceHistoryOutcome, WorkspaceHistoryPage, ReleaseApp, ReleaseAppChange, ReleaseAppVersion, ReleaseCarry, ReleaseCarryKind, ReleaseFilesChange, ReleaseFilesInput, ReleaseFilesPlan, ReleasePlan, ReleaseProblem, ReleaseRequest, ReleaseResponse, ReleaseSource, RollbackRequest, WorkspaceReleaseSettings, RepositoryReleaseSettings, ReleaseUndone, StagingStart, StagingApp, StagingRuns, AddStagingRequest, StagingPlan, AddStagingResponse, StagingLink, } from '@elaraai/e3-cloud-types';
|
|
61
62
|
export { adminAppList, repositoryAppList, appDeployWait, appList, myAppList, myAppRebuilds, appGet, appVersions, appUpload, appDeploy, appsDeploy, appRemove, type AdminAppListOptions, type AppDeployAsk, type AppsDeployAsk, type AppRemoveOptions, type AppDeployWaitOptions, type AppVersionsOptions, } from './apps.js';
|
|
62
63
|
export { APP_VERSIONS_KEPT, APP_OBJECT_MAX_BYTES, APP_DEPLOY_MAX, appProblemText, appProblemLines, appProblemsText, appDeployRefusedText, } from '@elaraai/e3-cloud-types';
|
|
63
64
|
export type { AdminAppPage, AppRebuilds, RepositoryApps, WorkspaceLastRelease, AppSummary, AppList, AppVersion, AppVersionPage, AppNav, AppStaged, AppSource, AppDeployRequest, AppsDeployRequest, AppDeployResponse, AppDeployKind, AppRemoved, AppProblem, AppProblems, } from '@elaraai/e3-c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B,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EACzB,aAAa,EACb,YAAY,EACZ,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,WAAW,GACZ,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,SAAS,EACT,aAAa,EACb,MAAM,EACN,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,YAAY,EACZ,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,UAAU,EACV,cAAc,EACd,MAAM,EACN,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,yBAAyB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -54,6 +54,8 @@ export { listRoles, getRole, putRole, deleteRole, myAccess, previewRole } from '
|
|
|
54
54
|
export { getDelegationPolicy, setDelegationPolicy, getRackSecurityPolicy, setRackSecurityPolicy, listRacks, enrollRack, deregisterRack, rackActivity, approveRackBoot, ApproveBootRequestType, EnrollmentTokenType, } from './deployment-settings.js';
|
|
55
55
|
// Record history, rollback & backups
|
|
56
56
|
export { listRecordInfos, recordAudit, recordStateAt, recordStatePage, recordValueChunks, rollbackRecord, listRecordBackups, createRecordBackup, restoreRecordBackup, recordBackupDownload, recordBackupStream, recordBackupValue, deleteRecordBackup, } from './records.js';
|
|
57
|
+
// Files: a deployed workspace's inputs from files in a bucket
|
|
58
|
+
export { getFiles, deployFiles, bindFilesSource, startFilesSync, getFilesSync, filesSyncWait, } from './files.js';
|
|
57
59
|
// Feedback on components
|
|
58
60
|
export { getFeedbackSettings, putFeedbackSettings, addFeedback, listMyFeedback, listFeedback, getFeedback, feedbackScreenshotUrl, closeFeedback, reopenFeedback, } from './feedback.js';
|
|
59
61
|
export { feedbackId, FEEDBACK_NOTE_MAX_CHARS, FEEDBACK_TEXT_MAX_CHARS, FEEDBACK_URL_MAX_CHARS, FEEDBACK_SHORT_MAX_CHARS, FEEDBACK_DATASETS_MAX, FEEDBACK_NOTE_MAX_BYTES, FEEDBACK_SCREENSHOT_MAX_BYTES, FEEDBACK_SCREENSHOT_TYPES, FEEDBACK_SUMMARY_CHARS, FEEDBACK_PAGE_DEFAULT, FEEDBACK_PAGE_MAX, } from '@elaraai/e3-cloud-types';
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,8CAA8C;AAC9C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAuB,MAAM,wBAAwB,CAAC;AAElF,gBAAgB;AAChB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,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,YAAY,EACZ,aAAa,GAEd,MAAM,YAAY,CAAC;AAEpB,yBAAyB;AACzB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,aAAa,EACb,cAAc,GAIf,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AAwBjC,uEAAuE;AACvE,iDAAiD;AACjD,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,UAAU,EACV,WAAW,GAEZ,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,yBAAyB,CAAC;AAmCjC,iLAAiL;AACjL,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,SAAS,EACT,aAAa,EACb,MAAM,EACN,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,GAOV,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,oBAAoB,GACrB,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-cloud-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.93",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "HTTP client library for the e3 cloud API",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"types": "dist/src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@elaraai/e3-api-client": "1.0.
|
|
11
|
-
"@elaraai/e3-types": "1.0.
|
|
12
|
-
"@elaraai/e3-cloud-types": "1.0.
|
|
10
|
+
"@elaraai/e3-api-client": "1.0.93",
|
|
11
|
+
"@elaraai/e3-types": "1.0.93",
|
|
12
|
+
"@elaraai/e3-cloud-types": "1.0.93"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@elaraai/east": "1.0.
|
|
15
|
+
"@elaraai/east": "1.0.93"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
-
"dist/src",
|
|
18
|
+
"dist/src/**/*",
|
|
19
19
|
"!dist/src/**/*.spec.*",
|
|
20
20
|
"README.md",
|
|
21
21
|
"LICENSE.md"
|