@dcupl/common 1.9.4 → 1.10.0-beta.0

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.
Files changed (44) hide show
  1. package/dist/browser/common.umd.js +1 -1
  2. package/dist/browser/common.umd.js.map +1 -1
  3. package/dist/esm/types/index.d.ts +0 -4
  4. package/dist/esm/types/index.js +0 -4
  5. package/dist/esm/types/index.js.map +1 -1
  6. package/dist/node/index.cjs.js +1 -1
  7. package/dist/tsconfig.tsbuildinfo +1 -1
  8. package/package.json +1 -1
  9. package/dist/esm/types/api/file.types.d.ts +0 -56
  10. package/dist/esm/types/api/file.types.js +0 -2
  11. package/dist/esm/types/api/file.types.js.map +0 -1
  12. package/dist/esm/types/rest-api/rest-api.types.d.ts +0 -119
  13. package/dist/esm/types/rest-api/rest-api.types.js +0 -2
  14. package/dist/esm/types/rest-api/rest-api.types.js.map +0 -1
  15. package/dist/esm/types/runner/runner.types.d.ts +0 -22
  16. package/dist/esm/types/runner/runner.types.js +0 -2
  17. package/dist/esm/types/runner/runner.types.js.map +0 -1
  18. package/dist/esm/types/workflow/index.d.ts +0 -1
  19. package/dist/esm/types/workflow/index.js +0 -2
  20. package/dist/esm/types/workflow/index.js.map +0 -1
  21. package/dist/esm/types/workflow/steps/data-mapper.types.d.ts +0 -27
  22. package/dist/esm/types/workflow/steps/data-mapper.types.js +0 -2
  23. package/dist/esm/types/workflow/steps/data-mapper.types.js.map +0 -1
  24. package/dist/esm/types/workflow/steps/dcupl-files.types.d.ts +0 -52
  25. package/dist/esm/types/workflow/steps/dcupl-files.types.js +0 -2
  26. package/dist/esm/types/workflow/steps/dcupl-files.types.js.map +0 -1
  27. package/dist/esm/types/workflow/steps/git-files.types.d.ts +0 -62
  28. package/dist/esm/types/workflow/steps/git-files.types.js +0 -2
  29. package/dist/esm/types/workflow/steps/git-files.types.js.map +0 -1
  30. package/dist/esm/types/workflow/steps/instance.types.d.ts +0 -23
  31. package/dist/esm/types/workflow/steps/instance.types.js +0 -2
  32. package/dist/esm/types/workflow/steps/instance.types.js.map +0 -1
  33. package/dist/esm/types/workflow/steps/request.types.d.ts +0 -21
  34. package/dist/esm/types/workflow/steps/request.types.js +0 -2
  35. package/dist/esm/types/workflow/steps/request.types.js.map +0 -1
  36. package/dist/esm/types/workflow/steps/s3-files.types.d.ts +0 -54
  37. package/dist/esm/types/workflow/steps/s3-files.types.js +0 -2
  38. package/dist/esm/types/workflow/steps/s3-files.types.js.map +0 -1
  39. package/dist/esm/types/workflow/steps/script.types.d.ts +0 -11
  40. package/dist/esm/types/workflow/steps/script.types.js +0 -2
  41. package/dist/esm/types/workflow/steps/script.types.js.map +0 -1
  42. package/dist/esm/types/workflow/workflow.types.d.ts +0 -283
  43. package/dist/esm/types/workflow/workflow.types.js +0 -4
  44. package/dist/esm/types/workflow/workflow.types.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcupl/common",
3
- "version": "1.9.4",
3
+ "version": "1.10.0-beta.0",
4
4
  "description": "Dcupl Common Code",
5
5
  "main": "dist/node/index.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,56 +0,0 @@
