@rxdrag/rxcms-models 0.1.2 → 0.1.4
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/fields/EnquiryFields.d.ts +12 -1
- package/dist/fields/ProductFields.d.ts +3 -0
- package/dist/fields/WebsiteSettingsFields.d.ts +8 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +40 -443
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/Enquiry.d.ts +12 -1
- package/dist/interfaces/EnquiryBoolExp.d.ts +10 -1
- package/dist/interfaces/EnquiryDistinctExp.d.ts +12 -1
- package/dist/interfaces/EnquiryInput.d.ts +12 -1
- package/dist/interfaces/EnquiryOrderBy.d.ts +12 -1
- package/dist/interfaces/IdComparisonExp.d.ts +1 -0
- package/dist/interfaces/Product.d.ts +3 -0
- package/dist/interfaces/ProductBoolExp.d.ts +4 -0
- package/dist/interfaces/ProductDistinctExp.d.ts +3 -0
- package/dist/interfaces/ProductInput.d.ts +3 -0
- package/dist/interfaces/ProductOrderBy.d.ts +3 -0
- package/dist/interfaces/User.d.ts +2 -2
- package/dist/interfaces/UserBoolExp.d.ts +2 -2
- package/dist/interfaces/UserDistinctExp.d.ts +2 -2
- package/dist/interfaces/UserInput.d.ts +2 -2
- package/dist/interfaces/UserOrderBy.d.ts +2 -2
- package/dist/interfaces/WebsiteSettings.d.ts +8 -0
- package/dist/interfaces/WebsiteSettingsBoolExp.d.ts +8 -0
- package/dist/interfaces/WebsiteSettingsDistinctExp.d.ts +8 -0
- package/dist/interfaces/WebsiteSettingsInput.d.ts +8 -0
- package/dist/interfaces/WebsiteSettingsOrderBy.d.ts +8 -0
- package/dist/interfaces/WebsiteUser.d.ts +2 -2
- package/dist/interfaces/{WebSiteUserBoolExp.d.ts → WebsiteUserBoolExp.d.ts} +4 -4
- package/dist/interfaces/{WebSiteUserDistinctExp.d.ts → WebsiteUserDistinctExp.d.ts} +2 -2
- package/dist/interfaces/{WebSiteUserOrderBy.d.ts → WebsiteUserOrderBy.d.ts} +1 -1
- package/package.json +2 -3
- package/dist/hooks/index.d.ts +0 -110
- package/dist/hooks/useDeleteAbility.d.ts +0 -8
- package/dist/hooks/useDeleteAbilityById.d.ts +0 -8
- package/dist/hooks/useDeleteCustomer.d.ts +0 -8
- package/dist/hooks/useDeleteCustomerById.d.ts +0 -8
- package/dist/hooks/useDeleteEnquiry.d.ts +0 -8
- package/dist/hooks/useDeleteEnquiryById.d.ts +0 -8
- package/dist/hooks/useDeleteLang.d.ts +0 -8
- package/dist/hooks/useDeleteLangById.d.ts +0 -8
- package/dist/hooks/useDeleteMedia.d.ts +0 -8
- package/dist/hooks/useDeleteMediaById.d.ts +0 -8
- package/dist/hooks/useDeleteMediaFolder.d.ts +0 -8
- package/dist/hooks/useDeleteMediaFolderById.d.ts +0 -8
- package/dist/hooks/useDeletePage.d.ts +0 -8
- package/dist/hooks/useDeletePageById.d.ts +0 -8
- package/dist/hooks/useDeletePost.d.ts +0 -8
- package/dist/hooks/useDeletePostById.d.ts +0 -8
- package/dist/hooks/useDeletePostCategory.d.ts +0 -8
- package/dist/hooks/useDeletePostCategoryById.d.ts +0 -8
- package/dist/hooks/useDeleteProduct.d.ts +0 -8
- package/dist/hooks/useDeleteProductById.d.ts +0 -8
- package/dist/hooks/useDeleteProductCategory.d.ts +0 -8
- package/dist/hooks/useDeleteProductCategoryById.d.ts +0 -8
- package/dist/hooks/useDeleteRole.d.ts +0 -8
- package/dist/hooks/useDeleteRoleById.d.ts +0 -8
- package/dist/hooks/useDeleteSlug.d.ts +0 -8
- package/dist/hooks/useDeleteSlugById.d.ts +0 -8
- package/dist/hooks/useDeleteTag.d.ts +0 -8
- package/dist/hooks/useDeleteTagById.d.ts +0 -8
- package/dist/hooks/useDeleteTemplate.d.ts +0 -8
- package/dist/hooks/useDeleteTemplateById.d.ts +0 -8
- package/dist/hooks/useDeleteTemplateCategory.d.ts +0 -8
- package/dist/hooks/useDeleteTemplateCategoryById.d.ts +0 -8
- package/dist/hooks/useDeleteTheme.d.ts +0 -8
- package/dist/hooks/useDeleteThemeById.d.ts +0 -8
- package/dist/hooks/useDeleteUser.d.ts +0 -8
- package/dist/hooks/useDeleteUserById.d.ts +0 -8
- package/dist/hooks/useDeleteWebsite.d.ts +0 -8
- package/dist/hooks/useDeleteWebsiteById.d.ts +0 -8
- package/dist/hooks/useDeleteWebsiteMeta.d.ts +0 -8
- package/dist/hooks/useDeleteWebsiteMetaById.d.ts +0 -8
- package/dist/hooks/useDeleteWebsiteSettings.d.ts +0 -8
- package/dist/hooks/useDeleteWebsiteSettingsById.d.ts +0 -8
- package/dist/hooks/useDeleteWebsiteType.d.ts +0 -8
- package/dist/hooks/useDeleteWebsiteTypeById.d.ts +0 -8
- package/dist/hooks/useUpsertOneAbility.d.ts +0 -8
- package/dist/hooks/useUpsertOneCustomer.d.ts +0 -8
- package/dist/hooks/useUpsertOneEnquiry.d.ts +0 -8
- package/dist/hooks/useUpsertOneLang.d.ts +0 -8
- package/dist/hooks/useUpsertOneMedia.d.ts +0 -8
- package/dist/hooks/useUpsertOneMediaFolder.d.ts +0 -8
- package/dist/hooks/useUpsertOnePage.d.ts +0 -8
- package/dist/hooks/useUpsertOnePost.d.ts +0 -8
- package/dist/hooks/useUpsertOnePostCategory.d.ts +0 -8
- package/dist/hooks/useUpsertOneProduct.d.ts +0 -8
- package/dist/hooks/useUpsertOneProductCategory.d.ts +0 -8
- package/dist/hooks/useUpsertOneRole.d.ts +0 -8
- package/dist/hooks/useUpsertOneSlug.d.ts +0 -8
- package/dist/hooks/useUpsertOneTag.d.ts +0 -8
- package/dist/hooks/useUpsertOneTemplate.d.ts +0 -8
- package/dist/hooks/useUpsertOneTemplateCategory.d.ts +0 -8
- package/dist/hooks/useUpsertOneTheme.d.ts +0 -8
- package/dist/hooks/useUpsertOneUser.d.ts +0 -8
- package/dist/hooks/useUpsertOneWebsite.d.ts +0 -8
- package/dist/hooks/useUpsertOneWebsiteMeta.d.ts +0 -8
- package/dist/hooks/useUpsertOneWebsiteSettings.d.ts +0 -8
- package/dist/hooks/useUpsertOneWebsiteType.d.ts +0 -8
|
@@ -5,6 +5,17 @@ export declare const EnquiryEntityLabel = "";
|
|
|
5
5
|
export interface Enquiry extends WebsitePart {
|
|
6
6
|
id?: string;
|
|
7
7
|
title?: string;
|
|
8
|
-
|
|
8
|
+
company?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
fromUrl?: string;
|
|
13
|
+
formIp?: string;
|
|
14
|
+
userAgent?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 来源cta
|
|
17
|
+
*/
|
|
18
|
+
fromCta?: string;
|
|
19
|
+
read?: boolean;
|
|
9
20
|
customer?: Customer;
|
|
10
21
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WebsitePartBoolExp } from './WebsitePartBoolExp';
|
|
2
2
|
import { IdComparisonExp } from './IdComparisonExp';
|
|
3
3
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
4
|
+
import { BooleanComparisonExp } from './BooleanComparisonExp';
|
|
4
5
|
import { CustomerBoolExp } from './CustomerBoolExp';
|
|
5
6
|
export interface EnquiryBoolExp extends WebsitePartBoolExp {
|
|
6
7
|
_and?: EnquiryBoolExp[];
|
|
@@ -8,6 +9,14 @@ export interface EnquiryBoolExp extends WebsitePartBoolExp {
|
|
|
8
9
|
_not?: EnquiryBoolExp;
|
|
9
10
|
id?: IdComparisonExp;
|
|
10
11
|
title?: StringComparisonExp;
|
|
11
|
-
|
|
12
|
+
company?: StringComparisonExp;
|
|
13
|
+
name?: StringComparisonExp;
|
|
14
|
+
email?: StringComparisonExp;
|
|
15
|
+
message?: StringComparisonExp;
|
|
16
|
+
fromUrl?: StringComparisonExp;
|
|
17
|
+
formIp?: StringComparisonExp;
|
|
18
|
+
userAgent?: StringComparisonExp;
|
|
19
|
+
fromCta?: StringComparisonExp;
|
|
20
|
+
read?: BooleanComparisonExp;
|
|
12
21
|
customer?: CustomerBoolExp;
|
|
13
22
|
}
|
|
@@ -2,7 +2,18 @@ import { WebsitePartDistinctExp } from './WebsitePartDistinctExp';
|
|
|
2
2
|
export declare enum EnquiryDistinctEnum {
|
|
3
3
|
id = "id",
|
|
4
4
|
title = "title",
|
|
5
|
-
|
|
5
|
+
company = "company",
|
|
6
|
+
name = "name",
|
|
7
|
+
email = "email",
|
|
8
|
+
message = "message",
|
|
9
|
+
fromUrl = "fromUrl",
|
|
10
|
+
formIp = "formIp",
|
|
11
|
+
userAgent = "userAgent",
|
|
12
|
+
/**
|
|
13
|
+
* 来源cta
|
|
14
|
+
*/
|
|
15
|
+
fromCta = "fromCta",
|
|
16
|
+
read = "read",
|
|
6
17
|
websiteId = "websiteId",
|
|
7
18
|
/**
|
|
8
19
|
* 创建时间
|
|
@@ -5,7 +5,18 @@ import { WebsitePart } from './WebsitePart';
|
|
|
5
5
|
export interface EnquiryInput extends WebsitePart {
|
|
6
6
|
id?: string;
|
|
7
7
|
title?: string;
|
|
8
|
-
|
|
8
|
+
company?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
fromUrl?: string;
|
|
13
|
+
formIp?: string;
|
|
14
|
+
userAgent?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 来源cta
|
|
17
|
+
*/
|
|
18
|
+
fromCta?: string;
|
|
19
|
+
read?: boolean;
|
|
9
20
|
customer?: SetHasOne<CustomerInput>;
|
|
10
21
|
}
|
|
11
22
|
export declare const enquiryToInputCascade: (entity: Enquiry) => EnquiryInput;
|
|
@@ -3,5 +3,16 @@ import { WebsitePartOrderBy } from './WebsitePartOrderBy';
|
|
|
3
3
|
export interface EnquiryOrderBy extends WebsitePartOrderBy {
|
|
4
4
|
id?: OrderBy;
|
|
5
5
|
title?: OrderBy;
|
|
6
|
-
|
|
6
|
+
company?: OrderBy;
|
|
7
|
+
name?: OrderBy;
|
|
8
|
+
email?: OrderBy;
|
|
9
|
+
message?: OrderBy;
|
|
10
|
+
fromUrl?: OrderBy;
|
|
11
|
+
formIp?: OrderBy;
|
|
12
|
+
userAgent?: OrderBy;
|
|
13
|
+
/**
|
|
14
|
+
* 来源cta
|
|
15
|
+
*/
|
|
16
|
+
fromCta?: OrderBy;
|
|
17
|
+
read?: OrderBy;
|
|
7
18
|
}
|
|
@@ -12,6 +12,9 @@ export interface Product extends Publishable {
|
|
|
12
12
|
id?: string;
|
|
13
13
|
published?: boolean;
|
|
14
14
|
summary?: string;
|
|
15
|
+
featured?: boolean;
|
|
16
|
+
showInNavMenu?: boolean;
|
|
17
|
+
seqValue?: number;
|
|
15
18
|
category?: ProductCategory;
|
|
16
19
|
medias?: (Media & MediaAddon)[];
|
|
17
20
|
slug?: Slug;
|
|
@@ -2,6 +2,7 @@ import { PublishableBoolExp } from './PublishableBoolExp';
|
|
|
2
2
|
import { IdComparisonExp } from './IdComparisonExp';
|
|
3
3
|
import { BooleanComparisonExp } from './BooleanComparisonExp';
|
|
4
4
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
5
|
+
import { NumberComparisonExp } from './NumberComparisonExp';
|
|
5
6
|
import { ProductCategoryBoolExp } from './ProductCategoryBoolExp';
|
|
6
7
|
import { MediaBoolExp } from './MediaBoolExp';
|
|
7
8
|
import { SlugBoolExp } from './SlugBoolExp';
|
|
@@ -14,6 +15,9 @@ export interface ProductBoolExp extends PublishableBoolExp {
|
|
|
14
15
|
id?: IdComparisonExp;
|
|
15
16
|
published?: BooleanComparisonExp;
|
|
16
17
|
summary?: StringComparisonExp;
|
|
18
|
+
featured?: BooleanComparisonExp;
|
|
19
|
+
showInNavMenu?: BooleanComparisonExp;
|
|
20
|
+
seqValue?: NumberComparisonExp;
|
|
17
21
|
category?: ProductCategoryBoolExp;
|
|
18
22
|
medias?: MediaBoolExp;
|
|
19
23
|
slug?: SlugBoolExp;
|
|
@@ -12,6 +12,9 @@ export interface ProductInput extends Publishable {
|
|
|
12
12
|
id?: string;
|
|
13
13
|
published?: boolean;
|
|
14
14
|
summary?: string;
|
|
15
|
+
featured?: boolean;
|
|
16
|
+
showInNavMenu?: boolean;
|
|
17
|
+
seqValue?: number;
|
|
15
18
|
category?: SetHasOne<ProductCategoryInput>;
|
|
16
19
|
medias?: SetHasMany<MediaInput & MediaAddon>;
|
|
17
20
|
slug?: SetHasOne<SlugInput>;
|
|
@@ -4,10 +4,10 @@ import { Product } from './Product';
|
|
|
4
4
|
import { Post } from './Post';
|
|
5
5
|
import { Website } from './Website';
|
|
6
6
|
import { Aggregate } from './Aggregate';
|
|
7
|
-
import {
|
|
7
|
+
import { WebsiteUser } from './WebsiteUser';
|
|
8
8
|
export declare const UserEntityName = "User";
|
|
9
9
|
export declare const UserEntityLabel = "";
|
|
10
|
-
export interface User extends
|
|
10
|
+
export interface User extends WebsiteUser {
|
|
11
11
|
id?: string;
|
|
12
12
|
loginName?: string;
|
|
13
13
|
name?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebsiteUserBoolExp } from './WebsiteUserBoolExp';
|
|
2
2
|
import { IdComparisonExp } from './IdComparisonExp';
|
|
3
3
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
4
4
|
import { BooleanComparisonExp } from './BooleanComparisonExp';
|
|
@@ -8,7 +8,7 @@ import { MediaBoolExp } from './MediaBoolExp';
|
|
|
8
8
|
import { ProductBoolExp } from './ProductBoolExp';
|
|
9
9
|
import { PostBoolExp } from './PostBoolExp';
|
|
10
10
|
import { WebsiteBoolExp } from './WebsiteBoolExp';
|
|
11
|
-
export interface UserBoolExp extends
|
|
11
|
+
export interface UserBoolExp extends WebsiteUserBoolExp {
|
|
12
12
|
_and?: UserBoolExp[];
|
|
13
13
|
_or?: UserBoolExp[];
|
|
14
14
|
_not?: UserBoolExp;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebsiteUserDistinctExp } from './WebsiteUserDistinctExp';
|
|
2
2
|
export declare enum UserDistinctEnum {
|
|
3
3
|
id = "id",
|
|
4
4
|
loginName = "loginName",
|
|
@@ -40,4 +40,4 @@ export declare enum UserDistinctEnum {
|
|
|
40
40
|
*/
|
|
41
41
|
summary = "summary"
|
|
42
42
|
}
|
|
43
|
-
export type UserDistinctExp = UserDistinctEnum |
|
|
43
|
+
export type UserDistinctExp = UserDistinctEnum | WebsiteUserDistinctExp;
|
|
@@ -6,8 +6,8 @@ import { PostInput } from './PostInput';
|
|
|
6
6
|
import { WebsiteInput } from './WebsiteInput';
|
|
7
7
|
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
8
8
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
9
|
-
import {
|
|
10
|
-
export interface UserInput extends
|
|
9
|
+
import { WebsiteUser } from './WebsiteUser';
|
|
10
|
+
export interface UserInput extends WebsiteUser {
|
|
11
11
|
id?: string;
|
|
12
12
|
loginName?: string;
|
|
13
13
|
name?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OrderBy } from '@rxdrag/entify-hooks';
|
|
2
|
-
import {
|
|
3
|
-
export interface UserOrderBy extends
|
|
2
|
+
import { WebsiteUserOrderBy } from './WebsiteUserOrderBy';
|
|
3
|
+
export interface UserOrderBy extends WebsiteUserOrderBy {
|
|
4
4
|
id?: OrderBy;
|
|
5
5
|
loginName?: OrderBy;
|
|
6
6
|
name?: OrderBy;
|
|
@@ -7,4 +7,12 @@ export interface WebsiteSettingsBoolExp extends WebsitePartBoolExp {
|
|
|
7
7
|
_not?: WebsiteSettingsBoolExp;
|
|
8
8
|
id?: IdComparisonExp;
|
|
9
9
|
smtpConfig?: StringComparisonExp;
|
|
10
|
+
contact?: StringComparisonExp;
|
|
11
|
+
address?: StringComparisonExp;
|
|
12
|
+
email?: StringComparisonExp;
|
|
13
|
+
tel?: StringComparisonExp;
|
|
14
|
+
fax?: StringComparisonExp;
|
|
15
|
+
wechat?: StringComparisonExp;
|
|
16
|
+
whatsapp?: StringComparisonExp;
|
|
17
|
+
mobile?: StringComparisonExp;
|
|
10
18
|
}
|
|
@@ -5,6 +5,14 @@ export declare enum WebsiteSettingsDistinctEnum {
|
|
|
5
5
|
* 邮件配置
|
|
6
6
|
*/
|
|
7
7
|
smtpConfig = "smtpConfig",
|
|
8
|
+
contact = "contact",
|
|
9
|
+
address = "address",
|
|
10
|
+
email = "email",
|
|
11
|
+
tel = "tel",
|
|
12
|
+
fax = "fax",
|
|
13
|
+
wechat = "wechat",
|
|
14
|
+
whatsapp = "whatsapp",
|
|
15
|
+
mobile = "mobile",
|
|
8
16
|
websiteId = "websiteId",
|
|
9
17
|
/**
|
|
10
18
|
* 创建时间
|
|
@@ -6,6 +6,14 @@ export interface WebsiteSettingsInput extends WebsitePart {
|
|
|
6
6
|
* 邮件配置
|
|
7
7
|
*/
|
|
8
8
|
smtpConfig?: string;
|
|
9
|
+
contact?: string;
|
|
10
|
+
address?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
tel?: string;
|
|
13
|
+
fax?: string;
|
|
14
|
+
wechat?: string;
|
|
15
|
+
whatsapp?: string;
|
|
16
|
+
mobile?: string;
|
|
9
17
|
}
|
|
10
18
|
export declare const websiteSettingsToInputCascade: (entity: WebsiteSettings) => WebsiteSettingsInput;
|
|
11
19
|
export declare const websiteSettingsToInput: (entity: WebsiteSettings) => WebsiteSettingsInput;
|
|
@@ -6,4 +6,12 @@ export interface WebsiteSettingsOrderBy extends WebsitePartOrderBy {
|
|
|
6
6
|
* 邮件配置
|
|
7
7
|
*/
|
|
8
8
|
smtpConfig?: OrderBy;
|
|
9
|
+
contact?: OrderBy;
|
|
10
|
+
address?: OrderBy;
|
|
11
|
+
email?: OrderBy;
|
|
12
|
+
tel?: OrderBy;
|
|
13
|
+
fax?: OrderBy;
|
|
14
|
+
wechat?: OrderBy;
|
|
15
|
+
whatsapp?: OrderBy;
|
|
16
|
+
mobile?: OrderBy;
|
|
9
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserType } from './UserType';
|
|
2
2
|
import { Person } from './Person';
|
|
3
|
-
export interface
|
|
3
|
+
export interface WebsiteUser extends Person {
|
|
4
4
|
id?: string;
|
|
5
5
|
/**
|
|
6
6
|
* 职位
|
|
@@ -9,6 +9,6 @@ export interface WebSiteUser extends Person {
|
|
|
9
9
|
/**
|
|
10
10
|
* 自我介绍
|
|
11
11
|
*/
|
|
12
|
-
profile?:
|
|
12
|
+
profile?: any;
|
|
13
13
|
userType?: UserType;
|
|
14
14
|
}
|
|
@@ -3,10 +3,10 @@ import { PersonBoolExp } from './PersonBoolExp';
|
|
|
3
3
|
import { IdComparisonExp } from './IdComparisonExp';
|
|
4
4
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
5
5
|
import { EnumComparisonExp } from './EnumComparisonExp';
|
|
6
|
-
export interface
|
|
7
|
-
_and?:
|
|
8
|
-
_or?:
|
|
9
|
-
_not?:
|
|
6
|
+
export interface WebsiteUserBoolExp extends PersonBoolExp {
|
|
7
|
+
_and?: WebsiteUserBoolExp[];
|
|
8
|
+
_or?: WebsiteUserBoolExp[];
|
|
9
|
+
_not?: WebsiteUserBoolExp;
|
|
10
10
|
id?: IdComparisonExp;
|
|
11
11
|
postion?: StringComparisonExp;
|
|
12
12
|
profile?: unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PersonDistinctExp } from './PersonDistinctExp';
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum WebsiteUserDistinctEnum {
|
|
3
3
|
id = "id",
|
|
4
4
|
/**
|
|
5
5
|
* 职位
|
|
@@ -34,4 +34,4 @@ export declare enum WebSiteUserDistinctEnum {
|
|
|
34
34
|
*/
|
|
35
35
|
summary = "summary"
|
|
36
36
|
}
|
|
37
|
-
export type
|
|
37
|
+
export type WebsiteUserDistinctExp = WebsiteUserDistinctEnum | PersonDistinctExp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/rxcms-models",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"swr": "^2.2.4",
|
|
20
|
-
"@rxdrag/entify-hooks": "0.0.
|
|
21
|
-
"@rxdrag/rxcms-entify-wrapper": "0.0.1"
|
|
20
|
+
"@rxdrag/entify-hooks": "0.0.2"
|
|
22
21
|
},
|
|
23
22
|
"scripts": {
|
|
24
23
|
"lint": "eslint . --ext .ts,tsx",
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
export * from './useUserList';
|
|
2
|
-
export * from './useOneUser';
|
|
3
|
-
export * from './useUpsertOneUser';
|
|
4
|
-
export * from './useDeleteUserById';
|
|
5
|
-
export * from './useDeleteUser';
|
|
6
|
-
export * from './useRoleList';
|
|
7
|
-
export * from './useOneRole';
|
|
8
|
-
export * from './useUpsertOneRole';
|
|
9
|
-
export * from './useDeleteRoleById';
|
|
10
|
-
export * from './useDeleteRole';
|
|
11
|
-
export * from './useAbilityList';
|
|
12
|
-
export * from './useOneAbility';
|
|
13
|
-
export * from './useUpsertOneAbility';
|
|
14
|
-
export * from './useDeleteAbilityById';
|
|
15
|
-
export * from './useDeleteAbility';
|
|
16
|
-
export * from './useMediaList';
|
|
17
|
-
export * from './useOneMedia';
|
|
18
|
-
export * from './useUpsertOneMedia';
|
|
19
|
-
export * from './useDeleteMediaById';
|
|
20
|
-
export * from './useDeleteMedia';
|
|
21
|
-
export * from './useWebsiteList';
|
|
22
|
-
export * from './useOneWebsite';
|
|
23
|
-
export * from './useUpsertOneWebsite';
|
|
24
|
-
export * from './useDeleteWebsiteById';
|
|
25
|
-
export * from './useDeleteWebsite';
|
|
26
|
-
export * from './useLangList';
|
|
27
|
-
export * from './useOneLang';
|
|
28
|
-
export * from './useUpsertOneLang';
|
|
29
|
-
export * from './useDeleteLangById';
|
|
30
|
-
export * from './useDeleteLang';
|
|
31
|
-
export * from './useWebsiteTypeList';
|
|
32
|
-
export * from './useOneWebsiteType';
|
|
33
|
-
export * from './useUpsertOneWebsiteType';
|
|
34
|
-
export * from './useDeleteWebsiteTypeById';
|
|
35
|
-
export * from './useDeleteWebsiteType';
|
|
36
|
-
export * from './usePageList';
|
|
37
|
-
export * from './useOnePage';
|
|
38
|
-
export * from './useUpsertOnePage';
|
|
39
|
-
export * from './useDeletePageById';
|
|
40
|
-
export * from './useDeletePage';
|
|
41
|
-
export * from './usePostList';
|
|
42
|
-
export * from './useOnePost';
|
|
43
|
-
export * from './useUpsertOnePost';
|
|
44
|
-
export * from './useDeletePostById';
|
|
45
|
-
export * from './useDeletePost';
|
|
46
|
-
export * from './useProductList';
|
|
47
|
-
export * from './useOneProduct';
|
|
48
|
-
export * from './useUpsertOneProduct';
|
|
49
|
-
export * from './useDeleteProductById';
|
|
50
|
-
export * from './useDeleteProduct';
|
|
51
|
-
export * from './useSlugList';
|
|
52
|
-
export * from './useOneSlug';
|
|
53
|
-
export * from './useUpsertOneSlug';
|
|
54
|
-
export * from './useDeleteSlugById';
|
|
55
|
-
export * from './useDeleteSlug';
|
|
56
|
-
export * from './useEnquiryList';
|
|
57
|
-
export * from './useOneEnquiry';
|
|
58
|
-
export * from './useUpsertOneEnquiry';
|
|
59
|
-
export * from './useDeleteEnquiryById';
|
|
60
|
-
export * from './useDeleteEnquiry';
|
|
61
|
-
export * from './useWebsiteMetaList';
|
|
62
|
-
export * from './useOneWebsiteMeta';
|
|
63
|
-
export * from './useUpsertOneWebsiteMeta';
|
|
64
|
-
export * from './useDeleteWebsiteMetaById';
|
|
65
|
-
export * from './useDeleteWebsiteMeta';
|
|
66
|
-
export * from './useWebsiteSettingsList';
|
|
67
|
-
export * from './useOneWebsiteSettings';
|
|
68
|
-
export * from './useUpsertOneWebsiteSettings';
|
|
69
|
-
export * from './useDeleteWebsiteSettingsById';
|
|
70
|
-
export * from './useDeleteWebsiteSettings';
|
|
71
|
-
export * from './useTemplateList';
|
|
72
|
-
export * from './useOneTemplate';
|
|
73
|
-
export * from './useUpsertOneTemplate';
|
|
74
|
-
export * from './useDeleteTemplateById';
|
|
75
|
-
export * from './useDeleteTemplate';
|
|
76
|
-
export * from './useTemplateCategoryList';
|
|
77
|
-
export * from './useOneTemplateCategory';
|
|
78
|
-
export * from './useUpsertOneTemplateCategory';
|
|
79
|
-
export * from './useDeleteTemplateCategoryById';
|
|
80
|
-
export * from './useDeleteTemplateCategory';
|
|
81
|
-
export * from './useThemeList';
|
|
82
|
-
export * from './useOneTheme';
|
|
83
|
-
export * from './useUpsertOneTheme';
|
|
84
|
-
export * from './useDeleteThemeById';
|
|
85
|
-
export * from './useDeleteTheme';
|
|
86
|
-
export * from './useMediaFolderList';
|
|
87
|
-
export * from './useOneMediaFolder';
|
|
88
|
-
export * from './useUpsertOneMediaFolder';
|
|
89
|
-
export * from './useDeleteMediaFolderById';
|
|
90
|
-
export * from './useDeleteMediaFolder';
|
|
91
|
-
export * from './usePostCategoryList';
|
|
92
|
-
export * from './useOnePostCategory';
|
|
93
|
-
export * from './useUpsertOnePostCategory';
|
|
94
|
-
export * from './useDeletePostCategoryById';
|
|
95
|
-
export * from './useDeletePostCategory';
|
|
96
|
-
export * from './useTagList';
|
|
97
|
-
export * from './useOneTag';
|
|
98
|
-
export * from './useUpsertOneTag';
|
|
99
|
-
export * from './useDeleteTagById';
|
|
100
|
-
export * from './useDeleteTag';
|
|
101
|
-
export * from './useCustomerList';
|
|
102
|
-
export * from './useOneCustomer';
|
|
103
|
-
export * from './useUpsertOneCustomer';
|
|
104
|
-
export * from './useDeleteCustomerById';
|
|
105
|
-
export * from './useDeleteCustomer';
|
|
106
|
-
export * from './useProductCategoryList';
|
|
107
|
-
export * from './useOneProductCategory';
|
|
108
|
-
export * from './useUpsertOneProductCategory';
|
|
109
|
-
export * from './useDeleteProductCategoryById';
|
|
110
|
-
export * from './useDeleteProductCategory';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Ability } from '../interfaces';
|
|
4
|
-
export declare function useDeleteAbility(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<Ability> | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Ability } from '../interfaces';
|
|
4
|
-
export declare function useDeleteAbilityById(options?: IMutationOptions & IIndicatorOptions): [(id: string) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: Ability | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Customer } from '../interfaces';
|
|
4
|
-
export declare function useDeleteCustomer(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<Customer> | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Customer } from '../interfaces';
|
|
4
|
-
export declare function useDeleteCustomerById(options?: IMutationOptions & IIndicatorOptions): [(id: string) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: Customer | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Enquiry } from '../interfaces';
|
|
4
|
-
export declare function useDeleteEnquiry(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<Enquiry> | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Enquiry } from '../interfaces';
|
|
4
|
-
export declare function useDeleteEnquiryById(options?: IMutationOptions & IIndicatorOptions): [(id: string) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: Enquiry | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Lang } from '../interfaces';
|
|
4
|
-
export declare function useDeleteLang(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<Lang> | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Lang } from '../interfaces';
|
|
4
|
-
export declare function useDeleteLangById(options?: IMutationOptions & IIndicatorOptions): [(id: string) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: Lang | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Media } from '../interfaces';
|
|
4
|
-
export declare function useDeleteMedia(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<Media> | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Media } from '../interfaces';
|
|
4
|
-
export declare function useDeleteMediaById(options?: IMutationOptions & IIndicatorOptions): [(id: string) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: Media | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { MediaFolder } from '../interfaces';
|
|
4
|
-
export declare function useDeleteMediaFolder(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<MediaFolder> | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { MediaFolder } from '../interfaces';
|
|
4
|
-
export declare function useDeleteMediaFolderById(options?: IMutationOptions & IIndicatorOptions): [(id: string) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: MediaFolder | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Page } from '../interfaces';
|
|
4
|
-
export declare function useDeletePage(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<Page> | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Page } from '../interfaces';
|
|
4
|
-
export declare function useDeletePageById(options?: IMutationOptions & IIndicatorOptions): [(id: string) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: Page | undefined;
|
|
8
|
-
}];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IMutationOptions } from '@rxdrag/entify-hooks';
|
|
2
|
-
import { IIndicatorOptions } from '@rxdrag/rxcms-entify-wrapper';
|
|
3
|
-
import { Post } from '../interfaces';
|
|
4
|
-
export declare function useDeletePost(options?: IMutationOptions & IIndicatorOptions): [(where: unknown) => void, {
|
|
5
|
-
isMutating?: boolean | undefined;
|
|
6
|
-
error?: Error | undefined;
|
|
7
|
-
data?: import("@rxdrag/entify-hooks").IDeleteResponse<Post> | undefined;
|
|
8
|
-
}];
|