@rxdrag/rxcms-models 0.3.46 → 0.3.48

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 (90) hide show
  1. package/dist/classes/ComponentCategoryQueryOptions.d.ts +1 -0
  2. package/dist/classes/FrontComponentQueryOptions.d.ts +1 -0
  3. package/dist/classes/PostQueryOptions.d.ts +0 -2
  4. package/dist/classes/ProductQueryOptions.d.ts +1 -9
  5. package/dist/classes/RoleQueryOptions.d.ts +1 -0
  6. package/dist/classes/SectionTemplateQueryOptions.d.ts +19 -0
  7. package/dist/classes/StyleConfigQueryOptions.d.ts +18 -0
  8. package/dist/classes/TemplateCategoryQueryOptions.d.ts +20 -0
  9. package/dist/classes/ThemeCategoryQueryOptions.d.ts +17 -0
  10. package/dist/classes/ThemeQueryOptions.d.ts +20 -5
  11. package/dist/classes/index.d.ts +4 -1
  12. package/dist/entries/index.d.ts +4 -1
  13. package/dist/entries/sectionTemplateEntry.d.ts +2 -0
  14. package/dist/entries/styleConfigEntry.d.ts +2 -0
  15. package/dist/entries/templateCategoryEntry.d.ts +2 -0
  16. package/dist/entries/themeCategoryEntry.d.ts +2 -0
  17. package/dist/fields/ComponentCategoryFields.d.ts +2 -1
  18. package/dist/fields/FrontComponentFields.d.ts +2 -1
  19. package/dist/fields/PostFields.d.ts +0 -2
  20. package/dist/fields/ProductFields.d.ts +2 -7
  21. package/dist/fields/RoleFields.d.ts +1 -0
  22. package/dist/fields/SectionTemplateFields.d.ts +13 -0
  23. package/dist/fields/StyleConfigFields.d.ts +14 -0
  24. package/dist/fields/TemplateCategoryFields.d.ts +13 -0
  25. package/dist/fields/ThemeCategoryFields.d.ts +12 -0
  26. package/dist/fields/ThemeFields.d.ts +12 -7
  27. package/dist/fields/index.d.ts +4 -1
  28. package/dist/index.mjs +526 -205
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/interfaces/AbilityType.d.ts +5 -1
  31. package/dist/interfaces/ComponentCategory.d.ts +1 -0
  32. package/dist/interfaces/ComponentCategoryBoolExp.d.ts +2 -0
  33. package/dist/interfaces/ComponentCategoryDistinctExp.d.ts +2 -1
  34. package/dist/interfaces/ComponentCategoryInput.d.ts +1 -0
  35. package/dist/interfaces/ComponentCategoryOrderBy.d.ts +1 -0
  36. package/dist/interfaces/ExtendField.d.ts +1 -2
  37. package/dist/interfaces/FrontComponent.d.ts +1 -0
  38. package/dist/interfaces/FrontComponentBoolExp.d.ts +1 -0
  39. package/dist/interfaces/FrontComponentDistinctExp.d.ts +2 -1
  40. package/dist/interfaces/FrontComponentInput.d.ts +1 -0
  41. package/dist/interfaces/FrontComponentOrderBy.d.ts +1 -0
  42. package/dist/interfaces/Post.d.ts +0 -2
  43. package/dist/interfaces/PostBoolExp.d.ts +0 -2
  44. package/dist/interfaces/PostInput.d.ts +0 -2
  45. package/dist/interfaces/Product.d.ts +1 -7
  46. package/dist/interfaces/ProductBoolExp.d.ts +1 -5
  47. package/dist/interfaces/ProductDistinctExp.d.ts +1 -0
  48. package/dist/interfaces/ProductInput.d.ts +1 -5
  49. package/dist/interfaces/ProductOrderBy.d.ts +1 -0
  50. package/dist/interfaces/Role.d.ts +1 -0
  51. package/dist/interfaces/RoleBoolExp.d.ts +1 -0
  52. package/dist/interfaces/RoleDistinctExp.d.ts +1 -0
  53. package/dist/interfaces/RoleInput.d.ts +1 -0
  54. package/dist/interfaces/RoleOrderBy.d.ts +1 -0
  55. package/dist/interfaces/SectionTemplate.d.ts +15 -0
  56. package/dist/interfaces/SectionTemplateBoolExp.d.ts +20 -0
  57. package/dist/interfaces/SectionTemplateDistinctExp.d.ts +10 -0
  58. package/dist/interfaces/SectionTemplateInput.d.ts +17 -0
  59. package/dist/interfaces/SectionTemplateOrderBy.d.ts +10 -0
  60. package/dist/interfaces/StyleConfig.d.ts +15 -0
  61. package/dist/interfaces/StyleConfigBoolExp.d.ts +20 -0
  62. package/dist/interfaces/StyleConfigDistinctExp.d.ts +12 -0
  63. package/dist/interfaces/StyleConfigInput.d.ts +17 -0
  64. package/dist/interfaces/StyleConfigOrderBy.d.ts +12 -0
  65. package/dist/interfaces/TemplateCategory.d.ts +16 -0
  66. package/dist/interfaces/TemplateCategoryBoolExp.d.ts +19 -0
  67. package/dist/interfaces/TemplateCategoryDistinctExp.d.ts +9 -0
  68. package/dist/interfaces/TemplateCategoryInput.d.ts +17 -0
  69. package/dist/interfaces/TemplateCategoryOrderBy.d.ts +9 -0
  70. package/dist/interfaces/Theme.d.ts +14 -5
  71. package/dist/interfaces/ThemeBoolExp.d.ts +12 -4
  72. package/dist/interfaces/ThemeCategory.d.ts +14 -0
  73. package/dist/interfaces/ThemeCategoryBoolExp.d.ts +17 -0
  74. package/dist/interfaces/ThemeCategoryDistinctExp.d.ts +9 -0
  75. package/dist/interfaces/ThemeCategoryInput.d.ts +14 -0
  76. package/dist/interfaces/ThemeCategoryOrderBy.d.ts +9 -0
  77. package/dist/interfaces/ThemeDistinctExp.d.ts +5 -6
  78. package/dist/interfaces/ThemeInput.d.ts +12 -5
  79. package/dist/interfaces/ThemeOrderBy.d.ts +4 -5
  80. package/dist/interfaces/index.d.ts +20 -6
  81. package/package.json +4 -4
  82. package/dist/classes/ProductRelatedPivotQueryOptions.d.ts +0 -12
  83. package/dist/entries/productRelatedPivotEntry.d.ts +0 -2
  84. package/dist/fields/ProductRelatedPivotFields.d.ts +0 -8
  85. package/dist/interfaces/ComponentType.d.ts +0 -58
  86. package/dist/interfaces/ProductRelatedPivot.d.ts +0 -9
  87. package/dist/interfaces/ProductRelatedPivotBoolExp.d.ts +0 -12
  88. package/dist/interfaces/ProductRelatedPivotDistinctExp.d.ts +0 -5
  89. package/dist/interfaces/ProductRelatedPivotInput.d.ts +0 -11
  90. package/dist/interfaces/ProductRelatedPivotOrderBy.d.ts +0 -5
