reach-api-sdk 1.0.201 → 1.0.203

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