@vbasoftware/vbapi-vbasoftware-typescript-axios 1.20231104.1 → 1.20231108.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/user-api.ts +96 -0
- package/package.json +1 -1
package/api/user-api.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { MultiCodeResponseListVBAResponse } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { StringListVBAResponse } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { StringVBAResponse } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
28
30
|
import { UserAuthenticationResponseVBAResponse } from '../models';
|
|
@@ -405,6 +407,53 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
405
407
|
|
|
406
408
|
|
|
407
409
|
|
|
410
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
413
|
+
|
|
414
|
+
return {
|
|
415
|
+
url: toPathString(localVarUrlObj),
|
|
416
|
+
options: localVarRequestOptions,
|
|
417
|
+
};
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
* Lists the databases that are available for API access for the given client id and client code.
|
|
421
|
+
* @summary List Databases
|
|
422
|
+
* @param {string} vbasoftwareClientId Client ID
|
|
423
|
+
* @param {string} vbasoftwareClientCode Client Code
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
listDatabases: async (vbasoftwareClientId: string, vbasoftwareClientCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
428
|
+
// verify required parameter 'vbasoftwareClientId' is not null or undefined
|
|
429
|
+
assertParamExists('listDatabases', 'vbasoftwareClientId', vbasoftwareClientId)
|
|
430
|
+
// verify required parameter 'vbasoftwareClientCode' is not null or undefined
|
|
431
|
+
assertParamExists('listDatabases', 'vbasoftwareClientCode', vbasoftwareClientCode)
|
|
432
|
+
const localVarPath = `/databases`;
|
|
433
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
434
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
435
|
+
let baseOptions;
|
|
436
|
+
if (configuration) {
|
|
437
|
+
baseOptions = configuration.baseOptions;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
441
|
+
const localVarHeaderParameter = {} as any;
|
|
442
|
+
const localVarQueryParameter = {} as any;
|
|
443
|
+
|
|
444
|
+
// authentication apiKeyAuth required
|
|
445
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
446
|
+
|
|
447
|
+
if (vbasoftwareClientId !== undefined && vbasoftwareClientId !== null) {
|
|
448
|
+
localVarHeaderParameter['vbasoftware-client-id'] = String(vbasoftwareClientId);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
if (vbasoftwareClientCode !== undefined && vbasoftwareClientCode !== null) {
|
|
452
|
+
localVarHeaderParameter['vbasoftware-client-code'] = String(vbasoftwareClientCode);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
408
457
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
409
458
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
410
459
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -948,6 +997,18 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
948
997
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(vbasoftwareDatabase, userID, options);
|
|
949
998
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
950
999
|
},
|
|
1000
|
+
/**
|
|
1001
|
+
* Lists the databases that are available for API access for the given client id and client code.
|
|
1002
|
+
* @summary List Databases
|
|
1003
|
+
* @param {string} vbasoftwareClientId Client ID
|
|
1004
|
+
* @param {string} vbasoftwareClientCode Client Code
|
|
1005
|
+
* @param {*} [options] Override http request option.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1007
|
+
*/
|
|
1008
|
+
async listDatabases(vbasoftwareClientId: string, vbasoftwareClientCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StringListVBAResponse>> {
|
|
1009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDatabases(vbasoftwareClientId, vbasoftwareClientCode, options);
|
|
1010
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1011
|
+
},
|
|
951
1012
|
/**
|
|
952
1013
|
* Lists all Users
|
|
953
1014
|
* @summary List Users
|
|
@@ -1142,6 +1203,17 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
1142
1203
|
getUser(vbasoftwareDatabase: string, userID: string, options?: any): AxiosPromise<UsersVBAResponse> {
|
|
1143
1204
|
return localVarFp.getUser(vbasoftwareDatabase, userID, options).then((request) => request(axios, basePath));
|
|
1144
1205
|
},
|
|
1206
|
+
/**
|
|
1207
|
+
* Lists the databases that are available for API access for the given client id and client code.
|
|
1208
|
+
* @summary List Databases
|
|
1209
|
+
* @param {string} vbasoftwareClientId Client ID
|
|
1210
|
+
* @param {string} vbasoftwareClientCode Client Code
|
|
1211
|
+
* @param {*} [options] Override http request option.
|
|
1212
|
+
* @throws {RequiredError}
|
|
1213
|
+
*/
|
|
1214
|
+
listDatabases(vbasoftwareClientId: string, vbasoftwareClientCode: string, options?: any): AxiosPromise<StringListVBAResponse> {
|
|
1215
|
+
return localVarFp.listDatabases(vbasoftwareClientId, vbasoftwareClientCode, options).then((request) => request(axios, basePath));
|
|
1216
|
+
},
|
|
1145
1217
|
/**
|
|
1146
1218
|
* Lists all Users
|
|
1147
1219
|
* @summary List Users
|
|
@@ -1327,6 +1399,17 @@ export interface UserApiInterface {
|
|
|
1327
1399
|
*/
|
|
1328
1400
|
getUser(vbasoftwareDatabase: string, userID: string, options?: AxiosRequestConfig): AxiosPromise<UsersVBAResponse>;
|
|
1329
1401
|
|
|
1402
|
+
/**
|
|
1403
|
+
* Lists the databases that are available for API access for the given client id and client code.
|
|
1404
|
+
* @summary List Databases
|
|
1405
|
+
* @param {string} vbasoftwareClientId Client ID
|
|
1406
|
+
* @param {string} vbasoftwareClientCode Client Code
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
* @memberof UserApiInterface
|
|
1410
|
+
*/
|
|
1411
|
+
listDatabases(vbasoftwareClientId: string, vbasoftwareClientCode: string, options?: AxiosRequestConfig): AxiosPromise<StringListVBAResponse>;
|
|
1412
|
+
|
|
1330
1413
|
/**
|
|
1331
1414
|
* Lists all Users
|
|
1332
1415
|
* @summary List Users
|
|
@@ -1526,6 +1609,19 @@ export class UserApi extends BaseAPI implements UserApiInterface {
|
|
|
1526
1609
|
return UserApiFp(this.configuration).getUser(vbasoftwareDatabase, userID, options).then((request) => request(this.axios, this.basePath));
|
|
1527
1610
|
}
|
|
1528
1611
|
|
|
1612
|
+
/**
|
|
1613
|
+
* Lists the databases that are available for API access for the given client id and client code.
|
|
1614
|
+
* @summary List Databases
|
|
1615
|
+
* @param {string} vbasoftwareClientId Client ID
|
|
1616
|
+
* @param {string} vbasoftwareClientCode Client Code
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
* @memberof UserApi
|
|
1620
|
+
*/
|
|
1621
|
+
public listDatabases(vbasoftwareClientId: string, vbasoftwareClientCode: string, options?: AxiosRequestConfig) {
|
|
1622
|
+
return UserApiFp(this.configuration).listDatabases(vbasoftwareClientId, vbasoftwareClientCode, options).then((request) => request(this.axios, this.basePath));
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1529
1625
|
/**
|
|
1530
1626
|
* Lists all Users
|
|
1531
1627
|
* @summary List Users
|