@rxdrag/rxcms-models 0.3.31 → 0.3.33

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.
@@ -30,6 +30,9 @@ import { Website } from '../interfaces';
30
30
  import { WebsiteSettingsQueryOptions } from './WebsiteSettingsQueryOptions';
31
31
  import { WebsiteSettings } from '../interfaces';
32
32
  import { WebsiteSettingsBoolExp } from '../interfaces';
33
+ import { ThemeQueryOptions } from './ThemeQueryOptions';
34
+ import { Theme } from '../interfaces';
35
+ import { ThemeBoolExp } from '../interfaces';
33
36
  export declare class MediaQueryOptions extends QueryOptions<Media, MediaBoolExp, MediaOrderBy, MediaDistinctExp> {
34
37
  constructor(fields?: (keyof Media)[], queryArgs?: IQueryArgs<MediaBoolExp, MediaOrderBy, MediaDistinctExp>);
35
38
  id(): this;
@@ -62,4 +65,6 @@ export declare class MediaQueryOptions extends QueryOptions<Media, MediaBoolExp,
62
65
  website(options?: WebsiteQueryOptions | (keyof Website)[]): this;
63
66
  usedByContact(options?: WebsiteSettingsQueryOptions | (keyof WebsiteSettings)[]): this;
64
67
  usedByContactAggregate(aggregate: IAggregate<WebsiteSettingsBoolExp>): this;
68
+ coverOfTheme(options?: ThemeQueryOptions | (keyof Theme)[]): this;
69
+ coverOfThemeAggregate(aggregate: IAggregate<ThemeBoolExp>): this;
65
70
  }
@@ -9,6 +9,8 @@ import { TemplateCategory } from '../interfaces';
9
9
  import { TemplateCategoryBoolExp } from '../interfaces';
10
10
  import { LangQueryOptions } from './LangQueryOptions';
11
11
  import { Lang } from '../interfaces';
12
+ import { MediaQueryOptions } from './MediaQueryOptions';
13
+ import { Media } from '../interfaces';
12
14
  import { WebsiteQueryOptions } from './WebsiteQueryOptions';
13
15
  import { Website } from '../interfaces';
14
16
  export declare class ThemeQueryOptions extends QueryOptions<Theme, ThemeBoolExp, ThemeOrderBy, ThemeDistinctExp> {
@@ -25,6 +27,7 @@ export declare class ThemeQueryOptions extends QueryOptions<Theme, ThemeBoolExp,
25
27
  themlateCategories(options?: TemplateCategoryQueryOptions | (keyof TemplateCategory)[]): this;
26
28
  themlateCategoriesAggregate(aggregate: IAggregate<TemplateCategoryBoolExp>): this;
27
29
  lang(options?: LangQueryOptions | (keyof Lang)[]): this;
30
+ cover(options?: MediaQueryOptions | (keyof Media)[]): this;
28
31
  selectedBy(options?: WebsiteQueryOptions | (keyof Website)[]): this;
29
32
  website(options?: WebsiteQueryOptions | (keyof Website)[]): this;
30
33
  }
@@ -30,5 +30,7 @@ export declare enum MediaAssciations {
30
30
  productAttacPivotsAggregate = "productAttacPivotsAggregate",
31
31
  website = "website",
32
32
  usedByContact = "usedByContact",
33
- usedByContactAggregate = "usedByContactAggregate"
33
+ usedByContactAggregate = "usedByContactAggregate",
34
+ coverOfTheme = "coverOfTheme",
35
+ coverOfThemeAggregate = "coverOfThemeAggregate"
34
36
  }
@@ -13,6 +13,7 @@ export declare enum ThemeAssciations {
13
13
  themlateCategories = "themlateCategories",
14
14
  themlateCategoriesAggregate = "themlateCategoriesAggregate",
15
15
  lang = "lang",
16
+ cover = "cover",
16
17
  selectedBy = "selectedBy",
17
18
  website = "website"
18
19
  }
