@fiado/type-kit 1.0.3 → 1.0.4
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/card/dtos/CardApplicationRequestDto.d.ts +1 -1
- package/bin/card/dtos/CardApplicationRequestDto.js +6 -6
- package/bin/card/dtos/CreateCardRequestDto.d.ts +1 -1
- package/bin/card/dtos/CreateCardRequestDto.js +29 -29
- package/bin/index.d.ts +6 -0
- package/bin/index.js +6 -0
- package/package.json +1 -1
- package/src/card/dtos/CardApplicationRequestDto.ts +1 -1
- package/src/card/dtos/CreateCardRequestDto.ts +1 -1
- package/src/index.ts +10 -0
|
@@ -9,26 +9,26 @@ 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.
|
|
12
|
+
exports.CardApplicationRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const CountryId_1 = require("../../country/enums/CountryId");
|
|
16
16
|
const CardType_1 = require("../enums/CardType");
|
|
17
17
|
const AddressShippingDto_1 = require("../../address/dtos/AddressShippingDto");
|
|
18
|
-
class
|
|
18
|
+
class CardApplicationRequestDto {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.CardApplicationRequestDto = CardApplicationRequestDto;
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsEnum)(CountryId_1.CountryId),
|
|
23
23
|
__metadata("design:type", Number)
|
|
24
|
-
],
|
|
24
|
+
], CardApplicationRequestDto.prototype, "countryId", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsEnum)(CardType_1.CardType),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], CardApplicationRequestDto.prototype, "type", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, class_validator_1.IsNotEmpty)(),
|
|
31
31
|
(0, class_validator_1.ValidateNested)(),
|
|
32
32
|
(0, class_transformer_1.Type)(() => AddressShippingDto_1.ShippingAddressDto),
|
|
33
33
|
__metadata("design:type", AddressShippingDto_1.ShippingAddressDto)
|
|
34
|
-
],
|
|
34
|
+
], CardApplicationRequestDto.prototype, "address", void 0);
|
|
@@ -4,7 +4,7 @@ import { CardType } from '../enums/CardType';
|
|
|
4
4
|
import { Brand } from '../enums/Brand';
|
|
5
5
|
import { OwnershipType } from '../enums/OwnershipType';
|
|
6
6
|
import { Status } from '../enums/Status';
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateCardRequestDto {
|
|
8
8
|
id?: string;
|
|
9
9
|
accountId?: string;
|
|
10
10
|
activationDate?: string;
|
|
@@ -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.
|
|
12
|
+
exports.CreateCardRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const CountryId_1 = require("../../country/enums/CountryId");
|
|
@@ -19,9 +19,9 @@ const Brand_1 = require("../enums/Brand");
|
|
|
19
19
|
const OwnershipType_1 = require("../enums/OwnershipType");
|
|
20
20
|
const Status_1 = require("../enums/Status");
|
|
21
21
|
const regex_1 = require("../../helpers/constans/regex");
|
|
22
|
-
class
|
|
22
|
+
class CreateCardRequestDto {
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.CreateCardRequestDto = CreateCardRequestDto;
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsOptional)(),
|
|
27
27
|
(0, class_validator_1.IsString)(),
|
|
@@ -29,7 +29,7 @@ __decorate([
|
|
|
29
29
|
message: 'id must be a valid UUID v4',
|
|
30
30
|
}),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], CreateCardRequestDto.prototype, "id", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, class_validator_1.IsOptional)(),
|
|
35
35
|
(0, class_validator_1.IsString)(),
|
|
@@ -37,7 +37,7 @@ __decorate([
|
|
|
37
37
|
message: 'accountId must be a valid UUID v4 or null',
|
|
38
38
|
}),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
|
-
],
|
|
40
|
+
], CreateCardRequestDto.prototype, "accountId", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsOptional)(),
|
|
43
43
|
(0, class_validator_1.IsString)(),
|
|
@@ -45,132 +45,132 @@ __decorate([
|
|
|
45
45
|
message: 'activationDate must be a valid ISO 8601 date string',
|
|
46
46
|
}),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
|
-
],
|
|
48
|
+
], CreateCardRequestDto.prototype, "activationDate", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, class_validator_1.IsEnum)(CountryId_1.CountryId),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
|
-
],
|
|
52
|
+
], CreateCardRequestDto.prototype, "countryId", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, class_validator_1.IsEnum)(CardType_1.CardType),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
|
-
],
|
|
56
|
+
], CreateCardRequestDto.prototype, "type", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, class_validator_1.IsString)(),
|
|
59
59
|
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
60
60
|
message: 'directoryId must be a valid UUID v4',
|
|
61
61
|
}),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
|
-
],
|
|
63
|
+
], CreateCardRequestDto.prototype, "directoryId", void 0);
|
|
64
64
|
__decorate([
|
|
65
65
|
(0, class_validator_1.IsString)(),
|
|
66
66
|
(0, class_validator_1.Length)(1, 100),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
68
|
+
], CreateCardRequestDto.prototype, "externalCardId", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, class_validator_1.IsString)(),
|
|
71
71
|
(0, class_validator_1.Length)(1, 100),
|
|
72
72
|
__metadata("design:type", String)
|
|
73
|
-
],
|
|
73
|
+
], CreateCardRequestDto.prototype, "externalUserId", void 0);
|
|
74
74
|
__decorate([
|
|
75
75
|
(0, class_validator_1.IsOptional)(),
|
|
76
76
|
(0, class_validator_1.IsString)(),
|
|
77
77
|
(0, class_validator_1.Length)(1, 100),
|
|
78
78
|
__metadata("design:type", String)
|
|
79
|
-
],
|
|
79
|
+
], CreateCardRequestDto.prototype, "externalShipmentId", void 0);
|
|
80
80
|
__decorate([
|
|
81
81
|
(0, class_validator_1.IsOptional)(),
|
|
82
82
|
(0, class_validator_1.IsString)(),
|
|
83
83
|
(0, class_validator_1.Length)(1, 50),
|
|
84
84
|
__metadata("design:type", String)
|
|
85
|
-
],
|
|
85
|
+
], CreateCardRequestDto.prototype, "shipmentProvider", void 0);
|
|
86
86
|
__decorate([
|
|
87
87
|
(0, class_validator_1.IsOptional)(),
|
|
88
88
|
(0, class_validator_1.IsString)(),
|
|
89
89
|
(0, class_validator_1.Length)(1, 50),
|
|
90
90
|
__metadata("design:type", String)
|
|
91
|
-
],
|
|
91
|
+
], CreateCardRequestDto.prototype, "externalShipmentTrackingId", void 0);
|
|
92
92
|
__decorate([
|
|
93
93
|
(0, class_validator_1.IsOptional)(),
|
|
94
94
|
(0, class_validator_1.IsString)(),
|
|
95
95
|
(0, class_validator_1.Length)(1, 200),
|
|
96
96
|
__metadata("design:type", String)
|
|
97
|
-
],
|
|
97
|
+
], CreateCardRequestDto.prototype, "externalShipmentTrackingUrl", void 0);
|
|
98
98
|
__decorate([
|
|
99
99
|
(0, class_validator_1.IsOptional)(),
|
|
100
100
|
(0, class_validator_1.IsString)(),
|
|
101
101
|
(0, class_validator_1.Length)(1, 50),
|
|
102
102
|
__metadata("design:type", String)
|
|
103
|
-
],
|
|
103
|
+
], CreateCardRequestDto.prototype, "holderName", void 0);
|
|
104
104
|
__decorate([
|
|
105
105
|
(0, class_validator_1.IsOptional)(),
|
|
106
106
|
(0, class_validator_1.IsString)(),
|
|
107
107
|
(0, class_validator_1.Length)(1, 50),
|
|
108
108
|
__metadata("design:type", String)
|
|
109
|
-
],
|
|
109
|
+
], CreateCardRequestDto.prototype, "holderLastName", void 0);
|
|
110
110
|
__decorate([
|
|
111
111
|
(0, class_validator_1.IsOptional)(),
|
|
112
112
|
(0, class_validator_1.IsString)(),
|
|
113
113
|
(0, class_validator_1.Length)(1, 200),
|
|
114
114
|
__metadata("design:type", String)
|
|
115
|
-
],
|
|
115
|
+
], CreateCardRequestDto.prototype, "imageUrl", void 0);
|
|
116
116
|
__decorate([
|
|
117
117
|
(0, class_validator_1.IsEnum)(Brand_1.Brand),
|
|
118
118
|
__metadata("design:type", String)
|
|
119
|
-
],
|
|
119
|
+
], CreateCardRequestDto.prototype, "brand", void 0);
|
|
120
120
|
__decorate([
|
|
121
121
|
(0, class_validator_1.IsEnum)(OwnershipType_1.OwnershipType),
|
|
122
122
|
__metadata("design:type", String)
|
|
123
|
-
],
|
|
123
|
+
], CreateCardRequestDto.prototype, "ownershipType", void 0);
|
|
124
124
|
__decorate([
|
|
125
125
|
(0, class_validator_1.IsString)(),
|
|
126
126
|
(0, class_validator_1.Length)(4, 4),
|
|
127
127
|
__metadata("design:type", String)
|
|
128
|
-
],
|
|
128
|
+
], CreateCardRequestDto.prototype, "lastFour", void 0);
|
|
129
129
|
__decorate([
|
|
130
130
|
(0, class_validator_1.IsOptional)(),
|
|
131
131
|
(0, class_validator_1.IsString)(),
|
|
132
132
|
(0, class_validator_1.Length)(1, 50),
|
|
133
133
|
__metadata("design:type", String)
|
|
134
|
-
],
|
|
134
|
+
], CreateCardRequestDto.prototype, "providerName", void 0);
|
|
135
135
|
__decorate([
|
|
136
136
|
(0, class_validator_1.IsEnum)(Status_1.Status),
|
|
137
137
|
__metadata("design:type", String)
|
|
138
|
-
],
|
|
138
|
+
], CreateCardRequestDto.prototype, "status", void 0);
|
|
139
139
|
__decorate([
|
|
140
140
|
(0, class_validator_1.IsOptional)(),
|
|
141
141
|
(0, class_validator_1.IsString)(),
|
|
142
142
|
__metadata("design:type", String)
|
|
143
|
-
],
|
|
143
|
+
], CreateCardRequestDto.prototype, "statusUpdateDate", void 0);
|
|
144
144
|
__decorate([
|
|
145
145
|
(0, class_validator_1.IsOptional)(),
|
|
146
146
|
(0, class_validator_1.IsString)(),
|
|
147
147
|
(0, class_validator_1.Length)(1, 50),
|
|
148
148
|
__metadata("design:type", String)
|
|
149
|
-
],
|
|
149
|
+
], CreateCardRequestDto.prototype, "tenantId", void 0);
|
|
150
150
|
__decorate([
|
|
151
151
|
(0, class_validator_1.IsOptional)(),
|
|
152
152
|
(0, class_validator_1.IsNumber)(),
|
|
153
153
|
(0, class_validator_1.Min)(1),
|
|
154
154
|
(0, class_validator_1.Max)(9999999999),
|
|
155
155
|
__metadata("design:type", Number)
|
|
156
|
-
],
|
|
156
|
+
], CreateCardRequestDto.prototype, "spendLimitByTransaction", void 0);
|
|
157
157
|
__decorate([
|
|
158
158
|
(0, class_validator_1.IsOptional)(),
|
|
159
159
|
(0, class_validator_1.IsNumber)(),
|
|
160
160
|
(0, class_validator_1.Min)(1),
|
|
161
161
|
(0, class_validator_1.Max)(9999999999),
|
|
162
162
|
__metadata("design:type", Number)
|
|
163
|
-
],
|
|
163
|
+
], CreateCardRequestDto.prototype, "spendLimitByDay", void 0);
|
|
164
164
|
__decorate([
|
|
165
165
|
(0, class_validator_1.IsOptional)(),
|
|
166
166
|
(0, class_validator_1.IsNumber)(),
|
|
167
167
|
(0, class_validator_1.Min)(1),
|
|
168
168
|
(0, class_validator_1.Max)(9999999999),
|
|
169
169
|
__metadata("design:type", Number)
|
|
170
|
-
],
|
|
170
|
+
], CreateCardRequestDto.prototype, "spendLimitByMonth", void 0);
|
|
171
171
|
__decorate([
|
|
172
172
|
(0, class_validator_1.IsOptional)(),
|
|
173
173
|
(0, class_validator_1.ValidateNested)(),
|
|
174
174
|
(0, class_transformer_1.Type)(() => AddressShippingDto_1.ShippingAddressDto),
|
|
175
175
|
__metadata("design:type", AddressShippingDto_1.ShippingAddressDto)
|
|
176
|
-
],
|
|
176
|
+
], CreateCardRequestDto.prototype, "shippedAddress", void 0);
|
package/bin/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export * from './card/dtos/CardActivateRequestDto';
|
|
2
2
|
export * from './card/dtos/CardApplicationRequestDto';
|
|
3
3
|
export * from './card/dtos/CreateCardRequestDto';
|
|
4
|
+
export * from './card/dtos/CardUpdateRequestDto';
|
|
4
5
|
export * from './card/enums/CardType';
|
|
5
6
|
export * from './card/enums/CardUpdateKey';
|
|
6
7
|
export * from './card/enums/IssuanceType';
|
|
7
8
|
export * from './card/enums/Status';
|
|
8
9
|
export * from './card/enums/IssuanceType';
|
|
9
10
|
export * from './card/enums/OwnershipType';
|
|
11
|
+
export * from './card/enums/Brand';
|
|
12
|
+
export * from './card/enums/UpdateKey';
|
|
13
|
+
export * from './card/enums/Status';
|
|
14
|
+
export * from './card/enums/CardType';
|
|
15
|
+
export * from './card/enums/OwnershipType';
|
package/bin/index.js
CHANGED
|
@@ -17,9 +17,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./card/dtos/CardActivateRequestDto"), exports);
|
|
18
18
|
__exportStar(require("./card/dtos/CardApplicationRequestDto"), exports);
|
|
19
19
|
__exportStar(require("./card/dtos/CreateCardRequestDto"), exports);
|
|
20
|
+
__exportStar(require("./card/dtos/CardUpdateRequestDto"), exports);
|
|
20
21
|
__exportStar(require("./card/enums/CardType"), exports);
|
|
21
22
|
__exportStar(require("./card/enums/CardUpdateKey"), exports);
|
|
22
23
|
__exportStar(require("./card/enums/IssuanceType"), exports);
|
|
23
24
|
__exportStar(require("./card/enums/Status"), exports);
|
|
24
25
|
__exportStar(require("./card/enums/IssuanceType"), exports);
|
|
25
26
|
__exportStar(require("./card/enums/OwnershipType"), exports);
|
|
27
|
+
__exportStar(require("./card/enums/Brand"), exports);
|
|
28
|
+
__exportStar(require("./card/enums/UpdateKey"), exports);
|
|
29
|
+
__exportStar(require("./card/enums/Status"), exports);
|
|
30
|
+
__exportStar(require("./card/enums/CardType"), exports);
|
|
31
|
+
__exportStar(require("./card/enums/OwnershipType"), exports);
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { CountryId } from '../../country/enums/CountryId';
|
|
|
6
6
|
import { CardType } from '../enums/CardType';
|
|
7
7
|
import { ShippingAddressDto } from '../../address/dtos/AddressShippingDto';
|
|
8
8
|
|
|
9
|
-
export class
|
|
9
|
+
export class CardApplicationRequestDto {
|
|
10
10
|
@IsEnum(CountryId)
|
|
11
11
|
countryId: number;
|
|
12
12
|
|
|
@@ -8,7 +8,7 @@ import { OwnershipType } from '../enums/OwnershipType';
|
|
|
8
8
|
import { Status } from '../enums/Status';
|
|
9
9
|
import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
|
|
10
10
|
|
|
11
|
-
export class
|
|
11
|
+
export class CreateCardRequestDto {
|
|
12
12
|
|
|
13
13
|
@IsOptional()
|
|
14
14
|
@IsString()
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from './card/dtos/CardActivateRequestDto';
|
|
2
2
|
export * from './card/dtos/CardApplicationRequestDto';
|
|
3
3
|
export * from './card/dtos/CreateCardRequestDto';
|
|
4
|
+
export * from './card/dtos/CardUpdateRequestDto';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
4
8
|
|
|
5
9
|
export * from './card/enums/CardType';
|
|
6
10
|
export * from './card/enums/CardUpdateKey';
|
|
@@ -8,6 +12,12 @@ export * from './card/enums/IssuanceType';
|
|
|
8
12
|
export * from './card/enums/Status';
|
|
9
13
|
export * from './card/enums/IssuanceType';
|
|
10
14
|
export * from './card/enums/OwnershipType';
|
|
15
|
+
export * from './card/enums/Brand';
|
|
16
|
+
export * from './card/enums/UpdateKey';
|
|
17
|
+
export * from './card/enums/Status';
|
|
18
|
+
export * from './card/enums/CardType';
|
|
19
|
+
export * from './card/enums/OwnershipType';
|
|
20
|
+
|
|
11
21
|
|
|
12
22
|
|
|
13
23
|
|