-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da1d0d0
commit ef94a34
Showing
4 changed files
with
83 additions
and
110 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,5 @@ | ||
--- | ||
"@bigcommerce/catalyst-client": patch | ||
--- | ||
|
||
add customer & address form fields queries |
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,54 @@ | ||
import { graphql } from '../graphql'; | ||
|
||
export const FORM_FIELDS_FRAGMENT = graphql(` | ||
fragment FormFields on FormField { | ||
entityId | ||
label | ||
sortOrder | ||
isBuiltIn | ||
isRequired | ||
__typename | ||
... on CheckboxesFormField { | ||
options { | ||
entityId | ||
label | ||
} | ||
} | ||
... on DateFormField { | ||
defaultDate | ||
minDate | ||
maxDate | ||
} | ||
... on MultilineTextFormField { | ||
defaultText | ||
rows | ||
} | ||
... on NumberFormField { | ||
defaultNumber | ||
maxLength | ||
minNumber | ||
maxNumber | ||
} | ||
... on PasswordFormField { | ||
defaultText | ||
maxLength | ||
} | ||
... on PicklistFormField { | ||
choosePrefix | ||
options { | ||
entityId | ||
label | ||
} | ||
} | ||
... on RadioButtonsFormField { | ||
options { | ||
entityId | ||
label | ||
} | ||
} | ||
... on TextFormField { | ||
defaultText | ||
maxLength | ||
} | ||
} | ||
`); |
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