@fiado/type-kit 1.1.14 → 1.1.16
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/.idea/sonarlint/issuestore/1/6/16863f8a5d6b34f47d8d39b36f6b7608e1db454d +0 -0
- package/.idea/sonarlint/issuestore/2/9/2983524a17882775f03310e18fd052a958d44d3b +0 -0
- package/.idea/sonarlint/issuestore/7/4/7489a99709fa9ca44fa1a085c02ee8502e21a9fd +0 -0
- package/.idea/sonarlint/issuestore/7/8/782e1a44f35a71927df243d92a4eede126f437ac +0 -0
- package/.idea/sonarlint/issuestore/a/0/a06a99270cf7808dda3a6025cf813ae52720b475 +0 -0
- package/.idea/sonarlint/issuestore/index.pb +11 -1
- package/.idea/sonarlint/securityhotspotstore/1/6/16863f8a5d6b34f47d8d39b36f6b7608e1db454d +0 -0
- package/.idea/sonarlint/securityhotspotstore/2/9/2983524a17882775f03310e18fd052a958d44d3b +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/4/7489a99709fa9ca44fa1a085c02ee8502e21a9fd +0 -0
- package/.idea/sonarlint/securityhotspotstore/7/8/782e1a44f35a71927df243d92a4eede126f437ac +0 -0
- package/.idea/sonarlint/securityhotspotstore/a/0/a06a99270cf7808dda3a6025cf813ae52720b475 +0 -0
- package/.idea/sonarlint/securityhotspotstore/index.pb +11 -1
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/productCatalog/dtos/CreateProductCatalogRequest.d.ts +10 -0
- package/bin/productCatalog/dtos/CreateProductCatalogRequest.js +6 -0
- package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
- package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
- package/bin/productCatalog/dtos/GetProductCatalogResponse.d.ts +12 -0
- package/bin/productCatalog/dtos/GetProductCatalogResponse.js +49 -0
- package/bin/productCatalog/enums/ProductTaxFeeTypeEnum.d.ts +4 -0
- package/bin/productCatalog/enums/ProductTaxFeeTypeEnum.js +8 -0
- package/bin/productCatalog/index.d.ts +4 -0
- package/bin/productCatalog/index.js +20 -0
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +11 -0
- package/src/productCatalog/dtos/GetProductCatalogRequest.ts +6 -0
- package/src/productCatalog/dtos/GetProductCatalogResponse.ts +29 -0
- package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +4 -0
- package/src/productCatalog/index.ts +5 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -129,4 +129,14 @@ P
|
|
|
129
129
|
N
|
|
130
130
|
src/transaction/dtos/Credit.ts,e/0/e05f58bae396006667e2ac1103d301e443e1f856
|
|
131
131
|
M
|
|
132
|
-
src/transaction/dtos/Debit.ts,a/b/abfb24bd8d0e3cdfbf3ff4c7e80603bf1cdf7871
|
|
132
|
+
src/transaction/dtos/Debit.ts,a/b/abfb24bd8d0e3cdfbf3ff4c7e80603bf1cdf7871
|
|
133
|
+
a
|
|
134
|
+
1src/productCatalog/enums/ProductTaxFeeTypeEnum.ts,7/8/782e1a44f35a71927df243d92a4eede126f437ac
|
|
135
|
+
d
|
|
136
|
+
4src/productCatalog/dtos/GetProductCatalogResponse.ts,a/0/a06a99270cf7808dda3a6025cf813ae52720b475
|
|
137
|
+
K
|
|
138
|
+
src/productCatalog/index.ts,7/4/7489a99709fa9ca44fa1a085c02ee8502e21a9fd
|
|
139
|
+
c
|
|
140
|
+
3src/productCatalog/dtos/GetProductCatalogRequest.ts,1/6/16863f8a5d6b34f47d8d39b36f6b7608e1db454d
|
|
141
|
+
f
|
|
142
|
+
6src/productCatalog/dtos/CreateProductCatalogRequest.ts,2/9/2983524a17882775f03310e18fd052a958d44d3b
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -129,4 +129,14 @@ P
|
|
|
129
129
|
N
|
|
130
130
|
src/transaction/dtos/Credit.ts,e/0/e05f58bae396006667e2ac1103d301e443e1f856
|
|
131
131
|
M
|
|
132
|
-
src/transaction/dtos/Debit.ts,a/b/abfb24bd8d0e3cdfbf3ff4c7e80603bf1cdf7871
|
|
132
|
+
src/transaction/dtos/Debit.ts,a/b/abfb24bd8d0e3cdfbf3ff4c7e80603bf1cdf7871
|
|
133
|
+
a
|
|
134
|
+
1src/productCatalog/enums/ProductTaxFeeTypeEnum.ts,7/8/782e1a44f35a71927df243d92a4eede126f437ac
|
|
135
|
+
d
|
|
136
|
+
4src/productCatalog/dtos/GetProductCatalogResponse.ts,a/0/a06a99270cf7808dda3a6025cf813ae52720b475
|
|
137
|
+
K
|
|
138
|
+
src/productCatalog/index.ts,7/4/7489a99709fa9ca44fa1a085c02ee8502e21a9fd
|
|
139
|
+
c
|
|
140
|
+
3src/productCatalog/dtos/GetProductCatalogRequest.ts,1/6/16863f8a5d6b34f47d8d39b36f6b7608e1db454d
|
|
141
|
+
f
|
|
142
|
+
6src/productCatalog/dtos/CreateProductCatalogRequest.ts,2/9/2983524a17882775f03310e18fd052a958d44d3b
|
package/bin/index.d.ts
CHANGED
|
@@ -19,3 +19,4 @@ export * as GenericMessage from './genericMessage';
|
|
|
19
19
|
export * as TransactionProcessor from './transactionProcessor';
|
|
20
20
|
export * as Transaction from './transaction';
|
|
21
21
|
export * as ContactInfo from './contactInfo';
|
|
22
|
+
export * as ProductCatalog from './productCatalog';
|
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.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.Account = void 0;
|
|
26
|
+
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.Account = void 0;
|
|
27
27
|
exports.Account = __importStar(require("./account"));
|
|
28
28
|
exports.Address = __importStar(require("./address"));
|
|
29
29
|
exports.App = __importStar(require("./app"));
|
|
@@ -45,3 +45,4 @@ exports.GenericMessage = __importStar(require("./genericMessage"));
|
|
|
45
45
|
exports.TransactionProcessor = __importStar(require("./transactionProcessor"));
|
|
46
46
|
exports.Transaction = __importStar(require("./transaction"));
|
|
47
47
|
exports.ContactInfo = __importStar(require("./contactInfo"));
|
|
48
|
+
exports.ProductCatalog = __importStar(require("./productCatalog"));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
import { ProductTaxFeeTypeEnum } from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
+
export declare class CreateProductCatalogRequest {
|
|
4
|
+
id: string;
|
|
5
|
+
currencyId: CountryId;
|
|
6
|
+
feeType: ProductTaxFeeTypeEnum;
|
|
7
|
+
fee: number;
|
|
8
|
+
taxType: ProductTaxFeeTypeEnum;
|
|
9
|
+
tax: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const class_validator_1 = require("class-validator");
|
|
13
|
+
class GetProductCatalogRequest {
|
|
14
|
+
}
|
|
15
|
+
exports.default = GetProductCatalogRequest;
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsArray)(),
|
|
18
|
+
__metadata("design:type", Array)
|
|
19
|
+
], GetProductCatalogRequest.prototype, "ids", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
import { ProductTaxFeeTypeEnum } from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
+
export default class GetProductCatalogResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
currencyId: CountryId;
|
|
6
|
+
feeType: ProductTaxFeeTypeEnum;
|
|
7
|
+
fee: number;
|
|
8
|
+
taxType: ProductTaxFeeTypeEnum;
|
|
9
|
+
tax: number;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
const country_1 = require("../../country");
|
|
13
|
+
const ProductTaxFeeTypeEnum_1 = require("../enums/ProductTaxFeeTypeEnum");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class GetProductCatalogResponse {
|
|
16
|
+
}
|
|
17
|
+
exports.default = GetProductCatalogResponse;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetProductCatalogResponse.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(country_1.CountryId),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], GetProductCatalogResponse.prototype, "currencyId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(ProductTaxFeeTypeEnum_1.ProductTaxFeeTypeEnum),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], GetProductCatalogResponse.prototype, "feeType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], GetProductCatalogResponse.prototype, "fee", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsEnum)(ProductTaxFeeTypeEnum_1.ProductTaxFeeTypeEnum),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GetProductCatalogResponse.prototype, "taxType", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], GetProductCatalogResponse.prototype, "tax", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], GetProductCatalogResponse.prototype, "createdAt", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], GetProductCatalogResponse.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductTaxFeeTypeEnum = void 0;
|
|
4
|
+
var ProductTaxFeeTypeEnum;
|
|
5
|
+
(function (ProductTaxFeeTypeEnum) {
|
|
6
|
+
ProductTaxFeeTypeEnum["PERCENT"] = "PERCENT";
|
|
7
|
+
ProductTaxFeeTypeEnum["FIXED"] = "FIXED";
|
|
8
|
+
})(ProductTaxFeeTypeEnum || (exports.ProductTaxFeeTypeEnum = ProductTaxFeeTypeEnum = {}));
|
|
@@ -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
|
+
__exportStar(require("./dtos/GetProductCatalogRequest"), exports);
|
|
18
|
+
__exportStar(require("./dtos/GetProductCatalogResponse"), exports);
|
|
19
|
+
__exportStar(require("./dtos/CreateProductCatalogRequest"), exports);
|
|
20
|
+
__exportStar(require("./enums/ProductTaxFeeTypeEnum"), exports);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -18,7 +18,8 @@ export * as EventBridgeMessage from './eventBridge';
|
|
|
18
18
|
export * as GenericMessage from './genericMessage';
|
|
19
19
|
export * as TransactionProcessor from './transactionProcessor';
|
|
20
20
|
export * as Transaction from './transaction';
|
|
21
|
-
export * as ContactInfo from './contactInfo'
|
|
21
|
+
export * as ContactInfo from './contactInfo';
|
|
22
|
+
export * as ProductCatalog from './productCatalog';
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {CountryId} from "../../country";
|
|
2
|
+
import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
+
|
|
4
|
+
export class CreateProductCatalogRequest {
|
|
5
|
+
id: string;
|
|
6
|
+
currencyId: CountryId;
|
|
7
|
+
feeType: ProductTaxFeeTypeEnum;
|
|
8
|
+
fee: number;
|
|
9
|
+
taxType: ProductTaxFeeTypeEnum;
|
|
10
|
+
tax: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {CountryId} from "../../country";
|
|
2
|
+
import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
+
import {IsEnum, IsNumber, IsString} from "class-validator";
|
|
4
|
+
|
|
5
|
+
export default class GetProductCatalogResponse {
|
|
6
|
+
@IsString()
|
|
7
|
+
id: string;
|
|
8
|
+
|
|
9
|
+
@IsEnum(CountryId)
|
|
10
|
+
currencyId: CountryId;
|
|
11
|
+
|
|
12
|
+
@IsEnum(ProductTaxFeeTypeEnum)
|
|
13
|
+
feeType: ProductTaxFeeTypeEnum;
|
|
14
|
+
|
|
15
|
+
@IsNumber()
|
|
16
|
+
fee: number;
|
|
17
|
+
|
|
18
|
+
@IsEnum(ProductTaxFeeTypeEnum)
|
|
19
|
+
taxType: ProductTaxFeeTypeEnum;
|
|
20
|
+
|
|
21
|
+
@IsNumber()
|
|
22
|
+
tax: number;
|
|
23
|
+
|
|
24
|
+
@IsString()
|
|
25
|
+
createdAt: string;
|
|
26
|
+
|
|
27
|
+
@IsString()
|
|
28
|
+
updatedAt: string;
|
|
29
|
+
}
|