-
Notifications
You must be signed in to change notification settings - Fork 248
/
schema.graphqls
75 lines (69 loc) · 4.84 KB
/
schema.graphqls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright © Magento, Inc. All rights reserved.
# See COPYING.txt for license details.
type Query {
pickupLocations (
distance: AreaInput @doc(description: "Perform search by location using radius and search term.")
filter: PickupLocationFilterInput @doc(description: "Apply filters by attributes.")
sort: PickupLocationSortInput @doc(description: "Specifies which attribute to sort on, and whether to return the results in ascending or descending order.")
pageSize: Int = 20 @doc(description: "The maximum number of pickup locations to return at once. The attribute is optional.")
currentPage: Int = 1 @doc(description: "Specifies which page of results to return. The default value is 1.")
): PickupLocations
@resolver(class: "Magento\\InventoryInStorePickupGraphQl\\Model\\Resolver\\PickupLocations") @doc(description: "The pickup locations query searches for locations that match the search request requirements.") @cache(cacheIdentity: "Magento\\InventoryInStorePickupGraphQl\\Model\\Resolver\\PickupLocations\\Identity")
}
input AreaInput @doc(description: "AreaInput defines the parameters which will be used for filter by specified location.") {
radius: Int! @doc(description: "The radius for the search in KM.")
country_code: String! @doc(description: "The country code where search must be performed. Required parameter together with region, city or postcode.")
region: String @doc(description: "The region where search must be performed.")
city: String @doc(description: "The city where search must be performed.")
postcode: String @doc(description: "The postcode which will be used for the search.")
}
input PickupLocationFilterInput @doc(description: "PickupLocationFilterInput defines the list of attributes and filters for the search.") {
name: FilterTypeInput @doc(description: "Filter by pickup location name."),
pickup_location_code: FilterTypeInput @doc(description: "Filter by pickup location code.")
country_id: FilterTypeInput @doc(description: "Filter by country.")
postcode: FilterTypeInput @doc(description: "Filter by postcode.")
region: FilterTypeInput @doc(description: "Filter by region.")
region_id: FilterTypeInput @doc(description: "Filter by region id.")
city: FilterTypeInput @doc(description: "Filter by city.")
street: FilterTypeInput @doc(description: "Filter by street.")
}
input PickupLocationSortInput @doc(description: "PickupLocationSortInput specifies attribute to use for sorting search results and indicates whether the results are sorted in ascending or descending order.") {
name: SortEnum @doc(description: "The pickup location name. Customer use this to identify the pickup location.")
pickup_location_code: SortEnum @doc(description: "A code assigned to pickup location to identify the source.")
distance: SortEnum @doc(description: "Distance to the address, requested by distance filter. Applicable only with distance filter. If distance sort order is present, all other sort orders will be ignored.")
country_id: SortEnum @doc(description: "Id of the country in two letters.")
region: SortEnum @doc(description: "Name of the region.")
region_id: SortEnum @doc(description: "Id of the region.")
city: SortEnum @doc(description: "City where pickup location is placed.")
street: SortEnum @doc(description: "Street where pickup location is placed.")
postcode: SortEnum @doc(description: "Postcode where pickup location is placed.")
longitude: SortEnum @doc(description: "Geographic longitude where pickup location is placed.")
latitude: SortEnum @doc(description: "Geographic latitude where pickup location is placed.")
email: SortEnum @doc(description: "Contact email of the pickup location.")
fax: SortEnum @doc(description: "Contact fax of the pickup location.")
phone: SortEnum @doc(description: "Contact phone number of the pickup location.")
contact_name: SortEnum @doc(description: "Name of the contact person.")
description: SortEnum @doc(description: "Description of the pickup location.")
}
type PickupLocations @doc(description: "Top level object returned in a pickup locations search.") {
items: [PickupLocation] @doc(description: "An array of pickup locations that match the specific search request.")
page_info: SearchResultPageInfo @doc(description: "An object that includes the page_info and currentPage values specified in the query.")
total_count: Int @doc(description: "The number of products returned.")
}
type PickupLocation @doc(description: "Defines Pickup Location information.") {
pickup_location_code: String
name: String
email: String
fax: String
contact_name: String
description: String
latitude: Float
longitude: Float
country_id: String
region_id: Int
region: String
city: String
street: String
postcode: String
phone: String
}