gemcap-be-common 1.4.221 → 1.4.223
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/BankIntegrations.model.d.ts +56 -0
- package/models/BankIntegrations.model.js +40 -0
- package/models/BankIntegrations.model.ts +72 -0
- package/models/_models.d.ts +1 -0
- package/models/_models.js +1 -0
- package/models/_models.ts +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from 'mongoose';
|
|
26
|
+
export interface IBankIntegration {
|
|
27
|
+
provider: string;
|
|
28
|
+
accessToken: string;
|
|
29
|
+
refreshToken: string;
|
|
30
|
+
tokenType?: string;
|
|
31
|
+
tokenId?: string;
|
|
32
|
+
expiresAt: Date;
|
|
33
|
+
scopes: string;
|
|
34
|
+
connectedAt: Date;
|
|
35
|
+
lastSyncAt: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface IBankIntegrationDoc extends IBankIntegration, mongoose.Document {
|
|
38
|
+
_id: mongoose.Types.ObjectId;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
}
|
|
42
|
+
export interface IBankIntegrationLean extends IBankIntegration {
|
|
43
|
+
_id: mongoose.Types.ObjectId;
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
}
|
|
47
|
+
export interface IBankIntegrationPlain extends IBankIntegration {
|
|
48
|
+
_id: string;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
updatedAt: Date;
|
|
51
|
+
}
|
|
52
|
+
export type TBankIntegrationModel = mongoose.Model<IBankIntegration>;
|
|
53
|
+
export declare const BankIntegrationSchema: mongoose.Schema<IBankIntegration, TBankIntegrationModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IBankIntegration, mongoose.Document<unknown, {}, mongoose.FlatRecord<IBankIntegration>> & mongoose.FlatRecord<IBankIntegration> & {
|
|
54
|
+
_id: mongoose.Types.ObjectId;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const BankIntegration: TBankIntegrationModel;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BankIntegration = exports.BankIntegrationSchema = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const _models_1 = require("./_models");
|
|
9
|
+
exports.BankIntegrationSchema = new mongoose_1.default.Schema({
|
|
10
|
+
provider: {
|
|
11
|
+
type: String,
|
|
12
|
+
},
|
|
13
|
+
accessToken: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
16
|
+
refreshToken: {
|
|
17
|
+
type: String,
|
|
18
|
+
},
|
|
19
|
+
tokenType: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: false,
|
|
22
|
+
},
|
|
23
|
+
tokenId: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false,
|
|
26
|
+
},
|
|
27
|
+
expiresAt: {
|
|
28
|
+
type: Date,
|
|
29
|
+
},
|
|
30
|
+
scopes: {
|
|
31
|
+
type: String,
|
|
32
|
+
},
|
|
33
|
+
connectedAt: {
|
|
34
|
+
type: Date,
|
|
35
|
+
},
|
|
36
|
+
lastSyncAt: {
|
|
37
|
+
type: Date,
|
|
38
|
+
},
|
|
39
|
+
}, { timestamps: true });
|
|
40
|
+
exports.BankIntegration = mongoose_1.default.model(_models_1.MODEL_NAMES.bankIntegrations, exports.BankIntegrationSchema);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
import { MODEL_NAMES } from './_models';
|
|
4
|
+
|
|
5
|
+
export interface IBankIntegration {
|
|
6
|
+
provider: string;
|
|
7
|
+
accessToken: string;
|
|
8
|
+
refreshToken: string;
|
|
9
|
+
tokenType?: string;
|
|
10
|
+
tokenId?: string;
|
|
11
|
+
expiresAt: Date;
|
|
12
|
+
scopes: string;
|
|
13
|
+
connectedAt: Date;
|
|
14
|
+
lastSyncAt: Date;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface IBankIntegrationDoc extends IBankIntegration, mongoose.Document {
|
|
18
|
+
_id: mongoose.Types.ObjectId;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IBankIntegrationLean extends IBankIntegration {
|
|
24
|
+
_id: mongoose.Types.ObjectId;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface IBankIntegrationPlain extends IBankIntegration {
|
|
30
|
+
_id: string;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type TBankIntegrationModel = mongoose.Model<IBankIntegration>;
|
|
36
|
+
|
|
37
|
+
export const BankIntegrationSchema = new mongoose.Schema<IBankIntegration, TBankIntegrationModel>(
|
|
38
|
+
{
|
|
39
|
+
provider: {
|
|
40
|
+
type: String,
|
|
41
|
+
},
|
|
42
|
+
accessToken: {
|
|
43
|
+
type: String,
|
|
44
|
+
},
|
|
45
|
+
refreshToken: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
48
|
+
tokenType: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: false,
|
|
51
|
+
},
|
|
52
|
+
tokenId: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: false,
|
|
55
|
+
},
|
|
56
|
+
expiresAt: {
|
|
57
|
+
type: Date,
|
|
58
|
+
},
|
|
59
|
+
scopes: {
|
|
60
|
+
type: String,
|
|
61
|
+
},
|
|
62
|
+
connectedAt: {
|
|
63
|
+
type: Date,
|
|
64
|
+
},
|
|
65
|
+
lastSyncAt: {
|
|
66
|
+
type: Date,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{ timestamps: true },
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
export const BankIntegration = mongoose.model<IBankIntegration, TBankIntegrationModel>(MODEL_NAMES.bankIntegrations, BankIntegrationSchema);
|
package/models/_models.d.ts
CHANGED
package/models/_models.js
CHANGED
package/models/_models.ts
CHANGED