@creatio-devkit/common 0.823.0 → 0.830.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/esm2022/lib/base-exports.mjs +1 -1
- package/esm2022/lib/internal/models/index.mjs +2 -1
- package/esm2022/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +1 -1
- package/esm2022/lib/internal/models/transaction/index.mjs +3 -0
- package/esm2022/lib/internal/models/transaction/transaction-operation.mjs +2 -0
- package/esm2022/lib/internal/models/transaction/transaction.mjs +2 -0
- package/esm2022/lib/public/functions/bootstrap-crt-module.mjs +6 -16
- package/esm2022/lib/public/models/ai-context/ai-context-part.mjs +2 -0
- package/esm2022/lib/public/models/ai-context/index.mjs +2 -0
- package/esm2022/lib/public/models/index.mjs +2 -1
- package/esm2022/lib/public/services/ai-context/ai-context.service.mjs +86 -0
- package/esm2022/lib/public/services/ai-context/index.mjs +2 -0
- package/esm2022/lib/public/services/index.mjs +2 -1
- package/fesm2022/creatio-devkit-common.mjs +92 -16
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +128 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ import { ɵDataSchemaAttributeFunctionConfig as DataSchemaAttributeFunctionConfi
|
|
|
47
47
|
import { ɵDataSchemaAttributeType as DataSchemaAttributeType } from '@creatio/base';
|
|
48
48
|
import { ɵDataSchemaAttributeUsageType as DataSchemaAttributeUsageType } from '@creatio/base';
|
|
49
49
|
import { ɵDataSchemaAttributeValidatorConfig as DataSchemaAttributeValidatorConfig } from '@creatio/base';
|
|
50
|
+
import { ɵDataSchemaAttributeValueMaskingSettings as DataSchemaAttributeValueMaskingSettings } from '@creatio/base';
|
|
50
51
|
import { ɵDataSchemaType as DataSchemaType } from '@creatio/base';
|
|
51
52
|
import { ɵDataSchemaValidatorConfig as DataSchemaValidatorConfig } from '@creatio/base';
|
|
52
53
|
import { ɵDataSourceAggregationConfig as DataSourceAggregationConfig } from '@creatio/base';
|
|
@@ -185,6 +186,58 @@ export { AggregationSubQueryExpressionConfig }
|
|
|
185
186
|
|
|
186
187
|
export { AggregationType }
|
|
187
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Service for managing AI context parts and providing a unified context.
|
|
191
|
+
* This service allows adding, retrieving, and removing context parts, which can be
|
|
192
|
+
* either static values, promises, or dynamically provided through a function.
|
|
193
|
+
*/
|
|
194
|
+
export declare class AiContextService {
|
|
195
|
+
private _contextParts;
|
|
196
|
+
private static _instance;
|
|
197
|
+
/**
|
|
198
|
+
* Retrieves the singleton instance of the `AiContextService`.
|
|
199
|
+
* If the instance does not exist, it will be created.
|
|
200
|
+
*/
|
|
201
|
+
static get instance(): AiContextService;
|
|
202
|
+
/**
|
|
203
|
+
* Generates a unique identifier for a context part.
|
|
204
|
+
* @returns A string representing a unique identifier.
|
|
205
|
+
*/
|
|
206
|
+
private _generateId;
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
* Adds a new context part to the service.
|
|
210
|
+
* The context part can be a static value, a promise, or a function that provides the value.
|
|
211
|
+
*
|
|
212
|
+
* @param value - The context part to add. It can be one of the following:
|
|
213
|
+
* - `ContextProvider` (a function that provides the context part)
|
|
214
|
+
* @param id - (Optional) A unique identifier for the context part. If not provided, a new ID will be generated.
|
|
215
|
+
* @returns The unique identifier of the added context part.
|
|
216
|
+
*/
|
|
217
|
+
setContextPart(value: ContextProvider, id?: string): string;
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
* Retrieves all context parts as an array of resolved values.
|
|
221
|
+
* If the context parts include promises or functions, they will be resolved.
|
|
222
|
+
*
|
|
223
|
+
* @returns A promise that resolves to an array of context parts, which can be
|
|
224
|
+
* either `CreatioPageContextPart` or `ConstantValuesContextPart`.
|
|
225
|
+
*/
|
|
226
|
+
getContext(): Promise<(CreatioPageContextPart | ConstantValuesContextPart)[]>;
|
|
227
|
+
/**
|
|
228
|
+
* @public
|
|
229
|
+
* Removes a specific context part by its unique identifier.
|
|
230
|
+
*
|
|
231
|
+
* @param id - The unique identifier of the context part to remove.
|
|
232
|
+
*/
|
|
233
|
+
removeContextPart(id: string): void;
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
* Removes all context parts from the service.
|
|
237
|
+
*/
|
|
238
|
+
removeContext(): void;
|
|
239
|
+
}
|
|
240
|
+
|
|
188
241
|
/* Excluded from this release type: AngularViewElementRegistrationConfig */
|
|
189
242
|
|
|
190
243
|
/* Excluded from this release type: applyLocalizeMetadataFn */
|
|
@@ -207,6 +260,14 @@ export { ArithmeticQueryColumn }
|
|
|
207
260
|
/* Excluded from this release type: AttributePropertyConfig */
|
|
208
261
|
|
|
209
262
|
/* Excluded from this release type: AttributeValueConfig */
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @public
|
|
266
|
+
*/
|
|
267
|
+
export declare interface BaseContextPart {
|
|
268
|
+
type?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
210
271
|
export { BaseDataSourceParameter }
|
|
211
272
|
|
|
212
273
|
export { BaseDialogButtonConfig }
|
|
@@ -510,8 +571,56 @@ export { ComparisonType }
|
|
|
510
571
|
|
|
511
572
|
export { ConditionalValueItem }
|
|
512
573
|
|
|
574
|
+
/**
|
|
575
|
+
* @public
|
|
576
|
+
*/
|
|
577
|
+
export declare interface ConstantValuesContextPart extends BaseContextPart {
|
|
578
|
+
type: 'ConstantValuesContextPart';
|
|
579
|
+
values: Record<string, unknown>;
|
|
580
|
+
}
|
|
581
|
+
|
|
513
582
|
/* Excluded from this release type: ContexedHandlerScopeConfig */
|
|
514
583
|
|
|
584
|
+
/**
|
|
585
|
+
* @public
|
|
586
|
+
*/
|
|
587
|
+
export declare interface ContextDataRecord {
|
|
588
|
+
id: string;
|
|
589
|
+
displayColumnValue: string;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @public
|
|
594
|
+
*/
|
|
595
|
+
export declare interface ContextDataSourcePart {
|
|
596
|
+
entitySchemaName: string;
|
|
597
|
+
displayColumnName: string;
|
|
598
|
+
isCollection: boolean;
|
|
599
|
+
isPrimary: boolean;
|
|
600
|
+
records: Array<ContextDataRecord>;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @public
|
|
605
|
+
*/
|
|
606
|
+
export declare type ContextPartAction = 'set' | 'update' | 'remove';
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @public
|
|
610
|
+
* @classdesc Request handler for managing context parts in the AI context service.
|
|
611
|
+
* This handler processes requests to add, remove, or retrieve context parts.
|
|
612
|
+
*/
|
|
613
|
+
export declare class ContextPartRequest extends BaseRequest {
|
|
614
|
+
id: string;
|
|
615
|
+
contextPartProvider: ContextProvider;
|
|
616
|
+
action: ContextPartAction;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @public
|
|
621
|
+
*/
|
|
622
|
+
export declare type ContextProvider = () => CreatioPageContextPart | Promise<CreatioPageContextPart> | ConstantValuesContextPart | Promise<ConstantValuesContextPart>;
|
|
623
|
+
|
|
515
624
|
/**
|
|
516
625
|
* @public
|
|
517
626
|
* @description Shape to implementing Converter.
|
|
@@ -547,6 +656,15 @@ export declare interface ConverterConfig {
|
|
|
547
656
|
|
|
548
657
|
/* Excluded from this release type: ConverterRegistryItem */
|
|
549
658
|
|
|
659
|
+
/**
|
|
660
|
+
* @public
|
|
661
|
+
*/
|
|
662
|
+
export declare interface CreatioPageContextPart extends BaseContextPart {
|
|
663
|
+
type?: 'CreatioPageContextPart';
|
|
664
|
+
pageSchemaName: string;
|
|
665
|
+
dataSources: Array<ContextDataSourcePart>;
|
|
666
|
+
}
|
|
667
|
+
|
|
550
668
|
/* Excluded from this release type: CrtAngularViewElementConfig */
|
|
551
669
|
|
|
552
670
|
/**
|
|
@@ -904,6 +1022,8 @@ export { DataSchemaAttributeUsageType }
|
|
|
904
1022
|
|
|
905
1023
|
export { DataSchemaAttributeValidatorConfig }
|
|
906
1024
|
|
|
1025
|
+
export { DataSchemaAttributeValueMaskingSettings }
|
|
1026
|
+
|
|
907
1027
|
export { DataSchemaType }
|
|
908
1028
|
|
|
909
1029
|
export { DataSchemaValidatorConfig }
|
|
@@ -982,6 +1102,7 @@ export declare interface DefaultRenderConfig {
|
|
|
982
1102
|
renderStrategy?: ViewElementRenderStrategy.Default;
|
|
983
1103
|
}
|
|
984
1104
|
|
|
1105
|
+
/* Excluded from this release type: DefaultSizeForGrid */
|
|
985
1106
|
export { DefaultValueSchema }
|
|
986
1107
|
|
|
987
1108
|
export { DefaultValueSource }
|
|
@@ -1460,6 +1581,9 @@ export declare interface ItemCreationConfig extends ɵItemCreationConfig {
|
|
|
1460
1581
|
|
|
1461
1582
|
export { ItemNotFoundException }
|
|
1462
1583
|
|
|
1584
|
+
/* Excluded from this release type: ITransaction */
|
|
1585
|
+
|
|
1586
|
+
/* Excluded from this release type: ITransactionOperation */
|
|
1463
1587
|
export { JsonArray }
|
|
1464
1588
|
|
|
1465
1589
|
export { JsonData }
|
|
@@ -2291,6 +2415,10 @@ export { toLocalISOString }
|
|
|
2291
2415
|
|
|
2292
2416
|
/* Excluded from this release type: toNumericFunctionType */
|
|
2293
2417
|
|
|
2418
|
+
/* Excluded from this release type: ToolbarDefaultSize */
|
|
2419
|
+
|
|
2420
|
+
/* Excluded from this release type: ToolbarExtraProps */
|
|
2421
|
+
|
|
2294
2422
|
/* Excluded from this release type: ToolbarViewElementConfig */
|
|
2295
2423
|
|
|
2296
2424
|
/* Excluded from this release type: ToolbarViewElementConfigType */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatio-devkit/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.830.0",
|
|
4
4
|
"description": "Allows developers to create customizations and integrate them to Creatio platform.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"keywords": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"class-transformer": "^0.5.1",
|
|
15
15
|
"reflect-metadata": "^0.1.13",
|
|
16
16
|
"lodash": "^4.17.21",
|
|
17
|
-
"@creatio/base": "0.
|
|
17
|
+
"@creatio/base": "0.830.0"
|
|
18
18
|
},
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"module": "fesm2022/creatio-devkit-common.mjs",
|