@wix/auto_sdk_bookings_categories 1.0.54 → 1.0.55
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 +73 -0
- package/build/cjs/schemas.js +143 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +73 -0
- package/build/es/schemas.mjs +99 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +73 -0
- package/build/internal/cjs/schemas.js +143 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +73 -0
- package/build/internal/es/schemas.mjs +99 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +11 -4
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ListCategoriesRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
includeDeleted: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ListCategoriesResponse: z.ZodObject<{
|
|
10
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
CREATED: "CREATED";
|
|
15
|
+
DELETED: "DELETED";
|
|
16
|
+
}>>;
|
|
17
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const CreateCategoryRequest: z.ZodObject<{
|
|
21
|
+
category: z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
CREATED: "CREATED";
|
|
26
|
+
DELETED: "DELETED";
|
|
27
|
+
}>>;
|
|
28
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const CreateCategoryResponse: z.ZodObject<{
|
|
32
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
CREATED: "CREATED";
|
|
36
|
+
DELETED: "DELETED";
|
|
37
|
+
}>>;
|
|
38
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const UpdateCategoryRequest: z.ZodObject<{
|
|
41
|
+
_id: z.ZodString;
|
|
42
|
+
category: z.ZodObject<{
|
|
43
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
CREATED: "CREATED";
|
|
47
|
+
DELETED: "DELETED";
|
|
48
|
+
}>>;
|
|
49
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
declare const UpdateCategoryResponse: z.ZodObject<{
|
|
53
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
CREATED: "CREATED";
|
|
58
|
+
DELETED: "DELETED";
|
|
59
|
+
}>>;
|
|
60
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const DeleteCategoryRequest: z.ZodObject<{
|
|
64
|
+
_id: z.ZodString;
|
|
65
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
deleteServices: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
declare const DeleteCategoryResponse: z.ZodObject<{
|
|
70
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
|
|
73
|
+
export { CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, ListCategoriesRequest, ListCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse };
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
CreateCategoryRequest: () => CreateCategoryRequest,
|
|
34
|
+
CreateCategoryResponse: () => CreateCategoryResponse,
|
|
35
|
+
DeleteCategoryRequest: () => DeleteCategoryRequest,
|
|
36
|
+
DeleteCategoryResponse: () => DeleteCategoryResponse,
|
|
37
|
+
ListCategoriesRequest: () => ListCategoriesRequest,
|
|
38
|
+
ListCategoriesResponse: () => ListCategoriesResponse,
|
|
39
|
+
UpdateCategoryRequest: () => UpdateCategoryRequest,
|
|
40
|
+
UpdateCategoryResponse: () => UpdateCategoryResponse
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
43
|
+
|
|
44
|
+
// src/bookings-v1-category-categories.schemas.ts
|
|
45
|
+
var z = __toESM(require("zod"));
|
|
46
|
+
var ListCategoriesRequest = z.object({
|
|
47
|
+
options: z.object({
|
|
48
|
+
categoryIds: z.array(z.string()).optional(),
|
|
49
|
+
includeDeleted: z.boolean().describe(
|
|
50
|
+
"Whether to include deleted categories in the response.\n\nDefault: `false`"
|
|
51
|
+
).optional().nullable()
|
|
52
|
+
}).describe("Options to use when listing categories.").optional()
|
|
53
|
+
});
|
|
54
|
+
var ListCategoriesResponse = z.object({
|
|
55
|
+
categories: z.array(
|
|
56
|
+
z.object({
|
|
57
|
+
_id: z.string().describe("Category ID.").regex(
|
|
58
|
+
/^[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}$/,
|
|
59
|
+
"Must be a valid GUID"
|
|
60
|
+
).optional().nullable(),
|
|
61
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
62
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
63
|
+
sortOrder: z.number().int().describe(
|
|
64
|
+
"Sort order of the category in the live site and dashboard."
|
|
65
|
+
).optional().nullable()
|
|
66
|
+
})
|
|
67
|
+
).optional()
|
|
68
|
+
});
|
|
69
|
+
var CreateCategoryRequest = z.object({
|
|
70
|
+
category: z.object({
|
|
71
|
+
_id: z.string().describe("Category ID.").regex(
|
|
72
|
+
/^[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}$/,
|
|
73
|
+
"Must be a valid GUID"
|
|
74
|
+
).optional().nullable(),
|
|
75
|
+
name: z.string().describe("Category name.").max(500),
|
|
76
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
77
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
78
|
+
}).describe("Category to create.")
|
|
79
|
+
});
|
|
80
|
+
var CreateCategoryResponse = z.object({
|
|
81
|
+
_id: z.string().describe("Category ID.").regex(
|
|
82
|
+
/^[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}$/,
|
|
83
|
+
"Must be a valid GUID"
|
|
84
|
+
).optional().nullable(),
|
|
85
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
86
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
87
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
88
|
+
});
|
|
89
|
+
var UpdateCategoryRequest = z.object({
|
|
90
|
+
_id: z.string().describe("Category ID.").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
|
+
category: z.object({
|
|
95
|
+
_id: z.string().describe("Category ID.").regex(
|
|
96
|
+
/^[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}$/,
|
|
97
|
+
"Must be a valid GUID"
|
|
98
|
+
).optional().nullable(),
|
|
99
|
+
name: z.string().describe("Category name.").max(500),
|
|
100
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
101
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
102
|
+
}).describe("Category to update.")
|
|
103
|
+
});
|
|
104
|
+
var UpdateCategoryResponse = z.object({
|
|
105
|
+
category: z.object({
|
|
106
|
+
_id: z.string().describe("Category ID.").regex(
|
|
107
|
+
/^[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}$/,
|
|
108
|
+
"Must be a valid GUID"
|
|
109
|
+
).optional().nullable(),
|
|
110
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
111
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
112
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
113
|
+
}).describe("Updated category.").optional()
|
|
114
|
+
});
|
|
115
|
+
var DeleteCategoryRequest = z.object({
|
|
116
|
+
_id: z.string().describe("ID of the category to delete.").regex(
|
|
117
|
+
/^[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}$/,
|
|
118
|
+
"Must be a valid GUID"
|
|
119
|
+
),
|
|
120
|
+
options: z.object({
|
|
121
|
+
deleteServices: z.boolean().describe(
|
|
122
|
+
"Whether to delete all the services associated with the category.\n\nDefault: `false`"
|
|
123
|
+
).optional().nullable()
|
|
124
|
+
}).optional()
|
|
125
|
+
});
|
|
126
|
+
var DeleteCategoryResponse = z.object({
|
|
127
|
+
_id: z.string().describe("ID of the deleted category.").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
|
+
).optional().nullable()
|
|
131
|
+
});
|
|
132
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
133
|
+
0 && (module.exports = {
|
|
134
|
+
CreateCategoryRequest,
|
|
135
|
+
CreateCategoryResponse,
|
|
136
|
+
DeleteCategoryRequest,
|
|
137
|
+
DeleteCategoryResponse,
|
|
138
|
+
ListCategoriesRequest,
|
|
139
|
+
ListCategoriesResponse,
|
|
140
|
+
UpdateCategoryRequest,
|
|
141
|
+
UpdateCategoryResponse
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/bookings-v1-category-categories.schemas.ts"],"sourcesContent":["export * from './src/bookings-v1-category-categories.schemas.js';\n","import * as z from 'zod';\n\nexport const ListCategoriesRequest = z.object({\n options: z\n .object({\n categoryIds: z.array(z.string()).optional(),\n includeDeleted: z\n .boolean()\n .describe(\n 'Whether to include deleted categories in the response.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .describe('Options to use when listing categories.')\n .optional(),\n});\nexport const ListCategoriesResponse = z.object({\n categories: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe(\n 'Sort order of the category in the live site and dashboard.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const CreateCategoryRequest = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to create.'),\n});\nexport const CreateCategoryResponse = z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500).optional().nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n});\nexport const UpdateCategoryRequest = z.object({\n _id: z\n .string()\n .describe('Category 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 category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to update.'),\n});\nexport const UpdateCategoryResponse = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Updated category.')\n .optional(),\n});\nexport const DeleteCategoryRequest = z.object({\n _id: z\n .string()\n .describe('ID of the category 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 options: z\n .object({\n deleteServices: z\n .boolean()\n .describe(\n 'Whether to delete all the services associated with the category.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const DeleteCategoryResponse = z.object({\n _id: z\n .string()\n .describe('ID of the deleted category.')\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});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,SACG,SAAO;AAAA,IACN,aAAe,QAAQ,SAAO,CAAC,EAAE,SAAS;AAAA,IAC1C,gBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,yCAAyC,EAClD,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,YACG;AAAA,IACG,SAAO;AAAA,MACP,KACG,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP,SAAS,gBAAgB,EACzB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,MACZ,QACG,OAAK,CAAC,WAAW,SAAS,CAAC,EAC3B,SAAS,wCAAwC,EACjD,SAAS;AAAA,MACZ,WACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,UACG,SAAO;AAAA,IACN,KACG,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,MAAQ,SAAO,E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,IACZ,MACG,SAAO,EACP,SAAS,gBAAgB,EACzB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,QACG,OAAK,CAAC,WAAW,SAAS,CAAC,EAC3B,SAAS,wCAAwC,EACjD,SAAS;AAAA,IACZ,WACG,SAAO,EACP,IAAI,EACJ,SAAS,4DAA4D,EACrE,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,mBAAmB,EAC5B,SAAS;AACd,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,KACG,SAAO,EACP,SAAS,+BAA+B,EACxC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,gBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,6BAA6B,EACtC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ListCategoriesRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
includeDeleted: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ListCategoriesResponse: z.ZodObject<{
|
|
10
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
CREATED: "CREATED";
|
|
15
|
+
DELETED: "DELETED";
|
|
16
|
+
}>>;
|
|
17
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const CreateCategoryRequest: z.ZodObject<{
|
|
21
|
+
category: z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
CREATED: "CREATED";
|
|
26
|
+
DELETED: "DELETED";
|
|
27
|
+
}>>;
|
|
28
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const CreateCategoryResponse: z.ZodObject<{
|
|
32
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
CREATED: "CREATED";
|
|
36
|
+
DELETED: "DELETED";
|
|
37
|
+
}>>;
|
|
38
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const UpdateCategoryRequest: z.ZodObject<{
|
|
41
|
+
_id: z.ZodString;
|
|
42
|
+
category: z.ZodObject<{
|
|
43
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
CREATED: "CREATED";
|
|
47
|
+
DELETED: "DELETED";
|
|
48
|
+
}>>;
|
|
49
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
declare const UpdateCategoryResponse: z.ZodObject<{
|
|
53
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
CREATED: "CREATED";
|
|
58
|
+
DELETED: "DELETED";
|
|
59
|
+
}>>;
|
|
60
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const DeleteCategoryRequest: z.ZodObject<{
|
|
64
|
+
_id: z.ZodString;
|
|
65
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
deleteServices: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
declare const DeleteCategoryResponse: z.ZodObject<{
|
|
70
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
|
|
73
|
+
export { CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, ListCategoriesRequest, ListCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// src/bookings-v1-category-categories.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var ListCategoriesRequest = z.object({
|
|
4
|
+
options: z.object({
|
|
5
|
+
categoryIds: z.array(z.string()).optional(),
|
|
6
|
+
includeDeleted: z.boolean().describe(
|
|
7
|
+
"Whether to include deleted categories in the response.\n\nDefault: `false`"
|
|
8
|
+
).optional().nullable()
|
|
9
|
+
}).describe("Options to use when listing categories.").optional()
|
|
10
|
+
});
|
|
11
|
+
var ListCategoriesResponse = z.object({
|
|
12
|
+
categories: z.array(
|
|
13
|
+
z.object({
|
|
14
|
+
_id: z.string().describe("Category ID.").regex(
|
|
15
|
+
/^[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}$/,
|
|
16
|
+
"Must be a valid GUID"
|
|
17
|
+
).optional().nullable(),
|
|
18
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
19
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
20
|
+
sortOrder: z.number().int().describe(
|
|
21
|
+
"Sort order of the category in the live site and dashboard."
|
|
22
|
+
).optional().nullable()
|
|
23
|
+
})
|
|
24
|
+
).optional()
|
|
25
|
+
});
|
|
26
|
+
var CreateCategoryRequest = z.object({
|
|
27
|
+
category: z.object({
|
|
28
|
+
_id: z.string().describe("Category ID.").regex(
|
|
29
|
+
/^[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}$/,
|
|
30
|
+
"Must be a valid GUID"
|
|
31
|
+
).optional().nullable(),
|
|
32
|
+
name: z.string().describe("Category name.").max(500),
|
|
33
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
34
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
35
|
+
}).describe("Category to create.")
|
|
36
|
+
});
|
|
37
|
+
var CreateCategoryResponse = z.object({
|
|
38
|
+
_id: z.string().describe("Category ID.").regex(
|
|
39
|
+
/^[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}$/,
|
|
40
|
+
"Must be a valid GUID"
|
|
41
|
+
).optional().nullable(),
|
|
42
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
43
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
44
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
45
|
+
});
|
|
46
|
+
var UpdateCategoryRequest = z.object({
|
|
47
|
+
_id: z.string().describe("Category ID.").regex(
|
|
48
|
+
/^[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}$/,
|
|
49
|
+
"Must be a valid GUID"
|
|
50
|
+
),
|
|
51
|
+
category: z.object({
|
|
52
|
+
_id: z.string().describe("Category ID.").regex(
|
|
53
|
+
/^[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}$/,
|
|
54
|
+
"Must be a valid GUID"
|
|
55
|
+
).optional().nullable(),
|
|
56
|
+
name: z.string().describe("Category name.").max(500),
|
|
57
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
58
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
59
|
+
}).describe("Category to update.")
|
|
60
|
+
});
|
|
61
|
+
var UpdateCategoryResponse = z.object({
|
|
62
|
+
category: z.object({
|
|
63
|
+
_id: z.string().describe("Category ID.").regex(
|
|
64
|
+
/^[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}$/,
|
|
65
|
+
"Must be a valid GUID"
|
|
66
|
+
).optional().nullable(),
|
|
67
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
68
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
69
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
70
|
+
}).describe("Updated category.").optional()
|
|
71
|
+
});
|
|
72
|
+
var DeleteCategoryRequest = z.object({
|
|
73
|
+
_id: z.string().describe("ID of the category to delete.").regex(
|
|
74
|
+
/^[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}$/,
|
|
75
|
+
"Must be a valid GUID"
|
|
76
|
+
),
|
|
77
|
+
options: z.object({
|
|
78
|
+
deleteServices: z.boolean().describe(
|
|
79
|
+
"Whether to delete all the services associated with the category.\n\nDefault: `false`"
|
|
80
|
+
).optional().nullable()
|
|
81
|
+
}).optional()
|
|
82
|
+
});
|
|
83
|
+
var DeleteCategoryResponse = z.object({
|
|
84
|
+
_id: z.string().describe("ID of the deleted category.").regex(
|
|
85
|
+
/^[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}$/,
|
|
86
|
+
"Must be a valid GUID"
|
|
87
|
+
).optional().nullable()
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
CreateCategoryRequest,
|
|
91
|
+
CreateCategoryResponse,
|
|
92
|
+
DeleteCategoryRequest,
|
|
93
|
+
DeleteCategoryResponse,
|
|
94
|
+
ListCategoriesRequest,
|
|
95
|
+
ListCategoriesResponse,
|
|
96
|
+
UpdateCategoryRequest,
|
|
97
|
+
UpdateCategoryResponse
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/bookings-v1-category-categories.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListCategoriesRequest = z.object({\n options: z\n .object({\n categoryIds: z.array(z.string()).optional(),\n includeDeleted: z\n .boolean()\n .describe(\n 'Whether to include deleted categories in the response.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .describe('Options to use when listing categories.')\n .optional(),\n});\nexport const ListCategoriesResponse = z.object({\n categories: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe(\n 'Sort order of the category in the live site and dashboard.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const CreateCategoryRequest = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to create.'),\n});\nexport const CreateCategoryResponse = z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500).optional().nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n});\nexport const UpdateCategoryRequest = z.object({\n _id: z\n .string()\n .describe('Category 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 category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to update.'),\n});\nexport const UpdateCategoryResponse = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Updated category.')\n .optional(),\n});\nexport const DeleteCategoryRequest = z.object({\n _id: z\n .string()\n .describe('ID of the category 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 options: z\n .object({\n deleteServices: z\n .boolean()\n .describe(\n 'Whether to delete all the services associated with the category.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const DeleteCategoryResponse = z.object({\n _id: z\n .string()\n .describe('ID of the deleted category.')\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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AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,KACG,SAAO,EACP,SAAS,+BAA+B,EACxC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,gBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,6BAA6B,EACtC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ListCategoriesRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
includeDeleted: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ListCategoriesResponse: z.ZodObject<{
|
|
10
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
CREATED: "CREATED";
|
|
15
|
+
DELETED: "DELETED";
|
|
16
|
+
}>>;
|
|
17
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const CreateCategoryRequest: z.ZodObject<{
|
|
21
|
+
category: z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
CREATED: "CREATED";
|
|
26
|
+
DELETED: "DELETED";
|
|
27
|
+
}>>;
|
|
28
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const CreateCategoryResponse: z.ZodObject<{
|
|
32
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
CREATED: "CREATED";
|
|
36
|
+
DELETED: "DELETED";
|
|
37
|
+
}>>;
|
|
38
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const UpdateCategoryRequest: z.ZodObject<{
|
|
41
|
+
_id: z.ZodString;
|
|
42
|
+
category: z.ZodObject<{
|
|
43
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
CREATED: "CREATED";
|
|
47
|
+
DELETED: "DELETED";
|
|
48
|
+
}>>;
|
|
49
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
declare const UpdateCategoryResponse: z.ZodObject<{
|
|
53
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
CREATED: "CREATED";
|
|
58
|
+
DELETED: "DELETED";
|
|
59
|
+
}>>;
|
|
60
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const DeleteCategoryRequest: z.ZodObject<{
|
|
64
|
+
_id: z.ZodString;
|
|
65
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
deleteServices: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
declare const DeleteCategoryResponse: z.ZodObject<{
|
|
70
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
|
|
73
|
+
export { CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, ListCategoriesRequest, ListCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse };
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
CreateCategoryRequest: () => CreateCategoryRequest,
|
|
34
|
+
CreateCategoryResponse: () => CreateCategoryResponse,
|
|
35
|
+
DeleteCategoryRequest: () => DeleteCategoryRequest,
|
|
36
|
+
DeleteCategoryResponse: () => DeleteCategoryResponse,
|
|
37
|
+
ListCategoriesRequest: () => ListCategoriesRequest,
|
|
38
|
+
ListCategoriesResponse: () => ListCategoriesResponse,
|
|
39
|
+
UpdateCategoryRequest: () => UpdateCategoryRequest,
|
|
40
|
+
UpdateCategoryResponse: () => UpdateCategoryResponse
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
43
|
+
|
|
44
|
+
// src/bookings-v1-category-categories.schemas.ts
|
|
45
|
+
var z = __toESM(require("zod"));
|
|
46
|
+
var ListCategoriesRequest = z.object({
|
|
47
|
+
options: z.object({
|
|
48
|
+
categoryIds: z.array(z.string()).optional(),
|
|
49
|
+
includeDeleted: z.boolean().describe(
|
|
50
|
+
"Whether to include deleted categories in the response.\n\nDefault: `false`"
|
|
51
|
+
).optional().nullable()
|
|
52
|
+
}).describe("Options to use when listing categories.").optional()
|
|
53
|
+
});
|
|
54
|
+
var ListCategoriesResponse = z.object({
|
|
55
|
+
categories: z.array(
|
|
56
|
+
z.object({
|
|
57
|
+
_id: z.string().describe("Category ID.").regex(
|
|
58
|
+
/^[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}$/,
|
|
59
|
+
"Must be a valid GUID"
|
|
60
|
+
).optional().nullable(),
|
|
61
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
62
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
63
|
+
sortOrder: z.number().int().describe(
|
|
64
|
+
"Sort order of the category in the live site and dashboard."
|
|
65
|
+
).optional().nullable()
|
|
66
|
+
})
|
|
67
|
+
).optional()
|
|
68
|
+
});
|
|
69
|
+
var CreateCategoryRequest = z.object({
|
|
70
|
+
category: z.object({
|
|
71
|
+
_id: z.string().describe("Category ID.").regex(
|
|
72
|
+
/^[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}$/,
|
|
73
|
+
"Must be a valid GUID"
|
|
74
|
+
).optional().nullable(),
|
|
75
|
+
name: z.string().describe("Category name.").max(500),
|
|
76
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
77
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
78
|
+
}).describe("Category to create.")
|
|
79
|
+
});
|
|
80
|
+
var CreateCategoryResponse = z.object({
|
|
81
|
+
_id: z.string().describe("Category ID.").regex(
|
|
82
|
+
/^[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}$/,
|
|
83
|
+
"Must be a valid GUID"
|
|
84
|
+
).optional().nullable(),
|
|
85
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
86
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
87
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
88
|
+
});
|
|
89
|
+
var UpdateCategoryRequest = z.object({
|
|
90
|
+
_id: z.string().describe("Category ID.").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
|
+
category: z.object({
|
|
95
|
+
_id: z.string().describe("Category ID.").regex(
|
|
96
|
+
/^[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}$/,
|
|
97
|
+
"Must be a valid GUID"
|
|
98
|
+
).optional().nullable(),
|
|
99
|
+
name: z.string().describe("Category name.").max(500),
|
|
100
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
101
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
102
|
+
}).describe("Category to update.")
|
|
103
|
+
});
|
|
104
|
+
var UpdateCategoryResponse = z.object({
|
|
105
|
+
category: z.object({
|
|
106
|
+
_id: z.string().describe("Category ID.").regex(
|
|
107
|
+
/^[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}$/,
|
|
108
|
+
"Must be a valid GUID"
|
|
109
|
+
).optional().nullable(),
|
|
110
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
111
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
112
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
113
|
+
}).describe("Updated category.").optional()
|
|
114
|
+
});
|
|
115
|
+
var DeleteCategoryRequest = z.object({
|
|
116
|
+
_id: z.string().describe("ID of the category to delete.").regex(
|
|
117
|
+
/^[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}$/,
|
|
118
|
+
"Must be a valid GUID"
|
|
119
|
+
),
|
|
120
|
+
options: z.object({
|
|
121
|
+
deleteServices: z.boolean().describe(
|
|
122
|
+
"Whether to delete all the services associated with the category.\n\nDefault: `false`"
|
|
123
|
+
).optional().nullable()
|
|
124
|
+
}).optional()
|
|
125
|
+
});
|
|
126
|
+
var DeleteCategoryResponse = z.object({
|
|
127
|
+
_id: z.string().describe("ID of the deleted category.").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
|
+
).optional().nullable()
|
|
131
|
+
});
|
|
132
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
133
|
+
0 && (module.exports = {
|
|
134
|
+
CreateCategoryRequest,
|
|
135
|
+
CreateCategoryResponse,
|
|
136
|
+
DeleteCategoryRequest,
|
|
137
|
+
DeleteCategoryResponse,
|
|
138
|
+
ListCategoriesRequest,
|
|
139
|
+
ListCategoriesResponse,
|
|
140
|
+
UpdateCategoryRequest,
|
|
141
|
+
UpdateCategoryResponse
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/bookings-v1-category-categories.schemas.ts"],"sourcesContent":["export * from './src/bookings-v1-category-categories.schemas.js';\n","import * as z from 'zod';\n\nexport const ListCategoriesRequest = z.object({\n options: z\n .object({\n categoryIds: z.array(z.string()).optional(),\n includeDeleted: z\n .boolean()\n .describe(\n 'Whether to include deleted categories in the response.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .describe('Options to use when listing categories.')\n .optional(),\n});\nexport const ListCategoriesResponse = z.object({\n categories: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe(\n 'Sort order of the category in the live site and dashboard.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const CreateCategoryRequest = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to create.'),\n});\nexport const CreateCategoryResponse = z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500).optional().nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n});\nexport const UpdateCategoryRequest = z.object({\n _id: z\n .string()\n .describe('Category 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 category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to update.'),\n});\nexport const UpdateCategoryResponse = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Updated category.')\n .optional(),\n});\nexport const DeleteCategoryRequest = z.object({\n _id: z\n .string()\n .describe('ID of the category 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 options: z\n .object({\n deleteServices: z\n .boolean()\n .describe(\n 'Whether to delete all the services associated with the category.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const DeleteCategoryResponse = z.object({\n _id: z\n .string()\n .describe('ID of the deleted category.')\n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,OAAK,CAAC,WAAW,SAAS,CAAC,EAC3B,SAAS,wCAAwC,EACjD,SAAS;AAAA,IACZ,WACG,SAAO,EACP,IAAI,EACJ,SAAS,4DAA4D,EACrE,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,mBAAmB,EAC5B,SAAS;AACd,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,KACG,SAAO,EACP,SAAS,+BAA+B,EACxC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,gBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,6BAA6B,EACtC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ListCategoriesRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
includeDeleted: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ListCategoriesResponse: z.ZodObject<{
|
|
10
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
CREATED: "CREATED";
|
|
15
|
+
DELETED: "DELETED";
|
|
16
|
+
}>>;
|
|
17
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const CreateCategoryRequest: z.ZodObject<{
|
|
21
|
+
category: z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
CREATED: "CREATED";
|
|
26
|
+
DELETED: "DELETED";
|
|
27
|
+
}>>;
|
|
28
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const CreateCategoryResponse: z.ZodObject<{
|
|
32
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
CREATED: "CREATED";
|
|
36
|
+
DELETED: "DELETED";
|
|
37
|
+
}>>;
|
|
38
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const UpdateCategoryRequest: z.ZodObject<{
|
|
41
|
+
_id: z.ZodString;
|
|
42
|
+
category: z.ZodObject<{
|
|
43
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
CREATED: "CREATED";
|
|
47
|
+
DELETED: "DELETED";
|
|
48
|
+
}>>;
|
|
49
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
declare const UpdateCategoryResponse: z.ZodObject<{
|
|
53
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
CREATED: "CREATED";
|
|
58
|
+
DELETED: "DELETED";
|
|
59
|
+
}>>;
|
|
60
|
+
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const DeleteCategoryRequest: z.ZodObject<{
|
|
64
|
+
_id: z.ZodString;
|
|
65
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
deleteServices: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
declare const DeleteCategoryResponse: z.ZodObject<{
|
|
70
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
|
|
73
|
+
export { CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, ListCategoriesRequest, ListCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// src/bookings-v1-category-categories.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var ListCategoriesRequest = z.object({
|
|
4
|
+
options: z.object({
|
|
5
|
+
categoryIds: z.array(z.string()).optional(),
|
|
6
|
+
includeDeleted: z.boolean().describe(
|
|
7
|
+
"Whether to include deleted categories in the response.\n\nDefault: `false`"
|
|
8
|
+
).optional().nullable()
|
|
9
|
+
}).describe("Options to use when listing categories.").optional()
|
|
10
|
+
});
|
|
11
|
+
var ListCategoriesResponse = z.object({
|
|
12
|
+
categories: z.array(
|
|
13
|
+
z.object({
|
|
14
|
+
_id: z.string().describe("Category ID.").regex(
|
|
15
|
+
/^[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}$/,
|
|
16
|
+
"Must be a valid GUID"
|
|
17
|
+
).optional().nullable(),
|
|
18
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
19
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
20
|
+
sortOrder: z.number().int().describe(
|
|
21
|
+
"Sort order of the category in the live site and dashboard."
|
|
22
|
+
).optional().nullable()
|
|
23
|
+
})
|
|
24
|
+
).optional()
|
|
25
|
+
});
|
|
26
|
+
var CreateCategoryRequest = z.object({
|
|
27
|
+
category: z.object({
|
|
28
|
+
_id: z.string().describe("Category ID.").regex(
|
|
29
|
+
/^[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}$/,
|
|
30
|
+
"Must be a valid GUID"
|
|
31
|
+
).optional().nullable(),
|
|
32
|
+
name: z.string().describe("Category name.").max(500),
|
|
33
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
34
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
35
|
+
}).describe("Category to create.")
|
|
36
|
+
});
|
|
37
|
+
var CreateCategoryResponse = z.object({
|
|
38
|
+
_id: z.string().describe("Category ID.").regex(
|
|
39
|
+
/^[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}$/,
|
|
40
|
+
"Must be a valid GUID"
|
|
41
|
+
).optional().nullable(),
|
|
42
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
43
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
44
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
45
|
+
});
|
|
46
|
+
var UpdateCategoryRequest = z.object({
|
|
47
|
+
_id: z.string().describe("Category ID.").regex(
|
|
48
|
+
/^[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}$/,
|
|
49
|
+
"Must be a valid GUID"
|
|
50
|
+
),
|
|
51
|
+
category: z.object({
|
|
52
|
+
_id: z.string().describe("Category ID.").regex(
|
|
53
|
+
/^[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}$/,
|
|
54
|
+
"Must be a valid GUID"
|
|
55
|
+
).optional().nullable(),
|
|
56
|
+
name: z.string().describe("Category name.").max(500),
|
|
57
|
+
status: z.enum(["CREATED", "DELETED"]).optional(),
|
|
58
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
59
|
+
}).describe("Category to update.")
|
|
60
|
+
});
|
|
61
|
+
var UpdateCategoryResponse = z.object({
|
|
62
|
+
category: z.object({
|
|
63
|
+
_id: z.string().describe("Category ID.").regex(
|
|
64
|
+
/^[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}$/,
|
|
65
|
+
"Must be a valid GUID"
|
|
66
|
+
).optional().nullable(),
|
|
67
|
+
name: z.string().describe("Category name.").max(500).optional().nullable(),
|
|
68
|
+
status: z.enum(["CREATED", "DELETED"]).describe("Category status.\n\nDefault: `CREATED`").optional(),
|
|
69
|
+
sortOrder: z.number().int().describe("Sort order of the category in the live site and dashboard.").optional().nullable()
|
|
70
|
+
}).describe("Updated category.").optional()
|
|
71
|
+
});
|
|
72
|
+
var DeleteCategoryRequest = z.object({
|
|
73
|
+
_id: z.string().describe("ID of the category to delete.").regex(
|
|
74
|
+
/^[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}$/,
|
|
75
|
+
"Must be a valid GUID"
|
|
76
|
+
),
|
|
77
|
+
options: z.object({
|
|
78
|
+
deleteServices: z.boolean().describe(
|
|
79
|
+
"Whether to delete all the services associated with the category.\n\nDefault: `false`"
|
|
80
|
+
).optional().nullable()
|
|
81
|
+
}).optional()
|
|
82
|
+
});
|
|
83
|
+
var DeleteCategoryResponse = z.object({
|
|
84
|
+
_id: z.string().describe("ID of the deleted category.").regex(
|
|
85
|
+
/^[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}$/,
|
|
86
|
+
"Must be a valid GUID"
|
|
87
|
+
).optional().nullable()
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
CreateCategoryRequest,
|
|
91
|
+
CreateCategoryResponse,
|
|
92
|
+
DeleteCategoryRequest,
|
|
93
|
+
DeleteCategoryResponse,
|
|
94
|
+
ListCategoriesRequest,
|
|
95
|
+
ListCategoriesResponse,
|
|
96
|
+
UpdateCategoryRequest,
|
|
97
|
+
UpdateCategoryResponse
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/bookings-v1-category-categories.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ListCategoriesRequest = z.object({\n options: z\n .object({\n categoryIds: z.array(z.string()).optional(),\n includeDeleted: z\n .boolean()\n .describe(\n 'Whether to include deleted categories in the response.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .describe('Options to use when listing categories.')\n .optional(),\n});\nexport const ListCategoriesResponse = z.object({\n categories: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe(\n 'Sort order of the category in the live site and dashboard.'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const CreateCategoryRequest = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to create.'),\n});\nexport const CreateCategoryResponse = z.object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500).optional().nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n});\nexport const UpdateCategoryRequest = z.object({\n _id: z\n .string()\n .describe('Category 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 category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.').max(500),\n status: z.enum(['CREATED', 'DELETED']).optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Category to update.'),\n});\nexport const UpdateCategoryResponse = z.object({\n category: z\n .object({\n _id: z\n .string()\n .describe('Category 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('Category name.')\n .max(500)\n .optional()\n .nullable(),\n status: z\n .enum(['CREATED', 'DELETED'])\n .describe('Category status.\\n\\nDefault: `CREATED`')\n .optional(),\n sortOrder: z\n .number()\n .int()\n .describe('Sort order of the category in the live site and dashboard.')\n .optional()\n .nullable(),\n })\n .describe('Updated category.')\n .optional(),\n});\nexport const DeleteCategoryRequest = z.object({\n _id: z\n .string()\n .describe('ID of the category 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 options: z\n .object({\n deleteServices: z\n .boolean()\n .describe(\n 'Whether to delete all the services associated with the category.\\n\\nDefault: `false`'\n )\n .optional()\n .nullable(),\n })\n .optional(),\n});\nexport const DeleteCategoryResponse = z.object({\n _id: z\n .string()\n .describe('ID of the deleted category.')\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});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wB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IACA;AAAA,EACF;AAAA,EACF,SACG,SAAO;AAAA,IACN,gBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,6BAA6B,EACtC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_bookings_categories",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,16 +21,23 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"build",
|
|
28
33
|
"meta",
|
|
29
|
-
"service-plugins"
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
30
36
|
],
|
|
31
37
|
"dependencies": {
|
|
32
38
|
"@wix/sdk-runtime": "^1.0.10",
|
|
33
|
-
"@wix/sdk-types": "^1.17.6"
|
|
39
|
+
"@wix/sdk-types": "^1.17.6",
|
|
40
|
+
"zod": "^4.3.6"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +57,5 @@
|
|
|
50
57
|
"fqdn": "wix.bookings.v1.category"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "d7a6053fe7111c30cba08893dde1f65308d34e648a28f365a4cf386f"
|
|
54
61
|
}
|