@coscine/api-client 2.11.0 → 3.0.0

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 (140) hide show
  1. package/README.md +36 -11
  2. package/dist/index.js +4230 -4029
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.umd.js +4238 -4036
  5. package/dist/index.umd.js.map +1 -1
  6. package/dist/lib/Coscine.Api/api.js +6792 -0
  7. package/dist/lib/Coscine.Api/api.js.map +1 -0
  8. package/dist/lib/{Coscine.Api.Organization → Coscine.Api}/base.js +5 -5
  9. package/dist/lib/Coscine.Api/base.js.map +1 -0
  10. package/dist/lib/{Coscine.Api.Metadata → Coscine.Api}/common.js +4 -4
  11. package/dist/lib/Coscine.Api/common.js.map +1 -0
  12. package/dist/lib/{Coscine.Api.Metadata → Coscine.Api}/configuration.js +4 -4
  13. package/dist/lib/Coscine.Api/configuration.js.map +1 -0
  14. package/dist/lib/{Coscine.Api.Organization → Coscine.Api}/index.js +4 -4
  15. package/dist/lib/Coscine.Api/index.js.map +1 -0
  16. package/dist/lib/apis.js +65 -63
  17. package/dist/lib/apis.js.map +1 -1
  18. package/dist/lib/index.js +10 -9
  19. package/dist/lib/index.js.map +1 -1
  20. package/dist/types/Coscine.Api/api.d.ts +7160 -0
  21. package/dist/types/{Coscine.Api.Notices → Coscine.Api}/base.d.ts +4 -4
  22. package/dist/types/{Coscine.Api.Organization → Coscine.Api}/common.d.ts +4 -4
  23. package/dist/types/{Coscine.Api.Metadata → Coscine.Api}/configuration.d.ts +4 -4
  24. package/dist/types/Coscine.Api/index.d.ts +13 -0
  25. package/dist/types/apis.d.ts +104 -88
  26. package/dist/types/index.d.ts +209 -177
  27. package/package.json +3 -3
  28. package/dist/lib/Coscine.Api.Metadata/api.js +0 -450
  29. package/dist/lib/Coscine.Api.Metadata/api.js.map +0 -1
  30. package/dist/lib/Coscine.Api.Metadata/base.js +0 -65
  31. package/dist/lib/Coscine.Api.Metadata/base.js.map +0 -1
  32. package/dist/lib/Coscine.Api.Metadata/common.js.map +0 -1
  33. package/dist/lib/Coscine.Api.Metadata/configuration.js.map +0 -1
  34. package/dist/lib/Coscine.Api.Metadata/index.js +0 -32
  35. package/dist/lib/Coscine.Api.Metadata/index.js.map +0 -1
  36. package/dist/lib/Coscine.Api.Notices/api.js +0 -207
  37. package/dist/lib/Coscine.Api.Notices/api.js.map +0 -1
  38. package/dist/lib/Coscine.Api.Notices/base.js +0 -65
  39. package/dist/lib/Coscine.Api.Notices/base.js.map +0 -1
  40. package/dist/lib/Coscine.Api.Notices/common.js +0 -153
  41. package/dist/lib/Coscine.Api.Notices/common.js.map +0 -1
  42. package/dist/lib/Coscine.Api.Notices/configuration.js +0 -43
  43. package/dist/lib/Coscine.Api.Notices/configuration.js.map +0 -1
  44. package/dist/lib/Coscine.Api.Notices/index.js +0 -32
  45. package/dist/lib/Coscine.Api.Notices/index.js.map +0 -1
  46. package/dist/lib/Coscine.Api.Organization/api.js +0 -398
  47. package/dist/lib/Coscine.Api.Organization/api.js.map +0 -1
  48. package/dist/lib/Coscine.Api.Organization/base.js.map +0 -1
  49. package/dist/lib/Coscine.Api.Organization/common.js +0 -153
  50. package/dist/lib/Coscine.Api.Organization/common.js.map +0 -1
  51. package/dist/lib/Coscine.Api.Organization/configuration.js +0 -43
  52. package/dist/lib/Coscine.Api.Organization/configuration.js.map +0 -1
  53. package/dist/lib/Coscine.Api.Organization/index.js.map +0 -1
  54. package/dist/lib/Coscine.Api.Pid/api.js +0 -204
  55. package/dist/lib/Coscine.Api.Pid/api.js.map +0 -1
  56. package/dist/lib/Coscine.Api.Pid/base.js +0 -65
  57. package/dist/lib/Coscine.Api.Pid/base.js.map +0 -1
  58. package/dist/lib/Coscine.Api.Pid/common.js +0 -153
  59. package/dist/lib/Coscine.Api.Pid/common.js.map +0 -1
  60. package/dist/lib/Coscine.Api.Pid/configuration.js +0 -43
  61. package/dist/lib/Coscine.Api.Pid/configuration.js.map +0 -1
  62. package/dist/lib/Coscine.Api.Pid/index.js +0 -32
  63. package/dist/lib/Coscine.Api.Pid/index.js.map +0 -1
  64. package/dist/lib/Coscine.Api.Project/api.js +0 -2117
  65. package/dist/lib/Coscine.Api.Project/api.js.map +0 -1
  66. package/dist/lib/Coscine.Api.Project/base.js +0 -65
  67. package/dist/lib/Coscine.Api.Project/base.js.map +0 -1
  68. package/dist/lib/Coscine.Api.Project/common.js +0 -153
  69. package/dist/lib/Coscine.Api.Project/common.js.map +0 -1
  70. package/dist/lib/Coscine.Api.Project/configuration.js +0 -43
  71. package/dist/lib/Coscine.Api.Project/configuration.js.map +0 -1
  72. package/dist/lib/Coscine.Api.Project/index.js +0 -32
  73. package/dist/lib/Coscine.Api.Project/index.js.map +0 -1
  74. package/dist/lib/Coscine.Api.Resources/api.js +0 -1307
  75. package/dist/lib/Coscine.Api.Resources/api.js.map +0 -1
  76. package/dist/lib/Coscine.Api.Resources/base.js +0 -65
  77. package/dist/lib/Coscine.Api.Resources/base.js.map +0 -1
  78. package/dist/lib/Coscine.Api.Resources/common.js +0 -153
  79. package/dist/lib/Coscine.Api.Resources/common.js.map +0 -1
  80. package/dist/lib/Coscine.Api.Resources/configuration.js +0 -43
  81. package/dist/lib/Coscine.Api.Resources/configuration.js.map +0 -1
  82. package/dist/lib/Coscine.Api.Resources/index.js +0 -32
  83. package/dist/lib/Coscine.Api.Resources/index.js.map +0 -1
  84. package/dist/lib/Coscine.Api.Token/api.js +0 -385
  85. package/dist/lib/Coscine.Api.Token/api.js.map +0 -1
  86. package/dist/lib/Coscine.Api.Token/base.js +0 -65
  87. package/dist/lib/Coscine.Api.Token/base.js.map +0 -1
  88. package/dist/lib/Coscine.Api.Token/common.js +0 -153
  89. package/dist/lib/Coscine.Api.Token/common.js.map +0 -1
  90. package/dist/lib/Coscine.Api.Token/configuration.js +0 -43
  91. package/dist/lib/Coscine.Api.Token/configuration.js.map +0 -1
  92. package/dist/lib/Coscine.Api.Token/index.js +0 -32
  93. package/dist/lib/Coscine.Api.Token/index.js.map +0 -1
  94. package/dist/lib/Coscine.Api.User/api.js +0 -965
  95. package/dist/lib/Coscine.Api.User/api.js.map +0 -1
  96. package/dist/lib/Coscine.Api.User/base.js +0 -65
  97. package/dist/lib/Coscine.Api.User/base.js.map +0 -1
  98. package/dist/lib/Coscine.Api.User/common.js +0 -153
  99. package/dist/lib/Coscine.Api.User/common.js.map +0 -1
  100. package/dist/lib/Coscine.Api.User/configuration.js +0 -43
  101. package/dist/lib/Coscine.Api.User/configuration.js.map +0 -1
  102. package/dist/lib/Coscine.Api.User/index.js +0 -32
  103. package/dist/lib/Coscine.Api.User/index.js.map +0 -1
  104. package/dist/types/Coscine.Api.Metadata/api.d.ts +0 -299
  105. package/dist/types/Coscine.Api.Metadata/base.d.ts +0 -55
  106. package/dist/types/Coscine.Api.Metadata/common.d.ts +0 -65
  107. package/dist/types/Coscine.Api.Metadata/index.d.ts +0 -13
  108. package/dist/types/Coscine.Api.Notices/api.d.ts +0 -153
  109. package/dist/types/Coscine.Api.Notices/common.d.ts +0 -65
  110. package/dist/types/Coscine.Api.Notices/configuration.d.ts +0 -83
  111. package/dist/types/Coscine.Api.Notices/index.d.ts +0 -13
  112. package/dist/types/Coscine.Api.Organization/api.d.ts +0 -256
  113. package/dist/types/Coscine.Api.Organization/base.d.ts +0 -55
  114. package/dist/types/Coscine.Api.Organization/configuration.d.ts +0 -83
  115. package/dist/types/Coscine.Api.Organization/index.d.ts +0 -13
  116. package/dist/types/Coscine.Api.Pid/api.d.ts +0 -149
  117. package/dist/types/Coscine.Api.Pid/base.d.ts +0 -55
  118. package/dist/types/Coscine.Api.Pid/common.d.ts +0 -65
  119. package/dist/types/Coscine.Api.Pid/configuration.d.ts +0 -83
  120. package/dist/types/Coscine.Api.Pid/index.d.ts +0 -13
  121. package/dist/types/Coscine.Api.Project/api.d.ts +0 -1870
  122. package/dist/types/Coscine.Api.Project/base.d.ts +0 -55
  123. package/dist/types/Coscine.Api.Project/common.d.ts +0 -65
  124. package/dist/types/Coscine.Api.Project/configuration.d.ts +0 -83
  125. package/dist/types/Coscine.Api.Project/index.d.ts +0 -13
  126. package/dist/types/Coscine.Api.Resources/api.d.ts +0 -1733
  127. package/dist/types/Coscine.Api.Resources/base.d.ts +0 -55
  128. package/dist/types/Coscine.Api.Resources/common.d.ts +0 -65
  129. package/dist/types/Coscine.Api.Resources/configuration.d.ts +0 -83
  130. package/dist/types/Coscine.Api.Resources/index.d.ts +0 -13
  131. package/dist/types/Coscine.Api.Token/api.d.ts +0 -316
  132. package/dist/types/Coscine.Api.Token/base.d.ts +0 -55
  133. package/dist/types/Coscine.Api.Token/common.d.ts +0 -65
  134. package/dist/types/Coscine.Api.Token/configuration.d.ts +0 -83
  135. package/dist/types/Coscine.Api.Token/index.d.ts +0 -13
  136. package/dist/types/Coscine.Api.User/api.d.ts +0 -745
  137. package/dist/types/Coscine.Api.User/base.d.ts +0 -55
  138. package/dist/types/Coscine.Api.User/common.d.ts +0 -65
  139. package/dist/types/Coscine.Api.User/configuration.d.ts +0 -83
  140. package/dist/types/Coscine.Api.User/index.d.ts +0 -13
