@pega/custom-dx-components 0.25.45 → 0.25.47
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/package.json +33 -27
- package/src/tasks/build-jest-assets/index.js +4 -4
- package/src/tasks/bundle/builder/index.js +15 -15
- package/src/tasks/create/index.js +19 -33
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +0 -1
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +0 -1
- package/src/tasks/create-all/index.js +22 -35
- package/src/tasks/delete-pub/helper.js +5 -5
- package/src/tasks/delete-pub/index.js +22 -9
- package/src/tasks/export-archive/index.js +36 -23
- package/src/tasks/init/index.js +62 -59
- package/src/tasks/init/template/package.json.mustache +2 -1
- package/src/tasks/init/template/tasks.config.json +3 -1
- package/src/tasks/list-pub/helper.js +6 -3
- package/src/tasks/list-pub/index.js +22 -13
- package/src/tasks/publish-archive/helper.js +2 -2
- package/src/tasks/publish-archive/index.js +16 -7
- package/src/tasks/show-status/index.js +1 -1
- package/src/tasks/validator/index.js +0 -2
- package/src/util.js +508 -473
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +0 -1
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +0 -1
- package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/create/shared/create-nonce.ts +5 -0
- package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +0 -1
- package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +5 -0
- package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +0 -1
- package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +5 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +1 -1
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +3 -3
- package/tests/functional/localCreateBuildDelete.test.js +1 -1
- package/tests/functional/localCreateListDelete.test.js +1 -1
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +3 -3
- package/tests/functional/localCreatePublishDelete.test.js +1 -1
- package/tests/functional/localCreateRenameDelete.test.js +1 -1
- package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +3 -3
- package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +3 -3
- package/tests/functional/localLibCreateLibExportImportLib.test.js +1 -1
- package/tests/functional/localLibCreateLibExportLib.test.js +1 -1
- package/tests/functional/localLibCreateLibListDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +1 -1
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +3 -3
- package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +1 -1
|
@@ -89,7 +89,8 @@ addDebugLog("listPublished", "", "+");
|
|
|
89
89
|
// local
|
|
90
90
|
const arLibs = await getLocalLibraries();
|
|
91
91
|
|
|
92
|
-
if (
|
|
92
|
+
if (arLibs && arLibs.length > 0) {
|
|
93
|
+
if (libraryName === "") {
|
|
93
94
|
const libAnswers = await inquirer.prompt([
|
|
94
95
|
{
|
|
95
96
|
name: 'library',
|
|
@@ -139,16 +140,22 @@ addDebugLog("listPublished", "", "+");
|
|
|
139
140
|
console.log(chalk.bold.blueBright(`\nList of ${chalk.inverse(`Local`)} ${libraryName}:${selectedVersion} components built on ${builtOn}.`));
|
|
140
141
|
console.table(libData, ['Component', 'Label', 'Version', 'Type', 'Sub Type']);
|
|
141
142
|
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
// No library with that name
|
|
146
|
+
console.log(chalk.redBright(`No local library named: ${libraryName} exists.`));
|
|
147
|
+
console.log(chalk.redBright(`You need to publish library: ${libraryName} first.`));
|
|
148
|
+
addDebugLog("listPublished", "END", "-");
|
|
149
|
+
process.exit(1);
|
|
150
|
+
|
|
151
|
+
}
|
|
152
|
+
|
|
142
153
|
}
|
|
143
154
|
else {
|
|
144
|
-
|
|
145
|
-
console.log(chalk.redBright(`No local library named: ${libraryName} exists.`));
|
|
146
|
-
console.log(chalk.redBright(`You need to publish library: ${libraryName} first.`));
|
|
147
|
-
addDebugLog("listPublished", "END", "-");
|
|
148
|
-
process.exit(1);
|
|
149
|
-
|
|
155
|
+
console.log(chalk.redBright(`\nNo local libraries exist.`));
|
|
150
156
|
}
|
|
151
157
|
|
|
158
|
+
|
|
152
159
|
}
|
|
153
160
|
else {
|
|
154
161
|
|
|
@@ -158,21 +165,22 @@ addDebugLog("listPublished", "END", "-");
|
|
|
158
165
|
|
|
159
166
|
if (arLibs && arLibs.pxResults && arLibs.pxResults.length > 0) {
|
|
160
167
|
|
|
161
|
-
const libs = arLibs.pxResults.map((oLib, index) => ({ name: oLib.pyLabel, value: index}));
|
|
168
|
+
// const libs = arLibs.pxResults.map((oLib, index) => ({ name: oLib.pyLabel, value: index}));
|
|
169
|
+
const libs = arLibs.pxResults.map((oLib, index) => ({ name: oLib.pyLabel + " (" + oLib.pyRuleSet + ":" + oLib.pyRuleSetVersion + ")", value: index}));
|
|
162
170
|
|
|
163
171
|
|
|
164
172
|
const {app_name, app_version } = await getApplicationAndVersionFromToken();
|
|
165
173
|
const serverConfig = await getPegaServerConfig();
|
|
166
174
|
console.log(`\nServer ${chalk.green.bold(`${serverConfig.server}`)}.`);
|
|
167
|
-
console.log(
|
|
168
|
-
console.log(`in ruleset: ${chalk.green.bold(`${serverConfig.rulesetName}:${serverConfig.rulesetVersion}`)}`);
|
|
175
|
+
console.log(`List of libraries (including built on) for Application: ${chalk.bold.green(`${app_name} - ${app_version}`)}`);
|
|
176
|
+
// console.log(`in ruleset: ${chalk.green.bold(`${serverConfig.rulesetName}:${serverConfig.rulesetVersion}`)}`);
|
|
169
177
|
|
|
170
178
|
|
|
171
179
|
const libAnswers = await inquirer.prompt([
|
|
172
180
|
{
|
|
173
181
|
name: 'library',
|
|
174
182
|
type: 'rawlist',
|
|
175
|
-
message: 'Pick library',
|
|
183
|
+
message: 'Pick component library',
|
|
176
184
|
choices: libs
|
|
177
185
|
}
|
|
178
186
|
]);
|
|
@@ -199,8 +207,9 @@ addDebugLog("listPublished", "END", "-");
|
|
|
199
207
|
else {
|
|
200
208
|
// No library with that name
|
|
201
209
|
const serverConfig = await getPegaServerConfig();
|
|
202
|
-
console.log(chalk.redBright(`No server component libraries exist in
|
|
203
|
-
console.log(chalk.redBright(`
|
|
210
|
+
console.log(chalk.redBright(`No server component libraries exist in authenticated application.`));
|
|
211
|
+
// console.log(chalk.redBright(`No server component libraries exist in given ruleset ${chalk.bold(`${serverConfig.rulesetName}:${serverConfig.rulesetVersion}`)}`));
|
|
212
|
+
console.log(chalk.redBright(`You need to publish a library to a ruleset in this application first.`));
|
|
204
213
|
addDebugLog("listPublished", "END", "-");
|
|
205
214
|
process.exit(1);
|
|
206
215
|
|
|
@@ -28,7 +28,7 @@ addDebugLog("getPublishComponentQuestions", `componentKey: ${componentKey}`, "")
|
|
|
28
28
|
{
|
|
29
29
|
name: 'rulesetName',
|
|
30
30
|
message: 'Enter ruleset name',
|
|
31
|
-
default: defaultPegaConfig.
|
|
31
|
+
default: defaultPegaConfig.archiveRulesetName,
|
|
32
32
|
validate: value => {
|
|
33
33
|
if (value.trim()) {
|
|
34
34
|
return true;
|
|
@@ -42,7 +42,7 @@ addDebugLog("getPublishComponentQuestions", `componentKey: ${componentKey}`, "")
|
|
|
42
42
|
{
|
|
43
43
|
name: 'rulesetVersion',
|
|
44
44
|
message: 'Enter ruleset version',
|
|
45
|
-
default: defaultPegaConfig.
|
|
45
|
+
default: defaultPegaConfig.archiveRulesetVersion,
|
|
46
46
|
validate: value => {
|
|
47
47
|
if (validateRulesetVersion(value)) {
|
|
48
48
|
return true;
|
|
@@ -5,7 +5,15 @@ import { join } from 'path';
|
|
|
5
5
|
import fs from 'fs';
|
|
6
6
|
import ora from 'ora';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
zipUnArchiveToTempAndReturnBuffer,
|
|
10
|
+
constructCompleteUrl,
|
|
11
|
+
getHttpsAgent,
|
|
12
|
+
getPegaServerConfig,
|
|
13
|
+
addDebugLog,
|
|
14
|
+
getConfigDefaults,
|
|
15
|
+
zipVersionAndArchive,
|
|
16
|
+
updateServerConfigArchiveRuleSetAndVersion } from '../../util.js';
|
|
9
17
|
|
|
10
18
|
import { getPublishComponentQuestions } from './helper.js';
|
|
11
19
|
|
|
@@ -126,10 +134,6 @@ export const publishComponentLibraryArchiveToServer = async (data, zipContent, d
|
|
|
126
134
|
|
|
127
135
|
|
|
128
136
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
137
|
export default async (orgLibName, selectedVersion) => {
|
|
134
138
|
// console.log(orgLibName + ", " + selectedVersion);
|
|
135
139
|
const configDef = await getConfigDefaults();
|
|
@@ -147,15 +151,15 @@ export default async (orgLibName, selectedVersion) => {
|
|
|
147
151
|
rulesetName, rulesetVersion
|
|
148
152
|
};
|
|
149
153
|
|
|
154
|
+
// update so will get archived
|
|
155
|
+
updateServerConfigArchiveRuleSetAndVersion(content.rulesetName, content.rulesetVersion);
|
|
150
156
|
|
|
151
157
|
if (orgLibName === configDef.currentOrgLib && selectedVersion === configDef.buildVersion) {
|
|
152
158
|
|
|
153
159
|
archiveBeforeStore = true;
|
|
154
160
|
|
|
155
|
-
|
|
156
161
|
if (archiveBeforeStore) {
|
|
157
162
|
|
|
158
|
-
|
|
159
163
|
const archiveFileName = `${orgLibName}_${selectedVersion}.arch.zip`;
|
|
160
164
|
const archiveDirectory = join (mainDirectory, ARCHIVES_PATH, `${orgLibName}`, `${selectedVersion}`);
|
|
161
165
|
const defaultPegaConfig = await getPegaServerConfig();
|
|
@@ -171,6 +175,9 @@ export default async (orgLibName, selectedVersion) => {
|
|
|
171
175
|
let spinner;
|
|
172
176
|
try {
|
|
173
177
|
console.log("");
|
|
178
|
+
// archive it, which will save updated archiveRuleset/Version
|
|
179
|
+
await zipVersionAndArchive(content.libraryName, content.version);
|
|
180
|
+
|
|
174
181
|
spinner = ora(`Exporting to server ${defaultPegaConfig.server}. \n`).start();
|
|
175
182
|
publishComponentLibraryArchiveToServer(content, zipContent, true )
|
|
176
183
|
.then( () => {
|
|
@@ -235,4 +242,6 @@ export default async (orgLibName, selectedVersion) => {
|
|
|
235
242
|
|
|
236
243
|
}
|
|
237
244
|
|
|
245
|
+
|
|
246
|
+
|
|
238
247
|
};
|
|
@@ -16,7 +16,7 @@ export const showCurrentStatus = async () => {
|
|
|
16
16
|
const componentList = await getComponents();
|
|
17
17
|
const isLibraryBased = getLibraryBased();
|
|
18
18
|
const isLibraryBasedCL = getLibraryBasedCL();
|
|
19
|
-
const pegaServer = await getPegaServerConfig();
|
|
19
|
+
const pegaServer = await getPegaServerConfig(true);
|
|
20
20
|
|
|
21
21
|
console.log("");
|
|
22
22
|
console.log("\tCurrent status");
|
|
@@ -47,7 +47,6 @@ const schema = {
|
|
|
47
47
|
organization: { type: 'string' },
|
|
48
48
|
version: { type: 'string' },
|
|
49
49
|
library: { type: 'string' },
|
|
50
|
-
allowedApplications: { type: 'array' },
|
|
51
50
|
type: { type: 'string', enum: COMPONENT_SCHEMA.type.map(({ value }) => value) },
|
|
52
51
|
subtype: {
|
|
53
52
|
anyOf: [{ type: 'string' }, { type: 'array' }],
|
|
@@ -184,7 +183,6 @@ const overrideSchema = {
|
|
|
184
183
|
organization: { type: 'string' },
|
|
185
184
|
version: { type: 'string' },
|
|
186
185
|
library: { type: 'string' },
|
|
187
|
-
allowedApplications: { type: 'array' },
|
|
188
186
|
type: { type: 'string', enum: COMPONENT_SCHEMA.type.map(({ value }) => value) },
|
|
189
187
|
subtype: {
|
|
190
188
|
anyOf: [{ type: 'string' }, { type: 'array' }],
|