sfdx-easy-sources 0.8.3 → 0.9.1-develop.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/lib/commands/easysources/allmeta/minify.d.ts +1 -0
- package/lib/commands/easysources/allmeta/minify.js +17 -2
- package/lib/commands/easysources/allmeta/minify.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/merge.d.ts +1 -3
- package/lib/commands/easysources/objecttranslations/merge.js +46 -17
- package/lib/commands/easysources/objecttranslations/merge.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/minify.d.ts +1 -3
- package/lib/commands/easysources/objecttranslations/minify.js +52 -32
- package/lib/commands/easysources/objecttranslations/minify.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/split.js +79 -55
- package/lib/commands/easysources/objecttranslations/split.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/upsert.d.ts +1 -3
- package/lib/commands/easysources/objecttranslations/upsert.js +109 -75
- package/lib/commands/easysources/objecttranslations/upsert.js.map +1 -1
- package/lib/commands/easysources/permissionsets/clean.js +4 -5
- package/lib/commands/easysources/permissionsets/clean.js.map +1 -1
- package/lib/commands/easysources/permissionsets/delete.js +4 -5
- package/lib/commands/easysources/permissionsets/delete.js.map +1 -1
- package/lib/commands/easysources/permissionsets/minify.js +52 -32
- package/lib/commands/easysources/permissionsets/minify.js.map +1 -1
- package/lib/commands/easysources/profiles/clean.js +4 -5
- package/lib/commands/easysources/profiles/clean.js.map +1 -1
- package/lib/commands/easysources/profiles/delete.js +4 -5
- package/lib/commands/easysources/profiles/delete.js.map +1 -1
- package/lib/commands/easysources/profiles/minify.js +52 -32
- package/lib/commands/easysources/profiles/minify.js.map +1 -1
- package/lib/commands/easysources/profiles/split.js +1 -1
- package/lib/commands/easysources/recordtypes/clean.js +5 -5
- package/lib/commands/easysources/recordtypes/clean.js.map +1 -1
- package/lib/commands/easysources/recordtypes/delete.js +5 -5
- package/lib/commands/easysources/recordtypes/delete.js.map +1 -1
- package/lib/commands/easysources/recordtypes/merge.js +24 -9
- package/lib/commands/easysources/recordtypes/merge.js.map +1 -1
- package/lib/commands/easysources/recordtypes/split.js +58 -40
- package/lib/commands/easysources/recordtypes/split.js.map +1 -1
- package/lib/commands/easysources/recordtypes/updatekey.js +38 -22
- package/lib/commands/easysources/recordtypes/updatekey.js.map +1 -1
- package/lib/commands/easysources/recordtypes/upsert.js +90 -64
- package/lib/commands/easysources/recordtypes/upsert.js.map +1 -1
- package/lib/commands/easysources/translations/minify.js +53 -31
- package/lib/commands/easysources/translations/minify.js.map +1 -1
- package/lib/utils/commands/keyupdater.d.ts +5 -1
- package/lib/utils/commands/keyupdater.js +37 -23
- package/lib/utils/commands/keyupdater.js.map +1 -1
- package/lib/utils/commands/merger.d.ts +4 -0
- package/lib/utils/commands/merger.js +11 -5
- package/lib/utils/commands/merger.js.map +1 -1
- package/lib/utils/commands/splitter.d.ts +5 -1
- package/lib/utils/commands/splitter.js +62 -48
- package/lib/utils/commands/splitter.js.map +1 -1
- package/lib/utils/commands/upserter.d.ts +3 -3
- package/lib/utils/commands/upserter.js +128 -102
- package/lib/utils/commands/upserter.js.map +1 -1
- package/lib/utils/commands/utils.d.ts +11 -0
- package/lib/utils/commands/utils.js +35 -1
- package/lib/utils/commands/utils.js.map +1 -1
- package/lib/utils/constants/constants_applications.d.ts +2 -8
- package/lib/utils/constants/constants_globalvaluesets.d.ts +2 -8
- package/lib/utils/constants/constants_globalvaluesettranslations.d.ts +2 -8
- package/lib/utils/constants/constants_labels.d.ts +2 -8
- package/lib/utils/constants/constants_objecttranslations.d.ts +14 -56
- package/lib/utils/constants/constants_permissionsets.d.ts +2 -8
- package/lib/utils/constants/constants_profiles.d.ts +4 -16
- package/lib/utils/constants/constants_translations.d.ts +12 -48
- package/lib/utils/csvWriter.d.ts +9 -0
- package/lib/utils/csvWriter.js +53 -0
- package/lib/utils/csvWriter.js.map +1 -0
- package/lib/utils/utils.d.ts +1 -4
- package/lib/utils/utils.js +8 -1
- package/lib/utils/utils.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -2
|
@@ -20,10 +20,7 @@ export declare const PROFILE_FLOW_ROOT = "flowAccesses";
|
|
|
20
20
|
export declare const PROFILE_FLOW_HEADER: string[];
|
|
21
21
|
export declare const PROFILE_FLOW_KEY = "flow";
|
|
22
22
|
export declare const PROFILE_LAYOUT_ROOT = "layoutAssignments";
|
|
23
|
-
export declare const PROFILE_LAYOUT_HEADER:
|
|
24
|
-
value: any;
|
|
25
|
-
default: string;
|
|
26
|
-
})[];
|
|
23
|
+
export declare const PROFILE_LAYOUT_HEADER: any[];
|
|
27
24
|
export declare const PROFILE_LAYOUT_KEY: string[];
|
|
28
25
|
export declare const PROFILE_OBJECT_ROOT = "objectPermissions";
|
|
29
26
|
export declare const PROFILE_OBJECT_HEADER: string[];
|
|
@@ -32,10 +29,7 @@ export declare const PROFILE_PAGE_ROOT = "pageAccesses";
|
|
|
32
29
|
export declare const PROFILE_PAGE_HEADER: string[];
|
|
33
30
|
export declare const PROFILE_PAGE_KEY = "apexPage";
|
|
34
31
|
export declare const PROFILE_RECTYPE_ROOT = "recordTypeVisibilities";
|
|
35
|
-
export declare const PROFILE_RECTYPE_HEADER:
|
|
36
|
-
value: any;
|
|
37
|
-
default: string;
|
|
38
|
-
})[];
|
|
32
|
+
export declare const PROFILE_RECTYPE_HEADER: any[];
|
|
39
33
|
export declare const PROFILE_RECTYPE_KEY = "recordType";
|
|
40
34
|
export declare const PROFILE_TAB_ROOT = "tabVisibilities";
|
|
41
35
|
export declare const PROFILE_TAB_HEADER: string[];
|
|
@@ -73,10 +67,7 @@ export declare const PROFILE_ITEMS: {
|
|
|
73
67
|
key: string;
|
|
74
68
|
};
|
|
75
69
|
layoutAssignments: {
|
|
76
|
-
headers:
|
|
77
|
-
value: any;
|
|
78
|
-
default: string;
|
|
79
|
-
})[];
|
|
70
|
+
headers: any[];
|
|
80
71
|
key: string[];
|
|
81
72
|
};
|
|
82
73
|
objectPermissions: {
|
|
@@ -88,10 +79,7 @@ export declare const PROFILE_ITEMS: {
|
|
|
88
79
|
key: string;
|
|
89
80
|
};
|
|
90
81
|
recordTypeVisibilities: {
|
|
91
|
-
headers:
|
|
92
|
-
value: any;
|
|
93
|
-
default: string;
|
|
94
|
-
})[];
|
|
82
|
+
headers: any[];
|
|
95
83
|
key: string;
|
|
96
84
|
};
|
|
97
85
|
tabVisibilities: {
|
|
@@ -1,80 +1,44 @@
|
|
|
1
1
|
export declare const TRANSLAT_APP_ROOT = "customApplications";
|
|
2
|
-
export declare const TRANSLAT_APP_HEADER:
|
|
3
|
-
value: any;
|
|
4
|
-
default: string;
|
|
5
|
-
})[];
|
|
2
|
+
export declare const TRANSLAT_APP_HEADER: any[];
|
|
6
3
|
export declare const TRANSLAT_APP_KEY = "name";
|
|
7
4
|
export declare const TRANSLAT_LABEL_ROOT = "customLabels";
|
|
8
|
-
export declare const TRANSLAT_LABEL_HEADER:
|
|
9
|
-
value: any;
|
|
10
|
-
default: string;
|
|
11
|
-
})[];
|
|
5
|
+
export declare const TRANSLAT_LABEL_HEADER: any[];
|
|
12
6
|
export declare const TRANSLAT_LABEL_KEY = "name";
|
|
13
7
|
export declare const TRANSLAT_CPWLINKS_ROOT = "customPageWebLinks";
|
|
14
|
-
export declare const TRANSLAT_CPWLINKS_HEADER:
|
|
15
|
-
value: any;
|
|
16
|
-
default: string;
|
|
17
|
-
})[];
|
|
8
|
+
export declare const TRANSLAT_CPWLINKS_HEADER: any[];
|
|
18
9
|
export declare const TRANSLAT_CPWLINKS_KEY = "name";
|
|
19
10
|
export declare const TRANSLAT_TAB_ROOT = "customTabs";
|
|
20
|
-
export declare const TRANSLAT_TAB_HEADER:
|
|
21
|
-
value: any;
|
|
22
|
-
default: string;
|
|
23
|
-
})[];
|
|
11
|
+
export declare const TRANSLAT_TAB_HEADER: any[];
|
|
24
12
|
export declare const TRANSLAT_TAB_KEY = "name";
|
|
25
13
|
export declare const TRANSLAT_QACT_ROOT = "quickActions";
|
|
26
|
-
export declare const TRANSLAT_QACT_HEADER:
|
|
27
|
-
value: any;
|
|
28
|
-
default: string;
|
|
29
|
-
})[];
|
|
14
|
+
export declare const TRANSLAT_QACT_HEADER: any[];
|
|
30
15
|
export declare const TRANSLAT_QACT_KEY = "name";
|
|
31
16
|
export declare const TRANSLAT_REPTYPE_ROOT = "reportTypes";
|
|
32
|
-
export declare const TRANSLAT_REPTYPE_HEADER:
|
|
33
|
-
value: any;
|
|
34
|
-
default: string;
|
|
35
|
-
})[];
|
|
17
|
+
export declare const TRANSLAT_REPTYPE_HEADER: any[];
|
|
36
18
|
export declare const TRANSLAT_REPTYPE_KEY: string[];
|
|
37
19
|
export declare const TRANSLATION_ITEMS: {
|
|
38
20
|
customApplications: {
|
|
39
|
-
headers:
|
|
40
|
-
value: any;
|
|
41
|
-
default: string;
|
|
42
|
-
})[];
|
|
21
|
+
headers: any[];
|
|
43
22
|
key: string;
|
|
44
23
|
};
|
|
45
24
|
customLabels: {
|
|
46
|
-
headers:
|
|
47
|
-
value: any;
|
|
48
|
-
default: string;
|
|
49
|
-
})[];
|
|
25
|
+
headers: any[];
|
|
50
26
|
key: string;
|
|
51
27
|
};
|
|
52
28
|
customPageWebLinks: {
|
|
53
|
-
headers:
|
|
54
|
-
value: any;
|
|
55
|
-
default: string;
|
|
56
|
-
})[];
|
|
29
|
+
headers: any[];
|
|
57
30
|
key: string;
|
|
58
31
|
};
|
|
59
32
|
customTabs: {
|
|
60
|
-
headers:
|
|
61
|
-
value: any;
|
|
62
|
-
default: string;
|
|
63
|
-
})[];
|
|
33
|
+
headers: any[];
|
|
64
34
|
key: string;
|
|
65
35
|
};
|
|
66
36
|
quickActions: {
|
|
67
|
-
headers:
|
|
68
|
-
value: any;
|
|
69
|
-
default: string;
|
|
70
|
-
})[];
|
|
37
|
+
headers: any[];
|
|
71
38
|
key: string;
|
|
72
39
|
};
|
|
73
40
|
reportTypes: {
|
|
74
|
-
headers:
|
|
75
|
-
value: any;
|
|
76
|
-
default: string;
|
|
77
|
-
})[];
|
|
41
|
+
headers: any[];
|
|
78
42
|
key: string[];
|
|
79
43
|
};
|
|
80
44
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CsvEngine = void 0;
|
|
4
|
+
const fast_csv_1 = require("fast-csv");
|
|
5
|
+
const localSettings_1 = require("./localSettings");
|
|
6
|
+
var CsvEngine;
|
|
7
|
+
(function (CsvEngine) {
|
|
8
|
+
CsvEngine["FAST_CSV"] = "fast-csv";
|
|
9
|
+
CsvEngine["JSON2CSV"] = "json2csv"; // per backward compatibility
|
|
10
|
+
})(CsvEngine = exports.CsvEngine || (exports.CsvEngine = {}));
|
|
11
|
+
class CsvWriter {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.settings = (0, localSettings_1.loadSettings)();
|
|
14
|
+
}
|
|
15
|
+
async toCsv(data, headers) {
|
|
16
|
+
const engine = this.settings['csv-engine'] === 'json2csv' ? CsvEngine.JSON2CSV : CsvEngine.FAST_CSV;
|
|
17
|
+
let csvContent;
|
|
18
|
+
// Scegli il motore CSV in base alla configurazione
|
|
19
|
+
switch (engine) {
|
|
20
|
+
case CsvEngine.FAST_CSV:
|
|
21
|
+
default:
|
|
22
|
+
// Usa fast-csv (default)
|
|
23
|
+
csvContent = await new Promise((resolve, reject) => {
|
|
24
|
+
let result = '';
|
|
25
|
+
const csvStream = (0, fast_csv_1.format)({
|
|
26
|
+
headers: [...headers, '_tagid'],
|
|
27
|
+
includeEndRowDelimiter: false,
|
|
28
|
+
quote: '"',
|
|
29
|
+
quoteColumns: true,
|
|
30
|
+
quoteHeaders: true // Forza le virgolette sui header
|
|
31
|
+
});
|
|
32
|
+
csvStream
|
|
33
|
+
.on('data', (data) => result += data)
|
|
34
|
+
.on('end', () => resolve(result))
|
|
35
|
+
.on('error', reject);
|
|
36
|
+
// Scrivi ogni riga con i dati processati
|
|
37
|
+
data.forEach(row => csvStream.write(row));
|
|
38
|
+
csvStream.end();
|
|
39
|
+
});
|
|
40
|
+
break;
|
|
41
|
+
case CsvEngine.JSON2CSV:
|
|
42
|
+
// Fallback al vecchio json2csv se necessario (usa gli header originali con unwind)
|
|
43
|
+
const { Parser, transforms: { unwind } } = require('json2csv');
|
|
44
|
+
const transforms = [unwind({ paths: headers })];
|
|
45
|
+
const parser = new Parser({ fields: [...headers, '_tagid'], transforms });
|
|
46
|
+
csvContent = parser.parse(data);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
return csvContent.replace(/
/g, "");
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = CsvWriter;
|
|
53
|
+
//# sourceMappingURL=csvWriter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csvWriter.js","sourceRoot":"","sources":["../../src/utils/csvWriter.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAClC,mDAA+C;AAE/C,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA,CAAC,6BAA6B;AACvD,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAED,MAAqB,SAAS;IAG1B;QACI,IAAI,CAAC,QAAQ,GAAG,IAAA,4BAAY,GAAE,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,IAAW,EAAE,OAAiB;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC;QAEpG,IAAI,UAAkB,CAAC;QAEvB,mDAAmD;QACnD,QAAQ,MAAM,EAAE;YACZ,KAAK,SAAS,CAAC,QAAQ,CAAC;YACxB;gBACI,yBAAyB;gBACzB,UAAU,GAAG,MAAM,IAAI,OAAO,CAA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,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;CACJ;AAhDD,4BAgDC"}
|
package/lib/utils/utils.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export declare function generateTagId(myArray: any, key: any, headers: any): void;
|
|
2
2
|
export declare function sortByKey(myArray: any): any;
|
|
3
|
-
export declare function setDefault(header: any):
|
|
4
|
-
value: any;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
3
|
+
export declare function setDefault(header: any): any;
|
|
7
4
|
export declare function isBlank(str: any): boolean;
|
|
8
5
|
export declare function toArray(arr: any): string[];
|
package/lib/utils/utils.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toArray = exports.isBlank = exports.setDefault = exports.sortByKey = exports.generateTagId = void 0;
|
|
4
|
+
const localSettings_1 = require("./localSettings");
|
|
4
5
|
function generateTagId(myArray, key, headers) {
|
|
5
6
|
if (Array.isArray(key)) {
|
|
6
7
|
for (var i in myArray) {
|
|
@@ -54,7 +55,13 @@ function sortByKey(myArray) {
|
|
|
54
55
|
}
|
|
55
56
|
exports.sortByKey = sortByKey;
|
|
56
57
|
function setDefault(header) {
|
|
57
|
-
|
|
58
|
+
const settings = (0, localSettings_1.loadSettings)();
|
|
59
|
+
if (settings['csv-engine'] === 'json2csv') {
|
|
60
|
+
return { value: header, default: '' };
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return header;
|
|
64
|
+
}
|
|
58
65
|
// var newHeaders = [];
|
|
59
66
|
// for (var field of headers) {
|
|
60
67
|
// newHeaders.push({ value: field, default: 'a' });
|
package/lib/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO;IA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