@sharinpix/sharinpix-sf-cli 1.12.0 → 1.13.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 +25 -4
- package/lib/commands/sharinpix/form/pull.js +2 -2
- package/lib/commands/sharinpix/form/pull.js.map +1 -1
- package/lib/commands/sharinpix/form/push.d.ts +2 -0
- package/lib/commands/sharinpix/form/push.js +31 -5
- package/lib/commands/sharinpix/form/push.js.map +1 -1
- package/lib/commands/sharinpix/push.d.ts +1 -0
- package/lib/commands/sharinpix/push.js +6 -0
- package/lib/commands/sharinpix/push.js.map +1 -1
- package/lib/helpers/utils.d.ts +1 -0
- package/lib/helpers/utils.js +4 -1
- package/lib/helpers/utils.js.map +1 -1
- package/messages/sharinpix.form.push.md +13 -1
- package/messages/sharinpix.push.md +12 -0
- package/oclif.manifest.json +157 -139
- package/package.json +23 -1
package/README.md
CHANGED
|
@@ -326,9 +326,10 @@ Push SharinPix form templates to Salesforce org.
|
|
|
326
326
|
|
|
327
327
|
```
|
|
328
328
|
USAGE
|
|
329
|
-
$ sf sharinpix form push -o <value> [--json] [--flags-dir <value>] [-d] [-c]
|
|
329
|
+
$ sf sharinpix form push -o <value> [--json] [--flags-dir <value>] [-d] [-c] [-a]
|
|
330
330
|
|
|
331
331
|
FLAGS
|
|
332
|
+
-a, --activate Activate the pushed form template version.
|
|
332
333
|
-c, --csv Convert local CSV files to JSON before pushing.
|
|
333
334
|
-d, --delete Delete form templates from org that no longer have corresponding local files.
|
|
334
335
|
-o, --org=<value> (required) The Salesforce org to push form templates to.
|
|
@@ -341,8 +342,9 @@ DESCRIPTION
|
|
|
341
342
|
Push SharinPix form templates to Salesforce org.
|
|
342
343
|
|
|
343
344
|
Uploads SharinPix form templates from local JSON files to the connected Salesforce org. This command reads form
|
|
344
|
-
templates from the local directory and creates or updates corresponding records in Salesforce.
|
|
345
|
-
|
|
345
|
+
templates from the local directory and creates or updates corresponding records in Salesforce. Each file is matched to
|
|
346
|
+
an existing form template only by its `mainId`; if the file has no `mainId` or it is not found in the target org, a
|
|
347
|
+
new form template is created. Pushing to a different org is therefore a one-time copy.
|
|
346
348
|
|
|
347
349
|
EXAMPLES
|
|
348
350
|
Push all form templates to the default org:
|
|
@@ -361,7 +363,16 @@ EXAMPLES
|
|
|
361
363
|
|
|
362
364
|
$ sf sharinpix form push --csv
|
|
363
365
|
|
|
366
|
+
Push form templates and activate the new versions:
|
|
367
|
+
|
|
368
|
+
$ sf sharinpix form push --activate
|
|
369
|
+
|
|
364
370
|
FLAG DESCRIPTIONS
|
|
371
|
+
-a, --activate Activate the pushed form template version.
|
|
372
|
+
|
|
373
|
+
When enabled, the newly pushed form template version is set as the active version in Salesforce. Without this flag,
|
|
374
|
+
the version is created but not activated.
|
|
375
|
+
|
|
365
376
|
-c, --csv Convert local CSV files to JSON before pushing.
|
|
366
377
|
|
|
367
378
|
When enabled, the command first runs the CSV-to-JSON conversion (same as `sharinpix:form:csv2json`) on files in
|
|
@@ -503,9 +514,10 @@ Push all SharinPix assets (forms and permissions) to Salesforce org.
|
|
|
503
514
|
|
|
504
515
|
```
|
|
505
516
|
USAGE
|
|
506
|
-
$ sf sharinpix push -o <value> [--json] [--flags-dir <value>] [-d]
|
|
517
|
+
$ sf sharinpix push -o <value> [--json] [--flags-dir <value>] [-d] [-a]
|
|
507
518
|
|
|
508
519
|
FLAGS
|
|
520
|
+
-a, --activate Activate the pushed form template version.
|
|
509
521
|
-d, --delete Delete assets in the org that do not exist locally.
|
|
510
522
|
-o, --org=<value> (required) The Salesforce org to push assets to.
|
|
511
523
|
|
|
@@ -532,7 +544,16 @@ EXAMPLES
|
|
|
532
544
|
|
|
533
545
|
$ sf sharinpix push --delete
|
|
534
546
|
|
|
547
|
+
Push all assets and activate new form versions:
|
|
548
|
+
|
|
549
|
+
$ sf sharinpix push --activate
|
|
550
|
+
|
|
535
551
|
FLAG DESCRIPTIONS
|
|
552
|
+
-a, --activate Activate the pushed form template version.
|
|
553
|
+
|
|
554
|
+
When enabled, newly pushed form template versions are set as active in Salesforce. Without this flag, versions are
|
|
555
|
+
created but not activated. Forwarded to form push only.
|
|
556
|
+
|
|
536
557
|
-d, --delete Delete assets in the org that do not exist locally.
|
|
537
558
|
|
|
538
559
|
If specified, any form templates or permissions that exist in the org but not in the local project will be deleted.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
5
5
|
import { Messages } from '@salesforce/core';
|
|
6
|
-
import {
|
|
6
|
+
import { sanitizeFilename } from '../../../helpers/utils.js';
|
|
7
7
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
8
8
|
const messages = Messages.loadMessages('@sharinpix/sharinpix-sf-cli', 'sharinpix.form.pull');
|
|
9
9
|
export default class Pull extends SfCommand {
|
|
@@ -47,7 +47,7 @@ export default class Pull extends SfCommand {
|
|
|
47
47
|
const form = await response.json();
|
|
48
48
|
const mainId = record.sharinpix__FormTemplateMain__c ?? record.Id;
|
|
49
49
|
const formWithMainId = { ...form, mainId };
|
|
50
|
-
const safeFilename =
|
|
50
|
+
const safeFilename = `${sanitizeFilename(record.Name)}-${mainId}`;
|
|
51
51
|
fs.writeFileSync(`sharinpix/forms/${safeFilename}.json`, JSON.stringify(formWithMainId, function (key, value) {
|
|
52
52
|
return key === 'uuid' && this === formWithMainId ? undefined : value;
|
|
53
53
|
}, 2));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull.js","sourceRoot":"","sources":["../../../../src/commands/sharinpix/form/pull.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,qCAAqC;AACrC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,
|
|
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AAC;gBAClE,EAAE,CAAC,aAAa,CACd,mBAAmB,YAAY,OAAO,EACtC,IAAI,CAAC,SAAS,CACZ,cAAc,EACd,UAAU,GAAW,EAAE,KAAc;oBACnC,OAAO,GAAG,KAAK,MAAM,IAAI,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;gBACvE,CAAC,EACD,CAAC,CACF,CACF,CAAC;gBACF,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;gBACzF,eAAe,EAAE,CAAC;YACpB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,IAAI,CACP,iCAAiC,MAAM,CAAC,IAAI,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAC5G,CAAC;gBACF,WAAW,EAAE,CAAC;YAChB,CAAC;QACH,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,2BAA2B,eAAe,sBAAsB,WAAW,UAAU,CAAC,CAAC;QAEhG,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC;YACd,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO;YACL,IAAI,EAAE,IAAI;YACV,eAAe;YACf,WAAW;SACZ,CAAC;IACJ,CAAC"}
|
|
@@ -15,11 +15,13 @@ export default class Push extends SfCommand<PushResult> {
|
|
|
15
15
|
org: import("@oclif/core/interfaces").OptionFlag<Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
16
|
delete: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
csv: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
activate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
19
|
};
|
|
19
20
|
run(): Promise<PushResult>;
|
|
20
21
|
runWithFlags(flags: {
|
|
21
22
|
org: Org;
|
|
22
23
|
delete: boolean;
|
|
23
24
|
csv?: boolean;
|
|
25
|
+
activate?: boolean;
|
|
24
26
|
}): Promise<PushResult>;
|
|
25
27
|
}
|
|
@@ -5,6 +5,8 @@ import { Messages } from '@salesforce/core';
|
|
|
5
5
|
import { isJsonEqual, readJsonFile, getNameFromJson, getJsonFiles, fetchJson, formatErrorMessage, } from '../../../helpers/utils.js';
|
|
6
6
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
7
7
|
const messages = Messages.loadMessages('@sharinpix/sharinpix-sf-cli', 'sharinpix.form.push');
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
|
+
const stripIds = ({ uuid, mainId, ...rest }) => rest;
|
|
8
10
|
export default class Push extends SfCommand {
|
|
9
11
|
static summary = messages.getMessage('summary');
|
|
10
12
|
static description = messages.getMessage('description');
|
|
@@ -27,6 +29,12 @@ export default class Push extends SfCommand {
|
|
|
27
29
|
description: messages.getMessage('flags.csv.description'),
|
|
28
30
|
default: false,
|
|
29
31
|
}),
|
|
32
|
+
activate: Flags.boolean({
|
|
33
|
+
char: 'a',
|
|
34
|
+
summary: messages.getMessage('flags.activate.summary'),
|
|
35
|
+
description: messages.getMessage('flags.activate.description'),
|
|
36
|
+
default: false,
|
|
37
|
+
}),
|
|
30
38
|
};
|
|
31
39
|
async run() {
|
|
32
40
|
const { flags } = await this.parse(Push);
|
|
@@ -45,8 +53,9 @@ export default class Push extends SfCommand {
|
|
|
45
53
|
const responseToken = await connection.apex.post('/sharinpix/Token', {
|
|
46
54
|
payload: JSON.stringify(body),
|
|
47
55
|
});
|
|
48
|
-
const existingRecords = (await connection.query('SELECT Id, Name, sharinpix__FormUrl__c, sharinpix__Description__c FROM sharinpix__FormTemplate__c')).records;
|
|
56
|
+
const existingRecords = (await connection.query('SELECT Id, Name, sharinpix__FormUrl__c, sharinpix__Description__c FROM sharinpix__FormTemplate__c WHERE sharinpix__FormTemplateMain__c = null')).records;
|
|
49
57
|
const existingMap = new Map(existingRecords.map((record) => [record.Name, record]));
|
|
58
|
+
const existingById = new Map(existingRecords.map((record) => [record.Id, record]));
|
|
50
59
|
let uploaded = 0;
|
|
51
60
|
let failed = 0;
|
|
52
61
|
let skipped = 0;
|
|
@@ -55,14 +64,15 @@ export default class Push extends SfCommand {
|
|
|
55
64
|
const processFile = async () => {
|
|
56
65
|
const json = readJsonFile(file);
|
|
57
66
|
const fileName = getNameFromJson(json);
|
|
58
|
-
const
|
|
67
|
+
const { mainId, ...formJson } = json;
|
|
68
|
+
const existingRecord = mainId ? existingById.get(mainId) : undefined;
|
|
59
69
|
const existingId = existingRecord?.Id ?? null;
|
|
60
70
|
if (existingRecord) {
|
|
61
71
|
const existingJson = await fetchJson(existingRecord.sharinpix__FormUrl__c + '.json').catch((error) => {
|
|
62
72
|
this.warn(`Failed to check changes for ${fileName}, proceeding with update: ${formatErrorMessage(error)}`);
|
|
63
73
|
return null;
|
|
64
74
|
});
|
|
65
|
-
if (existingJson && isJsonEqual(json, existingJson)) {
|
|
75
|
+
if (existingJson && isJsonEqual(stripIds(json), stripIds(existingJson))) {
|
|
66
76
|
this.log(messages.getMessage('info.skipped', [fileName]));
|
|
67
77
|
skipped++;
|
|
68
78
|
return;
|
|
@@ -74,7 +84,7 @@ export default class Push extends SfCommand {
|
|
|
74
84
|
sfid: existingId ?? undefined,
|
|
75
85
|
config: {
|
|
76
86
|
name: fileName,
|
|
77
|
-
...
|
|
87
|
+
...formJson,
|
|
78
88
|
},
|
|
79
89
|
}),
|
|
80
90
|
headers: {
|
|
@@ -87,8 +97,22 @@ export default class Push extends SfCommand {
|
|
|
87
97
|
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
|
88
98
|
}
|
|
89
99
|
const responseData = (await response.json());
|
|
100
|
+
let lastActivatedAt;
|
|
101
|
+
if (flags.activate) {
|
|
102
|
+
const activateResponse = await fetch(`${responseToken.host}/api/v1/form/templates/${responseData.id}/activate`, {
|
|
103
|
+
method: 'POST',
|
|
104
|
+
headers: {
|
|
105
|
+
Accept: 'application/json',
|
|
106
|
+
Authorization: `Bearer ${responseToken.token}`,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
if (!activateResponse.ok) {
|
|
110
|
+
throw new Error(`HTTP ${activateResponse.status}: ${activateResponse.statusText}`);
|
|
111
|
+
}
|
|
112
|
+
lastActivatedAt = (await activateResponse.json()).last_activated_at;
|
|
113
|
+
}
|
|
90
114
|
const formTemplateJson = JSON.stringify({
|
|
91
|
-
...
|
|
115
|
+
...formJson,
|
|
92
116
|
url: responseData.url,
|
|
93
117
|
});
|
|
94
118
|
await connection.apex.post('/sharinpix/FormTemplateImport', {
|
|
@@ -96,6 +120,8 @@ export default class Push extends SfCommand {
|
|
|
96
120
|
name: fileName,
|
|
97
121
|
url: responseData.url,
|
|
98
122
|
formTemplateJson,
|
|
123
|
+
shouldActivate: flags.activate === true,
|
|
124
|
+
lastActivatedAt,
|
|
99
125
|
});
|
|
100
126
|
this.log(messages.getMessage(existingId ? 'info.updated' : 'info.created', [fileName]));
|
|
101
127
|
uploaded++;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../../src/commands/sharinpix/form/push.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,qCAAqC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,SAAS,EACT,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MA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AC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QAEpF,OAAO;YACL,IAAI,EAAE,IAAI;YACV,QAAQ;YACR,MAAM;YACN,OAAO;YACP,OAAO;SACR,CAAC;IACJ,CAAC"}
|
|
@@ -11,6 +11,7 @@ export default class Push extends SfCommand<PushResult> {
|
|
|
11
11
|
static readonly flags: {
|
|
12
12
|
org: import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
delete: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
activate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
15
|
};
|
|
15
16
|
run(): Promise<PushResult>;
|
|
16
17
|
}
|
|
@@ -22,6 +22,12 @@ export default class Push extends SfCommand {
|
|
|
22
22
|
description: messages.getMessage('flags.delete.description'),
|
|
23
23
|
default: false,
|
|
24
24
|
}),
|
|
25
|
+
activate: Flags.boolean({
|
|
26
|
+
char: 'a',
|
|
27
|
+
summary: messages.getMessage('flags.activate.summary'),
|
|
28
|
+
description: messages.getMessage('flags.activate.description'),
|
|
29
|
+
default: false,
|
|
30
|
+
}),
|
|
25
31
|
};
|
|
26
32
|
async run() {
|
|
27
33
|
const { flags } = await this.parse(Push);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../src/commands/sharinpix/push.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAElD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC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AAC;QACtD,mEAAmE;QACnE,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAEvD,IAAI,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACrC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAClE,mEAAmE;QACnE,MAAM,iBAAiB,GAAG,MAAM,cAAc,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAEnE,OAAO;YACL,OAAO,EAAE,aAAa;YACtB,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,iBAAiB;SAC/B,CAAC;IACJ,CAAC"}
|
package/lib/helpers/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function isJsonEqual(obj1: unknown, obj2: unknown): boolean;
|
|
2
|
+
export declare function sanitizeFilename(name: string): string;
|
|
2
3
|
export declare function createSafeFilename(name: string): string;
|
|
3
4
|
export declare function readJsonFile(filePath: string): Record<string, unknown>;
|
|
4
5
|
export declare function writeJsonFile(filePath: string, data: unknown): void;
|
package/lib/helpers/utils.js
CHANGED
|
@@ -4,9 +4,12 @@ import { elementKeyOrder } from './form/elementKeys.js';
|
|
|
4
4
|
export function isJsonEqual(obj1, obj2) {
|
|
5
5
|
return JSON.stringify(obj1) === JSON.stringify(obj2);
|
|
6
6
|
}
|
|
7
|
+
export function sanitizeFilename(name) {
|
|
8
|
+
return name.replaceAll(/[^a-zA-Z0-9]/g, '_');
|
|
9
|
+
}
|
|
7
10
|
export function createSafeFilename(name) {
|
|
8
11
|
const md5Hash = crypto.createHash('md5').update(name).digest('hex').slice(0, 8);
|
|
9
|
-
return `${name
|
|
12
|
+
return `${sanitizeFilename(name)}-${md5Hash}`;
|
|
10
13
|
}
|
|
11
14
|
export function readJsonFile(filePath) {
|
|
12
15
|
const fileContent = fs.readFileSync(filePath, 'utf8');
|
package/lib/helpers/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,UAAU,WAAW,CAAC,IAAa,EAAE,IAAa;IACtD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAChF,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,UAAU,WAAW,CAAC,IAAa,EAAE,IAAa;IACtD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,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C,CAAC,CAAC,eAAe,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,OAAO,EAAE;SACN,WAAW,CAAC,OAAO,CAAC;SACpB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SACxC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,EAAE;SACN,WAAW,CAAC,OAAO,CAAC;SACpB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACvC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAc;IAC7C,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3C,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IACpE,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -4,7 +4,7 @@ Push SharinPix form templates to Salesforce org.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Uploads SharinPix form templates from local JSON files to the connected Salesforce org. This command reads form templates from the local directory and creates or updates corresponding records in Salesforce.
|
|
7
|
+
Uploads SharinPix form templates from local JSON files to the connected Salesforce org. This command reads form templates from the local directory and creates or updates corresponding records in Salesforce. Each file is matched to an existing form template only by its `mainId`; if the file has no `mainId` or it is not found in the target org, a new form template is created. Pushing to a different org is therefore a one-time copy.
|
|
8
8
|
|
|
9
9
|
# flags.org.summary
|
|
10
10
|
|
|
@@ -30,6 +30,14 @@ Convert local CSV files to JSON before pushing.
|
|
|
30
30
|
|
|
31
31
|
When enabled, the command first runs the CSV-to-JSON conversion (same as `sharinpix:form:csv2json`) on files in `sharinpix/forms`, then proceeds to push the resulting JSON files.
|
|
32
32
|
|
|
33
|
+
# flags.activate.summary
|
|
34
|
+
|
|
35
|
+
Activate the pushed form template version.
|
|
36
|
+
|
|
37
|
+
# flags.activate.description
|
|
38
|
+
|
|
39
|
+
When enabled, the newly pushed form template version is set as the active version in Salesforce. Without this flag, the version is created but not activated.
|
|
40
|
+
|
|
33
41
|
# examples
|
|
34
42
|
|
|
35
43
|
- Push all form templates to the default org:
|
|
@@ -48,6 +56,10 @@ When enabled, the command first runs the CSV-to-JSON conversion (same as `sharin
|
|
|
48
56
|
|
|
49
57
|
<%= config.bin %> <%= command.id %> --csv
|
|
50
58
|
|
|
59
|
+
- Push form templates and activate the new versions:
|
|
60
|
+
|
|
61
|
+
<%= config.bin %> <%= command.id %> --activate
|
|
62
|
+
|
|
51
63
|
# info.created
|
|
52
64
|
|
|
53
65
|
Created form template %s
|
|
@@ -22,6 +22,14 @@ Delete assets in the org that do not exist locally.
|
|
|
22
22
|
|
|
23
23
|
If specified, any form templates or permissions that exist in the org but not in the local project will be deleted.
|
|
24
24
|
|
|
25
|
+
# flags.activate.summary
|
|
26
|
+
|
|
27
|
+
Activate the pushed form template version.
|
|
28
|
+
|
|
29
|
+
# flags.activate.description
|
|
30
|
+
|
|
31
|
+
When enabled, newly pushed form template versions are set as active in Salesforce. Without this flag, versions are created but not activated. Forwarded to form push only.
|
|
32
|
+
|
|
25
33
|
# examples
|
|
26
34
|
|
|
27
35
|
- Push all assets to the default org:
|
|
@@ -35,3 +43,7 @@ If specified, any form templates or permissions that exist in the org but not in
|
|
|
35
43
|
- Push all assets and delete missing ones from the org:
|
|
36
44
|
|
|
37
45
|
<%= config.bin %> <%= command.id %> --delete
|
|
46
|
+
|
|
47
|
+
- Push all assets and activate new form versions:
|
|
48
|
+
|
|
49
|
+
<%= config.bin %> <%= command.id %> --activate
|
package/oclif.manifest.json
CHANGED
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"examples": [
|
|
66
66
|
"Push all assets to the default org:\n<%= config.bin %> <%= command.id %>",
|
|
67
67
|
"Push all assets to a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
68
|
-
"Push all assets and delete missing ones from the org:\n<%= config.bin %> <%= command.id %> --delete"
|
|
68
|
+
"Push all assets and delete missing ones from the org:\n<%= config.bin %> <%= command.id %> --delete",
|
|
69
|
+
"Push all assets and activate new form versions:\n<%= config.bin %> <%= command.id %> --activate"
|
|
69
70
|
],
|
|
70
71
|
"flags": {
|
|
71
72
|
"json": {
|
|
@@ -101,6 +102,14 @@
|
|
|
101
102
|
"summary": "Delete assets in the org that do not exist locally.",
|
|
102
103
|
"allowNo": false,
|
|
103
104
|
"type": "boolean"
|
|
105
|
+
},
|
|
106
|
+
"activate": {
|
|
107
|
+
"char": "a",
|
|
108
|
+
"description": "When enabled, newly pushed form template versions are set as active in Salesforce. Without this flag, versions are created but not activated. Forwarded to form push only.",
|
|
109
|
+
"name": "activate",
|
|
110
|
+
"summary": "Activate the pushed form template version.",
|
|
111
|
+
"allowNo": false,
|
|
112
|
+
"type": "boolean"
|
|
104
113
|
}
|
|
105
114
|
},
|
|
106
115
|
"hasDynamicHelp": true,
|
|
@@ -308,6 +317,141 @@
|
|
|
308
317
|
"push:config:sharinpix"
|
|
309
318
|
]
|
|
310
319
|
},
|
|
320
|
+
"sharinpix:permission:pull": {
|
|
321
|
+
"aliases": [],
|
|
322
|
+
"args": {},
|
|
323
|
+
"description": "Retrieves all SharinPix permissions from the connected Salesforce org and saves them as JSON files in the local sharinpix/permissions directory. This command fetches the permission metadata and the JSON configuration data stored in the sharinpix**Json**c field.",
|
|
324
|
+
"examples": [
|
|
325
|
+
"Pull all SharinPix permissions from the default org:\n<%= config.bin %> <%= command.id %>",
|
|
326
|
+
"Pull SharinPix permissions from a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
327
|
+
],
|
|
328
|
+
"flags": {
|
|
329
|
+
"json": {
|
|
330
|
+
"description": "Format output as json.",
|
|
331
|
+
"helpGroup": "GLOBAL",
|
|
332
|
+
"name": "json",
|
|
333
|
+
"allowNo": false,
|
|
334
|
+
"type": "boolean"
|
|
335
|
+
},
|
|
336
|
+
"flags-dir": {
|
|
337
|
+
"helpGroup": "GLOBAL",
|
|
338
|
+
"name": "flags-dir",
|
|
339
|
+
"summary": "Import flag values from a directory.",
|
|
340
|
+
"hasDynamicHelp": false,
|
|
341
|
+
"multiple": false,
|
|
342
|
+
"type": "option"
|
|
343
|
+
},
|
|
344
|
+
"org": {
|
|
345
|
+
"char": "o",
|
|
346
|
+
"description": "The target Salesforce org containing the SharinPix permissions to be pulled.",
|
|
347
|
+
"name": "org",
|
|
348
|
+
"noCacheDefault": true,
|
|
349
|
+
"required": true,
|
|
350
|
+
"summary": "The Salesforce org to pull SharinPix permissions from.",
|
|
351
|
+
"hasDynamicHelp": true,
|
|
352
|
+
"multiple": false,
|
|
353
|
+
"type": "option"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"hasDynamicHelp": true,
|
|
357
|
+
"hiddenAliases": [],
|
|
358
|
+
"id": "sharinpix:permission:pull",
|
|
359
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
360
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
361
|
+
"pluginType": "core",
|
|
362
|
+
"strict": true,
|
|
363
|
+
"summary": "Pull SharinPix permissions from Salesforce org.",
|
|
364
|
+
"enableJsonFlag": true,
|
|
365
|
+
"isESM": true,
|
|
366
|
+
"relativePath": [
|
|
367
|
+
"lib",
|
|
368
|
+
"commands",
|
|
369
|
+
"sharinpix",
|
|
370
|
+
"permission",
|
|
371
|
+
"pull.js"
|
|
372
|
+
],
|
|
373
|
+
"aliasPermutations": [],
|
|
374
|
+
"permutations": [
|
|
375
|
+
"sharinpix:permission:pull",
|
|
376
|
+
"permission:sharinpix:pull",
|
|
377
|
+
"permission:pull:sharinpix",
|
|
378
|
+
"sharinpix:pull:permission",
|
|
379
|
+
"pull:sharinpix:permission",
|
|
380
|
+
"pull:permission:sharinpix"
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"sharinpix:permission:push": {
|
|
384
|
+
"aliases": [],
|
|
385
|
+
"args": {},
|
|
386
|
+
"description": "Uploads SharinPix permissions from local JSON files to the connected Salesforce org. This command reads permission configurations from the local directory and creates or updates corresponding records in Salesforce. The sharinpix**Json**c field will be updated with the JSON configuration data.",
|
|
387
|
+
"examples": [
|
|
388
|
+
"Push all SharinPix permissions to the default org:\n<%= config.bin %> <%= command.id %>",
|
|
389
|
+
"Push SharinPix permissions to a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
390
|
+
"Push SharinPix permissions and delete orphaned records:\n<%= config.bin %> <%= command.id %> --delete"
|
|
391
|
+
],
|
|
392
|
+
"flags": {
|
|
393
|
+
"json": {
|
|
394
|
+
"description": "Format output as json.",
|
|
395
|
+
"helpGroup": "GLOBAL",
|
|
396
|
+
"name": "json",
|
|
397
|
+
"allowNo": false,
|
|
398
|
+
"type": "boolean"
|
|
399
|
+
},
|
|
400
|
+
"flags-dir": {
|
|
401
|
+
"helpGroup": "GLOBAL",
|
|
402
|
+
"name": "flags-dir",
|
|
403
|
+
"summary": "Import flag values from a directory.",
|
|
404
|
+
"hasDynamicHelp": false,
|
|
405
|
+
"multiple": false,
|
|
406
|
+
"type": "option"
|
|
407
|
+
},
|
|
408
|
+
"org": {
|
|
409
|
+
"char": "o",
|
|
410
|
+
"description": "The target Salesforce org where the SharinPix permissions will be uploaded and stored.",
|
|
411
|
+
"name": "org",
|
|
412
|
+
"noCacheDefault": true,
|
|
413
|
+
"required": true,
|
|
414
|
+
"summary": "The Salesforce org to push SharinPix permissions to.",
|
|
415
|
+
"hasDynamicHelp": true,
|
|
416
|
+
"multiple": false,
|
|
417
|
+
"type": "option"
|
|
418
|
+
},
|
|
419
|
+
"delete": {
|
|
420
|
+
"char": "d",
|
|
421
|
+
"description": "When enabled, this flag will delete SharinPix permission records from the Salesforce org if their corresponding local JSON files are missing. Use with caution as this operation cannot be undone.",
|
|
422
|
+
"name": "delete",
|
|
423
|
+
"summary": "Delete SharinPix permissions from org that no longer have corresponding local files.",
|
|
424
|
+
"allowNo": false,
|
|
425
|
+
"type": "boolean"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"hasDynamicHelp": true,
|
|
429
|
+
"hiddenAliases": [],
|
|
430
|
+
"id": "sharinpix:permission:push",
|
|
431
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
432
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
433
|
+
"pluginType": "core",
|
|
434
|
+
"strict": true,
|
|
435
|
+
"summary": "Push SharinPix permissions to Salesforce org.",
|
|
436
|
+
"enableJsonFlag": true,
|
|
437
|
+
"isESM": true,
|
|
438
|
+
"relativePath": [
|
|
439
|
+
"lib",
|
|
440
|
+
"commands",
|
|
441
|
+
"sharinpix",
|
|
442
|
+
"permission",
|
|
443
|
+
"push.js"
|
|
444
|
+
],
|
|
445
|
+
"aliasPermutations": [],
|
|
446
|
+
"permutations": [
|
|
447
|
+
"sharinpix:permission:push",
|
|
448
|
+
"permission:sharinpix:push",
|
|
449
|
+
"permission:push:sharinpix",
|
|
450
|
+
"sharinpix:push:permission",
|
|
451
|
+
"push:sharinpix:permission",
|
|
452
|
+
"push:permission:sharinpix"
|
|
453
|
+
]
|
|
454
|
+
},
|
|
311
455
|
"sharinpix:form:csv2json": {
|
|
312
456
|
"aliases": [],
|
|
313
457
|
"args": {},
|
|
@@ -485,12 +629,13 @@
|
|
|
485
629
|
"sharinpix:form:push": {
|
|
486
630
|
"aliases": [],
|
|
487
631
|
"args": {},
|
|
488
|
-
"description": "Uploads SharinPix form templates from local JSON files to the connected Salesforce org. This command reads form templates from the local directory and creates or updates corresponding records in Salesforce.
|
|
632
|
+
"description": "Uploads SharinPix form templates from local JSON files to the connected Salesforce org. This command reads form templates from the local directory and creates or updates corresponding records in Salesforce. Each file is matched to an existing form template only by its `mainId`; if the file has no `mainId` or it is not found in the target org, a new form template is created. Pushing to a different org is therefore a one-time copy.",
|
|
489
633
|
"examples": [
|
|
490
634
|
"Push all form templates to the default org:\n<%= config.bin %> <%= command.id %>",
|
|
491
635
|
"Push form templates to a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
492
636
|
"Push form templates and delete orphaned records:\n<%= config.bin %> <%= command.id %> --delete",
|
|
493
|
-
"Convert CSV to JSON, then push:\n<%= config.bin %> <%= command.id %> --csv"
|
|
637
|
+
"Convert CSV to JSON, then push:\n<%= config.bin %> <%= command.id %> --csv",
|
|
638
|
+
"Push form templates and activate the new versions:\n<%= config.bin %> <%= command.id %> --activate"
|
|
494
639
|
],
|
|
495
640
|
"flags": {
|
|
496
641
|
"json": {
|
|
@@ -534,6 +679,14 @@
|
|
|
534
679
|
"summary": "Convert local CSV files to JSON before pushing.",
|
|
535
680
|
"allowNo": false,
|
|
536
681
|
"type": "boolean"
|
|
682
|
+
},
|
|
683
|
+
"activate": {
|
|
684
|
+
"char": "a",
|
|
685
|
+
"description": "When enabled, the newly pushed form template version is set as the active version in Salesforce. Without this flag, the version is created but not activated.",
|
|
686
|
+
"name": "activate",
|
|
687
|
+
"summary": "Activate the pushed form template version.",
|
|
688
|
+
"allowNo": false,
|
|
689
|
+
"type": "boolean"
|
|
537
690
|
}
|
|
538
691
|
},
|
|
539
692
|
"hasDynamicHelp": true,
|
|
@@ -562,142 +715,7 @@
|
|
|
562
715
|
"push:sharinpix:form",
|
|
563
716
|
"push:form:sharinpix"
|
|
564
717
|
]
|
|
565
|
-
},
|
|
566
|
-
"sharinpix:permission:pull": {
|
|
567
|
-
"aliases": [],
|
|
568
|
-
"args": {},
|
|
569
|
-
"description": "Retrieves all SharinPix permissions from the connected Salesforce org and saves them as JSON files in the local sharinpix/permissions directory. This command fetches the permission metadata and the JSON configuration data stored in the sharinpix**Json**c field.",
|
|
570
|
-
"examples": [
|
|
571
|
-
"Pull all SharinPix permissions from the default org:\n<%= config.bin %> <%= command.id %>",
|
|
572
|
-
"Pull SharinPix permissions from a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
573
|
-
],
|
|
574
|
-
"flags": {
|
|
575
|
-
"json": {
|
|
576
|
-
"description": "Format output as json.",
|
|
577
|
-
"helpGroup": "GLOBAL",
|
|
578
|
-
"name": "json",
|
|
579
|
-
"allowNo": false,
|
|
580
|
-
"type": "boolean"
|
|
581
|
-
},
|
|
582
|
-
"flags-dir": {
|
|
583
|
-
"helpGroup": "GLOBAL",
|
|
584
|
-
"name": "flags-dir",
|
|
585
|
-
"summary": "Import flag values from a directory.",
|
|
586
|
-
"hasDynamicHelp": false,
|
|
587
|
-
"multiple": false,
|
|
588
|
-
"type": "option"
|
|
589
|
-
},
|
|
590
|
-
"org": {
|
|
591
|
-
"char": "o",
|
|
592
|
-
"description": "The target Salesforce org containing the SharinPix permissions to be pulled.",
|
|
593
|
-
"name": "org",
|
|
594
|
-
"noCacheDefault": true,
|
|
595
|
-
"required": true,
|
|
596
|
-
"summary": "The Salesforce org to pull SharinPix permissions from.",
|
|
597
|
-
"hasDynamicHelp": true,
|
|
598
|
-
"multiple": false,
|
|
599
|
-
"type": "option"
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
"hasDynamicHelp": true,
|
|
603
|
-
"hiddenAliases": [],
|
|
604
|
-
"id": "sharinpix:permission:pull",
|
|
605
|
-
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
606
|
-
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
607
|
-
"pluginType": "core",
|
|
608
|
-
"strict": true,
|
|
609
|
-
"summary": "Pull SharinPix permissions from Salesforce org.",
|
|
610
|
-
"enableJsonFlag": true,
|
|
611
|
-
"isESM": true,
|
|
612
|
-
"relativePath": [
|
|
613
|
-
"lib",
|
|
614
|
-
"commands",
|
|
615
|
-
"sharinpix",
|
|
616
|
-
"permission",
|
|
617
|
-
"pull.js"
|
|
618
|
-
],
|
|
619
|
-
"aliasPermutations": [],
|
|
620
|
-
"permutations": [
|
|
621
|
-
"sharinpix:permission:pull",
|
|
622
|
-
"permission:sharinpix:pull",
|
|
623
|
-
"permission:pull:sharinpix",
|
|
624
|
-
"sharinpix:pull:permission",
|
|
625
|
-
"pull:sharinpix:permission",
|
|
626
|
-
"pull:permission:sharinpix"
|
|
627
|
-
]
|
|
628
|
-
},
|
|
629
|
-
"sharinpix:permission:push": {
|
|
630
|
-
"aliases": [],
|
|
631
|
-
"args": {},
|
|
632
|
-
"description": "Uploads SharinPix permissions from local JSON files to the connected Salesforce org. This command reads permission configurations from the local directory and creates or updates corresponding records in Salesforce. The sharinpix**Json**c field will be updated with the JSON configuration data.",
|
|
633
|
-
"examples": [
|
|
634
|
-
"Push all SharinPix permissions to the default org:\n<%= config.bin %> <%= command.id %>",
|
|
635
|
-
"Push SharinPix permissions to a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
636
|
-
"Push SharinPix permissions and delete orphaned records:\n<%= config.bin %> <%= command.id %> --delete"
|
|
637
|
-
],
|
|
638
|
-
"flags": {
|
|
639
|
-
"json": {
|
|
640
|
-
"description": "Format output as json.",
|
|
641
|
-
"helpGroup": "GLOBAL",
|
|
642
|
-
"name": "json",
|
|
643
|
-
"allowNo": false,
|
|
644
|
-
"type": "boolean"
|
|
645
|
-
},
|
|
646
|
-
"flags-dir": {
|
|
647
|
-
"helpGroup": "GLOBAL",
|
|
648
|
-
"name": "flags-dir",
|
|
649
|
-
"summary": "Import flag values from a directory.",
|
|
650
|
-
"hasDynamicHelp": false,
|
|
651
|
-
"multiple": false,
|
|
652
|
-
"type": "option"
|
|
653
|
-
},
|
|
654
|
-
"org": {
|
|
655
|
-
"char": "o",
|
|
656
|
-
"description": "The target Salesforce org where the SharinPix permissions will be uploaded and stored.",
|
|
657
|
-
"name": "org",
|
|
658
|
-
"noCacheDefault": true,
|
|
659
|
-
"required": true,
|
|
660
|
-
"summary": "The Salesforce org to push SharinPix permissions to.",
|
|
661
|
-
"hasDynamicHelp": true,
|
|
662
|
-
"multiple": false,
|
|
663
|
-
"type": "option"
|
|
664
|
-
},
|
|
665
|
-
"delete": {
|
|
666
|
-
"char": "d",
|
|
667
|
-
"description": "When enabled, this flag will delete SharinPix permission records from the Salesforce org if their corresponding local JSON files are missing. Use with caution as this operation cannot be undone.",
|
|
668
|
-
"name": "delete",
|
|
669
|
-
"summary": "Delete SharinPix permissions from org that no longer have corresponding local files.",
|
|
670
|
-
"allowNo": false,
|
|
671
|
-
"type": "boolean"
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
"hasDynamicHelp": true,
|
|
675
|
-
"hiddenAliases": [],
|
|
676
|
-
"id": "sharinpix:permission:push",
|
|
677
|
-
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
678
|
-
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
679
|
-
"pluginType": "core",
|
|
680
|
-
"strict": true,
|
|
681
|
-
"summary": "Push SharinPix permissions to Salesforce org.",
|
|
682
|
-
"enableJsonFlag": true,
|
|
683
|
-
"isESM": true,
|
|
684
|
-
"relativePath": [
|
|
685
|
-
"lib",
|
|
686
|
-
"commands",
|
|
687
|
-
"sharinpix",
|
|
688
|
-
"permission",
|
|
689
|
-
"push.js"
|
|
690
|
-
],
|
|
691
|
-
"aliasPermutations": [],
|
|
692
|
-
"permutations": [
|
|
693
|
-
"sharinpix:permission:push",
|
|
694
|
-
"permission:sharinpix:push",
|
|
695
|
-
"permission:push:sharinpix",
|
|
696
|
-
"sharinpix:push:permission",
|
|
697
|
-
"push:sharinpix:permission",
|
|
698
|
-
"push:permission:sharinpix"
|
|
699
|
-
]
|
|
700
718
|
}
|
|
701
719
|
},
|
|
702
|
-
"version": "1.
|
|
720
|
+
"version": "1.13.0"
|
|
703
721
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharinpix/sharinpix-sf-cli",
|
|
3
3
|
"description": "SharinPix salesforce cli plugin",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.13.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4",
|
|
7
7
|
"@salesforce/core": "^8",
|
|
@@ -199,5 +199,27 @@
|
|
|
199
199
|
"semantic-release": "^25.0.5",
|
|
200
200
|
"ts-node": "^10.9.2",
|
|
201
201
|
"typescript": "^5.9.3"
|
|
202
|
+
},
|
|
203
|
+
"release": {
|
|
204
|
+
"plugins": [
|
|
205
|
+
[
|
|
206
|
+
"@semantic-release/commit-analyzer",
|
|
207
|
+
{
|
|
208
|
+
"releaseRules": [
|
|
209
|
+
{
|
|
210
|
+
"breaking": true,
|
|
211
|
+
"release": "major"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"header": "**",
|
|
215
|
+
"release": "minor"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"@semantic-release/release-notes-generator",
|
|
221
|
+
"@semantic-release/npm",
|
|
222
|
+
"@semantic-release/github"
|
|
223
|
+
]
|
|
202
224
|
}
|
|
203
225
|
}
|