@keystrokehq/finmei 0.1.1 → 0.1.3
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-expense.cjs +2 -2
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +3 -13
- package/dist/actions/create-expense.d.mts +3 -13
- package/dist/actions/create-expense.mjs +2 -2
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +71 -71
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +74 -141
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +74 -141
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +71 -71
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +1 -1
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +2 -2
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +2 -2
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +1 -1
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +2 -2
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +3 -6
- package/dist/actions/delete-invoice.d.mts +3 -6
- package/dist/actions/delete-invoice.mjs +2 -2
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment.cjs +1 -1
- package/dist/actions/delete-payment.cjs.map +1 -1
- package/dist/actions/delete-payment.d.cts +2 -4
- package/dist/actions/delete-payment.d.mts +2 -4
- package/dist/actions/delete-payment.mjs +1 -1
- package/dist/actions/delete-payment.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +2 -2
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +3 -6
- package/dist/actions/delete-product.d.mts +3 -6
- package/dist/actions/delete-product.mjs +2 -2
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/download-expense-file.cjs +2 -2
- package/dist/actions/download-expense-file.cjs.map +1 -1
- package/dist/actions/download-expense-file.d.cts +3 -9
- package/dist/actions/download-expense-file.d.mts +3 -9
- package/dist/actions/download-expense-file.mjs +2 -2
- package/dist/actions/download-expense-file.mjs.map +1 -1
- package/dist/actions/download-invoice-pdf.cjs +2 -2
- package/dist/actions/download-invoice-pdf.cjs.map +1 -1
- package/dist/actions/download-invoice-pdf.d.cts +3 -9
- package/dist/actions/download-invoice-pdf.d.mts +3 -9
- package/dist/actions/download-invoice-pdf.mjs +2 -2
- package/dist/actions/download-invoice-pdf.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +2 -2
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +3 -13
- package/dist/actions/get-expense.d.mts +3 -13
- package/dist/actions/get-expense.mjs +2 -2
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +29 -29
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +30 -81
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +30 -81
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +29 -29
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +3 -3
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +4 -14
- package/dist/actions/get-payment.d.mts +4 -14
- package/dist/actions/get-payment.mjs +3 -3
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-product.cjs +2 -2
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +3 -11
- package/dist/actions/get-product.d.mts +3 -11
- package/dist/actions/get-product.mjs +2 -2
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-profile.cjs +9 -9
- package/dist/actions/get-profile.cjs.map +1 -1
- package/dist/actions/get-profile.d.cts +10 -20
- package/dist/actions/get-profile.d.cts.map +1 -1
- package/dist/actions/get-profile.d.mts +10 -20
- package/dist/actions/get-profile.d.mts.map +1 -1
- package/dist/actions/get-profile.mjs +9 -9
- package/dist/actions/get-profile.mjs.map +1 -1
- package/dist/actions/list-currencies.cjs +3 -3
- package/dist/actions/list-currencies.cjs.map +1 -1
- package/dist/actions/list-currencies.d.cts +4 -10
- package/dist/actions/list-currencies.d.cts.map +1 -1
- package/dist/actions/list-currencies.d.mts +4 -10
- package/dist/actions/list-currencies.d.mts.map +1 -1
- package/dist/actions/list-currencies.mjs +3 -3
- package/dist/actions/list-currencies.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +11 -11
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +12 -28
- package/dist/actions/list-customers.d.mts +12 -28
- package/dist/actions/list-customers.mjs +11 -11
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-expenses.cjs +14 -14
- package/dist/actions/list-expenses.cjs.map +1 -1
- package/dist/actions/list-expenses.d.cts +15 -34
- package/dist/actions/list-expenses.d.mts +15 -34
- package/dist/actions/list-expenses.mjs +14 -14
- package/dist/actions/list-expenses.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +35 -35
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +36 -98
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +36 -98
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +35 -35
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +9 -9
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +10 -25
- package/dist/actions/list-payments.d.mts +10 -25
- package/dist/actions/list-payments.mjs +9 -9
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-products.cjs +6 -6
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +7 -23
- package/dist/actions/list-products.d.mts +7 -23
- package/dist/actions/list-products.mjs +6 -6
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/update-customer.cjs +13 -13
- package/dist/actions/update-customer.cjs.map +1 -1
- package/dist/actions/update-customer.d.cts +14 -31
- package/dist/actions/update-customer.d.cts.map +1 -1
- package/dist/actions/update-customer.d.mts +14 -31
- package/dist/actions/update-customer.d.mts.map +1 -1
- package/dist/actions/update-customer.mjs +13 -13
- package/dist/actions/update-customer.mjs.map +1 -1
- package/dist/actions/update-expense-file.cjs +6 -6
- package/dist/actions/update-expense-file.cjs.map +1 -1
- package/dist/actions/update-expense-file.d.cts +7 -13
- package/dist/actions/update-expense-file.d.mts +7 -13
- package/dist/actions/update-expense-file.mjs +6 -6
- package/dist/actions/update-expense-file.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +3 -3
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +4 -12
- package/dist/actions/update-expense.d.mts +4 -12
- package/dist/actions/update-expense.mjs +3 -3
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +57 -57
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +59 -114
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +59 -114
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +57 -57
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-product.cjs +2 -2
- package/dist/actions/update-product.cjs.map +1 -1
- package/dist/actions/update-product.d.cts +3 -11
- package/dist/actions/update-product.d.mts +3 -11
- package/dist/actions/update-product.mjs +2 -2
- package/dist/actions/update-product.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,38 +8,38 @@ declare const FinmeiGetInvoiceOutput: z.ZodObject<{
|
|
|
8
8
|
id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
vat: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
buyer: z.ZodNullable<z.ZodObject<{
|
|
11
|
-
type: z.
|
|
12
|
-
email: z.
|
|
13
|
-
phone: z.
|
|
14
|
-
address: z.
|
|
15
|
-
vat_code: z.
|
|
16
|
-
last_name: z.
|
|
17
|
-
first_name: z.
|
|
18
|
-
company_code: z.
|
|
19
|
-
company_name: z.
|
|
20
|
-
individual_tax_id: z.
|
|
21
|
-
}, z.core.$
|
|
22
|
-
items: z.
|
|
11
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
23
|
id: z.ZodNullable<z.ZodString>;
|
|
24
24
|
name: z.ZodNullable<z.ZodString>;
|
|
25
25
|
price: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
units: z.ZodNullable<z.ZodString>;
|
|
27
27
|
quantity: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
vat_percentage: z.
|
|
29
|
-
}, z.core.$
|
|
30
|
-
notes: z.
|
|
28
|
+
vat_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
seller: z.ZodNullable<z.ZodObject<{
|
|
32
|
-
email: z.
|
|
33
|
-
phone: z.
|
|
34
|
-
address: z.
|
|
35
|
-
vat_code: z.
|
|
36
|
-
last_name: z.
|
|
37
|
-
first_name: z.
|
|
38
|
-
company_code: z.
|
|
39
|
-
company_name: z.
|
|
40
|
-
business_type: z.
|
|
41
|
-
individual_tax_id: z.
|
|
42
|
-
}, z.core.$
|
|
32
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
business_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
series: z.ZodNullable<z.ZodString>;
|
|
44
44
|
currency: z.ZodNullable<z.ZodString>;
|
|
45
45
|
language: z.ZodNullable<z.ZodString>;
|
|
@@ -51,65 +51,14 @@ declare const FinmeiGetInvoiceOutput: z.ZodObject<{
|
|
|
51
51
|
invoice_date: z.ZodNullable<z.ZodString>;
|
|
52
52
|
invoice_type: z.ZodNullable<z.ZodString>;
|
|
53
53
|
invoice_number: z.ZodNullable<z.ZodString>;
|
|
54
|
-
pay_until_date: z.
|
|
54
|
+
pay_until_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
55
|
payment_status: z.ZodNullable<z.ZodString>;
|
|
56
56
|
total_incl_vat: z.ZodNullable<z.ZodNumber>;
|
|
57
|
-
payment_options: z.
|
|
58
|
-
}, z.core.$
|
|
57
|
+
payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
59
|
declare const finmeiGetInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
60
|
id: string;
|
|
61
|
-
},
|
|
62
|
-
id: string | null;
|
|
63
|
-
vat: number | null;
|
|
64
|
-
buyer: {
|
|
65
|
-
type?: string | undefined;
|
|
66
|
-
email?: string | undefined;
|
|
67
|
-
phone?: string | undefined;
|
|
68
|
-
address?: string | undefined;
|
|
69
|
-
vat_code?: string | undefined;
|
|
70
|
-
last_name?: string | undefined;
|
|
71
|
-
first_name?: string | undefined;
|
|
72
|
-
company_code?: string | undefined;
|
|
73
|
-
company_name?: string | undefined;
|
|
74
|
-
individual_tax_id?: string | undefined;
|
|
75
|
-
} | null;
|
|
76
|
-
seller: {
|
|
77
|
-
email?: string | undefined;
|
|
78
|
-
phone?: string | undefined;
|
|
79
|
-
address?: string | undefined;
|
|
80
|
-
vat_code?: string | undefined;
|
|
81
|
-
last_name?: string | undefined;
|
|
82
|
-
first_name?: string | undefined;
|
|
83
|
-
company_code?: string | undefined;
|
|
84
|
-
company_name?: string | undefined;
|
|
85
|
-
business_type?: string | undefined;
|
|
86
|
-
individual_tax_id?: string | undefined;
|
|
87
|
-
} | null;
|
|
88
|
-
series: string | null;
|
|
89
|
-
currency: string | null;
|
|
90
|
-
language: string | null;
|
|
91
|
-
subtotal: number | null;
|
|
92
|
-
created_at: number | null;
|
|
93
|
-
share_link: string | null;
|
|
94
|
-
updated_at: number | null;
|
|
95
|
-
business_id: string | null;
|
|
96
|
-
invoice_date: string | null;
|
|
97
|
-
invoice_type: string | null;
|
|
98
|
-
invoice_number: string | null;
|
|
99
|
-
payment_status: string | null;
|
|
100
|
-
total_incl_vat: number | null;
|
|
101
|
-
items?: {
|
|
102
|
-
id: string | null;
|
|
103
|
-
name: string | null;
|
|
104
|
-
price: number | null;
|
|
105
|
-
units: string | null;
|
|
106
|
-
quantity: number | null;
|
|
107
|
-
vat_percentage?: number | undefined;
|
|
108
|
-
}[] | undefined;
|
|
109
|
-
notes?: string | undefined;
|
|
110
|
-
pay_until_date?: string | undefined;
|
|
111
|
-
payment_options?: Record<string, never>[] | undefined;
|
|
112
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
61
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
113
62
|
//#endregion
|
|
114
63
|
export { finmeiGetInvoice };
|
|
115
64
|
//# sourceMappingURL=get-invoice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invoice.d.cts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,gBAAA,gCAAgB,wBAAA
|
|
1
|
+
{"version":3,"file":"get-invoice.d.cts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -8,38 +8,38 @@ declare const FinmeiGetInvoiceOutput: z.ZodObject<{
|
|
|
8
8
|
id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
vat: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
buyer: z.ZodNullable<z.ZodObject<{
|
|
11
|
-
type: z.
|
|
12
|
-
email: z.
|
|
13
|
-
phone: z.
|
|
14
|
-
address: z.
|
|
15
|
-
vat_code: z.
|
|
16
|
-
last_name: z.
|
|
17
|
-
first_name: z.
|
|
18
|
-
company_code: z.
|
|
19
|
-
company_name: z.
|
|
20
|
-
individual_tax_id: z.
|
|
21
|
-
}, z.core.$
|
|
22
|
-
items: z.
|
|
11
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
23
|
id: z.ZodNullable<z.ZodString>;
|
|
24
24
|
name: z.ZodNullable<z.ZodString>;
|
|
25
25
|
price: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
units: z.ZodNullable<z.ZodString>;
|
|
27
27
|
quantity: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
vat_percentage: z.
|
|
29
|
-
}, z.core.$
|
|
30
|
-
notes: z.
|
|
28
|
+
vat_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
seller: z.ZodNullable<z.ZodObject<{
|
|
32
|
-
email: z.
|
|
33
|
-
phone: z.
|
|
34
|
-
address: z.
|
|
35
|
-
vat_code: z.
|
|
36
|
-
last_name: z.
|
|
37
|
-
first_name: z.
|
|
38
|
-
company_code: z.
|
|
39
|
-
company_name: z.
|
|
40
|
-
business_type: z.
|
|
41
|
-
individual_tax_id: z.
|
|
42
|
-
}, z.core.$
|
|
32
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
vat_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
company_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
business_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
individual_tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
series: z.ZodNullable<z.ZodString>;
|
|
44
44
|
currency: z.ZodNullable<z.ZodString>;
|
|
45
45
|
language: z.ZodNullable<z.ZodString>;
|
|
@@ -51,65 +51,14 @@ declare const FinmeiGetInvoiceOutput: z.ZodObject<{
|
|
|
51
51
|
invoice_date: z.ZodNullable<z.ZodString>;
|
|
52
52
|
invoice_type: z.ZodNullable<z.ZodString>;
|
|
53
53
|
invoice_number: z.ZodNullable<z.ZodString>;
|
|
54
|
-
pay_until_date: z.
|
|
54
|
+
pay_until_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
55
|
payment_status: z.ZodNullable<z.ZodString>;
|
|
56
56
|
total_incl_vat: z.ZodNullable<z.ZodNumber>;
|
|
57
|
-
payment_options: z.
|
|
58
|
-
}, z.core.$
|
|
57
|
+
payment_options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
59
|
declare const finmeiGetInvoice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
60
|
id: string;
|
|
61
|
-
},
|
|
62
|
-
id: string | null;
|
|
63
|
-
vat: number | null;
|
|
64
|
-
buyer: {
|
|
65
|
-
type?: string | undefined;
|
|
66
|
-
email?: string | undefined;
|
|
67
|
-
phone?: string | undefined;
|
|
68
|
-
address?: string | undefined;
|
|
69
|
-
vat_code?: string | undefined;
|
|
70
|
-
last_name?: string | undefined;
|
|
71
|
-
first_name?: string | undefined;
|
|
72
|
-
company_code?: string | undefined;
|
|
73
|
-
company_name?: string | undefined;
|
|
74
|
-
individual_tax_id?: string | undefined;
|
|
75
|
-
} | null;
|
|
76
|
-
seller: {
|
|
77
|
-
email?: string | undefined;
|
|
78
|
-
phone?: string | undefined;
|
|
79
|
-
address?: string | undefined;
|
|
80
|
-
vat_code?: string | undefined;
|
|
81
|
-
last_name?: string | undefined;
|
|
82
|
-
first_name?: string | undefined;
|
|
83
|
-
company_code?: string | undefined;
|
|
84
|
-
company_name?: string | undefined;
|
|
85
|
-
business_type?: string | undefined;
|
|
86
|
-
individual_tax_id?: string | undefined;
|
|
87
|
-
} | null;
|
|
88
|
-
series: string | null;
|
|
89
|
-
currency: string | null;
|
|
90
|
-
language: string | null;
|
|
91
|
-
subtotal: number | null;
|
|
92
|
-
created_at: number | null;
|
|
93
|
-
share_link: string | null;
|
|
94
|
-
updated_at: number | null;
|
|
95
|
-
business_id: string | null;
|
|
96
|
-
invoice_date: string | null;
|
|
97
|
-
invoice_type: string | null;
|
|
98
|
-
invoice_number: string | null;
|
|
99
|
-
payment_status: string | null;
|
|
100
|
-
total_incl_vat: number | null;
|
|
101
|
-
items?: {
|
|
102
|
-
id: string | null;
|
|
103
|
-
name: string | null;
|
|
104
|
-
price: number | null;
|
|
105
|
-
units: string | null;
|
|
106
|
-
quantity: number | null;
|
|
107
|
-
vat_percentage?: number | undefined;
|
|
108
|
-
}[] | undefined;
|
|
109
|
-
notes?: string | undefined;
|
|
110
|
-
pay_until_date?: string | undefined;
|
|
111
|
-
payment_options?: Record<string, never>[] | undefined;
|
|
112
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
61
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
113
62
|
//#endregion
|
|
114
63
|
export { finmeiGetInvoice };
|
|
115
64
|
//# sourceMappingURL=get-invoice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invoice.d.mts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,gBAAA,gCAAgB,wBAAA
|
|
1
|
+
{"version":3,"file":"get-invoice.d.mts","names":[],"sources":["../../src/actions/get-invoice.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -3,37 +3,37 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-invoice.ts
|
|
4
4
|
const FinmeiGetInvoiceInput = z.object({ id: z.string().describe("Invoice ID to retrieve") }).describe("Request parameters for retrieving a single invoice by ID.");
|
|
5
5
|
const FinmeiGetInvoice_BuyerSchema = z.object({
|
|
6
|
-
type: z.
|
|
7
|
-
email: z.
|
|
8
|
-
phone: z.
|
|
9
|
-
address: z.
|
|
10
|
-
vat_code: z.
|
|
11
|
-
last_name: z.
|
|
12
|
-
first_name: z.
|
|
13
|
-
company_code: z.
|
|
14
|
-
company_name: z.
|
|
15
|
-
individual_tax_id: z.
|
|
16
|
-
}).describe("Buyer/customer information on the invoice");
|
|
6
|
+
type: z.string().describe("Type of buyer (company or individual)").nullable().optional(),
|
|
7
|
+
email: z.string().describe("Buyer email").nullable().optional(),
|
|
8
|
+
phone: z.string().describe("Buyer phone number").nullable().optional(),
|
|
9
|
+
address: z.string().describe("Buyer address").nullable().optional(),
|
|
10
|
+
vat_code: z.string().describe("VAT registration number").nullable().optional(),
|
|
11
|
+
last_name: z.string().describe("Last name (for individual buyers)").nullable().optional(),
|
|
12
|
+
first_name: z.string().describe("First name (for individual buyers)").nullable().optional(),
|
|
13
|
+
company_code: z.string().describe("Company registration code").nullable().optional(),
|
|
14
|
+
company_name: z.string().describe("Company name (for company buyers)").nullable().optional(),
|
|
15
|
+
individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
|
|
16
|
+
}).passthrough().describe("Buyer/customer information on the invoice");
|
|
17
17
|
const FinmeiGetInvoice_InvoiceItemSchema = z.object({
|
|
18
18
|
id: z.string().describe("Unique item identifier").nullable(),
|
|
19
19
|
name: z.string().describe("Item/product/service name").nullable(),
|
|
20
20
|
price: z.number().describe("Unit price").nullable(),
|
|
21
21
|
units: z.string().describe("Unit of measurement (hours, pcs, etc.)").nullable(),
|
|
22
22
|
quantity: z.number().describe("Quantity").nullable(),
|
|
23
|
-
vat_percentage: z.
|
|
24
|
-
}).describe("Line item on the invoice");
|
|
23
|
+
vat_percentage: z.number().describe("VAT/tax percentage applied").nullable().optional()
|
|
24
|
+
}).passthrough().describe("Line item on the invoice");
|
|
25
25
|
const FinmeiGetInvoice_SellerSchema = z.object({
|
|
26
|
-
email: z.
|
|
27
|
-
phone: z.
|
|
28
|
-
address: z.
|
|
29
|
-
vat_code: z.
|
|
30
|
-
last_name: z.
|
|
31
|
-
first_name: z.
|
|
32
|
-
company_code: z.
|
|
33
|
-
company_name: z.
|
|
34
|
-
business_type: z.
|
|
35
|
-
individual_tax_id: z.
|
|
36
|
-
}).describe("Seller/business information on the invoice");
|
|
26
|
+
email: z.string().describe("Business email").nullable().optional(),
|
|
27
|
+
phone: z.string().describe("Business phone number").nullable().optional(),
|
|
28
|
+
address: z.string().describe("Business address").nullable().optional(),
|
|
29
|
+
vat_code: z.string().describe("VAT registration number").nullable().optional(),
|
|
30
|
+
last_name: z.string().describe("Last name (for individual sellers)").nullable().optional(),
|
|
31
|
+
first_name: z.string().describe("First name (for individual sellers)").nullable().optional(),
|
|
32
|
+
company_code: z.string().describe("Company registration code").nullable().optional(),
|
|
33
|
+
company_name: z.string().describe("Company name (for company sellers)").nullable().optional(),
|
|
34
|
+
business_type: z.string().describe("Type of business (company or individual)").nullable().optional(),
|
|
35
|
+
individual_tax_id: z.string().describe("Individual tax ID").nullable().optional()
|
|
36
|
+
}).passthrough().describe("Seller/business information on the invoice");
|
|
37
37
|
const finmeiGetInvoice = action("FINMEI_GET_INVOICE", {
|
|
38
38
|
slug: "finmei-get-invoice",
|
|
39
39
|
name: "Get Invoice by ID",
|
|
@@ -43,8 +43,8 @@ const finmeiGetInvoice = action("FINMEI_GET_INVOICE", {
|
|
|
43
43
|
id: z.string().describe("Unique invoice identifier").nullable(),
|
|
44
44
|
vat: z.number().describe("Total VAT/tax amount").nullable(),
|
|
45
45
|
buyer: FinmeiGetInvoice_BuyerSchema.nullable(),
|
|
46
|
-
items: z.
|
|
47
|
-
notes: z.
|
|
46
|
+
items: z.array(FinmeiGetInvoice_InvoiceItemSchema).describe("List of line items on the invoice").nullable().optional(),
|
|
47
|
+
notes: z.string().describe("Additional notes on the invoice").nullable().optional(),
|
|
48
48
|
seller: FinmeiGetInvoice_SellerSchema.nullable(),
|
|
49
49
|
series: z.string().describe("Invoice series/prefix").nullable(),
|
|
50
50
|
currency: z.string().describe("ISO 4217 currency code (USD, EUR, GBP, etc.)").nullable(),
|
|
@@ -57,11 +57,11 @@ const finmeiGetInvoice = action("FINMEI_GET_INVOICE", {
|
|
|
57
57
|
invoice_date: z.string().describe("Invoice date in YYYY-MM-DD format").nullable(),
|
|
58
58
|
invoice_type: z.string().describe("Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)").nullable(),
|
|
59
59
|
invoice_number: z.string().describe("Invoice number within the series").nullable(),
|
|
60
|
-
pay_until_date: z.
|
|
60
|
+
pay_until_date: z.string().describe("Payment due date in YYYY-MM-DD format").nullable().optional(),
|
|
61
61
|
payment_status: z.string().describe("Payment status (not_paid, paid, partially_paid, etc.)").nullable(),
|
|
62
62
|
total_incl_vat: z.number().describe("Total amount including VAT").nullable(),
|
|
63
|
-
payment_options: z.
|
|
64
|
-
}).describe("Complete invoice details returned by the API.")
|
|
63
|
+
payment_options: z.array(z.record(z.string(), z.unknown())).describe("Available payment options").nullable().optional()
|
|
64
|
+
}).passthrough().describe("Complete invoice details returned by the API.")
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
export { finmeiGetInvoice };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invoice.mjs","names":[],"sources":["../../src/actions/get-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetInvoiceInput = z.object({\n id: z.string().describe(\"Invoice ID to retrieve\"),\n}).describe(\"Request parameters for retrieving a single invoice by ID.\");\nconst FinmeiGetInvoice_BuyerSchema = z.object({\n type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of buyer (company or individual)\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Buyer address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual buyers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual buyers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company buyers)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Buyer/customer information on the invoice\");\nconst FinmeiGetInvoice_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"VAT/tax percentage applied\").optional()),\n}).describe(\"Line item on the invoice\");\nconst FinmeiGetInvoice_SellerSchema = z.object({\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business email\").optional()),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business phone number\").optional()),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Business address\").optional()),\n vat_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"VAT registration number\").optional()),\n last_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name (for individual sellers)\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name (for individual sellers)\").optional()),\n company_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company registration code\").optional()),\n company_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Company name (for company sellers)\").optional()),\n business_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of business (company or individual)\").optional()),\n individual_tax_id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Individual tax ID\").optional()),\n}).describe(\"Seller/business information on the invoice\");\nexport const FinmeiGetInvoiceOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiGetInvoice_BuyerSchema.nullable(),\n items: z.preprocess((value) => (value === null ? undefined : value), z.array(FinmeiGetInvoice_InvoiceItemSchema).describe(\"List of line items on the invoice\").optional()),\n notes: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Additional notes on the invoice\").optional()),\n seller: FinmeiGetInvoice_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Payment due date in YYYY-MM-DD format\").optional()),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"Available payment options\").optional()),\n}).describe(\"Complete invoice details returned by the API.\");\n\nexport const finmeiGetInvoice = action(\"FINMEI_GET_INVOICE\", {\n slug: \"finmei-get-invoice\",\n name: \"Get Invoice by ID\",\n description: \"Tool to retrieve a single invoice by its ID. Use when you need full invoice details including buyer, seller, items, amounts, and payment options.\",\n input: FinmeiGetInvoiceInput,\n output: FinmeiGetInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EAClD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+BAA+B,EAAE,OAAO;CAC5C,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CAC3I,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC;CAClH,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC;CACzH,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC;CACtH,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC;CACjI,WAAW,EAAE,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gB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACjF,gBAAgB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;EACrJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACtG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC3E,iBAAiB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CACvJ,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-invoice.mjs","names":[],"sources":["../../src/actions/get-invoice.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetInvoiceInput = z.object({\n id: z.string().describe(\"Invoice ID to retrieve\"),\n}).describe(\"Request parameters for retrieving a single invoice by ID.\");\nconst FinmeiGetInvoice_BuyerSchema = z.object({\n type: z.string().describe(\"Type of buyer (company or individual)\").nullable().optional(),\n email: z.string().describe(\"Buyer email\").nullable().optional(),\n phone: z.string().describe(\"Buyer phone number\").nullable().optional(),\n address: z.string().describe(\"Buyer address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual buyers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual buyers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company buyers)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Buyer/customer information on the invoice\");\nconst FinmeiGetInvoice_InvoiceItemSchema = z.object({\n id: z.string().describe(\"Unique item identifier\").nullable(),\n name: z.string().describe(\"Item/product/service name\").nullable(),\n price: z.number().describe(\"Unit price\").nullable(),\n units: z.string().describe(\"Unit of measurement (hours, pcs, etc.)\").nullable(),\n quantity: z.number().describe(\"Quantity\").nullable(),\n vat_percentage: z.number().describe(\"VAT/tax percentage applied\").nullable().optional(),\n}).passthrough().describe(\"Line item on the invoice\");\nconst FinmeiGetInvoice_SellerSchema = z.object({\n email: z.string().describe(\"Business email\").nullable().optional(),\n phone: z.string().describe(\"Business phone number\").nullable().optional(),\n address: z.string().describe(\"Business address\").nullable().optional(),\n vat_code: z.string().describe(\"VAT registration number\").nullable().optional(),\n last_name: z.string().describe(\"Last name (for individual sellers)\").nullable().optional(),\n first_name: z.string().describe(\"First name (for individual sellers)\").nullable().optional(),\n company_code: z.string().describe(\"Company registration code\").nullable().optional(),\n company_name: z.string().describe(\"Company name (for company sellers)\").nullable().optional(),\n business_type: z.string().describe(\"Type of business (company or individual)\").nullable().optional(),\n individual_tax_id: z.string().describe(\"Individual tax ID\").nullable().optional(),\n}).passthrough().describe(\"Seller/business information on the invoice\");\nexport const FinmeiGetInvoiceOutput = z.object({\n id: z.string().describe(\"Unique invoice identifier\").nullable(),\n vat: z.number().describe(\"Total VAT/tax amount\").nullable(),\n buyer: FinmeiGetInvoice_BuyerSchema.nullable(),\n items: z.array(FinmeiGetInvoice_InvoiceItemSchema).describe(\"List of line items on the invoice\").nullable().optional(),\n notes: z.string().describe(\"Additional notes on the invoice\").nullable().optional(),\n seller: FinmeiGetInvoice_SellerSchema.nullable(),\n series: z.string().describe(\"Invoice series/prefix\").nullable(),\n currency: z.string().describe(\"ISO 4217 currency code (USD, EUR, GBP, etc.)\").nullable(),\n language: z.string().describe(\"Invoice language code\").nullable(),\n subtotal: z.number().describe(\"Subtotal amount before VAT\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp when invoice was created\").nullable(),\n share_link: z.string().describe(\"Public URL to view/share the invoice\").nullable(),\n updated_at: z.number().int().describe(\"Unix timestamp when invoice was last updated\").nullable(),\n business_id: z.string().describe(\"Business account identifier\").nullable(),\n invoice_date: z.string().describe(\"Invoice date in YYYY-MM-DD format\").nullable(),\n invoice_type: z.string().describe(\"Type of invoice (regular_invoice, vat_invoice, preliminary_invoice, credit_invoice)\").nullable(),\n invoice_number: z.string().describe(\"Invoice number within the series\").nullable(),\n pay_until_date: z.string().describe(\"Payment due date in YYYY-MM-DD format\").nullable().optional(),\n payment_status: z.string().describe(\"Payment status (not_paid, paid, partially_paid, etc.)\").nullable(),\n total_incl_vat: z.number().describe(\"Total amount including VAT\").nullable(),\n payment_options: z.array(z.record(z.string(), z.unknown())).describe(\"Available payment options\").nullable().optional(),\n}).passthrough().describe(\"Complete invoice details returned by the API.\");\n\nexport const finmeiGetInvoice = action(\"FINMEI_GET_INVOICE\", {\n slug: \"finmei-get-invoice\",\n name: \"Get Invoice by ID\",\n description: \"Tool to retrieve a single invoice by its ID. Use when you need full invoice details including buyer, seller, items, amounts, and payment options.\",\n input: FinmeiGetInvoiceInput,\n output: FinmeiGetInvoiceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EAClD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+BAA+B,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAA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;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -6,13 +6,13 @@ const FinmeiGetPaymentOutput = zod.z.object({
|
|
|
6
6
|
id: zod.z.string().describe("Unique identifier of the payment").nullable(),
|
|
7
7
|
date: zod.z.string().describe("Date of the payment in ISO 8601 format").nullable(),
|
|
8
8
|
mode: zod.z.string().describe("Mode of the payment").nullable(),
|
|
9
|
-
notes: zod.z.
|
|
9
|
+
notes: zod.z.string().describe("Optional notes for the payment").nullable().optional(),
|
|
10
10
|
amount: zod.z.number().describe("Amount of the payment").nullable(),
|
|
11
|
-
reference: zod.z.
|
|
11
|
+
reference: zod.z.string().describe("Optional payment reference number").nullable().optional(),
|
|
12
12
|
created_at: zod.z.string().describe("Timestamp when the payment was created").nullable(),
|
|
13
13
|
invoice_id: zod.z.string().describe("ID of the invoice associated with this payment").nullable(),
|
|
14
14
|
updated_at: zod.z.string().describe("Timestamp when the payment was last updated").nullable()
|
|
15
|
-
}).describe("Detailed payment object as returned by the API");
|
|
15
|
+
}).passthrough().describe("Detailed payment object as returned by the API");
|
|
16
16
|
const finmeiGetPayment = require_action.action("FINMEI_GET_PAYMENT", {
|
|
17
17
|
slug: "finmei-get-payment",
|
|
18
18
|
name: "Get Payment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payment.cjs","names":["z","action"],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetPaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to retrieve\"),\n}).describe(\"Path parameter for GET /payments/{payment_id}\");\nexport const FinmeiGetPaymentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment\").nullable(),\n notes: z.
|
|
1
|
+
{"version":3,"file":"get-payment.cjs","names":["z","action"],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetPaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to retrieve\"),\n}).describe(\"Path parameter for GET /payments/{payment_id}\");\nexport const FinmeiGetPaymentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment\").nullable(),\n notes: z.string().describe(\"Optional notes for the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Optional payment reference number\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with this payment\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Detailed payment object as returned by the API\");\n\nexport const finmeiGetPayment = action(\"FINMEI_GET_PAYMENT\", {\n slug: \"finmei-get-payment\",\n name: \"Get Payment\",\n description: \"Tool to retrieve details of a specific payment by its ID. Use after creating a payment or when you need to confirm payment details.\",\n input: FinmeiGetPaymentInput,\n output: FinmeiGetPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAChF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,26 +8,16 @@ declare const FinmeiGetPaymentOutput: z.ZodObject<{
|
|
|
8
8
|
id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
date: z.ZodNullable<z.ZodString>;
|
|
10
10
|
mode: z.ZodNullable<z.ZodString>;
|
|
11
|
-
notes: z.
|
|
11
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
reference: z.
|
|
13
|
+
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
created_at: z.ZodNullable<z.ZodString>;
|
|
15
15
|
invoice_id: z.ZodNullable<z.ZodString>;
|
|
16
16
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const finmeiGetPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
payment_id: string;
|
|
20
|
-
},
|
|
21
|
-
id: string | null;
|
|
22
|
-
date: string | null;
|
|
23
|
-
mode: string | null;
|
|
24
|
-
amount: number | null;
|
|
25
|
-
created_at: string | null;
|
|
26
|
-
invoice_id: string | null;
|
|
27
|
-
updated_at: string | null;
|
|
28
|
-
notes?: string | undefined;
|
|
29
|
-
reference?: string | undefined;
|
|
30
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
21
|
//#endregion
|
|
32
22
|
export { finmeiGetPayment };
|
|
33
23
|
//# sourceMappingURL=get-payment.d.cts.map
|
|
@@ -8,26 +8,16 @@ declare const FinmeiGetPaymentOutput: z.ZodObject<{
|
|
|
8
8
|
id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
date: z.ZodNullable<z.ZodString>;
|
|
10
10
|
mode: z.ZodNullable<z.ZodString>;
|
|
11
|
-
notes: z.
|
|
11
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
reference: z.
|
|
13
|
+
reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
created_at: z.ZodNullable<z.ZodString>;
|
|
15
15
|
invoice_id: z.ZodNullable<z.ZodString>;
|
|
16
16
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const finmeiGetPayment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
payment_id: string;
|
|
20
|
-
},
|
|
21
|
-
id: string | null;
|
|
22
|
-
date: string | null;
|
|
23
|
-
mode: string | null;
|
|
24
|
-
amount: number | null;
|
|
25
|
-
created_at: string | null;
|
|
26
|
-
invoice_id: string | null;
|
|
27
|
-
updated_at: string | null;
|
|
28
|
-
notes?: string | undefined;
|
|
29
|
-
reference?: string | undefined;
|
|
30
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
21
|
//#endregion
|
|
32
22
|
export { finmeiGetPayment };
|
|
33
23
|
//# sourceMappingURL=get-payment.d.mts.map
|
|
@@ -9,13 +9,13 @@ const finmeiGetPayment = action("FINMEI_GET_PAYMENT", {
|
|
|
9
9
|
id: z.string().describe("Unique identifier of the payment").nullable(),
|
|
10
10
|
date: z.string().describe("Date of the payment in ISO 8601 format").nullable(),
|
|
11
11
|
mode: z.string().describe("Mode of the payment").nullable(),
|
|
12
|
-
notes: z.
|
|
12
|
+
notes: z.string().describe("Optional notes for the payment").nullable().optional(),
|
|
13
13
|
amount: z.number().describe("Amount of the payment").nullable(),
|
|
14
|
-
reference: z.
|
|
14
|
+
reference: z.string().describe("Optional payment reference number").nullable().optional(),
|
|
15
15
|
created_at: z.string().describe("Timestamp when the payment was created").nullable(),
|
|
16
16
|
invoice_id: z.string().describe("ID of the invoice associated with this payment").nullable(),
|
|
17
17
|
updated_at: z.string().describe("Timestamp when the payment was last updated").nullable()
|
|
18
|
-
}).describe("Detailed payment object as returned by the API")
|
|
18
|
+
}).passthrough().describe("Detailed payment object as returned by the API")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { finmeiGetPayment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payment.mjs","names":[],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetPaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to retrieve\"),\n}).describe(\"Path parameter for GET /payments/{payment_id}\");\nexport const FinmeiGetPaymentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment\").nullable(),\n notes: z.
|
|
1
|
+
{"version":3,"file":"get-payment.mjs","names":[],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetPaymentInput = z.object({\n payment_id: z.string().describe(\"Unique identifier of the payment to retrieve\"),\n}).describe(\"Path parameter for GET /payments/{payment_id}\");\nexport const FinmeiGetPaymentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the payment\").nullable(),\n date: z.string().describe(\"Date of the payment in ISO 8601 format\").nullable(),\n mode: z.string().describe(\"Mode of the payment\").nullable(),\n notes: z.string().describe(\"Optional notes for the payment\").nullable().optional(),\n amount: z.number().describe(\"Amount of the payment\").nullable(),\n reference: z.string().describe(\"Optional payment reference number\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the payment was created\").nullable(),\n invoice_id: z.string().describe(\"ID of the invoice associated with this payment\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the payment was last updated\").nullable(),\n}).passthrough().describe(\"Detailed payment object as returned by the API\");\n\nexport const finmeiGetPayment = action(\"FINMEI_GET_PAYMENT\", {\n slug: \"finmei-get-payment\",\n name: \"Get Payment\",\n description: \"Tool to retrieve details of a specific payment by its ID. Use after creating a payment or when you need to confirm payment details.\",\n input: FinmeiGetPaymentInput,\n output: FinmeiGetPaymentOutput,\n});\n"],"mappings":";;AAmBA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBmC,EAAE,OAAO,EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAChF,CAAC,CAAC,CAAC,SAAS,+CAiBH;CACP,QAjBoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -9,8 +9,8 @@ const FinmeiGetProductOutput = zod.z.object({
|
|
|
9
9
|
currency: zod.z.string().describe("Currency code of the product price, e.g., USD").nullable(),
|
|
10
10
|
created_at: zod.z.string().describe("ISO8601 timestamp when the product was created").nullable(),
|
|
11
11
|
updated_at: zod.z.string().describe("ISO8601 timestamp when the product was last updated").nullable(),
|
|
12
|
-
description: zod.z.
|
|
13
|
-
});
|
|
12
|
+
description: zod.z.string().describe("Description of the product").nullable().optional()
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const finmeiGetProduct = require_action.action("FINMEI_GET_PRODUCT", {
|
|
15
15
|
slug: "finmei-get-product",
|
|
16
16
|
name: "Get Product by ID",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-product.cjs","names":["z","action"],"sources":["../../src/actions/get-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to retrieve\"),\n});\nexport const FinmeiGetProductOutput = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product\").nullable(),\n currency: z.string().describe(\"Currency code of the product price, e.g., USD\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the product was created\").nullable(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the product was last updated\").nullable(),\n description: z.
|
|
1
|
+
{"version":3,"file":"get-product.cjs","names":["z","action"],"sources":["../../src/actions/get-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FinmeiGetProductInput = z.object({\n product_id: z.string().describe(\"Unique identifier of the product to retrieve\"),\n});\nexport const FinmeiGetProductOutput = z.object({\n id: z.string().describe(\"Unique identifier of the product\").nullable(),\n name: z.string().describe(\"Name of the product\").nullable(),\n price: z.number().describe(\"Price of the product\").nullable(),\n currency: z.string().describe(\"Currency code of the product price, e.g., USD\").nullable(),\n created_at: z.string().describe(\"ISO8601 timestamp when the product was created\").nullable(),\n updated_at: z.string().describe(\"ISO8601 timestamp when the product was last updated\").nullable(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough();\n\nexport const finmeiGetProduct = action(\"FINMEI_GET_PRODUCT\", {\n slug: \"finmei-get-product\",\n name: \"Get Product by ID\",\n description: \"Tool to retrieve a product by its ID. Use when you need detailed information about a single product.\",\n input: FinmeiGetProductInput,\n output: FinmeiGetProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAChF,CAAC;AACD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,19 +11,11 @@ declare const FinmeiGetProductOutput: z.ZodObject<{
|
|
|
11
11
|
currency: z.ZodNullable<z.ZodString>;
|
|
12
12
|
created_at: z.ZodNullable<z.ZodString>;
|
|
13
13
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
14
|
-
description: z.
|
|
15
|
-
}, z.core.$
|
|
14
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const finmeiGetProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
product_id: string;
|
|
18
|
-
},
|
|
19
|
-
id: string | null;
|
|
20
|
-
name: string | null;
|
|
21
|
-
price: number | null;
|
|
22
|
-
currency: string | null;
|
|
23
|
-
created_at: string | null;
|
|
24
|
-
updated_at: string | null;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
19
|
//#endregion
|
|
28
20
|
export { finmeiGetProduct };
|
|
29
21
|
//# sourceMappingURL=get-product.d.cts.map
|