gemcap-be-common 1.4.225 → 1.4.227
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/models/BankIntegrationAccount.model.d.ts +3 -1
- package/models/BankIntegrationAccount.model.js +0 -3
- package/models/BankIntegrationAccount.model.ts +4 -4
- package/models/BankIntegrationTransaction.model.d.ts +3 -1
- package/models/BankIntegrationTransaction.model.js +0 -3
- package/models/BankIntegrationTransaction.model.ts +4 -4
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -26,13 +26,15 @@ import mongoose from 'mongoose';
|
|
|
26
26
|
export interface IBankIntegrationAccount {
|
|
27
27
|
integrationId: mongoose.Types.ObjectId;
|
|
28
28
|
externalAccountId: string;
|
|
29
|
-
provider: string;
|
|
30
29
|
name: string;
|
|
31
30
|
accountType: string;
|
|
32
31
|
currency: string;
|
|
33
32
|
rawPayload: string;
|
|
34
33
|
lastSyncAt: Date;
|
|
35
34
|
}
|
|
35
|
+
export type TBankIntegrationAccountCreate = Omit<IBankIntegrationAccount, 'integrationId'> & {
|
|
36
|
+
integrationId: string;
|
|
37
|
+
};
|
|
36
38
|
export interface IBankIntegrationAccountDoc extends IBankIntegrationAccount, mongoose.Document {
|
|
37
39
|
_id: mongoose.Types.ObjectId;
|
|
38
40
|
createdAt: Date;
|
|
@@ -5,7 +5,6 @@ import { MODEL_NAMES } from './_models';
|
|
|
5
5
|
export interface IBankIntegrationAccount {
|
|
6
6
|
integrationId: mongoose.Types.ObjectId;
|
|
7
7
|
externalAccountId: string;
|
|
8
|
-
provider: string;
|
|
9
8
|
name: string;
|
|
10
9
|
accountType: string;
|
|
11
10
|
currency: string;
|
|
@@ -13,6 +12,10 @@ export interface IBankIntegrationAccount {
|
|
|
13
12
|
lastSyncAt: Date;
|
|
14
13
|
}
|
|
15
14
|
|
|
15
|
+
export type TBankIntegrationAccountCreate = Omit<IBankIntegrationAccount, 'integrationId'> & {
|
|
16
|
+
integrationId: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
16
19
|
export interface IBankIntegrationAccountDoc extends IBankIntegrationAccount, mongoose.Document {
|
|
17
20
|
_id: mongoose.Types.ObjectId;
|
|
18
21
|
createdAt: Date;
|
|
@@ -43,9 +46,6 @@ export const BankIntegrationAccountSchema = new mongoose.Schema<IBankIntegration
|
|
|
43
46
|
externalAccountId: {
|
|
44
47
|
type: String,
|
|
45
48
|
},
|
|
46
|
-
provider: {
|
|
47
|
-
type: String,
|
|
48
|
-
},
|
|
49
49
|
name: {
|
|
50
50
|
type: String,
|
|
51
51
|
},
|
|
@@ -26,7 +26,6 @@ import mongoose from 'mongoose';
|
|
|
26
26
|
export interface IBankIntegrationTransaction {
|
|
27
27
|
accountId: mongoose.Types.ObjectId;
|
|
28
28
|
externalTransactionId: string;
|
|
29
|
-
provider: string;
|
|
30
29
|
amount: number;
|
|
31
30
|
currency: string;
|
|
32
31
|
postedAt: Date;
|
|
@@ -35,6 +34,9 @@ export interface IBankIntegrationTransaction {
|
|
|
35
34
|
rawPayload: string;
|
|
36
35
|
syncedAt: Date;
|
|
37
36
|
}
|
|
37
|
+
export type TBankIntegrationTransactionCreate = Omit<IBankIntegrationTransaction, 'accountId'> & {
|
|
38
|
+
accountId: string;
|
|
39
|
+
};
|
|
38
40
|
export interface IBankIntegrationTransactionDoc extends IBankIntegrationTransaction, mongoose.Document {
|
|
39
41
|
_id: mongoose.Types.ObjectId;
|
|
40
42
|
createdAt: Date;
|
|
@@ -5,7 +5,6 @@ import { MODEL_NAMES } from './_models';
|
|
|
5
5
|
export interface IBankIntegrationTransaction {
|
|
6
6
|
accountId: mongoose.Types.ObjectId;
|
|
7
7
|
externalTransactionId: string;
|
|
8
|
-
provider: string;
|
|
9
8
|
amount: number;
|
|
10
9
|
currency: string;
|
|
11
10
|
postedAt: Date;
|
|
@@ -15,6 +14,10 @@ export interface IBankIntegrationTransaction {
|
|
|
15
14
|
syncedAt: Date;
|
|
16
15
|
}
|
|
17
16
|
|
|
17
|
+
export type TBankIntegrationTransactionCreate = Omit<IBankIntegrationTransaction, 'accountId'> & {
|
|
18
|
+
accountId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
18
21
|
export interface IBankIntegrationTransactionDoc extends IBankIntegrationTransaction, mongoose.Document {
|
|
19
22
|
_id: mongoose.Types.ObjectId;
|
|
20
23
|
createdAt: Date;
|
|
@@ -45,9 +48,6 @@ export const BankIntegrationTransactionSchema = new mongoose.Schema<IBankIntegra
|
|
|
45
48
|
externalTransactionId: {
|
|
46
49
|
type: String,
|
|
47
50
|
},
|
|
48
|
-
provider: {
|
|
49
|
-
type: String,
|
|
50
|
-
},
|
|
51
51
|
amount: {
|
|
52
52
|
type: Number,
|
|
53
53
|
},
|