@fiado/type-kit 1.2.34 → 1.2.35
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/bin/transaction/dtos/Product.js +1 -0
- package/bin/transaction/dtos/TransactionGetDetailResponse.d.ts +18 -0
- package/bin/transaction/dtos/TransactionGetDetailResponse.js +6 -0
- package/bin/transaction/index.d.ts +1 -0
- package/bin/transaction/index.js +1 -0
- package/package.json +1 -1
- package/src/transaction/dtos/Product.ts +2 -1
- package/src/transaction/dtos/TransactionGetDetailResponse.ts +19 -0
- package/src/transaction/index.ts +2 -1
|
@@ -21,6 +21,7 @@ __decorate([
|
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], Product.prototype, "type", void 0);
|
|
23
23
|
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
25
|
(0, class_validator_1.IsString)(),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], Product.prototype, "description", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
import { OperationEnum } from "../enums/OperationEnum";
|
|
3
|
+
import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
|
|
4
|
+
import { TransactionStatusEnum } from "../enums/TransactionStatusEnum";
|
|
5
|
+
import { Credit } from "./Credit";
|
|
6
|
+
import { Debit } from "./Debit";
|
|
7
|
+
import { Product } from "./Product";
|
|
8
|
+
export declare class TransactionGetDetailResponse {
|
|
9
|
+
currencyId: CountryId;
|
|
10
|
+
source: TransactionSourceEnum;
|
|
11
|
+
transactionNumber: string;
|
|
12
|
+
product: Product;
|
|
13
|
+
credit: Credit | null;
|
|
14
|
+
debit: Debit | null;
|
|
15
|
+
status: TransactionStatusEnum;
|
|
16
|
+
date: string;
|
|
17
|
+
opertaion: OperationEnum;
|
|
18
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './dtos/TransactionCreateRequest';
|
|
2
2
|
export * from './dtos/TransactionCreateResponse';
|
|
3
3
|
export * from './dtos/TransactionGetResponse';
|
|
4
|
+
export * from './dtos/TransactionGetDetailResponse';
|
|
4
5
|
export * from './enums/OperationEnum';
|
|
5
6
|
export * from './enums/TransactionSourceEnum';
|
|
6
7
|
export * from './enums/TransactionStatusEnum';
|
package/bin/transaction/index.js
CHANGED
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./dtos/TransactionCreateRequest"), exports);
|
|
19
19
|
__exportStar(require("./dtos/TransactionCreateResponse"), exports);
|
|
20
20
|
__exportStar(require("./dtos/TransactionGetResponse"), exports);
|
|
21
|
+
__exportStar(require("./dtos/TransactionGetDetailResponse"), exports);
|
|
21
22
|
//enums
|
|
22
23
|
__exportStar(require("./enums/OperationEnum"), exports);
|
|
23
24
|
__exportStar(require("./enums/TransactionSourceEnum"), exports);
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {IsNotEmpty, IsString} from "class-validator";
|
|
2
2
|
import {ProductTypeEnum} from "../../productCatalog";
|
|
3
3
|
|
|
4
4
|
export class Product {
|
|
@@ -7,6 +7,7 @@ export class Product {
|
|
|
7
7
|
@IsString()
|
|
8
8
|
type: ProductTypeEnum;
|
|
9
9
|
|
|
10
|
+
@IsNotEmpty()
|
|
10
11
|
@IsString()
|
|
11
12
|
description: string;
|
|
12
13
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
import { OperationEnum } from "../enums/OperationEnum";
|
|
3
|
+
import { TransactionSourceEnum } from "../enums/TransactionSourceEnum";
|
|
4
|
+
import { TransactionStatusEnum } from "../enums/TransactionStatusEnum";
|
|
5
|
+
import { Credit } from "./Credit";
|
|
6
|
+
import { Debit } from "./Debit";
|
|
7
|
+
import { Product } from "./Product";
|
|
8
|
+
|
|
9
|
+
export class TransactionGetDetailResponse {
|
|
10
|
+
currencyId:CountryId
|
|
11
|
+
source: TransactionSourceEnum
|
|
12
|
+
transactionNumber:string
|
|
13
|
+
product:Product
|
|
14
|
+
credit:Credit|null
|
|
15
|
+
debit:Debit|null
|
|
16
|
+
status: TransactionStatusEnum
|
|
17
|
+
date:string
|
|
18
|
+
opertaion: OperationEnum
|
|
19
|
+
}
|
package/src/transaction/index.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
export * from './dtos/TransactionCreateRequest';
|
|
3
3
|
export * from './dtos/TransactionCreateResponse';
|
|
4
4
|
export * from './dtos/TransactionGetResponse';
|
|
5
|
+
export * from './dtos/TransactionGetDetailResponse';
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
//enums
|
|
8
9
|
export * from './enums/OperationEnum';
|
|
9
10
|
export * from './enums/TransactionSourceEnum';
|
|
10
|
-
export * from './enums/TransactionStatusEnum';
|
|
11
|
+
export * from './enums/TransactionStatusEnum';
|