@rxdrag/rxcms-models 0.3.23 → 0.3.25

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.
@@ -27,6 +27,9 @@ import { AttachmentOnProduct } from '../interfaces';
27
27
  import { AttachmentOnProductBoolExp } from '../interfaces';
28
28
  import { WebsiteQueryOptions } from './WebsiteQueryOptions';
29
29
  import { Website } from '../interfaces';
30
+ import { WebsiteSettingsQueryOptions } from './WebsiteSettingsQueryOptions';
31
+ import { WebsiteSettings } from '../interfaces';
32
+ import { WebsiteSettingsBoolExp } from '../interfaces';
30
33
  export declare class MediaQueryOptions extends QueryOptions<Media, MediaBoolExp, MediaOrderBy, MediaDistinctExp> {
31
34
  constructor(fields?: (keyof Media)[], queryArgs?: IQueryArgs<MediaBoolExp, MediaOrderBy, MediaDistinctExp>);
32
35
  id(): this;
@@ -57,4 +60,6 @@ export declare class MediaQueryOptions extends QueryOptions<Media, MediaBoolExp,
57
60
  productAttacPivots(options?: AttachmentOnProductQueryOptions | (keyof AttachmentOnProduct)[]): this;
58
61
  productAttacPivotsAggregate(aggregate: IAggregate<AttachmentOnProductBoolExp>): this;
59
62
  website(options?: WebsiteQueryOptions | (keyof Website)[]): this;
63
+ usedByContact(options?: WebsiteSettingsQueryOptions | (keyof WebsiteSettings)[]): this;
64
+ usedByContactAggregate(aggregate: IAggregate<WebsiteSettingsBoolExp>): this;
60
65
  }
@@ -3,6 +3,8 @@ import { QueryOptions } from "./QueryOptions";
3
3
  import { WebsiteSettings, WebsiteSettingsBoolExp, WebsiteSettingsDistinctExp, WebsiteSettingsOrderBy } from "../interfaces";
4
4
  import { LangQueryOptions } from './LangQueryOptions';
5
5
  import { Lang } from '../interfaces';
6
+ import { MediaQueryOptions } from './MediaQueryOptions';
7
+ import { Media } from '../interfaces';
6
8
  import { WebsiteQueryOptions } from './WebsiteQueryOptions';
7
9
  import { Website } from '../interfaces';
8
10
  export declare class WebsiteSettingsQueryOptions extends QueryOptions<WebsiteSettings, WebsiteSettingsBoolExp, WebsiteSettingsOrderBy, WebsiteSettingsDistinctExp> {
@@ -54,5 +56,6 @@ export declare class WebsiteSettingsQueryOptions extends QueryOptions<WebsiteSet
54
56
  createdAt(): this;
55
57
  updatedAt(): this;
56
58
  lang(options?: LangQueryOptions | (keyof Lang)[]): this;
59
+ contactAvatar(options?: MediaQueryOptions | (keyof Media)[]): this;
57
60
  website(options?: WebsiteQueryOptions | (keyof Website)[]): this;
58
61
  }
@@ -28,5 +28,7 @@ export declare enum MediaAssciations {
28
28
  productMediaPivotsAggregate = "productMediaPivotsAggregate",
29
29
  productAttacPivots = "productAttacPivots",
30
30
  productAttacPivotsAggregate = "productAttacPivotsAggregate",
31
- website = "website"
31
+ website = "website",
32
+ usedByContact = "usedByContact",
33
+ usedByContactAggregate = "usedByContactAggregate"
32
34
  }
@@ -48,5 +48,6 @@ export declare enum WebsiteSettingsFields {
48
48
  }
49
49
  export declare enum WebsiteSettingsAssciations {
50
50
  lang = "lang",
51
+ contactAvatar = "contactAvatar",
51
52
  website = "website"
52
53
  }
package/dist/index.mjs CHANGED
@@ -23,7 +23,8 @@ const aggregateEntities = {
23
23
  ogMetaOfPostAggregate: "Post",
24
24
  meidaOfProductAggregate: "ProductCategory",
25
25
  productMediaPivotsAggregate: "MediaOnProduct",
26
- productAttacPivotsAggregate: "AttachmentOnProduct"
26
+ productAttacPivotsAggregate: "AttachmentOnProduct",
27
+ usedByContactAggregate: "WebsiteSettings"
27
28
  },
28
29
  Website: {
29
30
  usersAggregate: "User",
@@ -654,6 +655,7 @@ const websiteSettingsToInputCascade = (entity) => {
654
655
  return {
655
656
  ...entity,
656
657
  lang: entity.lang ? processHasOneClear({ sync: langToInput(entity.lang) }) : void 0,
658
+ contactAvatar: entity.contactAvatar ? processHasOneClear({ sync: mediaToInput(entity.contactAvatar) }) : void 0,
657
659
  website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0
658
660
  };
659
661
  };
@@ -661,6 +663,7 @@ const websiteSettingsToInput = (entity) => {
661
663
  return {
662
664
  ...entity,
663
665
  lang: convertHasOneToInput(entity.lang),
666
+ contactAvatar: convertHasOneToInput(entity.contactAvatar),
664
667
  website: convertHasOneToInput(entity.website)
665
668
  };
666
669
  };
@@ -731,8 +734,8 @@ const mediaFolderToInput = (entity) => {
731
734
  };
732
735
  };
