@salesforce/plugin-omnistudio-migration-tool 1.4.1-dev.20 → 1.4.1-dev.21

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.
@@ -0,0 +1,2 @@
1
+ import { Filter, ReportHeader, TableColumn, TableHeaderCell } from './reportInterfaces';
2
+ export declare function generateHtmlTable<T>(headerRows: TableHeaderCell[][], columns: Array<TableColumn<T>>, rows: T[], reportHeader: ReportHeader[], filters?: Filter[], tableClass?: string, ariaLabel?: string): string;
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateHtmlTable = void 0;
4
+ function generateHtmlTable(headerRows, columns, rows, reportHeader, filters = [], tableClass = 'slds-table slds-table_cell-buffer slds-table_bordered slds-table_striped slds-table_col-bordered', ariaLabel = '') {
5
+ const thead = `
6
+ <thead>
7
+ ${headerRows
8
+ .map((row) => `
9
+ <tr>
10
+ ${row
11
+ .map((cell) => `
12
+ <th
13
+ ${cell.colspan ? `colspan="${cell.colspan}"` : ''}
14
+ ${cell.rowspan ? `rowspan="${cell.rowspan}"` : ''}
15
+ style="width:${(cell === null || cell === void 0 ? void 0 : cell.width) || 'auto'}"
16
+ >
17
+ <div class="filter-header">
18
+ <span class="filter-label">${cell.label}</span>
19
+ </div>
20
+ </th>
21
+ `)
22
+ .join('')}
23
+ </tr>
24
+ `)
25
+ .join('')}
26
+ </thead>
27
+ `;
28
+ const filterAndSearchPanel = `
29
+ <div class="filter-dropdown-container">
30
+ <div class="filter-header-bar">
31
+ <!-- Row count display -->
32
+ <div class="row-count-display" id="row-count">
33
+ Showing ${rows.length} records
34
+ </div>
35
+
36
+ <!-- Search and filter controls -->
37
+ <div class="search-container">
38
+ <svg class="search-icon" xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="black" viewBox="0 0 16 16">
39
+ <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z"/>
40
+ </svg>
41
+ <input
42
+ type="text"
43
+ id="name-search-input"
44
+ class="search-input"
45
+ placeholder="Search by Name"
46
+ oninput="filterAndSearchTable()"
47
+ />
48
+ </div>
49
+
50
+ <div class="filter-toggle-button" onclick="toggleFilterDropdown()">
51
+ Filters
52
+ <svg id="chevron-down" class="chevron-icon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">
53
+ <path fill-rule="none" stroke="currentColor" stroke-width="2" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>
54
+ </svg>
55
+ <svg id="chevron-up" class="chevron-icon hidden" xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">
56
+ <path fill-rule="none" stroke="currentColor" stroke-width="2" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>
57
+ </svg>
58
+ </div>
59
+ </div>
60
+
61
+ <div id="filter-dropdown" class="filter-dropdown">
62
+ ${filters
63
+ .map((filter) => `
64
+ <div class="filter-group">
65
+ <div class="filter-group-label">Filter by ${filter.label}</div>
66
+ <div class="filter-options">
67
+ ${filter.filterOptions
68
+ .map((option) => `
69
+ <label>
70
+ <input
71
+ type="checkbox"
72
+ class="filter-checkbox"
73
+ data-filter-key="${filter.key}"
74
+ value="${option}"
75
+ checked
76
+ onclick="filterAndSearchTable()"
77
+ />
78
+ ${option}
79
+ </label>
80
+ `)
81
+ .join('')}
82
+ </div>
83
+ </div>
84
+ `)
85
+ .join('')}
86
+ </div>
87
+ </div>`;
88
+ const tbody = `
89
+ <tbody id="filterable-table-body">
90
+ ${rows
91
+ .map((row) => `
92
+ <tr>
93
+
94
+ ${columns
95
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
96
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
97
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
98
+ .map((col) => {
99
+ const key = col.key;
100
+ const title = col.title ? col.title(row) : '';
101
+ const value = col.filterValue(row).toString();
102
+ const cellContent = col.cell(row);
103
+ const dataAttr = ['name', 'oldName'].includes(key) ? `data-name="${value.toLowerCase()}"` : '';
104
+ return `<td ${dataAttr} title="${title}" key="${key}" value="${value}">${cellContent}</td>`;
105
+ })
106
+ .join('')}
107
+ </tr>
108
+ `)
109
+ .join('')}
110
+ <tr id="no-rows-message" style="display: none;">
111
+ <td colspan="100%" style="text-align: center; padding: 16px; color: #666;">
112
+ No matching records found.
113
+ </td>
114
+ </tr>
115
+ </tbody>
116
+ `;
117
+ const pageHeader = `
118
+ <div class="header-container">
119
+ ${reportHeader
120
+ .map((header) => `
121
+ <div class="org-details-section">
122
+ <div class="label-key">${header.key}</div>
123
+ <div class="label-value">${header.value}</div>
124
+ </div>
125
+ `)
126
+ .join('')}
127
+ </div>
128
+ `;
129
+ const migrationBanner = `
130
+ <div class="migration-message">
131
+ <svg fill="#8c4c00" width="20px" height="20px" viewBox="-3.2 -3.2 38.40 38.40" xmlns="http://www.w3.org/2000/svg" stroke="#8c4c00" stroke-width="0.0032">
132
+ <path d="M31.082 27.5l-13.999-24.249c-0.237-0.352-0.633-0.58-1.083-0.58s-0.846 0.228-1.080 0.575l-0.003 0.005-14 24.249c-0.105 0.179-0.167 0.395-0.167 0.625 0 0.69 0.56 1.25 1.25 1.25h28c0.69 0 1.249-0.56 1.249-1.25 0-0.23-0.062-0.446-0.171-0.631zM4.165 26.875l11.835-20.499 11.834 20.499zM14.75 12v8.994c0 0.69 0.56 1.25 1.25 1.25s1.25-0.56 1.25-1.25V12c0-0.69-0.56-1.25-1.25-1.25s-1.25 0.56-1.25 1.25zM15.12 23.619c-0.124 0.106-0.22 0.24-0.278 0.394-0.051 0.143-0.08 0.308-0.08 0.48s0.029 0.337 0.083 0.491c0.144 0.3 0.38 0.536 0.671 0.676 0.143 0.051 0.308 0.080 0.48 0.080s0.337-0.029 0.49-0.083c0.156-0.071 0.288-0.166 0.4-0.281 0.224-0.225 0.363-0.536 0.363-0.878 0-0.687-0.557-1.244-1.244-1.244-0.343 0-0.653 0.139-0.878 0.363z"/>
133
+ </svg>
134
+ <span>High level description of what actions were taken as part of the migration will come here</span>
135
+ </div>
136
+ `;
137
+ return `
138
+ ${migrationBanner}
139
+ ${pageHeader}
140
+ ${filterAndSearchPanel}
141
+ <div class="table-container">
142
+ <table class="${tableClass}" aria-label="${ariaLabel}">
143
+ ${thead}
144
+ ${tbody}
145
+ </table>
146
+ <script src="./reportGeneratorUtility.js" defer></script>
147
+ <link rel="stylesheet" href="./reportGenerator.css">
148
+ </div>
149
+ `;
150
+ }
151
+ exports.generateHtmlTable = generateHtmlTable;
152
+ //# sourceMappingURL=reportGenerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportGenerator.js","sourceRoot":"","sources":["../../../src/utils/reportGenerator/reportGenerator.ts"],"names":[],"mappings":";;;AAEA,SAAgB,iBAAiB,CAC/B,UAA+B,EAC/B,OAA8B,EAC9B,IAAS,EACT,YAA4B,EAC5B,UAAoB,EAAE,EACtB,UAAU,GAAG,kGAAkG,EAC/G,SAAS,GAAG,EAAE;IAEd,MAAM,KAAK,GAAG;;QAER,UAAU;SACT,GAAG,CACF,CAAC,GAAG,EAAE,EAAE,CAAC;;YAEP,GAAG;SACF,GAAG,CACF,CAAC,IAAI,EAAE,EAAE,CAAC;;kBAEN,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE;kBAC/C,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE;+BAClC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,KAAI,MAAM;;;+CAGL,IAAI,CAAC,KAAK;;;aAG5C,CACA;SACA,IAAI,CAAC,EAAE,CAAC;;OAEd,CACE;SACA,IAAI,CAAC,EAAE,CAAC;;GAEd,CAAC;IAEF,MAAM,oBAAoB,GAAG;;;;;gBAKf,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6BrB,OAAO;SACN,GAAG,CACF,CAAC,MAAM,EAAE,EAAE,CAAC;;oDAEgC,MAAM,CAAC,KAAK;;YAEpD,MAAM,CAAC,aAAa;SACnB,GAAG,CACF,CAAC,MAAM,EAAE,EAAE,CAAC;;;;;mCAKS,MAAM,CAAC,GAAG;yBACpB,MAAM;;;;gBAIf,MAAM;;WAEX,CACE;SACA,IAAI,CAAC,EAAE,CAAC;;;KAGhB,CACE;SACA,IAAI,CAAC,EAAE,CAAC;;OAER,CAAC;IAEN,MAAM,KAAK,GAAG;;QAER,IAAI;SACH,GAAG,CACF,CAAC,GAAG,EAAE,EAAE,CAAC;;;YAGP,OAAO;QACP,4DAA4D;QAC5D,sDAAsD;QACtD,+DAA+D;SAC9D,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACX,MAAM,GAAG,GAAW,GAAG,CAAC,GAAG,CAAC;QAC5B,MAAM,KAAK,GAAW,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,MAAM,KAAK,GAAW,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;QACtD,MAAM,WAAW,GAAW,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,QAAQ,GAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,KAAK,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACvG,OAAO,OAAO,QAAQ,WAAW,KAAK,UAAU,GAAG,YAAY,KAAK,KAAK,WAAW,OAAO,CAAC;IAC9F,CAAC,CAAC;SACD,IAAI,CAAC,EAAE,CAAC;;OAEd,CACE;SACA,IAAI,CAAC,EAAE,CAAC;;;;;;;GAOd,CAAC;IAEF,MAAM,UAAU,GAAG;;QAEb,YAAY;SACX,GAAG,CACF,CAAC,MAAM,EAAE,EAAE,CAAC;;mCAEa,MAAM,CAAC,GAAG;qCACR,MAAM,CAAC,KAAK;;OAE1C,CACE;SACA,IAAI,CAAC,EAAE,CAAC;;GAEd,CAAC;IAEF,MAAM,eAAe,GAAG;;;;;;;GAOvB,CAAC;IAEF,OAAO;MACH,eAAe;MACf,UAAU;MACV,oBAAoB;;sBAEJ,UAAU,iBAAiB,SAAS;UAChD,KAAK;UACL,KAAK;;;;;GAKZ,CAAC;AACJ,CAAC;AA3KD,8CA2KC"}
@@ -0,0 +1,22 @@
1
+ export interface TableHeaderCell {
2
+ label: string;
3
+ colspan?: number;
4
+ rowspan?: number;
5
+ key: string;
6
+ width?: string;
7
+ }
8
+ export interface TableColumn<T> {
9
+ key: string;
10
+ cell: any;
11
+ filterValue: any;
12
+ title?: any;
13
+ }
14
+ export interface Filter {
15
+ label: string;
16
+ key: string;
17
+ filterOptions: string[];
18
+ }
19
+ export interface ReportHeader {
20
+ key: string;
21
+ value: string;
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=reportInterfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportInterfaces.js","sourceRoot":"","sources":["../../../src/utils/reportGenerator/reportInterfaces.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":"1.4.1-dev.20","commands":{"basecommand":{"id":"basecommand","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"omnistudio:migration:assess":{"id":"omnistudio:migration:assess","description":"Assess migration of omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespaced of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:info":{"id":"omnistudio:migration:info","description":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-a] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["sfdx omnistudio:migration:info --targetusername myOrg@example.com --targetdevhubusername devhub@org.com","sfdx omnistudio:migration:info --name myname --targetusername myOrg@example.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:migrate":{"id":"omnistudio:migration:migrate","description":"Migrate omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-r <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex,lwc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r lwc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespace of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"relatedobjects":{"name":"relatedobjects","type":"option","char":"r","description":"Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."}},"args":[{"name":"file"}]}}}
1
+ {"version":"1.4.1-dev.21","commands":{"basecommand":{"id":"basecommand","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"omnistudio:migration:assess":{"id":"omnistudio:migration:assess","description":"Assess migration of omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespaced of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:info":{"id":"omnistudio:migration:info","description":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-a] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["sfdx omnistudio:migration:info --targetusername myOrg@example.com --targetdevhubusername devhub@org.com","sfdx omnistudio:migration:info --name myname --targetusername myOrg@example.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:migrate":{"id":"omnistudio:migration:migrate","description":"Migrate omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-r <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex,lwc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r lwc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespace of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"relatedobjects":{"name":"relatedobjects","type":"option","char":"r","description":"Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."}},"args":[{"name":"file"}]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-omnistudio-migration-tool",
3
3
  "description": "This SFDX plugin migrates FlexCard, OmniScript, DataRaptor, and Integration Procedure custom objects to standard objects.",
4
- "version": "1.4.1-dev.20",
4
+ "version": "1.4.1-dev.21",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -124,7 +124,7 @@
124
124
  }
125
125
  },
126
126
  "sfdx": {
127
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.20.crt",
128
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.20.sig"
127
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.21.crt",
128
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.21.sig"
129
129
  }
130
130
  }