@rxdrag/rxcms-models 0.2.19 → 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
|
@@ -4,6 +4,7 @@ import { Media } from './Media';
|
|
|
4
4
|
import { MediaOnProduct } from './MediaOnProduct';
|
|
5
5
|
import { AttachmentOnProduct } from './AttachmentOnProduct';
|
|
6
6
|
import { Lang } from './Lang';
|
|
7
|
+
import { ProductRelatedPivot } from './ProductRelatedPivot';
|
|
7
8
|
import { User } from './User';
|
|
8
9
|
import { Website } from './Website';
|
|
9
10
|
import { Aggregate } from './Aggregate';
|
|
@@ -34,10 +35,14 @@ export interface Product extends Publishable {
|
|
|
34
35
|
mediaPivots?: MediaOnProduct[];
|
|
35
36
|
attachmentPivots?: AttachmentOnProduct[];
|
|
36
37
|
lang?: Lang;
|
|
38
|
+
relatedPivot?: ProductRelatedPivot[];
|
|
37
39
|
creator?: User;
|
|
38
40
|
draft?: Product;
|
|
39
41
|
website?: Website;
|
|
42
|
+
relatedByPivot?: ProductRelatedPivot[];
|
|
40
43
|
tagsAggregate?: Aggregate;
|
|
41
44
|
mediaPivotsAggregate?: Aggregate;
|
|
42
45
|
attachmentPivotsAggregate?: Aggregate;
|
|
46
|
+
relatedPivotAggregate?: Aggregate;
|
|
47
|
+
relatedByPivotAggregate?: Aggregate;
|
|
43
48
|
}
|
|
@@ -9,6 +9,7 @@ import { MediaBoolExp } from './MediaBoolExp';
|
|
|
9
9
|
import { MediaOnProductBoolExp } from './MediaOnProductBoolExp';
|
|
10
10
|
import { AttachmentOnProductBoolExp } from './AttachmentOnProductBoolExp';
|
|
11
11
|
import { LangBoolExp } from './LangBoolExp';
|
|
12
|
+
import { ProductRelatedPivotBoolExp } from './ProductRelatedPivotBoolExp';
|
|
12
13
|
import { UserBoolExp } from './UserBoolExp';
|
|
13
14
|
import { WebsiteBoolExp } from './WebsiteBoolExp';
|
|
14
15
|
export interface ProductBoolExp extends PublishableBoolExp {
|
|
@@ -32,7 +33,9 @@ export interface ProductBoolExp extends PublishableBoolExp {
|
|
|
32
33
|
mediaPivots?: MediaOnProductBoolExp;
|
|
33
34
|
attachmentPivots?: AttachmentOnProductBoolExp;
|
|
34
35
|
lang?: LangBoolExp;
|
|
36
|
+
relatedPivot?: ProductRelatedPivotBoolExp;
|
|
35
37
|
creator?: UserBoolExp;
|
|
36
38
|
draft?: ProductBoolExp;
|
|
37
39
|
website?: WebsiteBoolExp;
|
|
40
|
+
relatedByPivot?: ProductRelatedPivotBoolExp;
|
|
38
41
|
}
|
|
@@ -5,6 +5,7 @@ import { MediaInput } from './MediaInput';
|
|
|
5
5
|
import { MediaOnProductInput } from './MediaOnProductInput';
|
|
6
6
|
import { AttachmentOnProductInput } from './AttachmentOnProductInput';
|
|
7
7
|
import { LangInput } from './LangInput';
|
|
8
|
+
import { ProductRelatedPivotInput } from './ProductRelatedPivotInput';
|
|
8
9
|
import { UserInput } from './UserInput';
|
|
9
10
|
import { WebsiteInput } from './WebsiteInput';
|
|
10
11
|
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
@@ -34,9 +35,11 @@ export interface ProductInput extends Publishable {
|
|
|
34
35
|
mediaPivots?: SetHasMany<MediaOnProductInput>;
|
|
35
36
|
attachmentPivots?: SetHasMany<AttachmentOnProductInput>;
|
|
36
37
|
lang?: SetHasOne<LangInput>;
|
|
38
|
+
relatedPivot?: SetHasMany<ProductRelatedPivotInput>;
|
|
37
39
|
creator?: SetHasOne<UserInput>;
|
|
38
40
|
draft?: SetHasOne<ProductInput>;
|
|
39
41
|
website?: SetHasOne<WebsiteInput>;
|
|
42
|
+
relatedByPivot?: SetHasMany<ProductRelatedPivotInput>;
|
|
40
43
|
}
|
|
41
44
|
export declare const productToInputCascade: (entity: Product) => ProductInput;
|
|
42
45
|
export declare const productToInput: (entity: Product) => ProductInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Product } from './Product';
|
|
2
|
+
export declare const ProductRelatedPivotEntityName = "ProductRelatedPivot";
|
|
3
|
+
export declare const ProductRelatedPivotEntityLabel = "";
|
|
4
|
+
export interface ProductRelatedPivot {
|
|
5
|
+
id?: string;
|
|
6
|
+
seqValue?: number;
|
|
7
|
+
target?: Product;
|
|
8
|
+
source?: Product;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IdComparisonExp } from './IdComparisonExp';
|
|
2
|
+
import { NumberComparisonExp } from './NumberComparisonExp';
|
|
3
|
+
import { ProductBoolExp } from './ProductBoolExp';
|
|
4
|
+
export interface ProductRelatedPivotBoolExp {
|
|
5
|
+
_and?: ProductRelatedPivotBoolExp[];
|
|
6
|
+
_or?: ProductRelatedPivotBoolExp[];
|
|
7
|
+
_not?: ProductRelatedPivotBoolExp;
|
|
8
|
+
id?: IdComparisonExp;
|
|
9
|
+
seqValue?: NumberComparisonExp;
|
|
10
|
+
target?: ProductBoolExp;
|
|
11
|
+
source?: ProductBoolExp;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProductRelatedPivot } from './ProductRelatedPivot';
|
|
2
|
+
import { ProductInput } from './ProductInput';
|
|
3
|
+
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
4
|
+
export interface ProductRelatedPivotInput {
|
|
5
|
+
id?: string;
|
|
6
|
+
seqValue?: number;
|
|
7
|
+
target?: SetHasOne<ProductInput>;
|
|
8
|
+
source?: SetHasOne<ProductInput>;
|
|
9
|
+
}
|
|
10
|
+
export declare const productRelatedPivotToInputCascade: (entity: ProductRelatedPivot) => ProductRelatedPivotInput;
|
|
11
|
+
export declare const productRelatedPivotToInput: (entity: ProductRelatedPivot) => ProductRelatedPivotInput;
|
|
@@ -173,3 +173,8 @@ export * from './Slugable';
|
|
|
173
173
|
export * from './SlugableBoolExp';
|
|
174
174
|
export * from './SlugableOrderBy';
|
|
175
175
|
export * from './SlugableDistinctExp';
|
|
176
|
+
export * from './ProductRelatedPivot';
|
|
177
|
+
export * from './ProductRelatedPivotInput';
|
|
178
|
+
export * from './ProductRelatedPivotBoolExp';
|
|
179
|
+
export * from './ProductRelatedPivotOrderBy';
|
|
180
|
+
export * from './ProductRelatedPivotDistinctExp';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/rxcms-models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"eslint": "^7.32.0",
|
|
14
14
|
"typescript": "^5",
|
|
15
|
-
"@rxdrag/
|
|
16
|
-
"@rxdrag/
|
|
15
|
+
"@rxdrag/tsconfig": "0.2.0",
|
|
16
|
+
"@rxdrag/eslint-config-custom": "0.2.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"swr": "^2.2.4",
|
|
20
|
-
"@rxdrag/entify-hooks": "0.
|
|
20
|
+
"@rxdrag/entify-hooks": "0.2.0"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint . --ext .ts,tsx",
|