@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,192 @@
|
|
|
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.OrganizationsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
class OrganizationsApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Get info for all of ACM @ UIUC\'s sub-organizations.
|
|
33
|
+
*/
|
|
34
|
+
apiV1OrganizationsGetRaw(initOverrides) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
let urlPath = `/api/v1/organizations`;
|
|
39
|
+
const response = yield this.request({
|
|
40
|
+
path: urlPath,
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get info for all of ACM @ UIUC\'s sub-organizations.
|
|
50
|
+
*/
|
|
51
|
+
apiV1OrganizationsGet(initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.apiV1OrganizationsGetRaw(initOverrides);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get information about a specific ACM @ UIUC sub-organization.
|
|
59
|
+
*/
|
|
60
|
+
apiV1OrganizationsOrgIdGetRaw(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
if (requestParameters['orgId'] == null) {
|
|
63
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling apiV1OrganizationsOrgIdGet().');
|
|
64
|
+
}
|
|
65
|
+
const queryParameters = {};
|
|
66
|
+
const headerParameters = {};
|
|
67
|
+
let urlPath = `/api/v1/organizations/{orgId}`;
|
|
68
|
+
urlPath = urlPath.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId'])));
|
|
69
|
+
const response = yield this.request({
|
|
70
|
+
path: urlPath,
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get information about a specific ACM @ UIUC sub-organization.
|
|
80
|
+
*/
|
|
81
|
+
apiV1OrganizationsOrgIdGet(requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const response = yield this.apiV1OrganizationsOrgIdGetRaw(requestParameters, initOverrides);
|
|
84
|
+
return yield response.value();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* #### 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.
|
|
89
|
+
* Set leads for an ACM @ UIUC sub-organization.
|
|
90
|
+
*/
|
|
91
|
+
apiV1OrganizationsOrgIdLeadsPatchRaw(requestParameters, initOverrides) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
if (requestParameters['orgId'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling apiV1OrganizationsOrgIdLeadsPatch().');
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['apiV1OrganizationsOrgIdLeadsPatchRequest'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('apiV1OrganizationsOrgIdLeadsPatchRequest', 'Required parameter "apiV1OrganizationsOrgIdLeadsPatchRequest" was null or undefined when calling apiV1OrganizationsOrgIdLeadsPatch().');
|
|
98
|
+
}
|
|
99
|
+
const queryParameters = {};
|
|
100
|
+
const headerParameters = {};
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
+
const token = this.configuration.accessToken;
|
|
104
|
+
const tokenString = yield token("httpBearer", []);
|
|
105
|
+
if (tokenString) {
|
|
106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
110
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
111
|
+
}
|
|
112
|
+
let urlPath = `/api/v1/organizations/{orgId}/leads`;
|
|
113
|
+
urlPath = urlPath.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId'])));
|
|
114
|
+
const response = yield this.request({
|
|
115
|
+
path: urlPath,
|
|
116
|
+
method: 'PATCH',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
body: requestParameters['apiV1OrganizationsOrgIdLeadsPatchRequest'],
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
122
|
+
return new runtime.JSONApiResponse(response);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return new runtime.TextApiResponse(response);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* #### 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.
|
|
131
|
+
* Set leads for an ACM @ UIUC sub-organization.
|
|
132
|
+
*/
|
|
133
|
+
apiV1OrganizationsOrgIdLeadsPatch(requestParameters, initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const response = yield this.apiV1OrganizationsOrgIdLeadsPatchRaw(requestParameters, initOverrides);
|
|
136
|
+
return yield response.value();
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* #### 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.
|
|
141
|
+
* Set metadata for an ACM @ UIUC sub-organization.
|
|
142
|
+
*/
|
|
143
|
+
apiV1OrganizationsOrgIdMetaPostRaw(requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
if (requestParameters['orgId'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling apiV1OrganizationsOrgIdMetaPost().');
|
|
147
|
+
}
|
|
148
|
+
if (requestParameters['apiV1OrganizationsOrgIdMetaPostRequest'] == null) {
|
|
149
|
+
throw new runtime.RequiredError('apiV1OrganizationsOrgIdMetaPostRequest', 'Required parameter "apiV1OrganizationsOrgIdMetaPostRequest" was null or undefined when calling apiV1OrganizationsOrgIdMetaPost().');
|
|
150
|
+
}
|
|
151
|
+
const queryParameters = {};
|
|
152
|
+
const headerParameters = {};
|
|
153
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
155
|
+
const token = this.configuration.accessToken;
|
|
156
|
+
const tokenString = yield token("httpBearer", []);
|
|
157
|
+
if (tokenString) {
|
|
158
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
162
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
163
|
+
}
|
|
164
|
+
let urlPath = `/api/v1/organizations/{orgId}/meta`;
|
|
165
|
+
urlPath = urlPath.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId'])));
|
|
166
|
+
const response = yield this.request({
|
|
167
|
+
path: urlPath,
|
|
168
|
+
method: 'POST',
|
|
169
|
+
headers: headerParameters,
|
|
170
|
+
query: queryParameters,
|
|
171
|
+
body: requestParameters['apiV1OrganizationsOrgIdMetaPostRequest'],
|
|
172
|
+
}, initOverrides);
|
|
173
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
174
|
+
return new runtime.JSONApiResponse(response);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return new runtime.TextApiResponse(response);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* #### 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.
|
|
183
|
+
* Set metadata for an ACM @ UIUC sub-organization.
|
|
184
|
+
*/
|
|
185
|
+
apiV1OrganizationsOrgIdMetaPost(requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const response = yield this.apiV1OrganizationsOrgIdMetaPostRaw(requestParameters, initOverrides);
|
|
188
|
+
return yield response.value();
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
exports.OrganizationsApi = OrganizationsApi;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 { RsvpConfig, RsvpConfigOutput, RsvpItem } from '../models/index.js';
|
|
14
|
+
export interface ApiV1RsvpEventEventIdAttendeeMeDeleteRequest {
|
|
15
|
+
eventId: string;
|
|
16
|
+
xUiucToken: string;
|
|
17
|
+
xTurnstileResponse: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ApiV1RsvpEventEventIdAttendeeUserIdDeleteRequest {
|
|
20
|
+
eventId: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ApiV1RsvpEventEventIdConfigGetRequest {
|
|
24
|
+
eventId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ApiV1RsvpEventEventIdConfigPostRequest {
|
|
27
|
+
eventId: string;
|
|
28
|
+
rsvpConfig: RsvpConfig;
|
|
29
|
+
}
|
|
30
|
+
export interface ApiV1RsvpEventEventIdGetRequest {
|
|
31
|
+
eventId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ApiV1RsvpEventEventIdPostRequest {
|
|
34
|
+
eventId: string;
|
|
35
|
+
xUiucToken: string;
|
|
36
|
+
xTurnstileResponse: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ApiV1RsvpMeGetRequest {
|
|
39
|
+
xUiucToken: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export declare class RSVPApi extends runtime.BaseAPI {
|
|
45
|
+
/**
|
|
46
|
+
* Withdraw your RSVP for an event.
|
|
47
|
+
*/
|
|
48
|
+
apiV1RsvpEventEventIdAttendeeMeDeleteRaw(requestParameters: ApiV1RsvpEventEventIdAttendeeMeDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
49
|
+
/**
|
|
50
|
+
* Withdraw your RSVP for an event.
|
|
51
|
+
*/
|
|
52
|
+
apiV1RsvpEventEventIdAttendeeMeDelete(requestParameters: ApiV1RsvpEventEventIdAttendeeMeDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
53
|
+
/**
|
|
54
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
55
|
+
* Delete an RSVP for an event.
|
|
56
|
+
*/
|
|
57
|
+
apiV1RsvpEventEventIdAttendeeUserIdDeleteRaw(requestParameters: ApiV1RsvpEventEventIdAttendeeUserIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
58
|
+
/**
|
|
59
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
60
|
+
* Delete an RSVP for an event.
|
|
61
|
+
*/
|
|
62
|
+
apiV1RsvpEventEventIdAttendeeUserIdDelete(requestParameters: ApiV1RsvpEventEventIdAttendeeUserIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
63
|
+
/**
|
|
64
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
65
|
+
* Get RSVP configuration for an event.
|
|
66
|
+
*/
|
|
67
|
+
apiV1RsvpEventEventIdConfigGetRaw(requestParameters: ApiV1RsvpEventEventIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RsvpConfigOutput>>;
|
|
68
|
+
/**
|
|
69
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
70
|
+
* Get RSVP configuration for an event.
|
|
71
|
+
*/
|
|
72
|
+
apiV1RsvpEventEventIdConfigGet(requestParameters: ApiV1RsvpEventEventIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RsvpConfigOutput>;
|
|
73
|
+
/**
|
|
74
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
75
|
+
* Configure RSVP settings for an event.
|
|
76
|
+
*/
|
|
77
|
+
apiV1RsvpEventEventIdConfigPostRaw(requestParameters: ApiV1RsvpEventEventIdConfigPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
78
|
+
/**
|
|
79
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
80
|
+
* Configure RSVP settings for an event.
|
|
81
|
+
*/
|
|
82
|
+
apiV1RsvpEventEventIdConfigPost(requestParameters: ApiV1RsvpEventEventIdConfigPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
83
|
+
/**
|
|
84
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Viewer (<code>view:rsvps</code>)
|
|
85
|
+
* Get all RSVPs for an event.
|
|
86
|
+
*/
|
|
87
|
+
apiV1RsvpEventEventIdGetRaw(requestParameters: ApiV1RsvpEventEventIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RsvpItem>>>;
|
|
88
|
+
/**
|
|
89
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Viewer (<code>view:rsvps</code>)
|
|
90
|
+
* Get all RSVPs for an event.
|
|
91
|
+
*/
|
|
92
|
+
apiV1RsvpEventEventIdGet(requestParameters: ApiV1RsvpEventEventIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RsvpItem>>;
|
|
93
|
+
/**
|
|
94
|
+
* Submit an RSVP for an event.
|
|
95
|
+
*/
|
|
96
|
+
apiV1RsvpEventEventIdPostRaw(requestParameters: ApiV1RsvpEventEventIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
|
97
|
+
/**
|
|
98
|
+
* Submit an RSVP for an event.
|
|
99
|
+
*/
|
|
100
|
+
apiV1RsvpEventEventIdPost(requestParameters: ApiV1RsvpEventEventIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
101
|
+
/**
|
|
102
|
+
* Get your RSVPs across all events.
|
|
103
|
+
*/
|
|
104
|
+
apiV1RsvpMeGetRaw(requestParameters: ApiV1RsvpMeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<RsvpItem>>>;
|
|
105
|
+
/**
|
|
106
|
+
* Get your RSVPs across all events.
|
|
107
|
+
*/
|
|
108
|
+
apiV1RsvpMeGet(requestParameters: ApiV1RsvpMeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<RsvpItem>>;
|
|
109
|
+
}
|
|
@@ -0,0 +1,345 @@
|
|
|
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.RSVPApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
class RSVPApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Withdraw your RSVP for an event.
|
|
33
|
+
*/
|
|
34
|
+
apiV1RsvpEventEventIdAttendeeMeDeleteRaw(requestParameters, initOverrides) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['eventId'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling apiV1RsvpEventEventIdAttendeeMeDelete().');
|
|
38
|
+
}
|
|
39
|
+
if (requestParameters['xUiucToken'] == null) {
|
|
40
|
+
throw new runtime.RequiredError('xUiucToken', 'Required parameter "xUiucToken" was null or undefined when calling apiV1RsvpEventEventIdAttendeeMeDelete().');
|
|
41
|
+
}
|
|
42
|
+
if (requestParameters['xTurnstileResponse'] == null) {
|
|
43
|
+
throw new runtime.RequiredError('xTurnstileResponse', 'Required parameter "xTurnstileResponse" was null or undefined when calling apiV1RsvpEventEventIdAttendeeMeDelete().');
|
|
44
|
+
}
|
|
45
|
+
const queryParameters = {};
|
|
46
|
+
const headerParameters = {};
|
|
47
|
+
if (requestParameters['xUiucToken'] != null) {
|
|
48
|
+
headerParameters['x-uiuc-token'] = String(requestParameters['xUiucToken']);
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['xTurnstileResponse'] != null) {
|
|
51
|
+
headerParameters['x-turnstile-response'] = String(requestParameters['xTurnstileResponse']);
|
|
52
|
+
}
|
|
53
|
+
let urlPath = `/api/v1/rsvp/event/{eventId}/attendee/me`;
|
|
54
|
+
urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
|
|
55
|
+
const response = yield this.request({
|
|
56
|
+
path: urlPath,
|
|
57
|
+
method: 'DELETE',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
62
|
+
return new runtime.JSONApiResponse(response);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
return new runtime.TextApiResponse(response);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Withdraw your RSVP for an event.
|
|
71
|
+
*/
|
|
72
|
+
apiV1RsvpEventEventIdAttendeeMeDelete(requestParameters, initOverrides) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const response = yield this.apiV1RsvpEventEventIdAttendeeMeDeleteRaw(requestParameters, initOverrides);
|
|
75
|
+
return yield response.value();
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
80
|
+
* Delete an RSVP for an event.
|
|
81
|
+
*/
|
|
82
|
+
apiV1RsvpEventEventIdAttendeeUserIdDeleteRaw(requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
if (requestParameters['eventId'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling apiV1RsvpEventEventIdAttendeeUserIdDelete().');
|
|
86
|
+
}
|
|
87
|
+
if (requestParameters['userId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling apiV1RsvpEventEventIdAttendeeUserIdDelete().');
|
|
89
|
+
}
|
|
90
|
+
const queryParameters = {};
|
|
91
|
+
const headerParameters = {};
|
|
92
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
93
|
+
const token = this.configuration.accessToken;
|
|
94
|
+
const tokenString = yield token("httpBearer", []);
|
|
95
|
+
if (tokenString) {
|
|
96
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
101
|
+
}
|
|
102
|
+
let urlPath = `/api/v1/rsvp/event/{eventId}/attendee/{userId}`;
|
|
103
|
+
urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
|
|
104
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
105
|
+
const response = yield this.request({
|
|
106
|
+
path: urlPath,
|
|
107
|
+
method: 'DELETE',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
}, initOverrides);
|
|
111
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
112
|
+
return new runtime.JSONApiResponse(response);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return new runtime.TextApiResponse(response);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
121
|
+
* Delete an RSVP for an event.
|
|
122
|
+
*/
|
|
123
|
+
apiV1RsvpEventEventIdAttendeeUserIdDelete(requestParameters, initOverrides) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
const response = yield this.apiV1RsvpEventEventIdAttendeeUserIdDeleteRaw(requestParameters, initOverrides);
|
|
126
|
+
return yield response.value();
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
131
|
+
* Get RSVP configuration for an event.
|
|
132
|
+
*/
|
|
133
|
+
apiV1RsvpEventEventIdConfigGetRaw(requestParameters, initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
if (requestParameters['eventId'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling apiV1RsvpEventEventIdConfigGet().');
|
|
137
|
+
}
|
|
138
|
+
const queryParameters = {};
|
|
139
|
+
const headerParameters = {};
|
|
140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
+
const token = this.configuration.accessToken;
|
|
142
|
+
const tokenString = yield token("httpBearer", []);
|
|
143
|
+
if (tokenString) {
|
|
144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
148
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
149
|
+
}
|
|
150
|
+
let urlPath = `/api/v1/rsvp/event/{eventId}/config`;
|
|
151
|
+
urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
|
|
152
|
+
const response = yield this.request({
|
|
153
|
+
path: urlPath,
|
|
154
|
+
method: 'GET',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}, initOverrides);
|
|
158
|
+
return new runtime.JSONApiResponse(response);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
163
|
+
* Get RSVP configuration for an event.
|
|
164
|
+
*/
|
|
165
|
+
apiV1RsvpEventEventIdConfigGet(requestParameters, initOverrides) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
const response = yield this.apiV1RsvpEventEventIdConfigGetRaw(requestParameters, initOverrides);
|
|
168
|
+
return yield response.value();
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
173
|
+
* Configure RSVP settings for an event.
|
|
174
|
+
*/
|
|
175
|
+
apiV1RsvpEventEventIdConfigPostRaw(requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
if (requestParameters['eventId'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling apiV1RsvpEventEventIdConfigPost().');
|
|
179
|
+
}
|
|
180
|
+
if (requestParameters['rsvpConfig'] == null) {
|
|
181
|
+
throw new runtime.RequiredError('rsvpConfig', 'Required parameter "rsvpConfig" was null or undefined when calling apiV1RsvpEventEventIdConfigPost().');
|
|
182
|
+
}
|
|
183
|
+
const queryParameters = {};
|
|
184
|
+
const headerParameters = {};
|
|
185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
187
|
+
const token = this.configuration.accessToken;
|
|
188
|
+
const tokenString = yield token("httpBearer", []);
|
|
189
|
+
if (tokenString) {
|
|
190
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
194
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
195
|
+
}
|
|
196
|
+
let urlPath = `/api/v1/rsvp/event/{eventId}/config`;
|
|
197
|
+
urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
|
|
198
|
+
const response = yield this.request({
|
|
199
|
+
path: urlPath,
|
|
200
|
+
method: 'POST',
|
|
201
|
+
headers: headerParameters,
|
|
202
|
+
query: queryParameters,
|
|
203
|
+
body: requestParameters['rsvpConfig'],
|
|
204
|
+
}, initOverrides);
|
|
205
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
206
|
+
return new runtime.JSONApiResponse(response);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return new runtime.TextApiResponse(response);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Manager (<code>manage:rsvps</code>)
|
|
215
|
+
* Configure RSVP settings for an event.
|
|
216
|
+
*/
|
|
217
|
+
apiV1RsvpEventEventIdConfigPost(requestParameters, initOverrides) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
const response = yield this.apiV1RsvpEventEventIdConfigPostRaw(requestParameters, initOverrides);
|
|
220
|
+
return yield response.value();
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Viewer (<code>view:rsvps</code>)
|
|
225
|
+
* Get all RSVPs for an event.
|
|
226
|
+
*/
|
|
227
|
+
apiV1RsvpEventEventIdGetRaw(requestParameters, initOverrides) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
if (requestParameters['eventId'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling apiV1RsvpEventEventIdGet().');
|
|
231
|
+
}
|
|
232
|
+
const queryParameters = {};
|
|
233
|
+
const headerParameters = {};
|
|
234
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
235
|
+
const token = this.configuration.accessToken;
|
|
236
|
+
const tokenString = yield token("httpBearer", []);
|
|
237
|
+
if (tokenString) {
|
|
238
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
242
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // apiKeyHeader authentication
|
|
243
|
+
}
|
|
244
|
+
let urlPath = `/api/v1/rsvp/event/{eventId}`;
|
|
245
|
+
urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
|
|
246
|
+
const response = yield this.request({
|
|
247
|
+
path: urlPath,
|
|
248
|
+
method: 'GET',
|
|
249
|
+
headers: headerParameters,
|
|
250
|
+
query: queryParameters,
|
|
251
|
+
}, initOverrides);
|
|
252
|
+
return new runtime.JSONApiResponse(response);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* #### Authorization <hr /> Requires any of the following roles: * RSVPs Viewer (<code>view:rsvps</code>)
|
|
257
|
+
* Get all RSVPs for an event.
|
|
258
|
+
*/
|
|
259
|
+
apiV1RsvpEventEventIdGet(requestParameters, initOverrides) {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const response = yield this.apiV1RsvpEventEventIdGetRaw(requestParameters, initOverrides);
|
|
262
|
+
return yield response.value();
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Submit an RSVP for an event.
|
|
267
|
+
*/
|
|
268
|
+
apiV1RsvpEventEventIdPostRaw(requestParameters, initOverrides) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
if (requestParameters['eventId'] == null) {
|
|
271
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling apiV1RsvpEventEventIdPost().');
|
|
272
|
+
}
|
|
273
|
+
if (requestParameters['xUiucToken'] == null) {
|
|
274
|
+
throw new runtime.RequiredError('xUiucToken', 'Required parameter "xUiucToken" was null or undefined when calling apiV1RsvpEventEventIdPost().');
|
|
275
|
+
}
|
|
276
|
+
if (requestParameters['xTurnstileResponse'] == null) {
|
|
277
|
+
throw new runtime.RequiredError('xTurnstileResponse', 'Required parameter "xTurnstileResponse" was null or undefined when calling apiV1RsvpEventEventIdPost().');
|
|
278
|
+
}
|
|
279
|
+
const queryParameters = {};
|
|
280
|
+
const headerParameters = {};
|
|
281
|
+
if (requestParameters['xUiucToken'] != null) {
|
|
282
|
+
headerParameters['x-uiuc-token'] = String(requestParameters['xUiucToken']);
|
|
283
|
+
}
|
|
284
|
+
if (requestParameters['xTurnstileResponse'] != null) {
|
|
285
|
+
headerParameters['x-turnstile-response'] = String(requestParameters['xTurnstileResponse']);
|
|
286
|
+
}
|
|
287
|
+
let urlPath = `/api/v1/rsvp/event/{eventId}`;
|
|
288
|
+
urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
|
|
289
|
+
const response = yield this.request({
|
|
290
|
+
path: urlPath,
|
|
291
|
+
method: 'POST',
|
|
292
|
+
headers: headerParameters,
|
|
293
|
+
query: queryParameters,
|
|
294
|
+
}, initOverrides);
|
|
295
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
296
|
+
return new runtime.JSONApiResponse(response);
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
return new runtime.TextApiResponse(response);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Submit an RSVP for an event.
|
|
305
|
+
*/
|
|
306
|
+
apiV1RsvpEventEventIdPost(requestParameters, initOverrides) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
const response = yield this.apiV1RsvpEventEventIdPostRaw(requestParameters, initOverrides);
|
|
309
|
+
return yield response.value();
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Get your RSVPs across all events.
|
|
314
|
+
*/
|
|
315
|
+
apiV1RsvpMeGetRaw(requestParameters, initOverrides) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
if (requestParameters['xUiucToken'] == null) {
|
|
318
|
+
throw new runtime.RequiredError('xUiucToken', 'Required parameter "xUiucToken" was null or undefined when calling apiV1RsvpMeGet().');
|
|
319
|
+
}
|
|
320
|
+
const queryParameters = {};
|
|
321
|
+
const headerParameters = {};
|
|
322
|
+
if (requestParameters['xUiucToken'] != null) {
|
|
323
|
+
headerParameters['x-uiuc-token'] = String(requestParameters['xUiucToken']);
|
|
324
|
+
}
|
|
325
|
+
let urlPath = `/api/v1/rsvp/me`;
|
|
326
|
+
const response = yield this.request({
|
|
327
|
+
path: urlPath,
|
|
328
|
+
method: 'GET',
|
|
329
|
+
headers: headerParameters,
|
|
330
|
+
query: queryParameters,
|
|
331
|
+
}, initOverrides);
|
|
332
|
+
return new runtime.JSONApiResponse(response);
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Get your RSVPs across all events.
|
|
337
|
+
*/
|
|
338
|
+
apiV1RsvpMeGet(requestParameters, initOverrides) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
const response = yield this.apiV1RsvpMeGetRaw(requestParameters, initOverrides);
|
|
341
|
+
return yield response.value();
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
exports.RSVPApi = RSVPApi;
|