Merge branch 'createNewLicenseType' of https://github.com/Tria-plc/emaui into createNewLicenseType

This commit is contained in:
Estifo77
2026-09-04 09:43:46 +03:00
29 changed files with 504 additions and 192 deletions

View File

@@ -924,8 +924,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>({
@@ -955,8 +962,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[];
}