1
- export declare namespace ApiFiles {
2
- /**
3
- * FILES CHANGED EVENT
4
- */
5
- type EventType = 'change' | 'rename';
6
- type EventTriggerType = 'user' | 'dev-server';
7
- type ChangedData = {
8
- event: EventType;
9
- path: string;
10
- fileName?: string;
11
- };
12
- type ChangedEvent = {
13
- data: ChangedData;
14
- projectId: string;
15
- triggerType: EventTriggerType;
16
- triggerUid?: string;
17
- };
18
- type InternalEvent = {
19
- data: ChangedEvent;
20
- };
21
- /**
22
- * LIST FILES RESPONSE
23
- */
24
- type TreeItemType = 'file' | 'dir' | 'other';
25
- type FileTreeItem = {
26
- path: string;
27
- fullPath: string;
28
- type: TreeItemType;
29
- root: boolean;
30
- children: FileTreeItem[];
31
- };
32
- type ListFilesResponse = {
33
- list: string[];
34
- nested: FileTreeItem[];
35
- };
36
- /**
37
- * File Action Bodies
38
- */
39
- type WriteFileBody = {
40
- path: string;
41
- content: string;
42
- };
43
- type ReadFileBody = {
44
- path: string;
45
- };
46
- type MoveFileBody = {
47
- from: string;
48
- to: string;
49
- };
50
- type DeleteFileBody = {
51
- path: string;
52
- };
53
- type CreateFolderBody = {
54
- path: string;
55
- };
56
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=file.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.types.js","sourceRoot":"","sources":["../../../../src/types/api/file.types.ts"],"names":[],"mappings":""}
@@ -1,119 +0,0 @@
1
- import { AppLoaderConfiguration } from '../app-loader.types';
2
- export declare namespace RestApi {
3
- type Template = {
4
- key: string;
5
- dcuplConfig: DcuplConfig;
6
- vGuardEnabled: boolean;
7
- auth?: InstanceAuth[];
8
- name?: string;
9
- description?: string;
10
- version?: string;
11
- };
12
- type Instance = {
13
- uid: string;
14
- key: string;
15
- template: Template;
16
- runnerUid: string;
17
- projectId: string;
18
- v: string;
19
- createdAt: string;
20
- changedAt: string;
21
- runtime?: InstanceRuntime;
22
- };
23
- type DcuplConfig = {
24
- projectId: string;
25
- apiKey: string;
26
- processOptions: AppLoaderConfiguration.ProcessOptions;
27
- loaderFetchOptions?: AppLoaderConfiguration.FetchOptions;
28
- };
29
- type InstanceAuth = {
30
- type: 'api-key';
31
- value: string;
32
- };
33
- type InstanceRuntime = {
34
- max_heap_size: number;
35
- };
36
- /**
37
- * Api Types
38
- */
39
- type InstanceStatus = 'waiting' | 'processing' | 'ready' | 'updating' | 'error' | 'stopped';
40
- type StatusResponse = {
41
- key: string;
42
- uid: string;
43
- status: InstanceStatus;
44
- createdAt: string;
45
- changedAt: string;
46
- templateVersion?: string;
47
- v: string;
48
- };
49
- type InstanceEvent = {
50
- type: 'create' | 'start' | 'initialized' | 'update' | 'stop' | 'error';
51
- createdAt: string;
52
- data?: any;
53
- };
54
- type ApiInstanceRuntimeResponse = {
55
- used_heap_size: number;
56
- max_heap_size: number;
57
- };
58
- type DetailsResponse = StatusResponse & {
59
- runtime: ApiInstanceRuntimeResponse;
60
- invocations: Invocation[];
61
- };
62
- /**
63
- * Invocations
64
- */
65
- type InvocationStatus = 'completed' | 'failed';
66
- type InvocationType = 'project' | 'instance' | 'instance-action' | 'total';
67
- type Invocation = {
68
- key: string;
69
- type: InvocationType;
70
- action: string;
71
- completed: number;
72
- failed: number;
73
- instanceKey?: string;
74
- projectId?: string;
75
- };
76
- /**
77
- * Manager Types
78
- */
79
- type ManagerStatus = 'idle' | 'processing';
80
- type ManagerStatusRuntime = {
81
- used_heap_size: number;
82
- total_used_heap_size: number;
83
- max_heap_size: number;
84
- available_heap_size: number;
85
- cpus: number;
86
- workers: number;
87
- };
88
- type ManagerStatusResponse = {
89
- status: ManagerStatus;
90
- meta: ManagerMeta;
91
- runtime: ManagerStatusRuntime;
92
- instances: DetailsResponse[];
93
- events: ManagerEvent[];
94
- };
95
- type ManagerEvent = {
96
- type: 'fetch_config' | 'init' | 'initialized' | 'start' | 'stop';
97
- createdAt: string;
98
- data?: any;
99
- };
100
- type ManagerMeta = {
101
- total: number;
102
- waiting: number;
103
- processing: number;
104
- ready: number;
105
- error: number;
106
- stopped: number;
107
- updating: number;
108
- };
109
- /**
110
- * DTO's
111
- */
112
- type DeployDto = {
113
- runnerUid: string;
114
- template: Template;
115
- };
116
- type UndeployDto = {
117
- uid: string;
118
- };
119
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=rest-api.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rest-api.types.js","sourceRoot":"","sources":["../../../../src/types/rest-api/rest-api.types.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { RestApi } from '../rest-api/rest-api.types';
2
- import { Workflow } from '../workflow/workflow.types';
3
- export declare namespace Runner {
4
- type Setup = {
5
- uid: string;
6
- url: string;
7
- type: 'app-runner' | 'workflow-runner';
8
- runnerApiKey: string;
9
- runnerKey: string;
10
- };
11
- type WorkflowRunnerConfig = {
12
- workflows: Workflow.Workflow[];
13
- v: string;
14
- };
15
- type RestApiRunnerConfig = {
16
- instances: RestApi.Instance[];
17
- processMode: 'parallel' | 'sequential' | 'batch';
18
- timeoutBetweenInstances?: number;
19
- batchSize?: number;
20
- v: string;
21
- };
22
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=runner.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runner.types.js","sourceRoot":"","sources":["../../../../src/types/runner/runner.types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export * from './workflow.types';
@@ -1,2 +0,0 @@
1
- export * from './workflow.types';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/workflow/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,27 +0,0 @@
1
- import { ModelDefinition } from '../../model.types';
2
- import { Workflow } from '../workflow.types';
3
- export declare namespace _WorkflowStepDataMapper {
4
- type WorkflowDataMapperType = 'manual' | 'model';
5
- type MappingEntry = {
6
- origin: string;
7
- target: string;
8
- };
9
- type InputOptions = {
10
- data: any;
11
- };
12
- type OutputOptions = {
13
- contextVariable: string;
14
- };
15
- type StepOptions = {
16
- input: InputOptions;
17
- output: OutputOptions;
18
- mappings?: MappingEntry[];
19
- model?: ModelDefinition | string;
20
- };
21
- type Step = Workflow.WorkflowStepBase & {
22
- type: 'data-mapper';
23
- options: StepOptions;
24
- };
25
- type StepResultValue = any[];
26
- type StepResult = Workflow.StepResultValueBase<StepResultValue>;
27
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data-mapper.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-mapper.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/data-mapper.types.ts"],"names":[],"mappings":""}
@@ -1,52 +0,0 @@
1
- import { Workflow } from '../workflow.types';
2
- export declare namespace _WorkflowStepDcuplFiles {
3
- type FileAction = 'read' | 'write' | 'delete' | 'move';
4
- type FileType = 'auto' | 'json' | 'csv' | 'text';
5
- type FileEntryWrite = {
6
- action: 'write';
7
- path: string;
8
- type?: FileType;
9
- content: string;
10
- contextVariable?: string;
11
- };
12
- type FileEntryRead = {
13
- action: 'read';
14
- path: string;
15
- type?: FileType;
16
- contextVariable?: string;
17
- };
18
- type FileEntryDelete = {
19
- action: 'delete';
20
- path: string;
21
- contextVariable?: string;
22
- };
23
- type FileEntryMove = {
24
- action: 'move';
25
- from: string;
26
- to: string;
27
- contextVariable?: string;
28
- };
29
- type FileEntry = FileEntryWrite | FileEntryRead | FileEntryDelete | FileEntryMove;
30
- type StepAuth = {
31
- apiKey: string;
32
- };
33
- type StepOptions = {
34
- auth: StepAuth;
35
- version: string;
36
- files: FileEntry[];
37
- };
38
- type Step = Workflow.WorkflowStepBase & {
39
- type: 'dcupl-files';
40
- options: StepOptions;
41
- };
42
- type StepFileResult = {
43
- ok: boolean;
44
- status: number;
45
- data: any;
46
- };
47
- type StepResultValue = {
48
- ok: boolean;
49
- files: StepFileResult[];
50
- };
51
- type StepResult = Workflow.StepResultValueBase<StepResultValue>;
52
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dcupl-files.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dcupl-files.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/dcupl-files.types.ts"],"names":[],"mappings":""}
@@ -1,62 +0,0 @@
1
- import { Workflow } from '../workflow.types';
2
- export declare namespace _WorkflowStepGitFiles {
3
- type FileAction = 'read' | 'write' | 'delete' | 'move';
4
- type FileType = 'auto' | 'json' | 'csv' | 'text';
5
- type FileEntryWrite = {
6
- action: 'write';
7
- path: string;
8
- type?: FileType;
9
- content: string;
10
- message?: string;
11
- contextVariable?: string;
12
- };
13
- type FileEntryRead = {
14
- action: 'read';
15
- path: string;
16
- type?: FileType;
17
- contextVariable?: string;
18
- };
19
- type FileEntryDelete = {
20
- action: 'delete';
21
- path: string;
22
- message?: string;
23
- contextVariable?: string;
24
- };
25
- type FileEntryMove = {
26
- action: 'move';
27
- from: string;
28
- to: string;
29
- message?: string;
30
- contextVariable?: string;
31
- };
32
- type FileEntry = FileEntryWrite | FileEntryRead | FileEntryDelete | FileEntryMove;
33
- type StepAuth = {
34
- user: string;
35
- token: string;
36
- };
37
- type StepRepository = {
38
- user: string;
39
- repo: string;
40
- branch: string;
41
- };
42
- type StepOptions = {
43
- auth: StepAuth;
44
- repository: StepRepository;
45
- message?: string;
46
- files: FileEntry[];
47
- };
48
- type Step = Workflow.WorkflowStepBase & {
49
- type: 'git-files';
50
- options: StepOptions;
51
- };
52
- type StepFileResult = {
53
- ok: boolean;
54
- status: number;
55
- data: any;
56
- };
57
- type StepResultValue = {
58
- ok: boolean;
59
- files: StepFileResult[];
60
- };
61
- type StepResult = Workflow.StepResultValueBase<StepResultValue>;
62
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=git-files.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-files.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/git-files.types.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import { AppLoaderConfiguration } from '../../app-loader.types';
2
- import { DataContainer } from '../../data.types';
3
- import { DcuplInitOptions } from '../../dcupl.types';
4
- import { ModelDefinition } from '../../model.types';
5
- import { Workflow } from '../workflow.types';
6
- export declare namespace _WorkflowStepInstance {
7
- type WorkflowDataContainer = Omit<DataContainer, 'data'> & {
8
- data: any;
9
- };
10
- type StepOptions = {
11
- script: string;
12
- initOptions?: DcuplInitOptions;
13
- loaderFetchOptions?: AppLoaderConfiguration.FetchOptions;
14
- processOptions?: AppLoaderConfiguration.ProcessOptions;
15
- dataContainers?: WorkflowDataContainer[];
16
- models?: ModelDefinition[] | string[];
17
- };
18
- type Step = Workflow.WorkflowStepBase & {
19
- type: 'dcupl-instance';
20
- options: StepOptions;
21
- };
22
- type StepResult = Workflow.StepResultContextBase;
23
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=instance.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/instance.types.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- import { Workflow } from '../workflow.types';
2
- export declare namespace _WorkflowStepRequest {
3
- type RequestMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
4
- type StepOptions = {
5
- url: string;
6
- method: RequestMethod;
7
- body?: string;
8
- headers?: Record<string, string>;
9
- contextVariable?: string;
10
- };
11
- type Step = Workflow.WorkflowStepBase & {
12
- type: 'request';
13
- options: StepOptions;
14
- };
15
- type StepResultValue = {
16
- ok: boolean;
17
- status: number;
18
- data: any;
19
- };
20
- type StepResult = Workflow.StepResultValueBase<StepResultValue>;
21
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=request.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/request.types.ts"],"names":[],"mappings":""}
@@ -1,54 +0,0 @@
1
- import { Workflow } from '../workflow.types';
2
- export declare namespace _WorkflowStepS3Files {
3
- type FileAction = 'read' | 'write' | 'delete' | 'move';
4
- type FileType = 'auto' | 'json' | 'csv' | 'text';
5
- type FileEntryWrite = {
6
- action: 'write';
7
- path: string;
8
- type?: FileType;
9
- content: string;
10
- contextVariable?: string;
11
- };
12
- type FileEntryRead = {
13
- action: 'read';
14
- path: string;
15
- type?: FileType;
16
- contextVariable?: string;
17
- };
18
- type FileEntryDelete = {
19
- action: 'delete';
20
- path: string;
21
- contextVariable?: string;
22
- };
23
- type FileEntryMove = {
24
- action: 'move';
25
- from: string;
26
- to: string;
27
- contextVariable?: string;
28
- };
29
- type FileEntry = FileEntryWrite | FileEntryRead | FileEntryDelete | FileEntryMove;
30
- type StepAuth = {
31
- accessKeyId: string;
32
- secretAccessKey: string;
33
- region: string;
34
- };
35
- type StepOptions = {
36
- auth: StepAuth;
37
- bucket: string;
38
- files: FileEntry[];
39
- };
40
- type Step = Workflow.WorkflowStepBase & {
41
- type: 's3-files';
42
- options: StepOptions;
43
- };
44
- type StepFileResult = {
45
- ok: boolean;
46
- status: number;
47
- data: any;
48
- };
49
- type StepResultValue = {
50
- ok: boolean;
51
- files: StepFileResult[];
52
- };
53
- type StepResult = Workflow.StepResultValueBase<StepResultValue>;
54
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=s3-files.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"s3-files.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/s3-files.types.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { Workflow } from '../workflow.types';
2
- export declare namespace _WorkflowStepScript {
3
- type StepOptions = {
4
- script: string;
5
- };
6
- type Step = Workflow.WorkflowStepBase & {
7
- type: 'script';
8
- options: StepOptions;
9
- };
10
- type StepResult = Workflow.StepResultContextBase;
11
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=script.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"script.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/script.types.ts"],"names":[],"mappings":""}