@kitalive/sfdx-plugin 0.4.6 → 0.5.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/README.md +317 -443
- package/lib/bulk.js +161 -167
- package/lib/bulk.js.map +1 -1
- package/lib/commands/kit/data/bulk/delete.js +45 -38
- package/lib/commands/kit/data/bulk/delete.js.map +1 -1
- package/lib/commands/kit/data/bulk/query.js +25 -23
- package/lib/commands/kit/data/bulk/query.js.map +1 -1
- package/lib/commands/kit/data/bulk/upsert.js +13 -1
- package/lib/commands/kit/data/bulk/upsert.js.map +1 -1
- package/lib/commands/kit/data/csv/convert.js +43 -36
- package/lib/commands/kit/data/csv/convert.js.map +1 -1
- package/lib/commands/kit/layout/assignments/deploy.js +20 -18
- package/lib/commands/kit/layout/assignments/deploy.js.map +1 -1
- package/lib/commands/kit/layout/assignments/retrieve.js +52 -47
- package/lib/commands/kit/layout/assignments/retrieve.js.map +1 -1
- package/lib/commands/kit/object/fields/describe.js +23 -23
- package/lib/commands/kit/object/fields/describe.js.map +1 -1
- package/lib/commands/kit/object/fields/setup.js +69 -65
- package/lib/commands/kit/object/fields/setup.js.map +1 -1
- package/lib/commands/kit/script/execute.js +34 -43
- package/lib/commands/kit/script/execute.js.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/metadata.js +4 -2
- package/lib/metadata.js.map +1 -1
- package/lib/utils.js +6 -5
- package/lib/utils.js.map +1 -1
- package/messages/data.bulk.delete.md +17 -0
- package/messages/data.bulk.md +54 -0
- package/messages/data.bulk.query.md +17 -0
- package/messages/data.bulk.upsert.md +13 -0
- package/messages/data.csv.convert.md +49 -0
- package/messages/layout.assignments.deploy.md +24 -0
- package/messages/layout.assignments.retrieve.md +46 -0
- package/messages/object.fields.describe.md +25 -0
- package/messages/object.fields.setup.md +29 -0
- package/messages/script.execute.md +42 -0
- package/oclif.manifest.json +1017 -1
- package/package.json +161 -48
- package/lib/bulk.d.ts +0 -22
- package/lib/commands/kit/data/bulk/delete.d.ts +0 -18
- package/lib/commands/kit/data/bulk/insert.d.ts +0 -2
- package/lib/commands/kit/data/bulk/query.d.ts +0 -15
- package/lib/commands/kit/data/bulk/update.d.ts +0 -2
- package/lib/commands/kit/data/bulk/upsert.d.ts +0 -2
- package/lib/commands/kit/data/csv/convert.d.ts +0 -22
- package/lib/commands/kit/layout/assignments/deploy.d.ts +0 -13
- package/lib/commands/kit/layout/assignments/retrieve.d.ts +0 -21
- package/lib/commands/kit/object/fields/describe.d.ts +0 -14
- package/lib/commands/kit/object/fields/setup.d.ts +0 -21
- package/lib/commands/kit/script/execute.d.ts +0 -13
- package/lib/index.d.ts +0 -2
- package/lib/metadata.d.ts +0 -18
- package/lib/types.d.ts +0 -35
- package/lib/utils.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,86 +1,199 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitalive/sfdx-plugin",
|
|
3
3
|
"description": "Kitalive SFDX plugin",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"author": "Akihiro Ono",
|
|
6
6
|
"bugs": "https://github.com/Kitalive-Inc/sfdx-plugin/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@
|
|
9
|
-
"@salesforce/core": "^
|
|
10
|
-
"
|
|
8
|
+
"@oclif/core": "^2",
|
|
9
|
+
"@salesforce/core": "^5",
|
|
10
|
+
"@salesforce/kit": "^3",
|
|
11
|
+
"@salesforce/sf-plugins-core": "^3",
|
|
12
|
+
"dayjs": "^1.11.9",
|
|
11
13
|
"fast-csv": "^4.3.6",
|
|
12
|
-
"fs-extra": "^
|
|
13
|
-
"iconv-lite": "^0.6.
|
|
14
|
-
"
|
|
15
|
-
"soql-parser-js": "^4.3.0",
|
|
14
|
+
"fs-extra": "^11.1.1",
|
|
15
|
+
"iconv-lite": "^0.6.3",
|
|
16
|
+
"soql-parser-js": "^4.9.2",
|
|
16
17
|
"tslib": "^2",
|
|
17
|
-
"yargs": "^17.
|
|
18
|
+
"yargs": "^17.7.2"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
|
-
"@oclif/
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"@salesforce/
|
|
25
|
-
"@salesforce/ts-sinon": "^1
|
|
26
|
-
"@
|
|
27
|
-
"@types/
|
|
28
|
-
"@types/yargs": "^17.0.
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
30
|
-
"@typescript-eslint/parser": "^
|
|
21
|
+
"@oclif/test": "^2",
|
|
22
|
+
"@salesforce/cli-plugins-testkit": "^4",
|
|
23
|
+
"@salesforce/dev-config": "^4",
|
|
24
|
+
"@salesforce/dev-scripts": "^5",
|
|
25
|
+
"@salesforce/prettier-config": "^0.0.3",
|
|
26
|
+
"@salesforce/ts-sinon": "^1",
|
|
27
|
+
"@swc/core": "^1.3.77",
|
|
28
|
+
"@types/jest": "^29.5.3",
|
|
29
|
+
"@types/yargs": "^17.0.24",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
31
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
31
32
|
"chai": "^4",
|
|
32
|
-
"eslint": "^8.
|
|
33
|
-
"eslint-config-prettier": "^
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
33
|
+
"eslint": "^8.47.0",
|
|
34
|
+
"eslint-config-prettier": "^9.0.0",
|
|
35
|
+
"eslint-config-salesforce": "^2.0.2",
|
|
36
|
+
"eslint-config-salesforce-license": "^0.2.0",
|
|
37
|
+
"eslint-config-salesforce-typescript": "^1.1.2",
|
|
38
|
+
"eslint-plugin-header": "^3.1.1",
|
|
39
|
+
"eslint-plugin-import": "2.28.0",
|
|
40
|
+
"eslint-plugin-jsdoc": "^46.4.6",
|
|
41
|
+
"eslint-plugin-sf-plugin": "^1.16.2",
|
|
42
|
+
"husky": "^8.0.3",
|
|
43
|
+
"mocha": "^10",
|
|
44
|
+
"nyc": "^15",
|
|
45
|
+
"oclif": "^3",
|
|
46
|
+
"prettier": "^2",
|
|
47
|
+
"pretty-quick": "^3.1.3",
|
|
48
|
+
"shx": "0.3.4",
|
|
49
|
+
"sinon": "15",
|
|
40
50
|
"ts-node": "^10",
|
|
41
|
-
"typescript": "^
|
|
51
|
+
"typescript": "^5"
|
|
42
52
|
},
|
|
43
53
|
"engines": {
|
|
44
|
-
"node": ">=
|
|
54
|
+
"node": ">=16.0.0"
|
|
45
55
|
},
|
|
46
56
|
"files": [
|
|
47
57
|
"/lib",
|
|
48
58
|
"/messages",
|
|
49
|
-
"/npm-shrinkwrap.json",
|
|
50
59
|
"/oclif.manifest.json"
|
|
51
60
|
],
|
|
52
61
|
"homepage": "https://github.com/Kitalive-Inc/sfdx-plugin",
|
|
53
62
|
"keywords": [
|
|
63
|
+
"salesforce",
|
|
64
|
+
"sf-plugin",
|
|
54
65
|
"sfdx-plugin",
|
|
66
|
+
"sf",
|
|
55
67
|
"sfdx",
|
|
56
|
-
"plugin"
|
|
57
|
-
"salesforce"
|
|
68
|
+
"plugin"
|
|
58
69
|
],
|
|
59
70
|
"license": "MIT",
|
|
71
|
+
"main": "lib/index.js",
|
|
60
72
|
"oclif": {
|
|
61
73
|
"commands": "./lib/commands",
|
|
62
|
-
"bin": "
|
|
63
|
-
"
|
|
64
|
-
"kit:layout:assignments": {
|
|
65
|
-
"description": "Commands to manage object layout assignments without profiles."
|
|
66
|
-
}
|
|
67
|
-
},
|
|
74
|
+
"bin": "sf",
|
|
75
|
+
"topicSeparator": " ",
|
|
68
76
|
"devPlugins": [
|
|
69
77
|
"@oclif/plugin-help"
|
|
70
78
|
]
|
|
71
79
|
},
|
|
72
80
|
"repository": "Kitalive-Inc/sfdx-plugin",
|
|
73
81
|
"scripts": {
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
82
|
+
"build": "wireit",
|
|
83
|
+
"clean": "sf-clean",
|
|
84
|
+
"clean-all": "sf-clean all",
|
|
85
|
+
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
86
|
+
"compile": "wireit",
|
|
87
|
+
"docs": "sf-docs",
|
|
88
|
+
"format": "wireit",
|
|
89
|
+
"lint": "wireit",
|
|
90
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
91
|
+
"prepack": "sf-prepack",
|
|
78
92
|
"prepare": "husky install",
|
|
79
|
-
"test": "
|
|
80
|
-
"
|
|
93
|
+
"test": "wireit",
|
|
94
|
+
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
95
|
+
"test:only": "wireit",
|
|
96
|
+
"version": "oclif readme"
|
|
81
97
|
},
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
98
|
+
"wireit": {
|
|
99
|
+
"build": {
|
|
100
|
+
"dependencies": [
|
|
101
|
+
"compile",
|
|
102
|
+
"lint"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"compile": {
|
|
106
|
+
"command": "tsc -p . --pretty --incremental",
|
|
107
|
+
"files": [
|
|
108
|
+
"src/**/*.ts",
|
|
109
|
+
"**/tsconfig.json",
|
|
110
|
+
"messages/**"
|
|
111
|
+
],
|
|
112
|
+
"output": [
|
|
113
|
+
"lib/**",
|
|
114
|
+
"*.tsbuildinfo"
|
|
115
|
+
],
|
|
116
|
+
"clean": "if-file-deleted"
|
|
117
|
+
},
|
|
118
|
+
"format": {
|
|
119
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
120
|
+
"files": [
|
|
121
|
+
"src/**/*.ts",
|
|
122
|
+
"test/**/*.ts",
|
|
123
|
+
"schemas/**/*.json",
|
|
124
|
+
"command-snapshot.json",
|
|
125
|
+
".prettier*"
|
|
126
|
+
],
|
|
127
|
+
"output": []
|
|
128
|
+
},
|
|
129
|
+
"lint": {
|
|
130
|
+
"command": "eslint src --color --cache --cache-location .eslintcache",
|
|
131
|
+
"files": [
|
|
132
|
+
"src/**/*.ts",
|
|
133
|
+
"messages/**",
|
|
134
|
+
"**/.eslint*",
|
|
135
|
+
"**/tsconfig.json"
|
|
136
|
+
],
|
|
137
|
+
"output": []
|
|
138
|
+
},
|
|
139
|
+
"test:compile": {
|
|
140
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
141
|
+
"files": [
|
|
142
|
+
"test/**/*.ts",
|
|
143
|
+
"**/tsconfig.json"
|
|
144
|
+
],
|
|
145
|
+
"output": []
|
|
146
|
+
},
|
|
147
|
+
"test": {
|
|
148
|
+
"dependencies": [
|
|
149
|
+
"test:compile",
|
|
150
|
+
"test:only",
|
|
151
|
+
"lint"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"test:only": {
|
|
155
|
+
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
156
|
+
"env": {
|
|
157
|
+
"FORCE_COLOR": "2"
|
|
158
|
+
},
|
|
159
|
+
"files": [
|
|
160
|
+
"test/**/*.ts",
|
|
161
|
+
"src/**/*.ts",
|
|
162
|
+
"**/tsconfig.json",
|
|
163
|
+
".mocha*",
|
|
164
|
+
"!*.nut.ts",
|
|
165
|
+
".nycrc"
|
|
166
|
+
],
|
|
167
|
+
"output": []
|
|
168
|
+
},
|
|
169
|
+
"test:command-reference": {
|
|
170
|
+
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
171
|
+
"files": [
|
|
172
|
+
"src/**/*.ts",
|
|
173
|
+
"messages/**",
|
|
174
|
+
"package.json"
|
|
175
|
+
],
|
|
176
|
+
"output": [
|
|
177
|
+
"tmp/root"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"test:deprecation-policy": {
|
|
181
|
+
"command": "\"./bin/dev\" snapshot:compare",
|
|
182
|
+
"files": [
|
|
183
|
+
"src/**/*.ts"
|
|
184
|
+
],
|
|
185
|
+
"output": [],
|
|
186
|
+
"dependencies": [
|
|
187
|
+
"compile"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"test:json-schema": {
|
|
191
|
+
"command": "\"./bin/dev\" schema:compare",
|
|
192
|
+
"files": [
|
|
193
|
+
"src/**/*.ts",
|
|
194
|
+
"schemas"
|
|
195
|
+
],
|
|
196
|
+
"output": []
|
|
197
|
+
}
|
|
85
198
|
}
|
|
86
199
|
}
|
package/lib/bulk.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { JsonMap } from '@salesforce/ts-types';
|
|
3
|
-
import { BatchInfo, BatchResultInfo, Connection, JobInfo } from 'jsforce';
|
|
4
|
-
declare type BulkOperation = 'insert' | 'update' | 'upsert' | 'delete' | 'hardDelete';
|
|
5
|
-
declare type BulkOptions = {
|
|
6
|
-
extIdField?: string;
|
|
7
|
-
concurrencyMode?: 'Serial' | 'Parallel';
|
|
8
|
-
assignmentRuleId?: string;
|
|
9
|
-
batchSize?: number;
|
|
10
|
-
wait?: number;
|
|
11
|
-
};
|
|
12
|
-
export declare type BulkResult = {
|
|
13
|
-
job?: JobInfo;
|
|
14
|
-
batches?: BatchInfo[];
|
|
15
|
-
records: BatchResultInfo[];
|
|
16
|
-
errors?: JsonMap[];
|
|
17
|
-
};
|
|
18
|
-
export declare function bulkQuery(conn: Connection, query: string): Promise<JsonMap[]>;
|
|
19
|
-
export declare function bulkLoad(conn: Connection, sobject: string, operation: BulkOperation, rows: JsonMap[], options?: BulkOptions): Promise<BulkResult>;
|
|
20
|
-
export declare function normalizeDateString(str: any, format?: any): any;
|
|
21
|
-
export declare const createBulkCommand: (operation: BulkOperation) => new (...args: any[]) => SfdxCommand;
|
|
22
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { BulkResult } from '../../../../bulk';
|
|
3
|
-
export default class DeleteCommand extends SfdxCommand {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
protected static requiresUsername: boolean;
|
|
7
|
-
protected static requiresProject: boolean;
|
|
8
|
-
protected static flagsConfig: {
|
|
9
|
-
query: flags.Discriminated<flags.String>;
|
|
10
|
-
hard: flags.Discriminated<flags.Boolean<boolean>>;
|
|
11
|
-
concurrencymode: flags.Discriminated<flags.String>;
|
|
12
|
-
batchsize: flags.Discriminated<flags.Number>;
|
|
13
|
-
wait: flags.Discriminated<flags.Number>;
|
|
14
|
-
};
|
|
15
|
-
run(): Promise<BulkResult>;
|
|
16
|
-
private bulkQuery;
|
|
17
|
-
private bulkLoad;
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { JsonMap } from '@salesforce/ts-types';
|
|
3
|
-
export default class QueryCommand extends SfdxCommand {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
protected static requiresUsername: boolean;
|
|
7
|
-
protected static requiresProject: boolean;
|
|
8
|
-
protected static flagsConfig: {
|
|
9
|
-
query: flags.Discriminated<flags.String>;
|
|
10
|
-
csvfile: flags.Discriminated<flags.String>;
|
|
11
|
-
};
|
|
12
|
-
run(): Promise<JsonMap[]>;
|
|
13
|
-
private writeCsv;
|
|
14
|
-
private bulkQuery;
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { JsonMap } from '@salesforce/ts-types';
|
|
3
|
-
export default class CsvConvertCommand extends SfdxCommand {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
protected static requiresUsername: boolean;
|
|
7
|
-
protected static requiresProject: boolean;
|
|
8
|
-
protected static flagsConfig: {
|
|
9
|
-
inputfile: flags.Discriminated<flags.String>;
|
|
10
|
-
outputfile: flags.Discriminated<flags.String>;
|
|
11
|
-
encoding: flags.Discriminated<flags.String>;
|
|
12
|
-
delimiter: flags.Discriminated<flags.String>;
|
|
13
|
-
quote: flags.Discriminated<flags.String>;
|
|
14
|
-
skiplines: flags.Discriminated<flags.Number>;
|
|
15
|
-
trim: flags.Discriminated<flags.Boolean<boolean>>;
|
|
16
|
-
mapping: flags.Discriminated<flags.String>;
|
|
17
|
-
converter: flags.Discriminated<flags.String>;
|
|
18
|
-
};
|
|
19
|
-
run(): Promise<JsonMap[]>;
|
|
20
|
-
private writeCsv;
|
|
21
|
-
private loadConverter;
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { SaveResult } from 'jsforce';
|
|
3
|
-
export default class LayoutAssignmentsDeployCommand extends SfdxCommand {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
protected static requiresUsername: boolean;
|
|
7
|
-
protected static requiresProject: boolean;
|
|
8
|
-
protected static flagsConfig: {
|
|
9
|
-
file: flags.Discriminated<flags.String>;
|
|
10
|
-
};
|
|
11
|
-
run(): Promise<SaveResult[]>;
|
|
12
|
-
private readFile;
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { LayoutAssignmentsPerProfile } from '../../../../types';
|
|
3
|
-
export default class LayoutAssignmentsRetrieveCommand extends SfdxCommand {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
protected static requiresUsername: boolean;
|
|
7
|
-
protected static requiresProject: boolean;
|
|
8
|
-
protected static flagsConfig: {
|
|
9
|
-
file: flags.Discriminated<flags.String>;
|
|
10
|
-
profile: flags.Discriminated<flags.String>;
|
|
11
|
-
object: flags.Discriminated<flags.String>;
|
|
12
|
-
merge: flags.Discriminated<flags.Boolean<boolean>>;
|
|
13
|
-
};
|
|
14
|
-
run(): Promise<LayoutAssignmentsPerProfile>;
|
|
15
|
-
objectNamesFromLayouts(): Promise<string[]>;
|
|
16
|
-
private getProjectConfig;
|
|
17
|
-
private getProfileNames;
|
|
18
|
-
private findFiles;
|
|
19
|
-
private readFile;
|
|
20
|
-
private writeFile;
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { MetadataInfo } from 'jsforce';
|
|
3
|
-
export default class FieldsDescribeCommand extends SfdxCommand {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
protected static requiresUsername: boolean;
|
|
7
|
-
protected static requiresProject: boolean;
|
|
8
|
-
protected static flagsConfig: {
|
|
9
|
-
object: flags.Discriminated<flags.String>;
|
|
10
|
-
file: flags.Discriminated<flags.String>;
|
|
11
|
-
};
|
|
12
|
-
run(): Promise<MetadataInfo[]>;
|
|
13
|
-
writeCsv(file: any, rows: any): void;
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
declare type SetupResult = {
|
|
3
|
-
field: string;
|
|
4
|
-
result: 'created' | 'updated' | 'deleted' | 'identical' | 'error';
|
|
5
|
-
error?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function setFieldOptions(field: any, existingField: any): void;
|
|
8
|
-
export default class FieldsSetupCommand extends SfdxCommand {
|
|
9
|
-
static description: string;
|
|
10
|
-
static examples: string[];
|
|
11
|
-
protected static requiresUsername: boolean;
|
|
12
|
-
protected static requiresProject: boolean;
|
|
13
|
-
protected static flagsConfig: {
|
|
14
|
-
object: flags.Discriminated<flags.String>;
|
|
15
|
-
file: flags.Discriminated<flags.String>;
|
|
16
|
-
delete: flags.Discriminated<flags.Boolean<boolean>>;
|
|
17
|
-
force: flags.Discriminated<flags.Boolean<boolean>>;
|
|
18
|
-
};
|
|
19
|
-
run(): Promise<SetupResult[]>;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
export default class ScriptExecuteCommand extends SfdxCommand {
|
|
3
|
-
static description: string;
|
|
4
|
-
static examples: string[];
|
|
5
|
-
static aliases: string[];
|
|
6
|
-
static strict: boolean;
|
|
7
|
-
protected static supportsUsername: boolean;
|
|
8
|
-
protected static requiresProject: boolean;
|
|
9
|
-
protected static flagsConfig: {
|
|
10
|
-
file: flags.Discriminated<flags.String>;
|
|
11
|
-
};
|
|
12
|
-
run(): Promise<void>;
|
|
13
|
-
}
|
package/lib/index.d.ts
DELETED
package/lib/metadata.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Connection, MetadataInfo, SaveResult, UpsertResult as JsforceUpsertResult } from 'jsforce';
|
|
2
|
-
import { CustomField } from './types';
|
|
3
|
-
interface UpsertResult extends JsforceUpsertResult {
|
|
4
|
-
errors: {
|
|
5
|
-
message: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export declare function getOrgNamespace(conn: Connection): Promise<string>;
|
|
9
|
-
export declare function completeDefaultNamespace(conn: Connection, objectName: string): Promise<string>;
|
|
10
|
-
export declare function completeDefaultNamespace(conn: Connection, objectNames: string[]): Promise<string[]>;
|
|
11
|
-
export declare function chunkMetadata<T>(type: string, metadata: T | T[]): Array<T[]>;
|
|
12
|
-
export declare function readMetadata(conn: Connection, type: string, fullNames: string | string[]): Promise<MetadataInfo[]>;
|
|
13
|
-
export declare function updateMetadata(conn: Connection, type: string, metadata: MetadataInfo | MetadataInfo[]): Promise<SaveResult[]>;
|
|
14
|
-
export declare function upsertMetadata(conn: Connection, type: string, metadata: MetadataInfo | MetadataInfo[]): Promise<UpsertResult[]>;
|
|
15
|
-
export declare function deleteMetadata(conn: Connection, type: string, fullNames: string | string[]): Promise<SaveResult[]>;
|
|
16
|
-
export declare function getCustomFields(conn: Connection, object: string): Promise<CustomField[]>;
|
|
17
|
-
export declare function getCustomFieldMap(conn: Connection, object: string): Promise<Map<string, CustomField>>;
|
|
18
|
-
export {};
|
package/lib/types.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { MetadataInfo } from 'jsforce';
|
|
2
|
-
export declare type LayoutAssignment = {
|
|
3
|
-
layout: string;
|
|
4
|
-
recordType?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type LayoutAssignmentsPerProfile = {
|
|
7
|
-
[profile: string]: LayoutAssignment[];
|
|
8
|
-
};
|
|
9
|
-
export declare type ProfileMetadata = {
|
|
10
|
-
fullName: string;
|
|
11
|
-
layoutAssignments: LayoutAssignment[];
|
|
12
|
-
};
|
|
13
|
-
export interface CustomValue {
|
|
14
|
-
valueName: string;
|
|
15
|
-
label: string;
|
|
16
|
-
default?: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface ValueSet {
|
|
19
|
-
restricted?: boolean;
|
|
20
|
-
valueSetName?: string;
|
|
21
|
-
valueSetDefinition?: {
|
|
22
|
-
sorted?: boolean;
|
|
23
|
-
value: CustomValue[];
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface CustomField extends MetadataInfo {
|
|
27
|
-
label?: string;
|
|
28
|
-
type?: string;
|
|
29
|
-
defaultValue?: string;
|
|
30
|
-
valueSet?: ValueSet;
|
|
31
|
-
restricted?: boolean;
|
|
32
|
-
valueSetName?: string;
|
|
33
|
-
values?: string;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
package/lib/utils.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { JsonMap } from '@salesforce/ts-types';
|
|
3
|
-
export declare function chunk<T>(array: Array<T>, size: number): Array<Array<T>>;
|
|
4
|
-
export declare function rangeGenerator(from: number, to: number): Iterable<number>;
|
|
5
|
-
export declare function range(from: number, to: number): Array<number>;
|
|
6
|
-
export declare function parseCsv(input: NodeJS.ReadableStream, options?: {
|
|
7
|
-
encoding?: string;
|
|
8
|
-
delimiter?: string;
|
|
9
|
-
quote?: string;
|
|
10
|
-
skiplines?: number;
|
|
11
|
-
trim?: boolean;
|
|
12
|
-
mapping?: JsonMap;
|
|
13
|
-
convert?: (row: JsonMap) => JsonMap | null | undefined;
|
|
14
|
-
}): Promise<JsonMap[]>;
|
|
15
|
-
export declare function loadScript(file: any): any;
|
|
16
|
-
export declare function columnMapper(mapping: any): (row: any) => {};
|