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.
@@ -0,0 +1,962 @@
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 SellableItemsService {
15
+ constructor(public readonly httpRequest: BaseHttpRequest) {}
16
+
17
+ /**
18
+ * Assigns a deal to a sellable item.
19
+ * @returns SellableItem OK
20
+ * @throws ApiError
21
+ */
22
+ public assignDeal({
23
+ sellableItemId,
24
+ dealId,
25
+ }: {
26
+ /**
27
+ * The sellable item id.
28
+ */
29
+ sellableItemId: string;
30
+ /**
31
+ * The deal id.
32
+ */
33
+ dealId: string;
34
+ }): CancelablePromise<SellableItem> {
35
+ return this.httpRequest.request({
36
+ method: 'PATCH',
37
+ url: '/api/sellable-items/{sellableItemId}/assign-deal/{dealId}',
38
+ path: {
39
+ sellableItemId: sellableItemId,
40
+ dealId: dealId,
41
+ },
42
+ errors: {
43
+ 400: `Bad Request`,
44
+ 422: `Unprocessable Content`,
45
+ 500: `Internal Server Error`,
46
+ },
47
+ });
48
+ }
49
+
50
+ /**
51
+ * Unassigns a deal from a sellable item.
52
+ * @returns SellableItem OK
53
+ * @throws ApiError
54
+ */
55
+ public unassignDeal({
56
+ sellableItemId,
57
+ dealId,
58
+ }: {
59
+ /**
60
+ * The sellable item id.
61
+ */
62
+ sellableItemId: string;
63
+ /**
64
+ * The deal id.
65
+ */
66
+ dealId: string;
67
+ }): CancelablePromise<SellableItem> {
68
+ return this.httpRequest.request({
69
+ method: 'PATCH',
70
+ url: '/api/sellable-items/{sellableItemId}/unassign-deal/{dealId}',
71
+ path: {
72
+ sellableItemId: sellableItemId,
73
+ dealId: dealId,
74
+ },
75
+ errors: {
76
+ 400: `Bad Request`,
77
+ 422: `Unprocessable Content`,
78
+ 500: `Internal Server Error`,
79
+ },
80
+ });
81
+ }
82
+
83
+ /**
84
+ * Takes the sellable item offline (not published on the storefront).
85
+ * @returns SellableItem OK
86
+ * @throws ApiError
87
+ */
88
+ public takeOffline({
89
+ sellableItemId,
90
+ }: {
91
+ /**
92
+ * The sellable item id.
93
+ */
94
+ sellableItemId: string;
95
+ }): CancelablePromise<SellableItem> {
96
+ return this.httpRequest.request({
97
+ method: 'PATCH',
98
+ url: '/api/sellable-items/{sellableItemId}/take-offline',
99
+ path: {
100
+ sellableItemId: sellableItemId,
101
+ },
102
+ errors: {
103
+ 400: `Bad Request`,
104
+ 422: `Unprocessable Content`,
105
+ 500: `Internal Server Error`,
106
+ },
107
+ });
108
+ }
109
+
110
+ /**
111
+ * Brings the sellable item online on the storefront.
112
+ * @returns SellableItem OK
113
+ * @throws ApiError
114
+ */
115
+ public bringOnline({
116
+ sellableItemId,
117
+ }: {
118
+ /**
119
+ * The sellable item id.
120
+ */
121
+ sellableItemId: string;
122
+ }): CancelablePromise<SellableItem> {
123
+ return this.httpRequest.request({
124
+ method: 'PATCH',
125
+ url: '/api/sellable-items/{sellableItemId}/bring-online',
126
+ path: {
127
+ sellableItemId: sellableItemId,
128
+ },
129
+ errors: {
130
+ 400: `Bad Request`,
131
+ 422: `Unprocessable Content`,
132
+ 500: `Internal Server Error`,
133
+ },
134
+ });
135
+ }
136
+
137
+ /**
138
+ * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
139
+ * @returns SellableItem OK
140
+ * @throws ApiError
141
+ */
142
+ public post({
143
+ requestBody,
144
+ }: {
145
+ /**
146
+ * The <typeparamref name="TObject" /> model.
147
+ */
148
+ requestBody?: SellableItemPost;
149
+ }): CancelablePromise<SellableItem> {
150
+ return this.httpRequest.request({
151
+ method: 'POST',
152
+ url: '/api/sellable-items/v2-temporary-route',
153
+ body: requestBody,
154
+ mediaType: 'application/json',
155
+ errors: {
156
+ 400: `Bad Request`,
157
+ 422: `Unprocessable Content`,
158
+ 500: `Internal Server Error`,
159
+ },
160
+ });
161
+ }
162
+
163
+ /**
164
+ * Patches the resource.
165
+ * @returns SellableItem OK
166
+ * @throws ApiError
167
+ */
168
+ public patch({
169
+ requestBody,
170
+ }: {
171
+ /**
172
+ * The <typeparamref name="TObject" /> model.
173
+ */
174
+ requestBody?: SellableItemPatch;
175
+ }): CancelablePromise<SellableItem> {
176
+ return this.httpRequest.request({
177
+ method: 'PATCH',
178
+ url: '/api/sellable-items/v2-temporary-route',
179
+ body: requestBody,
180
+ mediaType: 'application/json',
181
+ errors: {
182
+ 400: `Bad Request`,
183
+ 422: `Unprocessable Content`,
184
+ 500: `Internal Server Error`,
185
+ },
186
+ });
187
+ }
188
+
189
+ /**
190
+ * Inserts a list of resources.
191
+ * @returns SellableItem OK
192
+ * @throws ApiError
193
+ */
194
+ public postList({
195
+ requestBody,
196
+ }: {
197
+ /**
198
+ * The list of <typeparamref name="TObject" />.
199
+ */
200
+ requestBody?: Array<SellableItemPost>;
201
+ }): CancelablePromise<Array<SellableItem>> {
202
+ return this.httpRequest.request({
203
+ method: 'POST',
204
+ url: '/api/sellable-items/v2-temporary-route/list',
205
+ body: requestBody,
206
+ mediaType: 'application/json',
207
+ errors: {
208
+ 400: `Bad Request`,
209
+ 422: `Unprocessable Content`,
210
+ 500: `Internal Server Error`,
211
+ },
212
+ });
213
+ }
214
+
215
+ /**
216
+ * Patches the resource.
217
+ * @returns SellableItem OK
218
+ * @throws ApiError
219
+ */
220
+ public patchWithReferences({
221
+ requestBody,
222
+ }: {
223
+ /**
224
+ * The <typeparamref name="TObject" /> model.
225
+ */
226
+ requestBody?: SellableItemPatch;
227
+ }): CancelablePromise<SellableItem> {
228
+ return this.httpRequest.request({
229
+ method: 'PATCH',
230
+ url: '/api/sellable-items/v2-temporary-route/with-references',
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
+ * Deletes the resource.
243
+ * @returns any OK
244
+ * @throws ApiError
245
+ */
246
+ public deleteByObject({
247
+ requestBody,
248
+ }: {
249
+ /**
250
+ * The <typeparamref name="TObject" /> model.
251
+ */
252
+ requestBody?: SellableItem;
253
+ }): CancelablePromise<any> {
254
+ return this.httpRequest.request({
255
+ method: 'DELETE',
256
+ url: '/api/sellable-items',
257
+ body: requestBody,
258
+ mediaType: 'application/json',
259
+ errors: {
260
+ 400: `Bad Request`,
261
+ 422: `Unprocessable Content`,
262
+ 500: `Internal Server Error`,
263
+ },
264
+ });
265
+ }
266
+
267
+ /**
268
+ * Gets a list of resources.
269
+ * @returns SellableItemPage OK
270
+ * @throws ApiError
271
+ */
272
+ public getPage({
273
+ ids,
274
+ venueId,
275
+ online,
276
+ archived,
277
+ deleted,
278
+ dashboardRequest,
279
+ pageNumber,
280
+ take,
281
+ skip,
282
+ limitListRequests,
283
+ tenantId,
284
+ modifiedById,
285
+ modifiedByIds,
286
+ dateCreatedGte,
287
+ dateCreatedLte,
288
+ isLive,
289
+ sortOrderDirection,
290
+ }: {
291
+ /**
292
+ * Gets or sets the queryable ids.
293
+ */
294
+ ids?: Array<string>;
295
+ /**
296
+ * Gets or sets the queryable Venue Id.
297
+ */
298
+ venueId?: string;
299
+ /**
300
+ * Gets or sets a value indicating whether return online items.
301
+ */
302
+ online?: boolean;
303
+ /**
304
+ * Gets or sets a value indicating whether to include archived items.
305
+ */
306
+ archived?: boolean;
307
+ /**
308
+ * Gets or sets a value indicating whether to include deleted items.
309
+ */
310
+ deleted?: boolean;
311
+ /**
312
+ * Gets or sets a value indicating this is a request from the partner dashboard.
313
+ */
314
+ dashboardRequest?: boolean;
315
+ /**
316
+ * Gets or sets the page number for paged queries.
317
+ */
318
+ pageNumber?: number;
319
+ /**
320
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
321
+ */
322
+ take?: number;
323
+ /**
324
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
325
+ */
326
+ skip?: number;
327
+ /**
328
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
329
+ */
330
+ limitListRequests?: boolean;
331
+ /**
332
+ * Gets or sets the Tenant Id.
333
+ */
334
+ tenantId?: string;
335
+ /**
336
+ * Gets or sets the Modifed By Id.
337
+ */
338
+ modifiedById?: string;
339
+ /**
340
+ * Gets or sets the Modifed By Ids.
341
+ */
342
+ modifiedByIds?: Array<string>;
343
+ /**
344
+ * Gets or sets the Date Created greater than equal to.
345
+ */
346
+ dateCreatedGte?: string;
347
+ /**
348
+ * Gets or sets the Date Created less than equal to.
349
+ */
350
+ dateCreatedLte?: string;
351
+ /**
352
+ * Gets or sets the queryable only is live status.
353
+ */
354
+ isLive?: boolean;
355
+ /**
356
+ * Gets or sets the sort order direction.
357
+ */
358
+ sortOrderDirection?: SearchSortOrderDirection;
359
+ }): CancelablePromise<SellableItemPage> {
360
+ return this.httpRequest.request({
361
+ method: 'GET',
362
+ url: '/api/sellable-items',
363
+ query: {
364
+ Ids: ids,
365
+ VenueId: venueId,
366
+ Online: online,
367
+ Archived: archived,
368
+ Deleted: deleted,
369
+ DashboardRequest: dashboardRequest,
370
+ PageNumber: pageNumber,
371
+ Take: take,
372
+ Skip: skip,
373
+ LimitListRequests: limitListRequests,
374
+ TenantId: tenantId,
375
+ ModifiedById: modifiedById,
376
+ ModifiedByIds: modifiedByIds,
377
+ DateCreatedGTE: dateCreatedGte,
378
+ DateCreatedLTE: dateCreatedLte,
379
+ IsLive: isLive,
380
+ SortOrderDirection: sortOrderDirection,
381
+ },
382
+ errors: {
383
+ 400: `Bad Request`,
384
+ 422: `Unprocessable Content`,
385
+ 500: `Internal Server Error`,
386
+ },
387
+ });
388
+ }
389
+
390
+ /**
391
+ * Deletes the resource.
392
+ * @returns any OK
393
+ * @throws ApiError
394
+ */
395
+ public deleteById({
396
+ id,
397
+ }: {
398
+ /**
399
+ * The <typeparamref name="TObject" /> id.
400
+ */
401
+ id: string;
402
+ }): CancelablePromise<any> {
403
+ return this.httpRequest.request({
404
+ method: 'DELETE',
405
+ url: '/api/sellable-items/{id}',
406
+ path: {
407
+ id: id,
408
+ },
409
+ errors: {
410
+ 400: `Bad Request`,
411
+ 422: `Unprocessable Content`,
412
+ 500: `Internal Server Error`,
413
+ },
414
+ });
415
+ }
416
+
417
+ /**
418
+ * Gets the resource by its Id.
419
+ * @returns SellableItem OK
420
+ * @throws ApiError
421
+ */
422
+ public getObject({
423
+ id,
424
+ }: {
425
+ /**
426
+ * The <typeparamref name="TObject" /> id.
427
+ */
428
+ id: string;
429
+ }): CancelablePromise<SellableItem> {
430
+ return this.httpRequest.request({
431
+ method: 'GET',
432
+ url: '/api/sellable-items/{id}',
433
+ path: {
434
+ id: id,
435
+ },
436
+ errors: {
437
+ 400: `Bad Request`,
438
+ 422: `Unprocessable Content`,
439
+ 500: `Internal Server Error`,
440
+ },
441
+ });
442
+ }
443
+
444
+ /**
445
+ * Returns a value indicating whether the resource is deletable.
446
+ * @returns boolean OK
447
+ * @throws ApiError
448
+ */
449
+ public canDelete({
450
+ id,
451
+ }: {
452
+ /**
453
+ * The <typeparamref name="TObject" /> id.
454
+ */
455
+ id: string;
456
+ }): CancelablePromise<boolean> {
457
+ return this.httpRequest.request({
458
+ method: 'GET',
459
+ url: '/api/sellable-items/{id}/deletable',
460
+ path: {
461
+ id: id,
462
+ },
463
+ errors: {
464
+ 400: `Bad Request`,
465
+ 422: `Unprocessable Content`,
466
+ 500: `Internal Server Error`,
467
+ },
468
+ });
469
+ }
470
+
471
+ /**
472
+ * Returns a value indicating whether the resource exists in the database given the provided search params.
473
+ * @returns boolean OK
474
+ * @throws ApiError
475
+ */
476
+ public exists({
477
+ ids,
478
+ venueId,
479
+ online,
480
+ archived,
481
+ deleted,
482
+ dashboardRequest,
483
+ pageNumber,
484
+ take,
485
+ skip,
486
+ limitListRequests,
487
+ tenantId,
488
+ modifiedById,
489
+ modifiedByIds,
490
+ dateCreatedGte,
491
+ dateCreatedLte,
492
+ isLive,
493
+ sortOrderDirection,
494
+ }: {
495
+ /**
496
+ * Gets or sets the queryable ids.
497
+ */
498
+ ids?: Array<string>;
499
+ /**
500
+ * Gets or sets the queryable Venue Id.
501
+ */
502
+ venueId?: string;
503
+ /**
504
+ * Gets or sets a value indicating whether return online items.
505
+ */
506
+ online?: boolean;
507
+ /**
508
+ * Gets or sets a value indicating whether to include archived items.
509
+ */
510
+ archived?: boolean;
511
+ /**
512
+ * Gets or sets a value indicating whether to include deleted items.
513
+ */
514
+ deleted?: boolean;
515
+ /**
516
+ * Gets or sets a value indicating this is a request from the partner dashboard.
517
+ */
518
+ dashboardRequest?: boolean;
519
+ /**
520
+ * Gets or sets the page number for paged queries.
521
+ */
522
+ pageNumber?: number;
523
+ /**
524
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
525
+ */
526
+ take?: number;
527
+ /**
528
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
529
+ */
530
+ skip?: number;
531
+ /**
532
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
533
+ */
534
+ limitListRequests?: boolean;
535
+ /**
536
+ * Gets or sets the Tenant Id.
537
+ */
538
+ tenantId?: string;
539
+ /**
540
+ * Gets or sets the Modifed By Id.
541
+ */
542
+ modifiedById?: string;
543
+ /**
544
+ * Gets or sets the Modifed By Ids.
545
+ */
546
+ modifiedByIds?: Array<string>;
547
+ /**
548
+ * Gets or sets the Date Created greater than equal to.
549
+ */
550
+ dateCreatedGte?: string;
551
+ /**
552
+ * Gets or sets the Date Created less than equal to.
553
+ */
554
+ dateCreatedLte?: string;
555
+ /**
556
+ * Gets or sets the queryable only is live status.
557
+ */
558
+ isLive?: boolean;
559
+ /**
560
+ * Gets or sets the sort order direction.
561
+ */
562
+ sortOrderDirection?: SearchSortOrderDirection;
563
+ }): CancelablePromise<boolean> {
564
+ return this.httpRequest.request({
565
+ method: 'GET',
566
+ url: '/api/sellable-items/exists',
567
+ query: {
568
+ Ids: ids,
569
+ VenueId: venueId,
570
+ Online: online,
571
+ Archived: archived,
572
+ Deleted: deleted,
573
+ DashboardRequest: dashboardRequest,
574
+ PageNumber: pageNumber,
575
+ Take: take,
576
+ Skip: skip,
577
+ LimitListRequests: limitListRequests,
578
+ TenantId: tenantId,
579
+ ModifiedById: modifiedById,
580
+ ModifiedByIds: modifiedByIds,
581
+ DateCreatedGTE: dateCreatedGte,
582
+ DateCreatedLTE: dateCreatedLte,
583
+ IsLive: isLive,
584
+ SortOrderDirection: sortOrderDirection,
585
+ },
586
+ errors: {
587
+ 400: `Bad Request`,
588
+ 422: `Unprocessable Content`,
589
+ 500: `Internal Server Error`,
590
+ },
591
+ });
592
+ }
593
+
594
+ /**
595
+ * Returns the number of results in the database given the provided search params.
596
+ * @returns number OK
597
+ * @throws ApiError
598
+ */
599
+ public count({
600
+ ids,
601
+ venueId,
602
+ online,
603
+ archived,
604
+ deleted,
605
+ dashboardRequest,
606
+ pageNumber,
607
+ take,
608
+ skip,
609
+ limitListRequests,
610
+ tenantId,
611
+ modifiedById,
612
+ modifiedByIds,
613
+ dateCreatedGte,
614
+ dateCreatedLte,
615
+ isLive,
616
+ sortOrderDirection,
617
+ }: {
618
+ /**
619
+ * Gets or sets the queryable ids.
620
+ */
621
+ ids?: Array<string>;
622
+ /**
623
+ * Gets or sets the queryable Venue Id.
624
+ */
625
+ venueId?: string;
626
+ /**
627
+ * Gets or sets a value indicating whether return online items.
628
+ */
629
+ online?: boolean;
630
+ /**
631
+ * Gets or sets a value indicating whether to include archived items.
632
+ */
633
+ archived?: boolean;
634
+ /**
635
+ * Gets or sets a value indicating whether to include deleted items.
636
+ */
637
+ deleted?: boolean;
638
+ /**
639
+ * Gets or sets a value indicating this is a request from the partner dashboard.
640
+ */
641
+ dashboardRequest?: boolean;
642
+ /**
643
+ * Gets or sets the page number for paged queries.
644
+ */
645
+ pageNumber?: number;
646
+ /**
647
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
648
+ */
649
+ take?: number;
650
+ /**
651
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
652
+ */
653
+ skip?: number;
654
+ /**
655
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
656
+ */
657
+ limitListRequests?: boolean;
658
+ /**
659
+ * Gets or sets the Tenant Id.
660
+ */
661
+ tenantId?: string;
662
+ /**
663
+ * Gets or sets the Modifed By Id.
664
+ */
665
+ modifiedById?: string;
666
+ /**
667
+ * Gets or sets the Modifed By Ids.
668
+ */
669
+ modifiedByIds?: Array<string>;
670
+ /**
671
+ * Gets or sets the Date Created greater than equal to.
672
+ */
673
+ dateCreatedGte?: string;
674
+ /**
675
+ * Gets or sets the Date Created less than equal to.
676
+ */
677
+ dateCreatedLte?: string;
678
+ /**
679
+ * Gets or sets the queryable only is live status.
680
+ */
681
+ isLive?: boolean;
682
+ /**
683
+ * Gets or sets the sort order direction.
684
+ */
685
+ sortOrderDirection?: SearchSortOrderDirection;
686
+ }): CancelablePromise<number> {
687
+ return this.httpRequest.request({
688
+ method: 'GET',
689
+ url: '/api/sellable-items/count',
690
+ query: {
691
+ Ids: ids,
692
+ VenueId: venueId,
693
+ Online: online,
694
+ Archived: archived,
695
+ Deleted: deleted,
696
+ DashboardRequest: dashboardRequest,
697
+ PageNumber: pageNumber,
698
+ Take: take,
699
+ Skip: skip,
700
+ LimitListRequests: limitListRequests,
701
+ TenantId: tenantId,
702
+ ModifiedById: modifiedById,
703
+ ModifiedByIds: modifiedByIds,
704
+ DateCreatedGTE: dateCreatedGte,
705
+ DateCreatedLTE: dateCreatedLte,
706
+ IsLive: isLive,
707
+ SortOrderDirection: sortOrderDirection,
708
+ },
709
+ errors: {
710
+ 400: `Bad Request`,
711
+ 422: `Unprocessable Content`,
712
+ 500: `Internal Server Error`,
713
+ },
714
+ });
715
+ }
716
+
717
+ /**
718
+ * Gets a list of resources unpaged and without references.
719
+ * @returns SellableItem OK
720
+ * @throws ApiError
721
+ */
722
+ public getListWithoutReferences({
723
+ ids,
724
+ venueId,
725
+ online,
726
+ archived,
727
+ deleted,
728
+ dashboardRequest,
729
+ pageNumber,
730
+ take,
731
+ skip,
732
+ limitListRequests,
733
+ tenantId,
734
+ modifiedById,
735
+ modifiedByIds,
736
+ dateCreatedGte,
737
+ dateCreatedLte,
738
+ isLive,
739
+ sortOrderDirection,
740
+ }: {
741
+ /**
742
+ * Gets or sets the queryable ids.
743
+ */
744
+ ids?: Array<string>;
745
+ /**
746
+ * Gets or sets the queryable Venue Id.
747
+ */
748
+ venueId?: string;
749
+ /**
750
+ * Gets or sets a value indicating whether return online items.
751
+ */
752
+ online?: boolean;
753
+ /**
754
+ * Gets or sets a value indicating whether to include archived items.
755
+ */
756
+ archived?: boolean;
757
+ /**
758
+ * Gets or sets a value indicating whether to include deleted items.
759
+ */
760
+ deleted?: boolean;
761
+ /**
762
+ * Gets or sets a value indicating this is a request from the partner dashboard.
763
+ */
764
+ dashboardRequest?: boolean;
765
+ /**
766
+ * Gets or sets the page number for paged queries.
767
+ */
768
+ pageNumber?: number;
769
+ /**
770
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
771
+ */
772
+ take?: number;
773
+ /**
774
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
775
+ */
776
+ skip?: number;
777
+ /**
778
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
779
+ */
780
+ limitListRequests?: boolean;
781
+ /**
782
+ * Gets or sets the Tenant Id.
783
+ */
784
+ tenantId?: string;
785
+ /**
786
+ * Gets or sets the Modifed By Id.
787
+ */
788
+ modifiedById?: string;
789
+ /**
790
+ * Gets or sets the Modifed By Ids.
791
+ */
792
+ modifiedByIds?: Array<string>;
793
+ /**
794
+ * Gets or sets the Date Created greater than equal to.
795
+ */
796
+ dateCreatedGte?: string;
797
+ /**
798
+ * Gets or sets the Date Created less than equal to.
799
+ */
800
+ dateCreatedLte?: string;
801
+ /**
802
+ * Gets or sets the queryable only is live status.
803
+ */
804
+ isLive?: boolean;
805
+ /**
806
+ * Gets or sets the sort order direction.
807
+ */
808
+ sortOrderDirection?: SearchSortOrderDirection;
809
+ }): CancelablePromise<Array<SellableItem>> {
810
+ return this.httpRequest.request({
811
+ method: 'GET',
812
+ url: '/api/sellable-items/without-references',
813
+ query: {
814
+ Ids: ids,
815
+ VenueId: venueId,
816
+ Online: online,
817
+ Archived: archived,
818
+ Deleted: deleted,
819
+ DashboardRequest: dashboardRequest,
820
+ PageNumber: pageNumber,
821
+ Take: take,
822
+ Skip: skip,
823
+ LimitListRequests: limitListRequests,
824
+ TenantId: tenantId,
825
+ ModifiedById: modifiedById,
826
+ ModifiedByIds: modifiedByIds,
827
+ DateCreatedGTE: dateCreatedGte,
828
+ DateCreatedLTE: dateCreatedLte,
829
+ IsLive: isLive,
830
+ SortOrderDirection: sortOrderDirection,
831
+ },
832
+ errors: {
833
+ 400: `Bad Request`,
834
+ 422: `Unprocessable Content`,
835
+ 500: `Internal Server Error`,
836
+ },
837
+ });
838
+ }
839
+
840
+ /**
841
+ * Gets a list of resources.
842
+ * @returns SellableItem OK
843
+ * @throws ApiError
844
+ */
845
+ public getListIdName({
846
+ ids,
847
+ venueId,
848
+ online,
849
+ archived,
850
+ deleted,
851
+ dashboardRequest,
852
+ pageNumber,
853
+ take,
854
+ skip,
855
+ limitListRequests,
856
+ tenantId,
857
+ modifiedById,
858
+ modifiedByIds,
859
+ dateCreatedGte,
860
+ dateCreatedLte,
861
+ isLive,
862
+ sortOrderDirection,
863
+ }: {
864
+ /**
865
+ * Gets or sets the queryable ids.
866
+ */
867
+ ids?: Array<string>;
868
+ /**
869
+ * Gets or sets the queryable Venue Id.
870
+ */
871
+ venueId?: string;
872
+ /**
873
+ * Gets or sets a value indicating whether return online items.
874
+ */
875
+ online?: boolean;
876
+ /**
877
+ * Gets or sets a value indicating whether to include archived items.
878
+ */
879
+ archived?: boolean;
880
+ /**
881
+ * Gets or sets a value indicating whether to include deleted items.
882
+ */
883
+ deleted?: boolean;
884
+ /**
885
+ * Gets or sets a value indicating this is a request from the partner dashboard.
886
+ */
887
+ dashboardRequest?: boolean;
888
+ /**
889
+ * Gets or sets the page number for paged queries.
890
+ */
891
+ pageNumber?: number;
892
+ /**
893
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
894
+ */
895
+ take?: number;
896
+ /**
897
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
898
+ */
899
+ skip?: number;
900
+ /**
901
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
902
+ */
903
+ limitListRequests?: boolean;
904
+ /**
905
+ * Gets or sets the Tenant Id.
906
+ */
907
+ tenantId?: string;
908
+ /**
909
+ * Gets or sets the Modifed By Id.
910
+ */
911
+ modifiedById?: string;
912
+ /**
913
+ * Gets or sets the Modifed By Ids.
914
+ */
915
+ modifiedByIds?: Array<string>;
916
+ /**
917
+ * Gets or sets the Date Created greater than equal to.
918
+ */
919
+ dateCreatedGte?: string;
920
+ /**
921
+ * Gets or sets the Date Created less than equal to.
922
+ */
923
+ dateCreatedLte?: string;
924
+ /**
925
+ * Gets or sets the queryable only is live status.
926
+ */
927
+ isLive?: boolean;
928
+ /**
929
+ * Gets or sets the sort order direction.
930
+ */
931
+ sortOrderDirection?: SearchSortOrderDirection;
932
+ }): CancelablePromise<Array<SellableItem>> {
933
+ return this.httpRequest.request({
934
+ method: 'GET',
935
+ url: '/api/sellable-items/id-name',
936
+ query: {
937
+ Ids: ids,
938
+ VenueId: venueId,
939
+ Online: online,
940
+ Archived: archived,
941
+ Deleted: deleted,
942
+ DashboardRequest: dashboardRequest,
943
+ PageNumber: pageNumber,
944
+ Take: take,
945
+ Skip: skip,
946
+ LimitListRequests: limitListRequests,
947
+ TenantId: tenantId,
948
+ ModifiedById: modifiedById,
949
+ ModifiedByIds: modifiedByIds,
950
+ DateCreatedGTE: dateCreatedGte,
951
+ DateCreatedLTE: dateCreatedLte,
952
+ IsLive: isLive,
953
+ SortOrderDirection: sortOrderDirection,
954
+ },
955
+ errors: {
956
+ 400: `Bad Request`,
957
+ 422: `Unprocessable Content`,
958
+ 500: `Internal Server Error`,
959
+ },
960
+ });
961
+ }
962
+ }