-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from beckn/add_search_filters
[Feature] Added search filters
- Loading branch information
Showing
6 changed files
with
241 additions
and
5 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 |
---|---|---|
|
@@ -4,4 +4,5 @@ seeders/* | |
models/* | ||
package*.json | ||
LICENSE | ||
*.md | ||
*.md | ||
schemas/* |
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
export default { | ||
type: "object", | ||
properties: { | ||
intent: { | ||
type: "object", | ||
description: "The intent to buy a product or avail a service.", | ||
properties:{ | ||
item: { | ||
type: "object", | ||
description: "The product or service that the user wants to buy or avail.", | ||
properties: { | ||
descriptor: { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
description: "Physical description of the item" | ||
} | ||
} | ||
}, | ||
tags: { | ||
type: "array", | ||
description: "List of tags that the user wants to search by. This should be defined by the network policy", | ||
items: { | ||
type: "object", | ||
properties: { | ||
list: { | ||
type: "array", | ||
description: "List of tags", | ||
items: { | ||
type: "object", | ||
properties: { | ||
descriptor: { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "code of the tag" | ||
} | ||
} | ||
}, | ||
value: { | ||
type: "string", | ||
description: "value of the tag" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
}, | ||
fulfillment:{ | ||
type: "object", | ||
description: "The fulfillment details of the item", | ||
properties: { | ||
stops: { | ||
type: "array", | ||
description: "List of stops", | ||
items: { | ||
type: "object", | ||
properties: { | ||
location: { | ||
type: "object", | ||
properties: { | ||
gps: { | ||
type: "string", | ||
description: "Describes a GPS coordinate", | ||
pattern: '^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$' | ||
} | ||
} | ||
}, | ||
time: { | ||
type: "object", | ||
properties: { | ||
timestamp: { | ||
type: "string", | ||
description: "Time of the stop", | ||
format: 'date-time' | ||
} | ||
} | ||
}, | ||
type:{ | ||
type: "string", | ||
description: "The type of stop. Allowed values of this property can be defined by the network policy.", | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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