@kontur.candy/generator 5.22.0-descriptionvalidations.1 → 5.22.0-diadoc-domain.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.
Files changed (2) hide show
  1. package/dist/index.js +15 -107
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -77223,51 +77223,6 @@ const formulaExpressions = [FormulaSumExpression, FormulaArgumentExpression, For
77223
77223
 
77224
77224
  /***/ }),
77225
77225
 
77226
- /***/ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts":
77227
- /*!************************************************************************************************************************************!*\
77228
- !*** ./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts ***!
77229
- \************************************************************************************************************************************/
77230
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
77231
-
77232
- "use strict";
77233
- __webpack_require__.r(__webpack_exports__);
77234
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
77235
- /* harmony export */ "splitConditionDescriptionToParts": () => (/* binding */ splitConditionDescriptionToParts)
77236
- /* harmony export */ });
77237
- /* harmony import */ var _Formula__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
77238
-
77239
- function splitConditionDescriptionToParts(description) {
77240
- const reg = new RegExp(/\('|'\)/g);
77241
- const words = description.split(reg);
77242
- const splitWords = words.map(item => {
77243
- if (item.includes("{")) {
77244
- const word = item.substring(1, item.length - 1);
77245
- const argument = new _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArgumentExpression();
77246
- argument.select = word;
77247
- argument.type = "string";
77248
- return argument;
77249
- } else {
77250
- return item;
77251
- }
77252
- });
77253
- const wordsInFormulas = splitWords.map(part => {
77254
- if (part instanceof _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArgumentExpression) {
77255
- const formulaPart = new _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArgumentExpression();
77256
- formulaPart.select = part.select;
77257
- formulaPart.type = "string";
77258
- return formulaPart;
77259
- } else {
77260
- const stringPart = new _Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaConstExpression();
77261
- stringPart.type = "string";
77262
- stringPart.value = part;
77263
- return stringPart;
77264
- }
77265
- });
77266
- return wordsInFormulas;
77267
- }
77268
-
77269
- /***/ }),
77270
-
77271
77226
  /***/ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader.ts":
77272
77227
  /*!************************************************************************************************************************!*\
77273
77228
  !*** ./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaReader.ts ***!
@@ -79521,19 +79476,15 @@ __webpack_require__.r(__webpack_exports__);
79521
79476
  /* harmony export */ "KCXmlValidationGenerator": () => (/* binding */ KCXmlValidationGenerator)
79522
79477
  /* harmony export */ });
