jamespot-user-api 1.0.168 → 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.
Files changed (98) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +32 -12
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +2 -2
  5. package/documentation/classes/JApplicationApi.html +8 -8
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +1 -1
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBbbApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  13. package/documentation/classes/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDatasourceApi.html +1 -1
  15. package/documentation/classes/JDiapazoneApi.html +1 -1
  16. package/documentation/classes/JFaqApi.html +1 -1
  17. package/documentation/classes/JFileApi.html +5 -5
  18. package/documentation/classes/JFilebankApi.html +1 -1
  19. package/documentation/classes/JGlobalApi.html +1 -1
  20. package/documentation/classes/JGroupApi.html +12 -12
  21. package/documentation/classes/JIAApi.html +1 -1
  22. package/documentation/classes/JLandApi.html +1 -1
  23. package/documentation/classes/JMessengerApi.html +1 -1
  24. package/documentation/classes/JObjectApi.html +1 -1
  25. package/documentation/classes/JSearchApi.html +6 -6
  26. package/documentation/classes/JShareApi.html +1 -1
  27. package/documentation/classes/JSocialActionApi.html +1 -1
  28. package/documentation/classes/JTaxonomyApi.html +2 -2
  29. package/documentation/classes/JUserApi.html +7 -7
  30. package/documentation/classes/JWedocApi.html +1 -1
  31. package/documentation/classes/JWidgetApi.html +1 -1
  32. package/documentation/classes/JamespotUserApi.html +1 -1
  33. package/documentation/classes/Network.html +1 -1
  34. package/documentation/classes/TVDisplayApi.html +1 -1
  35. package/documentation/classes/WindowBrowser.html +1 -1
  36. package/documentation/enums/Format.html +1 -1
  37. package/documentation/enums/GroupModerateStatus.html +1 -1
  38. package/documentation/enums/StudioApplicationStatus.html +1 -1
  39. package/documentation/enums/WidgetsName.html +1 -1
  40. package/documentation/index.html +1 -1
  41. package/documentation/interfaces/AccessRightObject.html +1 -1
  42. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  43. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  44. package/documentation/interfaces/ApiWrapper.html +1 -1
  45. package/documentation/interfaces/BaseMessage.html +1 -1
  46. package/documentation/interfaces/Category.html +1 -1
  47. package/documentation/interfaces/FileBankProps.html +1 -1
  48. package/documentation/interfaces/FolderProps.html +1 -1
  49. package/documentation/interfaces/ListFilterSpec.html +1 -1
  50. package/documentation/interfaces/OF.html +1 -1
  51. package/documentation/interfaces/ObjectListProps.html +1 -1
  52. package/documentation/interfaces/PagingResults.html +1 -1
  53. package/documentation/interfaces/RootFolderProps.html +1 -1
  54. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  55. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  56. package/documentation/interfaces/SearchConfig.html +1 -1
  57. package/documentation/interfaces/SearchFacetModel.html +1 -1
  58. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  59. package/documentation/interfaces/SearchQuery.html +1 -1
  60. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  61. package/documentation/interfaces/SearchQueryOption.html +1 -1
  62. package/documentation/interfaces/SearchQueryResult.html +1 -1
  63. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  64. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  65. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  66. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  67. package/documentation/interfaces/SpotProps.html +1 -1
  68. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  69. package/documentation/interfaces/WidgetType.html +1 -1
  70. package/documentation/interfaces/WindowInterface.html +1 -1
  71. package/documentation/modules.html +11 -11
  72. package/lib/jamespot-user-api.js +1 -1
  73. package/lib/jamespot-user-api.js.map +1 -1
  74. package/lib/src/apis/admin/license.d.ts +39 -4
  75. package/lib/src/apis/admin/licenses.mock.d.ts +6 -1
  76. package/lib/src/apis/admin/utils.d.ts +1 -1
  77. package/lib/src/apis/jamespotUserApi.d.ts +2 -0
  78. package/lib/src/apis/magicPad/magicPad.d.ts +6 -0
  79. package/lib/src/apis/magicPad/magicPad.mock.d.ts +3 -0
  80. package/lib/src/apis/magicPad/magicPad.test.d.ts +1 -0
  81. package/lib/src/types/adminLicence.d.ts +13 -3
  82. package/lib/src/types/adminUtils.d.ts +2 -0
  83. package/lib/src/types/hook.d.ts +91 -2
  84. package/lib/src/types/index.d.ts +1 -0
  85. package/lib/src/types/license.d.ts +223 -0
  86. package/lib/src/types/magicPad.d.ts +9 -0
  87. package/lib/src/types/search.d.ts +1 -3
  88. package/lib/src/types/utils.d.ts +11 -11
  89. package/lib/src/util/taxonomy.d.ts +2 -2
  90. package/package.json +1 -1
  91. package/phpunitMock/licenseManagerAssignLicenseKind-default.json +7 -0
  92. package/phpunitMock/licenseManagerGetUsers-default.json +205 -0
  93. package/phpunitMock/licenseManagerGetUsersWithLicense-default.json +24 -0
  94. package/phpunitMock/licenseManagerStatistics-default.json +10 -0
  95. package/phpunitMock/licenseManagerUnassignLicenseKind-default.json +7 -0
  96. package/phpunitMock/licenseManagerUnassignUnusedLicenses-default.json +7 -0
  97. package/phpunitMock/magicPadGetThumbnailUrl-success.json +9 -0
  98. /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, AdminLicenseUserStats, ObjectWithoutLicenseFilter } from '../../types';
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<AdminLicenseUserStats, import("../../types").BaseMessages>>;
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
  }
