@pdfbutler/migration-cli 0.0.27 → 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.
Files changed (48) hide show
  1. package/README.md +193 -30
  2. package/lib/commands/butler/pb/admincredentials.js +37 -37
  3. package/lib/commands/butler/pb/admincredentials.js.map +1 -1
  4. package/lib/commands/butler/pb/adminsettings.d.ts +1 -2
  5. package/lib/commands/butler/pb/adminsettings.js +32 -32
  6. package/lib/commands/butler/pb/adminsettings.js.map +1 -1
  7. package/lib/commands/butler/pb/export.d.ts +10 -3
  8. package/lib/commands/butler/pb/export.js +295 -197
  9. package/lib/commands/butler/pb/export.js.map +1 -1
  10. package/lib/commands/butler/pb/exportdatasource.d.ts +27 -0
  11. package/lib/commands/butler/pb/exportdatasource.js +161 -0
  12. package/lib/commands/butler/pb/exportdatasource.js.map +1 -0
  13. package/lib/commands/butler/pb/exportpack.js +43 -46
  14. package/lib/commands/butler/pb/exportpack.js.map +1 -1
  15. package/lib/commands/butler/pb/import.d.ts +17 -3
  16. package/lib/commands/butler/pb/import.js +415 -183
  17. package/lib/commands/butler/pb/import.js.map +1 -1
  18. package/lib/commands/butler/pb/importdatasource.d.ts +30 -0
  19. package/lib/commands/butler/pb/importdatasource.js +250 -0
  20. package/lib/commands/butler/pb/importdatasource.js.map +1 -0
  21. package/lib/commands/butler/pb/importpack.js +38 -38
  22. package/lib/commands/butler/pb/importpack.js.map +1 -1
  23. package/lib/commands/butler/sb/export/signtemplate.d.ts +23 -0
  24. package/lib/commands/butler/sb/export/signtemplate.js +111 -0
  25. package/lib/commands/butler/sb/export/signtemplate.js.map +1 -0
  26. package/lib/commands/butler/sb/import/signtemplate.d.ts +23 -0
  27. package/lib/commands/butler/sb/import/signtemplate.js +108 -0
  28. package/lib/commands/butler/sb/import/signtemplate.js.map +1 -0
  29. package/lib/utils/authentication.d.ts +3 -1
  30. package/lib/utils/authentication.js +13 -17
  31. package/lib/utils/authentication.js.map +1 -1
  32. package/lib/utils/constants.d.ts +125 -89
  33. package/lib/utils/constants.js +56 -20
  34. package/lib/utils/constants.js.map +1 -1
  35. package/lib/utils/extract-templates.d.ts +1 -0
  36. package/lib/utils/extract-templates.js +89 -0
  37. package/lib/utils/extract-templates.js.map +1 -0
  38. package/lib/utils/logger.d.ts +2 -1
  39. package/lib/utils/logger.js +15 -7
  40. package/lib/utils/logger.js.map +1 -1
  41. package/messages/butler.pb.export.md +4 -0
  42. package/messages/butler.pb.exportdatasource.md +51 -0
  43. package/messages/butler.pb.import.md +4 -0
  44. package/messages/butler.pb.importdatasource.md +51 -0
  45. package/messages/butler.sb.export.signtemplate.md +35 -0
  46. package/messages/butler.sb.import.signtemplate.md +35 -0
  47. package/oclif.manifest.json +322 -43
  48. package/package.json +223 -215
