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.
Files changed (49) hide show
  1. package/dist/reach-sdk.d.ts +7410 -5701
  2. package/dist/reach-sdk.js +1635 -359
  3. package/package.json +1 -1
  4. package/src/apiClient.ts +12 -0
  5. package/src/definition/swagger.yaml +15085 -10679
  6. package/src/index.ts +20 -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/CodelocksLock.ts +62 -0
  12. package/src/models/CodelocksLockPage.ts +12 -0
  13. package/src/models/CodelocksLockPatch.ts +46 -0
  14. package/src/models/CodelocksLockPost.ts +42 -0
  15. package/src/models/Course.ts +4 -0
  16. package/src/models/CourseCreate.ts +4 -0
  17. package/src/models/CoursePatch.ts +4 -0
  18. package/src/models/CourseSession.ts +1 -1
  19. package/src/models/Facility.ts +8 -4
  20. package/src/models/FacilityPatch.ts +4 -0
  21. package/src/models/FacilityPost.ts +4 -0
  22. package/src/models/FeatureAnnouncementDismissPost.ts +14 -0
  23. package/src/models/FeatureAnnouncementForUserDto.ts +38 -0
  24. package/src/models/IntegrationCodelocksSettings.ts +38 -0
  25. package/src/models/IntegrationCodelocksSettingsCreate.ts +18 -0
  26. package/src/models/IntegrationCodelocksSettingsPage.ts +12 -0
  27. package/src/models/IntegrationCodelocksSettingsPatch.ts +22 -0
  28. package/src/models/IntegrationCodelocksSettingsPost.ts +18 -0
  29. package/src/models/IntegrationQueue.ts +4 -0
  30. package/src/models/IntegrationType.ts +1 -0
  31. package/src/models/NotificationType.ts +1 -0
  32. package/src/models/Order.ts +3 -3
  33. package/src/models/OrderItem.ts +5 -3
  34. package/src/models/OrderItemCodelocksAccess.ts +14 -0
  35. package/src/models/OrderItemReport.ts +25 -1
  36. package/src/models/Session.ts +4 -0
  37. package/src/models/SessionCreate.ts +4 -0
  38. package/src/models/SessionPatch.ts +4 -0
  39. package/src/models/Survey.ts +3 -3
  40. package/src/models/SurveyAnswer.ts +4 -4
  41. package/src/models/SurveyQuestion.ts +3 -3
  42. package/src/models/SurveyQuestionOption.ts +2 -2
  43. package/src/models/WaitlistActivity.ts +3 -3
  44. package/src/models/WaitlistOpportunity.ts +4 -4
  45. package/src/services/AccessCredentialsService.ts +812 -0
  46. package/src/services/CodelocksLocksService.ts +752 -0
  47. package/src/services/FeatureAnnouncementsService.ts +56 -0
  48. package/src/services/IntegrationCodelocksSettingsService.ts +689 -0
  49. 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
+ }