prodlysfcli 1.5.1 → 1.7.5
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/LICENSE.txt +1 -1
- package/README.md +93 -64
- package/lib/commands/prodly/checkin.d.ts +1 -0
- package/lib/commands/prodly/checkin.js +24 -8
- package/lib/commands/prodly/checkin.js.map +1 -1
- package/lib/commands/prodly/checkout.d.ts +4 -0
- package/lib/commands/prodly/checkout.js +46 -5
- package/lib/commands/prodly/checkout.js.map +1 -1
- package/lib/commands/prodly/deploy.d.ts +4 -1
- package/lib/commands/prodly/deploy.js +55 -16
- package/lib/commands/prodly/deploy.js.map +1 -1
- package/lib/commands/prodly/manage.d.ts +1 -0
- package/lib/commands/prodly/manage.js +19 -6
- package/lib/commands/prodly/manage.js.map +1 -1
- package/lib/constants/index.d.ts +6 -0
- package/lib/constants/index.js +5 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/index.d.ts +5 -1
- package/lib/helpers/index.js +43 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/services/connections.js +2 -2
- package/lib/services/connections.js.map +1 -1
- package/lib/services/connections.types.d.ts +1 -1
- package/lib/services/manage-instances.d.ts +3 -2
- package/lib/services/manage-instances.js +10 -1
- package/lib/services/manage-instances.js.map +1 -1
- package/lib/services/manage-instances.types.d.ts +4 -0
- package/lib/services/queries.d.ts +1 -1
- package/lib/types/prodly.d.ts +13 -0
- package/messages/prodly.json +6 -1
- package/messages/prodly.manage.md +2 -0
- package/npm-shrinkwrap.json +3703 -6059
- package/oclif.lock +2346 -3785
- package/oclif.manifest.json +105 -3
- package/package.json +25 -13
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -41,15 +41,16 @@ sf plugins
|
|
|
41
41
|
## Commands
|
|
42
42
|
|
|
43
43
|
<!-- commands -->
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
|
|
45
|
+
- [`sf prodly branch-folders`](#sf-prodly-branch-folders)
|
|
46
|
+
- [`sf prodly change-types`](#sf-prodly-change-types)
|
|
47
|
+
- [`sf prodly checkin`](#sf-prodly-checkin)
|
|
48
|
+
- [`sf prodly checkout`](#sf-prodly-checkout)
|
|
49
|
+
- [`sf prodly deploy`](#sf-prodly-deploy)
|
|
50
|
+
- [`sf prodly jobs`](#sf-prodly-jobs)
|
|
51
|
+
- [`sf prodly manage`](#sf-prodly-manage)
|
|
52
|
+
- [`sf prodly releases`](#sf-prodly-releases)
|
|
53
|
+
- [`sf prodly version`](#sf-prodly-version)
|
|
53
54
|
|
|
54
55
|
## `sf prodly branch-folders`
|
|
55
56
|
|
|
@@ -79,7 +80,7 @@ EXAMPLES
|
|
|
79
80
|
Lists all branch folders
|
|
80
81
|
```
|
|
81
82
|
|
|
82
|
-
_See code: [src/commands/prodly/branch-folders.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
83
|
+
_See code: [src/commands/prodly/branch-folders.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/branch-folders.ts)_
|
|
83
84
|
|
|
84
85
|
## `sf prodly change-types`
|
|
85
86
|
|
|
@@ -120,7 +121,7 @@ EXAMPLES
|
|
|
120
121
|
Creates a scratch org based on a change type
|
|
121
122
|
```
|
|
122
123
|
|
|
123
|
-
_See code: [src/commands/prodly/change-types.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
124
|
+
_See code: [src/commands/prodly/change-types.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/change-types.ts)_
|
|
124
125
|
|
|
125
126
|
## `sf prodly checkin`
|
|
126
127
|
|
|
@@ -128,22 +129,24 @@ prodly:checkin command
|
|
|
128
129
|
|
|
129
130
|
```
|
|
130
131
|
USAGE
|
|
131
|
-
$ sf prodly checkin -v <value> -o <value> -c <value> [--json] [--flags-dir <value>] [-f <value>] [-
|
|
132
|
-
<value>] [-q <value>] [-i <value>] [-z <value>] [-p <value>]
|
|
132
|
+
$ sf prodly checkin -v <value> -o <value> -c <value> [--json] [--flags-dir <value>] [-f <value>] [-m <value>] [-b
|
|
133
|
+
<value>] [-q <value> -t <value>] [-i <value>] [-z <value>] [-p <value>]
|
|
133
134
|
|
|
134
135
|
FLAGS
|
|
135
|
-
-b, --branch=<value>
|
|
136
|
-
-c, --comment=<value>
|
|
137
|
-
-f, --data-folder=<value>
|
|
138
|
-
-i, --instance=<value>
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
-
|
|
136
|
+
-b, --branch=<value> branch name for deployment
|
|
137
|
+
-c, --comment=<value> (required) comment for the command versioning commit
|
|
138
|
+
-f, --data-folder=<value> data branch folder id to use
|
|
139
|
+
-i, --instance=<value> managed instance ID on which to perform the action
|
|
140
|
+
-m, --metadata-quick-select-components=<value> JSON string of metadata quick select components array, e.g.,
|
|
141
|
+
'[{"type":"Profile","ids":["Profile1","Profile2"]}]'
|
|
142
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the
|
|
143
|
+
`target-org` configuration variable is already set.
|
|
144
|
+
-p, --plan=<value> name or record ID of the deployment plan to deploy
|
|
145
|
+
-q, --filter=<value> query filter override for a data set deployment
|
|
146
|
+
-t, --dataset=<value> name or record ID of the data set to deploy
|
|
147
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the
|
|
148
|
+
`target-dev-hub` configuration variable is already set.
|
|
149
|
+
-z, --notes=<value> notes for the deployment
|
|
147
150
|
|
|
148
151
|
GLOBAL FLAGS
|
|
149
152
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -168,7 +171,7 @@ EXAMPLES
|
|
|
168
171
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
169
172
|
```
|
|
170
173
|
|
|
171
|
-
_See code: [src/commands/prodly/checkin.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
174
|
+
_See code: [src/commands/prodly/checkin.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/checkin.ts)_
|
|
172
175
|
|
|
173
176
|
## `sf prodly checkout`
|
|
174
177
|
|
|
@@ -176,23 +179,34 @@ prodly:checkout command
|
|
|
176
179
|
|
|
177
180
|
```
|
|
178
181
|
USAGE
|
|
179
|
-
$ sf prodly checkout -v <value> -o <value> [--json] [--flags-dir <value>] [-
|
|
180
|
-
|
|
182
|
+
$ sf prodly checkout -v <value> -o <value> [--json] [--flags-dir <value>] [-a <value> -r
|
|
183
|
+
NoTestRun|RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests] [-f <value>] [-m <value>] [-b <value>] [-t <value>] [-e]
|
|
184
|
+
[-q <value>] [-i <value>] [-n <value>] [-z <value>] [-p <value>] [-l]
|
|
181
185
|
|
|
182
186
|
FLAGS
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
-
|
|
187
|
+
-a, --apex-test-classes=<value> comma separated list of Apex test class names to run when
|
|
188
|
+
RunSpecifiedTests was selected
|
|
189
|
+
-b, --branch=<value> branch name for deployment
|
|
190
|
+
-e, --deactivate deactivate all events for the deployment
|
|
191
|
+
-f, --data-folder=<value> data branch folder id to use
|
|
192
|
+
-i, --instance=<value> managed instance ID on which to perform the action
|
|
193
|
+
-l, --simulation perform a data and/or metadata simulation
|
|
194
|
+
-m, --metadata-quick-select-components=<value> JSON string of metadata quick select components array, e.g.,
|
|
195
|
+
'[{"type":"Profile","ids":["Profile1","Profile2"]}]'
|
|
196
|
+
-n, --name=<value> name for the deployment
|
|
197
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the
|
|
198
|
+
`target-org` configuration variable is already set.
|
|
199
|
+
-p, --plan=<value> name or record ID of the deployment plan to deploy
|
|
200
|
+
-q, --filter=<value> query filter override for a data set deployment
|
|
201
|
+
-r, --test-option=<option> specifies the Salesforce Validate Change Set tests to run before
|
|
202
|
+
deploying metadata. Default runs no tests, except when deploying Apex
|
|
203
|
+
classes or triggers to production, Default runs local tests. Local
|
|
204
|
+
tests are tests that do not originate from a managed package.
|
|
205
|
+
<options: NoTestRun|RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests>
|
|
206
|
+
-t, --dataset=<value> name or record ID of the data set to deploy
|
|
207
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the
|
|
208
|
+
`target-dev-hub` configuration variable is already set.
|
|
209
|
+
-z, --notes=<value> notes for the deployment
|
|
196
210
|
|
|
197
211
|
GLOBAL FLAGS
|
|
198
212
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -217,7 +231,7 @@ EXAMPLES
|
|
|
217
231
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
218
232
|
```
|
|
219
233
|
|
|
220
|
-
_See code: [src/commands/prodly/checkout.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
234
|
+
_See code: [src/commands/prodly/checkout.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/checkout.ts)_
|
|
221
235
|
|
|
222
236
|
## `sf prodly deploy`
|
|
223
237
|
|
|
@@ -225,24 +239,34 @@ prodly:deploy command
|
|
|
225
239
|
|
|
226
240
|
```
|
|
227
241
|
USAGE
|
|
228
|
-
$ sf prodly deploy -v <value> -o <value> [--json] [--flags-dir <value>] [-
|
|
229
|
-
|
|
242
|
+
$ sf prodly deploy -v <value> -o <value> -n <value> [--json] [--flags-dir <value>] [-a <value> -r
|
|
243
|
+
NoTestRun|RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests] [-m <value>] [-e] [-d <value>] [-q <value> -t <value>]
|
|
244
|
+
[-b <value>] [-z <value>] [-p <value>] [-l] [-s <value>]
|
|
230
245
|
|
|
231
246
|
FLAGS
|
|
232
|
-
-
|
|
233
|
-
|
|
234
|
-
-
|
|
235
|
-
-
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
-
|
|
241
|
-
-
|
|
242
|
-
|
|
243
|
-
-
|
|
244
|
-
|
|
245
|
-
-
|
|
247
|
+
-a, --apex-test-classes=<value> comma separated list of Apex test class names to run when
|
|
248
|
+
RunSpecifiedTests was selected
|
|
249
|
+
-b, --label=<value> connection and managed instance name
|
|
250
|
+
-d, --destination=<value> destination managed instance ID
|
|
251
|
+
-e, --deactivate deactivate all events for the deployment
|
|
252
|
+
-l, --simulation perform a data and/or metadata simulation
|
|
253
|
+
-m, --metadata-quick-select-components=<value> JSON string of metadata quick select components array, e.g.,
|
|
254
|
+
'[{"type":"Profile","ids":["Profile1","Profile2"]}]'
|
|
255
|
+
-n, --name=<value> (required) name for the deployment
|
|
256
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the
|
|
257
|
+
`target-org` configuration variable is already set.
|
|
258
|
+
-p, --plan=<value> name or record ID of the deployment plan to deploy
|
|
259
|
+
-q, --filter=<value> query filter override for a data set deployment
|
|
260
|
+
-r, --test-option=<option> specifies the Salesforce Validate Change Set tests to run before
|
|
261
|
+
deploying metadata. Default runs no tests, except when deploying Apex
|
|
262
|
+
classes or triggers to production, Default runs local tests. Local
|
|
263
|
+
tests are tests that do not originate from a managed package.
|
|
264
|
+
<options: NoTestRun|RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests>
|
|
265
|
+
-s, --source=<value> source managed instance ID
|
|
266
|
+
-t, --dataset=<value> name or record ID of the data set to deploy
|
|
267
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the
|
|
268
|
+
`target-dev-hub` configuration variable is already set.
|
|
269
|
+
-z, --notes=<value> notes for the deployment
|
|
246
270
|
|
|
247
271
|
GLOBAL FLAGS
|
|
248
272
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -267,7 +291,7 @@ EXAMPLES
|
|
|
267
291
|
Command output... deploying to the scratch org from the UAT sandbox, using the named connection record in the dev hub, control org. Long param names.
|
|
268
292
|
```
|
|
269
293
|
|
|
270
|
-
_See code: [src/commands/prodly/deploy.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
294
|
+
_See code: [src/commands/prodly/deploy.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/deploy.ts)_
|
|
271
295
|
|
|
272
296
|
## `sf prodly jobs`
|
|
273
297
|
|
|
@@ -296,7 +320,7 @@ EXAMPLES
|
|
|
296
320
|
Print the job status for the provided job Id.
|
|
297
321
|
```
|
|
298
322
|
|
|
299
|
-
_See code: [src/commands/prodly/jobs.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
323
|
+
_See code: [src/commands/prodly/jobs.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/jobs.ts)_
|
|
300
324
|
|
|
301
325
|
## `sf prodly manage`
|
|
302
326
|
|
|
@@ -305,7 +329,7 @@ prodly:manage command
|
|
|
305
329
|
```
|
|
306
330
|
USAGE
|
|
307
331
|
$ sf prodly manage -v <value> -o <value> [--json] [--flags-dir <value>] [-c <value>] [-n <value>] [-i <value>]
|
|
308
|
-
[-b <value>] [-l] [-m] [-p] [-x] [-s]
|
|
332
|
+
[-b <value>] [-l] [-m] [-p] [-r] [-x] [-s]
|
|
309
333
|
|
|
310
334
|
FLAGS
|
|
311
335
|
-b, --label=<value> connection and managed instance name
|
|
@@ -318,6 +342,7 @@ FLAGS
|
|
|
318
342
|
configuration variable is already set.
|
|
319
343
|
-p, --print print the managed instances in a standard format in addition to returning structured
|
|
320
344
|
data
|
|
345
|
+
-r, --refresh refresh the org ID of a managed instance after a sandbox refresh
|
|
321
346
|
-s, --version version the new managed instance, branch created and data deployed to the org
|
|
322
347
|
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
323
348
|
configuration variable is already set.
|
|
@@ -342,9 +367,12 @@ EXAMPLES
|
|
|
342
367
|
|
|
343
368
|
$ sf prodly:manage -m --target-org test-utxac7gbati9@example.com -n dev7sbx
|
|
344
369
|
Manage and version the org associated with the target username under the Prodly account associated with the default DevHub control org.
|
|
370
|
+
|
|
371
|
+
$ sf prodly:manage -r -i e1738072-f9fd-4d6a-8278-35fde79c85a9
|
|
372
|
+
Refresh the managed instance org ID after a sandbox has been refreshed.
|
|
345
373
|
```
|
|
346
374
|
|
|
347
|
-
_See code: [src/commands/prodly/manage.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
375
|
+
_See code: [src/commands/prodly/manage.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/manage.ts)_
|
|
348
376
|
|
|
349
377
|
## `sf prodly releases`
|
|
350
378
|
|
|
@@ -384,7 +412,7 @@ EXAMPLES
|
|
|
384
412
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
385
413
|
```
|
|
386
414
|
|
|
387
|
-
_See code: [src/commands/prodly/releases.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
415
|
+
_See code: [src/commands/prodly/releases.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/releases.ts)_
|
|
388
416
|
|
|
389
417
|
## `sf prodly version`
|
|
390
418
|
|
|
@@ -429,7 +457,8 @@ EXAMPLES
|
|
|
429
457
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
430
458
|
```
|
|
431
459
|
|
|
432
|
-
_See code: [src/commands/prodly/version.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.
|
|
460
|
+
_See code: [src/commands/prodly/version.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.7.2/src/commands/prodly/version.ts)_
|
|
461
|
+
|
|
433
462
|
<!-- commandsstop -->
|
|
434
463
|
|
|
435
464
|
<!-- debugging-your-plugin -->
|
|
@@ -8,6 +8,7 @@ export default class ProdlyCheckin extends SfCommand<JSONObject> {
|
|
|
8
8
|
'data-folder': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'metadata-quick-select-components': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
13
|
comment: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
14
|
dataset: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Messages, SfError } from '@salesforce/core';
|
|
2
2
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
import { constructQueryFilter } from '../../helpers/index.js';
|
|
3
|
+
import { constructQueryFilter, constructQuickDeploymentComponents } from '../../helpers/index.js';
|
|
4
4
|
import { updateConnection } from '../../services/connections.js';
|
|
5
5
|
import { getManagedInstance } from '../../services/manage-instances.js';
|
|
6
6
|
import { getDeploymentEntityId } from '../../services/queries.js';
|
|
@@ -15,17 +15,25 @@ export default class ProdlyCheckin extends SfCommand {
|
|
|
15
15
|
'data-folder': Flags.string({ char: 'f', summary: prodlyMessages.getMessage('dataBranchFolderFlagDescription') }),
|
|
16
16
|
'target-dev-hub': Flags.requiredHub(),
|
|
17
17
|
'target-org': Flags.requiredOrg(),
|
|
18
|
+
'metadata-quick-select-components': Flags.string({
|
|
19
|
+
char: 'm',
|
|
20
|
+
summary: prodlyMessages.getMessage('metadataQuickSelectComponentsFlagDescription'),
|
|
21
|
+
}),
|
|
18
22
|
branch: Flags.string({ char: 'b', summary: prodlyMessages.getMessage('branchFlagDescription') }),
|
|
19
23
|
comment: Flags.string({ char: 'c', required: true, summary: prodlyMessages.getMessage('commentFlagDescription') }),
|
|
20
24
|
dataset: Flags.string({ char: 't', summary: prodlyMessages.getMessage('dataSetFlagDescription') }),
|
|
21
|
-
filter: Flags.string({
|
|
25
|
+
filter: Flags.string({
|
|
26
|
+
char: 'q',
|
|
27
|
+
dependsOn: ['dataset'],
|
|
28
|
+
summary: prodlyMessages.getMessage('queryFilterFlagDescription'),
|
|
29
|
+
}),
|
|
22
30
|
instance: Flags.string({ char: 'i', summary: prodlyMessages.getMessage('instanceFlagDescription') }),
|
|
23
31
|
notes: Flags.string({ char: 'z', summary: prodlyMessages.getMessage('notesFlagDescription') }),
|
|
24
32
|
plan: Flags.string({ char: 'p', summary: prodlyMessages.getMessage('deploymentPlanFlagDescription') }),
|
|
25
33
|
};
|
|
26
34
|
async run() {
|
|
27
35
|
const { flags } = await this.parse(ProdlyCheckin);
|
|
28
|
-
const { branch: branchFlag, comment: commentFlag, dataset: datasetFlag, filter: queryFilterFlag, instance: instanceFlag, notes: deploymentNotesFlag, plan: planFlag, } = flags;
|
|
36
|
+
const { 'metadata-quick-select-components': metadataQuickSelectComponentsFlag, branch: branchFlag, comment: commentFlag, dataset: datasetFlag, filter: queryFilterFlag, instance: instanceFlag, notes: deploymentNotesFlag, plan: planFlag, } = flags;
|
|
29
37
|
this.log('Instance flag: ' + instanceFlag);
|
|
30
38
|
this.log('Deployment description flag: ' + deploymentNotesFlag);
|
|
31
39
|
this.log('Comment flag: ' + commentFlag);
|
|
@@ -34,17 +42,23 @@ export default class ProdlyCheckin extends SfCommand {
|
|
|
34
42
|
this.log('Data set flag: ' + datasetFlag);
|
|
35
43
|
this.log('Deployment plan flag: ' + planFlag);
|
|
36
44
|
this.log('Query filter flag: ' + queryFilterFlag);
|
|
37
|
-
|
|
45
|
+
this.log('Metadata quick select components flag: ' + metadataQuickSelectComponentsFlag);
|
|
46
|
+
const metadataQuickSelectComponents = metadataQuickSelectComponentsFlag !== undefined && metadataQuickSelectComponentsFlag.trim().length > 0
|
|
47
|
+
? metadataQuickSelectComponentsFlag
|
|
48
|
+
: undefined;
|
|
49
|
+
const hasMetadataQuickSelectComponents = metadataQuickSelectComponents !== undefined;
|
|
50
|
+
// When no metadata quick select components are provided, require either dataset or plan (but not both)
|
|
51
|
+
if (!hasMetadataQuickSelectComponents && !datasetFlag && !planFlag) {
|
|
38
52
|
throw new SfError(prodlyMessages.getMessage('errorNoDatasetAndPlanFlags', []));
|
|
39
53
|
}
|
|
40
|
-
if (
|
|
41
|
-
throw new SfError(prodlyMessages.getMessage('
|
|
54
|
+
if (datasetFlag && planFlag) {
|
|
55
|
+
throw new SfError(prodlyMessages.getMessage('errorDatasetAndPlanFlags', []));
|
|
42
56
|
}
|
|
43
57
|
const org = flags['target-org'];
|
|
44
58
|
const hubOrg = flags['target-dev-hub'];
|
|
45
59
|
const hubConn = hubOrg.getConnection();
|
|
46
60
|
const print = (message, ...args) => this.log(message, ...args);
|
|
47
|
-
let mangedInstanceId
|
|
61
|
+
let mangedInstanceId;
|
|
48
62
|
let dataSetId;
|
|
49
63
|
let deploymentPlanId;
|
|
50
64
|
// Retrieve the data set or deployment plan to deploy
|
|
@@ -104,11 +118,12 @@ export default class ProdlyCheckin extends SfCommand {
|
|
|
104
118
|
filter: queryFilterFlag,
|
|
105
119
|
hubConn,
|
|
106
120
|
mangedInstanceId,
|
|
121
|
+
quickDeploymentComponents: constructQuickDeploymentComponents(metadataQuickSelectComponents),
|
|
107
122
|
});
|
|
108
123
|
this.log(`Checkin launched with Job ID: ${jobId}`);
|
|
109
124
|
return { jobId, message: 'Checkin launched' };
|
|
110
125
|
}
|
|
111
|
-
async checkinInstance({ branchFlag, comment, dataFolder, dataSetId, deploymentNotes, deploymentPlanId, filter, hubConn, mangedInstanceId, }) {
|
|
126
|
+
async checkinInstance({ branchFlag, comment, dataFolder, dataSetId, deploymentNotes, deploymentPlanId, filter, hubConn, mangedInstanceId, quickDeploymentComponents, }) {
|
|
112
127
|
this.log(`Performing checkin for managed instance with id ${mangedInstanceId}.`);
|
|
113
128
|
const path = `/services/apexrest/PDRI/v1/instances/${mangedInstanceId}/checkin`;
|
|
114
129
|
const checkinInstance = {
|
|
@@ -117,6 +132,7 @@ export default class ProdlyCheckin extends SfCommand {
|
|
|
117
132
|
datasetId: dataSetId,
|
|
118
133
|
deploymentNotes,
|
|
119
134
|
deploymentPlanId,
|
|
135
|
+
metadata: quickDeploymentComponents ? { quickDeploymentComponents } : {},
|
|
120
136
|
options: { commitMessage: comment },
|
|
121
137
|
queryFilter: constructQueryFilter(filter),
|
|
122
138
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkin.js","sourceRoot":"","sources":["../../../src/commands/prodly/checkin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"checkin.js","sourceRoot":"","sources":["../../../src/commands/prodly/checkin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,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ChB,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAAE;YACxE,OAAO,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE;YACnC,WAAW,EAAE,oBAAoB,CAAC,MAAM,CAAC;SAC1C,CAAC;QAEF,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC;YACrC,MAAM,EAAE,MAAe;YACvB,GAAG,EAAE,IAAI;SACV,CAAC;QAEF,MAAM,GAAG,GAAW,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAS,CAAC;QAE5C,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAErC,OAAO,KAAK,CAAC;IACf,CAAC"}
|
|
@@ -5,9 +5,12 @@ export default class ProdlyCheckout extends SfCommand<JSONObject> {
|
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly examples: string[];
|
|
7
7
|
static readonly flags: {
|
|
8
|
+
'apex-test-classes': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
'data-folder': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
10
|
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
11
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'test-option': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'metadata-quick-select-components': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
14
|
branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
15
|
dataset: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
16
|
deactivate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -16,6 +19,7 @@ export default class ProdlyCheckout extends SfCommand<JSONObject> {
|
|
|
16
19
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
20
|
notes: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
21
|
plan: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
simulation: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
19
23
|
};
|
|
20
24
|
run(): Promise<JSONObject>;
|
|
21
25
|
private checkoutInstance;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Messages, SfError } from '@salesforce/core';
|
|
2
2
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
import { constructQueryFilter } from '../../helpers/index.js';
|
|
3
|
+
import { constructApexTestClasses, constructQueryFilter, constructQuickDeploymentComponents, } from '../../helpers/index.js';
|
|
4
4
|
import { updateConnection } from '../../services/connections.js';
|
|
5
5
|
import { getManagedInstance } from '../../services/manage-instances.js';
|
|
6
6
|
import { getDeploymentEntityId } from '../../services/queries.js';
|
|
7
|
+
import { TEST_OPTIONS } from '../../constants/index.js';
|
|
7
8
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
8
9
|
const commandMessages = Messages.loadMessages('prodlysfcli', 'prodly.checkout');
|
|
9
10
|
const prodlyMessages = Messages.loadMessages('prodlysfcli', 'prodly');
|
|
@@ -12,9 +13,24 @@ export default class ProdlyCheckout extends SfCommand {
|
|
|
12
13
|
static description = prodlyMessages.getMessage('descriptionCheckoutCommand');
|
|
13
14
|
static examples = commandMessages.getMessages('examples');
|
|
14
15
|
static flags = {
|
|
16
|
+
'apex-test-classes': Flags.string({
|
|
17
|
+
char: 'a',
|
|
18
|
+
summary: prodlyMessages.getMessage('apexTestClassesFlagDescription'),
|
|
19
|
+
dependsOn: ['test-option'],
|
|
20
|
+
}),
|
|
15
21
|
'data-folder': Flags.string({ char: 'f', summary: prodlyMessages.getMessage('dataBranchFolderFlagDescription') }),
|
|
16
22
|
'target-dev-hub': Flags.requiredHub(),
|
|
17
23
|
'target-org': Flags.requiredOrg(),
|
|
24
|
+
'test-option': Flags.string({
|
|
25
|
+
char: 'r',
|
|
26
|
+
summary: prodlyMessages.getMessage('testOptionFlagDescription'),
|
|
27
|
+
dependsOn: ['metadata-quick-select-components'],
|
|
28
|
+
options: TEST_OPTIONS,
|
|
29
|
+
}),
|
|
30
|
+
'metadata-quick-select-components': Flags.string({
|
|
31
|
+
char: 'm',
|
|
32
|
+
summary: prodlyMessages.getMessage('metadataQuickSelectComponentsFlagDescription'),
|
|
33
|
+
}),
|
|
18
34
|
branch: Flags.string({ char: 'b', summary: prodlyMessages.getMessage('branchFlagDescription') }),
|
|
19
35
|
dataset: Flags.string({ char: 't', summary: prodlyMessages.getMessage('dataSetFlagDescription') }),
|
|
20
36
|
deactivate: Flags.boolean({ char: 'e', summary: prodlyMessages.getMessage('deactivateFlagDescription') }),
|
|
@@ -23,10 +39,11 @@ export default class ProdlyCheckout extends SfCommand {
|
|
|
23
39
|
name: Flags.string({ char: 'n', summary: prodlyMessages.getMessage('deplomentNameFlagDescription') }),
|
|
24
40
|
notes: Flags.string({ char: 'z', summary: prodlyMessages.getMessage('notesFlagDescription') }),
|
|
25
41
|
plan: Flags.string({ char: 'p', summary: prodlyMessages.getMessage('deploymentPlanFlagDescription') }),
|
|
42
|
+
simulation: Flags.boolean({ char: 'l', summary: prodlyMessages.getMessage('simulationFlagDescription') }),
|
|
26
43
|
};
|
|
27
44
|
async run() {
|
|
28
45
|
const { flags } = await this.parse(ProdlyCheckout);
|
|
29
|
-
const { branch: branchFlag, dataset: datasetFlag, deactivate: deactivateFlag, filter: queryFilterFlag, instance: instanceFlag, name: deploymentNameFlag, notes: deploymentNotesFlag, plan: planFlag, } = flags;
|
|
46
|
+
const { 'apex-test-classes': apexTestClassesFlag, 'metadata-quick-select-components': metadataQuickSelectComponentsFlag, 'test-option': testOptionFlag, branch: branchFlag, dataset: datasetFlag, deactivate: deactivateFlag, filter: queryFilterFlag, instance: instanceFlag, name: deploymentNameFlag, notes: deploymentNotesFlag, plan: planFlag, simulation: simulationFlag, } = flags;
|
|
30
47
|
this.log('Deployment name flag: ' + deploymentNameFlag);
|
|
31
48
|
this.log('Instance flag: ' + instanceFlag);
|
|
32
49
|
this.log('Deactivate flag: ' + deactivateFlag);
|
|
@@ -35,10 +52,22 @@ export default class ProdlyCheckout extends SfCommand {
|
|
|
35
52
|
this.log('Data folder flag: ' + flags['data-folder']);
|
|
36
53
|
this.log('Data set flag: ' + datasetFlag);
|
|
37
54
|
this.log('Deployment plan flag: ' + planFlag);
|
|
55
|
+
this.log('Simulation flag: ' + simulationFlag);
|
|
38
56
|
this.log('Query filter flag: ' + queryFilterFlag);
|
|
39
|
-
|
|
57
|
+
this.log('Metadata quick select components flag: ' + metadataQuickSelectComponentsFlag);
|
|
58
|
+
this.log('Test option flag: ' + testOptionFlag);
|
|
59
|
+
this.log('Apex test classes flag: ' + apexTestClassesFlag);
|
|
60
|
+
const metadataQuickSelectComponents = metadataQuickSelectComponentsFlag !== undefined && metadataQuickSelectComponentsFlag.trim().length > 0
|
|
61
|
+
? metadataQuickSelectComponentsFlag
|
|
62
|
+
: undefined;
|
|
63
|
+
const hasMetadataQuickSelectComponents = metadataQuickSelectComponents !== undefined;
|
|
64
|
+
// When no metadata quick select components are provided, require either dataset or plan (but not both)
|
|
65
|
+
if (!hasMetadataQuickSelectComponents && !datasetFlag && !planFlag) {
|
|
40
66
|
throw new SfError(prodlyMessages.getMessage('errorNoDatasetAndPlanFlags', []));
|
|
41
67
|
}
|
|
68
|
+
if (datasetFlag && planFlag) {
|
|
69
|
+
throw new SfError(prodlyMessages.getMessage('errorDatasetAndPlanFlags', []));
|
|
70
|
+
}
|
|
42
71
|
if (!deploymentNameFlag) {
|
|
43
72
|
throw new SfError(prodlyMessages.getMessage('errorDeploymentNameFlag', []));
|
|
44
73
|
}
|
|
@@ -49,7 +78,7 @@ export default class ProdlyCheckout extends SfCommand {
|
|
|
49
78
|
const hubOrg = flags['target-dev-hub'];
|
|
50
79
|
const hubConn = hubOrg.getConnection();
|
|
51
80
|
const print = (message, ...args) => this.log(message, ...args);
|
|
52
|
-
let mangedInstanceId
|
|
81
|
+
let mangedInstanceId;
|
|
53
82
|
let dataSetId;
|
|
54
83
|
let deploymentPlanId;
|
|
55
84
|
// Retrieve the data set or deployment plan to deploy
|
|
@@ -100,6 +129,7 @@ export default class ProdlyCheckout extends SfCommand {
|
|
|
100
129
|
}
|
|
101
130
|
// Perform the checkout
|
|
102
131
|
const jobId = await this.checkoutInstance({
|
|
132
|
+
apexTestClasses: apexTestClassesFlag,
|
|
103
133
|
branchFlag,
|
|
104
134
|
dataFolder: flags['data-folder'],
|
|
105
135
|
dataSetId,
|
|
@@ -110,11 +140,14 @@ export default class ProdlyCheckout extends SfCommand {
|
|
|
110
140
|
filter: queryFilterFlag,
|
|
111
141
|
hubConn,
|
|
112
142
|
mangedInstanceId,
|
|
143
|
+
quickDeploymentComponents: constructQuickDeploymentComponents(metadataQuickSelectComponents),
|
|
144
|
+
simulation: simulationFlag,
|
|
145
|
+
testLevel: testOptionFlag,
|
|
113
146
|
});
|
|
114
147
|
this.log(`Checkout launched with Job ID: ${jobId}`);
|
|
115
148
|
return { jobId, message: 'Checkout launched' };
|
|
116
149
|
}
|
|
117
|
-
async checkoutInstance({ branchFlag, dataFolder, dataSetId, deactivateAllEvents, deploymentNameFlag, deploymentNotes, deploymentPlanId, filter, hubConn, mangedInstanceId, }) {
|
|
150
|
+
async checkoutInstance({ apexTestClasses, branchFlag, dataFolder, dataSetId, deactivateAllEvents, deploymentNameFlag, deploymentNotes, deploymentPlanId, filter, hubConn, mangedInstanceId, quickDeploymentComponents, simulation, testLevel, }) {
|
|
118
151
|
this.log(`Performing checkout for managed instance with id ${mangedInstanceId}.`);
|
|
119
152
|
const path = `/services/apexrest/PDRI/v1/instances/${mangedInstanceId}/checkout`;
|
|
120
153
|
const checkoutInstance = {
|
|
@@ -125,7 +158,15 @@ export default class ProdlyCheckout extends SfCommand {
|
|
|
125
158
|
deploymentName: deploymentNameFlag,
|
|
126
159
|
deploymentNotes,
|
|
127
160
|
deploymentPlanId,
|
|
161
|
+
metadata: quickDeploymentComponents
|
|
162
|
+
? {
|
|
163
|
+
apexTestClasses: constructApexTestClasses(apexTestClasses, testLevel),
|
|
164
|
+
quickDeploymentComponents,
|
|
165
|
+
testLevel,
|
|
166
|
+
}
|
|
167
|
+
: {},
|
|
128
168
|
queryFilter: constructQueryFilter(filter),
|
|
169
|
+
validation: simulation ?? false,
|
|
129
170
|
};
|
|
130
171
|
const request = {
|
|
131
172
|
body: JSON.stringify(checkoutInstance),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.js","sourceRoot":"","sources":["../../../src/commands/prodly/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"checkout.js","sourceRoot":"","sources":["../../../src/commands/prodly/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,kCAAkC,GACnC,M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V,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,yBAAyB,EACzB,UAAU,EACV,SAAS,GACO;QAChB,IAAI,CAAC,GAAG,CAAC,oDAAoD,gBAAgB,GAAG,CAAC,CAAC;QAElF,MAAM,IAAI,GAAG,wCAAwC,gBAAgB,WAAW,CAAC;QAEjF,MAAM,gBAAgB,GAAG;YACvB,UAAU,EAAE,UAAU;YACtB,UAAU;YACV,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,mBAAmB,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YAC/D,cAAc,EAAE,kBAAkB;YAClC,eAAe;YACf,gBAAgB;YAChB,QAAQ,EAAE,yBAAyB;gBACjC,CAAC,CAAC;oBACE,eAAe,EAAE,wBAAwB,CAAC,eAAe,EAAE,SAAS,CAAC;oBACrE,yBAAyB;oBACzB,SAAS;iBACV;gBACH,CAAC,CAAC,EAAE;YACN,WAAW,EAAE,oBAAoB,CAAC,MAAM,CAAC;YACzC,UAAU,EAAE,UAAU,IAAI,KAAK;SAChC,CAAC;QAEF,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;YACtC,MAAM,EAAE,MAAe;YACvB,GAAG,EAAE,IAAI;SACV,CAAC;QAEF,MAAM,GAAG,GAAW,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAS,CAAC;QAE5C,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAErC,OAAO,KAAK,CAAC;IACf,CAAC"}
|
|
@@ -8,14 +8,17 @@ export default class ProdlyDeploy extends SfCommand<JSONObject> {
|
|
|
8
8
|
static readonly description: string;
|
|
9
9
|
static readonly examples: string[];
|
|
10
10
|
static readonly flags: {
|
|
11
|
+
'apex-test-classes': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
13
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'test-option': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'metadata-quick-select-components': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
16
|
dataset: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
17
|
deactivate: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
18
|
destination: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
19
|
filter: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
20
|
label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
-
name: import("@oclif/core/interfaces").OptionFlag<string
|
|
21
|
+
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
22
|
notes: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
23
|
plan: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
24
|
simulation: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|