@coopenomics/factory 2.2.7 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +793 -223
- package/dist/index.d.cts +166 -91
- package/dist/index.d.mts +166 -91
- package/dist/index.d.ts +166 -91
- package/dist/index.mjs +788 -224
- package/package.json +3 -4
package/dist/index.d.mts
CHANGED
|
@@ -2,184 +2,244 @@ import { JSONSchemaType } from 'ajv';
|
|
|
2
2
|
import { Cooperative } from 'cooptypes';
|
|
3
3
|
import { InsertOneResult, Filter, UpdateResult, Document, MongoClient, Db, Collection } from 'mongodb';
|
|
4
4
|
|
|
5
|
-
declare const registry_id$
|
|
6
|
-
type Action$
|
|
7
|
-
type Model$
|
|
5
|
+
declare const registry_id$l = 1;
|
|
6
|
+
type Action$l = Cooperative.Registry.WalletAgreement.Action;
|
|
7
|
+
type Model$l = Cooperative.Registry.WalletAgreement.Model;
|
|
8
|
+
declare const Schema$l: JSONSchemaType<Model$l>;
|
|
9
|
+
declare const Template$l: ITemplate<Model$l>;
|
|
10
|
+
|
|
11
|
+
declare namespace WalletAgreement {
|
|
12
|
+
export { type Action$l as Action, type Model$l as Model, Schema$l as Schema, Template$l as Template, registry_id$l as registry_id };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const registry_id$k = 2;
|
|
16
|
+
type Action$k = Cooperative.Registry.RegulationElectronicSignature.Action;
|
|
17
|
+
type Model$k = Cooperative.Registry.RegulationElectronicSignature.Model;
|
|
18
|
+
declare const Schema$k: JSONSchemaType<Model$k>;
|
|
19
|
+
declare const Template$k: ITemplate<Model$k>;
|
|
20
|
+
|
|
21
|
+
declare namespace RegulationElectronicSignaturet {
|
|
22
|
+
export { type Action$k as Action, type Model$k as Model, Schema$k as Schema, Template$k as Template, registry_id$k as registry_id };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const registry_id$j = 3;
|
|
26
|
+
type Action$j = Cooperative.Registry.PrivacyPolicy.Action;
|
|
27
|
+
type Model$j = Cooperative.Registry.PrivacyPolicy.Model;
|
|
28
|
+
declare const Schema$j: JSONSchemaType<Model$j>;
|
|
29
|
+
declare const Template$j: ITemplate<Model$j>;
|
|
30
|
+
|
|
31
|
+
declare namespace PrivacyPolicy {
|
|
32
|
+
export { type Action$j as Action, type Model$j as Model, Schema$j as Schema, Template$j as Template, registry_id$j as registry_id };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare const registry_id$i = 4;
|
|
36
|
+
type Action$i = Cooperative.Registry.UserAgreement.Action;
|
|
37
|
+
type Model$i = Cooperative.Registry.UserAgreement.Model;
|
|
38
|
+
declare const Schema$i: JSONSchemaType<Model$i>;
|
|
39
|
+
declare const Template$i: ITemplate<Model$i>;
|
|
40
|
+
|
|
41
|
+
declare namespace UserAgreement {
|
|
42
|
+
export { type Action$i as Action, type Model$i as Model, Schema$i as Schema, Template$i as Template, registry_id$i as registry_id };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const registry_id$h = 50;
|
|
46
|
+
type Action$h = Cooperative.Registry.CoopenomicsAgreement.Action;
|
|
47
|
+
type Model$h = Cooperative.Registry.CoopenomicsAgreement.Model;
|
|
48
|
+
declare const Schema$h: JSONSchemaType<Model$h>;
|
|
49
|
+
declare const Template$h: ITemplate<Model$h>;
|
|
50
|
+
|
|
51
|
+
declare namespace CoopenomicsAgreement {
|
|
52
|
+
export { type Action$h as Action, type Model$h as Model, Schema$h as Schema, Template$h as Template, registry_id$h as registry_id };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare const registry_id$g = 100;
|
|
56
|
+
/**
|
|
57
|
+
* Интерфейс генерации заявления на вступление в кооператив
|
|
58
|
+
*/
|
|
59
|
+
type Action$g = Cooperative.Registry.ParticipantApplication.Action;
|
|
60
|
+
type Model$g = Cooperative.Registry.ParticipantApplication.Model;
|
|
61
|
+
declare const Schema$g: JSONSchemaType<Model$g>;
|
|
62
|
+
declare const Template$g: ITemplate<Model$g>;
|
|
63
|
+
|
|
64
|
+
declare namespace ParticipantApplication {
|
|
65
|
+
export { type Action$g as Action, type Model$g as Model, Schema$g as Schema, Template$g as Template, registry_id$g as registry_id };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const registry_id$f = 501;
|
|
69
|
+
/**
|
|
70
|
+
* Интерфейс генерации решения совета
|
|
71
|
+
*/
|
|
72
|
+
type Action$f = Cooperative.Registry.DecisionOfParticipantApplication.Action;
|
|
73
|
+
type Model$f = Cooperative.Registry.DecisionOfParticipantApplication.Model;
|
|
8
74
|
declare const Schema$f: JSONSchemaType<Model$f>;
|
|
9
75
|
declare const Template$f: ITemplate<Model$f>;
|
|
10
76
|
|
|
11
|
-
declare namespace
|
|
77
|
+
declare namespace DecisionOfParticipantApplication {
|
|
12
78
|
export { type Action$f as Action, type Model$f as Model, Schema$f as Schema, Template$f as Template, registry_id$f as registry_id };
|
|
13
79
|
}
|
|
14
80
|
|
|
15
|
-
declare const registry_id$e =
|
|
16
|
-
|
|
17
|
-
|
|
81
|
+
declare const registry_id$e = 101;
|
|
82
|
+
/**
|
|
83
|
+
* Интерфейс генерации заявления на вступление в кооператив
|
|
84
|
+
*/
|
|
85
|
+
type Action$e = Cooperative.Registry.SelectBranchStatement.Action;
|
|
86
|
+
type Model$e = Cooperative.Registry.SelectBranchStatement.Model;
|
|
18
87
|
declare const Schema$e: JSONSchemaType<Model$e>;
|
|
19
88
|
declare const Template$e: ITemplate<Model$e>;
|
|
20
89
|
|
|
21
|
-
declare namespace
|
|
90
|
+
declare namespace SelectBranchStatement {
|
|
22
91
|
export { type Action$e as Action, type Model$e as Model, Schema$e as Schema, Template$e as Template, registry_id$e as registry_id };
|
|
23
92
|
}
|
|
24
93
|
|
|
25
|
-
declare const registry_id$d =
|
|
26
|
-
|
|
27
|
-
|
|
94
|
+
declare const registry_id$d = 599;
|
|
95
|
+
/**
|
|
96
|
+
* Интерфейс генерации решения совета
|
|
97
|
+
*/
|
|
98
|
+
type Action$d = Cooperative.Registry.ProjectFreeDecision.Action;
|
|
99
|
+
type Model$d = Cooperative.Registry.ProjectFreeDecision.Model;
|
|
28
100
|
declare const Schema$d: JSONSchemaType<Model$d>;
|
|
29
101
|
declare const Template$d: ITemplate<Model$d>;
|
|
30
102
|
|
|
31
|
-
declare namespace
|
|
103
|
+
declare namespace ProjectFreeDecision {
|
|
32
104
|
export { type Action$d as Action, type Model$d as Model, Schema$d as Schema, Template$d as Template, registry_id$d as registry_id };
|
|
33
105
|
}
|
|
34
106
|
|
|
35
|
-
declare const registry_id$c =
|
|
36
|
-
|
|
37
|
-
|
|
107
|
+
declare const registry_id$c = 600;
|
|
108
|
+
/**
|
|
109
|
+
* Интерфейс генерации решения совета
|
|
110
|
+
*/
|
|
111
|
+
type Action$c = Cooperative.Registry.FreeDecision.Action;
|
|
112
|
+
type Model$c = Cooperative.Registry.FreeDecision.Model;
|
|
38
113
|
declare const Schema$c: JSONSchemaType<Model$c>;
|
|
39
114
|
declare const Template$c: ITemplate<Model$c>;
|
|
40
115
|
|
|
41
|
-
declare namespace
|
|
116
|
+
declare namespace FreeDecision {
|
|
42
117
|
export { type Action$c as Action, type Model$c as Model, Schema$c as Schema, Template$c as Template, registry_id$c as registry_id };
|
|
43
118
|
}
|
|
44
119
|
|
|
45
|
-
declare const registry_id$b =
|
|
46
|
-
type Action$b = Cooperative.Registry.
|
|
47
|
-
type Model$b = Cooperative.Registry.
|
|
120
|
+
declare const registry_id$b = 700;
|
|
121
|
+
type Action$b = Cooperative.Registry.AssetContributionStatement.Action;
|
|
122
|
+
type Model$b = Cooperative.Registry.AssetContributionStatement.Model;
|
|
48
123
|
declare const Schema$b: JSONSchemaType<Model$b>;
|
|
49
124
|
declare const Template$b: ITemplate<Model$b>;
|
|
50
125
|
|
|
51
|
-
declare namespace
|
|
126
|
+
declare namespace AssetContributionStatement {
|
|
52
127
|
export { type Action$b as Action, type Model$b as Model, Schema$b as Schema, Template$b as Template, registry_id$b as registry_id };
|
|
53
128
|
}
|
|
54
129
|
|
|
55
|
-
declare const registry_id$a =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
*/
|
|
59
|
-
type Action$a = Cooperative.Registry.ParticipantApplication.Action;
|
|
60
|
-
type Model$a = Cooperative.Registry.ParticipantApplication.Model;
|
|
130
|
+
declare const registry_id$a = 800;
|
|
131
|
+
type Action$a = Cooperative.Registry.ReturnByAssetStatement.Action;
|
|
132
|
+
type Model$a = Cooperative.Registry.ReturnByAssetStatement.Model;
|
|
61
133
|
declare const Schema$a: JSONSchemaType<Model$a>;
|
|
62
134
|
declare const Template$a: ITemplate<Model$a>;
|
|
63
135
|
|
|
64
|
-
declare namespace
|
|
136
|
+
declare namespace ReturnByAssetStatement {
|
|
65
137
|
export { type Action$a as Action, type Model$a as Model, Schema$a as Schema, Template$a as Template, registry_id$a as registry_id };
|
|
66
138
|
}
|
|
67
139
|
|
|
68
|
-
declare const registry_id$9 =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*/
|
|
72
|
-
type Action$9 = Cooperative.Registry.DecisionOfParticipantApplication.Action;
|
|
73
|
-
type Model$9 = Cooperative.Registry.DecisionOfParticipantApplication.Model;
|
|
140
|
+
declare const registry_id$9 = 701;
|
|
141
|
+
type Action$9 = Cooperative.Registry.AssetContributionDecision.Action;
|
|
142
|
+
type Model$9 = Cooperative.Registry.AssetContributionDecision.Model;
|
|
74
143
|
declare const Schema$9: JSONSchemaType<Model$9>;
|
|
75
144
|
declare const Template$9: ITemplate<Model$9>;
|
|
76
145
|
|
|
77
|
-
declare namespace
|
|
146
|
+
declare namespace AssetContributionDecision {
|
|
78
147
|
export { type Action$9 as Action, type Model$9 as Model, Schema$9 as Schema, Template$9 as Template, registry_id$9 as registry_id };
|
|
79
148
|
}
|
|
80
149
|
|
|
81
|
-
declare const registry_id$8 =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*/
|
|
85
|
-
type Action$8 = Cooperative.Registry.SelectBranchStatement.Action;
|
|
86
|
-
type Model$8 = Cooperative.Registry.SelectBranchStatement.Model;
|
|
150
|
+
declare const registry_id$8 = 801;
|
|
151
|
+
type Action$8 = Cooperative.Registry.ReturnByAssetDecision.Action;
|
|
152
|
+
type Model$8 = Cooperative.Registry.ReturnByAssetDecision.Model;
|
|
87
153
|
declare const Schema$8: JSONSchemaType<Model$8>;
|
|
88
154
|
declare const Template$8: ITemplate<Model$8>;
|
|
89
155
|
|
|
90
|
-
declare namespace
|
|
156
|
+
declare namespace ReturnByAssetDecision {
|
|
91
157
|
export { type Action$8 as Action, type Model$8 as Model, Schema$8 as Schema, Template$8 as Template, registry_id$8 as registry_id };
|
|
92
158
|
}
|
|
93
159
|
|
|
94
|
-
declare const registry_id$7 =
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
*/
|
|
98
|
-
type Action$7 = Cooperative.Registry.ProjectFreeDecision.Action;
|
|
99
|
-
type Model$7 = Cooperative.Registry.ProjectFreeDecision.Model;
|
|
160
|
+
declare const registry_id$7 = 702;
|
|
161
|
+
type Action$7 = Cooperative.Registry.AssetContributionAct.Action;
|
|
162
|
+
type Model$7 = Cooperative.Registry.AssetContributionAct.Model;
|
|
100
163
|
declare const Schema$7: JSONSchemaType<Model$7>;
|
|
101
164
|
declare const Template$7: ITemplate<Model$7>;
|
|
102
165
|
|
|
103
|
-
declare namespace
|
|
166
|
+
declare namespace AssetContributionAct {
|
|
104
167
|
export { type Action$7 as Action, type Model$7 as Model, Schema$7 as Schema, Template$7 as Template, registry_id$7 as registry_id };
|
|
105
168
|
}
|
|
106
169
|
|
|
107
|
-
declare const registry_id$6 =
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
*/
|
|
111
|
-
type Action$6 = Cooperative.Registry.FreeDecision.Action;
|
|
112
|
-
type Model$6 = Cooperative.Registry.FreeDecision.Model;
|
|
170
|
+
declare const registry_id$6 = 802;
|
|
171
|
+
type Action$6 = Cooperative.Registry.ReturnByAssetAct.Action;
|
|
172
|
+
type Model$6 = Cooperative.Registry.ReturnByAssetAct.Model;
|
|
113
173
|
declare const Schema$6: JSONSchemaType<Model$6>;
|
|
114
174
|
declare const Template$6: ITemplate<Model$6>;
|
|
115
175
|
|
|
116
|
-
declare namespace
|
|
176
|
+
declare namespace ReturnByAssetAct {
|
|
117
177
|
export { type Action$6 as Action, type Model$6 as Model, Schema$6 as Schema, Template$6 as Template, registry_id$6 as registry_id };
|
|
118
178
|
}
|
|
119
179
|
|
|
120
|
-
declare const registry_id$5 =
|
|
121
|
-
type Action$5 = Cooperative.Registry.
|
|
122
|
-
type Model$5 = Cooperative.Registry.
|
|
180
|
+
declare const registry_id$5 = 1000;
|
|
181
|
+
type Action$5 = Cooperative.Registry.InvestmentAgreement.Action;
|
|
182
|
+
type Model$5 = Cooperative.Registry.InvestmentAgreement.Model;
|
|
123
183
|
declare const Schema$5: JSONSchemaType<Model$5>;
|
|
124
184
|
declare const Template$5: ITemplate<Model$5>;
|
|
125
185
|
|
|
126
|
-
declare namespace
|
|
186
|
+
declare namespace InvestmentAgreement {
|
|
127
187
|
export { type Action$5 as Action, type Model$5 as Model, Schema$5 as Schema, Template$5 as Template, registry_id$5 as registry_id };
|
|
128
188
|
}
|
|
129
189
|
|
|
130
|
-
declare const registry_id$4 =
|
|
131
|
-
type Action$4 = Cooperative.Registry.
|
|
132
|
-
type Model$4 = Cooperative.Registry.
|
|
190
|
+
declare const registry_id$4 = 1001;
|
|
191
|
+
type Action$4 = Cooperative.Registry.InvestByResultStatement.Action;
|
|
192
|
+
type Model$4 = Cooperative.Registry.InvestByResultStatement.Model;
|
|
133
193
|
declare const Schema$4: JSONSchemaType<Model$4>;
|
|
134
194
|
declare const Template$4: ITemplate<Model$4>;
|
|
135
195
|
|
|
136
|
-
declare namespace
|
|
196
|
+
declare namespace InvestByResultStatement {
|
|
137
197
|
export { type Action$4 as Action, type Model$4 as Model, Schema$4 as Schema, Template$4 as Template, registry_id$4 as registry_id };
|
|
138
198
|
}
|
|
139
199
|
|
|
140
|
-
declare const registry_id$3 =
|
|
141
|
-
type Action$3 = Cooperative.Registry.
|
|
142
|
-
type Model$3 = Cooperative.Registry.
|
|
200
|
+
declare const registry_id$3 = 1002;
|
|
201
|
+
type Action$3 = Cooperative.Registry.InvestByResultAct.Action;
|
|
202
|
+
type Model$3 = Cooperative.Registry.InvestByResultAct.Model;
|
|
143
203
|
declare const Schema$3: JSONSchemaType<Model$3>;
|
|
144
204
|
declare const Template$3: ITemplate<Model$3>;
|
|
145
205
|
|
|
146
|
-
declare namespace
|
|
206
|
+
declare namespace InvestByResultAct {
|
|
147
207
|
export { type Action$3 as Action, type Model$3 as Model, Schema$3 as Schema, Template$3 as Template, registry_id$3 as registry_id };
|
|
148
208
|
}
|
|
149
209
|
|
|
150
|
-
declare const registry_id$2 =
|
|
151
|
-
type Action$2 = Cooperative.Registry.
|
|
152
|
-
type Model$2 = Cooperative.Registry.
|
|
210
|
+
declare const registry_id$2 = 1005;
|
|
211
|
+
type Action$2 = Cooperative.Registry.InvestByMoneyStatement.Action;
|
|
212
|
+
type Model$2 = Cooperative.Registry.InvestByMoneyStatement.Model;
|
|
153
213
|
declare const Schema$2: JSONSchemaType<Model$2>;
|
|
154
214
|
declare const Template$2: ITemplate<Model$2>;
|
|
155
215
|
|
|
156
|
-
declare namespace
|
|
216
|
+
declare namespace InvestByMoneyStatement {
|
|
157
217
|
export { type Action$2 as Action, type Model$2 as Model, Schema$2 as Schema, Template$2 as Template, registry_id$2 as registry_id };
|
|
158
218
|
}
|
|
159
219
|
|
|
160
|
-
declare const registry_id$1 =
|
|
161
|
-
type Action$1 = Cooperative.Registry.
|
|
162
|
-
type Model$1 = Cooperative.Registry.
|
|
220
|
+
declare const registry_id$1 = 1010;
|
|
221
|
+
type Action$1 = Cooperative.Registry.InvestMembershipConvertation.Action;
|
|
222
|
+
type Model$1 = Cooperative.Registry.InvestMembershipConvertation.Model;
|
|
163
223
|
declare const Schema$1: JSONSchemaType<Model$1>;
|
|
164
224
|
declare const Template$1: ITemplate<Model$1>;
|
|
165
225
|
|
|
166
|
-
declare namespace
|
|
226
|
+
declare namespace InvestMembershipConvertation {
|
|
167
227
|
export { type Action$1 as Action, type Model$1 as Model, Schema$1 as Schema, Template$1 as Template, registry_id$1 as registry_id };
|
|
168
228
|
}
|
|
169
229
|
|
|
170
|
-
declare const registry_id:
|
|
171
|
-
type Action = Cooperative.Registry.
|
|
172
|
-
type Model = Cooperative.Registry.
|
|
230
|
+
declare const registry_id: 699;
|
|
231
|
+
type Action = Cooperative.Registry.SosediAgreement.Action;
|
|
232
|
+
type Model = Cooperative.Registry.SosediAgreement.Model;
|
|
173
233
|
declare const Schema: JSONSchemaType<Model>;
|
|
174
234
|
declare const Template: ITemplate<Model>;
|
|
175
235
|
|
|
176
|
-
type
|
|
177
|
-
type
|
|
178
|
-
declare const
|
|
179
|
-
declare const
|
|
180
|
-
declare const
|
|
181
|
-
declare namespace
|
|
182
|
-
export { type
|
|
236
|
+
type SosediAgreement_Action = Action;
|
|
237
|
+
type SosediAgreement_Model = Model;
|
|
238
|
+
declare const SosediAgreement_Schema: typeof Schema;
|
|
239
|
+
declare const SosediAgreement_Template: typeof Template;
|
|
240
|
+
declare const SosediAgreement_registry_id: typeof registry_id;
|
|
241
|
+
declare namespace SosediAgreement {
|
|
242
|
+
export { type SosediAgreement_Action as Action, type SosediAgreement_Model as Model, SosediAgreement_Schema as Schema, SosediAgreement_Template as Template, SosediAgreement_registry_id as registry_id };
|
|
183
243
|
}
|
|
184
244
|
|
|
185
245
|
declare const Registry: {
|
|
@@ -193,12 +253,18 @@ declare const Registry: {
|
|
|
193
253
|
501: typeof DecisionOfParticipantApplication;
|
|
194
254
|
599: typeof ProjectFreeDecision;
|
|
195
255
|
600: typeof FreeDecision;
|
|
256
|
+
699: typeof SosediAgreement;
|
|
196
257
|
700: typeof AssetContributionStatement;
|
|
197
258
|
701: typeof AssetContributionDecision;
|
|
198
259
|
702: typeof AssetContributionAct;
|
|
199
260
|
800: typeof ReturnByAssetStatement;
|
|
200
261
|
801: typeof ReturnByAssetDecision;
|
|
201
262
|
802: typeof ReturnByAssetAct;
|
|
263
|
+
1000: typeof InvestmentAgreement;
|
|
264
|
+
1001: typeof InvestByResultStatement;
|
|
265
|
+
1002: typeof InvestByResultAct;
|
|
266
|
+
1005: typeof InvestByMoneyStatement;
|
|
267
|
+
1010: typeof InvestMembershipConvertation;
|
|
202
268
|
};
|
|
203
269
|
|
|
204
270
|
interface ValidateResult {
|
|
@@ -402,6 +468,10 @@ declare const CooperativeSchema: JSONSchemaType<CooperativeData>;
|
|
|
402
468
|
|
|
403
469
|
declare const VarsSchema: JSONSchemaType<IVars>;
|
|
404
470
|
|
|
471
|
+
interface InternalGetUserResult {
|
|
472
|
+
type: string;
|
|
473
|
+
data: externalDataTypes;
|
|
474
|
+
}
|
|
405
475
|
declare abstract class DocFactory<T extends IGenerate> {
|
|
406
476
|
abstract generateDocument(data: T, options?: IGenerationOptions): Promise<IGeneratedDocument>;
|
|
407
477
|
storage: MongoDBConnector;
|
|
@@ -409,10 +479,7 @@ declare abstract class DocFactory<T extends IGenerate> {
|
|
|
409
479
|
validate(combinedData: ICombinedData, schema: any): Promise<ValidateResult>;
|
|
410
480
|
getOrganization(username: string, block_num?: number): Promise<ExternalOrganizationData>;
|
|
411
481
|
getBankAccount(username: string, block_num?: number): Promise<IBankAccount>;
|
|
412
|
-
getUser(username: string, block_num?: number): Promise<
|
|
413
|
-
type: string;
|
|
414
|
-
data: externalDataTypes;
|
|
415
|
-
}>;
|
|
482
|
+
getUser(username: string, block_num?: number): Promise<InternalGetUserResult>;
|
|
416
483
|
getCooperative(username: string, block_num?: number): Promise<CooperativeData>;
|
|
417
484
|
getProject(id: string, block_num?: number): Promise<InternalProjectData>;
|
|
418
485
|
getVars(coopname: string, block_num?: number): Promise<IVars>;
|
|
@@ -424,7 +491,15 @@ declare abstract class DocFactory<T extends IGenerate> {
|
|
|
424
491
|
getFullName(data: externalDataTypes | string): string;
|
|
425
492
|
getFullParticipantName(data: externalDataTypes): string;
|
|
426
493
|
getFirstLastMiddleName(data: externalDataTypes): Cooperative.Model.IFirstLastMiddleName;
|
|
427
|
-
|
|
494
|
+
extractOrganizationName(input: ExternalOrganizationData): string;
|
|
495
|
+
extractPersonalAbbreviatedName(input: ExternalIndividualData | ExternalEntrepreneurData): string;
|
|
496
|
+
parseDateForAgreements(created_at: string, timezone: string): {
|
|
497
|
+
day: string;
|
|
498
|
+
month: string;
|
|
499
|
+
year: string;
|
|
500
|
+
};
|
|
501
|
+
constructUHDContract(created_at: string): Cooperative.Document.IUHDContract;
|
|
502
|
+
getCommonUser(input: InternalGetUserResult): Cooperative.Model.ICommonUser;
|
|
428
503
|
saveDraft(document: IGeneratedDocument): Promise<void>;
|
|
429
504
|
getMeta<T extends IMetaDocumentPartial>({ title, username, coopname, registry_id, links, lang, generator, version, // TODO перенести в .env
|
|
430
505
|
created_at, block_num, timezone, // TODO перенести в .env
|
|
@@ -468,4 +543,4 @@ declare class Generator implements IGenerator {
|
|
|
468
543
|
constructCooperative(username: string, block_num?: number): Promise<CooperativeData | null>;
|
|
469
544
|
}
|
|
470
545
|
|
|
471
|
-
export { AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, FreeDecision, Generator, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ITemplate, type ITranslations, type LangType, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, SelectBranchStatement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|
|
546
|
+
export { AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, FreeDecision, Generator, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ITemplate, type ITranslations, InvestByMoneyStatement, InvestByResultAct, InvestByResultStatement, InvestMembershipConvertation, InvestmentAgreement, type LangType, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|