@dcupl/common 1.8.4 → 1.9.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.
@@ -27,8 +27,11 @@ export declare namespace _WorkflowStepDcuplFiles {
27
27
  contextVariable?: string;
28
28
  };
29
29
  type FileEntry = FileEntryWrite | FileEntryRead | FileEntryDelete | FileEntryMove;
30
- type StepOptions = {
30
+ type StepAuth = {
31
31
  apiKey: string;
32
+ };
33
+ type StepOptions = {
34
+ auth: StepAuth;
32
35
  version: string;
33
36
  files: FileEntry[];
34
37
  };
@@ -0,0 +1,57 @@
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 StepVariableResult = {
53
+ ok: boolean;
54
+ status: number;
55
+ data: any;
56
+ };
57
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=git-files.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-files.types.js","sourceRoot":"","sources":["../../../../../src/types/workflow/steps/git-files.types.ts"],"names":[],"mappings":""}
@@ -4,6 +4,7 @@ import { AppLoaderConfiguration } from '../app-loader.types';
4
4
  import { ListItem } from '../data.types';
5
5
  import { _WorkflowStepDcuplFiles } from './steps/dcupl-files.types';
6
6
  import { _WorkflowStepS3Files } from './steps/s3-files.types';
7
+ import { _WorkflowStepGitFiles } from './steps/git-files.types';
7
8
  export declare namespace Workflow {
8
9
  type Template = {
9
10
  key: string;
@@ -90,7 +91,7 @@ export declare namespace Workflow {
90
91
  * Step
91
92
  *
92
93
  */
93
- type WorflowStepType = 'request' | 'script' | 'git-push' | 'git-pull' | 'dcupl-files' | 'files-read' | 'files-write' | 's3-files' | 's3-read' | 's3-write' | 'data-mapping' | 'dcupl-instance';
94
+ type WorflowStepType = 'request' | 'script' | 'git-push' | 'git-pull' | 'git-files' | 'dcupl-files' | 'files-read' | 'files-write' | 's3-files' | 's3-read' | 's3-write' | 'data-mapping' | 'dcupl-instance';
94
95
  type WorkflowStepBase = {
95
96
  key: string;
96
97
  name?: string;
@@ -296,7 +297,8 @@ export declare namespace Workflow {
296
297
  };
297
298
  export import StepDcuplFiles = _WorkflowStepDcuplFiles;
298
299
  export import StepS3Files = _WorkflowStepS3Files;
299
- type WorkflowStep = WorkflowStepRequest | WorkflowStepScript | StepDcuplFiles.Step | StepS3Files.Step | WorkflowStepGitPush | WorkflowStepGitPull | WorkflowStepDcuplInstance | WorkflowStepFilesWrite | WorkflowStepFilesRead | WorkflowStepS3Read | WorkflowStepDataMapping | WorkflowStepS3Write;
300
+ export import StepGitFiles = _WorkflowStepGitFiles;
301
+ type WorkflowStep = StepDcuplFiles.Step | StepS3Files.Step | StepGitFiles.Step | WorkflowStepRequest | WorkflowStepScript | WorkflowStepGitPush | WorkflowStepGitPull | WorkflowStepDcuplInstance | WorkflowStepFilesWrite | WorkflowStepFilesRead | WorkflowStepS3Read | WorkflowStepDataMapping | WorkflowStepS3Write;
300
302
  /**
301
303
  * Server Config
302
304
  */
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.types.js","sourceRoot":"","sources":["../../../../src/types/workflow/workflow.types.ts"],"names":[],"mappings":"AAOA,MAAM,KAAW,QAAQ,CA4jBxB;AA5jBD,WAAiB,QAAQ;AA4jBzB,CAAC,EA5jBgB,QAAQ,KAAR,QAAQ,QA4jBxB"}
1
+ {"version":3,"file":"workflow.types.js","sourceRoot":"","sources":["../../../../src/types/workflow/workflow.types.ts"],"names":[],"mappings":"AAQA,MAAM,KAAW,QAAQ,CA+jBxB;AA/jBD,WAAiB,QAAQ;AA+jBzB,CAAC,EA/jBgB,QAAQ,KAAR,QAAQ,QA+jBxB"}