Constructors
constructor
- new Editors(api: Api): Editors
Properties
api
Methods
cloneEditorsData
- cloneEditorsData(
sourceOrganization: string,
destinationOrganization: string,
stage?: string,
): Promise<ApiResponse<{ schemas: string[]; templates: string[] }, void>> Parameters
- sourceOrganization: string
- destinationOrganization: string
Optional
stage: string
Returns Promise<ApiResponse<{ schemas: string[]; templates: string[] }, void>>
getAttributeSummary
- getAttributeSummary(
scope?: string,
): Promise<
ApiResponse<
{ key: string; used: { id: string; value: Attribute }[] }[],
void,
>,
> Returns Promise<
ApiResponse<
{ key: string; used: { id: string; value: Attribute }[] }[],
void,
>,
>
getOrganizationSettings
- getOrganizationSettings(
organization: string,
stage?: string,
): Promise<ApiResponse<OrganizationSettings, void>> Parameters
- organization: string
Optional
stage: string
getSchemasSummary
- getSchemasSummary(
stage?: string,
): Promise<
ApiResponse<
Record<
string,
{ organizationId?: string[]; schema: string; templates?: string[] }[],
>,
void,
>,
> Returns Promise<
ApiResponse<
Record<
string,
{ organizationId?: string[]; schema: string; templates?: string[] }[],
>,
void,
>,
>
getSchemasSummaryFull
- getSchemasSummaryFull(
stage?: string,
): Promise<ApiResponse<Record<string, Record<string, ElementSchema>>, void>> Returns Promise<ApiResponse<Record<string, Record<string, ElementSchema>>, void>>
getScopeList
- getScopeList(): Promise<ApiResponse<{ id: string; name: string }[], void>>
Returns Promise<ApiResponse<{ id: string; name: string }[], void>>
getTemplate
- getTemplate(
$id: string,
templateId?: string,
stage?: string,
): Promise<ApiResponse<Template, void>> Parameters
- $id: string
- templateId: string = DEFAULT_TEMPLATE_ID
Optional
stage: string
getTypeSchema
- getTypeSchema(
$id: string,
stage?: string,
): Promise<ApiResponse<ElementSchema, void>> Parameters
- $id: string
Optional
stage: string
saveTemplate
- saveTemplate(
scope: string,
elementId: string,
templateId?: string,
data?: Partial<Template>,
stage?: string,
): Promise<ApiResponse<Template, void>> Parameters
- scope: string
- elementId: string
Optional
templateId: stringOptional
data: Partial<Template>Optional
stage: string
upsertOrganizationSettings