abra-flexi 0.5.7 → 0.7.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/dist/index.cjs CHANGED
@@ -21,6 +21,30 @@ let StitkyCacheStrategy = /* @__PURE__ */ function(StitkyCacheStrategy$1) {
21
21
  StitkyCacheStrategy$1[StitkyCacheStrategy$1["Eager"] = 2] = "Eager";
22
22
  return StitkyCacheStrategy$1;
23
23
  }({});
24
+ /**
25
+ * Controls how nested entities in 'unknown' state are handled during
26
+ * serialisation in save(). See spec §7 — Nested entity encoding.
27
+ */
28
+ let NestedUnknownStrategy = /* @__PURE__ */ function(NestedUnknownStrategy$1) {
29
+ /**
30
+ * Resolve each 'unknown' nested entity via _resolveId before encoding.
31
+ * Falls back to ByIdentifier behaviour if resolution returns null.
32
+ * This is the default.
33
+ */
34
+ NestedUnknownStrategy$1["Resolve"] = "resolve";
35
+ /**
36
+ * Encode using the available identifier (kod / ext) without a network call.
37
+ * Throws AFError(MISSING_IDENTIFIER) if no identifier is present.
38
+ */
39
+ NestedUnknownStrategy$1["ByIdentifier"] = "by-identifier";
40
+ /**
41
+ * Throw AFError(UNRESOLVED_ENTITY) immediately if any nested entity is
42
+ * still 'unknown' at encode time. The caller must resolve all relations
43
+ * before calling save().
44
+ */
45
+ NestedUnknownStrategy$1["Strict"] = "strict";
46
+ return NestedUnknownStrategy$1;
47
+ }({});
24
48
  const NO_LIMIT = 0;
