reach-api-sdk 1.0.211 → 1.0.213

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/src/index.ts CHANGED
@@ -11,11 +11,14 @@ export { OpenAPI } from './core/OpenAPI';
11
11
  export type { OpenAPIConfig } from './core/OpenAPI';
12
12
 
13
13
  export type { Activity } from './models/Activity';
14
+ export type { ActivityFacet } from './models/ActivityFacet';
14
15
  export type { ActivityPerformance } from './models/ActivityPerformance';
15
16
  export type { ActivityPerformancePage } from './models/ActivityPerformancePage';
16
17
  export type { ActivityPerformancePatch } from './models/ActivityPerformancePatch';
17
18
  export type { ActivityPerformancePost } from './models/ActivityPerformancePost';
19
+ export type { ActivitySearchResponse } from './models/ActivitySearchResponse';
18
20
  export { ActivityType } from './models/ActivityType';
21
+ export type { ActivityTypeCategory } from './models/ActivityTypeCategory';
19
22
  export type { AddressBookItem } from './models/AddressBookItem';
20
23
  export type { AddressBooksRequest } from './models/AddressBooksRequest';
21
24
  export type { AddressComponent } from './models/AddressComponent';
@@ -283,6 +286,7 @@ export type { ProgrammePage } from './models/ProgrammePage';
283
286
  export type { ProgrammePatch } from './models/ProgrammePatch';
284
287
  export type { ProgrammePost } from './models/ProgrammePost';
285
288
  export type { Provider } from './models/Provider';
289
+ export type { ProviderActivityLocation } from './models/ProviderActivityLocation';
286
290
  export type { ProviderCreate } from './models/ProviderCreate';
287
291
  export type { ProviderPage } from './models/ProviderPage';
288
292
  export type { ProviderPatch } from './models/ProviderPatch';
@@ -508,9 +512,11 @@ export type { WalletTransactionPage } from './models/WalletTransactionPage';
508
512
  export type { WalletTransactionPatch } from './models/WalletTransactionPatch';
509
513
  export type { WalletTransactionPost } from './models/WalletTransactionPost';
510
514
  export { WalletTransactionType } from './models/WalletTransactionType';
515
+ export { WebsiteHomepage } from './models/WebsiteHomepage';
511
516
 
512
517
  export { ActivityService } from './services/ActivityService';
513
518
  export { ActivityPerformanceService } from './services/ActivityPerformanceService';
519
+ export { ActivityTypeCategoryService } from './services/ActivityTypeCategoryService';
514
520
  export { AmenityService } from './services/AmenityService';
515
521
  export { AttendeesService } from './services/AttendeesService';
516
522
  export { BadEnglandReportService } from './services/BadEnglandReportService';
