@wix/auto_sdk_ecom_tax-groups 1.0.55 → 1.0.56
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/schemas.d.ts +168 -0
- package/build/cjs/schemas.js +300 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +168 -0
- package/build/es/schemas.mjs +250 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +168 -0
- package/build/internal/cjs/schemas.js +300 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +168 -0
- package/build/internal/es/schemas.mjs +250 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +11 -4
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CreateTaxGroupRequest: z.ZodObject<{
|
|
4
|
+
taxGroup: z.ZodObject<{
|
|
5
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
9
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const CreateTaxGroupResponse: z.ZodObject<{
|
|
13
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
name: z.ZodOptional<z.ZodString>;
|
|
15
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
17
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const GetTaxGroupRequest: z.ZodObject<{
|
|
20
|
+
taxGroupId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const GetTaxGroupResponse: z.ZodObject<{
|
|
23
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
name: z.ZodOptional<z.ZodString>;
|
|
25
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
27
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const UpdateTaxGroupRequest: z.ZodObject<{
|
|
30
|
+
_id: z.ZodString;
|
|
31
|
+
taxGroup: z.ZodObject<{
|
|
32
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
revision: z.ZodString;
|
|
35
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
36
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const UpdateTaxGroupResponse: z.ZodObject<{
|
|
40
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
+
name: z.ZodOptional<z.ZodString>;
|
|
42
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
44
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const DeleteTaxGroupRequest: z.ZodObject<{
|
|
47
|
+
taxGroupId: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
declare const DeleteTaxGroupResponse: z.ZodObject<{}, z.core.$strip>;
|
|
50
|
+
declare const QueryTaxGroupsRequest: z.ZodObject<{
|
|
51
|
+
query: z.ZodObject<{
|
|
52
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
55
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
$ne: z.ZodOptional<z.ZodString>;
|
|
57
|
+
$nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
_id: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
61
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
$ne: z.ZodOptional<z.ZodString>;
|
|
63
|
+
$nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
}, z.core.$strict>>;
|
|
65
|
+
_createdDate: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
67
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
69
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
70
|
+
$hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
|
+
$hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
74
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
75
|
+
$ne: z.ZodOptional<z.ZodString>;
|
|
76
|
+
$nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
$startsWith: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strict>>;
|
|
79
|
+
_updatedDate: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
81
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
83
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
84
|
+
$hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
+
$hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
88
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
89
|
+
$ne: z.ZodOptional<z.ZodString>;
|
|
90
|
+
$nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
+
$startsWith: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strict>>;
|
|
93
|
+
$and: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
94
|
+
$or: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
95
|
+
$not: z.ZodOptional<z.ZodAny>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
98
|
+
fieldName: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
_id: "_id";
|
|
100
|
+
name: "name";
|
|
101
|
+
_createdDate: "_createdDate";
|
|
102
|
+
_updatedDate: "_updatedDate";
|
|
103
|
+
}>>;
|
|
104
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
ASC: "ASC";
|
|
106
|
+
DESC: "DESC";
|
|
107
|
+
}>>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
declare const QueryTaxGroupsResponse: z.ZodObject<{
|
|
112
|
+
taxGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
114
|
+
name: z.ZodOptional<z.ZodString>;
|
|
115
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
117
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
121
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
123
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
declare const ListDefaultTaxGroupsRequest: z.ZodObject<{}, z.core.$strip>;
|
|
129
|
+
declare const ListDefaultTaxGroupsResponse: z.ZodObject<{
|
|
130
|
+
taxGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
132
|
+
name: z.ZodOptional<z.ZodString>;
|
|
133
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
134
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
135
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
declare const ListDefaultTaxGroupsByAppIdsRequest: z.ZodObject<{
|
|
139
|
+
appIds: z.ZodArray<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
declare const ListDefaultTaxGroupsByAppIdsResponse: z.ZodObject<{
|
|
142
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
+
taxGroupMetadata: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
145
|
+
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
code: z.ZodOptional<z.ZodString>;
|
|
149
|
+
description: z.ZodOptional<z.ZodString>;
|
|
150
|
+
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
taxGroup: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
name: z.ZodOptional<z.ZodString>;
|
|
156
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
157
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
158
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
159
|
+
}, z.core.$strip>>;
|
|
160
|
+
}, z.core.$strip>>>;
|
|
161
|
+
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
undetailedFailures: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
|
|
168
|
+
export { CreateTaxGroupRequest, CreateTaxGroupResponse, DeleteTaxGroupRequest, DeleteTaxGroupResponse, GetTaxGroupRequest, GetTaxGroupResponse, ListDefaultTaxGroupsByAppIdsRequest, ListDefaultTaxGroupsByAppIdsResponse, ListDefaultTaxGroupsRequest, ListDefaultTaxGroupsResponse, QueryTaxGroupsRequest, QueryTaxGroupsResponse, UpdateTaxGroupRequest, UpdateTaxGroupResponse };
|
|
@@ -0,0 +1,300 @@
|
|
|
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
|
+
CreateTaxGroupRequest: () => CreateTaxGroupRequest,
|
|
34
|
+
CreateTaxGroupResponse: () => CreateTaxGroupResponse,
|
|
35
|
+
DeleteTaxGroupRequest: () => DeleteTaxGroupRequest,
|
|
36
|
+
DeleteTaxGroupResponse: () => DeleteTaxGroupResponse,
|
|
37
|
+
GetTaxGroupRequest: () => GetTaxGroupRequest,
|
|
38
|
+
GetTaxGroupResponse: () => GetTaxGroupResponse,
|
|
39
|
+
ListDefaultTaxGroupsByAppIdsRequest: () => ListDefaultTaxGroupsByAppIdsRequest,
|
|
40
|
+
ListDefaultTaxGroupsByAppIdsResponse: () => ListDefaultTaxGroupsByAppIdsResponse,
|
|
41
|
+
ListDefaultTaxGroupsRequest: () => ListDefaultTaxGroupsRequest,
|
|
42
|
+
ListDefaultTaxGroupsResponse: () => ListDefaultTaxGroupsResponse,
|
|
43
|
+
QueryTaxGroupsRequest: () => QueryTaxGroupsRequest,
|
|
44
|
+
QueryTaxGroupsResponse: () => QueryTaxGroupsResponse,
|
|
45
|
+
UpdateTaxGroupRequest: () => UpdateTaxGroupRequest,
|
|
46
|
+
UpdateTaxGroupResponse: () => UpdateTaxGroupResponse
|
|
47
|
+
});
|
|
48
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
49
|
+
|
|
50
|
+
// src/billing-v1-tax-group-tax-groups.schemas.ts
|
|
51
|
+
var z = __toESM(require("zod"));
|
|
52
|
+
var CreateTaxGroupRequest = z.object({
|
|
53
|
+
taxGroup: z.object({
|
|
54
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
55
|
+
/^[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}$/,
|
|
56
|
+
"Must be a valid GUID"
|
|
57
|
+
).optional().nullable(),
|
|
58
|
+
name: z.string().describe("Tax group name.").min(1).max(200),
|
|
59
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
60
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
61
|
+
).optional().nullable(),
|
|
62
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
63
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
64
|
+
}).describe("Tax group to create.")
|
|
65
|
+
});
|
|
66
|
+
var CreateTaxGroupResponse = z.object({
|
|
67
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
68
|
+
/^[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}$/,
|
|
69
|
+
"Must be a valid GUID"
|
|
70
|
+
).optional().nullable(),
|
|
71
|
+
name: z.string().describe("Tax group name.").min(1).max(200).optional(),
|
|
72
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
73
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
74
|
+
).optional().nullable(),
|
|
75
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
76
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
77
|
+
});
|
|
78
|
+
var GetTaxGroupRequest = z.object({
|
|
79
|
+
taxGroupId: z.string().describe("ID of the tax group to retrieve.").regex(
|
|
80
|
+
/^[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}$/,
|
|
81
|
+
"Must be a valid GUID"
|
|
82
|
+
)
|
|
83
|
+
});
|
|
84
|
+
var GetTaxGroupResponse = z.object({
|
|
85
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
86
|
+
/^[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}$/,
|
|
87
|
+
"Must be a valid GUID"
|
|
88
|
+
).optional().nullable(),
|
|
89
|
+
name: z.string().describe("Tax group name.").min(1).max(200).optional(),
|
|
90
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
91
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
92
|
+
).optional().nullable(),
|
|
93
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
94
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
95
|
+
});
|
|
96
|
+
var UpdateTaxGroupRequest = z.object({
|
|
97
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
98
|
+
/^[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}$/,
|
|
99
|
+
"Must be a valid GUID"
|
|
100
|
+
),
|
|
101
|
+
taxGroup: z.object({
|
|
102
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
103
|
+
/^[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}$/,
|
|
104
|
+
"Must be a valid GUID"
|
|
105
|
+
).optional().nullable(),
|
|
106
|
+
name: z.string().describe("Tax group name.").min(1).max(200),
|
|
107
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
108
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
109
|
+
),
|
|
110
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
111
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
112
|
+
}).describe("Tax group info.")
|
|
113
|
+
});
|
|
114
|
+
var UpdateTaxGroupResponse = z.object({
|
|
115
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
116
|
+
/^[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}$/,
|
|
117
|
+
"Must be a valid GUID"
|
|
118
|
+
).optional().nullable(),
|
|
119
|
+
name: z.string().describe("Tax group name.").min(1).max(200).optional(),
|
|
120
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
121
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
122
|
+
).optional().nullable(),
|
|
123
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
124
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
125
|
+
});
|
|
126
|
+
var DeleteTaxGroupRequest = z.object({
|
|
127
|
+
taxGroupId: z.string().describe("ID of the tax group to delete.").regex(
|
|
128
|
+
/^[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}$/,
|
|
129
|
+
"Must be a valid GUID"
|
|
130
|
+
)
|
|
131
|
+
});
|
|
132
|
+
var DeleteTaxGroupResponse = z.object({});
|
|
133
|
+
var QueryTaxGroupsRequest = z.object({
|
|
134
|
+
query: z.object({
|
|
135
|
+
filter: z.object({
|
|
136
|
+
name: z.object({
|
|
137
|
+
$eq: z.string(),
|
|
138
|
+
$in: z.array(z.string()),
|
|
139
|
+
$ne: z.string(),
|
|
140
|
+
$nin: z.array(z.string())
|
|
141
|
+
}).partial().strict().optional(),
|
|
142
|
+
_id: z.object({
|
|
143
|
+
$eq: z.string(),
|
|
144
|
+
$in: z.array(z.string()),
|
|
145
|
+
$ne: z.string(),
|
|
146
|
+
$nin: z.array(z.string())
|
|
147
|
+
}).partial().strict().optional(),
|
|
148
|
+
_createdDate: z.object({
|
|
149
|
+
$eq: z.string(),
|
|
150
|
+
$exists: z.boolean(),
|
|
151
|
+
$gt: z.string(),
|
|
152
|
+
$gte: z.string(),
|
|
153
|
+
$hasAll: z.array(z.string()),
|
|
154
|
+
$hasSome: z.array(z.string()),
|
|
155
|
+
$in: z.array(z.string()),
|
|
156
|
+
$lt: z.string(),
|
|
157
|
+
$lte: z.string(),
|
|
158
|
+
$ne: z.string(),
|
|
159
|
+
$nin: z.array(z.string()),
|
|
160
|
+
$startsWith: z.string()
|
|
161
|
+
}).partial().strict().optional(),
|
|
162
|
+
_updatedDate: z.object({
|
|
163
|
+
$eq: z.string(),
|
|
164
|
+
$exists: z.boolean(),
|
|
165
|
+
$gt: z.string(),
|
|
166
|
+
$gte: z.string(),
|
|
167
|
+
$hasAll: z.array(z.string()),
|
|
168
|
+
$hasSome: z.array(z.string()),
|
|
169
|
+
$in: z.array(z.string()),
|
|
170
|
+
$lt: z.string(),
|
|
171
|
+
$lte: z.string(),
|
|
172
|
+
$ne: z.string(),
|
|
173
|
+
$nin: z.array(z.string()),
|
|
174
|
+
$startsWith: z.string()
|
|
175
|
+
}).partial().strict().optional(),
|
|
176
|
+
$and: z.array(z.any()).optional(),
|
|
177
|
+
$or: z.array(z.any()).optional(),
|
|
178
|
+
$not: z.any().optional()
|
|
179
|
+
}).strict().optional(),
|
|
180
|
+
sort: z.array(
|
|
181
|
+
z.object({
|
|
182
|
+
fieldName: z.enum(["name", "_id", "_createdDate", "_updatedDate"]).optional(),
|
|
183
|
+
order: z.enum(["ASC", "DESC"]).optional()
|
|
184
|
+
})
|
|
185
|
+
).optional()
|
|
186
|
+
}).catchall(z.any()).describe("Query options.")
|
|
187
|
+
});
|
|
188
|
+
var QueryTaxGroupsResponse = z.object({
|
|
189
|
+
taxGroups: z.array(
|
|
190
|
+
z.object({
|
|
191
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
192
|
+
/^[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}$/,
|
|
193
|
+
"Must be a valid GUID"
|
|
194
|
+
).optional().nullable(),
|
|
195
|
+
name: z.string().describe("Tax group name.").min(1).max(200).optional(),
|
|
196
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
197
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
198
|
+
).optional().nullable(),
|
|
199
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
200
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
201
|
+
})
|
|
202
|
+
).optional(),
|
|
203
|
+
pagingMetadata: z.object({
|
|
204
|
+
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
205
|
+
cursors: z.object({
|
|
206
|
+
next: z.string().describe(
|
|
207
|
+
"Cursor string pointing to the next page in the list of results."
|
|
208
|
+
).max(16e3).optional().nullable(),
|
|
209
|
+
prev: z.string().describe(
|
|
210
|
+
"Cursor pointing to the previous page in the list of results."
|
|
211
|
+
).max(16e3).optional().nullable()
|
|
212
|
+
}).describe(
|
|
213
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
214
|
+
).optional(),
|
|
215
|
+
hasNext: z.boolean().describe(
|
|
216
|
+
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
217
|
+
).optional().nullable()
|
|
218
|
+
}).describe("Paging metadata.").optional()
|
|
219
|
+
});
|
|
220
|
+
var ListDefaultTaxGroupsRequest = z.object({});
|
|
221
|
+
var ListDefaultTaxGroupsResponse = z.object({
|
|
222
|
+
taxGroups: z.array(
|
|
223
|
+
z.object({
|
|
224
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
225
|
+
/^[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}$/,
|
|
226
|
+
"Must be a valid GUID"
|
|
227
|
+
).optional().nullable(),
|
|
228
|
+
name: z.string().describe("Tax group name.").min(1).max(200).optional(),
|
|
229
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
230
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
231
|
+
).optional().nullable(),
|
|
232
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
233
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
234
|
+
})
|
|
235
|
+
).optional()
|
|
236
|
+
});
|
|
237
|
+
var ListDefaultTaxGroupsByAppIdsRequest = z.object({
|
|
238
|
+
appIds: z.array(z.string()).min(1).max(300)
|
|
239
|
+
});
|
|
240
|
+
var ListDefaultTaxGroupsByAppIdsResponse = z.object({
|
|
241
|
+
results: z.array(
|
|
242
|
+
z.object({
|
|
243
|
+
taxGroupMetadata: z.object({
|
|
244
|
+
_id: z.string().describe(
|
|
245
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
246
|
+
).optional().nullable(),
|
|
247
|
+
originalIndex: z.number().int().describe(
|
|
248
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
249
|
+
).optional(),
|
|
250
|
+
success: z.boolean().describe(
|
|
251
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
252
|
+
).optional(),
|
|
253
|
+
error: z.object({
|
|
254
|
+
code: z.string().describe("Error code.").optional(),
|
|
255
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
256
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
257
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
258
|
+
}).describe(
|
|
259
|
+
"Information about success or failure to retrieve default tax groups."
|
|
260
|
+
).optional(),
|
|
261
|
+
taxGroup: z.object({
|
|
262
|
+
_id: z.string().describe("Tax group ID.").regex(
|
|
263
|
+
/^[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}$/,
|
|
264
|
+
"Must be a valid GUID"
|
|
265
|
+
).optional().nullable(),
|
|
266
|
+
name: z.string().describe("Tax group name.").min(1).max(200).optional(),
|
|
267
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
268
|
+
"Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\nthe current revision must be passed when updating the tax group.\n\nIgnored when creating a tax group."
|
|
269
|
+
).optional().nullable(),
|
|
270
|
+
_createdDate: z.date().describe("Date and time the tax group was created.").optional().nullable(),
|
|
271
|
+
_updatedDate: z.date().describe("Date and time the tax group was last updated.").optional().nullable()
|
|
272
|
+
}).describe("Retrieved default tax groups.").optional()
|
|
273
|
+
})
|
|
274
|
+
).min(1).max(300).optional(),
|
|
275
|
+
bulkActionMetadata: z.object({
|
|
276
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
277
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
278
|
+
undetailedFailures: z.number().int().describe(
|
|
279
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
280
|
+
).optional()
|
|
281
|
+
}).describe("Bulk action metadata.").optional()
|
|
282
|
+
});
|
|
283
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
284
|
+
0 && (module.exports = {
|
|
285
|
+
CreateTaxGroupRequest,
|
|
286
|
+
CreateTaxGroupResponse,
|
|
287
|
+
DeleteTaxGroupRequest,
|
|
288
|
+
DeleteTaxGroupResponse,
|
|
289
|
+
GetTaxGroupRequest,
|
|
290
|
+
GetTaxGroupResponse,
|
|
291
|
+
ListDefaultTaxGroupsByAppIdsRequest,
|
|
292
|
+
ListDefaultTaxGroupsByAppIdsResponse,
|
|
293
|
+
ListDefaultTaxGroupsRequest,
|
|
294
|
+
ListDefaultTaxGroupsResponse,
|
|
295
|
+
QueryTaxGroupsRequest,
|
|
296
|
+
QueryTaxGroupsResponse,
|
|
297
|
+
UpdateTaxGroupRequest,
|
|
298
|
+
UpdateTaxGroupResponse
|
|
299
|
+
});
|
|
300
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/billing-v1-tax-group-tax-groups.schemas.ts"],"sourcesContent":["export * from './src/billing-v1-tax-group-tax-groups.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateTaxGroupRequest = z.object({\n taxGroup: z\n .object({\n _id: z\n .string()\n .describe('Tax group 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 name: z.string().describe('Tax group name.').min(1).max(200),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Tax group to create.'),\n});\nexport const CreateTaxGroupResponse = z.object({\n _id: z\n .string()\n .describe('Tax group 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 name: z.string().describe('Tax group name.').min(1).max(200).optional(),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\n .optional()\n .nullable(),\n});\nexport const GetTaxGroupRequest = z.object({\n taxGroupId: z\n .string()\n .describe('ID of the tax group 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 GetTaxGroupResponse = z.object({\n _id: z\n .string()\n .describe('Tax group 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 name: z.string().describe('Tax group name.').min(1).max(200).optional(),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\n .optional()\n .nullable(),\n});\nexport const UpdateTaxGroupRequest = z.object({\n _id: z\n .string()\n .describe('Tax group 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 taxGroup: z\n .object({\n _id: z\n .string()\n .describe('Tax group 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 name: z.string().describe('Tax group name.').min(1).max(200),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n ),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Tax group info.'),\n});\nexport const UpdateTaxGroupResponse = z.object({\n _id: z\n .string()\n .describe('Tax group 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 name: z.string().describe('Tax group name.').min(1).max(200).optional(),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\n .optional()\n .nullable(),\n});\nexport const DeleteTaxGroupRequest = z.object({\n taxGroupId: z\n .string()\n .describe('ID of the tax group to delete.')\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 DeleteTaxGroupResponse = z.object({});\nexport const QueryTaxGroupsRequest = z.object({\n query: z\n .object({\n filter: z\n .object({\n name: z\n .object({\n $eq: z.string(),\n $in: z.array(z.string()),\n $ne: z.string(),\n $nin: z.array(z.string()),\n })\n .partial()\n .strict()\n .optional(),\n _id: z\n .object({\n $eq: z.string(),\n $in: z.array(z.string()),\n $ne: z.string(),\n $nin: z.array(z.string()),\n })\n .partial()\n .strict()\n .optional(),\n _createdDate: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n _updatedDate: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n $and: z.array(z.any()).optional(),\n $or: z.array(z.any()).optional(),\n $not: z.any().optional(),\n })\n .strict()\n .optional(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .enum(['name', '_id', '_createdDate', '_updatedDate'])\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .optional(),\n })\n .catchall(z.any())\n .describe('Query options.'),\n});\nexport const QueryTaxGroupsResponse = z.object({\n taxGroups: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Tax group 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 name: z.string().describe('Tax group name.').min(1).max(200).optional(),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\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 current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const ListDefaultTaxGroupsRequest = z.object({});\nexport const ListDefaultTaxGroupsResponse = z.object({\n taxGroups: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Tax group 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 name: z.string().describe('Tax group name.').min(1).max(200).optional(),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const ListDefaultTaxGroupsByAppIdsRequest = z.object({\n appIds: z.array(z.string()).min(1).max(300),\n});\nexport const ListDefaultTaxGroupsByAppIdsResponse = z.object({\n results: z\n .array(\n z.object({\n taxGroupMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe(\n 'Information about success or failure to retrieve default tax groups.'\n )\n .optional(),\n taxGroup: z\n .object({\n _id: z\n .string()\n .describe('Tax group 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 name: z\n .string()\n .describe('Tax group name.')\n .min(1)\n .max(200)\n .optional(),\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 group is updated. To prevent conflicting changes,\\nthe current revision must be passed when updating the tax group.\\n\\nIgnored when creating a tax group.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the tax group was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the tax group was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Retrieved default tax groups.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe('Bulk action metadata.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,UACG,SAAO;AAAA,IACN,KACG,SAAO,EACP,SAAS,eAAe,EACxB;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,MAAQ,SAAO,EAAE,SAAS,iBAAiB,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,IAC3D,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,0CAA0C,EACnD,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,+CAA+C,EACxD,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,sBAAsB;AACpC,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,eAAe,EACxB;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,MAAQ,SAAO,EAAE,SAAS,iBAAiB,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EACtE,UACG,SAA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