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
@@ -3,7 +3,7 @@ import { jObjectBase, jObjectLittle } from './objectBase';
3
3
  type BookmarksFunctions = 'update' | 'add' | 'delete';
4
4
  type AnimationsFunctions = 'update' | 'add' | 'delete' | 'toggle' | 'getAnimationActive';
5
5
  type CustomActionFunctions = 'update' | 'add' | 'remove';
6
- type JamespotFunctions = 'comment-create' | 'comment-delete' | 'comment-update';
6
+ type JamespotFunctions = 'comment-create' | 'comment-delete' | 'comment-update' | 'article-create' | 'article-delete' | 'article-update';
7
7
  type WSFunctions = 'presence' | 'connection' | 'disconnect';
8
8
  type WidgetFunctions = 'widget-presence-response';
9
9
  export type Namespaces = {
@@ -36,6 +36,9 @@ export type AllMessages = {
36
36
  'comment-create': RTMessageObject<'JAMESPOT', 'comment-create'>;
37
37
  'comment-delete': RTMessageObject<'JAMESPOT', 'comment-delete'>;
38
38
  'comment-update': RTMessageObject<'JAMESPOT', 'comment-update'>;
39
+ 'article-create': RTMessageObject<'JAMESPOT', 'article-create'>;
40
+ 'article-delete': RTMessageObject<'JAMESPOT', 'article-delete'>;
41
+ 'article-update': RTMessageObject<'JAMESPOT', 'article-update'>;
39
42
  };
40
43
  WIDGET: {
41
44
  'widget-presence-response': RTMessageObject<'WIDGET', 'widget-presence-response', {}, {
@@ -67,12 +70,13 @@ export type RTMessage<T extends keyof Namespaces, F extends Namespaces[T]> = {
67
70
  };
68
71
  export type RTMessageObject<T extends keyof Namespaces, F extends Namespaces[T], O = {}, D = {}> = RTMessage<T, F> & {
69
72
  object: jObjectBase & Partial<O>;
73
+ audience?: string[];
70
74
  data?: D;
71
75
  };
72
76
  export type RTMessageWsPresence = RTMessage<'ws', 'presence'> & {
73
77
  idUsers: number[];
74
78
  };
75
- export type AnyRTMessage<T = {}> = RTMessageObject<'BOOKMARKS', 'update', T> | RTMessageObject<'BOOKMARKS', 'add', T> | RTMessageObject<'BOOKMARKS', 'delete'> | RTMessage<'ANIMATIONS', 'update'> | RTMessage<'ANIMATIONS', 'add'> | RTMessage<'ANIMATIONS', 'delete'> | RTMessage<'ANIMATIONS', 'toggle'> | RTMessage<'ANIMATIONS', 'getAnimationActive'> | RTMessageObject<'CUSTOM-ACTION', 'update', T> | RTMessageObject<'CUSTOM-ACTION', 'add', T> | RTMessageObject<'CUSTOM-ACTION', 'remove', T> | RTMessageObject<'JAMESPOT', 'comment-create', T> | RTMessageObject<'JAMESPOT', 'comment-delete', T> | RTMessageObject<'JAMESPOT', 'comment-update', T> | RTMessageWsPresence | RTMessage<'ws', 'connection'> | RTMessage<'ws', 'disconnect'> | RTMessageObject<'WIDGET', 'widget-presence-response', {}, {
79
+ export type AnyRTMessage<T = {}> = RTMessageObject<'BOOKMARKS', 'update', T> | RTMessageObject<'BOOKMARKS', 'add', T> | RTMessageObject<'BOOKMARKS', 'delete'> | RTMessage<'ANIMATIONS', 'update'> | RTMessage<'ANIMATIONS', 'add'> | RTMessage<'ANIMATIONS', 'delete'> | RTMessage<'ANIMATIONS', 'toggle'> | RTMessage<'ANIMATIONS', 'getAnimationActive'> | RTMessageObject<'CUSTOM-ACTION', 'update', T> | RTMessageObject<'CUSTOM-ACTION', 'add', T> | RTMessageObject<'CUSTOM-ACTION', 'remove', T> | RTMessageObject<'JAMESPOT', 'comment-create', T> | RTMessageObject<'JAMESPOT', 'comment-delete', T> | RTMessageObject<'JAMESPOT', 'comment-update', T> | RTMessageObject<'JAMESPOT', 'article-create', T> | RTMessageObject<'JAMESPOT', 'article-delete', T> | RTMessageObject<'JAMESPOT', 'article-update', T> | RTMessageWsPresence | RTMessage<'ws', 'connection'> | RTMessage<'ws', 'disconnect'> | RTMessageObject<'WIDGET', 'widget-presence-response', {}, {
76
80
  uniqid: string;
77
81
  object: jObjectLittle;
78
82
  }>;
@@ -2027,6 +2027,7 @@ export declare const widgetStatePropsSchema: z.ZodObject<{
2027
2027
  mounted: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
2028
2028
  hover: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
2029
2029
  empty: z.ZodOptional<z.ZodBoolean>;
2030
+ locked: z.ZodOptional<z.ZodBoolean>;
2030
2031
  }, "strip", z.ZodTypeAny, {
2031
2032
  busy?: boolean | undefined;
2032
2033
  loading?: boolean | undefined;
@@ -2034,6 +2035,7 @@ export declare const widgetStatePropsSchema: z.ZodObject<{
2034
2035
  mounted?: boolean | undefined;
2035
2036
  hover?: boolean | undefined;
2036
2037
  empty?: boolean | undefined;
2038
+ locked?: boolean | undefined;
2037
2039
  }, {
2038
2040
  busy?: boolean | undefined;
2039
2041
  loading?: boolean | undefined;
@@ -2041,6 +2043,7 @@ export declare const widgetStatePropsSchema: z.ZodObject<{
2041
2043
  mounted?: boolean | undefined;
2042
2044
  hover?: boolean | undefined;
2043
2045
  empty?: boolean | undefined;
2046
+ locked?: boolean | undefined;
2044
2047
  }>;
2045
2048
  export type WidgetStateProps = z.infer<typeof widgetStatePropsSchema>;
2046
2049
  export type WidgetEditorActions<T = CombinedWidgetContent> = {
@@ -1281,6 +1281,7 @@ export declare const widgetDefaultProps: z.ZodObject<{
1281
1281
  mounted: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
1282
1282
  hover: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
1283
1283
  empty: z.ZodOptional<z.ZodBoolean>;
1284
+ locked: z.ZodOptional<z.ZodBoolean>;
1284
1285
  }, "strip", z.ZodTypeAny, {
1285
1286
  busy?: boolean | undefined;
1286
1287
  loading?: boolean | undefined;
@@ -1288,6 +1289,7 @@ export declare const widgetDefaultProps: z.ZodObject<{
1288
1289
  mounted?: boolean | undefined;
1289
1290
  hover?: boolean | undefined;
1290
1291
  empty?: boolean | undefined;
1292
+ locked?: boolean | undefined;
1291
1293
  }, {
1292
1294
  busy?: boolean | undefined;
1293
1295
  loading?: boolean | undefined;
@@ -1295,6 +1297,7 @@ export declare const widgetDefaultProps: z.ZodObject<{
1295
1297
  mounted?: boolean | undefined;
1296
1298
  hover?: boolean | undefined;
1297
1299
  empty?: boolean | undefined;
1300
+ locked?: boolean | undefined;
1298
1301
  }>], z.ZodUnknown>, z.ZodVoid>;
1299
1302
  }, "strip", z.ZodTypeAny, {
1300
1303
  mode: "edit" | "view" | "preview";
@@ -1419,6 +1422,7 @@ export declare const widgetDefaultProps: z.ZodObject<{
1419
1422
  mounted?: boolean | undefined;
1420
1423
  hover?: boolean | undefined;
1421
1424
  empty?: boolean | undefined;
1425
+ locked?: boolean | undefined;
1422
1426
  }, ...args_1: unknown[]) => void;
1423
1427
  width?: number | undefined;
1424
1428
  isComponentVisible?: boolean | undefined;
@@ -1546,6 +1550,7 @@ export declare const widgetDefaultProps: z.ZodObject<{
1546
1550
  mounted?: boolean | undefined;
1547
1551
  hover?: boolean | undefined;
1548
1552
  empty?: boolean | undefined;
1553
+ locked?: boolean | undefined;
1549
1554
  }, ...args_1: unknown[]) => void;
1550
1555
  width?: number | undefined;
1551
1556
  isComponentVisible?: boolean | undefined;
@@ -2367,6 +2372,7 @@ export declare const widgetsStateSchema: z.ZodObject<{
2367
2372
  mounted: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
2368
2373
  hover: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
2369
2374
  empty: z.ZodOptional<z.ZodBoolean>;
2375
+ locked: z.ZodOptional<z.ZodBoolean>;
2370
2376
  }, "strip", z.ZodTypeAny, {
2371
2377
  busy?: boolean | undefined;
2372
2378
  loading?: boolean | undefined;
@@ -2374,6 +2380,7 @@ export declare const widgetsStateSchema: z.ZodObject<{
2374
2380
  mounted?: boolean | undefined;
2375
2381
  hover?: boolean | undefined;
2376
2382
  empty?: boolean | undefined;
2383
+ locked?: boolean | undefined;
2377
2384
  }, {
2378
2385
  busy?: boolean | undefined;
2379
2386
  loading?: boolean | undefined;
@@ -2381,6 +2388,7 @@ export declare const widgetsStateSchema: z.ZodObject<{
2381
2388
  mounted?: boolean | undefined;
2382
2389
  hover?: boolean | undefined;
2383
2390
  empty?: boolean | undefined;
2391
+ locked?: boolean | undefined;
2384
2392
  }>>;
2385
2393
  modal: z.ZodUnion<[z.ZodObject<{
2386
2394
  title: z.ZodOptional<z.ZodString>;
@@ -2624,6 +2632,7 @@ export declare const widgetsStateSchema: z.ZodObject<{
2624
2632
  mounted?: boolean | undefined;
2625
2633
  hover?: boolean | undefined;
2626
2634
  empty?: boolean | undefined;
2635
+ locked?: boolean | undefined;
2627
2636
  }>;
2628
2637
  editableMap: Record<string, {
2629
2638
  uniqid: string;
@@ -2780,6 +2789,7 @@ export declare const widgetsStateSchema: z.ZodObject<{
2780
2789
  mounted?: boolean | undefined;
2781
2790
  hover?: boolean | undefined;
2782
2791
  empty?: boolean | undefined;
2792
+ locked?: boolean | undefined;
2783
2793
  }>;
2784
2794
  editableMap: Record<string, {
2785
2795
  uniqid: string;
@@ -3332,6 +3342,7 @@ export declare const widgetsRootStateSchema: z.ZodObject<{
3332
3342
  mounted: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
3333
3343
  hover: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUndefined]>>;
3334
3344
  empty: z.ZodOptional<z.ZodBoolean>;
3345
+ locked: z.ZodOptional<z.ZodBoolean>;
3335
3346
  }, "strip", z.ZodTypeAny, {
3336
3347
  busy?: boolean | undefined;
3337
3348
  loading?: boolean | undefined;
@@ -3339,6 +3350,7 @@ export declare const widgetsRootStateSchema: z.ZodObject<{
3339
3350
  mounted?: boolean | undefined;
3340
3351
  hover?: boolean | undefined;
3341
3352
  empty?: boolean | undefined;
3353
+ locked?: boolean | undefined;
3342
3354
  }, {
3343
3355
  busy?: boolean | undefined;
3344
3356
  loading?: boolean | undefined;
@@ -3346,6 +3358,7 @@ export declare const widgetsRootStateSchema: z.ZodObject<{
3346
3358
  mounted?: boolean | undefined;
3347
3359
  hover?: boolean | undefined;
3348
3360
  empty?: boolean | undefined;
3361
+ locked?: boolean | undefined;
3349
3362
  }>>;
3350
3363
  modal: z.ZodUnion<[z.ZodObject<{
3351
3364
  title: z.ZodOptional<z.ZodString>;
@@ -3589,6 +3602,7 @@ export declare const widgetsRootStateSchema: z.ZodObject<{
3589
3602
  mounted?: boolean | undefined;
3590
3603
  hover?: boolean | undefined;
3591
3604
  empty?: boolean | undefined;
3605
+ locked?: boolean | undefined;
3592
3606
  }>;
3593
3607
  editableMap: Record<string, {
3594
3608
  uniqid: string;
@@ -3745,6 +3759,7 @@ export declare const widgetsRootStateSchema: z.ZodObject<{
3745
3759
  mounted?: boolean | undefined;
3746
3760
  hover?: boolean | undefined;
3747
3761
  empty?: boolean | undefined;
3762
+ locked?: boolean | undefined;
3748
3763
  }>;
3749
3764
  editableMap: Record<string, {
3750
3765
  uniqid: string;
@@ -3903,6 +3918,7 @@ export declare const widgetsRootStateSchema: z.ZodObject<{
3903
3918
  mounted?: boolean | undefined;
3904
3919
  hover?: boolean | undefined;
3905
3920
  empty?: boolean | undefined;
3921
+ locked?: boolean | undefined;
3906
3922
  }>;
3907
3923
  editableMap: Record<string, {
3908
3924
  uniqid: string;
@@ -4061,6 +4077,7 @@ export declare const widgetsRootStateSchema: z.ZodObject<{
4061
4077
  mounted?: boolean | undefined;
4062
4078
  hover?: boolean | undefined;
4063
4079
  empty?: boolean | undefined;
4080
+ locked?: boolean | undefined;
4064
4081
  }>;
4065
4082
  editableMap: Record<string, {
4066
4083
  uniqid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.184",
3
+ "version": "1.0.186",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -0,0 +1,55 @@
1
+ {
2
+ "o": "article",
3
+ "f": "get",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 39,
8
+ "mainType": "article",
9
+ "type": "mpArticle",
10
+ "uri": "mpArticle/39",
11
+ "dateCreation": "2024-09-12 12:10:21",
12
+ "dateModified": "2024-09-12 12:10:21",
13
+ "title": "test",
14
+ "_url": "/article/39",
15
+ "_right": {
16
+ "create": true,
17
+ "read": true,
18
+ "publish": false,
19
+ "administrate": true,
20
+ "update": true,
21
+ "delete": true,
22
+ "comment": true,
23
+ "member": true
24
+ },
25
+ "description": "<div class='content-html'></div>",
26
+ "_user": {
27
+ "id": 4,
28
+ "mainType": "user",
29
+ "type": "user",
30
+ "uri": "user/4",
31
+ "dateCreation": "2019-07-09 15:48:26",
32
+ "dateModified": "2019-07-09 15:51:24",
33
+ "title": "Admin1",
34
+ "_url": "/user/4",
35
+ "level": 9
36
+ },
37
+ "_audience": [],
38
+ "articleWidgets": [],
39
+ "processContext": null,
40
+ "_attachedFiles": [
41
+ {
42
+ "id": 10,
43
+ "mainType": "fileArticle",
44
+ "type": "fileArticle",
45
+ "uri": "fileArticle/10",
46
+ "dateCreation": "2024-09-12 12:10:21",
47
+ "dateModified": "2024-09-12 12:10:21",
48
+ "title": "books.png",
49
+ "size": 12394,
50
+ "mimetype": "image/png",
51
+ "_url": "/article/39"
52
+ }
53
+ ]
54
+ }
55
+ }
@@ -0,0 +1 @@
1
+ { "o": "widget", "f": "datasourceCancel", "error": 0, "messages": [], "result": true }
@@ -18,6 +18,10 @@
18
18
  { "name": "Date", "label": "Date", "type": "date", "widget": [] }
19
19
  ],
20
20
  "sort": { "order": "ascending", "name": "unknown" },
21
+ "datasource": {
22
+ "datasourceIdentifier": "",
23
+ "datasourceType": "calc"
24
+ },
21
25
  "data": []
22
26
  }
23
27
  }
@@ -22,6 +22,10 @@
22
22
  { "name": "url", "label": "Url", "widget": { "type": "text" }, "type": "url" }
23
23
  ],
24
24
  "sort": { "order": "ascending", "name": "unknown" },
25
+ "datasource": {
26
+ "datasourceIdentifier": "",
27
+ "datasourceType": "doc"
28
+ },
25
29
  "data": []
26
30
  }
27
31
  }
@@ -19,6 +19,10 @@
19
19
  { "name": "description", "label": "Label", "widget": {}, "type": "text", "sortable": true }
20
20
  ],
21
21
  "sort": { "order": "descending", "name": "title" },
22
+ "datasource": {
23
+ "datasourceIdentifier": "",
24
+ "datasourceType": "studio"
25
+ },
22
26
  "data": []
23
27
  }
24
28
  }
@@ -18,7 +18,8 @@
18
18
  },
19
19
  "fileUrl": "/ng/file/982/12038a97c53add757a188b63bc4213bcc0468f87b7a34605d5127e27c9a99751",
20
20
  "spreadsheetList": ["Feuille1"],
21
- "spreadsheet": "Feuille1",
22
- "headers": ["fichier", "excel", "test", ""]
21
+ "spreadsheetListHeaders": {
22
+ "Feuille1": ["fichier", "excel", "test", ""]
23
+ }
23
24
  }
24
25
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "datasourceGetExcelDatasourceHeaders",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": ["fichier", "excel", "test", ""]
7
+ }