@pdfbutler/migration-cli 0.0.26 → 0.0.28
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 +193 -30
- package/lib/commands/butler/pb/admincredentials.d.ts +0 -5
- package/lib/commands/butler/pb/admincredentials.js +46 -115
- package/lib/commands/butler/pb/admincredentials.js.map +1 -1
- package/lib/commands/butler/pb/adminsettings.d.ts +1 -7
- package/lib/commands/butler/pb/adminsettings.js +41 -110
- package/lib/commands/butler/pb/adminsettings.js.map +1 -1
- package/lib/commands/butler/pb/export.d.ts +10 -8
- package/lib/commands/butler/pb/export.js +302 -312
- package/lib/commands/butler/pb/export.js.map +1 -1
- package/lib/commands/butler/pb/exportdatasource.d.ts +27 -0
- package/lib/commands/butler/pb/exportdatasource.js +161 -0
- package/lib/commands/butler/pb/exportdatasource.js.map +1 -0
- package/lib/commands/butler/pb/exportpack.d.ts +0 -5
- package/lib/commands/butler/pb/exportpack.js +60 -142
- package/lib/commands/butler/pb/exportpack.js.map +1 -1
- package/lib/commands/butler/pb/import.d.ts +16 -9
- package/lib/commands/butler/pb/import.js +400 -267
- package/lib/commands/butler/pb/import.js.map +1 -1
- package/lib/commands/butler/pb/importdatasource.d.ts +30 -0
- package/lib/commands/butler/pb/importdatasource.js +250 -0
- package/lib/commands/butler/pb/importdatasource.js.map +1 -0
- package/lib/commands/butler/pb/importpack.d.ts +0 -5
- package/lib/commands/butler/pb/importpack.js +57 -138
- package/lib/commands/butler/pb/importpack.js.map +1 -1
- package/lib/commands/butler/sb/export/signtemplate.d.ts +23 -0
- package/lib/commands/butler/sb/export/signtemplate.js +111 -0
- package/lib/commands/butler/sb/export/signtemplate.js.map +1 -0
- package/lib/commands/butler/sb/import/signtemplate.d.ts +23 -0
- package/lib/commands/butler/sb/import/signtemplate.js +108 -0
- package/lib/commands/butler/sb/import/signtemplate.js.map +1 -0
- package/lib/utils/authentication.d.ts +4 -0
- package/lib/utils/authentication.js +69 -0
- package/lib/utils/authentication.js.map +1 -0
- package/lib/utils/constants.d.ts +137 -0
- package/lib/utils/constants.js +141 -0
- package/lib/utils/constants.js.map +1 -0
- package/lib/utils/extract-templates.d.ts +1 -0
- package/lib/utils/extract-templates.js +89 -0
- package/lib/utils/extract-templates.js.map +1 -0
- package/lib/utils/logger.d.ts +9 -0
- package/lib/utils/logger.js +51 -0
- package/lib/utils/logger.js.map +1 -0
- package/messages/butler.pb.export.md +4 -0
- package/messages/butler.pb.exportdatasource.md +51 -0
- package/messages/butler.pb.import.md +4 -0
- package/messages/butler.pb.importdatasource.md +51 -0
- package/messages/butler.sb.export.signtemplate.md +35 -0
- package/messages/butler.sb.import.signtemplate.md +35 -0
- package/oclif.manifest.json +321 -48
- package/package.json +223 -215
package/README.md
CHANGED
|
@@ -6,38 +6,53 @@
|
|
|
6
6
|
|
|
7
7
|
v0.0.11 updates: <br/>
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
9
|
+
- `-b` flag disables backend export. If specified, the export operation doesn't use a PDF Butler backend process for exporting the configuration. By default, backend export is enabled.
|
|
10
|
+
- `-l | --logs` flag. Use this flag to enable a more detailed log of the migration process.
|
|
11
|
+
- `-p | --partial` flag. Use this flag to ignore invalid document configurations and allow the export of document configuration files with the backend part.
|
|
12
12
|
|
|
13
13
|
v0.0.14 updates: <br/>
|
|
14
14
|
|
|
15
|
-
- The
|
|
15
|
+
- The `-i | --id` flag has been added to the import command to specify the IDs of the PDF Butler document configurations that require importing. This is a required flag.
|
|
16
16
|
|
|
17
17
|
v0.0.17 updates: <br/>
|
|
18
18
|
|
|
19
|
-
- The
|
|
19
|
+
- The `-c | --clone` flag has been added to the import command. Use '-c' or '--clone' to allow inserting new DocConfigs instead of updating existing ones.
|
|
20
20
|
|
|
21
21
|
v.0.0.18 updates: <br/>
|
|
22
22
|
This release introduces several new commands to enhance the management and deployment of PDFButler Packs and administrative settings in your org. Here’s a breakdown of the new commands and their functionality:
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
24
|
+
- `exportpack` — Allows you to export a PDFButler Pack from the org to an external file.
|
|
25
|
+
- `importpack` — Facilitates importing a previously exported PDFButler Pack into your org.
|
|
26
|
+
- `adminsettings` — Allows you to configure critical PDFButler settings such as the service URL, region, and stage.
|
|
27
|
+
- `admincredentials` — Enables you to securely provide or update the PDFButler admin credentials.
|
|
28
28
|
|
|
29
29
|
v.0.0.20 updates <br/>
|
|
30
30
|
This release introduces an alternative authentication method to enhance flexibility when connecting to Salesforce. The new functionality includes support for session-based authentication, allowing users to connect without relying solely on username.
|
|
31
31
|
Additionally, two new optional flags, --session and --instance, have been added to all commands to support this authentication method:
|
|
32
32
|
|
|
33
|
-
-
|
|
34
|
-
-
|
|
33
|
+
- `--session` — Allows you to provide a Salesforce Session Id for authentication.
|
|
34
|
+
- `--instance` — Specifies the Salesforce Instance URL for authentication.
|
|
35
35
|
|
|
36
|
-
v.0.0.24 updates
|
|
37
|
-
|
|
36
|
+
v.0.0.24 updates
|
|
37
|
+
This release introduces enhancements to filename handling, improving compatibility and usability when working with zipped files, particularly in Windows environments.
|
|
38
|
+
|
|
39
|
+
- `--cut` — Trim filenames to a maximum of 150 characters to prevent issues when extracting a zipped file on Windows, as Windows Explorer cannot support file paths longer than 255 characters.
|
|
40
|
+
- `--shortpaths` — The filename is just the DC name (drop the Stage and long DC Id in the filename).
|
|
41
|
+
|
|
42
|
+
v0.0.28 updates: <br/>
|
|
43
|
+
DocConfigs with Templates — Export & Import Support
|
|
44
|
+
- Export and import operations now support DocConfigs together with their associated template DocConfigs.
|
|
45
|
+
- Use `-m | --templates` to include templates during both export and import.
|
|
46
|
+
|
|
47
|
+
DataSource — Export & Import Support
|
|
48
|
+
- DataSource import requires PDF Butler package version v1.505 or higher.
|
|
49
|
+
- `exportdatasource` — Exports PDF Butler DataSources from the org.
|
|
50
|
+
- `importdatasource` — Imports PDF Butler DataSources into the org from JSON
|
|
51
|
+
|
|
52
|
+
SB Sign Request Template — Export & Import Support
|
|
53
|
+
- `butler:sb:export:signtemplate` — Exports Sign Request Templates from the org and saves them as JSON files for backup or migration.
|
|
54
|
+
- `butler:sb:import:signtemplate` — Imports Sign Request Templates into the org from previously exported JSON files
|
|
38
55
|
|
|
39
|
-
- '--cut'. Trim filenames to a maximum of 150 characters to prevent issues when extracting a zipped file on Windows, as Windows Explorer cannot support file paths longer than 255 characters.
|
|
40
|
-
- '--shortpaths'. The filename is just the DC name (drop the Stage and long DC Id in the filename).
|
|
41
56
|
## About
|
|
42
57
|
|
|
43
58
|
@pdfbutler/migration-cli is a Salesforce plugin designed to simplify and automate the process of migrating configurations within the PDF Butler system in the Salesforce environment. PDF Butler is a powerful tool for generating and automating documents in the Salesforce platform, and the use of this CLI plugin allows users to easily manage configurations and transfer them between different Salesforce instances or projects.
|
|
@@ -62,7 +77,7 @@ If you've installed Node.js on your computer, you can use npm to install Salesfo
|
|
|
62
77
|
npm install @salesforce/cli --global
|
|
63
78
|
```
|
|
64
79
|
|
|
65
|
-
For
|
|
80
|
+
For installation the plugin runs:
|
|
66
81
|
|
|
67
82
|
```
|
|
68
83
|
sf plugins install @pdfbutler/migration-cli
|
|
@@ -119,13 +134,59 @@ One of the common errors in Windows Command Prompt is incorrectly parsing comman
|
|
|
119
134
|
|
|
120
135
|
## Commands
|
|
121
136
|
|
|
137
|
+
## butler sb export signtemplate
|
|
138
|
+
|
|
139
|
+
Export Sign Request Template records from your organization.
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
USAGE
|
|
143
|
+
$ sf butler sb export signtemplate -i <value> -f <value> [--json] [-t <value>] [-l] [--session <value>] [--instance <value>]
|
|
144
|
+
|
|
145
|
+
FLAGS
|
|
146
|
+
-t, --target=<value> The Salesforce org username credentials to connect to the target org.
|
|
147
|
+
-i, --id=<value> The Customer Template ID to export. For bulk export, enter multiple IDs separated by whitespaces. (Required)
|
|
148
|
+
-f, --folder=<value> The output root folder path. Files will be saved to the signRequestTemplates subfolder. (Required)
|
|
149
|
+
-l, --logs Enable detailed logs for the export process.
|
|
150
|
+
--session=<value> Salesforce Session ID for authentication.
|
|
151
|
+
--instance=<value> Salesforce Instance URL for authentication.
|
|
152
|
+
|
|
153
|
+
DESCRIPTION
|
|
154
|
+
Export Sign Request Template records from your organization.
|
|
155
|
+
|
|
156
|
+
EXAMPLES
|
|
157
|
+
$ sf butler:sb:export:signtemplate -t my-org -i "a0Bxx0000000011 a0Bxx0000000012" -f "./export/sb"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## butler sb import signtemplate
|
|
161
|
+
|
|
162
|
+
Import Sign Request Template records into your organization.
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
USAGE
|
|
166
|
+
$ sf butler sb import signtemplate -i <value> -f <value> [--json] [-t <value>] [-l] [--session <value>] [--instance <value>]
|
|
167
|
+
|
|
168
|
+
FLAGS
|
|
169
|
+
-t, --target=<value> The Salesforce org username credentials to connect to the target org.
|
|
170
|
+
-i, --id=<value> The Customer Template ID to import. For bulk import, enter multiple IDs separated by whitespaces. (Required)
|
|
171
|
+
-f, --folder=<value> The export root folder path that contains the signRequestTemplates subfolder. (Required)
|
|
172
|
+
-l, --logs Enable detailed logs for the import process.
|
|
173
|
+
--session=<value> Salesforce Session ID for authentication.
|
|
174
|
+
--instance=<value> Salesforce Instance URL for authentication.
|
|
175
|
+
|
|
176
|
+
DESCRIPTION
|
|
177
|
+
Import Sign Request Template records into your organization.
|
|
178
|
+
|
|
179
|
+
EXAMPLES
|
|
180
|
+
$ sf butler:sb:import:signtemplate -t my-org -i "a0Bxx0000000011" -f "./export/sb"
|
|
181
|
+
```
|
|
182
|
+
|
|
122
183
|
## butler pb export
|
|
123
184
|
|
|
124
185
|
Export PDF Butler configurations.
|
|
125
186
|
|
|
126
187
|
```
|
|
127
188
|
USAGE
|
|
128
|
-
$ sf butler pb export [--target | -t <value>] [--id | -i <value>] [--out | -o <value>] [--stage | -s <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [--backend | -b] [--unzip | -u] [-l | --logs] [-p | --partial] [--session <value>] [--instance <value>]
|
|
189
|
+
$ sf butler pb export [--target | -t <value>] [--id | -i <value>] [--out | -o <value>] [--stage | -s <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [--backend | -b] [--unzip | -u] [-l | --logs] [-p | --partial] [-m | --templates] [--session <value>] [--instance <value>]
|
|
129
190
|
|
|
130
191
|
FLAGS
|
|
131
192
|
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Required)
|
|
@@ -145,6 +206,7 @@ FLAGS
|
|
|
145
206
|
-b, --backend Use this flag to disable PDF Butler backend export. (Optional)
|
|
146
207
|
-l, --logs Use it to get a more detailed log of migration process. (Optional)
|
|
147
208
|
-p, --partial Use this flag to ignore invalid document configurations and allow the export of document configuration files with the backend part. (Optional)
|
|
209
|
+
-m, --templates Include template DocConfigs in the export. (Optional)
|
|
148
210
|
--session=<value> This flag is used to provide a Salesforce Session ID for authentication.
|
|
149
211
|
--instance=<value> This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
150
212
|
|
|
@@ -181,7 +243,7 @@ EXAMPLES
|
|
|
181
243
|
|
|
182
244
|
$ sf butler pb export -t sfusername@sandbox.com -i 'document_configuration_id'
|
|
183
245
|
-o 'export_folder_name/archive_or_folder_name' -s 'TEST' -e 'https://eu1.pdfbutler.com'
|
|
184
|
-
-a 'pdf_butler_user_name-ADMIN:admin_password'
|
|
246
|
+
-a 'pdf_butler_user_name-ADMIN:admin_password' -m
|
|
185
247
|
|
|
186
248
|
# Console output:
|
|
187
249
|
Connected to sfusername@sandbox.com (00D06000001aXGkEAM) with API version 58.0
|
|
@@ -190,12 +252,19 @@ EXAMPLES
|
|
|
190
252
|
Directory 'export_folder_name/archive_or_folder_name'{
|
|
191
253
|
Directory 'sfdc'{
|
|
192
254
|
file 'docconfig_id.json',
|
|
255
|
+
file 'template_docconfig_id.json',
|
|
193
256
|
},
|
|
194
257
|
zip file'docconfig_id.zip'{
|
|
195
258
|
Directory 'ConfigTypes',
|
|
196
259
|
Directory 'DataSources',
|
|
197
260
|
file 'doc-config.json',
|
|
198
261
|
file 'TemplateName.docx'
|
|
262
|
+
},
|
|
263
|
+
zip file'template_docconfig_id.zip'{
|
|
264
|
+
Directory 'ConfigTypes',
|
|
265
|
+
Directory 'DataSources',
|
|
266
|
+
file 'doc-config.json',
|
|
267
|
+
file 'TemplateName.docx'
|
|
199
268
|
}
|
|
200
269
|
}
|
|
201
270
|
|
|
@@ -211,7 +280,7 @@ EXAMPLES
|
|
|
211
280
|
# Created:
|
|
212
281
|
Directory 'export_folder_name/archive_or_folder_name'{
|
|
213
282
|
Directory 'sfdc'{
|
|
214
|
-
file 'docconfig_id.json'
|
|
283
|
+
file 'docconfig_id.json'
|
|
215
284
|
},
|
|
216
285
|
Unziped directory 'docconfig_id'{
|
|
217
286
|
Directory 'ConfigTypes',
|
|
@@ -365,9 +434,12 @@ FLAG DESCRIPTIONS
|
|
|
365
434
|
-p, --partial
|
|
366
435
|
Use this flag to ignore invalid document configurations and allow the export of document configuration files with the backend part.
|
|
367
436
|
|
|
437
|
+
-m, --templates
|
|
438
|
+
Include template DocConfigs in the export.
|
|
439
|
+
|
|
368
440
|
--session
|
|
369
441
|
This flag is used to provide a Salesforce Session ID for authentication.
|
|
370
|
-
|
|
442
|
+
|
|
371
443
|
--instance
|
|
372
444
|
This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
373
445
|
```
|
|
@@ -378,7 +450,7 @@ Import PDF Butler document configurations and related DataSource files.
|
|
|
378
450
|
|
|
379
451
|
```
|
|
380
452
|
USAGE
|
|
381
|
-
$ sf butler pb import [--target | -t <value>] [--id | -i <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [--stage | -s <value>] [--config | -f <value>] [-c | --clone] [--session <value>] [--instance <value>]
|
|
453
|
+
$ sf butler pb import [--target | -t <value>] [--id | -i <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [--stage | -s <value>] [--config | -f <value>] [-c | --clone] [-m | --templates] [--session <value>] [--instance <value>]
|
|
382
454
|
|
|
383
455
|
FLAGS
|
|
384
456
|
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Required)
|
|
@@ -396,6 +468,7 @@ FLAGS
|
|
|
396
468
|
-f, --config=<value> The path to the directory containing configurations to import. (Required)
|
|
397
469
|
-l, --logs Use it to get a more detailed log of migration process. (Optional)
|
|
398
470
|
-c, --clone Use this flag to disables the update of existing docconfigs and allows to create new ones. (Optional)
|
|
471
|
+
-m, --templates Include template DocConfigs in the import. (Optional)
|
|
399
472
|
--session=<value> This flag is used to provide a Salesforce Session ID for authentication.
|
|
400
473
|
--instance=<value> This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
401
474
|
|
|
@@ -412,7 +485,7 @@ EXAMPLE
|
|
|
412
485
|
Import configurations with --clone flag to the organization:
|
|
413
486
|
|
|
414
487
|
$ sf butler pb import -t sfusername@sandbox.com -i 'document_configuration_id' -f .export_folder_name/archive_or_folder_name
|
|
415
|
-
-e 'https://eu1.pdfbutler.com' -a 'pdf_butler_user_name-ADMIN:admin_password' -s 'UAT' -c
|
|
488
|
+
-e 'https://eu1.pdfbutler.com' -a 'pdf_butler_user_name-ADMIN:admin_password' -s 'UAT' -c -m
|
|
416
489
|
|
|
417
490
|
#Imported:
|
|
418
491
|
Insert a new Doc config with a unique 'customerDocumentConfigId'.
|
|
@@ -465,13 +538,96 @@ FLAG DESCRIPTIONS
|
|
|
465
538
|
-c, --clone
|
|
466
539
|
Use this flag to disables the update of existing docconfigs and allows to create new ones. (Optional)
|
|
467
540
|
|
|
541
|
+
-m, --templates
|
|
542
|
+
Include template DocConfigs in the import.
|
|
543
|
+
|
|
468
544
|
--session
|
|
469
545
|
This flag is used to provide a Salesforce Session ID for authentication.
|
|
470
|
-
|
|
546
|
+
|
|
471
547
|
--instance
|
|
472
548
|
This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
473
549
|
```
|
|
474
550
|
|
|
551
|
+
## butler pb exportdatasource
|
|
552
|
+
|
|
553
|
+
Export PDF Butler DataSource files.
|
|
554
|
+
|
|
555
|
+
```
|
|
556
|
+
USAGE
|
|
557
|
+
$ sf butler pb exportdatasource [--target | -t <value>] [--id | -i <value>] [--folder | -f <value>] [--stage | -s <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [-l | --logs] [-p | --parents] [--session <value>] [--instance <value>]
|
|
558
|
+
|
|
559
|
+
FLAGS
|
|
560
|
+
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Optional)
|
|
561
|
+
-i, --id=<value> The DataSource ID(s) to export. For bulk export, enter multiple IDs separated by commas or spaces. (Required)
|
|
562
|
+
-f, --folder=<value> The output folder where DataSource JSON files will be saved. (Required)
|
|
563
|
+
-s, --stage=<value> The CADMUS stage. (Required)
|
|
564
|
+
-a, --auth-env-var=<value> The PDF Butler credentials for backend authentication. (Optional)
|
|
565
|
+
-e, --endpoint=<value> The URL PDF Butler endpoint for export. (Optional)
|
|
566
|
+
-l, --logs Use it to get a more detailed log of migration process. (Optional)
|
|
567
|
+
-p, --parents Automatically export parent DataSources recursively when detected. (Optional)
|
|
568
|
+
--session=<value> This flag is used to provide a Salesforce Session ID for authentication.
|
|
569
|
+
--instance=<value> This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
570
|
+
|
|
571
|
+
DESCRIPTION
|
|
572
|
+
Export DataSources from your organization into JSON files.
|
|
573
|
+
|
|
574
|
+
The command writes files into:
|
|
575
|
+
./<folder>/sfdc/<DataSourceId>.json
|
|
576
|
+
|
|
577
|
+
EXAMPLES
|
|
578
|
+
Export a single DataSource:
|
|
579
|
+
|
|
580
|
+
$ sf butler pb exportdatasource -t sfusername@sandbox.com -i '00Dxxxxxxxxxxxx' -f 'export' -s 'TEST'
|
|
581
|
+
|
|
582
|
+
Export multiple DataSources:
|
|
583
|
+
|
|
584
|
+
$ sf butler pb exportdatasource -t sfusername@sandbox.com -i '00Dxxx, 00Dyyy' -f 'export' -s 'TEST' -l
|
|
585
|
+
|
|
586
|
+
Export with parent DataSources:
|
|
587
|
+
|
|
588
|
+
$ sf butler pb exportdatasource -t sfusername@sandbox.com -i '00Dxxx' -f 'export' -s 'TEST' -p
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
## butler pb importdatasource
|
|
592
|
+
|
|
593
|
+
Import PDF Butler DataSource files.
|
|
594
|
+
|
|
595
|
+
```
|
|
596
|
+
USAGE
|
|
597
|
+
$ sf butler pb importdatasource [--target | -t <value>] [--id | -i <value>] [--folder | -f <value>] [--stage | -s <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [-l | --logs] [-p | --parents] [--session <value>] [--instance <value>]
|
|
598
|
+
|
|
599
|
+
FLAGS
|
|
600
|
+
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Optional)
|
|
601
|
+
-i, --id=<value> The DataSource ID(s) to import. For bulk import, enter multiple IDs separated by commas or spaces. (Required)
|
|
602
|
+
-f, --folder=<value> The folder that contains exported DataSource JSON files. (Required)
|
|
603
|
+
-s, --stage=<value> The CADMUS stage. (Optional)
|
|
604
|
+
-a, --auth-env-var=<value> The PDF Butler credentials for backend authentication. (Optional)
|
|
605
|
+
-e, --endpoint=<value> The URL PDF Butler endpoint for import. (Optional)
|
|
606
|
+
-l, --logs Use it to get a more detailed log of migration process. (Optional)
|
|
607
|
+
-p, --parents Resolve and import parent DataSources first, then child DataSources. (Optional)
|
|
608
|
+
--session=<value> This flag is used to provide a Salesforce Session ID for authentication.
|
|
609
|
+
--instance=<value> This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
610
|
+
|
|
611
|
+
DESCRIPTION
|
|
612
|
+
Import DataSources from JSON files into your organization.
|
|
613
|
+
|
|
614
|
+
The command reads files from:
|
|
615
|
+
./<folder>/sfdc/<DataSourceId>.json
|
|
616
|
+
|
|
617
|
+
EXAMPLES
|
|
618
|
+
Import a single DataSource:
|
|
619
|
+
|
|
620
|
+
$ sf butler pb importdatasource -t sfusername@sandbox.com -i '00Dxxxxxxxxxxxx' -f 'export' -s 'TEST'
|
|
621
|
+
|
|
622
|
+
Import multiple DataSources:
|
|
623
|
+
|
|
624
|
+
$ sf butler pb importdatasource -t sfusername@sandbox.com -i '00Dxxx, 00Dyyy' -f 'export' -s 'TEST' -l
|
|
625
|
+
|
|
626
|
+
Import with parent DataSources first:
|
|
627
|
+
|
|
628
|
+
$ sf butler pb importdatasource -t sfusername@sandbox.com -i '00Dxxx' -f 'export' -s 'TEST' -p
|
|
629
|
+
```
|
|
630
|
+
|
|
475
631
|
## butler pb exportpack
|
|
476
632
|
|
|
477
633
|
<span style="color: red;">Important!</span> Make sure you have installed PDF Butler version equal or higher than v1.440. <br/>
|
|
@@ -523,7 +679,7 @@ EXAMPLES
|
|
|
523
679
|
Directory 'export_folder_name/folder_name/sfdc'{
|
|
524
680
|
file 'customer_pack_id.json'
|
|
525
681
|
}
|
|
526
|
-
|
|
682
|
+
|
|
527
683
|
Export multiple packs:
|
|
528
684
|
|
|
529
685
|
$ sf butler pb exportpack -t sfusername@sandbox.com -p 'customer_pack_id1, customer_pack_id2'
|
|
@@ -571,7 +727,7 @@ FLAG DESCRIPTIONS
|
|
|
571
727
|
|
|
572
728
|
--session
|
|
573
729
|
This flag is used to provide a Salesforce Session ID for authentication.
|
|
574
|
-
|
|
730
|
+
|
|
575
731
|
--instance
|
|
576
732
|
This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
577
733
|
```
|
|
@@ -617,7 +773,7 @@ EXAMPLES
|
|
|
617
773
|
[INFO] Retrieving items from the directory
|
|
618
774
|
[INFO] Files found in folder: 1
|
|
619
775
|
[INFO] Successfully imported export_folder_name/folder_name/sfdc/customer_pack_id1.json
|
|
620
|
-
|
|
776
|
+
|
|
621
777
|
Import multiple packs:
|
|
622
778
|
|
|
623
779
|
$ sf butler pb importpack -t sfusername@sandbox.com -p 'customer_pack_id1, customer_pack_id2'
|
|
@@ -652,7 +808,7 @@ FLAG DESCRIPTIONS
|
|
|
652
808
|
|
|
653
809
|
--session
|
|
654
810
|
This flag is used to provide a Salesforce Session ID for authentication.
|
|
655
|
-
|
|
811
|
+
|
|
656
812
|
--instance
|
|
657
813
|
This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
658
814
|
```
|
|
@@ -713,7 +869,7 @@ FLAG DESCRIPTIONS
|
|
|
713
869
|
|
|
714
870
|
--session
|
|
715
871
|
This flag is used to provide a Salesforce Session ID for authentication.
|
|
716
|
-
|
|
872
|
+
|
|
717
873
|
--instance
|
|
718
874
|
This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
719
875
|
```
|
|
@@ -744,7 +900,7 @@ DESCRIPTION
|
|
|
744
900
|
EXAMPLES
|
|
745
901
|
Set settings:
|
|
746
902
|
|
|
747
|
-
$ sf butler pb admincredentials -t sfusername@sandbox.com -u 'username'
|
|
903
|
+
$ sf butler pb admincredentials -t sfusername@sandbox.com -u 'username'
|
|
748
904
|
-p 'ADMIN_password' --user-password 'USER_password' -l
|
|
749
905
|
|
|
750
906
|
# Console output:
|
|
@@ -773,7 +929,7 @@ FLAG DESCRIPTIONS
|
|
|
773
929
|
|
|
774
930
|
--session
|
|
775
931
|
This flag is used to provide a Salesforce Session ID for authentication.
|
|
776
|
-
|
|
932
|
+
|
|
777
933
|
--instance
|
|
778
934
|
This flag specifies the Salesforce Instance URL. The Instance URL corresponds to the specific Salesforce environment (e.g., production, sandbox) you are connecting to.
|
|
779
935
|
```
|
|
@@ -919,3 +1075,10 @@ SOLUTION: When using the --stage flag, make sure to provide a valid CADMUS stage
|
|
|
919
1075
|
SOLUTION: When using the --config flag, ensure that you specify a valid directory path to docconfigs.
|
|
920
1076
|
|
|
921
1077
|
```
|
|
1078
|
+
|
|
1079
|
+
- Error (1): DataSource import failed. Check the JSON and try again.
|
|
1080
|
+
|
|
1081
|
+
```
|
|
1082
|
+
SOLUTION: Ensure PDF Butler package version is at least v1.505 and validate the DataSource JSON files.
|
|
1083
|
+
|
|
1084
|
+
```
|
|
@@ -15,10 +15,5 @@ export default class ButlerPbAdmincredentials extends SfCommand<ButlerPbAdmincre
|
|
|
15
15
|
session: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
16
|
instance: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
17
|
};
|
|
18
|
-
private static log;
|
|
19
|
-
private static isBlank;
|
|
20
|
-
private static authenticateWithTarget;
|
|
21
|
-
private static authenticateWitsSession;
|
|
22
|
-
private static authenticate;
|
|
23
18
|
run(): Promise<ButlerPbAdmincredentialsResult>;
|
|
24
19
|
}
|
|
@@ -16,81 +16,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
/* eslint-disable no-console */
|
|
17
17
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
18
18
|
const core_1 = require("@salesforce/core");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const ERROR_VERSION = 'Verify that you have PDFButler version greater than v1.440.';
|
|
23
|
-
const MSG_CONNECTION_FAILED = 'Connection to Salesforce has been failed.';
|
|
24
|
-
const MSG_CREATION_CONNECTION = 'Creating Connection with the Salesforce org.';
|
|
25
|
-
const MSG_AUTHORIZATION = 'Authorization with the username: [VALUE].';
|
|
26
|
-
const MSG_NO_AUTH_PARAMS = 'No authentication parameters provided. Please provide either username or session and instance parameters.';
|
|
27
|
-
const MSG_RUN_AUTH_COMMAND = 'Run the command "sf org login web" before authenticating with the target.';
|
|
28
|
-
const MSG_CHECK_SESSION_INSTANCE = 'Check if the session is up to date and if the instance is correct.';
|
|
19
|
+
const logger_1 = require("../../../utils/logger");
|
|
20
|
+
const constants_1 = require("../../../utils/constants");
|
|
21
|
+
const authentication_1 = require("../../../utils/authentication");
|
|
29
22
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
30
23
|
const messages = core_1.Messages.loadMessages('@pdfbutler/migration-cli', 'butler.pb.admincredentials');
|
|
31
24
|
class ButlerPbAdmincredentials extends sf_plugins_core_1.SfCommand {
|
|
32
|
-
static
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
this.log('Session Id (--session) cannot be empty', 'error');
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
this.log('Session Id and Instance URL (--session and --instance) cannot be empty', 'error');
|
|
72
|
-
}
|
|
73
|
-
this.log(MSG_CHECK_SESSION_INSTANCE, 'error');
|
|
74
|
-
throw new Error(MSG_CONNECTION_FAILED);
|
|
75
|
-
}
|
|
76
|
-
static async authenticate(username, session, instance) {
|
|
77
|
-
let connection;
|
|
78
|
-
if (this.isBlank(username) && (this.isBlank(session) || this.isBlank(instance))) {
|
|
79
|
-
throw new Error(MSG_NO_AUTH_PARAMS);
|
|
80
|
-
}
|
|
81
|
-
try {
|
|
82
|
-
if (this.isBlank(session) || this.isBlank(instance)) {
|
|
83
|
-
connection = await this.authenticateWithTarget(username);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
connection = await this.authenticateWitsSession(session, instance);
|
|
87
|
-
}
|
|
88
|
-
return connection;
|
|
89
|
-
}
|
|
90
|
-
catch (error) {
|
|
91
|
-
throw new Error(MSG_CONNECTION_FAILED);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
25
|
+
static summary = messages.getMessage('summary');
|
|
26
|
+
static description = messages.getMessage('description');
|
|
27
|
+
static examples = messages.getMessages('examples');
|
|
28
|
+
static flags = {
|
|
29
|
+
name: sf_plugins_core_1.Flags.string({
|
|
30
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
31
|
+
description: messages.getMessage('flags.name.description'),
|
|
32
|
+
char: 'n',
|
|
33
|
+
required: false,
|
|
34
|
+
}),
|
|
35
|
+
target: sf_plugins_core_1.Flags.string({
|
|
36
|
+
summary: messages.getMessage('flags.target.summary'),
|
|
37
|
+
char: 't',
|
|
38
|
+
required: false,
|
|
39
|
+
}),
|
|
40
|
+
username: sf_plugins_core_1.Flags.string({
|
|
41
|
+
summary: messages.getMessage('flags.username.summary'),
|
|
42
|
+
char: 'u',
|
|
43
|
+
required: true,
|
|
44
|
+
}),
|
|
45
|
+
password: sf_plugins_core_1.Flags.string({
|
|
46
|
+
summary: messages.getMessage('flags.password.summary'),
|
|
47
|
+
char: 'p',
|
|
48
|
+
required: true,
|
|
49
|
+
}),
|
|
50
|
+
'user-password': sf_plugins_core_1.Flags.string({
|
|
51
|
+
summary: messages.getMessage('flags.user-password.summary'),
|
|
52
|
+
required: true,
|
|
53
|
+
}),
|
|
54
|
+
session: sf_plugins_core_1.Flags.string({
|
|
55
|
+
summary: messages.getMessage('flags.session.summary'),
|
|
56
|
+
}),
|
|
57
|
+
instance: sf_plugins_core_1.Flags.string({
|
|
58
|
+
summary: messages.getMessage('flags.instance.summary'),
|
|
59
|
+
}),
|
|
60
|
+
};
|
|
94
61
|
async run() {
|
|
95
62
|
const { flags } = await this.parse(ButlerPbAdmincredentials);
|
|
96
63
|
const targetUsername = flags.target;
|
|
@@ -102,59 +69,23 @@ class ButlerPbAdmincredentials extends sf_plugins_core_1.SfCommand {
|
|
|
102
69
|
userPassword: flags['user-password'],
|
|
103
70
|
};
|
|
104
71
|
try {
|
|
105
|
-
const connection = await
|
|
106
|
-
|
|
107
|
-
await connection.apex.put(
|
|
108
|
-
|
|
72
|
+
const connection = await (0, authentication_1.authenticate)(targetUsername, session, instance);
|
|
73
|
+
logger_1.Logger.info(constants_1.MESSAGE.SENDING_TO_ENDPOINT.replace('[URL]', JSON.stringify(data, null, 2)));
|
|
74
|
+
await connection.apex.put(constants_1.PATH.ADMIN, data, { headers: { 'Content-Type': 'application/json' } });
|
|
75
|
+
logger_1.Logger.success(constants_1.MESSAGE.SUCCESS_IMPORT_CREDENTIALS);
|
|
109
76
|
return { success: true };
|
|
110
77
|
}
|
|
111
78
|
catch (error) {
|
|
112
79
|
const message = error instanceof Error ? error.message : String(error);
|
|
113
|
-
if (message.includes(
|
|
114
|
-
|
|
80
|
+
if (message.includes(constants_1.ERROR.URL_NOT_FOUND)) {
|
|
81
|
+
logger_1.Logger.error(constants_1.ERROR.URL_NOT_FOUND_VERSION_TOO_LOW);
|
|
115
82
|
}
|
|
116
83
|
else {
|
|
117
|
-
|
|
84
|
+
logger_1.Logger.error(constants_1.ERROR.IMPORT_CREDENTIALS.replace('[MESSAGE]', message));
|
|
118
85
|
}
|
|
119
86
|
return { success: false };
|
|
120
87
|
}
|
|
121
88
|
}
|
|
122
89
|
}
|
|
123
|
-
ButlerPbAdmincredentials.summary = messages.getMessage('summary');
|
|
124
|
-
ButlerPbAdmincredentials.description = messages.getMessage('description');
|
|
125
|
-
ButlerPbAdmincredentials.examples = messages.getMessages('examples');
|
|
126
|
-
ButlerPbAdmincredentials.flags = {
|
|
127
|
-
name: sf_plugins_core_1.Flags.string({
|
|
128
|
-
summary: messages.getMessage('flags.name.summary'),
|
|
129
|
-
description: messages.getMessage('flags.name.description'),
|
|
130
|
-
char: 'n',
|
|
131
|
-
required: false,
|
|
132
|
-
}),
|
|
133
|
-
target: sf_plugins_core_1.Flags.string({
|
|
134
|
-
summary: messages.getMessage('flags.target.summary'),
|
|
135
|
-
char: 't',
|
|
136
|
-
required: false,
|
|
137
|
-
}),
|
|
138
|
-
username: sf_plugins_core_1.Flags.string({
|
|
139
|
-
summary: messages.getMessage('flags.username.summary'),
|
|
140
|
-
char: 'u',
|
|
141
|
-
required: true,
|
|
142
|
-
}),
|
|
143
|
-
password: sf_plugins_core_1.Flags.string({
|
|
144
|
-
summary: messages.getMessage('flags.password.summary'),
|
|
145
|
-
char: 'p',
|
|
146
|
-
required: true,
|
|
147
|
-
}),
|
|
148
|
-
'user-password': sf_plugins_core_1.Flags.string({
|
|
149
|
-
summary: messages.getMessage('flags.user-password.summary'),
|
|
150
|
-
required: true,
|
|
151
|
-
}),
|
|
152
|
-
session: sf_plugins_core_1.Flags.string({
|
|
153
|
-
summary: messages.getMessage('flags.session.summary'),
|
|
154
|
-
}),
|
|
155
|
-
instance: sf_plugins_core_1.Flags.string({
|
|
156
|
-
summary: messages.getMessage('flags.instance.summary'),
|
|
157
|
-
}),
|
|
158
|
-
};
|
|
159
90
|
exports.default = ButlerPbAdmincredentials;
|
|
160
91
|
//# sourceMappingURL=admincredentials.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admincredentials.js","sourceRoot":"","sources":["../../../../src/commands/butler/pb/admincredentials.ts"],"names":[],"mappings":";;AAAA,uDAAuD;AACvD,wDAAwD;AACxD,4DAA4D;AAC5D,+BAA+B;AAC/B,2DAA2D;AAC3D,0DAA0D;AAC1D,qEAAqE;AACrE,sDAAsD;AACtD,+DAA+D;AAC/D,kDAAkD;AAClD,qDAAqD;AACrD,qCAAqC;AACrC,uDAAuD;AACvD,+BAA+B;AAC/B,iEAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"admincredentials.js","sourceRoot":"","sources":["../../../../src/commands/butler/pb/admincredentials.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
2
|
export type ButlerPbAdminsettingsResult = {
|
|
4
3
|
success: boolean;
|
|
@@ -8,17 +7,12 @@ export default class ButlerPbAdminsettings extends SfCommand<ButlerPbAdminsettin
|
|
|
8
7
|
static readonly description: string;
|
|
9
8
|
static readonly examples: string[];
|
|
10
9
|
static readonly flags: {
|
|
11
|
-
url: import("@oclif/core/lib/interfaces").OptionFlag<import("url").URL, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
|
+
url: import("@oclif/core/lib/interfaces").OptionFlag<import("node:url").URL, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
11
|
region: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
12
|
stage: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
14
13
|
target: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
14
|
session: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
15
|
instance: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
16
|
};
|
|
18
|
-
private static log;
|
|
19
|
-
private static isBlank;
|
|
20
|
-
private static authenticateWithTarget;
|
|
21
|
-
private static authenticateWitsSession;
|
|
22
|
-
private static authenticate;
|
|
23
17
|
run(): Promise<ButlerPbAdminsettingsResult>;
|
|
24
18
|
}
|