reach-api-sdk 1.0.2 → 1.0.4

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.
Files changed (50) hide show
  1. package/package.json +1 -1
  2. package/src/apiClient.ts +242 -242
  3. package/src/definition/swagger.yaml +58949 -58949
  4. package/src/index.ts +234 -234
  5. package/src/models/CoursePage.ts +11 -11
  6. package/src/models/CourseSessionPage.ts +11 -11
  7. package/src/models/CourseSessionSchedulePage.ts +11 -11
  8. package/src/models/CustomerPage.ts +11 -11
  9. package/src/models/EmailReminderSchedulePage.ts +11 -11
  10. package/src/models/EmailSettingPage.ts +11 -11
  11. package/src/models/FacilityIndividualPage.ts +11 -11
  12. package/src/models/FacilityPage.ts +11 -11
  13. package/src/models/GenericActivityPage.ts +11 -11
  14. package/src/models/ImagePage.ts +11 -11
  15. package/src/models/NotificationQueuePage.ts +11 -11
  16. package/src/models/NotificationSettingPage.ts +11 -11
  17. package/src/models/OfferPage.ts +11 -11
  18. package/src/models/OpenactiveFeedIntermediatePage.ts +11 -11
  19. package/src/models/OpenactiveFeedItemPage.ts +11 -11
  20. package/src/models/OrderItemPage.ts +11 -11
  21. package/src/models/OrderPage.ts +11 -11
  22. package/src/models/OrderTokenPage.ts +11 -11
  23. package/src/models/OrgCourseUtilisationPage.ts +11 -11
  24. package/src/models/PageMeta.ts +25 -25
  25. package/src/models/PaymentPage.ts +11 -11
  26. package/src/models/PermissionPage.ts +11 -11
  27. package/src/models/ProgrammePage.ts +11 -11
  28. package/src/models/RecentOrderActivityReportPage.ts +11 -11
  29. package/src/models/ScheduledSessionPage.ts +11 -11
  30. package/src/models/ScheduledSessionSchedulePage.ts +11 -11
  31. package/src/models/SessionPage.ts +11 -11
  32. package/src/models/SlotOfferPage.ts +11 -11
  33. package/src/models/SlotPage.ts +11 -11
  34. package/src/models/SlotScheduleOfferPage.ts +11 -11
  35. package/src/models/SlotSchedulePage.ts +11 -11
  36. package/src/models/StripeAccountPage.ts +11 -11
  37. package/src/models/SurveyAnswerPage.ts +11 -11
  38. package/src/models/SurveyPage.ts +11 -11
  39. package/src/models/SurveyQuestionPage.ts +11 -11
  40. package/src/models/SurveyReportExtended.ts +33 -33
  41. package/src/models/SurveyReportExtendedPage.ts +11 -11
  42. package/src/models/TenantPage.ts +11 -11
  43. package/src/models/TenantWebsiteSettingPage.ts +11 -11
  44. package/src/models/TotalRevenueReportPage.ts +11 -11
  45. package/src/models/UserPage.ts +11 -11
  46. package/src/models/VenuePage.ts +11 -11
  47. package/src/models/VenuesReportPage.ts +11 -11
  48. package/src/models/WaitlistActivityPage.ts +11 -11
  49. package/src/models/WaitlistOpportunityPage.ts +11 -11
  50. package/src/services/SurveyReportExtendedService.ts +618 -618