package/package.json CHANGED
@@ -1,215 +1,223 @@
1
- {
2
- "name": "@pdfbutler/migration-cli",
3
- "description": "[![NPM](https://img.shields.io/npm/v/pdfbutler-migration-cli.svg?label=pdfbutler-migration-cli)](https://www.npmjs.com/package/pdfbutler-migration-cli) [![Downloads/week](https://img.shields.io/npm/dw/pdfbutler-migration-cli.svg)](https://npmjs.org/package/pdfbutler-migration-cli) [![License](https://img.shields.io/badge/License-BSD%203--Clause-brightgreen.svg)](https://raw.githubusercontent.com/salesforcecli/pdfbutler-migration-cli/main/LICENSE.txt)",
4
- "version": "0.0.27",
5
- "script": {
6
- "postinstall": "sf plugins link @pdfbutler/migration-cli"
7
- },
8
- "dependencies": {
9
- "@oclif/core": "^2.11.8",
10
- "@salesforce/core": "^5.2.0",
11
- "@salesforce/kit": "^3.0.8",
12
- "@salesforce/sf-plugins-core": "^3.1.28",
13
- "adm-zip": "^0.5.10",
14
- "got": "^11.8.6",
15
- "graceful-fs": "^4.2.4",
16
- "tslib": "^2"
17
- },
18
- "devDependencies": {
19
- "@salesforce/cli-plugins-testkit": "^4.3.0",
20
- "@salesforce/dev-config": "^4.0.1",
21
- "@salesforce/dev-scripts": "^5.7.0",
22
- "@salesforce/prettier-config": "^0.0.3",
23
- "@salesforce/ts-sinon": "^1.4.14",
24
- "@swc/core": "^1.3.19",
25
- "@types/adm-zip": "^0.5.1",
26
- "@types/graceful-fs": "^4.1.6",
27
- "@types/inquirer": "^9.0.3",
28
- "@typescript-eslint/eslint-plugin": "^5.59.8",
29
- "@typescript-eslint/parser": "^5.62.0",
30
- "chai": "^4.3.6",
31
- "eslint": "^8.47.0",
32
- "eslint-config-prettier": "^8.5.0",
33
- "eslint-config-salesforce": "^2.0.1",
34
- "eslint-config-salesforce-typescript": "^1.1.2",
35
- "eslint-plugin-import": "2.27.5",
36
- "eslint-plugin-jsdoc": "^46.4.6",
37
- "eslint-plugin-sf-plugin": "^1.16.2",
38
- "husky": "^7.0.4",
39
- "mocha": "^9.2.2",
40
- "nyc": "^15.1.0",
41
- "oclif": "^3.9.1",
42
- "prettier": "^2.8.8",
43
- "pretty-quick": "^3.1.3",
44
- "shx": "0.3.4",
45
- "sinon": "10.0.0",
46
- "ts-node": "^10.9.1",
47
- "typescript": "^5.1.6",
48
- "wireit": "^0.10.0"
49
- },
50
- "engines": {
51
- "node": ">=16.0.0"
52
- },
53
- "files": [
54
- "/lib",
55
- "/messages",
56
- "/oclif.manifest.json"
57
- ],
58
- "keywords": [
59
- "force",
60
- "salesforce",
61
- "sfdx",
62
- "salesforcedx",
63
- "sfdx-plugin",
64
- "sf-plugin",
65
- "sf",
66
- "pdfbutler"
67
- ],
68
- "license": "BSD-3-Clause",
69
- "main": "lib/index.js",
70
- "oclif": {
71
- "commands": "./lib/commands",
72
- "bin": "sf",
73
- "topicSeparator": " ",
74
- "devPlugins": [
75
- "@oclif/plugin-help"
76
- ],
77
- "topics": {
78
- "butler": {
79
- "description": "description for butler",
80
- "subtopics": {
81
- "pb": {
82
- "description": "description for butler.pb"
83
- }
84
- }
85
- }
86
- }
87
- },
88
- "scripts": {
89
- "build": "wireit",
90
- "clean": "sf-clean",
91
- "clean-all": "sf-clean all",
92
- "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
93
- "compile": "wireit",
94
- "docs": "sf-docs",
95
- "format": "wireit",
96
- "lint": "wireit",
97
- "postpack": "shx rm -f oclif.manifest.json",
98
- "prepack": "sf-prepack",
99
- "test": "wireit",
100
- "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
101
- "test:only": "wireit",
102
- "version": "oclif readme"
103
- },
104
- "publishConfig": {
105
- "access": "public"
106
- },
107
- "wireit": {
108
- "build": {
109
- "dependencies": [
110
- "compile",
111
- "lint"
112
- ]
113
- },
114
- "compile": {
115
- "command": "tsc -p . --pretty --incremental",
116
- "files": [
117
- "src/**/*.ts",
118
- "**/tsconfig.json",
119
- "messages/**"
120
- ],
121
- "output": [
122
- "lib/**",
123
- "*.tsbuildinfo"
124
- ],
125
- "clean": "if-file-deleted"
126
- },
127
- "format": {
128
- "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
129
- "files": [
130
- "src/**/*.ts",
131
- "test/**/*.ts",
132
- "schemas/**/*.json",
133
- "command-snapshot.json",
134
- ".prettier*"
135
- ],
136
- "output": []
137
- },
138
- "lint": {
139
- "command": "eslint src --color --cache --cache-location .eslintcache",
140
- "files": [
141
- "src/**/*.ts",
142
- "test/**/*.ts",
143
- "messages/**",
144
- "**/.eslint*",
145
- "**/tsconfig.json"
146
- ],
147
- "output": []
148
- },
149
- "test:compile": {
150
- "command": "tsc -p \"./test\" --pretty",
151
- "files": [
152
- "test/**/*.ts",
153
- "**/tsconfig.json"
154
- ],
155
- "output": []
156
- },
157
- "test": {
158
- "dependencies": [
159
- "test:compile",
160
- "test:only",
161
- "lint"
162
- ]
163
- },
164
- "test:only": {
165
- "command": "nyc mocha \"test/**/*.test.ts\"",
166
- "env": {
167
- "FORCE_COLOR": "2"
168
- },
169
- "files": [
170
- "test/**/*.ts",
171
- "src/**/*.ts",
172
- "**/tsconfig.json",
173
- ".mocha*",
174
- "!*.nut.ts",
175
- ".nycrc"
176
- ],
177
- "output": []
178
- },
179
- "test:command-reference": {
180
- "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
181
- "files": [
182
- "src/**/*.ts",
183
- "messages/**",
184
- "package.json"
185
- ],
186
- "output": [
187
- "tmp/root"
188
- ]
189
- },
190
- "test:deprecation-policy": {
191
- "command": "\"./bin/dev\" snapshot:compare",
192
- "files": [
193
- "src/**/*.ts"
194
- ],
195
- "output": [],
196
- "dependencies": [
197
- "compile"
198
- ]
199
- },
200
- "test:json-schema": {
201
- "command": "\"./bin/dev\" schema:compare",
202
- "files": [
203
- "src/**/*.ts",
204
- "schemas"
205
- ],
206
- "output": []
207
- }
208
- },
209
- "author": "pdfbutler",
210
- "types": "./lib/index.d.ts",
211
- "directories": {
212
- "lib": "lib",
213
- "test": "test"
214
- }
215
- }
1
+ {
2
+ "name": "@pdfbutler/migration-cli",
3
+ "description": "[![NPM](https://img.shields.io/npm/v/pdfbutler-migration-cli.svg?label=pdfbutler-migration-cli)](https://www.npmjs.com/package/pdfbutler-migration-cli) [![Downloads/week](https://img.shields.io/npm/dw/pdfbutler-migration-cli.svg)](https://npmjs.org/package/pdfbutler-migration-cli) [![License](https://img.shields.io/badge/License-BSD%203--Clause-brightgreen.svg)](https://raw.githubusercontent.com/salesforcecli/pdfbutler-migration-cli/main/LICENSE.txt)",
4
+ "version": "0.0.28",
5
+ "script": {
6
+ "postinstall": "sf plugins link @pdfbutler/migration-cli"
7
+ },
8
+ "dependencies": {
9
+ "@oclif/core": "^2.11.8",
10
+ "@salesforce/core": "^5.2.0",
11
+ "@salesforce/kit": "^3.0.8",
12
+ "@salesforce/sf-plugins-core": "^3.1.28",
13
+ "adm-zip": "^0.5.10",
14
+ "got": "^11.8.6",
15
+ "graceful-fs": "^4.2.4",
16
+ "tslib": "^2"
17
+ },
18
+ "overrides": {
19
+ "form-data": "^4.0.4"
20
+ },
21
+ "devDependencies": {
22
+ "@salesforce/cli-plugins-testkit": "^4.3.0",
23
+ "@salesforce/dev-config": "^4.0.1",
24
+ "@salesforce/dev-scripts": "^5.7.0",
25
+ "@salesforce/prettier-config": "^0.0.3",
26
+ "@salesforce/ts-sinon": "^1.4.14",
27
+ "@swc/core": "^1.3.19",
28
+ "@types/adm-zip": "^0.5.1",
29
+ "@types/graceful-fs": "^4.1.6",
30
+ "@types/inquirer": "^8.2.6",
31
+ "tsc-alias": "^1.8.8",
32
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
33
+ "@typescript-eslint/parser": "^5.62.0",
34
+ "chai": "^4.3.6",
35
+ "eslint": "^8.47.0",
36
+ "eslint-config-prettier": "^8.5.0",
37
+ "eslint-config-salesforce": "^2.0.1",
38
+ "eslint-config-salesforce-typescript": "^1.1.2",
39
+ "eslint-plugin-import": "2.27.5",
40
+ "eslint-plugin-jsdoc": "^46.4.6",
41
+ "eslint-plugin-sf-plugin": "^1.16.2",
42
+ "husky": "^7.0.4",
43
+ "mocha": "^9.2.2",
44
+ "nyc": "^15.1.0",
45
+ "oclif": "^3.9.1",
46
+ "prettier": "^2.8.8",
47
+ "pretty-quick": "^3.1.3",
48
+ "shx": "0.3.4",
49
+ "sinon": "10.0.0",
50
+ "tsconfig-paths": "^4.2.0",
51
+ "ts-node": "^10.9.1",
52
+ "typescript": "^5.1.6",
53
+ "wireit": "^0.10.0"
54
+ },
55
+ "engines": {
56
+ "node": ">=16.0.0"
57
+ },
58
+ "files": [
59
+ "/lib",
60
+ "/messages",
61
+ "/oclif.manifest.json"
62
+ ],
63
+ "keywords": [
64
+ "force",
65
+ "salesforce",
66
+ "sfdx",
67
+ "salesforcedx",
68
+ "sfdx-plugin",
69
+ "sf-plugin",
70
+ "sf",
71
+ "pdfbutler"
72
+ ],
73
+ "license": "BSD-3-Clause",
74
+ "main": "lib/index.js",
75
+ "oclif": {
76
+ "commands": "./lib/commands",
77
+ "bin": "sf",
78
+ "topicSeparator": " ",
79
+ "devPlugins": [
80
+ "@oclif/plugin-help"
81
+ ],
82
+ "topics": {
83
+ "butler": {
84
+ "description": "description for butler",
85
+ "subtopics": {
86
+ "pb": {
87
+ "description": "description for butler.pb"
88
+ },
89
+ "sb": {
90
+ "description": "description for butler.sb"
91
+ }
92
+ }
93
+ }
94
+ }
95
+ },
96
+ "scripts": {
97
+ "build": "wireit",
98
+ "clean": "sf-clean",
99
+ "clean-all": "sf-clean all",
100
+ "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
101
+ "compile": "wireit",
102
+ "docs": "sf-docs",
103
+ "format": "wireit",
104
+ "lint": "wireit",
105
+ "postpack": "shx rm -f oclif.manifest.json",
106
+ "prepack": "sf-prepack",
107
+ "test": "wireit",
108
+ "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
109
+ "test:only": "wireit",
110
+ "version": "oclif readme"
111
+ },
112
+ "publishConfig": {
113
+ "access": "public"
114
+ },
115
+ "wireit": {
116
+ "build": {
117
+ "dependencies": [
118
+ "compile",
119
+ "lint"
120
+ ]
121
+ },
122
+ "compile": {
123
+ "command": "tsc -p tsconfig.json --pretty --incremental && tsc-alias -p tsconfig.json",
124
+ "files": [
125
+ "src/**/*.ts",
126
+ "**/tsconfig.json",
127
+ "messages/**"
128
+ ],
129
+ "output": [
130
+ "lib/**",
131
+ "*.tsbuildinfo"
132
+ ],
133
+ "clean": "if-file-deleted"
134
+ },
135
+ "format": {
136
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
137
+ "files": [
138
+ "src/**/*.ts",
139
+ "test/**/*.ts",
140
+ "schemas/**/*.json",
141
+ "command-snapshot.json",
142
+ ".prettier*"
143
+ ],
144
+ "output": []
145
+ },
146
+ "lint": {
147
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
148
+ "files": [
149
+ "src/**/*.ts",
150
+ "test/**/*.ts",
151
+ "messages/**",
152
+ "**/.eslint*",
153
+ "**/tsconfig.json"
154
+ ],
155
+ "output": []
156
+ },
157
+ "test:compile": {
158
+ "command": "tsc -p \"./test\" --pretty",
159
+ "files": [
160
+ "test/**/*.ts",
161
+ "**/tsconfig.json"
162
+ ],
163
+ "output": []
164
+ },
165
+ "test": {
166
+ "dependencies": [
167
+ "test:compile",
168
+ "test:only",
169
+ "lint"
170
+ ]
171
+ },
172
+ "test:only": {
173
+ "command": "nyc mocha \"test/**/*.test.ts\"",
174
+ "env": {
175
+ "FORCE_COLOR": "2"
176
+ },
177
+ "files": [
178
+ "test/**/*.ts",
179
+ "src/**/*.ts",
180
+ "**/tsconfig.json",
181
+ ".mocha*",
182
+ "!*.nut.ts",
183
+ ".nycrc"
184
+ ],
185
+ "output": []
186
+ },
187
+ "test:command-reference": {
188
+ "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
189
+ "files": [
190
+ "src/**/*.ts",
191
+ "messages/**",
192
+ "package.json"
193
+ ],
194
+ "output": [
195
+ "tmp/root"
196
+ ]
197
+ },
198
+ "test:deprecation-policy": {
199
+ "command": "\"./bin/dev\" snapshot:compare",
200
+ "files": [
201
+ "src/**/*.ts"
202
+ ],
203
+ "output": [],
204
+ "dependencies": [
205
+ "compile"
206
+ ]
207
+ },
208
+ "test:json-schema": {
209
+ "command": "\"./bin/dev\" schema:compare",
210
+ "files": [
211
+ "src/**/*.ts",
212
+ "schemas"
213
+ ],
214
+ "output": []
215
+ }
216
+ },
217
+ "author": "pdfbutler",
218
+ "types": "./lib/index.d.ts",
219
+ "directories": {
220
+ "lib": "lib",
221
+ "test": "test"
222
+ }
223
+ }