adamo-types 1.1.55 → 1.1.57
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/dist/bss/constants/bp.constants.d.ts +1 -0
- package/dist/bss/constants/bp.constants.js +1 -0
- package/dist/common/constants/common.constants.d.ts +2 -1
- package/dist/common/constants/common.constants.js +1 -0
- package/dist/common/edge-bss/shopping-cart/req/other.entity.d.ts +3 -0
- package/dist/common/edge-bss/shopping-cart/req/other.entity.js +7 -1
- package/dist/common/edge-bss/shopping-cart/res/other.entity.d.ts +19 -0
- package/dist/common/edge-bss/shopping-cart/res/other.entity.js +20 -2
- package/dist/common/edge-mm/index.d.ts +1 -0
- package/dist/common/{edge-sms/information → edge-mm}/index.js +1 -1
- package/dist/common/edge-mm/information/index.d.ts +2 -0
- package/dist/common/edge-mm/information/index.js +18 -0
- package/dist/common/edge-mm/information/req/information.entity.d.ts +14 -0
- package/dist/common/edge-mm/information/req/information.entity.js +22 -0
- package/dist/common/edge-mm/information/res/res-information.entity.d.ts +20 -0
- package/dist/common/edge-mm/information/res/res-information.entity.js +16 -0
- package/dist/common/edge-sms/index.d.ts +0 -1
- package/dist/common/edge-sms/index.js +0 -1
- package/dist/common/exception/exception.entity.d.ts +3 -0
- package/dist/common/exception/exception.entity.js +14 -2
- package/dist/sys03/address/req/address.entity.d.ts +3 -0
- package/dist/sys03/address/req/address.entity.js +7 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/common/edge-sms/information/index.d.ts +0 -1
- package/dist/common/edge-sms/information/req/req.entity.d.ts +0 -4
- package/dist/common/edge-sms/information/req/req.entity.js +0 -10
- package/dist/common/edge-sms/information/res/res.entity.d.ts +0 -0
- package/dist/common/edge-sms/information/res/res.entity.js +0 -1
|
@@ -4,6 +4,7 @@ exports.CustomerAccountHistoryType = exports.PaymentMethodType = exports.Deliver
|
|
|
4
4
|
var ConfigurationAttributeType;
|
|
5
5
|
(function (ConfigurationAttributeType) {
|
|
6
6
|
ConfigurationAttributeType["BINDING_PERIOD"] = "BINDING_PERIOD";
|
|
7
|
+
ConfigurationAttributeType["BUNDLE_PRODUCTS"] = "BUNDLE_PRODUCTS";
|
|
7
8
|
ConfigurationAttributeType["BUSINESS_TYPE"] = "BUSINESS_TYPE";
|
|
8
9
|
ConfigurationAttributeType["CHANNEL"] = "CHANNEL";
|
|
9
10
|
ConfigurationAttributeType["COMPETITION"] = "COMPETITION";
|
|
@@ -92,4 +92,5 @@ var MicroserviceType;
|
|
|
92
92
|
MicroserviceType["OTRS"] = "OTRS";
|
|
93
93
|
MicroserviceType["SMS_CERT"] = "SMS CERT";
|
|
94
94
|
MicroserviceType["ZOHO_ADAPTOR"] = "ZOHO ADAPTOR";
|
|
95
|
+
MicroserviceType["MSG_MEDIA"] = "MESSAGE MEDIA";
|
|
95
96
|
})(MicroserviceType = exports.MicroserviceType || (exports.MicroserviceType = {}));
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdateShoppingCartServiceSpecificationItemDto = exports.UpdateShoppingCartConfigurationProductDto = exports.UpadateShoppingCartConfigurationBundleDto = exports.UpdateShoppingCartBundlesConfigurationDto = exports.UpdateShoppingCartConfigurationDto = exports.UpdateShoppingCartPromotionsDto = exports.UpdateShoppingCartCharacteristicDto = exports.UpdateShoppingCartContractDto = exports.SaveShoppingCartDto = exports.UpdateShoppingCartExtraGroupDto = exports.UpdateShoppingCartExtraDto = exports.UpdateShoppingCartBundlesExtraDto = exports.UpdateShoppingCartBundleExtrasDto = exports.UpdateShoppingCartExtrasDto = exports.ShoppingCartUpdateInfoDto = exports.ConfigurationAttributeValuesDto = void 0;
|
|
12
|
+
exports.AvailableProductsQueryDto = exports.UpdateShoppingCartServiceSpecificationItemDto = exports.UpdateShoppingCartConfigurationProductDto = exports.UpadateShoppingCartConfigurationBundleDto = exports.UpdateShoppingCartBundlesConfigurationDto = exports.UpdateShoppingCartConfigurationDto = exports.UpdateShoppingCartPromotionsDto = exports.UpdateShoppingCartCharacteristicDto = exports.UpdateShoppingCartContractDto = exports.SaveShoppingCartDto = exports.UpdateShoppingCartExtraGroupDto = exports.UpdateShoppingCartExtraDto = exports.UpdateShoppingCartBundlesExtraDto = exports.UpdateShoppingCartBundleExtrasDto = exports.UpdateShoppingCartExtrasDto = exports.ShoppingCartUpdateInfoDto = exports.ConfigurationAttributeValuesDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const common_constants_1 = require("../../../constants/common.constants");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
@@ -269,3 +269,9 @@ __decorate([
|
|
|
269
269
|
__metadata("design:type", Object)
|
|
270
270
|
], UpdateShoppingCartServiceSpecificationItemDto.prototype, "value", void 0);
|
|
271
271
|
exports.UpdateShoppingCartServiceSpecificationItemDto = UpdateShoppingCartServiceSpecificationItemDto;
|
|
272
|
+
class AvailableProductsQueryDto {
|
|
273
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
274
|
+
return { configurationAttributes: { required: true, type: () => Boolean } };
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
exports.AvailableProductsQueryDto = AvailableProductsQueryDto;
|
|
@@ -2,15 +2,34 @@ import { ShoppingCartParametersDto } from '@bss/bearingpoint';
|
|
|
2
2
|
import { BssChargeType, ServiceSpecificationType } from '@bss/constants';
|
|
3
3
|
import { ShoppingCartExtra, ShoppingCartExtraGroup } from '@bss/shopping-cart';
|
|
4
4
|
import { ShoppingCartConfigurationProductType } from '@common/constants';
|
|
5
|
+
export declare class ShoppingCartConfigurationAttributeDto {
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
5
9
|
export declare class ShoppingCartAvailableProductResDto {
|
|
6
10
|
name: string;
|
|
7
11
|
displayName: string;
|
|
8
12
|
displayDescription: string;
|
|
13
|
+
configurationAttributes?: ShoppingCartConfigurationAttributeDto[];
|
|
14
|
+
}
|
|
15
|
+
export declare class ShoppingCartAvailableProductInfoDto {
|
|
16
|
+
name: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
displayDescription: string;
|
|
19
|
+
fiberType: string;
|
|
20
|
+
fiberUpload: string;
|
|
21
|
+
fiberDownload: string;
|
|
22
|
+
voip: string;
|
|
23
|
+
mobile: string;
|
|
9
24
|
}
|
|
10
25
|
export declare class ShoppingCartAvailableProductWithIdResDto {
|
|
11
26
|
id: string;
|
|
12
27
|
products: ShoppingCartAvailableProductResDto[];
|
|
13
28
|
}
|
|
29
|
+
export declare class ShoppingCartAvailableProductWithIdAndInfoResDto {
|
|
30
|
+
id: string;
|
|
31
|
+
products: ShoppingCartAvailableProductInfoDto[];
|
|
32
|
+
}
|
|
14
33
|
export declare class ShoppingCartExtrasResDto {
|
|
15
34
|
extraGroups: ShoppingCartExtraGroup[];
|
|
16
35
|
extras: ShoppingCartExtra[];
|
|
@@ -9,22 +9,40 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ShoppingCartInfoServiceCharacteristicDto = exports.ShoppingCartInfoServiceDto = exports.ShoppingCartInfoCharacteristicDto = exports.ShoppingCartInfoProductDto = exports.ShoppingCartBundleInfoDto = exports.ShoppingCartBundlesInfoDto = exports.ShoppingCartInfoDto = exports.ShoppingCartConfigurationServiceValueResDto = exports.ShoppingCartConfigurationAddressResDto = exports.ShoppingCartConfigurationServiceSpecificationItemResDto = exports.ShoppingCartConfigurationServiceSpecificationItemBssResDto = exports.ShoppingCartConfigurationMobilePortinResDto = exports.ShoppingCartConfigurationMobileResDto = exports.ShoppingCartConfigurationVoipPortinResDto = exports.ShoppingCartConfigurationVoipResDto = exports.ShoppingCartConfigurationFibreResDto = exports.ShoppingCartConfigurationProductResDto = exports.ShoppingCartConfigurationProductBssResDto = exports.ShoppingCartConfigurationChargeResDto = exports.ShoppingCartConfigurationCharacteristicResDto = exports.ShoppingCartConfigurationCharacteristicGroupResDto = exports.ShoppingCartConfigurationFeaturesResDto = exports.ShoppingCartBundlesConfigurationResDto = exports.ShoppingCartConfigurationResDto = exports.ShoppingCartFeaturesResDto = exports.ShoppingCartConfigurationBundleResDto = exports.ShoppingCartConfigurationBundleBssResDto = exports.ShoppingCartBundlesConfigurationBssResDto = exports.ShoppingCartConfigurationBssResDto = exports.ShoppingCartBundleExtrasResDto = exports.ShoppingCartExtrasResDto = exports.ShoppingCartAvailableProductWithIdResDto = exports.ShoppingCartAvailableProductResDto = void 0;
|
|
12
|
+
exports.ShoppingCartInfoServiceCharacteristicDto = exports.ShoppingCartInfoServiceDto = exports.ShoppingCartInfoCharacteristicDto = exports.ShoppingCartInfoProductDto = exports.ShoppingCartBundleInfoDto = exports.ShoppingCartBundlesInfoDto = exports.ShoppingCartInfoDto = exports.ShoppingCartConfigurationServiceValueResDto = exports.ShoppingCartConfigurationAddressResDto = exports.ShoppingCartConfigurationServiceSpecificationItemResDto = exports.ShoppingCartConfigurationServiceSpecificationItemBssResDto = exports.ShoppingCartConfigurationMobilePortinResDto = exports.ShoppingCartConfigurationMobileResDto = exports.ShoppingCartConfigurationVoipPortinResDto = exports.ShoppingCartConfigurationVoipResDto = exports.ShoppingCartConfigurationFibreResDto = exports.ShoppingCartConfigurationProductResDto = exports.ShoppingCartConfigurationProductBssResDto = exports.ShoppingCartConfigurationChargeResDto = exports.ShoppingCartConfigurationCharacteristicResDto = exports.ShoppingCartConfigurationCharacteristicGroupResDto = exports.ShoppingCartConfigurationFeaturesResDto = exports.ShoppingCartBundlesConfigurationResDto = exports.ShoppingCartConfigurationResDto = exports.ShoppingCartFeaturesResDto = exports.ShoppingCartConfigurationBundleResDto = exports.ShoppingCartConfigurationBundleBssResDto = exports.ShoppingCartBundlesConfigurationBssResDto = exports.ShoppingCartConfigurationBssResDto = exports.ShoppingCartBundleExtrasResDto = exports.ShoppingCartExtrasResDto = exports.ShoppingCartAvailableProductWithIdAndInfoResDto = exports.ShoppingCartAvailableProductWithIdResDto = exports.ShoppingCartAvailableProductInfoDto = exports.ShoppingCartAvailableProductResDto = exports.ShoppingCartConfigurationAttributeDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
+
class ShoppingCartConfigurationAttributeDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { name: { required: true, type: () => String }, value: { required: true, type: () => String } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.ShoppingCartConfigurationAttributeDto = ShoppingCartConfigurationAttributeDto;
|
|
16
22
|
class ShoppingCartAvailableProductResDto {
|
|
17
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String } };
|
|
24
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, configurationAttributes: { required: false, type: () => [require("./other.entity").ShoppingCartConfigurationAttributeDto] } };
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
exports.ShoppingCartAvailableProductResDto = ShoppingCartAvailableProductResDto;
|
|
28
|
+
class ShoppingCartAvailableProductInfoDto {
|
|
29
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
30
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, fiberType: { required: true, type: () => String }, fiberUpload: { required: true, type: () => String }, fiberDownload: { required: true, type: () => String }, voip: { required: true, type: () => String }, mobile: { required: true, type: () => String } };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ShoppingCartAvailableProductInfoDto = ShoppingCartAvailableProductInfoDto;
|
|
22
34
|
class ShoppingCartAvailableProductWithIdResDto {
|
|
23
35
|
static _OPENAPI_METADATA_FACTORY() {
|
|
24
36
|
return { id: { required: true, type: () => String }, products: { required: true, type: () => [require("./other.entity").ShoppingCartAvailableProductResDto] } };
|
|
25
37
|
}
|
|
26
38
|
}
|
|
27
39
|
exports.ShoppingCartAvailableProductWithIdResDto = ShoppingCartAvailableProductWithIdResDto;
|
|
40
|
+
class ShoppingCartAvailableProductWithIdAndInfoResDto {
|
|
41
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
42
|
+
return { id: { required: true, type: () => String }, products: { required: true, type: () => [require("./other.entity").ShoppingCartAvailableProductInfoDto] } };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ShoppingCartAvailableProductWithIdAndInfoResDto = ShoppingCartAvailableProductWithIdAndInfoResDto;
|
|
28
46
|
class ShoppingCartExtrasResDto {
|
|
29
47
|
static _OPENAPI_METADATA_FACTORY() {
|
|
30
48
|
return { extraGroups: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtraGroup] }, extras: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtra] } };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './information';
|
|
@@ -14,4 +14,4 @@ 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("./
|
|
17
|
+
__exportStar(require("./information"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./req/information.entity"), exports);
|
|
18
|
+
__exportStar(require("./res/res-information.entity"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class SendInformationDto {
|
|
2
|
+
phone: string;
|
|
3
|
+
context: string;
|
|
4
|
+
additionalData?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class MMInformationPayload {
|
|
8
|
+
messages: MessagesEntity[];
|
|
9
|
+
}
|
|
10
|
+
export declare class MessagesEntity {
|
|
11
|
+
content: string;
|
|
12
|
+
destination_number: string;
|
|
13
|
+
format: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessagesEntity = exports.MMInformationPayload = exports.SendInformationDto = void 0;
|
|
4
|
+
const openapi = require("@nestjs/swagger");
|
|
5
|
+
class SendInformationDto {
|
|
6
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
+
return { phone: { required: true, type: () => String }, context: { required: true, type: () => String }, additionalData: { required: false, type: () => String }, message: { required: false, type: () => String } };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SendInformationDto = SendInformationDto;
|
|
11
|
+
class MMInformationPayload {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { messages: { required: true, type: () => [require("./information.entity").MessagesEntity] } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.MMInformationPayload = MMInformationPayload;
|
|
17
|
+
class MessagesEntity {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { content: { required: true, type: () => String }, destination_number: { required: true, type: () => String }, format: { required: true, type: () => String } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MessagesEntity = MessagesEntity;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class ResInformationSent {
|
|
2
|
+
messages: MessagesMetaData[];
|
|
3
|
+
}
|
|
4
|
+
export declare class MessagesMetaData {
|
|
5
|
+
callback_url: string | null;
|
|
6
|
+
delivery_report: boolean;
|
|
7
|
+
destination_number: string;
|
|
8
|
+
format: string;
|
|
9
|
+
message_expiry_timestamp: string | null;
|
|
10
|
+
message_flags: Array<any>;
|
|
11
|
+
message_id: string;
|
|
12
|
+
metadata: any;
|
|
13
|
+
scheduled: string;
|
|
14
|
+
status: string;
|
|
15
|
+
content: string;
|
|
16
|
+
source_number: null | string;
|
|
17
|
+
rich_link: null | string;
|
|
18
|
+
media: null | string;
|
|
19
|
+
subject: null | string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessagesMetaData = exports.ResInformationSent = void 0;
|
|
4
|
+
const openapi = require("@nestjs/swagger");
|
|
5
|
+
class ResInformationSent {
|
|
6
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
+
return { messages: { required: true, type: () => [require("./res-information.entity").MessagesMetaData] } };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ResInformationSent = ResInformationSent;
|
|
11
|
+
class MessagesMetaData {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { callback_url: { required: true, type: () => String, nullable: true }, delivery_report: { required: true, type: () => Boolean }, destination_number: { required: true, type: () => String }, format: { required: true, type: () => String }, message_expiry_timestamp: { required: true, type: () => String, nullable: true }, message_flags: { required: true, type: () => [Object] }, message_id: { required: true, type: () => String }, metadata: { required: true, type: () => Object }, scheduled: { required: true, type: () => String }, status: { required: true, type: () => String }, content: { required: true, type: () => String }, source_number: { required: true, type: () => String, nullable: true }, rich_link: { required: true, type: () => String, nullable: true }, media: { required: true, type: () => String, nullable: true }, subject: { required: true, type: () => String, nullable: true } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.MessagesMetaData = MessagesMetaData;
|
|
@@ -55,6 +55,9 @@ export declare class ZohoError extends CustomError {
|
|
|
55
55
|
export declare class SmsCertError extends CustomError {
|
|
56
56
|
constructor({ code, args }: ErrorParams);
|
|
57
57
|
}
|
|
58
|
+
export declare class MsgMediaError extends CustomError {
|
|
59
|
+
constructor({ code, args }: ErrorParams);
|
|
60
|
+
}
|
|
58
61
|
export declare class OtrsError extends CustomError {
|
|
59
62
|
constructor({ code, args }: ErrorParams);
|
|
60
63
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BssBridgeError = exports.BearingPointError = exports.AmsError = exports.DbBridgeError = exports.OtrsError = exports.SmsCertError = exports.ZohoError = exports.ArsEdgeError = exports.FtpError = exports.NieValidationError = exports.CifValidationError = exports.DniValidationError = exports.CustomError = exports.ObjectError = exports.HttpExceptionPayloadDto = exports.ConstraintsDto = exports.MessagePayloadDto = exports.BulkExceptionPayloadDto = void 0;
|
|
3
|
+
exports.BssBridgeError = exports.BearingPointError = exports.AmsError = exports.DbBridgeError = exports.OtrsError = exports.MsgMediaError = exports.SmsCertError = exports.ZohoError = exports.ArsEdgeError = exports.FtpError = exports.NieValidationError = exports.CifValidationError = exports.DniValidationError = exports.CustomError = exports.ObjectError = exports.HttpExceptionPayloadDto = exports.ConstraintsDto = exports.MessagePayloadDto = exports.BulkExceptionPayloadDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
const error_constants_1 = require("../constants/error.constants");
|
|
6
6
|
const common_constants_1 = require("../constants/common.constants");
|
|
@@ -109,7 +109,7 @@ exports.ArsEdgeError = ArsEdgeError;
|
|
|
109
109
|
class ZohoError extends CustomError {
|
|
110
110
|
constructor({ code, args = {} }) {
|
|
111
111
|
var _a;
|
|
112
|
-
const { response: { status: statusCode, data: { code: responseCode, message: responseMessage } } = { status: undefined, data: ({} = {}) }, message, stack, code: argsCode } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
|
|
112
|
+
const { response: { status: statusCode, data: { code: responseCode, message: responseMessage } } = { status: undefined, data: ({} = {}) }, message, stack, code: argsCode, } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
|
|
113
113
|
super(common_constants_1.MicroserviceType.ZOHO_ADAPTOR, mappedCode, responseMessage || message, stack);
|
|
114
114
|
this.statusCode = statusCode;
|
|
115
115
|
this.name = 'ZohoError';
|
|
@@ -131,6 +131,18 @@ class SmsCertError extends CustomError {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
exports.SmsCertError = SmsCertError;
|
|
134
|
+
class MsgMediaError extends CustomError {
|
|
135
|
+
constructor({ code, args = {} }) {
|
|
136
|
+
var _a;
|
|
137
|
+
const { response: { data: { code: responseCode, message: responseMessage } } = { data: ({} = {}) }, message, stack, code: argsCode } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
|
|
138
|
+
super(common_constants_1.MicroserviceType.MSG_MEDIA, mappedCode, responseMessage || message, stack);
|
|
139
|
+
this.name = 'MsgMediaError';
|
|
140
|
+
}
|
|
141
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
142
|
+
return {};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.MsgMediaError = MsgMediaError;
|
|
134
146
|
class OtrsError extends CustomError {
|
|
135
147
|
constructor({ code, args = {} }) {
|
|
136
148
|
const { message, stack, code: argsCode } = args, mappedCode = code !== null && code !== void 0 ? code : mapErrorCode(argsCode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchByAreaParams = exports.FieldValueParams = exports.Field = void 0;
|
|
3
|
+
exports.FetchAddressByQueryDto = exports.SearchByAreaParams = exports.FieldValueParams = exports.Field = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
var Field;
|
|
6
6
|
(function (Field) {
|
|
@@ -21,3 +21,9 @@ class SearchByAreaParams {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.SearchByAreaParams = SearchByAreaParams;
|
|
24
|
+
class FetchAddressByQueryDto {
|
|
25
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
26
|
+
return { orderBy: { required: true, type: () => Object } };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.FetchAddressByQueryDto = FetchAddressByQueryDto;
|