@creatio-devkit/common 0.834.0 → 0.1000.2
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/AI_GUIDES_INDEX.md +9 -4
- package/CHANGELOG.md +10 -0
- package/DESIGN_TOKENS_AI_GUIDE.md +366 -0
- package/LICENSE.md +5 -6
- package/REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md +5 -3
- package/REMOTE_COMPONENT_STYLING_AI_GUIDE.md +179 -0
- package/THIRD_PARTY_LICENSES.txt +160 -0
- package/fesm2022/creatio-devkit-common.mjs +76 -11
- package/fesm2022/creatio-devkit-common.mjs.map +1 -1
- package/index.d.ts +128 -2
- package/package.json +6 -17
- package/types/creatio-devkit-common.d.ts +4523 -0
package/index.d.ts
CHANGED
|
@@ -89,6 +89,8 @@ import { ɵExpressionParser as ExpressionParser } from '@creatio/base';
|
|
|
89
89
|
import { ɵExpressionResolver as ExpressionResolver } from '@creatio/base';
|
|
90
90
|
import { ɵExpressionType as ExpressionType } from '@creatio/base';
|
|
91
91
|
import { ɵFilterGroup as FilterGroup } from '@creatio/base';
|
|
92
|
+
import { FilterGroupOrigin } from '@creatio/base';
|
|
93
|
+
import { ɵFilterGroupOriginType as FilterGroupOriginType } from '@creatio/base';
|
|
92
94
|
import { ɵFilterMock as FilterMock } from '@creatio/base';
|
|
93
95
|
import { ɵFilterParser as FilterParser } from '@creatio/base';
|
|
94
96
|
import { ɵFilterResolver as FilterResolver } from '@creatio/base';
|
|
@@ -141,6 +143,11 @@ import { ɵRequestRegistrationConfig as RequestRegistrationConfig } from '@creat
|
|
|
141
143
|
import { ɵResolveDependencyFn as ResolveDependencyFn } from '@creatio/base';
|
|
142
144
|
import { ɵSchemaViewMaskRequest as SchemaViewMaskRequest } from '@creatio/base';
|
|
143
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';
|
|
144
151
|
import { ɵSelectLocalizationQuery as SelectLocalizationQuery } from '@creatio/base';
|
|
145
152
|
import { ɵSingleFilter as SingleFilter } from '@creatio/base';
|
|
146
153
|
import { ɵSortColumnOptions as SortColumnOptions } from '@creatio/base';
|
|
@@ -193,7 +200,6 @@ export { AggregationType }
|
|
|
193
200
|
*/
|
|
194
201
|
export declare class AiContextService {
|
|
195
202
|
private _contextParts;
|
|
196
|
-
private static _instance;
|
|
197
203
|
/**
|
|
198
204
|
* Retrieves the singleton instance of the `AiContextService`.
|
|
199
205
|
* If the instance does not exist, it will be created.
|
|
@@ -263,9 +269,16 @@ export { ArithmeticQueryColumn }
|
|
|
263
269
|
|
|
264
270
|
/**
|
|
265
271
|
* @public
|
|
272
|
+
* Base shape shared by all AI context parts.
|
|
266
273
|
*/
|
|
267
274
|
export declare interface BaseContextPart {
|
|
275
|
+
/** Discriminator identifying the concrete context part type. */
|
|
268
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;
|
|
269
282
|
}
|
|
270
283
|
|
|
271
284
|
/**
|
|
@@ -655,35 +668,57 @@ export declare interface Consent {
|
|
|
655
668
|
|
|
656
669
|
/**
|
|
657
670
|
* @public
|
|
671
|
+
* Context part holding a set of constant key/value pairs.
|
|
658
672
|
*/
|
|
659
673
|
export declare interface ConstantValuesContextPart extends BaseContextPart {
|
|
674
|
+
/** Discriminator identifying the context part as a `ConstantValuesContextPart`. */
|
|
660
675
|
type: 'ConstantValuesContextPart';
|
|
676
|
+
/** Optional human-readable title of the context part. */
|
|
677
|
+
title?: string;
|
|
678
|
+
/** The constant values exposed by this context part. */
|
|
661
679
|
values: Record<string, unknown>;
|
|
662
680
|
}
|
|
663
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
|
+
|
|
664
689
|
/* Excluded from this release type: ContexedHandlerScopeConfig */
|
|
665
690
|
|
|
666
691
|
/**
|
|
667
692
|
* @public
|
|
693
|
+
* A single record exposed by a {@link ContextDataSourcePart}.
|
|
668
694
|
*/
|
|
669
695
|
export declare interface ContextDataRecord {
|
|
696
|
+
/** The unique identifier of the record. */
|
|
670
697
|
id: string;
|
|
698
|
+
/** The display value of the record. */
|
|
671
699
|
displayColumnValue: string;
|
|
672
700
|
}
|
|
673
701
|
|
|
674
702
|
/**
|
|
675
703
|
* @public
|
|
704
|
+
* A data source exposed by a page context part, grouping records of a single entity schema.
|
|
676
705
|
*/
|
|
677
706
|
export declare interface ContextDataSourcePart {
|
|
707
|
+
/** The name of the entity schema the records belong to. */
|
|
678
708
|
entitySchemaName: string;
|
|
709
|
+
/** The name of the column used as the display value for each record. */
|
|
679
710
|
displayColumnName: string;
|
|
711
|
+
/** Whether the data source represents a collection of records rather than a single record. */
|
|
680
712
|
isCollection: boolean;
|
|
713
|
+
/** Whether this is the primary data source of the page. */
|
|
681
714
|
isPrimary: boolean;
|
|
715
|
+
/** The records exposed by this data source. */
|
|
682
716
|
records: Array<ContextDataRecord>;
|
|
683
717
|
}
|
|
684
718
|
|
|
685
719
|
/**
|
|
686
720
|
* @public
|
|
721
|
+
* The action to perform on a context part.
|
|
687
722
|
*/
|
|
688
723
|
export declare type ContextPartAction = 'set' | 'update' | 'remove';
|
|
689
724
|
|
|
@@ -693,15 +728,19 @@ export declare type ContextPartAction = 'set' | 'update' | 'remove';
|
|
|
693
728
|
* This handler processes requests to add, remove, or retrieve context parts.
|
|
694
729
|
*/
|
|
695
730
|
export declare class ContextPartRequest extends BaseRequest {
|
|
731
|
+
/** The unique identifier of the context part. */
|
|
696
732
|
id: string;
|
|
733
|
+
/** The provider that resolves the context part. */
|
|
697
734
|
contextPartProvider: ContextProvider;
|
|
735
|
+
/** The action to perform on the context part. */
|
|
698
736
|
action: ContextPartAction;
|
|
699
737
|
}
|
|
700
738
|
|
|
701
739
|
/**
|
|
702
740
|
* @public
|
|
741
|
+
* A factory that produces a context part to register in `AiContextService`, synchronously or asynchronously.
|
|
703
742
|
*/
|
|
704
|
-
export declare type ContextProvider = () =>
|
|
743
|
+
export declare type ContextProvider = () => CreatioPageContextPartInput | Promise<CreatioPageContextPartInput> | ConstantValuesContextPartInput | Promise<ConstantValuesContextPartInput>;
|
|
705
744
|
|
|
706
745
|
/**
|
|
707
746
|
* @public
|
|
@@ -740,13 +779,26 @@ export declare interface ConverterConfig {
|
|
|
740
779
|
|
|
741
780
|
/**
|
|
742
781
|
* @public
|
|
782
|
+
* Context part describing a Creatio page together with the data sources available on it.
|
|
743
783
|
*/
|
|
744
784
|
export declare interface CreatioPageContextPart extends BaseContextPart {
|
|
785
|
+
/** Discriminator identifying the context part as a `CreatioPageContextPart`. */
|
|
745
786
|
type?: 'CreatioPageContextPart';
|
|
787
|
+
/** The human-readable title of the page. */
|
|
788
|
+
title: string;
|
|
789
|
+
/** The schema name of the page. */
|
|
746
790
|
pageSchemaName: string;
|
|
791
|
+
/** The data sources available on the page. */
|
|
747
792
|
dataSources: Array<ContextDataSourcePart>;
|
|
748
793
|
}
|
|
749
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
|
+
|
|
750
802
|
/* Excluded from this release type: CrtAngularViewElementConfig */
|
|
751
803
|
|
|
752
804
|
/**
|
|
@@ -1298,7 +1350,14 @@ export { EMPTY_GUID }
|
|
|
1298
1350
|
|
|
1299
1351
|
export { encodeDate }
|
|
1300
1352
|
|
|
1353
|
+
/**
|
|
1354
|
+
* @public
|
|
1355
|
+
* @description A Creatio entity record represented as a map of column names to their values.
|
|
1356
|
+
*/
|
|
1301
1357
|
export declare interface Entity {
|
|
1358
|
+
/**
|
|
1359
|
+
* @description Value of the entity column addressed by its name (or column path).
|
|
1360
|
+
*/
|
|
1302
1361
|
[key: string]: EntityColumnValue;
|
|
1303
1362
|
}
|
|
1304
1363
|
|
|
@@ -1374,6 +1433,10 @@ export declare class FeatureService extends BaseHandlerChainService {
|
|
|
1374
1433
|
/* Excluded from this release type: FileViewerOptions */
|
|
1375
1434
|
export { FilterGroup }
|
|
1376
1435
|
|
|
1436
|
+
export { FilterGroupOrigin }
|
|
1437
|
+
|
|
1438
|
+
export { FilterGroupOriginType }
|
|
1439
|
+
|
|
1377
1440
|
export { FilterMock }
|
|
1378
1441
|
|
|
1379
1442
|
export { FilterParser }
|
|
@@ -2866,6 +2929,16 @@ export { SchemaViewMaskRequest }
|
|
|
2866
2929
|
|
|
2867
2930
|
export { SchemaViewMaskRequestAction }
|
|
2868
2931
|
|
|
2932
|
+
export { SegmentFilter }
|
|
2933
|
+
|
|
2934
|
+
export { SegmentFilterComparisonType }
|
|
2935
|
+
|
|
2936
|
+
export { SegmentFilterDto }
|
|
2937
|
+
|
|
2938
|
+
export { SegmentFilterOptions }
|
|
2939
|
+
|
|
2940
|
+
export { SegmentFilterOptionsDto }
|
|
2941
|
+
|
|
2869
2942
|
export { SelectLocalizationQuery }
|
|
2870
2943
|
|
|
2871
2944
|
/**
|
|
@@ -3132,6 +3205,59 @@ export declare class SysValuesService extends BaseHandlerChainService {
|
|
|
3132
3205
|
|
|
3133
3206
|
export { TeardownLogic }
|
|
3134
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
|
+
|
|
3135
3261
|
/* Excluded from this release type: toAggregationEval */
|
|
3136
3262
|
|
|
3137
3263
|
/* Excluded from this release type: toAggregationEvalType */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creatio-devkit/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1000.2",
|
|
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": [
|
|
@@ -11,31 +11,20 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"reflect-metadata": "^0.1.13",
|
|
13
13
|
"lodash": "^4.17.21",
|
|
14
|
-
"@creatio/base": "0.
|
|
14
|
+
"@creatio/base": "0.1000.2",
|
|
15
15
|
"tslib": "^2.3.0"
|
|
16
16
|
},
|
|
17
17
|
"sideEffects": false,
|
|
18
|
-
"overrides": [
|
|
19
|
-
{
|
|
20
|
-
"files": [
|
|
21
|
-
"*.ts"
|
|
22
|
-
],
|
|
23
|
-
"parserOptions": {
|
|
24
|
-
"project": [
|
|
25
|
-
"libs/devkit/common/tsconfig.*?.json"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
18
|
"module": "fesm2022/creatio-devkit-common.mjs",
|
|
31
|
-
"typings": "
|
|
19
|
+
"typings": "types/creatio-devkit-common.d.ts",
|
|
32
20
|
"exports": {
|
|
33
21
|
"./package.json": {
|
|
34
22
|
"default": "./package.json"
|
|
35
23
|
},
|
|
36
24
|
".": {
|
|
37
|
-
"types": "./
|
|
25
|
+
"types": "./types/creatio-devkit-common.d.ts",
|
|
38
26
|
"default": "./fesm2022/creatio-devkit-common.mjs"
|
|
39
27
|
}
|
|
40
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"type": "module"
|
|
41
30
|
}
|