jamespot-user-api 1.0.184 → 1.0.186

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 (76) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +1 -1
  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/BookmarkType.html +1 -1
  37. package/documentation/enums/Format.html +1 -1
  38. package/documentation/enums/GroupModerateStatus.html +1 -1
  39. package/documentation/enums/StudioApplicationStatus.html +1 -1
  40. package/documentation/enums/WidgetsName.html +1 -1
  41. package/documentation/index.html +1 -1
  42. package/documentation/interfaces/AccessRightObject.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/FileBankProps.html +1 -1
  47. package/documentation/interfaces/FolderProps.html +1 -1
  48. package/documentation/interfaces/ListFilterSpec.html +1 -1
  49. package/documentation/interfaces/OF.html +1 -1
  50. package/documentation/interfaces/PagingResults.html +1 -1
  51. package/documentation/interfaces/RootFolderProps.html +1 -1
  52. package/documentation/interfaces/SpotProps.html +1 -1
  53. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  54. package/documentation/interfaces/WidgetType.html +1 -1
  55. package/documentation/interfaces/WindowInterface.html +1 -1
  56. package/documentation/modules.html +11 -11
  57. package/lib/jamespot-user-api.js +1 -1
  58. package/lib/jamespot-user-api.js.map +1 -1
  59. package/lib/src/apis/article/article.mock.d.ts +1 -0
  60. package/lib/src/apis/datasource/datasource.d.ts +8 -3
  61. package/lib/src/apis/datasource/datasource.mock.d.ts +2 -0
  62. package/lib/src/apis/drive/drive.d.ts +17 -4
  63. package/lib/src/apis/drive/drive.mock.d.ts +5 -1
  64. package/lib/src/types/drive.d.ts +273 -10
  65. package/lib/src/types/hook.d.ts +197 -0
  66. package/lib/src/types/realtime.d.ts +6 -2
  67. package/lib/src/types/widgets/default.d.ts +3 -0
  68. package/lib/src/types/widgets.d.ts +17 -0
  69. package/package.json +1 -1
  70. package/phpunitMock/articleGet-with-attachments.json +55 -0
  71. package/phpunitMock/widgetDatasourceCancel-default.json +1 -0
  72. package/phpunitMock/widgetDatasourceGet-get-calc.json +4 -0
  73. package/phpunitMock/widgetDatasourceGet-get-doc.json +4 -0
  74. package/phpunitMock/widgetDatasourceGet-get-studio.json +4 -0
  75. package/phpunitMock/widgetDatasourceGetExcelDatasource-default.json +3 -2
  76. package/phpunitMock/widgetDatasourceGetExcelDatasourceHeaders-default.json +7 -0
@@ -34,3 +34,4 @@ export declare const articleGetComments: ApiWrapper<jCommentList[]>;
34
34
  export declare const articleAddComment: ApiWrapper<jCommentList>;
35
35
  export declare const articleUpdateComment: ApiWrapper<jCommentList>;
36
36
  export declare const articleDeleteComment: ApiDefaultWrapper;
37
+ export declare const articleGetWithAttachments: ApiWrapper<jArticleExtendView>;
@@ -15,6 +15,10 @@ export type DatasourceResult<T extends {} = {}> = {
15
15
  model: WidgetTableColumn[];
16
16
  sort: DatasourceResultSort;
17
17
  data: T[];
18
+ datasource: {
19
+ datasourceType: DatasourceType;
20
+ datasourceIdentifier: string;
21
+ };
18
22
  };
19
23
  export type DatasourceModel = WidgetTableColumn[];
