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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { FeatureAnnouncementDismissPost } from '../models/FeatureAnnouncementDismissPost';
|
|
6
|
+
import type { FeatureAnnouncementForUserDto } from '../models/FeatureAnnouncementForUserDto';
|
|
7
|
+
|
|
8
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
10
|
+
|
|
11
|
+
export class FeatureAnnouncementsService {
|
|
12
|
+
constructor(public readonly httpRequest: BaseHttpRequest) {}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Returns active announcements for the current user (filtered by schedule, dismissal, role, and latest version per slug).
|
|
16
|
+
* @returns FeatureAnnouncementForUserDto OK
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
public getActive(): CancelablePromise<Array<FeatureAnnouncementForUserDto>> {
|
|
20
|
+
return this.httpRequest.request({
|
|
21
|
+
method: 'GET',
|
|
22
|
+
url: '/api/feature-announcements/active',
|
|
23
|
+
errors: {
|
|
24
|
+
400: `Bad Request`,
|
|
25
|
+
422: `Unprocessable Content`,
|
|
26
|
+
500: `Internal Server Error`,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Records a dismissal for the current user (idempotent).
|
|
33
|
+
* @returns any OK
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
public dismiss({
|
|
37
|
+
requestBody,
|
|
38
|
+
}: {
|
|
39
|
+
/**
|
|
40
|
+
* Dismissal body.
|
|
41
|
+
*/
|
|
42
|
+
requestBody?: FeatureAnnouncementDismissPost;
|
|
43
|
+
}): CancelablePromise<any> {
|
|
44
|
+
return this.httpRequest.request({
|
|
45
|
+
method: 'POST',
|
|
46
|
+
url: '/api/feature-announcements/dismiss',
|
|
47
|
+
body: requestBody,
|
|
48
|
+
mediaType: 'application/json',
|
|
49
|
+
errors: {
|
|
50
|
+
400: `Bad Request`,
|
|
51
|
+
422: `Unprocessable Content`,
|
|
52
|
+
500: `Internal Server Error`,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|