reach-api-sdk 1.0.218 → 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.
- package/dist/reach-sdk.d.ts +7410 -5701
- package/dist/reach-sdk.js +1635 -359
- package/package.json +1 -1
- package/src/apiClient.ts +12 -0
- package/src/definition/swagger.yaml +15085 -10679
- package/src/index.ts +20 -0
- package/src/models/AccessCredential.ts +74 -0
- package/src/models/AccessCredentialPage.ts +12 -0
- package/src/models/AccessCredentialPatch.ts +18 -0
- package/src/models/AccessCredentialPost.ts +14 -0
- package/src/models/CodelocksLock.ts +62 -0
- package/src/models/CodelocksLockPage.ts +12 -0
- package/src/models/CodelocksLockPatch.ts +46 -0
- package/src/models/CodelocksLockPost.ts +42 -0
- package/src/models/Course.ts +4 -0
- package/src/models/CourseCreate.ts +4 -0
- package/src/models/CoursePatch.ts +4 -0
- package/src/models/CourseSession.ts +1 -1
- package/src/models/Facility.ts +8 -4
- package/src/models/FacilityPatch.ts +4 -0
- package/src/models/FacilityPost.ts +4 -0
- package/src/models/FeatureAnnouncementDismissPost.ts +14 -0
- package/src/models/FeatureAnnouncementForUserDto.ts +38 -0
- package/src/models/IntegrationCodelocksSettings.ts +38 -0
- package/src/models/IntegrationCodelocksSettingsCreate.ts +18 -0
- package/src/models/IntegrationCodelocksSettingsPage.ts +12 -0
- package/src/models/IntegrationCodelocksSettingsPatch.ts +22 -0
- package/src/models/IntegrationCodelocksSettingsPost.ts +18 -0
- package/src/models/IntegrationQueue.ts +4 -0
- package/src/models/IntegrationType.ts +1 -0
- package/src/models/NotificationType.ts +1 -0
- package/src/models/Order.ts +3 -3
- package/src/models/OrderItem.ts +5 -3
- package/src/models/OrderItemCodelocksAccess.ts +14 -0
- package/src/models/OrderItemReport.ts +25 -1
- package/src/models/Session.ts +4 -0
- package/src/models/SessionCreate.ts +4 -0
- package/src/models/SessionPatch.ts +4 -0
- package/src/models/Survey.ts +3 -3
- package/src/models/SurveyAnswer.ts +4 -4
- package/src/models/SurveyQuestion.ts +3 -3
- package/src/models/SurveyQuestionOption.ts +2 -2
- package/src/models/WaitlistActivity.ts +3 -3
- package/src/models/WaitlistOpportunity.ts +4 -4
- package/src/services/AccessCredentialsService.ts +812 -0
- package/src/services/CodelocksLocksService.ts +752 -0
- package/src/services/FeatureAnnouncementsService.ts +56 -0
- package/src/services/IntegrationCodelocksSettingsService.ts +689 -0
- package/src/services/IntegrationQueueService.ts +30 -0
package/src/models/Order.ts
CHANGED
|
@@ -165,7 +165,7 @@ export type Order = {
|
|
|
165
165
|
/**
|
|
166
166
|
* Gets or sets the last name.
|
|
167
167
|
*/
|
|
168
|
-
lastName
|
|
168
|
+
lastName: string;
|
|
169
169
|
/**
|
|
170
170
|
* Gets the attendees abbreviated name.
|
|
171
171
|
*/
|
|
@@ -177,11 +177,11 @@ export type Order = {
|
|
|
177
177
|
/**
|
|
178
178
|
* Gets or sets the email.
|
|
179
179
|
*/
|
|
180
|
-
email
|
|
180
|
+
email: string;
|
|
181
181
|
/**
|
|
182
182
|
* Gets or sets the phone number.
|
|
183
183
|
*/
|
|
184
|
-
phone
|
|
184
|
+
phone: string;
|
|
185
185
|
/**
|
|
186
186
|
* Gets or sets the orders street address.
|
|
187
187
|
*/
|
package/src/models/OrderItem.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { IOpportunity } from './IOpportunity';
|
|
|
9
9
|
import type { Offer } from './Offer';
|
|
10
10
|
import type { OpportunityType } from './OpportunityType';
|
|
11
11
|
import type { Order } from './Order';
|
|
12
|
+
import type { OrderItemCodelocksAccess } from './OrderItemCodelocksAccess';
|
|
12
13
|
import type { OrderItemDeal } from './OrderItemDeal';
|
|
13
14
|
import type { OrderItemStatus } from './OrderItemStatus';
|
|
14
15
|
import type { ScheduledSession } from './ScheduledSession';
|
|
@@ -46,7 +47,7 @@ export type OrderItem = {
|
|
|
46
47
|
/**
|
|
47
48
|
* Gets or sets the order id.
|
|
48
49
|
*/
|
|
49
|
-
orderId
|
|
50
|
+
orderId: string;
|
|
50
51
|
/**
|
|
51
52
|
* Gets or sets the slot id.
|
|
52
53
|
*/
|
|
@@ -66,7 +67,7 @@ export type OrderItem = {
|
|
|
66
67
|
/**
|
|
67
68
|
* Gets or sets the offer id.
|
|
68
69
|
*/
|
|
69
|
-
offerId
|
|
70
|
+
offerId: string;
|
|
70
71
|
/**
|
|
71
72
|
* Gets or sets the payment policy id.
|
|
72
73
|
*/
|
|
@@ -82,7 +83,7 @@ export type OrderItem = {
|
|
|
82
83
|
/**
|
|
83
84
|
* Gets or sets the quantity of opportunities required on the order item.
|
|
84
85
|
*/
|
|
85
|
-
quantity
|
|
86
|
+
quantity: number;
|
|
86
87
|
status?: OrderItemStatus;
|
|
87
88
|
/**
|
|
88
89
|
* Gets or sets a value indicating whether the order item has been refunded.
|
|
@@ -133,6 +134,7 @@ export type OrderItem = {
|
|
|
133
134
|
* Gets or sets a value indicating whether the order item is rescheduleable.
|
|
134
135
|
*/
|
|
135
136
|
rescheduleable?: boolean | null;
|
|
137
|
+
codelocksAccess?: OrderItemCodelocksAccess;
|
|
136
138
|
/**
|
|
137
139
|
* Gets or sets the unit price before discount.
|
|
138
140
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Generated Codelocks access for a single order line (customer portal JSON only; not persisted on Reach.Models.OrderItem).
|
|
8
|
+
*/
|
|
9
|
+
export type OrderItemCodelocksAccess = {
|
|
10
|
+
/**
|
|
11
|
+
* Gets or sets the access code (NetCode) shown to the customer.
|
|
12
|
+
*/
|
|
13
|
+
accessCode?: string | null;
|
|
14
|
+
};
|
|
@@ -91,9 +91,33 @@ export type OrderItemReport = {
|
|
|
91
91
|
*/
|
|
92
92
|
offerName?: string | null;
|
|
93
93
|
/**
|
|
94
|
-
* Gets or sets the
|
|
94
|
+
* Gets or sets the unit list price before discount (per unit).
|
|
95
|
+
*/
|
|
96
|
+
unitPriceBeforeDiscount?: number | null;
|
|
97
|
+
/**
|
|
98
|
+
* Gets or sets the unit price after discount (per unit).
|
|
99
|
+
*/
|
|
100
|
+
unitPriceAfterDiscount?: number | null;
|
|
101
|
+
/**
|
|
102
|
+
* Gets or sets the order item list line total (offer unit price × quantity).
|
|
95
103
|
*/
|
|
96
104
|
orderItemValue?: number;
|
|
105
|
+
/**
|
|
106
|
+
* Gets or sets the line total after discount (`effective_item_price`).
|
|
107
|
+
*/
|
|
108
|
+
orderItemValueAfterDiscount?: number | null;
|
|
109
|
+
/**
|
|
110
|
+
* Gets or sets applied deal names (semicolon-separated when multiple).
|
|
111
|
+
*/
|
|
112
|
+
dealName?: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* Gets or sets discount codes from applied deals (semicolon-separated when multiple).
|
|
115
|
+
*/
|
|
116
|
+
discountCode?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* Gets or sets total deal discount value allocated to this line.
|
|
119
|
+
*/
|
|
120
|
+
dealValue?: number | null;
|
|
97
121
|
/**
|
|
98
122
|
* Gets or sets the currency.
|
|
99
123
|
*/
|
package/src/models/Session.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -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.
|
package/src/models/Survey.ts
CHANGED
|
@@ -39,9 +39,9 @@ export type Survey = {
|
|
|
39
39
|
/**
|
|
40
40
|
* Gets or sets the survey name.
|
|
41
41
|
*/
|
|
42
|
-
name
|
|
43
|
-
type
|
|
44
|
-
target
|
|
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
|
|
44
|
+
surveyId: string;
|
|
45
45
|
/**
|
|
46
46
|
* Gets or sets the question id.
|
|
47
47
|
*/
|
|
48
|
-
surveyQuestionId
|
|
48
|
+
surveyQuestionId: string;
|
|
49
49
|
/**
|
|
50
50
|
* Gets or sets the order id.
|
|
51
51
|
*/
|
|
52
|
-
orderItemId
|
|
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
|
|
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
|
|
40
|
+
surveyId: string;
|
|
41
41
|
/**
|
|
42
42
|
* Gets or sets the survey question name.
|
|
43
43
|
*/
|
|
44
|
-
name
|
|
44
|
+
name: string;
|
|
45
45
|
/**
|
|
46
46
|
* Gets or sets the survey question number.
|
|
47
47
|
*/
|
|
48
|
-
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
|
|
37
|
+
surveyQuestionId: string;
|
|
38
38
|
/**
|
|
39
39
|
* Gets or sets the survey question option name.
|
|
40
40
|
*/
|
|
41
|
-
name
|
|
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
|
|
48
|
+
firstName: string;
|
|
49
49
|
/**
|
|
50
50
|
* Gets or sets the last name.
|
|
51
51
|
*/
|
|
52
|
-
lastName
|
|
52
|
+
lastName: string;
|
|
53
53
|
/**
|
|
54
54
|
* Gets or sets the email.
|
|
55
55
|
*/
|
|
56
|
-
email
|
|
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
|
|
53
|
+
firstName: string;
|
|
54
54
|
/**
|
|
55
55
|
* Gets or sets the last name.
|
|
56
56
|
*/
|
|
57
|
-
lastName
|
|
57
|
+
lastName: string;
|
|
58
58
|
/**
|
|
59
59
|
* Gets or sets the email.
|
|
60
60
|
*/
|
|
61
|
-
email
|
|
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
|
|
69
|
+
spacesRequired: number;
|
|
70
70
|
/**
|
|
71
71
|
* Gets or sets a value indicating whether gets or sets the converted.
|
|
72
72
|
*/
|