@wix/auto_sdk_sites_sites 1.0.43 → 1.0.44

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.
@@ -195,270 +195,6 @@ function countSites(payload) {
195
195
 
196
196
  // src/site-list-v2-site-sites.universal.ts
197
197
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
198
-
199
- // src/site-list-v2-site-sites.schemas.ts
200
- import * as z from "zod";
201
- var QuerySitesRequest = z.object({
202
- query: z.object({
203
- filter: z.object({
204
- _id: z.object({
205
- $eq: z.string(),
206
- $exists: z.boolean(),
207
- $gt: z.string(),
208
- $gte: z.string(),
209
- $hasAll: z.array(z.string()),
210
- $hasSome: z.array(z.string()),
211
- $in: z.array(z.string()),
212
- $lt: z.string(),
213
- $lte: z.string(),
214
- $ne: z.string(),
215
- $nin: z.array(z.string()),
216
- $startsWith: z.string()
217
- }).partial().strict().optional(),
218
- name: z.object({
219
- $eq: z.string(),
220
- $exists: z.boolean(),
221
- $gt: z.string(),
222
- $gte: z.string(),
223
- $hasAll: z.array(z.string()),
224
- $hasSome: z.array(z.string()),
225
- $in: z.array(z.string()),
226
- $lt: z.string(),
227
- $lte: z.string(),
228
- $ne: z.string(),
229
- $nin: z.array(z.string()),
230
- $startsWith: z.string()
231
- }).partial().strict().optional(),
232
- published: z.object({
233
- $eq: z.boolean(),
234
- $exists: z.boolean(),
235
- $gt: z.boolean(),
236
- $gte: z.boolean(),
237
- $hasAll: z.array(z.boolean()),
238
- $hasSome: z.array(z.boolean()),
239
- $in: z.array(z.boolean()),
240
- $lt: z.boolean(),
241
- $lte: z.boolean(),
242
- $ne: z.boolean(),
243
- $nin: z.array(z.boolean()),
244
- $startsWith: z.string()
245
- }).partial().strict().optional(),
246
- premium: z.object({
247
- $eq: z.boolean(),
248
- $exists: z.boolean(),
249
- $gt: z.boolean(),
250
- $gte: z.boolean(),
251
- $hasAll: z.array(z.boolean()),
252
- $hasSome: z.array(z.boolean()),
253
- $in: z.array(z.boolean()),
254
- $lt: z.boolean(),
255
- $lte: z.boolean(),
256
- $ne: z.boolean(),
257
- $nin: z.array(z.boolean()),
258
- $startsWith: z.string()
259
- }).partial().strict().optional(),
260
- editorType: z.object({
261
- $eq: z.string(),
262
- $exists: z.boolean(),
263
- $gt: z.string(),
264
- $gte: z.string(),
265
- $hasAll: z.array(z.string()),
266
- $hasSome: z.array(z.string()),
267
- $in: z.array(z.string()),
268
- $lt: z.string(),
269
- $lte: z.string(),
270
- $ne: z.string(),
271
- $nin: z.array(z.string()),
272
- $startsWith: z.string()
273
- }).partial().strict().optional(),
274
- folderId: z.object({
275
- $eq: z.string(),
276
- $exists: z.boolean(),
277
- $gt: z.string(),
278
- $gte: z.string(),
279
- $hasAll: z.array(z.string()),
280
- $hasSome: z.array(z.string()),
281
- $in: z.array(z.string()),
282
- $lt: z.string(),
283
- $lte: z.string(),
284
- $ne: z.string(),
285
- $nin: z.array(z.string()),
286
- $startsWith: z.string()
287
- }).partial().strict().optional(),
288
- namespace: z.object({
289
- $eq: z.string(),
290
- $exists: z.boolean(),
291
- $gt: z.string(),
292
- $gte: z.string(),
293
- $hasAll: z.array(z.string()),
294
- $hasSome: z.array(z.string()),
295
- $in: z.array(z.string()),
296
- $lt: z.string(),
297
- $lte: z.string(),
298
- $ne: z.string(),
299
- $nin: z.array(z.string()),
300
- $startsWith: z.string()
301
- }).partial().strict().optional(),
302
- domainConnected: z.object({
303
- $eq: z.boolean(),
304
- $exists: z.boolean(),
305
- $gt: z.boolean(),
306
- $gte: z.boolean(),
307
- $hasAll: z.array(z.boolean()),
308
- $hasSome: z.array(z.boolean()),
309
- $in: z.array(z.boolean()),
310
- $lt: z.boolean(),
311
- $lte: z.boolean(),
312
- $ne: z.boolean(),
313
- $nin: z.array(z.boolean()),
314
- $startsWith: z.string()
315
- }).partial().strict().optional(),
316
- displayName: z.object({}).partial().strict().optional(),
317
- _createdDate: z.object({}).partial().strict().optional(),
318
- _updatedDate: z.object({}).partial().strict().optional(),
319
- trashedDate: z.object({}).partial().strict().optional(),
320
- $and: z.array(z.any()).optional(),
321
- $or: z.array(z.any()).optional(),
322
- $not: z.any().optional()
323
- }).strict().optional(),
324
- sort: z.array(
325
- z.object({
326
- fieldName: z.enum([
327
- "displayName",
328
- "_createdDate",
329
- "_updatedDate",
330
- "trashedDate"
331
- ]).optional(),
332
- order: z.enum(["ASC", "DESC"]).optional()
333
- })
334
- ).optional()
335
- }).catchall(z.any()).describe(
336
- 'Filter and sorting with the following format:\n`"filter" : { "displayName": "my-site" }`'
337
- )
338
- });
339
- var QuerySitesResponse = z.object({
340
- sites: z.array(
341
- z.object({
342
- _id: z.string().describe("Site ID.").regex(
343
- /^[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}$/,
344
- "Must be a valid GUID"
345
- ).optional(),
346
- htmlAppId: z.string().describe("HTML app ID for the site.").regex(
347
- /^[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}$/,
348
- "Must be a valid GUID"
349
- ).optional().nullable(),
350
- name: z.string().describe("Site name. Used in the site's URL.").optional(),
351
- displayName: z.string().describe(
352
- "Site display name. Used for display purposes, such as in the browser's tab name."
353
- ).optional(),
354
- _createdDate: z.date().describe("Site creation date.").optional().nullable(),
355
- _updatedDate: z.date().describe("Site updated date.").optional().nullable(),
356
- trashedDate: z.date().describe("Site trashed date.").optional().nullable(),
357
- published: z.boolean().describe("Whether the site is published.").optional(),
358
- premium: z.boolean().describe("Whether the site has a Wix Premium (paid) plan.").optional(),
359
- viewUrl: z.string().describe("Live site URL.").optional(),
360
- editUrl: z.string().describe("Editor site URL.").optional(),
361
- thumbnail: z.string().describe("Site thumbnail.").optional(),
362
- ownerAccountId: z.string().describe("Site owner's account ID.").regex(
363
- /^[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}$/,
364
- "Must be a valid GUID"
365
- ).optional(),
366
- contributorAccountIds: z.array(z.string()).min(1).max(1e3).optional(),
367
- editorType: z.enum([
368
- "UNKNOWN",
369
- "EDITOR",
370
- "ADI",
371
- "EDITORX",
372
- "STUDIO",
373
- "ODEDITOR",
374
- "PICASSO",
375
- "WIXEL",
376
- "STUDIO_TWO",
377
- "EDITORLESS"
378
- ]).describe("Site's Wix editor type.").optional(),
379
- blocked: z.boolean().describe("Whether Wix has blocked this site due to legal issues.").optional(),
380
- folderId: z.string().describe(
381
- "Folder ID that contains this site. Empty if site is at root level."
382
- ).regex(
383
- /^[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}$/,
384
- "Must be a valid GUID"
385
- ).optional().nullable(),
386
- namespace: z.enum([
387
- "UNKNOWN_NAMESPACE",
388
- "WIX",
389
- "SHOUT_OUT",
390
- "ALBUMS",
391
- "WIX_STORES_TEST_DRIVE",
392
- "HOTELS",
393
- "CLUBS",
394
- "ONBOARDING_DRAFT",
395
- "DEV_SITE",
396
- "LOGOS",
397
- "VIDEO_MAKER",
398
- "PARTNER_DASHBOARD",
399
- "DEV_CENTER_COMPANY",
400
- "HTML_DRAFT",
401
- "SITELESS_BUSINESS",
402
- "CREATOR_ECONOMY",
403
- "DASHBOARD_FIRST",
404
- "ANYWHERE",
405
- "HEADLESS",
406
- "ACCOUNT_MASTER_CMS",
407
- "RISE",
408
- "BRANDED_FIRST",
409
- "NOWNIA",
410
- "UGC_TEMPLATE",
411
- "CODUX",
412
- "MEDIA_DESIGN_CREATOR",
413
- "SHARED_BLOG_ENTERPRISE",
414
- "STANDALONE_FORMS",
415
- "STANDALONE_EVENTS",
416
- "MIMIR",
417
- "TWINS",
418
- "NANO",
419
- "BASE44",
420
- "CHANNELS",
421
- "NAUTILUS"
422
- ]).describe("Namespace of the site, for internal use.").optional(),
423
- domainConnected: z.boolean().describe("Whether the site has a connected domain.").optional(),
424
- parentChildRole: z.enum(["NONE", "CHILD", "PARENT"]).describe(
425
- "Role of the site in a parent-child data-sharing relationship."
426
- ).optional(),
427
- parentId: z.string().describe("For child sites, the parent meta site ID.").regex(
428
- /^[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}$/,
429
- "Must be a valid GUID"
430
- ).optional().nullable()
431
- })
432
- ).optional(),
433
- cursorPaging: z.object({
434
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
435
- cursor: z.string().describe(
436
- "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
437
- ).max(16e3).optional().nullable()
438
- }).describe("Paging information.").optional(),
439
- metadata: z.object({
440
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
441
- cursors: z.object({
442
- next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable()
443
- }).describe(
444
- "Cursors to navigate through the result pages. Returned if cursor paging is used."
445
- ).optional()
446
- }).describe("Meta data about the returned sites").optional()
447
- });
448
- var CountSitesRequest = z.object({
449
- options: z.object({
450
- filter: z.record(z.string(), z.any()).describe(
451
- "Filter object. See [Query Sites](https://dev.wix.com/docs/rest/account-level-apis/sites/sites/query-sites) for a list of supported filters.\nNote: the `premium` and `appIds` filters are not supported in this endpoint."
452
- ).optional().nullable()
453
- }).optional()
454
- });
455
- var CountSitesResponse = z.object({
456
- count: z.number().int().describe(
457
- "Number of sites retrieved basd on the filter.\nFree Wix accounts are limited to max 1,000 sites.\nPremium accounts can have an unlimited number of sites."
458
- ).optional()
459
- });
460
-
461
- // src/site-list-v2-site-sites.universal.ts
462
198
  import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
463
199
  var EditorType = /* @__PURE__ */ ((EditorType2) => {
464
200
  EditorType2["UNKNOWN"] = "UNKNOWN";
@@ -574,10 +310,7 @@ function querySites2() {
574
310
  });
575
311
  }
576
312
  async function typedQuerySites(query) {
577
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
578
- if (validateRequestSchema) {
579
- QuerySitesRequest.parse({ query });
580
- }
313
+ const { httpClient, sideEffects } = arguments[1];
581
314
  const payload = renameKeysFromSDKRequestToRESTRequest({ query });
582
315
  const reqOpts = querySites(payload);
583
316
  sideEffects?.onSiteCall?.();
@@ -605,10 +338,7 @@ var utils = {
605
338
  }
606
339
  };
607
340
  async function countSites2(options) {
608
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
609
- if (validateRequestSchema) {
610
- CountSitesRequest.parse({ options });
611
- }
341
+ const { httpClient, sideEffects } = arguments[1];
612
342
  const payload = renameKeysFromSDKRequestToRESTRequest({
613
343
  filter: options?.filter
614
344
  });
@@ -634,24 +364,24 @@ async function countSites2(options) {
634
364
  }
635
365
 
636
366
  // src/site-list-v2-site-sites.public.ts
637
- function querySites3(httpClient, __options) {
367
+ function querySites3(httpClient) {
638
368
  return () => querySites2(
639
369
  // @ts-ignore
640
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
370
+ { httpClient }
641
371
  );
642
372
  }
643
- function typedQuerySites2(httpClient, __options) {
373
+ function typedQuerySites2(httpClient) {
644
374
  return (query) => typedQuerySites(
645
375
  query,
646
376
  // @ts-ignore
647
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
377
+ { httpClient }
648
378
  );
649
379
  }
650
- function countSites3(httpClient, __options) {
380
+ function countSites3(httpClient) {
651
381
  return (options) => countSites2(
652
382
  options,
653
383
  // @ts-ignore
654
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
384
+ { httpClient }
655
385
  );
656
386
  }
657
387
  var onSiteCreated = EventDefinition(