@steedos/service-package-registry 2.1.57 → 2.1.58

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.
@@ -0,0 +1,6 @@
1
+
2
+
3
+ export const deployPackage = async (packagePath, packageYml) => {
4
+
5
+ }
6
+
@@ -146,8 +146,41 @@ const getPackageVersions = async (packageName, options)=>{
146
146
  return versions;
147
147
  }
148
148
 
149
+ const scanPackageMetadatas = async (packagePath) => {
150
+ const packageMetadatas = [];
151
+ const result = await metadataApi.loadFileToJson(packagePath, {
152
+ CustomApplication: '*',
153
+ CustomPermissionset: '*',
154
+ CustomProfile: '*',
155
+ CustomObject: '*',
156
+ Layout: '*',
157
+ CustomReport: '*',
158
+ Workflow: '*',
159
+ Flow: '*',
160
+ ApprovalProcess: '*',
161
+ Role: '*',
162
+ FlowRole: '*',
163
+ Query: '*',
164
+ Chart: '*',
165
+ Page: '*',
166
+ Tab: '*',
167
+ });
168
+
169
+ _.each(result, (metadataItems, metadataType) => {
170
+ _.each(metadataItems, (metadata, apiName) => {
171
+ packageMetadatas.push({
172
+ label: metadata.label || metadata.name,
173
+ type: metadataType,
174
+ api_name: apiName
175
+ })
176
+ })
177
+ })
178
+ return packageMetadatas;
179
+ }
180
+
149
181
  module.exports = {
150
182
  maintainSystemFiles,
151
183
  getAllPackages,
152
- getPackageVersions
184
+ getPackageVersions,
185
+ scanPackageMetadatas
153
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-package-registry",
3
- "version": "2.1.57",
3
+ "version": "2.1.58",
4
4
  "description": "",
5
5
  "main": "package.service.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@steedos/service-package-loader": "2.1.57",
12
+ "@steedos/service-package-loader": "2.1.58",
13
13
  "fs-extra": "8.1.0",
14
14
  "i18next": "20.3.2",
15
15
  "json-stringify-safe": "5.0.1",
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "ded65c3ad95afec8827dd81d505684459a3ba019"
29
+ "gitHead": "d89a3267977beaf7c9da5172008a31abef82219a"
30
30
  }