@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.
- package/README.md +193 -30
- package/lib/commands/butler/pb/admincredentials.js +37 -37
- package/lib/commands/butler/pb/admincredentials.js.map +1 -1
- package/lib/commands/butler/pb/adminsettings.d.ts +1 -2
- package/lib/commands/butler/pb/adminsettings.js +32 -32
- package/lib/commands/butler/pb/adminsettings.js.map +1 -1
- package/lib/commands/butler/pb/export.d.ts +10 -3
- package/lib/commands/butler/pb/export.js +295 -197
- 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.js +43 -46
- package/lib/commands/butler/pb/exportpack.js.map +1 -1
- package/lib/commands/butler/pb/import.d.ts +17 -3
- package/lib/commands/butler/pb/import.js +415 -183
- 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.js +38 -38
- 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 +3 -1
- package/lib/utils/authentication.js +13 -17
- package/lib/utils/authentication.js.map +1 -1
- package/lib/utils/constants.d.ts +125 -89
- package/lib/utils/constants.js +56 -20
- package/lib/utils/constants.js.map +1 -1
- 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 +2 -1
- package/lib/utils/logger.js +15 -7
- package/lib/utils/logger.js.map +1 -1
- 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 +322 -43
- package/package.json +223 -215
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG;IAClB,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG;IAClB,iBAAiB,EAAE,iCAAiC;IACpD,oBAAoB,EAAE,6DAA6D;IACnF,oBAAoB,EAAE,6DAA6D;IACnF,kBAAkB,EAAE,mDAAmD;IACvE,kBAAkB,EAAE,kDAAkD;IACtE,WAAW,EAAE,4CAA4C;IACzD,WAAW,EAAE,6CAA6C;IAC1D,KAAK,EAAE,6CAA6C;CAC5C,CAAC;AAEE,QAAA,KAAK,GAAG;IACnB,uBAAuB,EAAE,yBAAyB;IAClD,iBAAiB,EAAE,kCAAkC;IACrD,cAAc,EAAE,qFAAqF;IACrG,uBAAuB,EAAE,kCAAkC;IAC3D,iBAAiB,EAAE,yBAAyB;IAC5C,aAAa,EAAE,uDAAuD;IACtE,aAAa,EAAE,gCAAgC;IAC/C,6BAA6B,EAC3B,4FAA4F;IAC9F,YAAY,EAAE,iCAAiC;IAC/C,cAAc,EAAE,wDAAwD;IACxE,cAAc,EAAE,4CAA4C;IAC5D,aAAa,EAAE,yCAAyC;IACxD,0BAA0B,EAAE,mDAAmD;IAC/E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ClF,0BAA0B,EAAE,2CAA2C;IACvE,yBAAyB,EAAE,wCAAwC;IACnE,yBAAyB,EAAE,oCAAoC;IAC/D,qBAAqB,EAAE,uDAAuD;IAC9E,6BAA6B,EAAE,gCAAgC;IAC/D,qBAAqB,EAAE,gDAAgD;IACvE,4BAA4B,EAAE,uDAAuD;IACrF,kBAAkB,EAAE,8BAA8B;IAClD,iBAAiB,EAAE,wCAAwC;IAC3D,gCAAgC,EAAE,mDAAmD;IACrF,gCAAgC,EAC9B,gHAAgH;IAClH,iCAAiC,EAAE,2CAA2C;IAC9E,2BAA2B,EAAE,wDAAwD;CAC7E,CAAC;AAEE,QAAA,MAAM,GAAG;IACpB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,qBAAqB,EAAE,uBAAuB;CACtC,CAAC;AAEE,QAAA,OAAO,GAAG;IACrB,UAAU,EAAE,aAAa;IACzB,cAAc,EAAE,8CAA8C;CACtD,CAAC;AAEE,QAAA,GAAG,GAAG;IACjB,KAAK,EAAE,GAAG;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function extractTemplateIds(dir: string): Promise<string[]>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.extractTemplateIds = extractTemplateIds;
|
|
37
|
+
const node_fs_1 = require("node:fs");
|
|
38
|
+
const path = __importStar(require("node:path"));
|
|
39
|
+
const logger_1 = require("./logger");
|
|
40
|
+
const constants_1 = require("./constants");
|
|
41
|
+
const isTemplateRecord = (value) => {
|
|
42
|
+
if (!value || typeof value !== 'object')
|
|
43
|
+
return false;
|
|
44
|
+
const record = value;
|
|
45
|
+
return typeof record.recordType === 'string' && typeof record.documentConfigTemplateId === 'string';
|
|
46
|
+
};
|
|
47
|
+
async function extractTemplateIds(dir) {
|
|
48
|
+
const templateIds = new Set();
|
|
49
|
+
const validRecordTypes = ['DOCUMENT_V3', 'DOCUMENT_V2', 'DOCUMENT'];
|
|
50
|
+
const configTypesPath = path.join(dir, 'ConfigTypes');
|
|
51
|
+
const walk = async (currentPath) => {
|
|
52
|
+
let items;
|
|
53
|
+
try {
|
|
54
|
+
items = await node_fs_1.promises.readdir(currentPath, { withFileTypes: true });
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
// ConfigTypes might not exist in every export
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const tasks = items.map(async (item) => {
|
|
61
|
+
const fullPath = path.join(currentPath, item.name);
|
|
62
|
+
if (item.isDirectory()) {
|
|
63
|
+
await walk(fullPath);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (!item.isFile() || !item.name.endsWith('.json'))
|
|
67
|
+
return;
|
|
68
|
+
try {
|
|
69
|
+
const content = await node_fs_1.promises.readFile(fullPath, 'utf8');
|
|
70
|
+
const json = JSON.parse(content);
|
|
71
|
+
const records = Array.isArray(json) ? json : [json];
|
|
72
|
+
for (const rec of records) {
|
|
73
|
+
if (!isTemplateRecord(rec))
|
|
74
|
+
continue;
|
|
75
|
+
if (!validRecordTypes.includes(rec.recordType))
|
|
76
|
+
continue;
|
|
77
|
+
templateIds.add(rec.documentConfigTemplateId);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e) {
|
|
81
|
+
logger_1.Logger.error(constants_1.MESSAGE.JSON_PARSE_FAILED.replace('[PATH]', fullPath));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
await Promise.all(tasks);
|
|
85
|
+
};
|
|
86
|
+
await walk(configTypesPath);
|
|
87
|
+
return Array.from(templateIds);
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=extract-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-templates.js","sourceRoot":"","sources":["../../src/utils/extract-templates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,gDA2CC;AA5DD,qCAAyC;AAEzC,gDAAkC;AAClC,qCAAkC;AAClC,2CAAsC;AAOtC,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAA2B,EAAE;IACnE,IAAI,CAAC,KAAK,IAAI,OAAO,K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D,MAAM,IAAI,GAAY,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC1C,MAAM,OAAO,GAAc,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBAE/D,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;oBAC1B,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC;wBAAE,SAAS;oBACrC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC;wBAAE,SAAS;oBACzD,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;gBAChD,CAAC;YACH,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,eAAM,CAAC,KAAK,CAAC,mBAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;YACtE,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,IAAI,CAAC,eAAe,CAAC,CAAC;IAC5B,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC"}
|
package/lib/utils/logger.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export type LogType = 'info' | 'error' | 'success';
|
|
1
|
+
export type LogType = 'info' | 'warn' | 'error' | 'success';
|
|
2
2
|
export declare class Logger {
|
|
3
3
|
private static readonly COLORS;
|
|
4
4
|
static info(message: string, isShow?: boolean): void;
|
|
5
5
|
static error(message: string, isShow?: boolean): void;
|
|
6
|
+
static warn(message: string, isShow?: boolean): void;
|
|
6
7
|
static success(message: string, isShow?: boolean): void;
|
|
7
8
|
private static log;
|
|
8
9
|
}
|
package/lib/utils/logger.js
CHANGED
|
@@ -2,12 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Logger = void 0;
|
|
4
4
|
class Logger {
|
|
5
|
+
static COLORS = {
|
|
6
|
+
blue: '\x1b[34m',
|
|
7
|
+
green: '\x1b[32m',
|
|
8
|
+
yellow: '\x1b[33m',
|
|
9
|
+
red: '\x1b[31m',
|
|
10
|
+
reset: '\x1b[0m',
|
|
11
|
+
};
|
|
5
12
|
static info(message, isShow = true) {
|
|
6
13
|
Logger.log(message, 'info', isShow);
|
|
7
14
|
}
|
|
8
15
|
static error(message, isShow = true) {
|
|
9
16
|
Logger.log(message, 'error', isShow);
|
|
10
17
|
}
|
|
18
|
+
static warn(message, isShow = true) {
|
|
19
|
+
Logger.log(message, 'warn', isShow);
|
|
20
|
+
}
|
|
11
21
|
static success(message, isShow = true) {
|
|
12
22
|
Logger.log(message, 'success', isShow);
|
|
13
23
|
}
|
|
@@ -25,19 +35,17 @@ class Logger {
|
|
|
25
35
|
prefix = '[SUCCESS]';
|
|
26
36
|
color = Logger.COLORS.green;
|
|
27
37
|
break;
|
|
38
|
+
case 'warn':
|
|
39
|
+
prefix = '[WARN]';
|
|
40
|
+
color = Logger.COLORS.yellow;
|
|
41
|
+
break;
|
|
28
42
|
default:
|
|
29
43
|
prefix = '[INFO]';
|
|
30
44
|
color = Logger.COLORS.blue;
|
|
31
45
|
break;
|
|
32
46
|
}
|
|
33
|
-
|
|
47
|
+
process.stdout.write(`${color}${prefix} ${message}${Logger.COLORS.reset}\n`);
|
|
34
48
|
}
|
|
35
49
|
}
|
|
36
50
|
exports.Logger = Logger;
|
|
37
|
-
Logger.COLORS = {
|
|
38
|
-
blue: '\x1b[34m',
|
|
39
|
-
green: '\x1b[32m',
|
|
40
|
-
red: '\x1b[31m',
|
|
41
|
-
reset: '\x1b[0m',
|
|
42
|
-
};
|
|
43
51
|
//# sourceMappingURL=logger.js.map
|
package/lib/utils/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IACT,MAAM,CAAU,MAAM,GAAG;QAC/B,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,UAAU;QAClB,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,SAAS;KACjB,CAAC;IAEK,MAAM,CAAC,IAAI,CAAC,OAAe,EAAE,MAAM,GAAG,IAAI;QAC/C,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,OAAe,EAAE,MAAM,GAAG,IAAI;QAChD,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,OAAe,EAAE,MAAM,GAAG,IAAI;QAC/C,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAAM,GAAG,IAAI;QAClD,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAEO,MAAM,CAAC,GAAG,CAAC,OAAe,EAAE,OAAgB,MAAM,EAAE,MAAM,GAAG,IAAI;QACvE,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,IAAI,MAAc,CAAC;QACnB,IAAI,KAAa,CAAC;QAElB,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,OAAO;gBACV,MAAM,GAAG,SAAS,CAAC;gBACnB,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;gBAC1B,MAAM;YACR,KAAK,SAAS;gBACZ,MAAM,GAAG,WAAW,CAAC;gBACrB,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;gBAC5B,MAAM;YACR,KAAK,MAAM;gBACT,MAAM,GAAG,QAAQ,CAAC;gBAClB,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC7B,MAAM;YACR;gBACE,MAAM,GAAG,QAAQ,CAAC;gBAClB,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;gBAC3B,MAAM;QACV,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,MAAM,IAAI,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAnDH,wBAoDC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Export PDF Butler DataSource records from your organization.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Use this command to export DataSource records from a Salesforce org and save them locally as JSON.
|
|
8
|
+
|
|
9
|
+
# flags.target.summary
|
|
10
|
+
|
|
11
|
+
The Salesforce org username credentials to connect to the target org.
|
|
12
|
+
|
|
13
|
+
# flags.id.summary
|
|
14
|
+
|
|
15
|
+
The DataSource ID to export. For bulk export, enter multiple IDs separated by whitespaces.
|
|
16
|
+
|
|
17
|
+
# flags.folder.summary
|
|
18
|
+
|
|
19
|
+
The output folder path where the exported DataSource JSON files will be saved.
|
|
20
|
+
|
|
21
|
+
# flags.auth-env-var.summary
|
|
22
|
+
|
|
23
|
+
PDF Butler credentials for backend authentication.
|
|
24
|
+
|
|
25
|
+
# flags.endpoint.summary
|
|
26
|
+
|
|
27
|
+
PDF Butler endpoint URL.
|
|
28
|
+
|
|
29
|
+
# flags.stage.summary
|
|
30
|
+
|
|
31
|
+
CADMUS stage for backend operations.
|
|
32
|
+
|
|
33
|
+
# flags.logs.summary
|
|
34
|
+
|
|
35
|
+
Enable detailed logs for the export process.
|
|
36
|
+
|
|
37
|
+
# flags.parents.summary
|
|
38
|
+
|
|
39
|
+
Automatically export parent DataSources recursively when detected (without prompt).
|
|
40
|
+
|
|
41
|
+
# flags.session.summary
|
|
42
|
+
|
|
43
|
+
Salesforce Session ID for authentication.
|
|
44
|
+
|
|
45
|
+
# flags.instance.summary
|
|
46
|
+
|
|
47
|
+
Salesforce Instance URL for authentication.
|
|
48
|
+
|
|
49
|
+
# examples
|
|
50
|
+
|
|
51
|
+
- <%= config.bin %> <%= command.id %>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Import PDF Butler DataSource records into your organization.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Use this command to import DataSource records from JSON files exported by the DataSource export command.
|
|
8
|
+
|
|
9
|
+
# flags.target.summary
|
|
10
|
+
|
|
11
|
+
The Salesforce org username credentials to connect to the target org.
|
|
12
|
+
|
|
13
|
+
# flags.id.summary
|
|
14
|
+
|
|
15
|
+
The DataSource ID to import. For bulk import, enter multiple IDs separated by whitespaces.
|
|
16
|
+
|
|
17
|
+
# flags.parents.summary
|
|
18
|
+
|
|
19
|
+
Automatically resolve and import parent DataSources first, then child DataSources.
|
|
20
|
+
|
|
21
|
+
# flags.folder.summary
|
|
22
|
+
|
|
23
|
+
The folder that contains the exported DataSource JSON files.
|
|
24
|
+
|
|
25
|
+
# flags.auth-env-var.summary
|
|
26
|
+
|
|
27
|
+
PDF Butler credentials for backend authentication.
|
|
28
|
+
|
|
29
|
+
# flags.endpoint.summary
|
|
30
|
+
|
|
31
|
+
PDF Butler endpoint URL.
|
|
32
|
+
|
|
33
|
+
# flags.stage.summary
|
|
34
|
+
|
|
35
|
+
CADMUS stage for backend operations.
|
|
36
|
+
|
|
37
|
+
# flags.logs.summary
|
|
38
|
+
|
|
39
|
+
Enable detailed logs for the import process.
|
|
40
|
+
|
|
41
|
+
# flags.session.summary
|
|
42
|
+
|
|
43
|
+
Salesforce Session ID for authentication.
|
|
44
|
+
|
|
45
|
+
# flags.instance.summary
|
|
46
|
+
|
|
47
|
+
Salesforce Instance URL for authentication.
|
|
48
|
+
|
|
49
|
+
# examples
|
|
50
|
+
|
|
51
|
+
- <%= config.bin %> <%= command.id %> -t my-org -i "00Dak00000A4YWn_a0Bak00000MZcAb" -f "./export/ds"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Export Sign Request Template records from your organization.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Use this command to export one or more Sign Request Templates and save them locally as JSON files.
|
|
8
|
+
|
|
9
|
+
# flags.target.summary
|
|
10
|
+
|
|
11
|
+
The Salesforce org username credentials to connect to the target org.
|
|
12
|
+
|
|
13
|
+
# flags.id.summary
|
|
14
|
+
|
|
15
|
+
The Customer Template ID to export. For bulk export, enter multiple IDs separated by whitespaces.
|
|
16
|
+
|
|
17
|
+
# flags.folder.summary
|
|
18
|
+
|
|
19
|
+
The output root folder path. Files will be saved to the signRequestTemplates subfolder.
|
|
20
|
+
|
|
21
|
+
# flags.logs.summary
|
|
22
|
+
|
|
23
|
+
Enable detailed logs for the export process.
|
|
24
|
+
|
|
25
|
+
# flags.session.summary
|
|
26
|
+
|
|
27
|
+
Salesforce Session ID for authentication.
|
|
28
|
+
|
|
29
|
+
# flags.instance.summary
|
|
30
|
+
|
|
31
|
+
Salesforce Instance URL for authentication.
|
|
32
|
+
|
|
33
|
+
# examples
|
|
34
|
+
|
|
35
|
+
- sf butler:sb:export:signtemplate -t my-org --id "a0Bxx0000000011 a0Bxx0000000012" -f "./export/sb"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Import Sign Request Template records into your organization.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Use this command to import Sign Request Templates from JSON files previously exported by the export command.
|
|
8
|
+
|
|
9
|
+
# flags.target.summary
|
|
10
|
+
|
|
11
|
+
The Salesforce org username credentials to connect to the target org.
|
|
12
|
+
|
|
13
|
+
# flags.id.summary
|
|
14
|
+
|
|
15
|
+
The Customer Template ID to import. For bulk import, enter multiple IDs separated by whitespaces.
|
|
16
|
+
|
|
17
|
+
# flags.folder.summary
|
|
18
|
+
|
|
19
|
+
The export root folder path that contains the signRequestTemplates subfolder.
|
|
20
|
+
|
|
21
|
+
# flags.logs.summary
|
|
22
|
+
|
|
23
|
+
Enable detailed logs for the import process.
|
|
24
|
+
|
|
25
|
+
# flags.session.summary
|
|
26
|
+
|
|
27
|
+
Salesforce Session ID for authentication.
|
|
28
|
+
|
|
29
|
+
# flags.instance.summary
|
|
30
|
+
|
|
31
|
+
Salesforce Instance URL for authentication.
|
|
32
|
+
|
|
33
|
+
# examples
|
|
34
|
+
|
|
35
|
+
- sf butler:sb:import:signtemplate -t my-org --id "a0Bxx0000000011" -f "./export/sb"
|