Skip to content

Commit

Permalink
PRODUCT-4217
Browse files Browse the repository at this point in the history
- adding product-discounts stream.
- also updated carts schema.
  • Loading branch information
mattjwinslow committed Jan 31, 2025
1 parent 32c9b84 commit 8c50b98
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,34 @@
},
"sync_id": null,
"sync_mode": "full_refresh"
},
{
"cursor_field": null,
"destination_sync_mode": "append",
"generation_id": null,
"minimum_generation_id": null,
"primary_key": null,
"stream": {
"default_cursor_field": [
"lastModifiedAt"
],
"is_resumable": true,
"json_schema": {},
"name": "product-discounts",
"namespace": null,
"source_defined_cursor": true,
"source_defined_primary_key": [
[
"id"
]
],
"supported_sync_modes": [
"full_refresh",
"incremental"
]
},
"sync_id": null,
"sync_mode": "full_refresh"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ definitions:
name: "standalone-prices"
path: "standalone-prices"

product-discounts_stream:
$ref: "#/definitions/base_stream"
$parameters:
name: "product-discounts"
path: "product-discounts"


streams:
- "#/definitions/customers_stream"
- "#/definitions/discount_codes_stream"
Expand All @@ -141,6 +148,7 @@ streams:
- "#/definitions/carts_stream"
- "#/definitions/inventory_stream"
- "#/definitions/standalone-prices_stream"
- "#/definitions/product-discounts_stream"

spec:
documentation_url: https://docs.airbyte.com/integrations/sources/commercetools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@
"id": {
"type": "string"
},
"inventoryMode": {
"type": "string"
},
"lastModifiedAt": {
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": true,
"properties": {
"createdAt": {
"type": "string"
},
"createdBy": {
"additionalProperties": true,
"properties": {
"isPlatformClient": {
"type": "boolean"
},
"user": {
"additionalProperties": true,
"properties": {
"id": {
"type": "string"
},
"typeId": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"description": {
"additionalProperties": true,
"properties": {
"en-CA": {
"type": "string"
},
"en-US": {
"type": "string"
},
"es-MX": {
"type": "string"
},
"fr-CA": {
"type": "string"
}
},
"type": "object"
},
"id": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"key": {
"type": "string"
},
"lastModifiedAt": {
"type": "string"
},
"lastModifiedBy": {
"additionalProperties": true,
"properties": {
"isPlatformClient": {
"type": "boolean"
},
"user": {
"additionalProperties": true,
"properties": {
"id": {
"type": "string"
},
"typeId": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"name": {
"additionalProperties": true,
"properties": {
"en-CA": {
"type": "string"
},
"en-US": {
"type": "string"
},
"es-MX": {
"type": "string"
},
"fr-CA": {
"type": "string"
}
},
"type": "object"
},
"predicate": {
"type": "string"
},
"references": {
"type": "array"
},
"sortOrder": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validUntil": {
"type": "string"
},
"value": {
"additionalProperties": true,
"properties": {
"money": {
"items": {
"additionalProperties": true,
"properties": {
"centAmount": {
"type": "integer"
},
"currencyCode": {
"type": "string"
},
"fractionDigits": {
"type": "integer"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"permyriad": {
"type": "integer"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"version": {
"type": "integer"
},
"versionModifiedAt": {
"type": "string"
}
},
"type": "object"
}

0 comments on commit 8c50b98

Please sign in to comment.