Skip to content

Commit

Permalink
Merge pull request #1 from vtex-apps/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
wdsrocha authored Oct 14, 2020
2 parents 608da0c + 44837a9 commit 21db060
Show file tree
Hide file tree
Showing 15 changed files with 217 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @vtex-apps/checkout-ui
docs/ @vtex-apps/technical-writers
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop environment:**

<!--
Please paste the ouput of the following command in your issue. It helps us identify your environment and act more quickly to solve your problem.
$ npx envinfo --system --binaries --browsers
If the problem happens in a specific browser, please state which browser.
--->

**Smartphone environment:**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'New Feature'
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. For example: I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/questions-and-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Question
about: Ask a question you had while building a store
labels: question
---

**What are you trying to accomplish? Please describe.**
A clear and concise description of what is your question and what you're trying to accomplish in the end is.

**What have you tried so far?**
A clear and concise description of what you tried to do already.

**Additional info**
Add extra content here (code samples, screenshots,...)

| Account | Workspace |
| -------------- | ---------------- |
| `your account` | `your workspace` |
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#### What problem is this solving?

<!--- What is the motivation and context for this change? -->

#### How should this be manually tested?

[Workspace](url)

#### Checklist/Reminders

- [ ] Linked this PR to a JIRA story (if applicable).
- [ ] Updated/created tests.
- [ ] Deleted the workspace after merging this PR (if applicable).

#### Screenshots or example usage

#### Notes

<!-- Put any relevant information that doesn't fit in the other sections here. -->
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
### SublimeText ###
*.sublime-workspace

### OSX ###
.DS_Store
.AppleDouble
.LSOverride
Icon

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# App specific
node_modules/
.tmp
.vscode
npm-debug.log
.build/
.eslintrc
*.orig
yarn-error.log
5 changes: 5 additions & 0 deletions .vtexignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
.git
node_modules/
.vscode/
.gitignore
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- First version.
7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Geolocation GraphQL Interface

This app exports a GraphQL schema for geolocation results for Place Components.

### Usage

To use it in your app, run the `vtex add vtex.geolocation-graphql-interface` command.
5 changes: 5 additions & 0 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type Query {
suggestAddresses(searchTerm: String): [AddressSuggestion]

getAddressByExternalId(id: String): Address
}
24 changes: 24 additions & 0 deletions graphql/types/Address.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
type Address {
addressId: ID
addressType: AddressType
city: String
complement: String
country: String
geoCoordinates: [Float!]
neighborhood: String
number: String
postalCode: String
receiverName: String
reference: String
state: String
street: String
}

enum AddressType {
residential
commercial
inStore
giftRegistry
pickup
search
}
12 changes: 12 additions & 0 deletions graphql/types/AddressSuggestion.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
type AddressSuggestion {
description: String!
mainText: String!
mainTextMatchInterval: MatchInterval!
secondaryText: String!
externalId: String
}

type MatchInterval {
offset: Int!
length: Int!
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "geolocation-graphql-interface",
"version": "0.0.1",
"version": "0.0.2-0",
"title": "GraphQL interface for geolocation APIs",
"description": "GraphQL schemas that can be used to implement your own geolocation resolver",
"credentialType": "absolute",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit 21db060

Please sign in to comment.