jamespot-user-api 1.0.183 → 1.0.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +14 -14
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBbbApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDatasourceApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -12
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/BookmarkType.html +1 -1
- package/documentation/enums/Format.html +1 -1
- package/documentation/enums/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/datasource/datasource.d.ts +8 -3
- package/lib/src/apis/datasource/datasource.mock.d.ts +2 -0
- package/lib/src/apis/tvDisplay/tvDisplay.d.ts +32 -32
- package/lib/src/apis/widget/widget.d.ts +20 -3
- package/lib/src/apis/widget/widget.mock.d.ts +5 -1
- package/lib/src/types/article.d.ts +216 -216
- package/lib/src/types/asei.d.ts +22 -22
- package/lib/src/types/assetReservation.d.ts +96 -96
- package/lib/src/types/businessContact.d.ts +14 -14
- package/lib/src/types/comment.d.ts +22 -22
- package/lib/src/types/faq.d.ts +118 -118
- package/lib/src/types/hook.d.ts +203 -6
- package/lib/src/types/jLand.d.ts +36 -36
- package/lib/src/types/mediaLibrary.d.ts +22 -22
- package/lib/src/types/meeting.d.ts +66 -66
- package/lib/src/types/pollSurvey.d.ts +66 -66
- package/lib/src/types/quizz.d.ts +66 -66
- package/lib/src/types/realtime.d.ts +20 -4
- package/lib/src/types/socialEvent.d.ts +66 -66
- package/lib/src/types/support.d.ts +66 -66
- package/lib/src/types/surveyDate.d.ts +66 -66
- package/lib/src/types/tvDisplay.d.ts +560 -560
- package/lib/src/types/widgets/common.d.ts +5 -3
- package/lib/src/types/widgets/default.d.ts +152 -99
- package/lib/src/types/widgets/ensure.d.ts +58 -0
- package/lib/src/types/widgets/ensure.test.d.ts +1 -0
- package/lib/src/types/widgets/widgetDatasourceTable.d.ts +8 -8
- package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +8 -8
- package/lib/src/types/widgets/widgetPresence.d.ts +132 -0
- package/lib/src/types/widgets.d.ts +961 -288
- package/lib/src/util/widget.d.ts +6 -9
- package/package.json +6 -2
- package/phpunitMock/articleGet-with-widgets.json +2 -1
- package/phpunitMock/widgetDatasourceCancel-default.json +1 -0
- package/phpunitMock/widgetDatasourceGet-get-calc.json +4 -0
- package/phpunitMock/widgetDatasourceGet-get-doc.json +4 -0
- package/phpunitMock/widgetDatasourceGet-get-studio.json +4 -0
- package/phpunitMock/widgetDatasourceGetExcelDatasource-default.json +3 -2
- package/phpunitMock/widgetDatasourceGetExcelDatasourceHeaders-default.json +7 -0
- package/phpunitMock/widgetPresenceCancel-default.json +1 -0
- package/phpunitMock/widgetPresenceGetResponse-available.json +25 -0
- package/phpunitMock/widgetPresenceGetResponse-unavailable.json +25 -0
- package/phpunitMock/widgetPresenceRespond-available.json +1 -0
- package/lib/src/types/widgets/widgetApi.d.ts +0 -24
package/lib/src/types/quizz.d.ts
CHANGED
|
@@ -146,8 +146,6 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
146
146
|
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
147
147
|
widget: z.ZodType<({
|
|
148
148
|
layers?: string[] | undefined;
|
|
149
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
150
|
-
layers?: string[] | undefined;
|
|
151
149
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
152
150
|
layers?: string[] | undefined;
|
|
153
151
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -171,7 +169,7 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
171
169
|
uniqid: string;
|
|
172
170
|
content: {
|
|
173
171
|
uri?: string | undefined;
|
|
174
|
-
limit?: number | undefined;
|
|
172
|
+
limit?: number | boolean | undefined;
|
|
175
173
|
tableColumnsData?: {
|
|
176
174
|
name?: string | undefined;
|
|
177
175
|
label?: string | undefined;
|
|
@@ -189,9 +187,9 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
189
187
|
tableSizedColumns?: boolean | undefined;
|
|
190
188
|
tableSizedColumnsWidth?: number | undefined;
|
|
191
189
|
};
|
|
192
|
-
})
|
|
190
|
+
}) | ({
|
|
193
191
|
layers?: string[] | undefined;
|
|
194
|
-
} & import("./widgets").
|
|
192
|
+
} & import("./widgets").WidgetPresenceType), z.ZodTypeDef, ({
|
|
195
193
|
layers?: string[] | undefined;
|
|
196
194
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
197
195
|
layers?: string[] | undefined;
|
|
@@ -216,7 +214,7 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
216
214
|
uniqid: string;
|
|
217
215
|
content: {
|
|
218
216
|
uri?: string | undefined;
|
|
219
|
-
limit?: number | undefined;
|
|
217
|
+
limit?: number | boolean | undefined;
|
|
220
218
|
tableColumnsData?: {
|
|
221
219
|
name?: string | undefined;
|
|
222
220
|
label?: string | undefined;
|
|
@@ -234,11 +232,11 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
234
232
|
tableSizedColumns?: boolean | undefined;
|
|
235
233
|
tableSizedColumnsWidth?: number | undefined;
|
|
236
234
|
};
|
|
237
|
-
})
|
|
235
|
+
}) | ({
|
|
236
|
+
layers?: string[] | undefined;
|
|
237
|
+
} & import("./widgets").WidgetPresenceType)>;
|
|
238
238
|
}, "strip", z.ZodTypeAny, import("./widgets").WidgetWrapperGeneric<({
|
|
239
239
|
layers?: string[] | undefined;
|
|
240
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
241
|
-
layers?: string[] | undefined;
|
|
242
240
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
243
241
|
layers?: string[] | undefined;
|
|
244
242
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -262,7 +260,7 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
262
260
|
uniqid: string;
|
|
263
261
|
content: {
|
|
264
262
|
uri?: string | undefined;
|
|
265
|
-
limit?: number | undefined;
|
|
263
|
+
limit?: number | boolean | undefined;
|
|
266
264
|
tableColumnsData?: {
|
|
267
265
|
name?: string | undefined;
|
|
268
266
|
label?: string | undefined;
|
|
@@ -280,9 +278,9 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
280
278
|
tableSizedColumns?: boolean | undefined;
|
|
281
279
|
tableSizedColumnsWidth?: number | undefined;
|
|
282
280
|
};
|
|
283
|
-
})
|
|
281
|
+
}) | ({
|
|
284
282
|
layers?: string[] | undefined;
|
|
285
|
-
} & import("./widgets").
|
|
283
|
+
} & import("./widgets").WidgetPresenceType)>, import("./widgets").WidgetWrapperGeneric<({
|
|
286
284
|
layers?: string[] | undefined;
|
|
287
285
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
288
286
|
layers?: string[] | undefined;
|
|
@@ -307,7 +305,7 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
307
305
|
uniqid: string;
|
|
308
306
|
content: {
|
|
309
307
|
uri?: string | undefined;
|
|
310
|
-
limit?: number | undefined;
|
|
308
|
+
limit?: number | boolean | undefined;
|
|
311
309
|
tableColumnsData?: {
|
|
312
310
|
name?: string | undefined;
|
|
313
311
|
label?: string | undefined;
|
|
@@ -325,7 +323,9 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
325
323
|
tableSizedColumns?: boolean | undefined;
|
|
326
324
|
tableSizedColumnsWidth?: number | undefined;
|
|
327
325
|
};
|
|
328
|
-
})
|
|
326
|
+
}) | ({
|
|
327
|
+
layers?: string[] | undefined;
|
|
328
|
+
} & import("./widgets").WidgetPresenceType)>>, "many">>;
|
|
329
329
|
}>, {
|
|
330
330
|
quizzDescription: z.ZodNullable<z.ZodString>;
|
|
331
331
|
quizzClosingDate: z.ZodNullable<z.ZodString>;
|
|
@@ -383,8 +383,6 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
383
383
|
} | undefined;
|
|
384
384
|
articleWidgets?: import("./widgets").WidgetWrapperGeneric<({
|
|
385
385
|
layers?: string[] | undefined;
|
|
386
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
387
|
-
layers?: string[] | undefined;
|
|
388
386
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
389
387
|
layers?: string[] | undefined;
|
|
390
388
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -408,7 +406,7 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
408
406
|
uniqid: string;
|
|
409
407
|
content: {
|
|
410
408
|
uri?: string | undefined;
|
|
411
|
-
limit?: number | undefined;
|
|
409
|
+
limit?: number | boolean | undefined;
|
|
412
410
|
tableColumnsData?: {
|
|
413
411
|
name?: string | undefined;
|
|
414
412
|
label?: string | undefined;
|
|
@@ -426,7 +424,9 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
426
424
|
tableSizedColumns?: boolean | undefined;
|
|
427
425
|
tableSizedColumnsWidth?: number | undefined;
|
|
428
426
|
};
|
|
429
|
-
})
|
|
427
|
+
}) | ({
|
|
428
|
+
layers?: string[] | undefined;
|
|
429
|
+
} & import("./widgets").WidgetPresenceType)>[] | undefined;
|
|
430
430
|
}, {
|
|
431
431
|
type: string;
|
|
432
432
|
id: number;
|
|
@@ -479,8 +479,6 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
479
479
|
} | undefined;
|
|
480
480
|
articleWidgets?: import("./widgets").WidgetWrapperGeneric<({
|
|
481
481
|
layers?: string[] | undefined;
|
|
482
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
483
|
-
layers?: string[] | undefined;
|
|
484
482
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
485
483
|
layers?: string[] | undefined;
|
|
486
484
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -504,7 +502,7 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
504
502
|
uniqid: string;
|
|
505
503
|
content: {
|
|
506
504
|
uri?: string | undefined;
|
|
507
|
-
limit?: number | undefined;
|
|
505
|
+
limit?: number | boolean | undefined;
|
|
508
506
|
tableColumnsData?: {
|
|
509
507
|
name?: string | undefined;
|
|
510
508
|
label?: string | undefined;
|
|
@@ -522,7 +520,9 @@ export declare const jQuizzListSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
522
520
|
tableSizedColumns?: boolean | undefined;
|
|
523
521
|
tableSizedColumnsWidth?: number | undefined;
|
|
524
522
|
};
|
|
525
|
-
})
|
|
523
|
+
}) | ({
|
|
524
|
+
layers?: string[] | undefined;
|
|
525
|
+
} & import("./widgets").WidgetPresenceType)>[] | undefined;
|
|
526
526
|
}>;
|
|
527
527
|
export type jQuizzList = z.infer<typeof jQuizzListSchema>;
|
|
528
528
|
export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -672,8 +672,6 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
672
672
|
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
673
673
|
widget: z.ZodType<({
|
|
674
674
|
layers?: string[] | undefined;
|
|
675
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
676
|
-
layers?: string[] | undefined;
|
|
677
675
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
678
676
|
layers?: string[] | undefined;
|
|
679
677
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -697,7 +695,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
697
695
|
uniqid: string;
|
|
698
696
|
content: {
|
|
699
697
|
uri?: string | undefined;
|
|
700
|
-
limit?: number | undefined;
|
|
698
|
+
limit?: number | boolean | undefined;
|
|
701
699
|
tableColumnsData?: {
|
|
702
700
|
name?: string | undefined;
|
|
703
701
|
label?: string | undefined;
|
|
@@ -715,9 +713,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
715
713
|
tableSizedColumns?: boolean | undefined;
|
|
716
714
|
tableSizedColumnsWidth?: number | undefined;
|
|
717
715
|
};
|
|
718
|
-
})
|
|
716
|
+
}) | ({
|
|
719
717
|
layers?: string[] | undefined;
|
|
720
|
-
} & import("./widgets").
|
|
718
|
+
} & import("./widgets").WidgetPresenceType), z.ZodTypeDef, ({
|
|
721
719
|
layers?: string[] | undefined;
|
|
722
720
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
723
721
|
layers?: string[] | undefined;
|
|
@@ -742,7 +740,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
742
740
|
uniqid: string;
|
|
743
741
|
content: {
|
|
744
742
|
uri?: string | undefined;
|
|
745
|
-
limit?: number | undefined;
|
|
743
|
+
limit?: number | boolean | undefined;
|
|
746
744
|
tableColumnsData?: {
|
|
747
745
|
name?: string | undefined;
|
|
748
746
|
label?: string | undefined;
|
|
@@ -760,11 +758,11 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
760
758
|
tableSizedColumns?: boolean | undefined;
|
|
761
759
|
tableSizedColumnsWidth?: number | undefined;
|
|
762
760
|
};
|
|
763
|
-
})
|
|
761
|
+
}) | ({
|
|
762
|
+
layers?: string[] | undefined;
|
|
763
|
+
} & import("./widgets").WidgetPresenceType)>;
|
|
764
764
|
}, "strip", z.ZodTypeAny, import("./widgets").WidgetWrapperGeneric<({
|
|
765
765
|
layers?: string[] | undefined;
|
|
766
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
767
|
-
layers?: string[] | undefined;
|
|
768
766
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
769
767
|
layers?: string[] | undefined;
|
|
770
768
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -788,7 +786,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
788
786
|
uniqid: string;
|
|
789
787
|
content: {
|
|
790
788
|
uri?: string | undefined;
|
|
791
|
-
limit?: number | undefined;
|
|
789
|
+
limit?: number | boolean | undefined;
|
|
792
790
|
tableColumnsData?: {
|
|
793
791
|
name?: string | undefined;
|
|
794
792
|
label?: string | undefined;
|
|
@@ -806,9 +804,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
806
804
|
tableSizedColumns?: boolean | undefined;
|
|
807
805
|
tableSizedColumnsWidth?: number | undefined;
|
|
808
806
|
};
|
|
809
|
-
})
|
|
807
|
+
}) | ({
|
|
810
808
|
layers?: string[] | undefined;
|
|
811
|
-
} & import("./widgets").
|
|
809
|
+
} & import("./widgets").WidgetPresenceType)>, import("./widgets").WidgetWrapperGeneric<({
|
|
812
810
|
layers?: string[] | undefined;
|
|
813
811
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
814
812
|
layers?: string[] | undefined;
|
|
@@ -833,7 +831,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
833
831
|
uniqid: string;
|
|
834
832
|
content: {
|
|
835
833
|
uri?: string | undefined;
|
|
836
|
-
limit?: number | undefined;
|
|
834
|
+
limit?: number | boolean | undefined;
|
|
837
835
|
tableColumnsData?: {
|
|
838
836
|
name?: string | undefined;
|
|
839
837
|
label?: string | undefined;
|
|
@@ -851,7 +849,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
851
849
|
tableSizedColumns?: boolean | undefined;
|
|
852
850
|
tableSizedColumnsWidth?: number | undefined;
|
|
853
851
|
};
|
|
854
|
-
})
|
|
852
|
+
}) | ({
|
|
853
|
+
layers?: string[] | undefined;
|
|
854
|
+
} & import("./widgets").WidgetPresenceType)>>, "many">>;
|
|
855
855
|
}>, {
|
|
856
856
|
_attachedFiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
857
857
|
id: z.ZodType<number, z.ZodTypeDef, number>;
|
|
@@ -955,8 +955,6 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
955
955
|
} | undefined;
|
|
956
956
|
articleWidgets?: import("./widgets").WidgetWrapperGeneric<({
|
|
957
957
|
layers?: string[] | undefined;
|
|
958
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
959
|
-
layers?: string[] | undefined;
|
|
960
958
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
961
959
|
layers?: string[] | undefined;
|
|
962
960
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -980,7 +978,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
980
978
|
uniqid: string;
|
|
981
979
|
content: {
|
|
982
980
|
uri?: string | undefined;
|
|
983
|
-
limit?: number | undefined;
|
|
981
|
+
limit?: number | boolean | undefined;
|
|
984
982
|
tableColumnsData?: {
|
|
985
983
|
name?: string | undefined;
|
|
986
984
|
label?: string | undefined;
|
|
@@ -998,7 +996,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
998
996
|
tableSizedColumns?: boolean | undefined;
|
|
999
997
|
tableSizedColumnsWidth?: number | undefined;
|
|
1000
998
|
};
|
|
1001
|
-
})
|
|
999
|
+
}) | ({
|
|
1000
|
+
layers?: string[] | undefined;
|
|
1001
|
+
} & import("./widgets").WidgetPresenceType)>[] | undefined;
|
|
1002
1002
|
}, {
|
|
1003
1003
|
type: string;
|
|
1004
1004
|
id: number;
|
|
@@ -1060,8 +1060,6 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1060
1060
|
} | undefined;
|
|
1061
1061
|
articleWidgets?: import("./widgets").WidgetWrapperGeneric<({
|
|
1062
1062
|
layers?: string[] | undefined;
|
|
1063
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
1064
|
-
layers?: string[] | undefined;
|
|
1065
1063
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
1066
1064
|
layers?: string[] | undefined;
|
|
1067
1065
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -1085,7 +1083,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1085
1083
|
uniqid: string;
|
|
1086
1084
|
content: {
|
|
1087
1085
|
uri?: string | undefined;
|
|
1088
|
-
limit?: number | undefined;
|
|
1086
|
+
limit?: number | boolean | undefined;
|
|
1089
1087
|
tableColumnsData?: {
|
|
1090
1088
|
name?: string | undefined;
|
|
1091
1089
|
label?: string | undefined;
|
|
@@ -1103,7 +1101,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1103
1101
|
tableSizedColumns?: boolean | undefined;
|
|
1104
1102
|
tableSizedColumnsWidth?: number | undefined;
|
|
1105
1103
|
};
|
|
1106
|
-
})
|
|
1104
|
+
}) | ({
|
|
1105
|
+
layers?: string[] | undefined;
|
|
1106
|
+
} & import("./widgets").WidgetPresenceType)>[] | undefined;
|
|
1107
1107
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1108
1108
|
id: z.ZodType<number, z.ZodTypeDef, number>;
|
|
1109
1109
|
mainType: z.ZodType<string, z.ZodTypeDef, string>;
|
|
@@ -1251,8 +1251,6 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1251
1251
|
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1252
1252
|
widget: z.ZodType<({
|
|
1253
1253
|
layers?: string[] | undefined;
|
|
1254
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
1255
|
-
layers?: string[] | undefined;
|
|
1256
1254
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
1257
1255
|
layers?: string[] | undefined;
|
|
1258
1256
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -1276,7 +1274,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1276
1274
|
uniqid: string;
|
|
1277
1275
|
content: {
|
|
1278
1276
|
uri?: string | undefined;
|
|
1279
|
-
limit?: number | undefined;
|
|
1277
|
+
limit?: number | boolean | undefined;
|
|
1280
1278
|
tableColumnsData?: {
|
|
1281
1279
|
name?: string | undefined;
|
|
1282
1280
|
label?: string | undefined;
|
|
@@ -1294,9 +1292,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1294
1292
|
tableSizedColumns?: boolean | undefined;
|
|
1295
1293
|
tableSizedColumnsWidth?: number | undefined;
|
|
1296
1294
|
};
|
|
1297
|
-
})
|
|
1295
|
+
}) | ({
|
|
1298
1296
|
layers?: string[] | undefined;
|
|
1299
|
-
} & import("./widgets").
|
|
1297
|
+
} & import("./widgets").WidgetPresenceType), z.ZodTypeDef, ({
|
|
1300
1298
|
layers?: string[] | undefined;
|
|
1301
1299
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
1302
1300
|
layers?: string[] | undefined;
|
|
@@ -1321,7 +1319,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1321
1319
|
uniqid: string;
|
|
1322
1320
|
content: {
|
|
1323
1321
|
uri?: string | undefined;
|
|
1324
|
-
limit?: number | undefined;
|
|
1322
|
+
limit?: number | boolean | undefined;
|
|
1325
1323
|
tableColumnsData?: {
|
|
1326
1324
|
name?: string | undefined;
|
|
1327
1325
|
label?: string | undefined;
|
|
@@ -1339,11 +1337,11 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1339
1337
|
tableSizedColumns?: boolean | undefined;
|
|
1340
1338
|
tableSizedColumnsWidth?: number | undefined;
|
|
1341
1339
|
};
|
|
1342
|
-
})
|
|
1340
|
+
}) | ({
|
|
1341
|
+
layers?: string[] | undefined;
|
|
1342
|
+
} & import("./widgets").WidgetPresenceType)>;
|
|
1343
1343
|
}, "strip", z.ZodTypeAny, import("./widgets").WidgetWrapperGeneric<({
|
|
1344
1344
|
layers?: string[] | undefined;
|
|
1345
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
1346
|
-
layers?: string[] | undefined;
|
|
1347
1345
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
1348
1346
|
layers?: string[] | undefined;
|
|
1349
1347
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -1367,7 +1365,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1367
1365
|
uniqid: string;
|
|
1368
1366
|
content: {
|
|
1369
1367
|
uri?: string | undefined;
|
|
1370
|
-
limit?: number | undefined;
|
|
1368
|
+
limit?: number | boolean | undefined;
|
|
1371
1369
|
tableColumnsData?: {
|
|
1372
1370
|
name?: string | undefined;
|
|
1373
1371
|
label?: string | undefined;
|
|
@@ -1385,9 +1383,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1385
1383
|
tableSizedColumns?: boolean | undefined;
|
|
1386
1384
|
tableSizedColumnsWidth?: number | undefined;
|
|
1387
1385
|
};
|
|
1388
|
-
})
|
|
1386
|
+
}) | ({
|
|
1389
1387
|
layers?: string[] | undefined;
|
|
1390
|
-
} & import("./widgets").
|
|
1388
|
+
} & import("./widgets").WidgetPresenceType)>, import("./widgets").WidgetWrapperGeneric<({
|
|
1391
1389
|
layers?: string[] | undefined;
|
|
1392
1390
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
1393
1391
|
layers?: string[] | undefined;
|
|
@@ -1412,7 +1410,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1412
1410
|
uniqid: string;
|
|
1413
1411
|
content: {
|
|
1414
1412
|
uri?: string | undefined;
|
|
1415
|
-
limit?: number | undefined;
|
|
1413
|
+
limit?: number | boolean | undefined;
|
|
1416
1414
|
tableColumnsData?: {
|
|
1417
1415
|
name?: string | undefined;
|
|
1418
1416
|
label?: string | undefined;
|
|
@@ -1430,7 +1428,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1430
1428
|
tableSizedColumns?: boolean | undefined;
|
|
1431
1429
|
tableSizedColumnsWidth?: number | undefined;
|
|
1432
1430
|
};
|
|
1433
|
-
})
|
|
1431
|
+
}) | ({
|
|
1432
|
+
layers?: string[] | undefined;
|
|
1433
|
+
} & import("./widgets").WidgetPresenceType)>>, "many">>;
|
|
1434
1434
|
}>, {
|
|
1435
1435
|
quizzDescription: z.ZodNullable<z.ZodString>;
|
|
1436
1436
|
quizzClosingDate: z.ZodNullable<z.ZodString>;
|
|
@@ -1488,8 +1488,6 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1488
1488
|
} | undefined;
|
|
1489
1489
|
articleWidgets?: import("./widgets").WidgetWrapperGeneric<({
|
|
1490
1490
|
layers?: string[] | undefined;
|
|
1491
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
1492
|
-
layers?: string[] | undefined;
|
|
1493
1491
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
1494
1492
|
layers?: string[] | undefined;
|
|
1495
1493
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -1513,7 +1511,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1513
1511
|
uniqid: string;
|
|
1514
1512
|
content: {
|
|
1515
1513
|
uri?: string | undefined;
|
|
1516
|
-
limit?: number | undefined;
|
|
1514
|
+
limit?: number | boolean | undefined;
|
|
1517
1515
|
tableColumnsData?: {
|
|
1518
1516
|
name?: string | undefined;
|
|
1519
1517
|
label?: string | undefined;
|
|
@@ -1531,7 +1529,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1531
1529
|
tableSizedColumns?: boolean | undefined;
|
|
1532
1530
|
tableSizedColumnsWidth?: number | undefined;
|
|
1533
1531
|
};
|
|
1534
|
-
})
|
|
1532
|
+
}) | ({
|
|
1533
|
+
layers?: string[] | undefined;
|
|
1534
|
+
} & import("./widgets").WidgetPresenceType)>[] | undefined;
|
|
1535
1535
|
}, {
|
|
1536
1536
|
type: string;
|
|
1537
1537
|
id: number;
|
|
@@ -1584,8 +1584,6 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1584
1584
|
} | undefined;
|
|
1585
1585
|
articleWidgets?: import("./widgets").WidgetWrapperGeneric<({
|
|
1586
1586
|
layers?: string[] | undefined;
|
|
1587
|
-
} & import("./widgets").WidgetApiType) | ({
|
|
1588
|
-
layers?: string[] | undefined;
|
|
1589
1587
|
} & import("./widgets").WidgetArticleAttachmentType) | ({
|
|
1590
1588
|
layers?: string[] | undefined;
|
|
1591
1589
|
} & import("./widgets").WidgetArticleButtonType) | ({
|
|
@@ -1609,7 +1607,7 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1609
1607
|
uniqid: string;
|
|
1610
1608
|
content: {
|
|
1611
1609
|
uri?: string | undefined;
|
|
1612
|
-
limit?: number | undefined;
|
|
1610
|
+
limit?: number | boolean | undefined;
|
|
1613
1611
|
tableColumnsData?: {
|
|
1614
1612
|
name?: string | undefined;
|
|
1615
1613
|
label?: string | undefined;
|
|
@@ -1627,7 +1625,9 @@ export declare const jQuizzViewSchema: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
1627
1625
|
tableSizedColumns?: boolean | undefined;
|
|
1628
1626
|
tableSizedColumnsWidth?: number | undefined;
|
|
1629
1627
|
};
|
|
1630
|
-
})
|
|
1628
|
+
}) | ({
|
|
1629
|
+
layers?: string[] | undefined;
|
|
1630
|
+
} & import("./widgets").WidgetPresenceType)>[] | undefined;
|
|
1631
1631
|
}>>, z.ZodObject<{
|
|
1632
1632
|
quizzInvitation: z.ZodNull;
|
|
1633
1633
|
quizzFormSpec: z.ZodString;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { AllKeys, Readable } from './utils';
|
|
2
|
-
import { jObjectBase } from './objectBase';
|
|
2
|
+
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
|
+
type WidgetFunctions = 'widget-presence-response';
|
|
8
9
|
export type Namespaces = {
|
|
9
10
|
BOOKMARKS: BookmarksFunctions;
|
|
10
11
|
ANIMATIONS: AnimationsFunctions;
|
|
11
12
|
'CUSTOM-ACTION': CustomActionFunctions;
|
|
12
13
|
JAMESPOT: JamespotFunctions;
|
|
13
14
|
ws: WSFunctions;
|
|
15
|
+
WIDGET: WidgetFunctions;
|
|
14
16
|
};
|
|
15
17
|
export type AllMessages = {
|
|
16
18
|
BOOKMARKS: {
|
|
@@ -34,6 +36,15 @@ export type AllMessages = {
|
|
|
34
36
|
'comment-create': RTMessageObject<'JAMESPOT', 'comment-create'>;
|
|
35
37
|
'comment-delete': RTMessageObject<'JAMESPOT', 'comment-delete'>;
|
|
36
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'>;
|
|
42
|
+
};
|
|
43
|
+
WIDGET: {
|
|
44
|
+
'widget-presence-response': RTMessageObject<'WIDGET', 'widget-presence-response', {}, {
|
|
45
|
+
uniqid: string;
|
|
46
|
+
object: jObjectLittle;
|
|
47
|
+
}>;
|
|
37
48
|
};
|
|
38
49
|
ws: {
|
|
39
50
|
presence: RTMessageWsPresence;
|
|
@@ -57,12 +68,17 @@ export type RTMessage<T extends keyof Namespaces, F extends Namespaces[T]> = {
|
|
|
57
68
|
namespace: T;
|
|
58
69
|
function: F;
|
|
59
70
|
};
|
|
60
|
-
export type RTMessageObject<T extends keyof Namespaces, F extends Namespaces[T], O = {}> = RTMessage<T, F> & {
|
|
71
|
+
export type RTMessageObject<T extends keyof Namespaces, F extends Namespaces[T], O = {}, D = {}> = RTMessage<T, F> & {
|
|
61
72
|
object: jObjectBase & Partial<O>;
|
|
73
|
+
audience?: string[];
|
|
74
|
+
data?: D;
|
|
62
75
|
};
|
|
63
76
|
export type RTMessageWsPresence = RTMessage<'ws', 'presence'> & {
|
|
64
77
|
idUsers: number[];
|
|
65
78
|
};
|
|
66
|
-
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'
|
|
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', {}, {
|
|
80
|
+
uniqid: string;
|
|
81
|
+
object: jObjectLittle;
|
|
82
|
+
}>;
|
|
67
83
|
export type RTReceivedMessage<T extends keyof Namespaces, F extends Namespaces[T]> = ['message', RTMessage<T, F>];
|
|
68
84
|
export {};
|