@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,33 @@
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 { ApiV1VendingItemsPostRequest } from '../models/index.js';
14
+ export interface ApiV1VendingItemsPostOperationRequest {
15
+ apiV1VendingItemsPostRequest: ApiV1VendingItemsPostRequest;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class VendingApi extends runtime.BaseAPI {
21
+ /**
22
+ */
23
+ apiV1VendingItemsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
24
+ /**
25
+ */
26
+ apiV1VendingItemsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
27
+ /**
28
+ */
29
+ apiV1VendingItemsPostRaw(requestParameters: ApiV1VendingItemsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
30
+ /**
31
+ */
32
+ apiV1VendingItemsPost(requestParameters: ApiV1VendingItemsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
33
+ }
@@ -0,0 +1,83 @@
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.VendingApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ /**
28
+ *
29
+ */
30
+ class VendingApi extends runtime.BaseAPI {
31
+ /**
32
+ */
33
+ apiV1VendingItemsGetRaw(initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ const queryParameters = {};
36
+ const headerParameters = {};
37
+ let urlPath = `/api/v1/vending/items`;
38
+ const response = yield this.request({
39
+ path: urlPath,
40
+ method: 'GET',
41
+ headers: headerParameters,
42
+ query: queryParameters,
43
+ }, initOverrides);
44
+ return new runtime.VoidApiResponse(response);
45
+ });
46
+ }
47
+ /**
48
+ */
49
+ apiV1VendingItemsGet(initOverrides) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ yield this.apiV1VendingItemsGetRaw(initOverrides);
52
+ });
53
+ }
54
+ /**
55
+ */
56
+ apiV1VendingItemsPostRaw(requestParameters, initOverrides) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ if (requestParameters['apiV1VendingItemsPostRequest'] == null) {
59
+ throw new runtime.RequiredError('apiV1VendingItemsPostRequest', 'Required parameter "apiV1VendingItemsPostRequest" was null or undefined when calling apiV1VendingItemsPost().');
60
+ }
61
+ const queryParameters = {};
62
+ const headerParameters = {};
63
+ headerParameters['Content-Type'] = 'application/json';
64
+ let urlPath = `/api/v1/vending/items`;
65
+ const response = yield this.request({
66
+ path: urlPath,
67
+ method: 'POST',
68
+ headers: headerParameters,
69
+ query: queryParameters,
70
+ body: requestParameters['apiV1VendingItemsPostRequest'],
71
+ }, initOverrides);
72
+ return new runtime.VoidApiResponse(response);
73
+ });
74
+ }
75
+ /**
76
+ */
77
+ apiV1VendingItemsPost(requestParameters, initOverrides) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ yield this.apiV1VendingItemsPostRaw(requestParameters, initOverrides);
80
+ });
81
+ }
82
+ }
83
+ exports.VendingApi = VendingApi;
@@ -0,0 +1,15 @@
1
+ export * from './APIKeysApi.js';
2
+ export * from './EventsApi.js';
3
+ export * from './GenericApi.js';
4
+ export * from './IAMApi.js';
5
+ export * from './ICalendarIntegrationApi.js';
6
+ export * from './LinkryApi.js';
7
+ export * from './LoggingApi.js';
8
+ export * from './MembershipApi.js';
9
+ export * from './MobileWalletApi.js';
10
+ export * from './OrganizationsApi.js';
11
+ export * from './RSVPApi.js';
12
+ export * from './RoomRequestsApi.js';
13
+ export * from './StoreApi.js';
14
+ export * from './StripeApi.js';
15
+ export * from './VendingApi.js';
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./APIKeysApi.js"), exports);
20
+ __exportStar(require("./EventsApi.js"), exports);
21
+ __exportStar(require("./GenericApi.js"), exports);
22
+ __exportStar(require("./IAMApi.js"), exports);
23
+ __exportStar(require("./ICalendarIntegrationApi.js"), exports);
24
+ __exportStar(require("./LinkryApi.js"), exports);
25
+ __exportStar(require("./LoggingApi.js"), exports);
26
+ __exportStar(require("./MembershipApi.js"), exports);
27
+ __exportStar(require("./MobileWalletApi.js"), exports);
28
+ __exportStar(require("./OrganizationsApi.js"), exports);
29
+ __exportStar(require("./RSVPApi.js"), exports);
30
+ __exportStar(require("./RoomRequestsApi.js"), exports);
31
+ __exportStar(require("./StoreApi.js"), exports);
32
+ __exportStar(require("./StripeApi.js"), exports);
33
+ __exportStar(require("./VendingApi.js"), exports);
@@ -0,0 +1,54 @@
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 { ApiV1ApiKeyOrgPostRequest } from '../models/index.js';
14
+ export interface ApiV1ApiKeyOrgKeyIdDeleteRequest {
15
+ keyId: string;
16
+ }
17
+ export interface ApiV1ApiKeyOrgPostOperationRequest {
18
+ apiV1ApiKeyOrgPostRequest: ApiV1ApiKeyOrgPostRequest;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class APIKeysApi extends runtime.BaseAPI {
24
+ /**
25
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
26
+ * Get all organization API keys.
27
+ */
28
+ apiV1ApiKeyOrgGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
29
+ /**
30
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
31
+ * Get all organization API keys.
32
+ */
33
+ apiV1ApiKeyOrgGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
34
+ /**
35
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
36
+ * Delete an organization API key.
37
+ */
38
+ apiV1ApiKeyOrgKeyIdDeleteRaw(requestParameters: ApiV1ApiKeyOrgKeyIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
39
+ /**
40
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
41
+ * Delete an organization API key.
42
+ */
43
+ apiV1ApiKeyOrgKeyIdDelete(requestParameters: ApiV1ApiKeyOrgKeyIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
44
+ /**
45
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
46
+ * Create an organization API key.
47
+ */
48
+ apiV1ApiKeyOrgPostRaw(requestParameters: ApiV1ApiKeyOrgPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
49
+ /**
50
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
51
+ * Create an organization API key.
52
+ */
53
+ apiV1ApiKeyOrgPost(requestParameters: ApiV1ApiKeyOrgPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
54
+ }
@@ -0,0 +1,139 @@
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 APIKeysApi extends runtime.BaseAPI {
28
+ /**
29
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
30
+ * Get all organization API keys.
31
+ */
32
+ apiV1ApiKeyOrgGetRaw(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
+ let urlPath = `/api/v1/apiKey/org`;
44
+ const response = yield this.request({
45
+ path: urlPath,
46
+ method: 'GET',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ }, initOverrides);
50
+ return new runtime.VoidApiResponse(response);
51
+ });
52
+ }
53
+ /**
54
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
55
+ * Get all organization API keys.
56
+ */
57
+ apiV1ApiKeyOrgGet(initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ yield this.apiV1ApiKeyOrgGetRaw(initOverrides);
60
+ });
61
+ }
62
+ /**
63
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
64
+ * Delete an organization API key.
65
+ */
66
+ apiV1ApiKeyOrgKeyIdDeleteRaw(requestParameters, initOverrides) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ if (requestParameters['keyId'] == null) {
69
+ throw new runtime.RequiredError('keyId', 'Required parameter "keyId" was null or undefined when calling apiV1ApiKeyOrgKeyIdDelete().');
70
+ }
71
+ const queryParameters = {};
72
+ const headerParameters = {};
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ const token = this.configuration.accessToken;
75
+ const tokenString = yield token("httpBearer", []);
76
+ if (tokenString) {
77
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
78
+ }
79
+ }
80
+ let urlPath = `/api/v1/apiKey/org/{keyId}`;
81
+ urlPath = urlPath.replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters['keyId'])));
82
+ const response = yield this.request({
83
+ path: urlPath,
84
+ method: 'DELETE',
85
+ headers: headerParameters,
86
+ query: queryParameters,
87
+ }, initOverrides);
88
+ return new runtime.VoidApiResponse(response);
89
+ });
90
+ }
91
+ /**
92
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
93
+ * Delete an organization API key.
94
+ */
95
+ apiV1ApiKeyOrgKeyIdDelete(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ yield this.apiV1ApiKeyOrgKeyIdDeleteRaw(requestParameters, initOverrides);
98
+ });
99
+ }
100
+ /**
101
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
102
+ * Create an organization API key.
103
+ */
104
+ apiV1ApiKeyOrgPostRaw(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ if (requestParameters['apiV1ApiKeyOrgPostRequest'] == null) {
107
+ throw new runtime.RequiredError('apiV1ApiKeyOrgPostRequest', 'Required parameter "apiV1ApiKeyOrgPostRequest" was null or undefined when calling apiV1ApiKeyOrgPost().');
108
+ }
109
+ const queryParameters = {};
110
+ const headerParameters = {};
111
+ headerParameters['Content-Type'] = 'application/json';
112
+ if (this.configuration && this.configuration.accessToken) {
113
+ const token = this.configuration.accessToken;
114
+ const tokenString = yield token("httpBearer", []);
115
+ if (tokenString) {
116
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
117
+ }
118
+ }
119
+ let urlPath = `/api/v1/apiKey/org`;
120
+ const response = yield this.request({
121
+ path: urlPath,
122
+ method: 'POST',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ body: requestParameters['apiV1ApiKeyOrgPostRequest'],
126
+ }, initOverrides);
127
+ return new runtime.VoidApiResponse(response);
128
+ });
129
+ }
130
+ /**
131
+ * > [!important] > This resource cannot be accessed with an API key. #### Authorization <hr /> Requires any of the following roles: * Org API Keys Manager (<code>manage:orgApiKey</code>)
132
+ * Create an organization API key.
133
+ */
134
+ apiV1ApiKeyOrgPost(requestParameters, initOverrides) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ yield this.apiV1ApiKeyOrgPostRaw(requestParameters, initOverrides);
137
+ });
138
+ }
139
+ }
@@ -0,0 +1,86 @@
1
+ /**
2
+ * ACM @ UIUC Core API
3
+ * The ACM @ UIUC Core API provides services for managing chapter operations. ## Usage The primary consumer of the Core API is the Management Portal, which allows members to manage the chapter. Others may call the API with an API key; please contact us to obtain one. This API also integrates into the ACM website and other suborganization to provide calendar services. Calendar clients call the iCal endpoints (available through [ical.acm.illinois.edu](https://ical.acm.illinois.edu)) for calendar services. ## Contact <hr /> If you are an ACM @ UIUC member, please join the Infra Committee Discord for support. Otherwise, email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) for support. **For all security concerns, please email [infra@acm.illinois.edu](mailto:infra@acm.illinois.edu) with the subject \"Security Concern\".**
4
+ *
5
+ * The version of the OpenAPI document: 2.0.1
6
+ * Contact: infra@acm.illinois.edu
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime.js';
13
+ import type { AcmOrganization, ApiV1EventsGet200ResponseInner, ApiV1EventsIdGet200Response, ApiV1EventsIdPatchRequest, ApiV1EventsPostRequest } from '../models/index.js';
14
+ export interface ApiV1EventsGetRequest {
15
+ upcomingOnly?: boolean;
16
+ featuredOnly?: boolean;
17
+ host?: AcmOrganization;
18
+ ts?: number;
19
+ includeMetadata?: boolean;
20
+ }
21
+ export interface ApiV1EventsIdDeleteRequest {
22
+ id: string;
23
+ }
24
+ export interface ApiV1EventsIdGetRequest {
25
+ id: string;
26
+ ts?: number;
27
+ includeMetadata?: boolean;
28
+ }
29
+ export interface ApiV1EventsIdPatchOperationRequest {
30
+ id: string;
31
+ apiV1EventsIdPatchRequest: ApiV1EventsIdPatchRequest;
32
+ }
33
+ export interface ApiV1EventsPostOperationRequest {
34
+ apiV1EventsPostRequest: ApiV1EventsPostRequest;
35
+ }
36
+ /**
37
+ *
38
+ */
39
+ export declare class EventsApi extends runtime.BaseAPI {
40
+ /**
41
+ * Retrieve calendar events with applied filters.
42
+ */
43
+ apiV1EventsGetRaw(requestParameters: ApiV1EventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiV1EventsGet200ResponseInner>>>;
44
+ /**
45
+ * Retrieve calendar events with applied filters.
46
+ */
47
+ apiV1EventsGet(requestParameters?: ApiV1EventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiV1EventsGet200ResponseInner>>;
48
+ /**
49
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
50
+ * Delete a calendar event.
51
+ */
52
+ apiV1EventsIdDeleteRaw(requestParameters: ApiV1EventsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
53
+ /**
54
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
55
+ * Delete a calendar event.
56
+ */
57
+ apiV1EventsIdDelete(requestParameters: ApiV1EventsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
58
+ /**
59
+ * Retrieve a calendar event.
60
+ */
61
+ apiV1EventsIdGetRaw(requestParameters: ApiV1EventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1EventsIdGet200Response>>;
62
+ /**
63
+ * Retrieve a calendar event.
64
+ */
65
+ apiV1EventsIdGet(requestParameters: ApiV1EventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1EventsIdGet200Response>;
66
+ /**
67
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
68
+ * Modify a calendar event.
69
+ */
70
+ apiV1EventsIdPatchRaw(requestParameters: ApiV1EventsIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
71
+ /**
72
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
73
+ * Modify a calendar event.
74
+ */
75
+ apiV1EventsIdPatch(requestParameters: ApiV1EventsIdPatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
76
+ /**
77
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
78
+ * Create a calendar event.
79
+ */
80
+ apiV1EventsPostRaw(requestParameters: ApiV1EventsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
81
+ /**
82
+ * #### Authorization <hr /> Requires any of the following roles: * Events Manager (<code>manage:events</code>)
83
+ * Create a calendar event.
84
+ */
85
+ apiV1EventsPost(requestParameters: ApiV1EventsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
86
+ }