@coopenomics/factory 2025.11.13-alpha-1 → 2025.11.14-alpha-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -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
- ...cooperativeBlockchainData,
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.13-alpha-1";
3239
+ const version = "2025.11.14-alpha-1";
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.13-alpha-1",
3289
+ cooptypes: "2025.11.14-alpha-1",
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 = "d0f73c32bb68d8f7451ecef3989bdff4629d71c4";
3320
+ const gitHead = "a3e0e62efcdac26dfb0f2819b7750c1de2a3b787";
3315
3321
  const packageJson = {
3316
3322
  name: name,
3317
3323
  type: type,
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
- ...cooperativeBlockchainData,
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.13-alpha-1";
3226
+ const version = "2025.11.14-alpha-1";
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.13-alpha-1",
3276
+ cooptypes: "2025.11.14-alpha-1",
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 = "d0f73c32bb68d8f7451ecef3989bdff4629d71c4";
3307
+ const gitHead = "a3e0e62efcdac26dfb0f2819b7750c1de2a3b787";
3302
3308
  const packageJson = {
3303
3309
  name: name,
3304
3310
  type: type,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/factory",
3
3
  "type": "module",
4
- "version": "2025.11.13-alpha-1",
4
+ "version": "2025.11.14-alpha-1",
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.13-alpha-1",
53
+ "cooptypes": "2025.11.14-alpha-1",
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": "d0f73c32bb68d8f7451ecef3989bdff4629d71c4"
84
+ "gitHead": "a3e0e62efcdac26dfb0f2819b7750c1de2a3b787"
85
85
  }