@effect.healthcare/messenger 0.3.1 → 0.4.1

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.
@@ -1,131 +1,132 @@
1
- /**
2
- * @module Component
3
- */
4
-
5
- /**
6
- * @category Configuration
7
- */
8
- export const Tag = "app-messenger" as const;
9
-
10
- /**
11
- * Local storage key under which the session token is stored (and renewed) by
12
- * the License component. Externalized so the contract lives in one place.
13
- * @category Configuration
14
- */
15
- export const Session = "app-license.session" as const;
16
-
17
- /**
18
- * The Azure Web PubSub subprotocol required for structured group messaging.
19
- * @category Configuration
20
- */
21
- export const Protocol = "json.webpubsub.azure.v1" as const;
22
-
23
- /**
24
- * Inbound message types the messenger reacts to (the `data.type` of a frame).
25
- * @category Metadata
26
- * @enum
27
- */
28
- export const Message = {
29
- MASTER_DATA_CHANGED: "masterData.changed",
30
- } as const;
31
-
32
- /**
33
- * Inbound message types the messenger reacts to.
34
- * @category Metadata
35
- */
36
- export type Message = (typeof Message)[keyof typeof Message];
37
-
38
- /**
39
- * HTML Attributes available to set
40
- * @category Metadata
41
- * @enum
42
- */
43
- export const Attributes = {
44
- CONNECTION: "connection",
45
- ENDPOINT: "endpoint",
46
- } as const;
47
- /**
48
- * HTML Attributes available to set
49
- * @category Metadata
50
- */
51
- export type Attributes = typeof Attributes;
52
-
53
- /**
54
- * HTML Attributes available to set
55
- * @category Metadata
56
- * @enum
57
- */
58
- export const State = {
59
- ...Attributes,
60
- } as const;
61
-
62
- /**
63
- * HTML Attributes available to set
64
- * @category Metadata
65
- */
66
- export type State = (typeof State)[keyof typeof State];
67
-
68
- /**
69
- * Live connection status value domain
70
- * @category Metadata
71
- * @enum
72
- */
73
- export const Connection = {
74
- DISCONNECTED: "disconnected",
75
- CONNECTING: "connecting",
76
- CONNECTED: "connected",
77
- } as const;
78
-
79
- /**
80
- * Live connection status value domain
81
- * @category Metadata
82
- */
83
- export type Connection = (typeof Connection)[keyof typeof Connection];
84
-
85
- /**
86
- * The negotiate endpoint URL value domain
87
- * @category Metadata
88
- */
89
- export type Endpoint = string;
90
-
91
- /**
92
- * @category Metadata
93
- * @enum
94
- */
95
- export const Operation = {
96
- CONNECT: "connect",
97
- DISCONNECT: "disconnect",
98
- } as const;
99
-
100
- /**
101
- * @category Metadata
102
- */
103
- export type Operation = (typeof Operation)[keyof typeof Operation];
104
-
105
- /**
106
- * @category Metadata
107
- * @enum
108
- */
109
- export const Event = {
110
- ON_ENDPOINT_CHANGE: "onendpointchange",
111
- ON_CONNECTING: "onconnecting",
112
- ON_CONNECTED: "onconnected",
113
- ON_DISCONNECTED: "ondisconnected",
114
- ON_MASTERDATACHANGE: "onmasterdatachange",
115
- } as const;
116
- /**
117
- * @category Metadata
118
- */
119
- export type Event = (typeof Event)[keyof typeof Event];
120
-
121
- /**
122
- * @category Metadata
123
- * @enum
124
- */
125
- export const Gesture = {
126
- MESSAGE: "message",
127
- } as const;
128
- /**
129
- * @category Metadata
130
- */
131
- export type Gesture = (typeof Gesture)[keyof typeof Gesture];
1
+ /**
2
+ * @module Component
3
+ */
4
+
5
+ /**
6
+ * @category Configuration
7
+ */
8
+ export const Tag = "app-messenger" as const;
9
+
10
+ /**
11
+ * Local storage key under which the session token is stored (and renewed) by
12
+ * the License component. Externalized so the contract lives in one place.
13
+ * @category Configuration
14
+ */
15
+ export const Session = "app-license.session" as const;
16
+
17
+ /**
18
+ * The Azure Web PubSub subprotocol required for structured group messaging.
19
+ * @category Configuration
20
+ */
21
+ export const Protocol = "json.webpubsub.azure.v1" as const;
22
+
23
+ /**
24
+ * Inbound message types the messenger reacts to (the `data.type` of a frame).
25
+ * @category Metadata
26
+ * @enum
27
+ */
28
+ export const Message = {
29
+ MASTER_DATA_CHANGED: "masterData.changed",
30
+ } as const;
31
+
32
+ /**
33
+ * Inbound message types the messenger reacts to.
34
+ * @category Metadata
35
+ */
36
+ export type Message = (typeof Message)[keyof typeof Message];
37
+
38
+ /**
39
+ * HTML Attributes available to set
40
+ * @category Metadata
41
+ * @enum
42
+ */
43
+ export const Attributes = {
44
+ CONNECTION: "connection",
45
+ ENDPOINT: "endpoint",
46
+ } as const;
47
+ /**
48
+ * HTML Attributes available to set
49
+ * @category Metadata
50
+ */
51
+ export type Attributes = typeof Attributes;
52
+
53
+ /**
54
+ * HTML Attributes available to set
55
+ * @category Metadata
56
+ * @enum
57
+ */
58
+ export const State = {
59
+ ...Attributes,
60
+ } as const;
61
+
62
+ /**
63
+ * HTML Attributes available to set
64
+ * @category Metadata
65
+ */
66
+ export type State = (typeof State)[keyof typeof State];
67
+
68
+ /**
69
+ * Live connection status value domain
70
+ * @category Metadata
71
+ * @enum
72
+ */
73
+ export const Connection = {
74
+ DISCONNECTED: "disconnected",
75
+ CONNECTING: "connecting",
76
+ CONNECTED: "connected",
77
+ } as const;
78
+
79
+ /**
80
+ * Live connection status value domain
81
+ * @category Metadata
82
+ */
83
+ export type Connection = (typeof Connection)[keyof typeof Connection];
84
+
85
+ /**
86
+ * The negotiate endpoint URL value domain
87
+ * @category Metadata
88
+ */
89
+ export type Endpoint = string;
90
+
91
+ /**
92
+ * @category Metadata
93
+ * @enum
94
+ */
95
+ export const Operation = {
96
+ CONNECT: "connect",
97
+ DISCONNECT: "disconnect",
98
+ SEND: "send",
99
+ } as const;
100
+
101
+ /**
102
+ * @category Metadata
103
+ */
104
+ export type Operation = (typeof Operation)[keyof typeof Operation];
105
+
106
+ /**
107
+ * @category Metadata
108
+ * @enum
109
+ */
110
+ export const Event = {
111
+ ON_ENDPOINT_CHANGE: "onendpointchange",
112
+ ON_CONNECTING: "onconnecting",
113
+ ON_CONNECTED: "onconnected",
114
+ ON_DISCONNECTED: "ondisconnected",
115
+ ON_MASTERDATACHANGE: "onmasterdatachange",
116
+ } as const;
117
+ /**
118
+ * @category Metadata
119
+ */
120
+ export type Event = (typeof Event)[keyof typeof Event];
121
+
122
+ /**
123
+ * @category Metadata
124
+ * @enum
125
+ */
126
+ export const Gesture = {
127
+ MESSAGE: "message",
128
+ } as const;
129
+ /**
130
+ * @category Metadata
131
+ */
132
+ export type Gesture = (typeof Gesture)[keyof typeof Gesture];