@digipair/skill-sse 0.96.0 → 0.97.0

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/index.esm.js CHANGED
@@ -25127,14 +25127,14 @@ function indent(str, spaces) {
25127
25127
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
25128
25128
  // match is required
25129
25129
  if (!match) {
25130
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
25130
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
25131
25131
  v: nextMatch1
25132
25132
  };
25133
25133
  }
25134
25134
  var token = match.token, offset = match.offset;
25135
25135
  i1 += offset;
25136
25136
  if (token === " ") {
25137
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
25137
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
25138
25138
  }
25139
25139
  tokens1 = _to_consumable_array$1(tokens1).concat([
25140
25140
  token
@@ -25153,7 +25153,7 @@ function indent(str, spaces) {
25153
25153
  if (contextKeys.some(function(el) {
25154
25154
  return el.startsWith(name);
25155
25155
  })) {
25156
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
25156
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
25157
25157
  }
25158
25158
  if (dateTimeIdentifiers.some(function(el) {
25159
25159
  return el === name;
@@ -25172,9 +25172,9 @@ function indent(str, spaces) {
25172
25172
  if (dateTimeIdentifiers.some(function(el) {
25173
25173
  return el.startsWith(name);
25174
25174
  })) {
25175
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
25175
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
25176
25176
  }
25177
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
25177
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
25178
25178
  v: nextMatch1
25179
25179
  };
25180
25180
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-sse",
3
- "version": "0.96.0",
3
+ "version": "0.97.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -35,7 +35,33 @@
35
35
  }
36
36
  }
37
37
  ],
38
- "x-events": []
38
+ "x-events": [],
39
+ "responses": {
40
+ "200": {
41
+ "description": "Objet de session SSE",
42
+ "content": {
43
+ "application/json": {
44
+ "schema": {
45
+ "type": "object",
46
+ "properties": {
47
+ "id": {
48
+ "type": "string",
49
+ "description": "Identifiant unique de session"
50
+ },
51
+ "isConnected": {
52
+ "type": "boolean",
53
+ "description": "État de la connexion"
54
+ },
55
+ "lastEventId": {
56
+ "type": "string",
57
+ "description": "Dernier ID d'événement envoyé"
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
39
65
  }
40
66
  },
41
67
  "/registerChannel": {
@@ -74,7 +100,29 @@
74
100
  }
75
101
  }
76
102
  ],
77
- "x-events": []
103
+ "x-events": [],
104
+ "responses": {
105
+ "200": {
106
+ "description": "Objet de canal SSE",
107
+ "content": {
108
+ "application/json": {
109
+ "schema": {
110
+ "type": "object",
111
+ "properties": {
112
+ "sessionCount": {
113
+ "type": "number",
114
+ "description": "Nombre de sessions connectées"
115
+ },
116
+ "id": {
117
+ "type": "string",
118
+ "description": "Identifiant unique du canal"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
78
126
  }
79
127
  },
80
128
  "/push": {
@@ -119,7 +167,29 @@
119
167
  }
120
168
  }
121
169
  ],
122
- "x-events": []
170
+ "x-events": [],
171
+ "responses": {
172
+ "200": {
173
+ "description": "Résultat de l'opération push",
174
+ "content": {
175
+ "application/json": {
176
+ "schema": {
177
+ "type": "object",
178
+ "properties": {
179
+ "success": {
180
+ "type": "boolean",
181
+ "description": "Si l'envoi a réussi"
182
+ },
183
+ "eventId": {
184
+ "type": "string",
185
+ "description": "Identifiant de l'événement"
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
123
193
  }
124
194
  },
125
195
  "/broadcast": {
@@ -173,7 +243,33 @@
173
243
  }
174
244
  }
175
245
  ],
176
- "x-events": []
246
+ "x-events": [],
247
+ "responses": {
248
+ "200": {
249
+ "description": "Résultat de l'opération broadcast",
250
+ "content": {
251
+ "application/json": {
252
+ "schema": {
253
+ "type": "object",
254
+ "properties": {
255
+ "success": {
256
+ "type": "boolean",
257
+ "description": "Si le broadcast a réussi"
258
+ },
259
+ "sessionsCount": {
260
+ "type": "number",
261
+ "description": "Nombre de sessions qui ont reçu le message"
262
+ },
263
+ "eventId": {
264
+ "type": "string",
265
+ "description": "Identifiant de l'événement"
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
177
273
  }
178
274
  }
179
275
  },
package/schema.json CHANGED
@@ -35,7 +35,33 @@
35
35
  }
36
36
  }
37
37
  ],
38
- "x-events": []
38
+ "x-events": [],
39
+ "responses": {
40
+ "200": {
41
+ "description": "SSE session object",
42
+ "content": {
43
+ "application/json": {
44
+ "schema": {
45
+ "type": "object",
46
+ "properties": {
47
+ "id": {
48
+ "type": "string",
49
+ "description": "Session unique identifier"
50
+ },
51
+ "isConnected": {
52
+ "type": "boolean",
53
+ "description": "Connection status"
54
+ },
55
+ "lastEventId": {
56
+ "type": "string",
57
+ "description": "Last event ID sent"
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
39
65
  }
40
66
  },
41
67
  "/registerChannel": {
@@ -74,7 +100,29 @@
74
100
  }
75
101
  }
76
102
  ],
77
- "x-events": []
103
+ "x-events": [],
104
+ "responses": {
105
+ "200": {
106
+ "description": "SSE channel object",
107
+ "content": {
108
+ "application/json": {
109
+ "schema": {
110
+ "type": "object",
111
+ "properties": {
112
+ "sessionCount": {
113
+ "type": "number",
114
+ "description": "Number of connected sessions"
115
+ },
116
+ "id": {
117
+ "type": "string",
118
+ "description": "Channel unique identifier"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
78
126
  }
79
127
  },
80
128
  "/push": {
@@ -119,7 +167,29 @@
119
167
  }
120
168
  }
121
169
  ],
122
- "x-events": []
170
+ "x-events": [],
171
+ "responses": {
172
+ "200": {
173
+ "description": "Push operation result",
174
+ "content": {
175
+ "application/json": {
176
+ "schema": {
177
+ "type": "object",
178
+ "properties": {
179
+ "success": {
180
+ "type": "boolean",
181
+ "description": "Whether the push was successful"
182
+ },
183
+ "eventId": {
184
+ "type": "string",
185
+ "description": "Event identifier"
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
123
193
  }
124
194
  },
125
195
  "/broadcast": {
@@ -173,7 +243,33 @@
173
243
  }
174
244
  }
175
245
  ],
176
- "x-events": []
246
+ "x-events": [],
247
+ "responses": {
248
+ "200": {
249
+ "description": "Broadcast operation result",
250
+ "content": {
251
+ "application/json": {
252
+ "schema": {
253
+ "type": "object",
254
+ "properties": {
255
+ "success": {
256
+ "type": "boolean",
257
+ "description": "Whether the broadcast was successful"
258
+ },
259
+ "sessionsCount": {
260
+ "type": "number",
261
+ "description": "Number of sessions that received the message"
262
+ },
263
+ "eventId": {
264
+ "type": "string",
265
+ "description": "Event identifier"
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
177
273
  }
178
274
  }
179
275
  },