jamespot-user-api 1.0.199 → 1.0.201

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 +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/tvDisplay/tvDisplay.d.ts +24 -8
  60. package/lib/src/apis/widget/widget.d.ts +61 -21
  61. package/lib/src/apis/widget/widget.mock.d.ts +8 -2
  62. package/lib/src/types/article.d.ts +180 -60
  63. package/lib/src/types/asei.d.ts +18 -6
  64. package/lib/src/types/assetReservation.d.ts +78 -26
  65. package/lib/src/types/businessContact.d.ts +12 -4
  66. package/lib/src/types/comment.d.ts +18 -6
  67. package/lib/src/types/faq.d.ts +96 -32
  68. package/lib/src/types/jLand.d.ts +30 -10
  69. package/lib/src/types/mediaLibrary.d.ts +18 -6
  70. package/lib/src/types/meeting.d.ts +54 -18
  71. package/lib/src/types/pollSurvey.d.ts +54 -18
  72. package/lib/src/types/quizz.d.ts +54 -18
  73. package/lib/src/types/realtime.d.ts +22 -1
  74. package/lib/src/types/socialEvent.d.ts +54 -18
  75. package/lib/src/types/support.d.ts +54 -18
  76. package/lib/src/types/surveyDate.d.ts +54 -18
  77. package/lib/src/types/tvDisplay.d.ts +450 -150
  78. package/lib/src/types/widgets/common.d.ts +3 -2
  79. package/lib/src/types/widgets/default.d.ts +369 -119
  80. package/lib/src/types/widgets/ensure.d.ts +1 -1
  81. package/lib/src/types/widgets/legacy.d.ts +3 -0
  82. package/lib/src/types/widgets/widgetCheckList.d.ts +57 -5
  83. package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +4 -40
  84. package/lib/src/types/widgets/widgetPresence.d.ts +47 -12
  85. package/lib/src/types/widgets/widgetQuickSurvey.d.ts +270 -0
  86. package/lib/src/types/widgets.d.ts +348 -78
  87. package/lib/src/util/meeting.d.ts +6 -2
  88. package/lib/src/util/network.d.ts +1 -1
  89. package/lib/src/util/socialEvent.d.ts +6 -2
  90. package/lib/src/util/widget.d.ts +6 -3
  91. package/package.json +1 -1
  92. package/phpunitMock/widgetCheckListGetResponse-comment-index-0.json +18 -0
  93. package/phpunitMock/widgetCheckListGetResponse-comment-no-response.json +18 -0
  94. package/phpunitMock/widgetGetWidget-article-quick-survey.json +21 -0
  95. package/phpunitMock/widgetQuickSurveyAddEntry-article-quick-survey.json +1 -0
  96. package/phpunitMock/widgetQuickSurveyGetResponse-article-index-0.json +129 -0
  97. package/phpunitMock/widgetQuickSurveyGetResponse.json +67 -0
  98. package/phpunitMock/widgetSurveyGetResponse.json +67 -0
@@ -55,4 +55,4 @@ export declare const ensureWidgetDefinitionProps: (o: unknown) => o is {
55
55
  useWidgets: boolean;
56
56
  };
57
57
  };
58
- export declare const ensureWidgetObjectHasMinimumProperties: (o: Partial<jObjectLittle> | undefined) => o is Pick<jObjectLittle, "type" | "id">;
58
+ export declare const ensureWidgetObjectHasMinimumProperties: (o: Partial<jObjectLittle> | undefined) => o is Pick<jObjectLittle, "type" | "id" | "uri">;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const widgetLegacyMixedBooleanSchema: z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>;
3
+ export type WidgetLegacyMixedBoolean = z.infer<typeof widgetLegacyMixedBooleanSchema>;
@@ -1,13 +1,15 @@
1
1
  import { z, ZodType } from 'zod';
2
2
  import { jHref } from '../utils';
3
3
  import { WidgetsName, WidgetType } from './common';
