@creatio-devkit/common 0.806.1 → 0.807.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/esm2020/lib/external/functions/aggregation-adapter.mjs +49 -1
- package/esm2020/lib/external/functions/date-part-type-adapter.mjs +48 -0
- package/esm2020/lib/external/functions/function-type-adapter.mjs +28 -0
- package/esm2020/lib/external/functions/index.mjs +4 -1
- package/esm2020/lib/external/functions/order-direction-adapter.mjs +28 -0
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/internal/enums/data-schema-attribute-type.enum.mjs +2 -1
- package/esm2020/lib/internal/esq/data-model/queries/entity-schema-query.mjs +3 -2
- package/esm2020/lib/internal/esq/data-model/queries/index.mjs +2 -1
- package/esm2020/lib/internal/esq/data-model/queries/insert-query.mjs +1 -1
- package/esm2020/lib/internal/esq/data-model/queries/select-localization-query.mjs +7 -0
- package/esm2020/lib/internal/esq/data-model/queries/update-query.mjs +1 -1
- package/esm2020/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.model.mjs +2 -0
- package/esm2020/lib/internal/model/data-schema/data-schema-attribute-function-config.model.mjs +2 -0
- package/esm2020/lib/internal/model/data-schema/data-schema-validator-config.model.mjs +2 -0
- package/esm2020/lib/internal/model/data-schema/index.mjs +4 -0
- package/esm2020/lib/internal/model/data-source-config.mjs +1 -1
- package/esm2020/lib/internal/model/index.mjs +2 -3
- package/esm2020/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +1 -1
- package/esm2020/lib/internal/types/index.mjs +2 -0
- package/esm2020/lib/internal/types/localizable-values.type.mjs +2 -0
- package/esm2020/lib/public/enums/data-value-type.enum.mjs +2 -1
- package/esm2020/lib/public/esq/data-model/expressions/parameters/parameter-expression.mjs +1 -1
- package/esm2020/lib/public/esq/data-model/filters/filter-group.mjs +1 -1
- package/esm2020/lib/public/esq/data-model/filters/isnull-filter.mjs +1 -1
- package/esm2020/lib/public/models/lookup-value.model.mjs +1 -1
- package/esm2020/lib/public/services/feature/feature.service.mjs +1 -1
- package/esm2020/lib/public/services/http-client/http-client.service.mjs +1 -1
- package/esm2020/lib/public/services/mask-service/mask.service.mjs +1 -1
- package/esm2020/lib/public/services/model/data-schema-attribute.mjs +1 -1
- package/esm2020/lib/public/services/model/data-schema.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-aggregation-config.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-attribute.mjs +1 -1
- package/esm2020/lib/public/services/model/data-source-function-config.mjs +2 -0
- package/esm2020/lib/public/services/model/data-source-parameter.mjs +1 -1
- package/esm2020/lib/public/services/model/index.mjs +2 -1
- package/esm2020/lib/public/services/model/model.mjs +1 -1
- package/esm2020/lib/public/services/rights/rights.service.mjs +1 -1
- package/esm2020/lib/public/services/sys-settings/sys-settings.service.mjs +1 -1
- package/esm2020/lib/public/services/sys-values/sys-values.service.mjs +1 -1
- package/esm2020/lib/public/types/aggregation-eval.type.mjs +2 -0
- package/esm2020/lib/public/types/date-part.type.mjs +2 -0
- package/esm2020/lib/public/types/function.type.mjs +2 -0
- package/esm2020/lib/public/types/guid.type.mjs +2 -2
- package/esm2020/lib/public/types/index.mjs +4 -1
- package/fesm2015/creatio-devkit-common.mjs +160 -3
- package/fesm2015/creatio-devkit-common.mjs.map +1 -1
- package/fesm2020/creatio-devkit-common.mjs +160 -3
- package/fesm2020/creatio-devkit-common.mjs.map +1 -1
- package/{creatio-devkit-common.d.ts → index.d.ts} +105 -3
- package/package.json +7 -5
- package/esm2020/lib/internal/model/data-schema/data-schema-attribute-aggregation-config.mjs +0 -2
- package/esm2020/lib/internal/model/data-schema/data-schema-validator-config.mjs +0 -2
|
@@ -875,6 +875,7 @@ var DataSchemaAttributeType;
|
|
|
875
875
|
DataSchemaAttributeType["ForwardReferenceAttribute"] = "ForwardReference";
|
|
876
876
|
DataSchemaAttributeType["BackReferenceAttribute"] = "BackReference";
|
|
877
877
|
DataSchemaAttributeType["AggregationAttribute"] = "Aggregation";
|
|
878
|
+
DataSchemaAttributeType["FunctionAttribute"] = "Function";
|
|
878
879
|
})(DataSchemaAttributeType || (DataSchemaAttributeType = {}));
|
|
879
880
|
/**
|
|
880
881
|
* @internal
|
|
@@ -1363,6 +1364,7 @@ var DataValueType;
|
|
|
1363
1364
|
DataValueType[DataValueType["OBJECT_LIST"] = 38] = "OBJECT_LIST";
|
|
1364
1365
|
DataValueType[DataValueType["COMPOSITE_OBJECT_LIST"] = 39] = "COMPOSITE_OBJECT_LIST";
|
|
1365
1366
|
DataValueType[DataValueType["FLOAT8"] = 40] = "FLOAT8";
|
|
1367
|
+
DataValueType[DataValueType["FILE_LOCATOR"] = 41] = "FILE_LOCATOR";
|
|
1366
1368
|
DataValueType[DataValueType["PHONE_TEXT"] = 42] = "PHONE_TEXT";
|
|
1367
1369
|
DataValueType[DataValueType["RICH_TEXT"] = 43] = "RICH_TEXT";
|
|
1368
1370
|
DataValueType[DataValueType["WEB_TEXT"] = 44] = "WEB_TEXT";
|
|
@@ -1888,7 +1890,7 @@ function generateGuid() {
|
|
|
1888
1890
|
* @internal
|
|
1889
1891
|
*/
|
|
1890
1892
|
function isGuid(value) {
|
|
1891
|
-
return value && validator.test(value);
|
|
1893
|
+
return Boolean(value) && validator.test(value);
|
|
1892
1894
|
}
|
|
1893
1895
|
/**
|
|
1894
1896
|
* Checks if Guid is empty value or equal to EMPTY_GUID.
|
|
@@ -2233,6 +2235,7 @@ class EntitySchemaQuery extends BaseFilterableQuery {
|
|
|
2233
2235
|
* Rows count to skip.
|
|
2234
2236
|
*/
|
|
2235
2237
|
this.rowsOffset = -1;
|
|
2238
|
+
this.useLocalization = true;
|
|
2236
2239
|
this._getIsPageable = () => this.rowCount > 0 && this.rowsOffset > -1;
|
|
2237
2240
|
}
|
|
2238
2241
|
// endregion
|
|
@@ -2282,7 +2285,7 @@ class EntitySchemaQuery extends BaseFilterableQuery {
|
|
|
2282
2285
|
hierarchicalMaxDepth: 0,
|
|
2283
2286
|
hierarchicalColumnName: null,
|
|
2284
2287
|
hierarchicalColumnValue: null,
|
|
2285
|
-
useLocalization:
|
|
2288
|
+
useLocalization: this.useLocalization,
|
|
2286
2289
|
useRecordDeactivation: false,
|
|
2287
2290
|
};
|
|
2288
2291
|
}
|
|
@@ -2484,6 +2487,12 @@ __decorate([
|
|
|
2484
2487
|
__metadata("design:paramtypes", [])
|
|
2485
2488
|
], UpdateQuery.prototype, "columnValues", null);
|
|
2486
2489
|
|
|
2490
|
+
/**
|
|
2491
|
+
* @internal
|
|
2492
|
+
*/
|
|
2493
|
+
class SelectLocalizationQuery extends EntitySchemaQuery {
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2487
2496
|
/**
|
|
2488
2497
|
* @public
|
|
2489
2498
|
* @description Function allows to register user-defined component as view element in Creatio platform.
|
|
@@ -3085,10 +3094,158 @@ function toAggregationType(aggregationFunction) {
|
|
|
3085
3094
|
return AggregationType.None;
|
|
3086
3095
|
}
|
|
3087
3096
|
}
|
|
3097
|
+
/**
|
|
3098
|
+
* @internal
|
|
3099
|
+
*/
|
|
3100
|
+
function toAggregationFunction(aggregationType) {
|
|
3101
|
+
switch (aggregationType) {
|
|
3102
|
+
case AggregationType.Count:
|
|
3103
|
+
return AggregationFunction.Count;
|
|
3104
|
+
case AggregationType.Sum:
|
|
3105
|
+
return AggregationFunction.Sum;
|
|
3106
|
+
case AggregationType.Avg:
|
|
3107
|
+
return AggregationFunction.Avg;
|
|
3108
|
+
case AggregationType.Min:
|
|
3109
|
+
return AggregationFunction.Min;
|
|
3110
|
+
case AggregationType.Max:
|
|
3111
|
+
return AggregationFunction.Max;
|
|
3112
|
+
case AggregationType.TopOne:
|
|
3113
|
+
return AggregationFunction.TopOne;
|
|
3114
|
+
default:
|
|
3115
|
+
return AggregationFunction.None;
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
/**
|
|
3119
|
+
* @internal
|
|
3120
|
+
*/
|
|
3121
|
+
function toAggregationEvalType(aggregationEval) {
|
|
3122
|
+
switch (aggregationEval) {
|
|
3123
|
+
case 'all':
|
|
3124
|
+
return AggregationEvalType.All;
|
|
3125
|
+
case 'distinct':
|
|
3126
|
+
return AggregationEvalType.Distinct;
|
|
3127
|
+
default:
|
|
3128
|
+
return AggregationEvalType.None;
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
/**
|
|
3132
|
+
* @internal
|
|
3133
|
+
*/
|
|
3134
|
+
function toAggregationEval(aggregationEvalType) {
|
|
3135
|
+
switch (aggregationEvalType) {
|
|
3136
|
+
case AggregationEvalType.All:
|
|
3137
|
+
return 'all';
|
|
3138
|
+
case AggregationEvalType.Distinct:
|
|
3139
|
+
return 'distinct';
|
|
3140
|
+
default:
|
|
3141
|
+
return 'none';
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
/**
|
|
3146
|
+
* @internal
|
|
3147
|
+
*/
|
|
3148
|
+
function toDatePartType(aggregationFunction) {
|
|
3149
|
+
switch (aggregationFunction) {
|
|
3150
|
+
case 'minute':
|
|
3151
|
+
return DatePartType.HourMinute;
|
|
3152
|
+
case 'hour':
|
|
3153
|
+
return DatePartType.Hour;
|
|
3154
|
+
case 'day':
|
|
3155
|
+
return DatePartType.Day;
|
|
3156
|
+
case 'weekday':
|
|
3157
|
+
return DatePartType.WeekDay;
|
|
3158
|
+
case 'week':
|
|
3159
|
+
return DatePartType.Week;
|
|
3160
|
+
case 'month':
|
|
3161
|
+
return DatePartType.Month;
|
|
3162
|
+
case 'year':
|
|
3163
|
+
return DatePartType.Year;
|
|
3164
|
+
default:
|
|
3165
|
+
return DatePartType.None;
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* @internal
|
|
3170
|
+
*/
|
|
3171
|
+
function toDatePart(aggregationType) {
|
|
3172
|
+
switch (aggregationType) {
|
|
3173
|
+
case DatePartType.HourMinute:
|
|
3174
|
+
return 'minute';
|
|
3175
|
+
case DatePartType.Hour:
|
|
3176
|
+
return 'hour';
|
|
3177
|
+
case DatePartType.Day:
|
|
3178
|
+
return 'day';
|
|
3179
|
+
case DatePartType.WeekDay:
|
|
3180
|
+
return 'weekday';
|
|
3181
|
+
case DatePartType.Week:
|
|
3182
|
+
return 'week';
|
|
3183
|
+
case DatePartType.Month:
|
|
3184
|
+
return 'month';
|
|
3185
|
+
case DatePartType.Year:
|
|
3186
|
+
return 'year';
|
|
3187
|
+
default:
|
|
3188
|
+
return 'none';
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* @internal
|
|
3194
|
+
*/
|
|
3195
|
+
function toStringFunctionType(functionType) {
|
|
3196
|
+
switch (functionType) {
|
|
3197
|
+
case FunctionType.Aggregation:
|
|
3198
|
+
return 'aggregation';
|
|
3199
|
+
case FunctionType.DatePart:
|
|
3200
|
+
return 'datePart';
|
|
3201
|
+
default:
|
|
3202
|
+
return 'none';
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* @internal
|
|
3207
|
+
*/
|
|
3208
|
+
function toNumericFunctionType(functionType) {
|
|
3209
|
+
switch (functionType) {
|
|
3210
|
+
case 'aggregation':
|
|
3211
|
+
return FunctionType.Aggregation;
|
|
3212
|
+
case 'datePart':
|
|
3213
|
+
return FunctionType.DatePart;
|
|
3214
|
+
default:
|
|
3215
|
+
return FunctionType.None;
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* @internal
|
|
3221
|
+
*/
|
|
3222
|
+
function toOrderDirection(sortDirection) {
|
|
3223
|
+
switch (sortDirection) {
|
|
3224
|
+
case 'asc':
|
|
3225
|
+
return OrderDirection.Asc;
|
|
3226
|
+
case 'desc':
|
|
3227
|
+
return OrderDirection.Desc;
|
|
3228
|
+
default:
|
|
3229
|
+
return OrderDirection.None;
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
/**
|
|
3233
|
+
* @internal
|
|
3234
|
+
*/
|
|
3235
|
+
function toSortDirection(orderDirection) {
|
|
3236
|
+
switch (orderDirection) {
|
|
3237
|
+
case OrderDirection.Asc:
|
|
3238
|
+
return 'asc';
|
|
3239
|
+
case OrderDirection.Desc:
|
|
3240
|
+
return 'desc';
|
|
3241
|
+
default:
|
|
3242
|
+
return 'none';
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
3088
3245
|
|
|
3089
3246
|
/**
|
|
3090
3247
|
* Generated bundle index. Do not edit.
|
|
3091
3248
|
*/
|
|
3092
3249
|
|
|
3093
|
-
export { AggregationEvalType, AggregationFunction, AggregationFunctionColumn, AggregationFunctionExpression, AggregationSubQueryColumn, AggregationSubQueryExpression, AggregationType, ArgumentEmptyException, ArgumentFunctionExpression, ArgumentOutOfRangeException, ArithmeticExpression, ArithmeticOperation, ArithmeticQueryColumn, BaseExpression, BaseFilter, BaseFilterableQuery, BaseQuery, BaseQueryColumn, BaseRegistry, BaseRequest, BaseRequestHandler, BaseValidator, BetweenFilter, BootstrapNotifier, ColumnExpression, CompareFilter, ComparisonType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, DataRequest, DataSchemaAttributeType, DataSchemaAttributeUsageType, DataSourceScope, DataValueType, DatePartFunctionColumn, DatePartFunctionExpression, DatePartType, DefaultValueSource, DeleteQuery, DesignTimeViewElementRegistry, DesignerToolGroupType, EMPTY_GUID, EXPRESSION_TYPE_MOCK, EntityQueryColumn, EntitySchemaQuery, ExistsFilter, ExpressionMock, ExpressionType, FeatureService, FilterGroup, FilterMock, FilterType, FunctionExpression, FunctionType, GlobalConvertersRegistryService, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InFilter, InsertQuery, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, IsNullFilter, ItemNotFoundException, LengthFunctionColumn, LengthFunctionExpression, LocalizableValue, LogicalOperatorType, MacrosFunctionColumn, MacrosFunctionExpression, MaskService, MethodInvokeRequest, Model, ModelInPageAction, ModelParameterType, NextHandlerAlreadySpecifiedException, OrderDirection, ParameterExpression, ParameterQueryColumn, PkgTopology, QueryMacrosType, QueryOperationType, RemoteEntriesRegistry, RequestHandlerRegistryService, RequestRegistryService, RightsService, SingleFilter, SubQueryColumn, SubQueryExpression, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, UpdateQuery, ValidationUtilities, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementRegistry, WindowFunctionColumn, WindowFunctionExpression, _bootstrapCrtModule, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, designTimeViewElementRegistryKey, generateGuid, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, instantiate, interfaceDesignerItemRegistryKey, isComponentPropertyBindable, isEmptyGuid, isGuid, localize, objectDeepKeys, registerAngularViewElement, registerViewElement, setDesignTimeViewElementMetadata, setInterfaceDesignerItemMetadata, setModuleMetadata, setRequestHandlerMetadata, setValidatorMetadata, setViewElementMetadata, toAggregationType, toPascalCase, validatorRegistryKey, viewElementRegistryKey };
|
|
3250
|
+
export { AggregationEvalType, AggregationFunction, AggregationFunctionColumn, AggregationFunctionExpression, AggregationSubQueryColumn, AggregationSubQueryExpression, AggregationType, ArgumentEmptyException, ArgumentFunctionExpression, ArgumentOutOfRangeException, ArithmeticExpression, ArithmeticOperation, ArithmeticQueryColumn, BaseExpression, BaseFilter, BaseFilterableQuery, BaseQuery, BaseQueryColumn, BaseRegistry, BaseRequest, BaseRequestHandler, BaseValidator, BetweenFilter, BootstrapNotifier, ColumnExpression, CompareFilter, ComparisonType, CrtConverter, CrtDesignTimeViewElement, CrtInject, CrtInput, CrtInputRegistrationConfig, CrtInterfaceDesignerItem, CrtModule, CrtOutput, CrtRequest, CrtRequestHandler, CrtValidationInput, CrtValidator, CrtViewElement, DataRequest, DataSchemaAttributeType, DataSchemaAttributeUsageType, DataSourceScope, DataValueType, DatePartFunctionColumn, DatePartFunctionExpression, DatePartType, DefaultValueSource, DeleteQuery, DesignTimeViewElementRegistry, DesignerToolGroupType, EMPTY_GUID, EXPRESSION_TYPE_MOCK, EntityQueryColumn, EntitySchemaQuery, ExistsFilter, ExpressionMock, ExpressionType, FeatureService, FilterGroup, FilterMock, FilterType, FunctionExpression, FunctionType, GlobalConvertersRegistryService, HandlerChainService, HandlerChainServicesRegistry, HandlerSourceType, HandlersOrderComparer, HttpClientService, ImplementUsingHandlerChain, InFilter, InsertQuery, InterfaceDesignerItemRegistrationConfig, InterfaceDesignerItemRegistry, InternalRequestHandlerRegistry, InternalRequestHandlerRegistryType, IsNullFilter, ItemNotFoundException, LengthFunctionColumn, LengthFunctionExpression, LocalizableValue, LogicalOperatorType, MacrosFunctionColumn, MacrosFunctionExpression, MaskService, MethodInvokeRequest, Model, ModelInPageAction, ModelParameterType, NextHandlerAlreadySpecifiedException, OrderDirection, ParameterExpression, ParameterQueryColumn, PkgTopology, QueryMacrosType, QueryOperationType, RemoteEntriesRegistry, RequestHandlerRegistryService, RequestRegistryService, RightsService, SelectLocalizationQuery, SingleFilter, SubQueryColumn, SubQueryExpression, SysSetting, SysSettingValue, SysSettingsService, SysValuesService, UpdateQuery, ValidationUtilities, ValidatorMapValue, ValidatorRegistry, ViewElementDataGroupType, ViewElementGroupType, ViewElementRegistry, WindowFunctionColumn, WindowFunctionExpression, _bootstrapCrtModule, applyLocalizeMetadataFn, bootstrapCrtModule, bootstrapCrtModuleHandlerChainServices, checkCrtTypeNamePascalCase, checkIfTypeRegistered, checkOnlyOneRegistration, checkTypeNameFormat, checkTypeNamePascalCase, crtInjectPrefix, crtInputPrefix, crtOutputPrefix, crtValidationInputPrefix, designTimeViewElementRegistryKey, generateGuid, getCrtInputsMetadata, getCrtOutputsMetadata, getCrtValidationInputsMetadata, getDesignTimeViewElementMetadata, getHandlerChainServiceMetadata, getInterfaceDesignerItemMetadata, getModuleMetadata, getRequestHandlerMetadata, getTypeDependencies, getValidatorMetadata, getViewElementMetadata, hasInterfaceDesignerItemMetadata, instantiate, interfaceDesignerItemRegistryKey, isComponentPropertyBindable, isEmptyGuid, isGuid, localize, objectDeepKeys, registerAngularViewElement, registerViewElement, setDesignTimeViewElementMetadata, setInterfaceDesignerItemMetadata, setModuleMetadata, setRequestHandlerMetadata, setValidatorMetadata, setViewElementMetadata, toAggregationEval, toAggregationEvalType, toAggregationFunction, toAggregationType, toDatePart, toDatePartType, toNumericFunctionType, toOrderDirection, toPascalCase, toSortDirection, toStringFunctionType, validatorRegistryKey, viewElementRegistryKey };
|
|
3094
3251
|
//# sourceMappingURL=creatio-devkit-common.mjs.map
|