@acm-uiuc/core-client 0.0.1

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 (83) hide show
  1. package/.openapi-generator/FILES +127 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +277 -0
  5. package/dist/apis/APIKeysApi.d.ts +54 -0
  6. package/dist/apis/APIKeysApi.js +143 -0
  7. package/dist/apis/EventsApi.d.ts +86 -0
  8. package/dist/apis/EventsApi.js +250 -0
  9. package/dist/apis/GenericApi.d.ts +88 -0
  10. package/dist/apis/GenericApi.js +249 -0
  11. package/dist/apis/IAMApi.d.ts +108 -0
  12. package/dist/apis/IAMApi.js +327 -0
  13. package/dist/apis/ICalendarIntegrationApi.d.ts +29 -0
  14. package/dist/apis/ICalendarIntegrationApi.js +61 -0
  15. package/dist/apis/LinkryApi.d.ts +100 -0
  16. package/dist/apis/LinkryApi.js +330 -0
  17. package/dist/apis/LoggingApi.d.ts +51 -0
  18. package/dist/apis/LoggingApi.js +103 -0
  19. package/dist/apis/MembershipApi.d.ts +107 -0
  20. package/dist/apis/MembershipApi.js +330 -0
  21. package/dist/apis/MobileWalletApi.d.ts +28 -0
  22. package/dist/apis/MobileWalletApi.js +64 -0
  23. package/dist/apis/OrganizationsApi.d.ts +65 -0
  24. package/dist/apis/OrganizationsApi.js +192 -0
  25. package/dist/apis/RSVPApi.d.ts +109 -0
  26. package/dist/apis/RSVPApi.js +345 -0
  27. package/dist/apis/RoomRequestsApi.d.ts +102 -0
  28. package/dist/apis/RoomRequestsApi.js +279 -0
  29. package/dist/apis/StoreApi.d.ts +141 -0
  30. package/dist/apis/StoreApi.js +449 -0
  31. package/dist/apis/StripeApi.d.ts +54 -0
  32. package/dist/apis/StripeApi.js +152 -0
  33. package/dist/apis/VendingApi.d.ts +33 -0
  34. package/dist/apis/VendingApi.js +83 -0
  35. package/dist/apis/index.d.ts +15 -0
  36. package/dist/apis/index.js +33 -0
  37. package/dist/esm/apis/APIKeysApi.d.ts +54 -0
  38. package/dist/esm/apis/APIKeysApi.js +139 -0
  39. package/dist/esm/apis/EventsApi.d.ts +86 -0
  40. package/dist/esm/apis/EventsApi.js +246 -0
  41. package/dist/esm/apis/GenericApi.d.ts +88 -0
  42. package/dist/esm/apis/GenericApi.js +245 -0
  43. package/dist/esm/apis/IAMApi.d.ts +108 -0
  44. package/dist/esm/apis/IAMApi.js +323 -0
  45. package/dist/esm/apis/ICalendarIntegrationApi.d.ts +29 -0
  46. package/dist/esm/apis/ICalendarIntegrationApi.js +57 -0
  47. package/dist/esm/apis/LinkryApi.d.ts +100 -0
  48. package/dist/esm/apis/LinkryApi.js +326 -0
  49. package/dist/esm/apis/LoggingApi.d.ts +51 -0
  50. package/dist/esm/apis/LoggingApi.js +99 -0
  51. package/dist/esm/apis/MembershipApi.d.ts +107 -0
  52. package/dist/esm/apis/MembershipApi.js +326 -0
  53. package/dist/esm/apis/MobileWalletApi.d.ts +28 -0
  54. package/dist/esm/apis/MobileWalletApi.js +60 -0
  55. package/dist/esm/apis/OrganizationsApi.d.ts +65 -0
  56. package/dist/esm/apis/OrganizationsApi.js +188 -0
  57. package/dist/esm/apis/RSVPApi.d.ts +109 -0
  58. package/dist/esm/apis/RSVPApi.js +341 -0
  59. package/dist/esm/apis/RoomRequestsApi.d.ts +102 -0
  60. package/dist/esm/apis/RoomRequestsApi.js +275 -0
  61. package/dist/esm/apis/StoreApi.d.ts +141 -0
  62. package/dist/esm/apis/StoreApi.js +445 -0
  63. package/dist/esm/apis/StripeApi.d.ts +54 -0
  64. package/dist/esm/apis/StripeApi.js +148 -0
  65. package/dist/esm/apis/VendingApi.d.ts +33 -0
  66. package/dist/esm/apis/VendingApi.js +79 -0
  67. package/dist/esm/apis/index.d.ts +15 -0
  68. package/dist/esm/apis/index.js +17 -0
  69. package/dist/esm/index.d.ts +3 -0
  70. package/dist/esm/index.js +5 -0
  71. package/dist/esm/models/index.d.ts +3567 -0
  72. package/dist/esm/models/index.js +539 -0
  73. package/dist/esm/runtime.d.ts +181 -0
  74. package/dist/esm/runtime.js +327 -0
  75. package/dist/index.d.ts +3 -0
  76. package/dist/index.js +21 -0
  77. package/dist/models/index.d.ts +3567 -0
  78. package/dist/models/index.js +543 -0
  79. package/dist/runtime.d.ts +181 -0
  80. package/dist/runtime.js +342 -0
  81. package/package.json +23 -0
  82. package/tsconfig.esm.json +7 -0
  83. package/tsconfig.json +16 -0
