-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Amazon Seller Partner: add all remaining brand analytics repor…
…t streams (#9312) * Add all brand analytic streams * Parametrize results key * Update schemas * Parametrize result_key * Add missing result_key * Remove duplicate * Update configured catalogs * Cleanup * Add configured catalogs for brand analytics * Run gradlew format * Update documentation
- Loading branch information
Showing
14 changed files
with
398 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...ller-partner/integration_tests/configured_catalog_brand_analytics_alternate_purchase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "GET_BRAND_ANALYTICS_ALTERNATE_PURCHASE_REPORT", | ||
"json_schema": { | ||
"title": "Brand Analytics Alternate Purchase Reports", | ||
"description": "Brand Analytics Alternate Purchase Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedAsin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedRank": { | ||
"type": ["null", "integer"] | ||
}, | ||
"purchasedPct": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh"] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
} | ||
] | ||
} |
40 changes: 40 additions & 0 deletions
40
...-seller-partner/integration_tests/configured_catalog_brand_analytics_item_comparison.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "GET_BRAND_ANALYTICS_ITEM_COMPARISON_REPORT", | ||
"json_schema": { | ||
"title": "Brand Analytics Item Comparison Reports", | ||
"description": "Brand Analytics Item Comparison Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"comparedAsin": { | ||
"type": ["null", "string"] | ||
}, | ||
"comparedRank": { | ||
"type": ["null", "integer"] | ||
}, | ||
"comparedPct": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh"] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
} | ||
] | ||
} |
40 changes: 40 additions & 0 deletions
40
...on-seller-partner/integration_tests/configured_catalog_brand_analytics_market_basket.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT", | ||
"json_schema": { | ||
"title": "Brand Analytics Market Basket Reports", | ||
"description": "Brand Analytics Market Basket Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedWithAsin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedWithRank": { | ||
"type": ["null", "integer"] | ||
}, | ||
"combinationPct": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh"] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
} | ||
] | ||
} |
54 changes: 54 additions & 0 deletions
54
...-seller-partner/integration_tests/configured_catalog_brand_analytics_repeat_purchase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT", | ||
"json_schema": { | ||
"title": "Brand Analytics Repeat Purchase Reports", | ||
"description": "Brand Analytics Repeat Purchase Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"orders": { | ||
"type": ["null", "integer"] | ||
}, | ||
"uniqueCustomers": { | ||
"type": ["null", "integer"] | ||
}, | ||
"repeatCustomersPctTotal": { | ||
"type": ["null", "number"] | ||
}, | ||
"repeatPurchaseRevenue": { | ||
"type": "object", | ||
"properties": { | ||
"amount": { | ||
"type": ["null", "number"] | ||
}, | ||
"currencyCode": { | ||
"type": ["null", "string"] | ||
} | ||
} | ||
}, | ||
"repeatPurchaseRevenuePctTotal": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh"] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
} | ||
] | ||
} |
41 changes: 41 additions & 0 deletions
41
...zon-seller-partner/integration_tests/configured_catalog_brand_analytics_search_terms.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT", | ||
"json_schema": { | ||
"title": "Brand Analytics Search Terms Reports", | ||
"description": "Brand Analytics Search Terms Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"departmentName": { | ||
"type": ["null", "string"] | ||
}, | ||
"searchTerm": { | ||
"type": ["null", "string"] | ||
}, | ||
"searchFrequencyRank": { | ||
"type": ["null", "number"] | ||
}, | ||
"clickedAsin": { | ||
"type": ["null", "string"] | ||
}, | ||
"clickShareRank": { | ||
"type": ["null", "number"] | ||
}, | ||
"clickShare": { | ||
"type": ["null", "number"] | ||
}, | ||
"conversionShare": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
}, | ||
"supported_sync_modes": ["full_refresh"] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
} | ||
] | ||
} |
28 changes: 28 additions & 0 deletions
28
...r/source_amazon_seller_partner/schemas/GET_BRAND_ANALYTICS_ALTERNATE_PURCHASE_REPORT.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"title": "Brand Analytics Alternate Purchase Reports", | ||
"description": "Brand Analytics Alternate Purchase Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedAsin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedRank": { | ||
"type": ["null", "integer"] | ||
}, | ||
"purchasedPct": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...tner/source_amazon_seller_partner/schemas/GET_BRAND_ANALYTICS_ITEM_COMPARISON_REPORT.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"title": "Brand Analytics Item Comparison Reports", | ||
"description": "Brand Analytics Item Comparison Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"comparedAsin": { | ||
"type": ["null", "string"] | ||
}, | ||
"comparedRank": { | ||
"type": ["null", "integer"] | ||
}, | ||
"comparedPct": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...artner/source_amazon_seller_partner/schemas/GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"title": "Brand Analytics Market Basket Reports", | ||
"description": "Brand Analytics Market Basket Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedWithAsin": { | ||
"type": ["null", "string"] | ||
}, | ||
"purchasedWithRank": { | ||
"type": ["null", "integer"] | ||
}, | ||
"combinationPct": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...tner/source_amazon_seller_partner/schemas/GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"title": "Brand Analytics Repeat Purchase Reports", | ||
"description": "Brand Analytics Repeat Purchase Reports", | ||
"type": "object", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"properties": { | ||
"startDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"endDate": { | ||
"type": ["null", "string"], | ||
"format": "date" | ||
}, | ||
"asin": { | ||
"type": ["null", "string"] | ||
}, | ||
"orders": { | ||
"type": ["null", "integer"] | ||
}, | ||
"uniqueCustomers": { | ||
"type": ["null", "integer"] | ||
}, | ||
"repeatCustomersPctTotal": { | ||
"type": ["null", "number"] | ||
}, | ||
"repeatPurchaseRevenue": { | ||
"type": "object", | ||
"properties": { | ||
"amount": { | ||
"type": ["null", "number"] | ||
}, | ||
"currencyCode": { | ||
"type": ["null", "string"] | ||
} | ||
} | ||
}, | ||
"repeatPurchaseRevenuePctTotal": { | ||
"type": ["null", "number"] | ||
} | ||
} | ||
} |
Oops, something went wrong.