sfdx-easy-sources 0.9.7 → 1.0.0
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/README.md +3 -0
- package/lib/api/applications.d.ts +1 -1
- package/lib/api/applications.js +11 -14
- package/lib/api/applications.js.map +1 -1
- package/lib/api/globalvaluesets.d.ts +1 -1
- package/lib/api/globalvaluesets.js +11 -14
- package/lib/api/globalvaluesets.js.map +1 -1
- package/lib/api/globalvaluesettranslations.d.ts +1 -1
- package/lib/api/globalvaluesettranslations.js +11 -14
- package/lib/api/globalvaluesettranslations.js.map +1 -1
- package/lib/api/labels.d.ts +1 -1
- package/lib/api/labels.js +11 -14
- package/lib/api/labels.js.map +1 -1
- package/lib/api/objecttranslations.d.ts +1 -1
- package/lib/api/objecttranslations.js +15 -18
- package/lib/api/objecttranslations.js.map +1 -1
- package/lib/api/paths.js +6 -10
- package/lib/api/paths.js.map +1 -1
- package/lib/api/permissionsets.d.ts +1 -1
- package/lib/api/permissionsets.js +21 -24
- package/lib/api/permissionsets.js.map +1 -1
- package/lib/api/profiles.d.ts +1 -1
- package/lib/api/profiles.js +21 -24
- package/lib/api/profiles.js.map +1 -1
- package/lib/api/recordtypes.d.ts +1 -1
- package/lib/api/recordtypes.js +15 -18
- package/lib/api/recordtypes.js.map +1 -1
- package/lib/api/translations.d.ts +1 -1
- package/lib/api/translations.js +15 -18
- package/lib/api/translations.js.map +1 -1
- package/lib/commands/easysources/allmeta/merge.d.ts +9 -13
- package/lib/commands/easysources/allmeta/merge.js +31 -34
- package/lib/commands/easysources/allmeta/merge.js.map +1 -1
- package/lib/commands/easysources/allmeta/minify.d.ts +9 -13
- package/lib/commands/easysources/allmeta/minify.js +33 -38
- package/lib/commands/easysources/allmeta/minify.js.map +1 -1
- package/lib/commands/easysources/allmeta/retrieve.d.ts +17 -18
- package/lib/commands/easysources/allmeta/retrieve.js +126 -138
- package/lib/commands/easysources/allmeta/retrieve.js.map +1 -1
- package/lib/commands/easysources/allmeta/split.d.ts +9 -10
- package/lib/commands/easysources/allmeta/split.js +31 -33
- package/lib/commands/easysources/allmeta/split.js.map +1 -1
- package/lib/commands/easysources/allmeta/upsert.d.ts +9 -10
- package/lib/commands/easysources/allmeta/upsert.js +31 -33
- package/lib/commands/easysources/allmeta/upsert.js.map +1 -1
- package/lib/commands/easysources/applications/arealigned.d.ts +12 -16
- package/lib/commands/easysources/applications/arealigned.js +45 -50
- package/lib/commands/easysources/applications/arealigned.js.map +1 -1
- package/lib/commands/easysources/applications/merge.d.ts +11 -15
- package/lib/commands/easysources/applications/merge.js +39 -44
- package/lib/commands/easysources/applications/merge.js.map +1 -1
- package/lib/commands/easysources/applications/split.d.ts +11 -12
- package/lib/commands/easysources/applications/split.js +39 -43
- package/lib/commands/easysources/applications/split.js.map +1 -1
- package/lib/commands/easysources/applications/updatekey.d.ts +10 -11
- package/lib/commands/easysources/applications/updatekey.js +35 -39
- package/lib/commands/easysources/applications/updatekey.js.map +1 -1
- package/lib/commands/easysources/applications/upsert.d.ts +11 -15
- package/lib/commands/easysources/applications/upsert.js +39 -44
- package/lib/commands/easysources/applications/upsert.js.map +1 -1
- package/lib/commands/easysources/globalvaluesets/arealigned.d.ts +12 -16
- package/lib/commands/easysources/globalvaluesets/arealigned.js +45 -50
- package/lib/commands/easysources/globalvaluesets/arealigned.js.map +1 -1
- package/lib/commands/easysources/globalvaluesets/merge.d.ts +11 -15
- package/lib/commands/easysources/globalvaluesets/merge.js +39 -44
- package/lib/commands/easysources/globalvaluesets/merge.js.map +1 -1
- package/lib/commands/easysources/globalvaluesets/split.d.ts +11 -12
- package/lib/commands/easysources/globalvaluesets/split.js +39 -43
- package/lib/commands/easysources/globalvaluesets/split.js.map +1 -1
- package/lib/commands/easysources/globalvaluesets/updatekey.d.ts +10 -11
- package/lib/commands/easysources/globalvaluesets/updatekey.js +35 -39
- package/lib/commands/easysources/globalvaluesets/updatekey.js.map +1 -1
- package/lib/commands/easysources/globalvaluesets/upsert.d.ts +11 -15
- package/lib/commands/easysources/globalvaluesets/upsert.js +39 -44
- package/lib/commands/easysources/globalvaluesets/upsert.js.map +1 -1
- package/lib/commands/easysources/globalvaluesettranslations/arealigned.d.ts +12 -16
- package/lib/commands/easysources/globalvaluesettranslations/arealigned.js +45 -50
- package/lib/commands/easysources/globalvaluesettranslations/arealigned.js.map +1 -1
- package/lib/commands/easysources/globalvaluesettranslations/merge.d.ts +11 -15
- package/lib/commands/easysources/globalvaluesettranslations/merge.js +39 -44
- package/lib/commands/easysources/globalvaluesettranslations/merge.js.map +1 -1
- package/lib/commands/easysources/globalvaluesettranslations/split.d.ts +11 -12
- package/lib/commands/easysources/globalvaluesettranslations/split.js +39 -43
- package/lib/commands/easysources/globalvaluesettranslations/split.js.map +1 -1
- package/lib/commands/easysources/globalvaluesettranslations/updatekey.d.ts +10 -11
- package/lib/commands/easysources/globalvaluesettranslations/updatekey.js +35 -39
- package/lib/commands/easysources/globalvaluesettranslations/updatekey.js.map +1 -1
- package/lib/commands/easysources/globalvaluesettranslations/upsert.d.ts +11 -15
- package/lib/commands/easysources/globalvaluesettranslations/upsert.js +39 -44
- package/lib/commands/easysources/globalvaluesettranslations/upsert.js.map +1 -1
- package/lib/commands/easysources/labels/arealigned.d.ts +10 -14
- package/lib/commands/easysources/labels/arealigned.js +41 -46
- package/lib/commands/easysources/labels/arealigned.js.map +1 -1
- package/lib/commands/easysources/labels/merge.d.ts +9 -13
- package/lib/commands/easysources/labels/merge.js +35 -40
- package/lib/commands/easysources/labels/merge.js.map +1 -1
- package/lib/commands/easysources/labels/split.d.ts +9 -10
- package/lib/commands/easysources/labels/split.js +35 -39
- package/lib/commands/easysources/labels/split.js.map +1 -1
- package/lib/commands/easysources/labels/updatekey.d.ts +8 -9
- package/lib/commands/easysources/labels/updatekey.js +31 -35
- package/lib/commands/easysources/labels/updatekey.js.map +1 -1
- package/lib/commands/easysources/labels/upsert.d.ts +9 -13
- package/lib/commands/easysources/labels/upsert.js +35 -40
- package/lib/commands/easysources/labels/upsert.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/arealigned.d.ts +11 -12
- package/lib/commands/easysources/objecttranslations/arealigned.js +83 -87
- package/lib/commands/easysources/objecttranslations/arealigned.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/clearempty.d.ts +9 -13
- package/lib/commands/easysources/objecttranslations/clearempty.js +50 -55
- package/lib/commands/easysources/objecttranslations/clearempty.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/merge.d.ts +10 -14
- package/lib/commands/easysources/objecttranslations/merge.js +79 -87
- package/lib/commands/easysources/objecttranslations/merge.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/minify.d.ts +10 -14
- package/lib/commands/easysources/objecttranslations/minify.js +59 -64
- package/lib/commands/easysources/objecttranslations/minify.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/split.d.ts +11 -12
- package/lib/commands/easysources/objecttranslations/split.js +74 -78
- package/lib/commands/easysources/objecttranslations/split.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/updatekey.d.ts +10 -11
- package/lib/commands/easysources/objecttranslations/updatekey.js +51 -55
- package/lib/commands/easysources/objecttranslations/updatekey.js.map +1 -1
- package/lib/commands/easysources/objecttranslations/upsert.d.ts +10 -14
- package/lib/commands/easysources/objecttranslations/upsert.js +87 -92
- package/lib/commands/easysources/objecttranslations/upsert.js.map +1 -1
- package/lib/commands/easysources/permissionsets/arealigned.d.ts +11 -12
- package/lib/commands/easysources/permissionsets/arealigned.js +45 -49
- package/lib/commands/easysources/permissionsets/arealigned.js.map +1 -1
- package/lib/commands/easysources/permissionsets/clean.d.ts +19 -23
- package/lib/commands/easysources/permissionsets/clean.js +122 -127
- package/lib/commands/easysources/permissionsets/clean.js.map +1 -1
- package/lib/commands/easysources/permissionsets/clearempty.d.ts +9 -13
- package/lib/commands/easysources/permissionsets/clearempty.js +33 -38
- package/lib/commands/easysources/permissionsets/clearempty.js.map +1 -1
- package/lib/commands/easysources/permissionsets/customupsert.d.ts +11 -15
- package/lib/commands/easysources/permissionsets/customupsert.js +43 -48
- package/lib/commands/easysources/permissionsets/customupsert.js.map +1 -1
- package/lib/commands/easysources/permissionsets/delete.d.ts +11 -15
- package/lib/commands/easysources/permissionsets/delete.js +43 -48
- package/lib/commands/easysources/permissionsets/delete.js.map +1 -1
- package/lib/commands/easysources/permissionsets/merge.d.ts +10 -14
- package/lib/commands/easysources/permissionsets/merge.js +39 -44
- package/lib/commands/easysources/permissionsets/merge.js.map +1 -1
- package/lib/commands/easysources/permissionsets/minify.d.ts +10 -14
- package/lib/commands/easysources/permissionsets/minify.js +58 -63
- package/lib/commands/easysources/permissionsets/minify.js.map +1 -1
- package/lib/commands/easysources/permissionsets/split.d.ts +10 -11
- package/lib/commands/easysources/permissionsets/split.js +39 -43
- package/lib/commands/easysources/permissionsets/split.js.map +1 -1
- package/lib/commands/easysources/permissionsets/updatekey.d.ts +9 -10
- package/lib/commands/easysources/permissionsets/updatekey.js +35 -39
- package/lib/commands/easysources/permissionsets/updatekey.js.map +1 -1
- package/lib/commands/easysources/permissionsets/upsert.d.ts +12 -16
- package/lib/commands/easysources/permissionsets/upsert.js +47 -52
- package/lib/commands/easysources/permissionsets/upsert.js.map +1 -1
- package/lib/commands/easysources/profiles/arealigned.d.ts +11 -12
- package/lib/commands/easysources/profiles/arealigned.js +45 -49
- package/lib/commands/easysources/profiles/arealigned.js.map +1 -1
- package/lib/commands/easysources/profiles/clean.d.ts +19 -23
- package/lib/commands/easysources/profiles/clean.js +123 -128
- package/lib/commands/easysources/profiles/clean.js.map +1 -1
- package/lib/commands/easysources/profiles/clearempty.d.ts +9 -13
- package/lib/commands/easysources/profiles/clearempty.js +33 -38
- package/lib/commands/easysources/profiles/clearempty.js.map +1 -1
- package/lib/commands/easysources/profiles/customupsert.d.ts +11 -15
- package/lib/commands/easysources/profiles/customupsert.js +43 -48
- package/lib/commands/easysources/profiles/customupsert.js.map +1 -1
- package/lib/commands/easysources/profiles/delete.d.ts +11 -15
- package/lib/commands/easysources/profiles/delete.js +43 -48
- package/lib/commands/easysources/profiles/delete.js.map +1 -1
- package/lib/commands/easysources/profiles/merge.d.ts +10 -14
- package/lib/commands/easysources/profiles/merge.js +39 -44
- package/lib/commands/easysources/profiles/merge.js.map +1 -1
- package/lib/commands/easysources/profiles/minify.d.ts +10 -14
- package/lib/commands/easysources/profiles/minify.js +58 -63
- package/lib/commands/easysources/profiles/minify.js.map +1 -1
- package/lib/commands/easysources/profiles/split.d.ts +11 -12
- package/lib/commands/easysources/profiles/split.js +45 -49
- package/lib/commands/easysources/profiles/split.js.map +1 -1
- package/lib/commands/easysources/profiles/updatekey.d.ts +9 -10
- package/lib/commands/easysources/profiles/updatekey.js +35 -39
- package/lib/commands/easysources/profiles/updatekey.js.map +1 -1
- package/lib/commands/easysources/profiles/upsert.d.ts +13 -17
- package/lib/commands/easysources/profiles/upsert.js +53 -58
- package/lib/commands/easysources/profiles/upsert.js.map +1 -1
- package/lib/commands/easysources/recordtypes/arealigned.d.ts +14 -15
- package/lib/commands/easysources/recordtypes/arealigned.js +82 -86
- package/lib/commands/easysources/recordtypes/arealigned.js.map +1 -1
- package/lib/commands/easysources/recordtypes/clean.d.ts +18 -22
- package/lib/commands/easysources/recordtypes/clean.js +109 -116
- package/lib/commands/easysources/recordtypes/clean.js.map +1 -1
- package/lib/commands/easysources/recordtypes/delete.d.ts +13 -17
- package/lib/commands/easysources/recordtypes/delete.js +62 -67
- package/lib/commands/easysources/recordtypes/delete.js.map +1 -1
- package/lib/commands/easysources/recordtypes/merge.d.ts +12 -16
- package/lib/commands/easysources/recordtypes/merge.js +69 -75
- package/lib/commands/easysources/recordtypes/merge.js.map +1 -1
- package/lib/commands/easysources/recordtypes/split.d.ts +12 -13
- package/lib/commands/easysources/recordtypes/split.js +76 -80
- package/lib/commands/easysources/recordtypes/split.js.map +1 -1
- package/lib/commands/easysources/recordtypes/updatekey.d.ts +11 -12
- package/lib/commands/easysources/recordtypes/updatekey.js +56 -60
- package/lib/commands/easysources/recordtypes/updatekey.js.map +1 -1
- package/lib/commands/easysources/recordtypes/upsert.d.ts +12 -16
- package/lib/commands/easysources/recordtypes/upsert.js +84 -89
- package/lib/commands/easysources/recordtypes/upsert.js.map +1 -1
- package/lib/commands/easysources/settings/init.d.ts +6 -10
- package/lib/commands/easysources/settings/init.js +18 -21
- package/lib/commands/easysources/settings/init.js.map +1 -1
- package/lib/commands/easysources/translations/arealigned.d.ts +12 -13
- package/lib/commands/easysources/translations/arealigned.js +45 -49
- package/lib/commands/easysources/translations/arealigned.js.map +1 -1
- package/lib/commands/easysources/translations/clearempty.d.ts +10 -14
- package/lib/commands/easysources/translations/clearempty.js +33 -38
- package/lib/commands/easysources/translations/clearempty.js.map +1 -1
- package/lib/commands/easysources/translations/merge.d.ts +11 -15
- package/lib/commands/easysources/translations/merge.js +39 -44
- package/lib/commands/easysources/translations/merge.js.map +1 -1
- package/lib/commands/easysources/translations/minify.d.ts +11 -15
- package/lib/commands/easysources/translations/minify.js +62 -67
- package/lib/commands/easysources/translations/minify.js.map +1 -1
- package/lib/commands/easysources/translations/split.d.ts +11 -12
- package/lib/commands/easysources/translations/split.js +39 -43
- package/lib/commands/easysources/translations/split.js.map +1 -1
- package/lib/commands/easysources/translations/updatekey.d.ts +10 -11
- package/lib/commands/easysources/translations/updatekey.js +35 -39
- package/lib/commands/easysources/translations/updatekey.js.map +1 -1
- package/lib/commands/easysources/translations/upsert.d.ts +11 -15
- package/lib/commands/easysources/translations/upsert.js +39 -44
- package/lib/commands/easysources/translations/upsert.js.map +1 -1
- package/lib/index.d.ts +89 -19
- package/lib/index.js +30 -43
- package/lib/index.js.map +1 -1
- package/lib/utils/commands/alignmentChecker.js +25 -30
- package/lib/utils/commands/alignmentChecker.js.map +1 -1
- package/lib/utils/commands/customupserter.js +105 -30
- package/lib/utils/commands/customupserter.js.map +1 -1
- package/lib/utils/commands/deleter.js +17 -21
- package/lib/utils/commands/deleter.js.map +1 -1
- package/lib/utils/commands/emptyClearer.js +17 -21
- package/lib/utils/commands/emptyClearer.js.map +1 -1
- package/lib/utils/commands/keyupdater.js +18 -22
- package/lib/utils/commands/keyupdater.js.map +1 -1
- package/lib/utils/commands/merger.js +24 -29
- package/lib/utils/commands/merger.js.map +1 -1
- package/lib/utils/commands/splitter.js +31 -35
- package/lib/utils/commands/splitter.js.map +1 -1
- package/lib/utils/commands/upserter.js +37 -41
- package/lib/utils/commands/upserter.js.map +1 -1
- package/lib/utils/commands/utils.js +40 -51
- package/lib/utils/commands/utils.js.map +1 -1
- package/lib/utils/constants/constants.js +9 -12
- package/lib/utils/constants/constants.js.map +1 -1
- package/lib/utils/constants/constants_applications.js +11 -14
- package/lib/utils/constants/constants_applications.js.map +1 -1
- package/lib/utils/constants/constants_globalvaluesets.js +11 -14
- package/lib/utils/constants/constants_globalvaluesets.js.map +1 -1
- package/lib/utils/constants/constants_globalvaluesettranslations.js +11 -14
- package/lib/utils/constants/constants_globalvaluesettranslations.js.map +1 -1
- package/lib/utils/constants/constants_labels.js +11 -14
- package/lib/utils/constants/constants_labels.js.map +1 -1
- package/lib/utils/constants/constants_objecttranslations.js +50 -53
- package/lib/utils/constants/constants_objecttranslations.js.map +1 -1
- package/lib/utils/constants/constants_permissionsets.js +73 -76
- package/lib/utils/constants/constants_permissionsets.js.map +1 -1
- package/lib/utils/constants/constants_profiles.js +85 -88
- package/lib/utils/constants/constants_profiles.js.map +1 -1
- package/lib/utils/constants/constants_recordtypes.js +10 -13
- package/lib/utils/constants/constants_recordtypes.js.map +1 -1
- package/lib/utils/constants/constants_sourcesdownload.d.ts +3 -3
- package/lib/utils/constants/constants_sourcesdownload.js +24 -27
- package/lib/utils/constants/constants_sourcesdownload.js.map +1 -1
- package/lib/utils/constants/constants_translations.js +38 -41
- package/lib/utils/constants/constants_translations.js.map +1 -1
- package/lib/utils/csvWriter.d.ts +0 -6
- package/lib/utils/csvWriter.js +18 -48
- package/lib/utils/csvWriter.js.map +1 -1
- package/lib/utils/filesUtils.d.ts +4 -4
- package/lib/utils/filesUtils.js +29 -48
- package/lib/utils/filesUtils.js.map +1 -1
- package/lib/utils/flatArrayUtils.js +2 -7
- package/lib/utils/flatArrayUtils.js.map +1 -1
- package/lib/utils/localSettings.js +8 -13
- package/lib/utils/localSettings.js.map +1 -1
- package/lib/utils/performance.js +4 -4
- package/lib/utils/performance.js.map +1 -1
- package/lib/utils/utils.js +6 -26
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils/utils_objtransl.d.ts +1 -1
- package/lib/utils/utils_objtransl.js +11 -20
- package/lib/utils/utils_objtransl.js.map +1 -1
- package/lib/utils/utils_recordtypes.js +2 -7
- package/lib/utils/utils_recordtypes.js.map +1 -1
- package/lib/utils/utils_translations.js +2 -7
- package/lib/utils/utils_translations.js.map +1 -1
- package/lib/utils/xmlFormatter.js +5 -8
- package/lib/utils/xmlFormatter.js.map +1 -1
- package/oclif.manifest.json +5696 -1
- package/package.json +31 -53
- package/lib/commands/hello/org.d.ts +0 -17
- package/lib/commands/hello/org.js +0 -72
- package/lib/commands/hello/org.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@ SFDX plugin to simplify the management of Salesforce sources, splitting some lon
|
|
|
4
4
|
|
|
5
5
|
# [BETA]
|
|
6
6
|
|
|
7
|
+
> **🚀 From version 1.0.0, this plugin is fully compatible with the `sf` CLI.** All commands now use the space-separated format (e.g., `sf easysources profiles split`). The legacy `sfdx` colon-separated format is no longer supported.
|
|
8
|
+
|
|
9
|
+
> **📦 From version 1.0.0, this plugin is built as native ES Modules (ESM).** Requires Node.js ≥ 18.
|
|
7
10
|
|
|
8
11
|
[](https://npmjs.org/package/sfdx-easy-sources)
|
|
9
12
|
[](https://snyk.io/test/github/raffo93p/sfdx-easy-sources)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyJson } from '@salesforce/ts-types';
|
|
2
|
-
import { PathOptions } from './paths';
|
|
2
|
+
import { PathOptions } from './paths.js';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Application operation options.
|
|
5
5
|
* All properties are optional and will be resolved automatically from easysources-settings.json if not provided.
|
package/lib/api/applications.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const merge_1 = require("../commands/easysources/applications/merge");
|
|
7
|
-
const arealigned_1 = require("../commands/easysources/applications/arealigned");
|
|
8
|
-
const updatekey_1 = require("../commands/easysources/applications/updatekey");
|
|
1
|
+
import { applicationSplit } from '../commands/easysources/applications/split.js';
|
|
2
|
+
import { applicationUpsert } from '../commands/easysources/applications/upsert.js';
|
|
3
|
+
import { applicationMerge } from '../commands/easysources/applications/merge.js';
|
|
4
|
+
import { applicationAreAligned } from '../commands/easysources/applications/arealigned.js';
|
|
5
|
+
import { applicationUpdateKey } from '../commands/easysources/applications/updatekey.js';
|
|
9
6
|
/**
|
|
10
7
|
* Application namespace containing all programmatic API functions for Salesforce Application metadata operations.
|
|
11
8
|
*
|
|
@@ -33,14 +30,14 @@ const updatekey_1 = require("../commands/easysources/applications/updatekey");
|
|
|
33
30
|
* });
|
|
34
31
|
* ```
|
|
35
32
|
*/
|
|
36
|
-
|
|
33
|
+
export const applications = {
|
|
37
34
|
/**
|
|
38
35
|
* Splits applications into separate files for easier management and version control.
|
|
39
36
|
* @param options Optional configuration, automatically resolved from settings if not provided
|
|
40
37
|
* @returns Promise resolving to operation result
|
|
41
38
|
*/
|
|
42
39
|
split: async (options = {}) => {
|
|
43
|
-
return
|
|
40
|
+
return applicationSplit(options);
|
|
44
41
|
},
|
|
45
42
|
/**
|
|
46
43
|
* Updates or inserts application records from CSV files to Salesforce metadata format.
|
|
@@ -48,7 +45,7 @@ exports.applications = {
|
|
|
48
45
|
* @returns Promise resolving to operation result
|
|
49
46
|
*/
|
|
50
47
|
upsert: async (options = {}) => {
|
|
51
|
-
return
|
|
48
|
+
return applicationUpsert(options);
|
|
52
49
|
},
|
|
53
50
|
/**
|
|
54
51
|
* Merges application files back into unified metadata files.
|
|
@@ -56,7 +53,7 @@ exports.applications = {
|
|
|
56
53
|
* @returns Promise resolving to operation result
|
|
57
54
|
*/
|
|
58
55
|
merge: async (options = {}) => {
|
|
59
|
-
return
|
|
56
|
+
return applicationMerge(options);
|
|
60
57
|
},
|
|
61
58
|
/**
|
|
62
59
|
* Checks if applications are aligned between different environments or sources.
|
|
@@ -64,7 +61,7 @@ exports.applications = {
|
|
|
64
61
|
* @returns Promise resolving to alignment check result
|
|
65
62
|
*/
|
|
66
63
|
areAligned: async (options = {}) => {
|
|
67
|
-
return
|
|
64
|
+
return applicationAreAligned(options);
|
|
68
65
|
},
|
|
69
66
|
/**
|
|
70
67
|
* Updates application keys based on configuration rules.
|
|
@@ -72,7 +69,7 @@ exports.applications = {
|
|
|
72
69
|
* @returns Promise resolving to key update result
|
|
73
70
|
*/
|
|
74
71
|
updateKey: async (options = {}) => {
|
|
75
|
-
return
|
|
72
|
+
return applicationUpdateKey(options);
|
|
76
73
|
}
|
|
77
74
|
};
|
|
78
75
|
//# sourceMappingURL=applications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../../src/api/applications.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../../src/api/applications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAezF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAA8B,EAAE,EAAoB,EAAE;QAClE,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,UAA8B,EAAE,EAAoB,EAAE;QACnE,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAA8B,EAAE,EAAoB,EAAE;QAClE,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,UAAU,EAAE,KAAK,EAAE,UAA8B,EAAE,EAAoB,EAAE;QACvE,OAAO,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,SAAS,EAAE,KAAK,EAAE,UAA8B,EAAE,EAAoB,EAAE;QACtE,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyJson } from '@salesforce/ts-types';
|
|
2
|
-
import { PathOptions } from './paths';
|
|
2
|
+
import { PathOptions } from './paths.js';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Global Value Set operation options.
|
|
5
5
|
* All properties are optional and will be resolved automatically from easysources-settings.json if not provided.
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const merge_1 = require("../commands/easysources/globalvaluesets/merge");
|
|
7
|
-
const arealigned_1 = require("../commands/easysources/globalvaluesets/arealigned");
|
|
8
|
-
const updatekey_1 = require("../commands/easysources/globalvaluesets/updatekey");
|
|
1
|
+
import { globalValueSetSplit } from '../commands/easysources/globalvaluesets/split.js';
|
|
2
|
+
import { globalValueSetUpsert } from '../commands/easysources/globalvaluesets/upsert.js';
|
|
3
|
+
import { globalValueSetMerge } from '../commands/easysources/globalvaluesets/merge.js';
|
|
4
|
+
import { globalValueSetAreAligned } from '../commands/easysources/globalvaluesets/arealigned.js';
|
|
5
|
+
import { globalValueSetUpdateKey } from '../commands/easysources/globalvaluesets/updatekey.js';
|
|
9
6
|
/**
|
|
10
7
|
* Global Value Sets namespace containing all programmatic API functions for Salesforce Global Value Set metadata operations.
|
|
11
8
|
*
|
|
@@ -33,14 +30,14 @@ const updatekey_1 = require("../commands/easysources/globalvaluesets/updatekey")
|
|
|
33
30
|
* });
|
|
34
31
|
* ```
|
|
35
32
|
*/
|
|
36
|
-
|
|
33
|
+
export const globalValueSets = {
|
|
37
34
|
/**
|
|
38
35
|
* Splits global value sets into separate CSV files for easier management and version control.
|
|
39
36
|
* @param options Optional configuration, automatically resolved from settings if not provided
|
|
40
37
|
* @returns Promise resolving to operation result
|
|
41
38
|
*/
|
|
42
39
|
split: async (options = {}) => {
|
|
43
|
-
return
|
|
40
|
+
return globalValueSetSplit(options);
|
|
44
41
|
},
|
|
45
42
|
/**
|
|
46
43
|
* Updates or inserts global value set records from CSV files to Salesforce metadata format.
|
|
@@ -48,7 +45,7 @@ exports.globalValueSets = {
|
|
|
48
45
|
* @returns Promise resolving to operation result
|
|
49
46
|
*/
|
|
50
47
|
upsert: async (options = {}) => {
|
|
51
|
-
return
|
|
48
|
+
return globalValueSetUpsert(options);
|
|
52
49
|
},
|
|
53
50
|
/**
|
|
54
51
|
* Merges global value set CSV files back into unified metadata files.
|
|
@@ -56,7 +53,7 @@ exports.globalValueSets = {
|
|
|
56
53
|
* @returns Promise resolving to operation result
|
|
57
54
|
*/
|
|
58
55
|
merge: async (options = {}) => {
|
|
59
|
-
return
|
|
56
|
+
return globalValueSetMerge(options);
|
|
60
57
|
},
|
|
61
58
|
/**
|
|
62
59
|
* Checks if global value sets are aligned between different environments or sources.
|
|
@@ -64,7 +61,7 @@ exports.globalValueSets = {
|
|
|
64
61
|
* @returns Promise resolving to alignment check result
|
|
65
62
|
*/
|
|
66
63
|
areAligned: async (options = {}) => {
|
|
67
|
-
return
|
|
64
|
+
return globalValueSetAreAligned(options);
|
|
68
65
|
},
|
|
69
66
|
/**
|
|
70
67
|
* Updates global value set keys based on configuration rules.
|
|
@@ -72,7 +69,7 @@ exports.globalValueSets = {
|
|
|
72
69
|
* @returns Promise resolving to key update result
|
|
73
70
|
*/
|
|
74
71
|
updateKey: async (options = {}) => {
|
|
75
|
-
return
|
|
72
|
+
return globalValueSetUpdateKey(options);
|
|
76
73
|
}
|
|
77
74
|
};
|
|
78
75
|
//# sourceMappingURL=globalvaluesets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalvaluesets.js","sourceRoot":"","sources":["../../src/api/globalvaluesets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"globalvaluesets.js","sourceRoot":"","sources":["../../src/api/globalvaluesets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uDAAuD,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAe/F;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAAiC,EAAE,EAAoB,EAAE;QACrE,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,UAAiC,EAAE,EAAoB,EAAE;QACtE,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAAiC,EAAE,EAAoB,EAAE;QACrE,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACH,UAAU,EAAE,KAAK,EAAE,UAAiC,EAAE,EAAoB,EAAE;QAC1E,OAAO,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACH,SAAS,EAAE,KAAK,EAAE,UAAiC,EAAE,EAAoB,EAAE;QACzE,OAAO,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyJson } from '@salesforce/ts-types';
|
|
2
|
-
import { PathOptions } from './paths';
|
|
2
|
+
import { PathOptions } from './paths.js';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for Global Value Set Translation operation options.
|
|
5
5
|
* All properties are optional and will be resolved automatically from easysources-settings.json if not provided.
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const merge_1 = require("../commands/easysources/globalvaluesettranslations/merge");
|
|
7
|
-
const arealigned_1 = require("../commands/easysources/globalvaluesettranslations/arealigned");
|
|
8
|
-
const updatekey_1 = require("../commands/easysources/globalvaluesettranslations/updatekey");
|
|
1
|
+
import { globalValueSetTranslationSplit } from '../commands/easysources/globalvaluesettranslations/split.js';
|
|
2
|
+
import { globalValueSetTranslationUpsert } from '../commands/easysources/globalvaluesettranslations/upsert.js';
|
|
3
|
+
import { globalValueSetTranslationMerge } from '../commands/easysources/globalvaluesettranslations/merge.js';
|
|
4
|
+
import { globalValueSetTranslationAreAligned } from '../commands/easysources/globalvaluesettranslations/arealigned.js';
|
|
5
|
+
import { globalValueSetTranslationUpdateKey } from '../commands/easysources/globalvaluesettranslations/updatekey.js';
|
|
9
6
|
/**
|
|
10
7
|
* Global Value Set Translations namespace containing all programmatic API functions for Salesforce Global Value Set Translation metadata operations.
|
|
11
8
|
*
|
|
@@ -33,14 +30,14 @@ const updatekey_1 = require("../commands/easysources/globalvaluesettranslations/
|
|
|
33
30
|
* });
|
|
34
31
|
* ```
|
|
35
32
|
*/
|
|
36
|
-
|
|
33
|
+
export const globalValueSetTranslations = {
|
|
37
34
|
/**
|
|
38
35
|
* Splits global value set translations into separate CSV files for easier management and version control.
|
|
39
36
|
* @param options Optional configuration, automatically resolved from settings if not provided
|
|
40
37
|
* @returns Promise resolving to operation result
|
|
41
38
|
*/
|
|
42
39
|
split: async (options = {}) => {
|
|
43
|
-
return
|
|
40
|
+
return globalValueSetTranslationSplit(options);
|
|
44
41
|
},
|
|
45
42
|
/**
|
|
46
43
|
* Updates or inserts global value set translation records from CSV files to Salesforce metadata format.
|
|
@@ -48,7 +45,7 @@ exports.globalValueSetTranslations = {
|
|
|
48
45
|
* @returns Promise resolving to operation result
|
|
49
46
|
*/
|
|
50
47
|
upsert: async (options = {}) => {
|
|
51
|
-
return
|
|
48
|
+
return globalValueSetTranslationUpsert(options);
|
|
52
49
|
},
|
|
53
50
|
/**
|
|
54
51
|
* Merges global value set translation CSV files back into unified metadata files.
|
|
@@ -56,7 +53,7 @@ exports.globalValueSetTranslations = {
|
|
|
56
53
|
* @returns Promise resolving to operation result
|
|
57
54
|
*/
|
|
58
55
|
merge: async (options = {}) => {
|
|
59
|
-
return
|
|
56
|
+
return globalValueSetTranslationMerge(options);
|
|
60
57
|
},
|
|
61
58
|
/**
|
|
62
59
|
* Checks if global value set translations are aligned between different environments or sources.
|
|
@@ -64,7 +61,7 @@ exports.globalValueSetTranslations = {
|
|
|
64
61
|
* @returns Promise resolving to alignment check result
|
|
65
62
|
*/
|
|
66
63
|
areAligned: async (options = {}) => {
|
|
67
|
-
return
|
|
64
|
+
return globalValueSetTranslationAreAligned(options);
|
|
68
65
|
},
|
|
69
66
|
/**
|
|
70
67
|
* Updates global value set translation keys based on configuration rules.
|
|
@@ -72,7 +69,7 @@ exports.globalValueSetTranslations = {
|
|
|
72
69
|
* @returns Promise resolving to key update result
|
|
73
70
|
*/
|
|
74
71
|
updateKey: async (options = {}) => {
|
|
75
|
-
return
|
|
72
|
+
return globalValueSetTranslationUpdateKey(options);
|
|
76
73
|
}
|
|
77
74
|
};
|
|
78
75
|
//# sourceMappingURL=globalvaluesettranslations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalvaluesettranslations.js","sourceRoot":"","sources":["../../src/api/globalvaluesettranslations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"globalvaluesettranslations.js","sourceRoot":"","sources":["../../src/api/globalvaluesettranslations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAE,+BAA+B,EAAE,MAAM,8DAA8D,CAAC;AAC/G,OAAO,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AACvH,OAAO,EAAE,kCAAkC,EAAE,MAAM,iEAAiE,CAAC;AAerH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAA4C,EAAE,EAAoB,EAAE;QAChF,OAAO,8BAA8B,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,UAA4C,EAAE,EAAoB,EAAE;QACjF,OAAO,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAA4C,EAAE,EAAoB,EAAE;QAChF,OAAO,8BAA8B,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACH,UAAU,EAAE,KAAK,EAAE,UAA4C,EAAE,EAAoB,EAAE;QACrF,OAAO,mCAAmC,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACH,SAAS,EAAE,KAAK,EAAE,UAA4C,EAAE,EAAoB,EAAE;QACpF,OAAO,kCAAkC,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;CACF,CAAC"}
|
package/lib/api/labels.d.ts
CHANGED
package/lib/api/labels.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.labels = void 0;
|
|
4
1
|
// Import label-specific functions directly from command files
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { labelSplit } from '../commands/easysources/labels/split.js';
|
|
3
|
+
import { labelUpsert } from '../commands/easysources/labels/upsert.js';
|
|
4
|
+
import { labelMerge } from '../commands/easysources/labels/merge.js';
|
|
5
|
+
import { labelUpdateKey } from '../commands/easysources/labels/updatekey.js';
|
|
6
|
+
import { labelAreAligned } from '../commands/easysources/labels/arealigned.js';
|
|
10
7
|
/**
|
|
11
8
|
* Labels namespace containing all programmatic API functions for Salesforce Custom Label metadata operations.
|
|
12
9
|
*
|
|
@@ -34,14 +31,14 @@ const arealigned_1 = require("../commands/easysources/labels/arealigned");
|
|
|
34
31
|
* });
|
|
35
32
|
* ```
|
|
36
33
|
*/
|
|
37
|
-
|
|
34
|
+
export const labels = {
|
|
38
35
|
/**
|
|
39
36
|
* Splits custom labels into separate CSV files for easier management and version control.
|
|
40
37
|
* @param options Optional configuration, automatically resolved from settings if not provided
|
|
41
38
|
* @returns Promise resolving to operation result
|
|
42
39
|
*/
|
|
43
40
|
split: async (options = {}) => {
|
|
44
|
-
return await
|
|
41
|
+
return await labelSplit(options);
|
|
45
42
|
},
|
|
46
43
|
/**
|
|
47
44
|
* Updates or inserts label records from XML to CSV format.
|
|
@@ -49,7 +46,7 @@ exports.labels = {
|
|
|
49
46
|
* @returns Promise resolving to operation result
|
|
50
47
|
*/
|
|
51
48
|
upsert: async (options = {}) => {
|
|
52
|
-
return await
|
|
49
|
+
return await labelUpsert(options);
|
|
53
50
|
},
|
|
54
51
|
/**
|
|
55
52
|
* Merges label CSV files back into unified XML metadata files.
|
|
@@ -57,7 +54,7 @@ exports.labels = {
|
|
|
57
54
|
* @returns Promise resolving to operation result
|
|
58
55
|
*/
|
|
59
56
|
merge: async (options = {}) => {
|
|
60
|
-
return await
|
|
57
|
+
return await labelMerge(options);
|
|
61
58
|
},
|
|
62
59
|
/**
|
|
63
60
|
* Checks if labels are aligned between different environments or sources.
|
|
@@ -65,7 +62,7 @@ exports.labels = {
|
|
|
65
62
|
* @returns Promise resolving to alignment check result
|
|
66
63
|
*/
|
|
67
64
|
areAligned: async (options = {}) => {
|
|
68
|
-
return await
|
|
65
|
+
return await labelAreAligned(options);
|
|
69
66
|
},
|
|
70
67
|
/**
|
|
71
68
|
* Updates label keys based on configuration rules.
|
|
@@ -73,7 +70,7 @@ exports.labels = {
|
|
|
73
70
|
* @returns Promise resolving to key update result
|
|
74
71
|
*/
|
|
75
72
|
updateKey: async (options = {}) => {
|
|
76
|
-
return await
|
|
73
|
+
return await labelUpdateKey(options);
|
|
77
74
|
}
|
|
78
75
|
};
|
|
79
76
|
//# sourceMappingURL=labels.js.map
|
package/lib/api/labels.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.js","sourceRoot":"","sources":["../../src/api/labels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"labels.js","sourceRoot":"","sources":["../../src/api/labels.ts"],"names":[],"mappings":"AAGA,8DAA8D;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAa/E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAAwB,EAAE,EAAoB,EAAE;QAC5D,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,UAAwB,EAAE,EAAoB,EAAE;QAC7D,OAAO,MAAM,WAAW,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAAwB,EAAE,EAAoB,EAAE;QAC5D,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,UAAU,EAAE,KAAK,EAAE,UAAwB,EAAE,EAAoB,EAAE;QACjE,OAAO,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,SAAS,EAAE,KAAK,EAAE,UAAwB,EAAE,EAAoB,EAAE;QAChE,OAAO,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;CACF,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.objectTranslations = void 0;
|
|
4
1
|
// Import object translation-specific functions directly from command files
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { objectTranslationSplit } from '../commands/easysources/objecttranslations/split.js';
|
|
3
|
+
import { objectTranslationUpsert } from '../commands/easysources/objecttranslations/upsert.js';
|
|
4
|
+
import { objectTranslationMerge } from '../commands/easysources/objecttranslations/merge.js';
|
|
5
|
+
import { objectTranslationAreAligned } from '../commands/easysources/objecttranslations/arealigned.js';
|
|
6
|
+
import { objectTranslationClearEmpty } from '../commands/easysources/objecttranslations/clearempty.js';
|
|
7
|
+
import { objectTranslationMinify } from '../commands/easysources/objecttranslations/minify.js';
|
|
8
|
+
import { objectTranslationUpdateKey } from '../commands/easysources/objecttranslations/updatekey.js';
|
|
12
9
|
/**
|
|
13
10
|
* Object Translations namespace containing all programmatic API functions for Salesforce Object Translation metadata operations.
|
|
14
11
|
*
|
|
@@ -37,14 +34,14 @@ const updatekey_1 = require("../commands/easysources/objecttranslations/updateke
|
|
|
37
34
|
* });
|
|
38
35
|
* ```
|
|
39
36
|
*/
|
|
40
|
-
|
|
37
|
+
export const objectTranslations = {
|
|
41
38
|
/**
|
|
42
39
|
* Splits object translations into separate CSV files for easier management and version control.
|
|
43
40
|
* @param options Optional configuration, automatically resolved from settings if not provided
|
|
44
41
|
* @returns Promise resolving to operation result
|
|
45
42
|
*/
|
|
46
43
|
split: async (options = {}) => {
|
|
47
|
-
return await
|
|
44
|
+
return await objectTranslationSplit(options);
|
|
48
45
|
},
|
|
49
46
|
/**
|
|
50
47
|
* Updates or inserts object translation records from XML to CSV format.
|
|
@@ -52,7 +49,7 @@ exports.objectTranslations = {
|
|
|
52
49
|
* @returns Promise resolving to operation result
|
|
53
50
|
*/
|
|
54
51
|
upsert: async (options = {}) => {
|
|
55
|
-
return await
|
|
52
|
+
return await objectTranslationUpsert(options);
|
|
56
53
|
},
|
|
57
54
|
/**
|
|
58
55
|
* Merges object translation CSV files back into unified XML metadata files.
|
|
@@ -60,7 +57,7 @@ exports.objectTranslations = {
|
|
|
60
57
|
* @returns Promise resolving to operation result
|
|
61
58
|
*/
|
|
62
59
|
merge: async (options = {}) => {
|
|
63
|
-
return await
|
|
60
|
+
return await objectTranslationMerge(options);
|
|
64
61
|
},
|
|
65
62
|
/**
|
|
66
63
|
* Removes empty CSV files and folders to keep the repository clean.
|
|
@@ -68,7 +65,7 @@ exports.objectTranslations = {
|
|
|
68
65
|
* @returns Promise resolving to cleanup result
|
|
69
66
|
*/
|
|
70
67
|
clearEmpty: async (options = {}) => {
|
|
71
|
-
return await
|
|
68
|
+
return await objectTranslationClearEmpty(options);
|
|
72
69
|
},
|
|
73
70
|
/**
|
|
74
71
|
* Checks if object translations are aligned between different environments or sources.
|
|
@@ -76,7 +73,7 @@ exports.objectTranslations = {
|
|
|
76
73
|
* @returns Promise resolving to alignment check result
|
|
77
74
|
*/
|
|
78
75
|
areAligned: async (options = {}) => {
|
|
79
|
-
return await
|
|
76
|
+
return await objectTranslationAreAligned(options);
|
|
80
77
|
},
|
|
81
78
|
/**
|
|
82
79
|
* Removes empty translation entries from CSV files based on configuration rules.
|
|
@@ -84,7 +81,7 @@ exports.objectTranslations = {
|
|
|
84
81
|
* @returns Promise resolving to minify result
|
|
85
82
|
*/
|
|
86
83
|
minify: async (options = {}) => {
|
|
87
|
-
return await
|
|
84
|
+
return await objectTranslationMinify(options);
|
|
88
85
|
},
|
|
89
86
|
/**
|
|
90
87
|
* Updates the _tagid key on CSV files based on the other fields.
|
|
@@ -92,7 +89,7 @@ exports.objectTranslations = {
|
|
|
92
89
|
* @returns Promise resolving to operation result
|
|
93
90
|
*/
|
|
94
91
|
updateKey: async (options = {}) => {
|
|
95
|
-
return await
|
|
92
|
+
return await objectTranslationUpdateKey(options);
|
|
96
93
|
}
|
|
97
94
|
};
|
|
98
95
|
//# sourceMappingURL=objecttranslations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objecttranslations.js","sourceRoot":"","sources":["../../src/api/objecttranslations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"objecttranslations.js","sourceRoot":"","sources":["../../src/api/objecttranslations.ts"],"names":[],"mappings":"AAGA,2EAA2E;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AACvG,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AACvG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AAiBrG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAAoC,EAAE,EAAoB,EAAE;QACxE,OAAO,MAAM,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,UAAoC,EAAE,EAAoB,EAAE;QACzE,OAAO,MAAM,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,KAAK,EAAE,KAAK,EAAE,UAAoC,EAAE,EAAoB,EAAE;QACxE,OAAO,MAAM,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACH,UAAU,EAAE,KAAK,EAAE,UAAoC,EAAE,EAAoB,EAAE;QAC7E,OAAO,MAAM,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,UAAU,EAAE,KAAK,EAAE,UAAoC,EAAE,EAAoB,EAAE;QAC7E,OAAO,MAAM,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,UAAoC,EAAE,EAAoB,EAAE;QACzE,OAAO,MAAM,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,SAAS,EAAE,KAAK,EAAE,UAAoC,EAAE,EAAoB,EAAE;QAC5E,OAAO,MAAM,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;CACF,CAAC"}
|
package/lib/api/paths.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Paths API - Generic path resolution utilities for all metadata types
|
|
4
3
|
*
|
|
@@ -19,10 +18,8 @@
|
|
|
19
18
|
* });
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const localSettings_1 = require("../utils/localSettings");
|
|
25
|
-
const constants_1 = require("../utils/constants/constants");
|
|
21
|
+
import { loadSettings } from '../utils/localSettings.js';
|
|
22
|
+
import { DEFAULT_ESCSV_PATH, DEFAULT_SFXML_PATH } from '../utils/constants/constants.js';
|
|
26
23
|
/**
|
|
27
24
|
* Generic path resolution function that works for all metadata types
|
|
28
25
|
*
|
|
@@ -48,14 +45,13 @@ const constants_1 = require("../utils/constants/constants");
|
|
|
48
45
|
* // Result: { 'sf-xml': './custom-metadata', 'es-csv': './easysources' }
|
|
49
46
|
* ```
|
|
50
47
|
*/
|
|
51
|
-
function resolvePaths(options = {}) {
|
|
52
|
-
const settings =
|
|
48
|
+
export function resolvePaths(options = {}) {
|
|
49
|
+
const settings = loadSettings();
|
|
53
50
|
// Resolve paths in priority order: user options > settings file > default constants
|
|
54
51
|
const resolved = {
|
|
55
|
-
'sf-xml': options['sf-xml'] || settings['salesforce-xml-path'] ||
|
|
56
|
-
'es-csv': options['es-csv'] || settings['easysources-csv-path'] ||
|
|
52
|
+
'sf-xml': options['sf-xml'] || settings['salesforce-xml-path'] || DEFAULT_SFXML_PATH,
|
|
53
|
+
'es-csv': options['es-csv'] || settings['easysources-csv-path'] || DEFAULT_ESCSV_PATH
|
|
57
54
|
};
|
|
58
55
|
return resolved;
|
|
59
56
|
}
|
|
60
|
-
exports.resolvePaths = resolvePaths;
|
|
61
57
|
//# sourceMappingURL=paths.js.map
|
package/lib/api/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/api/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/api/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAazF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,YAAY,CACxB,UAAsB,EAAgB;IAEtC,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;IAEhC,oFAAoF;IACpF,MAAM,QAAQ,GAAG;QACb,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,qBAAqB,CAAC,IAAI,kBAAkB;QACpF,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,sBAAsB,CAAC,IAAI,kBAAkB;KACnF,CAAC;IAEP,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|