@kontur.candy/generator 5.112.0-dead-picklist.3 → 5.112.0-fias-narrowed-suggests.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 +16 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47936,9 +47936,9 @@ function ensureArrayHasLength(items, length) {
47936
47936
  throw new Error(`Array should has length ${length}`);
47937
47937
  }
47938
47938
  }
47939
- function ensureArrayLengthGreaterThenOrEqual(items, length) {
47939
+ function ensureArrayLengthGreaterThenOrEqual(items, length, message) {
47940
47940
  if (!isLengthGreaterThenOrEqual(items, length)) {
47941
- throw new Error(`Array must have minimal length ${length}`);
47941
+ throw new Error(message !== null && message !== void 0 ? message : `Array must have minimal length ${length}`);
47942
47942
  }
47943
47943
  }
47944
47944
  function ensureNever(_neverArgument) {
@@ -48796,7 +48796,20 @@ function nonRegularFieldName(fieldName) {
48796
48796
  function ensureIsKnownViewModelFieldName(fieldName) {
48797
48797
  return getKnownViewModelFieldNames().has(fieldName) ? fieldName : (0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.reject)(`[${fieldName}] is not known ViewModelFieldName`);
48798
48798
  }
48799
- const keysOfViewModelFieldName = ["children", "error", "warning", "description", "id", "disabled", "visible", "disabledSending", "value", "autoValue", "autoFlag", "resourcesHash", "errorsCount", "warningsCount", "code", "picklist", "normalized", "emptyUnitsVisible", "pencilOpened", "ignoreAutoFlag", "disableValueAutoInit", "index", "regionCode", "district", "city", "settlement", "street", "house", "building", "room", "bossValue", "agentValue", "senderInn", "nameorg", "sum", "count", "normalizationSource", "referencedId", "dirtyChangedPathMasks"];
48799
+ const keysOfViewModelFieldName = ["children", "error", "warning", "description", "id", "disabled", "visible", "disabledSending", "value", "autoValue", "autoFlag", "resourcesHash", "errorsCount", "warningsCount", "code", "picklist", "normalized", "emptyUnitsVisible", "pencilOpened", "ignoreAutoFlag", "disableValueAutoInit",
48800
+ // <Kladr fields>
48801
+ "index", "regionCode", "district", "city", "settlement", "street", "house", "building", "room",
48802
+ // </Kladr fields>
48803
+
48804
+ // <Fias fields>
48805
+ "fiasId",
48806
+ // </Fias fields>
48807
+
48808
+ // <FIO fields>
48809
+ "bossValue", "agentValue", "senderInn", "nameorg",
48810
+ // </FIO fields>
48811
+
48812
+ "sum", "count", "normalizationSource", "referencedId", "dirtyChangedPathMasks"];
48800
48813
  const allKeysOfViewModelFieldName = keysOfViewModelFieldName;
48801
48814
  const names = new Set(allKeysOfViewModelFieldName);
48802
48815
  function getKnownViewModelFieldNames() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.112.0-dead-picklist.3",
3
+ "version": "5.112.0-fias-narrowed-suggests.0",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,