@fenixalliance/abs-api-client 1.0.11 → 1.0.13

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.
@@ -1,176 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { EnrollmentId } from '../models/EnrollmentId';
6
- import type { ExtendedTenantDtoListEnvelope } from '../models/ExtendedTenantDtoListEnvelope';
7
- import type { ExtendedTenantEnrolmentDtoListEnvelope } from '../models/ExtendedTenantEnrolmentDtoListEnvelope';
8
- import type { Int32Envelope } from '../models/Int32Envelope';
9
- import type { TenantDtoListEnvelope } from '../models/TenantDtoListEnvelope';
10
- import type { TenantEnrolmentDtoEnvelope } from '../models/TenantEnrolmentDtoEnvelope';
11
- import type { TenantEnrolmentDtoListEnvelope } from '../models/TenantEnrolmentDtoListEnvelope';
12
- import type { TenantInvitationDtoListEnvelope } from '../models/TenantInvitationDtoListEnvelope';
13
- import type { CancelablePromise } from '../core/CancelablePromise';
14
- import { OpenAPI } from '../core/OpenAPI';
15
- import { request as __request } from '../core/request';
16
- export class TenantsService {
17
- /**
18
- * Get the tenants that the current user is enrolled in
19
- * Get the tenants that the current user is enrolled in
20
- * @param xApiVersion
21
- * @returns TenantDtoListEnvelope OK
22
- * @throws ApiError
23
- */
24
- public static getCurrentUserTenantsAsync(
25
- xApiVersion?: string,
26
- ): CancelablePromise<TenantDtoListEnvelope> {
27
- return __request(OpenAPI, {
28
- method: 'GET',
29
- url: '/api/v2/Me/Businesses',
30
- headers: {
31
- 'x-api-version': xApiVersion,
32
- },
33
- errors: {
34
- 401: `Unauthorized`,
35
- 403: `Forbidden`,
36
- },
37
- });
38
- }
39
- /**
40
- * Count the tenants that the current user is enrolled in
41
- * Count the tenants that the current user is enrolled in
42
- * @param xApiVersion
43
- * @returns Int32Envelope OK
44
- * @throws ApiError
45
- */
46
- public static countCurrentUserTenantsAsync(
47
- xApiVersion?: string,
48
- ): CancelablePromise<Int32Envelope> {
49
- return __request(OpenAPI, {
50
- method: 'GET',
51
- url: '/api/v2/Me/Businesses/Count',
52
- headers: {
53
- 'x-api-version': xApiVersion,
54
- },
55
- errors: {
56
- 401: `Unauthorized`,
57
- 403: `Forbidden`,
58
- },
59
- });
60
- }
61
- /**
62
- * Get the tenants that the current user is enrolled in
63
- * Get the tenants that the current user is enrolled in
64
- * @param xApiVersion
65
- * @returns ExtendedTenantDtoListEnvelope OK
66
- * @throws ApiError
67
- */
68
- public static getCurrentUserTenantsExtendedAsync(
69
- xApiVersion?: string,
70
- ): CancelablePromise<ExtendedTenantDtoListEnvelope> {
71
- return __request(OpenAPI, {
72
- method: 'GET',
73
- url: '/api/v2/Me/Businesses/Extended',
74
- headers: {
75
- 'x-api-version': xApiVersion,
76
- },
77
- errors: {
78
- 401: `Unauthorized`,
79
- 403: `Forbidden`,
80
- },
81
- });
82
- }
83
- /**
84
- * Get the list of enrollments for the current user
85
- * Get the list of enrollments for the current user
86
- * @param xApiVersion
87
- * @returns TenantEnrolmentDtoListEnvelope OK
88
- * @throws ApiError
89
- */
90
- public static getCurrentUserEnrollmentsAsync(
91
- xApiVersion?: string,
92
- ): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
93
- return __request(OpenAPI, {
94
- method: 'GET',
95
- url: '/api/v2/Me/Enrollments',
96
- headers: {
97
- 'x-api-version': xApiVersion,
98
- },
99
- errors: {
100
- 401: `Unauthorized`,
101
- },
102
- });
103
- }
104
- /**
105
- * Get the list of enrollments for the current user
106
- * Get the list of enrollments for the current user
107
- * @param xApiVersion
108
- * @returns ExtendedTenantEnrolmentDtoListEnvelope OK
109
- * @throws ApiError
110
- */
111
- public static getCurrentUserEnrollmentsExtendedAsync(
112
- xApiVersion?: string,
113
- ): CancelablePromise<ExtendedTenantEnrolmentDtoListEnvelope> {
114
- return __request(OpenAPI, {
115
- method: 'GET',
116
- url: '/api/v2/Me/Enrollments/Extended',
117
- headers: {
118
- 'x-api-version': xApiVersion,
119
- },
120
- errors: {
121
- 401: `Unauthorized`,
122
- },
123
- });
124
- }
125
- /**
126
- * Get a single TenantEnrollment by its ID
127
- * Get a single TenantEnrollment by its ID
128
- * @param enrollmentId
129
- * @param xApiVersion
130
- * @param requestBody
131
- * @returns TenantEnrolmentDtoEnvelope OK
132
- * @throws ApiError
133
- */
134
- public static getTenantEnrollmentAsync(
135
- enrollmentId: string,
136
- xApiVersion?: string,
137
- requestBody?: EnrollmentId,
138
- ): CancelablePromise<TenantEnrolmentDtoEnvelope> {
139
- return __request(OpenAPI, {
140
- method: 'GET',
141
- url: '/api/v2/Me/Enrollments/{enrollmentId}',
142
- path: {
143
- 'enrollmentId': enrollmentId,
144
- },
145
- headers: {
146
- 'x-api-version': xApiVersion,
147
- },
148
- body: requestBody,
149
- mediaType: 'application/json',
150
- errors: {
151
- 401: `Unauthorized`,
152
- },
153
- });
154
- }
155
- /**
156
- * Get the list of tenant enrollment invitations for the current user
157
- * Get the list of tenant enrollment invitations for the current user
158
- * @param xApiVersion
159
- * @returns TenantInvitationDtoListEnvelope OK
160
- * @throws ApiError
161
- */
162
- public static getCurrentUserInvitationAsync(
163
- xApiVersion?: string,
164
- ): CancelablePromise<TenantInvitationDtoListEnvelope> {
165
- return __request(OpenAPI, {
166
- method: 'GET',
167
- url: '/api/v2/Me/Invitations',
168
- headers: {
169
- 'x-api-version': xApiVersion,
170
- },
171
- errors: {
172
- 401: `Unauthorized`,
173
- },
174
- });
175
- }
176
- }