| @@ -500,9 +500,9 @@ paths: | |||||
| required: true | required: true | ||||
| deprecated: false | deprecated: false | ||||
| parameters: [] | parameters: [] | ||||
| /api/media: | |||||
| /api/medias: | |||||
| get: | get: | ||||
| operationId: api_media_get_collection | |||||
| operationId: api_medias_get_collection | |||||
| tags: | tags: | ||||
| - Media | - Media | ||||
| responses: | responses: | ||||
| @@ -573,7 +573,7 @@ paths: | |||||
| allowReserved: false | allowReserved: false | ||||
| deprecated: false | deprecated: false | ||||
| post: | post: | ||||
| operationId: api_media_post | |||||
| operationId: api_medias_post | |||||
| tags: | tags: | ||||
| - Media | - Media | ||||
| responses: | responses: | ||||
| @@ -613,9 +613,9 @@ paths: | |||||
| required: false | required: false | ||||
| deprecated: false | deprecated: false | ||||
| parameters: [] | parameters: [] | ||||
| '/api/media/{id}': | |||||
| '/api/medias/{id}': | |||||
| get: | get: | ||||
| operationId: api_media_id_get | |||||
| operationId: api_medias_id_get | |||||
| tags: | tags: | ||||
| - Media | - Media | ||||
| responses: | responses: | ||||
| @@ -653,7 +653,7 @@ paths: | |||||
| allowReserved: false | allowReserved: false | ||||
| deprecated: false | deprecated: false | ||||
| delete: | delete: | ||||
| operationId: api_media_id_delete | |||||
| operationId: api_medias_id_delete | |||||
| tags: | tags: | ||||
| - Media | - Media | ||||
| responses: | responses: | ||||
| @@ -1586,6 +1586,58 @@ paths: | |||||
| style: form | style: form | ||||
| explode: false | explode: false | ||||
| allowReserved: false | allowReserved: false | ||||
| - | |||||
| name: partner | |||||
| in: query | |||||
| description: '' | |||||
| required: false | |||||
| deprecated: false | |||||
| allowEmptyValue: true | |||||
| schema: | |||||
| type: string | |||||
| style: form | |||||
| explode: false | |||||
| allowReserved: false | |||||
| - | |||||
| name: 'partner[]' | |||||
| in: query | |||||
| description: '' | |||||
| required: false | |||||
| deprecated: false | |||||
| allowEmptyValue: true | |||||
| schema: | |||||
| type: array | |||||
| items: | |||||
| type: string | |||||
| style: form | |||||
| explode: true | |||||
| allowReserved: false | |||||
| - | |||||
| name: contact | |||||
| in: query | |||||
| description: '' | |||||
| required: false | |||||
| deprecated: false | |||||
| allowEmptyValue: true | |||||
| schema: | |||||
| type: string | |||||
| style: form | |||||
| explode: false | |||||
| allowReserved: false | |||||
| - | |||||
| name: 'contact[]' | |||||
| in: query | |||||
| description: '' | |||||
| required: false | |||||
| deprecated: false | |||||
| allowEmptyValue: true | |||||
| schema: | |||||
| type: array | |||||
| items: | |||||
| type: string | |||||
| style: form | |||||
| explode: true | |||||
| allowReserved: false | |||||
| deprecated: false | deprecated: false | ||||
| post: | post: | ||||
| operationId: api_tasks_post | operationId: api_tasks_post | ||||
| @@ -2450,11 +2502,11 @@ components: | |||||
| deprecated: false | deprecated: false | ||||
| required: | required: | ||||
| - name | - name | ||||
| - type | |||||
| - partnerType | |||||
| properties: | properties: | ||||
| name: | name: | ||||
| type: string | type: string | ||||
| type: | |||||
| partnerType: | |||||
| type: string | type: string | ||||
| enum: | enum: | ||||
| - customer | - customer | ||||
| @@ -2502,6 +2554,13 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| posts: | |||||
| readOnly: true | |||||
| type: array | |||||
| items: | |||||
| type: string | |||||
| format: iri-reference | |||||
| example: 'https://example.com/' | |||||
| contacts: | contacts: | ||||
| readOnly: true | readOnly: true | ||||
| type: array | type: array | ||||
| @@ -2515,7 +2574,7 @@ components: | |||||
| deprecated: false | deprecated: false | ||||
| required: | required: | ||||
| - name | - name | ||||
| - type | |||||
| - partnerType | |||||
| properties: | properties: | ||||
| _links: | _links: | ||||
| type: object | type: object | ||||
| @@ -2528,7 +2587,7 @@ components: | |||||
| format: iri-reference | format: iri-reference | ||||
| name: | name: | ||||
| type: string | type: string | ||||
| type: | |||||
| partnerType: | |||||
| type: string | type: string | ||||
| enum: | enum: | ||||
| - customer | - customer | ||||
| @@ -2576,6 +2635,13 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| posts: | |||||
| readOnly: true | |||||
| type: array | |||||
| items: | |||||
| type: string | |||||
| format: iri-reference | |||||
| example: 'https://example.com/' | |||||
| contacts: | contacts: | ||||
| readOnly: true | readOnly: true | ||||
| type: array | type: array | ||||
| @@ -2589,7 +2655,7 @@ components: | |||||
| deprecated: false | deprecated: false | ||||
| required: | required: | ||||
| - name | - name | ||||
| - type | |||||
| - partnerType | |||||
| properties: | properties: | ||||
| '@context': | '@context': | ||||
| readOnly: true | readOnly: true | ||||
| @@ -2616,7 +2682,7 @@ components: | |||||
| type: string | type: string | ||||
| name: | name: | ||||
| type: string | type: string | ||||
| type: | |||||
| partnerType: | |||||
| type: string | type: string | ||||
| enum: | enum: | ||||
| - customer | - customer | ||||
| @@ -2664,6 +2730,13 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| posts: | |||||
| readOnly: true | |||||
| type: array | |||||
| items: | |||||
| type: string | |||||
| format: iri-reference | |||||
| example: 'https://example.com/' | |||||
| contacts: | contacts: | ||||
| readOnly: true | readOnly: true | ||||
| type: array | type: array | ||||
| @@ -3129,6 +3202,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| createdByName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| assignedTo: | assignedTo: | ||||
| 'owl:maxCardinality': 1 | 'owl:maxCardinality': 1 | ||||
| type: | type: | ||||
| @@ -3136,6 +3214,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| assignedToName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| dueAt: | dueAt: | ||||
| type: | type: | ||||
| - string | - string | ||||
| @@ -3148,6 +3231,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| partnerName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| contact: | contact: | ||||
| 'owl:maxCardinality': 1 | 'owl:maxCardinality': 1 | ||||
| type: | type: | ||||
| @@ -3155,6 +3243,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| contactName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| prio: | prio: | ||||
| type: string | type: string | ||||
| enum: | enum: | ||||
| @@ -3207,6 +3300,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| createdByName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| assignedTo: | assignedTo: | ||||
| 'owl:maxCardinality': 1 | 'owl:maxCardinality': 1 | ||||
| type: | type: | ||||
| @@ -3214,6 +3312,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| assignedToName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| dueAt: | dueAt: | ||||
| type: | type: | ||||
| - string | - string | ||||
| @@ -3226,6 +3329,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| partnerName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| contact: | contact: | ||||
| 'owl:maxCardinality': 1 | 'owl:maxCardinality': 1 | ||||
| type: | type: | ||||
| @@ -3233,6 +3341,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| contactName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| prio: | prio: | ||||
| type: string | type: string | ||||
| enum: | enum: | ||||
| @@ -3299,6 +3412,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| createdByName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| assignedTo: | assignedTo: | ||||
| 'owl:maxCardinality': 1 | 'owl:maxCardinality': 1 | ||||
| type: | type: | ||||
| @@ -3306,6 +3424,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| assignedToName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| dueAt: | dueAt: | ||||
| type: | type: | ||||
| - string | - string | ||||
| @@ -3318,6 +3441,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| partnerName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| contact: | contact: | ||||
| 'owl:maxCardinality': 1 | 'owl:maxCardinality': 1 | ||||
| type: | type: | ||||
| @@ -3325,6 +3453,11 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| contactName: | |||||
| readOnly: true | |||||
| type: | |||||
| - string | |||||
| - 'null' | |||||
| prio: | prio: | ||||
| type: string | type: string | ||||
| enum: | enum: | ||||
| @@ -83,7 +83,7 @@ export const mediaJsonldMediaObjectReadForm = new FormGroup({ | |||||
| export const partnerForm = new FormGroup({ | export const partnerForm = new FormGroup({ | ||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| type: new FormControl(null, [Validators.required]), | |||||
| partnerType: new FormControl(null, [Validators.required]), | |||||
| street: new FormControl(null, []), | street: new FormControl(null, []), | ||||
| streetNo: new FormControl(null, []), | streetNo: new FormControl(null, []), | ||||
| zip: new FormControl(null, []), | zip: new FormControl(null, []), | ||||
| @@ -93,13 +93,14 @@ export const partnerForm = new FormGroup({ | |||||
| logo: new FormControl(null, []), | logo: new FormControl(null, []), | ||||
| logoUrl: new FormControl(null, []), | logoUrl: new FormControl(null, []), | ||||
| createdAt: new FormControl(null, []), | createdAt: new FormControl(null, []), | ||||
| posts: new FormControl(null, []), | |||||
| contacts: new FormControl(null, []) | contacts: new FormControl(null, []) | ||||
| }); | }); | ||||
| export const partnerJsonhalForm = new FormGroup({ | export const partnerJsonhalForm = new FormGroup({ | ||||
| _links: new FormControl(null, []), | _links: new FormControl(null, []), | ||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| type: new FormControl(null, [Validators.required]), | |||||
| partnerType: new FormControl(null, [Validators.required]), | |||||
| street: new FormControl(null, []), | street: new FormControl(null, []), | ||||
| streetNo: new FormControl(null, []), | streetNo: new FormControl(null, []), | ||||
| zip: new FormControl(null, []), | zip: new FormControl(null, []), | ||||
| @@ -109,12 +110,13 @@ export const partnerJsonhalForm = new FormGroup({ | |||||
| logo: new FormControl(null, []), | logo: new FormControl(null, []), | ||||
| logoUrl: new FormControl(null, []), | logoUrl: new FormControl(null, []), | ||||
| createdAt: new FormControl(null, []), | createdAt: new FormControl(null, []), | ||||
| posts: new FormControl(null, []), | |||||
| contacts: new FormControl(null, []) | contacts: new FormControl(null, []) | ||||
| }); | }); | ||||
| export const partnerJsonldForm = new FormGroup({ | export const partnerJsonldForm = new FormGroup({ | ||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| type: new FormControl(null, [Validators.required]), | |||||
| partnerType: new FormControl(null, [Validators.required]), | |||||
| street: new FormControl(null, []), | street: new FormControl(null, []), | ||||
| streetNo: new FormControl(null, []), | streetNo: new FormControl(null, []), | ||||
| zip: new FormControl(null, []), | zip: new FormControl(null, []), | ||||
| @@ -124,6 +126,7 @@ export const partnerJsonldForm = new FormGroup({ | |||||
| logo: new FormControl(null, []), | logo: new FormControl(null, []), | ||||
| logoUrl: new FormControl(null, []), | logoUrl: new FormControl(null, []), | ||||
| createdAt: new FormControl(null, []), | createdAt: new FormControl(null, []), | ||||
| posts: new FormControl(null, []), | |||||
| contacts: new FormControl(null, []) | contacts: new FormControl(null, []) | ||||
| }); | }); | ||||
| @@ -217,10 +220,14 @@ export const taskForm = new FormGroup({ | |||||
| headline: new FormControl(null, [Validators.required]), | headline: new FormControl(null, [Validators.required]), | ||||
| description: new FormControl(null, [Validators.required]), | description: new FormControl(null, [Validators.required]), | ||||
| createdBy: new FormControl(null, []), | createdBy: new FormControl(null, []), | ||||
| createdByName: new FormControl(null, []), | |||||
| assignedTo: new FormControl(null, [Validators.required]), | assignedTo: new FormControl(null, [Validators.required]), | ||||
| assignedToName: new FormControl(null, []), | |||||
| dueAt: new FormControl(null, [Validators.required]), | dueAt: new FormControl(null, [Validators.required]), | ||||
| partner: new FormControl(null, []), | partner: new FormControl(null, []), | ||||
| partnerName: new FormControl(null, []), | |||||
| contact: new FormControl(null, []), | contact: new FormControl(null, []), | ||||
| contactName: new FormControl(null, []), | |||||
| prio: new FormControl(null, [Validators.required]), | prio: new FormControl(null, [Validators.required]), | ||||
| completed: new FormControl(null, []), | completed: new FormControl(null, []), | ||||
| createdAt: new FormControl(null, []) | createdAt: new FormControl(null, []) | ||||
| @@ -231,10 +238,14 @@ export const taskJsonhalForm = new FormGroup({ | |||||
| headline: new FormControl(null, [Validators.required]), | headline: new FormControl(null, [Validators.required]), | ||||
| description: new FormControl(null, [Validators.required]), | description: new FormControl(null, [Validators.required]), | ||||
| createdBy: new FormControl(null, []), | createdBy: new FormControl(null, []), | ||||
| createdByName: new FormControl(null, []), | |||||
| assignedTo: new FormControl(null, [Validators.required]), | assignedTo: new FormControl(null, [Validators.required]), | ||||
| assignedToName: new FormControl(null, []), | |||||
| dueAt: new FormControl(null, [Validators.required]), | dueAt: new FormControl(null, [Validators.required]), | ||||
| partner: new FormControl(null, []), | partner: new FormControl(null, []), | ||||
| partnerName: new FormControl(null, []), | |||||
| contact: new FormControl(null, []), | contact: new FormControl(null, []), | ||||
| contactName: new FormControl(null, []), | |||||
| prio: new FormControl(null, [Validators.required]), | prio: new FormControl(null, [Validators.required]), | ||||
| completed: new FormControl(null, []), | completed: new FormControl(null, []), | ||||
| createdAt: new FormControl(null, []) | createdAt: new FormControl(null, []) | ||||
| @@ -244,10 +255,14 @@ export const taskJsonldForm = new FormGroup({ | |||||
| headline: new FormControl(null, [Validators.required]), | headline: new FormControl(null, [Validators.required]), | ||||
| description: new FormControl(null, [Validators.required]), | description: new FormControl(null, [Validators.required]), | ||||
| createdBy: new FormControl(null, []), | createdBy: new FormControl(null, []), | ||||
| createdByName: new FormControl(null, []), | |||||
| assignedTo: new FormControl(null, [Validators.required]), | assignedTo: new FormControl(null, [Validators.required]), | ||||
| assignedToName: new FormControl(null, []), | |||||
| dueAt: new FormControl(null, [Validators.required]), | dueAt: new FormControl(null, [Validators.required]), | ||||
| partner: new FormControl(null, []), | partner: new FormControl(null, []), | ||||
| partnerName: new FormControl(null, []), | |||||
| contact: new FormControl(null, []), | contact: new FormControl(null, []), | ||||
| contactName: new FormControl(null, []), | |||||
| prio: new FormControl(null, [Validators.required]), | prio: new FormControl(null, [Validators.required]), | ||||
| completed: new FormControl(null, []), | completed: new FormControl(null, []), | ||||
| createdAt: new FormControl(null, []) | createdAt: new FormControl(null, []) | ||||
| @@ -43,7 +43,7 @@ export class NewContactComponent implements OnInit { | |||||
| // On submit form: Check if image is set | // On submit form: Check if image is set | ||||
| onSubmit() { | onSubmit() { | ||||
| if (this.selectedImage !== null) { | if (this.selectedImage !== null) { | ||||
| this.mediaSub = this.mediaService.mediaPost( | |||||
| this.mediaSub = this.mediaService.mediasPost( | |||||
| this.selectedImage | this.selectedImage | ||||
| ).subscribe( | ).subscribe( | ||||
| data => { | data => { | ||||
| @@ -1,5 +1,4 @@ | |||||
| .gitignore | .gitignore | ||||
| .openapi-generator-ignore | |||||
| README.md | README.md | ||||
| api.module.ts | api.module.ts | ||||
| api/api.ts | api/api.ts | ||||
| @@ -25,8 +24,8 @@ model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts | |||||
| model/apiCommentsGetCollection200ResponseHydraView.ts | model/apiCommentsGetCollection200ResponseHydraView.ts | ||||
| model/apiContactsGetCollection200Response.ts | model/apiContactsGetCollection200Response.ts | ||||
| model/apiContactsGetCollection200Response1.ts | model/apiContactsGetCollection200Response1.ts | ||||
| model/apiMediaGetCollection200Response.ts | |||||
| model/apiMediaGetCollection200Response1.ts | |||||
| model/apiMediasGetCollection200Response.ts | |||||
| model/apiMediasGetCollection200Response1.ts | |||||
| model/apiPartnersGetCollection200Response.ts | model/apiPartnersGetCollection200Response.ts | ||||
| model/apiPartnersGetCollection200Response1.ts | model/apiPartnersGetCollection200Response1.ts | ||||
| model/apiPostsGetCollection200Response.ts | model/apiPostsGetCollection200Response.ts | ||||
| @@ -19,9 +19,9 @@ import { CustomHttpParameterCodec } from '../encoder'; | |||||
| import { Observable } from 'rxjs'; | import { Observable } from 'rxjs'; | ||||
| // @ts-ignore | // @ts-ignore | ||||
| import { ApiMediaGetCollection200Response } from '../model/apiMediaGetCollection200Response'; | |||||
| import { ApiMediasGetCollection200Response } from '../model/apiMediasGetCollection200Response'; | |||||
| // @ts-ignore | // @ts-ignore | ||||
| import { ApiMediaGetCollection200Response1 } from '../model/apiMediaGetCollection200Response1'; | |||||
| import { ApiMediasGetCollection200Response1 } from '../model/apiMediasGetCollection200Response1'; | |||||
| // @ts-ignore | // @ts-ignore | ||||
| import { MediaJsonhalMediaObjectRead } from '../model/mediaJsonhalMediaObjectRead'; | import { MediaJsonhalMediaObjectRead } from '../model/mediaJsonhalMediaObjectRead'; | ||||
| // @ts-ignore | // @ts-ignore | ||||
| @@ -120,10 +120,10 @@ export class MediaService { | |||||
| * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. | * @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. | * @param reportProgress flag to report request and response progress. | ||||
| */ | */ | ||||
| public mediaGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiMediaGetCollection200Response>; | |||||
| public mediaGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiMediaGetCollection200Response>>; | |||||
| public mediaGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiMediaGetCollection200Response>>; | |||||
| public mediaGetCollection(page?: number, itemsPerPage?: number, 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 mediasGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiMediasGetCollection200Response>; | |||||
| public mediasGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiMediasGetCollection200Response>>; | |||||
| public mediasGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiMediasGetCollection200Response>>; | |||||
| public mediasGetCollection(page?: number, itemsPerPage?: number, 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}); | let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||||
| if (page !== undefined && page !== null) { | if (page !== undefined && page !== null) { | ||||
| @@ -181,8 +181,8 @@ export class MediaService { | |||||
| } | } | ||||
| } | } | ||||
| let localVarPath = `/api/media`; | |||||
| return this.httpClient.request<ApiMediaGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`, | |||||
| let localVarPath = `/api/medias`; | |||||
| return this.httpClient.request<ApiMediasGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`, | |||||
| { | { | ||||
| context: localVarHttpContext, | context: localVarHttpContext, | ||||
| params: localVarQueryParameters, | params: localVarQueryParameters, | ||||
| @@ -203,12 +203,12 @@ export class MediaService { | |||||
| * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. | * @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. | * @param reportProgress flag to report request and response progress. | ||||
| */ | */ | ||||
| public mediaIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||||
| public mediaIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||||
| public mediaIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||||
| public mediaIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||||
| public mediasIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; | |||||
| public mediasIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; | |||||
| public mediasIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; | |||||
| public mediasIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { | |||||
| if (id === null || id === undefined) { | if (id === null || id === undefined) { | ||||
| throw new Error('Required parameter id was null or undefined when calling mediaIdDelete.'); | |||||
| throw new Error('Required parameter id was null or undefined when calling mediasIdDelete.'); | |||||
| } | } | ||||
| let localVarHeaders = this.defaultHeaders; | let localVarHeaders = this.defaultHeaders; | ||||
| @@ -253,7 +253,7 @@ export class MediaService { | |||||
| } | } | ||||
| } | } | ||||
| let localVarPath = `/api/media/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||||
| let localVarPath = `/api/medias/${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}`, | return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, | ||||
| { | { | ||||
| context: localVarHttpContext, | context: localVarHttpContext, | ||||
| @@ -274,12 +274,12 @@ export class MediaService { | |||||
| * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. | * @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. | * @param reportProgress flag to report request and response progress. | ||||
| */ | */ | ||||
| public mediaIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<MediaJsonldMediaObjectRead>; | |||||
| public mediaIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<MediaJsonldMediaObjectRead>>; | |||||
| public mediaIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<MediaJsonldMediaObjectRead>>; | |||||
| public mediaIdGet(id: string, 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 mediasIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<MediaJsonldMediaObjectRead>; | |||||
| public mediasIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<MediaJsonldMediaObjectRead>>; | |||||
| public mediasIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<MediaJsonldMediaObjectRead>>; | |||||
| public mediasIdGet(id: string, 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) { | if (id === null || id === undefined) { | ||||
| throw new Error('Required parameter id was null or undefined when calling mediaIdGet.'); | |||||
| throw new Error('Required parameter id was null or undefined when calling mediasIdGet.'); | |||||
| } | } | ||||
| let localVarHeaders = this.defaultHeaders; | let localVarHeaders = this.defaultHeaders; | ||||
| @@ -328,7 +328,7 @@ export class MediaService { | |||||
| } | } | ||||
| } | } | ||||
| let localVarPath = `/api/media/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||||
| let localVarPath = `/api/medias/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; | |||||
| return this.httpClient.request<MediaJsonldMediaObjectRead>('get', `${this.configuration.basePath}${localVarPath}`, | return this.httpClient.request<MediaJsonldMediaObjectRead>('get', `${this.configuration.basePath}${localVarPath}`, | ||||
| { | { | ||||
| context: localVarHttpContext, | context: localVarHttpContext, | ||||
| @@ -349,10 +349,10 @@ export class MediaService { | |||||
| * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. | * @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. | * @param reportProgress flag to report request and response progress. | ||||
| */ | */ | ||||
| public mediaPost(file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<MediaJsonldMediaObjectRead>; | |||||
| public mediaPost(file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<MediaJsonldMediaObjectRead>>; | |||||
| public mediaPost(file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<MediaJsonldMediaObjectRead>>; | |||||
| public mediaPost(file?: Blob, 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 mediasPost(file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<MediaJsonldMediaObjectRead>; | |||||
| public mediasPost(file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<MediaJsonldMediaObjectRead>>; | |||||
| public mediasPost(file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<MediaJsonldMediaObjectRead>>; | |||||
| public mediasPost(file?: Blob, 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 localVarHeaders = this.defaultHeaders; | let localVarHeaders = this.defaultHeaders; | ||||
| @@ -422,7 +422,7 @@ export class MediaService { | |||||
| } | } | ||||
| } | } | ||||
| let localVarPath = `/api/media`; | |||||
| let localVarPath = `/api/medias`; | |||||
| return this.httpClient.request<MediaJsonldMediaObjectRead>('post', `${this.configuration.basePath}${localVarPath}`, | return this.httpClient.request<MediaJsonldMediaObjectRead>('post', `${this.configuration.basePath}${localVarPath}`, | ||||
| { | { | ||||
| context: localVarHttpContext, | context: localVarHttpContext, | ||||
| @@ -104,13 +104,17 @@ export class TaskService { | |||||
| * Retrieves the collection of Task resources. | * Retrieves the collection of Task resources. | ||||
| * @param page The collection page number | * @param page The collection page number | ||||
| * @param itemsPerPage The number of items per page | * @param itemsPerPage The number of items per page | ||||
| * @param partner | |||||
| * @param partner2 | |||||
| * @param contact | |||||
| * @param contact2 | |||||
| * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. | * @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. | * @param reportProgress flag to report request and response progress. | ||||
| */ | */ | ||||
| public tasksGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiTasksGetCollection200Response>; | |||||
| public tasksGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiTasksGetCollection200Response>>; | |||||
| public tasksGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiTasksGetCollection200Response>>; | |||||
| public tasksGetCollection(page?: number, itemsPerPage?: number, 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 tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiTasksGetCollection200Response>; | |||||
| public tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiTasksGetCollection200Response>>; | |||||
| public tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiTasksGetCollection200Response>>; | |||||
| public tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, 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}); | let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||||
| if (page !== undefined && page !== null) { | if (page !== undefined && page !== null) { | ||||
| @@ -121,6 +125,26 @@ export class TaskService { | |||||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||||
| <any>itemsPerPage, 'itemsPerPage'); | <any>itemsPerPage, 'itemsPerPage'); | ||||
| } | } | ||||
| if (partner !== undefined && partner !== null) { | |||||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||||
| <any>partner, 'partner'); | |||||
| } | |||||
| if (partner2) { | |||||
| partner2.forEach((element) => { | |||||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||||
| <any>element, 'partner[]'); | |||||
| }) | |||||
| } | |||||
| if (contact !== undefined && contact !== null) { | |||||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||||
| <any>contact, 'contact'); | |||||
| } | |||||
| if (contact2) { | |||||
| contact2.forEach((element) => { | |||||
| localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | |||||
| <any>element, 'contact[]'); | |||||
| }) | |||||
| } | |||||
| let localVarHeaders = this.defaultHeaders; | let localVarHeaders = this.defaultHeaders; | ||||
| @@ -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 { MediaJsonldMediaObjectRead } from './mediaJsonldMediaObjectRead'; | |||||
| import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; | |||||
| import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; | |||||
| export interface ApiMediasGetCollection200Response { | |||||
| 'hydra:member': Array<MediaJsonldMediaObjectRead>; | |||||
| 'hydra:totalItems'?: number; | |||||
| 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; | |||||
| 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; | |||||
| } | |||||
| @@ -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 { MediaJsonhalMediaObjectRead } from './mediaJsonhalMediaObjectRead'; | |||||
| import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; | |||||
| export interface ApiMediasGetCollection200Response1 { | |||||
| _embedded: Array<MediaJsonhalMediaObjectRead>; | |||||
| totalItems?: number; | |||||
| itemsPerPage?: number; | |||||
| _links: ApiCommentsGetCollection200Response1Links; | |||||
| } | |||||
| @@ -7,8 +7,8 @@ export * from './apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner | |||||
| export * from './apiCommentsGetCollection200ResponseHydraView'; | export * from './apiCommentsGetCollection200ResponseHydraView'; | ||||
| export * from './apiContactsGetCollection200Response'; | export * from './apiContactsGetCollection200Response'; | ||||
| export * from './apiContactsGetCollection200Response1'; | export * from './apiContactsGetCollection200Response1'; | ||||
| export * from './apiMediaGetCollection200Response'; | |||||
| export * from './apiMediaGetCollection200Response1'; | |||||
| export * from './apiMediasGetCollection200Response'; | |||||
| export * from './apiMediasGetCollection200Response1'; | |||||
| export * from './apiPartnersGetCollection200Response'; | export * from './apiPartnersGetCollection200Response'; | ||||
| export * from './apiPartnersGetCollection200Response1'; | export * from './apiPartnersGetCollection200Response1'; | ||||
| export * from './apiPostsGetCollection200Response'; | export * from './apiPostsGetCollection200Response'; | ||||
| @@ -16,7 +16,7 @@ | |||||
| */ | */ | ||||
| export interface Partner { | export interface Partner { | ||||
| name: string; | name: string; | ||||
| type: Partner.TypeEnum; | |||||
| partnerType: Partner.PartnerTypeEnum; | |||||
| street?: string | null; | street?: string | null; | ||||
| streetNo?: string | null; | streetNo?: string | null; | ||||
| zip?: string | null; | zip?: string | null; | ||||
| @@ -26,14 +26,15 @@ export interface Partner { | |||||
| logo?: string | null; | logo?: string | null; | ||||
| readonly logoUrl?: string | null; | readonly logoUrl?: string | null; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| posts?: Array<string>; | |||||
| contacts?: Array<string>; | contacts?: Array<string>; | ||||
| } | } | ||||
| export namespace Partner { | export namespace Partner { | ||||
| export type TypeEnum = 'customer' | 'supplier' | 'service'; | |||||
| export const TypeEnum = { | |||||
| Customer: 'customer' as TypeEnum, | |||||
| Supplier: 'supplier' as TypeEnum, | |||||
| Service: 'service' as TypeEnum | |||||
| export type PartnerTypeEnum = 'customer' | 'supplier' | 'service'; | |||||
| export const PartnerTypeEnum = { | |||||
| Customer: 'customer' as PartnerTypeEnum, | |||||
| Supplier: 'supplier' as PartnerTypeEnum, | |||||
| Service: 'service' as PartnerTypeEnum | |||||
| }; | }; | ||||
| } | } | ||||
| @@ -18,7 +18,7 @@ import { CommentJsonhalLinks } from './commentJsonhalLinks'; | |||||
| export interface PartnerJsonhal { | export interface PartnerJsonhal { | ||||
| _links?: CommentJsonhalLinks; | _links?: CommentJsonhalLinks; | ||||
| name: string; | name: string; | ||||
| type: PartnerJsonhal.TypeEnum; | |||||
| partnerType: PartnerJsonhal.PartnerTypeEnum; | |||||
| street?: string | null; | street?: string | null; | ||||
| streetNo?: string | null; | streetNo?: string | null; | ||||
| zip?: string | null; | zip?: string | null; | ||||
| @@ -28,14 +28,15 @@ export interface PartnerJsonhal { | |||||
| logo?: string | null; | logo?: string | null; | ||||
| readonly logoUrl?: string | null; | readonly logoUrl?: string | null; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| posts?: Array<string>; | |||||
| contacts?: Array<string>; | contacts?: Array<string>; | ||||
| } | } | ||||
| export namespace PartnerJsonhal { | export namespace PartnerJsonhal { | ||||
| export type TypeEnum = 'customer' | 'supplier' | 'service'; | |||||
| export const TypeEnum = { | |||||
| Customer: 'customer' as TypeEnum, | |||||
| Supplier: 'supplier' as TypeEnum, | |||||
| Service: 'service' as TypeEnum | |||||
| export type PartnerTypeEnum = 'customer' | 'supplier' | 'service'; | |||||
| export const PartnerTypeEnum = { | |||||
| Customer: 'customer' as PartnerTypeEnum, | |||||
| Supplier: 'supplier' as PartnerTypeEnum, | |||||
| Service: 'service' as PartnerTypeEnum | |||||
| }; | }; | ||||
| } | } | ||||
| @@ -18,8 +18,9 @@ import { CommentJsonldContext } from './commentJsonldContext'; | |||||
| export interface PartnerJsonld { | export interface PartnerJsonld { | ||||
| context?: CommentJsonldContext; | context?: CommentJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | |||||
| name: string; | name: string; | ||||
| type: PartnerJsonld.TypeEnum; | |||||
| partnerType: PartnerJsonld.PartnerTypeEnum; | |||||
| street?: string | null; | street?: string | null; | ||||
| streetNo?: string | null; | streetNo?: string | null; | ||||
| zip?: string | null; | zip?: string | null; | ||||
| @@ -29,14 +30,15 @@ export interface PartnerJsonld { | |||||
| logo?: string | null; | logo?: string | null; | ||||
| readonly logoUrl?: string | null; | readonly logoUrl?: string | null; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| posts?: Array<string>; | |||||
| contacts?: Array<string>; | contacts?: Array<string>; | ||||
| } | } | ||||
| export namespace PartnerJsonld { | export namespace PartnerJsonld { | ||||
| export type TypeEnum = 'customer' | 'supplier' | 'service'; | |||||
| export const TypeEnum = { | |||||
| Customer: 'customer' as TypeEnum, | |||||
| Supplier: 'supplier' as TypeEnum, | |||||
| Service: 'service' as TypeEnum | |||||
| export type PartnerTypeEnum = 'customer' | 'supplier' | 'service'; | |||||
| export const PartnerTypeEnum = { | |||||
| Customer: 'customer' as PartnerTypeEnum, | |||||
| Supplier: 'supplier' as PartnerTypeEnum, | |||||
| Service: 'service' as PartnerTypeEnum | |||||
| }; | }; | ||||
| } | } | ||||
| @@ -18,10 +18,14 @@ export interface Task { | |||||
| headline: string | null; | headline: string | null; | ||||
| description: string | null; | description: string | null; | ||||
| readonly createdBy?: string | null; | readonly createdBy?: string | null; | ||||
| readonly createdByName?: string | null; | |||||
| assignedTo: string | null; | assignedTo: string | null; | ||||
| readonly assignedToName?: string | null; | |||||
| dueAt: string | null; | dueAt: string | null; | ||||
| partner?: string | null; | partner?: string | null; | ||||
| readonly partnerName?: string | null; | |||||
| contact?: string | null; | contact?: string | null; | ||||
| readonly contactName?: string | null; | |||||
| prio: Task.PrioEnum; | prio: Task.PrioEnum; | ||||
| completed?: boolean | null; | completed?: boolean | null; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| @@ -20,10 +20,14 @@ export interface TaskJsonhal { | |||||
| headline: string | null; | headline: string | null; | ||||
| description: string | null; | description: string | null; | ||||
| readonly createdBy?: string | null; | readonly createdBy?: string | null; | ||||
| readonly createdByName?: string | null; | |||||
| assignedTo: string | null; | assignedTo: string | null; | ||||
| readonly assignedToName?: string | null; | |||||
| dueAt: string | null; | dueAt: string | null; | ||||
| partner?: string | null; | partner?: string | null; | ||||
| readonly partnerName?: string | null; | |||||
| contact?: string | null; | contact?: string | null; | ||||
| readonly contactName?: string | null; | |||||
| prio: TaskJsonhal.PrioEnum; | prio: TaskJsonhal.PrioEnum; | ||||
| completed?: boolean | null; | completed?: boolean | null; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| @@ -22,10 +22,14 @@ export interface TaskJsonld { | |||||
| headline: string | null; | headline: string | null; | ||||
| description: string | null; | description: string | null; | ||||
| readonly createdBy?: string | null; | readonly createdBy?: string | null; | ||||
| readonly createdByName?: string | null; | |||||
| assignedTo: string | null; | assignedTo: string | null; | ||||
| readonly assignedToName?: string | null; | |||||
| dueAt: string | null; | dueAt: string | null; | ||||
| partner?: string | null; | partner?: string | null; | ||||
| readonly partnerName?: string | null; | |||||
| contact?: string | null; | contact?: string | null; | ||||
| readonly contactName?: string | null; | |||||
| prio: TaskJsonld.PrioEnum; | prio: TaskJsonld.PrioEnum; | ||||
| completed?: boolean | null; | completed?: boolean | null; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| @@ -48,7 +48,7 @@ export class NewPartnerComponent implements OnInit { | |||||
| // On submit form: Check if image is set | // On submit form: Check if image is set | ||||
| onSubmit() { | onSubmit() { | ||||
| if (this.selectedImage !== null) { | if (this.selectedImage !== null) { | ||||
| this.mediaSub = this.mediaService.mediaPost( | |||||
| this.mediaSub = this.mediaService.mediasPost( | |||||
| this.selectedImage | this.selectedImage | ||||
| ).subscribe( | ).subscribe( | ||||
| data => { | data => { | ||||
| @@ -12,7 +12,7 @@ import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap"; | |||||
| import {NewPartnerComponent} from "@app/partners/new-partner/new-partner.component"; | import {NewPartnerComponent} from "@app/partners/new-partner/new-partner.component"; | ||||
| import {TranslateModule, TranslateService} from "@ngx-translate/core"; | import {TranslateModule, TranslateService} from "@ngx-translate/core"; | ||||
| import {ModalStatus} from "@app/_helpers/modal.states"; | import {ModalStatus} from "@app/_helpers/modal.states"; | ||||
| import TypeEnum = PartnerJsonld.TypeEnum; | |||||
| import TypeEnum = PartnerJsonld.PartnerTypeEnum; | |||||
| @Component({ | @Component({ | ||||
| selector: 'app-partners', | selector: 'app-partners', | ||||
| @@ -151,13 +151,14 @@ export class PartnersComponent implements OnInit, AfterViewInit { | |||||
| navigateToPartnerDetails(element: any) { | navigateToPartnerDetails(element: any) { | ||||
| const partner: PartnerJsonld = element as PartnerJsonld; | const partner: PartnerJsonld = element as PartnerJsonld; | ||||
| this.router.navigate(['/' + partner.type, ApiConverter.extractId(partner.id)]); | |||||
| console.log(partner); | |||||
| this.router.navigate(['/' + partner.partnerType, ApiConverter.extractId(partner.id)]); | |||||
| } | } | ||||
| openModalNewPartner() { | openModalNewPartner() { | ||||
| const modalRefContact = this.modalService.open(NewPartnerComponent, this.modalOptions); | const modalRefContact = this.modalService.open(NewPartnerComponent, this.modalOptions); | ||||
| let partner: PartnerJsonld = {} as PartnerJsonld; | let partner: PartnerJsonld = {} as PartnerJsonld; | ||||
| partner.type = this.dataType as TypeEnum; | |||||
| partner.partnerType = this.dataType as TypeEnum; | |||||
| modalRefContact.componentInstance.partner = partner; | modalRefContact.componentInstance.partner = partner; | ||||
| modalRefContact.componentInstance.submit.subscribe((modalStatus: ModalStatus) => { | modalRefContact.componentInstance.submit.subscribe((modalStatus: ModalStatus) => { | ||||
| if (modalStatus === ModalStatus.Submitted) { | if (modalStatus === ModalStatus.Submitted) { | ||||
| @@ -41,7 +41,7 @@ export class NewProductComponent implements OnInit { | |||||
| onSubmit() { | onSubmit() { | ||||
| if (this.selectedImage !== null) { | if (this.selectedImage !== null) { | ||||
| this.mediaSub = this.mediaService.mediaPost( | |||||
| this.mediaSub = this.mediaService.mediasPost( | |||||
| this.selectedImage | this.selectedImage | ||||
| ).subscribe( | ).subscribe( | ||||
| data => { | data => { | ||||
| @@ -19,7 +19,7 @@ export class NewTaskComponent implements OnInit { | |||||
| protected taskSub: Subscription; | protected taskSub: Subscription; | ||||
| constructor( | constructor( | ||||
| ) { | ) { | ||||
| this.taskForm = taskForm; | this.taskForm = taskForm; | ||||
| this.taskSub = new Subscription(); | this.taskSub = new Subscription(); | ||||