@coopenomics/factory 2025.6.14 → 2025.6.19

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
@@ -1691,9 +1691,10 @@ const Schema$4 = {
1691
1691
  questions: {
1692
1692
  type: "array",
1693
1693
  items: AgendaQuestionSchema
1694
- }
1694
+ },
1695
+ is_repeated: { type: "boolean" }
1695
1696
  },
1696
- required: ["meta", "coop", "vars", "meet", "user", "questions"],
1697
+ required: ["meta", "coop", "vars", "meet", "user", "questions", "is_repeated"],
1697
1698
  additionalProperties: true
1698
1699
  };
1699
1700
  const Template$4 = {
@@ -1723,9 +1724,10 @@ const Schema$3 = {
1723
1724
  questions: {
1724
1725
  type: "array",
1725
1726
  items: MeetPointSchema
1726
- }
1727
+ },
1728
+ is_repeated: { type: "boolean" }
1727
1729
  },
1728
- required: ["meta", "coop", "vars", "decision", "meet", "questions"],
1730
+ required: ["meta", "coop", "vars", "decision", "meet", "questions", "is_repeated"],
1729
1731
  additionalProperties: true
1730
1732
  };
1731
1733
  const Template$3 = {
@@ -2515,7 +2517,7 @@ class PDFService {
2515
2517
 
2516
2518
  const name = "@coopenomics/factory";
2517
2519
  const type = "module";
2518
- const version = "2025.6.14";
2520
+ const version = "2025.6.19";
2519
2521
  const packageManager = "pnpm@9.0.6";
2520
2522
  const description = "";
2521
2523
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
@@ -2565,7 +2567,7 @@ const dependencies = {
2565
2567
  "ajv-formats": "^3.0.1",
2566
2568
  "ajv-i18n": "^4.2.0",
2567
2569
  axios: "^1.7.2",
2568
- cooptypes: "2025.6.14",
2570
+ cooptypes: "2025.6.19",
2569
2571
  dotenv: "^16.4.5",
2570
2572
  "eosjs-ecc": "^4.0.7",
2571
2573
  handlebars: "^4.7.8",
@@ -2606,7 +2608,7 @@ const pnpm = {
2606
2608
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
2607
2609
  }
2608
2610
  };
2609
- const gitHead = "1c376c003ab7d30e5fa11e13152795ac4823885a";
2611
+ const gitHead = "1bd8f003f744f0a1f0ecde84dc8841763e31f858";
2610
2612
  const packageJson = {
2611
2613
  name: name,
2612
2614
  type: type,
@@ -3930,7 +3932,8 @@ let Factory$4 = class Factory extends DocFactory {
3930
3932
  vars,
3931
3933
  meet,
3932
3934
  questions,
3933
- user
3935
+ user,
3936
+ is_repeated: data.is_repeated
3934
3937
  };
3935
3938
  await super.validate(combinedData, template.model);
3936
3939
  const translation = template.translations[meta.lang];
@@ -3957,6 +3960,7 @@ let Factory$3 = class Factory extends DocFactory {
3957
3960
  } else {
3958
3961
  template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$3, data.block_num);
3959
3962
  }
3963
+ console.log("data on gerate soviet decision", data);
3960
3964
  const meta = await super.getMeta({ title: template.title, ...data });
3961
3965
  const coop = await super.getCooperative(data.coopname, data.block_num);
3962
3966
  const vars = await super.getVars(data.coopname, data.block_num);
@@ -3969,7 +3973,8 @@ let Factory$3 = class Factory extends DocFactory {
3969
3973
  vars,
3970
3974
  decision,
3971
3975
  meet,
3972
- questions
3976
+ questions,
3977
+ is_repeated: data.is_repeated
3973
3978
  };
3974
3979
  await super.validate(combinedData, template.model);
3975
3980
  const translation = template.translations[meta.lang];
package/dist/index.mjs CHANGED
@@ -1678,9 +1678,10 @@ const Schema$4 = {
1678
1678
  questions: {
1679
1679
  type: "array",
1680
1680
  items: AgendaQuestionSchema
1681
- }
1681
+ },
1682
+ is_repeated: { type: "boolean" }
1682
1683
  },
1683
- required: ["meta", "coop", "vars", "meet", "user", "questions"],
1684
+ required: ["meta", "coop", "vars", "meet", "user", "questions", "is_repeated"],
1684
1685
  additionalProperties: true
1685
1686
  };
