@coscine/api-client 2.12.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 +5 -1
  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 -1876
  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,965 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Coscine.Api.User
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: 3.2.1
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.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TitleApi = exports.TitleApiFactory = exports.TitleApiFp = exports.TitleApiAxiosParamCreator = exports.TOSApi = exports.TOSApiFactory = exports.TOSApiFp = exports.TOSApiAxiosParamCreator = exports.LanguageApi = exports.LanguageApiFactory = exports.LanguageApiFp = exports.LanguageApiAxiosParamCreator = exports.ContactChangeApi = exports.ContactChangeApiFactory = exports.ContactChangeApiFp = exports.ContactChangeApiAxiosParamCreator = 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
- * ContactChangeApi - axios parameter creator
37
- * @export
38
- */
39
- const ContactChangeApiAxiosParamCreator = function (configuration) {
40
- return {
41
- /**
42
- *
43
- * @summary This method enables the user to request a change of his or her contact email. After entering a valid email, a confirmation email will be sent to the new address and a notification email will be sent to the present address.
44
- * @param {string} body A new email as string set by the user.
45
- * @param {*} [options] Override http request option.
46
- * @throws {RequiredError}
47
- */
48
- contactChangeChangeContactEmail: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
49
- // verify required parameter 'body' is not null or undefined
50
- (0, common_1.assertParamExists)('contactChangeChangeContactEmail', 'body', body);
51
- const localVarPath = `/ContactChange/emailchange`;
52
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
54
- let baseOptions;
55
- if (configuration) {
56
- baseOptions = configuration.baseOptions;
57
- }
58
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
59
- const localVarHeaderParameter = {};
60
- const localVarQueryParameter = {};
61
- // authentication JWT token required
62
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
63
- localVarHeaderParameter['Content-Type'] = 'application/json';
64
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
65
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
67
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
68
- return {
69
- url: (0, common_1.toPathString)(localVarUrlObj),
70
- options: localVarRequestOptions,
71
- };
72
- }),
73
- /**
74
- *
75
- * @summary Calling this method checks whether or not the entered confirmation token (verification) exists inside the database for the current user. If yes, it updates the EmailAddress field for that user with the New Email that has been requested with the ChangeContactEmail method.
76
- * @param {string} verification The Confirmation Token as String for a New Email.
77
- * @param {*} [options] Override http request option.
78
- * @throws {RequiredError}
79
- */
80
- contactChangeConfirmContactEmail: (verification, options = {}) => __awaiter(this, void 0, void 0, function* () {
81
- // verify required parameter 'verification' is not null or undefined
82
- (0, common_1.assertParamExists)('contactChangeConfirmContactEmail', 'verification', verification);
83
- const localVarPath = `/ContactChange/confirm/{verification}`
84
- .replace(`{${"verification"}}`, encodeURIComponent(String(verification)));
85
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
87
- let baseOptions;
88
- if (configuration) {
89
- baseOptions = configuration.baseOptions;
90
- }
91
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
92
- const localVarHeaderParameter = {};
93
- const localVarQueryParameter = {};
94
- // authentication JWT token required
95
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
96
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
97
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
99
- return {
100
- url: (0, common_1.toPathString)(localVarUrlObj),
101
- options: localVarRequestOptions,
102
- };
103
- }),
104
- /**
105
- *
106
- * @summary Calling this method will check if there are pending emails for confirmation for the current user.
107
- * @param {*} [options] Override http request option.
108
- * @throws {RequiredError}
109
- */
110
- contactChangeConfirmationStatus: (options = {}) => __awaiter(this, void 0, void 0, function* () {
111
- const localVarPath = `/ContactChange/status`;
112
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
- let baseOptions;
115
- if (configuration) {
116
- baseOptions = configuration.baseOptions;
117
- }
118
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
119
- const localVarHeaderParameter = {};
120
- const localVarQueryParameter = {};
121
- // authentication JWT token required
122
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
123
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
124
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
126
- return {
127
- url: (0, common_1.toPathString)(localVarUrlObj),
128
- options: localVarRequestOptions,
129
- };
130
- }),
131
- };
132
- };
133
- exports.ContactChangeApiAxiosParamCreator = ContactChangeApiAxiosParamCreator;
134
- /**
135
- * ContactChangeApi - functional programming interface
136
- * @export
137
- */
138
- const ContactChangeApiFp = function (configuration) {
139
- const localVarAxiosParamCreator = (0, exports.ContactChangeApiAxiosParamCreator)(configuration);
140
- return {
141
- /**
142
- *
143
- * @summary This method enables the user to request a change of his or her contact email. After entering a valid email, a confirmation email will be sent to the new address and a notification email will be sent to the present address.
144
- * @param {string} body A new email as string set by the user.
145
- * @param {*} [options] Override http request option.
146
- * @throws {RequiredError}
147
- */
148
- contactChangeChangeContactEmail(body, options) {
149
- return __awaiter(this, void 0, void 0, function* () {
150
- const localVarAxiosArgs = yield localVarAxiosParamCreator.contactChangeChangeContactEmail(body, options);
151
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
152
- });
153
- },
154
- /**
155
- *
156
- * @summary Calling this method checks whether or not the entered confirmation token (verification) exists inside the database for the current user. If yes, it updates the EmailAddress field for that user with the New Email that has been requested with the ChangeContactEmail method.
157
- * @param {string} verification The Confirmation Token as String for a New Email.
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- */
161
- contactChangeConfirmContactEmail(verification, options) {
162
- return __awaiter(this, void 0, void 0, function* () {
163
- const localVarAxiosArgs = yield localVarAxiosParamCreator.contactChangeConfirmContactEmail(verification, options);
164
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
165
- });
166
- },
167
- /**
168
- *
169
- * @summary Calling this method will check if there are pending emails for confirmation for the current user.
170
- * @param {*} [options] Override http request option.
171
- * @throws {RequiredError}
172
- */
173
- contactChangeConfirmationStatus(options) {
174
- return __awaiter(this, void 0, void 0, function* () {
175
- const localVarAxiosArgs = yield localVarAxiosParamCreator.contactChangeConfirmationStatus(options);
176
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
177
- });
178
- },
179
- };
180
- };
181
- exports.ContactChangeApiFp = ContactChangeApiFp;
182
- /**
183
- * ContactChangeApi - factory interface
184
- * @export
185
- */
186
- const ContactChangeApiFactory = function (configuration, basePath, axios) {
187
- const localVarFp = (0, exports.ContactChangeApiFp)(configuration);
188
- return {
189
- /**
190
- *
191
- * @summary This method enables the user to request a change of his or her contact email. After entering a valid email, a confirmation email will be sent to the new address and a notification email will be sent to the present address.
192
- * @param {string} body A new email as string set by the user.
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- contactChangeChangeContactEmail(body, options) {
197
- return localVarFp.contactChangeChangeContactEmail(body, options).then((request) => request(axios, basePath));
198
- },
199
- /**
200
- *
201
- * @summary Calling this method checks whether or not the entered confirmation token (verification) exists inside the database for the current user. If yes, it updates the EmailAddress field for that user with the New Email that has been requested with the ChangeContactEmail method.
202
- * @param {string} verification The Confirmation Token as String for a New Email.
203
- * @param {*} [options] Override http request option.
204
- * @throws {RequiredError}
205
- */
206
- contactChangeConfirmContactEmail(verification, options) {
207
- return localVarFp.contactChangeConfirmContactEmail(verification, options).then((request) => request(axios, basePath));
208
- },
209
- /**
210
- *
211
- * @summary Calling this method will check if there are pending emails for confirmation for the current user.
212
- * @param {*} [options] Override http request option.
213
- * @throws {RequiredError}
214
- */
215
- contactChangeConfirmationStatus(options) {
216
- return localVarFp.contactChangeConfirmationStatus(options).then((request) => request(axios, basePath));
217
- },
218
- };
219
- };
220
- exports.ContactChangeApiFactory = ContactChangeApiFactory;
221
- /**
222
- * ContactChangeApi - object-oriented interface
223
- * @export
224
- * @class ContactChangeApi
225
- * @extends {BaseAPI}
226
- */
227
- class ContactChangeApi extends base_1.BaseAPI {
228
- /**
229
- *
230
- * @summary This method enables the user to request a change of his or her contact email. After entering a valid email, a confirmation email will be sent to the new address and a notification email will be sent to the present address.
231
- * @param {string} body A new email as string set by the user.
232
- * @param {*} [options] Override http request option.
233
- * @throws {RequiredError}
234
- * @memberof ContactChangeApi
235
- */
236
- contactChangeChangeContactEmail(body, options) {
237
- return (0, exports.ContactChangeApiFp)(this.configuration).contactChangeChangeContactEmail(body, options).then((request) => request(this.axios, this.basePath));
238
- }
239
- /**
240
- *
241
- * @summary Calling this method checks whether or not the entered confirmation token (verification) exists inside the database for the current user. If yes, it updates the EmailAddress field for that user with the New Email that has been requested with the ChangeContactEmail method.
242
- * @param {string} verification The Confirmation Token as String for a New Email.
243
- * @param {*} [options] Override http request option.
244
- * @throws {RequiredError}
245
- * @memberof ContactChangeApi
246
- */
247
- contactChangeConfirmContactEmail(verification, options) {
248
- return (0, exports.ContactChangeApiFp)(this.configuration).contactChangeConfirmContactEmail(verification, options).then((request) => request(this.axios, this.basePath));
249
- }
250
- /**
251
- *
252
- * @summary Calling this method will check if there are pending emails for confirmation for the current user.
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- * @memberof ContactChangeApi
256
- */
257
- contactChangeConfirmationStatus(options) {
258
- return (0, exports.ContactChangeApiFp)(this.configuration).contactChangeConfirmationStatus(options).then((request) => request(this.axios, this.basePath));
259
- }
260
- }
261
- exports.ContactChangeApi = ContactChangeApi;
262
- /**
263
- * LanguageApi - axios parameter creator
264
- * @export
265
- */
266
- const LanguageApiAxiosParamCreator = function (configuration) {
267
- return {
268
- /**
269
- *
270
- * @summary Returns all available languages.
271
- * @param {*} [options] Override http request option.
272
- * @throws {RequiredError}
273
- */
274
- languageIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
275
- const localVarPath = `/Language`;
276
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
277
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
278
- let baseOptions;
279
- if (configuration) {
280
- baseOptions = configuration.baseOptions;
281
- }
282
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
283
- const localVarHeaderParameter = {};
284
- const localVarQueryParameter = {};
285
- // authentication JWT token required
286
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
287
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
288
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
- return {
291
- url: (0, common_1.toPathString)(localVarUrlObj),
292
- options: localVarRequestOptions,
293
- };
294
- }),
295
- };
296
- };
297
- exports.LanguageApiAxiosParamCreator = LanguageApiAxiosParamCreator;
298
- /**
299
- * LanguageApi - functional programming interface
300
- * @export
301
- */
302
- const LanguageApiFp = function (configuration) {
303
- const localVarAxiosParamCreator = (0, exports.LanguageApiAxiosParamCreator)(configuration);
304
- return {
305
- /**
306
- *
307
- * @summary Returns all available languages.
308
- * @param {*} [options] Override http request option.
309
- * @throws {RequiredError}
310
- */
311
- languageIndex(options) {
312
- return __awaiter(this, void 0, void 0, function* () {
313
- const localVarAxiosArgs = yield localVarAxiosParamCreator.languageIndex(options);
314
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
315
- });
316
- },
317
- };
318
- };
319
- exports.LanguageApiFp = LanguageApiFp;
320
- /**
321
- * LanguageApi - factory interface
322
- * @export
323
- */
324
- const LanguageApiFactory = function (configuration, basePath, axios) {
325
- const localVarFp = (0, exports.LanguageApiFp)(configuration);
326
- return {
327
- /**
328
- *
329
- * @summary Returns all available languages.
330
- * @param {*} [options] Override http request option.
331
- * @throws {RequiredError}
332
- */
333
- languageIndex(options) {
334
- return localVarFp.languageIndex(options).then((request) => request(axios, basePath));
335
- },
336
- };
337
- };
338
- exports.LanguageApiFactory = LanguageApiFactory;
339
- /**
340
- * LanguageApi - object-oriented interface
341
- * @export
342
- * @class LanguageApi
343
- * @extends {BaseAPI}
344
- */
345
- class LanguageApi extends base_1.BaseAPI {
346
- /**
347
- *
348
- * @summary Returns all available languages.
349
- * @param {*} [options] Override http request option.
350
- * @throws {RequiredError}
351
- * @memberof LanguageApi
352
- */
353
- languageIndex(options) {
354
- return (0, exports.LanguageApiFp)(this.configuration).languageIndex(options).then((request) => request(this.axios, this.basePath));
355
- }
356
- }
357
- exports.LanguageApi = LanguageApi;
358
- /**
359
- * TOSApi - axios parameter creator
360
- * @export
361
- */
362
- const TOSApiAxiosParamCreator = function (configuration) {
363
- return {
364
- /**
365
- *
366
- * @summary Calling this method accepts the TOS for the current user.
367
- * @param {*} [options] Override http request option.
368
- * @throws {RequiredError}
369
- */
370
- tOSAcceptCurrentTOSVersion: (options = {}) => __awaiter(this, void 0, void 0, function* () {
371
- const localVarPath = `/TOS`;
372
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
373
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
374
- let baseOptions;
375
- if (configuration) {
376
- baseOptions = configuration.baseOptions;
377
- }
378
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
379
- const localVarHeaderParameter = {};
380
- const localVarQueryParameter = {};
381
- // authentication JWT token required
382
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
383
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
384
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
386
- return {
387
- url: (0, common_1.toPathString)(localVarUrlObj),
388
- options: localVarRequestOptions,
389
- };
390
- }),
391
- /**
392
- *
393
- * @summary Returns the TOS Versions accepted by the current user.
394
- * @param {*} [options] Override http request option.
395
- * @throws {RequiredError}
396
- */
397
- tOSAcceptedTOSVersion: (options = {}) => __awaiter(this, void 0, void 0, function* () {
398
- const localVarPath = `/TOS`;
399
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
400
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
401
- let baseOptions;
402
- if (configuration) {
403
- baseOptions = configuration.baseOptions;
404
- }
405
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
406
- const localVarHeaderParameter = {};
407
- const localVarQueryParameter = {};
408
- // authentication JWT token required
409
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
410
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
411
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
412
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
413
- return {
414
- url: (0, common_1.toPathString)(localVarUrlObj),
415
- options: localVarRequestOptions,
416
- };
417
- }),
418
- /**
419
- *
420
- * @summary Returns the current TOS Version.
421
- * @param {*} [options] Override http request option.
422
- * @throws {RequiredError}
423
- */
424
- tOSGetCurrentTOSVersion: (options = {}) => __awaiter(this, void 0, void 0, function* () {
425
- const localVarPath = `/TOS/version`;
426
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
427
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
428
- let baseOptions;
429
- if (configuration) {
430
- baseOptions = configuration.baseOptions;
431
- }
432
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
433
- const localVarHeaderParameter = {};
434
- const localVarQueryParameter = {};
435
- // authentication JWT token required
436
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
437
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
438
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
439
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
440
- return {
441
- url: (0, common_1.toPathString)(localVarUrlObj),
442
- options: localVarRequestOptions,
443
- };
444
- }),
445
- };
446
- };
447
- exports.TOSApiAxiosParamCreator = TOSApiAxiosParamCreator;
448
- /**
449
- * TOSApi - functional programming interface
450
- * @export
451
- */
452
- const TOSApiFp = function (configuration) {
453
- const localVarAxiosParamCreator = (0, exports.TOSApiAxiosParamCreator)(configuration);
454
- return {
455
- /**
456
- *
457
- * @summary Calling this method accepts the TOS for the current user.
458
- * @param {*} [options] Override http request option.
459
- * @throws {RequiredError}
460
- */
461
- tOSAcceptCurrentTOSVersion(options) {
462
- return __awaiter(this, void 0, void 0, function* () {
463
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tOSAcceptCurrentTOSVersion(options);
464
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
465
- });
466
- },
467
- /**
468
- *
469
- * @summary Returns the TOS Versions accepted by the current user.
470
- * @param {*} [options] Override http request option.
471
- * @throws {RequiredError}
472
- */
473
- tOSAcceptedTOSVersion(options) {
474
- return __awaiter(this, void 0, void 0, function* () {
475
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tOSAcceptedTOSVersion(options);
476
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
477
- });
478
- },
479
- /**
480
- *
481
- * @summary Returns the current TOS Version.
482
- * @param {*} [options] Override http request option.
483
- * @throws {RequiredError}
484
- */
485
- tOSGetCurrentTOSVersion(options) {
486
- return __awaiter(this, void 0, void 0, function* () {
487
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tOSGetCurrentTOSVersion(options);
488
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
489
- });
490
- },
491
- };
492
- };
493
- exports.TOSApiFp = TOSApiFp;
494
- /**
495
- * TOSApi - factory interface
496
- * @export
497
- */
498
- const TOSApiFactory = function (configuration, basePath, axios) {
499
- const localVarFp = (0, exports.TOSApiFp)(configuration);
500
- return {
501
- /**
502
- *
503
- * @summary Calling this method accepts the TOS for the current user.
504
- * @param {*} [options] Override http request option.
505
- * @throws {RequiredError}
506
- */
507
- tOSAcceptCurrentTOSVersion(options) {
508
- return localVarFp.tOSAcceptCurrentTOSVersion(options).then((request) => request(axios, basePath));
509
- },
510
- /**
511
- *
512
- * @summary Returns the TOS Versions accepted by the current user.
513
- * @param {*} [options] Override http request option.
514
- * @throws {RequiredError}
515
- */
516
- tOSAcceptedTOSVersion(options) {
517
- return localVarFp.tOSAcceptedTOSVersion(options).then((request) => request(axios, basePath));
518
- },
519
- /**
520
- *
521
- * @summary Returns the current TOS Version.
522
- * @param {*} [options] Override http request option.
523
- * @throws {RequiredError}
524
- */
525
- tOSGetCurrentTOSVersion(options) {
526
- return localVarFp.tOSGetCurrentTOSVersion(options).then((request) => request(axios, basePath));
527
- },
528
- };
529
- };
530
- exports.TOSApiFactory = TOSApiFactory;
531
- /**
532
- * TOSApi - object-oriented interface
533
- * @export
534
- * @class TOSApi
535
- * @extends {BaseAPI}
536
- */
537
- class TOSApi extends base_1.BaseAPI {
538
- /**
539
- *
540
- * @summary Calling this method accepts the TOS for the current user.
541
- * @param {*} [options] Override http request option.
542
- * @throws {RequiredError}
543
- * @memberof TOSApi
544
- */
545
- tOSAcceptCurrentTOSVersion(options) {
546
- return (0, exports.TOSApiFp)(this.configuration).tOSAcceptCurrentTOSVersion(options).then((request) => request(this.axios, this.basePath));
547
- }
548
- /**
549
- *
550
- * @summary Returns the TOS Versions accepted by the current user.
551
- * @param {*} [options] Override http request option.
552
- * @throws {RequiredError}
553
- * @memberof TOSApi
554
- */
555
- tOSAcceptedTOSVersion(options) {
556
- return (0, exports.TOSApiFp)(this.configuration).tOSAcceptedTOSVersion(options).then((request) => request(this.axios, this.basePath));
557
- }
558
- /**
559
- *
560
- * @summary Returns the current TOS Version.
561
- * @param {*} [options] Override http request option.
562
- * @throws {RequiredError}
563
- * @memberof TOSApi
564
- */
565
- tOSGetCurrentTOSVersion(options) {
566
- return (0, exports.TOSApiFp)(this.configuration).tOSGetCurrentTOSVersion(options).then((request) => request(this.axios, this.basePath));
567
- }
568
- }
569
- exports.TOSApi = TOSApi;
570
- /**
571
- * TitleApi - axios parameter creator
572
- * @export
573
- */
574
- const TitleApiAxiosParamCreator = function (configuration) {
575
- return {
576
- /**
577
- *
578
- * @summary Returns all available titles.
579
- * @param {*} [options] Override http request option.
580
- * @throws {RequiredError}
581
- */
582
- titleIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
583
- const localVarPath = `/Title`;
584
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
585
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
586
- let baseOptions;
587
- if (configuration) {
588
- baseOptions = configuration.baseOptions;
589
- }
590
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
591
- const localVarHeaderParameter = {};
592
- const localVarQueryParameter = {};
593
- // authentication JWT token required
594
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
595
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
596
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
597
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
598
- return {
599
- url: (0, common_1.toPathString)(localVarUrlObj),
600
- options: localVarRequestOptions,
601
- };
602
- }),
603
- };
604
- };
605
- exports.TitleApiAxiosParamCreator = TitleApiAxiosParamCreator;
606
- /**
607
- * TitleApi - functional programming interface
608
- * @export
609
- */
610
- const TitleApiFp = function (configuration) {
611
- const localVarAxiosParamCreator = (0, exports.TitleApiAxiosParamCreator)(configuration);
612
- return {
613
- /**
614
- *
615
- * @summary Returns all available titles.
616
- * @param {*} [options] Override http request option.
617
- * @throws {RequiredError}
618
- */
619
- titleIndex(options) {
620
- return __awaiter(this, void 0, void 0, function* () {
621
- const localVarAxiosArgs = yield localVarAxiosParamCreator.titleIndex(options);
622
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
623
- });
624
- },
625
- };
626
- };
627
- exports.TitleApiFp = TitleApiFp;
628
- /**
629
- * TitleApi - factory interface
630
- * @export
631
- */
632
- const TitleApiFactory = function (configuration, basePath, axios) {
633
- const localVarFp = (0, exports.TitleApiFp)(configuration);
634
- return {
635
- /**
636
- *
637
- * @summary Returns all available titles.
638
- * @param {*} [options] Override http request option.
639
- * @throws {RequiredError}
640
- */
641
- titleIndex(options) {
642
- return localVarFp.titleIndex(options).then((request) => request(axios, basePath));
643
- },
644
- };
645
- };
646
- exports.TitleApiFactory = TitleApiFactory;
647
- /**
648
- * TitleApi - object-oriented interface
649
- * @export
650
- * @class TitleApi
651
- * @extends {BaseAPI}
652
- */
653
- class TitleApi extends base_1.BaseAPI {
654
- /**
655
- *
656
- * @summary Returns all available titles.
657
- * @param {*} [options] Override http request option.
658
- * @throws {RequiredError}
659
- * @memberof TitleApi
660
- */
661
- titleIndex(options) {
662
- return (0, exports.TitleApiFp)(this.configuration).titleIndex(options).then((request) => request(this.axios, this.basePath));
663
- }
664
- }
665
- exports.TitleApi = TitleApi;
666
- /**
667
- * UserApi - axios parameter creator
668
- * @export
669
- */
670
- const UserApiAxiosParamCreator = function (configuration) {
671
- return {
672
- /**
673
- *
674
- * @summary Retrieves the UserObject.
675
- * @param {*} [options] Override http request option.
676
- * @throws {RequiredError}
677
- */
678
- userGetUser: (options = {}) => __awaiter(this, void 0, void 0, function* () {
679
- const localVarPath = `/User/user`;
680
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
681
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
682
- let baseOptions;
683
- if (configuration) {
684
- baseOptions = configuration.baseOptions;
685
- }
686
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
687
- const localVarHeaderParameter = {};
688
- const localVarQueryParameter = {};
689
- // authentication JWT token required
690
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
691
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
692
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
694
- return {
695
- url: (0, common_1.toPathString)(localVarUrlObj),
696
- options: localVarRequestOptions,
697
- };
698
- }),
699
- /**
700
- *
701
- * @summary This method lets someone query the user database using a query string.
702
- * @param {string} queryString Search String
703
- * @param {string} projectId Project from which the search is triggered
704
- * @param {*} [options] Override http request option.
705
- * @throws {RequiredError}
706
- */
707
- userQuery: (queryString, projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
708
- // verify required parameter 'queryString' is not null or undefined
709
- (0, common_1.assertParamExists)('userQuery', 'queryString', queryString);
710
- // verify required parameter 'projectId' is not null or undefined
711
- (0, common_1.assertParamExists)('userQuery', 'projectId', projectId);
712
- const localVarPath = `/User/query/{queryString}/project/{projectId}`
713
- .replace(`{${"queryString"}}`, encodeURIComponent(String(queryString)))
714
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
715
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
716
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
717
- let baseOptions;
718
- if (configuration) {
719
- baseOptions = configuration.baseOptions;
720
- }
721
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
722
- const localVarHeaderParameter = {};
723
- const localVarQueryParameter = {};
724
- // authentication JWT token required
725
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
726
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
727
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
728
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
729
- return {
730
- url: (0, common_1.toPathString)(localVarUrlObj),
731
- options: localVarRequestOptions,
732
- };
733
- }),
734
- /**
735
- *
736
- * @summary Sets and returns a merge token.
737
- * @param {string} provider Specifies the provider from which a user should be merged from
738
- * @param {*} [options] Override http request option.
739
- * @throws {RequiredError}
740
- */
741
- userSetAndReturnMergeToken: (provider, options = {}) => __awaiter(this, void 0, void 0, function* () {
742
- // verify required parameter 'provider' is not null or undefined
743
- (0, common_1.assertParamExists)('userSetAndReturnMergeToken', 'provider', provider);
744
- const localVarPath = `/User/mergeToken/{provider}`
745
- .replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
746
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
747
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
748
- let baseOptions;
749
- if (configuration) {
750
- baseOptions = configuration.baseOptions;
751
- }
752
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
753
- const localVarHeaderParameter = {};
754
- const localVarQueryParameter = {};
755
- // authentication JWT token required
756
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
757
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
758
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
759
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
760
- return {
761
- url: (0, common_1.toPathString)(localVarUrlObj),
762
- options: localVarRequestOptions,
763
- };
764
- }),
765
- /**
766
- *
767
- * @summary Updates the User.
768
- * @param {UserObject} userObject Entry representing the user
769
- * @param {*} [options] Override http request option.
770
- * @throws {RequiredError}
771
- */
772
- userUpdateUser: (userObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
773
- // verify required parameter 'userObject' is not null or undefined
774
- (0, common_1.assertParamExists)('userUpdateUser', 'userObject', userObject);
775
- const localVarPath = `/User/user`;
776
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
777
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
778
- let baseOptions;
779
- if (configuration) {
780
- baseOptions = configuration.baseOptions;
781
- }
782
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
783
- const localVarHeaderParameter = {};
784
- const localVarQueryParameter = {};
785
- // authentication JWT token required
786
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
787
- localVarHeaderParameter['Content-Type'] = 'application/json';
788
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
789
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
790
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
791
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userObject, localVarRequestOptions, configuration);
792
- return {
793
- url: (0, common_1.toPathString)(localVarUrlObj),
794
- options: localVarRequestOptions,
795
- };
796
- }),
797
- };
798
- };
799
- exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
800
- /**
801
- * UserApi - functional programming interface
802
- * @export
803
- */
804
- const UserApiFp = function (configuration) {
805
- const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
806
- return {
807
- /**
808
- *
809
- * @summary Retrieves the UserObject.
810
- * @param {*} [options] Override http request option.
811
- * @throws {RequiredError}
812
- */
813
- userGetUser(options) {
814
- return __awaiter(this, void 0, void 0, function* () {
815
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userGetUser(options);
816
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
817
- });
818
- },
819
- /**
820
- *
821
- * @summary This method lets someone query the user database using a query string.
822
- * @param {string} queryString Search String
823
- * @param {string} projectId Project from which the search is triggered
824
- * @param {*} [options] Override http request option.
825
- * @throws {RequiredError}
826
- */
827
- userQuery(queryString, projectId, options) {
828
- return __awaiter(this, void 0, void 0, function* () {
829
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userQuery(queryString, projectId, options);
830
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
831
- });
832
- },
833
- /**
834
- *
835
- * @summary Sets and returns a merge token.
836
- * @param {string} provider Specifies the provider from which a user should be merged from
837
- * @param {*} [options] Override http request option.
838
- * @throws {RequiredError}
839
- */
840
- userSetAndReturnMergeToken(provider, options) {
841
- return __awaiter(this, void 0, void 0, function* () {
842
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userSetAndReturnMergeToken(provider, options);
843
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
844
- });
845
- },
846
- /**
847
- *
848
- * @summary Updates the User.
849
- * @param {UserObject} userObject Entry representing the user
850
- * @param {*} [options] Override http request option.
851
- * @throws {RequiredError}
852
- */
853
- userUpdateUser(userObject, options) {
854
- return __awaiter(this, void 0, void 0, function* () {
855
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userUpdateUser(userObject, options);
856
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
857
- });
858
- },
859
- };
860
- };
861
- exports.UserApiFp = UserApiFp;
862
- /**
863
- * UserApi - factory interface
864
- * @export
865
- */
866
- const UserApiFactory = function (configuration, basePath, axios) {
867
- const localVarFp = (0, exports.UserApiFp)(configuration);
868
- return {
869
- /**
870
- *
871
- * @summary Retrieves the UserObject.
872
- * @param {*} [options] Override http request option.
873
- * @throws {RequiredError}
874
- */
875
- userGetUser(options) {
876
- return localVarFp.userGetUser(options).then((request) => request(axios, basePath));
877
- },
878
- /**
879
- *
880
- * @summary This method lets someone query the user database using a query string.
881
- * @param {string} queryString Search String
882
- * @param {string} projectId Project from which the search is triggered
883
- * @param {*} [options] Override http request option.
884
- * @throws {RequiredError}
885
- */
886
- userQuery(queryString, projectId, options) {
887
- return localVarFp.userQuery(queryString, projectId, options).then((request) => request(axios, basePath));
888
- },
889
- /**
890
- *
891
- * @summary Sets and returns a merge token.
892
- * @param {string} provider Specifies the provider from which a user should be merged from
893
- * @param {*} [options] Override http request option.
894
- * @throws {RequiredError}
895
- */
896
- userSetAndReturnMergeToken(provider, options) {
897
- return localVarFp.userSetAndReturnMergeToken(provider, options).then((request) => request(axios, basePath));
898
- },
899
- /**
900
- *
901
- * @summary Updates the User.
902
- * @param {UserObject} userObject Entry representing the user
903
- * @param {*} [options] Override http request option.
904
- * @throws {RequiredError}
905
- */
906
- userUpdateUser(userObject, options) {
907
- return localVarFp.userUpdateUser(userObject, options).then((request) => request(axios, basePath));
908
- },
909
- };
910
- };
911
- exports.UserApiFactory = UserApiFactory;
912
- /**
913
- * UserApi - object-oriented interface
914
- * @export
915
- * @class UserApi
916
- * @extends {BaseAPI}
917
- */
918
- class UserApi extends base_1.BaseAPI {
919
- /**
920
- *
921
- * @summary Retrieves the UserObject.
922
- * @param {*} [options] Override http request option.
923
- * @throws {RequiredError}
924
- * @memberof UserApi
925
- */
926
- userGetUser(options) {
927
- return (0, exports.UserApiFp)(this.configuration).userGetUser(options).then((request) => request(this.axios, this.basePath));
928
- }
929
- /**
930
- *
931
- * @summary This method lets someone query the user database using a query string.
932
- * @param {string} queryString Search String
933
- * @param {string} projectId Project from which the search is triggered
934
- * @param {*} [options] Override http request option.
935
- * @throws {RequiredError}
936
- * @memberof UserApi
937
- */
938
- userQuery(queryString, projectId, options) {
939
- return (0, exports.UserApiFp)(this.configuration).userQuery(queryString, projectId, options).then((request) => request(this.axios, this.basePath));
940
- }
941
- /**
942
- *
943
- * @summary Sets and returns a merge token.
944
- * @param {string} provider Specifies the provider from which a user should be merged from
945
- * @param {*} [options] Override http request option.
946
- * @throws {RequiredError}
947
- * @memberof UserApi
948
- */
949
- userSetAndReturnMergeToken(provider, options) {
950
- return (0, exports.UserApiFp)(this.configuration).userSetAndReturnMergeToken(provider, options).then((request) => request(this.axios, this.basePath));
951
- }
952
- /**
953
- *
954
- * @summary Updates the User.
955
- * @param {UserObject} userObject Entry representing the user
956
- * @param {*} [options] Override http request option.
957
- * @throws {RequiredError}
958
- * @memberof UserApi
959
- */
960
- userUpdateUser(userObject, options) {
961
- return (0, exports.UserApiFp)(this.configuration).userUpdateUser(userObject, options).then((request) => request(this.axios, this.basePath));
962
- }
963
- }
964
- exports.UserApi = UserApi;
965
- //# sourceMappingURL=api.js.map