@fiado/type-kit 1.8.30 → 1.8.32

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 (31) hide show
  1. package/bin/account/dtos/BankAccountPocketTransferRequest.d.ts +6 -0
  2. package/bin/account/dtos/BankAccountPocketTransferRequest.js +6 -0
  3. package/bin/index.d.ts +1 -0
  4. package/bin/index.js +2 -1
  5. package/bin/pricelist/dtos/DiscountCreateRequest.d.ts +13 -0
  6. package/bin/pricelist/dtos/DiscountCreateRequest.js +58 -0
  7. package/bin/pricelist/dtos/DiscountResponse.d.ts +16 -0
  8. package/bin/pricelist/dtos/DiscountResponse.js +6 -0
  9. package/bin/pricelist/dtos/GetDiscountListResponse.d.ts +5 -0
  10. package/bin/pricelist/dtos/GetDiscountListResponse.js +6 -0
  11. package/bin/pricelist/dtos/GetPricelistListResponse.d.ts +5 -0
  12. package/bin/pricelist/dtos/GetPricelistListResponse.js +6 -0
  13. package/bin/pricelist/dtos/PricelistCreateRequest.d.ts +7 -0
  14. package/bin/pricelist/dtos/PricelistCreateRequest.js +33 -0
  15. package/bin/pricelist/dtos/PricelistResponse.d.ts +9 -0
  16. package/bin/pricelist/dtos/PricelistResponse.js +6 -0
  17. package/bin/pricelist/enums/DiscountTypeEnum.d.ts +4 -0
  18. package/bin/pricelist/enums/DiscountTypeEnum.js +8 -0
  19. package/bin/pricelist/index.d.ts +7 -0
  20. package/bin/pricelist/index.js +25 -0
  21. package/package.json +1 -1
  22. package/src/account/dtos/BankAccountPocketTransferRequest.ts +7 -0
  23. package/src/index.ts +1 -1
  24. package/src/pricelist/dtos/DiscountCreateRequest.ts +40 -0
  25. package/src/pricelist/dtos/DiscountResponse.ts +17 -0
  26. package/src/pricelist/dtos/GetDiscountListResponse.ts +6 -0
  27. package/src/pricelist/dtos/GetPricelistListResponse.ts +6 -0
  28. package/src/pricelist/dtos/PricelistCreateRequest.ts +19 -0
  29. package/src/pricelist/dtos/PricelistResponse.ts +10 -0
  30. package/src/pricelist/enums/DiscountTypeEnum.ts +4 -0
  31. package/src/pricelist/index.ts +11 -0