@@ -32,6 +32,7 @@ import { JSocialActionApi } from './socialAction/socialAction';
32
32
  import { JBusinessNetworkingApi } from './businessNetworking/businessNetworking';
33
33
  import { JIAApi } from './jia/jia';
34
34
  import { JWidgetApi } from './widget/widget';
35
+ import { JMagicPadApi } from './magicPad/magicPad';
35
36
  import { JBbbApi } from './bbb/bbb';
36
37
  /**
37
38
  * In browser usage, 'window' should be the window object.
@@ -69,6 +70,7 @@ export declare class JamespotUserApi {
69
70
  group: JGroupApi;
70
71
  jia: JIAApi;
71
72
  jland: JLandApi;
73
+ magicPad: JMagicPadApi;
72
74
  mediaLibrary: JMediaLibraryApi;
73
75
  messenger: JMessengerApi;
74
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,3 @@
1
+ import { ApiWrapper } from '../../types';
2
+ import { MagicPadThumbnail } from '../../types/magicPad';
3
+ export declare const magicPadGetThumbnailUrl: ApiWrapper<MagicPadThumbnail>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,20 @@
1
1
  import { jUserList } from './user';
2
2
  import { ObjectListProps } from './utils';
3
- export type AdminLicenseUserStats = {
4
- countActiveUsersWithoutLicense: number;
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;
@@ -4,6 +4,8 @@ export type AdminAppTab = {
4
4
  idDiv: string;
5
5
  label: string;
6
6
  icon: string;
7
+ licenseMode?: 'classic';
8
+ hook?: string;
7
9
  };
8
10
  export type AdminApp = {
9
11
  name: string;
@@ -7,6 +7,14 @@ declare const buildHookSchema: <T extends z.ZodTypeAny>(hookType: T) => z.ZodInt
7
7
  isActive: boolean;
8
8
  }>, T>;
9
9
  export type HookType<T extends object = {}> = z.infer<ReturnType<typeof buildHookSchema<ZodType<T>>>>;
10
+ declare const buildLicenceHookSchema: <T extends z.ZodTypeAny>(hookType: T) => z.ZodIntersection<z.ZodObject<{
11
+ isActive: z.ZodBoolean;
12
+ }, "strip", z.ZodTypeAny, {
13
+ isActive: boolean;
14
+ }, {
15
+ isActive: boolean;
16
+ }>, z.ZodTypeAny>;
17
+ export type LicenceHookType<T extends object = {}> = z.infer<ReturnType<typeof buildLicenceHookSchema<ZodType<T>>>>;
10
18
  /**
11
19
  * Hook types
12
20
  */
