@salesforce/plugin-data 3.7.1 → 3.8.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.
@@ -1446,7 +1446,7 @@
1446
1446
  "required": true,
1447
1447
  "summary": "SOQL query, or filepath of a file that contains the query, to retrieve records.",
1448
1448
  "hasDynamicHelp": false,
1449
- "multiple": false,
1449
+ "multiple": true,
1450
1450
  "type": "option"
1451
1451
  },
1452
1452
  "plan": {
@@ -1726,6 +1726,203 @@
1726
1726
  "record:get:data"
1727
1727
  ]
1728
1728
  },
1729
+ "data:import:bulk": {
1730
+ "aliases": [],
1731
+ "args": {},
1732
+ "description": "You can use this command to import millions of records into the object from a file in comma-separated values (CSV) format.\n\nAll the records in the CSV file must be for the same Salesforce object. Specify the object with the `--sobject` flag.\n\nBulk imports can take a while, depending on how many records are in the CSV file. If the command times out, or you specified the --async flag, the command displays the job ID. To see the status and get the results of the job, run \"sf data import resume\" and pass the job ID to the --job-id flag.\n\nFor information and examples about how to prepare your CSV files, see \"Prepare Data to Ingest\" in the \"Bulk API 2.0 and Bulk API Developer Guide\" (https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_prepare_data.htm).",
1733
+ "examples": [
1734
+ "Import Account records from a CSV-formatted file into an org with alias \"my-scratch\"; if the import doesn't complete in 10 minutes, the command ends and displays a job ID:\n<%= config.bin %> <%= command.id %> --file accounts.csv --sobject Account --wait 10 --target-org my-scratch",
1735
+ "Import asynchronously and use the default org; the command immediately returns a job ID that you then pass to the \"sf data import resume\" command:\n<%= config.bin %> <%= command.id %> --file accounts.csv --sobject Account --async"
1736
+ ],
1737
+ "flags": {
1738
+ "json": {
1739
+ "description": "Format output as json.",
1740
+ "helpGroup": "GLOBAL",
1741
+ "name": "json",
1742
+ "allowNo": false,
1743
+ "type": "boolean"
1744
+ },
1745
+ "flags-dir": {
1746
+ "helpGroup": "GLOBAL",
1747
+ "name": "flags-dir",
1748
+ "summary": "Import flag values from a directory.",
1749
+ "hasDynamicHelp": false,
1750
+ "multiple": false,
1751
+ "type": "option"
1752
+ },
1753
+ "async": {
1754
+ "char": "a",
1755
+ "exclusive": [
1756
+ "wait"
1757
+ ],
1758
+ "name": "async",
1759
+ "summary": "Don't wait for the command to complete.",
1760
+ "allowNo": false,
1761
+ "type": "boolean"
1762
+ },
1763
+ "file": {
1764
+ "char": "f",
1765
+ "name": "file",
1766
+ "required": true,
1767
+ "summary": "CSV file that contains the Salesforce object records you want to import.",
1768
+ "hasDynamicHelp": false,
1769
+ "multiple": false,
1770
+ "type": "option"
1771
+ },
1772
+ "sobject": {
1773
+ "char": "s",
1774
+ "name": "sobject",
1775
+ "required": true,
1776
+ "summary": "API name of the Salesforce object, either standard or custom, into which you're importing records.",
1777
+ "hasDynamicHelp": false,
1778
+ "multiple": false,
1779
+ "type": "option"
1780
+ },
1781
+ "api-version": {
1782
+ "description": "Override the api version used for api requests made by this command",
1783
+ "name": "api-version",
1784
+ "hasDynamicHelp": false,
1785
+ "multiple": false,
1786
+ "type": "option"
1787
+ },
1788
+ "wait": {
1789
+ "char": "w",
1790
+ "exclusive": [
1791
+ "async"
1792
+ ],
1793
+ "name": "wait",
1794
+ "summary": "Time to wait for the command to finish, in minutes.",
1795
+ "hasDynamicHelp": true,
1796
+ "multiple": false,
1797
+ "type": "option"
1798
+ },
1799
+ "target-org": {
1800
+ "char": "o",
1801
+ "name": "target-org",
1802
+ "noCacheDefault": true,
1803
+ "required": true,
1804
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1805
+ "hasDynamicHelp": true,
1806
+ "multiple": false,
1807
+ "type": "option"
1808
+ },
1809
+ "line-ending": {
1810
+ "dependsOn": [
1811
+ "file"
1812
+ ],
1813
+ "name": "line-ending",
1814
+ "summary": "Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux it's `LR`.",
1815
+ "hasDynamicHelp": false,
1816
+ "multiple": false,
1817
+ "options": [
1818
+ "CRLF",
1819
+ "LF"
1820
+ ],
1821
+ "type": "option"
1822
+ }
1823
+ },
1824
+ "hasDynamicHelp": true,
1825
+ "hiddenAliases": [],
1826
+ "id": "data:import:bulk",
1827
+ "pluginAlias": "@salesforce/plugin-data",
1828
+ "pluginName": "@salesforce/plugin-data",
1829
+ "pluginType": "core",
1830
+ "strict": true,
1831
+ "summary": "Bulk import records into a Salesforce object from a CSV file. Uses Bulk API 2.0.",
1832
+ "enableJsonFlag": true,
1833
+ "isESM": true,
1834
+ "relativePath": [
1835
+ "lib",
1836
+ "commands",
1837
+ "data",
1838
+ "import",
1839
+ "bulk.js"
1840
+ ],
1841
+ "aliasPermutations": [],
1842
+ "permutations": [
1843
+ "data:import:bulk",
1844
+ "import:data:bulk",
1845
+ "import:bulk:data",
1846
+ "data:bulk:import",
1847
+ "bulk:data:import",
1848
+ "bulk:import:data"
1849
+ ]
1850
+ },
1851
+ "data:import:resume": {
1852
+ "aliases": [],
1853
+ "args": {},
1854
+ "description": "When the original \"sf data import bulk\" command either times out or is run with the --async flag, it displays a job ID. To see the status and get the results of the bulk import, run this command by either passing it the job ID or using the --use-most-recent flag to specify the most recent bulk import job.",
1855
+ "examples": [
1856
+ "Resume a bulk import job to your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
1857
+ "Resume the most recently run bulk import job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
1858
+ ],
1859
+ "flags": {
1860
+ "json": {
1861
+ "description": "Format output as json.",
1862
+ "helpGroup": "GLOBAL",
1863
+ "name": "json",
1864
+ "allowNo": false,
1865
+ "type": "boolean"
1866
+ },
1867
+ "flags-dir": {
1868
+ "helpGroup": "GLOBAL",
1869
+ "name": "flags-dir",
1870
+ "summary": "Import flag values from a directory.",
1871
+ "hasDynamicHelp": false,
1872
+ "multiple": false,
1873
+ "type": "option"
1874
+ },
1875
+ "use-most-recent": {
1876
+ "name": "use-most-recent",
1877
+ "summary": "Use the job ID of the bulk import job that was most recently run.",
1878
+ "allowNo": false,
1879
+ "type": "boolean"
1880
+ },
1881
+ "job-id": {
1882
+ "char": "i",
1883
+ "name": "job-id",
1884
+ "summary": "Job ID of the bulk import.",
1885
+ "hasDynamicHelp": false,
1886
+ "multiple": false,
1887
+ "type": "option"
1888
+ },
1889
+ "wait": {
1890
+ "char": "w",
1891
+ "name": "wait",
1892
+ "summary": "Time to wait for the command to finish, in minutes.",
1893
+ "default": "5 minutes",
1894
+ "hasDynamicHelp": true,
1895
+ "multiple": false,
1896
+ "type": "option"
1897
+ }
1898
+ },
1899
+ "hasDynamicHelp": true,
1900
+ "hiddenAliases": [],
1901
+ "id": "data:import:resume",
1902
+ "pluginAlias": "@salesforce/plugin-data",
1903
+ "pluginName": "@salesforce/plugin-data",
1904
+ "pluginType": "core",
1905
+ "strict": true,
1906
+ "summary": "Resume a bulk import job that you previously started. Uses Bulk API 2.0.",
1907
+ "enableJsonFlag": true,
1908
+ "isESM": true,
1909
+ "relativePath": [
1910
+ "lib",
1911
+ "commands",
1912
+ "data",
1913
+ "import",
1914
+ "resume.js"
1915
+ ],
1916
+ "aliasPermutations": [],
1917
+ "permutations": [
1918
+ "data:import:resume",
1919
+ "import:data:resume",
1920
+ "import:resume:data",
1921
+ "data:resume:import",
1922
+ "resume:data:import",
1923
+ "resume:import:data"
1924
+ ]
1925
+ },
1729
1926
  "data:import:tree": {
1730
1927
  "aliases": [
1731
1928
  "force:data:tree:import",
@@ -3336,5 +3533,5 @@
3336
3533
  ]
3337
3534
  }
