orgnote-api 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -4,3 +4,28 @@ import type * as ast from 'org-mode-ast';
4
4
  export * from './encryption';
5
5
  export * from './tools';
6
6
  export { ast };
7
+ import { Axios } from 'axios';
8
+ import { Stream } from 'stream';
9
+
10
+ // NOTE: patch cause of incorrect generated api (form-data and swaggo)
11
+ export const initFilesApi = (axiosInstance: Axios) => {
12
+ return {
13
+ uploadFile: async (file: File) => {
14
+ const formData = new FormData();
15
+ formData.append('files', file);
16
+ const response = await axiosInstance.post('/files/upload', formData, {
17
+ headers: {
18
+ 'Content-Type': 'multipart/form-data',
19
+ },
20
+ });
21
+ return response.data;
22
+ },
23
+ downloadFile: async (relativeFilePath: string): Promise<Stream> => {
24
+ const downloadedFilePath = `/media/${relativeFilePath}`;
25
+ const stream = await axiosInstance
26
+ .get(downloadedFilePath, { responseType: 'stream' })
27
+ .then((r) => r.data);
28
+ return stream;
29
+ },
30
+ } as const;
31
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -41,14 +41,14 @@
41
41
  "@capacitor/filesystem": "6.0.0",
42
42
  "@codemirror/state": "6.4.1",
43
43
  "@codemirror/view": "6.26.3",
44
- "axios": "1.6.7",
44
+ "axios": "1.7.3",
45
45
  "openpgp": "5.11.1",
46
46
  "org-mode-ast": "0.11.2",
47
47
  "vue": "3.4.15",
48
48
  "vue-router": "4.2.5"
49
49
  },