@@ -96,10 +104,60 @@ declare const widgetHookSchema: z.ZodIntersection<z.ZodObject<{
96
104
  autorize: ("comment" | "message" | "board" | "article" | undefined)[];
97
105
  }>>;
98
106
  export type WidgetHook = z.infer<typeof widgetHookSchema>;
107
+ declare const magicPadHookSchema: z.ZodIntersection<z.ZodObject<{
108
+ isActive: z.ZodBoolean;
109
+ }, "strip", z.ZodTypeAny, {
110
+ isActive: boolean;
111
+ }, {
112
+ isActive: boolean;
113
+ }>, z.ZodObject<{
114
+ label: z.ZodString;
115
+ hasLicense: z.ZodBoolean;
116
+ }, "strip", z.ZodTypeAny, {
117
+ label: string;
118
+ hasLicense: boolean;
119
+ }, {
120
+ label: string;
121
+ hasLicense: boolean;
122
+ }>>;
123
+ export type MagicPadHook = z.infer<typeof magicPadHookSchema>;
99
124
  /**
100
125
  * HookListType
101
126
  */
102
- declare const hookListTypeSchema: z.ZodObject<{
127
+ declare const licenseHookListTypeSchema: z.ZodObject<{
128
+ MagicPadHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
129
+ isActive: z.ZodBoolean;
130
+ }, "strip", z.ZodTypeAny, {
131
+ isActive: boolean;
132
+ }, {
133
+ isActive: boolean;
134
+ }>, z.ZodObject<{
135
+ label: z.ZodString;
136
+ hasLicense: z.ZodBoolean;
137
+ }, "strip", z.ZodTypeAny, {
138
+ label: string;
139
+ hasLicense: boolean;
140
+ }, {
141
+ label: string;
142
+ hasLicense: boolean;
143
+ }>>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ MagicPadHook?: ({
146
+ isActive: boolean;
147
+ } & {
148
+ label: string;
149
+ hasLicense: boolean;
150
+ }) | undefined;
151
+ }, {
152
+ MagicPadHook?: ({
153
+ isActive: boolean;
154
+ } & {
155
+ label: string;
156
+ hasLicense: boolean;
157
+ }) | undefined;
158
+ }>;
159
+ export type LicenseHookListType = z.infer<typeof licenseHookListTypeSchema>;
160
+ declare const hookListTypeSchema: z.ZodIntersection<z.ZodObject<{
103
161
  DriveHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
104
162
  isActive: z.ZodBoolean;
105
163
  }, "strip", z.ZodTypeAny, {
@@ -240,7 +298,38 @@ declare const hookListTypeSchema: z.ZodObject<{
240
298
  } & {
241
299
  sendAlert: boolean;
242
300
  }) | undefined;
243
- }>;
301
+ }>, z.ZodObject<{
302
+ MagicPadHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
303
+ isActive: z.ZodBoolean;
304
+ }, "strip", z.ZodTypeAny, {
305
+ isActive: boolean;
306
+ }, {
307
+ isActive: boolean;
308
+ }>, z.ZodObject<{
309
+ label: z.ZodString;
310
+ hasLicense: z.ZodBoolean;
311
+ }, "strip", z.ZodTypeAny, {
312
+ label: string;
313
+ hasLicense: boolean;
314
+ }, {
315
+ label: string;
316
+ hasLicense: boolean;
317
+ }>>>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ MagicPadHook?: ({
320
+ isActive: boolean;
321
+ } & {
322
+ label: string;
323
+ hasLicense: boolean;
324
+ }) | undefined;
325
+ }, {
326
+ MagicPadHook?: ({
327
+ isActive: boolean;
328
+ } & {
329
+ label: string;
330
+ hasLicense: boolean;
331
+ }) | undefined;
332
+ }>>;
244
333
  export type HookListType = z.infer<typeof hookListTypeSchema>;