1686
1687
  const Template$4 = {
@@ -1710,9 +1711,10 @@ const Schema$3 = {
1710
1711
  questions: {
1711
1712
  type: "array",
1712
1713
  items: MeetPointSchema
1713
- }
1714
+ },
1715
+ is_repeated: { type: "boolean" }
1714
1716
  },
1715
- required: ["meta", "coop", "vars", "decision", "meet", "questions"],
1717
+ required: ["meta", "coop", "vars", "decision", "meet", "questions", "is_repeated"],
1716
1718
  additionalProperties: true
1717
1719
  };
1718
1720
  const Template$3 = {
@@ -2502,7 +2504,7 @@ class PDFService {
2502
2504
 
2503
2505
  const name = "@coopenomics/factory";
2504
2506
  const type = "module";
2505
- const version = "2025.6.14";
2507
+ const version = "2025.6.19";
2506
2508
  const packageManager = "pnpm@9.0.6";
2507
2509
  const description = "";
2508
2510
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
@@ -2552,7 +2554,7 @@ const dependencies = {
2552
2554
  "ajv-formats": "^3.0.1",
2553
2555
  "ajv-i18n": "^4.2.0",
2554
2556
  axios: "^1.7.2",
2555
- cooptypes: "2025.6.14",
2557
+ cooptypes: "2025.6.19",
2556
2558
  dotenv: "^16.4.5",
2557
2559
  "eosjs-ecc": "^4.0.7",
2558
2560
  handlebars: "^4.7.8",
@@ -2593,7 +2595,7 @@ const pnpm = {
2593
2595
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
2594
2596
  }
2595
2597
  };
2596
- const gitHead = "1c376c003ab7d30e5fa11e13152795ac4823885a";
2598
+ const gitHead = "1bd8f003f744f0a1f0ecde84dc8841763e31f858";
2597
2599
  const packageJson = {
2598
2600
  name: name,
2599
2601
  type: type,
@@ -3917,7 +3919,8 @@ let Factory$4 = class Factory extends DocFactory {
3917
3919
  vars,
3918
3920
  meet,
3919
3921
  questions,
3920
- user
3922
+ user,
3923
+ is_repeated: data.is_repeated
3921
3924
  };
3922
3925
  await super.validate(combinedData, template.model);
3923
3926
  const translation = template.translations[meta.lang];
@@ -3944,6 +3947,7 @@ let Factory$3 = class Factory extends DocFactory {
3944
3947
  } else {
3945
3948
  template = await this.getTemplate(DraftContract.contractName.production, registry_id$3, data.block_num);
3946
3949
  }
3950
+ console.log("data on gerate soviet decision", data);
3947
3951
  const meta = await super.getMeta({ title: template.title, ...data });
3948
3952
  const coop = await super.getCooperative(data.coopname, data.block_num);
3949
3953
  const vars = await super.getVars(data.coopname, data.block_num);
@@ -3956,7 +3960,8 @@ let Factory$3 = class Factory extends DocFactory {
3956
3960
  vars,
3957
3961
  decision,
3958
3962
  meet,
3959
- questions
3963
+ questions,
3964
+ is_repeated: data.is_repeated
3960
3965
  };
3961
3966
  await super.validate(combinedData, template.model);
3962
3967
  const translation = template.translations[meta.lang];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/factory",
3
3
  "type": "module",
4
- "version": "2025.6.14",
4
+ "version": "2025.6.19",
5
5
  "packageManager": "pnpm@9.0.6",
6
6
  "description": "",
7
7
  "author": "Alex Ant <chairman.voskhod@gmail.com>",
@@ -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.6.14",
53
+ "cooptypes": "2025.6.19",
54
54
  "dotenv": "^16.4.5",
55
55
  "eosjs-ecc": "^4.0.7",
56
56
  "handlebars": "^4.7.8",
@@ -91,5 +91,5 @@
91
91
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
92
92
  }
93
93
  },
94
- "gitHead": "1c376c003ab7d30e5fa11e13152795ac4823885a"
94
+ "gitHead": "1bd8f003f744f0a1f0ecde84dc8841763e31f858"
95
95
  }