@wix/auto_sdk_bookings_resource-types 1.0.72 → 1.0.74
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 +118 -0
- package/build/cjs/schemas.js +288 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +118 -0
- package/build/es/schemas.mjs +240 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +118 -0
- package/build/internal/cjs/schemas.js +288 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +118 -0
- package/build/internal/es/schemas.mjs +240 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CreateResourceTypeRequest: z.ZodObject<{
|
|
4
|
+
resourceType: z.ZodObject<{
|
|
5
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
8
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const CreateResourceTypeResponse: z.ZodObject<{
|
|
16
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
19
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const GetResourceTypeRequest: z.ZodObject<{
|
|
26
|
+
resourceTypeId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const GetResourceTypeResponse: z.ZodObject<{
|
|
29
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
32
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
33
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const UpdateResourceTypeRequest: z.ZodObject<{
|
|
39
|
+
_id: z.ZodString;
|
|
40
|
+
resourceType: z.ZodObject<{
|
|
41
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
revision: z.ZodString;
|
|
43
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
44
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
45
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
46
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
declare const UpdateResourceTypeResponse: z.ZodObject<{
|
|
52
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
55
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
56
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const DeleteResourceTypeRequest: z.ZodObject<{
|
|
62
|
+
resourceTypeId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
declare const DeleteResourceTypeResponse: z.ZodObject<{}, z.core.$strip>;
|
|
65
|
+
declare const QueryResourceTypesRequest: z.ZodObject<{
|
|
66
|
+
query: z.ZodObject<{
|
|
67
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
70
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
72
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
73
|
+
$hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
$hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
77
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
78
|
+
$ne: z.ZodOptional<z.ZodString>;
|
|
79
|
+
$nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
+
$startsWith: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
$and: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
83
|
+
$or: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
84
|
+
$not: z.ZodOptional<z.ZodAny>;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
|
|
87
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
declare const QueryResourceTypesResponse: z.ZodObject<{
|
|
90
|
+
resourceTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
92
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
94
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
95
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
}, z.core.$strip>>>;
|
|
100
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
102
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
104
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
declare const CountResourceTypesRequest: z.ZodObject<{
|
|
110
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
declare const CountResourceTypesResponse: z.ZodObject<{
|
|
115
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
|
|
118
|
+
export { CountResourceTypesRequest, CountResourceTypesResponse, CreateResourceTypeRequest, CreateResourceTypeResponse, DeleteResourceTypeRequest, DeleteResourceTypeResponse, GetResourceTypeRequest, GetResourceTypeResponse, QueryResourceTypesRequest, QueryResourceTypesResponse, UpdateResourceTypeRequest, UpdateResourceTypeResponse };
|
|
@@ -0,0 +1,288 @@
|
|
|
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
|
+
CountResourceTypesRequest: () => CountResourceTypesRequest,
|
|
34
|
+
CountResourceTypesResponse: () => CountResourceTypesResponse,
|
|
35
|
+
CreateResourceTypeRequest: () => CreateResourceTypeRequest,
|
|
36
|
+
CreateResourceTypeResponse: () => CreateResourceTypeResponse,
|
|
37
|
+
DeleteResourceTypeRequest: () => DeleteResourceTypeRequest,
|
|
38
|
+
DeleteResourceTypeResponse: () => DeleteResourceTypeResponse,
|
|
39
|
+
GetResourceTypeRequest: () => GetResourceTypeRequest,
|
|
40
|
+
GetResourceTypeResponse: () => GetResourceTypeResponse,
|
|
41
|
+
QueryResourceTypesRequest: () => QueryResourceTypesRequest,
|
|
42
|
+
QueryResourceTypesResponse: () => QueryResourceTypesResponse,
|
|
43
|
+
UpdateResourceTypeRequest: () => UpdateResourceTypeRequest,
|
|
44
|
+
UpdateResourceTypeResponse: () => UpdateResourceTypeResponse
|
|
45
|
+
});
|
|
46
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
47
|
+
|
|
48
|
+
// src/bookings-resources-v2-resource-type-resource-types.schemas.ts
|
|
49
|
+
var z = __toESM(require("zod"));
|
|
50
|
+
var CreateResourceTypeRequest = z.object({
|
|
51
|
+
resourceType: z.object({
|
|
52
|
+
_id: z.string().describe("Resource type 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
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
57
|
+
"Revision number, which increments by 1 each time the resource type is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the resource type."
|
|
58
|
+
).optional().nullable(),
|
|
59
|
+
_createdDate: z.date().describe(
|
|
60
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created."
|
|
61
|
+
).optional().nullable(),
|
|
62
|
+
_updatedDate: z.date().describe(
|
|
63
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated."
|
|
64
|
+
).optional().nullable(),
|
|
65
|
+
name: z.string().describe(
|
|
66
|
+
"Name of the resource type. For example, `meeting room`.\nThe name must be unique per site."
|
|
67
|
+
).max(40).min(1),
|
|
68
|
+
extendedFields: z.object({
|
|
69
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
70
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
71
|
+
).optional()
|
|
72
|
+
}).describe(
|
|
73
|
+
"Extensions enabling users to save custom data related to the resource type."
|
|
74
|
+
).optional()
|
|
75
|
+
}).describe("Resource type to create.")
|
|
76
|
+
});
|
|
77
|
+
var CreateResourceTypeResponse = z.object({
|
|
78
|
+
_id: z.string().describe("Resource type ID.").regex(
|
|
79
|
+
/^[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}$/,
|
|
80
|
+
"Must be a valid GUID"
|
|
81
|
+
).optional().nullable(),
|
|
82
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
83
|
+
"Revision number, which increments by 1 each time the resource type is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the resource type."
|
|
84
|
+
).optional().nullable(),
|
|
85
|
+
_createdDate: z.date().describe(
|
|
86
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created."
|
|
87
|
+
).optional().nullable(),
|
|
88
|
+
_updatedDate: z.date().describe(
|
|
89
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated."
|
|
90
|
+
).optional().nullable(),
|
|
91
|
+
name: z.string().describe(
|
|
92
|
+
"Name of the resource type. For example, `meeting room`.\nThe name must be unique per site."
|
|
93
|
+
).max(40).min(1).optional().nullable(),
|
|
94
|
+
extendedFields: z.object({
|
|
95
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
96
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
97
|
+
).optional()
|
|
98
|
+
}).describe(
|
|
99
|
+
"Extensions enabling users to save custom data related to the resource type."
|
|
100
|
+
).optional()
|
|
101
|
+
});
|
|
102
|
+
var GetResourceTypeRequest = z.object({
|
|
103
|
+
resourceTypeId: z.string().describe("ID of the resource type to retrieve.").regex(
|
|
104
|
+
/^[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}$/,
|
|
105
|
+
"Must be a valid GUID"
|
|
106
|
+
)
|
|
107
|
+
});
|
|
108
|
+
var GetResourceTypeResponse = z.object({
|
|
109
|
+
_id: z.string().describe("Resource type ID.").regex(
|
|
110
|
+
/^[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}$/,
|
|
111
|
+
"Must be a valid GUID"
|
|
112
|
+
).optional().nullable(),
|
|
113
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
114
|
+
"Revision number, which increments by 1 each time the resource type is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the resource type."
|
|
115
|
+
).optional().nullable(),
|
|
116
|
+
_createdDate: z.date().describe(
|
|
117
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created."
|
|
118
|
+
).optional().nullable(),
|
|
119
|
+
_updatedDate: z.date().describe(
|
|
120
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated."
|
|
121
|
+
).optional().nullable(),
|
|
122
|
+
name: z.string().describe(
|
|
123
|
+
"Name of the resource type. For example, `meeting room`.\nThe name must be unique per site."
|
|
124
|
+
).max(40).min(1).optional().nullable(),
|
|
125
|
+
extendedFields: z.object({
|
|
126
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
127
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
128
|
+
).optional()
|
|
129
|
+
}).describe(
|
|
130
|
+
"Extensions enabling users to save custom data related to the resource type."
|
|
131
|
+
).optional()
|
|
132
|
+
});
|
|
133
|
+
var UpdateResourceTypeRequest = z.object({
|
|
134
|
+
_id: z.string().describe("Resource type ID.").regex(
|
|
135
|
+
/^[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}$/,
|
|
136
|
+
"Must be a valid GUID"
|
|
137
|
+
),
|
|
138
|
+
resourceType: z.object({
|
|
139
|
+
_id: z.string().describe("Resource type ID.").regex(
|
|
140
|
+
/^[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}$/,
|
|
141
|
+
"Must be a valid GUID"
|
|
142
|
+
).optional().nullable(),
|
|
143
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
144
|
+
"Revision number, which increments by 1 each time the resource type is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the resource type."
|
|
145
|
+
),
|
|
146
|
+
_createdDate: z.date().describe(
|
|
147
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created."
|
|
148
|
+
).optional().nullable(),
|
|
149
|
+
_updatedDate: z.date().describe(
|
|
150
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated."
|
|
151
|
+
).optional().nullable(),
|
|
152
|
+
name: z.string().describe(
|
|
153
|
+
"Name of the resource type. For example, `meeting room`.\nThe name must be unique per site."
|
|
154
|
+
).max(40).min(1).optional().nullable(),
|
|
155
|
+
extendedFields: z.object({
|
|
156
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
157
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
158
|
+
).optional()
|
|
159
|
+
}).describe(
|
|
160
|
+
"Extensions enabling users to save custom data related to the resource type."
|
|
161
|
+
).optional()
|
|
162
|
+
}).describe("Resource type to update.")
|
|
163
|
+
});
|
|
164
|
+
var UpdateResourceTypeResponse = z.object({
|
|
165
|
+
_id: z.string().describe("Resource type ID.").regex(
|
|
166
|
+
/^[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}$/,
|
|
167
|
+
"Must be a valid GUID"
|
|
168
|
+
).optional().nullable(),
|
|
169
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
170
|
+
"Revision number, which increments by 1 each time the resource type is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the resource type."
|
|
171
|
+
).optional().nullable(),
|
|
172
|
+
_createdDate: z.date().describe(
|
|
173
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created."
|
|
174
|
+
).optional().nullable(),
|
|
175
|
+
_updatedDate: z.date().describe(
|
|
176
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated."
|
|
177
|
+
).optional().nullable(),
|
|
178
|
+
name: z.string().describe(
|
|
179
|
+
"Name of the resource type. For example, `meeting room`.\nThe name must be unique per site."
|
|
180
|
+
).max(40).min(1).optional().nullable(),
|
|
181
|
+
extendedFields: z.object({
|
|
182
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
183
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
184
|
+
).optional()
|
|
185
|
+
}).describe(
|
|
186
|
+
"Extensions enabling users to save custom data related to the resource type."
|
|
187
|
+
).optional()
|
|
188
|
+
});
|
|
189
|
+
var DeleteResourceTypeRequest = z.object({
|
|
190
|
+
resourceTypeId: z.string().describe("ID of the resource type to delete.").regex(
|
|
191
|
+
/^[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}$/,
|
|
192
|
+
"Must be a valid GUID"
|
|
193
|
+
)
|
|
194
|
+
});
|
|
195
|
+
var DeleteResourceTypeResponse = z.object({});
|
|
196
|
+
var QueryResourceTypesRequest = z.object({
|
|
197
|
+
query: z.object({
|
|
198
|
+
filter: z.object({
|
|
199
|
+
name: z.object({
|
|
200
|
+
$eq: z.string(),
|
|
201
|
+
$exists: z.boolean(),
|
|
202
|
+
$gt: z.string(),
|
|
203
|
+
$gte: z.string(),
|
|
204
|
+
$hasAll: z.array(z.string()),
|
|
205
|
+
$hasSome: z.array(z.string()),
|
|
206
|
+
$in: z.array(z.string()),
|
|
207
|
+
$lt: z.string(),
|
|
208
|
+
$lte: z.string(),
|
|
209
|
+
$ne: z.string(),
|
|
210
|
+
$nin: z.array(z.string()),
|
|
211
|
+
$startsWith: z.string()
|
|
212
|
+
}).partial().strict().optional(),
|
|
213
|
+
$and: z.array(z.any()).optional(),
|
|
214
|
+
$or: z.array(z.any()).optional(),
|
|
215
|
+
$not: z.any().optional()
|
|
216
|
+
}).strict().optional(),
|
|
217
|
+
sort: z.array(z.object({})).optional()
|
|
218
|
+
}).catchall(z.any()).describe("Information about filtering and sorting.")
|
|
219
|
+
});
|
|
220
|
+
var QueryResourceTypesResponse = z.object({
|
|
221
|
+
resourceTypes: z.array(
|
|
222
|
+
z.object({
|
|
223
|
+
_id: z.string().describe("Resource type ID.").regex(
|
|
224
|
+
/^[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}$/,
|
|
225
|
+
"Must be a valid GUID"
|
|
226
|
+
).optional().nullable(),
|
|
227
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
228
|
+
"Revision number, which increments by 1 each time the resource type is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the resource type."
|
|
229
|
+
).optional().nullable(),
|
|
230
|
+
_createdDate: z.date().describe(
|
|
231
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created."
|
|
232
|
+
).optional().nullable(),
|
|
233
|
+
_updatedDate: z.date().describe(
|
|
234
|
+
"Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated."
|
|
235
|
+
).optional().nullable(),
|
|
236
|
+
name: z.string().describe(
|
|
237
|
+
"Name of the resource type. For example, `meeting room`.\nThe name must be unique per site."
|
|
238
|
+
).max(40).min(1).optional().nullable(),
|
|
239
|
+
extendedFields: z.object({
|
|
240
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
241
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
242
|
+
).optional()
|
|
243
|
+
}).describe(
|
|
244
|
+
"Extensions enabling users to save custom data related to the resource type."
|
|
245
|
+
).optional()
|
|
246
|
+
})
|
|
247
|
+
).optional(),
|
|
248
|
+
pagingMetadata: z.object({
|
|
249
|
+
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
250
|
+
cursors: z.object({
|
|
251
|
+
next: z.string().describe("Cursor pointing to next page in the list of results.").max(16e3).optional().nullable(),
|
|
252
|
+
prev: z.string().describe(
|
|
253
|
+
"Cursor pointing to previous page in the list of results."
|
|
254
|
+
).max(16e3).optional().nullable()
|
|
255
|
+
}).describe("Offset that was requested.").optional(),
|
|
256
|
+
hasNext: z.boolean().describe(
|
|
257
|
+
"Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
|
|
258
|
+
).optional().nullable()
|
|
259
|
+
}).describe("Paging metadata.").optional()
|
|
260
|
+
});
|
|
261
|
+
var CountResourceTypesRequest = z.object({
|
|
262
|
+
options: z.object({
|
|
263
|
+
filter: z.record(z.string(), z.any()).describe(
|
|
264
|
+
"Filter to base the count on.\nSee [Query Resource Types](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/query-resource-types) for a list of supported filters."
|
|
265
|
+
).optional().nullable()
|
|
266
|
+
}).describe(
|
|
267
|
+
"Filter to base the count on. See\n[queryResourceTypes()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/query-resource-types)\nfor supported filters."
|
|
268
|
+
).optional()
|
|
269
|
+
});
|
|
270
|
+
var CountResourceTypesResponse = z.object({
|
|
271
|
+
count: z.number().int().describe("Number of resource types matching the filter.").optional()
|
|
272
|
+
});
|
|
273
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
274
|
+
0 && (module.exports = {
|
|
275
|
+
CountResourceTypesRequest,
|
|
276
|
+
CountResourceTypesResponse,
|
|
277
|
+
CreateResourceTypeRequest,
|
|
278
|
+
CreateResourceTypeResponse,
|
|
279
|
+
DeleteResourceTypeRequest,
|
|
280
|
+
DeleteResourceTypeResponse,
|
|
281
|
+
GetResourceTypeRequest,
|
|
282
|
+
GetResourceTypeResponse,
|
|
283
|
+
QueryResourceTypesRequest,
|
|
284
|
+
QueryResourceTypesResponse,
|
|
285
|
+
UpdateResourceTypeRequest,
|
|
286
|
+
UpdateResourceTypeResponse
|
|
287
|
+
});
|
|
288
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/bookings-resources-v2-resource-type-resource-types.schemas.ts"],"sourcesContent":["export * from './src/bookings-resources-v2-resource-type-resource-types.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateResourceTypeRequest = z.object({\n resourceType: z\n .object({\n _id: z\n .string()\n .describe('Resource type 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 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 resource type is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the resource type.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\n 'Name of the resource type. For example, `meeting room`.\\nThe name must be unique per site.'\n )\n .max(40)\n .min(1),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Extensions enabling users to save custom data related to the resource type.'\n )\n .optional(),\n })\n .describe('Resource type to create.'),\n});\nexport const CreateResourceTypeResponse = z.object({\n _id: z\n .string()\n .describe('Resource type 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 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 resource type is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the resource type.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\n 'Name of the resource type. For example, `meeting room`.\\nThe name must be unique per site.'\n )\n .max(40)\n .min(1)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Extensions enabling users to save custom data related to the resource type.'\n )\n .optional(),\n});\nexport const GetResourceTypeRequest = z.object({\n resourceTypeId: z\n .string()\n .describe('ID of the resource type 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 GetResourceTypeResponse = z.object({\n _id: z\n .string()\n .describe('Resource type 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 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 resource type is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the resource type.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\n 'Name of the resource type. For example, `meeting room`.\\nThe name must be unique per site.'\n )\n .max(40)\n .min(1)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Extensions enabling users to save custom data related to the resource type.'\n )\n .optional(),\n});\nexport const UpdateResourceTypeRequest = z.object({\n _id: z\n .string()\n .describe('Resource type 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 resourceType: z\n .object({\n _id: z\n .string()\n .describe('Resource type 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 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 resource type is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the resource type.'\n ),\n _createdDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\n 'Name of the resource type. For example, `meeting room`.\\nThe name must be unique per site.'\n )\n .max(40)\n .min(1)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Extensions enabling users to save custom data related to the resource type.'\n )\n .optional(),\n })\n .describe('Resource type to update.'),\n});\nexport const UpdateResourceTypeResponse = z.object({\n _id: z\n .string()\n .describe('Resource type 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 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 resource type is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the resource type.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\n 'Name of the resource type. For example, `meeting room`.\\nThe name must be unique per site.'\n )\n .max(40)\n .min(1)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Extensions enabling users to save custom data related to the resource type.'\n )\n .optional(),\n});\nexport const DeleteResourceTypeRequest = z.object({\n resourceTypeId: z\n .string()\n .describe('ID of the resource type 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 DeleteResourceTypeResponse = z.object({});\nexport const QueryResourceTypesRequest = z.object({\n query: z\n .object({\n filter: z\n .object({\n name: 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.array(z.object({})).optional(),\n })\n .catchall(z.any())\n .describe('Information about filtering and sorting.'),\n});\nexport const QueryResourceTypesResponse = z.object({\n resourceTypes: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Resource type 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 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 resource type is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the resource type.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was created.'\n )\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource type was last updated.'\n )\n .optional()\n .nullable(),\n name: z\n .string()\n .describe(\n 'Name of the resource type. For example, `meeting room`.\\nThe name must be unique per site.'\n )\n .max(40)\n .min(1)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Extensions enabling users to save custom data related to the resource type.'\n )\n .optional(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to next page in the list of results.')\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Offset that was requested.')\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Indicates if there are more results after the current page.\\nIf `true`, another page of results can be retrieved.\\nIf `false`, this is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const CountResourceTypesRequest = z.object({\n options: z\n .object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter to base the count on.\\nSee [Query Resource Types](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/query-resource-types) for a list of supported filters.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Filter to base the count on. See\\n[queryResourceTypes()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/query-resource-types)\\nfor supported filters.'\n )\n .optional(),\n});\nexport const CountResourceTypesResponse = z.object({\n count: z\n .number()\n .int()\n .describe('Number of resource types matching the filter.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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;","names":[]}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CreateResourceTypeRequest: z.ZodObject<{
|
|
4
|
+
resourceType: z.ZodObject<{
|
|
5
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
8
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const CreateResourceTypeResponse: z.ZodObject<{
|
|
16
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
19
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
20
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const GetResourceTypeRequest: z.ZodObject<{
|
|
26
|
+
resourceTypeId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const GetResourceTypeResponse: z.ZodObject<{
|
|
29
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
32
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
33
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const UpdateResourceTypeRequest: z.ZodObject<{
|
|
39
|
+
_id: z.ZodString;
|
|
40
|
+
resourceType: z.ZodObject<{
|
|
41
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
|
+
revision: z.ZodString;
|
|
43
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
44
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
45
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
46
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
declare const UpdateResourceTypeResponse: z.ZodObject<{
|
|
52
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
55
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
56
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const DeleteResourceTypeRequest: z.ZodObject<{
|
|
62
|
+
resourceTypeId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
declare const DeleteResourceTypeResponse: z.ZodObject<{}, z.core.$strip>;
|
|
65
|
+
declare const QueryResourceTypesRequest: z.ZodObject<{
|
|
66
|
+
query: z.ZodObject<{
|
|
67
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
70
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
72
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
73
|
+
$hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
$hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
77
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
78
|
+
$ne: z.ZodOptional<z.ZodString>;
|
|
79
|
+
$nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
+
$startsWith: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
$and: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
83
|
+
$or: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
84
|
+
$not: z.ZodOptional<z.ZodAny>;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
|
|
87
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
declare const QueryResourceTypesResponse: z.ZodObject<{
|
|
90
|
+
resourceTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
92
|
+
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
94
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
95
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
|
+
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
}, z.core.$strip>>>;
|
|
100
|
+
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
102
|
+
cursors: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
104
|
+
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
declare const CountResourceTypesRequest: z.ZodObject<{
|
|
110
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
declare const CountResourceTypesResponse: z.ZodObject<{
|
|
115
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
|
|
118
|
+
export { CountResourceTypesRequest, CountResourceTypesResponse, CreateResourceTypeRequest, CreateResourceTypeResponse, DeleteResourceTypeRequest, DeleteResourceTypeResponse, GetResourceTypeRequest, GetResourceTypeResponse, QueryResourceTypesRequest, QueryResourceTypesResponse, UpdateResourceTypeRequest, UpdateResourceTypeResponse };
|