@coopenomics/desktop 2.2.8 → 2.2.9

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.9](https://github.com/coopenomics/mono/compare/v2.2.8...v2.2.9) (2025-03-12)
7
+
8
+ **Note:** Version bump only for package @coopenomics/desktop
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.2.8](https://github.com/coopenomics/monocoop/compare/v2.2.7...v2.2.8) (2025-02-10)
7
15
 
8
16
  **Note:** Version bump only for package @coopenomics/desktop
package/Env-testnet.ts ADDED
@@ -0,0 +1,12 @@
1
+ export const BASE_URL = 'testnet.coopenomics.world';
2
+ export const NODE_ENV = 'development';
3
+ export const APP_NAME = 'COOPENOMICS';
4
+ export const BACKEND_URL = 'https://testnet.coopenomics.world/backend';
5
+ export const COOPNAME = 'voskhod';
6
+ export const CURRENCY = 'RUB';
7
+ export const STORAGE_URL = 'https://testnet.coopenomics.world/uploaded/';
8
+ export const UPLOAD_URL = 'https://testnet.coopenomics.world/upload';
9
+ export const CHAIN_URL = 'https://testnet.coopenomics.world/api';
10
+ export const COOP_SHORT_NAME = 'Цифровой Кооператив';
11
+ export const CHAIN_ID = 'f0364a3f9fd913081f1c0b05c6f8f50a59b2ba60bb928cb321ba3a9a36316624';
12
+ export const SENTRY_DSN ='https://b8151ac0239b44339e0e8c65c9aa59c4@o245142.ingest.sentry.io/5739100';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coopenomics/desktop",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "A Desktop Project",
5
5
  "productName": "Desktop App",
6
6
  "author": "Alex Ant <dacom.dark.sun@gmail.com>",
@@ -20,8 +20,8 @@
20
20
  "prepublishOnly": "npm run build:lib"
21
21
  },
22
22
  "dependencies": {
23
- "@coopenomics/controller": "2.2.8",
24
- "@coopenomics/sdk": "2.2.8",
23
+ "@coopenomics/controller": "2.2.9",
24
+ "@coopenomics/sdk": "2.2.9",
25
25
  "@dicebear/collection": "^9.0.1",
26
26
  "@dicebear/core": "^9.0.1",
27
27
  "@fortawesome/fontawesome-svg-core": "^6.5.2",
@@ -45,7 +45,7 @@
45
45
  "@wharfkit/wallet-plugin-privatekey": "^1.1.0",
46
46
  "axios": "^1.2.1",
47
47
  "compression": "^1.7.4",
48
- "cooptypes": "2.2.8",
48
+ "cooptypes": "2.2.9",
49
49
  "dompurify": "^3.1.7",
50
50
  "dotenv": "^16.4.5",
51
51
  "email-regex": "^5.0.0",
@@ -94,5 +94,5 @@
94
94
  "npm": ">= 6.13.4",
95
95
  "yarn": ">= 1.21.1"
96
96
  },
97
- "gitHead": "973590281c916620f866b9e39253c6b5bf85f9d4"
97
+ "gitHead": "51d736eba49ce8aaea6e58c40772254c0c194f46"
98
98
  }
@@ -2,6 +2,7 @@ import { client } from 'src/shared/api/client'
2
2
  import { Mutations } from '@coopenomics/sdk'
3
3
 
4
4
  async function updateBankAccount(data: Mutations.PaymentMethods.UpdateBankAccount.IInput['data']): Promise<Mutations.PaymentMethods.UpdateBankAccount.IOutput[typeof Mutations.PaymentMethods.UpdateBankAccount.name]>{
5
+ console.log('data on update', data)
5
6
  const {updateBankAccount: result} = await client.Mutation(Mutations.PaymentMethods.UpdateBankAccount.mutation, {variables: {
6
7
  data
7
8
  }})
@@ -1,10 +1,9 @@
1
1
  import { api } from '../api';
2
- import { Mutations } from '@coopenomics/sdk'
3
2
 
4
3
  export interface IBankTransferData {
5
4
  account_number: string;
6
5
  bank_name: string;
7
- card_number?: string;
6
+ card_number?: string | null;
8
7
  currency: string;
9
8
  details: {
10
9
  bik: string;
@@ -18,14 +17,22 @@ export interface IUpdateBranchBankAccount {
18
17
  method_id: string;
19
18
  method_type: string;
20
19
  data: IBankTransferData;
20
+ is_default: boolean;
21
+ created_at: Date;
22
+ updated_at: Date;
21
23
  }
22
24
 
23
25
 
24
26
  export function useUpdateBranchBankAccount() {
25
27
 
26
- async function updateBankAccount(data: Mutations.PaymentMethods.UpdateBankAccount.IInput['data']) {
28
+ async function updateBankAccount(data: IUpdateBranchBankAccount) {
27
29
  data.is_default = true
28
- return await api.updateBankAccount(data)
30
+
31
+ // Убираем ненужные поля TODO: очевидно что так делать не надо
32
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
+ const { created_at, updated_at, method_type, ...rest } = data;
34
+
35
+ return await api.updateBankAccount(rest)
29
36
  }
30
37
 
31
38
  return {
@@ -11,7 +11,7 @@
11
11
 
12
12
  const createOrder = async () => {
13
13
  try {
14
-
14
+ //TODO: запрос должен быть корректным на основе информации из бч
15
15
  const document = await api.generateReturnByAssetStatement({
16
16
  coopname: props.coopname,
17
17
  request: {
@@ -15,11 +15,11 @@ div(v-if="localRequest").row.justify-around.q-pt-lg
15
15
  div.q-pa-md
16
16
  q-input(v-model="localRequest.remain_units" :readonly="!showEdit" standout="bg-teal text-white" label="Остаток" type="number")
17
17
  template(#append)
18
- p единиц
18
+ span единиц
19
19
 
20
20
  q-input(v-model="price" :readonly="!showEdit" standout="bg-teal text-white" label="Цена" type="number" step="100" min="0")
21
21
  template(#append)
22
- p {{ symbol }}
22
+ span {{ symbol }}
23
23
 
24
24
  div(v-if="isMy")
25
25
  div(v-if="loggedIn")
@@ -1 +1,2 @@
1
1
  export const agreementsBase = ['wallet', 'signature', 'privacy', 'user']
2
+ export const sosediProgram = ['sosedi']
@@ -7,10 +7,10 @@ q-card(flat ).no-select
7
7
  span Осталось:
8
8
  q-badge(size="lg").q-ml-xs {{ request.remain_units }} единиц
9
9
  div
10
- span Цена:
10
+ span Цена:
11
11
  q-badge(size="lg").q-ml-xs {{ request.unit_cost }}
12
-
13
-
12
+
13
+
14
14
  </template>
15
15
 
16
16
  <script setup lang="ts">