@fiado/type-kit 1.0.17 → 1.0.19

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