3338
3535
  },
3339
- "version": "3.7.1"
3536
+ "version": "3.8.1"
3340
3537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "3.7.1",
3
+ "version": "3.8.1",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -60,7 +60,8 @@
60
60
  "description": "Get a single record."
61
61
  },
62
62
  "import": {
63
- "description": "Import data to your org."
63
+ "description": "Import data to your org.",
64
+ "external": true
64
65
  },
65
66
  "query": {
66
67
  "description": "Query records."
@@ -123,8 +124,8 @@
123
124
  },
124
125
  "devDependencies": {
125
126
  "@oclif/core": "^4.0.19",
126
- "@oclif/plugin-command-snapshot": "^5.2.15",
127
- "@salesforce/cli-plugins-testkit": "^5.3.33",
127
+ "@oclif/plugin-command-snapshot": "^5.2.19",
128
+ "@salesforce/cli-plugins-testkit": "^5.3.34",
128
129
  "@salesforce/dev-scripts": "^10.2.10",
129
130
  "@salesforce/plugin-command-reference": "^3.1.27",
130
131
  "@salesforce/types": "^1.2.0",
@@ -254,7 +255,7 @@
254
255
  "exports": "./lib/index.js",
255
256
  "type": "module",
256
257
  "sfdx": {
257
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.7.1.crt",
258
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.7.1.sig"
258
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.8.1.crt",
259
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.8.1.sig"
259
260
  }
260
261
  }