-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the connections to the new ones, but not persisting changes …
…now to asset suitabilities.
- Loading branch information
1 parent
5d5b173
commit e9daf36
Showing
12 changed files
with
138 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use server'; | ||
import { AssetDto } from '../dtos/AssetDtoSchema'; | ||
import { generateBaseEndpointSet } from '../actions/template-base-endpoints'; | ||
import { generateWithTypeEndpointSet } from '../actions/template-type-endpoints'; | ||
import { generateGraphEndpointSet } from '../actions/template-graph-endpoints'; | ||
|
||
export const { | ||
getPage, | ||
getAll, | ||
deleteIdList, | ||
postList, | ||
putList, | ||
getOne, | ||
postOne, | ||
putOne, | ||
deleteOne, | ||
getDtoListByBodyList, | ||
getDtoListByParamList | ||
} = generateBaseEndpointSet< | ||
AssetDto, | ||
number | ||
>( | ||
'/api/v2/assets' | ||
); | ||
|
||
|
||
export const { getByTypeIdList } = generateWithTypeEndpointSet<AssetDto>( | ||
'/api/v2/assets' | ||
); | ||
|
||
|
||
export const { getGraph, getGraphByNodeList, getGraphByRootId, putGraph } = | ||
generateGraphEndpointSet< | ||
AssetDto | ||
>( | ||
'/api/v2/assets' | ||
); | ||
|
||
|
38 changes: 38 additions & 0 deletions
38
app/api/READ-ONLY-generated-actions/AssetRoleTypeWorkTaskTypeSuitability.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
'use server'; | ||
import { AssetRoleWorkTaskSuitabilityDto } from '../dtos/AssetRoleWorkTaskSuitabilityDtoSchema'; | ||
import { generateBaseEndpointSet } from '../actions/template-base-endpoints'; | ||
import { generateTriIntersectionEndpointSet } from '../actions/template-tri-intersection-endpoints'; | ||
|
||
export const { | ||
getPage, | ||
getAll, | ||
deleteIdList, | ||
postList, | ||
putList, | ||
getOne, | ||
postOne, | ||
putOne, | ||
deleteOne, | ||
getDtoListByBodyList, | ||
getDtoListByParamList | ||
} = generateBaseEndpointSet< | ||
AssetRoleWorkTaskSuitabilityDto, | ||
number | ||
>( | ||
'/api/v2/workTaskTypes/assetRoleSuitabilities' | ||
); | ||
|
||
|
||
|
||
export const { | ||
getByRowIdListAndColumnIdListAndLayerId, | ||
getByRowIdListAndLayerId, | ||
getColumnIdListAndLayerId, | ||
getTriIntersectionTable | ||
} = generateTriIntersectionEndpointSet< | ||
AssetRoleWorkTaskSuitabilityDto, | ||
number, | ||
number, | ||
number | ||
>('/api/v2/workTaskTypes/assetRoleSuitabilities'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use server'; | ||
import { AssetTypeDto } from '../dtos/AssetTypeDtoSchema'; | ||
import { generateBaseEndpointSet } from '../actions/template-base-endpoints'; | ||
import { generateGraphEndpointSet } from '../actions/template-graph-endpoints'; | ||
|
||
export const { | ||
getPage, | ||
getAll, | ||
deleteIdList, | ||
postList, | ||
putList, | ||
getOne, | ||
postOne, | ||
putOne, | ||
deleteOne, | ||
getDtoListByBodyList, | ||
getDtoListByParamList | ||
} = generateBaseEndpointSet< | ||
AssetTypeDto, | ||
number | ||
>( | ||
'/api/v2/assets/types' | ||
); | ||
|
||
|
||
|
||
export const { getGraph, getGraphByNodeList, getGraphByRootId, putGraph } = | ||
generateGraphEndpointSet< | ||
AssetTypeDto | ||
>( | ||
'/api/v2/assets/types' | ||
); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ export const { | |
OrganizationTypeDto, | ||
number | ||
>( | ||
'/api/v2/organizations' | ||
'/api/v2/organizations/types' | ||
); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters