@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,187 +1,165 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
for (const
|
|
133
|
-
if (
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
delete assortment.assortmentType;
|
|
167
|
-
delete assortment.createdById;
|
|
168
|
-
delete assortment.createdForReference;
|
|
169
|
-
delete assortment.createdOn;
|
|
170
|
-
delete assortment.entityType;
|
|
171
|
-
delete assortment.id;
|
|
172
|
-
delete assortment.orgId;
|
|
173
|
-
delete assortment.rootWorkspaceId;
|
|
174
|
-
delete assortment.composedFromAssortmentIds;
|
|
175
|
-
delete assortment.sourceAssortmentIds;
|
|
176
|
-
delete assortment.typeId;
|
|
177
|
-
delete assortment.typePath;
|
|
178
|
-
delete assortment.updatedById;
|
|
179
|
-
delete assortment.updatedOn;
|
|
180
|
-
delete assortment.workspaceId;
|
|
181
|
-
}
|
|
182
|
-
function saveData(data, name) {
|
|
183
|
-
const yamlStr = yaml.dump(data);
|
|
184
|
-
const CURRENT_DIR = process.cwd();
|
|
185
|
-
const separator = getSeparatorByPlatform();
|
|
186
|
-
fs.writeFileSync(CURRENT_DIR + separator + name + '-export.yml', yamlStr, 'utf8');
|
|
187
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exportProject = exports.getProjectFile = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const path = tslib_1.__importStar(require("path"));
|
|
6
|
+
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
7
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
8
|
+
const sdk_1 = require("@contrail/sdk");
|
|
9
|
+
const util_1 = require("@contrail/util");
|
|
10
|
+
function getProjectFile(fileName) {
|
|
11
|
+
const CURRENT_DIR = process.cwd();
|
|
12
|
+
try {
|
|
13
|
+
const fullPath = path.join(CURRENT_DIR, fileName);
|
|
14
|
+
console.log('Getting file from path: ', fullPath);
|
|
15
|
+
const doc = js_yaml_1.default.load(fs_1.default.readFileSync(fullPath, 'utf8'));
|
|
16
|
+
return doc.projectConfiguration;
|
|
17
|
+
}
|
|
18
|
+
catch (e) {
|
|
19
|
+
throw new Error(`ERROR PARSING YAML: ${e}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.getProjectFile = getProjectFile;
|
|
23
|
+
async function exportProject(name) {
|
|
24
|
+
const allWorkspaces = await new sdk_1.Entities().get({
|
|
25
|
+
entityName: 'workspace',
|
|
26
|
+
useSearch: false,
|
|
27
|
+
});
|
|
28
|
+
const workspace = allWorkspaces.find(w => w.name === name);
|
|
29
|
+
if (!workspace) {
|
|
30
|
+
throw new Error('Project was not found.');
|
|
31
|
+
}
|
|
32
|
+
const projectConfiguration = {
|
|
33
|
+
projectName: workspace.name,
|
|
34
|
+
identifier: workspace.identifier,
|
|
35
|
+
principals: [],
|
|
36
|
+
commonConfig: {},
|
|
37
|
+
assortments: [],
|
|
38
|
+
subFolders: []
|
|
39
|
+
};
|
|
40
|
+
projectConfiguration.principals = await getFolderPrincipals(workspace);
|
|
41
|
+
const allAssortments = [];
|
|
42
|
+
await getAssortmentsAndSubFolders(workspace.id, projectConfiguration.assortments, projectConfiguration.subFolders, allAssortments);
|
|
43
|
+
await convertRelationshipsInFolders(projectConfiguration, allAssortments);
|
|
44
|
+
saveData({ projectConfiguration: projectConfiguration }, name);
|
|
45
|
+
}
|
|
46
|
+
exports.exportProject = exportProject;
|
|
47
|
+
async function getAssortmentsAndSubFolders(parentId, assortments, subFolders, allAssortments) {
|
|
48
|
+
const workspaceAssortments = await new sdk_1.Entities().get({
|
|
49
|
+
entityName: 'assortment',
|
|
50
|
+
criteria: {
|
|
51
|
+
workspaceId: parentId,
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const integrationAssortments = workspaceAssortments === null || workspaceAssortments === void 0 ? void 0 : workspaceAssortments.filter(a => a.assortmentType === 'INTEGRATION');
|
|
55
|
+
if ((integrationAssortments === null || integrationAssortments === void 0 ? void 0 : integrationAssortments.length) > 0) {
|
|
56
|
+
allAssortments.push(...integrationAssortments);
|
|
57
|
+
for (const a of integrationAssortments) {
|
|
58
|
+
const integrationAssortmentsCopy = util_1.ObjectUtil.cloneDeep(a);
|
|
59
|
+
deleteNonUserKeys(integrationAssortmentsCopy);
|
|
60
|
+
const converted = {
|
|
61
|
+
identifier: a.identifier,
|
|
62
|
+
name: a.name,
|
|
63
|
+
type: 'ASSORTMENT',
|
|
64
|
+
sourceAssortmentIdentifier: [],
|
|
65
|
+
sourceAssortmentIds: a.sourceAssortmentIds,
|
|
66
|
+
composedFromAssortmentIdentifiers: [],
|
|
67
|
+
composedFromAssortmentIds: a.composedFromAssortmentIds,
|
|
68
|
+
assortmentAtts: Object.assign({}, integrationAssortmentsCopy),
|
|
69
|
+
};
|
|
70
|
+
assortments.push(converted);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
console.log('workspaceFolderLinks call');
|
|
74
|
+
const workspaceFolderLinks = await new sdk_1.Entities().get({
|
|
75
|
+
entityName: 'workspace-entity',
|
|
76
|
+
criteria: {
|
|
77
|
+
workspaceId: parentId,
|
|
78
|
+
entityType: 'workspace'
|
|
79
|
+
},
|
|
80
|
+
relations: ['entity']
|
|
81
|
+
});
|
|
82
|
+
const workspaceFolders = workspaceFolderLinks === null || workspaceFolderLinks === void 0 ? void 0 : workspaceFolderLinks.map(wfl => wfl.entity);
|
|
83
|
+
if ((workspaceFolders === null || workspaceFolders === void 0 ? void 0 : workspaceFolders.length) > 0) {
|
|
84
|
+
for (const folder of workspaceFolders) {
|
|
85
|
+
const converted = {
|
|
86
|
+
identifier: folder.identifier,
|
|
87
|
+
name: folder.name,
|
|
88
|
+
principals: [],
|
|
89
|
+
assortments: [],
|
|
90
|
+
subFolders: [],
|
|
91
|
+
};
|
|
92
|
+
converted.principals = await getFolderPrincipals(folder);
|
|
93
|
+
await getAssortmentsAndSubFolders(folder.id, converted.assortments, converted.subFolders, allAssortments);
|
|
94
|
+
subFolders.push(converted);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
async function convertRelationshipsInFolders(folder, allAssortments) {
|
|
99
|
+
if (!(allAssortments.length > 0)) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
convertRelationshipsToIdentifiers(folder.assortments, allAssortments);
|
|
103
|
+
for (const f of folder.subFolders) {
|
|
104
|
+
convertRelationshipsInFolders(f, allAssortments);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function convertRelationshipsToIdentifiers(assortments, allAssortments) {
|
|
108
|
+
if (!(allAssortments.length > 0)) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
for (const assortment of assortments) {
|
|
112
|
+
if (assortment.sourceAssortmentIds) {
|
|
113
|
+
assortment.sourceAssortmentIdentifier = assortment.sourceAssortmentIds.map(id => { var _a; return (_a = allAssortments.find(a => a.id === id)) === null || _a === void 0 ? void 0 : _a.identifier; });
|
|
114
|
+
}
|
|
115
|
+
delete assortment.sourceAssortmentIds;
|
|
116
|
+
if (assortment.composedFromAssortmentIds) {
|
|
117
|
+
assortment.composedFromAssortmentIdentifiers = assortment.composedFromAssortmentIds.map(id => { var _a; return (_a = allAssortments.find(a => a.id === id)) === null || _a === void 0 ? void 0 : _a.identifier; });
|
|
118
|
+
}
|
|
119
|
+
delete assortment.composedFromAssortmentIds;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async function getFolderPrincipals(folder) {
|
|
123
|
+
const principals = [];
|
|
124
|
+
if (!folder.policyOwner) {
|
|
125
|
+
return ['INHERIT'];
|
|
126
|
+
}
|
|
127
|
+
const workspacePrincipals = await new sdk_1.Entities().get({
|
|
128
|
+
entityName: 'workspace-principal',
|
|
129
|
+
criteria: { workspaceId: folder.id },
|
|
130
|
+
relations: ['principal']
|
|
131
|
+
});
|
|
132
|
+
for (const workspacePrincipal of workspacePrincipals) {
|
|
133
|
+
if (workspacePrincipal.principal.email) {
|
|
134
|
+
principals.push(workspacePrincipal.principal.email + '|' + workspacePrincipal.role);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
principals.push(workspacePrincipal.principal.name + '|' + workspacePrincipal.role);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return principals;
|
|
141
|
+
}
|
|
142
|
+
function deleteNonUserKeys(assortment) {
|
|
143
|
+
delete assortment.name;
|
|
144
|
+
delete assortment.identifier;
|
|
145
|
+
delete assortment.assortmentType;
|
|
146
|
+
delete assortment.createdById;
|
|
147
|
+
delete assortment.createdForReference;
|
|
148
|
+
delete assortment.createdOn;
|
|
149
|
+
delete assortment.entityType;
|
|
150
|
+
delete assortment.id;
|
|
151
|
+
delete assortment.orgId;
|
|
152
|
+
delete assortment.rootWorkspaceId;
|
|
153
|
+
delete assortment.composedFromAssortmentIds;
|
|
154
|
+
delete assortment.sourceAssortmentIds;
|
|
155
|
+
delete assortment.typeId;
|
|
156
|
+
delete assortment.typePath;
|
|
157
|
+
delete assortment.updatedById;
|
|
158
|
+
delete assortment.updatedOn;
|
|
159
|
+
delete assortment.workspaceId;
|
|
160
|
+
}
|
|
161
|
+
function saveData(data, name) {
|
|
162
|
+
const yamlStr = js_yaml_1.default.dump(data);
|
|
163
|
+
const CURRENT_DIR = process.cwd();
|
|
164
|
+
fs_1.default.writeFileSync(path.join(CURRENT_DIR, name + '-export.yml'), yamlStr, 'utf8');
|
|
165
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getCSVFromFile(loadFileId: string): Promise<any[]>;
|
|
1
|
+
export declare function getCSVFromFile(loadFileId: string): Promise<any[]>;
|
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
console.log(`
|
|
16
|
-
throw new Error(`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
console.log(
|
|
46
|
-
throw
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCSVFromFile = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const csvtojson_1 = tslib_1.__importDefault(require("csvtojson"));
|
|
6
|
+
const client = tslib_1.__importStar(require("https"));
|
|
7
|
+
const sdk_1 = require("@contrail/sdk");
|
|
8
|
+
async function getCSVFromFile(loadFileId) {
|
|
9
|
+
let file;
|
|
10
|
+
try {
|
|
11
|
+
file = await new sdk_1.Entities().get({ entityName: 'file', id: loadFileId });
|
|
12
|
+
console.log('Got file: ', file);
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
console.log(`Failed to get file: ${loadFileId}`, JSON.stringify(e));
|
|
16
|
+
throw new Error(`Failed to get file: ${loadFileId} - ` + JSON.stringify(e));
|
|
17
|
+
}
|
|
18
|
+
if (!file || !file.downloadUrl) {
|
|
19
|
+
console.log(`File: ${loadFileId} does not have a downloadUrl`);
|
|
20
|
+
throw new Error(`File: ${loadFileId} does not have a downloadUrl`);
|
|
21
|
+
}
|
|
22
|
+
// get csv
|
|
23
|
+
let response;
|
|
24
|
+
try {
|
|
25
|
+
response = await new Promise((resolve, reject) => {
|
|
26
|
+
client.get(file.downloadUrl, function (res) {
|
|
27
|
+
console.log('Status code:', res.statusCode);
|
|
28
|
+
console.log('Status text:', res.statusMessage);
|
|
29
|
+
let body = '';
|
|
30
|
+
res.on('data', (data) => {
|
|
31
|
+
body += data.toString();
|
|
32
|
+
});
|
|
33
|
+
res.on('end', () => {
|
|
34
|
+
console.log('Response body:');
|
|
35
|
+
//console.log(body);
|
|
36
|
+
resolve(body);
|
|
37
|
+
});
|
|
38
|
+
}).on('error', function (e) {
|
|
39
|
+
console.error(e);
|
|
40
|
+
reject(e);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
catch (e) {
|
|
45
|
+
console.log(`Failed to get data from downloadUrl: ${file.downloadUrl}`, e);
|
|
46
|
+
throw e;
|
|
47
|
+
}
|
|
48
|
+
if (!response) {
|
|
49
|
+
console.log('Response is empty');
|
|
50
|
+
throw new Error('Response is empty');
|
|
51
|
+
}
|
|
52
|
+
const csvJson = await (0, csvtojson_1.default)({ flatKeys: true }).fromString(response);
|
|
53
|
+
// console.log('csvJson', csvJson);
|
|
54
|
+
return csvJson;
|
|
55
|
+
}
|
|
56
|
+
exports.getCSVFromFile = getCSVFromFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getTypes(): Promise<any[]>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTypes = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const sdk_1 = require("@contrail/sdk");
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const p_limit_1 = tslib_1.__importDefault(require("p-limit"));
|
|
8
|
+
const limit = (0, p_limit_1.default)(30);
|
|
9
|
+
async function getTypes() {
|
|
10
|
+
console.log('%s Retrieving', chalk_1.default.yellow.bold('TYPES'));
|
|
11
|
+
const entitiesClient = new sdk_1.Entities();
|
|
12
|
+
const types = await entitiesClient.get({
|
|
13
|
+
entityName: 'type',
|
|
14
|
+
});
|
|
15
|
+
console.log(`${chalk_1.default.yellow.bold('TYPES')} Found ${types.length} types`);
|
|
16
|
+
const typesWithProperties = [];
|
|
17
|
+
const promises = [];
|
|
18
|
+
for (const type of types) {
|
|
19
|
+
const promise = limit(async () => {
|
|
20
|
+
const t = await entitiesClient.get({
|
|
21
|
+
entityName: 'type',
|
|
22
|
+
id: type.id,
|
|
23
|
+
relations: ['typeProperties'],
|
|
24
|
+
});
|
|
25
|
+
typesWithProperties.push(t);
|
|
26
|
+
});
|
|
27
|
+
promises.push(promise);
|
|
28
|
+
}
|
|
29
|
+
await Promise.all(promises);
|
|
30
|
+
return typesWithProperties;
|
|
31
|
+
}
|
|
32
|
+
exports.getTypes = getTypes;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function parseTypesFromLocalFiles(fileLocations: string[]): Promise<void>;
|
|
2
|
+
export declare function parseTypesFromTemplateFromLocalFiles(templateFileLocation: string, dataFileLocation: string): Promise<void>;
|
|
3
|
+
export declare function parseTypesFromTemplateAndDataFromLocalFiles(templateFileLocation: string, dataFileLocations: string[]): Promise<void>;
|
|
4
|
+
export declare function parseTypesFromFiles(fileIds: string[]): Promise<void>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseTypesFromFiles = exports.parseTypesFromTemplateAndDataFromLocalFiles = exports.parseTypesFromTemplateFromLocalFiles = exports.parseTypesFromLocalFiles = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const path = tslib_1.__importStar(require("path"));
|
|
6
|
+
const types_1 = require("@contrail/types");
|
|
7
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
8
|
+
const csvToJson = tslib_1.__importStar(require("csvtojson"));
|
|
9
|
+
const login_1 = require("../../auth/login");
|
|
10
|
+
const csv_parser_1 = require("../../helpers/types/csv-parser");
|
|
11
|
+
const yaml = require('js-yaml');
|
|
12
|
+
async function loadDataFromLocalCSV(fileName) {
|
|
13
|
+
const CURRENT_DIR = process.cwd();
|
|
14
|
+
try {
|
|
15
|
+
const fullPath = path.resolve(path.join(CURRENT_DIR, fileName));
|
|
16
|
+
const csvData = await csvToJson.default({ flatKeys: true }).fromFile(fullPath);
|
|
17
|
+
return csvData;
|
|
18
|
+
}
|
|
19
|
+
catch (e) {
|
|
20
|
+
throw new Error(`ERROR PARSING CSV: ${e}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
async function parseTypesFromLocalFiles(fileLocations) {
|
|
24
|
+
const csvJSONData = [];
|
|
25
|
+
for (const fileLocation of fileLocations) {
|
|
26
|
+
try {
|
|
27
|
+
console.log('Getting data for fileLocation: ', fileLocation);
|
|
28
|
+
const csvData = await loadDataFromLocalCSV(fileLocation);
|
|
29
|
+
console.log(`CSV import was successful. ${csvData === null || csvData === void 0 ? void 0 : csvData.length} rows found. Adding to total rows.`);
|
|
30
|
+
csvJSONData.push(...csvData);
|
|
31
|
+
}
|
|
32
|
+
catch (e) {
|
|
33
|
+
console.log('Error importing csv data.', e);
|
|
34
|
+
throw e;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
console.log(`CSV imports were successful. ${csvJSONData === null || csvJSONData === void 0 ? void 0 : csvJSONData.length} total rows found.`);
|
|
38
|
+
const suggestions = (0, types_1.GetSuggestedTypes)(csvJSONData);
|
|
39
|
+
saveData(suggestions.OptionSets, 'parsed_optionSets.yml');
|
|
40
|
+
saveData({ typeProperties: suggestions.TypeProperties }, 'parsed_typeProperties.yml');
|
|
41
|
+
}
|
|
42
|
+
exports.parseTypesFromLocalFiles = parseTypesFromLocalFiles;
|
|
43
|
+
async function parseTypesFromTemplateFromLocalFiles(templateFileLocation, dataFileLocation) {
|
|
44
|
+
let templateCSVData = [];
|
|
45
|
+
let dataCSVData = [];
|
|
46
|
+
try {
|
|
47
|
+
console.log('Getting template from fileLocation: ', templateFileLocation);
|
|
48
|
+
templateCSVData = await loadDataFromLocalCSV(templateFileLocation);
|
|
49
|
+
console.log(`CSV import was successful. ${templateCSVData === null || templateCSVData === void 0 ? void 0 : templateCSVData.length} rows found.`);
|
|
50
|
+
console.log('Getting data from fileLocation: ', dataFileLocation);
|
|
51
|
+
dataCSVData = await loadDataFromLocalCSV(dataFileLocation);
|
|
52
|
+
console.log(`CSV import was successful. ${dataCSVData === null || dataCSVData === void 0 ? void 0 : dataCSVData.length} rows found.`);
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
console.log('Error importing csv data.', e);
|
|
56
|
+
throw e;
|
|
57
|
+
}
|
|
58
|
+
const types = (0, types_1.GetTypesFromTemplate)(templateCSVData, dataCSVData);
|
|
59
|
+
saveData(types.OptionSets, 'parsed_optionSets.yml');
|
|
60
|
+
saveData({ TypePropertiesByEntity: types.TypePropertiesByEntity }, 'parsed_TypePropertiesByEntity.yml');
|
|
61
|
+
}
|
|
62
|
+
exports.parseTypesFromTemplateFromLocalFiles = parseTypesFromTemplateFromLocalFiles;
|
|
63
|
+
async function parseTypesFromTemplateAndDataFromLocalFiles(templateFileLocation, dataFileLocations) {
|
|
64
|
+
let templateCSVData = [];
|
|
65
|
+
try {
|
|
66
|
+
console.log('Getting template from fileLocation: ', templateFileLocation);
|
|
67
|
+
templateCSVData = await loadDataFromLocalCSV(templateFileLocation);
|
|
68
|
+
console.log(`CSV import was successful. ${templateCSVData === null || templateCSVData === void 0 ? void 0 : templateCSVData.length} rows found.`);
|
|
69
|
+
}
|
|
70
|
+
catch (e) {
|
|
71
|
+
console.log('Error importing csv data.', e);
|
|
72
|
+
throw e;
|
|
73
|
+
}
|
|
74
|
+
const dataCSVData = [];
|
|
75
|
+
for (const dataFileLocation of dataFileLocations) {
|
|
76
|
+
try {
|
|
77
|
+
console.log('Getting data for dataFileLocation: ', dataFileLocation);
|
|
78
|
+
const csvData = await loadDataFromLocalCSV(dataFileLocation);
|
|
79
|
+
console.log(`CSV import was successful. ${csvData === null || csvData === void 0 ? void 0 : csvData.length} rows found. Adding to total rows.`);
|
|
80
|
+
dataCSVData.push(...csvData);
|
|
81
|
+
}
|
|
82
|
+
catch (e) {
|
|
83
|
+
console.log('Error importing csv data.', e);
|
|
84
|
+
throw e;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const types = (0, types_1.GetTypesFromTemplateWithOptionSetsFromData)(templateCSVData, dataCSVData);
|
|
88
|
+
saveData(types.OptionSets, 'parsed_optionSets.yml');
|
|
89
|
+
saveData({ TypePropertiesByEntity: types.TypePropertiesByEntity }, 'parsed_TypePropertiesByEntity.yml');
|
|
90
|
+
}
|
|
91
|
+
exports.parseTypesFromTemplateAndDataFromLocalFiles = parseTypesFromTemplateAndDataFromLocalFiles;
|
|
92
|
+
async function parseTypesFromFiles(fileIds) {
|
|
93
|
+
await (0, login_1.authUser)();
|
|
94
|
+
// get csv data
|
|
95
|
+
const csvJSONData = [];
|
|
96
|
+
for (const loadFileId of fileIds) {
|
|
97
|
+
try {
|
|
98
|
+
console.log('Getting data for fileId: ', loadFileId);
|
|
99
|
+
const csvJSON = await (0, csv_parser_1.getCSVFromFile)(loadFileId);
|
|
100
|
+
console.log(`CSV download was successful. ${csvJSON === null || csvJSON === void 0 ? void 0 : csvJSON.length} rows found. Adding to total rows`);
|
|
101
|
+
csvJSONData.push(...csvJSON);
|
|
102
|
+
}
|
|
103
|
+
catch (e) {
|
|
104
|
+
console.log('Error retrieving csv data', e);
|
|
105
|
+
throw e;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
console.log(`CSV downloads were successful. ${csvJSONData === null || csvJSONData === void 0 ? void 0 : csvJSONData.length} total rows found.`);
|
|
109
|
+
const suggestions = (0, types_1.GetSuggestedTypes)(csvJSONData);
|
|
110
|
+
saveData(suggestions.OptionSets, 'parsed_optionSets.yml');
|
|
111
|
+
saveData({ typeProperties: suggestions.TypeProperties }, 'parsed_typeProperties.yml');
|
|
112
|
+
}
|
|
113
|
+
exports.parseTypesFromFiles = parseTypesFromFiles;
|
|
114
|
+
function saveData(data, name) {
|
|
115
|
+
const yamlStr = yaml.dump(data);
|
|
116
|
+
const CURRENT_DIR = process.cwd();
|
|
117
|
+
fs_1.default.writeFileSync(path.resolve(path.join(CURRENT_DIR, name, yamlStr)), 'utf8');
|
|
118
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function uploadTypes(): Promise<void>;
|
|
1
|
+
export declare function uploadTypes(): Promise<void>;
|