@flexprice/mcp-server 2.1.6 → 2.1.9
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/bin/mcp-server.js +995 -394
- package/bin/mcp-server.js.map +38 -33
- package/bun.lock +44 -36
- package/esm/funcs/subscriptionsQuerySubscriptionLineItems.d.ts +16 -0
- package/esm/funcs/subscriptionsQuerySubscriptionLineItems.d.ts.map +1 -0
- package/esm/funcs/subscriptionsQuerySubscriptionLineItems.js +82 -0
- package/esm/funcs/subscriptionsQuerySubscriptionLineItems.js.map +1 -0
- package/esm/landing-page.d.ts.map +1 -1
- package/esm/landing-page.js +8 -2
- package/esm/landing-page.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/cli/serve/impl.js +1 -1
- package/esm/mcp-server/cli/serve/impl.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.d.ts +7 -0
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.d.ts.map +1 -0
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.js +35 -0
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.js.map +1 -0
- package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
- package/esm/models/customerfilter.d.ts +3 -0
- package/esm/models/customerfilter.d.ts.map +1 -1
- package/esm/models/customerfilter.js +1 -0
- package/esm/models/customerfilter.js.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.d.ts +2 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.js +3 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -1
- package/esm/models/groupedinvoicingaction.d.ts +12 -0
- package/esm/models/groupedinvoicingaction.d.ts.map +1 -0
- package/esm/models/groupedinvoicingaction.js +13 -0
- package/esm/models/groupedinvoicingaction.js.map +1 -0
- package/esm/models/invoicebillingreason.d.ts +2 -0
- package/esm/models/invoicebillingreason.d.ts.map +1 -1
- package/esm/models/invoicebillingreason.js +2 -0
- package/esm/models/invoicebillingreason.js.map +1 -1
- package/esm/models/listsubscriptionlineitemsresponse.d.ts +9 -0
- package/esm/models/listsubscriptionlineitemsresponse.d.ts.map +1 -0
- package/esm/models/listsubscriptionlineitemsresponse.js +11 -0
- package/esm/models/listsubscriptionlineitemsresponse.js.map +1 -0
- package/esm/models/planfilter.d.ts +3 -0
- package/esm/models/planfilter.d.ts.map +1 -1
- package/esm/models/planfilter.js +1 -0
- package/esm/models/planfilter.js.map +1 -1
- package/esm/models/querysubscriptionlineitemsop.d.ts +6 -0
- package/esm/models/querysubscriptionlineitemsop.d.ts.map +1 -0
- package/esm/models/querysubscriptionlineitemsop.js +11 -0
- package/esm/models/querysubscriptionlineitemsop.js.map +1 -0
- package/esm/models/submodifygroupedinvoicingparams.d.ts +9 -0
- package/esm/models/submodifygroupedinvoicingparams.d.ts.map +1 -0
- package/esm/models/submodifygroupedinvoicingparams.js +11 -0
- package/esm/models/submodifygroupedinvoicingparams.js.map +1 -0
- package/esm/models/subscriptioninheritanceconfig.d.ts +1 -0
- package/esm/models/subscriptioninheritanceconfig.d.ts.map +1 -1
- package/esm/models/subscriptioninheritanceconfig.js +6 -3
- package/esm/models/subscriptioninheritanceconfig.js.map +1 -1
- package/esm/models/subscriptionlineitemfilter.d.ts +39 -0
- package/esm/models/subscriptionlineitemfilter.d.ts.map +1 -0
- package/esm/models/subscriptionlineitemfilter.js +39 -0
- package/esm/models/subscriptionlineitemfilter.js.map +1 -0
- package/esm/models/subscriptionmodifytype.d.ts +2 -0
- package/esm/models/subscriptionmodifytype.d.ts.map +1 -1
- package/esm/models/subscriptionmodifytype.js +2 -0
- package/esm/models/subscriptionmodifytype.js.map +1 -1
- package/esm/models/subscriptiontype.d.ts +4 -0
- package/esm/models/subscriptiontype.d.ts.map +1 -1
- package/esm/models/subscriptiontype.js +4 -0
- package/esm/models/subscriptiontype.js.map +1 -1
- package/esm/models/windowsize.d.ts +2 -2
- package/esm/models/windowsize.js +2 -2
- package/esm/models/windowsize.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +4 -0
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/esm/types/bigint.d.ts.map +1 -1
- package/esm/types/bigint.js +4 -3
- package/esm/types/bigint.js.map +1 -1
- package/manifest.json +5 -1
- package/package.json +1 -1
- package/src/funcs/subscriptionsQuerySubscriptionLineItems.ts +144 -0
- package/src/landing-page.ts +8 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/serve/impl.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.ts +45 -0
- package/src/models/customerfilter.ts +2 -0
- package/src/models/executesubscriptionmodifyrequest.ts +7 -0
- package/src/models/groupedinvoicingaction.ts +17 -0
- package/src/models/invoicebillingreason.ts +2 -0
- package/src/models/listsubscriptionlineitemsresponse.ts +25 -0
- package/src/models/planfilter.ts +2 -0
- package/src/models/querysubscriptionlineitemsop.ts +21 -0
- package/src/models/submodifygroupedinvoicingparams.ts +25 -0
- package/src/models/subscriptioninheritanceconfig.ts +15 -3
- package/src/models/subscriptionlineitemfilter.ts +77 -0
- package/src/models/subscriptionmodifytype.ts +2 -0
- package/src/models/subscriptiontype.ts +4 -0
- package/src/models/windowsize.ts +2 -2
- package/src/tool-names.ts +4 -0
- package/src/types/bigint.ts +18 -17
package/src/models/windowsize.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as z from "zod";
|
|
|
6
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
7
7
|
|
|
8
8
|
export const WindowSize = {
|
|
9
|
+
Month: "MONTH",
|
|
9
10
|
Minute: "MINUTE",
|
|
10
11
|
FifteenMIN: "15MIN",
|
|
11
12
|
ThirtyMIN: "30MIN",
|
|
@@ -15,11 +16,11 @@ export const WindowSize = {
|
|
|
15
16
|
TwelveHOUR: "12HOUR",
|
|
16
17
|
Day: "DAY",
|
|
17
18
|
Week: "WEEK",
|
|
18
|
-
Month: "MONTH",
|
|
19
19
|
} as const;
|
|
20
20
|
export type WindowSize = ClosedEnum<typeof WindowSize>;
|
|
21
21
|
|
|
22
22
|
export const WindowSize$zodSchema = z.enum([
|
|
23
|
+
"MONTH",
|
|
23
24
|
"MINUTE",
|
|
24
25
|
"15MIN",
|
|
25
26
|
"30MIN",
|
|
@@ -29,5 +30,4 @@ export const WindowSize$zodSchema = z.enum([
|
|
|
29
30
|
"12HOUR",
|
|
30
31
|
"DAY",
|
|
31
32
|
"WEEK",
|
|
32
|
-
"MONTH",
|
|
33
33
|
]);
|
package/src/tool-names.ts
CHANGED
|
@@ -196,6 +196,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
196
196
|
"name": "remove-subscription-addon",
|
|
197
197
|
"description": "Remove addon from subscription\n\nUse when removing an add-on from a subscription (e.g. downgrade or opt-out)."
|
|
198
198
|
},
|
|
199
|
+
{
|
|
200
|
+
"name": "query-subscription-line-items",
|
|
201
|
+
"description": "Search subscription line items\n\nList subscription line items with a JSON filter (subscription, customer, price, pagination, expand=prices, etc.)."
|
|
202
|
+
},
|
|
199
203
|
{
|
|
200
204
|
"name": "update-subscription-line-item",
|
|
201
205
|
"description": "Update subscription line item\n\nUse when changing a subscription line item (e.g. quantity or price). Implemented by ending the current line and creating a new one for clean billing."
|
package/src/types/bigint.ts
CHANGED
|
@@ -24,23 +24,24 @@ export function bigint(): z.ZodType<bigint | string> {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export function bigintOptional(): z.ZodType<bigint | string | undefined> {
|
|
27
|
-
return z
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
return z
|
|
28
|
+
.union([
|
|
29
|
+
z.bigint().transform((v) => String(v)),
|
|
30
|
+
z.string().transform((v, ctx) => {
|
|
31
|
+
try {
|
|
32
|
+
return BigInt(v);
|
|
33
|
+
} catch {
|
|
34
|
+
ctx.addIssue({
|
|
35
|
+
code: z.ZodIssueCode.custom,
|
|
36
|
+
message: "Invalid bigint value",
|
|
37
|
+
});
|
|
38
|
+
return z.NEVER;
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
z.number().transform((v) => BigInt(Math.trunc(v))),
|
|
42
|
+
z.null().transform(() => undefined),
|
|
43
|
+
])
|
|
44
|
+
.optional();
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
export function bigintNullable(): z.ZodType<bigint | string | null> {
|