package/dist/index.mjs CHANGED
@@ -66,14 +66,14 @@ const aggregateEntities = {
66
66
  Product: {
67
67
  tagsAggregate: "Tag",
68
68
  mediaPivotsAggregate: "MediaOnProduct",
69
- attachmentPivotsAggregate: "AttachmentOnProduct",
70
- relatedPivotAggregate: "ProductRelatedPivot",
71
- relatedByPivotAggregate: "ProductRelatedPivot"
69
+ attachmentPivotsAggregate: "AttachmentOnProduct"
72
70
  },
73
71
  Theme: {
74
72
  componentsAggregate: "FrontComponent",
75
73
  componentCategoriesAggregate: "ComponentCategory",
76
- pagesAggregate: "Page"
74
+ pagesAggregate: "Page",
75
+ templatesAggregate: "SectionTemplate",
76
+ templateCategoriesAggregate: "TemplateCategory"
77
77
  },
78
78
  MediaFolder: {
79
79
  childrenAggregate: "MediaFolder",
@@ -99,6 +99,12 @@ const aggregateEntities = {
99
99
  },
100
100
  ThemeInMarket: {
101
101
  versionsAggregate: "ThemeVersion"
102
+ },
103
+ ThemeCategory: {
104
+ themesAggregate: "Theme"
105
+ },
106
+ TemplateCategory: {
107
+ templatesAggregate: "SectionTemplate"
102
108
  }
103
109
  };
104
110
  class QueryOptions {
@@ -395,6 +401,49 @@ const themeConfigToInput = (entity) => {
395
401
  theme: convertHasOneToInput(entity.theme)
396
402
  };
397
403
  };
404
+ const templateCategoryToInputCascade = (entity) => {
405
+ var _a;
406
+ const { templatesAggregate, ...rest } = entity;
407
+ return {
408
+ ...rest,
409
+ templates: entity.templates ? processHasManyClear({ sync: (_a = entity.templates) == null ? void 0 : _a.map((ent) => sectionTemplateToInput(ent)) }) : void 0,
410
+ theme: entity.theme ? processHasOneClear({ sync: themeToInput(entity.theme) }) : void 0
411
+ };
412
+ };
413
+ const templateCategoryToInput = (entity) => {
414
+ const { templatesAggregate, ...rest } = entity;
415
+ return {
416
+ ...rest,
417
+ templates: convertHasManyToInput(entity.templates),
418
+ theme: convertHasOneToInput(entity.theme)
419
+ };
420
+ };
421
+ const sectionTemplateToInputCascade = (entity) => {
422
+ return {
423
+ ...entity,
424
+ category: entity.category ? processHasOneClear({ sync: templateCategoryToInput(entity.category) }) : void 0,
425
+ theme: entity.theme ? processHasOneClear({ sync: themeToInput(entity.theme) }) : void 0
426
+ };
427
+ };
428
+ const sectionTemplateToInput = (entity) => {
429
+ return {
430
+ ...entity,
431
+ category: convertHasOneToInput(entity.category),
432
+ theme: convertHasOneToInput(entity.theme)
433
+ };
434
+ };
435
+ const styleConfigToInputCascade = (entity) => {
436
+ return {
437
+ ...entity,
438
+ theme: entity.theme ? processHasOneClear({ sync: themeToInput(entity.theme) }) : void 0
439
+ };
440
+ };
441
+ const styleConfigToInput = (entity) => {
442
+ return {
443
+ ...entity,
444
+ theme: convertHasOneToInput(entity.theme)
445
+ };
446
+ };
398
447
  const themeInMarketToInputCascade = (entity) => {
399
448
  var _a;
400
449
  const { versionsAggregate, ...rest } = entity;
@@ -424,9 +473,24 @@ const themeVersionToInput = (entity) => {
424
473
  themeInMarket: convertHasOneToInput(entity.themeInMarket)
425
474
  };
426
475
  };
476
+ const themeCategoryToInputCascade = (entity) => {
477
+ var _a;
478
+ const { themesAggregate, ...rest } = entity;
479
+ return {
480
+ ...rest,
481
+ themes: entity.themes ? processHasManyClear({ sync: (_a = entity.themes) == null ? void 0 : _a.map((ent) => themeToInput(ent)) }) : void 0
482
+ };
483
+ };
484
+ const themeCategoryToInput = (entity) => {
485
+ const { themesAggregate, ...rest } = entity;
486
+ return {
487
+ ...rest,
488
+ themes: convertHasManyToInput(entity.themes)
489
+ };
490
+ };
427
491
  const themeToInputCascade = (entity) => {
428
- var _a, _b, _c;
429
- const { componentsAggregate, componentCategoriesAggregate, pagesAggregate, ...rest } = entity;
492
+ var _a, _b, _c, _d, _e;
493
+ const { componentsAggregate, componentCategoriesAggregate, pagesAggregate, templatesAggregate, templateCategoriesAggregate, ...rest } = entity;
430
494
  return {
431
495
  ...rest,
432
496
  cover: entity.cover ? processHasOneClear({ sync: mediaToInput(entity.cover) }) : void 0,
@@ -435,12 +499,16 @@ const themeToInputCascade = (entity) => {
435
499
  pages: entity.pages ? processHasManyClear({ sync: (_c = entity.pages) == null ? void 0 : _c.map((ent) => pageToInput(ent)) }) : void 0,
436
500
  lang: entity.lang ? processHasOneClear({ sync: langToInput(entity.lang) }) : void 0,
437
501
  config: entity.config ? processHasOneClear({ sync: themeConfigToInput(entity.config) }) : void 0,
502
+ templates: entity.templates ? processHasManyClear({ sync: (_d = entity.templates) == null ? void 0 : _d.map((ent) => sectionTemplateToInput(ent)) }) : void 0,
503
+ templateCategories: entity.templateCategories ? processHasManyClear({ sync: (_e = entity.templateCategories) == null ? void 0 : _e.map((ent) => templateCategoryToInput(ent)) }) : void 0,
504
+ styleConfig: entity.styleConfig ? processHasOneClear({ sync: styleConfigToInput(entity.styleConfig) }) : void 0,
438
505
  marketVersion: entity.marketVersion ? processHasOneClear({ sync: themeVersionToInput(entity.marketVersion) }) : void 0,
439
- website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0
506
+ website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0,
507
+ category: entity.category ? processHasOneClear({ sync: themeCategoryToInput(entity.category) }) : void 0
440
508
  };
441
509
  };
442
510
  const themeToInput = (entity) => {
443
- const { componentsAggregate, componentCategoriesAggregate, pagesAggregate, ...rest } = entity;
511
+ const { componentsAggregate, componentCategoriesAggregate, pagesAggregate, templatesAggregate, templateCategoriesAggregate, ...rest } = entity;
444
512
  return {
445
513
  ...rest,
446
514
  cover: convertHasOneToInput(entity.cover),
@@ -449,8 +517,12 @@ const themeToInput = (entity) => {
449
517
  pages: convertHasManyToInput(entity.pages),
450
518
  lang: convertHasOneToInput(entity.lang),
451
519
  config: convertHasOneToInput(entity.config),
520
+ templates: convertHasManyToInput(entity.templates),
521
+ templateCategories: convertHasManyToInput(entity.templateCategories),
522
+ styleConfig: convertHasOneToInput(entity.styleConfig),
452
523
  marketVersion: convertHasOneToInput(entity.marketVersion),
453
- website: convertHasOneToInput(entity.website)
524
+ website: convertHasOneToInput(entity.website),
525
+ category: convertHasOneToInput(entity.category)
454
526
  };
455
527
  };
456
528
  const pageToInputCascade = (entity) => {
@@ -518,11 +590,9 @@ const postToInputCascade = (entity) => {
518
590
  tags: entity.tags ? processHasManyClear({ sync: (_a = entity.tags) == null ? void 0 : _a.map((ent) => tagToInput(ent)) }) : void 0,
519
591
  author: entity.author ? processHasOneClear({ sync: userToInput(entity.author) }) : void 0,
520
592
  cover: entity.cover ? processHasOneClear({ sync: mediaToInput(entity.cover) }) : void 0,
521
- draftOf: entity.draftOf ? processHasOneClear({ sync: postToInput(entity.draftOf) }) : void 0,
522
593
  lang: entity.lang ? processHasOneClear({ sync: langToInput(entity.lang) }) : void 0,
523
594
  meta: entity.meta ? processHasOneClear({ sync: pageMetaToInput(entity.meta) }) : void 0,
524
595
  category: entity.category ? processHasOneClear({ sync: postCategoryToInput(entity.category) }) : void 0,
525
- draft: entity.draft ? processHasOneClear({ sync: postToInput(entity.draft) }) : void 0,
526
596
  website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0
527
597
  };
528
598
  };
@@ -533,11 +603,9 @@ const postToInput = (entity) => {
533
603
  tags: convertHasManyToInput(entity.tags),
534
604
  author: convertHasOneToInput(entity.author),
535
605
  cover: convertHasOneToInput(entity.cover),
536
- draftOf: convertHasOneToInput(entity.draftOf),
537
606
  lang: convertHasOneToInput(entity.lang),
538
607
  meta: convertHasOneToInput(entity.meta),
539
608
  category: convertHasOneToInput(entity.category),
540
- draft: convertHasOneToInput(entity.draft),
541
609
  website: convertHasOneToInput(entity.website)
542
610
  };
543
611
  };
@@ -590,55 +658,33 @@ const attachmentOnProductToInput = (entity) => {
590
658
  product: convertHasOneToInput(entity.product)
591
659
  };
592
660
  };
593
- const productRelatedPivotToInputCascade = (entity) => {
594
- return {
595
- ...entity,
596
- target: entity.target ? processHasOneClear({ sync: productToInput(entity.target) }) : void 0,
597
- source: entity.source ? processHasOneClear({ sync: productToInput(entity.source) }) : void 0
598
- };
599
- };
600
- const productRelatedPivotToInput = (entity) => {
601
- return {
602
- ...entity,
603
- target: convertHasOneToInput(entity.target),
604
- source: convertHasOneToInput(entity.source)
605
- };
606
- };
607
661
  const productToInputCascade = (entity) => {
608
- var _a, _b, _c, _d, _e;
609
- const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, relatedPivotAggregate, relatedByPivotAggregate, ...rest } = entity;
662
+ var _a, _b, _c;
663
+ const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, ...rest } = entity;
610
664
  return {
611
665
  ...rest,
612
666
  category: entity.category ? processHasOneClear({ sync: productCategoryToInput(entity.category) }) : void 0,
613
667
  tags: entity.tags ? processHasManyClear({ sync: (_a = entity.tags) == null ? void 0 : _a.map((ent) => tagToInput(ent)) }) : void 0,
614
- draftOf: entity.draftOf ? processHasOneClear({ sync: productToInput(entity.draftOf) }) : void 0,
615
668
  mediaPivots: entity.mediaPivots ? processHasManyClear({ sync: (_b = entity.mediaPivots) == null ? void 0 : _b.map((ent) => mediaOnProductToInput(ent)) }) : void 0,
616
669
  attachmentPivots: entity.attachmentPivots ? processHasManyClear({ sync: (_c = entity.attachmentPivots) == null ? void 0 : _c.map((ent) => attachmentOnProductToInput(ent)) }) : void 0,
617
670
  lang: entity.lang ? processHasOneClear({ sync: langToInput(entity.lang) }) : void 0,
618
- relatedPivot: entity.relatedPivot ? processHasManyClear({ sync: (_d = entity.relatedPivot) == null ? void 0 : _d.map((ent) => productRelatedPivotToInput(ent)) }) : void 0,
619
671
  meta: entity.meta ? processHasOneClear({ sync: pageMetaToInput(entity.meta) }) : void 0,
620
672
  creator: entity.creator ? processHasOneClear({ sync: userToInput(entity.creator) }) : void 0,
621
- draft: entity.draft ? processHasOneClear({ sync: productToInput(entity.draft) }) : void 0,
622
- website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0,
623
- relatedByPivot: entity.relatedByPivot ? processHasManyClear({ sync: (_e = entity.relatedByPivot) == null ? void 0 : _e.map((ent) => productRelatedPivotToInput(ent)) }) : void 0
673
+ website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0
624
674
  };
