reach-api-sdk 1.0.217 → 1.0.218

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
@@ -327,6 +327,10 @@ export type { ScheduledSessionSchedulePost } from './models/ScheduledSessionSche
327
327
  export { ScheduledSessionSearchSortBy } from './models/ScheduledSessionSearchSortBy';
328
328
  export { ScheduleStatus } from './models/ScheduleStatus';
329
329
  export { SearchSortOrderDirection } from './models/SearchSortOrderDirection';
330
+ export type { SellableItem } from './models/SellableItem';
331
+ export type { SellableItemPage } from './models/SellableItemPage';
332
+ export type { SellableItemPatch } from './models/SellableItemPatch';
333
+ export type { SellableItemPost } from './models/SellableItemPost';
330
334
  export type { Session } from './models/Session';
331
335
  export type { SessionCreate } from './models/SessionCreate';
332
336
  export type { SessionPage } from './models/SessionPage';
@@ -598,6 +602,7 @@ export { PublicOrderTokensService } from './services/PublicOrderTokensService';
598
602
  export { PublicProgrammesService } from './services/PublicProgrammesService';
599
603
  export { PublicProvidersService } from './services/PublicProvidersService';
600
604
  export { PublicScheduledSessionsService } from './services/PublicScheduledSessionsService';
605
+ export { PublicSellableItemsService } from './services/PublicSellableItemsService';
601
606
  export { PublicSessionsService } from './services/PublicSessionsService';
602
607
  export { PublicSlotsService } from './services/PublicSlotsService';
603
608
  export { PublicStorefrontStaffPreviewService } from './services/PublicStorefrontStaffPreviewService';
@@ -615,6 +620,7 @@ export { RegisterReportService } from './services/RegisterReportService';
615
620
  export { RescheduleLogService } from './services/RescheduleLogService';
616
621
  export { ScheduledSessionsService } from './services/ScheduledSessionsService';
617
622
  export { ScheduledSessionsSchedulesService } from './services/ScheduledSessionsSchedulesService';
623
+ export { SellableItemsService } from './services/SellableItemsService';
618
624
  export { SessionsService } from './services/SessionsService';
619
625
  export { SlotOffersService } from './services/SlotOffersService';
620
626
  export { SlotsService } from './services/SlotsService';
@@ -10,4 +10,5 @@ export enum ActivityType {
10
10
  FACILITY = 'Facility',
11
11
  SESSION = 'Session',
12
12
  COURSE = 'Course',
13
+ SELLABLE_ITEM = 'SellableItem',
13
14
  }
@@ -45,5 +45,9 @@ export type DealActivity = {
45
45
  * Gets or sets the session id.
46
46
  */
47
47
  sessionId?: string | null;
48
+ /**
49
+ * Gets or sets the sellable item id.
50
+ */
51
+ sellableItemId?: string | null;
48
52
  deal?: Deal;
49
53
  };
@@ -23,4 +23,8 @@ export type DealActivityPost = {
23
23
  * Gets or sets the session id.
24
24
  */
25
25
  sessionId?: string | null;
26
+ /**
27
+ * Gets or sets the sellable item id.
28
+ */
29
+ sellableItemId?: string | null;
26
30
  };
