Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Amazon Seller Partner - add new reports and bump version #18283

Merged
merged 14 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
- name: Amazon Seller Partner
sourceDefinitionId: e55879a8-0ef8-4557-abcf-ab34c53ec460
dockerRepository: airbyte/source-amazon-seller-partner
dockerImageTag: 0.2.27
dockerImageTag: 0.2.28
sourceType: api
documentationUrl: https://docs.airbyte.com/integrations/sources/amazon-seller-partner
icon: amazonsellerpartner.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@
type: "string"
path_in_connector_config:
- "client_secret"
- dockerImage: "airbyte/source-amazon-seller-partner:0.2.27"
- dockerImage: "airbyte/source-amazon-seller-partner:0.2.28"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/amazon-seller-partner"
changelogUrl: "https://docs.airbyte.com/integrations/sources/amazon-seller-partner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.27
LABEL io.airbyte.version=0.2.28
LABEL io.airbyte.name=airbyte/source-amazon-seller-partner
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ connector_image: airbyte/source-amazon-seller-partner:dev
tests:
spec:
- spec_path: "integration_tests/spec.json"
backward_compatibility_tests_config:
disable_for_version: "0.2.26"
connection:
# - config_path: "secrets/config.json"
# status: "succeed"
Expand All @@ -13,8 +11,6 @@ tests:
timeout_seconds: 60
discovery:
- config_path: "secrets/config.json"
backward_compatibility_tests_config:
disable_for_version: "0.2.26"
# TODO: uncomment when at least one record exist
# basic_read:
# - config_path: "secrets/config.json"
Expand All @@ -30,7 +26,7 @@ tests:
# "GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA",
# "GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA",
# "GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT",
# "VendorDirectFulfillmentShipping",
# "VendorDirectFulfillmentShipping"
# ]
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_brand_analytics_alternate_purchase.json"
Expand All @@ -48,6 +44,50 @@ tests:
# configured_catalog_path: "integration_tests/configured_catalog_browse_tree_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_restock_inventory.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_estimated_fba_fees_txt_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_current_inventory_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_customer_shipment_promotion_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_inventory_adjustments_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_inventory_receipts_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_inventory_summary_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_monthly_inventory_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_myi_unsuppressed_inventory_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_sns_forecast_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_sns_performance_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_flat_file_archived_orders_data_by_order_date.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_flat_file_returns_data_by_return_date.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_cancelled_listings_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_listings_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_listings_data_back_compat.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_merchants_listings_fyp_report.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_listings_inactive_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_stranded_inventory_ui_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_xml_all_orders_data_by_order_date_general.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_ledger_detail_view_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_fba_inventory_planning_data.json"
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_get_ledger_summary_view_data.json"
# TODO: uncomment when Orders (or any other incremental) stream is filled with data
# incremental:
# - config_path: "secrets/config.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"streams": [
{
"stream": {
"name": "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA",
"json_schema": {
"title": "FBA Fee Preview Report",
"description": "",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"sku": { "type": ["null", "string"] },
"fnsku": { "type": ["null", "string"] },
"asin": { "type": ["null", "string"] },
"product-name": { "type": ["null", "string"] },
"product-group": { "type": ["null", "string"] },
"brand": { "type": ["null", "string"] },
"fulfilled-by": { "type": ["null", "string"] },
"your-price": { "type": ["null", "string"] },
"sales-price": { "type": ["null", "string"] },
"longest-side": { "type": ["null", "string"] },
"median-side": { "type": ["null", "string"] },
"shortest-side": { "type": ["null", "string"] },
"length-and-girth": { "type": ["null", "string"] },
"unit-of-dimension": { "type": ["null", "string"] },
"item-package-weight": { "type": ["null", "string"] },
"unit-of-weight": { "type": ["null", "string"] },
"product-size-tier": { "type": ["null", "string"] },
"currency": { "type": ["null", "string"] },
"estimated-fee-total": { "type": ["null", "string"] },
"estimated-referral-fee-per-unit": { "type": ["null", "string"] },
"estimated-variable-closing-fee": { "type": ["null", "string"] },
"estimated-order-handling-fee-per-order": {
"type": ["null", "string"]
},
"estimated-pick-pack-fee-per-unit": { "type": ["null", "string"] },
"estimated-weight-handling-fee-per-unit": {
"type": ["null", "string"]
},
"expected-fulfillment-fee-per-unit": { "type": ["null", "string"] },
"estimated-future-fee (Current Selling on Amazon + Future Fulfillment fees)": {
"type": ["null", "string"]
},
"estimated-future-order-handling-fee-per-order": {
"type": ["null", "string"]
},
"estimated-future-pick-pack-fee-per-unit": {
"type": ["null", "string"]
},
"estimated-future-weight-handling-fee-per-unit": {
"type": ["null", "string"]
},
"expected-future-fulfillment-fee-per-unit": {
"type": ["null", "string"]
},
"estimated-future-referral-fee-per-unit": {
"type": ["null", "string"]
},
"current-fee-category": { "type": ["null", "string"] },
"future-fee-category": { "type": ["null", "string"] },
"future-fee-category-effective-date": { "type": ["null", "string"] }
}
},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"streams": [
{
"stream": {
"name": "GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA",
"json_schema": {
"title": "FBA Daily Inventory History Report",
"description": "",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot-date": { "type": ["null", "string"] },
"fnsku": { "type": ["null", "string"] },
"sku": { "type": ["null", "string"] },
"product-name": { "type": ["null", "string"] },
"quantity": { "type": ["null", "string"] },
"fulfillment-center-id": { "type": ["null", "string"] },
"detailed-disposition": { "type": ["null", "string"] },
"country": { "type": ["null", "string"] }
}
},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"streams": [
{
"stream": {
"name": "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA",
"json_schema": {
"title": "FBA Promotions Report",
"description": "",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"shipment-date": { "type": ["null", "string"] },
"currency": { "type": ["null", "string"] },
"item-promotion-discount": { "type": ["null", "string"] },
"item-promotion-id": { "type": ["null", "string"] },
"description": { "type": ["null", "string"] },
"promotion-rule-value": { "type": ["null", "string"] },
"amazon-order-id": { "type": ["null", "string"] },
"shipment-id": { "type": ["null", "string"] },
"shipment-item-id": { "type": ["null", "string"] }
}
},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"streams": [
{
"stream": {
"name": "GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA",
"json_schema": {
"title": "FBA Inventory Adjustments Report",
"description": "",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"adjusted-date": { "type": ["null", "string"] },
"transaction-item-id": { "type": ["null", "string"] },
"fnsku": { "type": ["null", "string"] },
"sku": { "type": ["null", "string"] },
"product-name": { "type": ["null", "string"] },
"fulfillment-center-id": { "type": ["null", "string"] },
"quantity": { "type": ["null", "string"] },
"reason": { "type": ["null", "string"] },
"disposition": { "type": ["null", "string"] },
"reconciled": { "type": ["null", "string"] },
"unreconciled": { "type": ["null", "string"] }
}
},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"streams": [
{
"stream": {
"name": "GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA",
"json_schema": {
"title": "FBA Received Inventory Report",
"description": "",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"received-date": { "type": ["null", "string"] },
"fnsku": { "type": ["null", "string"] },
"sku": { "type": ["null", "string"] },
"product-name": { "type": ["null", "string"] },
"quantity": { "type": ["null", "string"] },
"fba-shipment-id": { "type": ["null", "string"] },
"fulfillment-center-id": { "type": ["null", "string"] }
}
},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"streams": [
{
"stream": {
"name": "GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA",
"json_schema": {
"title": "FBA Inventory Event Detail Report",
"description": "",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"snapshot-date": { "type": ["null", "string"] },
"transaction-type": { "type": ["null", "string"] },
"fnsku": { "type": ["null", "string"] },
"sku": { "type": ["null", "string"] },
"product-name": { "type": ["null", "string"] },
"fulfillment-center-id": { "type": ["null", "string"] },
"quantity": { "type": ["null", "string"] },
"disposition": { "type": ["null", "string"] }
}
},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"streams": [
{
"stream": {
"name": "GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA",
"json_schema": {
"title": "FBA Monthly Inventory History Report",
"description": "",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"month": { "type": ["null", "string"] },
"fnsku": { "type": ["null", "string"] },
"sku": { "type": ["null", "string"] },
"product-name": { "type": ["null", "string"] },
"average-quantity": { "type": ["null", "string"] },
"end-quantity": { "type": ["null", "string"] },
"fulfillment-center-id": { "type": ["null", "string"] },
"detailed-disposition": { "type": ["null", "string"] },
"country": { "type": ["null", "string"] }
}
},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Loading