Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5306966818 | |||
| 29e972dbf2 | |||
| bd99697c5b | |||
| 1d5c431ff6 | |||
| 3736c510ff | |||
| 26c12c3a85 |
@@ -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.18](https://github.com/copenomics/cooparser/compare/cooparser-ts@1.0.17...cooparser-ts@1.0.18) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package cooparser-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.17](https://github.com/copenomics/cooparser/compare/cooparser-ts@1.0.17-alpha.2...cooparser-ts@1.0.17) (2024-07-25)
|
||||
|
||||
**Note:** Version bump only for package cooparser-ts
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "pkg-placeholder",
|
||||
"version": "1.0.17",
|
||||
"version": "1.0.18",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "pkg-placeholder",
|
||||
"version": "1.0.17",
|
||||
"version": "1.0.18",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^2.16.0",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "cooparser-ts",
|
||||
"type": "module",
|
||||
"version": "1.0.17",
|
||||
"private": true,
|
||||
"version": "1.0.18",
|
||||
"private": false,
|
||||
"packageManager": "pnpm@9.0.6",
|
||||
"description": "",
|
||||
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
||||
|
||||
@@ -3,6 +3,30 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.7.33](https://github.com/hagopj13/node-express-boilerplate/compare/coopback@1.7.32...coopback@1.7.33) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package coopback
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.7.32](https://github.com/hagopj13/node-express-boilerplate/compare/coopback@1.7.31...coopback@1.7.32) (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.32",
|
||||
"version": "1.7.35",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "create-nodejs-express-app",
|
||||
"version": "1.7.32",
|
||||
"version": "1.7.35",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@a2seven/yoo-checkout": "^1.1.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "coopback",
|
||||
"version": "1.7.32",
|
||||
"version": "1.7.35",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"bin": "bin/createNodejsApp.js",
|
||||
|
||||
@@ -3,6 +3,30 @@
|
||||
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.0.77](https://github.com/copenomics/coopdoc-generator-ts/compare/coopdoc-generator-ts@1.0.76...coopdoc-generator-ts@1.0.77) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package coopdoc-generator-ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.76](https://github.com/copenomics/coopdoc-generator-ts/compare/coopdoc-generator-ts@1.0.75...coopdoc-generator-ts@1.0.76) (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.76",
|
||||
"version": "1.0.79",
|
||||
"private": false,
|
||||
"packageManager": "pnpm@9.0.6",
|
||||
"description": "",
|
||||
@@ -49,7 +49,6 @@
|
||||
"ajv-formats": "^3.0.1",
|
||||
"ajv-i18n": "^4.2.0",
|
||||
"axios": "^1.7.2",
|
||||
"cooparser-ts": "workspace:*",
|
||||
"cooptypes": "workspace:*",
|
||||
"dotenv": "^16.4.5",
|
||||
"eosjs-ecc": "^4.0.7",
|
||||
|
||||
@@ -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,22 @@
|
||||
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.0.20](https://github.com/coopenomics/cooptypes/compare/cooptypes@1.0.20-alpha.1...cooptypes@1.0.20) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package cooptypes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cooptypes",
|
||||
"type": "module",
|
||||
"version": "1.0.20",
|
||||
"version": "1.0.22",
|
||||
"description": "_description_",
|
||||
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
/**
|
||||
* Действие создаёт целевую потребительскую программу маркетплейса.
|
||||
* Действие создаёт целевую потребительскую маркетплейса.
|
||||
*/
|
||||
export * as CreateMarketProgram from './createMarketProgram'
|
||||
export * as CreateProgram from './createProgram'
|
||||
|
||||
/**
|
||||
* Действие редактирует целевую потребительскую программу маркетплейса.
|
||||
*/
|
||||
export * as EditMarketProgram from './editMarketProgram'
|
||||
export * as EditProgram from './editProgram'
|
||||
|
||||
/**
|
||||
* Действие отключает целевую потребительскую программу маркетплейса.
|
||||
*/
|
||||
export * as DisableMarketProgram from './disableMarketProgram'
|
||||
export * as DisableProgram from './disableProgram'
|
||||
|
||||
/**
|
||||
* Действие отправки заявления на присоединение к ЦПП Кооператива
|
||||
|
||||
@@ -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,22 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.0.24](https://github.com/copenomics/coop-notificator/compare/coop-notificator@0.0.24-alpha.1...coop-notificator@0.0.24) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package coop-notificator
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "coop-notificator",
|
||||
"type": "module",
|
||||
"version": "0.0.24",
|
||||
"version": "0.0.26",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.1.1",
|
||||
"description": "_description_",
|
||||
|
||||
@@ -3,6 +3,30 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.1.37](https://github.com/coopenomics/monocoop/compare/terminal@0.1.36...terminal@0.1.37) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package terminal
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.1.36](https://github.com/coopenomics/monocoop/compare/terminal@0.1.35...terminal@0.1.36) (2024-08-25)
|
||||
|
||||
**Note:** Version bump only for package terminal
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "terminal",
|
||||
"version": "0.1.36",
|
||||
"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: '',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Generated
+3
-6
@@ -358,9 +358,6 @@ importers:
|
||||
axios:
|
||||
specifier: ^1.7.2
|
||||
version: 1.7.4
|
||||
cooparser-ts:
|
||||
specifier: workspace:*
|
||||
version: link:../cooparser
|
||||
cooptypes:
|
||||
specifier: workspace:*
|
||||
version: link:../cooptypes
|
||||
@@ -6227,7 +6224,7 @@ packages:
|
||||
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
|
||||
engines: {node: '>= 6.0.0'}
|
||||
dependencies:
|
||||
debug: 4.3.1
|
||||
debug: 4.3.6(supports-color@5.5.0)
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: false
|
||||
@@ -11161,7 +11158,7 @@ packages:
|
||||
engines: {node: '>= 10.17.0'}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
debug: 4.3.1
|
||||
debug: 4.3.6(supports-color@5.5.0)
|
||||
get-stream: 5.2.0
|
||||
yauzl: 2.10.0
|
||||
optionalDependencies:
|
||||
@@ -12172,7 +12169,7 @@ packages:
|
||||
engines: {node: '>= 6'}
|
||||
dependencies:
|
||||
agent-base: 6.0.2
|
||||
debug: 4.3.1
|
||||
debug: 4.3.6(supports-color@5.5.0)
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
Reference in New Issue
Block a user