Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5306966818 | |||
| 29e972dbf2 |
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.7.35](https://github.com/hagopj13/node-express-boilerplate/compare/coopback@1.7.34...coopback@1.7.35) (2024-08-27)
|
||||
|
||||
**Note:** Version bump only for package coopback
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.7.34](https://github.com/hagopj13/node-express-boilerplate/compare/coopback@1.7.33...coopback@1.7.34) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package coopback
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "create-nodejs-express-app",
|
||||
"version": "1.7.34",
|
||||
"version": "1.7.35",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "create-nodejs-express-app",
|
||||
"version": "1.7.34",
|
||||
"version": "1.7.35",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@a2seven/yoo-checkout": "^1.1.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "coopback",
|
||||
"version": "1.7.34",
|
||||
"version": "1.7.35",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"bin": "bin/createNodejsApp.js",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.79](https://github.com/copenomics/coopdoc-generator-ts/compare/coopdoc-generator-ts@1.0.78...coopdoc-generator-ts@1.0.79) (2024-08-27)
|
||||
|
||||
**Note:** Version bump only for package coopdoc-generator-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.78](https://github.com/copenomics/coopdoc-generator-ts/compare/coopdoc-generator-ts@1.0.77...coopdoc-generator-ts@1.0.78) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package coopdoc-generator-ts
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "coopdoc-generator-ts",
|
||||
"type": "module",
|
||||
"version": "1.0.78",
|
||||
"version": "1.0.79",
|
||||
"private": false,
|
||||
"packageManager": "pnpm@9.0.6",
|
||||
"description": "",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { DraftContract } from 'cooptypes'
|
||||
import type { IJoinCoopAction } from '../Templates/100.ParticipantApplication'
|
||||
import { DocFactory } from '../Factory'
|
||||
import type { IGeneratedDocument, IMetaDocument, ITemplate } from '../Interfaces'
|
||||
@@ -20,7 +21,7 @@ export class JoinCoopTemplateFactory extends DocFactory {
|
||||
template = ParticipantApplicationTemplate
|
||||
}
|
||||
else {
|
||||
template = await this.getTemplate(registry_id, options.block_num)
|
||||
template = await this.getTemplate(DraftContract.contractName.production, registry_id, options.block_num)
|
||||
}
|
||||
|
||||
const user = await super.getUser(options.username, options.block_num)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { DraftContract } from 'cooptypes'
|
||||
import type { IJoinCoopDecisionAction } from '../Templates/501.DecisionOfParticipantApplication'
|
||||
import { DocFactory } from '../Factory'
|
||||
import type {
|
||||
@@ -26,7 +27,7 @@ export class DecisionOfJoinCoopTemplateFactory extends DocFactory {
|
||||
template = DecisionOfParticipantApplicationTemplate
|
||||
}
|
||||
else {
|
||||
template = await this.getTemplate(registry_id, options.block_num)
|
||||
template = await this.getTemplate(DraftContract.contractName.production, registry_id, options.block_num)
|
||||
}
|
||||
|
||||
const user = await super.getUser(options.username, options.block_num)
|
||||
|
||||
@@ -23,7 +23,7 @@ export class JoinProgramTemplateFactory extends DocFactory {
|
||||
template = DocumentsRegistry[options.registry_id as keyof typeof DocumentsRegistry]
|
||||
}
|
||||
else {
|
||||
template = await this.getTemplate(options.registry_id, options.block_num)
|
||||
template = await this.getTemplate(options.coopname, options.registry_id, options.block_num)
|
||||
}
|
||||
|
||||
const coop = await super.getCooperative(options.coopname, options.block_num)
|
||||
|
||||
@@ -123,13 +123,13 @@ export abstract class DocFactory {
|
||||
}
|
||||
}
|
||||
|
||||
async getTemplate<T>(registry_id: number, block_num?: number): Promise<ITemplate<T>> {
|
||||
async getTemplate<T>(scope: string, registry_id: number, block_num?: number): Promise<ITemplate<T>> {
|
||||
const block_filter = block_num ? { block_num: { $lte: block_num } } : {}
|
||||
|
||||
const templateResponse = await getFetch(`${getEnvVar('SIMPLE_EXPLORER_API')}/get-tables`, new URLSearchParams({
|
||||
filter: JSON.stringify({
|
||||
'code': DraftContract.contractName.production,
|
||||
'scope': DraftContract.contractName.production,
|
||||
'scope': scope,
|
||||
'table': DraftContract.Tables.Drafts.tableName,
|
||||
'value.registry_id': String(registry_id),
|
||||
...block_filter,
|
||||
@@ -144,7 +144,7 @@ export abstract class DocFactory {
|
||||
const translationsResponse = await getFetch(`${getEnvVar('SIMPLE_EXPLORER_API')}/get-tables`, new URLSearchParams({
|
||||
filter: JSON.stringify({
|
||||
'code': DraftContract.contractName.production,
|
||||
'scope': DraftContract.contractName.production,
|
||||
'scope': scope,
|
||||
'table': 'translations',
|
||||
'value.draft_id': String(draft.id),
|
||||
...block_filter,
|
||||
|
||||
@@ -338,7 +338,7 @@ describe('тест генератора документов', async () => {
|
||||
|
||||
console.log('hash1: ', hash1)
|
||||
console.log('hash2: ', hash2)
|
||||
// console.log(document)
|
||||
console.log(document.meta)
|
||||
|
||||
expect(hash1).toEqual(hash2)
|
||||
})
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.22](https://github.com/coopenomics/cooptypes/compare/cooptypes@1.0.21...cooptypes@1.0.22) (2024-08-27)
|
||||
|
||||
**Note:** Version bump only for package cooptypes
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.21](https://github.com/coopenomics/cooptypes/compare/cooptypes@1.0.20...cooptypes@1.0.21) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package cooptypes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cooptypes",
|
||||
"type": "module",
|
||||
"version": "1.0.21",
|
||||
"version": "1.0.22",
|
||||
"description": "_description_",
|
||||
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -187,7 +187,6 @@ export interface ICreateprog {
|
||||
username: IName
|
||||
program_type: IName
|
||||
draft_registry_id: IUint64
|
||||
hash_of_conditions: IChecksum256
|
||||
title: string
|
||||
announce: string
|
||||
description: string
|
||||
@@ -278,7 +277,6 @@ export interface IEditprog {
|
||||
username: IName
|
||||
program_id: IUint64
|
||||
draft_registry_id: IUint64
|
||||
hash_of_conditions: IChecksum256
|
||||
title: string
|
||||
announce: string
|
||||
description: string
|
||||
@@ -307,6 +305,8 @@ export interface IIndocument {
|
||||
username: IName
|
||||
type: IName
|
||||
secondary_id: IUint64
|
||||
draft_registry_id: IUint64
|
||||
version: IUint64
|
||||
document: IDocument
|
||||
}
|
||||
|
||||
@@ -331,6 +331,7 @@ export interface IJoinprog {
|
||||
username: IName
|
||||
document: IDocument
|
||||
program_id: IUint64
|
||||
version: IUint64
|
||||
}
|
||||
|
||||
export interface IMigrate {
|
||||
@@ -401,10 +402,9 @@ export interface IParticipant {
|
||||
|
||||
export interface IProgram {
|
||||
id: IUint64
|
||||
draft_registry_id: IUint64
|
||||
coopname: IName
|
||||
program_type: IName
|
||||
draft_registry_id: IUint64
|
||||
hash_of_conditions: IChecksum256
|
||||
is_active: boolean
|
||||
title: string
|
||||
announce: string
|
||||
@@ -423,6 +423,7 @@ export interface IProgwallet {
|
||||
id: IUint64
|
||||
coopname: IName
|
||||
program_id: IUint64
|
||||
version: IUint64
|
||||
username: IName
|
||||
available: IAsset
|
||||
document: IDocument
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.0.26](https://github.com/copenomics/coop-notificator/compare/coop-notificator@0.0.25...coop-notificator@0.0.26) (2024-08-27)
|
||||
|
||||
**Note:** Version bump only for package coop-notificator
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.0.25](https://github.com/copenomics/coop-notificator/compare/coop-notificator@0.0.24...coop-notificator@0.0.25) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package coop-notificator
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "coop-notificator",
|
||||
"type": "module",
|
||||
"version": "0.0.25",
|
||||
"version": "0.0.26",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.1.1",
|
||||
"description": "_description_",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.1.39](https://github.com/coopenomics/monocoop/compare/terminal@0.1.38...terminal@0.1.39) (2024-08-27)
|
||||
|
||||
**Note:** Version bump only for package terminal
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.1.38](https://github.com/coopenomics/monocoop/compare/terminal@0.1.37...terminal@0.1.38) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package terminal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "terminal",
|
||||
"version": "0.1.38",
|
||||
"version": "0.1.39",
|
||||
"description": "A Terminal Project",
|
||||
"productName": "Terminal App",
|
||||
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
||||
|
||||
@@ -143,6 +143,13 @@ export const useRegistratorStore = defineStore(
|
||||
state.account = clearObjectValues(state.account);
|
||||
state.userData = clearObjectValues(state.userData);
|
||||
state.payment.provider = 'yookassa'
|
||||
state.is_paid = false
|
||||
state.statement = {
|
||||
hash: '',
|
||||
meta: {},
|
||||
public_key: '',
|
||||
signature: '',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user