@creatio-devkit/common 0.1000.2 → 0.1000.3

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/index.d.ts DELETED
@@ -1,3699 +0,0 @@
1
- import { ɵAbstractType as AbstractType } from '@creatio/base';
2
- import { ɵAggregationEval as AggregationEval } from '@creatio/base';
3
- import { ɵAggregationEvalType as AggregationEvalType } from '@creatio/base';
4
- import { ɵAggregationFunction as AggregationFunction } from '@creatio/base';
5
- import { ɵAggregationFunctionColumn as AggregationFunctionColumn } from '@creatio/base';
6
- import { ɵAggregationFunctionExpression as AggregationFunctionExpression } from '@creatio/base';
7
- import { ɵAggregationFunctionExpressionConfig as AggregationFunctionExpressionConfig } from '@creatio/base';
8
- import { ɵAggregationSubQueryColumn as AggregationSubQueryColumn } from '@creatio/base';
9
- import { ɵAggregationSubQueryExpression as AggregationSubQueryExpression } from '@creatio/base';
10
- import { ɵAggregationSubQueryExpressionConfig as AggregationSubQueryExpressionConfig } from '@creatio/base';
11
- import { ɵAggregationType as AggregationType } from '@creatio/base';
12
- import { ɵArgumentEmptyException as ArgumentEmptyException } from '@creatio/base';
13
- import { ɵArgumentFunctionExpression as ArgumentFunctionExpression } from '@creatio/base';
14
- import { ɵArgumentFunctionExpressionConfig as ArgumentFunctionExpressionConfig } from '@creatio/base';
15
- import { ɵArgumentOutOfRangeException as ArgumentOutOfRangeException } from '@creatio/base';
16
- import { ɵArithmeticExpression as ArithmeticExpression } from '@creatio/base';
17
- import { ɵArithmeticExpressionConfig as ArithmeticExpressionConfig } from '@creatio/base';
18
- import { ɵArithmeticOperation as ArithmeticOperation } from '@creatio/base';
19
- import { ɵArithmeticQueryColumn as ArithmeticQueryColumn } from '@creatio/base';
20
- import { ɵBaseDataSourceParameter as BaseDataSourceParameter } from '@creatio/base';
21
- import { ɵBaseDialogButtonConfig as BaseDialogButtonConfig } from '@creatio/base';
22
- import { ɵBaseDialogConfig as BaseDialogConfig } from '@creatio/base';
23
- import { ɵBaseDialogService as BaseDialogService } from '@creatio/base';
24
- import { ɵBaseExpression as BaseExpression } from '@creatio/base';
25
- import { ɵBaseExpressionParser as BaseExpressionParser } from '@creatio/base';
26
- import { ɵBaseFilter as BaseFilter } from '@creatio/base';
27
- import { ɵBaseFilterableQuery as BaseFilterableQuery } from '@creatio/base';
28
- import { ɵBaseFilterParser as BaseFilterParser } from '@creatio/base';
29
- import { ɵBaseMessageChannelService as BaseMessageChannelService } from '@creatio/base';
30
- import { ɵBaseModel as BaseModel } from '@creatio/base';
31
- import { ɵBaseQuery as BaseQuery } from '@creatio/base';
32
- import { ɵBaseQueryColumn as BaseQueryColumn } from '@creatio/base';
33
- import { ɵBaseRequest as BaseRequest } from '@creatio/base';
34
- import { ɵBetweenFilter as BetweenFilter } from '@creatio/base';
35
- import { ɵButtonColor as ButtonColor } from '@creatio/base';
36
- import { ɵColumnExpression as ColumnExpression } from '@creatio/base';
37
- import { ɵColumnExpressionConfig as ColumnExpressionConfig } from '@creatio/base';
38
- import { ɵCompareFilter as CompareFilter } from '@creatio/base';
39
- import { ɵComparisonType as ComparisonType } from '@creatio/base';
40
- import { ɵConditionalValueItem as ConditionalValueItem } from '@creatio/base';
41
- import { ɵDataSchema as DataSchema } from '@creatio/base';
42
- import { ɵDataSchemaAttribute as DataSchemaAttribute } from '@creatio/base';
43
- import { ɵDataSchemaAttributeAggregationConfig as DataSchemaAttributeAggregationConfig } from '@creatio/base';
44
- import { ɵDataSchemaAttributeAggregationFunctionConfig as DataSchemaAttributeAggregationFunctionConfig } from '@creatio/base';
45
- import { ɵDataSchemaAttributeDatePartFunctionConfig as DataSchemaAttributeDatePartFunctionConfig } from '@creatio/base';
46
- import { ɵDataSchemaAttributeFunctionConfig as DataSchemaAttributeFunctionConfig } from '@creatio/base';
47
- import { ɵDataSchemaAttributeType as DataSchemaAttributeType } from '@creatio/base';
48
- import { ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType } from '@creatio/base';
49
- import { ɵDataSchemaAttributeValidatorConfig as DataSchemaAttributeValidatorConfig } from '@creatio/base';
50
- import { ɵDataSchemaAttributeValueMaskingSettings as DataSchemaAttributeValueMaskingSettings } from '@creatio/base';
51
- import { ɵDataSchemaType as DataSchemaType } from '@creatio/base';
52
- import { ɵDataSchemaValidatorConfig as DataSchemaValidatorConfig } from '@creatio/base';
53
- import { ɵDataSourceAggregationConfig as DataSourceAggregationConfig } from '@creatio/base';
54
- import { ɵDataSourceAggregationFunctionConfig as DataSourceAggregationFunctionConfig } from '@creatio/base';
55
- import { ɵDataSourceAttribute as DataSourceAttribute } from '@creatio/base';
56
- import { ɵDataSourceAttributeType as DataSourceAttributeType } from '@creatio/base';
57
- import { ɵDataSourceCanExecuteOperationPayload as DataSourceCanExecuteOperationPayload } from '@creatio/base';
58
- import { ɵDataSourceCanExecuteOperationResult as DataSourceCanExecuteOperationResult } from '@creatio/base';
59
- import { ɵDataSourceConfig as DataSourceConfig } from '@creatio/base';
60
- import { ɵDataSourceDatePartFunctionConfig as DataSourceDatePartFunctionConfig } from '@creatio/base';
61
- import { ɵDataSourceFunctionConfig as DataSourceFunctionConfig } from '@creatio/base';
62
- import { ɵDataSourceInsertResult as DataSourceInsertResult } from '@creatio/base';
63
- import { ɵDataSourceInstanceConfig as DataSourceInstanceConfig } from '@creatio/base';
64
- import { ɵDataSourcePagingConfig as DataSourcePagingConfig } from '@creatio/base';
65
- import { ɵDataSourceParameter as DataSourceParameter } from '@creatio/base';
66
- import { ɵDataSourceParameterRelationConfig as DataSourceParameterRelationConfig } from '@creatio/base';
67
- import { ɵDataSourceParameters as DataSourceParameters } from '@creatio/base';
68
- import { ɵDataSourceSaveResult as DataSourceSaveResult } from '@creatio/base';
69
- import { ɵDataSourceScope as DataSourceScope } from '@creatio/base';
70
- import { ɵDataSourceSortingConfig as DataSourceSortingConfig } from '@creatio/base';
71
- import { ɵDataValueType as DataValueType } from '@creatio/base';
72
- import { ɵDatePart as DatePart } from '@creatio/base';
73
- import { ɵDatePartFunctionColumn as DatePartFunctionColumn } from '@creatio/base';
74
- import { ɵDatePartFunctionExpression as DatePartFunctionExpression } from '@creatio/base';
75
- import { ɵDatePartFunctionExpressionConfig as DatePartFunctionExpressionConfig } from '@creatio/base';
76
- import { ɵDatePartType as DatePartType } from '@creatio/base';
77
- import { ɵDefaultValueSchema as DefaultValueSchema } from '@creatio/base';
78
- import { ɵDefaultValueSource as DefaultValueSource } from '@creatio/base';
79
- import { ɵDeleteQuery as DeleteQuery } from '@creatio/base';
80
- import { ɵEMPTY_GUID as EMPTY_GUID } from '@creatio/base';
81
- import { ɵencodeDate as encodeDate } from '@creatio/base';
82
- import { ɵEntityColumnValue as EntityColumnValue } from '@creatio/base';
83
- import { ɵEntityQueryColumn as EntityQueryColumn } from '@creatio/base';
84
- import { ɵEntitySchemaQuery as EntitySchemaQuery } from '@creatio/base';
85
- import { ɵExistsFilter as ExistsFilter } from '@creatio/base';
86
- import { ɵExpressionConfig as ExpressionConfig } from '@creatio/base';
87
- import { ɵExpressionMock as ExpressionMock } from '@creatio/base';
88
- import { ɵExpressionParser as ExpressionParser } from '@creatio/base';
89
- import { ɵExpressionResolver as ExpressionResolver } from '@creatio/base';
90
- import { ɵExpressionType as ExpressionType } from '@creatio/base';
91
- import { ɵFilterGroup as FilterGroup } from '@creatio/base';
92
- import { FilterGroupOrigin } from '@creatio/base';
93
- import { ɵFilterGroupOriginType as FilterGroupOriginType } from '@creatio/base';
94
- import { ɵFilterMock as FilterMock } from '@creatio/base';
95
- import { ɵFilterParser as FilterParser } from '@creatio/base';
96
- import { ɵFilterResolver as FilterResolver } from '@creatio/base';
97
- import { ɵFilterType as FilterType } from '@creatio/base';
98
- import { ɵFunctionExpression as FunctionExpression } from '@creatio/base';
99
- import { ɵFunctionExpressionConfig as FunctionExpressionConfig } from '@creatio/base';
100
- import { ɵFunctionStringType as FunctionStringType } from '@creatio/base';
101
- import { ɵFunctionType as FunctionType } from '@creatio/base';
102
- import { ɵgenerateGuid as generateGuid } from '@creatio/base';
103
- import { ɵGuid as Guid } from '@creatio/base';
104
- import { ɵInFilter as InFilter } from '@creatio/base';
105
- import { ɵInsertQuery as InsertQuery } from '@creatio/base';
106
- import { ɵisEmptyGuid as isEmptyGuid } from '@creatio/base';
107
- import { ɵisGuid as isGuid } from '@creatio/base';
108
- import { ɵIsNullFilter as IsNullFilter } from '@creatio/base';
109
- import { ɵItemNotFoundException as ItemNotFoundException } from '@creatio/base';
110
- import { ɵJsonArray as JsonArray } from '@creatio/base';
111
- import { ɵJsonData as JsonData } from '@creatio/base';
112
- import { ɵJsonObject as JsonObject } from '@creatio/base';
113
- import { ɵLengthFunctionColumn as LengthFunctionColumn } from '@creatio/base';
114
- import { ɵLengthFunctionExpression as LengthFunctionExpression } from '@creatio/base';
115
- import { ɵLengthFunctionExpressionConfig as LengthFunctionExpressionConfig } from '@creatio/base';
116
- import { ɵLocalizableString as LocalizableString } from '@creatio/base';
117
- import { ɵLocalizeFn as LocalizeFn } from '@creatio/base';
118
- import { ɵLogicalOperatorType as LogicalOperatorType } from '@creatio/base';
119
- import { ɵLookupValue as LookupValue } from '@creatio/base';
120
- import { ɵLookupValueWithCode as LookupValueWithCode } from '@creatio/base';
121
- import { ɵMacrosFunctionColumn as MacrosFunctionColumn } from '@creatio/base';
122
- import { ɵMacrosFunctionExpression as MacrosFunctionExpression } from '@creatio/base';
123
- import { ɵMacrosFunctionExpressionConfig as MacrosFunctionExpressionConfig } from '@creatio/base';
124
- import { ɵMessageChannelEvent as MessageChannelEvent } from '@creatio/base';
125
- import { ɵMessageChannelType as MessageChannelType } from '@creatio/base';
126
- import { ɵMetadataProvider as MetadataProvider } from '@creatio/base';
127
- import { ɵModelDefaultValue as ModelDefaultValue } from '@creatio/base';
128
- import { ɵModelInitConfig as ModelInitConfig } from '@creatio/base';
129
- import { ɵModelInPageAction as ModelInPageAction } from '@creatio/base';
130
- import { ɵModelParameterType as ModelParameterType } from '@creatio/base';
131
- import { ɵNextHandlerAlreadySpecifiedException as NextHandlerAlreadySpecifiedException } from '@creatio/base';
132
- import { ɵOrderDirection as OrderDirection } from '@creatio/base';
133
- import { ɵParameterExpression as ParameterExpression } from '@creatio/base';
134
- import { ɵParameterExpressionConfig as ParameterExpressionConfig } from '@creatio/base';
135
- import { ɵParameterQueryColumn as ParameterQueryColumn } from '@creatio/base';
136
- import { ɵPlatformAPIOptions as PlatformAPIOptions } from '@creatio/base';
137
- import { ɵPlatformAPIs as PlatformAPIs } from '@creatio/base';
138
- import { ɵPrimaryDisplayFilterDataSourceParameter as PrimaryDisplayFilterDataSourceParameter } from '@creatio/base';
139
- import { ɵQueryMacrosType as QueryMacrosType } from '@creatio/base';
140
- import { ɵQueryOperationType as QueryOperationType } from '@creatio/base';
141
- import { ɵRequestHandler as RequestHandler } from '@creatio/base';
142
- import { ɵRequestRegistrationConfig as RequestRegistrationConfig } from '@creatio/base';
143
- import { ɵResolveDependencyFn as ResolveDependencyFn } from '@creatio/base';
144
- import { ɵSchemaViewMaskRequest as SchemaViewMaskRequest } from '@creatio/base';
145
- import { ɵSchemaViewMaskRequestAction as SchemaViewMaskRequestAction } from '@creatio/base';
146
- import { ɵSegmentFilter as SegmentFilter } from '@creatio/base';
147
- import { ɵSegmentFilterComparisonType as SegmentFilterComparisonType } from '@creatio/base';
148
- import { ɵSegmentFilterDto as SegmentFilterDto } from '@creatio/base';
149
- import { ɵSegmentFilterOptions as SegmentFilterOptions } from '@creatio/base';
150
- import { ɵSegmentFilterOptionsDto as SegmentFilterOptionsDto } from '@creatio/base';
151
- import { ɵSelectLocalizationQuery as SelectLocalizationQuery } from '@creatio/base';
152
- import { ɵSingleFilter as SingleFilter } from '@creatio/base';
153
- import { ɵSortColumnOptions as SortColumnOptions } from '@creatio/base';
154
- import { ɵSortDirection as SortDirection } from '@creatio/base';
155
- import { ɵSubQueryColumn as SubQueryColumn } from '@creatio/base';
156
- import { ɵSubQueryExpression as SubQueryExpression } from '@creatio/base';
157
- import { ɵSubQueryExpressionConfig as SubQueryExpressionConfig } from '@creatio/base';
158
- import { ɵSubscription as Subscription } from '@creatio/base';
159
- import { ɵTeardownLogic as TeardownLogic } from '@creatio/base';
160
- import { ɵtoLocalISOString as toLocalISOString } from '@creatio/base';
161
- import { ɵType as Type } from '@creatio/base';
162
- import { ɵUpdateQuery as UpdateQuery } from '@creatio/base';
163
- import { ɵValidationUtilities as ValidationUtilities } from '@creatio/base';
164
- import { ɵViewModelContext as ViewModelContext } from '@creatio/base';
165
- import { ɵWindowFunctionColumn as WindowFunctionColumn } from '@creatio/base';
166
- import { ɵWindowFunctionExpression as WindowFunctionExpression } from '@creatio/base';
167
- import { ɵWindowFunctionExpressionConfig as WindowFunctionExpressionConfig } from '@creatio/base';
168
- import { ɵCompatibleAPIs } from '@creatio/base';
169
- import { ɵDataSourceLoadOptions } from '@creatio/base';
170
- import { ɵItemCreationConfig } from '@creatio/base';
171
- import { ɵViewModelCollection } from '@creatio/base';
172
-
173
- export { AbstractType }
174
-
175
- /* Excluded from this release type: AddRequestHandlerListener */
176
- export { AggregationEval }
177
-
178
- export { AggregationEvalType }
179
-
180
- export { AggregationFunction }
181
-
182
- export { AggregationFunctionColumn }
183
-
184
- export { AggregationFunctionExpression }
185
-
186
- export { AggregationFunctionExpressionConfig }
187
-
188
- export { AggregationSubQueryColumn }
189
-
190
- export { AggregationSubQueryExpression }
191
-
192
- export { AggregationSubQueryExpressionConfig }
193
-
194
- export { AggregationType }
195
-
196
- /**
197
- * Service for managing AI context parts and providing a unified context.
198
- * This service allows adding, retrieving, and removing context parts, which can be
199
- * either static values, promises, or dynamically provided through a function.
200
- */
201
- export declare class AiContextService {
202
- private _contextParts;
203
- /**
204
- * Retrieves the singleton instance of the `AiContextService`.
205
- * If the instance does not exist, it will be created.
206
- */
207
- static get instance(): AiContextService;
208
- /**
209
- * Generates a unique identifier for a context part.
210
- * @returns A string representing a unique identifier.
211
- */
212
- private _generateId;
213
- /**
214
- * @public
215
- * Adds a new context part to the service.
216
- * The context part can be a static value, a promise, or a function that provides the value.
217
- *
218
- * @param value - The context part to add. It can be one of the following:
219
- * - `ContextProvider` (a function that provides the context part)
220
- * @param id - (Optional) A unique identifier for the context part. If not provided, a new ID will be generated.
221
- * @returns The unique identifier of the added context part.
222
- */
223
- setContextPart(value: ContextProvider, id?: string): string;
224
- /**
225
- * @public
226
- * Retrieves all context parts as an array of resolved values.
227
- * If the context parts include promises or functions, they will be resolved.
228
- *
229
- * @returns A promise that resolves to an array of context parts, which can be
230
- * either `CreatioPageContextPart` or `ConstantValuesContextPart`.
231
- */
232
- getContext(): Promise<(CreatioPageContextPart | ConstantValuesContextPart)[]>;
233
- /**
234
- * @public
235
- * Removes a specific context part by its unique identifier.
236
- *
237
- * @param id - The unique identifier of the context part to remove.
238
- */
239
- removeContextPart(id: string): void;
240
- /**
241
- * @public
242
- * Removes all context parts from the service.
243
- */
244
- removeContext(): void;
245
- }
246
-
247
- /* Excluded from this release type: AngularViewElementRegistrationConfig */
248
-
249
- /* Excluded from this release type: applyLocalizeMetadataFn */
250
- export { ArgumentEmptyException }
251
-
252
- export { ArgumentFunctionExpression }
253
-
254
- export { ArgumentFunctionExpressionConfig }
255
-
256
- export { ArgumentOutOfRangeException }
257
-
258
- export { ArithmeticExpression }
259
-
260
- export { ArithmeticExpressionConfig }
261
-
262
- export { ArithmeticOperation }
263
-
264
- export { ArithmeticQueryColumn }
265
-
266
- /* Excluded from this release type: AttributePropertyConfig */
267
-
268
- /* Excluded from this release type: AttributeValueConfig */
269
-
270
- /**
271
- * @public
272
- * Base shape shared by all AI context parts.
273
- */
274
- export declare interface BaseContextPart {
275
- /** Discriminator identifying the concrete context part type. */
276
- type?: string;
277
- /**
278
- * The unique identifier of the context part as registered in `AiContextService`.
279
- * Populated by `AiContextService.getContext()` for each resolved part.
280
- */
281
- contextId: string;
282
- }
283
-
284
- /**
285
- * @description Common hierarchy options shared between client-side and server-side hierarchy modes.
286
- * @property {'ClientSide' | 'ServerSide'} type Type of hierarchy handling.
287
- * @property {string} hierarchicalColumnName Name of the column that defines the hierarchy.
288
- * @property {string} hierarchicalColumnValue Value of the hierarchical column to start loading from.
289
- */
290
- declare interface BaseDataSourceHierarchyConfig {
291
- /**
292
- * @description Type of hierarchy handling.
293
- */
294
- type?: 'ClientSide' | 'ServerSide';
295
- /**
296
- * @description Name of the column that defines the hierarchy.
297
- */
298
- hierarchicalColumnName: string;
299
- /**
300
- * @description Value of the hierarchical column to start loading from.
301
- */
302
- hierarchicalColumnValue?: string;
303
- }
304
-
305
- export { BaseDataSourceParameter }
306
-
307
- export { BaseDialogButtonConfig }
308
-
309
- export { BaseDialogConfig }
310
-
311
- export { BaseDialogService }
312
-
313
- export { BaseExpression }
314
-
315
- export { BaseExpressionParser }
316
-
317
- export { BaseFilter }
318
-
319
- export { BaseFilterableQuery }
320
-
321
- export { BaseFilterParser }
322
-
323
- declare abstract class BaseHandlerChainService {
324
- /* Excluded from this release type: requestType */
325
- }
326
-
327
- /* Excluded from this release type: BaseInterfaceDesignerItemRegistrationConfig */
328
-
329
- /* Excluded from this release type: BaseInterfaceDesignerItemRegistry */
330
-
331
- /* Excluded from this release type: BaseItemRendererConfig */
332
-
333
- /* Excluded from this release type: BaseItemRendererRegistry */
334
- export { BaseMessageChannelService }
335
-
336
- export { BaseModel }
337
-
338
- export { BaseQuery }
339
-
340
- export { BaseQueryColumn }
341
-
342
- export { BaseRequest }
343
-
344
- /**
345
- * @public
346
- * @description Request payload
347
- * @property {string} request - request name.
348
- * @property {unknown} params - request parameters.
349
- */
350
- export declare interface BaseRequestConfig {
351
- /**
352
- * @description request name.
353
- */
354
- request: string;
355
- /**
356
- * @description request parameters.
357
- */
358
- params?: unknown;
359
- }
360
-
361
- /* Excluded from this release type: BaseRequestCtor */
362
-
363
- /**
364
- * @public
365
- * @abstract
366
- * @classdesc Class for designing request handlers.
367
- */
368
- export declare abstract class BaseRequestHandler<TRequest = BaseRequest, TResult = unknown> implements RequestHandler<TRequest, TResult> {
369
- /* Excluded from this release type: _instanceOfKey */
370
- private _next?;
371
- protected handlerChain: HandlerChainService;
372
- protected get next(): RequestHandler | undefined;
373
- /* Excluded from this release type: [Symbol.hasInstance] */
374
- /**
375
- * @abstract
376
- * @description Abstract async method which contains logic to handle request properly.
377
- * @param {TRequest} request - {@link ɵBaseRequest}
378
- */
379
- abstract handle(request: TRequest): Promise<TResult>;
380
- /**
381
- * @description Method to set request handler to handler chain.
382
- * @param next - link for next request handler - {@link ɵRequestHandler}
383
- */
384
- setNext(next: RequestHandler): void;
385
- }
386
-
387
- /* Excluded from this release type: BaseRequestsResolver */
388
-
389
- /**
390
- * @public
391
- * @description Shape of response
392
- * @property {boolean} success - Indicates whether operation was success.
393
- * @property {ErrorInfo} errorInfo - detailed error description. {@link ErrorInfo}
394
- */
395
- export declare interface BaseResponse {
396
- /**
397
- * @description Indicates whether operation was success.
398
- */
399
- success: boolean;
400
- /**
401
- * @description detailed error description. {@link ErrorInfo}
402
- */
403
- errorInfo?: ErrorInfo;
404
- }
405
-
406
- /* Excluded from this release type: BaseToolbarViewElementConfig */
407
-
408
- /**
409
- * @public
410
- * @description Abstract Base Validator class for designing custom validators.
411
- * @example
412
- * @CrtValidator({
413
- * type: 'crt.Required',
414
- * })
415
- * export class RequiredValidator extends BaseValidator {
416
- * protected override async = false;
417
- * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {
418
- * Implementation here...
419
- * }
420
- * }
421
- */
422
- export declare abstract class BaseValidator {
423
- /* Excluded from this release type: _instanceOfKey */
424
- /**
425
- * @abstract
426
- * @description indicator to recognize whether validator asynchronous or synchronous
427
- */
428
- protected abstract async: boolean;
429
- /**
430
- * @description getter for async/sync indicator
431
- */
432
- get isAsync(): boolean;
433
- /**
434
- * @description Function used for validation
435
- */
436
- get validateFn(): CrtValidatorFn;
437
- /* Excluded from this release type: [Symbol.hasInstance] */
438
- /**
439
- * @description Method which contains main logic relates validation.
440
- * @param controlState - {@link CrtControlState}
441
- * @param params - incoming parameters for validation {@link ValidatorParametersValues}
442
- */
443
- abstract validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null | Promise<CrtValidationErrors | null>;
444
- }
445
-
446
- /**
447
- * @public
448
- * @description Registration config for defining user components in Creatio platform.
449
- * @property {string} type - type of view element. Used to specify view element in schema.
450
- * @property {Record<string, CrtInputRegistrationConfig>=} inputs {@link CrtInputRegistrationConfig} - map
451
- * of component inputs. Communication chanel to send update from Creatio platform to component
452
- * @property {Record<string, unknown>=} outputs - map of component outputs.
453
- * Communication chanel to send update from component to Creatio platform.
454
- * @property {Record<string, unknown>=} validationInputs - map of component validationInputs.
455
- * Communication chanel to receive updates relates to validation.
456
- * To properly declare validationInfo field:
457
- * 1. Declare input field inside inputs section. For example `count`
458
- * 2. In validationInputs section declare same field which ends with ValidationInfo.
459
- * For previous example `countValidationInfo`
460
- *
461
- * @example
462
- * const config: BaseViewElementRegistrationConfig = {
463
- * type: 'usr.Component',
464
- * inputs: {
465
- * entitySchemaName: {},
466
- * user: {},
467
- * count: {}
468
- * },
469
- * outputs: {
470
- * countChange: {}
471
- * },
472
- * validationInputs: {
473
- * countValidationInfo: {}
474
- * }
475
- * }
476
- */
477
- export declare type BaseViewElementRegistrationConfig = {
478
- /**
479
- * @description type of view element. Used to specify view element in schema.
480
- */
481
- type: string;
482
- /**
483
- * @description Defines the content slots for the view element.
484
- * The property allows you to project content from a parent component to a child component.
485
- */
486
- contentSlots?: Array<string | ViewElementSlotDefinition>;
487
- /**
488
- * @description {@link CrtInputRegistrationConfig} map
489
- * of component inputs. Communication chanel to send update from Creatio platform to component
490
- */
491
- inputs?: Record<string, CrtInputRegistrationConfig>;
492
- /**
493
- * @description map of component outputs.
494
- * Communication chanel to send update from component to Creatio platform.
495
- */
496
- outputs?: Record<string, unknown>;
497
- /**
498
- * @description map of component validationInputs.
499
- * Communication chanel to receive updates relates to validation.
500
- * To properly declare validationInfo field:
501
- * 1. Declare input field inside inputs section. For example `count`
502
- * 2. In validationInputs section declare same field which ends with ValidationInfo.
503
- * For previous example `countValidationInfo`
504
- */
505
- validationInputs?: Record<string, unknown>;
506
- /* Excluded from this release type: reuseStrategy */
507
- /* Excluded from this release type: compatibleAPIs */
508
- } & (OnViewportRenderConfig | DefaultRenderConfig);
509
-
510
- /* Excluded from this release type: BaseViewElementRegistry */
511
- export { BetweenFilter }
512
-
513
- /* Excluded declaration from this release type: bootstrapCrtModule */
514
-
515
- /**
516
- * @public
517
- * @description Function required to bootstrapping elements defined in CrtModules.
518
- * Call this function as soon as possible during bootstrapping your application.
519
- * @param type - module type
520
- * @param options - {@link BootstrapOptions}
521
- *
522
- * @example
523
- * bootstrapCrtModule(AppModule)
524
- */
525
- export declare function bootstrapCrtModule(remoteName: string, type: Type, options?: BootstrapOptions): void;
526
-
527
- /**
528
- * @public
529
- * @deprecated
530
- */
531
- export declare function bootstrapCrtModule(type: Type, options?: BootstrapOptions): void;
532
-
533
- /* Excluded from this release type: bootstrapCrtModuleHandlerChainServices */
534
-
535
- /* Excluded from this release type: BootstrapNotifier */
536
-
537
- /**
538
- * @public
539
- * @description Module bootstrap options
540
- */
541
- export declare interface BootstrapOptions {
542
- /**
543
- * Function to be used to translate localizable values of class metadata
544
- */
545
- localizeMetadata?: LocalizeFn;
546
- /**
547
- * Function to be used to resolve class dependencies
548
- */
549
- resolveDependency?: ResolveDependencyFn;
550
- /* Excluded from this release type: moduleType */
551
- /* Excluded from this release type: featureValues */
552
- /* Excluded from this release type: onContextCreate */
553
- /* Excluded from this release type: onContextUpdate */
554
- /* Excluded from this release type: onContextDestroy */
555
- }
556
-
557
- /* Excluded from this release type: BootstrappedCrtModules */
558
-
559
- /* Excluded from this release type: bootstrappedCrtModules */
560
- export { ButtonColor }
561
-
562
- /* Excluded from this release type: callOnContextCreateHooks */
563
-
564
- /* Excluded from this release type: callOnContextDestroyHooks */
565
-
566
- /* Excluded from this release type: callOnContextUpdateHooks */
567
-
568
- /**
569
- * TODO: RND-55882
570
- */
571
- export declare interface ChangeAttributeValueEventPayload extends ViewModelAttributeChangeEventOptionsType {
572
- attributeName: string;
573
- value: any;
574
- oldValue: any;
575
- /**
576
- * @deprecated
577
- */
578
- silent?: boolean;
579
- }
580
-
581
- /**
582
- * @public
583
- * @description Config used to register component as a message type in chat.
584
- */
585
- export declare interface ChatMessageTypeRegistrationConfig {
586
- /**
587
- * @description component tag selector; Element appears in DOM with this selector.
588
- */
589
- selector: string;
590
- /**
591
- * @description type of message.
592
- */
593
- messageType: string;
594
- }
595
-
596
- /* Excluded from this release type: ChatMessageTypeRegistry */
597
-
598
- /* Excluded from this release type: checkCrtTypeNamePascalCase */
599
-
600
- /* Excluded from this release type: checkIfTypeRegistered */
601
-
602
- /* Excluded from this release type: checkOnlyOneRegistration */
603
-
604
- /* Excluded from this release type: checkTypeNameFormat */
605
-
606
- /* Excluded from this release type: checkTypeNamePascalCase */
607
-
608
- /**
609
- * @public
610
- * @description Configuration for client-side hierarchy processing.
611
- * @property {'ClientSide'} type Type of hierarchy handling.
612
- * @property {string} hierarchicalColumnName Name of the column that defines the hierarchy.
613
- * @property {string} hierarchicalColumnValue Value of the hierarchical column to start loading from.
614
- * @property {string} hierarchicalChildrenCountColumnName Name of the column with children count for a node.
615
- * @property {HierarchyState} hierarchicalState State of hierarchical rows (expanded/collapsed).
616
- */
617
- export declare interface ClientSideDataSourceHierarchyConfig extends BaseDataSourceHierarchyConfig {
618
- /**
619
- * @description Type of hierarchy handling.
620
- */
621
- type: 'ClientSide';
622
- /**
623
- * @description Name of the column with children count for a node.
624
- */
625
- hierarchicalChildrenCountColumnName?: string;
626
- /**
627
- * @description State of hierarchical rows (expanded/collapsed).
628
- */
629
- hierarchicalState?: HierarchyState;
630
- }
631
-
632
- export { ColumnExpression }
633
-
634
- export { ColumnExpressionConfig }
635
-
636
- export { CompareFilter }
637
-
638
- export { ComparisonType }
639
-
640
- export { ConditionalValueItem }
641
-
642
- /**
643
- * @public
644
- * @description Represents a consent record.
645
- * @property {Guid} id - Unique identifier of the consent record.
646
- * @property {string} name - Name of the consent.
647
- * @property {string} code - Code of the consent.
648
- * @property {string} consentText - Text of the consent.
649
- */
650
- export declare interface Consent {
651
- /**
652
- * @description Unique identifier of the consent record.
653
- */
654
- id: Guid;
655
- /**
656
- * @description Name of the consent.
657
- */
658
- name: string;
659
- /**
660
- * @description Code of the consent.
661
- */
662
- code: string;
663
- /**
664
- * @description Text of the consent.
665
- */
666
- consentText: string;
667
- }
668
-
669
- /**
670
- * @public
671
- * Context part holding a set of constant key/value pairs.
672
- */
673
- export declare interface ConstantValuesContextPart extends BaseContextPart {
674
- /** Discriminator identifying the context part as a `ConstantValuesContextPart`. */
675
- type: 'ConstantValuesContextPart';
676
- /** Optional human-readable title of the context part. */
677
- title?: string;
678
- /** The constant values exposed by this context part. */
679
- values: Record<string, unknown>;
680
- }
681
-
682
- /**
683
- * @public
684
- * A `ConstantValuesContextPart` returned from a `ContextProvider`, before the AI context service
685
- * attaches the registered `contextId`.
686
- */
687
- export declare type ConstantValuesContextPartInput = Omit<ConstantValuesContextPart, 'contextId'>;
688
-
689
- /* Excluded from this release type: ContexedHandlerScopeConfig */
690
-
691
- /**
692
- * @public
693
- * A single record exposed by a {@link ContextDataSourcePart}.
694
- */
695
- export declare interface ContextDataRecord {
696
- /** The unique identifier of the record. */
697
- id: string;
698
- /** The display value of the record. */
699
- displayColumnValue: string;
700
- }
701
-
702
- /**
703
- * @public
704
- * A data source exposed by a page context part, grouping records of a single entity schema.
705
- */
706
- export declare interface ContextDataSourcePart {
707
- /** The name of the entity schema the records belong to. */
708
- entitySchemaName: string;
709
- /** The name of the column used as the display value for each record. */
710
- displayColumnName: string;
711
- /** Whether the data source represents a collection of records rather than a single record. */
712
- isCollection: boolean;
713
- /** Whether this is the primary data source of the page. */
714
- isPrimary: boolean;
715
- /** The records exposed by this data source. */
716
- records: Array<ContextDataRecord>;
717
- }
718
-
719
- /**
720
- * @public
721
- * The action to perform on a context part.
722
- */
723
- export declare type ContextPartAction = 'set' | 'update' | 'remove';
724
-
725
- /**
726
- * @public
727
- * @classdesc Request handler for managing context parts in the AI context service.
728
- * This handler processes requests to add, remove, or retrieve context parts.
729
- */
730
- export declare class ContextPartRequest extends BaseRequest {
731
- /** The unique identifier of the context part. */
732
- id: string;
733
- /** The provider that resolves the context part. */
734
- contextPartProvider: ContextProvider;
735
- /** The action to perform on the context part. */
736
- action: ContextPartAction;
737
- }
738
-
739
- /**
740
- * @public
741
- * A factory that produces a context part to register in `AiContextService`, synchronously or asynchronously.
742
- */
743
- export declare type ContextProvider = () => CreatioPageContextPartInput | Promise<CreatioPageContextPartInput> | ConstantValuesContextPartInput | Promise<ConstantValuesContextPartInput>;
744
-
745
- /**
746
- * @public
747
- * @description Shape to implementing Converter.
748
- * @template V
749
- * @template R
750
- */
751
- export declare interface Converter<V = unknown, R = unknown> {
752
- /**
753
- * @description Function which convert incoming value.
754
- * @param {V} value - input value.
755
- * @param {ViewModelContext} context - view model context.
756
- * @param {...unknown[]} arg - arguments rest.
757
- * @return {*} {R}
758
- */
759
- convert(value: V, context: ViewModelContext, ...args: unknown[]): R;
760
- }
761
-
762
- /**
763
- * @public
764
- * @description Config used to register converter in Creatio platform.
765
- * @property {string} type - type of validator
766
- */
767
- export declare interface ConverterConfig {
768
- /**
769
- * @description type used to register converter in Creatio platform.
770
- */
771
- type: string;
772
- }
773
-
774
- /* Excluded from this release type: ConverterMetadata */
775
-
776
- /* Excluded from this release type: ConverterRegistry */
777
-
778
- /* Excluded from this release type: ConverterRegistryItem */
779
-
780
- /**
781
- * @public
782
- * Context part describing a Creatio page together with the data sources available on it.
783
- */
784
- export declare interface CreatioPageContextPart extends BaseContextPart {
785
- /** Discriminator identifying the context part as a `CreatioPageContextPart`. */
786
- type?: 'CreatioPageContextPart';
787
- /** The human-readable title of the page. */
788
- title: string;
789
- /** The schema name of the page. */
790
- pageSchemaName: string;
791
- /** The data sources available on the page. */
792
- dataSources: Array<ContextDataSourcePart>;
793
- }
794
-
795
- /**
796
- * @public
797
- * A `CreatioPageContextPart` returned from a `ContextProvider`, before the AI context service
798
- * attaches the registered `contextId`.
799
- */
800
- export declare type CreatioPageContextPartInput = Omit<CreatioPageContextPart, 'contextId'>;
801
-
802
- /* Excluded from this release type: CrtAngularViewElementConfig */
803
-
804
- /**
805
- * @public
806
- * @description CrtChatMessageType decorator allows user to register components as a message type in chat.
807
- * @param config - registration config. {@link ChatMessageTypeRegistrationConfig}.
808
- *
809
- * @example
810
- * @CrtChatMessageType({
811
- * selector: 'usr-video-message',
812
- * messageType: 'video',
813
- * })
814
- * export class AppComponent { }
815
- */
816
- export declare function CrtChatMessageType(config: ChatMessageTypeRegistrationConfig): (type: Type) => void;
817
-
818
- /**
819
- * @public
820
- * @description Control state passed for validators
821
- * @property {unknown} value - control value
822
- */
823
- export declare interface CrtControlState {
824
- /**
825
- * @description control value
826
- */
827
- value: unknown;
828
- }
829
-
830
- /**
831
- * @public
832
- * @description Decorator to declare converter
833
- * @param config - converter config {@link ConverterConfig}.
834
- * if config is not passed, converter won't be declared,
835
- * but still can be used as base class for another converter
836
- *
837
- * @example
838
- * @CrtConverter({
839
- * type: 'usr.ToBoolean',
840
- * })
841
- * export class ToBooleanConverter implements Converter<unknown, boolean> {
842
- * public convert(value: unknown): boolean {
843
- * return Boolean(value);
844
- * }
845
- * }
846
- */
847
- export declare function CrtConverter(config: ConverterConfig): (type: Type) => void;
848
-
849
- export declare function CrtConverter(): (type: Type | AbstractType) => void;
850
-
851
- /* Excluded from this release type: CrtDesignTimeViewElement */
852
-
853
- /**
854
- * @public
855
- * @description
856
- * Constructor parameter decorator.
857
- * Mark parameter as dependency that should be obtained by token.
858
- * @param token - token by which the dependency instance will be obtained
859
- * @example
860
- * class MyHandler {
861
- * constructor(@CrtInject(USER_NAME_TOKEN) userName: string) {}
862
- * }
863
- */
864
- export declare function CrtInject(token: unknown): any;
865
-
866
- /* Excluded from this release type: crtInjectPrefix */
867
-
868
- /**
869
- * @public
870
- * @description Creatio platform interacts with input's of user-defined component through CrtInput decorator.
871
- * @param config {@link CrtInputRegistrationConfig}
872
- *
873
- * @example
874
- * export class AppComponent {
875
- * @CrtInput()
876
- * public value!: string;
877
- * }
878
- */
879
- export declare function CrtInput(config?: CrtInputRegistrationConfig): (target: any, propertyKey: string) => void;
880
-
881
- /* Excluded from this release type: crtInputPrefix */
882
-
883
- /**
884
- * @public
885
- */
886
- export declare class CrtInputRegistrationConfig {
887
- /* Excluded from this release type: propertyBindable */
888
- /* Excluded from this release type: defaultValue */
889
- /* Excluded from this release type: propertyName */
890
- /* Excluded from this release type: reuseStrategy */
891
- }
892
-
893
- /**
894
- * @public
895
- * @description (Deprecated) Decorator to declare design time configuration for a view element that is
896
- * registered eagerly during module bootstrap.
897
- *
898
- * @deprecated For new remote integrations, publish interface-designer metadata through
899
- * {@link RemoteFeatureDefinition.loadDesignerDefinitions} instead of using this decorator.
900
- * Existing remotes may keep using this decorator for backward compatibility, but should migrate
901
- * to {@link RemoteEntryDefinition} and {@link RemoteFeatureDefinition} when updated.
902
- *
903
- * @param config - registration config {@link InterfaceDesignerItemDefinition}.
904
- *
905
- * @example
906
- * @CrtViewElement({
907
- * type: "usr.Example',
908
- * selector: 'usr-example',
909
- * })
910
- * @CrtInterfaceDesignerItem({
911
- * toolbarConfig: {
912
- * caption: 'usrExampleCaption',
913
- * icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
914
- * hint: 'usrExampleHint',
915
- * defaultPropertyValues: {
916
- * value: 'This is default value',
917
- * },
918
- * },
919
- * })
920
- * @Component({
921
- * selector: 'usr-example',
922
- * templateUrl: './app.component.html',
923
- * styleUrls: ['./app.component.scss'],
924
- * encapsulation: ViewEncapsulation.ShadowDom,
925
- * })
926
- * export class AppComponent {
927
- * @Input()
928
- * @CrtInput()
929
- * public value!: string;
930
- * }
931
- */
932
- export declare function CrtInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: Type) => void;
933
-
934
- /**
935
- * @public
936
- * @description (Deprecated) Decorator to declare design time configuration for a mobile view element that is
937
- * registered eagerly during module bootstrap.
938
- *
939
- * @deprecated For new remote integrations, publish interface-designer metadata through
940
- * {@link RemoteFeatureDefinition.loadDesignerDefinitions} instead of using this decorator.
941
- * Existing remotes may keep using this decorator for backward compatibility, but should migrate
942
- * to {@link RemoteEntryDefinition} and {@link RemoteFeatureDefinition} when updated.
943
- *
944
- * @param config - registration config {@link InterfaceDesignerItemDefinition}.
945
- *
946
- * @example
947
- * @CrtMobileViewElement({
948
- * type: "usr.Example',
949
- * selector: 'usr-example',
950
- * })
951
- * @CrtMobileInterfaceDesignerItem({
952
- * toolbarConfig: {
953
- * caption: 'usrExampleCaption',
954
- * icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
955
- * hint: 'usrExampleHint',
956
- * defaultPropertyValues: {
957
- * value: 'This is default value',
958
- * },
959
- * },
960
- * })
961
- * @Component({
962
- * selector: 'usr-example',
963
- * templateUrl: './app.component.html',
964
- * styleUrls: ['./app.component.scss'],
965
- * encapsulation: ViewEncapsulation.ShadowDom,
966
- * })
967
- * export class AppComponent {
968
- * @Input()
969
- * @CrtInput()
970
- * public value!: string;
971
- * }
972
- */
973
- export declare function CrtMobileInterfaceDesignerItem(config: InterfaceDesignerItemDefinition): (type: Type) => void;
974
-
975
- /**
976
- * @public
977
- * @description CrtMobileViewElement decorator allows user to declare mobile components in a Creatio platform.
978
- * Make sure the component is specified in the viewElements section of CrtModule.
979
- * @param config - registration config. {@link ViewElementRegistrationConfig}.
980
- *
981
- * @example
982
- * @CrtMobileViewElement({
983
- * type: 'usr.Example',
984
- * selector: 'usr-example',
985
- * })
986
- * export class AppComponent {
987
- * @Input()
988
- * @CrtInput()
989
- * public value!: string;
990
- * }
991
- */
992
- export declare function CrtMobileViewElement(config: ViewElementRegistrationConfig): (type: Type) => void;
993
-
994
- /* Excluded declaration from this release type: CrtMobileViewElement */
995
-
996
- /**
997
- * @public
998
- * @description CrtModule decorator is a 'container' where user actually setup elements.
999
- * In could contain viewElements, definitions of other CrtModules.
1000
- * @param moduleDefinition - {@link ModuleDefinition}
1001
- *
1002
- * @example
1003
- * @CrtModule({
1004
- * viewElements: [AppComponent],
1005
- * requestHandlers: [SomeRequestHandler],
1006
- * validators: [SomeValidator],
1007
- * })
1008
- * @NgModule({
1009
- * declarations: [AppComponent],
1010
- * imports: [BrowserModule],
1011
- * providers: [],
1012
- * })
1013
- * export class AppModule {}
1014
- */
1015
- export declare function CrtModule(moduleDefinition: ModuleDefinition): (type: Type) => void;
1016
-
1017
- /* Excluded declaration from this release type: CrtModule */
1018
-
1019
- /* Excluded declaration from this release type: CrtModule */
1020
-
1021
- /**
1022
- * @public
1023
- * @description User-defined components could notify Creatio platform about changes through CrtOutput decorator.
1024
- * @example
1025
- * export class AppComponent {
1026
- * @Input()
1027
- * @CrtOutput()
1028
- * public valueChange;
1029
- * }
1030
- */
1031
- export declare function CrtOutput(): (target: any, propertyKey: string) => void;
1032
-
1033
- /* Excluded from this release type: crtOutputPrefix */
1034
-
1035
- /* Excluded from this release type: CrtRequest */
1036
-
1037
- /**
1038
- * @public
1039
- * @description Decorator to declare request handler
1040
- * @param config - request handler config {@link RequestHandlerRegistrationConfig}.
1041
- * If no config is passed, the handler cannot be declared, but can be used as a base class for another handler.
1042
- *
1043
- * @example
1044
- * *@CrtRequestHandler({
1045
- * requestType: 'crt.SomeRequest',
1046
- * type: 'crt.SomeRequestHandler',
1047
- * })
1048
- * export class SectionInitHandler extends BaseRequestHandler<SomeRequest> {
1049
- * public async handle(request: SomeRequest): Promise<unknown> {
1050
- * // Some business logic
1051
- * return this.next?.handle(request);
1052
- * }
1053
- * }
1054
- */
1055
- export declare function CrtRequestHandler<T extends RequestHandler>(config: RequestHandlerDefinition): (type: Type<T>) => void;
1056
-
1057
- export declare function CrtRequestHandler(): (type: Type | AbstractType) => void;
1058
-
1059
- /**
1060
- * @public
1061
- * @description Validation error with message
1062
- * @property {string} message - error message.
1063
- */
1064
- export declare interface CrtValidationError {
1065
- /**
1066
- * @description error message.
1067
- */
1068
- message: string;
1069
- }
1070
-
1071
- /**
1072
- * @public
1073
- * @description Generic shape of validation errors
1074
- */
1075
- export declare interface CrtValidationErrors {
1076
- [key: string]: CrtValidationError;
1077
- }
1078
-
1079
- /**
1080
- * @public
1081
- * @description Information relates validation.
1082
- * Includes fields to customize behavior depends on validation
1083
- * @property {boolean} valid - indicates whether input is valid.
1084
- * @property {CrtValidationErrors | null} errors - validation errors shape. {@link CrtValidationErrors}
1085
- * @property {boolean} dirty - indicates whether input was changed.
1086
- * @property {boolean} touched - indicates whether input was touched.
1087
- */
1088
- export declare interface CrtValidationInfo {
1089
- /**
1090
- * @description indicates whether input is valid.
1091
- */
1092
- readonly valid: boolean;
1093
- /**
1094
- * @description - validation errors shape. {@link CrtValidationErrors}
1095
- */
1096
- readonly errors: CrtValidationErrors | null;
1097
- /**
1098
- * @description indicates whether input was changed.
1099
- */
1100
- readonly dirty: boolean;
1101
- /**
1102
- * @description indicates whether input was touched.
1103
- */
1104
- readonly touched: boolean;
1105
- }
1106
-
1107
- /**
1108
- * @public
1109
- * @description User-defined components receive validationInfo changes through CrtValidationInput decorator.
1110
- * Make sure you have defined input for every validationInfo input.
1111
- * To properly declare validationInfo field:
1112
- * 1. Declare input field inside inputs section. For example `value`
1113
- * 2. In validationInputs section declare same field which ends with ValidationInfo.
1114
- * For previous example `valueValidationInfo`
1115
- *
1116
- * @example
1117
- * export class AppComponent {
1118
- * @CrtInput()
1119
- public value;
1120
- *
1121
- * @CrtValidationInput()
1122
- * public valueValidationInfo;
1123
- * }
1124
- */
1125
- export declare function CrtValidationInput(): (target: any, propertyKey: string) => void;
1126
-
1127
- /* Excluded from this release type: crtValidationInputPrefix */
1128
-
1129
- /**
1130
- * @public
1131
- * @description Decorator to declare validator
1132
- * @param config - validator config {@link ValidatorConfig}.
1133
- * If no config is passed, the validator cannot be declared, but can be used as a base class for another validator.
1134
- *
1135
- * @example
1136
- * @CrtValidator({
1137
- * type: 'crt.Required',
1138
- * })
1139
- * export class RequiredValidator extends BaseValidator {
1140
- * protected override async = false;
1141
- * public validate(controlState: CrtControlState, params?: ValidatorParametersValues): CrtValidationErrors | null {
1142
- * Implementation here...
1143
- * }
1144
- * }
1145
- */
1146
- export declare function CrtValidator(config: ValidatorConfig): (type: Type) => void;
1147
-
1148
- export declare function CrtValidator(): (type: Type | AbstractType) => void;
1149
-
1150
- /**
1151
- * @public
1152
- * @description Function used for validation
1153
- * @param controlState - {@link CrtControlState}
1154
- * @param params - incoming parameters for validation {@link ValidatorParametersValues}
1155
- */
1156
- export declare type CrtValidatorFn = (controlState: CrtControlState, params?: ValidatorParametersValues) => CrtValidationErrors | null | Promise<CrtValidationErrors | null>;
1157
-
1158
- /**
1159
- * @public
1160
- * @description CrtViewElement decorator allows user to declare components in a Creatio platform.
1161
- * Make sure the component is specified in the viewElements section of CrtModule.
1162
- * @param config - registration config. {@link ViewElementRegistrationConfig}.
1163
- *
1164
- * @example
1165
- * @CrtViewElement({
1166
- * type: 'usr.Example',
1167
- * selector: 'usr-example',
1168
- * })
1169
- * export class AppComponent {
1170
- * @Input()
1171
- * @CrtInput()
1172
- * public value!: string;
1173
- * }
1174
- */
1175
- export declare function CrtViewElement(config: ViewElementRegistrationConfig): (type: Type) => void;
1176
-
1177
- /* Excluded declaration from this release type: CrtViewElement */
1178
-
1179
- /**
1180
- * @public
1181
- * @classdesc Service to handling a way of tasks execution in Creatio plaform
1182
- * @extends {BaseHandlerChainService}
1183
- */
1184
- export declare class CrtZoneService extends BaseHandlerChainService {
1185
- /* Excluded from this release type: requestType */
1186
- /**
1187
- * @description Method designed to run task outside of Creatio zone
1188
- * @param {Function} callback - task which should be executed outside of tracking CrtZone
1189
- * @returns `unknown`
1190
- */
1191
- runOutside: (callback: () => unknown) => unknown;
1192
- }
1193
-
1194
- /**
1195
- * @public
1196
- * @class DataRequest
1197
- * @description Definition of data source request.
1198
- * @extends {ɵBaseRequest} {@link ɵBaseRequest}
1199
- * @property {string} dataSourceName - name of assigned data source.
1200
- */
1201
- export declare class DataRequest extends BaseRequest {
1202
- /**
1203
- * @description name of assigned data source.
1204
- */
1205
- readonly dataSourceName: string;
1206
- }
1207
-
1208
- export { DataSchema }
1209
-
1210
- export { DataSchemaAttribute }
1211
-
1212
- export { DataSchemaAttributeAggregationConfig }
1213
-
1214
- export { DataSchemaAttributeAggregationFunctionConfig }
1215
-
1216
- export { DataSchemaAttributeDatePartFunctionConfig }
1217
-
1218
- export { DataSchemaAttributeFunctionConfig }
1219
-
1220
- export { DataSchemaAttributeType }
1221
-
1222
- export { DataSchemaAttributeUsageType }
1223
-
1224
- export { DataSchemaAttributeValidatorConfig }
1225
-
1226
- export { DataSchemaAttributeValueMaskingSettings }
1227
-
1228
- export { DataSchemaType }
1229
-
1230
- export { DataSchemaValidatorConfig }
1231
-
1232
- export { DataSourceAggregationConfig }
1233
-
1234
- export { DataSourceAggregationFunctionConfig }
1235
-
1236
- export { DataSourceAttribute }
1237
-
1238
- export { DataSourceAttributeType }
1239
-
1240
- export { DataSourceCanExecuteOperationPayload }
1241
-
1242
- export { DataSourceCanExecuteOperationResult }
1243
-
1244
- export { DataSourceConfig }
1245
-
1246
- export { DataSourceDatePartFunctionConfig }
1247
-
1248
- export { DataSourceFunctionConfig }
1249
-
1250
- /**
1251
- * @public
1252
- * @description Union type describing all supported hierarchy configuration modes.
1253
- */
1254
- export declare type DataSourceHierarchyConfig = ClientSideDataSourceHierarchyConfig | ServerSideDataSourceHierarchyConfig;
1255
-
1256
- export { DataSourceInsertResult }
1257
-
1258
- export { DataSourceInstanceConfig }
1259
-
1260
- /**
1261
- * @public
1262
- * @description Represents a set of loading options.
1263
- * @property {string} pagingConfig - The paging options for loading.
1264
- * @property {string} sortingConfig - The sorting options.
1265
- * @property {DataSourceHierarchyConfig} hierarchyConfig - The hierarchy options.
1266
- */
1267
- export declare interface DataSourceLoadOptions extends ɵDataSourceLoadOptions {
1268
- /**
1269
- * @description Hierarchy options.
1270
- */
1271
- hierarchyConfig?: DataSourceHierarchyConfig;
1272
- /* Excluded from this release type: loadType */
1273
- /* Excluded from this release type: throttled */
1274
- /* Excluded from this release type: isDistinct */
1275
- }
1276
-
1277
- /* Excluded from this release type: DataSourceLoadParameters */
1278
-
1279
- /* Excluded from this release type: DataSourceLoadType */
1280
- export { DataSourcePagingConfig }
1281
-
1282
- export { DataSourceParameter }
1283
-
1284
- export { DataSourceParameterRelationConfig }
1285
-
1286
- export { DataSourceParameters }
1287
-
1288
- export { DataSourceSaveResult }
1289
-
1290
- export { DataSourceScope }
1291
-
1292
- export { DataSourceSortingConfig }
1293
-
1294
- export { DataValueType }
1295
-
1296
- export { DatePart }
1297
-
1298
- export { DatePartFunctionColumn }
1299
-
1300
- export { DatePartFunctionExpression }
1301
-
1302
- export { DatePartFunctionExpressionConfig }
1303
-
1304
- export { DatePartType }
1305
-
1306
- /**
1307
- * @public
1308
- * @description Render config for an element with Default render strategy.
1309
- */
1310
- export declare interface DefaultRenderConfig {
1311
- /**
1312
- * @description Determines that the element should render immediately.
1313
- */
1314
- renderStrategy?: ViewElementRenderStrategy.Default;
1315
- }
1316
-
1317
- /* Excluded from this release type: DefaultSizeForGrid */
1318
- export { DefaultValueSchema }
1319
-
1320
- export { DefaultValueSource }
1321
-
1322
- /* Excluded from this release type: defineRenderConfig */
1323
- export { DeleteQuery }
1324
-
1325
- /* Excluded from this release type: DesignerToolGroupType */
1326
-
1327
- /* Excluded from this release type: DesignTimeViewElementRegistry */
1328
-
1329
- /* Excluded from this release type: DesignTimeViewElementRegistryItem */
1330
-
1331
- /* Excluded from this release type: designTimeViewElementRegistryKey */
1332
-
1333
- /**
1334
- * @public
1335
- * @classdesc Service to working with dialog using handler chain.
1336
- * @extends {BaseHandlerChainService}
1337
- */
1338
- export declare class DialogService extends BaseHandlerChainService implements BaseDialogService {
1339
- /* Excluded from this release type: requestType */
1340
- /**
1341
- * @description Opens dialog window.
1342
- * @param {BaseDialogConfig<BaseDialogButtonConfig>} config - The configuration of dialog window.
1343
- * @returns `Promise<string>`.
1344
- * The result of a user's choice.
1345
- */
1346
- open: (config: BaseDialogConfig<BaseDialogButtonConfig>) => Promise<string>;
1347
- }
1348
-
1349
- export { EMPTY_GUID }
1350
-
1351
- export { encodeDate }
1352
-
1353
- /**
1354
- * @public
1355
- * @description A Creatio entity record represented as a map of column names to their values.
1356
- */
1357
- export declare interface Entity {
1358
- /**
1359
- * @description Value of the entity column addressed by its name (or column path).
1360
- */
1361
- [key: string]: EntityColumnValue;
1362
- }
1363
-
1364
- export { EntityColumnValue }
1365
-
1366
- export { EntityQueryColumn }
1367
-
1368
- export { EntitySchemaQuery }
1369
-
1370
- /**
1371
- * @public
1372
- * @description Shape for detailed error explanation.
1373
- * @property {string} errorCode - Error code.
1374
- * @property {string} message - Error message.
1375
- * @property {string} stackTrace - Stack at the moment of causing an error.
1376
- */
1377
- export declare interface ErrorInfo {
1378
- /**
1379
- * @description Error code.
1380
- */
1381
- errorCode: string;
1382
- /**
1383
- * @description Error message.
1384
- */
1385
- message: string;
1386
- /**
1387
- * @description Stack at the moment of causing an error
1388
- */
1389
- stackTrace: string;
1390
- }
1391
-
1392
- export { ExistsFilter }
1393
-
1394
- export { ExpressionConfig }
1395
-
1396
- export { ExpressionMock }
1397
-
1398
- export { ExpressionParser }
1399
-
1400
- export { ExpressionResolver }
1401
-
1402
- export { ExpressionType }
1403
-
1404
- /* Excluded from this release type: ExtraToolbarViewElementConfig */
1405
-
1406
- /**
1407
- * @public
1408
- * @classdesc Service to working with Creatio platform features using handler chain
1409
- * @extends {BaseHandlerChainService}
1410
- */
1411
- export declare class FeatureService extends BaseHandlerChainService {
1412
- /* Excluded from this release type: requestType */
1413
- /**
1414
- * @description Method designed to get state for single feature
1415
- * @param {string} code - feature code
1416
- * @returns `Promise<boolean>`
1417
- */
1418
- getFeatureState: (code: string) => Promise<boolean>;
1419
- /**
1420
- * @description Method designed to get feature states
1421
- * @param {string[]} codes - feature codes
1422
- * @returns `Promise<boolean[]>`
1423
- */
1424
- getFeaturesState: (codes: string[]) => Promise<boolean[]>;
1425
- }
1426
-
1427
- /* Excluded from this release type: FileValue */
1428
-
1429
- /* Excluded from this release type: FileViewerFactory */
1430
-
1431
- /* Excluded from this release type: FileViewerInstance */
1432
-
1433
- /* Excluded from this release type: FileViewerOptions */
1434
- export { FilterGroup }
1435
-
1436
- export { FilterGroupOrigin }
1437
-
1438
- export { FilterGroupOriginType }
1439
-
1440
- export { FilterMock }
1441
-
1442
- export { FilterParser }
1443
-
1444
- export { FilterResolver }
1445
-
1446
- export { FilterType }
1447
-
1448
- /* Excluded from this release type: _from */
1449
- export { FunctionExpression }
1450
-
1451
- export { FunctionExpressionConfig }
1452
-
1453
- export { FunctionStringType }
1454
-
1455
- export { FunctionType }
1456
-
1457
- export { generateGuid }
1458
-
1459
- /* Excluded from this release type: getConverterMetadata */
1460
-
1461
- /* Excluded from this release type: getCrtInputsMetadata */
1462
-
1463
- /* Excluded from this release type: getCrtOutputsMetadata */
1464
-
1465
- /* Excluded from this release type: getCrtValidationInputsMetadata */
1466
-
1467
- /* Excluded from this release type: getDeepModuleDependencies */
1468
-
1469
- /* Excluded from this release type: getDesignTimeViewElementMetadata */
1470
-
1471
- /* Excluded from this release type: getHandlerChainServiceMetadata */
1472
-
1473
- /* Excluded from this release type: getInterfaceDesignerItemMetadata */
1474
-
1475
- /* Excluded from this release type: getMobileInterfaceDesignerItemMetadata */
1476
-
1477
- /* Excluded from this release type: getMobileViewElementMetadata */
1478
-
1479
- /* Excluded from this release type: getModuleMetadata */
1480
-
1481
- /* Excluded from this release type: getRequestHandlerMetadata */
1482
-
1483
- /* Excluded from this release type: getTypeDependencies */
1484
-
1485
- /* Excluded from this release type: getValidatorMetadata */
1486
-
1487
- /* Excluded from this release type: getViewElementMetadata */
1488
-
1489
- /* Excluded from this release type: GroupedDateValue */
1490
- export { Guid }
1491
-
1492
- /**
1493
- * @public
1494
- * @class HandlerChainService
1495
- * @classdesc Service to design handlers in chain.
1496
- */
1497
- export declare class HandlerChainService {
1498
- private get _chain();
1499
- private set _chain(value);
1500
- private static _instance;
1501
- static get instance(): HandlerChainService;
1502
- private constructor();
1503
- private _createGlobalHandlerChain;
1504
- /* Excluded from this release type: clearContextedHandlersCache */
1505
- /* Excluded from this release type: register */
1506
- /* Excluded from this release type: update */
1507
- /**
1508
- * @description Method to process passed request
1509
- * @param request - {@link ɵBaseRequest}
1510
- * @return `Promise<unknown>`
1511
- */
1512
- process(request: BaseRequest): Promise<unknown>;
1513
- /* Excluded from this release type: subscribe */
1514
- /* Excluded from this release type: clear */
1515
- }
1516
-
1517
- /* Excluded from this release type: HandlerChainServiceRegistryItem */
1518
-
1519
- /* Excluded from this release type: HandlerChainServicesRegistry */
1520
-
1521
- /* Excluded from this release type: HandlerConfig */
1522
-
1523
- /* Excluded from this release type: HandlersOrderComparer */
1524
-
1525
- /* Excluded from this release type: HandlerSource */
1526
-
1527
- /* Excluded from this release type: HandlerSourceType */
1528
-
1529
- /**
1530
- * @hostPublicApi
1531
- * TODO: RND-55882
1532
- */
1533
- export declare class HandleViewModelAttributeChangeRequest extends BaseRequest<ChangeAttributeValueEventPayload> {
1534
- readonly type = "crt.HandleViewModelAttributeChangeRequest";
1535
- /**
1536
- * @hostPublicApi
1537
- */
1538
- readonly attributeName: string;
1539
- /**
1540
- * @hostPublicApi
1541
- */
1542
- readonly value: unknown;
1543
- /**
1544
- * @hostPublicApi
1545
- */
1546
- readonly oldValue: unknown;
1547
- /**
1548
- * @deprecated
1549
- */
1550
- readonly silent: boolean;
1551
- readonly preventAttributeChangeRequest: boolean;
1552
- readonly preventStateChange: boolean;
1553
- readonly preventRunBusinessRules: boolean;
1554
- constructor(payload: ChangeAttributeValueEventPayload);
1555
- }
1556
-
1557
- /* Excluded from this release type: hasInterfaceDesignerItemMetadata */
1558
-
1559
- /* Excluded from this release type: hasMobileInterfaceDesignerItemMetadata */
1560
-
1561
- /**
1562
- * @public
1563
- * @description Union type that describes all supported hierarchy row states.
1564
- */
1565
- export declare type HierarchyState = HierarchyStateCollapsed | HierarchyStateExpanded;
1566
-
1567
- /**
1568
- * @public
1569
- * @description Hierarchy state where collapsed nodes are inferred and expanded nodes are listed explicitly.
1570
- * @property {'collapsed'} mode State mode identifier.
1571
- * @property {string[]} expandedIds Identifiers of expanded hierarchy nodes.
1572
- */
1573
- export declare interface HierarchyStateCollapsed {
1574
- /**
1575
- * @description State mode identifier.
1576
- */
1577
- mode: 'collapsed';
1578
- /**
1579
- * @description Identifiers of expanded hierarchy nodes.
1580
- */
1581
- expandedIds: string[];
1582
- }
1583
-
1584
- /**
1585
- * @public
1586
- * @description Hierarchy state where expanded nodes are inferred and collapsed nodes are listed explicitly.
1587
- * @property {'expanded'} mode State mode identifier.
1588
- * @property {string[]} collapsedIds Identifiers of collapsed hierarchy nodes.
1589
- */
1590
- export declare interface HierarchyStateExpanded {
1591
- /**
1592
- * @description State mode identifier.
1593
- */
1594
- mode: 'expanded';
1595
- /**
1596
- * @description Identifiers of collapsed hierarchy nodes.
1597
- */
1598
- collapsedIds: string[];
1599
- }
1600
-
1601
- /* Excluded from this release type: HostHandlerSource */
1602
-
1603
- /**
1604
- * @public
1605
- * @classdesc Http service to perform Http requests
1606
- * @extends {BaseHandlerChainService}
1607
- */
1608
- export declare class HttpClientService extends BaseHandlerChainService {
1609
- /* Excluded from this release type: requestType */
1610
- get(url: string, options: {
1611
- headers?: HttpHeaders;
1612
- responseType: 'arraybuffer';
1613
- }): Promise<HttpResponse<ArrayBuffer>>;
1614
- get(url: string, options: {
1615
- headers?: HttpHeaders;
1616
- responseType: 'blob';
1617
- }): Promise<HttpResponse<Blob>>;
1618
- get(url: string, options: {
1619
- headers?: HttpHeaders;
1620
- responseType: 'text';
1621
- }): Promise<HttpResponse<string>>;
1622
- get(url: string, options: {
1623
- headers?: HttpHeaders;
1624
- responseType?: 'json';
1625
- }): Promise<HttpResponse>;
1626
- get<T>(url: string, options: {
1627
- headers?: HttpHeaders;
1628
- responseType?: 'json';
1629
- }): Promise<HttpResponse<T>>;
1630
- post(url: string, body: unknown | null, options: {
1631
- headers?: HttpHeaders;
1632
- responseType: 'arraybuffer';
1633
- }): Promise<HttpResponse<ArrayBuffer>>;
1634
- post(url: string, body: unknown | null, options: {
1635
- headers?: HttpHeaders;
1636
- responseType: 'blob';
1637
- }): Promise<HttpResponse<Blob>>;
1638
- post(url: string, body: unknown | null, options: {
1639
- headers?: HttpHeaders;
1640
- responseType: 'text';
1641
- }): Promise<HttpResponse<string>>;
1642
- post(url: string, body: unknown | null, options: {
1643
- headers?: HttpHeaders;
1644
- responseType?: 'json';
1645
- }): Promise<HttpResponse>;
1646
- post<T>(url: string, body: unknown | null, options: {
1647
- headers?: HttpHeaders;
1648
- responseType?: 'json';
1649
- }): Promise<HttpResponse<T>>;
1650
- delete(url: string, options: {
1651
- headers?: HttpHeaders;
1652
- responseType: 'arraybuffer';
1653
- body?: unknown | null;
1654
- }): Promise<HttpResponse<ArrayBuffer>>;
1655
- delete(url: string, options: {
1656
- headers?: HttpHeaders;
1657
- responseType: 'blob';
1658
- body?: unknown | null;
1659
- }): Promise<HttpResponse<Blob>>;
1660
- delete(url: string, options: {
1661
- headers?: HttpHeaders;
1662
- responseType: 'text';
1663
- body?: unknown | null;
1664
- }): Promise<HttpResponse<string>>;
1665
- delete(url: string, options: {
1666
- headers?: HttpHeaders;
1667
- responseType?: 'json';
1668
- body?: unknown | null;
1669
- }): Promise<HttpResponse>;
1670
- delete<T>(url: string, options: {
1671
- headers?: HttpHeaders;
1672
- responseType?: 'json';
1673
- body?: unknown | null;
1674
- }): Promise<HttpResponse<T>>;
1675
- put(url: string, body: unknown | null, options: {
1676
- headers?: HttpHeaders;
1677
- responseType: 'arraybuffer';
1678
- }): Promise<HttpResponse<ArrayBuffer>>;
1679
- put(url: string, body: unknown | null, options: {
1680
- headers?: HttpHeaders;
1681
- responseType: 'blob';
1682
- }): Promise<HttpResponse<Blob>>;
1683
- put(url: string, body: unknown | null, options: {
1684
- headers?: HttpHeaders;
1685
- responseType: 'text';
1686
- }): Promise<HttpResponse<string>>;
1687
- put(url: string, body: unknown | null, options: {
1688
- headers?: HttpHeaders;
1689
- responseType?: 'json';
1690
- }): Promise<HttpResponse>;
1691
- put<T>(url: string, body: unknown | null, options: {
1692
- headers?: HttpHeaders;
1693
- responseType?: 'json';
1694
- }): Promise<HttpResponse<T>>;
1695
- patch(url: string, body: unknown | null, options: {
1696
- headers?: HttpHeaders;
1697
- responseType: 'arraybuffer';
1698
- }): Promise<HttpResponse<ArrayBuffer>>;
1699
- patch(url: string, body: unknown | null, options: {
1700
- headers?: HttpHeaders;
1701
- responseType: 'blob';
1702
- }): Promise<HttpResponse<Blob>>;
1703
- patch(url: string, body: unknown | null, options: {
1704
- headers?: HttpHeaders;
1705
- responseType: 'text';
1706
- }): Promise<HttpResponse<string>>;
1707
- patch(url: string, body: unknown | null, options: {
1708
- headers?: HttpHeaders;
1709
- responseType?: 'json';
1710
- }): Promise<HttpResponse>;
1711
- patch<T>(url: string, body: unknown | null, options: {
1712
- headers?: HttpHeaders;
1713
- responseType?: 'json';
1714
- }): Promise<HttpResponse<T>>;
1715
- }
1716
-
1717
- /**
1718
- * @public
1719
- * @description Key-value shape for HttpHeaders
1720
- */
1721
- export declare interface HttpHeaders {
1722
- [header: string]: string;
1723
- }
1724
-
1725
- /**
1726
- * @public
1727
- * @description Http response
1728
- * @template T
1729
- * @property {HttpHeaders} headers - response headers {@link HttpHeaders}
1730
- * @property {number} status - response status
1731
- * @property {string} statusText - text of response
1732
- * @property {string | null} url - response url
1733
- * @property {boolean} ok - ok status
1734
- * @property {T | null} body - response body
1735
- */
1736
- export declare interface HttpResponse<T = unknown> {
1737
- /**
1738
- * @description response headers {@link HttpHeaders}
1739
- */
1740
- headers: HttpHeaders;
1741
- /**
1742
- * @description response status
1743
- */
1744
- status: number;
1745
- /**
1746
- * @description text of response
1747
- */
1748
- statusText: string;
1749
- /**
1750
- * @description response url
1751
- */
1752
- url: string | null;
1753
- /**
1754
- * @description ok status
1755
- */
1756
- ok: boolean;
1757
- /**
1758
- * @description response body
1759
- */
1760
- body: T | null;
1761
- }
1762
-
1763
- /* Excluded from this release type: IBaseItemRendererRegistry */
1764
-
1765
- /* Excluded from this release type: ImplementUsingHandlerChain */
1766
- export { InFilter }
1767
-
1768
- /* Excluded from this release type: InjectionContext */
1769
- export { InsertQuery }
1770
-
1771
- /* Excluded from this release type: instantiate */
1772
-
1773
- /**
1774
- * @public
1775
- * @description Config used to register view element options in interface designer.
1776
- * User-defined view elements will be displayed in Custom Elements group of interface designer.
1777
- */
1778
- export declare interface InterfaceDesignerItemDefinition {
1779
- /**
1780
- * Config for defining view element options in left panel of Interface designer.
1781
- */
1782
- toolbarConfig: {
1783
- /**
1784
- * Caption of view element in toolbar.
1785
- */
1786
- caption: string | LocalizableValue;
1787
- /**
1788
- * @deprecated
1789
- * Name of view element icon in toolbar.
1790
- */
1791
- name?: string;
1792
- /**
1793
- * Require path to load icon that will be displayed for view element
1794
- * in left panel of Interface designer.
1795
- * @example icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`),
1796
- */
1797
- icon: string;
1798
- /**
1799
- * Hint which will be displayed on hover.
1800
- */
1801
- hint?: string;
1802
- /**
1803
- * Map of default values which will be set after drag&drop.
1804
- */
1805
- defaultPropertyValues?: Record<string, unknown | LocalizableValue>;
1806
- /* Excluded from this release type: groupType */
1807
- };
1808
- /* Excluded from this release type: viewElementGroupType */
1809
- /* Excluded from this release type: typeCaption */
1810
- /* Excluded from this release type: typeRef */
1811
- /**
1812
- * @public
1813
- * @description Allows to use a custom component for properties panel.
1814
- * @example propertiesPanel: 'usr.CustomPanelComponent'
1815
- */
1816
- propertiesPanel?: string;
1817
- }
1818
-
1819
- /* Excluded from this release type: InterfaceDesignerItemMetadata */
1820
-
1821
- /* Excluded from this release type: interfaceDesignerItemRegister */
1822
-
1823
- /* Excluded from this release type: InterfaceDesignerItemRegistrationConfig */
1824
-
1825
- /* Excluded from this release type: InterfaceDesignerItemRegistry */
1826
-
1827
- /* Excluded from this release type: interfaceDesignerItemRegistryKey */
1828
-
1829
- /* Excluded from this release type: InterfaceDesignerRegistryItem */
1830
-
1831
- /* Excluded from this release type: InternalDesignTimeViewElementRegistryItem */
1832
-
1833
- /* Excluded from this release type: InternalInterfaceDesignerItemRegistrationConfig */
1834
-
1835
- /* Excluded from this release type: InternalModuleDefinition */
1836
-
1837
- /* Excluded from this release type: InternalRequestHandlerRegistry */
1838
-
1839
- /* Excluded from this release type: InternalRequestHandlerRegistryType */
1840
-
1841
- /* Excluded from this release type: InternalResolveDependencyFn */
1842
-
1843
- /* Excluded from this release type: InternalToolbarViewElementCollectionItemConfig */
1844
-
1845
- /* Excluded from this release type: InternalToolbarViewElementConfig */
1846
-
1847
- /* Excluded from this release type: InternalToolbarViewElementConfigCollection */
1848
-
1849
- /**
1850
- * @public
1851
- * @description Checks whether hierarchy configuration is client-side.
1852
- * @param hierarchyConfig Hierarchy configuration to check.
1853
- * @returns `true` if configuration is of type `ClientSideDataSourceHierarchyConfig`.
1854
- */
1855
- export declare function isClientSideDataSourceHierarchyConfig(hierarchyConfig: DataSourceHierarchyConfig | undefined): hierarchyConfig is ClientSideDataSourceHierarchyConfig;
1856
-
1857
- export { isEmptyGuid }
1858
-
1859
- export { isGuid }
1860
-
1861
- /**
1862
- * @public
1863
- * @description Determines whether the hierarchy node with the specified identifier is expanded
1864
- * based on the provided hierarchy state.
1865
- * @param hierarchyState Hierarchy state object.
1866
- * @param itemId Identifier of the hierarchy node.
1867
- * @returns True if the node is expanded; otherwise, false.
1868
- * @remarks If the hierarchy state is not provided or does not contain necessary information,
1869
- * the function returns false.
1870
- */
1871
- export declare function isHierarchicalItemExpanded(hierarchyState: HierarchyState | undefined, itemId: string): boolean;
1872
-
1873
- export { IsNullFilter }
1874
-
1875
- /**
1876
- * @public
1877
- * @description Checks whether hierarchy configuration is server-side.
1878
- * @param hierarchyConfig Hierarchy configuration to check.
1879
- * @returns `true` if configuration is of type `ServerSideDataSourceHierarchyConfig`.
1880
- */
1881
- export declare function isServerSideDataSourceHierarchyConfig(hierarchyConfig: DataSourceHierarchyConfig | undefined): hierarchyConfig is ServerSideDataSourceHierarchyConfig;
1882
-
1883
- /**
1884
- * @public
1885
- * @description Config to create item in collection.
1886
- */
1887
- export declare interface ItemCreationConfig extends ɵItemCreationConfig {
1888
- /**
1889
- * @description Indicates should business rules execute for created item immediately, default false.
1890
- */
1891
- businessRulesActive?: boolean;
1892
- }
1893
-
1894
- export { ItemNotFoundException }
1895
-
1896
- export declare interface ITransaction {
1897
- get id(): Guid;
1898
- createOperation<TResult>(action: (transactionOperation: ITransactionOperation<TResult>) => Promise<TResult>): ITransactionOperation<TResult>;
1899
- createFailureOperation<TResult>(reason: TResult): ITransactionOperation<TResult>;
1900
- commit(): Promise<Record<Guid, unknown>>;
1901
- rollback(): Promise<void>;
1902
- }
1903
-
1904
- export declare interface ITransactionFactory {
1905
- /**
1906
- * @description Method create a transaction.
1907
- * @returns `Promise<ITransaction>` {@link ITransaction}
1908
- */
1909
- create(): Promise<ITransaction>;
1910
- }
1911
-
1912
- export declare interface ITransactionOperation<TResult = unknown> {
1913
- get asyncResult(): Promise<TResult>;
1914
- /* Excluded from this release type: ready */
1915
- get transactionId(): Guid;
1916
- get id(): Guid;
1917
- get payload(): Record<string, unknown>;
1918
- /* Excluded from this release type: markAsReady */
1919
- }
1920
-
1921
- export { JsonArray }
1922
-
1923
- export { JsonData }
1924
-
1925
- export { JsonObject }
1926
-
1927
- /* Excluded from this release type: LazyLoadRefsManager */
1928
-
1929
- /* Excluded from this release type: LazyModuleDefinition */
1930
-
1931
- /* Excluded from this release type: LazyModuleDefinitionWithMetadata */
1932
-
1933
- /* Excluded from this release type: LazyModuleMetadata */
1934
-
1935
- /* Excluded from this release type: LazyRegistryItem */
1936
- export { LengthFunctionColumn }
1937
-
1938
- export { LengthFunctionExpression }
1939
-
1940
- export { LengthFunctionExpressionConfig }
1941
-
1942
- /**
1943
- * @public
1944
- * @description Represents a object describes status of license operations
1945
- * with keys as operations codes and values as operation statuses.
1946
- */
1947
- export declare interface LicenseRestrictionOperationValues {
1948
- [operation: string]: boolean;
1949
- }
1950
-
1951
- /**
1952
- * @public
1953
- * @classdesc Represents a service to working with license restrictions.
1954
- * @extends {BaseHandlerChainService}
1955
- */
1956
- export declare class LicenseService extends BaseHandlerChainService {
1957
- /* Excluded from this release type: requestType */
1958
- /**
1959
- * @description Receives status of license operations by post http request.
1960
- * @param operationCodes - The license operation names.
1961
- * @returns `Promise<LicenseRestrictionOperationValues[]>`
1962
- * An object with keys as operations codes and values as operation statuses.
1963
- */
1964
- getLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues>;
1965
- /**
1966
- * Receives status of explicit license operations by post http request.
1967
- * @param operationCodes - The license operation names.
1968
- * @returns `Promise<LicenseRestrictionOperationValues[]>`
1969
- * An object with keys as operations codes and values as operation statuses.
1970
- */
1971
- getExplicitLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues>;
1972
- /**
1973
- * @deprecated Use `getExplicitLicenseOperationStatuses` instead.
1974
- * @description Loads status of license operations.
1975
- * @param {string[]} operationCodes - The license operation names.
1976
- * @returns `Promise<LicenseRestrictionOperationValues>`
1977
- * An object with keys as operations codes and values as operation statuses.
1978
- */
1979
- loadLicenseOperationStatuses: (operationCodes: string[]) => Promise<LicenseRestrictionOperationValues>;
1980
- }
1981
-
1982
- export { LocalizableString }
1983
-
1984
- /* Excluded from this release type: LocalizableStringValues */
1985
-
1986
- /**
1987
- * @public
1988
- */
1989
- export declare class LocalizableValue {
1990
- readonly key: string;
1991
- /* Excluded from this release type: _instanceOfKey */
1992
- constructor(key: string);
1993
- /* Excluded from this release type: [Symbol.hasInstance] */
1994
- }
1995
-
1996
- /* Excluded from this release type: LocalizableValues */
1997
-
1998
- /**
1999
- * @public
2000
- * @description Use this function in decorators to indicate that a value should be localized.
2001
- * Note that the "localizeMetadata" bootstrap option should be provided,
2002
- * otherwise the value cannot be localized.
2003
- *
2004
- * @example
2005
- *
2006
- * ### Using 'localize' in decorator
2007
- * ```ts
2008
- * @CrtInterfaceDesignerItem({
2009
- * toolbarConfig: {
2010
- * caption: localize('MyElement.Caption')
2011
- * }
2012
- * })
2013
- * class MyElement {}
2014
- * ```
2015
- * ### Passing 'localizeMetadata' bootstrap option
2016
- * ```ts
2017
- * bootstrapCrtModule(MyModule, {
2018
- * localizeMetadata: (key: string) => thirdPartyTranslateService.translate(key)
2019
- * });
2020
- * ```
2021
- */
2022
- export declare function localize(key: string): LocalizableValue;
2023
-
2024
- export { LocalizeFn }
2025
-
2026
- export { LogicalOperatorType }
2027
-
2028
- export { LookupValue }
2029
-
2030
- export { LookupValueWithCode }
2031
-
2032
- export { MacrosFunctionColumn }
2033
-
2034
- export { MacrosFunctionExpression }
2035
-
2036
- export { MacrosFunctionExpressionConfig }
2037
-
2038
- /**
2039
- * @public
2040
- * @classdesc Service to working with mask using handler chain
2041
- * @extends {BaseHandlerChainService}
2042
- */
2043
- export declare class MaskService extends BaseHandlerChainService {
2044
- /* Excluded from this release type: requestType */
2045
- /**
2046
- * @description Method to show body mask on the page
2047
- * @param {MaskSettings} settings - mask settings {@link MaskSettings}
2048
- */
2049
- showBodyMask: (settings?: MaskSettings) => Promise<void>;
2050
- /**
2051
- * @description Method to hide body mask
2052
- */
2053
- hideBodyMask: () => Promise<void>;
2054
- /* Excluded from this release type: showMask */
2055
- /* Excluded from this release type: hideMask */
2056
- }
2057
-
2058
- /**
2059
- * @public
2060
- * @description Settings for displaying mask.
2061
- * @property {number} delay - The duration in milliseconds until which the mask delaying.
2062
- */
2063
- export declare interface MaskSettings {
2064
- /**
2065
- * @description The duration in milliseconds until which the mask delaying.
2066
- */
2067
- delay: number;
2068
- }
2069
-
2070
- /* Excluded from this release type: matchScopes */
2071
- export { MessageChannelEvent }
2072
-
2073
- /**
2074
- * @public
2075
- * @classdesc Service for working with messages sent or received through a server channel.
2076
- * @extends {BaseHandlerChainService}
2077
- * @implements {BaseMessageChannelService}
2078
- */
2079
- export declare class MessageChannelService extends BaseHandlerChainService implements BaseMessageChannelService {
2080
- /* Excluded from this release type: requestType */
2081
- /**
2082
- * @public
2083
- * @description Subscribes on messages from a specific sender.
2084
- * @param sender String identifier of the sender.
2085
- * @param callback Callback that should be executed on each message.
2086
- * @returns A promise to be resolved with a {@link ɵSubscription} object that can be used to unsubscribe.
2087
- */
2088
- subscribe: <T>(sender: string, callback: (event: MessageChannelEvent<T>) => void) => Promise<Subscription>;
2089
- /**
2090
- * @public
2091
- * @description Sends message to the channel.
2092
- * @param sender String identifier of the sender, used to distinguish between messages from different senders.
2093
- * @param body Body of the message that should be sent (payload). Should be JSON-serializable.
2094
- * @param channelType Type of message channel.
2095
- */
2096
- sendMessage: (sender: string, body: unknown, channelType: MessageChannelType) => Promise<void>;
2097
- }
2098
-
2099
- export { MessageChannelType }
2100
-
2101
- export { MetadataProvider }
2102
-
2103
- /* Excluded from this release type: MethodInvokeRequest */
2104
-
2105
- /* Excluded from this release type: MobileInterfaceDesignerItemRegistry */
2106
-
2107
- /* Excluded from this release type: mobileInterfaceDesignerItemRegistryKey */
2108
-
2109
- /* Excluded from this release type: MobileViewElementRegistry */
2110
-
2111
- /* Excluded from this release type: mobileViewElementRegistryKey */
2112
-
2113
- /**
2114
- * @public
2115
- */
2116
- export declare class Model extends BaseHandlerChainService implements BaseModel<DataSourceLoadOptions> {
2117
- private static _instance;
2118
- private readonly _crtModel;
2119
- /* Excluded from this release type: requestType */
2120
- private constructor();
2121
- private static get instance();
2122
- /* Excluded from this release type: name */
2123
- private readonly _create;
2124
- /* Excluded from this release type: [_from] */
2125
- static create(dataSchema: string): Promise<Model>;
2126
- getSchema(): Promise<DataSchema>;
2127
- load(config?: {
2128
- attributes?: string[] | DataSourceAttribute[];
2129
- parameters?: DataSourceParameters;
2130
- options?: DataSourceLoadOptions;
2131
- /**
2132
- * @deprecated Use options instead.
2133
- */
2134
- loadOptions?: DataSourceLoadOptions;
2135
- }): Promise<JsonArray>;
2136
- insert(dto: JsonObject): Promise<DataSourceSaveResult>;
2137
- update(dto: JsonObject, parameters: DataSourceParameters): Promise<DataSourceSaveResult>;
2138
- copy(primaryColumnValue: string, data?: JsonObject): Promise<JsonObject>;
2139
- create(data?: JsonObject): Promise<JsonObject>;
2140
- delete(parameters: DataSourceParameters): Promise<DataSourceSaveResult>;
2141
- canSave(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
2142
- canDelete(params: DataSourceCanExecuteOperationPayload): Promise<DataSourceCanExecuteOperationResult>;
2143
- insertInTransaction(transaction: ITransaction, dto: JsonObject): ITransactionOperation<DataSourceSaveResult>;
2144
- updateInTransaction(transaction: ITransaction, dto: JsonObject, parameters: DataSourceParameters): ITransactionOperation<DataSourceSaveResult>;
2145
- deleteInTransaction(transaction: ITransaction, parameters: DataSourceParameters): ITransactionOperation<DataSourceSaveResult>;
2146
- }
2147
-
2148
- export { ModelDefaultValue }
2149
-
2150
- export { ModelInitConfig }
2151
-
2152
- export { ModelInPageAction }
2153
-
2154
- export { ModelParameterType }
2155
-
2156
- /**
2157
- * @public
2158
- * @description Definition of CrtModule. Use this to register elements in Creatio platform.
2159
- * @property {Type[]} includes - Array of other CrnModules which are included in current.
2160
- * This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
2161
- * @property {Type[]} viewElements - Array of user-defined view elements which will be registered in Creatio platform.
2162
- * @property {Type[]} validators - Array of user-defined validators which will be registered in Creatio platform.
2163
- * @property {Type<BaseRequestHandler>[]} requestHandlers - Array of user-defined request handlers
2164
-
2165
- * which will be registered in Creatio platform.
2166
- * @example
2167
- * @CrtModule({
2168
- * viewElements: [AppComponent, UserComponent],
2169
- * includes: [NotifyModule],
2170
- * requestHandlers: [SomeRequestHandler],
2171
- * })
2172
- * @NgModule({
2173
- * declarations: [AppComponent, UserComponent],
2174
- * imports: [BrowserModule],
2175
- * providers: [],
2176
- * })
2177
- * export class AppModule {}
2178
- */
2179
- export declare interface ModuleDefinition {
2180
- /**
2181
- * @description Array of other CrtModules which are included in current.
2182
- * This allows easily create chains of CrtModules. Bootstrapping will be done through all module chain
2183
- */
2184
- includes?: Type[];
2185
- /**
2186
- * @description Array of user-defined view elements which will be registered
2187
- * in Creatio platform.
2188
- */
2189
- viewElements?: Type[];
2190
- /**
2191
- * @description Array of user-defined validators which will be registered in Creatio platform
2192
- */
2193
- validators?: Type<BaseValidator>[];
2194
- /* Excluded from this release type: designTimeViewElements */
2195
- /**
2196
- * @description Array of user-defined request handlers which will be registered in Creatio platform
2197
- */
2198
- requestHandlers?: Type<BaseRequestHandler>[];
2199
- /**
2200
- * @description Array of user-defined converters which will be registered in Creatio platform
2201
- */
2202
- converters?: Type<Converter>[];
2203
- /* Excluded from this release type: handlerChainServices */
2204
- }
2205
-
2206
- export { NextHandlerAlreadySpecifiedException }
2207
-
2208
- /* Excluded from this release type: objectDeepKeys */
2209
-
2210
- /**
2211
- * @public
2212
- * @description Render config for an element with OnViewport render strategy.
2213
- */
2214
- export declare interface OnViewportRenderConfig {
2215
- /**
2216
- * @description Determines that the element should render on entering the viewport.
2217
- */
2218
- renderStrategy: ViewElementRenderStrategy.OnViewport;
2219
- /**
2220
- * @description The size of the placeholder displayed while the element is
2221
- * being rendered.
2222
- */
2223
- placeholderSize: {
2224
- height: string;
2225
- };
2226
- }
2227
-
2228
- /* Excluded from this release type: OptionChangeSubscribeFn */
2229
-
2230
- /* Excluded from this release type: OptionChangeSubscription */
2231
-
2232
- /* Excluded from this release type: OptionsChangeListener */
2233
- export { OrderDirection }
2234
-
2235
- export { ParameterExpression }
2236
-
2237
- export { ParameterExpressionConfig }
2238
-
2239
- export { ParameterQueryColumn }
2240
-
2241
- /* Excluded from this release type: PkgTopology */
2242
-
2243
- /* Excluded from this release type: Platform */
2244
- export { PlatformAPIOptions }
2245
-
2246
- export { PlatformAPIs }
2247
-
2248
- /**
2249
- * @public
2250
- * @description Response for preload cachable system settings.
2251
- * @extends {BaseResponse}
2252
- * @property {Record<string, SysSetting>} values - system settings values
2253
- */
2254
- export declare interface PreloadSysSettingsResponse extends BaseResponse {
2255
- /**
2256
- * @type {Record<string, SysSetting>}
2257
- * @description system settings values. {@link SysSetting}
2258
- */
2259
- values: Record<string, SysSetting>;
2260
- }
2261
-
2262
- export { PrimaryDisplayFilterDataSourceParameter }
2263
-
2264
- /**
2265
- * @public
2266
- * @class ProcessEngineService
2267
- * @classdesc Service, used for starting and completing business processes using handler chain
2268
- * @extends {BaseHandlerChainService}
2269
- */
2270
- export declare class ProcessEngineService extends BaseHandlerChainService {
2271
- /* Excluded from this release type: requestType */
2272
- /**
2273
- * Executes process by name.
2274
- * @param processName Process name.
2275
- * @param parameters Process parameters.
2276
- * @param resultParameterNames Resulting process parameters.
2277
- */
2278
- executeProcessByName: (processName: string, parameters?: Record<string, unknown>, resultParameterNames?: string[]) => Promise<RunProcessResponse>;
2279
- /**
2280
- * Completes process element execution.
2281
- * @param {Guid} processElementUId Process element unique identifier.
2282
- * @param {Record<string, JsonData>} parameters Process parameters.
2283
- */
2284
- completeExecuting: (processElementUId: Guid, parameters?: Record<string, JsonData>) => Promise<BaseResponse>;
2285
- }
2286
-
2287
- /**
2288
- * @public
2289
- * @interface
2290
- * @description Interface representing a process parameter value.
2291
- * @property {string} name - The name of the process parameter.
2292
- * @property {string} value - The value of the process parameter.
2293
- */
2294
- export declare interface ProcessParameterValue {
2295
- /**
2296
- * @description The name of the process parameter.
2297
- */
2298
- name: string;
2299
- /**
2300
- * @description The value of the process parameter.
2301
- */
2302
- value: string;
2303
- }
2304
-
2305
- /**
2306
- * @public
2307
- * @description Enum representing the status of a process.
2308
- */
2309
- export declare enum ProcessStatus {
2310
- /**
2311
- * The process is inactive.
2312
- */
2313
- Inactive = 0,
2314
- /**
2315
- * The process is currently running.
2316
- */
2317
- Running = 1,
2318
- /**
2319
- * The process has completed successfully.
2320
- */
2321
- Completed = 2,
2322
- /**
2323
- * The process encountered an error.
2324
- */
2325
- Error = 3,
2326
- /**
2327
- * The process was cancelled.
2328
- */
2329
- Cancelled = 4
2330
- }
2331
-
2332
- export { QueryMacrosType }
2333
-
2334
- export { QueryOperationType }
2335
-
2336
- /**
2337
- * @public
2338
- * @description Response for querying of system settings
2339
- * @extends {BaseResponse}
2340
- * @property {Record<string, SysSetting>} values - system settings values
2341
- */
2342
- export declare interface QuerySysSettingsResponse extends BaseResponse {
2343
- /**
2344
- * @type {Record<string, SysSetting>}
2345
- * @description system settings values. {@link SysSetting}
2346
- */
2347
- values: Record<string, SysSetting>;
2348
- /**
2349
- * @type {Array<string>}
2350
- * @description not found system settings codes.
2351
- */
2352
- notFoundSettings?: Array<string>;
2353
- }
2354
-
2355
- /* Excluded from this release type: registerAngularViewElement */
2356
-
2357
- /**
2358
- * @public
2359
- * @description Function allows to register user-defined component as view element in Creatio platform.
2360
- * @param config - registration config. {@link ViewElementRegistrationConfig}
2361
- * @example
2362
- * sdk.registerViewElement({
2363
- * type: 'usr.Timeline',
2364
- * selector: 'usr-timeline',
2365
- * inputs: {
2366
- * primaryColumnValue: {},
2367
- * cardSchemaName: {},
2368
- * entitySchemaName: {}
2369
- * }
2370
- * });
2371
- */
2372
- export declare function registerViewElement(config: ViewElementRegistrationConfig): void;
2373
-
2374
- /* Excluded from this release type: registryKey */
2375
-
2376
- /* Excluded from this release type: RemoteBuildInfo */
2377
-
2378
- /**
2379
- * Discovery metadata for a remote converter.
2380
- *
2381
- * @public
2382
- */
2383
- export declare interface RemoteConverterDiscoveryMetadata {
2384
- /**
2385
- * Stable converter type published during discovery.
2386
- */
2387
- readonly type: string;
2388
- }
2389
-
2390
- /**
2391
- * Context passed to remote designer-definition loaders.
2392
- *
2393
- * @public
2394
- */
2395
- export declare interface RemoteDesignerDefinitionsLoadContext {
2396
- /**
2397
- * Current user culture used to localize returned definitions.
2398
- *
2399
- * For example, a remote can use this culture name to load the corresponding translation bundle before
2400
- * returning toolbox captions.
2401
- */
2402
- readonly cultureName: string;
2403
- }
2404
-
2405
- /* Excluded from this release type: RemoteEntriesRegistry */
2406
-
2407
- /**
2408
- * Entry-side definition exported by a remote module.
2409
- *
2410
- * The host loads this object from the remote entry point to discover the features published by
2411
- * the remote build.
2412
- *
2413
- * @public
2414
- */
2415
- export declare interface RemoteEntryDefinition {
2416
- /**
2417
- * Stable remote name matching the registered remote build.
2418
- */
2419
- readonly remoteName: string;
2420
- /**
2421
- * Features published by the remote entry.
2422
- *
2423
- * Feature identifiers must be unique within the same remote entry.
2424
- */
2425
- readonly features: readonly RemoteFeatureDefinition[];
2426
- }
2427
-
2428
- /* Excluded from this release type: RemoteEntryType */
2429
-
2430
- /**
2431
- * Defines a remote feature activated on demand.
2432
- *
2433
- * A feature can publish runtime types through {@link RemoteFeatureDefinition.discovery}, expose
2434
- * interface-designer metadata through {@link RemoteFeatureDefinition.loadDesignerDefinitions}, and load its
2435
- * implementation only when the runtime requests activation.
2436
- *
2437
- * @example
2438
- * ```ts
2439
- * const runtimeFeature: RemoteFeatureDefinition = {
2440
- * id: 'runtime',
2441
- * discovery: {
2442
- * viewElements: [{ type: 'usr.Address' }],
2443
- * requestHandlers: [{ type: 'usr.OpenAddressHandler', requestType: 'usr.OpenAddressRequest' }]
2444
- * },
2445
- * activate: async () => {
2446
- * const { activateRuntimeFeature } = await import('./runtime.feature-activation');
2447
- * await activateRuntimeFeature();
2448
- * },
2449
- * loadDesignerDefinitions: async ({ cultureName }) => {
2450
- * const { loadRuntimeDesignerDefinitions } = await import('./runtime.designer-definitions');
2451
- * return loadRuntimeDesignerDefinitions({ cultureName });
2452
- * }
2453
- * };
2454
- * ```
2455
- *
2456
- * @public
2457
- */
2458
- export declare interface RemoteFeatureDefinition {
2459
- /**
2460
- * Stable feature identifier inside the remote entry.
2461
- */
2462
- readonly id: string;
2463
- /**
2464
- * Discovery metadata published during startup.
2465
- *
2466
- * Lists the public items exposed by the feature during discovery.
2467
- * This field should declare metadata only. Register implementations in
2468
- * {@link RemoteFeatureDefinition.activate}.
2469
- */
2470
- readonly discovery?: RemoteFeatureDiscoveryMetadata;
2471
- /**
2472
- * Activates the feature when runtime needs its implementation.
2473
- *
2474
- * This callback should load and register the implementations for the items published through
2475
- * {@link RemoteFeatureDefinition.discovery}.
2476
- */
2477
- readonly activate: () => Promise<void>;
2478
- /**
2479
- * Loads localized interface-designer definitions exposed by the feature to register view elements
2480
- * in the designer toolbox.
2481
- *
2482
- * This callback should only return metadata. Any returned item `type` should match the discovery metadata
2483
- * published by the same feature.
2484
- *
2485
- * @example
2486
- * ```ts
2487
- * async loadDesignerDefinitions({ cultureName }) {
2488
- * const translations = await loadTranslationsForCulture(cultureName);
2489
- * return {
2490
- * viewElements: [
2491
- * {
2492
- * type: 'usr.Address',
2493
- * toolbarConfig: {
2494
- * caption: translations['address.caption'],
2495
- * icon: '<svg viewBox="0 0 16 16"></svg>'
2496
- * },
2497
- * defaultPropertyValues: {
2498
- * city: translations['address.defaultCity']
2499
- * },
2500
- * propertiesPanel: 'usr.AddressPropertiesPanel'
2501
- * }
2502
- * ],
2503
- * mobileViewElements: [
2504
- * {
2505
- * type: 'usr.MobileAddress',
2506
- * toolbarConfig: {
2507
- * caption: translations['mobileAddress.caption'],
2508
- * icon: '<svg viewBox="0 0 16 16"></svg>'
2509
- * },
2510
- * propertiesPanel: 'usr.MobileAddressPropertiesPanel'
2511
- * }
2512
- * ]
2513
- * };
2514
- * }
2515
- * ```
2516
- */
2517
- readonly loadDesignerDefinitions?: (context: RemoteDesignerDefinitionsLoadContext) => Promise<RemoteFeatureDesignerDefinitions>;
2518
- }
2519
-
2520
- /**
2521
- * Interface-designer definitions returned by a remote feature.
2522
- *
2523
- * Use this payload to register toolbox entries without activating the remote runtime implementation.
2524
- *
2525
- * @example
2526
- * ```ts
2527
- * {
2528
- * viewElements: [
2529
- * {
2530
- * type: 'usr.Address',
2531
- * toolbarConfig: {
2532
- * caption: 'Address',
2533
- * icon: '<svg viewBox="0 0 16 16"></svg>'
2534
- * },
2535
- * defaultPropertyValues: {
2536
- * city: 'Boston'
2537
- * },
2538
- * propertiesPanel: 'usr.AddressPropertiesPanel'
2539
- * }
2540
- * ]
2541
- * }
2542
- * ```
2543
- *
2544
- * @public
2545
- */
2546
- export declare interface RemoteFeatureDesignerDefinitions {
2547
- /**
2548
- * Designer metadata for discovered view elements.
2549
- *
2550
- * Each `type` should correspond to an item from {@link RemoteFeatureDiscoveryMetadata.viewElements}.
2551
- */
2552
- readonly viewElements?: readonly RemoteViewElementDesignerDefinition[];
2553
- /**
2554
- * Designer metadata for discovered mobile view elements.
2555
- *
2556
- * Each `type` should correspond to an item from {@link RemoteFeatureDiscoveryMetadata.mobileViewElements}.
2557
- */
2558
- readonly mobileViewElements?: readonly RemoteViewElementDesignerDefinition[];
2559
- }
2560
-
2561
- /**
2562
- * Aggregated discovery metadata for a remote feature.
2563
- *
2564
- * Lists the public items exposed by a feature during discovery.
2565
- * Register their implementations in {@link RemoteFeatureDefinition.activate}.
2566
- *
2567
- * @public
2568
- */
2569
- export declare interface RemoteFeatureDiscoveryMetadata {
2570
- /**
2571
- * View elements exposed by the feature.
2572
- */
2573
- readonly viewElements?: readonly RemoteViewElementDiscoveryMetadata[];
2574
- /**
2575
- * Mobile view elements exposed by the feature.
2576
- */
2577
- readonly mobileViewElements?: readonly RemoteViewElementDiscoveryMetadata[];
2578
- /**
2579
- * Converters exposed by the feature.
2580
- */
2581
- readonly converters?: readonly RemoteConverterDiscoveryMetadata[];
2582
- /**
2583
- * Validators exposed by the feature.
2584
- */
2585
- readonly validators?: readonly RemoteValidatorDiscoveryMetadata[];
2586
- /**
2587
- * Request handlers exposed by the feature.
2588
- */
2589
- readonly requestHandlers?: readonly RemoteRequestHandlerDiscoveryMetadata[];
2590
- }
2591
-
2592
- /* Excluded from this release type: RemoteHandlerSource */
2593
-
2594
- /**
2595
- * Discovery metadata for a remote request handler.
2596
- *
2597
- * @public
2598
- */
2599
- export declare interface RemoteRequestHandlerDiscoveryMetadata {
2600
- /**
2601
- * Stable request-handler type published during discovery.
2602
- */
2603
- readonly type: string;
2604
- /**
2605
- * Request type handled by the handler.
2606
- */
2607
- readonly requestType: string;
2608
- /**
2609
- * Optional scope restriction for the handler.
2610
- *
2611
- * When specified, the handler is considered only for requests executed inside the listed scopes.
2612
- */
2613
- readonly scopes?: string[];
2614
- }
2615
-
2616
- /**
2617
- * Discovery metadata for a remote validator.
2618
- *
2619
- * @public
2620
- */
2621
- export declare interface RemoteValidatorDiscoveryMetadata {
2622
- /**
2623
- * Stable validator type published during discovery.
2624
- */
2625
- readonly type: string;
2626
- }
2627
-
2628
- /**
2629
- * Interface-designer metadata exposed by a remote view element.
2630
- *
2631
- * Use this payload to register toolbox entries in the interface designer without activating the
2632
- * remote runtime implementation.
2633
- *
2634
- * @example
2635
- * ```ts
2636
- * {
2637
- * type: 'usr.Address',
2638
- * toolbarConfig: {
2639
- * caption: 'Address',
2640
- * icon: '<svg viewBox="0 0 16 16"></svg>'
2641
- * },
2642
- * defaultPropertyValues: {
2643
- * street: 'Main st.',
2644
- * city: 'Boston'
2645
- * },
2646
- * propertiesPanel: 'usr.AddressPropertiesPanel'
2647
- * }
2648
- * ```
2649
- *
2650
- * @public
2651
- */
2652
- export declare interface RemoteViewElementDesignerDefinition {
2653
- /**
2654
- * Stable view element type already published through discovery metadata.
2655
- *
2656
- * Must match the `type` of a corresponding item from {@link RemoteFeatureDiscoveryMetadata.viewElements} or
2657
- * {@link RemoteFeatureDiscoveryMetadata.mobileViewElements} published by the same feature.
2658
- */
2659
- readonly type: string;
2660
- /**
2661
- * Toolbar configuration displayed in the interface designer.
2662
- */
2663
- readonly toolbarConfig: {
2664
- /**
2665
- * Visible caption in the interface-designer toolbox.
2666
- */
2667
- readonly caption: string;
2668
- /**
2669
- * Raw SVG markup displayed as the toolbox icon.
2670
- *
2671
- * @example
2672
- * ```ts
2673
- * icon: '<svg viewBox="0 0 16 16"></svg>'
2674
- * ```
2675
- *
2676
- * @example
2677
- * ```ts
2678
- * icon: require(`!!raw-loader?{esModule:false}!../assets/icon.svg`)
2679
- * ```
2680
- */
2681
- readonly icon: string;
2682
- /**
2683
- * Optional hint displayed on hover in the interface-designer toolbox.
2684
- */
2685
- readonly hint?: string;
2686
- };
2687
- /**
2688
- * Default property values applied when the item is added from the toolbox.
2689
- *
2690
- * Keys must match property names expected by the view element.
2691
- */
2692
- readonly defaultPropertyValues?: Record<string, JsonData>;
2693
- /**
2694
- * Type name of the properties panel component used for configuring the view element in the interface designer.
2695
- *
2696
- * @example
2697
- * ```ts
2698
- * propertiesPanel: 'usr.AddressPropertiesPanel'
2699
- * ```
2700
- */
2701
- readonly propertiesPanel?: string;
2702
- }
2703
-
2704
- /**
2705
- * Discovery metadata for a remote view element.
2706
- *
2707
- * @public
2708
- */
2709
- export declare interface RemoteViewElementDiscoveryMetadata {
2710
- /**
2711
- * Stable view element type published during discovery.
2712
- */
2713
- readonly type: string;
2714
- }
2715
-
2716
- /* Excluded from this release type: RemoveRequestHandlerListener */
2717
- export { RequestHandler }
2718
-
2719
- /* Excluded from this release type: RequestHandlerCtor */
2720
-
2721
- /**
2722
- * @public
2723
- * @description Config to register request handler.
2724
- * @property {string} type - The type of request handler.
2725
- * @property {string} requestType - The type of request for which the handler will be triggered.
2726
- * @property {string[]} scopes - Scopes of the request for which the handler will be triggered
2727
- */
2728
- export declare interface RequestHandlerDefinition {
2729
- /**
2730
- * The type of request handler.
2731
- * @example
2732
- * 'crt.EventHandlerType'
2733
- */
2734
- readonly type: string;
2735
- /**
2736
- * The type of request for which the handler will be triggered.
2737
- * @example
2738
- * 'crt.EventType'
2739
- */
2740
- readonly requestType: string;
2741
- /**
2742
- * Scopes of the request for which the handler will be triggered
2743
- */
2744
- readonly scopes?: string[];
2745
- }
2746
-
2747
- /* Excluded from this release type: RequestHandlerFactory */
2748
-
2749
- /* Excluded from this release type: RequestHandlerMapValue */
2750
-
2751
- /* Excluded from this release type: RequestHandlerRegistrationConfig */
2752
-
2753
- /* Excluded from this release type: RequestHandlerRegistryService */
2754
- export { RequestRegistrationConfig }
2755
-
2756
- /* Excluded from this release type: RequestRegistryService */
2757
-
2758
- /* Excluded from this release type: RequestsResolver */
2759
-
2760
- /* Excluded from this release type: resetGlobals */
2761
- export { ResolveDependencyFn }
2762
-
2763
- /**
2764
- * @public
2765
- * @classdesc Service to working rights using handler chain
2766
- * @extends {BaseHandlerChainService}
2767
- */
2768
- export declare class RightsService extends BaseHandlerChainService {
2769
- /* Excluded from this release type: requestType */
2770
- /**
2771
- * @description Method to recognize whether user can execute operation
2772
- * @param {string} operationName - operation name
2773
- * @returns `Promise<boolean>`
2774
- */
2775
- getCanExecuteOperation: (operationName: string) => Promise<boolean>;
2776
- /**
2777
- * @description Method to recognize whether user can execute operations
2778
- * @param {string[]} operationNames - operation names
2779
- * @returns `Promise<boolean[]>`
2780
- */
2781
- getCanExecuteOperations: (operationNames: string[]) => Promise<boolean[]>;
2782
- }
2783
-
2784
- /**
2785
- * @public
2786
- * @class
2787
- * @classdesc Class representing a request to run a process.
2788
- * @property {Guid} schemaUId - The unique identifier of the process schema.
2789
- * @property {string} schemaName - The name of the process schema.
2790
- * @property {ProcessParameterValue[]} parameterValues - The values of the process parameters.
2791
- * @property {string[]} resultParameterNames - The names of the resulting process parameters.
2792
- */
2793
- export declare class RunProcessRequest {
2794
- /**
2795
- * @description Represents process schema unique identifier to run.
2796
- */
2797
- schemaUId?: Guid;
2798
- /**
2799
- * @description Represents process schema name to run.
2800
- */
2801
- schemaName?: string;
2802
- /**
2803
- * @description Used to pass the parameters to a starting process.
2804
- */
2805
- parameterValues?: ProcessParameterValue[];
2806
- /**
2807
- * @description Used to specify the names of the result parameters to retrieve on process completion.
2808
- */
2809
- resultParameterNames?: string[];
2810
- }
2811
-
2812
- /**
2813
- * @public
2814
- * @interface
2815
- * @extends {BaseResponse}
2816
- * @description Interface representing the response from running a process.
2817
- * @property {string} message - The message returned from the process execution.
2818
- * @property {Guid} processId - The unique identifier of the executed process.
2819
- * @property {Record<string, unknown>} resultParameterValues - The resulting parameter values from the process.
2820
- */
2821
- export declare interface RunProcessResponse extends BaseResponse {
2822
- /**
2823
- * @description The message returned from the process execution.
2824
- */
2825
- message: string;
2826
- /**
2827
- * @description The unique identifier of the executed process.
2828
- */
2829
- processId: Guid;
2830
- /**
2831
- * @description The status of the executed process.
2832
- */
2833
- processStatus: ProcessStatus;
2834
- /**
2835
- * @description The resulting parameter values from the process execution.
2836
- */
2837
- resultParameterValues?: Record<string, unknown>;
2838
- }
2839
-
2840
- /**
2841
- * @public
2842
- * @description Response for saving system settings
2843
- * @extends {BaseResponse}
2844
- * @property {Record<string, any>} saveResult - saving result
2845
- * @property {number} rowsAffected - Count of affected rows
2846
- */
2847
- export declare interface SaveSysSettingsResponse extends BaseResponse {
2848
- /**
2849
- * @description saving result
2850
- */
2851
- saveResult: Record<string, any>;
2852
- /**
2853
- * @description Count of affected rows
2854
- */
2855
- rowsAffected: number;
2856
- /* Excluded from this release type: nextPrcElReady */
2857
- }
2858
-
2859
- /* Excluded from this release type: SchemaHandlerSource */
2860
-
2861
- /**
2862
- * @public
2863
- * @description Configuration interface for schema modal dialogs.
2864
- * @property {string} schemaName - Name of the schema to be displayed in the modal.
2865
- * @property {ɵModelInPageAction} action - Action to be performed on the model (e.g., create, edit).
2866
- * @property {string} recordId - Identifier of the record to be edited or viewed.
2867
- * @property {Array<ɵModelDefaultValue>} defaultValues - Default values to initialize the model with.
2868
- * @property {Record<string, ɵJsonData>} parameters - Additional parameters for the schema.
2869
- * @property {boolean} preventDefaultCloseCommand - Flag to prevent the default close command.
2870
- * @property {object} appearanceSettings - Settings for the appearance of the modal.
2871
- */
2872
- export declare interface SchemaModalConfig {
2873
- /**
2874
- * @description Name of the schema to be displayed in the modal.
2875
- */
2876
- schemaName: string;
2877
- /**
2878
- * @description Action to be performed on the model (e.g., create, edit).
2879
- */
2880
- action?: ModelInPageAction;
2881
- /**
2882
- * @description Identifier of the record to be edited or viewed.
2883
- */
2884
- recordId?: string;
2885
- /**
2886
- * @description Default values to initialize the model with.
2887
- */
2888
- defaultValues?: Array<ModelDefaultValue>;
2889
- /**
2890
- * @description Additional parameters for the schema.
2891
- */
2892
- parameters?: Record<string, JsonData>;
2893
- /**
2894
- * @description Flag to prevent the default close command.
2895
- */
2896
- preventDefaultCloseCommand?: boolean;
2897
- /**
2898
- * @description Settings for the appearance of the modal.
2899
- */
2900
- appearanceSettings?: {
2901
- /**
2902
- * @description CSS classes to be applied to the modal panel.
2903
- */
2904
- panelClass?: string[];
2905
- /**
2906
- * @description Maximum height of the modal.
2907
- */
2908
- maxHeight?: number | string;
2909
- };
2910
- }
2911
-
2912
- /**
2913
- * @public
2914
- * @class SchemaModalService
2915
- * @classdesc Service to work with schema modal windows using handler chain.
2916
- * @extends {BaseHandlerChainService}
2917
- */
2918
- export declare class SchemaModalService extends BaseHandlerChainService {
2919
- /* Excluded from this release type: requestType */
2920
- /**
2921
- * @description Method to show schema in the modal window.
2922
- * @param {SchemaModalConfig} config - Configuration object for the schema modal.
2923
- * @returns `Promise<void>`
2924
- */
2925
- show: (config: SchemaModalConfig) => Promise<void>;
2926
- }
2927
-
2928
- export { SchemaViewMaskRequest }
2929
-
2930
- export { SchemaViewMaskRequestAction }
2931
-
2932
- export { SegmentFilter }
2933
-
2934
- export { SegmentFilterComparisonType }
2935
-
2936
- export { SegmentFilterDto }
2937
-
2938
- export { SegmentFilterOptions }
2939
-
2940
- export { SegmentFilterOptionsDto }
2941
-
2942
- export { SelectLocalizationQuery }
2943
-
2944
- /**
2945
- * @public
2946
- * @description Configuration for server-side hierarchy processing.
2947
- * @property {'ServerSide'} type Type of hierarchy handling.
2948
- * @property {string} hierarchicalColumnName Name of the column that defines the hierarchy.
2949
- * @property {string} hierarchicalColumnValue Value of the hierarchical column to start loading from.
2950
- * @property {FilterGroup} hierarchicalColumnFiltersValue Filters to be applied on the hierarchical column.
2951
- * @property {number} hierarchicalMaxDepth Maximum depth of the hierarchy to be loaded.
2952
- * @property {boolean} hierarchicalFullDataLoad Whether to load the full hierarchy data.
2953
- */
2954
- export declare interface ServerSideDataSourceHierarchyConfig extends BaseDataSourceHierarchyConfig {
2955
- /**
2956
- * @description Type of hierarchy handling.
2957
- */
2958
- type?: 'ServerSide';
2959
- /**
2960
- * @description Filters to be applied on the hierarchical column.
2961
- */
2962
- hierarchicalColumnFiltersValue?: FilterGroup;
2963
- /**
2964
- * @description Maximum depth of the hierarchy to be loaded.
2965
- */
2966
- hierarchicalMaxDepth?: number;
2967
- /**
2968
- * @description Whether to load the full hierarchy data.
2969
- */
2970
- hierarchicalFullDataLoad?: boolean;
2971
- }
2972
-
2973
- /* Excluded from this release type: setConverterMetadata */
2974
-
2975
- /* Excluded from this release type: setDesignTimeViewElementMetadata */
2976
-
2977
- /* Excluded from this release type: setInterfaceDesignerItemMetadata */
2978
-
2979
- /* Excluded from this release type: setMobileInterfaceDesignerItemMetadata */
2980
-
2981
- /* Excluded from this release type: setMobileViewElementMetadata */
2982
-
2983
- /* Excluded from this release type: setModuleMetadata */
2984
-
2985
- /* Excluded from this release type: setRequestHandlerMetadata */
2986
-
2987
- /* Excluded from this release type: setValidatorMetadata */
2988
-
2989
- /* Excluded from this release type: setViewElementMetadata */
2990
- export { SingleFilter }
2991
-
2992
- export { SortColumnOptions }
2993
-
2994
- export { SortDirection }
2995
-
2996
- export { SubQueryColumn }
2997
-
2998
- export { SubQueryExpression }
2999
-
3000
- export { SubQueryExpressionConfig }
3001
-
3002
- /* Excluded from this release type: Subscriber */
3003
- export { Subscription }
3004
-
3005
- /* Excluded from this release type: Subscription_2 */
3006
-
3007
- export declare interface SysImageValue extends LookupValue {
3008
- url?: string;
3009
- }
3010
-
3011
- /**
3012
- * @public
3013
- * @class SysSetting
3014
- * @classdesc Class contains info related system setting
3015
- * @property {ɵGuid} id - id of system setting.
3016
- * @property {string} name - name of system setting.
3017
- * @property {string} code - code of system setting.
3018
- * @property {isCacheable} boolean - indicator whether system setting is cacheable
3019
- * @property {any} value - value of system setting
3020
- * @property {string} displayValue - display value of system setting
3021
- * @property {ɵDataValueType} ɵDataValueType - system setting {@link ɵDataValueType}
3022
- */
3023
- export declare class SysSetting {
3024
- /**
3025
- * @description id of system setting
3026
- */
3027
- id?: Guid;
3028
- /**
3029
- * @description name of system setting
3030
- */
3031
- name?: string;
3032
- /**
3033
- * @description code of system setting
3034
- */
3035
- code?: string;
3036
- /**
3037
- * @description indicator whether system setting is cacheable
3038
- */
3039
- isCacheable?: boolean;
3040
- /**
3041
- * @description value of system setting
3042
- */
3043
- value?: any;
3044
- /**
3045
- * @description display value of system setting
3046
- */
3047
- displayValue?: string;
3048
- /**
3049
- * @description system setting {@link ɵDataValueType}
3050
- */
3051
- dataValueType?: DataValueType;
3052
- }
3053
-
3054
- /**
3055
- * @public
3056
- * @class SysSettingsService
3057
- * @classdesc Service to working with system settings using handler chain
3058
- * @extends {BaseHandlerChainService}
3059
- */
3060
- export declare class SysSettingsService extends BaseHandlerChainService {
3061
- /* Excluded from this release type: requestType */
3062
- /**
3063
- * @description Method to get system settings by codes
3064
- * @param {string[]} sysSettingCodes - system settings codes
3065
- * @returns `Promise<QuerySysSettingsResponse>` {@link QuerySysSettingsResponse}
3066
- */
3067
- getByCodes: (sysSettingCodes: string[]) => Promise<QuerySysSettingsResponse>;
3068
- /**
3069
- * @description Method to get system setting by code
3070
- * @param {string} sysSettingCode - system settings code
3071
- * @returns `Promise<SysSetting>`
3072
- */
3073
- getByCode: (sysSettingCode: string) => Promise<SysSetting>;
3074
- /**
3075
- * @description Method to update system setting
3076
- * @param {SysSettingValue} sysSettingValue - {@link SysSettingValue}
3077
- * @param {Boolean} isPersonal - Flag that indicates that sysSetting value is personal.
3078
- * @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}
3079
- */
3080
- update: (sysSettingValue: SysSettingValue, isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;
3081
- /**
3082
- * @description Method to bulk update system settings
3083
- * @param {SysSettingValue[]} sysSettingValues - system settings values {@link SysSettingValue}
3084
- * @param {Boolean} isPersonal - Flag that indicates that sysSetting values are personal.
3085
- * @returns `Promise<SaveSysSettingsResponse>` {@link SaveSysSettingsResponse}
3086
- */
3087
- updateMany: (sysSettingValues: SysSettingValue[], isPersonal?: boolean) => Promise<SaveSysSettingsResponse>;
3088
- }
3089
-
3090
- /**
3091
- * @public
3092
- * @class SysSettingValue
3093
- * @classdesc Shape to describe system setting value
3094
- * @property {string} code - code of system setting
3095
- * @property {any} value - value of system setting
3096
- */
3097
- export declare class SysSettingValue {
3098
- /**
3099
- * @description code of system setting.
3100
- */
3101
- code?: string;
3102
- /**
3103
- * @description value of system setting
3104
- */
3105
- value?: any;
3106
- }
3107
-
3108
- /**
3109
- * @public
3110
- * @description Shape of system values
3111
- * @property {LookupValue} maintainer - maintainer
3112
- * @property {number} moneyDisplayPrecision - precision used for displaying money
3113
- * @property {number} maxEntitySchemaNameLength - max length of entity schema
3114
- * @property {LookupValue} workspace - workplace info
3115
- * @property {LookupValue} userAccount - user info
3116
- * @property {string} userTimezoneCode - code of user's timezone
3117
- * @property {number} userTimezoneOffset - offset for user timezone
3118
- * @property {LookupValue} userContact - user contact info
3119
- * @property {LookupValueWithCode} primaryLanguage - primary language
3120
- * @property {LookupValue} primaryCulture - primary culture
3121
- * @property {LookupValue} userCulture - user culture
3122
- * @property {string} environmentType - type of the environment
3123
- */
3124
- export declare interface SysValues {
3125
- /**
3126
- * @description maintainer
3127
- */
3128
- maintainer: LookupValue;
3129
- /**
3130
- * @description precision used for displaying money
3131
- */
3132
- moneyDisplayPrecision: number;
3133
- /**
3134
- * @description max length of entity schema
3135
- */
3136
- maxEntitySchemaNameLength: number;
3137
- /**
3138
- * @description workplace info
3139
- */
3140
- workspace: LookupValue;
3141
- /**
3142
- * @description user info
3143
- */
3144
- userAccount: LookupValue;
3145
- /**
3146
- * @description code of user's timezone
3147
- */
3148
- userTimezoneCode: string;
3149
- /**
3150
- * @description offset for user timezone
3151
- */
3152
- userTimezoneOffset: number;
3153
- /**
3154
- * @description user contact info
3155
- */
3156
- userContact: LookupValue;
3157
- /**
3158
- * @description primary language
3159
- */
3160
- primaryLanguage: LookupValueWithCode;
3161
- /**
3162
- * @description primary culture
3163
- */
3164
- primaryCulture: LookupValue;
3165
- /**
3166
- * @description user culture
3167
- */
3168
- userCulture: LookupValue;
3169
- /**
3170
- * @description user
3171
- */
3172
- user: LookupValue;
3173
- /**
3174
- * @description core version
3175
- */
3176
- coreVersion: string;
3177
- /**
3178
- * @description Freedom UI new schema version
3179
- */
3180
- freedomUiSchemaVersion: number;
3181
- /**
3182
- * @description environment type
3183
- */
3184
- environmentType: string;
3185
- /**
3186
- * @description customer
3187
- */
3188
- customer: string;
3189
- }
3190
-
3191
- /**
3192
- * @public
3193
- * @classdesc
3194
- * @class SysValuesService Service to working with system values using handler chain
3195
- * @extends {BaseHandlerChainService}
3196
- */
3197
- export declare class SysValuesService extends BaseHandlerChainService {
3198
- /* Excluded from this release type: requestType */
3199
- /**
3200
- * @description Method to load system values
3201
- * @returns `Promise<SysValues>` {@link SysValues}
3202
- */
3203
- loadSysValues: () => Promise<SysValues>;
3204
- }
3205
-
3206
- export { TeardownLogic }
3207
-
3208
- /**
3209
- * @public
3210
- * @description Theme definition exposed through handler-chain services and shared runtime APIs.
3211
- */
3212
- export declare interface ThemeDefinition {
3213
- /**
3214
- * @description Stable theme identifier.
3215
- */
3216
- id: string;
3217
- /**
3218
- * @description Display caption.
3219
- */
3220
- caption: string;
3221
- /**
3222
- * @description CSS class applied to the host when the theme is active.
3223
- */
3224
- cssClassName: string;
3225
- /**
3226
- * @description Resolved theme stylesheet path or URL when external CSS is available.
3227
- */
3228
- cssFilePath?: string;
3229
- }
3230
-
3231
- /**
3232
- * @public
3233
- * @classdesc Service to retrieve available themes using handler chain.
3234
- * @extends {BaseHandlerChainService}
3235
- */
3236
- export declare class ThemeService extends BaseHandlerChainService {
3237
- /* Excluded from this release type: requestType */
3238
- /**
3239
- * @description Method designed to get all available themes.
3240
- * @returns `Promise<ThemeDefinition[]>`
3241
- */
3242
- getAvailableThemes: () => Promise<ThemeDefinition[]>;
3243
- /**
3244
- * @description Method designed to apply theme by id.
3245
- * @param {string} themeId - theme identifier
3246
- * @returns `Promise<void>`
3247
- */
3248
- applyTheme: (themeId: string) => Promise<void>;
3249
- /**
3250
- * @description Checks whether the current user is allowed to customize branding.
3251
- * @returns `Promise<boolean>`
3252
- */
3253
- canCustomizeBranding: () => Promise<boolean>;
3254
- /**
3255
- * @description Checks whether the current user is allowed to change their own theme.
3256
- * @returns `Promise<boolean>`
3257
- */
3258
- canChangeOwnTheme: () => Promise<boolean>;
3259
- }
3260
-
3261
- /* Excluded from this release type: toAggregationEval */
3262
-
3263
- /* Excluded from this release type: toAggregationEvalType */
3264
-
3265
- /* Excluded from this release type: toAggregationFunction */
3266
-
3267
- /* Excluded from this release type: toAggregationType */
3268
-
3269
- /* Excluded from this release type: toDatePart */
3270
-
3271
- /* Excluded from this release type: toDatePartType */
3272
- export { toLocalISOString }
3273
-
3274
- /* Excluded from this release type: toNumericFunctionType */
3275
-
3276
- /* Excluded from this release type: ToolbarDefaultSize */
3277
-
3278
- /* Excluded from this release type: ToolbarExtraProps */
3279
-
3280
- /* Excluded from this release type: ToolbarViewElementConfig */
3281
-
3282
- /* Excluded from this release type: ToolbarViewElementConfigType */
3283
-
3284
- /* Excluded from this release type: toOrderDirection */
3285
-
3286
- /* Excluded from this release type: toPascalCase */
3287
-
3288
- /* Excluded from this release type: toSortDirection */
3289
-
3290
- /* Excluded from this release type: toStringFunctionType */
3291
-
3292
- /**
3293
- * @public
3294
- * @class TransactionFactoryService
3295
- * @classdesc Service to working with transaction factory using a handler chain
3296
- * @extends {BaseHandlerChainService}
3297
- */
3298
- export declare class TransactionFactoryService extends BaseHandlerChainService implements ITransactionFactory {
3299
- /* Excluded from this release type: _instance */
3300
- /* Excluded from this release type: requestType */
3301
- /**
3302
- * @description Method create a transaction.
3303
- * @returns `ITransaction` {@link ITransaction}
3304
- * @public
3305
- */
3306
- create: () => Promise<ITransaction>;
3307
- /* Excluded from this release type: __constructor */
3308
- /* Excluded from this release type: instance */
3309
- static create(): Promise<ITransaction>;
3310
- }
3311
-
3312
- export { Type }
3313
-
3314
- /* Excluded from this release type: UnsubscribeFn */
3315
-
3316
- /* Excluded from this release type: UnsubscribeListener */
3317
- export { UpdateQuery }
3318
-
3319
- /**
3320
- * @public
3321
- * @description Represents a user consent history record.
3322
- * @property {Guid} id - Unique identifier of the user consent record.
3323
- * @property {string} consentCode - Consent code associated with the user consent.
3324
- * @property {Date} dateOfConsent - Date when the user provided consent.
3325
- * @property {Date | null} expirationDate - Date when the user consent expires; `null` for perpetual consent.
3326
- */
3327
- export declare interface UserConsent {
3328
- /**
3329
- * @description Unique identifier of the user consent record.
3330
- */
3331
- id: Guid;
3332
- /**
3333
- * @description Consent code associated with the user consent.
3334
- */
3335
- consentCode: string;
3336
- /**
3337
- * @description Date when the user provided consent.
3338
- */
3339
- dateOfConsent: Date;
3340
- /**
3341
- * @description Date when the user consent expires. `null` when the consent does not expire.
3342
- */
3343
- expirationDate: Date | null;
3344
- }
3345
-
3346
- /**
3347
- * @public
3348
- * @class UserConsentService
3349
- * @classdesc Service to work with consents of the current user.
3350
- */
3351
- export declare class UserConsentService {
3352
- private static _instance;
3353
- private readonly _consentSchemaName;
3354
- private readonly _userConsentHistorySchemaName;
3355
- private readonly _sysValuesService;
3356
- private _currentUserContactId?;
3357
- /**
3358
- * @description Gets shared service instance.
3359
- * @returns Shared `UserConsentService` instance.
3360
- */
3361
- static get instance(): UserConsentService;
3362
- /**
3363
- * Retrieves the current user's contact ID.
3364
- * @returns Current user contact id. Cached after first retrieval.
3365
- */
3366
- private _getCurrentUserContactId;
3367
- /**
3368
- * Maps a JSON record to a UserConsent object.
3369
- * @param record - JSON record to map.
3370
- * @param code - Consent code associated with the user consent.
3371
- * @returns User consent object.
3372
- */
3373
- private _mapToUserConsent;
3374
- /**
3375
- * Creates filter parameters for model loading based on the provided filters.
3376
- * @param filters - Filter values by column name.
3377
- * @returns Model filter parameters.
3378
- */
3379
- private _createFilterParameters;
3380
- /**
3381
- * Selects a consent record from the provided JSON records.
3382
- * @param records - Records to select from.
3383
- * @param code - Consent code associated with the consent.
3384
- * @returns Consent object or `null` if not found.
3385
- */
3386
- private _selectConsent;
3387
- /**
3388
- * Selects a user consent record from the provided JSON records.
3389
- * @param records - Records to select from.
3390
- * @param code - Consent code associated with the user consent.
3391
- * @returns User consent object or `null` if no valid user consent is found.
3392
- */
3393
- private _selectUserConsent;
3394
- /**
3395
- * Loads the consent model.
3396
- * @returns Loaded consent model.
3397
- */
3398
- private _loadConsentModel;
3399
- /**
3400
- * Loads the user consent history model.
3401
- * @returns Loaded user consent history model.
3402
- */
3403
- private _loadUserConsentModel;
3404
- /**
3405
- * Creates a new user consent record in the user consent history model.
3406
- * @param consentId - Identifier of the consent record.
3407
- * @param expirationDate - Optional expiration date of the user consent.
3408
- */
3409
- private _insertUserConsent;
3410
- /**
3411
- * @description Gets consent by code.
3412
- * @param code - Consent code.
3413
- * @returns Consent record or `null` if not found.
3414
- */
3415
- getConsent(code: string): Promise<Consent | null>;
3416
- /**
3417
- * @description Gets current user consent by code.
3418
- * @param code - Consent code.
3419
- * @returns User consent record or `null` if no active or perpetual consent exists.
3420
- */
3421
- getCurrentUserConsent(code: string): Promise<UserConsent | null>;
3422
- /**
3423
- * @description Gives current user consent by code.
3424
- * @param code - Consent code.
3425
- * @param expirationDate - Optional expiration date for the user consent.
3426
- */
3427
- giveCurrentUserConsent(code: string, expirationDate?: Date): Promise<void>;
3428
- }
3429
-
3430
- export { ValidationUtilities }
3431
-
3432
- /**
3433
- * @public
3434
- * @description Config used to register validator in Creatio platform.
3435
- * @property {string} type - type of validator
3436
- */
3437
- export declare interface ValidatorConfig {
3438
- /**
3439
- * @description Config used to register validator in Creatio platform.
3440
- */
3441
- type: string;
3442
- /* Excluded from this release type: params */
3443
- /* Excluded from this release type: scope */
3444
- }
3445
-
3446
- /* Excluded from this release type: ValidatorMapValue */
3447
-
3448
- /* Excluded from this release type: ValidatorMetadata */
3449
-
3450
- /* Excluded from this release type: ValidatorParameters */
3451
-
3452
- /**
3453
- * @public
3454
- * @description Shape for specifying parameters passed to validator
3455
- * @property {string} message - message should be displayed for error;
3456
- */
3457
- export declare interface ValidatorParametersValues {
3458
- [name: string]: unknown;
3459
- message?: string;
3460
- }
3461
-
3462
- /* Excluded from this release type: ValidatorRegistry */
3463
-
3464
- /* Excluded from this release type: ValidatorRegistryItem */
3465
-
3466
- /* Excluded from this release type: validatorRegistryKey */
3467
-
3468
- /* Excluded from this release type: ValidatorSchemaConfig */
3469
-
3470
- /**
3471
- * @public
3472
- * @description - base response with returned value
3473
- * @extends {BaseResponse} {@link BaseResponse}
3474
- * @property {T} value - returned value
3475
- * @template T
3476
- */
3477
- export declare interface ValueResponse<T> extends BaseResponse {
3478
- value: T;
3479
- }
3480
-
3481
- /* Excluded from this release type: VIEW_ELEMENT_DEFAULT_HEIGHT */
3482
-
3483
- /* Excluded from this release type: ViewElementDataGroupType */
3484
-
3485
- /* Excluded from this release type: ViewElementGroupType */
3486
-
3487
- /* Excluded from this release type: ViewElementMetadata */
3488
-
3489
- /* Excluded from this release type: ViewElementProperty */
3490
-
3491
- /* Excluded from this release type: viewElementRegister */
3492
-
3493
- /**
3494
- * @public
3495
- * @description Config to specify view element options.
3496
- * @extends {BaseViewElementRegistrationConfig} {@link BaseViewElementRegistrationConfig}
3497
- * @property {string} selector - view element tag selector; View element appears in DOM with this selector.
3498
- *
3499
- * @example
3500
- * ```
3501
- * @CrtViewElement({
3502
- * type: 'usr.Example',
3503
- * selector: 'usr-example',
3504
- * })
3505
- * ```
3506
- */
3507
- export declare type ViewElementRegistrationConfig = BaseViewElementRegistrationConfig & {
3508
- /**
3509
- * @description view element tag selector; View element appears in DOM with this selector.
3510
- */
3511
- selector: string;
3512
- };
3513
-
3514
- /* Excluded from this release type: ViewElementRegistry */
3515
-
3516
- /* Excluded from this release type: ViewElementRegistryItem */
3517
-
3518
- /* Excluded from this release type: viewElementRegistryKey */
3519
-
3520
- /**
3521
- * @public
3522
- * @description Render strategy for view element.
3523
- */
3524
- export declare enum ViewElementRenderStrategy {
3525
- /**
3526
- * @description Default render strategy.
3527
- * The element is rendered immediately.
3528
- */
3529
- Default = "default",
3530
- /**
3531
- * @description On viewport render strategy.
3532
- * The element is rendered only when it becomes visible in the viewport.
3533
- */
3534
- OnViewport = "on-viewport"
3535
- }
3536
-
3537
- /* Excluded from this release type: ViewElementReuseStrategy */
3538
-
3539
- /**
3540
- * @public
3541
- * @description Config to specify view element slot.
3542
- */
3543
- export declare interface ViewElementSlotDefinition {
3544
- /**
3545
- * @description Slot name.
3546
- */
3547
- name: string;
3548
- /* Excluded from this release type: lazy */
3549
- /* Excluded from this release type: input */
3550
- }
3551
-
3552
- /**
3553
- * TODO: RND-55882
3554
- */
3555
- export declare interface ViewModelAttributeChangeEventOptionsType {
3556
- preventAttributeChangeRequest?: boolean;
3557
- preventStateChange?: boolean;
3558
- preventRunBusinessRules?: boolean;
3559
- /* Excluded from this release type: isMaskedValue */
3560
- }
3561
-
3562
- /**
3563
- * @public
3564
- * @description Interface for a view model collection that extends the base collection with
3565
- * on collection change callbacks registration capabilities.
3566
- *
3567
- * @template T - The type of view model context that extends ViewModel
3568
- */
3569
- export declare interface ViewModelCollection<T extends ViewModelContext> extends ɵViewModelCollection<T> {
3570
- /**
3571
- * @description Registers a handler to be called whenever the collection emits a change event.
3572
- * @param callback Executes when the collection changes and receives change metadata.
3573
- * @param action Optional action filter; omit to receive all collection change notifications.
3574
- */
3575
- registerOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
3576
- /**
3577
- * @description Removes a previously registered collection change handler.
3578
- * @param callback Previously registered callback to detach.
3579
- * @param action Optional action filter, if provided, only detaches the callback for that action type.
3580
- */
3581
- unregisterOnCollectionChangeCallback: (callback: (changes: ViewModelCollectionChange<T>) => void, action?: ViewModelCollectionActionType) => void;
3582
- /**
3583
- * @description Registers a handler that fires when attributes of any collection item change.
3584
- * @param callback Executes with the item whose attributes were updated.
3585
- */
3586
- registerOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
3587
- /**
3588
- * @description Removes a previously registered item attribute change handler.
3589
- * @param callback Callback reference to detach from attribute change notifications.
3590
- */
3591
- unregisterOnItemAttributesChangesCallback: (callback: (item: T) => void) => void;
3592
- }
3593
-
3594
- /**
3595
- * @public
3596
- * @description List of actions which can be performed on collection with a public API.
3597
- */
3598
- export declare enum ViewModelCollectionActionType {
3599
- /**
3600
- * @description Create a collection element.
3601
- */
3602
- Add = "add",
3603
- /**
3604
- * @description Remove an element from collection.
3605
- */
3606
- Remove = "remove",
3607
- /**
3608
- * @description Update an element in collection.
3609
- */
3610
- Move = "move",
3611
- /**
3612
- * @description Reload collection with new elements.
3613
- */
3614
- Reload = "reload"
3615
- }
3616
-
3617
- /**
3618
- * @public
3619
- * @description Interface describes the model of collection change event.
3620
- */
3621
- export declare interface ViewModelCollectionChange<T extends ViewModelContext> {
3622
- /**
3623
- * @description The array of current collection elements.
3624
- */
3625
- collection: T[];
3626
- /**
3627
- * @description The array of elements affected by the change.
3628
- */
3629
- affectedElements: T[];
3630
- /**
3631
- * @description The type of action that triggered the change.
3632
- */
3633
- action: ViewModelCollectionActionType;
3634
- /**
3635
- * @description The index at which the change occurred, if applicable.
3636
- */
3637
- index?: number;
3638
- }
3639
-
3640
- export { ViewModelContext }
3641
-
3642
- export { WindowFunctionColumn }
3643
-
3644
- export { WindowFunctionExpression }
3645
-
3646
- export { WindowFunctionExpressionConfig }
3647
-
3648
- /**
3649
- * @public
3650
- * @description For internal use only.
3651
- * @hostPublicApi
3652
- */
3653
- export declare class ɵBaseRegistry {
3654
- private static readonly _prefix;
3655
- private static _instance;
3656
- protected static readonly registryKey: string;
3657
- protected static get store(): ɵRegistryItemsStore;
3658
- /**
3659
- * @hostPubicApi available through window.creatio.registry.<registryKey>.store
3660
- */
3661
- protected store: ɵRegistryItemsStore;
3662
- }
3663
-
3664
- /**
3665
- * @public
3666
- * @description For internal use only.
3667
- */
3668
- export declare function ɵcheckTypeNameFormat(type: string, element: string): void;
3669
-
3670
- /* Excluded from this release type: ɵCrtInterfaceDesignerItem */
3671
-
3672
- /* Excluded from this release type: ɵCrtMobileInterfaceDesignerItem */
3673
-
3674
- /* Excluded from this release type: ɵFeatureActivationRef */
3675
-
3676
- /**
3677
- * @public
3678
- * @description For internal use only.
3679
- */
3680
- export declare function ɵinstantiate<T = unknown>(type: Type<T>, resolveDependency: ResolveDependencyFn | undefined): T;
3681
-
3682
- /* Excluded from this release type: ɵLazyLoadRef */
3683
-
3684
- /* Excluded from this release type: ɵLazyModuleRef */
3685
-
3686
- /* Excluded from this release type: ɵloadLazyRef */
3687
-
3688
- /* Excluded from this release type: ɵloadLazyRefs */
3689
-
3690
- /**
3691
- * @public
3692
- * @description For internal use only.
3693
- * @hostPublicApi
3694
- */
3695
- declare interface ɵRegistryItemsStore {
3696
- typeInfos: Map<string, any>;
3697
- }
3698
-
3699
- export { }