@elaraai/e3-api-client 0.0.2-beta.12 → 0.0.2-beta.13
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/README.md +1 -1
- package/dist/src/datasets.d.ts +25 -4
- package/dist/src/datasets.d.ts.map +1 -1
- package/dist/src/datasets.js +45 -8
- package/dist/src/datasets.js.map +1 -1
- package/dist/src/executions.d.ts +40 -8
- package/dist/src/executions.d.ts.map +1 -1
- package/dist/src/executions.js +59 -27
- package/dist/src/executions.js.map +1 -1
- package/dist/src/http.d.ts +23 -4
- package/dist/src/http.d.ts.map +1 -1
- package/dist/src/http.js +68 -8
- package/dist/src/http.js.map +1 -1
- package/dist/src/index.d.ts +7 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/packages.d.ts +16 -5
- package/dist/src/packages.d.ts.map +1 -1
- package/dist/src/packages.js +20 -10
- package/dist/src/packages.js.map +1 -1
- package/dist/src/platform.d.ts +62 -878
- package/dist/src/platform.d.ts.map +1 -1
- package/dist/src/platform.js +99 -891
- package/dist/src/platform.js.map +1 -1
- package/dist/src/repository.d.ts +80 -5
- package/dist/src/repository.d.ts.map +1 -1
- package/dist/src/repository.js +128 -8
- package/dist/src/repository.js.map +1 -1
- package/dist/src/tasks.d.ts +19 -3
- package/dist/src/tasks.d.ts.map +1 -1
- package/dist/src/tasks.js +23 -5
- package/dist/src/tasks.js.map +1 -1
- package/dist/src/types.d.ts +486 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +209 -2
- package/dist/src/types.js.map +1 -1
- package/dist/src/workspaces.d.ts +22 -7
- package/dist/src/workspaces.d.ts.map +1 -1
- package/dist/src/workspaces.js +28 -14
- package/dist/src/workspaces.js.map +1 -1
- package/package.json +2 -2
package/dist/src/types.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* All types are East types for BEAST2 serialization.
|
|
9
9
|
* This file should be kept in sync with e3-api-server/src/types.ts.
|
|
10
10
|
*/
|
|
11
|
-
import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, NullType, } from '@elaraai/east';
|
|
11
|
+
import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, NullType, EastTypeType, } from '@elaraai/east';
|
|
12
12
|
import { StructureType, TreePathType, } from '@elaraai/e3-types';
|
|
13
13
|
// =============================================================================
|
|
14
14
|
// Error Types
|
|
@@ -38,7 +38,9 @@ export const ObjectNotFoundErrorType = StructType({ hash: StringType });
|
|
|
38
38
|
export const DataflowErrorType = StructType({ message: StringType });
|
|
39
39
|
export const PermissionDeniedErrorType = StructType({ path: StringType });
|
|
40
40
|
export const InternalErrorType = StructType({ message: StringType });
|
|
41
|
+
export const RepositoryNotFoundErrorType = StructType({ repo: StringType });
|
|
41
42
|
export const ErrorType = VariantType({
|
|
43
|
+
repository_not_found: RepositoryNotFoundErrorType,
|
|
42
44
|
workspace_not_found: WorkspaceNotFoundErrorType,
|
|
43
45
|
workspace_not_deployed: WorkspaceNotDeployedErrorType,
|
|
44
46
|
workspace_exists: WorkspaceExistsErrorType,
|
|
@@ -67,7 +69,7 @@ export const ResponseType = (successType) => VariantType({
|
|
|
67
69
|
/**
|
|
68
70
|
* Repository status information.
|
|
69
71
|
*
|
|
70
|
-
* @property path - Absolute path to the
|
|
72
|
+
* @property path - Absolute path to the e3 repository directory
|
|
71
73
|
* @property objectCount - Number of content-addressed objects stored
|
|
72
74
|
* @property packageCount - Number of imported packages
|
|
73
75
|
* @property workspaceCount - Number of workspaces
|
|
@@ -105,6 +107,59 @@ export const GcResultType = StructType({
|
|
|
105
107
|
bytesFreed: IntegerType,
|
|
106
108
|
});
|
|
107
109
|
// =============================================================================
|
|
110
|
+
// Async Operation Types
|
|
111
|
+
// =============================================================================
|
|
112
|
+
/**
|
|
113
|
+
* Status of an async operation.
|
|
114
|
+
*
|
|
115
|
+
* - `running`: Operation is in progress
|
|
116
|
+
* - `succeeded`: Operation completed successfully
|
|
117
|
+
* - `failed`: Operation failed with an error
|
|
118
|
+
*/
|
|
119
|
+
export const AsyncOperationStatusType = VariantType({
|
|
120
|
+
running: NullType,
|
|
121
|
+
succeeded: NullType,
|
|
122
|
+
failed: NullType,
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* Result of starting an async GC operation.
|
|
126
|
+
*
|
|
127
|
+
* @property executionId - Unique identifier for this GC execution (UUID locally, Step Function ARN in cloud)
|
|
128
|
+
*/
|
|
129
|
+
export const GcStartResultType = StructType({
|
|
130
|
+
executionId: StringType,
|
|
131
|
+
});
|
|
132
|
+
/**
|
|
133
|
+
* Status of an async GC operation.
|
|
134
|
+
*
|
|
135
|
+
* @property status - Current execution status
|
|
136
|
+
* @property stats - GC statistics (available when succeeded)
|
|
137
|
+
* @property error - Error message (available when failed)
|
|
138
|
+
*/
|
|
139
|
+
export const GcStatusResultType = StructType({
|
|
140
|
+
status: AsyncOperationStatusType,
|
|
141
|
+
stats: OptionType(GcResultType),
|
|
142
|
+
error: OptionType(StringType),
|
|
143
|
+
});
|
|
144
|
+
/**
|
|
145
|
+
* Result of starting an async repo deletion.
|
|
146
|
+
*
|
|
147
|
+
* @property executionId - Unique identifier for this deletion execution
|
|
148
|
+
*/
|
|
149
|
+
export const RepoDeleteStartResultType = StructType({
|
|
150
|
+
executionId: StringType,
|
|
151
|
+
});
|
|
152
|
+
/**
|
|
153
|
+
* Status of an async repo deletion.
|
|
154
|
+
*
|
|
155
|
+
* @property status - Current execution status
|
|
156
|
+
* @property error - Error message (available when failed)
|
|
157
|
+
*/
|
|
158
|
+
export const RepoDeleteStatusResultType = StructType({
|
|
159
|
+
status: AsyncOperationStatusType,
|
|
160
|
+
error: OptionType(StringType),
|
|
161
|
+
});
|
|
162
|
+
// =============================================================================
|
|
108
163
|
// Package Types
|
|
109
164
|
// =============================================================================
|
|
110
165
|
/**
|
|
@@ -456,11 +511,147 @@ export const DataflowResultType = StructType({
|
|
|
456
511
|
duration: FloatType,
|
|
457
512
|
});
|
|
458
513
|
// =============================================================================
|
|
514
|
+
// Dataflow Execution State Types (for polling)
|
|
515
|
+
// =============================================================================
|
|
516
|
+
/**
|
|
517
|
+
* Dataflow event types.
|
|
518
|
+
*
|
|
519
|
+
* - `start`: Task started executing
|
|
520
|
+
* - `complete`: Task executed and succeeded
|
|
521
|
+
* - `cached`: Task result retrieved from cache (no execution)
|
|
522
|
+
* - `failed`: Task exited with non-zero code
|
|
523
|
+
* - `error`: Internal error during task execution
|
|
524
|
+
* - `input_unavailable`: Task couldn't run because inputs not available
|
|
525
|
+
*/
|
|
526
|
+
export const DataflowEventType = VariantType({
|
|
527
|
+
start: StructType({
|
|
528
|
+
task: StringType,
|
|
529
|
+
timestamp: StringType,
|
|
530
|
+
}),
|
|
531
|
+
complete: StructType({
|
|
532
|
+
task: StringType,
|
|
533
|
+
timestamp: StringType,
|
|
534
|
+
duration: FloatType,
|
|
535
|
+
}),
|
|
536
|
+
cached: StructType({
|
|
537
|
+
task: StringType,
|
|
538
|
+
timestamp: StringType,
|
|
539
|
+
}),
|
|
540
|
+
failed: StructType({
|
|
541
|
+
task: StringType,
|
|
542
|
+
timestamp: StringType,
|
|
543
|
+
duration: FloatType,
|
|
544
|
+
exitCode: IntegerType,
|
|
545
|
+
}),
|
|
546
|
+
error: StructType({
|
|
547
|
+
task: StringType,
|
|
548
|
+
timestamp: StringType,
|
|
549
|
+
message: StringType,
|
|
550
|
+
}),
|
|
551
|
+
input_unavailable: StructType({
|
|
552
|
+
task: StringType,
|
|
553
|
+
timestamp: StringType,
|
|
554
|
+
reason: StringType,
|
|
555
|
+
}),
|
|
556
|
+
});
|
|
557
|
+
/**
|
|
558
|
+
* Execution status variant.
|
|
559
|
+
*
|
|
560
|
+
* - `running`: Execution is in progress
|
|
561
|
+
* - `completed`: Execution finished successfully
|
|
562
|
+
* - `failed`: Execution finished with failures
|
|
563
|
+
* - `aborted`: Execution was cancelled
|
|
564
|
+
*/
|
|
565
|
+
export const ExecutionStatusType = VariantType({
|
|
566
|
+
running: NullType,
|
|
567
|
+
completed: NullType,
|
|
568
|
+
failed: NullType,
|
|
569
|
+
aborted: NullType,
|
|
570
|
+
});
|
|
571
|
+
/**
|
|
572
|
+
* Summary of dataflow execution results.
|
|
573
|
+
*/
|
|
574
|
+
export const DataflowExecutionSummaryType = StructType({
|
|
575
|
+
executed: IntegerType,
|
|
576
|
+
cached: IntegerType,
|
|
577
|
+
failed: IntegerType,
|
|
578
|
+
skipped: IntegerType,
|
|
579
|
+
duration: FloatType,
|
|
580
|
+
});
|
|
581
|
+
/**
|
|
582
|
+
* State of a dataflow execution (for polling).
|
|
583
|
+
*
|
|
584
|
+
* @property status - Current execution status
|
|
585
|
+
* @property startedAt - ISO timestamp when execution started
|
|
586
|
+
* @property completedAt - ISO timestamp when execution finished (if done)
|
|
587
|
+
* @property summary - Execution summary (available when complete)
|
|
588
|
+
* @property events - Task events (may be paginated via offset/limit)
|
|
589
|
+
* @property totalEvents - Total number of events (for pagination)
|
|
590
|
+
*/
|
|
591
|
+
export const DataflowExecutionStateType = StructType({
|
|
592
|
+
status: ExecutionStatusType,
|
|
593
|
+
startedAt: StringType,
|
|
594
|
+
completedAt: OptionType(StringType),
|
|
595
|
+
summary: OptionType(DataflowExecutionSummaryType),
|
|
596
|
+
events: ArrayType(DataflowEventType),
|
|
597
|
+
totalEvents: IntegerType,
|
|
598
|
+
});
|
|
599
|
+
// =============================================================================
|
|
600
|
+
// Task Execution History Types
|
|
601
|
+
// =============================================================================
|
|
602
|
+
/**
|
|
603
|
+
* Execution status for history listing.
|
|
604
|
+
*/
|
|
605
|
+
export const ExecutionHistoryStatusType = VariantType({
|
|
606
|
+
running: NullType,
|
|
607
|
+
success: NullType,
|
|
608
|
+
failed: NullType,
|
|
609
|
+
error: NullType,
|
|
610
|
+
});
|
|
611
|
+
/**
|
|
612
|
+
* A single execution in task history.
|
|
613
|
+
*
|
|
614
|
+
* @property inputsHash - Hash of concatenated inputs (execution identifier)
|
|
615
|
+
* @property inputHashes - Individual input object hashes
|
|
616
|
+
* @property status - Execution outcome
|
|
617
|
+
* @property startedAt - ISO timestamp when execution started
|
|
618
|
+
* @property completedAt - ISO timestamp when execution finished (if done)
|
|
619
|
+
* @property duration - Execution duration in milliseconds (if done)
|
|
620
|
+
* @property exitCode - Process exit code (if failed)
|
|
621
|
+
*/
|
|
622
|
+
export const ExecutionListItemType = StructType({
|
|
623
|
+
inputsHash: StringType,
|
|
624
|
+
inputHashes: ArrayType(StringType),
|
|
625
|
+
status: ExecutionHistoryStatusType,
|
|
626
|
+
startedAt: StringType,
|
|
627
|
+
completedAt: OptionType(StringType),
|
|
628
|
+
duration: OptionType(IntegerType),
|
|
629
|
+
exitCode: OptionType(IntegerType),
|
|
630
|
+
});
|
|
631
|
+
// =============================================================================
|
|
632
|
+
// Dataset List Types (recursive)
|
|
633
|
+
// =============================================================================
|
|
634
|
+
/**
|
|
635
|
+
* A dataset in the flat list response.
|
|
636
|
+
*
|
|
637
|
+
* @property path - Full path to dataset (e.g., ".inputs.a.x")
|
|
638
|
+
* @property type - East type of the dataset (mandatory)
|
|
639
|
+
* @property hash - Object hash of the value (None if unassigned)
|
|
640
|
+
* @property size - Size in bytes (None if unassigned)
|
|
641
|
+
*/
|
|
642
|
+
export const DatasetListItemType = StructType({
|
|
643
|
+
path: StringType,
|
|
644
|
+
type: EastTypeType,
|
|
645
|
+
hash: OptionType(StringType),
|
|
646
|
+
size: OptionType(IntegerType),
|
|
647
|
+
});
|
|
648
|
+
// =============================================================================
|
|
459
649
|
// Namespace export for convenience
|
|
460
650
|
// =============================================================================
|
|
461
651
|
export const ApiTypes = {
|
|
462
652
|
// Errors
|
|
463
653
|
ErrorType,
|
|
654
|
+
RepositoryNotFoundErrorType,
|
|
464
655
|
WorkspaceNotFoundErrorType,
|
|
465
656
|
WorkspaceNotDeployedErrorType,
|
|
466
657
|
WorkspaceExistsErrorType,
|
|
@@ -481,6 +672,12 @@ export const ApiTypes = {
|
|
|
481
672
|
RepositoryStatusType,
|
|
482
673
|
GcRequestType,
|
|
483
674
|
GcResultType,
|
|
675
|
+
// Async Operations
|
|
676
|
+
AsyncOperationStatusType,
|
|
677
|
+
GcStartResultType,
|
|
678
|
+
GcStatusResultType,
|
|
679
|
+
RepoDeleteStartResultType,
|
|
680
|
+
RepoDeleteStatusResultType,
|
|
484
681
|
// Packages
|
|
485
682
|
PackageListItemType,
|
|
486
683
|
PackageImportResultType,
|
|
@@ -513,5 +710,15 @@ export const ApiTypes = {
|
|
|
513
710
|
LogChunkType,
|
|
514
711
|
TaskExecutionResultType,
|
|
515
712
|
DataflowResultType,
|
|
713
|
+
// Execution State (polling)
|
|
714
|
+
DataflowEventType,
|
|
715
|
+
ExecutionStatusType,
|
|
716
|
+
DataflowExecutionSummaryType,
|
|
717
|
+
DataflowExecutionStateType,
|
|
718
|
+
// Task Execution History
|
|
719
|
+
ExecutionHistoryStatusType,
|
|
720
|
+
ExecutionListItemType,
|
|
721
|
+
// Dataset List (recursive)
|
|
722
|
+
DatasetListItemType,
|
|
516
723
|
};
|
|
517
724
|
//# sourceMappingURL=types.js.map
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GAGT,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,MAA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,MAAM,QAAQ,GAAG;IACtB,SAAS;IACT,SAAS;IACT,0BAA0B;IAC1B,6BAA6B;IAC7B,wBAAwB;IACxB,wBAAwB;IACxB,cAAc;IACd,wBAAwB;IACxB,sBAAsB;IACtB,uBAAuB;IACvB,wBAAwB;IACxB,qBAAqB;IACrB,uBAAuB;IACvB,iBAAiB;IACjB,yBAAyB;IACzB,iBAAiB;IAEjB,WAAW;IACX,YAAY;IAEZ,aAAa;IACb,oBAAoB;IACpB,aAAa;IACb,YAAY;IAEZ,WAAW;IACX,mBAAmB;IACnB,uBAAuB;IACvB,eAAe;IACf,kBAAkB;IAElB,aAAa;IACb,0BAA0B;IAC1B,iBAAiB;IACjB,0BAA0B;IAE1B,mBAAmB;IACnB,iBAAiB;IACjB,cAAc;IACd,sBAAsB;IACtB,qBAAqB;IACrB,wBAAwB;IACxB,oBAAoB;IACpB,mBAAmB;IACnB,0BAA0B;IAC1B,qBAAqB;IACrB,kBAAkB;IAClB,0BAA0B;IAC1B,yBAAyB;IAEzB,QAAQ;IACR,gBAAgB;IAChB,eAAe;IAEf,YAAY;IACZ,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,uBAAuB;IACvB,kBAAkB;CACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,YAAY,GAGb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,M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AAkB;IAElB,aAAa;IACb,0BAA0B;IAC1B,iBAAiB;IACjB,0BAA0B;IAE1B,mBAAmB;IACnB,iBAAiB;IACjB,cAAc;IACd,sBAAsB;IACtB,qBAAqB;IACrB,wBAAwB;IACxB,oBAAoB;IACpB,mBAAmB;IACnB,0BAA0B;IAC1B,qBAAqB;IACrB,kBAAkB;IAClB,0BAA0B;IAC1B,yBAAyB;IAEzB,QAAQ;IACR,gBAAgB;IAChB,eAAe;IAEf,YAAY;IACZ,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,uBAAuB;IACvB,kBAAkB;IAElB,4BAA4B;IAC5B,iBAAiB;IACjB,mBAAmB;IACnB,4BAA4B;IAC5B,0BAA0B;IAE1B,yBAAyB;IACzB,0BAA0B;IAC1B,qBAAqB;IAErB,2BAA2B;IAC3B,mBAAmB;CACX,CAAC"}
|
package/dist/src/workspaces.d.ts
CHANGED
|
@@ -4,60 +4,75 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type WorkspaceState } from '@elaraai/e3-types';
|
|
6
6
|
import type { WorkspaceInfo, WorkspaceStatusResult } from './types.js';
|
|
7
|
+
import { type RequestOptions } from './http.js';
|
|
7
8
|
/**
|
|
8
9
|
* List all workspaces in the repository.
|
|
9
10
|
*
|
|
10
11
|
* @param url - Base URL of the e3 API server
|
|
12
|
+
* @param repo - Repository name
|
|
13
|
+
* @param options - Request options including auth token
|
|
11
14
|
* @returns Array of workspace info
|
|
12
15
|
*/
|
|
13
|
-
export declare function workspaceList(url: string): Promise<WorkspaceInfo[]>;
|
|
16
|
+
export declare function workspaceList(url: string, repo: string, options: RequestOptions): Promise<WorkspaceInfo[]>;
|
|
14
17
|
/**
|
|
15
18
|
* Create a new empty workspace.
|
|
16
19
|
*
|
|
17
20
|
* @param url - Base URL of the e3 API server
|
|
21
|
+
* @param repo - Repository name
|
|
18
22
|
* @param name - Workspace name
|
|
23
|
+
* @param options - Request options including auth token
|
|
19
24
|
* @returns Created workspace info
|
|
20
25
|
*/
|
|
21
|
-
export declare function workspaceCreate(url: string, name: string): Promise<WorkspaceInfo>;
|
|
26
|
+
export declare function workspaceCreate(url: string, repo: string, name: string, options: RequestOptions): Promise<WorkspaceInfo>;
|
|
22
27
|
/**
|
|
23
28
|
* Get workspace state (deployed package info and current root hash).
|
|
24
29
|
*
|
|
25
30
|
* @param url - Base URL of the e3 API server
|
|
31
|
+
* @param repo - Repository name
|
|
26
32
|
* @param name - Workspace name
|
|
33
|
+
* @param options - Request options including auth token
|
|
27
34
|
* @returns Workspace state
|
|
28
35
|
*/
|
|
29
|
-
export declare function workspaceGet(url: string, name: string): Promise<WorkspaceState>;
|
|
36
|
+
export declare function workspaceGet(url: string, repo: string, name: string, options: RequestOptions): Promise<WorkspaceState>;
|
|
30
37
|
/**
|
|
31
38
|
* Get comprehensive workspace status including datasets, tasks, and lock info.
|
|
32
39
|
*
|
|
33
40
|
* Use this to poll for execution progress after calling dataflowStart().
|
|
34
41
|
*
|
|
35
42
|
* @param url - Base URL of the e3 API server
|
|
43
|
+
* @param repo - Repository name
|
|
36
44
|
* @param name - Workspace name
|
|
45
|
+
* @param options - Request options including auth token
|
|
37
46
|
* @returns Workspace status with datasets, tasks, and summary
|
|
38
47
|
*/
|
|
39
|
-
export declare function workspaceStatus(url: string, name: string): Promise<WorkspaceStatusResult>;
|
|
48
|
+
export declare function workspaceStatus(url: string, repo: string, name: string, options: RequestOptions): Promise<WorkspaceStatusResult>;
|
|
40
49
|
/**
|
|
41
50
|
* Remove a workspace.
|
|
42
51
|
*
|
|
43
52
|
* @param url - Base URL of the e3 API server
|
|
53
|
+
* @param repo - Repository name
|
|
44
54
|
* @param name - Workspace name
|
|
55
|
+
* @param options - Request options including auth token
|
|
45
56
|
*/
|
|
46
|
-
export declare function workspaceRemove(url: string, name: string): Promise<void>;
|
|
57
|
+
export declare function workspaceRemove(url: string, repo: string, name: string, options: RequestOptions): Promise<void>;
|
|
47
58
|
/**
|
|
48
59
|
* Deploy a package to a workspace.
|
|
49
60
|
*
|
|
50
61
|
* @param url - Base URL of the e3 API server
|
|
62
|
+
* @param repo - Repository name
|
|
51
63
|
* @param name - Workspace name
|
|
52
64
|
* @param packageRef - Package reference (name or name@version)
|
|
65
|
+
* @param options - Request options including auth token
|
|
53
66
|
*/
|
|
54
|
-
export declare function workspaceDeploy(url: string, name: string, packageRef: string): Promise<void>;
|
|
67
|
+
export declare function workspaceDeploy(url: string, repo: string, name: string, packageRef: string, options: RequestOptions): Promise<void>;
|
|
55
68
|
/**
|
|
56
69
|
* Export workspace as a package zip archive.
|
|
57
70
|
*
|
|
58
71
|
* @param url - Base URL of the e3 API server
|
|
72
|
+
* @param repo - Repository name
|
|
59
73
|
* @param name - Workspace name
|
|
74
|
+
* @param options - Request options including auth token
|
|
60
75
|
* @returns Zip archive as bytes
|
|
61
76
|
*/
|
|
62
|
-
export declare function workspaceExport(url: string, name: string): Promise<Uint8Array>;
|
|
77
|
+
export declare function workspaceExport(url: string, repo: string, name: string, options: RequestOptions): Promise<Uint8Array>;
|
|
63
78
|
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAOvE,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAExE;;;;;;;GAOG;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,32 +10,38 @@ import { get, post, del, unwrap } from './http.js';
|
|
|
10
10
|
* List all workspaces in the repository.
|
|
11
11
|
*
|
|
12
12
|
* @param url - Base URL of the e3 API server
|
|
13
|
+
* @param repo - Repository name
|
|
14
|
+
* @param options - Request options including auth token
|
|
13
15
|
* @returns Array of workspace info
|
|
14
16
|
*/
|
|
15
|
-
export async function workspaceList(url) {
|
|
16
|
-
const response = await get(url,
|
|
17
|
+
export async function workspaceList(url, repo, options) {
|
|
18
|
+
const response = await get(url, `/repos/${encodeURIComponent(repo)}/workspaces`, ArrayType(WorkspaceInfoType), options);
|
|
17
19
|
return unwrap(response);
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Create a new empty workspace.
|
|
21
23
|
*
|
|
22
24
|
* @param url - Base URL of the e3 API server
|
|
25
|
+
* @param repo - Repository name
|
|
23
26
|
* @param name - Workspace name
|
|
27
|
+
* @param options - Request options including auth token
|
|
24
28
|
* @returns Created workspace info
|
|
25
29
|
*/
|
|
26
|
-
export async function workspaceCreate(url, name) {
|
|
27
|
-
const response = await post(url,
|
|
30
|
+
export async function workspaceCreate(url, repo, name, options) {
|
|
31
|
+
const response = await post(url, `/repos/${encodeURIComponent(repo)}/workspaces`, { name }, WorkspaceCreateRequestType, WorkspaceInfoType, options);
|
|
28
32
|
return unwrap(response);
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
31
35
|
* Get workspace state (deployed package info and current root hash).
|
|
32
36
|
*
|
|
33
37
|
* @param url - Base URL of the e3 API server
|
|
38
|
+
* @param repo - Repository name
|
|
34
39
|
* @param name - Workspace name
|
|
40
|
+
* @param options - Request options including auth token
|
|
35
41
|
* @returns Workspace state
|
|
36
42
|
*/
|
|
37
|
-
export async function workspaceGet(url, name) {
|
|
38
|
-
const response = await get(url, `/
|
|
43
|
+
export async function workspaceGet(url, repo, name, options) {
|
|
44
|
+
const response = await get(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(name)}`, WorkspaceStateType, options);
|
|
39
45
|
return unwrap(response);
|
|
40
46
|
}
|
|
41
47
|
/**
|
|
@@ -44,43 +50,51 @@ export async function workspaceGet(url, name) {
|
|
|
44
50
|
* Use this to poll for execution progress after calling dataflowStart().
|
|
45
51
|
*
|
|
46
52
|
* @param url - Base URL of the e3 API server
|
|
53
|
+
* @param repo - Repository name
|
|
47
54
|
* @param name - Workspace name
|
|
55
|
+
* @param options - Request options including auth token
|
|
48
56
|
* @returns Workspace status with datasets, tasks, and summary
|
|
49
57
|
*/
|
|
50
|
-
export async function workspaceStatus(url, name) {
|
|
51
|
-
const response = await get(url, `/
|
|
58
|
+
export async function workspaceStatus(url, repo, name, options) {
|
|
59
|
+
const response = await get(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(name)}/status`, WorkspaceStatusResultType, options);
|
|
52
60
|
return unwrap(response);
|
|
53
61
|
}
|
|
54
62
|
/**
|
|
55
63
|
* Remove a workspace.
|
|
56
64
|
*
|
|
57
65
|
* @param url - Base URL of the e3 API server
|
|
66
|
+
* @param repo - Repository name
|
|
58
67
|
* @param name - Workspace name
|
|
68
|
+
* @param options - Request options including auth token
|
|
59
69
|
*/
|
|
60
|
-
export async function workspaceRemove(url, name) {
|
|
61
|
-
const response = await del(url, `/
|
|
70
|
+
export async function workspaceRemove(url, repo, name, options) {
|
|
71
|
+
const response = await del(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(name)}`, NullType, options);
|
|
62
72
|
unwrap(response);
|
|
63
73
|
}
|
|
64
74
|
/**
|
|
65
75
|
* Deploy a package to a workspace.
|
|
66
76
|
*
|
|
67
77
|
* @param url - Base URL of the e3 API server
|
|
78
|
+
* @param repo - Repository name
|
|
68
79
|
* @param name - Workspace name
|
|
69
80
|
* @param packageRef - Package reference (name or name@version)
|
|
81
|
+
* @param options - Request options including auth token
|
|
70
82
|
*/
|
|
71
|
-
export async function workspaceDeploy(url, name, packageRef) {
|
|
72
|
-
const response = await post(url, `/
|
|
83
|
+
export async function workspaceDeploy(url, repo, name, packageRef, options) {
|
|
84
|
+
const response = await post(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(name)}/deploy`, { packageRef }, WorkspaceDeployRequestType, NullType, options);
|
|
73
85
|
unwrap(response);
|
|
74
86
|
}
|
|
75
87
|
/**
|
|
76
88
|
* Export workspace as a package zip archive.
|
|
77
89
|
*
|
|
78
90
|
* @param url - Base URL of the e3 API server
|
|
91
|
+
* @param repo - Repository name
|
|
79
92
|
* @param name - Workspace name
|
|
93
|
+
* @param options - Request options including auth token
|
|
80
94
|
* @returns Zip archive as bytes
|
|
81
95
|
*/
|
|
82
|
-
export async function workspaceExport(url, name) {
|
|
83
|
-
const response = await get(url, `/
|
|
96
|
+
export async function workspaceExport(url, repo, name, options) {
|
|
97
|
+
const response = await get(url, `/repos/${encodeURIComponent(repo)}/workspaces/${encodeURIComponent(name)}/export`, BlobType, options);
|
|
84
98
|
return unwrap(response);
|
|
85
99
|
}
|
|
86
100
|
//# sourceMappingURL=workspaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAuB,MAAM,mBAAmB,CAAC;AAE5E,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,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C,CAAC;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-api-client",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "East Execution Engine API Client - TypeScript client library for e3 API server",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"directory": "packages/e3-api-client"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elaraai/e3-types": "^0.0.2-beta.
|
|
39
|
+
"@elaraai/e3-types": "^0.0.2-beta.13"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@elaraai/east": "^0.0.1-beta.29"
|