@nocobase/plugin-notification-manager 2.2.0-beta.1 → 2.2.0-beta.10

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.
@@ -0,0 +1,542 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ declare const _default: {
10
+ openapi: string;
11
+ info: {
12
+ title: string;
13
+ };
14
+ paths: {
15
+ '/notificationChannels:list': {
16
+ get: {
17
+ tags: string[];
18
+ summary: string;
19
+ description: string;
20
+ parameters: ({
21
+ name: string;
22
+ in: string;
23
+ required: boolean;
24
+ description: string;
25
+ schema: {
26
+ type: string;
27
+ additionalProperties: boolean;
28
+ };
29
+ } | {
30
+ name: string;
31
+ in: string;
32
+ required: boolean;
33
+ description: string;
34
+ schema: {
35
+ oneOf: ({
36
+ type: string;
37
+ items?: undefined;
38
+ } | {
39
+ type: string;
40
+ items: {
41
+ type: string;
42
+ };
43
+ })[];
44
+ type?: undefined;
45
+ };
46
+ } | {
47
+ name: string;
48
+ in: string;
49
+ required: boolean;
50
+ schema: {
51
+ type: string;
52
+ oneOf?: undefined;
53
+ };
54
+ description?: undefined;
55
+ })[];
56
+ responses: {
57
+ 200: {
58
+ description: string;
59
+ content: {
60
+ 'application/json': {
61
+ schema: {
62
+ $ref: string;
63
+ };
64
+ };
65
+ };
66
+ };
67
+ };
68
+ };
69
+ };
70
+ '/notificationChannels:get': {
71
+ get: {
72
+ tags: string[];
73
+ summary: string;
74
+ parameters: {
75
+ name: string;
76
+ in: string;
77
+ required: boolean;
78
+ description: string;
79
+ schema: {
80
+ type: string;
81
+ };
82
+ }[];
83
+ responses: {
84
+ 200: {
85
+ description: string;
86
+ content: {
87
+ 'application/json': {
88
+ schema: {
89
+ $ref: string;
90
+ };
91
+ };
92
+ };
93
+ };
94
+ };
95
+ };
96
+ };
97
+ '/notificationChannels:create': {
98
+ post: {
99
+ tags: string[];
100
+ summary: string;
101
+ requestBody: {
102
+ required: boolean;
103
+ content: {
104
+ 'application/json': {
105
+ schema: {
106
+ $ref: string;
107
+ };
108
+ };
109
+ };
110
+ };
111
+ responses: {
112
+ 200: {
113
+ description: string;
114
+ content: {
115
+ 'application/json': {
116
+ schema: {
117
+ $ref: string;
118
+ };
119
+ };
120
+ };
121
+ };
122
+ };
123
+ };
124
+ };
125
+ '/notificationChannels:update': {
126
+ post: {
127
+ tags: string[];
128
+ summary: string;
129
+ parameters: {
130
+ name: string;
131
+ in: string;
132
+ required: boolean;
133
+ description: string;
134
+ schema: {
135
+ type: string;
136
+ };
137
+ }[];
138
+ requestBody: {
139
+ required: boolean;
140
+ content: {
141
+ 'application/json': {
142
+ schema: {
143
+ $ref: string;
144
+ };
145
+ };
146
+ };
147
+ };
148
+ responses: {
149
+ 200: {
150
+ description: string;
151
+ content: {
152
+ 'application/json': {
153
+ schema: {
154
+ $ref: string;
155
+ };
156
+ };
157
+ };
158
+ };
159
+ };
160
+ };
161
+ };
162
+ '/notificationChannels:destroy': {
163
+ post: {
164
+ tags: string[];
165
+ summary: string;
166
+ parameters: {
167
+ name: string;
168
+ in: string;
169
+ required: boolean;
170
+ description: string;
171
+ schema: {
172
+ type: string;
173
+ };
174
+ }[];
175
+ responses: {
176
+ 200: {
177
+ description: string;
178
+ };
179
+ };
180
+ };
181
+ };
182
+ '/notificationSendLogs:list': {
183
+ get: {
184
+ tags: string[];
185
+ summary: string;
186
+ description: string;
187
+ parameters: ({
188
+ name: string;
189
+ in: string;
190
+ required: boolean;
191
+ description: string;
192
+ schema: {
193
+ type: string;
194
+ additionalProperties: boolean;
195
+ };
196
+ } | {
197
+ name: string;
198
+ in: string;
199
+ required: boolean;
200
+ description: string;
201
+ schema: {
202
+ oneOf: ({
203
+ type: string;
204
+ items?: undefined;
205
+ } | {
206
+ type: string;
207
+ items: {
208
+ type: string;
209
+ };
210
+ })[];
211
+ type?: undefined;
212
+ };
213
+ } | {
214
+ name: string;
215
+ in: string;
216
+ required: boolean;
217
+ schema: {
218
+ type: string;
219
+ oneOf?: undefined;
220
+ };
221
+ description?: undefined;
222
+ })[];
223
+ responses: {
224
+ 200: {
225
+ description: string;
226
+ content: {
227
+ 'application/json': {
228
+ schema: {
229
+ $ref: string;
230
+ };
231
+ };
232
+ };
233
+ };
234
+ };
235
+ };
236
+ };
237
+ '/notificationSendLogs:get': {
238
+ get: {
239
+ tags: string[];
240
+ summary: string;
241
+ parameters: {
242
+ description: string;
243
+ name: string;
244
+ in: string;
245
+ required: boolean;
246
+ schema: {
247
+ type: string;
248
+ };
249
+ }[];
250
+ responses: {
251
+ 200: {
252
+ description: string;
253
+ content: {
254
+ 'application/json': {
255
+ schema: {
256
+ $ref: string;
257
+ };
258
+ };
259
+ };
260
+ };
261
+ };
262
+ };
263
+ };
264
+ '/messages:send': {
265
+ post: {
266
+ tags: string[];
267
+ summary: string;
268
+ description: string;
269
+ requestBody: {
270
+ required: boolean;
271
+ content: {
272
+ 'application/json': {
273
+ schema: {
274
+ $ref: string;
275
+ };
276
+ };
277
+ };
278
+ };
279
+ responses: {
280
+ 200: {
281
+ description: string;
282
+ content: {
283
+ 'application/json': {
284
+ schema: {
285
+ $ref: string;
286
+ };
287
+ };
288
+ };
289
+ };
290
+ };
291
+ };
292
+ };
293
+ };
294
+ components: {
295
+ schemas: {
296
+ NotificationChannel: {
297
+ type: string;
298
+ properties: {
299
+ name: {
300
+ type: string;
301
+ description: string;
302
+ };
303
+ title: {
304
+ type: string;
305
+ };
306
+ description: {
307
+ type: string;
308
+ };
309
+ notificationType: {
310
+ type: string;
311
+ description: string;
312
+ };
313
+ options: {
314
+ type: string;
315
+ additionalProperties: boolean;
316
+ };
317
+ meta: {
318
+ type: string;
319
+ additionalProperties: boolean;
320
+ };
321
+ createdAt: {
322
+ type: string;
323
+ format: string;
324
+ };
325
+ updatedAt: {
326
+ type: string;
327
+ format: string;
328
+ };
329
+ };
330
+ additionalProperties: boolean;
331
+ };
332
+ NotificationChannelInput: {
333
+ type: string;
334
+ required: string[];
335
+ properties: {
336
+ name: {
337
+ type: string;
338
+ };
339
+ title: {
340
+ type: string;
341
+ };
342
+ description: {
343
+ type: string;
344
+ };
345
+ notificationType: {
346
+ type: string;
347
+ };
348
+ options: {
349
+ type: string;
350
+ additionalProperties: boolean;
351
+ };
352
+ meta: {
353
+ type: string;
354
+ additionalProperties: boolean;
355
+ };
356
+ };
357
+ additionalProperties: boolean;
358
+ };
359
+ NotificationChannelResponse: {
360
+ type: string;
361
+ properties: {
362
+ data: {
363
+ $ref: string;
364
+ };
365
+ };
366
+ };
367
+ NotificationChannelListResponse: {
368
+ type: string;
369
+ properties: {
370
+ data: {
371
+ type: string;
372
+ items: {
373
+ $ref: string;
374
+ };
375
+ };
376
+ meta: {
377
+ type: string;
378
+ additionalProperties: boolean;
379
+ };
380
+ };
381
+ };
382
+ NotificationSendLog: {
383
+ type: string;
384
+ properties: {
385
+ id: {
386
+ type: string;
387
+ format: string;
388
+ };
389
+ channelName: {
390
+ type: string;
391
+ };
392
+ channelTitle: {
393
+ type: string;
394
+ };
395
+ triggerFrom: {
396
+ type: string;
397
+ };
398
+ notificationType: {
399
+ type: string;
400
+ };
401
+ status: {
402
+ type: string;
403
+ enum: string[];
404
+ };
405
+ message: {
406
+ type: string;
407
+ additionalProperties: boolean;
408
+ };
409
+ reason: {
410
+ type: string;
411
+ };
412
+ createdAt: {
413
+ type: string;
414
+ format: string;
415
+ };
416
+ updatedAt: {
417
+ type: string;
418
+ format: string;
419
+ };
420
+ };
421
+ additionalProperties: boolean;
422
+ };
423
+ NotificationSendLogResponse: {
424
+ type: string;
425
+ properties: {
426
+ data: {
427
+ $ref: string;
428
+ };
429
+ };
430
+ };
431
+ NotificationSendLogListResponse: {
432
+ type: string;
433
+ properties: {
434
+ data: {
435
+ type: string;
436
+ items: {
437
+ $ref: string;
438
+ };
439
+ };
440
+ meta: {
441
+ type: string;
442
+ additionalProperties: boolean;
443
+ };
444
+ };
445
+ };
446
+ NotificationReceivers: {
447
+ oneOf: ({
448
+ type: string;
449
+ required: string[];
450
+ properties: {
451
+ type: {
452
+ type: string;
453
+ enum: string[];
454
+ };
455
+ value: {
456
+ type: string;
457
+ items: {
458
+ type: string;
459
+ };
460
+ };
461
+ channelType?: undefined;
462
+ };
463
+ } | {
464
+ type: string;
465
+ required: string[];
466
+ properties: {
467
+ type: {
468
+ type: string;
469
+ enum: string[];
470
+ };
471
+ channelType: {
472
+ type: string;
473
+ };
474
+ value: {
475
+ type?: undefined;
476
+ items?: undefined;
477
+ };
478
+ };
479
+ })[];
480
+ };
481
+ NotificationSendRequest: {
482
+ type: string;
483
+ required: string[];
484
+ properties: {
485
+ channelName: {
486
+ type: string;
487
+ description: string;
488
+ };
489
+ message: {
490
+ type: string;
491
+ additionalProperties: boolean;
492
+ };
493
+ receivers: {
494
+ $ref: string;
495
+ };
496
+ triggerFrom: {
497
+ type: string;
498
+ example: string;
499
+ };
500
+ data: {
501
+ type: string;
502
+ additionalProperties: boolean;
503
+ };
504
+ };
505
+ };
506
+ NotificationSendResult: {
507
+ type: string;
508
+ properties: {
509
+ status: {
510
+ type: string;
511
+ enum: string[];
512
+ };
513
+ reason: {
514
+ type: string;
515
+ };
516
+ triggerFrom: {
517
+ type: string;
518
+ };
519
+ channelName: {
520
+ type: string;
521
+ };
522
+ receivers: {
523
+ $ref: string;
524
+ };
525
+ queued: {
526
+ type: string;
527
+ };
528
+ };
529
+ additionalProperties: boolean;
530
+ };
531
+ NotificationSendResponse: {
532
+ type: string;
533
+ properties: {
534
+ data: {
535
+ $ref: string;
536
+ };
537
+ };
538
+ };
539
+ };
540
+ };
541
+ };
542
+ export default _default;