forked from singer-io/tap-shopify
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #9 from hotgluexyz/feature/addCollects
added smart collections
- Loading branch information
Showing
4 changed files
with
156 additions
and
1 deletion.
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
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,143 @@ | ||
{ | ||
"properties": { | ||
"id": { | ||
"type": [ | ||
"null", | ||
"integer" | ||
] | ||
}, | ||
"handle": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"title": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"updated_at": { | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "date-time" | ||
}, | ||
"body_html": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"published_at": { | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "date-time" | ||
}, | ||
"sort_order": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"template_suffix": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"disjunctive": { | ||
"type": [ | ||
"null", | ||
"boolean" | ||
] | ||
}, | ||
"published_scope": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"admin_graphql_api_id": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"rules": { | ||
"items": { | ||
"properties": { | ||
"column": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"relation": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"condition": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
} | ||
}, | ||
"type": [ | ||
"null", | ||
"object" | ||
] | ||
}, | ||
"type": [ | ||
"null", | ||
"array" | ||
] | ||
}, | ||
"image": { | ||
"properties": { | ||
"alt": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"src": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"width": { | ||
"type": [ | ||
"null", | ||
"integer" | ||
] | ||
}, | ||
"created_at": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"height": { | ||
"type": [ | ||
"null", | ||
"integer" | ||
] | ||
} | ||
}, | ||
"type": [ | ||
"null", | ||
"object" | ||
] | ||
} | ||
}, | ||
"type": "object" | ||
} |
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,11 @@ | ||
import shopify | ||
|
||
from tap_shopify.streams.base import Stream | ||
from tap_shopify.context import Context | ||
|
||
|
||
class SmartCollections(Stream): | ||
name = 'smart_collections' | ||
replication_object = shopify.SmartCollection | ||
|
||
Context.stream_objects['smart_collections'] = SmartCollections |