@salesforce/plugin-limits 1.1.0 → 1.2.3
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 +25 -0
- package/README.md +46 -1
- package/lib/commands/force/limits/api/display.js +1 -1
- package/lib/commands/force/limits/api/display.js.map +1 -1
- package/lib/commands/force/limits/recordcounts/display.d.ts +13 -0
- package/lib/commands/force/limits/recordcounts/display.js +59 -0
- package/lib/commands/force/limits/recordcounts/display.js.map +1 -0
- package/messages/recordcounts.json +8 -0
- package/oclif.manifest.json +1 -1
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.2.3](https://github.com/salesforcecli/plugin-limits/compare/v1.2.2...v1.2.3) (2021-11-02)
|
|
6
|
+
|
|
7
|
+
### [1.2.2](https://github.com/salesforcecli/plugin-limits/compare/v1.2.1...v1.2.2) (2021-10-05)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* update deps ([2f291d9](https://github.com/salesforcecli/plugin-limits/commit/2f291d9b20ae5d37bac285fb3964d97219d52526))
|
|
13
|
+
|
|
14
|
+
### [1.2.1](https://github.com/salesforcecli/plugin-limits/compare/v1.2.0...v1.2.1) (2021-05-10)
|
|
15
|
+
|
|
16
|
+
## [1.2.0](https://github.com/salesforcecli/plugin-limits/compare/v1.1.0...v1.2.0) (2021-04-29)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* add recordcounts command ([7628eaa](https://github.com/salesforcecli/plugin-limits/commit/7628eaab70a6b1fc9b015f22b4040de198d53745))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* add 0 count response output ([14ede94](https://github.com/salesforcecli/plugin-limits/commit/14ede94c39dfc7cca008a22b2bd2fcecee3e0c5c))
|
|
27
|
+
* arg in test ([b56ad46](https://github.com/salesforcecli/plugin-limits/commit/b56ad4687d59dc4272b4a6c770d4f81b059ace74))
|
|
28
|
+
* update message ([3e5c28f](https://github.com/salesforcecli/plugin-limits/commit/3e5c28f118caceaff6acaace3e0ed5f94cf1bca9))
|
|
29
|
+
|
|
5
30
|
## [1.1.0](https://github.com/salesforcecli/plugin-limits/compare/v1.0.6...v1.1.0) (2021-04-26)
|
|
6
31
|
|
|
7
32
|
|
package/README.md
CHANGED
|
@@ -69,12 +69,16 @@ sfdx plugins
|
|
|
69
69
|
## Commands
|
|
70
70
|
<!-- commands -->
|
|
71
71
|
* [`sfdx force:limits:api:display [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcelimitsapidisplay--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
72
|
+
* [`sfdx force:limits:recordcounts:display -s <array> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forcelimitsrecordcountsdisplay--s-array--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
72
73
|
|
|
73
74
|
## `sfdx force:limits:api:display [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
74
75
|
|
|
75
76
|
display current org’s limits
|
|
76
77
|
|
|
77
78
|
```
|
|
79
|
+
display current org’s limits
|
|
80
|
+
When you execute this command in a project, it provides limit information for your default scratch org.
|
|
81
|
+
|
|
78
82
|
USAGE
|
|
79
83
|
$ sfdx force:limits:api:display [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
80
84
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -99,5 +103,46 @@ EXAMPLES
|
|
|
99
103
|
sfdx force:limits:api:display -u me@my.org
|
|
100
104
|
```
|
|
101
105
|
|
|
102
|
-
_See code: [src/commands/force/limits/api/display.ts](https://github.com/salesforcecli/plugin-limits/blob/v1.
|
|
106
|
+
_See code: [src/commands/force/limits/api/display.ts](https://github.com/salesforcecli/plugin-limits/blob/v1.2.2/src/commands/force/limits/api/display.ts)_
|
|
107
|
+
|
|
108
|
+
## `sfdx force:limits:recordcounts:display -s <array> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
109
|
+
|
|
110
|
+
display record counts for the specified standard and custom objects
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
display record counts for the specified standard and custom objects
|
|
114
|
+
Use this command to get an approximate count of the records in standard or custom objects in your org. These record counts are the same as the counts listed in the Storage Usage page in Setup. The record counts are approximate because they're calculated asynchronously and your org’s storage usage isn’t updated immediately.
|
|
115
|
+
|
|
116
|
+
USAGE
|
|
117
|
+
$ sfdx force:limits:recordcounts:display -s <array> [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
118
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
119
|
+
|
|
120
|
+
OPTIONS
|
|
121
|
+
-s, --sobjecttype=sobjecttype (required) comma-separated list of
|
|
122
|
+
API names of standard or custom
|
|
123
|
+
objects for which to display record
|
|
124
|
+
counts
|
|
125
|
+
|
|
126
|
+
-u, --targetusername=targetusername username or alias for the target
|
|
127
|
+
org; overrides default target org
|
|
128
|
+
|
|
129
|
+
--apiversion=apiversion override the api version used for
|
|
130
|
+
api requests made by this command
|
|
131
|
+
|
|
132
|
+
--json format output as json
|
|
133
|
+
|
|
134
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
135
|
+
this command invocation
|
|
136
|
+
|
|
137
|
+
DESCRIPTION
|
|
138
|
+
Use this command to get an approximate count of the records in standard or custom objects in your org. These record
|
|
139
|
+
counts are the same as the counts listed in the Storage Usage page in Setup. The record counts are approximate because
|
|
140
|
+
they're calculated asynchronously and your org’s storage usage isn’t updated immediately.
|
|
141
|
+
|
|
142
|
+
EXAMPLES
|
|
143
|
+
sfdx force:limits:recordcounts:display -s Account,Contact,Lead,Opportunity
|
|
144
|
+
sfdx force:limits:recordcounts:display -s Account,Contact -u me@my.org
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
_See code: [src/commands/force/limits/recordcounts/display.ts](https://github.com/salesforcecli/plugin-limits/blob/v1.2.2/src/commands/force/limits/recordcounts/display.ts)_
|
|
103
148
|
<!-- commandsstop -->
|
|
@@ -17,7 +17,7 @@ class LimitsApiDisplayCommand extends command_1.SfdxCommand {
|
|
|
17
17
|
try {
|
|
18
18
|
const conn = this.org.getConnection();
|
|
19
19
|
const geturl = `${conn.instanceUrl}/services/data/v${conn.version}/limits`;
|
|
20
|
-
const result =
|
|
20
|
+
const result = await conn.request(geturl);
|
|
21
21
|
const limits = [];
|
|
22
22
|
Object.keys(result).map((limitName) => {
|
|
23
23
|
limits.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../../src/commands/force/limits/api/display.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAkD;AAClD,2CAAuD;AAEvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,2BAA2B,EAAE,SAAS,CAAC,CAAC;AAe/E,MAAa,uBAAwB,SAAQ,qBAAW;IAK/C,KAAK,CAAC,GAAG;QACd,IAAI;YACF,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;YACtC,MAAM,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,mBAAmB,IAAI,CAAC,OAAO,SAAS,CAAC;YAC3E,MAAM,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../../src/commands/force/limits/api/display.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAkD;AAClD,2CAAuD;AAEvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,2BAA2B,EAAE,SAAS,CAAC,CAAC;AAe/E,MAAa,uBAAwB,SAAQ,qBAAW;IAK/C,KAAK,CAAC,GAAG;QACd,IAAI;YACF,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;YACtC,MAAM,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,mBAAmB,IAAI,CAAC,OAAO,SAAS,CAAC;YAC3E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAS,MAAM,CAAC,CAAC;YAClD,MAAM,MAAM,GAAe,EAAE,CAAC;YAE9B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;gBACpC,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,SAAS;oBACf,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG;oBAC1B,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS;iBACvC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE;gBACpB,OAAO,EAAE;oBACP,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC9B,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBACxC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;iBAC7B;aACF,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC;SACf;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,gBAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC3B;IACH,CAAC;;AAhCH,0DAiCC;AAhCwB,mCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,gCAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,wCAAgB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FlagsConfig, SfdxCommand, SfdxResult } from '@salesforce/command';
|
|
2
|
+
export interface RecordCount {
|
|
3
|
+
name: string;
|
|
4
|
+
count: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class LimitsRecordCountsDisplayCommand extends SfdxCommand {
|
|
7
|
+
static readonly description: string;
|
|
8
|
+
static readonly examples: string[];
|
|
9
|
+
static readonly requiresUsername = true;
|
|
10
|
+
static readonly result: SfdxResult;
|
|
11
|
+
protected static readonly flagsConfig: FlagsConfig;
|
|
12
|
+
run(): Promise<RecordCount[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LimitsRecordCountsDisplayCommand = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
|
+
* All rights reserved.
|
|
7
|
+
* Licensed under the BSD 3-Clause license.
|
|
8
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
const os = require("os");
|
|
11
|
+
const command_1 = require("@salesforce/command");
|
|
12
|
+
const core_1 = require("@salesforce/core");
|
|
13
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-limits', 'recordcounts');
|
|
15
|
+
class LimitsRecordCountsDisplayCommand extends command_1.SfdxCommand {
|
|
16
|
+
async run() {
|
|
17
|
+
try {
|
|
18
|
+
const sobjecttypeString = this.flags.sobjecttype.join();
|
|
19
|
+
const conn = this.org.getConnection();
|
|
20
|
+
const geturl = `${conn.baseUrl()}/limits/recordCount?sObjects=${sobjecttypeString}`;
|
|
21
|
+
const result = (await conn.request(geturl));
|
|
22
|
+
// if an object is requested, but there's 0 of them on the server, append that object to the result
|
|
23
|
+
sobjecttypeString.split(',').forEach((name) => {
|
|
24
|
+
if (!result.sObjects.find((record) => record.name === name)) {
|
|
25
|
+
result.sObjects.push({ name, count: 0 });
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return result.sObjects;
|
|
29
|
+
}
|
|
30
|
+
catch (err) {
|
|
31
|
+
throw core_1.SfdxError.wrap(err);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.LimitsRecordCountsDisplayCommand = LimitsRecordCountsDisplayCommand;
|
|
36
|
+
LimitsRecordCountsDisplayCommand.description = messages.getMessage('commandDescription');
|
|
37
|
+
LimitsRecordCountsDisplayCommand.examples = messages.getMessage('examples').split(os.EOL);
|
|
38
|
+
LimitsRecordCountsDisplayCommand.requiresUsername = true;
|
|
39
|
+
LimitsRecordCountsDisplayCommand.result = {
|
|
40
|
+
tableColumnData: {
|
|
41
|
+
columns: [
|
|
42
|
+
{ key: 'name', label: 'sObject' },
|
|
43
|
+
{ key: 'count', label: 'Record Count' },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
display() {
|
|
47
|
+
if (Array.isArray(this.data) && this.data.length) {
|
|
48
|
+
this.ux.table(this.data, this.tableColumnData);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
LimitsRecordCountsDisplayCommand.flagsConfig = {
|
|
53
|
+
sobjecttype: command_1.flags.array({
|
|
54
|
+
char: 's',
|
|
55
|
+
required: true,
|
|
56
|
+
description: messages.getMessage('sobjecttypeFlagDescription'),
|
|
57
|
+
}),
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../../src/commands/force/limits/recordcounts/display.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,iDAAkF;AAClF,2CAAuD;AAEvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,2BAA2B,EAAE,cAAc,CAAC,CAAC;AAWpF,MAAa,gCAAiC,SAAQ,qBAAW;IA0BxD,KAAK,CAAC,GAAG;QACd,IAAI;YACF,MAAM,iBAAiB,GAAI,IAAI,CAAC,KAAK,CAAC,WAAwB,CAAC,IAAI,EAAE,CAAC;YACtE,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;YACtC,MAAM,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,gCAAgC,iBAAiB,EAAE,CAAC;YACpF,MAAM,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAsB,CAAC;YAEjE,mGAAmG;YACnG,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBAC5C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;oBAC3D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;iBAC1C;YACH,CAAC,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC,QAAQ,CAAC;SACxB;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,gBAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC3B;IACH,CAAC;;AA5CH,4EA6CC;AA5CwB,4CAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AACxD,yCAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,iDAAgB,GAAG,IAAI,CAAC;AACxB,uCAAM,GAAe;IAC1C,eAAe,EAAE;QACf,OAAO,EAAE;YACP,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;YACjC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE;SACxC;KACF;IACD,OAAO;QACL,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;SAChD;IACH,CAAC;CACF,CAAC;AAEwB,4CAAW,GAAgB;IACnD,WAAW,EAAE,eAAK,CAAC,KAAK,CAAC;QACvB,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC;KAC/D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commandDescription": "display record counts for the specified standard and custom objects\nUse this command to get an approximate count of the records in standard or custom objects in your org. These record counts are the same as the counts listed in the Storage Usage page in Setup. The record counts are approximate because they're calculated asynchronously and your org’s storage usage isn’t updated immediately.",
|
|
3
|
+
"examples": [
|
|
4
|
+
"sfdx force:limits:recordcounts:display -s Account,Contact,Lead,Opportunity",
|
|
5
|
+
"sfdx force:limits:recordcounts:display -s Account,Contact -u me@my.org"
|
|
6
|
+
],
|
|
7
|
+
"sobjecttypeFlagDescription": "comma-separated list of API names of standard or custom objects for which to display record counts"
|
|
8
|
+
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.
|
|
1
|
+
{"version":"1.2.3","commands":{"force:limits:api:display":{"id":"force:limits:api:display","description":"display current org’s limits\nWhen you execute this command in a project, it provides limit information for your default scratch org.","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-limits","pluginType":"core","aliases":[],"examples":["sfdx force:limits:api:display","sfdx force:limits:api:display -u me@my.org"],"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":[]},"force:limits:recordcounts:display":{"id":"force:limits:recordcounts:display","description":"display record counts for the specified standard and custom objects\nUse this command to get an approximate count of the records in standard or custom objects in your org. These record counts are the same as the counts listed in the Storage Usage page in Setup. The record counts are approximate because they're calculated asynchronously and your org’s storage usage isn’t updated immediately.","usage":"<%= command.id %> -s <array> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-limits","pluginType":"core","aliases":[],"examples":["sfdx force:limits:recordcounts:display -s Account,Contact,Lead,Opportunity","sfdx force:limits:recordcounts:display -s Account,Contact -u me@my.org"],"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"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"comma-separated list of API names of standard or custom objects for which to display record counts","required":true}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-limits",
|
|
3
3
|
"description": "commands to display api limits to your org",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/config": "^1",
|
|
9
|
-
"@salesforce/command": "^
|
|
10
|
-
"@salesforce/core": "^2.
|
|
9
|
+
"@salesforce/command": "^4.1.3",
|
|
10
|
+
"@salesforce/core": "^2.28.0",
|
|
11
11
|
"tslib": "^2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@oclif/dev-cli": "^1",
|
|
15
15
|
"@oclif/plugin-command-snapshot": "^2.0.0",
|
|
16
|
-
"@salesforce/cli-plugins-testkit": "^
|
|
17
|
-
"@salesforce/dev-config": "^2.1.
|
|
18
|
-
"@salesforce/dev-scripts": "0.9.
|
|
16
|
+
"@salesforce/cli-plugins-testkit": "^1.4.10",
|
|
17
|
+
"@salesforce/dev-config": "^2.1.2",
|
|
18
|
+
"@salesforce/dev-scripts": "^0.9.18",
|
|
19
19
|
"@salesforce/plugin-command-reference": "^1.3.0",
|
|
20
20
|
"@salesforce/prettier-config": "^0.0.2",
|
|
21
|
-
"@salesforce/ts-sinon": "1.3.
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
23
|
-
"@typescript-eslint/parser": "^4.
|
|
21
|
+
"@salesforce/ts-sinon": "1.3.21",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
23
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
24
24
|
"chai": "^4.2.0",
|
|
25
25
|
"cz-conventional-changelog": "^3.2.0",
|
|
26
|
-
"eslint": "^
|
|
27
|
-
"eslint-config-prettier": "^
|
|
28
|
-
"eslint-config-salesforce": "^0.1.
|
|
29
|
-
"eslint-config-salesforce-license": "^0.1.
|
|
30
|
-
"eslint-config-salesforce-typescript": "^0.2.
|
|
26
|
+
"eslint": "^7.27.0",
|
|
27
|
+
"eslint-config-prettier": "^8.3.0",
|
|
28
|
+
"eslint-config-salesforce": "^0.1.6",
|
|
29
|
+
"eslint-config-salesforce-license": "^0.1.6",
|
|
30
|
+
"eslint-config-salesforce-typescript": "^0.2.7",
|
|
31
31
|
"eslint-plugin-header": "^3.0.0",
|
|
32
|
-
"eslint-plugin-import": "
|
|
33
|
-
"eslint-plugin-jsdoc": "^
|
|
32
|
+
"eslint-plugin-import": "2.24.2",
|
|
33
|
+
"eslint-plugin-jsdoc": "^35.1.2",
|
|
34
34
|
"eslint-plugin-prettier": "^3.1.3",
|
|
35
|
-
"husky": "^4.
|
|
36
|
-
"lint-staged": "^
|
|
37
|
-
"mocha": "^8.
|
|
35
|
+
"husky": "^4.3.8",
|
|
36
|
+
"lint-staged": "^11.0.0",
|
|
37
|
+
"mocha": "^8.4.0",
|
|
38
38
|
"nyc": "^15.1.0",
|
|
39
|
-
"prettier": "^2.
|
|
40
|
-
"pretty-quick": "^
|
|
39
|
+
"prettier": "^2.4.1",
|
|
40
|
+
"pretty-quick": "^3.1.0",
|
|
41
41
|
"shx": "0.3.3",
|
|
42
|
-
"sinon": "
|
|
43
|
-
"ts-node": "^
|
|
42
|
+
"sinon": "10.0.0",
|
|
43
|
+
"ts-node": "^10.0.0",
|
|
44
44
|
"typescript": "^4.1.3"
|
|
45
45
|
},
|
|
46
46
|
"config": {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"access": "public"
|
|
122
122
|
},
|
|
123
123
|
"sfdx": {
|
|
124
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/
|
|
125
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/
|
|
124
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-limits/1.2.3.crt",
|
|
125
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-limits/1.2.3.sig"
|
|
126
126
|
}
|
|
127
127
|
}
|