@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.
- package/.openapi-generator/FILES +127 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +277 -0
- package/dist/apis/APIKeysApi.d.ts +54 -0
- package/dist/apis/APIKeysApi.js +143 -0
- package/dist/apis/EventsApi.d.ts +86 -0
- package/dist/apis/EventsApi.js +250 -0
- package/dist/apis/GenericApi.d.ts +88 -0
- package/dist/apis/GenericApi.js +249 -0
- package/dist/apis/IAMApi.d.ts +108 -0
- package/dist/apis/IAMApi.js +327 -0
- package/dist/apis/ICalendarIntegrationApi.d.ts +29 -0
- package/dist/apis/ICalendarIntegrationApi.js +61 -0
- package/dist/apis/LinkryApi.d.ts +100 -0
- package/dist/apis/LinkryApi.js +330 -0
- package/dist/apis/LoggingApi.d.ts +51 -0
- package/dist/apis/LoggingApi.js +103 -0
- package/dist/apis/MembershipApi.d.ts +107 -0
- package/dist/apis/MembershipApi.js +330 -0
- package/dist/apis/MobileWalletApi.d.ts +28 -0
- package/dist/apis/MobileWalletApi.js +64 -0
- package/dist/apis/OrganizationsApi.d.ts +65 -0
- package/dist/apis/OrganizationsApi.js +192 -0
- package/dist/apis/RSVPApi.d.ts +109 -0
- package/dist/apis/RSVPApi.js +345 -0
- package/dist/apis/RoomRequestsApi.d.ts +102 -0
- package/dist/apis/RoomRequestsApi.js +279 -0
- package/dist/apis/StoreApi.d.ts +141 -0
- package/dist/apis/StoreApi.js +449 -0
- package/dist/apis/StripeApi.d.ts +54 -0
- package/dist/apis/StripeApi.js +152 -0
- package/dist/apis/VendingApi.d.ts +33 -0
- package/dist/apis/VendingApi.js +83 -0
- package/dist/apis/index.d.ts +15 -0
- package/dist/apis/index.js +33 -0
- package/dist/esm/apis/APIKeysApi.d.ts +54 -0
- package/dist/esm/apis/APIKeysApi.js +139 -0
- package/dist/esm/apis/EventsApi.d.ts +86 -0
- package/dist/esm/apis/EventsApi.js +246 -0
- package/dist/esm/apis/GenericApi.d.ts +88 -0
- package/dist/esm/apis/GenericApi.js +245 -0
- package/dist/esm/apis/IAMApi.d.ts +108 -0
- package/dist/esm/apis/IAMApi.js +323 -0
- package/dist/esm/apis/ICalendarIntegrationApi.d.ts +29 -0
- package/dist/esm/apis/ICalendarIntegrationApi.js +57 -0
- package/dist/esm/apis/LinkryApi.d.ts +100 -0
- package/dist/esm/apis/LinkryApi.js +326 -0
- package/dist/esm/apis/LoggingApi.d.ts +51 -0
- package/dist/esm/apis/LoggingApi.js +99 -0
- package/dist/esm/apis/MembershipApi.d.ts +107 -0
- package/dist/esm/apis/MembershipApi.js +326 -0
- package/dist/esm/apis/MobileWalletApi.d.ts +28 -0
- package/dist/esm/apis/MobileWalletApi.js +60 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +65 -0
- package/dist/esm/apis/OrganizationsApi.js +188 -0
- package/dist/esm/apis/RSVPApi.d.ts +109 -0
- package/dist/esm/apis/RSVPApi.js +341 -0
- package/dist/esm/apis/RoomRequestsApi.d.ts +102 -0
- package/dist/esm/apis/RoomRequestsApi.js +275 -0
- package/dist/esm/apis/StoreApi.d.ts +141 -0
- package/dist/esm/apis/StoreApi.js +445 -0
- package/dist/esm/apis/StripeApi.d.ts +54 -0
- package/dist/esm/apis/StripeApi.js +148 -0
- package/dist/esm/apis/VendingApi.d.ts +33 -0
- package/dist/esm/apis/VendingApi.js +79 -0
- package/dist/esm/apis/index.d.ts +15 -0
- package/dist/esm/apis/index.js +17 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/index.d.ts +3567 -0
- package/dist/esm/models/index.js +539 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +327 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/index.d.ts +3567 -0
- package/dist/models/index.js +543 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +342 -0
- package/package.json +23 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ACM @ UIUC Core API
|
|
5
|
+
* 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\".**
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.1
|
|
8
|
+
* Contact: infra@acm.illinois.edu
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class MembershipApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* #### Authorization <hr /> Requires any of the following roles: * External Membership List Viewer (<code>view:externalMembershipList</code>) * External Membership List Manager (<code>manage:externalMembershipList</code>)
|
|
30
|
+
* Get all member list IDs
|
|
31
|
+
*/
|
|
32
|
+
apiV1MembershipExternalListGetRaw(initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37
|
+
const token = this.configuration.accessToken;
|
|
38
|
+
const tokenString = yield token("httpBearer", []);
|
|
39
|
+
if (tokenString) {
|
|
40
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
44
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
45
|
+
}
|
|
46
|
+
let urlPath = `/api/v1/membership/externalList`;
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
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 member list IDs
|
|
59
|
+
*/
|
|
60
|
+
apiV1MembershipExternalListGet(initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const response = yield this.apiV1MembershipExternalListGetRaw(initOverrides);
|
|
63
|
+
return yield response.value();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* #### Authorization <hr /> Requires any of the following roles: * External Membership List Viewer (<code>view:externalMembershipList</code>) * External Membership List Manager (<code>manage:externalMembershipList</code>)
|
|
68
|
+
* Get all members of an external organization
|
|
69
|
+
*/
|
|
70
|
+
apiV1MembershipExternalListListIdGetRaw(requestParameters, initOverrides) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
if (requestParameters['listId'] == null) {
|
|
73
|
+
throw new runtime.RequiredError('listId', 'Required parameter "listId" was null or undefined when calling apiV1MembershipExternalListListIdGet().');
|
|
74
|
+
}
|
|
75
|
+
const queryParameters = {};
|
|
76
|
+
const headerParameters = {};
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = yield token("httpBearer", []);
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
85
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
86
|
+
}
|
|
87
|
+
let urlPath = `/api/v1/membership/externalList/{listId}`;
|
|
88
|
+
urlPath = urlPath.replace(`{${"listId"}}`, encodeURIComponent(String(requestParameters['listId'])));
|
|
89
|
+
const response = yield this.request({
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
}, initOverrides);
|
|
95
|
+
return new runtime.JSONApiResponse(response);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* #### Authorization <hr /> Requires any of the following roles: * External Membership List Viewer (<code>view:externalMembershipList</code>) * External Membership List Manager (<code>manage:externalMembershipList</code>)
|
|
100
|
+
* Get all members of an external organization
|
|
101
|
+
*/
|
|
102
|
+
apiV1MembershipExternalListListIdGet(requestParameters, initOverrides) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
const response = yield this.apiV1MembershipExternalListListIdGetRaw(requestParameters, initOverrides);
|
|
105
|
+
return yield response.value();
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* #### Authorization <hr /> Requires any of the following roles: * External Membership List Manager (<code>manage:externalMembershipList</code>)
|
|
110
|
+
* Modify members of an external organization
|
|
111
|
+
*/
|
|
112
|
+
apiV1MembershipExternalListListIdPatchRaw(requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
if (requestParameters['listId'] == null) {
|
|
115
|
+
throw new runtime.RequiredError('listId', 'Required parameter "listId" was null or undefined when calling apiV1MembershipExternalListListIdPatch().');
|
|
116
|
+
}
|
|
117
|
+
if (requestParameters['apiV1MembershipExternalListListIdPatchRequest'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('apiV1MembershipExternalListListIdPatchRequest', 'Required parameter "apiV1MembershipExternalListListIdPatchRequest" was null or undefined when calling apiV1MembershipExternalListListIdPatch().');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
124
|
+
const token = this.configuration.accessToken;
|
|
125
|
+
const tokenString = yield token("httpBearer", []);
|
|
126
|
+
if (tokenString) {
|
|
127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
131
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
132
|
+
}
|
|
133
|
+
let urlPath = `/api/v1/membership/externalList/{listId}`;
|
|
134
|
+
urlPath = urlPath.replace(`{${"listId"}}`, encodeURIComponent(String(requestParameters['listId'])));
|
|
135
|
+
const response = yield this.request({
|
|
136
|
+
path: urlPath,
|
|
137
|
+
method: 'PATCH',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
body: requestParameters['apiV1MembershipExternalListListIdPatchRequest'],
|
|
141
|
+
}, initOverrides);
|
|
142
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
143
|
+
return new runtime.JSONApiResponse(response);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
return new runtime.TextApiResponse(response);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* #### Authorization <hr /> Requires any of the following roles: * External Membership List Manager (<code>manage:externalMembershipList</code>)
|
|
152
|
+
* Modify members of an external organization
|
|
153
|
+
*/
|
|
154
|
+
apiV1MembershipExternalListListIdPatch(requestParameters, initOverrides) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const response = yield this.apiV1MembershipExternalListListIdPatchRaw(requestParameters, initOverrides);
|
|
157
|
+
return yield response.value();
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Check self membership in any of specified lists.
|
|
162
|
+
*/
|
|
163
|
+
apiV1MembershipGetRaw(requestParameters, initOverrides) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
if (requestParameters['xUiucToken'] == null) {
|
|
166
|
+
throw new runtime.RequiredError('xUiucToken', 'Required parameter "xUiucToken" was null or undefined when calling apiV1MembershipGet().');
|
|
167
|
+
}
|
|
168
|
+
const queryParameters = {};
|
|
169
|
+
if (requestParameters['lists'] != null) {
|
|
170
|
+
queryParameters['lists'] = requestParameters['lists'];
|
|
171
|
+
}
|
|
172
|
+
const headerParameters = {};
|
|
173
|
+
if (requestParameters['xUiucToken'] != null) {
|
|
174
|
+
headerParameters['x-uiuc-token'] = String(requestParameters['xUiucToken']);
|
|
175
|
+
}
|
|
176
|
+
let urlPath = `/api/v1/membership`;
|
|
177
|
+
const response = yield this.request({
|
|
178
|
+
path: urlPath,
|
|
179
|
+
method: 'GET',
|
|
180
|
+
headers: headerParameters,
|
|
181
|
+
query: queryParameters,
|
|
182
|
+
}, initOverrides);
|
|
183
|
+
return new runtime.JSONApiResponse(response);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Check self membership in any of specified lists.
|
|
188
|
+
*/
|
|
189
|
+
apiV1MembershipGet(requestParameters, initOverrides) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const response = yield this.apiV1MembershipGetRaw(requestParameters, initOverrides);
|
|
192
|
+
return yield response.value();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Create a checkout session to purchase an ACM @ UIUC membership.
|
|
197
|
+
*/
|
|
198
|
+
apiV2MembershipCheckoutGetRaw(requestParameters, initOverrides) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
if (requestParameters['xUiucToken'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('xUiucToken', 'Required parameter "xUiucToken" was null or undefined when calling apiV2MembershipCheckoutGet().');
|
|
202
|
+
}
|
|
203
|
+
const queryParameters = {};
|
|
204
|
+
if (requestParameters['force'] != null) {
|
|
205
|
+
queryParameters['force'] = requestParameters['force'];
|
|
206
|
+
}
|
|
207
|
+
const headerParameters = {};
|
|
208
|
+
if (requestParameters['xUiucToken'] != null) {
|
|
209
|
+
headerParameters['x-uiuc-token'] = String(requestParameters['xUiucToken']);
|
|
210
|
+
}
|
|
211
|
+
let urlPath = `/api/v2/membership/checkout`;
|
|
212
|
+
const response = yield this.request({
|
|
213
|
+
path: urlPath,
|
|
214
|
+
method: 'GET',
|
|
215
|
+
headers: headerParameters,
|
|
216
|
+
query: queryParameters,
|
|
217
|
+
}, initOverrides);
|
|
218
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
219
|
+
return new runtime.JSONApiResponse(response);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
return new runtime.TextApiResponse(response);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Create a checkout session to purchase an ACM @ UIUC membership.
|
|
228
|
+
*/
|
|
229
|
+
apiV2MembershipCheckoutGet(requestParameters, initOverrides) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
const response = yield this.apiV2MembershipCheckoutGetRaw(requestParameters, initOverrides);
|
|
232
|
+
return yield response.value();
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
|
|
237
|
+
* Check ACM @ UIUC paid membership (or partner organization membership) status.
|
|
238
|
+
*/
|
|
239
|
+
apiV2MembershipNetIdGetRaw(requestParameters, initOverrides) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
if (requestParameters['netId'] == null) {
|
|
242
|
+
throw new runtime.RequiredError('netId', 'Required parameter "netId" was null or undefined when calling apiV2MembershipNetIdGet().');
|
|
243
|
+
}
|
|
244
|
+
const queryParameters = {};
|
|
245
|
+
if (requestParameters['list'] != null) {
|
|
246
|
+
queryParameters['list'] = requestParameters['list'];
|
|
247
|
+
}
|
|
248
|
+
const headerParameters = {};
|
|
249
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
250
|
+
const token = this.configuration.accessToken;
|
|
251
|
+
const tokenString = yield token("httpBearer", []);
|
|
252
|
+
if (tokenString) {
|
|
253
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
257
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
258
|
+
}
|
|
259
|
+
let urlPath = `/api/v2/membership/{netId}`;
|
|
260
|
+
urlPath = urlPath.replace(`{${"netId"}}`, encodeURIComponent(String(requestParameters['netId'])));
|
|
261
|
+
const response = yield this.request({
|
|
262
|
+
path: urlPath,
|
|
263
|
+
method: 'GET',
|
|
264
|
+
headers: headerParameters,
|
|
265
|
+
query: queryParameters,
|
|
266
|
+
}, initOverrides);
|
|
267
|
+
return new runtime.JSONApiResponse(response);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
|
|
272
|
+
* Check ACM @ UIUC paid membership (or partner organization membership) status.
|
|
273
|
+
*/
|
|
274
|
+
apiV2MembershipNetIdGet(requestParameters, initOverrides) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
const response = yield this.apiV2MembershipNetIdGetRaw(requestParameters, initOverrides);
|
|
277
|
+
return yield response.value();
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
|
|
282
|
+
* Check a batch of NetIDs for ACM @ UIUC paid membership (or partner organization membership) status.
|
|
283
|
+
*/
|
|
284
|
+
apiV2MembershipVerifyBatchOfMembersPostRaw(requestParameters, initOverrides) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
if (requestParameters['requestBody'] == null) {
|
|
287
|
+
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling apiV2MembershipVerifyBatchOfMembersPost().');
|
|
288
|
+
}
|
|
289
|
+
const queryParameters = {};
|
|
290
|
+
if (requestParameters['list'] != null) {
|
|
291
|
+
queryParameters['list'] = requestParameters['list'];
|
|
292
|
+
}
|
|
293
|
+
const headerParameters = {};
|
|
294
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
295
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
296
|
+
const token = this.configuration.accessToken;
|
|
297
|
+
const tokenString = yield token("httpBearer", []);
|
|
298
|
+
if (tokenString) {
|
|
299
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
303
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
304
|
+
}
|
|
305
|
+
let urlPath = `/api/v2/membership/verifyBatchOfMembers`;
|
|
306
|
+
const response = yield this.request({
|
|
307
|
+
path: urlPath,
|
|
308
|
+
method: 'POST',
|
|
309
|
+
headers: headerParameters,
|
|
310
|
+
query: queryParameters,
|
|
311
|
+
body: requestParameters['requestBody'],
|
|
312
|
+
}, initOverrides);
|
|
313
|
+
return new runtime.JSONApiResponse(response);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* #### Authorization <hr /> Requires any of the following roles: * Internal Membership List Viewer (<code>view:internalMembershipList</code>) * External Membership List Viewer (<code>view:externalMembershipList</code>)
|
|
318
|
+
* Check a batch of NetIDs for ACM @ UIUC paid membership (or partner organization membership) status.
|
|
319
|
+
*/
|
|
320
|
+
apiV2MembershipVerifyBatchOfMembersPost(requestParameters, initOverrides) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
const response = yield this.apiV2MembershipVerifyBatchOfMembersPostRaw(requestParameters, initOverrides);
|
|
323
|
+
return yield response.value();
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 ApiV2MobileWalletMembershipGetRequest {
|
|
14
|
+
xUiucToken: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class MobileWalletApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve mobile wallet pass for ACM member.
|
|
22
|
+
*/
|
|
23
|
+
apiV2MobileWalletMembershipGetRaw(requestParameters: ApiV2MobileWalletMembershipGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve mobile wallet pass for ACM member.
|
|
26
|
+
*/
|
|
27
|
+
apiV2MobileWalletMembershipGet(requestParameters: ApiV2MobileWalletMembershipGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ACM @ UIUC Core API
|
|
5
|
+
* 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\".**
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.1
|
|
8
|
+
* Contact: infra@acm.illinois.edu
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class MobileWalletApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve mobile wallet pass for ACM member.
|
|
30
|
+
*/
|
|
31
|
+
apiV2MobileWalletMembershipGetRaw(requestParameters, initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['xUiucToken'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('xUiucToken', 'Required parameter "xUiucToken" was null or undefined when calling apiV2MobileWalletMembershipGet().');
|
|
35
|
+
}
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
if (requestParameters['xUiucToken'] != null) {
|
|
39
|
+
headerParameters['x-uiuc-token'] = String(requestParameters['xUiucToken']);
|
|
40
|
+
}
|
|
41
|
+
let urlPath = `/api/v2/mobileWallet/membership`;
|
|
42
|
+
const response = yield this.request({
|
|
43
|
+
path: urlPath,
|
|
44
|
+
method: 'GET',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
}, initOverrides);
|
|
48
|
+
return new runtime.BlobApiResponse(response);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve mobile wallet pass for ACM member.
|
|
53
|
+
*/
|
|
54
|
+
apiV2MobileWalletMembershipGet(requestParameters, initOverrides) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const response = yield this.apiV2MobileWalletMembershipGetRaw(requestParameters, initOverrides);
|
|
57
|
+
return yield response.value();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { ApiV1OrganizationsGet200ResponseInner, ApiV1OrganizationsOrgIdGet200Response, ApiV1OrganizationsOrgIdLeadsPatchRequest, ApiV1OrganizationsOrgIdMetaPostRequest, OrgUniqueId } from '../models/index.js';
|
|
14
|
+
export interface ApiV1OrganizationsOrgIdGetRequest {
|
|
15
|
+
orgId: OrgUniqueId;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiV1OrganizationsOrgIdLeadsPatchOperationRequest {
|
|
18
|
+
orgId: OrgUniqueId;
|
|
19
|
+
apiV1OrganizationsOrgIdLeadsPatchRequest: ApiV1OrganizationsOrgIdLeadsPatchRequest;
|
|
20
|
+
}
|
|
21
|
+
export interface ApiV1OrganizationsOrgIdMetaPostOperationRequest {
|
|
22
|
+
orgId: OrgUniqueId;
|
|
23
|
+
apiV1OrganizationsOrgIdMetaPostRequest: ApiV1OrganizationsOrgIdMetaPostRequest;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Get info for all of ACM @ UIUC\'s sub-organizations.
|
|
31
|
+
*/
|
|
32
|
+
apiV1OrganizationsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiV1OrganizationsGet200ResponseInner>>>;
|
|
33
|
+
/**
|
|
34
|
+
* Get info for all of ACM @ UIUC\'s sub-organizations.
|
|
35
|
+
*/
|
|
36
|
+
apiV1OrganizationsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1OrganizationsGet200ResponseInner>>;
|
|
37
|
+
/**
|
|
38
|
+
* Get information about a specific ACM @ UIUC sub-organization.
|
|
39
|
+
*/
|
|
40
|
+
apiV1OrganizationsOrgIdGetRaw(requestParameters: ApiV1OrganizationsOrgIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1OrganizationsOrgIdGet200Response>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get information about a specific ACM @ UIUC sub-organization.
|
|
43
|
+
*/
|
|
44
|
+
apiV1OrganizationsOrgIdGet(requestParameters: ApiV1OrganizationsOrgIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1OrganizationsOrgIdGet200Response>;
|
|
45
|
+
/**
|
|
46
|
+
* #### Authorization <hr /> Requires any of the following roles: * Organization Definition Manager (<code>manage:orgDefinitions</code>) Authenticated leads of the organization without the appropriate role may also perform this action.
|
|
47
|
+
* Set leads for an ACM @ UIUC sub-organization.
|
|
48
|
+
*/
|
|
49
|
+
apiV1OrganizationsOrgIdLeadsPatchRaw(requestParameters: ApiV1OrganizationsOrgIdLeadsPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
50
|
+
/**
|
|
51
|
+
* #### Authorization <hr /> Requires any of the following roles: * Organization Definition Manager (<code>manage:orgDefinitions</code>) Authenticated leads of the organization without the appropriate role may also perform this action.
|
|
52
|
+
* Set leads for an ACM @ UIUC sub-organization.
|
|
53
|
+
*/
|
|
54
|
+
apiV1OrganizationsOrgIdLeadsPatch(requestParameters: ApiV1OrganizationsOrgIdLeadsPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
55
|
+
/**
|
|
56
|
+
* #### Authorization <hr /> Requires any of the following roles: * Organization Definition Manager (<code>manage:orgDefinitions</code>) Authenticated leads of the organization without the appropriate role may also perform this action.
|
|
57
|
+
* Set metadata for an ACM @ UIUC sub-organization.
|
|
58
|
+
*/
|
|
59
|
+
apiV1OrganizationsOrgIdMetaPostRaw(requestParameters: ApiV1OrganizationsOrgIdMetaPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
60
|
+
/**
|
|
61
|
+
* #### Authorization <hr /> Requires any of the following roles: * Organization Definition Manager (<code>manage:orgDefinitions</code>) Authenticated leads of the organization without the appropriate role may also perform this action.
|
|
62
|
+
* Set metadata for an ACM @ UIUC sub-organization.
|
|
63
|
+
*/
|
|
64
|
+
apiV1OrganizationsOrgIdMetaPost(requestParameters: ApiV1OrganizationsOrgIdMetaPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
65
|
+
}
|