reach-api-sdk 1.0.196 → 1.0.197
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 +243 -100
- package/dist/reach-sdk.js +123 -73
- package/package.json +1 -1
- package/src/definition/swagger.yaml +265 -72
- package/src/index.ts +1 -0
- package/src/models/Course.ts +4 -0
- package/src/models/CoursePatch.ts +4 -0
- package/src/models/CreateTemplateDetail.ts +4 -0
- package/src/models/CreateTemplateFieldPermission.ts +1 -0
- package/src/models/GenericActivity.ts +4 -0
- package/src/models/Programme.ts +2 -0
- package/src/models/ProgrammePatch.ts +3 -0
- package/src/models/Session.ts +4 -0
- package/src/models/SessionPatch.ts +4 -0
- package/src/models/TemplateDetail.ts +4 -0
- package/src/models/TemplateDetailPatch.ts +4 -0
- package/src/models/TemplateFieldPermission.ts +1 -0
- package/src/models/TemplateFieldPermissionPatch.ts +1 -0
- package/src/models/WaitlistConversionStatsResponseDto.ts +10 -0
- package/src/services/CoursesService.ts +30 -0
- package/src/services/GenericActivityService.ts +84 -48
- package/src/services/PublicCoursesService.ts +12 -0
- package/src/services/PublicGenericActivityService.ts +56 -32
- package/src/services/PublicNetworksService.ts +14 -8
- package/src/services/PublicSessionsService.ts +28 -16
- package/src/services/SessionsService.ts +70 -40
- package/src/services/WaitlistOpportunityReportService.ts +3 -2
package/src/index.ts
CHANGED
|
@@ -440,6 +440,7 @@ export type { WaitlistActivityReport } from './models/WaitlistActivityReport';
|
|
|
440
440
|
export type { WaitlistActivityReportPage } from './models/WaitlistActivityReportPage';
|
|
441
441
|
export type { WaitlistActivityReportPatch } from './models/WaitlistActivityReportPatch';
|
|
442
442
|
export type { WaitlistActivityReportPost } from './models/WaitlistActivityReportPost';
|
|
443
|
+
export type { WaitlistConversionStatsResponseDto } from './models/WaitlistConversionStatsResponseDto';
|
|
443
444
|
export type { WaitlistOpportunity } from './models/WaitlistOpportunity';
|
|
444
445
|
export type { WaitlistOpportunityPage } from './models/WaitlistOpportunityPage';
|
|
445
446
|
export type { WaitlistOpportunityPatch } from './models/WaitlistOpportunityPatch';
|
package/src/models/Course.ts
CHANGED
|
@@ -140,6 +140,10 @@ export type Course = {
|
|
|
140
140
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
141
141
|
*/
|
|
142
142
|
noAgeRestriction?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Gets or sets a value indicating whether activity is private or no.
|
|
145
|
+
*/
|
|
146
|
+
private?: boolean;
|
|
143
147
|
/**
|
|
144
148
|
* Gets or sets additional support options.
|
|
145
149
|
*/
|
|
@@ -90,6 +90,10 @@ export type CoursePatch = {
|
|
|
90
90
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
91
91
|
*/
|
|
92
92
|
noAgeRestriction?: boolean | null;
|
|
93
|
+
/**
|
|
94
|
+
* Gets or sets a value indicating whether course is private or no.
|
|
95
|
+
*/
|
|
96
|
+
private?: boolean | null;
|
|
93
97
|
/**
|
|
94
98
|
* Gets or sets a value indicating whether the course is online and can take bookings.
|
|
95
99
|
*/
|
|
@@ -87,6 +87,10 @@ export type CreateTemplateDetail = {
|
|
|
87
87
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
88
88
|
*/
|
|
89
89
|
noAgeRestriction?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Gets or sets a value indicating whether activity is private or no.
|
|
92
|
+
*/
|
|
93
|
+
private?: boolean;
|
|
90
94
|
/**
|
|
91
95
|
* Gets or sets the templates additional support options.
|
|
92
96
|
*/
|
|
@@ -56,6 +56,7 @@ export type CreateTemplateFieldPermission = {
|
|
|
56
56
|
minAge?: FieldPermission;
|
|
57
57
|
maxAge?: FieldPermission;
|
|
58
58
|
noAgeRestriction?: FieldPermission;
|
|
59
|
+
private?: FieldPermission;
|
|
59
60
|
additionalSupport?: FieldPermission;
|
|
60
61
|
contactName?: FieldPermission;
|
|
61
62
|
contactPhone?: FieldPermission;
|
|
@@ -106,6 +106,10 @@ export type GenericActivity = {
|
|
|
106
106
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
107
107
|
*/
|
|
108
108
|
noAgeRestriction?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Gets or sets a value indicating whether activity is private or not.
|
|
111
|
+
*/
|
|
112
|
+
private?: boolean;
|
|
109
113
|
/**
|
|
110
114
|
* Gets or sets a value indicating whether the activity should be featured on the storefront.
|
|
111
115
|
*/
|
package/src/models/Programme.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { Course } from './Course';
|
|
|
7
7
|
import type { Image } from './Image';
|
|
8
8
|
import type { Session } from './Session';
|
|
9
9
|
import type { Tenant } from './Tenant';
|
|
10
|
+
import type { UpcomingLayout } from './UpcomingLayout';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Represents a Programme within the Reach application.
|
|
@@ -61,6 +62,7 @@ export type Programme = {
|
|
|
61
62
|
* Gets or sets the programmes sort order with 0 as base.
|
|
62
63
|
*/
|
|
63
64
|
sortOrder?: number | null;
|
|
65
|
+
upcomingLayout?: UpcomingLayout;
|
|
64
66
|
tenant?: Tenant;
|
|
65
67
|
/**
|
|
66
68
|
* Gets or sets the programmes referenced sessions.
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
|
|
6
|
+
import type { UpcomingLayout } from './UpcomingLayout';
|
|
7
|
+
|
|
6
8
|
/**
|
|
7
9
|
* Post model for programme updates.
|
|
8
10
|
*/
|
|
@@ -27,4 +29,5 @@ export type ProgrammePatch = {
|
|
|
27
29
|
* Gets or sets the programme image url.
|
|
28
30
|
*/
|
|
29
31
|
imageUrl?: string | null;
|
|
32
|
+
upcomingLayout: UpcomingLayout;
|
|
30
33
|
};
|
package/src/models/Session.ts
CHANGED
|
@@ -133,6 +133,10 @@ export type Session = {
|
|
|
133
133
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
134
134
|
*/
|
|
135
135
|
noAgeRestriction?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Gets or sets a value indicating whether activity is private or no.
|
|
138
|
+
*/
|
|
139
|
+
private?: boolean;
|
|
136
140
|
/**
|
|
137
141
|
* Gets or sets additional support options.
|
|
138
142
|
*/
|
|
@@ -89,6 +89,10 @@ export type SessionPatch = {
|
|
|
89
89
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
90
90
|
*/
|
|
91
91
|
noAgeRestriction?: boolean | null;
|
|
92
|
+
/**
|
|
93
|
+
* Gets or sets a value indicating whether session is private or no.
|
|
94
|
+
*/
|
|
95
|
+
private?: boolean | null;
|
|
92
96
|
/**
|
|
93
97
|
* Gets or sets a value indicating whether the session is online and can take bookings.
|
|
94
98
|
*/
|
|
@@ -115,6 +115,10 @@ export type TemplateDetail = {
|
|
|
115
115
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
116
116
|
*/
|
|
117
117
|
noAgeRestriction?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Gets or sets a value indicating whether the activity is private.
|
|
120
|
+
*/
|
|
121
|
+
private?: boolean;
|
|
118
122
|
/**
|
|
119
123
|
* Gets or sets the templates additional support options.
|
|
120
124
|
*/
|
|
@@ -95,6 +95,10 @@ export type TemplateDetailPatch = {
|
|
|
95
95
|
* Gets or sets a value indicating whether there is an age restriction.
|
|
96
96
|
*/
|
|
97
97
|
noAgeRestriction?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Gets or sets a value indicating whether activity is private or no.
|
|
100
|
+
*/
|
|
101
|
+
private?: boolean;
|
|
98
102
|
/**
|
|
99
103
|
* Gets or sets the templates additional support options.
|
|
100
104
|
*/
|
|
@@ -56,6 +56,7 @@ export type TemplateFieldPermission = {
|
|
|
56
56
|
minAge?: FieldPermission;
|
|
57
57
|
maxAge?: FieldPermission;
|
|
58
58
|
noAgeRestriction?: FieldPermission;
|
|
59
|
+
private?: FieldPermission;
|
|
59
60
|
additionalSupport?: FieldPermission;
|
|
60
61
|
contactName?: FieldPermission;
|
|
61
62
|
contactPhone?: FieldPermission;
|
|
@@ -36,6 +36,7 @@ export type TemplateFieldPermissionPatch = {
|
|
|
36
36
|
minAge?: FieldPermission;
|
|
37
37
|
maxAge?: FieldPermission;
|
|
38
38
|
noAgeRestriction?: FieldPermission;
|
|
39
|
+
private?: FieldPermission;
|
|
39
40
|
additionalSupport?: FieldPermission;
|
|
40
41
|
contactName?: FieldPermission;
|
|
41
42
|
contactPhone?: FieldPermission;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
export type WaitlistConversionStatsResponseDto = {
|
|
7
|
+
totalWaitlistCount?: number;
|
|
8
|
+
totalUpcomingWaitlistCount?: number;
|
|
9
|
+
conversionPercentage?: number;
|
|
10
|
+
};
|
|
@@ -559,6 +559,7 @@ export class CoursesService {
|
|
|
559
559
|
futureOnly,
|
|
560
560
|
online,
|
|
561
561
|
featured,
|
|
562
|
+
_private,
|
|
562
563
|
hasAvailability,
|
|
563
564
|
orderFirstNameContains,
|
|
564
565
|
orderLastNameContains,
|
|
@@ -668,6 +669,10 @@ export class CoursesService {
|
|
|
668
669
|
* Gets or sets a value indicating whether the course is featured on the storefront.
|
|
669
670
|
*/
|
|
670
671
|
featured?: boolean;
|
|
672
|
+
/**
|
|
673
|
+
* Gets or sets a value indicating whether the session is private or no.
|
|
674
|
+
*/
|
|
675
|
+
_private?: boolean;
|
|
671
676
|
/**
|
|
672
677
|
* Gets or sets a value indicating whether the scheduled session has availability.
|
|
673
678
|
*/
|
|
@@ -775,6 +780,7 @@ export class CoursesService {
|
|
|
775
780
|
FutureOnly: futureOnly,
|
|
776
781
|
Online: online,
|
|
777
782
|
Featured: featured,
|
|
783
|
+
Private: _private,
|
|
778
784
|
HasAvailability: hasAvailability,
|
|
779
785
|
OrderFirstNameContains: orderFirstNameContains,
|
|
780
786
|
OrderLastNameContains: orderLastNameContains,
|
|
@@ -913,6 +919,7 @@ export class CoursesService {
|
|
|
913
919
|
futureOnly,
|
|
914
920
|
online,
|
|
915
921
|
featured,
|
|
922
|
+
_private,
|
|
916
923
|
hasAvailability,
|
|
917
924
|
orderFirstNameContains,
|
|
918
925
|
orderLastNameContains,
|
|
@@ -1022,6 +1029,10 @@ export class CoursesService {
|
|
|
1022
1029
|
* Gets or sets a value indicating whether the course is featured on the storefront.
|
|
1023
1030
|
*/
|
|
1024
1031
|
featured?: boolean;
|
|
1032
|
+
/**
|
|
1033
|
+
* Gets or sets a value indicating whether the session is private or no.
|
|
1034
|
+
*/
|
|
1035
|
+
_private?: boolean;
|
|
1025
1036
|
/**
|
|
1026
1037
|
* Gets or sets a value indicating whether the scheduled session has availability.
|
|
1027
1038
|
*/
|
|
@@ -1129,6 +1140,7 @@ export class CoursesService {
|
|
|
1129
1140
|
FutureOnly: futureOnly,
|
|
1130
1141
|
Online: online,
|
|
1131
1142
|
Featured: featured,
|
|
1143
|
+
Private: _private,
|
|
1132
1144
|
HasAvailability: hasAvailability,
|
|
1133
1145
|
OrderFirstNameContains: orderFirstNameContains,
|
|
1134
1146
|
OrderLastNameContains: orderLastNameContains,
|
|
@@ -1186,6 +1198,7 @@ export class CoursesService {
|
|
|
1186
1198
|
futureOnly,
|
|
1187
1199
|
online,
|
|
1188
1200
|
featured,
|
|
1201
|
+
_private,
|
|
1189
1202
|
hasAvailability,
|
|
1190
1203
|
orderFirstNameContains,
|
|
1191
1204
|
orderLastNameContains,
|
|
@@ -1295,6 +1308,10 @@ export class CoursesService {
|
|
|
1295
1308
|
* Gets or sets a value indicating whether the course is featured on the storefront.
|
|
1296
1309
|
*/
|
|
1297
1310
|
featured?: boolean;
|
|
1311
|
+
/**
|
|
1312
|
+
* Gets or sets a value indicating whether the session is private or no.
|
|
1313
|
+
*/
|
|
1314
|
+
_private?: boolean;
|
|
1298
1315
|
/**
|
|
1299
1316
|
* Gets or sets a value indicating whether the scheduled session has availability.
|
|
1300
1317
|
*/
|
|
@@ -1402,6 +1419,7 @@ export class CoursesService {
|
|
|
1402
1419
|
FutureOnly: futureOnly,
|
|
1403
1420
|
Online: online,
|
|
1404
1421
|
Featured: featured,
|
|
1422
|
+
Private: _private,
|
|
1405
1423
|
HasAvailability: hasAvailability,
|
|
1406
1424
|
OrderFirstNameContains: orderFirstNameContains,
|
|
1407
1425
|
OrderLastNameContains: orderLastNameContains,
|
|
@@ -1459,6 +1477,7 @@ export class CoursesService {
|
|
|
1459
1477
|
futureOnly,
|
|
1460
1478
|
online,
|
|
1461
1479
|
featured,
|
|
1480
|
+
_private,
|
|
1462
1481
|
hasAvailability,
|
|
1463
1482
|
orderFirstNameContains,
|
|
1464
1483
|
orderLastNameContains,
|
|
@@ -1568,6 +1587,10 @@ export class CoursesService {
|
|
|
1568
1587
|
* Gets or sets a value indicating whether the course is featured on the storefront.
|
|
1569
1588
|
*/
|
|
1570
1589
|
featured?: boolean;
|
|
1590
|
+
/**
|
|
1591
|
+
* Gets or sets a value indicating whether the session is private or no.
|
|
1592
|
+
*/
|
|
1593
|
+
_private?: boolean;
|
|
1571
1594
|
/**
|
|
1572
1595
|
* Gets or sets a value indicating whether the scheduled session has availability.
|
|
1573
1596
|
*/
|
|
@@ -1675,6 +1698,7 @@ export class CoursesService {
|
|
|
1675
1698
|
FutureOnly: futureOnly,
|
|
1676
1699
|
Online: online,
|
|
1677
1700
|
Featured: featured,
|
|
1701
|
+
Private: _private,
|
|
1678
1702
|
HasAvailability: hasAvailability,
|
|
1679
1703
|
OrderFirstNameContains: orderFirstNameContains,
|
|
1680
1704
|
OrderLastNameContains: orderLastNameContains,
|
|
@@ -1732,6 +1756,7 @@ export class CoursesService {
|
|
|
1732
1756
|
futureOnly,
|
|
1733
1757
|
online,
|
|
1734
1758
|
featured,
|
|
1759
|
+
_private,
|
|
1735
1760
|
hasAvailability,
|
|
1736
1761
|
orderFirstNameContains,
|
|
1737
1762
|
orderLastNameContains,
|
|
@@ -1841,6 +1866,10 @@ export class CoursesService {
|
|
|
1841
1866
|
* Gets or sets a value indicating whether the course is featured on the storefront.
|
|
1842
1867
|
*/
|
|
1843
1868
|
featured?: boolean;
|
|
1869
|
+
/**
|
|
1870
|
+
* Gets or sets a value indicating whether the session is private or no.
|
|
1871
|
+
*/
|
|
1872
|
+
_private?: boolean;
|
|
1844
1873
|
/**
|
|
1845
1874
|
* Gets or sets a value indicating whether the scheduled session has availability.
|
|
1846
1875
|
*/
|
|
@@ -1948,6 +1977,7 @@ export class CoursesService {
|
|
|
1948
1977
|
FutureOnly: futureOnly,
|
|
1949
1978
|
Online: online,
|
|
1950
1979
|
Featured: featured,
|
|
1980
|
+
Private: _private,
|
|
1951
1981
|
HasAvailability: hasAvailability,
|
|
1952
1982
|
OrderFirstNameContains: orderFirstNameContains,
|
|
1953
1983
|
OrderLastNameContains: orderLastNameContains,
|