jamespot-user-api 1.0.167 → 1.0.169
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 +32 -12
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +2 -2
- 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/JBbbApi.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/JDatasourceApi.html +1 -0
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -12
- 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/Format.html +1 -1
- package/documentation/enums/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.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/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/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +14 -8
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/admin/license.d.ts +39 -4
- package/lib/src/apis/admin/licenses.mock.d.ts +6 -1
- package/lib/src/apis/admin/utils.d.ts +1 -1
- package/lib/src/apis/datasource/datasource.d.ts +44 -0
- package/lib/src/apis/datasource/datasource.mock.d.ts +15 -0
- package/lib/src/apis/datasource/datasource.test.d.ts +1 -0
- package/lib/src/apis/index.d.ts +1 -0
- package/lib/src/apis/jamespotUserApi.d.ts +4 -0
- package/lib/src/apis/magicPad/magicPad.d.ts +6 -0
- package/lib/src/apis/magicPad/magicPad.mock.d.ts +3 -0
- package/lib/src/apis/magicPad/magicPad.test.d.ts +1 -0
- package/lib/src/apis/user/user.d.ts +137 -60
- package/lib/src/types/adminLicence.d.ts +13 -3
- package/lib/src/types/adminUtils.d.ts +2 -0
- package/lib/src/types/article.d.ts +27846 -12466
- package/lib/src/types/hook.d.ts +91 -2
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/types/license.d.ts +223 -0
- package/lib/src/types/magicPad.d.ts +9 -0
- package/lib/src/types/search.d.ts +1 -3
- package/lib/src/types/utils.d.ts +11 -11
- package/lib/src/types/widgets.d.ts +15932 -4979
- package/lib/src/util/Test.d.ts +548 -240
- package/lib/src/util/taxonomy.d.ts +2 -2
- package/package.json +1 -1
- package/phpunitMock/accessibilityGetStatus-default.json +1 -1
- package/phpunitMock/licenseManagerAssignLicenseKind-default.json +7 -0
- package/phpunitMock/licenseManagerGetUsers-default.json +205 -0
- package/phpunitMock/licenseManagerGetUsersWithLicense-default.json +24 -0
- package/phpunitMock/licenseManagerStatistics-default.json +10 -0
- package/phpunitMock/licenseManagerUnassignLicenseKind-default.json +7 -0
- package/phpunitMock/licenseManagerUnassignUnusedLicenses-default.json +7 -0
- package/phpunitMock/magicPadGetThumbnailUrl-success.json +9 -0
- package/phpunitMock/widgetDatasourceCreate-doc.json +42 -0
- package/phpunitMock/widgetDatasourceCreate-studio.json +42 -0
- package/phpunitMock/widgetDatasourceGet-get-doc.json +17 -0
- package/phpunitMock/widgetDatasourceGet-get-studio.json +16 -0
- package/phpunitMock/widgetDatasourceGetModel-getModel-doc.json +14 -0
- package/phpunitMock/widgetDatasourceGetModel-getModel-studio.json +13 -0
- package/phpunitMock/widgetDatasourceGetObject-default.json +16 -0
- /package/lib/src/apis/admin/{licences.test.d.ts → licenses.test.d.ts} +0 -0
|
@@ -1,28 +1,55 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { AdminLicensesAssigned, AdminLicensesNotAssigned,
|
|
2
|
+
import { AdminLicensesAssigned, AdminLicensesNotAssigned, FormatList, GetLicenseKindUsersParams, jUserLittle, ObjectWithoutLicenseFilter, PagingResults } from '../../types';
|
|
3
3
|
export declare class AdminLicenseApi extends JBaseApi {
|
|
4
4
|
/**
|
|
5
5
|
* Retrieve the user licenses stats
|
|
6
6
|
*/
|
|
7
|
-
getLicenseUserStatistics(): Promise<import("../../types").ApiWrapper<
|
|
7
|
+
getLicenseUserStatistics(signal?: AbortSignal): Promise<import("../../types").ApiWrapper<{
|
|
8
|
+
countLicensesAssigned: number;
|
|
9
|
+
countLicensesNotAssigned: number;
|
|
10
|
+
countActiveUsersWithoutLicense?: number | undefined;
|
|
11
|
+
}, import("../../types").BaseMessages>>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve the licenses stats for a given kind
|
|
14
|
+
*/
|
|
15
|
+
getLicenseStatistics(kind: string, signal?: AbortSignal): Promise<import("../../types").ApiWrapper<{
|
|
16
|
+
countLicensesAssigned: number;
|
|
17
|
+
countLicensesNotAssigned: number;
|
|
18
|
+
countActiveUsersWithoutLicense?: number | undefined;
|
|
19
|
+
}, import("../../types").BaseMessages>>;
|
|
8
20
|
/**
|
|
9
21
|
* Assigns a license to the content with the provided uri (if any is available)
|
|
10
22
|
* @param uri URI of the object to which a license must be assigned
|
|
11
23
|
* @returns boolean
|
|
12
24
|
*/
|
|
13
25
|
assignLicense(uri: string): Promise<import("../../types").ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
26
|
+
/**
|
|
27
|
+
* Assigns a license to a given kind with the provided uri (if any is available)
|
|
28
|
+
* @param uri URI of the object to which a license must be assigned
|
|
29
|
+
* @param kind the kind of license which must be assigned
|
|
30
|
+
* @returns boolean
|
|
31
|
+
*/
|
|
32
|
+
assignKindLicense(uri: string, kind: string): Promise<import("../../types").ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
14
33
|
/**
|
|
15
34
|
* Unassigns the license linked to the content with the provided uri
|
|
16
35
|
* @param uri URI of the object to which a license must be unassigned
|
|
17
36
|
* @returns boolean
|
|
18
37
|
*/
|
|
19
38
|
unAssignLicense(uri: string): Promise<import("../../types").ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
39
|
+
/**
|
|
40
|
+
* Unassigns the license linked to the given kind with the provided uri
|
|
41
|
+
* @param uri URI of the object to which a license must be unassigned
|
|
42
|
+
* @param kind the kind of license which must be unassigned
|
|
43
|
+
* @returns boolean
|
|
44
|
+
*/
|
|
45
|
+
unAssignKindLicense(uri: string, kind: string): Promise<import("../../types").ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
20
46
|
/**
|
|
21
47
|
* Retrieve the assignment license user mode between automatic | manual
|
|
22
48
|
* @param type retrieve the automatic license assignation
|
|
49
|
+
* @param signal the signal to cancel the request
|
|
23
50
|
* @returns a string who's the current assignment selected
|
|
24
51
|
*/
|
|
25
|
-
getAssignmentMode(type: string): Promise<import("../../types").ApiWrapper<string, import("../../types").BaseMessages>>;
|
|
52
|
+
getAssignmentMode(type: string, signal?: AbortSignal): Promise<import("../../types").ApiWrapper<string, import("../../types").BaseMessages>>;
|
|
26
53
|
/**
|
|
27
54
|
* Change the mode which the license are affected to the users
|
|
28
55
|
* @param type the type of license that would automatically be assigned
|
|
@@ -39,9 +66,10 @@ export declare class AdminLicenseApi extends JBaseApi {
|
|
|
39
66
|
/**
|
|
40
67
|
* Unassign licenses for inactive users
|
|
41
68
|
* @param type the type of licenses for which we will unassign upon inactive user
|
|
69
|
+
* @param kind particular license kind to unassign
|
|
42
70
|
* @returns boolean
|
|
43
71
|
*/
|
|
44
|
-
unAssignUnusedLicenses(type: string): Promise<import("../../types").ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
72
|
+
unAssignUnusedLicenses(type: string, kind?: string): Promise<import("../../types").ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
45
73
|
/**
|
|
46
74
|
* Assign available licenses and unassign license for inactive users
|
|
47
75
|
* @param type the type of licenses for which we will unassign and assign the possible licenses
|
|
@@ -71,4 +99,11 @@ export declare class AdminLicenseApi extends JBaseApi {
|
|
|
71
99
|
* @returns The list of licenses assigned to content of the provided type
|
|
72
100
|
*/
|
|
73
101
|
getLicensesAssigned(type: string): Promise<import("../../types").ApiWrapper<AdminLicensesAssigned[], import("../../types").BaseMessages>>;
|
|
102
|
+
getLicenceUsersByKind<T extends jUserLittle = jUserLittle>({ ...params }: GetLicenseKindUsersParams, format: FormatList, signal?: AbortSignal): Promise<import("../../types").ApiWrapper<PagingResults<import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
|
103
|
+
license: import("zod").ZodUnion<[import("zod").ZodLiteral<"1">, import("zod").ZodLiteral<"0">]>;
|
|
104
|
+
user: import("zod").ZodType<T, import("zod").ZodTypeDef, T>;
|
|
105
|
+
}>, "license" | (undefined extends T ? never : "user")> extends infer T_1 ? { [k_1 in keyof T_1]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
|
106
|
+
license: import("zod").ZodUnion<[import("zod").ZodLiteral<"1">, import("zod").ZodLiteral<"0">]>;
|
|
107
|
+
user: import("zod").ZodType<T, import("zod").ZodTypeDef, T>;
|
|
108
|
+
}>, "license" | (undefined extends T ? never : "user")>[k_1]; } : never>, import("../../types").BaseMessages>>;
|
|
74
109
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { AdminLicensesNotAssigned, ApiWrapper, License } from '../../types';
|
|
1
|
+
import { AdminLicensesNotAssigned, AdminLicenseStats, ApiWrapper, jUserList, License, PagingResults, UserLicense } from '../../types';
|
|
2
2
|
export declare const licenseManagerAssignLicenseDefault: ApiWrapper<boolean>;
|
|
3
3
|
export declare const licenseManagerAssignLicenseIsAssign: ApiWrapper<boolean>;
|
|
4
4
|
export declare const licenseManagerCountLicensesNotAssignedCount: ApiWrapper<AdminLicensesNotAssigned>;
|
|
5
5
|
export declare const licenseManagerGetLicensesAssignedDefault: ApiWrapper<Array<License>>;
|
|
6
6
|
export declare const licenseManagerUnassignLicenseDefault: ApiWrapper<boolean>;
|
|
7
7
|
export declare const licenseManagerUnassignLicenseIsUnassign: ApiWrapper<boolean>;
|
|
8
|
+
export declare const licenseManagerGetLicenseStatistics: ApiWrapper<AdminLicenseStats>;
|
|
9
|
+
export declare const licenseManagerAssignHookLicense: ApiWrapper<boolean>;
|
|
10
|
+
export declare const licenseManagerUnAssignHookLicense: ApiWrapper<boolean>;
|
|
11
|
+
export declare const licenseManagerUnAssignUnusedLicenses: ApiWrapper<boolean>;
|
|
12
|
+
export declare const licenseManagerGetHookUsers: ApiWrapper<PagingResults<UserLicense<jUserList>>>;
|
|
@@ -4,5 +4,5 @@ export declare class AdminUtilsApi extends JBaseApi {
|
|
|
4
4
|
/**
|
|
5
5
|
* Request the admin applications and sub applications for the admin panel
|
|
6
6
|
*/
|
|
7
|
-
getApps(): Promise<import("../../types").ApiWrapper<AdminApps, import("../../types").BaseMessages>>;
|
|
7
|
+
getApps(signal?: AbortSignal): Promise<import("../../types").ApiWrapper<AdminApps, import("../../types").BaseMessages>>;
|
|
8
8
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApiWrapper, Format, WidgetTableColumn, jArticleList, jArticleLittle } from '../../types';
|
|
2
|
+
import { JBaseApi } from '../base';
|
|
3
|
+
export type DatasourceResult<T extends {} = {}> = {
|
|
4
|
+
type: string;
|
|
5
|
+
count_result: number;
|
|
6
|
+
result_in_cache: boolean;
|
|
7
|
+
model: WidgetTableColumn[];
|
|
8
|
+
data: T[];
|
|
9
|
+
};
|
|
10
|
+
export type DatasourceModel = WidgetTableColumn[];
|
|
11
|
+
export type DatasourceDataTypeUrl = {
|
|
12
|
+
title: string;
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
export type DatasourceStudioLittle = {
|
|
16
|
+
mainType: 'typeApplication';
|
|
17
|
+
title: string;
|
|
18
|
+
img: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
color: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
export type DatasourceArticleLittle = jArticleLittle & {
|
|
24
|
+
mainType: 'article';
|
|
25
|
+
};
|
|
26
|
+
export type jDatasourceArticleList = jArticleList & {
|
|
27
|
+
datasourceType: string;
|
|
28
|
+
datasourceIdentifier: string;
|
|
29
|
+
datasourceParameters: string | null;
|
|
30
|
+
datasourceModel: string | null;
|
|
31
|
+
};
|
|
32
|
+
export declare class JDatasourceApi extends JBaseApi {
|
|
33
|
+
get<T extends {}>(uri: string, format: Format): Promise<ApiWrapper<DatasourceResult<T>>>;
|
|
34
|
+
getModel(uri: string): Promise<ApiWrapper<{
|
|
35
|
+
type: string;
|
|
36
|
+
model: DatasourceModel;
|
|
37
|
+
}>>;
|
|
38
|
+
getObject(uri: string): Promise<ApiWrapper<DatasourceArticleLittle | DatasourceStudioLittle>>;
|
|
39
|
+
create({ title, datasourceType, datasourceIdentifier, }: {
|
|
40
|
+
title: string;
|
|
41
|
+
datasourceType: string;
|
|
42
|
+
datasourceIdentifier: string;
|
|
43
|
+
}): Promise<ApiWrapper<jDatasourceArticleList>>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApiWrapper, BaseMessages } from '../../types';
|
|
2
|
+
import { DatasourceArticleLittle, DatasourceModel, DatasourceResult, DatasourceStudioLittle, jDatasourceArticleList } from './datasource';
|
|
3
|
+
export declare const datasourceGetObject: ApiWrapper<DatasourceArticleLittle | DatasourceStudioLittle, BaseMessages>;
|
|
4
|
+
export declare const datasourceGetStudio: ApiWrapper<DatasourceResult, BaseMessages>;
|
|
5
|
+
export declare const datasourceGetDoc: ApiWrapper<DatasourceResult, BaseMessages>;
|
|
6
|
+
export declare const datasourceGetModelDoc: ApiWrapper<{
|
|
7
|
+
type: string;
|
|
8
|
+
model: any[];
|
|
9
|
+
}, BaseMessages>;
|
|
10
|
+
export declare const datasourceGetModelStudio: ApiWrapper<{
|
|
11
|
+
type: string;
|
|
12
|
+
model: DatasourceModel;
|
|
13
|
+
}, BaseMessages>;
|
|
14
|
+
export declare const datasourceCreateStudio: ApiWrapper<jDatasourceArticleList, BaseMessages>;
|
|
15
|
+
export declare const datasourceCreateDoc: ApiWrapper<jDatasourceArticleList, BaseMessages>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/src/apis/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './bbb/bbb';
|
|
|
8
8
|
export * from './bookmark/bookmark';
|
|
9
9
|
export * from './businessNetworking/businessNetworking';
|
|
10
10
|
export * from './community';
|
|
11
|
+
export * from './datasource/datasource';
|
|
11
12
|
export * from './diapazone/diapazone';
|
|
12
13
|
export * from './file/file';
|
|
13
14
|
export * from './faq/faq';
|
|
@@ -5,6 +5,7 @@ import { JAseiApi } from './asei/asei';
|
|
|
5
5
|
import { JAssetReservation } from './assetReservation/assetReservation';
|
|
6
6
|
import { JAudienceApi } from './audience/audience';
|
|
7
7
|
import { JCommunityApi } from './community';
|
|
8
|
+
import { JDatasourceApi } from './datasource/datasource';
|
|
8
9
|
import { JDiapazoneApi } from './diapazone/diapazone';
|
|
9
10
|
import { JDriveApi } from './drive/drive';
|
|
10
11
|
import { JFileApi } from './file/file';
|
|
@@ -31,6 +32,7 @@ import { JSocialActionApi } from './socialAction/socialAction';
|
|
|
31
32
|
import { JBusinessNetworkingApi } from './businessNetworking/businessNetworking';
|
|
32
33
|
import { JIAApi } from './jia/jia';
|
|
33
34
|
import { JWidgetApi } from './widget/widget';
|
|
35
|
+
import { JMagicPadApi } from './magicPad/magicPad';
|
|
34
36
|
import { JBbbApi } from './bbb/bbb';
|
|
35
37
|
/**
|
|
36
38
|
* In browser usage, 'window' should be the window object.
|
|
@@ -57,6 +59,7 @@ export declare class JamespotUserApi {
|
|
|
57
59
|
bookmark: JBookmarkApi;
|
|
58
60
|
businessNetworking: JBusinessNetworkingApi;
|
|
59
61
|
community: JCommunityApi;
|
|
62
|
+
datasource: JDatasourceApi;
|
|
60
63
|
diapazone: JDiapazoneApi;
|
|
61
64
|
drive: JDriveApi;
|
|
62
65
|
faq: JFaqApi;
|
|
@@ -67,6 +70,7 @@ export declare class JamespotUserApi {
|
|
|
67
70
|
group: JGroupApi;
|
|
68
71
|
jia: JIAApi;
|
|
69
72
|
jland: JLandApi;
|
|
73
|
+
magicPad: JMagicPadApi;
|
|
70
74
|
mediaLibrary: JMediaLibraryApi;
|
|
71
75
|
messenger: JMessengerApi;
|
|
72
76
|
object: JObjectApi;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JBaseApi } from '../base';
|
|
2
|
+
import { ApiWrapper } from '../../types';
|
|
3
|
+
import { MagicPadThumbnail } from '../../types/magicPad';
|
|
4
|
+
export declare class JMagicPadApi extends JBaseApi {
|
|
5
|
+
getThumbnailUrl(uri: string): Promise<ApiWrapper<MagicPadThumbnail>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -313,9 +313,32 @@ export declare class JUserApi extends JBaseApi {
|
|
|
313
313
|
}[] | undefined;
|
|
314
314
|
} & {
|
|
315
315
|
css?: Record<string, string> | undefined;
|
|
316
|
-
widgets
|
|
317
|
-
}>
|
|
318
|
-
|
|
316
|
+
widgets?: any[] | undefined;
|
|
317
|
+
}>) | ({
|
|
318
|
+
layers?: string[] | undefined;
|
|
319
|
+
} & {
|
|
320
|
+
name: import("../../types").WidgetsName.DatasourceTable;
|
|
321
|
+
uniqid: string;
|
|
322
|
+
content: {
|
|
323
|
+
limit?: number | undefined;
|
|
324
|
+
tableColumnsData?: {
|
|
325
|
+
name?: string | undefined;
|
|
326
|
+
isVisible?: boolean | undefined;
|
|
327
|
+
textEllipsis?: boolean | undefined;
|
|
328
|
+
label?: string | undefined;
|
|
329
|
+
dateFormat?: "date" | "date-time" | "date-time-sec" | "time" | "time-sec" | undefined;
|
|
330
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
331
|
+
}[] | undefined;
|
|
332
|
+
tableHeadColor?: string | undefined;
|
|
333
|
+
tableHeadTextColor?: string | undefined;
|
|
334
|
+
tableHeadIconColor?: string | undefined;
|
|
335
|
+
tableRowColor?: string | undefined;
|
|
336
|
+
tableRowTextColor?: string | undefined;
|
|
337
|
+
tableBorderRadius?: number | undefined;
|
|
338
|
+
tableSizedColumns?: boolean | undefined;
|
|
339
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
340
|
+
uri?: string | undefined;
|
|
341
|
+
};
|
|
319
342
|
}) | ({
|
|
320
343
|
layers?: string[] | undefined;
|
|
321
344
|
} & {
|
|
@@ -361,10 +384,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
361
384
|
}[] | undefined;
|
|
362
385
|
} & {
|
|
363
386
|
css?: Record<string, string> | undefined;
|
|
364
|
-
widgets
|
|
365
|
-
}>
|
|
366
|
-
title: string;
|
|
367
|
-
}) | ({
|
|
387
|
+
widgets?: any[] | undefined;
|
|
388
|
+
}>) | ({
|
|
368
389
|
layers?: string[] | undefined;
|
|
369
390
|
} & {
|
|
370
391
|
name: import("../../types").WidgetsName.ArticleGallery;
|
|
@@ -403,10 +424,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
403
424
|
}[] | undefined;
|
|
404
425
|
} & {
|
|
405
426
|
css?: Record<string, string> | undefined;
|
|
406
|
-
widgets
|
|
407
|
-
}>
|
|
408
|
-
title: string;
|
|
409
|
-
}) | ({
|
|
427
|
+
widgets?: any[] | undefined;
|
|
428
|
+
}>) | ({
|
|
410
429
|
layers?: string[] | undefined;
|
|
411
430
|
} & {
|
|
412
431
|
name: import("../../types").WidgetsName.ArticleTitle;
|
|
@@ -435,10 +454,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
435
454
|
}[] | undefined;
|
|
436
455
|
} & {
|
|
437
456
|
css?: Record<string, string> | undefined;
|
|
438
|
-
widgets
|
|
439
|
-
}>
|
|
440
|
-
title: string;
|
|
441
|
-
}) | ({
|
|
457
|
+
widgets?: any[] | undefined;
|
|
458
|
+
}>) | ({
|
|
442
459
|
layers?: string[] | undefined;
|
|
443
460
|
} & {
|
|
444
461
|
name: import("../../types").WidgetsName.ArticleText;
|
|
@@ -467,10 +484,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
467
484
|
}[] | undefined;
|
|
468
485
|
} & {
|
|
469
486
|
css?: Record<string, string> | undefined;
|
|
470
|
-
widgets
|
|
471
|
-
}>
|
|
472
|
-
title: string;
|
|
473
|
-
}) | ({
|
|
487
|
+
widgets?: any[] | undefined;
|
|
488
|
+
}>) | ({
|
|
474
489
|
layers?: string[] | undefined;
|
|
475
490
|
} & {
|
|
476
491
|
name: import("../../types").WidgetsName.ArticleImage;
|
|
@@ -508,10 +523,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
508
523
|
}[] | undefined;
|
|
509
524
|
} & {
|
|
510
525
|
css?: Record<string, string> | undefined;
|
|
511
|
-
widgets
|
|
512
|
-
}>
|
|
513
|
-
title: string;
|
|
514
|
-
}) | ({
|
|
526
|
+
widgets?: any[] | undefined;
|
|
527
|
+
}>) | ({
|
|
515
528
|
layers?: string[] | undefined;
|
|
516
529
|
} & {
|
|
517
530
|
name: import("../../types").WidgetsName.ArticleAttachment;
|
|
@@ -549,10 +562,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
549
562
|
}[] | undefined;
|
|
550
563
|
} & {
|
|
551
564
|
css?: Record<string, string> | undefined;
|
|
552
|
-
widgets
|
|
553
|
-
}>
|
|
554
|
-
title: string;
|
|
555
|
-
}) | ({
|
|
565
|
+
widgets?: any[] | undefined;
|
|
566
|
+
}>) | ({
|
|
556
567
|
layers?: string[] | undefined;
|
|
557
568
|
} & {
|
|
558
569
|
name: import("../../types").WidgetsName.Api;
|
|
@@ -580,10 +591,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
580
591
|
}[] | undefined;
|
|
581
592
|
} & {
|
|
582
593
|
css?: Record<string, string> | undefined;
|
|
583
|
-
widgets
|
|
584
|
-
}>
|
|
585
|
-
title: string;
|
|
586
|
-
}) | ({
|
|
594
|
+
widgets?: any[] | undefined;
|
|
595
|
+
}>) | ({
|
|
587
596
|
layers?: string[] | undefined;
|
|
588
597
|
} & {
|
|
589
598
|
name: import("../../types").WidgetsName.ArticleSlider;
|
|
@@ -632,10 +641,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
632
641
|
}[] | undefined;
|
|
633
642
|
} & {
|
|
634
643
|
css?: Record<string, string> | undefined;
|
|
635
|
-
widgets
|
|
636
|
-
}>
|
|
637
|
-
title: string;
|
|
638
|
-
}) | ({
|
|
644
|
+
widgets?: any[] | undefined;
|
|
645
|
+
}>) | ({
|
|
639
646
|
layers?: string[] | undefined;
|
|
640
647
|
} & import("../../types").WidgetType<{
|
|
641
648
|
arr?: {
|
|
@@ -654,10 +661,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
654
661
|
}[] | undefined;
|
|
655
662
|
} & {
|
|
656
663
|
css?: Record<string, string> | undefined;
|
|
657
|
-
widgets
|
|
664
|
+
widgets?: any[] | undefined;
|
|
658
665
|
}> & {
|
|
659
|
-
title: string;
|
|
660
|
-
} & {
|
|
661
666
|
name: import("../../types").WidgetsName.ArticleButton;
|
|
662
667
|
uniqid: string;
|
|
663
668
|
content: {
|
|
@@ -702,10 +707,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
702
707
|
}[] | undefined;
|
|
703
708
|
} & {
|
|
704
709
|
css?: Record<string, string> | undefined;
|
|
705
|
-
widgets
|
|
710
|
+
widgets?: any[] | undefined;
|
|
706
711
|
}> & {
|
|
707
|
-
title: string;
|
|
708
|
-
} & {
|
|
709
712
|
name: import("../../types").WidgetsName.ArticleGallery;
|
|
710
713
|
uniqid: string;
|
|
711
714
|
content: {
|
|
@@ -744,10 +747,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
744
747
|
}[] | undefined;
|
|
745
748
|
} & {
|
|
746
749
|
css?: Record<string, string> | undefined;
|
|
747
|
-
widgets
|
|
750
|
+
widgets?: any[] | undefined;
|
|
748
751
|
}> & {
|
|
749
|
-
title: string;
|
|
750
|
-
} & {
|
|
751
752
|
name: import("../../types").WidgetsName.ArticleTitle;
|
|
752
753
|
uniqid: string;
|
|
753
754
|
content: {
|
|
@@ -776,10 +777,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
776
777
|
}[] | undefined;
|
|
777
778
|
} & {
|
|
778
779
|
css?: Record<string, string> | undefined;
|
|
779
|
-
widgets
|
|
780
|
+
widgets?: any[] | undefined;
|
|
780
781
|
}> & {
|
|
781
|
-
title: string;
|
|
782
|
-
} & {
|
|
783
782
|
name: import("../../types").WidgetsName.ArticleText;
|
|
784
783
|
uniqid: string;
|
|
785
784
|
content: {
|
|
@@ -808,10 +807,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
808
807
|
}[] | undefined;
|
|
809
808
|
} & {
|
|
810
809
|
css?: Record<string, string> | undefined;
|
|
811
|
-
widgets
|
|
810
|
+
widgets?: any[] | undefined;
|
|
812
811
|
}> & {
|
|
813
|
-
title: string;
|
|
814
|
-
} & {
|
|
815
812
|
name: import("../../types").WidgetsName.ArticleImage;
|
|
816
813
|
uniqid: string;
|
|
817
814
|
content: {
|
|
@@ -849,10 +846,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
849
846
|
}[] | undefined;
|
|
850
847
|
} & {
|
|
851
848
|
css?: Record<string, string> | undefined;
|
|
852
|
-
widgets
|
|
849
|
+
widgets?: any[] | undefined;
|
|
853
850
|
}> & {
|
|
854
|
-
title: string;
|
|
855
|
-
} & {
|
|
856
851
|
name: import("../../types").WidgetsName.ArticleAttachment;
|
|
857
852
|
uniqid: string;
|
|
858
853
|
content: {
|
|
@@ -890,10 +885,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
890
885
|
}[] | undefined;
|
|
891
886
|
} & {
|
|
892
887
|
css?: Record<string, string> | undefined;
|
|
893
|
-
widgets
|
|
888
|
+
widgets?: any[] | undefined;
|
|
894
889
|
}> & {
|
|
895
|
-
title: string;
|
|
896
|
-
} & {
|
|
897
890
|
name: import("../../types").WidgetsName.Api;
|
|
898
891
|
uniqid: string;
|
|
899
892
|
content: {
|
|
@@ -921,10 +914,8 @@ export declare class JUserApi extends JBaseApi {
|
|
|
921
914
|
}[] | undefined;
|
|
922
915
|
} & {
|
|
923
916
|
css?: Record<string, string> | undefined;
|
|
924
|
-
widgets
|
|
917
|
+
widgets?: any[] | undefined;
|
|
925
918
|
}> & {
|
|
926
|
-
title: string;
|
|
927
|
-
} & {
|
|
928
919
|
name: import("../../types").WidgetsName.ArticleSlider;
|
|
929
920
|
uniqid: string;
|
|
930
921
|
content: {
|
|
@@ -954,7 +945,93 @@ export declare class JUserApi extends JBaseApi {
|
|
|
954
945
|
useDots?: boolean | undefined;
|
|
955
946
|
startAt?: number | undefined;
|
|
956
947
|
};
|
|
957
|
-
})
|
|
948
|
+
}) | ({
|
|
949
|
+
layers?: string[] | undefined;
|
|
950
|
+
} & import("../../types").WidgetType<{
|
|
951
|
+
arr?: {
|
|
952
|
+
title: string;
|
|
953
|
+
value?: boolean | undefined;
|
|
954
|
+
links?: {
|
|
955
|
+
href: string;
|
|
956
|
+
target: string;
|
|
957
|
+
}[] | undefined;
|
|
958
|
+
id?: number | undefined;
|
|
959
|
+
user?: {
|
|
960
|
+
type: "user";
|
|
961
|
+
id: number;
|
|
962
|
+
mainType: "user";
|
|
963
|
+
} | undefined;
|
|
964
|
+
}[] | undefined;
|
|
965
|
+
} & {
|
|
966
|
+
css?: Record<string, string> | undefined;
|
|
967
|
+
widgets?: any[] | undefined;
|
|
968
|
+
}> & {
|
|
969
|
+
name: import("../../types").WidgetsName.DatasourceTable;
|
|
970
|
+
uniqid: string;
|
|
971
|
+
content: {
|
|
972
|
+
limit?: number | undefined;
|
|
973
|
+
tableColumnsData?: {
|
|
974
|
+
name?: string | undefined;
|
|
975
|
+
isVisible?: boolean | undefined;
|
|
976
|
+
textEllipsis?: boolean | undefined;
|
|
977
|
+
label?: string | undefined;
|
|
978
|
+
dateFormat?: "date" | "date-time" | "date-time-sec" | "time" | "time-sec" | undefined;
|
|
979
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
980
|
+
}[] | undefined;
|
|
981
|
+
tableHeadColor?: string | undefined;
|
|
982
|
+
tableHeadTextColor?: string | undefined;
|
|
983
|
+
tableHeadIconColor?: string | undefined;
|
|
984
|
+
tableRowColor?: string | undefined;
|
|
985
|
+
tableRowTextColor?: string | undefined;
|
|
986
|
+
tableBorderRadius?: number | undefined;
|
|
987
|
+
tableSizedColumns?: boolean | undefined;
|
|
988
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
989
|
+
uri?: string | undefined;
|
|
990
|
+
};
|
|
991
|
+
}) | ({
|
|
992
|
+
layers?: string[] | undefined;
|
|
993
|
+
} & {
|
|
994
|
+
name: import("../../types").WidgetsName.DatasourceTable;
|
|
995
|
+
uniqid: string;
|
|
996
|
+
content: {
|
|
997
|
+
limit?: number | undefined;
|
|
998
|
+
tableColumnsData?: {
|
|
999
|
+
name?: string | undefined;
|
|
1000
|
+
isVisible?: boolean | undefined;
|
|
1001
|
+
textEllipsis?: boolean | undefined;
|
|
1002
|
+
label?: string | undefined;
|
|
1003
|
+
dateFormat?: "date" | "date-time" | "date-time-sec" | "time" | "time-sec" | undefined;
|
|
1004
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
1005
|
+
}[] | undefined;
|
|
1006
|
+
tableHeadColor?: string | undefined;
|
|
1007
|
+
tableHeadTextColor?: string | undefined;
|
|
1008
|
+
tableHeadIconColor?: string | undefined;
|
|
1009
|
+
tableRowColor?: string | undefined;
|
|
1010
|
+
tableRowTextColor?: string | undefined;
|
|
1011
|
+
tableBorderRadius?: number | undefined;
|
|
1012
|
+
tableSizedColumns?: boolean | undefined;
|
|
1013
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
1014
|
+
uri?: string | undefined;
|
|
1015
|
+
};
|
|
1016
|
+
} & import("../../types").WidgetType<{
|
|
1017
|
+
arr?: {
|
|
1018
|
+
title: string;
|
|
1019
|
+
value?: boolean | undefined;
|
|
1020
|
+
links?: {
|
|
1021
|
+
href: string;
|
|
1022
|
+
target: string;
|
|
1023
|
+
}[] | undefined;
|
|
1024
|
+
id?: number | undefined;
|
|
1025
|
+
user?: {
|
|
1026
|
+
type: "user";
|
|
1027
|
+
id: number;
|
|
1028
|
+
mainType: "user";
|
|
1029
|
+
} | undefined;
|
|
1030
|
+
}[] | undefined;
|
|
1031
|
+
} & {
|
|
1032
|
+
css?: Record<string, string> | undefined;
|
|
1033
|
+
widgets?: any[] | undefined;
|
|
1034
|
+
}>);
|
|
958
1035
|
}[] | undefined;
|
|
959
1036
|
}, import("../../types").BaseMessages>>;
|
|
960
1037
|
userDeleteBusinessContact(idArticle: number): Promise<ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { jUserList } from './user';
|
|
2
2
|
import { ObjectListProps } from './utils';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export declare const adminLicenseStatsSchema: z.ZodObject<{
|
|
5
|
+
countActiveUsersWithoutLicense: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
countLicensesAssigned: z.ZodNumber;
|
|
7
|
+
countLicensesNotAssigned: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
9
|
countLicensesAssigned: number;
|
|
6
10
|
countLicensesNotAssigned: number;
|
|
7
|
-
|
|
11
|
+
countActiveUsersWithoutLicense?: number | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
countLicensesAssigned: number;
|
|
14
|
+
countLicensesNotAssigned: number;
|
|
15
|
+
countActiveUsersWithoutLicense?: number | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type AdminLicenseStats = z.infer<typeof adminLicenseStatsSchema>;
|
|
8
18
|
export type ObjectWithoutLicenseFilter = {
|
|
9
19
|
name: string;
|
|
10
20
|
operator: string;
|