25
49
  let AFQueryDetail = /* @__PURE__ */ function(AFQueryDetail$1) {
26
50
  AFQueryDetail$1["FULL"] = "full";
@@ -60,6 +84,10 @@ let AFErrorCode = /* @__PURE__ */ function(AFErrorCode$1) {
60
84
  AFErrorCode$1["PASSWORD_EMPTY"] = "PASSWORD_EMPTY";
61
85
  AFErrorCode$1["PATH_WITHOUT_COMPANY"] = "PATH_WITHOUT_COMPANY";
62
86
  AFErrorCode$1["PATH_WITHOUT_EVIDENCE"] = "PATH_WITHOUT_EVIDENCE";
87
+ AFErrorCode$1["INVALID_IDENTIFIER"] = "INVALID_IDENTIFIER";
88
+ AFErrorCode$1["ID_MISMATCH"] = "ID_MISMATCH";
89
+ AFErrorCode$1["MISSING_IDENTIFIER"] = "MISSING_IDENTIFIER";
90
+ AFErrorCode$1["UNRESOLVED_ENTITY"] = "UNRESOLVED_ENTITY";
63
91
  AFErrorCode$1["UNKNOWN"] = "UNKNOWN";
64
92
  return AFErrorCode$1;
65
93
  }({});
@@ -184,7 +212,36 @@ var AFEntity = class AFEntity {
184
212
  static {
185
213
  this.propAnnotations = {};
186
214
  }
215
+ /**
216
+ * Server-assigned internal id. Readonly — never set by application code.
217
+ * Use api.resolveStubId() or api.resolve() to obtain a confirmed id.
218
+ */
219
+ get id() {
220
+ return this._id;
221
+ }
222
+ /**
223
+ * @internal — called only by AFApiClient. Do NOT call from application code.
224
+ * Sets the confirmed server id and transitions state to 'exists'.
225
+ */
226
+ _setId(id) {
227
+ this._id = id;
228
+ this._state = "exists";
229
+ }
230
+ /**
231
+ * Returns the entity's existence state:
232
+ * - true — definitely no server record ('new')
233
+ * - undefined — has identifiers but existence unconfirmed ('unknown')
234
+ * - false — server existence confirmed ('exists')
235
+ */
236
+ get isNew() {
237
+ switch (this._state) {
238
+ case "new": return true;
239
+ case "unknown": return;
240
+ case "exists": return false;
241
+ }
242
+ }
187
243
  constructor(stitkyCache) {
244
+ this._state = "new";
188
245
  this._orig = {};
189
246
  this._stitkyCache = stitkyCache;
190
247
  }
@@ -200,9 +257,6 @@ var AFEntity = class AFEntity {
200
257
  get pristine() {
201
258
  return !this.hasChanged();
202
259
  }
203
- get isNew() {
204
- return !this.id && !this.kod;
205
- }
206
260
  getCotr() {
207
261
  return this.constructor;
208
262
  }
@@ -212,14 +266,20 @@ var AFEntity = class AFEntity {
212
266
  const v = self[key];
213
267
  const origV = self._orig[key];
214
268
  const annot = this.getCotr().propAnnotations[key];
215
- if (!annot) throw new AFError(AFErrorCode.PROPERTY_NOT_FOUND, `Property ${key} not found on entity ${AFEntity.EntityName}.`);
269
+ if (!annot) throw new AFError(AFErrorCode.PROPERTY_NOT_FOUND, `Property ${key} not found on entity ${this.getCotr().EntityName}.`);
216
270
  if (v === void 0) return false;
271
+ if (origV === v && v === null) return false;
217
272
  if (annot.type === PropertyType.Relation && annot.isArray) {
218
273
  if (!origV) return true;
219
274
  if (!arraysEqual(origV, v)) return true;
220
275
  for (const it of v) if (it.hasChanged()) return true;
221
276
  return false;
222
277
  }
278
+ if (annot.type === PropertyType.Relation) {
279
+ if (origV !== v) return true;
280
+ if (v instanceof AFEntity && v.hasChanged()) return true;
281
+ return false;
282
+ }
223
283
  return origV !== v;
224
284
  }
225
285
  for (const key$1 of Object.keys(this.getCotr().propAnnotations)) if (this.hasChanged(key$1)) return true;
@@ -235,9 +295,9 @@ var AFEntity = class AFEntity {
235
295
  return keys;
236
296
  }
237
297
  reset(key) {
238
- if (!key) throw new AFError(AFErrorCode.PROPERTY_NOT_FOUND, `To reset all properties on entity ${this.getCotr().EntityName} use force (1st arg set tu true).`);
298
+ if (!key) throw new AFError(AFErrorCode.PROPERTY_NOT_FOUND, `To reset all properties on entity ${this.getCotr().EntityName} use force (1st arg set to true).`);
239
299
  if (typeof key === "string") {
240
- this[key] = this._orig || void 0;
300
+ this[key] = this._orig[key] || void 0;
241
301
  return;
242
302
  }
243
303
  for (const keyin of Object.keys(this.getCotr().propAnnotations)) this.reset(keyin);
@@ -509,11 +569,6 @@ var AFKontakt = class extends AFEntity {
509
569
  }
510
570
  static {
511
571
  this.propAnnotations = {
512
- id: {
513
- key: "id",
514
- type: PropertyType.Integer,
515
- isArray: false
516
- },
517
572
  lastUpdate: {
518
573
  key: "lastUpdate",
519
574
  type: PropertyType.DateTime,
@@ -1933,11 +1988,6 @@ var AFAdresar = class extends AFEntity {
1933
1988
  }
1934
1989
  static {
1935
1990
  this.propAnnotations = {
1936
- id: {
1937
- key: "id",
1938
- type: PropertyType.Integer,
1939
- isArray: false
1940
- },
1941
1991
  lastUpdate: {
1942
1992
  key: "lastUpdate",
1943
1993
  type: PropertyType.DateTime,
@@ -2419,11 +2469,6 @@ var AFUdalost = class extends AFEntity {
2419
2469
  }
2420
2470
  static {
2421
2471
  this.propAnnotations = {
2422
- id: {
2423
- key: "id",
2424
- type: PropertyType.Integer,
2425
- isArray: false
2426
- },
2427
2472
  lastUpdate: {
2428
2473
  key: "lastUpdate",
2429
2474
  type: PropertyType.DateTime,
@@ -2677,11 +2722,6 @@ var AFTypAktivity = class extends AFEntity {
2677
2722
  }
2678
2723
  static {
2679
2724
  this.propAnnotations = {
2680
- id: {
2681
- key: "id",
2682
- type: PropertyType.Integer,
2683
- isArray: false
2684
- },
2685
2725
  lastUpdate: {
2686
2726
  key: "lastUpdate",
2687
2727
  type: PropertyType.DateTime,
@@ -2789,11 +2829,6 @@ var AFTypNakladu = class extends AFEntity {
2789
2829
  }
2790
2830
  static {
2791
2831
  this.propAnnotations = {
2792
- id: {
2793
- key: "id",
2794
- type: PropertyType.Integer,
2795
- isArray: false
2796
- },
2797
2832
  lastUpdate: {
2798
2833
  key: "lastUpdate",
2799
2834
  type: PropertyType.DateTime,
@@ -2883,11 +2918,6 @@ var AFNaklad = class extends AFEntity {
2883
2918
  }
2884
2919
  static {
2885
2920
  this.propAnnotations = {
2886
- id: {
2887
- key: "id",
2888
- type: PropertyType.Integer,
2889
- isArray: false
2890
- },
2891
2921
  lastUpdate: {
2892
2922
  key: "lastUpdate",
2893
2923
  type: PropertyType.DateTime,
@@ -2979,11 +3009,6 @@ var AFAdresarBankovniUcet = class extends AFEntity {
2979
3009
  }
2980
3010
  static {
2981
3011
  this.propAnnotations = {
2982
- id: {
2983
- key: "id",
2984
- type: PropertyType.Integer,
2985
- isArray: false
2986
- },
2987
3012
  lastUpdate: {
2988
3013
  key: "lastUpdate",
2989
3014
  type: PropertyType.DateTime,
@@ -3123,11 +3148,6 @@ var AFSkupinaFirem = class extends AFEntity {
3123
3148
  }
3124
3149
  static {
3125
3150
  this.propAnnotations = {
3126
- id: {
3127
- key: "id",
3128
- type: PropertyType.Integer,
3129
- isArray: false
3130
- },
3131
3151
  lastUpdate: {
3132
3152
  key: "lastUpdate",
3133
3153
  type: PropertyType.DateTime,
@@ -3231,11 +3251,6 @@ var AFSmlouva = class extends AFEntity {
3231
3251
  }
3232
3252
  static {
3233
3253
  this.propAnnotations = {
3234
- id: {
3235
- key: "id",
3236
- type: PropertyType.Integer,
3237
- isArray: false
3238
- },
3239
3254
  lastUpdate: {
3240
3255
  key: "lastUpdate",
3241
3256
  type: PropertyType.DateTime,
@@ -3585,11 +3600,6 @@ var AFDodavatelskaSmlouva = class extends AFEntity {
3585
3600
  }
3586
3601
  static {
3587
3602
  this.propAnnotations = {
3588
- id: {
3589
- key: "id",
3590
- type: PropertyType.Integer,
3591
- isArray: false
3592
- },
3593
3603
  lastUpdate: {
3594
3604
  key: "lastUpdate",
3595
3605
  type: PropertyType.DateTime,
@@ -3924,11 +3934,6 @@ var AFTypSmlouvy = class extends AFEntity {
3924
3934
  }
3925
3935
  static {
3926
3936
  this.propAnnotations = {
3927
- id: {
3928
- key: "id",
3929
- type: PropertyType.Integer,
3930
- isArray: false
3931
- },
3932
3937
  lastUpdate: {
3933
3938
  key: "lastUpdate",
3934
3939
  type: PropertyType.DateTime,
@@ -4115,11 +4120,6 @@ var AFDodavatelskyTypSmlouvy = class extends AFEntity {
4115
4120
  }
4116
4121
  static {
4117
4122
  this.propAnnotations = {
4118
- id: {
4119
- key: "id",
4120
- type: PropertyType.Integer,
4121
- isArray: false
4122
- },
4123
4123
  lastUpdate: {
4124
4124
  key: "lastUpdate",
4125
4125
  type: PropertyType.DateTime,
@@ -4274,11 +4274,6 @@ var AFStavSmlouvy = class extends AFEntity {
4274
4274
  }
4275
4275
  static {
4276
4276
  this.propAnnotations = {
4277
- id: {
4278
- key: "id",
4279
- type: PropertyType.Integer,
4280
- isArray: false
4281
- },
4282
4277
  lastUpdate: {
4283
4278
  key: "lastUpdate",
4284
4279
  type: PropertyType.DateTime,
@@ -4366,11 +4361,6 @@ var AFSmlouvaPolozka = class extends AFEntity {
4366
4361
  }
4367
4362
  static {
4368
4363
  this.propAnnotations = {
4369
- id: {
4370
- key: "id",
4371
- type: PropertyType.Integer,
4372
- isArray: false
4373
- },
4374
4364
  lastUpdate: {
4375
4365
  key: "lastUpdate",
4376
4366
  type: PropertyType.DateTime,
@@ -4665,11 +4655,6 @@ var AFSmlouvaZurnal = class extends AFEntity {
4665
4655
  }
4666
4656
  static {
4667
4657
  this.propAnnotations = {
4668
- id: {
4669
- key: "id",
4670
- type: PropertyType.Integer,
4671
- isArray: false
4672
- },
4673
4658
  lastUpdate: {
4674
4659
  key: "lastUpdate",
4675
4660
  type: PropertyType.DateTime,
@@ -4734,11 +4719,6 @@ var AFObjednavkaPrijata = class extends AFEntity {
4734
4719
  }
4735
4720
  static {
4736
4721
  this.propAnnotations = {
4737
- id: {
4738
- key: "id",
4739
- type: PropertyType.Integer,
4740
- isArray: false
4741
- },
4742
4722
  lastUpdate: {
4743
4723
  key: "lastUpdate",
4744
4724
  type: PropertyType.DateTime,
@@ -5497,11 +5477,6 @@ var AFObjednavkaPrijataPolozka = class extends AFEntity {
5497
5477
  }
5498
5478
  static {
5499
5479
  this.propAnnotations = {
5500
- id: {
5501
- key: "id",
5502
- type: PropertyType.Integer,
5503
- isArray: false
5504
- },
5505
5480
  lastUpdate: {
5506
5481
  key: "lastUpdate",
5507
5482
  type: PropertyType.DateTime,
@@ -5980,11 +5955,6 @@ var AFRadaObjednavkyPrijate = class extends AFEntity {
5980
5955
  }
5981
5956
  static {
5982
5957
  this.propAnnotations = {
5983
- id: {
5984
- key: "id",
5985
- type: PropertyType.Integer,
5986
- isArray: false
5987
- },
5988
5958
  lastUpdate: {
5989
5959
  key: "lastUpdate",
5990
5960
  type: PropertyType.DateTime,
@@ -6078,11 +6048,6 @@ var AFTypObjednavkyPrijate = class extends AFEntity {
6078
6048
  }
6079
6049
  static {
6080
6050
  this.propAnnotations = {
6081
- id: {
6082
- key: "id",
6083
- type: PropertyType.Integer,
6084
- isArray: false
6085
- },
6086
6051
  lastUpdate: {
6087
6052
  key: "lastUpdate",
6088
6053
  type: PropertyType.DateTime,
@@ -6379,11 +6344,6 @@ var AFObjednavkaVydana = class extends AFEntity {
6379
6344
  }
6380
6345
  static {
6381
6346
  this.propAnnotations = {
6382
- id: {
6383
- key: "id",
6384
- type: PropertyType.Integer,
6385
- isArray: false
6386
- },
6387
6347
  lastUpdate: {
6388
6348
  key: "lastUpdate",
6389
6349
  type: PropertyType.DateTime,
@@ -7015,11 +6975,6 @@ var AFObjednavkaVydanaPolozka = class extends AFEntity {
7015
6975
  }
7016
6976
  static {
7017
6977
  this.propAnnotations = {
7018
- id: {
7019
- key: "id",
7020
- type: PropertyType.Integer,
7021
- isArray: false
7022
- },
7023
6978
  lastUpdate: {
7024
6979
  key: "lastUpdate",
7025
6980
  type: PropertyType.DateTime,
@@ -7403,11 +7358,6 @@ var AFTypObjednavkyVydane = class extends AFEntity {
7403
7358
  }
7404
7359
  static {
7405
7360
  this.propAnnotations = {
7406
- id: {
7407
- key: "id",
7408
- type: PropertyType.Integer,
7409
- isArray: false
7410
- },
7411
7361
  lastUpdate: {
7412
7362
  key: "lastUpdate",
7413
7363
  type: PropertyType.DateTime,
@@ -7616,11 +7566,6 @@ var AFRadaObjednavkyVydane = class extends AFEntity {
7616
7566
  }
7617
7567
  static {
7618
7568
  this.propAnnotations = {
7619
- id: {
7620
- key: "id",
7621
- type: PropertyType.Integer,
7622
- isArray: false
7623
- },
7624
7569
  lastUpdate: {
7625
7570
  key: "lastUpdate",
7626
7571
  type: PropertyType.DateTime,
@@ -7717,11 +7662,6 @@ var AFPoptavkaVydana = class extends AFEntity {
7717
7662
  }
7718
7663
  static {
7719
7664
  this.propAnnotations = {
7720
- id: {
7721
- key: "id",
7722
- type: PropertyType.Integer,
7723
- isArray: false
7724
- },
7725
7665
  lastUpdate: {
7726
7666
  key: "lastUpdate",
7727
7667
  type: PropertyType.DateTime,
@@ -8323,11 +8263,6 @@ var AFPoptavkaVydanaPolozka = class extends AFEntity {
8323
8263
  }
8324
8264
  static {
8325
8265
  this.propAnnotations = {
8326
- id: {
8327
- key: "id",
8328
- type: PropertyType.Integer,
8329
- isArray: false
8330
- },
8331
8266
  lastUpdate: {
8332
8267
  key: "lastUpdate",
8333
8268
  type: PropertyType.DateTime,
@@ -8674,11 +8609,6 @@ var AFTypPoptavkyVydane = class extends AFEntity {
8674
8609
  }
8675
8610
  static {
8676
8611
  this.propAnnotations = {
8677
- id: {
8678
- key: "id",
8679
- type: PropertyType.Integer,
8680
- isArray: false
8681
- },
8682
8612
  lastUpdate: {
8683
8613
  key: "lastUpdate",
8684
8614
  type: PropertyType.DateTime,
@@ -8869,11 +8799,6 @@ var AFRadaPoptavkyVydane = class extends AFEntity {
8869
8799
  }
8870
8800
  static {
8871
8801
  this.propAnnotations = {
8872
- id: {
8873
- key: "id",
8874
- type: PropertyType.Integer,
8875
- isArray: false
8876
- },
8877
8802
  lastUpdate: {
8878
8803
  key: "lastUpdate",
8879
8804
  type: PropertyType.DateTime,
@@ -8970,11 +8895,6 @@ var AFPoptavkaPrijata = class extends AFEntity {
8970
8895
  }
8971
8896
  static {
8972
8897
  this.propAnnotations = {
8973
- id: {
8974
- key: "id",
8975
- type: PropertyType.Integer,
8976
- isArray: false
8977
- },
8978
8898
  lastUpdate: {
8979
8899
  key: "lastUpdate",
8980
8900
  type: PropertyType.DateTime,
@@ -9602,11 +9522,6 @@ var AFPoptavkaPrijataPolozka = class extends AFEntity {
9602
9522
  }
9603
9523
  static {
9604
9524
  this.propAnnotations = {
9605
- id: {
9606
- key: "id",
9607
- type: PropertyType.Integer,
9608
- isArray: false
9609
- },
9610
9525
  lastUpdate: {
9611
9526
  key: "lastUpdate",
9612
9527
  type: PropertyType.DateTime,
@@ -10033,11 +9948,6 @@ var AFTypPoptavkyPrijate = class extends AFEntity {
10033
9948
  }
10034
9949
  static {
10035
9950
  this.propAnnotations = {
10036
- id: {
10037
- key: "id",
10038
- type: PropertyType.Integer,
10039
- isArray: false
10040
- },
10041
9951
  lastUpdate: {
10042
9952
  key: "lastUpdate",
10043
9953
  type: PropertyType.DateTime,
@@ -10230,11 +10140,6 @@ var AFRadaPoptavkyPrijate = class extends AFEntity {
10230
10140
  }
10231
10141
  static {
10232
10142
  this.propAnnotations = {
10233
- id: {
10234
- key: "id",
10235
- type: PropertyType.Integer,
10236
- isArray: false
10237
- },
10238
10143
  lastUpdate: {
10239
10144
  key: "lastUpdate",
10240
10145
  type: PropertyType.DateTime,
@@ -10331,11 +10236,6 @@ var AFNabidkaVydana = class extends AFEntity {
10331
10236
  }
10332
10237
  static {
10333
10238
  this.propAnnotations = {
10334
- id: {
10335
- key: "id",
10336
- type: PropertyType.Integer,
10337
- isArray: false
10338
- },
10339
10239
  lastUpdate: {
10340
10240
  key: "lastUpdate",
10341
10241
  type: PropertyType.DateTime,
@@ -10968,11 +10868,6 @@ var AFNabidkaVydanaPolozka = class extends AFEntity {
10968
10868
  }
10969
10869
  static {
10970
10870
  this.propAnnotations = {
10971
- id: {
10972
- key: "id",
10973
- type: PropertyType.Integer,
10974
- isArray: false
10975
- },
10976
10871
  lastUpdate: {
10977
10872
  key: "lastUpdate",
10978
10873
  type: PropertyType.DateTime,
@@ -11399,11 +11294,6 @@ var AFTypNabidkyVydane = class extends AFEntity {
11399
11294
  }
11400
11295
  static {
11401
11296
  this.propAnnotations = {
11402
- id: {
11403
- key: "id",
11404
- type: PropertyType.Integer,
11405
- isArray: false
11406
- },
11407
11297
  lastUpdate: {
11408
11298
  key: "lastUpdate",
11409
11299
  type: PropertyType.DateTime,
@@ -11606,11 +11496,6 @@ var AFRadaNabidkyVydane = class extends AFEntity {
11606
11496
  }
11607
11497
  static {
11608
11498
  this.propAnnotations = {
11609
- id: {
11610
- key: "id",
11611
- type: PropertyType.Integer,
11612
- isArray: false
11613
- },
11614
11499
  lastUpdate: {
11615
11500
  key: "lastUpdate",
11616
11501
  type: PropertyType.DateTime,
@@ -11707,11 +11592,6 @@ var AFNabidkaPrijata = class extends AFEntity {
11707
11592
  }
11708
11593
  static {
11709
11594
  this.propAnnotations = {
11710
- id: {
11711
- key: "id",
11712
- type: PropertyType.Integer,
11713
- isArray: false
11714
- },
11715
11595
  lastUpdate: {
11716
11596
  key: "lastUpdate",
11717
11597
  type: PropertyType.DateTime,
@@ -12326,11 +12206,6 @@ var AFTypNabidkyPrijate = class extends AFEntity {
12326
12206
  }
12327
12207
  static {
12328
12208
  this.propAnnotations = {
12329
- id: {
12330
- key: "id",
12331
- type: PropertyType.Integer,
12332
- isArray: false
12333
- },
12334
12209
  lastUpdate: {
12335
12210
  key: "lastUpdate",
12336
12211
  type: PropertyType.DateTime,
@@ -12517,11 +12392,6 @@ var AFNabidkaPrijataPolozka = class extends AFEntity {
12517
12392
  }
12518
12393
  static {
12519
12394
  this.propAnnotations = {
12520
- id: {
12521
- key: "id",
12522
- type: PropertyType.Integer,
12523
- isArray: false
12524
- },
12525
12395
  lastUpdate: {
12526
12396
  key: "lastUpdate",
12527
12397
  type: PropertyType.DateTime,
@@ -12868,11 +12738,6 @@ var AFRadaNabidkyPrijate = class extends AFEntity {
12868
12738
  }
12869
12739
  static {
12870
12740
  this.propAnnotations = {
12871
- id: {
12872
- key: "id",
12873
- type: PropertyType.Integer,
12874
- isArray: false
12875
- },
12876
12741
  lastUpdate: {
12877
12742
  key: "lastUpdate",
12878
12743
  type: PropertyType.DateTime,
@@ -12975,11 +12840,6 @@ var AFFakturaPrijata = class extends AFEntity {
12975
12840
  }
12976
12841
  static {
12977
12842
  this.propAnnotations = {
12978
- id: {
12979
- key: "id",
12980
- type: PropertyType.Integer,
12981
- isArray: false
12982
- },
12983
12843
  lastUpdate: {
12984
12844
  key: "lastUpdate",
12985
12845
  type: PropertyType.DateTime,
@@ -13940,11 +13800,6 @@ var AFFakturaPrijataPolozka = class extends AFEntity {
13940
13800
  }
13941
13801
  static {
13942
13802
  this.propAnnotations = {
13943
- id: {
13944
- key: "id",
13945
- type: PropertyType.Integer,
13946
- isArray: false
13947
- },
13948
13803
  lastUpdate: {
13949
13804
  key: "lastUpdate",
13950
13805
  type: PropertyType.DateTime,
@@ -14601,11 +14456,6 @@ var AFTypFakturyPrijate = class extends AFEntity {
14601
14456
  }
14602
14457
  static {
14603
14458
  this.propAnnotations = {
14604
- id: {
14605
- key: "id",
14606
- type: PropertyType.Integer,
14607
- isArray: false
14608
- },
14609
14459
  lastUpdate: {
14610
14460
  key: "lastUpdate",
14611
14461
  type: PropertyType.DateTime,
@@ -14932,11 +14782,6 @@ var AFRadaFakturyPrijate = class extends AFEntity {
14932
14782
  }
14933
14783
  static {
14934
14784
  this.propAnnotations = {
14935
- id: {
14936
- key: "id",
14937
- type: PropertyType.Integer,
14938
- isArray: false
14939
- },
14940
14785
  lastUpdate: {
14941
14786
  key: "lastUpdate",
14942
14787
  type: PropertyType.DateTime,
@@ -15030,11 +14875,6 @@ var AFPredpisZauctovani = class extends AFEntity {
15030
14875
  }
15031
14876
  static {
15032
14877
  this.propAnnotations = {
15033
- id: {
15034
- key: "id",
15035
- type: PropertyType.Integer,
15036
- isArray: false
15037
- },
15038
14878
  lastUpdate: {
15039
14879
  key: "lastUpdate",
15040
14880
  type: PropertyType.DateTime,
@@ -15222,11 +15062,6 @@ var AFDefStore = class extends AFEntity {
15222
15062
  }
15223
15063
  static {
15224
15064
  this.propAnnotations = {
15225
- id: {
15226
- key: "id",
15227
- type: PropertyType.Integer,
15228
- isArray: false
15229
- },
15230
15065
  lastUpdate: {
15231
15066
  key: "lastUpdate",
15232
15067
  type: PropertyType.DateTime,
@@ -15336,11 +15171,6 @@ var AFRada = class extends AFEntity {
15336
15171
  }
15337
15172
  static {
15338
15173
  this.propAnnotations = {
15339
- id: {
15340
- key: "id",
15341
- type: PropertyType.Integer,
15342
- isArray: false
15343
- },
15344
15174
  lastUpdate: {
15345
15175
  key: "lastUpdate",
15346
15176
  type: PropertyType.DateTime,
@@ -15434,11 +15264,6 @@ var AFRocniRada = class extends AFEntity {
15434
15264
  }
15435
15265
  static {
15436
15266
  this.propAnnotations = {
15437
- id: {
15438
- key: "id",
15439
- type: PropertyType.Integer,
15440
- isArray: false
15441
- },
15442
15267
  lastUpdate: {
15443
15268
  key: "lastUpdate",
15444
15269
  type: PropertyType.DateTime,
@@ -15516,11 +15341,6 @@ var AFMistoUrceni = class extends AFEntity {
15516
15341
  }
15517
15342
  static {
15518
15343
  this.propAnnotations = {
15519
- id: {
15520
- key: "id",
15521
- type: PropertyType.Integer,
15522
- isArray: false
15523
- },
15524
15344
  lastUpdate: {
15525
15345
  key: "lastUpdate",
15526
15346
  type: PropertyType.DateTime,
@@ -15688,11 +15508,6 @@ var AFText = class extends AFEntity {
15688
15508
  }
15689
15509
  static {
15690
15510
  this.propAnnotations = {
15691
- id: {
15692
- key: "id",
15693
- type: PropertyType.Integer,
15694
- isArray: false
15695
- },
15696
15511
  lastUpdate: {
15697
15512
  key: "lastUpdate",
15698
15513
  type: PropertyType.DateTime,
@@ -17556,11 +17371,6 @@ var AFPokladniPohyb = class extends AFEntity {
17556
17371
  }
17557
17372
  static {
17558
17373
  this.propAnnotations = {
17559
- id: {
17560
- key: "id",
17561
- type: PropertyType.Integer,
17562
- isArray: false
17563
- },
17564
17374
  lastUpdate: {
17565
17375
  key: "lastUpdate",
17566
17376
  type: PropertyType.DateTime,
@@ -18353,11 +18163,6 @@ var AFPokladniPohybPolozka = class extends AFEntity {
18353
18163
  }
18354
18164
  static {
18355
18165
  this.propAnnotations = {
18356
- id: {
18357
- key: "id",
18358
- type: PropertyType.Integer,
18359
- isArray: false
18360
- },
18361
18166
  lastUpdate: {
18362
18167
  key: "lastUpdate",
18363
18168
  type: PropertyType.DateTime,
@@ -18991,11 +18796,6 @@ var AFRadaPokladniPohyb = class extends AFEntity {
18991
18796
  }
18992
18797
  static {
18993
18798
  this.propAnnotations = {
18994
- id: {
18995
- key: "id",
18996
- type: PropertyType.Integer,
18997
- isArray: false
18998
- },
18999
18799
  lastUpdate: {
19000
18800
  key: "lastUpdate",
19001
18801
  type: PropertyType.DateTime,
@@ -19089,11 +18889,6 @@ var AFTypPokladniPohyb = class extends AFEntity {
19089
18889
  }
19090
18890
  static {
19091
18891
  this.propAnnotations = {
19092
- id: {
19093
- key: "id",
19094
- type: PropertyType.Integer,
19095
- isArray: false
19096
- },
19097
18892
  lastUpdate: {
19098
18893
  key: "lastUpdate",
19099
18894
  type: PropertyType.DateTime,
@@ -19458,11 +19253,6 @@ var AFBanka = class extends AFEntity {
19458
19253
  }
19459
19254
  static {
19460
19255
  this.propAnnotations = {
19461
- id: {
19462
- key: "id",
19463
- type: PropertyType.Integer,
19464
- isArray: false
19465
- },
19466
19256
  lastUpdate: {
19467
19257
  key: "lastUpdate",
19468
19258
  type: PropertyType.DateTime,
@@ -20190,11 +19980,6 @@ var AFTypBanka = class extends AFEntity {
20190
19980
  }
20191
19981
  static {
20192
19982
  this.propAnnotations = {
20193
- id: {
20194
- key: "id",
20195
- type: PropertyType.Integer,
20196
- isArray: false
20197
- },
20198
19983
  lastUpdate: {
20199
19984
  key: "lastUpdate",
20200
19985
  type: PropertyType.DateTime,
@@ -20421,11 +20206,6 @@ var AFRadaBanka = class extends AFEntity {
20421
20206
  }
20422
20207
  static {
20423
20208
  this.propAnnotations = {
20424
- id: {
20425
- key: "id",
20426
- type: PropertyType.Integer,
20427
- isArray: false
20428
- },
20429
20209
  lastUpdate: {
20430
20210
  key: "lastUpdate",
20431
20211
  type: PropertyType.DateTime,
@@ -20519,11 +20299,6 @@ var AFBankaPolozka = class extends AFEntity {
20519
20299
  }
20520
20300
  static {
20521
20301
  this.propAnnotations = {
20522
- id: {
20523
- key: "id",
20524
- type: PropertyType.Integer,
20525
- isArray: false
20526
- },
20527
20302
  lastUpdate: {
20528
20303
  key: "lastUpdate",
20529
20304
  type: PropertyType.DateTime,
@@ -20853,11 +20628,6 @@ var AFFormatElektronickehoBankovnictvi = class extends AFEntity {
20853
20628
  }
20854
20629
  static {
20855
20630
  this.propAnnotations = {
20856
- id: {
20857
- key: "id",
20858
- type: PropertyType.Integer,
20859
- isArray: false
20860
- },
20861
20631
  lastUpdate: {
20862
20632
  key: "lastUpdate",
20863
20633
  type: PropertyType.DateTime,
@@ -20949,11 +20719,6 @@ var AFFormatElektronickehoPrikazu = class extends AFEntity {
20949
20719
  }
20950
20720
  static {
20951
20721
  this.propAnnotations = {
20952
- id: {
20953
- key: "id",
20954
- type: PropertyType.Integer,
20955
- isArray: false
20956
- },
20957
20722
  lastUpdate: {
20958
20723
  key: "lastUpdate",
20959
20724
  type: PropertyType.DateTime,
@@ -21076,11 +20841,6 @@ var AFPohledavka = class extends AFEntity {
21076
20841
  }
21077
20842
  static {
21078
20843
  this.propAnnotations = {
21079
- id: {
21080
- key: "id",
21081
- type: PropertyType.Integer,
21082
- isArray: false
21083
- },
21084
20844
  lastUpdate: {
21085
20845
  key: "lastUpdate",
21086
20846
  type: PropertyType.DateTime,
@@ -21985,11 +21745,6 @@ var AFPohledavkaPolozka = class extends AFEntity {
21985
21745
  }
21986
21746
  static {
21987
21747
  this.propAnnotations = {
21988
- id: {
21989
- key: "id",
21990
- type: PropertyType.Integer,
21991
- isArray: false
21992
- },
21993
21748
  lastUpdate: {
21994
21749
  key: "lastUpdate",
21995
21750
  type: PropertyType.DateTime,
@@ -22539,11 +22294,6 @@ var AFTypPohledavky = class extends AFEntity {
22539
22294
  }
22540
22295
  static {
22541
22296
  this.propAnnotations = {
22542
- id: {
22543
- key: "id",
22544
- type: PropertyType.Integer,
22545
- isArray: false
22546
- },
22547
22297
  lastUpdate: {
22548
22298
  key: "lastUpdate",
22549
22299
  type: PropertyType.DateTime,
@@ -22835,11 +22585,6 @@ var AFRadaPohledavky = class extends AFEntity {
22835
22585
  }
22836
22586
  static {
22837
22587
  this.propAnnotations = {
22838
- id: {
22839
- key: "id",
22840
- type: PropertyType.Integer,
22841
- isArray: false
22842
- },
22843
22588
  lastUpdate: {
22844
22589
  key: "lastUpdate",
22845
22590
  type: PropertyType.DateTime,
@@ -22936,11 +22681,6 @@ var AFUplatneniDaneZavazku = class extends AFEntity {
22936
22681
  }
22937
22682
  static {
22938
22683
  this.propAnnotations = {
22939
- id: {
22940
- key: "id",
22941
- type: PropertyType.Integer,
22942
- isArray: false
22943
- },
22944
22684
  lastUpdate: {
22945
22685
  key: "lastUpdate",
22946
22686
  type: PropertyType.DateTime,
@@ -23570,11 +23310,6 @@ var AFUplatneniDaneZavazkuPolozka = class extends AFEntity {
23570
23310
  }
23571
23311
  static {
23572
23312
  this.propAnnotations = {
23573
- id: {
23574
- key: "id",
23575
- type: PropertyType.Integer,
23576
- isArray: false
23577
- },
23578
23313
  lastUpdate: {
23579
23314
  key: "lastUpdate",
23580
23315
  type: PropertyType.DateTime,
@@ -24130,11 +23865,6 @@ var AFTypUplatneniDaneZavazku = class extends AFEntity {
24130
23865
  }
24131
23866
  static {
24132
23867
  this.propAnnotations = {
24133
- id: {
24134
- key: "id",
24135
- type: PropertyType.Integer,
24136
- isArray: false
24137
- },
24138
23868
  lastUpdate: {
24139
23869
  key: "lastUpdate",
24140
23870
  type: PropertyType.DateTime,
@@ -24335,11 +24065,6 @@ var AFRadaUplatneniDaneZavazku = class extends AFEntity {
24335
24065
  }
24336
24066
  static {
24337
24067
  this.propAnnotations = {
24338
- id: {
24339
- key: "id",
24340
- type: PropertyType.Integer,
24341
- isArray: false
24342
- },
24343
24068
  lastUpdate: {
24344
24069
  key: "lastUpdate",
24345
24070
  type: PropertyType.DateTime,
@@ -24433,11 +24158,6 @@ var AFBankovniUcet = class extends AFEntity {
24433
24158
  }
24434
24159
  static {
24435
24160
  this.propAnnotations = {
24436
- id: {
24437
- key: "id",
24438
- type: PropertyType.Integer,
24439
- isArray: false
24440
- },
24441
24161
  lastUpdate: {
24442
24162
  key: "lastUpdate",
24443
24163
  type: PropertyType.DateTime,
@@ -24784,11 +24504,6 @@ var AFPokladna = class extends AFEntity {
24784
24504
  }
24785
24505
  static {
24786
24506
  this.propAnnotations = {
24787
- id: {
24788
- key: "id",
24789
- type: PropertyType.Integer,
24790
- isArray: false
24791
- },
24792
24507
  lastUpdate: {
24793
24508
  key: "lastUpdate",
24794
24509
  type: PropertyType.DateTime,
@@ -24930,11 +24645,6 @@ var AFBankovniUcetPokladna = class extends AFEntity {
24930
24645
  }
24931
24646
  static {
24932
24647
  this.propAnnotations = {
24933
- id: {
24934
- key: "id",
24935
- type: PropertyType.Integer,
24936
- isArray: false
24937
- },
24938
24648
  lastUpdate: {
24939
24649
  key: "lastUpdate",
24940
24650
  type: PropertyType.DateTime,
@@ -25052,11 +24762,6 @@ var AFPrikazKUhrade = class extends AFEntity {
25052
24762
  }
25053
24763
  static {
25054
24764
  this.propAnnotations = {
25055
- id: {
25056
- key: "id",
25057
- type: PropertyType.Integer,
25058
- isArray: false
25059
- },
25060
24765
  lastUpdate: {
25061
24766
  key: "lastUpdate",
25062
24767
  type: PropertyType.DateTime,
@@ -25201,11 +24906,6 @@ var AFPrikazKUhradePolozka = class extends AFEntity {
25201
24906
  }
25202
24907
  static {
25203
24908
  this.propAnnotations = {
25204
- id: {
25205
- key: "id",
25206
- type: PropertyType.Integer,
25207
- isArray: false
25208
- },
25209
24909
  lastUpdate: {
25210
24910
  key: "lastUpdate",
25211
24911
  type: PropertyType.DateTime,
@@ -25411,11 +25111,6 @@ var AFPrikazKInkasu = class extends AFEntity {
25411
25111
  }
25412
25112
  static {
25413
25113
  this.propAnnotations = {
25414
- id: {
25415
- key: "id",
25416
- type: PropertyType.Integer,
25417
- isArray: false
25418
- },
25419
25114
  lastUpdate: {
25420
25115
  key: "lastUpdate",
25421
25116
  type: PropertyType.DateTime,
@@ -25555,11 +25250,6 @@ var AFPrikazKInkasuPolozka = class extends AFEntity {
25555
25250
  }
25556
25251
  static {
25557
25252
  this.propAnnotations = {
25558
- id: {
25559
- key: "id",
25560
- type: PropertyType.Integer,
25561
- isArray: false
25562
- },
25563
25253
  lastUpdate: {
25564
25254
  key: "lastUpdate",
25565
25255
  type: PropertyType.DateTime,
@@ -25768,11 +25458,6 @@ var AFDokladKUhrade = class extends AFEntity {
25768
25458
  }
25769
25459
  static {
25770
25460
  this.propAnnotations = {
25771
- id: {
25772
- key: "id",
25773
- type: PropertyType.Integer,
25774
- isArray: false
25775
- },
25776
25461
  lastUpdate: {
25777
25462
  key: "lastUpdate",
25778
25463
  type: PropertyType.DateTime,
@@ -26981,11 +26666,6 @@ var AFVzajemnyZapocet = class extends AFEntity {
26981
26666
  }
26982
26667
  static {
26983
26668
  this.propAnnotations = {
26984
- id: {
26985
- key: "id",
26986
- type: PropertyType.Integer,
26987
- isArray: false
26988
- },
26989
26669
  lastUpdate: {
26990
26670
  key: "lastUpdate",
26991
26671
  type: PropertyType.DateTime,
@@ -27707,11 +27387,6 @@ var AFTypVzajemnychZapoctu = class extends AFEntity {
27707
27387
  }
27708
27388
  static {
27709
27389
  this.propAnnotations = {
27710
- id: {
27711
- key: "id",
27712
- type: PropertyType.Integer,
27713
- isArray: false
27714
- },
27715
27390
  lastUpdate: {
27716
27391
  key: "lastUpdate",
27717
27392
  type: PropertyType.DateTime,
@@ -27945,11 +27620,6 @@ var AFBankovniUcetSkladPokladna = class extends AFEntity {
27945
27620
  }
27946
27621
  static {
27947
27622
  this.propAnnotations = {
27948
- id: {
27949
- key: "id",
27950
- type: PropertyType.Integer,
27951
- isArray: false
27952
- },
27953
27623
  lastUpdate: {
27954
27624
  key: "lastUpdate",
27955
27625
  type: PropertyType.DateTime,
@@ -28067,11 +27737,6 @@ var AFTypInternihoDokladu = class extends AFEntity {
28067
27737
  }
28068
27738
  static {
28069
27739
  this.propAnnotations = {
28070
- id: {
28071
- key: "id",
28072
- type: PropertyType.Integer,
28073
- isArray: false
28074
- },
28075
27740
  lastUpdate: {
28076
27741
  key: "lastUpdate",
28077
27742
  type: PropertyType.DateTime,
@@ -28275,11 +27940,6 @@ var AFRadaInternihoDokladu = class extends AFEntity {
28275
27940
  }
28276
27941
  static {
28277
27942
  this.propAnnotations = {
28278
- id: {
28279
- key: "id",
28280
- type: PropertyType.Integer,
28281
- isArray: false
28282
- },
28283
27943
  lastUpdate: {
28284
27944
  key: "lastUpdate",
28285
27945
  type: PropertyType.DateTime,
@@ -28376,11 +28036,6 @@ var AFInterniDoklad = class extends AFEntity {
28376
28036
  }
28377
28037
  static {
28378
28038
  this.propAnnotations = {
28379
- id: {
28380
- key: "id",
28381
- type: PropertyType.Integer,
28382
- isArray: false
28383
- },
28384
28039
  lastUpdate: {
28385
28040
  key: "lastUpdate",
28386
28041
  type: PropertyType.DateTime,
@@ -29019,11 +28674,6 @@ var AFInterniDokladPolozka = class extends AFEntity {
29019
28674
  }
29020
28675
  static {
29021
28676
  this.propAnnotations = {
29022
- id: {
29023
- key: "id",
29024
- type: PropertyType.Integer,
29025
- isArray: false
29026
- },
29027
28677
  lastUpdate: {
29028
28678
  key: "lastUpdate",
29029
28679
  type: PropertyType.DateTime,
@@ -29660,11 +29310,6 @@ var AFVazba = class extends AFEntity {
29660
29310
  }
29661
29311
  static {
29662
29312
  this.propAnnotations = {
29663
- id: {
29664
- key: "id",
29665
- type: PropertyType.Integer,
29666
- isArray: false
29667
- },
29668
29313
  typVazbyK: {
29669
29314
  key: "typVazbyK",
29670
29315
  type: PropertyType.Select,
@@ -29868,11 +29513,6 @@ var AFPriloha = class extends AFEntity {
29868
29513
  }
29869
29514
  static {
29870
29515
  this.propAnnotations = {
29871
- id: {
29872
- key: "id",
29873
- type: PropertyType.Integer,
29874
- isArray: false
29875
- },
29876
29516
  lastUpdate: {
29877
29517
  key: "lastUpdate",
29878
29518
  type: PropertyType.DateTime,
@@ -30082,11 +29722,6 @@ var AFTypDokladu = class extends AFEntity {
30082
29722
  }
30083
29723
  static {
30084
29724
  this.propAnnotations = {
30085
- id: {
30086
- key: "id",
30087
- type: PropertyType.Integer,
30088
- isArray: false
30089
- },
30090
29725
  lastUpdate: {
30091
29726
  key: "lastUpdate",
30092
29727
  type: PropertyType.DateTime,
@@ -30504,11 +30139,6 @@ var AFFakturaVydana = class extends AFEntity {
30504
30139
  }
30505
30140
  static {
30506
30141
  this.propAnnotations = {
30507
- id: {
30508
- key: "id",
30509
- type: PropertyType.Integer,
30510
- isArray: false
30511
- },
30512
30142
  lastUpdate: {
30513
30143
  key: "lastUpdate",
30514
30144
  type: PropertyType.DateTime,
@@ -31623,11 +31253,6 @@ var AFFakturaVydanaPolozka = class extends AFEntity {
31623
31253
  }
31624
31254
  static {
31625
31255
  this.propAnnotations = {
31626
- id: {
31627
- key: "id",
31628
- type: PropertyType.Integer,
31629
- isArray: false
31630
- },
31631
31256
  lastUpdate: {
31632
31257
  key: "lastUpdate",
31633
31258
  type: PropertyType.DateTime,
@@ -32295,11 +31920,6 @@ var AFTypFakturyVydane = class extends AFEntity {
32295
31920
  }
32296
31921
  static {
32297
31922
  this.propAnnotations = {
32298
- id: {
32299
- key: "id",
32300
- type: PropertyType.Integer,
32301
- isArray: false
32302
- },
32303
31923
  lastUpdate: {
32304
31924
  key: "lastUpdate",
32305
31925
  type: PropertyType.DateTime,
@@ -32724,11 +32344,6 @@ var AFRadaFakturyVydane = class extends AFEntity {
32724
32344
  }
32725
32345
  static {
32726
32346
  this.propAnnotations = {
32727
- id: {
32728
- key: "id",
32729
- type: PropertyType.Integer,
32730
- isArray: false
32731
- },
32732
32347
  lastUpdate: {
32733
32348
  key: "lastUpdate",
32734
32349
  type: PropertyType.DateTime,
@@ -32834,11 +32449,6 @@ var AFProdejka = class extends AFEntity {
32834
32449
  }
32835
32450
  static {
32836
32451
  this.propAnnotations = {
32837
- id: {
32838
- key: "id",
32839
- type: PropertyType.Integer,
32840
- isArray: false
32841
- },
32842
32452
  lastUpdate: {
32843
32453
  key: "lastUpdate",
32844
32454
  type: PropertyType.DateTime,
@@ -33825,11 +33435,6 @@ var AFTypProdejky = class extends AFEntity {
33825
33435
  }
33826
33436
  static {
33827
33437
  this.propAnnotations = {
33828
- id: {
33829
- key: "id",
33830
- type: PropertyType.Integer,
33831
- isArray: false
33832
- },
33833
33438
  lastUpdate: {
33834
33439
  key: "lastUpdate",
33835
33440
  type: PropertyType.DateTime,
@@ -34236,11 +33841,6 @@ var AFProdejkaPlatba = class extends AFEntity {
34236
33841
  }
34237
33842
  static {
34238
33843
  this.propAnnotations = {
34239
- id: {
34240
- key: "id",
34241
- type: PropertyType.Integer,
34242
- isArray: false
34243
- },
34244
33844
  lastUpdate: {
34245
33845
  key: "lastUpdate",
34246
33846
  type: PropertyType.DateTime,
@@ -34343,11 +33943,6 @@ var AFUzivatel = class extends AFEntity {
34343
33943
  }
34344
33944
  static {
34345
33945
  this.propAnnotations = {
34346
- id: {
34347
- key: "id",
34348
- type: PropertyType.Integer,
34349
- isArray: false
34350
- },
34351
33946
  lastUpdate: {
34352
33947
  key: "lastUpdate",
34353
33948
  type: PropertyType.DateTime,
@@ -34563,11 +34158,6 @@ var AFRole = class extends AFEntity {
34563
34158
  }
34564
34159
  static {
34565
34160
  this.propAnnotations = {
34566
- id: {
34567
- key: "id",
34568
- type: PropertyType.Integer,
34569
- isArray: false
34570
- },
34571
34161
  lastUpdate: {
34572
34162
  key: "lastUpdate",
34573
34163
  type: PropertyType.DateTime,
@@ -34655,11 +34245,6 @@ var AFPravoViditelnosti = class extends AFEntity {
34655
34245
  }
34656
34246
  static {
34657
34247
  this.propAnnotations = {
34658
- id: {
34659
- key: "id",
34660
- type: PropertyType.Integer,
34661
- isArray: false
34662
- },
34663
34248
  idUzivatel: {
34664
34249
  key: "idUzivatel",
34665
34250
  type: PropertyType.Integer,
@@ -34705,11 +34290,6 @@ var AFNastaveni = class extends AFEntity {
34705
34290
  }
34706
34291
  static {
34707
34292
  this.propAnnotations = {
34708
- id: {
34709
- key: "id",
34710
- type: PropertyType.Integer,
34711
- isArray: false
34712
- },
34713
34293
  lastUpdate: {
34714
34294
  key: "lastUpdate",
34715
34295
  type: PropertyType.DateTime,
@@ -36063,11 +35643,6 @@ var AFReport = class extends AFEntity {
36063
35643
  }
36064
35644
  static {
36065
35645
  this.propAnnotations = {
36066
- id: {
36067
- key: "id",
36068
- type: PropertyType.Integer,
36069
- isArray: false
36070
- },
36071
35646
  lastUpdate: {
36072
35647
  key: "lastUpdate",
36073
35648
  type: PropertyType.DateTime,
@@ -36194,11 +35769,6 @@ var AFZamek = class extends AFEntity {
36194
35769
  }
36195
35770
  static {
36196
35771
  this.propAnnotations = {
36197
- id: {
36198
- key: "id",
36199
- type: PropertyType.Integer,
36200
- isArray: false
36201
- },
36202
35772
  lastUpdate: {
36203
35773
  key: "lastUpdate",
36204
35774
  type: PropertyType.DateTime,
@@ -36349,11 +35919,6 @@ var AFKurz = class extends AFEntity {
36349
35919
  }
36350
35920
  static {
36351
35921
  this.propAnnotations = {
36352
- id: {
36353
- key: "id",
36354
- type: PropertyType.Integer,
36355
- isArray: false
36356
- },
36357
35922
  lastUpdate: {
36358
35923
  key: "lastUpdate",
36359
35924
  type: PropertyType.DateTime,
@@ -36409,11 +35974,6 @@ var AFUcet = class extends AFEntity {
36409
35974
  }
36410
35975
  static {
36411
35976
  this.propAnnotations = {
36412
- id: {
36413
- key: "id",
36414
- type: PropertyType.Integer,
36415
- isArray: false
36416
- },
36417
35977
  lastUpdate: {
36418
35978
  key: "lastUpdate",
36419
35979
  type: PropertyType.DateTime,
@@ -36544,11 +36104,6 @@ var AFMena = class extends AFEntity {
36544
36104
  }
36545
36105
  static {
36546
36106
  this.propAnnotations = {
36547
- id: {
36548
- key: "id",
36549
- type: PropertyType.Integer,
36550
- isArray: false
36551
- },
36552
36107
  lastUpdate: {
36553
36108
  key: "lastUpdate",
36554
36109
  type: PropertyType.DateTime,
@@ -36657,11 +36212,6 @@ var AFStat = class extends AFEntity {
36657
36212
  }
36658
36213
  static {
36659
36214
  this.propAnnotations = {
36660
- id: {
36661
- key: "id",
36662
- type: PropertyType.Integer,
36663
- isArray: false
36664
- },
36665
36215
  lastUpdate: {
36666
36216
  key: "lastUpdate",
36667
36217
  type: PropertyType.DateTime,
@@ -36797,11 +36347,6 @@ var AFStatDph = class extends AFEntity {
36797
36347
  }
36798
36348
  static {
36799
36349
  this.propAnnotations = {
36800
- id: {
36801
- key: "id",
36802
- type: PropertyType.Integer,
36803
- isArray: false
36804
- },
36805
36350
  lastUpdate: {
36806
36351
  key: "lastUpdate",
36807
36352
  type: PropertyType.DateTime,
@@ -36937,11 +36482,6 @@ var AFCinnost = class extends AFEntity {
36937
36482
  }
36938
36483
  static {
36939
36484
  this.propAnnotations = {
36940
- id: {
36941
- key: "id",
36942
- type: PropertyType.Integer,
36943
- isArray: false
36944
- },
36945
36485
  lastUpdate: {
36946
36486
  key: "lastUpdate",
36947
36487
  type: PropertyType.DateTime,
@@ -37029,11 +36569,6 @@ var AFStredisko = class extends AFEntity {
37029
36569
  }
37030
36570
  static {
37031
36571
  this.propAnnotations = {
37032
- id: {
37033
- key: "id",
37034
- type: PropertyType.Integer,
37035
- isArray: false
37036
- },
37037
36572
  lastUpdate: {
37038
36573
  key: "lastUpdate",
37039
36574
  type: PropertyType.DateTime,
@@ -37211,11 +36746,6 @@ var AFSazbaDph = class extends AFEntity {
37211
36746
  }
37212
36747
  static {
37213
36748
  this.propAnnotations = {
37214
- id: {
37215
- key: "id",
37216
- type: PropertyType.Integer,
37217
- isArray: false
37218
- },
37219
36749
  lastUpdate: {
37220
36750
  key: "lastUpdate",
37221
36751
  type: PropertyType.DateTime,
@@ -37289,11 +36819,6 @@ var AFZakazka = class extends AFEntity {
37289
36819
  }
37290
36820
  static {
37291
36821
  this.propAnnotations = {
37292
- id: {
37293
- key: "id",
37294
- type: PropertyType.Integer,
37295
- isArray: false
37296
- },
37297
36822
  lastUpdate: {
37298
36823
  key: "lastUpdate",
37299
36824
  type: PropertyType.DateTime,
@@ -37564,11 +37089,6 @@ var AFTypZakazky = class extends AFEntity {
37564
37089
  }
37565
37090
  static {
37566
37091
  this.propAnnotations = {
37567
- id: {
37568
- key: "id",
37569
- type: PropertyType.Integer,
37570
- isArray: false
37571
- },
37572
37092
  lastUpdate: {
37573
37093
  key: "lastUpdate",
37574
37094
  type: PropertyType.DateTime,
@@ -37678,11 +37198,6 @@ var AFStavZakazky = class extends AFEntity {
37678
37198
  }
37679
37199
  static {
37680
37200
  this.propAnnotations = {
37681
- id: {
37682
- key: "id",
37683
- type: PropertyType.Integer,
37684
- isArray: false
37685
- },
37686
37201
  lastUpdate: {
37687
37202
  key: "lastUpdate",
37688
37203
  type: PropertyType.DateTime,
@@ -37763,11 +37278,6 @@ var AFHodnoceniZakazky = class extends AFEntity {
37763
37278
  }
37764
37279
  static {
37765
37280
  this.propAnnotations = {
37766
- id: {
37767
- key: "id",
37768
- type: PropertyType.Integer,
37769
- isArray: false
37770
- },
37771
37281
  lastUpdate: {
37772
37282
  key: "lastUpdate",
37773
37283
  type: PropertyType.DateTime,
@@ -37850,11 +37360,6 @@ var AFKonstSymbol = class extends AFEntity {
37850
37360
  }
37851
37361
  static {
37852
37362
  this.propAnnotations = {
37853
- id: {
37854
- key: "id",
37855
- type: PropertyType.Integer,
37856
- isArray: false
37857
- },
37858
37363
  lastUpdate: {
37859
37364
  key: "lastUpdate",
37860
37365
  type: PropertyType.DateTime,
@@ -37937,11 +37442,6 @@ var AFMernaJednotka = class extends AFEntity {
37937
37442
  }
37938
37443
  static {
37939
37444
  this.propAnnotations = {
37940
- id: {
37941
- key: "id",
37942
- type: PropertyType.Integer,
37943
- isArray: false
37944
- },
37945
37445
  lastUpdate: {
37946
37446
  key: "lastUpdate",
37947
37447
  type: PropertyType.DateTime,
@@ -38064,11 +37564,6 @@ var AFSkupinaPlneni = class extends AFEntity {
38064
37564
  }
38065
37565
  static {
38066
37566
  this.propAnnotations = {
38067
- id: {
38068
- key: "id",
38069
- type: PropertyType.Integer,
38070
- isArray: false
38071
- },
38072
37567
  lastUpdate: {
38073
37568
  key: "lastUpdate",
38074
37569
  type: PropertyType.DateTime,
@@ -38151,11 +37646,6 @@ var AFRegion = class extends AFEntity {
38151
37646
  }
38152
37647
  static {
38153
37648
  this.propAnnotations = {
38154
- id: {
38155
- key: "id",
38156
- type: PropertyType.Integer,
38157
- isArray: false
38158
- },
38159
37649
  lastUpdate: {
38160
37650
  key: "lastUpdate",
38161
37651
  type: PropertyType.DateTime,
@@ -38268,11 +37758,6 @@ var AFCleneniDph = class extends AFEntity {
38268
37758
  }
38269
37759
  static {
38270
37760
  this.propAnnotations = {
38271
- id: {
38272
- key: "id",
38273
- type: PropertyType.Integer,
38274
- isArray: false
38275
- },
38276
37761
  lastUpdate: {
38277
37762
  key: "lastUpdate",
38278
37763
  type: PropertyType.DateTime,
@@ -38407,11 +37892,6 @@ var AFCleneniKontrolniHlaseni = class extends AFEntity {
38407
37892
  }
38408
37893
  static {
38409
37894
  this.propAnnotations = {
38410
- id: {
38411
- key: "id",
38412
- type: PropertyType.Integer,
38413
- isArray: false
38414
- },
38415
37895
  lastUpdate: {
38416
37896
  key: "lastUpdate",
38417
37897
  type: PropertyType.DateTime,
@@ -38531,11 +38011,6 @@ var AFUcetniOsnova = class extends AFEntity {
38531
38011
  }
38532
38012
  static {
38533
38013
  this.propAnnotations = {
38534
- id: {
38535
- key: "id",
38536
- type: PropertyType.Integer,
38537
- isArray: false
38538
- },
38539
38014
  lastUpdate: {
38540
38015
  key: "lastUpdate",
38541
38016
  type: PropertyType.DateTime,
@@ -38643,11 +38118,6 @@ var AFUcetniObdobi = class extends AFEntity {
38643
38118
  }
38644
38119
  static {
38645
38120
  this.propAnnotations = {
38646
- id: {
38647
- key: "id",
38648
- type: PropertyType.Integer,
38649
- isArray: false
38650
- },
38651
38121
  lastUpdate: {
38652
38122
  key: "lastUpdate",
38653
38123
  type: PropertyType.DateTime,
@@ -38712,11 +38182,6 @@ var AFTypOrganizace = class extends AFEntity {
38712
38182
  }
38713
38183
  static {
38714
38184
  this.propAnnotations = {
38715
- id: {
38716
- key: "id",
38717
- type: PropertyType.Integer,
38718
- isArray: false
38719
- },
38720
38185
  lastUpdate: {
38721
38186
  key: "lastUpdate",
38722
38187
  type: PropertyType.DateTime,
@@ -38799,11 +38264,6 @@ var AFKurzProCenotvorbu = class extends AFEntity {
38799
38264
  }
38800
38265
  static {
38801
38266
  this.propAnnotations = {
38802
- id: {
38803
- key: "id",
38804
- type: PropertyType.Integer,
38805
- isArray: false
38806
- },
38807
38267
  lastUpdate: {
38808
38268
  key: "lastUpdate",
38809
38269
  type: PropertyType.DateTime,
@@ -38859,11 +38319,6 @@ var AFKurzProPreceneni = class extends AFEntity {
38859
38319
  }
38860
38320
  static {
38861
38321
  this.propAnnotations = {
38862
- id: {
38863
- key: "id",
38864
- type: PropertyType.Integer,
38865
- isArray: false
38866
- },
38867
38322
  lastUpdate: {
38868
38323
  key: "lastUpdate",
38869
38324
  type: PropertyType.DateTime,
@@ -38919,11 +38374,6 @@ var AFPenezniUstav = class extends AFEntity {
38919
38374
  }
38920
38375
  static {
38921
38376
  this.propAnnotations = {
38922
- id: {
38923
- key: "id",
38924
- type: PropertyType.Integer,
38925
- isArray: false
38926
- },
38927
38377
  lastUpdate: {
38928
38378
  key: "lastUpdate",
38929
38379
  type: PropertyType.DateTime,
@@ -39006,11 +38456,6 @@ var AFPsc = class extends AFEntity {
39006
38456
  }
39007
38457
  static {
39008
38458
  this.propAnnotations = {
39009
- id: {
39010
- key: "id",
39011
- type: PropertyType.Integer,
39012
- isArray: false
39013
- },
39014
38459
  lastUpdate: {
39015
38460
  key: "lastUpdate",
39016
38461
  type: PropertyType.DateTime,
@@ -39125,11 +38570,6 @@ var AFStitek = class extends AFEntity {
39125
38570
  }
39126
38571
  static {
39127
38572
  this.propAnnotations = {
39128
- id: {
39129
- key: "id",
39130
- type: PropertyType.Integer,
39131
- isArray: false
39132
- },
39133
38573
  lastUpdate: {
39134
38574
  key: "lastUpdate",
39135
38575
  type: PropertyType.DateTime,
@@ -39323,11 +38763,6 @@ var AFSkupinaStitku = class extends AFEntity {
39323
38763
  }
39324
38764
  static {
39325
38765
  this.propAnnotations = {
39326
- id: {
39327
- key: "id",
39328
- type: PropertyType.Integer,
39329
- isArray: false
39330
- },
39331
38766
  lastUpdate: {
39332
38767
  key: "lastUpdate",
39333
38768
  type: PropertyType.DateTime,
@@ -39415,11 +38850,6 @@ var AFPreneseniDph = class extends AFEntity {
39415
38850
  }
39416
38851
  static {
39417
38852
  this.propAnnotations = {
39418
- id: {
39419
- key: "id",
39420
- type: PropertyType.Integer,
39421
- isArray: false
39422
- },
39423
38853
  lastUpdate: {
39424
38854
  key: "lastUpdate",
39425
38855
  type: PropertyType.DateTime,
@@ -39510,11 +38940,6 @@ var AFSablonaUpominky = class extends AFEntity {
39510
38940
  }
39511
38941
  static {
39512
38942
  this.propAnnotations = {
39513
- id: {
39514
- key: "id",
39515
- type: PropertyType.Integer,
39516
- isArray: false
39517
- },
39518
38943
  lastUpdate: {
39519
38944
  key: "lastUpdate",
39520
38945
  type: PropertyType.DateTime,
@@ -39703,11 +39128,6 @@ var AFFormaUhrady = class extends AFEntity {
39703
39128
  }
39704
39129
  static {
39705
39130
  this.propAnnotations = {
39706
- id: {
39707
- key: "id",
39708
- type: PropertyType.Integer,
39709
- isArray: false
39710
- },
39711
39131
  lastUpdate: {
39712
39132
  key: "lastUpdate",
39713
39133
  type: PropertyType.DateTime,
@@ -39863,11 +39283,6 @@ var AFStavObchodnihoDokladu = class extends AFEntity {
39863
39283
  }
39864
39284
  static {
39865
39285
  this.propAnnotations = {
39866
- id: {
39867
- key: "id",
39868
- type: PropertyType.Integer,
39869
- isArray: false
39870
- },
39871
39286
  lastUpdate: {
39872
39287
  key: "lastUpdate",
39873
39288
  type: PropertyType.DateTime,
@@ -39998,11 +39413,6 @@ var AFFormaUhradyZauctovani = class extends AFEntity {
39998
39413
  }
39999
39414
  static {
40000
39415
  this.propAnnotations = {
40001
- id: {
40002
- key: "id",
40003
- type: PropertyType.Integer,
40004
- isArray: false
40005
- },
40006
39416
  lastUpdate: {
40007
39417
  key: "lastUpdate",
40008
39418
  type: PropertyType.DateTime,
@@ -40053,11 +39463,6 @@ var AFCertifikacniAutorita = class extends AFEntity {
40053
39463
  }
40054
39464
  static {
40055
39465
  this.propAnnotations = {
40056
- id: {
40057
- key: "id",
40058
- type: PropertyType.Integer,
40059
- isArray: false
40060
- },
40061
39466
  lastUpdate: {
40062
39467
  key: "lastUpdate",
40063
39468
  type: PropertyType.DateTime,
@@ -40118,11 +39523,6 @@ var AFCertifikatFinbricks = class extends AFEntity {
40118
39523
  }
40119
39524
  static {
40120
39525
  this.propAnnotations = {
40121
- id: {
40122
- key: "id",
40123
- type: PropertyType.Integer,
40124
- isArray: false
40125
- },
40126
39526
  lastUpdate: {
40127
39527
  key: "lastUpdate",
40128
39528
  type: PropertyType.DateTime,
@@ -40198,11 +39598,6 @@ var AFCertifikat = class extends AFEntity {
40198
39598
  }
40199
39599
  static {
40200
39600
  this.propAnnotations = {
40201
- id: {
40202
- key: "id",
40203
- type: PropertyType.Integer,
40204
- isArray: false
40205
- },
40206
39601
  lastUpdate: {
40207
39602
  key: "lastUpdate",
40208
39603
  type: PropertyType.DateTime,
@@ -40278,11 +39673,6 @@ var AFFormaDopravy = class extends AFEntity {
40278
39673
  }
40279
39674
  static {
40280
39675
  this.propAnnotations = {
40281
- id: {
40282
- key: "id",
40283
- type: PropertyType.Integer,
40284
- isArray: false
40285
- },
40286
39676
  lastUpdate: {
40287
39677
  key: "lastUpdate",
40288
39678
  type: PropertyType.DateTime,
@@ -40469,11 +39859,6 @@ var AFCisloBaliku = class extends AFEntity {
40469
39859
  }
40470
39860
  static {
40471
39861
  this.propAnnotations = {
40472
- id: {
40473
- key: "id",
40474
- type: PropertyType.Integer,
40475
- isArray: false
40476
- },
40477
39862
  lastUpdate: {
40478
39863
  key: "lastUpdate",
40479
39864
  type: PropertyType.DateTime,
@@ -40536,11 +39921,6 @@ var AFTypUzivatelskeVazby = class extends AFEntity {
40536
39921
  }
40537
39922
  static {
40538
39923
  this.propAnnotations = {
40539
- id: {
40540
- key: "id",
40541
- type: PropertyType.Integer,
40542
- isArray: false
40543
- },
40544
39924
  lastUpdate: {
40545
39925
  key: "lastUpdate",
40546
39926
  type: PropertyType.DateTime,
@@ -40675,11 +40055,6 @@ var AFUzivatelskaVazba = class extends AFEntity {
40675
40055
  }
40676
40056
  static {
40677
40057
  this.propAnnotations = {
40678
- id: {
40679
- key: "id",
40680
- type: PropertyType.Integer,
40681
- isArray: false
40682
- },
40683
40058
  vazbaTyp: {
40684
40059
  key: "vazbaTyp",
40685
40060
  type: PropertyType.Relation,
@@ -40762,11 +40137,6 @@ var AFVztah = class extends AFEntity {
40762
40137
  }
40763
40138
  static {
40764
40139
  this.propAnnotations = {
40765
- id: {
40766
- key: "id",
40767
- type: PropertyType.Integer,
40768
- isArray: false
40769
- },
40770
40140
  lastUpdate: {
40771
40141
  key: "lastUpdate",
40772
40142
  type: PropertyType.DateTime,
@@ -40870,11 +40240,6 @@ var AFIntrastatKrajUrceni = class extends AFEntity {
40870
40240
  }
40871
40241
  static {
40872
40242
  this.propAnnotations = {
40873
- id: {
40874
- key: "id",
40875
- type: PropertyType.Integer,
40876
- isArray: false
40877
- },
40878
40243
  lastUpdate: {
40879
40244
  key: "lastUpdate",
40880
40245
  type: PropertyType.DateTime,
@@ -40957,11 +40322,6 @@ var AFIntrastatZvlastniPohyb = class extends AFEntity {
40957
40322
  }
40958
40323
  static {
40959
40324
  this.propAnnotations = {
40960
- id: {
40961
- key: "id",
40962
- type: PropertyType.Integer,
40963
- isArray: false
40964
- },
40965
40325
  lastUpdate: {
40966
40326
  key: "lastUpdate",
40967
40327
  type: PropertyType.DateTime,
@@ -41044,11 +40404,6 @@ var AFIntrastatObchodniTransakce = class extends AFEntity {
41044
40404
  }
41045
40405
  static {
41046
40406
  this.propAnnotations = {
41047
- id: {
41048
- key: "id",
41049
- type: PropertyType.Integer,
41050
- isArray: false
41051
- },
41052
40407
  lastUpdate: {
41053
40408
  key: "lastUpdate",
41054
40409
  type: PropertyType.DateTime,
@@ -41131,11 +40486,6 @@ var AFIntrastatDodaciPodminky = class extends AFEntity {
41131
40486
  }
41132
40487
  static {
41133
40488
  this.propAnnotations = {
41134
- id: {
41135
- key: "id",
41136
- type: PropertyType.Integer,
41137
- isArray: false
41138
- },
41139
40489
  lastUpdate: {
41140
40490
  key: "lastUpdate",
41141
40491
  type: PropertyType.DateTime,
@@ -41218,11 +40568,6 @@ var AFIntrastatDruhDopravy = class extends AFEntity {
41218
40568
  }
41219
40569
  static {
41220
40570
  this.propAnnotations = {
41221
- id: {
41222
- key: "id",
41223
- type: PropertyType.Integer,
41224
- isArray: false
41225
- },
41226
40571
  lastUpdate: {
41227
40572
  key: "lastUpdate",
41228
40573
  type: PropertyType.DateTime,
@@ -41305,11 +40650,6 @@ var AFIntrastatKurz = class extends AFEntity {
41305
40650
  }
41306
40651
  static {
41307
40652
  this.propAnnotations = {
41308
- id: {
41309
- key: "id",
41310
- type: PropertyType.Integer,
41311
- isArray: false
41312
- },
41313
40653
  lastUpdate: {
41314
40654
  key: "lastUpdate",
41315
40655
  type: PropertyType.DateTime,
@@ -41365,11 +40705,6 @@ var AFIntrastatMernaJednotka = class extends AFEntity {
41365
40705
  }
41366
40706
  static {
41367
40707
  this.propAnnotations = {
41368
- id: {
41369
- key: "id",
41370
- type: PropertyType.Integer,
41371
- isArray: false
41372
- },
41373
40708
  lastUpdate: {
41374
40709
  key: "lastUpdate",
41375
40710
  type: PropertyType.DateTime,
@@ -41452,11 +40787,6 @@ var AFIntrastatKodNomenklatury = class extends AFEntity {
41452
40787
  }
41453
40788
  static {
41454
40789
  this.propAnnotations = {
41455
- id: {
41456
- key: "id",
41457
- type: PropertyType.Integer,
41458
- isArray: false
41459
- },
41460
40790
  lastUpdate: {
41461
40791
  key: "lastUpdate",
41462
40792
  type: PropertyType.DateTime,
@@ -41541,11 +40871,6 @@ var AFRezervace = class extends AFEntity {
41541
40871
  }
41542
40872
  static {
41543
40873
  this.propAnnotations = {
41544
- id: {
41545
- key: "id",
41546
- type: PropertyType.Integer,
41547
- isArray: false
41548
- },
41549
40874
  lastUpdate: {
41550
40875
  key: "lastUpdate",
41551
40876
  type: PropertyType.DateTime,
@@ -41640,11 +40965,6 @@ var AFSkladovaKarta = class extends AFEntity {
41640
40965
  }
41641
40966
  static {
41642
40967
  this.propAnnotations = {
41643
- id: {
41644
- key: "id",
41645
- type: PropertyType.Integer,
41646
- isArray: false
41647
- },
41648
40968
  lastUpdate: {
41649
40969
  key: "lastUpdate",
41650
40970
  type: PropertyType.DateTime,
@@ -41934,11 +41254,6 @@ var AFCenik = class extends AFEntity {
41934
41254
  }
41935
41255
  static {
41936
41256
  this.propAnnotations = {
41937
- id: {
41938
- key: "id",
41939
- type: PropertyType.Integer,
41940
- isArray: false
41941
- },
41942
41257
  lastUpdate: {
41943
41258
  key: "lastUpdate",
41944
41259
  type: PropertyType.DateTime,
@@ -42722,11 +42037,6 @@ var AFIndividualniCenik = class extends AFEntity {
42722
42037
  }
42723
42038
  static {
42724
42039
  this.propAnnotations = {
42725
- id: {
42726
- key: "id",
42727
- type: PropertyType.Integer,
42728
- isArray: false
42729
- },
42730
42040
  kod: {
42731
42041
  key: "kod",
42732
42042
  type: PropertyType.String,
@@ -42863,11 +42173,6 @@ var AFDodavatel = class extends AFEntity {
42863
42173
  }
42864
42174
  static {
42865
42175
  this.propAnnotations = {
42866
- id: {
42867
- key: "id",
42868
- type: PropertyType.Integer,
42869
- isArray: false
42870
- },
42871
42176
  lastUpdate: {
42872
42177
  key: "lastUpdate",
42873
42178
  type: PropertyType.DateTime,
@@ -43013,11 +42318,6 @@ var AFOdberatel = class extends AFEntity {
43013
42318
  }
43014
42319
  static {
43015
42320
  this.propAnnotations = {
43016
- id: {
43017
- key: "id",
43018
- type: PropertyType.Integer,
43019
- isArray: false
43020
- },
43021
42321
  lastUpdate: {
43022
42322
  key: "lastUpdate",
43023
42323
  type: PropertyType.DateTime,
@@ -43163,11 +42463,6 @@ var AFCenikTypSazbyDph = class extends AFEntity {
43163
42463
  }
43164
42464
  static {
43165
42465
  this.propAnnotations = {
43166
- id: {
43167
- key: "id",
43168
- type: PropertyType.Integer,
43169
- isArray: false
43170
- },
43171
42466
  lastUpdate: {
43172
42467
  key: "lastUpdate",
43173
42468
  type: PropertyType.DateTime,
@@ -43237,11 +42532,6 @@ var AFVyrobniCislo = class extends AFEntity {
43237
42532
  }
43238
42533
  static {
43239
42534
  this.propAnnotations = {
43240
- id: {
43241
- key: "id",
43242
- type: PropertyType.Integer,
43243
- isArray: false
43244
- },
43245
42535
  kod: {
43246
42536
  key: "kod",
43247
42537
  type: PropertyType.String,
@@ -43361,11 +42651,6 @@ var AFCenovaUroven = class extends AFEntity {
43361
42651
  }
43362
42652
  static {
43363
42653
  this.propAnnotations = {
43364
- id: {
43365
- key: "id",
43366
- type: PropertyType.Integer,
43367
- isArray: false
43368
- },
43369
42654
  lastUpdate: {
43370
42655
  key: "lastUpdate",
43371
42656
  type: PropertyType.DateTime,
@@ -43616,11 +42901,6 @@ var AFCenikovaSkupina = class extends AFEntity {
43616
42901
  }
43617
42902
  static {
43618
42903
  this.propAnnotations = {
43619
- id: {
43620
- key: "id",
43621
- type: PropertyType.Integer,
43622
- isArray: false
43623
- },
43624
42904
  lastUpdate: {
43625
42905
  key: "lastUpdate",
43626
42906
  type: PropertyType.DateTime,
@@ -43703,11 +42983,6 @@ var AFPoplatek = class extends AFEntity {
43703
42983
  }
43704
42984
  static {
43705
42985
  this.propAnnotations = {
43706
- id: {
43707
- key: "id",
43708
- type: PropertyType.Integer,
43709
- isArray: false
43710
- },
43711
42986
  lastUpdate: {
43712
42987
  key: "lastUpdate",
43713
42988
  type: PropertyType.DateTime,
@@ -43778,11 +43053,6 @@ var AFPodobneZbozi = class extends AFEntity {
43778
43053
  }
43779
43054
  static {
43780
43055
  this.propAnnotations = {
43781
- id: {
43782
- key: "id",
43783
- type: PropertyType.Integer,
43784
- isArray: false
43785
- },
43786
43056
  lastUpdate: {
43787
43057
  key: "lastUpdate",
43788
43058
  type: PropertyType.DateTime,
@@ -43834,11 +43104,6 @@ var AFSadyAKomplety = class extends AFEntity {
43834
43104
  }
43835
43105
  static {
43836
43106
  this.propAnnotations = {
43837
- id: {
43838
- key: "id",
43839
- type: PropertyType.Integer,
43840
- isArray: false
43841
- },
43842
43107
  lastUpdate: {
43843
43108
  key: "lastUpdate",
43844
43109
  type: PropertyType.DateTime,
@@ -43896,11 +43161,6 @@ var AFKusovnik = class extends AFEntity {
43896
43161
  }
43897
43162
  static {
43898
43163
  this.propAnnotations = {
43899
- id: {
43900
- key: "id",
43901
- type: PropertyType.Integer,
43902
- isArray: false
43903
- },
43904
43164
  lastUpdate: {
43905
43165
  key: "lastUpdate",
43906
43166
  type: PropertyType.DateTime,
@@ -43999,11 +43259,6 @@ var AFCenikObal = class extends AFEntity {
43999
43259
  }
44000
43260
  static {
44001
43261
  this.propAnnotations = {
44002
- id: {
44003
- key: "id",
44004
- type: PropertyType.Integer,
44005
- isArray: false
44006
- },
44007
43262
  lastUpdate: {
44008
43263
  key: "lastUpdate",
44009
43264
  type: PropertyType.DateTime,
@@ -44159,11 +43414,6 @@ var AFSkupinaZbozi = class extends AFEntity {
44159
43414
  }
44160
43415
  static {
44161
43416
  this.propAnnotations = {
44162
- id: {
44163
- key: "id",
44164
- type: PropertyType.Integer,
44165
- isArray: false
44166
- },
44167
43417
  lastUpdate: {
44168
43418
  key: "lastUpdate",
44169
43419
  type: PropertyType.DateTime,
@@ -44437,11 +43687,6 @@ var AFSkladovyPohyb = class extends AFEntity {
44437
43687
  }
44438
43688
  static {
44439
43689
  this.propAnnotations = {
44440
- id: {
44441
- key: "id",
44442
- type: PropertyType.Integer,
44443
- isArray: false
44444
- },
44445
43690
  lastUpdate: {
44446
43691
  key: "lastUpdate",
44447
43692
  type: PropertyType.DateTime,
@@ -45023,11 +44268,6 @@ var AFSkladovyPohybPolozka = class extends AFEntity {
45023
44268
  }
45024
44269
  static {
45025
44270
  this.propAnnotations = {
45026
- id: {
45027
- key: "id",
45028
- type: PropertyType.Integer,
45029
- isArray: false
45030
- },
45031
44271
  lastUpdate: {
45032
44272
  key: "lastUpdate",
45033
44273
  type: PropertyType.DateTime,
@@ -45533,11 +44773,6 @@ var AFRadaSkladovyPohyb = class extends AFEntity {
45533
44773
  }
45534
44774
  static {
45535
44775
  this.propAnnotations = {
45536
- id: {
45537
- key: "id",
45538
- type: PropertyType.Integer,
45539
- isArray: false
45540
- },
45541
44776
  lastUpdate: {
45542
44777
  key: "lastUpdate",
45543
44778
  type: PropertyType.DateTime,
@@ -45631,11 +44866,6 @@ var AFTypSkladovyPohyb = class extends AFEntity {
45631
44866
  }
45632
44867
  static {
45633
44868
  this.propAnnotations = {
45634
- id: {
45635
- key: "id",
45636
- type: PropertyType.Integer,
45637
- isArray: false
45638
- },
45639
44869
  lastUpdate: {
45640
44870
  key: "lastUpdate",
45641
44871
  type: PropertyType.DateTime,
@@ -45923,11 +45153,6 @@ var AFSklad = class extends AFEntity {
45923
45153
  }
45924
45154
  static {
45925
45155
  this.propAnnotations = {
45926
- id: {
45927
- key: "id",
45928
- type: PropertyType.Integer,
45929
- isArray: false
45930
- },
45931
45156
  lastUpdate: {
45932
45157
  key: "lastUpdate",
45933
45158
  type: PropertyType.DateTime,
@@ -46072,11 +45297,6 @@ var AFStrom = class extends AFEntity {
46072
45297
  }
46073
45298
  static {
46074
45299
  this.propAnnotations = {
46075
- id: {
46076
- key: "id",
46077
- type: PropertyType.Integer,
46078
- isArray: false
46079
- },
46080
45300
  lastUpdate: {
46081
45301
  key: "lastUpdate",
46082
45302
  type: PropertyType.DateTime,
@@ -46201,11 +45421,6 @@ var AFStromKoren = class extends AFEntity {
46201
45421
  }
46202
45422
  static {
46203
45423
  this.propAnnotations = {
46204
- id: {
46205
- key: "id",
46206
- type: PropertyType.Integer,
46207
- isArray: false
46208
- },
46209
45424
  lastUpdate: {
46210
45425
  key: "lastUpdate",
46211
45426
  type: PropertyType.DateTime,
@@ -46302,11 +45517,6 @@ var AFStromCenik = class extends AFEntity {
46302
45517
  }
46303
45518
  static {
46304
45519
  this.propAnnotations = {
46305
- id: {
46306
- key: "id",
46307
- type: PropertyType.Integer,
46308
- isArray: false
46309
- },
46310
45520
  lastUpdate: {
46311
45521
  key: "lastUpdate",
46312
45522
  type: PropertyType.DateTime,
@@ -46345,11 +45555,6 @@ var AFMapovaniSkladu = class extends AFEntity {
46345
45555
  }
46346
45556
  static {
46347
45557
  this.propAnnotations = {
46348
- id: {
46349
- key: "id",
46350
- type: PropertyType.Integer,
46351
- isArray: false
46352
- },
46353
45558
  lastUpdate: {
46354
45559
  key: "lastUpdate",
46355
45560
  type: PropertyType.DateTime,
@@ -46408,11 +45613,6 @@ var AFUmisteniVeSkladu = class extends AFEntity {
46408
45613
  }
46409
45614
  static {
46410
45615
  this.propAnnotations = {
46411
- id: {
46412
- key: "id",
46413
- type: PropertyType.Integer,
46414
- isArray: false
46415
- },
46416
45616
  lastUpdate: {
46417
45617
  key: "lastUpdate",
46418
45618
  type: PropertyType.DateTime,
@@ -46508,11 +45708,6 @@ var AFUmisteniVeSkladuRegal = class extends AFEntity {
46508
45708
  }
46509
45709
  static {
46510
45710
  this.propAnnotations = {
46511
- id: {
46512
- key: "id",
46513
- type: PropertyType.Integer,
46514
- isArray: false
46515
- },
46516
45711
  lastUpdate: {
46517
45712
  key: "lastUpdate",
46518
45713
  type: PropertyType.DateTime,
@@ -46608,11 +45803,6 @@ var AFUmisteniVeSkladuPolice = class extends AFEntity {
46608
45803
  }
46609
45804
  static {
46610
45805
  this.propAnnotations = {
46611
- id: {
46612
- key: "id",
46613
- type: PropertyType.Integer,
46614
- isArray: false
46615
- },
46616
45806
  lastUpdate: {
46617
45807
  key: "lastUpdate",
46618
45808
  type: PropertyType.DateTime,
@@ -46708,11 +45898,6 @@ var AFUmisteniVeSkladuMistnost = class extends AFEntity {
46708
45898
  }
46709
45899
  static {
46710
45900
  this.propAnnotations = {
46711
- id: {
46712
- key: "id",
46713
- type: PropertyType.Integer,
46714
- isArray: false
46715
- },
46716
45901
  lastUpdate: {
46717
45902
  key: "lastUpdate",
46718
45903
  type: PropertyType.DateTime,
@@ -46808,11 +45993,6 @@ var AFAtribut = class extends AFEntity {
46808
45993
  }
46809
45994
  static {
46810
45995
  this.propAnnotations = {
46811
- id: {
46812
- key: "id",
46813
- type: PropertyType.Integer,
46814
- isArray: false
46815
- },
46816
45996
  lastUpdate: {
46817
45997
  key: "lastUpdate",
46818
45998
  type: PropertyType.DateTime,
@@ -46924,11 +46104,6 @@ var AFPrislustenstvi = class extends AFEntity {
46924
46104
  }
46925
46105
  static {
46926
46106
  this.propAnnotations = {
46927
- id: {
46928
- key: "id",
46929
- type: PropertyType.Integer,
46930
- isArray: false
46931
- },
46932
46107
  lastUpdate: {
46933
46108
  key: "lastUpdate",
46934
46109
  type: PropertyType.DateTime,
@@ -46980,11 +46155,6 @@ var AFTypStavuCeniku = class extends AFEntity {
46980
46155
  }
46981
46156
  static {
46982
46157
  this.propAnnotations = {
46983
- id: {
46984
- key: "id",
46985
- type: PropertyType.Integer,
46986
- isArray: false
46987
- },
46988
46158
  lastUpdate: {
46989
46159
  key: "lastUpdate",
46990
46160
  type: PropertyType.DateTime,
@@ -47088,11 +46258,6 @@ var AFStavCeniku = class extends AFEntity {
47088
46258
  }
47089
46259
  static {
47090
46260
  this.propAnnotations = {
47091
- id: {
47092
- key: "id",
47093
- type: PropertyType.Integer,
47094
- isArray: false
47095
- },
47096
46261
  lastUpdate: {
47097
46262
  key: "lastUpdate",
47098
46263
  type: PropertyType.DateTime,
@@ -47196,11 +46361,6 @@ var AFTypAtributu = class extends AFEntity {
47196
46361
  }
47197
46362
  static {
47198
46363
  this.propAnnotations = {
47199
- id: {
47200
- key: "id",
47201
- type: PropertyType.Integer,
47202
- isArray: false
47203
- },
47204
46364
  lastUpdate: {
47205
46365
  key: "lastUpdate",
47206
46366
  type: PropertyType.DateTime,
@@ -47318,11 +46478,6 @@ var AFSkupinaAtributu = class extends AFEntity {
47318
46478
  }
47319
46479
  static {
47320
46480
  this.propAnnotations = {
47321
- id: {
47322
- key: "id",
47323
- type: PropertyType.Integer,
47324
- isArray: false
47325
- },
47326
46481
  lastUpdate: {
47327
46482
  key: "lastUpdate",
47328
46483
  type: PropertyType.DateTime,
@@ -47434,11 +46589,6 @@ var AFInventura = class extends AFEntity {
47434
46589
  }
47435
46590
  static {
47436
46591
  this.propAnnotations = {
47437
- id: {
47438
- key: "id",
47439
- type: PropertyType.Integer,
47440
- isArray: false
47441
- },
47442
46592
  lastUpdate: {
47443
46593
  key: "lastUpdate",
47444
46594
  type: PropertyType.DateTime,
@@ -47533,11 +46683,6 @@ var AFInventuraPolozka = class extends AFEntity {
47533
46683
  }
47534
46684
  static {
47535
46685
  this.propAnnotations = {
47536
- id: {
47537
- key: "id",
47538
- type: PropertyType.Integer,
47539
- isArray: false
47540
- },
47541
46686
  lastUpdate: {
47542
46687
  key: "lastUpdate",
47543
46688
  type: PropertyType.DateTime,
@@ -47782,11 +46927,6 @@ var AFSarzeExpirace = class extends AFEntity {
47782
46927
  }
47783
46928
  static {
47784
46929
  this.propAnnotations = {
47785
- id: {
47786
- key: "id",
47787
- type: PropertyType.Integer,
47788
- isArray: false
47789
- },
47790
46930
  pocet: {
47791
46931
  key: "pocet",
47792
46932
  type: PropertyType.Numeric,
@@ -47881,11 +47021,6 @@ var AFMajetek = class extends AFEntity {
47881
47021
  }
47882
47022
  static {
47883
47023
  this.propAnnotations = {
47884
- id: {
47885
- key: "id",
47886
- type: PropertyType.Integer,
47887
- isArray: false
47888
- },
47889
47024
  lastUpdate: {
47890
47025
  key: "lastUpdate",
47891
47026
  type: PropertyType.DateTime,
@@ -48356,11 +47491,6 @@ var AFLeasing = class extends AFEntity {
48356
47491
  }
48357
47492
  static {
48358
47493
  this.propAnnotations = {
48359
- id: {
48360
- key: "id",
48361
- type: PropertyType.Integer,
48362
- isArray: false
48363
- },
48364
47494
  lastUpdate: {
48365
47495
  key: "lastUpdate",
48366
47496
  type: PropertyType.DateTime,
@@ -48695,11 +47825,6 @@ var AFSplatkovyKalendar = class extends AFEntity {
48695
47825
  }
48696
47826
  static {
48697
47827
  this.propAnnotations = {
48698
- id: {
48699
- key: "id",
48700
- type: PropertyType.Integer,
48701
- isArray: false
48702
- },
48703
47828
  lastUpdate: {
48704
47829
  key: "lastUpdate",
48705
47830
  type: PropertyType.DateTime,
@@ -48892,11 +48017,6 @@ var AFDanovyNaklad = class extends AFEntity {
48892
48017
  }
48893
48018
  static {
48894
48019
  this.propAnnotations = {
48895
- id: {
48896
- key: "id",
48897
- type: PropertyType.Integer,
48898
- isArray: false
48899
- },
48900
48020
  lastUpdate: {
48901
48021
  key: "lastUpdate",
48902
48022
  type: PropertyType.DateTime,
@@ -49007,11 +48127,6 @@ var AFTypMajetku = class extends AFEntity {
49007
48127
  }
49008
48128
  static {
49009
48129
  this.propAnnotations = {
49010
- id: {
49011
- key: "id",
49012
- type: PropertyType.Integer,
49013
- isArray: false
49014
- },
49015
48130
  lastUpdate: {
49016
48131
  key: "lastUpdate",
49017
48132
  type: PropertyType.DateTime,
@@ -49169,11 +48284,6 @@ var AFTypLeasingu = class extends AFEntity {
49169
48284
  }
49170
48285
  static {
49171
48286
  this.propAnnotations = {
49172
- id: {
49173
- key: "id",
49174
- type: PropertyType.Integer,
49175
- isArray: false
49176
- },
49177
48287
  lastUpdate: {
49178
48288
  key: "lastUpdate",
49179
48289
  type: PropertyType.DateTime,
@@ -49327,11 +48437,6 @@ var AFUmisteni = class extends AFEntity {
49327
48437
  }
49328
48438
  static {
49329
48439
  this.propAnnotations = {
49330
- id: {
49331
- key: "id",
49332
- type: PropertyType.Integer,
49333
- isArray: false
49334
- },
49335
48440
  lastUpdate: {
49336
48441
  key: "lastUpdate",
49337
48442
  type: PropertyType.DateTime,
@@ -49414,11 +48519,6 @@ var AFOdpisovaSkupina = class extends AFEntity {
49414
48519
  }
49415
48520
  static {
49416
48521
  this.propAnnotations = {
49417
- id: {
49418
- key: "id",
49419
- type: PropertyType.Integer,
49420
- isArray: false
49421
- },
49422
48522
  lastUpdate: {
49423
48523
  key: "lastUpdate",
49424
48524
  type: PropertyType.DateTime,
@@ -49567,11 +48667,6 @@ var AFMajetekUdalost = class extends AFEntity {
49567
48667
  }
49568
48668
  static {
49569
48669
  this.propAnnotations = {
49570
- id: {
49571
- key: "id",
49572
- type: PropertyType.Integer,
49573
- isArray: false
49574
- },
49575
48670
  lastUpdate: {
49576
48671
  key: "lastUpdate",
49577
48672
  type: PropertyType.DateTime,
@@ -49745,11 +48840,6 @@ var AFZapujcka = class extends AFEntity {
49745
48840
  }
49746
48841
  static {
49747
48842
  this.propAnnotations = {
49748
- id: {
49749
- key: "id",
49750
- type: PropertyType.Integer,
49751
- isArray: false
49752
- },
49753
48843
  lastUpdate: {
49754
48844
  key: "lastUpdate",
49755
48845
  type: PropertyType.DateTime,
@@ -49904,11 +48994,6 @@ var AFDanovyOdpis = class extends AFEntity {
49904
48994
  }
49905
48995
  static {
49906
48996
  this.propAnnotations = {
49907
- id: {
49908
- key: "id",
49909
- type: PropertyType.Integer,
49910
- isArray: false
49911
- },
49912
48997
  ucetni: {
49913
48998
  key: "ucetni",
49914
48999
  type: PropertyType.Logic,
@@ -50029,11 +49114,6 @@ var AFUcetniOdpis = class extends AFEntity {
50029
49114
  }
50030
49115
  static {
50031
49116
  this.propAnnotations = {
50032
- id: {
50033
- key: "id",
50034
- type: PropertyType.Integer,
50035
- isArray: false
50036
- },
50037
49117
  ucetni: {
50038
49118
  key: "ucetni",
50039
49119
  type: PropertyType.Logic,
@@ -50149,11 +49229,6 @@ var AFOsoba = class extends AFEntity {
50149
49229
  }
50150
49230
  static {
50151
49231
  this.propAnnotations = {
50152
- id: {
50153
- key: "id",
50154
- type: PropertyType.Integer,
50155
- isArray: false
50156
- },
50157
49232
  lastUpdate: {
50158
49233
  key: "lastUpdate",
50159
49234
  type: PropertyType.DateTime,
@@ -50818,11 +49893,6 @@ var AFOsobaHlavicka = class extends AFEntity {
50818
49893
  }
50819
49894
  static {
50820
49895
  this.propAnnotations = {
50821
- id: {
50822
- key: "id",
50823
- type: PropertyType.Integer,
50824
- isArray: false
50825
- },
50826
49896
  lastUpdate: {
50827
49897
  key: "lastUpdate",
50828
49898
  type: PropertyType.DateTime,
@@ -50896,11 +49966,6 @@ var AFSkupinaOsob = class extends AFEntity {
50896
49966
  }
50897
49967
  static {
50898
49968
  this.propAnnotations = {
50899
- id: {
50900
- key: "id",
50901
- type: PropertyType.Integer,
50902
- isArray: false
50903
- },
50904
49969
  lastUpdate: {
50905
49970
  key: "lastUpdate",
50906
49971
  type: PropertyType.DateTime,
@@ -51092,11 +50157,6 @@ var AFDite = class extends AFEntity {
51092
50157
  }
51093
50158
  static {
51094
50159
  this.propAnnotations = {
51095
- id: {
51096
- key: "id",
51097
- type: PropertyType.Integer,
51098
- isArray: false
51099
- },
51100
50160
  lastUpdate: {
51101
50161
  key: "lastUpdate",
51102
50162
  type: PropertyType.DateTime,
@@ -51202,11 +50262,6 @@ var AFOsobaBlizka = class extends AFEntity {
51202
50262
  }
51203
50263
  static {
51204
50264
  this.propAnnotations = {
51205
- id: {
51206
- key: "id",
51207
- type: PropertyType.Integer,
51208
- isArray: false
51209
- },
51210
50265
  lastUpdate: {
51211
50266
  key: "lastUpdate",
51212
50267
  type: PropertyType.DateTime,
@@ -51312,11 +50367,6 @@ var AFNepritomnost = class extends AFEntity {
51312
50367
  }
51313
50368
  static {
51314
50369
  this.propAnnotations = {
51315
- id: {
51316
- key: "id",
51317
- type: PropertyType.Integer,
51318
- isArray: false
51319
- },
51320
50370
  lastUpdate: {
51321
50371
  key: "lastUpdate",
51322
50372
  type: PropertyType.DateTime,
@@ -51457,11 +50507,6 @@ var AFSrazka = class extends AFEntity {
51457
50507
  }
51458
50508
  static {
51459
50509
  this.propAnnotations = {
51460
- id: {
51461
- key: "id",
51462
- type: PropertyType.Integer,
51463
- isArray: false
51464
- },
51465
50510
  lastUpdate: {
51466
50511
  key: "lastUpdate",
51467
50512
  type: PropertyType.DateTime,
@@ -51630,11 +50675,6 @@ var AFTypPracovnihoPomeru = class extends AFEntity {
51630
50675
  }
51631
50676
  static {
51632
50677
  this.propAnnotations = {
51633
- id: {
51634
- key: "id",
51635
- type: PropertyType.Integer,
51636
- isArray: false
51637
- },
51638
50678
  lastUpdate: {
51639
50679
  key: "lastUpdate",
51640
50680
  type: PropertyType.DateTime,
@@ -51717,11 +50757,6 @@ var AFMzdyBankovniSpojeni = class extends AFEntity {
51717
50757
  }
51718
50758
  static {
51719
50759
  this.propAnnotations = {
51720
- id: {
51721
- key: "id",
51722
- type: PropertyType.Integer,
51723
- isArray: false
51724
- },
51725
50760
  lastUpdate: {
51726
50761
  key: "lastUpdate",
51727
50762
  type: PropertyType.DateTime,
@@ -51862,11 +50897,6 @@ var AFPracovniPomer = class extends AFEntity {
51862
50897
  }
51863
50898
  static {
51864
50899
  this.propAnnotations = {
51865
- id: {
51866
- key: "id",
51867
- type: PropertyType.Integer,
51868
- isArray: false
51869
- },
51870
50900
  lastUpdate: {
51871
50901
  key: "lastUpdate",
51872
50902
  type: PropertyType.DateTime,
@@ -52302,11 +51332,6 @@ var AFPracovniPomerHlavicka = class extends AFEntity {
52302
51332
  }
52303
51333
  static {
52304
51334
  this.propAnnotations = {
52305
- id: {
52306
- key: "id",
52307
- type: PropertyType.Integer,
52308
- isArray: false
52309
- },
52310
51335
  lastUpdate: {
52311
51336
  key: "lastUpdate",
52312
51337
  type: PropertyType.DateTime,
@@ -52397,11 +51422,6 @@ var AFStalaMzdovaSlozka = class extends AFEntity {
52397
51422
  }
52398
51423
  static {
52399
51424
  this.propAnnotations = {
52400
- id: {
52401
- key: "id",
52402
- type: PropertyType.Integer,
52403
- isArray: false
52404
- },
52405
51425
  lastUpdate: {
52406
51426
  key: "lastUpdate",
52407
51427
  type: PropertyType.DateTime,
@@ -52626,11 +51646,6 @@ var AFMzdovaSlozka = class extends AFEntity {
52626
51646
  }
52627
51647
  static {
52628
51648
  this.propAnnotations = {
52629
- id: {
52630
- key: "id",
52631
- type: PropertyType.Integer,
52632
- isArray: false
52633
- },
52634
51649
  lastUpdate: {
52635
51650
  key: "lastUpdate",
52636
51651
  type: PropertyType.DateTime,
@@ -52905,11 +51920,6 @@ var AFSmena = class extends AFEntity {
52905
51920
  }
52906
51921
  static {
52907
51922
  this.propAnnotations = {
52908
- id: {
52909
- key: "id",
52910
- type: PropertyType.Integer,
52911
- isArray: false
52912
- },
52913
51923
  lastUpdate: {
52914
51924
  key: "lastUpdate",
52915
51925
  type: PropertyType.DateTime,
@@ -52980,11 +51990,6 @@ var AFCiselnikMzdovychSlozek = class extends AFEntity {
52980
51990
  }
52981
51991
  static {
52982
51992
  this.propAnnotations = {
52983
- id: {
52984
- key: "id",
52985
- type: PropertyType.Integer,
52986
- isArray: false
52987
- },
52988
51993
  lastUpdate: {
52989
51994
  key: "lastUpdate",
52990
51995
  type: PropertyType.DateTime,
@@ -53325,11 +52330,6 @@ var AFPrace = class extends AFEntity {
53325
52330
  }
53326
52331
  static {
53327
52332
  this.propAnnotations = {
53328
- id: {
53329
- key: "id",
53330
- type: PropertyType.Integer,
53331
- isArray: false
53332
- },
53333
52333
  lastUpdate: {
53334
52334
  key: "lastUpdate",
53335
52335
  type: PropertyType.DateTime,
@@ -53415,11 +52415,6 @@ var AFPraceMesic = class extends AFEntity {
53415
52415
  }
53416
52416
  static {
53417
52417
  this.propAnnotations = {
53418
- id: {
53419
- key: "id",
53420
- type: PropertyType.Integer,
53421
- isArray: false
53422
- },
53423
52418
  lastUpdate: {
53424
52419
  key: "lastUpdate",
53425
52420
  type: PropertyType.DateTime,
@@ -54110,11 +53105,6 @@ var AFZavazek = class extends AFEntity {
54110
53105
  }
54111
53106
  static {
54112
53107
  this.propAnnotations = {
54113
- id: {
54114
- key: "id",
54115
- type: PropertyType.Integer,
54116
- isArray: false
54117
- },
54118
53108
  lastUpdate: {
54119
53109
  key: "lastUpdate",
54120
53110
  type: PropertyType.DateTime,
@@ -55018,11 +54008,6 @@ var AFZavazekPolozka = class extends AFEntity {
55018
54008
  }
55019
54009
  static {
55020
54010
  this.propAnnotations = {
55021
- id: {
55022
- key: "id",
55023
- type: PropertyType.Integer,
55024
- isArray: false
55025
- },
55026
54011
  lastUpdate: {
55027
54012
  key: "lastUpdate",
55028
54013
  type: PropertyType.DateTime,
@@ -55572,11 +54557,6 @@ var AFTypZavazku = class extends AFEntity {
55572
54557
  }
55573
54558
  static {
55574
54559
  this.propAnnotations = {
55575
- id: {
55576
- key: "id",
55577
- type: PropertyType.Integer,
55578
- isArray: false
55579
- },
55580
54560
  lastUpdate: {
55581
54561
  key: "lastUpdate",
55582
54562
  type: PropertyType.DateTime,
@@ -55869,11 +54849,6 @@ var AFRadaZavazku = class extends AFEntity {
55869
54849
  }
55870
54850
  static {
55871
54851
  this.propAnnotations = {
55872
- id: {
55873
- key: "id",
55874
- type: PropertyType.Integer,
55875
- isArray: false
55876
- },
55877
54852
  lastUpdate: {
55878
54853
  key: "lastUpdate",
55879
54854
  type: PropertyType.DateTime,
@@ -55967,11 +54942,6 @@ var AFFiltr = class extends AFEntity {
55967
54942
  }
55968
54943
  static {
55969
54944
  this.propAnnotations = {
55970
- id: {
55971
- key: "id",
55972
- type: PropertyType.Integer,
55973
- isArray: false
55974
- },
55975
54945
  lastUpdate: {
55976
54946
  key: "lastUpdate",
55977
54947
  type: PropertyType.DateTime,
@@ -56059,11 +55029,6 @@ var AFParametr = class extends AFEntity {
56059
55029
  }
56060
55030
  static {
56061
55031
  this.propAnnotations = {
56062
- id: {
56063
- key: "id",
56064
- type: PropertyType.Integer,
56065
- isArray: false
56066
- },
56067
55032
  lastUpdate: {
56068
55033
  key: "lastUpdate",
56069
55034
  type: PropertyType.DateTime,
@@ -56170,11 +55135,6 @@ var AFUzivatelskyDotaz = class extends AFEntity {
56170
55135
  }
56171
55136
  static {
56172
55137
  this.propAnnotations = {
56173
- id: {
56174
- key: "id",
56175
- type: PropertyType.Integer,
56176
- isArray: false
56177
- },
56178
55138
  lastUpdate: {
56179
55139
  key: "lastUpdate",
56180
55140
  type: PropertyType.DateTime,
@@ -56299,11 +55259,6 @@ var AFUzivatelskyDotazParametr = class extends AFEntity {
56299
55259
  }
56300
55260
  static {
56301
55261
  this.propAnnotations = {
56302
- id: {
56303
- key: "id",
56304
- type: PropertyType.Integer,
56305
- isArray: false
56306
- },
56307
55262
  lastUpdate: {
56308
55263
  key: "lastUpdate",
56309
55264
  type: PropertyType.DateTime,
@@ -56416,11 +55371,6 @@ var AFUzivatelskyDotazVlastnost = class extends AFEntity {
56416
55371
  }
56417
55372
  static {
56418
55373
  this.propAnnotations = {
56419
- id: {
56420
- key: "id",
56421
- type: PropertyType.Integer,
56422
- isArray: false
56423
- },
56424
55374
  lastUpdate: {
56425
55375
  key: "lastUpdate",
56426
55376
  type: PropertyType.DateTime,
@@ -56540,11 +55490,6 @@ var AFCustomButton = class extends AFEntity {
56540
55490
  }
56541
55491
  static {
56542
55492
  this.propAnnotations = {
56543
- id: {
56544
- key: "id",
56545
- type: PropertyType.Integer,
56546
- isArray: false
56547
- },
56548
55493
  kod: {
56549
55494
  key: "kod",
56550
55495
  type: PropertyType.String,
@@ -56605,11 +55550,6 @@ var AFSettingStore = class extends AFEntity {
56605
55550
  }
56606
55551
  static {
56607
55552
  this.propAnnotations = {
56608
- id: {
56609
- key: "id",
56610
- type: PropertyType.Integer,
56611
- isArray: false
56612
- },
56613
55553
  klic: {
56614
55554
  key: "klic",
56615
55555
  type: PropertyType.String,
@@ -56644,11 +55584,6 @@ var AFGlobalStore = class extends AFEntity {
56644
55584
  }
56645
55585
  static {
56646
55586
  this.propAnnotations = {
56647
- id: {
56648
- key: "id",
56649
- type: PropertyType.Integer,
56650
- isArray: false
56651
- },
56652
55587
  klic: {
56653
55588
  key: "klic",
56654
55589
  type: PropertyType.String,
@@ -56681,11 +55616,6 @@ var AFDashboardPanel = class extends AFEntity {
56681
55616
  }
56682
55617
  static {
56683
55618
  this.propAnnotations = {
56684
- id: {
56685
- key: "id",
56686
- type: PropertyType.Integer,
56687
- isArray: false
56688
- },
56689
55619
  lastUpdate: {
56690
55620
  key: "lastUpdate",
56691
55621
  type: PropertyType.DateTime,
@@ -56798,11 +55728,6 @@ var AFDashboardSharing = class extends AFEntity {
56798
55728
  }
56799
55729
  static {
56800
55730
  this.propAnnotations = {
56801
- id: {
56802
- key: "id",
56803
- type: PropertyType.Integer,
56804
- isArray: false
56805
- },
56806
55731
  hidden: {
56807
55732
  key: "hidden",
56808
55733
  type: PropertyType.Logic,
@@ -56853,11 +55778,6 @@ var AFInsight = class extends AFEntity {
56853
55778
  }
56854
55779
  static {
56855
55780
  this.propAnnotations = {
56856
- id: {
56857
- key: "id",
56858
- type: PropertyType.Integer,
56859
- isArray: false
56860
- },
56861
55781
  lastUpdate: {
56862
55782
  key: "lastUpdate",
56863
55783
  type: PropertyType.DateTime,
@@ -56952,11 +55872,6 @@ var AFAutotisk = class extends AFEntity {
56952
55872
  }
56953
55873
  static {
56954
55874
  this.propAnnotations = {
56955
- id: {
56956
- key: "id",
56957
- type: PropertyType.Integer,
56958
- isArray: false
56959
- },
56960
55875
  lastUpdate: {
56961
55876
  key: "lastUpdate",
56962
55877
  type: PropertyType.DateTime,
@@ -57021,11 +55936,6 @@ var AFXslt = class extends AFEntity {
57021
55936
  }
57022
55937
  static {
57023
55938
  this.propAnnotations = {
57024
- id: {
57025
- key: "id",
57026
- type: PropertyType.Integer,
57027
- isArray: false
57028
- },
57029
55939
  lastUpdate: {
57030
55940
  key: "lastUpdate",
57031
55941
  type: PropertyType.DateTime,
@@ -57103,11 +56013,6 @@ var AFSablonaMail = class extends AFEntity {
57103
56013
  }
57104
56014
  static {
57105
56015
  this.propAnnotations = {
57106
- id: {
57107
- key: "id",
57108
- type: PropertyType.Integer,
57109
- isArray: false
57110
- },
57111
56016
  lastUpdate: {
57112
56017
  key: "lastUpdate",
57113
56018
  type: PropertyType.DateTime,
@@ -57199,11 +56104,6 @@ var AFObrat = class extends AFEntity {
57199
56104
  }
57200
56105
  static {
57201
56106
  this.propAnnotations = {
57202
- id: {
57203
- key: "id",
57204
- type: PropertyType.Integer,
57205
- isArray: false
57206
- },
57207
56107
  lastUpdate: {
57208
56108
  key: "lastUpdate",
57209
56109
  type: PropertyType.DateTime,
@@ -64424,11 +63324,6 @@ var AFSestava = class extends AFEntity {
64424
63324
  }
64425
63325
  static {
64426
63326
  this.propAnnotations = {
64427
- id: {
64428
- key: "id",
64429
- type: PropertyType.Integer,
64430
- isArray: false
64431
- },
64432
63327
  lastUpdate: {
64433
63328
  key: "lastUpdate",
64434
63329
  type: PropertyType.DateTime,
@@ -64838,11 +63733,6 @@ var AFRadekSestavy = class extends AFEntity {
64838
63733
  }
64839
63734
  static {
64840
63735
  this.propAnnotations = {
64841
- id: {
64842
- key: "id",
64843
- type: PropertyType.Integer,
64844
- isArray: false
64845
- },
64846
63736
  lastUpdate: {
64847
63737
  key: "lastUpdate",
64848
63738
  type: PropertyType.DateTime,
@@ -64988,11 +63878,6 @@ var AFSumaceSestavy = class extends AFEntity {
64988
63878
  }
64989
63879
  static {
64990
63880
  this.propAnnotations = {
64991
- id: {
64992
- key: "id",
64993
- type: PropertyType.Integer,
64994
- isArray: false
64995
- },
64996
63881
  lastUpdate: {
64997
63882
  key: "lastUpdate",
64998
63883
  type: PropertyType.DateTime,
@@ -65044,11 +63929,6 @@ var AFStandardniPredpis = class extends AFEntity {
65044
63929
  }
65045
63930
  static {
65046
63931
  this.propAnnotations = {
65047
- id: {
65048
- key: "id",
65049
- type: PropertyType.Integer,
65050
- isArray: false
65051
- },
65052
63932
  lastUpdate: {
65053
63933
  key: "lastUpdate",
65054
63934
  type: PropertyType.DateTime,
@@ -65806,11 +64686,6 @@ var AFSubjekt = class extends AFEntity {
65806
64686
  }
65807
64687
  static {
65808
64688
  this.propAnnotations = {
65809
- id: {
65810
- key: "id",
65811
- type: PropertyType.Integer,
65812
- isArray: false
65813
- },
65814
64689
  platiOd: {
65815
64690
  key: "platiOd",
65816
64691
  type: PropertyType.Date,
@@ -65877,11 +64752,6 @@ var AFRadekPriznaniDph = class extends AFEntity {
65877
64752
  }
65878
64753
  static {
65879
64754
  this.propAnnotations = {
65880
- id: {
65881
- key: "id",
65882
- type: PropertyType.Integer,
65883
- isArray: false
65884
- },
65885
64755
  lastUpdate: {
65886
64756
  key: "lastUpdate",
65887
64757
  type: PropertyType.DateTime,
@@ -65982,11 +64852,6 @@ var AFUlozenePriznaniDph = class extends AFEntity {
65982
64852
  }
65983
64853
  static {
65984
64854
  this.propAnnotations = {
65985
- id: {
65986
- key: "id",
65987
- type: PropertyType.Integer,
65988
- isArray: false
65989
- },
65990
64855
  lastUpdate: {
65991
64856
  key: "lastUpdate",
65992
64857
  type: PropertyType.DateTime,
@@ -66061,11 +64926,6 @@ var AFUlozenePriznaniKonVykDph = class extends AFEntity {
66061
64926
  }
66062
64927
  static {
66063
64928
  this.propAnnotations = {
66064
- id: {
66065
- key: "id",
66066
- type: PropertyType.Integer,
66067
- isArray: false
66068
- },
66069
64929
  lastUpdate: {
66070
64930
  key: "lastUpdate",
66071
64931
  type: PropertyType.DateTime,
@@ -66142,11 +65002,6 @@ var AFZurnal = class extends AFEntity {
66142
65002
  }
66143
65003
  static {
66144
65004
  this.propAnnotations = {
66145
- id: {
66146
- key: "id",
66147
- type: PropertyType.Integer,
66148
- isArray: false
66149
- },
66150
65005
  tabulka: {
66151
65006
  key: "tabulka",
66152
65007
  type: PropertyType.String,
@@ -66578,6 +65433,29 @@ function extractEvidence(inUrl) {
66578
65433
  return split[3];
66579
65434
  }
66580
65435
 
65436
+ //#endregion
65437
+ //#region src/abra/AFNestedEntityResolver.ts
65438
+ function resolveNestedEntityPathPrefix(entityPath, options) {
65439
+ switch (entityPath) {
65440
+ case "individualni-cenik": {
65441
+ const sel = serializeParentSelector(options.adresarId, "adresarId", entityPath);
65442
+ if (sel === void 0) return "";
65443
+ return `adresar/${sel}/`;
65444
+ }
65445
+ default: return "";
65446
+ }
65447
+ }
65448
+ function serializeParentSelector(value, optionName, entityPath) {
65449
+ if (value === void 0 || value === null) return void 0;
65450
+ if (value instanceof AFFilter) {
65451
+ const piece = value.toUrlComponent();
65452
+ if (!piece.length) throw new AFError(AFErrorCode.MISSING_ID, `'${optionName}' for ${entityPath} resolved to empty URL component.`);
65453
+ return piece;
65454
+ }
65455
+ if (typeof value === "string" && !value.length) throw new AFError(AFErrorCode.MISSING_ID, `'${optionName}' for ${entityPath} must be a non-empty id.`);
65456
+ return String(value);
65457
+ }
65458
+
66581
65459
  //#endregion
66582
65460
  //#region src/abra/AFStitkyCache.ts
66583
65461
  const DEBOUNCE_MS = 5 * 1e3;
@@ -66596,51 +65474,61 @@ var AFStitkyCache = class {
66596
65474
  if (this._strategy === StitkyCacheStrategy.None) return;
66597
65475
  const now = /* @__PURE__ */ new Date();
66598
65476
  if (this._lastUpdate && now.getTime() - this._lastUpdate.getTime() < DEBOUNCE_MS) return;
66599
- const skupOpts = {
66600
- limit: NO_LIMIT,
66601
- detail: AFQueryDetail.FULL,
66602
- noUpdateStitkyCache: true
66603
- };
66604
- if (this._lastUpdate) skupOpts.filter = Filter(`lastUpdate > ':date'`, { date: this._lastUpdate });
66605
- const skUpdate = await this._client.query(AFSkupinaStitku, skupOpts);
66606
- for (const sk of skUpdate) {
66607
- let found = this._stitekSkupiny.find((ss) => ss.id === sk.id);
66608
- if (!found) {
66609
- this._stitekSkupiny.push(sk);
66610
- continue;
66611
- }
66612
- Object.assign(found, sk);
66613
- }
66614
- const stitOpts = {
66615
- limit: NO_LIMIT,
66616
- detail: [
66617
- "id",
66618
- "kod",
66619
- "lastUpdate",
66620
- "nazev",
66621
- "nazevA",
66622
- "nazevB",
66623
- "nazevC",
66624
- "nazevD",
66625
- "poznam",
66626
- "popis",
66627
- "platiOd",
66628
- "platiDo",
66629
- "skupVybKlic"
66630
- ],
66631
- noUpdateStitkyCache: true
66632
- };
66633
- if (this._lastUpdate) skupOpts.filter = Filter(`lastUpdate > ':date'`, { date: this._lastUpdate });
66634
- const stUpdate = await this._client.query(AFStitek, stitOpts);
66635
- for (const st of stUpdate) {
66636
- st.skupVybKlic = this._stitekSkupiny.find((ss) => ss.kod === st.skupVybKlic?.kod);
66637
- const found = this._stitky.find((s) => s.id === st.id);
66638
- if (!found) {
66639
- this._stitky.push(st);
66640
- continue;
65477
+ if (this._inflight) return this._inflight;
65478
+ this._inflight = (async () => {
65479
+ try {
65480
+ const sinceTs = this._lastUpdate ? formatAbraTimestamp(this._lastUpdate) : void 0;
65481
+ const skupOpts = {
65482
+ limit: NO_LIMIT,
65483
+ detail: AFQueryDetail.FULL,
65484
+ noUpdateStitkyCache: true
65485
+ };
65486
+ if (sinceTs) skupOpts.filter = Filter(`lastUpdate > :date`, { date: sinceTs });
65487
+ const skUpdate = await this._client.query(AFSkupinaStitku, skupOpts);
65488
+ for (const sk of skUpdate) {
65489
+ let found = this._stitekSkupiny.find((ss) => ss.id === sk.id);
65490
+ if (!found) {
65491
+ this._stitekSkupiny.push(sk);
65492
+ continue;
65493
+ }
65494
+ Object.assign(found, sk);
65495
+ }
65496
+ const stitOpts = {
65497
+ limit: NO_LIMIT,
65498
+ detail: [
65499
+ "id",
65500
+ "kod",
65501
+ "lastUpdate",
65502
+ "nazev",
65503
+ "nazevA",
65504
+ "nazevB",
65505
+ "nazevC",
65506
+ "nazevD",
65507
+ "poznam",
65508
+ "popis",
65509
+ "platiOd",
65510
+ "platiDo",
65511
+ "skupVybKlic"
65512
+ ],
65513
+ noUpdateStitkyCache: true
65514
+ };
65515
+ if (sinceTs) stitOpts.filter = Filter(`lastUpdate > :date`, { date: sinceTs });
65516
+ const stUpdate = await this._client.query(AFStitek, stitOpts);
65517
+ for (const st of stUpdate) {
65518
+ st.skupVybKlic = this._stitekSkupiny.find((ss) => ss.kod === st.skupVybKlic?.kod);
65519
+ const found = this._stitky.find((s) => s.id === st.id);
65520
+ if (!found) {
65521
+ this._stitky.push(st);
65522
+ continue;
65523
+ }
65524
+ Object.assign(found, st);
65525
+ }
65526
+ this._lastUpdate = now;
65527
+ } finally {
65528
+ this._inflight = void 0;
66641
65529
  }
66642
- Object.assign(found, st);
66643
- }
65530
+ })();
65531
+ return this._inflight;
66644
65532
  }
66645
65533
  stitkyWithString(keys, groupFilter) {
66646
65534
  if (!keys) return void 0;
@@ -66660,15 +65548,27 @@ var AFStitkyCache = class {
66660
65548
  return list;
66661
65549
  }
66662
65550
  };
65551
+ function formatAbraTimestamp(d) {
65552
+ const pad = (n) => String(n).padStart(2, "0");
65553
+ return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}T${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;
65554
+ }
66663
65555
 
66664
65556
  //#endregion
66665
65557
  //#region src/abra/AFApiClient.ts
66666
65558
  const ABRA_API_FORMAT = "json";
65559
+ const LOG_LEVEL_RANK = {
65560
+ none: 0,
65561
+ error: 1,
65562
+ warn: 2,
65563
+ info: 3,
65564
+ debug: 4
65565
+ };
66667
65566
  var AFApiClient = class {
66668
65567
  constructor(config) {
66669
65568
  this._url = config.url;
66670
65569
  this._company = config.company;
66671
65570
  this._fetch = config.fetch || fetch;
65571
+ this._logger = makeFilteringLogger(config.logger ?? console, config.logLevel ?? (config.logger ? "debug" : "none"));
66672
65572
  this._stitkyCache = new AFStitkyCache(this, config.stitkyCacheStrategy);
66673
65573
  }
66674
65574
  get url() {
@@ -66680,14 +65580,14 @@ var AFApiClient = class {
66680
65580
  get stitkyCacheStrategy() {
66681
65581
  return this._stitkyCache.strategy;
66682
65582
  }
66683
- async queryRaw(entityPath, options) {
66684
- if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
65583
+ _buildQueryUrl(entityPath, format, options) {
66685
65584
  const detail = options.detail || AFQueryDetail.SUMMARY;
66686
65585
  let furl = options.filter?.toUrlComponent();
66687
65586
  if (furl && !furl.length) furl = void 0;
66688
- let url = this._url + "/c/" + this.company + "/" + (options.entityPathPrefix ?? "") + entityPath;
65587
+ const pathPrefix = resolveNestedEntityPathPrefix(entityPath, options);
65588
+ let url = this._url + "/c/" + this.company + "/" + pathPrefix + entityPath;
66689
65589
  url += furl ? "/" + furl : "";
66690
- url += "." + ABRA_API_FORMAT;
65590
+ url += "." + format;
66691
65591
  url = addParamToUrl(url, "detail", composeDetail(detail));
66692
65592
  url = addParamToUrl(url, "includes", composeIncludes(detail, entityPath));
66693
65593
  url = addParamToUrl(url, "relations", composeRelations(detail));
@@ -66706,29 +65606,76 @@ var AFApiClient = class {
66706
65606
  url = addParamToUrl(url, "pocetMesicu", options.pocetMesicu);
66707
65607
  url = addParamToUrl(url, "date", options.date);
66708
65608
  url = addParamToUrl(url, "currency", options.currency);
66709
- console.log(url);
65609
+ return url;
65610
+ }
65611
+ async queryRaw(entityPath, options = {}) {
65612
+ if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
65613
+ const url = this._buildQueryUrl(entityPath, ABRA_API_FORMAT, options);
65614
+ this._logger.debug(url);
65615
+ try {
65616
+ const raw$1 = await this._fetch(url, { signal: options.abortController?.signal });
65617
+ const json = await raw$1.json().catch(() => null);
65618
+ if (raw$1.status >= 400 && raw$1.status < 600) {
65619
+ const details = this._extractAbraErrors(json);
65620
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}${details ? ` — ${details}` : ""}`);
65621
+ }
65622
+ let entityObj = json?.winstrom?.[entityPath];
65623
+ if (options.addRowCount && Array.isArray(entityObj)) {
65624
+ const rc = json?.winstrom?.["@rowCount"];
65625
+ if (rc !== void 0) entityObj.__rowCount = rc;
65626
+ }
65627
+ return entityObj;
65628
+ } catch (e) {
65629
+ if (!(e instanceof AFError)) {
65630
+ this._logger.error(e);
65631
+ e = new AFError(AFErrorCode.UNKNOWN, e.toString());
65632
+ }
65633
+ throw e;
65634
+ }
65635
+ }
65636
+ async queryFileRaw(entityPath, format, options = {}) {
65637
+ if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
65638
+ let url = this._buildQueryUrl(entityPath, format, options);
65639
+ url = addParamToUrl(url, "report-name", options.reportName);
65640
+ url = addParamToUrl(url, "report-lang", options.reportLang);
65641
+ this._logger.debug(url);
66710
65642
  try {
66711
65643
  const raw$1 = await this._fetch(url, { signal: options.abortController?.signal });
66712
- if (raw$1.status >= 400 && raw$1.status < 600) throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}`);
66713
- return (await raw$1.json()).winstrom[entityPath];
65644
+ if (raw$1.status >= 400 && raw$1.status < 600) {
65645
+ let details = "";
65646
+ if ((raw$1.headers.get("content-type") || "").includes("application/json")) {
65647
+ const json = await raw$1.json().catch(() => null);
65648
+ details = this._extractAbraErrors(json);
65649
+ }
65650
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}${details ? ` — ${details}` : ""}`);
65651
+ }
65652
+ return {
65653
+ blob: await raw$1.blob(),
65654
+ contentType: raw$1.headers.get("content-type") || "application/octet-stream",
65655
+ filename: parseContentDispositionFilename(raw$1.headers.get("content-disposition"))
65656
+ };
66714
65657
  } catch (e) {
66715
65658
  if (!(e instanceof AFError)) {
66716
- console.log(e);
65659
+ this._logger.error(e);
66717
65660
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66718
65661
  }
66719
65662
  throw e;
66720
65663
  }
66721
65664
  }
66722
- async query(entity, options) {
65665
+ async queryFile(entity, format, options = {}) {
65666
+ return this.queryFileRaw(entity.EntityPath, format, options);
65667
+ }
65668
+ async query(entity, options = {}) {
66723
65669
  const res = this.queryRaw(entity.EntityPath, options);
66724
65670
  try {
66725
65671
  const rawData = await res;
66726
65672
  const data = this._decodeEntityObj(entity, rawData);
65673
+ if (options.addRowCount && rawData?.__rowCount !== void 0) data.totalCount = parseInt(rawData.__rowCount, 10);
66727
65674
  if (!options.noUpdateStitkyCache) await this._stitkyCache.fetchTick();
66728
65675
  return data;
66729
65676
  } catch (e) {
66730
65677
  if (!(e instanceof AFError)) {
66731
- console.log(e);
65678
+ this._logger.error(e);
66732
65679
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66733
65680
  }
66734
65681
  throw e;
@@ -66775,7 +65722,7 @@ var AFApiClient = class {
66775
65722
  out.push(res);
66776
65723
  } catch (e) {
66777
65724
  if (!(e instanceof AFError)) {
66778
- console.log(e);
65725
+ this._logger.error(e);
66779
65726
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66780
65727
  }
66781
65728
  throw e;
@@ -66786,7 +65733,7 @@ var AFApiClient = class {
66786
65733
  if (!options.noUpdateStitkyCache) await this._stitkyCache.fetchTick();
66787
65734
  return out;
66788
65735
  }
66789
- async populate(entities, options) {
65736
+ async populate(entities, options = {}) {
66790
65737
  const fetchBy = [];
66791
65738
  for (const en of entities) {
66792
65739
  if (typeof en.id !== "undefined" && en.id !== null) {
@@ -66825,18 +65772,19 @@ var AFApiClient = class {
66825
65772
  if (!en) continue;
66826
65773
  const oKeys = Object.keys(enQ);
66827
65774
  for (const okey of oKeys) this._decodeProperty(en, okey, enQ);
65775
+ if (enQ.id) en._setId(Number(enQ.id));
66828
65776
  }
66829
65777
  if (!options.noUpdateStitkyCache) await this._stitkyCache.fetchTick();
66830
65778
  } catch (e) {
66831
65779
  if (!(e instanceof AFError)) {
66832
- console.log(e);
65780
+ this._logger.error(e);
66833
65781
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66834
65782
  }
66835
65783
  throw e;
66836
65784
  }
66837
65785
  return entities;
66838
65786
  }
66839
- async populateOne(entity, options) {
65787
+ async populateOne(entity, options = {}) {
66840
65788
  const res = await this.populate([entity], options);
66841
65789
  if (!res || !res.length) throw new AFError(AFErrorCode.OBJECT_NOT_FOUND, `${entity} object not found. Kod / ID: ${entity.kod} / ${entity.id}`);
66842
65790
  return res[0];
@@ -66844,19 +65792,116 @@ var AFApiClient = class {
66844
65792
  async create(entity) {
66845
65793
  return new entity(this._stitkyCache);
66846
65794
  }
65795
+ /**
65796
+ * Resolves the server-assigned id for an entity that may be in 'unknown' state.
65797
+ * Priority order: confirmed _id → _stub.id → _stub.kod / entity.kod → _stub.ext
65798
+ *
65799
+ * Returns the resolved id (number), or null if the entity was not found.
65800
+ * On a 404 response, the entity state is reset to 'new'.
65801
+ * @internal
65802
+ */
65803
+ async _resolveId(entity) {
65804
+ if (entity.id !== void 0 && entity.id !== null) return entity.id;
65805
+ if (entity.isNew === true && !entity._stub && !entity.kod) return null;
65806
+ const entityPath = entity.constructor.EntityPath;
65807
+ const stub = entity._stub;
65808
+ let identifier;
65809
+ if (stub?.id !== void 0) identifier = stub.id;
65810
+ else if (stub?.kod) identifier = `code:${stub.kod}`;
65811
+ else if (entity.kod) identifier = `code:${entity.kod}`;
65812
+ else if (stub?.ext?.length) identifier = `ext:${stub.ext[0]}`;
65813
+ if (identifier === void 0) return null;
65814
+ const url = `${this._url}/c/${this._company}/${entityPath}/${identifier}.json?detail=id&no-ext-ids=true`;
65815
+ this._logger.debug(url);
65816
+ try {
65817
+ const raw$1 = await this._fetch(url);
65818
+ if (raw$1.status === 404) {
65819
+ entity._state = "new";
65820
+ entity._id = void 0;
65821
+ return null;
65822
+ }
65823
+ if (raw$1.status >= 400) {
65824
+ const json = await raw$1.json().catch(() => null);
65825
+ const details = this._extractAbraErrors(json);
65826
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status}${details ? ` — ${details}` : ""}`);
65827
+ }
65828
+ const items = (await raw$1.json().catch(() => null))?.winstrom?.[entityPath];
65829
+ if (!Array.isArray(items) || !items.length) {
65830
+ entity._state = "new";
65831
+ entity._id = void 0;
65832
+ return null;
65833
+ }
65834
+ const resolvedId = Number(items[0].id);
65835
+ if (!Number.isFinite(resolvedId)) {
65836
+ entity._state = "new";
65837
+ return null;
65838
+ }
65839
+ entity._setId(resolvedId);
65840
+ return resolvedId;
65841
+ } catch (e) {
65842
+ if (!(e instanceof AFError)) {
65843
+ this._logger.error(e);
65844
+ e = new AFError(AFErrorCode.UNKNOWN, e.toString());
65845
+ }
65846
+ throw e;
65847
+ }
65848
+ }
65849
+ /**
65850
+ * Resolves an entity by a validated identifier string or numeric id.
65851
+ * Accepted identifier forms:
65852
+ * - number → looks up by internal id
65853
+ * - "code:X" → looks up by business code
65854
+ * - "ext:X" → looks up by external id
65855
+ * Throws INVALID_IDENTIFIER for any other string.
65856
+ * Throws OBJECT_NOT_FOUND if the server returns 404.
65857
+ */
65858
+ async resolveStubId(entity, identifier) {
65859
+ if (typeof identifier === "string") {
65860
+ if (!identifier.length) throw new AFError(AFErrorCode.INVALID_IDENTIFIER, `Identifier must not be empty.`);
65861
+ if (!identifier.startsWith("code:") && !identifier.startsWith("ext:")) throw new AFError(AFErrorCode.INVALID_IDENTIFIER, `Identifier "${identifier}" is not a valid Flexi identifier. Use a number, "code:<value>", or "ext:<value>".`);
65862
+ }
65863
+ const ent = new entity(this._stitkyCache);
65864
+ if (typeof identifier === "number") ent._stub = { id: identifier };
65865
+ else if (identifier.startsWith("code:")) ent._stub = { kod: identifier.slice(5) };
65866
+ else ent._stub = { ext: [identifier.slice(4)] };
65867
+ ent._state = "unknown";
65868
+ if (await this._resolveId(ent) === null) throw new AFError(AFErrorCode.OBJECT_NOT_FOUND, `${entity.EntityName} not found for identifier "${identifier}".`);
65869
+ return ent;
65870
+ }
65871
+ /**
65872
+ * Resolves an entity in-place — determines and sets its server id.
65873
+ * Fast-path: if the entity already has a confirmed id, returns immediately.
65874
+ * For 'unknown' state: calls _resolveId; if not found and throwIfNotFound is
65875
+ * true, throws OBJECT_NOT_FOUND.
65876
+ * Always returns the same entity instance.
65877
+ */
65878
+ async resolve(entity, throwIfNotFound) {
65879
+ if (entity.id !== void 0 && entity.id !== null) return entity;
65880
+ if (entity.isNew === true && !entity._stub && !entity.kod) return entity;
65881
+ if (await this._resolveId(entity) === null && throwIfNotFound) throw new AFError(AFErrorCode.OBJECT_NOT_FOUND, `${entity.constructor.EntityName} not found.`);
65882
+ return entity;
65883
+ }
65884
+ /**
65885
+ * @deprecated Use resolveStubId() or resolve() instead.
65886
+ * Creates an entity instance in 'unknown' state with unverified identifiers.
65887
+ */
66847
65888
  async createIdStub(entity, id) {
66848
- if (typeof id.id !== "number" && (!id.kod || !id.kod.length) && (!id.ext || !id.ext.length)) throw new AFError(AFErrorCode.MISSING_ID, `Requesting id stub for ${entity.EntityName} but no id is pprovided.`);
65889
+ if (typeof id.id !== "number" && (!id.kod || !id.kod.length) && (!id.ext || !id.ext.length)) throw new AFError(AFErrorCode.MISSING_ID, `Requesting id stub for ${entity.EntityName} but no id is provided.`);
66849
65890
  const ent = new entity(this._stitkyCache);
66850
- if (id.id) ent.id = id.id;
66851
- if (id.kod) ent.kod = id.kod;
65891
+ ent._stub = {
65892
+ ...typeof id.id === "number" ? { id: id.id } : {},
65893
+ ...id.kod ? { kod: id.kod } : {},
65894
+ ...id.ext?.length ? { ext: id.ext } : {}
65895
+ };
65896
+ ent._state = "unknown";
66852
65897
  return ent;
66853
65898
  }
66854
65899
  async saveRaw(entityPath, data, options) {
66855
65900
  if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
66856
65901
  if (!options) options = {};
66857
65902
  let url = this._url + "/c/" + this.company + "/" + entityPath + ".json";
66858
- console.log(url);
66859
- console.log(data);
65903
+ this._logger.debug(url);
65904
+ this._logger.debug(data);
66860
65905
  if (options.removeStitky) data["stitky@removeAll"] = "true";
66861
65906
  try {
66862
65907
  const raw$1 = await this._fetch(url, {
@@ -66865,98 +65910,197 @@ var AFApiClient = class {
66865
65910
  headers: { "Content-Type": "application/json" },
66866
65911
  body: JSON.stringify({ winstrom: [{ [entityPath]: data }] })
66867
65912
  });
65913
+ const json = await raw$1.json().catch(() => null);
65914
+ this._logger.debug(json);
66868
65915
  if (raw$1.status >= 400 && raw$1.status < 600) {
66869
- console.log(JSON.stringify(await raw$1.json(), null, "\n"));
66870
- throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}`);
65916
+ const details = this._extractAbraErrors(json);
65917
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}${details ? ` — ${details}` : ""}`);
65918
+ }
65919
+ const jres = json?.winstrom;
65920
+ if (jres && jres["success"] === "false") {
65921
+ const details = this._extractAbraErrors(json);
65922
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `Save of ${entityPath} failed${details ? ` — ${details}` : ""}`);
66871
65923
  }
66872
- const json = await raw$1.json();
66873
- console.log(JSON.stringify(json));
66874
- if (json.winstrom["success"] === "true") {}
65924
+ return Array.isArray(jres?.results) ? jres.results : [];
66875
65925
  } catch (e) {
66876
65926
  if (!(e instanceof AFError)) {
66877
- console.log(e);
65927
+ this._logger.error(e);
66878
65928
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66879
65929
  }
66880
65930
  throw e;
66881
65931
  }
66882
65932
  }
66883
65933
  async save(entity, options) {
66884
- const obj = this._encodeEntity(entity);
66885
- const res = this.saveRaw(entity.constructor.EntityPath, obj, options);
65934
+ if (entity.isNew === true) {
65935
+ const uvs = entity["uzivatelske-vazby"];
65936
+ if (Array.isArray(uvs) && uvs.length > 0) throw new AFError(AFErrorCode.FORBIDDEN_OPERATION, `Creating ${entity.constructor.EntityName} with 'uzivatelske-vazby' is not supported by the API. Workaround: save the entity first without user relations, then add them in a second update (save) request.`);
65937
+ }
65938
+ if (entity.isNew === void 0) await this._resolveId(entity);
65939
+ const isCreate = entity.isNew === true;
66886
65940
  try {
66887
- await res;
65941
+ const obj = await this._encodeEntity(entity, options);
65942
+ if (!isCreate && entity.id !== void 0 && entity.id !== null) obj.id = entity.id;
65943
+ obj["@create"] = isCreate ? "ok" : "fail";
65944
+ obj["@update"] = isCreate ? "fail" : "ok";
65945
+ const entityPath = entity.constructor.EntityPath;
65946
+ const results = await this.saveRaw(entityPath, obj, options);
65947
+ this._applySaveResultToEntity(entity, results);
66888
65948
  return entity;
66889
65949
  } catch (e) {
66890
65950
  if (!(e instanceof AFError)) {
66891
- console.log(e);
65951
+ this._logger.error(e);
66892
65952
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66893
65953
  }
66894
65954
  throw e;
66895
65955
  }
66896
65956
  }
66897
- async deleteRaw(entityPath, id, options) {
65957
+ async deleteRaw(entityPath, id, options = {}) {
66898
65958
  if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
66899
65959
  if (!id && typeof id !== "number" || id === "") throw new AFError(AFErrorCode.MISSING_ID, `Can't delete entity without knowing it's id.`);
66900
- let url = this._url + "/c/" + this.company + "/" + entityPath + "/" + id + ".json";
66901
- console.log(url);
66902
- try {
66903
- const raw$1 = await this._fetch(url, {
65960
+ let url;
65961
+ let fetchOptions;
65962
+ if (options.asUserRelation) {
65963
+ url = this._url + "/c/" + this.company + "/" + entityPath + ".json";
65964
+ fetchOptions = {
65965
+ signal: options.abortController?.signal,
65966
+ method: "PUT",
65967
+ body: JSON.stringify({ winstrom: [{
65968
+ [entityPath]: { id },
65969
+ [entityPath + "@action"]: "delete"
65970
+ }] })
65971
+ };
65972
+ } else {
65973
+ url = this._url + "/c/" + this.company + "/" + entityPath + "/" + id + ".json";
65974
+ fetchOptions = {
66904
65975
  signal: options.abortController?.signal,
66905
65976
  method: "DELETE"
66906
- });
66907
- if (raw$1.status >= 400 && raw$1.status < 600) throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}`);
66908
- const json = await raw$1.json();
66909
- console.log(json);
66910
- if (json.winstrom["success"] === "true") {}
65977
+ };
65978
+ }
65979
+ this._logger.debug(url);
65980
+ try {
65981
+ const raw$1 = await this._fetch(url, fetchOptions);
65982
+ const json = await raw$1.json().catch(() => null);
65983
+ this._logger.debug(json);
65984
+ if (raw$1.status >= 400 && raw$1.status < 600) {
65985
+ const details = this._extractAbraErrors(json);
65986
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}${details ? ` — ${details}` : ""}`);
65987
+ }
65988
+ const jres = json?.winstrom;
65989
+ if (jres && jres["success"] === "false") {
65990
+ const details = this._extractAbraErrors(json);
65991
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `Delete of ${entityPath} failed${details ? ` — ${details}` : ""}`);
65992
+ }
66911
65993
  } catch (e) {
66912
65994
  if (!(e instanceof AFError)) {
66913
- console.log(e);
65995
+ this._logger.error(e);
66914
65996
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66915
65997
  }
66916
65998
  throw e;
66917
65999
  }
66918
66000
  }
66919
- async delete(entity, options) {
66920
- if (entity.isNew) return true;
66921
- const res = this.deleteRaw(entity.constructor.EntityPath, entity.id, options);
66001
+ async delete(entity, options = {}) {
66002
+ if (entity.isNew === true) return true;
66003
+ if (entity.isNew === void 0) {
66004
+ if (await this._resolveId(entity) === null) return true;
66005
+ }
66006
+ if (entity.id === void 0 || entity.id === null) return true;
66007
+ const entityPath = entity.constructor.EntityPath;
66008
+ const res = this.deleteRaw(entityPath, entity.id, {
66009
+ ...options,
66010
+ asUserRelation: entity instanceof AFUzivatelskaVazba
66011
+ });
66922
66012
  try {
66923
66013
  await res;
66924
66014
  return true;
66925
66015
  } catch (e) {
66926
66016
  if (!(e instanceof AFError)) {
66927
- console.log(e);
66017
+ this._logger.error(e);
66928
66018
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66929
66019
  }
66930
66020
  throw e;
66931
66021
  }
66932
66022
  }
66933
- async deleteUserRelation(entity, options) {
66023
+ async callEntityActionRaw(entityPath, id, actionName, options = {}) {
66934
66024
  if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
66935
- const id = entity?.id;
66936
- if (!id && typeof id !== "number") throw new AFError(AFErrorCode.MISSING_ID, `Can't delete entity without knowing it's id.`);
66937
- const entityPath = entity.constructor.EntityPath;
66938
- let url = this._url + "/c/" + this.company + "/" + entityPath + ".json";
66025
+ if (id === void 0 || id === null || id === "") throw new AFError(AFErrorCode.MISSING_ID, `Can't call action '${actionName}' on ${entityPath} without id.`);
66026
+ if (!actionName || !actionName.length) throw new AFError(AFErrorCode.UNKNOWN, `Action name must be a non-empty string.`);
66027
+ const url = this._url + "/c/" + this.company + "/" + entityPath + ".json";
66028
+ this._logger.debug(url);
66939
66029
  try {
66940
66030
  const raw$1 = await this._fetch(url, {
66941
66031
  signal: options.abortController?.signal,
66942
66032
  method: "PUT",
66033
+ headers: { "Content-Type": "application/json" },
66943
66034
  body: JSON.stringify({ winstrom: [{
66944
66035
  [entityPath]: { id },
66945
- [entityPath + "@action"]: "delete"
66036
+ [entityPath + "@action"]: actionName
66946
66037
  }] })
66947
66038
  });
66948
- if (raw$1.status >= 400 && raw$1.status < 600) throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}`);
66949
- const json = await raw$1.json();
66950
- console.log(json);
66951
- if (json.winstrom["success"] === "true") {}
66039
+ const json = await raw$1.json().catch(() => null);
66040
+ this._logger.debug(json);
66041
+ if (raw$1.status >= 400 && raw$1.status < 600) {
66042
+ const details = this._extractAbraErrors(json);
66043
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}${details ? ` — ${details}` : ""}`);
66044
+ }
66045
+ const jres = json?.winstrom;
66046
+ if (jres && jres["success"] === "false") {
66047
+ const details = this._extractAbraErrors(json);
66048
+ throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `Action '${actionName}' on ${entityPath} failed${details ? ` — ${details}` : ""}`);
66049
+ }
66050
+ return true;
66952
66051
  } catch (e) {
66953
66052
  if (!(e instanceof AFError)) {
66954
- console.log(e);
66053
+ this._logger.error(e);
66955
66054
  e = new AFError(AFErrorCode.UNKNOWN, e.toString());
66956
66055
  }
66957
66056
  throw e;
66958
66057
  }
66959
66058
  }
66059
+ async callEntityAction(entity, actionName, options = {}) {
66060
+ if (entity.isNew === true) throw new AFError(AFErrorCode.RELATED_INSTANCE_NOT_SAVED, `Can't call action '${actionName}' on an unsaved ${entity.constructor.EntityName}. Save it first.`);
66061
+ if (entity.isNew === void 0) {
66062
+ if (await this._resolveId(entity) === null) throw new AFError(AFErrorCode.OBJECT_NOT_FOUND, `Can't call action '${actionName}' on ${entity.constructor.EntityName}: entity not found on server.`);
66063
+ }
66064
+ if (entity.id === void 0 || entity.id === null) throw new AFError(AFErrorCode.MISSING_ID, `Can't call action '${actionName}' on ${entity.constructor.EntityName} without id.`);
66065
+ const entityPath = entity.constructor.EntityPath;
66066
+ return this.callEntityActionRaw(entityPath, entity.id, actionName, options);
66067
+ }
66068
+ _applySaveResultToEntity(entity, results) {
66069
+ if (!Array.isArray(results) || !results.length) return;
66070
+ const entityPath = entity.constructor.EntityPath;
66071
+ let r = results.find((res) => res && typeof res.ref === "string" && res.ref.includes(`/${entityPath}/`));
66072
+ if (!r) {
66073
+ const refless = results.filter((res) => res && typeof res.ref !== "string");
66074
+ if (refless.length === 1 && results.length === 1) r = refless[0];
66075
+ }
66076
+ if (!r || r.id === void 0 || r.id === null) return;
66077
+ const newId = typeof r.id === "number" ? r.id : Number(r.id);
66078
+ if (Number.isFinite(newId)) entity._setId(newId);
66079
+ }
66080
+ _extractAbraErrors(json) {
66081
+ if (!json) return "";
66082
+ const winstrom = json.winstrom;
66083
+ if (!winstrom) return "";
66084
+ const messages = [];
66085
+ if (typeof winstrom.message === "string" && winstrom.message.length) messages.push(winstrom.message);
66086
+ const results = winstrom.results;
66087
+ if (Array.isArray(results)) for (const r of results) {
66088
+ if (!r || !Array.isArray(r.errors)) continue;
66089
+ for (const err of r.errors) {
66090
+ if (!err) continue;
66091
+ if (typeof err === "string") {
66092
+ messages.push(err);
66093
+ continue;
66094
+ }
66095
+ const parts = [];
66096
+ if (err.code) parts.push(`[${err.code}]`);
66097
+ if (err.for) parts.push(`(${err.for})`);
66098
+ if (err.message) parts.push(err.message);
66099
+ if (parts.length) messages.push(parts.join(" "));
66100
+ }
66101
+ }
66102
+ return messages.join("; ");
66103
+ }
66960
66104
  _decodeEntityObj(entity, obj) {
66961
66105
  if (!obj) return [];
66962
66106
  if (typeof obj === "string") {
@@ -66968,19 +66112,21 @@ var AFApiClient = class {
66968
66112
  const ent = new entity(this._stitkyCache);
66969
66113
  const oKeys = Object.keys(o);
66970
66114
  for (const okey of oKeys) this._decodeProperty(ent, okey, o);
66115
+ if (o.id) ent._setId(Number(o.id));
66971
66116
  res.push(ent);
66972
66117
  }
66973
66118
  return res;
66974
66119
  }
66975
- _encodeEntity(entity) {
66120
+ async _encodeEntity(entity, options) {
66976
66121
  const out = {};
66977
66122
  const keys = entity.changedKeys();
66978
- for (const key of keys) this._encodeProperty(entity, key, out);
66123
+ for (const key of keys) await this._encodeProperty(entity, key, out, options);
66979
66124
  return out;
66980
66125
  }
66981
66126
  _decodeProperty(entity, key, obj) {
66982
66127
  const annot = entity.getPropertyTypeAnnotation(key);
66983
66128
  if (!annot) return;
66129
+ if (annot.key === "id") return;
66984
66130
  const v = obj[key];
66985
66131
  if (!v) return;
66986
66132
  if (annot.type === PropertyType.Relation) {
@@ -67003,7 +66149,18 @@ var AFApiClient = class {
67003
66149
  entity[annot.key] = parsePropertyValue(annot.type, annot, obj[annot.key]);
67004
66150
  entity._orig[annot.key] = entity[annot.key];
67005
66151
  }
67006
- _encodeProperty(entity, key, obj) {
66152
+ /**
66153
+ * Returns the best available identifier string for an entity, or undefined.
66154
+ * Used for ByIdentifier and Resolve fallback strategies.
66155
+ * Priority: _stub.kod > entity.kod > _stub.ext
66156
+ */
66157
+ _getEntityIdentifierString(entity) {
66158
+ const stub = entity._stub;
66159
+ if (stub?.kod) return `code:${stub.kod}`;
66160
+ if (entity.kod) return `code:${entity.kod}`;
66161
+ if (stub?.ext?.length) return `ext:${stub.ext[0]}`;
66162
+ }
66163
+ async _encodeProperty(entity, key, obj, options) {
67007
66164
  const annot = entity.getPropertyTypeAnnotation(key);
67008
66165
  if (!annot) return;
67009
66166
  const val = entity[key];
@@ -67014,7 +66171,7 @@ var AFApiClient = class {
67014
66171
  obj[key] = [];
67015
66172
  if (val instanceof Array) for (const a of val) {
67016
66173
  if (!(a instanceof AFEntity)) throw new AFError(AFErrorCode.UNKNOWN, `Collection '${key}' on ${entity.constructor.EntityName}(id: ${entity.id}) contain's non-AFEntity member ${a}`);
67017
- obj[key].push(this._encodeEntity(a));
66174
+ obj[key].push(await this._encodeEntity(a, options));
67018
66175
  }
67019
66176
  return;
67020
66177
  }
@@ -67024,9 +66181,32 @@ var AFApiClient = class {
67024
66181
  return;
67025
66182
  }
67026
66183
  if (!(val instanceof AFEntity)) throw new AFError(AFErrorCode.UNKNOWN, `Key '${key}' on ${entity.constructor.EntityName}(id: ${entity.id}) referencing not AFEntity instance`);
67027
- if (val.isNew) throw new AFError(AFErrorCode.RELATED_INSTANCE_NOT_SAVED, `Key '${key}' on ${entity.constructor.EntityName}(id: ${entity.id}) referencing not saved (new) instance - missing 'id' in it`);
67028
- if (typeof val.id === "undefined") obj[key] = `code:${val.kod}`;
67029
- else obj[key] = val.id;
66184
+ if (val.isNew === true) {
66185
+ obj[key] = await this._encodeEntity(val, options);
66186
+ return;
66187
+ }
66188
+ if (val.isNew === false) {
66189
+ if (!val.hasChanged()) obj[key] = val.id;
66190
+ else {
66191
+ const nested = await this._encodeEntity(val, options);
66192
+ nested.id = val.id;
66193
+ obj[key] = nested;
66194
+ }
66195
+ return;
66196
+ }
66197
+ const strategy = options?.nestedUnknown ?? NestedUnknownStrategy.Resolve;
66198
+ if (strategy === NestedUnknownStrategy.Strict) throw new AFError(AFErrorCode.UNRESOLVED_ENTITY, `Key '${key}' on ${entity.constructor.EntityName} references an unresolved entity. Call resolve() first or change nestedUnknown strategy.`);
66199
+ if (strategy === NestedUnknownStrategy.ByIdentifier) {
66200
+ const ident = this._getEntityIdentifierString(val);
66201
+ if (!ident) throw new AFError(AFErrorCode.MISSING_IDENTIFIER, `Key '${key}' on ${entity.constructor.EntityName} has an unresolved entity with no identifier (no kod, no ext). Cannot encode with ByIdentifier strategy.`);
66202
+ obj[key] = ident;
66203
+ return;
66204
+ }
66205
+ const fallbackIdent = this._getEntityIdentifierString(val);
66206
+ const resolvedId = await this._resolveId(val);
66207
+ if (resolvedId !== null) obj[key] = resolvedId;
66208
+ else if (fallbackIdent) obj[key] = fallbackIdent;
66209
+ else throw new AFError(AFErrorCode.MISSING_IDENTIFIER, `Key '${key}' on ${entity.constructor.EntityName} has an unresolved entity with no identifier. Cannot encode.`);
67030
66210
  return;
67031
66211
  }
67032
66212
  if (!obj) return;
@@ -67034,6 +66214,28 @@ var AFApiClient = class {
67034
66214
  if (entity instanceof AFPriloha && key === "content") obj["content@encoding"] = "base64";
67035
66215
  }
67036
66216
  };
66217
+ function makeFilteringLogger(target, level) {
66218
+ const threshold = LOG_LEVEL_RANK[level];
66219
+ const make = (lvl) => {
66220
+ if (LOG_LEVEL_RANK[lvl] > threshold) return () => {};
66221
+ return (...args) => target[lvl](...args);
66222
+ };
66223
+ return {
66224
+ debug: make("debug"),
66225
+ info: make("info"),
66226
+ warn: make("warn"),
66227
+ error: make("error")
66228
+ };
66229
+ }
66230
+ function parseContentDispositionFilename(header) {
66231
+ if (!header) return void 0;
66232
+ const ext = /filename\*=(?:UTF-8'')?([^;]+)/i.exec(header);
66233
+ if (ext) try {
66234
+ return decodeURIComponent(ext[1].trim().replace(/^"|"$/g, ""));
66235
+ } catch {}
66236
+ const plain = /filename=("([^"]+)"|([^;]+))/i.exec(header);
66237
+ if (plain) return (plain[2] ?? plain[3] ?? "").trim();
66238
+ }
67037
66239
 
67038
66240
  //#endregion
67039
66241
  //#region src/abra/AFApiSession.ts