Skip to content
Open
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
2 changes: 1 addition & 1 deletion clients/design-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/design-client",
"version": "0.5.3",
"version": "0.5.5",
"description": "Client for epilot Design API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
30 changes: 28 additions & 2 deletions clients/design-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,32 @@ 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;
last_modified_at?: string;
style_name?: string;
style?: {
logo?: LogoData;
palette?: PaletteData;
typography?: TypographyData;
};
custom_theme?: string;
use_custom_theme?: boolean;
/**
* Design tokens for journey customization (renamed from design_tokens)
*/
journey_design_tokens?: {
[key: string]: any;
};
};
}
export interface RemoveConsumerReq {
consumer_id: /**
* Id of the design
Expand Down Expand Up @@ -1957,8 +1983,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 {
Expand Down Expand Up @@ -2336,6 +2361,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;
Expand Down
48 changes: 47 additions & 1 deletion clients/design-client/src/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
"content": {
"application/json": {
"schema": {
"type": "object"
"$ref": "#/components/schemas/ParseThemeFromDesignResp"
}
}
}
Expand Down Expand Up @@ -1716,6 +1716,52 @@
"$ref": "#/components/schemas/Application"
}
}
},
"ParseThemeFromDesignResp": {
"type": "object",
"properties": {
"theme": {
"$ref": "#/components/schemas/Theme"
},
"design": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"last_modified_at": {
"type": "string"
},
"style_name": {
"type": "string"
},
"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)"
}
}
}
}
}
}
}
Expand Down
36 changes: 5 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading