diff --git a/_data/taps/schemas/shopify/v2/json/abandoned_checkouts.json b/_data/taps/schemas/shopify/v2/json/abandoned_checkouts.json new file mode 100644 index 000000000..7136709b7 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/abandoned_checkouts.json @@ -0,0 +1,1717 @@ +{ + "properties": { + "abandoned_checkout_url": { + "type": [ + "null", + "string" + ] + }, + "billing_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "buyer_accepts_marketing": { + "type": [ + "null", + "boolean" + ] + }, + "buyer_accepts_sms_marketing": { + "type": [ + "null", + "boolean" + ] + }, + "cart_token": { + "type": [ + "null", + "string" + ] + }, + "closed_at": { + "type": [ + "null", + "date-time" + ] + }, + "completed_at": { + "type": [ + "null", + "date-time" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "customer": { + "properties": { + "addresses": { + "items": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "default": { + "type": [ + "null", + "boolean" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "default_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "default": { + "type": [ + "null", + "boolean" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "email_marketing_consent": { + "properties": { + "consent_updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "opt_in_level": { + "type": [ + "null", + "string" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "last_order_id": { + "type": [ + "null", + "integer" + ] + }, + "last_order_name": { + "type": [ + "null", + "string" + ] + }, + "multipass_identifier": { + "type": [ + "null", + "string" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "orders_count": { + "type": [ + "null", + "integer" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "sms_marketing_consent": { + "properties": { + "consent_collected_from": { + "type": [ + "null", + "string" + ] + }, + "consent_updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "opt_in_level": { + "type": [ + "null", + "string" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + }, + "tags": { + "type": [ + "null", + "string" + ] + }, + "tax_exempt": { + "type": [ + "null", + "boolean" + ] + }, + "tax_exemptions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "total_spent": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "verified_email": { + "type": [ + "null", + "boolean" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "customer_locale": { + "type": [ + "null", + "string" + ] + }, + "device_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_codes": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "code": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "gateway": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "landing_site": { + "type": [ + "null", + "string" + ] + }, + "line_items": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "applied_discount": { + "type": [ + "null", + "integer" + ] + }, + "applied_discounts": { + "items": { + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "compare_at_price": { + "type": [ + "null", + "string" + ] + }, + "destination_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "destination_location_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_allocations": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "amount_set": {}, + "discount_application_index": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "duties": {}, + "fulfillable_quantity": { + "type": [ + "null", + "integer" + ] + }, + "fulfillment_service": { + "type": [ + "null", + "string" + ] + }, + "fulfillment_status": { + "type": [ + "null", + "string" + ] + }, + "gift_card": { + "type": [ + "null", + "boolean" + ] + }, + "grams": { + "type": [ + "null", + "integer" + ] + }, + "id": { + "type": [ + "null", + "integer", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "line_price": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "origin_location_id": { + "type": [ + "null", + "integer" + ] + }, + "pre_tax_price": { + "type": [ + "null", + "number" + ] + }, + "pre_tax_price_set": {}, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "product_exists": { + "type": [ + "null", + "boolean" + ] + }, + "product_id": { + "type": [ + "null", + "integer" + ] + }, + "properties": { + "anyOf": [ + { + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + { + "properties": {}, + "type": [ + "null", + "object" + ] + } + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "requires_shipping": { + "type": [ + "null", + "boolean" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "tax_code": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "taxable": { + "type": [ + "null", + "boolean" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "total_discount": { + "type": [ + "null", + "number" + ] + }, + "total_discount_set": {}, + "variant_id": { + "type": [ + "null", + "integer" + ] + }, + "variant_inventory_management": { + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + }, + "vendor": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "presentment_currency": { + "type": [ + "null", + "string" + ] + }, + "referring_site": { + "type": [ + "null", + "string" + ] + }, + "shipping_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shipping_lines": { + "items": { + "properties": { + "api_client_id": { + "type": [ + "null", + "integer" + ] + }, + "applied_discounts": { + "items": { + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "carrier_identifier": { + "type": [ + "null", + "string" + ] + }, + "carrier_service_id": { + "type": [ + "null", + "integer" + ] + }, + "code": { + "type": [ + "null", + "string" + ] + }, + "custom_tax_lines": { + "items": { + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "delivery_category": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "markup": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "requested_fulfillment_service_id": { + "type": [ + "null", + "string" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "validation_context": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "sms_marketing_phone": { + "type": [ + "null", + "string" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "source_identifier": { + "type": [ + "null", + "string" + ] + }, + "source_name": { + "type": [ + "null", + "string" + ] + }, + "source_url": { + "type": [ + "null", + "string" + ] + }, + "subtotal_price": { + "type": [ + "null", + "number" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "taxes_included": { + "type": [ + "null", + "boolean" + ] + }, + "token": { + "type": [ + "null", + "string" + ] + }, + "total_discounts": { + "type": [ + "null", + "number" + ] + }, + "total_duties": { + "type": [ + "null", + "number" + ] + }, + "total_line_items_price": { + "type": [ + "null", + "number" + ] + }, + "total_price": { + "type": [ + "null", + "number" + ] + }, + "total_tax": { + "type": [ + "null", + "number" + ] + }, + "total_weight": { + "type": [ + "null", + "integer" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "user_id": { + "type": [ + "null", + "integer" + ] + } + }, + "type": "object" +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/collects.json b/_data/taps/schemas/shopify/v2/json/collects.json new file mode 100644 index 000000000..863c5c319 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/collects.json @@ -0,0 +1,47 @@ +{ + "properties": { + "collection_id": { + "type": [ + "null", + "integer" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "product_id": { + "type": [ + "null", + "integer" + ] + }, + "sort_value": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + } + }, + "type": "object" +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/custom_collections.json b/_data/taps/schemas/shopify/v2/json/custom_collections.json new file mode 100644 index 000000000..4b3cf9139 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/custom_collections.json @@ -0,0 +1,103 @@ +{ + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "body_html": { + "type": [ + "null", + "string" + ] + }, + "handle": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "image": { + "properties": { + "alt": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "string" + ] + }, + "height": { + "type": [ + "null", + "integer" + ] + }, + "src": { + "type": [ + "null", + "string" + ] + }, + "width": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "published_at": { + "type": [ + "null", + "string" + ] + }, + "published_scope": { + "type": [ + "null", + "string" + ] + }, + "sort_order": { + "type": [ + "null", + "string" + ] + }, + "template_suffix": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "string" + ] + } + }, + "type": "object" +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/customers.json b/_data/taps/schemas/shopify/v2/json/customers.json new file mode 100644 index 000000000..539263c23 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/customers.json @@ -0,0 +1,412 @@ +{ + "properties": { + "addresses": { + "items": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "default": { + "type": [ + "null", + "boolean" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "default_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "default": { + "type": [ + "null", + "boolean" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "email_marketing_consent": { + "properties": { + "consent_updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "opt_in_level": { + "type": [ + "null", + "string" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "last_order_id": { + "type": [ + "null", + "integer" + ] + }, + "last_order_name": { + "type": [ + "null", + "string" + ] + }, + "multipass_identifier": { + "type": [ + "null", + "string" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "orders_count": { + "type": [ + "null", + "integer" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "sms_marketing_consent": { + "properties": { + "consent_collected_from": { + "type": [ + "null", + "string" + ] + }, + "consent_updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "opt_in_level": { + "type": [ + "null", + "string" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + }, + "tags": { + "type": [ + "null", + "string" + ] + }, + "tax_exempt": { + "type": [ + "null", + "boolean" + ] + }, + "tax_exemptions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "total_spent": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "verified_email": { + "type": [ + "null", + "boolean" + ] + } + }, + "type": [ + "null", + "object" + ] +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/events.json b/_data/taps/schemas/shopify/v2/json/events.json new file mode 100644 index 000000000..1cd75748a --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/events.json @@ -0,0 +1,82 @@ +{ + "properties": { + "arguments": { + "anyOf": [ + { + "items": {}, + "type": [ + "null", + "array" + ] + }, + { + "type": [ + "null", + "string" + ] + } + ] + }, + "author": { + "type": [ + "null", + "string" + ] + }, + "body": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + }, + "path": { + "type": [ + "null", + "string" + ] + }, + "subject_id": { + "type": [ + "null", + "integer" + ] + }, + "subject_type": { + "type": [ + "null", + "string" + ] + }, + "verb": { + "type": [ + "null", + "string" + ] + } + }, + "type": "object" +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/inventory_items.json b/_data/taps/schemas/shopify/v2/json/inventory_items.json new file mode 100644 index 000000000..47828eaab --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/inventory_items.json @@ -0,0 +1,102 @@ +{ + "type": "object", + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "createdAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "updatedAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "requiresShipping": { + "type": [ + "null", + "boolean" + ] + }, + "unitCost": { + "type": [ + "null", + "object" + ], + "properties": { + "amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + } + } + }, + "countryCodeOfOrigin": { + "type": [ + "null", + "string" + ] + }, + "provinceCodeOfOrigin": { + "type": [ + "null", + "string" + ] + }, + "harmonizedSystemCode": { + "type": [ + "null", + "string" + ] + }, + "tracked": { + "type": [ + "null", + "boolean" + ] + }, + "countryHarmonizedSystemCodes": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "countryCode": { + "type": [ + "null", + "string" + ] + }, + "harmonizedSystemCode": { + "type": [ + "null", + "string" + ] + } + } + } + } + } +} diff --git a/_data/taps/schemas/shopify/v2/json/inventory_levels.json b/_data/taps/schemas/shopify/v2/json/inventory_levels.json new file mode 100644 index 000000000..33e8978e6 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/inventory_levels.json @@ -0,0 +1,35 @@ +{ + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "available": { + "type": [ + "null", + "integer" + ] + }, + "inventory_item_id": { + "type": [ + "null", + "integer" + ] + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + } + }, + "type": "object" +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/locations.json b/_data/taps/schemas/shopify/v2/json/locations.json new file mode 100644 index 000000000..7bfa3f6d1 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/locations.json @@ -0,0 +1,122 @@ +{ + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/metafields.json b/_data/taps/schemas/shopify/v2/json/metafields.json new file mode 100644 index 000000000..839ac7ce9 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/metafields.json @@ -0,0 +1,84 @@ +{ + "properties": { + "owner": { + "type": [ + "null", + "object" + ], + "properties": { + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "ownerType": { + "type": [ + "null", + "string" + ] + }, + "value_type": { + "type": [ + "null", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "createdAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "namespace": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "integer", + "object", + "string" + ], + "properties": {} + }, + "updatedAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": "object" +} diff --git a/_data/taps/schemas/shopify/v2/json/order_refunds.json b/_data/taps/schemas/shopify/v2/json/order_refunds.json new file mode 100644 index 000000000..1677620aa --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/order_refunds.json @@ -0,0 +1,955 @@ +{ + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "duties": {}, + "id": { + "type": [ + "null", + "integer" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "order_adjustments": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "amount_set": { + "type": [ + "null", + "object" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "kind": { + "type": [ + "null", + "string" + ] + }, + "order_id": { + "type": [ + "null", + "integer" + ] + }, + "reason": { + "type": [ + "null", + "string" + ] + }, + "refund_id": { + "type": [ + "null", + "integer" + ] + }, + "tax_amount": { + "type": [ + "null", + "number" + ] + }, + "tax_amount_set": { + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "order_id": { + "type": [ + "null", + "integer" + ] + }, + "processed_at": { + "type": [ + "null", + "string" + ] + }, + "refund_line_items": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "integer" + ] + }, + "line_item": { + "patternProperties": { + ".+": {} + }, + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "discount_allocations": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "amount_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "discount_application_index": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "fulfillable_quantity": { + "type": [ + "null", + "integer" + ] + }, + "fulfillment_service": { + "type": [ + "null", + "string" + ] + }, + "fulfillment_status": { + "type": [ + "null", + "string" + ] + }, + "gift_card": { + "type": [ + "null", + "boolean" + ] + }, + "grams": { + "type": [ + "null", + "integer" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "pre_tax_price": { + "type": [ + "null", + "string" + ] + }, + "pre_tax_price_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "price": { + "type": [ + "null", + "string" + ] + }, + "price_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "product_exists": { + "type": [ + "null", + "boolean" + ] + }, + "product_id": { + "type": [ + "null", + "integer" + ] + }, + "properties": { + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "requires_shipping": { + "type": [ + "null", + "boolean" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "price": { + "type": [ + "null", + "string" + ] + }, + "price_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "rate": { + "type": [ + "null", + "number" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "taxable": { + "type": [ + "null", + "boolean" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "total_discount": { + "type": [ + "null", + "string" + ] + }, + "total_discount_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "variant_id": { + "type": [ + "null", + "integer" + ] + }, + "variant_inventory_management": { + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + }, + "vendor": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "line_item_id": { + "type": [ + "null", + "integer" + ] + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "restock_type": { + "type": [ + "null", + "string" + ] + }, + "subtotal": { + "type": [ + "null", + "number" + ] + }, + "subtotal_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "total_tax": { + "type": [ + "null", + "number" + ] + }, + "total_tax_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "string" + ] + }, + "currency_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "restock": { + "type": [ + "null", + "boolean" + ] + }, + "transactions": { + "items": { + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "amount": { + "type": [ + "null", + "number" + ] + }, + "authorization": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "string" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "device_id": { + "type": [ + "null", + "integer" + ] + }, + "error_code": { + "type": [ + "null", + "string" + ] + }, + "gateway": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "kind": { + "type": [ + "null", + "string" + ] + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + }, + "order_id": { + "type": [ + "null", + "integer" + ] + }, + "parent_id": { + "type": [ + "null", + "integer" + ] + }, + "payment_details": { + "properties": { + "acquirer_reference_number": { + "type": [ + "null", + "string" + ] + }, + "avs_result_code": { + "type": [ + "null", + "string" + ] + }, + "credit_card_bin": { + "type": [ + "null", + "string" + ] + }, + "credit_card_company": { + "type": [ + "null", + "string" + ] + }, + "credit_card_number": { + "type": [ + "null", + "string" + ] + }, + "cvv_result_code": { + "type": [ + "null", + "string" + ] + }, + "payments_refund_attributes": { + "type": [ + "null", + "string" + ] + }, + "processed_at": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "payments_refund_attributes": { + "properties": { + "acquirer_reference_number": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "processed_at": { + "type": [ + "null", + "string" + ] + }, + "receipt": {}, + "source_name": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "test": { + "type": [ + "null", + "boolean" + ] + }, + "user_id": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "user_id": { + "type": [ + "null", + "integer" + ] + } + }, + "type": "object" +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/orders.json b/_data/taps/schemas/shopify/v2/json/orders.json new file mode 100644 index 000000000..fc9b17248 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/orders.json @@ -0,0 +1,3730 @@ +{ + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "app_id": { + "type": [ + "null", + "integer" + ] + }, + "billing_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "browser_ip": { + "type": [ + "null", + "string" + ] + }, + "buyer_accepts_marketing": { + "type": [ + "null", + "boolean" + ] + }, + "cancel_reason": { + "type": [ + "null", + "string" + ] + }, + "cancelled_at": { + "type": [ + "null", + "date-time" + ] + }, + "cart_token": { + "type": [ + "null", + "string" + ] + }, + "checkout_id": { + "type": [ + "null", + "integer" + ] + }, + "checkout_token": { + "type": [ + "null", + "string" + ] + }, + "client_details": { + "properties": { + "accept_language": { + "type": [ + "null", + "string" + ] + }, + "browser_height": { + "type": [ + "null", + "integer" + ] + }, + "browser_ip": { + "type": [ + "null", + "string" + ] + }, + "browser_width": { + "type": [ + "null", + "integer" + ] + }, + "session_hash": { + "type": [ + "null", + "string" + ] + }, + "user_agent": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "closed_at": { + "type": [ + "null", + "date-time" + ] + }, + "confirmed": { + "type": [ + "null", + "boolean" + ] + }, + "contact_email": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "current_subtotal_price": { + "type": [ + "null", + "number" + ] + }, + "current_subtotal_price_set": { + "type": [ + "null", + "object" + ] + }, + "current_total_additional_fees_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "current_total_discounts": { + "type": [ + "null", + "number" + ] + }, + "current_total_discounts_set": { + "type": [ + "null", + "object" + ] + }, + "current_total_duties_set": { + "type": [ + "null", + "object" + ] + }, + "current_total_price": { + "type": [ + "null", + "number" + ] + }, + "current_total_price_set": { + "type": [ + "null", + "object" + ] + }, + "current_total_tax": { + "type": [ + "null", + "number" + ] + }, + "current_total_tax_set": { + "type": [ + "null", + "object" + ] + }, + "customer": { + "properties": { + "accepts_marketing": { + "type": [ + "null", + "boolean" + ] + }, + "accepts_marketing_updated_at": { + "anyOf": [ + { + "type": "date-time" + }, + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "addresses": { + "items": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "default": { + "type": [ + "null", + "boolean" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "default_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "default": { + "type": [ + "null", + "boolean" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "email_marketing_consent": { + "properties": { + "consent_updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "opt_in_level": { + "type": [ + "null", + "string" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "marketing_opt_in_level": { + "type": [ + "null", + "string" + ] + }, + "multipass_identifier": { + "type": [ + "null", + "string" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "sms_marketing_consent": { + "properties": { + "consent_collected_from": { + "type": [ + "null", + "string" + ] + }, + "consent_updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "opt_in_level": { + "type": [ + "null", + "string" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + }, + "tags": { + "type": [ + "null", + "string" + ] + }, + "tax_exempt": { + "type": [ + "null", + "boolean" + ] + }, + "tax_exemptions": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "verified_email": { + "type": [ + "null", + "boolean" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "customer_locale": { + "type": [ + "null", + "string" + ] + }, + "device_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_applications": { + "items": { + "properties": { + "allocation_method": { + "type": [ + "null", + "string" + ] + }, + "code": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "target_selection": { + "type": [ + "null", + "string" + ] + }, + "target_type": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + }, + "value_type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "discount_codes": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "code": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "estimated_taxes": { + "type": [ + "null", + "boolean" + ] + }, + "financial_status": { + "type": [ + "null", + "string" + ] + }, + "fulfillment_status": { + "type": [ + "null", + "string" + ] + }, + "fulfillments": { + "items": { + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "line_items": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "applied_discount": { + "type": [ + "null", + "integer" + ] + }, + "applied_discounts": { + "items": { + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "compare_at_price": { + "type": [ + "null", + "string" + ] + }, + "destination_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "destination_location_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_allocations": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "amount_set": {}, + "discount_application_index": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "duties": {}, + "fulfillable_quantity": { + "type": [ + "null", + "integer" + ] + }, + "fulfillment_service": { + "type": [ + "null", + "string" + ] + }, + "fulfillment_status": { + "type": [ + "null", + "string" + ] + }, + "gift_card": { + "type": [ + "null", + "boolean" + ] + }, + "grams": { + "type": [ + "null", + "integer" + ] + }, + "id": { + "type": [ + "null", + "integer", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "line_price": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "origin_location_id": { + "type": [ + "null", + "integer" + ] + }, + "pre_tax_price": { + "type": [ + "null", + "number" + ] + }, + "pre_tax_price_set": {}, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "product_exists": { + "type": [ + "null", + "boolean" + ] + }, + "product_id": { + "type": [ + "null", + "integer" + ] + }, + "properties": { + "anyOf": [ + { + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + { + "properties": {}, + "type": [ + "null", + "object" + ] + } + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "requires_shipping": { + "type": [ + "null", + "boolean" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "tax_code": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "taxable": { + "type": [ + "null", + "boolean" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "total_discount": { + "type": [ + "null", + "number" + ] + }, + "total_discount_set": {}, + "variant_id": { + "type": [ + "null", + "integer" + ] + }, + "variant_inventory_management": { + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + }, + "vendor": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "receipt": { + "properties": { + "authorization": { + "type": [ + "null", + "string" + ] + }, + "testcase": { + "type": [ + "null", + "boolean" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "service": { + "type": [ + "null", + "string" + ] + }, + "shipment_status": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "tracking_company": { + "type": [ + "null", + "string" + ] + }, + "tracking_number": { + "type": [ + "null", + "string" + ] + }, + "tracking_numbers": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "tracking_url": { + "type": [ + "null", + "string" + ] + }, + "tracking_urls": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "landing_site": { + "type": [ + "null", + "string" + ] + }, + "landing_site_ref": { + "type": [ + "null", + "string" + ] + }, + "line_items": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "applied_discount": { + "type": [ + "null", + "integer" + ] + }, + "applied_discounts": { + "items": { + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "compare_at_price": { + "type": [ + "null", + "string" + ] + }, + "destination_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "destination_location_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_allocations": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "amount_set": {}, + "discount_application_index": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "duties": {}, + "fulfillable_quantity": { + "type": [ + "null", + "integer" + ] + }, + "fulfillment_service": { + "type": [ + "null", + "string" + ] + }, + "fulfillment_status": { + "type": [ + "null", + "string" + ] + }, + "gift_card": { + "type": [ + "null", + "boolean" + ] + }, + "grams": { + "type": [ + "null", + "integer" + ] + }, + "id": { + "type": [ + "null", + "integer", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "line_price": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "origin_location_id": { + "type": [ + "null", + "integer" + ] + }, + "pre_tax_price": { + "type": [ + "null", + "number" + ] + }, + "pre_tax_price_set": {}, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "product_exists": { + "type": [ + "null", + "boolean" + ] + }, + "product_id": { + "type": [ + "null", + "integer" + ] + }, + "properties": { + "anyOf": [ + { + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + { + "properties": {}, + "type": [ + "null", + "object" + ] + } + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "requires_shipping": { + "type": [ + "null", + "boolean" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "tax_code": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "taxable": { + "type": [ + "null", + "boolean" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "total_discount": { + "type": [ + "null", + "number" + ] + }, + "total_discount_set": {}, + "variant_id": { + "type": [ + "null", + "integer" + ] + }, + "variant_inventory_management": { + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + }, + "vendor": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "merchant_of_record_app_id": { + "type": [ + "null", + "integer" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "number": { + "type": [ + "null", + "integer" + ] + }, + "order_adjustments": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "amount_set": { + "type": [ + "null", + "object" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "kind": { + "type": [ + "null", + "string" + ] + }, + "order_id": { + "type": [ + "null", + "integer" + ] + }, + "reason": { + "type": [ + "null", + "string" + ] + }, + "refund_id": { + "type": [ + "null", + "integer" + ] + }, + "tax_amount": { + "type": [ + "null", + "number" + ] + }, + "tax_amount_set": { + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "order_number": { + "type": [ + "null", + "integer" + ] + }, + "order_status_url": { + "type": [ + "null", + "string" + ] + }, + "original_total_additional_fees_set": { + "properties": { + "presentment_money": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shop_money": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "original_total_duties_set": { + "type": [ + "null", + "object" + ] + }, + "payment_gateway_names": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "payment_terms": { + "properties": { + "amount": { + "type": [ + "null", + "integer", + "string" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "due_in_days": { + "type": [ + "null", + "integer" + ] + }, + "payment_schedules": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "integer", + "string" + ] + }, + "completed_at": { + "type": [ + "null", + "string" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "due_at": { + "type": [ + "null", + "date-time" + ] + }, + "expected_payment_method": { + "type": [ + "null", + "string" + ] + }, + "issued_at": { + "type": [ + "null", + "date-time" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "payment_terms_name": { + "type": [ + "null", + "string" + ] + }, + "payment_terms_type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "poNumber": { + "type": [ + "null", + "string" + ] + }, + "presentment_currency": { + "type": [ + "null", + "string" + ] + }, + "processed_at": { + "type": [ + "null", + "date-time" + ] + }, + "reference": { + "type": [ + "null", + "string" + ] + }, + "referring_site": { + "type": [ + "null", + "string" + ] + }, + "refunds": { + "items": { + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "order_adjustments": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "amount_set": { + "type": [ + "null", + "object" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "kind": { + "type": [ + "null", + "string" + ] + }, + "order_id": { + "type": [ + "null", + "integer" + ] + }, + "reason": { + "type": [ + "null", + "string" + ] + }, + "refund_id": { + "type": [ + "null", + "integer" + ] + }, + "tax_amount": { + "type": [ + "null", + "number" + ] + }, + "tax_amount_set": { + "type": [ + "null", + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "processed_at": { + "type": [ + "null", + "date-time" + ] + }, + "refund_line_items": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "integer" + ] + }, + "line_item": { + "patternProperties": { + ".+": {} + }, + "properties": { + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "applied_discount": { + "type": [ + "null", + "integer" + ] + }, + "applied_discounts": { + "items": { + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "compare_at_price": { + "type": [ + "null", + "string" + ] + }, + "destination_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "destination_location_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_allocations": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "amount_set": {}, + "discount_application_index": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "duties": {}, + "fulfillable_quantity": { + "type": [ + "null", + "integer" + ] + }, + "fulfillment_service": { + "type": [ + "null", + "string" + ] + }, + "fulfillment_status": { + "type": [ + "null", + "string" + ] + }, + "gift_card": { + "type": [ + "null", + "boolean" + ] + }, + "grams": { + "type": [ + "null", + "integer" + ] + }, + "id": { + "type": [ + "null", + "integer", + "string" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "line_price": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_location": { + "properties": { + "active": { + "type": [ + "null", + "boolean" + ] + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "country_name": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "legacy": { + "type": [ + "null", + "boolean" + ] + }, + "localized_country_name": { + "type": [ + "null", + "string" + ] + }, + "localized_province_name": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "origin_location_id": { + "type": [ + "null", + "integer" + ] + }, + "pre_tax_price": { + "type": [ + "null", + "number" + ] + }, + "pre_tax_price_set": {}, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "product_exists": { + "type": [ + "null", + "boolean" + ] + }, + "product_id": { + "type": [ + "null", + "integer" + ] + }, + "properties": { + "anyOf": [ + { + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + { + "properties": {}, + "type": [ + "null", + "object" + ] + } + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "requires_shipping": { + "type": [ + "null", + "boolean" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "tax_code": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "taxable": { + "type": [ + "null", + "boolean" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "total_discount": { + "type": [ + "null", + "number" + ] + }, + "total_discount_set": {}, + "variant_id": { + "type": [ + "null", + "integer" + ] + }, + "variant_inventory_management": { + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + }, + "vendor": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "line_item_id": { + "type": [ + "null", + "integer" + ] + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "restock_type": { + "type": [ + "null", + "string" + ] + }, + "subtotal": { + "type": [ + "null", + "number" + ] + }, + "total_tax": { + "type": [ + "null", + "number" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "restock": { + "type": [ + "null", + "boolean" + ] + }, + "user_id": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "shipping_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "country_code": { + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "latitude": { + "type": [ + "null", + "number" + ] + }, + "longitude": { + "type": [ + "null", + "number" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "province_code": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shipping_lines": { + "items": { + "properties": { + "carrier_identifier": { + "type": [ + "null", + "string" + ] + }, + "code": { + "type": [ + "null", + "string" + ] + }, + "delivery_category": { + "type": [ + "null", + "string" + ] + }, + "discount_allocations": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "number" + ] + }, + "discount_application_index": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "discounted_price": { + "type": [ + "null", + "number" + ] + }, + "discounted_price_set": {}, + "id": { + "type": [ + "null", + "integer" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "requested_fulfillment_service_id": { + "type": [ + "null", + "string" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "source_identifier": { + "type": [ + "null", + "string" + ] + }, + "source_name": { + "type": [ + "null", + "string" + ] + }, + "source_url": { + "type": [ + "null", + "string" + ] + }, + "subtotal_price": { + "type": [ + "null", + "number" + ] + }, + "subtotal_price_set": {}, + "tags": { + "type": [ + "null", + "string" + ] + }, + "taxExempt": { + "type": [ + "null", + "boolean" + ] + }, + "tax_lines": { + "items": { + "patternProperties": { + ".+": {} + }, + "properties": { + "channel_liable": { + "type": [ + "null", + "boolean" + ] + }, + "compare_at": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "price_set": {}, + "rate": { + "type": [ + "null", + "number" + ] + }, + "source": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "zone": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "taxes_included": { + "type": [ + "null", + "boolean" + ] + }, + "test": { + "type": [ + "null", + "boolean" + ] + }, + "token": { + "type": [ + "null", + "string" + ] + }, + "total_discounts": { + "type": [ + "null", + "number" + ] + }, + "total_discounts_set": {}, + "total_line_items_price": { + "type": [ + "null", + "number" + ] + }, + "total_line_items_price_set": {}, + "total_outstanding": { + "type": [ + "null", + "number" + ] + }, + "total_price": { + "type": [ + "null", + "number" + ] + }, + "total_price_set": {}, + "total_shipping_price_set": {}, + "total_tax": { + "type": [ + "null", + "number" + ] + }, + "total_tax_set": {}, + "total_tip_received": { + "type": [ + "null", + "string" + ] + }, + "total_weight": { + "type": [ + "null", + "integer" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + }, + "user_id": { + "type": [ + "null", + "integer" + ] + } + }, + "type": "object" +} \ No newline at end of file diff --git a/_data/taps/schemas/shopify/v2/json/product_variants.json b/_data/taps/schemas/shopify/v2/json/product_variants.json new file mode 100644 index 000000000..385c6569f --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/product_variants.json @@ -0,0 +1,164 @@ +{ + "type": "object", + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "createdAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "barcode": { + "type": [ + "null", + "string" + ] + }, + "availableForSale": { + "type": [ + "null", + "boolean" + ] + }, + "compareAtPrice": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "displayName": { + "type": [ + "null", + "string" + ] + }, + "image": { + "type": [ + "null", + "object" + ], + "properties": { + "altText": { + "type": [ + "null", + "string" + ] + }, + "height": { + "type": [ + "null", + "integer" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "url": { + "type": [ + "null", + "string" + ], + "format": "uri" + }, + "width": { + "type": [ + "null", + "integer" + ] + } + } + }, + "inventoryPolicy": { + "type": [ + "null", + "string" + ] + }, + "inventoryQuantity": { + "type": [ + "null", + "integer" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "requiresComponents": { + "type": [ + "null", + "boolean" + ] + }, + "sellableOnlineQuantity": { + "type": [ + "null", + "integer" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "taxCode": { + "type": [ + "null", + "string" + ] + }, + "taxable": { + "type": [ + "null", + "boolean" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "updatedAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "product": { + "type": [ + "null", + "object" + ], + "properties": { + "id": { + "type": [ + "null", + "string" + ] + } + } + } + } +} diff --git a/_data/taps/schemas/shopify/v2/json/products.json b/_data/taps/schemas/shopify/v2/json/products.json new file mode 100644 index 000000000..4e599b593 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/products.json @@ -0,0 +1,446 @@ +{ + "properties": { + "status": { + "type": [ + "null", + "string" + ] + }, + "publishedAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "createdAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "vendor": { + "type": [ + "null", + "string" + ] + }, + "updatedAt": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "productType": { + "type": [ + "null", + "string" + ] + }, + "tags": { + "type": [ + "null", + "string" + ] + }, + "options": { + "type": [ + "null", + "array" + ], + "items": { + "properties": { + "name": { + "type": [ + "null", + "string" + ] + }, + "values": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "string" + ] + } + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "position": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + } + }, + "handle": { + "type": [ + "null", + "string" + ] + }, + "templateSuffix": { + "type": [ + "null", + "string" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "giftCardTemplateSuffix": { + "type": [ + "null", + "string" + ] + }, + "hasOnlyDefaultVariant": { + "type": [ + "null", + "string" + ] + }, + "hasOutOfStockVariants": { + "type": [ + "null", + "boolean" + ] + }, + "hasVariantsThatRequiresComponents": { + "type": [ + "null", + "boolean" + ] + }, + "isGiftCard": { + "type": [ + "null", + "boolean" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "descriptionHtml": { + "type": [ + "null", + "string" + ] + }, + "compareAtPriceRange": { + "maxVariantCompareAtPrice": { + "type": [ + "null", + "object" + ], + "properties": { + "amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "currencyCode": { + "type": [ + "null", + "string" + ] + } + } + }, + "minVariantCompareAtPrice": { + "type": [ + "null", + "object" + ], + "properties": { + "amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "currencyCode": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "category": { + "type": [ + "null", + "object" + ], + "properties": { + "id": { + "type": [ + "null", + "string" + ] + } + } + }, + "featuredMedia": { + "type": [ + "null", + "object" + ], + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "mediaContentType": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + } + } + }, + "requiresSellingPlan": { + "type": [ + "null", + "boolean" + ] + }, + "totalInventory": { + "type": [ + "null", + "integer" + ] + }, + "tracksInventory": { + "type": [ + "null", + "boolean" + ] + }, + "media": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "alt": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "mediaContentType": { + "type": [ + "null", + "string" + ] + }, + "embedUrl": { + "type": [ + "null", + "string" + ] + }, + "mimeType": { + "type": [ + "null", + "string" + ] + }, + "filename": { + "type": [ + "null", + "string" + ] + }, + "image": { + "type": [ + "null", + "object" + ], + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "url": { + "type": [ + "null", + "string" + ] + }, + "width": { + "type": [ + "null", + "string" + ] + }, + "height": { + "type": [ + "null", + "string" + ] + } + } + }, + "sources": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "url": { + "type": [ + "null", + "string" + ] + }, + "format": { + "type": [ + "null", + "string" + ] + }, + "mimeType": { + "type": [ + "null", + "string" + ] + }, + "fileSize": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "mediaWarnings": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "code": { + "type": [ + "null", + "string" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + } + } + } + }, + "mediaErrors": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "code": { + "type": [ + "null", + "string" + ] + }, + "details": { + "type": [ + "null", + "string" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + } + } + } + } + } + } + } + }, + "type": "object" +} diff --git a/_data/taps/schemas/shopify/v2/json/transactions.json b/_data/taps/schemas/shopify/v2/json/transactions.json new file mode 100644 index 000000000..fd5d97d81 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/json/transactions.json @@ -0,0 +1,265 @@ +{ + "properties": { + "error_code": { + "type": [ + "null", + "string" + ] + }, + "device_id": { + "type": [ + "null", + "integer" + ] + }, + "user_id": { + "type": [ + "null", + "integer" + ] + }, + "parent_id": { + "type": [ + "null", + "integer" + ] + }, + "test": { + "type": [ + "null", + "boolean" + ] + }, + "kind": { + "type": [ + "null", + "string" + ] + }, + "order_id": { + "type": [ + "null", + "integer" + ] + }, + "amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "authorization": { + "type": [ + "null", + "string" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "source_name": { + "type": [ + "null", + "string" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "created_at": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "payment_details": { + "properties": { + "cvv_result_code": { + "type": [ + "null", + "string" + ] + }, + "credit_card_bin": { + "type": [ + "null", + "string" + ] + }, + "credit_card_company": { + "type": [ + "null", + "string" + ] + }, + "credit_card_expiration_month": { + "type": [ + "null", + "integer" + ] + }, + "credit_card_expiration_year": { + "type": [ + "null", + "integer" + ] + }, + "credit_card_name": { + "type": [ + "null", + "string" + ] + }, + "credit_card_number": { + "type": [ + "null", + "string" + ] + }, + "credit_card_wallet": { + "type": [ + "null", + "string" + ] + }, + "avs_result_code": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "gateway": { + "type": [ + "null", + "string" + ] + }, + "admin_graphql_api_id": { + "type": [ + "null", + "string" + ] + }, + "receipt": { + "type": [ + "null", + "object" + ], + "properties": { + "fee_amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "gross_amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + }, + "tax_amount": { + "type": [ + "null", + "string" + ], + "format": "singer.decimal" + } + }, + "patternProperties": {".+": {}} + }, + "location_id": { + "type": [ + "null", + "integer" + ] + }, + "processed_at": { + "type": [ + "null", + "string" + ] + }, + "payments_refund_attributes": { + "type": [ + "null", + "object" + ], + "properties": { + "status": { + "type": [ + "null", + "string" + ] + }, + "acquirer_reference_number": { + "type": [ + "null", + "string" + ] + } + } + }, + "payment_id": { + "type": [ + "null", + "string" + ] + }, + "total_unsettled_set": { + "type": ["null", "object"], + "properties": { + "presentment_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"], + "format": "singer.decimal"}, + "currency": { + "type": ["null", "string"] + } + } + }, + "shop_money": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "string"], + "format": "singer.decimal"}, + "currency": { + "type": ["null", "string"]} + } + } + } + } + }, + "type": "object" +} diff --git a/_data/taps/schemas/shopify/v2/shopify-v2-foreign-keys.yml b/_data/taps/schemas/shopify/v2/shopify-v2-foreign-keys.yml new file mode 100644 index 000000000..a35ecb36b --- /dev/null +++ b/_data/taps/schemas/shopify/v2/shopify-v2-foreign-keys.yml @@ -0,0 +1,354 @@ +tap: shopify +version: '2' +keys: + collects_collects_id: + - table: collects + keys: + - id + custom_collections_collection_id: + - table: collects + keys: + - collection_id + - table: custom_collections + keys: + - id + customers_customer_id: + - table: abandoned_checkouts + keys: + - customer.default_address.customer_id + - customer.id + - customer.addresses.customer_id + - table: customers + keys: + - id + - addresses.id + metafields_metafield_id: + - table: metafields + keys: + - id + orders_order_id: + - table: abandoned_checkouts + keys: + - customer.last_order_id + - table: customers + keys: + - last_order_id + - table: order_refunds + keys: + - order_id + - table: orders + keys: + - id + - refunds.order_adjustments.order_id + - table: transactions + keys: + - order_id + order_refunds_refund_id: + - table: order_refunds + keys: + - id + - table: orders + keys: + - refunds.id + - refunds.order_adjustments.refund_id + product_product_id: + - table: abandoned_checkouts + keys: + - line_items.product_id + - table: collects + keys: + - product_id + - table: order_refunds + keys: + - refund_line_items.line_item.product_id + - table: orders + keys: + - fulfillments.line_items.product_id + - refunds.refund_line_items.line_item.product_id + - line_items.product_id + - table: products + keys: + - id + - options.product_id + transactions_transaction_id: + - table: transactions + keys: + - id + - parent_id +tables: +- table-name: collects + join: + - table-name: custom_collections + keys: + - key: collection_id + foreign-key: id + - table-name: abandoned_checkouts + keys: + - key: product_id + foreign-key: line_items.product_id + - table-name: order_refunds + keys: + - key: product_id + foreign-key: refund_line_items.line_item.product_id + - table-name: orders + keys: + - key: product_id + foreign-key: fulfillments.line_items.product_id + - key: product_id + foreign-key: refunds.refund_line_items.line_item.product_id + - key: product_id + foreign-key: line_items.product_id + - table-name: products + keys: + - key: product_id + foreign-key: id + - key: product_id + foreign-key: options.product_id +- table-name: custom_collections + join: + - table-name: collects + keys: + - key: id + foreign-key: collection_id +- table-name: abandoned_checkouts + join: + - table-name: customers + keys: + - key: customer.default_address.customer_id + foreign-key: id + - key: customer.id + foreign-key: id + - key: customer.addresses.customer_id + foreign-key: id + - key: customer.default_address.customer_id + foreign-key: addresses.id + - key: customer.id + foreign-key: addresses.id + - key: customer.addresses.customer_id + foreign-key: addresses.id + - key: customer.last_order_id + foreign-key: last_order_id + - table-name: order_refunds + keys: + - key: customer.last_order_id + foreign-key: order_id + - key: line_items.product_id + foreign-key: refund_line_items.line_item.product_id + - table-name: orders + keys: + - key: customer.last_order_id + foreign-key: id + - key: customer.last_order_id + foreign-key: refunds.order_adjustments.order_id + - key: line_items.product_id + foreign-key: fulfillments.line_items.product_id + - key: line_items.product_id + foreign-key: refunds.refund_line_items.line_item.product_id + - key: line_items.product_id + foreign-key: line_items.product_id + - table-name: transactions + keys: + - key: customer.last_order_id + foreign-key: order_id + - table-name: collects + keys: + - key: line_items.product_id + foreign-key: product_id + - table-name: products + keys: + - key: line_items.product_id + foreign-key: id + - key: line_items.product_id + foreign-key: options.product_id +- table-name: customers + join: + - table-name: abandoned_checkouts + keys: + - key: id + foreign-key: customer.default_address.customer_id + - key: addresses.id + foreign-key: customer.default_address.customer_id + - key: id + foreign-key: customer.id + - key: addresses.id + foreign-key: customer.id + - key: id + foreign-key: customer.addresses.customer_id + - key: addresses.id + foreign-key: customer.addresses.customer_id + - key: last_order_id + foreign-key: customer.last_order_id + - table-name: order_refunds + keys: + - key: last_order_id + foreign-key: order_id + - table-name: orders + keys: + - key: last_order_id + foreign-key: id + - key: last_order_id + foreign-key: refunds.order_adjustments.order_id + - table-name: transactions + keys: + - key: last_order_id + foreign-key: order_id +- table-name: order_refunds + join: + - table-name: abandoned_checkouts + keys: + - key: order_id + foreign-key: customer.last_order_id + - key: refund_line_items.line_item.product_id + foreign-key: line_items.product_id + - table-name: customers + keys: + - key: order_id + foreign-key: last_order_id + - table-name: orders + keys: + - key: order_id + foreign-key: id + - key: order_id + foreign-key: refunds.order_adjustments.order_id + - key: id + foreign-key: refunds.id + - key: id + foreign-key: refunds.order_adjustments.refund_id + - key: refund_line_items.line_item.product_id + foreign-key: fulfillments.line_items.product_id + - key: refund_line_items.line_item.product_id + foreign-key: refunds.refund_line_items.line_item.product_id + - key: refund_line_items.line_item.product_id + foreign-key: line_items.product_id + - table-name: transactions + keys: + - key: order_id + foreign-key: order_id + - table-name: collects + keys: + - key: refund_line_items.line_item.product_id + foreign-key: product_id + - table-name: products + keys: + - key: refund_line_items.line_item.product_id + foreign-key: id + - key: refund_line_items.line_item.product_id + foreign-key: options.product_id +- table-name: orders + join: + - table-name: abandoned_checkouts + keys: + - key: id + foreign-key: customer.last_order_id + - key: refunds.order_adjustments.order_id + foreign-key: customer.last_order_id + - key: fulfillments.line_items.product_id + foreign-key: line_items.product_id + - key: refunds.refund_line_items.line_item.product_id + foreign-key: line_items.product_id + - key: line_items.product_id + foreign-key: line_items.product_id + - table-name: customers + keys: + - key: id + foreign-key: last_order_id + - key: refunds.order_adjustments.order_id + foreign-key: last_order_id + - table-name: order_refunds + keys: + - key: id + foreign-key: order_id + - key: refunds.order_adjustments.order_id + foreign-key: order_id + - key: refunds.id + foreign-key: id + - key: refunds.order_adjustments.refund_id + foreign-key: id + - key: fulfillments.line_items.product_id + foreign-key: refund_line_items.line_item.product_id + - key: refunds.refund_line_items.line_item.product_id + foreign-key: refund_line_items.line_item.product_id + - key: line_items.product_id + foreign-key: refund_line_items.line_item.product_id + - table-name: transactions + keys: + - key: id + foreign-key: order_id + - key: refunds.order_adjustments.order_id + foreign-key: order_id + - table-name: collects + keys: + - key: fulfillments.line_items.product_id + foreign-key: product_id + - key: refunds.refund_line_items.line_item.product_id + foreign-key: product_id + - key: line_items.product_id + foreign-key: product_id + - table-name: products + keys: + - key: fulfillments.line_items.product_id + foreign-key: id + - key: refunds.refund_line_items.line_item.product_id + foreign-key: id + - key: line_items.product_id + foreign-key: id + - key: fulfillments.line_items.product_id + foreign-key: options.product_id + - key: refunds.refund_line_items.line_item.product_id + foreign-key: options.product_id + - key: line_items.product_id + foreign-key: options.product_id +- table-name: transactions + join: + - table-name: abandoned_checkouts + keys: + - key: order_id + foreign-key: customer.last_order_id + - table-name: customers + keys: + - key: order_id + foreign-key: last_order_id + - table-name: order_refunds + keys: + - key: order_id + foreign-key: order_id + - table-name: orders + keys: + - key: order_id + foreign-key: id + - key: order_id + foreign-key: refunds.order_adjustments.order_id +- table-name: products + join: + - table-name: abandoned_checkouts + keys: + - key: id + foreign-key: line_items.product_id + - key: options.product_id + foreign-key: line_items.product_id + - table-name: collects + keys: + - key: id + foreign-key: product_id + - key: options.product_id + foreign-key: product_id + - table-name: order_refunds + keys: + - key: id + foreign-key: refund_line_items.line_item.product_id + - key: options.product_id + foreign-key: refund_line_items.line_item.product_id + - table-name: orders + keys: + - key: id + foreign-key: fulfillments.line_items.product_id + - key: options.product_id + foreign-key: fulfillments.line_items.product_id + - key: id + foreign-key: refunds.refund_line_items.line_item.product_id + - key: options.product_id + foreign-key: refunds.refund_line_items.line_item.product_id + - key: id + foreign-key: line_items.product_id + - key: options.product_id + foreign-key: line_items.product_id diff --git a/_data/taps/schemas/shopify/v2/shopify-v2-tables.yml b/_data/taps/schemas/shopify/v2/shopify-v2-tables.yml new file mode 100644 index 000000000..91a341cd4 --- /dev/null +++ b/_data/taps/schemas/shopify/v2/shopify-v2-tables.yml @@ -0,0 +1,216 @@ +tap: shopify +version: '2' +tables: +- name: abandoned_checkouts + description: 'The `{{ table.name }}` table contains info about abandoned checkouts. + {{ integration.display_name }} considers a checkout to be abandoned when a customer + has entered billing and shipping details, but hasn''t completed the purchase. + + ' + links: + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/abandoned_checkouts.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/orders/abandoned-checkouts?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updated_at +- name: collects + description: 'The `{{ table.name }}` table contains info about collects, which are + used to manage relationships between products and custom collections. For every + product in a custom collection, there''s a collect that tracks the ID of both + the product and the custom collection. + + ' + links: + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/collects.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/products/collect?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updated_at +- name: customers + description: 'The `{{ table.name }}` table contains info about the shop''s customers. + This includes their contact details, order history, and email marketing preferences. + + + #### Customer metafield data + + + To replicate customer metafield data, you must set this table and the [`metafields`](#metafields) + table to replicate. + + ' + links: + doc-link: https://shopify.dev/docs/admin-api/rest/reference/customers + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/customers.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/customers/customer?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updated_at +- name: custom_collections + description: 'The `{{ table.name }}` table contains info about custom collections. + A custom collection is a grouping of products that a merchant creates to make + their store easier to browse. + + ' + links: + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/custom_collections.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/products/customcollection?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updated_at +- name: events + description: 'The `{{ table.name }}` table contains info about events in the shop. + + ' + links: + doc-link: https://shopify.dev/api/admin-rest/2022-01/resources/event#top + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/events.json + api-method: https://shopify.dev/api/admin-rest/2022-01/resources/event#get-events + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: created_at +- name: inventory_items + description: 'The `{{ table.name }}` table contains info about items in a shop. + + ' + links: + doc-link: https://shopify.dev/api/admin-rest/2022-01/resources/inventoryitem#top + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/inventory_items.json + api-method: https://shopify.dev/api/admin-rest/2022-01/resources/inventoryitem#get-inventory-items + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updatedAt +- name: inventory_levels + description: 'The `{{ table.name }}` table contains info about quantities of an + inventory item for a location. + + ' + links: + doc-link: https://shopify.dev/api/admin-rest/2022-01/resources/inventorylevel#top + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/inventory_levels.json + api-method: https://shopify.dev/api/admin-rest/2022-01/resources/inventorylevel#get-inventory-levels + table-details: + replication-method: Key-based Incremental + primary-keys: + - inventory_item_id + - location_id + replication-key: updated_at +- name: locations + description: 'The `{{ table.name }}` table contains info about . + ' + links: + doc-link: https://shopify.dev/api/admin-rest/2022-01/resources/location#top + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/locations.json + api-method: https://shopify.dev/api/admin-rest/2022-01/resources/location#get-locations + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updated_at +- name: product_variants + description: 'The `{{ table.name }}` table contains info about variants that can + be added to a product to represent one version of a product with several options. + ' + links: + doc-link: https://shopify.dev/docs/api/admin-rest/2025-01/resources/product-variant#top + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/product_variants.json + api-method: https://shopify.dev/docs/api/admin-rest/2025-01/resources/product-variant#get-products-product-id-variants + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updatedAt +- name: metafields + description: 'The `{{ table.name }}` table contains info about resource metafields. + These are arbitrary fields used to store additional information about resources. + + + #### Metafield replication and resource types {#metafield-replication-and-resources} + + + **By default, this table will include only shop-level metafield data**. To replicate + the metafields for a given resource type, this table and the table for the resource + must be set to replicate. + + + For example: To replicate metafield data for Orders, the `orders` table must also + be set to replicate. + + + Metafield data is available for [`customers`](#customers), [`products`](#products), + and [`orders`](#orders). + + ' + links: + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/metafields.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/metafield?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updatedAt +- name: orders + description: 'The `{{ table.name }}` table contains info about a shop''s completed + orders. + + + #### Order metafield data + + + To replicate order metafield data, you must set this table and the [`metafields`](#metafields) + table to replicate. + + ' + links: + doc-link: https://shopify.dev/docs/admin-api/rest/reference/orders/ + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/orders.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/orders/order?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updated_at +- name: order_refunds + description: 'The `{{ table.name }}` table contains info about refunds associated + with orders. + + ' + links: + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/order_refunds.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/orders/refund?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: created_at +- name: products + description: 'The `{{ table.name }}` table contains info about a shop''s products. + + + #### Product metafield data + + + To replicate product metafield data, you must set this table and the [`metafields`](#metafields) + table to replicate. + + ' + links: + doc-link: https://shopify.dev/docs/admin-api/rest/reference/products + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/products.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/products/product?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updatedAt +- name: transactions + description: 'The `{{ table.name }}` table contains info about transactions. + + ' + links: + singer-schema: https://github.com/singer-io/tap-shopify/blob/master/tap_shopify/schemas/transactions.json + api-method: https://shopify.dev/docs/admin-api/rest/reference/orders/transaction?api[version]=2019-07 + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: created_at +tap-repo-schemas: true diff --git a/_data/taps/versions/shopify.yml b/_data/taps/versions/shopify.yml index c5ed62fa9..76c17215d 100644 --- a/_data/taps/versions/shopify.yml +++ b/_data/taps/versions/shopify.yml @@ -2,13 +2,17 @@ # SHOPIFY VERSIONS # # -------------------------- # -latest-version: "1" +latest-version: "2" released-versions: + - number: "2" + date-released: "February 1, 2025" + - number: "1" date-released: "January 2, 2019" - # date-last-connection: - + date-last-connection: "April 1, 2025" + deprecation-date: "April 1, 2025" + - number: "15-10-2015" status: "sunset" date-released: "October 15, 2015" diff --git a/_saas-integrations/shopify/v1/shopify-v1.md b/_saas-integrations/shopify/v1/shopify-v1.md index fc43a7f0b..383f7bb7a 100644 --- a/_saas-integrations/shopify/v1/shopify-v1.md +++ b/_saas-integrations/shopify/v1/shopify-v1.md @@ -1,9 +1,10 @@ --- title: Shopify (v1) -permalink: /integrations/saas/shopify +permalink: /integrations/saas/shopify/v1 keywords: shopify, integration, schema, etl shopify, shopify etl, shopify schema summary: "Connection instructions, replication info, and schema details for Stitch's Shopify integration." layout: singer +input: false key: "shopify-setup" diff --git a/_saas-integrations/shopify/v2/shopify-v2.md b/_saas-integrations/shopify/v2/shopify-v2.md new file mode 100644 index 000000000..3cd32731e --- /dev/null +++ b/_saas-integrations/shopify/v2/shopify-v2.md @@ -0,0 +1,128 @@ +--- +title: Shopify (v2) +permalink: /integrations/saas/shopify/v2 +keywords: shopify, integration, schema, etl shopify, shopify etl, shopify schema +summary: "Connection instructions, replication info, and schema details for Stitch's Shopify integration." +layout: singer + +key: "shopify-setup" + +# -------------------------- # +# Integration Details # +# -------------------------- # + +name: "shopify" +display_name: "Shopify" + +singer: true +tap-name: "Shopify" +repo-url: https://github.com/singer-io/tap-shopify + +this-version: "2" + +api: | + [{{ integration.display_name }} REST Admin API (v2025-02)](https://shopify.dev/docs/admin-api/rest/reference){:target="new"} + +# -------------------------- # +# Stitch Details # +# -------------------------- # + +certified: true + +historical: "1 year" +frequency: "30 minutes" +tier: "Standard" +status-url: "https://status.shopify.com/" + +api-type: "platform.shopify" + +anchor-scheduling: true +cron-scheduling: true + +table-selection: true +column-selection: true + +extraction-logs: true +loading-reports: true + +## Row usage details + +row-usage-hog: true +row-usage-hog-reasons: + data-structure: true + data-volume: false + lots-of-full-table: false + + +# -------------------------- # +# Feature Summary # +# -------------------------- # + +feature-summary: | + Stitch's {{ integration.display_name }} integration replicates data using the {{ integration.api | flatify | strip }}. Refer to the [Schema](#schema) section for a list of objects available for replication. + + +# -------------------------- # +# Setup Instructions # +# -------------------------- # + +requirements-list: + - item: | + **Admin access in {{ integration.display_name }}**. This is required to allow Stitch to replicate data. + + **Note: If you're on a {{ integration.display_name }} Plus plan**, the permissions required may differ. Store owners can grant users permissions to export orders, draft orders, products, inventory, and customer data. In general, **view-level** permissions should be sufficient. + + Refer to the [{{ integration.display_name }} Staff permissions documentation](https://help.shopify.com/en/manual/your-account/staff-accounts/staff-permissions#store-owner-permissions){:target="new"} for more information. + +setup-steps: + - title: "Add {{ integration.display_name }} as a Stitch data source" + anchor: "add-stitch-data-source" + content: | + {% include integrations/shared-setup/connection-setup.html %} + 4. In the **Shopify Shop** field, enter the name of the shop you want to connect to Stitch. For example: If the shop URL was `stitch-data.shopify.com`, you'd enter `stitch-data` into this field. + + - title: "Define the historical replication start date" + anchor: "define-historical-sync" + content: | + {% include integrations/saas/setup/historical-sync.html %} + + - title: "Create a replication schedule" + anchor: "define-rep-frequency" + content: | + {% include integrations/shared-setup/replication-frequency.html %} + + - title: "Authorize Stitch to access {{ integration.display_name }}" + anchor: "grant-stitch-authorization" + content: | + 1. Next, you'll be prompted to sign into your {{ integration.display_name }} account. Enter your {{ integration.display_name }} credentials. + 2. Click **Log in**. + 3. After the authorization process is successfully completed, you'll be directed back to Stitch. + 4. Click {{ app.buttons.finish-int-setup }}. + + - title: "Set objects to replicate" + anchor: "setting-data-to-replicate" + content: | + {% include integrations/shared-setup/data-selection/object-selection.html %} + +# -------------------------- # +# Replication Details # +# -------------------------- # + +replication-sections: + - title: "Replicating order refunds" + - anchor: "order-refunds" + - content: | + To extract order refund data, Stitch queries every order in your account. If you have the `order_refunds` table selected for replication, the process can potentially be very slow depending on how many orders and refunds exist in your {{ integration.display_name }} account. As tables are extracted one at a time, this could cause extraction to not proceed for days at a time. To ensure timely replication of your other selected tables, consider creating a separate integration for only the `order_refunds` table. + + **Note**: Creating a separate integration for your `order_refunds` table may negatively affect your {{ integration.display_name }} API quota. + + +# -------------------------- # +# Integration Tables # +# -------------------------- # + +# Looking for the table schemas & info? +# Each table has a its own .md file in /_integration-schemas/shopify/v1 +--- +{% assign integration = page %} +{% include misc/data-files.html %}