@rxdrag/rxcms-models 0.2.7 → 0.2.10

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/dist/index.mjs CHANGED
@@ -26,7 +26,11 @@ const aggregateEntities = {
26
26
  usersAggregate: "User"
27
27
  },
28
28
  Media: {
29
+ coverOfAggregate: "Post",
29
30
  usedByProductsAggregate: "Product",
31
+ ogMetaOfPageAggregate: "Page",
32
+ ogMetaOfProductAggregate: "Product",
33
+ ogMetaOfPostAggregate: "Post",
30
34
  attachmentOfAggregate: "Product",
31
35
  meidaOfProductAggregate: "ProductCategory"
32
36
  },
@@ -285,49 +289,32 @@ const productCategoryToInput = (entity) => {
285
289
  products: convertHasManyToInput(entity.products)
286
290
  };
287
291
  };
288
- const postCategoryToInputCascade = (entity) => {
289
- var _a, _b;
290
- const { childrenAggregate, postsAggregate, ...rest } = entity;
291
- return {
292
- ...rest,
293
- children: entity.children ? processHasManyClear({ sync: (_a = entity.children) == null ? void 0 : _a.map((ent) => postCategoryToInput(ent)) }) : void 0,
294
- posts: entity.posts ? processHasManyClear({ sync: (_b = entity.posts) == null ? void 0 : _b.map((ent) => postToInput(ent)) }) : void 0,
295
- parent: entity.parent ? processHasOneClear({ sync: postCategoryToInput(entity.parent) }) : void 0
296
- };
297
- };
298
- const postCategoryToInput = (entity) => {
299
- const { childrenAggregate, postsAggregate, ...rest } = entity;
300
- return {
301
- ...rest,
302
- children: convertHasManyToInput(entity.children),
303
- posts: convertHasManyToInput(entity.posts),
304
- parent: convertHasOneToInput(entity.parent)
305
- };
306
- };
307
- const postToInputCascade = (entity) => {
308
- var _a;
309
- const { tagsAggregate, ...rest } = entity;
292
+ const productToInputCascade = (entity) => {
293
+ var _a, _b, _c;
294
+ const { mediasAggregate, tagsAggregate, attachmentsAggregate, ...rest } = entity;
310
295
  return {
311
296
  ...rest,
312
- tags: entity.tags ? processHasManyClear({ sync: (_a = entity.tags) == null ? void 0 : _a.map((ent) => tagToInput(ent)) }) : void 0,
313
- author: entity.author ? processHasOneClear({ sync: userToInput(entity.author) }) : void 0,
314
- cover: entity.cover ? processHasOneClear({ sync: mediaToInput(entity.cover) }) : void 0,
297
+ category: entity.category ? processHasOneClear({ sync: productCategoryToInput(entity.category) }) : void 0,
298
+ medias: entity.medias ? processHasManyClear({ sync: (_a = entity.medias) == null ? void 0 : _a.map((ent) => mediaToInput(ent)) }) : void 0,
299
+ tags: entity.tags ? processHasManyClear({ sync: (_b = entity.tags) == null ? void 0 : _b.map((ent) => tagToInput(ent)) }) : void 0,
315
300
  ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
316
- draftOf: entity.draftOf ? processHasOneClear({ sync: postToInput(entity.draftOf) }) : void 0,
317
- category: entity.category ? processHasOneClear({ sync: postCategoryToInput(entity.category) }) : void 0,
318
- draft: entity.draft ? processHasOneClear({ sync: postToInput(entity.draft) }) : void 0
301
+ attachments: entity.attachments ? processHasManyClear({ sync: (_c = entity.attachments) == null ? void 0 : _c.map((ent) => mediaToInput(ent)) }) : void 0,
302
+ draftOf: entity.draftOf ? processHasOneClear({ sync: productToInput(entity.draftOf) }) : void 0,
303
+ creator: entity.creator ? processHasOneClear({ sync: userToInput(entity.creator) }) : void 0,
304
+ draft: entity.draft ? processHasOneClear({ sync: productToInput(entity.draft) }) : void 0
319
305
  };
320
306
  };
321
- const postToInput = (entity) => {
322
- const { tagsAggregate, ...rest } = entity;
307
+ const productToInput = (entity) => {
308
+ const { mediasAggregate, tagsAggregate, attachmentsAggregate, ...rest } = entity;
323
309
  return {
324
310
  ...rest,
311
+ category: convertHasOneToInput(entity.category),
312
+ medias: convertHasManyToInput(entity.medias),
325
313
  tags: convertHasManyToInput(entity.tags),
326
- author: convertHasOneToInput(entity.author),
327
- cover: convertHasOneToInput(entity.cover),
328
314
  ogImage: convertHasOneToInput(entity.ogImage),
315
+ attachments: convertHasManyToInput(entity.attachments),
329
316
  draftOf: convertHasOneToInput(entity.draftOf),
330
- category: convertHasOneToInput(entity.category),
317
+ creator: convertHasOneToInput(entity.creator),
331
318
  draft: convertHasOneToInput(entity.draft)
332
319
  };
333
320
  };
@@ -348,56 +335,50 @@ const tagToInput = (entity) => {
348
335
  products: convertHasManyToInput(entity.products)
349
336
  };
350
337
  };
351
- const productToInputCascade = (entity) => {
352
- var _a, _b, _c;
353
- const { mediasAggregate, tagsAggregate, attachmentsAggregate, ...rest } = entity;
338
+ const postCategoryToInputCascade = (entity) => {
339
+ var _a, _b;
340
+ const { childrenAggregate, postsAggregate, ...rest } = entity;
354
341
  return {
355
342
  ...rest,
356
- category: entity.category ? processHasOneClear({ sync: productCategoryToInput(entity.category) }) : void 0,
357
- medias: entity.medias ? processHasManyClear({ sync: (_a = entity.medias) == null ? void 0 : _a.map((ent) => mediaToInput(ent)) }) : void 0,
358
- tags: entity.tags ? processHasManyClear({ sync: (_b = entity.tags) == null ? void 0 : _b.map((ent) => tagToInput(ent)) }) : void 0,
359
- ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
360
- attachments: entity.attachments ? processHasManyClear({ sync: (_c = entity.attachments) == null ? void 0 : _c.map((ent) => mediaToInput(ent)) }) : void 0,
361
- draftOf: entity.draftOf ? processHasOneClear({ sync: productToInput(entity.draftOf) }) : void 0,
362
- creator: entity.creator ? processHasOneClear({ sync: userToInput(entity.creator) }) : void 0,
363
- draft: entity.draft ? processHasOneClear({ sync: productToInput(entity.draft) }) : void 0
343
+ children: entity.children ? processHasManyClear({ sync: (_a = entity.children) == null ? void 0 : _a.map((ent) => postCategoryToInput(ent)) }) : void 0,
344
+ posts: entity.posts ? processHasManyClear({ sync: (_b = entity.posts) == null ? void 0 : _b.map((ent) => postToInput(ent)) }) : void 0,
345
+ parent: entity.parent ? processHasOneClear({ sync: postCategoryToInput(entity.parent) }) : void 0
364
346
  };
365
347
  };
366
- const productToInput = (entity) => {
367
- const { mediasAggregate, tagsAggregate, attachmentsAggregate, ...rest } = entity;
348
+ const postCategoryToInput = (entity) => {
349
+ const { childrenAggregate, postsAggregate, ...rest } = entity;
368
350
  return {
369
351
  ...rest,
370
- category: convertHasOneToInput(entity.category),
371
- medias: convertHasManyToInput(entity.medias),
372
- tags: convertHasManyToInput(entity.tags),
373
- ogImage: convertHasOneToInput(entity.ogImage),
374
- attachments: convertHasManyToInput(entity.attachments),
375
- draftOf: convertHasOneToInput(entity.draftOf),
376
- creator: convertHasOneToInput(entity.creator),
377
- draft: convertHasOneToInput(entity.draft)
352
+ children: convertHasManyToInput(entity.children),
353
+ posts: convertHasManyToInput(entity.posts),
354
+ parent: convertHasOneToInput(entity.parent)
378
355
  };
379
356
  };
380
- const mediaToInputCascade = (entity) => {
381
- var _a, _b, _c;
382
- const { file, usedByProductsAggregate, attachmentOfAggregate, meidaOfProductAggregate, ...rest } = entity;
357
+ const postToInputCascade = (entity) => {
358
+ var _a;
359
+ const { tagsAggregate, ...rest } = entity;
383
360
  return {
384
361
  ...rest,
385
- folder: entity.folder ? processHasOneClear({ sync: mediaFolderToInput(entity.folder) }) : void 0,
386
- avatarOfUser: entity.avatarOfUser ? processHasOneClear({ sync: userToInput(entity.avatarOfUser) }) : void 0,
387
- usedByProducts: entity.usedByProducts ? processHasManyClear({ sync: (_a = entity.usedByProducts) == null ? void 0 : _a.map((ent) => productToInput(ent)) }) : void 0,
388
- attachmentOf: entity.attachmentOf ? processHasManyClear({ sync: (_b = entity.attachmentOf) == null ? void 0 : _b.map((ent) => productToInput(ent)) }) : void 0,
389
- meidaOfProduct: entity.meidaOfProduct ? processHasManyClear({ sync: (_c = entity.meidaOfProduct) == null ? void 0 : _c.map((ent) => productCategoryToInput(ent)) }) : void 0
362
+ tags: entity.tags ? processHasManyClear({ sync: (_a = entity.tags) == null ? void 0 : _a.map((ent) => tagToInput(ent)) }) : void 0,
363
+ author: entity.author ? processHasOneClear({ sync: userToInput(entity.author) }) : void 0,
364
+ cover: entity.cover ? processHasOneClear({ sync: mediaToInput(entity.cover) }) : void 0,
365
+ ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
366
+ draftOf: entity.draftOf ? processHasOneClear({ sync: postToInput(entity.draftOf) }) : void 0,
367
+ category: entity.category ? processHasOneClear({ sync: postCategoryToInput(entity.category) }) : void 0,
368
+ draft: entity.draft ? processHasOneClear({ sync: postToInput(entity.draft) }) : void 0
390
369
  };
391
370
  };
392
- const mediaToInput = (entity) => {
393
- const { file, usedByProductsAggregate, attachmentOfAggregate, meidaOfProductAggregate, ...rest } = entity;
371
+ const postToInput = (entity) => {
372
+ const { tagsAggregate, ...rest } = entity;
394
373
  return {
395
374
  ...rest,
396
- folder: convertHasOneToInput(entity.folder),
397
- avatarOfUser: convertHasOneToInput(entity.avatarOfUser),
398
- usedByProducts: convertHasManyToInput(entity.usedByProducts),
399
- attachmentOf: convertHasManyToInput(entity.attachmentOf),
400
- meidaOfProduct: convertHasManyToInput(entity.meidaOfProduct)
375
+ tags: convertHasManyToInput(entity.tags),
376
+ author: convertHasOneToInput(entity.author),
377
+ cover: convertHasOneToInput(entity.cover),
378
+ ogImage: convertHasOneToInput(entity.ogImage),
379
+ draftOf: convertHasOneToInput(entity.draftOf),
380
+ category: convertHasOneToInput(entity.category),
381
+ draft: convertHasOneToInput(entity.draft)
401
382
  };
402
383
  };
403
384
  const websiteTypeToInputCascade = (entity) => {
@@ -452,7 +433,8 @@ const themeToInputCascade = (entity) => {
452
433
  return {
453
434
  ...rest,
454
435
  templates: entity.templates ? processHasManyClear({ sync: (_a = entity.templates) == null ? void 0 : _a.map((ent) => templateToInput(ent)) }) : void 0,
455
- themlateCategories: entity.themlateCategories ? processHasManyClear({ sync: (_b = entity.themlateCategories) == null ? void 0 : _b.map((ent) => templateCategoryToInput(ent)) }) : void 0
436
+ themlateCategories: entity.themlateCategories ? processHasManyClear({ sync: (_b = entity.themlateCategories) == null ? void 0 : _b.map((ent) => templateCategoryToInput(ent)) }) : void 0,
437
+ selectedBy: entity.selectedBy ? processHasOneClear({ sync: websiteToInput(entity.selectedBy) }) : void 0
456
438
  };
457
439
  };
458
440
  const themeToInput = (entity) => {
@@ -460,19 +442,8 @@ const themeToInput = (entity) => {
460
442
  return {
461
443
  ...rest,
462
444
  templates: convertHasManyToInput(entity.templates),
463
- themlateCategories: convertHasManyToInput(entity.themlateCategories)
464
- };
465
- };
466
- const pageToInputCascade = (entity) => {
467
- return {
468
- ...entity,
469
- ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0
470
- };
471
- };
472
- const pageToInput = (entity) => {
473
- return {
474
- ...entity,
475
- ogImage: convertHasOneToInput(entity.ogImage)
445
+ themlateCategories: convertHasManyToInput(entity.themlateCategories),
446
+ selectedBy: convertHasOneToInput(entity.selectedBy)
476
447
  };
477
448
  };
478
449
  const websiteToInputCascade = (entity) => {
@@ -498,6 +469,51 @@ const websiteToInput = (entity) => {
498
469
  users: convertHasManyToInput(entity.users)
499
470
  };
500
471
  };
472
+ const pageToInputCascade = (entity) => {
473
+ return {
474
+ ...entity,
475
+ ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
476
+ homeOf: entity.homeOf ? processHasOneClear({ sync: websiteToInput(entity.homeOf) }) : void 0
477
+ };
478
+ };
479
+ const pageToInput = (entity) => {
480
+ return {
481
+ ...entity,
482
+ ogImage: convertHasOneToInput(entity.ogImage),
483
+ homeOf: convertHasOneToInput(entity.homeOf)
484
+ };
485
+ };
486
+ const mediaToInputCascade = (entity) => {
487
+ var _a, _b, _c, _d, _e, _f, _g;
488
+ const { file, coverOfAggregate, usedByProductsAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, attachmentOfAggregate, meidaOfProductAggregate, ...rest } = entity;
489
+ return {
490
+ ...rest,
491
+ folder: entity.folder ? processHasOneClear({ sync: mediaFolderToInput(entity.folder) }) : void 0,
492
+ coverOf: entity.coverOf ? processHasManyClear({ sync: (_a = entity.coverOf) == null ? void 0 : _a.map((ent) => postToInput(ent)) }) : void 0,
493
+ avatarOfUser: entity.avatarOfUser ? processHasOneClear({ sync: userToInput(entity.avatarOfUser) }) : void 0,
494
+ usedByProducts: entity.usedByProducts ? processHasManyClear({ sync: (_b = entity.usedByProducts) == null ? void 0 : _b.map((ent) => productToInput(ent)) }) : void 0,
495
+ ogMetaOfPage: entity.ogMetaOfPage ? processHasManyClear({ sync: (_c = entity.ogMetaOfPage) == null ? void 0 : _c.map((ent) => pageToInput(ent)) }) : void 0,
496
+ ogMetaOfProduct: entity.ogMetaOfProduct ? processHasManyClear({ sync: (_d = entity.ogMetaOfProduct) == null ? void 0 : _d.map((ent) => productToInput(ent)) }) : void 0,
497
+ ogMetaOfPost: entity.ogMetaOfPost ? processHasManyClear({ sync: (_e = entity.ogMetaOfPost) == null ? void 0 : _e.map((ent) => postToInput(ent)) }) : void 0,
498
+ attachmentOf: entity.attachmentOf ? processHasManyClear({ sync: (_f = entity.attachmentOf) == null ? void 0 : _f.map((ent) => productToInput(ent)) }) : void 0,
499
+ meidaOfProduct: entity.meidaOfProduct ? processHasManyClear({ sync: (_g = entity.meidaOfProduct) == null ? void 0 : _g.map((ent) => productCategoryToInput(ent)) }) : void 0
500
+ };
501
+ };
502
+ const mediaToInput = (entity) => {
503
+ const { file, coverOfAggregate, usedByProductsAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, attachmentOfAggregate, meidaOfProductAggregate, ...rest } = entity;
504
+ return {
505
+ ...rest,
506
+ folder: convertHasOneToInput(entity.folder),
507
+ coverOf: convertHasManyToInput(entity.coverOf),
508
+ avatarOfUser: convertHasOneToInput(entity.avatarOfUser),
509
+ usedByProducts: convertHasManyToInput(entity.usedByProducts),
510
+ ogMetaOfPage: convertHasManyToInput(entity.ogMetaOfPage),
511
+ ogMetaOfProduct: convertHasManyToInput(entity.ogMetaOfProduct),
512
+ ogMetaOfPost: convertHasManyToInput(entity.ogMetaOfPost),
513
+ attachmentOf: convertHasManyToInput(entity.attachmentOf),
514
+ meidaOfProduct: convertHasManyToInput(entity.meidaOfProduct)
515
+ };
516
+ };
501
517
  const userToInputCascade = (entity) => {
502
518
  var _a, _b, _c, _d;
503
519
  const { rolesAggregate, productsAggregate, postsAggregate, websitesAggregate, ...rest } = entity;
@@ -816,22 +832,6 @@ var EnquiryDistinctEnum = /* @__PURE__ */ ((EnquiryDistinctEnum2) => {
816
832
  EnquiryDistinctEnum2["remark"] = "remark";
817
833
  return EnquiryDistinctEnum2;
818
834
  })(EnquiryDistinctEnum || {});
819
- const WebsiteMetaEntityName = "WebsiteMeta";
820
- const WebsiteMetaEntityLabel = "";
821
- const websiteMetaToInputCascade = (entity) => {
822
- return {
823
- ...entity
824
- };
825
- };
826
- const websiteMetaToInput = (entity) => {
827
- return {
828
- ...entity
829
- };
830
- };
831
- var WebsiteMetaDistinctEnum = /* @__PURE__ */ ((WebsiteMetaDistinctEnum2) => {
832
- WebsiteMetaDistinctEnum2["id"] = "id";
833
- return WebsiteMetaDistinctEnum2;
834
- })(WebsiteMetaDistinctEnum || {});
835
835
  const WebsiteSettingsEntityName = "WebsiteSettings";
836
836
  const WebsiteSettingsEntityLabel = "";
837
837
  const websiteSettingsToInputCascade = (entity) => {
@@ -1416,109 +1416,54 @@ class ProductCategoryQueryOptions extends QueryOptions {
1416
1416
  return this;
1417
1417
  }
1418
1418
  }
1419
- class PostCategoryQueryOptions extends QueryOptions {
1419
+ class ProductQueryOptions extends QueryOptions {
1420
1420
  constructor(fields, queryArgs) {
1421
- super(PostCategoryEntityName, fields, queryArgs);
1421
+ super(ProductEntityName, fields, queryArgs);
1422
1422
  }
1423
1423
  id() {
1424
1424
  this.addField("id");
1425
1425
  return this;
1426
1426
  }
1427
- name() {
1428
- this.addField("name");
1429
- return this;
1430
- }
1431
- seqValue() {
1432
- this.addField("seqValue");
1433
- return this;
1434
- }
1435
- websiteId() {
1436
- this.addField("websiteId");
1437
- return this;
1438
- }
1439
- slug() {
1440
- this.addField("slug");
1427
+ published() {
1428
+ this.addField("published");
1441
1429
  return this;
1442
1430
  }
1443
- description() {
1444
- this.addField("description");
1431
+ featured() {
1432
+ this.addField("featured");
1445
1433
  return this;
1446
1434
  }
1447
- /**
1448
- * 创建时间
1449
- */
1450
- createdAt() {
1451
- this.addField("createdAt");
1435
+ showInNavMenu() {
1436
+ this.addField("showInNavMenu");
1452
1437
  return this;
1453
1438
  }
1454
- /**
1455
- * 更新时间
1456
- */
1457
- updatedAt() {
1458
- this.addField("updatedAt");
1439
+ seqValue() {
1440
+ this.addField("seqValue");
1459
1441
  return this;
1460
1442
  }
1461
1443
  /**
1462
- * 备注
1444
+ * 特色
1463
1445
  */
1464
- remark() {
1465
- this.addField("remark");
1466
- return this;
1467
- }
1468
- children(options) {
1469
- if (Array.isArray(options)) {
1470
- this._associations["children"] = new PostCategoryQueryOptions(options);
1471
- } else {
1472
- this._associations["children"] = options || new PostCategoryQueryOptions(["id"]);
1473
- }
1474
- return this;
1475
- }
1476
- childrenAggregate(aggregate) {
1477
- this._aggregates["childrenAggregate"] = aggregate;
1478
- return this;
1479
- }
1480
- posts(options) {
1481
- if (Array.isArray(options)) {
1482
- this._associations["posts"] = new PostQueryOptions(options);
1483
- } else {
1484
- this._associations["posts"] = options || new PostQueryOptions(["id"]);
1485
- }
1486
- return this;
1487
- }
1488
- postsAggregate(aggregate) {
1489
- this._aggregates["postsAggregate"] = aggregate;
1446
+ features() {
1447
+ this.addField("features");
1490
1448
  return this;
1491
1449
  }
1492
- parent(options) {
1493
- if (Array.isArray(options)) {
1494
- this._associations["parent"] = new PostCategoryQueryOptions(options);
1495
- } else {
1496
- this._associations["parent"] = options || new PostCategoryQueryOptions(["id"]);
1497
- }
1450
+ content2() {
1451
+ this.addField("content2");
1498
1452
  return this;
1499
1453
  }
1500
- }
1501
- class PostQueryOptions extends QueryOptions {
1502
- constructor(fields, queryArgs) {
1503
- super(PostEntityName, fields, queryArgs);
1504
- }
1505
- id() {
1506
- this.addField("id");
1454
+ content3() {
1455
+ this.addField("content3");
1507
1456
  return this;
1508
1457
  }
1509
- seqValue() {
1510
- this.addField("seqValue");
1458
+ shortTitle() {
1459
+ this.addField("shortTitle");
1511
1460
  return this;
1512
1461
  }
1513
1462
  /**
1514
- * 置顶
1463
+ * 第三方视频url
1515
1464
  */
1516
- pinToTop() {
1517
- this.addField("pinToTop");
1518
- return this;
1519
- }
1520
- authorEmail() {
1521
- this.addField("authorEmail");
1465
+ externalVideoUrl() {
1466
+ this.addField("externalVideoUrl");
1522
1467
  return this;
1523
1468
  }
1524
1469
  publishedAt() {
@@ -1630,6 +1575,26 @@ class PostQueryOptions extends QueryOptions {
1630
1575
  this.addField("lang");
1631
1576
  return this;
1632
1577
  }
1578
+ category(options) {
1579
+ if (Array.isArray(options)) {
1580
+ this._associations["category"] = new ProductCategoryQueryOptions(options);
1581
+ } else {
1582
+ this._associations["category"] = options || new ProductCategoryQueryOptions(["id"]);
1583
+ }
1584
+ return this;
1585
+ }
1586
+ medias(options) {
1587
+ if (Array.isArray(options)) {
1588
+ this._associations["medias"] = new MediaQueryOptions(options);
1589
+ } else {
1590
+ this._associations["medias"] = options || new MediaQueryOptions(["id"]);
1591
+ }
1592
+ return this;
1593
+ }
1594
+ mediasAggregate(aggregate) {
1595
+ this._aggregates["mediasAggregate"] = aggregate;
1596
+ return this;
1597
+ }
1633
1598
  tags(options) {
1634
1599
  if (Array.isArray(options)) {
1635
1600
  this._associations["tags"] = new TagQueryOptions(options);
@@ -1642,51 +1607,47 @@ class PostQueryOptions extends QueryOptions {
1642
1607
  this._aggregates["tagsAggregate"] = aggregate;
1643
1608
  return this;
1644
1609
  }
1645
- author(options) {
1610
+ ogImage(options) {
1646
1611
  if (Array.isArray(options)) {
1647
- this._associations["author"] = new UserQueryOptions(options);
1612
+ this._associations["ogImage"] = new MediaQueryOptions(options);
1648
1613
  } else {
1649
- this._associations["author"] = options || new UserQueryOptions(["id"]);
1614
+ this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
1650
1615
  }
1651
1616
  return this;
1652
1617
  }
1653
- cover(options) {
1618
+ attachments(options) {
1654
1619
  if (Array.isArray(options)) {
1655
- this._associations["cover"] = new MediaQueryOptions(options);
1620
+ this._associations["attachments"] = new MediaQueryOptions(options);
1656
1621
  } else {
1657
- this._associations["cover"] = options || new MediaQueryOptions(["id"]);
1622
+ this._associations["attachments"] = options || new MediaQueryOptions(["id"]);
1658
1623
  }
1659
1624
  return this;
1660
1625
  }
1661
- ogImage(options) {
1662
- if (Array.isArray(options)) {
1663
- this._associations["ogImage"] = new MediaQueryOptions(options);
1664
- } else {
1665
- this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
1666
- }
1626
+ attachmentsAggregate(aggregate) {
1627
+ this._aggregates["attachmentsAggregate"] = aggregate;
1667
1628
  return this;
1668
1629
  }
1669
1630
  draftOf(options) {
1670
1631
  if (Array.isArray(options)) {
1671
- this._associations["draftOf"] = new PostQueryOptions(options);
1632
+ this._associations["draftOf"] = new ProductQueryOptions(options);
1672
1633
  } else {
1673
- this._associations["draftOf"] = options || new PostQueryOptions(["id"]);
1634
+ this._associations["draftOf"] = options || new ProductQueryOptions(["id"]);
1674
1635
  }
1675
1636
  return this;
1676
1637
  }
1677
- category(options) {
1638
+ creator(options) {
1678
1639
  if (Array.isArray(options)) {
1679
- this._associations["category"] = new PostCategoryQueryOptions(options);
1640
+ this._associations["creator"] = new UserQueryOptions(options);
1680
1641
  } else {
1681
- this._associations["category"] = options || new PostCategoryQueryOptions(["id"]);
1642
+ this._associations["creator"] = options || new UserQueryOptions(["id"]);
1682
1643
  }
1683
1644
  return this;
1684
1645
  }
1685
1646
  draft(options) {
1686
1647
  if (Array.isArray(options)) {
1687
- this._associations["draft"] = new PostQueryOptions(options);
1648
+ this._associations["draft"] = new ProductQueryOptions(options);
1688
1649
  } else {
1689
- this._associations["draft"] = options || new PostQueryOptions(["id"]);
1650
+ this._associations["draft"] = options || new ProductQueryOptions(["id"]);
1690
1651
  }
1691
1652
  return this;
1692
1653
  }
@@ -1768,54 +1729,109 @@ class TagQueryOptions extends QueryOptions {
1768
1729
  return this;
1769
1730
  }
1770
1731
  }
1771
- class ProductQueryOptions extends QueryOptions {
1732
+ class PostCategoryQueryOptions extends QueryOptions {
1772
1733
  constructor(fields, queryArgs) {
1773
- super(ProductEntityName, fields, queryArgs);
1734
+ super(PostCategoryEntityName, fields, queryArgs);
1774
1735
  }
1775
1736
  id() {
1776
1737
  this.addField("id");
1777
1738
  return this;
1778
1739
  }
1779
- published() {
1780
- this.addField("published");
1740
+ name() {
1741
+ this.addField("name");
1781
1742
  return this;
1782
1743
  }
1783
- featured() {
1784
- this.addField("featured");
1744
+ seqValue() {
1745
+ this.addField("seqValue");
1785
1746
  return this;
1786
1747
  }
1787
- showInNavMenu() {
1788
- this.addField("showInNavMenu");
1748
+ websiteId() {
1749
+ this.addField("websiteId");
1789
1750
  return this;
1790
1751
  }
1791
- seqValue() {
1792
- this.addField("seqValue");
1752
+ slug() {
1753
+ this.addField("slug");
1754
+ return this;
1755
+ }
1756
+ description() {
1757
+ this.addField("description");
1793
1758
  return this;
1794
1759
  }
1795
1760
  /**
1796
- * 特色
1761
+ * 创建时间
1797
1762
  */
1798
- features() {
1799
- this.addField("features");
1763
+ createdAt() {
1764
+ this.addField("createdAt");
1800
1765
  return this;
1801
1766
  }
1802
- content2() {
1803
- this.addField("content2");
1767
+ /**
1768
+ * 更新时间
1769
+ */
1770
+ updatedAt() {
1771
+ this.addField("updatedAt");
1804
1772
  return this;
1805
1773
  }
1806
- content3() {
1807
- this.addField("content3");
1774
+ /**
1775
+ * 备注
1776
+ */
1777
+ remark() {
1778
+ this.addField("remark");
1808
1779
  return this;
1809
1780
  }
1810
- shortTitle() {
1811
- this.addField("shortTitle");
1781
+ children(options) {
1782
+ if (Array.isArray(options)) {
1783
+ this._associations["children"] = new PostCategoryQueryOptions(options);
1784
+ } else {
1785
+ this._associations["children"] = options || new PostCategoryQueryOptions(["id"]);
1786
+ }
1787
+ return this;
1788
+ }
1789
+ childrenAggregate(aggregate) {
1790
+ this._aggregates["childrenAggregate"] = aggregate;
1791
+ return this;
1792
+ }
1793
+ posts(options) {
1794
+ if (Array.isArray(options)) {
1795
+ this._associations["posts"] = new PostQueryOptions(options);
1796
+ } else {
1797
+ this._associations["posts"] = options || new PostQueryOptions(["id"]);
1798
+ }
1799
+ return this;
1800
+ }
1801
+ postsAggregate(aggregate) {
1802
+ this._aggregates["postsAggregate"] = aggregate;
1803
+ return this;
1804
+ }
1805
+ parent(options) {
1806
+ if (Array.isArray(options)) {
1807
+ this._associations["parent"] = new PostCategoryQueryOptions(options);
1808
+ } else {
1809
+ this._associations["parent"] = options || new PostCategoryQueryOptions(["id"]);
1810
+ }
1811
+ return this;
1812
+ }
1813
+ }
1814
+ class PostQueryOptions extends QueryOptions {
1815
+ constructor(fields, queryArgs) {
1816
+ super(PostEntityName, fields, queryArgs);
1817
+ }
1818
+ id() {
1819
+ this.addField("id");
1820
+ return this;
1821
+ }
1822
+ seqValue() {
1823
+ this.addField("seqValue");
1812
1824
  return this;
1813
1825
  }
1814
1826
  /**
1815
- * 第三方视频url
1827
+ * 置顶
1816
1828
  */
1817
- externalVideoUrl() {
1818
- this.addField("externalVideoUrl");
1829
+ pinToTop() {
1830
+ this.addField("pinToTop");
1831
+ return this;
1832
+ }
1833
+ authorEmail() {
1834
+ this.addField("authorEmail");
1819
1835
  return this;
1820
1836
  }
1821
1837
  publishedAt() {
@@ -1927,26 +1943,6 @@ class ProductQueryOptions extends QueryOptions {
1927
1943
  this.addField("lang");
1928
1944
  return this;
1929
1945
  }
1930
- category(options) {
1931
- if (Array.isArray(options)) {
1932
- this._associations["category"] = new ProductCategoryQueryOptions(options);
1933
- } else {
1934
- this._associations["category"] = options || new ProductCategoryQueryOptions(["id"]);
1935
- }
1936
- return this;
1937
- }
1938
- medias(options) {
1939
- if (Array.isArray(options)) {
1940
- this._associations["medias"] = new MediaQueryOptions(options);
1941
- } else {
1942
- this._associations["medias"] = options || new MediaQueryOptions(["id"]);
1943
- }
1944
- return this;
1945
- }
1946
- mediasAggregate(aggregate) {
1947
- this._aggregates["mediasAggregate"] = aggregate;
1948
- return this;
1949
- }
1950
1946
  tags(options) {
1951
1947
  if (Array.isArray(options)) {
1952
1948
  this._associations["tags"] = new TagQueryOptions(options);
@@ -1959,152 +1955,52 @@ class ProductQueryOptions extends QueryOptions {
1959
1955
  this._aggregates["tagsAggregate"] = aggregate;
1960
1956
  return this;
1961
1957
  }
1962
- ogImage(options) {
1963
- if (Array.isArray(options)) {
1964
- this._associations["ogImage"] = new MediaQueryOptions(options);
1965
- } else {
1966
- this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
1967
- }
1968
- return this;
1969
- }
1970
- attachments(options) {
1971
- if (Array.isArray(options)) {
1972
- this._associations["attachments"] = new MediaQueryOptions(options);
1973
- } else {
1974
- this._associations["attachments"] = options || new MediaQueryOptions(["id"]);
1975
- }
1976
- return this;
1977
- }
1978
- attachmentsAggregate(aggregate) {
1979
- this._aggregates["attachmentsAggregate"] = aggregate;
1980
- return this;
1981
- }
1982
- draftOf(options) {
1983
- if (Array.isArray(options)) {
1984
- this._associations["draftOf"] = new ProductQueryOptions(options);
1985
- } else {
1986
- this._associations["draftOf"] = options || new ProductQueryOptions(["id"]);
1987
- }
1988
- return this;
1989
- }
1990
- creator(options) {
1991
- if (Array.isArray(options)) {
1992
- this._associations["creator"] = new UserQueryOptions(options);
1993
- } else {
1994
- this._associations["creator"] = options || new UserQueryOptions(["id"]);
1995
- }
1996
- return this;
1997
- }
1998
- draft(options) {
1999
- if (Array.isArray(options)) {
2000
- this._associations["draft"] = new ProductQueryOptions(options);
2001
- } else {
2002
- this._associations["draft"] = options || new ProductQueryOptions(["id"]);
2003
- }
2004
- return this;
2005
- }
2006
- }
2007
- class MediaQueryOptions extends QueryOptions {
2008
- constructor(fields, queryArgs) {
2009
- super(MediaEntityName, fields, queryArgs);
2010
- }
2011
- id() {
2012
- this.addField("id");
2013
- return this;
2014
- }
2015
- name() {
2016
- this.addField("name");
2017
- return this;
2018
- }
2019
- size() {
2020
- this.addField("size");
2021
- return this;
2022
- }
2023
- mimeType() {
2024
- this.addField("mimeType");
2025
- return this;
2026
- }
2027
- extName() {
2028
- this.addField("extName");
2029
- return this;
2030
- }
2031
- file(fields) {
2032
- this.addObjectField("file", fields);
2033
- return this;
2034
- }
2035
- description() {
2036
- this.addField("description");
2037
- return this;
2038
- }
2039
- createdAt() {
2040
- this.addField("createdAt");
2041
- return this;
2042
- }
2043
- updatedAt() {
2044
- this.addField("updatedAt");
2045
- return this;
2046
- }
2047
- mediaType() {
2048
- this.addField("mediaType");
2049
- return this;
2050
- }
2051
- /**
2052
- * 网站Id
2053
- */
2054
- websiteId() {
2055
- this.addField("websiteId");
2056
- return this;
2057
- }
2058
- folder(options) {
1958
+ author(options) {
2059
1959
  if (Array.isArray(options)) {
2060
- this._associations["folder"] = new MediaFolderQueryOptions(options);
1960
+ this._associations["author"] = new UserQueryOptions(options);
2061
1961
  } else {
2062
- this._associations["folder"] = options || new MediaFolderQueryOptions(["id"]);
1962
+ this._associations["author"] = options || new UserQueryOptions(["id"]);
2063
1963
  }
2064
1964
  return this;
2065
1965
  }
2066
- avatarOfUser(options) {
1966
+ cover(options) {
2067
1967
  if (Array.isArray(options)) {
2068
- this._associations["avatarOfUser"] = new UserQueryOptions(options);
1968
+ this._associations["cover"] = new MediaQueryOptions(options);
2069
1969
  } else {
2070
- this._associations["avatarOfUser"] = options || new UserQueryOptions(["id"]);
1970
+ this._associations["cover"] = options || new MediaQueryOptions(["id"]);
2071
1971
  }
2072
1972
  return this;
2073
1973
  }
2074
- usedByProducts(options) {
1974
+ ogImage(options) {
2075
1975
  if (Array.isArray(options)) {
2076
- this._associations["usedByProducts"] = new ProductQueryOptions(options);
1976
+ this._associations["ogImage"] = new MediaQueryOptions(options);
2077
1977
  } else {
2078
- this._associations["usedByProducts"] = options || new ProductQueryOptions(["id"]);
1978
+ this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
2079
1979
  }
2080
1980
  return this;
2081
1981
  }
2082
- usedByProductsAggregate(aggregate) {
2083
- this._aggregates["usedByProductsAggregate"] = aggregate;
2084
- return this;
2085
- }
2086
- attachmentOf(options) {
1982
+ draftOf(options) {
2087
1983
  if (Array.isArray(options)) {
2088
- this._associations["attachmentOf"] = new ProductQueryOptions(options);
1984
+ this._associations["draftOf"] = new PostQueryOptions(options);
2089
1985
  } else {
2090
- this._associations["attachmentOf"] = options || new ProductQueryOptions(["id"]);
1986
+ this._associations["draftOf"] = options || new PostQueryOptions(["id"]);
2091
1987
  }
2092
1988
  return this;
2093
1989
  }
2094
- attachmentOfAggregate(aggregate) {
2095
- this._aggregates["attachmentOfAggregate"] = aggregate;
2096
- return this;
2097
- }
2098
- meidaOfProduct(options) {
1990
+ category(options) {
2099
1991
  if (Array.isArray(options)) {
2100
- this._associations["meidaOfProduct"] = new ProductCategoryQueryOptions(options);
1992
+ this._associations["category"] = new PostCategoryQueryOptions(options);
2101
1993
  } else {
2102
- this._associations["meidaOfProduct"] = options || new ProductCategoryQueryOptions(["id"]);
1994
+ this._associations["category"] = options || new PostCategoryQueryOptions(["id"]);
2103
1995
  }
2104
1996
  return this;
2105
1997
  }
2106
- meidaOfProductAggregate(aggregate) {
2107
- this._aggregates["meidaOfProductAggregate"] = aggregate;
1998
+ draft(options) {
1999
+ if (Array.isArray(options)) {
2000
+ this._associations["draft"] = new PostQueryOptions(options);
2001
+ } else {
2002
+ this._associations["draft"] = options || new PostQueryOptions(["id"]);
2003
+ }
2108
2004
  return this;
2109
2005
  }
2110
2006
  }
@@ -2401,6 +2297,116 @@ class ThemeQueryOptions extends QueryOptions {
2401
2297
  this._aggregates["themlateCategoriesAggregate"] = aggregate;
2402
2298
  return this;
2403
2299
  }
2300
+ selectedBy(options) {
2301
+ if (Array.isArray(options)) {
2302
+ this._associations["selectedBy"] = new WebsiteQueryOptions(options);
2303
+ } else {
2304
+ this._associations["selectedBy"] = options || new WebsiteQueryOptions(["id"]);
2305
+ }
2306
+ return this;
2307
+ }
2308
+ }
2309
+ class WebsiteQueryOptions extends QueryOptions {
2310
+ constructor(fields, queryArgs) {
2311
+ super(WebsiteEntityName, fields, queryArgs);
2312
+ }
2313
+ id() {
2314
+ this.addField("id");
2315
+ return this;
2316
+ }
2317
+ /**
2318
+ * 站点名称
2319
+ */
2320
+ name() {
2321
+ this.addField("name");
2322
+ return this;
2323
+ }
2324
+ /**
2325
+ * 站点备注
2326
+ */
2327
+ remark() {
2328
+ this.addField("remark");
2329
+ return this;
2330
+ }
2331
+ /**
2332
+ * 创建者ID
2333
+ */
2334
+ createdBy() {
2335
+ this.addField("createdBy");
2336
+ return this;
2337
+ }
2338
+ /**
2339
+ * 创建时间
2340
+ */
2341
+ createdAt() {
2342
+ this.addField("createdAt");
2343
+ return this;
2344
+ }
2345
+ /**
2346
+ * 最近打开时间
2347
+ */
2348
+ lastOpenTime() {
2349
+ this.addField("lastOpenTime");
2350
+ return this;
2351
+ }
2352
+ /**
2353
+ * 更新时间
2354
+ */
2355
+ updatedAt() {
2356
+ this.addField("updatedAt");
2357
+ return this;
2358
+ }
2359
+ /**
2360
+ * 更新者ID
2361
+ */
2362
+ updatedBy() {
2363
+ this.addField("updatedBy");
2364
+ return this;
2365
+ }
2366
+ websiteType(options) {
2367
+ if (Array.isArray(options)) {
2368
+ this._associations["websiteType"] = new WebsiteTypeQueryOptions(options);
2369
+ } else {
2370
+ this._associations["websiteType"] = options || new WebsiteTypeQueryOptions(["id"]);
2371
+ }
2372
+ return this;
2373
+ }
2374
+ selectedTheme(options) {
2375
+ if (Array.isArray(options)) {
2376
+ this._associations["selectedTheme"] = new ThemeQueryOptions(options);
2377
+ } else {
2378
+ this._associations["selectedTheme"] = options || new ThemeQueryOptions(["id"]);
2379
+ }
2380
+ return this;
2381
+ }
2382
+ homePage(options) {
2383
+ if (Array.isArray(options)) {
2384
+ this._associations["homePage"] = new PageQueryOptions(options);
2385
+ } else {
2386
+ this._associations["homePage"] = options || new PageQueryOptions(["id"]);
2387
+ }
2388
+ return this;
2389
+ }
2390
+ owner(options) {
2391
+ if (Array.isArray(options)) {
2392
+ this._associations["owner"] = new UserQueryOptions(options);
2393
+ } else {
2394
+ this._associations["owner"] = options || new UserQueryOptions(["id"]);
2395
+ }
2396
+ return this;
2397
+ }
2398
+ users(options) {
2399
+ if (Array.isArray(options)) {
2400
+ this._associations["users"] = new UserQueryOptions(options);
2401
+ } else {
2402
+ this._associations["users"] = options || new UserQueryOptions(["id"]);
2403
+ }
2404
+ return this;
2405
+ }
2406
+ usersAggregate(aggregate) {
2407
+ this._aggregates["usersAggregate"] = aggregate;
2408
+ return this;
2409
+ }
2404
2410
  }
2405
2411
  class PageQueryOptions extends QueryOptions {
2406
2412
  constructor(fields, queryArgs) {
@@ -2523,106 +2529,164 @@ class PageQueryOptions extends QueryOptions {
2523
2529
  }
2524
2530
  return this;
2525
2531
  }
2532
+ homeOf(options) {
2533
+ if (Array.isArray(options)) {
2534
+ this._associations["homeOf"] = new WebsiteQueryOptions(options);
2535
+ } else {
2536
+ this._associations["homeOf"] = options || new WebsiteQueryOptions(["id"]);
2537
+ }
2538
+ return this;
2539
+ }
2526
2540
  }
2527
- class WebsiteQueryOptions extends QueryOptions {
2541
+ class MediaQueryOptions extends QueryOptions {
2528
2542
  constructor(fields, queryArgs) {
2529
- super(WebsiteEntityName, fields, queryArgs);
2543
+ super(MediaEntityName, fields, queryArgs);
2530
2544
  }
2531
2545
  id() {
2532
2546
  this.addField("id");
2533
2547
  return this;
2534
2548
  }
2535
- /**
2536
- * 站点名称
2537
- */
2538
2549
  name() {
2539
2550
  this.addField("name");
2540
2551
  return this;
2541
2552
  }
2542
- /**
2543
- * 站点备注
2544
- */
2545
- remark() {
2546
- this.addField("remark");
2553
+ size() {
2554
+ this.addField("size");
2547
2555
  return this;
2548
2556
  }
2549
- /**
2550
- * 创建者ID
2551
- */
2552
- createdBy() {
2553
- this.addField("createdBy");
2557
+ mimeType() {
2558
+ this.addField("mimeType");
2554
2559
  return this;
2555
2560
  }
2556
- /**
2557
- * 创建时间
2558
- */
2559
- createdAt() {
2560
- this.addField("createdAt");
2561
+ extName() {
2562
+ this.addField("extName");
2561
2563
  return this;
2562
2564
  }
2563
- /**
2564
- * 最近打开时间
2565
- */
2566
- lastOpenTime() {
2567
- this.addField("lastOpenTime");
2565
+ file(fields) {
2566
+ this.addObjectField("file", fields);
2567
+ return this;
2568
+ }
2569
+ description() {
2570
+ this.addField("description");
2571
+ return this;
2572
+ }
2573
+ createdAt() {
2574
+ this.addField("createdAt");
2568
2575
  return this;
2569
2576
  }
2570
- /**
2571
- * 更新时间
2572
- */
2573
2577
  updatedAt() {
2574
2578
  this.addField("updatedAt");
2575
2579
  return this;
2576
2580
  }
2581
+ mediaType() {
2582
+ this.addField("mediaType");
2583
+ return this;
2584
+ }
2577
2585
  /**
2578
- * 更新者ID
2586
+ * 网站Id
2579
2587
  */
2580
- updatedBy() {
2581
- this.addField("updatedBy");
2588
+ websiteId() {
2589
+ this.addField("websiteId");
2582
2590
  return this;
2583
2591
  }
2584
- websiteType(options) {
2592
+ folder(options) {
2585
2593
  if (Array.isArray(options)) {
2586
- this._associations["websiteType"] = new WebsiteTypeQueryOptions(options);
2594
+ this._associations["folder"] = new MediaFolderQueryOptions(options);
2587
2595
  } else {
2588
- this._associations["websiteType"] = options || new WebsiteTypeQueryOptions(["id"]);
2596
+ this._associations["folder"] = options || new MediaFolderQueryOptions(["id"]);
2589
2597
  }
2590
2598
  return this;
2591
2599
  }
2592
- selectedTheme(options) {
2600
+ coverOf(options) {
2593
2601
  if (Array.isArray(options)) {
2594
- this._associations["selectedTheme"] = new ThemeQueryOptions(options);
2602
+ this._associations["coverOf"] = new PostQueryOptions(options);
2595
2603
  } else {
2596
- this._associations["selectedTheme"] = options || new ThemeQueryOptions(["id"]);
2604
+ this._associations["coverOf"] = options || new PostQueryOptions(["id"]);
2597
2605
  }
2598
2606
  return this;
2599
2607
  }
2600
- homePage(options) {
2608
+ coverOfAggregate(aggregate) {
2609
+ this._aggregates["coverOfAggregate"] = aggregate;
2610
+ return this;
2611
+ }
2612
+ avatarOfUser(options) {
2601
2613
  if (Array.isArray(options)) {
2602
- this._associations["homePage"] = new PageQueryOptions(options);
2614
+ this._associations["avatarOfUser"] = new UserQueryOptions(options);
2603
2615
  } else {
2604
- this._associations["homePage"] = options || new PageQueryOptions(["id"]);
2616
+ this._associations["avatarOfUser"] = options || new UserQueryOptions(["id"]);
2605
2617
  }
2606
2618
  return this;
2607
2619
  }
2608
- owner(options) {
2620
+ usedByProducts(options) {
2609
2621
  if (Array.isArray(options)) {
2610
- this._associations["owner"] = new UserQueryOptions(options);
2622
+ this._associations["usedByProducts"] = new ProductQueryOptions(options);
2611
2623
  } else {
2612
- this._associations["owner"] = options || new UserQueryOptions(["id"]);
2624
+ this._associations["usedByProducts"] = options || new ProductQueryOptions(["id"]);
2613
2625
  }
2614
2626
  return this;
2615
2627
  }
2616
- users(options) {
2628
+ usedByProductsAggregate(aggregate) {
2629
+ this._aggregates["usedByProductsAggregate"] = aggregate;
2630
+ return this;
2631
+ }
2632
+ ogMetaOfPage(options) {
2617
2633
  if (Array.isArray(options)) {
2618
- this._associations["users"] = new UserQueryOptions(options);
2634
+ this._associations["ogMetaOfPage"] = new PageQueryOptions(options);
2619
2635
  } else {
2620
- this._associations["users"] = options || new UserQueryOptions(["id"]);
2636
+ this._associations["ogMetaOfPage"] = options || new PageQueryOptions(["id"]);
2621
2637
  }
2622
2638
  return this;
2623
2639
  }
2624
- usersAggregate(aggregate) {
2625
- this._aggregates["usersAggregate"] = aggregate;
2640
+ ogMetaOfPageAggregate(aggregate) {
2641
+ this._aggregates["ogMetaOfPageAggregate"] = aggregate;
2642
+ return this;
2643
+ }
2644
+ ogMetaOfProduct(options) {
2645
+ if (Array.isArray(options)) {
2646
+ this._associations["ogMetaOfProduct"] = new ProductQueryOptions(options);
2647
+ } else {
2648
+ this._associations["ogMetaOfProduct"] = options || new ProductQueryOptions(["id"]);
2649
+ }
2650
+ return this;
2651
+ }
2652
+ ogMetaOfProductAggregate(aggregate) {
2653
+ this._aggregates["ogMetaOfProductAggregate"] = aggregate;
2654
+ return this;
2655
+ }
2656
+ ogMetaOfPost(options) {
2657
+ if (Array.isArray(options)) {
2658
+ this._associations["ogMetaOfPost"] = new PostQueryOptions(options);
2659
+ } else {
2660
+ this._associations["ogMetaOfPost"] = options || new PostQueryOptions(["id"]);
2661
+ }
2662
+ return this;
2663
+ }
2664
+ ogMetaOfPostAggregate(aggregate) {
2665
+ this._aggregates["ogMetaOfPostAggregate"] = aggregate;
2666
+ return this;
2667
+ }
2668
+ attachmentOf(options) {
2669
+ if (Array.isArray(options)) {
2670
+ this._associations["attachmentOf"] = new ProductQueryOptions(options);
2671
+ } else {
2672
+ this._associations["attachmentOf"] = options || new ProductQueryOptions(["id"]);
2673
+ }
2674
+ return this;
2675
+ }
2676
+ attachmentOfAggregate(aggregate) {
2677
+ this._aggregates["attachmentOfAggregate"] = aggregate;
2678
+ return this;
2679
+ }
2680
+ meidaOfProduct(options) {
2681
+ if (Array.isArray(options)) {
2682
+ this._associations["meidaOfProduct"] = new ProductCategoryQueryOptions(options);
2683
+ } else {
2684
+ this._associations["meidaOfProduct"] = options || new ProductCategoryQueryOptions(["id"]);
2685
+ }
2686
+ return this;
2687
+ }
2688
+ meidaOfProductAggregate(aggregate) {
2689
+ this._aggregates["meidaOfProductAggregate"] = aggregate;
2626
2690
  return this;
2627
2691
  }
2628
2692
  }
@@ -3111,15 +3175,6 @@ class EnquiryQueryOptions extends QueryOptions {
3111
3175
  return this;
3112
3176
  }
3113
3177
  }
3114
- class WebsiteMetaQueryOptions extends QueryOptions {
3115
- constructor(fields, queryArgs) {
3116
- super(WebsiteMetaEntityName, fields, queryArgs);
3117
- }
3118
- id() {
3119
- this.addField("id");
3120
- return this;
3121
- }
3122
- }
3123
3178
  class WebsiteSettingsQueryOptions extends QueryOptions {
3124
3179
  constructor(fields, queryArgs) {
3125
3180
  super(WebsiteSettingsEntityName, fields, queryArgs);
@@ -3365,11 +3420,6 @@ const enquiryEntry = {
3365
3420
  entityLabel: EnquiryEntityLabel,
3366
3421
  toInput: enquiryToInput
3367
3422
  };
3368
- const websiteMetaEntry = {
3369
- entityName: WebsiteMetaEntityName,
3370
- entityLabel: WebsiteMetaEntityLabel,
3371
- toInput: websiteMetaToInput
3372
- };
3373
3423
  const websiteSettingsEntry = {
3374
3424
  entityName: WebsiteSettingsEntityName,
3375
3425
  entityLabel: WebsiteSettingsEntityLabel,
@@ -3498,9 +3548,17 @@ var MediaFields = /* @__PURE__ */ ((MediaFields2) => {
3498
3548
  })(MediaFields || {});
3499
3549
  var MediaAssciations = /* @__PURE__ */ ((MediaAssciations2) => {
3500
3550
  MediaAssciations2["folder"] = "folder";
3551
+ MediaAssciations2["coverOf"] = "coverOf";
3552
+ MediaAssciations2["coverOfAggregate"] = "coverOfAggregate";
3501
3553
  MediaAssciations2["avatarOfUser"] = "avatarOfUser";
3502
3554
  MediaAssciations2["usedByProducts"] = "usedByProducts";
3503
3555
  MediaAssciations2["usedByProductsAggregate"] = "usedByProductsAggregate";
3556
+ MediaAssciations2["ogMetaOfPage"] = "ogMetaOfPage";
3557
+ MediaAssciations2["ogMetaOfPageAggregate"] = "ogMetaOfPageAggregate";
3558
+ MediaAssciations2["ogMetaOfProduct"] = "ogMetaOfProduct";
3559
+ MediaAssciations2["ogMetaOfProductAggregate"] = "ogMetaOfProductAggregate";
3560
+ MediaAssciations2["ogMetaOfPost"] = "ogMetaOfPost";
3561
+ MediaAssciations2["ogMetaOfPostAggregate"] = "ogMetaOfPostAggregate";
3504
3562
  MediaAssciations2["attachmentOf"] = "attachmentOf";
3505
3563
  MediaAssciations2["attachmentOfAggregate"] = "attachmentOfAggregate";
3506
3564
  MediaAssciations2["meidaOfProduct"] = "meidaOfProduct";
@@ -3591,6 +3649,7 @@ var PageFields = /* @__PURE__ */ ((PageFields2) => {
3591
3649
  })(PageFields || {});
3592
3650
  var PageAssciations = /* @__PURE__ */ ((PageAssciations2) => {
3593
3651
  PageAssciations2["ogImage"] = "ogImage";
3652
+ PageAssciations2["homeOf"] = "homeOf";
3594
3653
  return PageAssciations2;
3595
3654
  })(PageAssciations || {});
3596
3655
  var PostFields = /* @__PURE__ */ ((PostFields2) => {
@@ -3713,12 +3772,6 @@ var EnquiryAssciations = /* @__PURE__ */ ((EnquiryAssciations2) => {
3713
3772
  EnquiryAssciations2["customer"] = "customer";
3714
3773
  return EnquiryAssciations2;
3715
3774
  })(EnquiryAssciations || {});
3716
- var WebsiteMetaFields = /* @__PURE__ */ ((WebsiteMetaFields2) => {
3717
- WebsiteMetaFields2["id"] = "id";
3718
- return WebsiteMetaFields2;
3719
- })(WebsiteMetaFields || {});
3720
- var WebsiteMetaAssciations = /* @__PURE__ */ ((WebsiteMetaAssciations2) => {
3721
- })();
3722
3775
  var WebsiteSettingsFields = /* @__PURE__ */ ((WebsiteSettingsFields2) => {
3723
3776
  WebsiteSettingsFields2["id"] = "id";
3724
3777
  WebsiteSettingsFields2["smtpConfig"] = "smtpConfig";
@@ -3805,6 +3858,7 @@ var ThemeAssciations = /* @__PURE__ */ ((ThemeAssciations2) => {
3805
3858
  ThemeAssciations2["templatesAggregate"] = "templatesAggregate";
3806
3859
  ThemeAssciations2["themlateCategories"] = "themlateCategories";
3807
3860
  ThemeAssciations2["themlateCategoriesAggregate"] = "themlateCategoriesAggregate";
3861
+ ThemeAssciations2["selectedBy"] = "selectedBy";
3808
3862
  return ThemeAssciations2;
3809
3863
  })(ThemeAssciations || {});
3810
3864
  var MediaFolderFields = /* @__PURE__ */ ((MediaFolderFields2) => {
@@ -4059,12 +4113,6 @@ export {
4059
4113
  WebsiteEntityLabel,
4060
4114
  WebsiteEntityName,
4061
4115
  WebsiteFields,
4062
- WebsiteMetaAssciations,
4063
- WebsiteMetaDistinctEnum,
4064
- WebsiteMetaEntityLabel,
4065
- WebsiteMetaEntityName,
4066
- WebsiteMetaFields,
4067
- WebsiteMetaQueryOptions,
4068
4116
  WebsitePartDistinctEnum,
4069
4117
  WebsiteQueryOptions,
4070
4118
  WebsiteSettingsAssciations,
@@ -4138,9 +4186,6 @@ export {
4138
4186
  userToInput,
4139
4187
  userToInputCascade,
4140
4188
  websiteEntry,
4141
- websiteMetaEntry,
4142
- websiteMetaToInput,
4143
- websiteMetaToInputCascade,
4144
4189
  websiteSettingsEntry,
4145
4190
  websiteSettingsToInput,
4146
4191
  websiteSettingsToInputCascade,