@abpjs/text-template-management 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ABP, RoutesService, RestService, PagedResultRequestDto, ListResultDto } from '@abpjs/core';
1
+ import { ABP, RoutesService, RestService, PagedResultDto, PagedResultRequestDto } from '@abpjs/core';
2
2
  import React from 'react';
3
3
 
4
4
  /**
@@ -187,123 +187,79 @@ declare class TextTemplateManagementExtensionsGuard {
187
187
  }
188
188
 
189
189
  /**
190
- * Text Template Management Models
191
- * Translated from @volo/abp.ng.text-template-management v2.7.0
190
+ * Text Template Management Proxy DTOs
191
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
192
+ *
193
+ * Typed Data Transfer Objects for the Text Template Management module proxy services.
194
+ *
195
+ * @since 3.2.0
192
196
  */
193
197
  /**
194
- * Text Template Management namespace containing types and interfaces
195
- * @since 2.7.0
198
+ * Input for getting template content
199
+ * @since 3.2.0
196
200
  */
197
- declare namespace TextTemplateManagement {
198
- /**
199
- * Template definition DTO
200
- * Represents a text template definition
201
- */
202
- interface TemplateDefinitionDto {
203
- /** Template name (unique identifier) */
204
- name: string;
205
- /** Display name for the template */
206
- displayName: string;
207
- /** Whether this template is a layout template */
208
- isLayout: boolean;
209
- /** Layout template name (if this template uses a layout) */
210
- layout: string;
211
- /** Default culture name for the template */
212
- defaultCultureName: string;
213
- /** Whether the template is localized inline */
214
- isInlineLocalized: boolean;
215
- }
216
- /**
217
- * Text template content DTO
218
- * Represents the content of a text template
219
- */
220
- interface TextTemplateContentDto {
221
- /** Template name */
222
- name: string;
223
- /** Culture name for the content */
224
- cultureName: string;
225
- /** Template content */
226
- content: string;
227
- }
228
- /**
229
- * Input for getting template content
230
- */
231
- interface TemplateContentInput {
232
- /** Template name */
233
- templateName: string;
234
- /** Optional culture name */
235
- cultureName?: string;
236
- }
237
- /**
238
- * DTO for creating or updating template content
239
- */
240
- interface CreateOrUpdateTemplateContentDto {
241
- /** Template name */
242
- templateName: string;
243
- /** Culture name for the content */
244
- cultureName: string;
245
- /** Template content */
246
- content: string;
247
- }
248
- /**
249
- * State interface for text template management
250
- * @since 2.7.0
251
- */
252
- interface State {
253
- /** List of template definitions */
254
- templateDefinitions: TemplateDefinitionDto[];
255
- /** Total count of template definitions */
256
- totalCount: number;
257
- /** Currently selected template definition */
258
- selectedTemplate: TemplateDefinitionDto | null;
259
- /** Template content for the selected template */
260
- templateContent: TextTemplateContentDto | null;
261
- }
262
- /**
263
- * Request parameters for fetching template definitions
264
- */
265
- interface GetTemplateDefinitionsInput {
266
- /** Filter text */
267
- filterText?: string;
268
- /** Skip count for pagination */
269
- skipCount?: number;
270
- /** Max result count for pagination */
271
- maxResultCount?: number;
272
- /** Sorting field and order */
273
- sorting?: string;
274
- }
201
+ interface GetTemplateContentInput {
202
+ templateName: string;
203
+ cultureName: string;
275
204
  }
276
205
  /**
277
206
  * Input for getting template definition list
278
- * Extends PagedResultRequestDto with optional filterText
279
- * @since 3.1.0
207
+ * @since 3.2.0
280
208
  */
281
209
  interface GetTemplateDefinitionListInput {
282
- /** Filter text for searching templates */
283
210
  filterText?: string;
284
- /** Skip count for pagination */
285
211
  skipCount?: number;
286
- /** Max result count for pagination */
287
212
  maxResultCount?: number;
288
- /** Sorting field and order */
289
213
  sorting?: string;
290
214
  }
291
215
  /**
292
- * Factory function to create GetTemplateDefinitionListInput
293
- * @param initialValues Optional initial values
294
- * @returns GetTemplateDefinitionListInput instance
295
- * @since 3.1.0
216
+ * Input for restoring template content to default
217
+ * @since 3.2.0
296
218
  */
297
- declare function createGetTemplateDefinitionListInput(initialValues?: Partial<GetTemplateDefinitionListInput>): GetTemplateDefinitionListInput;
219
+ interface RestoreTemplateContentInput {
220
+ templateName: string;
221
+ cultureName: string;
222
+ }
223
+ /**
224
+ * Template definition DTO
225
+ * @since 3.2.0
226
+ */
227
+ interface TemplateDefinitionDto {
228
+ name: string;
229
+ displayName: string;
230
+ isLayout: boolean;
231
+ layout: string;
232
+ isInlineLocalized: boolean;
233
+ defaultCultureName: string;
234
+ }
235
+ /**
236
+ * Text template content DTO
237
+ * @since 3.2.0
238
+ */
239
+ interface TextTemplateContentDto {
240
+ name: string;
241
+ cultureName: string;
242
+ content: string;
243
+ }
244
+ /**
245
+ * Input for updating template content
246
+ * @since 3.2.0
247
+ */
248
+ interface UpdateTemplateContentInput {
249
+ templateName: string;
250
+ cultureName: string;
251
+ content: string;
252
+ }
298
253
 
299
254
  /**
300
255
  * Text Template Management Extension Tokens
301
- * Translated from @volo/abp.ng.text-template-management v3.0.0
256
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
302
257
  *
303
258
  * Default entity actions, toolbar actions, and entity props
304
259
  * for the Text Template Management module extensibility system.
305
260
  *
306
261
  * @since 3.0.0
262
+ * @updated 3.2.0 - Now uses proxy DTOs (TemplateDefinitionDto)
307
263
  */
308
264
 
309
265
  /**
@@ -343,40 +299,43 @@ interface EntityProp<T = unknown> {
343
299
  /**
344
300
  * Default entity actions for TextTemplates component
345
301
  * @since 3.0.0
302
+ * @updated 3.2.0 - Now uses TemplateDefinitionDto from proxy
346
303
  */
347
- declare const DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS: EntityAction<TextTemplateManagement.TemplateDefinitionDto>[];
304
+ declare const DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS: EntityAction<TemplateDefinitionDto>[];
348
305
  /**
349
306
  * Default entity actions aggregated by component
350
307
  * @since 3.0.0
351
308
  */
352
309
  declare const DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS: {
353
- readonly "TextTemplateManagement.TextTemplates": EntityAction<TextTemplateManagement.TemplateDefinitionDto>[];
310
+ readonly "TextTemplateManagement.TextTemplates": EntityAction<TemplateDefinitionDto>[];
354
311
  };
355
312
  /**
356
313
  * Default toolbar actions for TextTemplates component
357
314
  * Note: Text Template Management typically doesn't have create functionality
358
315
  * as templates are defined in code
359
316
  * @since 3.0.0
317
+ * @updated 3.2.0 - Now uses TemplateDefinitionDto from proxy
360
318
  */
361
- declare const DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS: ToolbarAction<TextTemplateManagement.TemplateDefinitionDto[]>[];
319
+ declare const DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS: ToolbarAction<TemplateDefinitionDto[]>[];
362
320
  /**
363
321
  * Default toolbar actions aggregated by component
364
322
  * @since 3.0.0
365
323
  */
366
324
  declare const DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS: {
367
- readonly "TextTemplateManagement.TextTemplates": ToolbarAction<TextTemplateManagement.TemplateDefinitionDto[]>[];
325
+ readonly "TextTemplateManagement.TextTemplates": ToolbarAction<TemplateDefinitionDto[]>[];
368
326
  };
369
327
  /**
370
328
  * Default entity props for TextTemplates component
371
329
  * @since 3.0.0
330
+ * @updated 3.2.0 - Now uses TemplateDefinitionDto from proxy
372
331
  */
373
- declare const DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS: EntityProp<TextTemplateManagement.TemplateDefinitionDto>[];
332
+ declare const DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS: EntityProp<TemplateDefinitionDto>[];
374
333
  /**
375
334
  * Default entity props aggregated by component
376
335
  * @since 3.0.0
377
336
  */
378
337
  declare const DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS: {
379
- readonly "TextTemplateManagement.TextTemplates": EntityProp<TextTemplateManagement.TemplateDefinitionDto>[];
338
+ readonly "TextTemplateManagement.TextTemplates": EntityProp<TemplateDefinitionDto>[];
380
339
  };
381
340
  /**
382
341
  * Entity action contributor callback type
@@ -412,6 +371,118 @@ declare const TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS: unique symbo
412
371
  */
413
372
  declare const TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS: unique symbol;
414
373
 
374
+ /**
375
+ * Text Template Management Models
376
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
377
+ *
378
+ * @deprecated Legacy types in this namespace are deprecated and will be removed in v4.0.
379
+ * Use the new proxy types from '@abpjs/text-template-management' instead:
380
+ * - TemplateDefinitionDto from proxy/text-templates/models
381
+ * - TextTemplateContentDto from proxy/text-templates/models
382
+ * - GetTemplateContentInput from proxy/text-templates/models
383
+ * - UpdateTemplateContentInput from proxy/text-templates/models
384
+ * - RestoreTemplateContentInput from proxy/text-templates/models
385
+ * - GetTemplateDefinitionListInput from proxy/text-templates/models
386
+ */
387
+ /**
388
+ * Text Template Management namespace containing types and interfaces
389
+ * @since 2.7.0
390
+ * @deprecated To be removed in v4.0. Use proxy types instead.
391
+ */
392
+ declare namespace TextTemplateManagement {
393
+ /**
394
+ * Template definition DTO
395
+ * Represents a text template definition
396
+ * @deprecated To be removed in v4.0. Use TemplateDefinitionDto from proxy/text-templates/models
397
+ */
398
+ interface TemplateDefinitionDto {
399
+ /** Template name (unique identifier) */
400
+ name: string;
401
+ /** Display name for the template */
402
+ displayName: string;
403
+ /** Whether this template is a layout template */
404
+ isLayout: boolean;
405
+ /** Layout template name (if this template uses a layout) */
406
+ layout: string;
407
+ /** Default culture name for the template */
408
+ defaultCultureName: string;
409
+ /** Whether the template is localized inline */
410
+ isInlineLocalized: boolean;
411
+ }
412
+ /**
413
+ * Text template content DTO
414
+ * Represents the content of a text template
415
+ * @deprecated To be removed in v4.0. Use TextTemplateContentDto from proxy/text-templates/models
416
+ */
417
+ interface TextTemplateContentDto {
418
+ /** Template name */
419
+ name: string;
420
+ /** Culture name for the content */
421
+ cultureName: string;
422
+ /** Template content */
423
+ content: string;
424
+ }
425
+ /**
426
+ * Input for getting template content
427
+ * @deprecated To be removed in v4.0. Use GetTemplateContentInput from proxy/text-templates/models
428
+ */
429
+ interface TemplateContentInput {
430
+ /** Template name */
431
+ templateName: string;
432
+ /** Optional culture name */
433
+ cultureName?: string;
434
+ }
435
+ /**
436
+ * DTO for creating or updating template content
437
+ * @deprecated To be removed in v4.0. Use UpdateTemplateContentInput from proxy/text-templates/models
438
+ */
439
+ interface CreateOrUpdateTemplateContentDto {
440
+ /** Template name */
441
+ templateName: string;
442
+ /** Culture name for the content */
443
+ cultureName: string;
444
+ /** Template content */
445
+ content: string;
446
+ }
447
+ /**
448
+ * State interface for text template management
449
+ * @since 2.7.0
450
+ */
451
+ interface State {
452
+ /** List of template definitions */
453
+ templateDefinitions: TemplateDefinitionDto[];
454
+ /** Total count of template definitions */
455
+ totalCount: number;
456
+ /** Currently selected template definition */
457
+ selectedTemplate: TemplateDefinitionDto | null;
458
+ /** Template content for the selected template */
459
+ templateContent: TextTemplateContentDto | null;
460
+ }
461
+ /**
462
+ * Request parameters for fetching template definitions
463
+ * @deprecated To be removed in v4.0. Use GetTemplateDefinitionListInput from proxy/text-templates/models
464
+ */
465
+ interface GetTemplateDefinitionsInput {
466
+ /** Filter text */
467
+ filterText?: string;
468
+ /** Skip count for pagination */
469
+ skipCount?: number;
470
+ /** Max result count for pagination */
471
+ maxResultCount?: number;
472
+ /** Sorting field and order */
473
+ sorting?: string;
474
+ }
475
+ }
476
+
477
+ /**
478
+ * Factory function to create GetTemplateDefinitionListInput
479
+ * @param initialValues Optional initial values
480
+ * @returns GetTemplateDefinitionListInput instance
481
+ * @since 3.1.0
482
+ * @deprecated To be removed in v4.0. Use GetTemplateDefinitionListInput from proxy/text-templates/models directly
483
+ */
484
+ declare function createGetTemplateDefinitionListInput(initialValues?: Partial<GetTemplateDefinitionListInput>): GetTemplateDefinitionListInput;
485
+
415
486
  /**
416
487
  * Text Template Management Config Options
417
488
  * Translated from @volo/abp.ng.text-template-management v3.0.0
@@ -468,82 +539,15 @@ declare const TEXT_TEMPLATE_MANAGEMENT_ROUTES: {
468
539
  routes: ABP.FullRoute[];
469
540
  };
470
541
 
471
- /**
472
- * Template Definition Service
473
- * Translated from @volo/abp.ng.text-template-management v2.7.0
474
- *
475
- * Provides REST API methods for managing text template definitions.
476
- */
477
-
478
- /**
479
- * Service for template definition operations.
480
- * This service wraps all REST API calls for template definitions.
481
- *
482
- * @since 2.7.0
483
- */
484
- declare class TemplateDefinitionService {
485
- private restService;
486
- /**
487
- * API name for multi-API configurations
488
- * @since 2.7.0
489
- */
490
- apiName: string;
491
- constructor(restService: RestService);
492
- /**
493
- * Get list of template definitions
494
- * @param params Query parameters for filtering and pagination
495
- * @returns Promise with list of template definitions
496
- */
497
- getList(params?: Partial<PagedResultRequestDto>): Promise<ListResultDto<TextTemplateManagement.TemplateDefinitionDto>>;
498
- }
499
-
500
- /**
501
- * Template Content Service
502
- * Translated from @volo/abp.ng.text-template-management v2.7.0
503
- *
504
- * Provides REST API methods for managing text template content.
505
- */
506
-
507
- /**
508
- * Service for template content operations.
509
- * This service wraps all REST API calls for template content.
510
- *
511
- * @since 2.7.0
512
- */
513
- declare class TemplateContentService {
514
- private restService;
515
- /**
516
- * API name for multi-API configurations
517
- * @since 2.7.0
518
- */
519
- apiName: string;
520
- constructor(restService: RestService);
521
- /**
522
- * Get template content by input parameters
523
- * @param params Input parameters containing template name and optional culture name
524
- * @returns Promise with template content
525
- */
526
- getByInput(params: TextTemplateManagement.TemplateContentInput): Promise<TextTemplateManagement.TextTemplateContentDto>;
527
- /**
528
- * Restore template content to default
529
- * @param body Input containing template name and culture name to restore
530
- * @returns Promise that resolves when restore is complete
531
- */
532
- restoreToDefaultByInput(body: TextTemplateManagement.TemplateContentInput): Promise<void>;
533
- /**
534
- * Update template content
535
- * @param body DTO containing template name, culture name, and new content
536
- * @returns Promise with updated template content
537
- */
538
- updateByInput(body: TextTemplateManagement.CreateOrUpdateTemplateContentDto): Promise<TextTemplateManagement.TextTemplateContentDto>;
539
- }
540
-
541
542
  /**
542
543
  * Text Template Management State Service
543
- * Translated from @volo/abp.ng.text-template-management v2.7.0
544
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
544
545
  *
545
546
  * Provides a stateful facade over text template operations,
546
547
  * maintaining internal state similar to Angular's NGXS store pattern.
548
+ *
549
+ * @since 2.7.0
550
+ * @updated 3.2.0 - Now uses proxy services
547
551
  */
548
552
 
549
553
  /**
@@ -551,6 +555,7 @@ declare class TemplateContentService {
551
555
  * Maintains state for template definitions and content.
552
556
  *
553
557
  * @since 2.7.0
558
+ * @updated 3.2.0 - Now uses proxy services internally
554
559
  */
555
560
  declare class TextTemplateManagementStateService {
556
561
  private templateDefinitionService;
@@ -561,7 +566,7 @@ declare class TextTemplateManagementStateService {
561
566
  * Get template definitions from state
562
567
  * @returns Array of template definitions
563
568
  */
564
- getTemplateDefinitions(): TextTemplateManagement.TemplateDefinitionDto[];
569
+ getTemplateDefinitions(): TemplateDefinitionDto[];
565
570
  /**
566
571
  * Get total count of template definitions
567
572
  * @returns Total count
@@ -571,30 +576,31 @@ declare class TextTemplateManagementStateService {
571
576
  * Get the currently selected template
572
577
  * @returns Selected template or null
573
578
  */
574
- getSelectedTemplate(): TextTemplateManagement.TemplateDefinitionDto | null;
579
+ getSelectedTemplate(): TemplateDefinitionDto | null;
575
580
  /**
576
581
  * Get template content from state
577
582
  * @returns Template content or null
578
583
  */
579
- getTemplateContent(): TextTemplateManagement.TextTemplateContentDto | null;
584
+ getTemplateContent(): TextTemplateContentDto | null;
580
585
  /**
581
586
  * Dispatch action to fetch template definitions
582
587
  * @param params Query parameters for filtering and pagination
583
- * @returns Promise with list result
588
+ * @returns Promise with paged result
589
+ * @updated 3.2.0 - Now returns PagedResultDto instead of ListResultDto
584
590
  */
585
- dispatchGetTemplateDefinitions(params?: Partial<PagedResultRequestDto>): Promise<ListResultDto<TextTemplateManagement.TemplateDefinitionDto>>;
591
+ dispatchGetTemplateDefinitions(params?: GetTemplateDefinitionListInput): Promise<PagedResultDto<TemplateDefinitionDto>>;
586
592
  /**
587
593
  * Dispatch action to get template content
588
- * @param params Input containing template name and optional culture name
594
+ * @param params Input containing template name and culture name
589
595
  * @returns Promise with template content
590
596
  */
591
- dispatchGetTemplateContent(params: TextTemplateManagement.TemplateContentInput): Promise<TextTemplateManagement.TextTemplateContentDto>;
597
+ dispatchGetTemplateContent(params: TextTemplateManagement.TemplateContentInput): Promise<TextTemplateContentDto>;
592
598
  /**
593
599
  * Dispatch action to update template content
594
600
  * @param body DTO containing template name, culture name, and content
595
601
  * @returns Promise with updated template content
596
602
  */
597
- dispatchUpdateTemplateContent(body: TextTemplateManagement.CreateOrUpdateTemplateContentDto): Promise<TextTemplateManagement.TextTemplateContentDto>;
603
+ dispatchUpdateTemplateContent(body: TextTemplateManagement.CreateOrUpdateTemplateContentDto): Promise<TextTemplateContentDto>;
598
604
  /**
599
605
  * Dispatch action to restore template content to default
600
606
  * @param body Input containing template name and culture name
@@ -605,7 +611,7 @@ declare class TextTemplateManagementStateService {
605
611
  * Set the selected template
606
612
  * @param template Template to select or null to clear
607
613
  */
608
- setSelectedTemplate(template: TextTemplateManagement.TemplateDefinitionDto | null): void;
614
+ setSelectedTemplate(template: TemplateDefinitionDto | null): void;
609
615
  /**
610
616
  * Clear all state
611
617
  */
@@ -769,4 +775,86 @@ interface TemplateContentsComponentProps {
769
775
  */
770
776
  declare function TemplateContentsComponent({ templateName, cultures, defaultCultureName, onSave, onRestore, className, }: TemplateContentsComponentProps): React.ReactElement;
771
777
 
772
- export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type GetTemplateDefinitionListInput, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, TemplateDefinitionService, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UseTextTemplatesReturn, configureRoutes, createGetTemplateDefinitionListInput, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };
778
+ /**
779
+ * Template Content Proxy Service
780
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
781
+ *
782
+ * Provides typed REST API methods for managing text template content.
783
+ *
784
+ * @since 3.2.0
785
+ */
786
+
787
+ /**
788
+ * Service for template content operations with typed DTOs.
789
+ * This is the new proxy service that replaces the legacy TemplateContentService
790
+ * in lib/services.
791
+ *
792
+ * @since 3.2.0
793
+ */
794
+ declare class TemplateContentService {
795
+ private restService;
796
+ /**
797
+ * API name for multi-API configurations
798
+ * @since 3.2.0
799
+ */
800
+ apiName: string;
801
+ constructor(restService: RestService);
802
+ /**
803
+ * Get template content
804
+ * @param input Input containing template name and culture name
805
+ * @returns Promise with template content
806
+ */
807
+ get(input: GetTemplateContentInput): Promise<TextTemplateContentDto>;
808
+ /**
809
+ * Restore template content to default
810
+ * @param input Input containing template name and culture name
811
+ * @returns Promise that resolves when restore is complete
812
+ */
813
+ restoreToDefault(input: RestoreTemplateContentInput): Promise<void>;
814
+ /**
815
+ * Update template content
816
+ * @param input Input containing template name, culture name, and content
817
+ * @returns Promise with updated template content
818
+ */
819
+ update(input: UpdateTemplateContentInput): Promise<TextTemplateContentDto>;
820
+ }
821
+
822
+ /**
823
+ * Template Definition Proxy Service
824
+ * Translated from @volo/abp.ng.text-template-management v3.2.0
825
+ *
826
+ * Provides typed REST API methods for managing text template definitions.
827
+ *
828
+ * @since 3.2.0
829
+ */
830
+
831
+ /**
832
+ * Service for template definition operations with typed DTOs.
833
+ * This is the new proxy service that replaces the legacy TemplateDefinitionService
834
+ * in lib/services.
835
+ *
836
+ * @since 3.2.0
837
+ */
838
+ declare class TemplateDefinitionService {
839
+ private restService;
840
+ /**
841
+ * API name for multi-API configurations
842
+ * @since 3.2.0
843
+ */
844
+ apiName: string;
845
+ constructor(restService: RestService);
846
+ /**
847
+ * Get a template definition by name
848
+ * @param name Template name
849
+ * @returns Promise with template definition
850
+ */
851
+ get(name: string): Promise<TemplateDefinitionDto>;
852
+ /**
853
+ * Get paginated list of template definitions
854
+ * @param input Query parameters for filtering and pagination
855
+ * @returns Promise with paginated template definitions response
856
+ */
857
+ getList(input?: GetTemplateDefinitionListInput): Promise<PagedResultDto<TemplateDefinitionDto>>;
858
+ }
859
+
860
+ export { DEFAULT_TEXT_TEMPLATES_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATES_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATES_TOOLBAR_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROPS, DEFAULT_TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTIONS, type EntityAction, type EntityActionContributorCallback, type EntityProp, type EntityPropContributorCallback, type GetTemplateContentInput, type GetTemplateDefinitionListInput, type RestoreTemplateContentInput, TEXT_TEMPLATE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, TEXT_TEMPLATE_MANAGEMENT_ROUTES, TEXT_TEMPLATE_MANAGEMENT_ROUTE_CONFIG, TEXT_TEMPLATE_MANAGEMENT_ROUTE_PROVIDERS, TEXT_TEMPLATE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, TemplateContentService, TemplateContentsComponent, type TemplateContentsComponentProps, type TemplateDefinitionDto, TemplateDefinitionService, type TextTemplateContentDto, TextTemplateManagement, type TextTemplateManagementComponentKey, type TextTemplateManagementConfigOptions, type TextTemplateManagementEntityActionContributors, type TextTemplateManagementEntityPropContributors, TextTemplateManagementExtensionsGuard, type TextTemplateManagementPolicyNameKey, type TextTemplateManagementRouteNameKey, TextTemplateManagementStateService, type TextTemplateManagementToolbarActionContributors, TextTemplatesComponent, type TextTemplatesComponentProps, type ToolbarAction, type ToolbarActionContributorCallback, type UpdateTemplateContentInput, type UseTextTemplatesReturn, configureRoutes, createGetTemplateDefinitionListInput, eTextTemplateManagementComponents, eTextTemplateManagementPolicyNames, eTextTemplateManagementRouteNames, initializeTextTemplateManagementRoutes, textTemplateManagementExtensionsGuard, useTextTemplateManagementExtensionsGuard, useTextTemplates };