@servicelabsco/nestjs-utility-services 1.1.18 → 1.1.20
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/auth/dtos/user.access.dto.d.ts +1 -0
- package/dist/auth/dtos/user.access.dto.js.map +1 -1
- package/dist/platformUtility/dtos/index.d.ts +1 -0
- package/dist/platformUtility/dtos/index.js +1 -0
- package/dist/platformUtility/dtos/index.js.map +1 -1
- package/dist/platformUtility/dtos/remote.raw.response.dto.d.ts +5 -0
- package/dist/platformUtility/dtos/remote.raw.response.dto.js +31 -0
- package/dist/platformUtility/dtos/remote.raw.response.dto.js.map +1 -0
- package/dist/platformUtility/es6.classes.d.ts +2 -1
- package/dist/platformUtility/es6.classes.js +10 -1
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/services/remote.request.service.d.ts +2 -0
- package/dist/platformUtility/services/remote.request.service.js +11 -0
- package/dist/platformUtility/services/remote.request.service.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.access.dto.js","sourceRoot":"","sources":["../../../src/auth/dtos/user.access.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;
|
1
|
+
{"version":3,"file":"user.access.dto.js","sourceRoot":"","sources":["../../../src/auth/dtos/user.access.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAqBzB;AArBD,sCAqBC"}
|
@@ -20,4 +20,5 @@ __exportStar(require("./push.notification.template.dto"), exports);
|
|
20
20
|
__exportStar(require("./queue.options.dto"), exports);
|
21
21
|
__exportStar(require("./mail.options.dto"), exports);
|
22
22
|
__exportStar(require("./common.attributes.dto"), exports);
|
23
|
+
__exportStar(require("./remote.raw.response.dto"), exports);
|
23
24
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,mEAAiD;AACjD,mEAAiD;AACjD,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,mEAAiD;AACjD,mEAAiD;AACjD,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC;AACxC,4DAA0C"}
|
@@ -0,0 +1,31 @@
|
|
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.RemoteRawResponseDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class RemoteRawResponseDto {
|
15
|
+
}
|
16
|
+
__decorate([
|
17
|
+
(0, class_validator_1.IsNumber)(),
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], RemoteRawResponseDto.prototype, "status", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
23
|
+
__metadata("design:type", Object)
|
24
|
+
], RemoteRawResponseDto.prototype, "data", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsBoolean)(),
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
28
|
+
__metadata("design:type", Boolean)
|
29
|
+
], RemoteRawResponseDto.prototype, "success", void 0);
|
30
|
+
exports.RemoteRawResponseDto = RemoteRawResponseDto;
|
31
|
+
//# sourceMappingURL=remote.raw.response.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remote.raw.response.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/remote.raw.response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;CAWhC;AAVG;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACE;AAEf;IAAC,IAAA,4BAAU,GAAE;;kDACH;AAEV;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;qDACI;AAVrB,oDAWC"}
|
@@ -11,6 +11,7 @@ import { MailOptionsDto } from './dtos/mail.options.dto';
|
|
11
11
|
import { PushNotificationResponseDto } from './dtos/push.notification.response.dto';
|
12
12
|
import { PushNotificationTemplateDto } from './dtos/push.notification.template.dto';
|
13
13
|
import { QueueOptionsDto } from './dtos/queue.options.dto';
|
14
|
+
import { RemoteRawResponseDto } from './dtos/remote.raw.response.dto';
|
14
15
|
import { RecordWatcherJob } from './jobs/record.watcher.job';
|
15
16
|
import { TestJob } from './jobs/test.job';
|
16
17
|
import { CreateEntityConstantsFile } from './libraries/create.entity.constants.file';
|
@@ -43,7 +44,7 @@ declare const es6Classes: {
|
|
43
44
|
commands: (typeof MaintenanceCommand | typeof SyncClassCommand | typeof SqsWorkerCommand | typeof EntityGeneratorCommand)[];
|
44
45
|
consumers: (typeof EventConsumer | typeof JobConsumer)[];
|
45
46
|
controllers: (typeof QueueController)[];
|
46
|
-
dtos: (typeof QueueOptionsDto | typeof FcmResponseDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto | typeof MailOptionsDto | typeof CommonAttributesDto)[];
|
47
|
+
dtos: (typeof QueueOptionsDto | typeof RemoteRawResponseDto | typeof FcmResponseDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto | typeof MailOptionsDto | typeof CommonAttributesDto)[];
|
47
48
|
jobs: (typeof RecordWatcherJob | typeof TestJob)[];
|
48
49
|
libraries: (typeof FileSystemUtility | typeof ProcessCommonMail | typeof ProcessPostmarkMail | typeof CreateEntityConstantsFile | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEs6ServiceFile | typeof CreateIndexFile)[];
|
49
50
|
middlewares: (typeof MaintenanceMiddleware | typeof TrimPipe)[];
|
@@ -13,6 +13,7 @@ const mail_options_dto_1 = require("./dtos/mail.options.dto");
|
|
13
13
|
const push_notification_response_dto_1 = require("./dtos/push.notification.response.dto");
|
14
14
|
const push_notification_template_dto_1 = require("./dtos/push.notification.template.dto");
|
15
15
|
const queue_options_dto_1 = require("./dtos/queue.options.dto");
|
16
|
+
const remote_raw_response_dto_1 = require("./dtos/remote.raw.response.dto");
|
16
17
|
const record_watcher_job_1 = require("./jobs/record.watcher.job");
|
17
18
|
const test_job_1 = require("./jobs/test.job");
|
18
19
|
const create_entity_constants_file_1 = require("./libraries/create.entity.constants.file");
|
@@ -45,7 +46,15 @@ const es6Classes = {
|
|
45
46
|
commands: [entity_generator_command_1.EntityGeneratorCommand, maintenance_command_1.MaintenanceCommand, sqs_worker_command_1.SqsWorkerCommand, sync_class_command_1.SyncClassCommand],
|
46
47
|
consumers: [event_consumer_1.EventConsumer, job_consumer_1.JobConsumer],
|
47
48
|
controllers: [queue_controller_1.QueueController],
|
48
|
-
dtos: [
|
49
|
+
dtos: [
|
50
|
+
common_attributes_dto_1.CommonAttributesDto,
|
51
|
+
fcm_response_dto_1.FcmResponseDto,
|
52
|
+
mail_options_dto_1.MailOptionsDto,
|
53
|
+
push_notification_response_dto_1.PushNotificationResponseDto,
|
54
|
+
push_notification_template_dto_1.PushNotificationTemplateDto,
|
55
|
+
queue_options_dto_1.QueueOptionsDto,
|
56
|
+
remote_raw_response_dto_1.RemoteRawResponseDto,
|
57
|
+
],
|
49
58
|
jobs: [record_watcher_job_1.RecordWatcherJob, test_job_1.TestJob],
|
50
59
|
libraries: [
|
51
60
|
create_entity_constants_file_1.CreateEntityConstantsFile,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/platformUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,kFAA6E;AAC7E,wEAAoE;AACpE,sEAAiE;AACjE,sEAAiE;AACjE,+DAA2D;AAC3D,2DAAuD;AACvD,qEAAiE;AACjE,wEAAmE;AACnE,8DAAyD;AACzD,8DAAyD;AACzD,0FAAoF;AACpF,0FAAoF;AACpF,gEAA2D;AAC3D,kEAA6D;AAC7D,8CAA0C;AAC1C,2FAAqF;AACrF,iFAA2E;AAC3E,2EAAqE;AACrE,iFAA2E;AAC3E,qEAAgE;AAChE,yEAAoE;AACpE,yEAAoE;AACpE,6EAAwE;AACxE,iFAA6E;AAC7E,uDAAmD;AACnD,4DAAwD;AACxD,4DAAwD;AACxD,8DAA0D;AAC1D,kEAA6D;AAC7D,wDAAoD;AACpD,kFAA6E;AAC7E,8EAAyE;AACzE,0DAAsD;AACtD,wEAAoE;AACpE,4DAAwD;AACxD,8EAAyE;AACzE,kEAA8D;AAC9D,wDAAoD;AACpD,wDAAoD;AACpD,gEAA4D;AAC5D,mEAA+D;AAE/D,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,iDAAsB,EAAE,wCAAkB,EAAE,qCAAgB,EAAE,qCAAgB,CAAC;IAC1F,SAAS,EAAE,CAAC,8BAAa,EAAE,0BAAW,CAAC;IACvC,WAAW,EAAE,CAAC,kCAAe,CAAC;IAC9B,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/platformUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA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ACb,iCAAc;QACd,wBAAU;QACV,iDAAsB;QACtB,6CAAoB;QACpB,0BAAW;QACX,wCAAkB;QAClB,4BAAY;QACZ,6CAAoB;QACpB,kCAAe;QACf,wBAAU;QACV,wBAAU;QACV,gCAAc;KACjB;IACD,WAAW,EAAE,CAAC,gCAAc,CAAC;CAChC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -21,6 +21,17 @@ let RemoteRequestService = class RemoteRequestService {
|
|
21
21
|
});
|
22
22
|
});
|
23
23
|
}
|
24
|
+
async getRawResponse(options) {
|
25
|
+
return new Promise((resolve, reject) => {
|
26
|
+
(0, axios_1.default)(options)
|
27
|
+
.then((response) => {
|
28
|
+
resolve({ success: true, data: response.data, status: response.status });
|
29
|
+
})
|
30
|
+
.catch((error) => {
|
31
|
+
resolve({ success: false, data: error.response.data, status: error.response.status });
|
32
|
+
});
|
33
|
+
});
|
34
|
+
}
|
24
35
|
};
|
25
36
|
RemoteRequestService = __decorate([
|
26
37
|
(0, common_1.Injectable)()
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"remote.request.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/remote.request.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;
|
1
|
+
{"version":3,"file":"remote.request.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/remote.request.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,iCAA0B;AASnB,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAO7B,KAAK,CAAC,gBAAgB,CAAC,OAAY;QAC/B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,IAAA,eAAK,EAAC,OAAO,CAAC;iBACT,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACf,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EA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