reach-api-sdk 1.0.217 → 1.0.219

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.
Files changed (74) hide show
  1. package/dist/reach-sdk.d.ts +3711 -580
  2. package/dist/reach-sdk.js +2422 -284
  3. package/package.json +1 -1
  4. package/src/apiClient.ts +18 -0
  5. package/src/definition/swagger.yaml +19899 -12337
  6. package/src/index.ts +26 -0
  7. package/src/models/AccessCredential.ts +74 -0
  8. package/src/models/AccessCredentialPage.ts +12 -0
  9. package/src/models/AccessCredentialPatch.ts +18 -0
  10. package/src/models/AccessCredentialPost.ts +14 -0
  11. package/src/models/ActivityType.ts +1 -0
  12. package/src/models/CodelocksLock.ts +62 -0
  13. package/src/models/CodelocksLockPage.ts +12 -0
  14. package/src/models/CodelocksLockPatch.ts +46 -0
  15. package/src/models/CodelocksLockPost.ts +42 -0
  16. package/src/models/Course.ts +4 -0
  17. package/src/models/CourseCreate.ts +4 -0
  18. package/src/models/CoursePatch.ts +4 -0
  19. package/src/models/CourseSession.ts +1 -1
  20. package/src/models/DealActivity.ts +4 -0
  21. package/src/models/DealActivityPost.ts +4 -0
  22. package/src/models/EmailSetting.ts +4 -0
  23. package/src/models/Facility.ts +8 -4
  24. package/src/models/FacilityPatch.ts +4 -0
  25. package/src/models/FacilityPost.ts +4 -0
  26. package/src/models/FeatureAnnouncementDismissPost.ts +14 -0
  27. package/src/models/FeatureAnnouncementForUserDto.ts +38 -0
  28. package/src/models/GenericActivity.ts +4 -0
  29. package/src/models/Image.ts +4 -0
  30. package/src/models/IntegrationCodelocksSettings.ts +38 -0
  31. package/src/models/IntegrationCodelocksSettingsCreate.ts +18 -0
  32. package/src/models/IntegrationCodelocksSettingsPage.ts +12 -0
  33. package/src/models/IntegrationCodelocksSettingsPatch.ts +22 -0
  34. package/src/models/IntegrationCodelocksSettingsPost.ts +18 -0
  35. package/src/models/IntegrationQueue.ts +4 -0
  36. package/src/models/IntegrationType.ts +1 -0
  37. package/src/models/NotificationType.ts +1 -0
  38. package/src/models/Offer.ts +4 -0
  39. package/src/models/OfferPatch.ts +4 -0
  40. package/src/models/OfferPost.ts +4 -0
  41. package/src/models/OpportunityType.ts +1 -0
  42. package/src/models/Order.ts +3 -3
  43. package/src/models/OrderItem.ts +11 -3
  44. package/src/models/OrderItemCodelocksAccess.ts +14 -0
  45. package/src/models/OrderItemReport.ts +25 -1
  46. package/src/models/OrderPatchItem.ts +4 -0
  47. package/src/models/OrderPostItem.ts +4 -0
  48. package/src/models/SellableItem.ts +194 -0
  49. package/src/models/SellableItemPage.ts +12 -0
  50. package/src/models/SellableItemPatch.ts +150 -0
  51. package/src/models/SellableItemPost.ts +145 -0
  52. package/src/models/Session.ts +4 -0
  53. package/src/models/SessionCreate.ts +4 -0
  54. package/src/models/SessionPatch.ts +4 -0
  55. package/src/models/Survey.ts +3 -3
  56. package/src/models/SurveyAnswer.ts +4 -4
  57. package/src/models/SurveyQuestion.ts +3 -3
  58. package/src/models/SurveyQuestionOption.ts +2 -2
  59. package/src/models/WaitlistActivity.ts +3 -3
  60. package/src/models/WaitlistOpportunity.ts +4 -4
  61. package/src/services/AccessCredentialsService.ts +812 -0
  62. package/src/services/CodelocksLocksService.ts +752 -0
  63. package/src/services/DealActivitiesService.ts +60 -0
  64. package/src/services/EmailSettingsService.ts +30 -0
  65. package/src/services/FeatureAnnouncementsService.ts +56 -0
  66. package/src/services/ImagesService.ts +30 -0
  67. package/src/services/IntegrationCodelocksSettingsService.ts +689 -0
  68. package/src/services/IntegrationQueueService.ts +30 -0
  69. package/src/services/OffersService.ts +60 -0
  70. package/src/services/OrderItemsService.ts +30 -0
  71. package/src/services/PublicOrderItemsService.ts +12 -0
  72. package/src/services/PublicSellableItemsService.ts +473 -0
  73. package/src/services/SellableItemsService.ts +962 -0
  74. package/src/services/SessionsService.ts +2 -2
