@omni-commerce/cli 0.11.0 → 0.12.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 +2 -0
- package/dist/index.js +86 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @omni-commerce/cli
|
|
2
2
|
|
|
3
|
+
CLI 0.12.0 adds `omni catalog query`, durable `omni bulk start/status/results`, and `omni commerce start-verification`.
|
|
4
|
+
|
|
3
5
|
Command-line client for the OmniCommerce API. Generated from the same OpenAPI spec as `@omni-commerce/sdk`.
|
|
4
6
|
|
|
5
7
|
```bash
|
package/dist/index.js
CHANGED
|
@@ -84,7 +84,7 @@ async function openBrowser(url) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// src/version.ts
|
|
87
|
-
var CLI_VERSION = "0.
|
|
87
|
+
var CLI_VERSION = "0.12.0";
|
|
88
88
|
|
|
89
89
|
// src/browser-login.ts
|
|
90
90
|
function loginOrigin(baseUrl) {
|
|
@@ -1814,6 +1814,79 @@ var COMMANDS = [
|
|
|
1814
1814
|
acceptsFile: false,
|
|
1815
1815
|
bodyRequired: false
|
|
1816
1816
|
},
|
|
1817
|
+
{
|
|
1818
|
+
trail: ["bulk", "list-for-session"],
|
|
1819
|
+
resourcePath: ["bulk"],
|
|
1820
|
+
methodName: "listForSession",
|
|
1821
|
+
httpMethod: "GET",
|
|
1822
|
+
path: "/api/v1/catalog/operations",
|
|
1823
|
+
summary: "List Catalog Operations for Session",
|
|
1824
|
+
flags: [
|
|
1825
|
+
{
|
|
1826
|
+
name: "organizationId",
|
|
1827
|
+
flag: "organization-id",
|
|
1828
|
+
required: false,
|
|
1829
|
+
source: "query"
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
name: "sessionId",
|
|
1833
|
+
flag: "session-id",
|
|
1834
|
+
required: true,
|
|
1835
|
+
source: "query"
|
|
1836
|
+
}
|
|
1837
|
+
],
|
|
1838
|
+
acceptsJsonBody: false,
|
|
1839
|
+
acceptsFile: false,
|
|
1840
|
+
bodyRequired: false
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
trail: ["bulk", "start"],
|
|
1844
|
+
resourcePath: ["bulk"],
|
|
1845
|
+
methodName: "start",
|
|
1846
|
+
httpMethod: "POST",
|
|
1847
|
+
path: "/api/v1/catalog/operations",
|
|
1848
|
+
summary: "Start Catalog Operation",
|
|
1849
|
+
flags: [],
|
|
1850
|
+
acceptsJsonBody: true,
|
|
1851
|
+
acceptsFile: false,
|
|
1852
|
+
bodyRequired: true
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
trail: ["bulk", "results"],
|
|
1856
|
+
resourcePath: ["bulk"],
|
|
1857
|
+
methodName: "results",
|
|
1858
|
+
httpMethod: "POST",
|
|
1859
|
+
path: "/api/v1/catalog/operations/results",
|
|
1860
|
+
summary: "Get Catalog Operation Results",
|
|
1861
|
+
flags: [],
|
|
1862
|
+
acceptsJsonBody: true,
|
|
1863
|
+
acceptsFile: false,
|
|
1864
|
+
bodyRequired: true
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
trail: ["bulk", "status"],
|
|
1868
|
+
resourcePath: ["bulk"],
|
|
1869
|
+
methodName: "status",
|
|
1870
|
+
httpMethod: "POST",
|
|
1871
|
+
path: "/api/v1/catalog/operations/status",
|
|
1872
|
+
summary: "Get Catalog Operation Status",
|
|
1873
|
+
flags: [],
|
|
1874
|
+
acceptsJsonBody: true,
|
|
1875
|
+
acceptsFile: false,
|
|
1876
|
+
bodyRequired: true
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
trail: ["catalog", "query"],
|
|
1880
|
+
resourcePath: ["catalog"],
|
|
1881
|
+
methodName: "query",
|
|
1882
|
+
httpMethod: "POST",
|
|
1883
|
+
path: "/api/v1/catalog/query",
|
|
1884
|
+
summary: "Query Catalog",
|
|
1885
|
+
flags: [],
|
|
1886
|
+
acceptsJsonBody: true,
|
|
1887
|
+
acceptsFile: false,
|
|
1888
|
+
bodyRequired: true
|
|
1889
|
+
},
|
|
1817
1890
|
{
|
|
1818
1891
|
trail: ["checkout-sessions", "create"],
|
|
1819
1892
|
resourcePath: ["checkoutSessions"],
|
|
@@ -1975,6 +2048,18 @@ var COMMANDS = [
|
|
|
1975
2048
|
acceptsFile: false,
|
|
1976
2049
|
bodyRequired: true
|
|
1977
2050
|
},
|
|
2051
|
+
{
|
|
2052
|
+
trail: ["commerce", "start-verification"],
|
|
2053
|
+
resourcePath: ["commerce"],
|
|
2054
|
+
methodName: "startVerification",
|
|
2055
|
+
httpMethod: "POST",
|
|
2056
|
+
path: "/api/v1/commerce/state/verify/jobs",
|
|
2057
|
+
summary: "Start Commerce Verification",
|
|
2058
|
+
flags: [],
|
|
2059
|
+
acceptsJsonBody: true,
|
|
2060
|
+
acceptsFile: false,
|
|
2061
|
+
bodyRequired: true
|
|
2062
|
+
},
|
|
1978
2063
|
{
|
|
1979
2064
|
trail: ["compare", "get"],
|
|
1980
2065
|
resourcePath: ["compare"],
|