mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-07 20:05:42 +00:00
feat: add multi-page support, improve template creation logic, and refine rank resolution in certificate designer
This commit is contained in:
@@ -871,8 +871,15 @@ export const licensingApi = baseApi
|
||||
providesTags: () => [listTag('LicenseTemplate')],
|
||||
}),
|
||||
|
||||
getTemplateVariables: builder.query<TemplateVariable[], void>({
|
||||
query: () => ({ url: '/license-templates/variables' }),
|
||||
/**
|
||||
* With a licence type, the palette also carries that type's own form
|
||||
* answers (`form.<section>.<field>`), which issuance hands every design.
|
||||
*/
|
||||
getTemplateVariables: builder.query<TemplateVariable[], { licenseTypeId?: string } | void>({
|
||||
query: (args) => ({
|
||||
url: '/license-templates/variables',
|
||||
params: args?.licenseTypeId ? { licenseTypeId: args.licenseTypeId } : {},
|
||||
}),
|
||||
}),
|
||||
|
||||
getBuiltInTemplate: builder.query<{ hbsSource: string }, void>({
|
||||
@@ -902,8 +909,9 @@ export const licensingApi = baseApi
|
||||
name?: string;
|
||||
hbsSource?: string;
|
||||
pageOptions?: TemplatePageOptions;
|
||||
backgroundUrl?: string;
|
||||
logoUrl?: string;
|
||||
/** Null removes the artwork; undefined leaves it as stored. */
|
||||
backgroundUrl?: string | null;
|
||||
logoUrl?: string | null;
|
||||
logoPlacement?: TemplateLogoPlacement;
|
||||
fieldPlacements?: TemplateFieldPlacement[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user