move templates #1
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.WalletAgreement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.WalletAgreement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.WalletAgreement.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.WalletAgreement.title,
|
||||
description: Cooperative.Registry.WalletAgreement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.WalletAgreement.context,
|
||||
translations: Cooperative.Registry.WalletAgreement.translations,
|
||||
}
|
||||
@@ -1,101 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { individualSchema } from '../Schema/IndividualSchema'
|
||||
import { BankAccountSchema, VarsSchema, organizationSchema } from '../Schema'
|
||||
import { CooperativeSchema } from '../Schema/CooperativeSchema'
|
||||
import { entrepreneurSchema } from '../Schema/EntrepreneurSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.ParticipantApplication.registry_id
|
||||
|
||||
/**
|
||||
* Интерфейс генерации заявления на вступление в кооператив
|
||||
*/
|
||||
export type Action = Cooperative.Registry.ParticipantApplication.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.ParticipantApplication.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
type: {
|
||||
type: 'string',
|
||||
enum: ['individual', 'entrepreneur', 'organization'],
|
||||
},
|
||||
individual: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...individualSchema.properties,
|
||||
},
|
||||
required: [...individualSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
organization: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...organizationSchema.properties,
|
||||
bank_account: {
|
||||
type: 'object',
|
||||
required: BankAccountSchema.required,
|
||||
properties: BankAccountSchema.properties,
|
||||
},
|
||||
},
|
||||
required: [...organizationSchema.required, 'bank_account'],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
entrepreneur: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...entrepreneurSchema.properties,
|
||||
},
|
||||
required: [...entrepreneurSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
coop: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...CooperativeSchema.properties,
|
||||
},
|
||||
required: [...CooperativeSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
branch: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...organizationSchema.properties,
|
||||
},
|
||||
required: [...organizationSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
signature: {
|
||||
type: 'string',
|
||||
},
|
||||
vars: VarsSchema,
|
||||
meta: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...IMetaJSONSchema.properties,
|
||||
},
|
||||
required: [...IMetaJSONSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
},
|
||||
required: ['meta', 'coop', 'type', 'signature'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.ParticipantApplication.title,
|
||||
description: Cooperative.Registry.ParticipantApplication.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.ParticipantApplication.context,
|
||||
translations: Cooperative.Registry.ParticipantApplication.translations,
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { BankAccountSchema, CooperativeSchema, VarsSchema, decisionSchema, entrepreneurSchema, individualSchema, organizationSchema } from '../Schema'
|
||||
import { CommonRequestSchema } from '../Schema/CommonRequestSchema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { FirstLastMiddleNameSchema } from '../Schema/FirstLastMiddleNameSchema'
|
||||
import { CommonProgramSchema } from '../Schema/CommonProgramSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.InvestmentAgreement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.InvestmentAgreement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.InvestmentAgreement.Model
|
||||
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: {
|
||||
...VarsSchema,
|
||||
required: [...(VarsSchema.required || []), 'investment_agreement'],
|
||||
},
|
||||
subject: { type: 'string' },
|
||||
terms: { type: 'string' },
|
||||
uhdContract: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
date: { type: 'string' },
|
||||
number: { type: 'string' },
|
||||
},
|
||||
required: ['date', 'number'],
|
||||
},
|
||||
user: CommonUserSchema,
|
||||
coopBankAccount: BankAccountSchema,
|
||||
type: {
|
||||
type: 'string',
|
||||
enum: ['individual', 'entrepreneur', 'organization'],
|
||||
},
|
||||
individual: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...individualSchema.properties,
|
||||
},
|
||||
required: individualSchema.required,
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
organization: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...organizationSchema.properties,
|
||||
},
|
||||
required: organizationSchema.required,
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
entrepreneur: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...entrepreneurSchema.properties,
|
||||
},
|
||||
required: entrepreneurSchema.required,
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
organizationBankAccount: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...BankAccountSchema.properties,
|
||||
},
|
||||
required: BankAccountSchema.required,
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
entrepreneurBankAccount: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...BankAccountSchema.properties,
|
||||
},
|
||||
required: BankAccountSchema.required,
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'uhdContract', 'user', 'coopBankAccount', 'type'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.InvestmentAgreement.title,
|
||||
description: Cooperative.Registry.InvestmentAgreement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.InvestmentAgreement.context,
|
||||
translations: Cooperative.Registry.InvestmentAgreement.translations,
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { BankAccountSchema, CooperativeSchema, VarsSchema, decisionSchema, entrepreneurSchema, individualSchema, organizationSchema } from '../Schema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { UHDContractSchema } from '../Schema/UHDContractSchema'
|
||||
import { IntellectualResultSchema } from '../Schema/IntellectualResultSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.InvestByResultStatement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.InvestByResultStatement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.InvestByResultStatement.Model
|
||||
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
uhdContract: UHDContractSchema,
|
||||
user: CommonUserSchema,
|
||||
result: IntellectualResultSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'uhdContract', 'result', 'user'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.InvestByResultStatement.title,
|
||||
description: Cooperative.Registry.InvestByResultStatement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.InvestByResultStatement.context,
|
||||
translations: Cooperative.Registry.InvestByResultStatement.translations,
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { BankAccountSchema, CooperativeSchema, VarsSchema, decisionSchema, entrepreneurSchema, individualSchema, organizationSchema } from '../Schema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { UHDContractSchema } from '../Schema/UHDContractSchema'
|
||||
import { IntellectualResultSchema } from '../Schema/IntellectualResultSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.InvestByResultAct.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.InvestByResultAct.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.InvestByResultAct.Model
|
||||
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
uhdContract: UHDContractSchema,
|
||||
user: CommonUserSchema,
|
||||
result: IntellectualResultSchema,
|
||||
decision: decisionSchema,
|
||||
act: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
number: { type: 'string' },
|
||||
},
|
||||
required: ['number'],
|
||||
additionalProperties: true,
|
||||
},
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'uhdContract', 'result', 'user'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.InvestByResultAct.title,
|
||||
description: Cooperative.Registry.InvestByResultAct.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.InvestByResultAct.context,
|
||||
translations: Cooperative.Registry.InvestByResultAct.translations,
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { BankAccountSchema, CooperativeSchema, VarsSchema, decisionSchema, entrepreneurSchema, individualSchema, organizationSchema } from '../Schema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { UHDContractSchema } from '../Schema/UHDContractSchema'
|
||||
import { IntellectualResultSchema } from '../Schema/IntellectualResultSchema'
|
||||
import { ContributionAmountSchema } from '../Schema/ContributionAmountSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.InvestByMoneyStatement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.InvestByMoneyStatement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.InvestByMoneyStatement.Model
|
||||
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
uhdContract: UHDContractSchema,
|
||||
user: CommonUserSchema,
|
||||
contribution: ContributionAmountSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'uhdContract', 'user', 'contribution'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.InvestByMoneyStatement.title,
|
||||
description: Cooperative.Registry.InvestByMoneyStatement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.InvestByMoneyStatement.context,
|
||||
translations: Cooperative.Registry.InvestByMoneyStatement.translations,
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { individualSchema } from '../Schema/IndividualSchema'
|
||||
import { BankAccountSchema, VarsSchema, organizationSchema } from '../Schema'
|
||||
import { CooperativeSchema } from '../Schema/CooperativeSchema'
|
||||
import { entrepreneurSchema } from '../Schema/EntrepreneurSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.SelectBranchStatement.registry_id
|
||||
|
||||
/**
|
||||
* Интерфейс генерации заявления на вступление в кооператив
|
||||
*/
|
||||
export type Action = Cooperative.Registry.SelectBranchStatement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.SelectBranchStatement.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
type: {
|
||||
type: 'string',
|
||||
enum: ['individual', 'entrepreneur', 'organization'],
|
||||
},
|
||||
individual: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...individualSchema.properties,
|
||||
},
|
||||
required: [...individualSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
organization: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...organizationSchema.properties,
|
||||
},
|
||||
required: [...organizationSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
entrepreneur: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...entrepreneurSchema.properties,
|
||||
},
|
||||
required: [...entrepreneurSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
branch: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...organizationSchema.properties,
|
||||
},
|
||||
required: [...organizationSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
vars: VarsSchema,
|
||||
meta: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...IMetaJSONSchema.properties,
|
||||
},
|
||||
required: [...IMetaJSONSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
},
|
||||
required: ['meta', 'type', 'branch', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.SelectBranchStatement.title,
|
||||
description: Cooperative.Registry.SelectBranchStatement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.SelectBranchStatement.context,
|
||||
translations: Cooperative.Registry.SelectBranchStatement.translations,
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { UHDContractSchema } from '../Schema/UHDContractSchema'
|
||||
import { ContributionAmountSchema } from '../Schema/ContributionAmountSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.InvestMembershipConvertation.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.InvestMembershipConvertation.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.InvestMembershipConvertation.Model
|
||||
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
uhdContract: UHDContractSchema,
|
||||
user: CommonUserSchema,
|
||||
vars: VarsSchema,
|
||||
contribution: ContributionAmountSchema,
|
||||
appendix: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
number: { type: 'string' },
|
||||
},
|
||||
required: ['number'],
|
||||
additionalProperties: true,
|
||||
},
|
||||
},
|
||||
required: ['meta', 'coop', 'uhdContract', 'user', 'contribution', 'appendix', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.InvestMembershipConvertation.title,
|
||||
description: Cooperative.Registry.InvestMembershipConvertation.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.InvestMembershipConvertation.context,
|
||||
translations: Cooperative.Registry.InvestMembershipConvertation.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.RegulationElectronicSignature.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.RegulationElectronicSignature.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.RegulationElectronicSignature.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.RegulationElectronicSignature.title,
|
||||
description: Cooperative.Registry.RegulationElectronicSignature.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.RegulationElectronicSignature.context,
|
||||
translations: Cooperative.Registry.RegulationElectronicSignature.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.PrivacyPolicy.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.PrivacyPolicy.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.PrivacyPolicy.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.PrivacyPolicy.title,
|
||||
description: Cooperative.Registry.PrivacyPolicy.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.PrivacyPolicy.context,
|
||||
translations: Cooperative.Registry.PrivacyPolicy.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.AnnualGeneralMeetingAgenda.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.AnnualGeneralMeetingAgenda.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.AnnualGeneralMeetingAgenda.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.AnnualGeneralMeetingAgenda.title,
|
||||
description: Cooperative.Registry.AnnualGeneralMeetingAgenda.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.AnnualGeneralMeetingAgenda.context,
|
||||
translations: Cooperative.Registry.AnnualGeneralMeetingAgenda.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.SovietDecisionOnAnnualMeeting.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.SovietDecisionOnAnnualMeeting.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.SovietDecisionOnAnnualMeeting.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.SovietDecisionOnAnnualMeeting.title,
|
||||
description: Cooperative.Registry.SovietDecisionOnAnnualMeeting.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.SovietDecisionOnAnnualMeeting.context,
|
||||
translations: Cooperative.Registry.SovietDecisionOnAnnualMeeting.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.AnnualMeetingNotification.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.AnnualMeetingNotification.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.AnnualMeetingNotification.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.AnnualMeetingNotification.title,
|
||||
description: Cooperative.Registry.AnnualMeetingNotification.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.AnnualMeetingNotification.context,
|
||||
translations: Cooperative.Registry.AnnualMeetingNotification.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.VotingBallot.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.VotingBallot.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.VotingBallot.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.VotingBallot.title,
|
||||
description: Cooperative.Registry.VotingBallot.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.VotingBallot.context,
|
||||
translations: Cooperative.Registry.VotingBallot.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.AnnualGeneralMeetingDecision.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.AnnualGeneralMeetingDecision.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.AnnualGeneralMeetingDecision.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.AnnualGeneralMeetingDecision.title,
|
||||
description: Cooperative.Registry.AnnualGeneralMeetingDecision.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.AnnualGeneralMeetingDecision.context,
|
||||
translations: Cooperative.Registry.AnnualGeneralMeetingDecision.translations,
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.UserAgreement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.UserAgreement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.UserAgreement.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
user: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
full_name: { type: 'string' },
|
||||
},
|
||||
required: ['full_name'],
|
||||
},
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'user'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.UserAgreement.title,
|
||||
description: Cooperative.Registry.UserAgreement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.UserAgreement.context,
|
||||
translations: Cooperative.Registry.UserAgreement.translations,
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema, organizationSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.CoopenomicsAgreement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.CoopenomicsAgreement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.CoopenomicsAgreement.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
partner: organizationSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'partner'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.CoopenomicsAgreement.title,
|
||||
description: Cooperative.Registry.CoopenomicsAgreement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.CoopenomicsAgreement.context,
|
||||
translations: Cooperative.Registry.CoopenomicsAgreement.translations,
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { individualSchema } from '../Schema/IndividualSchema'
|
||||
import { VarsSchema, organizationSchema } from '../Schema'
|
||||
import { CooperativeSchema } from '../Schema/CooperativeSchema'
|
||||
import { entrepreneurSchema } from '../Schema/EntrepreneurSchema'
|
||||
import { decisionSchema } from '../Schema/DecisionSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.DecisionOfParticipantApplication.registry_id
|
||||
|
||||
/**
|
||||
* Интерфейс генерации решения совета
|
||||
*/
|
||||
export type Action = Cooperative.Registry.DecisionOfParticipantApplication.Action
|
||||
|
||||
export type Model = Cooperative.Registry.DecisionOfParticipantApplication.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
type: {
|
||||
type: 'string',
|
||||
enum: ['individual', 'entrepreneur', 'organization'],
|
||||
},
|
||||
individual: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...individualSchema.properties,
|
||||
},
|
||||
required: [...individualSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
organization: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...organizationSchema.properties,
|
||||
},
|
||||
required: [...organizationSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
entrepreneur: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...entrepreneurSchema.properties,
|
||||
},
|
||||
required: [...entrepreneurSchema.required],
|
||||
additionalProperties: true,
|
||||
nullable: true,
|
||||
},
|
||||
coop: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...CooperativeSchema.properties,
|
||||
},
|
||||
required: [...CooperativeSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
decision: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...decisionSchema.properties,
|
||||
},
|
||||
required: [...decisionSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
meta: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...IMetaJSONSchema.properties,
|
||||
},
|
||||
required: [...IMetaJSONSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'type', 'decision'], // vars не добавляем в обязательные параметры для обратной совместимости (начиная с 2.26)
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.DecisionOfParticipantApplication.title,
|
||||
description: Cooperative.Registry.DecisionOfParticipantApplication.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.DecisionOfParticipantApplication.context,
|
||||
translations: Cooperative.Registry.DecisionOfParticipantApplication.translations,
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema } from '../Schema/CooperativeSchema'
|
||||
import { decisionSchema } from '../Schema/DecisionSchema'
|
||||
import { VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.ProjectFreeDecision.registry_id
|
||||
|
||||
/**
|
||||
* Интерфейс генерации решения совета
|
||||
*/
|
||||
export type Action = Cooperative.Registry.ProjectFreeDecision.Action
|
||||
|
||||
export type Model = Cooperative.Registry.ProjectFreeDecision.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
coop: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...CooperativeSchema.properties,
|
||||
},
|
||||
required: [...CooperativeSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
meta: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...IMetaJSONSchema.properties,
|
||||
},
|
||||
required: [...IMetaJSONSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
project: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: { type: 'string' },
|
||||
question: { type: 'string' },
|
||||
decision: { type: 'string' },
|
||||
},
|
||||
required: ['id', 'question', 'decision'],
|
||||
additionalProperties: true,
|
||||
},
|
||||
suggester_name: { type: 'string' },
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'project', 'suggester_name', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.ProjectFreeDecision.title,
|
||||
description: Cooperative.Registry.ProjectFreeDecision.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.ProjectFreeDecision.context,
|
||||
translations: Cooperative.Registry.ProjectFreeDecision.translations,
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema } from '../Schema/CooperativeSchema'
|
||||
import { decisionSchema } from '../Schema/DecisionSchema'
|
||||
import { VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.FreeDecision.registry_id
|
||||
|
||||
/**
|
||||
* Интерфейс генерации решения совета
|
||||
*/
|
||||
export type Action = Cooperative.Registry.FreeDecision.Action
|
||||
|
||||
export type Model = Cooperative.Registry.FreeDecision.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
coop: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...CooperativeSchema.properties,
|
||||
},
|
||||
required: [...CooperativeSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
decision: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...decisionSchema.properties,
|
||||
},
|
||||
required: [...decisionSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
meta: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
...IMetaJSONSchema.properties,
|
||||
},
|
||||
required: [...IMetaJSONSchema.required],
|
||||
additionalProperties: true,
|
||||
},
|
||||
project: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: { type: 'string' },
|
||||
question: { type: 'string' },
|
||||
decision: { type: 'string' },
|
||||
},
|
||||
required: ['id', 'question', 'decision'],
|
||||
additionalProperties: true,
|
||||
},
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'decision', 'project'], // vars не вносим для обратной совместимости начиная с версии 2.25
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.FreeDecision.title,
|
||||
description: Cooperative.Registry.FreeDecision.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.FreeDecision.context,
|
||||
translations: Cooperative.Registry.FreeDecision.translations,
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.SosediAgreement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.SosediAgreement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.SosediAgreement.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.SosediAgreement.title,
|
||||
description: Cooperative.Registry.SosediAgreement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.SosediAgreement.context,
|
||||
translations: Cooperative.Registry.SosediAgreement.translations,
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
import { CommonRequestSchema } from '../Schema/CommonRequestSchema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.AssetContributionStatement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.AssetContributionStatement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.AssetContributionStatement.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
request: CommonRequestSchema,
|
||||
user: CommonUserSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'request', 'user'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.AssetContributionStatement.title,
|
||||
description: Cooperative.Registry.AssetContributionStatement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.AssetContributionStatement.context,
|
||||
translations: Cooperative.Registry.AssetContributionStatement.translations,
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema, decisionSchema } from '../Schema'
|
||||
import { CommonRequestSchema } from '../Schema/CommonRequestSchema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.AssetContributionDecision.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.AssetContributionDecision.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.AssetContributionDecision.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
request: CommonRequestSchema,
|
||||
user: CommonUserSchema,
|
||||
decision: decisionSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'request', 'user', 'decision'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.AssetContributionDecision.title,
|
||||
description: Cooperative.Registry.AssetContributionDecision.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.AssetContributionDecision.context,
|
||||
translations: Cooperative.Registry.AssetContributionDecision.translations,
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema, decisionSchema, organizationSchema } from '../Schema'
|
||||
import { CommonRequestSchema } from '../Schema/CommonRequestSchema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { FirstLastMiddleNameSchema } from '../Schema/FirstLastMiddleNameSchema'
|
||||
import { CommonProgramSchema } from '../Schema/CommonProgramSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.AssetContributionAct.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.AssetContributionAct.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.AssetContributionAct.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
request: CommonRequestSchema,
|
||||
user: CommonUserSchema,
|
||||
decision: decisionSchema,
|
||||
act_id: { type: 'string' },
|
||||
receiver: FirstLastMiddleNameSchema,
|
||||
program: CommonProgramSchema,
|
||||
branch: { ...organizationSchema, nullable: true },
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'request', 'user', 'decision', 'act_id', 'receiver', 'program'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.AssetContributionAct.title,
|
||||
description: Cooperative.Registry.AssetContributionAct.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.AssetContributionAct.context,
|
||||
translations: Cooperative.Registry.AssetContributionAct.translations,
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema } from '../Schema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { CommonRequestSchema } from '../Schema/CommonRequestSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.ReturnByAssetStatement.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.ReturnByAssetStatement.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.ReturnByAssetStatement.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
request: CommonRequestSchema,
|
||||
user: CommonUserSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'request', 'user'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.ReturnByAssetStatement.title,
|
||||
description: Cooperative.Registry.ReturnByAssetStatement.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.ReturnByAssetStatement.context,
|
||||
translations: Cooperative.Registry.ReturnByAssetStatement.translations,
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema, decisionSchema } from '../Schema'
|
||||
import { CommonRequestSchema } from '../Schema/CommonRequestSchema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.ReturnByAssetDecision.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.ReturnByAssetDecision.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.ReturnByAssetDecision.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
request: CommonRequestSchema,
|
||||
user: CommonUserSchema,
|
||||
decision: decisionSchema,
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'request', 'user', 'decision'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.ReturnByAssetDecision.title,
|
||||
description: Cooperative.Registry.ReturnByAssetDecision.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.ReturnByAssetDecision.context,
|
||||
translations: Cooperative.Registry.ReturnByAssetDecision.translations,
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
import type { JSONSchemaType } from 'ajv'
|
||||
import { Cooperative } from 'cooptypes'
|
||||
import type { ITemplate } from '../Interfaces'
|
||||
import { IMetaJSONSchema } from '../Schema/MetaSchema'
|
||||
import { CooperativeSchema, VarsSchema, decisionSchema, organizationSchema } from '../Schema'
|
||||
import { CommonRequestSchema } from '../Schema/CommonRequestSchema'
|
||||
import { CommonUserSchema } from '../Schema/CommonUserSchema'
|
||||
import { FirstLastMiddleNameSchema } from '../Schema/FirstLastMiddleNameSchema'
|
||||
import { CommonProgramSchema } from '../Schema/CommonProgramSchema'
|
||||
|
||||
export const registry_id = Cooperative.Registry.ReturnByAssetAct.registry_id
|
||||
|
||||
// Модель действия для генерации
|
||||
export type Action = Cooperative.Registry.ReturnByAssetAct.Action
|
||||
|
||||
// Модель данных
|
||||
export type Model = Cooperative.Registry.ReturnByAssetAct.Model
|
||||
|
||||
// Схема для сверки
|
||||
export const Schema: JSONSchemaType<Model> = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
meta: IMetaJSONSchema,
|
||||
coop: CooperativeSchema,
|
||||
vars: VarsSchema,
|
||||
request: CommonRequestSchema,
|
||||
user: CommonUserSchema,
|
||||
decision: decisionSchema,
|
||||
act_id: { type: 'string' },
|
||||
transmitter: FirstLastMiddleNameSchema,
|
||||
program: CommonProgramSchema,
|
||||
branch: { ...organizationSchema, nullable: true },
|
||||
},
|
||||
required: ['meta', 'coop', 'vars', 'request', 'user', 'decision', 'act_id', 'transmitter', 'program'],
|
||||
additionalProperties: true,
|
||||
}
|
||||
|
||||
export const Template: ITemplate<Model> = {
|
||||
title: Cooperative.Registry.ReturnByAssetAct.title,
|
||||
description: Cooperative.Registry.ReturnByAssetAct.description,
|
||||
model: Schema,
|
||||
context: Cooperative.Registry.ReturnByAssetAct.context,
|
||||
translations: Cooperative.Registry.ReturnByAssetAct.translations,
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
export * as WalletAgreement from './1.WalletAgreement'
|
||||
export * as RegulationElectronicSignature from './2.RegulationElectronicSignature'
|
||||
export * as PrivacyPolicy from './3.PrivacyPolicy'
|
||||
export * as UserAgreement from './4.UserAgreement'
|
||||
export * as CoopenomicsAgreement from './50.CoopenomicsAgreement'
|
||||
export * as ParticipantApplication from './100.ParticipantApplication'
|
||||
export * as DecisionOfParticipantApplication from './501.DecisionOfParticipantApplication'
|
||||
export * as SelectBranchStatement from './101.SelectBranchStatement'
|
||||
export * as ProjectFreeDecision from './599.ProjectFreeDecision'
|
||||
export * as FreeDecision from './600.FreeDecision'
|
||||
export * as AssetContributionStatement from './700.assetContributionStatement'
|
||||
export * as ReturnByAssetStatement from './800.returnByAssetStatement'
|
||||
|
||||
export * as AssetContributionDecision from './701.assetContributionDecision'
|
||||
export * as ReturnByAssetDecision from './801.returnByAssetDecision'
|
||||
|
||||
export * as AssetContributionAct from './702.assetContributionAct'
|
||||
export * as ReturnByAssetAct from './802.returnByAssetAct'
|
||||
export * as InvestmentAgreement from './1000.InvestmentAgreement'
|
||||
export * as InvestByResultStatement from './1001.InvestByResultStatement'
|
||||
export * as InvestByResultAct from './1002.InvestByResultAct'
|
||||
export * as InvestByMoneyStatement from './1005.InvestByMoneyStatement'
|
||||
export * as InvestMembershipConvertation from './1010.InvestMembershipConvertation'
|
||||
export * as SosediAgreement from './699.SosediAgreement'
|
||||
|
||||
export * as AnnualGeneralMeetingAgenda from './300.AnnualGeneralMeetingAgenda'
|
||||
export * as SovietDecisionOnAnnualMeeting from './301.SovietDecisionOnAnnualMeeting'
|
||||
export * as AnnualMeetingNotification from './302.AnnualMeetingNotification'
|
||||
export * as VotingBallot from './303.VotingBallot'
|
||||
export * as AnnualGeneralMeetingDecision from './304.AnnualGeneralMeetingDecision'
|
||||
|
||||
export * from './registry'
|
||||
@@ -1,60 +0,0 @@
|
||||
import * as WalletAgreement from './1.WalletAgreement'
|
||||
import * as RegulationElectronicSignaturet from './2.RegulationElectronicSignature'
|
||||
import * as PrivacyPolicy from './3.PrivacyPolicy'
|
||||
import * as UserAgreement from './4.UserAgreement'
|
||||
import * as CoopenomicsAgreement from './50.CoopenomicsAgreement'
|
||||
import * as ParticipantApplication from './100.ParticipantApplication'
|
||||
import * as DecisionOfParticipantApplication from './501.DecisionOfParticipantApplication'
|
||||
import * as SelectBranchStatement from './101.SelectBranchStatement'
|
||||
import * as ProjectFreeDecision from './599.ProjectFreeDecision'
|
||||
import * as FreeDecision from './600.FreeDecision'
|
||||
import * as AssetContributionStatement from './700.assetContributionStatement'
|
||||
import * as ReturnByAssetStatement from './800.returnByAssetStatement'
|
||||
import * as AssetContributionDecision from './701.assetContributionDecision'
|
||||
import * as ReturnByAssetDecision from './801.returnByAssetDecision'
|
||||
|
||||
import * as AssetContributionAct from './702.assetContributionAct'
|
||||
import * as ReturnByAssetAct from './802.returnByAssetAct'
|
||||
import * as InvestmentAgreement from './1000.InvestmentAgreement'
|
||||
import * as InvestByResultStatement from './1001.InvestByResultStatement'
|
||||
import * as InvestByResultAct from './1002.InvestByResultAct'
|
||||
import * as InvestByMoneyStatement from './1005.InvestByMoneyStatement'
|
||||
import * as InvestMembershipConvertation from './1010.InvestMembershipConvertation'
|
||||
|
||||
import * as SosediAgreement from './699.SosediAgreement'
|
||||
|
||||
import * as AnnualGeneralMeetingAgenda from './300.AnnualGeneralMeetingAgenda'
|
||||
import * as SovietDecisionOnAnnualMeeting from './301.SovietDecisionOnAnnualMeeting'
|
||||
import * as AnnualMeetingNotification from './302.AnnualMeetingNotification'
|
||||
import * as VotingBallot from './303.VotingBallot'
|
||||
import * as AnnualGeneralMeetingDecision from './304.AnnualGeneralMeetingDecision'
|
||||
|
||||
export const Registry = {
|
||||
1: WalletAgreement,
|
||||
2: RegulationElectronicSignaturet,
|
||||
3: PrivacyPolicy,
|
||||
4: UserAgreement,
|
||||
50: CoopenomicsAgreement,
|
||||
100: ParticipantApplication,
|
||||
101: SelectBranchStatement,
|
||||
300: AnnualGeneralMeetingAgenda,
|
||||
301: SovietDecisionOnAnnualMeeting,
|
||||
302: AnnualMeetingNotification,
|
||||
303: VotingBallot,
|
||||
304: AnnualGeneralMeetingDecision,
|
||||
501: DecisionOfParticipantApplication,
|
||||
599: ProjectFreeDecision,
|
||||
600: FreeDecision,
|
||||
699: SosediAgreement,
|
||||
700: AssetContributionStatement,
|
||||
701: AssetContributionDecision,
|
||||
702: AssetContributionAct,
|
||||
800: ReturnByAssetStatement,
|
||||
801: ReturnByAssetDecision,
|
||||
802: ReturnByAssetAct,
|
||||
1000: InvestmentAgreement,
|
||||
1001: InvestByResultStatement,
|
||||
1002: InvestByResultAct,
|
||||
1005: InvestByMoneyStatement,
|
||||
1010: InvestMembershipConvertation,
|
||||
}
|
||||
Reference in New Issue
Block a user