jamespot-user-api 1.0.154 → 1.0.155
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/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +11 -11
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +8 -8
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +9 -9
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/AdminLicenseUser.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseAutocomplete.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/ObjectListProps.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchCategoryValue.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
- package/documentation/interfaces/SearchQueryOption.html +1 -1
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +1 -1
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultPropsApp.html +1 -1
- package/documentation/interfaces/SearchResultPropsObject.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -10
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/file/file.d.ts +28 -6
- package/lib/src/apis/user/user.d.ts +5 -59
- package/lib/src/apis/user/user.mock.d.ts +1 -2
- package/lib/src/types/adminLicence.d.ts +1 -1
- package/lib/src/types/common.d.ts +10 -1
- package/lib/src/types/file.d.ts +202 -21
- package/lib/src/types/hook.d.ts +143 -0
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/types/user.d.ts +1071 -56
- package/lib/src/types/utils.d.ts +10 -0
- package/lib/src/util/Test.d.ts +0 -25
- package/lib/src/util/file.mock.d.ts +52 -52
- package/lib/src/util/network.d.ts +2 -2
- package/package.json +1 -1
- package/phpunitMock/tvDisplayGetChannel-slideshow.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiWrapper, FileCropConfig, UploadConfig, jObjectLittle, jArticleLittle, jFileLittle,
|
|
1
|
+
import { ApiWrapper, FileCropConfig, UploadConfig, jObjectLittle, jArticleLittle, jFileLittle, UserDownload } from '../../types';
|
|
2
2
|
import { JBaseApi } from '../base';
|
|
3
3
|
export declare class JFileApi extends JBaseApi {
|
|
4
4
|
/**
|
|
@@ -12,12 +12,12 @@ export declare class JFileApi extends JBaseApi {
|
|
|
12
12
|
mainType: string;
|
|
13
13
|
uri: string;
|
|
14
14
|
dateCreation: string;
|
|
15
|
+
dateModified: string | null;
|
|
15
16
|
title: string;
|
|
16
17
|
_url: string;
|
|
17
|
-
dateModified: string | null;
|
|
18
18
|
mimetype: string;
|
|
19
|
-
path?: string;
|
|
20
19
|
size: number;
|
|
20
|
+
path?: string | undefined;
|
|
21
21
|
}, import("../../types").BaseMessages>;
|
|
22
22
|
token: string;
|
|
23
23
|
}>;
|
|
@@ -34,12 +34,12 @@ export declare class JFileApi extends JBaseApi {
|
|
|
34
34
|
mainType: string;
|
|
35
35
|
uri: string;
|
|
36
36
|
dateCreation: string;
|
|
37
|
+
dateModified: string | null;
|
|
37
38
|
title: string;
|
|
38
39
|
_url: string;
|
|
39
|
-
dateModified: string | null;
|
|
40
40
|
mimetype: string;
|
|
41
|
-
path?: string;
|
|
42
41
|
size: number;
|
|
42
|
+
path?: string | undefined;
|
|
43
43
|
}, import("../../types").BaseMessages>;
|
|
44
44
|
token: string;
|
|
45
45
|
}[]>;
|
|
@@ -56,7 +56,29 @@ export declare class JFileApi extends JBaseApi {
|
|
|
56
56
|
* @param config crop configuration
|
|
57
57
|
* @returns
|
|
58
58
|
*/
|
|
59
|
-
update(idFile: number | string, type: string, config: FileCropConfig): Promise<ApiWrapper<
|
|
59
|
+
update(idFile: number | string, type: string, config: FileCropConfig): Promise<ApiWrapper<{
|
|
60
|
+
type: string;
|
|
61
|
+
id: number;
|
|
62
|
+
mainType: string;
|
|
63
|
+
uri: string;
|
|
64
|
+
dateCreation: string;
|
|
65
|
+
dateModified: string | null;
|
|
66
|
+
title: string;
|
|
67
|
+
_url: string;
|
|
68
|
+
mimetype: string;
|
|
69
|
+
size: number;
|
|
70
|
+
_extend: {
|
|
71
|
+
crop: {
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
w: number;
|
|
75
|
+
h: number;
|
|
76
|
+
rotation: number;
|
|
77
|
+
killSize?: boolean | undefined;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
path?: string | undefined;
|
|
81
|
+
}, import("../../types").BaseMessages>>;
|
|
60
82
|
/**
|
|
61
83
|
* delete file. This action is not automatic. You need to update the content associated with the deleted image with the same token
|
|
62
84
|
* @param idFile file id
|
|
@@ -1,62 +1,5 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper, jObjectLittle, UserModel, UserMapModel, jUserAutocomplete, ApiPagingResults, ApiDefaultWrapper, jUserLittle, Readable, jUserValues, UserFieldsConfigurationType, UserFieldsType,
|
|
3
|
-
export type User = jObjectLittle & {
|
|
4
|
-
id: string;
|
|
5
|
-
shortUri: string;
|
|
6
|
-
name: string;
|
|
7
|
-
label: string;
|
|
8
|
-
cssClass: string;
|
|
9
|
-
cssColor: string;
|
|
10
|
-
class: string;
|
|
11
|
-
Pseudo: string;
|
|
12
|
-
_values: Record<string, unknown>;
|
|
13
|
-
};
|
|
14
|
-
import { Orders, Filters } from '../../types';
|
|
15
|
-
export interface ObjectListProps {
|
|
16
|
-
additionalFilter?: {};
|
|
17
|
-
facets?: {}[];
|
|
18
|
-
filters?: Filters;
|
|
19
|
-
query?: string;
|
|
20
|
-
limit?: number;
|
|
21
|
-
page?: number;
|
|
22
|
-
orders?: Orders;
|
|
23
|
-
format?: string;
|
|
24
|
-
}
|
|
25
|
-
export type UserDirectoryConfiguration = {
|
|
26
|
-
userDirectoryShow: '' | '1';
|
|
27
|
-
contactDirectoryShow: '0' | '1';
|
|
28
|
-
businessContactShow: boolean;
|
|
29
|
-
menu: '0' | '1';
|
|
30
|
-
cardFields: Array<string>;
|
|
31
|
-
tableFields: Array<string>;
|
|
32
|
-
viewFields: Array<string>;
|
|
33
|
-
userGeoloc?: boolean;
|
|
34
|
-
sort: string;
|
|
35
|
-
cnt?: number;
|
|
36
|
-
filters: Array<{
|
|
37
|
-
name: string;
|
|
38
|
-
type: string;
|
|
39
|
-
}>;
|
|
40
|
-
};
|
|
41
|
-
export type BusinessContact = {
|
|
42
|
-
mail: string | undefined;
|
|
43
|
-
title: string;
|
|
44
|
-
firstname: string;
|
|
45
|
-
lastname: string;
|
|
46
|
-
phoneNumber?: string | undefined;
|
|
47
|
-
company?: string | undefined;
|
|
48
|
-
function?: string | undefined;
|
|
49
|
-
uri?: string | undefined;
|
|
50
|
-
field1?: string | undefined;
|
|
51
|
-
field2?: string | undefined;
|
|
52
|
-
field3?: string | undefined;
|
|
53
|
-
field4?: string | undefined;
|
|
54
|
-
field5?: string | undefined;
|
|
55
|
-
};
|
|
56
|
-
export type UserValues = {
|
|
57
|
-
values: jUserValues;
|
|
58
|
-
mobileEditableFields: Array<keyof jUserValues>;
|
|
59
|
-
};
|
|
2
|
+
import { ApiWrapper, jObjectLittle, UserModel, UserMapModel, jUserAutocomplete, ApiPagingResults, ApiDefaultWrapper, jUserLittle, Readable, jUserValues, UserFieldsConfigurationType, UserFieldsType, UserDirectoryConfiguration, ObjectListProps, BusinessContact } from '../../types';
|
|
60
3
|
export declare class JUserApi extends JBaseApi {
|
|
61
4
|
/**
|
|
62
5
|
* autocomplete return a list users
|
|
@@ -107,5 +50,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
107
50
|
* @param pwd Password to be validated
|
|
108
51
|
*/
|
|
109
52
|
signIn(mail: string, pwd: string): Promise<ApiWrapper<jUserAutocomplete, import("../../types").BaseMessages>>;
|
|
110
|
-
getFields(idUser: number, fieldsType: UserFieldsType): Promise<ApiWrapper<
|
|
53
|
+
getFields(idUser: number, fieldsType: UserFieldsType): Promise<ApiWrapper<{
|
|
54
|
+
value: (string | Record<string, any>) & (string | Record<string, any> | undefined);
|
|
55
|
+
name: string;
|
|
56
|
+
}[], import("../../types").BaseMessages>>;
|
|
111
57
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, UserMapModel, jUserAutocomplete, jUserList, jUserView, jUserLittle, UserFieldsConfigurationType, UserModel, UserField } from '../../types';
|
|
2
|
-
import { UserDirectoryConfiguration, UserValues } from './user';
|
|
1
|
+
import { ApiDefaultWrapper, ApiPagingResults, ApiWrapper, UserMapModel, jUserAutocomplete, jUserList, jUserView, jUserLittle, UserFieldsConfigurationType, UserModel, UserField, UserDirectoryConfiguration, UserValues } from '../../types';
|
|
3
2
|
export declare const userAutocompleteA: ApiWrapper<jUserAutocomplete[]>;
|
|
4
3
|
export declare const userGetUser1: ApiWrapper<jUserView>;
|
|
5
4
|
export declare const userDirectoryConfigurationDefault: ApiWrapper<UserDirectoryConfiguration>;
|
|
@@ -28,4 +28,13 @@ export declare const rightsSchema: z.ZodObject<{
|
|
|
28
28
|
member: boolean;
|
|
29
29
|
}>;
|
|
30
30
|
export type Rights = z.infer<typeof rightsSchema>;
|
|
31
|
-
export declare const validateIsFormatRights: (object: object) =>
|
|
31
|
+
export declare const validateIsFormatRights: (object: object) => object is {
|
|
32
|
+
create: boolean;
|
|
33
|
+
read: boolean;
|
|
34
|
+
publish: boolean;
|
|
35
|
+
administrate: boolean;
|
|
36
|
+
update: boolean;
|
|
37
|
+
delete: boolean;
|
|
38
|
+
comment: boolean;
|
|
39
|
+
member: boolean;
|
|
40
|
+
};
|
package/lib/src/types/file.d.ts
CHANGED
|
@@ -1,44 +1,225 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const uploadConfigSchema: z.ZodObject<{
|
|
3
|
+
attrName: z.ZodString;
|
|
4
|
+
token: z.ZodString;
|
|
5
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodType<File, z.ZodTypeDef, File>>>;
|
|
6
|
+
url: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
4
8
|
attrName: string;
|
|
5
9
|
token: string;
|
|
6
|
-
file?: File | null;
|
|
7
|
-
url?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
+
file?: File | null | undefined;
|
|
11
|
+
url?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
attrName: string;
|
|
14
|
+
token: string;
|
|
15
|
+
file?: File | null | undefined;
|
|
16
|
+
url?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type UploadConfig = z.infer<typeof uploadConfigSchema>;
|
|
19
|
+
export declare const imageSizeSchema: z.ZodObject<{
|
|
20
|
+
width: z.ZodNumber;
|
|
21
|
+
height: z.ZodNumber;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
23
|
width: number;
|
|
11
24
|
height: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
25
|
+
}, {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}>;
|
|
29
|
+
export type ImageSize = z.infer<typeof imageSizeSchema>;
|
|
30
|
+
export declare const fileCropConfigSchema: z.ZodObject<{
|
|
31
|
+
x: z.ZodNumber;
|
|
32
|
+
y: z.ZodNumber;
|
|
33
|
+
w: z.ZodNumber;
|
|
34
|
+
h: z.ZodNumber;
|
|
35
|
+
rotation: z.ZodNumber;
|
|
36
|
+
killSize: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
w: number;
|
|
41
|
+
h: number;
|
|
42
|
+
rotation: number;
|
|
43
|
+
killSize?: boolean | undefined;
|
|
44
|
+
}, {
|
|
14
45
|
x: number;
|
|
15
46
|
y: number;
|
|
16
47
|
w: number;
|
|
17
48
|
h: number;
|
|
18
49
|
rotation: number;
|
|
19
|
-
killSize?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export type
|
|
50
|
+
killSize?: boolean | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export type FileCropConfig = z.infer<typeof fileCropConfigSchema>;
|
|
53
|
+
export declare const jFileLittleSchema: z.ZodObject<{
|
|
54
|
+
type: z.ZodString;
|
|
55
|
+
id: z.ZodNumber;
|
|
56
|
+
mainType: z.ZodString;
|
|
57
|
+
uri: z.ZodString;
|
|
58
|
+
title: z.ZodString;
|
|
59
|
+
_url: z.ZodString;
|
|
60
|
+
dateCreation: z.ZodString;
|
|
61
|
+
dateModified: z.ZodNullable<z.ZodString>;
|
|
62
|
+
mimetype: z.ZodString;
|
|
63
|
+
path: z.ZodOptional<z.ZodString>;
|
|
64
|
+
size: z.ZodNumber;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
type: string;
|
|
67
|
+
id: number;
|
|
68
|
+
mainType: string;
|
|
69
|
+
uri: string;
|
|
22
70
|
dateCreation: string;
|
|
23
71
|
dateModified: string | null;
|
|
72
|
+
title: string;
|
|
73
|
+
_url: string;
|
|
24
74
|
mimetype: string;
|
|
25
|
-
path?: string;
|
|
26
75
|
size: number;
|
|
76
|
+
path?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
type: string;
|
|
79
|
+
id: number;
|
|
80
|
+
mainType: string;
|
|
81
|
+
uri: string;
|
|
82
|
+
dateCreation: string;
|
|
83
|
+
dateModified: string | null;
|
|
84
|
+
title: string;
|
|
85
|
+
_url: string;
|
|
86
|
+
mimetype: string;
|
|
87
|
+
size: number;
|
|
88
|
+
path?: string | undefined;
|
|
27
89
|
}>;
|
|
28
|
-
export type
|
|
90
|
+
export type jFileLittle = z.infer<typeof jFileLittleSchema>;
|
|
91
|
+
export declare const validateIsFormatFileLittle: (object: object) => jFileLittle;
|
|
92
|
+
export declare const jFileLittleCropSchema: z.ZodObject<{
|
|
93
|
+
path: z.ZodOptional<z.ZodString>;
|
|
94
|
+
type: z.ZodString;
|
|
95
|
+
id: z.ZodNumber;
|
|
96
|
+
mainType: z.ZodString;
|
|
97
|
+
uri: z.ZodString;
|
|
98
|
+
dateCreation: z.ZodString;
|
|
99
|
+
dateModified: z.ZodNullable<z.ZodString>;
|
|
100
|
+
title: z.ZodString;
|
|
101
|
+
_url: z.ZodString;
|
|
102
|
+
mimetype: z.ZodString;
|
|
103
|
+
size: z.ZodNumber;
|
|
104
|
+
_extend: z.ZodObject<{
|
|
105
|
+
crop: z.ZodObject<{
|
|
106
|
+
x: z.ZodNumber;
|
|
107
|
+
y: z.ZodNumber;
|
|
108
|
+
w: z.ZodNumber;
|
|
109
|
+
h: z.ZodNumber;
|
|
110
|
+
rotation: z.ZodNumber;
|
|
111
|
+
killSize: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
x: number;
|
|
114
|
+
y: number;
|
|
115
|
+
w: number;
|
|
116
|
+
h: number;
|
|
117
|
+
rotation: number;
|
|
118
|
+
killSize?: boolean | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
x: number;
|
|
121
|
+
y: number;
|
|
122
|
+
w: number;
|
|
123
|
+
h: number;
|
|
124
|
+
rotation: number;
|
|
125
|
+
killSize?: boolean | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
crop: {
|
|
129
|
+
x: number;
|
|
130
|
+
y: number;
|
|
131
|
+
w: number;
|
|
132
|
+
h: number;
|
|
133
|
+
rotation: number;
|
|
134
|
+
killSize?: boolean | undefined;
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
crop: {
|
|
138
|
+
x: number;
|
|
139
|
+
y: number;
|
|
140
|
+
w: number;
|
|
141
|
+
h: number;
|
|
142
|
+
rotation: number;
|
|
143
|
+
killSize?: boolean | undefined;
|
|
144
|
+
};
|
|
145
|
+
}>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
type: string;
|
|
148
|
+
id: number;
|
|
149
|
+
mainType: string;
|
|
150
|
+
uri: string;
|
|
151
|
+
dateCreation: string;
|
|
152
|
+
dateModified: string | null;
|
|
153
|
+
title: string;
|
|
154
|
+
_url: string;
|
|
155
|
+
mimetype: string;
|
|
156
|
+
size: number;
|
|
29
157
|
_extend: {
|
|
30
|
-
crop:
|
|
158
|
+
crop: {
|
|
159
|
+
x: number;
|
|
160
|
+
y: number;
|
|
161
|
+
w: number;
|
|
162
|
+
h: number;
|
|
163
|
+
rotation: number;
|
|
164
|
+
killSize?: boolean | undefined;
|
|
165
|
+
};
|
|
31
166
|
};
|
|
32
|
-
|
|
33
|
-
|
|
167
|
+
path?: string | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
type: string;
|
|
170
|
+
id: number;
|
|
171
|
+
mainType: string;
|
|
172
|
+
uri: string;
|
|
173
|
+
dateCreation: string;
|
|
174
|
+
dateModified: string | null;
|
|
175
|
+
title: string;
|
|
176
|
+
_url: string;
|
|
177
|
+
mimetype: string;
|
|
178
|
+
size: number;
|
|
179
|
+
_extend: {
|
|
180
|
+
crop: {
|
|
181
|
+
x: number;
|
|
182
|
+
y: number;
|
|
183
|
+
w: number;
|
|
184
|
+
h: number;
|
|
185
|
+
rotation: number;
|
|
186
|
+
killSize?: boolean | undefined;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
path?: string | undefined;
|
|
190
|
+
}>;
|
|
191
|
+
export type jFileLittleCrop = z.infer<typeof jFileLittleCropSchema>;
|
|
192
|
+
export declare const jFileRenditionSchema: z.ZodObject<{
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
filename: z.ZodString;
|
|
195
|
+
dateModified: z.ZodString;
|
|
196
|
+
mimetype: z.ZodString;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
dateModified: string;
|
|
34
199
|
name: string;
|
|
200
|
+
mimetype: string;
|
|
35
201
|
filename: string;
|
|
202
|
+
}, {
|
|
36
203
|
dateModified: string;
|
|
204
|
+
name: string;
|
|
37
205
|
mimetype: string;
|
|
38
|
-
|
|
39
|
-
|
|
206
|
+
filename: string;
|
|
207
|
+
}>;
|
|
208
|
+
export type jFileRendition = z.infer<typeof jFileRenditionSchema>;
|
|
209
|
+
export declare const userDownloadSchema: z.ZodObject<{
|
|
210
|
+
idUser: z.ZodString;
|
|
211
|
+
dateDownload: z.ZodString;
|
|
212
|
+
Pseudo: z.ZodString;
|
|
213
|
+
type: z.ZodString;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
type: string;
|
|
216
|
+
Pseudo: string;
|
|
40
217
|
idUser: string;
|
|
41
218
|
dateDownload: string;
|
|
42
|
-
|
|
219
|
+
}, {
|
|
43
220
|
type: string;
|
|
44
|
-
|
|
221
|
+
Pseudo: string;
|
|
222
|
+
idUser: string;
|
|
223
|
+
dateDownload: string;
|
|
224
|
+
}>;
|
|
225
|
+
export type UserDownload = z.infer<typeof userDownloadSchema>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { z, ZodType } from 'zod';
|
|
2
|
+
declare const buildHookSchema: <T extends z.ZodTypeAny>(hookType: T) => z.ZodIntersection<z.ZodObject<{
|
|
3
|
+
isActive: z.ZodBoolean;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
}>, T>;
|
|
9
|
+
export type HookType<T extends object = {}> = z.infer<ReturnType<typeof buildHookSchema<ZodType<T>>>>;
|
|
10
|
+
/**
|
|
11
|
+
* Hook types
|
|
12
|
+
*/
|
|
13
|
+
declare const driveSchema: z.ZodEnum<["drive_microsoft_graph", "drive_dropbox", "drive_google"]>;
|
|
14
|
+
export type Drive = z.infer<typeof driveSchema>;
|
|
15
|
+
declare const driveHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
16
|
+
isActive: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
}>, z.ZodObject<{
|
|
22
|
+
drives: z.ZodRecord<z.ZodEnum<["drive_microsoft_graph", "drive_dropbox", "drive_google"]>, z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
|
|
25
|
+
}, {
|
|
26
|
+
drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
|
|
27
|
+
}>>;
|
|
28
|
+
export type DriveHook = z.infer<typeof driveHookSchema>;
|
|
29
|
+
declare const calendarHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
30
|
+
isActive: z.ZodBoolean;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
}, {
|
|
34
|
+
isActive: boolean;
|
|
35
|
+
}>, z.ZodObject<{
|
|
36
|
+
label: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
label: string;
|
|
39
|
+
}, {
|
|
40
|
+
label: string;
|
|
41
|
+
}>>;
|
|
42
|
+
export type CalendarHook = z.infer<typeof calendarHookSchema>;
|
|
43
|
+
declare const fileBankHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
44
|
+
isActive: z.ZodBoolean;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
isActive: boolean;
|
|
47
|
+
}, {
|
|
48
|
+
isActive: boolean;
|
|
49
|
+
}>, z.ZodObject<{
|
|
50
|
+
orderBy: z.ZodString;
|
|
51
|
+
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
orderBy: string;
|
|
54
|
+
order: "ASC" | "DESC";
|
|
55
|
+
}, {
|
|
56
|
+
orderBy: string;
|
|
57
|
+
order: "ASC" | "DESC";
|
|
58
|
+
}>>;
|
|
59
|
+
export type FileBankHook = z.infer<typeof fileBankHookSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* HookListType
|
|
62
|
+
*/
|
|
63
|
+
declare const hookListTypeSchema: z.ZodObject<{
|
|
64
|
+
DriveHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
65
|
+
isActive: z.ZodBoolean;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
isActive: boolean;
|
|
68
|
+
}, {
|
|
69
|
+
isActive: boolean;
|
|
70
|
+
}>, z.ZodObject<{
|
|
71
|
+
drives: z.ZodRecord<z.ZodEnum<["drive_microsoft_graph", "drive_dropbox", "drive_google"]>, z.ZodBoolean>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
|
|
74
|
+
}, {
|
|
75
|
+
drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
|
|
76
|
+
}>>>;
|
|
77
|
+
calendarHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
78
|
+
isActive: z.ZodBoolean;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
isActive: boolean;
|
|
81
|
+
}, {
|
|
82
|
+
isActive: boolean;
|
|
83
|
+
}>, z.ZodObject<{
|
|
84
|
+
label: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
label: string;
|
|
87
|
+
}, {
|
|
88
|
+
label: string;
|
|
89
|
+
}>>>;
|
|
90
|
+
FileBankHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
91
|
+
isActive: z.ZodBoolean;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
isActive: boolean;
|
|
94
|
+
}, {
|
|
95
|
+
isActive: boolean;
|
|
96
|
+
}>, z.ZodObject<{
|
|
97
|
+
orderBy: z.ZodString;
|
|
98
|
+
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
orderBy: string;
|
|
101
|
+
order: "ASC" | "DESC";
|
|
102
|
+
}, {
|
|
103
|
+
orderBy: string;
|
|
104
|
+
order: "ASC" | "DESC";
|
|
105
|
+
}>>>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
DriveHook?: ({
|
|
108
|
+
isActive: boolean;
|
|
109
|
+
} & {
|
|
110
|
+
drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
|
|
111
|
+
}) | undefined;
|
|
112
|
+
calendarHook?: ({
|
|
113
|
+
isActive: boolean;
|
|
114
|
+
} & {
|
|
115
|
+
label: string;
|
|
116
|
+
}) | undefined;
|
|
117
|
+
FileBankHook?: ({
|
|
118
|
+
isActive: boolean;
|
|
119
|
+
} & {
|
|
120
|
+
orderBy: string;
|
|
121
|
+
order: "ASC" | "DESC";
|
|
122
|
+
}) | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
DriveHook?: ({
|
|
125
|
+
isActive: boolean;
|
|
126
|
+
} & {
|
|
127
|
+
drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
|
|
128
|
+
}) | undefined;
|
|
129
|
+
calendarHook?: ({
|
|
130
|
+
isActive: boolean;
|
|
131
|
+
} & {
|
|
132
|
+
label: string;
|
|
133
|
+
}) | undefined;
|
|
134
|
+
FileBankHook?: ({
|
|
135
|
+
isActive: boolean;
|
|
136
|
+
} & {
|
|
137
|
+
orderBy: string;
|
|
138
|
+
order: "ASC" | "DESC";
|
|
139
|
+
}) | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
export type HookListType = z.infer<typeof hookListTypeSchema>;
|
|
142
|
+
export declare const validateIsFormatHookListType: (object: object) => HookListType;
|
|
143
|
+
export {};
|
package/lib/src/types/index.d.ts
CHANGED