@salesforce/plugin-data 4.0.28 → 4.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "4.0.28",
3
+ "version": "4.0.29",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -138,11 +138,11 @@
138
138
  "@oclif/plugin-command-snapshot": "^5.2.38",
139
139
  "@oclif/test": "^4.1.12",
140
140
  "@salesforce/cli-plugins-testkit": "^5.3.39",
141
- "@salesforce/dev-scripts": "^11.0.1",
141
+ "@salesforce/dev-scripts": "^11.0.2",
142
142
  "@salesforce/plugin-command-reference": "^3.1.49",
143
143
  "@salesforce/types": "^1.3.0",
144
- "eslint-plugin-sf-plugin": "^1.20.20",
145
- "oclif": "^4.17.44",
144
+ "eslint-plugin-sf-plugin": "^1.20.21",
145
+ "oclif": "^4.17.46",
146
146
  "ts-node": "^10.9.2",
147
147
  "typescript": "^5.8.3"
148
148
  },
@@ -267,7 +267,7 @@
267
267
  "exports": "./lib/index.js",
268
268
  "type": "module",
269
269
  "sfdx": {
270
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.28.crt",
271
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.28.sig"
270
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.29.crt",
271
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.29.sig"
272
272
  }
273
273
  }
@@ -1,67 +0,0 @@
1
- /*
2
- * Copyright (c) 2020, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { Messages } from '@salesforce/core';
8
- import { QueryJobV2 } from '@jsforce/jsforce-node/lib/api/bulk2.js';
9
- import { Flags, loglevel, optionalOrgFlagWithDeprecations, orgApiVersionFlagWithDeprecations, SfCommand, } from '@salesforce/sf-plugins-core';
10
- import { resultFormatFlag } from '../../../flags.js';
11
- import { displayResults, transformBulkResults } from '../../../queryUtils.js';
12
- import { BulkQueryRequestCache } from '../../../bulkDataRequestCache.js';
13
- Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
14
- const reportMessages = Messages.loadMessages('@salesforce/plugin-data', 'bulk.report');
15
- // needed by the flags loaded from the other command
16
- export class BulkQueryReport extends SfCommand {
17
- static summary = reportMessages.getMessage('summary');
18
- static description = reportMessages.getMessage('description');
19
- static examples = reportMessages.getMessages('examples');
20
- static aliases = ['force:data:soql:bulk:report'];
21
- static deprecateAliases = true;
22
- static state = 'deprecated';
23
- static deprecationOptions = {
24
- message: `Bulk mode for "data query" is deprecated, this command will be removed after April 2025.
25
- Use "data export bulk | data export resume" for bulk queries instead.
26
- `,
27
- };
28
- static flags = {
29
- 'target-org': { ...optionalOrgFlagWithDeprecations },
30
- 'api-version': orgApiVersionFlagWithDeprecations,
31
- loglevel,
32
- 'result-format': resultFormatFlag(),
33
- 'bulk-query-id': Flags.salesforceId({
34
- length: 18,
35
- char: 'i',
36
- startsWith: '750',
37
- summary: reportMessages.getMessage('flags.bulkQueryId.summary'),
38
- aliases: ['bulkqueryid'],
39
- exactlyOne: ['bulk-query-id', 'use-most-recent'],
40
- deprecateAliases: true,
41
- }),
42
- 'use-most-recent': Flags.boolean({
43
- summary: reportMessages.getMessage('flags.useMostRecent.summary'),
44
- exactlyOne: ['bulk-query-id', 'use-most-recent'],
45
- }),
46
- };
47
- async run() {
48
- const [{ flags }, cache] = await Promise.all([this.parse(BulkQueryReport), BulkQueryRequestCache.create()]);
49
- const resumeOptions = await cache.resolveResumeOptionsFromCache(flags['bulk-query-id'] ?? flags['use-most-recent']);
50
- const job = new QueryJobV2(resumeOptions.options.connection, {
51
- id: resumeOptions.jobInfo.id,
52
- pollingOptions: {
53
- pollTimeout: 30_000,
54
- pollInterval: 1000,
55
- },
56
- });
57
- await job.poll();
58
- const results = await job.result();
59
- // we don't have access to the SOQL query here so we pass an empty string.
60
- const queryResult = transformBulkResults((await results.toArray()), '');
61
- if (!this.jsonEnabled()) {
62
- displayResults({ ...queryResult }, flags['result-format']);
63
- }
64
- return queryResult.result;
65
- }
66
- }
67
- //# sourceMappingURL=resume.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../../src/commands/data/query/resume.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEpE,OAAO,EACL,KAAK,EACL,QAAQ,EACR,+BAA+B,EAC/B,iCAAiC,EACjC,SAAS,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC;AACvF,oDAAoD;AAEpD,MAAM,OAAO,eAAgB,SAAQ,SAAkB;IAC9C,MAAM,CAAU,OAAO,GAAG,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/D,MAAM,CAAU,WAAW,GAAG,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACvE,MAAM,CAAU,QAAQ,GAAG,cAAc,CAAC,W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AC,aAAa,CAAC,OAAO,CAAC,UAAU,EAAE;YAC3D,EAAE,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE;YAC5B,cAAc,EAAE;gBACd,WAAW,EAAE,MAAM;gBACnB,YAAY,EAAE,IAAI;aACnB;SACF,CAAC,CAAC;QACH,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,CAAC;QACnC,0EAA0E;QAC1E,MAAM,WAAW,GAAG,oBAAoB,CAAC,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,CAAoB,EAAE,EAAE,CAAC,CAAC;QAE3F,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACxB,cAAc,CAAC,EAAE,GAAG,WAAW,EAAE,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;QAC7D,CAAC;QAED,OAAO,WAAW,CAAC,MAAM,CAAC;IAC5B,CAAC"}
@@ -1,21 +0,0 @@
1
- # summary
2
-
3
- View the status of a bulk query.
4
-
5
- # description
6
-
7
- Run this command using the job ID returned from the "<%= config.bin %> data query --bulk" command.
8
-
9
- # examples
10
-
11
- - View the status of a bulk query with the specified ID:
12
-
13
- <%= config.bin %> <%= command.id %> --bulk-query-id 7500x000005BdFzXXX
14
-
15
- # flags.bulkQueryId.summary
16
-
17
- Job ID of the bulk query.
18
-
19
- # flags.useMostRecent.summary
20
-
21
- Use the most recent bulk query ID from cache.