| @@ -1,29 +1,48 @@ | |||
| .gitignore | |||
| .openapi-generator-ignore | |||
| README.md | |||
| api.module.ts | |||
| api/api.ts | |||
| api/contact.service.ts | |||
| api/loginCheck.service.ts | |||
| api/mediaObject.service.ts | |||
| api/partner.service.ts | |||
| api/post.service.ts | |||
| api/user.service.ts | |||
| configuration.ts | |||
| encoder.ts | |||
| git_push.sh | |||
| index.ts | |||
| model/apiContactsGetCollection200Response.ts | |||
| model/apiContactsGetCollection200Response1.ts | |||
| model/apiContactsGetCollection200Response1Links.ts | |||
| model/apiContactsGetCollection200Response1LinksSelf.ts | |||
| model/apiContactsGetCollection200ResponseHydraSearch.ts | |||
| model/apiContactsGetCollection200ResponseHydraSearchHydraMappingInner.ts | |||
| model/apiContactsGetCollection200ResponseHydraView.ts | |||
| model/apiMediaObjectsGetCollection200Response.ts | |||
| model/apiMediaObjectsGetCollection200Response1.ts | |||
| model/apiPartnersGetCollection200Response.ts | |||
| model/apiPartnersGetCollection200Response1.ts | |||
| model/apiPostsGetCollection200Response.ts | |||
| model/apiPostsGetCollection200Response1.ts | |||
| model/apiPostsGetCollection200Response1Links.ts | |||
| model/apiPostsGetCollection200Response1LinksSelf.ts | |||
| model/apiPostsGetCollection200ResponseHydraSearch.ts | |||
| model/apiPostsGetCollection200ResponseHydraSearchHydraMappingInner.ts | |||
| model/apiPostsGetCollection200ResponseHydraView.ts | |||
| model/apiUsersGetCollection200Response.ts | |||
| model/apiUsersGetCollection200Response1.ts | |||
| model/contact.ts | |||
| model/contactJsonhal.ts | |||
| model/contactJsonhalLinks.ts | |||
| model/contactJsonld.ts | |||
| model/loginCheckPost200Response.ts | |||
| model/loginCheckPostRequest.ts | |||
| model/mediaObjectJsonhalMediaObjectRead.ts | |||
| model/mediaObjectJsonldMediaObjectRead.ts | |||
| model/mediaObjectMediaObjectRead.ts | |||
| model/models.ts | |||
| model/partner.ts | |||
| model/partnerJsonhal.ts | |||
| model/partnerJsonld.ts | |||
| model/post.ts | |||
| model/postJsonhal.ts | |||
| model/postJsonhalLinks.ts | |||
| model/postJsonld.ts | |||
| model/user.ts | |||
| model/userJsonhal.ts | |||
| @@ -1,7 +1,13 @@ | |||
| export * from './contact.service'; | |||
| import { ContactService } from './contact.service'; | |||
| export * from './loginCheck.service'; | |||
| import { LoginCheckService } from './loginCheck.service'; | |||
| export * from './mediaObject.service'; | |||
| import { MediaObjectService } from './mediaObject.service'; | |||
| export * from './partner.service'; | |||
| import { PartnerService } from './partner.service'; | |||
| export * from './post.service'; | |||
| import { PostService } from './post.service'; | |||
| export * from './user.service'; | |||
| import { UserService } from './user.service'; | |||
| export const APIS = [LoginCheckService, PostService, UserService]; | |||
| export const APIS = [ContactService, LoginCheckService, MediaObjectService, PartnerService, PostService, UserService]; | |||
| @@ -0,0 +1,474 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| /* tslint:disable:no-unused-variable member-ordering */ | |||
| import { Inject, Injectable, Optional } from '@angular/core'; | |||
| import { HttpClient, HttpHeaders, HttpParams, | |||
| HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | |||
| } from '@angular/common/http'; | |||
| import { CustomHttpParameterCodec } from '../encoder'; | |||
| import { Observable } from 'rxjs'; | |||
| // @ts-ignore | |||
| import { ApiContactsGetCollection200Response } from '../model/apiContactsGetCollection200Response'; | |||
| // @ts-ignore | |||
| import { ApiContactsGetCollection200Response1 } from '../model/apiContactsGetCollection200Response1'; | |||
| // @ts-ignore | |||
| import { Contact } from '../model/contact'; | |||
| // @ts-ignore | |||
| import { ContactJsonhal } from '../model/contactJsonhal'; | |||
| // @ts-ignore | |||
| import { ContactJsonld } from '../model/contactJsonld'; | |||
| // @ts-ignore | |||
| import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | |||
| import { Configuration } from '../configuration'; | |||
| @Injectable({ | |||
| providedIn: 'root' | |||
| }) | |||
| export class ContactService { | |||
| protected basePath = 'http://localhost'; | |||
| public defaultHeaders = new HttpHeaders(); | |||
| public configuration = new Configuration(); | |||
| public encoder: HttpParameterCodec; | |||
| constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { | |||
| if (configuration) { | |||
| this.configuration = configuration; | |||
| } | |||
| if (typeof this.configuration.basePath !== 'string') { | |||
| if (Array.isArray(basePath) && basePath.length > 0) { | |||
| basePath = basePath[0]; | |||
| } | |||
| if (typeof basePath !== 'string') { | |||
| basePath = this.basePath; | |||
| } | |||
| this.configuration.basePath = basePath; | |||
| } | |||
| this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); | |||
| } | |||
| // @ts-ignore | |||
| private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { | |||
| if (typeof value === "object" && value instanceof Date === false) { | |||
| httpParams = this.addToHttpParamsRecursive(httpParams, value); | |||
| } else { | |||
| httpParams = this.addToHttpParamsRecursive(httpParams, value, key); | |||
| } | |||
| return httpParams; | |||
| } | |||
| private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { | |||
| if (value == null) { | |||
| return httpParams; | |||
| } | |||
| if (typeof value === "object") { | |||
| if (Array.isArray(value)) { | |||
| (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); | |||
| } else if (value instanceof Date) { | |||
| if (key != null) { | |||
| httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); | |||
| } else { | |||
| throw Error("key may not be null if value is Date"); | |||
| } | |||
| } else { | |||
| Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( | |||
| httpParams, value[k], key != null ? `${key}.${k}` : k)); | |||
| } | |||
| } else if (key != null) { | |||
| httpParams = httpParams.append(key, value); | |||
| } else { | |||
| throw Error("key may not be null if value is not object or array"); | |||
| } | |||
| return httpParams; | |||
| } | |||
| /** | |||
| * Retrieves the collection of Contact resources. | |||
| * Retrieves the collection of Contact resources. | |||
| * @param page The collection page number | |||
| * @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 contactsGetCollection(page?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<ApiContactsGetCollection200Response>; | |||
| public contactsGetCollection(page?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ApiContactsGetCollection200Response>>; | |||
| public contactsGetCollection(page?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ApiContactsGetCollection200Response>>; | |||
| public contactsGetCollection(page?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | |||
| if (page !== undefined && page !== null) { | |||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||
| <any>page, 'page'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/contacts`; | |||
| return this.httpClient.request<ApiContactsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| params: localVarQueryParameters, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Contact resource. | |||
| * Removes the Contact resource. | |||
| * @param id ContactApi identifier | |||
| * @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 contactsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | |||
| public contactsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | |||
| public contactsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | |||
| public contactsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling contactsIdDelete.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/contacts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Contact resource. | |||
| * Retrieves a Contact resource. | |||
| * @param id ContactApi identifier | |||
| * @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 contactsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<ContactJsonld>; | |||
| public contactsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ContactJsonld>>; | |||
| public contactsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ContactJsonld>>; | |||
| public contactsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling contactsIdGet.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/contacts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<ContactJsonld>('get', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Updates the Contact resource. | |||
| * Updates the Contact resource. | |||
| * @param id ContactApi identifier | |||
| * @param contact The updated Contact resource | |||
| * @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 contactsIdPatch(id: string, contact: Contact, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<ContactJsonld>; | |||
| public contactsIdPatch(id: string, contact: Contact, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ContactJsonld>>; | |||
| public contactsIdPatch(id: string, contact: Contact, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ContactJsonld>>; | |||
| public contactsIdPatch(id: string, contact: Contact, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling contactsIdPatch.'); | |||
| } | |||
| if (contact === null || contact === undefined) { | |||
| throw new Error('Required parameter contact was null or undefined when calling contactsIdPatch.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| // to determine the Content-Type header | |||
| const consumes: string[] = [ | |||
| 'application/merge-patch+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 = `/api/contacts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<ContactJsonld>('patch', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| body: contact, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Creates a Contact resource. | |||
| * Creates a Contact resource. | |||
| * @param contactJsonld The new Contact resource | |||
| * @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 contactsPost(contactJsonld: ContactJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<ContactJsonld>; | |||
| public contactsPost(contactJsonld: ContactJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ContactJsonld>>; | |||
| public contactsPost(contactJsonld: ContactJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ContactJsonld>>; | |||
| public contactsPost(contactJsonld: ContactJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| if (contactJsonld === null || contactJsonld === undefined) { | |||
| throw new Error('Required parameter contactJsonld was null or undefined when calling contactsPost.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| // to determine the Content-Type header | |||
| const consumes: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+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 = `/api/contacts`; | |||
| return this.httpClient.request<ContactJsonld>('post', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| body: contactJsonld, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| } | |||
| @@ -0,0 +1,346 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| /* tslint:disable:no-unused-variable member-ordering */ | |||
| import { Inject, Injectable, Optional } from '@angular/core'; | |||
| import { HttpClient, HttpHeaders, HttpParams, | |||
| HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | |||
| } from '@angular/common/http'; | |||
| import { CustomHttpParameterCodec } from '../encoder'; | |||
| import { Observable } from 'rxjs'; | |||
| // @ts-ignore | |||
| import { ApiMediaObjectsGetCollection200Response } from '../model/apiMediaObjectsGetCollection200Response'; | |||
| // @ts-ignore | |||
| import { ApiMediaObjectsGetCollection200Response1 } from '../model/apiMediaObjectsGetCollection200Response1'; | |||
| // @ts-ignore | |||
| import { MediaObjectJsonhalMediaObjectRead } from '../model/mediaObjectJsonhalMediaObjectRead'; | |||
| // @ts-ignore | |||
| import { MediaObjectJsonldMediaObjectRead } from '../model/mediaObjectJsonldMediaObjectRead'; | |||
| // @ts-ignore | |||
| import { MediaObjectMediaObjectRead } from '../model/mediaObjectMediaObjectRead'; | |||
| // @ts-ignore | |||
| import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | |||
| import { Configuration } from '../configuration'; | |||
| @Injectable({ | |||
| providedIn: 'root' | |||
| }) | |||
| export class MediaObjectService { | |||
| protected basePath = 'http://localhost'; | |||
| public defaultHeaders = new HttpHeaders(); | |||
| public configuration = new Configuration(); | |||
| public encoder: HttpParameterCodec; | |||
| constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { | |||
| if (configuration) { | |||
| this.configuration = configuration; | |||
| } | |||
| if (typeof this.configuration.basePath !== 'string') { | |||
| if (Array.isArray(basePath) && basePath.length > 0) { | |||
| basePath = basePath[0]; | |||
| } | |||
| if (typeof basePath !== 'string') { | |||
| basePath = this.basePath; | |||
| } | |||
| this.configuration.basePath = basePath; | |||
| } | |||
| this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); | |||
| } | |||
| /** | |||
| * @param consumes string[] mime-types | |||
| * @return true: consumes contains 'multipart/form-data', false: otherwise | |||
| */ | |||
| private canConsumeForm(consumes: string[]): boolean { | |||
| const form = 'multipart/form-data'; | |||
| for (const consume of consumes) { | |||
| if (form === consume) { | |||
| return true; | |||
| } | |||
| } | |||
| return false; | |||
| } | |||
| // @ts-ignore | |||
| private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { | |||
| if (typeof value === "object" && value instanceof Date === false) { | |||
| httpParams = this.addToHttpParamsRecursive(httpParams, value); | |||
| } else { | |||
| httpParams = this.addToHttpParamsRecursive(httpParams, value, key); | |||
| } | |||
| return httpParams; | |||
| } | |||
| private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { | |||
| if (value == null) { | |||
| return httpParams; | |||
| } | |||
| if (typeof value === "object") { | |||
| if (Array.isArray(value)) { | |||
| (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); | |||
| } else if (value instanceof Date) { | |||
| if (key != null) { | |||
| httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); | |||
| } else { | |||
| throw Error("key may not be null if value is Date"); | |||
| } | |||
| } else { | |||
| Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( | |||
| httpParams, value[k], key != null ? `${key}.${k}` : k)); | |||
| } | |||
| } else if (key != null) { | |||
| httpParams = httpParams.append(key, value); | |||
| } else { | |||
| throw Error("key may not be null if value is not object or array"); | |||
| } | |||
| return httpParams; | |||
| } | |||
| /** | |||
| * Retrieves the collection of MediaObject resources. | |||
| * Retrieves the collection of MediaObject resources. | |||
| * @param page The collection page number | |||
| * @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 mediaObjectsGetCollection(page?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<ApiMediaObjectsGetCollection200Response>; | |||
| public mediaObjectsGetCollection(page?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ApiMediaObjectsGetCollection200Response>>; | |||
| public mediaObjectsGetCollection(page?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ApiMediaObjectsGetCollection200Response>>; | |||
| public mediaObjectsGetCollection(page?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | |||
| if (page !== undefined && page !== null) { | |||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||
| <any>page, 'page'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/media_objects`; | |||
| return this.httpClient.request<ApiMediaObjectsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| params: localVarQueryParameters, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a MediaObject resource. | |||
| * Retrieves a MediaObject resource. | |||
| * @param id MediaObject identifier | |||
| * @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 mediaObjectsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<MediaObjectJsonldMediaObjectRead>; | |||
| public mediaObjectsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<MediaObjectJsonldMediaObjectRead>>; | |||
| public mediaObjectsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<MediaObjectJsonldMediaObjectRead>>; | |||
| public mediaObjectsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling mediaObjectsIdGet.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/media_objects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<MediaObjectJsonldMediaObjectRead>('get', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Creates a MediaObject resource. | |||
| * Creates a MediaObject resource. | |||
| * @param file | |||
| * @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 mediaObjectsPost(file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<MediaObjectJsonldMediaObjectRead>; | |||
| public mediaObjectsPost(file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<MediaObjectJsonldMediaObjectRead>>; | |||
| public mediaObjectsPost(file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<MediaObjectJsonldMediaObjectRead>>; | |||
| public mediaObjectsPost(file?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| // to determine the Content-Type header | |||
| const consumes: string[] = [ | |||
| 'multipart/form-data' | |||
| ]; | |||
| const canConsumeForm = this.canConsumeForm(consumes); | |||
| let localVarFormParams: { append(param: string, value: any): any; }; | |||
| let localVarUseForm = false; | |||
| let localVarConvertFormParamsToString = false; | |||
| // use FormData to transmit files using content-type "multipart/form-data" | |||
| // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data | |||
| localVarUseForm = canConsumeForm; | |||
| if (localVarUseForm) { | |||
| localVarFormParams = new FormData(); | |||
| } else { | |||
| localVarFormParams = new HttpParams({encoder: this.encoder}); | |||
| } | |||
| if (file !== undefined) { | |||
| localVarFormParams = localVarFormParams.append('file', <any>file) as any || localVarFormParams; | |||
| } | |||
| 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 = `/api/media_objects`; | |||
| return this.httpClient.request<MediaObjectJsonldMediaObjectRead>('post', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| } | |||
| @@ -0,0 +1,474 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| /* tslint:disable:no-unused-variable member-ordering */ | |||
| import { Inject, Injectable, Optional } from '@angular/core'; | |||
| import { HttpClient, HttpHeaders, HttpParams, | |||
| HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | |||
| } from '@angular/common/http'; | |||
| import { CustomHttpParameterCodec } from '../encoder'; | |||
| import { Observable } from 'rxjs'; | |||
| // @ts-ignore | |||
| import { ApiPartnersGetCollection200Response } from '../model/apiPartnersGetCollection200Response'; | |||
| // @ts-ignore | |||
| import { ApiPartnersGetCollection200Response1 } from '../model/apiPartnersGetCollection200Response1'; | |||
| // @ts-ignore | |||
| import { Partner } from '../model/partner'; | |||
| // @ts-ignore | |||
| import { PartnerJsonhal } from '../model/partnerJsonhal'; | |||
| // @ts-ignore | |||
| import { PartnerJsonld } from '../model/partnerJsonld'; | |||
| // @ts-ignore | |||
| import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | |||
| import { Configuration } from '../configuration'; | |||
| @Injectable({ | |||
| providedIn: 'root' | |||
| }) | |||
| export class PartnerService { | |||
| protected basePath = 'http://localhost'; | |||
| public defaultHeaders = new HttpHeaders(); | |||
| public configuration = new Configuration(); | |||
| public encoder: HttpParameterCodec; | |||
| constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { | |||
| if (configuration) { | |||
| this.configuration = configuration; | |||
| } | |||
| if (typeof this.configuration.basePath !== 'string') { | |||
| if (Array.isArray(basePath) && basePath.length > 0) { | |||
| basePath = basePath[0]; | |||
| } | |||
| if (typeof basePath !== 'string') { | |||
| basePath = this.basePath; | |||
| } | |||
| this.configuration.basePath = basePath; | |||
| } | |||
| this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); | |||
| } | |||
| // @ts-ignore | |||
| private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { | |||
| if (typeof value === "object" && value instanceof Date === false) { | |||
| httpParams = this.addToHttpParamsRecursive(httpParams, value); | |||
| } else { | |||
| httpParams = this.addToHttpParamsRecursive(httpParams, value, key); | |||
| } | |||
| return httpParams; | |||
| } | |||
| private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { | |||
| if (value == null) { | |||
| return httpParams; | |||
| } | |||
| if (typeof value === "object") { | |||
| if (Array.isArray(value)) { | |||
| (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); | |||
| } else if (value instanceof Date) { | |||
| if (key != null) { | |||
| httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); | |||
| } else { | |||
| throw Error("key may not be null if value is Date"); | |||
| } | |||
| } else { | |||
| Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( | |||
| httpParams, value[k], key != null ? `${key}.${k}` : k)); | |||
| } | |||
| } else if (key != null) { | |||
| httpParams = httpParams.append(key, value); | |||
| } else { | |||
| throw Error("key may not be null if value is not object or array"); | |||
| } | |||
| return httpParams; | |||
| } | |||
| /** | |||
| * Retrieves the collection of Partner resources. | |||
| * Retrieves the collection of Partner resources. | |||
| * @param page The collection page number | |||
| * @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 partnersGetCollection(page?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<ApiPartnersGetCollection200Response>; | |||
| public partnersGetCollection(page?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ApiPartnersGetCollection200Response>>; | |||
| public partnersGetCollection(page?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ApiPartnersGetCollection200Response>>; | |||
| public partnersGetCollection(page?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | |||
| if (page !== undefined && page !== null) { | |||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||
| <any>page, 'page'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/partners`; | |||
| return this.httpClient.request<ApiPartnersGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| params: localVarQueryParameters, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Partner resource. | |||
| * Removes the Partner resource. | |||
| * @param id PartnerApi identifier | |||
| * @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 partnersIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | |||
| public partnersIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | |||
| public partnersIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | |||
| public partnersIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling partnersIdDelete.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/partners/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Partner resource. | |||
| * Retrieves a Partner resource. | |||
| * @param id PartnerApi identifier | |||
| * @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 partnersIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<PartnerJsonld>; | |||
| public partnersIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<PartnerJsonld>>; | |||
| public partnersIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<PartnerJsonld>>; | |||
| public partnersIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling partnersIdGet.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| 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 = `/api/partners/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<PartnerJsonld>('get', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Updates the Partner resource. | |||
| * Updates the Partner resource. | |||
| * @param id PartnerApi identifier | |||
| * @param partner The updated Partner resource | |||
| * @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 partnersIdPatch(id: string, partner: Partner, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<PartnerJsonld>; | |||
| public partnersIdPatch(id: string, partner: Partner, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<PartnerJsonld>>; | |||
| public partnersIdPatch(id: string, partner: Partner, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<PartnerJsonld>>; | |||
| public partnersIdPatch(id: string, partner: Partner, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling partnersIdPatch.'); | |||
| } | |||
| if (partner === null || partner === undefined) { | |||
| throw new Error('Required parameter partner was null or undefined when calling partnersIdPatch.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| // to determine the Content-Type header | |||
| const consumes: string[] = [ | |||
| 'application/merge-patch+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 = `/api/partners/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<PartnerJsonld>('patch', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| body: partner, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Creates a Partner resource. | |||
| * Creates a Partner resource. | |||
| * @param partnerJsonld The new Partner resource | |||
| * @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 partnersPost(partnerJsonld: PartnerJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<PartnerJsonld>; | |||
| public partnersPost(partnerJsonld: PartnerJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<PartnerJsonld>>; | |||
| public partnersPost(partnerJsonld: PartnerJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<PartnerJsonld>>; | |||
| public partnersPost(partnerJsonld: PartnerJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<any> { | |||
| if (partnerJsonld === null || partnerJsonld === undefined) { | |||
| throw new Error('Required parameter partnerJsonld was null or undefined when calling partnersPost.'); | |||
| } | |||
| let localVarHeaders = this.defaultHeaders; | |||
| let localVarCredential: string | undefined; | |||
| // authentication (JWT) required | |||
| localVarCredential = this.configuration.lookupCredential('JWT'); | |||
| if (localVarCredential) { | |||
| localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); | |||
| } | |||
| let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | |||
| if (localVarHttpHeaderAcceptSelected === undefined) { | |||
| // to determine the Accept header | |||
| const httpHeaderAccepts: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+json' | |||
| ]; | |||
| localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | |||
| } | |||
| if (localVarHttpHeaderAcceptSelected !== undefined) { | |||
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | |||
| } | |||
| let localVarHttpContext: HttpContext | undefined = options && options.context; | |||
| if (localVarHttpContext === undefined) { | |||
| localVarHttpContext = new HttpContext(); | |||
| } | |||
| // to determine the Content-Type header | |||
| const consumes: string[] = [ | |||
| 'application/ld+json', | |||
| 'application/json', | |||
| 'text/html', | |||
| 'application/hal+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 = `/api/partners`; | |||
| return this.httpClient.request<PartnerJsonld>('post', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| body: partnerJsonld, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| } | |||
| @@ -0,0 +1,23 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ContactJsonld } from './contactJsonld'; | |||
| import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; | |||
| import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; | |||
| export interface ApiContactsGetCollection200Response { | |||
| 'hydra:member': Array<ContactJsonld>; | |||
| 'hydra:totalItems'?: number; | |||
| 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; | |||
| 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; | |||
| } | |||
| @@ -0,0 +1,22 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; | |||
| import { ContactJsonhal } from './contactJsonhal'; | |||
| export interface ApiContactsGetCollection200Response1 { | |||
| _embedded: Array<ContactJsonhal>; | |||
| totalItems?: number; | |||
| itemsPerPage?: number; | |||
| _links: ApiContactsGetCollection200Response1Links; | |||
| } | |||
| @@ -0,0 +1,22 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200Response1LinksSelf } from './apiContactsGetCollection200Response1LinksSelf'; | |||
| export interface ApiContactsGetCollection200Response1Links { | |||
| self?: ApiContactsGetCollection200Response1LinksSelf; | |||
| first?: ApiContactsGetCollection200Response1LinksSelf; | |||
| last?: ApiContactsGetCollection200Response1LinksSelf; | |||
| next?: ApiContactsGetCollection200Response1LinksSelf; | |||
| previous?: ApiContactsGetCollection200Response1LinksSelf; | |||
| } | |||
| @@ -11,7 +11,7 @@ | |||
| */ | |||
| export interface ApiPostsGetCollection200Response1LinksSelf { | |||
| export interface ApiContactsGetCollection200Response1LinksSelf { | |||
| href?: string; | |||
| } | |||
| @@ -9,13 +9,13 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiPostsGetCollection200ResponseHydraSearchHydraMappingInner } from './apiPostsGetCollection200ResponseHydraSearchHydraMappingInner'; | |||
| import { ApiContactsGetCollection200ResponseHydraSearchHydraMappingInner } from './apiContactsGetCollection200ResponseHydraSearchHydraMappingInner'; | |||
| export interface ApiPostsGetCollection200ResponseHydraSearch { | |||
| export interface ApiContactsGetCollection200ResponseHydraSearch { | |||
| type?: string; | |||
| 'hydra:template'?: string; | |||
| 'hydra:variableRepresentation'?: string; | |||
| 'hydra:mapping'?: Array<ApiPostsGetCollection200ResponseHydraSearchHydraMappingInner>; | |||
| 'hydra:mapping'?: Array<ApiContactsGetCollection200ResponseHydraSearchHydraMappingInner>; | |||
| } | |||
| @@ -11,7 +11,7 @@ | |||
| */ | |||
| export interface ApiPostsGetCollection200ResponseHydraSearchHydraMappingInner { | |||
| export interface ApiContactsGetCollection200ResponseHydraSearchHydraMappingInner { | |||
| type?: string; | |||
| variable?: string; | |||
| property?: string | null; | |||
| @@ -11,7 +11,7 @@ | |||
| */ | |||
| export interface ApiPostsGetCollection200ResponseHydraView { | |||
| export interface ApiContactsGetCollection200ResponseHydraView { | |||
| id?: string; | |||
| type?: string; | |||
| 'hydra:first'?: string; | |||
| @@ -0,0 +1,23 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; | |||
| import { MediaObjectJsonldMediaObjectRead } from './mediaObjectJsonldMediaObjectRead'; | |||
| import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; | |||
| export interface ApiMediaObjectsGetCollection200Response { | |||
| 'hydra:member': Array<MediaObjectJsonldMediaObjectRead>; | |||
| 'hydra:totalItems'?: number; | |||
| 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; | |||
| 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; | |||
| } | |||
| @@ -0,0 +1,22 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; | |||
| import { MediaObjectJsonhalMediaObjectRead } from './mediaObjectJsonhalMediaObjectRead'; | |||
| export interface ApiMediaObjectsGetCollection200Response1 { | |||
| _embedded: Array<MediaObjectJsonhalMediaObjectRead>; | |||
| totalItems?: number; | |||
| itemsPerPage?: number; | |||
| _links: ApiContactsGetCollection200Response1Links; | |||
| } | |||
| @@ -0,0 +1,23 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; | |||
| import { PartnerJsonld } from './partnerJsonld'; | |||
| import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; | |||
| export interface ApiPartnersGetCollection200Response { | |||
| 'hydra:member': Array<PartnerJsonld>; | |||
| 'hydra:totalItems'?: number; | |||
| 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; | |||
| 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; | |||
| } | |||
| @@ -0,0 +1,22 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; | |||
| import { PartnerJsonhal } from './partnerJsonhal'; | |||
| export interface ApiPartnersGetCollection200Response1 { | |||
| _embedded: Array<PartnerJsonhal>; | |||
| totalItems?: number; | |||
| itemsPerPage?: number; | |||
| _links: ApiContactsGetCollection200Response1Links; | |||
| } | |||
| @@ -9,15 +9,15 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiPostsGetCollection200ResponseHydraSearch } from './apiPostsGetCollection200ResponseHydraSearch'; | |||
| import { PostJsonld } from './postJsonld'; | |||
| import { ApiPostsGetCollection200ResponseHydraView } from './apiPostsGetCollection200ResponseHydraView'; | |||
| import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; | |||
| import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; | |||
| export interface ApiPostsGetCollection200Response { | |||
| 'hydra:member': Array<PostJsonld>; | |||
| 'hydra:totalItems'?: number; | |||
| 'hydra:view'?: ApiPostsGetCollection200ResponseHydraView; | |||
| 'hydra:search'?: ApiPostsGetCollection200ResponseHydraSearch; | |||
| 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; | |||
| 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; | |||
| } | |||
| @@ -9,14 +9,14 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; | |||
| import { PostJsonhal } from './postJsonhal'; | |||
| import { ApiPostsGetCollection200Response1Links } from './apiPostsGetCollection200Response1Links'; | |||
| export interface ApiPostsGetCollection200Response1 { | |||
| _embedded: Array<PostJsonhal>; | |||
| totalItems?: number; | |||
| itemsPerPage?: number; | |||
| _links: ApiPostsGetCollection200Response1Links; | |||
| _links: ApiContactsGetCollection200Response1Links; | |||
| } | |||
| @@ -1,22 +0,0 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiPostsGetCollection200Response1LinksSelf } from './apiPostsGetCollection200Response1LinksSelf'; | |||
| export interface ApiPostsGetCollection200Response1Links { | |||
| self?: ApiPostsGetCollection200Response1LinksSelf; | |||
| first?: ApiPostsGetCollection200Response1LinksSelf; | |||
| last?: ApiPostsGetCollection200Response1LinksSelf; | |||
| next?: ApiPostsGetCollection200Response1LinksSelf; | |||
| previous?: ApiPostsGetCollection200Response1LinksSelf; | |||
| } | |||
| @@ -9,15 +9,15 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiPostsGetCollection200ResponseHydraSearch } from './apiPostsGetCollection200ResponseHydraSearch'; | |||
| import { UserJsonld } from './userJsonld'; | |||
| import { ApiPostsGetCollection200ResponseHydraView } from './apiPostsGetCollection200ResponseHydraView'; | |||
| import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; | |||
| import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; | |||
| export interface ApiUsersGetCollection200Response { | |||
| 'hydra:member': Array<UserJsonld>; | |||
| 'hydra:totalItems'?: number; | |||
| 'hydra:view'?: ApiPostsGetCollection200ResponseHydraView; | |||
| 'hydra:search'?: ApiPostsGetCollection200ResponseHydraSearch; | |||
| 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; | |||
| 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; | |||
| } | |||
| @@ -9,14 +9,14 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; | |||
| import { UserJsonhal } from './userJsonhal'; | |||
| import { ApiPostsGetCollection200Response1Links } from './apiPostsGetCollection200Response1Links'; | |||
| export interface ApiUsersGetCollection200Response1 { | |||
| _embedded: Array<UserJsonhal>; | |||
| totalItems?: number; | |||
| itemsPerPage?: number; | |||
| _links: ApiPostsGetCollection200Response1Links; | |||
| _links: ApiContactsGetCollection200Response1Links; | |||
| } | |||
| @@ -0,0 +1,29 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { Partner } from './partner'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface Contact { | |||
| firstName: string | null; | |||
| lastName: string | null; | |||
| partner?: Partner | null; | |||
| birthday?: string | null; | |||
| image?: string | null; | |||
| position?: string | null; | |||
| phone?: string | null; | |||
| email?: string | null; | |||
| createdAt?: string | null; | |||
| } | |||
| @@ -0,0 +1,31 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ContactJsonhalLinks } from './contactJsonhalLinks'; | |||
| import { PartnerJsonhal } from './partnerJsonhal'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface ContactJsonhal { | |||
| _links?: ContactJsonhalLinks; | |||
| firstName: string | null; | |||
| lastName: string | null; | |||
| partner?: PartnerJsonhal | null; | |||
| birthday?: string | null; | |||
| image?: string | null; | |||
| position?: string | null; | |||
| phone?: string | null; | |||
| email?: string | null; | |||
| createdAt?: string | null; | |||
| } | |||
| @@ -0,0 +1,18 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiContactsGetCollection200Response1LinksSelf } from './apiContactsGetCollection200Response1LinksSelf'; | |||
| export interface ContactJsonhalLinks { | |||
| self?: ApiContactsGetCollection200Response1LinksSelf; | |||
| } | |||
| @@ -0,0 +1,32 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { PartnerJsonld } from './partnerJsonld'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface ContactJsonld { | |||
| context?: string | null; | |||
| readonly id?: string; | |||
| readonly type?: string; | |||
| firstName: string | null; | |||
| lastName: string | null; | |||
| partner?: PartnerJsonld | null; | |||
| birthday?: string | null; | |||
| image?: string | null; | |||
| position?: string | null; | |||
| phone?: string | null; | |||
| email?: string | null; | |||
| createdAt?: string | null; | |||
| } | |||
| @@ -9,10 +9,14 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ApiPostsGetCollection200Response1LinksSelf } from './apiPostsGetCollection200Response1LinksSelf'; | |||
| import { ContactJsonhalLinks } from './contactJsonhalLinks'; | |||
| export interface PostJsonhalLinks { | |||
| self?: ApiPostsGetCollection200Response1LinksSelf; | |||
| /** | |||
| * | |||
| */ | |||
| export interface MediaObjectJsonhalMediaObjectRead { | |||
| _links?: ContactJsonhalLinks; | |||
| contentUrl?: string | null; | |||
| } | |||
| @@ -0,0 +1,23 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * 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 MediaObjectJsonldMediaObjectRead { | |||
| context?: string | null; | |||
| readonly id?: string; | |||
| readonly type?: string; | |||
| contentUrl?: string | null; | |||
| } | |||
| @@ -0,0 +1,20 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * 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 MediaObjectMediaObjectRead { | |||
| contentUrl?: string | null; | |||
| } | |||
| @@ -1,17 +1,32 @@ | |||
| export * from './apiContactsGetCollection200Response'; | |||
| export * from './apiContactsGetCollection200Response1'; | |||
| export * from './apiContactsGetCollection200Response1Links'; | |||
| export * from './apiContactsGetCollection200Response1LinksSelf'; | |||
| export * from './apiContactsGetCollection200ResponseHydraSearch'; | |||
| export * from './apiContactsGetCollection200ResponseHydraSearchHydraMappingInner'; | |||
| export * from './apiContactsGetCollection200ResponseHydraView'; | |||
| export * from './apiMediaObjectsGetCollection200Response'; | |||
| export * from './apiMediaObjectsGetCollection200Response1'; | |||
| export * from './apiPartnersGetCollection200Response'; | |||
| export * from './apiPartnersGetCollection200Response1'; | |||
| export * from './apiPostsGetCollection200Response'; | |||
| export * from './apiPostsGetCollection200Response1'; | |||
| export * from './apiPostsGetCollection200Response1Links'; | |||
| export * from './apiPostsGetCollection200Response1LinksSelf'; | |||
| export * from './apiPostsGetCollection200ResponseHydraSearch'; | |||
| export * from './apiPostsGetCollection200ResponseHydraSearchHydraMappingInner'; | |||
| export * from './apiPostsGetCollection200ResponseHydraView'; | |||
| export * from './apiUsersGetCollection200Response'; | |||
| export * from './apiUsersGetCollection200Response1'; | |||
| export * from './contact'; | |||
| export * from './contactJsonhal'; | |||
| export * from './contactJsonhalLinks'; | |||
| export * from './contactJsonld'; | |||
| export * from './loginCheckPost200Response'; | |||
| export * from './loginCheckPostRequest'; | |||
| export * from './mediaObjectJsonhalMediaObjectRead'; | |||
| export * from './mediaObjectJsonldMediaObjectRead'; | |||
| export * from './mediaObjectMediaObjectRead'; | |||
| export * from './partner'; | |||
| export * from './partnerJsonhal'; | |||
| export * from './partnerJsonld'; | |||
| export * from './post'; | |||
| export * from './postJsonhal'; | |||
| export * from './postJsonhalLinks'; | |||
| export * from './postJsonld'; | |||
| export * from './user'; | |||
| export * from './userJsonhal'; | |||
| @@ -0,0 +1,41 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { Contact } from './contact'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface Partner { | |||
| readonly id?: number; | |||
| name?: string; | |||
| type?: Partner.TypeEnum; | |||
| street?: string | null; | |||
| streetNo?: string | null; | |||
| zip?: string | null; | |||
| city?: string | null; | |||
| country?: string | null; | |||
| website?: string | null; | |||
| createdAt?: string; | |||
| contacts?: Array<Contact>; | |||
| logo?: string | null; | |||
| } | |||
| export namespace Partner { | |||
| export type TypeEnum = 'customer' | 'supplier' | 'service'; | |||
| export const TypeEnum = { | |||
| Customer: 'customer' as TypeEnum, | |||
| Supplier: 'supplier' as TypeEnum, | |||
| Service: 'service' as TypeEnum | |||
| }; | |||
| } | |||
| @@ -0,0 +1,43 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ContactJsonhalLinks } from './contactJsonhalLinks'; | |||
| import { ContactJsonhal } from './contactJsonhal'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface PartnerJsonhal { | |||
| _links?: ContactJsonhalLinks; | |||
| readonly id?: number; | |||
| name?: string; | |||
| type?: PartnerJsonhal.TypeEnum; | |||
| street?: string | null; | |||
| streetNo?: string | null; | |||
| zip?: string | null; | |||
| city?: string | null; | |||
| country?: string | null; | |||
| website?: string | null; | |||
| createdAt?: string; | |||
| contacts?: Array<ContactJsonhal>; | |||
| logo?: string | null; | |||
| } | |||
| export namespace PartnerJsonhal { | |||
| export type TypeEnum = 'customer' | 'supplier' | 'service'; | |||
| export const TypeEnum = { | |||
| Customer: 'customer' as TypeEnum, | |||
| Supplier: 'supplier' as TypeEnum, | |||
| Service: 'service' as TypeEnum | |||
| }; | |||
| } | |||
| @@ -0,0 +1,42 @@ | |||
| /** | |||
| * Matsen API Platform | |||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |||
| * | |||
| * The version of the OpenAPI document: 1.0.0 | |||
| * | |||
| * | |||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { ContactJsonld } from './contactJsonld'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface PartnerJsonld { | |||
| context?: string | null; | |||
| readonly id?: number; | |||
| name?: string; | |||
| type?: PartnerJsonld.TypeEnum; | |||
| street?: string | null; | |||
| streetNo?: string | null; | |||
| zip?: string | null; | |||
| city?: string | null; | |||
| country?: string | null; | |||
| website?: string | null; | |||
| createdAt?: string; | |||
| contacts?: Array<ContactJsonld>; | |||
| logo?: string | null; | |||
| } | |||
| export namespace PartnerJsonld { | |||
| export type TypeEnum = 'customer' | 'supplier' | 'service'; | |||
| export const TypeEnum = { | |||
| Customer: 'customer' as TypeEnum, | |||
| Supplier: 'supplier' as TypeEnum, | |||
| Service: 'service' as TypeEnum | |||
| }; | |||
| } | |||
| @@ -9,14 +9,14 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { PostJsonhalLinks } from './postJsonhalLinks'; | |||
| import { ContactJsonhalLinks } from './contactJsonhalLinks'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface PostJsonhal { | |||
| _links?: PostJsonhalLinks; | |||
| _links?: ContactJsonhalLinks; | |||
| message: string | null; | |||
| owner?: string | null; | |||
| readonly createdAt?: string | null; | |||
| @@ -24,6 +24,6 @@ export interface User { | |||
| password?: string | null; | |||
| active?: boolean; | |||
| readonly createdAt?: string | null; | |||
| userPosts?: Array<string>; | |||
| postings?: Array<string>; | |||
| } | |||
| @@ -9,14 +9,14 @@ | |||
| * https://openapi-generator.tech | |||
| * Do not edit the class manually. | |||
| */ | |||
| import { PostJsonhalLinks } from './postJsonhalLinks'; | |||
| import { ContactJsonhalLinks } from './contactJsonhalLinks'; | |||
| /** | |||
| * | |||
| */ | |||
| export interface UserJsonhal { | |||
| _links?: PostJsonhalLinks; | |||
| _links?: ContactJsonhalLinks; | |||
| email: string | null; | |||
| firstName: string | null; | |||
| lastName: string | null; | |||
| @@ -26,6 +26,6 @@ export interface UserJsonhal { | |||
| password?: string | null; | |||
| active?: boolean; | |||
| readonly createdAt?: string | null; | |||
| userPosts?: Array<string>; | |||
| postings?: Array<string>; | |||
| } | |||
| @@ -27,6 +27,6 @@ export interface UserJsonld { | |||
| password?: string | null; | |||
| active?: boolean; | |||
| readonly createdAt?: string | null; | |||
| userPosts?: Array<string>; | |||
| postings?: Array<string>; | |||
| } | |||