@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,330 @@
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.LinkryApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ /**
28
+ *
29
+ */
30
+ class LinkryApi extends runtime.BaseAPI {
31
+ /**
32
+ * #### 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>)
33
+ * Retrieve short link for a specific org
34
+ */
35
+ apiV1LinkryOrgsOrgIdRedirGetRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['orgId'] == null) {
38
+ throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling apiV1LinkryOrgsOrgIdRedirGet().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("httpBearer", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
48
+ }
49
+ if (this.configuration && this.configuration.apiKey) {
50
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
51
+ }
52
+ let urlPath = `/api/v1/linkry/orgs/{orgId}/redir`;
53
+ urlPath = urlPath.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId'])));
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
+ * #### 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
+ * Retrieve short link for a specific org
66
+ */
67
+ apiV1LinkryOrgsOrgIdRedirGet(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const response = yield this.apiV1LinkryOrgsOrgIdRedirGetRaw(requestParameters, initOverrides);
70
+ return yield response.value();
71
+ });
72
+ }
73
+ /**
74
+ * #### 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>)
75
+ * Create a short link for a specific org
76
+ */
77
+ apiV1LinkryOrgsOrgIdRedirPostRaw(requestParameters, initOverrides) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['orgId'] == null) {
80
+ throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling apiV1LinkryOrgsOrgIdRedirPost().');
81
+ }
82
+ if (requestParameters['apiV1LinkryOrgsOrgIdRedirPostRequest'] == null) {
83
+ throw new runtime.RequiredError('apiV1LinkryOrgsOrgIdRedirPostRequest', 'Required parameter "apiV1LinkryOrgsOrgIdRedirPostRequest" was null or undefined when calling apiV1LinkryOrgsOrgIdRedirPost().');
84
+ }
85
+ const queryParameters = {};
86
+ const headerParameters = {};
87
+ headerParameters['Content-Type'] = 'application/json';
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("httpBearer", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
94
+ }
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
97
+ }
98
+ let urlPath = `/api/v1/linkry/orgs/{orgId}/redir`;
99
+ urlPath = urlPath.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId'])));
100
+ const response = yield this.request({
101
+ path: urlPath,
102
+ method: 'POST',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ body: requestParameters['apiV1LinkryOrgsOrgIdRedirPostRequest'],
106
+ }, initOverrides);
107
+ if (this.isJsonMime(response.headers.get('content-type'))) {
108
+ return new runtime.JSONApiResponse(response);
109
+ }
110
+ else {
111
+ return new runtime.TextApiResponse(response);
112
+ }
113
+ });
114
+ }
115
+ /**
116
+ * #### 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>)
117
+ * Create a short link for a specific org
118
+ */
119
+ apiV1LinkryOrgsOrgIdRedirPost(requestParameters, initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const response = yield this.apiV1LinkryOrgsOrgIdRedirPostRaw(requestParameters, initOverrides);
122
+ return yield response.value();
123
+ });
124
+ }
125
+ /**
126
+ * #### 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>)
127
+ * Delete a short link for a specific org
128
+ */
129
+ apiV1LinkryOrgsOrgIdRedirSlugDeleteRaw(requestParameters, initOverrides) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ if (requestParameters['orgId'] == null) {
132
+ throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling apiV1LinkryOrgsOrgIdRedirSlugDelete().');
133
+ }
134
+ if (requestParameters['slug'] == null) {
135
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiV1LinkryOrgsOrgIdRedirSlugDelete().');
136
+ }
137
+ const queryParameters = {};
138
+ const headerParameters = {};
139
+ if (this.configuration && this.configuration.accessToken) {
140
+ const token = this.configuration.accessToken;
141
+ const tokenString = yield token("httpBearer", []);
142
+ if (tokenString) {
143
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
144
+ }
145
+ }
146
+ if (this.configuration && this.configuration.apiKey) {
147
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
148
+ }
149
+ let urlPath = `/api/v1/linkry/orgs/{orgId}/redir/{slug}`;
150
+ urlPath = urlPath.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId'])));
151
+ urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
152
+ const response = yield this.request({
153
+ path: urlPath,
154
+ method: 'DELETE',
155
+ headers: headerParameters,
156
+ query: queryParameters,
157
+ }, initOverrides);
158
+ if (this.isJsonMime(response.headers.get('content-type'))) {
159
+ return new runtime.JSONApiResponse(response);
160
+ }
161
+ else {
162
+ return new runtime.TextApiResponse(response);
163
+ }
164
+ });
165
+ }
166
+ /**
167
+ * #### 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>)
168
+ * Delete a short link for a specific org
169
+ */
170
+ apiV1LinkryOrgsOrgIdRedirSlugDelete(requestParameters, initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ const response = yield this.apiV1LinkryOrgsOrgIdRedirSlugDeleteRaw(requestParameters, initOverrides);
173
+ return yield response.value();
174
+ });
175
+ }
176
+ /**
177
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
178
+ */
179
+ apiV1LinkryRedirGetRaw(initOverrides) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ const queryParameters = {};
182
+ const headerParameters = {};
183
+ if (this.configuration && this.configuration.accessToken) {
184
+ const token = this.configuration.accessToken;
185
+ const tokenString = yield token("httpBearer", []);
186
+ if (tokenString) {
187
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
188
+ }
189
+ }
190
+ if (this.configuration && this.configuration.apiKey) {
191
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
192
+ }
193
+ let urlPath = `/api/v1/linkry/redir`;
194
+ const response = yield this.request({
195
+ path: urlPath,
196
+ method: 'GET',
197
+ headers: headerParameters,
198
+ query: queryParameters,
199
+ }, initOverrides);
200
+ return new runtime.VoidApiResponse(response);
201
+ });
202
+ }
203
+ /**
204
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
205
+ */
206
+ apiV1LinkryRedirGet(initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ yield this.apiV1LinkryRedirGetRaw(initOverrides);
209
+ });
210
+ }
211
+ /**
212
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
213
+ */
214
+ apiV1LinkryRedirPostRaw(requestParameters, initOverrides) {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ if (requestParameters['apiV1LinkryRedirPostRequest'] == null) {
217
+ throw new runtime.RequiredError('apiV1LinkryRedirPostRequest', 'Required parameter "apiV1LinkryRedirPostRequest" was null or undefined when calling apiV1LinkryRedirPost().');
218
+ }
219
+ const queryParameters = {};
220
+ const headerParameters = {};
221
+ headerParameters['Content-Type'] = 'application/json';
222
+ if (this.configuration && this.configuration.accessToken) {
223
+ const token = this.configuration.accessToken;
224
+ const tokenString = yield token("httpBearer", []);
225
+ if (tokenString) {
226
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
227
+ }
228
+ }
229
+ if (this.configuration && this.configuration.apiKey) {
230
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
231
+ }
232
+ let urlPath = `/api/v1/linkry/redir`;
233
+ const response = yield this.request({
234
+ path: urlPath,
235
+ method: 'POST',
236
+ headers: headerParameters,
237
+ query: queryParameters,
238
+ body: requestParameters['apiV1LinkryRedirPostRequest'],
239
+ }, initOverrides);
240
+ return new runtime.VoidApiResponse(response);
241
+ });
242
+ }
243
+ /**
244
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
245
+ */
246
+ apiV1LinkryRedirPost(requestParameters, initOverrides) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ yield this.apiV1LinkryRedirPostRaw(requestParameters, initOverrides);
249
+ });
250
+ }
251
+ /**
252
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
253
+ */
254
+ apiV1LinkryRedirSlugDeleteRaw(requestParameters, initOverrides) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ if (requestParameters['slug'] == null) {
257
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiV1LinkryRedirSlugDelete().');
258
+ }
259
+ const queryParameters = {};
260
+ const headerParameters = {};
261
+ if (this.configuration && this.configuration.accessToken) {
262
+ const token = this.configuration.accessToken;
263
+ const tokenString = yield token("httpBearer", []);
264
+ if (tokenString) {
265
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
266
+ }
267
+ }
268
+ if (this.configuration && this.configuration.apiKey) {
269
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
270
+ }
271
+ let urlPath = `/api/v1/linkry/redir/{slug}`;
272
+ urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
273
+ const response = yield this.request({
274
+ path: urlPath,
275
+ method: 'DELETE',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ }, initOverrides);
279
+ return new runtime.VoidApiResponse(response);
280
+ });
281
+ }
282
+ /**
283
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
284
+ */
285
+ apiV1LinkryRedirSlugDelete(requestParameters, initOverrides) {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ yield this.apiV1LinkryRedirSlugDeleteRaw(requestParameters, initOverrides);
288
+ });
289
+ }
290
+ /**
291
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
292
+ */
293
+ apiV1LinkryRedirSlugGetRaw(requestParameters, initOverrides) {
294
+ return __awaiter(this, void 0, void 0, function* () {
295
+ if (requestParameters['slug'] == null) {
296
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiV1LinkryRedirSlugGet().');
297
+ }
298
+ const queryParameters = {};
299
+ const headerParameters = {};
300
+ if (this.configuration && this.configuration.accessToken) {
301
+ const token = this.configuration.accessToken;
302
+ const tokenString = yield token("httpBearer", []);
303
+ if (tokenString) {
304
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
305
+ }
306
+ }
307
+ if (this.configuration && this.configuration.apiKey) {
308
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
309
+ }
310
+ let urlPath = `/api/v1/linkry/redir/{slug}`;
311
+ urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
312
+ const response = yield this.request({
313
+ path: urlPath,
314
+ method: 'GET',
315
+ headers: headerParameters,
316
+ query: queryParameters,
317
+ }, initOverrides);
318
+ return new runtime.VoidApiResponse(response);
319
+ });
320
+ }
321
+ /**
322
+ * #### Authorization <hr /> Requires any of the following roles: * Links Manager (<code>manage:links</code>) * Links Admin (<code>admin:links</code>)
323
+ */
324
+ apiV1LinkryRedirSlugGet(requestParameters, initOverrides) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ yield this.apiV1LinkryRedirSlugGetRaw(requestParameters, initOverrides);
327
+ });
328
+ }
329
+ }
330
+ exports.LinkryApi = LinkryApi;
@@ -0,0 +1,51 @@
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
+ export interface ApiV1LogsModuleGetRequest {
14
+ start: number;
15
+ end: number;
16
+ module: ApiV1LogsModuleGetModuleEnum;
17
+ }
18
+ /**
19
+ *
20
+ */
21
+ export declare class LoggingApi extends runtime.BaseAPI {
22
+ /**
23
+ * #### Authorization <hr /> Requires any of the following roles: * Audit Log Viewer (<code>view:auditLog</code>)
24
+ * Retrieve audit logs for a module.
25
+ */
26
+ apiV1LogsModuleGetRaw(requestParameters: ApiV1LogsModuleGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
27
+ /**
28
+ * #### Authorization <hr /> Requires any of the following roles: * Audit Log Viewer (<code>view:auditLog</code>)
29
+ * Retrieve audit logs for a module.
30
+ */
31
+ apiV1LogsModuleGet(requestParameters: ApiV1LogsModuleGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
32
+ }
33
+ /**
34
+ * @export
35
+ */
36
+ export declare const ApiV1LogsModuleGetModuleEnum: {
37
+ readonly Iam: "iam";
38
+ readonly Events: "events";
39
+ readonly Stripe: "stripe";
40
+ readonly EmailNotification: "emailNotification";
41
+ readonly ProvisionNewMember: "provisionNewMember";
42
+ readonly MobileWallet: "mobileWallet";
43
+ readonly Linkry: "linkry";
44
+ readonly AuditLog: "auditLog";
45
+ readonly ApiKey: "apiKey";
46
+ readonly RoomReservations: "roomReservations";
47
+ readonly ExternalMembership: "externalMembership";
48
+ readonly OrgInfo: "orgInfo";
49
+ readonly Store: "store";
50
+ };
51
+ export type ApiV1LogsModuleGetModuleEnum = typeof ApiV1LogsModuleGetModuleEnum[keyof typeof ApiV1LogsModuleGetModuleEnum];
@@ -0,0 +1,103 @@
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.ApiV1LogsModuleGetModuleEnum = exports.LoggingApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ /**
28
+ *
29
+ */
30
+ class LoggingApi extends runtime.BaseAPI {
31
+ /**
32
+ * #### Authorization <hr /> Requires any of the following roles: * Audit Log Viewer (<code>view:auditLog</code>)
33
+ * Retrieve audit logs for a module.
34
+ */
35
+ apiV1LogsModuleGetRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['start'] == null) {
38
+ throw new runtime.RequiredError('start', 'Required parameter "start" was null or undefined when calling apiV1LogsModuleGet().');
39
+ }
40
+ if (requestParameters['end'] == null) {
41
+ throw new runtime.RequiredError('end', 'Required parameter "end" was null or undefined when calling apiV1LogsModuleGet().');
42
+ }
43
+ if (requestParameters['module'] == null) {
44
+ throw new runtime.RequiredError('module', 'Required parameter "module" was null or undefined when calling apiV1LogsModuleGet().');
45
+ }
46
+ const queryParameters = {};
47
+ if (requestParameters['start'] != null) {
48
+ queryParameters['start'] = requestParameters['start'];
49
+ }
50
+ if (requestParameters['end'] != null) {
51
+ queryParameters['end'] = requestParameters['end'];
52
+ }
53
+ const headerParameters = {};
54
+ if (this.configuration && this.configuration.accessToken) {
55
+ const token = this.configuration.accessToken;
56
+ const tokenString = yield token("httpBearer", []);
57
+ if (tokenString) {
58
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
59
+ }
60
+ }
61
+ if (this.configuration && this.configuration.apiKey) {
62
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
63
+ }
64
+ let urlPath = `/api/v1/logs/{module}`;
65
+ urlPath = urlPath.replace(`{${"module"}}`, encodeURIComponent(String(requestParameters['module'])));
66
+ const response = yield this.request({
67
+ path: urlPath,
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+ return new runtime.VoidApiResponse(response);
73
+ });
74
+ }
75
+ /**
76
+ * #### Authorization <hr /> Requires any of the following roles: * Audit Log Viewer (<code>view:auditLog</code>)
77
+ * Retrieve audit logs for a module.
78
+ */
79
+ apiV1LogsModuleGet(requestParameters, initOverrides) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ yield this.apiV1LogsModuleGetRaw(requestParameters, initOverrides);
82
+ });
83
+ }
84
+ }
85
+ exports.LoggingApi = LoggingApi;
86
+ /**
87
+ * @export
88
+ */
89
+ exports.ApiV1LogsModuleGetModuleEnum = {
90
+ Iam: 'iam',
91
+ Events: 'events',
92
+ Stripe: 'stripe',
93
+ EmailNotification: 'emailNotification',
94
+ ProvisionNewMember: 'provisionNewMember',
95
+ MobileWallet: 'mobileWallet',
96
+ Linkry: 'linkry',
97
+ AuditLog: 'auditLog',
98
+ ApiKey: 'apiKey',
99
+ RoomReservations: 'roomReservations',
100
+ ExternalMembership: 'externalMembership',
101
+ OrgInfo: 'orgInfo',
102
+ Store: 'store'
103
+ };
@@ -0,0 +1,107 @@
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 { ApiV1MembershipExternalListListIdPatchRequest, ApiV1MembershipGet200Response, ApiV2MembershipNetIdGet200Response, ApiV2MembershipVerifyBatchOfMembersPost200Response } from '../models/index.js';
14
+ export interface ApiV1MembershipExternalListListIdGetRequest {
15
+ listId: string;
16
+ }
17
+ export interface ApiV1MembershipExternalListListIdPatchOperationRequest {
18
+ listId: string;
19
+ apiV1MembershipExternalListListIdPatchRequest: ApiV1MembershipExternalListListIdPatchRequest;
20
+ }
21
+ export interface ApiV1MembershipGetRequest {
22
+ xUiucToken: string;
23
+ lists?: Array<string>;
24
+ }
25
+ export interface ApiV2MembershipCheckoutGetRequest {
26
+ xUiucToken: string;
27
+ force?: boolean;
28
+ }
29
+ export interface ApiV2MembershipNetIdGetRequest {
30
+ netId: string;
31
+ list?: string;
32
+ }
33
+ export interface ApiV2MembershipVerifyBatchOfMembersPostRequest {
34
+ requestBody: Array<string>;
35
+ list?: string;
36
+ }
37
+ /**
38
+ *
39
+ */
40
+ export declare class MembershipApi extends runtime.BaseAPI {
41
+ /**
42
+ * #### Authorization <hr /> Requires any of the following roles: * External Membership List Viewer (<code>view:externalMembershipList</code>) * External Membership List Manager (<code>manage:externalMembershipList</code>)
43
+ * Get all member list IDs
44
+ */
45
+ apiV1MembershipExternalListGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string | null>>>;
46
+ /**
47
+ * #### Authorization <hr /> Requires any of the following roles: * External Membership List Viewer (<code>view:externalMembershipList</code>) * External Membership List Manager (<code>manage:externalMembershipList</code>)
48
+ * Get all member list IDs
49
+ */
50
+ apiV1MembershipExternalListGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string | null>>;
51
+ /**
52
+ * #### Authorization <hr /> Requires any of the following roles: * External Membership List Viewer (<code>view:externalMembershipList</code>) * External Membership List Manager (<code>manage:externalMembershipList</code>)
53
+ * Get all members of an external organization
54
+ */
55
+ apiV1MembershipExternalListListIdGetRaw(requestParameters: ApiV1MembershipExternalListListIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
56
+ /**
57
+ * #### Authorization <hr /> Requires any of the following roles: * External Membership List Viewer (<code>view:externalMembershipList</code>) * External Membership List Manager (<code>manage:externalMembershipList</code>)
58
+ * Get all members of an external organization
59
+ */
60
+ apiV1MembershipExternalListListIdGet(requestParameters: ApiV1MembershipExternalListListIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
61
+ /**
62
+ * #### Authorization <hr /> Requires any of the following roles: * External Membership List Manager (<code>manage:externalMembershipList</code>)
63
+ * Modify members of an external organization
64
+ */
65
+ apiV1MembershipExternalListListIdPatchRaw(requestParameters: ApiV1MembershipExternalListListIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
66
+ /**
67
+ * #### Authorization <hr /> Requires any of the following roles: * External Membership List Manager (<code>manage:externalMembershipList</code>)
68
+ * Modify members of an external organization
69
+ */
70
+ apiV1MembershipExternalListListIdPatch(requestParameters: ApiV1MembershipExternalListListIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
71
+ /**
72
+ * Check self membership in any of specified lists.
73
+ */
74
+ apiV1MembershipGetRaw(requestParameters: ApiV1MembershipGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1MembershipGet200Response>>;
75
+ /**
76
+ * Check self membership in any of specified lists.
77
+ */
78
+ apiV1MembershipGet(requestParameters: ApiV1MembershipGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1MembershipGet200Response>;
79
+ /**
80
+ * Create a checkout session to purchase an ACM @ UIUC membership.
81
+ */
82
+ apiV2MembershipCheckoutGetRaw(requestParameters: ApiV2MembershipCheckoutGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
83
+ /**
84
+ * Create a checkout session to purchase an ACM @ UIUC membership.
85
+ */
86
+ apiV2MembershipCheckoutGet(requestParameters: ApiV2MembershipCheckoutGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
87
+ /**
88
+ * #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
89
+ * Check ACM @ UIUC paid membership (or partner organization membership) status.
90
+ */
91
+ apiV2MembershipNetIdGetRaw(requestParameters: ApiV2MembershipNetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV2MembershipNetIdGet200Response>>;
92
+ /**
93
+ * #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
94
+ * Check ACM @ UIUC paid membership (or partner organization membership) status.
95
+ */
96
+ apiV2MembershipNetIdGet(requestParameters: ApiV2MembershipNetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV2MembershipNetIdGet200Response>;
97
+ /**
98
+ * #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
99
+ * Check a batch of NetIDs for ACM @ UIUC paid membership (or partner organization membership) status.
100
+ */
101
+ apiV2MembershipVerifyBatchOfMembersPostRaw(requestParameters: ApiV2MembershipVerifyBatchOfMembersPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV2MembershipVerifyBatchOfMembersPost200Response>>;
102
+ /**
103
+ * #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
104
+ * Check a batch of NetIDs for ACM @ UIUC paid membership (or partner organization membership) status.
105
+ */
106
+ apiV2MembershipVerifyBatchOfMembersPost(requestParameters: ApiV2MembershipVerifyBatchOfMembersPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV2MembershipVerifyBatchOfMembersPost200Response>;
107
+ }