@@ -1,2117 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Coscine.Api.Project
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: 4.3.3
9
- *
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.VisibilityApi = exports.VisibilityApiFactory = exports.VisibilityApiFp = exports.VisibilityApiAxiosParamCreator = exports.SubProjectApi = exports.SubProjectApiFactory = exports.SubProjectApiFp = exports.SubProjectApiAxiosParamCreator = exports.RoleApi = exports.RoleApiFactory = exports.RoleApiFp = exports.RoleApiAxiosParamCreator = exports.ProjectRoleApi = exports.ProjectRoleApiFactory = exports.ProjectRoleApiFp = exports.ProjectRoleApiAxiosParamCreator = exports.ProjectQuotaApi = exports.ProjectQuotaApiFactory = exports.ProjectQuotaApiFp = exports.ProjectQuotaApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.LicenseApi = exports.LicenseApiFactory = exports.LicenseApiFp = exports.LicenseApiAxiosParamCreator = exports.DisciplineApi = exports.DisciplineApiFactory = exports.DisciplineApiFp = exports.DisciplineApiAxiosParamCreator = exports.QuotaUnit = void 0;
29
- const axios_1 = __importDefault(require("axios"));
30
- // Some imports not used depending on template conditions
31
- // @ts-ignore
32
- const common_1 = require("./common");
33
- // @ts-ignore
34
- const base_1 = require("./base");
35
- /**
36
- *
37
- * @export
38
- * @enum {string}
39
- */
40
- var QuotaUnit;
41
- (function (QuotaUnit) {
42
- QuotaUnit["Byte"] = "https://qudt.org/vocab/unit/BYTE";
43
- QuotaUnit["KibiByte"] = "https://qudt.org/vocab/unit/KibiBYTE";
44
- QuotaUnit["MebiByte"] = "https://qudt.org/vocab/unit/MebiBYTE";
45
- QuotaUnit["GibiByte"] = "https://qudt.org/vocab/unit/GibiBYTE";
46
- QuotaUnit["TebiByte"] = "https://qudt.org/vocab/unit/TebiBYTE";
47
- QuotaUnit["PebiByte"] = "https://qudt.org/vocab/unit/PebiBYTE";
48
- })(QuotaUnit = exports.QuotaUnit || (exports.QuotaUnit = {}));
49
- /**
50
- * DisciplineApi - axios parameter creator
51
- * @export
52
- */
53
- const DisciplineApiAxiosParamCreator = function (configuration) {
54
- return {
55
- /**
56
- *
57
- * @summary Returns all available disciplines
58
- * @param {*} [options] Override http request option.
59
- * @throws {RequiredError}
60
- */
61
- disciplineIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
62
- const localVarPath = `/Discipline`;
63
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
64
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
65
- let baseOptions;
66
- if (configuration) {
67
- baseOptions = configuration.baseOptions;
68
- }
69
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
70
- const localVarHeaderParameter = {};
71
- const localVarQueryParameter = {};
72
- // authentication JWT token required
73
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
74
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
75
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
77
- return {
78
- url: (0, common_1.toPathString)(localVarUrlObj),
79
- options: localVarRequestOptions,
80
- };
81
- }),
82
- };
83
- };
84
- exports.DisciplineApiAxiosParamCreator = DisciplineApiAxiosParamCreator;
85
- /**
86
- * DisciplineApi - functional programming interface
87
- * @export
88
- */
89
- const DisciplineApiFp = function (configuration) {
90
- const localVarAxiosParamCreator = (0, exports.DisciplineApiAxiosParamCreator)(configuration);
91
- return {
92
- /**
93
- *
94
- * @summary Returns all available disciplines
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- disciplineIndex(options) {
99
- return __awaiter(this, void 0, void 0, function* () {
100
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disciplineIndex(options);
101
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
102
- });
103
- },
104
- };
105
- };
106
- exports.DisciplineApiFp = DisciplineApiFp;
107
- /**
108
- * DisciplineApi - factory interface
109
- * @export
110
- */
111
- const DisciplineApiFactory = function (configuration, basePath, axios) {
112
- const localVarFp = (0, exports.DisciplineApiFp)(configuration);
113
- return {
114
- /**
115
- *
116
- * @summary Returns all available disciplines
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- disciplineIndex(options) {
121
- return localVarFp.disciplineIndex(options).then((request) => request(axios, basePath));
122
- },
123
- };
124
- };
125
- exports.DisciplineApiFactory = DisciplineApiFactory;
126
- /**
127
- * DisciplineApi - object-oriented interface
128
- * @export
129
- * @class DisciplineApi
130
- * @extends {BaseAPI}
131
- */
132
- class DisciplineApi extends base_1.BaseAPI {
133
- /**
134
- *
135
- * @summary Returns all available disciplines
136
- * @param {*} [options] Override http request option.
137
- * @throws {RequiredError}
138
- * @memberof DisciplineApi
139
- */
140
- disciplineIndex(options) {
141
- return (0, exports.DisciplineApiFp)(this.configuration).disciplineIndex(options).then((request) => request(this.axios, this.basePath));
142
- }
143
- }
144
- exports.DisciplineApi = DisciplineApi;
145
- /**
146
- * LicenseApi - axios parameter creator
147
- * @export
148
- */
149
- const LicenseApiAxiosParamCreator = function (configuration) {
150
- return {
151
- /**
152
- *
153
- * @summary Returns all available licenses
154
- * @param {*} [options] Override http request option.
155
- * @throws {RequiredError}
156
- */
157
- licenseIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
158
- const localVarPath = `/License`;
159
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
- let baseOptions;
162
- if (configuration) {
163
- baseOptions = configuration.baseOptions;
164
- }
165
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
166
- const localVarHeaderParameter = {};
167
- const localVarQueryParameter = {};
168
- // authentication JWT token required
169
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
170
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
171
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
172
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
173
- return {
174
- url: (0, common_1.toPathString)(localVarUrlObj),
175
- options: localVarRequestOptions,
176
- };
177
- }),
178
- };
179
- };
180
- exports.LicenseApiAxiosParamCreator = LicenseApiAxiosParamCreator;
181
- /**
182
- * LicenseApi - functional programming interface
183
- * @export
184
- */
185
- const LicenseApiFp = function (configuration) {
186
- const localVarAxiosParamCreator = (0, exports.LicenseApiAxiosParamCreator)(configuration);
187
- return {
188
- /**
189
- *
190
- * @summary Returns all available licenses
191
- * @param {*} [options] Override http request option.
192
- * @throws {RequiredError}
193
- */
194
- licenseIndex(options) {
195
- return __awaiter(this, void 0, void 0, function* () {
196
- const localVarAxiosArgs = yield localVarAxiosParamCreator.licenseIndex(options);
197
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
198
- });
199
- },
200
- };
201
- };
202
- exports.LicenseApiFp = LicenseApiFp;
203
- /**
204
- * LicenseApi - factory interface
205
- * @export
206
- */
207
- const LicenseApiFactory = function (configuration, basePath, axios) {
208
- const localVarFp = (0, exports.LicenseApiFp)(configuration);
209
- return {
210
- /**
211
- *
212
- * @summary Returns all available licenses
213
- * @param {*} [options] Override http request option.
214
- * @throws {RequiredError}
215
- */
216
- licenseIndex(options) {
217
- return localVarFp.licenseIndex(options).then((request) => request(axios, basePath));
218
- },
219
- };
220
- };
221
- exports.LicenseApiFactory = LicenseApiFactory;
222
- /**
223
- * LicenseApi - object-oriented interface
224
- * @export
225
- * @class LicenseApi
226
- * @extends {BaseAPI}
227
- */
228
- class LicenseApi extends base_1.BaseAPI {
229
- /**
230
- *
231
- * @summary Returns all available licenses
232
- * @param {*} [options] Override http request option.
233
- * @throws {RequiredError}
234
- * @memberof LicenseApi
235
- */
236
- licenseIndex(options) {
237
- return (0, exports.LicenseApiFp)(this.configuration).licenseIndex(options).then((request) => request(this.axios, this.basePath));
238
- }
239
- }
240
- exports.LicenseApi = LicenseApi;
241
- /**
242
- * ProjectApi - axios parameter creator
243
- * @export
244
- */
245
- const ProjectApiAxiosParamCreator = function (configuration) {
246
- return {
247
- /**
248
- *
249
- * @summary Creation of an Application Profile.
250
- * @param {string} projectId Project id of the project
251
- * @param {*} [options] Override http request option.
252
- * @throws {RequiredError}
253
- */
254
- projectCreateApplicationProfile: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
255
- // verify required parameter 'projectId' is not null or undefined
256
- (0, common_1.assertParamExists)('projectCreateApplicationProfile', 'projectId', projectId);
257
- const localVarPath = `/Project/{projectId}/-/create-profile`
258
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
259
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
260
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
- let baseOptions;
262
- if (configuration) {
263
- baseOptions = configuration.baseOptions;
264
- }
265
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
266
- const localVarHeaderParameter = {};
267
- const localVarQueryParameter = {};
268
- // authentication JWT token required
269
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
270
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
271
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
272
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
273
- return {
274
- url: (0, common_1.toPathString)(localVarUrlObj),
275
- options: localVarRequestOptions,
276
- };
277
- }),
278
- /**
279
- *
280
- * @summary Deletes a project
281
- * @param {string} id Id of the project
282
- * @param {*} [options] Override http request option.
283
- * @throws {RequiredError}
284
- */
285
- projectDelete: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
286
- // verify required parameter 'id' is not null or undefined
287
- (0, common_1.assertParamExists)('projectDelete', 'id', id);
288
- const localVarPath = `/Project/{id}`
289
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
290
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
292
- let baseOptions;
293
- if (configuration) {
294
- baseOptions = configuration.baseOptions;
295
- }
296
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
297
- const localVarHeaderParameter = {};
298
- const localVarQueryParameter = {};
299
- // authentication JWT token required
300
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
301
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
302
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
303
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
304
- return {
305
- url: (0, common_1.toPathString)(localVarUrlObj),
306
- options: localVarRequestOptions,
307
- };
308
- }),
309
- /**
310
- *
311
- * @summary Deletes a project invitation.
312
- * @param {string} invitationId Id of an invitation
313
- * @param {*} [options] Override http request option.
314
- * @throws {RequiredError}
315
- */
316
- projectDeleteInvitation: (invitationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
317
- // verify required parameter 'invitationId' is not null or undefined
318
- (0, common_1.assertParamExists)('projectDeleteInvitation', 'invitationId', invitationId);
319
- const localVarPath = `/Project/invitation/{invitationId}`
320
- .replace(`{${"invitationId"}}`, encodeURIComponent(String(invitationId)));
321
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
322
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
323
- let baseOptions;
324
- if (configuration) {
325
- baseOptions = configuration.baseOptions;
326
- }
327
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
328
- const localVarHeaderParameter = {};
329
- const localVarQueryParameter = {};
330
- // authentication JWT token required
331
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
332
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
333
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
334
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
335
- return {
336
- url: (0, common_1.toPathString)(localVarUrlObj),
337
- options: localVarRequestOptions,
338
- };
339
- }),
340
- /**
341
- *
342
- * @summary This returns the project if the user has access to it
343
- * @param {string} id Id of the project
344
- * @param {*} [options] Override http request option.
345
- * @throws {RequiredError}
346
- */
347
- projectGet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
348
- // verify required parameter 'id' is not null or undefined
349
- (0, common_1.assertParamExists)('projectGet', 'id', id);
350
- const localVarPath = `/Project/{id}`
351
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
352
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
353
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
354
- let baseOptions;
355
- if (configuration) {
356
- baseOptions = configuration.baseOptions;
357
- }
358
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
359
- const localVarHeaderParameter = {};
360
- const localVarQueryParameter = {};
361
- // authentication JWT token required
362
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
363
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
364
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
365
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
366
- return {
367
- url: (0, common_1.toPathString)(localVarUrlObj),
368
- options: localVarRequestOptions,
369
- };
370
- }),
371
- /**
372
- *
373
- * @summary This returns the project if the user has access to it
374
- * @param {string} slug Slug of the project
375
- * @param {*} [options] Override http request option.
376
- * @throws {RequiredError}
377
- */
378
- projectGetBySlug: (slug, options = {}) => __awaiter(this, void 0, void 0, function* () {
379
- // verify required parameter 'slug' is not null or undefined
380
- (0, common_1.assertParamExists)('projectGetBySlug', 'slug', slug);
381
- const localVarPath = `/Project/slug/{slug}`
382
- .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
383
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
384
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
385
- let baseOptions;
386
- if (configuration) {
387
- baseOptions = configuration.baseOptions;
388
- }
389
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
390
- const localVarHeaderParameter = {};
391
- const localVarQueryParameter = {};
392
- // authentication JWT token required
393
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
394
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
395
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
396
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
397
- return {
398
- url: (0, common_1.toPathString)(localVarUrlObj),
399
- options: localVarRequestOptions,
400
- };
401
- }),
402
- /**
403
- *
404
- * @summary Gets all resources in a project
405
- * @param {string} id Id of the project
406
- * @param {*} [options] Override http request option.
407
- * @throws {RequiredError}
408
- */
409
- projectGetResources: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
410
- // verify required parameter 'id' is not null or undefined
411
- (0, common_1.assertParamExists)('projectGetResources', 'id', id);
412
- const localVarPath = `/Project/{id}/resources`
413
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
414
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
415
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
416
- let baseOptions;
417
- if (configuration) {
418
- baseOptions = configuration.baseOptions;
419
- }
420
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
421
- const localVarHeaderParameter = {};
422
- const localVarQueryParameter = {};
423
- // authentication JWT token required
424
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
425
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
426
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
427
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
428
- return {
429
- url: (0, common_1.toPathString)(localVarUrlObj),
430
- options: localVarRequestOptions,
431
- };
432
- }),
433
- /**
434
- *
435
- * @summary Retrieves all top level projects
436
- * @param {*} [options] Override http request option.
437
- * @throws {RequiredError}
438
- */
439
- projectGetTopLevelProjects: (options = {}) => __awaiter(this, void 0, void 0, function* () {
440
- const localVarPath = `/Project/-/topLevel`;
441
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
442
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
443
- let baseOptions;
444
- if (configuration) {
445
- baseOptions = configuration.baseOptions;
446
- }
447
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
448
- const localVarHeaderParameter = {};
449
- const localVarQueryParameter = {};
450
- // authentication JWT token required
451
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
452
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
453
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
454
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
455
- return {
456
- url: (0, common_1.toPathString)(localVarUrlObj),
457
- options: localVarRequestOptions,
458
- };
459
- }),
460
- /**
461
- *
462
- * @summary Returns all available projects (including sub projects)
463
- * @param {*} [options] Override http request option.
464
- * @throws {RequiredError}
465
- */
466
- projectIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
467
- const localVarPath = `/Project`;
468
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
469
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
470
- let baseOptions;
471
- if (configuration) {
472
- baseOptions = configuration.baseOptions;
473
- }
474
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
475
- const localVarHeaderParameter = {};
476
- const localVarQueryParameter = {};
477
- // authentication JWT token required
478
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
479
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
480
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
481
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
482
- return {
483
- url: (0, common_1.toPathString)(localVarUrlObj),
484
- options: localVarRequestOptions,
485
- };
486
- }),
487
- /**
488
- *
489
- * @summary List all invitations of a project.
490
- * @param {string} projectId Id of the project
491
- * @param {*} [options] Override http request option.
492
- * @throws {RequiredError}
493
- */
494
- projectListInvitations: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
495
- // verify required parameter 'projectId' is not null or undefined
496
- (0, common_1.assertParamExists)('projectListInvitations', 'projectId', projectId);
497
- const localVarPath = `/Project/invitation/list/{projectId}`
498
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
499
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
500
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
501
- let baseOptions;
502
- if (configuration) {
503
- baseOptions = configuration.baseOptions;
504
- }
505
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
506
- const localVarHeaderParameter = {};
507
- const localVarQueryParameter = {};
508
- // authentication JWT token required
509
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
510
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
511
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
512
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
513
- return {
514
- url: (0, common_1.toPathString)(localVarUrlObj),
515
- options: localVarRequestOptions,
516
- };
517
- }),
518
- /**
519
- *
520
- * @summary Resolves a project invitation for the current user.
521
- * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
522
- * @param {*} [options] Override http request option.
523
- * @throws {RequiredError}
524
- */
525
- projectResolveInvitation: (invitationToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
526
- // verify required parameter 'invitationToken' is not null or undefined
527
- (0, common_1.assertParamExists)('projectResolveInvitation', 'invitationToken', invitationToken);
528
- const localVarPath = `/Project/invitation/resolve/{invitationToken}`
529
- .replace(`{${"invitationToken"}}`, encodeURIComponent(String(invitationToken)));
530
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
531
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
532
- let baseOptions;
533
- if (configuration) {
534
- baseOptions = configuration.baseOptions;
535
- }
536
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
537
- const localVarHeaderParameter = {};
538
- const localVarQueryParameter = {};
539
- // authentication JWT token required
540
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
541
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
542
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
543
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
544
- return {
545
- url: (0, common_1.toPathString)(localVarUrlObj),
546
- options: localVarRequestOptions,
547
- };
548
- }),
549
- /**
550
- *
551
- * @summary Creates and sends a project invitation to a specified email.
552
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
553
- * @param {*} [options] Override http request option.
554
- * @throws {RequiredError}
555
- */
556
- projectSendInvitation: (sendInvitationObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
557
- // verify required parameter 'sendInvitationObject' is not null or undefined
558
- (0, common_1.assertParamExists)('projectSendInvitation', 'sendInvitationObject', sendInvitationObject);
559
- const localVarPath = `/Project/invitation`;
560
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
561
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
562
- let baseOptions;
563
- if (configuration) {
564
- baseOptions = configuration.baseOptions;
565
- }
566
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
567
- const localVarHeaderParameter = {};
568
- const localVarQueryParameter = {};
569
- // authentication JWT token required
570
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
571
- localVarHeaderParameter['Content-Type'] = 'application/json';
572
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
573
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
574
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
575
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sendInvitationObject, localVarRequestOptions, configuration);
576
- return {
577
- url: (0, common_1.toPathString)(localVarUrlObj),
578
- options: localVarRequestOptions,
579
- };
580
- }),
581
- /**
582
- *
583
- * @summary Creates a project
584
- * @param {ProjectObject} projectObject A Project Object
585
- * @param {*} [options] Override http request option.
586
- * @throws {RequiredError}
587
- */
588
- projectStore: (projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
589
- // verify required parameter 'projectObject' is not null or undefined
590
- (0, common_1.assertParamExists)('projectStore', 'projectObject', projectObject);
591
- const localVarPath = `/Project`;
592
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
593
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
594
- let baseOptions;
595
- if (configuration) {
596
- baseOptions = configuration.baseOptions;
597
- }
598
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
599
- const localVarHeaderParameter = {};
600
- const localVarQueryParameter = {};
601
- // authentication JWT token required
602
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
603
- localVarHeaderParameter['Content-Type'] = 'application/json';
604
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
605
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
606
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
607
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(projectObject, localVarRequestOptions, configuration);
608
- return {
609
- url: (0, common_1.toPathString)(localVarUrlObj),
610
- options: localVarRequestOptions,
611
- };
612
- }),
613
- /**
614
- *
615
- * @summary Updates a project
616
- * @param {string} id Id of the project
617
- * @param {ProjectObject} projectObject A Project Object
618
- * @param {*} [options] Override http request option.
619
- * @throws {RequiredError}
620
- */
621
- projectUpdate: (id, projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
622
- // verify required parameter 'id' is not null or undefined
623
- (0, common_1.assertParamExists)('projectUpdate', 'id', id);
624
- // verify required parameter 'projectObject' is not null or undefined
625
- (0, common_1.assertParamExists)('projectUpdate', 'projectObject', projectObject);
626
- const localVarPath = `/Project/{id}`
627
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
628
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
629
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
630
- let baseOptions;
631
- if (configuration) {
632
- baseOptions = configuration.baseOptions;
633
- }
634
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
635
- const localVarHeaderParameter = {};
636
- const localVarQueryParameter = {};
637
- // authentication JWT token required
638
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
639
- localVarHeaderParameter['Content-Type'] = 'application/json';
640
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
641
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
642
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
643
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(projectObject, localVarRequestOptions, configuration);
644
- return {
645
- url: (0, common_1.toPathString)(localVarUrlObj),
646
- options: localVarRequestOptions,
647
- };
648
- }),
649
- };
650
- };
651
- exports.ProjectApiAxiosParamCreator = ProjectApiAxiosParamCreator;
652
- /**
653
- * ProjectApi - functional programming interface
654
- * @export
655
- */
656
- const ProjectApiFp = function (configuration) {
657
- const localVarAxiosParamCreator = (0, exports.ProjectApiAxiosParamCreator)(configuration);
658
- return {
659
- /**
660
- *
661
- * @summary Creation of an Application Profile.
662
- * @param {string} projectId Project id of the project
663
- * @param {*} [options] Override http request option.
664
- * @throws {RequiredError}
665
- */
666
- projectCreateApplicationProfile(projectId, options) {
667
- return __awaiter(this, void 0, void 0, function* () {
668
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectCreateApplicationProfile(projectId, options);
669
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
670
- });
671
- },
672
- /**
673
- *
674
- * @summary Deletes a project
675
- * @param {string} id Id of the project
676
- * @param {*} [options] Override http request option.
677
- * @throws {RequiredError}
678
- */
679
- projectDelete(id, options) {
680
- return __awaiter(this, void 0, void 0, function* () {
681
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectDelete(id, options);
682
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
683
- });
684
- },
685
- /**
686
- *
687
- * @summary Deletes a project invitation.
688
- * @param {string} invitationId Id of an invitation
689
- * @param {*} [options] Override http request option.
690
- * @throws {RequiredError}
691
- */
692
- projectDeleteInvitation(invitationId, options) {
693
- return __awaiter(this, void 0, void 0, function* () {
694
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectDeleteInvitation(invitationId, options);
695
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
696
- });
697
- },
698
- /**
699
- *
700
- * @summary This returns the project if the user has access to it
701
- * @param {string} id Id of the project
702
- * @param {*} [options] Override http request option.
703
- * @throws {RequiredError}
704
- */
705
- projectGet(id, options) {
706
- return __awaiter(this, void 0, void 0, function* () {
707
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGet(id, options);
708
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
709
- });
710
- },
711
- /**
712
- *
713
- * @summary This returns the project if the user has access to it
714
- * @param {string} slug Slug of the project
715
- * @param {*} [options] Override http request option.
716
- * @throws {RequiredError}
717
- */
718
- projectGetBySlug(slug, options) {
719
- return __awaiter(this, void 0, void 0, function* () {
720
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetBySlug(slug, options);
721
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
722
- });
723
- },
724
- /**
725
- *
726
- * @summary Gets all resources in a project
727
- * @param {string} id Id of the project
728
- * @param {*} [options] Override http request option.
729
- * @throws {RequiredError}
730
- */
731
- projectGetResources(id, options) {
732
- return __awaiter(this, void 0, void 0, function* () {
733
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetResources(id, options);
734
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
735
- });
736
- },
737
- /**
738
- *
739
- * @summary Retrieves all top level projects
740
- * @param {*} [options] Override http request option.
741
- * @throws {RequiredError}
742
- */
743
- projectGetTopLevelProjects(options) {
744
- return __awaiter(this, void 0, void 0, function* () {
745
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetTopLevelProjects(options);
746
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
747
- });
748
- },
749
- /**
750
- *
751
- * @summary Returns all available projects (including sub projects)
752
- * @param {*} [options] Override http request option.
753
- * @throws {RequiredError}
754
- */
755
- projectIndex(options) {
756
- return __awaiter(this, void 0, void 0, function* () {
757
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectIndex(options);
758
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
759
- });
760
- },
761
- /**
762
- *
763
- * @summary List all invitations of a project.
764
- * @param {string} projectId Id of the project
765
- * @param {*} [options] Override http request option.
766
- * @throws {RequiredError}
767
- */
768
- projectListInvitations(projectId, options) {
769
- return __awaiter(this, void 0, void 0, function* () {
770
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectListInvitations(projectId, options);
771
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
772
- });
773
- },
774
- /**
775
- *
776
- * @summary Resolves a project invitation for the current user.
777
- * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
778
- * @param {*} [options] Override http request option.
779
- * @throws {RequiredError}
780
- */
781
- projectResolveInvitation(invitationToken, options) {
782
- return __awaiter(this, void 0, void 0, function* () {
783
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(invitationToken, options);
784
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
785
- });
786
- },
787
- /**
788
- *
789
- * @summary Creates and sends a project invitation to a specified email.
790
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
791
- * @param {*} [options] Override http request option.
792
- * @throws {RequiredError}
793
- */
794
- projectSendInvitation(sendInvitationObject, options) {
795
- return __awaiter(this, void 0, void 0, function* () {
796
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectSendInvitation(sendInvitationObject, options);
797
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
798
- });
799
- },
800
- /**
801
- *
802
- * @summary Creates a project
803
- * @param {ProjectObject} projectObject A Project Object
804
- * @param {*} [options] Override http request option.
805
- * @throws {RequiredError}
806
- */
807
- projectStore(projectObject, options) {
808
- return __awaiter(this, void 0, void 0, function* () {
809
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectStore(projectObject, options);
810
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
811
- });
812
- },
813
- /**
814
- *
815
- * @summary Updates a project
816
- * @param {string} id Id of the project
817
- * @param {ProjectObject} projectObject A Project Object
818
- * @param {*} [options] Override http request option.
819
- * @throws {RequiredError}
820
- */
821
- projectUpdate(id, projectObject, options) {
822
- return __awaiter(this, void 0, void 0, function* () {
823
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdate(id, projectObject, options);
824
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
825
- });
826
- },
827
- };
828
- };
829
- exports.ProjectApiFp = ProjectApiFp;
830
- /**
831
- * ProjectApi - factory interface
832
- * @export
833
- */
834
- const ProjectApiFactory = function (configuration, basePath, axios) {
835
- const localVarFp = (0, exports.ProjectApiFp)(configuration);
836
- return {
837
- /**
838
- *
839
- * @summary Creation of an Application Profile.
840
- * @param {string} projectId Project id of the project
841
- * @param {*} [options] Override http request option.
842
- * @throws {RequiredError}
843
- */
844
- projectCreateApplicationProfile(projectId, options) {
845
- return localVarFp.projectCreateApplicationProfile(projectId, options).then((request) => request(axios, basePath));
846
- },
847
- /**
848
- *
849
- * @summary Deletes a project
850
- * @param {string} id Id of the project
851
- * @param {*} [options] Override http request option.
852
- * @throws {RequiredError}
853
- */
854
- projectDelete(id, options) {
855
- return localVarFp.projectDelete(id, options).then((request) => request(axios, basePath));
856
- },
857
- /**
858
- *
859
- * @summary Deletes a project invitation.
860
- * @param {string} invitationId Id of an invitation
861
- * @param {*} [options] Override http request option.
862
- * @throws {RequiredError}
863
- */
864
- projectDeleteInvitation(invitationId, options) {
865
- return localVarFp.projectDeleteInvitation(invitationId, options).then((request) => request(axios, basePath));
866
- },
867
- /**
868
- *
869
- * @summary This returns the project if the user has access to it
870
- * @param {string} id Id of the project
871
- * @param {*} [options] Override http request option.
872
- * @throws {RequiredError}
873
- */
874
- projectGet(id, options) {
875
- return localVarFp.projectGet(id, options).then((request) => request(axios, basePath));
876
- },
877
- /**
878
- *
879
- * @summary This returns the project if the user has access to it
880
- * @param {string} slug Slug of the project
881
- * @param {*} [options] Override http request option.
882
- * @throws {RequiredError}
883
- */
884
- projectGetBySlug(slug, options) {
885
- return localVarFp.projectGetBySlug(slug, options).then((request) => request(axios, basePath));
886
- },
887
- /**
888
- *
889
- * @summary Gets all resources in a project
890
- * @param {string} id Id of the project
891
- * @param {*} [options] Override http request option.
892
- * @throws {RequiredError}
893
- */
894
- projectGetResources(id, options) {
895
- return localVarFp.projectGetResources(id, options).then((request) => request(axios, basePath));
896
- },
897
- /**
898
- *
899
- * @summary Retrieves all top level projects
900
- * @param {*} [options] Override http request option.
901
- * @throws {RequiredError}
902
- */
903
- projectGetTopLevelProjects(options) {
904
- return localVarFp.projectGetTopLevelProjects(options).then((request) => request(axios, basePath));
905
- },
906
- /**
907
- *
908
- * @summary Returns all available projects (including sub projects)
909
- * @param {*} [options] Override http request option.
910
- * @throws {RequiredError}
911
- */
912
- projectIndex(options) {
913
- return localVarFp.projectIndex(options).then((request) => request(axios, basePath));
914
- },
915
- /**
916
- *
917
- * @summary List all invitations of a project.
918
- * @param {string} projectId Id of the project
919
- * @param {*} [options] Override http request option.
920
- * @throws {RequiredError}
921
- */
922
- projectListInvitations(projectId, options) {
923
- return localVarFp.projectListInvitations(projectId, options).then((request) => request(axios, basePath));
924
- },
925
- /**
926
- *
927
- * @summary Resolves a project invitation for the current user.
928
- * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
929
- * @param {*} [options] Override http request option.
930
- * @throws {RequiredError}
931
- */
932
- projectResolveInvitation(invitationToken, options) {
933
- return localVarFp.projectResolveInvitation(invitationToken, options).then((request) => request(axios, basePath));
934
- },
935
- /**
936
- *
937
- * @summary Creates and sends a project invitation to a specified email.
938
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
939
- * @param {*} [options] Override http request option.
940
- * @throws {RequiredError}
941
- */
942
- projectSendInvitation(sendInvitationObject, options) {
943
- return localVarFp.projectSendInvitation(sendInvitationObject, options).then((request) => request(axios, basePath));
944
- },
945
- /**
946
- *
947
- * @summary Creates a project
948
- * @param {ProjectObject} projectObject A Project Object
949
- * @param {*} [options] Override http request option.
950
- * @throws {RequiredError}
951
- */
952
- projectStore(projectObject, options) {
953
- return localVarFp.projectStore(projectObject, options).then((request) => request(axios, basePath));
954
- },
955
- /**
956
- *
957
- * @summary Updates a project
958
- * @param {string} id Id of the project
959
- * @param {ProjectObject} projectObject A Project Object
960
- * @param {*} [options] Override http request option.
961
- * @throws {RequiredError}
962
- */
963
- projectUpdate(id, projectObject, options) {
964
- return localVarFp.projectUpdate(id, projectObject, options).then((request) => request(axios, basePath));
965
- },
966
- };
967
- };
968
- exports.ProjectApiFactory = ProjectApiFactory;
969
- /**
970
- * ProjectApi - object-oriented interface
971
- * @export
972
- * @class ProjectApi
973
- * @extends {BaseAPI}
974
- */
975
- class ProjectApi extends base_1.BaseAPI {
976
- /**
977
- *
978
- * @summary Creation of an Application Profile.
979
- * @param {string} projectId Project id of the project
980
- * @param {*} [options] Override http request option.
981
- * @throws {RequiredError}
982
- * @memberof ProjectApi
983
- */
984
- projectCreateApplicationProfile(projectId, options) {
985
- return (0, exports.ProjectApiFp)(this.configuration).projectCreateApplicationProfile(projectId, options).then((request) => request(this.axios, this.basePath));
986
- }
987
- /**
988
- *
989
- * @summary Deletes a project
990
- * @param {string} id Id of the project
991
- * @param {*} [options] Override http request option.
992
- * @throws {RequiredError}
993
- * @memberof ProjectApi
994
- */
995
- projectDelete(id, options) {
996
- return (0, exports.ProjectApiFp)(this.configuration).projectDelete(id, options).then((request) => request(this.axios, this.basePath));
997
- }
998
- /**
999
- *
1000
- * @summary Deletes a project invitation.
1001
- * @param {string} invitationId Id of an invitation
1002
- * @param {*} [options] Override http request option.
1003
- * @throws {RequiredError}
1004
- * @memberof ProjectApi
1005
- */
1006
- projectDeleteInvitation(invitationId, options) {
1007
- return (0, exports.ProjectApiFp)(this.configuration).projectDeleteInvitation(invitationId, options).then((request) => request(this.axios, this.basePath));
1008
- }
1009
- /**
1010
- *
1011
- * @summary This returns the project if the user has access to it
1012
- * @param {string} id Id of the project
1013
- * @param {*} [options] Override http request option.
1014
- * @throws {RequiredError}
1015
- * @memberof ProjectApi
1016
- */
1017
- projectGet(id, options) {
1018
- return (0, exports.ProjectApiFp)(this.configuration).projectGet(id, options).then((request) => request(this.axios, this.basePath));
1019
- }
1020
- /**
1021
- *
1022
- * @summary This returns the project if the user has access to it
1023
- * @param {string} slug Slug of the project
1024
- * @param {*} [options] Override http request option.
1025
- * @throws {RequiredError}
1026
- * @memberof ProjectApi
1027
- */
1028
- projectGetBySlug(slug, options) {
1029
- return (0, exports.ProjectApiFp)(this.configuration).projectGetBySlug(slug, options).then((request) => request(this.axios, this.basePath));
1030
- }
1031
- /**
1032
- *
1033
- * @summary Gets all resources in a project
1034
- * @param {string} id Id of the project
1035
- * @param {*} [options] Override http request option.
1036
- * @throws {RequiredError}
1037
- * @memberof ProjectApi
1038
- */
1039
- projectGetResources(id, options) {
1040
- return (0, exports.ProjectApiFp)(this.configuration).projectGetResources(id, options).then((request) => request(this.axios, this.basePath));
1041
- }
1042
- /**
1043
- *
1044
- * @summary Retrieves all top level projects
1045
- * @param {*} [options] Override http request option.
1046
- * @throws {RequiredError}
1047
- * @memberof ProjectApi
1048
- */
1049
- projectGetTopLevelProjects(options) {
1050
- return (0, exports.ProjectApiFp)(this.configuration).projectGetTopLevelProjects(options).then((request) => request(this.axios, this.basePath));
1051
- }
1052
- /**
1053
- *
1054
- * @summary Returns all available projects (including sub projects)
1055
- * @param {*} [options] Override http request option.
1056
- * @throws {RequiredError}
1057
- * @memberof ProjectApi
1058
- */
1059
- projectIndex(options) {
1060
- return (0, exports.ProjectApiFp)(this.configuration).projectIndex(options).then((request) => request(this.axios, this.basePath));
1061
- }
1062
- /**
1063
- *
1064
- * @summary List all invitations of a project.
1065
- * @param {string} projectId Id of the project
1066
- * @param {*} [options] Override http request option.
1067
- * @throws {RequiredError}
1068
- * @memberof ProjectApi
1069
- */
1070
- projectListInvitations(projectId, options) {
1071
- return (0, exports.ProjectApiFp)(this.configuration).projectListInvitations(projectId, options).then((request) => request(this.axios, this.basePath));
1072
- }
1073
- /**
1074
- *
1075
- * @summary Resolves a project invitation for the current user.
1076
- * @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
1077
- * @param {*} [options] Override http request option.
1078
- * @throws {RequiredError}
1079
- * @memberof ProjectApi
1080
- */
1081
- projectResolveInvitation(invitationToken, options) {
1082
- return (0, exports.ProjectApiFp)(this.configuration).projectResolveInvitation(invitationToken, options).then((request) => request(this.axios, this.basePath));
1083
- }
1084
- /**
1085
- *
1086
- * @summary Creates and sends a project invitation to a specified email.
1087
- * @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
1088
- * @param {*} [options] Override http request option.
1089
- * @throws {RequiredError}
1090
- * @memberof ProjectApi
1091
- */
1092
- projectSendInvitation(sendInvitationObject, options) {
1093
- return (0, exports.ProjectApiFp)(this.configuration).projectSendInvitation(sendInvitationObject, options).then((request) => request(this.axios, this.basePath));
1094
- }
1095
- /**
1096
- *
1097
- * @summary Creates a project
1098
- * @param {ProjectObject} projectObject A Project Object
1099
- * @param {*} [options] Override http request option.
1100
- * @throws {RequiredError}
1101
- * @memberof ProjectApi
1102
- */
1103
- projectStore(projectObject, options) {
1104
- return (0, exports.ProjectApiFp)(this.configuration).projectStore(projectObject, options).then((request) => request(this.axios, this.basePath));
1105
- }
1106
- /**
1107
- *
1108
- * @summary Updates a project
1109
- * @param {string} id Id of the project
1110
- * @param {ProjectObject} projectObject A Project Object
1111
- * @param {*} [options] Override http request option.
1112
- * @throws {RequiredError}
1113
- * @memberof ProjectApi
1114
- */
1115
- projectUpdate(id, projectObject, options) {
1116
- return (0, exports.ProjectApiFp)(this.configuration).projectUpdate(id, projectObject, options).then((request) => request(this.axios, this.basePath));
1117
- }
1118
- }
1119
- exports.ProjectApi = ProjectApi;
1120
- /**
1121
- * ProjectQuotaApi - axios parameter creator
1122
- * @export
1123
- */
1124
- const ProjectQuotaApiAxiosParamCreator = function (configuration) {
1125
- return {
1126
- /**
1127
- *
1128
- * @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
1129
- * @param {string} id Id of the project
1130
- * @param {string} resourceTypeId Id of the resource type
1131
- * @param {*} [options] Override http request option.
1132
- * @throws {RequiredError}
1133
- */
1134
- projectQuotaQuota: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1135
- // verify required parameter 'id' is not null or undefined
1136
- (0, common_1.assertParamExists)('projectQuotaQuota', 'id', id);
1137
- // verify required parameter 'resourceTypeId' is not null or undefined
1138
- (0, common_1.assertParamExists)('projectQuotaQuota', 'resourceTypeId', resourceTypeId);
1139
- const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
1140
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1141
- .replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
1142
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1143
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1144
- let baseOptions;
1145
- if (configuration) {
1146
- baseOptions = configuration.baseOptions;
1147
- }
1148
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1149
- const localVarHeaderParameter = {};
1150
- const localVarQueryParameter = {};
1151
- // authentication JWT token required
1152
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1153
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1154
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1155
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1156
- return {
1157
- url: (0, common_1.toPathString)(localVarUrlObj),
1158
- options: localVarRequestOptions,
1159
- };
1160
- }),
1161
- /**
1162
- *
1163
- * @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
1164
- * @param {string} id Id of the project
1165
- * @param {*} [options] Override http request option.
1166
- * @throws {RequiredError}
1167
- */
1168
- projectQuotaQuotas: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1169
- // verify required parameter 'id' is not null or undefined
1170
- (0, common_1.assertParamExists)('projectQuotaQuotas', 'id', id);
1171
- const localVarPath = `/ProjectQuota/{id}/-/all`
1172
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1173
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1174
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1175
- let baseOptions;
1176
- if (configuration) {
1177
- baseOptions = configuration.baseOptions;
1178
- }
1179
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1180
- const localVarHeaderParameter = {};
1181
- const localVarQueryParameter = {};
1182
- // authentication JWT token required
1183
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1184
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1185
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1186
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1187
- return {
1188
- url: (0, common_1.toPathString)(localVarUrlObj),
1189
- options: localVarRequestOptions,
1190
- };
1191
- }),
1192
- /**
1193
- *
1194
- * @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
1195
- * @param {string} id Id of the project
1196
- * @param {string} resourceTypeId Id of the resource type
1197
- * @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
1198
- * @param {*} [options] Override http request option.
1199
- * @throws {RequiredError}
1200
- */
1201
- projectQuotaUpdateQuota: (id, resourceTypeId, updateProjectQuotaObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
1202
- // verify required parameter 'id' is not null or undefined
1203
- (0, common_1.assertParamExists)('projectQuotaUpdateQuota', 'id', id);
1204
- // verify required parameter 'resourceTypeId' is not null or undefined
1205
- (0, common_1.assertParamExists)('projectQuotaUpdateQuota', 'resourceTypeId', resourceTypeId);
1206
- // verify required parameter 'updateProjectQuotaObject' is not null or undefined
1207
- (0, common_1.assertParamExists)('projectQuotaUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject);
1208
- const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
1209
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1210
- .replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
1211
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1212
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1213
- let baseOptions;
1214
- if (configuration) {
1215
- baseOptions = configuration.baseOptions;
1216
- }
1217
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1218
- const localVarHeaderParameter = {};
1219
- const localVarQueryParameter = {};
1220
- // authentication JWT token required
1221
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1222
- localVarHeaderParameter['Content-Type'] = 'application/json';
1223
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1224
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1225
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1226
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProjectQuotaObject, localVarRequestOptions, configuration);
1227
- return {
1228
- url: (0, common_1.toPathString)(localVarUrlObj),
1229
- options: localVarRequestOptions,
1230
- };
1231
- }),
1232
- };
1233
- };
1234
- exports.ProjectQuotaApiAxiosParamCreator = ProjectQuotaApiAxiosParamCreator;
1235
- /**
1236
- * ProjectQuotaApi - functional programming interface
1237
- * @export
1238
- */
1239
- const ProjectQuotaApiFp = function (configuration) {
1240
- const localVarAxiosParamCreator = (0, exports.ProjectQuotaApiAxiosParamCreator)(configuration);
1241
- return {
1242
- /**
1243
- *
1244
- * @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
1245
- * @param {string} id Id of the project
1246
- * @param {string} resourceTypeId Id of the resource type
1247
- * @param {*} [options] Override http request option.
1248
- * @throws {RequiredError}
1249
- */
1250
- projectQuotaQuota(id, resourceTypeId, options) {
1251
- return __awaiter(this, void 0, void 0, function* () {
1252
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaQuota(id, resourceTypeId, options);
1253
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1254
- });
1255
- },
1256
- /**
1257
- *
1258
- * @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
1259
- * @param {string} id Id of the project
1260
- * @param {*} [options] Override http request option.
1261
- * @throws {RequiredError}
1262
- */
1263
- projectQuotaQuotas(id, options) {
1264
- return __awaiter(this, void 0, void 0, function* () {
1265
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaQuotas(id, options);
1266
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1267
- });
1268
- },
1269
- /**
1270
- *
1271
- * @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
1272
- * @param {string} id Id of the project
1273
- * @param {string} resourceTypeId Id of the resource type
1274
- * @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
1275
- * @param {*} [options] Override http request option.
1276
- * @throws {RequiredError}
1277
- */
1278
- projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
1279
- return __awaiter(this, void 0, void 0, function* () {
1280
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
1281
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1282
- });
1283
- },
1284
- };
1285
- };
1286
- exports.ProjectQuotaApiFp = ProjectQuotaApiFp;
1287
- /**
1288
- * ProjectQuotaApi - factory interface
1289
- * @export
1290
- */
1291
- const ProjectQuotaApiFactory = function (configuration, basePath, axios) {
1292
- const localVarFp = (0, exports.ProjectQuotaApiFp)(configuration);
1293
- return {
1294
- /**
1295
- *
1296
- * @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
1297
- * @param {string} id Id of the project
1298
- * @param {string} resourceTypeId Id of the resource type
1299
- * @param {*} [options] Override http request option.
1300
- * @throws {RequiredError}
1301
- */
1302
- projectQuotaQuota(id, resourceTypeId, options) {
1303
- return localVarFp.projectQuotaQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
1304
- },
1305
- /**
1306
- *
1307
- * @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
1308
- * @param {string} id Id of the project
1309
- * @param {*} [options] Override http request option.
1310
- * @throws {RequiredError}
1311
- */
1312
- projectQuotaQuotas(id, options) {
1313
- return localVarFp.projectQuotaQuotas(id, options).then((request) => request(axios, basePath));
1314
- },
1315
- /**
1316
- *
1317
- * @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
1318
- * @param {string} id Id of the project
1319
- * @param {string} resourceTypeId Id of the resource type
1320
- * @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
1321
- * @param {*} [options] Override http request option.
1322
- * @throws {RequiredError}
1323
- */
1324
- projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
1325
- return localVarFp.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
1326
- },
1327
- };
1328
- };
1329
- exports.ProjectQuotaApiFactory = ProjectQuotaApiFactory;
1330
- /**
1331
- * ProjectQuotaApi - object-oriented interface
1332
- * @export
1333
- * @class ProjectQuotaApi
1334
- * @extends {BaseAPI}
1335
- */
1336
- class ProjectQuotaApi extends base_1.BaseAPI {
1337
- /**
1338
- *
1339
- * @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
1340
- * @param {string} id Id of the project
1341
- * @param {string} resourceTypeId Id of the resource type
1342
- * @param {*} [options] Override http request option.
1343
- * @throws {RequiredError}
1344
- * @memberof ProjectQuotaApi
1345
- */
1346
- projectQuotaQuota(id, resourceTypeId, options) {
1347
- return (0, exports.ProjectQuotaApiFp)(this.configuration).projectQuotaQuota(id, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
1348
- }
1349
- /**
1350
- *
1351
- * @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
1352
- * @param {string} id Id of the project
1353
- * @param {*} [options] Override http request option.
1354
- * @throws {RequiredError}
1355
- * @memberof ProjectQuotaApi
1356
- */
1357
- projectQuotaQuotas(id, options) {
1358
- return (0, exports.ProjectQuotaApiFp)(this.configuration).projectQuotaQuotas(id, options).then((request) => request(this.axios, this.basePath));
1359
- }
1360
- /**
1361
- *
1362
- * @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
1363
- * @param {string} id Id of the project
1364
- * @param {string} resourceTypeId Id of the resource type
1365
- * @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
1366
- * @param {*} [options] Override http request option.
1367
- * @throws {RequiredError}
1368
- * @memberof ProjectQuotaApi
1369
- */
1370
- projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
1371
- return (0, exports.ProjectQuotaApiFp)(this.configuration).projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(this.axios, this.basePath));
1372
- }
1373
- }
1374
- exports.ProjectQuotaApi = ProjectQuotaApi;
1375
- /**
1376
- * ProjectRoleApi - axios parameter creator
1377
- * @export
1378
- */
1379
- const ProjectRoleApiAxiosParamCreator = function (configuration) {
1380
- return {
1381
- /**
1382
- *
1383
- * @summary Deletes a user from a project
1384
- * @param {string} projectId Id of the project
1385
- * @param {string} userId Id of the user
1386
- * @param {string} roleId Id of the role
1387
- * @param {*} [options] Override http request option.
1388
- * @throws {RequiredError}
1389
- */
1390
- projectRoleDelete: (projectId, userId, roleId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1391
- // verify required parameter 'projectId' is not null or undefined
1392
- (0, common_1.assertParamExists)('projectRoleDelete', 'projectId', projectId);
1393
- // verify required parameter 'userId' is not null or undefined
1394
- (0, common_1.assertParamExists)('projectRoleDelete', 'userId', userId);
1395
- // verify required parameter 'roleId' is not null or undefined
1396
- (0, common_1.assertParamExists)('projectRoleDelete', 'roleId', roleId);
1397
- const localVarPath = `/ProjectRole/project/{projectId}/user/{userId}/role/{roleId}`
1398
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1399
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
1400
- .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
1401
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1402
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1403
- let baseOptions;
1404
- if (configuration) {
1405
- baseOptions = configuration.baseOptions;
1406
- }
1407
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1408
- const localVarHeaderParameter = {};
1409
- const localVarQueryParameter = {};
1410
- // authentication JWT token required
1411
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1412
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1413
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1414
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1415
- return {
1416
- url: (0, common_1.toPathString)(localVarUrlObj),
1417
- options: localVarRequestOptions,
1418
- };
1419
- }),
1420
- /**
1421
- *
1422
- * @summary Deletes the current user from a project
1423
- * @param {string} projectId Id of the project
1424
- * @param {*} [options] Override http request option.
1425
- * @throws {RequiredError}
1426
- */
1427
- projectRoleDelete2: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1428
- // verify required parameter 'projectId' is not null or undefined
1429
- (0, common_1.assertParamExists)('projectRoleDelete2', 'projectId', projectId);
1430
- const localVarPath = `/ProjectRole/project/{projectId}/user`
1431
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
1432
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1433
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1434
- let baseOptions;
1435
- if (configuration) {
1436
- baseOptions = configuration.baseOptions;
1437
- }
1438
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1439
- const localVarHeaderParameter = {};
1440
- const localVarQueryParameter = {};
1441
- // authentication JWT token required
1442
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1443
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1444
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1445
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1446
- return {
1447
- url: (0, common_1.toPathString)(localVarUrlObj),
1448
- options: localVarRequestOptions,
1449
- };
1450
- }),
1451
- /**
1452
- *
1453
- * @summary Gets all roles for the current user and a project.
1454
- * @param {string} projectId Id of the project
1455
- * @param {*} [options] Override http request option.
1456
- * @throws {RequiredError}
1457
- */
1458
- projectRoleGet: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1459
- // verify required parameter 'projectId' is not null or undefined
1460
- (0, common_1.assertParamExists)('projectRoleGet', 'projectId', projectId);
1461
- const localVarPath = `/ProjectRole/project/{projectId}`
1462
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
1463
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1464
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1465
- let baseOptions;
1466
- if (configuration) {
1467
- baseOptions = configuration.baseOptions;
1468
- }
1469
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1470
- const localVarHeaderParameter = {};
1471
- const localVarQueryParameter = {};
1472
- // authentication JWT token required
1473
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1474
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1475
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1476
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1477
- return {
1478
- url: (0, common_1.toPathString)(localVarUrlObj),
1479
- options: localVarRequestOptions,
1480
- };
1481
- }),
1482
- /**
1483
- *
1484
- * @summary Lists all users in a project.
1485
- * @param {string} projectId Id of the project
1486
- * @param {*} [options] Override http request option.
1487
- * @throws {RequiredError}
1488
- */
1489
- projectRoleIndex: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1490
- // verify required parameter 'projectId' is not null or undefined
1491
- (0, common_1.assertParamExists)('projectRoleIndex', 'projectId', projectId);
1492
- const localVarPath = `/ProjectRole/{projectId}`
1493
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
1494
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1495
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1496
- let baseOptions;
1497
- if (configuration) {
1498
- baseOptions = configuration.baseOptions;
1499
- }
1500
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1501
- const localVarHeaderParameter = {};
1502
- const localVarQueryParameter = {};
1503
- // authentication JWT token required
1504
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1505
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1506
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1507
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1508
- return {
1509
- url: (0, common_1.toPathString)(localVarUrlObj),
1510
- options: localVarRequestOptions,
1511
- };
1512
- }),
1513
- /**
1514
- *
1515
- * @summary Sets a role for the current user in a project
1516
- * @param {ProjectRoleObject} projectRoleObject
1517
- * @param {*} [options] Override http request option.
1518
- * @throws {RequiredError}
1519
- */
1520
- projectRoleSet: (projectRoleObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
1521
- // verify required parameter 'projectRoleObject' is not null or undefined
1522
- (0, common_1.assertParamExists)('projectRoleSet', 'projectRoleObject', projectRoleObject);
1523
- const localVarPath = `/ProjectRole`;
1524
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1525
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1526
- let baseOptions;
1527
- if (configuration) {
1528
- baseOptions = configuration.baseOptions;
1529
- }
1530
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1531
- const localVarHeaderParameter = {};
1532
- const localVarQueryParameter = {};
1533
- // authentication JWT token required
1534
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1535
- localVarHeaderParameter['Content-Type'] = 'application/json';
1536
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1537
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1538
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1539
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(projectRoleObject, localVarRequestOptions, configuration);
1540
- return {
1541
- url: (0, common_1.toPathString)(localVarUrlObj),
1542
- options: localVarRequestOptions,
1543
- };
1544
- }),
1545
- };
1546
- };
1547
- exports.ProjectRoleApiAxiosParamCreator = ProjectRoleApiAxiosParamCreator;
1548
- /**
1549
- * ProjectRoleApi - functional programming interface
1550
- * @export
1551
- */
1552
- const ProjectRoleApiFp = function (configuration) {
1553
- const localVarAxiosParamCreator = (0, exports.ProjectRoleApiAxiosParamCreator)(configuration);
1554
- return {
1555
- /**
1556
- *
1557
- * @summary Deletes a user from a project
1558
- * @param {string} projectId Id of the project
1559
- * @param {string} userId Id of the user
1560
- * @param {string} roleId Id of the role
1561
- * @param {*} [options] Override http request option.
1562
- * @throws {RequiredError}
1563
- */
1564
- projectRoleDelete(projectId, userId, roleId, options) {
1565
- return __awaiter(this, void 0, void 0, function* () {
1566
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleDelete(projectId, userId, roleId, options);
1567
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1568
- });
1569
- },
1570
- /**
1571
- *
1572
- * @summary Deletes the current user from a project
1573
- * @param {string} projectId Id of the project
1574
- * @param {*} [options] Override http request option.
1575
- * @throws {RequiredError}
1576
- */
1577
- projectRoleDelete2(projectId, options) {
1578
- return __awaiter(this, void 0, void 0, function* () {
1579
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleDelete2(projectId, options);
1580
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1581
- });
1582
- },
1583
- /**
1584
- *
1585
- * @summary Gets all roles for the current user and a project.
1586
- * @param {string} projectId Id of the project
1587
- * @param {*} [options] Override http request option.
1588
- * @throws {RequiredError}
1589
- */
1590
- projectRoleGet(projectId, options) {
1591
- return __awaiter(this, void 0, void 0, function* () {
1592
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleGet(projectId, options);
1593
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1594
- });
1595
- },
1596
- /**
1597
- *
1598
- * @summary Lists all users in a project.
1599
- * @param {string} projectId Id of the project
1600
- * @param {*} [options] Override http request option.
1601
- * @throws {RequiredError}
1602
- */
1603
- projectRoleIndex(projectId, options) {
1604
- return __awaiter(this, void 0, void 0, function* () {
1605
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleIndex(projectId, options);
1606
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1607
- });
1608
- },
1609
- /**
1610
- *
1611
- * @summary Sets a role for the current user in a project
1612
- * @param {ProjectRoleObject} projectRoleObject
1613
- * @param {*} [options] Override http request option.
1614
- * @throws {RequiredError}
1615
- */
1616
- projectRoleSet(projectRoleObject, options) {
1617
- return __awaiter(this, void 0, void 0, function* () {
1618
- const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleSet(projectRoleObject, options);
1619
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1620
- });
1621
- },
1622
- };
1623
- };
1624
- exports.ProjectRoleApiFp = ProjectRoleApiFp;
1625
- /**
1626
- * ProjectRoleApi - factory interface
1627
- * @export
1628
- */
1629
- const ProjectRoleApiFactory = function (configuration, basePath, axios) {
1630
- const localVarFp = (0, exports.ProjectRoleApiFp)(configuration);
1631
- return {
1632
- /**
1633
- *
1634
- * @summary Deletes a user from a project
1635
- * @param {string} projectId Id of the project
1636
- * @param {string} userId Id of the user
1637
- * @param {string} roleId Id of the role
1638
- * @param {*} [options] Override http request option.
1639
- * @throws {RequiredError}
1640
- */
1641
- projectRoleDelete(projectId, userId, roleId, options) {
1642
- return localVarFp.projectRoleDelete(projectId, userId, roleId, options).then((request) => request(axios, basePath));
1643
- },
1644
- /**
1645
- *
1646
- * @summary Deletes the current user from a project
1647
- * @param {string} projectId Id of the project
1648
- * @param {*} [options] Override http request option.
1649
- * @throws {RequiredError}
1650
- */
1651
- projectRoleDelete2(projectId, options) {
1652
- return localVarFp.projectRoleDelete2(projectId, options).then((request) => request(axios, basePath));
1653
- },
1654
- /**
1655
- *
1656
- * @summary Gets all roles for the current user and a project.
1657
- * @param {string} projectId Id of the project
1658
- * @param {*} [options] Override http request option.
1659
- * @throws {RequiredError}
1660
- */
1661
- projectRoleGet(projectId, options) {
1662
- return localVarFp.projectRoleGet(projectId, options).then((request) => request(axios, basePath));
1663
- },
1664
- /**
1665
- *
1666
- * @summary Lists all users in a project.
1667
- * @param {string} projectId Id of the project
1668
- * @param {*} [options] Override http request option.
1669
- * @throws {RequiredError}
1670
- */
1671
- projectRoleIndex(projectId, options) {
1672
- return localVarFp.projectRoleIndex(projectId, options).then((request) => request(axios, basePath));
1673
- },
1674
- /**
1675
- *
1676
- * @summary Sets a role for the current user in a project
1677
- * @param {ProjectRoleObject} projectRoleObject
1678
- * @param {*} [options] Override http request option.
1679
- * @throws {RequiredError}
1680
- */
1681
- projectRoleSet(projectRoleObject, options) {
1682
- return localVarFp.projectRoleSet(projectRoleObject, options).then((request) => request(axios, basePath));
1683
- },
1684
- };
1685
- };
1686
- exports.ProjectRoleApiFactory = ProjectRoleApiFactory;
1687
- /**
1688
- * ProjectRoleApi - object-oriented interface
1689
- * @export
1690
- * @class ProjectRoleApi
1691
- * @extends {BaseAPI}
1692
- */
1693
- class ProjectRoleApi extends base_1.BaseAPI {
1694
- /**
1695
- *
1696
- * @summary Deletes a user from a project
1697
- * @param {string} projectId Id of the project
1698
- * @param {string} userId Id of the user
1699
- * @param {string} roleId Id of the role
1700
- * @param {*} [options] Override http request option.
1701
- * @throws {RequiredError}
1702
- * @memberof ProjectRoleApi
1703
- */
1704
- projectRoleDelete(projectId, userId, roleId, options) {
1705
- return (0, exports.ProjectRoleApiFp)(this.configuration).projectRoleDelete(projectId, userId, roleId, options).then((request) => request(this.axios, this.basePath));
1706
- }
1707
- /**
1708
- *
1709
- * @summary Deletes the current user from a project
1710
- * @param {string} projectId Id of the project
1711
- * @param {*} [options] Override http request option.
1712
- * @throws {RequiredError}
1713
- * @memberof ProjectRoleApi
1714
- */
1715
- projectRoleDelete2(projectId, options) {
1716
- return (0, exports.ProjectRoleApiFp)(this.configuration).projectRoleDelete2(projectId, options).then((request) => request(this.axios, this.basePath));
1717
- }
1718
- /**
1719
- *
1720
- * @summary Gets all roles for the current user and a project.
1721
- * @param {string} projectId Id of the project
1722
- * @param {*} [options] Override http request option.
1723
- * @throws {RequiredError}
1724
- * @memberof ProjectRoleApi
1725
- */
1726
- projectRoleGet(projectId, options) {
1727
- return (0, exports.ProjectRoleApiFp)(this.configuration).projectRoleGet(projectId, options).then((request) => request(this.axios, this.basePath));
1728
- }
1729
- /**
1730
- *
1731
- * @summary Lists all users in a project.
1732
- * @param {string} projectId Id of the project
1733
- * @param {*} [options] Override http request option.
1734
- * @throws {RequiredError}
1735
- * @memberof ProjectRoleApi
1736
- */
1737
- projectRoleIndex(projectId, options) {
1738
- return (0, exports.ProjectRoleApiFp)(this.configuration).projectRoleIndex(projectId, options).then((request) => request(this.axios, this.basePath));
1739
- }
1740
- /**
1741
- *
1742
- * @summary Sets a role for the current user in a project
1743
- * @param {ProjectRoleObject} projectRoleObject
1744
- * @param {*} [options] Override http request option.
1745
- * @throws {RequiredError}
1746
- * @memberof ProjectRoleApi
1747
- */
1748
- projectRoleSet(projectRoleObject, options) {
1749
- return (0, exports.ProjectRoleApiFp)(this.configuration).projectRoleSet(projectRoleObject, options).then((request) => request(this.axios, this.basePath));
1750
- }
1751
- }
1752
- exports.ProjectRoleApi = ProjectRoleApi;
1753
- /**
1754
- * RoleApi - axios parameter creator
1755
- * @export
1756
- */
1757
- const RoleApiAxiosParamCreator = function (configuration) {
1758
- return {
1759
- /**
1760
- *
1761
- * @summary Returns all available roles
1762
- * @param {*} [options] Override http request option.
1763
- * @throws {RequiredError}
1764
- */
1765
- roleIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1766
- const localVarPath = `/Role`;
1767
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1768
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1769
- let baseOptions;
1770
- if (configuration) {
1771
- baseOptions = configuration.baseOptions;
1772
- }
1773
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1774
- const localVarHeaderParameter = {};
1775
- const localVarQueryParameter = {};
1776
- // authentication JWT token required
1777
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1778
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1779
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1780
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1781
- return {
1782
- url: (0, common_1.toPathString)(localVarUrlObj),
1783
- options: localVarRequestOptions,
1784
- };
1785
- }),
1786
- };
1787
- };
1788
- exports.RoleApiAxiosParamCreator = RoleApiAxiosParamCreator;
1789
- /**
1790
- * RoleApi - functional programming interface
1791
- * @export
1792
- */
1793
- const RoleApiFp = function (configuration) {
1794
- const localVarAxiosParamCreator = (0, exports.RoleApiAxiosParamCreator)(configuration);
1795
- return {
1796
- /**
1797
- *
1798
- * @summary Returns all available roles
1799
- * @param {*} [options] Override http request option.
1800
- * @throws {RequiredError}
1801
- */
1802
- roleIndex(options) {
1803
- return __awaiter(this, void 0, void 0, function* () {
1804
- const localVarAxiosArgs = yield localVarAxiosParamCreator.roleIndex(options);
1805
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1806
- });
1807
- },
1808
- };
1809
- };
1810
- exports.RoleApiFp = RoleApiFp;
1811
- /**
1812
- * RoleApi - factory interface
1813
- * @export
1814
- */
1815
- const RoleApiFactory = function (configuration, basePath, axios) {
1816
- const localVarFp = (0, exports.RoleApiFp)(configuration);
1817
- return {
1818
- /**
1819
- *
1820
- * @summary Returns all available roles
1821
- * @param {*} [options] Override http request option.
1822
- * @throws {RequiredError}
1823
- */
1824
- roleIndex(options) {
1825
- return localVarFp.roleIndex(options).then((request) => request(axios, basePath));
1826
- },
1827
- };
1828
- };
1829
- exports.RoleApiFactory = RoleApiFactory;
1830
- /**
1831
- * RoleApi - object-oriented interface
1832
- * @export
1833
- * @class RoleApi
1834
- * @extends {BaseAPI}
1835
- */
1836
- class RoleApi extends base_1.BaseAPI {
1837
- /**
1838
- *
1839
- * @summary Returns all available roles
1840
- * @param {*} [options] Override http request option.
1841
- * @throws {RequiredError}
1842
- * @memberof RoleApi
1843
- */
1844
- roleIndex(options) {
1845
- return (0, exports.RoleApiFp)(this.configuration).roleIndex(options).then((request) => request(this.axios, this.basePath));
1846
- }
1847
- }
1848
- exports.RoleApi = RoleApi;
1849
- /**
1850
- * SubProjectApi - axios parameter creator
1851
- * @export
1852
- */
1853
- const SubProjectApiAxiosParamCreator = function (configuration) {
1854
- return {
1855
- /**
1856
- *
1857
- * @summary This method gets the Id of the parent
1858
- * @param {string} parentId Id of parent
1859
- * @param {*} [options] Override http request option.
1860
- * @throws {RequiredError}
1861
- */
1862
- subProjectGet: (parentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1863
- // verify required parameter 'parentId' is not null or undefined
1864
- (0, common_1.assertParamExists)('subProjectGet', 'parentId', parentId);
1865
- const localVarPath = `/SubProject/{parentId}`
1866
- .replace(`{${"parentId"}}`, encodeURIComponent(String(parentId)));
1867
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1868
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1869
- let baseOptions;
1870
- if (configuration) {
1871
- baseOptions = configuration.baseOptions;
1872
- }
1873
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1874
- const localVarHeaderParameter = {};
1875
- const localVarQueryParameter = {};
1876
- // authentication JWT token required
1877
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1878
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1879
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1880
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1881
- return {
1882
- url: (0, common_1.toPathString)(localVarUrlObj),
1883
- options: localVarRequestOptions,
1884
- };
1885
- }),
1886
- /**
1887
- *
1888
- * @summary This method retrieves the accessible Parent
1889
- * @param {string} childId Id of the child
1890
- * @param {*} [options] Override http request option.
1891
- * @deprecated
1892
- * @throws {RequiredError}
1893
- */
1894
- subProjectGetAccessibleParent: (childId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1895
- // verify required parameter 'childId' is not null or undefined
1896
- (0, common_1.assertParamExists)('subProjectGetAccessibleParent', 'childId', childId);
1897
- const localVarPath = `/SubProject/{childId}/accessibleParent`
1898
- .replace(`{${"childId"}}`, encodeURIComponent(String(childId)));
1899
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1900
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1901
- let baseOptions;
1902
- if (configuration) {
1903
- baseOptions = configuration.baseOptions;
1904
- }
1905
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1906
- const localVarHeaderParameter = {};
1907
- const localVarQueryParameter = {};
1908
- // authentication JWT token required
1909
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1910
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1911
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1912
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1913
- return {
1914
- url: (0, common_1.toPathString)(localVarUrlObj),
1915
- options: localVarRequestOptions,
1916
- };
1917
- }),
1918
- };
1919
- };
1920
- exports.SubProjectApiAxiosParamCreator = SubProjectApiAxiosParamCreator;
1921
- /**
1922
- * SubProjectApi - functional programming interface
1923
- * @export
1924
- */
1925
- const SubProjectApiFp = function (configuration) {
1926
- const localVarAxiosParamCreator = (0, exports.SubProjectApiAxiosParamCreator)(configuration);
1927
- return {
1928
- /**
1929
- *
1930
- * @summary This method gets the Id of the parent
1931
- * @param {string} parentId Id of parent
1932
- * @param {*} [options] Override http request option.
1933
- * @throws {RequiredError}
1934
- */
1935
- subProjectGet(parentId, options) {
1936
- return __awaiter(this, void 0, void 0, function* () {
1937
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subProjectGet(parentId, options);
1938
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1939
- });
1940
- },
1941
- /**
1942
- *
1943
- * @summary This method retrieves the accessible Parent
1944
- * @param {string} childId Id of the child
1945
- * @param {*} [options] Override http request option.
1946
- * @deprecated
1947
- * @throws {RequiredError}
1948
- */
1949
- subProjectGetAccessibleParent(childId, options) {
1950
- return __awaiter(this, void 0, void 0, function* () {
1951
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subProjectGetAccessibleParent(childId, options);
1952
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1953
- });
1954
- },
1955
- };
1956
- };
1957
- exports.SubProjectApiFp = SubProjectApiFp;
1958
- /**
1959
- * SubProjectApi - factory interface
1960
- * @export
1961
- */
1962
- const SubProjectApiFactory = function (configuration, basePath, axios) {
1963
- const localVarFp = (0, exports.SubProjectApiFp)(configuration);
1964
- return {
1965
- /**
1966
- *
1967
- * @summary This method gets the Id of the parent
1968
- * @param {string} parentId Id of parent
1969
- * @param {*} [options] Override http request option.
1970
- * @throws {RequiredError}
1971
- */
1972
- subProjectGet(parentId, options) {
1973
- return localVarFp.subProjectGet(parentId, options).then((request) => request(axios, basePath));
1974
- },
1975
- /**
1976
- *
1977
- * @summary This method retrieves the accessible Parent
1978
- * @param {string} childId Id of the child
1979
- * @param {*} [options] Override http request option.
1980
- * @deprecated
1981
- * @throws {RequiredError}
1982
- */
1983
- subProjectGetAccessibleParent(childId, options) {
1984
- return localVarFp.subProjectGetAccessibleParent(childId, options).then((request) => request(axios, basePath));
1985
- },
1986
- };
1987
- };
1988
- exports.SubProjectApiFactory = SubProjectApiFactory;
1989
- /**
1990
- * SubProjectApi - object-oriented interface
1991
- * @export
1992
- * @class SubProjectApi
1993
- * @extends {BaseAPI}
1994
- */
1995
- class SubProjectApi extends base_1.BaseAPI {
1996
- /**
1997
- *
1998
- * @summary This method gets the Id of the parent
1999
- * @param {string} parentId Id of parent
2000
- * @param {*} [options] Override http request option.
2001
- * @throws {RequiredError}
2002
- * @memberof SubProjectApi
2003
- */
2004
- subProjectGet(parentId, options) {
2005
- return (0, exports.SubProjectApiFp)(this.configuration).subProjectGet(parentId, options).then((request) => request(this.axios, this.basePath));
2006
- }
2007
- /**
2008
- *
2009
- * @summary This method retrieves the accessible Parent
2010
- * @param {string} childId Id of the child
2011
- * @param {*} [options] Override http request option.
2012
- * @deprecated
2013
- * @throws {RequiredError}
2014
- * @memberof SubProjectApi
2015
- */
2016
- subProjectGetAccessibleParent(childId, options) {
2017
- return (0, exports.SubProjectApiFp)(this.configuration).subProjectGetAccessibleParent(childId, options).then((request) => request(this.axios, this.basePath));
2018
- }
2019
- }
2020
- exports.SubProjectApi = SubProjectApi;
2021
- /**
2022
- * VisibilityApi - axios parameter creator
2023
- * @export
2024
- */
2025
- const VisibilityApiAxiosParamCreator = function (configuration) {
2026
- return {
2027
- /**
2028
- *
2029
- * @summary Returns all available visibilities
2030
- * @param {*} [options] Override http request option.
2031
- * @throws {RequiredError}
2032
- */
2033
- visibilityIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2034
- const localVarPath = `/Visibility`;
2035
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2036
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2037
- let baseOptions;
2038
- if (configuration) {
2039
- baseOptions = configuration.baseOptions;
2040
- }
2041
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2042
- const localVarHeaderParameter = {};
2043
- const localVarQueryParameter = {};
2044
- // authentication JWT token required
2045
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2046
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
2047
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2048
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2049
- return {
2050
- url: (0, common_1.toPathString)(localVarUrlObj),
2051
- options: localVarRequestOptions,
2052
- };
2053
- }),
2054
- };
2055
- };
2056
- exports.VisibilityApiAxiosParamCreator = VisibilityApiAxiosParamCreator;
2057
- /**
2058
- * VisibilityApi - functional programming interface
2059
- * @export
2060
- */
2061
- const VisibilityApiFp = function (configuration) {
2062
- const localVarAxiosParamCreator = (0, exports.VisibilityApiAxiosParamCreator)(configuration);
2063
- return {
2064
- /**
2065
- *
2066
- * @summary Returns all available visibilities
2067
- * @param {*} [options] Override http request option.
2068
- * @throws {RequiredError}
2069
- */
2070
- visibilityIndex(options) {
2071
- return __awaiter(this, void 0, void 0, function* () {
2072
- const localVarAxiosArgs = yield localVarAxiosParamCreator.visibilityIndex(options);
2073
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2074
- });
2075
- },
2076
- };
2077
- };
2078
- exports.VisibilityApiFp = VisibilityApiFp;
2079
- /**
2080
- * VisibilityApi - factory interface
2081
- * @export
2082
- */
2083
- const VisibilityApiFactory = function (configuration, basePath, axios) {
2084
- const localVarFp = (0, exports.VisibilityApiFp)(configuration);
2085
- return {
2086
- /**
2087
- *
2088
- * @summary Returns all available visibilities
2089
- * @param {*} [options] Override http request option.
2090
- * @throws {RequiredError}
2091
- */
2092
- visibilityIndex(options) {
2093
- return localVarFp.visibilityIndex(options).then((request) => request(axios, basePath));
2094
- },
2095
- };
2096
- };
2097
- exports.VisibilityApiFactory = VisibilityApiFactory;
2098
- /**
2099
- * VisibilityApi - object-oriented interface
2100
- * @export
2101
- * @class VisibilityApi
2102
- * @extends {BaseAPI}
2103
- */
2104
- class VisibilityApi extends base_1.BaseAPI {
2105
- /**
2106
- *
2107
- * @summary Returns all available visibilities
2108
- * @param {*} [options] Override http request option.
2109
- * @throws {RequiredError}
2110
- * @memberof VisibilityApi
2111
- */
2112
- visibilityIndex(options) {
2113
- return (0, exports.VisibilityApiFp)(this.configuration).visibilityIndex(options).then((request) => request(this.axios, this.basePath));
2114
- }
2115
- }
2116
- exports.VisibilityApi = VisibilityApi;
2117
- //# sourceMappingURL=api.js.map