@@ -9,7 +9,9 @@ import { SourceComponent, VirtualTreeContainer, presetMap, RegistryAccess } from
9
9
import { getEffectiveRegistry } from '../../../src/registry/variants' ;
10
10
11
11
// Constants for a matching content file type
12
- const regAcc = new RegistryAccess ( getEffectiveRegistry ( { presets : [ presetMap . get ( 'decomposePermissionSetBeta2' ) ! ] } ) ) ;
12
+ export const regAcc = new RegistryAccess (
13
+ getEffectiveRegistry ( { presets : [ presetMap . get ( 'decomposePermissionSetBeta2' ) ! ] } )
14
+ ) ;
13
15
14
16
const permissionSet = regAcc . getTypeByName ( 'PermissionSet' ) ;
15
17
@@ -418,137 +420,3 @@ export const ONLY_PS_PARENT = new SourceComponent(
418
420
} ,
419
421
] )
420
422
) ;
421
-
422
- // export const THREE_CUSTOM_LABELS_CMP = new SourceComponent(
423
- // {
424
- // name: 'CustomLabels',
425
- // type: permissionSet,
426
- // xml: join('labels', MDAPI_XML_NAME),
427
- // },
428
- // new VirtualTreeContainer([
429
- // {
430
- // dirPath: 'permissionSet',
431
- // children: [
432
- // {
433
- // name: MDAPI_XML_NAME,
434
- // data: Buffer.from(`<?xml version="1.0" encoding="UTF-8"?>
435
- // <CustomLabels xmlns="http://soap.sforce.com/2006/04/metadata">
436
- // <labels>
437
- // <fullName>DeleteMe</fullName>
438
- // <language>en_US</language>
439
- // <protected>true</protected>
440
- // <shortDescription>DeleteMe</shortDescription>
441
- // <value>Test</value>
442
- // </labels>
443
- // <labels>
444
- // <fullName>KeepMe1</fullName>
445
- // <language>en_US</language>
446
- // <protected>true</protected>
447
- // <shortDescription>KeepMe1</shortDescription>
448
- // <value>Test</value>
449
- // </labels>
450
- // <labels>
451
- // <fullName>KeepMe2</fullName>
452
- // <language>en_US</language>
453
- // <protected>true</protected>
454
- // <shortDescription>KeepMe2</shortDescription>
455
- // <value>Test</value>
456
- // </labels>
457
- // </CustomLabels>`),
458
- // },
459
- // ],
460
- // },
461
- // ])
462
- // );
463
- //
464
- // const ONLY_LABEL_CONTENTS = `<?xml version="1.0" encoding="UTF-8"?>
465
- // <CustomLabel xmlns="http://soap.sforce.com/2006/04/metadata">
466
- // <fullName>OnlyLabel</fullName>
467
- // <language>en_US</language>
468
- // <protected>true</protected>
469
- // <shortDescription>OnlyLabel</shortDescription>
470
- // <value>OnlyLabel</value>
471
- // </CustomLabel>`;
472
- //
473
- // export const ONLY_LABEL_CMP_IN_DEFAULT_DIR_CMP = new SourceComponent(
474
- // {
475
- // name: 'OnlyLabel',
476
- // type: customLabelType,
477
- // xml: join('main', 'default', 'labels', 'OnlyLabel.label-meta.xml'),
478
- // },
479
- // new VirtualTreeContainer([
480
- // {
481
- // dirPath: join('main', 'default', 'labels'),
482
- // children: [
483
- // {
484
- // name: 'OnlyLabel.label-meta.xml',
485
- // data: Buffer.from(ONLY_LABEL_CONTENTS),
486
- // },
487
- // ],
488
- // },
489
- // ])
490
- // );
491
- //
492
- // export const ONLY_LABEL_CMP_IN_ANOTHER_DIR_CMP = new SourceComponent(
493
- // {
494
- // name: 'OnlyLabel',
495
- // type: customLabelType,
496
- // xml: join('other', 'dir', 'labels', 'OnlyLabel.label-meta.xml'),
497
- // },
498
- // new VirtualTreeContainer([
499
- // {
500
- // dirPath: join('other', 'dir', 'labels'),
501
- // children: [
502
- // {
503
- // name: 'OnlyLabel.label-meta.xml',
504
- // data: Buffer.from(ONLY_LABEL_CONTENTS),
505
- // },
506
- // ],
507
- // },
508
- // ])
509
- // );
510
- //
511
- // export const ONLY_LABEL_NO_DIR_CMP = new SourceComponent(
512
- // {
513
- // name: 'OnlyLabel',
514
- // type: customLabelType,
515
- // xml: 'OnlyLabel.label-meta.xml',
516
- // },
517
- // new VirtualTreeContainer([
518
- // {
519
- // dirPath: '',
520
- // children: [
521
- // {
522
- // name: 'OnlyLabel.label-meta.xml',
523
- // data: Buffer.from(ONLY_LABEL_CONTENTS),
524
- // },
525
- // ],
526
- // },
527
- // ])
528
- // );
529
- //
530
- // export const OTHER_LABEL_CMP = new SourceComponent(
531
- // {
532
- // name: 'OtherLabel',
533
- // type: customLabelType,
534
- // xml: join('labels', 'OtherLabel.label-meta.xml'),
535
- // },
536
- // new VirtualTreeContainer([
537
- // {
538
- // dirPath: 'permissionSet',
539
- // children: [
540
- // {
541
- // name: 'OtherLabel.label-meta.xml',
542
- // data: Buffer.from(`<?xml version="1.0" encoding="UTF-8"?>
543
- // <CustomLabel xmlns="http://soap.sforce.com/2006/04/metadata">
544
- // <fullName>OtherLabel</fullName>
545
- // <language>en_US</language>
546
- // <protected>true</protected>
547
- // <shortDescription>OtherLabel</shortDescription>
548
- // <value>OtherLabel</value>
549
- // </CustomLabel>`),
550
- // },
551
- // ],
552
- // },
553
- // ])
554
- // );
0 commit comments