@coopenomics/factory 2025.11.13-alpha-3 → 2025.11.14-alpha-2
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 +28 -8
- package/dist/index.mjs +28 -8
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2947,6 +2947,12 @@ class Cooperative {
|
|
|
2947
2947
|
const cooperativeBlockchainData = cooperative_response.results[0]?.value;
|
|
2948
2948
|
if (!cooperativeBlockchainData)
|
|
2949
2949
|
throw new Error("\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0435 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043D\u043D\u044B\u0445.");
|
|
2950
|
+
const mappedCooperativeData = {
|
|
2951
|
+
...cooperativeBlockchainData,
|
|
2952
|
+
is_cooperative: Boolean(cooperativeBlockchainData.is_cooperative),
|
|
2953
|
+
is_branched: Boolean(cooperativeBlockchainData.is_branched),
|
|
2954
|
+
is_enrolled: Boolean(cooperativeBlockchainData.is_enrolled)
|
|
2955
|
+
};
|
|
2950
2956
|
const soviet_response = await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-tables`, new URLSearchParams({
|
|
2951
2957
|
filter: JSON.stringify({
|
|
2952
2958
|
"code": cooptypes.SovietContract.contractName.production,
|
|
@@ -2971,7 +2977,7 @@ class Cooperative {
|
|
|
2971
2977
|
}
|
|
2972
2978
|
this.cooperative = {
|
|
2973
2979
|
...organizationPrivateData,
|
|
2974
|
-
...
|
|
2980
|
+
...mappedCooperativeData,
|
|
2975
2981
|
chairman,
|
|
2976
2982
|
members,
|
|
2977
2983
|
totalMembers: members.length
|
|
@@ -3230,7 +3236,7 @@ class PDFService {
|
|
|
3230
3236
|
|
|
3231
3237
|
const name = "@coopenomics/factory";
|
|
3232
3238
|
const type = "module";
|
|
3233
|
-
const version = "2025.11.
|
|
3239
|
+
const version = "2025.11.14-alpha-2";
|
|
3234
3240
|
const description = "";
|
|
3235
3241
|
const author = "Alex Ant <chairman.voskhod@gmail.com>";
|
|
3236
3242
|
const license = "MIT";
|
|
@@ -3280,7 +3286,7 @@ const dependencies = {
|
|
|
3280
3286
|
"ajv-formats": "^3.0.1",
|
|
3281
3287
|
"ajv-i18n": "^4.2.0",
|
|
3282
3288
|
axios: "^1.7.2",
|
|
3283
|
-
cooptypes: "2025.11.
|
|
3289
|
+
cooptypes: "2025.11.14-alpha-2",
|
|
3284
3290
|
dotenv: "^16.4.5",
|
|
3285
3291
|
"eosjs-ecc": "^4.0.7",
|
|
3286
3292
|
handlebars: "^4.7.8",
|
|
@@ -3311,7 +3317,7 @@ const devDependencies = {
|
|
|
3311
3317
|
vite: "^5.2.11",
|
|
3312
3318
|
vitest: "^1.6.0"
|
|
3313
3319
|
};
|
|
3314
|
-
const gitHead = "
|
|
3320
|
+
const gitHead = "9e1dd02d708a4b7905f0cb4543e61a193c0948c8";
|
|
3315
3321
|
const packageJson = {
|
|
3316
3322
|
name: name,
|
|
3317
3323
|
type: type,
|
|
@@ -3619,8 +3625,15 @@ class DocFactory {
|
|
|
3619
3625
|
})
|
|
3620
3626
|
}));
|
|
3621
3627
|
const draft = templateResponse.results[0]?.value;
|
|
3622
|
-
if (!draft)
|
|
3623
|
-
throw new Error(
|
|
3628
|
+
if (!draft) {
|
|
3629
|
+
throw new Error(`\u0428\u0430\u0431\u043B\u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
|
|
3630
|
+
"code": cooptypes.DraftContract.contractName.production,
|
|
3631
|
+
"scope": scope,
|
|
3632
|
+
"table": cooptypes.DraftContract.Tables.Drafts.tableName,
|
|
3633
|
+
"value.registry_id": String(registry_id),
|
|
3634
|
+
...block_filter
|
|
3635
|
+
})}`);
|
|
3636
|
+
}
|
|
3624
3637
|
const translationsResponse = await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-tables`, new URLSearchParams({
|
|
3625
3638
|
filter: JSON.stringify({
|
|
3626
3639
|
"code": cooptypes.DraftContract.contractName.production,
|
|
@@ -3631,8 +3644,15 @@ class DocFactory {
|
|
|
3631
3644
|
})
|
|
3632
3645
|
}));
|
|
3633
3646
|
const translations = translationsResponse.results;
|
|
3634
|
-
if (!translations.length)
|
|
3635
|
-
throw new Error(
|
|
3647
|
+
if (!translations.length) {
|
|
3648
|
+
throw new Error(`\u041D\u0438 \u043E\u0434\u0438\u043D \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
|
|
3649
|
+
"code": cooptypes.DraftContract.contractName.production,
|
|
3650
|
+
"scope": scope,
|
|
3651
|
+
"table": cooptypes.DraftContract.Tables.Translations.tableName,
|
|
3652
|
+
"value.draft_id": String(draft.registry_id),
|
|
3653
|
+
...block_filter
|
|
3654
|
+
})}`);
|
|
3655
|
+
}
|
|
3636
3656
|
const filteredTranslations = Object.values(
|
|
3637
3657
|
translations.reduce((acc, curr) => {
|
|
3638
3658
|
const lang = curr.value.lang;
|
package/dist/index.mjs
CHANGED
|
@@ -2934,6 +2934,12 @@ class Cooperative {
|
|
|
2934
2934
|
const cooperativeBlockchainData = cooperative_response.results[0]?.value;
|
|
2935
2935
|
if (!cooperativeBlockchainData)
|
|
2936
2936
|
throw new Error("\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0435 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043D\u043D\u044B\u0445.");
|
|
2937
|
+
const mappedCooperativeData = {
|
|
2938
|
+
...cooperativeBlockchainData,
|
|
2939
|
+
is_cooperative: Boolean(cooperativeBlockchainData.is_cooperative),
|
|
2940
|
+
is_branched: Boolean(cooperativeBlockchainData.is_branched),
|
|
2941
|
+
is_enrolled: Boolean(cooperativeBlockchainData.is_enrolled)
|
|
2942
|
+
};
|
|
2937
2943
|
const soviet_response = await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-tables`, new URLSearchParams({
|
|
2938
2944
|
filter: JSON.stringify({
|
|
2939
2945
|
"code": SovietContract.contractName.production,
|
|
@@ -2958,7 +2964,7 @@ class Cooperative {
|
|
|
2958
2964
|
}
|
|
2959
2965
|
this.cooperative = {
|
|
2960
2966
|
...organizationPrivateData,
|
|
2961
|
-
...
|
|
2967
|
+
...mappedCooperativeData,
|
|
2962
2968
|
chairman,
|
|
2963
2969
|
members,
|
|
2964
2970
|
totalMembers: members.length
|
|
@@ -3217,7 +3223,7 @@ class PDFService {
|
|
|
3217
3223
|
|
|
3218
3224
|
const name = "@coopenomics/factory";
|
|
3219
3225
|
const type = "module";
|
|
3220
|
-
const version = "2025.11.
|
|
3226
|
+
const version = "2025.11.14-alpha-2";
|
|
3221
3227
|
const description = "";
|
|
3222
3228
|
const author = "Alex Ant <chairman.voskhod@gmail.com>";
|
|
3223
3229
|
const license = "MIT";
|
|
@@ -3267,7 +3273,7 @@ const dependencies = {
|
|
|
3267
3273
|
"ajv-formats": "^3.0.1",
|
|
3268
3274
|
"ajv-i18n": "^4.2.0",
|
|
3269
3275
|
axios: "^1.7.2",
|
|
3270
|
-
cooptypes: "2025.11.
|
|
3276
|
+
cooptypes: "2025.11.14-alpha-2",
|
|
3271
3277
|
dotenv: "^16.4.5",
|
|
3272
3278
|
"eosjs-ecc": "^4.0.7",
|
|
3273
3279
|
handlebars: "^4.7.8",
|
|
@@ -3298,7 +3304,7 @@ const devDependencies = {
|
|
|
3298
3304
|
vite: "^5.2.11",
|
|
3299
3305
|
vitest: "^1.6.0"
|
|
3300
3306
|
};
|
|
3301
|
-
const gitHead = "
|
|
3307
|
+
const gitHead = "9e1dd02d708a4b7905f0cb4543e61a193c0948c8";
|
|
3302
3308
|
const packageJson = {
|
|
3303
3309
|
name: name,
|
|
3304
3310
|
type: type,
|
|
@@ -3606,8 +3612,15 @@ class DocFactory {
|
|
|
3606
3612
|
})
|
|
3607
3613
|
}));
|
|
3608
3614
|
const draft = templateResponse.results[0]?.value;
|
|
3609
|
-
if (!draft)
|
|
3610
|
-
throw new Error(
|
|
3615
|
+
if (!draft) {
|
|
3616
|
+
throw new Error(`\u0428\u0430\u0431\u043B\u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
|
|
3617
|
+
"code": DraftContract.contractName.production,
|
|
3618
|
+
"scope": scope,
|
|
3619
|
+
"table": DraftContract.Tables.Drafts.tableName,
|
|
3620
|
+
"value.registry_id": String(registry_id),
|
|
3621
|
+
...block_filter
|
|
3622
|
+
})}`);
|
|
3623
|
+
}
|
|
3611
3624
|
const translationsResponse = await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-tables`, new URLSearchParams({
|
|
3612
3625
|
filter: JSON.stringify({
|
|
3613
3626
|
"code": DraftContract.contractName.production,
|
|
@@ -3618,8 +3631,15 @@ class DocFactory {
|
|
|
3618
3631
|
})
|
|
3619
3632
|
}));
|
|
3620
3633
|
const translations = translationsResponse.results;
|
|
3621
|
-
if (!translations.length)
|
|
3622
|
-
throw new Error(
|
|
3634
|
+
if (!translations.length) {
|
|
3635
|
+
throw new Error(`\u041D\u0438 \u043E\u0434\u0438\u043D \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
|
|
3636
|
+
"code": DraftContract.contractName.production,
|
|
3637
|
+
"scope": scope,
|
|
3638
|
+
"table": DraftContract.Tables.Translations.tableName,
|
|
3639
|
+
"value.draft_id": String(draft.registry_id),
|
|
3640
|
+
...block_filter
|
|
3641
|
+
})}`);
|
|
3642
|
+
}
|
|
3623
3643
|
const filteredTranslations = Object.values(
|
|
3624
3644
|
translations.reduce((acc, curr) => {
|
|
3625
3645
|
const lang = curr.value.lang;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopenomics/factory",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2025.11.
|
|
4
|
+
"version": "2025.11.14-alpha-2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "Alex Ant <chairman.voskhod@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"ajv-formats": "^3.0.1",
|
|
51
51
|
"ajv-i18n": "^4.2.0",
|
|
52
52
|
"axios": "^1.7.2",
|
|
53
|
-
"cooptypes": "2025.11.
|
|
53
|
+
"cooptypes": "2025.11.14-alpha-2",
|
|
54
54
|
"dotenv": "^16.4.5",
|
|
55
55
|
"eosjs-ecc": "^4.0.7",
|
|
56
56
|
"handlebars": "^4.7.8",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"vite": "^5.2.11",
|
|
82
82
|
"vitest": "^1.6.0"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "9e1dd02d708a4b7905f0cb4543e61a193c0948c8"
|
|
85
85
|
}
|