Skip to content

Commit

Permalink
merge(1139): merge from main, refs: #1139
Browse files Browse the repository at this point in the history
  • Loading branch information
MCatherine1994 committed Feb 6, 2024
2 parents 8ff81c5 + 05a1124 commit 7ddde7b
Show file tree
Hide file tree
Showing 40 changed files with 1,329 additions and 98 deletions.
2 changes: 1 addition & 1 deletion client-code-gen/admin-management-openapi.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
.npmignore
README.md
api.ts
api/famaccess-control-privilege-api.ts
api/admin-user-accesses-api.ts
api/famaccess-control-privileges-api.ts
api/famapplication-admin-api.ts
api/famapplications-api.ts
api/smoke-test-api.ts
Expand All @@ -11,16 +12,22 @@ common.ts
configuration.ts
git_push.sh
index.ts
model/admin-role-auth-group.ts
model/admin-user-access-response.ts
model/app-env.ts
model/fam-access-control-privilege-create-request.ts
model/fam-access-control-privilege-create-response.ts
model/fam-access-control-privilege-get-response.ts
model/fam-app-admin-create-request.ts
model/fam-app-admin-get-response.ts
model/fam-application-base.ts
model/fam-application-dto.ts
model/fam-application-get-response.ts
model/fam-auth-grant-dto.ts
model/fam-forest-client-base.ts
model/fam-grant-detail-dto.ts
model/fam-role-base.ts
model/fam-role-dto.ts
model/fam-role-with-client-dto.ts
model/fam-user-info-dto.ts
model/fam-user-type-dto.ts
Expand Down
3 changes: 2 additions & 1 deletion client-code-gen/gen/admin-management-api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@



export * from './api/famaccess-control-privilege-api';
export * from './api/admin-user-accesses-api';
export * from './api/famaccess-control-privileges-api';
export * from './api/famapplication-admin-api';
export * from './api/famapplications-api';
export * from './api/smoke-test-api';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
/* tslint:disable */
/* eslint-disable */
/**
* Forest Access Management - FAM - Admin Management API
* Forest Access Management Admin Management API used by the Forest Access Management application to define admin access to forest applications.
*
* The version of the OpenAPI document: 0.0.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
// @ts-ignore
import { AdminUserAccessResponse } from '../model';
/**
* AdminUserAccessesApi - axios parameter creator
* @export
*/
export const AdminUserAccessesApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant.
* @summary Admin User Access Privilege
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
adminUserAccessPrivilege: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/admin-user-accesses`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication 6jfveou69mgford233or30hmta required
// oauth required
await setOAuthToObject(localVarHeaderParameter, "6jfveou69mgford233or30hmta", [], configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
}
};

/**
* AdminUserAccessesApi - functional programming interface
* @export
*/
export const AdminUserAccessesApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = AdminUserAccessesApiAxiosParamCreator(configuration)
return {
/**
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant.
* @summary Admin User Access Privilege
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async adminUserAccessPrivilege(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserAccessResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUserAccessPrivilege(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};

/**
* AdminUserAccessesApi - factory interface
* @export
*/
export const AdminUserAccessesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = AdminUserAccessesApiFp(configuration)
return {
/**
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant.
* @summary Admin User Access Privilege
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
adminUserAccessPrivilege(options?: any): AxiosPromise<AdminUserAccessResponse> {
return localVarFp.adminUserAccessPrivilege(options).then((request) => request(axios, basePath));
},
};
};

/**
* AdminUserAccessesApi - interface
* @export
* @interface AdminUserAccessesApi
*/
export interface AdminUserAccessesApiInterface {
/**
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant.
* @summary Admin User Access Privilege
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AdminUserAccessesApiInterface
*/
adminUserAccessPrivilege(options?: AxiosRequestConfig): AxiosPromise<AdminUserAccessResponse>;

}

/**
* AdminUserAccessesApi - object-oriented interface
* @export
* @class AdminUserAccessesApi
* @extends {BaseAPI}
*/
export class AdminUserAccessesApi extends BaseAPI implements AdminUserAccessesApiInterface {
/**
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant.
* @summary Admin User Access Privilege
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AdminUserAccessesApi
*/
public adminUserAccessPrivilege(options?: AxiosRequestConfig) {
return AdminUserAccessesApiFp(this.configuration).adminUserAccessPrivilege(options).then((request) => request(this.axios, this.basePath));
}
}

Loading

0 comments on commit 7ddde7b

Please sign in to comment.