package/dist/index.mjs CHANGED
@@ -24,7 +24,8 @@ const aggregateEntities = {
24
24
  meidaOfProductAggregate: "ProductCategory",
25
25
  productMediaPivotsAggregate: "MediaOnProduct",
26
26
  productAttacPivotsAggregate: "AttachmentOnProduct",
27
- usedByContactAggregate: "WebsiteSettings"
27
+ usedByContactAggregate: "WebsiteSettings",
28
+ coverOfThemeAggregate: "Theme"
28
29
  },
29
30
  Website: {
30
31
  usersAggregate: "User",
@@ -337,6 +338,7 @@ const themeToInputCascade = (entity) => {
337
338
  templates: entity.templates ? processHasManyClear({ sync: (_a = entity.templates) == null ? void 0 : _a.map((ent) => templateToInput(ent)) }) : void 0,
338
339
  themlateCategories: entity.themlateCategories ? processHasManyClear({ sync: (_b = entity.themlateCategories) == null ? void 0 : _b.map((ent) => templateCategoryToInput(ent)) }) : void 0,
339
340
  lang: entity.lang ? processHasOneClear({ sync: langToInput(entity.lang) }) : void 0,
341
+ cover: entity.cover ? processHasOneClear({ sync: mediaToInput(entity.cover) }) : void 0,
340
342
  selectedBy: entity.selectedBy ? processHasOneClear({ sync: websiteToInput(entity.selectedBy) }) : void 0,
341
343
  website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0
342
344
  };
@@ -348,6 +350,7 @@ const themeToInput = (entity) => {
348
350
  templates: convertHasManyToInput(entity.templates),
349
351
  themlateCategories: convertHasManyToInput(entity.themlateCategories),
350
352
  lang: convertHasOneToInput(entity.lang),
353
+ cover: convertHasOneToInput(entity.cover),
351
354
  selectedBy: convertHasOneToInput(entity.selectedBy),
352
355
  website: convertHasOneToInput(entity.website)
353
356
  };
@@ -734,8 +737,8 @@ const mediaFolderToInput = (entity) => {
734
737
  };
735
738
  };
736
739
  const mediaToInputCascade = (entity) => {
737
- var _a, _b, _c, _d, _e, _f, _g, _h;
738
- const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, usedByContactAggregate, ...rest } = entity;
740
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
741
+ const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, usedByContactAggregate, coverOfThemeAggregate, ...rest } = entity;
739
742
  return {
740
743
  ...rest,
741
744
  folder: entity.folder ? processHasOneClear({ sync: mediaFolderToInput(entity.folder) }) : void 0,
@@ -749,11 +752,12 @@ const mediaToInputCascade = (entity) => {
749
752
  productMediaPivots: entity.productMediaPivots ? processHasManyClear({ sync: (_f = entity.productMediaPivots) == null ? void 0 : _f.map((ent) => mediaOnProductToInput(ent)) }) : void 0,
750
753
  productAttacPivots: entity.productAttacPivots ? processHasManyClear({ sync: (_g = entity.productAttacPivots) == null ? void 0 : _g.map((ent) => attachmentOnProductToInput(ent)) }) : void 0,
751
754
  website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0,
752
- usedByContact: entity.usedByContact ? processHasManyClear({ sync: (_h = entity.usedByContact) == null ? void 0 : _h.map((ent) => websiteSettingsToInput(ent)) }) : void 0
755
+ usedByContact: entity.usedByContact ? processHasManyClear({ sync: (_h = entity.usedByContact) == null ? void 0 : _h.map((ent) => websiteSettingsToInput(ent)) }) : void 0,
756
+ coverOfTheme: entity.coverOfTheme ? processHasManyClear({ sync: (_i = entity.coverOfTheme) == null ? void 0 : _i.map((ent) => themeToInput(ent)) }) : void 0
753
757
  };
754
758
  };
