reach-api-sdk 1.0.200 → 1.0.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/reach-sdk.d.ts +310 -13
- package/dist/reach-sdk.js +108 -0
- package/package.json +1 -1
- package/src/definition/swagger.yaml +487 -0
- package/src/index.ts +1 -0
- package/src/models/CreateOffer.ts +16 -0
- package/src/models/GenericActivity.ts +12 -0
- package/src/models/Offer.ts +25 -0
- package/src/models/OfferPost.ts +16 -0
- package/src/models/OrderItem.ts +12 -0
- package/src/models/OrderItemReportSummary.ts +38 -0
- package/src/models/Session.ts +12 -0
- package/src/models/UpdateOffer.ts +16 -0
- package/src/services/OffersService.ts +30 -0
- package/src/services/OrderItemReportService.ts +124 -0
- package/src/services/OrderItemsService.ts +30 -0
- package/src/services/PlacesService.ts +57 -0
- package/src/services/PublicOrderItemsService.ts +12 -0
package/dist/reach-sdk.js
CHANGED
|
@@ -13207,6 +13207,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13207
13207
|
* @throws ApiError
|
|
13208
13208
|
*/
|
|
13209
13209
|
getPage({
|
|
13210
|
+
ids,
|
|
13210
13211
|
facilityId,
|
|
13211
13212
|
facilityIds,
|
|
13212
13213
|
facilityIndividualId,
|
|
@@ -13236,6 +13237,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13236
13237
|
method: "GET",
|
|
13237
13238
|
url: "/api/offers",
|
|
13238
13239
|
query: {
|
|
13240
|
+
Ids: ids,
|
|
13239
13241
|
FacilityId: facilityId,
|
|
13240
13242
|
FacilityIds: facilityIds,
|
|
13241
13243
|
FacilityIndividualId: facilityIndividualId,
|
|
@@ -13337,6 +13339,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13337
13339
|
* @throws ApiError
|
|
13338
13340
|
*/
|
|
13339
13341
|
exists({
|
|
13342
|
+
ids,
|
|
13340
13343
|
facilityId,
|
|
13341
13344
|
facilityIds,
|
|
13342
13345
|
facilityIndividualId,
|
|
@@ -13366,6 +13369,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13366
13369
|
method: "GET",
|
|
13367
13370
|
url: "/api/offers/exists",
|
|
13368
13371
|
query: {
|
|
13372
|
+
Ids: ids,
|
|
13369
13373
|
FacilityId: facilityId,
|
|
13370
13374
|
FacilityIds: facilityIds,
|
|
13371
13375
|
FacilityIndividualId: facilityIndividualId,
|
|
@@ -13404,6 +13408,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13404
13408
|
* @throws ApiError
|
|
13405
13409
|
*/
|
|
13406
13410
|
count({
|
|
13411
|
+
ids,
|
|
13407
13412
|
facilityId,
|
|
13408
13413
|
facilityIds,
|
|
13409
13414
|
facilityIndividualId,
|
|
@@ -13433,6 +13438,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13433
13438
|
method: "GET",
|
|
13434
13439
|
url: "/api/offers/count",
|
|
13435
13440
|
query: {
|
|
13441
|
+
Ids: ids,
|
|
13436
13442
|
FacilityId: facilityId,
|
|
13437
13443
|
FacilityIds: facilityIds,
|
|
13438
13444
|
FacilityIndividualId: facilityIndividualId,
|
|
@@ -13471,6 +13477,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13471
13477
|
* @throws ApiError
|
|
13472
13478
|
*/
|
|
13473
13479
|
getListWithoutReferences({
|
|
13480
|
+
ids,
|
|
13474
13481
|
facilityId,
|
|
13475
13482
|
facilityIds,
|
|
13476
13483
|
facilityIndividualId,
|
|
@@ -13500,6 +13507,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13500
13507
|
method: "GET",
|
|
13501
13508
|
url: "/api/offers/without-references",
|
|
13502
13509
|
query: {
|
|
13510
|
+
Ids: ids,
|
|
13503
13511
|
FacilityId: facilityId,
|
|
13504
13512
|
FacilityIds: facilityIds,
|
|
13505
13513
|
FacilityIndividualId: facilityIndividualId,
|
|
@@ -13538,6 +13546,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13538
13546
|
* @throws ApiError
|
|
13539
13547
|
*/
|
|
13540
13548
|
getListIdName({
|
|
13549
|
+
ids,
|
|
13541
13550
|
facilityId,
|
|
13542
13551
|
facilityIds,
|
|
13543
13552
|
facilityIndividualId,
|
|
@@ -13567,6 +13576,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
13567
13576
|
method: "GET",
|
|
13568
13577
|
url: "/api/offers/id-name",
|
|
13569
13578
|
query: {
|
|
13579
|
+
Ids: ids,
|
|
13570
13580
|
FacilityId: facilityId,
|
|
13571
13581
|
FacilityIds: facilityIds,
|
|
13572
13582
|
FacilityIndividualId: facilityIndividualId,
|
|
@@ -15010,6 +15020,59 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15010
15020
|
}
|
|
15011
15021
|
});
|
|
15012
15022
|
}
|
|
15023
|
+
/**
|
|
15024
|
+
* Get summary for order items.
|
|
15025
|
+
* @returns OrderItemReportSummary OK
|
|
15026
|
+
* @throws ApiError
|
|
15027
|
+
*/
|
|
15028
|
+
getSummary({
|
|
15029
|
+
venueId,
|
|
15030
|
+
userId,
|
|
15031
|
+
programmeId,
|
|
15032
|
+
startDateGte,
|
|
15033
|
+
startDateLte,
|
|
15034
|
+
dateRange,
|
|
15035
|
+
pageNumber,
|
|
15036
|
+
take,
|
|
15037
|
+
skip,
|
|
15038
|
+
limitListRequests,
|
|
15039
|
+
tenantId,
|
|
15040
|
+
modifiedById,
|
|
15041
|
+
modifiedByIds,
|
|
15042
|
+
dateCreatedGte,
|
|
15043
|
+
dateCreatedLte,
|
|
15044
|
+
isLive,
|
|
15045
|
+
sortOrderDirection
|
|
15046
|
+
}) {
|
|
15047
|
+
return this.httpRequest.request({
|
|
15048
|
+
method: "GET",
|
|
15049
|
+
url: "/api/order-items-report/summary",
|
|
15050
|
+
query: {
|
|
15051
|
+
VenueId: venueId,
|
|
15052
|
+
UserId: userId,
|
|
15053
|
+
ProgrammeId: programmeId,
|
|
15054
|
+
StartDateGTE: startDateGte,
|
|
15055
|
+
StartDateLTE: startDateLte,
|
|
15056
|
+
DateRange: dateRange,
|
|
15057
|
+
PageNumber: pageNumber,
|
|
15058
|
+
Take: take,
|
|
15059
|
+
Skip: skip,
|
|
15060
|
+
LimitListRequests: limitListRequests,
|
|
15061
|
+
TenantId: tenantId,
|
|
15062
|
+
ModifiedById: modifiedById,
|
|
15063
|
+
ModifiedByIds: modifiedByIds,
|
|
15064
|
+
DateCreatedGTE: dateCreatedGte,
|
|
15065
|
+
DateCreatedLTE: dateCreatedLte,
|
|
15066
|
+
IsLive: isLive,
|
|
15067
|
+
SortOrderDirection: sortOrderDirection
|
|
15068
|
+
},
|
|
15069
|
+
errors: {
|
|
15070
|
+
400: `Bad Request`,
|
|
15071
|
+
422: `Unprocessable Content`,
|
|
15072
|
+
500: `Internal Server Error`
|
|
15073
|
+
}
|
|
15074
|
+
});
|
|
15075
|
+
}
|
|
15013
15076
|
/**
|
|
15014
15077
|
* Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
|
|
15015
15078
|
* @returns OrderItemReport OK
|
|
@@ -15580,6 +15643,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15580
15643
|
scheduledSessionId,
|
|
15581
15644
|
slotId,
|
|
15582
15645
|
courseId,
|
|
15646
|
+
offerId,
|
|
15583
15647
|
status,
|
|
15584
15648
|
statuses,
|
|
15585
15649
|
parentOrderItemId,
|
|
@@ -15607,6 +15671,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15607
15671
|
ScheduledSessionId: scheduledSessionId,
|
|
15608
15672
|
SlotId: slotId,
|
|
15609
15673
|
CourseId: courseId,
|
|
15674
|
+
OfferId: offerId,
|
|
15610
15675
|
Status: status,
|
|
15611
15676
|
Statuses: statuses,
|
|
15612
15677
|
ParentOrderItemId: parentOrderItemId,
|
|
@@ -15706,6 +15771,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15706
15771
|
scheduledSessionId,
|
|
15707
15772
|
slotId,
|
|
15708
15773
|
courseId,
|
|
15774
|
+
offerId,
|
|
15709
15775
|
status,
|
|
15710
15776
|
statuses,
|
|
15711
15777
|
parentOrderItemId,
|
|
@@ -15733,6 +15799,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15733
15799
|
ScheduledSessionId: scheduledSessionId,
|
|
15734
15800
|
SlotId: slotId,
|
|
15735
15801
|
CourseId: courseId,
|
|
15802
|
+
OfferId: offerId,
|
|
15736
15803
|
Status: status,
|
|
15737
15804
|
Statuses: statuses,
|
|
15738
15805
|
ParentOrderItemId: parentOrderItemId,
|
|
@@ -15769,6 +15836,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15769
15836
|
scheduledSessionId,
|
|
15770
15837
|
slotId,
|
|
15771
15838
|
courseId,
|
|
15839
|
+
offerId,
|
|
15772
15840
|
status,
|
|
15773
15841
|
statuses,
|
|
15774
15842
|
parentOrderItemId,
|
|
@@ -15796,6 +15864,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15796
15864
|
ScheduledSessionId: scheduledSessionId,
|
|
15797
15865
|
SlotId: slotId,
|
|
15798
15866
|
CourseId: courseId,
|
|
15867
|
+
OfferId: offerId,
|
|
15799
15868
|
Status: status,
|
|
15800
15869
|
Statuses: statuses,
|
|
15801
15870
|
ParentOrderItemId: parentOrderItemId,
|
|
@@ -15832,6 +15901,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15832
15901
|
scheduledSessionId,
|
|
15833
15902
|
slotId,
|
|
15834
15903
|
courseId,
|
|
15904
|
+
offerId,
|
|
15835
15905
|
status,
|
|
15836
15906
|
statuses,
|
|
15837
15907
|
parentOrderItemId,
|
|
@@ -15859,6 +15929,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15859
15929
|
ScheduledSessionId: scheduledSessionId,
|
|
15860
15930
|
SlotId: slotId,
|
|
15861
15931
|
CourseId: courseId,
|
|
15932
|
+
OfferId: offerId,
|
|
15862
15933
|
Status: status,
|
|
15863
15934
|
Statuses: statuses,
|
|
15864
15935
|
ParentOrderItemId: parentOrderItemId,
|
|
@@ -15895,6 +15966,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15895
15966
|
scheduledSessionId,
|
|
15896
15967
|
slotId,
|
|
15897
15968
|
courseId,
|
|
15969
|
+
offerId,
|
|
15898
15970
|
status,
|
|
15899
15971
|
statuses,
|
|
15900
15972
|
parentOrderItemId,
|
|
@@ -15922,6 +15994,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
15922
15994
|
ScheduledSessionId: scheduledSessionId,
|
|
15923
15995
|
SlotId: slotId,
|
|
15924
15996
|
CourseId: courseId,
|
|
15997
|
+
OfferId: offerId,
|
|
15925
15998
|
Status: status,
|
|
15926
15999
|
Statuses: statuses,
|
|
15927
16000
|
ParentOrderItemId: parentOrderItemId,
|
|
@@ -18513,6 +18586,37 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
18513
18586
|
}
|
|
18514
18587
|
});
|
|
18515
18588
|
}
|
|
18589
|
+
/**
|
|
18590
|
+
* GetPrediction.
|
|
18591
|
+
* @returns any OK
|
|
18592
|
+
* @throws ApiError
|
|
18593
|
+
*/
|
|
18594
|
+
getStaticMap({
|
|
18595
|
+
lat,
|
|
18596
|
+
lng,
|
|
18597
|
+
zoom = 14,
|
|
18598
|
+
width = 400,
|
|
18599
|
+
height = 287,
|
|
18600
|
+
type = "roadmap"
|
|
18601
|
+
}) {
|
|
18602
|
+
return this.httpRequest.request({
|
|
18603
|
+
method: "GET",
|
|
18604
|
+
url: "/api/external/places/static-map",
|
|
18605
|
+
query: {
|
|
18606
|
+
lat,
|
|
18607
|
+
lng,
|
|
18608
|
+
zoom,
|
|
18609
|
+
width,
|
|
18610
|
+
height,
|
|
18611
|
+
type
|
|
18612
|
+
},
|
|
18613
|
+
errors: {
|
|
18614
|
+
400: `Bad Request`,
|
|
18615
|
+
422: `Unprocessable Content`,
|
|
18616
|
+
500: `Internal Server Error`
|
|
18617
|
+
}
|
|
18618
|
+
});
|
|
18619
|
+
}
|
|
18516
18620
|
}class PlatformPayoutsService {
|
|
18517
18621
|
constructor(httpRequest) {
|
|
18518
18622
|
this.httpRequest = httpRequest;
|
|
@@ -22854,6 +22958,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
22854
22958
|
scheduledSessionId,
|
|
22855
22959
|
slotId,
|
|
22856
22960
|
courseId,
|
|
22961
|
+
offerId,
|
|
22857
22962
|
status,
|
|
22858
22963
|
statuses,
|
|
22859
22964
|
parentOrderItemId,
|
|
@@ -22884,6 +22989,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
22884
22989
|
ScheduledSessionId: scheduledSessionId,
|
|
22885
22990
|
SlotId: slotId,
|
|
22886
22991
|
CourseId: courseId,
|
|
22992
|
+
OfferId: offerId,
|
|
22887
22993
|
Status: status,
|
|
22888
22994
|
Statuses: statuses,
|
|
22889
22995
|
ParentOrderItemId: parentOrderItemId,
|
|
@@ -23094,6 +23200,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
23094
23200
|
scheduledSessionId,
|
|
23095
23201
|
slotId,
|
|
23096
23202
|
courseId,
|
|
23203
|
+
offerId,
|
|
23097
23204
|
status,
|
|
23098
23205
|
statuses,
|
|
23099
23206
|
parentOrderItemId,
|
|
@@ -23124,6 +23231,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
23124
23231
|
ScheduledSessionId: scheduledSessionId,
|
|
23125
23232
|
SlotId: slotId,
|
|
23126
23233
|
CourseId: courseId,
|
|
23234
|
+
OfferId: offerId,
|
|
23127
23235
|
Status: status,
|
|
23128
23236
|
Statuses: statuses,
|
|
23129
23237
|
ParentOrderItemId: parentOrderItemId,
|