@moovio/sdk 0.22.17 → 0.22.19
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 +41 -6
- package/bin/mcp-server.js.map +13 -13
- package/examples/package-lock.json +1 -1
- package/funcs/invoicesListInvoices.js +4 -0
- package/funcs/invoicesListInvoices.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/createinvoice.d.ts +3 -0
- package/models/components/createinvoice.d.ts.map +1 -1
- package/models/components/createinvoice.js.map +1 -1
- package/models/components/invoice.d.ts +9 -0
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoicelineitemimagemetadata.d.ts +1 -1
- package/models/components/invoicepayment.d.ts +3 -0
- package/models/components/invoicepayment.d.ts.map +1 -1
- package/models/components/invoicepayment.js.map +1 -1
- package/models/components/invoicetransferpayment.d.ts +3 -0
- package/models/components/invoicetransferpayment.d.ts.map +1 -1
- package/models/components/invoicetransferpayment.js.map +1 -1
- package/models/errors/listinvoicesvalidationerror.d.ts +12 -0
- package/models/errors/listinvoicesvalidationerror.d.ts.map +1 -1
- package/models/errors/listinvoicesvalidationerror.js +19 -0
- package/models/errors/listinvoicesvalidationerror.js.map +1 -1
- package/models/operations/listinvoices.d.ts +8 -0
- package/models/operations/listinvoices.d.ts.map +1 -1
- package/models/operations/listinvoices.js +8 -0
- package/models/operations/listinvoices.js.map +1 -1
- package/package.json +1 -1
- package/sdk/cards.d.ts +2 -2
- package/sdk/cards.js +2 -2
- package/src/funcs/invoicesListInvoices.ts +4 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/createinvoice.ts +3 -0
- package/src/models/components/invoice.ts +9 -0
- package/src/models/components/invoicelineitemimagemetadata.ts +1 -1
- package/src/models/components/invoicepayment.ts +3 -0
- package/src/models/components/invoicetransferpayment.ts +3 -0
- package/src/models/errors/listinvoicesvalidationerror.ts +30 -0
- package/src/models/operations/listinvoices.ts +24 -0
- package/src/sdk/cards.ts +2 -2
|
@@ -8,6 +8,10 @@ import { MoovError } from "./mooverror.js";
|
|
|
8
8
|
export type ListInvoicesValidationErrorData = {
|
|
9
9
|
status?: string | undefined;
|
|
10
10
|
customerAccountID?: string | undefined;
|
|
11
|
+
createdStartDateTime?: string | undefined;
|
|
12
|
+
createdEndDateTime?: string | undefined;
|
|
13
|
+
dueStartDateTime?: string | undefined;
|
|
14
|
+
dueEndDateTime?: string | undefined;
|
|
11
15
|
skip?: string | undefined;
|
|
12
16
|
count?: string | undefined;
|
|
13
17
|
};
|
|
@@ -15,6 +19,10 @@ export type ListInvoicesValidationErrorData = {
|
|
|
15
19
|
export class ListInvoicesValidationError extends MoovError {
|
|
16
20
|
status?: string | undefined;
|
|
17
21
|
customerAccountID?: string | undefined;
|
|
22
|
+
createdStartDateTime?: string | undefined;
|
|
23
|
+
createdEndDateTime?: string | undefined;
|
|
24
|
+
dueStartDateTime?: string | undefined;
|
|
25
|
+
dueEndDateTime?: string | undefined;
|
|
18
26
|
skip?: string | undefined;
|
|
19
27
|
count?: string | undefined;
|
|
20
28
|
|
|
@@ -34,6 +42,16 @@ export class ListInvoicesValidationError extends MoovError {
|
|
|
34
42
|
if (err.customerAccountID != null) {
|
|
35
43
|
this.customerAccountID = err.customerAccountID;
|
|
36
44
|
}
|
|
45
|
+
if (err.createdStartDateTime != null) {
|
|
46
|
+
this.createdStartDateTime = err.createdStartDateTime;
|
|
47
|
+
}
|
|
48
|
+
if (err.createdEndDateTime != null) {
|
|
49
|
+
this.createdEndDateTime = err.createdEndDateTime;
|
|
50
|
+
}
|
|
51
|
+
if (err.dueStartDateTime != null) {
|
|
52
|
+
this.dueStartDateTime = err.dueStartDateTime;
|
|
53
|
+
}
|
|
54
|
+
if (err.dueEndDateTime != null) this.dueEndDateTime = err.dueEndDateTime;
|
|
37
55
|
if (err.skip != null) this.skip = err.skip;
|
|
38
56
|
if (err.count != null) this.count = err.count;
|
|
39
57
|
|
|
@@ -49,6 +67,10 @@ export const ListInvoicesValidationError$inboundSchema: z.ZodType<
|
|
|
49
67
|
> = z.object({
|
|
50
68
|
status: z.string().optional(),
|
|
51
69
|
customerAccountID: z.string().optional(),
|
|
70
|
+
createdStartDateTime: z.string().optional(),
|
|
71
|
+
createdEndDateTime: z.string().optional(),
|
|
72
|
+
dueStartDateTime: z.string().optional(),
|
|
73
|
+
dueEndDateTime: z.string().optional(),
|
|
52
74
|
skip: z.string().optional(),
|
|
53
75
|
count: z.string().optional(),
|
|
54
76
|
request$: z.instanceof(Request),
|
|
@@ -67,6 +89,10 @@ export const ListInvoicesValidationError$inboundSchema: z.ZodType<
|
|
|
67
89
|
export type ListInvoicesValidationError$Outbound = {
|
|
68
90
|
status?: string | undefined;
|
|
69
91
|
customerAccountID?: string | undefined;
|
|
92
|
+
createdStartDateTime?: string | undefined;
|
|
93
|
+
createdEndDateTime?: string | undefined;
|
|
94
|
+
dueStartDateTime?: string | undefined;
|
|
95
|
+
dueEndDateTime?: string | undefined;
|
|
70
96
|
skip?: string | undefined;
|
|
71
97
|
count?: string | undefined;
|
|
72
98
|
};
|
|
@@ -81,6 +107,10 @@ export const ListInvoicesValidationError$outboundSchema: z.ZodType<
|
|
|
81
107
|
.pipe(z.object({
|
|
82
108
|
status: z.string().optional(),
|
|
83
109
|
customerAccountID: z.string().optional(),
|
|
110
|
+
createdStartDateTime: z.string().optional(),
|
|
111
|
+
createdEndDateTime: z.string().optional(),
|
|
112
|
+
dueStartDateTime: z.string().optional(),
|
|
113
|
+
dueEndDateTime: z.string().optional(),
|
|
84
114
|
skip: z.string().optional(),
|
|
85
115
|
count: z.string().optional(),
|
|
86
116
|
}));
|
|
@@ -32,6 +32,10 @@ export type ListInvoicesRequest = {
|
|
|
32
32
|
count?: number | undefined;
|
|
33
33
|
status?: components.InvoiceStatus | undefined;
|
|
34
34
|
customerAccountID?: string | undefined;
|
|
35
|
+
createdStartDateTime?: Date | undefined;
|
|
36
|
+
createdEndDateTime?: Date | undefined;
|
|
37
|
+
dueStartDateTime?: Date | undefined;
|
|
38
|
+
dueEndDateTime?: Date | undefined;
|
|
35
39
|
accountID: string;
|
|
36
40
|
};
|
|
37
41
|
|
|
@@ -97,6 +101,18 @@ export const ListInvoicesRequest$inboundSchema: z.ZodType<
|
|
|
97
101
|
count: z.number().int().optional(),
|
|
98
102
|
status: components.InvoiceStatus$inboundSchema.optional(),
|
|
99
103
|
customerAccountID: z.string().optional(),
|
|
104
|
+
createdStartDateTime: z.string().datetime({ offset: true }).transform(v =>
|
|
105
|
+
new Date(v)
|
|
106
|
+
).optional(),
|
|
107
|
+
createdEndDateTime: z.string().datetime({ offset: true }).transform(v =>
|
|
108
|
+
new Date(v)
|
|
109
|
+
).optional(),
|
|
110
|
+
dueStartDateTime: z.string().datetime({ offset: true }).transform(v =>
|
|
111
|
+
new Date(v)
|
|
112
|
+
).optional(),
|
|
113
|
+
dueEndDateTime: z.string().datetime({ offset: true }).transform(v =>
|
|
114
|
+
new Date(v)
|
|
115
|
+
).optional(),
|
|
100
116
|
accountID: z.string(),
|
|
101
117
|
});
|
|
102
118
|
/** @internal */
|
|
@@ -105,6 +121,10 @@ export type ListInvoicesRequest$Outbound = {
|
|
|
105
121
|
count?: number | undefined;
|
|
106
122
|
status?: string | undefined;
|
|
107
123
|
customerAccountID?: string | undefined;
|
|
124
|
+
createdStartDateTime?: string | undefined;
|
|
125
|
+
createdEndDateTime?: string | undefined;
|
|
126
|
+
dueStartDateTime?: string | undefined;
|
|
127
|
+
dueEndDateTime?: string | undefined;
|
|
108
128
|
accountID: string;
|
|
109
129
|
};
|
|
110
130
|
|
|
@@ -118,6 +138,10 @@ export const ListInvoicesRequest$outboundSchema: z.ZodType<
|
|
|
118
138
|
count: z.number().int().optional(),
|
|
119
139
|
status: components.InvoiceStatus$outboundSchema.optional(),
|
|
120
140
|
customerAccountID: z.string().optional(),
|
|
141
|
+
createdStartDateTime: z.date().transform(v => v.toISOString()).optional(),
|
|
142
|
+
createdEndDateTime: z.date().transform(v => v.toISOString()).optional(),
|
|
143
|
+
dueStartDateTime: z.date().transform(v => v.toISOString()).optional(),
|
|
144
|
+
dueEndDateTime: z.date().transform(v => v.toISOString()).optional(),
|
|
121
145
|
accountID: z.string(),
|
|
122
146
|
});
|
|
123
147
|
|
package/src/sdk/cards.ts
CHANGED
|
@@ -108,10 +108,10 @@ export class Cards extends ClientSDK {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* Disables a card associated with a Moov account.
|
|
112
112
|
*
|
|
113
113
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
114
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
114
|
+
* you'll need to specify the `/accounts/{accountID}/cards.write` scope.
|
|
115
115
|
*/
|
|
116
116
|
async disable(
|
|
117
117
|
request: operations.DisableCardRequest,
|