-
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.
[frontend-api] registration after order refactoring (#3462)
- Loading branch information
Showing
13 changed files
with
183 additions
and
79 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
23 changes: 23 additions & 0 deletions
23
...g/graphql-types/ModelType/Customer/CustomerUser/Input/NameInputObjectDecorator.types.yaml
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 @@ | ||
NameInputObjectDecorator: | ||
type: input-object | ||
decorator: true | ||
config: | ||
fields: | ||
firstName: | ||
type: "String!" | ||
description: "Customer user first name" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter first name" | ||
- Length: | ||
max: 100 | ||
maxMessage: "First name cannot be longer than {{ limit }} characters" | ||
lastName: | ||
type: "String!" | ||
description: "Customer user last name" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter last name" | ||
- Length: | ||
max: 100 | ||
maxMessage: "Last name cannot be longer than {{ limit }} characters" |
24 changes: 24 additions & 0 deletions
24
...-types/ModelType/Customer/CustomerUser/Input/RegistrationByOrderInputDecorator.types.yaml
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 @@ | ||
RegistrationByOrderInputDecorator: | ||
type: input-object | ||
decorator: true | ||
config: | ||
fields: | ||
orderUrlHash: | ||
type: "String!" | ||
description: "Order URL hash" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter order URL hash" | ||
password: | ||
type: "Password!" | ||
description: "Customer user password" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter new password" | ||
- Length: | ||
min: 6 | ||
minMessage: "Password must be at least {{ limit }} characters long" | ||
productListsUuids: | ||
type: "[Uuid!]!" | ||
description: "Uuids of product lists that should be merged to the product lists of the user after registration" | ||
defaultValue: [] |
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
19 changes: 19 additions & 0 deletions
19
...phql-types/ModelType/Customer/CustomerUser/Input/TelephoneInputObjectDecorator.types.yaml
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,19 @@ | ||
TelephoneInputObjectDecorator: | ||
type: input-object | ||
decorator: true | ||
config: | ||
fields: | ||
telephone: | ||
type: "String!" | ||
description: "The customer's telephone number" | ||
validation: | ||
- NotBlank: | ||
message: "Please enter telephone number" | ||
- Length: | ||
min: 9 | ||
minMessage: "Telephone number cannot be shorter than {{ limit }} characters" | ||
max: 30 | ||
maxMessage: "Telephone number cannot be longer than {{ limit }} characters" | ||
- Regex: | ||
pattern: '/^[0-9\+]+$/' | ||
message: "Please enter only numbers and the + sign" |
Oops, something went wrong.