Skip to content

Commit

Permalink
🎉 Source Shopify: Add FulfillmentOrders and Fulfillments streams (a…
Browse files Browse the repository at this point in the history
…irbytehq#7107)

* Add FulfillmentOrder stream

* Add fulfillments stream

* Fix schema validation error

* Bump docker version and update doc

* Apply gradlew format

* Fix source_definition

* Fix doc after rebase

* Fix format after rebase

* Remove enum type in schemas

* bump version

* run seed config again

Co-authored-by: Marcos Marx <[email protected]>
  • Loading branch information
2 people authored and schlattk committed Jan 4, 2022
1 parent 70c32fa commit e9a2ee6
Show file tree
Hide file tree
Showing 11 changed files with 527 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"sourceDefinitionId": "9da77001-af33-4bcd-be46-6252bf9342b9",
"name": "Shopify",
"dockerRepository": "airbyte/source-shopify",
"dockerImageTag": "0.1.21",
"dockerImageTag": "0.1.22",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/shopify"
}
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
- name: Shopify
sourceDefinitionId: 9da77001-af33-4bcd-be46-6252bf9342b9
dockerRepository: airbyte/source-shopify
dockerImageTag: 0.1.21
dockerImageTag: 0.1.22
documentationUrl: https://docs.airbyte.io/integrations/sources/shopify
sourceType: api
- name: Short.io
Expand Down
8 changes: 5 additions & 3 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4857,7 +4857,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-salesforce:0.1.2"
- dockerImage: "airbyte/source-salesforce:0.1.3"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/salesforce"
connectionSpecification:
Expand Down Expand Up @@ -4889,7 +4889,9 @@
airbyte_secret: true
start_date:
description: "UTC date and time in the format 2017-01-25T00:00:00Z. Any\
\ data before this date will not be replicated."
\ data before this date will not be replicated. Priority for filtering\
\ by `updated` fields, and only then by `created` fields if they are available\
\ for stream."
type: "string"
pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
examples:
Expand Down Expand Up @@ -4946,7 +4948,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-shopify:0.1.21"
- dockerImage: "airbyte/source-shopify:0.1.22"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/shopify"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-shopify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ COPY source_shopify ./source_shopify
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.21
LABEL io.airbyte.version=0.1.22
LABEL io.airbyte.name=airbyte/source-shopify
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@
},
"inventory_levels": {
"updated_at": "2024-07-08T05:40:38-07:00"
},
"fulfillment_orders": {
"id": 9991307599038
},
"fulfillments": {
"updated_at": "2024-07-08T05:40:38-07:00"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,30 @@
"sync_mode": "incremental",
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "fulfillment_orders",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["id"]
},
"sync_mode": "incremental",
"cursor_field": ["id"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "fulfillments",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"]
},
"sync_mode": "incremental",
"cursor_field": ["updated_at"],
"destination_sync_mode": "append"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@
},
"inventory_levels": {
"updated_at": "2021-09-10T06:48:10-07:00"
},
"fulfillment_orders": {
"id": 123
},
"fulfillments": {
"updated_at": "2021-09-10T06:48:10-07:00"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"type": "object",
"properties": {
"assigned_location_id": {
"type": ["null", "integer"]
},
"destination": {
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"address1": {
"type": ["null", "string"]
},
"address2": {
"type": ["null", "string"]
},
"city": {
"type": ["null", "string"]
},
"company": {
"type": ["null", "string"]
},
"country": {
"type": ["null", "string"]
},
"email": {
"type": ["null", "string"]
},
"first_name": {
"type": ["null", "string"]
},
"last_name": {
"type": ["null", "string"]
},
"phone": {
"type": ["null", "string"]
},
"province": {
"type": ["null", "string"]
},
"zip": {
"type": ["null", "string"]
}
}
},
"delivery_method": {
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"method_type": {
"type": ["null", "string"]
}
}
},
"fulfilled_at": {
"type": ["null", "string"],
"format": "date-time"
},
"fulfillment_holds": {
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"reason": {
"type": ["null", "string"]
},
"reason_notes": {
"type": ["null", "string"]
}
}
}
},
"id": {
"type": ["null", "integer"]
},
"line_items": {
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"shop_id": {
"type": ["null", "integer"]
},
"fullfillment_order_id": {
"type": ["null", "integer"]
},
"line_item_id": {
"type": ["null", "integer"]
},
"inventory_item_id": {
"type": ["null", "integer"]
},
"quantity": {
"type": ["null", "integer"]
},
"fulfillable_quantity": {
"type": ["null", "integer"]
},
"variant_id": {
"type": ["null", "integer"]
}
}
}
},
"order_id": {
"type": ["null", "integer"]
},
"request_status": {
"type": ["null", "string"]
},
"shop_id": {
"type": ["null", "integer"]
},
"status": {
"type": ["null", "string"]
},
"supported_actions": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"merchant_requests": {
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"message": {
"type": ["null", "string"]
},
"kind": {
"type": ["null", "string"]
},
"request_options": {
"type": ["null", "object"]
}
}
}
},
"assigned_location": {
"type": ["null", "object"],
"properties": {
"address1": {
"type": ["null", "string"]
},
"address2": {
"type": ["null", "string"]
},
"city": {
"type": ["null", "string"]
},
"country_code": {
"type": ["null", "string"]
},
"location_id": {
"type": ["null", "integer"]
},
"name": {
"type": ["null", "string"]
},
"phone": {
"type": ["null", "string"]
},
"province": {
"type": ["null", "string"]
},
"zip": {
"type": ["null", "string"]
}
}
}
}
}
Loading

0 comments on commit e9a2ee6

Please sign in to comment.