Skip to content

Commit 2748e2b

Browse files
authored
Merge pull request #419 from swnsma/in-store-pickup-graphql-actualization-add-products-info
GraphQl Schema actualization with latest released changes.
2 parents 63d977f + bb1fa2d commit 2748e2b

File tree

1 file changed

+54
-8
lines changed

1 file changed

+54
-8
lines changed
Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
type Query {
22
pickupLocations (
3-
filter: PickupLocationFilterInput,
3+
area: AreaInput,
4+
filters: PickupLocationFilterInput,
5+
sort: PickupLocationSortInput,
46
pageSize: Int = 20,
5-
currentPage: Int = 1
7+
currentPage: Int = 1,
8+
productsInfo: [ProductInfoInput]
69
): PickupLocations
710
}
811

9-
input PickupLocationFilterInput {
12+
input AreaInput {
1013
# This type is added for extensibility
1114
search_term: String! # Depending on the distance calculation algorithm selected in the admin, this field will require ZIP code (for offline mode) or arbitrary part of the address (for Google mode). IMPORTANT: Current mode must be exposed as part of storeConfig query and used on the client to display different hints for the input field
1215
radius: Int # This field is not part of MVP and can be added later. IMPORTANT: Radius units must be exposed as part of storeConfig query and displayed on the client
@@ -18,12 +21,55 @@ type PickupLocations {
1821
total_count: Int
1922
}
2023

24+
input PickupLocationFilterInput {
25+
name: FilterTypeInput
26+
pickup_location_code: FilterTypeInput
27+
country_id: FilterTypeInput
28+
postcode: FilterTypeInput
29+
region: FilterTypeInput
30+
region_id: FilterTypeInput
31+
city: FilterTypeInput
32+
street: FilterTypeInput
33+
}
34+
35+
input PickupLocationSortInput {
36+
name: SortEnum
37+
pickup_location_code: SortEnum
38+
distance: SortEnum
39+
country_id: SortEnum
40+
region: SortEnum
41+
region_id: SortEnum
42+
city: SortEnum
43+
street: SortEnum
44+
postcode: SortEnum
45+
longitude: SortEnum
46+
latitude: SortEnum
47+
email: SortEnum
48+
fax: SortEnum
49+
phone: SortEnum
50+
contact_name: SortEnum
51+
description: SortEnum
52+
}
53+
2154
type PickupLocation {
55+
pickup_location_code: String
2256
name: String! # In the admin is called Frontend Name
2357
description: String! # In the admin is called Frontend Description
24-
country: String!
25-
region: String!
26-
city: String!
27-
street: String!
28-
postcode: String!
58+
email: String
59+
fax: String
60+
contact_name: String
61+
latitude: Float
62+
longitude: Float
63+
country_id: String
64+
region_id: Int
65+
region: String
66+
city: String
67+
street: String
68+
postcode: String
69+
phone: String
70+
}
71+
72+
# Used in products assignment intersection search - select Pickup Locations which can be used to deliver all products in the request.
73+
input ProductInfoInput {
74+
sku: String!
2975
}

0 commit comments

Comments
 (0)