@contrail/cli 1.0.71 → 2.0.1
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/LICENSE +21 -0
- package/README.md +1034 -5
- package/bin/dev +17 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +5 -0
- package/bin/run.cmd +3 -0
- package/{lib → dist}/api/apps.d.ts +13 -13
- package/dist/api/apps.js +96 -0
- package/{lib → dist}/api/event-workflow-action-definition.d.ts +1 -1
- package/dist/api/event-workflow-action-definition.js +11 -0
- package/{lib → dist}/api/event-workflow-template-definition.d.ts +6 -6
- package/dist/api/event-workflow-template-definition.js +26 -0
- package/{lib → dist}/api/event-workflow-templates.d.ts +7 -7
- package/dist/api/event-workflow-templates.js +32 -0
- package/dist/api/types.d.ts +7 -0
- package/dist/api/types.js +52 -0
- package/{lib → dist}/auth/auth.d.ts +9 -9
- package/dist/auth/auth.js +6 -0
- package/{lib → dist}/auth/login.d.ts +2 -2
- package/{lib → dist}/auth/login.js +146 -141
- package/dist/commands/app/create.d.ts +6 -0
- package/dist/commands/app/create.js +15 -0
- package/dist/commands/app/delete.d.ts +7 -0
- package/dist/commands/app/delete.js +38 -0
- package/dist/commands/app/install.d.ts +11 -0
- package/dist/commands/app/install.js +117 -0
- package/dist/commands/app/publish.d.ts +7 -0
- package/dist/commands/app/publish.js +45 -0
- package/dist/commands/app/uninstall.d.ts +10 -0
- package/dist/commands/app/uninstall.js +58 -0
- package/dist/commands/app/upgrade.d.ts +11 -0
- package/dist/commands/app/upgrade.js +79 -0
- package/dist/commands/colors/deleteAll.d.ts +6 -0
- package/dist/commands/colors/deleteAll.js +30 -0
- package/dist/commands/colors/load.d.ts +6 -0
- package/dist/commands/colors/load.js +29 -0
- package/dist/commands/config/list.d.ts +6 -0
- package/dist/commands/config/list.js +15 -0
- package/dist/commands/config/remove.d.ts +14 -0
- package/dist/commands/config/remove.js +26 -0
- package/dist/commands/config/set.d.ts +13 -0
- package/dist/commands/config/set.js +29 -0
- package/dist/commands/loader-process/load.d.ts +9 -0
- package/dist/commands/loader-process/load.js +33 -0
- package/dist/commands/loader-process/upload-and-load.d.ts +10 -0
- package/dist/commands/loader-process/upload-and-load.js +35 -0
- package/dist/commands/projects/export.d.ts +10 -0
- package/dist/commands/projects/export.js +34 -0
- package/dist/commands/projects/list.d.ts +6 -0
- package/dist/commands/projects/list.js +34 -0
- package/dist/commands/projects/load.d.ts +9 -0
- package/{lib/projects/project-uploader.js → dist/commands/projects/load.js} +106 -105
- package/dist/commands/types/exportOptionSetHierarchies.d.ts +7 -0
- package/{lib/types/option-set-hierarchy-exporter.js → dist/commands/types/exportOptionSetHierarchies.js} +130 -113
- package/{lib/types/types-extractor.d.ts → dist/commands/types/getAll.d.ts} +29 -27
- package/{lib/types/types-extractor.js → dist/commands/types/getAll.js} +267 -318
- package/dist/commands/types/loadAll.d.ts +7 -0
- package/dist/commands/types/loadAll.js +41 -0
- package/dist/commands/types/mergeOptionSets.d.ts +9 -0
- package/{lib/types/option-set-merger.js → dist/commands/types/mergeOptionSets.js} +114 -105
- package/dist/commands/types/mergeTypeProperties.d.ts +11 -0
- package/dist/commands/types/mergeTypeProperties.js +89 -0
- package/dist/commands/types/parseOptionSetsHierarchyLocalFile.d.ts +10 -0
- package/dist/commands/types/parseOptionSetsHierarchyLocalFile.js +112 -0
- package/dist/commands/types/parseOptionSetsLocalFiles.d.ts +14 -0
- package/dist/commands/types/parseOptionSetsLocalFiles.js +153 -0
- package/dist/commands/types/parseOptionSetsToFolderStructure.d.ts +10 -0
- package/dist/commands/types/parseOptionSetsToFolderStructure.js +104 -0
- package/dist/commands/types/parseTypesFromFiles.d.ts +10 -0
- package/dist/commands/types/parseTypesFromFiles.js +34 -0
- package/dist/commands/types/parseTypesFromLocalFiles.d.ts +10 -0
- package/dist/commands/types/parseTypesFromLocalFiles.js +34 -0
- package/dist/commands/types/parseTypesFromTemplateAndDataFromLocalFiles.d.ts +11 -0
- package/dist/commands/types/parseTypesFromTemplateAndDataFromLocalFiles.js +36 -0
- package/dist/commands/types/parseTypesFromTemplateFromLocalFiles.d.ts +10 -0
- package/dist/commands/types/parseTypesFromTemplateFromLocalFiles.js +35 -0
- package/dist/commands/types/uploadOptionSetHierarchies.d.ts +7 -0
- package/{lib/types/option-set-hierarchy-uploader.js → dist/commands/types/uploadOptionSetHierarchies.js} +130 -113
- package/dist/commands/types/uploadOptionSets.d.ts +7 -0
- package/{lib/types/option-set-uploader.js → dist/commands/types/uploadOptionSets.js} +115 -98
- package/dist/commands/types/uploadOptionSetsHierarchyLocalFile.d.ts +11 -0
- package/{lib/types/option-set-hierarchy-parser.js → dist/commands/types/uploadOptionSetsHierarchyLocalFile.js} +128 -140
- package/dist/commands/types/uploadRuleSets.d.ts +7 -0
- package/{lib/types/rule-set-uploader.js → dist/commands/types/uploadRuleSets.js} +189 -172
- package/dist/commands/types/uploadTypePropertyPolicies.d.ts +7 -0
- package/{lib/types/type-property-policy-uploader.js → dist/commands/types/uploadTypePropertyPolicies.js} +195 -178
- package/dist/commands/types/uploadUsageInfo.d.ts +7 -0
- package/{lib/types/usage-info-uploader.js → dist/commands/types/uploadUsageInfo.js} +149 -132
- package/dist/commands/users/export.d.ts +9 -0
- package/dist/commands/users/export.js +60 -0
- package/dist/commands/users/upload.d.ts +9 -0
- package/dist/commands/users/upload.js +65 -0
- package/dist/commands/workflow-template-definitions/install.d.ts +6 -0
- package/dist/commands/workflow-template-definitions/install.js +17 -0
- package/dist/commands/workflow-template-definitions/list.d.ts +6 -0
- package/dist/commands/workflow-template-definitions/list.js +17 -0
- package/dist/commands/workflow-templates/delete.d.ts +6 -0
- package/dist/commands/workflow-templates/delete.js +17 -0
- package/dist/commands/workflow-templates/list.d.ts +6 -0
- package/dist/commands/workflow-templates/list.js +17 -0
- package/dist/commands/workflow-templates/load.d.ts +9 -0
- package/dist/commands/workflow-templates/load.js +21 -0
- package/{lib → dist}/common.d.ts +1 -1
- package/dist/common.js +9 -0
- package/{lib/apps/deploy-app → dist/helpers/app}/actions-deployer.d.ts +11 -11
- package/{lib/apps/deploy-app → dist/helpers/app}/actions-deployer.js +122 -114
- package/{lib/apps/deploy-app → dist/helpers/app}/app-deployer.d.ts +8 -8
- package/{lib/apps/deploy-app → dist/helpers/app}/app-deployer.js +98 -93
- package/{lib/apps/deploy-app → dist/helpers/app}/app-template-parsers.d.ts +7 -7
- package/{lib/apps/deploy-app → dist/helpers/app}/app-template-parsers.js +43 -38
- package/dist/helpers/app/load-app-config.d.ts +1 -0
- package/dist/helpers/app/load-app-config.js +18 -0
- package/dist/helpers/app/setup-template.d.ts +1 -0
- package/dist/helpers/app/setup-template.js +38 -0
- package/dist/helpers/colors/helpers.d.ts +4 -0
- package/dist/helpers/colors/helpers.js +74 -0
- package/{lib → dist/helpers}/config/config.d.ts +6 -6
- package/dist/helpers/config/config.js +76 -0
- package/dist/helpers/loader-process/helpers.d.ts +2 -0
- package/{lib/loader-process/loader-process.js → dist/helpers/loader-process/helpers.js} +98 -120
- package/dist/helpers/projects/helpers.d.ts +2 -0
- package/{lib/projects/project-exporter.js → dist/helpers/projects/helpers.js} +165 -187
- package/{lib → dist/helpers}/types/csv-parser.d.ts +1 -1
- package/{lib → dist/helpers}/types/csv-parser.js +56 -51
- package/dist/helpers/types/type-extractor.d.ts +1 -0
- package/dist/helpers/types/type-extractor.js +32 -0
- package/dist/helpers/types/type-parser.d.ts +4 -0
- package/dist/helpers/types/type-parser.js +118 -0
- package/{lib/types/types-uploader.d.ts → dist/helpers/types/type-uploader.d.ts} +1 -1
- package/{lib/types/types-uploader.js → dist/helpers/types/type-uploader.js} +244 -239
- package/{lib → dist/helpers}/workflow-template-definitions/workflow-template-definition-deployer.d.ts +12 -12
- package/{lib → dist/helpers}/workflow-template-definitions/workflow-template-definition-deployer.js +156 -151
- package/{lib/workflow-templates/local-workflow-template-deployer.d.ts → dist/helpers/workflow-templates/helper.d.ts} +17 -11
- package/dist/helpers/workflow-templates/helper.js +166 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/{lib → dist}/interfaces.d.ts +323 -191
- package/dist/interfaces.js +63 -0
- package/{templates → dist/templates}/typescript/Dockerfile +15 -15
- package/{templates → dist/templates}/typescript/README.md +10 -10
- package/{templates → dist/templates}/typescript/app.yml +49 -49
- package/{templates → dist/templates}/typescript/docker_deploy.bat +1 -1
- package/{templates → dist/templates}/typescript/package.json +54 -54
- package/{templates → dist/templates}/typescript/src/actions/logItem.ts +25 -25
- package/{templates → dist/templates}/typescript/src/framework/action-dispatcher.ts +89 -89
- package/{templates → dist/templates}/typescript/src/framework/app-config.ts +26 -26
- package/{templates → dist/templates}/typescript/src/framework/handler.ts +11 -11
- package/{templates → dist/templates}/typescript/src/framework/index.ts +2 -2
- package/{templates → dist/templates}/typescript/src/framework/interfaces.ts +32 -32
- package/{templates → dist/templates}/typescript/src/framework/logger.ts +21 -21
- package/{templates → dist/templates}/typescript/src/framework/mock-server.ts +31 -31
- package/{templates → dist/templates}/typescript/tsconfig.json +28 -28
- package/oclif.manifest.json +821 -0
- package/package.json +116 -72
- package/.eslintrc.js +0 -53
- package/.vscode/settings.json +0 -6
- package/bin/init +0 -4
- package/lib/api/apps.js +0 -85
- package/lib/api/event-workflow-action-definition.js +0 -7
- package/lib/api/event-workflow-template-definition.js +0 -20
- package/lib/api/event-workflow-templates.js +0 -25
- package/lib/apps/create-app/create.d.ts +0 -1
- package/lib/apps/create-app/create.js +0 -60
- package/lib/apps/create-app/setup-template.d.ts +0 -1
- package/lib/apps/create-app/setup-template.js +0 -34
- package/lib/apps/deploy-app/deploy.d.ts +0 -2
- package/lib/apps/deploy-app/deploy.js +0 -58
- package/lib/apps/install-app/app-installer.d.ts +0 -2
- package/lib/apps/install-app/app-installer.js +0 -120
- package/lib/apps/upgrade-app/app-upgrader.d.ts +0 -3
- package/lib/apps/upgrade-app/app-upgrader.js +0 -126
- package/lib/auth/auth.js +0 -2
- package/lib/cli.d.ts +0 -5
- package/lib/cli.js +0 -524
- package/lib/colors/color-loader.d.ts +0 -2
- package/lib/colors/color-loader.js +0 -96
- package/lib/common.js +0 -5
- package/lib/config/config.js +0 -70
- package/lib/config/configCommands.d.ts +0 -3
- package/lib/config/configCommands.js +0 -34
- package/lib/interfaces.js +0 -25
- package/lib/loader-process/loader-process.d.ts +0 -2
- package/lib/projects/interfaces.d.ts +0 -77
- package/lib/projects/interfaces.js +0 -23
- package/lib/projects/project-exporter.d.ts +0 -2
- package/lib/projects/project-uploader.d.ts +0 -1
- package/lib/types/allUploader.d.ts +0 -1
- package/lib/types/allUploader.js +0 -24
- package/lib/types/interfaces.d.ts +0 -55
- package/lib/types/interfaces.js +0 -1
- package/lib/types/option-set-hierarchy-exporter.d.ts +0 -1
- package/lib/types/option-set-hierarchy-parser.d.ts +0 -2
- package/lib/types/option-set-hierarchy-uploader.d.ts +0 -1
- package/lib/types/option-set-merger.d.ts +0 -1
- package/lib/types/option-set-parser.d.ts +0 -3
- package/lib/types/option-set-parser.js +0 -140
- package/lib/types/option-set-uploader.d.ts +0 -1
- package/lib/types/parse-types.d.ts +0 -4
- package/lib/types/parse-types.js +0 -189
- package/lib/types/rule-set-uploader.d.ts +0 -1
- package/lib/types/type-property-policy-uploader.d.ts +0 -1
- package/lib/types/types-properties-merger.d.ts +0 -1
- package/lib/types/types-properties-merger.js +0 -75
- package/lib/types/usage-info-uploader.d.ts +0 -1
- package/lib/users/user-exporter.d.ts +0 -1
- package/lib/users/user-exporter.js +0 -41
- package/lib/users/user-uploader.d.ts +0 -1
- package/lib/users/user-uploader.js +0 -45
- package/lib/workflow-template-definitions/workflow-template-definition-commands.d.ts +0 -2
- package/lib/workflow-template-definitions/workflow-template-definition-commands.js +0 -10
- package/lib/workflow-templates/local-workflow-template-deployer.js +0 -102
- package/lib/workflow-templates/workflow-template-commands.d.ts +0 -4
- package/lib/workflow-templates/workflow-template-commands.js +0 -51
- package/lib/workflow-templates/workflow-template-deployer.d.ts +0 -4
- package/lib/workflow-templates/workflow-template-deployer.js +0 -26
- package/publish.bat +0 -5
- package/publish.sh +0 -5
- package/src/api/apps.ts +0 -97
- package/src/api/event-workflow-action-definition.ts +0 -8
- package/src/api/event-workflow-template-definition.ts +0 -23
- package/src/api/event-workflow-templates.ts +0 -29
- package/src/apps/create-app/create.ts +0 -74
- package/src/apps/create-app/setup-template.ts +0 -38
- package/src/apps/deploy-app/actions-deployer.ts +0 -140
- package/src/apps/deploy-app/app-deployer.ts +0 -105
- package/src/apps/deploy-app/app-template-parsers.ts +0 -44
- package/src/apps/deploy-app/deploy.ts +0 -66
- package/src/apps/install-app/app-installer.ts +0 -126
- package/src/apps/upgrade-app/app-upgrader.ts +0 -132
- package/src/auth/auth.ts +0 -10
- package/src/auth/login.ts +0 -155
- package/src/cli.ts +0 -540
- package/src/colors/color-loader.ts +0 -112
- package/src/colors/colors.csv +0 -866
- package/src/common.ts +0 -5
- package/src/config/config.ts +0 -74
- package/src/config/configCommands.ts +0 -38
- package/src/interfaces.ts +0 -200
- package/src/loader-process/loader-process.ts +0 -152
- package/src/projects/interfaces.ts +0 -73
- package/src/projects/project-exporter.ts +0 -225
- package/src/projects/project-uploader.ts +0 -131
- package/src/types/allUploader.ts +0 -28
- package/src/types/csv-parser.ts +0 -59
- package/src/types/interfaces.ts +0 -58
- package/src/types/option-set-hierarchy-exporter.ts +0 -125
- package/src/types/option-set-hierarchy-parser.ts +0 -169
- package/src/types/option-set-hierarchy-uploader.ts +0 -122
- package/src/types/option-set-merger.ts +0 -124
- package/src/types/option-set-parser.ts +0 -166
- package/src/types/option-set-uploader.ts +0 -108
- package/src/types/parse-types.ts +0 -227
- package/src/types/rule-set-uploader.ts +0 -187
- package/src/types/type-property-policy-uploader.ts +0 -192
- package/src/types/types-extractor.ts +0 -369
- package/src/types/types-properties-merger.ts +0 -90
- package/src/types/types-uploader.ts +0 -271
- package/src/types/usage-info-uploader.ts +0 -139
- package/src/users/user-exporter.ts +0 -52
- package/src/users/user-uploader.ts +0 -58
- package/src/workflow-template-definitions/workflow-template-definition-commands.ts +0 -13
- package/src/workflow-template-definitions/workflow-template-definition-deployer.ts +0 -184
- package/src/workflow-templates/local-workflow-template-deployer.ts +0 -126
- package/src/workflow-templates/workflow-template-commands.ts +0 -59
- package/src/workflow-templates/workflow-template-deployer.ts +0 -30
- package/templates/javascript/actions/example/action.js +0 -38
- package/templates/javascript/app.yml +0 -53
- package/templates/javascript/package.json +0 -23
- package/templates/typescript/package-lock.json +0 -14
- package/tsconfig.json +0 -32
|
@@ -1,191 +1,323 @@
|
|
|
1
|
-
/** Describes the derivative JSON / object represented
|
|
2
|
-
* in app.yml file.
|
|
3
|
-
*/
|
|
4
|
-
export interface AppDeclaration {
|
|
5
|
-
appIdentifier: string;
|
|
6
|
-
appName: string;
|
|
7
|
-
appDescription?: string;
|
|
8
|
-
visibility: 'private' | 'public';
|
|
9
|
-
publisher: string;
|
|
10
|
-
version: string;
|
|
11
|
-
eventWorkflowTriggerKeyMapping: string;
|
|
12
|
-
thumbnail?: string;
|
|
13
|
-
keywords?: Array<string>;
|
|
14
|
-
actions?: {
|
|
15
|
-
[key: string]: AppActionDeclaration;
|
|
16
|
-
};
|
|
17
|
-
appConfiguration: ConfigPropertyElements;
|
|
18
|
-
triggers: {
|
|
19
|
-
[key: string]: AppTriggerDeclaration;
|
|
20
|
-
};
|
|
21
|
-
workflows?: {
|
|
22
|
-
[key: string]: WorkflowDefinition | WorkflowTemplateDeclaration;
|
|
23
|
-
};
|
|
24
|
-
dockerImageRef?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ConfigPropertyElements {
|
|
27
|
-
[key: string]: ConfigPropertyElement;
|
|
28
|
-
}
|
|
29
|
-
export interface ConfigPropertyElement {
|
|
30
|
-
propertyType: string;
|
|
31
|
-
options?: any[];
|
|
32
|
-
label: string;
|
|
33
|
-
dynamic?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface AppActionDeclaration {
|
|
36
|
-
handler: string;
|
|
37
|
-
public?: boolean;
|
|
38
|
-
name: string;
|
|
39
|
-
description?: string;
|
|
40
|
-
actionConfiguration?: ConfigPropertyElements;
|
|
41
|
-
async?: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface AppTriggerDeclaration {
|
|
44
|
-
key: string;
|
|
45
|
-
name: string;
|
|
46
|
-
external?: boolean;
|
|
47
|
-
description?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface WorkflowDefinition {
|
|
50
|
-
id?: string;
|
|
51
|
-
identifier: string;
|
|
52
|
-
name: string;
|
|
53
|
-
triggerKey: string;
|
|
54
|
-
workflowDefinition: WorkflowDefinitionPaths;
|
|
55
|
-
ownerKey: string;
|
|
56
|
-
isActive: boolean;
|
|
57
|
-
public: boolean;
|
|
58
|
-
supportingAppId?: string;
|
|
59
|
-
messageGroupId?: string;
|
|
60
|
-
parallelWorkerCount?: number;
|
|
61
|
-
}
|
|
62
|
-
export interface WorkflowTemplateDeclaration {
|
|
63
|
-
workflows?: {
|
|
64
|
-
[key: string]: WorkflowTemplate;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export interface WorkflowTemplate {
|
|
68
|
-
id?: string;
|
|
69
|
-
identifier?: string;
|
|
70
|
-
name: string;
|
|
71
|
-
triggerKey: string;
|
|
72
|
-
workflowDefinition: WorkflowDefinitionPaths;
|
|
73
|
-
isActive: boolean;
|
|
74
|
-
ownerKey?: string;
|
|
75
|
-
supportingAppId?: string;
|
|
76
|
-
messageGroupId?: string;
|
|
77
|
-
parallelWorkerCount?: number;
|
|
78
|
-
}
|
|
79
|
-
export interface WorkflowDefinitionPaths {
|
|
80
|
-
paths: WorkflowConditional[];
|
|
81
|
-
}
|
|
82
|
-
export interface WorkflowConditional {
|
|
83
|
-
conditional: string;
|
|
84
|
-
actionDefinitionConfigs: ActionDefinitionConfig[];
|
|
85
|
-
}
|
|
86
|
-
export interface ActionDefinitionConfig {
|
|
87
|
-
name: string;
|
|
88
|
-
action: string;
|
|
89
|
-
config?: {
|
|
90
|
-
[key: string]: any;
|
|
91
|
-
};
|
|
92
|
-
id?: string;
|
|
93
|
-
}
|
|
94
|
-
export interface App {
|
|
95
|
-
id: string;
|
|
96
|
-
identifier: string;
|
|
97
|
-
name: string;
|
|
98
|
-
public: boolean;
|
|
99
|
-
description?: string;
|
|
100
|
-
publisher: string;
|
|
101
|
-
thumbnail: string;
|
|
102
|
-
eventWorkflowTriggerKeyMapping: string;
|
|
103
|
-
configProperties?: ConfigProperty[];
|
|
104
|
-
triggerKeyDefinitions?: TriggerKeyDefinition[];
|
|
105
|
-
}
|
|
106
|
-
export interface AppOrg {
|
|
107
|
-
id: string;
|
|
108
|
-
createdOn?: Date;
|
|
109
|
-
updatedOn?: Date;
|
|
110
|
-
createdById?: string;
|
|
111
|
-
updatedById?: string;
|
|
112
|
-
createdBy?: any;
|
|
113
|
-
updatedBy?: any;
|
|
114
|
-
orgId?: string;
|
|
115
|
-
status: AppOrgStatus;
|
|
116
|
-
appId?: string;
|
|
117
|
-
app?: App;
|
|
118
|
-
appVersionId?: string;
|
|
119
|
-
appVersion?: AppVersion;
|
|
120
|
-
apiKey?: AppApiKey;
|
|
121
|
-
appConfig?: any;
|
|
122
|
-
}
|
|
123
|
-
export declare enum AppOrgStatus {
|
|
124
|
-
INSTALLING = "INSTALLING",
|
|
125
|
-
FAILED_INSTALLING = "FAILED_INSTALLING",
|
|
126
|
-
READY = "READY",
|
|
127
|
-
DELETING = "DELETING",
|
|
128
|
-
FAILED_DELETING = "FAILED_DELETING"
|
|
129
|
-
}
|
|
130
|
-
export declare enum AppVersionStatus {
|
|
131
|
-
PUBLISHING = "PUBLISHING",
|
|
132
|
-
FAILED_PUBLISHING = "FAILED_PUBLISHING",
|
|
133
|
-
PUBLISHED = "PUBLISHED",
|
|
134
|
-
ARCHIVING = "ARCHIVING",
|
|
135
|
-
FAILED_ARCHIVING = "FAILED_ARCHIVING",
|
|
136
|
-
ARCHIVED = "ARCHIVED"
|
|
137
|
-
}
|
|
138
|
-
export declare class AppVersion {
|
|
139
|
-
id: string;
|
|
140
|
-
createdOn?: Date;
|
|
141
|
-
updatedOn?: Date;
|
|
142
|
-
createdById?: string;
|
|
143
|
-
updatedById?: string;
|
|
144
|
-
createdBy?: any;
|
|
145
|
-
updatedBy?: any;
|
|
146
|
-
orgId?: string;
|
|
147
|
-
appId?: string;
|
|
148
|
-
app?: App;
|
|
149
|
-
appOrgs?: AppOrg[];
|
|
150
|
-
versionNumber: number;
|
|
151
|
-
status: AppVersionStatus;
|
|
152
|
-
eventWorkflowTriggerKeyMapping: string;
|
|
153
|
-
configProperties?: ConfigProperty[];
|
|
154
|
-
triggerKeyDefinitions?: TriggerKeyDefinition[];
|
|
155
|
-
dockerImageRef?: string;
|
|
156
|
-
}
|
|
157
|
-
export declare class AppApiKey {
|
|
158
|
-
id: string;
|
|
159
|
-
createdOn?: Date;
|
|
160
|
-
updatedOn?: Date;
|
|
161
|
-
createdById?: string;
|
|
162
|
-
updatedById?: string;
|
|
163
|
-
createdBy?: any;
|
|
164
|
-
updatedBy?: any;
|
|
165
|
-
orgId?: string;
|
|
166
|
-
appOrgId?: string;
|
|
167
|
-
appOrg?: AppOrg;
|
|
168
|
-
apiKey?: string;
|
|
169
|
-
}
|
|
170
|
-
export declare class ConfigProperty {
|
|
171
|
-
slug: string;
|
|
172
|
-
propertyType: string;
|
|
173
|
-
options?: any[];
|
|
174
|
-
label: string;
|
|
175
|
-
}
|
|
176
|
-
export interface EventWorkflowActionDefinition {
|
|
177
|
-
id?: string;
|
|
178
|
-
identifier?: string;
|
|
179
|
-
name?: string;
|
|
180
|
-
executeFunctionString?: string;
|
|
181
|
-
ownerKey?: string;
|
|
182
|
-
public?: boolean;
|
|
183
|
-
configProperties?: ConfigProperty[];
|
|
184
|
-
async?: boolean;
|
|
185
|
-
}
|
|
186
|
-
export declare class TriggerKeyDefinition {
|
|
187
|
-
name: string;
|
|
188
|
-
description?: string;
|
|
189
|
-
triggerKey: string;
|
|
190
|
-
external?: boolean;
|
|
191
|
-
}
|
|
1
|
+
/** Describes the derivative JSON / object represented
|
|
2
|
+
* in app.yml file.
|
|
3
|
+
*/
|
|
4
|
+
export interface AppDeclaration {
|
|
5
|
+
appIdentifier: string;
|
|
6
|
+
appName: string;
|
|
7
|
+
appDescription?: string;
|
|
8
|
+
visibility: 'private' | 'public';
|
|
9
|
+
publisher: string;
|
|
10
|
+
version: string;
|
|
11
|
+
eventWorkflowTriggerKeyMapping: string;
|
|
12
|
+
thumbnail?: string;
|
|
13
|
+
keywords?: Array<string>;
|
|
14
|
+
actions?: {
|
|
15
|
+
[key: string]: AppActionDeclaration;
|
|
16
|
+
};
|
|
17
|
+
appConfiguration: ConfigPropertyElements;
|
|
18
|
+
triggers: {
|
|
19
|
+
[key: string]: AppTriggerDeclaration;
|
|
20
|
+
};
|
|
21
|
+
workflows?: {
|
|
22
|
+
[key: string]: WorkflowDefinition | WorkflowTemplateDeclaration;
|
|
23
|
+
};
|
|
24
|
+
dockerImageRef?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ConfigPropertyElements {
|
|
27
|
+
[key: string]: ConfigPropertyElement;
|
|
28
|
+
}
|
|
29
|
+
export interface ConfigPropertyElement {
|
|
30
|
+
propertyType: string;
|
|
31
|
+
options?: any[];
|
|
32
|
+
label: string;
|
|
33
|
+
dynamic?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface AppActionDeclaration {
|
|
36
|
+
handler: string;
|
|
37
|
+
public?: boolean;
|
|
38
|
+
name: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
actionConfiguration?: ConfigPropertyElements;
|
|
41
|
+
async?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface AppTriggerDeclaration {
|
|
44
|
+
key: string;
|
|
45
|
+
name: string;
|
|
46
|
+
external?: boolean;
|
|
47
|
+
description?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface WorkflowDefinition {
|
|
50
|
+
id?: string;
|
|
51
|
+
identifier: string;
|
|
52
|
+
name: string;
|
|
53
|
+
triggerKey: string;
|
|
54
|
+
workflowDefinition: WorkflowDefinitionPaths;
|
|
55
|
+
ownerKey: string;
|
|
56
|
+
isActive: boolean;
|
|
57
|
+
public: boolean;
|
|
58
|
+
supportingAppId?: string;
|
|
59
|
+
messageGroupId?: string;
|
|
60
|
+
parallelWorkerCount?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface WorkflowTemplateDeclaration {
|
|
63
|
+
workflows?: {
|
|
64
|
+
[key: string]: WorkflowTemplate;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface WorkflowTemplate {
|
|
68
|
+
id?: string;
|
|
69
|
+
identifier?: string;
|
|
70
|
+
name: string;
|
|
71
|
+
triggerKey: string;
|
|
72
|
+
workflowDefinition: WorkflowDefinitionPaths;
|
|
73
|
+
isActive: boolean;
|
|
74
|
+
ownerKey?: string;
|
|
75
|
+
supportingAppId?: string;
|
|
76
|
+
messageGroupId?: string;
|
|
77
|
+
parallelWorkerCount?: number;
|
|
78
|
+
}
|
|
79
|
+
export interface WorkflowDefinitionPaths {
|
|
80
|
+
paths: WorkflowConditional[];
|
|
81
|
+
}
|
|
82
|
+
export interface WorkflowConditional {
|
|
83
|
+
conditional: string;
|
|
84
|
+
actionDefinitionConfigs: ActionDefinitionConfig[];
|
|
85
|
+
}
|
|
86
|
+
export interface ActionDefinitionConfig {
|
|
87
|
+
name: string;
|
|
88
|
+
action: string;
|
|
89
|
+
config?: {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
};
|
|
92
|
+
id?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface App {
|
|
95
|
+
id: string;
|
|
96
|
+
identifier: string;
|
|
97
|
+
name: string;
|
|
98
|
+
public: boolean;
|
|
99
|
+
description?: string;
|
|
100
|
+
publisher: string;
|
|
101
|
+
thumbnail: string;
|
|
102
|
+
eventWorkflowTriggerKeyMapping: string;
|
|
103
|
+
configProperties?: ConfigProperty[];
|
|
104
|
+
triggerKeyDefinitions?: TriggerKeyDefinition[];
|
|
105
|
+
}
|
|
106
|
+
export interface AppOrg {
|
|
107
|
+
id: string;
|
|
108
|
+
createdOn?: Date;
|
|
109
|
+
updatedOn?: Date;
|
|
110
|
+
createdById?: string;
|
|
111
|
+
updatedById?: string;
|
|
112
|
+
createdBy?: any;
|
|
113
|
+
updatedBy?: any;
|
|
114
|
+
orgId?: string;
|
|
115
|
+
status: AppOrgStatus;
|
|
116
|
+
appId?: string;
|
|
117
|
+
app?: App;
|
|
118
|
+
appVersionId?: string;
|
|
119
|
+
appVersion?: AppVersion;
|
|
120
|
+
apiKey?: AppApiKey;
|
|
121
|
+
appConfig?: any;
|
|
122
|
+
}
|
|
123
|
+
export declare enum AppOrgStatus {
|
|
124
|
+
INSTALLING = "INSTALLING",
|
|
125
|
+
FAILED_INSTALLING = "FAILED_INSTALLING",
|
|
126
|
+
READY = "READY",
|
|
127
|
+
DELETING = "DELETING",
|
|
128
|
+
FAILED_DELETING = "FAILED_DELETING"
|
|
129
|
+
}
|
|
130
|
+
export declare enum AppVersionStatus {
|
|
131
|
+
PUBLISHING = "PUBLISHING",
|
|
132
|
+
FAILED_PUBLISHING = "FAILED_PUBLISHING",
|
|
133
|
+
PUBLISHED = "PUBLISHED",
|
|
134
|
+
ARCHIVING = "ARCHIVING",
|
|
135
|
+
FAILED_ARCHIVING = "FAILED_ARCHIVING",
|
|
136
|
+
ARCHIVED = "ARCHIVED"
|
|
137
|
+
}
|
|
138
|
+
export declare class AppVersion {
|
|
139
|
+
id: string;
|
|
140
|
+
createdOn?: Date;
|
|
141
|
+
updatedOn?: Date;
|
|
142
|
+
createdById?: string;
|
|
143
|
+
updatedById?: string;
|
|
144
|
+
createdBy?: any;
|
|
145
|
+
updatedBy?: any;
|
|
146
|
+
orgId?: string;
|
|
147
|
+
appId?: string;
|
|
148
|
+
app?: App;
|
|
149
|
+
appOrgs?: AppOrg[];
|
|
150
|
+
versionNumber: number;
|
|
151
|
+
status: AppVersionStatus;
|
|
152
|
+
eventWorkflowTriggerKeyMapping: string;
|
|
153
|
+
configProperties?: ConfigProperty[];
|
|
154
|
+
triggerKeyDefinitions?: TriggerKeyDefinition[];
|
|
155
|
+
dockerImageRef?: string;
|
|
156
|
+
}
|
|
157
|
+
export declare class AppApiKey {
|
|
158
|
+
id: string;
|
|
159
|
+
createdOn?: Date;
|
|
160
|
+
updatedOn?: Date;
|
|
161
|
+
createdById?: string;
|
|
162
|
+
updatedById?: string;
|
|
163
|
+
createdBy?: any;
|
|
164
|
+
updatedBy?: any;
|
|
165
|
+
orgId?: string;
|
|
166
|
+
appOrgId?: string;
|
|
167
|
+
appOrg?: AppOrg;
|
|
168
|
+
apiKey?: string;
|
|
169
|
+
}
|
|
170
|
+
export declare class ConfigProperty {
|
|
171
|
+
slug: string;
|
|
172
|
+
propertyType: string;
|
|
173
|
+
options?: any[];
|
|
174
|
+
label: string;
|
|
175
|
+
}
|
|
176
|
+
export interface EventWorkflowActionDefinition {
|
|
177
|
+
id?: string;
|
|
178
|
+
identifier?: string;
|
|
179
|
+
name?: string;
|
|
180
|
+
executeFunctionString?: string;
|
|
181
|
+
ownerKey?: string;
|
|
182
|
+
public?: boolean;
|
|
183
|
+
configProperties?: ConfigProperty[];
|
|
184
|
+
async?: boolean;
|
|
185
|
+
}
|
|
186
|
+
export declare class TriggerKeyDefinition {
|
|
187
|
+
name: string;
|
|
188
|
+
description?: string;
|
|
189
|
+
triggerKey: string;
|
|
190
|
+
external?: boolean;
|
|
191
|
+
}
|
|
192
|
+
export declare class CommonConfiguration {
|
|
193
|
+
[key: string]: any;
|
|
194
|
+
}
|
|
195
|
+
export declare enum AssortmentType {
|
|
196
|
+
ASSORTMENT = "ASSORTMENT",
|
|
197
|
+
BOARD = "BOARD",
|
|
198
|
+
PLAN = "PLAN",
|
|
199
|
+
SHOWCASE = "SHOWCASE"
|
|
200
|
+
}
|
|
201
|
+
export declare class AssortmentConfiguration {
|
|
202
|
+
identifier: string;
|
|
203
|
+
name: string;
|
|
204
|
+
type: AssortmentType;
|
|
205
|
+
sourceAssortmentIdentifier?: string;
|
|
206
|
+
composedFromAssortmentIdentifiers?: string[];
|
|
207
|
+
ownerAtts?: {
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
};
|
|
210
|
+
assortmentAtts?: {
|
|
211
|
+
[key: string]: any;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
export declare class Folder {
|
|
215
|
+
identifier: string;
|
|
216
|
+
name: string;
|
|
217
|
+
principals: string[];
|
|
218
|
+
assortments: AssortmentConfiguration[];
|
|
219
|
+
subFolders: Folder[];
|
|
220
|
+
}
|
|
221
|
+
export declare class ProjectConfiguration {
|
|
222
|
+
projectName: string;
|
|
223
|
+
identifier: string;
|
|
224
|
+
commonConfig: CommonConfiguration;
|
|
225
|
+
principals: string[];
|
|
226
|
+
assortments: AssortmentConfiguration[];
|
|
227
|
+
subFolders: Folder[];
|
|
228
|
+
}
|
|
229
|
+
export declare class ProjectConfigurationTemplate {
|
|
230
|
+
projectName: string;
|
|
231
|
+
identifier: string;
|
|
232
|
+
commonConfig: CommonConfiguration;
|
|
233
|
+
principals: string[];
|
|
234
|
+
allFolders: FolderSlim[];
|
|
235
|
+
allAssortments: AssortmentConfigurationSlim[];
|
|
236
|
+
allAssortmentRelationships: AssortmentConfigurationRelationships[];
|
|
237
|
+
}
|
|
238
|
+
export declare class FolderSlim {
|
|
239
|
+
identifier: string;
|
|
240
|
+
name: string;
|
|
241
|
+
principals: string[];
|
|
242
|
+
folderIdentifier: string;
|
|
243
|
+
}
|
|
244
|
+
export declare class AssortmentConfigurationSlim {
|
|
245
|
+
identifier: string;
|
|
246
|
+
name: string;
|
|
247
|
+
type: AssortmentType;
|
|
248
|
+
folderIdentifier: string;
|
|
249
|
+
sourceAssortmentIdentifier?: string;
|
|
250
|
+
composedFromAssortmentIdentifiers?: string[];
|
|
251
|
+
ownerAtts?: {
|
|
252
|
+
[key: string]: any;
|
|
253
|
+
};
|
|
254
|
+
assortmentAtts?: {
|
|
255
|
+
[key: string]: any;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
export declare class AssortmentConfigurationRelationships {
|
|
259
|
+
identifier: string;
|
|
260
|
+
sourceAssortmentIdentifier?: string;
|
|
261
|
+
composedFromAssortmentIdentifiers?: string[];
|
|
262
|
+
ownerAtts?: {
|
|
263
|
+
[key: string]: any;
|
|
264
|
+
};
|
|
265
|
+
assortmentAtts?: {
|
|
266
|
+
[key: string]: any;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
export interface ReducedType {
|
|
270
|
+
slug: string;
|
|
271
|
+
label: string;
|
|
272
|
+
typePath: string;
|
|
273
|
+
isArchived: boolean;
|
|
274
|
+
typeProperties: ReducedTypeProperty[];
|
|
275
|
+
}
|
|
276
|
+
export interface ReducedTypeProperty {
|
|
277
|
+
id: string;
|
|
278
|
+
isArchived: boolean;
|
|
279
|
+
propertyType: PropertyType;
|
|
280
|
+
slug: string;
|
|
281
|
+
label: string;
|
|
282
|
+
editable: boolean;
|
|
283
|
+
searchable: boolean;
|
|
284
|
+
core: boolean;
|
|
285
|
+
typePropertyOptionSetName: string;
|
|
286
|
+
formula: string;
|
|
287
|
+
referencedTypeRootSlug: string;
|
|
288
|
+
defaultValue: string;
|
|
289
|
+
propertyLevel: string;
|
|
290
|
+
inherited: boolean;
|
|
291
|
+
formulaFunction?: string;
|
|
292
|
+
validationFunction?: string;
|
|
293
|
+
numberFormat?: any;
|
|
294
|
+
}
|
|
295
|
+
export interface ReducedOptionSet {
|
|
296
|
+
name: string;
|
|
297
|
+
isArchived: boolean;
|
|
298
|
+
optionSet: any[];
|
|
299
|
+
}
|
|
300
|
+
export declare enum PropertyType {
|
|
301
|
+
Text = "text",
|
|
302
|
+
String = "string",
|
|
303
|
+
Number = "number",
|
|
304
|
+
Date = "date",
|
|
305
|
+
Boolean = "boolean",
|
|
306
|
+
MultiSelect = "multi_select",
|
|
307
|
+
SingleSelect = "choice",
|
|
308
|
+
Url = "url",
|
|
309
|
+
Currency = "currency",
|
|
310
|
+
Percent = "percent",
|
|
311
|
+
Rating = "rating",
|
|
312
|
+
Formula = "formula",
|
|
313
|
+
ObjectReference = "object_reference",
|
|
314
|
+
ObjectReferenceList = "object_ref_list",
|
|
315
|
+
DataGrid = "data_grid",
|
|
316
|
+
CascadingSelect = "cascading_select",
|
|
317
|
+
Sequence = "sequence",
|
|
318
|
+
Constant = "constant",
|
|
319
|
+
Composite = "composite",
|
|
320
|
+
UserList = "userList",
|
|
321
|
+
Image = "image",
|
|
322
|
+
Json = "json"
|
|
323
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssortmentConfigurationRelationships = exports.AssortmentConfigurationSlim = exports.FolderSlim = exports.ProjectConfigurationTemplate = exports.ProjectConfiguration = exports.Folder = exports.AssortmentConfiguration = exports.AssortmentType = exports.CommonConfiguration = exports.TriggerKeyDefinition = exports.ConfigProperty = exports.AppApiKey = exports.AppVersion = exports.AppVersionStatus = exports.AppOrgStatus = void 0;
|
|
4
|
+
var AppOrgStatus;
|
|
5
|
+
(function (AppOrgStatus) {
|
|
6
|
+
AppOrgStatus["INSTALLING"] = "INSTALLING";
|
|
7
|
+
AppOrgStatus["FAILED_INSTALLING"] = "FAILED_INSTALLING";
|
|
8
|
+
AppOrgStatus["READY"] = "READY";
|
|
9
|
+
AppOrgStatus["DELETING"] = "DELETING";
|
|
10
|
+
AppOrgStatus["FAILED_DELETING"] = "FAILED_DELETING";
|
|
11
|
+
})(AppOrgStatus = exports.AppOrgStatus || (exports.AppOrgStatus = {}));
|
|
12
|
+
var AppVersionStatus;
|
|
13
|
+
(function (AppVersionStatus) {
|
|
14
|
+
AppVersionStatus["PUBLISHING"] = "PUBLISHING";
|
|
15
|
+
AppVersionStatus["FAILED_PUBLISHING"] = "FAILED_PUBLISHING";
|
|
16
|
+
AppVersionStatus["PUBLISHED"] = "PUBLISHED";
|
|
17
|
+
AppVersionStatus["ARCHIVING"] = "ARCHIVING";
|
|
18
|
+
AppVersionStatus["FAILED_ARCHIVING"] = "FAILED_ARCHIVING";
|
|
19
|
+
AppVersionStatus["ARCHIVED"] = "ARCHIVED";
|
|
20
|
+
})(AppVersionStatus = exports.AppVersionStatus || (exports.AppVersionStatus = {}));
|
|
21
|
+
class AppVersion {
|
|
22
|
+
}
|
|
23
|
+
exports.AppVersion = AppVersion;
|
|
24
|
+
class AppApiKey {
|
|
25
|
+
}
|
|
26
|
+
exports.AppApiKey = AppApiKey;
|
|
27
|
+
class ConfigProperty {
|
|
28
|
+
}
|
|
29
|
+
exports.ConfigProperty = ConfigProperty;
|
|
30
|
+
class TriggerKeyDefinition {
|
|
31
|
+
}
|
|
32
|
+
exports.TriggerKeyDefinition = TriggerKeyDefinition;
|
|
33
|
+
class CommonConfiguration {
|
|
34
|
+
}
|
|
35
|
+
exports.CommonConfiguration = CommonConfiguration;
|
|
36
|
+
var AssortmentType;
|
|
37
|
+
(function (AssortmentType) {
|
|
38
|
+
AssortmentType["ASSORTMENT"] = "ASSORTMENT";
|
|
39
|
+
AssortmentType["BOARD"] = "BOARD";
|
|
40
|
+
AssortmentType["PLAN"] = "PLAN";
|
|
41
|
+
AssortmentType["SHOWCASE"] = "SHOWCASE";
|
|
42
|
+
})(AssortmentType = exports.AssortmentType || (exports.AssortmentType = {}));
|
|
43
|
+
class AssortmentConfiguration {
|
|
44
|
+
}
|
|
45
|
+
exports.AssortmentConfiguration = AssortmentConfiguration;
|
|
46
|
+
class Folder {
|
|
47
|
+
}
|
|
48
|
+
exports.Folder = Folder;
|
|
49
|
+
class ProjectConfiguration {
|
|
50
|
+
}
|
|
51
|
+
exports.ProjectConfiguration = ProjectConfiguration;
|
|
52
|
+
class ProjectConfigurationTemplate {
|
|
53
|
+
}
|
|
54
|
+
exports.ProjectConfigurationTemplate = ProjectConfigurationTemplate;
|
|
55
|
+
class FolderSlim {
|
|
56
|
+
}
|
|
57
|
+
exports.FolderSlim = FolderSlim;
|
|
58
|
+
class AssortmentConfigurationSlim {
|
|
59
|
+
}
|
|
60
|
+
exports.AssortmentConfigurationSlim = AssortmentConfigurationSlim;
|
|
61
|
+
class AssortmentConfigurationRelationships {
|
|
62
|
+
}
|
|
63
|
+
exports.AssortmentConfigurationRelationships = AssortmentConfigurationRelationships;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# docker build -t app-name .
|
|
2
|
-
# docker run -p 9000:8080 app-name
|
|
3
|
-
FROM public.ecr.aws/lambda/nodejs:16
|
|
4
|
-
|
|
5
|
-
# Install NPM dependencies for function
|
|
6
|
-
COPY package* ${LAMBDA_TASK_ROOT}
|
|
7
|
-
COPY app.yml ${LAMBDA_TASK_ROOT}
|
|
8
|
-
RUN npm install
|
|
9
|
-
|
|
10
|
-
COPY tsconfig.json ${LAMBDA_TASK_ROOT}
|
|
11
|
-
COPY src/ ${LAMBDA_TASK_ROOT}/src
|
|
12
|
-
|
|
13
|
-
RUN npm run build
|
|
14
|
-
|
|
15
|
-
CMD ["dist/framework/handler.execute"]
|
|
1
|
+
# docker build -t app-name .
|
|
2
|
+
# docker run -p 9000:8080 app-name
|
|
3
|
+
FROM public.ecr.aws/lambda/nodejs:16
|
|
4
|
+
|
|
5
|
+
# Install NPM dependencies for function
|
|
6
|
+
COPY package* ${LAMBDA_TASK_ROOT}
|
|
7
|
+
COPY app.yml ${LAMBDA_TASK_ROOT}
|
|
8
|
+
RUN npm install
|
|
9
|
+
|
|
10
|
+
COPY tsconfig.json ${LAMBDA_TASK_ROOT}
|
|
11
|
+
COPY src/ ${LAMBDA_TASK_ROOT}/src
|
|
12
|
+
|
|
13
|
+
RUN npm run build
|
|
14
|
+
|
|
15
|
+
CMD ["dist/framework/handler.execute"]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
### building and uploading docker image to ECR
|
|
2
|
-
1. set AWS_REGISTRY environment variable to be able to tag and/or push to ECR
|
|
3
|
-
### Example: xxx.dkr.ecr.us-east-1.amazonaws.com
|
|
4
|
-
1. To build, run, tag, and push using docker, there are npm scripts that can be used.
|
|
5
|
-
2. The npm scripts use the npm package name, version, and config fields to set the appropriate values
|
|
6
|
-
3. OPTIONAL: if you want to inspect the container you can run `npm run docker-run-entry`
|
|
7
|
-
4. OPTIONAL: if you want to run this locally using port 9000, you can run `npm run docker-run`
|
|
8
|
-
5. To tag the image for pushing to ECR `npm run docker-tag`
|
|
9
|
-
6. To push the image to ECR `npm run docker-push`
|
|
10
|
-
7. All the npm scripts have a ':win" version to run on windows
|
|
1
|
+
### building and uploading docker image to ECR
|
|
2
|
+
1. set AWS_REGISTRY environment variable to be able to tag and/or push to ECR
|
|
3
|
+
### Example: xxx.dkr.ecr.us-east-1.amazonaws.com
|
|
4
|
+
1. To build, run, tag, and push using docker, there are npm scripts that can be used.
|
|
5
|
+
2. The npm scripts use the npm package name, version, and config fields to set the appropriate values
|
|
6
|
+
3. OPTIONAL: if you want to inspect the container you can run `npm run docker-run-entry`
|
|
7
|
+
4. OPTIONAL: if you want to run this locally using port 9000, you can run `npm run docker-run`
|
|
8
|
+
5. To tag the image for pushing to ECR `npm run docker-tag`
|
|
9
|
+
6. To push the image to ECR `npm run docker-push`
|
|
10
|
+
7. All the npm scripts have a ':win" version to run on windows
|