From 71fd4f6cb5c53f9cd972c035e657d3927cb98bda Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Sun, 10 Nov 2024 18:12:06 +0300 Subject: [PATCH 1/7] Add plan.monthlyChargeCurrency --- src/dbScheme/plan.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dbScheme/plan.ts b/src/dbScheme/plan.ts index 3656528..7bed00f 100644 --- a/src/dbScheme/plan.ts +++ b/src/dbScheme/plan.ts @@ -15,10 +15,15 @@ export interface PlanDBScheme { name: string; /** - * Monthly charge for plan in dollars + * Monthly charge for plan in currencry specified in `monthlyChargeCurrency` */ monthlyCharge: number; + /** + * Currency of `monthlyCharge` + */ + monthlyChargeCurrency: string; + /** * Maximum amount of events available for plan */ From acb9984bc96cf229e4c84d1ea916b2ee04afcb63 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:13:03 +0000 Subject: [PATCH 2/7] Lint and build --- build/src/dbScheme/plan.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/src/dbScheme/plan.d.ts b/build/src/dbScheme/plan.d.ts index abd7f28..a183c3c 100644 --- a/build/src/dbScheme/plan.d.ts +++ b/build/src/dbScheme/plan.d.ts @@ -12,9 +12,13 @@ export interface PlanDBScheme { */ name: string; /** - * Monthly charge for plan in dollars + * Monthly charge for plan in currencry specified in `monthlyChargeCurrency` */ monthlyCharge: number; + /** + * Currency of `monthlyCharge` + */ + monthlyChargeCurrency: string; /** * Maximum amount of events available for plan */ From 141fb66428be8004d36b32e738553f7eaac3428b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:13:20 +0000 Subject: [PATCH 3/7] Bump version up to 0.1.21 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cc16d2a..3fb96ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hawk.so/types", - "version": "0.1.20", + "version": "0.1.21", "description": "TypeScript definitions for Hawk", "types": "build/index.d.ts", "main": "build/index.js", From 6acd049e0923a1a36ae2a7aba81f1d01101fe805 Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Sun, 10 Nov 2024 20:01:42 +0300 Subject: [PATCH 4/7] Add currency to businessOperation --- src/base/businessOperation/businessOperation.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/base/businessOperation/businessOperation.ts b/src/base/businessOperation/businessOperation.ts index 53b4bcf..e0f57c9 100644 --- a/src/base/businessOperation/businessOperation.ts +++ b/src/base/businessOperation/businessOperation.ts @@ -49,6 +49,11 @@ export interface PayloadOfDepositByUser { */ amount: number; + /** + * Currency of payment + */ + currency: string; + /** * ID of the user who made the payment */ @@ -74,6 +79,11 @@ export interface PayloadOfWorkspacePlanPurchase { */ amount: number; + /** + * Currency of payment + */ + currency: string; + /** * ID of the user who made the payment */ From 5ee9fddca168db83313dccde239eaf2bb3afb50f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2024 17:02:36 +0000 Subject: [PATCH 5/7] Lint and build --- build/src/base/businessOperation/businessOperation.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/src/base/businessOperation/businessOperation.d.ts b/build/src/base/businessOperation/businessOperation.d.ts index d83218f..95b4aba 100644 --- a/build/src/base/businessOperation/businessOperation.d.ts +++ b/build/src/base/businessOperation/businessOperation.d.ts @@ -41,6 +41,10 @@ export interface PayloadOfDepositByUser { * Amount of payment */ amount: number; + /** + * Currency of payment + */ + currency: string; /** * ID of the user who made the payment */ @@ -62,6 +66,10 @@ export interface PayloadOfWorkspacePlanPurchase { * Amount of payment */ amount: number; + /** + * Currency of payment + */ + currency: string; /** * ID of the user who made the payment */ From 2ba9f8873f87df577e6faed8159011a421d2b28e Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Sun, 17 Nov 2024 17:27:04 +0300 Subject: [PATCH 6/7] Update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3fb96ae..9556c10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hawk.so/types", - "version": "0.1.21", + "version": "0.1.22", "description": "TypeScript definitions for Hawk", "types": "build/index.d.ts", "main": "build/index.js", From d1749e15a4ee2b1289aa11f7b7c4d9b3e200f0cb Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Sun, 17 Nov 2024 17:50:05 +0300 Subject: [PATCH 7/7] Version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9556c10..3fb96ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hawk.so/types", - "version": "0.1.22", + "version": "0.1.21", "description": "TypeScript definitions for Hawk", "types": "build/index.d.ts", "main": "build/index.js",