| @@ -36,6 +36,8 @@ export const contactForm = new FormGroup({ | |||
| phone: new FormControl(null, []), | |||
| email: new FormControl(null, [Validators.email]), | |||
| posts: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| @@ -51,6 +53,8 @@ export const contactJsonhalForm = new FormGroup({ | |||
| phone: new FormControl(null, []), | |||
| email: new FormControl(null, [Validators.email]), | |||
| posts: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| @@ -65,12 +69,12 @@ export const contactJsonldForm = new FormGroup({ | |||
| phone: new FormControl(null, []), | |||
| email: new FormControl(null, [Validators.email]), | |||
| posts: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| export const documentForm = new FormGroup({ | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| name: new FormControl(null, [Validators.required]), | |||
| description: new FormControl(null, []), | |||
| partner: new FormControl(null, []), | |||
| @@ -79,13 +83,13 @@ export const documentForm = new FormGroup({ | |||
| productName: new FormControl(null, []), | |||
| documentObject: new FormControl(null, [Validators.required]), | |||
| documentUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| export const documentJsonhalForm = new FormGroup({ | |||
| _links: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| name: new FormControl(null, [Validators.required]), | |||
| description: new FormControl(null, []), | |||
| partner: new FormControl(null, []), | |||
| @@ -94,12 +98,12 @@ export const documentJsonhalForm = new FormGroup({ | |||
| productName: new FormControl(null, []), | |||
| documentObject: new FormControl(null, [Validators.required]), | |||
| documentUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| export const documentJsonldForm = new FormGroup({ | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| name: new FormControl(null, [Validators.required]), | |||
| description: new FormControl(null, []), | |||
| partner: new FormControl(null, []), | |||
| @@ -108,6 +112,8 @@ export const documentJsonldForm = new FormGroup({ | |||
| productName: new FormControl(null, []), | |||
| documentObject: new FormControl(null, [Validators.required]), | |||
| documentUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| @@ -149,6 +155,8 @@ export const partnerForm = new FormGroup({ | |||
| website: new FormControl(null, []), | |||
| logo: new FormControl(null, []), | |||
| logoUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []), | |||
| posts: new FormControl(null, []), | |||
| contacts: new FormControl(null, []) | |||
| @@ -167,6 +175,8 @@ export const partnerJsonhalForm = new FormGroup({ | |||
| website: new FormControl(null, []), | |||
| logo: new FormControl(null, []), | |||
| logoUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []), | |||
| posts: new FormControl(null, []), | |||
| contacts: new FormControl(null, []) | |||
| @@ -184,6 +194,8 @@ export const partnerJsonldForm = new FormGroup({ | |||
| website: new FormControl(null, []), | |||
| logo: new FormControl(null, []), | |||
| logoUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []), | |||
| posts: new FormControl(null, []), | |||
| contacts: new FormControl(null, []) | |||
| @@ -286,6 +298,8 @@ export const productForm = new FormGroup({ | |||
| description: new FormControl(null, []), | |||
| image: new FormControl(null, []), | |||
| imageUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| @@ -295,6 +309,8 @@ export const productJsonhalForm = new FormGroup({ | |||
| description: new FormControl(null, []), | |||
| image: new FormControl(null, []), | |||
| imageUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| @@ -303,6 +319,8 @@ export const productJsonldForm = new FormGroup({ | |||
| description: new FormControl(null, []), | |||
| image: new FormControl(null, []), | |||
| imageUrl: new FormControl(null, []), | |||
| createdBy: new FormControl(null, []), | |||
| createdByName: new FormControl(null, []), | |||
| createdAt: new FormControl(null, []) | |||
| }); | |||
| @@ -183,81 +183,10 @@ export class CommentService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Comment resource. | |||
| * Removes the Comment resource. | |||
| * @param id Comment 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 commentsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||
| public commentsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public commentsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public commentsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling commentsIdDelete.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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/comments/${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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Comment resource. | |||
| * Retrieves a Comment resource. | |||
| * @param id Comment identifier | |||
| * @param id CommentApi 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. | |||
| */ | |||
| @@ -332,7 +261,7 @@ export class CommentService { | |||
| /** | |||
| * Updates the Comment resource. | |||
| * Updates the Comment resource. | |||
| * @param id Comment identifier | |||
| * @param id CommentApi identifier | |||
| * @param comment The updated Comment 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. | |||
| @@ -195,81 +195,10 @@ export class ContactService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Contact resource. | |||
| * Removes the Contact resource. | |||
| * @param id Contact 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, transferCache?: boolean}): Observable<any>; | |||
| public contactsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public contactsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public contactsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Contact resource. | |||
| * Retrieves a Contact resource. | |||
| * @param id Contact identifier | |||
| * @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. | |||
| */ | |||
| @@ -344,7 +273,7 @@ export class ContactService { | |||
| /** | |||
| * Updates the Contact resource. | |||
| * Updates the Contact resource. | |||
| * @param id Contact identifier | |||
| * @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. | |||
| @@ -207,81 +207,10 @@ export class DocumentService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Document resource. | |||
| * Removes the Document resource. | |||
| * @param id Document 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 documentsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||
| public documentsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public documentsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public documentsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling documentsIdDelete.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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/documents/${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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Document resource. | |||
| * Retrieves a Document resource. | |||
| * @param id Document identifier | |||
| * @param id DocumentApi 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. | |||
| */ | |||
| @@ -356,7 +285,7 @@ export class DocumentService { | |||
| /** | |||
| * Updates the Document resource. | |||
| * Updates the Document resource. | |||
| * @param id Document identifier | |||
| * @param id DocumentApi identifier | |||
| * @param document The updated Document 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. | |||
| @@ -215,81 +215,10 @@ export class PartnerService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Partner resource. | |||
| * Removes the Partner resource. | |||
| * @param id Partner 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, transferCache?: boolean}): Observable<any>; | |||
| public partnersIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public partnersIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public partnersIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Partner resource. | |||
| * Retrieves a Partner resource. | |||
| * @param id Partner identifier | |||
| * @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. | |||
| */ | |||
| @@ -364,7 +293,7 @@ export class PartnerService { | |||
| /** | |||
| * Updates the Partner resource. | |||
| * Updates the Partner resource. | |||
| * @param id Partner identifier | |||
| * @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. | |||
| @@ -210,7 +210,7 @@ export class PartnerFollowService { | |||
| /** | |||
| * Removes the PartnerFollow resource. | |||
| * Removes the PartnerFollow resource. | |||
| * @param id PartnerFollow identifier | |||
| * @param id PartnerFollowApi 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. | |||
| */ | |||
| @@ -281,7 +281,7 @@ export class PartnerFollowService { | |||
| /** | |||
| * Retrieves a PartnerFollow resource. | |||
| * Retrieves a PartnerFollow resource. | |||
| * @param id PartnerFollow identifier | |||
| * @param id PartnerFollowApi 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. | |||
| */ | |||
| @@ -116,15 +116,17 @@ export class PostService { | |||
| * @param partner2 | |||
| * @param contact | |||
| * @param contact2 | |||
| * @param sale | |||
| * @param sale2 | |||
| * @param existsContact | |||
| * @param existsSale | |||
| * @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 postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiPostsGetCollection200Response>; | |||
| public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiPostsGetCollection200Response>>; | |||
| public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiPostsGetCollection200Response>>; | |||
| public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, sale?: string, sale2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiPostsGetCollection200Response>; | |||
| public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, sale?: string, sale2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiPostsGetCollection200Response>>; | |||
| public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, sale?: string, sale2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiPostsGetCollection200Response>>; | |||
| public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, sale?: string, sale2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | |||
| if (page !== undefined && page !== null) { | |||
| @@ -155,6 +157,16 @@ export class PostService { | |||
| <any>element, 'contact[]'); | |||
| }) | |||
| } | |||
| if (sale !== undefined && sale !== null) { | |||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||
| <any>sale, 'sale'); | |||
| } | |||
| if (sale2) { | |||
| sale2.forEach((element) => { | |||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||
| <any>element, 'sale[]'); | |||
| }) | |||
| } | |||
| if (existsContact !== undefined && existsContact !== null) { | |||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||
| <any>existsContact, 'exists[contact]'); | |||
| @@ -225,81 +237,10 @@ export class PostService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Post resource. | |||
| * Removes the Post resource. | |||
| * @param id Post 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 postsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||
| public postsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public postsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public postsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling postsIdDelete.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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/posts/${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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Post resource. | |||
| * Retrieves a Post resource. | |||
| * @param id Post identifier | |||
| * @param id PostingApi 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. | |||
| */ | |||
| @@ -374,7 +315,7 @@ export class PostService { | |||
| /** | |||
| * Updates the Post resource. | |||
| * Updates the Post resource. | |||
| * @param id Post identifier | |||
| * @param id PostingApi identifier | |||
| * @param postPostingPatch The updated Post 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. | |||
| @@ -193,81 +193,10 @@ export class ProductService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Product resource. | |||
| * Removes the Product resource. | |||
| * @param id Product 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 productsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||
| public productsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public productsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public productsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling productsIdDelete.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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/products/${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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Product resource. | |||
| * Retrieves a Product resource. | |||
| * @param id Product identifier | |||
| * @param id ProductApi 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. | |||
| */ | |||
| @@ -342,7 +271,7 @@ export class ProductService { | |||
| /** | |||
| * Updates the Product resource. | |||
| * Updates the Product resource. | |||
| * @param id Product identifier | |||
| * @param id ProductApi identifier | |||
| * @param product The updated Product 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. | |||
| @@ -207,81 +207,10 @@ export class SaleService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Sale resource. | |||
| * Removes the Sale resource. | |||
| * @param id Sale 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 salesIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||
| public salesIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public salesIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public salesIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling salesIdDelete.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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/sales/${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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Sale resource. | |||
| * Retrieves a Sale resource. | |||
| * @param id Sale identifier | |||
| * @param id SaleApi 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. | |||
| */ | |||
| @@ -356,7 +285,7 @@ export class SaleService { | |||
| /** | |||
| * Updates the Sale resource. | |||
| * Updates the Sale resource. | |||
| * @param id Sale identifier | |||
| * @param id SaleApi identifier | |||
| * @param sale The updated Sale 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. | |||
| @@ -219,81 +219,10 @@ export class TaskService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the Task resource. | |||
| * Removes the Task resource. | |||
| * @param id Task 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 tasksIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||
| public tasksIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public tasksIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public tasksIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling tasksIdDelete.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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/tasks/${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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a Task resource. | |||
| * Retrieves a Task resource. | |||
| * @param id Task identifier | |||
| * @param id TaskApi 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. | |||
| */ | |||
| @@ -368,7 +297,7 @@ export class TaskService { | |||
| /** | |||
| * Updates the Task resource. | |||
| * Updates the Task resource. | |||
| * @param id Task identifier | |||
| * @param id TaskApi identifier | |||
| * @param task The updated Task 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. | |||
| @@ -195,81 +195,10 @@ export class TaskNoteService { | |||
| ); | |||
| } | |||
| /** | |||
| * Removes the TaskNote resource. | |||
| * Removes the TaskNote resource. | |||
| * @param id TaskNote 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 taskNotesIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||
| public taskNotesIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||
| public taskNotesIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||
| public taskNotesIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling taskNotesIdDelete.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| 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/task_notes/${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, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Retrieves a TaskNote resource. | |||
| * Retrieves a TaskNote resource. | |||
| * @param id TaskNote identifier | |||
| * @param id TaskNoteApi 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. | |||
| */ | |||
| @@ -344,7 +273,7 @@ export class TaskNoteService { | |||
| /** | |||
| * Updates the TaskNote resource. | |||
| * Updates the TaskNote resource. | |||
| * @param id TaskNote identifier | |||
| * @param id TaskNoteApi identifier | |||
| * @param taskNote The updated TaskNote 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. | |||
| @@ -196,7 +196,7 @@ export class UserService { | |||
| /** | |||
| * Retrieves a User resource. | |||
| * Retrieves a User resource. | |||
| * @param id User identifier | |||
| * @param id UserApi 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. | |||
| */ | |||
| @@ -268,95 +268,6 @@ export class UserService { | |||
| ); | |||
| } | |||
| /** | |||
| * Updates the User resource. | |||
| * Updates the User resource. | |||
| * @param id User identifier | |||
| * @param user The updated User 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 usersIdPatch(id: string, user: User, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<UserJsonld>; | |||
| public usersIdPatch(id: string, user: User, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<UserJsonld>>; | |||
| public usersIdPatch(id: string, user: User, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<UserJsonld>>; | |||
| public usersIdPatch(id: string, user: User, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||
| if (id === null || id === undefined) { | |||
| throw new Error('Required parameter id was null or undefined when calling usersIdPatch.'); | |||
| } | |||
| if (user === null || user === undefined) { | |||
| throw new Error('Required parameter user was null or undefined when calling usersIdPatch.'); | |||
| } | |||
| 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 localVarTransferCache: boolean | undefined = options && options.transferCache; | |||
| if (localVarTransferCache === undefined) { | |||
| localVarTransferCache = true; | |||
| } | |||
| // 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/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||
| return this.httpClient.request<UserJsonld>('patch', `${this.configuration.basePath}${localVarPath}`, | |||
| { | |||
| context: localVarHttpContext, | |||
| body: user, | |||
| responseType: <any>responseType_, | |||
| withCredentials: this.configuration.withCredentials, | |||
| headers: localVarHeaders, | |||
| observe: observe, | |||
| transferCache: localVarTransferCache, | |||
| reportProgress: reportProgress | |||
| } | |||
| ); | |||
| } | |||
| /** | |||
| * Creates a User resource. | |||
| * Creates a User resource. | |||
| @@ -25,6 +25,8 @@ export interface Contact { | |||
| phone?: string | null; | |||
| email?: string | null; | |||
| posts?: Array<string>; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| } | |||
| @@ -27,6 +27,8 @@ export interface ContactJsonhal { | |||
| phone?: string | null; | |||
| email?: string | null; | |||
| posts?: Array<string>; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| } | |||
| @@ -29,6 +29,8 @@ export interface ContactJsonld { | |||
| phone?: string | null; | |||
| email?: string | null; | |||
| posts?: Array<string>; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| } | |||
| @@ -15,8 +15,6 @@ | |||
| * | |||
| */ | |||
| export interface Document { | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| name: string | null; | |||
| description?: string | null; | |||
| partner?: string | null; | |||
| @@ -25,6 +23,8 @@ export interface Document { | |||
| readonly productName?: string | null; | |||
| documentObject: string | null; | |||
| readonly documentUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| } | |||
| @@ -17,8 +17,6 @@ import { CommentJsonhalLinks } from './commentJsonhalLinks'; | |||
| */ | |||
| export interface DocumentJsonhal { | |||
| _links?: CommentJsonhalLinks; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| name: string | null; | |||
| description?: string | null; | |||
| partner?: string | null; | |||
| @@ -27,6 +25,8 @@ export interface DocumentJsonhal { | |||
| readonly productName?: string | null; | |||
| documentObject: string | null; | |||
| readonly documentUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| } | |||
| @@ -19,8 +19,6 @@ export interface DocumentJsonld { | |||
| context?: CommentJsonldContext; | |||
| readonly id?: string; | |||
| readonly type?: string; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| name: string | null; | |||
| description?: string | null; | |||
| partner?: string | null; | |||
| @@ -29,6 +27,8 @@ export interface DocumentJsonld { | |||
| readonly productName?: string | null; | |||
| documentObject: string | null; | |||
| readonly documentUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| } | |||
| @@ -17,6 +17,7 @@ | |||
| export interface Partner { | |||
| name: string; | |||
| partnerType: Partner.PartnerTypeEnum; | |||
| description?: string | null; | |||
| street?: string | null; | |||
| streetNo?: string | null; | |||
| zip?: string | null; | |||
| @@ -25,6 +26,8 @@ export interface Partner { | |||
| website?: string | null; | |||
| logo?: string | null; | |||
| readonly logoUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| /** | |||
| * array<int, PostingApi> | |||
| @@ -19,6 +19,7 @@ export interface PartnerJsonhal { | |||
| _links?: CommentJsonhalLinks; | |||
| name: string; | |||
| partnerType: PartnerJsonhal.PartnerTypeEnum; | |||
| description?: string | null; | |||
| street?: string | null; | |||
| streetNo?: string | null; | |||
| zip?: string | null; | |||
| @@ -27,6 +28,8 @@ export interface PartnerJsonhal { | |||
| website?: string | null; | |||
| logo?: string | null; | |||
| readonly logoUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| /** | |||
| * array<int, PostingApi> | |||
| @@ -21,6 +21,7 @@ export interface PartnerJsonld { | |||
| readonly type?: string; | |||
| name: string; | |||
| partnerType: PartnerJsonld.PartnerTypeEnum; | |||
| description?: string | null; | |||
| street?: string | null; | |||
| streetNo?: string | null; | |||
| zip?: string | null; | |||
| @@ -29,6 +30,8 @@ export interface PartnerJsonld { | |||
| website?: string | null; | |||
| logo?: string | null; | |||
| readonly logoUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| readonly createdAt?: string | null; | |||
| /** | |||
| * array<int, PostingApi> | |||
| @@ -19,6 +19,8 @@ export interface Product { | |||
| description?: string | null; | |||
| image?: string | null; | |||
| readonly imageUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| createdAt?: string | null; | |||
| } | |||
| @@ -21,6 +21,8 @@ export interface ProductJsonhal { | |||
| description?: string | null; | |||
| image?: string | null; | |||
| readonly imageUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| createdAt?: string | null; | |||
| } | |||
| @@ -23,6 +23,8 @@ export interface ProductJsonld { | |||
| description?: string | null; | |||
| image?: string | null; | |||
| readonly imageUrl?: string | null; | |||
| readonly createdBy?: string | null; | |||
| readonly createdByName?: string | null; | |||
| createdAt?: string | null; | |||
| } | |||
| @@ -18,6 +18,7 @@ export interface Sale { | |||
| readonly owner?: string | null; | |||
| readonly ownerName?: string | null; | |||
| partner?: string | null; | |||
| readonly partnerType?: Sale.PartnerTypeEnum; | |||
| readonly partnerName?: string | null; | |||
| product?: string | null; | |||
| readonly productName?: string | null; | |||
| @@ -30,4 +31,13 @@ export interface Sale { | |||
| */ | |||
| posts?: Array<string>; | |||
| } | |||
| export namespace Sale { | |||
| export type PartnerTypeEnum = 'customer' | 'supplier' | 'service'; | |||
| export const PartnerTypeEnum = { | |||
| Customer: 'customer' as PartnerTypeEnum, | |||
| Supplier: 'supplier' as PartnerTypeEnum, | |||
| Service: 'service' as PartnerTypeEnum | |||
| }; | |||
| } | |||
| @@ -20,6 +20,7 @@ export interface SaleJsonhal { | |||
| readonly owner?: string | null; | |||
| readonly ownerName?: string | null; | |||
| partner?: string | null; | |||
| readonly partnerType?: SaleJsonhal.PartnerTypeEnum; | |||
| readonly partnerName?: string | null; | |||
| product?: string | null; | |||
| readonly productName?: string | null; | |||
| @@ -32,4 +33,13 @@ export interface SaleJsonhal { | |||
| */ | |||
| posts?: Array<string>; | |||
| } | |||
| export namespace SaleJsonhal { | |||
| export type PartnerTypeEnum = 'customer' | 'supplier' | 'service'; | |||
| export const PartnerTypeEnum = { | |||
| Customer: 'customer' as PartnerTypeEnum, | |||
| Supplier: 'supplier' as PartnerTypeEnum, | |||
| Service: 'service' as PartnerTypeEnum | |||
| }; | |||
| } | |||
| @@ -22,6 +22,7 @@ export interface SaleJsonld { | |||
| readonly owner?: string | null; | |||
| readonly ownerName?: string | null; | |||
| partner?: string | null; | |||
| readonly partnerType?: SaleJsonld.PartnerTypeEnum; | |||
| readonly partnerName?: string | null; | |||
| product?: string | null; | |||
| readonly productName?: string | null; | |||
| @@ -34,4 +35,13 @@ export interface SaleJsonld { | |||
| */ | |||
| posts?: Array<string>; | |||
| } | |||
| export namespace SaleJsonld { | |||
| export type PartnerTypeEnum = 'customer' | 'supplier' | 'service'; | |||
| export const PartnerTypeEnum = { | |||
| Customer: 'customer' as PartnerTypeEnum, | |||
| Supplier: 'supplier' as PartnerTypeEnum, | |||
| Service: 'service' as PartnerTypeEnum | |||
| }; | |||
| } | |||