| @@ -1994,6 +1994,11 @@ components: | |||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| zone: | zone: | ||||
| $ref: '#/components/schemas/Zone' | $ref: '#/components/schemas/Zone' | ||||
| name: | name: | ||||
| @@ -2037,6 +2042,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| zone: | zone: | ||||
| $ref: '#/components/schemas/Zone.jsonld' | $ref: '#/components/schemas/Zone.jsonld' | ||||
| name: | name: | ||||
| @@ -2092,10 +2102,12 @@ components: | |||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| name: | name: | ||||
| type: string | type: string | ||||
| code: | code: | ||||
| @@ -2106,13 +2118,13 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| ShippingCompany.jsonld: | ShippingCompany.jsonld: | ||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| properties: | properties: | ||||
| '@context': | '@context': | ||||
| readOnly: true | readOnly: true | ||||
| @@ -2137,6 +2149,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| name: | name: | ||||
| type: string | type: string | ||||
| code: | code: | ||||
| @@ -2147,11 +2164,19 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| Trip: | Trip: | ||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| vessel: | vessel: | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| @@ -2221,6 +2246,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| vessel: | vessel: | ||||
| readOnly: true | readOnly: true | ||||
| $ref: '#/components/schemas/Vessel.jsonld' | $ref: '#/components/schemas/Vessel.jsonld' | ||||
| @@ -2261,6 +2291,11 @@ components: | |||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| trip: | trip: | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| @@ -2312,6 +2347,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| trip: | trip: | ||||
| readOnly: true | readOnly: true | ||||
| $ref: '#/components/schemas/Trip.jsonld' | $ref: '#/components/schemas/Trip.jsonld' | ||||
| @@ -2335,11 +2375,12 @@ components: | |||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| required: | |||||
| - firstName | |||||
| - lastName | |||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| email: | email: | ||||
| format: email | format: email | ||||
| externalDocs: | externalDocs: | ||||
| @@ -2385,14 +2426,14 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| User.jsonld: | |||||
| type: object | |||||
| description: '' | |||||
| deprecated: false | |||||
| required: | required: | ||||
| - firstName | - firstName | ||||
| - lastName | - lastName | ||||
| User.jsonld: | |||||
| type: object | |||||
| description: '' | |||||
| deprecated: false | |||||
| properties: | properties: | ||||
| '@context': | '@context': | ||||
| readOnly: true | readOnly: true | ||||
| @@ -2417,6 +2458,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| email: | email: | ||||
| format: email | format: email | ||||
| externalDocs: | externalDocs: | ||||
| @@ -2462,11 +2508,20 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| required: | |||||
| - firstName | |||||
| - lastName | |||||
| UserTrip: | UserTrip: | ||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| trip: | trip: | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| @@ -2527,6 +2582,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| trip: | trip: | ||||
| readOnly: true | readOnly: true | ||||
| $ref: '#/components/schemas/Trip.jsonld' | $ref: '#/components/schemas/Trip.jsonld' | ||||
| @@ -2560,6 +2620,11 @@ components: | |||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| userTrip: | userTrip: | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| @@ -2611,6 +2676,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| userTrip: | userTrip: | ||||
| readOnly: true | readOnly: true | ||||
| $ref: '#/components/schemas/UserTrip.jsonld' | $ref: '#/components/schemas/UserTrip.jsonld' | ||||
| @@ -2635,6 +2705,11 @@ components: | |||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| userTrip: | userTrip: | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| @@ -2697,6 +2772,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| userTrip: | userTrip: | ||||
| readOnly: true | readOnly: true | ||||
| $ref: '#/components/schemas/UserTrip.jsonld' | $ref: '#/components/schemas/UserTrip.jsonld' | ||||
| @@ -2729,10 +2809,12 @@ components: | |||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| name: | name: | ||||
| type: string | type: string | ||||
| code: | code: | ||||
| @@ -2745,13 +2827,13 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| Vessel.jsonld: | Vessel.jsonld: | ||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| properties: | properties: | ||||
| '@context': | '@context': | ||||
| readOnly: true | readOnly: true | ||||
| @@ -2776,6 +2858,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| name: | name: | ||||
| type: string | type: string | ||||
| code: | code: | ||||
| @@ -2788,13 +2875,19 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| required: | |||||
| - name | |||||
| - code | |||||
| Zone: | Zone: | ||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| required: | |||||
| - name | |||||
| properties: | properties: | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| name: | name: | ||||
| type: string | type: string | ||||
| createdAt: | createdAt: | ||||
| @@ -2803,12 +2896,12 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| required: | |||||
| - name | |||||
| Zone.jsonld: | Zone.jsonld: | ||||
| type: object | type: object | ||||
| description: '' | description: '' | ||||
| deprecated: false | deprecated: false | ||||
| required: | |||||
| - name | |||||
| properties: | properties: | ||||
| '@context': | '@context': | ||||
| readOnly: true | readOnly: true | ||||
| @@ -2833,6 +2926,11 @@ components: | |||||
| '@type': | '@type': | ||||
| readOnly: true | readOnly: true | ||||
| type: string | type: string | ||||
| dbId: | |||||
| readOnly: true | |||||
| type: | |||||
| - integer | |||||
| - 'null' | |||||
| name: | name: | ||||
| type: string | type: string | ||||
| createdAt: | createdAt: | ||||
| @@ -2841,6 +2939,8 @@ components: | |||||
| - string | - string | ||||
| - 'null' | - 'null' | ||||
| format: date-time | format: date-time | ||||
| required: | |||||
| - name | |||||
| responses: { } | responses: { } | ||||
| parameters: { } | parameters: { } | ||||
| examples: { } | examples: { } | ||||
| @@ -1,6 +1,7 @@ | |||||
| import { FormGroup, FormControl, Validators } from '@angular/forms'; | import { FormGroup, FormControl, Validators } from '@angular/forms'; | ||||
| export const locationForm = new FormGroup({ | export const locationForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| zone: new FormControl(null, []), | zone: new FormControl(null, []), | ||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| code: new FormControl(null, [Validators.required]), | code: new FormControl(null, [Validators.required]), | ||||
| @@ -8,6 +9,7 @@ export const locationForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const locationJsonldForm = new FormGroup({ | export const locationJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| zone: new FormControl(null, []), | zone: new FormControl(null, []), | ||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| code: new FormControl(null, [Validators.required]), | code: new FormControl(null, [Validators.required]), | ||||
| @@ -19,18 +21,21 @@ export const mediaObjectJsonldMediaObjectReadForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const shippingCompanyForm = new FormGroup({ | export const shippingCompanyForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| code: new FormControl(null, [Validators.required]), | code: new FormControl(null, [Validators.required]), | ||||
| createdAt: new FormControl(null, []) | createdAt: new FormControl(null, []) | ||||
| }); | }); | ||||
| export const shippingCompanyJsonldForm = new FormGroup({ | export const shippingCompanyJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| code: new FormControl(null, [Validators.required]), | code: new FormControl(null, [Validators.required]), | ||||
| createdAt: new FormControl(null, []) | createdAt: new FormControl(null, []) | ||||
| }); | }); | ||||
| export const tripForm = new FormGroup({ | export const tripForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| vessel: new FormControl(null, []), | vessel: new FormControl(null, []), | ||||
| pilotReference: new FormControl(null, [Validators.required]), | pilotReference: new FormControl(null, [Validators.required]), | ||||
| captainName: new FormControl(null, []), | captainName: new FormControl(null, []), | ||||
| @@ -42,6 +47,7 @@ export const tripForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const tripJsonldForm = new FormGroup({ | export const tripJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| vessel: new FormControl(null, []), | vessel: new FormControl(null, []), | ||||
| pilotReference: new FormControl(null, [Validators.required]), | pilotReference: new FormControl(null, [Validators.required]), | ||||
| captainName: new FormControl(null, []), | captainName: new FormControl(null, []), | ||||
| @@ -53,6 +59,7 @@ export const tripJsonldForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const tripLocationForm = new FormGroup({ | export const tripLocationForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| trip: new FormControl(null, []), | trip: new FormControl(null, []), | ||||
| location: new FormControl(null, []), | location: new FormControl(null, []), | ||||
| date: new FormControl(null, [Validators.required]), | date: new FormControl(null, [Validators.required]), | ||||
| @@ -60,6 +67,7 @@ export const tripLocationForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const tripLocationJsonldForm = new FormGroup({ | export const tripLocationJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| trip: new FormControl(null, []), | trip: new FormControl(null, []), | ||||
| location: new FormControl(null, []), | location: new FormControl(null, []), | ||||
| date: new FormControl(null, [Validators.required]), | date: new FormControl(null, [Validators.required]), | ||||
| @@ -67,6 +75,7 @@ export const tripLocationJsonldForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userForm = new FormGroup({ | export const userForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| email: new FormControl(null, [Validators.required, Validators.email]), | email: new FormControl(null, [Validators.required, Validators.email]), | ||||
| firstName: new FormControl(null, [Validators.required]), | firstName: new FormControl(null, [Validators.required]), | ||||
| lastName: new FormControl(null, [Validators.required]), | lastName: new FormControl(null, [Validators.required]), | ||||
| @@ -79,6 +88,7 @@ export const userForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userJsonldForm = new FormGroup({ | export const userJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| email: new FormControl(null, [Validators.required, Validators.email]), | email: new FormControl(null, [Validators.required, Validators.email]), | ||||
| firstName: new FormControl(null, [Validators.required]), | firstName: new FormControl(null, [Validators.required]), | ||||
| lastName: new FormControl(null, [Validators.required]), | lastName: new FormControl(null, [Validators.required]), | ||||
| @@ -91,6 +101,7 @@ export const userJsonldForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userTripForm = new FormGroup({ | export const userTripForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| trip: new FormControl(null, []), | trip: new FormControl(null, []), | ||||
| user: new FormControl(null, []), | user: new FormControl(null, []), | ||||
| captainName: new FormControl(null, [Validators.required]), | captainName: new FormControl(null, [Validators.required]), | ||||
| @@ -100,6 +111,7 @@ export const userTripForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userTripJsonldForm = new FormGroup({ | export const userTripJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| trip: new FormControl(null, []), | trip: new FormControl(null, []), | ||||
| user: new FormControl(null, []), | user: new FormControl(null, []), | ||||
| captainName: new FormControl(null, [Validators.required]), | captainName: new FormControl(null, [Validators.required]), | ||||
| @@ -109,6 +121,7 @@ export const userTripJsonldForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userTripLocationForm = new FormGroup({ | export const userTripLocationForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| userTrip: new FormControl(null, []), | userTrip: new FormControl(null, []), | ||||
| location: new FormControl(null, []), | location: new FormControl(null, []), | ||||
| plannedDate: new FormControl(null, [Validators.required]), | plannedDate: new FormControl(null, [Validators.required]), | ||||
| @@ -116,6 +129,7 @@ export const userTripLocationForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userTripLocationJsonldForm = new FormGroup({ | export const userTripLocationJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| userTrip: new FormControl(null, []), | userTrip: new FormControl(null, []), | ||||
| location: new FormControl(null, []), | location: new FormControl(null, []), | ||||
| plannedDate: new FormControl(null, [Validators.required]), | plannedDate: new FormControl(null, [Validators.required]), | ||||
| @@ -123,6 +137,7 @@ export const userTripLocationJsonldForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userTripWorkLogForm = new FormGroup({ | export const userTripWorkLogForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| userTrip: new FormControl(null, []), | userTrip: new FormControl(null, []), | ||||
| startLocation: new FormControl(null, []), | startLocation: new FormControl(null, []), | ||||
| endLocation: new FormControl(null, []), | endLocation: new FormControl(null, []), | ||||
| @@ -132,6 +147,7 @@ export const userTripWorkLogForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const userTripWorkLogJsonldForm = new FormGroup({ | export const userTripWorkLogJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| userTrip: new FormControl(null, []), | userTrip: new FormControl(null, []), | ||||
| startLocation: new FormControl(null, []), | startLocation: new FormControl(null, []), | ||||
| endLocation: new FormControl(null, []), | endLocation: new FormControl(null, []), | ||||
| @@ -141,6 +157,7 @@ export const userTripWorkLogJsonldForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const vesselForm = new FormGroup({ | export const vesselForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| code: new FormControl(null, [Validators.required]), | code: new FormControl(null, [Validators.required]), | ||||
| company: new FormControl(null, []), | company: new FormControl(null, []), | ||||
| @@ -148,6 +165,7 @@ export const vesselForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const vesselJsonldForm = new FormGroup({ | export const vesselJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| code: new FormControl(null, [Validators.required]), | code: new FormControl(null, [Validators.required]), | ||||
| company: new FormControl(null, []), | company: new FormControl(null, []), | ||||
| @@ -155,11 +173,13 @@ export const vesselJsonldForm = new FormGroup({ | |||||
| }); | }); | ||||
| export const zoneForm = new FormGroup({ | export const zoneForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| createdAt: new FormControl(null, []) | createdAt: new FormControl(null, []) | ||||
| }); | }); | ||||
| export const zoneJsonldForm = new FormGroup({ | export const zoneJsonldForm = new FormGroup({ | ||||
| dbId: new FormControl(null, []), | |||||
| name: new FormControl(null, [Validators.required]), | name: new FormControl(null, [Validators.required]), | ||||
| createdAt: new FormControl(null, []) | createdAt: new FormControl(null, []) | ||||
| }); | }); | ||||
| @@ -1,4 +1,5 @@ | |||||
| .gitignore | .gitignore | ||||
| .openapi-generator-ignore | |||||
| README.md | README.md | ||||
| api.module.ts | api.module.ts | ||||
| api/api.ts | api/api.ts | ||||
| @@ -16,6 +16,7 @@ import { Zone } from './zone'; | |||||
| * | * | ||||
| */ | */ | ||||
| export interface Location { | export interface Location { | ||||
| readonly dbId?: number | null; | |||||
| zone?: Zone; | zone?: Zone; | ||||
| name: string; | name: string; | ||||
| code: string; | code: string; | ||||
| @@ -20,6 +20,7 @@ export interface LocationJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| zone?: ZoneJsonld; | zone?: ZoneJsonld; | ||||
| name: string; | name: string; | ||||
| code: string; | code: string; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface ShippingCompany { | export interface ShippingCompany { | ||||
| readonly dbId?: number | null; | |||||
| name: string; | name: string; | ||||
| code: string; | code: string; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| @@ -19,6 +19,7 @@ export interface ShippingCompanyJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| name: string; | name: string; | ||||
| code: string; | code: string; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface Trip { | export interface Trip { | ||||
| readonly dbId?: number | null; | |||||
| readonly vessel?: string; | readonly vessel?: string; | ||||
| pilotReference: string; | pilotReference: string; | ||||
| captainName?: string | null; | captainName?: string | null; | ||||
| @@ -21,6 +21,7 @@ export interface TripJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| readonly vessel?: VesselJsonld; | readonly vessel?: VesselJsonld; | ||||
| pilotReference: string; | pilotReference: string; | ||||
| captainName?: string | null; | captainName?: string | null; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface TripLocation { | export interface TripLocation { | ||||
| readonly dbId?: number | null; | |||||
| readonly trip?: string; | readonly trip?: string; | ||||
| readonly location?: string; | readonly location?: string; | ||||
| date: string | null; | date: string | null; | ||||
| @@ -21,6 +21,7 @@ export interface TripLocationJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| readonly trip?: TripJsonld; | readonly trip?: TripJsonld; | ||||
| readonly location?: LocationJsonld; | readonly location?: LocationJsonld; | ||||
| date: string | null; | date: string | null; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface User { | export interface User { | ||||
| readonly dbId?: number | null; | |||||
| email: string | null; | email: string | null; | ||||
| firstName: string | null; | firstName: string | null; | ||||
| lastName: string | null; | lastName: string | null; | ||||
| @@ -19,6 +19,7 @@ export interface UserJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| email: string | null; | email: string | null; | ||||
| firstName: string | null; | firstName: string | null; | ||||
| lastName: string | null; | lastName: string | null; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface UserTrip { | export interface UserTrip { | ||||
| readonly dbId?: number | null; | |||||
| readonly trip?: string; | readonly trip?: string; | ||||
| readonly user?: string; | readonly user?: string; | ||||
| captainName: string; | captainName: string; | ||||
| @@ -21,6 +21,7 @@ export interface UserTripJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| readonly trip?: TripJsonld; | readonly trip?: TripJsonld; | ||||
| readonly user?: UserJsonld; | readonly user?: UserJsonld; | ||||
| captainName: string; | captainName: string; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface UserTripLocation { | export interface UserTripLocation { | ||||
| readonly dbId?: number | null; | |||||
| readonly userTrip?: string; | readonly userTrip?: string; | ||||
| readonly location?: string; | readonly location?: string; | ||||
| plannedDate: string | null; | plannedDate: string | null; | ||||
| @@ -21,6 +21,7 @@ export interface UserTripLocationJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| readonly userTrip?: UserTripJsonld; | readonly userTrip?: UserTripJsonld; | ||||
| readonly location?: LocationJsonld; | readonly location?: LocationJsonld; | ||||
| plannedDate: string | null; | plannedDate: string | null; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface UserTripWorkLog { | export interface UserTripWorkLog { | ||||
| readonly dbId?: number | null; | |||||
| readonly userTrip?: string; | readonly userTrip?: string; | ||||
| readonly startLocation?: string; | readonly startLocation?: string; | ||||
| readonly endLocation?: string; | readonly endLocation?: string; | ||||
| @@ -21,6 +21,7 @@ export interface UserTripWorkLogJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| readonly userTrip?: UserTripJsonld; | readonly userTrip?: UserTripJsonld; | ||||
| readonly startLocation?: LocationJsonld; | readonly startLocation?: LocationJsonld; | ||||
| readonly endLocation?: LocationJsonld; | readonly endLocation?: LocationJsonld; | ||||
| @@ -16,6 +16,7 @@ import { ShippingCompany } from './shippingCompany'; | |||||
| * | * | ||||
| */ | */ | ||||
| export interface Vessel { | export interface Vessel { | ||||
| readonly dbId?: number | null; | |||||
| name: string; | name: string; | ||||
| code: string; | code: string; | ||||
| company?: ShippingCompany; | company?: ShippingCompany; | ||||
| @@ -20,6 +20,7 @@ export interface VesselJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| name: string; | name: string; | ||||
| code: string; | code: string; | ||||
| company?: ShippingCompanyJsonld; | company?: ShippingCompanyJsonld; | ||||
| @@ -15,6 +15,7 @@ | |||||
| * | * | ||||
| */ | */ | ||||
| export interface Zone { | export interface Zone { | ||||
| readonly dbId?: number | null; | |||||
| name: string; | name: string; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| } | } | ||||
| @@ -19,6 +19,7 @@ export interface ZoneJsonld { | |||||
| context?: LocationJsonldContext; | context?: LocationJsonldContext; | ||||
| readonly id?: string; | readonly id?: string; | ||||
| readonly type?: string; | readonly type?: string; | ||||
| readonly dbId?: number | null; | |||||
| name: string; | name: string; | ||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| } | } | ||||
| @@ -2,7 +2,6 @@ api_platform: | |||||
| title: Imaq Platform | title: Imaq Platform | ||||
| version: 1.0.0 | version: 1.0.0 | ||||
| formats: | formats: | ||||
| json: [ 'application/json' ] | |||||
| jsonld: ['application/ld+json'] | jsonld: ['application/ld+json'] | ||||
| docs_formats: | docs_formats: | ||||
| jsonld: ['application/ld+json'] | jsonld: ['application/ld+json'] | ||||
| @@ -54,6 +54,9 @@ class LocationApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| /** | /** | ||||
| * @var ZoneApi | * @var ZoneApi | ||||
| */ | */ | ||||
| @@ -53,6 +53,9 @@ class ShippingCompanyApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| #[Assert\NotBlank] | #[Assert\NotBlank] | ||||
| public string $name; | public string $name; | ||||
| @@ -41,6 +41,9 @@ class TripApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| /** | /** | ||||
| * @var VesselApi | * @var VesselApi | ||||
| */ | */ | ||||
| @@ -41,6 +41,9 @@ class TripLocationApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| /** | /** | ||||
| * @var TripApi | * @var TripApi | ||||
| */ | */ | ||||
| @@ -59,6 +59,9 @@ class UserApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| #[Assert\NotBlank] | #[Assert\NotBlank] | ||||
| #[Assert\Email] | #[Assert\Email] | ||||
| public ?string $email = null; | public ?string $email = null; | ||||
| @@ -41,6 +41,9 @@ class UserTripApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| /** | /** | ||||
| * @var TripApi | * @var TripApi | ||||
| */ | */ | ||||
| @@ -41,6 +41,9 @@ class UserTripLocationApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| /** | /** | ||||
| * @var UserTripApi | * @var UserTripApi | ||||
| */ | */ | ||||
| @@ -41,6 +41,9 @@ class UserTripWorkLogApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| /** | /** | ||||
| * @var UserTripApi | * @var UserTripApi | ||||
| */ | */ | ||||
| @@ -54,6 +54,9 @@ class VesselApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| #[Assert\NotBlank] | #[Assert\NotBlank] | ||||
| public string $name; | public string $name; | ||||
| @@ -53,6 +53,9 @@ class ZoneApi | |||||
| #[ApiProperty(readable: false, writable: false, identifier: true)] | #[ApiProperty(readable: false, writable: false, identifier: true)] | ||||
| public ?int $id = null; | public ?int $id = null; | ||||
| #[ApiProperty(writable: false)] | |||||
| public ?int $dbId = null; | |||||
| #[Assert\NotBlank] | #[Assert\NotBlank] | ||||
| public string $name; | public string $name; | ||||
| @@ -35,6 +35,7 @@ class LocationEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof Location); | assert($entity instanceof Location); | ||||
| assert($dto instanceof LocationApi); | assert($dto instanceof LocationApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->name = $entity->getName(); | $dto->name = $entity->getName(); | ||||
| $dto->code = $entity->getCode(); | $dto->code = $entity->getCode(); | ||||
| $dto->createdAt = $entity->getCreatedAt(); | $dto->createdAt = $entity->getCreatedAt(); | ||||
| @@ -34,6 +34,7 @@ class ShippingCompanyEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof ShippingCompany); | assert($entity instanceof ShippingCompany); | ||||
| assert($dto instanceof ShippingCompanyApi); | assert($dto instanceof ShippingCompanyApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->name = $entity->getName(); | $dto->name = $entity->getName(); | ||||
| $dto->code = $entity->getCode(); | $dto->code = $entity->getCode(); | ||||
| $dto->createdAt = $entity->getCreatedAt(); | $dto->createdAt = $entity->getCreatedAt(); | ||||
| @@ -36,6 +36,7 @@ class TripEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof Trip); | assert($entity instanceof Trip); | ||||
| assert($dto instanceof TripApi); | assert($dto instanceof TripApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->pilotReference = $entity->getPilotReference(); | $dto->pilotReference = $entity->getPilotReference(); | ||||
| $dto->captainName = $entity->getCaptainName(); | $dto->captainName = $entity->getCaptainName(); | ||||
| $dto->startDate = $entity->getStartDate(); | $dto->startDate = $entity->getStartDate(); | ||||
| @@ -36,6 +36,7 @@ class TripLocationEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof TripLocation); | assert($entity instanceof TripLocation); | ||||
| assert($dto instanceof TripLocationApi); | assert($dto instanceof TripLocationApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->date = $entity->getDate(); | $dto->date = $entity->getDate(); | ||||
| $dto->createdAt = $entity->getCreatedAt(); | $dto->createdAt = $entity->getCreatedAt(); | ||||
| @@ -37,6 +37,7 @@ class UserEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof User); | assert($entity instanceof User); | ||||
| assert($dto instanceof UserApi); | assert($dto instanceof UserApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->email = $entity->getEmail(); | $dto->email = $entity->getEmail(); | ||||
| $dto->firstName = $entity->getFirstName(); | $dto->firstName = $entity->getFirstName(); | ||||
| $dto->lastName = $entity->getLastName(); | $dto->lastName = $entity->getLastName(); | ||||
| @@ -36,6 +36,7 @@ class UserTripEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof UserTrip); | assert($entity instanceof UserTrip); | ||||
| assert($dto instanceof UserTripApi); | assert($dto instanceof UserTripApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->captainName = $entity->getCaptainName(); | $dto->captainName = $entity->getCaptainName(); | ||||
| $dto->startDate = $entity->getStartDate(); | $dto->startDate = $entity->getStartDate(); | ||||
| $dto->endDate = $entity->getEndDate(); | $dto->endDate = $entity->getEndDate(); | ||||
| @@ -36,6 +36,7 @@ class UserTripLocationEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof UserTripLocation); | assert($entity instanceof UserTripLocation); | ||||
| assert($dto instanceof UserTripLocationApi); | assert($dto instanceof UserTripLocationApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->plannedDate = $entity->getPlannedDate(); | $dto->plannedDate = $entity->getPlannedDate(); | ||||
| $dto->createdAt = $entity->getCreatedAt(); | $dto->createdAt = $entity->getCreatedAt(); | ||||
| @@ -36,6 +36,7 @@ class UserTripWorkLogEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof UserTripWorkLog); | assert($entity instanceof UserTripWorkLog); | ||||
| assert($dto instanceof UserTripWorkLogApi); | assert($dto instanceof UserTripWorkLogApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->startDate = $entity->getStartDate(); | $dto->startDate = $entity->getStartDate(); | ||||
| $dto->endDate = $entity->getEndDate(); | $dto->endDate = $entity->getEndDate(); | ||||
| $dto->createdAt = $entity->getCreatedAt(); | $dto->createdAt = $entity->getCreatedAt(); | ||||
| @@ -35,6 +35,7 @@ class VesselEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof Vessel); | assert($entity instanceof Vessel); | ||||
| assert($dto instanceof VesselApi); | assert($dto instanceof VesselApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->name = $entity->getName(); | $dto->name = $entity->getName(); | ||||
| $dto->code = $entity->getCode(); | $dto->code = $entity->getCode(); | ||||
| $dto->createdAt = $entity->getCreatedAt(); | $dto->createdAt = $entity->getCreatedAt(); | ||||
| @@ -28,6 +28,7 @@ class ZoneEntityToApiMapper implements MapperInterface | |||||
| assert($entity instanceof Zone); | assert($entity instanceof Zone); | ||||
| assert($dto instanceof ZoneApi); | assert($dto instanceof ZoneApi); | ||||
| $dto->dbId = $entity->getId(); | |||||
| $dto->name = $entity->getName(); | $dto->name = $entity->getName(); | ||||
| $dto->createdAt = $entity->getCreatedAt(); | $dto->createdAt = $entity->getCreatedAt(); | ||||