@wix/auto_sdk_blog_likes 1.0.17 → 1.0.18

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.
@@ -0,0 +1,95 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const CreateLikeRequest: z.ZodObject<{
4
+ options: z.ZodOptional<z.ZodObject<{
5
+ like: z.ZodOptional<z.ZodObject<{
6
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8
+ entityId: z.ZodString;
9
+ fqdn: z.ZodString;
10
+ }, z.core.$strip>>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const CreateLikeResponse: z.ZodObject<{
14
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
16
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const GetLikeRequest: z.ZodObject<{
20
+ likeId: z.ZodString;
21
+ }, z.core.$strip>;
22
+ declare const GetLikeResponse: z.ZodObject<{
23
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
25
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
+ }, z.core.$strip>;
28
+ declare const GetLikeByFqdnAndEntityIdRequest: z.ZodObject<{
29
+ identifiers: z.ZodObject<{
30
+ fqdn: z.ZodString;
31
+ entityId: z.ZodString;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>;
34
+ declare const GetLikeByFqdnAndEntityIdResponse: z.ZodObject<{
35
+ like: z.ZodOptional<z.ZodObject<{
36
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
38
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>;
42
+ declare const QueryLikesRequest: z.ZodObject<{
43
+ query: z.ZodObject<{
44
+ filter: z.ZodOptional<z.ZodObject<{
45
+ _id: z.ZodOptional<z.ZodObject<{
46
+ $eq: z.ZodOptional<z.ZodString>;
47
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ $ne: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strict>>;
50
+ fqdn: z.ZodOptional<z.ZodObject<{
51
+ $eq: z.ZodOptional<z.ZodString>;
52
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ $ne: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strict>>;
55
+ entityId: z.ZodOptional<z.ZodObject<{
56
+ $eq: z.ZodOptional<z.ZodString>;
57
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ $ne: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strict>>;
60
+ $and: z.ZodOptional<z.ZodArray<z.ZodAny>>;
61
+ $or: z.ZodOptional<z.ZodArray<z.ZodAny>>;
62
+ $not: z.ZodOptional<z.ZodAny>;
63
+ }, z.core.$strict>>;
64
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
65
+ }, z.core.$catchall<z.ZodAny>>;
66
+ }, z.core.$strip>;
67
+ declare const QueryLikesResponse: z.ZodObject<{
68
+ likes: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
71
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
+ }, z.core.$strip>>>;
74
+ pagingMetadata: z.ZodOptional<z.ZodObject<{
75
+ count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
76
+ cursors: z.ZodOptional<z.ZodObject<{
77
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
+ prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
79
+ }, z.core.$strip>>;
80
+ hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$strip>;
83
+ declare const DeleteLikeRequest: z.ZodObject<{
84
+ likeId: z.ZodString;
85
+ }, z.core.$strip>;
86
+ declare const DeleteLikeResponse: z.ZodObject<{}, z.core.$strip>;
87
+ declare const DeleteLikeByFqdnAndEntityIdRequest: z.ZodObject<{
88
+ identifiers: z.ZodObject<{
89
+ fqdn: z.ZodString;
90
+ entityId: z.ZodString;
91
+ }, z.core.$strip>;
92
+ }, z.core.$strip>;
93
+ declare const DeleteLikeByFqdnAndEntityIdResponse: z.ZodObject<{}, z.core.$strip>;
94
+
95
+ export { CreateLikeRequest, CreateLikeResponse, DeleteLikeByFqdnAndEntityIdRequest, DeleteLikeByFqdnAndEntityIdResponse, DeleteLikeRequest, DeleteLikeResponse, GetLikeByFqdnAndEntityIdRequest, GetLikeByFqdnAndEntityIdResponse, GetLikeRequest, GetLikeResponse, QueryLikesRequest, QueryLikesResponse };
@@ -0,0 +1,234 @@
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
+ CreateLikeRequest: () => CreateLikeRequest,
34
+ CreateLikeResponse: () => CreateLikeResponse,
35
+ DeleteLikeByFqdnAndEntityIdRequest: () => DeleteLikeByFqdnAndEntityIdRequest,
36
+ DeleteLikeByFqdnAndEntityIdResponse: () => DeleteLikeByFqdnAndEntityIdResponse,
37
+ DeleteLikeRequest: () => DeleteLikeRequest,
38
+ DeleteLikeResponse: () => DeleteLikeResponse,
39
+ GetLikeByFqdnAndEntityIdRequest: () => GetLikeByFqdnAndEntityIdRequest,
40
+ GetLikeByFqdnAndEntityIdResponse: () => GetLikeByFqdnAndEntityIdResponse,
41
+ GetLikeRequest: () => GetLikeRequest,
42
+ GetLikeResponse: () => GetLikeResponse,
43
+ QueryLikesRequest: () => QueryLikesRequest,
44
+ QueryLikesResponse: () => QueryLikesResponse
45
+ });
46
+ module.exports = __toCommonJS(schemas_exports);
47
+
48
+ // src/blog-v1-like-likes.schemas.ts
49
+ var z = __toESM(require("zod"));
50
+ var CreateLikeRequest = z.object({
51
+ options: z.object({
52
+ like: z.object({
53
+ _id: z.string().describe("Like ID.").regex(
54
+ /^[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}$/,
55
+ "Must be a valid GUID"
56
+ ).optional().nullable(),
57
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
58
+ entityId: z.string().describe(
59
+ "ID of the specific blog content being liked, such as a blog post or comment."
60
+ ).regex(
61
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
62
+ "Must be a valid GUID"
63
+ ),
64
+ fqdn: z.string().describe(
65
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
66
+ ).max(256)
67
+ }).describe("Like to create.").optional()
68
+ }).optional()
69
+ });
70
+ var CreateLikeResponse = z.object({
71
+ _id: z.string().describe("Like 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
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
76
+ entityId: z.string().describe(
77
+ "ID of the specific blog content being liked, such as a blog post or comment."
78
+ ).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
+ fqdn: z.string().describe(
83
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
84
+ ).max(256).optional().nullable()
85
+ });
86
+ var GetLikeRequest = z.object({
87
+ likeId: z.string().describe("Like ID.").regex(
88
+ /^[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}$/,
89
+ "Must be a valid GUID"
90
+ )
91
+ });
92
+ var GetLikeResponse = z.object({
93
+ _id: z.string().describe("Like ID.").regex(
94
+ /^[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}$/,
95
+ "Must be a valid GUID"
96
+ ).optional().nullable(),
97
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
98
+ entityId: z.string().describe(
99
+ "ID of the specific blog content being liked, such as a blog post or comment."
100
+ ).regex(
101
+ /^[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}$/,
102
+ "Must be a valid GUID"
103
+ ).optional().nullable(),
104
+ fqdn: z.string().describe(
105
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
106
+ ).max(256).optional().nullable()
107
+ });
108
+ var GetLikeByFqdnAndEntityIdRequest = z.object({
109
+ identifiers: z.object({
110
+ fqdn: z.string().describe(
111
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
112
+ ).max(256),
113
+ entityId: z.string().describe("ID of the liked entity.").regex(
114
+ /^[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}$/,
115
+ "Must be a valid GUID"
116
+ )
117
+ })
118
+ });
119
+ var GetLikeByFqdnAndEntityIdResponse = z.object({
120
+ like: z.object({
121
+ _id: z.string().describe("Like ID.").regex(
122
+ /^[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}$/,
123
+ "Must be a valid GUID"
124
+ ).optional().nullable(),
125
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
126
+ entityId: z.string().describe(
127
+ "ID of the specific blog content being liked, such as a blog post or comment."
128
+ ).regex(
129
+ /^[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}$/,
130
+ "Must be a valid GUID"
131
+ ).optional().nullable(),
132
+ fqdn: z.string().describe(
133
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
134
+ ).max(256).optional().nullable()
135
+ }).describe("Retrieved like.").optional()
136
+ });
137
+ var QueryLikesRequest = z.object({
138
+ query: z.object({
139
+ filter: z.object({
140
+ _id: z.object({
141
+ $eq: z.string(),
142
+ $in: z.array(z.string()),
143
+ $ne: z.string()
144
+ }).partial().strict().optional(),
145
+ fqdn: z.object({
146
+ $eq: z.string(),
147
+ $in: z.array(z.string()),
148
+ $ne: z.string()
149
+ }).partial().strict().optional(),
150
+ entityId: z.object({
151
+ $eq: z.string(),
152
+ $in: z.array(z.string()),
153
+ $ne: z.string()
154
+ }).partial().strict().optional(),
155
+ $and: z.array(z.any()).optional(),
156
+ $or: z.array(z.any()).optional(),
157
+ $not: z.any().optional()
158
+ }).strict().optional(),
159
+ sort: z.array(z.object({})).optional()
160
+ }).catchall(z.any()).describe(
161
+ "Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details."
162
+ )
163
+ });
164
+ var QueryLikesResponse = z.object({
165
+ likes: z.array(
166
+ z.object({
167
+ _id: z.string().describe("Like ID.").regex(
168
+ /^[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}$/,
169
+ "Must be a valid GUID"
170
+ ).optional().nullable(),
171
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
172
+ entityId: z.string().describe(
173
+ "ID of the specific blog content being liked, such as a blog post or comment."
174
+ ).regex(
175
+ /^[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}$/,
176
+ "Must be a valid GUID"
177
+ ).optional().nullable(),
178
+ fqdn: z.string().describe(
179
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
180
+ ).max(256).optional().nullable()
181
+ })
182
+ ).optional(),
183
+ pagingMetadata: z.object({
184
+ count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
185
+ cursors: z.object({
186
+ next: z.string().describe(
187
+ "Cursor string pointing to the next page in the list of results."
188
+ ).max(16e3).optional().nullable(),
189
+ prev: z.string().describe(
190
+ "Cursor pointing to the previous page in the list of results."
191
+ ).max(16e3).optional().nullable()
192
+ }).describe(
193
+ "Cursor strings that point to the next page, previous page, or both."
194
+ ).optional(),
195
+ hasNext: z.boolean().describe(
196
+ "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
197
+ ).optional().nullable()
198
+ }).describe("Paging metadata.").optional()
199
+ });
200
+ var DeleteLikeRequest = z.object({
201
+ likeId: z.string().describe("ID of the like to delete.").regex(
202
+ /^[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}$/,
203
+ "Must be a valid GUID"
204
+ )
205
+ });
206
+ var DeleteLikeResponse = z.object({});
207
+ var DeleteLikeByFqdnAndEntityIdRequest = z.object({
208
+ identifiers: z.object({
209
+ fqdn: z.string().describe(
210
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
211
+ ).max(256),
212
+ entityId: z.string().describe("ID of the specific blog content being liked.").regex(
213
+ /^[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}$/,
214
+ "Must be a valid GUID"
215
+ )
216
+ })
217
+ });
218
+ var DeleteLikeByFqdnAndEntityIdResponse = z.object({});
219
+ // Annotate the CommonJS export names for ESM import in node:
220
+ 0 && (module.exports = {
221
+ CreateLikeRequest,
222
+ CreateLikeResponse,
223
+ DeleteLikeByFqdnAndEntityIdRequest,
224
+ DeleteLikeByFqdnAndEntityIdResponse,
225
+ DeleteLikeRequest,
226
+ DeleteLikeResponse,
227
+ GetLikeByFqdnAndEntityIdRequest,
228
+ GetLikeByFqdnAndEntityIdResponse,
229
+ GetLikeRequest,
230
+ GetLikeResponse,
231
+ QueryLikesRequest,
232
+ QueryLikesResponse
233
+ });
234
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../schemas.ts","../../src/blog-v1-like-likes.schemas.ts"],"sourcesContent":["export * from './src/blog-v1-like-likes.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateLikeRequest = z.object({\n options: z\n .object({\n like: z\n .object({\n _id: z\n .string()\n .describe('Like ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the like was created.')\n .optional()\n .nullable(),\n entityId: z\n .string()\n .describe(\n 'ID of the specific blog content being liked, such as a blog post or comment.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n fqdn: z\n .string()\n .describe(\n 'Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.'\n )\n .max(256),\n })\n .describe('Like to create.')\n .optional(),\n })\n .optional(),\n});\nexport const CreateLikeResponse = z.object({\n _id: z\n .string()\n .describe('Like ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the like was created.')\n .optional()\n .nullable(),\n entityId: z\n .string()\n .describe(\n 'ID of the specific blog content being liked, such as a blog post or comment.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n fqdn: z\n .string()\n .describe(\n 'Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.'\n )\n .max(256)\n .optional()\n .nullable(),\n});\nexport const GetLikeRequest = z.object({\n likeId: z\n .string()\n .describe('Like 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});\nexport const GetLikeResponse = z.object({\n _id: z\n .string()\n .describe('Like ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the like was created.')\n .optional()\n .nullable(),\n entityId: z\n .string()\n .describe(\n 'ID of the specific blog content being liked, such as a blog post or comment.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n fqdn: z\n .string()\n .describe(\n 'Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.'\n )\n .max(256)\n .optional()\n .nullable(),\n});\nexport const GetLikeByFqdnAndEntityIdRequest = z.object({\n identifiers: z.object({\n fqdn: z\n .string()\n .describe(\n 'Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.'\n )\n .max(256),\n entityId: z\n .string()\n .describe('ID of the liked entity.')\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 }),\n});\nexport const GetLikeByFqdnAndEntityIdResponse = z.object({\n like: z\n .object({\n _id: z\n .string()\n .describe('Like ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the like was created.')\n .optional()\n .nullable(),\n entityId: z\n .string()\n .describe(\n 'ID of the specific blog content being liked, such as a blog post or comment.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n fqdn: z\n .string()\n .describe(\n 'Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.'\n )\n .max(256)\n .optional()\n .nullable(),\n })\n .describe('Retrieved like.')\n .optional(),\n});\nexport const QueryLikesRequest = z.object({\n query: z\n .object({\n filter: z\n .object({\n _id: z\n .object({\n $eq: z.string(),\n $in: z.array(z.string()),\n $ne: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n fqdn: z\n .object({\n $eq: z.string(),\n $in: z.array(z.string()),\n $ne: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n entityId: z\n .object({\n $eq: z.string(),\n $in: z.array(z.string()),\n $ne: 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(\n 'Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details.'\n ),\n});\nexport const QueryLikesResponse = z.object({\n likes: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Like ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the like was created.')\n .optional()\n .nullable(),\n entityId: z\n .string()\n .describe(\n 'ID of the specific blog content being liked, such as a blog post or comment.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n fqdn: z\n .string()\n .describe(\n 'Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.'\n )\n .max(256)\n .optional()\n .nullable(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const DeleteLikeRequest = z.object({\n likeId: z\n .string()\n .describe('ID of the like 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 DeleteLikeResponse = z.object({});\nexport const DeleteLikeByFqdnAndEntityIdRequest = z.object({\n identifiers: z.object({\n fqdn: z\n .string()\n .describe(\n 'Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.'\n )\n .max(256),\n entityId: z\n .string()\n .describe('ID of the specific blog content being liked.')\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 }),\n});\nexport const DeleteLikeByFqdnAndEntityIdResponse = z.object({});\n"],"mappings":"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","names":[]}
@@ -0,0 +1,95 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const CreateLikeRequest: z.ZodObject<{
4
+ options: z.ZodOptional<z.ZodObject<{
5
+ like: z.ZodOptional<z.ZodObject<{
6
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8
+ entityId: z.ZodString;
9
+ fqdn: z.ZodString;
10
+ }, z.core.$strip>>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const CreateLikeResponse: z.ZodObject<{
14
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
16
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const GetLikeRequest: z.ZodObject<{
20
+ likeId: z.ZodString;
21
+ }, z.core.$strip>;
22
+ declare const GetLikeResponse: z.ZodObject<{
23
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
25
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
+ }, z.core.$strip>;
28
+ declare const GetLikeByFqdnAndEntityIdRequest: z.ZodObject<{
29
+ identifiers: z.ZodObject<{
30
+ fqdn: z.ZodString;
31
+ entityId: z.ZodString;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>;
34
+ declare const GetLikeByFqdnAndEntityIdResponse: z.ZodObject<{
35
+ like: z.ZodOptional<z.ZodObject<{
36
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
38
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>;
42
+ declare const QueryLikesRequest: z.ZodObject<{
43
+ query: z.ZodObject<{
44
+ filter: z.ZodOptional<z.ZodObject<{
45
+ _id: z.ZodOptional<z.ZodObject<{
46
+ $eq: z.ZodOptional<z.ZodString>;
47
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ $ne: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strict>>;
50
+ fqdn: z.ZodOptional<z.ZodObject<{
51
+ $eq: z.ZodOptional<z.ZodString>;
52
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ $ne: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strict>>;
55
+ entityId: z.ZodOptional<z.ZodObject<{
56
+ $eq: z.ZodOptional<z.ZodString>;
57
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ $ne: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strict>>;
60
+ $and: z.ZodOptional<z.ZodArray<z.ZodAny>>;
61
+ $or: z.ZodOptional<z.ZodArray<z.ZodAny>>;
62
+ $not: z.ZodOptional<z.ZodAny>;
63
+ }, z.core.$strict>>;
64
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
65
+ }, z.core.$catchall<z.ZodAny>>;
66
+ }, z.core.$strip>;
67
+ declare const QueryLikesResponse: z.ZodObject<{
68
+ likes: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
71
+ entityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
+ fqdn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
+ }, z.core.$strip>>>;
74
+ pagingMetadata: z.ZodOptional<z.ZodObject<{
75
+ count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
76
+ cursors: z.ZodOptional<z.ZodObject<{
77
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
+ prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
79
+ }, z.core.$strip>>;
80
+ hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$strip>;
83
+ declare const DeleteLikeRequest: z.ZodObject<{
84
+ likeId: z.ZodString;
85
+ }, z.core.$strip>;
86
+ declare const DeleteLikeResponse: z.ZodObject<{}, z.core.$strip>;
87
+ declare const DeleteLikeByFqdnAndEntityIdRequest: z.ZodObject<{
88
+ identifiers: z.ZodObject<{
89
+ fqdn: z.ZodString;
90
+ entityId: z.ZodString;
91
+ }, z.core.$strip>;
92
+ }, z.core.$strip>;
93
+ declare const DeleteLikeByFqdnAndEntityIdResponse: z.ZodObject<{}, z.core.$strip>;
94
+
95
+ export { CreateLikeRequest, CreateLikeResponse, DeleteLikeByFqdnAndEntityIdRequest, DeleteLikeByFqdnAndEntityIdResponse, DeleteLikeRequest, DeleteLikeResponse, GetLikeByFqdnAndEntityIdRequest, GetLikeByFqdnAndEntityIdResponse, GetLikeRequest, GetLikeResponse, QueryLikesRequest, QueryLikesResponse };
@@ -0,0 +1,186 @@
1
+ // src/blog-v1-like-likes.schemas.ts
2
+ import * as z from "zod";
3
+ var CreateLikeRequest = z.object({
4
+ options: z.object({
5
+ like: z.object({
6
+ _id: z.string().describe("Like ID.").regex(
7
+ /^[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}$/,
8
+ "Must be a valid GUID"
9
+ ).optional().nullable(),
10
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
11
+ entityId: z.string().describe(
12
+ "ID of the specific blog content being liked, such as a blog post or comment."
13
+ ).regex(
14
+ /^[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}$/,
15
+ "Must be a valid GUID"
16
+ ),
17
+ fqdn: z.string().describe(
18
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
19
+ ).max(256)
20
+ }).describe("Like to create.").optional()
21
+ }).optional()
22
+ });
23
+ var CreateLikeResponse = z.object({
24
+ _id: z.string().describe("Like ID.").regex(
25
+ /^[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}$/,
26
+ "Must be a valid GUID"
27
+ ).optional().nullable(),
28
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
29
+ entityId: z.string().describe(
30
+ "ID of the specific blog content being liked, such as a blog post or comment."
31
+ ).regex(
32
+ /^[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}$/,
33
+ "Must be a valid GUID"
34
+ ).optional().nullable(),
35
+ fqdn: z.string().describe(
36
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
37
+ ).max(256).optional().nullable()
38
+ });
39
+ var GetLikeRequest = z.object({
40
+ likeId: z.string().describe("Like ID.").regex(
41
+ /^[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}$/,
42
+ "Must be a valid GUID"
43
+ )
44
+ });
45
+ var GetLikeResponse = z.object({
46
+ _id: z.string().describe("Like ID.").regex(
47
+ /^[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}$/,
48
+ "Must be a valid GUID"
49
+ ).optional().nullable(),
50
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
51
+ entityId: z.string().describe(
52
+ "ID of the specific blog content being liked, such as a blog post or comment."
53
+ ).regex(
54
+ /^[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}$/,
55
+ "Must be a valid GUID"
56
+ ).optional().nullable(),
57
+ fqdn: z.string().describe(
58
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
59
+ ).max(256).optional().nullable()
60
+ });
61
+ var GetLikeByFqdnAndEntityIdRequest = z.object({
62
+ identifiers: z.object({
63
+ fqdn: z.string().describe(
64
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
65
+ ).max(256),
66
+ entityId: z.string().describe("ID of the liked entity.").regex(
67
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
68
+ "Must be a valid GUID"
69
+ )
70
+ })
71
+ });
72
+ var GetLikeByFqdnAndEntityIdResponse = z.object({
73
+ like: z.object({
74
+ _id: z.string().describe("Like ID.").regex(
75
+ /^[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}$/,
76
+ "Must be a valid GUID"
77
+ ).optional().nullable(),
78
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
79
+ entityId: z.string().describe(
80
+ "ID of the specific blog content being liked, such as a blog post or comment."
81
+ ).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
+ fqdn: z.string().describe(
86
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
87
+ ).max(256).optional().nullable()
88
+ }).describe("Retrieved like.").optional()
89
+ });
90
+ var QueryLikesRequest = z.object({
91
+ query: z.object({
92
+ filter: z.object({
93
+ _id: z.object({
94
+ $eq: z.string(),
95
+ $in: z.array(z.string()),
96
+ $ne: z.string()
97
+ }).partial().strict().optional(),
98
+ fqdn: z.object({
99
+ $eq: z.string(),
100
+ $in: z.array(z.string()),
101
+ $ne: z.string()
102
+ }).partial().strict().optional(),
103
+ entityId: z.object({
104
+ $eq: z.string(),
105
+ $in: z.array(z.string()),
106
+ $ne: z.string()
107
+ }).partial().strict().optional(),
108
+ $and: z.array(z.any()).optional(),
109
+ $or: z.array(z.any()).optional(),
110
+ $not: z.any().optional()
111
+ }).strict().optional(),
112
+ sort: z.array(z.object({})).optional()
113
+ }).catchall(z.any()).describe(
114
+ "Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details."
115
+ )
116
+ });
117
+ var QueryLikesResponse = z.object({
118
+ likes: z.array(
119
+ z.object({
120
+ _id: z.string().describe("Like ID.").regex(
121
+ /^[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}$/,
122
+ "Must be a valid GUID"
123
+ ).optional().nullable(),
124
+ _createdDate: z.date().describe("Date and time the like was created.").optional().nullable(),
125
+ entityId: z.string().describe(
126
+ "ID of the specific blog content being liked, such as a blog post or comment."
127
+ ).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
+ fqdn: z.string().describe(
132
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
133
+ ).max(256).optional().nullable()
134
+ })
135
+ ).optional(),
136
+ pagingMetadata: z.object({
137
+ count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
138
+ cursors: z.object({
139
+ next: z.string().describe(
140
+ "Cursor string pointing to the next page in the list of results."
141
+ ).max(16e3).optional().nullable(),
142
+ prev: z.string().describe(
143
+ "Cursor pointing to the previous page in the list of results."
144
+ ).max(16e3).optional().nullable()
145
+ }).describe(
146
+ "Cursor strings that point to the next page, previous page, or both."
147
+ ).optional(),
148
+ hasNext: z.boolean().describe(
149
+ "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
150
+ ).optional().nullable()
151
+ }).describe("Paging metadata.").optional()
152
+ });
153
+ var DeleteLikeRequest = z.object({
154
+ likeId: z.string().describe("ID of the like to delete.").regex(
155
+ /^[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}$/,
156
+ "Must be a valid GUID"
157
+ )
158
+ });
159
+ var DeleteLikeResponse = z.object({});
160
+ var DeleteLikeByFqdnAndEntityIdRequest = z.object({
161
+ identifiers: z.object({
162
+ fqdn: z.string().describe(
163
+ "Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts."
164
+ ).max(256),
165
+ entityId: z.string().describe("ID of the specific blog content being liked.").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
+ )
169
+ })
170
+ });
171
+ var DeleteLikeByFqdnAndEntityIdResponse = z.object({});
172
+ export {
173
+ CreateLikeRequest,
174
+ CreateLikeResponse,
175
+ DeleteLikeByFqdnAndEntityIdRequest,
176
+ DeleteLikeByFqdnAndEntityIdResponse,
177
+ DeleteLikeRequest,
178
+ DeleteLikeResponse,
179
+ GetLikeByFqdnAndEntityIdRequest,
180
+ GetLikeByFqdnAndEntityIdResponse,
181
+ GetLikeRequest,
182
+ GetLikeResponse,
183
+ QueryLikesRequest,
184
+ QueryLikesResponse
185
+ };
186
+ //# sourceMappingURL=schemas.mjs.map