@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.cjs
CHANGED
|
@@ -405,6 +405,16 @@ function stripRawProcessorData(value) {
|
|
|
405
405
|
|
|
406
406
|
// ../action-catalog/src/actions.ts
|
|
407
407
|
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.";
|
|
408
|
+
var ORDER_STATUSES = [
|
|
409
|
+
"draft",
|
|
410
|
+
"awaiting_payment",
|
|
411
|
+
"awaiting_fulfillment",
|
|
412
|
+
"awaiting_shipment",
|
|
413
|
+
"partially_shipped",
|
|
414
|
+
"shipped",
|
|
415
|
+
"completed",
|
|
416
|
+
"cancelled"
|
|
417
|
+
];
|
|
408
418
|
var ACTIONS = [
|
|
409
419
|
// ---------------------------------------------------------------- identity
|
|
410
420
|
{
|
|
@@ -508,7 +518,20 @@ var ACTIONS = [
|
|
|
508
518
|
scopes: ["orders:read"],
|
|
509
519
|
input: [
|
|
510
520
|
{ name: "q", type: "string", required: false, description: "Free-text search." },
|
|
511
|
-
{
|
|
521
|
+
{
|
|
522
|
+
name: "status",
|
|
523
|
+
type: "string",
|
|
524
|
+
required: false,
|
|
525
|
+
description: "Lifecycle status filter.",
|
|
526
|
+
enum: ORDER_STATUSES
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
name: "effectiveStatus",
|
|
530
|
+
type: "string",
|
|
531
|
+
required: false,
|
|
532
|
+
description: "Filter on the derived effectiveStatus: the lifecycle status unless the order is cancelled, on hold, refunded, partially refunded or disputed.",
|
|
533
|
+
enum: [...ORDER_STATUSES, "on_hold", "refunded", "partially_refunded", "disputed"]
|
|
534
|
+
},
|
|
512
535
|
{ name: "paymentStatus", type: "string", required: false, description: "Payment status filter." },
|
|
513
536
|
{
|
|
514
537
|
name: "createdAfter",
|
|
@@ -1851,6 +1874,24 @@ function trigger(id, title, eventType, description) {
|
|
|
1851
1874
|
}
|
|
1852
1875
|
var TRIGGERS = [
|
|
1853
1876
|
trigger("new_order", "New order", "order.created", "Fires when an order is created."),
|
|
1877
|
+
trigger(
|
|
1878
|
+
"order_awaiting_shipment",
|
|
1879
|
+
"Order awaiting shipment",
|
|
1880
|
+
"order.awaiting_shipment",
|
|
1881
|
+
"Fires when an order is being prepared and nothing has shipped yet."
|
|
1882
|
+
),
|
|
1883
|
+
trigger(
|
|
1884
|
+
"order_shipped",
|
|
1885
|
+
"Order shipped",
|
|
1886
|
+
"order.shipped",
|
|
1887
|
+
"Fires when everything an order has to ship has been handed to the carrier."
|
|
1888
|
+
),
|
|
1889
|
+
trigger(
|
|
1890
|
+
"order_completed",
|
|
1891
|
+
"Order completed",
|
|
1892
|
+
"order.completed",
|
|
1893
|
+
"Fires when an order is completed: marked completed after shipping, or finished with nothing to ship."
|
|
1894
|
+
),
|
|
1854
1895
|
trigger(
|
|
1855
1896
|
"payment_captured",
|
|
1856
1897
|
"Payment captured",
|
|
@@ -2303,6 +2344,7 @@ var HANDLERS = {
|
|
|
2303
2344
|
{
|
|
2304
2345
|
q: args.q,
|
|
2305
2346
|
status: args.status,
|
|
2347
|
+
effectiveStatus: args.effectiveStatus,
|
|
2306
2348
|
paymentStatus: args.paymentStatus,
|
|
2307
2349
|
createdAfter: args.createdAfter,
|
|
2308
2350
|
createdBefore: args.createdBefore,
|
|
@@ -3592,7 +3634,16 @@ var page3 = (row) => ({ data: [row], pagination: PAGINATION });
|
|
|
3592
3634
|
var ADDRESS = { countryCode: S };
|
|
3593
3635
|
var CUSTOMER_REF = { id: S };
|
|
3594
3636
|
var APPLICATION = { id: S, name: T, slug: S };
|
|
3595
|
-
var LIFECYCLE_LABELS = [
|
|
3637
|
+
var LIFECYCLE_LABELS = [
|
|
3638
|
+
"Draft",
|
|
3639
|
+
"Awaiting Payment",
|
|
3640
|
+
"Awaiting Fulfillment",
|
|
3641
|
+
"Awaiting Shipment",
|
|
3642
|
+
"Partially Shipped",
|
|
3643
|
+
"Shipped",
|
|
3644
|
+
"Completed",
|
|
3645
|
+
"Cancelled"
|
|
3646
|
+
];
|
|
3596
3647
|
var DISPLAY_QUALIFIERS = [
|
|
3597
3648
|
"Comped",
|
|
3598
3649
|
"Awaiting payment",
|
|
@@ -3643,6 +3694,7 @@ var ORDER2 = {
|
|
|
3643
3694
|
id: S,
|
|
3644
3695
|
orderNumber: S,
|
|
3645
3696
|
status: S,
|
|
3697
|
+
effectiveStatus: S,
|
|
3646
3698
|
displayStatus: DISPLAY_STATUS,
|
|
3647
3699
|
paymentStatus: S,
|
|
3648
3700
|
type: S,
|
|
@@ -4205,7 +4257,7 @@ var OAUTH_PROJECTIONS = {
|
|
|
4205
4257
|
};
|
|
4206
4258
|
|
|
4207
4259
|
// src/server.ts
|
|
4208
|
-
var VERSION = true ? "0.
|
|
4260
|
+
var VERSION = true ? "0.10.0" : "0.0.0-dev";
|
|
4209
4261
|
function registerableActions(policy) {
|
|
4210
4262
|
const isProduction = policy.identity.environment.providerEnvironment === "production";
|
|
4211
4263
|
return actionsForChannel("mcp").filter((action) => {
|