245
334
  export declare const validateIsFormatHookListType: (object: object) => HookListType;
246
335
  export {};
@@ -19,6 +19,7 @@ export * from './global';
19
19
  export * from './group';
20
20
  export * from './hook';
21
21
  export * from './jia';
22
+ export * from './license';
22
23
  export * from './mediaLibrary';
23
24
  export * from './meeting';
24
25
  export * from './model';
@@ -0,0 +1,223 @@
1
+ import { z, ZodType } from 'zod';
2
+ import { jUserLittle } from './user';
3
+ export declare const getLicenseKindUsersParamsSchema: z.ZodObject<{
4
+ kind: z.ZodString;
5
+ page: z.ZodNumber;
6
+ limit: z.ZodNumber;
7
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ name: z.ZodString;
9
+ value: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
10
+ srcId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
11
+ srcType: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ srcId: string | number;
14
+ srcType: string;
15
+ }, {
16
+ srcId: string | number;
17
+ srcType: string;
18
+ }>, z.ZodObject<{
19
+ targetId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
20
+ targetType: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ targetId: string | number;
23
+ targetType: string;
24
+ }, {
25
+ targetId: string | number;
26
+ targetType: string;
27
+ }>, z.ZodObject<{
28
+ start: z.ZodString;
29
+ end: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ start: string;
32
+ end: string;
33
+ }, {
34
+ start: string;
35
+ end: string;
36
+ }>]>;
37
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"<">, z.ZodLiteral<">">, z.ZodLiteral<"<=">, z.ZodLiteral<">=">, z.ZodLiteral<"!=">, z.ZodLiteral<"<>">, z.ZodLiteral<"like">, z.ZodLiteral<"between">, z.ZodLiteral<"is">, z.ZodLiteral<"is not">, z.ZodLiteral<"in">, z.ZodLiteral<"link">, z.ZodLiteral<"match">, z.ZodLiteral<"equal">]>>;
38
+ method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"<">, z.ZodLiteral<">">, z.ZodLiteral<"<=">, z.ZodLiteral<">=">, z.ZodLiteral<"!=">, z.ZodLiteral<"<>">, z.ZodLiteral<"+">, z.ZodLiteral<"-">, z.ZodLiteral<"like">, z.ZodLiteral<"between">, z.ZodLiteral<"is">, z.ZodLiteral<"is not">, z.ZodLiteral<"in">, z.ZodLiteral<"link">, z.ZodLiteral<"match">, z.ZodLiteral<"equal">]>>;
39
+ or: z.ZodOptional<z.ZodBoolean>;
40
+ isNull: z.ZodOptional<z.ZodBoolean>;
41
+ isNotNull: z.ZodOptional<z.ZodBoolean>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ value: (string | number | boolean | string[] | {
44
+ srcId: string | number;
45
+ srcType: string;
46
+ } | {
47
+ targetId: string | number;
48
+ targetType: string;
49
+ } | {
50
+ start: string;
51
+ end: string;
52
+ }) & (string | number | boolean | string[] | {
53
+ srcId: string | number;
54
+ srcType: string;
55
+ } | {
56
+ targetId: string | number;
57
+ targetType: string;
58
+ } | {
59
+ start: string;
60
+ end: string;
61
+ } | undefined);
62
+ name: string;
63
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
64
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
65
+ or?: boolean | undefined;
66
+ isNull?: boolean | undefined;
67
+ isNotNull?: boolean | undefined;
68
+ }, {
69
+ value: (string | number | boolean | string[] | {
70
+ srcId: string | number;
71
+ srcType: string;
72
+ } | {
73
+ targetId: string | number;
74
+ targetType: string;
75
+ } | {
76
+ start: string;
77
+ end: string;
78
+ }) & (string | number | boolean | string[] | {
79
+ srcId: string | number;
80
+ srcType: string;
81
+ } | {
82
+ targetId: string | number;
83
+ targetType: string;
84
+ } | {
85
+ start: string;
86
+ end: string;
87
+ } | undefined);
88
+ name: string;
89
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
90
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
91
+ or?: boolean | undefined;
92
+ isNull?: boolean | undefined;
93
+ isNotNull?: boolean | undefined;
94
+ }>, "many">>;
95
+ orders: z.ZodOptional<z.ZodArray<z.ZodObject<{
96
+ name: z.ZodString;
97
+ sort: z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ sort: "ASC" | "DESC";
100
+ name: string;
101
+ }, {
102
+ sort: "ASC" | "DESC";
103
+ name: string;
104
+ }>, "many">>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ limit: number;
107
+ page: number;
108
+ kind: string;
109
+ filters?: {
110
+ value: (string | number | boolean | string[] | {
111
+ srcId: string | number;
112
+ srcType: string;
113
+ } | {
114
+ targetId: string | number;
115
+ targetType: string;
116
+ } | {
117
+ start: string;
118
+ end: string;
119
+ }) & (string | number | boolean | string[] | {
120
+ srcId: string | number;
121
+ srcType: string;
122
+ } | {
123
+ targetId: string | number;
124
+ targetType: string;
125
+ } | {
126
+ start: string;
127
+ end: string;
128
+ } | undefined);
129
+ name: string;
130
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
131
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
132
+ or?: boolean | undefined;
133
+ isNull?: boolean | undefined;
134
+ isNotNull?: boolean | undefined;
135
+ }[] | undefined;
136
+ orders?: {
137
+ sort: "ASC" | "DESC";
138
+ name: string;
139
+ }[] | undefined;
140
+ }, {
141
+ limit: number;
142
+ page: number;
143
+ kind: string;
144
+ filters?: {
145
+ value: (string | number | boolean | string[] | {
146
+ srcId: string | number;
147
+ srcType: string;
148
+ } | {
149
+ targetId: string | number;
150
+ targetType: string;
151
+ } | {
152
+ start: string;
153
+ end: string;
154
+ }) & (string | number | boolean | string[] | {
155
+ srcId: string | number;
156
+ srcType: string;
157
+ } | {
158
+ targetId: string | number;
159
+ targetType: string;
160
+ } | {
161
+ start: string;
162
+ end: string;
163
+ } | undefined);
164
+ name: string;
165
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
166
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
167
+ or?: boolean | undefined;
168
+ isNull?: boolean | undefined;
169
+ isNotNull?: boolean | undefined;
170
+ }[] | undefined;
171
+ orders?: {
172
+ sort: "ASC" | "DESC";
173
+ name: string;
174
+ }[] | undefined;
175
+ }>;
176
+ export type GetLicenseKindUsersParams = z.infer<typeof getLicenseKindUsersParamsSchema>;
177
+ export declare const inferUserLicenseSchema: <T extends z.ZodType<z.objectOutputType<{
178
+ type: z.ZodString;
179
+ id: z.ZodNumber;
180
+ mainType: z.ZodString;
181
+ uri: z.ZodString;
182
+ title: z.ZodString;
183
+ _url: z.ZodString;
184
+ level: z.ZodNativeEnum<{
185
+ readonly ADMIN: 9;
186
+ readonly USER: 5;
187
+ readonly EXTERNAL: 3;
188
+ readonly GUEST: 0;
189
+ }>;
190
+ dateCreation: z.ZodString;
191
+ dateModified: z.ZodString;
192
+ }, z.ZodUnion<[z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodString]>, "strip">, z.ZodTypeDef, z.objectOutputType<{
193
+ type: z.ZodString;
194
+ id: z.ZodNumber;
195
+ mainType: z.ZodString;
196
+ uri: z.ZodString;
197
+ title: z.ZodString;
198
+ _url: z.ZodString;
199
+ level: z.ZodNativeEnum<{
200
+ readonly ADMIN: 9;
201
+ readonly USER: 5;
202
+ readonly EXTERNAL: 3;
203
+ readonly GUEST: 0;
204
+ }>;
205
+ dateCreation: z.ZodString;
206
+ dateModified: z.ZodString;
207
+ }, z.ZodUnion<[z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodString]>, "strip">>>(type: T) => z.ZodObject<{
208
+ license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
209
+ user: T;
210
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
211
+ license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
212
+ user: T;
213
+ }>, "license" | (undefined extends T["_output"] ? never : "user")> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
214
+ license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
215
+ user: T;
216
+ }>, "license" | (undefined extends T["_output"] ? never : "user")>[k_1]; } : never, z.baseObjectInputType<{
217
+ license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
218
+ user: T;
219
+ }> extends infer T_2 ? { [k_2 in keyof T_2]: z.baseObjectInputType<{
220
+ license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
221
+ user: T;
222
+ }>[k_2]; } : never>;
223
+ export type UserLicense<T extends jUserLittle> = z.infer<ReturnType<typeof inferUserLicenseSchema<ZodType<T>>>>;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const magicPadGetThumbnailSchema: z.ZodObject<{
3
+ thumbnailUrl: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ thumbnailUrl: string;
6
+ }, {
7
+ thumbnailUrl: string;
8
+ }>;
9
+ export type MagicPadThumbnail = z.infer<typeof magicPadGetThumbnailSchema>;
@@ -18,9 +18,7 @@ export interface SearchCategoryValue {
18
18
  export type FacetMode = 'AND' | 'OR';
19
19
  export interface SearchFacetModel {
20
20
  facetType: string;
21
- facetOptions: any | {
22
- uriTaxonomy: string;
23
- };
21
+ facetOptions: Record<string, object | number | string> | Array<never>;
24
22
  facetMode?: FacetMode;
25
23
  field: string;
26
24
  title: string;
@@ -170,17 +170,6 @@ export declare const audienceSchema: z.ZodUnion<[z.ZodLazy<z.ZodObject<{
170
170
  privacy: number;
171
171
  }>]>;
172
172
  export type Audience = z.infer<typeof audienceSchema>;
173
- export declare const ordersSchema: z.ZodArray<z.ZodObject<{
174
- name: z.ZodString;
175
- sort: z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>;
176
- }, "strip", z.ZodTypeAny, {
177
- sort: "ASC" | "DESC";
178
- name: string;
179
- }, {
180
- sort: "ASC" | "DESC";
181
- name: string;
182
- }>, "many">;
183
- export type Orders = z.infer<typeof ordersSchema>;
184
173
  export declare const filterValueSchema: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
185
174
  srcId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
186
175
  srcType: z.ZodString;
@@ -299,6 +288,17 @@ export declare const filterSchema: z.ZodObject<{
299
288
  isNotNull?: boolean | undefined;
300
289
  }>;
301
290
  export type Filter = z.infer<typeof filterSchema>;
291
+ export declare const ordersSchema: z.ZodArray<z.ZodObject<{
292
+ name: z.ZodString;
293
+ sort: z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ sort: "ASC" | "DESC";
296
+ name: string;
297
+ }, {
298
+ sort: "ASC" | "DESC";
299
+ name: string;
300
+ }>, "many">;
301
+ export type Orders = z.infer<typeof ordersSchema>;
302
302
  export declare const filtersSchema: z.ZodArray<z.ZodObject<{
303
303
  name: z.ZodString;
304
304
  value: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  export declare function extractTaxonomiesFromObject(objet: Record<string, unknown>): Record<string, unknown>;
2
- export declare function extractTaxonomiesFromObjectAndMapProperty(objet: Record<string, unknown>, property: string, format?: (o: any) => any): {
3
- [k: string]: any;
2
+ export declare function extractTaxonomiesFromObjectAndMapProperty(objet: Record<string, unknown>, property: string, format?: (o: string[]) => string): {
3
+ [k: string]: unknown;
4
4
  };
5
5
  export declare function extractTaxonomiesFromObjectAndMapUri(objet: Record<string, unknown>): Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.168",
3
+ "version": "1.0.169",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "licenseManager",
3
+ "f": "assignLicenseKind",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": true
7
+ }