-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for DataStore actions (#365)
* test: move workflow test to example schemas * feat: add support for DataStore actions
- Loading branch information
1 parent
6ac08d2
commit 63a3067
Showing
7 changed files
with
192 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
}, | ||
"properties": { | ||
"children": { | ||
"value": "Save" | ||
"value": "Create" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/codegen-ui/example-schemas/workflow/dataStoreDeleteItem.json
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,21 @@ | ||
{ | ||
"componentType": "Button", | ||
"name": "DeleteCustomerButton", | ||
"properties": {}, | ||
"events": { | ||
"click": { | ||
"action": "Amplify.DataStoreDeleteItem", | ||
"parameters": { | ||
"model": "Customer", | ||
"id": { | ||
"value": "d9887268-47dd-4899-9568-db5809218751" | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"children": { | ||
"value": "Delete" | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/codegen-ui/example-schemas/workflow/dataStoreUpdateItem.json
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,29 @@ | ||
{ | ||
"componentType": "Button", | ||
"name": "UpdateCustomerButton", | ||
"properties": {}, | ||
"events": { | ||
"click": { | ||
"action": "Amplify.DataStoreUpdateItem", | ||
"parameters": { | ||
"model": "Customer", | ||
"id": { | ||
"value": "d9887268-47dd-4899-9568-db5809218751" | ||
}, | ||
"fields": { | ||
"firstName": { | ||
"value": "Din" | ||
}, | ||
"lastName": { | ||
"value": "Djarin" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"children": { | ||
"value": "Update" | ||
} | ||
} | ||
} |
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