From 5094d7754190423fc530bf94b474a4f8e7929b8a Mon Sep 17 00:00:00 2001 From: CI Date: Mon, 23 Sep 2024 14:50:01 +0000 Subject: [PATCH] Updated OpenAPI specs --- json/knowledgeapi.json | 30 +++++++++++++++++++++++++++++- json/liveapi.json | 30 +++++++++++++++++++++++++++++- json/webhooks.json | 30 +++++++++++++++++++++++++++++- yaml/knowledgeapi.yaml | 23 ++++++++++++++++++++++- yaml/liveapi.yaml | 23 ++++++++++++++++++++++- yaml/webhooks.yaml | 23 ++++++++++++++++++++++- 6 files changed, 153 insertions(+), 6 deletions(-) diff --git a/json/knowledgeapi.json b/json/knowledgeapi.json index 0ea7c00..0f3d1f0 100644 --- a/json/knowledgeapi.json +++ b/json/knowledgeapi.json @@ -87117,6 +87117,26 @@ "$ref": "#/components/schemas/CommonEclDefinitions_Photo" } }, + "Duration": { + "type": "object", + "description": "Product duration.", + "properties": { + "unit": { + "type": "string", + "enum": [ + "MINUTES", + "HOURS", + "DAYS" + ], + "description": "Unit of time (i.e. minutes, hours, days)." + }, + "value": { + "type": "number", + "minimum": 1, + "description": "Value of time." + } + } + }, "ProductItem": { "allOf": [ { @@ -87137,11 +87157,19 @@ }, "url": { "type": "string", - "description": "Product home page" + "description": "Product home page." }, "video": { "type": "string", "description": "Youtube URL." + }, + "duration": { + "$ref": "#/components/schemas/Duration" + }, + "ranking": { + "type": "number", + "minimum": 0, + "description": "Product ranking." } } } diff --git a/json/liveapi.json b/json/liveapi.json index 8c7e483..50c4f07 100644 --- a/json/liveapi.json +++ b/json/liveapi.json @@ -43277,6 +43277,26 @@ "$ref": "#/components/schemas/Photo" } }, + "Duration": { + "type": "object", + "description": "Product duration.", + "properties": { + "unit": { + "type": "string", + "enum": [ + "MINUTES", + "HOURS", + "DAYS" + ], + "description": "Unit of time (i.e. minutes, hours, days)." + }, + "value": { + "type": "number", + "minimum": 1, + "description": "Value of time." + } + } + }, "ProductItem": { "allOf": [ { @@ -43297,11 +43317,19 @@ }, "url": { "type": "string", - "description": "Product home page" + "description": "Product home page." }, "video": { "type": "string", "description": "Youtube URL." + }, + "duration": { + "$ref": "#/components/schemas/Duration" + }, + "ranking": { + "type": "number", + "minimum": 0, + "description": "Product ranking." } } } diff --git a/json/webhooks.json b/json/webhooks.json index 7044fec..ec31b1e 100644 --- a/json/webhooks.json +++ b/json/webhooks.json @@ -8944,6 +8944,26 @@ "$ref": "#/components/schemas/CommonEclDefinitions_Photo" } }, + "Duration": { + "type": "object", + "description": "Product duration.", + "properties": { + "unit": { + "type": "string", + "enum": [ + "MINUTES", + "HOURS", + "DAYS" + ], + "description": "Unit of time (i.e. minutes, hours, days)." + }, + "value": { + "type": "number", + "minimum": 1, + "description": "Value of time." + } + } + }, "ProductItem": { "allOf": [ { @@ -8964,11 +8984,19 @@ }, "url": { "type": "string", - "description": "Product home page" + "description": "Product home page." }, "video": { "type": "string", "description": "Youtube URL." + }, + "duration": { + "$ref": "#/components/schemas/Duration" + }, + "ranking": { + "type": "number", + "minimum": 0, + "description": "Product ranking." } } } diff --git a/yaml/knowledgeapi.yaml b/yaml/knowledgeapi.yaml index 82cb107..4ab121e 100644 --- a/yaml/knowledgeapi.yaml +++ b/yaml/knowledgeapi.yaml @@ -116626,6 +116626,21 @@ components: description: List of up to 5 photos. items: $ref: '#/components/schemas/CommonEclDefinitions_Photo' + Duration: + type: object + description: Product duration. + properties: + unit: + type: string + enum: + - MINUTES + - HOURS + - DAYS + description: Unit of time (i.e. minutes, hours, days). + value: + type: number + minimum: 1 + description: Value of time. ProductItem: allOf: - $ref: '#/components/schemas/BaseEclItem' @@ -116640,10 +116655,16 @@ components: description: Displayed item ID. url: type: string - description: Product home page + description: Product home page. video: type: string description: Youtube URL. + duration: + $ref: '#/components/schemas/Duration' + ranking: + type: number + minimum: 0 + description: Product ranking. ProductEcl_Section: allOf: - $ref: '#/components/schemas/BaseEclSection' diff --git a/yaml/liveapi.yaml b/yaml/liveapi.yaml index e8bce2d..bd19516 100644 --- a/yaml/liveapi.yaml +++ b/yaml/liveapi.yaml @@ -68375,6 +68375,21 @@ components: description: List of up to 5 photos. items: $ref: '#/components/schemas/Photo' + Duration: + type: object + description: Product duration. + properties: + unit: + type: string + enum: + - MINUTES + - HOURS + - DAYS + description: Unit of time (i.e. minutes, hours, days). + value: + type: number + minimum: 1 + description: Value of time. ProductItem: allOf: - $ref: '#/components/schemas/BaseEclItem' @@ -68389,10 +68404,16 @@ components: description: Displayed item ID. url: type: string - description: Product home page + description: Product home page. video: type: string description: Youtube URL. + duration: + $ref: '#/components/schemas/Duration' + ranking: + type: number + minimum: 0 + description: Product ranking. ProductEcl_Section: allOf: - $ref: '#/components/schemas/BaseEclSection' diff --git a/yaml/webhooks.yaml b/yaml/webhooks.yaml index e958a42..480ada7 100644 --- a/yaml/webhooks.yaml +++ b/yaml/webhooks.yaml @@ -12529,6 +12529,21 @@ components: description: List of up to 5 photos. items: $ref: '#/components/schemas/CommonEclDefinitions_Photo' + Duration: + type: object + description: Product duration. + properties: + unit: + type: string + enum: + - MINUTES + - HOURS + - DAYS + description: Unit of time (i.e. minutes, hours, days). + value: + type: number + minimum: 1 + description: Value of time. ProductItem: allOf: - $ref: '#/components/schemas/BaseEclItem' @@ -12543,10 +12558,16 @@ components: description: Displayed item ID. url: type: string - description: Product home page + description: Product home page. video: type: string description: Youtube URL. + duration: + $ref: '#/components/schemas/Duration' + ranking: + type: number + minimum: 0 + description: Product ranking. ProductEcl_Section: allOf: - $ref: '#/components/schemas/BaseEclSection'