733
736
  const mediaToInputCascade = (entity) => {
734
- var _a, _b, _c, _d, _e, _f, _g;
735
- const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, ...rest } = entity;
737
+ var _a, _b, _c, _d, _e, _f, _g, _h;
738
+ const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, usedByContactAggregate, ...rest } = entity;
736
739
  return {
737
740
  ...rest,
738
741
  folder: entity.folder ? processHasOneClear({ sync: mediaFolderToInput(entity.folder) }) : void 0,
@@ -745,11 +748,12 @@ const mediaToInputCascade = (entity) => {
745
748
  meidaOfProduct: entity.meidaOfProduct ? processHasManyClear({ sync: (_e = entity.meidaOfProduct) == null ? void 0 : _e.map((ent) => productCategoryToInput(ent)) }) : void 0,
746
749
  productMediaPivots: entity.productMediaPivots ? processHasManyClear({ sync: (_f = entity.productMediaPivots) == null ? void 0 : _f.map((ent) => mediaOnProductToInput(ent)) }) : void 0,
747
750
  productAttacPivots: entity.productAttacPivots ? processHasManyClear({ sync: (_g = entity.productAttacPivots) == null ? void 0 : _g.map((ent) => attachmentOnProductToInput(ent)) }) : void 0,
748
- website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0
751
+ 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
749
753
  };
750
754
  };
751
755
  const mediaToInput = (entity) => {
752
- const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, ...rest } = entity;
756
+ const { file, coverOfAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, meidaOfProductAggregate, productMediaPivotsAggregate, productAttacPivotsAggregate, usedByContactAggregate, ...rest } = entity;
753
757
  return {
754
758
  ...rest,
755
759
  folder: convertHasOneToInput(entity.folder),
@@ -762,7 +766,8 @@ const mediaToInput = (entity) => {
762
766
  meidaOfProduct: convertHasManyToInput(entity.meidaOfProduct),
763
767
  productMediaPivots: convertHasManyToInput(entity.productMediaPivots),
764
768
  productAttacPivots: convertHasManyToInput(entity.productAttacPivots),
765
- website: convertHasOneToInput(entity.website)
769
+ website: convertHasOneToInput(entity.website),
770
+ usedByContact: convertHasManyToInput(entity.usedByContact)
766
771
  };
767
772
  };
768
773
  const userToInputCascade = (entity) => {
@@ -3249,6 +3254,14 @@ class WebsiteSettingsQueryOptions extends QueryOptions {
3249
3254
  }
3250
3255
  return this;
3251
3256
  }
3257
+ contactAvatar(options) {
3258
+ if (Array.isArray(options)) {
3259
+ this._associations["contactAvatar"] = new MediaQueryOptions(options);
3260
+ } else {
3261
+ this._associations["contactAvatar"] = options || new MediaQueryOptions(["id"]);
3262
+ }
3263
+ return this;
3264
+ }
3252
3265
  website(options) {
3253
3266
  if (Array.isArray(options)) {
3254
3267
  this._associations["website"] = new WebsiteQueryOptions(options);
@@ -3715,6 +3728,18 @@ class MediaQueryOptions extends QueryOptions {
3715
3728
  }
3716
3729
  return this;
3717
3730
  }
3731
+ usedByContact(options) {
3732
+ if (Array.isArray(options)) {
3733
+ this._associations["usedByContact"] = new WebsiteSettingsQueryOptions(options);
3734
+ } else {
3735
+ this._associations["usedByContact"] = options || new WebsiteSettingsQueryOptions(["id"]);
3736
+ }
3737
+ return this;
3738
+ }
3739
+ usedByContactAggregate(aggregate) {
3740
+ this._aggregates["usedByContactAggregate"] = aggregate;
3741
+ return this;
3742
+ }
3718
3743
  }
3719
3744
  class UserQueryOptions extends QueryOptions {
3720
3745
  constructor(fields, queryArgs) {
@@ -4200,6 +4225,8 @@ var MediaAssciations = /* @__PURE__ */ ((MediaAssciations2) => {
4200
4225
  MediaAssciations2["productAttacPivots"] = "productAttacPivots";
4201
4226
  MediaAssciations2["productAttacPivotsAggregate"] = "productAttacPivotsAggregate";
4202
4227
  MediaAssciations2["website"] = "website";
4228
+ MediaAssciations2["usedByContact"] = "usedByContact";
4229
+ MediaAssciations2["usedByContactAggregate"] = "usedByContactAggregate";
4203
4230
  return MediaAssciations2;
4204
4231
  })(MediaAssciations || {});
4205
4232
  var MailFields = /* @__PURE__ */ ((MailFields2) => {
@@ -4511,6 +4538,7 @@ var WebsiteSettingsFields = /* @__PURE__ */ ((WebsiteSettingsFields2) => {
4511
4538
  })(WebsiteSettingsFields || {});
4512
4539
  var WebsiteSettingsAssciations = /* @__PURE__ */ ((WebsiteSettingsAssciations2) => {
4513
4540
  WebsiteSettingsAssciations2["lang"] = "lang";
4541
+ WebsiteSettingsAssciations2["contactAvatar"] = "contactAvatar";
4514
4542
  WebsiteSettingsAssciations2["website"] = "website";
4515
4543
  return WebsiteSettingsAssciations2;
4516
4544
  })(WebsiteSettingsAssciations || {});