@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,327 @@
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.IAMApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ /**
28
+ *
29
+ */
30
+ class IAMApi extends runtime.BaseAPI {
31
+ /**
32
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
33
+ * Get all manageable groups.
34
+ */
35
+ apiV1IamGroupsGetRaw(initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("httpBearer", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
45
+ }
46
+ if (this.configuration && this.configuration.apiKey) {
47
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
48
+ }
49
+ let urlPath = `/api/v1/iam/groups`;
50
+ const response = yield this.request({
51
+ path: urlPath,
52
+ method: 'GET',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ }, initOverrides);
56
+ return new runtime.VoidApiResponse(response);
57
+ });
58
+ }
59
+ /**
60
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
61
+ * Get all manageable groups.
62
+ */
63
+ apiV1IamGroupsGet(initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ yield this.apiV1IamGroupsGetRaw(initOverrides);
66
+ });
67
+ }
68
+ /**
69
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
70
+ * Get the members of a group.
71
+ */
72
+ apiV1IamGroupsGroupIdGetRaw(requestParameters, initOverrides) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ if (requestParameters['groupId'] == null) {
75
+ throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling apiV1IamGroupsGroupIdGet().');
76
+ }
77
+ const queryParameters = {};
78
+ const headerParameters = {};
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = yield token("httpBearer", []);
82
+ if (tokenString) {
83
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
84
+ }
85
+ }
86
+ if (this.configuration && this.configuration.apiKey) {
87
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
88
+ }
89
+ let urlPath = `/api/v1/iam/groups/{groupId}`;
90
+ urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId'])));
91
+ const response = yield this.request({
92
+ path: urlPath,
93
+ method: 'GET',
94
+ headers: headerParameters,
95
+ query: queryParameters,
96
+ }, initOverrides);
97
+ return new runtime.VoidApiResponse(response);
98
+ });
99
+ }
100
+ /**
101
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
102
+ * Get the members of a group.
103
+ */
104
+ apiV1IamGroupsGroupIdGet(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ yield this.apiV1IamGroupsGroupIdGetRaw(requestParameters, initOverrides);
107
+ });
108
+ }
109
+ /**
110
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
111
+ * Update the members of a group.
112
+ */
113
+ apiV1IamGroupsGroupIdPatchRaw(requestParameters, initOverrides) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ if (requestParameters['groupId'] == null) {
116
+ throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling apiV1IamGroupsGroupIdPatch().');
117
+ }
118
+ if (requestParameters['apiV1IamGroupsGroupIdPatchRequest'] == null) {
119
+ throw new runtime.RequiredError('apiV1IamGroupsGroupIdPatchRequest', 'Required parameter "apiV1IamGroupsGroupIdPatchRequest" was null or undefined when calling apiV1IamGroupsGroupIdPatch().');
120
+ }
121
+ const queryParameters = {};
122
+ const headerParameters = {};
123
+ headerParameters['Content-Type'] = 'application/json';
124
+ if (this.configuration && this.configuration.accessToken) {
125
+ const token = this.configuration.accessToken;
126
+ const tokenString = yield token("httpBearer", []);
127
+ if (tokenString) {
128
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
129
+ }
130
+ }
131
+ if (this.configuration && this.configuration.apiKey) {
132
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
133
+ }
134
+ let urlPath = `/api/v1/iam/groups/{groupId}`;
135
+ urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId'])));
136
+ const response = yield this.request({
137
+ path: urlPath,
138
+ method: 'PATCH',
139
+ headers: headerParameters,
140
+ query: queryParameters,
141
+ body: requestParameters['apiV1IamGroupsGroupIdPatchRequest'],
142
+ }, initOverrides);
143
+ return new runtime.VoidApiResponse(response);
144
+ });
145
+ }
146
+ /**
147
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
148
+ * Update the members of a group.
149
+ */
150
+ apiV1IamGroupsGroupIdPatch(requestParameters, initOverrides) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ yield this.apiV1IamGroupsGroupIdPatchRaw(requestParameters, initOverrides);
153
+ });
154
+ }
155
+ /**
156
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
157
+ * Get a group\'s application role mappings.
158
+ */
159
+ apiV1IamGroupsGroupIdRolesGetRaw(requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ if (requestParameters['groupId'] == null) {
162
+ throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling apiV1IamGroupsGroupIdRolesGet().');
163
+ }
164
+ const queryParameters = {};
165
+ const headerParameters = {};
166
+ if (this.configuration && this.configuration.accessToken) {
167
+ const token = this.configuration.accessToken;
168
+ const tokenString = yield token("httpBearer", []);
169
+ if (tokenString) {
170
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
171
+ }
172
+ }
173
+ if (this.configuration && this.configuration.apiKey) {
174
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
175
+ }
176
+ let urlPath = `/api/v1/iam/groups/{groupId}/roles`;
177
+ urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId'])));
178
+ const response = yield this.request({
179
+ path: urlPath,
180
+ method: 'GET',
181
+ headers: headerParameters,
182
+ query: queryParameters,
183
+ }, initOverrides);
184
+ return new runtime.VoidApiResponse(response);
185
+ });
186
+ }
187
+ /**
188
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
189
+ * Get a group\'s application role mappings.
190
+ */
191
+ apiV1IamGroupsGroupIdRolesGet(requestParameters, initOverrides) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ yield this.apiV1IamGroupsGroupIdRolesGetRaw(requestParameters, initOverrides);
194
+ });
195
+ }
196
+ /**
197
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
198
+ * Update a group\'s application role mappings.
199
+ */
200
+ apiV1IamGroupsGroupIdRolesPostRaw(requestParameters, initOverrides) {
201
+ return __awaiter(this, void 0, void 0, function* () {
202
+ if (requestParameters['groupId'] == null) {
203
+ throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling apiV1IamGroupsGroupIdRolesPost().');
204
+ }
205
+ if (requestParameters['apiV1IamGroupsGroupIdRolesPostRequest'] == null) {
206
+ throw new runtime.RequiredError('apiV1IamGroupsGroupIdRolesPostRequest', 'Required parameter "apiV1IamGroupsGroupIdRolesPostRequest" was null or undefined when calling apiV1IamGroupsGroupIdRolesPost().');
207
+ }
208
+ const queryParameters = {};
209
+ const headerParameters = {};
210
+ headerParameters['Content-Type'] = 'application/json';
211
+ if (this.configuration && this.configuration.accessToken) {
212
+ const token = this.configuration.accessToken;
213
+ const tokenString = yield token("httpBearer", []);
214
+ if (tokenString) {
215
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
216
+ }
217
+ }
218
+ if (this.configuration && this.configuration.apiKey) {
219
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
220
+ }
221
+ let urlPath = `/api/v1/iam/groups/{groupId}/roles`;
222
+ urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId'])));
223
+ const response = yield this.request({
224
+ path: urlPath,
225
+ method: 'POST',
226
+ headers: headerParameters,
227
+ query: queryParameters,
228
+ body: requestParameters['apiV1IamGroupsGroupIdRolesPostRequest'],
229
+ }, initOverrides);
230
+ return new runtime.VoidApiResponse(response);
231
+ });
232
+ }
233
+ /**
234
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Admin (<code>admin:iam</code>)
235
+ * Update a group\'s application role mappings.
236
+ */
237
+ apiV1IamGroupsGroupIdRolesPost(requestParameters, initOverrides) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ yield this.apiV1IamGroupsGroupIdRolesPostRaw(requestParameters, initOverrides);
240
+ });
241
+ }
242
+ /**
243
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Inviter (<code>invite:iam</code>) * IAM Admin (<code>admin:iam</code>)
244
+ * Invite a user to the ACM @ UIUC Entra ID tenant.
245
+ */
246
+ apiV1IamInviteUsersPostRaw(requestParameters, initOverrides) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ if (requestParameters['apiV1IamInviteUsersPostRequest'] == null) {
249
+ throw new runtime.RequiredError('apiV1IamInviteUsersPostRequest', 'Required parameter "apiV1IamInviteUsersPostRequest" was null or undefined when calling apiV1IamInviteUsersPost().');
250
+ }
251
+ const queryParameters = {};
252
+ const headerParameters = {};
253
+ headerParameters['Content-Type'] = 'application/json';
254
+ if (this.configuration && this.configuration.accessToken) {
255
+ const token = this.configuration.accessToken;
256
+ const tokenString = yield token("httpBearer", []);
257
+ if (tokenString) {
258
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
259
+ }
260
+ }
261
+ if (this.configuration && this.configuration.apiKey) {
262
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
263
+ }
264
+ let urlPath = `/api/v1/iam/inviteUsers`;
265
+ const response = yield this.request({
266
+ path: urlPath,
267
+ method: 'POST',
268
+ headers: headerParameters,
269
+ query: queryParameters,
270
+ body: requestParameters['apiV1IamInviteUsersPostRequest'],
271
+ }, initOverrides);
272
+ return new runtime.VoidApiResponse(response);
273
+ });
274
+ }
275
+ /**
276
+ * #### Authorization <hr /> Requires any of the following roles: * IAM Inviter (<code>invite:iam</code>) * IAM Admin (<code>admin:iam</code>)
277
+ * Invite a user to the ACM @ UIUC Entra ID tenant.
278
+ */
279
+ apiV1IamInviteUsersPost(requestParameters, initOverrides) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ yield this.apiV1IamInviteUsersPostRaw(requestParameters, initOverrides);
282
+ });
283
+ }
284
+ /**
285
+ * #### Authorization <hr /> Requires valid authentication but no specific authorization.
286
+ * Update user\'s profile.
287
+ */
288
+ apiV1IamProfilePatchRaw(requestParameters, initOverrides) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ if (requestParameters['apiV1IamProfilePatchRequest'] == null) {
291
+ throw new runtime.RequiredError('apiV1IamProfilePatchRequest', 'Required parameter "apiV1IamProfilePatchRequest" was null or undefined when calling apiV1IamProfilePatch().');
292
+ }
293
+ const queryParameters = {};
294
+ const headerParameters = {};
295
+ headerParameters['Content-Type'] = 'application/json';
296
+ if (this.configuration && this.configuration.accessToken) {
297
+ const token = this.configuration.accessToken;
298
+ const tokenString = yield token("httpBearer", []);
299
+ if (tokenString) {
300
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
301
+ }
302
+ }
303
+ if (this.configuration && this.configuration.apiKey) {
304
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
305
+ }
306
+ let urlPath = `/api/v1/iam/profile`;
307
+ const response = yield this.request({
308
+ path: urlPath,
309
+ method: 'PATCH',
310
+ headers: headerParameters,
311
+ query: queryParameters,
312
+ body: requestParameters['apiV1IamProfilePatchRequest'],
313
+ }, initOverrides);
314
+ return new runtime.VoidApiResponse(response);
315
+ });
316
+ }
317
+ /**
318
+ * #### Authorization <hr /> Requires valid authentication but no specific authorization.
319
+ * Update user\'s profile.
320
+ */
321
+ apiV1IamProfilePatch(requestParameters, initOverrides) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ yield this.apiV1IamProfilePatchRaw(requestParameters, initOverrides);
324
+ });
325
+ }
326
+ }
327
+ exports.IAMApi = IAMApi;
@@ -0,0 +1,29 @@
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 } from '../models/index.js';
14
+ export interface ApiV1IcalHostGetRequest {
15
+ host: AcmOrganization;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class ICalendarIntegrationApi extends runtime.BaseAPI {
21
+ /**
22
+ * Retrieve the calendar for ACM @ UIUC or a specific sub-organization.
23
+ */
24
+ apiV1IcalHostGetRaw(requestParameters: ApiV1IcalHostGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
25
+ /**
26
+ * Retrieve the calendar for ACM @ UIUC or a specific sub-organization.
27
+ */
28
+ apiV1IcalHostGet(requestParameters: ApiV1IcalHostGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
29
+ }
@@ -0,0 +1,61 @@
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.ICalendarIntegrationApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ /**
28
+ *
29
+ */
30
+ class ICalendarIntegrationApi extends runtime.BaseAPI {
31
+ /**
32
+ * Retrieve the calendar for ACM @ UIUC or a specific sub-organization.
33
+ */
34
+ apiV1IcalHostGetRaw(requestParameters, initOverrides) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ if (requestParameters['host'] == null) {
37
+ throw new runtime.RequiredError('host', 'Required parameter "host" was null or undefined when calling apiV1IcalHostGet().');
38
+ }
39
+ const queryParameters = {};
40
+ const headerParameters = {};
41
+ let urlPath = `/api/v1/ical/{host}?`;
42
+ urlPath = urlPath.replace(`{${"host"}}`, encodeURIComponent(String(requestParameters['host'])));
43
+ const response = yield this.request({
44
+ path: urlPath,
45
+ method: 'GET',
46
+ headers: headerParameters,
47
+ query: queryParameters,
48
+ }, initOverrides);
49
+ return new runtime.VoidApiResponse(response);
50
+ });
51
+ }
52
+ /**
53
+ * Retrieve the calendar for ACM @ UIUC or a specific sub-organization.
54
+ */
55
+ apiV1IcalHostGet(requestParameters, initOverrides) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ yield this.apiV1IcalHostGetRaw(requestParameters, initOverrides);
58
+ });
59
+ }
60
+ }
61
+ exports.ICalendarIntegrationApi = ICalendarIntegrationApi;
@@ -0,0 +1,100 @@
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 { ApiV1LinkryOrgsOrgIdRedirGet200ResponseInner, ApiV1LinkryOrgsOrgIdRedirPostRequest, ApiV1LinkryRedirPostRequest, OrgUniqueId } from '../models/index.js';
14
+ export interface ApiV1LinkryOrgsOrgIdRedirGetRequest {
15
+ orgId: OrgUniqueId;
16
+ }
17
+ export interface ApiV1LinkryOrgsOrgIdRedirPostOperationRequest {
18
+ orgId: OrgUniqueId;
19
+ apiV1LinkryOrgsOrgIdRedirPostRequest: ApiV1LinkryOrgsOrgIdRedirPostRequest;
20
+ }
21
+ export interface ApiV1LinkryOrgsOrgIdRedirSlugDeleteRequest {
22
+ orgId: OrgUniqueId;
23
+ slug: string;
24
+ }
25
+ export interface ApiV1LinkryRedirPostOperationRequest {
26
+ apiV1LinkryRedirPostRequest: ApiV1LinkryRedirPostRequest;
27
+ }
28
+ export interface ApiV1LinkryRedirSlugDeleteRequest {
29
+ slug: string;
30
+ }
31
+ export interface ApiV1LinkryRedirSlugGetRequest {
32
+ slug: string;
33
+ }
34
+ /**
35
+ *
36
+ */
37
+ export declare class LinkryApi extends runtime.BaseAPI {
38
+ /**
39
+ * #### Authorization <hr /> Requires any of the following roles: * Manager of at least one org (<code>__metaRole:manage:someOrg</code>) * Links Admin (<code>admin:links</code>)
40
+ * Retrieve short link for a specific org
41
+ */
42
+ apiV1LinkryOrgsOrgIdRedirGetRaw(requestParameters: ApiV1LinkryOrgsOrgIdRedirGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiV1LinkryOrgsOrgIdRedirGet200ResponseInner>>>;
43
+ /**
44
+ * #### Authorization <hr /> Requires any of the following roles: * Manager of at least one org (<code>__metaRole:manage:someOrg</code>) * Links Admin (<code>admin:links</code>)
45
+ * Retrieve short link for a specific org
46
+ */
47
+ apiV1LinkryOrgsOrgIdRedirGet(requestParameters: ApiV1LinkryOrgsOrgIdRedirGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1LinkryOrgsOrgIdRedirGet200ResponseInner>>;
48
+ /**
49
+ * #### Authorization <hr /> Requires any of the following roles: * Manager of at least one org (<code>__metaRole:manage:someOrg</code>) * Links Admin (<code>admin:links</code>)
50
+ * Create a short link for a specific org
51
+ */
52
+ apiV1LinkryOrgsOrgIdRedirPostRaw(requestParameters: ApiV1LinkryOrgsOrgIdRedirPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
53
+ /**
54
+ * #### Authorization <hr /> Requires any of the following roles: * Manager of at least one org (<code>__metaRole:manage:someOrg</code>) * Links Admin (<code>admin:links</code>)
55
+ * Create a short link for a specific org
56
+ */
57
+ apiV1LinkryOrgsOrgIdRedirPost(requestParameters: ApiV1LinkryOrgsOrgIdRedirPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
58
+ /**
59
+ * #### Authorization <hr /> Requires any of the following roles: * Manager of at least one org (<code>__metaRole:manage:someOrg</code>) * Links Admin (<code>admin:links</code>)
60
+ * Delete a short link for a specific org
61
+ */
62
+ apiV1LinkryOrgsOrgIdRedirSlugDeleteRaw(requestParameters: ApiV1LinkryOrgsOrgIdRedirSlugDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
63
+ /**
64
+ * #### Authorization <hr /> Requires any of the following roles: * Manager of at least one org (<code>__metaRole:manage:someOrg</code>) * Links Admin (<code>admin:links</code>)
65
+ * Delete a short link for a specific org
66
+ */
67
+ apiV1LinkryOrgsOrgIdRedirSlugDelete(requestParameters: ApiV1LinkryOrgsOrgIdRedirSlugDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
68
+ /**
69
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
70
+ */
71
+ apiV1LinkryRedirGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
72
+ /**
73
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
74
+ */
75
+ apiV1LinkryRedirGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
76
+ /**
77
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
78
+ */
79
+ apiV1LinkryRedirPostRaw(requestParameters: ApiV1LinkryRedirPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
80
+ /**
81
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
82
+ */
83
+ apiV1LinkryRedirPost(requestParameters: ApiV1LinkryRedirPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
84
+ /**
85
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
86
+ */
87
+ apiV1LinkryRedirSlugDeleteRaw(requestParameters: ApiV1LinkryRedirSlugDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
88
+ /**
89
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
90
+ */
91
+ apiV1LinkryRedirSlugDelete(requestParameters: ApiV1LinkryRedirSlugDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
92
+ /**
93
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
94
+ */
95
+ apiV1LinkryRedirSlugGetRaw(requestParameters: ApiV1LinkryRedirSlugGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
96
+ /**
97
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
98
+ */
99
+ apiV1LinkryRedirSlugGet(requestParameters: ApiV1LinkryRedirSlugGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
100
+ }