Skip to content

Commit

Permalink
Merge pull request #9 from hotgluexyz/feature/addCollects
Browse files Browse the repository at this point in the history
added smart collections
  • Loading branch information
hsyyid authored May 12, 2022
2 parents f8270a3 + 38dd59b commit e3b9d1e
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="tap-shopify",
version="1.4.8",
version="1.4.9",
description="Singer.io tap for extracting Shopify data",
author="Stitch",
url="http://github.com/singer-io/tap-shopify",
Expand Down
143 changes: 143 additions & 0 deletions tap_shopify/schemas/smart_collections.json
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"
}
1 change: 1 addition & 0 deletions tap_shopify/streams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
import tap_shopify.streams.discount_codes
import tap_shopify.streams.incoming_items
import tap_shopify.streams.events_products
import tap_shopify.streams.smart_collections
11 changes: 11 additions & 0 deletions tap_shopify/streams/smart_collections.py
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

0 comments on commit e3b9d1e

Please sign in to comment.