Skip to content

Commit

Permalink
Merge pull request #44 from 2060-io/40-services-list-connections
Browse files Browse the repository at this point in the history
feat: update model DtsVO whit new attributes
  • Loading branch information
lotharking committed Aug 28, 2024
2 parents df94568 + 03e3c7a commit 5160c3a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Services/DtsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ function DtsList() {
</td>
<td className="border-b border-[#eee] px-4 py-5 pl-9 text-center dark:border-strokedark xl:pl-11">
<h5 className="font-medium text-black dark:text-white">
Connections
{dts.connection}
</h5>
</td>
<td className="border-b border-[#eee] px-4 py-5 pl-9 text-center dark:border-strokedark xl:pl-11">
{dts.createdTs && (
{dts.modifiedTs && (
<h5 className="font-medium text-black dark:text-white">
{`${dts.createdTs.getFullYear()}-${(dts.createdTs.getMonth() + 1).toString().padStart(2, '0')}-${dts.createdTs.getDate().toString().padStart(2, '0')}`}
{`${dts.modifiedTs.getFullYear()}-${(dts.modifiedTs.getMonth() + 1).toString().padStart(2, '0')}-${dts.modifiedTs.getDate().toString().padStart(2, '0')}`}
</h5>
)}
</td>
Expand Down
16 changes: 16 additions & 0 deletions src/openapi-client/models/DtsVO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ export interface DtsVO {
* @memberof DtsVO
*/
debug?: boolean;
/**
*
* @type {number}
* @memberof DtsVO
*/
connection?: number;
/**
*
* @type {Date}
* @memberof DtsVO
*/
modifiedTs?: Date;
/**
*
* @type {Date}
Expand Down Expand Up @@ -134,6 +146,8 @@ export function DtsVOFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dts
'templateFk': json['templateFk'] == null ? undefined : json['templateFk'],
'collectionFk': json['collectionFk'] == null ? undefined : json['collectionFk'],
'debug': json['debug'] == null ? undefined : json['debug'],
'connection': json['connection'] == null ? 0 : json['connection'],
'modifiedTs': json['modifiedTs'] == null ? undefined : (new Date(json['modifiedTs'])),
'createdTs': json['createdTs'] == null ? undefined : (new Date(json['createdTs'])),
'deploymentConfig': json['deploymentConfig'] == null ? undefined : json['deploymentConfig'],
};
Expand All @@ -156,6 +170,8 @@ export function DtsVOToJSON(value?: DtsVO | null): any {
'templateFk': value['templateFk'],
'collectionFk': value['collectionFk'],
'debug': value['debug'],
'connection': value['connection'] == null ? 0 : value['connection'],
'modifiedTs': value['modifiedTs'] == null ? undefined : ((value['modifiedTs']).toISOString()),
'createdTs': value['createdTs'] == null ? undefined : ((value['createdTs']).toISOString()),
'deploymentConfig': value['deploymentConfig'],
};
Expand Down

0 comments on commit 5160c3a

Please sign in to comment.