@wix/auto_sdk_payments_tax-documents 1.0.2 → 1.0.4
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/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +46 -2
- package/build/internal/cjs/meta.d.ts +86 -0
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +46 -2
- package/build/internal/es/meta.d.mts +86 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -85
- package/build/cjs/schemas.js +0 -183
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -85
- package/build/es/schemas.mjs +0 -141
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -342
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -312
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -274
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -85
- package/build/internal/cjs/schemas.js +0 -183
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -313
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -283
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -242
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -85
- package/build/internal/es/schemas.mjs +0 -141
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/build/cjs/schemas.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// schemas.ts
|
|
31
|
-
var schemas_exports = {};
|
|
32
|
-
__export(schemas_exports, {
|
|
33
|
-
GenerateFileDownloadInfoRequest: () => GenerateFileDownloadInfoRequest,
|
|
34
|
-
GenerateFileDownloadInfoResponse: () => GenerateFileDownloadInfoResponse,
|
|
35
|
-
GetTaxDocumentRequest: () => GetTaxDocumentRequest,
|
|
36
|
-
GetTaxDocumentResponse: () => GetTaxDocumentResponse,
|
|
37
|
-
ListTaxDocumentsRequest: () => ListTaxDocumentsRequest,
|
|
38
|
-
ListTaxDocumentsResponse: () => ListTaxDocumentsResponse
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
41
|
-
|
|
42
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts
|
|
43
|
-
var z = __toESM(require("zod"));
|
|
44
|
-
var GetTaxDocumentRequest = z.object({
|
|
45
|
-
taxDocumentId: z.string().describe("ID of the tax document to retrieve.").regex(
|
|
46
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
47
|
-
"Must be a valid GUID"
|
|
48
|
-
)
|
|
49
|
-
});
|
|
50
|
-
var GetTaxDocumentResponse = z.object({
|
|
51
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
52
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
53
|
-
"Must be a valid GUID"
|
|
54
|
-
).optional().nullable(),
|
|
55
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
56
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
57
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
58
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
59
|
-
).optional(),
|
|
60
|
-
accountId: z.string().describe("ID of the Wix Payments account the tax document belongs to.").regex(
|
|
61
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
62
|
-
"Must be a valid GUID"
|
|
63
|
-
).optional(),
|
|
64
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
65
|
-
period: z.intersection(
|
|
66
|
-
z.object({}),
|
|
67
|
-
z.xor([
|
|
68
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
69
|
-
z.object({
|
|
70
|
-
yearPeriod: z.object({
|
|
71
|
-
year: z.number().int().describe(
|
|
72
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
73
|
-
).optional()
|
|
74
|
-
}).describe("The tax document covers a full calendar year.")
|
|
75
|
-
})
|
|
76
|
-
])
|
|
77
|
-
).describe("Period the tax document covers.").optional(),
|
|
78
|
-
downloadable: z.boolean().describe(
|
|
79
|
-
"Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\n\nAt least one of `downloadable` and `problematic` is always `true`."
|
|
80
|
-
).optional(),
|
|
81
|
-
problematic: z.boolean().describe(
|
|
82
|
-
"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\n\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time."
|
|
83
|
-
).optional(),
|
|
84
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
85
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
86
|
-
});
|
|
87
|
-
var ListTaxDocumentsRequest = z.object({
|
|
88
|
-
accountId: z.string().describe(
|
|
89
|
-
"ID of the Wix Payments account whose tax documents are retrieved."
|
|
90
|
-
).regex(
|
|
91
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
92
|
-
"Must be a valid GUID"
|
|
93
|
-
),
|
|
94
|
-
options: z.object({
|
|
95
|
-
paging: z.object({
|
|
96
|
-
limit: z.number().int().describe("Number of items to load.").min(0).max(100).optional().nullable(),
|
|
97
|
-
cursor: z.string().describe(
|
|
98
|
-
"Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
99
|
-
).max(16e3).optional().nullable()
|
|
100
|
-
}).describe("Cursor paging options.").optional(),
|
|
101
|
-
type: z.enum(["FORM_1099_K"]).optional()
|
|
102
|
-
}).optional()
|
|
103
|
-
});
|
|
104
|
-
var ListTaxDocumentsResponse = z.object({
|
|
105
|
-
taxDocuments: z.array(
|
|
106
|
-
z.object({
|
|
107
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
108
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
109
|
-
"Must be a valid GUID"
|
|
110
|
-
).optional().nullable(),
|
|
111
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
112
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
113
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
114
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
115
|
-
).optional(),
|
|
116
|
-
accountId: z.string().describe(
|
|
117
|
-
"ID of the Wix Payments account the tax document belongs to."
|
|
118
|
-
).regex(
|
|
119
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
120
|
-
"Must be a valid GUID"
|
|
121
|
-
).optional(),
|
|
122
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
123
|
-
period: z.intersection(
|
|
124
|
-
z.object({}),
|
|
125
|
-
z.xor([
|
|
126
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
127
|
-
z.object({
|
|
128
|
-
yearPeriod: z.object({
|
|
129
|
-
year: z.number().int().describe(
|
|
130
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
131
|
-
).optional()
|
|
132
|
-
}).describe("The tax document covers a full calendar year.")
|
|
133
|
-
})
|
|
134
|
-
])
|
|
135
|
-
).describe("Period the tax document covers.").optional(),
|
|
136
|
-
downloadable: z.boolean().describe(
|
|
137
|
-
"Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\n\nAt least one of `downloadable` and `problematic` is always `true`."
|
|
138
|
-
).optional(),
|
|
139
|
-
problematic: z.boolean().describe(
|
|
140
|
-
"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\n\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time."
|
|
141
|
-
).optional(),
|
|
142
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
143
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
144
|
-
})
|
|
145
|
-
).optional(),
|
|
146
|
-
pagingMetadata: z.object({
|
|
147
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
148
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
149
|
-
total: z.number().int().describe(
|
|
150
|
-
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
151
|
-
).optional().nullable(),
|
|
152
|
-
tooManyToCount: z.boolean().describe(
|
|
153
|
-
"Flag that indicates the server failed to calculate the `total` field."
|
|
154
|
-
).optional().nullable(),
|
|
155
|
-
cursors: z.object({
|
|
156
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(16e3).optional().nullable(),
|
|
157
|
-
prev: z.string().describe(
|
|
158
|
-
"Cursor pointing to previous page in the list of results."
|
|
159
|
-
).max(16e3).optional().nullable()
|
|
160
|
-
}).describe(
|
|
161
|
-
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
162
|
-
).optional()
|
|
163
|
-
}).describe("Paging metadata.").optional()
|
|
164
|
-
});
|
|
165
|
-
var GenerateFileDownloadInfoRequest = z.object({
|
|
166
|
-
taxDocumentId: z.string().describe("ID of the tax document to download a file for.").regex(
|
|
167
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
168
|
-
"Must be a valid GUID"
|
|
169
|
-
)
|
|
170
|
-
});
|
|
171
|
-
var GenerateFileDownloadInfoResponse = z.object({
|
|
172
|
-
downloadInfo: z.string().describe("Information for downloading the tax document's file.").optional()
|
|
173
|
-
});
|
|
174
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
175
|
-
0 && (module.exports = {
|
|
176
|
-
GenerateFileDownloadInfoRequest,
|
|
177
|
-
GenerateFileDownloadInfoResponse,
|
|
178
|
-
GetTaxDocumentRequest,
|
|
179
|
-
GetTaxDocumentResponse,
|
|
180
|
-
ListTaxDocumentsRequest,
|
|
181
|
-
ListTaxDocumentsResponse
|
|
182
|
-
});
|
|
183
|
-
//# sourceMappingURL=schemas.js.map
|
package/build/cjs/schemas.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts"],"sourcesContent":["export * from './src/payments-tax-documents-v1-tax-document-tax-documents.schemas.js';\n","import * as z from 'zod';\n\nexport const GetTaxDocumentRequest = z.object({\n taxDocumentId: z\n .string()\n .describe('ID of the tax document to retrieve.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetTaxDocumentResponse = z.object({\n _id: z\n .string()\n .describe('Tax document ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax document was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax document was last updated.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the tax document is updated.'\n )\n .optional(),\n accountId: z\n .string()\n .describe('ID of the Wix Payments account the tax document belongs to.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n type: z.enum(['FORM_1099_K']).describe('Type of tax document.').optional(),\n period: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({ yearPeriod: z.never().optional() }),\n z.object({\n yearPeriod: z\n .object({\n year: z\n .number()\n .int()\n .describe(\n 'Calendar year the tax document covers. For example, `2024`.'\n )\n .optional(),\n })\n .describe('The tax document covers a full calendar year.'),\n }),\n ])\n )\n .describe('Period the tax document covers.')\n .optional(),\n downloadable: z\n .boolean()\n .describe(\n 'Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\\n\\nAt least one of `downloadable` and `problematic` is always `true`.'\n )\n .optional(),\n problematic: z\n .boolean()\n .describe(\n \"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\\n\\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.\"\n )\n .optional(),\n sourceType: z\n .enum(['PAYMENT', 'PAYOUT'])\n .describe(\"How the tax document's amounts are aggregated.\")\n .optional(),\n displayName: z\n .string()\n .describe(\"Human-readable name for the tax document's file.\")\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n});\nexport const ListTaxDocumentsRequest = z.object({\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account whose tax documents are retrieved.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Number of items to load.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Cursor paging options.')\n .optional(),\n type: z.enum(['FORM_1099_K']).optional(),\n })\n .optional(),\n});\nexport const ListTaxDocumentsResponse = z.object({\n taxDocuments: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Tax document ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax document was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax document was last updated.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the tax document is updated.'\n )\n .optional(),\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account the tax document belongs to.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n type: z\n .enum(['FORM_1099_K'])\n .describe('Type of tax document.')\n .optional(),\n period: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({ yearPeriod: z.never().optional() }),\n z.object({\n yearPeriod: z\n .object({\n year: z\n .number()\n .int()\n .describe(\n 'Calendar year the tax document covers. For example, `2024`.'\n )\n .optional(),\n })\n .describe('The tax document covers a full calendar year.'),\n }),\n ])\n )\n .describe('Period the tax document covers.')\n .optional(),\n downloadable: z\n .boolean()\n .describe(\n 'Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\\n\\nAt least one of `downloadable` and `problematic` is always `true`.'\n )\n .optional(),\n problematic: z\n .boolean()\n .describe(\n \"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\\n\\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.\"\n )\n .optional(),\n sourceType: z\n .enum(['PAYMENT', 'PAYOUT'])\n .describe(\"How the tax document's amounts are aggregated.\")\n .optional(),\n displayName: z\n .string()\n .describe(\"Human-readable name for the tax document's file.\")\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: z\n .number()\n .int()\n .describe(\n 'Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.'\n )\n .optional()\n .nullable(),\n tooManyToCount: z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to next page in the list of results.')\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GenerateFileDownloadInfoRequest = z.object({\n taxDocumentId: z\n .string()\n .describe('ID of the tax document to download a file for.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GenerateFileDownloadInfoResponse = z.object({\n downloadInfo: z\n .string()\n .describe(\"Information for downloading the tax document's file.\")\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,eACG,SAAO,EACP,SAAS,qCAAqC,EAC9C;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,kBAAkB,EAC3B;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,6CAA6C,EACtD,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,kDAAkD,EAC3D,SAAS,EACT,SAAS;AAAA,EACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,WACG,SAAO,EACP,SAAS,6DAA6D,EACtE;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AAAA,EACZ,MAAQ,OAAK,CAAC,aAAa,CAAC,EAAE,SAAS,uBAAuB,EAAE,SAAS;AAAA,EACzE,QACG;AAAA,IACG,SAAO,CAAC,CAAC;AAAA,IACT,MAAI;AAAA,MACF,SAAO,EAAE,YAAc,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,MAC3C,SAAO;AAAA,QACP,YACG,SAAO;AAAA,UACN,MACG,SAAO,EACP,IAAI,EACJ;AAAA,YACC;AAAA,UACF,EACC,SAAS;AAAA,QACd,CAAC,EACA,SAAS,+CAA+C;AAAA,MAC7D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IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;AACM,IAAM,kCAAoC,SAAO;AAAA,EACtD,eACG,SAAO,EACP,SAAS,gDAAgD,EACzD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,cACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,SAAS;AACd,CAAC;","names":[]}
|
package/build/es/schemas.d.mts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const GetTaxDocumentRequest: z.ZodObject<{
|
|
4
|
-
taxDocumentId: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const GetTaxDocumentResponse: z.ZodObject<{
|
|
7
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
9
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
-
revision: z.ZodOptional<z.ZodString>;
|
|
11
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
FORM_1099_K: "FORM_1099_K";
|
|
14
|
-
}>>;
|
|
15
|
-
period: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
16
|
-
yearPeriod: z.ZodOptional<z.ZodNever>;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
yearPeriod: z.ZodObject<{
|
|
19
|
-
year: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
}, z.core.$strip>]>>>;
|
|
22
|
-
downloadable: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
problematic: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
PAYMENT: "PAYMENT";
|
|
26
|
-
PAYOUT: "PAYOUT";
|
|
27
|
-
}>>;
|
|
28
|
-
displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
declare const ListTaxDocumentsRequest: z.ZodObject<{
|
|
31
|
-
accountId: z.ZodString;
|
|
32
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
paging: z.ZodOptional<z.ZodObject<{
|
|
34
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
-
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
FORM_1099_K: "FORM_1099_K";
|
|
39
|
-
}>>;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
declare const ListTaxDocumentsResponse: z.ZodObject<{
|
|
43
|
-
taxDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
46
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
47
|
-
revision: z.ZodOptional<z.ZodString>;
|
|
48
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
49
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
50
|
-
FORM_1099_K: "FORM_1099_K";
|
|
51
|
-
}>>;
|
|
52
|
-
period: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
53
|
-
yearPeriod: z.ZodOptional<z.ZodNever>;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
yearPeriod: z.ZodObject<{
|
|
56
|
-
year: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
}, z.core.$strip>]>>>;
|
|
59
|
-
downloadable: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
-
problematic: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
PAYMENT: "PAYMENT";
|
|
63
|
-
PAYOUT: "PAYOUT";
|
|
64
|
-
}>>;
|
|
65
|
-
displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
66
|
-
}, z.core.$strip>>>;
|
|
67
|
-
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
68
|
-
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
70
|
-
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
71
|
-
tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
72
|
-
cursors: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
|
-
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
}, z.core.$strip>>;
|
|
77
|
-
}, z.core.$strip>;
|
|
78
|
-
declare const GenerateFileDownloadInfoRequest: z.ZodObject<{
|
|
79
|
-
taxDocumentId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
declare const GenerateFileDownloadInfoResponse: z.ZodObject<{
|
|
82
|
-
downloadInfo: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
|
|
85
|
-
export { GenerateFileDownloadInfoRequest, GenerateFileDownloadInfoResponse, GetTaxDocumentRequest, GetTaxDocumentResponse, ListTaxDocumentsRequest, ListTaxDocumentsResponse };
|
package/build/es/schemas.mjs
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
var GetTaxDocumentRequest = z.object({
|
|
4
|
-
taxDocumentId: z.string().describe("ID of the tax document to retrieve.").regex(
|
|
5
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
6
|
-
"Must be a valid GUID"
|
|
7
|
-
)
|
|
8
|
-
});
|
|
9
|
-
var GetTaxDocumentResponse = z.object({
|
|
10
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
11
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
12
|
-
"Must be a valid GUID"
|
|
13
|
-
).optional().nullable(),
|
|
14
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
15
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
16
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
17
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
18
|
-
).optional(),
|
|
19
|
-
accountId: z.string().describe("ID of the Wix Payments account the tax document belongs to.").regex(
|
|
20
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
21
|
-
"Must be a valid GUID"
|
|
22
|
-
).optional(),
|
|
23
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
24
|
-
period: z.intersection(
|
|
25
|
-
z.object({}),
|
|
26
|
-
z.xor([
|
|
27
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
28
|
-
z.object({
|
|
29
|
-
yearPeriod: z.object({
|
|
30
|
-
year: z.number().int().describe(
|
|
31
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
32
|
-
).optional()
|
|
33
|
-
}).describe("The tax document covers a full calendar year.")
|
|
34
|
-
})
|
|
35
|
-
])
|
|
36
|
-
).describe("Period the tax document covers.").optional(),
|
|
37
|
-
downloadable: z.boolean().describe(
|
|
38
|
-
"Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\n\nAt least one of `downloadable` and `problematic` is always `true`."
|
|
39
|
-
).optional(),
|
|
40
|
-
problematic: z.boolean().describe(
|
|
41
|
-
"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\n\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time."
|
|
42
|
-
).optional(),
|
|
43
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
44
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
45
|
-
});
|
|
46
|
-
var ListTaxDocumentsRequest = z.object({
|
|
47
|
-
accountId: z.string().describe(
|
|
48
|
-
"ID of the Wix Payments account whose tax documents are retrieved."
|
|
49
|
-
).regex(
|
|
50
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
51
|
-
"Must be a valid GUID"
|
|
52
|
-
),
|
|
53
|
-
options: z.object({
|
|
54
|
-
paging: z.object({
|
|
55
|
-
limit: z.number().int().describe("Number of items to load.").min(0).max(100).optional().nullable(),
|
|
56
|
-
cursor: z.string().describe(
|
|
57
|
-
"Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
58
|
-
).max(16e3).optional().nullable()
|
|
59
|
-
}).describe("Cursor paging options.").optional(),
|
|
60
|
-
type: z.enum(["FORM_1099_K"]).optional()
|
|
61
|
-
}).optional()
|
|
62
|
-
});
|
|
63
|
-
var ListTaxDocumentsResponse = z.object({
|
|
64
|
-
taxDocuments: z.array(
|
|
65
|
-
z.object({
|
|
66
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
67
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
68
|
-
"Must be a valid GUID"
|
|
69
|
-
).optional().nullable(),
|
|
70
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
71
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
72
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
73
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
74
|
-
).optional(),
|
|
75
|
-
accountId: z.string().describe(
|
|
76
|
-
"ID of the Wix Payments account the tax document belongs to."
|
|
77
|
-
).regex(
|
|
78
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
79
|
-
"Must be a valid GUID"
|
|
80
|
-
).optional(),
|
|
81
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
82
|
-
period: z.intersection(
|
|
83
|
-
z.object({}),
|
|
84
|
-
z.xor([
|
|
85
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
86
|
-
z.object({
|
|
87
|
-
yearPeriod: z.object({
|
|
88
|
-
year: z.number().int().describe(
|
|
89
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
90
|
-
).optional()
|
|
91
|
-
}).describe("The tax document covers a full calendar year.")
|
|
92
|
-
})
|
|
93
|
-
])
|
|
94
|
-
).describe("Period the tax document covers.").optional(),
|
|
95
|
-
downloadable: z.boolean().describe(
|
|
96
|
-
"Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\n\nAt least one of `downloadable` and `problematic` is always `true`."
|
|
97
|
-
).optional(),
|
|
98
|
-
problematic: z.boolean().describe(
|
|
99
|
-
"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\n\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time."
|
|
100
|
-
).optional(),
|
|
101
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
102
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
103
|
-
})
|
|
104
|
-
).optional(),
|
|
105
|
-
pagingMetadata: z.object({
|
|
106
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
107
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
108
|
-
total: z.number().int().describe(
|
|
109
|
-
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
110
|
-
).optional().nullable(),
|
|
111
|
-
tooManyToCount: z.boolean().describe(
|
|
112
|
-
"Flag that indicates the server failed to calculate the `total` field."
|
|
113
|
-
).optional().nullable(),
|
|
114
|
-
cursors: z.object({
|
|
115
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(16e3).optional().nullable(),
|
|
116
|
-
prev: z.string().describe(
|
|
117
|
-
"Cursor pointing to previous page in the list of results."
|
|
118
|
-
).max(16e3).optional().nullable()
|
|
119
|
-
}).describe(
|
|
120
|
-
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
121
|
-
).optional()
|
|
122
|
-
}).describe("Paging metadata.").optional()
|
|
123
|
-
});
|
|
124
|
-
var GenerateFileDownloadInfoRequest = z.object({
|
|
125
|
-
taxDocumentId: z.string().describe("ID of the tax document to download a file for.").regex(
|
|
126
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
127
|
-
"Must be a valid GUID"
|
|
128
|
-
)
|
|
129
|
-
});
|
|
130
|
-
var GenerateFileDownloadInfoResponse = z.object({
|
|
131
|
-
downloadInfo: z.string().describe("Information for downloading the tax document's file.").optional()
|
|
132
|
-
});
|
|
133
|
-
export {
|
|
134
|
-
GenerateFileDownloadInfoRequest,
|
|
135
|
-
GenerateFileDownloadInfoResponse,
|
|
136
|
-
GetTaxDocumentRequest,
|
|
137
|
-
GetTaxDocumentResponse,
|
|
138
|
-
ListTaxDocumentsRequest,
|
|
139
|
-
ListTaxDocumentsResponse
|
|
140
|
-
};
|
|
141
|
-
//# sourceMappingURL=schemas.mjs.map
|
package/build/es/schemas.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetTaxDocumentRequest = z.object({\n taxDocumentId: z\n .string()\n .describe('ID of the tax document to retrieve.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetTaxDocumentResponse = z.object({\n _id: z\n .string()\n .describe('Tax document ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax document was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax document was last updated.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the tax document is updated.'\n )\n .optional(),\n accountId: z\n .string()\n .describe('ID of the Wix Payments account the tax document belongs to.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n type: z.enum(['FORM_1099_K']).describe('Type of tax document.').optional(),\n period: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({ yearPeriod: z.never().optional() }),\n z.object({\n yearPeriod: z\n .object({\n year: z\n .number()\n .int()\n .describe(\n 'Calendar year the tax document covers. For example, `2024`.'\n )\n .optional(),\n })\n .describe('The tax document covers a full calendar year.'),\n }),\n ])\n )\n .describe('Period the tax document covers.')\n .optional(),\n downloadable: z\n .boolean()\n .describe(\n 'Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\\n\\nAt least one of `downloadable` and `problematic` is always `true`.'\n )\n .optional(),\n problematic: z\n .boolean()\n .describe(\n \"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\\n\\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.\"\n )\n .optional(),\n sourceType: z\n .enum(['PAYMENT', 'PAYOUT'])\n .describe(\"How the tax document's amounts are aggregated.\")\n .optional(),\n displayName: z\n .string()\n .describe(\"Human-readable name for the tax document's file.\")\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n});\nexport const ListTaxDocumentsRequest = z.object({\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account whose tax documents are retrieved.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Number of items to load.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Cursor paging options.')\n .optional(),\n type: z.enum(['FORM_1099_K']).optional(),\n })\n .optional(),\n});\nexport const ListTaxDocumentsResponse = z.object({\n taxDocuments: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Tax document ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax document was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax document was last updated.')\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the tax document is updated.'\n )\n .optional(),\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account the tax document belongs to.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n type: z\n .enum(['FORM_1099_K'])\n .describe('Type of tax document.')\n .optional(),\n period: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({ yearPeriod: z.never().optional() }),\n z.object({\n yearPeriod: z\n .object({\n year: z\n .number()\n .int()\n .describe(\n 'Calendar year the tax document covers. For example, `2024`.'\n )\n .optional(),\n })\n .describe('The tax document covers a full calendar year.'),\n }),\n ])\n )\n .describe('Period the tax document covers.')\n .optional(),\n downloadable: z\n .boolean()\n .describe(\n 'Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\\n\\nAt least one of `downloadable` and `problematic` is always `true`.'\n )\n .optional(),\n problematic: z\n .boolean()\n .describe(\n \"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\\n\\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.\"\n )\n .optional(),\n sourceType: z\n .enum(['PAYMENT', 'PAYOUT'])\n .describe(\"How the tax document's amounts are aggregated.\")\n .optional(),\n displayName: z\n .string()\n .describe(\"Human-readable name for the tax document's file.\")\n .min(1)\n .max(1000)\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Offset that was requested.')\n .optional()\n .nullable(),\n total: z\n .number()\n .int()\n .describe(\n 'Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.'\n )\n .optional()\n .nullable(),\n tooManyToCount: z\n .boolean()\n .describe(\n 'Flag that indicates the server failed to calculate the `total` field.'\n )\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to next page in the list of results.')\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n )\n .optional(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GenerateFileDownloadInfoRequest = z.object({\n taxDocumentId: z\n .string()\n .describe('ID of the tax document to download a file for.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GenerateFileDownloadInfoResponse = z.object({\n downloadInfo: z\n .string()\n .describe(\"Information for downloading the tax document's file.\")\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,eACG,SAAO,EACP,SAAS,qCAAqC,EAC9C;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,kBAAkB,EAC3B;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,6CAA6C,EACtD,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,kDAAkD,EAC3D,SAAS,EACT,SAAS;AAAA,EACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,WACG,SAAO,EACP,SAAS,6DAA6D,EACtE;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AAAA,EACZ,MAAQ,OAAK,CAAC,aAAa,CAAC,EAAE,SAAS,uBAAuB,EAAE,SAAS;AAAA,EACzE,QACG;AAAA,IACG,SAAO,CAAC,CAAC;AAAA,IACT,MAAI;AAAA,MACF,SAAO,EAAE,YAAc,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,MAC3C,SAAO;AAAA,QACP,YACG,SAAO;AAAA,UACN,MACG,SAAO,EACP,IAAI,EACJ;AAAA,YACC;AAAA,UACF,EACC,SAAS;AAAA,QACd,CAAC,EACA,SAAS,+CAA+C;AAAA,MAC7D,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS,iCAAiC,EAC1C,SAAS;AAAA,EACZ,cACG,UAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,aACG,UAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,YACG,OAAK,CAAC,WAAW,QAAQ,CAAC,EAC1B,SAA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