@@ -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
+ };
@@ -56,6 +56,10 @@ export type Session = {
56
56
  * Gets or sets the activity venue id.
57
57
  */
58
58
  venueId?: string | null;
59
+ /**
60
+ * Gets or sets the optional registered Codelocks lock for NetCode access (course or session template).
61
+ */
62
+ codelocksLockId?: string | null;
59
63
  /**
60
64
  * Gets or sets the session activity id.
61
65
  */
@@ -150,4 +150,8 @@ export type SessionCreate = {
150
150
  * Gets or sets the session deals.
151
151
  */
152
152
  deals?: Array<CreateDeal> | null;
153
+ /**
154
+ * Gets or sets the optional registered Codelocks lock for NetCode access.
155
+ */
156
+ codelocksLockId?: string | null;
153
157
  };
@@ -167,6 +167,10 @@ export type SessionPatch = {
167
167
  * Gets or sets optional storefront message for pre-registration.
168
168
  */
169
169
  preRegistrationMessage?: string | null;
170
+ /**
171
+ * Gets or sets the optional registered Codelocks lock for NetCode access.
172
+ */
173
+ codelocksLockId?: string | null;
170
174
  emailSettings?: UpdateEmailSettings;
171
175
  /**
172
176
  * Gets or sets the session offers.
@@ -39,9 +39,9 @@ export type Survey = {
39
39
  /**
40
40
  * Gets or sets the survey name.
41
41
  */
42
- name?: string | null;
43
- type?: SurveyType;
44
- target?: SurveyQuestionsTarget;
42
+ name: string;
43
+ type: SurveyType;
44
+ target: SurveyQuestionsTarget;
45
45
  /**
46
46
  * Gets or sets a value indicating whether the survey is active.
47
47
  */
@@ -41,15 +41,15 @@ export type SurveyAnswer = {
41
41
  /**
42
42
  * Gets or sets the survey id.
43
43
  */
44
- surveyId?: string | null;
44
+ surveyId: string;
45
45
  /**
46
46
  * Gets or sets the question id.
47
47
  */
48
- surveyQuestionId?: string | null;
48
+ surveyQuestionId: string;
49
49
  /**
50
50
  * Gets or sets the order id.
51
51
  */
52
- orderItemId?: string | null;
52
+ orderItemId: string;
53
53
  /**
54
54
  * Gets or sets the attendee id.
55
55
  */
@@ -57,7 +57,7 @@ export type SurveyAnswer = {
57
57
  /**
58
58
  * Gets or sets the survey question answer.
59
59
  */
60
- answer?: string | null;
60
+ answer: string;
61
61
  /**
62
62
  * Gets or sets the survey question attendee number.
63
63
  */
@@ -37,15 +37,15 @@ export type SurveyQuestion = {
37
37
  /**
38
38
  * Gets or sets the survey id.
39
39
  */
40
- surveyId?: string | null;
40
+ surveyId: string;
41
41
  /**
42
42
  * Gets or sets the survey question name.
43
43
  */
44
- name?: string | null;
44
+ name: string;
45
45
  /**
46
46
  * Gets or sets the survey question number.
47
47
  */
48
- number?: number;
48
+ number: number;
49
49
  type?: SurveyQuestionType;
50
50
  /**
51
51
  * Gets or sets a value indicating whether the question is required.
@@ -34,11 +34,11 @@ export type SurveyQuestionOption = {
34
34
  /**
35
35
  * Gets or sets the survey question id.
36
36
  */
37
- surveyQuestionId?: string | null;
37
+ surveyQuestionId: string;
38
38
  /**
39
39
  * Gets or sets the survey question option name.
40
40
  */
41
- name?: string | null;
41
+ name: string;
42
42
  /**
43
43
  * Gets or sets the survey question option sort number.
44
44
  */
@@ -45,15 +45,15 @@ export type WaitlistActivity = {
45
45
  /**
46
46
  * Gets or sets the first name.
47
47
  */
48
- firstName?: string | null;
48
+ firstName: string;
49
49
  /**
50
50
  * Gets or sets the last name.
51
51
  */
52
- lastName?: string | null;
52
+ lastName: string;
53
53
  /**
54
54
  * Gets or sets the email.
55
55
  */
56
- email?: string | null;
56
+ email: string;
57
57
  /**
58
58
  * Gets or sets the phone.
59
59
  */
@@ -50,15 +50,15 @@ export type WaitlistOpportunity = {
50
50
  /**
51
51
  * Gets or sets the first name.
52
52
  */
53
- firstName?: string | null;
53
+ firstName: string;
54
54
  /**
55
55
  * Gets or sets the last name.
56
56
  */
57
- lastName?: string | null;
57
+ lastName: string;
58
58
  /**
59
59
  * Gets or sets the email.
60
60
  */
61
- email?: string | null;
61
+ email: string;
62
62
  /**
63
63
  * Gets or sets the phone.
64
64
  */
@@ -66,7 +66,7 @@ export type WaitlistOpportunity = {
66
66
  /**
67
67
  * Gets or sets the spaces required.
68
68
  */
69
- spacesRequired?: number;
69
+ spacesRequired: number;
70
70
  /**
71
71
  * Gets or sets a value indicating whether gets or sets the converted.
72
72
  */