625
675
  };
626
676
  const productToInput = (entity) => {
627
- const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, relatedPivotAggregate, relatedByPivotAggregate, ...rest } = entity;
677
+ const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, ...rest } = entity;
628
678
  return {
629
679
  ...rest,
630
680
  category: convertHasOneToInput(entity.category),
631
681
  tags: convertHasManyToInput(entity.tags),
632
- draftOf: convertHasOneToInput(entity.draftOf),
633
682
  mediaPivots: convertHasManyToInput(entity.mediaPivots),
634
683
  attachmentPivots: convertHasManyToInput(entity.attachmentPivots),
635
684
  lang: convertHasOneToInput(entity.lang),
636
- relatedPivot: convertHasManyToInput(entity.relatedPivot),
637
685
  meta: convertHasOneToInput(entity.meta),
638
686
  creator: convertHasOneToInput(entity.creator),
639
- draft: convertHasOneToInput(entity.draft),
640
- website: convertHasOneToInput(entity.website),
641
- relatedByPivot: convertHasManyToInput(entity.relatedByPivot)
687
+ website: convertHasOneToInput(entity.website)
642
688
  };
643
689
  };
644
690
  const spamFilterRuleToInputCascade = (entity) => {
@@ -885,6 +931,7 @@ const RoleEntityLabel = "";
885
931
  var RoleDistinctEnum = /* @__PURE__ */ ((RoleDistinctEnum2) => {
886
932
  RoleDistinctEnum2["id"] = "id";
887
933
  RoleDistinctEnum2["name"] = "name";
934
+ RoleDistinctEnum2["title"] = "title";
888
935
  RoleDistinctEnum2["description"] = "description";
889
936
  RoleDistinctEnum2["createdAt"] = "createdAt";
890
937
  RoleDistinctEnum2["updatedAt"] = "updatedAt";
@@ -917,6 +964,7 @@ var AbilityType = /* @__PURE__ */ ((AbilityType2) => {
917
964
  AbilityType2["read"] = "read";
918
965
  AbilityType2["update"] = "update";
919
966
  AbilityType2["delete"] = "delete";
967
+ AbilityType2["expand"] = "expand";
920
968
  return AbilityType2;
921
969
  })(AbilityType || {});
922
970
  const MediaEntityName = "Media";
@@ -1067,6 +1115,7 @@ var ProductDistinctEnum = /* @__PURE__ */ ((ProductDistinctEnum2) => {
1067
1115
  ProductDistinctEnum2["content3"] = "content3";
1068
1116
  ProductDistinctEnum2["shortTitle"] = "shortTitle";
1069
1117
  ProductDistinctEnum2["externalVideoUrl"] = "externalVideoUrl";
1118
+ ProductDistinctEnum2["relatedSlugs"] = "relatedSlugs";
1070
1119
  ProductDistinctEnum2["publishedAt"] = "publishedAt";
1071
1120
  ProductDistinctEnum2["status"] = "status";
1072
1121
  ProductDistinctEnum2["title"] = "title";
@@ -1123,15 +1172,14 @@ const ThemeEntityLabel = "";
1123
1172
  var ThemeDistinctEnum = /* @__PURE__ */ ((ThemeDistinctEnum2) => {
1124
1173
  ThemeDistinctEnum2["id"] = "id";
1125
1174
  ThemeDistinctEnum2["name"] = "name";
1126
- ThemeDistinctEnum2["styles"] = "styles";
1127
1175
  ThemeDistinctEnum2["settings"] = "settings";
1128
1176
  ThemeDistinctEnum2["description"] = "description";
1129
- ThemeDistinctEnum2["tailwindConfig"] = "tailwindConfig";
1130
- ThemeDistinctEnum2["css"] = "css";
1131
1177
  ThemeDistinctEnum2["isInMarket"] = "isInMarket";
1132
- ThemeDistinctEnum2["themeVersionId"] = "themeVersionId";
1178
+ ThemeDistinctEnum2["parentThemeId"] = "parentThemeId";
1133
1179
  ThemeDistinctEnum2["createdAt"] = "createdAt";
1134
1180
  ThemeDistinctEnum2["updatedAt"] = "updatedAt";
1181
+ ThemeDistinctEnum2["status"] = "status";
1182
+ ThemeDistinctEnum2["seqValue"] = "seqValue";
1135
1183
  return ThemeDistinctEnum2;
1136
1184
  })(ThemeDistinctEnum || {});
1137
1185
  const MediaFolderEntityName = "MediaFolder";
@@ -1308,23 +1356,6 @@ var ExtendFieldType = /* @__PURE__ */ ((ExtendFieldType2) => {
1308
1356
  ExtendFieldType2["Date"] = "Date";
1309
1357
  return ExtendFieldType2;
1310
1358
  })(ExtendFieldType || {});
1311
- var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
1312
- ComponentType2["Input"] = "Input";
1313
- ComponentType2["Textarea"] = "Textarea";
1314
- ComponentType2["Select"] = "Select";
1315
- ComponentType2["Checkbox"] = "Checkbox";
1316
- ComponentType2["Radio"] = "Radio";
1317
- ComponentType2["DatePicker"] = "DatePicker";
1318
- ComponentType2["Switch"] = "Switch";
1319
- ComponentType2["RichText"] = "RichText";
1320
- ComponentType2["ImageSelect"] = "ImageSelect";
1321
- ComponentType2["ProductSelect"] = "ProductSelect";
1322
- ComponentType2["VideoSelect"] = "VideoSelect";
1323
- ComponentType2["NumberInput"] = "NumberInput";
1324
- ComponentType2["ColorPicker"] = "ColorPicker";
1325
- ComponentType2["LinkTarget"] = "LinkTarget";
1326
- return ComponentType2;
1327
- })(ComponentType || {});
1328
1359
  const SpamFilterRuleEntityName = "SpamFilterRule";
1329
1360
  const SpamFilterRuleEntityLabel = "垃圾过滤规则";
1330
1361
  var SpamFilterRuleDistinctEnum = /* @__PURE__ */ ((SpamFilterRuleDistinctEnum2) => {
@@ -1358,13 +1389,6 @@ var SlugableDistinctEnum = /* @__PURE__ */ ((SlugableDistinctEnum2) => {
1358
1389
  SlugableDistinctEnum2["description"] = "description";
1359
1390
  return SlugableDistinctEnum2;
1360
1391
  })(SlugableDistinctEnum || {});
1361
- const ProductRelatedPivotEntityName = "ProductRelatedPivot";
1362
- const ProductRelatedPivotEntityLabel = "";
1363
- var ProductRelatedPivotDistinctEnum = /* @__PURE__ */ ((ProductRelatedPivotDistinctEnum2) => {
1364
- ProductRelatedPivotDistinctEnum2["id"] = "id";
1365
- ProductRelatedPivotDistinctEnum2["seqValue"] = "seqValue";
1366
- return ProductRelatedPivotDistinctEnum2;
1367
- })(ProductRelatedPivotDistinctEnum || {});
1368
1392
  const FrontComponentEntityName = "FrontComponent";
1369
1393
  const FrontComponentEntityLabel = "";
1370
1394
  var FrontComponentDistinctEnum = /* @__PURE__ */ ((FrontComponentDistinctEnum2) => {
@@ -1380,6 +1404,7 @@ var FrontComponentDistinctEnum = /* @__PURE__ */ ((FrontComponentDistinctEnum2)
1380
1404
  FrontComponentDistinctEnum2["droppable"] = "droppable";
1381
1405
  FrontComponentDistinctEnum2["isInMarket"] = "isInMarket";
1382
1406
  FrontComponentDistinctEnum2["code"] = "code";
1407
+ FrontComponentDistinctEnum2["description"] = "description";
1383
1408
  return FrontComponentDistinctEnum2;
1384
1409
  })(FrontComponentDistinctEnum || {});
1385
1410
  const ComponentCategoryEntityName = "ComponentCategory";
@@ -1390,6 +1415,7 @@ var ComponentCategoryDistinctEnum = /* @__PURE__ */ ((ComponentCategoryDistinctE
1390
1415
  ComponentCategoryDistinctEnum2["seqValue"] = "seqValue";
1391
1416
  ComponentCategoryDistinctEnum2["updatedAt"] = "updatedAt";
1392
1417
  ComponentCategoryDistinctEnum2["createdAt"] = "createdAt";
1418
+ ComponentCategoryDistinctEnum2["isInMarket"] = "isInMarket";
1393
1419
  return ComponentCategoryDistinctEnum2;
1394
1420
  })(ComponentCategoryDistinctEnum || {});
1395
1421
  var MarketableDistinctEnum = /* @__PURE__ */ ((MarketableDistinctEnum2) => {
@@ -1469,6 +1495,54 @@ var PageMetaDistinctEnum = /* @__PURE__ */ ((PageMetaDistinctEnum2) => {
1469
1495
  PageMetaDistinctEnum2["xUrl"] = "xUrl";
1470
1496
  return PageMetaDistinctEnum2;
1471
1497
  })(PageMetaDistinctEnum || {});
1498
+ const SectionTemplateEntityName = "SectionTemplate";
1499
+ const SectionTemplateEntityLabel = "";
1500
+ var SectionTemplateDistinctEnum = /* @__PURE__ */ ((SectionTemplateDistinctEnum2) => {
1501
+ SectionTemplateDistinctEnum2["id"] = "id";
1502
+ SectionTemplateDistinctEnum2["title"] = "title";
1503
+ SectionTemplateDistinctEnum2["code"] = "code";
1504
+ SectionTemplateDistinctEnum2["description"] = "description";
1505
+ SectionTemplateDistinctEnum2["seqValue"] = "seqValue";
1506
+ SectionTemplateDistinctEnum2["createdAt"] = "createdAt";
1507
+ SectionTemplateDistinctEnum2["updatedAt"] = "updatedAt";
1508
+ return SectionTemplateDistinctEnum2;
1509
+ })(SectionTemplateDistinctEnum || {});
1510
+ const ThemeCategoryEntityName = "ThemeCategory";
1511
+ const ThemeCategoryEntityLabel = "";
1512
+ var ThemeCategoryDistinctEnum = /* @__PURE__ */ ((ThemeCategoryDistinctEnum2) => {
1513
+ ThemeCategoryDistinctEnum2["id"] = "id";
1514
+ ThemeCategoryDistinctEnum2["name"] = "name";
1515
+ ThemeCategoryDistinctEnum2["description"] = "description";
1516
+ ThemeCategoryDistinctEnum2["seqValue"] = "seqValue";
1517
+ ThemeCategoryDistinctEnum2["createdAt"] = "createdAt";
1518
+ ThemeCategoryDistinctEnum2["updatedAt"] = "updatedAt";
1519
+ return ThemeCategoryDistinctEnum2;
1520
+ })(ThemeCategoryDistinctEnum || {});
1521
+ const TemplateCategoryEntityName = "TemplateCategory";
1522
+ const TemplateCategoryEntityLabel = "";
1523
+ var TemplateCategoryDistinctEnum = /* @__PURE__ */ ((TemplateCategoryDistinctEnum2) => {
1524
+ TemplateCategoryDistinctEnum2["id"] = "id";
1525
+ TemplateCategoryDistinctEnum2["name"] = "name";
1526
+ TemplateCategoryDistinctEnum2["description"] = "description";
1527
+ TemplateCategoryDistinctEnum2["seqValue"] = "seqValue";
1528
+ TemplateCategoryDistinctEnum2["createdAt"] = "createdAt";
1529
+ TemplateCategoryDistinctEnum2["updatedAt"] = "updatedAt";
1530
+ return TemplateCategoryDistinctEnum2;
1531
+ })(TemplateCategoryDistinctEnum || {});
1532
+ const StyleConfigEntityName = "StyleConfig";
1533
+ const StyleConfigEntityLabel = "";
1534
+ var StyleConfigDistinctEnum = /* @__PURE__ */ ((StyleConfigDistinctEnum2) => {
1535
+ StyleConfigDistinctEnum2["id"] = "id";
1536
+ StyleConfigDistinctEnum2["name"] = "name";
1537
+ StyleConfigDistinctEnum2["description"] = "description";
1538
+ StyleConfigDistinctEnum2["tailwindConfig"] = "tailwindConfig";
1539
+ StyleConfigDistinctEnum2["css"] = "css";
1540
+ StyleConfigDistinctEnum2["cssVariants"] = "cssVariants";
1541
+ StyleConfigDistinctEnum2["isInMarket"] = "isInMarket";
1542
+ StyleConfigDistinctEnum2["createdAt"] = "createdAt";
1543
+ StyleConfigDistinctEnum2["updatedAt"] = "updatedAt";
1544
+ return StyleConfigDistinctEnum2;
1545
+ })(StyleConfigDistinctEnum || {});
1472
1546
  class RoleQueryOptions extends QueryOptions {
1473
1547
  constructor(fields, queryArgs) {
1474
1548
  super(RoleEntityName, fields, queryArgs);
@@ -1481,6 +1555,10 @@ class RoleQueryOptions extends QueryOptions {
1481
1555
  this.addField("name");
1482
1556
  return this;
1483
1557
  }
1558
+ title() {
1559
+ this.addField("title");
1560
+ return this;
1561
+ }
1484
1562
  description() {
1485
1563
  this.addField("description");
1486
1564
  return this;
@@ -1893,6 +1971,10 @@ class ComponentCategoryQueryOptions extends QueryOptions {
1893
1971
  this.addField("createdAt");
1894
1972
  return this;
1895
1973
  }
1974
+ isInMarket() {
1975
+ this.addField("isInMarket");
1976
+ return this;
1977
+ }
1896
1978
  components(options) {
1897
1979
  if (Array.isArray(options)) {
1898
1980
  this._associations["components"] = new FrontComponentQueryOptions(options);
@@ -1966,6 +2048,10 @@ class FrontComponentQueryOptions extends QueryOptions {
1966
2048
  this.addField("code");
1967
2049
  return this;
1968
2050
  }
2051
+ description() {
2052
+ this.addField("description");
2053
+ return this;
2054
+ }
1969
2055
  category(options) {
1970
2056
  if (Array.isArray(options)) {
1971
2057
  this._associations["category"] = new ComponentCategoryQueryOptions(options);
@@ -2044,6 +2130,153 @@ class ThemeConfigQueryOptions extends QueryOptions {
2044
2130
  return this;
2045
2131
  }
2046
2132
  }
2133
+ class TemplateCategoryQueryOptions extends QueryOptions {
2134
+ constructor(fields, queryArgs) {
2135
+ super(TemplateCategoryEntityName, fields, queryArgs);
2136
+ }
2137
+ id() {
2138
+ this.addField("id");
2139
+ return this;
2140
+ }
2141
+ name() {
2142
+ this.addField("name");
2143
+ return this;
2144
+ }
2145
+ description() {
2146
+ this.addField("description");
2147
+ return this;
2148
+ }
2149
+ seqValue() {
2150
+ this.addField("seqValue");
2151
+ return this;
2152
+ }
2153
+ createdAt() {
2154
+ this.addField("createdAt");
2155
+ return this;
2156
+ }
2157
+ updatedAt() {
2158
+ this.addField("updatedAt");
2159
+ return this;
2160
+ }
2161
+ templates(options) {
2162
+ if (Array.isArray(options)) {
2163
+ this._associations["templates"] = new SectionTemplateQueryOptions(options);
2164
+ } else {
2165
+ this._associations["templates"] = options || new SectionTemplateQueryOptions(["id"]);
2166
+ }
2167
+ return this;
2168
+ }
2169
+ templatesAggregate(aggregate) {
2170
+ this._aggregates["templatesAggregate"] = aggregate;
2171
+ return this;
2172
+ }
2173
+ theme(options) {
2174
+ if (Array.isArray(options)) {
2175
+ this._associations["theme"] = new ThemeQueryOptions(options);
2176
+ } else {
2177
+ this._associations["theme"] = options || new ThemeQueryOptions(["id"]);
2178
+ }
2179
+ return this;
2180
+ }
2181
+ }
2182
+ class SectionTemplateQueryOptions extends QueryOptions {
2183
+ constructor(fields, queryArgs) {
2184
+ super(SectionTemplateEntityName, fields, queryArgs);
2185
+ }
2186
+ id() {
2187
+ this.addField("id");
2188
+ return this;
2189
+ }
2190
+ title() {
2191
+ this.addField("title");
2192
+ return this;
2193
+ }
2194
+ code() {
2195
+ this.addField("code");
2196
+ return this;
2197
+ }
2198
+ description() {
2199
+ this.addField("description");
2200
+ return this;
2201
+ }
2202
+ seqValue() {
2203
+ this.addField("seqValue");
2204
+ return this;
2205
+ }
2206
+ createdAt() {
2207
+ this.addField("createdAt");
2208
+ return this;
2209
+ }
2210
+ updatedAt() {
2211
+ this.addField("updatedAt");
2212
+ return this;
2213
+ }
2214
+ category(options) {
2215
+ if (Array.isArray(options)) {
2216
+ this._associations["category"] = new TemplateCategoryQueryOptions(options);
2217
+ } else {
2218
+ this._associations["category"] = options || new TemplateCategoryQueryOptions(["id"]);
2219
+ }
2220
+ return this;
2221
+ }
2222
+ theme(options) {
2223
+ if (Array.isArray(options)) {
2224
+ this._associations["theme"] = new ThemeQueryOptions(options);
2225
+ } else {
2226
+ this._associations["theme"] = options || new ThemeQueryOptions(["id"]);
2227
+ }
2228
+ return this;
2229
+ }
2230
+ }
2231
+ class StyleConfigQueryOptions extends QueryOptions {
2232
+ constructor(fields, queryArgs) {
2233
+ super(StyleConfigEntityName, fields, queryArgs);
2234
+ }
2235
+ id() {
2236
+ this.addField("id");
2237
+ return this;
2238
+ }
2239
+ name() {
2240
+ this.addField("name");
2241
+ return this;
2242
+ }
2243
+ description() {
2244
+ this.addField("description");
2245
+ return this;
2246
+ }
2247
+ tailwindConfig() {
2248
+ this.addField("tailwindConfig");
2249
+ return this;
2250
+ }
2251
+ css() {
2252
+ this.addField("css");
2253
+ return this;
2254
+ }
2255
+ cssVariants() {
2256
+ this.addField("cssVariants");
2257
+ return this;
2258
+ }
2259
+ isInMarket() {
2260
+ this.addField("isInMarket");
2261
+ return this;
2262
+ }
2263
+ createdAt() {
2264
+ this.addField("createdAt");
2265
+ return this;
2266
+ }
2267
+ updatedAt() {
2268
+ this.addField("updatedAt");
2269
+ return this;
2270
+ }
2271
+ theme(options) {
2272
+ if (Array.isArray(options)) {
2273
+ this._associations["theme"] = new ThemeQueryOptions(options);
2274
+ } else {
2275
+ this._associations["theme"] = options || new ThemeQueryOptions(["id"]);
2276
+ }
2277
+ return this;
2278
+ }
2279
+ }
2047
2280
  class ThemeInMarketQueryOptions extends QueryOptions {
2048
2281
  constructor(fields, queryArgs) {
2049
2282
  super(ThemeInMarketEntityName, fields, queryArgs);
@@ -2114,9 +2347,9 @@ class ThemeVersionQueryOptions extends QueryOptions {
2114
2347
  return this;
2115
2348
  }
2116
2349
  }
2117
- class ThemeQueryOptions extends QueryOptions {
2350
+ class ThemeCategoryQueryOptions extends QueryOptions {
2118
2351
  constructor(fields, queryArgs) {
2119
- super(ThemeEntityName, fields, queryArgs);
2352
+ super(ThemeCategoryEntityName, fields, queryArgs);
2120
2353
  }
2121
2354
  id() {
2122
2355
  this.addField("id");
@@ -2126,24 +2359,53 @@ class ThemeQueryOptions extends QueryOptions {
2126
2359
  this.addField("name");
2127
2360
  return this;
2128
2361
  }
2129
- styles() {
2130
- this.addField("styles");
2362
+ description() {
2363
+ this.addField("description");
2131
2364
  return this;
2132
2365
  }
2133
- settings() {
2134
- this.addField("settings");
2366
+ seqValue() {
2367
+ this.addField("seqValue");
2135
2368
  return this;
2136
2369
  }
2137
- description() {
2138
- this.addField("description");
2370
+ createdAt() {
2371
+ this.addField("createdAt");
2139
2372
  return this;
2140
2373
  }
2141
- tailwindConfig() {
2142
- this.addField("tailwindConfig");
2374
+ updatedAt() {
2375
+ this.addField("updatedAt");
2143
2376
  return this;
2144
2377
  }
2145
- css() {
2146
- this.addField("css");
2378
+ themes(options) {
2379
+ if (Array.isArray(options)) {
2380
+ this._associations["themes"] = new ThemeQueryOptions(options);
2381
+ } else {
2382
+ this._associations["themes"] = options || new ThemeQueryOptions(["id"]);
2383
+ }
2384
+ return this;
2385
+ }
2386
+ themesAggregate(aggregate) {
2387
+ this._aggregates["themesAggregate"] = aggregate;
2388
+ return this;
2389
+ }
2390
+ }
2391
+ class ThemeQueryOptions extends QueryOptions {
2392
+ constructor(fields, queryArgs) {
2393
+ super(ThemeEntityName, fields, queryArgs);
2394
+ }
2395
+ id() {
2396
+ this.addField("id");
2397
+ return this;
2398
+ }
2399
+ name() {
2400
+ this.addField("name");
2401
+ return this;
2402
+ }
2403
+ settings() {
2404
+ this.addField("settings");
2405
+ return this;
2406
+ }
2407
+ description() {
2408
+ this.addField("description");
2147
2409
  return this;
2148
2410
  }
2149
2411
  /**
@@ -2154,10 +2416,10 @@ class ThemeQueryOptions extends QueryOptions {
2154
2416
  return this;
2155
2417
  }
2156
2418
  /**
2157
- * 对应市场主题ID
2419
+ * 对应市场母主题ID
2158
2420
  */
2159
- themeVersionId() {
2160
- this.addField("themeVersionId");
2421
+ parentThemeId() {
2422
+ this.addField("parentThemeId");
2161
2423
  return this;
2162
2424
  }
2163
2425
  createdAt() {
@@ -2168,6 +2430,14 @@ class ThemeQueryOptions extends QueryOptions {
2168
2430
  this.addField("updatedAt");
2169
2431
  return this;
2170
2432
  }
2433
+ status() {
2434
+ this.addField("status");
2435
+ return this;
2436
+ }
2437
+ seqValue() {
2438
+ this.addField("seqValue");
2439
+ return this;
2440
+ }
2171
2441
  cover(options) {
2172
2442
  if (Array.isArray(options)) {
2173
2443
  this._associations["cover"] = new MediaQueryOptions(options);
@@ -2228,6 +2498,38 @@ class ThemeQueryOptions extends QueryOptions {
2228
2498
  }
2229
2499
  return this;
2230
2500
  }
2501
+ templates(options) {
2502
+ if (Array.isArray(options)) {
2503
+ this._associations["templates"] = new SectionTemplateQueryOptions(options);
2504
+ } else {
2505
+ this._associations["templates"] = options || new SectionTemplateQueryOptions(["id"]);
2506
+ }
2507
+ return this;
2508
+ }
2509
+ templatesAggregate(aggregate) {
2510
+ this._aggregates["templatesAggregate"] = aggregate;
2511
+ return this;
2512
+ }
2513
+ templateCategories(options) {
2514
+ if (Array.isArray(options)) {
2515
+ this._associations["templateCategories"] = new TemplateCategoryQueryOptions(options);
2516
+ } else {
2517
+ this._associations["templateCategories"] = options || new TemplateCategoryQueryOptions(["id"]);
2518
+ }
2519
+ return this;
2520
+ }
2521
+ templateCategoriesAggregate(aggregate) {
2522
+ this._aggregates["templateCategoriesAggregate"] = aggregate;
2523
+ return this;
2524
+ }
2525
+ styleConfig(options) {
2526
+ if (Array.isArray(options)) {
2527
+ this._associations["styleConfig"] = new StyleConfigQueryOptions(options);
2528
+ } else {
2529
+ this._associations["styleConfig"] = options || new StyleConfigQueryOptions(["id"]);
2530
+ }
2531
+ return this;
2532
+ }
2231
2533
  marketVersion(options) {
2232
2534
  if (Array.isArray(options)) {
2233
2535
  this._associations["marketVersion"] = new ThemeVersionQueryOptions(options);
@@ -2244,6 +2546,14 @@ class ThemeQueryOptions extends QueryOptions {
2244
2546
  }
2245
2547
  return this;
2246
2548
  }
2549
+ category(options) {
2550
+ if (Array.isArray(options)) {
2551
+ this._associations["category"] = new ThemeCategoryQueryOptions(options);
2552
+ } else {
2553
+ this._associations["category"] = options || new ThemeCategoryQueryOptions(["id"]);
2554
+ }
2555
+ return this;
2556
+ }
2247
2557
  }
2248
2558
  class PageQueryOptions extends QueryOptions {
2249
2559
  constructor(fields, queryArgs) {
@@ -2590,14 +2900,6 @@ class PostQueryOptions extends QueryOptions {
2590
2900
  }
2591
2901
  return this;
2592
2902
  }
2593
- draftOf(options) {
2594
- if (Array.isArray(options)) {
2595
- this._associations["draftOf"] = new PostQueryOptions(options);
2596
- } else {
2597
- this._associations["draftOf"] = options || new PostQueryOptions(["id"]);
2598
- }
2599
- return this;
2600
- }
2601
2903
  lang(options) {
2602
2904
  if (Array.isArray(options)) {
2603
2905
  this._associations["lang"] = new LangQueryOptions(options);
@@ -2622,14 +2924,6 @@ class PostQueryOptions extends QueryOptions {
2622
2924
  }
2623
2925
  return this;
2624
2926
  }
2625
- draft(options) {
2626
- if (Array.isArray(options)) {
2627
- this._associations["draft"] = new PostQueryOptions(options);
2628
- } else {
2629
- this._associations["draft"] = options || new PostQueryOptions(["id"]);
2630
- }
2631
- return this;
2632
- }
2633
2927
  website(options) {
2634
2928
  if (Array.isArray(options)) {
2635
2929
  this._associations["website"] = new WebsiteQueryOptions(options);
@@ -2773,35 +3067,6 @@ class AttachmentOnProductQueryOptions extends QueryOptions {
2773
3067
  return this;
2774
3068
  }
2775
3069
  }
2776
- class ProductRelatedPivotQueryOptions extends QueryOptions {
2777
- constructor(fields, queryArgs) {
2778
- super(ProductRelatedPivotEntityName, fields, queryArgs);
2779
- }
2780
- id() {
2781
- this.addField("id");
2782
- return this;
2783
- }
2784
- seqValue() {
2785
- this.addField("seqValue");
2786
- return this;
2787
- }
2788
- target(options) {
2789
- if (Array.isArray(options)) {
2790
- this._associations["target"] = new ProductQueryOptions(options);
2791
- } else {
2792
- this._associations["target"] = options || new ProductQueryOptions(["id"]);
2793
- }
2794
- return this;
2795
- }
2796
- source(options) {
2797
- if (Array.isArray(options)) {
2798
- this._associations["source"] = new ProductQueryOptions(options);
2799
- } else {
2800
- this._associations["source"] = options || new ProductQueryOptions(["id"]);
2801
- }
2802
- return this;
2803
- }
2804
- }
2805
3070
  class ProductQueryOptions extends QueryOptions {
2806
3071
  constructor(fields, queryArgs) {
2807
3072
  super(ProductEntityName, fields, queryArgs);
@@ -2852,6 +3117,10 @@ class ProductQueryOptions extends QueryOptions {
2852
3117
  this.addField("externalVideoUrl");
2853
3118
  return this;
2854
3119
  }
3120
+ relatedSlugs() {
3121
+ this.addField("relatedSlugs");
3122
+ return this;
3123
+ }
2855
3124
  publishedAt() {
2856
3125
  this.addField("publishedAt");
2857
3126
  return this;
@@ -2908,14 +3177,6 @@ class ProductQueryOptions extends QueryOptions {
2908
3177
  this._aggregates["tagsAggregate"] = aggregate;
2909
3178
  return this;
2910
3179
  }
2911
- draftOf(options) {
2912
- if (Array.isArray(options)) {
2913
- this._associations["draftOf"] = new ProductQueryOptions(options);
2914
- } else {
2915
- this._associations["draftOf"] = options || new ProductQueryOptions(["id"]);
2916
- }
2917
- return this;
2918
- }
2919
3180
  mediaPivots(options) {
2920
3181
  if (Array.isArray(options)) {
2921
3182
  this._associations["mediaPivots"] = new MediaOnProductQueryOptions(options);
@@ -2948,18 +3209,6 @@ class ProductQueryOptions extends QueryOptions {
2948
3209
  }
2949
3210
  return this;
2950
3211
  }
2951
- relatedPivot(options) {
2952
- if (Array.isArray(options)) {
2953
- this._associations["relatedPivot"] = new ProductRelatedPivotQueryOptions(options);
2954
- } else {
2955
- this._associations["relatedPivot"] = options || new ProductRelatedPivotQueryOptions(["id"]);
2956
- }
2957
- return this;
2958
- }
2959
- relatedPivotAggregate(aggregate) {
2960
- this._aggregates["relatedPivotAggregate"] = aggregate;
2961
- return this;
2962
- }
2963
3212
  meta(options) {
2964
3213
  if (Array.isArray(options)) {
2965
3214
  this._associations["meta"] = new PageMetaQueryOptions(options);
@@ -2976,14 +3225,6 @@ class ProductQueryOptions extends QueryOptions {
2976
3225
  }
2977
3226
  return this;
2978
3227
  }
2979
- draft(options) {
2980
- if (Array.isArray(options)) {
2981
- this._associations["draft"] = new ProductQueryOptions(options);
2982
- } else {
2983
- this._associations["draft"] = options || new ProductQueryOptions(["id"]);
2984
- }
2985
- return this;
2986
- }
2987
3228
  website(options) {
2988
3229
  if (Array.isArray(options)) {
2989
3230
  this._associations["website"] = new WebsiteQueryOptions(options);
@@ -2992,18 +3233,6 @@ class ProductQueryOptions extends QueryOptions {
2992
3233
  }
2993
3234
  return this;
2994
3235
  }
2995
- relatedByPivot(options) {
2996
- if (Array.isArray(options)) {
2997
- this._associations["relatedByPivot"] = new ProductRelatedPivotQueryOptions(options);
2998
- } else {
2999
- this._associations["relatedByPivot"] = options || new ProductRelatedPivotQueryOptions(["id"]);
3000
- }
3001
- return this;
3002
- }
3003
- relatedByPivotAggregate(aggregate) {
3004
- this._aggregates["relatedByPivotAggregate"] = aggregate;
3005
- return this;
3006
- }
3007
3236
  }
3008
3237
  class SpamFilterRuleQueryOptions extends QueryOptions {
3009
3238
  constructor(fields, queryArgs) {
@@ -4299,11 +4528,6 @@ const attachmentOnProductEntry = {
4299
4528
  entityLabel: AttachmentOnProductEntityLabel,
4300
4529
  toInput: attachmentOnProductToInput
4301
4530
  };
4302
- const productRelatedPivotEntry = {
4303
- entityName: ProductRelatedPivotEntityName,
4304
- entityLabel: ProductRelatedPivotEntityLabel,
4305
- toInput: productRelatedPivotToInput
4306
- };
4307
4531
  const frontComponentEntry = {
4308
4532
  entityName: FrontComponentEntityName,
4309
4533
  entityLabel: FrontComponentEntityLabel,
@@ -4339,6 +4563,26 @@ const pageMetaEntry = {
4339
4563
  entityLabel: PageMetaEntityLabel,
4340
4564
  toInput: pageMetaToInput
4341
4565
  };
4566
+ const sectionTemplateEntry = {
4567
+ entityName: SectionTemplateEntityName,
4568
+ entityLabel: SectionTemplateEntityLabel,
4569
+ toInput: sectionTemplateToInput
4570
+ };
4571
+ const themeCategoryEntry = {
4572
+ entityName: ThemeCategoryEntityName,
4573
+ entityLabel: ThemeCategoryEntityLabel,
4574
+ toInput: themeCategoryToInput
4575
+ };
4576
+ const templateCategoryEntry = {
4577
+ entityName: TemplateCategoryEntityName,
4578
+ entityLabel: TemplateCategoryEntityLabel,
4579
+ toInput: templateCategoryToInput
4580
+ };
4581
+ const styleConfigEntry = {
4582
+ entityName: StyleConfigEntityName,
4583
+ entityLabel: StyleConfigEntityLabel,
4584
+ toInput: styleConfigToInput
4585
+ };
4342
4586
  var UserFields = /* @__PURE__ */ ((UserFields2) => {
4343
4587
  UserFields2["id"] = "id";
4344
4588
  UserFields2["loginName"] = "loginName";
@@ -4379,6 +4623,7 @@ var UserAssciations = /* @__PURE__ */ ((UserAssciations2) => {
4379
4623
  var RoleFields = /* @__PURE__ */ ((RoleFields2) => {
4380
4624
  RoleFields2["id"] = "id";
4381
4625
  RoleFields2["name"] = "name";
4626
+ RoleFields2["title"] = "title";
4382
4627
  RoleFields2["description"] = "description";
4383
4628
  RoleFields2["createdAt"] = "createdAt";
4384
4629
  RoleFields2["updatedAt"] = "updatedAt";
@@ -4604,11 +4849,9 @@ var PostAssciations = /* @__PURE__ */ ((PostAssciations2) => {
4604
4849
  PostAssciations2["tagsAggregate"] = "tagsAggregate";
4605
4850
  PostAssciations2["author"] = "author";
4606
4851
  PostAssciations2["cover"] = "cover";
4607
- PostAssciations2["draftOf"] = "draftOf";
4608
4852
  PostAssciations2["lang"] = "lang";
4609
4853
  PostAssciations2["meta"] = "meta";
4610
4854
  PostAssciations2["category"] = "category";
4611
- PostAssciations2["draft"] = "draft";
4612
4855
  PostAssciations2["website"] = "website";
4613
4856
  return PostAssciations2;
4614
4857
  })(PostAssciations || {});
@@ -4623,6 +4866,7 @@ var ProductFields = /* @__PURE__ */ ((ProductFields2) => {
4623
4866
  ProductFields2["content3"] = "content3";
4624
4867
  ProductFields2["shortTitle"] = "shortTitle";
4625
4868
  ProductFields2["externalVideoUrl"] = "externalVideoUrl";
4869
+ ProductFields2["relatedSlugs"] = "relatedSlugs";
4626
4870
  ProductFields2["publishedAt"] = "publishedAt";
4627
4871
  ProductFields2["status"] = "status";
4628
4872
  ProductFields2["title"] = "title";
@@ -4638,20 +4882,14 @@ var ProductAssciations = /* @__PURE__ */ ((ProductAssciations2) => {
4638
4882
  ProductAssciations2["category"] = "category";
4639
4883
  ProductAssciations2["tags"] = "tags";
4640
4884
  ProductAssciations2["tagsAggregate"] = "tagsAggregate";
4641
- ProductAssciations2["draftOf"] = "draftOf";
4642
4885
  ProductAssciations2["mediaPivots"] = "mediaPivots";
4643
4886
  ProductAssciations2["mediaPivotsAggregate"] = "mediaPivotsAggregate";
4644
4887
  ProductAssciations2["attachmentPivots"] = "attachmentPivots";
4645
4888
  ProductAssciations2["attachmentPivotsAggregate"] = "attachmentPivotsAggregate";
4646
4889
  ProductAssciations2["lang"] = "lang";
4647
- ProductAssciations2["relatedPivot"] = "relatedPivot";
4648
- ProductAssciations2["relatedPivotAggregate"] = "relatedPivotAggregate";
4649
4890
  ProductAssciations2["meta"] = "meta";
4650
4891
  ProductAssciations2["creator"] = "creator";
4651
- ProductAssciations2["draft"] = "draft";
4652
4892
  ProductAssciations2["website"] = "website";
4653
- ProductAssciations2["relatedByPivot"] = "relatedByPivot";
4654
- ProductAssciations2["relatedByPivotAggregate"] = "relatedByPivotAggregate";
4655
4893
  return ProductAssciations2;
4656
4894
  })(ProductAssciations || {});
4657
4895
  var EnquiryFields = /* @__PURE__ */ ((EnquiryFields2) => {
@@ -4704,15 +4942,14 @@ var WebsiteSettingsAssciations = /* @__PURE__ */ ((WebsiteSettingsAssciations2)
4704
4942
  var ThemeFields = /* @__PURE__ */ ((ThemeFields2) => {
4705
4943
  ThemeFields2["id"] = "id";
4706
4944
  ThemeFields2["name"] = "name";
4707
- ThemeFields2["styles"] = "styles";
4708
4945
  ThemeFields2["settings"] = "settings";
4709
4946
  ThemeFields2["description"] = "description";
4710
- ThemeFields2["tailwindConfig"] = "tailwindConfig";
4711
- ThemeFields2["css"] = "css";
4712
4947
  ThemeFields2["isInMarket"] = "isInMarket";
4713
- ThemeFields2["themeVersionId"] = "themeVersionId";
4948
+ ThemeFields2["parentThemeId"] = "parentThemeId";
4714
4949
  ThemeFields2["createdAt"] = "createdAt";
4715
4950
  ThemeFields2["updatedAt"] = "updatedAt";
4951
+ ThemeFields2["status"] = "status";
4952
+ ThemeFields2["seqValue"] = "seqValue";
4716
4953
  return ThemeFields2;
4717
4954
  })(ThemeFields || {});
4718
4955
  var ThemeAssciations = /* @__PURE__ */ ((ThemeAssciations2) => {
@@ -4725,8 +4962,14 @@ var ThemeAssciations = /* @__PURE__ */ ((ThemeAssciations2) => {
4725
4962
  ThemeAssciations2["pagesAggregate"] = "pagesAggregate";
4726
4963
  ThemeAssciations2["lang"] = "lang";
4727
4964
  ThemeAssciations2["config"] = "config";
4965
+ ThemeAssciations2["templates"] = "templates";
4966
+ ThemeAssciations2["templatesAggregate"] = "templatesAggregate";
4967
+ ThemeAssciations2["templateCategories"] = "templateCategories";
4968
+ ThemeAssciations2["templateCategoriesAggregate"] = "templateCategoriesAggregate";
4969
+ ThemeAssciations2["styleConfig"] = "styleConfig";
4728
4970
  ThemeAssciations2["marketVersion"] = "marketVersion";
4729
4971
  ThemeAssciations2["website"] = "website";
4972
+ ThemeAssciations2["category"] = "category";
4730
4973
  return ThemeAssciations2;
4731
4974
  })(ThemeAssciations || {});
4732
4975
  var MediaFolderFields = /* @__PURE__ */ ((MediaFolderFields2) => {
@@ -4872,16 +5115,6 @@ var AttachmentOnProductAssciations = /* @__PURE__ */ ((AttachmentOnProductAsscia
4872
5115
  AttachmentOnProductAssciations2["product"] = "product";
4873
5116
  return AttachmentOnProductAssciations2;
4874
5117
  })(AttachmentOnProductAssciations || {});
4875
- var ProductRelatedPivotFields = /* @__PURE__ */ ((ProductRelatedPivotFields2) => {
4876
- ProductRelatedPivotFields2["id"] = "id";
4877
- ProductRelatedPivotFields2["seqValue"] = "seqValue";
4878
- return ProductRelatedPivotFields2;
4879
- })(ProductRelatedPivotFields || {});
4880
- var ProductRelatedPivotAssciations = /* @__PURE__ */ ((ProductRelatedPivotAssciations2) => {
4881
- ProductRelatedPivotAssciations2["target"] = "target";
4882
- ProductRelatedPivotAssciations2["source"] = "source";
4883
- return ProductRelatedPivotAssciations2;
4884
- })(ProductRelatedPivotAssciations || {});
4885
5118
  var FrontComponentFields = /* @__PURE__ */ ((FrontComponentFields2) => {
4886
5119
  FrontComponentFields2["id"] = "id";
4887
5120
  FrontComponentFields2["name"] = "name";
@@ -4895,6 +5128,7 @@ var FrontComponentFields = /* @__PURE__ */ ((FrontComponentFields2) => {
4895
5128
  FrontComponentFields2["droppable"] = "droppable";
4896
5129
  FrontComponentFields2["isInMarket"] = "isInMarket";
4897
5130
  FrontComponentFields2["code"] = "code";
5131
+ FrontComponentFields2["description"] = "description";
4898
5132
  return FrontComponentFields2;
4899
5133
  })(FrontComponentFields || {});
4900
5134
  var FrontComponentAssciations = /* @__PURE__ */ ((FrontComponentAssciations2) => {
@@ -4908,6 +5142,7 @@ var ComponentCategoryFields = /* @__PURE__ */ ((ComponentCategoryFields2) => {
4908
5142
  ComponentCategoryFields2["seqValue"] = "seqValue";
4909
5143
  ComponentCategoryFields2["updatedAt"] = "updatedAt";
4910
5144
  ComponentCategoryFields2["createdAt"] = "createdAt";
5145
+ ComponentCategoryFields2["isInMarket"] = "isInMarket";
4911
5146
  return ComponentCategoryFields2;
4912
5147
  })(ComponentCategoryFields || {});
4913
5148
  var ComponentCategoryAssciations = /* @__PURE__ */ ((ComponentCategoryAssciations2) => {
@@ -4994,6 +5229,66 @@ var PageMetaAssciations = /* @__PURE__ */ ((PageMetaAssciations2) => {
4994
5229
  PageMetaAssciations2["post"] = "post";
4995
5230
  return PageMetaAssciations2;
4996
5231
  })(PageMetaAssciations || {});
5232
+ var SectionTemplateFields = /* @__PURE__ */ ((SectionTemplateFields2) => {
5233
+ SectionTemplateFields2["id"] = "id";
5234
+ SectionTemplateFields2["title"] = "title";
5235
+ SectionTemplateFields2["code"] = "code";
5236
+ SectionTemplateFields2["description"] = "description";
5237
+ SectionTemplateFields2["seqValue"] = "seqValue";
5238
+ SectionTemplateFields2["createdAt"] = "createdAt";
5239
+ SectionTemplateFields2["updatedAt"] = "updatedAt";
5240
+ return SectionTemplateFields2;
5241
+ })(SectionTemplateFields || {});
5242
+ var SectionTemplateAssciations = /* @__PURE__ */ ((SectionTemplateAssciations2) => {
5243
+ SectionTemplateAssciations2["category"] = "category";
5244
+ SectionTemplateAssciations2["theme"] = "theme";
5245
+ return SectionTemplateAssciations2;
5246
+ })(SectionTemplateAssciations || {});
5247
+ var ThemeCategoryFields = /* @__PURE__ */ ((ThemeCategoryFields2) => {
5248
+ ThemeCategoryFields2["id"] = "id";
5249
+ ThemeCategoryFields2["name"] = "name";
5250
+ ThemeCategoryFields2["description"] = "description";
5251
+ ThemeCategoryFields2["seqValue"] = "seqValue";
5252
+ ThemeCategoryFields2["createdAt"] = "createdAt";
5253
+ ThemeCategoryFields2["updatedAt"] = "updatedAt";
5254
+ return ThemeCategoryFields2;
5255
+ })(ThemeCategoryFields || {});
5256
+ var ThemeCategoryAssciations = /* @__PURE__ */ ((ThemeCategoryAssciations2) => {
5257
+ ThemeCategoryAssciations2["themes"] = "themes";
5258
+ ThemeCategoryAssciations2["themesAggregate"] = "themesAggregate";
5259
+ return ThemeCategoryAssciations2;
5260
+ })(ThemeCategoryAssciations || {});
5261
+ var TemplateCategoryFields = /* @__PURE__ */ ((TemplateCategoryFields2) => {
5262
+ TemplateCategoryFields2["id"] = "id";
5263
+ TemplateCategoryFields2["name"] = "name";
5264
+ TemplateCategoryFields2["description"] = "description";
5265
+ TemplateCategoryFields2["seqValue"] = "seqValue";
5266
+ TemplateCategoryFields2["createdAt"] = "createdAt";
5267
+ TemplateCategoryFields2["updatedAt"] = "updatedAt";
5268
+ return TemplateCategoryFields2;
5269
+ })(TemplateCategoryFields || {});
5270
+ var TemplateCategoryAssciations = /* @__PURE__ */ ((TemplateCategoryAssciations2) => {
5271
+ TemplateCategoryAssciations2["templates"] = "templates";
5272
+ TemplateCategoryAssciations2["templatesAggregate"] = "templatesAggregate";
5273
+ TemplateCategoryAssciations2["theme"] = "theme";
5274
+ return TemplateCategoryAssciations2;
5275
+ })(TemplateCategoryAssciations || {});
5276
+ var StyleConfigFields = /* @__PURE__ */ ((StyleConfigFields2) => {
5277
+ StyleConfigFields2["id"] = "id";
5278
+ StyleConfigFields2["name"] = "name";
5279
+ StyleConfigFields2["description"] = "description";
5280
+ StyleConfigFields2["tailwindConfig"] = "tailwindConfig";
5281
+ StyleConfigFields2["css"] = "css";
5282
+ StyleConfigFields2["cssVariants"] = "cssVariants";
5283
+ StyleConfigFields2["isInMarket"] = "isInMarket";
5284
+ StyleConfigFields2["createdAt"] = "createdAt";
5285
+ StyleConfigFields2["updatedAt"] = "updatedAt";
5286
+ return StyleConfigFields2;
5287
+ })(StyleConfigFields || {});
5288
+ var StyleConfigAssciations = /* @__PURE__ */ ((StyleConfigAssciations2) => {
5289
+ StyleConfigAssciations2["theme"] = "theme";
5290
+ return StyleConfigAssciations2;
5291
+ })(StyleConfigAssciations || {});
4997
5292
  export {
4998
5293
  AbilityAssciations,
4999
5294
  AbilityDistinctEnum,
@@ -5020,7 +5315,6 @@ export {
5020
5315
  ComponentCategoryEntityName,
5021
5316
  ComponentCategoryFields,
5022
5317
  ComponentCategoryQueryOptions,
5023
- ComponentType,
5024
5318
  CustomerAssciations,
5025
5319
  CustomerDistinctEnum,
5026
5320
  CustomerEntityLabel,
@@ -5112,12 +5406,6 @@ export {
5112
5406
  ProductEntityName,
5113
5407
  ProductFields,
5114
5408
  ProductQueryOptions,
5115
- ProductRelatedPivotAssciations,
5116
- ProductRelatedPivotDistinctEnum,
5117
- ProductRelatedPivotEntityLabel,
5118
- ProductRelatedPivotEntityName,
5119
- ProductRelatedPivotFields,
5120
- ProductRelatedPivotQueryOptions,
5121
5409
  PublishableDistinctEnum,
5122
5410
  PublishableStatus,
5123
5411
  QueryOptions,
@@ -5127,6 +5415,12 @@ export {
5127
5415
  RoleEntityName,
5128
5416
  RoleFields,
5129
5417
  RoleQueryOptions,
5418
+ SectionTemplateAssciations,
5419
+ SectionTemplateDistinctEnum,
5420
+ SectionTemplateEntityLabel,
5421
+ SectionTemplateEntityName,
5422
+ SectionTemplateFields,
5423
+ SectionTemplateQueryOptions,
5130
5424
  SlugableDistinctEnum,
5131
5425
  SpamFilterRuleAssciations,
5132
5426
  SpamFilterRuleDistinctEnum,
@@ -5134,13 +5428,31 @@ export {
5134
5428
  SpamFilterRuleEntityName,
5135
5429
  SpamFilterRuleFields,
5136
5430
  SpamFilterRuleQueryOptions,
5431
+ StyleConfigAssciations,
5432
+ StyleConfigDistinctEnum,
5433
+ StyleConfigEntityLabel,
5434
+ StyleConfigEntityName,
5435
+ StyleConfigFields,
5436
+ StyleConfigQueryOptions,
5137
5437
  TagAssciations,
5138
5438
  TagDistinctEnum,
5139
5439
  TagEntityLabel,
5140
5440
  TagEntityName,
5141
5441
  TagFields,
5142
5442
  TagQueryOptions,
5443
+ TemplateCategoryAssciations,
5444
+ TemplateCategoryDistinctEnum,
5445
+ TemplateCategoryEntityLabel,
5446
+ TemplateCategoryEntityName,
5447
+ TemplateCategoryFields,
5448
+ TemplateCategoryQueryOptions,
5143
5449
  ThemeAssciations,
5450
+ ThemeCategoryAssciations,
5451
+ ThemeCategoryDistinctEnum,
5452
+ ThemeCategoryEntityLabel,
5453
+ ThemeCategoryEntityName,
5454
+ ThemeCategoryFields,
5455
+ ThemeCategoryQueryOptions,
5144
5456
  ThemeConfigAssciations,
5145
5457
  ThemeConfigDistinctEnum,
5146
5458
  ThemeConfigEntityLabel,
@@ -5247,20 +5559,29 @@ export {
5247
5559
  productCategoryToInput,
5248
5560
  productCategoryToInputCascade,
5249
5561
  productEntry,
5250
- productRelatedPivotEntry,
5251
- productRelatedPivotToInput,
5252
- productRelatedPivotToInputCascade,
5253
5562
  productToInput,
5254
5563
  productToInputCascade,
5255
5564
  roleEntry,
5256
5565
  roleToInput,
5257
5566
  roleToInputCascade,
5567
+ sectionTemplateEntry,
5568
+ sectionTemplateToInput,
5569
+ sectionTemplateToInputCascade,
5258
5570
  spamFilterRuleEntry,
5259
5571
  spamFilterRuleToInput,
5260
5572
  spamFilterRuleToInputCascade,
5573
+ styleConfigEntry,
5574
+ styleConfigToInput,
5575
+ styleConfigToInputCascade,
5261
5576
  tagEntry,
5262
5577
  tagToInput,
5263
5578
  tagToInputCascade,
5579
+ templateCategoryEntry,
5580
+ templateCategoryToInput,
5581
+ templateCategoryToInputCascade,
5582
+ themeCategoryEntry,
5583
+ themeCategoryToInput,
5584
+ themeCategoryToInputCascade,
5264
5585
  themeConfigEntry,
5265
5586
  themeConfigToInput,
5266
5587
  themeConfigToInputCascade,