@@ -0,0 +1,6 @@
1
+ import { OperationEnum } from "../../transaction";
2
+ export declare class BankAccountPocketTransferRequest {
3
+ externalAccountId: string;
4
+ amount: number;
5
+ operation: OperationEnum;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BankAccountPocketTransferRequest = void 0;
4
+ class BankAccountPocketTransferRequest {
5
+ }
6
+ exports.BankAccountPocketTransferRequest = BankAccountPocketTransferRequest;
package/bin/index.d.ts CHANGED
@@ -45,3 +45,4 @@ export * as AppSelectionData from './appSelectionData';
45
45
  export * as AccountIssuanceBusiness from './accountIssuanceBusiness';
46
46
  export * as Services from './services';
47
47
  export * as Company from './company';
48
+ export * as Pricelist from './pricelist';
package/bin/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = 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.Beneficiary = exports.Activity = exports.Account = void 0;
36
+ exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = 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.Beneficiary = exports.Activity = exports.Account = void 0;
37
37
  exports.Account = __importStar(require("./account"));
38
38
  exports.Activity = __importStar(require("./activity"));
39
39
  exports.Beneficiary = __importStar(require("./beneficiary"));
@@ -81,3 +81,4 @@ exports.AppSelectionData = __importStar(require("./appSelectionData"));
81
81
  exports.AccountIssuanceBusiness = __importStar(require("./accountIssuanceBusiness"));
82
82
  exports.Services = __importStar(require("./services"));
83
83
  exports.Company = __importStar(require("./company"));
84
+ exports.Pricelist = __importStar(require("./pricelist"));
@@ -0,0 +1,13 @@
1
+ import { DiscountTypeEnum } from '../enums/DiscountTypeEnum';
2
+ export declare class DiscountCreateRequest {
3
+ serviceId: string;
4
+ directoryId: string;
5
+ groupId: string;
6
+ peopleId: string;
7
+ discountValue: number;
8
+ discountType: DiscountTypeEnum;
9
+ validFrom: number;
10
+ validTo: number;
11
+ description: string;
12
+ category: string;
13
+ }
@@ -0,0 +1,58 @@
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.DiscountCreateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const DiscountTypeEnum_1 = require("../enums/DiscountTypeEnum");
15
+ class DiscountCreateRequest {
16
+ }
17
+ exports.DiscountCreateRequest = DiscountCreateRequest;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], DiscountCreateRequest.prototype, "serviceId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], DiscountCreateRequest.prototype, "directoryId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], DiscountCreateRequest.prototype, "groupId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], DiscountCreateRequest.prototype, "peopleId", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsNumber)(),
36
+ __metadata("design:type", Number)
37
+ ], DiscountCreateRequest.prototype, "discountValue", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsEnum)(DiscountTypeEnum_1.DiscountTypeEnum),
40
+ __metadata("design:type", String)
41
+ ], DiscountCreateRequest.prototype, "discountType", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsNumber)(),
44
+ __metadata("design:type", Number)
45
+ ], DiscountCreateRequest.prototype, "validFrom", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsNumber)(),
48
+ __metadata("design:type", Number)
49
+ ], DiscountCreateRequest.prototype, "validTo", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsString)(),
52
+ __metadata("design:type", String)
53
+ ], DiscountCreateRequest.prototype, "description", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.IsOptional)(),
57
+ __metadata("design:type", String)
58
+ ], DiscountCreateRequest.prototype, "category", void 0);
@@ -0,0 +1,16 @@
1
+ import { DiscountTypeEnum } from "../enums/DiscountTypeEnum";
2
+ export declare class DiscountResponse {
3
+ id: string;
4
+ serviceId: string;
5
+ directoryId: string;
6
+ groupId: string;
7
+ peopleId: string;
8
+ discountValue: number;
9
+ discountType: DiscountTypeEnum;
10
+ validFrom: number;
11
+ validTo: number;
12
+ description: string;
13
+ category: string;
14
+ createdAt?: number;
15
+ updatedAt?: number;
16
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscountResponse = void 0;
4
+ class DiscountResponse {
5
+ }
6
+ exports.DiscountResponse = DiscountResponse;
@@ -0,0 +1,5 @@
1
+ import { DiscountResponse } from "./DiscountResponse";
2
+ export declare class GetDiscountListResponse {
3
+ items: DiscountResponse[];
4
+ index: string | null;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDiscountListResponse = void 0;
4
+ class GetDiscountListResponse {
5
+ }
6
+ exports.GetDiscountListResponse = GetDiscountListResponse;
@@ -0,0 +1,5 @@
1
+ import { PricelistResponse } from "./PricelistResponse";
2
+ export declare class GetServiceMembershipListResponse {
3
+ items: PricelistResponse[];
4
+ index: string | null;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServiceMembershipListResponse = void 0;
4
+ class GetServiceMembershipListResponse {
5
+ }
6
+ exports.GetServiceMembershipListResponse = GetServiceMembershipListResponse;
@@ -0,0 +1,7 @@
1
+ import { CountryId } from '../../country';
2
+ export declare class PricelistCreateRequest {
3
+ serviceId: string;
4
+ price: number;
5
+ validFrom: number;
6
+ currencyId: CountryId;
7
+ }
@@ -0,0 +1,33 @@
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.PricelistCreateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const country_1 = require("../../country");
15
+ class PricelistCreateRequest {
16
+ }
17
+ exports.PricelistCreateRequest = PricelistCreateRequest;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], PricelistCreateRequest.prototype, "serviceId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
24
+ __metadata("design:type", Number)
25
+ ], PricelistCreateRequest.prototype, "price", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsNumber)(),
28
+ __metadata("design:type", Number)
29
+ ], PricelistCreateRequest.prototype, "validFrom", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(country_1.CountryId),
32
+ __metadata("design:type", String)
33
+ ], PricelistCreateRequest.prototype, "currencyId", void 0);
@@ -0,0 +1,9 @@
1
+ export declare class PricelistResponse {
2
+ id: string;
3
+ serviceId: string;
4
+ price: number;
5
+ validFrom: number;
6
+ currencyId: string;
7
+ createdAt?: number;
8
+ updatedAt?: number;
9
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricelistResponse = void 0;
4
+ class PricelistResponse {
5
+ }
6
+ exports.PricelistResponse = PricelistResponse;
@@ -0,0 +1,4 @@
1
+ export declare enum DiscountTypeEnum {
2
+ PERCENTAGE = "PERCENTAGE",
3
+ FIXED_AMMOUNT = "FIXED_AMMOUNT"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiscountTypeEnum = void 0;
4
+ var DiscountTypeEnum;
5
+ (function (DiscountTypeEnum) {
6
+ DiscountTypeEnum["PERCENTAGE"] = "PERCENTAGE";
7
+ DiscountTypeEnum["FIXED_AMMOUNT"] = "FIXED_AMMOUNT";
8
+ })(DiscountTypeEnum || (exports.DiscountTypeEnum = DiscountTypeEnum = {}));
@@ -0,0 +1,7 @@
1
+ export * from './dtos/DiscountCreateRequest';
2
+ export * from './dtos/PricelistCreateRequest';
3
+ export * from './dtos/GetDiscountListResponse';
4
+ export * from './dtos/DiscountResponse';
5
+ export * from './dtos/GetPricelistListResponse';
6
+ export * from './dtos/PricelistResponse';
7
+ export * from './enums/DiscountTypeEnum';
@@ -0,0 +1,25 @@
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/DiscountCreateRequest"), exports);
19
+ __exportStar(require("./dtos/PricelistCreateRequest"), exports);
20
+ __exportStar(require("./dtos/GetDiscountListResponse"), exports);
21
+ __exportStar(require("./dtos/DiscountResponse"), exports);
22
+ __exportStar(require("./dtos/GetPricelistListResponse"), exports);
23
+ __exportStar(require("./dtos/PricelistResponse"), exports);
24
+ //enums
25
+ __exportStar(require("./enums/DiscountTypeEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.8.30",
3
+ "version": "1.8.32",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,7 @@
1
+ import {OperationEnum} from "../../transaction";
2
+
3
+ export class BankAccountPocketTransferRequest {
4
+ externalAccountId: string;
5
+ amount: number;
6
+ operation: OperationEnum;
7
+ }
package/src/index.ts CHANGED
@@ -47,4 +47,4 @@ export * as AppSelectionData from './appSelectionData';
47
47
  export * as AccountIssuanceBusiness from './accountIssuanceBusiness';
48
48
  export * as Services from './services';
49
49
  export * as Company from './company';
50
-
50
+ export * as Pricelist from './pricelist';
@@ -0,0 +1,40 @@
1
+
2
+
3
+ import { IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
4
+ import { DiscountTypeEnum } from '../enums/DiscountTypeEnum';
5
+
6
+
7
+ export class DiscountCreateRequest {
8
+
9
+ @IsString()
10
+ serviceId: string;
11
+
12
+ @IsString()
13
+ directoryId: string;
14
+
15
+ @IsString()
16
+ groupId: string;
17
+
18
+ @IsString()
19
+ peopleId: string;
20
+
21
+ @IsNumber()
22
+ discountValue: number;
23
+
24
+ @IsEnum(DiscountTypeEnum)
25
+ discountType: DiscountTypeEnum;
26
+
27
+ @IsNumber()
28
+ validFrom: number;
29
+
30
+ @IsNumber()
31
+ validTo: number;
32
+
33
+ @IsString()
34
+ description: string;
35
+
36
+ @IsString()
37
+ @IsOptional()
38
+ category: string;
39
+
40
+ }
@@ -0,0 +1,17 @@
1
+ import { DiscountTypeEnum } from "../enums/DiscountTypeEnum";
2
+
3
+ export class DiscountResponse {
4
+ id:string;
5
+ serviceId:string;
6
+ directoryId:string;
7
+ groupId:string;
8
+ peopleId:string;
9
+ discountValue:number;
10
+ discountType:DiscountTypeEnum;
11
+ validFrom:number;
12
+ validTo:number;
13
+ description:string;
14
+ category:string;
15
+ createdAt?:number;
16
+ updatedAt?:number;
17
+ }
@@ -0,0 +1,6 @@
1
+ import { DiscountResponse } from "./DiscountResponse";
2
+
3
+ export class GetDiscountListResponse {
4
+ items: DiscountResponse[];
5
+ index: string | null;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { PricelistResponse } from "./PricelistResponse";
2
+
3
+ export class GetServiceMembershipListResponse {
4
+ items: PricelistResponse[];
5
+ index: string | null;
6
+ }
@@ -0,0 +1,19 @@
1
+
2
+
3
+ import { IsEnum, IsNumber, IsString } from 'class-validator';
4
+ import { CountryId } from '../../country';
5
+
6
+ export class PricelistCreateRequest {
7
+
8
+ @IsString()
9
+ serviceId: string;
10
+
11
+ @IsNumber()
12
+ price: number;
13
+
14
+ @IsNumber()
15
+ validFrom: number;
16
+
17
+ @IsEnum(CountryId)
18
+ currencyId: CountryId;
19
+ }
@@ -0,0 +1,10 @@
1
+
2
+ export class PricelistResponse {
3
+ id:string;
4
+ serviceId:string;
5
+ price:number;
6
+ validFrom:number;
7
+ currencyId:string;
8
+ createdAt?:number;
9
+ updatedAt?:number;
10
+ }
@@ -0,0 +1,4 @@
1
+ export enum DiscountTypeEnum {
2
+ PERCENTAGE = "PERCENTAGE",
3
+ FIXED_AMMOUNT = "FIXED_AMMOUNT"
4
+ }
@@ -0,0 +1,11 @@
1
+
2
+ //dtos
3
+ export * from './dtos/DiscountCreateRequest'
4
+ export * from './dtos/PricelistCreateRequest'
5
+ export * from './dtos/GetDiscountListResponse'
6
+ export * from './dtos/DiscountResponse'
7
+ export * from './dtos/GetPricelistListResponse'
8
+ export * from './dtos/PricelistResponse'
9
+
10
+ //enums
11
+ export * from './enums/DiscountTypeEnum'