@silexpert/core 1.3.103 → 1.3.104
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/dist/cjs/api/resources/BankDedup.d.ts +9 -0
- package/dist/cjs/api/resources/BankDedup.d.ts.map +1 -0
- package/dist/cjs/api/resources/BankDedup.js +20 -0
- package/dist/cjs/api/resources/BankDedup.js.map +1 -0
- package/dist/cjs/api/resources/CalendarEvent.d.ts +1 -0
- package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
- package/dist/cjs/api/resources/CalendarEvent.js +3 -0
- package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +3 -1
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.d.ts +2 -1
- package/dist/cjs/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.js +7 -1
- package/dist/cjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +8 -2
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts +2 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.js +1 -0
- package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +104 -0
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +359 -0
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +15 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +68 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/BankDedup.d.ts +9 -0
- package/dist/mjs/api/resources/BankDedup.d.ts.map +1 -0
- package/dist/mjs/api/resources/BankDedup.js +16 -0
- package/dist/mjs/api/resources/BankDedup.js.map +1 -0
- package/dist/mjs/api/resources/CalendarEvent.d.ts +1 -0
- package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
- package/dist/mjs/api/resources/CalendarEvent.js +3 -0
- package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +3 -1
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.d.ts +2 -1
- package/dist/mjs/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.js +7 -1
- package/dist/mjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +8 -2
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts +2 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.js +1 -0
- package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +104 -0
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +406 -0
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +15 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +76 -0
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BankDedup.ts +19 -0
- package/ts/api/resources/CalendarEvent.ts +4 -0
- package/ts/api/resources.ts +3 -1
- package/ts/types/Enum/ConstitutionState.ts +7 -1
- package/ts/types/Enum/ReasonTerminationType.ts +8 -2
- package/ts/types/Enum/RegistrationSource.ts +3 -2
- package/ts/types/Interface/api/bankDedup/BankDedup.ts +305 -0
- package/ts/types/Interface/api/stripe/Create.ts +53 -0
- package/ts/types/index.ts +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export declare class BankDedupRequest {
|
|
2
|
+
csv: string;
|
|
3
|
+
initial: number;
|
|
4
|
+
target: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class BankDedupAnalysisParams {
|
|
7
|
+
csv: File;
|
|
8
|
+
initial: number;
|
|
9
|
+
target: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class BankDedupFileUploadBody {
|
|
12
|
+
initial: number;
|
|
13
|
+
target: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class BankTx {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
dateValue: string;
|
|
19
|
+
credit: number;
|
|
20
|
+
debit: number;
|
|
21
|
+
sign: 1 | -1;
|
|
22
|
+
amount: number;
|
|
23
|
+
cents: number;
|
|
24
|
+
}
|
|
25
|
+
export declare class DuplicateGroup {
|
|
26
|
+
id: string;
|
|
27
|
+
transactions: BankTx[];
|
|
28
|
+
amount: number;
|
|
29
|
+
cents: number;
|
|
30
|
+
sign: 1 | -1;
|
|
31
|
+
confidence: number;
|
|
32
|
+
method: 'exact' | 'fuzzy_high' | 'fuzzy_medium' | 'fuzzy_low';
|
|
33
|
+
}
|
|
34
|
+
export declare class BankDedupRemovedTx {
|
|
35
|
+
id: string;
|
|
36
|
+
isSelected: boolean;
|
|
37
|
+
confidence?: number;
|
|
38
|
+
method?: string;
|
|
39
|
+
amount?: number;
|
|
40
|
+
transactionCount?: number;
|
|
41
|
+
transactions?: {
|
|
42
|
+
id: string;
|
|
43
|
+
label: string;
|
|
44
|
+
dateValue: string;
|
|
45
|
+
isKept: boolean;
|
|
46
|
+
isCredit: boolean;
|
|
47
|
+
}[];
|
|
48
|
+
}
|
|
49
|
+
export declare class BankDedupResult {
|
|
50
|
+
success: true;
|
|
51
|
+
initial: number;
|
|
52
|
+
target: number;
|
|
53
|
+
finalRaw: number;
|
|
54
|
+
finalAfterDedup: number;
|
|
55
|
+
diffBefore: number;
|
|
56
|
+
diffAfter: number;
|
|
57
|
+
removedTxs: BankDedupRemovedTx[];
|
|
58
|
+
removedCount: number;
|
|
59
|
+
keptCount: number;
|
|
60
|
+
csvDeduped: string;
|
|
61
|
+
allGroups: BankDedupGroup[];
|
|
62
|
+
debug: {
|
|
63
|
+
totalGroups: number;
|
|
64
|
+
selectedGroups: number;
|
|
65
|
+
iterations: number;
|
|
66
|
+
strategiesUsed: string[];
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export declare class BankDedupGroup {
|
|
70
|
+
id: string;
|
|
71
|
+
isSelected: boolean;
|
|
72
|
+
confidence?: number;
|
|
73
|
+
method?: string;
|
|
74
|
+
amount?: number;
|
|
75
|
+
transactionCount?: number;
|
|
76
|
+
transactions?: {
|
|
77
|
+
id: string;
|
|
78
|
+
label: string;
|
|
79
|
+
dateValue: string;
|
|
80
|
+
isKept: boolean;
|
|
81
|
+
isCredit: boolean;
|
|
82
|
+
}[];
|
|
83
|
+
}
|
|
84
|
+
export declare class BankDedupImpossible {
|
|
85
|
+
success: false;
|
|
86
|
+
reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';
|
|
87
|
+
message: string;
|
|
88
|
+
initial?: number;
|
|
89
|
+
target?: number;
|
|
90
|
+
finalRaw?: number;
|
|
91
|
+
diffBefore?: number;
|
|
92
|
+
bestAttempt?: {
|
|
93
|
+
finalAfterDedup: number;
|
|
94
|
+
diffAfter: number;
|
|
95
|
+
removedCount: number;
|
|
96
|
+
};
|
|
97
|
+
stats?: {
|
|
98
|
+
totalTx?: number;
|
|
99
|
+
totalGroups?: number;
|
|
100
|
+
strategiesTried?: string[];
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export type BankDedupResponse = BankDedupResult | BankDedupImpossible;
|
|
104
|
+
//# sourceMappingURL=BankDedup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankDedup.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankDedup/BankDedup.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAG3B,GAAG,EAAE,MAAM,CAAC;IAIZ,OAAO,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,uBAAuB;IAElC,GAAG,EAAE,IAAI,CAAC;IAIV,OAAO,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,uBAAuB;IAGlC,OAAO,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,MAAM;IAGjB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,E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CACH;AAED,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BankDedupImpossible = exports.BankDedupGroup = exports.BankDedupResult = exports.BankDedupRemovedTx = exports.DuplicateGroup = exports.BankTx = exports.BankDedupFileUploadBody = exports.BankDedupAnalysisParams = exports.BankDedupRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const utils_1 = require("../../../../utils");
|
|
15
|
+
class BankDedupRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.BankDedupRequest = BankDedupRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, utils_1.ApiProperty)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], BankDedupRequest.prototype, "csv", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, utils_1.ApiProperty)(),
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], BankDedupRequest.prototype, "initial", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, utils_1.ApiProperty)(),
|
|
30
|
+
(0, class_validator_1.IsNumber)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], BankDedupRequest.prototype, "target", void 0);
|
|
33
|
+
class BankDedupAnalysisParams {
|
|
34
|
+
}
|
|
35
|
+
exports.BankDedupAnalysisParams = BankDedupAnalysisParams;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, utils_1.ApiProperty)(),
|
|
38
|
+
__metadata("design:type", File)
|
|
39
|
+
], BankDedupAnalysisParams.prototype, "csv", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, utils_1.ApiProperty)(),
|
|
42
|
+
(0, class_validator_1.IsNumber)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], BankDedupAnalysisParams.prototype, "initial", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, utils_1.ApiProperty)(),
|
|
47
|
+
(0, class_validator_1.IsNumber)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], BankDedupAnalysisParams.prototype, "target", void 0);
|
|
50
|
+
class BankDedupFileUploadBody {
|
|
51
|
+
}
|
|
52
|
+
exports.BankDedupFileUploadBody = BankDedupFileUploadBody;
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.ApiProperty)(),
|
|
55
|
+
(0, class_validator_1.IsNumber)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], BankDedupFileUploadBody.prototype, "initial", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.ApiProperty)(),
|
|
60
|
+
(0, class_validator_1.IsNumber)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], BankDedupFileUploadBody.prototype, "target", void 0);
|
|
63
|
+
class BankTx {
|
|
64
|
+
}
|
|
65
|
+
exports.BankTx = BankTx;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, utils_1.ApiProperty)(),
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], BankTx.prototype, "id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, utils_1.ApiProperty)(),
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], BankTx.prototype, "label", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, utils_1.ApiProperty)(),
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], BankTx.prototype, "dateValue", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.ApiProperty)(),
|
|
83
|
+
(0, class_validator_1.IsNumber)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], BankTx.prototype, "credit", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, utils_1.ApiProperty)(),
|
|
88
|
+
(0, class_validator_1.IsNumber)(),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], BankTx.prototype, "debit", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, utils_1.ApiProperty)(),
|
|
93
|
+
(0, class_validator_1.IsIn)([1, -1]),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], BankTx.prototype, "sign", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, utils_1.ApiProperty)(),
|
|
98
|
+
(0, class_validator_1.IsNumber)(),
|
|
99
|
+
(0, class_validator_1.Min)(0),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], BankTx.prototype, "amount", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, utils_1.ApiProperty)(),
|
|
104
|
+
(0, class_validator_1.IsNumber)(),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], BankTx.prototype, "cents", void 0);
|
|
107
|
+
class DuplicateGroup {
|
|
108
|
+
}
|
|
109
|
+
exports.DuplicateGroup = DuplicateGroup;
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, utils_1.ApiProperty)(),
|
|
112
|
+
(0, class_validator_1.IsString)(),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], DuplicateGroup.prototype, "id", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, utils_1.ApiProperty)({ type: [BankTx] }),
|
|
117
|
+
(0, class_validator_1.IsArray)(),
|
|
118
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
119
|
+
__metadata("design:type", Array)
|
|
120
|
+
], DuplicateGroup.prototype, "transactions", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, utils_1.ApiProperty)(),
|
|
123
|
+
(0, class_validator_1.IsNumber)(),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], DuplicateGroup.prototype, "amount", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, utils_1.ApiProperty)(),
|
|
128
|
+
(0, class_validator_1.IsNumber)(),
|
|
129
|
+
__metadata("design:type", Number)
|
|
130
|
+
], DuplicateGroup.prototype, "cents", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, utils_1.ApiProperty)(),
|
|
133
|
+
(0, class_validator_1.IsIn)([1, -1]),
|
|
134
|
+
__metadata("design:type", Number)
|
|
135
|
+
], DuplicateGroup.prototype, "sign", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, utils_1.ApiProperty)(),
|
|
138
|
+
(0, class_validator_1.IsNumber)(),
|
|
139
|
+
(0, class_validator_1.Min)(0),
|
|
140
|
+
(0, class_validator_1.Max)(1),
|
|
141
|
+
__metadata("design:type", Number)
|
|
142
|
+
], DuplicateGroup.prototype, "confidence", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, utils_1.ApiProperty)(),
|
|
145
|
+
(0, class_validator_1.IsIn)(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low']),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], DuplicateGroup.prototype, "method", void 0);
|
|
148
|
+
class BankDedupRemovedTx {
|
|
149
|
+
}
|
|
150
|
+
exports.BankDedupRemovedTx = BankDedupRemovedTx;
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, utils_1.ApiProperty)(),
|
|
153
|
+
(0, class_validator_1.IsString)(),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], BankDedupRemovedTx.prototype, "id", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, utils_1.ApiProperty)(),
|
|
158
|
+
(0, class_validator_1.IsBoolean)(),
|
|
159
|
+
__metadata("design:type", Boolean)
|
|
160
|
+
], BankDedupRemovedTx.prototype, "isSelected", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, utils_1.ApiProperty)(),
|
|
163
|
+
(0, class_validator_1.IsOptional)(),
|
|
164
|
+
(0, class_validator_1.IsNumber)(),
|
|
165
|
+
(0, class_validator_1.Min)(0),
|
|
166
|
+
(0, class_validator_1.Max)(1),
|
|
167
|
+
__metadata("design:type", Number)
|
|
168
|
+
], BankDedupRemovedTx.prototype, "confidence", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, utils_1.ApiProperty)(),
|
|
171
|
+
(0, class_validator_1.IsOptional)(),
|
|
172
|
+
(0, class_validator_1.IsString)(),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], BankDedupRemovedTx.prototype, "method", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, utils_1.ApiProperty)(),
|
|
177
|
+
(0, class_validator_1.IsOptional)(),
|
|
178
|
+
(0, class_validator_1.IsNumber)(),
|
|
179
|
+
__metadata("design:type", Number)
|
|
180
|
+
], BankDedupRemovedTx.prototype, "amount", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, utils_1.ApiProperty)(),
|
|
183
|
+
(0, class_validator_1.IsOptional)(),
|
|
184
|
+
(0, class_validator_1.IsNumber)(),
|
|
185
|
+
__metadata("design:type", Number)
|
|
186
|
+
], BankDedupRemovedTx.prototype, "transactionCount", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, utils_1.ApiProperty)(),
|
|
189
|
+
(0, class_validator_1.IsOptional)(),
|
|
190
|
+
(0, class_validator_1.IsArray)(),
|
|
191
|
+
__metadata("design:type", Array)
|
|
192
|
+
], BankDedupRemovedTx.prototype, "transactions", void 0);
|
|
193
|
+
class BankDedupResult {
|
|
194
|
+
}
|
|
195
|
+
exports.BankDedupResult = BankDedupResult;
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, utils_1.ApiProperty)(),
|
|
198
|
+
(0, class_validator_1.IsBoolean)(),
|
|
199
|
+
__metadata("design:type", Boolean)
|
|
200
|
+
], BankDedupResult.prototype, "success", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, utils_1.ApiProperty)(),
|
|
203
|
+
(0, class_validator_1.IsNumber)(),
|
|
204
|
+
__metadata("design:type", Number)
|
|
205
|
+
], BankDedupResult.prototype, "initial", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, utils_1.ApiProperty)(),
|
|
208
|
+
(0, class_validator_1.IsNumber)(),
|
|
209
|
+
__metadata("design:type", Number)
|
|
210
|
+
], BankDedupResult.prototype, "target", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, utils_1.ApiProperty)(),
|
|
213
|
+
(0, class_validator_1.IsNumber)(),
|
|
214
|
+
__metadata("design:type", Number)
|
|
215
|
+
], BankDedupResult.prototype, "finalRaw", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, utils_1.ApiProperty)(),
|
|
218
|
+
(0, class_validator_1.IsNumber)(),
|
|
219
|
+
__metadata("design:type", Number)
|
|
220
|
+
], BankDedupResult.prototype, "finalAfterDedup", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, utils_1.ApiProperty)(),
|
|
223
|
+
(0, class_validator_1.IsNumber)(),
|
|
224
|
+
__metadata("design:type", Number)
|
|
225
|
+
], BankDedupResult.prototype, "diffBefore", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, utils_1.ApiProperty)(),
|
|
228
|
+
(0, class_validator_1.IsNumber)(),
|
|
229
|
+
__metadata("design:type", Number)
|
|
230
|
+
], BankDedupResult.prototype, "diffAfter", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, utils_1.ApiProperty)(),
|
|
233
|
+
(0, class_validator_1.IsArray)(),
|
|
234
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
235
|
+
__metadata("design:type", Array)
|
|
236
|
+
], BankDedupResult.prototype, "removedTxs", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, utils_1.ApiProperty)(),
|
|
239
|
+
(0, class_validator_1.IsNumber)(),
|
|
240
|
+
__metadata("design:type", Number)
|
|
241
|
+
], BankDedupResult.prototype, "removedCount", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, utils_1.ApiProperty)(),
|
|
244
|
+
(0, class_validator_1.IsNumber)(),
|
|
245
|
+
__metadata("design:type", Number)
|
|
246
|
+
], BankDedupResult.prototype, "keptCount", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, utils_1.ApiProperty)(),
|
|
249
|
+
(0, class_validator_1.IsString)(),
|
|
250
|
+
__metadata("design:type", String)
|
|
251
|
+
], BankDedupResult.prototype, "csvDeduped", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, utils_1.ApiProperty)(),
|
|
254
|
+
(0, class_validator_1.IsArray)(),
|
|
255
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
256
|
+
__metadata("design:type", Array)
|
|
257
|
+
], BankDedupResult.prototype, "allGroups", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
(0, utils_1.ApiProperty)(),
|
|
260
|
+
__metadata("design:type", Object)
|
|
261
|
+
], BankDedupResult.prototype, "debug", void 0);
|
|
262
|
+
class BankDedupGroup {
|
|
263
|
+
}
|
|
264
|
+
exports.BankDedupGroup = BankDedupGroup;
|
|
265
|
+
__decorate([
|
|
266
|
+
(0, utils_1.ApiProperty)(),
|
|
267
|
+
(0, class_validator_1.IsString)(),
|
|
268
|
+
__metadata("design:type", String)
|
|
269
|
+
], BankDedupGroup.prototype, "id", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
(0, utils_1.ApiProperty)(),
|
|
272
|
+
(0, class_validator_1.IsBoolean)(),
|
|
273
|
+
__metadata("design:type", Boolean)
|
|
274
|
+
], BankDedupGroup.prototype, "isSelected", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, utils_1.ApiProperty)(),
|
|
277
|
+
(0, class_validator_1.IsOptional)(),
|
|
278
|
+
(0, class_validator_1.IsNumber)(),
|
|
279
|
+
(0, class_validator_1.Min)(0),
|
|
280
|
+
(0, class_validator_1.Max)(1),
|
|
281
|
+
__metadata("design:type", Number)
|
|
282
|
+
], BankDedupGroup.prototype, "confidence", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
(0, utils_1.ApiProperty)(),
|
|
285
|
+
(0, class_validator_1.IsOptional)(),
|
|
286
|
+
(0, class_validator_1.IsString)(),
|
|
287
|
+
__metadata("design:type", String)
|
|
288
|
+
], BankDedupGroup.prototype, "method", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, utils_1.ApiProperty)(),
|
|
291
|
+
(0, class_validator_1.IsOptional)(),
|
|
292
|
+
(0, class_validator_1.IsNumber)(),
|
|
293
|
+
__metadata("design:type", Number)
|
|
294
|
+
], BankDedupGroup.prototype, "amount", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
(0, utils_1.ApiProperty)(),
|
|
297
|
+
(0, class_validator_1.IsOptional)(),
|
|
298
|
+
(0, class_validator_1.IsNumber)(),
|
|
299
|
+
__metadata("design:type", Number)
|
|
300
|
+
], BankDedupGroup.prototype, "transactionCount", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
(0, utils_1.ApiProperty)(),
|
|
303
|
+
(0, class_validator_1.IsOptional)(),
|
|
304
|
+
(0, class_validator_1.IsArray)(),
|
|
305
|
+
__metadata("design:type", Array)
|
|
306
|
+
], BankDedupGroup.prototype, "transactions", void 0);
|
|
307
|
+
class BankDedupImpossible {
|
|
308
|
+
}
|
|
309
|
+
exports.BankDedupImpossible = BankDedupImpossible;
|
|
310
|
+
__decorate([
|
|
311
|
+
(0, utils_1.ApiProperty)(),
|
|
312
|
+
(0, class_validator_1.IsBoolean)(),
|
|
313
|
+
__metadata("design:type", Boolean)
|
|
314
|
+
], BankDedupImpossible.prototype, "success", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
(0, utils_1.ApiProperty)(),
|
|
317
|
+
(0, class_validator_1.IsIn)(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES']),
|
|
318
|
+
__metadata("design:type", String)
|
|
319
|
+
], BankDedupImpossible.prototype, "reason", void 0);
|
|
320
|
+
__decorate([
|
|
321
|
+
(0, utils_1.ApiProperty)(),
|
|
322
|
+
(0, class_validator_1.IsString)(),
|
|
323
|
+
__metadata("design:type", String)
|
|
324
|
+
], BankDedupImpossible.prototype, "message", void 0);
|
|
325
|
+
__decorate([
|
|
326
|
+
(0, utils_1.ApiProperty)(),
|
|
327
|
+
(0, class_validator_1.IsOptional)(),
|
|
328
|
+
(0, class_validator_1.IsNumber)(),
|
|
329
|
+
__metadata("design:type", Number)
|
|
330
|
+
], BankDedupImpossible.prototype, "initial", void 0);
|
|
331
|
+
__decorate([
|
|
332
|
+
(0, utils_1.ApiProperty)(),
|
|
333
|
+
(0, class_validator_1.IsOptional)(),
|
|
334
|
+
(0, class_validator_1.IsNumber)(),
|
|
335
|
+
__metadata("design:type", Number)
|
|
336
|
+
], BankDedupImpossible.prototype, "target", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
(0, utils_1.ApiProperty)(),
|
|
339
|
+
(0, class_validator_1.IsOptional)(),
|
|
340
|
+
(0, class_validator_1.IsNumber)(),
|
|
341
|
+
__metadata("design:type", Number)
|
|
342
|
+
], BankDedupImpossible.prototype, "finalRaw", void 0);
|
|
343
|
+
__decorate([
|
|
344
|
+
(0, utils_1.ApiProperty)(),
|
|
345
|
+
(0, class_validator_1.IsOptional)(),
|
|
346
|
+
(0, class_validator_1.IsNumber)(),
|
|
347
|
+
__metadata("design:type", Number)
|
|
348
|
+
], BankDedupImpossible.prototype, "diffBefore", void 0);
|
|
349
|
+
__decorate([
|
|
350
|
+
(0, utils_1.ApiProperty)(),
|
|
351
|
+
(0, class_validator_1.IsOptional)(),
|
|
352
|
+
__metadata("design:type", Object)
|
|
353
|
+
], BankDedupImpossible.prototype, "bestAttempt", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
(0, utils_1.ApiProperty)(),
|
|
356
|
+
(0, class_validator_1.IsOptional)(),
|
|
357
|
+
__metadata("design:type", Object)
|
|
358
|
+
], BankDedupImpossible.prototype, "stats", void 0);
|
|
359
|
+
//# sourceMappingURL=BankDedup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankDedup/BankDedup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqH;AACrH,6CAAgD;AAEhD,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AATC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6CACC;AAIZ;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;iDACK;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;gDACI;AAGjB,MAAa,uBAAuB;CAWnC;AAXD,0DAWC;AATC;IADC,IAAA,mBAAW,GAAE;8BACT,IAAI;oDAAC;AAIV;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wDACK;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0B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HC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACK;AAKhB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACe;AAK1B;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;oDAON;AAGN,MAAa,mBAAmB;CAgD/B;AAhDD,kDAgDC;AA7CC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;;oDACG;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,sBAAI,EAAC,CAAC,sBAAsB,EAAE,iBAAiB,EAAE,eAAe,EAAE,yBAAyB,CAAC,CAAC;;mDACG;AAIjG;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACK;AAKhB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM;AAKjB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAKhB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAKlB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACS;AAIpB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;;wDAKX;AAIF;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;;kDAKX","sourcesContent":["import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class BankDedupRequest {\n @ApiProperty()\n @IsString()\n csv: string; // CSV en string (avec header: label,dateValue,credit,debit)\n\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankDedupAnalysisParams {\n @ApiProperty()\n csv: File;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n}\n\nexport class BankDedupFileUploadBody {\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankTx {\n @ApiProperty()\n @IsString()\n id: string; // id interne généré\n\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n dateValue: string; // YYYY-MM-DD\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // 1 = crédit net, -1 = débit net\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n amount: number; // valeur absolue du mouvement (en positif)\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes pour calculs exacts\n}\n\nexport class DuplicateGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty({ type: [BankTx] })\n @IsArray()\n @ValidateNested({ each: true })\n transactions: BankTx[];\n\n @ApiProperty()\n @IsNumber()\n amount: number; // montant commun\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // signe commun\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence: number; // score de confiance [0 - 1]\n\n @ApiProperty()\n @IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low'])\n method: 'exact' | 'fuzzy_high' | 'fuzzy_medium' | 'fuzzy_low'; // méthode de détection\n}\n\nexport class BankDedupRemovedTx {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupResult {\n @ApiProperty()\n @IsBoolean()\n success: true;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n\n @ApiProperty()\n @IsNumber()\n finalRaw: number;\n\n @ApiProperty()\n @IsNumber()\n finalAfterDedup: number;\n\n @ApiProperty()\n @IsNumber()\n diffBefore: number; // target - finalRaw\n\n @ApiProperty()\n @IsNumber()\n diffAfter: number; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n removedTxs: BankDedupRemovedTx[];\n\n @ApiProperty()\n @IsNumber()\n removedCount: number;\n\n @ApiProperty()\n @IsNumber()\n keptCount: number;\n\n @ApiProperty()\n @IsString()\n csvDeduped: string;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n allGroups: BankDedupGroup[];\n\n @ApiProperty()\n debug: {\n totalGroups: number;\n selectedGroups: number;\n iterations: number;\n strategiesUsed: string[];\n };\n}\n\nexport class BankDedupGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupImpossible {\n @ApiProperty()\n @IsBoolean()\n success: false;\n\n @ApiProperty()\n @IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES'])\n reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';\n\n @ApiProperty()\n @IsString()\n message: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n initial?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n target?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n finalRaw?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n diffBefore?: number;\n\n @ApiProperty()\n @IsOptional()\n bestAttempt?: {\n finalAfterDedup: number;\n diffAfter: number;\n removedCount: number;\n };\n\n @ApiProperty()\n @IsOptional()\n stats?: {\n totalTx?: number;\n totalGroups?: number;\n strategiesTried?: string[];\n };\n}\n\nexport type BankDedupResponse = BankDedupResult | BankDedupImpossible;\n"]}
|
|
@@ -28,6 +28,11 @@ export declare class CreateSubscriptionSessionOff {
|
|
|
28
28
|
ref: string;
|
|
29
29
|
returnUrl?: string;
|
|
30
30
|
}
|
|
31
|
+
export declare class CreateSubscriptionSessionOffErp {
|
|
32
|
+
idSociety: number;
|
|
33
|
+
stripePriceId: string;
|
|
34
|
+
returnUrl?: string;
|
|
35
|
+
}
|
|
31
36
|
export declare class CreatePaymentIntent {
|
|
32
37
|
stripeCustomerId: string;
|
|
33
38
|
paymentMethodId: string;
|
|
@@ -54,4 +59,14 @@ export declare class CreatePurchaseSession {
|
|
|
54
59
|
quantity: number;
|
|
55
60
|
}>;
|
|
56
61
|
}
|
|
62
|
+
export declare class CreatePaymentSession {
|
|
63
|
+
stripeCustomerId: string;
|
|
64
|
+
label?: string;
|
|
65
|
+
returnUrl: string;
|
|
66
|
+
metadata?: Record<string, string | number>;
|
|
67
|
+
amountInCentsTaxIncluded?: number;
|
|
68
|
+
priceId?: string;
|
|
69
|
+
idVatForInternalInvoicing?: number;
|
|
70
|
+
stripeAccount?: string;
|
|
71
|
+
}
|
|
57
72
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAGlC,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,M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EAAE,MAAM,CAAC;IAKlC,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAKnC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreatePurchaseSession = exports.CreateTapToPayConnectionToken = exports.CreateTapToPayIntent = exports.PostProcessPaymentAutomatically = exports.CreatePaymentIntent = exports.CreateSubscriptionSessionOff = exports.CreateCommercialSession = exports.CreateSubscriptionSession = exports.CreateImportTransactionForSociety = exports.CreateCustomer = exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
|
|
12
|
+
exports.CreatePaymentSession = exports.CreatePurchaseSession = exports.CreateTapToPayConnectionToken = exports.CreateTapToPayIntent = exports.PostProcessPaymentAutomatically = exports.CreatePaymentIntent = exports.CreateSubscriptionSessionOffErp = exports.CreateSubscriptionSessionOff = exports.CreateCommercialSession = exports.CreateSubscriptionSession = exports.CreateImportTransactionForSociety = exports.CreateCustomer = exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
@@ -113,6 +113,25 @@ __decorate([
|
|
|
113
113
|
(0, class_validator_1.IsString)(),
|
|
114
114
|
__metadata("design:type", String)
|
|
115
115
|
], CreateSubscriptionSessionOff.prototype, "returnUrl", void 0);
|
|
116
|
+
class CreateSubscriptionSessionOffErp {
|
|
117
|
+
}
|
|
118
|
+
exports.CreateSubscriptionSessionOffErp = CreateSubscriptionSessionOffErp;
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, utils_1.ApiProperty)(),
|
|
121
|
+
(0, class_validator_1.IsInt)(),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], CreateSubscriptionSessionOffErp.prototype, "idSociety", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, utils_1.ApiProperty)(),
|
|
126
|
+
(0, class_validator_1.IsString)(),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], CreateSubscriptionSessionOffErp.prototype, "stripePriceId", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
131
|
+
(0, class_validator_1.IsOptional)(),
|
|
132
|
+
(0, class_validator_1.IsString)(),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], CreateSubscriptionSessionOffErp.prototype, "returnUrl", void 0);
|
|
116
135
|
class CreatePaymentIntent {
|
|
117
136
|
}
|
|
118
137
|
exports.CreatePaymentIntent = CreatePaymentIntent;
|
|
@@ -198,4 +217,52 @@ __decorate([
|
|
|
198
217
|
(0, class_validator_1.IsArray)(),
|
|
199
218
|
__metadata("design:type", Array)
|
|
200
219
|
], CreatePurchaseSession.prototype, "items", void 0);
|
|
220
|
+
class CreatePaymentSession {
|
|
221
|
+
}
|
|
222
|
+
exports.CreatePaymentSession = CreatePaymentSession;
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, utils_1.ApiProperty)(),
|
|
225
|
+
(0, class_validator_1.IsString)(),
|
|
226
|
+
__metadata("design:type", String)
|
|
227
|
+
], CreatePaymentSession.prototype, "stripeCustomerId", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
230
|
+
(0, class_validator_1.IsOptional)(),
|
|
231
|
+
(0, class_validator_1.IsString)(),
|
|
232
|
+
__metadata("design:type", String)
|
|
233
|
+
], CreatePaymentSession.prototype, "label", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
(0, utils_1.ApiProperty)(),
|
|
236
|
+
(0, class_validator_1.IsString)(),
|
|
237
|
+
__metadata("design:type", String)
|
|
238
|
+
], CreatePaymentSession.prototype, "returnUrl", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
241
|
+
(0, class_validator_1.IsOptional)(),
|
|
242
|
+
__metadata("design:type", Object)
|
|
243
|
+
], CreatePaymentSession.prototype, "metadata", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
246
|
+
(0, class_validator_1.IsOptional)(),
|
|
247
|
+
(0, class_validator_1.IsInt)(),
|
|
248
|
+
__metadata("design:type", Number)
|
|
249
|
+
], CreatePaymentSession.prototype, "amountInCentsTaxIncluded", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
252
|
+
(0, class_validator_1.IsOptional)(),
|
|
253
|
+
(0, class_validator_1.IsString)(),
|
|
254
|
+
__metadata("design:type", String)
|
|
255
|
+
], CreatePaymentSession.prototype, "priceId", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
258
|
+
(0, class_validator_1.IsOptional)(),
|
|
259
|
+
(0, class_validator_1.IsInt)(),
|
|
260
|
+
__metadata("design:type", Number)
|
|
261
|
+
], CreatePaymentSession.prototype, "idVatForInternalInvoicing", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
264
|
+
(0, class_validator_1.IsOptional)(),
|
|
265
|
+
(0, class_validator_1.IsString)(),
|
|
266
|
+
__metadata("design:type", String)
|
|
267
|
+
], CreatePaymentSession.prototype, "stripeAccount", void 0);
|
|
201
268
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuH;AACvH,6CAAqE;AA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AE;;iEACgB;AAI3B;IAFC,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;IAClE,IAAA,0BAAQ,GAAE;;gEACe;AAG1B;IADC,IAAA,2BAAmB,GAAE;;uDACqB;AAI3C;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;8BACH,KAAK;oDAAwC","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuH;AACvH,6CAAqE;AAErE,sFAA2E;AAC3E,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6DACc;AAG3B,MAAa,cAAc;CAgB1B;AAhBD,wCAgBC;AAbC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0CACG;AAIX;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6CACG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ADC,IAAA,2BAAmB,GAAE;;uDACqB;AAI3C;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;8BACH,KAAK;oDAAwC;AAEtD,MAAa,oBAAoB;CAqChC;AArCD,oDAqCC;AAlCC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;8DACc;AAKzB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;uDACO;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;sDAC8B;AAK3C;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sEAC0B;AAKlC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACM;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uEAC2B;AAKnC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffErp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n}\n"]}
|
|
@@ -726,6 +726,7 @@ export * from './Interface/api/webmail/ExportEmails';
|
|
|
726
726
|
export * from './Interface/api/webmail/PostAttachmentEmailFromLambdaParams';
|
|
727
727
|
export * from './Interface/api/webmail/GetPaginatedWhereObjectParams';
|
|
728
728
|
export * from './Interface/api/bankAccount/Delete';
|
|
729
|
+
export * from './Interface/api/bankDedup/BankDedup';
|
|
729
730
|
export * from './Interface/api/log/QueryLogPagination';
|
|
730
731
|
export * from './Interface/api/employee/QueryEmployeeSearch';
|
|
731
732
|
export * from './Interface/api/employee/QueryCreateEmployee';
|