@@ -51,6 +51,10 @@ export type EmailSetting = {
51
51
  * Gets or sets the course Id.
52
52
  */
53
53
  courseId?: string | null;
54
+ /**
55
+ * Gets or sets the sellable item Id.
56
+ */
57
+ sellableItemId?: string | null;
54
58
  /**
55
59
  * Gets or sets the order confirmation text.
56
60
  */
@@ -179,4 +179,8 @@ export type GenericActivity = {
179
179
  * Gets or sets the courses sessions (only applicable to courses).
180
180
  */
181
181
  sessions?: Array<CourseSession> | null;
182
+ /**
183
+ * Gets or sets remaining inventory for Reach.Models.ActivityType.SellableItem (populated on list/detail when applicable).
184
+ */
185
+ stockQuantity?: number | null;
182
186
  };
@@ -52,6 +52,10 @@ export type Image = {
52
52
  * Gets or sets the images course id.
53
53
  */
54
54
  courseId?: string | null;
55
+ /**
56
+ * Gets or sets the sellable item id.
57
+ */
58
+ sellableItemId?: string | null;
55
59
  /**
56
60
  * Gets or sets the images programme id.
57
61
  */
@@ -53,6 +53,10 @@ export type Offer = {
53
53
  * Gets or sets the course id.
54
54
  */
55
55
  courseId?: string | null;
56
+ /**
57
+ * Gets or sets the sellable item id.
58
+ */
59
+ sellableItemId?: string | null;
56
60
  /**
57
61
  * Gets or sets the survey id.
58
62
  */
@@ -31,6 +31,10 @@ export type OfferPatch = {
31
31
  * Gets or sets the course id.
32
32
  */
33
33
  courseId?: string | null;
34
+ /**
35
+ * Gets or sets the sellable item id.
36
+ */
37
+ sellableItemId?: string | null;
34
38
  /**
35
39
  * Gets or sets the survey id.
36
40
  */
@@ -27,6 +27,10 @@ export type OfferPost = {
27
27
  * Gets or sets the course id.
28
28
  */
29
29
  courseId?: string | null;
30
+ /**
31
+ * Gets or sets the sellable item id.
32
+ */
33
+ sellableItemId?: string | null;
30
34
  /**
31
35
  * Gets or sets the survey id.
32
36
  */
@@ -10,4 +10,5 @@ export enum OpportunityType {
10
10
  SLOT = 'Slot',
11
11
  SCHEDULED_SESSION = 'ScheduledSession',
12
12
  COURSE = 'Course',
13
+ SELLABLE_ITEM = 'SellableItem',
13
14
  }
@@ -12,6 +12,7 @@ import type { Order } from './Order';
12
12
  import type { OrderItemDeal } from './OrderItemDeal';
13
13
  import type { OrderItemStatus } from './OrderItemStatus';
14
14
  import type { ScheduledSession } from './ScheduledSession';
15
+ import type { SellableItem } from './SellableItem';
15
16
  import type { Slot } from './Slot';
16
17
 
17
18
  /**
@@ -58,6 +59,10 @@ export type OrderItem = {
58
59
  * Gets or sets the course id.
59
60
  */
60
61
  courseId?: string | null;
62
+ /**
63
+ * Gets or sets the sellable item id.
64
+ */
65
+ sellableItemId?: string | null;
61
66
  /**
62
67
  * Gets or sets the offer id.
63
68
  */
@@ -111,6 +116,7 @@ export type OrderItem = {
111
116
  slot?: Slot;
112
117
  scheduledSession?: ScheduledSession;
113
118
  course?: Course;
119
+ sellableItem?: SellableItem;
114
120
  offer?: Offer;
115
121
  /**
116
122
  * Gets or sets the order item deals.
@@ -23,6 +23,10 @@ export type OrderPatchItem = {
23
23
  * Gets or sets the course id.
24
24
  */
25
25
  courseId?: string | null;
26
+ /**
27
+ * Gets or sets the sellable item id.
28
+ */
29
+ sellableItemId?: string | null;
26
30
  /**
27
31
  * Gets or sets the offer id.
28
32
  */
@@ -19,6 +19,10 @@ export type OrderPostItem = {
19
19
  * Gets or sets the course id.
20
20
  */
21
21
  courseId?: string | null;
22
+ /**
23
+ * Gets or sets the sellable item id.
24
+ */
25
+ sellableItemId?: string | null;
22
26
  /**
23
27
  * Gets or sets the offer id.
24
28
  */
@@ -0,0 +1,194 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { Activity } from './Activity';
7
+ import type { CancellationPolicy } from './CancellationPolicy';
8
+ import type { CheckoutPlatform } from './CheckoutPlatform';
9
+ import type { Deal } from './Deal';
10
+ import type { Gender } from './Gender';
11
+ import type { Image } from './Image';
12
+ import type { Offer } from './Offer';
13
+ import type { PaymentPolicy } from './PaymentPolicy';
14
+ import type { Venue } from './Venue';
15
+
16
+ /**
17
+ * A venue-scoped product with inventory (no scheduled session or course).
18
+ */
19
+ export type SellableItem = {
20
+ /**
21
+ * Gets or sets the entities Id.
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Gets or sets the tenant Id.
26
+ */
27
+ tenantId: string;
28
+ /**
29
+ * Gets or sets the created date of this entity.
30
+ */
31
+ dateCreated: string;
32
+ /**
33
+ * Gets or sets the last modified date of this entity.
34
+ */
35
+ dateModified: string;
36
+ /**
37
+ * Gets or sets the modified by Id.
38
+ */
39
+ modifiedById?: string | null;
40
+ /**
41
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
42
+ */
43
+ isLive: boolean;
44
+ /**
45
+ * Gets or sets the provider id.
46
+ */
47
+ providerId?: string | null;
48
+ /**
49
+ * Gets or sets the venue id.
50
+ */
51
+ venueId?: string | null;
52
+ /**
53
+ * Gets or sets the activity category id.
54
+ */
55
+ activityId?: number | null;
56
+ /**
57
+ * Gets or sets the name.
58
+ */
59
+ name?: string | null;
60
+ /**
61
+ * Gets or sets the description.
62
+ */
63
+ description?: string | null;
64
+ /**
65
+ * Gets or sets the image url.
66
+ */
67
+ imageUrl?: string | null;
68
+ /**
69
+ * Gets or sets a value indicating whether the item is bookable on the web.
70
+ */
71
+ online?: boolean | null;
72
+ /**
73
+ * Gets or sets a value indicating whether the item is archived.
74
+ */
75
+ archived?: boolean | null;
76
+ /**
77
+ * Gets or sets a value indicating whether the item is deleted.
78
+ */
79
+ deleted?: boolean | null;
80
+ /**
81
+ * Gets or sets remaining stock (decremented when orders are booked).
82
+ */
83
+ stockQuantity?: number;
84
+ /**
85
+ * Gets or sets a value indicating whether the item is featured on the storefront.
86
+ */
87
+ featured?: boolean;
88
+ /**
89
+ * Gets or sets a value indicating whether the item is private.
90
+ */
91
+ private?: boolean;
92
+ /**
93
+ * Gets or sets the checkout survey id.
94
+ */
95
+ surveyId?: string | null;
96
+ /**
97
+ * Gets or sets the post-completion survey id.
98
+ */
99
+ postCompletionSurveyId?: string | null;
100
+ /**
101
+ * Gets or sets the cancellation policy id.
102
+ */
103
+ cancellationPolicyId?: string;
104
+ /**
105
+ * Gets or sets the payment policy id.
106
+ */
107
+ paymentPolicyId?: string;
108
+ gender?: Gender;
109
+ /**
110
+ * Gets or sets the min age.
111
+ */
112
+ minAge?: number | null;
113
+ /**
114
+ * Gets or sets the max age.
115
+ */
116
+ maxAge?: number | null;
117
+ /**
118
+ * Gets or sets a value indicating whether there is no age restriction.
119
+ */
120
+ noAgeRestriction?: boolean;
121
+ /**
122
+ * Gets or sets additional support options.
123
+ */
124
+ additionalSupport?: Array<string> | null;
125
+ /**
126
+ * Gets or sets the contact name.
127
+ */
128
+ contactName?: string | null;
129
+ /**
130
+ * Gets or sets the contact phone.
131
+ */
132
+ contactPhone?: string | null;
133
+ /**
134
+ * Gets or sets the contact email.
135
+ */
136
+ contactEmail?: string | null;
137
+ /**
138
+ * Gets or sets the admin contact name.
139
+ */
140
+ adminContactName?: string | null;
141
+ /**
142
+ * Gets or sets the admin contact phone.
143
+ */
144
+ adminContactPhone?: string | null;
145
+ /**
146
+ * Gets or sets the admin contact email.
147
+ */
148
+ adminContactEmail?: string | null;
149
+ /**
150
+ * Gets or sets a value indicating whether to send reminder emails.
151
+ */
152
+ sendReminder?: boolean | null;
153
+ /**
154
+ * Gets or sets the reminder hours before start.
155
+ */
156
+ reminderHoursBeforeStart?: number | null;
157
+ checkoutPlatform?: CheckoutPlatform;
158
+ /**
159
+ * Gets or sets the booking link override when checkout is external.
160
+ */
161
+ bookingLinkOverride?: string | null;
162
+ /**
163
+ * Gets or sets a value indicating whether pre-registration is enabled.
164
+ */
165
+ preRegistrationEnabled?: boolean | null;
166
+ /**
167
+ * Gets or sets when pre-registration opens.
168
+ */
169
+ preRegistrationOpensAt?: string | null;
170
+ /**
171
+ * Gets or sets when pre-registration closes.
172
+ */
173
+ preRegistrationClosesAt?: string | null;
174
+ /**
175
+ * Gets or sets the pre-registration storefront message.
176
+ */
177
+ preRegistrationMessage?: string | null;
178
+ venue?: Venue;
179
+ cancellationPolicy?: CancellationPolicy;
180
+ paymentPolicy?: PaymentPolicy;
181
+ activity?: Activity;
182
+ /**
183
+ * Gets or sets offers for this item.
184
+ */
185
+ offers?: Array<Offer> | null;
186
+ /**
187
+ * Gets or sets images.
188
+ */
189
+ images?: Array<Image> | null;
190
+ /**
191
+ * Gets or sets deals applicable to this item.
192
+ */
193
+ deals?: Array<Deal> | null;
194
+ };
@@ -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
+ import type { Pagination } from './Pagination';
7
+ import type { SellableItem } from './SellableItem';
8
+
9
+ export type SellableItemPage = {
10
+ pagination: Pagination;
11
+ readonly items: Array<SellableItem>;
12
+ };
@@ -0,0 +1,150 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { CheckoutPlatform } from './CheckoutPlatform';
7
+ import type { Gender } from './Gender';
8
+ import type { UpdateEmailSettings } from './UpdateEmailSettings';
9
+ import type { UpdateOffer } from './UpdateOffer';
10
+
11
+ /**
12
+ * Patch model for sellable item updates.
13
+ */
14
+ export type SellableItemPatch = {
15
+ /**
16
+ * Gets or sets the tenant Id.
17
+ */
18
+ tenantId: string;
19
+ /**
20
+ * Gets or sets the Id.
21
+ */
22
+ id: string;
23
+ /**
24
+ * Gets or sets the venue id.
25
+ */
26
+ venueId?: string | null;
27
+ /**
28
+ * Gets or sets the activity category id.
29
+ */
30
+ activityId?: number | null;
31
+ /**
32
+ * Gets or sets the name.
33
+ */
34
+ name?: string | null;
35
+ /**
36
+ * Gets or sets the description.
37
+ */
38
+ description?: string | null;
39
+ /**
40
+ * Gets or sets the image url.
41
+ */
42
+ imageUrl?: string | null;
43
+ /**
44
+ * Gets or sets a value indicating whether the item is bookable on the web.
45
+ */
46
+ online?: boolean | null;
47
+ /**
48
+ * Gets or sets remaining stock.
49
+ */
50
+ stockQuantity?: number;
51
+ /**
52
+ * Gets or sets a value indicating whether the item is featured.
53
+ */
54
+ featured?: boolean | null;
55
+ /**
56
+ * Gets or sets a value indicating whether the item is private.
57
+ */
58
+ private?: boolean | null;
59
+ /**
60
+ * Gets or sets the checkout survey id.
61
+ */
62
+ surveyId?: string | null;
63
+ /**
64
+ * Gets or sets the post-completion survey id.
65
+ */
66
+ postCompletionSurveyId?: string | null;
67
+ /**
68
+ * Gets or sets the cancellation policy id.
69
+ */
70
+ cancellationPolicyId?: string | null;
71
+ /**
72
+ * Gets or sets the payment policy id.
73
+ */
74
+ paymentPolicyId?: string | null;
75
+ gender?: Gender;
76
+ /**
77
+ * Gets or sets the min age.
78
+ */
79
+ minAge?: number | null;
80
+ /**
81
+ * Gets or sets the max age.
82
+ */
83
+ maxAge?: number | null;
84
+ /**
85
+ * Gets or sets a value indicating whether there is no age restriction.
86
+ */
87
+ noAgeRestriction?: boolean | null;
88
+ /**
89
+ * Gets or sets additional support options.
90
+ */
91
+ additionalSupport?: Array<string> | null;
92
+ /**
93
+ * Gets or sets the contact name.
94
+ */
95
+ contactName?: string | null;
96
+ /**
97
+ * Gets or sets the contact phone.
98
+ */
99
+ contactPhone?: string | null;
100
+ /**
101
+ * Gets or sets the contact email.
102
+ */
103
+ contactEmail?: string | null;
104
+ /**
105
+ * Gets or sets the admin contact name.
106
+ */
107
+ adminContactName?: string | null;
108
+ /**
109
+ * Gets or sets the admin contact phone.
110
+ */
111
+ adminContactPhone?: string | null;
112
+ /**
113
+ * Gets or sets the admin contact email.
114
+ */
115
+ adminContactEmail?: string | null;
116
+ /**
117
+ * Gets or sets a value indicating whether to send reminder emails.
118
+ */
119
+ sendReminder?: boolean | null;
120
+ /**
121
+ * Gets or sets the reminder hours before start.
122
+ */
123
+ reminderHoursBeforeStart?: number | null;
124
+ checkoutPlatform?: CheckoutPlatform;
125
+ /**
126
+ * Gets or sets the booking link override.
127
+ */
128
+ bookingLinkOverride?: string | null;
129
+ /**
130
+ * Gets or sets a value indicating whether pre-registration is enabled.
131
+ */
132
+ preRegistrationEnabled?: boolean | null;
133
+ /**
134
+ * Gets or sets when pre-registration opens.
135
+ */
136
+ preRegistrationOpensAt?: string | null;
137
+ /**
138
+ * Gets or sets when pre-registration closes.
139
+ */
140
+ preRegistrationClosesAt?: string | null;
141
+ /**
142
+ * Gets or sets the pre-registration message.
143
+ */
144
+ preRegistrationMessage?: string | null;
145
+ emailSettings?: UpdateEmailSettings;
146
+ /**
147
+ * Gets or sets ticket types / offers for this item.
148
+ */
149
+ offers?: Array<UpdateOffer> | null;
150
+ };
@@ -0,0 +1,145 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { CheckoutPlatform } from './CheckoutPlatform';
7
+ import type { Gender } from './Gender';
8
+ import type { UpdateEmailSettings } from './UpdateEmailSettings';
9
+
10
+ /**
11
+ * Post model for sellable item inserts.
12
+ */
13
+ export type SellableItemPost = {
14
+ /**
15
+ * Gets or sets the tenant Id.
16
+ */
17
+ tenantId: string;
18
+ /**
19
+ * Gets or sets the provider id.
20
+ */
21
+ providerId?: string | null;
22
+ /**
23
+ * Gets or sets the venue id.
24
+ */
25
+ venueId?: string | null;
26
+ /**
27
+ * Gets or sets the activity category id.
28
+ */
29
+ activityId?: number | null;
30
+ /**
31
+ * Gets or sets the name.
32
+ */
33
+ name?: string | null;
34
+ /**
35
+ * Gets or sets the description.
36
+ */
37
+ description?: string | null;
38
+ /**
39
+ * Gets or sets the image url.
40
+ */
41
+ imageUrl?: string | null;
42
+ /**
43
+ * Gets or sets a value indicating whether the item is bookable on the web.
44
+ */
45
+ online?: boolean | null;
46
+ /**
47
+ * Gets or sets remaining stock.
48
+ */
49
+ stockQuantity?: number;
50
+ /**
51
+ * Gets or sets a value indicating whether the item is featured.
52
+ */
53
+ featured?: boolean | null;
54
+ /**
55
+ * Gets or sets a value indicating whether the item is private.
56
+ */
57
+ private?: boolean | null;
58
+ /**
59
+ * Gets or sets the checkout survey id.
60
+ */
61
+ surveyId?: string | null;
62
+ /**
63
+ * Gets or sets the post-completion survey id.
64
+ */
65
+ postCompletionSurveyId?: string | null;
66
+ /**
67
+ * Gets or sets the cancellation policy id.
68
+ */
69
+ cancellationPolicyId?: string | null;
70
+ /**
71
+ * Gets or sets the payment policy id.
72
+ */
73
+ paymentPolicyId?: string | null;
74
+ gender?: Gender;
75
+ /**
76
+ * Gets or sets the min age.
77
+ */
78
+ minAge?: number | null;
79
+ /**
80
+ * Gets or sets the max age.
81
+ */
82
+ maxAge?: number | null;
83
+ /**
84
+ * Gets or sets a value indicating whether there is no age restriction.
85
+ */
86
+ noAgeRestriction?: boolean | null;
87
+ /**
88
+ * Gets or sets additional support options.
89
+ */
90
+ additionalSupport?: Array<string> | null;
91
+ /**
92
+ * Gets or sets the contact name.
93
+ */
94
+ contactName?: string | null;
95
+ /**
96
+ * Gets or sets the contact phone.
97
+ */
98
+ contactPhone?: string | null;
99
+ /**
100
+ * Gets or sets the contact email.
101
+ */
102
+ contactEmail?: string | null;
103
+ /**
104
+ * Gets or sets the admin contact name.
105
+ */
106
+ adminContactName?: string | null;
107
+ /**
108
+ * Gets or sets the admin contact phone.
109
+ */
110
+ adminContactPhone?: string | null;
111
+ /**
112
+ * Gets or sets the admin contact email.
113
+ */
114
+ adminContactEmail?: string | null;
115
+ /**
116
+ * Gets or sets a value indicating whether to send reminder emails.
117
+ */
118
+ sendReminder?: boolean | null;
119
+ /**
120
+ * Gets or sets the reminder hours before start.
121
+ */
122
+ reminderHoursBeforeStart?: number | null;
123
+ checkoutPlatform?: CheckoutPlatform;
124
+ /**
125
+ * Gets or sets the booking link override.
126
+ */
127
+ bookingLinkOverride?: string | null;
128
+ /**
129
+ * Gets or sets a value indicating whether pre-registration is enabled.
130
+ */
131
+ preRegistrationEnabled?: boolean | null;
132
+ /**
133
+ * Gets or sets when pre-registration opens.
134
+ */
135
+ preRegistrationOpensAt?: string | null;
136
+ /**
137
+ * Gets or sets when pre-registration closes.
138
+ */
139
+ preRegistrationClosesAt?: string | null;
140
+ /**
141
+ * Gets or sets the pre-registration message.
142
+ */
143
+ preRegistrationMessage?: string | null;
144
+ emailSettings?: UpdateEmailSettings;
145
+ };