20
24
  export type DatasourceStudioLittle = {
@@ -34,13 +38,12 @@ export type jDatasourceArticleList = jArticleList & {
34
38
  datasourceParameters: string | null;
35
39
  datasourceModel: string | null;
36
40
  };
37
- export type DatasourceType = 'calc' | 'studio' | 'doc' | 'external-api';
41
+ export type DatasourceType = 'calc' | 'calc-attachment' | 'studio' | 'doc' | 'external-api';
38
42
  export type jDatasourceExcel = {
39
43
  file: jFileLittle;
40
44
  fileUrl?: string;
41
- spreadsheet: string;
42
45
  spreadsheetList: string[];
43
- headers: string[];
46
+ spreadsheetListHeaders: Record<string, string[]>;
44
47
  };
45
48
  export declare class JDatasourceApi extends JBaseApi {
46
49
  get<T extends {}>(uri: string, format: Format): Promise<ApiWrapper<DatasourceResult<T>>>;
@@ -48,9 +51,11 @@ export declare class JDatasourceApi extends JBaseApi {
48
51
  type: DatasourceType;
49
52
  model: DatasourceModel;
50
53
  }>>;
54
+ cancel(uri: string): Promise<ApiWrapper<boolean>>;
51
55
  getObject(uri: string): Promise<ApiWrapper<DatasourceArticleLittle | DatasourceStudioLittle>>;
52
56
  updateModel(uri: string, model: DatasourceModel): Promise<ApiWrapper<boolean>>;
53
57
  getExcelDatasource(uri: string): Promise<ApiWrapper<jDatasourceExcel>>;
58
+ getExcelDatasourceHeaders(uri: string, spreadsheet?: string): Promise<ApiWrapper<string[]>>;
54
59
  setExcelDatasource(uri: string, spreadsheet: string): Promise<ApiWrapper<DatasourceModel>>;
55
60
  create({ title, datasourceType, datasourceIdentifier, token, }: {
56
61
  title: string;
@@ -26,3 +26,5 @@ export declare const datasourceUpdateInvalidModel: {
26
26
  };
27
27
  export declare const datasourceUpdateValidModel: ApiWrapper<boolean, BaseMessages>;
28
28
  export declare const datasourceGetCalc: ApiWrapper<DatasourceResult, BaseMessages>;
29
+ export declare const datasourceCancel: ApiWrapper<boolean, BaseMessages>;
30
+ export declare const datasourceGetExcelDatasourceHeaders: ApiWrapper<string[], BaseMessages>;
@@ -1,16 +1,16 @@
1
1
  import { JBaseApi } from '../base';
2
- import { ApiWrapper, DriveAccount, DriveDocumentParams, MSDocumentEntity, MSGroupEntity, MSSiteEntity, MSTenantEntity } from '../../types';
2
+ import { ApiWrapper, DriveAccount, DriveGetAccount, DriveGetAccountParams, DriveGetDocumentParams, DriveGetDocumentsParams, DriveGetGroupsParams, DriveGetTenantsParams, DriveLogoutParams, DriveSetDefaultAccountParams, FormatList, jFileLittle, MSDocumentEntity, MSGroupEntity, MSSiteEntity, MSTenantEntity } from '../../types';
3
3
  export declare class JDriveApi extends JBaseApi {
4
4
  /**
5
5
  * Microsoft graph only
6
6
  * @returns
7
7
  */
8
- tenants(): Promise<ApiWrapper<MSTenantEntity[]>>;
8
+ tenants(params?: DriveGetTenantsParams): Promise<ApiWrapper<MSTenantEntity[]>>;
9
9
  /**
10
10
  * Microsoft graph only
11
11
  * @returns
12
12
  */
13
- groups(query?: string, filter?: string): Promise<ApiWrapper<MSGroupEntity[]>>;
13
+ groups(params: DriveGetGroupsParams): Promise<ApiWrapper<MSGroupEntity[]>>;
14
14
  /**
15
15
  * Microsoft graph only
16
16
  * @returns
@@ -19,5 +19,18 @@ export declare class JDriveApi extends JBaseApi {
19
19
  listAccount(service: string): Promise<ApiWrapper<DriveAccount[]>>;
20
20
  isAccountLogged(service: string, id: string): Promise<ApiWrapper<boolean>>;
21
21
  checkAccountToken(service: string): Promise<ApiWrapper<boolean>>;
22
- documents(service: string, documentParams: DriveDocumentParams): Promise<ApiWrapper<MSDocumentEntity[]>>;
22
+ documents(params: DriveGetDocumentsParams): Promise<ApiWrapper<MSDocumentEntity[]>>;
23
+ getDocument<T extends jFileLittle = jFileLittle>(params: DriveGetDocumentParams, options?: {
24
+ signal?: AbortSignal;
25
+ format?: FormatList;
26
+ }): Promise<ApiWrapper<T>>;
27
+ logout(params: DriveLogoutParams, options?: {
28
+ signal?: AbortSignal;
29
+ }): Promise<ApiWrapper<boolean>>;
30
+ getAccount(params: DriveGetAccountParams, options?: {
31
+ signal?: AbortSignal;
32
+ }): Promise<ApiWrapper<DriveGetAccount>>;
33
+ setDefaultAccount(params: DriveSetDefaultAccountParams, options?: {
34
+ signal?: AbortSignal;
35
+ }): Promise<ApiWrapper<boolean>>;
23
36
  }
@@ -1,4 +1,8 @@
1
- import { ApiWrapper, BaseMessages, DriveItemType, MSGroupEntity, MSTenantEntity } from '../../types';
1
+ import { ApiWrapper, BaseMessages, DriveGetAccount, DriveItemType, jFileLittle, MSGroupEntity, MSTenantEntity } from '../../types';
2
2
  export declare const driveGetTenants: ApiWrapper<MSTenantEntity[], BaseMessages>;
3
3
  export declare const driveGetGroups: ApiWrapper<MSGroupEntity[], BaseMessages>;
4
4
  export declare const driveGetDocuments: ApiWrapper<DriveItemType[], BaseMessages>;
5
+ export declare const driveGetDocument: ApiWrapper<jFileLittle>;
6
+ export declare const driveLogout: ApiWrapper<boolean>;
7
+ export declare const driveGetAccount: ApiWrapper<DriveGetAccount>;
8
+ export declare const driveSetDefaultAccount: ApiWrapper<boolean>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const msTenantsSchema: z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">]>;
2
+ export declare const msTenantsSchema: z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>;
3
3
  export type MSTenants = z.infer<typeof msTenantsSchema>;
4
4
  export declare const msBaseEntitySchema: z.ZodObject<{
5
5
  title: z.ZodString;
@@ -20,15 +20,15 @@ export declare const msTenantEntitySchema: z.ZodObject<z.objectUtil.extendShape<
20
20
  id: z.ZodString;
21
21
  type: z.ZodString;
22
22
  }, "id">, {
23
- name: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">]>>;
23
+ name: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>>;
24
24
  }>, "strip", z.ZodTypeAny, {
25
25
  type: string;
26
26
  title: string;
27
- name?: "groups" | "sites" | "onedrive" | "group" | "documents" | undefined;
27
+ name?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
28
28
  }, {
29
29
  type: string;
30
30
  title: string;
31
- name?: "groups" | "sites" | "onedrive" | "group" | "documents" | undefined;
31
+ name?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
32
32
  }>;
33
33
  export type MSTenantEntity = z.infer<typeof msTenantEntitySchema>;
34
34
  export declare const msSiteEntitySchema: z.ZodIntersection<z.ZodObject<{
@@ -70,17 +70,20 @@ export declare const msDocumentEntitySchema: z.ZodObject<z.objectUtil.extendShap
70
70
  }, {
71
71
  mimetype: z.ZodOptional<z.ZodString>;
72
72
  webUrl: z.ZodOptional<z.ZodString>;
73
+ size: z.ZodOptional<z.ZodNumber>;
73
74
  }>, "strip", z.ZodTypeAny, {
74
75
  type: string;
75
76
  id: string;
76
77
  title: string;
77
78
  mimetype?: string | undefined;
79
+ size?: number | undefined;
78
80
  webUrl?: string | undefined;
79
81
  }, {
80
82
  type: string;
81
83
  id: string;
82
84
  title: string;
83
85
  mimetype?: string | undefined;
86
+ size?: number | undefined;
84
87
  webUrl?: string | undefined;
85
88
  }>;
86
89
  export type MSDocumentEntity = z.infer<typeof msDocumentEntitySchema>;
@@ -107,17 +110,20 @@ export declare const msUnifiedEntitySchema: z.ZodIntersection<z.ZodObject<z.obje
107
110
  }, {
108
111
  mimetype: z.ZodOptional<z.ZodString>;
109
112
  webUrl: z.ZodOptional<z.ZodString>;
113
+ size: z.ZodOptional<z.ZodNumber>;
110
114
  }>, "strip", z.ZodTypeAny, {
111
115
  type: string;
112
116
  id: string;
113
117
  title: string;
114
118
  mimetype?: string | undefined;
119
+ size?: number | undefined;
115
120
  webUrl?: string | undefined;
116
121
  }, {
117
122
  type: string;
118
123
  id: string;
119
124
  title: string;
120
125
  mimetype?: string | undefined;
126
+ size?: number | undefined;
121
127
  webUrl?: string | undefined;
122
128
  }>>;
123
129
  export type MSUnifiedEntity = z.infer<typeof msUnifiedEntitySchema>;
@@ -125,17 +131,17 @@ export declare const driveAccountSchema: z.ZodObject<{
125
131
  id: z.ZodString;
126
132
  title: z.ZodString;
127
133
  mail: z.ZodString;
128
- default: z.ZodBoolean;
134
+ default: z.ZodOptional<z.ZodBoolean>;
129
135
  }, "strip", z.ZodTypeAny, {
130
136
  id: string;
131
137
  title: string;
132
138
  mail: string;
133
- default: boolean;
139
+ default?: boolean | undefined;
134
140
  }, {
135
141
  id: string;
136
142
  title: string;
137
143
  mail: string;
138
- default: boolean;
144
+ default?: boolean | undefined;
139
145
  }>;
140
146
  export type DriveAccount = z.infer<typeof driveAccountSchema>;
141
147
  export declare const driveItemTypeSchema: z.ZodObject<{
@@ -159,7 +165,7 @@ export declare const driveItemTypeSchema: z.ZodObject<{
159
165
  }>;
160
166
  export type DriveItemType = z.infer<typeof driveItemTypeSchema>;
161
167
  export declare const driveDocumentParamsSchema: z.ZodObject<{
162
- msTenant: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">]>, z.ZodUndefined]>;
168
+ msTenant: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>, z.ZodUndefined]>;
163
169
  msId: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
164
170
  idFolder: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
165
171
  page: z.ZodNumber;
@@ -169,15 +175,272 @@ export declare const driveDocumentParamsSchema: z.ZodObject<{
169
175
  limit: number;
170
176
  page: number;
171
177
  query?: string | null | undefined;
172
- msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | undefined;
178
+ msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
173
179
  msId?: string | undefined;
174
180
  idFolder?: string | undefined;
175
181
  }, {
176
182
  limit: number;
177
183
  page: number;
178
184
  query?: string | null | undefined;
179
- msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | undefined;
185
+ msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
180
186
  msId?: string | undefined;
181
187
  idFolder?: string | undefined;
182
188
  }>;
183
189
  export type DriveDocumentParams = z.infer<typeof driveDocumentParamsSchema>;
190
+ export declare const driveTmpFileSchema: z.ZodObject<{
191
+ id: z.ZodNumber;
192
+ name: z.ZodString;
193
+ type: z.ZodString;
194
+ token: z.ZodString;
195
+ size: z.ZodNumber;
196
+ mediaKey: z.ZodString;
197
+ }, "strip", z.ZodTypeAny, {
198
+ type: string;
199
+ id: number;
200
+ token: string;
201
+ size: number;
202
+ name: string;
203
+ mediaKey: string;
204
+ }, {
205
+ type: string;
206
+ id: number;
207
+ token: string;
208
+ size: number;
209
+ name: string;
210
+ mediaKey: string;
211
+ }>;
212
+ export type DriveTmpFile = z.infer<typeof driveTmpFileSchema>;
213
+ export declare const driveGetDocumentParamsSchema: z.ZodObject<{
214
+ token: z.ZodOptional<z.ZodString>;
215
+ attrName: z.ZodString;
216
+ file: z.ZodObject<{
217
+ service: z.ZodString;
218
+ account: z.ZodString;
219
+ title: z.ZodString;
220
+ mimetype: z.ZodOptional<z.ZodString>;
221
+ _document: z.ZodObject<z.objectUtil.extendShape<{
222
+ title: z.ZodString;
223
+ id: z.ZodString;
224
+ type: z.ZodString;
225
+ }, {
226
+ mimetype: z.ZodOptional<z.ZodString>;
227
+ webUrl: z.ZodOptional<z.ZodString>;
228
+ size: z.ZodOptional<z.ZodNumber>;
229
+ }>, "strip", z.ZodTypeAny, {
230
+ type: string;
231
+ id: string;
232
+ title: string;
233
+ mimetype?: string | undefined;
234
+ size?: number | undefined;
235
+ webUrl?: string | undefined;
236
+ }, {
237
+ type: string;
238
+ id: string;
239
+ title: string;
240
+ mimetype?: string | undefined;
241
+ size?: number | undefined;
242
+ webUrl?: string | undefined;
243
+ }>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ title: string;
246
+ service: string;
247
+ account: string;
248
+ _document: {
249
+ type: string;
250
+ id: string;
251
+ title: string;
252
+ mimetype?: string | undefined;
253
+ size?: number | undefined;
254
+ webUrl?: string | undefined;
255
+ };
256
+ mimetype?: string | undefined;
257
+ }, {
258
+ title: string;
259
+ service: string;
260
+ account: string;
261
+ _document: {
262
+ type: string;
263
+ id: string;
264
+ title: string;
265
+ mimetype?: string | undefined;
266
+ size?: number | undefined;
267
+ webUrl?: string | undefined;
268
+ };
269
+ mimetype?: string | undefined;
270
+ }>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ attrName: string;
273
+ file: {
274
+ title: string;
275
+ service: string;
276
+ account: string;
277
+ _document: {
278
+ type: string;
279
+ id: string;
280
+ title: string;
281
+ mimetype?: string | undefined;
282
+ size?: number | undefined;
283
+ webUrl?: string | undefined;
284
+ };
285
+ mimetype?: string | undefined;
286
+ };
287
+ token?: string | undefined;
288
+ }, {
289
+ attrName: string;
290
+ file: {
291
+ title: string;
292
+ service: string;
293
+ account: string;
294
+ _document: {
295
+ type: string;
296
+ id: string;
297
+ title: string;
298
+ mimetype?: string | undefined;
299
+ size?: number | undefined;
300
+ webUrl?: string | undefined;
301
+ };
302
+ mimetype?: string | undefined;
303
+ };
304
+ token?: string | undefined;
305
+ }>;
306
+ export type DriveGetDocumentParams = z.infer<typeof driveGetDocumentParamsSchema>;
307
+ export declare const driveLogoutParamsSchema: z.ZodObject<{
308
+ id: z.ZodString;
309
+ service: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ id: string;
312
+ service: string;
313
+ }, {
314
+ id: string;
315
+ service: string;
316
+ }>;
317
+ export type DriveLogoutParams = z.infer<typeof driveLogoutParamsSchema>;
318
+ export declare const driveGetAccountParamsSchema: z.ZodObject<{
319
+ service: z.ZodString;
320
+ id: z.ZodString;
321
+ }, "strip", z.ZodTypeAny, {
322
+ id: string;
323
+ service: string;
324
+ }, {
325
+ id: string;
326
+ service: string;
327
+ }>;
328
+ export type DriveGetAccountParams = z.infer<typeof driveGetAccountParamsSchema>;
329
+ export declare const driveGetAccountSchema: z.ZodObject<{
330
+ account: z.ZodObject<{
331
+ id: z.ZodString;
332
+ title: z.ZodString;
333
+ mail: z.ZodString;
334
+ default: z.ZodOptional<z.ZodBoolean>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ id: string;
337
+ title: string;
338
+ mail: string;
339
+ default?: boolean | undefined;
340
+ }, {
341
+ id: string;
342
+ title: string;
343
+ mail: string;
344
+ default?: boolean | undefined;
345
+ }>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ account: {
348
+ id: string;
349
+ title: string;
350
+ mail: string;
351
+ default?: boolean | undefined;
352
+ };
353
+ }, {
354
+ account: {
355
+ id: string;
356
+ title: string;
357
+ mail: string;
358
+ default?: boolean | undefined;
359
+ };
360
+ }>;
361
+ export type DriveGetAccount = z.infer<typeof driveGetAccountSchema>;
362
+ export declare const driveSetDefaultAccountParamsSchema: z.ZodObject<{
363
+ service: z.ZodString;
364
+ account: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ service: string;
367
+ account: string;
368
+ }, {
369
+ service: string;
370
+ account: string;
371
+ }>;
372
+ export type DriveSetDefaultAccountParams = z.infer<typeof driveSetDefaultAccountParamsSchema>;
373
+ export declare const driveGetTenantsParamsSchema: z.ZodObject<{
374
+ allow: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"me">]>, "many">>;
375
+ id: z.ZodString;
376
+ }, "strip", z.ZodTypeAny, {
377
+ id: string;
378
+ allow?: ("groups" | "me")[] | undefined;
379
+ }, {
380
+ id: string;
381
+ allow?: ("groups" | "me")[] | undefined;
382
+ }>;
383
+ export type DriveGetTenantsParams = z.infer<typeof driveGetTenantsParamsSchema>;
384
+ export declare const driveGetDocumentsParamsSchema: z.ZodObject<{
385
+ service: z.ZodString;
386
+ id: z.ZodString;
387
+ documentParams: z.ZodObject<{
388
+ msTenant: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>, z.ZodUndefined]>;
389
+ msId: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
390
+ idFolder: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
391
+ page: z.ZodNumber;
392
+ limit: z.ZodNumber;
393
+ query: z.ZodNullable<z.ZodOptional<z.ZodString>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ limit: number;
396
+ page: number;
397
+ query?: string | null | undefined;
398
+ msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
399
+ msId?: string | undefined;
400
+ idFolder?: string | undefined;
401
+ }, {
402
+ limit: number;
403
+ page: number;
404
+ query?: string | null | undefined;
405
+ msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
406
+ msId?: string | undefined;
407
+ idFolder?: string | undefined;
408
+ }>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ id: string;
411
+ service: string;
412
+ documentParams: {
413
+ limit: number;
414
+ page: number;
415
+ query?: string | null | undefined;
416
+ msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
417
+ msId?: string | undefined;
418
+ idFolder?: string | undefined;
419
+ };
420
+ }, {
421
+ id: string;
422
+ service: string;
423
+ documentParams: {
424
+ limit: number;
425
+ page: number;
426
+ query?: string | null | undefined;
427
+ msTenant?: "groups" | "sites" | "onedrive" | "group" | "documents" | "me" | undefined;
428
+ msId?: string | undefined;
429
+ idFolder?: string | undefined;
430
+ };
431
+ }>;
432
+ export type DriveGetDocumentsParams = z.infer<typeof driveGetDocumentsParamsSchema>;
433
+ export declare const driveGetGroupsParamsSchema: z.ZodObject<{
434
+ query: z.ZodOptional<z.ZodString>;
435
+ filter: z.ZodOptional<z.ZodString>;
436
+ id: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ id: string;
439
+ filter?: string | undefined;
440
+ query?: string | undefined;
441
+ }, {
442
+ id: string;
443
+ filter?: string | undefined;
444
+ query?: string | undefined;
445
+ }>;
446
+ export type DriveGetGroupsParams = z.infer<typeof driveGetGroupsParamsSchema>;
@@ -65,6 +65,95 @@ declare const fileBankHookSchema: z.ZodIntersection<z.ZodObject<{
65
65
  order: "ASC" | "DESC";
66
66
  }>>;
67
67
  export type FileBankHook = z.infer<typeof fileBankHookSchema>;
68
+ export declare const onlyOfficeTemplateSchema: z.ZodObject<{
69
+ label: z.ZodString;
70
+ description: z.ZodString;
71
+ extension: z.ZodString;
72
+ icon: z.ZodString;
73
+ color: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ color: string;
76
+ description: string;
77
+ label: string;
78
+ icon: string;
79
+ extension: string;
80
+ }, {
81
+ color: string;
82
+ description: string;
83
+ label: string;
84
+ icon: string;
85
+ extension: string;
86
+ }>;
87
+ declare const onlyOfficeHookSchema: z.ZodIntersection<z.ZodObject<{
88
+ isActive: z.ZodBoolean;
89
+ }, "strip", z.ZodTypeAny, {
90
+ isActive: boolean;
91
+ }, {
92
+ isActive: boolean;
93
+ }>, z.ZodObject<{
94
+ hasLicense: z.ZodBoolean;
95
+ label: z.ZodString;
96
+ description: z.ZodString;
97
+ color: z.ZodString;
98
+ templates: z.ZodArray<z.ZodObject<{
99
+ label: z.ZodString;
100
+ description: z.ZodString;
101
+ extension: z.ZodString;
102
+ icon: z.ZodString;
103
+ color: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ color: string;
106
+ description: string;
107
+ label: string;
108
+ icon: string;
109
+ extension: string;
110
+ }, {
111
+ color: string;
112
+ description: string;
113
+ label: string;
114
+ icon: string;
115
+ extension: string;
116
+ }>, "many">;
117
+ }, "strip", z.ZodTypeAny, {
118
+ color: string;
119
+ description: string;
120
+ label: string;
121
+ hasLicense: boolean;
122
+ templates: {
123
+ color: string;
124
+ description: string;
125
+ label: string;
126
+ icon: string;
127
+ extension: string;
128
+ }[];
129
+ }, {
130
+ color: string;
131
+ description: string;
132
+ label: string;
133
+ hasLicense: boolean;
134
+ templates: {
135
+ color: string;
136
+ description: string;
137
+ label: string;
138
+ icon: string;
139
+ extension: string;
140
+ }[];
141
+ }>>;
142
+ export type OnlyOfficeHook = z.infer<typeof onlyOfficeHookSchema>;
143
+ declare const studioHookSchema: z.ZodIntersection<z.ZodObject<{
144
+ isActive: z.ZodBoolean;
145
+ }, "strip", z.ZodTypeAny, {
146
+ isActive: boolean;
147
+ }, {
148
+ isActive: boolean;
149
+ }>, z.ZodObject<{
150
+ hasLicense: z.ZodBoolean;
151
+ }, "strip", z.ZodTypeAny, {
152
+ hasLicense: boolean;
153
+ }, {
154
+ hasLicense: boolean;
155
+ }>>;
156
+ export type StudioHook = z.infer<typeof studioHookSchema>;
68
157
  declare const adminAdvancedHookSchema: z.ZodIntersection<z.ZodObject<{
69
158
  isActive: z.ZodBoolean;
70
159
  }, "strip", z.ZodTypeAny, {
@@ -200,6 +289,74 @@ export declare const hookListTypeSchema: z.ZodIntersection<z.ZodObject<{
200
289
  orderBy: string;
201
290
  order: "ASC" | "DESC";
202
291
  }>>>;
292
+ StudioHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
293
+ isActive: z.ZodBoolean;
294
+ }, "strip", z.ZodTypeAny, {
295
+ isActive: boolean;
296
+ }, {
297
+ isActive: boolean;
298
+ }>, z.ZodObject<{
299
+ hasLicense: z.ZodBoolean;
300
+ }, "strip", z.ZodTypeAny, {
301
+ hasLicense: boolean;
302
+ }, {
303
+ hasLicense: boolean;
304
+ }>>>;
305
+ OnlyOfficeHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
306
+ isActive: z.ZodBoolean;
307
+ }, "strip", z.ZodTypeAny, {
308
+ isActive: boolean;
309
+ }, {
310
+ isActive: boolean;
311
+ }>, z.ZodObject<{
312
+ hasLicense: z.ZodBoolean;
313
+ label: z.ZodString;
314
+ description: z.ZodString;
315
+ color: z.ZodString;
316
+ templates: z.ZodArray<z.ZodObject<{
317
+ label: z.ZodString;
318
+ description: z.ZodString;
319
+ extension: z.ZodString;
320
+ icon: z.ZodString;
321
+ color: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ color: string;
324
+ description: string;
325
+ label: string;
326
+ icon: string;
327
+ extension: string;
328
+ }, {
329
+ color: string;
330
+ description: string;
331
+ label: string;
332
+ icon: string;
333
+ extension: string;
334
+ }>, "many">;
335
+ }, "strip", z.ZodTypeAny, {
336
+ color: string;
337
+ description: string;
338
+ label: string;
339
+ hasLicense: boolean;
340
+ templates: {
341
+ color: string;
342
+ description: string;
343
+ label: string;
344
+ icon: string;
345
+ extension: string;
346
+ }[];
347
+ }, {
348
+ color: string;
349
+ description: string;
350
+ label: string;
351
+ hasLicense: boolean;
352
+ templates: {
353
+ color: string;
354
+ description: string;
355
+ label: string;
356
+ icon: string;
357
+ extension: string;
358
+ }[];
359
+ }>>>;
203
360
  spotRssFeed: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
204
361
  isActive: z.ZodBoolean;
205
362
  }, "strip", z.ZodTypeAny, {
@@ -253,6 +410,26 @@ export declare const hookListTypeSchema: z.ZodIntersection<z.ZodObject<{
253
410
  orderBy: string;
254
411
  order: "ASC" | "DESC";
255
412
  }) | undefined;
413
+ StudioHook?: ({
414
+ isActive: boolean;
415
+ } & {
416
+ hasLicense: boolean;
417
+ }) | undefined;
418
+ OnlyOfficeHook?: ({
419
+ isActive: boolean;
420
+ } & {
421
+ color: string;
422
+ description: string;
423
+ label: string;
424
+ hasLicense: boolean;
425
+ templates: {
426
+ color: string;
427
+ description: string;
428
+ label: string;
429
+ icon: string;
430
+ extension: string;
431
+ }[];
432
+ }) | undefined;
256
433
  spotRssFeed?: ({
257
434
  isActive: boolean;
258
435
  } & {}) | undefined;
@@ -284,6 +461,26 @@ export declare const hookListTypeSchema: z.ZodIntersection<z.ZodObject<{
284
461
  orderBy: string;
285
462
  order: "ASC" | "DESC";
286
463
  }) | undefined;
464
+ StudioHook?: ({
465
+ isActive: boolean;
466
+ } & {
467
+ hasLicense: boolean;
468
+ }) | undefined;
469
+ OnlyOfficeHook?: ({
470
+ isActive: boolean;
471
+ } & {
472
+ color: string;
473
+ description: string;
474
+ label: string;
475
+ hasLicense: boolean;
476
+ templates: {
477
+ color: string;
478
+ description: string;
479
+ label: string;
480
+ icon: string;
481
+ extension: string;
482
+ }[];
483
+ }) | undefined;
287
484
  spotRssFeed?: ({
288
485
  isActive: boolean;
289
486
  } & {}) | undefined;