@waldur/notifications 1.0.1-dev.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/package.json +20 -0
- package/src/index.ts +2 -0
- package/src/sdk.gen.ts +1277 -0
- package/src/types.gen.ts +1264 -0
- package/tsconfig.json +30 -0
package/src/sdk.gen.ts
ADDED
|
@@ -0,0 +1,1277 @@
|
|
|
1
|
+
// This file is auto-generated by split-sdk script
|
|
2
|
+
|
|
3
|
+
import type { Options } from '@waldur/core';
|
|
4
|
+
import { client as _heyApiClient } from '@waldur/core';
|
|
5
|
+
|
|
6
|
+
import type { BroadcastMessageTemplatesCountData, BroadcastMessageTemplatesCountResponses, BroadcastMessageTemplatesCreateData, BroadcastMessageTemplatesCreateResponses, BroadcastMessageTemplatesDestroyData, BroadcastMessageTemplatesDestroyResponses, BroadcastMessageTemplatesListData, BroadcastMessageTemplatesListResponses, BroadcastMessageTemplatesPartialUpdateData, BroadcastMessageTemplatesPartialUpdateResponses, BroadcastMessageTemplatesRetrieveData, BroadcastMessageTemplatesRetrieveResponses, BroadcastMessageTemplatesUpdateData, BroadcastMessageTemplatesUpdateResponses, BroadcastMessagesCountData, BroadcastMessagesCountResponses, BroadcastMessagesCreateData, BroadcastMessagesCreateResponses, BroadcastMessagesDestroyData, BroadcastMessagesDestroyResponses, BroadcastMessagesListData, BroadcastMessagesListResponses, BroadcastMessagesPartialUpdateData, BroadcastMessagesPartialUpdateResponses, BroadcastMessagesRecipientsCountData, BroadcastMessagesRecipientsCountResponses, BroadcastMessagesRecipientsRetrieveData, BroadcastMessagesRecipientsRetrieveResponses, BroadcastMessagesRetrieveData, BroadcastMessagesRetrieveResponses, BroadcastMessagesScheduleData, BroadcastMessagesScheduleResponses, BroadcastMessagesSendData, BroadcastMessagesSendResponses, BroadcastMessagesUpdateData, BroadcastMessagesUpdateResponses, EmailLogsCountData, EmailLogsCountResponses, EmailLogsListData, EmailLogsListResponses, EmailLogsRetrieveData, EmailLogsRetrieveResponses, HooksCountData, HooksCountResponses, HooksEmailCountData, HooksEmailCountResponses, HooksEmailCreateData, HooksEmailCreateResponses, HooksEmailDestroyData, HooksEmailDestroyResponses, HooksEmailListData, HooksEmailListResponses, HooksEmailPartialUpdateData, HooksEmailPartialUpdateResponses, HooksEmailRetrieveData, HooksEmailRetrieveResponses, HooksEmailUpdateData, HooksEmailUpdateResponses, HooksListData, HooksListResponses, HooksWebCountData, HooksWebCountResponses, HooksWebCreateData, HooksWebCreateResponses, HooksWebDestroyData, HooksWebDestroyResponses, HooksWebListData, HooksWebListResponses, HooksWebPartialUpdateData, HooksWebPartialUpdateResponses, HooksWebRetrieveData, HooksWebRetrieveResponses, HooksWebUpdateData, HooksWebUpdateResponses, NotificationMessagesCountData, NotificationMessagesCountResponses, NotificationMessagesCreateData, NotificationMessagesCreateResponses, NotificationMessagesDestroyData, NotificationMessagesDestroyResponses, NotificationMessagesDisableData, NotificationMessagesDisableResponses, NotificationMessagesEnableData, NotificationMessagesEnableResponses, NotificationMessagesListData, NotificationMessagesListResponses, NotificationMessagesPartialUpdateData, NotificationMessagesPartialUpdateResponses, NotificationMessagesRetrieveData, NotificationMessagesRetrieveResponses, NotificationMessagesTemplatesCountData, NotificationMessagesTemplatesCountResponses, NotificationMessagesTemplatesCreateData, NotificationMessagesTemplatesCreateResponses, NotificationMessagesTemplatesDestroyData, NotificationMessagesTemplatesDestroyResponses, NotificationMessagesTemplatesListData, NotificationMessagesTemplatesListResponses, NotificationMessagesTemplatesOverrideData, NotificationMessagesTemplatesOverrideResponses, NotificationMessagesTemplatesPartialUpdateData, NotificationMessagesTemplatesPartialUpdateResponses, NotificationMessagesTemplatesRetrieveData, NotificationMessagesTemplatesRetrieveResponses, NotificationMessagesTemplatesUpdateData, NotificationMessagesTemplatesUpdateResponses, NotificationMessagesUpdateData, NotificationMessagesUpdateResponses } from './types.gen';
|
|
7
|
+
|
|
8
|
+
export const broadcastMessageTemplatesList = <ThrowOnError extends boolean = false>(options?: Options<BroadcastMessageTemplatesListData, ThrowOnError>) => {
|
|
9
|
+
return (options?.client ?? _heyApiClient).get<BroadcastMessageTemplatesListResponses, unknown, ThrowOnError>({
|
|
10
|
+
security: [
|
|
11
|
+
{
|
|
12
|
+
name: 'Authorization',
|
|
13
|
+
type: 'apiKey'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
scheme: 'bearer',
|
|
17
|
+
type: 'http'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
scheme: 'bearer',
|
|
21
|
+
type: 'http'
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
url: '/api/broadcast-message-templates/',
|
|
25
|
+
...options
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get number of items in the collection matching the request parameters.
|
|
31
|
+
*/
|
|
32
|
+
export const broadcastMessageTemplatesCount = <ThrowOnError extends boolean = false>(options?: Options<BroadcastMessageTemplatesCountData, ThrowOnError>) => {
|
|
33
|
+
return (options?.client ?? _heyApiClient).head<BroadcastMessageTemplatesCountResponses, unknown, ThrowOnError>({
|
|
34
|
+
security: [
|
|
35
|
+
{
|
|
36
|
+
name: 'Authorization',
|
|
37
|
+
type: 'apiKey'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
scheme: 'bearer',
|
|
41
|
+
type: 'http'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
scheme: 'bearer',
|
|
45
|
+
type: 'http'
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
url: '/api/broadcast-message-templates/',
|
|
49
|
+
...options
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const broadcastMessageTemplatesCreate = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessageTemplatesCreateData, ThrowOnError>) => {
|
|
54
|
+
return (options.client ?? _heyApiClient).post<BroadcastMessageTemplatesCreateResponses, unknown, ThrowOnError>({
|
|
55
|
+
security: [
|
|
56
|
+
{
|
|
57
|
+
name: 'Authorization',
|
|
58
|
+
type: 'apiKey'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
scheme: 'bearer',
|
|
62
|
+
type: 'http'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
scheme: 'bearer',
|
|
66
|
+
type: 'http'
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
url: '/api/broadcast-message-templates/',
|
|
70
|
+
...options,
|
|
71
|
+
headers: {
|
|
72
|
+
'Content-Type': 'application/json',
|
|
73
|
+
...options.headers
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const broadcastMessageTemplatesDestroy = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessageTemplatesDestroyData, ThrowOnError>) => {
|
|
79
|
+
return (options.client ?? _heyApiClient).delete<BroadcastMessageTemplatesDestroyResponses, unknown, ThrowOnError>({
|
|
80
|
+
security: [
|
|
81
|
+
{
|
|
82
|
+
name: 'Authorization',
|
|
83
|
+
type: 'apiKey'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
scheme: 'bearer',
|
|
87
|
+
type: 'http'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
scheme: 'bearer',
|
|
91
|
+
type: 'http'
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
url: '/api/broadcast-message-templates/{uuid}/',
|
|
95
|
+
...options
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const broadcastMessageTemplatesRetrieve = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessageTemplatesRetrieveData, ThrowOnError>) => {
|
|
100
|
+
return (options.client ?? _heyApiClient).get<BroadcastMessageTemplatesRetrieveResponses, unknown, ThrowOnError>({
|
|
101
|
+
security: [
|
|
102
|
+
{
|
|
103
|
+
name: 'Authorization',
|
|
104
|
+
type: 'apiKey'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
scheme: 'bearer',
|
|
108
|
+
type: 'http'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
scheme: 'bearer',
|
|
112
|
+
type: 'http'
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
url: '/api/broadcast-message-templates/{uuid}/',
|
|
116
|
+
...options
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export const broadcastMessageTemplatesPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessageTemplatesPartialUpdateData, ThrowOnError>) => {
|
|
121
|
+
return (options.client ?? _heyApiClient).patch<BroadcastMessageTemplatesPartialUpdateResponses, unknown, ThrowOnError>({
|
|
122
|
+
security: [
|
|
123
|
+
{
|
|
124
|
+
name: 'Authorization',
|
|
125
|
+
type: 'apiKey'
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
scheme: 'bearer',
|
|
129
|
+
type: 'http'
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
scheme: 'bearer',
|
|
133
|
+
type: 'http'
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
url: '/api/broadcast-message-templates/{uuid}/',
|
|
137
|
+
...options,
|
|
138
|
+
headers: {
|
|
139
|
+
'Content-Type': 'application/json',
|
|
140
|
+
...options.headers
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export const broadcastMessageTemplatesUpdate = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessageTemplatesUpdateData, ThrowOnError>) => {
|
|
146
|
+
return (options.client ?? _heyApiClient).put<BroadcastMessageTemplatesUpdateResponses, unknown, ThrowOnError>({
|
|
147
|
+
security: [
|
|
148
|
+
{
|
|
149
|
+
name: 'Authorization',
|
|
150
|
+
type: 'apiKey'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
scheme: 'bearer',
|
|
154
|
+
type: 'http'
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
scheme: 'bearer',
|
|
158
|
+
type: 'http'
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
url: '/api/broadcast-message-templates/{uuid}/',
|
|
162
|
+
...options,
|
|
163
|
+
headers: {
|
|
164
|
+
'Content-Type': 'application/json',
|
|
165
|
+
...options.headers
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export const broadcastMessagesList = <ThrowOnError extends boolean = false>(options?: Options<BroadcastMessagesListData, ThrowOnError>) => {
|
|
171
|
+
return (options?.client ?? _heyApiClient).get<BroadcastMessagesListResponses, unknown, ThrowOnError>({
|
|
172
|
+
security: [
|
|
173
|
+
{
|
|
174
|
+
name: 'Authorization',
|
|
175
|
+
type: 'apiKey'
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
scheme: 'bearer',
|
|
179
|
+
type: 'http'
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
scheme: 'bearer',
|
|
183
|
+
type: 'http'
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
url: '/api/broadcast-messages/',
|
|
187
|
+
...options
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Get number of items in the collection matching the request parameters.
|
|
193
|
+
*/
|
|
194
|
+
export const broadcastMessagesCount = <ThrowOnError extends boolean = false>(options?: Options<BroadcastMessagesCountData, ThrowOnError>) => {
|
|
195
|
+
return (options?.client ?? _heyApiClient).head<BroadcastMessagesCountResponses, unknown, ThrowOnError>({
|
|
196
|
+
security: [
|
|
197
|
+
{
|
|
198
|
+
name: 'Authorization',
|
|
199
|
+
type: 'apiKey'
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
scheme: 'bearer',
|
|
203
|
+
type: 'http'
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
scheme: 'bearer',
|
|
207
|
+
type: 'http'
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
url: '/api/broadcast-messages/',
|
|
211
|
+
...options
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export const broadcastMessagesCreate = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessagesCreateData, ThrowOnError>) => {
|
|
216
|
+
return (options.client ?? _heyApiClient).post<BroadcastMessagesCreateResponses, unknown, ThrowOnError>({
|
|
217
|
+
security: [
|
|
218
|
+
{
|
|
219
|
+
name: 'Authorization',
|
|
220
|
+
type: 'apiKey'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
scheme: 'bearer',
|
|
224
|
+
type: 'http'
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
scheme: 'bearer',
|
|
228
|
+
type: 'http'
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
url: '/api/broadcast-messages/',
|
|
232
|
+
...options,
|
|
233
|
+
headers: {
|
|
234
|
+
'Content-Type': 'application/json',
|
|
235
|
+
...options.headers
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export const broadcastMessagesDestroy = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessagesDestroyData, ThrowOnError>) => {
|
|
241
|
+
return (options.client ?? _heyApiClient).delete<BroadcastMessagesDestroyResponses, unknown, ThrowOnError>({
|
|
242
|
+
security: [
|
|
243
|
+
{
|
|
244
|
+
name: 'Authorization',
|
|
245
|
+
type: 'apiKey'
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
scheme: 'bearer',
|
|
249
|
+
type: 'http'
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
scheme: 'bearer',
|
|
253
|
+
type: 'http'
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
url: '/api/broadcast-messages/{uuid}/',
|
|
257
|
+
...options
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export const broadcastMessagesRetrieve = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessagesRetrieveData, ThrowOnError>) => {
|
|
262
|
+
return (options.client ?? _heyApiClient).get<BroadcastMessagesRetrieveResponses, unknown, ThrowOnError>({
|
|
263
|
+
security: [
|
|
264
|
+
{
|
|
265
|
+
name: 'Authorization',
|
|
266
|
+
type: 'apiKey'
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
scheme: 'bearer',
|
|
270
|
+
type: 'http'
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
scheme: 'bearer',
|
|
274
|
+
type: 'http'
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
url: '/api/broadcast-messages/{uuid}/',
|
|
278
|
+
...options
|
|
279
|
+
});
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export const broadcastMessagesPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessagesPartialUpdateData, ThrowOnError>) => {
|
|
283
|
+
return (options.client ?? _heyApiClient).patch<BroadcastMessagesPartialUpdateResponses, unknown, ThrowOnError>({
|
|
284
|
+
security: [
|
|
285
|
+
{
|
|
286
|
+
name: 'Authorization',
|
|
287
|
+
type: 'apiKey'
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
scheme: 'bearer',
|
|
291
|
+
type: 'http'
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
scheme: 'bearer',
|
|
295
|
+
type: 'http'
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
url: '/api/broadcast-messages/{uuid}/',
|
|
299
|
+
...options,
|
|
300
|
+
headers: {
|
|
301
|
+
'Content-Type': 'application/json',
|
|
302
|
+
...options.headers
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export const broadcastMessagesUpdate = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessagesUpdateData, ThrowOnError>) => {
|
|
308
|
+
return (options.client ?? _heyApiClient).put<BroadcastMessagesUpdateResponses, unknown, ThrowOnError>({
|
|
309
|
+
security: [
|
|
310
|
+
{
|
|
311
|
+
name: 'Authorization',
|
|
312
|
+
type: 'apiKey'
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
scheme: 'bearer',
|
|
316
|
+
type: 'http'
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
scheme: 'bearer',
|
|
320
|
+
type: 'http'
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
url: '/api/broadcast-messages/{uuid}/',
|
|
324
|
+
...options,
|
|
325
|
+
headers: {
|
|
326
|
+
'Content-Type': 'application/json',
|
|
327
|
+
...options.headers
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
export const broadcastMessagesSchedule = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessagesScheduleData, ThrowOnError>) => {
|
|
333
|
+
return (options.client ?? _heyApiClient).post<BroadcastMessagesScheduleResponses, unknown, ThrowOnError>({
|
|
334
|
+
security: [
|
|
335
|
+
{
|
|
336
|
+
name: 'Authorization',
|
|
337
|
+
type: 'apiKey'
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
scheme: 'bearer',
|
|
341
|
+
type: 'http'
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
scheme: 'bearer',
|
|
345
|
+
type: 'http'
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
url: '/api/broadcast-messages/{uuid}/schedule/',
|
|
349
|
+
...options
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
export const broadcastMessagesSend = <ThrowOnError extends boolean = false>(options: Options<BroadcastMessagesSendData, ThrowOnError>) => {
|
|
354
|
+
return (options.client ?? _heyApiClient).post<BroadcastMessagesSendResponses, unknown, ThrowOnError>({
|
|
355
|
+
security: [
|
|
356
|
+
{
|
|
357
|
+
name: 'Authorization',
|
|
358
|
+
type: 'apiKey'
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
scheme: 'bearer',
|
|
362
|
+
type: 'http'
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
scheme: 'bearer',
|
|
366
|
+
type: 'http'
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
url: '/api/broadcast-messages/{uuid}/send/',
|
|
370
|
+
...options
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
export const broadcastMessagesRecipientsRetrieve = <ThrowOnError extends boolean = false>(options?: Options<BroadcastMessagesRecipientsRetrieveData, ThrowOnError>) => {
|
|
375
|
+
return (options?.client ?? _heyApiClient).get<BroadcastMessagesRecipientsRetrieveResponses, unknown, ThrowOnError>({
|
|
376
|
+
security: [
|
|
377
|
+
{
|
|
378
|
+
name: 'Authorization',
|
|
379
|
+
type: 'apiKey'
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
scheme: 'bearer',
|
|
383
|
+
type: 'http'
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
scheme: 'bearer',
|
|
387
|
+
type: 'http'
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
url: '/api/broadcast-messages/recipients/',
|
|
391
|
+
...options
|
|
392
|
+
});
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Get number of items in the collection matching the request parameters.
|
|
397
|
+
*/
|
|
398
|
+
export const broadcastMessagesRecipientsCount = <ThrowOnError extends boolean = false>(options?: Options<BroadcastMessagesRecipientsCountData, ThrowOnError>) => {
|
|
399
|
+
return (options?.client ?? _heyApiClient).head<BroadcastMessagesRecipientsCountResponses, unknown, ThrowOnError>({
|
|
400
|
+
security: [
|
|
401
|
+
{
|
|
402
|
+
name: 'Authorization',
|
|
403
|
+
type: 'apiKey'
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
scheme: 'bearer',
|
|
407
|
+
type: 'http'
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
scheme: 'bearer',
|
|
411
|
+
type: 'http'
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
url: '/api/broadcast-messages/recipients/',
|
|
415
|
+
...options
|
|
416
|
+
});
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
export const emailLogsList = <ThrowOnError extends boolean = false>(options?: Options<EmailLogsListData, ThrowOnError>) => {
|
|
420
|
+
return (options?.client ?? _heyApiClient).get<EmailLogsListResponses, unknown, ThrowOnError>({
|
|
421
|
+
security: [
|
|
422
|
+
{
|
|
423
|
+
name: 'Authorization',
|
|
424
|
+
type: 'apiKey'
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
scheme: 'bearer',
|
|
428
|
+
type: 'http'
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
scheme: 'bearer',
|
|
432
|
+
type: 'http'
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
url: '/api/email-logs/',
|
|
436
|
+
...options
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Get number of items in the collection matching the request parameters.
|
|
442
|
+
*/
|
|
443
|
+
export const emailLogsCount = <ThrowOnError extends boolean = false>(options?: Options<EmailLogsCountData, ThrowOnError>) => {
|
|
444
|
+
return (options?.client ?? _heyApiClient).head<EmailLogsCountResponses, unknown, ThrowOnError>({
|
|
445
|
+
security: [
|
|
446
|
+
{
|
|
447
|
+
name: 'Authorization',
|
|
448
|
+
type: 'apiKey'
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
scheme: 'bearer',
|
|
452
|
+
type: 'http'
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
scheme: 'bearer',
|
|
456
|
+
type: 'http'
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
url: '/api/email-logs/',
|
|
460
|
+
...options
|
|
461
|
+
});
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
export const emailLogsRetrieve = <ThrowOnError extends boolean = false>(options: Options<EmailLogsRetrieveData, ThrowOnError>) => {
|
|
465
|
+
return (options.client ?? _heyApiClient).get<EmailLogsRetrieveResponses, unknown, ThrowOnError>({
|
|
466
|
+
security: [
|
|
467
|
+
{
|
|
468
|
+
name: 'Authorization',
|
|
469
|
+
type: 'apiKey'
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
scheme: 'bearer',
|
|
473
|
+
type: 'http'
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
scheme: 'bearer',
|
|
477
|
+
type: 'http'
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
url: '/api/email-logs/{uuid}/',
|
|
481
|
+
...options
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
export const hooksList = <ThrowOnError extends boolean = false>(options?: Options<HooksListData, ThrowOnError>) => {
|
|
486
|
+
return (options?.client ?? _heyApiClient).get<HooksListResponses, unknown, ThrowOnError>({
|
|
487
|
+
security: [
|
|
488
|
+
{
|
|
489
|
+
name: 'Authorization',
|
|
490
|
+
type: 'apiKey'
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
scheme: 'bearer',
|
|
494
|
+
type: 'http'
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
scheme: 'bearer',
|
|
498
|
+
type: 'http'
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
url: '/api/hooks/',
|
|
502
|
+
...options
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Get number of items in the collection matching the request parameters.
|
|
508
|
+
*/
|
|
509
|
+
export const hooksCount = <ThrowOnError extends boolean = false>(options?: Options<HooksCountData, ThrowOnError>) => {
|
|
510
|
+
return (options?.client ?? _heyApiClient).head<HooksCountResponses, unknown, ThrowOnError>({
|
|
511
|
+
security: [
|
|
512
|
+
{
|
|
513
|
+
name: 'Authorization',
|
|
514
|
+
type: 'apiKey'
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
scheme: 'bearer',
|
|
518
|
+
type: 'http'
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
scheme: 'bearer',
|
|
522
|
+
type: 'http'
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
url: '/api/hooks/',
|
|
526
|
+
...options
|
|
527
|
+
});
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
export const hooksEmailList = <ThrowOnError extends boolean = false>(options?: Options<HooksEmailListData, ThrowOnError>) => {
|
|
531
|
+
return (options?.client ?? _heyApiClient).get<HooksEmailListResponses, unknown, ThrowOnError>({
|
|
532
|
+
security: [
|
|
533
|
+
{
|
|
534
|
+
name: 'Authorization',
|
|
535
|
+
type: 'apiKey'
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
scheme: 'bearer',
|
|
539
|
+
type: 'http'
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
scheme: 'bearer',
|
|
543
|
+
type: 'http'
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
url: '/api/hooks-email/',
|
|
547
|
+
...options
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Get number of items in the collection matching the request parameters.
|
|
553
|
+
*/
|
|
554
|
+
export const hooksEmailCount = <ThrowOnError extends boolean = false>(options?: Options<HooksEmailCountData, ThrowOnError>) => {
|
|
555
|
+
return (options?.client ?? _heyApiClient).head<HooksEmailCountResponses, unknown, ThrowOnError>({
|
|
556
|
+
security: [
|
|
557
|
+
{
|
|
558
|
+
name: 'Authorization',
|
|
559
|
+
type: 'apiKey'
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
scheme: 'bearer',
|
|
563
|
+
type: 'http'
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
scheme: 'bearer',
|
|
567
|
+
type: 'http'
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
url: '/api/hooks-email/',
|
|
571
|
+
...options
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
export const hooksEmailCreate = <ThrowOnError extends boolean = false>(options: Options<HooksEmailCreateData, ThrowOnError>) => {
|
|
576
|
+
return (options.client ?? _heyApiClient).post<HooksEmailCreateResponses, unknown, ThrowOnError>({
|
|
577
|
+
security: [
|
|
578
|
+
{
|
|
579
|
+
name: 'Authorization',
|
|
580
|
+
type: 'apiKey'
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
scheme: 'bearer',
|
|
584
|
+
type: 'http'
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
scheme: 'bearer',
|
|
588
|
+
type: 'http'
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
url: '/api/hooks-email/',
|
|
592
|
+
...options,
|
|
593
|
+
headers: {
|
|
594
|
+
'Content-Type': 'application/json',
|
|
595
|
+
...options.headers
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
export const hooksEmailDestroy = <ThrowOnError extends boolean = false>(options: Options<HooksEmailDestroyData, ThrowOnError>) => {
|
|
601
|
+
return (options.client ?? _heyApiClient).delete<HooksEmailDestroyResponses, unknown, ThrowOnError>({
|
|
602
|
+
security: [
|
|
603
|
+
{
|
|
604
|
+
name: 'Authorization',
|
|
605
|
+
type: 'apiKey'
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
scheme: 'bearer',
|
|
609
|
+
type: 'http'
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
scheme: 'bearer',
|
|
613
|
+
type: 'http'
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
url: '/api/hooks-email/{uuid}/',
|
|
617
|
+
...options
|
|
618
|
+
});
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
export const hooksEmailRetrieve = <ThrowOnError extends boolean = false>(options: Options<HooksEmailRetrieveData, ThrowOnError>) => {
|
|
622
|
+
return (options.client ?? _heyApiClient).get<HooksEmailRetrieveResponses, unknown, ThrowOnError>({
|
|
623
|
+
security: [
|
|
624
|
+
{
|
|
625
|
+
name: 'Authorization',
|
|
626
|
+
type: 'apiKey'
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
scheme: 'bearer',
|
|
630
|
+
type: 'http'
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
scheme: 'bearer',
|
|
634
|
+
type: 'http'
|
|
635
|
+
}
|
|
636
|
+
],
|
|
637
|
+
url: '/api/hooks-email/{uuid}/',
|
|
638
|
+
...options
|
|
639
|
+
});
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
export const hooksEmailPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<HooksEmailPartialUpdateData, ThrowOnError>) => {
|
|
643
|
+
return (options.client ?? _heyApiClient).patch<HooksEmailPartialUpdateResponses, unknown, ThrowOnError>({
|
|
644
|
+
security: [
|
|
645
|
+
{
|
|
646
|
+
name: 'Authorization',
|
|
647
|
+
type: 'apiKey'
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
scheme: 'bearer',
|
|
651
|
+
type: 'http'
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
scheme: 'bearer',
|
|
655
|
+
type: 'http'
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
url: '/api/hooks-email/{uuid}/',
|
|
659
|
+
...options,
|
|
660
|
+
headers: {
|
|
661
|
+
'Content-Type': 'application/json',
|
|
662
|
+
...options.headers
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
export const hooksEmailUpdate = <ThrowOnError extends boolean = false>(options: Options<HooksEmailUpdateData, ThrowOnError>) => {
|
|
668
|
+
return (options.client ?? _heyApiClient).put<HooksEmailUpdateResponses, unknown, ThrowOnError>({
|
|
669
|
+
security: [
|
|
670
|
+
{
|
|
671
|
+
name: 'Authorization',
|
|
672
|
+
type: 'apiKey'
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
scheme: 'bearer',
|
|
676
|
+
type: 'http'
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
scheme: 'bearer',
|
|
680
|
+
type: 'http'
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
url: '/api/hooks-email/{uuid}/',
|
|
684
|
+
...options,
|
|
685
|
+
headers: {
|
|
686
|
+
'Content-Type': 'application/json',
|
|
687
|
+
...options.headers
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
export const hooksWebList = <ThrowOnError extends boolean = false>(options?: Options<HooksWebListData, ThrowOnError>) => {
|
|
693
|
+
return (options?.client ?? _heyApiClient).get<HooksWebListResponses, unknown, ThrowOnError>({
|
|
694
|
+
security: [
|
|
695
|
+
{
|
|
696
|
+
name: 'Authorization',
|
|
697
|
+
type: 'apiKey'
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
scheme: 'bearer',
|
|
701
|
+
type: 'http'
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
scheme: 'bearer',
|
|
705
|
+
type: 'http'
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
url: '/api/hooks-web/',
|
|
709
|
+
...options
|
|
710
|
+
});
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Get number of items in the collection matching the request parameters.
|
|
715
|
+
*/
|
|
716
|
+
export const hooksWebCount = <ThrowOnError extends boolean = false>(options?: Options<HooksWebCountData, ThrowOnError>) => {
|
|
717
|
+
return (options?.client ?? _heyApiClient).head<HooksWebCountResponses, unknown, ThrowOnError>({
|
|
718
|
+
security: [
|
|
719
|
+
{
|
|
720
|
+
name: 'Authorization',
|
|
721
|
+
type: 'apiKey'
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
scheme: 'bearer',
|
|
725
|
+
type: 'http'
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
scheme: 'bearer',
|
|
729
|
+
type: 'http'
|
|
730
|
+
}
|
|
731
|
+
],
|
|
732
|
+
url: '/api/hooks-web/',
|
|
733
|
+
...options
|
|
734
|
+
});
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* When hook is activated, POST request is issued against destination URL with the following data:
|
|
739
|
+
*
|
|
740
|
+
* .. code-block:: javascript
|
|
741
|
+
*
|
|
742
|
+
* {
|
|
743
|
+
* "timestamp": "2015-07-14T12:12:56.000000",
|
|
744
|
+
* "message": "Customer ABC LLC has been updated.",
|
|
745
|
+
* "type": "customer_update_succeeded",
|
|
746
|
+
* "context": {
|
|
747
|
+
* "user_native_name": "Walter Lebrowski",
|
|
748
|
+
* "customer_contact_details": "",
|
|
749
|
+
* "user_username": "Walter",
|
|
750
|
+
* "user_uuid": "1c3323fc4ae44120b57ec40dea1be6e6",
|
|
751
|
+
* "customer_uuid": "4633bbbb0b3a4b91bffc0e18f853de85",
|
|
752
|
+
* "ip_address": "8.8.8.8",
|
|
753
|
+
* "user_full_name": "Walter Lebrowski",
|
|
754
|
+
* "customer_abbreviation": "ABC LLC",
|
|
755
|
+
* "customer_name": "ABC LLC"
|
|
756
|
+
* },
|
|
757
|
+
* "levelname": "INFO"
|
|
758
|
+
* }
|
|
759
|
+
*
|
|
760
|
+
* Note that context depends on event type.
|
|
761
|
+
*/
|
|
762
|
+
export const hooksWebCreate = <ThrowOnError extends boolean = false>(options: Options<HooksWebCreateData, ThrowOnError>) => {
|
|
763
|
+
return (options.client ?? _heyApiClient).post<HooksWebCreateResponses, unknown, ThrowOnError>({
|
|
764
|
+
security: [
|
|
765
|
+
{
|
|
766
|
+
name: 'Authorization',
|
|
767
|
+
type: 'apiKey'
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
scheme: 'bearer',
|
|
771
|
+
type: 'http'
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
scheme: 'bearer',
|
|
775
|
+
type: 'http'
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
url: '/api/hooks-web/',
|
|
779
|
+
...options,
|
|
780
|
+
headers: {
|
|
781
|
+
'Content-Type': 'application/json',
|
|
782
|
+
...options.headers
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
export const hooksWebDestroy = <ThrowOnError extends boolean = false>(options: Options<HooksWebDestroyData, ThrowOnError>) => {
|
|
788
|
+
return (options.client ?? _heyApiClient).delete<HooksWebDestroyResponses, unknown, ThrowOnError>({
|
|
789
|
+
security: [
|
|
790
|
+
{
|
|
791
|
+
name: 'Authorization',
|
|
792
|
+
type: 'apiKey'
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
scheme: 'bearer',
|
|
796
|
+
type: 'http'
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
scheme: 'bearer',
|
|
800
|
+
type: 'http'
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
url: '/api/hooks-web/{uuid}/',
|
|
804
|
+
...options
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
export const hooksWebRetrieve = <ThrowOnError extends boolean = false>(options: Options<HooksWebRetrieveData, ThrowOnError>) => {
|
|
809
|
+
return (options.client ?? _heyApiClient).get<HooksWebRetrieveResponses, unknown, ThrowOnError>({
|
|
810
|
+
security: [
|
|
811
|
+
{
|
|
812
|
+
name: 'Authorization',
|
|
813
|
+
type: 'apiKey'
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
scheme: 'bearer',
|
|
817
|
+
type: 'http'
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
scheme: 'bearer',
|
|
821
|
+
type: 'http'
|
|
822
|
+
}
|
|
823
|
+
],
|
|
824
|
+
url: '/api/hooks-web/{uuid}/',
|
|
825
|
+
...options
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
export const hooksWebPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<HooksWebPartialUpdateData, ThrowOnError>) => {
|
|
830
|
+
return (options.client ?? _heyApiClient).patch<HooksWebPartialUpdateResponses, unknown, ThrowOnError>({
|
|
831
|
+
security: [
|
|
832
|
+
{
|
|
833
|
+
name: 'Authorization',
|
|
834
|
+
type: 'apiKey'
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
scheme: 'bearer',
|
|
838
|
+
type: 'http'
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
scheme: 'bearer',
|
|
842
|
+
type: 'http'
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
url: '/api/hooks-web/{uuid}/',
|
|
846
|
+
...options,
|
|
847
|
+
headers: {
|
|
848
|
+
'Content-Type': 'application/json',
|
|
849
|
+
...options.headers
|
|
850
|
+
}
|
|
851
|
+
});
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
export const hooksWebUpdate = <ThrowOnError extends boolean = false>(options: Options<HooksWebUpdateData, ThrowOnError>) => {
|
|
855
|
+
return (options.client ?? _heyApiClient).put<HooksWebUpdateResponses, unknown, ThrowOnError>({
|
|
856
|
+
security: [
|
|
857
|
+
{
|
|
858
|
+
name: 'Authorization',
|
|
859
|
+
type: 'apiKey'
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
scheme: 'bearer',
|
|
863
|
+
type: 'http'
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
scheme: 'bearer',
|
|
867
|
+
type: 'http'
|
|
868
|
+
}
|
|
869
|
+
],
|
|
870
|
+
url: '/api/hooks-web/{uuid}/',
|
|
871
|
+
...options,
|
|
872
|
+
headers: {
|
|
873
|
+
'Content-Type': 'application/json',
|
|
874
|
+
...options.headers
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
export const notificationMessagesList = <ThrowOnError extends boolean = false>(options?: Options<NotificationMessagesListData, ThrowOnError>) => {
|
|
880
|
+
return (options?.client ?? _heyApiClient).get<NotificationMessagesListResponses, unknown, ThrowOnError>({
|
|
881
|
+
security: [
|
|
882
|
+
{
|
|
883
|
+
name: 'Authorization',
|
|
884
|
+
type: 'apiKey'
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
scheme: 'bearer',
|
|
888
|
+
type: 'http'
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
scheme: 'bearer',
|
|
892
|
+
type: 'http'
|
|
893
|
+
}
|
|
894
|
+
],
|
|
895
|
+
url: '/api/notification-messages/',
|
|
896
|
+
...options
|
|
897
|
+
});
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Get number of items in the collection matching the request parameters.
|
|
902
|
+
*/
|
|
903
|
+
export const notificationMessagesCount = <ThrowOnError extends boolean = false>(options?: Options<NotificationMessagesCountData, ThrowOnError>) => {
|
|
904
|
+
return (options?.client ?? _heyApiClient).head<NotificationMessagesCountResponses, unknown, ThrowOnError>({
|
|
905
|
+
security: [
|
|
906
|
+
{
|
|
907
|
+
name: 'Authorization',
|
|
908
|
+
type: 'apiKey'
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
scheme: 'bearer',
|
|
912
|
+
type: 'http'
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
scheme: 'bearer',
|
|
916
|
+
type: 'http'
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
url: '/api/notification-messages/',
|
|
920
|
+
...options
|
|
921
|
+
});
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
export const notificationMessagesCreate = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesCreateData, ThrowOnError>) => {
|
|
925
|
+
return (options.client ?? _heyApiClient).post<NotificationMessagesCreateResponses, unknown, ThrowOnError>({
|
|
926
|
+
security: [
|
|
927
|
+
{
|
|
928
|
+
name: 'Authorization',
|
|
929
|
+
type: 'apiKey'
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
scheme: 'bearer',
|
|
933
|
+
type: 'http'
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
scheme: 'bearer',
|
|
937
|
+
type: 'http'
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
url: '/api/notification-messages/',
|
|
941
|
+
...options,
|
|
942
|
+
headers: {
|
|
943
|
+
'Content-Type': 'application/json',
|
|
944
|
+
...options.headers
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
export const notificationMessagesTemplatesList = <ThrowOnError extends boolean = false>(options?: Options<NotificationMessagesTemplatesListData, ThrowOnError>) => {
|
|
950
|
+
return (options?.client ?? _heyApiClient).get<NotificationMessagesTemplatesListResponses, unknown, ThrowOnError>({
|
|
951
|
+
security: [
|
|
952
|
+
{
|
|
953
|
+
name: 'Authorization',
|
|
954
|
+
type: 'apiKey'
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
scheme: 'bearer',
|
|
958
|
+
type: 'http'
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
scheme: 'bearer',
|
|
962
|
+
type: 'http'
|
|
963
|
+
}
|
|
964
|
+
],
|
|
965
|
+
url: '/api/notification-messages-templates/',
|
|
966
|
+
...options
|
|
967
|
+
});
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Get number of items in the collection matching the request parameters.
|
|
972
|
+
*/
|
|
973
|
+
export const notificationMessagesTemplatesCount = <ThrowOnError extends boolean = false>(options?: Options<NotificationMessagesTemplatesCountData, ThrowOnError>) => {
|
|
974
|
+
return (options?.client ?? _heyApiClient).head<NotificationMessagesTemplatesCountResponses, unknown, ThrowOnError>({
|
|
975
|
+
security: [
|
|
976
|
+
{
|
|
977
|
+
name: 'Authorization',
|
|
978
|
+
type: 'apiKey'
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
scheme: 'bearer',
|
|
982
|
+
type: 'http'
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
scheme: 'bearer',
|
|
986
|
+
type: 'http'
|
|
987
|
+
}
|
|
988
|
+
],
|
|
989
|
+
url: '/api/notification-messages-templates/',
|
|
990
|
+
...options
|
|
991
|
+
});
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
export const notificationMessagesTemplatesCreate = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesTemplatesCreateData, ThrowOnError>) => {
|
|
995
|
+
return (options.client ?? _heyApiClient).post<NotificationMessagesTemplatesCreateResponses, unknown, ThrowOnError>({
|
|
996
|
+
security: [
|
|
997
|
+
{
|
|
998
|
+
name: 'Authorization',
|
|
999
|
+
type: 'apiKey'
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
scheme: 'bearer',
|
|
1003
|
+
type: 'http'
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
scheme: 'bearer',
|
|
1007
|
+
type: 'http'
|
|
1008
|
+
}
|
|
1009
|
+
],
|
|
1010
|
+
url: '/api/notification-messages-templates/',
|
|
1011
|
+
...options,
|
|
1012
|
+
headers: {
|
|
1013
|
+
'Content-Type': 'application/json',
|
|
1014
|
+
...options.headers
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
export const notificationMessagesTemplatesDestroy = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesTemplatesDestroyData, ThrowOnError>) => {
|
|
1020
|
+
return (options.client ?? _heyApiClient).delete<NotificationMessagesTemplatesDestroyResponses, unknown, ThrowOnError>({
|
|
1021
|
+
security: [
|
|
1022
|
+
{
|
|
1023
|
+
name: 'Authorization',
|
|
1024
|
+
type: 'apiKey'
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
scheme: 'bearer',
|
|
1028
|
+
type: 'http'
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
scheme: 'bearer',
|
|
1032
|
+
type: 'http'
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
url: '/api/notification-messages-templates/{uuid}/',
|
|
1036
|
+
...options
|
|
1037
|
+
});
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
export const notificationMessagesTemplatesRetrieve = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesTemplatesRetrieveData, ThrowOnError>) => {
|
|
1041
|
+
return (options.client ?? _heyApiClient).get<NotificationMessagesTemplatesRetrieveResponses, unknown, ThrowOnError>({
|
|
1042
|
+
security: [
|
|
1043
|
+
{
|
|
1044
|
+
name: 'Authorization',
|
|
1045
|
+
type: 'apiKey'
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
scheme: 'bearer',
|
|
1049
|
+
type: 'http'
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
scheme: 'bearer',
|
|
1053
|
+
type: 'http'
|
|
1054
|
+
}
|
|
1055
|
+
],
|
|
1056
|
+
url: '/api/notification-messages-templates/{uuid}/',
|
|
1057
|
+
...options
|
|
1058
|
+
});
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
export const notificationMessagesTemplatesPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesTemplatesPartialUpdateData, ThrowOnError>) => {
|
|
1062
|
+
return (options.client ?? _heyApiClient).patch<NotificationMessagesTemplatesPartialUpdateResponses, unknown, ThrowOnError>({
|
|
1063
|
+
security: [
|
|
1064
|
+
{
|
|
1065
|
+
name: 'Authorization',
|
|
1066
|
+
type: 'apiKey'
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
scheme: 'bearer',
|
|
1070
|
+
type: 'http'
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
scheme: 'bearer',
|
|
1074
|
+
type: 'http'
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
url: '/api/notification-messages-templates/{uuid}/',
|
|
1078
|
+
...options,
|
|
1079
|
+
headers: {
|
|
1080
|
+
'Content-Type': 'application/json',
|
|
1081
|
+
...options.headers
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
export const notificationMessagesTemplatesUpdate = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesTemplatesUpdateData, ThrowOnError>) => {
|
|
1087
|
+
return (options.client ?? _heyApiClient).put<NotificationMessagesTemplatesUpdateResponses, unknown, ThrowOnError>({
|
|
1088
|
+
security: [
|
|
1089
|
+
{
|
|
1090
|
+
name: 'Authorization',
|
|
1091
|
+
type: 'apiKey'
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
scheme: 'bearer',
|
|
1095
|
+
type: 'http'
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
scheme: 'bearer',
|
|
1099
|
+
type: 'http'
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
url: '/api/notification-messages-templates/{uuid}/',
|
|
1103
|
+
...options,
|
|
1104
|
+
headers: {
|
|
1105
|
+
'Content-Type': 'application/json',
|
|
1106
|
+
...options.headers
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Override notification template content
|
|
1113
|
+
*/
|
|
1114
|
+
export const notificationMessagesTemplatesOverride = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesTemplatesOverrideData, ThrowOnError>) => {
|
|
1115
|
+
return (options.client ?? _heyApiClient).post<NotificationMessagesTemplatesOverrideResponses, unknown, ThrowOnError>({
|
|
1116
|
+
security: [
|
|
1117
|
+
{
|
|
1118
|
+
name: 'Authorization',
|
|
1119
|
+
type: 'apiKey'
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
scheme: 'bearer',
|
|
1123
|
+
type: 'http'
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
scheme: 'bearer',
|
|
1127
|
+
type: 'http'
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
url: '/api/notification-messages-templates/{uuid}/override/',
|
|
1131
|
+
...options,
|
|
1132
|
+
headers: {
|
|
1133
|
+
'Content-Type': 'application/json',
|
|
1134
|
+
...options.headers
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
export const notificationMessagesDestroy = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesDestroyData, ThrowOnError>) => {
|
|
1140
|
+
return (options.client ?? _heyApiClient).delete<NotificationMessagesDestroyResponses, unknown, ThrowOnError>({
|
|
1141
|
+
security: [
|
|
1142
|
+
{
|
|
1143
|
+
name: 'Authorization',
|
|
1144
|
+
type: 'apiKey'
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
scheme: 'bearer',
|
|
1148
|
+
type: 'http'
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
scheme: 'bearer',
|
|
1152
|
+
type: 'http'
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
url: '/api/notification-messages/{uuid}/',
|
|
1156
|
+
...options
|
|
1157
|
+
});
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
export const notificationMessagesRetrieve = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesRetrieveData, ThrowOnError>) => {
|
|
1161
|
+
return (options.client ?? _heyApiClient).get<NotificationMessagesRetrieveResponses, unknown, ThrowOnError>({
|
|
1162
|
+
security: [
|
|
1163
|
+
{
|
|
1164
|
+
name: 'Authorization',
|
|
1165
|
+
type: 'apiKey'
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
scheme: 'bearer',
|
|
1169
|
+
type: 'http'
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
scheme: 'bearer',
|
|
1173
|
+
type: 'http'
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
url: '/api/notification-messages/{uuid}/',
|
|
1177
|
+
...options
|
|
1178
|
+
});
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
export const notificationMessagesPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesPartialUpdateData, ThrowOnError>) => {
|
|
1182
|
+
return (options.client ?? _heyApiClient).patch<NotificationMessagesPartialUpdateResponses, unknown, ThrowOnError>({
|
|
1183
|
+
security: [
|
|
1184
|
+
{
|
|
1185
|
+
name: 'Authorization',
|
|
1186
|
+
type: 'apiKey'
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
scheme: 'bearer',
|
|
1190
|
+
type: 'http'
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
scheme: 'bearer',
|
|
1194
|
+
type: 'http'
|
|
1195
|
+
}
|
|
1196
|
+
],
|
|
1197
|
+
url: '/api/notification-messages/{uuid}/',
|
|
1198
|
+
...options,
|
|
1199
|
+
headers: {
|
|
1200
|
+
'Content-Type': 'application/json',
|
|
1201
|
+
...options.headers
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
export const notificationMessagesUpdate = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesUpdateData, ThrowOnError>) => {
|
|
1207
|
+
return (options.client ?? _heyApiClient).put<NotificationMessagesUpdateResponses, unknown, ThrowOnError>({
|
|
1208
|
+
security: [
|
|
1209
|
+
{
|
|
1210
|
+
name: 'Authorization',
|
|
1211
|
+
type: 'apiKey'
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
scheme: 'bearer',
|
|
1215
|
+
type: 'http'
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
scheme: 'bearer',
|
|
1219
|
+
type: 'http'
|
|
1220
|
+
}
|
|
1221
|
+
],
|
|
1222
|
+
url: '/api/notification-messages/{uuid}/',
|
|
1223
|
+
...options,
|
|
1224
|
+
headers: {
|
|
1225
|
+
'Content-Type': 'application/json',
|
|
1226
|
+
...options.headers
|
|
1227
|
+
}
|
|
1228
|
+
});
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* Disable a notification
|
|
1233
|
+
*/
|
|
1234
|
+
export const notificationMessagesDisable = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesDisableData, ThrowOnError>) => {
|
|
1235
|
+
return (options.client ?? _heyApiClient).post<NotificationMessagesDisableResponses, unknown, ThrowOnError>({
|
|
1236
|
+
security: [
|
|
1237
|
+
{
|
|
1238
|
+
name: 'Authorization',
|
|
1239
|
+
type: 'apiKey'
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
scheme: 'bearer',
|
|
1243
|
+
type: 'http'
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
scheme: 'bearer',
|
|
1247
|
+
type: 'http'
|
|
1248
|
+
}
|
|
1249
|
+
],
|
|
1250
|
+
url: '/api/notification-messages/{uuid}/disable/',
|
|
1251
|
+
...options
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* Enable a notification
|
|
1257
|
+
*/
|
|
1258
|
+
export const notificationMessagesEnable = <ThrowOnError extends boolean = false>(options: Options<NotificationMessagesEnableData, ThrowOnError>) => {
|
|
1259
|
+
return (options.client ?? _heyApiClient).post<NotificationMessagesEnableResponses, unknown, ThrowOnError>({
|
|
1260
|
+
security: [
|
|
1261
|
+
{
|
|
1262
|
+
name: 'Authorization',
|
|
1263
|
+
type: 'apiKey'
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
scheme: 'bearer',
|
|
1267
|
+
type: 'http'
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
scheme: 'bearer',
|
|
1271
|
+
type: 'http'
|
|
1272
|
+
}
|
|
1273
|
+
],
|
|
1274
|
+
url: '/api/notification-messages/{uuid}/enable/',
|
|
1275
|
+
...options
|
|
1276
|
+
});
|
|
1277
|
+
};
|