reach-api-sdk 1.0.193 → 1.0.195
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 +6816 -883
- package/dist/reach-sdk.js +4297 -225
- package/package.json +1 -1
- package/src/definition/swagger.yaml +16324 -4076
- package/src/index.ts +1 -0
- package/src/models/Course.ts +4 -0
- package/src/models/CreateDeal.ts +8 -0
- package/src/models/Deal.ts +8 -0
- package/src/models/Tenant.ts +2 -0
- package/src/models/TenantStatus.ts +12 -0
- package/src/services/ActivityPerformanceService.ts +129 -0
- package/src/services/AttendeesService.ts +111 -0
- package/src/services/BadEnglandReportService.ts +87 -0
- package/src/services/BookingService.ts +201 -0
- package/src/services/CancellationPoliciesService.ts +111 -0
- package/src/services/CourseSessionSchedulesService.ts +117 -0
- package/src/services/CourseSessionsService.ts +237 -0
- package/src/services/CoursesService.ts +273 -0
- package/src/services/CustomersService.ts +129 -0
- package/src/services/DealActivitiesService.ts +123 -0
- package/src/services/DealsService.ts +123 -0
- package/src/services/DiscountCodeUsesService.ts +105 -0
- package/src/services/EmailReminderSchedulesService.ts +117 -0
- package/src/services/EmailSettingsService.ts +117 -0
- package/src/services/FacilitiesService.ts +135 -0
- package/src/services/FacilityIndividualsService.ts +93 -0
- package/src/services/GenericActivityService.ts +346 -0
- package/src/services/ImageUploadHistoryService.ts +99 -0
- package/src/services/ImagesService.ts +147 -0
- package/src/services/LeasingService.ts +195 -0
- package/src/services/LocationsReportService.ts +105 -0
- package/src/services/NotificationQueueService.ts +99 -0
- package/src/services/NotificationSettingsService.ts +177 -0
- package/src/services/OffersService.ts +165 -0
- package/src/services/OpenactiveFeedIntermediateService.ts +93 -0
- package/src/services/OpenactiveFeedItemService.ts +99 -0
- package/src/services/OpportunityRegisterService.ts +147 -0
- package/src/services/OrderItemReportService.ts +123 -0
- package/src/services/OrderItemsService.ts +153 -24
- package/src/services/OrdersService.ts +195 -0
- package/src/services/OrgCourseUtilisationService.ts +147 -0
- package/src/services/PaymentPoliciesService.ts +111 -0
- package/src/services/PaymentsService.ts +93 -0
- package/src/services/PermissionsService.ts +87 -0
- package/src/services/PlatformPayoutsService.ts +99 -0
- package/src/services/ProgrammesService.ts +117 -0
- package/src/services/ProvidersService.ts +189 -0
- package/src/services/PublicCalendarService.ts +1 -1
- package/src/services/PublicGenericActivityService.ts +49 -0
- package/src/services/PublicOrderItemsService.ts +0 -12
- package/src/services/PublicScheduledSessionsService.ts +12 -0
- package/src/services/PublicSessionsService.ts +6 -0
- package/src/services/PublicVenuesService.ts +37 -0
- package/src/services/RecentOrderActivityReportService.ts +87 -0
- package/src/services/RegisterReportService.ts +117 -0
- package/src/services/RescheduleLogService.ts +99 -0
- package/src/services/ScheduledSessionsSchedulesService.ts +123 -0
- package/src/services/ScheduledSessionsService.ts +273 -0
- package/src/services/SessionsService.ts +273 -0
- package/src/services/SlotOffersService.ts +99 -0
- package/src/services/SlotScheduleOffersService.ts +99 -0
- package/src/services/SlotSchedulesService.ts +129 -0
- package/src/services/SlotsService.ts +207 -0
- package/src/services/StripeAccountService.ts +99 -0
- package/src/services/SurveyAnswersService.ts +129 -0
- package/src/services/SurveyCompletionLogService.ts +123 -0
- package/src/services/SurveyQuestionsService.ts +93 -0
- package/src/services/SurveyReportExtendedService.ts +105 -0
- package/src/services/SurveysService.ts +123 -0
- package/src/services/TemplateDetailsService.ts +93 -0
- package/src/services/TemplateFieldPermissionsService.ts +93 -0
- package/src/services/TemplateOffersService.ts +93 -0
- package/src/services/TemplatesService.ts +93 -0
- package/src/services/TenantWebsiteSettingsService.ts +87 -0
- package/src/services/TenantsService.ts +93 -0
- package/src/services/TotalRevenueReportService.ts +111 -0
- package/src/services/UserPermissionsService.ts +93 -0
- package/src/services/UserProgrammesService.ts +111 -0
- package/src/services/UserProvidersService.ts +111 -0
- package/src/services/UsersService.ts +123 -0
- package/src/services/VenueManagersService.ts +111 -0
- package/src/services/VenuePerformanceService.ts +129 -0
- package/src/services/VenuesReportService.ts +93 -0
- package/src/services/VenuesService.ts +262 -0
- package/src/services/WaitlistActivityReportService.ts +123 -0
- package/src/services/WaitlistActivityService.ts +123 -0
- package/src/services/WaitlistOpportunityReportService.ts +117 -0
- package/src/services/WaitlistOpportunityService.ts +117 -0
|
@@ -1158,6 +1158,279 @@ export class CoursesService {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
|
+
/**
|
|
1162
|
+
* Returns the number of results in the database given the provided search params.
|
|
1163
|
+
* @returns number OK
|
|
1164
|
+
* @throws ApiError
|
|
1165
|
+
*/
|
|
1166
|
+
public count({
|
|
1167
|
+
id,
|
|
1168
|
+
ids,
|
|
1169
|
+
venueId,
|
|
1170
|
+
programmeId,
|
|
1171
|
+
surveyId,
|
|
1172
|
+
cancellationPolicyId,
|
|
1173
|
+
paymentPolicyId,
|
|
1174
|
+
allowTemplating,
|
|
1175
|
+
archived,
|
|
1176
|
+
deleted,
|
|
1177
|
+
openActiveUpdate,
|
|
1178
|
+
dashboardRequest,
|
|
1179
|
+
bookingStatus,
|
|
1180
|
+
startDateTimeLte,
|
|
1181
|
+
startDateTimeGte,
|
|
1182
|
+
endDateTimeLte,
|
|
1183
|
+
endDateTimeGte,
|
|
1184
|
+
remainingUsesLte,
|
|
1185
|
+
remainingUsesGte,
|
|
1186
|
+
futureOnly,
|
|
1187
|
+
online,
|
|
1188
|
+
featured,
|
|
1189
|
+
hasAvailability,
|
|
1190
|
+
orderFirstNameContains,
|
|
1191
|
+
orderLastNameContains,
|
|
1192
|
+
sortBy,
|
|
1193
|
+
postCompletionEmailSent,
|
|
1194
|
+
searchGeoCenter,
|
|
1195
|
+
distance,
|
|
1196
|
+
templateFieldPermissionsId,
|
|
1197
|
+
templateFieldPermissionsIds,
|
|
1198
|
+
pageNumber,
|
|
1199
|
+
take,
|
|
1200
|
+
skip,
|
|
1201
|
+
limitListRequests,
|
|
1202
|
+
tenantId,
|
|
1203
|
+
modifiedById,
|
|
1204
|
+
modifiedByIds,
|
|
1205
|
+
dateCreatedGte,
|
|
1206
|
+
dateCreatedLte,
|
|
1207
|
+
isLive,
|
|
1208
|
+
sortOrderDirection,
|
|
1209
|
+
}: {
|
|
1210
|
+
/**
|
|
1211
|
+
* Gets or sets the queryable Course Id.
|
|
1212
|
+
*/
|
|
1213
|
+
id?: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Gets or sets the queryable course ids.
|
|
1216
|
+
*/
|
|
1217
|
+
ids?: Array<string>;
|
|
1218
|
+
/**
|
|
1219
|
+
* Gets or sets the queryable Venue Id.
|
|
1220
|
+
*/
|
|
1221
|
+
venueId?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* Gets or sets the queryable Programme Id.
|
|
1224
|
+
*/
|
|
1225
|
+
programmeId?: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* Gets or sets the queryable Survey Id.
|
|
1228
|
+
*/
|
|
1229
|
+
surveyId?: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* Gets or sets the queryable Cancellation policy Id.
|
|
1232
|
+
*/
|
|
1233
|
+
cancellationPolicyId?: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* Gets or sets the queryable Payment policy Id.
|
|
1236
|
+
*/
|
|
1237
|
+
paymentPolicyId?: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* Gets or sets a value indicating whether to include templatable courses.
|
|
1240
|
+
*/
|
|
1241
|
+
allowTemplating?: boolean;
|
|
1242
|
+
/**
|
|
1243
|
+
* Gets or sets a value indicating whether to include archived courses.
|
|
1244
|
+
*/
|
|
1245
|
+
archived?: boolean;
|
|
1246
|
+
/**
|
|
1247
|
+
* Gets or sets a value indicating whether to include deleted courses.
|
|
1248
|
+
*/
|
|
1249
|
+
deleted?: boolean;
|
|
1250
|
+
/**
|
|
1251
|
+
* Gets or sets a value indicating this an openactive reaquest.
|
|
1252
|
+
*/
|
|
1253
|
+
openActiveUpdate?: boolean;
|
|
1254
|
+
/**
|
|
1255
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
1256
|
+
*/
|
|
1257
|
+
dashboardRequest?: boolean;
|
|
1258
|
+
/**
|
|
1259
|
+
* Gets or sets the queryable booking status.
|
|
1260
|
+
*/
|
|
1261
|
+
bookingStatus?: BookingStatus;
|
|
1262
|
+
/**
|
|
1263
|
+
* Gets or sets the queryable scheduled session start date time is less than or equal to.
|
|
1264
|
+
*/
|
|
1265
|
+
startDateTimeLte?: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* Gets or sets the queryable scheduled session start date time is greater than or equal to.
|
|
1268
|
+
*/
|
|
1269
|
+
startDateTimeGte?: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* Gets or sets the queryable scheduled session end date time is less than or equal to.
|
|
1272
|
+
*/
|
|
1273
|
+
endDateTimeLte?: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Gets or sets the queryable scheduled session end date time is greater than or equal to.
|
|
1276
|
+
*/
|
|
1277
|
+
endDateTimeGte?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* Gets or sets the queryable slot remaining uses is less than or equal to.
|
|
1280
|
+
*/
|
|
1281
|
+
remainingUsesLte?: number;
|
|
1282
|
+
/**
|
|
1283
|
+
* Gets or sets the queryable slot remaining uses is greater than or equal to.
|
|
1284
|
+
*/
|
|
1285
|
+
remainingUsesGte?: number;
|
|
1286
|
+
/**
|
|
1287
|
+
* Gets or sets a value indicating whether to only return future scheduled session.
|
|
1288
|
+
*/
|
|
1289
|
+
futureOnly?: boolean;
|
|
1290
|
+
/**
|
|
1291
|
+
* Gets or sets a value indicating whether return online courses.
|
|
1292
|
+
*/
|
|
1293
|
+
online?: boolean;
|
|
1294
|
+
/**
|
|
1295
|
+
* Gets or sets a value indicating whether the course is featured on the storefront.
|
|
1296
|
+
*/
|
|
1297
|
+
featured?: boolean;
|
|
1298
|
+
/**
|
|
1299
|
+
* Gets or sets a value indicating whether the scheduled session has availability.
|
|
1300
|
+
*/
|
|
1301
|
+
hasAvailability?: boolean;
|
|
1302
|
+
/**
|
|
1303
|
+
* Gets or sets a value indicating whether the scheduled session has an order where the orders first name contains the given value.
|
|
1304
|
+
*/
|
|
1305
|
+
orderFirstNameContains?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* Gets or sets a value indicating whether the scheduled session has an order where the orders last name contains the given value.
|
|
1308
|
+
*/
|
|
1309
|
+
orderLastNameContains?: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* Gets or sets which field to sort by.
|
|
1312
|
+
*/
|
|
1313
|
+
sortBy?: CourseSearchSortBy;
|
|
1314
|
+
/**
|
|
1315
|
+
* Gets or sets a value indicating whether the course post completion email has been sent.
|
|
1316
|
+
*/
|
|
1317
|
+
postCompletionEmailSent?: boolean;
|
|
1318
|
+
/**
|
|
1319
|
+
* Gets or sets SearchGeoCenter.
|
|
1320
|
+
*/
|
|
1321
|
+
searchGeoCenter?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* Gets or sets Distance.
|
|
1324
|
+
*/
|
|
1325
|
+
distance?: number;
|
|
1326
|
+
/**
|
|
1327
|
+
* Gets or sets the queryable course template field permissions Id.
|
|
1328
|
+
*/
|
|
1329
|
+
templateFieldPermissionsId?: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* Gets or sets the queryable course template field permission ids.
|
|
1332
|
+
*/
|
|
1333
|
+
templateFieldPermissionsIds?: Array<string>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Gets or sets the page number for paged queries.
|
|
1336
|
+
*/
|
|
1337
|
+
pageNumber?: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
1340
|
+
*/
|
|
1341
|
+
take?: number;
|
|
1342
|
+
/**
|
|
1343
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
1344
|
+
*/
|
|
1345
|
+
skip?: number;
|
|
1346
|
+
/**
|
|
1347
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
1348
|
+
*/
|
|
1349
|
+
limitListRequests?: boolean;
|
|
1350
|
+
/**
|
|
1351
|
+
* Gets or sets the Tenant Id.
|
|
1352
|
+
*/
|
|
1353
|
+
tenantId?: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Gets or sets the Modifed By Id.
|
|
1356
|
+
*/
|
|
1357
|
+
modifiedById?: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* Gets or sets the Modifed By Ids.
|
|
1360
|
+
*/
|
|
1361
|
+
modifiedByIds?: Array<string>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Gets or sets the Date Created greater than equal to.
|
|
1364
|
+
*/
|
|
1365
|
+
dateCreatedGte?: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* Gets or sets the Date Created less than equal to.
|
|
1368
|
+
*/
|
|
1369
|
+
dateCreatedLte?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* Gets or sets the queryable only is live status.
|
|
1372
|
+
*/
|
|
1373
|
+
isLive?: boolean;
|
|
1374
|
+
/**
|
|
1375
|
+
* Gets or sets the sort order direction.
|
|
1376
|
+
*/
|
|
1377
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
1378
|
+
}): CancelablePromise<number> {
|
|
1379
|
+
return this.httpRequest.request({
|
|
1380
|
+
method: 'GET',
|
|
1381
|
+
url: '/api/courses/count',
|
|
1382
|
+
query: {
|
|
1383
|
+
Id: id,
|
|
1384
|
+
Ids: ids,
|
|
1385
|
+
VenueId: venueId,
|
|
1386
|
+
ProgrammeId: programmeId,
|
|
1387
|
+
SurveyId: surveyId,
|
|
1388
|
+
CancellationPolicyId: cancellationPolicyId,
|
|
1389
|
+
PaymentPolicyId: paymentPolicyId,
|
|
1390
|
+
AllowTemplating: allowTemplating,
|
|
1391
|
+
Archived: archived,
|
|
1392
|
+
Deleted: deleted,
|
|
1393
|
+
OpenActiveUpdate: openActiveUpdate,
|
|
1394
|
+
DashboardRequest: dashboardRequest,
|
|
1395
|
+
BookingStatus: bookingStatus,
|
|
1396
|
+
StartDateTimeLTE: startDateTimeLte,
|
|
1397
|
+
StartDateTimeGTE: startDateTimeGte,
|
|
1398
|
+
EndDateTimeLTE: endDateTimeLte,
|
|
1399
|
+
EndDateTimeGTE: endDateTimeGte,
|
|
1400
|
+
RemainingUsesLTE: remainingUsesLte,
|
|
1401
|
+
RemainingUsesGTE: remainingUsesGte,
|
|
1402
|
+
FutureOnly: futureOnly,
|
|
1403
|
+
Online: online,
|
|
1404
|
+
Featured: featured,
|
|
1405
|
+
HasAvailability: hasAvailability,
|
|
1406
|
+
OrderFirstNameContains: orderFirstNameContains,
|
|
1407
|
+
OrderLastNameContains: orderLastNameContains,
|
|
1408
|
+
SortBy: sortBy,
|
|
1409
|
+
PostCompletionEmailSent: postCompletionEmailSent,
|
|
1410
|
+
SearchGeoCenter: searchGeoCenter,
|
|
1411
|
+
Distance: distance,
|
|
1412
|
+
TemplateFieldPermissionsId: templateFieldPermissionsId,
|
|
1413
|
+
TemplateFieldPermissionsIds: templateFieldPermissionsIds,
|
|
1414
|
+
PageNumber: pageNumber,
|
|
1415
|
+
Take: take,
|
|
1416
|
+
Skip: skip,
|
|
1417
|
+
LimitListRequests: limitListRequests,
|
|
1418
|
+
TenantId: tenantId,
|
|
1419
|
+
ModifiedById: modifiedById,
|
|
1420
|
+
ModifiedByIds: modifiedByIds,
|
|
1421
|
+
DateCreatedGTE: dateCreatedGte,
|
|
1422
|
+
DateCreatedLTE: dateCreatedLte,
|
|
1423
|
+
IsLive: isLive,
|
|
1424
|
+
SortOrderDirection: sortOrderDirection,
|
|
1425
|
+
},
|
|
1426
|
+
errors: {
|
|
1427
|
+
400: `Bad Request`,
|
|
1428
|
+
422: `Unprocessable Content`,
|
|
1429
|
+
500: `Internal Server Error`,
|
|
1430
|
+
},
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1161
1434
|
/**
|
|
1162
1435
|
* Gets a list of resources unpaged and without references.
|
|
1163
1436
|
* @returns Course OK
|
|
@@ -823,6 +823,135 @@ export class CustomersService {
|
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Returns the number of results in the database given the provided search params.
|
|
828
|
+
* @returns number OK
|
|
829
|
+
* @throws ApiError
|
|
830
|
+
*/
|
|
831
|
+
public count({
|
|
832
|
+
wildcard,
|
|
833
|
+
displayEmail,
|
|
834
|
+
venueId,
|
|
835
|
+
programmeId,
|
|
836
|
+
marketingOptIn,
|
|
837
|
+
isActiveCustomer,
|
|
838
|
+
endUserIdentityId,
|
|
839
|
+
pageNumber,
|
|
840
|
+
take,
|
|
841
|
+
skip,
|
|
842
|
+
limitListRequests,
|
|
843
|
+
tenantId,
|
|
844
|
+
modifiedById,
|
|
845
|
+
modifiedByIds,
|
|
846
|
+
dateCreatedGte,
|
|
847
|
+
dateCreatedLte,
|
|
848
|
+
isLive,
|
|
849
|
+
sortOrderDirection,
|
|
850
|
+
}: {
|
|
851
|
+
/**
|
|
852
|
+
* Gets or sets the wildcard for use in a query search.
|
|
853
|
+
*/
|
|
854
|
+
wildcard?: string;
|
|
855
|
+
/**
|
|
856
|
+
* Gets or sets the customers email for use in a query search.
|
|
857
|
+
*/
|
|
858
|
+
displayEmail?: string;
|
|
859
|
+
/**
|
|
860
|
+
* Gets or sets the venue id for use in a query search.
|
|
861
|
+
*/
|
|
862
|
+
venueId?: string;
|
|
863
|
+
/**
|
|
864
|
+
* Gets or sets the programme id for use in a query search - filtering for customers who have touch points with the programme.
|
|
865
|
+
*/
|
|
866
|
+
programmeId?: string;
|
|
867
|
+
/**
|
|
868
|
+
* Gets or sets if the customer is marketing opted in or out.
|
|
869
|
+
*/
|
|
870
|
+
marketingOptIn?: boolean;
|
|
871
|
+
/**
|
|
872
|
+
* Gets or sets a value indicating whether the customer is an active customer, that is, they have completed at least 1 order through to the 'Booked' stage.
|
|
873
|
+
*/
|
|
874
|
+
isActiveCustomer?: boolean;
|
|
875
|
+
/**
|
|
876
|
+
* Gets or sets the customers end user identity id.
|
|
877
|
+
*/
|
|
878
|
+
endUserIdentityId?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Gets or sets the page number for paged queries.
|
|
881
|
+
*/
|
|
882
|
+
pageNumber?: number;
|
|
883
|
+
/**
|
|
884
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
885
|
+
*/
|
|
886
|
+
take?: number;
|
|
887
|
+
/**
|
|
888
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
889
|
+
*/
|
|
890
|
+
skip?: number;
|
|
891
|
+
/**
|
|
892
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
893
|
+
*/
|
|
894
|
+
limitListRequests?: boolean;
|
|
895
|
+
/**
|
|
896
|
+
* Gets or sets the Tenant Id.
|
|
897
|
+
*/
|
|
898
|
+
tenantId?: string;
|
|
899
|
+
/**
|
|
900
|
+
* Gets or sets the Modifed By Id.
|
|
901
|
+
*/
|
|
902
|
+
modifiedById?: string;
|
|
903
|
+
/**
|
|
904
|
+
* Gets or sets the Modifed By Ids.
|
|
905
|
+
*/
|
|
906
|
+
modifiedByIds?: Array<string>;
|
|
907
|
+
/**
|
|
908
|
+
* Gets or sets the Date Created greater than equal to.
|
|
909
|
+
*/
|
|
910
|
+
dateCreatedGte?: string;
|
|
911
|
+
/**
|
|
912
|
+
* Gets or sets the Date Created less than equal to.
|
|
913
|
+
*/
|
|
914
|
+
dateCreatedLte?: string;
|
|
915
|
+
/**
|
|
916
|
+
* Gets or sets the queryable only is live status.
|
|
917
|
+
*/
|
|
918
|
+
isLive?: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* Gets or sets the sort order direction.
|
|
921
|
+
*/
|
|
922
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
923
|
+
}): CancelablePromise<number> {
|
|
924
|
+
return this.httpRequest.request({
|
|
925
|
+
method: 'GET',
|
|
926
|
+
url: '/api/customers/count',
|
|
927
|
+
query: {
|
|
928
|
+
Wildcard: wildcard,
|
|
929
|
+
DisplayEmail: displayEmail,
|
|
930
|
+
VenueId: venueId,
|
|
931
|
+
ProgrammeId: programmeId,
|
|
932
|
+
MarketingOptIn: marketingOptIn,
|
|
933
|
+
IsActiveCustomer: isActiveCustomer,
|
|
934
|
+
EndUserIdentityId: endUserIdentityId,
|
|
935
|
+
PageNumber: pageNumber,
|
|
936
|
+
Take: take,
|
|
937
|
+
Skip: skip,
|
|
938
|
+
LimitListRequests: limitListRequests,
|
|
939
|
+
TenantId: tenantId,
|
|
940
|
+
ModifiedById: modifiedById,
|
|
941
|
+
ModifiedByIds: modifiedByIds,
|
|
942
|
+
DateCreatedGTE: dateCreatedGte,
|
|
943
|
+
DateCreatedLTE: dateCreatedLte,
|
|
944
|
+
IsLive: isLive,
|
|
945
|
+
SortOrderDirection: sortOrderDirection,
|
|
946
|
+
},
|
|
947
|
+
errors: {
|
|
948
|
+
400: `Bad Request`,
|
|
949
|
+
422: `Unprocessable Content`,
|
|
950
|
+
500: `Internal Server Error`,
|
|
951
|
+
},
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
|
|
826
955
|
/**
|
|
827
956
|
* Gets a list of resources unpaged and without references.
|
|
828
957
|
* @returns Customer OK
|
|
@@ -539,6 +539,129 @@ export class DealActivitiesService {
|
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Returns the number of results in the database given the provided search params.
|
|
544
|
+
* @returns number OK
|
|
545
|
+
* @throws ApiError
|
|
546
|
+
*/
|
|
547
|
+
public count({
|
|
548
|
+
dealId,
|
|
549
|
+
dealIds,
|
|
550
|
+
courseId,
|
|
551
|
+
courseIds,
|
|
552
|
+
sessionId,
|
|
553
|
+
sessionIds,
|
|
554
|
+
pageNumber,
|
|
555
|
+
take,
|
|
556
|
+
skip,
|
|
557
|
+
limitListRequests,
|
|
558
|
+
tenantId,
|
|
559
|
+
modifiedById,
|
|
560
|
+
modifiedByIds,
|
|
561
|
+
dateCreatedGte,
|
|
562
|
+
dateCreatedLte,
|
|
563
|
+
isLive,
|
|
564
|
+
sortOrderDirection,
|
|
565
|
+
}: {
|
|
566
|
+
/**
|
|
567
|
+
* Gets or sets the queryable deal id.
|
|
568
|
+
*/
|
|
569
|
+
dealId?: string;
|
|
570
|
+
/**
|
|
571
|
+
* Gets or sets the queryable dealids.
|
|
572
|
+
*/
|
|
573
|
+
dealIds?: Array<string>;
|
|
574
|
+
/**
|
|
575
|
+
* Gets or sets the queryable course id.
|
|
576
|
+
*/
|
|
577
|
+
courseId?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Gets or sets the queryable course ids.
|
|
580
|
+
*/
|
|
581
|
+
courseIds?: Array<string>;
|
|
582
|
+
/**
|
|
583
|
+
* Gets or sets the queryable session id.
|
|
584
|
+
*/
|
|
585
|
+
sessionId?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Gets or sets the queryable session ids.
|
|
588
|
+
*/
|
|
589
|
+
sessionIds?: Array<string>;
|
|
590
|
+
/**
|
|
591
|
+
* Gets or sets the page number for paged queries.
|
|
592
|
+
*/
|
|
593
|
+
pageNumber?: number;
|
|
594
|
+
/**
|
|
595
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
596
|
+
*/
|
|
597
|
+
take?: number;
|
|
598
|
+
/**
|
|
599
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
600
|
+
*/
|
|
601
|
+
skip?: number;
|
|
602
|
+
/**
|
|
603
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
604
|
+
*/
|
|
605
|
+
limitListRequests?: boolean;
|
|
606
|
+
/**
|
|
607
|
+
* Gets or sets the Tenant Id.
|
|
608
|
+
*/
|
|
609
|
+
tenantId?: string;
|
|
610
|
+
/**
|
|
611
|
+
* Gets or sets the Modifed By Id.
|
|
612
|
+
*/
|
|
613
|
+
modifiedById?: string;
|
|
614
|
+
/**
|
|
615
|
+
* Gets or sets the Modifed By Ids.
|
|
616
|
+
*/
|
|
617
|
+
modifiedByIds?: Array<string>;
|
|
618
|
+
/**
|
|
619
|
+
* Gets or sets the Date Created greater than equal to.
|
|
620
|
+
*/
|
|
621
|
+
dateCreatedGte?: string;
|
|
622
|
+
/**
|
|
623
|
+
* Gets or sets the Date Created less than equal to.
|
|
624
|
+
*/
|
|
625
|
+
dateCreatedLte?: string;
|
|
626
|
+
/**
|
|
627
|
+
* Gets or sets the queryable only is live status.
|
|
628
|
+
*/
|
|
629
|
+
isLive?: boolean;
|
|
630
|
+
/**
|
|
631
|
+
* Gets or sets the sort order direction.
|
|
632
|
+
*/
|
|
633
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
634
|
+
}): CancelablePromise<number> {
|
|
635
|
+
return this.httpRequest.request({
|
|
636
|
+
method: 'GET',
|
|
637
|
+
url: '/api/deal-activities/count',
|
|
638
|
+
query: {
|
|
639
|
+
DealId: dealId,
|
|
640
|
+
DealIds: dealIds,
|
|
641
|
+
CourseId: courseId,
|
|
642
|
+
CourseIds: courseIds,
|
|
643
|
+
SessionId: sessionId,
|
|
644
|
+
SessionIds: sessionIds,
|
|
645
|
+
PageNumber: pageNumber,
|
|
646
|
+
Take: take,
|
|
647
|
+
Skip: skip,
|
|
648
|
+
LimitListRequests: limitListRequests,
|
|
649
|
+
TenantId: tenantId,
|
|
650
|
+
ModifiedById: modifiedById,
|
|
651
|
+
ModifiedByIds: modifiedByIds,
|
|
652
|
+
DateCreatedGTE: dateCreatedGte,
|
|
653
|
+
DateCreatedLTE: dateCreatedLte,
|
|
654
|
+
IsLive: isLive,
|
|
655
|
+
SortOrderDirection: sortOrderDirection,
|
|
656
|
+
},
|
|
657
|
+
errors: {
|
|
658
|
+
400: `Bad Request`,
|
|
659
|
+
422: `Unprocessable Content`,
|
|
660
|
+
500: `Internal Server Error`,
|
|
661
|
+
},
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
|
|
542
665
|
/**
|
|
543
666
|
* Gets a list of resources unpaged and without references.
|
|
544
667
|
* @returns DealActivity OK
|
|
@@ -517,6 +517,129 @@ export class DealsService {
|
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
+
/**
|
|
521
|
+
* Returns the number of results in the database given the provided search params.
|
|
522
|
+
* @returns number OK
|
|
523
|
+
* @throws ApiError
|
|
524
|
+
*/
|
|
525
|
+
public count({
|
|
526
|
+
id,
|
|
527
|
+
ids,
|
|
528
|
+
target,
|
|
529
|
+
type,
|
|
530
|
+
types,
|
|
531
|
+
discountCode,
|
|
532
|
+
pageNumber,
|
|
533
|
+
take,
|
|
534
|
+
skip,
|
|
535
|
+
limitListRequests,
|
|
536
|
+
tenantId,
|
|
537
|
+
modifiedById,
|
|
538
|
+
modifiedByIds,
|
|
539
|
+
dateCreatedGte,
|
|
540
|
+
dateCreatedLte,
|
|
541
|
+
isLive,
|
|
542
|
+
sortOrderDirection,
|
|
543
|
+
}: {
|
|
544
|
+
/**
|
|
545
|
+
* Gets or sets the queryable Deal Id.
|
|
546
|
+
*/
|
|
547
|
+
id?: string;
|
|
548
|
+
/**
|
|
549
|
+
* Gets or sets the queryable Deal ids.
|
|
550
|
+
*/
|
|
551
|
+
ids?: Array<string>;
|
|
552
|
+
/**
|
|
553
|
+
* Gets or sets the queryable target.
|
|
554
|
+
*/
|
|
555
|
+
target?: DealTarget;
|
|
556
|
+
/**
|
|
557
|
+
* Gets or sets the queryable type.
|
|
558
|
+
*/
|
|
559
|
+
type?: DealType;
|
|
560
|
+
/**
|
|
561
|
+
* Gets or sets the queryable Deal types.
|
|
562
|
+
*/
|
|
563
|
+
types?: Array<DealType>;
|
|
564
|
+
/**
|
|
565
|
+
* Gets or sets the queryable discount code.
|
|
566
|
+
*/
|
|
567
|
+
discountCode?: string;
|
|
568
|
+
/**
|
|
569
|
+
* Gets or sets the page number for paged queries.
|
|
570
|
+
*/
|
|
571
|
+
pageNumber?: number;
|
|
572
|
+
/**
|
|
573
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
574
|
+
*/
|
|
575
|
+
take?: number;
|
|
576
|
+
/**
|
|
577
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
578
|
+
*/
|
|
579
|
+
skip?: number;
|
|
580
|
+
/**
|
|
581
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
582
|
+
*/
|
|
583
|
+
limitListRequests?: boolean;
|
|
584
|
+
/**
|
|
585
|
+
* Gets or sets the Tenant Id.
|
|
586
|
+
*/
|
|
587
|
+
tenantId?: string;
|
|
588
|
+
/**
|
|
589
|
+
* Gets or sets the Modifed By Id.
|
|
590
|
+
*/
|
|
591
|
+
modifiedById?: string;
|
|
592
|
+
/**
|
|
593
|
+
* Gets or sets the Modifed By Ids.
|
|
594
|
+
*/
|
|
595
|
+
modifiedByIds?: Array<string>;
|
|
596
|
+
/**
|
|
597
|
+
* Gets or sets the Date Created greater than equal to.
|
|
598
|
+
*/
|
|
599
|
+
dateCreatedGte?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Gets or sets the Date Created less than equal to.
|
|
602
|
+
*/
|
|
603
|
+
dateCreatedLte?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Gets or sets the queryable only is live status.
|
|
606
|
+
*/
|
|
607
|
+
isLive?: boolean;
|
|
608
|
+
/**
|
|
609
|
+
* Gets or sets the sort order direction.
|
|
610
|
+
*/
|
|
611
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
612
|
+
}): CancelablePromise<number> {
|
|
613
|
+
return this.httpRequest.request({
|
|
614
|
+
method: 'GET',
|
|
615
|
+
url: '/api/deals/count',
|
|
616
|
+
query: {
|
|
617
|
+
Id: id,
|
|
618
|
+
Ids: ids,
|
|
619
|
+
Target: target,
|
|
620
|
+
Type: type,
|
|
621
|
+
Types: types,
|
|
622
|
+
DiscountCode: discountCode,
|
|
623
|
+
PageNumber: pageNumber,
|
|
624
|
+
Take: take,
|
|
625
|
+
Skip: skip,
|
|
626
|
+
LimitListRequests: limitListRequests,
|
|
627
|
+
TenantId: tenantId,
|
|
628
|
+
ModifiedById: modifiedById,
|
|
629
|
+
ModifiedByIds: modifiedByIds,
|
|
630
|
+
DateCreatedGTE: dateCreatedGte,
|
|
631
|
+
DateCreatedLTE: dateCreatedLte,
|
|
632
|
+
IsLive: isLive,
|
|
633
|
+
SortOrderDirection: sortOrderDirection,
|
|
634
|
+
},
|
|
635
|
+
errors: {
|
|
636
|
+
400: `Bad Request`,
|
|
637
|
+
422: `Unprocessable Content`,
|
|
638
|
+
500: `Internal Server Error`,
|
|
639
|
+
},
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
|
|
520
643
|
/**
|
|
521
644
|
* Gets a list of resources unpaged and without references.
|
|
522
645
|
* @returns Deal OK
|