@fiado/type-kit 1.1.21 → 1.1.22

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.
@@ -139,4 +139,8 @@ K
139
139
  c
140
140
  3src/productCatalog/dtos/GetProductCatalogRequest.ts,1/6/16863f8a5d6b34f47d8d39b36f6b7608e1db454d
141
141
  f
142
- 6src/productCatalog/dtos/CreateProductCatalogRequest.ts,2/9/2983524a17882775f03310e18fd052a958d44d3b
142
+ 6src/productCatalog/dtos/CreateProductCatalogRequest.ts,2/9/2983524a17882775f03310e18fd052a958d44d3b
143
+ a
144
+ 1src/group/dtos/GroupDirectoryRelationsResponse.ts,d/f/df083cf457b627bc4ada3c11eee92cc83e6c4c80
145
+ [
146
+ +src/productCatalog/enums/ProductTypeEnum.ts,5/9/5993b7cd868ca0f67fff0860484d2de906467a5c
@@ -139,4 +139,8 @@ K
139
139
  c
140
140
  3src/productCatalog/dtos/GetProductCatalogRequest.ts,1/6/16863f8a5d6b34f47d8d39b36f6b7608e1db454d
141
141
  f
142
- 6src/productCatalog/dtos/CreateProductCatalogRequest.ts,2/9/2983524a17882775f03310e18fd052a958d44d3b
142
+ 6src/productCatalog/dtos/CreateProductCatalogRequest.ts,2/9/2983524a17882775f03310e18fd052a958d44d3b
143
+ a
144
+ 1src/group/dtos/GroupDirectoryRelationsResponse.ts,d/f/df083cf457b627bc4ada3c11eee92cc83e6c4c80
145
+ [
146
+ +src/productCatalog/enums/ProductTypeEnum.ts,5/9/5993b7cd868ca0f67fff0860484d2de906467a5c
@@ -5,6 +5,7 @@ export declare class GroupDirectoryRelationsResponse {
5
5
  SK: string;
6
6
  directoryId: string;
7
7
  groupId: string;
8
+ groupCategory: string | null;
8
9
  relationType: RelationType;
9
10
  status: RelationStatus;
10
11
  agent: string;
@@ -1,7 +1,11 @@
1
1
  import { CountryId } from "../../country";
2
2
  import { ProductTaxFeeTypeEnum } from "../enums/ProductTaxFeeTypeEnum";
3
+ import { ProductTypeEnum } from "../enums/ProductTypeEnum";
3
4
  export declare class CreateProductCatalogRequest {
4
5
  id: string;
6
+ description: string;
7
+ displayName: string;
8
+ type: ProductTypeEnum;
5
9
  currencyId: CountryId;
6
10
  feeType: ProductTaxFeeTypeEnum;
7
11
  fee: number;
@@ -1,7 +1,11 @@
1
1
  import { CountryId } from "../../country";
2
2
  import { ProductTaxFeeTypeEnum } from "../enums/ProductTaxFeeTypeEnum";
3
+ import { ProductTypeEnum } from "../enums/ProductTypeEnum";
3
4
  export default class GetProductCatalogResponse {
4
5
  id: string;
6
+ description: string;
7
+ displayName: string;
8
+ type: ProductTypeEnum;
5
9
  currencyId: CountryId;
6
10
  feeType: ProductTaxFeeTypeEnum;
7
11
  fee: number;
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const country_1 = require("../../country");
13
13
  const ProductTaxFeeTypeEnum_1 = require("../enums/ProductTaxFeeTypeEnum");
14
14
  const class_validator_1 = require("class-validator");
15
+ const ProductTypeEnum_1 = require("../enums/ProductTypeEnum");
15
16
  class GetProductCatalogResponse {
16
17
  }
17
18
  exports.default = GetProductCatalogResponse;
@@ -19,6 +20,18 @@ __decorate([
19
20
  (0, class_validator_1.IsString)(),
20
21
  __metadata("design:type", String)
21
22
  ], GetProductCatalogResponse.prototype, "id", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], GetProductCatalogResponse.prototype, "description", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], GetProductCatalogResponse.prototype, "displayName", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsEnum)(ProductTypeEnum_1.ProductTypeEnum),
33
+ __metadata("design:type", String)
34
+ ], GetProductCatalogResponse.prototype, "type", void 0);
22
35
  __decorate([
23
36
  (0, class_validator_1.IsEnum)(country_1.CountryId),
24
37
  __metadata("design:type", String)
@@ -0,0 +1,9 @@
1
+ export declare enum ProductTypeEnum {
2
+ INTERNAL = "INTERNAL",
3
+ CREDIT_CARD = "TDC",
4
+ DEBIT_CARD = "TDD",
5
+ ATM = "ATM",
6
+ P2P = "P2P",
7
+ BANK_TRANSFER = "TRF",
8
+ SERVICE_PAYMENT = "SRV"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductTypeEnum = void 0;
4
+ var ProductTypeEnum;
5
+ (function (ProductTypeEnum) {
6
+ ProductTypeEnum["INTERNAL"] = "INTERNAL";
7
+ ProductTypeEnum["CREDIT_CARD"] = "TDC";
8
+ ProductTypeEnum["DEBIT_CARD"] = "TDD";
9
+ ProductTypeEnum["ATM"] = "ATM";
10
+ ProductTypeEnum["P2P"] = "P2P";
11
+ ProductTypeEnum["BANK_TRANSFER"] = "TRF";
12
+ ProductTypeEnum["SERVICE_PAYMENT"] = "SRV";
13
+ })(ProductTypeEnum || (exports.ProductTypeEnum = ProductTypeEnum = {}));
@@ -1,4 +1,4 @@
1
- export * from './dtos/GetProductCatalogRequest';
2
1
  export * from './dtos/GetProductCatalogResponse';
3
2
  export * from './dtos/CreateProductCatalogRequest';
4
3
  export * from './enums/ProductTaxFeeTypeEnum';
4
+ export * from './enums/ProductTypeEnum';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./dtos/GetProductCatalogRequest"), exports);
18
17
  __exportStar(require("./dtos/GetProductCatalogResponse"), exports);
19
18
  __exportStar(require("./dtos/CreateProductCatalogRequest"), exports);
20
19
  __exportStar(require("./enums/ProductTaxFeeTypeEnum"), exports);
20
+ __exportStar(require("./enums/ProductTypeEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -9,6 +9,7 @@ export class GroupDirectoryRelationsResponse {
9
9
  SK: string
10
10
  directoryId: string
11
11
  groupId: string
12
+ groupCategory: string | null
12
13
  relationType: RelationType
13
14
  status: RelationStatus
14
15
  agent: string
@@ -1,8 +1,12 @@
1
1
  import {CountryId} from "../../country";
2
2
  import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
3
+ import {ProductTypeEnum} from "../enums/ProductTypeEnum";
3
4
 
4
5
  export class CreateProductCatalogRequest {
5
6
  id: string;
7
+ description: string;
8
+ displayName: string;
9
+ type: ProductTypeEnum;
6
10
  currencyId: CountryId;
7
11
  feeType: ProductTaxFeeTypeEnum;
8
12
  fee: number;
@@ -1,11 +1,21 @@
1
1
  import {CountryId} from "../../country";
2
2
  import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
3
3
  import {IsEnum, IsNumber, IsString} from "class-validator";
4
+ import {ProductTypeEnum} from "../enums/ProductTypeEnum";
4
5
 
5
6
  export default class GetProductCatalogResponse {
6
7
  @IsString()
7
8
  id: string;
8
9
 
10
+ @IsString()
11
+ description: string;
12
+
13
+ @IsString()
14
+ displayName: string;
15
+
16
+ @IsEnum(ProductTypeEnum)
17
+ type: ProductTypeEnum;
18
+
9
19
  @IsEnum(CountryId)
10
20
  currencyId: CountryId;
11
21
 
@@ -0,0 +1,9 @@
1
+ export enum ProductTypeEnum {
2
+ INTERNAL = "INTERNAL",
3
+ CREDIT_CARD = "TDC",
4
+ DEBIT_CARD = "TDD",
5
+ ATM = "ATM",
6
+ P2P = "P2P",
7
+ BANK_TRANSFER = "TRF",
8
+ SERVICE_PAYMENT = "SRV"
9
+ }
@@ -1,5 +1,5 @@
1
- export * from './dtos/GetProductCatalogRequest';
2
1
  export * from './dtos/GetProductCatalogResponse';
3
2
  export * from './dtos/CreateProductCatalogRequest';
4
3
 
5
- export * from './enums/ProductTaxFeeTypeEnum';
4
+ export * from './enums/ProductTaxFeeTypeEnum';
5
+ export * from './enums/ProductTypeEnum';
@@ -1,6 +0,0 @@
1
- import {IsArray} from "class-validator";
2
-
3
- export default class GetProductCatalogRequest {
4
- @IsArray()
5
- ids: string[];
6
- }