rflib-plugin 0.21.0 → 0.21.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 +13 -2
- package/lib/commands/rflib/logging/apex/instrument.js +2 -2
- package/lib/commands/rflib/logging/apex/instrument.js.map +1 -1
- package/lib/commands/rflib/logging/aura/instrument.js +3 -3
- package/lib/commands/rflib/logging/aura/instrument.js.map +1 -1
- package/lib/commands/rflib/logging/flow/instrument.js +2 -2
- package/lib/commands/rflib/logging/flow/instrument.js.map +1 -1
- package/lib/commands/rflib/logging/lwc/instrument.js +2 -2
- package/lib/commands/rflib/logging/lwc/instrument.js.map +1 -1
- package/lib/shared/exclude.d.ts +8 -0
- package/lib/shared/exclude.js +17 -0
- package/lib/shared/exclude.js.map +1 -0
- package/messages/rflib.logging.flow.instrument.md +1 -1
- package/oclif.manifest.json +100 -100
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -93,14 +93,13 @@
|
|
|
93
93
|
"upgrade:packages:rflib"
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
|
-
"rflib:debug:
|
|
96
|
+
"rflib:debug:logarchives:get": {
|
|
97
97
|
"aliases": [],
|
|
98
98
|
"args": {},
|
|
99
|
-
"description": "Retrieves
|
|
99
|
+
"description": "Retrieves rflib_Logs_Archive__b records from the target org's big object store via the Salesforce REST API.\nEach log record contains log level, context, request ID, and full log messages in the format: [timestamp]|[LEVEL]|[TRACE_ID]|[CONTEXT]|[MESSAGE].\n\nRequires the RFLIB base package to be installed in the target org and the running user to be assigned the rflib_Ops_Center_Access permission set (or have equivalent read access to rflib_Logs_Archive__b).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
|
|
100
100
|
"examples": [
|
|
101
|
-
"Get
|
|
102
|
-
"Get
|
|
103
|
-
"Get events related to a specific record with a custom limit:\n$ sf rflib debug applicationevents get --target-org myOrg --related-record-id 0017000000XXXXXX --record-limit 50"
|
|
101
|
+
"Get log archives from the last 24 hours:\n$ sf rflib debug logarchives get --target-org myOrg",
|
|
102
|
+
"Get log archives for a specific date range:\n$ sf rflib debug logarchives get --target-org myOrg --start-date 2024-01-01T00:00:00Z --end-date 2024-01-02T00:00:00Z"
|
|
104
103
|
],
|
|
105
104
|
"flags": {
|
|
106
105
|
"json": {
|
|
@@ -129,47 +128,20 @@
|
|
|
129
128
|
"multiple": false,
|
|
130
129
|
"type": "option"
|
|
131
130
|
},
|
|
132
|
-
"event-name": {
|
|
133
|
-
"char": "e",
|
|
134
|
-
"description": "Filter Application Events by their Event_Name__c field. Use the % character as a wildcard for partial matches, for example \"order-%\".",
|
|
135
|
-
"name": "event-name",
|
|
136
|
-
"summary": "Filter by event name. Use % as a wildcard.",
|
|
137
|
-
"hasDynamicHelp": false,
|
|
138
|
-
"multiple": false,
|
|
139
|
-
"type": "option"
|
|
140
|
-
},
|
|
141
131
|
"start-date": {
|
|
142
132
|
"char": "s",
|
|
143
|
-
"description": "Only return
|
|
133
|
+
"description": "Only return log archives created on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z. Defaults to 24 hours ago if omitted.",
|
|
144
134
|
"name": "start-date",
|
|
145
|
-
"summary": "
|
|
135
|
+
"summary": "Start of the date range in ISO 8601 format. Defaults to 24 hours ago.",
|
|
146
136
|
"hasDynamicHelp": false,
|
|
147
137
|
"multiple": false,
|
|
148
138
|
"type": "option"
|
|
149
139
|
},
|
|
150
140
|
"end-date": {
|
|
151
141
|
"char": "d",
|
|
152
|
-
"description": "Only return
|
|
142
|
+
"description": "Only return log archives created on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z. Defaults to the current time if omitted.",
|
|
153
143
|
"name": "end-date",
|
|
154
|
-
"summary": "
|
|
155
|
-
"hasDynamicHelp": false,
|
|
156
|
-
"multiple": false,
|
|
157
|
-
"type": "option"
|
|
158
|
-
},
|
|
159
|
-
"related-record-id": {
|
|
160
|
-
"char": "r",
|
|
161
|
-
"description": "Only return events associated with this specific record ID.",
|
|
162
|
-
"name": "related-record-id",
|
|
163
|
-
"summary": "Filter by Related_Record_ID__c (exact match).",
|
|
164
|
-
"hasDynamicHelp": false,
|
|
165
|
-
"multiple": false,
|
|
166
|
-
"type": "option"
|
|
167
|
-
},
|
|
168
|
-
"record-limit": {
|
|
169
|
-
"char": "l",
|
|
170
|
-
"description": "Controls how many Application Event records are returned. Defaults to 200. Maximum allowed value is 2000.",
|
|
171
|
-
"name": "record-limit",
|
|
172
|
-
"summary": "Maximum number of records to return (default 200, max 2000).",
|
|
144
|
+
"summary": "End of the date range in ISO 8601 format. Defaults to now.",
|
|
173
145
|
"hasDynamicHelp": false,
|
|
174
146
|
"multiple": false,
|
|
175
147
|
"type": "option"
|
|
@@ -177,12 +149,12 @@
|
|
|
177
149
|
},
|
|
178
150
|
"hasDynamicHelp": true,
|
|
179
151
|
"hiddenAliases": [],
|
|
180
|
-
"id": "rflib:debug:
|
|
152
|
+
"id": "rflib:debug:logarchives:get",
|
|
181
153
|
"pluginAlias": "rflib-plugin",
|
|
182
154
|
"pluginName": "rflib-plugin",
|
|
183
155
|
"pluginType": "core",
|
|
184
156
|
"strict": true,
|
|
185
|
-
"summary": "Query RFLIB
|
|
157
|
+
"summary": "Query RFLIB log archives from a Salesforce org.",
|
|
186
158
|
"enableJsonFlag": true,
|
|
187
159
|
"isESM": true,
|
|
188
160
|
"relativePath": [
|
|
@@ -190,35 +162,35 @@
|
|
|
190
162
|
"commands",
|
|
191
163
|
"rflib",
|
|
192
164
|
"debug",
|
|
193
|
-
"
|
|
165
|
+
"logarchives",
|
|
194
166
|
"get.js"
|
|
195
167
|
],
|
|
196
168
|
"aliasPermutations": [],
|
|
197
169
|
"permutations": [
|
|
198
|
-
"rflib:debug:
|
|
199
|
-
"debug:rflib:
|
|
200
|
-
"debug:
|
|
201
|
-
"debug:
|
|
202
|
-
"rflib:
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"rflib:
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"rflib:debug:get:
|
|
211
|
-
"debug:rflib:get:
|
|
212
|
-
"debug:get:rflib:
|
|
213
|
-
"debug:get:
|
|
214
|
-
"rflib:get:debug:
|
|
215
|
-
"get:rflib:debug:
|
|
216
|
-
"get:debug:rflib:
|
|
217
|
-
"get:debug:
|
|
218
|
-
"rflib:get:
|
|
219
|
-
"get:rflib:
|
|
220
|
-
"get:
|
|
221
|
-
"get:
|
|
170
|
+
"rflib:debug:logarchives:get",
|
|
171
|
+
"debug:rflib:logarchives:get",
|
|
172
|
+
"debug:logarchives:rflib:get",
|
|
173
|
+
"debug:logarchives:get:rflib",
|
|
174
|
+
"rflib:logarchives:debug:get",
|
|
175
|
+
"logarchives:rflib:debug:get",
|
|
176
|
+
"logarchives:debug:rflib:get",
|
|
177
|
+
"logarchives:debug:get:rflib",
|
|
178
|
+
"rflib:logarchives:get:debug",
|
|
179
|
+
"logarchives:rflib:get:debug",
|
|
180
|
+
"logarchives:get:rflib:debug",
|
|
181
|
+
"logarchives:get:debug:rflib",
|
|
182
|
+
"rflib:debug:get:logarchives",
|
|
183
|
+
"debug:rflib:get:logarchives",
|
|
184
|
+
"debug:get:rflib:logarchives",
|
|
185
|
+
"debug:get:logarchives:rflib",
|
|
186
|
+
"rflib:get:debug:logarchives",
|
|
187
|
+
"get:rflib:debug:logarchives",
|
|
188
|
+
"get:debug:rflib:logarchives",
|
|
189
|
+
"get:debug:logarchives:rflib",
|
|
190
|
+
"rflib:get:logarchives:debug",
|
|
191
|
+
"get:rflib:logarchives:debug",
|
|
192
|
+
"get:logarchives:rflib:debug",
|
|
193
|
+
"get:logarchives:debug:rflib"
|
|
222
194
|
]
|
|
223
195
|
},
|
|
224
196
|
"rflib:debug:loggersettings:get": {
|
|
@@ -540,13 +512,14 @@
|
|
|
540
512
|
"get:userpermissions:debug:rflib"
|
|
541
513
|
]
|
|
542
514
|
},
|
|
543
|
-
"rflib:debug:
|
|
515
|
+
"rflib:debug:applicationevents:get": {
|
|
544
516
|
"aliases": [],
|
|
545
517
|
"args": {},
|
|
546
|
-
"description": "Retrieves
|
|
518
|
+
"description": "Retrieves rflib_Application_Event__c records from the target org via the Salesforce REST API.\nApplication Events are business-level events used to track feature adoption, user actions, and domain-specific milestones.\nResults are ordered by Occurred_On__c descending (most recent first).\n\nRequires the RFLIB base package to be installed in the target org and the running user to be assigned the rflib_Ops_Center_Access permission set (or have equivalent read access to rflib_Application_Event__c).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
|
|
547
519
|
"examples": [
|
|
548
|
-
"Get
|
|
549
|
-
"Get
|
|
520
|
+
"Get all application events from the default org:\n$ sf rflib debug applicationevents get --target-org myOrg",
|
|
521
|
+
"Get events filtered by name and date range:\n$ sf rflib debug applicationevents get --target-org myOrg --event-name \"order-%\" --start-date 2024-01-01T00:00:00Z",
|
|
522
|
+
"Get events related to a specific record with a custom limit:\n$ sf rflib debug applicationevents get --target-org myOrg --related-record-id 0017000000XXXXXX --record-limit 50"
|
|
550
523
|
],
|
|
551
524
|
"flags": {
|
|
552
525
|
"json": {
|
|
@@ -575,20 +548,47 @@
|
|
|
575
548
|
"multiple": false,
|
|
576
549
|
"type": "option"
|
|
577
550
|
},
|
|
551
|
+
"event-name": {
|
|
552
|
+
"char": "e",
|
|
553
|
+
"description": "Filter Application Events by their Event_Name__c field. Use the % character as a wildcard for partial matches, for example \"order-%\".",
|
|
554
|
+
"name": "event-name",
|
|
555
|
+
"summary": "Filter by event name. Use % as a wildcard.",
|
|
556
|
+
"hasDynamicHelp": false,
|
|
557
|
+
"multiple": false,
|
|
558
|
+
"type": "option"
|
|
559
|
+
},
|
|
578
560
|
"start-date": {
|
|
579
561
|
"char": "s",
|
|
580
|
-
"description": "Only return
|
|
562
|
+
"description": "Only return events where Occurred_On__c is on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z.",
|
|
581
563
|
"name": "start-date",
|
|
582
|
-
"summary": "
|
|
564
|
+
"summary": "Filter events on or after this ISO 8601 date.",
|
|
583
565
|
"hasDynamicHelp": false,
|
|
584
566
|
"multiple": false,
|
|
585
567
|
"type": "option"
|
|
586
568
|
},
|
|
587
569
|
"end-date": {
|
|
588
570
|
"char": "d",
|
|
589
|
-
"description": "Only return
|
|
571
|
+
"description": "Only return events where Occurred_On__c is on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z.",
|
|
590
572
|
"name": "end-date",
|
|
591
|
-
"summary": "
|
|
573
|
+
"summary": "Filter events on or before this ISO 8601 date.",
|
|
574
|
+
"hasDynamicHelp": false,
|
|
575
|
+
"multiple": false,
|
|
576
|
+
"type": "option"
|
|
577
|
+
},
|
|
578
|
+
"related-record-id": {
|
|
579
|
+
"char": "r",
|
|
580
|
+
"description": "Only return events associated with this specific record ID.",
|
|
581
|
+
"name": "related-record-id",
|
|
582
|
+
"summary": "Filter by Related_Record_ID__c (exact match).",
|
|
583
|
+
"hasDynamicHelp": false,
|
|
584
|
+
"multiple": false,
|
|
585
|
+
"type": "option"
|
|
586
|
+
},
|
|
587
|
+
"record-limit": {
|
|
588
|
+
"char": "l",
|
|
589
|
+
"description": "Controls how many Application Event records are returned. Defaults to 200. Maximum allowed value is 2000.",
|
|
590
|
+
"name": "record-limit",
|
|
591
|
+
"summary": "Maximum number of records to return (default 200, max 2000).",
|
|
592
592
|
"hasDynamicHelp": false,
|
|
593
593
|
"multiple": false,
|
|
594
594
|
"type": "option"
|
|
@@ -596,12 +596,12 @@
|
|
|
596
596
|
},
|
|
597
597
|
"hasDynamicHelp": true,
|
|
598
598
|
"hiddenAliases": [],
|
|
599
|
-
"id": "rflib:debug:
|
|
599
|
+
"id": "rflib:debug:applicationevents:get",
|
|
600
600
|
"pluginAlias": "rflib-plugin",
|
|
601
601
|
"pluginName": "rflib-plugin",
|
|
602
602
|
"pluginType": "core",
|
|
603
603
|
"strict": true,
|
|
604
|
-
"summary": "Query RFLIB
|
|
604
|
+
"summary": "Query RFLIB Application Events from a Salesforce org.",
|
|
605
605
|
"enableJsonFlag": true,
|
|
606
606
|
"isESM": true,
|
|
607
607
|
"relativePath": [
|
|
@@ -609,35 +609,35 @@
|
|
|
609
609
|
"commands",
|
|
610
610
|
"rflib",
|
|
611
611
|
"debug",
|
|
612
|
-
"
|
|
612
|
+
"applicationevents",
|
|
613
613
|
"get.js"
|
|
614
614
|
],
|
|
615
615
|
"aliasPermutations": [],
|
|
616
616
|
"permutations": [
|
|
617
|
-
"rflib:debug:
|
|
618
|
-
"debug:rflib:
|
|
619
|
-
"debug:
|
|
620
|
-
"debug:
|
|
621
|
-
"rflib:
|
|
622
|
-
"
|
|
623
|
-
"
|
|
624
|
-
"
|
|
625
|
-
"rflib:
|
|
626
|
-
"
|
|
627
|
-
"
|
|
628
|
-
"
|
|
629
|
-
"rflib:debug:get:
|
|
630
|
-
"debug:rflib:get:
|
|
631
|
-
"debug:get:rflib:
|
|
632
|
-
"debug:get:
|
|
633
|
-
"rflib:get:debug:
|
|
634
|
-
"get:rflib:debug:
|
|
635
|
-
"get:debug:rflib:
|
|
636
|
-
"get:debug:
|
|
637
|
-
"rflib:get:
|
|
638
|
-
"get:rflib:
|
|
639
|
-
"get:
|
|
640
|
-
"get:
|
|
617
|
+
"rflib:debug:applicationevents:get",
|
|
618
|
+
"debug:rflib:applicationevents:get",
|
|
619
|
+
"debug:applicationevents:rflib:get",
|
|
620
|
+
"debug:applicationevents:get:rflib",
|
|
621
|
+
"rflib:applicationevents:debug:get",
|
|
622
|
+
"applicationevents:rflib:debug:get",
|
|
623
|
+
"applicationevents:debug:rflib:get",
|
|
624
|
+
"applicationevents:debug:get:rflib",
|
|
625
|
+
"rflib:applicationevents:get:debug",
|
|
626
|
+
"applicationevents:rflib:get:debug",
|
|
627
|
+
"applicationevents:get:rflib:debug",
|
|
628
|
+
"applicationevents:get:debug:rflib",
|
|
629
|
+
"rflib:debug:get:applicationevents",
|
|
630
|
+
"debug:rflib:get:applicationevents",
|
|
631
|
+
"debug:get:rflib:applicationevents",
|
|
632
|
+
"debug:get:applicationevents:rflib",
|
|
633
|
+
"rflib:get:debug:applicationevents",
|
|
634
|
+
"get:rflib:debug:applicationevents",
|
|
635
|
+
"get:debug:rflib:applicationevents",
|
|
636
|
+
"get:debug:applicationevents:rflib",
|
|
637
|
+
"rflib:get:applicationevents:debug",
|
|
638
|
+
"get:rflib:applicationevents:debug",
|
|
639
|
+
"get:applicationevents:rflib:debug",
|
|
640
|
+
"get:applicationevents:debug:rflib"
|
|
641
641
|
]
|
|
642
642
|
},
|
|
643
643
|
"rflib:logging:apex:instrument": {
|
|
@@ -949,7 +949,7 @@
|
|
|
949
949
|
},
|
|
950
950
|
"target-org": {
|
|
951
951
|
"char": "o",
|
|
952
|
-
"description": "The Salesforce org the instrumented Flows will be deployed to. The command
|
|
952
|
+
"description": "The Salesforce org the instrumented Flows will be deployed to. The fault paths this command creates use the Terminate Transaction option of the RFLIB Log Message action, which was added in RFLIB 11.4.0, so Flows that use it fail to deploy to an org running an older RFLIB version. Before changing any files, the command runs a single read-only Tooling API query for the packages installed in this org. If RFLIB 11.4.0 or later is installed, fault paths are instrumented; if an older version is installed, or RFLIB is not installed as a package, they are skipped with a warning. Nothing in the org is changed. The flag is required even with --skip-fault-paths, although the org is not queried in that case.",
|
|
953
953
|
"name": "target-org",
|
|
954
954
|
"noCacheDefault": true,
|
|
955
955
|
"required": true,
|
|
@@ -1202,5 +1202,5 @@
|
|
|
1202
1202
|
]
|
|
1203
1203
|
}
|
|
1204
1204
|
},
|
|
1205
|
-
"version": "0.21.
|
|
1205
|
+
"version": "0.21.1"
|
|
1206
1206
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rflib-plugin",
|
|
3
3
|
"description": "Utility commands to help with the adoption of the RFLIB open-source library for Salesforce.",
|
|
4
|
-
"version": "0.21.
|
|
4
|
+
"version": "0.21.1",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4.14.0",
|
|
7
7
|
"@salesforce/core": "^8.32.6",
|