79523
79478
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
79524
- /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
79525
- /* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
79526
- /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
79527
- /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
79528
-
79529
-
79479
+ /* harmony import */ var _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../KCXmlGenerator/KCXmlGeneratorBase */ "./Generator/src/generators/KCXmlGenerator/KCXmlGeneratorBase.ts");
79480
+ /* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
79530
79481
 
79531
79482
 
79532
79483
 
79533
79484
  const emptyResult = `
79534
79485
  export default function kcXmlValidationConfigurator ({ form, ModelPath, ValidationFunction, KCCondition }) {}
79535
79486
  `;
79536
- class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.KCXmlGeneratorBase {
79487
+ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.KCXmlGeneratorBase {
79537
79488
  generate(kcXmlConditions) {
79538
79489
  const compiledConditions = Iterator.from(kcXmlConditions).map(condition => this.compileCondition(condition)).toArray();
79539
79490
  if (compiledConditions.length === 0) {
@@ -79552,23 +79503,15 @@ class KCXmlValidationGenerator extends _KCXmlGenerator_KCXmlGeneratorBase__WEBPA
79552
79503
  const target = this.schema.adjustPathMultiplicity(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createFromMask)(this.removeMultiplicity(this.removeAttributePrefix(condition.target)), false, _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.each)).normalize());
79553
79504
  const deps = [];
79554
79505
  const compiledExpression = this.compileExpression(prefix, target, condition.expression, deps);
79555
- const compiledDescriptionParts = (0,_AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_4__.splitConditionDescriptionToParts)((_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message");
79556
- let concatDescription;
79557
- if (compiledDescriptionParts.length > 1) {
79558
- concatDescription = new _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_1__.FormulaConcatExpression();
79559
- concatDescription.arguments = compiledDescriptionParts;
79560
- } else {
79561
- concatDescription = compiledDescriptionParts[0];
79562
- }
79563
- const compiledDescription = this.compileExpression(prefix, target, concatDescription, deps);
79564
79506
  const compiledTarget = this.modelPathInstance(target);
79565
- const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_3__.IterUtils.distinctBy(deps.map(x => ({
79507
+ const dependencyModelPaths = Array.from(_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_2__.IterUtils.distinctBy(deps.map(x => ({
79566
79508
  path: x.asDependencyModelPath(),
79567
- isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_2__.isDependencyWithoutChecks)(x),
79509
+ isIgnoreForChecks: (0,_KCXmlGenerator_KCXmlGeneratorBase__WEBPACK_IMPORTED_MODULE_1__.isDependencyWithoutChecks)(x),
79568
79510
  pathString: (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.createAbsoluteFromTokens)(x.asDependencyModelPath().getPathPartsAsArray().map(token => token === _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_0__.PathTokens.current ? "!" : token)).toLegacyPath()
79569
79511
  })).filter(x => !x.path.isEquals(target)), x => x.pathString));
79570
79512
  const compiledDeps = dependencyModelPaths.map(x => x.path).map(x => this.modelPathInstance(x)).join(", ");
79571
- const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `(expression) => ${compiledDescription}, "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
79513
+ const compiledDescription = (_condition$descriptio = condition.description) !== null && _condition$descriptio !== void 0 ? _condition$descriptio : "Error Message";
79514
+ const compiledDelegate = `context => KCCondition.execute(context, expression => ${compiledExpression}, ` + `() => "${compiledDescription}", "${(_condition$errorLevel = condition.errorLevel) !== null && _condition$errorLevel !== void 0 ? _condition$errorLevel : "Error"}")`;
79572
79515
  return `new ValidationFunction(${compiledTarget}, [${compiledDeps}], ${compiledDelegate})`;
79573
79516
  }
79574
79517
  }
@@ -80954,7 +80897,6 @@ __webpack_require__.r(__webpack_exports__);
80954
80897
  /* harmony export */ "ReduceCallExpression": () => (/* binding */ ReduceCallExpression),
80955
80898
  /* harmony export */ "ReduceMultipleCallExpression": () => (/* binding */ ReduceMultipleCallExpression),
80956
80899
  /* harmony export */ "CastExpression": () => (/* binding */ CastExpression),
80957
- /* harmony export */ "JoinExpression": () => (/* binding */ JoinExpression),
80958
80900
  /* harmony export */ "ConstExpression": () => (/* binding */ ConstExpression),
80959
80901
  /* harmony export */ "StringLiteralExpression": () => (/* binding */ StringLiteralExpression),
80960
80902
  /* harmony export */ "DecimalLiteralExpression": () => (/* binding */ DecimalLiteralExpression),
@@ -81499,25 +81441,6 @@ class CastExpression extends FLangExpression {
81499
81441
  return this.targetType;
81500
81442
  }
81501
81443
  }
81502
- class JoinExpression extends FLangExpression {
81503
- constructor(expression, separator) {
81504
- super();
81505
- this.expression = void 0;
81506
- this.separator = void 0;
81507
- this.expression = expression;
81508
- this.separator = separator;
81509
- }
81510
- getType() {
81511
- return BuildInTypeExpression.string;
81512
- }
81513
- *getChildNodes() {
81514
- yield this.expression;
81515
- yield this.separator;
81516
- }
81517
- convertToString() {
81518
- return `join(${this.expression.convertToString()}, ${this.separator.convertToString()})`;
81519
- }
81520
- }
81521
81444
  class ConstExpression extends FLangExpression {
81522
81445
  getChildNodes() {
81523
81446
  return [];
@@ -83478,10 +83401,8 @@ __webpack_require__.r(__webpack_exports__);
83478
83401
  /* harmony import */ var _Common_ModelPath_EachCurrentCollision__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../Common/ModelPath/EachCurrentCollision */ "./Common/ModelPath/EachCurrentCollision.ts");
83479
83402
  /* harmony import */ var _DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../DataSchema/DataSchemaUtils */ "./Generator/src/generators/DataSchema/DataSchemaUtils.ts");
