@salesforce/plugin-templates 56.4.6 → 56.5.0

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
@@ -119,8 +119,6 @@ Congrats, you are debugging!
119
119
  <!-- commands -->
120
120
 
121
121
  - [`sf analytics generate template`](#sf-analytics-generate-template)
122
- - [`sf apex generate class`](#sf-apex-generate-class)
123
- - [`sf apex generate trigger`](#sf-apex-generate-trigger)
124
122
  - [`sf lightning generate app`](#sf-lightning-generate-app)
125
123
  - [`sf lightning generate component`](#sf-lightning-generate-component)
126
124
  - [`sf lightning generate event`](#sf-lightning-generate-event)
@@ -128,6 +126,8 @@ Congrats, you are debugging!
128
126
  - [`sf lightning generate test`](#sf-lightning-generate-test)
129
127
  - [`sf project generate`](#sf-project-generate)
130
128
  - [`sf static-resource generate`](#sf-static-resource-generate)
129
+ - [`sf template generate apex class`](#sf-template-generate-apex-class)
130
+ - [`sf template generate apex trigger`](#sf-template-generate-apex-trigger)
131
131
  - [`sf visualforce generate component`](#sf-visualforce-generate-component)
132
132
  - [`sf visualforce generate page`](#sf-visualforce-generate-page)
133
133
 
@@ -171,135 +171,7 @@ FLAG DESCRIPTIONS
171
171
  directory.
172
172
  ```
173
173
 
174
- _See code: [src/commands/analytics/generate/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/analytics/generate/template.ts)_
175
-
176
- ## `sf apex generate class`
177
-
178
- Generate an Apex class.
179
-
180
- ```
181
- USAGE
182
- $ sf apex generate class -n <value> [--json] [--flags-dir <value>] [-t
183
- ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService] [-d <value>] [--api-version <value>]
184
-
185
- FLAGS
186
- -d, --output-dir=<value> [default: .] Directory for saving the created files.
187
- -n, --name=<value> (required) Name of the generated Apex class.
188
- -t, --template=<option> [default: DefaultApexClass] Template to use for file creation.
189
- <options: ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService>
190
- --api-version=<value> Override the api version used for api requests made by this command
191
-
192
- GLOBAL FLAGS
193
- --flags-dir=<value> Import flag values from a directory.
194
- --json Format output as json.
195
-
196
- DESCRIPTION
197
- Generate an Apex class.
198
-
199
- Generates the Apex *.cls file and associated metadata file. These files must be contained in a parent directory called
200
- "classes" in your package directory. Either run this command from an existing directory of this name, or use the
201
- --output-dir flag to generate one or point to an existing one.
202
-
203
- ALIASES
204
- $ sf force apex class create
205
-
206
- EXAMPLES
207
- Generate two metadata files associated with the MyClass Apex class (MyClass.cls and MyClass.cls-meta.xml) in the
208
- current directory:
209
-
210
- $ sf apex generate class --name MyClass
211
-
212
- Similar to previous example, but generates the files in the "force-app/main/default/classes" directory:
213
-
214
- $ sf apex generate class --name MyClass --output-dir force-app/main/default/classes
215
-
216
- FLAG DESCRIPTIONS
217
- -d, --output-dir=<value> Directory for saving the created files.
218
-
219
- The location can be an absolute path or relative to the current working directory. The default is the current
220
- directory.
221
-
222
- -n, --name=<value> Name of the generated Apex class.
223
-
224
- The name can be up to 40 characters and must start with a letter.
225
-
226
- -t, --template=ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService
227
-
228
- Template to use for file creation.
229
-
230
- Supplied parameter values or default values are filled into a copy of the template.
231
- ```
232
-
233
- _See code: [src/commands/apex/generate/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/apex/generate/class.ts)_
234
-
235
- ## `sf apex generate trigger`
236
-
237
- Generate an Apex trigger.
238
-
239
- ```
240
- USAGE
241
- $ sf apex generate trigger -n <value> [--json] [--flags-dir <value>] [-t ApexTrigger] [-d <value>] [--api-version
242
- <value>] [-s <value>] [-e before insert|before update|before delete|after insert|after update|after delete|after
243
- undelete...]
244
-
245
- FLAGS
246
- -d, --output-dir=<value> [default: .] Directory for saving the created files.
247
- -e, --event=<option>... [default: before insert] Events that fire the trigger.
248
- <options: before insert|before update|before delete|after insert|after update|after
249
- delete|after undelete>
250
- -n, --name=<value> (required) Name of the generated Apex trigger
251
- -s, --sobject=<value> [default: SOBJECT] Salesforce object to generate a trigger on.
252
- -t, --template=<option> [default: ApexTrigger] Template to use for file creation.
253
- <options: ApexTrigger>
254
- --api-version=<value> Override the api version used for api requests made by this command
255
-
256
- GLOBAL FLAGS
257
- --flags-dir=<value> Import flag values from a directory.
258
- --json Format output as json.
259
-
260
- DESCRIPTION
261
- Generate an Apex trigger.
262
-
263
- Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent
264
- directory called "triggers" in your package directory. Either run this command from an existing directory of this
265
- name, or use the --output-dir flag to generate one or point to an existing one.
266
-
267
- If you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with
268
- the Salesforce object you want to generate a trigger for. If you don't specify --event, "before insert" is used.
269
-
270
- ALIASES
271
- $ sf force apex trigger create
272
-
273
- EXAMPLES
274
- Generate two files associated with the MyTrigger Apex trigger (MyTrigger.trigger and MyTrigger.trigger-meta.xml) in
275
- the current directory:
276
-
277
- $ sf apex generate trigger --name MyTrigger
278
-
279
- Similar to the previous example, but generate the files in the "force-app/main/default/triggers" directory:
280
-
281
- $ sf apex generate trigger --name MyTrigger --output-dir force-app/main/default/triggers
282
-
283
- Generate files for a trigger that fires on the Account object before and after an insert:
284
-
285
- $ sf apex generate trigger --name MyTrigger --sobject Account --event "before insert,after insert"
286
-
287
- FLAG DESCRIPTIONS
288
- -d, --output-dir=<value> Directory for saving the created files.
289
-
290
- The location can be an absolute path or relative to the current working directory. The default is the current
291
- directory.
292
-
293
- -n, --name=<value> Name of the generated Apex trigger
294
-
295
- The name can be up to 40 characters and must start with a letter.
296
-
297
- -t, --template=ApexTrigger Template to use for file creation.
298
-
299
- Supplied parameter values or default values are filled into a copy of the template.
300
- ```
301
-
302
- _See code: [src/commands/apex/generate/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/apex/generate/trigger.ts)_
174
+ _See code: [src/commands/analytics/generate/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/analytics/generate/template.ts)_
303
175
 
304
176
  ## `sf lightning generate app`
305
177
 
@@ -354,7 +226,7 @@ FLAG DESCRIPTIONS
354
226
  Supplied parameter values or default values are filled into a copy of the template.
355
227
  ```
356
228
 
357
- _See code: [src/commands/lightning/generate/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/lightning/generate/app.ts)_
229
+ _See code: [src/commands/lightning/generate/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/lightning/generate/app.ts)_
358
230
 
359
231
  ## `sf lightning generate component`
360
232
 
@@ -423,7 +295,7 @@ FLAG DESCRIPTIONS
423
295
  Supplied parameter values or default values are filled into a copy of the template.
424
296
  ```
425
297
 
426
- _See code: [src/commands/lightning/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/lightning/generate/component.ts)_
298
+ _See code: [src/commands/lightning/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/lightning/generate/component.ts)_
427
299
 
428
300
  ## `sf lightning generate event`
429
301
 
@@ -478,7 +350,7 @@ FLAG DESCRIPTIONS
478
350
  Supplied parameter values or default values are filled into a copy of the template.
479
351
  ```
480
352
 
481
- _See code: [src/commands/lightning/generate/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/lightning/generate/event.ts)_
353
+ _See code: [src/commands/lightning/generate/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/lightning/generate/event.ts)_
482
354
 
483
355
  ## `sf lightning generate interface`
484
356
 
@@ -533,7 +405,7 @@ FLAG DESCRIPTIONS
533
405
  Supplied parameter values or default values are filled into a copy of the template.
534
406
  ```
535
407
 
536
- _See code: [src/commands/lightning/generate/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/lightning/generate/interface.ts)_
408
+ _See code: [src/commands/lightning/generate/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/lightning/generate/interface.ts)_
537
409
 
538
410
  ## `sf lightning generate test`
539
411
 
@@ -588,7 +460,7 @@ FLAG DESCRIPTIONS
588
460
  Supplied parameter values or default values are filled into a copy of the template.
589
461
  ```
590
462
 
591
- _See code: [src/commands/lightning/generate/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/lightning/generate/test.ts)_
463
+ _See code: [src/commands/lightning/generate/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/lightning/generate/test.ts)_
592
464
 
593
465
  ## `sf project generate`
594
466
 
@@ -693,7 +565,7 @@ FLAG DESCRIPTIONS
693
565
  Override the api version used for api requests made by this command
694
566
  ```
695
567
 
696
- _See code: [src/commands/project/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/project/generate.ts)_
568
+ _See code: [src/commands/project/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/project/generate.ts)_
697
569
 
698
570
  ## `sf static-resource generate`
699
571
 
@@ -755,7 +627,137 @@ FLAG DESCRIPTIONS
755
627
  etc.
756
628
  ```
757
629
 
758
- _See code: [src/commands/static-resource/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/static-resource/generate.ts)_
630
+ _See code: [src/commands/static-resource/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/static-resource/generate.ts)_
631
+
632
+ ## `sf template generate apex class`
633
+
634
+ Generate an Apex class.
635
+
636
+ ```
637
+ USAGE
638
+ $ sf template generate apex class -n <value> [--json] [--flags-dir <value>] [-t
639
+ ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService] [-d <value>] [--api-version <value>]
640
+
641
+ FLAGS
642
+ -d, --output-dir=<value> [default: .] Directory for saving the created files.
643
+ -n, --name=<value> (required) Name of the generated Apex class.
644
+ -t, --template=<option> [default: DefaultApexClass] Template to use for file creation.
645
+ <options: ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService>
646
+ --api-version=<value> Override the api version used for api requests made by this command
647
+
648
+ GLOBAL FLAGS
649
+ --flags-dir=<value> Import flag values from a directory.
650
+ --json Format output as json.
651
+
652
+ DESCRIPTION
653
+ Generate an Apex class.
654
+
655
+ Generates the Apex *.cls file and associated metadata file. These files must be contained in a parent directory called
656
+ "classes" in your package directory. Either run this command from an existing directory of this name, or use the
657
+ --output-dir flag to generate one or point to an existing one.
658
+
659
+ ALIASES
660
+ $ sf force apex class create
661
+ $ sf apex generate class
662
+
663
+ EXAMPLES
664
+ Generate two metadata files associated with the MyClass Apex class (MyClass.cls and MyClass.cls-meta.xml) in the
665
+ current directory:
666
+
667
+ $ sf template generate apex class --name MyClass
668
+
669
+ Similar to previous example, but generates the files in the "force-app/main/default/classes" directory:
670
+
671
+ $ sf template generate apex class --name MyClass --output-dir force-app/main/default/classes
672
+
673
+ FLAG DESCRIPTIONS
674
+ -d, --output-dir=<value> Directory for saving the created files.
675
+
676
+ The location can be an absolute path or relative to the current working directory. The default is the current
677
+ directory.
678
+
679
+ -n, --name=<value> Name of the generated Apex class.
680
+
681
+ The name can be up to 40 characters and must start with a letter.
682
+
683
+ -t, --template=ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService
684
+
685
+ Template to use for file creation.
686
+
687
+ Supplied parameter values or default values are filled into a copy of the template.
688
+ ```
689
+
690
+ _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/template/generate/apex/class.ts)_
691
+
692
+ ## `sf template generate apex trigger`
693
+
694
+ Generate an Apex trigger.
695
+
696
+ ```
697
+ USAGE
698
+ $ sf template generate apex trigger -n <value> [--json] [--flags-dir <value>] [-t ApexTrigger] [-d <value>] [--api-version
699
+ <value>] [-s <value>] [-e before insert|before update|before delete|after insert|after update|after delete|after
700
+ undelete...]
701
+
702
+ FLAGS
703
+ -d, --output-dir=<value> [default: .] Directory for saving the created files.
704
+ -e, --event=<option>... [default: before insert] Events that fire the trigger.
705
+ <options: before insert|before update|before delete|after insert|after update|after
706
+ delete|after undelete>
707
+ -n, --name=<value> (required) Name of the generated Apex trigger
708
+ -s, --sobject=<value> [default: SOBJECT] Salesforce object to generate a trigger on.
709
+ -t, --template=<option> [default: ApexTrigger] Template to use for file creation.
710
+ <options: ApexTrigger>
711
+ --api-version=<value> Override the api version used for api requests made by this command
712
+
713
+ GLOBAL FLAGS
714
+ --flags-dir=<value> Import flag values from a directory.
715
+ --json Format output as json.
716
+
717
+ DESCRIPTION
718
+ Generate an Apex trigger.
719
+
720
+ Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent
721
+ directory called "triggers" in your package directory. Either run this command from an existing directory of this
722
+ name, or use the --output-dir flag to generate one or point to an existing one.
723
+
724
+ If you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with
725
+ the Salesforce object you want to generate a trigger for. If you don't specify --event, "before insert" is used.
726
+
727
+ ALIASES
728
+ $ sf force apex trigger create
729
+ $ sf apex generate trigger
730
+
731
+ EXAMPLES
732
+ Generate two files associated with the MyTrigger Apex trigger (MyTrigger.trigger and MyTrigger.trigger-meta.xml) in
733
+ the current directory:
734
+
735
+ $ sf template generate apex trigger --name MyTrigger
736
+
737
+ Similar to the previous example, but generate the files in the "force-app/main/default/triggers" directory:
738
+
739
+ $ sf template generate apex trigger --name MyTrigger --output-dir force-app/main/default/triggers
740
+
741
+ Generate files for a trigger that fires on the Account object before and after an insert:
742
+
743
+ $ sf template generate apex trigger --name MyTrigger --sobject Account --event "before insert,after insert"
744
+
745
+ FLAG DESCRIPTIONS
746
+ -d, --output-dir=<value> Directory for saving the created files.
747
+
748
+ The location can be an absolute path or relative to the current working directory. The default is the current
749
+ directory.
750
+
751
+ -n, --name=<value> Name of the generated Apex trigger
752
+
753
+ The name can be up to 40 characters and must start with a letter.
754
+
755
+ -t, --template=ApexTrigger Template to use for file creation.
756
+
757
+ Supplied parameter values or default values are filled into a copy of the template.
758
+ ```
759
+
760
+ _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/template/generate/apex/trigger.ts)_
759
761
 
760
762
  ## `sf visualforce generate component`
761
763
 
@@ -811,7 +813,7 @@ FLAG DESCRIPTIONS
811
813
  Supplied parameter values or default values are filled into a copy of the template.
812
814
  ```
813
815
 
814
- _See code: [src/commands/visualforce/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/visualforce/generate/component.ts)_
816
+ _See code: [src/commands/visualforce/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/visualforce/generate/component.ts)_
815
817
 
816
818
  ## `sf visualforce generate page`
817
819
 
@@ -861,6 +863,6 @@ FLAG DESCRIPTIONS
861
863
  The name can be up to 40 characters and must start with a letter.
862
864
  ```
863
865
 
864
- _See code: [src/commands/visualforce/generate/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.6/src/commands/visualforce/generate/page.ts)_
866
+ _See code: [src/commands/visualforce/generate/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.5.0/src/commands/visualforce/generate/page.ts)_
865
867
 
866
868
  <!-- commandsstop -->
@@ -8,8 +8,8 @@ import { Flags, loglevel, orgApiVersionFlagWithDeprecations, SfCommand, Ux } fro
8
8
  import { TemplateType } from '@salesforce/templates';
9
9
  import { CreateUtil } from '@salesforce/templates/lib/utils/index.js';
10
10
  import { Messages } from '@salesforce/core';
11
- import { runGenerator, getCustomTemplates } from '../../../utils/templateCommand.js';
12
- import { outputDirFlag } from '../../../utils/flags.js';
11
+ import { runGenerator, getCustomTemplates } from '../../../../utils/templateCommand.js';
12
+ import { outputDirFlag } from '../../../../utils/flags.js';
13
13
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
14
14
  const messages = Messages.loadMessages('@salesforce/plugin-templates', 'apexClass');
15
15
  const commonMessages = Messages.loadMessages('@salesforce/plugin-templates', 'messages');
@@ -18,7 +18,7 @@ export default class ApexClass extends SfCommand {
18
18
  static summary = messages.getMessage('summary');
19
19
  static description = messages.getMessage('description');
20
20
  static examples = messages.getMessages('examples');
21
- static aliases = ['force:apex:class:create'];
21
+ static aliases = ['force:apex:class:create', 'apex:generate:class'];
22
22
  static deprecateAliases = true;
23
23
  static flags = {
24
24
  name: Flags.string({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/apex/class.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAChH,OAAO,EAAkC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,WAAW,CAAC,CAAC;AACpF,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,UAAU,CAAC,CAAC;AACzF,MAAM,mBAAmB,GAAG,OAAO,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAuB;IACrD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC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WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YAC/C,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACrD,CAAC,CAAC;IACL,CAAC"}
@@ -8,8 +8,8 @@ import { arrayWithDeprecation, Flags, loglevel, orgApiVersionFlagWithDeprecation
8
8
  import { TemplateType } from '@salesforce/templates';
9
9
  import { CreateUtil } from '@salesforce/templates/lib/utils/index.js';
10
10
  import { Messages } from '@salesforce/core';
11
- import { getCustomTemplates, runGenerator } from '../../../utils/templateCommand.js';
12
- import { outputDirFlag } from '../../../utils/flags.js';
11
+ import { getCustomTemplates, runGenerator } from '../../../../utils/templateCommand.js';
12
+ import { outputDirFlag } from '../../../../utils/flags.js';
13
13
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
14
14
  const apexTriggerFileSuffix = /.trigger$/;
15
15
  const commonMessages = Messages.loadMessages('@salesforce/plugin-templates', 'messages');
@@ -18,7 +18,7 @@ export default class ApexTrigger extends SfCommand {
18
18
  static summary = messages.getMessage('summary');
19
19
  static description = messages.getMessage('description');
20
20
  static examples = messages.getMessages('examples');
21
- static aliases = ['force:apex:trigger:create'];
21
+ static aliases = ['force:apex:trigger:create', 'apex:generate:trigger'];
22
22
  static deprecateAliases = true;
23
23
  static flags = {
24
24
  name: Flags.string({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/apex/trigger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,KAAK,EACL,QAAQ,EACR,iCAAiC,EACjC,SAAS,EACT,EAAE,GACH,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAoC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,k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