Merge branch 'dev' into feat/add_site_news
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
Steven Tischer
2026-06-17 12:43:49 +02:00
47 changed files with 1725 additions and 743 deletions
+2 -1
View File
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
README.md
api.base.service.ts
api.module.ts
@@ -36,6 +35,7 @@ model/autocompleteResponse.ts
model/autocompleteResponseMeta.ts
model/autocompleteResponseResultsInner.ts
model/award.ts
model/bodyCreateUser.ts
model/bundProject.ts
model/bundProjectPage.ts
model/categoryNested.ts
@@ -95,6 +95,7 @@ model/topicSubfield.ts
model/topicsByTime.ts
model/topicsByYear.ts
model/topicsListResponse.ts
model/user.ts
model/validationError.ts
model/validationErrorLocInner.ts
model/value.ts
@@ -25,9 +25,13 @@ import { Observable } from 'rxjs';
// @ts-ignore
import { AccessGrant } from '../model/accessGrant';
// @ts-ignore
import { BodyCreateUser } from '../model/bodyCreateUser';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { IdentityGrant } from '../model/identityGrant';
// @ts-ignore
import { User } from '../model/user';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -46,6 +50,116 @@ export class INSEAccountServiceService extends BaseService {
super(basePath, configuration);
}
/**
* Create User
* @endpoint post /inse-account/create
* @param bodyCreateUser
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public createUser(
bodyCreateUser: BodyCreateUser,
observe?: 'body',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<User>;
public createUser(
bodyCreateUser: BodyCreateUser,
observe?: 'response',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpResponse<User>>;
public createUser(
bodyCreateUser: BodyCreateUser,
observe?: 'events',
reportProgress?: boolean,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<HttpEvent<User>>;
public createUser(
bodyCreateUser: BodyCreateUser,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
},
): Observable<any> {
if (bodyCreateUser === null || bodyCreateUser === undefined) {
throw new Error(
'Required parameter bodyCreateUser was null or undefined when calling createUser.',
);
}
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined =
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set(
'Accept',
localVarHttpHeaderAcceptSelected,
);
}
const localVarHttpContext: HttpContext =
options?.context ?? new HttpContext();
const localVarTransferCache: boolean = options?.transferCache ?? true;
// to determine the Content-Type header
const consumes: string[] = ['application/json'];
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set(
'Content-Type',
httpContentTypeSelected,
);
}
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}
let localVarPath = `/inse-account/create`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<User>('post', `${basePath}${localVarPath}`, {
context: localVarHttpContext,
body: bodyCreateUser,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined
? { transferCache: localVarTransferCache }
: {}),
reportProgress: reportProgress,
});
}
/**
* Get Access Grant
* @endpoint post /inse-account/auth/access
@@ -55,7 +169,7 @@ export class INSEAccountServiceService extends BaseService {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getAccessGrantInseAccountAuthAccessPost(
public getAccessGrant(
secret: string,
account: number,
organization: number,
@@ -67,7 +181,7 @@ export class INSEAccountServiceService extends BaseService {
transferCache?: boolean;
},
): Observable<AccessGrant>;
public getAccessGrantInseAccountAuthAccessPost(
public getAccessGrant(
secret: string,
account: number,
organization: number,
@@ -79,7 +193,7 @@ export class INSEAccountServiceService extends BaseService {
transferCache?: boolean;
},
): Observable<HttpResponse<AccessGrant>>;
public getAccessGrantInseAccountAuthAccessPost(
public getAccessGrant(
secret: string,
account: number,
organization: number,
@@ -91,7 +205,7 @@ export class INSEAccountServiceService extends BaseService {
transferCache?: boolean;
},
): Observable<HttpEvent<AccessGrant>>;
public getAccessGrantInseAccountAuthAccessPost(
public getAccessGrant(
secret: string,
account: number,
organization: number,
@@ -105,17 +219,17 @@ export class INSEAccountServiceService extends BaseService {
): Observable<any> {
if (secret === null || secret === undefined) {
throw new Error(
'Required parameter secret was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.',
'Required parameter secret was null or undefined when calling getAccessGrant.',
);
}
if (account === null || account === undefined) {
throw new Error(
'Required parameter account was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.',
'Required parameter account was null or undefined when calling getAccessGrant.',
);
}
if (organization === null || organization === undefined) {
throw new Error(
'Required parameter organization was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.',
'Required parameter organization was null or undefined when calling getAccessGrant.',
);
}
@@ -209,7 +323,7 @@ export class INSEAccountServiceService extends BaseService {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getIdentityGrantInseAccountAuthIdPost(
public getIdentityGrant(
username: string,
password: string,
observe?: 'body',
@@ -220,7 +334,7 @@ export class INSEAccountServiceService extends BaseService {
transferCache?: boolean;
},
): Observable<IdentityGrant>;
public getIdentityGrantInseAccountAuthIdPost(
public getIdentityGrant(
username: string,
password: string,
observe?: 'response',
@@ -231,7 +345,7 @@ export class INSEAccountServiceService extends BaseService {
transferCache?: boolean;
},
): Observable<HttpResponse<IdentityGrant>>;
public getIdentityGrantInseAccountAuthIdPost(
public getIdentityGrant(
username: string,
password: string,
observe?: 'events',
@@ -242,7 +356,7 @@ export class INSEAccountServiceService extends BaseService {
transferCache?: boolean;
},
): Observable<HttpEvent<IdentityGrant>>;
public getIdentityGrantInseAccountAuthIdPost(
public getIdentityGrant(
username: string,
password: string,
observe: any = 'body',
@@ -255,12 +369,12 @@ export class INSEAccountServiceService extends BaseService {
): Observable<any> {
if (username === null || username === undefined) {
throw new Error(
'Required parameter username was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.',
'Required parameter username was null or undefined when calling getIdentityGrant.',
);
}
if (password === null || password === undefined) {
throw new Error(
'Required parameter password was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.',
'Required parameter password was null or undefined when calling getIdentityGrant.',
);
}
@@ -50,7 +50,7 @@ export class InstitutionsService extends BaseService {
/**
* Returns institution options for autocomplete inputs.
* @endpoint get /api/institutions/autocomplete
* @endpoint get /api/inse-service/institutions/autocomplete
* @param query Institution search text, for example \&#39;Duisburg Essen\&#39;.
* @param countryCode Optional ISO country code filter.
* @param type Optional institution type filter.
@@ -168,7 +168,7 @@ export class InstitutionsService extends BaseService {
}
}
let localVarPath = `/api/institutions/autocomplete`;
let localVarPath = `/api/inse-service/institutions/autocomplete`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AutocompleteResponse>(
'get',
@@ -191,7 +191,7 @@ export class InstitutionsService extends BaseService {
/**
* Returns a single institution by ID.
* Returns a single institution by its OpenAlex ID.
* @endpoint get /api/institutions/{id}
* @endpoint get /api/inse-service/institutions/{id}
* @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -272,7 +272,7 @@ export class InstitutionsService extends BaseService {
}
}
let localVarPath = `/api/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Institution>(
'get',
@@ -293,7 +293,7 @@ export class InstitutionsService extends BaseService {
/**
* Returns a list of OpenAlex institutions.
* @endpoint get /api/institutions
* @endpoint get /api/inse-service/institutions
* @param search Full-text search, for example \&#39;Duisburg Essen\&#39;.
* @param filter OpenAlex filter, for example \&#39;country_code:DE,type:education\&#39;.
* @param sort Sort field, for example \&#39;works_count:desc\&#39;.
@@ -455,7 +455,7 @@ export class InstitutionsService extends BaseService {
}
}
let localVarPath = `/api/institutions`;
let localVarPath = `/api/inse-service/institutions`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<InstitutionsListResponse>(
'get',
+2
View File
@@ -12,4 +12,6 @@ export interface AuthAccount {
i: number;
l: string;
o: number;
e: string;
on: string;
}
@@ -0,0 +1,17 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export interface BodyCreateUser {
username: string;
password: string;
email: string;
institution: string;
superadmin?: boolean;
}
@@ -9,9 +9,9 @@
*/
export const CollaborationNetworkNodeType = {
Author: 'author',
Institution: 'institution',
Work: 'work',
author: 'author',
institution: 'institution',
work: 'work',
} as const;
export type CollaborationNetworkNodeType =
(typeof CollaborationNetworkNodeType)[keyof typeof CollaborationNetworkNodeType];
+2
View File
@@ -16,6 +16,7 @@ export * from './autocompleteResponse';
export * from './autocompleteResponseMeta';
export * from './autocompleteResponseResultsInner';
export * from './award';
export * from './bodyCreateUser';
export * from './bundProject';
export * from './bundProjectPage';
export * from './categoryNested';
@@ -74,6 +75,7 @@ export * from './topicSubfield';
export * from './topicsByTime';
export * from './topicsByYear';
export * from './topicsListResponse';
export * from './user';
export * from './validationError';
export * from './validationErrorLocInner';
export * from './value';
+43
View File
@@ -0,0 +1,43 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* An entry in the user configuration file.
*/
export interface User {
/**
* The username of the user.
*/
username: string;
/**
* The password of the user.
*/
password: string;
/**
* The email of the user.
*/
email: string;
/**
* The account id of the user.
*/
account: number;
/**
* The organization id of the user.
*/
organization: number;
/**
* The organization name of the user.
*/
organization_name: string;
/**
* Indicates whether the user is a superadmin.
*/
superadmin?: boolean;
}