@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
|
@@ -25,7 +25,8 @@ import { checkPathAccess, showVersion ,
|
|
|
25
25
|
checkLibraryAndArchives,
|
|
26
26
|
getConfigDefaults,
|
|
27
27
|
getSubTypeLabel,
|
|
28
|
-
getMaxPrefixCount
|
|
28
|
+
getMaxPrefixCount,
|
|
29
|
+
getStandaloneMaxPrefixCount
|
|
29
30
|
} from '../../util.js';
|
|
30
31
|
|
|
31
32
|
import { COMPONENT_SCHEMA, COMPONENTS_DIRECTORY_PATH, TASKS_CONFIG_JSON_FILENAME, COMPONENTS_PATH, CATEGORY_CONSTELLATION, SHARED_FILE_NAMES } from '../../constants.js';
|
|
@@ -57,7 +58,7 @@ const copyComponentTemplate = async (options) => {
|
|
|
57
58
|
|
|
58
59
|
export const compileMustacheTemplates = async (
|
|
59
60
|
componentDirectory,
|
|
60
|
-
{ componentKey, componentName, componentLabel, library, version, type, subtype, description, organization
|
|
61
|
+
{ componentKey, componentName, componentLabel, library, version, type, subtype, description, organization }
|
|
61
62
|
) => {
|
|
62
63
|
const files = fs.readdirSync(componentDirectory);
|
|
63
64
|
const componentClassName = convertIntoPascalCase(componentKey);
|
|
@@ -101,17 +102,17 @@ export const compileMustacheTemplates = async (
|
|
|
101
102
|
|
|
102
103
|
const isPicklist = subtype === 'Picklist';
|
|
103
104
|
|
|
104
|
-
if (allowedApplications.trim() === '') {
|
|
105
|
-
|
|
106
|
-
} else {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
105
|
+
// if (allowedApplications.trim() === '') {
|
|
106
|
+
// allowedApplications = [];
|
|
107
|
+
// } else {
|
|
108
|
+
// if (allowedApplications.indexOf(',') !== -1) {
|
|
109
|
+
// allowedApplications = allowedApplications.split(',');
|
|
110
|
+
// }
|
|
111
|
+
// allowedApplications = [].concat(allowedApplications);
|
|
112
|
+
// }
|
|
112
113
|
|
|
113
114
|
|
|
114
|
-
allowedApplications = allowedApplications.filter((el) => !!el.trim()).map((el) => el.trim());
|
|
115
|
+
// allowedApplications = allowedApplications.filter((el) => !!el.trim()).map((el) => el.trim());
|
|
115
116
|
files.forEach((file) => {
|
|
116
117
|
const filePath = path.join(componentDirectory, file);
|
|
117
118
|
|
|
@@ -125,7 +126,6 @@ export const compileMustacheTemplates = async (
|
|
|
125
126
|
ORGANIZATION: organization,
|
|
126
127
|
VERSION: version,
|
|
127
128
|
LIBRARY: library,
|
|
128
|
-
ALLOWEDAPPS: JSON.stringify(allowedApplications),
|
|
129
129
|
TYPE: type,
|
|
130
130
|
SUB_TYPE: JSON.stringify(mustacheSubType),
|
|
131
131
|
SUB_TYPE_LABEL: subTypeLabel,
|
|
@@ -173,7 +173,7 @@ export const compileMustacheTemplates = async (
|
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
export const validateCompile = async (
|
|
176
|
-
{ library, organization, componentName, componentLabel, version, framework, type, subtype, description
|
|
176
|
+
{ library, organization, componentName, componentLabel, version, framework, type, subtype, description },
|
|
177
177
|
options
|
|
178
178
|
) => {
|
|
179
179
|
let sSubType = subtype;
|
|
@@ -257,14 +257,13 @@ export const validateCompile = async (
|
|
|
257
257
|
type,
|
|
258
258
|
subtype,
|
|
259
259
|
description,
|
|
260
|
-
organization
|
|
261
|
-
allowedApplications
|
|
260
|
+
organization
|
|
262
261
|
});
|
|
263
262
|
|
|
264
263
|
console.log(chalk.green(`created ${componentKey} component in ${targetDirectory}`));
|
|
265
264
|
};
|
|
266
265
|
|
|
267
|
-
export const validateCompileAll = async ({ prefix, library, version,
|
|
266
|
+
export const validateCompileAll = async ({ prefix, library, version, organization }, options) => {
|
|
268
267
|
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
269
268
|
|
|
270
269
|
// eslint-disable-next-line no-restricted-syntax, guard-for-in
|
|
@@ -287,8 +286,7 @@ export const validateCompileAll = async ({ prefix, library, version, allowedAppl
|
|
|
287
286
|
version,
|
|
288
287
|
type,
|
|
289
288
|
subtype,
|
|
290
|
-
description
|
|
291
|
-
allowedApplications
|
|
289
|
+
description
|
|
292
290
|
},
|
|
293
291
|
options
|
|
294
292
|
);
|
|
@@ -321,8 +319,7 @@ export const validateCompileAll = async ({ prefix, library, version, allowedAppl
|
|
|
321
319
|
version,
|
|
322
320
|
type,
|
|
323
321
|
subtype,
|
|
324
|
-
description
|
|
325
|
-
allowedApplications
|
|
322
|
+
description
|
|
326
323
|
},
|
|
327
324
|
options
|
|
328
325
|
);
|
|
@@ -353,8 +350,7 @@ export const validateCompileAll = async ({ prefix, library, version, allowedAppl
|
|
|
353
350
|
version,
|
|
354
351
|
type,
|
|
355
352
|
subtype,
|
|
356
|
-
description
|
|
357
|
-
allowedApplications
|
|
353
|
+
description
|
|
358
354
|
},
|
|
359
355
|
options
|
|
360
356
|
);
|
|
@@ -390,27 +386,25 @@ addDebugLog("createAll", "", "+");
|
|
|
390
386
|
const componentDefaults = getConfigDefaults();
|
|
391
387
|
componentDefaults.library = library;
|
|
392
388
|
|
|
393
|
-
if (options.params.length >=
|
|
389
|
+
if (options.params.length >= 7) {
|
|
394
390
|
const prefix = options.params[3];
|
|
395
391
|
const version = options.params[4];
|
|
396
392
|
library = options.params[5];
|
|
397
|
-
const allowedApplications = options.params[6];
|
|
398
393
|
|
|
399
394
|
// overwrite
|
|
400
|
-
organization = options.params[
|
|
395
|
+
organization = options.params[6];
|
|
401
396
|
|
|
402
397
|
await validateCompileAll(
|
|
403
398
|
{
|
|
404
399
|
prefix,
|
|
405
400
|
library,
|
|
406
401
|
version,
|
|
407
|
-
allowedApplications,
|
|
408
402
|
organization
|
|
409
403
|
},
|
|
410
404
|
options
|
|
411
405
|
);
|
|
412
406
|
} else {
|
|
413
|
-
const maxPrefixCount = getMaxPrefixCount();
|
|
407
|
+
const maxPrefixCount = isLibraryBased ? getMaxPrefixCount() : getStandaloneMaxPrefixCount();
|
|
414
408
|
const questions = [
|
|
415
409
|
{
|
|
416
410
|
name: 'prefix',
|
|
@@ -458,12 +452,6 @@ addDebugLog("createAll", "", "+");
|
|
|
458
452
|
return 'Only alphanumeric values are allowed, starting with alphabets';
|
|
459
453
|
},
|
|
460
454
|
when: () => !isLibraryBased
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
name: 'allowedApplications',
|
|
464
|
-
message: 'Please enter the application names to be supported (comma-separated). ',
|
|
465
|
-
suffix: 'Keep empty for all applications',
|
|
466
|
-
when: () => !isLibraryBased
|
|
467
455
|
}
|
|
468
456
|
];
|
|
469
457
|
|
|
@@ -476,7 +464,7 @@ addDebugLog("createAll", "", "+");
|
|
|
476
464
|
library = orgLib.library;
|
|
477
465
|
}
|
|
478
466
|
|
|
479
|
-
const { version
|
|
467
|
+
const { version } = answers;
|
|
480
468
|
let { prefix } = answers;
|
|
481
469
|
prefix = prefix.replace(/[^a-zA-Z0-9 ]/g, '');
|
|
482
470
|
await validateCompileAll(
|
|
@@ -484,7 +472,6 @@ addDebugLog("createAll", "", "+");
|
|
|
484
472
|
prefix,
|
|
485
473
|
library,
|
|
486
474
|
version,
|
|
487
|
-
allowedApplications,
|
|
488
475
|
organization
|
|
489
476
|
},
|
|
490
477
|
options
|
|
@@ -122,7 +122,8 @@ addDebugLog("fetchComponenLibrariessFromInfinity", `apiUrl: ${apiUrl}`, "");
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
// const getInfinityLibraries = async(rulesetName, rulesetVersion) => {
|
|
126
|
+
export const getInfinityLibraries = async() => {
|
|
126
127
|
addDebugLog("getInfinityLibraries", '', "");
|
|
127
128
|
|
|
128
129
|
const { app_name, app_version } = await getApplicationAndVersionFromToken();
|
|
@@ -140,10 +141,9 @@ addDebugLog("getInfinityLibraries", '', "");
|
|
|
140
141
|
|
|
141
142
|
// inquire
|
|
142
143
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
//urlParams =
|
|
146
|
-
|
|
144
|
+
// want to get a list of all for application, so make ruleset/version blank
|
|
145
|
+
let urlParams = `/app-name/${ApplicationName}/app-version/${ApplicationVersion}/rulesetname/""/rulesetversion/""`;
|
|
146
|
+
// let urlParams = `/app-name/${ApplicationName}/app-version/${ApplicationVersion}/rulesetname/${rulesetName}/rulesetversion/${rulesetVersion}`;
|
|
147
147
|
|
|
148
148
|
url = url.concat(urlParams);
|
|
149
149
|
|
|
@@ -3,7 +3,7 @@ import ora from 'ora';
|
|
|
3
3
|
|
|
4
4
|
import chalk from 'chalk';
|
|
5
5
|
|
|
6
|
-
import { showVersion, getC11NB2STokenAndStaticServer, getLocalLibraryVersions, getLibraryBased, deleteLocalLibrary, deleteLocalLibraryVersion, addDebugLog, getConfigDefaults, getLibraryBasedCL, getPegaServerConfig, deleteInfinityServerComponentLibrary, checkAccessTokenExpiration } from '../../util.js';
|
|
6
|
+
import { showVersion, getC11NB2STokenAndStaticServer, getLocalLibraryVersions, getLibraryBased, deleteLocalLibrary, deleteLocalLibraryVersion, addDebugLog, getConfigDefaults, getLibraryBasedCL, getPegaServerConfig, deleteInfinityServerComponentLibrary, checkAccessTokenExpiration, getApplicationAndVersionFromToken } from '../../util.js';
|
|
7
7
|
import { deleteLib } from '@pega/constellation-dx-components-build-utils/index.js';
|
|
8
8
|
|
|
9
9
|
import { getDeleteLibraryQuestions, getLibraryVersionQuestion, getRulesetAndVersionQuestion, SOURCE_OF_COMPONENT_TYPES, getInfinityLibraries } from './helper.js';
|
|
@@ -94,19 +94,28 @@ addDebugLog("deletePublished", "END", "-");
|
|
|
94
94
|
if (isLibraryBasedCL) {
|
|
95
95
|
|
|
96
96
|
const serverConfg = await getPegaServerConfig();
|
|
97
|
+
const { app_name, app_version } = await getApplicationAndVersionFromToken();
|
|
97
98
|
|
|
98
99
|
console.log();
|
|
99
100
|
console.log(`Current server: ${chalk.green.bold(`${serverConfg.server}`)}`);
|
|
101
|
+
console.log(`List of libraries for Application: ${chalk.green.bold(`${app_name} - ${app_version}`)}`);
|
|
100
102
|
|
|
101
|
-
const questions = await getRulesetAndVersionQuestion(serverConfg);
|
|
102
|
-
const answers = await inquirer.prompt(questions);
|
|
103
|
-
const { rulesetName, rulesetVersion } = answers;
|
|
104
103
|
|
|
105
|
-
|
|
104
|
+
// want to get all in application, so ignore ruleset/version questions
|
|
105
|
+
// const questions = await getRulesetAndVersionQuestion(serverConfg);
|
|
106
|
+
// const answers = await inquirer.prompt(questions);
|
|
107
|
+
// const { rulesetName, rulesetVersion } = answers;
|
|
108
|
+
|
|
109
|
+
// const arLibs = await getInfinityLibraries(rulesetName, rulesetVersion);
|
|
110
|
+
const arLibs = await getInfinityLibraries();
|
|
106
111
|
|
|
107
112
|
if (arLibs && arLibs.pxResults && arLibs.pxResults.length > 0) {
|
|
113
|
+
console.log(chalk.bold.yellow(`\n>> Caution...`));
|
|
114
|
+
console.log(chalk.bold.yellow(`>> This list may contain built on libraries if your application is built on an application.`));
|
|
115
|
+
console.log(chalk.bold.yellow(`>> Deleting built on libraries may cause issues with built on application.\n`));
|
|
116
|
+
|
|
108
117
|
|
|
109
|
-
const libs = arLibs.pxResults.map((oLib, index) => ({ name: oLib.pyLabel, value:
|
|
118
|
+
const libs = arLibs.pxResults.map((oLib, index) => ({ name: oLib.pyLabel + " (" + oLib.pyRuleSet + ":" + oLib.pyRuleSetVersion + ")", value: index}));
|
|
110
119
|
|
|
111
120
|
const libAnswers = await inquirer.prompt([
|
|
112
121
|
{
|
|
@@ -117,7 +126,9 @@ addDebugLog("deletePublished", "END", "-");
|
|
|
117
126
|
}
|
|
118
127
|
]);
|
|
119
128
|
|
|
120
|
-
const libraryName = libAnswers.library;
|
|
129
|
+
const libraryName = arLibs.pxResults[libAnswers.library].pyRuleName;
|
|
130
|
+
const rulesetName = arLibs.pxResults[libAnswers.library].pyRuleSet;
|
|
131
|
+
const rulesetVersion = arLibs.pxResults[libAnswers.library].pyRuleSetVersion;
|
|
121
132
|
// let spinner;
|
|
122
133
|
|
|
123
134
|
|
|
@@ -138,8 +149,10 @@ addDebugLog("deletePublished", "END", "-");
|
|
|
138
149
|
else {
|
|
139
150
|
// No library with that name
|
|
140
151
|
const serverConfig = await getPegaServerConfig();
|
|
141
|
-
console.log(
|
|
142
|
-
|
|
152
|
+
console.log("");
|
|
153
|
+
console.log(chalk.redBright(`No server component libraries exist in current authenticated application.`));
|
|
154
|
+
|
|
155
|
+
addDebugLog("listPublished", "END", "-");
|
|
143
156
|
process.exit(1);
|
|
144
157
|
|
|
145
158
|
}
|
|
@@ -288,6 +288,9 @@ export default async options => {
|
|
|
288
288
|
let exportTo = "";
|
|
289
289
|
|
|
290
290
|
if (options.params.length >= 8) {
|
|
291
|
+
|
|
292
|
+
// params pick full, what library/name and path
|
|
293
|
+
// vs no params then we will select the current library
|
|
291
294
|
let fullArchive = options.params[3];
|
|
292
295
|
const libraryName = options.params[4];
|
|
293
296
|
const libraryVersion = options.params[5];
|
|
@@ -306,13 +309,13 @@ export default async options => {
|
|
|
306
309
|
let fullArchive = "";
|
|
307
310
|
|
|
308
311
|
|
|
309
|
-
if (options.params.length >= 5) {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
312
|
+
// if (options.params.length >= 5) {
|
|
313
|
+
// fullArchive = options.params[3];
|
|
314
|
+
// orgLibName = options.params[4];
|
|
315
|
+
// if (options.params.length >= 6) {
|
|
316
|
+
// selectedVersion = options.params[5];
|
|
317
|
+
// }
|
|
318
|
+
// }
|
|
316
319
|
|
|
317
320
|
// diable question to build "CL"
|
|
318
321
|
// if (fullArchive === "" ) {
|
|
@@ -320,6 +323,8 @@ export default async options => {
|
|
|
320
323
|
// const fullArchiveAnswers = await inquirer.prompt(fullArchiveQuestions);
|
|
321
324
|
// ({ fullArchive } = fullArchiveAnswers);
|
|
322
325
|
// }
|
|
326
|
+
|
|
327
|
+
// force full archive, binary deprecated
|
|
323
328
|
fullArchive = "Full";
|
|
324
329
|
|
|
325
330
|
let filePathQuestions;
|
|
@@ -328,6 +333,7 @@ export default async options => {
|
|
|
328
333
|
|
|
329
334
|
// if Binary, then we need to just build the current library, get the results and
|
|
330
335
|
// and export an archive as zip
|
|
336
|
+
// currently this is depricated, we are not going to export a CL as of yet.
|
|
331
337
|
if (fullArchive === "Binary") {
|
|
332
338
|
|
|
333
339
|
inquirer.registerPrompt('fuzzypath', inquirerFuzzyPath);
|
|
@@ -345,19 +351,31 @@ export default async options => {
|
|
|
345
351
|
|
|
346
352
|
}
|
|
347
353
|
else {
|
|
348
|
-
if (orgLibName === "") {
|
|
349
|
-
const libraryQuestion = await getLibraryQuestion();
|
|
350
|
-
const libraryAnswers = await inquirer.prompt(libraryQuestion);
|
|
351
|
-
({ orgLibName } = libraryAnswers);
|
|
352
|
-
}
|
|
353
354
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
}
|
|
355
|
+
const configDef = getConfigDefaults();
|
|
356
|
+
orgLibName = configDef.currentOrgLib;
|
|
357
|
+
selectedVersion = configDef.buildVersion;
|
|
358
|
+
|
|
359
|
+
console.log(`\nExporting library ${chalk.bold.green(`${orgLibName}/${selectedVersion}`)}\n`);
|
|
360
|
+
|
|
361
|
+
// deprecating this code, only export current libary, don't ask for others
|
|
362
|
+
// need to switchLib/Version to that library to export it
|
|
363
|
+
|
|
364
|
+
// await zipVersionAndArchive(configDef.currentOrgLib, configDef.buildVersion);
|
|
365
|
+
// console.log(chalk.bold.yellow(`Exporting from local store, be sure to "npm run storeLibVersion" if archiving current library.\n`));
|
|
366
|
+
// if (orgLibName === "") {
|
|
367
|
+
// const libraryQuestion = await getLibraryQuestion();
|
|
368
|
+
// const libraryAnswers = await inquirer.prompt(libraryQuestion);
|
|
369
|
+
// ({ orgLibName } = libraryAnswers);
|
|
370
|
+
// }
|
|
371
|
+
|
|
372
|
+
// if (selectedVersion === "") {
|
|
373
|
+
// const libraryVersionQuestion = await getLibraryVersionQuestion(orgLibName);
|
|
374
|
+
// const libraryVersionAnswer = await inquirer.prompt(libraryVersionQuestion);
|
|
375
|
+
// ({ selectedVersion } = libraryVersionAnswer);
|
|
376
|
+
// }
|
|
377
|
+
|
|
359
378
|
|
|
360
|
-
// when we can export to server, un comment this out
|
|
361
379
|
if (isLibraryBasedCL) {
|
|
362
380
|
if (exportTo === "") {
|
|
363
381
|
const serverOrDirectoryQuestion = await getServerOrDirectoryQuestion();
|
|
@@ -384,19 +402,14 @@ export default async options => {
|
|
|
384
402
|
else {
|
|
385
403
|
await checkAccessTokenExpiration();
|
|
386
404
|
|
|
387
|
-
// archive it
|
|
388
|
-
await zipVersionAndArchive(orgLibName, selectedVersion);
|
|
389
|
-
|
|
390
405
|
// publish to server
|
|
391
406
|
await publishArchive(orgLibName, selectedVersion);
|
|
392
407
|
|
|
393
408
|
}
|
|
394
409
|
|
|
395
|
-
|
|
396
410
|
}
|
|
397
411
|
|
|
398
412
|
|
|
399
|
-
|
|
400
413
|
}
|
|
401
414
|
|
|
402
415
|
addDebugLog("exportArchive", "END", "-");
|
package/src/tasks/init/index.js
CHANGED
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
|
|
2
1
|
import path from 'path';
|
|
3
2
|
import fs from 'fs';
|
|
4
3
|
import { fileURLToPath } from 'url';
|
|
5
4
|
import { promisify } from 'util';
|
|
5
|
+
import { exec } from 'child_process';
|
|
6
|
+
|
|
6
7
|
import chalk from 'chalk';
|
|
7
8
|
import { execa } from 'execa';
|
|
9
|
+
import ncp from 'ncp';
|
|
8
10
|
import { Listr } from 'listr2';
|
|
9
11
|
import gitignore from 'gitignore';
|
|
10
12
|
import inquirer from 'inquirer';
|
|
11
|
-
import { compileMustacheTemplate, isPascalCase, convertIntoPascalCase, sanitize } from '../../util.js';
|
|
12
|
-
import { getInitProjectQuestions } from './helper.js';
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
import {
|
|
15
|
+
compileMustacheTemplate,
|
|
16
|
+
isPascalCase,
|
|
17
|
+
convertIntoPascalCase,
|
|
18
|
+
sanitize
|
|
19
|
+
} from '../../util.js';
|
|
15
20
|
|
|
21
|
+
import { getInitProjectQuestions } from './helper.js';
|
|
16
22
|
|
|
17
|
-
const
|
|
18
|
-
if (typeof fs.cp === 'function') {
|
|
19
|
-
await fs.promises.cp(src, dest, { recursive: true, errorOnExist: false, force: false });
|
|
20
|
-
}
|
|
21
|
-
};
|
|
23
|
+
const execPromise = promisify(exec);
|
|
22
24
|
|
|
25
|
+
const copy = promisify(ncp);
|
|
26
|
+
const writeGitignore = promisify(gitignore.writeFile);
|
|
27
|
+
const writeFile = promisify(fs.writeFile);
|
|
23
28
|
|
|
24
29
|
const createGitignore = async options => {
|
|
25
30
|
const file = fs.createWriteStream(path.join(options.targetDirectory, '.gitignore'), {
|
|
@@ -32,54 +37,51 @@ const createGitignore = async options => {
|
|
|
32
37
|
};
|
|
33
38
|
|
|
34
39
|
const createLicense = async options => {
|
|
35
|
-
// Write LICENSE file directly
|
|
36
40
|
const targetPath = path.join(options.targetDirectory, 'LICENSE');
|
|
37
41
|
const licenseContent = 'Enter license text here';
|
|
38
|
-
|
|
42
|
+
return writeFile(targetPath, licenseContent, 'utf8');
|
|
39
43
|
};
|
|
40
44
|
|
|
41
|
-
|
|
42
45
|
const copyProjectTemplate = async options => {
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
await copy(options.templateDirectory, options.targetDirectory, {
|
|
47
|
+
clobber: false
|
|
48
|
+
});
|
|
45
49
|
const packageJsonPath = path.join(options.targetDirectory, 'package.json.mustache');
|
|
46
50
|
const templateNPMRCPath = path.join(options.targetDirectory, 'templateNPMRC.txt');
|
|
47
51
|
|
|
48
52
|
let { organization, projectName } = options;
|
|
53
|
+
|
|
49
54
|
projectName = sanitize(projectName).toLowerCase();
|
|
55
|
+
|
|
50
56
|
organization = sanitize(organization);
|
|
51
57
|
if (!isPascalCase(organization)) {
|
|
52
58
|
organization = convertIntoPascalCase(organization);
|
|
53
59
|
}
|
|
54
|
-
options = { ...options, organization, projectName };
|
|
55
60
|
|
|
56
|
-
|
|
61
|
+
options = {
|
|
62
|
+
...options,
|
|
63
|
+
organization,
|
|
64
|
+
projectName
|
|
65
|
+
};
|
|
57
66
|
const output = compileMustacheTemplate(packageJsonPath, options);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
//
|
|
62
|
-
|
|
63
|
-
await fs.promises.rename(templateNPMRCPath, templateNPMRCPath.replace('templateNPMRC.txt', '.npmrc'));
|
|
64
|
-
} catch (e) {
|
|
65
|
-
// ignore if not present
|
|
66
|
-
}
|
|
67
|
+
fs.writeFileSync(packageJsonPath, output);
|
|
68
|
+
fs.renameSync(packageJsonPath, packageJsonPath.replace('.mustache', ''));
|
|
69
|
+
|
|
70
|
+
// rename template NPMRC to .npmrc, need to do this because npmjs won't publish an .npmrc file
|
|
71
|
+
fs.renameSync(templateNPMRCPath, templateNPMRCPath.replace('templateNPMRC.txt', '.npmrc'));
|
|
67
72
|
|
|
68
73
|
await createLicense(options);
|
|
69
74
|
};
|
|
70
75
|
|
|
71
|
-
|
|
72
76
|
const initGit = async options => {
|
|
73
|
-
// Use execa for async git init
|
|
74
77
|
const result = await execa('git', ['init'], {
|
|
75
78
|
cwd: options.targetDirectory
|
|
76
79
|
});
|
|
77
80
|
if (result.failed) {
|
|
78
|
-
|
|
81
|
+
return Promise.reject(new Error('Failed to initialize git'));
|
|
79
82
|
}
|
|
80
83
|
};
|
|
81
84
|
|
|
82
|
-
|
|
83
85
|
export default async options => {
|
|
84
86
|
options.templateDirectory = path.resolve(
|
|
85
87
|
path.dirname(fileURLToPath(import.meta.url)),
|
|
@@ -88,28 +90,32 @@ export default async options => {
|
|
|
88
90
|
let projectName = 'test';
|
|
89
91
|
|
|
90
92
|
const questions = getInitProjectQuestions();
|
|
91
|
-
const answers = await inquirer.prompt(questions);
|
|
92
|
-
projectName = sanitize(answers.projectName).toLowerCase();
|
|
93
|
-
options = { ...options, ...answers };
|
|
94
|
-
|
|
95
|
-
const projectDirectory = `./${projectName}`;
|
|
96
|
-
if (!fs.existsSync(projectDirectory)) {
|
|
97
|
-
fs.mkdirSync(projectDirectory);
|
|
98
|
-
} else {
|
|
99
|
-
console.log(chalk.bold.red(`A project with name ${projectName} already exists. Exiting...`));
|
|
100
|
-
process.exit();
|
|
101
|
-
}
|
|
102
93
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
options
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
94
|
+
await inquirer.prompt(questions).then(async answers => {
|
|
95
|
+
projectName = answers.projectName;
|
|
96
|
+
projectName = sanitize(projectName).toLowerCase();
|
|
97
|
+
options = { ...options, ...answers };
|
|
98
|
+
|
|
99
|
+
const projectDirectory = `./${projectName}`;
|
|
100
|
+
|
|
101
|
+
if (!fs.existsSync(projectDirectory)) {
|
|
102
|
+
fs.mkdirSync(projectDirectory);
|
|
103
|
+
} else {
|
|
104
|
+
console.log(chalk.bold.red(`A project with name ${projectName} already exists. Exiting...`));
|
|
105
|
+
process.exit();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const targetDirectory = options.targetDirectory || process.cwd();
|
|
109
|
+
options.targetDirectory = path.join(targetDirectory, projectName);
|
|
110
|
+
options.componentDirectory = path.join(
|
|
111
|
+
options.targetDirectory,
|
|
112
|
+
'node_modules/@pega/custom-dx-components'
|
|
113
|
+
);
|
|
114
|
+
options.componentLibraryUtilsDirectory = path.join(
|
|
115
|
+
options.targetDirectory,
|
|
116
|
+
'node_modules/@pega/constellation-dx-components-build-utils'
|
|
117
|
+
);
|
|
118
|
+
});
|
|
113
119
|
|
|
114
120
|
const installDependenciesText = `Installing dependencies. This will take a couple of minutes.`;
|
|
115
121
|
|
|
@@ -132,38 +138,35 @@ export default async options => {
|
|
|
132
138
|
{
|
|
133
139
|
title: installDependenciesText,
|
|
134
140
|
task: () =>
|
|
135
|
-
|
|
141
|
+
execPromise('npm i --force --production=false', { cwd: options.targetDirectory })
|
|
136
142
|
},
|
|
137
143
|
*/
|
|
138
144
|
{
|
|
139
145
|
title: installDependenciesText,
|
|
140
146
|
task: () =>
|
|
141
|
-
|
|
147
|
+
execPromise('npm i --force --include=dev', { cwd: options.targetDirectory })
|
|
142
148
|
},
|
|
143
149
|
/*
|
|
144
150
|
{
|
|
145
151
|
title: 'Installing tasks dependencies',
|
|
146
152
|
task: () =>
|
|
147
|
-
|
|
153
|
+
execPromise('npm i --force --production=false', { cwd: options.componentDirectory })
|
|
148
154
|
},
|
|
149
155
|
{
|
|
150
156
|
title: 'Installing tasks library dependencies',
|
|
151
157
|
task: () =>
|
|
152
|
-
|
|
158
|
+
execPromise('npm i --force --production=false', {
|
|
153
159
|
cwd: options.componentLibraryUtilsDirectory
|
|
154
160
|
})
|
|
155
161
|
},
|
|
156
162
|
*/
|
|
157
|
-
|
|
158
|
-
/*
|
|
159
163
|
{
|
|
160
164
|
title: 'Updating',
|
|
161
|
-
task: () =>
|
|
165
|
+
task: () => execPromise('npm update --dev', { cwd: options.targetDirectory })
|
|
162
166
|
}
|
|
163
|
-
*/
|
|
164
167
|
/* {
|
|
165
168
|
title: 'Installing quick run',
|
|
166
|
-
task: () =>
|
|
169
|
+
task: () => execPromise('npm i -g npm-quick-run', { cwd: options.targetDirectory })
|
|
167
170
|
} */
|
|
168
171
|
],
|
|
169
172
|
{
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
"react-is": "^18.3.1",
|
|
100
100
|
"react-redux": "^7.2.9",
|
|
101
101
|
"serve": "^14.2.4",
|
|
102
|
+
"shelljs": "^0.8.5",
|
|
102
103
|
"styled-components": "^5.3.11",
|
|
103
104
|
"ts-loader": "^9.5.2"
|
|
104
105
|
},
|
|
@@ -107,7 +108,7 @@
|
|
|
107
108
|
"@babel/preset-react": "^7.27.1",
|
|
108
109
|
"@babel/preset-typescript": "^7.27.1",
|
|
109
110
|
"@pega/configs": "^0.16.3",
|
|
110
|
-
"@pega/custom-dx-components": "~25.
|
|
111
|
+
"@pega/custom-dx-components": "~0.25.47",
|
|
111
112
|
"@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
|
|
112
113
|
"@storybook/addon-actions": "^8.6.14",
|
|
113
114
|
"@storybook/addon-essentials": "^8.6.14",
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
"questions_askAlways": "",
|
|
29
29
|
"questions_askNever": "",
|
|
30
30
|
"questions_askOnce": "server,authService",
|
|
31
|
-
"questions_askedOnce": ""
|
|
31
|
+
"questions_askedOnce": "",
|
|
32
|
+
"archiveRulesetName": "CustomDXArch",
|
|
33
|
+
"archiveRulesetVersion": "01-01-01"
|
|
32
34
|
},
|
|
33
35
|
"component": {
|
|
34
36
|
"library": "YourLibrary",
|
|
@@ -136,10 +136,13 @@ addDebugLog("getInfinityLibraries", '', "");
|
|
|
136
136
|
|
|
137
137
|
const ApplicationName = app_name;
|
|
138
138
|
const ApplicationVersion = app_version;
|
|
139
|
-
const rulesetName = defaultPegaServerConfig.rulesetName;
|
|
140
|
-
const rulesetVersion = defaultPegaServerConfig.rulesetVersion;
|
|
139
|
+
// const rulesetName = defaultPegaServerConfig.rulesetName;
|
|
140
|
+
// const rulesetVersion = defaultPegaServerConfig.rulesetVersion;
|
|
141
|
+
// let urlParams = `/app-name/${ApplicationName}/app-version/${ApplicationVersion}/rulesetname/${rulesetName}/rulesetversion/${rulesetVersion}`;
|
|
142
|
+
|
|
143
|
+
// currently want to get all published libraries for an application, so make ruleset/version blank
|
|
144
|
+
let urlParams = `/app-name/${ApplicationName}/app-version/${ApplicationVersion}/rulesetname/""/rulesetversion/""`;
|
|
141
145
|
|
|
142
|
-
let urlParams = `/app-name/${ApplicationName}/app-version/${ApplicationVersion}/rulesetname/${rulesetName}/rulesetversion/${rulesetVersion}`;
|
|
143
146
|
|
|
144
147
|
url = url.concat(urlParams);
|
|
145
148
|
|