makea-cli 0.2.31__py3-none-any.whl → 0.2.32__py3-none-any.whl

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/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.2.31"
1
+ __version__ = "0.2.32"
makea_cli/api_client.py CHANGED
@@ -418,9 +418,13 @@ def create_quote_request(
418
418
  message: str | None = None,
419
419
  quote_type: str = "SAMPLING",
420
420
  due_date: str | None = None,
421
+ release_anyway: bool = False,
421
422
  ) -> Any:
422
423
  """
423
424
  POST /admin/supplier/create_quote_request — admin creates a quote request for a supplier.
425
+
426
+ The server holds the request (409 FILES_DISAGREE) while the brand's files
427
+ disagree (TECH-181); ``release_anyway`` sends it regardless.
424
428
  """
425
429
  body: dict[str, Any] = {
426
430
  "supplier_id": supplier_id,
@@ -431,6 +435,8 @@ def create_quote_request(
431
435
  body["message"] = message
432
436
  if due_date is not None:
433
437
  body["due_date"] = due_date
438
+ if release_anyway:
439
+ body["release_anyway"] = True
434
440
  return post_json("/admin/supplier/create_quote_request", body)
435
441
 
436
442
 
@@ -367,6 +367,11 @@ def register(app: typer.Typer) -> None:
367
367
  "--due-date",
368
368
  help="due_date: optional due date in YYYY-MM-DD format.",
369
369
  ),
370
+ release_anyway: bool = typer.Option(
371
+ False,
372
+ "--release-anyway",
373
+ help="Send even though the brand's files disagree (the server holds the request otherwise, FILES_DISAGREE).",
374
+ ),
370
375
  ) -> None:
371
376
  """
372
377
  Create/send a quote request as admin.
@@ -383,6 +388,7 @@ def register(app: typer.Typer) -> None:
383
388
  message=message,
384
389
  quote_type=qt,
385
390
  due_date=due_date,
391
+ release_anyway=release_anyway,
386
392
  ),
387
393
  )
388
394
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: makea-cli
3
- Version: 0.2.31
3
+ Version: 0.2.32
4
4
  Summary: Makea admin CLI (browser login + Makea admin HTTP API)
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: click<9,>=8.1
@@ -97,7 +97,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
97
97
  | `makea-cli admin create feature-flag` | write(ask) | `POST /admin/feature-flags` | add a flag (off unless --enabled). An existing key is refused. | — |
98
98
  | `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
99
  | `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. | — |
100
- | `makea-cli admin create quote-request` | write(ask) | `POST /admin/supplier/create_quote_request` | create/send a quote request to a supplier for a product (admin). | `create-quote-request` |
100
+ | `makea-cli admin create quote-request` | write(ask) | `POST /admin/supplier/create_quote_request` | create/send a quote request to a supplier for a product (admin). Held (409 FILES_DISAGREE) while the brand's files disagree; --release-anyway sends regardless. | `create-quote-request` |
101
101
  | `makea-cli admin create quote-request-note` | write(ask) | `POST /admin/quote_requests/{quote_request_id}/reply_status_note` | write to the factory on a quote request (e.g. answer its clarification). --requirements-updated words the email as a change to the product's requirements. | — |
102
102
  | `makea-cli admin create rule` | write(ask) | `POST /admin/playbook/{target}/rules` | add a rule to a person's (`--user`, user_id or email), a factory's (`--supplier`) or the platform-wide (`--global`, max 30 live) AI playbook; admin-authored, active unless --status. Refuses a repeat or a conflict unless --force. --reason required; --why / --proof are what the brand reads under it, --title its card name. | — |
103
103
  | `makea-cli admin create shipping-fee` | write(ask) | `POST /admin/shipping_orders/{shipping_order_id}/fees/add` | add a fee (fixed amount or percentage) on top of the freight. | — |
@@ -1,6 +1,6 @@
1
- makea_cli/__init__.py,sha256=uoxxAPP6x3ekeKjUrqxyllP0-QmXbfUEQA8rJSp6Z3E,23
1
+ makea_cli/__init__.py,sha256=TZEL7NbFvxLaphGOCsAqfJrHhPB2LHR2ab0Eb5xxaU0,23
2
2
  makea_cli/__main__.py,sha256=AkQjxWfKE3w9iD1d6I-2Zqvv2t9cct0oYyFF0UiA-Z0,144
3
- makea_cli/api_client.py,sha256=CtHX0DB9ItpSn0F730XJfTnSSs77u7a8kZS2hFClQTg,81671
3
+ makea_cli/api_client.py,sha256=34LrVR6vcG3lCK6lRlUJbdHt3HOxIDA4mA9MeJL98Pg,81910
4
4
  makea_cli/auth_pkce.py,sha256=iXSyJ7DM3qVuj-3FwPiqM25CxXz9ebFs9FNthZdw3ws,7315
5
5
  makea_cli/broker.py,sha256=5O650nAdRuF-u9E1MuVM2jVv796iBdxJGIaJasxHij0,3019
6
6
  makea_cli/companion.py,sha256=lEEMRDbS-5-CWPawlkPDeCij08pAYW8MsXLVSG3_8V0,10116
@@ -52,10 +52,10 @@ makea_cli/commands/production/pricing_spec.py,sha256=xGbj7-ps3PcKuU6Oc59A70b62Fj
52
52
  makea_cli/commands/shipping/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  makea_cli/commands/shipping/cmd.py,sha256=ozt73pj3onlOv0NhEwiJlslyG9WOycE0QN4tmzwFlT0,17280
54
54
  makea_cli/commands/supplier/__init__.py,sha256=qfQDeQdQ-B7I_uwFVfcp1vXFUTL4fAcNLu3ipsZ7dfs,77
55
- makea_cli/commands/supplier/cmd.py,sha256=3M7OYhBd-uQk5naoM2I87vJ6IA_P-gdrsbIX2vbyDns,63763
55
+ makea_cli/commands/supplier/cmd.py,sha256=12YzQIz8478ksOUbuI7pSwSAwQAqLTvXu-AKjyrwLgA,64039
56
56
  makea_cli/commands/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
57
  makea_cli/commands/tasks/cmd.py,sha256=72MrVigmjjQCpDVF2a3aJn_gclw2iBbJdFmyd87mXec,8549
58
- makea_cli-0.2.31.dist-info/METADATA,sha256=yYR6BXaBwnf8mAUMNfz-1Mz2wSFqRPytJsdpf-e84rc,45219
59
- makea_cli-0.2.31.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
60
- makea_cli-0.2.31.dist-info/entry_points.txt,sha256=4x-lbVa1jBbNlkNq7L-rYyfRh2spZmc3BLIzP-Dl-Qk,50
61
- makea_cli-0.2.31.dist-info/RECORD,,
58
+ makea_cli-0.2.32.dist-info/METADATA,sha256=9sFWNB18VghSrKcdoQoXpoQgEd_O0czP-FJu3fRh7zc,45314
59
+ makea_cli-0.2.32.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
60
+ makea_cli-0.2.32.dist-info/entry_points.txt,sha256=4x-lbVa1jBbNlkNq7L-rYyfRh2spZmc3BLIzP-Dl-Qk,50
61
+ makea_cli-0.2.32.dist-info/RECORD,,