@flexprice/mcp-server 2.0.11 → 2.0.13
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 +219 -127
- package/bin/mcp-server.js.map +16 -15
- package/bun.lock +17 -17
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/security.d.ts +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +19 -8
- package/esm/lib/security.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/addonassociationentitytype.d.ts +1 -1
- package/esm/models/dtocreatecustomerrequest.d.ts +0 -2
- package/esm/models/dtocreatecustomerrequest.d.ts.map +1 -1
- package/esm/models/dtocreatecustomerrequest.js +0 -3
- package/esm/models/dtocreatecustomerrequest.js.map +1 -1
- package/esm/models/dtocustomerresponse.d.ts +2 -0
- package/esm/models/dtocustomerresponse.d.ts.map +1 -1
- package/esm/models/dtocustomerresponse.js +3 -0
- package/esm/models/dtocustomerresponse.js.map +1 -1
- package/esm/models/dtoentitlementsourceentitytype.d.ts +1 -1
- package/esm/models/dtoentityintegrationmappingresponse.d.ts +19 -0
- package/esm/models/dtoentityintegrationmappingresponse.d.ts.map +1 -0
- package/esm/models/dtoentityintegrationmappingresponse.js +21 -0
- package/esm/models/dtoentityintegrationmappingresponse.js.map +1 -0
- package/esm/models/dtoinvoiceresponse.d.ts +1 -0
- package/esm/models/dtoinvoiceresponse.d.ts.map +1 -1
- package/esm/models/dtoinvoiceresponse.js +1 -0
- package/esm/models/dtoinvoiceresponse.js.map +1 -1
- package/esm/models/dtoupdatecustomerrequest.d.ts +0 -2
- package/esm/models/dtoupdatecustomerrequest.d.ts.map +1 -1
- package/esm/models/dtoupdatecustomerrequest.js +0 -3
- package/esm/models/dtoupdatecustomerrequest.js.map +1 -1
- package/esm/models/groupentitytype.d.ts +1 -1
- package/esm/models/integrationentitytype.d.ts +28 -0
- package/esm/models/integrationentitytype.d.ts.map +1 -0
- package/esm/models/integrationentitytype.js +29 -0
- package/esm/models/integrationentitytype.js.map +1 -0
- package/esm/models/invoicestatus.d.ts +2 -0
- package/esm/models/invoicestatus.d.ts.map +1 -1
- package/esm/models/invoicestatus.js +2 -0
- package/esm/models/invoicestatus.js.map +1 -1
- package/esm/models/subscriptionlineitementitytype.d.ts +1 -1
- package/esm/models/taxrateentitytype.d.ts +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/dtocreatecustomerrequest.ts +0 -9
- package/src/models/dtocustomerresponse.ts +7 -0
- package/src/models/dtoentityintegrationmappingresponse.ts +42 -0
- package/src/models/dtoinvoiceresponse.ts +4 -0
- package/src/models/dtoupdatecustomerrequest.ts +0 -9
- package/src/models/integrationentitytype.ts +33 -0
- package/src/models/invoicestatus.ts +2 -0
- package/esm/models/dtointegrationentitymapping.d.ts +0 -28
- package/esm/models/dtointegrationentitymapping.d.ts.map +0 -1
- package/esm/models/dtointegrationentitymapping.js +0 -22
- package/esm/models/dtointegrationentitymapping.js.map +0 -1
- package/src/models/dtointegrationentitymapping.ts +0 -41
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const IntegrationEntityType: {
|
|
4
|
+
readonly Customer: "customer";
|
|
5
|
+
readonly Plan: "plan";
|
|
6
|
+
readonly Invoice: "invoice";
|
|
7
|
+
readonly Subscription: "subscription";
|
|
8
|
+
readonly Payment: "payment";
|
|
9
|
+
readonly CreditNote: "credit_note";
|
|
10
|
+
readonly Addon: "addon";
|
|
11
|
+
readonly Item: "item";
|
|
12
|
+
readonly ItemPrice: "item_price";
|
|
13
|
+
readonly Price: "price";
|
|
14
|
+
};
|
|
15
|
+
export type IntegrationEntityType = ClosedEnum<typeof IntegrationEntityType>;
|
|
16
|
+
export declare const IntegrationEntityType$zodSchema: z.ZodEnum<{
|
|
17
|
+
customer: "customer";
|
|
18
|
+
plan: "plan";
|
|
19
|
+
invoice: "invoice";
|
|
20
|
+
subscription: "subscription";
|
|
21
|
+
payment: "payment";
|
|
22
|
+
credit_note: "credit_note";
|
|
23
|
+
addon: "addon";
|
|
24
|
+
item: "item";
|
|
25
|
+
item_price: "item_price";
|
|
26
|
+
price: "price";
|
|
27
|
+
}>;
|
|
28
|
+
//# sourceMappingURL=integrationentitytype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrationentitytype.d.ts","sourceRoot":"","sources":["../../src/models/integrationentitytype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,qBAAqB;;;;;;;;;;;CAWxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;;;;;;;;EAW1C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const IntegrationEntityType = {
|
|
6
|
+
Customer: "customer",
|
|
7
|
+
Plan: "plan",
|
|
8
|
+
Invoice: "invoice",
|
|
9
|
+
Subscription: "subscription",
|
|
10
|
+
Payment: "payment",
|
|
11
|
+
CreditNote: "credit_note",
|
|
12
|
+
Addon: "addon",
|
|
13
|
+
Item: "item",
|
|
14
|
+
ItemPrice: "item_price",
|
|
15
|
+
Price: "price",
|
|
16
|
+
};
|
|
17
|
+
export const IntegrationEntityType$zodSchema = z.enum([
|
|
18
|
+
"customer",
|
|
19
|
+
"plan",
|
|
20
|
+
"invoice",
|
|
21
|
+
"subscription",
|
|
22
|
+
"payment",
|
|
23
|
+
"credit_note",
|
|
24
|
+
"addon",
|
|
25
|
+
"item",
|
|
26
|
+
"item_price",
|
|
27
|
+
"price",
|
|
28
|
+
]);
|
|
29
|
+
//# sourceMappingURL=integrationentitytype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrationentitytype.js","sourceRoot":"","sources":["../../src/models/integrationentitytype.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,aAAa;IACzB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC;IACpD,UAAU;IACV,MAAM;IACN,SAAS;IACT,cAAc;IACd,SAAS;IACT,aAAa;IACb,OAAO;IACP,MAAM;IACN,YAAY;IACZ,OAAO;CACR,CAAC,CAAC"}
|
|
@@ -4,11 +4,13 @@ export declare const InvoiceStatus: {
|
|
|
4
4
|
readonly Draft: "DRAFT";
|
|
5
5
|
readonly Finalized: "FINALIZED";
|
|
6
6
|
readonly Voided: "VOIDED";
|
|
7
|
+
readonly Skipped: "SKIPPED";
|
|
7
8
|
};
|
|
8
9
|
export type InvoiceStatus = ClosedEnum<typeof InvoiceStatus>;
|
|
9
10
|
export declare const InvoiceStatus$zodSchema: z.ZodEnum<{
|
|
10
11
|
DRAFT: "DRAFT";
|
|
11
12
|
FINALIZED: "FINALIZED";
|
|
12
13
|
VOIDED: "VOIDED";
|
|
14
|
+
SKIPPED: "SKIPPED";
|
|
13
15
|
}>;
|
|
14
16
|
//# sourceMappingURL=invoicestatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoicestatus.d.ts","sourceRoot":"","sources":["../../src/models/invoicestatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"invoicestatus.d.ts","sourceRoot":"","sources":["../../src/models/invoicestatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;EAKlC,CAAC"}
|
|
@@ -6,10 +6,12 @@ export const InvoiceStatus = {
|
|
|
6
6
|
Draft: "DRAFT",
|
|
7
7
|
Finalized: "FINALIZED",
|
|
8
8
|
Voided: "VOIDED",
|
|
9
|
+
Skipped: "SKIPPED",
|
|
9
10
|
};
|
|
10
11
|
export const InvoiceStatus$zodSchema = z.enum([
|
|
11
12
|
"DRAFT",
|
|
12
13
|
"FINALIZED",
|
|
13
14
|
"VOIDED",
|
|
15
|
+
"SKIPPED",
|
|
14
16
|
]);
|
|
15
17
|
//# sourceMappingURL=invoicestatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoicestatus.js","sourceRoot":"","sources":["../../src/models/invoicestatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"invoicestatus.js","sourceRoot":"","sources":["../../src/models/invoicestatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AAGX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,OAAO;IACP,WAAW;IACX,QAAQ;IACR,SAAS;CACV,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const SubscriptionLineItemEntityType: {
|
|
|
8
8
|
export type SubscriptionLineItemEntityType = ClosedEnum<typeof SubscriptionLineItemEntityType>;
|
|
9
9
|
export declare const SubscriptionLineItemEntityType$zodSchema: z.ZodEnum<{
|
|
10
10
|
plan: "plan";
|
|
11
|
-
addon: "addon";
|
|
12
11
|
subscription: "subscription";
|
|
12
|
+
addon: "addon";
|
|
13
13
|
}>;
|
|
14
14
|
//# sourceMappingURL=subscriptionlineitementitytype.d.ts.map
|
|
@@ -8,9 +8,9 @@ export declare const TaxRateEntityType: {
|
|
|
8
8
|
};
|
|
9
9
|
export type TaxRateEntityType = ClosedEnum<typeof TaxRateEntityType>;
|
|
10
10
|
export declare const TaxRateEntityType$zodSchema: z.ZodEnum<{
|
|
11
|
-
subscription: "subscription";
|
|
12
11
|
customer: "customer";
|
|
13
12
|
invoice: "invoice";
|
|
13
|
+
subscription: "subscription";
|
|
14
14
|
tenant: "tenant";
|
|
15
15
|
}>;
|
|
16
16
|
//# sourceMappingURL=taxrateentitytype.d.ts.map
|