@sharinpix/sharinpix-sf-cli 1.10.0 → 1.12.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 +128 -9
- package/lib/commands/sharinpix/config/pull.d.ts +18 -0
- package/lib/commands/sharinpix/config/pull.js +60 -0
- package/lib/commands/sharinpix/config/pull.js.map +1 -0
- package/lib/commands/sharinpix/config/push.d.ts +18 -0
- package/lib/commands/sharinpix/config/push.js +59 -0
- package/lib/commands/sharinpix/config/push.js.map +1 -0
- package/lib/commands/sharinpix/form/csv2json.js +54 -61
- package/lib/commands/sharinpix/form/csv2json.js.map +1 -1
- package/lib/commands/sharinpix/form/json2csv.js +10 -13
- package/lib/commands/sharinpix/form/json2csv.js.map +1 -1
- package/lib/commands/sharinpix/form/pull.js +6 -2
- package/lib/commands/sharinpix/form/pull.js.map +1 -1
- package/lib/commands/sharinpix/pull.d.ts +1 -0
- package/lib/commands/sharinpix/pull.js +7 -1
- package/lib/commands/sharinpix/pull.js.map +1 -1
- package/lib/commands/sharinpix/push.d.ts +1 -0
- package/lib/commands/sharinpix/push.js +7 -1
- package/lib/commands/sharinpix/push.js.map +1 -1
- package/lib/commands/sharinpix/settings.d.ts +10 -0
- package/lib/commands/sharinpix/settings.js +24 -0
- package/lib/commands/sharinpix/settings.js.map +1 -0
- package/lib/helpers/form/elementKeys.d.ts +3 -0
- package/lib/helpers/form/elementKeys.js +74 -0
- package/lib/helpers/form/elementKeys.js.map +1 -0
- package/lib/helpers/form/transformers.d.ts +9 -0
- package/lib/helpers/form/transformers.js +84 -0
- package/lib/helpers/form/transformers.js.map +1 -0
- package/lib/helpers/utils.js +4 -17
- package/lib/helpers/utils.js.map +1 -1
- package/messages/sharinpix.config.pull.md +37 -0
- package/messages/sharinpix.config.push.md +37 -0
- package/messages/sharinpix.form.pull.md +2 -2
- package/messages/sharinpix.settings.md +22 -0
- package/oclif.lock +1412 -2051
- package/oclif.manifest.json +186 -3
- package/package.json +17 -11
- package/lib/helpers/form/elementKeyOrder.d.ts +0 -1
- package/lib/helpers/form/elementKeyOrder.js +0 -53
- package/lib/helpers/form/elementKeyOrder.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -125,6 +125,189 @@
|
|
|
125
125
|
"push:sharinpix"
|
|
126
126
|
]
|
|
127
127
|
},
|
|
128
|
+
"sharinpix:settings": {
|
|
129
|
+
"aliases": [],
|
|
130
|
+
"args": {},
|
|
131
|
+
"description": "Opens the SharinPix settings Lightning page in your default browser for the specified Salesforce org. This command is a convenience wrapper around `sf org open` with the path set to `/lightning/n/sharinpix__SharinPix_setting`.",
|
|
132
|
+
"examples": [
|
|
133
|
+
"Open the SharinPix settings page for a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
134
|
+
],
|
|
135
|
+
"flags": {
|
|
136
|
+
"json": {
|
|
137
|
+
"description": "Format output as json.",
|
|
138
|
+
"helpGroup": "GLOBAL",
|
|
139
|
+
"name": "json",
|
|
140
|
+
"allowNo": false,
|
|
141
|
+
"type": "boolean"
|
|
142
|
+
},
|
|
143
|
+
"flags-dir": {
|
|
144
|
+
"helpGroup": "GLOBAL",
|
|
145
|
+
"name": "flags-dir",
|
|
146
|
+
"summary": "Import flag values from a directory.",
|
|
147
|
+
"hasDynamicHelp": false,
|
|
148
|
+
"multiple": false,
|
|
149
|
+
"type": "option"
|
|
150
|
+
},
|
|
151
|
+
"org": {
|
|
152
|
+
"char": "o",
|
|
153
|
+
"description": "The target Salesforce org (username or alias) where the SharinPix settings page should be opened.",
|
|
154
|
+
"name": "org",
|
|
155
|
+
"noCacheDefault": true,
|
|
156
|
+
"required": true,
|
|
157
|
+
"summary": "The Salesforce org to open.",
|
|
158
|
+
"hasDynamicHelp": true,
|
|
159
|
+
"multiple": false,
|
|
160
|
+
"type": "option"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"hasDynamicHelp": true,
|
|
164
|
+
"hiddenAliases": [],
|
|
165
|
+
"id": "sharinpix:settings",
|
|
166
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
167
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
168
|
+
"pluginType": "core",
|
|
169
|
+
"strict": true,
|
|
170
|
+
"summary": "Open the SharinPix settings page in a Salesforce org.",
|
|
171
|
+
"enableJsonFlag": true,
|
|
172
|
+
"isESM": true,
|
|
173
|
+
"relativePath": [
|
|
174
|
+
"lib",
|
|
175
|
+
"commands",
|
|
176
|
+
"sharinpix",
|
|
177
|
+
"settings.js"
|
|
178
|
+
],
|
|
179
|
+
"aliasPermutations": [],
|
|
180
|
+
"permutations": [
|
|
181
|
+
"sharinpix:settings",
|
|
182
|
+
"settings:sharinpix"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"sharinpix:config:pull": {
|
|
186
|
+
"aliases": [],
|
|
187
|
+
"args": {},
|
|
188
|
+
"description": "Downloads the organization configuration from the SharinPix API and saves it to a local JSON file. This command connects to your Salesforce org to obtain an authentication token, then fetches the config from the SharinPix API endpoint.",
|
|
189
|
+
"examples": [
|
|
190
|
+
"Pull organization config using the default org:\n<%= config.bin %> <%= command.id %>",
|
|
191
|
+
"Pull organization config from a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
192
|
+
],
|
|
193
|
+
"flags": {
|
|
194
|
+
"json": {
|
|
195
|
+
"description": "Format output as json.",
|
|
196
|
+
"helpGroup": "GLOBAL",
|
|
197
|
+
"name": "json",
|
|
198
|
+
"allowNo": false,
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"flags-dir": {
|
|
202
|
+
"helpGroup": "GLOBAL",
|
|
203
|
+
"name": "flags-dir",
|
|
204
|
+
"summary": "Import flag values from a directory.",
|
|
205
|
+
"hasDynamicHelp": false,
|
|
206
|
+
"multiple": false,
|
|
207
|
+
"type": "option"
|
|
208
|
+
},
|
|
209
|
+
"org": {
|
|
210
|
+
"char": "o",
|
|
211
|
+
"description": "The Salesforce org used to obtain the authentication token for accessing the SharinPix API.",
|
|
212
|
+
"name": "org",
|
|
213
|
+
"noCacheDefault": true,
|
|
214
|
+
"required": true,
|
|
215
|
+
"summary": "The Salesforce org to authenticate with.",
|
|
216
|
+
"hasDynamicHelp": true,
|
|
217
|
+
"multiple": false,
|
|
218
|
+
"type": "option"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"hasDynamicHelp": true,
|
|
222
|
+
"hiddenAliases": [],
|
|
223
|
+
"id": "sharinpix:config:pull",
|
|
224
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
225
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
226
|
+
"pluginType": "core",
|
|
227
|
+
"strict": true,
|
|
228
|
+
"summary": "Pull organization config from SharinPix API.",
|
|
229
|
+
"enableJsonFlag": true,
|
|
230
|
+
"isESM": true,
|
|
231
|
+
"relativePath": [
|
|
232
|
+
"lib",
|
|
233
|
+
"commands",
|
|
234
|
+
"sharinpix",
|
|
235
|
+
"config",
|
|
236
|
+
"pull.js"
|
|
237
|
+
],
|
|
238
|
+
"aliasPermutations": [],
|
|
239
|
+
"permutations": [
|
|
240
|
+
"sharinpix:config:pull",
|
|
241
|
+
"config:sharinpix:pull",
|
|
242
|
+
"config:pull:sharinpix",
|
|
243
|
+
"sharinpix:pull:config",
|
|
244
|
+
"pull:sharinpix:config",
|
|
245
|
+
"pull:config:sharinpix"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
"sharinpix:config:push": {
|
|
249
|
+
"aliases": [],
|
|
250
|
+
"args": {},
|
|
251
|
+
"description": "Uploads the organization configuration from a local JSON file to the SharinPix API. This command connects to your Salesforce org to obtain an authentication token, then pushes the config to the SharinPix API endpoint.",
|
|
252
|
+
"examples": [
|
|
253
|
+
"Push organization config using the default org:\n<%= config.bin %> <%= command.id %>",
|
|
254
|
+
"Push organization config to a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
255
|
+
],
|
|
256
|
+
"flags": {
|
|
257
|
+
"json": {
|
|
258
|
+
"description": "Format output as json.",
|
|
259
|
+
"helpGroup": "GLOBAL",
|
|
260
|
+
"name": "json",
|
|
261
|
+
"allowNo": false,
|
|
262
|
+
"type": "boolean"
|
|
263
|
+
},
|
|
264
|
+
"flags-dir": {
|
|
265
|
+
"helpGroup": "GLOBAL",
|
|
266
|
+
"name": "flags-dir",
|
|
267
|
+
"summary": "Import flag values from a directory.",
|
|
268
|
+
"hasDynamicHelp": false,
|
|
269
|
+
"multiple": false,
|
|
270
|
+
"type": "option"
|
|
271
|
+
},
|
|
272
|
+
"org": {
|
|
273
|
+
"char": "o",
|
|
274
|
+
"description": "The Salesforce org used to obtain the authentication token for accessing the SharinPix API.",
|
|
275
|
+
"name": "org",
|
|
276
|
+
"noCacheDefault": true,
|
|
277
|
+
"required": true,
|
|
278
|
+
"summary": "The Salesforce org to authenticate with.",
|
|
279
|
+
"hasDynamicHelp": true,
|
|
280
|
+
"multiple": false,
|
|
281
|
+
"type": "option"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"hasDynamicHelp": true,
|
|
285
|
+
"hiddenAliases": [],
|
|
286
|
+
"id": "sharinpix:config:push",
|
|
287
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
288
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
289
|
+
"pluginType": "core",
|
|
290
|
+
"strict": true,
|
|
291
|
+
"summary": "Push organization config to SharinPix API.",
|
|
292
|
+
"enableJsonFlag": true,
|
|
293
|
+
"isESM": true,
|
|
294
|
+
"relativePath": [
|
|
295
|
+
"lib",
|
|
296
|
+
"commands",
|
|
297
|
+
"sharinpix",
|
|
298
|
+
"config",
|
|
299
|
+
"push.js"
|
|
300
|
+
],
|
|
301
|
+
"aliasPermutations": [],
|
|
302
|
+
"permutations": [
|
|
303
|
+
"sharinpix:config:push",
|
|
304
|
+
"config:sharinpix:push",
|
|
305
|
+
"config:push:sharinpix",
|
|
306
|
+
"sharinpix:push:config",
|
|
307
|
+
"push:sharinpix:config",
|
|
308
|
+
"push:config:sharinpix"
|
|
309
|
+
]
|
|
310
|
+
},
|
|
128
311
|
"sharinpix:form:csv2json": {
|
|
129
312
|
"aliases": [],
|
|
130
313
|
"args": {},
|
|
@@ -230,9 +413,9 @@
|
|
|
230
413
|
"sharinpix:form:pull": {
|
|
231
414
|
"aliases": [],
|
|
232
415
|
"args": {},
|
|
233
|
-
"description": "Retrieves
|
|
416
|
+
"description": "Retrieves active, version-record SharinPix form templates from the connected Salesforce org and saves them as JSON files in the local sharinpix/forms directory. This command fetches the form template metadata and downloads the actual form definition files.",
|
|
234
417
|
"examples": [
|
|
235
|
-
"Pull
|
|
418
|
+
"Pull active form templates from the default org:\n<%= config.bin %> <%= command.id %>",
|
|
236
419
|
"Pull form templates from a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
237
420
|
"Pull form templates and also generate CSV files:\n<%= config.bin %> <%= command.id %> --csv"
|
|
238
421
|
],
|
|
@@ -516,5 +699,5 @@
|
|
|
516
699
|
]
|
|
517
700
|
}
|
|
518
701
|
},
|
|
519
|
-
"version": "1.
|
|
702
|
+
"version": "1.12.0"
|
|
520
703
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharinpix/sharinpix-sf-cli",
|
|
3
3
|
"description": "SharinPix salesforce cli plugin",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.12.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4",
|
|
7
7
|
"@salesforce/core": "^8",
|
|
8
8
|
"@salesforce/sf-plugins-core": "^12",
|
|
9
|
-
"csv": "^6.4.1"
|
|
9
|
+
"csv": "^6.4.1",
|
|
10
|
+
"csv-parse": "^6.1.0"
|
|
10
11
|
},
|
|
11
12
|
"engines": {
|
|
12
13
|
"node": ">=18.0.0"
|
|
@@ -174,24 +175,29 @@
|
|
|
174
175
|
"type": "module",
|
|
175
176
|
"author": "SharinPix",
|
|
176
177
|
"resolutions": {
|
|
177
|
-
"@types/node": "^20.5.1"
|
|
178
|
+
"@types/node": "^20.5.1",
|
|
179
|
+
"@oclif/core": "4.11.11",
|
|
180
|
+
"@actions/http-client/undici": "^6.27.0",
|
|
181
|
+
"@semantic-release/github/undici": "^7.24.0",
|
|
182
|
+
"serialize-javascript": "^7.0.5"
|
|
178
183
|
},
|
|
179
184
|
"overrides": {
|
|
180
|
-
"@types/node": "^20.5.1"
|
|
185
|
+
"@types/node": "^20.5.1",
|
|
186
|
+
"@oclif/core": "$@oclif/core"
|
|
181
187
|
},
|
|
182
188
|
"devDependencies": {
|
|
183
|
-
"@oclif/plugin-command-snapshot": "^5.
|
|
189
|
+
"@oclif/plugin-command-snapshot": "^5.3.10",
|
|
184
190
|
"@salesforce/cli-plugins-testkit": "^5.3.41",
|
|
185
|
-
"@salesforce/dev-scripts": "^
|
|
191
|
+
"@salesforce/dev-scripts": "^11",
|
|
186
192
|
"@types/mocha": "^10.0.7",
|
|
187
|
-
"@types/mock-fs": "^4.13.4",
|
|
188
193
|
"cross-env": "^7.0.3",
|
|
189
194
|
"eslint-plugin-sf-plugin": "^1.20.33",
|
|
195
|
+
"fs-monkey": "^1.1.0",
|
|
190
196
|
"husky": "^9.1.7",
|
|
191
|
-
"
|
|
192
|
-
"oclif": "^4.
|
|
193
|
-
"semantic-release": "^
|
|
197
|
+
"memfs": "^4.30.1",
|
|
198
|
+
"oclif": "^4.23.24",
|
|
199
|
+
"semantic-release": "^25.0.5",
|
|
194
200
|
"ts-node": "^10.9.2",
|
|
195
|
-
"typescript": "^5.9.
|
|
201
|
+
"typescript": "^5.9.3"
|
|
196
202
|
}
|
|
197
203
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ELEMENT_KEY_ORDER: readonly string[];
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export const ELEMENT_KEY_ORDER = [
|
|
2
|
-
'id',
|
|
3
|
-
'index',
|
|
4
|
-
'label',
|
|
5
|
-
'type',
|
|
6
|
-
'elemType',
|
|
7
|
-
'richDescription',
|
|
8
|
-
'info',
|
|
9
|
-
'apiName',
|
|
10
|
-
'codeScan',
|
|
11
|
-
'inputType',
|
|
12
|
-
'magicFill',
|
|
13
|
-
'mobileApp',
|
|
14
|
-
'sfMapping',
|
|
15
|
-
'visibility',
|
|
16
|
-
'placeholder',
|
|
17
|
-
'validations',
|
|
18
|
-
'autocomplete',
|
|
19
|
-
'defaultValue',
|
|
20
|
-
'labelFormula',
|
|
21
|
-
'sfFieldUpdate',
|
|
22
|
-
'disabledFormula',
|
|
23
|
-
'allowBlankUpdate',
|
|
24
|
-
'defaultValueFormula',
|
|
25
|
-
'preserveRelaunchValueFormula',
|
|
26
|
-
'max',
|
|
27
|
-
'min',
|
|
28
|
-
'decimal',
|
|
29
|
-
'disabled',
|
|
30
|
-
'setToNow',
|
|
31
|
-
'calendarFormat',
|
|
32
|
-
'setToNowButton',
|
|
33
|
-
'options',
|
|
34
|
-
'description',
|
|
35
|
-
'required',
|
|
36
|
-
'style',
|
|
37
|
-
'sfRecordMapping',
|
|
38
|
-
'sfPullRecordMapping',
|
|
39
|
-
'parentId',
|
|
40
|
-
'sectionId',
|
|
41
|
-
'columnLabels',
|
|
42
|
-
'sortable',
|
|
43
|
-
'addFormula',
|
|
44
|
-
'addOptions',
|
|
45
|
-
'deleteFormula',
|
|
46
|
-
'height',
|
|
47
|
-
'size',
|
|
48
|
-
'readonly',
|
|
49
|
-
'step',
|
|
50
|
-
'rows',
|
|
51
|
-
'cols',
|
|
52
|
-
];
|
|
53
|
-
//# sourceMappingURL=elementKeyOrder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"elementKeyOrder.js","sourceRoot":"","sources":["../../../src/helpers/form/elementKeyOrder.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAClD,IAAI;IACJ,OAAO;IACP,OAAO;IACP,MAAM;IACN,UAAU;IACV,iBAAiB;IACjB,MAAM;IACN,SAAS;IACT,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,aAAa;IACb,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,kBAAkB;IAClB,qBAAqB;IACrB,8BAA8B;IAC9B,KAAK;IACL,KAAK;IACL,SAAS;IACT,UAAU;IACV,UAAU;IACV,gBAAgB;IAChB,gBAAgB;IAChB,SAAS;IACT,aAAa;IACb,UAAU;IACV,OAAO;IACP,iBAAiB;IACjB,qBAAqB;IACrB,UAAU;IACV,WAAW;IACX,cAAc;IACd,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,QAAQ;IACR,MAAM;IACN,UAAU;IACV,MAAM;IACN,MAAM;IACN,MAAM;CACE,CAAC"}
|