reach-api-sdk 1.0.205 → 1.0.206
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 +1264 -258
- package/dist/reach-sdk.js +867 -213
- package/package.json +1 -1
- package/src/apiClient.ts +3 -0
- package/src/definition/swagger.yaml +4085 -1614
- package/src/index.ts +14 -0
- package/src/models/CustomFieldDataType.ts +22 -0
- package/src/models/CustomFieldDefinition.ts +100 -0
- package/src/models/CustomFieldDefinitionPage.ts +12 -0
- package/src/models/CustomFieldDefinitionPatch.ts +84 -0
- package/src/models/CustomFieldDefinitionPost.ts +80 -0
- package/src/models/CustomFieldDefinitionWithValue.ts +82 -0
- package/src/models/CustomFieldOption.ts +50 -0
- package/src/models/CustomFieldOptionDto.ts +14 -0
- package/src/models/CustomFieldOptionPost.ts +18 -0
- package/src/models/CustomFieldValueEntityType.ts +13 -0
- package/src/models/CustomFieldValueUpdate.ts +18 -0
- package/src/models/CustomFieldsBulkUpdate.ts +16 -0
- package/src/models/UpdateCustomFieldOption.ts +26 -0
- package/src/services/CoursesService.ts +63 -0
- package/src/services/CustomFieldsService.ts +780 -0
- package/src/services/PublicCoursesService.ts +36 -0
- package/src/services/PublicSessionsService.ts +36 -0
- package/src/services/PublicVenuesService.ts +36 -0
- package/src/services/SessionsService.ts +63 -0
- package/src/services/VenuesService.ts +63 -0
|
@@ -8,6 +8,7 @@ import type { CoursePage } from '../models/CoursePage';
|
|
|
8
8
|
import type { CoursePatch } from '../models/CoursePatch';
|
|
9
9
|
import type { CoursePost } from '../models/CoursePost';
|
|
10
10
|
import type { CourseSearchSortBy } from '../models/CourseSearchSortBy';
|
|
11
|
+
import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
|
|
11
12
|
import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
|
|
12
13
|
|
|
13
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -396,6 +397,41 @@ export class PublicCoursesService {
|
|
|
396
397
|
});
|
|
397
398
|
}
|
|
398
399
|
|
|
400
|
+
/**
|
|
401
|
+
* Gets public custom field definitions with their current values for a course.
|
|
402
|
+
* @returns CustomFieldDefinitionWithValue OK
|
|
403
|
+
* @throws ApiError
|
|
404
|
+
*/
|
|
405
|
+
public getPublicCustomFields({
|
|
406
|
+
courseId,
|
|
407
|
+
xTenantSubdomain,
|
|
408
|
+
}: {
|
|
409
|
+
/**
|
|
410
|
+
* The course id.
|
|
411
|
+
*/
|
|
412
|
+
courseId: string;
|
|
413
|
+
/**
|
|
414
|
+
* The tenants subdomain.
|
|
415
|
+
*/
|
|
416
|
+
xTenantSubdomain?: string;
|
|
417
|
+
}): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
|
|
418
|
+
return this.httpRequest.request({
|
|
419
|
+
method: 'GET',
|
|
420
|
+
url: '/api/public/courses/{courseId}/custom-fields',
|
|
421
|
+
path: {
|
|
422
|
+
courseId: courseId,
|
|
423
|
+
},
|
|
424
|
+
headers: {
|
|
425
|
+
x_tenant_subdomain: xTenantSubdomain,
|
|
426
|
+
},
|
|
427
|
+
errors: {
|
|
428
|
+
400: `Bad Request`,
|
|
429
|
+
422: `Unprocessable Content`,
|
|
430
|
+
500: `Internal Server Error`,
|
|
431
|
+
},
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
|
|
399
435
|
/**
|
|
400
436
|
* Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
|
|
401
437
|
* @returns Course OK
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { BookingStatus } from '../models/BookingStatus';
|
|
6
|
+
import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
|
|
6
7
|
import type { Gender } from '../models/Gender';
|
|
7
8
|
import type { PeriodsOfWeek } from '../models/PeriodsOfWeek';
|
|
8
9
|
import type { ScheduledSession } from '../models/ScheduledSession';
|
|
@@ -441,6 +442,41 @@ export class PublicSessionsService {
|
|
|
441
442
|
});
|
|
442
443
|
}
|
|
443
444
|
|
|
445
|
+
/**
|
|
446
|
+
* Gets public custom field definitions with their current values for a session.
|
|
447
|
+
* @returns CustomFieldDefinitionWithValue OK
|
|
448
|
+
* @throws ApiError
|
|
449
|
+
*/
|
|
450
|
+
public getPublicCustomFields({
|
|
451
|
+
sessionId,
|
|
452
|
+
xTenantSubdomain,
|
|
453
|
+
}: {
|
|
454
|
+
/**
|
|
455
|
+
* The session id.
|
|
456
|
+
*/
|
|
457
|
+
sessionId: string;
|
|
458
|
+
/**
|
|
459
|
+
* The tenants subdomain.
|
|
460
|
+
*/
|
|
461
|
+
xTenantSubdomain?: string;
|
|
462
|
+
}): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
|
|
463
|
+
return this.httpRequest.request({
|
|
464
|
+
method: 'GET',
|
|
465
|
+
url: '/api/public/sessions/{sessionId}/custom-fields',
|
|
466
|
+
path: {
|
|
467
|
+
sessionId: sessionId,
|
|
468
|
+
},
|
|
469
|
+
headers: {
|
|
470
|
+
x_tenant_subdomain: xTenantSubdomain,
|
|
471
|
+
},
|
|
472
|
+
errors: {
|
|
473
|
+
400: `Bad Request`,
|
|
474
|
+
422: `Unprocessable Content`,
|
|
475
|
+
500: `Internal Server Error`,
|
|
476
|
+
},
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
|
|
444
480
|
/**
|
|
445
481
|
* Returns distinct slot dates without time information.
|
|
446
482
|
* @returns any OK
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
|
|
5
6
|
import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
|
|
6
7
|
import type { TenantStatus } from '../models/TenantStatus';
|
|
7
8
|
import type { Venue } from '../models/Venue';
|
|
@@ -773,6 +774,41 @@ export class PublicVenuesService {
|
|
|
773
774
|
});
|
|
774
775
|
}
|
|
775
776
|
|
|
777
|
+
/**
|
|
778
|
+
* Gets public custom field definitions with their current values for a venue.
|
|
779
|
+
* @returns CustomFieldDefinitionWithValue OK
|
|
780
|
+
* @throws ApiError
|
|
781
|
+
*/
|
|
782
|
+
public getPublicCustomFields({
|
|
783
|
+
venueId,
|
|
784
|
+
xTenantSubdomain,
|
|
785
|
+
}: {
|
|
786
|
+
/**
|
|
787
|
+
* The venue id.
|
|
788
|
+
*/
|
|
789
|
+
venueId: string;
|
|
790
|
+
/**
|
|
791
|
+
* The tenants subdomain.
|
|
792
|
+
*/
|
|
793
|
+
xTenantSubdomain?: string;
|
|
794
|
+
}): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
|
|
795
|
+
return this.httpRequest.request({
|
|
796
|
+
method: 'GET',
|
|
797
|
+
url: '/api/public/venues/{venueId}/custom-fields',
|
|
798
|
+
path: {
|
|
799
|
+
venueId: venueId,
|
|
800
|
+
},
|
|
801
|
+
headers: {
|
|
802
|
+
x_tenant_subdomain: xTenantSubdomain,
|
|
803
|
+
},
|
|
804
|
+
errors: {
|
|
805
|
+
400: `Bad Request`,
|
|
806
|
+
422: `Unprocessable Content`,
|
|
807
|
+
500: `Internal Server Error`,
|
|
808
|
+
},
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
|
|
776
812
|
/**
|
|
777
813
|
* Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
|
|
778
814
|
* @returns Venue OK
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
|
|
6
|
+
import type { CustomFieldsBulkUpdate } from '../models/CustomFieldsBulkUpdate';
|
|
5
7
|
import type { Gender } from '../models/Gender';
|
|
6
8
|
import type { PeriodsOfWeek } from '../models/PeriodsOfWeek';
|
|
7
9
|
import type { ScheduledSession } from '../models/ScheduledSession';
|
|
@@ -328,6 +330,67 @@ export class SessionsService {
|
|
|
328
330
|
});
|
|
329
331
|
}
|
|
330
332
|
|
|
333
|
+
/**
|
|
334
|
+
* Gets custom field definitions with their current values for a session.
|
|
335
|
+
* @returns CustomFieldDefinitionWithValue OK
|
|
336
|
+
* @throws ApiError
|
|
337
|
+
*/
|
|
338
|
+
public getCustomFields({
|
|
339
|
+
sessionId,
|
|
340
|
+
}: {
|
|
341
|
+
/**
|
|
342
|
+
* The session id.
|
|
343
|
+
*/
|
|
344
|
+
sessionId: string;
|
|
345
|
+
}): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
|
|
346
|
+
return this.httpRequest.request({
|
|
347
|
+
method: 'GET',
|
|
348
|
+
url: '/api/sessions/{sessionId}/custom-fields',
|
|
349
|
+
path: {
|
|
350
|
+
sessionId: sessionId,
|
|
351
|
+
},
|
|
352
|
+
errors: {
|
|
353
|
+
400: `Bad Request`,
|
|
354
|
+
422: `Unprocessable Content`,
|
|
355
|
+
500: `Internal Server Error`,
|
|
356
|
+
},
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Bulk updates custom field values for a session.
|
|
362
|
+
* @returns CustomFieldDefinitionWithValue OK
|
|
363
|
+
* @throws ApiError
|
|
364
|
+
*/
|
|
365
|
+
public bulkUpdateCustomFields({
|
|
366
|
+
sessionId,
|
|
367
|
+
requestBody,
|
|
368
|
+
}: {
|
|
369
|
+
/**
|
|
370
|
+
* The session id.
|
|
371
|
+
*/
|
|
372
|
+
sessionId: string;
|
|
373
|
+
/**
|
|
374
|
+
* The bulk update request containing all custom field values.
|
|
375
|
+
*/
|
|
376
|
+
requestBody?: CustomFieldsBulkUpdate;
|
|
377
|
+
}): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
|
|
378
|
+
return this.httpRequest.request({
|
|
379
|
+
method: 'PUT',
|
|
380
|
+
url: '/api/sessions/{sessionId}/custom-fields',
|
|
381
|
+
path: {
|
|
382
|
+
sessionId: sessionId,
|
|
383
|
+
},
|
|
384
|
+
body: requestBody,
|
|
385
|
+
mediaType: 'application/json',
|
|
386
|
+
errors: {
|
|
387
|
+
400: `Bad Request`,
|
|
388
|
+
422: `Unprocessable Content`,
|
|
389
|
+
500: `Internal Server Error`,
|
|
390
|
+
},
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
|
|
331
394
|
/**
|
|
332
395
|
* Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
|
|
333
396
|
* @returns Session OK
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
|
|
6
|
+
import type { CustomFieldsBulkUpdate } from '../models/CustomFieldsBulkUpdate';
|
|
5
7
|
import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
|
|
6
8
|
import type { TenantStatus } from '../models/TenantStatus';
|
|
7
9
|
import type { Venue } from '../models/Venue';
|
|
@@ -227,6 +229,67 @@ export class VenuesService {
|
|
|
227
229
|
});
|
|
228
230
|
}
|
|
229
231
|
|
|
232
|
+
/**
|
|
233
|
+
* Gets custom field definitions with their current values for a venue.
|
|
234
|
+
* @returns CustomFieldDefinitionWithValue OK
|
|
235
|
+
* @throws ApiError
|
|
236
|
+
*/
|
|
237
|
+
public getCustomFields({
|
|
238
|
+
venueId,
|
|
239
|
+
}: {
|
|
240
|
+
/**
|
|
241
|
+
* The venue id.
|
|
242
|
+
*/
|
|
243
|
+
venueId: string;
|
|
244
|
+
}): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
|
|
245
|
+
return this.httpRequest.request({
|
|
246
|
+
method: 'GET',
|
|
247
|
+
url: '/api/venues/{venueId}/custom-fields',
|
|
248
|
+
path: {
|
|
249
|
+
venueId: venueId,
|
|
250
|
+
},
|
|
251
|
+
errors: {
|
|
252
|
+
400: `Bad Request`,
|
|
253
|
+
422: `Unprocessable Content`,
|
|
254
|
+
500: `Internal Server Error`,
|
|
255
|
+
},
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Bulk updates custom field values for a venue.
|
|
261
|
+
* @returns CustomFieldDefinitionWithValue OK
|
|
262
|
+
* @throws ApiError
|
|
263
|
+
*/
|
|
264
|
+
public bulkUpdateCustomFields({
|
|
265
|
+
venueId,
|
|
266
|
+
requestBody,
|
|
267
|
+
}: {
|
|
268
|
+
/**
|
|
269
|
+
* The venue id.
|
|
270
|
+
*/
|
|
271
|
+
venueId: string;
|
|
272
|
+
/**
|
|
273
|
+
* The bulk update request containing all custom field values.
|
|
274
|
+
*/
|
|
275
|
+
requestBody?: CustomFieldsBulkUpdate;
|
|
276
|
+
}): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
|
|
277
|
+
return this.httpRequest.request({
|
|
278
|
+
method: 'PUT',
|
|
279
|
+
url: '/api/venues/{venueId}/custom-fields',
|
|
280
|
+
path: {
|
|
281
|
+
venueId: venueId,
|
|
282
|
+
},
|
|
283
|
+
body: requestBody,
|
|
284
|
+
mediaType: 'application/json',
|
|
285
|
+
errors: {
|
|
286
|
+
400: `Bad Request`,
|
|
287
|
+
422: `Unprocessable Content`,
|
|
288
|
+
500: `Internal Server Error`,
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
|
|
230
293
|
/**
|
|
231
294
|
* Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
|
|
232
295
|
* @returns Venue OK
|