@coopenomics/docs-factory 0.0.0-stage → 1.1.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.
@@ -0,0 +1,2285 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { Cooperative, Interfaces, MeetContract, SovietContract } from 'cooptypes';
3
+ import { Kysely } from 'kysely';
4
+ import { PoolConfig } from 'pg';
5
+ import moment from 'moment-timezone';
6
+
7
+ declare const registry_id$1r = 1;
8
+ type Action$1r = Cooperative.Registry.WalletAgreement.Action;
9
+ type Model$1r = Cooperative.Registry.WalletAgreement.Model;
10
+ declare const Schema$1r: JSONSchemaType<Model$1r>;
11
+ declare const Template$1r: ITemplate<Model$1r>;
12
+
13
+ declare namespace WalletAgreement {
14
+ export { Schema$1r as Schema, Template$1r as Template, registry_id$1r as registry_id };
15
+ export type { Action$1r as Action, Model$1r as Model };
16
+ }
17
+
18
+ declare const registry_id$1q = 2;
19
+ type Action$1q = Cooperative.Registry.RegulationElectronicSignature.Action;
20
+ type Model$1q = Cooperative.Registry.RegulationElectronicSignature.Model;
21
+ declare const Schema$1q: JSONSchemaType<Model$1q>;
22
+ declare const Template$1q: ITemplate<Model$1q>;
23
+
24
+ declare namespace RegulationElectronicSignaturet {
25
+ export { Schema$1q as Schema, Template$1q as Template, registry_id$1q as registry_id };
26
+ export type { Action$1q as Action, Model$1q as Model };
27
+ }
28
+
29
+ declare const registry_id$1p = 3;
30
+ type Action$1p = Cooperative.Registry.PrivacyPolicy.Action;
31
+ type Model$1p = Cooperative.Registry.PrivacyPolicy.Model;
32
+ declare const Schema$1p: JSONSchemaType<Model$1p>;
33
+ declare const Template$1p: ITemplate<Model$1p>;
34
+
35
+ declare namespace PrivacyPolicy {
36
+ export { Schema$1p as Schema, Template$1p as Template, registry_id$1p as registry_id };
37
+ export type { Action$1p as Action, Model$1p as Model };
38
+ }
39
+
40
+ declare const registry_id$1o = 4;
41
+ type Action$1o = Cooperative.Registry.UserAgreement.Action;
42
+ type Model$1o = Cooperative.Registry.UserAgreement.Model;
43
+ declare const Schema$1o: JSONSchemaType<Model$1o>;
44
+ declare const Template$1o: ITemplate<Model$1o>;
45
+
46
+ declare namespace UserAgreement {
47
+ export { Schema$1o as Schema, Template$1o as Template, registry_id$1o as registry_id };
48
+ export type { Action$1o as Action, Model$1o as Model };
49
+ }
50
+
51
+ declare const registry_id$1n = 50;
52
+ type Action$1n = Cooperative.Registry.CoopenomicsAgreement.Action;
53
+ type Model$1n = Cooperative.Registry.CoopenomicsAgreement.Model;
54
+ declare const Schema$1n: JSONSchemaType<Model$1n>;
55
+ declare const Template$1n: ITemplate<Model$1n>;
56
+
57
+ declare namespace CoopenomicsAgreement {
58
+ export { Schema$1n as Schema, Template$1n as Template, registry_id$1n as registry_id };
59
+ export type { Action$1n as Action, Model$1n as Model };
60
+ }
61
+
62
+ declare const registry_id$1m = 51;
63
+ type Action$1m = Cooperative.Registry.ConvertToAxonStatement.Action;
64
+ type Model$1m = Cooperative.Registry.ConvertToAxonStatement.Model;
65
+ declare const Schema$1m: JSONSchemaType<Model$1m>;
66
+ declare const Template$1m: ITemplate<Model$1m>;
67
+
68
+ declare namespace ConvertToAxonStatement {
69
+ export { Schema$1m as Schema, Template$1m as Template, registry_id$1m as registry_id };
70
+ export type { Action$1m as Action, Model$1m as Model };
71
+ }
72
+
73
+ declare const registry_id$1l = 1095;
74
+ type Action$1l = Cooperative.Registry.BillingConversionStatement.Action;
75
+ type Model$1l = Cooperative.Registry.BillingConversionStatement.Model;
76
+ declare const Schema$1l: JSONSchemaType<Model$1l>;
77
+ declare const Template$1l: ITemplate<Model$1l>;
78
+
79
+ declare namespace BillingConversionStatement {
80
+ export { Schema$1l as Schema, Template$1l as Template, registry_id$1l as registry_id };
81
+ export type { Action$1l as Action, Model$1l as Model };
82
+ }
83
+
84
+ declare const registry_id$1k = 100;
85
+ /**
86
+ * Интерфейс генерации заявления на вступление в кооператив
87
+ */
88
+ type Action$1k = Cooperative.Registry.ParticipantApplication.Action;
89
+ type Model$1k = Cooperative.Registry.ParticipantApplication.Model;
90
+ declare const Schema$1k: JSONSchemaType<Model$1k>;
91
+ declare const Template$1k: ITemplate<Model$1k>;
92
+
93
+ declare namespace ParticipantApplication {
94
+ export { Schema$1k as Schema, Template$1k as Template, registry_id$1k as registry_id };
95
+ export type { Action$1k as Action, Model$1k as Model };
96
+ }
97
+
98
+ declare const registry_id$1j = 501;
99
+ /**
100
+ * Интерфейс генерации решения совета
101
+ */
102
+ type Action$1j = Cooperative.Registry.DecisionOfParticipantApplication.Action;
103
+ type Model$1j = Cooperative.Registry.DecisionOfParticipantApplication.Model;
104
+ declare const Schema$1j: JSONSchemaType<Model$1j>;
105
+ declare const Template$1j: ITemplate<Model$1j>;
106
+
107
+ declare namespace DecisionOfParticipantApplication {
108
+ export { Schema$1j as Schema, Template$1j as Template, registry_id$1j as registry_id };
109
+ export type { Action$1j as Action, Model$1j as Model };
110
+ }
111
+
112
+ declare const registry_id$1i = 190;
113
+ type Action$1i = Cooperative.Registry.ProgramAgreementsAnnulmentStatement.Action;
114
+ type Model$1i = Cooperative.Registry.ProgramAgreementsAnnulmentStatement.Model;
115
+ declare const Schema$1i: JSONSchemaType<Model$1i>;
116
+ declare const Template$1i: ITemplate<Model$1i>;
117
+
118
+ declare namespace ProgramAgreementsAnnulmentStatement {
119
+ export { Schema$1i as Schema, Template$1i as Template, registry_id$1i as registry_id };
120
+ export type { Action$1i as Action, Model$1i as Model };
121
+ }
122
+
123
+ declare const registry_id$1h = 200;
124
+ /**
125
+ * Интерфейс генерации заявления на выход из состава пайщиков кооператива
126
+ */
127
+ type Action$1h = Cooperative.Registry.ParticipantExitApplication.Action;
128
+ type Model$1h = Cooperative.Registry.ParticipantExitApplication.Model;
129
+ declare const Schema$1h: JSONSchemaType<Model$1h>;
130
+ declare const Template$1h: ITemplate<Model$1h>;
131
+
132
+ declare namespace ParticipantExitApplication {
133
+ export { Schema$1h as Schema, Template$1h as Template, registry_id$1h as registry_id };
134
+ export type { Action$1h as Action, Model$1h as Model };
135
+ }
136
+
137
+ declare const registry_id$1g = 201;
138
+ /**
139
+ * Интерфейс генерации решения совета о выходе пайщика из кооператива
140
+ */
141
+ type Action$1g = Cooperative.Registry.DecisionOfParticipantExit.Action;
142
+ type Model$1g = Cooperative.Registry.DecisionOfParticipantExit.Model;
143
+ declare const Schema$1g: JSONSchemaType<Model$1g>;
144
+ declare const Template$1g: ITemplate<Model$1g>;
145
+
146
+ declare namespace DecisionOfParticipantExit {
147
+ export { Schema$1g as Schema, Template$1g as Template, registry_id$1g as registry_id };
148
+ export type { Action$1g as Action, Model$1g as Model };
149
+ }
150
+
151
+ declare const registry_id$1f = 101;
152
+ /**
153
+ * Интерфейс генерации заявления на вступление в кооператив
154
+ */
155
+ type Action$1f = Cooperative.Registry.SelectBranchStatement.Action;
156
+ type Model$1f = Cooperative.Registry.SelectBranchStatement.Model;
157
+ declare const Schema$1f: JSONSchemaType<Model$1f>;
158
+ declare const Template$1f: ITemplate<Model$1f>;
159
+
160
+ declare namespace SelectBranchStatement {
161
+ export { Schema$1f as Schema, Template$1f as Template, registry_id$1f as registry_id };
162
+ export type { Action$1f as Action, Model$1f as Model };
163
+ }
164
+
165
+ declare const registry_id$1e = 599;
166
+ /**
167
+ * Интерфейс генерации решения совета
168
+ */
169
+ type Action$1e = Cooperative.Registry.ProjectFreeDecision.Action;
170
+ type Model$1e = Cooperative.Registry.ProjectFreeDecision.Model;
171
+ declare const Schema$1e: JSONSchemaType<Model$1e>;
172
+ declare const Template$1e: ITemplate<Model$1e>;
173
+
174
+ declare namespace ProjectFreeDecision {
175
+ export { Schema$1e as Schema, Template$1e as Template, registry_id$1e as registry_id };
176
+ export type { Action$1e as Action, Model$1e as Model };
177
+ }
178
+
179
+ declare const registry_id$1d = 600;
180
+ /**
181
+ * Интерфейс генерации решения совета
182
+ */
183
+ type Action$1d = Cooperative.Registry.FreeDecision.Action;
184
+ type Model$1d = Cooperative.Registry.FreeDecision.Model;
185
+ declare const Schema$1d: JSONSchemaType<Model$1d>;
186
+ declare const Template$1d: ITemplate<Model$1d>;
187
+
188
+ declare namespace FreeDecision {
189
+ export { Schema$1d as Schema, Template$1d as Template, registry_id$1d as registry_id };
190
+ export type { Action$1d as Action, Model$1d as Model };
191
+ }
192
+
193
+ declare const registry_id$1c = 900;
194
+ type Action$1c = Cooperative.Registry.ReturnByMoney.Action;
195
+ type Model$1c = Cooperative.Registry.ReturnByMoney.Model;
196
+ declare const Schema$1c: JSONSchemaType<Model$1c>;
197
+ declare const Template$1c: ITemplate<Model$1c>;
198
+
199
+ declare namespace ReturnByMoney {
200
+ export { Schema$1c as Schema, Template$1c as Template, registry_id$1c as registry_id };
201
+ export type { Action$1c as Action, Model$1c as Model };
202
+ }
203
+
204
+ declare const registry_id$1b = 901;
205
+ type Action$1b = Cooperative.Registry.ReturnByMoneyDecision.Action;
206
+ type Model$1b = Cooperative.Registry.ReturnByMoneyDecision.Model;
207
+ declare const Schema$1b: JSONSchemaType<Model$1b>;
208
+ declare const Template$1b: ITemplate<Model$1b>;
209
+
210
+ declare namespace ReturnByMoneyDecision {
211
+ export { Schema$1b as Schema, Template$1b as Template, registry_id$1b as registry_id };
212
+ export type { Action$1b as Action, Model$1b as Model };
213
+ }
214
+
215
+ declare const registry_id$1a = 1001;
216
+ type Action$1a = Cooperative.Registry.GenerationContract.Action;
217
+ type Model$1a = Cooperative.Registry.GenerationContract.Model;
218
+ declare const Schema$1a: JSONSchemaType<Model$1a>;
219
+ declare const Template$1a: ITemplate<Model$1a>;
220
+
221
+ declare namespace GenerationContract {
222
+ export { Schema$1a as Schema, Template$1a as Template, registry_id$1a as registry_id };
223
+ export type { Action$1a as Action, Model$1a as Model };
224
+ }
225
+
226
+ declare const registry_id$19 = 1002;
227
+ type Action$19 = Cooperative.Registry.ProjectGenerationContract.Action;
228
+ type Model$19 = Cooperative.Registry.ProjectGenerationContract.Model;
229
+ declare const Schema$19: JSONSchemaType<Model$19>;
230
+ declare const Template$19: ITemplate<Model$19>;
231
+
232
+ declare namespace ProjectGenerationContract {
233
+ export { Schema$19 as Schema, Template$19 as Template, registry_id$19 as registry_id };
234
+ export type { Action$19 as Action, Model$19 as Model };
235
+ }
236
+
237
+ declare const registry_id$18 = 1003;
238
+ type Action$18 = Cooperative.Registry.ComponentGenerationContract.Action;
239
+ type Model$18 = Cooperative.Registry.ComponentGenerationContract.Model;
240
+ declare const Schema$18: JSONSchemaType<Model$18>;
241
+ declare const Template$18: ITemplate<Model$18>;
242
+
243
+ declare namespace ComponentGenerationContract {
244
+ export { Schema$18 as Schema, Template$18 as Template, registry_id$18 as registry_id };
245
+ export type { Action$18 as Action, Model$18 as Model };
246
+ }
247
+
248
+ declare const registry_id$17 = 1004;
249
+ type Action$17 = Cooperative.Registry.StorageAgreement.Action;
250
+ type Model$17 = Cooperative.Registry.StorageAgreement.Model;
251
+ declare const Schema$17: JSONSchemaType<Model$17>;
252
+ declare const Template$17: ITemplate<Model$17>;
253
+
254
+ declare namespace StorageAgreement {
255
+ export { Schema$17 as Schema, Template$17 as Template, registry_id$17 as registry_id };
256
+ export type { Action$17 as Action, Model$17 as Model };
257
+ }
258
+
259
+ declare const registry_id$16 = 1007;
260
+ type Action$16 = Cooperative.Registry.BlagorostAgreement.Action;
261
+ type Model$16 = Cooperative.Registry.BlagorostAgreement.Model;
262
+ declare const Schema$16: JSONSchemaType<Model$16>;
263
+ declare const Template$16: ITemplate<Model$16>;
264
+
265
+ declare namespace BlagorostAgreement {
266
+ export { Schema$16 as Schema, Template$16 as Template, registry_id$16 as registry_id };
267
+ export type { Action$16 as Action, Model$16 as Model };
268
+ }
269
+
270
+ declare const registry_id$15 = 1005;
271
+ type Action$15 = Cooperative.Registry.InitProjectStatement.Action;
272
+ type Model$15 = Cooperative.Registry.InitProjectStatement.Model;
273
+ declare const Schema$15: JSONSchemaType<Model$15>;
274
+ declare const Template$15: ITemplate<Model$15>;
275
+
276
+ declare namespace InitProjectStatement {
277
+ export { Schema$15 as Schema, Template$15 as Template, registry_id$15 as registry_id };
278
+ export type { Action$15 as Action, Model$15 as Model };
279
+ }
280
+
281
+ declare const registry_id$14 = 1006;
282
+ /**
283
+ * Интерфейс генерации решения совета по инициализации проекта
284
+ */
285
+ type Action$14 = Cooperative.Registry.InitProjectDecision.Action;
286
+ type Model$14 = Cooperative.Registry.InitProjectDecision.Model;
287
+ declare const Schema$14: JSONSchemaType<Model$14>;
288
+ declare const Template$14: ITemplate<Model$14>;
289
+
290
+ declare namespace InitProjectDecision {
291
+ export { Schema$14 as Schema, Template$14 as Template, registry_id$14 as registry_id };
292
+ export type { Action$14 as Action, Model$14 as Model };
293
+ }
294
+
295
+ declare const registry_id$13 = 1010;
296
+ type Action$13 = Cooperative.Registry.ExpenseStatement.Action;
297
+ type Model$13 = Cooperative.Registry.ExpenseStatement.Model;
298
+ declare const Schema$13: JSONSchemaType<Model$13>;
299
+ declare const Template$13: ITemplate<Model$13>;
300
+
301
+ declare namespace ExpenseStatement {
302
+ export { Schema$13 as Schema, Template$13 as Template, registry_id$13 as registry_id };
303
+ export type { Action$13 as Action, Model$13 as Model };
304
+ }
305
+
306
+ declare const registry_id$12 = 1011;
307
+ type Action$12 = Cooperative.Registry.ExpenseDecision.Action;
308
+ type Model$12 = Cooperative.Registry.ExpenseDecision.Model;
309
+ declare const Schema$12: JSONSchemaType<Model$12>;
310
+ declare const Template$12: ITemplate<Model$12>;
311
+
312
+ declare namespace ExpenseDecision {
313
+ export { Schema$12 as Schema, Template$12 as Template, registry_id$12 as registry_id };
314
+ export type { Action$12 as Action, Model$12 as Model };
315
+ }
316
+
317
+ declare const registry_id$11 = 2010;
318
+ type Action$11 = Cooperative.Registry.ExpenseProposalStatement.Action;
319
+ type Model$11 = Cooperative.Registry.ExpenseProposalStatement.Model;
320
+ type PrivateData$1 = Cooperative.Registry.ExpenseProposalStatement.PrivateData;
321
+ declare const Schema$11: JSONSchemaType<Model$11>;
322
+ declare const Template$11: ITemplate<Model$11>;
323
+
324
+ declare namespace ExpenseProposalStatement {
325
+ export { Schema$11 as Schema, Template$11 as Template, registry_id$11 as registry_id };
326
+ export type { Action$11 as Action, Model$11 as Model, PrivateData$1 as PrivateData };
327
+ }
328
+
329
+ declare const registry_id$10 = 2011;
330
+ type Action$10 = Cooperative.Registry.ExpenseProposalDecision.Action;
331
+ type Model$10 = Cooperative.Registry.ExpenseProposalDecision.Model;
332
+ declare const Schema$10: JSONSchemaType<Model$10>;
333
+ declare const Template$10: ITemplate<Model$10>;
334
+
335
+ declare namespace ExpenseProposalDecision {
336
+ export { Schema$10 as Schema, Template$10 as Template, registry_id$10 as registry_id };
337
+ export type { Action$10 as Action, Model$10 as Model };
338
+ }
339
+
340
+ declare const registry_id$$ = 1020;
341
+ type Action$$ = Cooperative.Registry.GenerationMoneyInvestStatement.Action;
342
+ type Model$$ = Cooperative.Registry.GenerationMoneyInvestStatement.Model;
343
+ declare const Schema$$: JSONSchemaType<Model$$>;
344
+ declare const Template$$: ITemplate<Model$$>;
345
+
346
+ declare namespace GenerationMoneyInvestStatement {
347
+ export { Schema$$ as Schema, Template$$ as Template, registry_id$$ as registry_id };
348
+ export type { Action$$ as Action, Model$$ as Model };
349
+ }
350
+
351
+ declare const registry_id$_ = 1025;
352
+ type Action$_ = Cooperative.Registry.GenerationMoneyReturnUnusedStatement.Action;
353
+ type Model$_ = Cooperative.Registry.GenerationMoneyReturnUnusedStatement.Model;
354
+ declare const Schema$_: JSONSchemaType<Model$_>;
355
+ declare const Template$_: ITemplate<Model$_>;
356
+
357
+ declare namespace GenerationMoneyReturnUnusedStatement {
358
+ export { Schema$_ as Schema, Template$_ as Template, registry_id$_ as registry_id };
359
+ export type { Action$_ as Action, Model$_ as Model };
360
+ }
361
+
362
+ declare const registry_id$Z = 1030;
363
+ type Action$Z = Cooperative.Registry.CapitalizationMoneyInvestStatement.Action;
364
+ type Model$Z = Cooperative.Registry.CapitalizationMoneyInvestStatement.Model;
365
+ declare const Schema$Z: JSONSchemaType<Model$Z>;
366
+ declare const Template$Z: ITemplate<Model$Z>;
367
+
368
+ declare namespace CapitalizationMoneyInvestStatement {
369
+ export { Schema$Z as Schema, Template$Z as Template, registry_id$Z as registry_id };
370
+ export type { Action$Z as Action, Model$Z as Model };
371
+ }
372
+
373
+ declare const registry_id$Y = 1040;
374
+ type Action$Y = Cooperative.Registry.ResultContributionStatement.Action;
375
+ type Model$Y = Cooperative.Registry.ResultContributionStatement.Model;
376
+ declare const Schema$Y: JSONSchemaType<Model$Y>;
377
+ declare const Template$Y: ITemplate<Model$Y>;
378
+
379
+ declare namespace ResultContributionStatement {
380
+ export { Schema$Y as Schema, Template$Y as Template, registry_id$Y as registry_id };
381
+ export type { Action$Y as Action, Model$Y as Model };
382
+ }
383
+
384
+ declare const registry_id$X = 1041;
385
+ type Action$X = Cooperative.Registry.ResultContributionDecision.Action;
386
+ type Model$X = Cooperative.Registry.ResultContributionDecision.Model;
387
+ declare const Schema$X: JSONSchemaType<Model$X>;
388
+ declare const Template$X: ITemplate<Model$X>;
389
+
390
+ declare namespace ResultContributionDecision {
391
+ export { Schema$X as Schema, Template$X as Template, registry_id$X as registry_id };
392
+ export type { Action$X as Action, Model$X as Model };
393
+ }
394
+
395
+ declare const registry_id$W = 1042;
396
+ type Action$W = Cooperative.Registry.ResultContributionAct.Action;
397
+ type Model$W = Cooperative.Registry.ResultContributionAct.Model;
398
+ declare const Schema$W: JSONSchemaType<Model$W>;
399
+ declare const Template$W: ITemplate<Model$W>;
400
+
401
+ declare namespace ResultContributionAct {
402
+ export { Schema$W as Schema, Template$W as Template, registry_id$W as registry_id };
403
+ export type { Action$W as Action, Model$W as Model };
404
+ }
405
+
406
+ declare const registry_id$V = 1050;
407
+ type Action$V = Cooperative.Registry.GetLoanStatement.Action;
408
+ type Model$V = Cooperative.Registry.GetLoanStatement.Model;
409
+ declare const Schema$V: JSONSchemaType<Model$V>;
410
+ declare const Template$V: ITemplate<Model$V>;
411
+
412
+ declare namespace GetLoanStatement {
413
+ export { Schema$V as Schema, Template$V as Template, registry_id$V as registry_id };
414
+ export type { Action$V as Action, Model$V as Model };
415
+ }
416
+
417
+ declare const registry_id$U = 1051;
418
+ type Action$U = Cooperative.Registry.GetLoanDecision.Action;
419
+ type Model$U = Cooperative.Registry.GetLoanDecision.Model;
420
+ declare const Schema$U: JSONSchemaType<Model$U>;
421
+ declare const Template$U: ITemplate<Model$U>;
422
+
423
+ declare namespace GetLoanDecision {
424
+ export { Schema$U as Schema, Template$U as Template, registry_id$U as registry_id };
425
+ export type { Action$U as Action, Model$U as Model };
426
+ }
427
+
428
+ declare const registry_id$T = 1060;
429
+ type Action$T = Cooperative.Registry.GenerationPropertyInvestStatement.Action;
430
+ type Model$T = Cooperative.Registry.GenerationPropertyInvestStatement.Model;
431
+ declare const Schema$T: JSONSchemaType<Model$T>;
432
+ declare const Template$T: ITemplate<Model$T>;
433
+
434
+ declare namespace GenerationPropertyInvestStatement {
435
+ export { Schema$T as Schema, Template$T as Template, registry_id$T as registry_id };
436
+ export type { Action$T as Action, Model$T as Model };
437
+ }
438
+
439
+ declare const registry_id$S = 1061;
440
+ type Action$S = Cooperative.Registry.GenerationPropertyInvestDecision.Action;
441
+ type Model$S = Cooperative.Registry.GenerationPropertyInvestDecision.Model;
442
+ declare const Schema$S: JSONSchemaType<Model$S>;
443
+ declare const Template$S: ITemplate<Model$S>;
444
+
445
+ declare namespace GenerationPropertyInvestDecision {
446
+ export { Schema$S as Schema, Template$S as Template, registry_id$S as registry_id };
447
+ export type { Action$S as Action, Model$S as Model };
448
+ }
449
+
450
+ declare const registry_id$R = 1062;
451
+ type Action$R = Cooperative.Registry.GenerationPropertyInvestAct.Action;
452
+ type Model$R = Cooperative.Registry.GenerationPropertyInvestAct.Model;
453
+ declare const Schema$R: JSONSchemaType<Model$R>;
454
+ declare const Template$R: ITemplate<Model$R>;
455
+
456
+ declare namespace GenerationPropertyInvestAct {
457
+ export { Schema$R as Schema, Template$R as Template, registry_id$R as registry_id };
458
+ export type { Action$R as Action, Model$R as Model };
459
+ }
460
+
461
+ declare const registry_id$Q = 1070;
462
+ type Action$Q = Cooperative.Registry.CapitalizationPropertyInvestStatement.Action;
463
+ type Model$Q = Cooperative.Registry.CapitalizationPropertyInvestStatement.Model;
464
+ declare const Schema$Q: JSONSchemaType<Model$Q>;
465
+ declare const Template$Q: ITemplate<Model$Q>;
466
+
467
+ declare namespace CapitalizationPropertyInvestStatement {
468
+ export { Schema$Q as Schema, Template$Q as Template, registry_id$Q as registry_id };
469
+ export type { Action$Q as Action, Model$Q as Model };
470
+ }
471
+
472
+ declare const registry_id$P = 1071;
473
+ type Action$P = Cooperative.Registry.CapitalizationPropertyInvestDecision.Action;
474
+ type Model$P = Cooperative.Registry.CapitalizationPropertyInvestDecision.Model;
475
+ declare const Schema$P: JSONSchemaType<Model$P>;
476
+ declare const Template$P: ITemplate<Model$P>;
477
+
478
+ declare namespace CapitalizationPropertyInvestDecision {
479
+ export { Schema$P as Schema, Template$P as Template, registry_id$P as registry_id };
480
+ export type { Action$P as Action, Model$P as Model };
481
+ }
482
+
483
+ declare const registry_id$O = 1072;
484
+ type Action$O = Cooperative.Registry.CapitalizationPropertyInvestAct.Action;
485
+ type Model$O = Cooperative.Registry.CapitalizationPropertyInvestAct.Model;
486
+ declare const Schema$O: JSONSchemaType<Model$O>;
487
+ declare const Template$O: ITemplate<Model$O>;
488
+
489
+ declare namespace CapitalizationPropertyInvestAct {
490
+ export { Schema$O as Schema, Template$O as Template, registry_id$O as registry_id };
491
+ export type { Action$O as Action, Model$O as Model };
492
+ }
493
+
494
+ declare const registry_id$N = 1080;
495
+ type Action$N = Cooperative.Registry.GenerationConvertStatement.Action;
496
+ type Model$N = Cooperative.Registry.GenerationConvertStatement.Model;
497
+ declare const Schema$N: JSONSchemaType<Model$N>;
498
+ declare const Template$N: ITemplate<Model$N>;
499
+
500
+ declare namespace GenerationConvertStatement {
501
+ export { Schema$N as Schema, Template$N as Template, registry_id$N as registry_id };
502
+ export type { Action$N as Action, Model$N as Model };
503
+ }
504
+
505
+ declare const registry_id$M = 1090;
506
+ type Action$M = Cooperative.Registry.CapitalizationToMainWalletConvertStatement.Action;
507
+ type Model$M = Cooperative.Registry.CapitalizationToMainWalletConvertStatement.Model;
508
+ declare const Schema$M: JSONSchemaType<Model$M>;
509
+ declare const Template$M: ITemplate<Model$M>;
510
+
511
+ declare namespace CapitalizationToMainWalletConvertStatement {
512
+ export { Schema$M as Schema, Template$M as Template, registry_id$M as registry_id };
513
+ export type { Action$M as Action, Model$M as Model };
514
+ }
515
+
516
+ declare const registry_id$L = 699;
517
+ type Action$L = Cooperative.Registry.SosediAgreement.Action;
518
+ type Model$L = Cooperative.Registry.SosediAgreement.Model;
519
+ declare const Schema$L: JSONSchemaType<Model$L>;
520
+ declare const Template$L: ITemplate<Model$L>;
521
+
522
+ declare namespace SosediAgreement {
523
+ export { Schema$L as Schema, Template$L as Template, registry_id$L as registry_id };
524
+ export type { Action$L as Action, Model$L as Model };
525
+ }
526
+
527
+ declare const registry_id$K = 300;
528
+ type Action$K = Cooperative.Registry.AnnualGeneralMeetingAgenda.Action;
529
+ type Model$K = Cooperative.Registry.AnnualGeneralMeetingAgenda.Model;
530
+ declare const Schema$K: JSONSchemaType<Model$K>;
531
+ declare const Template$K: ITemplate<Model$K>;
532
+
533
+ declare namespace AnnualGeneralMeetingAgenda {
534
+ export { Schema$K as Schema, Template$K as Template, registry_id$K as registry_id };
535
+ export type { Action$K as Action, Model$K as Model };
536
+ }
537
+
538
+ declare const registry_id$J = 301;
539
+ type Action$J = Cooperative.Registry.AnnualGeneralMeetingSovietDecision.Action;
540
+ type Model$J = Cooperative.Registry.AnnualGeneralMeetingSovietDecision.Model;
541
+ declare const Schema$J: JSONSchemaType<Model$J>;
542
+ declare const Template$J: ITemplate<Model$J>;
543
+
544
+ declare namespace AnnualGeneralMeetingSovietDecision {
545
+ export { Schema$J as Schema, Template$J as Template, registry_id$J as registry_id };
546
+ export type { Action$J as Action, Model$J as Model };
547
+ }
548
+
549
+ declare const registry_id$I = 302;
550
+ type Action$I = Cooperative.Registry.AnnualGeneralMeetingNotification.Action;
551
+ type Model$I = Cooperative.Registry.AnnualGeneralMeetingNotification.Model;
552
+ declare const Schema$I: JSONSchemaType<Model$I>;
553
+ declare const Template$I: ITemplate<Model$I>;
554
+
555
+ declare namespace AnnualGeneralMeetingNotification {
556
+ export { Schema$I as Schema, Template$I as Template, registry_id$I as registry_id };
557
+ export type { Action$I as Action, Model$I as Model };
558
+ }
559
+
560
+ declare const registry_id$H = 303;
561
+ type Action$H = Cooperative.Registry.AnnualGeneralMeetingVotingBallot.Action;
562
+ type Model$H = Cooperative.Registry.AnnualGeneralMeetingVotingBallot.Model;
563
+ declare const Schema$H: JSONSchemaType<Model$H>;
564
+ declare const Template$H: ITemplate<Model$H>;
565
+
566
+ declare namespace AnnualGeneralMeetingVotingBallot {
567
+ export { Schema$H as Schema, Template$H as Template, registry_id$H as registry_id };
568
+ export type { Action$H as Action, Model$H as Model };
569
+ }
570
+
571
+ declare const registry_id$G = 304;
572
+ /**
573
+ * Интерфейс генерации протокола решения общего собрания
574
+ */
575
+ type Action$G = Cooperative.Registry.AnnualGeneralMeetingDecision.Action;
576
+ /**
577
+ * Модель данных документа
578
+ */
579
+ type Model$G = Cooperative.Registry.AnnualGeneralMeetingDecision.Model;
580
+ declare const Schema$G: JSONSchemaType<Model$G>;
581
+ declare const Template$G: ITemplate<Model$G>;
582
+
583
+ declare namespace AnnualGeneralMeetingDecision {
584
+ export { Schema$G as Schema, Template$G as Template, registry_id$G as registry_id };
585
+ export type { Action$G as Action, Model$G as Model };
586
+ }
587
+
588
+ declare const registry_id$F = 320;
589
+ type Action$F = Cooperative.Registry.BranchMeetingProposal.Action;
590
+ type Model$F = Cooperative.Registry.BranchMeetingProposal.Model;
591
+ declare const Schema$F: JSONSchemaType<Model$F>;
592
+ declare const Template$F: ITemplate<Model$F>;
593
+
594
+ declare namespace BranchMeetingProposal {
595
+ export { Schema$F as Schema, Template$F as Template, registry_id$F as registry_id };
596
+ export type { Action$F as Action, Model$F as Model };
597
+ }
598
+
599
+ declare const registry_id$E = 322;
600
+ type Action$E = Cooperative.Registry.BranchMeetingBallot.Action;
601
+ type Model$E = Cooperative.Registry.BranchMeetingBallot.Model;
602
+ declare const Schema$E: JSONSchemaType<Model$E>;
603
+ declare const Template$E: ITemplate<Model$E>;
604
+
605
+ declare namespace BranchMeetingBallot {
606
+ export { Schema$E as Schema, Template$E as Template, registry_id$E as registry_id };
607
+ export type { Action$E as Action, Model$E as Model };
608
+ }
609
+
610
+ declare const registry_id$D = 323;
611
+ type Action$D = Cooperative.Registry.BranchMeetingDecision.Action;
612
+ type Model$D = Cooperative.Registry.BranchMeetingDecision.Model;
613
+ declare const Schema$D: JSONSchemaType<Model$D>;
614
+ declare const Template$D: ITemplate<Model$D>;
615
+
616
+ declare namespace BranchMeetingDecision {
617
+ export { Schema$D as Schema, Template$D as Template, registry_id$D as registry_id };
618
+ export type { Action$D as Action, Model$D as Model };
619
+ }
620
+
621
+ declare const registry_id$C = 324;
622
+ type Action$C = Cooperative.Registry.BranchEstablishmentPetition.Action;
623
+ type Model$C = Cooperative.Registry.BranchEstablishmentPetition.Model;
624
+ declare const Schema$C: JSONSchemaType<Model$C>;
625
+ declare const Template$C: ITemplate<Model$C>;
626
+
627
+ declare namespace BranchEstablishmentPetition {
628
+ export { Schema$C as Schema, Template$C as Template, registry_id$C as registry_id };
629
+ export type { Action$C as Action, Model$C as Model };
630
+ }
631
+
632
+ declare const registry_id$B = 325;
633
+ type Action$B = Cooperative.Registry.BranchEstablishmentSovietDecision.Action;
634
+ type Model$B = Cooperative.Registry.BranchEstablishmentSovietDecision.Model;
635
+ declare const Schema$B: JSONSchemaType<Model$B>;
636
+ declare const Template$B: ITemplate<Model$B>;
637
+
638
+ declare namespace BranchEstablishmentSovietDecision {
639
+ export { Schema$B as Schema, Template$B as Template, registry_id$B as registry_id };
640
+ export type { Action$B as Action, Model$B as Model };
641
+ }
642
+
643
+ declare const registry_id$A = 326;
644
+ type Action$A = Cooperative.Registry.BranchTrustedStatement.Action;
645
+ type Model$A = Cooperative.Registry.BranchTrustedStatement.Model;
646
+ declare const Schema$A: JSONSchemaType<Model$A>;
647
+ declare const Template$A: ITemplate<Model$A>;
648
+
649
+ declare namespace BranchTrustedStatement {
650
+ export { Schema$A as Schema, Template$A as Template, registry_id$A as registry_id };
651
+ export type { Action$A as Action, Model$A as Model };
652
+ }
653
+
654
+ declare const registry_id$z = 327;
655
+ type Action$z = Cooperative.Registry.BranchTrustedLiabilityAgreement.Action;
656
+ type Model$z = Cooperative.Registry.BranchTrustedLiabilityAgreement.Model;
657
+ declare const Schema$z: JSONSchemaType<Model$z>;
658
+ declare const Template$z: ITemplate<Model$z>;
659
+
660
+ declare namespace BranchTrustedLiabilityAgreement {
661
+ export { Schema$z as Schema, Template$z as Template, registry_id$z as registry_id };
662
+ export type { Action$z as Action, Model$z as Model };
663
+ }
664
+
665
+ declare const registry_id$y = 328;
666
+ type Action$y = Cooperative.Registry.BranchTrusteeLiabilityAgreement.Action;
667
+ type Model$y = Cooperative.Registry.BranchTrusteeLiabilityAgreement.Model;
668
+ declare const Schema$y: JSONSchemaType<Model$y>;
669
+ declare const Template$y: ITemplate<Model$y>;
670
+
671
+ declare namespace BranchTrusteeLiabilityAgreement {
672
+ export { Schema$y as Schema, Template$y as Template, registry_id$y as registry_id };
673
+ export type { Action$y as Action, Model$y as Model };
674
+ }
675
+
676
+ declare const registry_id$x = 329;
677
+ type Action$x = Cooperative.Registry.BranchTrusteePowerOfAttorney.Action;
678
+ type Model$x = Cooperative.Registry.BranchTrusteePowerOfAttorney.Model;
679
+ declare const Schema$x: JSONSchemaType<Model$x>;
680
+ declare const Template$x: ITemplate<Model$x>;
681
+
682
+ declare namespace BranchTrusteePowerOfAttorney {
683
+ export { Schema$x as Schema, Template$x as Template, registry_id$x as registry_id };
684
+ export type { Action$x as Action, Model$x as Model };
685
+ }
686
+
687
+ declare const registry_id$w = 330;
688
+ type Action$w = Cooperative.Registry.BranchTrustedPowerOfAttorney.Action;
689
+ type Model$w = Cooperative.Registry.BranchTrustedPowerOfAttorney.Model;
690
+ declare const Schema$w: JSONSchemaType<Model$w>;
691
+ declare const Template$w: ITemplate<Model$w>;
692
+
693
+ declare namespace BranchTrustedPowerOfAttorney {
694
+ export { Schema$w as Schema, Template$w as Template, registry_id$w as registry_id };
695
+ export type { Action$w as Action, Model$w as Model };
696
+ }
697
+
698
+ declare const registry_id$v = 998;
699
+ type Action$v = Cooperative.Registry.BlagorostProgramTemplate.Action;
700
+ type Model$v = Cooperative.Registry.BlagorostProgramTemplate.Model;
701
+ declare const Schema$v: JSONSchemaType<Model$v>;
702
+ declare const Template$v: ITemplate<Model$v>;
703
+
704
+ declare namespace BlagorostProgramTemplate {
705
+ export { Schema$v as Schema, Template$v as Template, registry_id$v as registry_id };
706
+ export type { Action$v as Action, Model$v as Model };
707
+ }
708
+
709
+ declare const registry_id$u = 996;
710
+ type Action$u = Cooperative.Registry.GeneratorOffer.Action;
711
+ type Model$u = Cooperative.Registry.GeneratorOffer.Model;
712
+ declare const Schema$u: JSONSchemaType<Model$u>;
713
+ declare const Template$u: ITemplate<Model$u>;
714
+
715
+ declare namespace GeneratorOffer {
716
+ export { Schema$u as Schema, Template$u as Template, registry_id$u as registry_id };
717
+ export type { Action$u as Action, Model$u as Model };
718
+ }
719
+
720
+ declare const registry_id$t = 994;
721
+ type Action$t = Cooperative.Registry.GeneratorProgramTemplate.Action;
722
+ type Model$t = Cooperative.Registry.GeneratorProgramTemplate.Model;
723
+ declare const Schema$t: JSONSchemaType<Model$t>;
724
+ declare const Template$t: ITemplate<Model$t>;
725
+
726
+ declare namespace GeneratorProgramTemplate {
727
+ export { Schema$t as Schema, Template$t as Template, registry_id$t as registry_id };
728
+ export type { Action$t as Action, Model$t as Model };
729
+ }
730
+
731
+ declare const registry_id$s = 1000;
732
+ type Action$s = Cooperative.Registry.BlagorostOffer.Action;
733
+ type Model$s = Cooperative.Registry.BlagorostOffer.Model;
734
+ declare const Schema$s: JSONSchemaType<Model$s>;
735
+ declare const Template$s: ITemplate<Model$s>;
736
+
737
+ declare namespace BlagorostOffer {
738
+ export { Schema$s as Schema, Template$s as Template, registry_id$s as registry_id };
739
+ export type { Action$s as Action, Model$s as Model };
740
+ }
741
+
742
+ declare const registry_id$r = 1102;
743
+ type Action$r = Cooperative.Registry.MarketplaceOffer.Action;
744
+ type Model$r = Cooperative.Registry.MarketplaceOffer.Model;
745
+ declare const Schema$r: JSONSchemaType<Model$r>;
746
+ declare const Template$r: ITemplate<Model$r>;
747
+
748
+ declare namespace MarketplaceOffer {
749
+ export { Schema$r as Schema, Template$r as Template, registry_id$r as registry_id };
750
+ export type { Action$r as Action, Model$r as Model };
751
+ }
752
+
753
+ declare const registry_id$q = 1103;
754
+ type Action$q = Cooperative.Registry.MarketplaceTransportNote.Action;
755
+ type Model$q = Cooperative.Registry.MarketplaceTransportNote.Model;
756
+ type PrivateData = Cooperative.Registry.MarketplaceTransportNote.PrivateData;
757
+ declare const Schema$q: JSONSchemaType<Model$q>;
758
+ declare const Template$q: ITemplate<Model$q>;
759
+
760
+ type MarketplaceTransportNote_PrivateData = PrivateData;
761
+ declare namespace MarketplaceTransportNote {
762
+ export { Schema$q as Schema, Template$q as Template, registry_id$q as registry_id };
763
+ export type { Action$q as Action, Model$q as Model, MarketplaceTransportNote_PrivateData as PrivateData };
764
+ }
765
+
766
+ declare const registry_id$p = 1104;
767
+ type Action$p = Cooperative.Registry.MarketplaceAplReception.Action;
768
+ type Model$p = Cooperative.Registry.MarketplaceAplReception.Model;
769
+ declare const Schema$p: JSONSchemaType<Model$p>;
770
+ declare const Template$p: ITemplate<Model$p>;
771
+
772
+ declare namespace MarketplaceAplReception {
773
+ export { Schema$p as Schema, Template$p as Template, registry_id$p as registry_id };
774
+ export type { Action$p as Action, Model$p as Model };
775
+ }
776
+
777
+ declare const registry_id$o = 1106;
778
+ type Action$o = Cooperative.Registry.MarketplaceReturnStatement.Action;
779
+ type Model$o = Cooperative.Registry.MarketplaceReturnStatement.Model;
780
+ declare const Schema$o: JSONSchemaType<Model$o>;
781
+ declare const Template$o: ITemplate<Model$o>;
782
+
783
+ declare namespace MarketplaceReturnStatement {
784
+ export { Schema$o as Schema, Template$o as Template, registry_id$o as registry_id };
785
+ export type { Action$o as Action, Model$o as Model };
786
+ }
787
+
788
+ declare const registry_id$n = 1107;
789
+ type Action$n = Cooperative.Registry.MarketplaceWriteoffProtocol.Action;
790
+ type Model$n = Cooperative.Registry.MarketplaceWriteoffProtocol.Model;
791
+ declare const Schema$n: JSONSchemaType<Model$n>;
792
+ declare const Template$n: ITemplate<Model$n>;
793
+
794
+ declare namespace MarketplaceWriteoffProtocol {
795
+ export { Schema$n as Schema, Template$n as Template, registry_id$n as registry_id };
796
+ export type { Action$n as Action, Model$n as Model };
797
+ }
798
+
799
+ declare const registry_id$m = 1108;
800
+ type Action$m = Cooperative.Registry.MarketplaceWriteoffStatement.Action;
801
+ type Model$m = Cooperative.Registry.MarketplaceWriteoffStatement.Model;
802
+ declare const Schema$m: JSONSchemaType<Model$m>;
803
+ declare const Template$m: ITemplate<Model$m>;
804
+
805
+ declare namespace MarketplaceWriteoffStatement {
806
+ export { Schema$m as Schema, Template$m as Template, registry_id$m as registry_id };
807
+ export type { Action$m as Action, Model$m as Model };
808
+ }
809
+
810
+ declare const registry_id$l = 1109;
811
+ type Action$l = Cooperative.Registry.BranchFinancialAidStatement.Action;
812
+ type Model$l = Cooperative.Registry.BranchFinancialAidStatement.Model;
813
+ declare const Schema$l: JSONSchemaType<Model$l>;
814
+ declare const Template$l: ITemplate<Model$l>;
815
+
816
+ declare namespace BranchFinancialAidStatement {
817
+ export { Schema$l as Schema, Template$l as Template, registry_id$l as registry_id };
818
+ export type { Action$l as Action, Model$l as Model };
819
+ }
820
+
821
+ declare const registry_id$k = 1110;
822
+ type Action$k = Cooperative.Registry.MarketplaceConvertStatement.Action;
823
+ type Model$k = Cooperative.Registry.MarketplaceConvertStatement.Model;
824
+ declare const Schema$k: JSONSchemaType<Model$k>;
825
+ declare const Template$k: ITemplate<Model$k>;
826
+
827
+ declare namespace MarketplaceConvertStatement {
828
+ export { Schema$k as Schema, Template$k as Template, registry_id$k as registry_id };
829
+ export type { Action$k as Action, Model$k as Model };
830
+ }
831
+
832
+ declare const registry_id$j = 1111;
833
+ type Action$j = Cooperative.Registry.MarketplaceWriteoffServiceMemo.Action;
834
+ type Model$j = Cooperative.Registry.MarketplaceWriteoffServiceMemo.Model;
835
+ declare const Schema$j: JSONSchemaType<Model$j>;
836
+ declare const Template$j: ITemplate<Model$j>;
837
+
838
+ declare namespace MarketplaceWriteoffServiceMemo {
839
+ export { Schema$j as Schema, Template$j as Template, registry_id$j as registry_id };
840
+ export type { Action$j as Action, Model$j as Model };
841
+ }
842
+
843
+ declare const registry_id$i = 1112;
844
+ type Action$i = Cooperative.Registry.BranchFinancialAidProtocol.Action;
845
+ type Model$i = Cooperative.Registry.BranchFinancialAidProtocol.Model;
846
+ declare const Schema$i: JSONSchemaType<Model$i>;
847
+ declare const Template$i: ITemplate<Model$i>;
848
+
849
+ declare namespace BranchFinancialAidProtocol {
850
+ export { Schema$i as Schema, Template$i as Template, registry_id$i as registry_id };
851
+ export type { Action$i as Action, Model$i as Model };
852
+ }
853
+
854
+ declare const registry_id$h = 1113;
855
+ type Action$h = Cooperative.Registry.MarketplaceShareReturnStatement.Action;
856
+ type Model$h = Cooperative.Registry.MarketplaceShareReturnStatement.Model;
857
+ declare const Schema$h: JSONSchemaType<Model$h>;
858
+ declare const Template$h: ITemplate<Model$h>;
859
+
860
+ declare namespace MarketplaceShareReturnStatement {
861
+ export { Schema$h as Schema, Template$h as Template, registry_id$h as registry_id };
862
+ export type { Action$h as Action, Model$h as Model };
863
+ }
864
+
865
+ declare const registry_id$g = 1114;
866
+ type Action$g = Cooperative.Registry.MarketplaceShareReturnDecision.Action;
867
+ type Model$g = Cooperative.Registry.MarketplaceShareReturnDecision.Model;
868
+ declare const Schema$g: JSONSchemaType<Model$g>;
869
+ declare const Template$g: ITemplate<Model$g>;
870
+
871
+ declare namespace MarketplaceShareReturnDecision {
872
+ export { Schema$g as Schema, Template$g as Template, registry_id$g as registry_id };
873
+ export type { Action$g as Action, Model$g as Model };
874
+ }
875
+
876
+ declare const registry_id$f = 1115;
877
+ type Action$f = Cooperative.Registry.MarketplaceShareReturnAct.Action;
878
+ type Model$f = Cooperative.Registry.MarketplaceShareReturnAct.Model;
879
+ declare const Schema$f: JSONSchemaType<Model$f>;
880
+ declare const Template$f: ITemplate<Model$f>;
881
+
882
+ declare namespace MarketplaceShareReturnAct {
883
+ export { Schema$f as Schema, Template$f as Template, registry_id$f as registry_id };
884
+ export type { Action$f as Action, Model$f as Model };
885
+ }
886
+
887
+ declare const registry_id$e = 1116;
888
+ type Action$e = Cooperative.Registry.MarketplaceReturnCancelStatement.Action;
889
+ type Model$e = Cooperative.Registry.MarketplaceReturnCancelStatement.Model;
890
+ declare const Schema$e: JSONSchemaType<Model$e>;
891
+ declare const Template$e: ITemplate<Model$e>;
892
+
893
+ declare namespace MarketplaceReturnCancelStatement {
894
+ export { Schema$e as Schema, Template$e as Template, registry_id$e as registry_id };
895
+ export type { Action$e as Action, Model$e as Model };
896
+ }
897
+
898
+ declare const registry_id$d = 1117;
899
+ type Action$d = Cooperative.Registry.MarketplaceReturnCancelDecision.Action;
900
+ type Model$d = Cooperative.Registry.MarketplaceReturnCancelDecision.Model;
901
+ declare const Schema$d: JSONSchemaType<Model$d>;
902
+ declare const Template$d: ITemplate<Model$d>;
903
+
904
+ declare namespace MarketplaceReturnCancelDecision {
905
+ export { Schema$d as Schema, Template$d as Template, registry_id$d as registry_id };
906
+ export type { Action$d as Action, Model$d as Model };
907
+ }
908
+
909
+ declare const registry_id$c = 1100;
910
+ type Action$c = Cooperative.Registry.MarketplaceProgramTemplate.Action;
911
+ type Model$c = Cooperative.Registry.MarketplaceProgramTemplate.Model;
912
+ declare const Schema$c: JSONSchemaType<Model$c>;
913
+ declare const Template$c: ITemplate<Model$c>;
914
+
915
+ declare namespace MarketplaceProgramTemplate {
916
+ export { Schema$c as Schema, Template$c as Template, registry_id$c as registry_id };
917
+ export type { Action$c as Action, Model$c as Model };
918
+ }
919
+
920
+ declare const registry_id$b = 3000;
921
+ type Action$b = Cooperative.Registry.EducationProgramTemplate.Action;
922
+ type Model$b = Cooperative.Registry.EducationProgramTemplate.Model;
923
+ declare const Schema$b: JSONSchemaType<Model$b>;
924
+ declare const Template$b: ITemplate<Model$b>;
925
+
926
+ declare namespace EducationProgramTemplate {
927
+ export { Schema$b as Schema, Template$b as Template, registry_id$b as registry_id };
928
+ export type { Action$b as Action, Model$b as Model };
929
+ }
930
+
931
+ declare const registry_id$a = 3002;
932
+ type Action$a = Cooperative.Registry.EducationParentOffer.Action;
933
+ type Model$a = Cooperative.Registry.EducationParentOffer.Model;
934
+ declare const Schema$a: JSONSchemaType<Model$a>;
935
+ declare const Template$a: ITemplate<Model$a>;
936
+
937
+ declare namespace EducationParentOffer {
938
+ export { Schema$a as Schema, Template$a as Template, registry_id$a as registry_id };
939
+ export type { Action$a as Action, Model$a as Model };
940
+ }
941
+
942
+ declare const registry_id$9 = 3004;
943
+ type Action$9 = Cooperative.Registry.EducationTeacherOffer.Action;
944
+ type Model$9 = Cooperative.Registry.EducationTeacherOffer.Model;
945
+ declare const Schema$9: JSONSchemaType<Model$9>;
946
+ declare const Template$9: ITemplate<Model$9>;
947
+
948
+ declare namespace EducationTeacherOffer {
949
+ export { Schema$9 as Schema, Template$9 as Template, registry_id$9 as registry_id };
950
+ export type { Action$9 as Action, Model$9 as Model };
951
+ }
952
+
953
+ declare const registry_id$8 = 3006;
954
+ type Action$8 = Cooperative.Registry.EducationParticipationContract.Action;
955
+ type Model$8 = Cooperative.Registry.EducationParticipationContract.Model;
956
+ declare const Schema$8: JSONSchemaType<Model$8>;
957
+ declare const Template$8: ITemplate<Model$8>;
958
+
959
+ declare namespace EducationParticipationContract {
960
+ export { Schema$8 as Schema, Template$8 as Template, registry_id$8 as registry_id };
961
+ export type { Action$8 as Action, Model$8 as Model };
962
+ }
963
+
964
+ declare const registry_id$7 = 3008;
965
+ type Action$7 = Cooperative.Registry.EducationRidStatement.Action;
966
+ type Model$7 = Cooperative.Registry.EducationRidStatement.Model;
967
+ declare const Schema$7: JSONSchemaType<Model$7>;
968
+ declare const Template$7: ITemplate<Model$7>;
969
+
970
+ declare namespace EducationRidStatement {
971
+ export { Schema$7 as Schema, Template$7 as Template, registry_id$7 as registry_id };
972
+ export type { Action$7 as Action, Model$7 as Model };
973
+ }
974
+
975
+ declare const registry_id$6 = 3009;
976
+ type Action$6 = Cooperative.Registry.EducationRidDecision.Action;
977
+ type Model$6 = Cooperative.Registry.EducationRidDecision.Model;
978
+ declare const Schema$6: JSONSchemaType<Model$6>;
979
+ declare const Template$6: ITemplate<Model$6>;
980
+
981
+ declare namespace EducationRidDecision {
982
+ export { Schema$6 as Schema, Template$6 as Template, registry_id$6 as registry_id };
983
+ export type { Action$6 as Action, Model$6 as Model };
984
+ }
985
+
986
+ declare const registry_id$5 = 3010;
987
+ type Action$5 = Cooperative.Registry.EducationRidAct.Action;
988
+ type Model$5 = Cooperative.Registry.EducationRidAct.Model;
989
+ declare const Schema$5: JSONSchemaType<Model$5>;
990
+ declare const Template$5: ITemplate<Model$5>;
991
+
992
+ declare namespace EducationRidAct {
993
+ export { Schema$5 as Schema, Template$5 as Template, registry_id$5 as registry_id };
994
+ export type { Action$5 as Action, Model$5 as Model };
995
+ }
996
+
997
+ declare const registry_id$4 = 3012;
998
+ type Action$4 = Cooperative.Registry.EducationRidStorageAct.Action;
999
+ type Model$4 = Cooperative.Registry.EducationRidStorageAct.Model;
1000
+ declare const Schema$4: JSONSchemaType<Model$4>;
1001
+ declare const Template$4: ITemplate<Model$4>;
1002
+
1003
+ declare namespace EducationRidStorageAct {
1004
+ export { Schema$4 as Schema, Template$4 as Template, registry_id$4 as registry_id };
1005
+ export type { Action$4 as Action, Model$4 as Model };
1006
+ }
1007
+
1008
+ declare const registry_id$3 = 3011;
1009
+ type Action$3 = Cooperative.Registry.EducationConvertStatement.Action;
1010
+ type Model$3 = Cooperative.Registry.EducationConvertStatement.Model;
1011
+ declare const Schema$3: JSONSchemaType<Model$3>;
1012
+ declare const Template$3: ITemplate<Model$3>;
1013
+
1014
+ declare namespace EducationConvertStatement {
1015
+ export { Schema$3 as Schema, Template$3 as Template, registry_id$3 as registry_id };
1016
+ export type { Action$3 as Action, Model$3 as Model };
1017
+ }
1018
+
1019
+ declare const registry_id$2 = 3013;
1020
+ type Action$2 = Cooperative.Registry.EducationGuaranteeStatement.Action;
1021
+ type Model$2 = Cooperative.Registry.EducationGuaranteeStatement.Model;
1022
+ declare const Schema$2: JSONSchemaType<Model$2>;
1023
+ declare const Template$2: ITemplate<Model$2>;
1024
+
1025
+ declare namespace EducationGuaranteeStatement {
1026
+ export { Schema$2 as Schema, Template$2 as Template, registry_id$2 as registry_id };
1027
+ export type { Action$2 as Action, Model$2 as Model };
1028
+ }
1029
+
1030
+ declare const registry_id$1 = 3014;
1031
+ type Action$1 = Cooperative.Registry.EducationGuaranteeDecision.Action;
1032
+ type Model$1 = Cooperative.Registry.EducationGuaranteeDecision.Model;
1033
+ declare const Schema$1: JSONSchemaType<Model$1>;
1034
+ declare const Template$1: ITemplate<Model$1>;
1035
+
1036
+ declare namespace EducationGuaranteeDecision {
1037
+ export { Schema$1 as Schema, Template$1 as Template, registry_id$1 as registry_id };
1038
+ export type { Action$1 as Action, Model$1 as Model };
1039
+ }
1040
+
1041
+ declare const registry_id: 3015;
1042
+ type Action = Cooperative.Registry.EducationShareWithdrawStatement.Action;
1043
+ type Model = Cooperative.Registry.EducationShareWithdrawStatement.Model;
1044
+ declare const Schema: JSONSchemaType<Model>;
1045
+ declare const Template: ITemplate<Model>;
1046
+
1047
+ type EducationShareWithdrawStatement_Action = Action;
1048
+ type EducationShareWithdrawStatement_Model = Model;
1049
+ declare const EducationShareWithdrawStatement_Schema: typeof Schema;
1050
+ declare const EducationShareWithdrawStatement_Template: typeof Template;
1051
+ declare const EducationShareWithdrawStatement_registry_id: typeof registry_id;
1052
+ declare namespace EducationShareWithdrawStatement {
1053
+ export { EducationShareWithdrawStatement_Schema as Schema, EducationShareWithdrawStatement_Template as Template, EducationShareWithdrawStatement_registry_id as registry_id };
1054
+ export type { EducationShareWithdrawStatement_Action as Action, EducationShareWithdrawStatement_Model as Model };
1055
+ }
1056
+
1057
+ declare const Registry: {
1058
+ 1: typeof WalletAgreement;
1059
+ 2: typeof RegulationElectronicSignaturet;
1060
+ 3: typeof PrivacyPolicy;
1061
+ 4: typeof UserAgreement;
1062
+ 50: typeof CoopenomicsAgreement;
1063
+ 51: typeof ConvertToAxonStatement;
1064
+ 1095: typeof BillingConversionStatement;
1065
+ 100: typeof ParticipantApplication;
1066
+ 101: typeof SelectBranchStatement;
1067
+ 190: typeof ProgramAgreementsAnnulmentStatement;
1068
+ 200: typeof ParticipantExitApplication;
1069
+ 201: typeof DecisionOfParticipantExit;
1070
+ 300: typeof AnnualGeneralMeetingAgenda;
1071
+ 301: typeof AnnualGeneralMeetingSovietDecision;
1072
+ 302: typeof AnnualGeneralMeetingNotification;
1073
+ 303: typeof AnnualGeneralMeetingVotingBallot;
1074
+ 304: typeof AnnualGeneralMeetingDecision;
1075
+ 320: typeof BranchMeetingProposal;
1076
+ 322: typeof BranchMeetingBallot;
1077
+ 323: typeof BranchMeetingDecision;
1078
+ 324: typeof BranchEstablishmentPetition;
1079
+ 325: typeof BranchEstablishmentSovietDecision;
1080
+ 326: typeof BranchTrustedStatement;
1081
+ 327: typeof BranchTrustedLiabilityAgreement;
1082
+ 328: typeof BranchTrusteeLiabilityAgreement;
1083
+ 329: typeof BranchTrusteePowerOfAttorney;
1084
+ 330: typeof BranchTrustedPowerOfAttorney;
1085
+ 501: typeof DecisionOfParticipantApplication;
1086
+ 599: typeof ProjectFreeDecision;
1087
+ 600: typeof FreeDecision;
1088
+ 699: typeof SosediAgreement;
1089
+ 900: typeof ReturnByMoney;
1090
+ 901: typeof ReturnByMoneyDecision;
1091
+ 994: typeof GeneratorProgramTemplate;
1092
+ 996: typeof GeneratorOffer;
1093
+ 998: typeof BlagorostProgramTemplate;
1094
+ 1000: typeof BlagorostOffer;
1095
+ 1001: typeof GenerationContract;
1096
+ 1002: typeof ProjectGenerationContract;
1097
+ 1003: typeof ComponentGenerationContract;
1098
+ 1004: typeof StorageAgreement;
1099
+ 1007: typeof BlagorostAgreement;
1100
+ 1005: typeof InitProjectStatement;
1101
+ 1006: typeof InitProjectDecision;
1102
+ 1010: typeof ExpenseStatement;
1103
+ 1011: typeof ExpenseDecision;
1104
+ 1020: typeof GenerationMoneyInvestStatement;
1105
+ 1025: typeof GenerationMoneyReturnUnusedStatement;
1106
+ 1030: typeof CapitalizationMoneyInvestStatement;
1107
+ 1040: typeof ResultContributionStatement;
1108
+ 1041: typeof ResultContributionDecision;
1109
+ 1042: typeof ResultContributionAct;
1110
+ 1050: typeof GetLoanStatement;
1111
+ 1051: typeof GetLoanDecision;
1112
+ 1060: typeof GenerationPropertyInvestStatement;
1113
+ 1061: typeof GenerationPropertyInvestDecision;
1114
+ 1062: typeof GenerationPropertyInvestAct;
1115
+ 1070: typeof CapitalizationPropertyInvestStatement;
1116
+ 1071: typeof CapitalizationPropertyInvestDecision;
1117
+ 1072: typeof CapitalizationPropertyInvestAct;
1118
+ 1080: typeof GenerationConvertStatement;
1119
+ 1090: typeof CapitalizationToMainWalletConvertStatement;
1120
+ 1100: typeof MarketplaceProgramTemplate;
1121
+ 1102: typeof MarketplaceOffer;
1122
+ 1103: typeof MarketplaceTransportNote;
1123
+ 1104: typeof MarketplaceAplReception;
1124
+ 1106: typeof MarketplaceReturnStatement;
1125
+ 1107: typeof MarketplaceWriteoffProtocol;
1126
+ 1108: typeof MarketplaceWriteoffStatement;
1127
+ 1109: typeof BranchFinancialAidStatement;
1128
+ 1110: typeof MarketplaceConvertStatement;
1129
+ 1111: typeof MarketplaceWriteoffServiceMemo;
1130
+ 1112: typeof BranchFinancialAidProtocol;
1131
+ 1113: typeof MarketplaceShareReturnStatement;
1132
+ 1114: typeof MarketplaceShareReturnDecision;
1133
+ 1115: typeof MarketplaceShareReturnAct;
1134
+ 1116: typeof MarketplaceReturnCancelStatement;
1135
+ 1117: typeof MarketplaceReturnCancelDecision;
1136
+ 2010: typeof ExpenseProposalStatement;
1137
+ 2011: typeof ExpenseProposalDecision;
1138
+ 3000: typeof EducationProgramTemplate;
1139
+ 3002: typeof EducationParentOffer;
1140
+ 3004: typeof EducationTeacherOffer;
1141
+ 3006: typeof EducationParticipationContract;
1142
+ 3008: typeof EducationRidStatement;
1143
+ 3009: typeof EducationRidDecision;
1144
+ 3010: typeof EducationRidAct;
1145
+ 3012: typeof EducationRidStorageAct;
1146
+ 3011: typeof EducationConvertStatement;
1147
+ 3013: typeof EducationGuaranteeStatement;
1148
+ 3014: typeof EducationGuaranteeDecision;
1149
+ 3015: typeof EducationShareWithdrawStatement;
1150
+ };
1151
+
1152
+ interface ValidateResult {
1153
+ valid: boolean;
1154
+ error: string;
1155
+ }
1156
+
1157
+ /**
1158
+ * Порт хранилища фабрики (шаг 5 фабрики v2, FR34–FR35).
1159
+ *
1160
+ * Фабрика не знает, где лежат данные пайщиков, собранные документы и
1161
+ * приватные данные документов: ей даётся реализация этого порта. Две
1162
+ * реализации: PostgreSQL на Kysely (узлы и набор тестов) и память
1163
+ * (отдельные проверки).
1164
+ *
1165
+ * Отбор записей описывается небольшим языком условий, которым пользуются
1166
+ * модели и поиск: равенство по полю, граница по блоку `$lte`, поиск по
1167
+ * образцу `$regex` без учёта регистра, объединения `$or` и `$and`. Язык
1168
+ * унаследован от прежнего хранилища на MongoDB (до 10.2026); реализации
1169
+ * его толкуют.
1170
+ *
1171
+ * Записи версионируются: каждая запись — строка с `block_num`; «текущая» —
1172
+ * последняя по блоку, при равном блоке — последняя вставленная. Удаление
1173
+ * помечает все версии флагом `deleted`, строки не стираются.
1174
+ */
1175
+
1176
+ /** Условие на поле: равенство, граница по числу, образец текста. */
1177
+ type FieldCondition = string | number | boolean | null | undefined | {
1178
+ $lte: number;
1179
+ } | {
1180
+ $regex: string;
1181
+ $options?: string;
1182
+ };
1183
+ /** Отбор: условия на поля плюс объединения. */
1184
+ interface Where {
1185
+ [field: string]: FieldCondition | Where[] | undefined;
1186
+ $or?: Where[];
1187
+ $and?: Where[];
1188
+ }
1189
+ /** Запись хранилища: любые поля плюс служебные версии. */
1190
+ interface StoredRecord {
1191
+ [field: string]: unknown;
1192
+ block_num?: number;
1193
+ deleted?: boolean;
1194
+ }
1195
+ /** Коллекции данных пайщиков и служебные коллекции фабрики. */
1196
+ type RecordCollection = 'individuals' | 'organizations' | 'entrepreneurs' | 'paymentMethods' | 'vars' | 'projects' | 'udatas' | 'signatures';
1197
+ declare const RECORD_COLLECTIONS: readonly RecordCollection[];
1198
+ /** Сохранённый документ: собранный документ плюс ключ версии меты. */
1199
+ interface StoredDocument extends IGeneratedDocument {
1200
+ meta_key: string;
1201
+ }
1202
+ /** Отбор сохранённого документа. */
1203
+ interface DocumentWhere {
1204
+ hash: string;
1205
+ meta_key?: string;
1206
+ block_num?: number;
1207
+ }
1208
+ interface DocumentPage {
1209
+ registry_id?: number;
1210
+ offset: number;
1211
+ limit: number;
1212
+ }
1213
+ /** Приватные данные документа по хэшу их содержимого. */
1214
+ interface DocDataRecord<P = Record<string, unknown>> {
1215
+ hash: string;
1216
+ registry_id: number;
1217
+ payload: P;
1218
+ }
1219
+ interface IFactoryStorage {
1220
+ connect: () => Promise<void>;
1221
+ disconnect: () => Promise<void>;
1222
+ /** Текущая версия записи по отбору: последняя по блоку, затем по вставке. */
1223
+ findOne: <T extends StoredRecord>(collection: RecordCollection, where: Where) => Promise<T | null>;
1224
+ /** Текущая версия каждой группы по отбору, страницей. */
1225
+ findLatestPerGroup: <T extends StoredRecord>(collection: RecordCollection, where: Where, groupBy: string[], page: number, limit: number) => Promise<Cooperative.Document.IGetResponse<T>>;
1226
+ /** Все версии по отбору, от новых к старым. */
1227
+ findAll: <T extends StoredRecord>(collection: RecordCollection, where: Where) => Promise<T[]>;
1228
+ /** Новая версия записи. */
1229
+ insert: <T extends StoredRecord>(collection: RecordCollection, record: T) => Promise<{
1230
+ insertedId: string;
1231
+ }>;
1232
+ /** Пометка всех версий по отбору; возвращает число изменённых строк. */
1233
+ updateMany: (collection: RecordCollection, where: Where, set: Partial<StoredRecord>) => Promise<{
1234
+ modifiedCount: number;
1235
+ }>;
1236
+ /** Сохранить документ; версия — по хэшу и ключу меты, повтор заменяет. */
1237
+ saveDocument: (document: StoredDocument) => Promise<void>;
1238
+ findDocument: (where: DocumentWhere) => Promise<StoredDocument | null>;
1239
+ listDocuments: (page: DocumentPage) => Promise<Array<Pick<StoredDocument, 'hash' | 'meta' | 'html'>>>;
1240
+ countDocuments: (registry_id?: number) => Promise<number>;
1241
+ /** Приватные данные документа: повтор того же хэша ничего не меняет. */
1242
+ saveDocData: (record: DocDataRecord) => Promise<void>;
1243
+ getDocData: <P = Record<string, unknown>>(hash: string) => Promise<P | null>;
1244
+ }
1245
+
1246
+ /**
1247
+ * Реализация порта хранилища в памяти процесса.
1248
+ *
1249
+ * Для набора тестов фабрики и локальной разработки без базы: те же правила,
1250
+ * что у PostgreSQL, — версии по блоку, последняя вставленная при
1251
+ * равном блоке, удаление флагом. Отбор толкуется по подмножеству порта:
1252
+ * равенство, `$lte`, `$regex` без учёта регистра, `$or`, `$and`.
1253
+ */
1254
+
1255
+ declare function matchesWhere(record: StoredRecord, where: Where): boolean;
1256
+ declare class MemoryFactoryStorage implements IFactoryStorage {
1257
+ private seq;
1258
+ private readonly rows;
1259
+ private readonly documents;
1260
+ private readonly docOrder;
1261
+ private readonly docData;
1262
+ connect(): Promise<void>;
1263
+ disconnect(): Promise<void>;
1264
+ /** Полная очистка — для изоляции тестов. */
1265
+ clear(): void;
1266
+ private table;
1267
+ private select;
1268
+ findOne<T extends StoredRecord>(collection: RecordCollection, where: Where): Promise<T | null>;
1269
+ findLatestPerGroup<T extends StoredRecord>(collection: RecordCollection, where: Where, groupBy: string[], page: number, limit: number): Promise<Cooperative.Document.IGetResponse<T>>;
1270
+ findAll<T extends StoredRecord>(collection: RecordCollection, where: Where): Promise<T[]>;
1271
+ insert<T extends StoredRecord>(collection: RecordCollection, record: T): Promise<{
1272
+ insertedId: string;
1273
+ }>;
1274
+ updateMany(collection: RecordCollection, where: Where, set: Partial<StoredRecord>): Promise<{
1275
+ modifiedCount: number;
1276
+ }>;
1277
+ private docKey;
1278
+ saveDocument(document: StoredDocument): Promise<void>;
1279
+ findDocument(where: DocumentWhere): Promise<StoredDocument | null>;
1280
+ listDocuments(page: DocumentPage): Promise<Array<Pick<StoredDocument, 'hash' | 'meta' | 'html'>>>;
1281
+ countDocuments(registry_id?: number): Promise<number>;
1282
+ saveDocData(record: DocDataRecord): Promise<void>;
1283
+ getDocData<P = Record<string, unknown>>(hash: string): Promise<P | null>;
1284
+ }
1285
+
1286
+ /**
1287
+ * Реализация порта хранилища фабрики на PostgreSQL (шаг 5 фабрики v2).
1288
+ * Таблицы создаёт миграция контроллера `CoreFactoryStorage1793204380830`;
1289
+ * этой реализацией пользуются контроллер (с его же соединением Kysely),
1290
+ * boot стенда и скрипт переноса (своё соединение по параметрам).
1291
+ *
1292
+ * Правила версий те же, что были в MongoDB: текущая запись — последняя по
1293
+ * блоку, при равном блоке последняя по `id`; удаление ставит флаг на все
1294
+ * версии. Поля записи лежат в `payload` (jsonb), отбор порта переводится в
1295
+ * выражения над ним: равенство — через вхождение jsonb (`@>`), граница по
1296
+ * блоку и флаг удаления — по колонкам, образец текста — `~*` над текстовым
1297
+ * значением поля. Возвращаемая запись собирается из `payload` и колонок, как
1298
+ * отдавала MongoDB (`_id` — текстовый `id` строки).
1299
+ */
1300
+
1301
+ type Db = Kysely<any>;
1302
+ declare class PostgresFactoryStorage implements IFactoryStorage {
1303
+ readonly db: Db;
1304
+ /** Соединение создано здесь — закрываем его в `disconnect`. */
1305
+ private readonly ownsConnection;
1306
+ /** Готовое соединение Kysely (контроллер) либо параметры пула (boot, скрипты). */
1307
+ constructor(dbOrPool: Db | PoolConfig);
1308
+ connect(): Promise<void>;
1309
+ disconnect(): Promise<void>;
1310
+ /** Создать таблицы, если их нет: набор тестов и стенды без мигратора контроллера. */
1311
+ ensureSchema(): Promise<void>;
1312
+ /** Условие порта → выражение Kysely над строкой `factory_records`. */
1313
+ private condition;
1314
+ private fieldCondition;
1315
+ /** Колонки `block_num` и `deleted`: сравнение по столбцу. */
1316
+ private columnCondition;
1317
+ /** Граница по числу и образец текста над полем payload. */
1318
+ private payloadOperator;
1319
+ /** Равенство через вхождение jsonb: точный тип значения и вложенные пути. */
1320
+ private payloadEquals;
1321
+ private toRecord;
1322
+ findOne<T extends StoredRecord>(collection: RecordCollection, where: Where): Promise<T | null>;
1323
+ findLatestPerGroup<T extends StoredRecord>(collection: RecordCollection, where: Where, groupBy: string[], page: number, limit: number): Promise<Cooperative.Document.IGetResponse<T>>;
1324
+ findAll<T extends StoredRecord>(collection: RecordCollection, where: Where): Promise<T[]>;
1325
+ insert<T extends StoredRecord>(collection: RecordCollection, record: T): Promise<{
1326
+ insertedId: string;
1327
+ }>;
1328
+ updateMany(collection: RecordCollection, where: Where, set: Partial<StoredRecord>): Promise<{
1329
+ modifiedCount: number;
1330
+ }>;
1331
+ saveDocument(document: StoredDocument): Promise<void>;
1332
+ private toDocument;
1333
+ findDocument(where: DocumentWhere): Promise<StoredDocument | null>;
1334
+ listDocuments(page: DocumentPage): Promise<Array<Pick<StoredDocument, 'hash' | 'meta' | 'html'>>>;
1335
+ countDocuments(registry_id?: number): Promise<number>;
1336
+ saveDocData(record: DocDataRecord): Promise<void>;
1337
+ getDocData<P = Record<string, unknown>>(hash: string): Promise<P | null>;
1338
+ }
1339
+
1340
+ /**
1341
+ * Схема хранилища фабрики в PostgreSQL — текущий вид трёх таблиц.
1342
+ *
1343
+ * На узлах таблицы создаёт миграция контроллера
1344
+ * `CoreFactoryStorage1793204380830` (снимок этой схемы на 28.10.2026;
1345
+ * миграции неизменны, правка схемы — новая миграция контроллера и правка
1346
+ * здесь). Этот перечень нужен тем, у кого мигратора контроллера нет: набору
1347
+ * тестов фабрики и отдельным стендам. Все команды идемпотентны.
1348
+ */
1349
+ declare const FACTORY_STORAGE_DDL: readonly string[];
1350
+
1351
+ /**
1352
+ * Источник данных поверх прямых запросов к цепи.
1353
+ *
1354
+ * Умолчание для тех, у кого нет собственной базы, — инструментов развёртывания
1355
+ * и одноразовых сборок документов. Читает таблицы через `get_table_rows` и
1356
+ * отбирает нужные строки в памяти: цепь умеет искать только по индексам
1357
+ * таблицы, а фабрике нужен отбор по произвольным полям (хэш собрания, номер в
1358
+ * реестре). Объёмы этих таблиц исчисляются десятками строк, поэтому такой
1359
+ * перебор дешевле, чем поддерживать вторичные индексы под каждый запрос.
1360
+ *
1361
+ * Историей не располагает: цепь отдаёт только текущее состояние таблицы.
1362
+ * `block_num` в запросе игнорируется, и это допустимо ровно потому, что здесь
1363
+ * документы собираются «сейчас» — узел для пересборки старых документов
1364
+ * использует свою реализацию, с историей версий.
1365
+ */
1366
+ declare class ChainRpcDataSource implements IChainDataSource {
1367
+ private readonly chainUrl;
1368
+ constructor(chainUrl: string);
1369
+ getTableRows<T = any>(query: ITableQuery): Promise<T[]>;
1370
+ /** Истории действий у цепи нет — см. пояснение к IChainDataSource.getActions. */
1371
+ getActions<T = any>(_query: IActionQuery): Promise<T[]>;
1372
+ getCurrentBlock(): Promise<number>;
1373
+ private fetchAllRows;
1374
+ private post;
1375
+ }
1376
+
1377
+ /**
1378
+ * Откуда фабрика документов берёт данные цепи.
1379
+ *
1380
+ * Сама она их не добывает: раньше фабрика ходила по HTTP в обозреватель
1381
+ * старого парсера, из-за чего библиотека генерации документов знала про
1382
+ * конкретный сервис и не могла работать без него. Теперь потребность объявлена
1383
+ * интерфейсом, а откуда читать — решает тот, кто фабрику создаёт: узел отдаёт
1384
+ * реализацию поверх собственной базы, а инструменты развёртывания — поверх
1385
+ * прямых запросов к цепи.
1386
+ *
1387
+ * Про `block_num`: документ, подписанный когда-то, обязан пересобираться теми
1388
+ * данными, что действовали на момент подписи, иначе изменится его содержимое
1389
+ * при неизменном хэше. Реализация, которая историю не хранит, обязана честно
1390
+ * отдать текущее состояние — но не притворяться, что вернула историческое.
1391
+ */
1392
+ /** Запрос строк он-чейн таблицы. */
1393
+ interface ITableQuery {
1394
+ /** Аккаунт контракта. */
1395
+ code: string;
1396
+ /** Скоуп таблицы (обычно имя кооператива либо сам контракт). */
1397
+ scope: string;
1398
+ /** Имя таблицы. */
1399
+ table: string;
1400
+ /**
1401
+ * Отбор по полям строки. Ключ — имя поля верхнего уровня либо путь через
1402
+ * точку (`document.doc_hash`), значение сравнивается как строка.
1403
+ */
1404
+ filter?: Record<string, unknown>;
1405
+ /** Состояние на этот блок; не задан — текущее. */
1406
+ block_num?: number;
1407
+ /** Сколько строк вернуть. */
1408
+ limit?: number;
1409
+ }
1410
+ /** Запрос действий из истории цепи. */
1411
+ interface IActionQuery {
1412
+ /** Аккаунт контракта. */
1413
+ account: string;
1414
+ /** Имя действия. */
1415
+ name?: string;
1416
+ /** Отбор по полям полезной нагрузки — как у таблиц. */
1417
+ data?: Record<string, unknown>;
1418
+ limit?: number;
1419
+ }
1420
+ interface IChainDataSource {
1421
+ /** Строки таблицы под условие; порядок — от свежих блоков к старым. */
1422
+ getTableRows: <T = any>(query: ITableQuery) => Promise<T[]>;
1423
+ /**
1424
+ * Действия под условие; порядок — от свежих к старым.
1425
+ *
1426
+ * Историю действий хранит только тот, кто её накапливает. Реализация поверх
1427
+ * прямых запросов к цепи такой истории не имеет и вернёт пусто — это
1428
+ * осознанное ограничение, а не сбой: документы, которым нужны голоса совета,
1429
+ * собираются узлом, а не инструментом развёртывания.
1430
+ */
1431
+ getActions: <T = any>(query: IActionQuery) => Promise<T[]>;
1432
+ /** Текущая высота цепи — попадает в метаданные документа. */
1433
+ getCurrentBlock: () => Promise<number>;
1434
+ }
1435
+
1436
+ type CooperativeData = Cooperative.Model.ICooperativeData;
1437
+
1438
+ type ExternalIndividualData = Cooperative.Users.IIndividualData;
1439
+ type InternalIndividualData = ExternalIndividualData;
1440
+ declare class Individual {
1441
+ individual?: ExternalIndividualData;
1442
+ private data_service;
1443
+ constructor(storage: IFactoryStorage, data?: ExternalIndividualData);
1444
+ validate(): ValidateResult;
1445
+ save(): Promise<{
1446
+ insertedId: string;
1447
+ }>;
1448
+ getOne(filter: Where): Promise<ExternalIndividualData | null>;
1449
+ getMany(filter: Where): Promise<Cooperative.Document.IGetResponse<ExternalIndividualData>>;
1450
+ getHistory(filter: Where): Promise<ExternalIndividualData[]>;
1451
+ del(filter: Where): Promise<{
1452
+ modifiedCount: number;
1453
+ }>;
1454
+ }
1455
+
1456
+ type ExternalOrganizationData = Cooperative.Users.IOrganizationData;
1457
+ type InternalOrganizationData = Cooperative.Users.IOrganizationData;
1458
+ declare class Organization {
1459
+ db: IFactoryStorage;
1460
+ organization?: ExternalOrganizationData;
1461
+ private data_service;
1462
+ constructor(storage: IFactoryStorage, data?: ExternalOrganizationData);
1463
+ validate(): ValidateResult;
1464
+ save(): Promise<{
1465
+ insertedId: string;
1466
+ }>;
1467
+ getOne(filter: Where): Promise<ExternalOrganizationData | null>;
1468
+ getMany(filter: Where): Promise<Cooperative.Document.IGetResponse<ExternalOrganizationData>>;
1469
+ getHistory(filter: Where): Promise<ExternalOrganizationData[]>;
1470
+ del(filter: Where): Promise<{
1471
+ modifiedCount: number;
1472
+ }>;
1473
+ }
1474
+
1475
+ type ExternalEntrepreneurData = Cooperative.Users.IEntrepreneurData;
1476
+ type InternalEntrepreneurData = Omit<ExternalEntrepreneurData, 'bank_account'> & {
1477
+ bank_account?: Cooperative.Payments.IBankAccount;
1478
+ };
1479
+ declare class Entrepreneur {
1480
+ db: IFactoryStorage;
1481
+ entrepreneur?: ExternalEntrepreneurData;
1482
+ private data_service;
1483
+ constructor(storage: IFactoryStorage, data?: ExternalEntrepreneurData);
1484
+ validate(): ValidateResult;
1485
+ save(): Promise<{
1486
+ insertedId: string;
1487
+ }>;
1488
+ getOne(filter: Where): Promise<ExternalEntrepreneurData | null>;
1489
+ getMany(filter: Where): Promise<Cooperative.Document.IGetResponse<ExternalEntrepreneurData>>;
1490
+ getHistory(filter: Where): Promise<ExternalEntrepreneurData[]>;
1491
+ del(filter: Where): Promise<{
1492
+ modifiedCount: number;
1493
+ }>;
1494
+ }
1495
+
1496
+ type PaymentData = IPaymentData;
1497
+ declare class PaymentMethod {
1498
+ db: IFactoryStorage;
1499
+ paymentMethod?: PaymentData;
1500
+ private data_service;
1501
+ constructor(storage: IFactoryStorage, data?: PaymentData);
1502
+ validate(): ValidateResult;
1503
+ save(): Promise<{
1504
+ insertedId: string;
1505
+ }>;
1506
+ getOne(filter: Where): Promise<PaymentData | null>;
1507
+ getMany(filter: Where): Promise<Cooperative.Document.IGetResponse<PaymentData>>;
1508
+ getHistory(filter: Where): Promise<PaymentData[]>;
1509
+ del(filter: Where): Promise<{
1510
+ modifiedCount: number;
1511
+ }>;
1512
+ }
1513
+
1514
+ type IVars = Cooperative.Model.IVars;
1515
+ declare class Vars {
1516
+ data?: IVars;
1517
+ private data_service;
1518
+ constructor(storage: IFactoryStorage, data?: IVars);
1519
+ validate(): ValidateResult;
1520
+ save(): Promise<{
1521
+ insertedId: string;
1522
+ }>;
1523
+ getOne(filter: Where): Promise<IVars | null>;
1524
+ getMany(filter: Where): Promise<Cooperative.Document.IGetResponse<IVars>>;
1525
+ getHistory(filter: Where): Promise<IVars[]>;
1526
+ update(filter: Where, updateData: Partial<IVars>): Promise<{
1527
+ modifiedCount: number;
1528
+ }>;
1529
+ del(filter: Where): Promise<{
1530
+ modifiedCount: number;
1531
+ }>;
1532
+ }
1533
+
1534
+ type ExternalProjectData = Cooperative.Document.IProjectData;
1535
+ interface InternalProjectData extends ExternalProjectData {
1536
+ block_num?: number;
1537
+ deleted?: boolean;
1538
+ }
1539
+ declare class Project {
1540
+ project?: ExternalProjectData;
1541
+ private data_service;
1542
+ constructor(storage: IFactoryStorage, data?: ExternalProjectData);
1543
+ validate(): ValidateResult;
1544
+ save(): Promise<{
1545
+ insertedId: string;
1546
+ }>;
1547
+ getOne(filter: Where): Promise<InternalProjectData | null>;
1548
+ getMany(filter: Where): Promise<Cooperative.Document.IGetResponse<InternalProjectData>>;
1549
+ getHistory(filter: Where): Promise<InternalProjectData[]>;
1550
+ del(filter: Where): Promise<{
1551
+ modifiedCount: number;
1552
+ }>;
1553
+ }
1554
+
1555
+ type ExternalUdata = Cooperative.Model.IUdata;
1556
+ type InternalUdata = ExternalUdata;
1557
+ declare class Udata {
1558
+ udata?: ExternalUdata;
1559
+ private data_service;
1560
+ constructor(storage: IFactoryStorage, data?: ExternalUdata);
1561
+ validate(): ValidateResult;
1562
+ save(): Promise<{
1563
+ insertedId: string;
1564
+ }>;
1565
+ getOne(filter: Where): Promise<ExternalUdata | null>;
1566
+ getMany(filter: Where): Promise<Cooperative.Document.IGetResponse<ExternalUdata>>;
1567
+ getHistory(filter: Where): Promise<ExternalUdata[]>;
1568
+ del(filter: Where): Promise<{
1569
+ modifiedCount: number;
1570
+ }>;
1571
+ }
1572
+
1573
+ /**
1574
+ * Мета документа. Поле `builder` (версия сборщика, шаг 7) объявлено и здесь:
1575
+ * `cooptypes` приходит от приложения-хозяина, и его выпуск может быть старше
1576
+ * пакета фабрики.
1577
+ */
1578
+ type IMetaDocument = Cooperative.Document.IMetaDocument & {
1579
+ builder?: string;
1580
+ };
1581
+ interface IGeneratedDocument {
1582
+ full_title: string;
1583
+ html: string;
1584
+ hash: string;
1585
+ meta: IMetaDocument;
1586
+ binary: Uint8Array;
1587
+ }
1588
+ interface NestedRecord {
1589
+ [key: string]: any;
1590
+ }
1591
+ type ITranslations = Record<string, NestedRecord>;
1592
+ interface ITemplate<T> {
1593
+ title: string;
1594
+ description: string;
1595
+ model: JSONSchemaType<T>;
1596
+ context: string;
1597
+ translations: ITranslations;
1598
+ }
1599
+ interface ICombinedData {
1600
+ individual?: ExternalIndividualData;
1601
+ organization?: ExternalOrganizationData;
1602
+ entrepreneur?: ExternalEntrepreneurData;
1603
+ coop?: CooperativeData;
1604
+ meta: IMetaDocument;
1605
+ /** Дата документа для человека («ДД.ММ.ГГГГ ЧЧ:ММ»); подставляет фабрика при рендере из `meta.created_at`. */
1606
+ created_at?: string;
1607
+ }
1608
+ type Numbers = keyof typeof Registry;
1609
+ type LangType = 'ru';
1610
+ interface IMetaDocumentPartial extends Partial<IMetaDocument> {
1611
+ username: string;
1612
+ coopname: string;
1613
+ registry_id: number;
1614
+ title: string;
1615
+ }
1616
+ type IGenerate = Cooperative.Document.IGenerate;
1617
+ type IGenerationOptions = Cooperative.Document.IGenerationOptions;
1618
+ /**
1619
+ * Вход сборки бланка: документ без данных события — только шаблон из цепи и
1620
+ * реквизиты кооператива. Без `block_num` редакцию шаблона выбирает источник
1621
+ * данных (утверждённую), с ним — редакция на указанном блоке.
1622
+ */
1623
+ interface IGenerateBlank {
1624
+ coopname: string;
1625
+ registry_id: number;
1626
+ block_num?: number;
1627
+ lang?: string;
1628
+ /** Хэш параметров документа (`doc_data`): без него параметры программы в бланке — прочерк. */
1629
+ doc_data_hash?: string;
1630
+ }
1631
+ interface IGeneratedBlank {
1632
+ title: string;
1633
+ html: string;
1634
+ meta: IMetaDocument;
1635
+ }
1636
+
1637
+ type Currency = 'RUB' | 'Other';
1638
+ type IBankAccount = Cooperative.Payments.IBankAccount;
1639
+ type IPaymentData = Cooperative.Payments.IPaymentData;
1640
+
1641
+ interface IFilterDeltas {
1642
+ present: boolean;
1643
+ code: string;
1644
+ scope: string;
1645
+ table: string;
1646
+ primary_key: string;
1647
+ value?: any;
1648
+ block_num: number;
1649
+ block_id: string;
1650
+ }
1651
+ interface IFilterActions {
1652
+ transaction_id: string;
1653
+ account: string;
1654
+ name: string;
1655
+ authorization: Array<{
1656
+ actor: string;
1657
+ permission: string;
1658
+ }>;
1659
+ data: any;
1660
+ }
1661
+ interface IBCState {
1662
+ key: string;
1663
+ block_num: number;
1664
+ }
1665
+ /** Отбор сохранённого документа: по хэшу, при необходимости по ключу меты или блоку. */
1666
+ interface IDocumentFilter {
1667
+ hash: string;
1668
+ meta_key?: string;
1669
+ /** Блок черновика (`meta.block_num`): версия документа одного хэша. */
1670
+ block_num?: number;
1671
+ }
1672
+ type internalFilterTypes = InternalIndividualData | InternalEntrepreneurData | InternalOrganizationData | IPaymentData | IVars | InternalProjectData | InternalUdata;
1673
+ type externalDataTypes = ExternalIndividualData | ExternalEntrepreneurData | ExternalOrganizationData | PaymentData | IVars | ExternalProjectData | ExternalUdata;
1674
+ type externalDataTypesArrays = ExternalIndividualData[] | ExternalEntrepreneurData[] | ExternalOrganizationData[] | PaymentData[] | IVars[] | ExternalProjectData[] | ExternalUdata[];
1675
+
1676
+ type IGenerateJoinCoopDecision = Cooperative.Document.IGenerateJoinCoopDecision;
1677
+ /**
1678
+ * Интерфейс генерации заявления на вступление в кооператив
1679
+ */
1680
+ interface IGenerateJoinCoop extends IGenerate {
1681
+ signature: string;
1682
+ skip_save: boolean;
1683
+ }
1684
+ type IGenerateAgreement = Cooperative.Document.IGenerateWalletAgreement;
1685
+
1686
+ /**
1687
+ * Реестр версий шаблонов документов.
1688
+ *
1689
+ * Версия шаблона — это требование к подписи, а не номер редакции текста.
1690
+ * Рабочий стол пайщика сверяет версию шаблона в реестре с версией, под
1691
+ * которой пайщик подписался, и при расхождении просит подписать заново
1692
+ * (виджет `RequireAgreements`). Поэтому:
1693
+ *
1694
+ * - правка текста, вёрстки, опечатки, отступа — **версию не трогаем**.
1695
+ * Синхронизатор просто перезальёт содержание (`editdraft`/`edittrans`),
1696
+ * и никто ничего не переподписывает;
1697
+ * - изменение смысла (условия, права, обязанности, состав сведений) —
1698
+ * поднимаем здесь число на единицу. Тогда при ближайшей раскатке
1699
+ * синхронизатор вызовет `upversion`, и все пайщики получат требование
1700
+ * подписать документ заново.
1701
+ *
1702
+ * Число здесь — целевая версия. Синхронизатор поднимает версию в сети до
1703
+ * этого значения и никогда не опускает: если в какой-то сети версия уже
1704
+ * выше объявленной, документ не трогается, а в отчёте появляется
1705
+ * предупреждение — значит следующее объявленное значение надо брать выше
1706
+ * фактического.
1707
+ *
1708
+ * Документы, которых здесь нет, считаются версией {@link DEFAULT_TEMPLATE_VERSION}.
1709
+ *
1710
+ * Значения засеяны с производственной сети (`api.coopenomics.world`)
1711
+ * 2026-08-09 — так первая раскатка реестра никому не назначает
1712
+ * переподписи. В тестовой сети часть документов на этот момент имела
1713
+ * версии выше (переподписи там запрашивались чаще) — они так и остались
1714
+ * выше, синхронизатор их не понижает.
1715
+ */
1716
+ declare const DEFAULT_TEMPLATE_VERSION = 1;
1717
+ declare const TemplateVersions: Record<number, number>;
1718
+ /**
1719
+ * Целевая версия шаблона документа.
1720
+ */
1721
+ declare function getTemplateVersion(registry_id: number | string): number;
1722
+
1723
+ declare const BankAccountSchema: JSONSchemaType<IBankAccount>;
1724
+
1725
+ declare const decisionSchema: JSONSchemaType<Cooperative.Document.IDecisionData>;
1726
+
1727
+ declare const entrepreneurSchema: JSONSchemaType<ExternalEntrepreneurData>;
1728
+
1729
+ declare const organizationSchema: JSONSchemaType<ExternalOrganizationData>;
1730
+
1731
+ declare const individualSchema: JSONSchemaType<ExternalIndividualData>;
1732
+
1733
+ declare const paymentMethodSchema: JSONSchemaType<IPaymentData>;
1734
+
1735
+ declare const CooperativeSchema: JSONSchemaType<CooperativeData>;
1736
+
1737
+ declare const VarsSchema: JSONSchemaType<IVars>;
1738
+
1739
+ declare const MeetSchema: JSONSchemaType<Cooperative.Model.IMeetExtended>;
1740
+ declare const MeetPointSchema: JSONSchemaType<Interfaces.Meet.IMeetPoint>;
1741
+ declare const QuestionSchema: JSONSchemaType<Interfaces.Meet.IQuestion>;
1742
+ declare const QuestionExtendedSchema: JSONSchemaType<Cooperative.Model.IQuestionExtended>;
1743
+
1744
+ declare const CommonUserSchema: JSONSchemaType<Cooperative.Model.ICommonUser>;
1745
+
1746
+ interface IAgendaMeet {
1747
+ type: 'regular' | 'extra';
1748
+ open_at_datetime: string;
1749
+ close_at_datetime: string;
1750
+ }
1751
+ interface IAgendaQuestion {
1752
+ number: string;
1753
+ title: string;
1754
+ context?: string;
1755
+ decision: string;
1756
+ }
1757
+ declare const AgendaMeetSchema: JSONSchemaType<IAgendaMeet>;
1758
+ declare const AgendaQuestionSchema: JSONSchemaType<IAgendaQuestion>;
1759
+
1760
+ declare const udataSchema: JSONSchemaType<Cooperative.Model.IUdata>;
1761
+
1762
+ /** Публичная позиция расхода — то, что едет в meta документа on-chain. */
1763
+ interface IExpenseItem {
1764
+ number: string;
1765
+ description: string;
1766
+ amount: string;
1767
+ recipient_type: 'SELF' | 'MEMBER' | 'ORG';
1768
+ mechanics: 'ADVANCE' | 'DIRECT';
1769
+ }
1770
+ /** Позиция в модели рендера — публичная + приватная часть (склеена фабрикой из doc_data). */
1771
+ interface IExpenseRenderItem extends IExpenseItem {
1772
+ recipient_name?: string;
1773
+ requisites?: string;
1774
+ payment_purpose?: string;
1775
+ }
1776
+ interface IExpenseProposalHeader {
1777
+ description: string;
1778
+ total_amount: string;
1779
+ items_count: number;
1780
+ source_wallet: string;
1781
+ deadline?: string;
1782
+ fund_name?: string;
1783
+ }
1784
+ interface IExpenseProposalDecisionBody {
1785
+ kind: 'approve' | 'decline';
1786
+ reason?: string;
1787
+ }
1788
+ /** Схема публичной позиции (2011 «Решение совета» — без приватных полей). */
1789
+ declare const ExpenseItemSchema: JSONSchemaType<IExpenseItem>;
1790
+ /** Схема позиции рендера (2010 СЗ-смета — с подмешанной приватной частью). */
1791
+ declare const ExpenseRenderItemSchema: JSONSchemaType<IExpenseRenderItem>;
1792
+ declare const ExpenseProposalHeaderSchema: JSONSchemaType<IExpenseProposalHeader>;
1793
+ declare const ExpenseProposalDecisionBodySchema: JSONSchemaType<IExpenseProposalDecisionBody>;
1794
+
1795
+ /**
1796
+ * Ключ версии черновика по его meta. Тело документа двух генераций может
1797
+ * совпасть (дата впечатана до минуты), совпадает и блок, если генерации
1798
+ * попали в один блок, — тогда вторая версия затирала первую, и второй
1799
+ * подписант получал чужую meta («Хэш метаданных не совпадает»). Ключ по meta
1800
+ * различает такие версии. Пустые поля опускаются: транспорт их роняет, а база
1801
+ * хранит как null.
1802
+ */
1803
+ declare function documentMetaKey(meta: unknown): string;
1804
+
1805
+ /**
1806
+ * Версия сборщика (шаг 7 фабрики v2, решение 6 PRD).
1807
+ *
1808
+ * Две независимые оси. Редакция шаблона — юридический текст в цепи: её номер
1809
+ * поднимает `upversion`, совет каждого кооператива утверждает её сам. Версия
1810
+ * сборщика — код, две части `major.minor`:
1811
+ *
1812
+ * - `major` меняется, когда меняется форма модели: поле удалено,
1813
+ * переименовано, сменило смысл. Смена `major` — только вместе с новой
1814
+ * редакцией шаблона (`upversion` и утверждение советом).
1815
+ * - `minor` — исправление ошибки или новое поле без удаления. Выходит с
1816
+ * раскаткой бэкенда, без правки цепи и без решения совета.
1817
+ *
1818
+ * Редакция объявляет только `major` ключом `x-builder` в поле `model` (нет
1819
+ * ключа — `1`). Новая сборка берёт последний `minor` объявленного `major`,
1820
+ * который есть на узле; пересборка — точную версию из `meta.builder`;
1821
+ * документ без `meta.builder` (собран до оси версий) — версию `1.0`.
1822
+ *
1823
+ * Выпущенная версия заморожена: её файл и её вывод не меняются (проверки
1824
+ * `scripts/builders-freeze-check.mjs` и эталоны). Исправление — новый `minor`
1825
+ * отдельным файлом рядом.
1826
+ */
1827
+ type BuilderVersion = `${number}.${number}`;
1828
+ /** Версия, которой собраны все документы до оси версий. */
1829
+ declare const FIRST_BUILDER_VERSION: BuilderVersion;
1830
+ /** Ключ в схеме `model` редакции шаблона: под какой `major` написан текст. */
1831
+ declare const X_BUILDER_KEY = "x-builder";
1832
+ interface IBuilderVersionParts {
1833
+ major: number;
1834
+ minor: number;
1835
+ }
1836
+ declare function parseBuilderVersion(version: string): IBuilderVersionParts;
1837
+ declare function isBuilderVersion(value: unknown): value is BuilderVersion;
1838
+ /** `major`, объявленный редакцией шаблона; ключа нет — `1`. */
1839
+ declare function templateBuilderMajor(model: unknown): number;
1840
+ /** Последний `minor` заданного `major` среди версий; нет ни одной — `undefined`. */
1841
+ declare function latestMinorOf(versions: Iterable<string>, major: number): BuilderVersion | undefined;
1842
+
1843
+ declare let version: string;
1844
+
1845
+ /** Дата меты записана в старом виде `ДД.ММ.ГГГГ ЧЧ:ММ`. */
1846
+ declare function isLegacyCreatedAt(value: string): boolean;
1847
+ /** Дата меты записана в ISO 8601. */
1848
+ declare function isIsoCreatedAt(value: string): boolean;
1849
+ /** Момент генерации для новой меты. */
1850
+ declare function nowCreatedAt(): string;
1851
+ /** Разбирает дату меты любого вида; непонятную дату не выдумывает. */
1852
+ declare function parseCreatedAt(value: string, timezone: string): moment.Moment;
1853
+ /**
1854
+ * Дата меты в виде для человека. ISO переводится в пояс документа; всё прочее
1855
+ * — старая дата меты и даты, записанные вручную, — уже в виде для человека и
1856
+ * возвращается как есть: так старый документ пересобирается байт в байт.
1857
+ */
1858
+ declare function formatCreatedAt(value: string, timezone: string): string;
1859
+ /** Дата и время по отдельности — для реквизитов решений и актов. */
1860
+ declare function splitCreatedAt(value: string, timezone: string): {
1861
+ date: string;
1862
+ time: string;
1863
+ };
1864
+
1865
+ interface ISearchResult {
1866
+ type: 'individual' | 'entrepreneur' | 'organization';
1867
+ data: ExternalIndividualData | ExternalEntrepreneurData | ExternalOrganizationData;
1868
+ score?: number;
1869
+ highlightedFields?: string[];
1870
+ }
1871
+
1872
+ /**
1873
+ * Слой источников данных фабрики: «прочитать на блок».
1874
+ *
1875
+ * Шаг 1 фабрики v2 (компонент 71, задача 5A8-N). До него каждое чтение —
1876
+ * шаблон из цепи, пайщик из хранилища, голоса из действий — лежало в своём
1877
+ * методе `DocFactory`, а действия сверх того сами открывали модели поверх
1878
+ * хранилища (`new Udata(this.storage)`) и держали ветку локальных шаблонов
1879
+ * `process.env.SOURCE === 'local'`. Здесь всё чтение собрано в одном
1880
+ * классе. Каждое чтение принимает номер блока и отдаёт состояние на этот
1881
+ * блок: так документ пересобирается по своим метаданным тем же, каким был.
1882
+ *
1883
+ * Границы класса: только чтение и только сырые данные. Форматирование
1884
+ * имён, расчёт процентов по голосам и вёрстка остаются в `DocFactory`;
1885
+ * шаг 2 переносит их в чистые помощники. Хранилище и цепь
1886
+ * (`IChainDataSource`) — две реализации за одним фасадом; шаг 5 заменит
1887
+ * хранилище на порты контроллера, не меняя вызывающих.
1888
+ */
1889
+
1890
+ interface IUserAt {
1891
+ type: string;
1892
+ data: externalDataTypes;
1893
+ }
1894
+ interface IUdataFilter {
1895
+ coopname: string;
1896
+ username: string;
1897
+ key: Cooperative.Model.UdataKey;
1898
+ block_num?: number;
1899
+ }
1900
+ /** Отбор способа оплаты: поля записи плюс граница по блоку. */
1901
+ type IPaymentMethodFilter = Pick<PaymentData, 'username'> & Partial<Pick<PaymentData, 'method_id' | 'method_type' | 'is_default' | 'deleted'>> & {
1902
+ block_num?: number;
1903
+ };
1904
+ /** Подпись пайщика под заявлением на вступление, коллекция `signatures`. */
1905
+ interface ISignatureRecord {
1906
+ username: string;
1907
+ block_num: number;
1908
+ signature: string;
1909
+ }
1910
+ /** Голоса по решению совета, посчитанные по действиям цепи. */
1911
+ interface IDecisionVotes {
1912
+ votes_for: number;
1913
+ votes_against: number;
1914
+ }
1915
+ declare class FactorySources {
1916
+ private readonly storage;
1917
+ private readonly chainSource;
1918
+ private readonly docData;
1919
+ /**
1920
+ * Цепь передаётся функцией, а не значением: `Generator` проставляет
1921
+ * источник цепи фабрикам после их создания, и слой источников обязан видеть
1922
+ * тот источник, который задан на момент чтения.
1923
+ */
1924
+ constructor(storage: IFactoryStorage, chainSource: () => IChainDataSource);
1925
+ private get chain();
1926
+ /**
1927
+ * Текст, схема и переводы шаблона в редакции на блок.
1928
+ *
1929
+ * `SOURCE=local` — разработка и набор тестов: тексты берутся из реестра
1930
+ * пакета, а не из цепи. Раньше эту ветку держал каждый сборщик отдельно.
1931
+ */
1932
+ template<T>(scope: string, registry_id: number, block_num?: number): Promise<ITemplate<T>>;
1933
+ cooperative(username: string, block_num?: number): Promise<CooperativeData>;
1934
+ vars(coopname: string, block_num?: number): Promise<IVars>;
1935
+ /** Субъект любого вида: физлицо, организация или ИП. Ровно один из трёх. */
1936
+ user(username: string, block_num?: number): Promise<IUserAt>;
1937
+ organization(username: string, block_num?: number): Promise<ExternalOrganizationData>;
1938
+ /** Основной банковский счёт субъекта. */
1939
+ bankAccount(username: string, block_num?: number): Promise<IBankAccount>;
1940
+ /** Способ оплаты по отбору; нет записи — null, решает вызывающий. */
1941
+ paymentMethod(filter: IPaymentMethodFilter): Promise<PaymentData | null>;
1942
+ project(id: string, block_num?: number): Promise<InternalProjectData>;
1943
+ /** Запись udata по ключу; нет записи — null, решает вызывающий. */
1944
+ udata(filter: IUdataFilter): Promise<ExternalUdata | null>;
1945
+ /** Приватные данные документа по хэшу; запись могла быть удалена. */
1946
+ docDataByHash<P = Record<string, unknown>>(hash: string): Promise<P | null>;
1947
+ saveDocData<P extends Record<string, unknown>>(payload: P, registry_id: number): Promise<{
1948
+ hash: string;
1949
+ }>;
1950
+ /** Строка собрания из цепи на блок, без вычисляемых полей. */
1951
+ meetRow(coopname: string, meet_hash: string, block_num?: number): Promise<MeetContract.Tables.Meets.IOutput>;
1952
+ /** Вопросы собрания на блок, по порядку номеров. */
1953
+ meetQuestionRows(coopname: string, meet_id: number, block_num?: number): Promise<MeetContract.Tables.Questions.IOutput[]>;
1954
+ /**
1955
+ * Голоса по решению совета — из действий, а не из дельт таблиц: когда
1956
+ * голосование и утверждение с удалением записи проходят в одном блоке,
1957
+ * промежуточных дельт нет, и по таблице видно лишь удаление.
1958
+ */
1959
+ decisionVotes(coopname: string, decision_id: number): Promise<IDecisionVotes>;
1960
+ /**
1961
+ * Подпись пайщика (картинка) из заявления на вступление: сохраняется при
1962
+ * первой сборке и читается при пересборке на блок.
1963
+ */
1964
+ signature(username: string, block_num?: number): Promise<ISignatureRecord | null>;
1965
+ saveSignature(record: ISignatureRecord): Promise<void>;
1966
+ /** Действие утверждения решения советом; нет — undefined. */
1967
+ authorizedDecision(coopname: string, decision_id: number): Promise<SovietContract.Actions.Decisions.Authorize.IAuthorize | undefined>;
1968
+ }
1969
+
1970
+ /**
1971
+ * Сборка метаданных документа (шаг 2 фабрики v2).
1972
+ *
1973
+ * Мета — то, что подписывается вместе с документом и по чему он
1974
+ * пересобирается. Всё изменчивое (текущее время, высота цепи, версия
1975
+ * генератора) приходит зависимостями: функция не читает часы и сеть сама,
1976
+ * поэтому пересборка по готовой мете детерминирована, а набор тестов
1977
+ * подставляет постоянные значения.
1978
+ */
1979
+
1980
+ interface IMetaDeps {
1981
+ /** Версия генератора по умолчанию — версия пакета. */
1982
+ version: string;
1983
+ /** Момент создания новой сборки в ISO. */
1984
+ now: () => string;
1985
+ /** Высота цепи для новой сборки; при пересборке блок приходит метой. */
1986
+ currentBlock: () => Promise<number>;
1987
+ }
1988
+
1989
+ type InternalGetUserResult = IUserAt;
1990
+ declare abstract class DocFactory<T extends IGenerate> {
1991
+ abstract generateDocument(data: T, options?: IGenerationOptions): Promise<IGeneratedDocument>;
1992
+ storage: IFactoryStorage;
1993
+ /**
1994
+ * Все чтения данных — через слой источников (шаг 1 фабрики v2). Методы
1995
+ * `getX` ниже остались как фасад для сборщиков: их сигнатуры не менялись,
1996
+ * чтобы 92 действия переехали без правок.
1997
+ */
1998
+ protected readonly sources: FactorySources;
1999
+ /**
2000
+ * Откуда брать данные цепи. Проставляется Generator'ом сразу после создания
2001
+ * фабрик — так источник задаётся одним местом и не тянется через конструктор
2002
+ * каждой из десятков фабрик документов.
2003
+ */
2004
+ private dataSource?;
2005
+ constructor(storage: IFactoryStorage);
2006
+ setDataSource(dataSource: IChainDataSource): void;
2007
+ /**
2008
+ * Часы и версия генератора для меты новых документов. По умолчанию —
2009
+ * текущее время и версия пакета; набор тестов закрепляет их, чтобы эталон не
2010
+ * менялся от прогона к прогону. Дата в ДАННЫХ документа означает пересборку
2011
+ * по мете (версия сборщика из меты), поэтому закреплять её надо здесь.
2012
+ */
2013
+ private metaDeps;
2014
+ setMetaDeps(deps: Partial<IMetaDeps>): void;
2015
+ /**
2016
+ * Источник данных цепи. Отсутствует — это ошибка сборки приложения, а не
2017
+ * повод молча вернуть пустой документ: без данных цепи документ выйдет
2018
+ * без реквизитов кооператива и без текста шаблона.
2019
+ */
2020
+ protected get chain(): IChainDataSource;
2021
+ /**
2022
+ * Параллельно резолвит ВЗАИМНО НЕЗАВИСИМЫЕ источники данных документа.
2023
+ *
2024
+ * Локальные чтения (хранилище: getUser/getCooperative/getProject/getVars) дёшевы,
2025
+ * но сетевые (getTemplate → explorer get-tables ×2, getMeta → getCurrentBlock
2026
+ * → get_info) шли строго последовательно и складывались в заметную задержку
2027
+ * сборки. Здесь они стартуют разом через Promise.all.
2028
+ *
2029
+ * ВАЖНО: сюда передавать ТОЛЬКО задачи без взаимных зависимостей. Зависимые
2030
+ * вызывать ПОСЛЕ, на полученных результатах:
2031
+ * - getFullName(user.data) / getCommonUser(user) — зависят от user;
2032
+ * - getDecision(coop, …, meta.created_at) — зависит от coop и meta;
2033
+ * - getMeetQuestions(coopname, meet.id) / getGeneralMeetingDecision(meet) — от meet;
2034
+ * - getMeta({ title: project.title }) — если title выводится из project/coop.
2035
+ *
2036
+ * Ключи объекта-результата соответствуют ключам переданных задач.
2037
+ */
2038
+ protected resolveParallel<T extends Record<string, () => Promise<any>>>(tasks: T): Promise<{
2039
+ [K in keyof T]: Awaited<ReturnType<T[K]>>;
2040
+ }>;
2041
+ /**
2042
+ * Бланк документа: шаблон из цепи с реквизитами кооператива, а всё, что
2043
+ * известно только в момент события (пайщик, суммы, платёжные данные), —
2044
+ * прочерком. Совет утверждает форму документа, а не его экземпляр, и форма
2045
+ * любого документа реестра собирается одним и тем же путём — без данных,
2046
+ * которых у совета нет. Дата бланка тоже прочерк: форма не зависит от дня,
2047
+ * когда её открыли, и отпечаток её текста устойчив.
2048
+ */
2049
+ generateBlank(data: IGenerateBlank): Promise<IGeneratedBlank>;
2050
+ validate(combinedData: ICombinedData, schema: any): Promise<ValidateResult>;
2051
+ /**
2052
+ * Сохранить приватный payload документа и получить его hash.
2053
+ * Hash безопасно публикуется on-chain как `doc_data_hash`; сам payload
2054
+ * остаётся off-chain в коллекции `doc_private_data`.
2055
+ * См. раздел «Document Generation Pattern: doc_data» в архитектуре.
2056
+ */
2057
+ saveDocData<P extends Record<string, unknown>>(payload: P, registry_id: number): Promise<{
2058
+ hash: string;
2059
+ }>;
2060
+ /**
2061
+ * Прочитать приватный payload по `doc_data_hash`.
2062
+ * Возвращает null если запись удалена (документ остаётся верифицируемым
2063
+ * по хэшу подписи, но не регенерируется — graceful degradation).
2064
+ */
2065
+ getDocData<P = Record<string, unknown>>(hash: string): Promise<P | null>;
2066
+ /**
2067
+ * Помощник для конкретных фабрик: подгружает приватный payload по
2068
+ * `data.doc_data_hash` и возвращает его (или null, если хэш не задан /
2069
+ * запись удалена). Фабрика кладёт результат в `combinedData.doc_data` —
2070
+ * шаблон документа обращается к полям как `{{ doc_data.<field> }}`.
2071
+ */
2072
+ loadDocData<P = Record<string, unknown>>(data: {
2073
+ doc_data_hash?: string;
2074
+ }): Promise<P | null>;
2075
+ getOrganization(username: string, block_num?: number): Promise<ExternalOrganizationData>;
2076
+ getBankAccount(username: string, block_num?: number): Promise<IBankAccount>;
2077
+ /** Способ оплаты по отбору (номер способа, вид, основной); нет записи — null. */
2078
+ getPaymentMethod(filter: IPaymentMethodFilter): Promise<PaymentData | null>;
2079
+ /** Запись udata пайщика по ключу на блок; нет записи — null. */
2080
+ getUdata(filter: IUdataFilter): Promise<ExternalUdata | null>;
2081
+ getUser(username: string, block_num?: number): Promise<InternalGetUserResult>;
2082
+ getCooperative(username: string, block_num?: number): Promise<CooperativeData>;
2083
+ getProject(id: string, block_num?: number): Promise<InternalProjectData>;
2084
+ getVars(coopname: string, block_num?: number): Promise<IVars>;
2085
+ getGeneralMeetingDecision(meet: Interfaces.Meet.IMeet, created_at: string, timezone: string): Promise<Cooperative.Document.IDecisionData>;
2086
+ getDecision(coop: CooperativeData, coopname: string, decision_id: number, created_at: string, timezone: string): Promise<Cooperative.Document.IDecisionData>;
2087
+ getApprovedDecision(coop: CooperativeData, coopname: string, decision_id: number): Promise<Cooperative.Document.IDecisionData>;
2088
+ getMeet(coopname: string, meet_hash: string, block_num?: number): Promise<Cooperative.Model.IMeetExtended>;
2089
+ getMeetQuestions(coopname: string, meet_id: number, block_num?: number): Promise<Cooperative.Model.IQuestionExtended[]>;
2090
+ /**
2091
+ * Определяет как пользователь проголосовал по конкретному вопросу
2092
+ * @param question Вопрос голосования
2093
+ * @param username Имя пользователя
2094
+ * @returns 'for', 'against' или 'abstained'
2095
+ */
2096
+ getUserVote(question: MeetContract.Tables.Questions.IOutput, username: string): 'for' | 'against' | 'abstained';
2097
+ getTemplate<T>(scope: string, registry_id: number, block_num?: number): Promise<ITemplate<T>>;
2098
+ generatePDF(data: externalDataTypes | string, context: string, vars: ICombinedData, translation: ITranslations, meta: IMetaDocument, skip_save?: boolean, skip_pdf?: boolean): Promise<IGeneratedDocument>;
2099
+ getFullName(data: externalDataTypes | string): string;
2100
+ getFullParticipantName(data: externalDataTypes): string;
2101
+ getFirstLastMiddleName(data: externalDataTypes): Cooperative.Model.IFirstLastMiddleName;
2102
+ extractOrganizationName(input: ExternalOrganizationData): string;
2103
+ extractPersonalAbbreviatedName(input: ExternalIndividualData | ExternalEntrepreneurData): string;
2104
+ parseDateForAgreements(created_at: string, timezone: string): {
2105
+ day: string;
2106
+ month: string;
2107
+ year: string;
2108
+ };
2109
+ constructUHDContractNumber(contributor_hash: string): string;
2110
+ getCommonUser(input: InternalGetUserResult): Cooperative.Model.ICommonUser;
2111
+ getShortHash(hash: string, length?: number): string;
2112
+ saveDraft(document: IGeneratedDocument): Promise<void>;
2113
+ getMeta<T extends IMetaDocumentPartial>(input: T): Promise<IMetaDocument>;
2114
+ formatShare(value: string | number, precision?: number): string;
2115
+ /**
2116
+ * Сумма для текста документа — единственный способ писать деньги: два знака
2117
+ * после точки, остальное отсекается. Принимает сумму с символом валюты
2118
+ * («300.0000 RUB» → «300.00 RUB») и голое число («300.0000» → «300.00») —
2119
+ * второе нужно шаблонам, где валюта стоит в подписи колонки. Строку иного
2120
+ * вида (уже оформленную человеком) отдаёт как есть.
2121
+ */
2122
+ formatAsset(asset: string | number, precision?: number): string;
2123
+ formatPaymentDetails(paymentMethod: any, recipientName: string): string;
2124
+ }
2125
+
2126
+ /**
2127
+ * Документ требует утверждённой советом редакции, а реквизитов утверждения
2128
+ * (номер и дата протокола) в настройках кооператива нет. Текст — что сделать:
2129
+ * его узел отдаёт пользователю как есть, вместо общей «ошибки генерации».
2130
+ */
2131
+ declare class DocumentNotApprovedError extends Error {
2132
+ constructor(message: string);
2133
+ }
2134
+
2135
+ type dataTypes = 'individual' | 'entrepreneur' | 'organization' | 'paymentMethod' | 'vars' | 'project' | 'udata';
2136
+
2137
+ interface IGenerator {
2138
+ /** Хранилище фабрики — реализация порта (PostgreSQL узла либо память). */
2139
+ connect: (storage: IFactoryStorage) => Promise<void>;
2140
+ disconnect: () => Promise<void>;
2141
+ generate: (data: IGenerate, options?: IGenerationOptions) => Promise<IGeneratedDocument>;
2142
+ /** Бланк документа без данных события: поля, для которых нет данных, — прочерком. */
2143
+ generateBlank: (data: IGenerateBlank) => Promise<IGeneratedBlank>;
2144
+ getDocument: (filter: IDocumentFilter) => Promise<IGeneratedDocument>;
2145
+ /**
2146
+ * Сохранить приватные данные документа off-chain; возвращает hash для
2147
+ * публикации on-chain как `doc_data_hash`. См. раздел
2148
+ * «Document Generation Pattern: doc_data» в архитектуре.
2149
+ */
2150
+ saveDocData: <P extends Record<string, unknown>>(payload: P, registry_id: number) => Promise<{
2151
+ hash: string;
2152
+ }>;
2153
+ /** Прочитать приватный payload по `doc_data_hash`. null — если запись удалена. */
2154
+ getDocData: <P = Record<string, unknown>>(hash: string) => Promise<P | null>;
2155
+ constructCooperative: (username: string, block_num?: number) => Promise<CooperativeData | null>;
2156
+ save: ((type: 'individual', data: ExternalIndividualData) => Promise<{
2157
+ insertedId: string;
2158
+ }>) & ((type: 'entrepreneur', data: ExternalEntrepreneurData) => Promise<{
2159
+ insertedId: string;
2160
+ }>) & ((type: 'organization', data: ExternalOrganizationData) => Promise<{
2161
+ insertedId: string;
2162
+ }>) & ((type: 'paymentMethod', data: PaymentData) => Promise<{
2163
+ insertedId: string;
2164
+ }>) & ((type: 'vars', data: IVars) => Promise<{
2165
+ insertedId: string;
2166
+ }>) & ((type: 'project', data: ExternalProjectData) => Promise<{
2167
+ insertedId: string;
2168
+ }>) & ((type: 'udata', data: ExternalUdata) => Promise<{
2169
+ insertedId: string;
2170
+ }>);
2171
+ get: (type: dataTypes, filter: Where) => Promise<externalDataTypes | null>;
2172
+ del: (type: dataTypes, filter: Where) => Promise<{
2173
+ modifiedCount: number;
2174
+ }>;
2175
+ list: (type: dataTypes, filter: Where) => Promise<Cooperative.Document.IGetResponse<internalFilterTypes>>;
2176
+ getHistory: (type: 'individual' | 'entrepreneur' | 'organization' | 'paymentMethod' | 'vars' | 'project' | 'udata', filter: Where) => Promise<externalDataTypesArrays>;
2177
+ search: (query: string) => Promise<ISearchResult[]>;
2178
+ }
2179
+
2180
+ /** Для номера реестра нет фабрики документа — такой документ генератор не собирает. */
2181
+ declare class UnknownDocumentFactoryError extends Error {
2182
+ readonly registry_id: number;
2183
+ constructor(registry_id: number);
2184
+ }
2185
+ /**
2186
+ * Нужной версии сборщика на узле нет: мета документа называет версию, которой
2187
+ * в пакете фабрики нет, или редакция шаблона объявляет `major` без сборщика.
2188
+ */
2189
+ declare class UnknownBuilderVersionError extends Error {
2190
+ readonly registry_id: number;
2191
+ readonly builder: string;
2192
+ constructor(registry_id: number, builder: string);
2193
+ }
2194
+ declare class Generator implements IGenerator {
2195
+ /**
2196
+ * Откуда брать данные цепи. Не задан — читаем прямо из цепи по адресу из
2197
+ * окружения: так генерация работает у инструментов развёртывания, у которых
2198
+ * своей базы нет. Узел передаёт сюда собственную реализацию — с историей
2199
+ * версий шаблонов и историей действий, которых у цепи не спросить.
2200
+ */
2201
+ private givenDataSource?;
2202
+ private chainDataSource?;
2203
+ constructor(dataSource?: IChainDataSource);
2204
+ /**
2205
+ * Адрес цепи спрашиваем только тогда, когда за данными действительно идут.
2206
+ * Генератор создают и там, где до цепи дело не доходит: сборка шаблонов из
2207
+ * локальных исходников, поиск по хранилищу, набор тестов документов. Пока
2208
+ * источник не передали, фабрики получают вот этот переходник — он поднимет
2209
+ * чтение из цепи при первом же запросе, а до тех пор переменная окружения не
2210
+ * нужна.
2211
+ */
2212
+ private get dataSource();
2213
+ private chainSource;
2214
+ private builders;
2215
+ private metaDeps;
2216
+ /** Закрепить часы и версию генератора в мете новых документов (набор тестов). */
2217
+ setMetaDeps(deps: Partial<IMetaDeps>): void;
2218
+ storage: IFactoryStorage;
2219
+ private searchService;
2220
+ private docDataService;
2221
+ connect(storage: IFactoryStorage): Promise<void>;
2222
+ disconnect(): Promise<void>;
2223
+ /**
2224
+ * Сборщик вида документа нужной версии; без версии — последняя `1.x`
2225
+ * (для проверок и наборов тестов). Неизвестный вид или версия — ошибка.
2226
+ */
2227
+ factoryFor(registry_id: number, version?: string): DocFactory<IGenerate>;
2228
+ /** Версии сборщика вида документа, известные узлу. */
2229
+ builderVersions(registry_id: number): BuilderVersion[];
2230
+ /**
2231
+ * Какой версией собирать (шаг 7, решение 6 PRD):
2232
+ * - мета документа называет версию (`builder`) — ровно её: пересборка
2233
+ * подписанного документа и сборка заданной версией;
2234
+ * - пересборка документа до оси версий (дата есть, версии нет) — `1.0`;
2235
+ * - новая сборка — последний `minor` того `major`, который объявляет
2236
+ * действующая редакция шаблона ключом `x-builder` (нет ключа — `1`).
2237
+ */
2238
+ private chooseVersion;
2239
+ generate(data: IGenerate, options?: IGenerationOptions): Promise<IGeneratedDocument>;
2240
+ generateBlank(data: IGenerateBlank): Promise<IGeneratedBlank>;
2241
+ getDocument(filter: IDocumentFilter): Promise<IGeneratedDocument>;
2242
+ /** Сохранённые документы узла порцией — для аудита пересборки. */
2243
+ listDocuments(page: DocumentPage): Promise<Array<Pick<StoredDocument, 'hash' | 'meta' | 'html'>>>;
2244
+ countDocuments(registry_id?: number): Promise<number>;
2245
+ saveDocData<P extends Record<string, unknown>>(payload: P, registry_id: number): Promise<{
2246
+ hash: string;
2247
+ }>;
2248
+ getDocData<P = Record<string, unknown>>(hash: string): Promise<P | null>;
2249
+ save(type: 'individual', data: ExternalIndividualData): Promise<{
2250
+ insertedId: string;
2251
+ }>;
2252
+ save(type: 'entrepreneur', data: ExternalEntrepreneurData): Promise<{
2253
+ insertedId: string;
2254
+ }>;
2255
+ save(type: 'organization', data: ExternalOrganizationData): Promise<{
2256
+ insertedId: string;
2257
+ }>;
2258
+ save(type: 'paymentMethod', data: PaymentData): Promise<{
2259
+ insertedId: string;
2260
+ }>;
2261
+ save(type: 'vars', data: IVars): Promise<{
2262
+ insertedId: string;
2263
+ }>;
2264
+ save(type: 'project', data: ExternalProjectData): Promise<{
2265
+ insertedId: string;
2266
+ }>;
2267
+ save(type: 'udata', data: ExternalUdata): Promise<{
2268
+ insertedId: string;
2269
+ }>;
2270
+ update(type: 'vars', filter: Where, data: Partial<IVars>): Promise<{
2271
+ modifiedCount: number;
2272
+ }>;
2273
+ del(type: dataTypes, filter: Where): Promise<{
2274
+ modifiedCount: number;
2275
+ }>;
2276
+ get(type: dataTypes, filter: Where): Promise<externalDataTypes | null>;
2277
+ list(type: dataTypes, filter: Where): Promise<Cooperative.Document.IGetResponse<externalDataTypes>>;
2278
+ getHistory(type: 'individual' | 'entrepreneur' | 'organization' | 'paymentMethod' | 'vars' | 'project' | 'udata', filter: Where): Promise<externalDataTypesArrays>;
2279
+ getModel(type: 'individual' | 'entrepreneur' | 'organization' | 'paymentMethod' | 'vars' | 'project' | 'udata', data?: externalDataTypes): Individual | Entrepreneur | Organization | PaymentMethod | Vars | Project | Udata;
2280
+ constructCooperative(username: string, block_num?: number): Promise<CooperativeData | null>;
2281
+ search(query: string): Promise<ISearchResult[]>;
2282
+ }
2283
+
2284
+ export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, BankAccountSchema, BillingConversionStatement, BlagorostAgreement, BlagorostOffer, BlagorostProgramTemplate, BranchEstablishmentPetition, BranchEstablishmentSovietDecision, BranchFinancialAidProtocol, BranchFinancialAidStatement, BranchMeetingBallot, BranchMeetingDecision, BranchMeetingProposal, BranchTrustedLiabilityAgreement, BranchTrustedPowerOfAttorney, BranchTrustedStatement, BranchTrusteeLiabilityAgreement, BranchTrusteePowerOfAttorney, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, ChainRpcDataSource, CommonUserSchema, ComponentGenerationContract, ConvertToAxonStatement, CoopenomicsAgreement, CooperativeSchema, DEFAULT_TEMPLATE_VERSION, version as DOCS_FACTORY_VERSION, DecisionOfParticipantApplication, DecisionOfParticipantExit, DocumentNotApprovedError, EducationConvertStatement, EducationGuaranteeDecision, EducationGuaranteeStatement, EducationParentOffer, EducationParticipationContract, EducationProgramTemplate, EducationRidAct, EducationRidDecision, EducationRidStatement, EducationRidStorageAct, EducationShareWithdrawStatement, EducationTeacherOffer, ExpenseDecision, ExpenseItemSchema, ExpenseProposalDecision, ExpenseProposalDecisionBodySchema, ExpenseProposalHeaderSchema, ExpenseProposalStatement, ExpenseRenderItemSchema, ExpenseStatement, FACTORY_STORAGE_DDL, FIRST_BUILDER_VERSION, FreeDecision, GenerationContract, GenerationConvertStatement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, Generator, GeneratorOffer, GeneratorProgramTemplate, GetLoanDecision, GetLoanStatement, InitProjectDecision, InitProjectStatement, MarketplaceAplReception, MarketplaceConvertStatement, MarketplaceOffer, MarketplaceProgramTemplate, MarketplaceReturnCancelDecision, MarketplaceReturnCancelStatement, MarketplaceReturnStatement, MarketplaceShareReturnAct, MarketplaceShareReturnDecision, MarketplaceShareReturnStatement, MarketplaceTransportNote, MarketplaceWriteoffProtocol, MarketplaceWriteoffServiceMemo, MarketplaceWriteoffStatement, MeetPointSchema, MeetSchema, MemoryFactoryStorage, ParticipantApplication, ParticipantExitApplication, PostgresFactoryStorage, PrivacyPolicy, ProgramAgreementsAnnulmentStatement, ProjectFreeDecision, ProjectGenerationContract, QuestionExtendedSchema, QuestionSchema, RECORD_COLLECTIONS, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, StorageAgreement, TemplateVersions, UnknownBuilderVersionError, UnknownDocumentFactoryError, UserAgreement, VarsSchema, WalletAgreement, X_BUILDER_KEY, decisionSchema, documentMetaKey, entrepreneurSchema, formatCreatedAt, getTemplateVersion, individualSchema, isBuilderVersion, isIsoCreatedAt, isLegacyCreatedAt, latestMinorOf, matchesWhere, nowCreatedAt, organizationSchema, parseBuilderVersion, parseCreatedAt, paymentMethodSchema, splitCreatedAt, templateBuilderMajor, udataSchema };
2285
+ export type { BuilderVersion, Currency, DocDataRecord, DocumentPage, DocumentWhere, FieldCondition, IActionQuery, IBCState, IBankAccount, IBuilderVersionParts, IChainDataSource, ICombinedData, CooperativeData as ICooperativeData, IDocumentFilter, ExternalEntrepreneurData as IEntrepreneurData, IExpenseItem, IExpenseProposalDecisionBody, IExpenseProposalHeader, IExpenseRenderItem, ExternalProjectData as IExternalProjectData, IFactoryStorage, IFilterActions, IFilterDeltas, IGenerate, IGenerateAgreement, IGenerateBlank, IGenerateJoinCoop, IGenerateJoinCoopDecision, IGeneratedBlank, IGeneratedDocument, IGenerationOptions, IGenerator, ExternalIndividualData as IIndividualData, IMetaDocument, IMetaDocumentPartial, ExternalOrganizationData as IOrganizationData, IPaymentData, ISearchResult, ITableQuery, ITemplate, ITranslations, ExternalUdata as IUdata, LangType, NestedRecord, Numbers, RecordCollection, StoredDocument, StoredRecord, Where, dataTypes, externalDataTypes, externalDataTypesArrays, internalFilterTypes };