@rxdrag/rxcms-models 0.2.10 → 0.2.12
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/AttachmentOnProductQueryOptions.d.ts +14 -0
- package/dist/classes/MediaOnProductQueryOptions.d.ts +15 -0
- package/dist/classes/MediaQueryOptions.d.ts +16 -12
- package/dist/classes/ProductQueryOptions.d.ts +15 -12
- package/dist/classes/index.d.ts +2 -0
- package/dist/entries/attachmentOnProductEntry.d.ts +2 -0
- package/dist/entries/index.d.ts +2 -0
- package/dist/entries/mediaOnProductEntry.d.ts +2 -0
- package/dist/fields/AttachmentOnProductFields.d.ts +8 -0
- package/dist/fields/MediaFields.d.ts +5 -5
- package/dist/fields/MediaOnProductFields.d.ts +9 -0
- package/dist/fields/ProductFields.d.ts +4 -4
- package/dist/fields/index.d.ts +2 -0
- package/dist/index.mjs +228 -83
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/AttachmentOnProduct.d.ts +10 -0
- package/dist/interfaces/AttachmentOnProductBoolExp.d.ts +13 -0
- package/dist/interfaces/AttachmentOnProductDistinctExp.d.ts +5 -0
- package/dist/interfaces/AttachmentOnProductInput.d.ts +12 -0
- package/dist/interfaces/{AttachmentAddonOrderBy.d.ts → AttachmentOnProductOrderBy.d.ts} +2 -1
- package/dist/interfaces/Media.d.ts +7 -7
- package/dist/interfaces/MediaBoolExp.d.ts +5 -3
- package/dist/interfaces/MediaInput.d.ts +5 -5
- package/dist/interfaces/MediaOnProduct.d.ts +11 -0
- package/dist/interfaces/MediaOnProductBoolExp.d.ts +15 -0
- package/dist/interfaces/MediaOnProductDistinctExp.d.ts +6 -0
- package/dist/interfaces/MediaOnProductInput.d.ts +13 -0
- package/dist/interfaces/{MediaAddonOrderBy.d.ts → MediaOnProductOrderBy.d.ts} +2 -1
- package/dist/interfaces/Product.d.ts +7 -7
- package/dist/interfaces/ProductBoolExp.d.ts +5 -3
- package/dist/interfaces/ProductInput.d.ts +5 -5
- package/dist/interfaces/index.d.ts +10 -2
- package/package.json +4 -4
- package/dist/interfaces/AttachmentAddon.d.ts +0 -3
- package/dist/interfaces/MediaAddon.d.ts +0 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Media } from './Media';
|
|
2
|
+
import { Product } from './Product';
|
|
3
|
+
export declare const AttachmentOnProductEntityName = "AttachmentOnProduct";
|
|
4
|
+
export declare const AttachmentOnProductEntityLabel = "";
|
|
5
|
+
export interface AttachmentOnProduct {
|
|
6
|
+
id?: string;
|
|
7
|
+
seqValue?: number;
|
|
8
|
+
attachment?: Media;
|
|
9
|
+
product?: Product;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IdComparisonExp } from './IdComparisonExp';
|
|
2
|
+
import { NumberComparisonExp } from './NumberComparisonExp';
|
|
3
|
+
import { MediaBoolExp } from './MediaBoolExp';
|
|
4
|
+
import { ProductBoolExp } from './ProductBoolExp';
|
|
5
|
+
export interface AttachmentOnProductBoolExp {
|
|
6
|
+
_and?: AttachmentOnProductBoolExp[];
|
|
7
|
+
_or?: AttachmentOnProductBoolExp[];
|
|
8
|
+
_not?: AttachmentOnProductBoolExp;
|
|
9
|
+
id?: IdComparisonExp;
|
|
10
|
+
seqValue?: NumberComparisonExp;
|
|
11
|
+
attachment?: MediaBoolExp;
|
|
12
|
+
product?: ProductBoolExp;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AttachmentOnProduct } from './AttachmentOnProduct';
|
|
2
|
+
import { MediaInput } from './MediaInput';
|
|
3
|
+
import { ProductInput } from './ProductInput';
|
|
4
|
+
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
5
|
+
export interface AttachmentOnProductInput {
|
|
6
|
+
id?: string;
|
|
7
|
+
seqValue?: number;
|
|
8
|
+
attachment?: SetHasOne<MediaInput>;
|
|
9
|
+
product?: SetHasOne<ProductInput>;
|
|
10
|
+
}
|
|
11
|
+
export declare const attachmentOnProductToInputCascade: (entity: AttachmentOnProduct) => AttachmentOnProductInput;
|
|
12
|
+
export declare const attachmentOnProductToInput: (entity: AttachmentOnProduct) => AttachmentOnProductInput;
|
|
@@ -3,11 +3,11 @@ import { FileRef } from './FileRef';
|
|
|
3
3
|
import { MediaFolder } from './MediaFolder';
|
|
4
4
|
import { Post } from './Post';
|
|
5
5
|
import { User } from './User';
|
|
6
|
-
import { Product } from './Product';
|
|
7
6
|
import { Page } from './Page';
|
|
7
|
+
import { Product } from './Product';
|
|
8
8
|
import { ProductCategory } from './ProductCategory';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { MediaOnProduct } from './MediaOnProduct';
|
|
10
|
+
import { AttachmentOnProduct } from './AttachmentOnProduct';
|
|
11
11
|
import { Aggregate } from './Aggregate';
|
|
12
12
|
import { CustomizeMedia } from './CustomizeMedia';
|
|
13
13
|
export declare const MediaEntityName = "Media";
|
|
@@ -26,17 +26,17 @@ export interface Media extends CustomizeMedia {
|
|
|
26
26
|
folder?: MediaFolder;
|
|
27
27
|
coverOf?: Post[];
|
|
28
28
|
avatarOfUser?: User;
|
|
29
|
-
usedByProducts?: (Product & MediaAddon)[];
|
|
30
29
|
ogMetaOfPage?: Page[];
|
|
31
30
|
ogMetaOfProduct?: Product[];
|
|
32
31
|
ogMetaOfPost?: Post[];
|
|
33
|
-
attachmentOf?: (Product & AttachmentAddon)[];
|
|
34
32
|
meidaOfProduct?: ProductCategory[];
|
|
33
|
+
productMediaPivots?: MediaOnProduct[];
|
|
34
|
+
productAttacPivots?: AttachmentOnProduct[];
|
|
35
35
|
coverOfAggregate?: Aggregate;
|
|
36
|
-
usedByProductsAggregate?: Aggregate;
|
|
37
36
|
ogMetaOfPageAggregate?: Aggregate;
|
|
38
37
|
ogMetaOfProductAggregate?: Aggregate;
|
|
39
38
|
ogMetaOfPostAggregate?: Aggregate;
|
|
40
|
-
attachmentOfAggregate?: Aggregate;
|
|
41
39
|
meidaOfProductAggregate?: Aggregate;
|
|
40
|
+
productMediaPivotsAggregate?: Aggregate;
|
|
41
|
+
productAttacPivotsAggregate?: Aggregate;
|
|
42
42
|
}
|
|
@@ -8,9 +8,11 @@ import { EnumComparisonExp } from './EnumComparisonExp';
|
|
|
8
8
|
import { MediaFolderBoolExp } from './MediaFolderBoolExp';
|
|
9
9
|
import { PostBoolExp } from './PostBoolExp';
|
|
10
10
|
import { UserBoolExp } from './UserBoolExp';
|
|
11
|
-
import { ProductBoolExp } from './ProductBoolExp';
|
|
12
11
|
import { PageBoolExp } from './PageBoolExp';
|
|
12
|
+
import { ProductBoolExp } from './ProductBoolExp';
|
|
13
13
|
import { ProductCategoryBoolExp } from './ProductCategoryBoolExp';
|
|
14
|
+
import { MediaOnProductBoolExp } from './MediaOnProductBoolExp';
|
|
15
|
+
import { AttachmentOnProductBoolExp } from './AttachmentOnProductBoolExp';
|
|
14
16
|
export interface MediaBoolExp extends CustomizeMediaBoolExp {
|
|
15
17
|
_and?: MediaBoolExp[];
|
|
16
18
|
_or?: MediaBoolExp[];
|
|
@@ -27,10 +29,10 @@ export interface MediaBoolExp extends CustomizeMediaBoolExp {
|
|
|
27
29
|
folder?: MediaFolderBoolExp;
|
|
28
30
|
coverOf?: PostBoolExp;
|
|
29
31
|
avatarOfUser?: UserBoolExp;
|
|
30
|
-
usedByProducts?: ProductBoolExp;
|
|
31
32
|
ogMetaOfPage?: PageBoolExp;
|
|
32
33
|
ogMetaOfProduct?: ProductBoolExp;
|
|
33
34
|
ogMetaOfPost?: PostBoolExp;
|
|
34
|
-
attachmentOf?: ProductBoolExp;
|
|
35
35
|
meidaOfProduct?: ProductCategoryBoolExp;
|
|
36
|
+
productMediaPivots?: MediaOnProductBoolExp;
|
|
37
|
+
productAttacPivots?: AttachmentOnProductBoolExp;
|
|
36
38
|
}
|
|
@@ -4,11 +4,11 @@ import { FileRef } from './FileRef';
|
|
|
4
4
|
import { MediaFolderInput } from './MediaFolderInput';
|
|
5
5
|
import { PostInput } from './PostInput';
|
|
6
6
|
import { UserInput } from './UserInput';
|
|
7
|
-
import { ProductInput } from './ProductInput';
|
|
8
7
|
import { PageInput } from './PageInput';
|
|
8
|
+
import { ProductInput } from './ProductInput';
|
|
9
9
|
import { ProductCategoryInput } from './ProductCategoryInput';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { MediaOnProductInput } from './MediaOnProductInput';
|
|
11
|
+
import { AttachmentOnProductInput } from './AttachmentOnProductInput';
|
|
12
12
|
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
13
13
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
14
14
|
import { CustomizeMedia } from './CustomizeMedia';
|
|
@@ -26,12 +26,12 @@ export interface MediaInput extends CustomizeMedia {
|
|
|
26
26
|
folder?: SetHasOne<MediaFolderInput>;
|
|
27
27
|
coverOf?: SetHasMany<PostInput>;
|
|
28
28
|
avatarOfUser?: SetHasOne<UserInput>;
|
|
29
|
-
usedByProducts?: SetHasMany<ProductInput & MediaAddon>;
|
|
30
29
|
ogMetaOfPage?: SetHasMany<PageInput>;
|
|
31
30
|
ogMetaOfProduct?: SetHasMany<ProductInput>;
|
|
32
31
|
ogMetaOfPost?: SetHasMany<PostInput>;
|
|
33
|
-
attachmentOf?: SetHasMany<ProductInput & AttachmentAddon>;
|
|
34
32
|
meidaOfProduct?: SetHasMany<ProductCategoryInput>;
|
|
33
|
+
productMediaPivots?: SetHasMany<MediaOnProductInput>;
|
|
34
|
+
productAttacPivots?: SetHasMany<AttachmentOnProductInput>;
|
|
35
35
|
}
|
|
36
36
|
export declare const mediaToInputCascade: (entity: Media) => MediaInput;
|
|
37
37
|
export declare const mediaToInput: (entity: Media) => MediaInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Media } from './Media';
|
|
2
|
+
import { Product } from './Product';
|
|
3
|
+
export declare const MediaOnProductEntityName = "MediaOnProduct";
|
|
4
|
+
export declare const MediaOnProductEntityLabel = "";
|
|
5
|
+
export interface MediaOnProduct {
|
|
6
|
+
id?: string;
|
|
7
|
+
altText?: string;
|
|
8
|
+
seqValue?: number;
|
|
9
|
+
media?: Media;
|
|
10
|
+
product?: Product;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IdComparisonExp } from './IdComparisonExp';
|
|
2
|
+
import { StringComparisonExp } from './StringComparisonExp';
|
|
3
|
+
import { NumberComparisonExp } from './NumberComparisonExp';
|
|
4
|
+
import { MediaBoolExp } from './MediaBoolExp';
|
|
5
|
+
import { ProductBoolExp } from './ProductBoolExp';
|
|
6
|
+
export interface MediaOnProductBoolExp {
|
|
7
|
+
_and?: MediaOnProductBoolExp[];
|
|
8
|
+
_or?: MediaOnProductBoolExp[];
|
|
9
|
+
_not?: MediaOnProductBoolExp;
|
|
10
|
+
id?: IdComparisonExp;
|
|
11
|
+
altText?: StringComparisonExp;
|
|
12
|
+
seqValue?: NumberComparisonExp;
|
|
13
|
+
media?: MediaBoolExp;
|
|
14
|
+
product?: ProductBoolExp;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MediaOnProduct } from './MediaOnProduct';
|
|
2
|
+
import { MediaInput } from './MediaInput';
|
|
3
|
+
import { ProductInput } from './ProductInput';
|
|
4
|
+
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
5
|
+
export interface MediaOnProductInput {
|
|
6
|
+
id?: string;
|
|
7
|
+
altText?: string;
|
|
8
|
+
seqValue?: number;
|
|
9
|
+
media?: SetHasOne<MediaInput>;
|
|
10
|
+
product?: SetHasOne<ProductInput>;
|
|
11
|
+
}
|
|
12
|
+
export declare const mediaOnProductToInputCascade: (entity: MediaOnProduct) => MediaOnProductInput;
|
|
13
|
+
export declare const mediaOnProductToInput: (entity: MediaOnProduct) => MediaOnProductInput;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ProductCategory } from './ProductCategory';
|
|
2
|
-
import { Media } from './Media';
|
|
3
2
|
import { Tag } from './Tag';
|
|
3
|
+
import { Media } from './Media';
|
|
4
|
+
import { MediaOnProduct } from './MediaOnProduct';
|
|
5
|
+
import { AttachmentOnProduct } from './AttachmentOnProduct';
|
|
4
6
|
import { User } from './User';
|
|
5
|
-
import { MediaAddon } from './MediaAddon';
|
|
6
|
-
import { AttachmentAddon } from './AttachmentAddon';
|
|
7
7
|
import { Aggregate } from './Aggregate';
|
|
8
8
|
import { Publishable } from './Publishable';
|
|
9
9
|
export declare const ProductEntityName = "Product";
|
|
@@ -26,14 +26,14 @@ export interface Product extends Publishable {
|
|
|
26
26
|
*/
|
|
27
27
|
externalVideoUrl?: string;
|
|
28
28
|
category?: ProductCategory;
|
|
29
|
-
medias?: (Media & MediaAddon)[];
|
|
30
29
|
tags?: Tag[];
|
|
31
30
|
ogImage?: Media;
|
|
32
|
-
attachments?: (Media & AttachmentAddon)[];
|
|
33
31
|
draftOf?: Product;
|
|
32
|
+
mediaPivots?: MediaOnProduct[];
|
|
33
|
+
attachmentPivots?: AttachmentOnProduct[];
|
|
34
34
|
creator?: User;
|
|
35
35
|
draft?: Product;
|
|
36
|
-
mediasAggregate?: Aggregate;
|
|
37
36
|
tagsAggregate?: Aggregate;
|
|
38
|
-
|
|
37
|
+
mediaPivotsAggregate?: Aggregate;
|
|
38
|
+
attachmentPivotsAggregate?: Aggregate;
|
|
39
39
|
}
|
|
@@ -4,8 +4,10 @@ import { BooleanComparisonExp } from './BooleanComparisonExp';
|
|
|
4
4
|
import { NumberComparisonExp } from './NumberComparisonExp';
|
|
5
5
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
6
6
|
import { ProductCategoryBoolExp } from './ProductCategoryBoolExp';
|
|
7
|
-
import { MediaBoolExp } from './MediaBoolExp';
|
|
8
7
|
import { TagBoolExp } from './TagBoolExp';
|
|
8
|
+
import { MediaBoolExp } from './MediaBoolExp';
|
|
9
|
+
import { MediaOnProductBoolExp } from './MediaOnProductBoolExp';
|
|
10
|
+
import { AttachmentOnProductBoolExp } from './AttachmentOnProductBoolExp';
|
|
9
11
|
import { UserBoolExp } from './UserBoolExp';
|
|
10
12
|
export interface ProductBoolExp extends PublishableBoolExp {
|
|
11
13
|
_and?: ProductBoolExp[];
|
|
@@ -22,11 +24,11 @@ export interface ProductBoolExp extends PublishableBoolExp {
|
|
|
22
24
|
shortTitle?: StringComparisonExp;
|
|
23
25
|
externalVideoUrl?: StringComparisonExp;
|
|
24
26
|
category?: ProductCategoryBoolExp;
|
|
25
|
-
medias?: MediaBoolExp;
|
|
26
27
|
tags?: TagBoolExp;
|
|
27
28
|
ogImage?: MediaBoolExp;
|
|
28
|
-
attachments?: MediaBoolExp;
|
|
29
29
|
draftOf?: ProductBoolExp;
|
|
30
|
+
mediaPivots?: MediaOnProductBoolExp;
|
|
31
|
+
attachmentPivots?: AttachmentOnProductBoolExp;
|
|
30
32
|
creator?: UserBoolExp;
|
|
31
33
|
draft?: ProductBoolExp;
|
|
32
34
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Product } from './Product';
|
|
2
2
|
import { ProductCategoryInput } from './ProductCategoryInput';
|
|
3
|
-
import { MediaInput } from './MediaInput';
|
|
4
3
|
import { TagInput } from './TagInput';
|
|
4
|
+
import { MediaInput } from './MediaInput';
|
|
5
|
+
import { MediaOnProductInput } from './MediaOnProductInput';
|
|
6
|
+
import { AttachmentOnProductInput } from './AttachmentOnProductInput';
|
|
5
7
|
import { UserInput } from './UserInput';
|
|
6
|
-
import { MediaAddon } from './MediaAddon';
|
|
7
|
-
import { AttachmentAddon } from './AttachmentAddon';
|
|
8
8
|
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
9
9
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
10
10
|
import { Publishable } from './Publishable';
|
|
@@ -26,11 +26,11 @@ export interface ProductInput extends Publishable {
|
|
|
26
26
|
*/
|
|
27
27
|
externalVideoUrl?: string;
|
|
28
28
|
category?: SetHasOne<ProductCategoryInput>;
|
|
29
|
-
medias?: SetHasMany<MediaInput & MediaAddon>;
|
|
30
29
|
tags?: SetHasMany<TagInput>;
|
|
31
30
|
ogImage?: SetHasOne<MediaInput>;
|
|
32
|
-
attachments?: SetHasMany<MediaInput & AttachmentAddon>;
|
|
33
31
|
draftOf?: SetHasOne<ProductInput>;
|
|
32
|
+
mediaPivots?: SetHasMany<MediaOnProductInput>;
|
|
33
|
+
attachmentPivots?: SetHasMany<AttachmentOnProductInput>;
|
|
34
34
|
creator?: SetHasOne<UserInput>;
|
|
35
35
|
draft?: SetHasOne<ProductInput>;
|
|
36
36
|
}
|
|
@@ -150,7 +150,6 @@ export * from './ProductCategoryInput';
|
|
|
150
150
|
export * from './ProductCategoryBoolExp';
|
|
151
151
|
export * from './ProductCategoryOrderBy';
|
|
152
152
|
export * from './ProductCategoryDistinctExp';
|
|
153
|
-
export * from './MediaAddon';
|
|
154
153
|
export * from './ThemeSettings';
|
|
155
154
|
export * from './ProductSettings';
|
|
156
155
|
export * from './PostSettings';
|
|
@@ -158,7 +157,6 @@ export * from './FormSettings';
|
|
|
158
157
|
export * from './ExtendFieldType';
|
|
159
158
|
export * from './ComponentType';
|
|
160
159
|
export * from './ExtendField';
|
|
161
|
-
export * from './AttachmentAddon';
|
|
162
160
|
export * from './SmtpConfig';
|
|
163
161
|
export * from './SpamFilterRule';
|
|
164
162
|
export * from './SpamFilterRuleInput';
|
|
@@ -167,3 +165,13 @@ export * from './SpamFilterRuleOrderBy';
|
|
|
167
165
|
export * from './SpamFilterRuleDistinctExp';
|
|
168
166
|
export * from './EmailTemplates';
|
|
169
167
|
export * from './EmailTemplate';
|
|
168
|
+
export * from './MediaOnProduct';
|
|
169
|
+
export * from './MediaOnProductInput';
|
|
170
|
+
export * from './MediaOnProductBoolExp';
|
|
171
|
+
export * from './MediaOnProductOrderBy';
|
|
172
|
+
export * from './MediaOnProductDistinctExp';
|
|
173
|
+
export * from './AttachmentOnProduct';
|
|
174
|
+
export * from './AttachmentOnProductInput';
|
|
175
|
+
export * from './AttachmentOnProductBoolExp';
|
|
176
|
+
export * from './AttachmentOnProductOrderBy';
|
|
177
|
+
export * from './AttachmentOnProductDistinctExp';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/rxcms-models",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
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/eslint-config-custom": "0.1.1",
|
|
16
|
+
"@rxdrag/tsconfig": "0.1.1"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"swr": "^2.2.4",
|
|
20
|
-
"@rxdrag/entify-hooks": "0.1.
|
|
20
|
+
"@rxdrag/entify-hooks": "0.1.5"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint . --ext .ts,tsx",
|