@coscine/api-client 2.12.0 → 3.1.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 (170) hide show
  1. package/README.md +5 -1
  2. package/dist/index.js +4603 -4213
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.umd.js +4611 -4220
  5. package/dist/index.umd.js.map +1 -1
  6. package/dist/lib/Coscine.Api/api.js +7682 -0
  7. package/dist/lib/Coscine.Api/api.js.map +1 -0
  8. package/dist/lib/{Coscine.Api.Notices → Coscine.Api}/base.js +5 -5
  9. package/dist/lib/Coscine.Api/base.js.map +1 -0
  10. package/dist/lib/{Coscine.Api.Blob → Coscine.Api}/common.js +4 -4
  11. package/dist/lib/Coscine.Api/common.js.map +1 -0
  12. package/dist/lib/{Coscine.Api.Blob → 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 +7872 -0
  21. package/dist/types/{Coscine.Api.Organization → Coscine.Api}/base.d.ts +4 -4
  22. package/dist/types/{Coscine.Api.Notices → Coscine.Api}/common.d.ts +4 -4
  23. package/dist/types/{Coscine.Api.Blob → 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 +114 -93
  26. package/dist/types/index.d.ts +229 -187
  27. package/package.json +3 -3
  28. package/dist/lib/Coscine.Api.Blob/api.js +0 -301
  29. package/dist/lib/Coscine.Api.Blob/api.js.map +0 -1
  30. package/dist/lib/Coscine.Api.Blob/base.js +0 -65
  31. package/dist/lib/Coscine.Api.Blob/base.js.map +0 -1
  32. package/dist/lib/Coscine.Api.Blob/common.js.map +0 -1
  33. package/dist/lib/Coscine.Api.Blob/configuration.js.map +0 -1
  34. package/dist/lib/Coscine.Api.Blob/index.js +0 -32
  35. package/dist/lib/Coscine.Api.Blob/index.js.map +0 -1
  36. package/dist/lib/Coscine.Api.Metadata/api.js +0 -450
  37. package/dist/lib/Coscine.Api.Metadata/api.js.map +0 -1
  38. package/dist/lib/Coscine.Api.Metadata/base.js +0 -65
  39. package/dist/lib/Coscine.Api.Metadata/base.js.map +0 -1
  40. package/dist/lib/Coscine.Api.Metadata/common.js +0 -153
  41. package/dist/lib/Coscine.Api.Metadata/common.js.map +0 -1
  42. package/dist/lib/Coscine.Api.Metadata/configuration.js +0 -43
  43. package/dist/lib/Coscine.Api.Metadata/configuration.js.map +0 -1
  44. package/dist/lib/Coscine.Api.Metadata/index.js +0 -32
  45. package/dist/lib/Coscine.Api.Metadata/index.js.map +0 -1
  46. package/dist/lib/Coscine.Api.Notices/api.js +0 -207
  47. package/dist/lib/Coscine.Api.Notices/api.js.map +0 -1
  48. package/dist/lib/Coscine.Api.Notices/base.js.map +0 -1
  49. package/dist/lib/Coscine.Api.Notices/common.js +0 -153
  50. package/dist/lib/Coscine.Api.Notices/common.js.map +0 -1
  51. package/dist/lib/Coscine.Api.Notices/configuration.js +0 -43
  52. package/dist/lib/Coscine.Api.Notices/configuration.js.map +0 -1
  53. package/dist/lib/Coscine.Api.Notices/index.js +0 -32
  54. package/dist/lib/Coscine.Api.Notices/index.js.map +0 -1
  55. package/dist/lib/Coscine.Api.Organization/api.js +0 -398
  56. package/dist/lib/Coscine.Api.Organization/api.js.map +0 -1
  57. package/dist/lib/Coscine.Api.Organization/base.js +0 -65
  58. package/dist/lib/Coscine.Api.Organization/base.js.map +0 -1
  59. package/dist/lib/Coscine.Api.Organization/common.js +0 -153
  60. package/dist/lib/Coscine.Api.Organization/common.js.map +0 -1
  61. package/dist/lib/Coscine.Api.Organization/configuration.js +0 -43
  62. package/dist/lib/Coscine.Api.Organization/configuration.js.map +0 -1
  63. package/dist/lib/Coscine.Api.Organization/index.js.map +0 -1
  64. package/dist/lib/Coscine.Api.Pid/api.js +0 -204
  65. package/dist/lib/Coscine.Api.Pid/api.js.map +0 -1
  66. package/dist/lib/Coscine.Api.Pid/base.js +0 -65
  67. package/dist/lib/Coscine.Api.Pid/base.js.map +0 -1
  68. package/dist/lib/Coscine.Api.Pid/common.js +0 -153
  69. package/dist/lib/Coscine.Api.Pid/common.js.map +0 -1
  70. package/dist/lib/Coscine.Api.Pid/configuration.js +0 -43
  71. package/dist/lib/Coscine.Api.Pid/configuration.js.map +0 -1
  72. package/dist/lib/Coscine.Api.Pid/index.js +0 -32
  73. package/dist/lib/Coscine.Api.Pid/index.js.map +0 -1
  74. package/dist/lib/Coscine.Api.Project/api.js +0 -2117
  75. package/dist/lib/Coscine.Api.Project/api.js.map +0 -1
  76. package/dist/lib/Coscine.Api.Project/base.js +0 -65
  77. package/dist/lib/Coscine.Api.Project/base.js.map +0 -1
  78. package/dist/lib/Coscine.Api.Project/common.js +0 -153
  79. package/dist/lib/Coscine.Api.Project/common.js.map +0 -1
  80. package/dist/lib/Coscine.Api.Project/configuration.js +0 -43
  81. package/dist/lib/Coscine.Api.Project/configuration.js.map +0 -1
  82. package/dist/lib/Coscine.Api.Project/index.js +0 -32
  83. package/dist/lib/Coscine.Api.Project/index.js.map +0 -1
  84. package/dist/lib/Coscine.Api.Resources/api.js +0 -1307
  85. package/dist/lib/Coscine.Api.Resources/api.js.map +0 -1
  86. package/dist/lib/Coscine.Api.Resources/base.js +0 -65
  87. package/dist/lib/Coscine.Api.Resources/base.js.map +0 -1
  88. package/dist/lib/Coscine.Api.Resources/common.js +0 -153
  89. package/dist/lib/Coscine.Api.Resources/common.js.map +0 -1
  90. package/dist/lib/Coscine.Api.Resources/configuration.js +0 -43
  91. package/dist/lib/Coscine.Api.Resources/configuration.js.map +0 -1
  92. package/dist/lib/Coscine.Api.Resources/index.js +0 -32
  93. package/dist/lib/Coscine.Api.Resources/index.js.map +0 -1
  94. package/dist/lib/Coscine.Api.Token/api.js +0 -385
  95. package/dist/lib/Coscine.Api.Token/api.js.map +0 -1
  96. package/dist/lib/Coscine.Api.Token/base.js +0 -65
  97. package/dist/lib/Coscine.Api.Token/base.js.map +0 -1
  98. package/dist/lib/Coscine.Api.Token/common.js +0 -153
  99. package/dist/lib/Coscine.Api.Token/common.js.map +0 -1
  100. package/dist/lib/Coscine.Api.Token/configuration.js +0 -43
  101. package/dist/lib/Coscine.Api.Token/configuration.js.map +0 -1
  102. package/dist/lib/Coscine.Api.Token/index.js +0 -32
  103. package/dist/lib/Coscine.Api.Token/index.js.map +0 -1
  104. package/dist/lib/Coscine.Api.Tree/api.js +0 -231
  105. package/dist/lib/Coscine.Api.Tree/api.js.map +0 -1
  106. package/dist/lib/Coscine.Api.Tree/base.js +0 -65
  107. package/dist/lib/Coscine.Api.Tree/base.js.map +0 -1
  108. package/dist/lib/Coscine.Api.Tree/common.js +0 -153
  109. package/dist/lib/Coscine.Api.Tree/common.js.map +0 -1
  110. package/dist/lib/Coscine.Api.Tree/configuration.js +0 -43
  111. package/dist/lib/Coscine.Api.Tree/configuration.js.map +0 -1
  112. package/dist/lib/Coscine.Api.Tree/index.js +0 -32
  113. package/dist/lib/Coscine.Api.Tree/index.js.map +0 -1
  114. package/dist/lib/Coscine.Api.User/api.js +0 -965
  115. package/dist/lib/Coscine.Api.User/api.js.map +0 -1
  116. package/dist/lib/Coscine.Api.User/base.js +0 -65
  117. package/dist/lib/Coscine.Api.User/base.js.map +0 -1
  118. package/dist/lib/Coscine.Api.User/common.js +0 -153
  119. package/dist/lib/Coscine.Api.User/common.js.map +0 -1
  120. package/dist/lib/Coscine.Api.User/configuration.js +0 -43
  121. package/dist/lib/Coscine.Api.User/configuration.js.map +0 -1
  122. package/dist/lib/Coscine.Api.User/index.js +0 -32
  123. package/dist/lib/Coscine.Api.User/index.js.map +0 -1
  124. package/dist/types/Coscine.Api.Blob/api.d.ts +0 -155
  125. package/dist/types/Coscine.Api.Blob/base.d.ts +0 -55
  126. package/dist/types/Coscine.Api.Blob/common.d.ts +0 -65
  127. package/dist/types/Coscine.Api.Blob/index.d.ts +0 -13
  128. package/dist/types/Coscine.Api.Metadata/api.d.ts +0 -299
  129. package/dist/types/Coscine.Api.Metadata/base.d.ts +0 -55
  130. package/dist/types/Coscine.Api.Metadata/common.d.ts +0 -65
  131. package/dist/types/Coscine.Api.Metadata/configuration.d.ts +0 -83
  132. package/dist/types/Coscine.Api.Metadata/index.d.ts +0 -13
  133. package/dist/types/Coscine.Api.Notices/api.d.ts +0 -153
  134. package/dist/types/Coscine.Api.Notices/base.d.ts +0 -55
  135. package/dist/types/Coscine.Api.Notices/configuration.d.ts +0 -83
  136. package/dist/types/Coscine.Api.Notices/index.d.ts +0 -13
  137. package/dist/types/Coscine.Api.Organization/api.d.ts +0 -256
  138. package/dist/types/Coscine.Api.Organization/common.d.ts +0 -65
  139. package/dist/types/Coscine.Api.Organization/configuration.d.ts +0 -83
  140. package/dist/types/Coscine.Api.Organization/index.d.ts +0 -13
  141. package/dist/types/Coscine.Api.Pid/api.d.ts +0 -149
  142. package/dist/types/Coscine.Api.Pid/base.d.ts +0 -55
  143. package/dist/types/Coscine.Api.Pid/common.d.ts +0 -65
  144. package/dist/types/Coscine.Api.Pid/configuration.d.ts +0 -83
  145. package/dist/types/Coscine.Api.Pid/index.d.ts +0 -13
  146. package/dist/types/Coscine.Api.Project/api.d.ts +0 -1876
  147. package/dist/types/Coscine.Api.Project/base.d.ts +0 -55
  148. package/dist/types/Coscine.Api.Project/common.d.ts +0 -65
  149. package/dist/types/Coscine.Api.Project/configuration.d.ts +0 -83
  150. package/dist/types/Coscine.Api.Project/index.d.ts +0 -13
  151. package/dist/types/Coscine.Api.Resources/api.d.ts +0 -1733
  152. package/dist/types/Coscine.Api.Resources/base.d.ts +0 -55
  153. package/dist/types/Coscine.Api.Resources/common.d.ts +0 -65
  154. package/dist/types/Coscine.Api.Resources/configuration.d.ts +0 -83
  155. package/dist/types/Coscine.Api.Resources/index.d.ts +0 -13
  156. package/dist/types/Coscine.Api.Token/api.d.ts +0 -316
  157. package/dist/types/Coscine.Api.Token/base.d.ts +0 -55
  158. package/dist/types/Coscine.Api.Token/common.d.ts +0 -65
  159. package/dist/types/Coscine.Api.Token/configuration.d.ts +0 -83
  160. package/dist/types/Coscine.Api.Token/index.d.ts +0 -13
  161. package/dist/types/Coscine.Api.Tree/api.d.ts +0 -122
  162. package/dist/types/Coscine.Api.Tree/base.d.ts +0 -55
  163. package/dist/types/Coscine.Api.Tree/common.d.ts +0 -65
  164. package/dist/types/Coscine.Api.Tree/configuration.d.ts +0 -83
  165. package/dist/types/Coscine.Api.Tree/index.d.ts +0 -13
  166. package/dist/types/Coscine.Api.User/api.d.ts +0 -745
  167. package/dist/types/Coscine.Api.User/base.d.ts +0 -55
  168. package/dist/types/Coscine.Api.User/common.d.ts +0 -65
  169. package/dist/types/Coscine.Api.User/configuration.d.ts +0 -83
  170. package/dist/types/Coscine.Api.User/index.d.ts +0 -13
@@ -1,1307 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Coscine.Api.Resources
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: 3.5.0
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.ResourceTypeApi = exports.ResourceTypeApiFactory = exports.ResourceTypeApiFp = exports.ResourceTypeApiAxiosParamCreator = exports.ResourceQuotaApi = exports.ResourceQuotaApiFactory = exports.ResourceQuotaApiFp = exports.ResourceQuotaApiAxiosParamCreator = exports.ResourceApi = exports.ResourceApiFactory = exports.ResourceApiFp = exports.ResourceApiAxiosParamCreator = exports.GitLabApi = exports.GitLabApiFactory = exports.GitLabApiFp = exports.GitLabApiAxiosParamCreator = exports.ResourceTypeStatus = exports.QuotaUnit = exports.ProjectVisibilityLevel = 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 ProjectVisibilityLevel;
41
- (function (ProjectVisibilityLevel) {
42
- ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_0"] = 0] = "NUMBER_0";
43
- ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_1"] = 1] = "NUMBER_1";
44
- ProjectVisibilityLevel[ProjectVisibilityLevel["NUMBER_2"] = 2] = "NUMBER_2";
45
- })(ProjectVisibilityLevel = exports.ProjectVisibilityLevel || (exports.ProjectVisibilityLevel = {}));
46
- /**
47
- *
48
- * @export
49
- * @enum {string}
50
- */
51
- var QuotaUnit;
52
- (function (QuotaUnit) {
53
- QuotaUnit["Byte"] = "https://qudt.org/vocab/unit/BYTE";
54
- QuotaUnit["KibiByte"] = "https://qudt.org/vocab/unit/KibiBYTE";
55
- QuotaUnit["MebiByte"] = "https://qudt.org/vocab/unit/MebiBYTE";
56
- QuotaUnit["GibiByte"] = "https://qudt.org/vocab/unit/GibiBYTE";
57
- QuotaUnit["TebiByte"] = "https://qudt.org/vocab/unit/TebiBYTE";
58
- QuotaUnit["PebiByte"] = "https://qudt.org/vocab/unit/PebiBYTE";
59
- })(QuotaUnit = exports.QuotaUnit || (exports.QuotaUnit = {}));
60
- /**
61
- *
62
- * @export
63
- * @enum {string}
64
- */
65
- var ResourceTypeStatus;
66
- (function (ResourceTypeStatus) {
67
- ResourceTypeStatus["Hidden"] = "hidden";
68
- ResourceTypeStatus["Active"] = "active";
69
- })(ResourceTypeStatus = exports.ResourceTypeStatus || (exports.ResourceTypeStatus = {}));
70
- /**
71
- * GitLabApi - axios parameter creator
72
- * @export
73
- */
74
- const GitLabApiAxiosParamCreator = function (configuration) {
75
- return {
76
- /**
77
- *
78
- * @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
79
- * @param {string} [domain] Domain/Host of the GitLab Provider
80
- * @param {string} [accessToken] GitLab Project or Group Access Token
81
- * @param {*} [options] Override http request option.
82
- * @throws {RequiredError}
83
- */
84
- gitLabGetAllProjects: (domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
85
- const localVarPath = `/GitLab/projects`;
86
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
- let baseOptions;
89
- if (configuration) {
90
- baseOptions = configuration.baseOptions;
91
- }
92
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
93
- const localVarHeaderParameter = {};
94
- const localVarQueryParameter = {};
95
- // authentication JWT token required
96
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
97
- if (domain !== undefined) {
98
- localVarQueryParameter['Domain'] = domain;
99
- }
100
- if (accessToken !== undefined) {
101
- localVarQueryParameter['AccessToken'] = accessToken;
102
- }
103
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
104
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
106
- return {
107
- url: (0, common_1.toPathString)(localVarUrlObj),
108
- options: localVarRequestOptions,
109
- };
110
- }),
111
- /**
112
- *
113
- * @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
114
- * @param {number} projectId GitLab Project Identifier
115
- * @param {string} [domain] Domain/Host of the GitLab Provider
116
- * @param {string} [accessToken] GitLab Project or Group Access Token
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- gitLabGetBranchesForProject: (projectId, domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
121
- // verify required parameter 'projectId' is not null or undefined
122
- (0, common_1.assertParamExists)('gitLabGetBranchesForProject', 'projectId', projectId);
123
- const localVarPath = `/GitLab/branches/{projectId}`
124
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
125
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
- let baseOptions;
128
- if (configuration) {
129
- baseOptions = configuration.baseOptions;
130
- }
131
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
132
- const localVarHeaderParameter = {};
133
- const localVarQueryParameter = {};
134
- // authentication JWT token required
135
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
136
- if (domain !== undefined) {
137
- localVarQueryParameter['Domain'] = domain;
138
- }
139
- if (accessToken !== undefined) {
140
- localVarQueryParameter['AccessToken'] = accessToken;
141
- }
142
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
143
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
144
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
145
- return {
146
- url: (0, common_1.toPathString)(localVarUrlObj),
147
- options: localVarRequestOptions,
148
- };
149
- }),
150
- /**
151
- *
152
- * @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
153
- * @param {number} projectId GitLab Project Identifier
154
- * @param {string} [domain] Domain/Host of the GitLab Provider
155
- * @param {string} [accessToken] GitLab Project or Group Access Token
156
- * @param {*} [options] Override http request option.
157
- * @throws {RequiredError}
158
- */
159
- gitLabGetProject: (projectId, domain, accessToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
160
- // verify required parameter 'projectId' is not null or undefined
161
- (0, common_1.assertParamExists)('gitLabGetProject', 'projectId', projectId);
162
- const localVarPath = `/GitLab/projects/{projectId}`
163
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
164
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
- let baseOptions;
167
- if (configuration) {
168
- baseOptions = configuration.baseOptions;
169
- }
170
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
171
- const localVarHeaderParameter = {};
172
- const localVarQueryParameter = {};
173
- // authentication JWT token required
174
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
175
- if (domain !== undefined) {
176
- localVarQueryParameter['Domain'] = domain;
177
- }
178
- if (accessToken !== undefined) {
179
- localVarQueryParameter['AccessToken'] = accessToken;
180
- }
181
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
182
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- return {
185
- url: (0, common_1.toPathString)(localVarUrlObj),
186
- options: localVarRequestOptions,
187
- };
188
- }),
189
- };
190
- };
191
- exports.GitLabApiAxiosParamCreator = GitLabApiAxiosParamCreator;
192
- /**
193
- * GitLabApi - functional programming interface
194
- * @export
195
- */
196
- const GitLabApiFp = function (configuration) {
197
- const localVarAxiosParamCreator = (0, exports.GitLabApiAxiosParamCreator)(configuration);
198
- return {
199
- /**
200
- *
201
- * @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
202
- * @param {string} [domain] Domain/Host of the GitLab Provider
203
- * @param {string} [accessToken] GitLab Project or Group Access Token
204
- * @param {*} [options] Override http request option.
205
- * @throws {RequiredError}
206
- */
207
- gitLabGetAllProjects(domain, accessToken, options) {
208
- return __awaiter(this, void 0, void 0, function* () {
209
- const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetAllProjects(domain, accessToken, options);
210
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
211
- });
212
- },
213
- /**
214
- *
215
- * @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
216
- * @param {number} projectId GitLab Project Identifier
217
- * @param {string} [domain] Domain/Host of the GitLab Provider
218
- * @param {string} [accessToken] GitLab Project or Group Access Token
219
- * @param {*} [options] Override http request option.
220
- * @throws {RequiredError}
221
- */
222
- gitLabGetBranchesForProject(projectId, domain, accessToken, options) {
223
- return __awaiter(this, void 0, void 0, function* () {
224
- const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetBranchesForProject(projectId, domain, accessToken, options);
225
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
226
- });
227
- },
228
- /**
229
- *
230
- * @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
231
- * @param {number} projectId GitLab Project Identifier
232
- * @param {string} [domain] Domain/Host of the GitLab Provider
233
- * @param {string} [accessToken] GitLab Project or Group Access Token
234
- * @param {*} [options] Override http request option.
235
- * @throws {RequiredError}
236
- */
237
- gitLabGetProject(projectId, domain, accessToken, options) {
238
- return __awaiter(this, void 0, void 0, function* () {
239
- const localVarAxiosArgs = yield localVarAxiosParamCreator.gitLabGetProject(projectId, domain, accessToken, options);
240
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
241
- });
242
- },
243
- };
244
- };
245
- exports.GitLabApiFp = GitLabApiFp;
246
- /**
247
- * GitLabApi - factory interface
248
- * @export
249
- */
250
- const GitLabApiFactory = function (configuration, basePath, axios) {
251
- const localVarFp = (0, exports.GitLabApiFp)(configuration);
252
- return {
253
- /**
254
- *
255
- * @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
256
- * @param {string} [domain] Domain/Host of the GitLab Provider
257
- * @param {string} [accessToken] GitLab Project or Group Access Token
258
- * @param {*} [options] Override http request option.
259
- * @throws {RequiredError}
260
- */
261
- gitLabGetAllProjects(domain, accessToken, options) {
262
- return localVarFp.gitLabGetAllProjects(domain, accessToken, options).then((request) => request(axios, basePath));
263
- },
264
- /**
265
- *
266
- * @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
267
- * @param {number} projectId GitLab Project Identifier
268
- * @param {string} [domain] Domain/Host of the GitLab Provider
269
- * @param {string} [accessToken] GitLab Project or Group Access Token
270
- * @param {*} [options] Override http request option.
271
- * @throws {RequiredError}
272
- */
273
- gitLabGetBranchesForProject(projectId, domain, accessToken, options) {
274
- return localVarFp.gitLabGetBranchesForProject(projectId, domain, accessToken, options).then((request) => request(axios, basePath));
275
- },
276
- /**
277
- *
278
- * @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
279
- * @param {number} projectId GitLab Project Identifier
280
- * @param {string} [domain] Domain/Host of the GitLab Provider
281
- * @param {string} [accessToken] GitLab Project or Group Access Token
282
- * @param {*} [options] Override http request option.
283
- * @throws {RequiredError}
284
- */
285
- gitLabGetProject(projectId, domain, accessToken, options) {
286
- return localVarFp.gitLabGetProject(projectId, domain, accessToken, options).then((request) => request(axios, basePath));
287
- },
288
- };
289
- };
290
- exports.GitLabApiFactory = GitLabApiFactory;
291
- /**
292
- * GitLabApi - object-oriented interface
293
- * @export
294
- * @class GitLabApi
295
- * @extends {BaseAPI}
296
- */
297
- class GitLabApi extends base_1.BaseAPI {
298
- /**
299
- *
300
- * @summary Returns all GitLab projects, that the user is a member of, based on the provided credentials.
301
- * @param {string} [domain] Domain/Host of the GitLab Provider
302
- * @param {string} [accessToken] GitLab Project or Group Access Token
303
- * @param {*} [options] Override http request option.
304
- * @throws {RequiredError}
305
- * @memberof GitLabApi
306
- */
307
- gitLabGetAllProjects(domain, accessToken, options) {
308
- return (0, exports.GitLabApiFp)(this.configuration).gitLabGetAllProjects(domain, accessToken, options).then((request) => request(this.axios, this.basePath));
309
- }
310
- /**
311
- *
312
- * @summary Returns all GitLab branches of a project, that the user is a member of, based on the provided credentials.
313
- * @param {number} projectId GitLab Project Identifier
314
- * @param {string} [domain] Domain/Host of the GitLab Provider
315
- * @param {string} [accessToken] GitLab Project or Group Access Token
316
- * @param {*} [options] Override http request option.
317
- * @throws {RequiredError}
318
- * @memberof GitLabApi
319
- */
320
- gitLabGetBranchesForProject(projectId, domain, accessToken, options) {
321
- return (0, exports.GitLabApiFp)(this.configuration).gitLabGetBranchesForProject(projectId, domain, accessToken, options).then((request) => request(this.axios, this.basePath));
322
- }
323
- /**
324
- *
325
- * @summary Returns a single GitLab project, that the user is a member of, based on the provided credentials.
326
- * @param {number} projectId GitLab Project Identifier
327
- * @param {string} [domain] Domain/Host of the GitLab Provider
328
- * @param {string} [accessToken] GitLab Project or Group Access Token
329
- * @param {*} [options] Override http request option.
330
- * @throws {RequiredError}
331
- * @memberof GitLabApi
332
- */
333
- gitLabGetProject(projectId, domain, accessToken, options) {
334
- return (0, exports.GitLabApiFp)(this.configuration).gitLabGetProject(projectId, domain, accessToken, options).then((request) => request(this.axios, this.basePath));
335
- }
336
- }
337
- exports.GitLabApi = GitLabApi;
338
- /**
339
- * ResourceApi - axios parameter creator
340
- * @export
341
- */
342
- const ResourceApiAxiosParamCreator = function (configuration) {
343
- return {
344
- /**
345
- *
346
- * @summary Deletes a resource.
347
- * @param {string} id A GUID as a string that identifies the resource.
348
- * @param {*} [options] Override http request option.
349
- * @throws {RequiredError}
350
- */
351
- resourceDelete: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
352
- // verify required parameter 'id' is not null or undefined
353
- (0, common_1.assertParamExists)('resourceDelete', 'id', id);
354
- const localVarPath = `/Resource/{id}`
355
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
356
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
357
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
358
- let baseOptions;
359
- if (configuration) {
360
- baseOptions = configuration.baseOptions;
361
- }
362
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
363
- const localVarHeaderParameter = {};
364
- const localVarQueryParameter = {};
365
- // authentication JWT token required
366
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
367
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
368
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
369
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
370
- return {
371
- url: (0, common_1.toPathString)(localVarUrlObj),
372
- options: localVarRequestOptions,
373
- };
374
- }),
375
- /**
376
- *
377
- * @summary Returns the resource with a specified id.
378
- * @param {string} id The resource id.
379
- * @param {*} [options] Override http request option.
380
- * @throws {RequiredError}
381
- */
382
- resourceGet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
383
- // verify required parameter 'id' is not null or undefined
384
- (0, common_1.assertParamExists)('resourceGet', 'id', id);
385
- const localVarPath = `/Resource/{id}`
386
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
387
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
388
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
389
- let baseOptions;
390
- if (configuration) {
391
- baseOptions = configuration.baseOptions;
392
- }
393
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
394
- const localVarHeaderParameter = {};
395
- const localVarQueryParameter = {};
396
- // authentication JWT token required
397
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
398
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
399
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
400
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
401
- return {
402
- url: (0, common_1.toPathString)(localVarUrlObj),
403
- options: localVarRequestOptions,
404
- };
405
- }),
406
- /**
407
- *
408
- * @summary Returns a list of all resources the current user has access to.
409
- * @param {*} [options] Override http request option.
410
- * @throws {RequiredError}
411
- */
412
- resourceIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
413
- const localVarPath = `/Resource`;
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 Returns whether or not the current user is creator of a specified resource.
436
- * @param {string} id The resource id.
437
- * @param {*} [options] Override http request option.
438
- * @throws {RequiredError}
439
- */
440
- resourceIsUserResourceCreator: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
441
- // verify required parameter 'id' is not null or undefined
442
- (0, common_1.assertParamExists)('resourceIsUserResourceCreator', 'id', id);
443
- const localVarPath = `/Resource/{id}/isCreator`
444
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
445
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
446
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
447
- let baseOptions;
448
- if (configuration) {
449
- baseOptions = configuration.baseOptions;
450
- }
451
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
452
- const localVarHeaderParameter = {};
453
- const localVarQueryParameter = {};
454
- // authentication JWT token required
455
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
456
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
457
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
458
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
459
- return {
460
- url: (0, common_1.toPathString)(localVarUrlObj),
461
- options: localVarRequestOptions,
462
- };
463
- }),
464
- /**
465
- *
466
- * @summary Sets a read only status of a given resource.
467
- * @param {string} id A GUID as a string that identifies the resource.
468
- * @param {boolean} [status] A boolean value that specifies if the resource is archived.
469
- * @param {*} [options] Override http request option.
470
- * @throws {RequiredError}
471
- */
472
- resourceSetResourceReadonly: (id, status, options = {}) => __awaiter(this, void 0, void 0, function* () {
473
- // verify required parameter 'id' is not null or undefined
474
- (0, common_1.assertParamExists)('resourceSetResourceReadonly', 'id', id);
475
- const localVarPath = `/Resource/{id}/setReadonly`
476
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
477
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
478
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
479
- let baseOptions;
480
- if (configuration) {
481
- baseOptions = configuration.baseOptions;
482
- }
483
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
484
- const localVarHeaderParameter = {};
485
- const localVarQueryParameter = {};
486
- // authentication JWT token required
487
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
488
- if (status !== undefined) {
489
- localVarQueryParameter['status'] = status;
490
- }
491
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
492
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
493
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
494
- return {
495
- url: (0, common_1.toPathString)(localVarUrlObj),
496
- options: localVarRequestOptions,
497
- };
498
- }),
499
- /**
500
- *
501
- * @summary Stores the provided resource object in a specified project.
502
- * @param {string} projectId A GUID as a string that identifies the resource.
503
- * @param {ResourceObject} resourceObject Entry representing the user
504
- * @param {*} [options] Override http request option.
505
- * @throws {RequiredError}
506
- */
507
- resourceStoreToProject: (projectId, resourceObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
508
- // verify required parameter 'projectId' is not null or undefined
509
- (0, common_1.assertParamExists)('resourceStoreToProject', 'projectId', projectId);
510
- // verify required parameter 'resourceObject' is not null or undefined
511
- (0, common_1.assertParamExists)('resourceStoreToProject', 'resourceObject', resourceObject);
512
- const localVarPath = `/Resource/project/{projectId}`
513
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
514
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
515
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
516
- let baseOptions;
517
- if (configuration) {
518
- baseOptions = configuration.baseOptions;
519
- }
520
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
521
- const localVarHeaderParameter = {};
522
- const localVarQueryParameter = {};
523
- // authentication JWT token required
524
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
525
- localVarHeaderParameter['Content-Type'] = 'application/json';
526
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
527
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
528
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
529
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resourceObject, localVarRequestOptions, configuration);
530
- return {
531
- url: (0, common_1.toPathString)(localVarUrlObj),
532
- options: localVarRequestOptions,
533
- };
534
- }),
535
- /**
536
- *
537
- * @summary Updates a resource.
538
- * @param {string} id The resource id.
539
- * @param {ResourceObject} resourceObject Entry representing the user
540
- * @param {*} [options] Override http request option.
541
- * @throws {RequiredError}
542
- */
543
- resourceUpdate: (id, resourceObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
544
- // verify required parameter 'id' is not null or undefined
545
- (0, common_1.assertParamExists)('resourceUpdate', 'id', id);
546
- // verify required parameter 'resourceObject' is not null or undefined
547
- (0, common_1.assertParamExists)('resourceUpdate', 'resourceObject', resourceObject);
548
- const localVarPath = `/Resource/{id}`
549
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
550
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
551
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
552
- let baseOptions;
553
- if (configuration) {
554
- baseOptions = configuration.baseOptions;
555
- }
556
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
557
- const localVarHeaderParameter = {};
558
- const localVarQueryParameter = {};
559
- // authentication JWT token required
560
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
561
- localVarHeaderParameter['Content-Type'] = 'application/json';
562
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
563
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
564
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
565
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resourceObject, localVarRequestOptions, configuration);
566
- return {
567
- url: (0, common_1.toPathString)(localVarUrlObj),
568
- options: localVarRequestOptions,
569
- };
570
- }),
571
- };
572
- };
573
- exports.ResourceApiAxiosParamCreator = ResourceApiAxiosParamCreator;
574
- /**
575
- * ResourceApi - functional programming interface
576
- * @export
577
- */
578
- const ResourceApiFp = function (configuration) {
579
- const localVarAxiosParamCreator = (0, exports.ResourceApiAxiosParamCreator)(configuration);
580
- return {
581
- /**
582
- *
583
- * @summary Deletes a resource.
584
- * @param {string} id A GUID as a string that identifies the resource.
585
- * @param {*} [options] Override http request option.
586
- * @throws {RequiredError}
587
- */
588
- resourceDelete(id, options) {
589
- return __awaiter(this, void 0, void 0, function* () {
590
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceDelete(id, options);
591
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
592
- });
593
- },
594
- /**
595
- *
596
- * @summary Returns the resource with a specified id.
597
- * @param {string} id The resource id.
598
- * @param {*} [options] Override http request option.
599
- * @throws {RequiredError}
600
- */
601
- resourceGet(id, options) {
602
- return __awaiter(this, void 0, void 0, function* () {
603
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceGet(id, options);
604
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
605
- });
606
- },
607
- /**
608
- *
609
- * @summary Returns a list of all resources the current user has access to.
610
- * @param {*} [options] Override http request option.
611
- * @throws {RequiredError}
612
- */
613
- resourceIndex(options) {
614
- return __awaiter(this, void 0, void 0, function* () {
615
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceIndex(options);
616
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
617
- });
618
- },
619
- /**
620
- *
621
- * @summary Returns whether or not the current user is creator of a specified resource.
622
- * @param {string} id The resource id.
623
- * @param {*} [options] Override http request option.
624
- * @throws {RequiredError}
625
- */
626
- resourceIsUserResourceCreator(id, options) {
627
- return __awaiter(this, void 0, void 0, function* () {
628
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceIsUserResourceCreator(id, options);
629
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
630
- });
631
- },
632
- /**
633
- *
634
- * @summary Sets a read only status of a given resource.
635
- * @param {string} id A GUID as a string that identifies the resource.
636
- * @param {boolean} [status] A boolean value that specifies if the resource is archived.
637
- * @param {*} [options] Override http request option.
638
- * @throws {RequiredError}
639
- */
640
- resourceSetResourceReadonly(id, status, options) {
641
- return __awaiter(this, void 0, void 0, function* () {
642
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceSetResourceReadonly(id, status, options);
643
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
644
- });
645
- },
646
- /**
647
- *
648
- * @summary Stores the provided resource object in a specified project.
649
- * @param {string} projectId A GUID as a string that identifies the resource.
650
- * @param {ResourceObject} resourceObject Entry representing the user
651
- * @param {*} [options] Override http request option.
652
- * @throws {RequiredError}
653
- */
654
- resourceStoreToProject(projectId, resourceObject, options) {
655
- return __awaiter(this, void 0, void 0, function* () {
656
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceStoreToProject(projectId, resourceObject, options);
657
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
658
- });
659
- },
660
- /**
661
- *
662
- * @summary Updates a resource.
663
- * @param {string} id The resource id.
664
- * @param {ResourceObject} resourceObject Entry representing the user
665
- * @param {*} [options] Override http request option.
666
- * @throws {RequiredError}
667
- */
668
- resourceUpdate(id, resourceObject, options) {
669
- return __awaiter(this, void 0, void 0, function* () {
670
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceUpdate(id, resourceObject, options);
671
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
672
- });
673
- },
674
- };
675
- };
676
- exports.ResourceApiFp = ResourceApiFp;
677
- /**
678
- * ResourceApi - factory interface
679
- * @export
680
- */
681
- const ResourceApiFactory = function (configuration, basePath, axios) {
682
- const localVarFp = (0, exports.ResourceApiFp)(configuration);
683
- return {
684
- /**
685
- *
686
- * @summary Deletes a resource.
687
- * @param {string} id A GUID as a string that identifies the resource.
688
- * @param {*} [options] Override http request option.
689
- * @throws {RequiredError}
690
- */
691
- resourceDelete(id, options) {
692
- return localVarFp.resourceDelete(id, options).then((request) => request(axios, basePath));
693
- },
694
- /**
695
- *
696
- * @summary Returns the resource with a specified id.
697
- * @param {string} id The resource id.
698
- * @param {*} [options] Override http request option.
699
- * @throws {RequiredError}
700
- */
701
- resourceGet(id, options) {
702
- return localVarFp.resourceGet(id, options).then((request) => request(axios, basePath));
703
- },
704
- /**
705
- *
706
- * @summary Returns a list of all resources the current user has access to.
707
- * @param {*} [options] Override http request option.
708
- * @throws {RequiredError}
709
- */
710
- resourceIndex(options) {
711
- return localVarFp.resourceIndex(options).then((request) => request(axios, basePath));
712
- },
713
- /**
714
- *
715
- * @summary Returns whether or not the current user is creator of a specified resource.
716
- * @param {string} id The resource id.
717
- * @param {*} [options] Override http request option.
718
- * @throws {RequiredError}
719
- */
720
- resourceIsUserResourceCreator(id, options) {
721
- return localVarFp.resourceIsUserResourceCreator(id, options).then((request) => request(axios, basePath));
722
- },
723
- /**
724
- *
725
- * @summary Sets a read only status of a given resource.
726
- * @param {string} id A GUID as a string that identifies the resource.
727
- * @param {boolean} [status] A boolean value that specifies if the resource is archived.
728
- * @param {*} [options] Override http request option.
729
- * @throws {RequiredError}
730
- */
731
- resourceSetResourceReadonly(id, status, options) {
732
- return localVarFp.resourceSetResourceReadonly(id, status, options).then((request) => request(axios, basePath));
733
- },
734
- /**
735
- *
736
- * @summary Stores the provided resource object in a specified project.
737
- * @param {string} projectId A GUID as a string that identifies the resource.
738
- * @param {ResourceObject} resourceObject Entry representing the user
739
- * @param {*} [options] Override http request option.
740
- * @throws {RequiredError}
741
- */
742
- resourceStoreToProject(projectId, resourceObject, options) {
743
- return localVarFp.resourceStoreToProject(projectId, resourceObject, options).then((request) => request(axios, basePath));
744
- },
745
- /**
746
- *
747
- * @summary Updates a resource.
748
- * @param {string} id The resource id.
749
- * @param {ResourceObject} resourceObject Entry representing the user
750
- * @param {*} [options] Override http request option.
751
- * @throws {RequiredError}
752
- */
753
- resourceUpdate(id, resourceObject, options) {
754
- return localVarFp.resourceUpdate(id, resourceObject, options).then((request) => request(axios, basePath));
755
- },
756
- };
757
- };
758
- exports.ResourceApiFactory = ResourceApiFactory;
759
- /**
760
- * ResourceApi - object-oriented interface
761
- * @export
762
- * @class ResourceApi
763
- * @extends {BaseAPI}
764
- */
765
- class ResourceApi extends base_1.BaseAPI {
766
- /**
767
- *
768
- * @summary Deletes a resource.
769
- * @param {string} id A GUID as a string that identifies the resource.
770
- * @param {*} [options] Override http request option.
771
- * @throws {RequiredError}
772
- * @memberof ResourceApi
773
- */
774
- resourceDelete(id, options) {
775
- return (0, exports.ResourceApiFp)(this.configuration).resourceDelete(id, options).then((request) => request(this.axios, this.basePath));
776
- }
777
- /**
778
- *
779
- * @summary Returns the resource with a specified id.
780
- * @param {string} id The resource id.
781
- * @param {*} [options] Override http request option.
782
- * @throws {RequiredError}
783
- * @memberof ResourceApi
784
- */
785
- resourceGet(id, options) {
786
- return (0, exports.ResourceApiFp)(this.configuration).resourceGet(id, options).then((request) => request(this.axios, this.basePath));
787
- }
788
- /**
789
- *
790
- * @summary Returns a list of all resources the current user has access to.
791
- * @param {*} [options] Override http request option.
792
- * @throws {RequiredError}
793
- * @memberof ResourceApi
794
- */
795
- resourceIndex(options) {
796
- return (0, exports.ResourceApiFp)(this.configuration).resourceIndex(options).then((request) => request(this.axios, this.basePath));
797
- }
798
- /**
799
- *
800
- * @summary Returns whether or not the current user is creator of a specified resource.
801
- * @param {string} id The resource id.
802
- * @param {*} [options] Override http request option.
803
- * @throws {RequiredError}
804
- * @memberof ResourceApi
805
- */
806
- resourceIsUserResourceCreator(id, options) {
807
- return (0, exports.ResourceApiFp)(this.configuration).resourceIsUserResourceCreator(id, options).then((request) => request(this.axios, this.basePath));
808
- }
809
- /**
810
- *
811
- * @summary Sets a read only status of a given resource.
812
- * @param {string} id A GUID as a string that identifies the resource.
813
- * @param {boolean} [status] A boolean value that specifies if the resource is archived.
814
- * @param {*} [options] Override http request option.
815
- * @throws {RequiredError}
816
- * @memberof ResourceApi
817
- */
818
- resourceSetResourceReadonly(id, status, options) {
819
- return (0, exports.ResourceApiFp)(this.configuration).resourceSetResourceReadonly(id, status, options).then((request) => request(this.axios, this.basePath));
820
- }
821
- /**
822
- *
823
- * @summary Stores the provided resource object in a specified project.
824
- * @param {string} projectId A GUID as a string that identifies the resource.
825
- * @param {ResourceObject} resourceObject Entry representing the user
826
- * @param {*} [options] Override http request option.
827
- * @throws {RequiredError}
828
- * @memberof ResourceApi
829
- */
830
- resourceStoreToProject(projectId, resourceObject, options) {
831
- return (0, exports.ResourceApiFp)(this.configuration).resourceStoreToProject(projectId, resourceObject, options).then((request) => request(this.axios, this.basePath));
832
- }
833
- /**
834
- *
835
- * @summary Updates a resource.
836
- * @param {string} id The resource id.
837
- * @param {ResourceObject} resourceObject Entry representing the user
838
- * @param {*} [options] Override http request option.
839
- * @throws {RequiredError}
840
- * @memberof ResourceApi
841
- */
842
- resourceUpdate(id, resourceObject, options) {
843
- return (0, exports.ResourceApiFp)(this.configuration).resourceUpdate(id, resourceObject, options).then((request) => request(this.axios, this.basePath));
844
- }
845
- }
846
- exports.ResourceApi = ResourceApi;
847
- /**
848
- * ResourceQuotaApi - axios parameter creator
849
- * @export
850
- */
851
- const ResourceQuotaApiAxiosParamCreator = function (configuration) {
852
- return {
853
- /**
854
- *
855
- * @summary Retrieves the resource used and reserved quota for an individual resource.
856
- * @param {string} id Id of the resource.
857
- * @param {*} [options] Override http request option.
858
- * @throws {RequiredError}
859
- */
860
- resourceQuotaGetResourceQuota: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
861
- // verify required parameter 'id' is not null or undefined
862
- (0, common_1.assertParamExists)('resourceQuotaGetResourceQuota', 'id', id);
863
- const localVarPath = `/ResourceQuota/{id}`
864
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
865
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
866
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
867
- let baseOptions;
868
- if (configuration) {
869
- baseOptions = configuration.baseOptions;
870
- }
871
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
872
- const localVarHeaderParameter = {};
873
- const localVarQueryParameter = {};
874
- // authentication JWT token required
875
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
876
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
877
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
878
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
879
- return {
880
- url: (0, common_1.toPathString)(localVarUrlObj),
881
- options: localVarRequestOptions,
882
- };
883
- }),
884
- /**
885
- *
886
- * @summary Updates the resource quota for an individual resource.
887
- * @param {string} id Id of the resource.
888
- * @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
889
- * @param {*} [options] Override http request option.
890
- * @throws {RequiredError}
891
- */
892
- resourceQuotaUpdateResourceQuota: (id, updateResourceObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
893
- // verify required parameter 'id' is not null or undefined
894
- (0, common_1.assertParamExists)('resourceQuotaUpdateResourceQuota', 'id', id);
895
- // verify required parameter 'updateResourceObject' is not null or undefined
896
- (0, common_1.assertParamExists)('resourceQuotaUpdateResourceQuota', 'updateResourceObject', updateResourceObject);
897
- const localVarPath = `/ResourceQuota/{id}`
898
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
899
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
900
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
901
- let baseOptions;
902
- if (configuration) {
903
- baseOptions = configuration.baseOptions;
904
- }
905
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
906
- const localVarHeaderParameter = {};
907
- const localVarQueryParameter = {};
908
- // authentication JWT token required
909
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
910
- localVarHeaderParameter['Content-Type'] = 'application/json';
911
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
912
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
913
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
914
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateResourceObject, localVarRequestOptions, configuration);
915
- return {
916
- url: (0, common_1.toPathString)(localVarUrlObj),
917
- options: localVarRequestOptions,
918
- };
919
- }),
920
- };
921
- };
922
- exports.ResourceQuotaApiAxiosParamCreator = ResourceQuotaApiAxiosParamCreator;
923
- /**
924
- * ResourceQuotaApi - functional programming interface
925
- * @export
926
- */
927
- const ResourceQuotaApiFp = function (configuration) {
928
- const localVarAxiosParamCreator = (0, exports.ResourceQuotaApiAxiosParamCreator)(configuration);
929
- return {
930
- /**
931
- *
932
- * @summary Retrieves the resource used and reserved quota for an individual resource.
933
- * @param {string} id Id of the resource.
934
- * @param {*} [options] Override http request option.
935
- * @throws {RequiredError}
936
- */
937
- resourceQuotaGetResourceQuota(id, options) {
938
- return __awaiter(this, void 0, void 0, function* () {
939
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceQuotaGetResourceQuota(id, options);
940
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
941
- });
942
- },
943
- /**
944
- *
945
- * @summary Updates the resource quota for an individual resource.
946
- * @param {string} id Id of the resource.
947
- * @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
948
- * @param {*} [options] Override http request option.
949
- * @throws {RequiredError}
950
- */
951
- resourceQuotaUpdateResourceQuota(id, updateResourceObject, options) {
952
- return __awaiter(this, void 0, void 0, function* () {
953
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceQuotaUpdateResourceQuota(id, updateResourceObject, options);
954
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
955
- });
956
- },
957
- };
958
- };
959
- exports.ResourceQuotaApiFp = ResourceQuotaApiFp;
960
- /**
961
- * ResourceQuotaApi - factory interface
962
- * @export
963
- */
964
- const ResourceQuotaApiFactory = function (configuration, basePath, axios) {
965
- const localVarFp = (0, exports.ResourceQuotaApiFp)(configuration);
966
- return {
967
- /**
968
- *
969
- * @summary Retrieves the resource used and reserved quota for an individual resource.
970
- * @param {string} id Id of the resource.
971
- * @param {*} [options] Override http request option.
972
- * @throws {RequiredError}
973
- */
974
- resourceQuotaGetResourceQuota(id, options) {
975
- return localVarFp.resourceQuotaGetResourceQuota(id, options).then((request) => request(axios, basePath));
976
- },
977
- /**
978
- *
979
- * @summary Updates the resource quota for an individual resource.
980
- * @param {string} id Id of the resource.
981
- * @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
982
- * @param {*} [options] Override http request option.
983
- * @throws {RequiredError}
984
- */
985
- resourceQuotaUpdateResourceQuota(id, updateResourceObject, options) {
986
- return localVarFp.resourceQuotaUpdateResourceQuota(id, updateResourceObject, options).then((request) => request(axios, basePath));
987
- },
988
- };
989
- };
990
- exports.ResourceQuotaApiFactory = ResourceQuotaApiFactory;
991
- /**
992
- * ResourceQuotaApi - object-oriented interface
993
- * @export
994
- * @class ResourceQuotaApi
995
- * @extends {BaseAPI}
996
- */
997
- class ResourceQuotaApi extends base_1.BaseAPI {
998
- /**
999
- *
1000
- * @summary Retrieves the resource used and reserved quota for an individual resource.
1001
- * @param {string} id Id of the resource.
1002
- * @param {*} [options] Override http request option.
1003
- * @throws {RequiredError}
1004
- * @memberof ResourceQuotaApi
1005
- */
1006
- resourceQuotaGetResourceQuota(id, options) {
1007
- return (0, exports.ResourceQuotaApiFp)(this.configuration).resourceQuotaGetResourceQuota(id, options).then((request) => request(this.axios, this.basePath));
1008
- }
1009
- /**
1010
- *
1011
- * @summary Updates the resource quota for an individual resource.
1012
- * @param {string} id Id of the resource.
1013
- * @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
1014
- * @param {*} [options] Override http request option.
1015
- * @throws {RequiredError}
1016
- * @memberof ResourceQuotaApi
1017
- */
1018
- resourceQuotaUpdateResourceQuota(id, updateResourceObject, options) {
1019
- return (0, exports.ResourceQuotaApiFp)(this.configuration).resourceQuotaUpdateResourceQuota(id, updateResourceObject, options).then((request) => request(this.axios, this.basePath));
1020
- }
1021
- }
1022
- exports.ResourceQuotaApi = ResourceQuotaApi;
1023
- /**
1024
- * ResourceTypeApi - axios parameter creator
1025
- * @export
1026
- */
1027
- const ResourceTypeApiAxiosParamCreator = function (configuration) {
1028
- return {
1029
- /**
1030
- *
1031
- * @summary Returns all enabled resource types.
1032
- * @param {*} [options] Override http request option.
1033
- * @throws {RequiredError}
1034
- */
1035
- resourceTypeGetEnabledResourceTypes: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1036
- const localVarPath = `/ResourceType/types/-/enabled`;
1037
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1038
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1039
- let baseOptions;
1040
- if (configuration) {
1041
- baseOptions = configuration.baseOptions;
1042
- }
1043
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1044
- const localVarHeaderParameter = {};
1045
- const localVarQueryParameter = {};
1046
- // authentication JWT token required
1047
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1048
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1049
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1050
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1051
- return {
1052
- url: (0, common_1.toPathString)(localVarUrlObj),
1053
- options: localVarRequestOptions,
1054
- };
1055
- }),
1056
- /**
1057
- *
1058
- * @summary Returns all enabled resource types according to user\'s affiliation and allocated quota in the project.
1059
- * @param {string} id Id of the project
1060
- * @param {*} [options] Override http request option.
1061
- * @throws {RequiredError}
1062
- */
1063
- resourceTypeGetEnabledResourceTypesAll: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1064
- // verify required parameter 'id' is not null or undefined
1065
- (0, common_1.assertParamExists)('resourceTypeGetEnabledResourceTypesAll', 'id', id);
1066
- const localVarPath = `/ResourceType/types/{id}/-/enabled`
1067
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1068
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1069
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1070
- let baseOptions;
1071
- if (configuration) {
1072
- baseOptions = configuration.baseOptions;
1073
- }
1074
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1075
- const localVarHeaderParameter = {};
1076
- const localVarQueryParameter = {};
1077
- // authentication JWT token required
1078
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1079
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1080
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1081
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1082
- return {
1083
- url: (0, common_1.toPathString)(localVarUrlObj),
1084
- options: localVarRequestOptions,
1085
- };
1086
- }),
1087
- /**
1088
- *
1089
- * @summary Returns all fields of the specified resource type.
1090
- * @param {string} id A GUID as a string that identifies the resource.
1091
- * @param {*} [options] Override http request option.
1092
- * @throws {RequiredError}
1093
- */
1094
- resourceTypeGetResourceType: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1095
- // verify required parameter 'id' is not null or undefined
1096
- (0, common_1.assertParamExists)('resourceTypeGetResourceType', 'id', id);
1097
- const localVarPath = `/ResourceType/types/{id}`
1098
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1099
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1100
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1101
- let baseOptions;
1102
- if (configuration) {
1103
- baseOptions = configuration.baseOptions;
1104
- }
1105
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1106
- const localVarHeaderParameter = {};
1107
- const localVarQueryParameter = {};
1108
- // authentication JWT token required
1109
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1110
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1111
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1112
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1113
- return {
1114
- url: (0, common_1.toPathString)(localVarUrlObj),
1115
- options: localVarRequestOptions,
1116
- };
1117
- }),
1118
- /**
1119
- *
1120
- * @summary Returns all resource types. Both hidden and active, regardless of user affiliation or quota.
1121
- * @param {*} [options] Override http request option.
1122
- * @throws {RequiredError}
1123
- */
1124
- resourceTypeGetResourceTypes: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1125
- const localVarPath = `/ResourceType/types`;
1126
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1127
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1128
- let baseOptions;
1129
- if (configuration) {
1130
- baseOptions = configuration.baseOptions;
1131
- }
1132
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1133
- const localVarHeaderParameter = {};
1134
- const localVarQueryParameter = {};
1135
- // authentication JWT token required
1136
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1137
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1138
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1139
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1140
- return {
1141
- url: (0, common_1.toPathString)(localVarUrlObj),
1142
- options: localVarRequestOptions,
1143
- };
1144
- }),
1145
- };
1146
- };
1147
- exports.ResourceTypeApiAxiosParamCreator = ResourceTypeApiAxiosParamCreator;
1148
- /**
1149
- * ResourceTypeApi - functional programming interface
1150
- * @export
1151
- */
1152
- const ResourceTypeApiFp = function (configuration) {
1153
- const localVarAxiosParamCreator = (0, exports.ResourceTypeApiAxiosParamCreator)(configuration);
1154
- return {
1155
- /**
1156
- *
1157
- * @summary Returns all enabled resource types.
1158
- * @param {*} [options] Override http request option.
1159
- * @throws {RequiredError}
1160
- */
1161
- resourceTypeGetEnabledResourceTypes(options) {
1162
- return __awaiter(this, void 0, void 0, function* () {
1163
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceTypeGetEnabledResourceTypes(options);
1164
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1165
- });
1166
- },
1167
- /**
1168
- *
1169
- * @summary Returns all enabled resource types according to user\'s affiliation and allocated quota in the project.
1170
- * @param {string} id Id of the project
1171
- * @param {*} [options] Override http request option.
1172
- * @throws {RequiredError}
1173
- */
1174
- resourceTypeGetEnabledResourceTypesAll(id, options) {
1175
- return __awaiter(this, void 0, void 0, function* () {
1176
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceTypeGetEnabledResourceTypesAll(id, options);
1177
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1178
- });
1179
- },
1180
- /**
1181
- *
1182
- * @summary Returns all fields of the specified resource type.
1183
- * @param {string} id A GUID as a string that identifies the resource.
1184
- * @param {*} [options] Override http request option.
1185
- * @throws {RequiredError}
1186
- */
1187
- resourceTypeGetResourceType(id, options) {
1188
- return __awaiter(this, void 0, void 0, function* () {
1189
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceTypeGetResourceType(id, options);
1190
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1191
- });
1192
- },
1193
- /**
1194
- *
1195
- * @summary Returns all resource types. Both hidden and active, regardless of user affiliation or quota.
1196
- * @param {*} [options] Override http request option.
1197
- * @throws {RequiredError}
1198
- */
1199
- resourceTypeGetResourceTypes(options) {
1200
- return __awaiter(this, void 0, void 0, function* () {
1201
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceTypeGetResourceTypes(options);
1202
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1203
- });
1204
- },
1205
- };
1206
- };
1207
- exports.ResourceTypeApiFp = ResourceTypeApiFp;
1208
- /**
1209
- * ResourceTypeApi - factory interface
1210
- * @export
1211
- */
1212
- const ResourceTypeApiFactory = function (configuration, basePath, axios) {
1213
- const localVarFp = (0, exports.ResourceTypeApiFp)(configuration);
1214
- return {
1215
- /**
1216
- *
1217
- * @summary Returns all enabled resource types.
1218
- * @param {*} [options] Override http request option.
1219
- * @throws {RequiredError}
1220
- */
1221
- resourceTypeGetEnabledResourceTypes(options) {
1222
- return localVarFp.resourceTypeGetEnabledResourceTypes(options).then((request) => request(axios, basePath));
1223
- },
1224
- /**
1225
- *
1226
- * @summary Returns all enabled resource types according to user\'s affiliation and allocated quota in the project.
1227
- * @param {string} id Id of the project
1228
- * @param {*} [options] Override http request option.
1229
- * @throws {RequiredError}
1230
- */
1231
- resourceTypeGetEnabledResourceTypesAll(id, options) {
1232
- return localVarFp.resourceTypeGetEnabledResourceTypesAll(id, options).then((request) => request(axios, basePath));
1233
- },
1234
- /**
1235
- *
1236
- * @summary Returns all fields of the specified resource type.
1237
- * @param {string} id A GUID as a string that identifies the resource.
1238
- * @param {*} [options] Override http request option.
1239
- * @throws {RequiredError}
1240
- */
1241
- resourceTypeGetResourceType(id, options) {
1242
- return localVarFp.resourceTypeGetResourceType(id, options).then((request) => request(axios, basePath));
1243
- },
1244
- /**
1245
- *
1246
- * @summary Returns all resource types. Both hidden and active, regardless of user affiliation or quota.
1247
- * @param {*} [options] Override http request option.
1248
- * @throws {RequiredError}
1249
- */
1250
- resourceTypeGetResourceTypes(options) {
1251
- return localVarFp.resourceTypeGetResourceTypes(options).then((request) => request(axios, basePath));
1252
- },
1253
- };
1254
- };
1255
- exports.ResourceTypeApiFactory = ResourceTypeApiFactory;
1256
- /**
1257
- * ResourceTypeApi - object-oriented interface
1258
- * @export
1259
- * @class ResourceTypeApi
1260
- * @extends {BaseAPI}
1261
- */
1262
- class ResourceTypeApi extends base_1.BaseAPI {
1263
- /**
1264
- *
1265
- * @summary Returns all enabled resource types.
1266
- * @param {*} [options] Override http request option.
1267
- * @throws {RequiredError}
1268
- * @memberof ResourceTypeApi
1269
- */
1270
- resourceTypeGetEnabledResourceTypes(options) {
1271
- return (0, exports.ResourceTypeApiFp)(this.configuration).resourceTypeGetEnabledResourceTypes(options).then((request) => request(this.axios, this.basePath));
1272
- }
1273
- /**
1274
- *
1275
- * @summary Returns all enabled resource types according to user\'s affiliation and allocated quota in the project.
1276
- * @param {string} id Id of the project
1277
- * @param {*} [options] Override http request option.
1278
- * @throws {RequiredError}
1279
- * @memberof ResourceTypeApi
1280
- */
1281
- resourceTypeGetEnabledResourceTypesAll(id, options) {
1282
- return (0, exports.ResourceTypeApiFp)(this.configuration).resourceTypeGetEnabledResourceTypesAll(id, options).then((request) => request(this.axios, this.basePath));
1283
- }
1284
- /**
1285
- *
1286
- * @summary Returns all fields of the specified resource type.
1287
- * @param {string} id A GUID as a string that identifies the resource.
1288
- * @param {*} [options] Override http request option.
1289
- * @throws {RequiredError}
1290
- * @memberof ResourceTypeApi
1291
- */
1292
- resourceTypeGetResourceType(id, options) {
1293
- return (0, exports.ResourceTypeApiFp)(this.configuration).resourceTypeGetResourceType(id, options).then((request) => request(this.axios, this.basePath));
1294
- }
1295
- /**
1296
- *
1297
- * @summary Returns all resource types. Both hidden and active, regardless of user affiliation or quota.
1298
- * @param {*} [options] Override http request option.
1299
- * @throws {RequiredError}
1300
- * @memberof ResourceTypeApi
1301
- */
1302
- resourceTypeGetResourceTypes(options) {
1303
- return (0, exports.ResourceTypeApiFp)(this.configuration).resourceTypeGetResourceTypes(options).then((request) => request(this.axios, this.basePath));
1304
- }
1305
- }
1306
- exports.ResourceTypeApi = ResourceTypeApi;
1307
- //# sourceMappingURL=api.js.map