755
759
  const mediaToInput = (entity) => {
756
- const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, usedByContactAggregate, ...rest } = entity;
760
+ const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, usedByContactAggregate, coverOfThemeAggregate, ...rest } = entity;
757
761
  return {
758
762
  ...rest,
759
763
  folder: convertHasOneToInput(entity.folder),
@@ -767,7 +771,8 @@ const mediaToInput = (entity) => {
767
771
  productMediaPivots: convertHasManyToInput(entity.productMediaPivots),
768
772
  productAttacPivots: convertHasManyToInput(entity.productAttacPivots),
769
773
  website: convertHasOneToInput(entity.website),
770
- usedByContact: convertHasManyToInput(entity.usedByContact)
774
+ usedByContact: convertHasManyToInput(entity.usedByContact),
775
+ coverOfTheme: convertHasManyToInput(entity.coverOfTheme)
771
776
  };
772
777
  };
773
778
  const userToInputCascade = (entity) => {
@@ -1689,6 +1694,14 @@ class ThemeQueryOptions extends QueryOptions {
1689
1694
  }
1690
1695
  return this;
1691
1696
  }
1697
+ cover(options) {
1698
+ if (Array.isArray(options)) {
1699
+ this._associations["cover"] = new MediaQueryOptions(options);
1700
+ } else {
1701
+ this._associations["cover"] = options || new MediaQueryOptions(["id"]);
1702
+ }
1703
+ return this;
1704
+ }
1692
1705
  selectedBy(options) {
1693
1706
  if (Array.isArray(options)) {
1694
1707
  this._associations["selectedBy"] = new WebsiteQueryOptions(options);
@@ -3740,6 +3753,18 @@ class MediaQueryOptions extends QueryOptions {
3740
3753
  this._aggregates["usedByContactAggregate"] = aggregate;
3741
3754
  return this;
3742
3755
  }
3756
+ coverOfTheme(options) {
3757
+ if (Array.isArray(options)) {
3758
+ this._associations["coverOfTheme"] = new ThemeQueryOptions(options);
3759
+ } else {
3760
+ this._associations["coverOfTheme"] = options || new ThemeQueryOptions(["id"]);
3761
+ }
3762
+ return this;
3763
+ }
3764
+ coverOfThemeAggregate(aggregate) {
3765
+ this._aggregates["coverOfThemeAggregate"] = aggregate;
3766
+ return this;
3767
+ }
3743
3768
  }
3744
3769
  class UserQueryOptions extends QueryOptions {
3745
3770
  constructor(fields, queryArgs) {
@@ -4227,6 +4252,8 @@ var MediaAssciations = /* @__PURE__ */ ((MediaAssciations2) => {
4227
4252
  MediaAssciations2["website"] = "website";
4228
4253
  MediaAssciations2["usedByContact"] = "usedByContact";
4229
4254
  MediaAssciations2["usedByContactAggregate"] = "usedByContactAggregate";
4255
+ MediaAssciations2["coverOfTheme"] = "coverOfTheme";
4256
+ MediaAssciations2["coverOfThemeAggregate"] = "coverOfThemeAggregate";
4230
4257
  return MediaAssciations2;
4231
4258
  })(MediaAssciations || {});
4232
4259
  var MailFields = /* @__PURE__ */ ((MailFields2) => {
@@ -4591,6 +4618,7 @@ var ThemeAssciations = /* @__PURE__ */ ((ThemeAssciations2) => {
4591
4618
  ThemeAssciations2["themlateCategories"] = "themlateCategories";
4592
4619
  ThemeAssciations2["themlateCategoriesAggregate"] = "themlateCategoriesAggregate";
4593
4620
  ThemeAssciations2["lang"] = "lang";
4621
+ ThemeAssciations2["cover"] = "cover";
4594
4622
  ThemeAssciations2["selectedBy"] = "selectedBy";
4595
4623
  ThemeAssciations2["website"] = "website";
4596
4624
  return ThemeAssciations2;