reach-api-sdk 1.0.217 → 1.0.218

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.
@@ -27,6 +27,7 @@ export class PublicOrderItemsService {
27
27
  scheduledSessionId,
28
28
  slotId,
29
29
  courseId,
30
+ sellableItemId,
30
31
  offerId,
31
32
  status,
32
33
  statuses,
@@ -67,6 +68,10 @@ export class PublicOrderItemsService {
67
68
  * Gets or sets the queryable course id.
68
69
  */
69
70
  courseId?: string;
71
+ /**
72
+ * Gets or sets the queryable sellable item id.
73
+ */
74
+ sellableItemId?: string;
70
75
  /**
71
76
  * Gets or sets the queryable offer id.
72
77
  */
@@ -152,6 +157,7 @@ export class PublicOrderItemsService {
152
157
  ScheduledSessionId: scheduledSessionId,
153
158
  SlotId: slotId,
154
159
  CourseId: courseId,
160
+ SellableItemId: sellableItemId,
155
161
  OfferId: offerId,
156
162
  Status: status,
157
163
  Statuses: statuses,
@@ -438,6 +444,7 @@ export class PublicOrderItemsService {
438
444
  scheduledSessionId,
439
445
  slotId,
440
446
  courseId,
447
+ sellableItemId,
441
448
  offerId,
442
449
  status,
443
450
  statuses,
@@ -481,6 +488,10 @@ export class PublicOrderItemsService {
481
488
  * Gets or sets the queryable course id.
482
489
  */
483
490
  courseId?: string;
491
+ /**
492
+ * Gets or sets the queryable sellable item id.
493
+ */
494
+ sellableItemId?: string;
484
495
  /**
485
496
  * Gets or sets the queryable offer id.
486
497
  */
@@ -566,6 +577,7 @@ export class PublicOrderItemsService {
566
577
  ScheduledSessionId: scheduledSessionId,
567
578
  SlotId: slotId,
568
579
  CourseId: courseId,
580
+ SellableItemId: sellableItemId,
569
581
  OfferId: offerId,
570
582
  Status: status,
571
583
  Statuses: statuses,
@@ -0,0 +1,473 @@
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 { SellableItem } from '../models/SellableItem';
7
+ import type { SellableItemPage } from '../models/SellableItemPage';
8
+ import type { SellableItemPatch } from '../models/SellableItemPatch';
9
+ import type { SellableItemPost } from '../models/SellableItemPost';
10
+
11
+ import type { CancelablePromise } from '../core/CancelablePromise';
12
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
13
+
14
+ export class PublicSellableItemsService {
15
+ constructor(public readonly httpRequest: BaseHttpRequest) {}
16
+
17
+ /**
18
+ * @returns SellableItem OK
19
+ * @throws ApiError
20
+ */
21
+ public getObject({
22
+ id,
23
+ xTenantSubdomain,
24
+ }: {
25
+ id: string;
26
+ xTenantSubdomain?: string;
27
+ }): CancelablePromise<SellableItem> {
28
+ return this.httpRequest.request({
29
+ method: 'GET',
30
+ url: '/api/public/sellable-items/{id}',
31
+ path: {
32
+ id: id,
33
+ },
34
+ headers: {
35
+ x_tenant_subdomain: xTenantSubdomain,
36
+ },
37
+ errors: {
38
+ 400: `Bad Request`,
39
+ 422: `Unprocessable Content`,
40
+ 500: `Internal Server Error`,
41
+ },
42
+ });
43
+ }
44
+
45
+ /**
46
+ * Deletes the resource.
47
+ * @returns any OK
48
+ * @throws ApiError
49
+ */
50
+ public deleteById({
51
+ id,
52
+ xTenantSubdomain,
53
+ }: {
54
+ /**
55
+ * The <typeparamref name="TObject" /> id.
56
+ */
57
+ id: string;
58
+ /**
59
+ * The tenants subdomain.
60
+ */
61
+ xTenantSubdomain?: string;
62
+ }): CancelablePromise<any> {
63
+ return this.httpRequest.request({
64
+ method: 'DELETE',
65
+ url: '/api/public/sellable-items/{id}',
66
+ path: {
67
+ id: id,
68
+ },
69
+ headers: {
70
+ x_tenant_subdomain: xTenantSubdomain,
71
+ },
72
+ errors: {
73
+ 400: `Bad Request`,
74
+ 422: `Unprocessable Content`,
75
+ 500: `Internal Server Error`,
76
+ },
77
+ });
78
+ }
79
+
80
+ /**
81
+ * @returns SellableItemPage OK
82
+ * @throws ApiError
83
+ */
84
+ public getPage({
85
+ xTenantSubdomain,
86
+ ids,
87
+ venueId,
88
+ online,
89
+ archived,
90
+ deleted,
91
+ dashboardRequest,
92
+ pageNumber,
93
+ take,
94
+ skip,
95
+ limitListRequests,
96
+ tenantId,
97
+ modifiedById,
98
+ modifiedByIds,
99
+ dateCreatedGte,
100
+ dateCreatedLte,
101
+ isLive,
102
+ sortOrderDirection,
103
+ }: {
104
+ xTenantSubdomain?: string;
105
+ /**
106
+ * Gets or sets the queryable ids.
107
+ */
108
+ ids?: Array<string>;
109
+ /**
110
+ * Gets or sets the queryable Venue Id.
111
+ */
112
+ venueId?: string;
113
+ /**
114
+ * Gets or sets a value indicating whether return online items.
115
+ */
116
+ online?: boolean;
117
+ /**
118
+ * Gets or sets a value indicating whether to include archived items.
119
+ */
120
+ archived?: boolean;
121
+ /**
122
+ * Gets or sets a value indicating whether to include deleted items.
123
+ */
124
+ deleted?: boolean;
125
+ /**
126
+ * Gets or sets a value indicating this is a request from the partner dashboard.
127
+ */
128
+ dashboardRequest?: boolean;
129
+ /**
130
+ * Gets or sets the page number for paged queries.
131
+ */
132
+ pageNumber?: number;
133
+ /**
134
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
135
+ */
136
+ take?: number;
137
+ /**
138
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
139
+ */
140
+ skip?: number;
141
+ /**
142
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
143
+ */
144
+ limitListRequests?: boolean;
145
+ /**
146
+ * Gets or sets the Tenant Id.
147
+ */
148
+ tenantId?: string;
149
+ /**
150
+ * Gets or sets the Modifed By Id.
151
+ */
152
+ modifiedById?: string;
153
+ /**
154
+ * Gets or sets the Modifed By Ids.
155
+ */
156
+ modifiedByIds?: Array<string>;
157
+ /**
158
+ * Gets or sets the Date Created greater than equal to.
159
+ */
160
+ dateCreatedGte?: string;
161
+ /**
162
+ * Gets or sets the Date Created less than equal to.
163
+ */
164
+ dateCreatedLte?: string;
165
+ /**
166
+ * Gets or sets the queryable only is live status.
167
+ */
168
+ isLive?: boolean;
169
+ /**
170
+ * Gets or sets the sort order direction.
171
+ */
172
+ sortOrderDirection?: SearchSortOrderDirection;
173
+ }): CancelablePromise<SellableItemPage> {
174
+ return this.httpRequest.request({
175
+ method: 'GET',
176
+ url: '/api/public/sellable-items',
177
+ headers: {
178
+ x_tenant_subdomain: xTenantSubdomain,
179
+ },
180
+ query: {
181
+ Ids: ids,
182
+ VenueId: venueId,
183
+ Online: online,
184
+ Archived: archived,
185
+ Deleted: deleted,
186
+ DashboardRequest: dashboardRequest,
187
+ PageNumber: pageNumber,
188
+ Take: take,
189
+ Skip: skip,
190
+ LimitListRequests: limitListRequests,
191
+ TenantId: tenantId,
192
+ ModifiedById: modifiedById,
193
+ ModifiedByIds: modifiedByIds,
194
+ DateCreatedGTE: dateCreatedGte,
195
+ DateCreatedLTE: dateCreatedLte,
196
+ IsLive: isLive,
197
+ SortOrderDirection: sortOrderDirection,
198
+ },
199
+ errors: {
200
+ 400: `Bad Request`,
201
+ 422: `Unprocessable Content`,
202
+ 500: `Internal Server Error`,
203
+ },
204
+ });
205
+ }
206
+
207
+ /**
208
+ * Deletes the resource.
209
+ * @returns any OK
210
+ * @throws ApiError
211
+ */
212
+ public deleteByObject({
213
+ xTenantSubdomain,
214
+ requestBody,
215
+ }: {
216
+ /**
217
+ * The tenants subdomain.
218
+ */
219
+ xTenantSubdomain?: string;
220
+ /**
221
+ * The <typeparamref name="TObject" /> model.
222
+ */
223
+ requestBody?: SellableItem;
224
+ }): CancelablePromise<any> {
225
+ return this.httpRequest.request({
226
+ method: 'DELETE',
227
+ url: '/api/public/sellable-items',
228
+ headers: {
229
+ x_tenant_subdomain: xTenantSubdomain,
230
+ },
231
+ body: requestBody,
232
+ mediaType: 'application/json',
233
+ errors: {
234
+ 400: `Bad Request`,
235
+ 422: `Unprocessable Content`,
236
+ 500: `Internal Server Error`,
237
+ },
238
+ });
239
+ }
240
+
241
+ /**
242
+ * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
243
+ * @returns SellableItem OK
244
+ * @throws ApiError
245
+ */
246
+ public post({
247
+ xTenantSubdomain,
248
+ requestBody,
249
+ }: {
250
+ /**
251
+ * The tenants subdomain.
252
+ */
253
+ xTenantSubdomain?: string;
254
+ /**
255
+ * The <typeparamref name="TObject" /> model.
256
+ */
257
+ requestBody?: SellableItemPost;
258
+ }): CancelablePromise<SellableItem> {
259
+ return this.httpRequest.request({
260
+ method: 'POST',
261
+ url: '/api/public/sellable-items/v2-temporary-route',
262
+ headers: {
263
+ x_tenant_subdomain: xTenantSubdomain,
264
+ },
265
+ body: requestBody,
266
+ mediaType: 'application/json',
267
+ errors: {
268
+ 400: `Bad Request`,
269
+ 422: `Unprocessable Content`,
270
+ 500: `Internal Server Error`,
271
+ },
272
+ });
273
+ }
274
+
275
+ /**
276
+ * Patches the resource.
277
+ * @returns SellableItem OK
278
+ * @throws ApiError
279
+ */
280
+ public patch({
281
+ xTenantSubdomain,
282
+ requestBody,
283
+ }: {
284
+ /**
285
+ * The tenants subdomain.
286
+ */
287
+ xTenantSubdomain?: string;
288
+ /**
289
+ * The <typeparamref name="TObject" /> model.
290
+ */
291
+ requestBody?: SellableItemPatch;
292
+ }): CancelablePromise<SellableItem> {
293
+ return this.httpRequest.request({
294
+ method: 'PATCH',
295
+ url: '/api/public/sellable-items/v2-temporary-route',
296
+ headers: {
297
+ x_tenant_subdomain: xTenantSubdomain,
298
+ },
299
+ body: requestBody,
300
+ mediaType: 'application/json',
301
+ errors: {
302
+ 400: `Bad Request`,
303
+ 422: `Unprocessable Content`,
304
+ 500: `Internal Server Error`,
305
+ },
306
+ });
307
+ }
308
+
309
+ /**
310
+ * Inserts a list of resources.
311
+ * @returns SellableItem OK
312
+ * @throws ApiError
313
+ */
314
+ public postList({
315
+ xTenantSubdomain,
316
+ requestBody,
317
+ }: {
318
+ /**
319
+ * The tenants subdomain.
320
+ */
321
+ xTenantSubdomain?: string;
322
+ /**
323
+ * The list of <typeparamref name="TObject" />.
324
+ */
325
+ requestBody?: Array<SellableItemPost>;
326
+ }): CancelablePromise<Array<SellableItem>> {
327
+ return this.httpRequest.request({
328
+ method: 'POST',
329
+ url: '/api/public/sellable-items/v2-temporary-route/list',
330
+ headers: {
331
+ x_tenant_subdomain: xTenantSubdomain,
332
+ },
333
+ body: requestBody,
334
+ mediaType: 'application/json',
335
+ errors: {
336
+ 400: `Bad Request`,
337
+ 422: `Unprocessable Content`,
338
+ 500: `Internal Server Error`,
339
+ },
340
+ });
341
+ }
342
+
343
+ /**
344
+ * Returns a value indicating whether the resource exists in the database given the provided search params.
345
+ * @returns boolean OK
346
+ * @throws ApiError
347
+ */
348
+ public exists({
349
+ xTenantSubdomain,
350
+ ids,
351
+ venueId,
352
+ online,
353
+ archived,
354
+ deleted,
355
+ dashboardRequest,
356
+ pageNumber,
357
+ take,
358
+ skip,
359
+ limitListRequests,
360
+ tenantId,
361
+ modifiedById,
362
+ modifiedByIds,
363
+ dateCreatedGte,
364
+ dateCreatedLte,
365
+ isLive,
366
+ sortOrderDirection,
367
+ }: {
368
+ /**
369
+ * The tenants subdomain.
370
+ */
371
+ xTenantSubdomain?: string;
372
+ /**
373
+ * Gets or sets the queryable ids.
374
+ */
375
+ ids?: Array<string>;
376
+ /**
377
+ * Gets or sets the queryable Venue Id.
378
+ */
379
+ venueId?: string;
380
+ /**
381
+ * Gets or sets a value indicating whether return online items.
382
+ */
383
+ online?: boolean;
384
+ /**
385
+ * Gets or sets a value indicating whether to include archived items.
386
+ */
387
+ archived?: boolean;
388
+ /**
389
+ * Gets or sets a value indicating whether to include deleted items.
390
+ */
391
+ deleted?: boolean;
392
+ /**
393
+ * Gets or sets a value indicating this is a request from the partner dashboard.
394
+ */
395
+ dashboardRequest?: boolean;
396
+ /**
397
+ * Gets or sets the page number for paged queries.
398
+ */
399
+ pageNumber?: number;
400
+ /**
401
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
402
+ */
403
+ take?: number;
404
+ /**
405
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
406
+ */
407
+ skip?: number;
408
+ /**
409
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
410
+ */
411
+ limitListRequests?: boolean;
412
+ /**
413
+ * Gets or sets the Tenant Id.
414
+ */
415
+ tenantId?: string;
416
+ /**
417
+ * Gets or sets the Modifed By Id.
418
+ */
419
+ modifiedById?: string;
420
+ /**
421
+ * Gets or sets the Modifed By Ids.
422
+ */
423
+ modifiedByIds?: Array<string>;
424
+ /**
425
+ * Gets or sets the Date Created greater than equal to.
426
+ */
427
+ dateCreatedGte?: string;
428
+ /**
429
+ * Gets or sets the Date Created less than equal to.
430
+ */
431
+ dateCreatedLte?: string;
432
+ /**
433
+ * Gets or sets the queryable only is live status.
434
+ */
435
+ isLive?: boolean;
436
+ /**
437
+ * Gets or sets the sort order direction.
438
+ */
439
+ sortOrderDirection?: SearchSortOrderDirection;
440
+ }): CancelablePromise<boolean> {
441
+ return this.httpRequest.request({
442
+ method: 'GET',
443
+ url: '/api/public/sellable-items/exists',
444
+ headers: {
445
+ x_tenant_subdomain: xTenantSubdomain,
446
+ },
447
+ query: {
448
+ Ids: ids,
449
+ VenueId: venueId,
450
+ Online: online,
451
+ Archived: archived,
452
+ Deleted: deleted,
453
+ DashboardRequest: dashboardRequest,
454
+ PageNumber: pageNumber,
455
+ Take: take,
456
+ Skip: skip,
457
+ LimitListRequests: limitListRequests,
458
+ TenantId: tenantId,
459
+ ModifiedById: modifiedById,
460
+ ModifiedByIds: modifiedByIds,
461
+ DateCreatedGTE: dateCreatedGte,
462
+ DateCreatedLTE: dateCreatedLte,
463
+ IsLive: isLive,
464
+ SortOrderDirection: sortOrderDirection,
465
+ },
466
+ errors: {
467
+ 400: `Bad Request`,
468
+ 422: `Unprocessable Content`,
469
+ 500: `Internal Server Error`,
470
+ },
471
+ });
472
+ }
473
+ }