Skip to content

Commit

Permalink
feat: add new BFF api, add product intern/props components
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Jan 13, 2024
1 parent 27c4fcd commit fb80a46
Show file tree
Hide file tree
Showing 37 changed files with 1,837 additions and 486 deletions.
10 changes: 10 additions & 0 deletions src/app/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@
README.md
api.module.ts
api/api.ts
api/microfrontends.service.ts
api/products.service.ts
configuration.ts
encoder.ts
git_push.sh
index.ts
model/createMicrofrontendRequest.ts
model/createProductRequest.ts
model/createUIEndpoint.ts
model/microfrontend.ts
model/microfrontendAbstract.ts
model/microfrontendPageResult.ts
model/microfrontendSearchCriteria.ts
model/models.ts
model/problemDetailInvalidParam.ts
model/problemDetailParam.ts
Expand All @@ -17,6 +24,9 @@ model/product.ts
model/productAbstract.ts
model/productPageResult.ts
model/productSearchCriteria.ts
model/uIEndpoint.ts
model/updateMicrofrontendRequest.ts
model/updateProductRequest.ts
model/updateUIEndpoint.ts
param.ts
variables.ts
4 changes: 3 additions & 1 deletion src/app/generated/api/api.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from './microfrontends.service';
import { MicrofrontendsAPIService } from './microfrontends.service';
export * from './products.service';
import { ProductsAPIService } from './products.service';
export const APIS = [ProductsAPIService];
export const APIS = [MicrofrontendsAPIService, ProductsAPIService];
454 changes: 454 additions & 0 deletions src/app/generated/api/microfrontends.service.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/app/generated/api/products.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
31 changes: 31 additions & 0 deletions src/app/generated/model/createMicrofrontendRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CreateUIEndpoint } from './createUIEndpoint';


export interface CreateMicrofrontendRequest {
appId: string;
appVersion: string;
appName: string;
description?: string;
remoteBaseUrl: string;
remoteEntry: string;
technology?: string;
productName: string;
classifications?: Array<string>;
contact?: string;
iconName?: string;
note?: string;
exposedModule?: string;
endpoints?: Array<CreateUIEndpoint>;
}

2 changes: 1 addition & 1 deletion src/app/generated/model/createProductRequest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
18 changes: 18 additions & 0 deletions src/app/generated/model/createUIEndpoint.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface CreateUIEndpoint {
path: string;
name: string;
}

38 changes: 38 additions & 0 deletions src/app/generated/model/microfrontend.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { UIEndpoint } from './uIEndpoint';


export interface Microfrontend {
id?: string;
creationDate?: string;
creationUser?: string;
modificationDate?: string;
modificationUser?: string;
modificationCount?: number;
operator?: boolean;
appId: string;
appVersion: string;
appName: string;
description?: string;
technology?: string;
remoteBaseUrl: string;
remoteEntry: string;
productName: string;
classifications?: Array<string>;
contact?: string;
iconName?: string;
note?: string;
exposedModule?: string;
endpoints?: Array<UIEndpoint>;
}

22 changes: 22 additions & 0 deletions src/app/generated/model/microfrontendAbstract.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface MicrofrontendAbstract {
id: string;
appId: string;
appName: string;
description?: string;
remoteBaseUrl: string;
productName: string;
}

25 changes: 25 additions & 0 deletions src/app/generated/model/microfrontendPageResult.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { MicrofrontendAbstract } from './microfrontendAbstract';


export interface MicrofrontendPageResult {
/**
* The total elements in the resource.
*/
totalElements?: number;
number?: number;
size?: number;
totalPages?: number;
stream?: Array<MicrofrontendAbstract>;
}

27 changes: 27 additions & 0 deletions src/app/generated/model/microfrontendSearchCriteria.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface MicrofrontendSearchCriteria {
appId?: string | null;
appName?: string | null;
productName?: string | null;
/**
* The number of page.
*/
pageNumber?: number;
/**
* The size of page
*/
pageSize?: number;
}

9 changes: 9 additions & 0 deletions src/app/generated/model/models.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
export * from './createMicrofrontendRequest';
export * from './createProductRequest';
export * from './createUIEndpoint';
export * from './microfrontend';
export * from './microfrontendAbstract';
export * from './microfrontendPageResult';
export * from './microfrontendSearchCriteria';
export * from './problemDetailInvalidParam';
export * from './problemDetailParam';
export * from './problemDetailResponse';
export * from './product';
export * from './productAbstract';
export * from './productPageResult';
export * from './productSearchCriteria';
export * from './uIEndpoint';
export * from './updateMicrofrontendRequest';
export * from './updateProductRequest';
export * from './updateUIEndpoint';
2 changes: 1 addition & 1 deletion src/app/generated/model/problemDetailInvalidParam.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/app/generated/model/problemDetailParam.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/app/generated/model/problemDetailResponse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/app/generated/model/product.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/app/generated/model/productAbstract.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/app/generated/model/productPageResult.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/app/generated/model/productSearchCriteria.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
18 changes: 18 additions & 0 deletions src/app/generated/model/uIEndpoint.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface UIEndpoint {
path: string;
name: string;
}

31 changes: 31 additions & 0 deletions src/app/generated/model/updateMicrofrontendRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { UpdateUIEndpoint } from './updateUIEndpoint';


export interface UpdateMicrofrontendRequest {
appId: string;
appVersion: string;
appName: string;
description?: string;
remoteBaseUrl: string;
remoteEntry: string;
productName: string;
technology?: string;
classifications?: Array<string>;
contact?: string;
iconName?: string;
note?: string;
exposedModule?: string;
endpoints?: Array<UpdateUIEndpoint>;
}

2 changes: 1 addition & 1 deletion src/app/generated/model/updateProductRequest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store.
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
Expand Down
18 changes: 18 additions & 0 deletions src/app/generated/model/updateUIEndpoint.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* onecx-product-store-bff
* Backend-For-Frontend (BFF) service for onecx product store. With this API you can manage applications (technical microfrontend(s)) and product(s) as logical abstraction. A Product is a versioned cover for a collection of applications (versioned) to be used within workspaces. Microfrontends (applications) which have reference to exposed/registered modules
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface UpdateUIEndpoint {
path: string;
name: string;
}

26 changes: 26 additions & 0 deletions src/app/product-store/product-detail/product-detail.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<ocx-portal-page permission="PRODUCT#VIEW" helpArticleId="PAGE_PRODUCT_DETAIL">
<ocx-page-header
[loading]="loading"
[header]="product?.displayName"
[subheader]="'DIALOG.DETAIL.SUBHEADER' | translate"
[actions]="actions"
[figureImage]="headerImageUrl"
[figureBackground]="!product?.imageUrl"
>
</ocx-page-header>
<ocx-page-content>
<p-tabView>
<p-tabPanel id="product_detail_panel_props" [header]="'DIALOG.TABS.PROPERTIES' | translate">
<ps-product-props [product]="product"></ps-product-props>
</p-tabPanel>

<p-tabPanel id="product_detail_panel_intern" [header]="'DIALOG.TABS.INTERN' | translate">
<ps-product-intern [product]="product" [dateFormat]="dateFormat"></ps-product-intern>
</p-tabPanel>

<p-tabPanel id="product_detail_panel_apps" [header]="'DIALOG.TABS.APPS' | translate">
<!--p-panel [showHeader]="false" styleClass="pt-1 pb-0 mx-2 my-1 surface-50"> Apps </p-panel-->
</p-tabPanel>
</p-tabView>
</ocx-page-content>
</ocx-portal-page>
Loading

0 comments on commit fb80a46

Please sign in to comment.