@@ -49,6 +49,10 @@ export type Activity = {
49
49
  * Gets or sets the activities Icon url.
50
50
  */
51
51
  iconUrl?: string | null;
52
+ /**
53
+ * Gets or sets the activities type category id.
54
+ */
55
+ activityTypeCategoryId?: number | null;
52
56
  /**
53
57
  * Gets or sets the activities referenced surfaces.
54
58
  */
@@ -0,0 +1,26 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Represents an activity facet with count for filtering in location-based search.
8
+ */
9
+ export type ActivityFacet = {
10
+ /**
11
+ * Gets or sets the activity id.
12
+ */
13
+ id?: number;
14
+ /**
15
+ * Gets or sets the activity name.
16
+ */
17
+ name?: string | null;
18
+ /**
19
+ * Gets or sets the OpenActive activity identifier.
20
+ */
21
+ openactiveActivityId?: string | null;
22
+ /**
23
+ * Gets or sets the count of activities of this type within the search criteria.
24
+ */
25
+ count?: number;
26
+ };
@@ -0,0 +1,23 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { ActivityFacet } from './ActivityFacet';
7
+ import type { GenericActivity } from './GenericActivity';
8
+ import type { Pagination } from './Pagination';
9
+
10
+ /**
11
+ * Response wrapper for activity search that can optionally include activity facets.
12
+ */
13
+ export type ActivitySearchResponse = {
14
+ pagination?: Pagination;
15
+ /**
16
+ * Gets or sets the activity items.
17
+ */
18
+ items?: Array<GenericActivity> | null;
19
+ /**
20
+ * Gets or sets the activity facets with counts, when includeActivityFacets=true and location params are provided.
21
+ */
22
+ activityFacets?: Array<ActivityFacet> | null;
23
+ };
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Represents an activity type category within the Reach application.
8
+ */
9
+ export type ActivityTypeCategory = {
10
+ /**
11
+ * Gets or sets the activities Id.
12
+ */
13
+ id?: number;
14
+ /**
15
+ * Gets or sets the activities type category Name.
16
+ */
17
+ name?: string | null;
18
+ };
@@ -4,9 +4,11 @@
4
4
  /* eslint-disable */
5
5
 
6
6
  import type { Country } from './Country';
7
+ import type { ProviderActivityLocation } from './ProviderActivityLocation';
7
8
  import type { ProviderType } from './ProviderType';
8
9
  import type { StripeAccount } from './StripeAccount';
9
10
  import type { Tenant } from './Tenant';
11
+ import type { UpcomingLayout } from './UpcomingLayout';
10
12
  import type { User } from './User';
11
13
 
12
14
  /**
@@ -125,6 +127,7 @@ export type Provider = {
125
127
  * Gets or sets the contact website.
126
128
  */
127
129
  contactWebsite?: string | null;
130
+ upcomingLayout?: UpcomingLayout;
128
131
  /**
129
132
  * Gets or sets the facebook url.
130
133
  */
@@ -156,5 +159,9 @@ export type Provider = {
156
159
  * Gets or sets the providers assigned users.
157
160
  */
158
161
  users?: Array<User> | null;
162
+ /**
163
+ * Gets or sets the distinct locations/venues where the provider offers activities.
164
+ */
165
+ activityLocations?: Array<ProviderActivityLocation> | null;
159
166
  country?: Country;
160
167
  };
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Represents a location (venue) where a provider offers activities.
8
+ */
9
+ export type ProviderActivityLocation = {
10
+ /**
11
+ * Gets or sets the full formatted address.
12
+ */
13
+ formattedAddress?: string | null;
14
+ /**
15
+ * Gets or sets the shortened formatted address (locality, region, postal code).
16
+ */
17
+ formattedAddressShortened?: string | null;
18
+ };
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
 
6
+ import type { UpcomingLayout } from './UpcomingLayout';
6
7
  import type { UpdateEmailSettings } from './UpdateEmailSettings';
7
8
 
8
9
  /**
@@ -81,6 +82,7 @@ export type ProviderPatch = {
81
82
  * Gets or sets the contact website.
82
83
  */
83
84
  contactWebsite?: string | null;
85
+ upcomingLayout?: UpcomingLayout;
84
86
  /**
85
87
  * Gets or sets the organisations social media Urls.
86
88
  */
@@ -53,6 +53,10 @@ export type TenantSetting = {
53
53
  * Gets or sets a value indicating whether providers are enabled for the tenant (only applicable to enterprise tenants).
54
54
  */
55
55
  enableProviders?: boolean;
56
+ /**
57
+ * Gets or sets a value indicating whether programmes are enabled for the tenant (only applicable to enterprise tenants).
58
+ */
59
+ enableProgrammes?: boolean;
56
60
  walletTrackingLevel?: WalletTrackingLevel;
57
61
  /**
58
62
  * Gets or sets a value indicating whether customers are only allowed to use wallet transactions (no card payments).
@@ -4,6 +4,7 @@
4
4
  /* eslint-disable */
5
5
 
6
6
  import type { UpcomingLayout } from './UpcomingLayout';
7
+ import type { WebsiteHomepage } from './WebsiteHomepage';
7
8
 
8
9
  /**
9
10
  * Represents an organisation within the Reach application.
@@ -98,4 +99,16 @@ export type TenantWebsiteSetting = {
98
99
  */
99
100
  tenantMarketingOptinText?: string | null;
100
101
  upcomingLayout?: UpcomingLayout;
102
+ defaultUpcomingLayoutForVenues?: UpcomingLayout;
103
+ defaultUpcomingLayoutForProviders?: UpcomingLayout;
104
+ defaultUpcomingLayoutForProgrammes?: UpcomingLayout;
105
+ /**
106
+ * Gets or sets the default map distance in kilometres. Used when displaying the map on the website.
107
+ */
108
+ defaultMapDistance?: number | null;
109
+ /**
110
+ * Gets or sets the default map center Google Place ID. Used when displaying the map on the website.
111
+ */
112
+ defaultMapCenterPlaceId?: string | null;
113
+ websiteHomepage?: WebsiteHomepage;
101
114
  };
@@ -3,6 +3,9 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
 
6
+ import type { UpcomingLayout } from './UpcomingLayout';
7
+ import type { WebsiteHomepage } from './WebsiteHomepage';
8
+
6
9
  /**
7
10
  * Post model for tenant website setting updates.
8
11
  */
@@ -63,4 +66,17 @@ export type TenantWebsiteSettingPatch = {
63
66
  * Gets or sets the tenants website marketing optin text.
64
67
  */
65
68
  tenantMarketingOptinText?: string | null;
69
+ upcomingLayout?: UpcomingLayout;
70
+ defaultUpcomingLayoutForVenues?: UpcomingLayout;
71
+ defaultUpcomingLayoutForProviders?: UpcomingLayout;
72
+ defaultUpcomingLayoutForProgrammes?: UpcomingLayout;
73
+ /**
74
+ * Gets or sets the default map distance in kilometres. Used when displaying the map on the website.
75
+ */
76
+ defaultMapDistance?: number | null;
77
+ /**
78
+ * Gets or sets the default map center Google Place ID. Used when displaying the map on the website.
79
+ */
80
+ defaultMapCenterPlaceId?: string | null;
81
+ websiteHomepage?: WebsiteHomepage;
66
82
  };
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Determines the website homepage display.
8
+ */
9
+ export enum WebsiteHomepage {
10
+ DEFAULT = 'Default',
11
+ MAP = 'Map',
12
+ }
@@ -0,0 +1,133 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { ActivityTypeCategory } from '../models/ActivityTypeCategory';
6
+ import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
7
+
8
+ import type { CancelablePromise } from '../core/CancelablePromise';
9
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
10
+
11
+ export class ActivityTypeCategoryService {
12
+ constructor(public readonly httpRequest: BaseHttpRequest) {}
13
+
14
+ /**
15
+ * Gets a Reach.Models.ActivityTypeCategory by its Id.
16
+ * @returns ActivityTypeCategory OK
17
+ * @throws ApiError
18
+ */
19
+ public getObject({
20
+ id,
21
+ }: {
22
+ /**
23
+ * The Reach.Models.ActivityTypeCategory id.
24
+ */
25
+ id: number;
26
+ }): CancelablePromise<ActivityTypeCategory> {
27
+ return this.httpRequest.request({
28
+ method: 'GET',
29
+ url: '/api/activity-type-categories/{id}',
30
+ path: {
31
+ id: id,
32
+ },
33
+ errors: {
34
+ 400: `Bad Request`,
35
+ 422: `Unprocessable Content`,
36
+ 500: `Internal Server Error`,
37
+ },
38
+ });
39
+ }
40
+
41
+ /**
42
+ * Gets a list of Reach.Models.Activity.
43
+ * @returns ActivityTypeCategory OK
44
+ * @throws ApiError
45
+ */
46
+ public getList({
47
+ name,
48
+ pageNumber,
49
+ take,
50
+ skip,
51
+ limitListRequests,
52
+ tenantId,
53
+ modifiedById,
54
+ modifiedByIds,
55
+ dateCreatedGte,
56
+ dateCreatedLte,
57
+ isLive,
58
+ sortOrderDirection,
59
+ }: {
60
+ /**
61
+ * Gets or sets the queryable name.
62
+ */
63
+ name?: string;
64
+ /**
65
+ * Gets or sets the page number for paged queries.
66
+ */
67
+ pageNumber?: number;
68
+ /**
69
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
70
+ */
71
+ take?: number;
72
+ /**
73
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
74
+ */
75
+ skip?: number;
76
+ /**
77
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
78
+ */
79
+ limitListRequests?: boolean;
80
+ /**
81
+ * Gets or sets the Tenant Id.
82
+ */
83
+ tenantId?: string;
84
+ /**
85
+ * Gets or sets the Modifed By Id.
86
+ */
87
+ modifiedById?: string;
88
+ /**
89
+ * Gets or sets the Modifed By Ids.
90
+ */
91
+ modifiedByIds?: Array<string>;
92
+ /**
93
+ * Gets or sets the Date Created greater than equal to.
94
+ */
95
+ dateCreatedGte?: string;
96
+ /**
97
+ * Gets or sets the Date Created less than equal to.
98
+ */
99
+ dateCreatedLte?: string;
100
+ /**
101
+ * Gets or sets the queryable only is live status.
102
+ */
103
+ isLive?: boolean;
104
+ /**
105
+ * Gets or sets the sort order direction.
106
+ */
107
+ sortOrderDirection?: SearchSortOrderDirection;
108
+ }): CancelablePromise<Array<ActivityTypeCategory>> {
109
+ return this.httpRequest.request({
110
+ method: 'GET',
111
+ url: '/api/activity-type-categories',
112
+ query: {
113
+ Name: name,
114
+ PageNumber: pageNumber,
115
+ Take: take,
116
+ Skip: skip,
117
+ LimitListRequests: limitListRequests,
118
+ TenantId: tenantId,
119
+ ModifiedById: modifiedById,
120
+ ModifiedByIds: modifiedByIds,
121
+ DateCreatedGTE: dateCreatedGte,
122
+ DateCreatedLTE: dateCreatedLte,
123
+ IsLive: isLive,
124
+ SortOrderDirection: sortOrderDirection,
125
+ },
126
+ errors: {
127
+ 400: `Bad Request`,
128
+ 422: `Unprocessable Content`,
129
+ 500: `Internal Server Error`,
130
+ },
131
+ });
132
+ }
133
+ }
@@ -639,6 +639,7 @@ export class CoursesService {
639
639
  ids,
640
640
  venueId,
641
641
  programmeId,
642
+ providerId,
642
643
  surveyId,
643
644
  cancellationPolicyId,
644
645
  paymentPolicyId,
@@ -695,6 +696,10 @@ export class CoursesService {
695
696
  * Gets or sets the queryable Programme Id.
696
697
  */
697
698
  programmeId?: string;
699
+ /**
700
+ * Gets or sets the queryable Provider Id.
701
+ */
702
+ providerId?: string;
698
703
  /**
699
704
  * Gets or sets the queryable Survey Id.
700
705
  */
@@ -860,6 +865,7 @@ export class CoursesService {
860
865
  Ids: ids,
861
866
  VenueId: venueId,
862
867
  ProgrammeId: programmeId,
868
+ ProviderId: providerId,
863
869
  SurveyId: surveyId,
864
870
  CancellationPolicyId: cancellationPolicyId,
865
871
  PaymentPolicyId: paymentPolicyId,
@@ -999,6 +1005,7 @@ export class CoursesService {
999
1005
  ids,
1000
1006
  venueId,
1001
1007
  programmeId,
1008
+ providerId,
1002
1009
  surveyId,
1003
1010
  cancellationPolicyId,
1004
1011
  paymentPolicyId,
@@ -1055,6 +1062,10 @@ export class CoursesService {
1055
1062
  * Gets or sets the queryable Programme Id.
1056
1063
  */
1057
1064
  programmeId?: string;
1065
+ /**
1066
+ * Gets or sets the queryable Provider Id.
1067
+ */
1068
+ providerId?: string;
1058
1069
  /**
1059
1070
  * Gets or sets the queryable Survey Id.
1060
1071
  */
@@ -1220,6 +1231,7 @@ export class CoursesService {
1220
1231
  Ids: ids,
1221
1232
  VenueId: venueId,
1222
1233
  ProgrammeId: programmeId,
1234
+ ProviderId: providerId,
1223
1235
  SurveyId: surveyId,
1224
1236
  CancellationPolicyId: cancellationPolicyId,
1225
1237
  PaymentPolicyId: paymentPolicyId,
@@ -1278,6 +1290,7 @@ export class CoursesService {
1278
1290
  ids,
1279
1291
  venueId,
1280
1292
  programmeId,
1293
+ providerId,
1281
1294
  surveyId,
1282
1295
  cancellationPolicyId,
1283
1296
  paymentPolicyId,
@@ -1334,6 +1347,10 @@ export class CoursesService {
1334
1347
  * Gets or sets the queryable Programme Id.
1335
1348
  */
1336
1349
  programmeId?: string;
1350
+ /**
1351
+ * Gets or sets the queryable Provider Id.
1352
+ */
1353
+ providerId?: string;
1337
1354
  /**
1338
1355
  * Gets or sets the queryable Survey Id.
1339
1356
  */
@@ -1499,6 +1516,7 @@ export class CoursesService {
1499
1516
  Ids: ids,
1500
1517
  VenueId: venueId,
1501
1518
  ProgrammeId: programmeId,
1519
+ ProviderId: providerId,
1502
1520
  SurveyId: surveyId,
1503
1521
  CancellationPolicyId: cancellationPolicyId,
1504
1522
  PaymentPolicyId: paymentPolicyId,
@@ -1557,6 +1575,7 @@ export class CoursesService {
1557
1575
  ids,
1558
1576
  venueId,
1559
1577
  programmeId,
1578
+ providerId,
1560
1579
  surveyId,
1561
1580
  cancellationPolicyId,
1562
1581
  paymentPolicyId,
@@ -1613,6 +1632,10 @@ export class CoursesService {
1613
1632
  * Gets or sets the queryable Programme Id.
1614
1633
  */
1615
1634
  programmeId?: string;
1635
+ /**
1636
+ * Gets or sets the queryable Provider Id.
1637
+ */
1638
+ providerId?: string;
1616
1639
  /**
1617
1640
  * Gets or sets the queryable Survey Id.
1618
1641
  */
@@ -1778,6 +1801,7 @@ export class CoursesService {
1778
1801
  Ids: ids,
1779
1802
  VenueId: venueId,
1780
1803
  ProgrammeId: programmeId,
1804
+ ProviderId: providerId,
1781
1805
  SurveyId: surveyId,
1782
1806
  CancellationPolicyId: cancellationPolicyId,
1783
1807
  PaymentPolicyId: paymentPolicyId,
@@ -1836,6 +1860,7 @@ export class CoursesService {
1836
1860
  ids,
1837
1861
  venueId,
1838
1862
  programmeId,
1863
+ providerId,
1839
1864
  surveyId,
1840
1865
  cancellationPolicyId,
1841
1866
  paymentPolicyId,
@@ -1892,6 +1917,10 @@ export class CoursesService {
1892
1917
  * Gets or sets the queryable Programme Id.
1893
1918
  */
1894
1919
  programmeId?: string;
1920
+ /**
1921
+ * Gets or sets the queryable Provider Id.
1922
+ */
1923
+ providerId?: string;
1895
1924
  /**
1896
1925
  * Gets or sets the queryable Survey Id.
1897
1926
  */
@@ -2057,6 +2086,7 @@ export class CoursesService {
2057
2086
  Ids: ids,
2058
2087
  VenueId: venueId,
2059
2088
  ProgrammeId: programmeId,
2089
+ ProviderId: providerId,
2060
2090
  SurveyId: surveyId,
2061
2091
  CancellationPolicyId: cancellationPolicyId,
2062
2092
  PaymentPolicyId: paymentPolicyId,