@@ -1,618 +1,618 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
5
- import type { SurveyReportExtended } from '../models/SurveyReportExtended';
6
- import type { SurveyReportExtendedPage } from '../models/SurveyReportExtendedPage';
7
-
8
- import type { CancelablePromise } from '../core/CancelablePromise';
9
- import type { BaseHttpRequest } from '../core/BaseHttpRequest';
10
-
11
- export class SurveyReportExtendedService {
12
- constructor(public readonly httpRequest: BaseHttpRequest) {}
13
-
14
- /**
15
- * Exports the venues list to a csv format.
16
- * Endpoint has AllowAnonymous attr, however the jwt is validated in the method body (in support of authenticated file downloads.
17
- * @returns any Success
18
- * @throws ApiError
19
- */
20
- public exportToCsv({
21
- surveyId,
22
- slotId,
23
- opportunityType,
24
- pageNumber,
25
- take,
26
- limitListRequests,
27
- tenantId,
28
- modifiedById,
29
- modifiedByIds,
30
- dateCreatedGte,
31
- dateCreatedLte,
32
- isLive,
33
- sortOrderDirection,
34
- formData,
35
- }: {
36
- /**
37
- * Gets or sets the Survey Id.
38
- */
39
- surveyId?: string;
40
- /**
41
- * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
42
- */
43
- slotId?: string;
44
- /**
45
- * Gets or sets the Opportunity Type.
46
- */
47
- opportunityType?: string;
48
- /**
49
- * Gets or sets the page number for paged queries.
50
- */
51
- pageNumber?: number;
52
- /**
53
- * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
54
- */
55
- take?: number;
56
- /**
57
- * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
58
- */
59
- limitListRequests?: boolean;
60
- /**
61
- * Gets or sets the Tenant Id.
62
- */
63
- tenantId?: string;
64
- /**
65
- * Gets or sets the Modifed By Id.
66
- */
67
- modifiedById?: string;
68
- /**
69
- * Gets or sets the Modifed By Ids.
70
- */
71
- modifiedByIds?: Array<string>;
72
- /**
73
- * Gets or sets the Date Created greater than equal to.
74
- */
75
- dateCreatedGte?: string;
76
- /**
77
- * Gets or sets the Date Created less than equal to.
78
- */
79
- dateCreatedLte?: string;
80
- /**
81
- * Gets or sets the queryable only is live status.
82
- */
83
- isLive?: boolean;
84
- /**
85
- * Gets or sets the sort order direction.
86
- */
87
- sortOrderDirection?: SearchSortOrderDirection;
88
- formData?: {
89
- /**
90
- * Gets or sets the auth token.
91
- */
92
- Token?: string;
93
- };
94
- }): CancelablePromise<any> {
95
- return this.httpRequest.request({
96
- method: 'POST',
97
- url: '/api/survey-extended-report/export/csv',
98
- query: {
99
- SurveyId: surveyId,
100
- SlotId: slotId,
101
- OpportunityType: opportunityType,
102
- PageNumber: pageNumber,
103
- Take: take,
104
- LimitListRequests: limitListRequests,
105
- TenantId: tenantId,
106
- ModifiedById: modifiedById,
107
- ModifiedByIds: modifiedByIds,
108
- DateCreatedGTE: dateCreatedGte,
109
- DateCreatedLTE: dateCreatedLte,
110
- IsLive: isLive,
111
- SortOrderDirection: sortOrderDirection,
112
- },
113
- formData: formData,
114
- mediaType: 'multipart/form-data',
115
- errors: {
116
- 400: `Bad Request`,
117
- 500: `Server Error`,
118
- },
119
- });
120
- }
121
-
122
- /**
123
- * Gets the resource by its Id.
124
- * @returns SurveyReportExtended Success
125
- * @throws ApiError
126
- */
127
- public getObject({
128
- id,
129
- }: {
130
- /**
131
- * The <typeparamref name="TObject" /> id.
132
- */
133
- id: string;
134
- }): CancelablePromise<SurveyReportExtended> {
135
- return this.httpRequest.request({
136
- method: 'GET',
137
- url: '/api/survey-extended-report/{id}',
138
- path: {
139
- id: id,
140
- },
141
- errors: {
142
- 400: `Bad Request`,
143
- 500: `Server Error`,
144
- },
145
- });
146
- }
147
-
148
- /**
149
- * Deletes the resource.
150
- * @returns any Success
151
- * @throws ApiError
152
- */
153
- public deleteById({
154
- id,
155
- }: {
156
- /**
157
- * The <typeparamref name="TObject" /> id.
158
- */
159
- id: string;
160
- }): CancelablePromise<any> {
161
- return this.httpRequest.request({
162
- method: 'DELETE',
163
- url: '/api/survey-extended-report/{id}',
164
- path: {
165
- id: id,
166
- },
167
- errors: {
168
- 400: `Bad Request`,
169
- 500: `Server Error`,
170
- },
171
- });
172
- }
173
-
174
- /**
175
- * Returns a value indicating whether the resource exists in the database given the provided search params.
176
- * @returns boolean Success
177
- * @throws ApiError
178
- */
179
- public exists({
180
- surveyId,
181
- slotId,
182
- opportunityType,
183
- pageNumber,
184
- take,
185
- limitListRequests,
186
- tenantId,
187
- modifiedById,
188
- modifiedByIds,
189
- dateCreatedGte,
190
- dateCreatedLte,
191
- isLive,
192
- sortOrderDirection,
193
- }: {
194
- /**
195
- * Gets or sets the Survey Id.
196
- */
197
- surveyId?: string;
198
- /**
199
- * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
200
- */
201
- slotId?: string;
202
- /**
203
- * Gets or sets the Opportunity Type.
204
- */
205
- opportunityType?: string;
206
- /**
207
- * Gets or sets the page number for paged queries.
208
- */
209
- pageNumber?: number;
210
- /**
211
- * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
212
- */
213
- take?: number;
214
- /**
215
- * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
216
- */
217
- limitListRequests?: boolean;
218
- /**
219
- * Gets or sets the Tenant Id.
220
- */
221
- tenantId?: string;
222
- /**
223
- * Gets or sets the Modifed By Id.
224
- */
225
- modifiedById?: string;
226
- /**
227
- * Gets or sets the Modifed By Ids.
228
- */
229
- modifiedByIds?: Array<string>;
230
- /**
231
- * Gets or sets the Date Created greater than equal to.
232
- */
233
- dateCreatedGte?: string;
234
- /**
235
- * Gets or sets the Date Created less than equal to.
236
- */
237
- dateCreatedLte?: string;
238
- /**
239
- * Gets or sets the queryable only is live status.
240
- */
241
- isLive?: boolean;
242
- /**
243
- * Gets or sets the sort order direction.
244
- */
245
- sortOrderDirection?: SearchSortOrderDirection;
246
- }): CancelablePromise<boolean> {
247
- return this.httpRequest.request({
248
- method: 'GET',
249
- url: '/api/survey-extended-report/exists',
250
- query: {
251
- SurveyId: surveyId,
252
- SlotId: slotId,
253
- OpportunityType: opportunityType,
254
- PageNumber: pageNumber,
255
- Take: take,
256
- LimitListRequests: limitListRequests,
257
- TenantId: tenantId,
258
- ModifiedById: modifiedById,
259
- ModifiedByIds: modifiedByIds,
260
- DateCreatedGTE: dateCreatedGte,
261
- DateCreatedLTE: dateCreatedLte,
262
- IsLive: isLive,
263
- SortOrderDirection: sortOrderDirection,
264
- },
265
- errors: {
266
- 400: `Bad Request`,
267
- 500: `Server Error`,
268
- },
269
- });
270
- }
271
-
272
- /**
273
- * Gets a list of resources.
274
- * @returns SurveyReportExtendedPage Success
275
- * @throws ApiError
276
- */
277
- public getPage({
278
- surveyId,
279
- slotId,
280
- opportunityType,
281
- pageNumber,
282
- take,
283
- limitListRequests,
284
- tenantId,
285
- modifiedById,
286
- modifiedByIds,
287
- dateCreatedGte,
288
- dateCreatedLte,
289
- isLive,
290
- sortOrderDirection,
291
- }: {
292
- /**
293
- * Gets or sets the Survey Id.
294
- */
295
- surveyId?: string;
296
- /**
297
- * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
298
- */
299
- slotId?: string;
300
- /**
301
- * Gets or sets the Opportunity Type.
302
- */
303
- opportunityType?: string;
304
- /**
305
- * Gets or sets the page number for paged queries.
306
- */
307
- pageNumber?: number;
308
- /**
309
- * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
310
- */
311
- take?: number;
312
- /**
313
- * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
314
- */
315
- limitListRequests?: boolean;
316
- /**
317
- * Gets or sets the Tenant Id.
318
- */
319
- tenantId?: string;
320
- /**
321
- * Gets or sets the Modifed By Id.
322
- */
323
- modifiedById?: string;
324
- /**
325
- * Gets or sets the Modifed By Ids.
326
- */
327
- modifiedByIds?: Array<string>;
328
- /**
329
- * Gets or sets the Date Created greater than equal to.
330
- */
331
- dateCreatedGte?: string;
332
- /**
333
- * Gets or sets the Date Created less than equal to.
334
- */
335
- dateCreatedLte?: string;
336
- /**
337
- * Gets or sets the queryable only is live status.
338
- */
339
- isLive?: boolean;
340
- /**
341
- * Gets or sets the sort order direction.
342
- */
343
- sortOrderDirection?: SearchSortOrderDirection;
344
- }): CancelablePromise<SurveyReportExtendedPage> {
345
- return this.httpRequest.request({
346
- method: 'GET',
347
- url: '/api/survey-extended-report',
348
- query: {
349
- SurveyId: surveyId,
350
- SlotId: slotId,
351
- OpportunityType: opportunityType,
352
- PageNumber: pageNumber,
353
- Take: take,
354
- LimitListRequests: limitListRequests,
355
- TenantId: tenantId,
356
- ModifiedById: modifiedById,
357
- ModifiedByIds: modifiedByIds,
358
- DateCreatedGTE: dateCreatedGte,
359
- DateCreatedLTE: dateCreatedLte,
360
- IsLive: isLive,
361
- SortOrderDirection: sortOrderDirection,
362
- },
363
- errors: {
364
- 400: `Bad Request`,
365
- 500: `Server Error`,
366
- },
367
- });
368
- }
369
-
370
- /**
371
- * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
372
- * @returns SurveyReportExtended Success
373
- * @throws ApiError
374
- */
375
- public post({
376
- requestBody,
377
- }: {
378
- /**
379
- * The <typeparamref name="TObject" /> model.
380
- */
381
- requestBody?: SurveyReportExtended;
382
- }): CancelablePromise<SurveyReportExtended> {
383
- return this.httpRequest.request({
384
- method: 'POST',
385
- url: '/api/survey-extended-report',
386
- body: requestBody,
387
- mediaType: 'application/json',
388
- errors: {
389
- 400: `Bad Request`,
390
- 500: `Server Error`,
391
- },
392
- });
393
- }
394
-
395
- /**
396
- * Patches the resource.
397
- * @returns SurveyReportExtended Success
398
- * @throws ApiError
399
- */
400
- public patch({
401
- requestBody,
402
- }: {
403
- /**
404
- * The <typeparamref name="TObject" /> model.
405
- */
406
- requestBody?: SurveyReportExtended;
407
- }): CancelablePromise<SurveyReportExtended> {
408
- return this.httpRequest.request({
409
- method: 'PATCH',
410
- url: '/api/survey-extended-report',
411
- body: requestBody,
412
- mediaType: 'application/json',
413
- errors: {
414
- 400: `Bad Request`,
415
- 500: `Server Error`,
416
- },
417
- });
418
- }
419
-
420
- /**
421
- * Deletes the resource.
422
- * @returns any Success
423
- * @throws ApiError
424
- */
425
- public deleteByObject({
426
- requestBody,
427
- }: {
428
- /**
429
- * The <typeparamref name="TObject" /> model.
430
- */
431
- requestBody?: SurveyReportExtended;
432
- }): CancelablePromise<any> {
433
- return this.httpRequest.request({
434
- method: 'DELETE',
435
- url: '/api/survey-extended-report',
436
- body: requestBody,
437
- mediaType: 'application/json',
438
- errors: {
439
- 400: `Bad Request`,
440
- 500: `Server Error`,
441
- },
442
- });
443
- }
444
-
445
- /**
446
- * Gets a list of resources.
447
- * @returns SurveyReportExtended Success
448
- * @throws ApiError
449
- */
450
- public getListIdName({
451
- surveyId,
452
- slotId,
453
- opportunityType,
454
- pageNumber,
455
- take,
456
- limitListRequests,
457
- tenantId,
458
- modifiedById,
459
- modifiedByIds,
460
- dateCreatedGte,
461
- dateCreatedLte,
462
- isLive,
463
- sortOrderDirection,
464
- }: {
465
- /**
466
- * Gets or sets the Survey Id.
467
- */
468
- surveyId?: string;
469
- /**
470
- * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
471
- */
472
- slotId?: string;
473
- /**
474
- * Gets or sets the Opportunity Type.
475
- */
476
- opportunityType?: string;
477
- /**
478
- * Gets or sets the page number for paged queries.
479
- */
480
- pageNumber?: number;
481
- /**
482
- * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
483
- */
484
- take?: number;
485
- /**
486
- * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
487
- */
488
- limitListRequests?: boolean;
489
- /**
490
- * Gets or sets the Tenant Id.
491
- */
492
- tenantId?: string;
493
- /**
494
- * Gets or sets the Modifed By Id.
495
- */
496
- modifiedById?: string;
497
- /**
498
- * Gets or sets the Modifed By Ids.
499
- */
500
- modifiedByIds?: Array<string>;
501
- /**
502
- * Gets or sets the Date Created greater than equal to.
503
- */
504
- dateCreatedGte?: string;
505
- /**
506
- * Gets or sets the Date Created less than equal to.
507
- */
508
- dateCreatedLte?: string;
509
- /**
510
- * Gets or sets the queryable only is live status.
511
- */
512
- isLive?: boolean;
513
- /**
514
- * Gets or sets the sort order direction.
515
- */
516
- sortOrderDirection?: SearchSortOrderDirection;
517
- }): CancelablePromise<Array<SurveyReportExtended>> {
518
- return this.httpRequest.request({
519
- method: 'GET',
520
- url: '/api/survey-extended-report/id-name',
521
- query: {
522
- SurveyId: surveyId,
523
- SlotId: slotId,
524
- OpportunityType: opportunityType,
525
- PageNumber: pageNumber,
526
- Take: take,
527
- LimitListRequests: limitListRequests,
528
- TenantId: tenantId,
529
- ModifiedById: modifiedById,
530
- ModifiedByIds: modifiedByIds,
531
- DateCreatedGTE: dateCreatedGte,
532
- DateCreatedLTE: dateCreatedLte,
533
- IsLive: isLive,
534
- SortOrderDirection: sortOrderDirection,
535
- },
536
- errors: {
537
- 400: `Bad Request`,
538
- 500: `Server Error`,
539
- },
540
- });
541
- }
542
-
543
- /**
544
- * Inserts a list of resources.
545
- * @returns SurveyReportExtended Success
546
- * @throws ApiError
547
- */
548
- public postList({
549
- requestBody,
550
- }: {
551
- /**
552
- * The list of <typeparamref name="TObject" />.
553
- */
554
- requestBody?: Array<SurveyReportExtended>;
555
- }): CancelablePromise<Array<SurveyReportExtended>> {
556
- return this.httpRequest.request({
557
- method: 'POST',
558
- url: '/api/survey-extended-report/list',
559
- body: requestBody,
560
- mediaType: 'application/json',
561
- errors: {
562
- 400: `Bad Request`,
563
- 500: `Server Error`,
564
- },
565
- });
566
- }
567
-
568
- /**
569
- * Patches the resource.
570
- * @returns SurveyReportExtended Success
571
- * @throws ApiError
572
- */
573
- public patchWithReferences({
574
- requestBody,
575
- }: {
576
- /**
577
- * The <typeparamref name="TObject" /> model.
578
- */
579
- requestBody?: SurveyReportExtended;
580
- }): CancelablePromise<SurveyReportExtended> {
581
- return this.httpRequest.request({
582
- method: 'PATCH',
583
- url: '/api/survey-extended-report/with-references',
584
- body: requestBody,
585
- mediaType: 'application/json',
586
- errors: {
587
- 400: `Bad Request`,
588
- 500: `Server Error`,
589
- },
590
- });
591
- }
592
-
593
- /**
594
- * Returns a value indicating whether the resource is deletable.
595
- * @returns boolean Success
596
- * @throws ApiError
597
- */
598
- public canDelete({
599
- id,
600
- }: {
601
- /**
602
- * The <typeparamref name="TObject" /> id.
603
- */
604
- id: string;
605
- }): CancelablePromise<boolean> {
606
- return this.httpRequest.request({
607
- method: 'GET',
608
- url: '/api/survey-extended-report/{id}/deletable',
609
- path: {
610
- id: id,
611
- },
612
- errors: {
613
- 400: `Bad Request`,
614
- 500: `Server Error`,
615
- },
616
- });
617
- }
618
- }
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
5
+ import type { SurveyReportExtended } from '../models/SurveyReportExtended';
6
+ import type { SurveyReportExtendedPage } from '../models/SurveyReportExtendedPage';
7
+
8
+ import type { CancelablePromise } from '../core/CancelablePromise';
9
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
10
+
11
+ export class SurveyReportExtendedService {
12
+ constructor(public readonly httpRequest: BaseHttpRequest) {}
13
+
14
+ /**
15
+ * Exports the venues list to a csv format.
16
+ * Endpoint has AllowAnonymous attr, however the jwt is validated in the method body (in support of authenticated file downloads.
17
+ * @returns any Success
18
+ * @throws ApiError
19
+ */
20
+ public exportToCsv({
21
+ surveyId,
22
+ slotId,
23
+ opportunityType,
24
+ pageNumber,
25
+ take,
26
+ limitListRequests,
27
+ tenantId,
28
+ modifiedById,
29
+ modifiedByIds,
30
+ dateCreatedGte,
31
+ dateCreatedLte,
32
+ isLive,
33
+ sortOrderDirection,
34
+ formData,
35
+ }: {
36
+ /**
37
+ * Gets or sets the Survey Id.
38
+ */
39
+ surveyId?: string;
40
+ /**
41
+ * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
42
+ */
43
+ slotId?: string;
44
+ /**
45
+ * Gets or sets the Opportunity Type.
46
+ */
47
+ opportunityType?: string;
48
+ /**
49
+ * Gets or sets the page number for paged queries.
50
+ */
51
+ pageNumber?: number;
52
+ /**
53
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
54
+ */
55
+ take?: number;
56
+ /**
57
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
58
+ */
59
+ limitListRequests?: boolean;
60
+ /**
61
+ * Gets or sets the Tenant Id.
62
+ */
63
+ tenantId?: string;
64
+ /**
65
+ * Gets or sets the Modifed By Id.
66
+ */
67
+ modifiedById?: string;
68
+ /**
69
+ * Gets or sets the Modifed By Ids.
70
+ */
71
+ modifiedByIds?: Array<string>;
72
+ /**
73
+ * Gets or sets the Date Created greater than equal to.
74
+ */
75
+ dateCreatedGte?: string;
76
+ /**
77
+ * Gets or sets the Date Created less than equal to.
78
+ */
79
+ dateCreatedLte?: string;
80
+ /**
81
+ * Gets or sets the queryable only is live status.
82
+ */
83
+ isLive?: boolean;
84
+ /**
85
+ * Gets or sets the sort order direction.
86
+ */
87
+ sortOrderDirection?: SearchSortOrderDirection;
88
+ formData?: {
89
+ /**
90
+ * Gets or sets the auth token.
91
+ */
92
+ Token?: string;
93
+ };
94
+ }): CancelablePromise<any> {
95
+ return this.httpRequest.request({
96
+ method: 'POST',
97
+ url: '/api/survey-extended-report/export/csv',
98
+ query: {
99
+ SurveyId: surveyId,
100
+ SlotId: slotId,
101
+ OpportunityType: opportunityType,
102
+ PageNumber: pageNumber,
103
+ Take: take,
104
+ LimitListRequests: limitListRequests,
105
+ TenantId: tenantId,
106
+ ModifiedById: modifiedById,
107
+ ModifiedByIds: modifiedByIds,
108
+ DateCreatedGTE: dateCreatedGte,
109
+ DateCreatedLTE: dateCreatedLte,
110
+ IsLive: isLive,
111
+ SortOrderDirection: sortOrderDirection,
112
+ },
113
+ formData: formData,
114
+ mediaType: 'multipart/form-data',
115
+ errors: {
116
+ 400: `Bad Request`,
117
+ 500: `Server Error`,
118
+ },
119
+ });
120
+ }
121
+
122
+ /**
123
+ * Gets the resource by its Id.
124
+ * @returns SurveyReportExtended Success
125
+ * @throws ApiError
126
+ */
127
+ public getObject({
128
+ id,
129
+ }: {
130
+ /**
131
+ * The <typeparamref name="TObject" /> id.
132
+ */
133
+ id: string;
134
+ }): CancelablePromise<SurveyReportExtended> {
135
+ return this.httpRequest.request({
136
+ method: 'GET',
137
+ url: '/api/survey-extended-report/{id}',
138
+ path: {
139
+ id: id,
140
+ },
141
+ errors: {
142
+ 400: `Bad Request`,
143
+ 500: `Server Error`,
144
+ },
145
+ });
146
+ }
147
+
148
+ /**
149
+ * Deletes the resource.
150
+ * @returns any Success
151
+ * @throws ApiError
152
+ */
153
+ public deleteById({
154
+ id,
155
+ }: {
156
+ /**
157
+ * The <typeparamref name="TObject" /> id.
158
+ */
159
+ id: string;
160
+ }): CancelablePromise<any> {
161
+ return this.httpRequest.request({
162
+ method: 'DELETE',
163
+ url: '/api/survey-extended-report/{id}',
164
+ path: {
165
+ id: id,
166
+ },
167
+ errors: {
168
+ 400: `Bad Request`,
169
+ 500: `Server Error`,
170
+ },
171
+ });
172
+ }
173
+
174
+ /**
175
+ * Returns a value indicating whether the resource exists in the database given the provided search params.
176
+ * @returns boolean Success
177
+ * @throws ApiError
178
+ */
179
+ public exists({
180
+ surveyId,
181
+ slotId,
182
+ opportunityType,
183
+ pageNumber,
184
+ take,
185
+ limitListRequests,
186
+ tenantId,
187
+ modifiedById,
188
+ modifiedByIds,
189
+ dateCreatedGte,
190
+ dateCreatedLte,
191
+ isLive,
192
+ sortOrderDirection,
193
+ }: {
194
+ /**
195
+ * Gets or sets the Survey Id.
196
+ */
197
+ surveyId?: string;
198
+ /**
199
+ * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
200
+ */
201
+ slotId?: string;
202
+ /**
203
+ * Gets or sets the Opportunity Type.
204
+ */
205
+ opportunityType?: string;
206
+ /**
207
+ * Gets or sets the page number for paged queries.
208
+ */
209
+ pageNumber?: number;
210
+ /**
211
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
212
+ */
213
+ take?: number;
214
+ /**
215
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
216
+ */
217
+ limitListRequests?: boolean;
218
+ /**
219
+ * Gets or sets the Tenant Id.
220
+ */
221
+ tenantId?: string;
222
+ /**
223
+ * Gets or sets the Modifed By Id.
224
+ */
225
+ modifiedById?: string;
226
+ /**
227
+ * Gets or sets the Modifed By Ids.
228
+ */
229
+ modifiedByIds?: Array<string>;
230
+ /**
231
+ * Gets or sets the Date Created greater than equal to.
232
+ */
233
+ dateCreatedGte?: string;
234
+ /**
235
+ * Gets or sets the Date Created less than equal to.
236
+ */
237
+ dateCreatedLte?: string;
238
+ /**
239
+ * Gets or sets the queryable only is live status.
240
+ */
241
+ isLive?: boolean;
242
+ /**
243
+ * Gets or sets the sort order direction.
244
+ */
245
+ sortOrderDirection?: SearchSortOrderDirection;
246
+ }): CancelablePromise<boolean> {
247
+ return this.httpRequest.request({
248
+ method: 'GET',
249
+ url: '/api/survey-extended-report/exists',
250
+ query: {
251
+ SurveyId: surveyId,
252
+ SlotId: slotId,
253
+ OpportunityType: opportunityType,
254
+ PageNumber: pageNumber,
255
+ Take: take,
256
+ LimitListRequests: limitListRequests,
257
+ TenantId: tenantId,
258
+ ModifiedById: modifiedById,
259
+ ModifiedByIds: modifiedByIds,
260
+ DateCreatedGTE: dateCreatedGte,
261
+ DateCreatedLTE: dateCreatedLte,
262
+ IsLive: isLive,
263
+ SortOrderDirection: sortOrderDirection,
264
+ },
265
+ errors: {
266
+ 400: `Bad Request`,
267
+ 500: `Server Error`,
268
+ },
269
+ });
270
+ }
271
+
272
+ /**
273
+ * Gets a list of resources.
274
+ * @returns SurveyReportExtendedPage Success
275
+ * @throws ApiError
276
+ */
277
+ public getPage({
278
+ surveyId,
279
+ slotId,
280
+ opportunityType,
281
+ pageNumber,
282
+ take,
283
+ limitListRequests,
284
+ tenantId,
285
+ modifiedById,
286
+ modifiedByIds,
287
+ dateCreatedGte,
288
+ dateCreatedLte,
289
+ isLive,
290
+ sortOrderDirection,
291
+ }: {
292
+ /**
293
+ * Gets or sets the Survey Id.
294
+ */
295
+ surveyId?: string;
296
+ /**
297
+ * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
298
+ */
299
+ slotId?: string;
300
+ /**
301
+ * Gets or sets the Opportunity Type.
302
+ */
303
+ opportunityType?: string;
304
+ /**
305
+ * Gets or sets the page number for paged queries.
306
+ */
307
+ pageNumber?: number;
308
+ /**
309
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
310
+ */
311
+ take?: number;
312
+ /**
313
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
314
+ */
315
+ limitListRequests?: boolean;
316
+ /**
317
+ * Gets or sets the Tenant Id.
318
+ */
319
+ tenantId?: string;
320
+ /**
321
+ * Gets or sets the Modifed By Id.
322
+ */
323
+ modifiedById?: string;
324
+ /**
325
+ * Gets or sets the Modifed By Ids.
326
+ */
327
+ modifiedByIds?: Array<string>;
328
+ /**
329
+ * Gets or sets the Date Created greater than equal to.
330
+ */
331
+ dateCreatedGte?: string;
332
+ /**
333
+ * Gets or sets the Date Created less than equal to.
334
+ */
335
+ dateCreatedLte?: string;
336
+ /**
337
+ * Gets or sets the queryable only is live status.
338
+ */
339
+ isLive?: boolean;
340
+ /**
341
+ * Gets or sets the sort order direction.
342
+ */
343
+ sortOrderDirection?: SearchSortOrderDirection;
344
+ }): CancelablePromise<SurveyReportExtendedPage> {
345
+ return this.httpRequest.request({
346
+ method: 'GET',
347
+ url: '/api/survey-extended-report',
348
+ query: {
349
+ SurveyId: surveyId,
350
+ SlotId: slotId,
351
+ OpportunityType: opportunityType,
352
+ PageNumber: pageNumber,
353
+ Take: take,
354
+ LimitListRequests: limitListRequests,
355
+ TenantId: tenantId,
356
+ ModifiedById: modifiedById,
357
+ ModifiedByIds: modifiedByIds,
358
+ DateCreatedGTE: dateCreatedGte,
359
+ DateCreatedLTE: dateCreatedLte,
360
+ IsLive: isLive,
361
+ SortOrderDirection: sortOrderDirection,
362
+ },
363
+ errors: {
364
+ 400: `Bad Request`,
365
+ 500: `Server Error`,
366
+ },
367
+ });
368
+ }
369
+
370
+ /**
371
+ * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
372
+ * @returns SurveyReportExtended Success
373
+ * @throws ApiError
374
+ */
375
+ public post({
376
+ requestBody,
377
+ }: {
378
+ /**
379
+ * The <typeparamref name="TObject" /> model.
380
+ */
381
+ requestBody?: SurveyReportExtended;
382
+ }): CancelablePromise<SurveyReportExtended> {
383
+ return this.httpRequest.request({
384
+ method: 'POST',
385
+ url: '/api/survey-extended-report',
386
+ body: requestBody,
387
+ mediaType: 'application/json',
388
+ errors: {
389
+ 400: `Bad Request`,
390
+ 500: `Server Error`,
391
+ },
392
+ });
393
+ }
394
+
395
+ /**
396
+ * Patches the resource.
397
+ * @returns SurveyReportExtended Success
398
+ * @throws ApiError
399
+ */
400
+ public patch({
401
+ requestBody,
402
+ }: {
403
+ /**
404
+ * The <typeparamref name="TObject" /> model.
405
+ */
406
+ requestBody?: SurveyReportExtended;
407
+ }): CancelablePromise<SurveyReportExtended> {
408
+ return this.httpRequest.request({
409
+ method: 'PATCH',
410
+ url: '/api/survey-extended-report',
411
+ body: requestBody,
412
+ mediaType: 'application/json',
413
+ errors: {
414
+ 400: `Bad Request`,
415
+ 500: `Server Error`,
416
+ },
417
+ });
418
+ }
419
+
420
+ /**
421
+ * Deletes the resource.
422
+ * @returns any Success
423
+ * @throws ApiError
424
+ */
425
+ public deleteByObject({
426
+ requestBody,
427
+ }: {
428
+ /**
429
+ * The <typeparamref name="TObject" /> model.
430
+ */
431
+ requestBody?: SurveyReportExtended;
432
+ }): CancelablePromise<any> {
433
+ return this.httpRequest.request({
434
+ method: 'DELETE',
435
+ url: '/api/survey-extended-report',
436
+ body: requestBody,
437
+ mediaType: 'application/json',
438
+ errors: {
439
+ 400: `Bad Request`,
440
+ 500: `Server Error`,
441
+ },
442
+ });
443
+ }
444
+
445
+ /**
446
+ * Gets a list of resources.
447
+ * @returns SurveyReportExtended Success
448
+ * @throws ApiError
449
+ */
450
+ public getListIdName({
451
+ surveyId,
452
+ slotId,
453
+ opportunityType,
454
+ pageNumber,
455
+ take,
456
+ limitListRequests,
457
+ tenantId,
458
+ modifiedById,
459
+ modifiedByIds,
460
+ dateCreatedGte,
461
+ dateCreatedLte,
462
+ isLive,
463
+ sortOrderDirection,
464
+ }: {
465
+ /**
466
+ * Gets or sets the Survey Id.
467
+ */
468
+ surveyId?: string;
469
+ /**
470
+ * Gets or sets the Slot Id/Scheduled Session Id/Course Id.
471
+ */
472
+ slotId?: string;
473
+ /**
474
+ * Gets or sets the Opportunity Type.
475
+ */
476
+ opportunityType?: string;
477
+ /**
478
+ * Gets or sets the page number for paged queries.
479
+ */
480
+ pageNumber?: number;
481
+ /**
482
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
483
+ */
484
+ take?: number;
485
+ /**
486
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
487
+ */
488
+ limitListRequests?: boolean;
489
+ /**
490
+ * Gets or sets the Tenant Id.
491
+ */
492
+ tenantId?: string;
493
+ /**
494
+ * Gets or sets the Modifed By Id.
495
+ */
496
+ modifiedById?: string;
497
+ /**
498
+ * Gets or sets the Modifed By Ids.
499
+ */
500
+ modifiedByIds?: Array<string>;
501
+ /**
502
+ * Gets or sets the Date Created greater than equal to.
503
+ */
504
+ dateCreatedGte?: string;
505
+ /**
506
+ * Gets or sets the Date Created less than equal to.
507
+ */
508
+ dateCreatedLte?: string;
509
+ /**
510
+ * Gets or sets the queryable only is live status.
511
+ */
512
+ isLive?: boolean;
513
+ /**
514
+ * Gets or sets the sort order direction.
515
+ */
516
+ sortOrderDirection?: SearchSortOrderDirection;
517
+ }): CancelablePromise<Array<SurveyReportExtended>> {
518
+ return this.httpRequest.request({
519
+ method: 'GET',
520
+ url: '/api/survey-extended-report/id-name',
521
+ query: {
522
+ SurveyId: surveyId,
523
+ SlotId: slotId,
524
+ OpportunityType: opportunityType,
525
+ PageNumber: pageNumber,
526
+ Take: take,
527
+ LimitListRequests: limitListRequests,
528
+ TenantId: tenantId,
529
+ ModifiedById: modifiedById,
530
+ ModifiedByIds: modifiedByIds,
531
+ DateCreatedGTE: dateCreatedGte,
532
+ DateCreatedLTE: dateCreatedLte,
533
+ IsLive: isLive,
534
+ SortOrderDirection: sortOrderDirection,
535
+ },
536
+ errors: {
537
+ 400: `Bad Request`,
538
+ 500: `Server Error`,
539
+ },
540
+ });
541
+ }
542
+
543
+ /**
544
+ * Inserts a list of resources.
545
+ * @returns SurveyReportExtended Success
546
+ * @throws ApiError
547
+ */
548
+ public postList({
549
+ requestBody,
550
+ }: {
551
+ /**
552
+ * The list of <typeparamref name="TObject" />.
553
+ */
554
+ requestBody?: Array<SurveyReportExtended>;
555
+ }): CancelablePromise<Array<SurveyReportExtended>> {
556
+ return this.httpRequest.request({
557
+ method: 'POST',
558
+ url: '/api/survey-extended-report/list',
559
+ body: requestBody,
560
+ mediaType: 'application/json',
561
+ errors: {
562
+ 400: `Bad Request`,
563
+ 500: `Server Error`,
564
+ },
565
+ });
566
+ }
567
+
568
+ /**
569
+ * Patches the resource.
570
+ * @returns SurveyReportExtended Success
571
+ * @throws ApiError
572
+ */
573
+ public patchWithReferences({
574
+ requestBody,
575
+ }: {
576
+ /**
577
+ * The <typeparamref name="TObject" /> model.
578
+ */
579
+ requestBody?: SurveyReportExtended;
580
+ }): CancelablePromise<SurveyReportExtended> {
581
+ return this.httpRequest.request({
582
+ method: 'PATCH',
583
+ url: '/api/survey-extended-report/with-references',
584
+ body: requestBody,
585
+ mediaType: 'application/json',
586
+ errors: {
587
+ 400: `Bad Request`,
588
+ 500: `Server Error`,
589
+ },
590
+ });
591
+ }
592
+
593
+ /**
594
+ * Returns a value indicating whether the resource is deletable.
595
+ * @returns boolean Success
596
+ * @throws ApiError
597
+ */
598
+ public canDelete({
599
+ id,
600
+ }: {
601
+ /**
602
+ * The <typeparamref name="TObject" /> id.
603
+ */
604
+ id: string;
605
+ }): CancelablePromise<boolean> {
606
+ return this.httpRequest.request({
607
+ method: 'GET',
608
+ url: '/api/survey-extended-report/{id}/deletable',
609
+ path: {
610
+ id: id,
611
+ },
612
+ errors: {
613
+ 400: `Bad Request`,
614
+ 500: `Server Error`,
615
+ },
616
+ });
617
+ }
618
+ }