reach-api-sdk 1.0.203 → 1.0.204
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 +429 -8
- package/dist/reach-sdk.js +217 -0
- package/package.json +1 -1
- package/src/definition/swagger.yaml +834 -146
- package/src/models/CreateOffer.ts +8 -0
- package/src/models/CreateQuestion.ts +4 -0
- package/src/models/Offer.ts +8 -0
- package/src/models/OfferPatch.ts +8 -0
- package/src/models/OfferPost.ts +8 -0
- package/src/models/SurveyCompletionLog.ts +4 -0
- package/src/models/SurveyQuestionType.ts +5 -0
- package/src/models/TemplateOffer.ts +8 -0
- package/src/models/UpdateOffer.ts +8 -0
- package/src/services/PublicGenericActivityService.ts +299 -0
- package/src/services/PublicSurveyCompletionLogsService.ts +12 -0
- package/src/services/PublicVenuesService.ts +219 -0
- package/src/services/SurveyCompletionLogService.ts +30 -0
package/dist/reach-sdk.js
CHANGED
|
@@ -22020,6 +22020,119 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
22020
22020
|
}
|
|
22021
22021
|
});
|
|
22022
22022
|
}
|
|
22023
|
+
/**
|
|
22024
|
+
* Retrieves a paged list of activities using optimized raw SQL queries.
|
|
22025
|
+
* This endpoint loads all related data (images, offers, sessions) in a single query using JSON aggregation,
|
|
22026
|
+
* eliminating the overhead of OnPagedItemsLoaded method. Returns only minimal required fields.
|
|
22027
|
+
* @returns GenericActivityPage OK
|
|
22028
|
+
* @throws ApiError
|
|
22029
|
+
*/
|
|
22030
|
+
getPageOptimized({
|
|
22031
|
+
wildcard,
|
|
22032
|
+
venueId,
|
|
22033
|
+
providerId,
|
|
22034
|
+
programmeId,
|
|
22035
|
+
online,
|
|
22036
|
+
archived,
|
|
22037
|
+
deleted,
|
|
22038
|
+
activityType,
|
|
22039
|
+
includeNextOpportunity,
|
|
22040
|
+
featured,
|
|
22041
|
+
_private,
|
|
22042
|
+
searchGeoCenter,
|
|
22043
|
+
openactiveActivityId,
|
|
22044
|
+
activityId,
|
|
22045
|
+
activityIds,
|
|
22046
|
+
networkId,
|
|
22047
|
+
tenantStatus,
|
|
22048
|
+
lat,
|
|
22049
|
+
lng,
|
|
22050
|
+
distance,
|
|
22051
|
+
minAgeLte,
|
|
22052
|
+
minAgeGte,
|
|
22053
|
+
maxAgeLte,
|
|
22054
|
+
maxAgeGte,
|
|
22055
|
+
priceTotalGte,
|
|
22056
|
+
priceTotalLte,
|
|
22057
|
+
timeOfDay,
|
|
22058
|
+
startDateTimeGte,
|
|
22059
|
+
endDateTimeLte,
|
|
22060
|
+
gender,
|
|
22061
|
+
periodsOfWeek,
|
|
22062
|
+
additionalSupport,
|
|
22063
|
+
amenity,
|
|
22064
|
+
venueTypeIds,
|
|
22065
|
+
programmeIds,
|
|
22066
|
+
pageNumber,
|
|
22067
|
+
take,
|
|
22068
|
+
skip,
|
|
22069
|
+
limitListRequests,
|
|
22070
|
+
tenantId,
|
|
22071
|
+
modifiedById,
|
|
22072
|
+
modifiedByIds,
|
|
22073
|
+
dateCreatedGte,
|
|
22074
|
+
dateCreatedLte,
|
|
22075
|
+
isLive,
|
|
22076
|
+
sortOrderDirection
|
|
22077
|
+
}) {
|
|
22078
|
+
return this.httpRequest.request({
|
|
22079
|
+
method: "GET",
|
|
22080
|
+
url: "/api/public/all-activities/network/optimized",
|
|
22081
|
+
query: {
|
|
22082
|
+
Wildcard: wildcard,
|
|
22083
|
+
VenueId: venueId,
|
|
22084
|
+
ProviderId: providerId,
|
|
22085
|
+
ProgrammeId: programmeId,
|
|
22086
|
+
Online: online,
|
|
22087
|
+
Archived: archived,
|
|
22088
|
+
Deleted: deleted,
|
|
22089
|
+
ActivityType: activityType,
|
|
22090
|
+
IncludeNextOpportunity: includeNextOpportunity,
|
|
22091
|
+
Featured: featured,
|
|
22092
|
+
Private: _private,
|
|
22093
|
+
SearchGeoCenter: searchGeoCenter,
|
|
22094
|
+
OpenactiveActivityId: openactiveActivityId,
|
|
22095
|
+
ActivityId: activityId,
|
|
22096
|
+
ActivityIds: activityIds,
|
|
22097
|
+
NetworkId: networkId,
|
|
22098
|
+
TenantStatus: tenantStatus,
|
|
22099
|
+
Lat: lat,
|
|
22100
|
+
Lng: lng,
|
|
22101
|
+
Distance: distance,
|
|
22102
|
+
MinAgeLTE: minAgeLte,
|
|
22103
|
+
MinAgeGTE: minAgeGte,
|
|
22104
|
+
MaxAgeLTE: maxAgeLte,
|
|
22105
|
+
MaxAgeGTE: maxAgeGte,
|
|
22106
|
+
PriceTotalGTE: priceTotalGte,
|
|
22107
|
+
PriceTotalLTE: priceTotalLte,
|
|
22108
|
+
TimeOfDay: timeOfDay,
|
|
22109
|
+
StartDateTimeGTE: startDateTimeGte,
|
|
22110
|
+
EndDateTimeLTE: endDateTimeLte,
|
|
22111
|
+
Gender: gender,
|
|
22112
|
+
PeriodsOfWeek: periodsOfWeek,
|
|
22113
|
+
AdditionalSupport: additionalSupport,
|
|
22114
|
+
Amenity: amenity,
|
|
22115
|
+
VenueTypeIds: venueTypeIds,
|
|
22116
|
+
ProgrammeIds: programmeIds,
|
|
22117
|
+
PageNumber: pageNumber,
|
|
22118
|
+
Take: take,
|
|
22119
|
+
Skip: skip,
|
|
22120
|
+
LimitListRequests: limitListRequests,
|
|
22121
|
+
TenantId: tenantId,
|
|
22122
|
+
ModifiedById: modifiedById,
|
|
22123
|
+
ModifiedByIds: modifiedByIds,
|
|
22124
|
+
DateCreatedGTE: dateCreatedGte,
|
|
22125
|
+
DateCreatedLTE: dateCreatedLte,
|
|
22126
|
+
IsLive: isLive,
|
|
22127
|
+
SortOrderDirection: sortOrderDirection
|
|
22128
|
+
},
|
|
22129
|
+
errors: {
|
|
22130
|
+
400: `Bad Request`,
|
|
22131
|
+
422: `Unprocessable Content`,
|
|
22132
|
+
500: `Internal Server Error`
|
|
22133
|
+
}
|
|
22134
|
+
});
|
|
22135
|
+
}
|
|
22023
22136
|
/**
|
|
22024
22137
|
* Returns a value indicating whether the resource exists in the database given the provided search params.
|
|
22025
22138
|
* @returns boolean OK
|
|
@@ -25989,6 +26102,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
25989
26102
|
orderItemId,
|
|
25990
26103
|
sessionId,
|
|
25991
26104
|
courseId,
|
|
26105
|
+
offerId,
|
|
25992
26106
|
pageNumber,
|
|
25993
26107
|
take,
|
|
25994
26108
|
skip,
|
|
@@ -26014,6 +26128,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
26014
26128
|
OrderItemId: orderItemId,
|
|
26015
26129
|
SessionId: sessionId,
|
|
26016
26130
|
CourseId: courseId,
|
|
26131
|
+
OfferId: offerId,
|
|
26017
26132
|
PageNumber: pageNumber,
|
|
26018
26133
|
Take: take,
|
|
26019
26134
|
Skip: skip,
|
|
@@ -26142,6 +26257,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
26142
26257
|
orderItemId,
|
|
26143
26258
|
sessionId,
|
|
26144
26259
|
courseId,
|
|
26260
|
+
offerId,
|
|
26145
26261
|
pageNumber,
|
|
26146
26262
|
take,
|
|
26147
26263
|
skip,
|
|
@@ -26167,6 +26283,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
26167
26283
|
OrderItemId: orderItemId,
|
|
26168
26284
|
SessionId: sessionId,
|
|
26169
26285
|
CourseId: courseId,
|
|
26286
|
+
OfferId: offerId,
|
|
26170
26287
|
PageNumber: pageNumber,
|
|
26171
26288
|
Take: take,
|
|
26172
26289
|
Skip: skip,
|
|
@@ -27295,6 +27412,91 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
27295
27412
|
}
|
|
27296
27413
|
});
|
|
27297
27414
|
}
|
|
27415
|
+
/**
|
|
27416
|
+
* Get Venues for a network using optimized query.
|
|
27417
|
+
* @returns VenuePage OK
|
|
27418
|
+
* @throws ApiError
|
|
27419
|
+
*/
|
|
27420
|
+
getNetworkPageOptimized({
|
|
27421
|
+
ids,
|
|
27422
|
+
wildcard,
|
|
27423
|
+
name,
|
|
27424
|
+
streetAddress,
|
|
27425
|
+
addressPostalcode,
|
|
27426
|
+
nameLike,
|
|
27427
|
+
slug,
|
|
27428
|
+
assignedTo,
|
|
27429
|
+
stripeAccountId,
|
|
27430
|
+
searchGeoCenter,
|
|
27431
|
+
publishedOnWeb,
|
|
27432
|
+
archived,
|
|
27433
|
+
networkId,
|
|
27434
|
+
tenantStatus,
|
|
27435
|
+
programmeId,
|
|
27436
|
+
includeOpportunityImages,
|
|
27437
|
+
includeOpportunityOffers,
|
|
27438
|
+
includeNextOpportunity,
|
|
27439
|
+
distance,
|
|
27440
|
+
dashboardRequest,
|
|
27441
|
+
programmeIds,
|
|
27442
|
+
venueTypeIds,
|
|
27443
|
+
pageNumber,
|
|
27444
|
+
take,
|
|
27445
|
+
skip,
|
|
27446
|
+
limitListRequests,
|
|
27447
|
+
tenantId,
|
|
27448
|
+
modifiedById,
|
|
27449
|
+
modifiedByIds,
|
|
27450
|
+
dateCreatedGte,
|
|
27451
|
+
dateCreatedLte,
|
|
27452
|
+
isLive,
|
|
27453
|
+
sortOrderDirection
|
|
27454
|
+
}) {
|
|
27455
|
+
return this.httpRequest.request({
|
|
27456
|
+
method: "GET",
|
|
27457
|
+
url: "/api/public/venues/network/optimized",
|
|
27458
|
+
query: {
|
|
27459
|
+
Ids: ids,
|
|
27460
|
+
Wildcard: wildcard,
|
|
27461
|
+
Name: name,
|
|
27462
|
+
StreetAddress: streetAddress,
|
|
27463
|
+
AddressPostalcode: addressPostalcode,
|
|
27464
|
+
NameLike: nameLike,
|
|
27465
|
+
Slug: slug,
|
|
27466
|
+
AssignedTo: assignedTo,
|
|
27467
|
+
StripeAccountId: stripeAccountId,
|
|
27468
|
+
SearchGeoCenter: searchGeoCenter,
|
|
27469
|
+
PublishedOnWeb: publishedOnWeb,
|
|
27470
|
+
Archived: archived,
|
|
27471
|
+
NetworkId: networkId,
|
|
27472
|
+
TenantStatus: tenantStatus,
|
|
27473
|
+
ProgrammeId: programmeId,
|
|
27474
|
+
IncludeOpportunityImages: includeOpportunityImages,
|
|
27475
|
+
IncludeOpportunityOffers: includeOpportunityOffers,
|
|
27476
|
+
IncludeNextOpportunity: includeNextOpportunity,
|
|
27477
|
+
Distance: distance,
|
|
27478
|
+
DashboardRequest: dashboardRequest,
|
|
27479
|
+
ProgrammeIds: programmeIds,
|
|
27480
|
+
VenueTypeIds: venueTypeIds,
|
|
27481
|
+
PageNumber: pageNumber,
|
|
27482
|
+
Take: take,
|
|
27483
|
+
Skip: skip,
|
|
27484
|
+
LimitListRequests: limitListRequests,
|
|
27485
|
+
TenantId: tenantId,
|
|
27486
|
+
ModifiedById: modifiedById,
|
|
27487
|
+
ModifiedByIds: modifiedByIds,
|
|
27488
|
+
DateCreatedGTE: dateCreatedGte,
|
|
27489
|
+
DateCreatedLTE: dateCreatedLte,
|
|
27490
|
+
IsLive: isLive,
|
|
27491
|
+
SortOrderDirection: sortOrderDirection
|
|
27492
|
+
},
|
|
27493
|
+
errors: {
|
|
27494
|
+
400: `Bad Request`,
|
|
27495
|
+
422: `Unprocessable Content`,
|
|
27496
|
+
500: `Internal Server Error`
|
|
27497
|
+
}
|
|
27498
|
+
});
|
|
27499
|
+
}
|
|
27298
27500
|
/**
|
|
27299
27501
|
* Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
|
|
27300
27502
|
* @returns Venue OK
|
|
@@ -34908,6 +35110,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
34908
35110
|
orderItemId,
|
|
34909
35111
|
sessionId,
|
|
34910
35112
|
courseId,
|
|
35113
|
+
offerId,
|
|
34911
35114
|
pageNumber,
|
|
34912
35115
|
take,
|
|
34913
35116
|
skip,
|
|
@@ -34930,6 +35133,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
34930
35133
|
OrderItemId: orderItemId,
|
|
34931
35134
|
SessionId: sessionId,
|
|
34932
35135
|
CourseId: courseId,
|
|
35136
|
+
OfferId: offerId,
|
|
34933
35137
|
PageNumber: pageNumber,
|
|
34934
35138
|
Take: take,
|
|
34935
35139
|
Skip: skip,
|
|
@@ -35024,6 +35228,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35024
35228
|
orderItemId,
|
|
35025
35229
|
sessionId,
|
|
35026
35230
|
courseId,
|
|
35231
|
+
offerId,
|
|
35027
35232
|
pageNumber,
|
|
35028
35233
|
take,
|
|
35029
35234
|
skip,
|
|
@@ -35046,6 +35251,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35046
35251
|
OrderItemId: orderItemId,
|
|
35047
35252
|
SessionId: sessionId,
|
|
35048
35253
|
CourseId: courseId,
|
|
35254
|
+
OfferId: offerId,
|
|
35049
35255
|
PageNumber: pageNumber,
|
|
35050
35256
|
Take: take,
|
|
35051
35257
|
Skip: skip,
|
|
@@ -35077,6 +35283,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35077
35283
|
orderItemId,
|
|
35078
35284
|
sessionId,
|
|
35079
35285
|
courseId,
|
|
35286
|
+
offerId,
|
|
35080
35287
|
pageNumber,
|
|
35081
35288
|
take,
|
|
35082
35289
|
skip,
|
|
@@ -35099,6 +35306,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35099
35306
|
OrderItemId: orderItemId,
|
|
35100
35307
|
SessionId: sessionId,
|
|
35101
35308
|
CourseId: courseId,
|
|
35309
|
+
OfferId: offerId,
|
|
35102
35310
|
PageNumber: pageNumber,
|
|
35103
35311
|
Take: take,
|
|
35104
35312
|
Skip: skip,
|
|
@@ -35130,6 +35338,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35130
35338
|
orderItemId,
|
|
35131
35339
|
sessionId,
|
|
35132
35340
|
courseId,
|
|
35341
|
+
offerId,
|
|
35133
35342
|
pageNumber,
|
|
35134
35343
|
take,
|
|
35135
35344
|
skip,
|
|
@@ -35152,6 +35361,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35152
35361
|
OrderItemId: orderItemId,
|
|
35153
35362
|
SessionId: sessionId,
|
|
35154
35363
|
CourseId: courseId,
|
|
35364
|
+
OfferId: offerId,
|
|
35155
35365
|
PageNumber: pageNumber,
|
|
35156
35366
|
Take: take,
|
|
35157
35367
|
Skip: skip,
|
|
@@ -35183,6 +35393,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35183
35393
|
orderItemId,
|
|
35184
35394
|
sessionId,
|
|
35185
35395
|
courseId,
|
|
35396
|
+
offerId,
|
|
35186
35397
|
pageNumber,
|
|
35187
35398
|
take,
|
|
35188
35399
|
skip,
|
|
@@ -35205,6 +35416,7 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35205
35416
|
OrderItemId: orderItemId,
|
|
35206
35417
|
SessionId: sessionId,
|
|
35207
35418
|
CourseId: courseId,
|
|
35419
|
+
OfferId: offerId,
|
|
35208
35420
|
PageNumber: pageNumber,
|
|
35209
35421
|
Take: take,
|
|
35210
35422
|
Skip: skip,
|
|
@@ -46765,6 +46977,11 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
46765
46977
|
SurveyQuestionType2["SELECT"] = "Select";
|
|
46766
46978
|
SurveyQuestionType2["CHECKBOX"] = "Checkbox";
|
|
46767
46979
|
SurveyQuestionType2["NUMBER"] = "Number";
|
|
46980
|
+
SurveyQuestionType2["TEXT_LONG"] = "TextLong";
|
|
46981
|
+
SurveyQuestionType2["BOOLEAN"] = "Boolean";
|
|
46982
|
+
SurveyQuestionType2["DATE"] = "Date";
|
|
46983
|
+
SurveyQuestionType2["RATING"] = "Rating";
|
|
46984
|
+
SurveyQuestionType2["FILE_UPLOAD"] = "FileUpload";
|
|
46768
46985
|
return SurveyQuestionType2;
|
|
46769
46986
|
})(SurveyQuestionType || {});var SurveyResponseMode = /* @__PURE__ */ ((SurveyResponseMode2) => {
|
|
46770
46987
|
SurveyResponseMode2["ASK_ONCE"] = "AskOnce";
|