83480
83403
  /* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
83481
- /* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/FormulaParsingDescription.ts");
83482
- /* harmony import */ var _NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../NodeTypeInfoHelper */ "./Generator/src/generators/ServerSideFLangNormalization/NodeTypeInfoHelper.ts");
83483
- /* harmony import */ var _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../Common/ModelPath/AbsoluteModelFieldPath */ "./Common/ModelPath/AbsoluteModelFieldPath.ts");
83484
-
83404
+ /* harmony import */ var _NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../NodeTypeInfoHelper */ "./Generator/src/generators/ServerSideFLangNormalization/NodeTypeInfoHelper.ts");
83405
+ /* harmony import */ var _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../Common/ModelPath/AbsoluteModelFieldPath */ "./Common/ModelPath/AbsoluteModelFieldPath.ts");
83485
83406
 
83486
83407
 
83487
83408
 
@@ -83520,8 +83441,8 @@ class ValidationRulesBuilder {
83520
83441
  const precalculationRules = [];
83521
83442
  return {
83522
83443
  target: fullTarget,
83523
- checkExpression: this.formulaExprConverter.compileExpressionToFlangExpression(condition.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_11__.AbsoluteModelFieldPath(fullTarget, condition.errorLevel === "Error" ? "error" : "warning"), x => precalculationRules.push(x)),
83524
- message: (0,_AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_FormulaParsingDescription__WEBPACK_IMPORTED_MODULE_9__.splitConditionDescriptionToParts)(condition.description).map(item => this.formulaExprConverter.compileExpressionToFlangExpression(item, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_11__.AbsoluteModelFieldPath(fullTarget, condition.errorLevel === "Error" ? "error" : "warning"), x => precalculationRules.push(x))),
83444
+ checkExpression: this.formulaExprConverter.compileExpressionToFlangExpression(condition.expression, prefix, new _Common_ModelPath_AbsoluteModelFieldPath__WEBPACK_IMPORTED_MODULE_10__.AbsoluteModelFieldPath(fullTarget, condition.errorLevel === "Error" ? "error" : "warning"), x => precalculationRules.push(x)),
83445
+ message: condition.description,
83525
83446
  errorLevel: condition.errorLevel,
83526
83447
  precalculationRules: precalculationRules
83527
83448
  };
@@ -83532,8 +83453,8 @@ class ValidationRulesBuilder {
83532
83453
  const path = current.target.toLegacyPath();
83533
83454
  const targetCtx = current.errorLevel === "Warning" ? ctx.warnings : ctx.errors;
83534
83455
  const currentExpression = (_targetCtx$path = targetCtx[path]) !== null && _targetCtx$path !== void 0 ? _targetCtx$path : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NullLiteralExpression();
83535
- const validationRule = this.generateValidationText(currentExpression, current);
83536
- targetCtx[path] = validationRule;
83456
+ const condition = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NegateUnaryExpression(current.checkExpression), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression("[" + JSON.stringify(current.message) + "]"), currentExpression);
83457
+ targetCtx[path] = condition;
83537
83458
  return ctx;
83538
83459
  }, {
83539
83460
  errors: {},
@@ -83541,22 +83462,9 @@ class ValidationRulesBuilder {
83541
83462
  });
83542
83463
  return allRulesCheck;
83543
83464
  }
