-
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.
Merge pull request #8 from AgricHub/amplication-agric-hub-tests
chore(Amplication): Update Generated Code
- Loading branch information
Showing
79 changed files
with
1,819 additions
and
33 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
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
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
4 changes: 4 additions & 0 deletions
4
apps/agric-hub-tests-admin/src/api/customer/EnumCustomerCustomerType.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,4 @@ | ||
export enum EnumCustomerCustomerType { | ||
Seller = "Seller", | ||
Buyer = "Buyer", | ||
} |
5 changes: 5 additions & 0 deletions
5
apps/agric-hub-tests-admin/src/api/organization/CreateOrganizationArgs.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,5 @@ | ||
import { OrganizationCreateInput } from "./OrganizationCreateInput"; | ||
|
||
export type CreateOrganizationArgs = { | ||
data: OrganizationCreateInput; | ||
}; |
5 changes: 5 additions & 0 deletions
5
apps/agric-hub-tests-admin/src/api/organization/DeleteOrganizationArgs.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,5 @@ | ||
import { OrganizationWhereUniqueInput } from "./OrganizationWhereUniqueInput"; | ||
|
||
export type DeleteOrganizationArgs = { | ||
where: OrganizationWhereUniqueInput; | ||
}; |
8 changes: 8 additions & 0 deletions
8
apps/agric-hub-tests-admin/src/api/organization/Organization.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,8 @@ | ||
export type Organization = { | ||
createdAt: Date; | ||
email: string | null; | ||
id: string; | ||
location: string | null; | ||
name: string; | ||
updatedAt: Date; | ||
}; |
5 changes: 5 additions & 0 deletions
5
apps/agric-hub-tests-admin/src/api/organization/OrganizationCountArgs.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,5 @@ | ||
import { OrganizationWhereInput } from "./OrganizationWhereInput"; | ||
|
||
export type OrganizationCountArgs = { | ||
where?: OrganizationWhereInput; | ||
}; |
5 changes: 5 additions & 0 deletions
5
apps/agric-hub-tests-admin/src/api/organization/OrganizationCreateInput.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,5 @@ | ||
export type OrganizationCreateInput = { | ||
email?: string | null; | ||
location?: string | null; | ||
name: string; | ||
}; |
9 changes: 9 additions & 0 deletions
9
apps/agric-hub-tests-admin/src/api/organization/OrganizationFindManyArgs.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,9 @@ | ||
import { OrganizationWhereInput } from "./OrganizationWhereInput"; | ||
import { OrganizationOrderByInput } from "./OrganizationOrderByInput"; | ||
|
||
export type OrganizationFindManyArgs = { | ||
where?: OrganizationWhereInput; | ||
orderBy?: Array<OrganizationOrderByInput>; | ||
skip?: number; | ||
take?: number; | ||
}; |
5 changes: 5 additions & 0 deletions
5
apps/agric-hub-tests-admin/src/api/organization/OrganizationFindUniqueArgs.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,5 @@ | ||
import { OrganizationWhereUniqueInput } from "./OrganizationWhereUniqueInput"; | ||
|
||
export type OrganizationFindUniqueArgs = { | ||
where: OrganizationWhereUniqueInput; | ||
}; |
7 changes: 7 additions & 0 deletions
7
apps/agric-hub-tests-admin/src/api/organization/OrganizationListRelationFilter.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,7 @@ | ||
import { OrganizationWhereInput } from "./OrganizationWhereInput"; | ||
|
||
export type OrganizationListRelationFilter = { | ||
every?: OrganizationWhereInput; | ||
some?: OrganizationWhereInput; | ||
none?: OrganizationWhereInput; | ||
}; |
10 changes: 10 additions & 0 deletions
10
apps/agric-hub-tests-admin/src/api/organization/OrganizationOrderByInput.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,10 @@ | ||
import { SortOrder } from "../../util/SortOrder"; | ||
|
||
export type OrganizationOrderByInput = { | ||
createdAt?: SortOrder; | ||
email?: SortOrder; | ||
id?: SortOrder; | ||
location?: SortOrder; | ||
name?: SortOrder; | ||
updatedAt?: SortOrder; | ||
}; |
5 changes: 5 additions & 0 deletions
5
apps/agric-hub-tests-admin/src/api/organization/OrganizationUpdateInput.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,5 @@ | ||
export type OrganizationUpdateInput = { | ||
email?: string | null; | ||
location?: string | null; | ||
name?: string; | ||
}; |
9 changes: 9 additions & 0 deletions
9
apps/agric-hub-tests-admin/src/api/organization/OrganizationWhereInput.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,9 @@ | ||
import { StringNullableFilter } from "../../util/StringNullableFilter"; | ||
import { StringFilter } from "../../util/StringFilter"; | ||
|
||
export type OrganizationWhereInput = { | ||
email?: StringNullableFilter; | ||
id?: StringFilter; | ||
location?: StringNullableFilter; | ||
name?: StringFilter; | ||
}; |
3 changes: 3 additions & 0 deletions
3
apps/agric-hub-tests-admin/src/api/organization/OrganizationWhereUniqueInput.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,3 @@ | ||
export type OrganizationWhereUniqueInput = { | ||
id: string; | ||
}; |
7 changes: 7 additions & 0 deletions
7
apps/agric-hub-tests-admin/src/api/organization/UpdateOrganizationArgs.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,7 @@ | ||
import { OrganizationWhereUniqueInput } from "./OrganizationWhereUniqueInput"; | ||
import { OrganizationUpdateInput } from "./OrganizationUpdateInput"; | ||
|
||
export type UpdateOrganizationArgs = { | ||
where: OrganizationWhereUniqueInput; | ||
data: OrganizationUpdateInput; | ||
}; |
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
14 changes: 14 additions & 0 deletions
14
apps/agric-hub-tests-admin/src/organization/OrganizationCreate.tsx
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,14 @@ | ||
import * as React from "react"; | ||
import { Create, SimpleForm, CreateProps, TextInput } from "react-admin"; | ||
|
||
export const OrganizationCreate = (props: CreateProps): React.ReactElement => { | ||
return ( | ||
<Create {...props}> | ||
<SimpleForm> | ||
<TextInput label="Email" source="email" type="email" /> | ||
<TextInput label="Location" source="location" /> | ||
<TextInput label="Name" source="name" /> | ||
</SimpleForm> | ||
</Create> | ||
); | ||
}; |
14 changes: 14 additions & 0 deletions
14
apps/agric-hub-tests-admin/src/organization/OrganizationEdit.tsx
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,14 @@ | ||
import * as React from "react"; | ||
import { Edit, SimpleForm, EditProps, TextInput } from "react-admin"; | ||
|
||
export const OrganizationEdit = (props: EditProps): React.ReactElement => { | ||
return ( | ||
<Edit {...props}> | ||
<SimpleForm> | ||
<TextInput label="Email" source="email" type="email" /> | ||
<TextInput label="Location" source="location" /> | ||
<TextInput label="Name" source="name" /> | ||
</SimpleForm> | ||
</Edit> | ||
); | ||
}; |
24 changes: 24 additions & 0 deletions
24
apps/agric-hub-tests-admin/src/organization/OrganizationList.tsx
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,24 @@ | ||
import * as React from "react"; | ||
import { List, Datagrid, ListProps, DateField, TextField } from "react-admin"; | ||
import Pagination from "../Components/Pagination"; | ||
|
||
export const OrganizationList = (props: ListProps): React.ReactElement => { | ||
return ( | ||
<List | ||
{...props} | ||
bulkActionButtons={false} | ||
title={"Organizations"} | ||
perPage={50} | ||
pagination={<Pagination />} | ||
> | ||
<Datagrid rowClick="show"> | ||
<DateField source="createdAt" label="Created At" /> | ||
<TextField label="Email" source="email" /> | ||
<TextField label="ID" source="id" /> | ||
<TextField label="Location" source="location" /> | ||
<TextField label="Name" source="name" /> | ||
<DateField source="updatedAt" label="Updated At" /> | ||
</Datagrid> | ||
</List> | ||
); | ||
}; |
23 changes: 23 additions & 0 deletions
23
apps/agric-hub-tests-admin/src/organization/OrganizationShow.tsx
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,23 @@ | ||
import * as React from "react"; | ||
import { | ||
Show, | ||
SimpleShowLayout, | ||
ShowProps, | ||
DateField, | ||
TextField, | ||
} from "react-admin"; | ||
|
||
export const OrganizationShow = (props: ShowProps): React.ReactElement => { | ||
return ( | ||
<Show {...props}> | ||
<SimpleShowLayout> | ||
<DateField source="createdAt" label="Created At" /> | ||
<TextField label="Email" source="email" /> | ||
<TextField label="ID" source="id" /> | ||
<TextField label="Location" source="location" /> | ||
<TextField label="Name" source="name" /> | ||
<DateField source="updatedAt" label="Updated At" /> | ||
</SimpleShowLayout> | ||
</Show> | ||
); | ||
}; |
7 changes: 7 additions & 0 deletions
7
apps/agric-hub-tests-admin/src/organization/OrganizationTitle.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,7 @@ | ||
import { Organization as TOrganization } from "../api/organization/Organization"; | ||
|
||
export const ORGANIZATION_TITLE_FIELD = "name"; | ||
|
||
export const OrganizationTitle = (record: TOrganization): string => { | ||
return record.name?.toString() || String(record.id); | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export enum EnumRoles { | ||
Buyer = "buyer", | ||
User = "user", | ||
Admin = "admin", | ||
Seller = "seller", | ||
} |
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
Oops, something went wrong.