@hubs101/js-api-skd-client 1.0.10579 → 1.0.10580
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/lib/api/event/types.d.ts +30 -2
- package/lib/api/event/types.js +1 -36
- package/package.json +1 -1
package/lib/api/event/types.d.ts
CHANGED
|
@@ -495,12 +495,18 @@ export type BookingQuestion = {
|
|
|
495
495
|
export declare const MENU_ITEM_TYPES: {
|
|
496
496
|
readonly INTERNAL: "internal";
|
|
497
497
|
readonly EXTERNAL: "external";
|
|
498
|
+
readonly MAILING: "mailto";
|
|
498
499
|
};
|
|
499
500
|
export declare const MENU_ITEM_STYLING: {
|
|
500
501
|
readonly LINK: "link";
|
|
501
502
|
readonly BUTTON: "button";
|
|
502
503
|
};
|
|
503
504
|
export declare const MENU_ITEM_STYLING_TYPE: readonly ["link", "button"];
|
|
505
|
+
export declare const MENU_ELEMENT_TYPES: {
|
|
506
|
+
readonly ITEM: "item";
|
|
507
|
+
readonly BUTTON: "button";
|
|
508
|
+
};
|
|
509
|
+
export declare const MENU_ELEMENT_TYPE: readonly ["item", "button"];
|
|
504
510
|
export declare const DEFAULT_MENU_TYPES: {
|
|
505
511
|
readonly HOME: "home";
|
|
506
512
|
readonly AGENDA: "agenda";
|
|
@@ -510,8 +516,27 @@ export declare const DEFAULT_MENU_TYPES: {
|
|
|
510
516
|
readonly EVENT_INFO: "event-info";
|
|
511
517
|
readonly CONTENT_HUB: "content-hub";
|
|
512
518
|
};
|
|
513
|
-
export declare const DEFAULT_MENU_ITEM: readonly [
|
|
514
|
-
|
|
519
|
+
export declare const DEFAULT_MENU_ITEM: readonly [
|
|
520
|
+
"home",
|
|
521
|
+
"agenda",
|
|
522
|
+
"speaker",
|
|
523
|
+
"partner",
|
|
524
|
+
"who-&-why",
|
|
525
|
+
"event-info",
|
|
526
|
+
"content-hub"
|
|
527
|
+
];
|
|
528
|
+
export declare const MENU_ITEM_TYPE: readonly [
|
|
529
|
+
"home",
|
|
530
|
+
"agenda",
|
|
531
|
+
"speaker",
|
|
532
|
+
"partner",
|
|
533
|
+
"who-&-why",
|
|
534
|
+
"event-info",
|
|
535
|
+
"content-hub",
|
|
536
|
+
"internal",
|
|
537
|
+
"external",
|
|
538
|
+
"mailto"
|
|
539
|
+
];
|
|
515
540
|
export type MenuItem = {
|
|
516
541
|
label: string;
|
|
517
542
|
level: 0 | 1;
|
|
@@ -524,6 +549,9 @@ export type MenuItem = {
|
|
|
524
549
|
isDesktopDisabled: boolean;
|
|
525
550
|
isMobileDisabled: boolean;
|
|
526
551
|
isTabletDisabled: boolean;
|
|
552
|
+
element?: (typeof MENU_ELEMENT_TYPE)[number];
|
|
553
|
+
subject?: string;
|
|
554
|
+
body?: string;
|
|
527
555
|
};
|
|
528
556
|
export type EventServerResponse = {
|
|
529
557
|
id: string;
|
package/lib/api/event/types.js
CHANGED
|
@@ -1,44 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GROUP_STYLE = void 0;
|
|
4
4
|
exports.GROUP_STYLE = [
|
|
5
5
|
{ "": "" }, // unassigned, top of the list
|
|
6
6
|
{ "1": "default" }, // BP
|
|
7
7
|
{ "2": "highlighted" }, // PP
|
|
8
8
|
{ "3": "big" }, // LP
|
|
9
9
|
];
|
|
10
|
-
exports.MENU_ITEM_TYPES = {
|
|
11
|
-
INTERNAL: "internal",
|
|
12
|
-
EXTERNAL: "external",
|
|
13
|
-
};
|
|
14
|
-
exports.MENU_ITEM_STYLING = {
|
|
15
|
-
LINK: "link",
|
|
16
|
-
BUTTON: "button",
|
|
17
|
-
};
|
|
18
|
-
exports.MENU_ITEM_STYLING_TYPE = [
|
|
19
|
-
exports.MENU_ITEM_STYLING.LINK,
|
|
20
|
-
exports.MENU_ITEM_STYLING.BUTTON,
|
|
21
|
-
];
|
|
22
|
-
exports.DEFAULT_MENU_TYPES = {
|
|
23
|
-
HOME: "home",
|
|
24
|
-
AGENDA: "agenda",
|
|
25
|
-
SPEAKER: "speaker",
|
|
26
|
-
PARTNER: "partner",
|
|
27
|
-
WHO_WHY: "who-&-why",
|
|
28
|
-
EVENT_INFO: "event-info",
|
|
29
|
-
CONTENT_HUB: "content-hub",
|
|
30
|
-
};
|
|
31
|
-
exports.DEFAULT_MENU_ITEM = [
|
|
32
|
-
exports.DEFAULT_MENU_TYPES.HOME,
|
|
33
|
-
exports.DEFAULT_MENU_TYPES.AGENDA,
|
|
34
|
-
exports.DEFAULT_MENU_TYPES.SPEAKER,
|
|
35
|
-
exports.DEFAULT_MENU_TYPES.PARTNER,
|
|
36
|
-
exports.DEFAULT_MENU_TYPES.WHO_WHY,
|
|
37
|
-
exports.DEFAULT_MENU_TYPES.EVENT_INFO,
|
|
38
|
-
exports.DEFAULT_MENU_TYPES.CONTENT_HUB,
|
|
39
|
-
];
|
|
40
|
-
exports.MENU_ITEM_TYPE = [
|
|
41
|
-
...exports.DEFAULT_MENU_ITEM,
|
|
42
|
-
exports.MENU_ITEM_TYPES.INTERNAL,
|
|
43
|
-
exports.MENU_ITEM_TYPES.EXTERNAL,
|
|
44
|
-
];
|