83544
- generateValidationText(current, next) {
83545
- const validationText = next.message.reduce((acc, item) => {
83546
- if (item instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression) {
83547
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConcatStringsExpression(acc, (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_8__.castOperandToStringIfNeed)(item));
83548
- } else if (item instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ValueReferenceExpression) {
83549
- return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConcatStringsExpression(acc, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.JoinExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DeserializeEnumerationExpression([item], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BoolLiteralExpression(true)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression(", ")));
83550
- } else {
83551
- throw new Error(`Invalid WithDescription ${item.toString()}`);
83552
- }
83553
- }, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression(""));
83554
- const condition = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.NegateUnaryExpression(next.checkExpression), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConcatStringsExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.ConcatStringsExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression(`["`), validationText), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression(`"]`)), current);
83555
- return condition;
83556
- }
83557
83465
  *buildSugarValidationRules() {
83558
83466
  const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
83559
- const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_3__.FLangValidationBuildContext(this.formSchemaRng, this.formulaExprConverter, new _NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_10__.NodeTypeInfoHelper(this.formSchemaRng, this.typesRegistry, this.useSchemaValidations));
83467
+ const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_3__.FLangValidationBuildContext(this.formSchemaRng, this.formulaExprConverter, new _NodeTypeInfoHelper__WEBPACK_IMPORTED_MODULE_9__.NodeTypeInfoHelper(this.formSchemaRng, this.typesRegistry, this.useSchemaValidations));
83560
83468
  const sugarRules = Iterator.from(converter.buildFLangValidations(context, this.formSchemaRng)).reduce((ctx, current) => {
83561
83469
  const statement = current.statement;
83562
83470
  if (!(statement instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.SetStatement)) {
@@ -110397,7 +110305,7 @@ let EnumerationTypeCheckNode = (_dec7 = (0,_markupGenerator_Serializer_SugarSeri
110397
110305
  writable: true,
110398
110306
  initializer: null
110399
110307
  })), _class7)) || _class6);
110400
- let AttachmentsTypeCheckNode = (_dec10 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("attachments", `Задаёт проверку для вложений.`), _dec11 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("extentions", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.array(_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string), `Список допустимых расширений прикладываемого файла. Например ['jpeg', 'jpg']`), _dec12 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maxSize", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Максимальный размер прикладываемого файла.`), _dec13 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fnsConvertFileExtentions", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.array(_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string), `Опреляет список расширений файлов, которые будут конвертироваться по требованиям ФНС.`), _dec14 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("count", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Максимальное количество приложенных файлов`), _dec15 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("totalSize", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Ограничивает общий размер прилоеженных файлов`), _dec16 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("countExceededDescription", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Сообщение если общее количество вложений превышает максимальное`), _dec10(_class9 = (_class10 = class AttachmentsTypeCheckNode extends TypeCheckNodeBase {
110308
+ let AttachmentsTypeCheckNode = (_dec10 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.sugarNode)("attachments", `Задаёт проверку для вложений.`), _dec11 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("extentions", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.array(_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string), `Список допустимых расширений прикладываемого файла. Например ['jpeg', 'jpg']`), _dec12 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("maxSize", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Максимальный размер прикладываемого файла.`), _dec13 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("fnsConvertFileExtentions", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.array(_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.string), `Опреляет список расширений файлов, которые будут конвертироваться по требованиям ФНС. Доступные расширения pdf, tiff, png, jpeg.`), _dec14 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("count", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Максимальное количество приложенных файлов`), _dec15 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("totalSize", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.number, `Ограничивает общий размер прилоеженных файлов`), _dec16 = (0,_markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attr)("countExceededDescription", _markupGenerator_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_4__.attrType.localizedString, `Сообщение если общее количество вложений превышает максимальное`), _dec10(_class9 = (_class10 = class AttachmentsTypeCheckNode extends TypeCheckNodeBase {
110401
110309
  constructor(...args) {
110402
110310
  super(...args);
110403
110311
  this.name = "attachments";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.22.0-descriptionvalidations.1",
3
+ "version": "5.22.0-diadoc-domain.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,