| @@ -1710,6 +1710,18 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| partner: | |||||
| anyOf: | |||||
| - | |||||
| $ref: '#/components/schemas/Partner' | |||||
| - | |||||
| type: 'null' | |||||
| contact: | |||||
| anyOf: | |||||
| - | |||||
| $ref: '#/components/schemas/Contact' | |||||
| - | |||||
| type: 'null' | |||||
| createdAt: | createdAt: | ||||
| readOnly: true | readOnly: true | ||||
| type: | type: | ||||
| @@ -1743,6 +1755,18 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| partner: | |||||
| anyOf: | |||||
| - | |||||
| $ref: '#/components/schemas/Partner.jsonhal' | |||||
| - | |||||
| type: 'null' | |||||
| contact: | |||||
| anyOf: | |||||
| - | |||||
| $ref: '#/components/schemas/Contact.jsonhal' | |||||
| - | |||||
| type: 'null' | |||||
| createdAt: | createdAt: | ||||
| readOnly: true | readOnly: true | ||||
| type: | type: | ||||
| @@ -1790,6 +1814,18 @@ components: | |||||
| - 'null' | - 'null' | ||||
| format: iri-reference | format: iri-reference | ||||
| example: 'https://example.com/' | example: 'https://example.com/' | ||||
| partner: | |||||
| anyOf: | |||||
| - | |||||
| $ref: '#/components/schemas/Partner.jsonld' | |||||
| - | |||||
| type: 'null' | |||||
| contact: | |||||
| anyOf: | |||||
| - | |||||
| $ref: '#/components/schemas/Contact.jsonld' | |||||
| - | |||||
| type: 'null' | |||||
| createdAt: | createdAt: | ||||
| readOnly: true | readOnly: true | ||||
| type: | type: | ||||
| @@ -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 | ||||
| @@ -9,6 +9,8 @@ | |||||
| * https://openapi-generator.tech | * https://openapi-generator.tech | ||||
| * Do not edit the class manually. | * Do not edit the class manually. | ||||
| */ | */ | ||||
| import { Partner } from './partner'; | |||||
| import { Contact } from './contact'; | |||||
| /** | /** | ||||
| @@ -17,6 +19,8 @@ | |||||
| export interface Post { | export interface Post { | ||||
| message: string | null; | message: string | null; | ||||
| owner?: string | null; | owner?: string | null; | ||||
| partner?: Partner | null; | |||||
| contact?: Contact | null; | |||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| } | } | ||||
| @@ -10,6 +10,8 @@ | |||||
| * Do not edit the class manually. | * Do not edit the class manually. | ||||
| */ | */ | ||||
| import { ContactJsonhalLinks } from './contactJsonhalLinks'; | import { ContactJsonhalLinks } from './contactJsonhalLinks'; | ||||
| import { ContactJsonhal } from './contactJsonhal'; | |||||
| import { PartnerJsonhal } from './partnerJsonhal'; | |||||
| /** | /** | ||||
| @@ -19,6 +21,8 @@ export interface PostJsonhal { | |||||
| _links?: ContactJsonhalLinks; | _links?: ContactJsonhalLinks; | ||||
| message: string | null; | message: string | null; | ||||
| owner?: string | null; | owner?: string | null; | ||||
| partner?: PartnerJsonhal | null; | |||||
| contact?: ContactJsonhal | null; | |||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| } | } | ||||
| @@ -9,6 +9,8 @@ | |||||
| * https://openapi-generator.tech | * https://openapi-generator.tech | ||||
| * Do not edit the class manually. | * Do not edit the class manually. | ||||
| */ | */ | ||||
| import { ContactJsonld } from './contactJsonld'; | |||||
| import { PartnerJsonld } from './partnerJsonld'; | |||||
| /** | /** | ||||
| @@ -20,6 +22,8 @@ export interface PostJsonld { | |||||
| readonly type?: string; | readonly type?: string; | ||||
| message: string | null; | message: string | null; | ||||
| owner?: string | null; | owner?: string | null; | ||||
| partner?: PartnerJsonld | null; | |||||
| contact?: ContactJsonld | null; | |||||
| readonly createdAt?: string | null; | readonly createdAt?: string | null; | ||||
| } | } | ||||
| @@ -117,6 +117,7 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit { | |||||
| this.partnerContactsSub = this.contactService.contactsGetCollection( | this.partnerContactsSub = this.contactService.contactsGetCollection( | ||||
| this.contactsPageIndex + 1, | this.contactsPageIndex + 1, | ||||
| 6, | |||||
| ApiConverter.extractId(this.partner.id) | ApiConverter.extractId(this.partner.id) | ||||
| ).subscribe( | ).subscribe( | ||||
| data => { | data => { | ||||
| @@ -98,9 +98,9 @@ export class PartnersComponent implements OnInit, AfterViewInit { | |||||
| } | } | ||||
| getData() { | getData() { | ||||
| // switch over this.dataType (customers, etc.) | |||||
| this.partnersSub = this.partnerService.partnersGetCollection( | this.partnersSub = this.partnerService.partnersGetCollection( | ||||
| this.pageIndex + 1, | this.pageIndex + 1, | ||||
| this.pageSize, | |||||
| this.dataType, | this.dataType, | ||||
| undefined, | undefined, | ||||
| this.nameOrderAsc, | this.nameOrderAsc, | ||||
| @@ -115,6 +115,7 @@ export class PartnersComponent implements OnInit, AfterViewInit { | |||||
| this.paginator.length = this.length; | this.paginator.length = this.length; | ||||
| } | } | ||||
| ); | ); | ||||
| // switch over this.dataType (customers, etc.) | |||||
| } | } | ||||
| handlePageEvent(e: PageEvent) { | handlePageEvent(e: PageEvent) { | ||||