4
+ import { jFileLittle } from '../file';
4
5
  export type WidgetCheckListContentArr = {
5
6
  title: string;
6
7
  value?: boolean;
7
8
  links?: jHref[];
8
9
  id?: number;
10
+ file?: jFileLittle;
9
11
  user?: {
10
- id: number;
12
+ id: number | string;
11
13
  type: string;
12
14
  mainType: string;
13
15
  };
@@ -23,12 +25,37 @@ export declare const widgetCheckListContentArrSchema: z.ZodObject<{
23
25
  target: string;
24
26
  }[] | undefined>>;
25
27
  id: z.ZodOptionalType<z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>>;
26
- user: z.ZodOptionalType<z.ZodType<{
27
- id: number;
28
+ file: z.ZodOptionalType<z.ZodType<{
28
29
  type: string;
30
+ id: number;
29
31
  mainType: string;
32
+ uri: string;
33
+ dateCreation: string;
34
+ dateModified: string | null;
35
+ title: string;
36
+ _url: string;
37
+ mimetype: string;
38
+ size: number;
39
+ path?: string | undefined;
30
40
  } | undefined, z.ZodTypeDef, {
41
+ type: string;
31
42
  id: number;
43
+ mainType: string;
44
+ uri: string;
45
+ dateCreation: string;
46
+ dateModified: string | null;
47
+ title: string;
48
+ _url: string;
49
+ mimetype: string;
50
+ size: number;
51
+ path?: string | undefined;
52
+ } | undefined>>;
53
+ user: z.ZodOptionalType<z.ZodType<{
54
+ id: number | string;
55
+ type: string;
56
+ mainType: string;
57
+ } | undefined, z.ZodTypeDef, {
58
+ id: number | string;
32
59
  type: string;
33
60
  mainType: string;
34
61
  } | undefined>>;
@@ -45,12 +72,37 @@ export declare const widgetCheckListContentSchema: z.ZodObject<{
45
72
  target: string;
46
73
  }[] | undefined>>;
47
74
  id: z.ZodOptionalType<z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>>;
48
- user: z.ZodOptionalType<z.ZodType<{
49
- id: number;
75
+ file: z.ZodOptionalType<z.ZodType<{
50
76
  type: string;
77
+ id: number;
51
78
  mainType: string;
79
+ uri: string;
80
+ dateCreation: string;
81
+ dateModified: string | null;
82
+ title: string;
83
+ _url: string;
84
+ mimetype: string;
85
+ size: number;
86
+ path?: string | undefined;
52
87
  } | undefined, z.ZodTypeDef, {
88
+ type: string;
53
89
  id: number;
90
+ mainType: string;
91
+ uri: string;
92
+ dateCreation: string;
93
+ dateModified: string | null;
94
+ title: string;
95
+ _url: string;
96
+ mimetype: string;
97
+ size: number;
98
+ path?: string | undefined;
99
+ } | undefined>>;
100
+ user: z.ZodOptionalType<z.ZodType<{
101
+ id: number | string;
102
+ type: string;
103
+ mainType: string;
104
+ } | undefined, z.ZodTypeDef, {
105
+ id: number | string;
54
106
  type: string;
55
107
  mainType: string;
56
108
  } | undefined>>;
@@ -77,45 +77,9 @@ export declare const widgetExcelDatasourceTableContentSchema: z.ZodObject<z.obje
77
77
  }>;
78
78
  export type WidgetExcelDatasourceTableContent = z.infer<typeof widgetExcelDatasourceTableContentSchema>;
79
79
  export declare const widgetExcelDatasourceTableTypeSchema: z.ZodObject<{
80
- name: z.ZodLiteral<WidgetsName.ExcelDatasourceTable>;
81
- uniqid: z.ZodString;
82
- content: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
83
- limit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
84
- tableColumnsData: z.ZodOptional<z.ZodArray<z.ZodObject<{
85
- name: z.ZodOptional<z.ZodString>;
86
- isVisible: z.ZodOptional<z.ZodBoolean>;
87
- textEllipsis: z.ZodOptional<z.ZodBoolean>;
88
- label: z.ZodOptional<z.ZodString>;
89
- dateFormat: z.ZodOptional<z.ZodEnum<["date", "date-time", "date-time-sec", "time", "time-sec"]>>;
90
- numberFormat: z.ZodOptional<z.ZodEnum<["fr-FR", "en-EN", "filesize"]>>;
91
- }, "strip", z.ZodTypeAny, {
92
- name?: string | undefined;
93
- label?: string | undefined;
94
- isVisible?: boolean | undefined;
95
- textEllipsis?: boolean | undefined;
96
- dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
97
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
98
- }, {
99
- name?: string | undefined;
100
- label?: string | undefined;
101
- isVisible?: boolean | undefined;
102
- textEllipsis?: boolean | undefined;
103
- dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
104
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
105
- }>, "many">>;
106
- tableHeadColor: z.ZodOptional<z.ZodString>;
107
- tableHeadTextColor: z.ZodOptional<z.ZodString>;
108
- tableHeadIconColor: z.ZodOptional<z.ZodString>;
109
- tableRowColor: z.ZodOptional<z.ZodString>;
110
- tableRowTextColor: z.ZodOptional<z.ZodString>;
111
- tableBorderRadius: z.ZodOptional<z.ZodNumber>;
112
- tableSizedColumns: z.ZodOptional<z.ZodBoolean>;
113
- tableSizedColumnsWidth: z.ZodOptional<z.ZodNumber>;
114
- }, {
115
- uri: z.ZodOptional<z.ZodString>;
116
- }>, {
117
- uri: z.ZodOptional<z.ZodString>;
118
- }>, "strip", z.ZodTypeAny, {
80
+ name: z.ZodType<WidgetsName.ExcelDatasourceTable, z.ZodTypeDef, WidgetsName.ExcelDatasourceTable>;
81
+ uniqid: z.ZodType<string, z.ZodTypeDef, string>;
82
+ content: z.ZodType<{
119
83
  uri?: string | undefined;
120
84
  limit?: number | boolean | undefined;
121
85
  tableColumnsData?: {
@@ -134,7 +98,7 @@ export declare const widgetExcelDatasourceTableTypeSchema: z.ZodObject<{
134
98
  tableBorderRadius?: number | undefined;
135
99
  tableSizedColumns?: boolean | undefined;
136
100
  tableSizedColumnsWidth?: number | undefined;
137
- }, {
101
+ }, z.ZodTypeDef, {
138
102
  uri?: string | undefined;
139
103
  limit?: number | boolean | undefined;
140
104
  tableColumnsData?: {
@@ -3,25 +3,25 @@ import { WidgetsName } from './common';
3
3
  export declare const widgetPresenceContentSchema: z.ZodObject<{
4
4
  limit: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
5
5
  limitValue: z.ZodOptional<z.ZodNumber>;
6
- closing: z.ZodOptional<z.ZodBoolean>;
7
- isClosed: z.ZodOptional<z.ZodBoolean>;
6
+ closing: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
7
+ isClosed: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  limit?: number | boolean | undefined;
10
10
  limitValue?: number | undefined;
11
- closing?: boolean | undefined;
12
- isClosed?: boolean | undefined;
11
+ closing?: boolean | 0 | 1 | undefined;
12
+ isClosed?: boolean | 0 | 1 | undefined;
13
13
  }, {
14
14
  limit?: number | boolean | undefined;
15
15
  limitValue?: number | undefined;
16
- closing?: boolean | undefined;
17
- isClosed?: boolean | undefined;
16
+ closing?: boolean | 0 | 1 | undefined;
17
+ isClosed?: boolean | 0 | 1 | undefined;
18
18
  }>;
19
19
  export type WidgetPresenceContent = z.infer<typeof widgetPresenceContentSchema>;
20
20
  export declare const ensureWidgetPresenceContent: (content: unknown) => content is {
21
21
  limit?: number | boolean | undefined;
22
22
  limitValue?: number | undefined;
23
- closing?: boolean | undefined;
24
- isClosed?: boolean | undefined;
23
+ closing?: boolean | 0 | 1 | undefined;
24
+ isClosed?: boolean | 0 | 1 | undefined;
25
25
  };
26
26
  export type WidgetPresenceType = {
27
27
  name: WidgetsName.Presence;
@@ -34,13 +34,13 @@ export declare const widgetPresenceTypeSchema: z.ZodObject<{
34
34
  content: z.ZodType<{
35
35
  limit?: number | boolean | undefined;
36
36
  limitValue?: number | undefined;
37
- closing?: boolean | undefined;
38
- isClosed?: boolean | undefined;
37
+ closing?: boolean | 0 | 1 | undefined;
38
+ isClosed?: boolean | 0 | 1 | undefined;
39
39
  }, z.ZodTypeDef, {
40
40
  limit?: number | boolean | undefined;
41
41
  limitValue?: number | undefined;
42
- closing?: boolean | undefined;
43
- isClosed?: boolean | undefined;
42
+ closing?: boolean | 0 | 1 | undefined;
43
+ isClosed?: boolean | 0 | 1 | undefined;
44
44
  }>;
45
45
  }, "strip", z.ZodTypeAny, WidgetPresenceType, WidgetPresenceType>;
46
46
  export declare const ensureWidgetPresenceType: (widget: unknown) => widget is WidgetPresenceType;
@@ -130,3 +130,38 @@ export declare const ensureWidgetPresenceResponse: (payload: unknown) => payload
130
130
  userAvailableTotal: number;
131
131
  userUnavailableTotal: number;
132
132
  };
133
+ export declare const WidgetPresenceResponseUserListSchema: z.ZodObject<{
134
+ data: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
135
+ id: z.ZodType<number, z.ZodTypeDef, number>;
136
+ mainType: z.ZodType<string, z.ZodTypeDef, string>;
137
+ type: z.ZodType<string, z.ZodTypeDef, string>;
138
+ uri: z.ZodType<string, z.ZodTypeDef, string>;
139
+ dateCreation: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
140
+ dateModified: z.ZodOptionalType<z.ZodType<string | null | undefined, z.ZodTypeDef, string | null | undefined>>;
141
+ }, {
142
+ title: z.ZodString;
143
+ _url: z.ZodString;
144
+ level: z.ZodNativeEnum<{
145
+ readonly ADMIN: 9;
146
+ readonly USER: 5;
147
+ readonly EXTERNAL: 3;
148
+ readonly GUEST: 0;
149
+ }>;
150
+ dateCreation: z.ZodString;
151
+ dateModified: z.ZodString;
152
+ }>, "strip", 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]>, import("../user").jUserLittle, import("../user").jUserLittle>, "many">;
153
+ cnt: z.ZodNumber;
154
+ page: z.ZodNumber;
155
+ limit: z.ZodNumber;
156
+ }, "strip", z.ZodTypeAny, {
157
+ limit: number;
158
+ page: number;
159
+ data: import("../user").jUserLittle[];
160
+ cnt: number;
161
+ }, {
162
+ limit: number;
163
+ page: number;
164
+ data: import("../user").jUserLittle[];
165
+ cnt: number;
166
+ }>;
167
+ export type WidgetPresenceResponseUserList = z.infer<typeof WidgetPresenceResponseUserListSchema>;
@@ -0,0 +1,270 @@
1
+ import { z } from 'zod';
2
+ import { WidgetsName } from './common';
3
+ import { jFileLittle } from '../file';
4
+ export type WidgetQuickSurveyContentArr = {
5
+ title: string;
6
+ id?: number;
7
+ mimetype?: string;
8
+ file?: jFileLittle;
9
+ };
10
+ export declare const WidgetQuickSurveyContentArrSchema: z.ZodObject<{
11
+ title: z.ZodType<string, z.ZodTypeDef, string>;
12
+ id: z.ZodOptionalType<z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>>;
13
+ mimetype: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
14
+ file: z.ZodOptionalType<z.ZodType<{
15
+ type: string;
16
+ id: number;
17
+ mainType: string;
18
+ uri: string;
19
+ dateCreation: string;
20
+ dateModified: string | null;
21
+ title: string;
22
+ _url: string;
23
+ mimetype: string;
24
+ size: number;
25
+ path?: string | undefined;
26
+ } | undefined, z.ZodTypeDef, {
27
+ type: string;
28
+ id: number;
29
+ mainType: string;
30
+ uri: string;
31
+ dateCreation: string;
32
+ dateModified: string | null;
33
+ title: string;
34
+ _url: string;
35
+ mimetype: string;
36
+ size: number;
37
+ path?: string | undefined;
38
+ } | undefined>>;
39
+ }, "strip", z.ZodTypeAny, WidgetQuickSurveyContentArr, WidgetQuickSurveyContentArr>;
40
+ export declare const widgetQuickSurveyContentSchema: z.ZodObject<{
41
+ arr: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ title: z.ZodType<string, z.ZodTypeDef, string>;
43
+ id: z.ZodOptionalType<z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>>;
44
+ mimetype: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
45
+ file: z.ZodOptionalType<z.ZodType<{
46
+ type: string;
47
+ id: number;
48
+ mainType: string;
49
+ uri: string;
50
+ dateCreation: string;
51
+ dateModified: string | null;
52
+ title: string;
53
+ _url: string;
54
+ mimetype: string;
55
+ size: number;
56
+ path?: string | undefined;
57
+ } | undefined, z.ZodTypeDef, {
58
+ type: string;
59
+ id: number;
60
+ mainType: string;
61
+ uri: string;
62
+ dateCreation: string;
63
+ dateModified: string | null;
64
+ title: string;
65
+ _url: string;
66
+ mimetype: string;
67
+ size: number;
68
+ path?: string | undefined;
69
+ } | undefined>>;
70
+ }, "strip", z.ZodTypeAny, WidgetQuickSurveyContentArr, WidgetQuickSurveyContentArr>, "many">>;
71
+ css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
+ widgets: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
+ title: z.ZodString;
74
+ widget: z.ZodObject<{
75
+ name: z.ZodNativeEnum<typeof WidgetsName>;
76
+ uniqid: z.ZodString;
77
+ content: z.ZodUnknown;
78
+ }, "strip", z.ZodTypeAny, {
79
+ name: WidgetsName;
80
+ uniqid: string;
81
+ content?: unknown;
82
+ }, {
83
+ name: WidgetsName;
84
+ uniqid: string;
85
+ content?: unknown;
86
+ }>;
87
+ }, "strip", z.ZodUnknown, import("./common").WidgetBaseType, import("./common").WidgetBaseType>, "many">>;
88
+ open: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
89
+ multi: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
90
+ closing: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
91
+ isClosed: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
92
+ showResult: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
93
+ isNotDisabled: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
94
+ seeResponseAfter: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
95
+ anonymize: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<0>]>, z.ZodLiteral<1>]>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ widgets?: import("./common").WidgetBaseType[] | undefined;
98
+ arr?: WidgetQuickSurveyContentArr[] | undefined;
99
+ css?: Record<string, string> | undefined;
100
+ closing?: boolean | 0 | 1 | undefined;
101
+ isClosed?: boolean | 0 | 1 | undefined;
102
+ open?: boolean | 0 | 1 | undefined;
103
+ multi?: boolean | 0 | 1 | undefined;
104
+ showResult?: boolean | 0 | 1 | undefined;
105
+ isNotDisabled?: boolean | 0 | 1 | undefined;
106
+ seeResponseAfter?: boolean | 0 | 1 | undefined;
107
+ anonymize?: boolean | 0 | 1 | undefined;
108
+ }, {
109
+ widgets?: import("./common").WidgetBaseType[] | undefined;
110
+ arr?: WidgetQuickSurveyContentArr[] | undefined;
111
+ css?: Record<string, string> | undefined;
112
+ closing?: boolean | 0 | 1 | undefined;
113
+ isClosed?: boolean | 0 | 1 | undefined;
114
+ open?: boolean | 0 | 1 | undefined;
115
+ multi?: boolean | 0 | 1 | undefined;
116
+ showResult?: boolean | 0 | 1 | undefined;
117
+ isNotDisabled?: boolean | 0 | 1 | undefined;
118
+ seeResponseAfter?: boolean | 0 | 1 | undefined;
119
+ anonymize?: boolean | 0 | 1 | undefined;
120
+ }>;
121
+ export type WidgetQuickSurveyContent = z.infer<typeof widgetQuickSurveyContentSchema>;
122
+ export type WidgetQuickSurveyType = {
123
+ name: WidgetsName.QuickSurvey;
124
+ uniqid: string;
125
+ content: WidgetQuickSurveyContent;
126
+ };
127
+ export declare const widgetQuickSurveyTypeSchema: z.ZodObject<{
128
+ name: z.ZodType<WidgetsName.QuickSurvey, z.ZodTypeDef, WidgetsName.QuickSurvey>;
129
+ uniqid: z.ZodType<string, z.ZodTypeDef, string>;
130
+ content: z.ZodType<{
131
+ widgets?: import("./common").WidgetBaseType[] | undefined;
132
+ arr?: WidgetQuickSurveyContentArr[] | undefined;
133
+ css?: Record<string, string> | undefined;
134
+ closing?: boolean | 0 | 1 | undefined;
135
+ isClosed?: boolean | 0 | 1 | undefined;
136
+ open?: boolean | 0 | 1 | undefined;
137
+ multi?: boolean | 0 | 1 | undefined;
138
+ showResult?: boolean | 0 | 1 | undefined;
139
+ isNotDisabled?: boolean | 0 | 1 | undefined;
140
+ seeResponseAfter?: boolean | 0 | 1 | undefined;
141
+ anonymize?: boolean | 0 | 1 | undefined;
142
+ }, z.ZodTypeDef, {
143
+ widgets?: import("./common").WidgetBaseType[] | undefined;
144
+ arr?: WidgetQuickSurveyContentArr[] | undefined;
145
+ css?: Record<string, string> | undefined;
146
+ closing?: boolean | 0 | 1 | undefined;
147
+ isClosed?: boolean | 0 | 1 | undefined;
148
+ open?: boolean | 0 | 1 | undefined;
149
+ multi?: boolean | 0 | 1 | undefined;
150
+ showResult?: boolean | 0 | 1 | undefined;
151
+ isNotDisabled?: boolean | 0 | 1 | undefined;
152
+ seeResponseAfter?: boolean | 0 | 1 | undefined;
153
+ anonymize?: boolean | 0 | 1 | undefined;
154
+ }>;
155
+ }, "strip", z.ZodTypeAny, WidgetQuickSurveyType, WidgetQuickSurveyType>;
156
+ declare const ResponseSchema: z.ZodArray<z.ZodObject<{
157
+ userList: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
158
+ id: z.ZodType<number, z.ZodTypeDef, number>;
159
+ mainType: z.ZodType<string, z.ZodTypeDef, string>;
160
+ type: z.ZodType<string, z.ZodTypeDef, string>;
161
+ uri: z.ZodType<string, z.ZodTypeDef, string>;
162
+ dateCreation: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
163
+ dateModified: z.ZodOptionalType<z.ZodType<string | null | undefined, z.ZodTypeDef, string | null | undefined>>;
164
+ }, {
165
+ title: z.ZodString;
166
+ _url: z.ZodString;
167
+ level: z.ZodNativeEnum<{
168
+ readonly ADMIN: 9;
169
+ readonly USER: 5;
170
+ readonly EXTERNAL: 3;
171
+ readonly GUEST: 0;
172
+ }>;
173
+ dateCreation: z.ZodString;
174
+ dateModified: z.ZodString;
175
+ }>, "strip", 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]>, import("../user").jUserLittle, import("../user").jUserLittle>, "many">;
176
+ counter: z.ZodNumber;
177
+ }, "strip", z.ZodTypeAny, {
178
+ userList: import("../user").jUserLittle[];
179
+ counter: number;
180
+ }, {
181
+ userList: import("../user").jUserLittle[];
182
+ counter: number;
183
+ }>, "many">;
184
+ export declare const WidgetQuickSurveyResponseSchema: z.ZodObject<{
185
+ totalRespondent: z.ZodNumber;
186
+ totalResponse: z.ZodNumber;
187
+ userLoggedResponses: z.ZodArray<z.ZodString, "many">;
188
+ userResponses: z.ZodArray<z.ZodObject<{
189
+ userList: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
190
+ id: z.ZodType<number, z.ZodTypeDef, number>;
191
+ mainType: z.ZodType<string, z.ZodTypeDef, string>;
192
+ type: z.ZodType<string, z.ZodTypeDef, string>;
193
+ uri: z.ZodType<string, z.ZodTypeDef, string>;
194
+ dateCreation: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
195
+ dateModified: z.ZodOptionalType<z.ZodType<string | null | undefined, z.ZodTypeDef, string | null | undefined>>;
196
+ }, {
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
+ }>, "strip", 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]>, import("../user").jUserLittle, import("../user").jUserLittle>, "many">;
208
+ counter: z.ZodNumber;
209
+ }, "strip", z.ZodTypeAny, {
210
+ userList: import("../user").jUserLittle[];
211
+ counter: number;
212
+ }, {
213
+ userList: import("../user").jUserLittle[];
214
+ counter: number;
215
+ }>, "many">;
216
+ }, "strip", z.ZodTypeAny, {
217
+ totalRespondent: number;
218
+ totalResponse: number;
219
+ userLoggedResponses: string[];
220
+ userResponses: {
221
+ userList: import("../user").jUserLittle[];
222
+ counter: number;
223
+ }[];
224
+ }, {
225
+ totalRespondent: number;
226
+ totalResponse: number;
227
+ userLoggedResponses: string[];
228
+ userResponses: {
229
+ userList: import("../user").jUserLittle[];
230
+ counter: number;
231
+ }[];
232
+ }>;
233
+ export type WidgetQuickSurveyResponses = z.infer<typeof ResponseSchema>;
234
+ export type WidgetQuickSurveyResponse = z.infer<typeof WidgetQuickSurveyResponseSchema>;
235
+ export declare const WidgetQuickSurveyResponseUserListSchema: z.ZodObject<{
236
+ data: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
237
+ id: z.ZodType<number, z.ZodTypeDef, number>;
238
+ mainType: z.ZodType<string, z.ZodTypeDef, string>;
239
+ type: z.ZodType<string, z.ZodTypeDef, string>;
240
+ uri: z.ZodType<string, z.ZodTypeDef, string>;
241
+ dateCreation: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
242
+ dateModified: z.ZodOptionalType<z.ZodType<string | null | undefined, z.ZodTypeDef, string | null | undefined>>;
243
+ }, {
244
+ title: z.ZodString;
245
+ _url: z.ZodString;
246
+ level: z.ZodNativeEnum<{
247
+ readonly ADMIN: 9;
248
+ readonly USER: 5;
249
+ readonly EXTERNAL: 3;
250
+ readonly GUEST: 0;
251
+ }>;
252
+ dateCreation: z.ZodString;
253
+ dateModified: z.ZodString;
254
+ }>, "strip", 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]>, import("../user").jUserLittle, import("../user").jUserLittle>, "many">;
255
+ cnt: z.ZodNumber;
256
+ page: z.ZodNumber;
257
+ limit: z.ZodNumber;
258
+ }, "strip", z.ZodTypeAny, {
259
+ limit: number;
260
+ page: number;
261
+ data: import("../user").jUserLittle[];
262
+ cnt: number;
263
+ }, {
264
+ limit: number;
265
+ page: number;
266
+ data: import("../user").jUserLittle[];
267
+ cnt: number;
268
+ }>;
269
+ export type WidgetQuickSurveyResponseUserList = z.infer<typeof WidgetQuickSurveyResponseUserListSchema>;
270
+ export {};