@simplysf/simply-apex 1.5.0 → 1.6.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
CHANGED
|
@@ -58,7 +58,7 @@ FLAG DESCRIPTIONS
|
|
|
58
58
|
The path to the local .apex file containing the anonymous Apex code to execute.
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
_See code: [lib/commands/simply/apex/execute.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
61
|
+
_See code: [lib/commands/simply/apex/execute.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.4.0/packages/simply-apex/lib/commands/simply/apex/execute.js)_
|
|
62
62
|
|
|
63
63
|
## `sf simply apex logs purge`
|
|
64
64
|
|
|
@@ -114,7 +114,7 @@ FLAG DESCRIPTIONS
|
|
|
114
114
|
elapses, then throws.
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
_See code: [lib/commands/simply/apex/logs/purge.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
117
|
+
_See code: [lib/commands/simply/apex/logs/purge.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.4.0/packages/simply-apex/lib/commands/simply/apex/logs/purge.js)_
|
|
118
118
|
|
|
119
119
|
## `sf simply apex trace setup`
|
|
120
120
|
|
|
@@ -122,14 +122,17 @@ Configure a debug log trace flag for the current user, or another user.
|
|
|
122
122
|
|
|
123
123
|
```
|
|
124
124
|
USAGE
|
|
125
|
-
$ sf simply apex trace setup -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [--on-behalf-of
|
|
126
|
-
<value>]
|
|
125
|
+
$ sf simply apex trace setup -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [--on-behalf-of <value>]
|
|
126
|
+
[--log-level <value>] [--start-date <value>] [--end-date <value>]
|
|
127
127
|
|
|
128
128
|
FLAGS
|
|
129
129
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
130
130
|
configuration variable is already set.
|
|
131
131
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
132
|
+
--end-date=<value> Expiration date/time of the trace flag, as an ISO 8601 date-time.
|
|
133
|
+
--log-level=<value> Developer name of an existing debug level to use for the trace flag.
|
|
132
134
|
--on-behalf-of=<value> Configure the trace flag for another user, identified by a "Field:Value" pair.
|
|
135
|
+
--start-date=<value> Start date/time of the trace flag, as an ISO 8601 date-time.
|
|
133
136
|
|
|
134
137
|
GLOBAL FLAGS
|
|
135
138
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -138,9 +141,10 @@ GLOBAL FLAGS
|
|
|
138
141
|
DESCRIPTION
|
|
139
142
|
Configure a debug log trace flag for the current user, or another user.
|
|
140
143
|
|
|
141
|
-
Creates or updates a
|
|
142
|
-
level suitable for the Apex Replay Debugger. Use --on-behalf-of to
|
|
143
|
-
instead
|
|
144
|
+
Creates or updates a DEVELOPER_LOG trace flag for the target user, using the FINEST/FINER "ReplayDebuggerLevels" debug
|
|
145
|
+
level suitable for the Apex Replay Debugger and running for 24 hours starting now, by default. Use --on-behalf-of to
|
|
146
|
+
configure the trace flag for a different user instead; --log-level, --start-date, and --end-date override the other
|
|
147
|
+
defaults.
|
|
144
148
|
|
|
145
149
|
EXAMPLES
|
|
146
150
|
$ sf simply apex trace setup --target-org myOrg
|
|
@@ -149,13 +153,28 @@ EXAMPLES
|
|
|
149
153
|
|
|
150
154
|
$ sf simply apex trace setup --target-org myOrg --on-behalf-of FederationIdentifier:123456
|
|
151
155
|
|
|
156
|
+
$ sf simply apex trace setup --target-org myOrg --log-level MyCustomDebugLevel --start-date 2026-08-18T09:00:00Z --end-date 2026-08-19T09:00:00Z
|
|
157
|
+
|
|
152
158
|
FLAG DESCRIPTIONS
|
|
159
|
+
--end-date=<value> Expiration date/time of the trace flag, as an ISO 8601 date-time.
|
|
160
|
+
|
|
161
|
+
Defaults to 24 hours after the start date/time.
|
|
162
|
+
|
|
163
|
+
--log-level=<value> Developer name of an existing debug level to use for the trace flag.
|
|
164
|
+
|
|
165
|
+
Must already exist in the org; it's looked up but never created or modified. Defaults to the "ReplayDebuggerLevels"
|
|
166
|
+
debug level, which is created automatically if it doesn't exist.
|
|
167
|
+
|
|
153
168
|
--on-behalf-of=<value> Configure the trace flag for another user, identified by a "Field:Value" pair.
|
|
154
169
|
|
|
155
170
|
Any unique User field can be used, for example "Username:someuser@example.com" or "FederationIdentifier:123456".
|
|
171
|
+
|
|
172
|
+
--start-date=<value> Start date/time of the trace flag, as an ISO 8601 date-time.
|
|
173
|
+
|
|
174
|
+
Defaults to the current date/time.
|
|
156
175
|
```
|
|
157
176
|
|
|
158
|
-
_See code: [lib/commands/simply/apex/trace/setup.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
177
|
+
_See code: [lib/commands/simply/apex/trace/setup.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.4.0/packages/simply-apex/lib/commands/simply/apex/trace/setup.js)_
|
|
159
178
|
|
|
160
179
|
## `sf simply apex trace silence`
|
|
161
180
|
|
|
@@ -164,14 +183,17 @@ Silence debug logs for specific Apex classes.
|
|
|
164
183
|
```
|
|
165
184
|
USAGE
|
|
166
185
|
$ sf simply apex trace silence -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-c <value> | --classes-file
|
|
167
|
-
<value>]
|
|
186
|
+
<value>] [--fflib] [--at4dx] [--force-di]
|
|
168
187
|
|
|
169
188
|
FLAGS
|
|
170
189
|
-c, --classes=<value> Comma-separated Apex class names
|
|
171
190
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
172
191
|
configuration variable is already set.
|
|
173
192
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
193
|
+
--at4dx Silence at4dx base classes
|
|
174
194
|
--classes-file=<value> Path to a JSON file listing classes to silence
|
|
195
|
+
--fflib Silence fflib base classes
|
|
196
|
+
--force-di Silence force-di base classes
|
|
175
197
|
|
|
176
198
|
GLOBAL FLAGS
|
|
177
199
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -180,26 +202,43 @@ GLOBAL FLAGS
|
|
|
180
202
|
DESCRIPTION
|
|
181
203
|
Silence debug logs for specific Apex classes.
|
|
182
204
|
|
|
183
|
-
Creates a 24-hour CLASS_TRACING trace flag with a fully suppressed (NONE) debug level for each specified
|
|
184
|
-
preventing those classes from generating debug log output.
|
|
205
|
+
Creates or updates a 24-hour CLASS_TRACING trace flag with a fully suppressed (NONE) debug level for each specified
|
|
206
|
+
Apex class, preventing those classes from generating debug log output. If a class already has a trace flag, its
|
|
207
|
+
expiration is extended instead of creating a duplicate.
|
|
185
208
|
|
|
186
209
|
EXAMPLES
|
|
187
210
|
$ sf simply apex trace silence --target-org myOrg --classes NoisyClass,ChattyTrigger
|
|
188
211
|
|
|
189
212
|
$ sf simply apex trace silence --target-org myOrg --classes-file classesToSilence.json
|
|
190
213
|
|
|
214
|
+
$ sf simply apex trace silence --target-org myOrg --fflib --at4dx --force-di
|
|
215
|
+
|
|
216
|
+
$ sf simply apex trace silence --target-org myOrg --classes NoisyClass --fflib
|
|
217
|
+
|
|
191
218
|
FLAG DESCRIPTIONS
|
|
192
219
|
-c, --classes=<value> Comma-separated Apex class names
|
|
193
220
|
|
|
194
221
|
A comma-separated list of Apex class names to silence.
|
|
195
222
|
|
|
223
|
+
--at4dx Silence at4dx base classes
|
|
224
|
+
|
|
225
|
+
Adds ApplicationSObjectDomain to the classes to silence.
|
|
226
|
+
|
|
196
227
|
--classes-file=<value> Path to a JSON file listing classes to silence
|
|
197
228
|
|
|
198
229
|
The path to a JSON file with the shape { "classes": ["ClassOne", "ClassTwo"] } listing the Apex class names to
|
|
199
230
|
silence.
|
|
231
|
+
|
|
232
|
+
--fflib Silence fflib base classes
|
|
233
|
+
|
|
234
|
+
Adds fflib_SObjectDescribe and fflib_SObjectDomain to the classes to silence.
|
|
235
|
+
|
|
236
|
+
--force-di Silence force-di base classes
|
|
237
|
+
|
|
238
|
+
Adds di_Binding, di_Module, di_PlatformCache, and di_Injector to the classes to silence.
|
|
200
239
|
```
|
|
201
240
|
|
|
202
|
-
_See code: [lib/commands/simply/apex/trace/silence.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
241
|
+
_See code: [lib/commands/simply/apex/trace/silence.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.4.0/packages/simply-apex/lib/commands/simply/apex/trace/silence.js)_
|
|
203
242
|
<!-- commandsstop -->
|
|
204
243
|
|
|
205
244
|
## License
|
|
@@ -18,6 +18,9 @@ export default class ApexTraceSilence extends SfCommand<ApexTraceSilenceResult[]
|
|
|
18
18
|
static readonly flags: {
|
|
19
19
|
classes: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
20
|
'classes-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
fflib: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
|
+
at4dx: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
|
+
'force-di': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
21
24
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined>;
|
|
22
25
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
23
26
|
'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -24,31 +24,49 @@ const messages = Messages.loadMessages('@simplysf/simply-apex', 'simply.apex.tra
|
|
|
24
24
|
const DEBUG_LEVEL_NAME = 'Silence';
|
|
25
25
|
/** How long a configured trace flag stays active before expiring, in milliseconds (24 hours). */
|
|
26
26
|
const TRACE_DURATION_MS = 24 * 60 * 60 * 1000;
|
|
27
|
+
/** Classes silenced by the `--fflib` flag. */
|
|
28
|
+
const FFLIB_CLASSES = ['fflib_SObjectDescribe', 'fflib_SObjectDomain'];
|
|
29
|
+
/** Classes silenced by the `--at4dx` flag. */
|
|
30
|
+
const AT4DX_CLASSES = ['ApplicationSObjectDomain'];
|
|
31
|
+
/** Classes silenced by the `--force-di` flag. */
|
|
32
|
+
const FORCE_DI_CLASSES = ['di_Binding', 'di_Module', 'di_PlatformCache', 'di_Injector'];
|
|
27
33
|
/**
|
|
28
|
-
* Resolve the list of Apex class names to silence from
|
|
29
|
-
*
|
|
30
|
-
*
|
|
34
|
+
* Resolve the list of Apex class names to silence from the `--classes` flag (a comma-separated
|
|
35
|
+
* list), the `--classes-file` flag (a JSON config file matching {@link ClassesToSilenceSchema}),
|
|
36
|
+
* and the `--fflib`, `--at4dx`, and `--force-di` preset flags. All sources are combined and
|
|
37
|
+
* deduplicated.
|
|
31
38
|
*
|
|
32
39
|
* @param classesFlag - The raw `--classes` flag value, if provided.
|
|
33
40
|
* @param classesFileFlag - The raw `--classes-file` flag value, if provided.
|
|
34
|
-
* @
|
|
41
|
+
* @param presetFlags - Which of the built-in class presets were requested.
|
|
42
|
+
* @returns The resolved, trimmed, deduplicated list of Apex class names.
|
|
35
43
|
* @throws {SfError} If `--classes-file` was provided but fails schema validation.
|
|
36
44
|
*/
|
|
37
|
-
function resolveClasses(classesFlag, classesFileFlag) {
|
|
45
|
+
function resolveClasses(classesFlag, classesFileFlag, presetFlags) {
|
|
46
|
+
const classes = [];
|
|
38
47
|
if (classesFlag) {
|
|
39
|
-
|
|
48
|
+
classes.push(...classesFlag
|
|
40
49
|
.split(',')
|
|
41
50
|
.map((className) => className.trim())
|
|
42
|
-
.filter(Boolean);
|
|
51
|
+
.filter(Boolean));
|
|
43
52
|
}
|
|
44
53
|
if (classesFileFlag) {
|
|
45
54
|
const parsed = loadJsonConfigSync(classesFileFlag, ClassesToSilenceSchema);
|
|
46
55
|
if (!parsed.success) {
|
|
47
56
|
throw messages.createError('error.invalidClassesFile', [parsed.message]);
|
|
48
57
|
}
|
|
49
|
-
|
|
58
|
+
classes.push(...parsed.data.classes);
|
|
50
59
|
}
|
|
51
|
-
|
|
60
|
+
if (presetFlags.fflib) {
|
|
61
|
+
classes.push(...FFLIB_CLASSES);
|
|
62
|
+
}
|
|
63
|
+
if (presetFlags.at4dx) {
|
|
64
|
+
classes.push(...AT4DX_CLASSES);
|
|
65
|
+
}
|
|
66
|
+
if (presetFlags.forceDi) {
|
|
67
|
+
classes.push(...FORCE_DI_CLASSES);
|
|
68
|
+
}
|
|
69
|
+
return [...new Set(classes)];
|
|
52
70
|
}
|
|
53
71
|
/**
|
|
54
72
|
* Creates or updates a 24-hour CLASS_TRACING trace flag with a fully suppressed (NONE) debug
|
|
@@ -75,6 +93,21 @@ export default class ApexTraceSilence extends SfCommand {
|
|
|
75
93
|
exists: true,
|
|
76
94
|
exclusive: ['classes'],
|
|
77
95
|
}),
|
|
96
|
+
fflib: Flags.boolean({
|
|
97
|
+
summary: messages.getMessage('flags.fflib.summary'),
|
|
98
|
+
description: messages.getMessage('flags.fflib.description'),
|
|
99
|
+
default: false,
|
|
100
|
+
}),
|
|
101
|
+
at4dx: Flags.boolean({
|
|
102
|
+
summary: messages.getMessage('flags.at4dx.summary'),
|
|
103
|
+
description: messages.getMessage('flags.at4dx.description'),
|
|
104
|
+
default: false,
|
|
105
|
+
}),
|
|
106
|
+
'force-di': Flags.boolean({
|
|
107
|
+
summary: messages.getMessage('flags.force-di.summary'),
|
|
108
|
+
description: messages.getMessage('flags.force-di.description'),
|
|
109
|
+
default: false,
|
|
110
|
+
}),
|
|
78
111
|
};
|
|
79
112
|
/**
|
|
80
113
|
* @returns The trace flag created or updated for each Apex class that was found and
|
|
@@ -84,7 +117,11 @@ export default class ApexTraceSilence extends SfCommand {
|
|
|
84
117
|
async run() {
|
|
85
118
|
const { flags } = await this.parse(ApexTraceSilence);
|
|
86
119
|
const targetOrgConnection = requireConnection(flags);
|
|
87
|
-
const classes = resolveClasses(flags.classes, flags['classes-file']
|
|
120
|
+
const classes = resolveClasses(flags.classes, flags['classes-file'], {
|
|
121
|
+
fflib: flags.fflib,
|
|
122
|
+
at4dx: flags.at4dx,
|
|
123
|
+
forceDi: flags['force-di'],
|
|
124
|
+
});
|
|
88
125
|
if (classes.length === 0) {
|
|
89
126
|
throw messages.createError('error.noClassesSpecified');
|
|
90
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"silence.js","sourceRoot":"","sources":["../../../../../src/commands/simply/apex/trace/silence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAEzF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,uBAAuB,EAAE,2BAA2B,CAAC,CAAC;AAE7F,kGAAkG;AAClG,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,iGAAiG;AACjG,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"silence.js","sourceRoot":"","sources":["../../../../../src/commands/simply/apex/trace/silence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AA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EAAE,UAAU,EAAE;gBACpC,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,eAAe,EAAE;aAC9C;SACF,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACjB,CAAC"}
|
|
@@ -22,15 +22,43 @@ Path to a JSON file listing classes to silence
|
|
|
22
22
|
|
|
23
23
|
The path to a JSON file with the shape { "classes": ["ClassOne", "ClassTwo"] } listing the Apex class names to silence.
|
|
24
24
|
|
|
25
|
+
# flags.fflib.summary
|
|
26
|
+
|
|
27
|
+
Silence fflib base classes
|
|
28
|
+
|
|
29
|
+
# flags.fflib.description
|
|
30
|
+
|
|
31
|
+
Adds fflib_SObjectDescribe and fflib_SObjectDomain to the classes to silence.
|
|
32
|
+
|
|
33
|
+
# flags.at4dx.summary
|
|
34
|
+
|
|
35
|
+
Silence at4dx base classes
|
|
36
|
+
|
|
37
|
+
# flags.at4dx.description
|
|
38
|
+
|
|
39
|
+
Adds ApplicationSObjectDomain to the classes to silence.
|
|
40
|
+
|
|
41
|
+
# flags.force-di.summary
|
|
42
|
+
|
|
43
|
+
Silence force-di base classes
|
|
44
|
+
|
|
45
|
+
# flags.force-di.description
|
|
46
|
+
|
|
47
|
+
Adds di_Binding, di_Module, di_PlatformCache, and di_Injector to the classes to silence.
|
|
48
|
+
|
|
25
49
|
# examples
|
|
26
50
|
|
|
27
51
|
- <%= config.bin %> <%= command.id %> --target-org myOrg --classes NoisyClass,ChattyTrigger
|
|
28
52
|
|
|
29
53
|
- <%= config.bin %> <%= command.id %> --target-org myOrg --classes-file classesToSilence.json
|
|
30
54
|
|
|
55
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --fflib --at4dx --force-di
|
|
56
|
+
|
|
57
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --classes NoisyClass --fflib
|
|
58
|
+
|
|
31
59
|
# error.noClassesSpecified
|
|
32
60
|
|
|
33
|
-
No Apex classes specified to silence. Use --classes or --
|
|
61
|
+
No Apex classes specified to silence. Use --classes, --classes-file, --fflib, --at4dx, and/or --force-di.
|
|
34
62
|
|
|
35
63
|
# error.invalidClassesFile
|
|
36
64
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-apex",
|
|
3
3
|
"description": "Utilities for working with Apex",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-node",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-node/issues",
|
|
@@ -217,5 +217,5 @@
|
|
|
217
217
|
"output": []
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
-
"gitHead": "
|
|
220
|
+
"gitHead": "946ace43dae7a2b8add68495dbbd9769c4bebad1"
|
|
221
221
|
}
|