@usethrottle/mcp 0.9.0 → 0.10.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/dist/contract-index.json +1 -1
- package/dist/docs-index.json +1 -1
- package/dist/lib.cjs +55 -3
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +55 -3
- package/dist/lib.js.map +1 -1
- package/dist/mcp.js +55 -3
- package/dist/mcp.js.map +1 -1
- package/package.json +3 -3
package/dist/lib.js
CHANGED
|
@@ -368,6 +368,16 @@ function stripRawProcessorData(value) {
|
|
|
368
368
|
|
|
369
369
|
// ../action-catalog/src/actions.ts
|
|
370
370
|
var OAUTH_WITHHELD = "Over an OAuth connection (ChatGPT, Claude) these are withheld, because a buyer can type them: line-item and quote-item names, SKUs and reference ids; company; every address line except the country; the merchant's external ids; notes, messages, reasons and metadata. Describe items by quantity and amount, and say the rest is withheld rather than missing.";
|
|
371
|
+
var ORDER_STATUSES = [
|
|
372
|
+
"draft",
|
|
373
|
+
"awaiting_payment",
|
|
374
|
+
"awaiting_fulfillment",
|
|
375
|
+
"awaiting_shipment",
|
|
376
|
+
"partially_shipped",
|
|
377
|
+
"shipped",
|
|
378
|
+
"completed",
|
|
379
|
+
"cancelled"
|
|
380
|
+
];
|
|
371
381
|
var ACTIONS = [
|
|
372
382
|
// ---------------------------------------------------------------- identity
|
|
373
383
|
{
|
|
@@ -471,7 +481,20 @@ var ACTIONS = [
|
|
|
471
481
|
scopes: ["orders:read"],
|
|
472
482
|
input: [
|
|
473
483
|
{ name: "q", type: "string", required: false, description: "Free-text search." },
|
|
474
|
-
{
|
|
484
|
+
{
|
|
485
|
+
name: "status",
|
|
486
|
+
type: "string",
|
|
487
|
+
required: false,
|
|
488
|
+
description: "Lifecycle status filter.",
|
|
489
|
+
enum: ORDER_STATUSES
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
name: "effectiveStatus",
|
|
493
|
+
type: "string",
|
|
494
|
+
required: false,
|
|
495
|
+
description: "Filter on the derived effectiveStatus: the lifecycle status unless the order is cancelled, on hold, refunded, partially refunded or disputed.",
|
|
496
|
+
enum: [...ORDER_STATUSES, "on_hold", "refunded", "partially_refunded", "disputed"]
|
|
497
|
+
},
|
|
475
498
|
{ name: "paymentStatus", type: "string", required: false, description: "Payment status filter." },
|
|
476
499
|
{
|
|
477
500
|
name: "createdAfter",
|
|
@@ -1814,6 +1837,24 @@ function trigger(id, title, eventType, description) {
|
|
|
1814
1837
|
}
|
|
1815
1838
|
var TRIGGERS = [
|
|
1816
1839
|
trigger("new_order", "New order", "order.created", "Fires when an order is created."),
|
|
1840
|
+
trigger(
|
|
1841
|
+
"order_awaiting_shipment",
|
|
1842
|
+
"Order awaiting shipment",
|
|
1843
|
+
"order.awaiting_shipment",
|
|
1844
|
+
"Fires when an order is being prepared and nothing has shipped yet."
|
|
1845
|
+
),
|
|
1846
|
+
trigger(
|
|
1847
|
+
"order_shipped",
|
|
1848
|
+
"Order shipped",
|
|
1849
|
+
"order.shipped",
|
|
1850
|
+
"Fires when everything an order has to ship has been handed to the carrier."
|
|
1851
|
+
),
|
|
1852
|
+
trigger(
|
|
1853
|
+
"order_completed",
|
|
1854
|
+
"Order completed",
|
|
1855
|
+
"order.completed",
|
|
1856
|
+
"Fires when an order is completed: marked completed after shipping, or finished with nothing to ship."
|
|
1857
|
+
),
|
|
1817
1858
|
trigger(
|
|
1818
1859
|
"payment_captured",
|
|
1819
1860
|
"Payment captured",
|
|
@@ -2266,6 +2307,7 @@ var HANDLERS = {
|
|
|
2266
2307
|
{
|
|
2267
2308
|
q: args.q,
|
|
2268
2309
|
status: args.status,
|
|
2310
|
+
effectiveStatus: args.effectiveStatus,
|
|
2269
2311
|
paymentStatus: args.paymentStatus,
|
|
2270
2312
|
createdAfter: args.createdAfter,
|
|
2271
2313
|
createdBefore: args.createdBefore,
|
|
@@ -3555,7 +3597,16 @@ var page3 = (row) => ({ data: [row], pagination: PAGINATION });
|
|
|
3555
3597
|
var ADDRESS = { countryCode: S };
|
|
3556
3598
|
var CUSTOMER_REF = { id: S };
|
|
3557
3599
|
var APPLICATION = { id: S, name: T, slug: S };
|
|
3558
|
-
var LIFECYCLE_LABELS = [
|
|
3600
|
+
var LIFECYCLE_LABELS = [
|
|
3601
|
+
"Draft",
|
|
3602
|
+
"Awaiting Payment",
|
|
3603
|
+
"Awaiting Fulfillment",
|
|
3604
|
+
"Awaiting Shipment",
|
|
3605
|
+
"Partially Shipped",
|
|
3606
|
+
"Shipped",
|
|
3607
|
+
"Completed",
|
|
3608
|
+
"Cancelled"
|
|
3609
|
+
];
|
|
3559
3610
|
var DISPLAY_QUALIFIERS = [
|
|
3560
3611
|
"Comped",
|
|
3561
3612
|
"Awaiting payment",
|
|
@@ -3606,6 +3657,7 @@ var ORDER2 = {
|
|
|
3606
3657
|
id: S,
|
|
3607
3658
|
orderNumber: S,
|
|
3608
3659
|
status: S,
|
|
3660
|
+
effectiveStatus: S,
|
|
3609
3661
|
displayStatus: DISPLAY_STATUS,
|
|
3610
3662
|
paymentStatus: S,
|
|
3611
3663
|
type: S,
|
|
@@ -4168,7 +4220,7 @@ var OAUTH_PROJECTIONS = {
|
|
|
4168
4220
|
};
|
|
4169
4221
|
|
|
4170
4222
|
// src/server.ts
|
|
4171
|
-
var VERSION = true ? "0.
|
|
4223
|
+
var VERSION = true ? "0.10.0" : "0.0.0-dev";
|
|
4172
4224
|
function registerableActions(policy) {
|
|
4173
4225
|
const isProduction = policy.identity.environment.providerEnvironment === "production";
|
|
4174
4226
|
return actionsForChannel("mcp").filter((action) => {
|