@omni-commerce/cli 0.16.0 → 0.17.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 +220 -8
- 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.17.0 exposes normalized order attribution through `omni orders list`, `omni orders get`, and `omni analytics get-orders`. Use `--from`, `--to`, `--store`, `--currency`, `--time-zone`, and `--format json` for scoped channel/creator reports.
|
|
4
|
+
|
|
3
5
|
CLI 0.16.0 supports marketplace-only bulk import and enrichment, including CSV uploads. Use `omni products assign-marketplace-stores` to save stores before publishing.
|
|
4
6
|
|
|
5
7
|
CLI 0.15.0 supports multiple order, return, and job IDs in batch flags and adds `omni returns upload-evidence`.
|
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.17.0";
|
|
88
88
|
|
|
89
89
|
// src/browser-login.ts
|
|
90
90
|
function loginOrigin(baseUrl) {
|
|
@@ -729,7 +729,7 @@ var COMMANDS = [
|
|
|
729
729
|
httpMethod: "GET",
|
|
730
730
|
path: "/api/v1/analytics/orders",
|
|
731
731
|
summary: "Get Order Analytics",
|
|
732
|
-
description: "Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed. Matches the Orders analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
732
|
+
description: "Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed.\n\n### Order attribution\n\n`attribution` contains normalized order channels and creator handles, Net Revenue rankings partitioned by currency and exact store, and evidence coverage. Joint creator/channel groups count each order once; missing evidence is explicit. Matches the Orders analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
733
733
|
flags: [
|
|
734
734
|
{
|
|
735
735
|
name: "organizationId",
|
|
@@ -2259,7 +2259,7 @@ var COMMANDS = [
|
|
|
2259
2259
|
httpMethod: "POST",
|
|
2260
2260
|
path: "/api/v1/documents",
|
|
2261
2261
|
summary: "Upload Document",
|
|
2262
|
-
description: "Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.\n\nAccepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to
|
|
2262
|
+
description: "Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.\n\nAccepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 20 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.",
|
|
2263
2263
|
flags: [],
|
|
2264
2264
|
acceptsJsonBody: true,
|
|
2265
2265
|
acceptsFile: true,
|
|
@@ -5558,6 +5558,213 @@ var COMMANDS = [
|
|
|
5558
5558
|
acceptsFile: false,
|
|
5559
5559
|
bodyRequired: true
|
|
5560
5560
|
},
|
|
5561
|
+
{
|
|
5562
|
+
trail: ["wiki", "export-pages"],
|
|
5563
|
+
resourcePath: ["wiki"],
|
|
5564
|
+
methodName: "exportPages",
|
|
5565
|
+
httpMethod: "GET",
|
|
5566
|
+
path: "/api/v1/wiki/export",
|
|
5567
|
+
summary: "Export Wiki",
|
|
5568
|
+
description: "Export every active General page as a markdown file with YAML front matter, and the glossary (titles, aliases, related pages) as SKOS in JSON-LD. Requires documents:read.",
|
|
5569
|
+
flags: [
|
|
5570
|
+
{
|
|
5571
|
+
name: "organizationId",
|
|
5572
|
+
flag: "organization-id",
|
|
5573
|
+
required: false,
|
|
5574
|
+
source: "query"
|
|
5575
|
+
}
|
|
5576
|
+
],
|
|
5577
|
+
acceptsJsonBody: false,
|
|
5578
|
+
acceptsFile: false,
|
|
5579
|
+
bodyRequired: false
|
|
5580
|
+
},
|
|
5581
|
+
{
|
|
5582
|
+
trail: ["wiki", "import-pages"],
|
|
5583
|
+
resourcePath: ["wiki"],
|
|
5584
|
+
methodName: "importPages",
|
|
5585
|
+
httpMethod: "POST",
|
|
5586
|
+
path: "/api/v1/wiki/import",
|
|
5587
|
+
summary: "Import Wiki",
|
|
5588
|
+
description: "Create or update General pages from markdown files. Requires documents:write. Front matter may set title, summary, aliases, hiddenLabels, appliesTo and reviewBy; without front matter the first # heading is the title.\n\nDefinitions from older exports are imported into the page body.\n\nA file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.",
|
|
5589
|
+
flags: [],
|
|
5590
|
+
acceptsJsonBody: true,
|
|
5591
|
+
acceptsFile: false,
|
|
5592
|
+
bodyRequired: true
|
|
5593
|
+
},
|
|
5594
|
+
{
|
|
5595
|
+
trail: ["wiki", "list-pages"],
|
|
5596
|
+
resourcePath: ["wiki"],
|
|
5597
|
+
methodName: "listPages",
|
|
5598
|
+
httpMethod: "GET",
|
|
5599
|
+
path: "/api/v1/wiki/pages",
|
|
5600
|
+
summary: "List Wiki Pages",
|
|
5601
|
+
description: "List the organization's wiki pages with title, aliases and an excerpt. Requires documents:read. Filter with q (title, alias, summary and fragment text) and status (active, stale, archived); sort by newest, title or most_used.",
|
|
5602
|
+
flags: [
|
|
5603
|
+
{
|
|
5604
|
+
name: "organizationId",
|
|
5605
|
+
flag: "organization-id",
|
|
5606
|
+
required: false,
|
|
5607
|
+
source: "query"
|
|
5608
|
+
},
|
|
5609
|
+
{
|
|
5610
|
+
name: "q",
|
|
5611
|
+
flag: "q",
|
|
5612
|
+
required: false,
|
|
5613
|
+
source: "query"
|
|
5614
|
+
},
|
|
5615
|
+
{
|
|
5616
|
+
name: "status",
|
|
5617
|
+
flag: "status",
|
|
5618
|
+
required: false,
|
|
5619
|
+
source: "query"
|
|
5620
|
+
},
|
|
5621
|
+
{
|
|
5622
|
+
name: "sort",
|
|
5623
|
+
flag: "sort",
|
|
5624
|
+
required: false,
|
|
5625
|
+
source: "query"
|
|
5626
|
+
},
|
|
5627
|
+
{
|
|
5628
|
+
name: "limit",
|
|
5629
|
+
flag: "limit",
|
|
5630
|
+
required: false,
|
|
5631
|
+
source: "query"
|
|
5632
|
+
},
|
|
5633
|
+
{
|
|
5634
|
+
name: "offset",
|
|
5635
|
+
flag: "offset",
|
|
5636
|
+
required: false,
|
|
5637
|
+
source: "query"
|
|
5638
|
+
}
|
|
5639
|
+
],
|
|
5640
|
+
acceptsJsonBody: false,
|
|
5641
|
+
acceptsFile: false,
|
|
5642
|
+
bodyRequired: false
|
|
5643
|
+
},
|
|
5644
|
+
{
|
|
5645
|
+
trail: ["wiki", "create-page"],
|
|
5646
|
+
resourcePath: ["wiki"],
|
|
5647
|
+
methodName: "createPage",
|
|
5648
|
+
httpMethod: "POST",
|
|
5649
|
+
path: "/api/v1/wiki/pages",
|
|
5650
|
+
summary: "Create Wiki Page",
|
|
5651
|
+
description: "Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.\n\nTitles and aliases are unique within the organization. Link other pages in the body as [[Page title]]. The page is findable by name at once; fragment, meaning and graph search follow within about a minute.",
|
|
5652
|
+
flags: [],
|
|
5653
|
+
acceptsJsonBody: true,
|
|
5654
|
+
acceptsFile: false,
|
|
5655
|
+
bodyRequired: true
|
|
5656
|
+
},
|
|
5657
|
+
{
|
|
5658
|
+
trail: ["wiki", "archive-page"],
|
|
5659
|
+
resourcePath: ["wiki"],
|
|
5660
|
+
methodName: "archivePage",
|
|
5661
|
+
httpMethod: "DELETE",
|
|
5662
|
+
path: "/api/v1/wiki/pages/{pageId}",
|
|
5663
|
+
summary: "Archive Wiki Page",
|
|
5664
|
+
description: "Archive the page. Requires documents:write. Agents stop using it and it leaves search; its history and names are kept, and PATCH with status active restores it.",
|
|
5665
|
+
flags: [
|
|
5666
|
+
{
|
|
5667
|
+
name: "pageId",
|
|
5668
|
+
flag: "page-id",
|
|
5669
|
+
required: true,
|
|
5670
|
+
source: "path"
|
|
5671
|
+
},
|
|
5672
|
+
{
|
|
5673
|
+
name: "organizationId",
|
|
5674
|
+
flag: "organization-id",
|
|
5675
|
+
required: false,
|
|
5676
|
+
source: "query"
|
|
5677
|
+
}
|
|
5678
|
+
],
|
|
5679
|
+
acceptsJsonBody: false,
|
|
5680
|
+
acceptsFile: false,
|
|
5681
|
+
bodyRequired: false
|
|
5682
|
+
},
|
|
5683
|
+
{
|
|
5684
|
+
trail: ["wiki", "get-page"],
|
|
5685
|
+
resourcePath: ["wiki"],
|
|
5686
|
+
methodName: "getPage",
|
|
5687
|
+
httpMethod: "GET",
|
|
5688
|
+
path: "/api/v1/wiki/pages/{pageId}",
|
|
5689
|
+
summary: "Get Wiki Page",
|
|
5690
|
+
description: "Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.",
|
|
5691
|
+
flags: [
|
|
5692
|
+
{
|
|
5693
|
+
name: "pageId",
|
|
5694
|
+
flag: "page-id",
|
|
5695
|
+
required: true,
|
|
5696
|
+
source: "path"
|
|
5697
|
+
},
|
|
5698
|
+
{
|
|
5699
|
+
name: "organizationId",
|
|
5700
|
+
flag: "organization-id",
|
|
5701
|
+
required: false,
|
|
5702
|
+
source: "query"
|
|
5703
|
+
}
|
|
5704
|
+
],
|
|
5705
|
+
acceptsJsonBody: false,
|
|
5706
|
+
acceptsFile: false,
|
|
5707
|
+
bodyRequired: false
|
|
5708
|
+
},
|
|
5709
|
+
{
|
|
5710
|
+
trail: ["wiki", "update-page"],
|
|
5711
|
+
resourcePath: ["wiki"],
|
|
5712
|
+
methodName: "updatePage",
|
|
5713
|
+
httpMethod: "PATCH",
|
|
5714
|
+
path: "/api/v1/wiki/pages/{pageId}",
|
|
5715
|
+
summary: "Update Wiki Page",
|
|
5716
|
+
description: "Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.\n\nPass baseRevisionNumber to refuse the update with 409 if the page changed since you read it. status archives or restores the page. restoreRevisionNumber brings back an earlier revision as the newest one and ignores other fields.",
|
|
5717
|
+
flags: [
|
|
5718
|
+
{
|
|
5719
|
+
name: "pageId",
|
|
5720
|
+
flag: "page-id",
|
|
5721
|
+
required: true,
|
|
5722
|
+
source: "path"
|
|
5723
|
+
}
|
|
5724
|
+
],
|
|
5725
|
+
acceptsJsonBody: true,
|
|
5726
|
+
acceptsFile: false,
|
|
5727
|
+
bodyRequired: true
|
|
5728
|
+
},
|
|
5729
|
+
{
|
|
5730
|
+
trail: ["wiki", "list-revisions"],
|
|
5731
|
+
resourcePath: ["wiki"],
|
|
5732
|
+
methodName: "listRevisions",
|
|
5733
|
+
httpMethod: "GET",
|
|
5734
|
+
path: "/api/v1/wiki/pages/{pageId}/revisions",
|
|
5735
|
+
summary: "List Wiki Page Revisions",
|
|
5736
|
+
description: "Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.",
|
|
5737
|
+
flags: [
|
|
5738
|
+
{
|
|
5739
|
+
name: "pageId",
|
|
5740
|
+
flag: "page-id",
|
|
5741
|
+
required: true,
|
|
5742
|
+
source: "path"
|
|
5743
|
+
},
|
|
5744
|
+
{
|
|
5745
|
+
name: "organizationId",
|
|
5746
|
+
flag: "organization-id",
|
|
5747
|
+
required: false,
|
|
5748
|
+
source: "query"
|
|
5749
|
+
}
|
|
5750
|
+
],
|
|
5751
|
+
acceptsJsonBody: false,
|
|
5752
|
+
acceptsFile: false,
|
|
5753
|
+
bodyRequired: false
|
|
5754
|
+
},
|
|
5755
|
+
{
|
|
5756
|
+
trail: ["wiki", "search"],
|
|
5757
|
+
resourcePath: ["wiki"],
|
|
5758
|
+
methodName: "search",
|
|
5759
|
+
httpMethod: "POST",
|
|
5760
|
+
path: "/api/v1/wiki/search",
|
|
5761
|
+
summary: "Search Wiki",
|
|
5762
|
+
description: "Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.\n\nResults fuse name matches, full text, meaning, graph relationships and page links. retrieval reports which signals were available; degraded is true when the graph or meaning search could not be used.",
|
|
5763
|
+
flags: [],
|
|
5764
|
+
acceptsJsonBody: true,
|
|
5765
|
+
acceptsFile: false,
|
|
5766
|
+
bodyRequired: true
|
|
5767
|
+
},
|
|
5561
5768
|
{
|
|
5562
5769
|
trail: ["zalora", "get-import"],
|
|
5563
5770
|
resourcePath: ["zalora"],
|
|
@@ -5900,7 +6107,7 @@ var CAMPAIGN_INPUTS = {
|
|
|
5900
6107
|
{
|
|
5901
6108
|
type: "string",
|
|
5902
6109
|
format: "date-time",
|
|
5903
|
-
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d
|
|
6110
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
5904
6111
|
},
|
|
5905
6112
|
{
|
|
5906
6113
|
type: "null"
|
|
@@ -6139,7 +6346,7 @@ var CAMPAIGN_INPUTS = {
|
|
|
6139
6346
|
{
|
|
6140
6347
|
type: "string",
|
|
6141
6348
|
format: "date-time",
|
|
6142
|
-
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d
|
|
6349
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
6143
6350
|
},
|
|
6144
6351
|
{
|
|
6145
6352
|
type: "null"
|
|
@@ -6493,7 +6700,7 @@ var CAMPAIGN_INPUTS = {
|
|
|
6493
6700
|
{
|
|
6494
6701
|
type: "string",
|
|
6495
6702
|
format: "date-time",
|
|
6496
|
-
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d
|
|
6703
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
6497
6704
|
},
|
|
6498
6705
|
{
|
|
6499
6706
|
type: "null"
|
|
@@ -6505,7 +6712,7 @@ var CAMPAIGN_INPUTS = {
|
|
|
6505
6712
|
{
|
|
6506
6713
|
type: "string",
|
|
6507
6714
|
format: "date-time",
|
|
6508
|
-
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d
|
|
6715
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
6509
6716
|
},
|
|
6510
6717
|
{
|
|
6511
6718
|
type: "null"
|
|
@@ -6517,7 +6724,7 @@ var CAMPAIGN_INPUTS = {
|
|
|
6517
6724
|
{
|
|
6518
6725
|
type: "string",
|
|
6519
6726
|
format: "date-time",
|
|
6520
|
-
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d
|
|
6727
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
6521
6728
|
},
|
|
6522
6729
|
{
|
|
6523
6730
|
type: "null"
|
|
@@ -6601,6 +6808,11 @@ var CAMPAIGN_INPUTS = {
|
|
|
6601
6808
|
exclusiveMinimum: 0,
|
|
6602
6809
|
maximum: 9007199254740991
|
|
6603
6810
|
},
|
|
6811
|
+
sellerReviewAcknowledgement: {
|
|
6812
|
+
description: "Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version.",
|
|
6813
|
+
type: "string",
|
|
6814
|
+
pattern: "^[a-f0-9]{64}$"
|
|
6815
|
+
},
|
|
6604
6816
|
organizationId: {
|
|
6605
6817
|
description: "Required for session auth. Optional for an API key, which already identifies the organization.",
|
|
6606
6818
|
type: "string",
|