@salesforce/plugin-omnistudio-migration-tool 1.0.0 → 1.1.0-beta.1
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/CHANGELOG.md +1 -1
- package/LICENSE.txt +1 -1
- package/README.md +51 -111
- package/lib/commands/basecommand.d.ts +8 -0
- package/lib/commands/basecommand.js +13 -0
- package/lib/commands/basecommand.js.map +1 -0
- package/lib/commands/{hello/org.d.ts → omnistudio/migration/info.d.ts} +0 -1
- package/lib/commands/{hello/org.js → omnistudio/migration/info.js} +27 -17
- package/lib/commands/omnistudio/migration/info.js.map +1 -0
- package/lib/commands/omnistudio/migration/migrate.d.ts +16 -0
- package/lib/commands/omnistudio/migration/migrate.js +158 -0
- package/lib/commands/omnistudio/migration/migrate.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -7
- package/lib/index.js.map +1 -1
- package/lib/mappings/DRBulkData.d.ts +13 -0
- package/lib/mappings/DRBulkData.js +17 -0
- package/lib/mappings/DRBulkData.js.map +1 -0
- package/lib/mappings/DRBundle.d.ts +40 -0
- package/lib/mappings/DRBundle.js +46 -0
- package/lib/mappings/DRBundle.js.map +1 -0
- package/lib/mappings/DRMapItem.d.ts +39 -0
- package/lib/mappings/DRMapItem.js +43 -0
- package/lib/mappings/DRMapItem.js.map +1 -0
- package/lib/mappings/Element.d.ts +13 -0
- package/lib/mappings/Element.js +17 -0
- package/lib/mappings/Element.js.map +1 -0
- package/lib/mappings/OmniScript.d.ts +25 -0
- package/lib/mappings/OmniScript.js +29 -0
- package/lib/mappings/OmniScript.js.map +1 -0
- package/lib/mappings/OmniScriptDefinition.d.ts +7 -0
- package/lib/mappings/OmniScriptDefinition.js +11 -0
- package/lib/mappings/OmniScriptDefinition.js.map +1 -0
- package/lib/mappings/OmniScriptInstance.d.ts +22 -0
- package/lib/mappings/OmniScriptInstance.js +26 -0
- package/lib/mappings/OmniScriptInstance.js.map +1 -0
- package/lib/mappings/VlocityCard.d.ts +16 -0
- package/lib/mappings/VlocityCard.js +20 -0
- package/lib/mappings/VlocityCard.js.map +1 -0
- package/lib/migration/base.d.ts +29 -0
- package/lib/migration/base.js +62 -0
- package/lib/migration/base.js.map +1 -0
- package/lib/migration/dataraptor.d.ts +31 -0
- package/lib/migration/dataraptor.js +206 -0
- package/lib/migration/dataraptor.js.map +1 -0
- package/lib/migration/drbulkdata.d.ts +19 -0
- package/lib/migration/drbulkdata.js +88 -0
- package/lib/migration/drbulkdata.js.map +1 -0
- package/lib/migration/flexcard.d.ts +16 -0
- package/lib/migration/flexcard.js +146 -0
- package/lib/migration/flexcard.js.map +1 -0
- package/lib/migration/interfaces.d.ts +67 -0
- package/lib/migration/interfaces.js +3 -0
- package/lib/migration/interfaces.js.map +1 -0
- package/lib/migration/metadataobjnamecheck.d.ts +7 -0
- package/lib/migration/metadataobjnamecheck.js +79 -0
- package/lib/migration/metadataobjnamecheck.js.map +1 -0
- package/lib/migration/omniscript.d.ts +47 -0
- package/lib/migration/omniscript.js +396 -0
- package/lib/migration/omniscript.js.map +1 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +16 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/interfaces.d.ts +12 -0
- package/lib/utils/interfaces.js +3 -0
- package/lib/utils/interfaces.js.map +1 -0
- package/lib/utils/logging/debugtimer.d.ts +22 -0
- package/lib/utils/logging/debugtimer.js +57 -0
- package/lib/utils/logging/debugtimer.js.map +1 -0
- package/lib/utils/net/index.d.ts +20 -0
- package/lib/utils/net/index.js +72 -0
- package/lib/utils/net/index.js.map +1 -0
- package/lib/utils/prototypes.d.ts +0 -0
- package/lib/utils/prototypes.js +19 -0
- package/lib/utils/prototypes.js.map +1 -0
- package/lib/utils/query/index.d.ts +10 -0
- package/lib/utils/query/index.js +105 -0
- package/lib/utils/query/index.js.map +1 -0
- package/lib/utils/resultsbuilder/index.d.ts +6 -0
- package/lib/utils/resultsbuilder/index.js +110 -0
- package/lib/utils/resultsbuilder/index.js.map +1 -0
- package/messages/info.json +10 -0
- package/messages/migrate.json +20 -0
- package/oclif.manifest.json +1 -1
- package/package.json +54 -43
- package/lib/commands/hello/org.js.map +0 -1
- package/messages/messages.json +0 -22
- package/messages/org.json +0 -12
package/CHANGELOG.md
CHANGED
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -1,119 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
OmniStudio Migration Tool
|
|
2
|
+
=========================
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
This repository contains the code required to enable the OmniStudio Migration Tool SFDX plugin.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
## Running SFDX plugin in developer mode
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
This repository provides a template for creating a plugin for the Salesforce CLI. To convert this template to a working plugin:
|
|
14
|
-
|
|
15
|
-
1. Clone this repo
|
|
16
|
-
2. Delete the .git folder
|
|
17
|
-
3. Replace filler values
|
|
18
|
-
a) Every instance of `<REPLACE_ME>` can be directly substitued for the name of the new plugin. However beware, things like github paths are for the salesforcecli Github organization
|
|
19
|
-
b) Search for case-matching `REPLACE` to find other filler values, such as for the plugin description
|
|
20
|
-
4. Use `git init` to set up the desired git information
|
|
21
|
-
5. Follow the getting started steps below until the `sfdx hello:org` commmand is functioning
|
|
22
|
-
|
|
23
|
-
<REPLACE ME DESCRIPTION END>
|
|
24
|
-
|
|
25
|
-
## Learn about the plugin-omnistudio-migration-tool
|
|
26
|
-
|
|
27
|
-
Salesforce CLI plugins are based on the [oclif plugin framework](<(https://oclif.io/docs/introduction.html)>). Read the [plugin developer guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_architecture_sf_cli.htm) to learn about Salesforce CLI plugin development.
|
|
28
|
-
|
|
29
|
-
This repository contains a lot of additional scripts and tools to help with general Salesforce node development and enforce coding standards. You should familiarize yourself with some of the [node developer packages](https://github.com/forcedotcom/sfdx-dev-packages/) used by Salesforce. There is also a default circleci config using the [release management orb](https://github.com/forcedotcom/npm-release-management-orb) standards.
|
|
30
|
-
|
|
31
|
-
Additionally, there are some additional tests that the Salesforce CLI will enforce if this plugin is ever bundled with the CLI. These test are included by default under the `posttest` script and it is recommended to keep these tests active in your plugin, regardless if you plan to have it bundled.
|
|
32
|
-
|
|
33
|
-
# Everything past here is only a suggestion as to what should be in your specific plugin's description
|
|
34
|
-
|
|
35
|
-
This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). For more information on the CLI, read the [getting started guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm).
|
|
36
|
-
|
|
37
|
-
We always recommend using the latest version of these commands bundled with the CLI, however, you can install a specific version or tag if needed.
|
|
38
|
-
|
|
39
|
-
## Install
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
sfdx plugins:install <REPLACE_ME>@x.y.z
|
|
8
|
+
1. Install SFDX cli using the official documentation located [here](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).
|
|
9
|
+
2. Authenticate your SFDX cli into the org you are going to use for development. You can follow authentication steps [here](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_auth_web.htm).
|
|
10
|
+
3. Clone this repository into your local machine.
|
|
11
|
+
4. Open the migration tool code folder in VSCode or your prefered editor.
|
|
12
|
+
5. In a new command line tool, run the following command:
|
|
43
13
|
```
|
|
44
|
-
|
|
45
|
-
## Issues
|
|
46
|
-
|
|
47
|
-
Please report any issues at https://github.com/forcedotcom/cli/issues
|
|
48
|
-
|
|
49
|
-
## Contributing
|
|
50
|
-
|
|
51
|
-
1. Please read our [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
52
|
-
2. Create a new issue before starting your project so that we can keep track of
|
|
53
|
-
what you are trying to add/fix. That way, we can also offer suggestions or
|
|
54
|
-
let you know if there is already an effort in progress.
|
|
55
|
-
3. Fork this repository.
|
|
56
|
-
4. [Build the plugin locally](#build)
|
|
57
|
-
5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing using a fork.
|
|
58
|
-
6. Edit the code in your fork.
|
|
59
|
-
7. Write appropriate tests for your changes. Try to achieve at least 95% code coverage on any new code. No pull request will be accepted without unit tests.
|
|
60
|
-
8. Sign CLA (see [CLA](#cla) below).
|
|
61
|
-
9. Send us a pull request when you are done. We'll review your code, suggest any needed changes, and merge it in.
|
|
62
|
-
|
|
63
|
-
### CLA
|
|
64
|
-
|
|
65
|
-
External contributors will be required to sign a Contributor's License
|
|
66
|
-
Agreement. You can do so by going to https://cla.salesforce.com/sign-cla.
|
|
67
|
-
|
|
68
|
-
### Build
|
|
69
|
-
|
|
70
|
-
To build the plugin locally, make sure to have yarn installed and run the following commands:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
# Clone the repository
|
|
74
|
-
git clone git@github.com:salesforcecli/plugin-<REPLACE_ME>
|
|
75
|
-
|
|
76
|
-
# Install the dependencies and compile
|
|
77
|
-
yarn install
|
|
78
|
-
yarn build
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
To use your plugin, run using the local `./bin/run` or `./bin/run.cmd` file.
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
# Run using local run file.
|
|
85
|
-
./bin/run <REPLACE_ME>
|
|
14
|
+
bin/run omnistudio:migration:migrate -u agarcia-vertical238@na46.salesforce.com --namespace=agarciana46_238 --json
|
|
86
15
|
```
|
|
87
16
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
# Link your plugin to the sfdx cli
|
|
92
|
-
sfdx plugins:link .
|
|
93
|
-
# To verify
|
|
94
|
-
sfdx plugins
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Commands
|
|
98
|
-
|
|
99
|
-
<!-- commands -->
|
|
100
|
-
|
|
101
|
-
- [`sfdx hello:org [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-helloorg--n-string--f--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
102
|
-
|
|
103
|
-
## `sfdx hello:org [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
104
|
-
|
|
105
|
-
print a greeting and your org IDs
|
|
17
|
+
### Usage & parameters
|
|
106
18
|
|
|
107
19
|
```
|
|
108
|
-
print a greeting and your org IDs
|
|
109
|
-
|
|
110
20
|
USAGE
|
|
111
|
-
$ sfdx
|
|
21
|
+
$ sfdx omnistudio:migration:migrate [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
112
22
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
113
23
|
|
|
114
24
|
OPTIONS
|
|
115
|
-
-
|
|
116
|
-
-n, --name=name name to print
|
|
25
|
+
-n, --namespace=namespace the namespace of the vertical package
|
|
117
26
|
|
|
118
27
|
-u, --targetusername=targetusername username or alias for the target
|
|
119
28
|
org; overrides default target org
|
|
@@ -129,15 +38,46 @@ OPTIONS
|
|
|
129
38
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
130
39
|
this command invocation
|
|
131
40
|
|
|
132
|
-
|
|
133
|
-
sfdx hello:org --targetusername myOrg@example.com --targetdevhubusername devhub@org.com
|
|
134
|
-
Hello world! This is org: MyOrg and I will be around until Tue Mar 20 2018!
|
|
135
|
-
My hub org id is: 00Dxx000000001234
|
|
41
|
+
```
|
|
136
42
|
|
|
137
|
-
|
|
138
|
-
Hello myname! This is org: MyOrg and I will be around until Tue Mar 20 2018!
|
|
43
|
+
### Folder structure
|
|
139
44
|
```
|
|
45
|
+
-
|
|
46
|
+
- .vscode VSCode configuration folder
|
|
47
|
+
- bin Tools required to run in developer mode
|
|
48
|
+
- messages JSON files with user messages used in the plugin
|
|
49
|
+
- src
|
|
50
|
+
- commands SFDX plugin commands
|
|
51
|
+
- mappings A list of mappings between vertical and standard objects
|
|
52
|
+
- migration OmniStudio Migration Tool code
|
|
53
|
+
- utils Utilities (network, debugging, logging, etc.)
|
|
54
|
+
```
|
|
55
|
+
|
|
140
56
|
|
|
141
|
-
_See code: [src/commands/hello/org.ts](https://github.com/salesforcecli/plugin-omnistudio-migration-tool/blob/v1.0.0/src/commands/hello/org.ts)_
|
|
142
57
|
|
|
58
|
+
_See code: [src/commands/hello/org.ts](https://github.com/agarcia-sf/omnistudio-migration-tool/blob/v0.0.0/src/commands/hello/org.ts)_
|
|
143
59
|
<!-- commandsstop -->
|
|
60
|
+
<!-- debugging-your-plugin -->
|
|
61
|
+
# Debugging your plugin
|
|
62
|
+
We recommend using the Visual Studio Code (VS Code) IDE for your plugin development. Included in the `.vscode` directory of this plugin is a `launch.json` config file, which allows you to attach a debugger to the node process when running your commands.
|
|
63
|
+
|
|
64
|
+
To debug the `hello:org` command:
|
|
65
|
+
1. Start the inspector
|
|
66
|
+
|
|
67
|
+
If you linked your plugin to the sfdx cli, call your command with the `dev-suspend` switch:
|
|
68
|
+
```sh-session
|
|
69
|
+
$ sfdx hello:org -u myOrg@example.com --dev-suspend
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Alternatively, to call your command using the `bin/run` script, set the `NODE_OPTIONS` environment variable to `--inspect-brk` when starting the debugger:
|
|
73
|
+
```sh-session
|
|
74
|
+
$ NODE_OPTIONS=--inspect-brk bin/run hello:org -u myOrg@example.com
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
2. Set some breakpoints in your command code
|
|
78
|
+
3. Click on the Debug icon in the Activity Bar on the side of VS Code to open up the Debug view.
|
|
79
|
+
4. In the upper left hand corner of VS Code, verify that the "Attach to Remote" launch configuration has been chosen.
|
|
80
|
+
5. Hit the green play button to the left of the "Attach to Remote" launch configuration window. The debugger should now be suspended on the first line of the program.
|
|
81
|
+
6. Hit the green play button at the top middle of VS Code (this play button will be to the right of the play button that you clicked in step #5).
|
|
82
|
+
<br><img src=".images/vscodeScreenshot.png" width="480" height="278"><br>
|
|
83
|
+
Congrats, you are debugging!
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SfdxCommand } from '@salesforce/command';
|
|
2
|
+
import { AnyJson } from '@salesforce/ts-types';
|
|
3
|
+
export default abstract class OmniStudioBaseCommand extends SfdxCommand {
|
|
4
|
+
protected static requiresUsername: boolean;
|
|
5
|
+
protected static supportsDevhubUsername: boolean;
|
|
6
|
+
protected static requiresProject: boolean;
|
|
7
|
+
run(): Promise<AnyJson>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@salesforce/command");
|
|
4
|
+
class OmniStudioBaseCommand extends command_1.SfdxCommand {
|
|
5
|
+
run() {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = OmniStudioBaseCommand;
|
|
10
|
+
OmniStudioBaseCommand.requiresUsername = true;
|
|
11
|
+
OmniStudioBaseCommand.supportsDevhubUsername = false;
|
|
12
|
+
OmniStudioBaseCommand.requiresProject = false;
|
|
13
|
+
//# sourceMappingURL=basecommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basecommand.js","sourceRoot":"","sources":["../../src/commands/basecommand.ts"],"names":[],"mappings":";;AAAA,iDAAkD;AAGlD,MAA8B,qBAAsB,SAAQ,qBAAW;IAK9D,GAAG;QACR,OAAO,IAAI,CAAC;IACd,CAAC;;AAPH,wCAQC;AAPkB,sCAAgB,GAAG,IAAI,CAAC;AACxB,4CAAsB,GAAG,KAAK,CAAC;AAC/B,qCAAe,GAAG,KAAK,CAAC"}
|
|
@@ -8,7 +8,6 @@ export default class Org extends SfdxCommand {
|
|
|
8
8
|
}[];
|
|
9
9
|
protected static flagsConfig: {
|
|
10
10
|
name: flags.Discriminated<flags.String>;
|
|
11
|
-
force: flags.Discriminated<flags.Boolean<boolean>>;
|
|
12
11
|
};
|
|
13
12
|
protected static requiresUsername: boolean;
|
|
14
13
|
protected static supportsDevhubUsername: boolean;
|
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
22
|
/*
|
|
3
|
-
* Copyright (c)
|
|
23
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
4
24
|
* All rights reserved.
|
|
5
25
|
* Licensed under the BSD 3-Clause license.
|
|
6
26
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
27
|
*/
|
|
8
|
-
|
|
9
|
-
const os = require("os");
|
|
28
|
+
const os = __importStar(require("os"));
|
|
10
29
|
const command_1 = require("@salesforce/command");
|
|
11
30
|
const core_1 = require("@salesforce/core");
|
|
12
31
|
// Initialize Messages with the current plugin directory
|
|
13
32
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
33
|
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
|
|
15
34
|
// or any library that is using the messages framework can also be loaded this way.
|
|
16
|
-
|
|
17
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'org');
|
|
35
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'info');
|
|
18
36
|
class Org extends command_1.SfdxCommand {
|
|
19
37
|
async run() {
|
|
20
|
-
|
|
21
|
-
const name = this.flags.name || 'world';
|
|
38
|
+
const name = (this.flags.name || 'world');
|
|
22
39
|
// this.org is guaranteed because requiresUsername=true, as opposed to supportsUsername
|
|
23
40
|
const conn = this.org.getConnection();
|
|
24
41
|
const query = 'Select Name, TrialExpirationDate from Organization';
|
|
@@ -43,11 +60,8 @@ class Org extends command_1.SfdxCommand {
|
|
|
43
60
|
const hubOrgId = this.hubOrg.getOrgId();
|
|
44
61
|
this.ux.log(`My hub org id is: ${hubOrgId}`);
|
|
45
62
|
}
|
|
46
|
-
if (this.flags.force && this.args.file) {
|
|
47
|
-
this.ux.log(`You input --force and a file: ${this.args.file}`);
|
|
48
|
-
}
|
|
49
63
|
// Return an object to be displayed with --json
|
|
50
|
-
return { orgId:
|
|
64
|
+
return { orgId: this.org.getOrgId(), outputString };
|
|
51
65
|
}
|
|
52
66
|
}
|
|
53
67
|
exports.default = Org;
|
|
@@ -58,11 +72,7 @@ Org.flagsConfig = {
|
|
|
58
72
|
// flag with a value (-n, --name=VALUE)
|
|
59
73
|
name: command_1.flags.string({
|
|
60
74
|
char: 'n',
|
|
61
|
-
description: messages.getMessage('
|
|
62
|
-
}),
|
|
63
|
-
force: command_1.flags.boolean({
|
|
64
|
-
char: 'f',
|
|
65
|
-
description: messages.getMessage('flags.force'),
|
|
75
|
+
description: messages.getMessage('nameFlagDescription'),
|
|
66
76
|
}),
|
|
67
77
|
};
|
|
68
78
|
// Comment this out if your command does not require an org username
|
|
@@ -71,4 +81,4 @@ Org.requiresUsername = true;
|
|
|
71
81
|
Org.supportsDevhubUsername = true;
|
|
72
82
|
// Set this to true if your command requires a project workspace; 'requiresProject' is false by default
|
|
73
83
|
Org.requiresProject = false;
|
|
74
|
-
//# sourceMappingURL=
|
|
84
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/commands/omnistudio/migration/info.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,uCAAyB;AACzB,iDAAyD;AACzD,2CAAuD;AAGvD,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8CAA8C,EAAE,MAAM,CAAC,CAAC;AAE/F,MAAqB,GAAI,SAAQ,qBAAW;IAwBnC,KAAK,CAAC,GAAG;QACd,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,OAAO,CAAW,CAAC;QAEpD,uFAAuF;QACvF,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,oDAAoD,CAAC;QAQnE,gBAAgB;QAChB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAe,KAAK,CAAC,CAAC;QA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C,CAAC;AAEzD,QAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAEvB,eAAW,GAAG;IAC7B,uCAAuC;IACvC,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;KACxD,CAAC;CACH,CAAC;AAEF,oEAAoE;AACnD,oBAAgB,GAAG,IAAI,CAAC;AAEzC,uEAAuE;AACtD,0BAAsB,GAAG,IAAI,CAAC;AAE/C,uGAAuG;AACtF,mBAAe,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { flags } from '@salesforce/command';
|
|
2
|
+
import '../../../utils/prototypes';
|
|
3
|
+
import OmniStudioBaseCommand from '../../basecommand';
|
|
4
|
+
export default class Migrate extends OmniStudioBaseCommand {
|
|
5
|
+
static description: string;
|
|
6
|
+
static examples: string[];
|
|
7
|
+
static args: {
|
|
8
|
+
name: string;
|
|
9
|
+
}[];
|
|
10
|
+
protected static flagsConfig: {
|
|
11
|
+
namespace: flags.Discriminated<flags.String>;
|
|
12
|
+
only: flags.Discriminated<flags.String>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<any>;
|
|
15
|
+
private mergeRecordAndUploadResults;
|
|
16
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
/* eslint-disable */
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
const os = __importStar(require("os"));
|
|
33
|
+
const command_1 = require("@salesforce/command");
|
|
34
|
+
const core_1 = require("@salesforce/core");
|
|
35
|
+
require("../../../utils/prototypes");
|
|
36
|
+
const basecommand_1 = __importDefault(require("../../basecommand"));
|
|
37
|
+
const metadataobjnamecheck_1 = require("../../../migration/metadataobjnamecheck");
|
|
38
|
+
const dataraptor_1 = require("../../../migration/dataraptor");
|
|
39
|
+
const utils_1 = require("../../../utils");
|
|
40
|
+
const resultsbuilder_1 = require("../../../utils/resultsbuilder");
|
|
41
|
+
const flexcard_1 = require("../../../migration/flexcard");
|
|
42
|
+
const omniscript_1 = require("../../../migration/omniscript");
|
|
43
|
+
// Initialize Messages with the current plugin directory
|
|
44
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
45
|
+
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
|
|
46
|
+
// or any library that is using the messages framework can also be loaded this way.
|
|
47
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'migrate');
|
|
48
|
+
class Migrate extends basecommand_1.default {
|
|
49
|
+
async run() {
|
|
50
|
+
const namespace = (this.flags.namespace || 'vlocity_ins');
|
|
51
|
+
const apiVersion = (this.flags.apiversion || "55.0");
|
|
52
|
+
const migrateOnly = (this.flags.only || "");
|
|
53
|
+
// this.org is guaranteed because requiresUsername=true, as opposed to supportsUsername
|
|
54
|
+
const conn = this.org.getConnection();
|
|
55
|
+
conn.setApiVersion(apiVersion);
|
|
56
|
+
// Let's time every step
|
|
57
|
+
utils_1.DebugTimer.getInstance().start();
|
|
58
|
+
const namecheck = new metadataobjnamecheck_1.MetaDataObjNameCheck(namespace, conn, this.logger, messages);
|
|
59
|
+
// Register the migration objects
|
|
60
|
+
let migrationObjects = [];
|
|
61
|
+
if (!migrateOnly) {
|
|
62
|
+
await namecheck.checkName('DRBundle__c');
|
|
63
|
+
await namecheck.checkName('VlocityCard__c');
|
|
64
|
+
await namecheck.checkName('OmniScript__c');
|
|
65
|
+
migrationObjects = [
|
|
66
|
+
new dataraptor_1.DataRaptorMigrationTool(namespace, conn, this.logger, messages),
|
|
67
|
+
new flexcard_1.CardMigrationTool(namespace, conn, this.logger, messages),
|
|
68
|
+
new omniscript_1.OmniScriptMigrationTool(omniscript_1.OmniScriptExportType.All, namespace, conn, this.logger, messages)
|
|
69
|
+
];
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
switch (migrateOnly) {
|
|
73
|
+
case 'os':
|
|
74
|
+
await namecheck.checkName('OmniScript__c');
|
|
75
|
+
migrationObjects.push(new omniscript_1.OmniScriptMigrationTool(omniscript_1.OmniScriptExportType.OS, namespace, conn, this.logger, messages));
|
|
76
|
+
break;
|
|
77
|
+
case 'ip':
|
|
78
|
+
await namecheck.checkName('OmniScript__c');
|
|
79
|
+
migrationObjects.push(new omniscript_1.OmniScriptMigrationTool(omniscript_1.OmniScriptExportType.IP, namespace, conn, this.logger, messages));
|
|
80
|
+
break;
|
|
81
|
+
case 'fc':
|
|
82
|
+
await namecheck.checkName('VlocityCard__c');
|
|
83
|
+
migrationObjects.push(new flexcard_1.CardMigrationTool(namespace, conn, this.logger, messages));
|
|
84
|
+
break;
|
|
85
|
+
case 'dr':
|
|
86
|
+
await namecheck.checkName('DRBundle__c');
|
|
87
|
+
migrationObjects.push(new dataraptor_1.DataRaptorMigrationTool(namespace, conn, this.logger, messages));
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
throw new Error(messages.getMessage('invalidOnlyFlag'));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// Migrate individual objects
|
|
94
|
+
const debugTimer = utils_1.DebugTimer.getInstance();
|
|
95
|
+
let objectMigrationResults = [];
|
|
96
|
+
for (let cls of migrationObjects) {
|
|
97
|
+
try {
|
|
98
|
+
await cls.truncate();
|
|
99
|
+
debugTimer.lap('Migrating: ' + cls.getName());
|
|
100
|
+
const results = await cls.migrate();
|
|
101
|
+
objectMigrationResults = objectMigrationResults.concat(results.map(r => {
|
|
102
|
+
return {
|
|
103
|
+
name: r.name,
|
|
104
|
+
data: this.mergeRecordAndUploadResults(r, cls),
|
|
105
|
+
};
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
108
|
+
catch (ex) {
|
|
109
|
+
objectMigrationResults.push({
|
|
110
|
+
name: cls.getName(),
|
|
111
|
+
errors: [ex.message]
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
// Stop the debug timer
|
|
116
|
+
const timer = utils_1.DebugTimer.getInstance().stop();
|
|
117
|
+
await resultsbuilder_1.ResultsBuilder.generate(objectMigrationResults, conn.instanceUrl);
|
|
118
|
+
// save timer to debug logger
|
|
119
|
+
this.logger.debug(timer);
|
|
120
|
+
// Return results needed for --json flag
|
|
121
|
+
return { objectMigrationResults };
|
|
122
|
+
}
|
|
123
|
+
mergeRecordAndUploadResults(migrationResults, migrationTool) {
|
|
124
|
+
let mergedResults = [];
|
|
125
|
+
for (let record of Array.from(migrationResults.records.values())) {
|
|
126
|
+
const obj = {
|
|
127
|
+
id: record['Id'],
|
|
128
|
+
name: migrationTool.getRecordName(record),
|
|
129
|
+
status: 'Skipped',
|
|
130
|
+
errors: record['errors'],
|
|
131
|
+
migratedId: undefined
|
|
132
|
+
};
|
|
133
|
+
if (migrationResults.results.has(record['Id'])) {
|
|
134
|
+
let recordResults = migrationResults.results.get(record['Id']);
|
|
135
|
+
obj.status = !recordResults || recordResults.hasErrors ? 'Error' : 'Complete';
|
|
136
|
+
obj.errors = obj.errors || recordResults.errors;
|
|
137
|
+
obj.migratedId = recordResults.id;
|
|
138
|
+
}
|
|
139
|
+
mergedResults.push(obj);
|
|
140
|
+
}
|
|
141
|
+
return mergedResults;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.default = Migrate;
|
|
145
|
+
Migrate.description = messages.getMessage('commandDescription');
|
|
146
|
+
Migrate.examples = messages.getMessage('examples').split(os.EOL);
|
|
147
|
+
Migrate.args = [{ name: 'file' }];
|
|
148
|
+
Migrate.flagsConfig = {
|
|
149
|
+
namespace: command_1.flags.string({
|
|
150
|
+
char: 'n',
|
|
151
|
+
description: messages.getMessage('namespaceFlagDescription'),
|
|
152
|
+
}),
|
|
153
|
+
only: command_1.flags.string({
|
|
154
|
+
char: 'o',
|
|
155
|
+
description: messages.getMessage('onlyFlagDescription')
|
|
156
|
+
})
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=migrate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../../../src/commands/omnistudio/migration/migrate.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;AAEpB,uCAAyB;AACzB,iDAA4C;AAC5C,2CAA4C;AAC5C,qCAAmC;AACnC,oEAAsD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AE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KAC7D,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;KACxD,CAAC;CACH,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
declare const _default: {};
|
|
2
|
-
export
|
|
2
|
+
export default _default;
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Licensed under the BSD 3-Clause license.
|
|
6
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
module.exports = {};
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {};
|
|
9
4
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const mappings: {
|
|
2
|
+
Name: string;
|
|
3
|
+
AsyncApexJobId__c: string;
|
|
4
|
+
BulkChunkId__c: string;
|
|
5
|
+
BulkChunkStatus__c: string;
|
|
6
|
+
Data__c: string;
|
|
7
|
+
DRBundleName__c: string;
|
|
8
|
+
DRError__c: string;
|
|
9
|
+
DRProgressData__c: string;
|
|
10
|
+
DRStatus__c: string;
|
|
11
|
+
GlobalKey__c: string;
|
|
12
|
+
};
|
|
13
|
+
export default mappings;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable camelcase */
|
|
4
|
+
const mappings = {
|
|
5
|
+
Name: 'Name',
|
|
6
|
+
AsyncApexJobId__c: 'AsyncApexJobIdentifier',
|
|
7
|
+
BulkChunkId__c: 'AsyncTransactionIdentifier',
|
|
8
|
+
BulkChunkStatus__c: 'AsyncTransactionStatus',
|
|
9
|
+
Data__c: 'InputData',
|
|
10
|
+
DRBundleName__c: 'ProcessKey',
|
|
11
|
+
DRError__c: 'ErrorMessage',
|
|
12
|
+
DRProgressData__c: 'ProcessMetadata',
|
|
13
|
+
DRStatus__c: 'ProcessStatus',
|
|
14
|
+
GlobalKey__c: 'GlobalKey',
|
|
15
|
+
};
|
|
16
|
+
exports.default = mappings;
|
|
17
|
+
//# sourceMappingURL=DRBulkData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DRBulkData.js","sourceRoot":"","sources":["../../src/mappings/DRBulkData.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,wBAAwB;IAC3C,cAAc,EAAE,4BAA4B;IAC5C,kBAAkB,EAAE,wBAAwB;IAC5C,OAAO,EAAE,WAAW;IACpB,eAAe,EAAE,YAAY;IAC7B,UAAU,EAAE,cAAc;IAC1B,iBAAiB,EAAE,iBAAiB;IACpC,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,WAAW;CAC1B,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const mappings: {
|
|
2
|
+
BatchSize__c: string;
|
|
3
|
+
CheckFieldLevelSecurity__c: string;
|
|
4
|
+
CustomInputClass__c: string;
|
|
5
|
+
CustomOutputClass__c: string;
|
|
6
|
+
DeleteOnSuccess__c: string;
|
|
7
|
+
Description__c: string;
|
|
8
|
+
IgnoreErrors__c: string;
|
|
9
|
+
InputCustom__c: string;
|
|
10
|
+
InputJson__c: string;
|
|
11
|
+
InputType__c: string;
|
|
12
|
+
InputXml__c: string;
|
|
13
|
+
InterfaceObject__c: string;
|
|
14
|
+
IsDefaultForInterface__c: string;
|
|
15
|
+
IsProcessSuperBulk__c: string;
|
|
16
|
+
Name: string;
|
|
17
|
+
OutputType__c: string;
|
|
18
|
+
OverwriteAllNullValues__c: string;
|
|
19
|
+
PreprocessorClassName__c: string;
|
|
20
|
+
ProcessNowThreshold__c: string;
|
|
21
|
+
RequiredPermission__c: string;
|
|
22
|
+
RollbackOnError__c: string;
|
|
23
|
+
SalesforcePlatformCacheType__c: string;
|
|
24
|
+
SampleInputCustom__c: string;
|
|
25
|
+
SampleInputJSON__c: string;
|
|
26
|
+
SampleInputRows__c: string;
|
|
27
|
+
SampleInputXML__c: string;
|
|
28
|
+
TargetOutCustom__c: string;
|
|
29
|
+
TargetOutDocuSignTemplateId__c: string;
|
|
30
|
+
TargetOutJson__c: string;
|
|
31
|
+
TargetOutPdfDocName__c: string;
|
|
32
|
+
TargetOutXml__c: string;
|
|
33
|
+
TimeToLiveMinutes__c: string;
|
|
34
|
+
Type__c: string;
|
|
35
|
+
UseAssignmentRules__c: string;
|
|
36
|
+
XmlOutputSequence__c: string;
|
|
37
|
+
XmlRemoveDeclaration__c: string;
|
|
38
|
+
GlobalKey__c: string;
|
|
39
|
+
};
|
|
40
|
+
export default mappings;
|