@rxdrag/rxcms-models 0.2.18 → 0.3.0
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/classes/ProductQueryOptions.d.ts +7 -0
- package/dist/classes/ProductRelatedPivotQueryOptions.d.ts +12 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/entries/index.d.ts +1 -0
- package/dist/entries/productRelatedPivotEntry.d.ts +2 -0
- package/dist/fields/ProductFields.d.ts +5 -1
- package/dist/fields/ProductRelatedPivotFields.d.ts +8 -0
- package/dist/fields/index.d.ts +1 -0
- package/dist/index.mjs +114 -6
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/Product.d.ts +5 -0
- package/dist/interfaces/ProductBoolExp.d.ts +3 -0
- package/dist/interfaces/ProductInput.d.ts +3 -0
- package/dist/interfaces/ProductRelatedPivot.d.ts +9 -0
- package/dist/interfaces/ProductRelatedPivotBoolExp.d.ts +12 -0
- package/dist/interfaces/ProductRelatedPivotDistinctExp.d.ts +5 -0
- package/dist/interfaces/ProductRelatedPivotInput.d.ts +11 -0
- package/dist/interfaces/ProductRelatedPivotOrderBy.d.ts +5 -0
- package/dist/interfaces/index.d.ts +5 -0
- package/package.json +4 -4
|
@@ -16,6 +16,9 @@ import { AttachmentOnProduct } from '../interfaces';
|
|
|
16
16
|
import { AttachmentOnProductBoolExp } from '../interfaces';
|
|
17
17
|
import { LangQueryOptions } from './LangQueryOptions';
|
|
18
18
|
import { Lang } from '../interfaces';
|
|
19
|
+
import { ProductRelatedPivotQueryOptions } from './ProductRelatedPivotQueryOptions';
|
|
20
|
+
import { ProductRelatedPivot } from '../interfaces';
|
|
21
|
+
import { ProductRelatedPivotBoolExp } from '../interfaces';
|
|
19
22
|
import { UserQueryOptions } from './UserQueryOptions';
|
|
20
23
|
import { User } from '../interfaces';
|
|
21
24
|
import { WebsiteQueryOptions } from './WebsiteQueryOptions';
|
|
@@ -70,7 +73,11 @@ export declare class ProductQueryOptions extends QueryOptions<Product, ProductBo
|
|
|
70
73
|
attachmentPivots(options?: AttachmentOnProductQueryOptions | (keyof AttachmentOnProduct)[]): this;
|
|
71
74
|
attachmentPivotsAggregate(aggregate: IAggregate<AttachmentOnProductBoolExp>): this;
|
|
72
75
|
lang(options?: LangQueryOptions | (keyof Lang)[]): this;
|
|
76
|
+
relatedPivot(options?: ProductRelatedPivotQueryOptions | (keyof ProductRelatedPivot)[]): this;
|
|
77
|
+
relatedPivotAggregate(aggregate: IAggregate<ProductRelatedPivotBoolExp>): this;
|
|
73
78
|
creator(options?: UserQueryOptions | (keyof User)[]): this;
|
|
74
79
|
draft(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
75
80
|
website(options?: WebsiteQueryOptions | (keyof Website)[]): this;
|
|
81
|
+
relatedByPivot(options?: ProductRelatedPivotQueryOptions | (keyof ProductRelatedPivot)[]): this;
|
|
82
|
+
relatedByPivotAggregate(aggregate: IAggregate<ProductRelatedPivotBoolExp>): this;
|
|
76
83
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { ProductRelatedPivot, ProductRelatedPivotBoolExp, ProductRelatedPivotDistinctExp, ProductRelatedPivotOrderBy } from "../interfaces";
|
|
4
|
+
import { ProductQueryOptions } from './ProductQueryOptions';
|
|
5
|
+
import { Product } from '../interfaces';
|
|
6
|
+
export declare class ProductRelatedPivotQueryOptions extends QueryOptions<ProductRelatedPivot, ProductRelatedPivotBoolExp, ProductRelatedPivotOrderBy, ProductRelatedPivotDistinctExp> {
|
|
7
|
+
constructor(fields?: (keyof ProductRelatedPivot)[], queryArgs?: IQueryArgs<ProductRelatedPivotBoolExp, ProductRelatedPivotOrderBy, ProductRelatedPivotDistinctExp>);
|
|
8
|
+
id(): this;
|
|
9
|
+
seqValue(): this;
|
|
10
|
+
target(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
11
|
+
source(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
12
|
+
}
|
package/dist/classes/index.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ export * from './ProductCategoryQueryOptions';
|
|
|
22
22
|
export * from './SpamFilterRuleQueryOptions';
|
|
23
23
|
export * from './MediaOnProductQueryOptions';
|
|
24
24
|
export * from './AttachmentOnProductQueryOptions';
|
|
25
|
+
export * from './ProductRelatedPivotQueryOptions';
|
|
25
26
|
export * from './QueryOptions';
|
|
26
27
|
export * from './metainfo';
|
package/dist/entries/index.d.ts
CHANGED
|
@@ -49,7 +49,11 @@ export declare enum ProductAssciations {
|
|
|
49
49
|
attachmentPivots = "attachmentPivots",
|
|
50
50
|
attachmentPivotsAggregate = "attachmentPivotsAggregate",
|
|
51
51
|
lang = "lang",
|
|
52
|
+
relatedPivot = "relatedPivot",
|
|
53
|
+
relatedPivotAggregate = "relatedPivotAggregate",
|
|
52
54
|
creator = "creator",
|
|
53
55
|
draft = "draft",
|
|
54
|
-
website = "website"
|
|
56
|
+
website = "website",
|
|
57
|
+
relatedByPivot = "relatedByPivot",
|
|
58
|
+
relatedByPivotAggregate = "relatedByPivotAggregate"
|
|
55
59
|
}
|
package/dist/fields/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,9 @@ const aggregateEntities = {
|
|
|
69
69
|
Product: {
|
|
70
70
|
tagsAggregate: "Tag",
|
|
71
71
|
mediaPivotsAggregate: "MediaOnProduct",
|
|
72
|
-
attachmentPivotsAggregate: "AttachmentOnProduct"
|
|
72
|
+
attachmentPivotsAggregate: "AttachmentOnProduct",
|
|
73
|
+
relatedPivotAggregate: "ProductRelatedPivot",
|
|
74
|
+
relatedByPivotAggregate: "ProductRelatedPivot"
|
|
73
75
|
},
|
|
74
76
|
TemplateCategory: {
|
|
75
77
|
templatesAggregate: "Template"
|
|
@@ -530,9 +532,23 @@ const attachmentOnProductToInput = (entity) => {
|
|
|
530
532
|
product: convertHasOneToInput(entity.product)
|
|
531
533
|
};
|
|
532
534
|
};
|
|
535
|
+
const productRelatedPivotToInputCascade = (entity) => {
|
|
536
|
+
return {
|
|
537
|
+
...entity,
|
|
538
|
+
target: entity.target ? processHasOneClear({ sync: productToInput(entity.target) }) : void 0,
|
|
539
|
+
source: entity.source ? processHasOneClear({ sync: productToInput(entity.source) }) : void 0
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
const productRelatedPivotToInput = (entity) => {
|
|
543
|
+
return {
|
|
544
|
+
...entity,
|
|
545
|
+
target: convertHasOneToInput(entity.target),
|
|
546
|
+
source: convertHasOneToInput(entity.source)
|
|
547
|
+
};
|
|
548
|
+
};
|
|
533
549
|
const productToInputCascade = (entity) => {
|
|
534
|
-
var _a, _b, _c;
|
|
535
|
-
const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, ...rest } = entity;
|
|
550
|
+
var _a, _b, _c, _d, _e;
|
|
551
|
+
const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, relatedPivotAggregate, relatedByPivotAggregate, ...rest } = entity;
|
|
536
552
|
return {
|
|
537
553
|
...rest,
|
|
538
554
|
category: entity.category ? processHasOneClear({ sync: productCategoryToInput(entity.category) }) : void 0,
|
|
@@ -542,13 +558,15 @@ const productToInputCascade = (entity) => {
|
|
|
542
558
|
mediaPivots: entity.mediaPivots ? processHasManyClear({ sync: (_b = entity.mediaPivots) == null ? void 0 : _b.map((ent) => mediaOnProductToInput(ent)) }) : void 0,
|
|
543
559
|
attachmentPivots: entity.attachmentPivots ? processHasManyClear({ sync: (_c = entity.attachmentPivots) == null ? void 0 : _c.map((ent) => attachmentOnProductToInput(ent)) }) : void 0,
|
|
544
560
|
lang: entity.lang ? processHasOneClear({ sync: langToInput(entity.lang) }) : void 0,
|
|
561
|
+
relatedPivot: entity.relatedPivot ? processHasManyClear({ sync: (_d = entity.relatedPivot) == null ? void 0 : _d.map((ent) => productRelatedPivotToInput(ent)) }) : void 0,
|
|
545
562
|
creator: entity.creator ? processHasOneClear({ sync: userToInput(entity.creator) }) : void 0,
|
|
546
563
|
draft: entity.draft ? processHasOneClear({ sync: productToInput(entity.draft) }) : void 0,
|
|
547
|
-
website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0
|
|
564
|
+
website: entity.website ? processHasOneClear({ sync: websiteToInput(entity.website) }) : void 0,
|
|
565
|
+
relatedByPivot: entity.relatedByPivot ? processHasManyClear({ sync: (_e = entity.relatedByPivot) == null ? void 0 : _e.map((ent) => productRelatedPivotToInput(ent)) }) : void 0
|
|
548
566
|
};
|
|
549
567
|
};
|
|
550
568
|
const productToInput = (entity) => {
|
|
551
|
-
const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, ...rest } = entity;
|
|
569
|
+
const { tagsAggregate, mediaPivotsAggregate, attachmentPivotsAggregate, relatedPivotAggregate, relatedByPivotAggregate, ...rest } = entity;
|
|
552
570
|
return {
|
|
553
571
|
...rest,
|
|
554
572
|
category: convertHasOneToInput(entity.category),
|
|
@@ -558,9 +576,11 @@ const productToInput = (entity) => {
|
|
|
558
576
|
mediaPivots: convertHasManyToInput(entity.mediaPivots),
|
|
559
577
|
attachmentPivots: convertHasManyToInput(entity.attachmentPivots),
|
|
560
578
|
lang: convertHasOneToInput(entity.lang),
|
|
579
|
+
relatedPivot: convertHasManyToInput(entity.relatedPivot),
|
|
561
580
|
creator: convertHasOneToInput(entity.creator),
|
|
562
581
|
draft: convertHasOneToInput(entity.draft),
|
|
563
|
-
website: convertHasOneToInput(entity.website)
|
|
582
|
+
website: convertHasOneToInput(entity.website),
|
|
583
|
+
relatedByPivot: convertHasManyToInput(entity.relatedByPivot)
|
|
564
584
|
};
|
|
565
585
|
};
|
|
566
586
|
const spamFilterRuleToInputCascade = (entity) => {
|
|
@@ -1358,6 +1378,13 @@ var SlugableDistinctEnum = /* @__PURE__ */ ((SlugableDistinctEnum2) => {
|
|
|
1358
1378
|
SlugableDistinctEnum2["description"] = "description";
|
|
1359
1379
|
return SlugableDistinctEnum2;
|
|
1360
1380
|
})(SlugableDistinctEnum || {});
|
|
1381
|
+
const ProductRelatedPivotEntityName = "ProductRelatedPivot";
|
|
1382
|
+
const ProductRelatedPivotEntityLabel = "";
|
|
1383
|
+
var ProductRelatedPivotDistinctEnum = /* @__PURE__ */ ((ProductRelatedPivotDistinctEnum2) => {
|
|
1384
|
+
ProductRelatedPivotDistinctEnum2["id"] = "id";
|
|
1385
|
+
ProductRelatedPivotDistinctEnum2["seqValue"] = "seqValue";
|
|
1386
|
+
return ProductRelatedPivotDistinctEnum2;
|
|
1387
|
+
})(ProductRelatedPivotDistinctEnum || {});
|
|
1361
1388
|
class RoleQueryOptions extends QueryOptions {
|
|
1362
1389
|
constructor(fields, queryArgs) {
|
|
1363
1390
|
super(RoleEntityName, fields, queryArgs);
|
|
@@ -2483,6 +2510,35 @@ class AttachmentOnProductQueryOptions extends QueryOptions {
|
|
|
2483
2510
|
return this;
|
|
2484
2511
|
}
|
|
2485
2512
|
}
|
|
2513
|
+
class ProductRelatedPivotQueryOptions extends QueryOptions {
|
|
2514
|
+
constructor(fields, queryArgs) {
|
|
2515
|
+
super(ProductRelatedPivotEntityName, fields, queryArgs);
|
|
2516
|
+
}
|
|
2517
|
+
id() {
|
|
2518
|
+
this.addField("id");
|
|
2519
|
+
return this;
|
|
2520
|
+
}
|
|
2521
|
+
seqValue() {
|
|
2522
|
+
this.addField("seqValue");
|
|
2523
|
+
return this;
|
|
2524
|
+
}
|
|
2525
|
+
target(options) {
|
|
2526
|
+
if (Array.isArray(options)) {
|
|
2527
|
+
this._associations["target"] = new ProductQueryOptions(options);
|
|
2528
|
+
} else {
|
|
2529
|
+
this._associations["target"] = options || new ProductQueryOptions(["id"]);
|
|
2530
|
+
}
|
|
2531
|
+
return this;
|
|
2532
|
+
}
|
|
2533
|
+
source(options) {
|
|
2534
|
+
if (Array.isArray(options)) {
|
|
2535
|
+
this._associations["source"] = new ProductQueryOptions(options);
|
|
2536
|
+
} else {
|
|
2537
|
+
this._associations["source"] = options || new ProductQueryOptions(["id"]);
|
|
2538
|
+
}
|
|
2539
|
+
return this;
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2486
2542
|
class ProductQueryOptions extends QueryOptions {
|
|
2487
2543
|
constructor(fields, queryArgs) {
|
|
2488
2544
|
super(ProductEntityName, fields, queryArgs);
|
|
@@ -2689,6 +2745,18 @@ class ProductQueryOptions extends QueryOptions {
|
|
|
2689
2745
|
}
|
|
2690
2746
|
return this;
|
|
2691
2747
|
}
|
|
2748
|
+
relatedPivot(options) {
|
|
2749
|
+
if (Array.isArray(options)) {
|
|
2750
|
+
this._associations["relatedPivot"] = new ProductRelatedPivotQueryOptions(options);
|
|
2751
|
+
} else {
|
|
2752
|
+
this._associations["relatedPivot"] = options || new ProductRelatedPivotQueryOptions(["id"]);
|
|
2753
|
+
}
|
|
2754
|
+
return this;
|
|
2755
|
+
}
|
|
2756
|
+
relatedPivotAggregate(aggregate) {
|
|
2757
|
+
this._aggregates["relatedPivotAggregate"] = aggregate;
|
|
2758
|
+
return this;
|
|
2759
|
+
}
|
|
2692
2760
|
creator(options) {
|
|
2693
2761
|
if (Array.isArray(options)) {
|
|
2694
2762
|
this._associations["creator"] = new UserQueryOptions(options);
|
|
@@ -2713,6 +2781,18 @@ class ProductQueryOptions extends QueryOptions {
|
|
|
2713
2781
|
}
|
|
2714
2782
|
return this;
|
|
2715
2783
|
}
|
|
2784
|
+
relatedByPivot(options) {
|
|
2785
|
+
if (Array.isArray(options)) {
|
|
2786
|
+
this._associations["relatedByPivot"] = new ProductRelatedPivotQueryOptions(options);
|
|
2787
|
+
} else {
|
|
2788
|
+
this._associations["relatedByPivot"] = options || new ProductRelatedPivotQueryOptions(["id"]);
|
|
2789
|
+
}
|
|
2790
|
+
return this;
|
|
2791
|
+
}
|
|
2792
|
+
relatedByPivotAggregate(aggregate) {
|
|
2793
|
+
this._aggregates["relatedByPivotAggregate"] = aggregate;
|
|
2794
|
+
return this;
|
|
2795
|
+
}
|
|
2716
2796
|
}
|
|
2717
2797
|
class SpamFilterRuleQueryOptions extends QueryOptions {
|
|
2718
2798
|
constructor(fields, queryArgs) {
|
|
@@ -4021,6 +4101,11 @@ const attachmentOnProductEntry = {
|
|
|
4021
4101
|
entityLabel: AttachmentOnProductEntityLabel,
|
|
4022
4102
|
toInput: attachmentOnProductToInput
|
|
4023
4103
|
};
|
|
4104
|
+
const productRelatedPivotEntry = {
|
|
4105
|
+
entityName: ProductRelatedPivotEntityName,
|
|
4106
|
+
entityLabel: ProductRelatedPivotEntityLabel,
|
|
4107
|
+
toInput: productRelatedPivotToInput
|
|
4108
|
+
};
|
|
4024
4109
|
var UserFields = /* @__PURE__ */ ((UserFields2) => {
|
|
4025
4110
|
UserFields2["id"] = "id";
|
|
4026
4111
|
UserFields2["loginName"] = "loginName";
|
|
@@ -4367,9 +4452,13 @@ var ProductAssciations = /* @__PURE__ */ ((ProductAssciations2) => {
|
|
|
4367
4452
|
ProductAssciations2["attachmentPivots"] = "attachmentPivots";
|
|
4368
4453
|
ProductAssciations2["attachmentPivotsAggregate"] = "attachmentPivotsAggregate";
|
|
4369
4454
|
ProductAssciations2["lang"] = "lang";
|
|
4455
|
+
ProductAssciations2["relatedPivot"] = "relatedPivot";
|
|
4456
|
+
ProductAssciations2["relatedPivotAggregate"] = "relatedPivotAggregate";
|
|
4370
4457
|
ProductAssciations2["creator"] = "creator";
|
|
4371
4458
|
ProductAssciations2["draft"] = "draft";
|
|
4372
4459
|
ProductAssciations2["website"] = "website";
|
|
4460
|
+
ProductAssciations2["relatedByPivot"] = "relatedByPivot";
|
|
4461
|
+
ProductAssciations2["relatedByPivotAggregate"] = "relatedByPivotAggregate";
|
|
4373
4462
|
return ProductAssciations2;
|
|
4374
4463
|
})(ProductAssciations || {});
|
|
4375
4464
|
var EnquiryFields = /* @__PURE__ */ ((EnquiryFields2) => {
|
|
@@ -4614,6 +4703,16 @@ var AttachmentOnProductAssciations = /* @__PURE__ */ ((AttachmentOnProductAsscia
|
|
|
4614
4703
|
AttachmentOnProductAssciations2["product"] = "product";
|
|
4615
4704
|
return AttachmentOnProductAssciations2;
|
|
4616
4705
|
})(AttachmentOnProductAssciations || {});
|
|
4706
|
+
var ProductRelatedPivotFields = /* @__PURE__ */ ((ProductRelatedPivotFields2) => {
|
|
4707
|
+
ProductRelatedPivotFields2["id"] = "id";
|
|
4708
|
+
ProductRelatedPivotFields2["seqValue"] = "seqValue";
|
|
4709
|
+
return ProductRelatedPivotFields2;
|
|
4710
|
+
})(ProductRelatedPivotFields || {});
|
|
4711
|
+
var ProductRelatedPivotAssciations = /* @__PURE__ */ ((ProductRelatedPivotAssciations2) => {
|
|
4712
|
+
ProductRelatedPivotAssciations2["target"] = "target";
|
|
4713
|
+
ProductRelatedPivotAssciations2["source"] = "source";
|
|
4714
|
+
return ProductRelatedPivotAssciations2;
|
|
4715
|
+
})(ProductRelatedPivotAssciations || {});
|
|
4617
4716
|
export {
|
|
4618
4717
|
AbilityAssciations,
|
|
4619
4718
|
AbilityDistinctEnum,
|
|
@@ -4706,6 +4805,12 @@ export {
|
|
|
4706
4805
|
ProductEntityName,
|
|
4707
4806
|
ProductFields,
|
|
4708
4807
|
ProductQueryOptions,
|
|
4808
|
+
ProductRelatedPivotAssciations,
|
|
4809
|
+
ProductRelatedPivotDistinctEnum,
|
|
4810
|
+
ProductRelatedPivotEntityLabel,
|
|
4811
|
+
ProductRelatedPivotEntityName,
|
|
4812
|
+
ProductRelatedPivotFields,
|
|
4813
|
+
ProductRelatedPivotQueryOptions,
|
|
4709
4814
|
PublishableDistinctEnum,
|
|
4710
4815
|
PublishableStatus,
|
|
4711
4816
|
QueryOptions,
|
|
@@ -4819,6 +4924,9 @@ export {
|
|
|
4819
4924
|
productCategoryToInput,
|
|
4820
4925
|
productCategoryToInputCascade,
|
|
4821
4926
|
productEntry,
|
|
4927
|
+
productRelatedPivotEntry,
|
|
4928
|
+
productRelatedPivotToInput,
|
|
4929
|
+
productRelatedPivotToInputCascade,
|
|
4822
4930
|
productToInput,
|
|
4823
4931
|
productToInputCascade,
|
|
4824
4932
|
roleEntry,
|