@fiado/type-kit 1.0.17 → 1.0.18

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 (46) 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 +1 -0
  10. package/bin/index.js +2 -1
  11. package/package.json +1 -1
  12. package/src/account/index.ts +0 -1
  13. package/src/card/dtos/CardBalanceResponse.ts +0 -1
  14. package/src/group/dtos/GroupResponse.ts +15 -0
  15. package/src/group/enums/GroupStatus.ts +7 -0
  16. package/src/group/index.ts +10 -0
  17. package/src/index.ts +2 -0
  18. package/bin/account/dtos/CreateAccountRequest.d.ts +0 -14
  19. package/bin/account/dtos/CreateAccountRequest.js +0 -65
  20. package/bin/account/dtos/CreatePockeRequest.d.ts +0 -4
  21. package/bin/account/dtos/CreatePockeRequest.js +0 -31
  22. package/bin/account/dtos/PocketResponse.d.ts +0 -0
  23. package/bin/account/dtos/PocketResponse.js +0 -0
  24. package/bin/account/interface/IAccountProvider.d.ts +0 -29
  25. package/bin/account/interface/IAccountProvider.js +0 -2
  26. package/bin/address/dtos/AddressShippingDto.d.ts +0 -11
  27. package/bin/address/dtos/AddressShippingDto.js +0 -57
  28. package/bin/address/dtos/CreateAddressRequest.d.ts +0 -3
  29. package/bin/address/dtos/CreateAddressRequest.js +0 -7
  30. package/bin/card/dtos/CardActivateDto.d.ts +0 -4
  31. package/bin/card/dtos/CardActivateDto.js +0 -26
  32. package/bin/card/dtos/CardActivateRequestDto.d.ts +0 -4
  33. package/bin/card/dtos/CardActivateRequestDto.js +0 -26
  34. package/bin/card/dtos/CardApplicationRequestDto.d.ts +0 -6
  35. package/bin/card/dtos/CardApplicationRequestDto.js +0 -34
  36. package/bin/card/dtos/CardRequestDto.d.ts +0 -6
  37. package/bin/card/dtos/CardRequestDto.js +0 -34
  38. package/bin/card/dtos/CardUpdateRequestDto.d.ts +0 -5
  39. package/bin/card/dtos/CardUpdateRequestDto.js +0 -28
  40. package/bin/card/dtos/CreateCardDto.d.ts +0 -34
  41. package/bin/card/dtos/CreateCardDto.js +0 -176
  42. package/bin/card/dtos/CreateCardRequest.d.ts +0 -34
  43. package/bin/card/dtos/CreateCardRequest.js +0 -176
  44. package/bin/card/dtos/CreateCardRequestDto.d.ts +0 -34
  45. package/bin/card/dtos/CreateCardRequestDto.js +0 -176
  46. package/src/account/interface/IAccountProvider.ts +0 -33
@@ -4,4 +4,3 @@ export * from './dtos/AccountCreateResponse';
4
4
  export * from './dtos/PocketCreateRequest';
5
5
  export * from './dtos/PocketCreateResponse';
6
6
  export * from './enums/AccountStatus';
7
- export * from './interface/IAccountProvider';
@@ -23,4 +23,3 @@ __exportStar(require("./dtos/PocketCreateResponse"), exports);
23
23
  //enums
24
24
  __exportStar(require("./enums/AccountStatus"), exports);
25
25
  //interfaces
