@sharinpix/sharinpix-sf-cli 1.9.2 → 1.11.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 +206 -4
- 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/pull.d.ts +6 -1
- package/lib/commands/sharinpix/form/pull.js +5 -1
- package/lib/commands/sharinpix/form/pull.js.map +1 -1
- package/lib/commands/sharinpix/form/push.d.ts +7 -1
- package/lib/commands/sharinpix/form/push.js +3 -0
- package/lib/commands/sharinpix/form/push.js.map +1 -1
- package/lib/commands/sharinpix/permission/pull.d.ts +5 -1
- package/lib/commands/sharinpix/permission/pull.js +5 -1
- package/lib/commands/sharinpix/permission/pull.js.map +1 -1
- package/lib/commands/sharinpix/permission/push.d.ts +6 -1
- package/lib/commands/sharinpix/permission/push.js +3 -0
- package/lib/commands/sharinpix/permission/push.js.map +1 -1
- package/lib/commands/sharinpix/pull.d.ts +15 -0
- package/lib/commands/sharinpix/pull.js +39 -0
- package/lib/commands/sharinpix/pull.js.map +1 -0
- package/lib/commands/sharinpix/push.d.ts +16 -0
- package/lib/commands/sharinpix/push.js +47 -0
- package/lib/commands/sharinpix/push.js.map +1 -0
- 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/messages/sharinpix.config.pull.md +37 -0
- package/messages/sharinpix.config.push.md +37 -0
- package/messages/sharinpix.pull.md +25 -0
- package/messages/sharinpix.push.md +37 -0
- package/messages/sharinpix.settings.md +22 -0
- package/oclif.lock +1042 -971
- package/oclif.manifest.json +392 -84
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"sharinpix:
|
|
3
|
+
"sharinpix:pull": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Retrieves all SharinPix form templates and permissions from the connected Salesforce org. This is a convenience command that executes both sharinpix:form:pull and sharinpix:permission:pull.",
|
|
7
7
|
"examples": [
|
|
8
|
-
"
|
|
8
|
+
"Pull all assets from the default org:\n<%= config.bin %> <%= command.id %>",
|
|
9
|
+
"Pull all assets from a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
9
10
|
],
|
|
10
11
|
"flags": {
|
|
11
12
|
"json": {
|
|
@@ -22,41 +23,49 @@
|
|
|
22
23
|
"hasDynamicHelp": false,
|
|
23
24
|
"multiple": false,
|
|
24
25
|
"type": "option"
|
|
26
|
+
},
|
|
27
|
+
"org": {
|
|
28
|
+
"char": "o",
|
|
29
|
+
"description": "The target Salesforce org containing the SharinPix assets to be pulled.",
|
|
30
|
+
"name": "org",
|
|
31
|
+
"noCacheDefault": true,
|
|
32
|
+
"required": true,
|
|
33
|
+
"summary": "The Salesforce org to pull assets from.",
|
|
34
|
+
"hasDynamicHelp": true,
|
|
35
|
+
"multiple": false,
|
|
36
|
+
"type": "option"
|
|
25
37
|
}
|
|
26
38
|
},
|
|
27
|
-
"hasDynamicHelp":
|
|
39
|
+
"hasDynamicHelp": true,
|
|
28
40
|
"hiddenAliases": [],
|
|
29
|
-
"id": "sharinpix:
|
|
41
|
+
"id": "sharinpix:pull",
|
|
30
42
|
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
31
43
|
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
32
44
|
"pluginType": "core",
|
|
33
45
|
"strict": true,
|
|
34
|
-
"summary": "
|
|
46
|
+
"summary": "Pull all SharinPix assets (forms and permissions) from Salesforce org.",
|
|
35
47
|
"enableJsonFlag": true,
|
|
36
48
|
"isESM": true,
|
|
37
49
|
"relativePath": [
|
|
38
50
|
"lib",
|
|
39
51
|
"commands",
|
|
40
52
|
"sharinpix",
|
|
41
|
-
"
|
|
42
|
-
"csv2json.js"
|
|
53
|
+
"pull.js"
|
|
43
54
|
],
|
|
44
55
|
"aliasPermutations": [],
|
|
45
56
|
"permutations": [
|
|
46
|
-
"sharinpix:
|
|
47
|
-
"
|
|
48
|
-
"form:csv2json:sharinpix",
|
|
49
|
-
"sharinpix:csv2json:form",
|
|
50
|
-
"csv2json:sharinpix:form",
|
|
51
|
-
"csv2json:form:sharinpix"
|
|
57
|
+
"sharinpix:pull",
|
|
58
|
+
"pull:sharinpix"
|
|
52
59
|
]
|
|
53
60
|
},
|
|
54
|
-
"sharinpix:
|
|
61
|
+
"sharinpix:push": {
|
|
55
62
|
"aliases": [],
|
|
56
63
|
"args": {},
|
|
57
|
-
"description": "
|
|
64
|
+
"description": "Uploads all local SharinPix form templates and permissions to the connected Salesforce org. This is a convenience command that executes both sharinpix:form:push and sharinpix:permission:push.",
|
|
58
65
|
"examples": [
|
|
59
|
-
"
|
|
66
|
+
"Push all assets to the default org:\n<%= config.bin %> <%= command.id %>",
|
|
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"
|
|
60
69
|
],
|
|
61
70
|
"flags": {
|
|
62
71
|
"json": {
|
|
@@ -73,43 +82,55 @@
|
|
|
73
82
|
"hasDynamicHelp": false,
|
|
74
83
|
"multiple": false,
|
|
75
84
|
"type": "option"
|
|
85
|
+
},
|
|
86
|
+
"org": {
|
|
87
|
+
"char": "o",
|
|
88
|
+
"description": "The target Salesforce org where the SharinPix assets will be pushed.",
|
|
89
|
+
"name": "org",
|
|
90
|
+
"noCacheDefault": true,
|
|
91
|
+
"required": true,
|
|
92
|
+
"summary": "The Salesforce org to push assets to.",
|
|
93
|
+
"hasDynamicHelp": true,
|
|
94
|
+
"multiple": false,
|
|
95
|
+
"type": "option"
|
|
96
|
+
},
|
|
97
|
+
"delete": {
|
|
98
|
+
"char": "d",
|
|
99
|
+
"description": "If specified, any form templates or permissions that exist in the org but not in the local project will be deleted.",
|
|
100
|
+
"name": "delete",
|
|
101
|
+
"summary": "Delete assets in the org that do not exist locally.",
|
|
102
|
+
"allowNo": false,
|
|
103
|
+
"type": "boolean"
|
|
76
104
|
}
|
|
77
105
|
},
|
|
78
|
-
"hasDynamicHelp":
|
|
106
|
+
"hasDynamicHelp": true,
|
|
79
107
|
"hiddenAliases": [],
|
|
80
|
-
"id": "sharinpix:
|
|
108
|
+
"id": "sharinpix:push",
|
|
81
109
|
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
82
110
|
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
83
111
|
"pluginType": "core",
|
|
84
112
|
"strict": true,
|
|
85
|
-
"summary": "
|
|
113
|
+
"summary": "Push all SharinPix assets (forms and permissions) to Salesforce org.",
|
|
86
114
|
"enableJsonFlag": true,
|
|
87
115
|
"isESM": true,
|
|
88
116
|
"relativePath": [
|
|
89
117
|
"lib",
|
|
90
118
|
"commands",
|
|
91
119
|
"sharinpix",
|
|
92
|
-
"
|
|
93
|
-
"json2csv.js"
|
|
120
|
+
"push.js"
|
|
94
121
|
],
|
|
95
122
|
"aliasPermutations": [],
|
|
96
123
|
"permutations": [
|
|
97
|
-
"sharinpix:
|
|
98
|
-
"
|
|
99
|
-
"form:json2csv:sharinpix",
|
|
100
|
-
"sharinpix:json2csv:form",
|
|
101
|
-
"json2csv:sharinpix:form",
|
|
102
|
-
"json2csv:form:sharinpix"
|
|
124
|
+
"sharinpix:push",
|
|
125
|
+
"push:sharinpix"
|
|
103
126
|
]
|
|
104
127
|
},
|
|
105
|
-
"sharinpix:
|
|
128
|
+
"sharinpix:settings": {
|
|
106
129
|
"aliases": [],
|
|
107
130
|
"args": {},
|
|
108
|
-
"description": "
|
|
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`.",
|
|
109
132
|
"examples": [
|
|
110
|
-
"
|
|
111
|
-
"Pull form templates from a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
112
|
-
"Pull form templates and also generate CSV files:\n<%= config.bin %> <%= command.id %> --csv"
|
|
133
|
+
"Open the SharinPix settings page for a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com"
|
|
113
134
|
],
|
|
114
135
|
"flags": {
|
|
115
136
|
"json": {
|
|
@@ -129,60 +150,45 @@
|
|
|
129
150
|
},
|
|
130
151
|
"org": {
|
|
131
152
|
"char": "o",
|
|
132
|
-
"description": "The target Salesforce org
|
|
153
|
+
"description": "The target Salesforce org (username or alias) where the SharinPix settings page should be opened.",
|
|
133
154
|
"name": "org",
|
|
134
155
|
"noCacheDefault": true,
|
|
135
156
|
"required": true,
|
|
136
|
-
"summary": "The Salesforce org to
|
|
157
|
+
"summary": "The Salesforce org to open.",
|
|
137
158
|
"hasDynamicHelp": true,
|
|
138
159
|
"multiple": false,
|
|
139
160
|
"type": "option"
|
|
140
|
-
},
|
|
141
|
-
"csv": {
|
|
142
|
-
"char": "c",
|
|
143
|
-
"description": "When enabled, after downloading all form templates as JSON into `sharinpix/forms`, the command runs the JSON-to-CSV conversion (same as `sharinpix:form:json2csv`).",
|
|
144
|
-
"name": "csv",
|
|
145
|
-
"summary": "Also generate CSV files from the downloaded JSON form definitions.",
|
|
146
|
-
"allowNo": false,
|
|
147
|
-
"type": "boolean"
|
|
148
161
|
}
|
|
149
162
|
},
|
|
150
163
|
"hasDynamicHelp": true,
|
|
151
164
|
"hiddenAliases": [],
|
|
152
|
-
"id": "sharinpix:
|
|
165
|
+
"id": "sharinpix:settings",
|
|
153
166
|
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
154
167
|
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
155
168
|
"pluginType": "core",
|
|
156
169
|
"strict": true,
|
|
157
|
-
"summary": "
|
|
170
|
+
"summary": "Open the SharinPix settings page in a Salesforce org.",
|
|
158
171
|
"enableJsonFlag": true,
|
|
159
172
|
"isESM": true,
|
|
160
173
|
"relativePath": [
|
|
161
174
|
"lib",
|
|
162
175
|
"commands",
|
|
163
176
|
"sharinpix",
|
|
164
|
-
"
|
|
165
|
-
"pull.js"
|
|
177
|
+
"settings.js"
|
|
166
178
|
],
|
|
167
179
|
"aliasPermutations": [],
|
|
168
180
|
"permutations": [
|
|
169
|
-
"sharinpix:
|
|
170
|
-
"
|
|
171
|
-
"form:pull:sharinpix",
|
|
172
|
-
"sharinpix:pull:form",
|
|
173
|
-
"pull:sharinpix:form",
|
|
174
|
-
"pull:form:sharinpix"
|
|
181
|
+
"sharinpix:settings",
|
|
182
|
+
"settings:sharinpix"
|
|
175
183
|
]
|
|
176
184
|
},
|
|
177
|
-
"sharinpix:
|
|
185
|
+
"sharinpix:config:pull": {
|
|
178
186
|
"aliases": [],
|
|
179
187
|
"args": {},
|
|
180
|
-
"description": "
|
|
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.",
|
|
181
189
|
"examples": [
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"Push form templates and delete orphaned records:\n<%= config.bin %> <%= command.id %> --delete",
|
|
185
|
-
"Convert CSV to JSON, then push:\n<%= config.bin %> <%= command.id %> --csv"
|
|
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"
|
|
186
192
|
],
|
|
187
193
|
"flags": {
|
|
188
194
|
"json": {
|
|
@@ -202,57 +208,104 @@
|
|
|
202
208
|
},
|
|
203
209
|
"org": {
|
|
204
210
|
"char": "o",
|
|
205
|
-
"description": "The
|
|
211
|
+
"description": "The Salesforce org used to obtain the authentication token for accessing the SharinPix API.",
|
|
206
212
|
"name": "org",
|
|
207
213
|
"noCacheDefault": true,
|
|
208
214
|
"required": true,
|
|
209
|
-
"summary": "The Salesforce org to
|
|
215
|
+
"summary": "The Salesforce org to authenticate with.",
|
|
210
216
|
"hasDynamicHelp": true,
|
|
211
217
|
"multiple": false,
|
|
212
218
|
"type": "option"
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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",
|
|
219
261
|
"allowNo": false,
|
|
220
262
|
"type": "boolean"
|
|
221
263
|
},
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
"type": "
|
|
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"
|
|
229
282
|
}
|
|
230
283
|
},
|
|
231
284
|
"hasDynamicHelp": true,
|
|
232
285
|
"hiddenAliases": [],
|
|
233
|
-
"id": "sharinpix:
|
|
286
|
+
"id": "sharinpix:config:push",
|
|
234
287
|
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
235
288
|
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
236
289
|
"pluginType": "core",
|
|
237
290
|
"strict": true,
|
|
238
|
-
"summary": "Push
|
|
291
|
+
"summary": "Push organization config to SharinPix API.",
|
|
239
292
|
"enableJsonFlag": true,
|
|
240
293
|
"isESM": true,
|
|
241
294
|
"relativePath": [
|
|
242
295
|
"lib",
|
|
243
296
|
"commands",
|
|
244
297
|
"sharinpix",
|
|
245
|
-
"
|
|
298
|
+
"config",
|
|
246
299
|
"push.js"
|
|
247
300
|
],
|
|
248
301
|
"aliasPermutations": [],
|
|
249
302
|
"permutations": [
|
|
250
|
-
"sharinpix:
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"sharinpix:push:
|
|
254
|
-
"push:sharinpix:
|
|
255
|
-
"push:
|
|
303
|
+
"sharinpix:config:push",
|
|
304
|
+
"config:sharinpix:push",
|
|
305
|
+
"config:push:sharinpix",
|
|
306
|
+
"sharinpix:push:config",
|
|
307
|
+
"push:sharinpix:config",
|
|
308
|
+
"push:config:sharinpix"
|
|
256
309
|
]
|
|
257
310
|
},
|
|
258
311
|
"sharinpix:permission:pull": {
|
|
@@ -389,7 +442,262 @@
|
|
|
389
442
|
"push:sharinpix:permission",
|
|
390
443
|
"push:permission:sharinpix"
|
|
391
444
|
]
|
|
445
|
+
},
|
|
446
|
+
"sharinpix:form:csv2json": {
|
|
447
|
+
"aliases": [],
|
|
448
|
+
"args": {},
|
|
449
|
+
"description": "Scans the local `sharinpix/forms` directory for SharinPix form CSV definition files and generates corresponding JSON files. Each CSV file is expected to have a header row of element keys and one row per element, as produced by the json2csv command.",
|
|
450
|
+
"examples": [
|
|
451
|
+
"Generate JSON files for all local SharinPix form CSV definitions:\n<%= config.bin %> <%= command.id %>"
|
|
452
|
+
],
|
|
453
|
+
"flags": {
|
|
454
|
+
"json": {
|
|
455
|
+
"description": "Format output as json.",
|
|
456
|
+
"helpGroup": "GLOBAL",
|
|
457
|
+
"name": "json",
|
|
458
|
+
"allowNo": false,
|
|
459
|
+
"type": "boolean"
|
|
460
|
+
},
|
|
461
|
+
"flags-dir": {
|
|
462
|
+
"helpGroup": "GLOBAL",
|
|
463
|
+
"name": "flags-dir",
|
|
464
|
+
"summary": "Import flag values from a directory.",
|
|
465
|
+
"hasDynamicHelp": false,
|
|
466
|
+
"multiple": false,
|
|
467
|
+
"type": "option"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"hasDynamicHelp": false,
|
|
471
|
+
"hiddenAliases": [],
|
|
472
|
+
"id": "sharinpix:form:csv2json",
|
|
473
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
474
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
475
|
+
"pluginType": "core",
|
|
476
|
+
"strict": true,
|
|
477
|
+
"summary": "Generate JSON files from SharinPix form CSV definitions.",
|
|
478
|
+
"enableJsonFlag": true,
|
|
479
|
+
"isESM": true,
|
|
480
|
+
"relativePath": [
|
|
481
|
+
"lib",
|
|
482
|
+
"commands",
|
|
483
|
+
"sharinpix",
|
|
484
|
+
"form",
|
|
485
|
+
"csv2json.js"
|
|
486
|
+
],
|
|
487
|
+
"aliasPermutations": [],
|
|
488
|
+
"permutations": [
|
|
489
|
+
"sharinpix:form:csv2json",
|
|
490
|
+
"form:sharinpix:csv2json",
|
|
491
|
+
"form:csv2json:sharinpix",
|
|
492
|
+
"sharinpix:csv2json:form",
|
|
493
|
+
"csv2json:sharinpix:form",
|
|
494
|
+
"csv2json:form:sharinpix"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"sharinpix:form:json2csv": {
|
|
498
|
+
"aliases": [],
|
|
499
|
+
"args": {},
|
|
500
|
+
"description": "Scans the local `sharinpix/forms` directory for SharinPix form JSON definition files and generates corresponding CSV files. The CSV files contain a header row built from all element keys and one row per element. Nested values are stringified.",
|
|
501
|
+
"examples": [
|
|
502
|
+
"Generate CSV files for all local SharinPix form JSON definitions:\n<%= config.bin %> <%= command.id %>"
|
|
503
|
+
],
|
|
504
|
+
"flags": {
|
|
505
|
+
"json": {
|
|
506
|
+
"description": "Format output as json.",
|
|
507
|
+
"helpGroup": "GLOBAL",
|
|
508
|
+
"name": "json",
|
|
509
|
+
"allowNo": false,
|
|
510
|
+
"type": "boolean"
|
|
511
|
+
},
|
|
512
|
+
"flags-dir": {
|
|
513
|
+
"helpGroup": "GLOBAL",
|
|
514
|
+
"name": "flags-dir",
|
|
515
|
+
"summary": "Import flag values from a directory.",
|
|
516
|
+
"hasDynamicHelp": false,
|
|
517
|
+
"multiple": false,
|
|
518
|
+
"type": "option"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"hasDynamicHelp": false,
|
|
522
|
+
"hiddenAliases": [],
|
|
523
|
+
"id": "sharinpix:form:json2csv",
|
|
524
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
525
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
526
|
+
"pluginType": "core",
|
|
527
|
+
"strict": true,
|
|
528
|
+
"summary": "Generate CSV files from SharinPix form JSON definitions.",
|
|
529
|
+
"enableJsonFlag": true,
|
|
530
|
+
"isESM": true,
|
|
531
|
+
"relativePath": [
|
|
532
|
+
"lib",
|
|
533
|
+
"commands",
|
|
534
|
+
"sharinpix",
|
|
535
|
+
"form",
|
|
536
|
+
"json2csv.js"
|
|
537
|
+
],
|
|
538
|
+
"aliasPermutations": [],
|
|
539
|
+
"permutations": [
|
|
540
|
+
"sharinpix:form:json2csv",
|
|
541
|
+
"form:sharinpix:json2csv",
|
|
542
|
+
"form:json2csv:sharinpix",
|
|
543
|
+
"sharinpix:json2csv:form",
|
|
544
|
+
"json2csv:sharinpix:form",
|
|
545
|
+
"json2csv:form:sharinpix"
|
|
546
|
+
]
|
|
547
|
+
},
|
|
548
|
+
"sharinpix:form:pull": {
|
|
549
|
+
"aliases": [],
|
|
550
|
+
"args": {},
|
|
551
|
+
"description": "Retrieves all 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.",
|
|
552
|
+
"examples": [
|
|
553
|
+
"Pull all form templates from the default org:\n<%= config.bin %> <%= command.id %>",
|
|
554
|
+
"Pull form templates from a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
555
|
+
"Pull form templates and also generate CSV files:\n<%= config.bin %> <%= command.id %> --csv"
|
|
556
|
+
],
|
|
557
|
+
"flags": {
|
|
558
|
+
"json": {
|
|
559
|
+
"description": "Format output as json.",
|
|
560
|
+
"helpGroup": "GLOBAL",
|
|
561
|
+
"name": "json",
|
|
562
|
+
"allowNo": false,
|
|
563
|
+
"type": "boolean"
|
|
564
|
+
},
|
|
565
|
+
"flags-dir": {
|
|
566
|
+
"helpGroup": "GLOBAL",
|
|
567
|
+
"name": "flags-dir",
|
|
568
|
+
"summary": "Import flag values from a directory.",
|
|
569
|
+
"hasDynamicHelp": false,
|
|
570
|
+
"multiple": false,
|
|
571
|
+
"type": "option"
|
|
572
|
+
},
|
|
573
|
+
"org": {
|
|
574
|
+
"char": "o",
|
|
575
|
+
"description": "The target Salesforce org containing the SharinPix form templates to be pulled.",
|
|
576
|
+
"name": "org",
|
|
577
|
+
"noCacheDefault": true,
|
|
578
|
+
"required": true,
|
|
579
|
+
"summary": "The Salesforce org to pull form templates from.",
|
|
580
|
+
"hasDynamicHelp": true,
|
|
581
|
+
"multiple": false,
|
|
582
|
+
"type": "option"
|
|
583
|
+
},
|
|
584
|
+
"csv": {
|
|
585
|
+
"char": "c",
|
|
586
|
+
"description": "When enabled, after downloading all form templates as JSON into `sharinpix/forms`, the command runs the JSON-to-CSV conversion (same as `sharinpix:form:json2csv`).",
|
|
587
|
+
"name": "csv",
|
|
588
|
+
"summary": "Also generate CSV files from the downloaded JSON form definitions.",
|
|
589
|
+
"allowNo": false,
|
|
590
|
+
"type": "boolean"
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"hasDynamicHelp": true,
|
|
594
|
+
"hiddenAliases": [],
|
|
595
|
+
"id": "sharinpix:form:pull",
|
|
596
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
597
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
598
|
+
"pluginType": "core",
|
|
599
|
+
"strict": true,
|
|
600
|
+
"summary": "Pull SharinPix form templates from Salesforce org.",
|
|
601
|
+
"enableJsonFlag": true,
|
|
602
|
+
"isESM": true,
|
|
603
|
+
"relativePath": [
|
|
604
|
+
"lib",
|
|
605
|
+
"commands",
|
|
606
|
+
"sharinpix",
|
|
607
|
+
"form",
|
|
608
|
+
"pull.js"
|
|
609
|
+
],
|
|
610
|
+
"aliasPermutations": [],
|
|
611
|
+
"permutations": [
|
|
612
|
+
"sharinpix:form:pull",
|
|
613
|
+
"form:sharinpix:pull",
|
|
614
|
+
"form:pull:sharinpix",
|
|
615
|
+
"sharinpix:pull:form",
|
|
616
|
+
"pull:sharinpix:form",
|
|
617
|
+
"pull:form:sharinpix"
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
"sharinpix:form:push": {
|
|
621
|
+
"aliases": [],
|
|
622
|
+
"args": {},
|
|
623
|
+
"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. Existing forms will be updated unless the force flag is used to skip them.",
|
|
624
|
+
"examples": [
|
|
625
|
+
"Push all form templates to the default org:\n<%= config.bin %> <%= command.id %>",
|
|
626
|
+
"Push form templates to a specific org:\n<%= config.bin %> <%= command.id %> --target-org myorg@example.com",
|
|
627
|
+
"Push form templates and delete orphaned records:\n<%= config.bin %> <%= command.id %> --delete",
|
|
628
|
+
"Convert CSV to JSON, then push:\n<%= config.bin %> <%= command.id %> --csv"
|
|
629
|
+
],
|
|
630
|
+
"flags": {
|
|
631
|
+
"json": {
|
|
632
|
+
"description": "Format output as json.",
|
|
633
|
+
"helpGroup": "GLOBAL",
|
|
634
|
+
"name": "json",
|
|
635
|
+
"allowNo": false,
|
|
636
|
+
"type": "boolean"
|
|
637
|
+
},
|
|
638
|
+
"flags-dir": {
|
|
639
|
+
"helpGroup": "GLOBAL",
|
|
640
|
+
"name": "flags-dir",
|
|
641
|
+
"summary": "Import flag values from a directory.",
|
|
642
|
+
"hasDynamicHelp": false,
|
|
643
|
+
"multiple": false,
|
|
644
|
+
"type": "option"
|
|
645
|
+
},
|
|
646
|
+
"org": {
|
|
647
|
+
"char": "o",
|
|
648
|
+
"description": "The target Salesforce org where the SharinPix form templates will be uploaded and stored.",
|
|
649
|
+
"name": "org",
|
|
650
|
+
"noCacheDefault": true,
|
|
651
|
+
"required": true,
|
|
652
|
+
"summary": "The Salesforce org to push form templates to.",
|
|
653
|
+
"hasDynamicHelp": true,
|
|
654
|
+
"multiple": false,
|
|
655
|
+
"type": "option"
|
|
656
|
+
},
|
|
657
|
+
"delete": {
|
|
658
|
+
"char": "d",
|
|
659
|
+
"description": "When enabled, this flag will delete form template records from the Salesforce org if their corresponding local JSON files are missing. Use with caution as this operation cannot be undone.",
|
|
660
|
+
"name": "delete",
|
|
661
|
+
"summary": "Delete form templates from org that no longer have corresponding local files.",
|
|
662
|
+
"allowNo": false,
|
|
663
|
+
"type": "boolean"
|
|
664
|
+
},
|
|
665
|
+
"csv": {
|
|
666
|
+
"char": "c",
|
|
667
|
+
"description": "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.",
|
|
668
|
+
"name": "csv",
|
|
669
|
+
"summary": "Convert local CSV files to JSON before pushing.",
|
|
670
|
+
"allowNo": false,
|
|
671
|
+
"type": "boolean"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"hasDynamicHelp": true,
|
|
675
|
+
"hiddenAliases": [],
|
|
676
|
+
"id": "sharinpix:form:push",
|
|
677
|
+
"pluginAlias": "@sharinpix/sharinpix-sf-cli",
|
|
678
|
+
"pluginName": "@sharinpix/sharinpix-sf-cli",
|
|
679
|
+
"pluginType": "core",
|
|
680
|
+
"strict": true,
|
|
681
|
+
"summary": "Push SharinPix form templates to Salesforce org.",
|
|
682
|
+
"enableJsonFlag": true,
|
|
683
|
+
"isESM": true,
|
|
684
|
+
"relativePath": [
|
|
685
|
+
"lib",
|
|
686
|
+
"commands",
|
|
687
|
+
"sharinpix",
|
|
688
|
+
"form",
|
|
689
|
+
"push.js"
|
|
690
|
+
],
|
|
691
|
+
"aliasPermutations": [],
|
|
692
|
+
"permutations": [
|
|
693
|
+
"sharinpix:form:push",
|
|
694
|
+
"form:sharinpix:push",
|
|
695
|
+
"form:push:sharinpix",
|
|
696
|
+
"sharinpix:push:form",
|
|
697
|
+
"push:sharinpix:form",
|
|
698
|
+
"push:form:sharinpix"
|
|
699
|
+
]
|
|
392
700
|
}
|
|
393
701
|
},
|
|
394
|
-
"version": "1.
|
|
702
|
+
"version": "1.11.0"
|
|
395
703
|
}
|
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.11.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4",
|
|
7
7
|
"@salesforce/core": "^8",
|
|
@@ -186,10 +186,10 @@
|
|
|
186
186
|
"@types/mocha": "^10.0.7",
|
|
187
187
|
"@types/mock-fs": "^4.13.4",
|
|
188
188
|
"cross-env": "^7.0.3",
|
|
189
|
-
"eslint-plugin-sf-plugin": "^1.
|
|
189
|
+
"eslint-plugin-sf-plugin": "^1.20.33",
|
|
190
190
|
"husky": "^9.1.7",
|
|
191
191
|
"mock-fs": "^5.5.0",
|
|
192
|
-
"oclif": "^4.
|
|
192
|
+
"oclif": "^4.22.67",
|
|
193
193
|
"semantic-release": "^24.2.7",
|
|
194
194
|
"ts-node": "^10.9.2",
|
|
195
195
|
"typescript": "^5.9.2"
|