@wix/auto_sdk_sites_sites 1.0.43 → 1.0.45

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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +1 -3
  2. package/build/cjs/index.js +9 -288
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +7 -2
  5. package/build/cjs/index.typings.js +3 -282
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +7 -2
  8. package/build/cjs/meta.js +1 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +2 -1
  11. package/build/cjs/schemas.js +2 -1
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +1 -3
  14. package/build/es/index.mjs +9 -278
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +7 -2
  17. package/build/es/index.typings.mjs +3 -272
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +7 -2
  20. package/build/es/meta.mjs +1 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +2 -1
  23. package/build/es/schemas.mjs +2 -1
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +1 -3
  26. package/build/internal/cjs/index.js +9 -288
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +7 -2
  29. package/build/internal/cjs/index.typings.js +3 -282
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +7 -2
  32. package/build/internal/cjs/meta.js +1 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +2 -1
  35. package/build/internal/cjs/schemas.js +2 -1
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +1 -3
  38. package/build/internal/es/index.mjs +9 -278
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +7 -2
  41. package/build/internal/es/index.typings.mjs +3 -272
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +7 -2
  44. package/build/internal/es/meta.mjs +1 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +2 -1
  47. package/build/internal/es/schemas.mjs +2 -1
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
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
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // index.ts
@@ -238,270 +228,6 @@ function countSites(payload) {
238
228
 
239
229
  // src/site-list-v2-site-sites.universal.ts
240
230
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
241
-
242
- // src/site-list-v2-site-sites.schemas.ts
243
- var z = __toESM(require("zod"));
244
- var QuerySitesRequest = z.object({
245
- query: z.object({
246
- filter: z.object({
247
- _id: z.object({
248
- $eq: z.string(),
249
- $exists: z.boolean(),
250
- $gt: z.string(),
251
- $gte: z.string(),
252
- $hasAll: z.array(z.string()),
253
- $hasSome: z.array(z.string()),
254
- $in: z.array(z.string()),
255
- $lt: z.string(),
256
- $lte: z.string(),
257
- $ne: z.string(),
258
- $nin: z.array(z.string()),
259
- $startsWith: z.string()
260
- }).partial().strict().optional(),
261
- name: z.object({
262
- $eq: z.string(),
263
- $exists: z.boolean(),
264
- $gt: z.string(),
265
- $gte: z.string(),
266
- $hasAll: z.array(z.string()),
267
- $hasSome: z.array(z.string()),
268
- $in: z.array(z.string()),
269
- $lt: z.string(),
270
- $lte: z.string(),
271
- $ne: z.string(),
272
- $nin: z.array(z.string()),
273
- $startsWith: z.string()
274
- }).partial().strict().optional(),
275
- published: z.object({
276
- $eq: z.boolean(),
277
- $exists: z.boolean(),
278
- $gt: z.boolean(),
279
- $gte: z.boolean(),
280
- $hasAll: z.array(z.boolean()),
281
- $hasSome: z.array(z.boolean()),
282
- $in: z.array(z.boolean()),
283
- $lt: z.boolean(),
284
- $lte: z.boolean(),
285
- $ne: z.boolean(),
286
- $nin: z.array(z.boolean()),
287
- $startsWith: z.string()
288
- }).partial().strict().optional(),
289
- premium: z.object({
290
- $eq: z.boolean(),
291
- $exists: z.boolean(),
292
- $gt: z.boolean(),
293
- $gte: z.boolean(),
294
- $hasAll: z.array(z.boolean()),
295
- $hasSome: z.array(z.boolean()),
296
- $in: z.array(z.boolean()),
297
- $lt: z.boolean(),
298
- $lte: z.boolean(),
299
- $ne: z.boolean(),
300
- $nin: z.array(z.boolean()),
301
- $startsWith: z.string()
302
- }).partial().strict().optional(),
303
- editorType: z.object({
304
- $eq: z.string(),
305
- $exists: z.boolean(),
306
- $gt: z.string(),
307
- $gte: z.string(),
308
- $hasAll: z.array(z.string()),
309
- $hasSome: z.array(z.string()),
310
- $in: z.array(z.string()),
311
- $lt: z.string(),
312
- $lte: z.string(),
313
- $ne: z.string(),
314
- $nin: z.array(z.string()),
315
- $startsWith: z.string()
316
- }).partial().strict().optional(),
317
- folderId: z.object({
318
- $eq: z.string(),
319
- $exists: z.boolean(),
320
- $gt: z.string(),
321
- $gte: z.string(),
322
- $hasAll: z.array(z.string()),
323
- $hasSome: z.array(z.string()),
324
- $in: z.array(z.string()),
325
- $lt: z.string(),
326
- $lte: z.string(),
327
- $ne: z.string(),
328
- $nin: z.array(z.string()),
329
- $startsWith: z.string()
330
- }).partial().strict().optional(),
331
- namespace: z.object({
332
- $eq: z.string(),
333
- $exists: z.boolean(),
334
- $gt: z.string(),
335
- $gte: z.string(),
336
- $hasAll: z.array(z.string()),
337
- $hasSome: z.array(z.string()),
338
- $in: z.array(z.string()),
339
- $lt: z.string(),
340
- $lte: z.string(),
341
- $ne: z.string(),
342
- $nin: z.array(z.string()),
343
- $startsWith: z.string()
344
- }).partial().strict().optional(),
345
- domainConnected: z.object({
346
- $eq: z.boolean(),
347
- $exists: z.boolean(),
348
- $gt: z.boolean(),
349
- $gte: z.boolean(),
350
- $hasAll: z.array(z.boolean()),
351
- $hasSome: z.array(z.boolean()),
352
- $in: z.array(z.boolean()),
353
- $lt: z.boolean(),
354
- $lte: z.boolean(),
355
- $ne: z.boolean(),
356
- $nin: z.array(z.boolean()),
357
- $startsWith: z.string()
358
- }).partial().strict().optional(),
359
- displayName: z.object({}).partial().strict().optional(),
360
- _createdDate: z.object({}).partial().strict().optional(),
361
- _updatedDate: z.object({}).partial().strict().optional(),
362
- trashedDate: z.object({}).partial().strict().optional(),
363
- $and: z.array(z.any()).optional(),
364
- $or: z.array(z.any()).optional(),
365
- $not: z.any().optional()
366
- }).strict().optional(),
367
- sort: z.array(
368
- z.object({
369
- fieldName: z.enum([
370
- "displayName",
371
- "_createdDate",
372
- "_updatedDate",
373
- "trashedDate"
374
- ]).optional(),
375
- order: z.enum(["ASC", "DESC"]).optional()
376
- })
377
- ).optional()
378
- }).catchall(z.any()).describe(
379
- 'Filter and sorting with the following format:\n`"filter" : { "displayName": "my-site" }`'
380
- )
381
- });
382
- var QuerySitesResponse = z.object({
383
- sites: z.array(
384
- z.object({
385
- _id: z.string().describe("Site ID.").regex(
386
- /^[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}$/,
387
- "Must be a valid GUID"
388
- ).optional(),
389
- htmlAppId: z.string().describe("HTML app ID for the site.").regex(
390
- /^[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}$/,
391
- "Must be a valid GUID"
392
- ).optional().nullable(),
393
- name: z.string().describe("Site name. Used in the site's URL.").optional(),
394
- displayName: z.string().describe(
395
- "Site display name. Used for display purposes, such as in the browser's tab name."
396
- ).optional(),
397
- _createdDate: z.date().describe("Site creation date.").optional().nullable(),
398
- _updatedDate: z.date().describe("Site updated date.").optional().nullable(),
399
- trashedDate: z.date().describe("Site trashed date.").optional().nullable(),
400
- published: z.boolean().describe("Whether the site is published.").optional(),
401
- premium: z.boolean().describe("Whether the site has a Wix Premium (paid) plan.").optional(),
402
- viewUrl: z.string().describe("Live site URL.").optional(),
403
- editUrl: z.string().describe("Editor site URL.").optional(),
404
- thumbnail: z.string().describe("Site thumbnail.").optional(),
405
- ownerAccountId: z.string().describe("Site owner's account ID.").regex(
406
- /^[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}$/,
407
- "Must be a valid GUID"
408
- ).optional(),
409
- contributorAccountIds: z.array(z.string()).min(1).max(1e3).optional(),
410
- editorType: z.enum([
411
- "UNKNOWN",
412
- "EDITOR",
413
- "ADI",
414
- "EDITORX",
415
- "STUDIO",
416
- "ODEDITOR",
417
- "PICASSO",
418
- "WIXEL",
419
- "STUDIO_TWO",
420
- "EDITORLESS"
421
- ]).describe("Site's Wix editor type.").optional(),
422
- blocked: z.boolean().describe("Whether Wix has blocked this site due to legal issues.").optional(),
423
- folderId: z.string().describe(
424
- "Folder ID that contains this site. Empty if site is at root level."
425
- ).regex(
426
- /^[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}$/,
427
- "Must be a valid GUID"
428
- ).optional().nullable(),
429
- namespace: z.enum([
430
- "UNKNOWN_NAMESPACE",
431
- "WIX",
432
- "SHOUT_OUT",
433
- "ALBUMS",
434
- "WIX_STORES_TEST_DRIVE",
435
- "HOTELS",
436
- "CLUBS",
437
- "ONBOARDING_DRAFT",
438
- "DEV_SITE",
439
- "LOGOS",
440
- "VIDEO_MAKER",
441
- "PARTNER_DASHBOARD",
442
- "DEV_CENTER_COMPANY",
443
- "HTML_DRAFT",
444
- "SITELESS_BUSINESS",
445
- "CREATOR_ECONOMY",
446
- "DASHBOARD_FIRST",
447
- "ANYWHERE",
448
- "HEADLESS",
449
- "ACCOUNT_MASTER_CMS",
450
- "RISE",
451
- "BRANDED_FIRST",
452
- "NOWNIA",
453
- "UGC_TEMPLATE",
454
- "CODUX",
455
- "MEDIA_DESIGN_CREATOR",
456
- "SHARED_BLOG_ENTERPRISE",
457
- "STANDALONE_FORMS",
458
- "STANDALONE_EVENTS",
459
- "MIMIR",
460
- "TWINS",
461
- "NANO",
462
- "BASE44",
463
- "CHANNELS",
464
- "NAUTILUS"
465
- ]).describe("Namespace of the site, for internal use.").optional(),
466
- domainConnected: z.boolean().describe("Whether the site has a connected domain.").optional(),
467
- parentChildRole: z.enum(["NONE", "CHILD", "PARENT"]).describe(
468
- "Role of the site in a parent-child data-sharing relationship."
469
- ).optional(),
470
- parentId: z.string().describe("For child sites, the parent meta site ID.").regex(
471
- /^[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}$/,
472
- "Must be a valid GUID"
473
- ).optional().nullable()
474
- })
475
- ).optional(),
476
- cursorPaging: z.object({
477
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
478
- cursor: z.string().describe(
479
- "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."
480
- ).max(16e3).optional().nullable()
481
- }).describe("Paging information.").optional(),
482
- metadata: z.object({
483
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
484
- cursors: z.object({
485
- next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable()
486
- }).describe(
487
- "Cursors to navigate through the result pages. Returned if cursor paging is used."
488
- ).optional()
489
- }).describe("Meta data about the returned sites").optional()
490
- });
491
- var CountSitesRequest = z.object({
492
- options: z.object({
493
- filter: z.record(z.string(), z.any()).describe(
494
- "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."
495
- ).optional().nullable()
496
- }).optional()
497
- });
498
- var CountSitesResponse = z.object({
499
- count: z.number().int().describe(
500
- "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."
501
- ).optional()
502
- });
503
-
504
- // src/site-list-v2-site-sites.universal.ts
505
231
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
506
232
  var EditorType = /* @__PURE__ */ ((EditorType2) => {
507
233
  EditorType2["UNKNOWN"] = "UNKNOWN";
@@ -552,6 +278,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
552
278
  Namespace2["BASE44"] = "BASE44";
553
279
  Namespace2["CHANNELS"] = "CHANNELS";
554
280
  Namespace2["NAUTILUS"] = "NAUTILUS";
281
+ Namespace2["SYMPHONY"] = "SYMPHONY";
555
282
  return Namespace2;
556
283
  })(Namespace || {});
557
284
  var ParentChildRole = /* @__PURE__ */ ((ParentChildRole2) => {
@@ -617,10 +344,7 @@ function querySites2() {
617
344
  });
618
345
  }
619
346
  async function typedQuerySites(query) {
620
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
621
- if (validateRequestSchema) {
622
- QuerySitesRequest.parse({ query });
623
- }
347
+ const { httpClient, sideEffects } = arguments[1];
624
348
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
625
349
  const reqOpts = querySites(payload);
626
350
  sideEffects?.onSiteCall?.();
@@ -648,10 +372,7 @@ var utils = {
648
372
  }
649
373
  };
650
374
  async function countSites2(options) {
651
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
652
- if (validateRequestSchema) {
653
- CountSitesRequest.parse({ options });
654
- }
375
+ const { httpClient, sideEffects } = arguments[1];
655
376
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
656
377
  filter: options?.filter
657
378
  });
@@ -677,24 +398,24 @@ async function countSites2(options) {
677
398
  }
678
399
 
679
400
  // src/site-list-v2-site-sites.public.ts
680
- function querySites3(httpClient, __options) {
401
+ function querySites3(httpClient) {
681
402
  return () => querySites2(
682
403
  // @ts-ignore
683
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
404
+ { httpClient }
684
405
  );
685
406
  }
686
- function typedQuerySites2(httpClient, __options) {
407
+ function typedQuerySites2(httpClient) {
687
408
  return (query) => typedQuerySites(
688
409
  query,
689
410
  // @ts-ignore
690
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
411
+ { httpClient }
691
412
  );
692
413
  }
693
- function countSites3(httpClient, __options) {
414
+ function countSites3(httpClient) {
694
415
  return (options) => countSites2(
695
416
  options,
696
417
  // @ts-ignore
697
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
418
+ { httpClient }
698
419
  );
699
420
  }
700
421
  var onSiteCreated = (0, import_sdk_types.EventDefinition)(