@salesforce/plugin-data 3.4.3 → 3.4.5

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.
@@ -331,13 +331,14 @@
331
331
  "resume:data"
332
332
  ]
333
333
  },
334
- "data:delete:bulk": {
334
+ "data:create:file": {
335
335
  "aliases": [],
336
336
  "args": {},
337
- "description": "The CSV file must have only one column (\"Id\") and then the list of record IDs you want to delete, one ID per line.\n\nWhen you execute this command, it starts a job, displays the ID, and then immediately returns control of the terminal to you by default. If you prefer to wait, set the --wait flag to the number of minutes; if it times out, the command outputs the IDs. Use the job ID to check the status of the job with the \"<%= config.bin %> data delete resume\" command.",
337
+ "description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
338
338
  "examples": [
339
- "Bulk delete Account records from your default org using the list of IDs in the \"files/delete.csv\" file:\n<%= config.bin %> <%= command.id %> --sobject Account --file files/delete.csv",
340
- "Bulk delete records from a custom object in an org with alias my-scratch and wait 5 minutes for the command to complete:\n<%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch"
339
+ "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
340
+ "Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
341
+ "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
341
342
  ],
342
343
  "flags": {
343
344
  "json": {
@@ -356,12 +357,7 @@
356
357
  "type": "option"
357
358
  },
358
359
  "target-org": {
359
- "aliases": [
360
- "targetusername",
361
- "u"
362
- ],
363
360
  "char": "o",
364
- "deprecateAliases": true,
365
361
  "name": "target-org",
366
362
  "noCacheDefault": true,
367
363
  "required": true,
@@ -371,120 +367,77 @@
371
367
  "type": "option"
372
368
  },
373
369
  "api-version": {
374
- "aliases": [
375
- "apiversion"
376
- ],
377
- "deprecateAliases": true,
378
370
  "description": "Override the api version used for api requests made by this command",
379
371
  "name": "api-version",
380
372
  "hasDynamicHelp": false,
381
373
  "multiple": false,
382
374
  "type": "option"
383
375
  },
384
- "loglevel": {
385
- "deprecated": {
386
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
387
- },
388
- "hidden": true,
389
- "name": "loglevel",
376
+ "title": {
377
+ "char": "t",
378
+ "name": "title",
379
+ "required": false,
380
+ "summary": "New title given to the file (ContentDocument) after it's uploaded.",
390
381
  "hasDynamicHelp": false,
391
382
  "multiple": false,
392
383
  "type": "option"
393
384
  },
394
385
  "file": {
395
- "aliases": [
396
- "csvfile"
397
- ],
398
386
  "char": "f",
399
- "deprecateAliases": true,
400
387
  "name": "file",
401
388
  "required": true,
402
- "summary": "CSV file that contains the IDs of the records to update or delete.",
389
+ "summary": "Path of file to upload.",
403
390
  "hasDynamicHelp": false,
404
391
  "multiple": false,
405
392
  "type": "option"
406
393
  },
407
- "sobject": {
408
- "aliases": [
409
- "sobjecttype"
410
- ],
411
- "char": "s",
412
- "deprecateAliases": true,
413
- "name": "sobject",
414
- "required": true,
415
- "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
394
+ "parent-id": {
395
+ "char": "i",
396
+ "name": "parent-id",
397
+ "summary": "ID of the record to attach the file to.",
416
398
  "hasDynamicHelp": false,
417
399
  "multiple": false,
418
400
  "type": "option"
419
- },
420
- "wait": {
421
- "char": "w",
422
- "exclusive": [
423
- "async"
424
- ],
425
- "name": "wait",
426
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
427
- "default": "0 minutes",
428
- "hasDynamicHelp": true,
429
- "multiple": false,
430
- "type": "option"
431
- },
432
- "async": {
433
- "char": "a",
434
- "exclusive": [
435
- "wait"
436
- ],
437
- "name": "async",
438
- "summary": "Run the command asynchronously.",
439
- "allowNo": false,
440
- "type": "boolean"
441
- },
442
- "verbose": {
443
- "name": "verbose",
444
- "summary": "Print verbose output of failed records if result is available.",
445
- "allowNo": false,
446
- "type": "boolean"
447
401
  }
448
402
  },
449
403
  "hasDynamicHelp": true,
450
404
  "hiddenAliases": [],
451
- "id": "data:delete:bulk",
405
+ "id": "data:create:file",
452
406
  "pluginAlias": "@salesforce/plugin-data",
453
407
  "pluginName": "@salesforce/plugin-data",
454
408
  "pluginType": "core",
455
409
  "strict": true,
456
- "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
410
+ "summary": "Upload a local file to an org.",
457
411
  "enableJsonFlag": true,
458
412
  "isESM": true,
459
413
  "relativePath": [
460
414
  "lib",
461
415
  "commands",
462
416
  "data",
463
- "delete",
464
- "bulk.js"
417
+ "create",
418
+ "file.js"
465
419
  ],
466
420
  "aliasPermutations": [],
467
421
  "permutations": [
468
- "data:delete:bulk",
469
- "delete:data:bulk",
470
- "delete:bulk:data",
471
- "data:bulk:delete",
472
- "bulk:data:delete",
473
- "bulk:delete:data"
422
+ "data:create:file",
423
+ "create:data:file",
424
+ "create:file:data",
425
+ "data:file:create",
426
+ "file:data:create",
427
+ "file:create:data"
474
428
  ]
475
429
  },
476
- "data:delete:record": {
430
+ "data:create:record": {
477
431
  "aliases": [
478
- "force:data:record:delete"
432
+ "force:data:record:create"
479
433
  ],
480
434
  "args": {},
481
435
  "deprecateAliases": true,
482
- "description": "Specify the record you want to delete with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the delete fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command deletes a record from Salesforce objects by default. Use the --use-tooling-api flag to delete from a Tooling API object.",
436
+ "description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
483
437
  "examples": [
484
- "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
485
- "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
486
- "Delete a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
487
- "Delete a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
438
+ "Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
439
+ "Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
440
+ "Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
488
441
  ],
489
442
  "flags": {
490
443
  "json": {
@@ -546,27 +499,16 @@
546
499
  "deprecateAliases": true,
547
500
  "name": "sobject",
548
501
  "required": true,
549
- "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
550
- "hasDynamicHelp": false,
551
- "multiple": false,
552
- "type": "option"
553
- },
554
- "record-id": {
555
- "aliases": [
556
- "sobjectid"
557
- ],
558
- "char": "i",
559
- "deprecateAliases": true,
560
- "name": "record-id",
561
- "summary": "ID of the record you’re deleting.",
502
+ "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
562
503
  "hasDynamicHelp": false,
563
504
  "multiple": false,
564
505
  "type": "option"
565
506
  },
566
- "where": {
567
- "char": "w",
568
- "name": "where",
569
- "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
507
+ "values": {
508
+ "char": "v",
509
+ "name": "values",
510
+ "required": true,
511
+ "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
570
512
  "hasDynamicHelp": false,
571
513
  "multiple": false,
572
514
  "type": "option"
@@ -578,7 +520,7 @@
578
520
  "char": "t",
579
521
  "deprecateAliases": true,
580
522
  "name": "use-tooling-api",
581
- "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
523
+ "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
582
524
  "allowNo": false,
583
525
  "type": "boolean"
584
526
  },
@@ -596,64 +538,63 @@
596
538
  },
597
539
  "hasDynamicHelp": true,
598
540
  "hiddenAliases": [],
599
- "id": "data:delete:record",
541
+ "id": "data:create:record",
600
542
  "pluginAlias": "@salesforce/plugin-data",
601
543
  "pluginName": "@salesforce/plugin-data",
602
544
  "pluginType": "core",
603
545
  "strict": true,
604
- "summary": "Deletes a single record from a Salesforce or Tooling API object.",
546
+ "summary": "Create and insert a record into a Salesforce or Tooling API object.",
605
547
  "enableJsonFlag": true,
606
548
  "isESM": true,
607
549
  "relativePath": [
608
550
  "lib",
609
551
  "commands",
610
552
  "data",
611
- "delete",
553
+ "create",
612
554
  "record.js"
613
555
  ],
614
556
  "aliasPermutations": [
615
- "force:data:record:delete",
616
- "data:force:record:delete",
617
- "data:record:force:delete",
618
- "data:record:delete:force",
619
- "force:record:data:delete",
620
- "record:force:data:delete",
621
- "record:data:force:delete",
622
- "record:data:delete:force",
623
- "force:record:delete:data",
624
- "record:force:delete:data",
625
- "record:delete:force:data",
626
- "record:delete:data:force",
627
- "force:data:delete:record",
628
- "data:force:delete:record",
629
- "data:delete:force:record",
630
- "data:delete:record:force",
631
- "force:delete:data:record",
632
- "delete:force:data:record",
633
- "delete:data:force:record",
634
- "delete:data:record:force",
635
- "force:delete:record:data",
636
- "delete:force:record:data",
637
- "delete:record:force:data",
638
- "delete:record:data:force"
557
+ "force:data:record:create",
558
+ "data:force:record:create",
559
+ "data:record:force:create",
560
+ "data:record:create:force",
561
+ "force:record:data:create",
562
+ "record:force:data:create",
563
+ "record:data:force:create",
564
+ "record:data:create:force",
565
+ "force:record:create:data",
566
+ "record:force:create:data",
567
+ "record:create:force:data",
568
+ "record:create:data:force",
569
+ "force:data:create:record",
570
+ "data:force:create:record",
571
+ "data:create:force:record",
572
+ "data:create:record:force",
573
+ "force:create:data:record",
574
+ "create:force:data:record",
575
+ "create:data:force:record",
576
+ "create:data:record:force",
577
+ "force:create:record:data",
578
+ "create:force:record:data",
579
+ "create:record:force:data",
580
+ "create:record:data:force"
639
581
  ],
640
582
  "permutations": [
641
- "data:delete:record",
642
- "delete:data:record",
643
- "delete:record:data",
644
- "data:record:delete",
645
- "record:data:delete",
646
- "record:delete:data"
583
+ "data:create:record",
584
+ "create:data:record",
585
+ "create:record:data",
586
+ "data:record:create",
587
+ "record:data:create",
588
+ "record:create:data"
647
589
  ]
648
590
  },
649
- "data:delete:resume": {
591
+ "data:delete:bulk": {
650
592
  "aliases": [],
651
593
  "args": {},
652
- "deprecateAliases": true,
653
- "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
594
+ "description": "The CSV file must have only one column (\"Id\") and then the list of record IDs you want to delete, one ID per line.\n\nWhen you execute this command, it starts a job, displays the ID, and then immediately returns control of the terminal to you by default. If you prefer to wait, set the --wait flag to the number of minutes; if it times out, the command outputs the IDs. Use the job ID to check the status of the job with the \"<%= config.bin %> data delete resume\" command.",
654
595
  "examples": [
655
- "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
656
- "Resume the most recently run bulk delete job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
596
+ "Bulk delete Account records from your default org using the list of IDs in the \"files/delete.csv\" file:\n<%= config.bin %> <%= command.id %> --sobject Account --file files/delete.csv",
597
+ "Bulk delete records from a custom object in an org with alias my-scratch and wait 5 minutes for the command to complete:\n<%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch"
657
598
  ],
658
599
  "flags": {
659
600
  "json": {
@@ -680,41 +621,17 @@
680
621
  "deprecateAliases": true,
681
622
  "name": "target-org",
682
623
  "noCacheDefault": true,
683
- "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
624
+ "required": true,
625
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
684
626
  "hasDynamicHelp": true,
685
627
  "multiple": false,
686
628
  "type": "option"
687
629
  },
688
- "job-id": {
630
+ "api-version": {
689
631
  "aliases": [
690
- "jobid"
632
+ "apiversion"
691
633
  ],
692
- "char": "i",
693
634
  "deprecateAliases": true,
694
- "name": "job-id",
695
- "summary": "ID of the job you want to resume.",
696
- "hasDynamicHelp": false,
697
- "multiple": false,
698
- "type": "option"
699
- },
700
- "use-most-recent": {
701
- "exclusive": [
702
- "job-id"
703
- ],
704
- "name": "use-most-recent",
705
- "summary": "Use the ID of the most recently-run bulk job.",
706
- "allowNo": false,
707
- "type": "boolean"
708
- },
709
- "wait": {
710
- "name": "wait",
711
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
712
- "default": "0 minutes",
713
- "hasDynamicHelp": true,
714
- "multiple": false,
715
- "type": "option"
716
- },
717
- "api-version": {
718
635
  "description": "Override the api version used for api requests made by this command",
719
636
  "name": "api-version",
720
637
  "hasDynamicHelp": false,
@@ -730,142 +647,101 @@
730
647
  "hasDynamicHelp": false,
731
648
  "multiple": false,
732
649
  "type": "option"
733
- }
734
- },
735
- "hasDynamicHelp": true,
736
- "hiddenAliases": [],
737
- "id": "data:delete:resume",
738
- "pluginAlias": "@salesforce/plugin-data",
739
- "pluginName": "@salesforce/plugin-data",
740
- "pluginType": "core",
741
- "strict": true,
742
- "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
743
- "enableJsonFlag": true,
744
- "isESM": true,
745
- "relativePath": [
746
- "lib",
747
- "commands",
748
- "data",
749
- "delete",
750
- "resume.js"
751
- ],
752
- "aliasPermutations": [],
753
- "permutations": [
754
- "data:delete:resume",
755
- "delete:data:resume",
756
- "delete:resume:data",
757
- "data:resume:delete",
758
- "resume:data:delete",
759
- "resume:delete:data"
760
- ]
761
- },
762
- "data:create:file": {
763
- "aliases": [],
764
- "args": {},
765
- "description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
766
- "examples": [
767
- "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
768
- "Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
769
- "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
770
- ],
771
- "flags": {
772
- "json": {
773
- "description": "Format output as json.",
774
- "helpGroup": "GLOBAL",
775
- "name": "json",
776
- "allowNo": false,
777
- "type": "boolean"
778
650
  },
779
- "flags-dir": {
780
- "helpGroup": "GLOBAL",
781
- "name": "flags-dir",
782
- "summary": "Import flag values from a directory.",
651
+ "file": {
652
+ "aliases": [
653
+ "csvfile"
654
+ ],
655
+ "char": "f",
656
+ "deprecateAliases": true,
657
+ "name": "file",
658
+ "required": true,
659
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
783
660
  "hasDynamicHelp": false,
784
661
  "multiple": false,
785
662
  "type": "option"
786
663
  },
787
- "target-org": {
788
- "char": "o",
789
- "name": "target-org",
790
- "noCacheDefault": true,
664
+ "sobject": {
665
+ "aliases": [
666
+ "sobjecttype"
667
+ ],
668
+ "char": "s",
669
+ "deprecateAliases": true,
670
+ "name": "sobject",
791
671
  "required": true,
792
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
793
- "hasDynamicHelp": true,
794
- "multiple": false,
795
- "type": "option"
796
- },
797
- "api-version": {
798
- "description": "Override the api version used for api requests made by this command",
799
- "name": "api-version",
672
+ "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
800
673
  "hasDynamicHelp": false,
801
674
  "multiple": false,
802
675
  "type": "option"
803
676
  },
804
- "title": {
805
- "char": "t",
806
- "name": "title",
807
- "required": false,
808
- "summary": "New title given to the file (ContentDocument) after it's uploaded.",
809
- "hasDynamicHelp": false,
677
+ "wait": {
678
+ "char": "w",
679
+ "exclusive": [
680
+ "async"
681
+ ],
682
+ "name": "wait",
683
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
684
+ "default": "0 minutes",
685
+ "hasDynamicHelp": true,
810
686
  "multiple": false,
811
687
  "type": "option"
812
688
  },
813
- "file": {
814
- "char": "f",
815
- "name": "file",
816
- "required": true,
817
- "summary": "Path of file to upload.",
818
- "hasDynamicHelp": false,
819
- "multiple": false,
820
- "type": "option"
689
+ "async": {
690
+ "char": "a",
691
+ "exclusive": [
692
+ "wait"
693
+ ],
694
+ "name": "async",
695
+ "summary": "Run the command asynchronously.",
696
+ "allowNo": false,
697
+ "type": "boolean"
821
698
  },
822
- "parent-id": {
823
- "char": "i",
824
- "name": "parent-id",
825
- "summary": "ID of the record to attach the file to.",
826
- "hasDynamicHelp": false,
827
- "multiple": false,
828
- "type": "option"
699
+ "verbose": {
700
+ "name": "verbose",
701
+ "summary": "Print verbose output of failed records if result is available.",
702
+ "allowNo": false,
703
+ "type": "boolean"
829
704
  }
830
705
  },
831
706
  "hasDynamicHelp": true,
832
707
  "hiddenAliases": [],
833
- "id": "data:create:file",
708
+ "id": "data:delete:bulk",
834
709
  "pluginAlias": "@salesforce/plugin-data",
835
710
  "pluginName": "@salesforce/plugin-data",
836
711
  "pluginType": "core",
837
712
  "strict": true,
838
- "summary": "Upload a local file to an org.",
713
+ "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
839
714
  "enableJsonFlag": true,
840
715
  "isESM": true,
841
716
  "relativePath": [
842
717
  "lib",
843
718
  "commands",
844
719
  "data",
845
- "create",
846
- "file.js"
720
+ "delete",
721
+ "bulk.js"
847
722
  ],
848
723
  "aliasPermutations": [],
849
724
  "permutations": [
850
- "data:create:file",
851
- "create:data:file",
852
- "create:file:data",
853
- "data:file:create",
854
- "file:data:create",
855
- "file:create:data"
725
+ "data:delete:bulk",
726
+ "delete:data:bulk",
727
+ "delete:bulk:data",
728
+ "data:bulk:delete",
729
+ "bulk:data:delete",
730
+ "bulk:delete:data"
856
731
  ]
857
732
  },
858
- "data:create:record": {
733
+ "data:delete:record": {
859
734
  "aliases": [
860
- "force:data:record:create"
735
+ "force:data:record:delete"
861
736
  ],
862
737
  "args": {},
863
738
  "deprecateAliases": true,
864
- "description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
739
+ "description": "Specify the record you want to delete with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the delete fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command deletes a record from Salesforce objects by default. Use the --use-tooling-api flag to delete from a Tooling API object.",
865
740
  "examples": [
866
- "Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
867
- "Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
868
- "Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
741
+ "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
742
+ "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
743
+ "Delete a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
744
+ "Delete a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
869
745
  ],
870
746
  "flags": {
871
747
  "json": {
@@ -927,16 +803,27 @@
927
803
  "deprecateAliases": true,
928
804
  "name": "sobject",
929
805
  "required": true,
930
- "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
806
+ "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
931
807
  "hasDynamicHelp": false,
932
808
  "multiple": false,
933
809
  "type": "option"
934
810
  },
935
- "values": {
936
- "char": "v",
937
- "name": "values",
938
- "required": true,
939
- "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
811
+ "record-id": {
812
+ "aliases": [
813
+ "sobjectid"
814
+ ],
815
+ "char": "i",
816
+ "deprecateAliases": true,
817
+ "name": "record-id",
818
+ "summary": "ID of the record you’re deleting.",
819
+ "hasDynamicHelp": false,
820
+ "multiple": false,
821
+ "type": "option"
822
+ },
823
+ "where": {
824
+ "char": "w",
825
+ "name": "where",
826
+ "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
940
827
  "hasDynamicHelp": false,
941
828
  "multiple": false,
942
829
  "type": "option"
@@ -948,7 +835,7 @@
948
835
  "char": "t",
949
836
  "deprecateAliases": true,
950
837
  "name": "use-tooling-api",
951
- "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
838
+ "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
952
839
  "allowNo": false,
953
840
  "type": "boolean"
954
841
  },
@@ -966,54 +853,167 @@
966
853
  },
967
854
  "hasDynamicHelp": true,
968
855
  "hiddenAliases": [],
969
- "id": "data:create:record",
856
+ "id": "data:delete:record",
970
857
  "pluginAlias": "@salesforce/plugin-data",
971
858
  "pluginName": "@salesforce/plugin-data",
972
859
  "pluginType": "core",
973
860
  "strict": true,
974
- "summary": "Create and insert a record into a Salesforce or Tooling API object.",
861
+ "summary": "Deletes a single record from a Salesforce or Tooling API object.",
975
862
  "enableJsonFlag": true,
976
863
  "isESM": true,
977
864
  "relativePath": [
978
865
  "lib",
979
866
  "commands",
980
867
  "data",
981
- "create",
868
+ "delete",
982
869
  "record.js"
983
870
  ],
984
871
  "aliasPermutations": [
985
- "force:data:record:create",
986
- "data:force:record:create",
987
- "data:record:force:create",
988
- "data:record:create:force",
989
- "force:record:data:create",
990
- "record:force:data:create",
991
- "record:data:force:create",
992
- "record:data:create:force",
993
- "force:record:create:data",
994
- "record:force:create:data",
995
- "record:create:force:data",
996
- "record:create:data:force",
997
- "force:data:create:record",
998
- "data:force:create:record",
999
- "data:create:force:record",
1000
- "data:create:record:force",
1001
- "force:create:data:record",
1002
- "create:force:data:record",
1003
- "create:data:force:record",
1004
- "create:data:record:force",
1005
- "force:create:record:data",
1006
- "create:force:record:data",
1007
- "create:record:force:data",
1008
- "create:record:data:force"
872
+ "force:data:record:delete",
873
+ "data:force:record:delete",
874
+ "data:record:force:delete",
875
+ "data:record:delete:force",
876
+ "force:record:data:delete",
877
+ "record:force:data:delete",
878
+ "record:data:force:delete",
879
+ "record:data:delete:force",
880
+ "force:record:delete:data",
881
+ "record:force:delete:data",
882
+ "record:delete:force:data",
883
+ "record:delete:data:force",
884
+ "force:data:delete:record",
885
+ "data:force:delete:record",
886
+ "data:delete:force:record",
887
+ "data:delete:record:force",
888
+ "force:delete:data:record",
889
+ "delete:force:data:record",
890
+ "delete:data:force:record",
891
+ "delete:data:record:force",
892
+ "force:delete:record:data",
893
+ "delete:force:record:data",
894
+ "delete:record:force:data",
895
+ "delete:record:data:force"
1009
896
  ],
1010
897
  "permutations": [
1011
- "data:create:record",
1012
- "create:data:record",
1013
- "create:record:data",
1014
- "data:record:create",
1015
- "record:data:create",
1016
- "record:create:data"
898
+ "data:delete:record",
899
+ "delete:data:record",
900
+ "delete:record:data",
901
+ "data:record:delete",
902
+ "record:data:delete",
903
+ "record:delete:data"
904
+ ]
905
+ },
906
+ "data:delete:resume": {
907
+ "aliases": [],
908
+ "args": {},
909
+ "deprecateAliases": true,
910
+ "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
911
+ "examples": [
912
+ "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
913
+ "Resume the most recently run bulk delete job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
914
+ ],
915
+ "flags": {
916
+ "json": {
917
+ "description": "Format output as json.",
918
+ "helpGroup": "GLOBAL",
919
+ "name": "json",
920
+ "allowNo": false,
921
+ "type": "boolean"
922
+ },
923
+ "flags-dir": {
924
+ "helpGroup": "GLOBAL",
925
+ "name": "flags-dir",
926
+ "summary": "Import flag values from a directory.",
927
+ "hasDynamicHelp": false,
928
+ "multiple": false,
929
+ "type": "option"
930
+ },
931
+ "target-org": {
932
+ "aliases": [
933
+ "targetusername",
934
+ "u"
935
+ ],
936
+ "char": "o",
937
+ "deprecateAliases": true,
938
+ "name": "target-org",
939
+ "noCacheDefault": true,
940
+ "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
941
+ "hasDynamicHelp": true,
942
+ "multiple": false,
943
+ "type": "option"
944
+ },
945
+ "job-id": {
946
+ "aliases": [
947
+ "jobid"
948
+ ],
949
+ "char": "i",
950
+ "deprecateAliases": true,
951
+ "name": "job-id",
952
+ "summary": "ID of the job you want to resume.",
953
+ "hasDynamicHelp": false,
954
+ "multiple": false,
955
+ "type": "option"
956
+ },
957
+ "use-most-recent": {
958
+ "exclusive": [
959
+ "job-id"
960
+ ],
961
+ "name": "use-most-recent",
962
+ "summary": "Use the ID of the most recently-run bulk job.",
963
+ "allowNo": false,
964
+ "type": "boolean"
965
+ },
966
+ "wait": {
967
+ "name": "wait",
968
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
969
+ "default": "0 minutes",
970
+ "hasDynamicHelp": true,
971
+ "multiple": false,
972
+ "type": "option"
973
+ },
974
+ "api-version": {
975
+ "description": "Override the api version used for api requests made by this command",
976
+ "name": "api-version",
977
+ "hasDynamicHelp": false,
978
+ "multiple": false,
979
+ "type": "option"
980
+ },
981
+ "loglevel": {
982
+ "deprecated": {
983
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
984
+ },
985
+ "hidden": true,
986
+ "name": "loglevel",
987
+ "hasDynamicHelp": false,
988
+ "multiple": false,
989
+ "type": "option"
990
+ }
991
+ },
992
+ "hasDynamicHelp": true,
993
+ "hiddenAliases": [],
994
+ "id": "data:delete:resume",
995
+ "pluginAlias": "@salesforce/plugin-data",
996
+ "pluginName": "@salesforce/plugin-data",
997
+ "pluginType": "core",
998
+ "strict": true,
999
+ "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
1000
+ "enableJsonFlag": true,
1001
+ "isESM": true,
1002
+ "relativePath": [
1003
+ "lib",
1004
+ "commands",
1005
+ "data",
1006
+ "delete",
1007
+ "resume.js"
1008
+ ],
1009
+ "aliasPermutations": [],
1010
+ "permutations": [
1011
+ "data:delete:resume",
1012
+ "delete:data:resume",
1013
+ "delete:resume:data",
1014
+ "data:resume:delete",
1015
+ "resume:data:delete",
1016
+ "resume:delete:data"
1017
1017
  ]
1018
1018
  },
1019
1019
  "data:export:tree": {
@@ -2917,5 +2917,5 @@
2917
2917
  ]
2918
2918
  }
2919
2919
  },
2920
- "version": "3.4.3"
2920
+ "version": "3.4.5"
2921
2921
  }