From 4a53b7139d405579f3f84c8d82c79e5526f25839 Mon Sep 17 00:00:00 2001 From: Sergey Sedelnikov Date: Tue, 12 May 2026 16:29:20 +0300 Subject: [PATCH 1/2] chore(entity-client): update client with new spec Co-authored-by: Claude --- clients/design-client/package.json | 2 +- clients/design-client/src/openapi.d.ts | 283 ++++++++++++++++++++++++- clients/design-client/src/openapi.json | 26 ++- package-lock.json | 32 +-- 4 files changed, 310 insertions(+), 33 deletions(-) diff --git a/clients/design-client/package.json b/clients/design-client/package.json index 20127aaf..1a1d6e74 100644 --- a/clients/design-client/package.json +++ b/clients/design-client/package.json @@ -1,6 +1,6 @@ { "name": "@epilot/design-client", - "version": "0.5.3", + "version": "0.5.4", "description": "Client for epilot Design API", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/clients/design-client/src/openapi.d.ts b/clients/design-client/src/openapi.d.ts index 82f4ac30..c9e03480 100644 --- a/clients/design-client/src/openapi.d.ts +++ b/clients/design-client/src/openapi.d.ts @@ -1486,6 +1486,285 @@ declare namespace Components { navbar: string; portal_login_background?: string; } + export interface ParseThemeFromDesignResp { + theme?: /** + * Type of theme to be parsed and returned + * example: + * NEW + */ + Theme; + design?: { + id?: string; + /** + * Creation date and time + * example: + * 2021-01-30T08:30:00Z + */ + created_at?: string; + created_by?: string; + edited: boolean; + last_modified_at?: string; + brand_id?: string; + brand_name?: string; + user?: { + emailaddress?: string; + fullname?: string; + name?: string; + userid?: string; + }; + style_name: string; + style: { + logo?: LogoData; + palette: PaletteData; + typography: TypographyData; + shape?: ShapeData; + consumer: ConsumerData; + }; + is_default?: boolean; + /** + * The manifest IDs associated with this design + */ + _manifest?: string[]; + custom_theme?: string; + use_custom_theme?: boolean; + /** + * Design tokens for journey customization + */ + design_tokens?: { + coupon?: string; + cashback?: string; + custom_css?: string; + /** + * Accent color, defaults to primary + */ + accent_color?: string; + /** + * Global outline/focus color + */ + outline_color?: string; + /** + * Divider line color + */ + divider_color?: string; + /** + * Link text color + */ + link_color?: string; + /** + * Link hover text color + */ + link_hover_color?: string; + /** + * Font size scale factor + */ + font_size_scale?: "xs" | "sm" | "md" | "lg" | "xl"; + /** + * Topbar minimum height in pixels + */ + topbar_height?: number; + /** + * Logo/content alignment in the top bar + */ + topbar_logo_alignment?: "flex-start" | "center" | "flex-end"; + /** + * Logo size in pixels + */ + logo_size?: number; + /** + * Input field background color + */ + input_background?: string; + /** + * Input field border color + */ + input_border_color?: string; + /** + * Input field text color + */ + input_text_color?: string; + /** + * Input field label color + */ + input_label_color?: string; + /** + * Input field border radius in pixels + */ + input_border_radius?: number; + /** + * Input field height in pixels + */ + input_height?: number; + /** + * Input field variant style + */ + input_variant?: "outlined" | "filled" | "underlined"; + /** + * Primary button background color or gradient + */ + button_primary_bg?: string; + /** + * Primary button text color + */ + button_primary_text?: string; + /** + * Primary button hover background color or gradient + */ + button_primary_hover_bg?: string; + /** + * Primary button hover text color + */ + button_primary_hover_text?: string; + /** + * Outlined button border color + */ + button_outlined_border?: string; + /** + * Outlined button text color + */ + button_outlined_text?: string; + /** + * Outlined button hover background color + */ + button_outlined_hover_bg?: string; + /** + * Outlined button hover text color + */ + button_outlined_hover_text?: string; + /** + * Ghost button background color + */ + button_ghost_bg?: string; + /** + * Ghost button text color + */ + button_ghost_text?: string; + /** + * Ghost button hover background color + */ + button_ghost_hover_bg?: string; + /** + * Ghost button hover text color + */ + button_ghost_hover_text?: string; + /** + * Button border radius in pixels + */ + button_border_radius?: number; + /** + * Button height in pixels + */ + button_height?: number; + /** + * Card background color + */ + card_background?: string; + /** + * Card border color for outlined variant + */ + card_border_color?: string; + /** + * Card visual variant + */ + card_variant?: "shadow" | "outlined"; + /** + * Summary card background color + */ + summary_card_background?: string; + /** + * Toggle button selected background color + */ + toggle_selected_bg?: string; + /** + * Toggle button selected text color + */ + toggle_selected_text?: string; + /** + * Toggle button hover background color + */ + toggle_hover_bg?: string; + /** + * Toggle button hover text color + */ + toggle_hover_text?: string; + /** + * Toggle group wrapper border color + */ + toggle_border_color?: string; + /** + * Dropdown option hover background color + */ + dropdown_hover_bg?: string; + /** + * Dropdown option hover text color + */ + dropdown_hover_text?: string; + /** + * Dropdown option selected background color + */ + dropdown_selected_bg?: string; + /** + * Dropdown option selected text color + */ + dropdown_selected_text?: string; + /** + * Switch unchecked thumb color + */ + switch_unchecked_color?: string; + /** + * Switch unchecked track background color + */ + switch_unchecked_bg?: string; + /** + * Switch border radius in pixels + */ + switch_border_radius?: number; + /** + * Checkbox unchecked border color + */ + checkbox_unchecked_color?: string; + /** + * Checkbox label text color + */ + checkbox_label_color?: string; + /** + * Radio button unchecked border color + */ + radio_unchecked_color?: string; + /** + * Radio button label text color + */ + radio_label_color?: string; + /** + * Date picker selected date background color + */ + datepicker_selected_bg?: string; + /** + * Date picker selected date text color + */ + datepicker_selected_color?: string; + /** + * Date picker border radius in pixels + */ + datepicker_border_radius?: number; + /** + * Chip background color + */ + chip_background?: string; + /** + * Chip hover background color + */ + chip_hover_background?: string; + /** + * Chip text color + */ + chip_text_color?: string; + /** + * Chip hover text color + */ + chip_hover_text_color?: string; + }; + }; + } export interface RemoveConsumerReq { consumer_id: /** * Id of the design @@ -1957,8 +2236,7 @@ declare namespace Paths { theme: Parameters.Theme; } namespace Responses { - export interface $200 { - } + export type $200 = Components.Schemas.ParseThemeFromDesignResp; export type $400 = Components.Schemas.ErrorResp; export type $401 = Components.Schemas.ErrorResp; export interface $404 { @@ -2336,6 +2614,7 @@ export type ItemMetada = Components.Schemas.ItemMetada; export type Journey = Components.Schemas.Journey; export type LogoData = Components.Schemas.LogoData; export type PaletteData = Components.Schemas.PaletteData; +export type ParseThemeFromDesignResp = Components.Schemas.ParseThemeFromDesignResp; export type RemoveConsumerReq = Components.Schemas.RemoveConsumerReq; export type ShapeData = Components.Schemas.ShapeData; export type Theme = Components.Schemas.Theme; diff --git a/clients/design-client/src/openapi.json b/clients/design-client/src/openapi.json index f5814a52..7caae951 100644 --- a/clients/design-client/src/openapi.json +++ b/clients/design-client/src/openapi.json @@ -354,7 +354,7 @@ "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/ParseThemeFromDesignResp" } } } @@ -1716,6 +1716,30 @@ "$ref": "#/components/schemas/Application" } } + }, + "ParseThemeFromDesignResp": { + "type": "object", + "properties": { + "theme": { + "$ref": "#/components/schemas/Theme" + }, + "design": { + "allOf": [ + { + "$ref": "#/components/schemas/ItemMetada" + }, + { + "$ref": "#/components/schemas/DesignItem" + }, + { + "$ref": "#/components/schemas/Custom_Style" + }, + { + "$ref": "#/components/schemas/Journey" + } + ] + } + } } } } diff --git a/package-lock.json b/package-lock.json index ff8667fe..b42d3e0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1251,7 +1251,7 @@ }, "clients/customer-portal-client": { "name": "@epilot/customer-portal-client", - "version": "0.38.7", + "version": "0.38.8", "license": "UNLICENSED", "dependencies": { "buffer": "^6.0.3", @@ -1678,7 +1678,7 @@ }, "clients/design-client": { "name": "@epilot/design-client", - "version": "0.5.3", + "version": "0.5.4", "license": "MIT", "dependencies": { "@dazn/lambda-powertools-correlation-ids": "^1.28.1", @@ -2105,7 +2105,7 @@ }, "clients/entity-client": { "name": "@epilot/entity-client", - "version": "7.2.1", + "version": "7.2.1-rc1", "license": "MIT", "dependencies": { "@dazn/lambda-powertools-correlation-ids": "^1.28.1", @@ -6851,7 +6851,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">=18" } @@ -7073,7 +7072,6 @@ "os": [ "netbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -7108,7 +7106,6 @@ "os": [ "openbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -7143,7 +7140,6 @@ "os": [ "openharmony" ], - "peer": true, "engines": { "node": ">=18" } @@ -11973,7 +11969,6 @@ "os": [ "aix" ], - "peer": true, "engines": { "node": ">=18" } @@ -11991,7 +11986,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -12009,7 +12003,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -12027,7 +12020,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -12045,7 +12037,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">=18" } @@ -12063,7 +12054,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -12081,7 +12071,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -12099,7 +12088,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12117,7 +12105,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12135,7 +12122,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12153,7 +12139,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12171,7 +12156,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12189,7 +12173,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12207,7 +12190,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12225,7 +12207,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12243,7 +12224,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -12261,7 +12241,6 @@ "os": [ "netbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -12279,7 +12258,6 @@ "os": [ "openbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -12297,7 +12275,6 @@ "os": [ "sunos" ], - "peer": true, "engines": { "node": ">=18" } @@ -12315,7 +12292,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -12333,7 +12309,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -12351,7 +12326,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } From 2974f1761a65ce94d222e5eb1b931e5766ab8111 Mon Sep 17 00:00:00 2001 From: Sergey Sedelnikov Date: Wed, 13 May 2026 10:09:00 +0300 Subject: [PATCH 2/2] chore(entity-client): update client with new spec Co-authored-by: Claude --- clients/design-client/package.json | 2 +- clients/design-client/src/openapi.d.ts | 267 +------------------------ clients/design-client/src/openapi.json | 42 +++- package-lock.json | 6 +- 4 files changed, 43 insertions(+), 274 deletions(-) diff --git a/clients/design-client/package.json b/clients/design-client/package.json index 1a1d6e74..bc192109 100644 --- a/clients/design-client/package.json +++ b/clients/design-client/package.json @@ -1,6 +1,6 @@ { "name": "@epilot/design-client", - "version": "0.5.4", + "version": "0.5.5", "description": "Client for epilot Design API", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/clients/design-client/src/openapi.d.ts b/clients/design-client/src/openapi.d.ts index c9e03480..652dc57b 100644 --- a/clients/design-client/src/openapi.d.ts +++ b/clients/design-client/src/openapi.d.ts @@ -1495,273 +1495,20 @@ declare namespace Components { Theme; design?: { id?: string; - /** - * Creation date and time - * example: - * 2021-01-30T08:30:00Z - */ - created_at?: string; - created_by?: string; - edited: boolean; last_modified_at?: string; - brand_id?: string; - brand_name?: string; - user?: { - emailaddress?: string; - fullname?: string; - name?: string; - userid?: string; - }; - style_name: string; - style: { + style_name?: string; + style?: { logo?: LogoData; - palette: PaletteData; - typography: TypographyData; - shape?: ShapeData; - consumer: ConsumerData; + palette?: PaletteData; + typography?: TypographyData; }; - is_default?: boolean; - /** - * The manifest IDs associated with this design - */ - _manifest?: string[]; custom_theme?: string; use_custom_theme?: boolean; /** - * Design tokens for journey customization + * Design tokens for journey customization (renamed from design_tokens) */ - design_tokens?: { - coupon?: string; - cashback?: string; - custom_css?: string; - /** - * Accent color, defaults to primary - */ - accent_color?: string; - /** - * Global outline/focus color - */ - outline_color?: string; - /** - * Divider line color - */ - divider_color?: string; - /** - * Link text color - */ - link_color?: string; - /** - * Link hover text color - */ - link_hover_color?: string; - /** - * Font size scale factor - */ - font_size_scale?: "xs" | "sm" | "md" | "lg" | "xl"; - /** - * Topbar minimum height in pixels - */ - topbar_height?: number; - /** - * Logo/content alignment in the top bar - */ - topbar_logo_alignment?: "flex-start" | "center" | "flex-end"; - /** - * Logo size in pixels - */ - logo_size?: number; - /** - * Input field background color - */ - input_background?: string; - /** - * Input field border color - */ - input_border_color?: string; - /** - * Input field text color - */ - input_text_color?: string; - /** - * Input field label color - */ - input_label_color?: string; - /** - * Input field border radius in pixels - */ - input_border_radius?: number; - /** - * Input field height in pixels - */ - input_height?: number; - /** - * Input field variant style - */ - input_variant?: "outlined" | "filled" | "underlined"; - /** - * Primary button background color or gradient - */ - button_primary_bg?: string; - /** - * Primary button text color - */ - button_primary_text?: string; - /** - * Primary button hover background color or gradient - */ - button_primary_hover_bg?: string; - /** - * Primary button hover text color - */ - button_primary_hover_text?: string; - /** - * Outlined button border color - */ - button_outlined_border?: string; - /** - * Outlined button text color - */ - button_outlined_text?: string; - /** - * Outlined button hover background color - */ - button_outlined_hover_bg?: string; - /** - * Outlined button hover text color - */ - button_outlined_hover_text?: string; - /** - * Ghost button background color - */ - button_ghost_bg?: string; - /** - * Ghost button text color - */ - button_ghost_text?: string; - /** - * Ghost button hover background color - */ - button_ghost_hover_bg?: string; - /** - * Ghost button hover text color - */ - button_ghost_hover_text?: string; - /** - * Button border radius in pixels - */ - button_border_radius?: number; - /** - * Button height in pixels - */ - button_height?: number; - /** - * Card background color - */ - card_background?: string; - /** - * Card border color for outlined variant - */ - card_border_color?: string; - /** - * Card visual variant - */ - card_variant?: "shadow" | "outlined"; - /** - * Summary card background color - */ - summary_card_background?: string; - /** - * Toggle button selected background color - */ - toggle_selected_bg?: string; - /** - * Toggle button selected text color - */ - toggle_selected_text?: string; - /** - * Toggle button hover background color - */ - toggle_hover_bg?: string; - /** - * Toggle button hover text color - */ - toggle_hover_text?: string; - /** - * Toggle group wrapper border color - */ - toggle_border_color?: string; - /** - * Dropdown option hover background color - */ - dropdown_hover_bg?: string; - /** - * Dropdown option hover text color - */ - dropdown_hover_text?: string; - /** - * Dropdown option selected background color - */ - dropdown_selected_bg?: string; - /** - * Dropdown option selected text color - */ - dropdown_selected_text?: string; - /** - * Switch unchecked thumb color - */ - switch_unchecked_color?: string; - /** - * Switch unchecked track background color - */ - switch_unchecked_bg?: string; - /** - * Switch border radius in pixels - */ - switch_border_radius?: number; - /** - * Checkbox unchecked border color - */ - checkbox_unchecked_color?: string; - /** - * Checkbox label text color - */ - checkbox_label_color?: string; - /** - * Radio button unchecked border color - */ - radio_unchecked_color?: string; - /** - * Radio button label text color - */ - radio_label_color?: string; - /** - * Date picker selected date background color - */ - datepicker_selected_bg?: string; - /** - * Date picker selected date text color - */ - datepicker_selected_color?: string; - /** - * Date picker border radius in pixels - */ - datepicker_border_radius?: number; - /** - * Chip background color - */ - chip_background?: string; - /** - * Chip hover background color - */ - chip_hover_background?: string; - /** - * Chip text color - */ - chip_text_color?: string; - /** - * Chip hover text color - */ - chip_hover_text_color?: string; + journey_design_tokens?: { + [key: string]: any; }; }; } diff --git a/clients/design-client/src/openapi.json b/clients/design-client/src/openapi.json index 7caae951..bd6e9b61 100644 --- a/clients/design-client/src/openapi.json +++ b/clients/design-client/src/openapi.json @@ -1724,20 +1724,42 @@ "$ref": "#/components/schemas/Theme" }, "design": { - "allOf": [ - { - "$ref": "#/components/schemas/ItemMetada" + "type": "object", + "properties": { + "id": { + "type": "string" }, - { - "$ref": "#/components/schemas/DesignItem" + "last_modified_at": { + "type": "string" }, - { - "$ref": "#/components/schemas/Custom_Style" + "style_name": { + "type": "string" }, - { - "$ref": "#/components/schemas/Journey" + "style": { + "type": "object", + "properties": { + "logo": { + "$ref": "#/components/schemas/LogoData" + }, + "palette": { + "$ref": "#/components/schemas/PaletteData" + }, + "typography": { + "$ref": "#/components/schemas/TypographyData" + } + } + }, + "custom_theme": { + "type": "string" + }, + "use_custom_theme": { + "type": "boolean" + }, + "journey_design_tokens": { + "type": "object", + "description": "Design tokens for journey customization (renamed from design_tokens)" } - ] + } } } } diff --git a/package-lock.json b/package-lock.json index b42d3e0a..af26b3bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1678,7 +1678,7 @@ }, "clients/design-client": { "name": "@epilot/design-client", - "version": "0.5.4", + "version": "0.5.5", "license": "MIT", "dependencies": { "@dazn/lambda-powertools-correlation-ids": "^1.28.1", @@ -4930,7 +4930,7 @@ }, "clients/webhooks-client": { "name": "@epilot/webhooks-client", - "version": "2.19.0", + "version": "2.20.0", "license": "MIT", "dependencies": { "@dazn/lambda-powertools-correlation-ids": "^1.28.1", @@ -24745,7 +24745,7 @@ }, "packages/epilot-sdk-v2": { "name": "@epilot/sdk", - "version": "2.4.4", + "version": "2.5.0", "license": "MIT", "bin": { "epilot-sdk": "dist/bin/cli.js"