@@ -0,0 +1,86 @@
1
+ /**
2
+ * ACM @ UIUC Core API
3
+ * The ACM @ UIUC Core API provides services for managing chapter operations. ## Usage The primary consumer of the Core API is the Management Portal, which allows members to manage the chapter. Others may call the API with an API key; please contact us to obtain one. This API also integrates into the ACM website and other suborganization to provide calendar services. Calendar clients call the iCal endpoints (available through [ical.acm.illinois.edu](https://ical.acm.illinois.edu)) for calendar services. ## Contact <hr /> If you are an ACM @ UIUC member, please join the Infra Committee Discord for support. Otherwise, email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) for support. **For all security concerns, please email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) with the subject \"Security Concern\".**
4
+ *
5
+ * The version of the OpenAPI document: 2.0.1
6
+ * Contact: infra@acm.illinois.edu
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime.js';
13
+ import type { AcmOrganization, ApiV1EventsGet200ResponseInner, ApiV1EventsIdGet200Response, ApiV1EventsIdPatchRequest, ApiV1EventsPostRequest } from '../models/index.js';
14
+ export interface ApiV1EventsGetRequest {
15
+ upcomingOnly?: boolean;
16
+ featuredOnly?: boolean;
17
+ host?: AcmOrganization;
18
+ ts?: number;
19
+ includeMetadata?: boolean;
20
+ }
21
+ export interface ApiV1EventsIdDeleteRequest {
22
+ id: string;
23
+ }
24
+ export interface ApiV1EventsIdGetRequest {
25
+ id: string;
26
+ ts?: number;
27
+ includeMetadata?: boolean;
28
+ }
29
+ export interface ApiV1EventsIdPatchOperationRequest {
30
+ id: string;
31
+ apiV1EventsIdPatchRequest: ApiV1EventsIdPatchRequest;
32
+ }
33
+ export interface ApiV1EventsPostOperationRequest {
34
+ apiV1EventsPostRequest: ApiV1EventsPostRequest;
35
+ }
36
+ /**
37
+ *
38
+ */
39
+ export declare class EventsApi extends runtime.BaseAPI {
40
+ /**
41
+ * Retrieve calendar events with applied filters.
42
+ */
43
+ apiV1EventsGetRaw(requestParameters: ApiV1EventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiV1EventsGet200ResponseInner>>>;
44
+ /**
45
+ * Retrieve calendar events with applied filters.
46
+ */
47
+ apiV1EventsGet(requestParameters?: ApiV1EventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1EventsGet200ResponseInner>>;
48
+ /**
49
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
50
+ * Delete a calendar event.
51
+ */
52
+ apiV1EventsIdDeleteRaw(requestParameters: ApiV1EventsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
53
+ /**
54
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
55
+ * Delete a calendar event.
56
+ */
57
+ apiV1EventsIdDelete(requestParameters: ApiV1EventsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
58
+ /**
59
+ * Retrieve a calendar event.
60
+ */
61
+ apiV1EventsIdGetRaw(requestParameters: ApiV1EventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1EventsIdGet200Response>>;
62
+ /**
63
+ * Retrieve a calendar event.
64
+ */
65
+ apiV1EventsIdGet(requestParameters: ApiV1EventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1EventsIdGet200Response>;
66
+ /**
67
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
68
+ * Modify a calendar event.
69
+ */
70
+ apiV1EventsIdPatchRaw(requestParameters: ApiV1EventsIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
71
+ /**
72
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
73
+ * Modify a calendar event.
74
+ */
75
+ apiV1EventsIdPatch(requestParameters: ApiV1EventsIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
76
+ /**
77
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
78
+ * Create a calendar event.
79
+ */
80
+ apiV1EventsPostRaw(requestParameters: ApiV1EventsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
81
+ /**
82
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
83
+ * Create a calendar event.
84
+ */
85
+ apiV1EventsPost(requestParameters: ApiV1EventsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
86
+ }
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ACM @ UIUC Core API
6
+ * The ACM @ UIUC Core API provides services for managing chapter operations. ## Usage The primary consumer of the Core API is the Management Portal, which allows members to manage the chapter. Others may call the API with an API key; please contact us to obtain one. This API also integrates into the ACM website and other suborganization to provide calendar services. Calendar clients call the iCal endpoints (available through [ical.acm.illinois.edu](https://ical.acm.illinois.edu)) for calendar services. ## Contact <hr /> If you are an ACM @ UIUC member, please join the Infra Committee Discord for support. Otherwise, email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) for support. **For all security concerns, please email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) with the subject \"Security Concern\".**
7
+ *
8
+ * The version of the OpenAPI document: 2.0.1
9
+ * Contact: infra@acm.illinois.edu
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.EventsApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ /**
28
+ *
29
+ */
30
+ class EventsApi extends runtime.BaseAPI {
31
+ /**
32
+ * Retrieve calendar events with applied filters.
33
+ */
34
+ apiV1EventsGetRaw(requestParameters, initOverrides) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ const queryParameters = {};
37
+ if (requestParameters['upcomingOnly'] != null) {
38
+ queryParameters['upcomingOnly'] = requestParameters['upcomingOnly'];
39
+ }
40
+ if (requestParameters['featuredOnly'] != null) {
41
+ queryParameters['featuredOnly'] = requestParameters['featuredOnly'];
42
+ }
43
+ if (requestParameters['host'] != null) {
44
+ queryParameters['host'] = requestParameters['host'];
45
+ }
46
+ if (requestParameters['ts'] != null) {
47
+ queryParameters['ts'] = requestParameters['ts'];
48
+ }
49
+ if (requestParameters['includeMetadata'] != null) {
50
+ queryParameters['includeMetadata'] = requestParameters['includeMetadata'];
51
+ }
52
+ const headerParameters = {};
53
+ let urlPath = `/api/v1/events`;
54
+ const response = yield this.request({
55
+ path: urlPath,
56
+ method: 'GET',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+ return new runtime.JSONApiResponse(response);
61
+ });
62
+ }
63
+ /**
64
+ * Retrieve calendar events with applied filters.
65
+ */
66
+ apiV1EventsGet() {
67
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
68
+ const response = yield this.apiV1EventsGetRaw(requestParameters, initOverrides);
69
+ return yield response.value();
70
+ });
71
+ }
72
+ /**
73
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
74
+ * Delete a calendar event.
75
+ */
76
+ apiV1EventsIdDeleteRaw(requestParameters, initOverrides) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ if (requestParameters['id'] == null) {
79
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1EventsIdDelete().');
80
+ }
81
+ const queryParameters = {};
82
+ const headerParameters = {};
83
+ if (this.configuration && this.configuration.accessToken) {
84
+ const token = this.configuration.accessToken;
85
+ const tokenString = yield token("httpBearer", []);
86
+ if (tokenString) {
87
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
88
+ }
89
+ }
90
+ if (this.configuration && this.configuration.apiKey) {
91
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
92
+ }
93
+ let urlPath = `/api/v1/events/{id}`;
94
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
95
+ const response = yield this.request({
96
+ path: urlPath,
97
+ method: 'DELETE',
98
+ headers: headerParameters,
99
+ query: queryParameters,
100
+ }, initOverrides);
101
+ if (this.isJsonMime(response.headers.get('content-type'))) {
102
+ return new runtime.JSONApiResponse(response);
103
+ }
104
+ else {
105
+ return new runtime.TextApiResponse(response);
106
+ }
107
+ });
108
+ }
109
+ /**
110
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
111
+ * Delete a calendar event.
112
+ */
113
+ apiV1EventsIdDelete(requestParameters, initOverrides) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const response = yield this.apiV1EventsIdDeleteRaw(requestParameters, initOverrides);
116
+ return yield response.value();
117
+ });
118
+ }
119
+ /**
120
+ * Retrieve a calendar event.
121
+ */
122
+ apiV1EventsIdGetRaw(requestParameters, initOverrides) {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ if (requestParameters['id'] == null) {
125
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1EventsIdGet().');
126
+ }
127
+ const queryParameters = {};
128
+ if (requestParameters['ts'] != null) {
129
+ queryParameters['ts'] = requestParameters['ts'];
130
+ }
131
+ if (requestParameters['includeMetadata'] != null) {
132
+ queryParameters['includeMetadata'] = requestParameters['includeMetadata'];
133
+ }
134
+ const headerParameters = {};
135
+ let urlPath = `/api/v1/events/{id}`;
136
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
137
+ const response = yield this.request({
138
+ path: urlPath,
139
+ method: 'GET',
140
+ headers: headerParameters,
141
+ query: queryParameters,
142
+ }, initOverrides);
143
+ return new runtime.JSONApiResponse(response);
144
+ });
145
+ }
146
+ /**
147
+ * Retrieve a calendar event.
148
+ */
149
+ apiV1EventsIdGet(requestParameters, initOverrides) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ const response = yield this.apiV1EventsIdGetRaw(requestParameters, initOverrides);
152
+ return yield response.value();
153
+ });
154
+ }
155
+ /**
156
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
157
+ * Modify a calendar event.
158
+ */
159
+ apiV1EventsIdPatchRaw(requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ if (requestParameters['id'] == null) {
162
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1EventsIdPatch().');
163
+ }
164
+ if (requestParameters['apiV1EventsIdPatchRequest'] == null) {
165
+ throw new runtime.RequiredError('apiV1EventsIdPatchRequest', 'Required parameter "apiV1EventsIdPatchRequest" was null or undefined when calling apiV1EventsIdPatch().');
166
+ }
167
+ const queryParameters = {};
168
+ const headerParameters = {};
169
+ headerParameters['Content-Type'] = 'application/json';
170
+ if (this.configuration && this.configuration.accessToken) {
171
+ const token = this.configuration.accessToken;
172
+ const tokenString = yield token("httpBearer", []);
173
+ if (tokenString) {
174
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
175
+ }
176
+ }
177
+ if (this.configuration && this.configuration.apiKey) {
178
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
179
+ }
180
+ let urlPath = `/api/v1/events/{id}`;
181
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
182
+ const response = yield this.request({
183
+ path: urlPath,
184
+ method: 'PATCH',
185
+ headers: headerParameters,
186
+ query: queryParameters,
187
+ body: requestParameters['apiV1EventsIdPatchRequest'],
188
+ }, initOverrides);
189
+ return new runtime.VoidApiResponse(response);
190
+ });
191
+ }
192
+ /**
193
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
194
+ * Modify a calendar event.
195
+ */
196
+ apiV1EventsIdPatch(requestParameters, initOverrides) {
197
+ return __awaiter(this, void 0, void 0, function* () {
198
+ yield this.apiV1EventsIdPatchRaw(requestParameters, initOverrides);
199
+ });
200
+ }
201
+ /**
202
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
203
+ * Create a calendar event.
204
+ */
205
+ apiV1EventsPostRaw(requestParameters, initOverrides) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ if (requestParameters['apiV1EventsPostRequest'] == null) {
208
+ throw new runtime.RequiredError('apiV1EventsPostRequest', 'Required parameter "apiV1EventsPostRequest" was null or undefined when calling apiV1EventsPost().');
209
+ }
210
+ const queryParameters = {};
211
+ const headerParameters = {};
212
+ headerParameters['Content-Type'] = 'application/json';
213
+ if (this.configuration && this.configuration.accessToken) {
214
+ const token = this.configuration.accessToken;
215
+ const tokenString = yield token("httpBearer", []);
216
+ if (tokenString) {
217
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
218
+ }
219
+ }
220
+ if (this.configuration && this.configuration.apiKey) {
221
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
222
+ }
223
+ let urlPath = `/api/v1/events`;
224
+ const response = yield this.request({
225
+ path: urlPath,
226
+ method: 'POST',
227
+ headers: headerParameters,
228
+ query: queryParameters,
229
+ body: requestParameters['apiV1EventsPostRequest'],
230
+ }, initOverrides);
231
+ if (this.isJsonMime(response.headers.get('content-type'))) {
232
+ return new runtime.JSONApiResponse(response);
233
+ }
234
+ else {
235
+ return new runtime.TextApiResponse(response);
236
+ }
237
+ });
238
+ }
239
+ /**
240
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
241
+ * Create a calendar event.
242
+ */
243
+ apiV1EventsPost(requestParameters, initOverrides) {
244
+ return __awaiter(this, void 0, void 0, function* () {
245
+ const response = yield this.apiV1EventsPostRaw(requestParameters, initOverrides);
246
+ return yield response.value();
247
+ });
248
+ }
249
+ }
250
+ exports.EventsApi = EventsApi;
@@ -0,0 +1,88 @@
1
+ /**
2
+ * ACM @ UIUC Core API
3
+ * The ACM @ UIUC Core API provides services for managing chapter operations. ## Usage The primary consumer of the Core API is the Management Portal, which allows members to manage the chapter. Others may call the API with an API key; please contact us to obtain one. This API also integrates into the ACM website and other suborganization to provide calendar services. Calendar clients call the iCal endpoints (available through [ical.acm.illinois.edu](https://ical.acm.illinois.edu)) for calendar services. ## Contact <hr /> If you are an ACM @ UIUC member, please join the Infra Committee Discord for support. Otherwise, email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) for support. **For all security concerns, please email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) with the subject \"Security Concern\".**
4
+ *
5
+ * The version of the OpenAPI document: 2.0.1
6
+ * Contact: infra@acm.illinois.edu
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime.js';
13
+ import type { ApiV1SyncIdentityIsRequiredGet200Response, ApiV1UsersBatchResolveInfoPost200ResponseValue, ApiV1UsersBatchResolveInfoPostRequest, ApiV1UsersFindUserByUinPost200Response, ApiV1UsersFindUserByUinPostRequest } from '../models/index.js';
14
+ export interface ApiV1SyncIdentityIsRequiredGetRequest {
15
+ xUiucToken: string;
16
+ }
17
+ export interface ApiV1SyncIdentityPostRequest {
18
+ xUiucToken: string;
19
+ }
20
+ export interface ApiV1UsersBatchResolveInfoPostOperationRequest {
21
+ apiV1UsersBatchResolveInfoPostRequest: ApiV1UsersBatchResolveInfoPostRequest;
22
+ }
23
+ export interface ApiV1UsersFindUserByUinPostOperationRequest {
24
+ apiV1UsersFindUserByUinPostRequest: ApiV1UsersFindUserByUinPostRequest;
25
+ }
26
+ /**
27
+ *
28
+ */
29
+ export declare class GenericApi extends runtime.BaseAPI {
30
+ /**
31
+ * Verify that the API server is healthy.
32
+ */
33
+ apiV1HealthzGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
34
+ /**
35
+ * Verify that the API server is healthy.
36
+ */
37
+ apiV1HealthzGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
+ /**
39
+ * #### Authorization <hr /> Requires valid authentication but no specific authorization.
40
+ * Get a user\'s username and roles.
41
+ */
42
+ apiV1ProtectedGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
43
+ /**
44
+ * #### Authorization <hr /> Requires valid authentication but no specific authorization.
45
+ * Get a user\'s username and roles.
46
+ */
47
+ apiV1ProtectedGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
48
+ /**
49
+ * Check if a user needs a full user identity sync.
50
+ */
51
+ apiV1SyncIdentityIsRequiredGetRaw(requestParameters: ApiV1SyncIdentityIsRequiredGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1SyncIdentityIsRequiredGet200Response>>;
52
+ /**
53
+ * Check if a user needs a full user identity sync.
54
+ */
55
+ apiV1SyncIdentityIsRequiredGet(requestParameters: ApiV1SyncIdentityIsRequiredGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1SyncIdentityIsRequiredGet200Response>;
56
+ /**
57
+ * Sync the Illinois NetID account with the ACM @ UIUC account.
58
+ */
59
+ apiV1SyncIdentityPostRaw(requestParameters: ApiV1SyncIdentityPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
60
+ /**
61
+ * Sync the Illinois NetID account with the ACM @ UIUC account.
62
+ */
63
+ apiV1SyncIdentityPost(requestParameters: ApiV1SyncIdentityPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
64
+ /**
65
+ * #### Authorization <hr /> Requires valid authentication but no specific authorization.
66
+ * Resolve user emails to user info.
67
+ */
68
+ apiV1UsersBatchResolveInfoPostRaw(requestParameters: ApiV1UsersBatchResolveInfoPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
69
+ [key: string]: ApiV1UsersBatchResolveInfoPost200ResponseValue;
70
+ }>>;
71
+ /**
72
+ * #### Authorization <hr /> Requires valid authentication but no specific authorization.
73
+ * Resolve user emails to user info.
74
+ */
75
+ apiV1UsersBatchResolveInfoPost(requestParameters: ApiV1UsersBatchResolveInfoPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
76
+ [key: string]: ApiV1UsersBatchResolveInfoPost200ResponseValue;
77
+ }>;
78
+ /**
79
+ * #### Authorization <hr /> Requires any of the following roles: * User Information Viewer (<code>view:userInfo</code>)
80
+ * Find a user by UIN.
81
+ */
82
+ apiV1UsersFindUserByUinPostRaw(requestParameters: ApiV1UsersFindUserByUinPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1UsersFindUserByUinPost200Response>>;
83
+ /**
84
+ * #### Authorization <hr /> Requires any of the following roles: * User Information Viewer (<code>view:userInfo</code>)
85
+ * Find a user by UIN.
86
+ */
87
+ apiV1UsersFindUserByUinPost(requestParameters: ApiV1UsersFindUserByUinPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1UsersFindUserByUinPost200Response>;
88
+ }