26
- __exportStar(require("./interface/IAccountProvider"), exports);
@@ -0,0 +1,9 @@
1
+ import { GroupStatus } from "../enums/GroupStatus";
2
+ export declare class GroupResponse {
3
+ id: string;
4
+ name: string;
5
+ description: string;
6
+ status: GroupStatus;
7
+ leadger: string;
8
+ codesToRefer: string[];
9
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GroupResponse = void 0;
4
+ class GroupResponse {
5
+ }
6
+ exports.GroupResponse = GroupResponse;
@@ -0,0 +1,4 @@
1
+ export declare enum GroupStatus {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GroupStatus = void 0;
4
+ var GroupStatus;
5
+ (function (GroupStatus) {
6
+ GroupStatus["ACTIVE"] = "ACTIVE";
7
+ GroupStatus["INACTIVE"] = "INACTIVE";
8
+ })(GroupStatus || (exports.GroupStatus = GroupStatus = {}));
@@ -0,0 +1,2 @@
1
+ export * from './dtos/GroupResponse';
2
+ export * from './enums/GroupStatus';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ //dtos
18
+ __exportStar(require("./dtos/GroupResponse"), exports);
19
+ //enums
20
+ __exportStar(require("./enums/GroupStatus"), exports);
package/bin/index.d.ts CHANGED
@@ -8,5 +8,6 @@ export * as Currency from './currency';
8
8
  export * as Directory from './directory';
9
9
  export * as ExchangeRate from './exchangeRate';
10
10
  export * as File from './identity';
11
+ export * as Group from './group';
11
12
  export * as Identity from './provider';
12
13
  export * as Header from './header';
package/bin/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Header = exports.Identity = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
26
+ exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
27
27
  exports.Account = __importStar(require("./account"));
28
28
  exports.Address = __importStar(require("./address"));
29
29
  exports.App = __importStar(require("./app"));
@@ -34,5 +34,6 @@ exports.Currency = __importStar(require("./currency"));
34
34
  exports.Directory = __importStar(require("./directory"));
35
35
  exports.ExchangeRate = __importStar(require("./exchangeRate"));
36
36
  exports.File = __importStar(require("./identity"));
37
+ exports.Group = __importStar(require("./group"));
37
38
  exports.Identity = __importStar(require("./provider"));
38
39
  exports.Header = __importStar(require("./header"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -12,6 +12,5 @@ export * from './enums/AccountStatus';
12
12
 
13
13
 
14
14
  //interfaces
15
- export * from './interface/IAccountProvider';
16
15
 
17
16
 
@@ -1,4 +1,3 @@
1
- import { IsEnum, IsNumber, IsUUID } from "class-validator"
2
1
  import { TypeOfDirectoryId } from "../../directory"
3
2
  import { CountryId } from "../../country"
4
3
 
@@ -0,0 +1,15 @@
1
+ import { GroupStatus } from "../enums/GroupStatus"
2
+
3
+
4
+ export class GroupResponse {
5
+
6
+ id: string
7
+ name: string
8
+ description: string
9
+ status: GroupStatus
10
+ leadger: string
11
+ codesToRefer: string[]
12
+
13
+ }
14
+
15
+
@@ -0,0 +1,7 @@
1
+
2
+
3
+
4
+ export enum GroupStatus {
5
+ ACTIVE = 'ACTIVE',
6
+ INACTIVE = 'INACTIVE',
7
+ }
@@ -0,0 +1,10 @@
1
+
2
+
3
+ //dtos
4
+ export * from './dtos/GroupResponse';
5
+
6
+
7
+ //enums
8
+ export * from './enums/GroupStatus';
9
+
10
+
package/src/index.ts CHANGED
@@ -10,8 +10,10 @@ export * as Currency from './currency';
10
10
  export * as Directory from './directory';
11
11
  export * as ExchangeRate from './exchangeRate';
12
12
  export * as File from './identity';
13
+ export * as Group from './group';
13
14
  export * as Identity from './provider';
14
15
  export * as Header from './header';
15
16
 
16
17
 
17
18
 
19
+
@@ -1,14 +0,0 @@
1
- import { AddressResponse } from "../../address/dtos/AddressResponse";
2
- import { Country } from "../../country/enums/Country";
3
- export declare class CreateAccountRequest {
4
- directoryId: string;
5
- typeOfDirectoryId: string;
6
- firstName: string;
7
- lastName: string;
8
- phoneNumber: string;
9
- address: AddressResponse;
10
- email: string;
11
- dob: string;
12
- documentNumber: string;
13
- countryId: Country;
14
- }
@@ -1,65 +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.CreateAccountRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const AddressResponse_1 = require("../../address/dtos/AddressResponse");
15
- const Country_1 = require("../../country/enums/Country");
16
- const regex_1 = require("../../helpers/constans/regex");
17
- const TypeOfDirectoryId_1 = require("../../directory/enums/TypeOfDirectoryId");
18
- const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
19
- class CreateAccountRequest {
20
- }
21
- exports.CreateAccountRequest = CreateAccountRequest;
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
25
- message: 'directoryId must be a valid UUID v4',
26
- }),
27
- __metadata("design:type", String)
28
- ], CreateAccountRequest.prototype, "directoryId", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsEnum)(TypeOfDirectoryId_1.TypeOfDirectoryId),
31
- __metadata("design:type", String)
32
- ], CreateAccountRequest.prototype, "typeOfDirectoryId", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsString)(),
35
- __metadata("design:type", String)
36
- ], CreateAccountRequest.prototype, "firstName", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsString)(),
39
- __metadata("design:type", String)
40
- ], CreateAccountRequest.prototype, "lastName", void 0);
41
- __decorate([
42
- (0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
43
- __metadata("design:type", String)
44
- ], CreateAccountRequest.prototype, "phoneNumber", void 0);
45
- __decorate([
46
- (0, class_validator_1.ValidateNested)(),
47
- __metadata("design:type", AddressResponse_1.AddressResponse)
48
- ], CreateAccountRequest.prototype, "address", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsEmail)(),
51
- __metadata("design:type", String)
52
- ], CreateAccountRequest.prototype, "email", void 0);
53
- __decorate([
54
- (0, class_validator_1.IsDateString)(),
55
- __metadata("design:type", String)
56
- ], CreateAccountRequest.prototype, "dob", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsString)(),
59
- (0, class_validator_1.Length)(1, 30),
60
- __metadata("design:type", String)
61
- ], CreateAccountRequest.prototype, "documentNumber", void 0);
62
- __decorate([
63
- (0, class_validator_1.IsEnum)(Country_1.Country),
64
- __metadata("design:type", String)
65
- ], CreateAccountRequest.prototype, "countryId", void 0);
@@ -1,4 +0,0 @@
1
- export declare class CreatePocketRequest {
2
- beneficiaryDirectoryId?: string;
3
- accountId: string;
4
- }
@@ -1,31 +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.CreatePocketRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const regex_1 = require("../../helpers/constans/regex");
15
- class CreatePocketRequest {
16
- }
17
- exports.CreatePocketRequest = CreatePocketRequest;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
21
- message: 'beneficiaryDirectoryId must be a valid UUID v4',
22
- }),
23
- __metadata("design:type", String)
24
- ], CreatePocketRequest.prototype, "beneficiaryDirectoryId", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
28
- message: 'accountId must be a valid UUID v4',
29
- }),
30
- __metadata("design:type", String)
31
- ], CreatePocketRequest.prototype, "accountId", void 0);
File without changes
File without changes
@@ -1,29 +0,0 @@
1
- import { AccountCreateRequest } from "../dtos/AccountCreateRequest";
2
- import { AccountCreateResponse } from "../dtos/AccountCreateResponse";
3
- import { AccountResponse } from "../dtos/AccountResponse";
4
- import { PocketCreateRequest } from "../dtos/PocketCreateRequest";
5
- /**
6
- * Interfaz para el servicio de Account
7
- */
8
- export interface IAccountProvider {
9
- /**
10
- * Obtiene los detalles de la cuenta a partir del ID de directorio.
11
- * @path GET /accounts?directoryId={directoryId}
12
- * @param directoryId El identificador del directorio asociado a la cuenta.
13
- * @returns Los detalles de la cuenta.
14
- */
15
- getByDirectoryId(directoryId: string): Promise<AccountResponse>;
16
- /**
17
- * Crea una nueva cuenta.
18
- * @path POST /accounts
19
- * @param input Los datos necesarios para crear la cuenta.
20
- * @returns Los detalles de la cuenta creada.
21
- */
22
- create(input: AccountCreateRequest): Promise<AccountCreateResponse>;
23
- /**
24
- * Crea un nuevo pocket para un beneficiario.
25
- * @path POST /accounts/pockets
26
- * @param input Los datos necesarios para crear el pocket.
27
- */
28
- createBeneficiaryPocket(input: PocketCreateRequest): Promise<void>;
29
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { CountryId } from '../../country/enums/CountryId';
2
- export declare class ShippingAddressDto {
3
- municipality: string;
4
- neighborhood: string;
5
- postalCode: string;
6
- street: string;
7
- subRegion: string;
8
- addressNumber: string;
9
- internalNumber?: string;
10
- countryId: CountryId;
11
- }
@@ -1,57 +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.ShippingAddressDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const CountryId_1 = require("../../country/enums/CountryId");
15
- class ShippingAddressDto {
16
- }
17
- exports.ShippingAddressDto = ShippingAddressDto;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Length)(2, 60),
21
- __metadata("design:type", String)
22
- ], ShippingAddressDto.prototype, "municipality", void 0);
23
- __decorate([
24
- (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.Length)(2, 60),
26
- __metadata("design:type", String)
27
- ], ShippingAddressDto.prototype, "neighborhood", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsString)(),
30
- (0, class_validator_1.Length)(5, 10),
31
- __metadata("design:type", String)
32
- ], ShippingAddressDto.prototype, "postalCode", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsString)(),
35
- (0, class_validator_1.Length)(2, 100),
36
- __metadata("design:type", String)
37
- ], ShippingAddressDto.prototype, "street", void 0);
38
- __decorate([
39
- (0, class_validator_1.IsString)(),
40
- (0, class_validator_1.Length)(2, 60),
41
- __metadata("design:type", String)
42
- ], ShippingAddressDto.prototype, "subRegion", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsString)(),
45
- (0, class_validator_1.Length)(1, 10),
46
- __metadata("design:type", String)
47
- ], ShippingAddressDto.prototype, "addressNumber", void 0);
48
- __decorate([
49
- (0, class_validator_1.IsOptional)(),
50
- (0, class_validator_1.IsString)(),
51
- (0, class_validator_1.Length)(1, 200),
52
- __metadata("design:type", String)
53
- ], ShippingAddressDto.prototype, "internalNumber", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsString)(),
56
- __metadata("design:type", String)
57
- ], ShippingAddressDto.prototype, "countryId", void 0);
@@ -1,3 +0,0 @@
1
- import { AddressBase } from "./AddressBase";
2
- export declare class CreateAddressRequest extends AddressBase {
3
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateAddressRequest = void 0;
4
- const AddressBase_1 = require("./AddressBase");
5
- class CreateAddressRequest extends AddressBase_1.AddressBase {
6
- }
7
- exports.CreateAddressRequest = CreateAddressRequest;
@@ -1,4 +0,0 @@
1
- export declare class CardActivateDto {
2
- countryId: number;
3
- panOrCode: string;
4
- }
@@ -1,26 +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.CardActivateDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const CountryId_1 = require("../../country/enums/CountryId");
15
- class CardActivateDto {
16
- }
17
- exports.CardActivateDto = CardActivateDto;
18
- __decorate([
19
- (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
20
- __metadata("design:type", Number)
21
- ], CardActivateDto.prototype, "countryId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.Matches)(/^\d{16}$/),
25
- __metadata("design:type", String)
26
- ], CardActivateDto.prototype, "panOrCode", void 0);
@@ -1,4 +0,0 @@
1
- export declare class CardActivateRequestDto {
2
- countryId: number;
3
- panOrCode: string;
4
- }
@@ -1,26 +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.CardActivateRequestDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const CountryId_1 = require("../../country/enums/CountryId");
15
- class CardActivateRequestDto {
16
- }
17
- exports.CardActivateRequestDto = CardActivateRequestDto;
18
- __decorate([
19
- (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
20
- __metadata("design:type", Number)
21
- ], CardActivateRequestDto.prototype, "countryId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.Matches)(/^\d{16}$/),
25
- __metadata("design:type", String)
26
- ], CardActivateRequestDto.prototype, "panOrCode", void 0);
@@ -1,6 +0,0 @@
1
- import { ShippingAddressDto } from '../../address/dtos/AddressShippingDto';
2
- export declare class CardApplicationRequestDto {
3
- countryId: number;
4
- type: string;
5
- address: ShippingAddressDto;
6
- }
@@ -1,34 +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.CardApplicationRequestDto = 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 AddressShippingDto_1 = require("../../address/dtos/AddressShippingDto");
18
- class CardApplicationRequestDto {
19
- }
20
- exports.CardApplicationRequestDto = CardApplicationRequestDto;
21
- __decorate([
22
- (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
23
- __metadata("design:type", Number)
24
- ], CardApplicationRequestDto.prototype, "countryId", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsEnum)(CardType_1.CardType),
27
- __metadata("design:type", String)
28
- ], CardApplicationRequestDto.prototype, "type", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsNotEmpty)(),
31
- (0, class_validator_1.ValidateNested)(),
32
- (0, class_transformer_1.Type)(() => AddressShippingDto_1.ShippingAddressDto),
33
- __metadata("design:type", AddressShippingDto_1.ShippingAddressDto)
34
- ], CardApplicationRequestDto.prototype, "address", void 0);
@@ -1,6 +0,0 @@
1
- import { ShippingAddressDto } from '../../address/dtos/AddressShippingDto';
2
- export declare class CardRequest {
3
- countryId: number;
4
- type: string;
5
- address: ShippingAddressDto;
6
- }
@@ -1,34 +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.CardRequest = 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 AddressShippingDto_1 = require("../../address/dtos/AddressShippingDto");
18
- class CardRequest {
19
- }
20
- exports.CardRequest = CardRequest;
21
- __decorate([
22
- (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
23
- __metadata("design:type", Number)
24
- ], CardRequest.prototype, "countryId", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsEnum)(CardType_1.CardType),
27
- __metadata("design:type", String)
28
- ], CardRequest.prototype, "type", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsNotEmpty)(),
31
- (0, class_validator_1.ValidateNested)(),
32
- (0, class_transformer_1.Type)(() => AddressShippingDto_1.ShippingAddressDto),
33
- __metadata("design:type", AddressShippingDto_1.ShippingAddressDto)
34
- ], CardRequest.prototype, "address", void 0);
@@ -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
- }