50
50
  "devDependencies": {
51
- "@openapitools/openapi-generator-cli": "2.9.0",
51
+ "@openapitools/openapi-generator-cli": "2.13.4",
52
52
  "@types/node": "20.13.0",
53
53
  "typescript": "^5.3.3",
54
54
  "vitest": "^1.5.0"
@@ -1 +1 @@
1
- 6.4.0
1
+ 7.7.0
package/remote-api/api.ts CHANGED
@@ -14,14 +14,14 @@
14
14
 
15
15
 
16
16
  import type { Configuration } from './configuration';
17
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
19
  // Some imports not used depending on template conditions
20
20
  // @ts-ignore
21
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
22
  import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
- import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
26
  /**
27
27
  *
@@ -93,8 +93,9 @@ export interface HandlersCreatingNote {
93
93
  }
94
94
 
95
95
  export const HandlersCreatingNoteEncryptionTypeEnum = {
96
- Gpg: 'gpg',
97
- Password: 'password'
96
+ GpgKeys: 'gpgKeys',
97
+ GpgPassword: 'gpgPassword',
98
+ Disabled: 'disabled'
98
99
  } as const;
99
100
 
100
101
  export type HandlersCreatingNoteEncryptionTypeEnum = typeof HandlersCreatingNoteEncryptionTypeEnum[keyof typeof HandlersCreatingNoteEncryptionTypeEnum];
@@ -786,7 +787,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
786
787
  * @param {*} [options] Override http request option.
787
788
  * @throws {RequiredError}
788
789
  */
789
- authAccountDelete: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
790
+ authAccountDelete: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
790
791
  const localVarPath = `/auth/account`;
791
792
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
792
793
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -816,7 +817,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
816
817
  * @param {*} [options] Override http request option.
817
818
  * @throws {RequiredError}
818
819
  */
819
- authApiTokensGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
820
+ authApiTokensGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
820
821
  const localVarPath = `/auth/api-tokens`;
821
822
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
822
823
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -846,7 +847,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
846
847
  * @param {*} [options] Override http request option.
847
848
  * @throws {RequiredError}
848
849
  */
849
- authLogoutGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
850
+ authLogoutGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
850
851
  const localVarPath = `/auth/logout`;
851
852
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
852
853
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -877,7 +878,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
877
878
  * @param {*} [options] Override http request option.
878
879
  * @throws {RequiredError}
879
880
  */
880
- authProviderCallbackGet: async (provider: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
881
+ authProviderCallbackGet: async (provider: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
881
882
  // verify required parameter 'provider' is not null or undefined
882
883
  assertParamExists('authProviderCallbackGet', 'provider', provider)
883
884
  const localVarPath = `/auth/{provider}/callback`
@@ -912,7 +913,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
912
913
  * @param {*} [options] Override http request option.
913
914
  * @throws {RequiredError}
914
915
  */
915
- authProviderLoginGet: async (provider: string, state?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
916
+ authProviderLoginGet: async (provider: string, state?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
916
917
  // verify required parameter 'provider' is not null or undefined
917
918
  assertParamExists('authProviderLoginGet', 'provider', provider)
918
919
  const localVarPath = `/auth/{provider}/login`
@@ -950,7 +951,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
950
951
  * @param {*} [options] Override http request option.
951
952
  * @throws {RequiredError}
952
953
  */
953
- authSubscribePost: async (data: HandlersSubscribeBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
954
+ authSubscribePost: async (data: HandlersSubscribeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
954
955
  // verify required parameter 'data' is not null or undefined
955
956
  assertParamExists('authSubscribePost', 'data', data)
956
957
  const localVarPath = `/auth/subscribe`;
@@ -985,7 +986,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
985
986
  * @param {*} [options] Override http request option.
986
987
  * @throws {RequiredError}
987
988
  */
988
- authTokenPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
989
+ authTokenPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
989
990
  const localVarPath = `/auth/token`;
990
991
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
991
992
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1016,7 +1017,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1016
1017
  * @param {*} [options] Override http request option.
1017
1018
  * @throws {RequiredError}
1018
1019
  */
1019
- authTokenTokenIdDelete: async (tokenId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1020
+ authTokenTokenIdDelete: async (tokenId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1020
1021
  // verify required parameter 'tokenId' is not null or undefined
1021
1022
  assertParamExists('authTokenTokenIdDelete', 'tokenId', tokenId)
1022
1023
  const localVarPath = `/auth/token/{tokenId}`
@@ -1049,7 +1050,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1049
1050
  * @param {*} [options] Override http request option.
1050
1051
  * @throws {RequiredError}
1051
1052
  */
1052
- authVerifyGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1053
+ authVerifyGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1053
1054
  const localVarPath = `/auth/verify`;
1054
1055
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1055
1056
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1089,9 +1090,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1089
1090
  * @param {*} [options] Override http request option.
1090
1091
  * @throws {RequiredError}
1091
1092
  */
1092
- async authAccountDelete(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1093
+ async authAccountDelete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1093
1094
  const localVarAxiosArgs = await localVarAxiosParamCreator.authAccountDelete(options);
1094
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1095
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1096
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authAccountDelete']?.[localVarOperationServerIndex]?.url;
1097
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1095
1098
  },
1096
1099
  /**
1097
1100
  * Return all available API tokens
@@ -1099,9 +1102,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1099
1102
  * @param {*} [options] Override http request option.
1100
1103
  * @throws {RequiredError}
1101
1104
  */
1102
- async authApiTokensGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayModelsAPITokenAny>> {
1105
+ async authApiTokensGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayModelsAPITokenAny>> {
1103
1106
  const localVarAxiosArgs = await localVarAxiosParamCreator.authApiTokensGet(options);
1104
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1107
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1108
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authApiTokensGet']?.[localVarOperationServerIndex]?.url;
1109
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1105
1110
  },
1106
1111
  /**
1107
1112
  *
@@ -1109,9 +1114,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1109
1114
  * @param {*} [options] Override http request option.
1110
1115
  * @throws {RequiredError}
1111
1116
  */
1112
- async authLogoutGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1117
+ async authLogoutGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1113
1118
  const localVarAxiosArgs = await localVarAxiosParamCreator.authLogoutGet(options);
1114
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1119
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1120
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authLogoutGet']?.[localVarOperationServerIndex]?.url;
1121
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1115
1122
  },
1116
1123
  /**
1117
1124
  *
@@ -1120,9 +1127,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1120
1127
  * @param {*} [options] Override http request option.
1121
1128
  * @throws {RequiredError}
1122
1129
  */
1123
- async authProviderCallbackGet(provider: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1130
+ async authProviderCallbackGet(provider: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1124
1131
  const localVarAxiosArgs = await localVarAxiosParamCreator.authProviderCallbackGet(provider, options);
1125
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1132
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1133
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authProviderCallbackGet']?.[localVarOperationServerIndex]?.url;
1134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1126
1135
  },
1127
1136
  /**
1128
1137
  * Entrypoint for login
@@ -1132,9 +1141,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1132
1141
  * @param {*} [options] Override http request option.
1133
1142
  * @throws {RequiredError}
1134
1143
  */
1135
- async authProviderLoginGet(provider: string, state?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseHandlersOAuthRedirectDataAny>> {
1144
+ async authProviderLoginGet(provider: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseHandlersOAuthRedirectDataAny>> {
1136
1145
  const localVarAxiosArgs = await localVarAxiosParamCreator.authProviderLoginGet(provider, state, options);
1137
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1146
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1147
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authProviderLoginGet']?.[localVarOperationServerIndex]?.url;
1148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1138
1149
  },
1139
1150
  /**
1140
1151
  * Subscribe for backend features, like sync notes
@@ -1143,9 +1154,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1143
1154
  * @param {*} [options] Override http request option.
1144
1155
  * @throws {RequiredError}
1145
1156
  */
1146
- async authSubscribePost(data: HandlersSubscribeBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1157
+ async authSubscribePost(data: HandlersSubscribeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1147
1158
  const localVarAxiosArgs = await localVarAxiosParamCreator.authSubscribePost(data, options);
1148
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1159
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1160
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authSubscribePost']?.[localVarOperationServerIndex]?.url;
1161
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1149
1162
  },
1150
1163
  /**
1151
1164
  * Create API token
@@ -1153,9 +1166,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1153
1166
  * @param {*} [options] Override http request option.
1154
1167
  * @throws {RequiredError}
1155
1168
  */
1156
- async authTokenPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsAPITokenAny>> {
1169
+ async authTokenPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsAPITokenAny>> {
1157
1170
  const localVarAxiosArgs = await localVarAxiosParamCreator.authTokenPost(options);
1158
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1171
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1172
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authTokenPost']?.[localVarOperationServerIndex]?.url;
1173
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1159
1174
  },
1160
1175
  /**
1161
1176
  * Delete API token
@@ -1164,9 +1179,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1164
1179
  * @param {*} [options] Override http request option.
1165
1180
  * @throws {RequiredError}
1166
1181
  */
1167
- async authTokenTokenIdDelete(tokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1182
+ async authTokenTokenIdDelete(tokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1168
1183
  const localVarAxiosArgs = await localVarAxiosParamCreator.authTokenTokenIdDelete(tokenId, options);
1169
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1184
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1185
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authTokenTokenIdDelete']?.[localVarOperationServerIndex]?.url;
1186
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1170
1187
  },
1171
1188
  /**
1172
1189
  * Return found user by provided token
@@ -1174,9 +1191,11 @@ export const AuthApiFp = function(configuration?: Configuration) {
1174
1191
  * @param {*} [options] Override http request option.
1175
1192
  * @throws {RequiredError}
1176
1193
  */
1177
- async authVerifyGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsUserPersonalInfoAny>> {
1194
+ async authVerifyGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsUserPersonalInfoAny>> {
1178
1195
  const localVarAxiosArgs = await localVarAxiosParamCreator.authVerifyGet(options);
1179
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1196
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1197
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authVerifyGet']?.[localVarOperationServerIndex]?.url;
1198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1180
1199
  },
1181
1200
  }
1182
1201
  };
@@ -1291,7 +1310,7 @@ export class AuthApi extends BaseAPI {
1291
1310
  * @throws {RequiredError}
1292
1311
  * @memberof AuthApi
1293
1312
  */
1294
- public authAccountDelete(options?: AxiosRequestConfig) {
1313
+ public authAccountDelete(options?: RawAxiosRequestConfig) {
1295
1314
  return AuthApiFp(this.configuration).authAccountDelete(options).then((request) => request(this.axios, this.basePath));
1296
1315
  }
1297
1316
 
@@ -1302,7 +1321,7 @@ export class AuthApi extends BaseAPI {
1302
1321
  * @throws {RequiredError}
1303
1322
  * @memberof AuthApi
1304
1323
  */
1305
- public authApiTokensGet(options?: AxiosRequestConfig) {
1324
+ public authApiTokensGet(options?: RawAxiosRequestConfig) {
1306
1325
  return AuthApiFp(this.configuration).authApiTokensGet(options).then((request) => request(this.axios, this.basePath));
1307
1326
  }
1308
1327
 
@@ -1313,7 +1332,7 @@ export class AuthApi extends BaseAPI {
1313
1332
  * @throws {RequiredError}
1314
1333
  * @memberof AuthApi
1315
1334
  */
1316
- public authLogoutGet(options?: AxiosRequestConfig) {
1335
+ public authLogoutGet(options?: RawAxiosRequestConfig) {
1317
1336
  return AuthApiFp(this.configuration).authLogoutGet(options).then((request) => request(this.axios, this.basePath));
1318
1337
  }
1319
1338
 
@@ -1325,7 +1344,7 @@ export class AuthApi extends BaseAPI {
1325
1344
  * @throws {RequiredError}
1326
1345
  * @memberof AuthApi
1327
1346
  */
1328
- public authProviderCallbackGet(provider: string, options?: AxiosRequestConfig) {
1347
+ public authProviderCallbackGet(provider: string, options?: RawAxiosRequestConfig) {
1329
1348
  return AuthApiFp(this.configuration).authProviderCallbackGet(provider, options).then((request) => request(this.axios, this.basePath));
1330
1349
  }
1331
1350
 
@@ -1338,7 +1357,7 @@ export class AuthApi extends BaseAPI {
1338
1357
  * @throws {RequiredError}
1339
1358
  * @memberof AuthApi
1340
1359
  */
1341
- public authProviderLoginGet(provider: string, state?: string, options?: AxiosRequestConfig) {
1360
+ public authProviderLoginGet(provider: string, state?: string, options?: RawAxiosRequestConfig) {
1342
1361
  return AuthApiFp(this.configuration).authProviderLoginGet(provider, state, options).then((request) => request(this.axios, this.basePath));
1343
1362
  }
1344
1363
 
@@ -1350,7 +1369,7 @@ export class AuthApi extends BaseAPI {
1350
1369
  * @throws {RequiredError}
1351
1370
  * @memberof AuthApi
1352
1371
  */
1353
- public authSubscribePost(data: HandlersSubscribeBody, options?: AxiosRequestConfig) {
1372
+ public authSubscribePost(data: HandlersSubscribeBody, options?: RawAxiosRequestConfig) {
1354
1373
  return AuthApiFp(this.configuration).authSubscribePost(data, options).then((request) => request(this.axios, this.basePath));
1355
1374
  }
1356
1375
 
@@ -1361,7 +1380,7 @@ export class AuthApi extends BaseAPI {
1361
1380
  * @throws {RequiredError}
1362
1381
  * @memberof AuthApi
1363
1382
  */
1364
- public authTokenPost(options?: AxiosRequestConfig) {
1383
+ public authTokenPost(options?: RawAxiosRequestConfig) {
1365
1384
  return AuthApiFp(this.configuration).authTokenPost(options).then((request) => request(this.axios, this.basePath));
1366
1385
  }
1367
1386
 
@@ -1373,7 +1392,7 @@ export class AuthApi extends BaseAPI {
1373
1392
  * @throws {RequiredError}
1374
1393
  * @memberof AuthApi
1375
1394
  */
1376
- public authTokenTokenIdDelete(tokenId: string, options?: AxiosRequestConfig) {
1395
+ public authTokenTokenIdDelete(tokenId: string, options?: RawAxiosRequestConfig) {
1377
1396
  return AuthApiFp(this.configuration).authTokenTokenIdDelete(tokenId, options).then((request) => request(this.axios, this.basePath));
1378
1397
  }
1379
1398
 
@@ -1384,12 +1403,13 @@ export class AuthApi extends BaseAPI {
1384
1403
  * @throws {RequiredError}
1385
1404
  * @memberof AuthApi
1386
1405
  */
1387
- public authVerifyGet(options?: AxiosRequestConfig) {
1406
+ public authVerifyGet(options?: RawAxiosRequestConfig) {
1388
1407
  return AuthApiFp(this.configuration).authVerifyGet(options).then((request) => request(this.axios, this.basePath));
1389
1408
  }
1390
1409
  }
1391
1410
 
1392
1411
 
1412
+
1393
1413
  /**
1394
1414
  * FilesApi - axios parameter creator
1395
1415
  * @export
@@ -1403,7 +1423,7 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration
1403
1423
  * @param {*} [options] Override http request option.
1404
1424
  * @throws {RequiredError}
1405
1425
  */
1406
- filesUploadPost: async (filesUploadPostRequest: FilesUploadPostRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1426
+ filesUploadPost: async (filesUploadPostRequest: FilesUploadPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1407
1427
  // verify required parameter 'filesUploadPostRequest' is not null or undefined
1408
1428
  assertParamExists('filesUploadPost', 'filesUploadPostRequest', filesUploadPostRequest)
1409
1429
  const localVarPath = `/files/upload`;
@@ -1449,9 +1469,11 @@ export const FilesApiFp = function(configuration?: Configuration) {
1449
1469
  * @param {*} [options] Override http request option.
1450
1470
  * @throws {RequiredError}
1451
1471
  */
1452
- async filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1472
+ async filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1453
1473
  const localVarAxiosArgs = await localVarAxiosParamCreator.filesUploadPost(filesUploadPostRequest, options);
1454
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1474
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1475
+ const localVarOperationServerBasePath = operationServerMap['FilesApi.filesUploadPost']?.[localVarOperationServerIndex]?.url;
1476
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1455
1477
  },
1456
1478
  }
1457
1479
  };
@@ -1491,12 +1513,13 @@ export class FilesApi extends BaseAPI {
1491
1513
  * @throws {RequiredError}
1492
1514
  * @memberof FilesApi
1493
1515
  */
1494
- public filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: AxiosRequestConfig) {
1516
+ public filesUploadPost(filesUploadPostRequest: FilesUploadPostRequest, options?: RawAxiosRequestConfig) {
1495
1517
  return FilesApiFp(this.configuration).filesUploadPost(filesUploadPostRequest, options).then((request) => request(this.axios, this.basePath));
1496
1518
  }
1497
1519
  }
1498
1520
 
1499
1521
 
1522
+
1500
1523
  /**
1501
1524
  * NotesApi - axios parameter creator
1502
1525
  * @export
@@ -1510,7 +1533,7 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
1510
1533
  * @param {*} [options] Override http request option.
1511
1534
  * @throws {RequiredError}
1512
1535
  */
1513
- notesBulkUpsertPut: async (notes: Array<HandlersCreatingNote>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1536
+ notesBulkUpsertPut: async (notes: Array<HandlersCreatingNote>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1514
1537
  // verify required parameter 'notes' is not null or undefined
1515
1538
  assertParamExists('notesBulkUpsertPut', 'notes', notes)
1516
1539
  const localVarPath = `/notes/bulk-upsert`;
@@ -1546,7 +1569,7 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
1546
1569
  * @param {*} [options] Override http request option.
1547
1570
  * @throws {RequiredError}
1548
1571
  */
1549
- notesDelete: async (ids: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1572
+ notesDelete: async (ids: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1550
1573
  // verify required parameter 'ids' is not null or undefined
1551
1574
  assertParamExists('notesDelete', 'ids', ids)
1552
1575
  const localVarPath = `/notes`;
@@ -1588,7 +1611,7 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
1588
1611
  * @param {*} [options] Override http request option.
1589
1612
  * @throws {RequiredError}
1590
1613
  */
1591
- notesGet: async (limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1614
+ notesGet: async (limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1592
1615
  const localVarPath = `/notes/`;
1593
1616
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1594
1617
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1647,7 +1670,7 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
1647
1670
  * @param {*} [options] Override http request option.
1648
1671
  * @throws {RequiredError}
1649
1672
  */
1650
- notesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1673
+ notesIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1651
1674
  // verify required parameter 'id' is not null or undefined
1652
1675
  assertParamExists('notesIdGet', 'id', id)
1653
1676
  const localVarPath = `/notes/{id}`
@@ -1681,7 +1704,7 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
1681
1704
  * @param {*} [options] Override http request option.
1682
1705
  * @throws {RequiredError}
1683
1706
  */
1684
- notesPost: async (note: HandlersCreatingNote, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1707
+ notesPost: async (note: HandlersCreatingNote, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1685
1708
  // verify required parameter 'note' is not null or undefined
1686
1709
  assertParamExists('notesPost', 'note', note)
1687
1710
  const localVarPath = `/notes/`;
@@ -1717,7 +1740,7 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
1717
1740
  * @param {*} [options] Override http request option.
1718
1741
  * @throws {RequiredError}
1719
1742
  */
1720
- notesSyncPost: async (data: HandlersSyncNotesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1743
+ notesSyncPost: async (data: HandlersSyncNotesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1721
1744
  // verify required parameter 'data' is not null or undefined
1722
1745
  assertParamExists('notesSyncPost', 'data', data)
1723
1746
  const localVarPath = `/notes/sync`;
@@ -1763,9 +1786,11 @@ export const NotesApiFp = function(configuration?: Configuration) {
1763
1786
  * @param {*} [options] Override http request option.
1764
1787
  * @throws {RequiredError}
1765
1788
  */
1766
- async notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1789
+ async notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1767
1790
  const localVarAxiosArgs = await localVarAxiosParamCreator.notesBulkUpsertPut(notes, options);
1768
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1791
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1792
+ const localVarOperationServerBasePath = operationServerMap['NotesApi.notesBulkUpsertPut']?.[localVarOperationServerIndex]?.url;
1793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1769
1794
  },
1770
1795
  /**
1771
1796
  * Mark notes as deleted by provided list of ids
@@ -1774,9 +1799,11 @@ export const NotesApiFp = function(configuration?: Configuration) {
1774
1799
  * @param {*} [options] Override http request option.
1775
1800
  * @throws {RequiredError}
1776
1801
  */
1777
- async notesDelete(ids: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseAnyAny>> {
1802
+ async notesDelete(ids: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseAnyAny>> {
1778
1803
  const localVarAxiosArgs = await localVarAxiosParamCreator.notesDelete(ids, options);
1779
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1804
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1805
+ const localVarOperationServerBasePath = operationServerMap['NotesApi.notesDelete']?.[localVarOperationServerIndex]?.url;
1806
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1780
1807
  },
1781
1808
  /**
1782
1809
  * Get all notes with optional filter
@@ -1791,9 +1818,11 @@ export const NotesApiFp = function(configuration?: Configuration) {
1791
1818
  * @param {*} [options] Override http request option.
1792
1819
  * @throws {RequiredError}
1793
1820
  */
1794
- async notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayModelsPublicNoteModelsPagination>> {
1821
+ async notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayModelsPublicNoteModelsPagination>> {
1795
1822
  const localVarAxiosArgs = await localVarAxiosParamCreator.notesGet(limit, offset, userId, searchText, my, from, includeDeleted, options);
1796
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1823
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1824
+ const localVarOperationServerBasePath = operationServerMap['NotesApi.notesGet']?.[localVarOperationServerIndex]?.url;
1825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1797
1826
  },
1798
1827
  /**
1799
1828
  * get note by id
@@ -1802,9 +1831,11 @@ export const NotesApiFp = function(configuration?: Configuration) {
1802
1831
  * @param {*} [options] Override http request option.
1803
1832
  * @throws {RequiredError}
1804
1833
  */
1805
- async notesIdGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsPublicNoteAny>> {
1834
+ async notesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseModelsPublicNoteAny>> {
1806
1835
  const localVarAxiosArgs = await localVarAxiosParamCreator.notesIdGet(id, options);
1807
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1836
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1837
+ const localVarOperationServerBasePath = operationServerMap['NotesApi.notesIdGet']?.[localVarOperationServerIndex]?.url;
1838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1808
1839
  },
1809
1840
  /**
1810
1841
  * Create note
@@ -1813,9 +1844,11 @@ export const NotesApiFp = function(configuration?: Configuration) {
1813
1844
  * @param {*} [options] Override http request option.
1814
1845
  * @throws {RequiredError}
1815
1846
  */
1816
- async notesPost(note: HandlersCreatingNote, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1847
+ async notesPost(note: HandlersCreatingNote, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1817
1848
  const localVarAxiosArgs = await localVarAxiosParamCreator.notesPost(note, options);
1818
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1849
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1850
+ const localVarOperationServerBasePath = operationServerMap['NotesApi.notesPost']?.[localVarOperationServerIndex]?.url;
1851
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1819
1852
  },
1820
1853
  /**
1821
1854
  * Synchronize notes with specific timestamp
@@ -1824,9 +1857,11 @@ export const NotesApiFp = function(configuration?: Configuration) {
1824
1857
  * @param {*} [options] Override http request option.
1825
1858
  * @throws {RequiredError}
1826
1859
  */
1827
- async notesSyncPost(data: HandlersSyncNotesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseHandlersSyncNotesResponseAny>> {
1860
+ async notesSyncPost(data: HandlersSyncNotesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseHandlersSyncNotesResponseAny>> {
1828
1861
  const localVarAxiosArgs = await localVarAxiosParamCreator.notesSyncPost(data, options);
1829
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1862
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1863
+ const localVarOperationServerBasePath = operationServerMap['NotesApi.notesSyncPost']?.[localVarOperationServerIndex]?.url;
1864
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1830
1865
  },
1831
1866
  }
1832
1867
  };
@@ -1922,7 +1957,7 @@ export class NotesApi extends BaseAPI {
1922
1957
  * @throws {RequiredError}
1923
1958
  * @memberof NotesApi
1924
1959
  */
1925
- public notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: AxiosRequestConfig) {
1960
+ public notesBulkUpsertPut(notes: Array<HandlersCreatingNote>, options?: RawAxiosRequestConfig) {
1926
1961
  return NotesApiFp(this.configuration).notesBulkUpsertPut(notes, options).then((request) => request(this.axios, this.basePath));
1927
1962
  }
1928
1963
 
@@ -1934,7 +1969,7 @@ export class NotesApi extends BaseAPI {
1934
1969
  * @throws {RequiredError}
1935
1970
  * @memberof NotesApi
1936
1971
  */
1937
- public notesDelete(ids: Array<string>, options?: AxiosRequestConfig) {
1972
+ public notesDelete(ids: Array<string>, options?: RawAxiosRequestConfig) {
1938
1973
  return NotesApiFp(this.configuration).notesDelete(ids, options).then((request) => request(this.axios, this.basePath));
1939
1974
  }
1940
1975
 
@@ -1952,7 +1987,7 @@ export class NotesApi extends BaseAPI {
1952
1987
  * @throws {RequiredError}
1953
1988
  * @memberof NotesApi
1954
1989
  */
1955
- public notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: AxiosRequestConfig) {
1990
+ public notesGet(limit?: number, offset?: number, userId?: string, searchText?: string, my?: boolean, from?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig) {
1956
1991
  return NotesApiFp(this.configuration).notesGet(limit, offset, userId, searchText, my, from, includeDeleted, options).then((request) => request(this.axios, this.basePath));
1957
1992
  }
1958
1993
 
@@ -1964,7 +1999,7 @@ export class NotesApi extends BaseAPI {
1964
1999
  * @throws {RequiredError}
1965
2000
  * @memberof NotesApi
1966
2001
  */
1967
- public notesIdGet(id: string, options?: AxiosRequestConfig) {
2002
+ public notesIdGet(id: string, options?: RawAxiosRequestConfig) {
1968
2003
  return NotesApiFp(this.configuration).notesIdGet(id, options).then((request) => request(this.axios, this.basePath));
1969
2004
  }
1970
2005
 
@@ -1976,7 +2011,7 @@ export class NotesApi extends BaseAPI {
1976
2011
  * @throws {RequiredError}
1977
2012
  * @memberof NotesApi
1978
2013
  */
1979
- public notesPost(note: HandlersCreatingNote, options?: AxiosRequestConfig) {
2014
+ public notesPost(note: HandlersCreatingNote, options?: RawAxiosRequestConfig) {
1980
2015
  return NotesApiFp(this.configuration).notesPost(note, options).then((request) => request(this.axios, this.basePath));
1981
2016
  }
1982
2017
 
@@ -1988,12 +2023,13 @@ export class NotesApi extends BaseAPI {
1988
2023
  * @throws {RequiredError}
1989
2024
  * @memberof NotesApi
1990
2025
  */
1991
- public notesSyncPost(data: HandlersSyncNotesRequest, options?: AxiosRequestConfig) {
2026
+ public notesSyncPost(data: HandlersSyncNotesRequest, options?: RawAxiosRequestConfig) {
1992
2027
  return NotesApiFp(this.configuration).notesSyncPost(data, options).then((request) => request(this.axios, this.basePath));
1993
2028
  }
1994
2029
  }
1995
2030
 
1996
2031
 
2032
+
1997
2033
  /**
1998
2034
  * SystemInfoApi - axios parameter creator
1999
2035
  * @export
@@ -2007,7 +2043,7 @@ export const SystemInfoApiAxiosParamCreator = function (configuration?: Configur
2007
2043
  * @param {*} [options] Override http request option.
2008
2044
  * @throws {RequiredError}
2009
2045
  */
2010
- systemInfoClientUpdateVersionGet: async (version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2046
+ systemInfoClientUpdateVersionGet: async (version: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2011
2047
  // verify required parameter 'version' is not null or undefined
2012
2048
  assertParamExists('systemInfoClientUpdateVersionGet', 'version', version)
2013
2049
  const localVarPath = `/system-info/client-update/{version}`
@@ -2051,9 +2087,11 @@ export const SystemInfoApiFp = function(configuration?: Configuration) {
2051
2087
  * @param {*} [options] Override http request option.
2052
2088
  * @throws {RequiredError}
2053
2089
  */
2054
- async systemInfoClientUpdateVersionGet(version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsOrgNoteClientUpdateInfo>> {
2090
+ async systemInfoClientUpdateVersionGet(version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelsOrgNoteClientUpdateInfo>> {
2055
2091
  const localVarAxiosArgs = await localVarAxiosParamCreator.systemInfoClientUpdateVersionGet(version, options);
2056
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2092
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2093
+ const localVarOperationServerBasePath = operationServerMap['SystemInfoApi.systemInfoClientUpdateVersionGet']?.[localVarOperationServerIndex]?.url;
2094
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2057
2095
  },
2058
2096
  }
2059
2097
  };
@@ -2093,12 +2131,13 @@ export class SystemInfoApi extends BaseAPI {
2093
2131
  * @throws {RequiredError}
2094
2132
  * @memberof SystemInfoApi
2095
2133
  */
2096
- public systemInfoClientUpdateVersionGet(version: string, options?: AxiosRequestConfig) {
2134
+ public systemInfoClientUpdateVersionGet(version: string, options?: RawAxiosRequestConfig) {
2097
2135
  return SystemInfoApiFp(this.configuration).systemInfoClientUpdateVersionGet(version, options).then((request) => request(this.axios, this.basePath));
2098
2136
  }
2099
2137
  }
2100
2138
 
2101
2139
 
2140
+
2102
2141
  /**
2103
2142
  * TagsApi - axios parameter creator
2104
2143
  * @export
@@ -2111,7 +2150,7 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
2111
2150
  * @param {*} [options] Override http request option.
2112
2151
  * @throws {RequiredError}
2113
2152
  */
2114
- tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2153
+ tagsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2115
2154
  const localVarPath = `/tags`;
2116
2155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2117
2156
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2151,9 +2190,11 @@ export const TagsApiFp = function(configuration?: Configuration) {
2151
2190
  * @param {*} [options] Override http request option.
2152
2191
  * @throws {RequiredError}
2153
2192
  */
2154
- async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayStringAny>> {
2193
+ async tagsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HandlersHttpResponseArrayStringAny>> {
2155
2194
  const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
2156
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2195
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2196
+ const localVarOperationServerBasePath = operationServerMap['TagsApi.tagsGet']?.[localVarOperationServerIndex]?.url;
2197
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2157
2198
  },
2158
2199
  }
2159
2200
  };
@@ -2191,9 +2232,10 @@ export class TagsApi extends BaseAPI {
2191
2232
  * @throws {RequiredError}
2192
2233
  * @memberof TagsApi
2193
2234
  */
2194
- public tagsGet(options?: AxiosRequestConfig) {
2235
+ public tagsGet(options?: RawAxiosRequestConfig) {
2195
2236
  return TagsApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
2196
2237
  }
2197
2238
  }
2198
2239
 
2199
2240
 
2241
+
@@ -16,10 +16,10 @@
16
16
  import type { Configuration } from './configuration';
17
17
  // Some imports not used depending on template conditions
18
18
  // @ts-ignore
19
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
19
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
20
20
  import globalAxios from 'axios';
21
21
 
22
- export const BASE_PATH = "http://localhost:8000/v1".replace(/\/+$/, "");
22
+ export const BASE_PATH = "http://org-note.com/api/v1".replace(/\/+$/, "");
23
23
 
24
24
  /**
25
25
  *
@@ -39,7 +39,7 @@ export const COLLECTION_FORMATS = {
39
39
  */
40
40
  export interface RequestArgs {
41
41
  url: string;
42
- options: AxiosRequestConfig;
42
+ options: RawAxiosRequestConfig;
43
43
  }
44
44
 
45
45
  /**
@@ -53,7 +53,7 @@ export class BaseAPI {
53
53
  constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
54
54
  if (configuration) {
55
55
  this.configuration = configuration;
56
- this.basePath = configuration.basePath || this.basePath;
56
+ this.basePath = configuration.basePath ?? basePath;
57
57
  }
58
58
  }
59
59
  };
@@ -70,3 +70,17 @@ export class RequiredError extends Error {
70
70
  this.name = "RequiredError"
71
71
  }
72
72
  }
73
+
74
+ interface ServerMap {
75
+ [key: string]: {
76
+ url: string,
77
+ description: string,
78
+ }[];
79
+ }
80
+
81
+ /**
82
+ *
83
+ * @export
84
+ */
85
+ export const operationServerMap: ServerMap = {
86
+ }
@@ -144,7 +144,7 @@ export const toPathString = function (url: URL) {
144
144
  */
145
145
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
146
146
  return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
147
- const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
147
+ const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
148
148
  return axios.request<T, R>(axiosRequestArgs);
149
149
  };
150
150
  }
@@ -19,6 +19,7 @@ export interface ConfigurationParameters {
19
19
  password?: string;
20
20
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
21
  basePath?: string;
22
+ serverIndex?: number;
22
23
  baseOptions?: any;
23
24
  formDataCtor?: new () => any;
24
25
  }
@@ -58,6 +59,13 @@ export class Configuration {
58
59
  * @memberof Configuration
59
60
  */
60
61
  basePath?: string;
62
+ /**
63
+ * override server index
64
+ *
65
+ * @type {number}
66
+ * @memberof Configuration
67
+ */
68
+ serverIndex?: number;
61
69
  /**
62
70
  * base options for axios calls
63
71
  *
@@ -80,6 +88,7 @@ export class Configuration {
80
88
  this.password = param.password;
81
89
  this.accessToken = param.accessToken;
82
90
  this.basePath = param.basePath;
91
+ this.serverIndex = param.serverIndex;
83
92
  this.baseOptions = param.baseOptions;
84
93
  this.formDataCtor = param.formDataCtor;
85
94
  }