makea-cli 0.2.34__tar.gz → 0.2.37__tar.gz
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.
- {makea_cli-0.2.34 → makea_cli-0.2.37}/CHANGELOG.md +50 -0
- makea_cli-0.2.34/README.md → makea_cli-0.2.37/PKG-INFO +35 -0
- makea_cli-0.2.34/PKG-INFO → makea_cli-0.2.37/README.md +19 -16
- makea_cli-0.2.37/makea_cli/__init__.py +1 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/api_client.py +164 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/__init__.py +2 -0
- makea_cli-0.2.37/makea_cli/commands/order_flow/__init__.py +3 -0
- makea_cli-0.2.37/makea_cli/commands/order_flow/cmd.py +723 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/shipping/cmd.py +215 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/pyproject.toml +1 -1
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/golden_manifest.json +3213 -1263
- makea_cli-0.2.34/makea_cli/__init__.py +0 -1
- {makea_cli-0.2.34 → makea_cli-0.2.37}/.claude/skills/create-supplier-profile/SKILL.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/.claude/skills/lark-cli-setup/SKILL.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/.claude/skills/link-supplier-user/SKILL.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/.claude/skills/makea-cli-setup/SKILL.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/.claude/skills/payment-revenue-report/SKILL.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/.claude/skills/supplier-user-id-migration/SKILL.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/.gitignore +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea-collection-upload/SKILL.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea-collection-upload/scripts/create_products.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/__main__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/auth_pkce.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/broker.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/_util.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/about/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/about/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/analytics/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/analytics/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/auth/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/auth/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/brand/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/brand/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/designer/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/designer/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/directory/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/directory/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/document/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/document/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/email/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/email/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/factory/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/factory/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/files/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/files/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/flags/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/flags/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/library/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/library/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/metrics/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/metrics/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/orders/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/orders/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/playbook/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/playbook/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/product/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/product/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/production/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/production/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/production/pricing_spec.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/shiplog/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/shiplog/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/shipping/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/supplier/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/supplier/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/tasks/__init__.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/commands/tasks/cmd.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/companion.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/config.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/errors.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/file_reader.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/identity.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/main.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/output.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/posthog_client.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/makea_cli/registry.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/npm/makea-cli/README.md +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/npm/makea-cli/makea-cli.mjs +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/npm/makea-cli/package.json +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_broker.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_companion.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_currency_conversion.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_file_reader.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_output_contract.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_persona_commands.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_pm_reads.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_registry.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/tests/test_supplier_scorecard.py +0 -0
- {makea_cli-0.2.34 → makea_cli-0.2.37}/uv.lock +0 -0
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.37
|
|
4
|
+
|
|
5
|
+
Steps added alongside, and an order's steps from the brand's and the factory's
|
|
6
|
+
seats. Needs the backend with parallel custom steps.
|
|
7
|
+
|
|
8
|
+
- `--placement inline|alongside|beside` on `admin create|update custom-step`:
|
|
9
|
+
alongside puts the step on a line of its own, at the same time as the next
|
|
10
|
+
step; `--joins` names the step that waits for it (default: the one after),
|
|
11
|
+
`--no-joins` for none; beside (`--after` a side line's step) starts a new
|
|
12
|
+
line from where that line starts. `--after` a side line's step continues it.
|
|
13
|
+
- `designer get order-flow` and `designer create|update|delete|submit
|
|
14
|
+
custom-step`: the same, as the brand.
|
|
15
|
+
- `supplier get order-flow`, `supplier list custom-step` and `supplier submit
|
|
16
|
+
custom-step --move done|upload|submit`: the factory's read and its moves.
|
|
17
|
+
Factories do not add or change steps.
|
|
18
|
+
- `supplier submit sample-shipment` (courier and tracking) and `supplier
|
|
19
|
+
submit order-acceptance` (the date bulk will be done).
|
|
20
|
+
|
|
21
|
+
## 0.2.36
|
|
22
|
+
|
|
23
|
+
Steps added to one order (custom steps), from makea's side. Needs the backend
|
|
24
|
+
with `/admin/products/<id>/order_flow`.
|
|
25
|
+
|
|
26
|
+
- `admin get order-flow` reads an order's steps by stage: state, whose move it
|
|
27
|
+
is, dates, the key dates and the factories' names. Added steps carry
|
|
28
|
+
`custom` (who does it, how it is done, due, hold, rounds, files).
|
|
29
|
+
- `admin create custom-step` adds a step after another (`--after`), with who
|
|
30
|
+
does it, how it is done (`--done-when check|upload|send`), an optional due
|
|
31
|
+
date or days before a key date, `--hold` and `--note`.
|
|
32
|
+
- `admin update custom-step` changes one; `admin delete custom-step` removes it
|
|
33
|
+
while nothing happened on it.
|
|
34
|
+
- `admin submit custom-step --move done|upload|submit|approve|send-back|skip`
|
|
35
|
+
makes its move as makea, or `--as supplier` for the step's own factory.
|
|
36
|
+
`--file` uploads under the brand; `--document` reuses a document id.
|
|
37
|
+
|
|
38
|
+
## 0.2.35
|
|
39
|
+
|
|
40
|
+
Bulk shipments in several lots (consignments), each with its own tracking
|
|
41
|
+
number. Needs the backend with consignments.
|
|
42
|
+
|
|
43
|
+
- `admin create consignment` adds one lot to a shipping order or a production
|
|
44
|
+
order (`--shipping-order` / `--production-order`): tracking number, carrier,
|
|
45
|
+
pieces, cartons, kg, the day it left, what is in it. The lot that brings the
|
|
46
|
+
pieces up to the order is marked last unless `--last/--not-last` says.
|
|
47
|
+
- `admin list consignments` shows the lots and the counts (ordered, booked,
|
|
48
|
+
still to ship, landed).
|
|
49
|
+
- `admin update consignment` edits a lot; `--delivered` marks it delivered
|
|
50
|
+
through the same path as the tracking sweep (`--silent` tells nobody).
|
|
51
|
+
- `admin delete consignment` removes a lot that has not been delivered.
|
|
52
|
+
|
|
3
53
|
## 0.2.34
|
|
4
54
|
|
|
5
55
|
- `admin create ship-log` takes `--kind feature|fix` (required), and
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: makea-cli
|
|
3
|
+
Version: 0.2.37
|
|
4
|
+
Summary: Makea admin CLI (browser login + Makea admin HTTP API)
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
|
+
Requires-Dist: click<9,>=8.1
|
|
7
|
+
Requires-Dist: httpx>=0.27
|
|
8
|
+
Requires-Dist: olefile>=0.47
|
|
9
|
+
Requires-Dist: pillow>=11.3
|
|
10
|
+
Requires-Dist: platformdirs>=4.2
|
|
11
|
+
Requires-Dist: pyembroidery>=1.5
|
|
12
|
+
Requires-Dist: pypdfium2>=4.30
|
|
13
|
+
Requires-Dist: rich>=13.7
|
|
14
|
+
Requires-Dist: typer<0.25,>=0.12
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
1
17
|
# makea-cli
|
|
2
18
|
|
|
3
19
|
给 **Makea** 同事(admin)、品牌(designer)和工厂(supplier)用的命令行工具,也是 Beeboo agent 的动作面:连的是线上正式环境,**装好就能用,不用配环境变量、不用改配置文件**。
|
|
@@ -78,6 +94,8 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
78
94
|
| 命令 | 读/写 | 后端 | 说明 | 旧名 |
|
|
79
95
|
|---|---|---|---|---|
|
|
80
96
|
| `makea-cli admin backfill supplier-id` | write(never) | `POST /admin/supplier/backfill_supplier_id_with_quote_requests` | Migrate supplier_id from a wrong UUID to the Cognito user sub (user_id): profile + Cognito supplierReferenceId, optio… | `backfill-supplier-id` |
|
|
97
|
+
| `makea-cli admin create consignment` | write(ask) | `POST /admin/{production_orders\|shipping_orders}/{id}/consignments` | add one lot leaving the factory with its own tracking number, pieces, cartons, kg and ship date. The lot that brings the pieces up to the order is marked last unless `--last/--not-last` says. | — |
|
|
98
|
+
| `makea-cli admin create custom-step` | write(ask) | `POST /admin/products/{product_id}/order_flow/custom_steps` | add a step to one order as makea: `--label`, `--after` (a step id), `--placement inline\|alongside\|beside`, `--joins` / `--no-joins`, `--who`, `--done-when check\|upload\|send`, due (`--due-date` or `--due-days` + `--due-before`), `--hold` (checks in a production step), `--note`. | — |
|
|
81
99
|
| `makea-cli admin create feature-flag` | write(ask) | `POST /admin/feature-flags` | add a flag (off unless --enabled). An existing key is refused. | — |
|
|
82
100
|
| `makea-cli admin create library-element` | write(auto) | `POST /admin/designer/{user_id}/library_components` | save a reusable component under a designer. Provide --section and --values (see admin get library-schema). | `library-create` |
|
|
83
101
|
| `makea-cli admin create product-note` | write(ask) | `POST /admin/products/{product_id}/notes` | write a note on a product. Without --internal it goes to the brand. | — |
|
|
@@ -92,6 +110,8 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
92
110
|
| `makea-cli admin create supplier-link` | write(ask) | `POST /admin/product/link_supplier` | assign a factory to a product, with no price. A bare assignment is not a quote: no quote email goes out and nothing is priced. To quote, use admin submit quote on the quote request. | — |
|
|
93
111
|
| `makea-cli admin create user` | write(never) | `POST /admin/users/create` | register a user and confirm the Cognito account in one step (no verification email). Allowed --user-type values: "Fas… | `create-user` |
|
|
94
112
|
| `makea-cli admin delete about` | write(ask) | `DELETE /admin/about/{target}/{key}` | remove one About you line (`--user` / `--supplier`); it is not guessed again. --reason required. | — |
|
|
113
|
+
| `makea-cli admin delete consignment` | write(ask) | `DELETE /admin/{production_orders\|shipping_orders}/{id}/consignments/{consignment_id}` | remove a lot entered by mistake. A delivered lot cannot be removed. | — |
|
|
114
|
+
| `makea-cli admin delete custom-step` | write(ask) | `DELETE /admin/products/{product_id}/order_flow/custom_steps/{step_id}` | remove an added step while nothing was sent or uploaded on it; otherwise skip it. | — |
|
|
95
115
|
| `makea-cli admin delete ship-log` | write(ask) | `DELETE /admin/ship-log/deploys/{deploy_id}` | remove a Ship log entry recorded by mistake, with its recordings. | — |
|
|
96
116
|
| `makea-cli admin delete feature-flag` | write(ask) | `DELETE /admin/feature-flags/{key}` | remove a flag. Every check of it then reads false, so delete it only once the code that reads it is gone. | — |
|
|
97
117
|
| `makea-cli admin delete library-element` | write(never) | `DELETE /admin/designer/{user_id}/library_components/{component_id}` | remove a component from the designer's org library. | `library-delete` |
|
|
@@ -116,6 +136,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
116
136
|
| `makea-cli admin get playbook-preview` | read | `GET /admin/playbook/preview` | the playbook block one AI surface would get for a person or factory, and every rule left out with its reason; --product previews a conversation about one product, --rule answers for one rule. | — |
|
|
117
137
|
| `makea-cli admin get product-status` | read | `GET /admin/products/{product_id}/status` | where the product is: stage · step · owner for each supplier on it (the shared status model), plus the step catalog. | — |
|
|
118
138
|
| `makea-cli admin get product-step` | read | `GET /admin/products/{product_id}/suppliers/{supplier_id}/change_step` | the step one factory is at on a product and the steps admin update product-step can move it to (options; money steps are listed but never selectable). | — |
|
|
139
|
+
| `makea-cli admin get order-flow` | read | `GET /admin/products/{product_id}/order_flow` | an order's steps by stage: state, whose move it is, dates, key dates, factory names; added steps carry `custom`. | — |
|
|
119
140
|
| `makea-cli admin get production-order` | read | `GET /admin/production_orders/{production_order_id}/details` | one production (or restock) order in full: items, status, progress steps, tracking, notes, documents and linked suppliers. For only its pricing use admin get production-pricing. | — |
|
|
120
141
|
| `makea-cli admin get production-pricing` | read | `GET /admin/production_orders/{id}/details` | show a production order's price tiers, MOQ, sizes/colours, pricing groups and cart coverage. | `production-pricing-show` |
|
|
121
142
|
| `makea-cli admin get quote-request` | read | `GET /admin/quote_requests/{quote_request_id}` | one quote request in full. | — |
|
|
@@ -129,6 +150,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
129
150
|
| `makea-cli admin get top-clicks` | read | `POST /admin/analytics/query` | which buttons/elements get clicked most. | `analytics-top-clicks` |
|
|
130
151
|
| `makea-cli admin get top-features` | read | `POST /admin/analytics/query` | a quick map of which features get used most. | `analytics-top-features` |
|
|
131
152
|
| `makea-cli admin get user` | read | `GET /admin/user-profiles/{user_id}` | one account's profile (Cognito sub as id). | — |
|
|
153
|
+
| `makea-cli admin list consignments` | read | `GET /admin/{production_orders\|shipping_orders}/{id}/consignments` | the lots a shipment left the factory in, each with its tracking number, plus counts: pieces ordered, booked and still to ship, and how many lots landed. | — |
|
|
132
154
|
| `makea-cli admin list feature-flag` | read | `GET /admin/feature-flags` | every flag: global switch, default value, and the accounts it is on for (id, email, name). | — |
|
|
133
155
|
| `makea-cli admin list library-element` | read | `GET /admin/designer/{user_id}/library_components` | list a designer's tech-pack library (org-fanned). Optional --section scopes to one type. | `library-list` |
|
|
134
156
|
| `makea-cli admin list growth-snapshot` | read | `GET /admin/growth/snapshots` | published Growth Analysis snapshots, newest first (the change log). | — |
|
|
@@ -153,6 +175,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
153
175
|
| `makea-cli admin set production-variants` | write(ask) | `POST /admin/production_orders/{id}/details/update` | Set a production order's available sizes and colours (the grid the buyer's cart and every pricing group's cart keys a… | `production-variants-set` |
|
|
154
176
|
| `makea-cli admin set sampling-order-tracking` | write(ask) | `PUT /admin/sampling_orders/{sampling_order_id}/tracking` | the sample's parcel: tracking number, URL, shipping method, carrier. Only what you pass is changed; an empty string clears a field. | — |
|
|
155
177
|
| `makea-cli admin submit quote` | write(ask) | `POST /admin/quote_requests/{quote_request_id}/submit_quote` | admin submits a new quote (link) to a quote request. Pricing groups cannot be sent here (the submit endpoint ignores … | `submit-supplier-quote` |
|
|
178
|
+
| `makea-cli admin submit custom-step` | write(ask) | `POST /admin/products/{product_id}/order_flow/custom_steps/{step_id}/{move}` | make an added step's move (`--move done\|upload\|submit\|approve\|send-back\|skip`) as makea, or `--as supplier` for the step's factory (done, upload, submit); `--file` uploads under the brand. | — |
|
|
156
179
|
| `makea-cli admin update about` | write(ask) | `PATCH /admin/about/{target}/{key}` | add or reword one About you line (stands as the account's own words); `--restore` brings a removed one back. --reason required. | — |
|
|
157
180
|
| `makea-cli admin update about-pause` | write(ask) | `POST /admin/about/{target}/pause` | stop (or `--resume`) Beeboo using an account's About you. --reason required. | — |
|
|
158
181
|
| `makea-cli admin update feature-flag` | write(ask) | `PATCH /admin/feature-flags/{key}` | flip the global switch, edit the description or default value, or add / remove one account on the allow-list (by user id; find it with admin list user). | — |
|
|
@@ -168,6 +191,8 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
168
191
|
| `makea-cli admin update shipping-order` | write(ask) | `PUT /admin/shipping_orders/{shipping_order_id}/status` | Change a shipment: --status (PUT .../status), tracking flags (POST .../tracking), --address (PUT .../shipping-address… | — |
|
|
169
192
|
| `makea-cli admin update supplier` | write(ask) | `PUT /admin/supplier/update_supplier` | update an existing supplier from a JSON file (admin). Run `makea-cli get-supplier-profile-schema` FIRST to get the fi… | `update-supplier` |
|
|
170
193
|
| `makea-cli admin update task` | write(ask) | `POST /admin/tasks/{task_id}/{done\|dismiss\|note}` | close a Makea task with a note: `--done` once handled (a held lesson's `--reason` goes to Beeboo's next reading), `--dismiss`, or `--dismiss --wrong` when it should never have been raised; `--note` alone adds a note and leaves it open. | — |
|
|
194
|
+
| `makea-cli admin update consignment` | write(ask) | `PUT /admin/{production_orders\|shipping_orders}/{id}/consignments/{consignment_id}` | edit one lot; `--delivered` marks it delivered through the tracking sweep path (a middle lot tells the brand in-app and on WhatsApp, the last one delivers the order); `--silent` tells nobody. | — |
|
|
195
|
+
| `makea-cli admin update custom-step` | write(ask) | `PATCH /admin/products/{product_id}/order_flow/custom_steps/{step_id}` | change an added step that is not done or skipped; only the options given, including `--placement` and `--joins`. | — |
|
|
171
196
|
| `makea-cli admin update ship-log` | write(ask) | `PATCH /admin/ship-log/deploys/{deploy_id}` | fix a Ship log entry's title, summary or watch note; `--media` attaches more recordings. | — |
|
|
172
197
|
| `makea-cli admin update tech-spec` | write(ask) | `POST /admin/products/{id}/technical-specifications` | persist specs from a JSON file. | `save-product-tech-spec` |
|
|
173
198
|
| `makea-cli admin update tracking-status` | write(ask) | `POST /admin/tracking/carrier_status` | apply a carrier status looked up by hand (tracking-sweep skill) to one order: status, fan-out, delivered emails (--silent: state only). | — |
|
|
@@ -187,6 +212,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
187
212
|
|---|---|---|---|---|
|
|
188
213
|
| `makea-cli designer create checkout` | write(ask) | `POST /designer/payments/basket/create-session` | a Stripe checkout link for one or more charges. --key repeats: sampling:<sampling_order_id>, production:<production_o… | — |
|
|
189
214
|
| `makea-cli designer create collection` | write(auto) | `POST /designer/collections/create` | create or update a designer collection. | `designer-create-collection` |
|
|
215
|
+
| `makea-cli designer create custom-step` | write(ask) | `POST /designer/products/{product_id}/order_flow/custom_steps` | add a step to your order: `--after`, `--placement inline\|alongside\|beside` (default alongside), `--joins` / `--no-joins`, `--who`, `--done-when`, due, `--note`. | — |
|
|
190
216
|
| `makea-cli designer create library-element` | write(auto) | `POST /designer/library_components` | add a fabric, trim or other part to the brand's library; --document attaches a photo or data sheet, --draft when required fields are unknown. | — |
|
|
191
217
|
| `makea-cli designer create note` | write(ask) | `POST /designer/products/{product_id}/notes` | post a message into a product's conversation. | — |
|
|
192
218
|
| `makea-cli designer create pack-file` | write(auto) | `POST /designer/products/{product_id}/tech_spec/files` | put an uploaded file on a tech pack section; a pattern file (DXF, RUL, PLT) goes on Patterns when no section is named. | — |
|
|
@@ -229,6 +255,10 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
229
255
|
| `makea-cli designer update product` | write(auto) | `POST /designer/product/update_basic_info` | patch fields on a product. --cover-image / --back-image take a document id and are what the assistant's set_product_i… | — |
|
|
230
256
|
| `makea-cli designer update production-order` | write(ask) | `POST /designer/production_orders/{production_order_id}/complete` | POST /designer/production_orders/{id}/complete, or PUT the order to re-pick which supplier links it covers (--links-f… | — |
|
|
231
257
|
| `makea-cli designer create proposal` | write(auto) | `POST /designer/products/{product_id}/tech_spec/proposals` | propose a tech-pack change as a card on the field it changes; the user applies it. Name section/field as `get tech-pack --readable` shows them; --item / --entry pick a row, --was a line. | — |
|
|
258
|
+
| `makea-cli designer delete custom-step` | write(ask) | `DELETE /designer/products/{product_id}/order_flow/custom_steps/{step_id}` | remove a step you added while nothing was sent on it; the steps after it close up. | — |
|
|
259
|
+
| `makea-cli designer get order-flow` | read | `GET /designer/products/{product_id}/order_flow` | your order's steps, the branch/join moves of lines added alongside, and what each step `waits_for`. | — |
|
|
260
|
+
| `makea-cli designer submit custom-step` | write(ask) | `POST /designer/products/{product_id}/order_flow/custom_steps/{step_id}/{move}` | your move on an added step: done, upload, approve, send-back (`--comment`), skip (`--reason`). | — |
|
|
261
|
+
| `makea-cli designer update custom-step` | write(ask) | `PATCH /designer/products/{product_id}/order_flow/custom_steps/{step_id}` | change a step you added, including where it goes (`--after`, `--placement`, `--joins`). | — |
|
|
232
262
|
| `makea-cli designer update proposal` | write(ask) | `POST /designer/beeboo_proposals/approve` | apply one spec change the assistant proposed. This edits the pack, so read the proposal first. | — |
|
|
233
263
|
| `makea-cli designer update sampling-order` | write(never) | `POST /designer/sampling_orders/{sampling_order_id}/cancel` | cancel a sample order. Graded `never`: an agent must not do this on its own, a person runs it. | — |
|
|
234
264
|
| `makea-cli designer update shipping-order` | write(ask) | `POST /designer/shipping_orders/{shipping_order_id}/confirm_receive` | say the goods arrived. The backend accepts this only while the shipment is IN_TRANSIT. | — |
|
|
@@ -243,18 +273,23 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
243
273
|
| `makea-cli supplier create note` | write(ask) | `POST /supplier/products/{id}/channels/{key}/notes` | post a message into a product channel you are part of. | — |
|
|
244
274
|
| `makea-cli supplier download document` | read | `GET /supplier/document/download` | save a document you are allowed to read. | — |
|
|
245
275
|
| `makea-cli supplier get file` | read | local (makea_cli.file_reader) | read a pattern (DXF/RUL/PLT), artwork (AI/EPS/PSD/SVG), embroidery (PES/DST/EMB), ZIP or AVIF/TIFF file on this machine; saves PNG pictures of what it draws next to it. No API call. | — |
|
|
276
|
+
| `makea-cli supplier get order-flow` | read | `GET /supplier/products/{product_id}/order_flow` | your read of an order: request, one row per quote, your sample and bulk steps, holds (`waits_for`). | — |
|
|
246
277
|
| `makea-cli supplier get pack` | read | `GET /supplier/quote_requests/{id}/technical-specifications` | the tech pack for an RFQ, as the factory is allowed to see it (`--readable`: labels, values and blank essentials only). | — |
|
|
247
278
|
| `makea-cli supplier get pack-changes` | read | `GET /supplier/products/{product_id}/specification-change-history` | what changed in the pack since you quoted, field by field. | — |
|
|
248
279
|
| `makea-cli supplier get profile` | read | `GET /supplier/profile` | your own supplier profile. | — |
|
|
249
280
|
| `makea-cli supplier get rfq` | read | `GET /supplier/quote_requests` | one RFQ in full. | — |
|
|
250
281
|
| `makea-cli supplier list action` | read | `GET /supplier/actions` | what the platform is waiting on you for (pending actions). | — |
|
|
251
282
|
| `makea-cli supplier list channel` | read | `GET /supplier/products/{product_id}/channels` | the channels you are part of on a product. | — |
|
|
283
|
+
| `makea-cli supplier list custom-step` | read | `GET /supplier/products/{product_id}/custom_steps` | the steps the brand added that you do. | — |
|
|
252
284
|
| `makea-cli supplier list note` | read | `GET /supplier/products/{product_id}/channels/{channel_key}/notes` | the conversation in one channel. | — |
|
|
253
285
|
| `makea-cli supplier list production-order` | read | `GET /supplier/production_orders` | your production orders, optionally for one RFQ. | — |
|
|
254
286
|
| `makea-cli supplier list quote-edit-request` | read | `GET /supplier/quote_requests/{quote_request_id}/quote_edit_requests` | changes the brand has asked you to make to a quote you already sent. | — |
|
|
255
287
|
| `makea-cli supplier list rfq` | read | `GET /supplier/quote_requests` | the RFQs (quote requests) sent to you. | — |
|
|
256
288
|
| `makea-cli supplier list task` | read | `GET /supplier/tasks` | your onboarding and per-order to-dos. | — |
|
|
289
|
+
| `makea-cli supplier submit custom-step` | write(ask) | `POST /supplier/products/{product_id}/custom_steps/{step_id}/{move}` | your move on an added step: done, upload, or submit a round (`--file`, `--note`). Adding or changing steps is the brand's. | — |
|
|
290
|
+
| `makea-cli supplier submit order-acceptance` | write(ask) | `POST /supplier/production_orders/{production_order_id}/lead_time` | accept the order after the deposit with the date bulk will be done (`--completion-date`). | — |
|
|
257
291
|
| `makea-cli supplier submit quote` | write(ask) | `POST /supplier/quote_requests/{id}/submit_quote` | submit your quote for an RFQ. --file is the supplier link payload as JSON (same shape the web form posts); run with -… | — |
|
|
292
|
+
| `makea-cli supplier submit sample-shipment` | write(ask) | `POST /supplier/sampling_orders/{sampling_order_id}/ship` | send the sample: `--carrier`, `--tracking-number`, `--tracking-url`. | — |
|
|
258
293
|
| `makea-cli supplier update action` | write(auto) | `POST /supplier/actions/{action_id}/{acknowledge\|snooze}` | respond to a pending action. Acknowledging says you have seen it; the action still closes on the fact it asks for. | — |
|
|
259
294
|
| `makea-cli supplier update quote` | write(ask) | `POST /supplier/quote_requests/{quote_request_id}/links/{link_id}/edit` | revise a quote you already sent. --file is the same payload shape as submit; --dry-run first. | — |
|
|
260
295
|
| `makea-cli supplier update rfq` | write(ask) | `POST /supplier/quote_requests/{quote_request_id}/{status\|archive\|accept_terms}` | answer an RFQ. --status accepts or declines the invitation; --archive takes it off your board; --accept-terms accepts… | — |
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: makea-cli
|
|
3
|
-
Version: 0.2.34
|
|
4
|
-
Summary: Makea admin CLI (browser login + Makea admin HTTP API)
|
|
5
|
-
Requires-Python: >=3.10
|
|
6
|
-
Requires-Dist: click<9,>=8.1
|
|
7
|
-
Requires-Dist: httpx>=0.27
|
|
8
|
-
Requires-Dist: olefile>=0.47
|
|
9
|
-
Requires-Dist: pillow>=11.3
|
|
10
|
-
Requires-Dist: platformdirs>=4.2
|
|
11
|
-
Requires-Dist: pyembroidery>=1.5
|
|
12
|
-
Requires-Dist: pypdfium2>=4.30
|
|
13
|
-
Requires-Dist: rich>=13.7
|
|
14
|
-
Requires-Dist: typer<0.25,>=0.12
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
|
|
17
1
|
# makea-cli
|
|
18
2
|
|
|
19
3
|
给 **Makea** 同事(admin)、品牌(designer)和工厂(supplier)用的命令行工具,也是 Beeboo agent 的动作面:连的是线上正式环境,**装好就能用,不用配环境变量、不用改配置文件**。
|
|
@@ -94,6 +78,8 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
94
78
|
| 命令 | 读/写 | 后端 | 说明 | 旧名 |
|
|
95
79
|
|---|---|---|---|---|
|
|
96
80
|
| `makea-cli admin backfill supplier-id` | write(never) | `POST /admin/supplier/backfill_supplier_id_with_quote_requests` | Migrate supplier_id from a wrong UUID to the Cognito user sub (user_id): profile + Cognito supplierReferenceId, optio… | `backfill-supplier-id` |
|
|
81
|
+
| `makea-cli admin create consignment` | write(ask) | `POST /admin/{production_orders\|shipping_orders}/{id}/consignments` | add one lot leaving the factory with its own tracking number, pieces, cartons, kg and ship date. The lot that brings the pieces up to the order is marked last unless `--last/--not-last` says. | — |
|
|
82
|
+
| `makea-cli admin create custom-step` | write(ask) | `POST /admin/products/{product_id}/order_flow/custom_steps` | add a step to one order as makea: `--label`, `--after` (a step id), `--placement inline\|alongside\|beside`, `--joins` / `--no-joins`, `--who`, `--done-when check\|upload\|send`, due (`--due-date` or `--due-days` + `--due-before`), `--hold` (checks in a production step), `--note`. | — |
|
|
97
83
|
| `makea-cli admin create feature-flag` | write(ask) | `POST /admin/feature-flags` | add a flag (off unless --enabled). An existing key is refused. | — |
|
|
98
84
|
| `makea-cli admin create library-element` | write(auto) | `POST /admin/designer/{user_id}/library_components` | save a reusable component under a designer. Provide --section and --values (see admin get library-schema). | `library-create` |
|
|
99
85
|
| `makea-cli admin create product-note` | write(ask) | `POST /admin/products/{product_id}/notes` | write a note on a product. Without --internal it goes to the brand. | — |
|
|
@@ -108,6 +94,8 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
108
94
|
| `makea-cli admin create supplier-link` | write(ask) | `POST /admin/product/link_supplier` | assign a factory to a product, with no price. A bare assignment is not a quote: no quote email goes out and nothing is priced. To quote, use admin submit quote on the quote request. | — |
|
|
109
95
|
| `makea-cli admin create user` | write(never) | `POST /admin/users/create` | register a user and confirm the Cognito account in one step (no verification email). Allowed --user-type values: "Fas… | `create-user` |
|
|
110
96
|
| `makea-cli admin delete about` | write(ask) | `DELETE /admin/about/{target}/{key}` | remove one About you line (`--user` / `--supplier`); it is not guessed again. --reason required. | — |
|
|
97
|
+
| `makea-cli admin delete consignment` | write(ask) | `DELETE /admin/{production_orders\|shipping_orders}/{id}/consignments/{consignment_id}` | remove a lot entered by mistake. A delivered lot cannot be removed. | — |
|
|
98
|
+
| `makea-cli admin delete custom-step` | write(ask) | `DELETE /admin/products/{product_id}/order_flow/custom_steps/{step_id}` | remove an added step while nothing was sent or uploaded on it; otherwise skip it. | — |
|
|
111
99
|
| `makea-cli admin delete ship-log` | write(ask) | `DELETE /admin/ship-log/deploys/{deploy_id}` | remove a Ship log entry recorded by mistake, with its recordings. | — |
|
|
112
100
|
| `makea-cli admin delete feature-flag` | write(ask) | `DELETE /admin/feature-flags/{key}` | remove a flag. Every check of it then reads false, so delete it only once the code that reads it is gone. | — |
|
|
113
101
|
| `makea-cli admin delete library-element` | write(never) | `DELETE /admin/designer/{user_id}/library_components/{component_id}` | remove a component from the designer's org library. | `library-delete` |
|
|
@@ -132,6 +120,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
132
120
|
| `makea-cli admin get playbook-preview` | read | `GET /admin/playbook/preview` | the playbook block one AI surface would get for a person or factory, and every rule left out with its reason; --product previews a conversation about one product, --rule answers for one rule. | — |
|
|
133
121
|
| `makea-cli admin get product-status` | read | `GET /admin/products/{product_id}/status` | where the product is: stage · step · owner for each supplier on it (the shared status model), plus the step catalog. | — |
|
|
134
122
|
| `makea-cli admin get product-step` | read | `GET /admin/products/{product_id}/suppliers/{supplier_id}/change_step` | the step one factory is at on a product and the steps admin update product-step can move it to (options; money steps are listed but never selectable). | — |
|
|
123
|
+
| `makea-cli admin get order-flow` | read | `GET /admin/products/{product_id}/order_flow` | an order's steps by stage: state, whose move it is, dates, key dates, factory names; added steps carry `custom`. | — |
|
|
135
124
|
| `makea-cli admin get production-order` | read | `GET /admin/production_orders/{production_order_id}/details` | one production (or restock) order in full: items, status, progress steps, tracking, notes, documents and linked suppliers. For only its pricing use admin get production-pricing. | — |
|
|
136
125
|
| `makea-cli admin get production-pricing` | read | `GET /admin/production_orders/{id}/details` | show a production order's price tiers, MOQ, sizes/colours, pricing groups and cart coverage. | `production-pricing-show` |
|
|
137
126
|
| `makea-cli admin get quote-request` | read | `GET /admin/quote_requests/{quote_request_id}` | one quote request in full. | — |
|
|
@@ -145,6 +134,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
145
134
|
| `makea-cli admin get top-clicks` | read | `POST /admin/analytics/query` | which buttons/elements get clicked most. | `analytics-top-clicks` |
|
|
146
135
|
| `makea-cli admin get top-features` | read | `POST /admin/analytics/query` | a quick map of which features get used most. | `analytics-top-features` |
|
|
147
136
|
| `makea-cli admin get user` | read | `GET /admin/user-profiles/{user_id}` | one account's profile (Cognito sub as id). | — |
|
|
137
|
+
| `makea-cli admin list consignments` | read | `GET /admin/{production_orders\|shipping_orders}/{id}/consignments` | the lots a shipment left the factory in, each with its tracking number, plus counts: pieces ordered, booked and still to ship, and how many lots landed. | — |
|
|
148
138
|
| `makea-cli admin list feature-flag` | read | `GET /admin/feature-flags` | every flag: global switch, default value, and the accounts it is on for (id, email, name). | — |
|
|
149
139
|
| `makea-cli admin list library-element` | read | `GET /admin/designer/{user_id}/library_components` | list a designer's tech-pack library (org-fanned). Optional --section scopes to one type. | `library-list` |
|
|
150
140
|
| `makea-cli admin list growth-snapshot` | read | `GET /admin/growth/snapshots` | published Growth Analysis snapshots, newest first (the change log). | — |
|
|
@@ -169,6 +159,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
169
159
|
| `makea-cli admin set production-variants` | write(ask) | `POST /admin/production_orders/{id}/details/update` | Set a production order's available sizes and colours (the grid the buyer's cart and every pricing group's cart keys a… | `production-variants-set` |
|
|
170
160
|
| `makea-cli admin set sampling-order-tracking` | write(ask) | `PUT /admin/sampling_orders/{sampling_order_id}/tracking` | the sample's parcel: tracking number, URL, shipping method, carrier. Only what you pass is changed; an empty string clears a field. | — |
|
|
171
161
|
| `makea-cli admin submit quote` | write(ask) | `POST /admin/quote_requests/{quote_request_id}/submit_quote` | admin submits a new quote (link) to a quote request. Pricing groups cannot be sent here (the submit endpoint ignores … | `submit-supplier-quote` |
|
|
162
|
+
| `makea-cli admin submit custom-step` | write(ask) | `POST /admin/products/{product_id}/order_flow/custom_steps/{step_id}/{move}` | make an added step's move (`--move done\|upload\|submit\|approve\|send-back\|skip`) as makea, or `--as supplier` for the step's factory (done, upload, submit); `--file` uploads under the brand. | — |
|
|
172
163
|
| `makea-cli admin update about` | write(ask) | `PATCH /admin/about/{target}/{key}` | add or reword one About you line (stands as the account's own words); `--restore` brings a removed one back. --reason required. | — |
|
|
173
164
|
| `makea-cli admin update about-pause` | write(ask) | `POST /admin/about/{target}/pause` | stop (or `--resume`) Beeboo using an account's About you. --reason required. | — |
|
|
174
165
|
| `makea-cli admin update feature-flag` | write(ask) | `PATCH /admin/feature-flags/{key}` | flip the global switch, edit the description or default value, or add / remove one account on the allow-list (by user id; find it with admin list user). | — |
|
|
@@ -184,6 +175,8 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
184
175
|
| `makea-cli admin update shipping-order` | write(ask) | `PUT /admin/shipping_orders/{shipping_order_id}/status` | Change a shipment: --status (PUT .../status), tracking flags (POST .../tracking), --address (PUT .../shipping-address… | — |
|
|
185
176
|
| `makea-cli admin update supplier` | write(ask) | `PUT /admin/supplier/update_supplier` | update an existing supplier from a JSON file (admin). Run `makea-cli get-supplier-profile-schema` FIRST to get the fi… | `update-supplier` |
|
|
186
177
|
| `makea-cli admin update task` | write(ask) | `POST /admin/tasks/{task_id}/{done\|dismiss\|note}` | close a Makea task with a note: `--done` once handled (a held lesson's `--reason` goes to Beeboo's next reading), `--dismiss`, or `--dismiss --wrong` when it should never have been raised; `--note` alone adds a note and leaves it open. | — |
|
|
178
|
+
| `makea-cli admin update consignment` | write(ask) | `PUT /admin/{production_orders\|shipping_orders}/{id}/consignments/{consignment_id}` | edit one lot; `--delivered` marks it delivered through the tracking sweep path (a middle lot tells the brand in-app and on WhatsApp, the last one delivers the order); `--silent` tells nobody. | — |
|
|
179
|
+
| `makea-cli admin update custom-step` | write(ask) | `PATCH /admin/products/{product_id}/order_flow/custom_steps/{step_id}` | change an added step that is not done or skipped; only the options given, including `--placement` and `--joins`. | — |
|
|
187
180
|
| `makea-cli admin update ship-log` | write(ask) | `PATCH /admin/ship-log/deploys/{deploy_id}` | fix a Ship log entry's title, summary or watch note; `--media` attaches more recordings. | — |
|
|
188
181
|
| `makea-cli admin update tech-spec` | write(ask) | `POST /admin/products/{id}/technical-specifications` | persist specs from a JSON file. | `save-product-tech-spec` |
|
|
189
182
|
| `makea-cli admin update tracking-status` | write(ask) | `POST /admin/tracking/carrier_status` | apply a carrier status looked up by hand (tracking-sweep skill) to one order: status, fan-out, delivered emails (--silent: state only). | — |
|
|
@@ -203,6 +196,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
203
196
|
|---|---|---|---|---|
|
|
204
197
|
| `makea-cli designer create checkout` | write(ask) | `POST /designer/payments/basket/create-session` | a Stripe checkout link for one or more charges. --key repeats: sampling:<sampling_order_id>, production:<production_o… | — |
|
|
205
198
|
| `makea-cli designer create collection` | write(auto) | `POST /designer/collections/create` | create or update a designer collection. | `designer-create-collection` |
|
|
199
|
+
| `makea-cli designer create custom-step` | write(ask) | `POST /designer/products/{product_id}/order_flow/custom_steps` | add a step to your order: `--after`, `--placement inline\|alongside\|beside` (default alongside), `--joins` / `--no-joins`, `--who`, `--done-when`, due, `--note`. | — |
|
|
206
200
|
| `makea-cli designer create library-element` | write(auto) | `POST /designer/library_components` | add a fabric, trim or other part to the brand's library; --document attaches a photo or data sheet, --draft when required fields are unknown. | — |
|
|
207
201
|
| `makea-cli designer create note` | write(ask) | `POST /designer/products/{product_id}/notes` | post a message into a product's conversation. | — |
|
|
208
202
|
| `makea-cli designer create pack-file` | write(auto) | `POST /designer/products/{product_id}/tech_spec/files` | put an uploaded file on a tech pack section; a pattern file (DXF, RUL, PLT) goes on Patterns when no section is named. | — |
|
|
@@ -245,6 +239,10 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
245
239
|
| `makea-cli designer update product` | write(auto) | `POST /designer/product/update_basic_info` | patch fields on a product. --cover-image / --back-image take a document id and are what the assistant's set_product_i… | — |
|
|
246
240
|
| `makea-cli designer update production-order` | write(ask) | `POST /designer/production_orders/{production_order_id}/complete` | POST /designer/production_orders/{id}/complete, or PUT the order to re-pick which supplier links it covers (--links-f… | — |
|
|
247
241
|
| `makea-cli designer create proposal` | write(auto) | `POST /designer/products/{product_id}/tech_spec/proposals` | propose a tech-pack change as a card on the field it changes; the user applies it. Name section/field as `get tech-pack --readable` shows them; --item / --entry pick a row, --was a line. | — |
|
|
242
|
+
| `makea-cli designer delete custom-step` | write(ask) | `DELETE /designer/products/{product_id}/order_flow/custom_steps/{step_id}` | remove a step you added while nothing was sent on it; the steps after it close up. | — |
|
|
243
|
+
| `makea-cli designer get order-flow` | read | `GET /designer/products/{product_id}/order_flow` | your order's steps, the branch/join moves of lines added alongside, and what each step `waits_for`. | — |
|
|
244
|
+
| `makea-cli designer submit custom-step` | write(ask) | `POST /designer/products/{product_id}/order_flow/custom_steps/{step_id}/{move}` | your move on an added step: done, upload, approve, send-back (`--comment`), skip (`--reason`). | — |
|
|
245
|
+
| `makea-cli designer update custom-step` | write(ask) | `PATCH /designer/products/{product_id}/order_flow/custom_steps/{step_id}` | change a step you added, including where it goes (`--after`, `--placement`, `--joins`). | — |
|
|
248
246
|
| `makea-cli designer update proposal` | write(ask) | `POST /designer/beeboo_proposals/approve` | apply one spec change the assistant proposed. This edits the pack, so read the proposal first. | — |
|
|
249
247
|
| `makea-cli designer update sampling-order` | write(never) | `POST /designer/sampling_orders/{sampling_order_id}/cancel` | cancel a sample order. Graded `never`: an agent must not do this on its own, a person runs it. | — |
|
|
250
248
|
| `makea-cli designer update shipping-order` | write(ask) | `POST /designer/shipping_orders/{shipping_order_id}/confirm_receive` | say the goods arrived. The backend accepts this only while the shipment is IN_TRANSIT. | — |
|
|
@@ -259,18 +257,23 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
259
257
|
| `makea-cli supplier create note` | write(ask) | `POST /supplier/products/{id}/channels/{key}/notes` | post a message into a product channel you are part of. | — |
|
|
260
258
|
| `makea-cli supplier download document` | read | `GET /supplier/document/download` | save a document you are allowed to read. | — |
|
|
261
259
|
| `makea-cli supplier get file` | read | local (makea_cli.file_reader) | read a pattern (DXF/RUL/PLT), artwork (AI/EPS/PSD/SVG), embroidery (PES/DST/EMB), ZIP or AVIF/TIFF file on this machine; saves PNG pictures of what it draws next to it. No API call. | — |
|
|
260
|
+
| `makea-cli supplier get order-flow` | read | `GET /supplier/products/{product_id}/order_flow` | your read of an order: request, one row per quote, your sample and bulk steps, holds (`waits_for`). | — |
|
|
262
261
|
| `makea-cli supplier get pack` | read | `GET /supplier/quote_requests/{id}/technical-specifications` | the tech pack for an RFQ, as the factory is allowed to see it (`--readable`: labels, values and blank essentials only). | — |
|
|
263
262
|
| `makea-cli supplier get pack-changes` | read | `GET /supplier/products/{product_id}/specification-change-history` | what changed in the pack since you quoted, field by field. | — |
|
|
264
263
|
| `makea-cli supplier get profile` | read | `GET /supplier/profile` | your own supplier profile. | — |
|
|
265
264
|
| `makea-cli supplier get rfq` | read | `GET /supplier/quote_requests` | one RFQ in full. | — |
|
|
266
265
|
| `makea-cli supplier list action` | read | `GET /supplier/actions` | what the platform is waiting on you for (pending actions). | — |
|
|
267
266
|
| `makea-cli supplier list channel` | read | `GET /supplier/products/{product_id}/channels` | the channels you are part of on a product. | — |
|
|
267
|
+
| `makea-cli supplier list custom-step` | read | `GET /supplier/products/{product_id}/custom_steps` | the steps the brand added that you do. | — |
|
|
268
268
|
| `makea-cli supplier list note` | read | `GET /supplier/products/{product_id}/channels/{channel_key}/notes` | the conversation in one channel. | — |
|
|
269
269
|
| `makea-cli supplier list production-order` | read | `GET /supplier/production_orders` | your production orders, optionally for one RFQ. | — |
|
|
270
270
|
| `makea-cli supplier list quote-edit-request` | read | `GET /supplier/quote_requests/{quote_request_id}/quote_edit_requests` | changes the brand has asked you to make to a quote you already sent. | — |
|
|
271
271
|
| `makea-cli supplier list rfq` | read | `GET /supplier/quote_requests` | the RFQs (quote requests) sent to you. | — |
|
|
272
272
|
| `makea-cli supplier list task` | read | `GET /supplier/tasks` | your onboarding and per-order to-dos. | — |
|
|
273
|
+
| `makea-cli supplier submit custom-step` | write(ask) | `POST /supplier/products/{product_id}/custom_steps/{step_id}/{move}` | your move on an added step: done, upload, or submit a round (`--file`, `--note`). Adding or changing steps is the brand's. | — |
|
|
274
|
+
| `makea-cli supplier submit order-acceptance` | write(ask) | `POST /supplier/production_orders/{production_order_id}/lead_time` | accept the order after the deposit with the date bulk will be done (`--completion-date`). | — |
|
|
273
275
|
| `makea-cli supplier submit quote` | write(ask) | `POST /supplier/quote_requests/{id}/submit_quote` | submit your quote for an RFQ. --file is the supplier link payload as JSON (same shape the web form posts); run with -… | — |
|
|
276
|
+
| `makea-cli supplier submit sample-shipment` | write(ask) | `POST /supplier/sampling_orders/{sampling_order_id}/ship` | send the sample: `--carrier`, `--tracking-number`, `--tracking-url`. | — |
|
|
274
277
|
| `makea-cli supplier update action` | write(auto) | `POST /supplier/actions/{action_id}/{acknowledge\|snooze}` | respond to a pending action. Acknowledging says you have seen it; the action still closes on the fact it asks for. | — |
|
|
275
278
|
| `makea-cli supplier update quote` | write(ask) | `POST /supplier/quote_requests/{quote_request_id}/links/{link_id}/edit` | revise a quote you already sent. --file is the same payload shape as submit; --dry-run first. | — |
|
|
276
279
|
| `makea-cli supplier update rfq` | write(ask) | `POST /supplier/quote_requests/{quote_request_id}/{status\|archive\|accept_terms}` | answer an RFQ. --status accepts or declines the invitation; --archive takes it off your board; --accept-terms accepts… | — |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.37"
|
|
@@ -811,6 +811,56 @@ def admin_update_shipping_order_cargo(shipping_order_id: str, cargo: dict[str, A
|
|
|
811
811
|
return put_json(f"/admin/shipping_orders/{shipping_order_id}/cargo", cargo)
|
|
812
812
|
|
|
813
813
|
|
|
814
|
+
def _consignments_path(shipping_order_id: str | None, production_order_id: str | None) -> str:
|
|
815
|
+
if bool(shipping_order_id) == bool(production_order_id):
|
|
816
|
+
raise ValueError("pass exactly one of shipping_order_id / production_order_id")
|
|
817
|
+
if shipping_order_id:
|
|
818
|
+
return f"/admin/shipping_orders/{shipping_order_id}/consignments"
|
|
819
|
+
return f"/admin/production_orders/{production_order_id}/consignments"
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
def admin_list_consignments(
|
|
823
|
+
*, shipping_order_id: str | None = None, production_order_id: str | None = None
|
|
824
|
+
) -> Any:
|
|
825
|
+
"""GET .../consignments — the lots a shipment left in, with counts.
|
|
826
|
+
|
|
827
|
+
A production order id resolves to the shipping order its goods ride on."""
|
|
828
|
+
return get_json(_consignments_path(shipping_order_id, production_order_id))
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
def admin_add_consignment(
|
|
832
|
+
body: dict[str, Any],
|
|
833
|
+
*,
|
|
834
|
+
shipping_order_id: str | None = None,
|
|
835
|
+
production_order_id: str | None = None,
|
|
836
|
+
) -> Any:
|
|
837
|
+
"""POST .../consignments — one lot leaving the factory, with its tracking number."""
|
|
838
|
+
return post_json(_consignments_path(shipping_order_id, production_order_id), body)
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
def admin_update_consignment(
|
|
842
|
+
consignment_id: str,
|
|
843
|
+
body: dict[str, Any],
|
|
844
|
+
*,
|
|
845
|
+
shipping_order_id: str | None = None,
|
|
846
|
+
production_order_id: str | None = None,
|
|
847
|
+
) -> Any:
|
|
848
|
+
"""PUT .../consignments/{cid} — edit a lot; {"status": "DELIVERED"} marks it delivered."""
|
|
849
|
+
path = _consignments_path(shipping_order_id, production_order_id)
|
|
850
|
+
return put_json(f"{path}/{consignment_id}", body)
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
def admin_delete_consignment(
|
|
854
|
+
consignment_id: str,
|
|
855
|
+
*,
|
|
856
|
+
shipping_order_id: str | None = None,
|
|
857
|
+
production_order_id: str | None = None,
|
|
858
|
+
) -> Any:
|
|
859
|
+
"""DELETE .../consignments/{cid} — remove a lot that has not been delivered."""
|
|
860
|
+
path = _consignments_path(shipping_order_id, production_order_id)
|
|
861
|
+
return delete_json(f"{path}/{consignment_id}")
|
|
862
|
+
|
|
863
|
+
|
|
814
864
|
def admin_delete_shipping_order(shipping_order_id: str) -> Any:
|
|
815
865
|
"""DELETE /admin/shipping_orders/{id}/delete — soft delete; unlinks its orders."""
|
|
816
866
|
return delete_json(f"/admin/shipping_orders/{shipping_order_id}/delete")
|
|
@@ -1382,6 +1432,120 @@ def admin_change_step(product_id: str, supplier_id: str, body: dict[str, Any]) -
|
|
|
1382
1432
|
return post_json(f"/admin/products/{product_id}/suppliers/{supplier_id}/change_step", body)
|
|
1383
1433
|
|
|
1384
1434
|
|
|
1435
|
+
def admin_get_order_flow(product_id: str) -> Any:
|
|
1436
|
+
"""GET /admin/products/{id}/order_flow — the order's steps read for makea, the
|
|
1437
|
+
factories' names and the brand's user id."""
|
|
1438
|
+
return get_json(f"/admin/products/{product_id}/order_flow")
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
def _custom_step_path(product_id: str, step_id: str | None = None) -> str:
|
|
1442
|
+
path = f"/admin/products/{product_id}/order_flow/custom_steps"
|
|
1443
|
+
# A step id carries "#" and "@": encoded whole, as one path segment.
|
|
1444
|
+
return f"{path}/{quote(step_id, safe='')}" if step_id else path
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
def admin_add_custom_step(product_id: str, body: dict[str, Any]) -> Any:
|
|
1448
|
+
"""POST .../order_flow/custom_steps — {label, after, who, completion, due, hold, note,
|
|
1449
|
+
supplier_id?, placement?, joins?}."""
|
|
1450
|
+
return post_json(_custom_step_path(product_id), body)
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
def admin_update_custom_step(product_id: str, step_id: str, body: dict[str, Any]) -> Any:
|
|
1454
|
+
"""PATCH .../order_flow/custom_steps/{step_id} — only the fields given."""
|
|
1455
|
+
return patch_json(_custom_step_path(product_id, step_id), body)
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
def admin_delete_custom_step(product_id: str, step_id: str) -> Any:
|
|
1459
|
+
"""DELETE .../order_flow/custom_steps/{step_id} — only while nothing happened on it."""
|
|
1460
|
+
return delete_json(_custom_step_path(product_id, step_id))
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
def admin_custom_step_move(product_id: str, step_id: str, move: str, body: dict[str, Any]) -> Any:
|
|
1464
|
+
"""POST .../order_flow/custom_steps/{step_id}/{move} — done | upload | submit |
|
|
1465
|
+
approve | send_back | skip, {"as": "makea" | "supplier", files?, note?, comment?,
|
|
1466
|
+
reason?}."""
|
|
1467
|
+
return post_json(f"{_custom_step_path(product_id, step_id)}/{move}", body)
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
# --- an order's steps from the brand's and the factory's own seats -----------------
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
def _designer_step_path(product_id: str, step_id: str | None = None) -> str:
|
|
1474
|
+
path = f"/designer/products/{product_id}/order_flow/custom_steps"
|
|
1475
|
+
return f"{path}/{quote(step_id, safe='')}" if step_id else path
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
def designer_get_order_flow(product_id: str) -> Any:
|
|
1479
|
+
"""GET /designer/products/{id}/order_flow — the order's steps as the brand reads them."""
|
|
1480
|
+
return get_json(f"/designer/products/{product_id}/order_flow")
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
def designer_add_custom_step(product_id: str, body: dict[str, Any]) -> Any:
|
|
1484
|
+
"""POST /designer/products/{id}/order_flow/custom_steps — {label, after, who,
|
|
1485
|
+
completion, due, hold, note, placement?, joins?}."""
|
|
1486
|
+
return post_json(_designer_step_path(product_id), body)
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
def designer_update_custom_step(product_id: str, step_id: str, body: dict[str, Any]) -> Any:
|
|
1490
|
+
"""PATCH /designer/products/{id}/order_flow/custom_steps/{step_id} — the fields given."""
|
|
1491
|
+
return patch_json(_designer_step_path(product_id, step_id), body)
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
def designer_delete_custom_step(product_id: str, step_id: str) -> Any:
|
|
1495
|
+
"""DELETE /designer/products/{id}/order_flow/custom_steps/{step_id}."""
|
|
1496
|
+
return delete_json(_designer_step_path(product_id, step_id))
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
def designer_custom_step_move(
|
|
1500
|
+
product_id: str, step_id: str, move: str, body: dict[str, Any]
|
|
1501
|
+
) -> Any:
|
|
1502
|
+
"""POST /designer/products/{id}/order_flow/custom_steps/{step_id}/{move} — done |
|
|
1503
|
+
upload | approve | send_back | skip."""
|
|
1504
|
+
return post_json(f"{_designer_step_path(product_id, step_id)}/{move}", body)
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
def supplier_get_order_flow(product_id: str) -> Any:
|
|
1508
|
+
"""GET /supplier/products/{id}/order_flow — the factory's own read of the order."""
|
|
1509
|
+
return get_json(f"/supplier/products/{product_id}/order_flow")
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
def supplier_list_custom_steps(product_id: str) -> Any:
|
|
1513
|
+
"""GET /supplier/products/{id}/custom_steps — the added steps the factory does."""
|
|
1514
|
+
return get_json(f"/supplier/products/{product_id}/custom_steps")
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
def supplier_custom_step_move(
|
|
1518
|
+
product_id: str, step_id: str, move: str, body: dict[str, Any]
|
|
1519
|
+
) -> Any:
|
|
1520
|
+
"""POST /supplier/products/{id}/custom_steps/{step_id}/{move} — done | upload | submit."""
|
|
1521
|
+
return post_json(
|
|
1522
|
+
f"/supplier/products/{product_id}/custom_steps/{quote(step_id, safe='')}/{move}", body
|
|
1523
|
+
)
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
def supplier_ship_sample(sampling_order_id: str, body: dict[str, Any]) -> Any:
|
|
1527
|
+
"""POST /supplier/sampling_orders/{id}/ship — {carrier, tracking_number, tracking_url?}."""
|
|
1528
|
+
return post_json(f"/supplier/sampling_orders/{sampling_order_id}/ship", body)
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
def supplier_confirm_production_date(production_order_id: str, body: dict[str, Any]) -> Any:
|
|
1532
|
+
"""POST /supplier/production_orders/{id}/lead_time — {completion_date, note?}: accept
|
|
1533
|
+
the order with the date bulk will be done."""
|
|
1534
|
+
return post_json(f"/supplier/production_orders/{production_order_id}/lead_time", body)
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
def supplier_upload_document(
|
|
1538
|
+
file_path: Path, *, product_id: str, doc_type: str = "NOTE_ATTACHMENT"
|
|
1539
|
+
) -> Any:
|
|
1540
|
+
"""POST /supplier/upload_document — multipart ``file`` with ``product_id`` and
|
|
1541
|
+
``doc_type``; returns the document id."""
|
|
1542
|
+
return post_multipart_with_file(
|
|
1543
|
+
"/supplier/upload_document",
|
|
1544
|
+
file_path=file_path,
|
|
1545
|
+
form_fields={"product_id": product_id, "doc_type": doc_type},
|
|
1546
|
+
)
|
|
1547
|
+
|
|
1548
|
+
|
|
1385
1549
|
def admin_list_product_notes(product_id: str) -> Any:
|
|
1386
1550
|
"""GET /admin/products/{id}/notes — the product's customer notes."""
|
|
1387
1551
|
return get_json(f"/admin/products/{product_id}/notes")
|
|
@@ -15,6 +15,7 @@ from makea_cli.commands.files.cmd import register as register_files
|
|
|
15
15
|
from makea_cli.commands.flags.cmd import register as register_flags
|
|
16
16
|
from makea_cli.commands.library.cmd import register as register_library
|
|
17
17
|
from makea_cli.commands.metrics.cmd import register as register_metrics
|
|
18
|
+
from makea_cli.commands.order_flow.cmd import register as register_order_flow
|
|
18
19
|
from makea_cli.commands.orders.cmd import register as register_orders
|
|
19
20
|
from makea_cli.commands.playbook.cmd import register as register_playbook
|
|
20
21
|
from makea_cli.commands.product.cmd import register as register_product
|
|
@@ -31,6 +32,7 @@ def register_all(app: typer.Typer) -> None:
|
|
|
31
32
|
register_document(app)
|
|
32
33
|
register_supplier(app)
|
|
33
34
|
register_orders(app)
|
|
35
|
+
register_order_flow(app)
|
|
34
36
|
register_product(app)
|
|
35
37
|
register_production(app)
|
|
36
38
|
register_shipping(app)
|