@campxdev/server-shared 1.6.57 → 1.6.58
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/cloud-watch-logger/cloud-watch-logger.module.d.ts +5 -0
- package/dist/cloud-watch-logger/cloud-watch-logger.module.d.ts.map +1 -1
- package/dist/cloud-watch-logger/cloud-watch-logger.module.js +5 -0
- package/dist/cloud-watch-logger/cloud-watch-logger.module.js.map +1 -1
- package/dist/cloud-watch-logger/cloud-water-logger.service.d.ts +21 -5
- package/dist/cloud-watch-logger/cloud-water-logger.service.d.ts.map +1 -1
- package/dist/cloud-watch-logger/cloud-water-logger.service.js +17 -5
- package/dist/cloud-watch-logger/cloud-water-logger.service.js.map +1 -1
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.d.ts +7 -0
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.d.ts.map +1 -1
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.js +7 -0
- package/dist/cloud-watch-logger/dtos/put-log-event.dto.js.map +1 -1
- package/dist/common/decorators/batch-validation.decorator.d.ts +5 -0
- package/dist/common/decorators/batch-validation.decorator.d.ts.map +1 -1
- package/dist/common/decorators/batch-validation.decorator.js +5 -0
- package/dist/common/decorators/batch-validation.decorator.js.map +1 -1
- package/dist/common/decorators/request.decorators.d.ts +30 -1
- package/dist/common/decorators/request.decorators.d.ts.map +1 -1
- package/dist/common/decorators/request.decorators.js +92 -17
- package/dist/common/decorators/request.decorators.js.map +1 -1
- package/dist/common/decorators/time-validation.decorator.d.ts +6 -0
- package/dist/common/decorators/time-validation.decorator.d.ts.map +1 -1
- package/dist/common/decorators/time-validation.decorator.js +6 -0
- package/dist/common/decorators/time-validation.decorator.js.map +1 -1
- package/dist/common/filters/unhandled-exception.filter.d.ts +7 -0
- package/dist/common/filters/unhandled-exception.filter.d.ts.map +1 -1
- package/dist/common/filters/unhandled-exception.filter.js +7 -0
- package/dist/common/filters/unhandled-exception.filter.js.map +1 -1
- package/dist/common/interceptors/request.interceptor.js +2 -2
- package/dist/common/interceptors/request.interceptor.js.map +1 -1
- package/dist/domain/index.d.ts +2 -4
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +3 -4
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/schemas/index.d.ts +5 -0
- package/dist/domain/schemas/index.d.ts.map +1 -0
- package/dist/domain/schemas/index.js +21 -0
- package/dist/domain/schemas/index.js.map +1 -0
- package/dist/domain/schemas/print-format.schema.d.ts +72 -0
- package/dist/domain/schemas/print-format.schema.d.ts.map +1 -0
- package/dist/domain/schemas/print-format.schema.js +90 -0
- package/dist/domain/schemas/print-format.schema.js.map +1 -0
- package/dist/modules-handler/modules-handler.module.d.ts +14 -0
- package/dist/modules-handler/modules-handler.module.d.ts.map +1 -1
- package/dist/modules-handler/modules-handler.module.js +14 -0
- package/dist/modules-handler/modules-handler.module.js.map +1 -1
- package/dist/request-store/constants.d.ts +15 -0
- package/dist/request-store/constants.d.ts.map +1 -0
- package/dist/request-store/constants.js +19 -0
- package/dist/request-store/constants.js.map +1 -0
- package/dist/request-store/contexts/aws-context.d.ts +24 -0
- package/dist/request-store/contexts/aws-context.d.ts.map +1 -0
- package/dist/request-store/contexts/aws-context.js +36 -0
- package/dist/request-store/contexts/aws-context.js.map +1 -0
- package/dist/request-store/contexts/easydms-context.d.ts +13 -0
- package/dist/request-store/contexts/easydms-context.d.ts.map +1 -0
- package/dist/request-store/contexts/easydms-context.js +29 -0
- package/dist/request-store/contexts/easydms-context.js.map +1 -0
- package/dist/request-store/contexts/express-context.d.ts +23 -0
- package/dist/request-store/contexts/express-context.d.ts.map +1 -0
- package/dist/request-store/contexts/express-context.js +38 -0
- package/dist/request-store/contexts/express-context.js.map +1 -0
- package/dist/request-store/contexts/index.d.ts +9 -0
- package/dist/request-store/contexts/index.d.ts.map +1 -0
- package/dist/request-store/contexts/index.js +25 -0
- package/dist/request-store/contexts/index.js.map +1 -0
- package/dist/request-store/contexts/mongo-context.d.ts +38 -0
- package/dist/request-store/contexts/mongo-context.d.ts.map +1 -0
- package/dist/request-store/contexts/mongo-context.js +29 -0
- package/dist/request-store/contexts/mongo-context.js.map +1 -0
- package/dist/request-store/contexts/mysql-context.d.ts +21 -0
- package/dist/request-store/contexts/mysql-context.d.ts.map +1 -0
- package/dist/request-store/contexts/mysql-context.js +43 -0
- package/dist/request-store/contexts/mysql-context.js.map +1 -0
- package/dist/request-store/contexts/mysql-credentials-context.d.ts +11 -0
- package/dist/request-store/contexts/mysql-credentials-context.d.ts.map +1 -0
- package/dist/request-store/contexts/mysql-credentials-context.js +18 -0
- package/dist/request-store/contexts/mysql-credentials-context.js.map +1 -0
- package/dist/request-store/contexts/tenant-context.d.ts +163 -0
- package/dist/request-store/contexts/tenant-context.d.ts.map +1 -0
- package/dist/request-store/contexts/tenant-context.js +195 -0
- package/dist/request-store/contexts/tenant-context.js.map +1 -0
- package/dist/request-store/contexts/user-context.d.ts +45 -0
- package/dist/request-store/contexts/user-context.d.ts.map +1 -0
- package/dist/request-store/contexts/user-context.js +81 -0
- package/dist/request-store/contexts/user-context.js.map +1 -0
- package/dist/request-store/index.d.ts +1 -0
- package/dist/request-store/index.d.ts.map +1 -1
- package/dist/request-store/index.js +1 -0
- package/dist/request-store/index.js.map +1 -1
- package/dist/request-store/request-store.d.ts +13 -148
- package/dist/request-store/request-store.d.ts.map +1 -1
- package/dist/request-store/request-store.js +16 -256
- package/dist/request-store/request-store.js.map +1 -1
- package/dist/request-store/store.interceptor.d.ts +8 -0
- package/dist/request-store/store.interceptor.d.ts.map +1 -1
- package/dist/request-store/store.interceptor.js +8 -0
- package/dist/request-store/store.interceptor.js.map +1 -1
- package/dist/shared-module/shared.module.d.ts +5 -0
- package/dist/shared-module/shared.module.d.ts.map +1 -1
- package/dist/shared-module/shared.module.js +5 -0
- package/dist/shared-module/shared.module.js.map +1 -1
- package/dist/util-module/index.d.ts +1 -0
- package/dist/util-module/index.d.ts.map +1 -1
- package/dist/util-module/index.js +1 -0
- package/dist/util-module/index.js.map +1 -1
- package/dist/util-module/utils-custom.service.d.ts +17 -0
- package/dist/util-module/utils-custom.service.d.ts.map +1 -0
- package/dist/util-module/utils-custom.service.js +57 -0
- package/dist/util-module/utils-custom.service.js.map +1 -0
- package/dist/util-module/utils.service.d.ts +1 -14
- package/dist/util-module/utils.service.d.ts.map +1 -1
- package/dist/util-module/utils.service.js +2 -36
- package/dist/util-module/utils.service.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./data-import.schema"), exports);
|
|
18
|
+
__exportStar(require("./media-record.schema"), exports);
|
|
19
|
+
__exportStar(require("./oauth-client.schema"), exports);
|
|
20
|
+
__exportStar(require("./print-format.schema"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
import { MediaRecord } from './media-record.schema';
|
|
27
|
+
export declare enum PrintFormatType {
|
|
28
|
+
NO_DUE = "no_due",
|
|
29
|
+
BONAFIDE = "bonafide",
|
|
30
|
+
DUPLICATE_ID_CARD = "duplicate_id_card",
|
|
31
|
+
PROVISIONAL_ADMISSION_LETTER = "provisional_admission_letter",
|
|
32
|
+
TRANSFER_CERTIFICATE = "transfer_certificate",
|
|
33
|
+
STUDY_CUM_CONDUCT_CERTIFICATE = "study_cum_conduct_certificate",
|
|
34
|
+
FEE_ESTIMATE = "fee_estimate",
|
|
35
|
+
INCOME_TAX_CERTIFICATE = "income_tax_certificate",
|
|
36
|
+
CUSTODIAN_CERTIFICATE = "custodian_certificate",
|
|
37
|
+
GENUINE_CERTIFICATE = "genuine_certificate",
|
|
38
|
+
MIGRATION_CERTIFICATE = "migration_certificate"
|
|
39
|
+
}
|
|
40
|
+
export declare class PrintFormat {
|
|
41
|
+
id: string;
|
|
42
|
+
tenantId: string;
|
|
43
|
+
institutionId: string;
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
46
|
+
slug: string;
|
|
47
|
+
state?: any;
|
|
48
|
+
images?: MediaRecord[];
|
|
49
|
+
createdById: string;
|
|
50
|
+
updatedById: string;
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
}
|
|
54
|
+
export declare const convertPrintFormatDoc: {
|
|
55
|
+
(value: (object | (import("mongoose").Document<unknown, {}, PrintFormat> & PrintFormat & {
|
|
56
|
+
_id: import("mongoose").Types.ObjectId;
|
|
57
|
+
}))[]): PrintFormat[];
|
|
58
|
+
(value: object | (import("mongoose").Document<unknown, {}, PrintFormat> & PrintFormat & {
|
|
59
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
})): PrintFormat;
|
|
61
|
+
};
|
|
62
|
+
export declare const PrintFormatSchema: MongooseSchema<PrintFormat, import("mongoose").Model<PrintFormat, any, any, any, import("mongoose").Document<unknown, any, PrintFormat> & PrintFormat & {
|
|
63
|
+
_id: import("mongoose").Types.ObjectId;
|
|
64
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PrintFormat, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<PrintFormat>> & import("mongoose").FlatRecord<PrintFormat> & {
|
|
65
|
+
_id: import("mongoose").Types.ObjectId;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const PrintFormatSubSchema: MongooseSchema<PrintFormat, import("mongoose").Model<PrintFormat, any, any, any, import("mongoose").Document<unknown, any, PrintFormat> & PrintFormat & {
|
|
68
|
+
_id: import("mongoose").Types.ObjectId;
|
|
69
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PrintFormat, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<PrintFormat>> & import("mongoose").FlatRecord<PrintFormat> & {
|
|
70
|
+
_id: import("mongoose").Types.ObjectId;
|
|
71
|
+
}>;
|
|
72
|
+
//# sourceMappingURL=print-format.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-format.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/print-format.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAwB,MAAM,uBAAuB,CAAC;AAE1E,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,4BAA4B,iCAAiC;IAC7D,oBAAoB,yBAAyB;IAC7C,6BAA6B,kCAAkC;IAC/D,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;CAChD;AAGD,qBACa,WAAW;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,GAAG,CAAC;IAGZ,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,qBAAqB;;;;;;;CAA0B,CAAC;AAE7D,eAAO,MAAM,iBAAiB;;;;EAA4C,CAAC;AAG3E,eAAO,MAAM,oBAAoB;;;;EAA4C,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.PrintFormatSubSchema = exports.PrintFormatSchema = exports.convertPrintFormatDoc = exports.PrintFormat = exports.PrintFormatType = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
|
+
const media_record_schema_1 = require("./media-record.schema");
|
|
17
|
+
var PrintFormatType;
|
|
18
|
+
(function (PrintFormatType) {
|
|
19
|
+
PrintFormatType["NO_DUE"] = "no_due";
|
|
20
|
+
PrintFormatType["BONAFIDE"] = "bonafide";
|
|
21
|
+
PrintFormatType["DUPLICATE_ID_CARD"] = "duplicate_id_card";
|
|
22
|
+
PrintFormatType["PROVISIONAL_ADMISSION_LETTER"] = "provisional_admission_letter";
|
|
23
|
+
PrintFormatType["TRANSFER_CERTIFICATE"] = "transfer_certificate";
|
|
24
|
+
PrintFormatType["STUDY_CUM_CONDUCT_CERTIFICATE"] = "study_cum_conduct_certificate";
|
|
25
|
+
PrintFormatType["FEE_ESTIMATE"] = "fee_estimate";
|
|
26
|
+
PrintFormatType["INCOME_TAX_CERTIFICATE"] = "income_tax_certificate";
|
|
27
|
+
PrintFormatType["CUSTODIAN_CERTIFICATE"] = "custodian_certificate";
|
|
28
|
+
PrintFormatType["GENUINE_CERTIFICATE"] = "genuine_certificate";
|
|
29
|
+
PrintFormatType["MIGRATION_CERTIFICATE"] = "migration_certificate";
|
|
30
|
+
})(PrintFormatType || (exports.PrintFormatType = PrintFormatType = {}));
|
|
31
|
+
const PrintFormatCollectionName = 'print_formats';
|
|
32
|
+
let PrintFormat = class PrintFormat {
|
|
33
|
+
};
|
|
34
|
+
exports.PrintFormat = PrintFormat;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], PrintFormat.prototype, "id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, mongoose_1.Prop)({ required: true, type: mongoose_2.Schema.Types.ObjectId }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PrintFormat.prototype, "tenantId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], PrintFormat.prototype, "institutionId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], PrintFormat.prototype, "name", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, mongoose_1.Prop)({ required: true, enum: PrintFormatType }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], PrintFormat.prototype, "type", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], PrintFormat.prototype, "slug", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Mixed }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], PrintFormat.prototype, "state", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, mongoose_1.Prop)({ type: [media_record_schema_1.MediaRecordSubSchema], default: [] }),
|
|
65
|
+
__metadata("design:type", Array)
|
|
66
|
+
], PrintFormat.prototype, "images", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, mongoose_1.Prop)({ required: true, type: mongoose_2.Schema.Types.ObjectId }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], PrintFormat.prototype, "createdById", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, mongoose_1.Prop)({ required: true, type: mongoose_2.Schema.Types.ObjectId }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], PrintFormat.prototype, "updatedById", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, mongoose_1.Prop)(),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], PrintFormat.prototype, "updatedAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, mongoose_1.Prop)(),
|
|
81
|
+
__metadata("design:type", Date)
|
|
82
|
+
], PrintFormat.prototype, "createdAt", void 0);
|
|
83
|
+
exports.PrintFormat = PrintFormat = __decorate([
|
|
84
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: PrintFormatCollectionName })
|
|
85
|
+
], PrintFormat);
|
|
86
|
+
exports.convertPrintFormatDoc = (0, utils_1.convertDoc)(PrintFormat);
|
|
87
|
+
exports.PrintFormatSchema = mongoose_1.SchemaFactory.createForClass(PrintFormat);
|
|
88
|
+
exports.PrintFormatSchema.index({ id: -1 }, { unique: true });
|
|
89
|
+
exports.PrintFormatSubSchema = mongoose_1.SchemaFactory.createForClass(PrintFormat);
|
|
90
|
+
//# sourceMappingURL=print-format.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-format.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/print-format.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAAyC;AACzC,+DAA0E;AAE1E,IAAY,eAYX;AAZD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,0DAAuC,CAAA;IACvC,gFAA6D,CAAA;IAC7D,gEAA6C,CAAA;IAC7C,kFAA+D,CAAA;IAC/D,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;IACjD,kEAA+C,CAAA;IAC/C,8DAA2C,CAAA;IAC3C,kEAA+C,CAAA;AACjD,CAAC,EAZW,eAAe,+BAAf,eAAe,QAY1B;AACD,MAAM,yBAAyB,GAAG,eAAe,CAAC;AAG3C,IAAM,WAAW,GAAjB,MAAM,WAAW;CAoCvB,CAAA;AApCY,kCAAW;AAEtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACd;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;6CAC7C;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE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AAEzC,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module is responsible for registering all the microservices and API gateway.
|
|
3
|
+
* Communication will be done through a message broker RabbitMQ.
|
|
4
|
+
* Each microservice will have a queue defined in the environment.
|
|
5
|
+
* @module ModulesHandlerModule
|
|
6
|
+
* @version 1.0.0
|
|
7
|
+
* @example
|
|
8
|
+
* import { ModulesHandlerModule } from './modules-handler/modules-handler.module';
|
|
9
|
+
* import { Module } from '@nestjs/common';
|
|
10
|
+
* @Module({
|
|
11
|
+
* imports: [ModulesHandlerModule],
|
|
12
|
+
* })
|
|
13
|
+
* export class AppModule {}
|
|
14
|
+
*/
|
|
1
15
|
export declare class ModulesHandlerModule {
|
|
2
16
|
}
|
|
3
17
|
//# sourceMappingURL=modules-handler.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules-handler.module.d.ts","sourceRoot":"","sources":["../../src/modules-handler/modules-handler.module.ts"],"names":[],"mappings":"AAeA,qBAkIa,oBAAoB;CAAG"}
|
|
1
|
+
{"version":3,"file":"modules-handler.module.d.ts","sourceRoot":"","sources":["../../src/modules-handler/modules-handler.module.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;GAaG;AACH,qBAkIa,oBAAoB;CAAG"}
|
|
@@ -12,6 +12,20 @@ const config_1 = require("@nestjs/config");
|
|
|
12
12
|
const microservices_1 = require("@nestjs/microservices");
|
|
13
13
|
const utils_1 = require("../utils");
|
|
14
14
|
const modules_handler_service_1 = require("./modules-handler.service");
|
|
15
|
+
/**
|
|
16
|
+
* This module is responsible for registering all the microservices and API gateway.
|
|
17
|
+
* Communication will be done through a message broker RabbitMQ.
|
|
18
|
+
* Each microservice will have a queue defined in the environment.
|
|
19
|
+
* @module ModulesHandlerModule
|
|
20
|
+
* @version 1.0.0
|
|
21
|
+
* @example
|
|
22
|
+
* import { ModulesHandlerModule } from './modules-handler/modules-handler.module';
|
|
23
|
+
* import { Module } from '@nestjs/common';
|
|
24
|
+
* @Module({
|
|
25
|
+
* imports: [ModulesHandlerModule],
|
|
26
|
+
* })
|
|
27
|
+
* export class AppModule {}
|
|
28
|
+
*/
|
|
15
29
|
let ModulesHandlerModule = class ModulesHandlerModule {
|
|
16
30
|
};
|
|
17
31
|
exports.ModulesHandlerModule = ModulesHandlerModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules-handler.module.js","sourceRoot":"","sources":["../../src/modules-handler/modules-handler.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA6D;AAC7D,yDAAiE;AACjE,oCASkB;AAClB,uEAAkE;
|
|
1
|
+
{"version":3,"file":"modules-handler.module.js","sourceRoot":"","sources":["../../src/modules-handler/modules-handler.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA6D;AAC7D,yDAAiE;AACjE,oCASkB;AAClB,uEAAkE;AAElE;;;;;;;;;;;;;GAaG;AAmII,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oDAAoB;+BAApB,oBAAoB;IAlIhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,6BAAa,CAAC,aAAa,CAAC;gBAC1B,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,qBAAa;wBACnB,OAAO,EAAE,CAAC,qBAAY,CAAC;wBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;wBACvB,UAAU,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC;4BAC7C,SAAS,EAAE,yBAAS,CAAC,GAAG;4BACxB,OAAO,EAAE;gCACP,IAAI,EAAE,CAAC,aAAa,CAAC,GAAG,CAAS,UAAU,CAAC,CAAC;gCAC7C,KAAK,EAAE,aAAa,CAAC,GAAG,CAAS,iBAAiB,CAAC,IAAI,aAAa;gCACpE,YAAY,EA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;gCACP,IAAI,EAAE,CAAC,aAAa,CAAC,GAAG,CAAS,UAAU,CAAC,CAAC;gCAC7C,KAAK,EAAE,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAC,IAAI,oBAAoB;gCAClF,YAAY,EAAE;oCACZ,OAAO,EAAE,KAAK;iCACf;6BACF;yBACF,CAAC;qBACH;oBACD;wBACE,IAAI,EAAE,yBAAiB;wBACvB,OAAO,EAAE,CAAC,qBAAY,CAAC;wBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;wBACvB,UAAU,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC;4BAC7C,SAAS,EAAE,yBAAS,CAAC,GAAG;4BACxB,OAAO,EAAE;gCACP,IAAI,EAAE,CAAC,aAAa,CAAC,GAAG,CAAS,UAAU,CAAC,CAAC;gCAC7C,KAAK,EAAE,aAAa,CAAC,GAAG,CAAS,qBAAqB,CAAC,IAAI,iBAAiB;gCAC5E,YAAY,EAAE;oCACZ,OAAO,EAAE,KAAK;iCACf;6BACF;yBACF,CAAC;qBACH;iBACF;aACF,CAAC;SACH;QACD,SAAS,EAAE,CAAC,+CAAqB,CAAC;QAClC,OAAO,EAAE,CAAC,+CAAqB,CAAC;KACjC,CAAC;GACW,oBAAoB,CAAG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants used throughout the request store module.
|
|
3
|
+
*/
|
|
4
|
+
export declare const EXPRESS_REQUEST = "EXPRESS_REQUEST";
|
|
5
|
+
export declare const TENANT_EASY_WDMS_DATA_SOURCE = "TENANT_EASY_WDMS_DATA_SOURCE";
|
|
6
|
+
export declare const TENANT_DATA_SOURCE = "TENANT_DATA_SOURCE";
|
|
7
|
+
export declare const TENANT_DETAILS = "TENANT_DETAILS";
|
|
8
|
+
export declare const INSTITUTION_KEY = "INSTITUTION_KEY";
|
|
9
|
+
export declare const USER_DATA = "USER_DATA";
|
|
10
|
+
export declare const EVALUATOR_DATA = "EVALUATOR_DATA";
|
|
11
|
+
export declare const LEAD_DATA = "LEAD_DATA";
|
|
12
|
+
export declare const USER_INSTITUTIONS = "USER_INSTITUTIONS";
|
|
13
|
+
export declare const MONGO_TRANSACTION_SESSION = "MONGO_TRANSACTION_SESSION";
|
|
14
|
+
export declare const MYSQL_TRANSACTION_MANAGER = "MYSQL_TRANSACTION_MANAGER";
|
|
15
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/request-store/constants.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MYSQL_TRANSACTION_MANAGER = exports.MONGO_TRANSACTION_SESSION = exports.USER_INSTITUTIONS = exports.LEAD_DATA = exports.EVALUATOR_DATA = exports.USER_DATA = exports.INSTITUTION_KEY = exports.TENANT_DETAILS = exports.TENANT_DATA_SOURCE = exports.TENANT_EASY_WDMS_DATA_SOURCE = exports.EXPRESS_REQUEST = void 0;
|
|
4
|
+
// constants.ts
|
|
5
|
+
/**
|
|
6
|
+
* Constants used throughout the request store module.
|
|
7
|
+
*/
|
|
8
|
+
exports.EXPRESS_REQUEST = 'EXPRESS_REQUEST';
|
|
9
|
+
exports.TENANT_EASY_WDMS_DATA_SOURCE = 'TENANT_EASY_WDMS_DATA_SOURCE';
|
|
10
|
+
exports.TENANT_DATA_SOURCE = 'TENANT_DATA_SOURCE';
|
|
11
|
+
exports.TENANT_DETAILS = 'TENANT_DETAILS';
|
|
12
|
+
exports.INSTITUTION_KEY = 'INSTITUTION_KEY';
|
|
13
|
+
exports.USER_DATA = 'USER_DATA';
|
|
14
|
+
exports.EVALUATOR_DATA = 'EVALUATOR_DATA';
|
|
15
|
+
exports.LEAD_DATA = 'LEAD_DATA';
|
|
16
|
+
exports.USER_INSTITUTIONS = 'USER_INSTITUTIONS';
|
|
17
|
+
exports.MONGO_TRANSACTION_SESSION = 'MONGO_TRANSACTION_SESSION';
|
|
18
|
+
exports.MYSQL_TRANSACTION_MANAGER = 'MYSQL_TRANSACTION_MANAGER';
|
|
19
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/request-store/constants.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf;;GAEG;AACU,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,SAAS,GAAG,WAAW,CAAC;AACxB,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,yBAAyB,GAAG,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the AWS keys from environment variables.
|
|
3
|
+
* @returns The AWS keys.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getAWSKeys(): {
|
|
6
|
+
accountId: string;
|
|
7
|
+
accessKeyId: string;
|
|
8
|
+
secretAccessKey: string;
|
|
9
|
+
region: string;
|
|
10
|
+
bucketName: string;
|
|
11
|
+
baseUrl: string;
|
|
12
|
+
cloudFrontDistributionId: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the S3 bucket name from environment variables.
|
|
16
|
+
* @returns The S3 bucket name.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getS3BucketName(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the S3 base URL from environment variables.
|
|
21
|
+
* @returns The S3 base URL.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getS3BaseUrl(): string;
|
|
24
|
+
//# sourceMappingURL=aws-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-context.d.ts","sourceRoot":"","sources":["../../../src/request-store/contexts/aws-context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,UAAU;;;;;;;;EAUzB;AAED;;;GAGG;AACH,wBAAgB,eAAe,WAE9B;AAED;;;GAGG;AACH,wBAAgB,YAAY,WAE3B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getS3BaseUrl = exports.getS3BucketName = exports.getAWSKeys = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the AWS keys from environment variables.
|
|
6
|
+
* @returns The AWS keys.
|
|
7
|
+
*/
|
|
8
|
+
function getAWSKeys() {
|
|
9
|
+
return {
|
|
10
|
+
accountId: process.env.AWS_ACCOUNT_ID,
|
|
11
|
+
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
|
|
12
|
+
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
|
|
13
|
+
region: process.env.AWS_REGION,
|
|
14
|
+
bucketName: process.env.AWS_S3_BUCKET_NAME,
|
|
15
|
+
baseUrl: process.env.AWS_S3_BUCKET_BASE_URL,
|
|
16
|
+
cloudFrontDistributionId: process.env.AWS_CLOUD_FRONT_DISTRIBUTION_ID,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.getAWSKeys = getAWSKeys;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves the S3 bucket name from environment variables.
|
|
22
|
+
* @returns The S3 bucket name.
|
|
23
|
+
*/
|
|
24
|
+
function getS3BucketName() {
|
|
25
|
+
return process.env.AWS_S3_BUCKET_NAME;
|
|
26
|
+
}
|
|
27
|
+
exports.getS3BucketName = getS3BucketName;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves the S3 base URL from environment variables.
|
|
30
|
+
* @returns The S3 base URL.
|
|
31
|
+
*/
|
|
32
|
+
function getS3BaseUrl() {
|
|
33
|
+
return process.env.AWS_S3_BUCKET_BASE_URL;
|
|
34
|
+
}
|
|
35
|
+
exports.getS3BaseUrl = getS3BaseUrl;
|
|
36
|
+
//# sourceMappingURL=aws-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-context.js","sourceRoot":"","sources":["../../../src/request-store/contexts/aws-context.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,UAAU;IACxB,OAAO;QACL,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;QACrC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAC1C,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB;QAClD,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC9B,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB;QAC1C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB;QAC3C,wBAAwB,EAAE,OAAO,CAAC,GAAG,CAAC,+BAA+B;KACtE,CAAC;AACJ,CAAC;AAVD,gCAUC;AAED;;;GAGG;AACH,SAAgB,eAAe;IAC7B,OAAO,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;AACxC,CAAC;AAFD,0CAEC;AAED;;;GAGG;AACH,SAAgB,YAAY;IAC1B,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC5C,CAAC;AAFD,oCAEC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataSource, EntityManager } from 'typeorm';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves the EasyWDMS DataSource.
|
|
4
|
+
* @returns The EasyWDMS DataSource.
|
|
5
|
+
* @throws UnprocessableEntityException if the EasyWDMS database is not configured.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getEasyWDMSDataSource(): DataSource;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the EasyWDMS EntityManager.
|
|
10
|
+
* @returns The EasyWDMS EntityManager.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getEasyWDMSManager(): EntityManager;
|
|
13
|
+
//# sourceMappingURL=easydms-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easydms-context.d.ts","sourceRoot":"","sources":["../../../src/request-store/contexts/easydms-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIpD;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,UAAU,CAMlD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,aAAa,CAGlD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEasyWDMSManager = exports.getEasyWDMSDataSource = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const store_config_1 = require("../store-config");
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the EasyWDMS DataSource.
|
|
9
|
+
* @returns The EasyWDMS DataSource.
|
|
10
|
+
* @throws UnprocessableEntityException if the EasyWDMS database is not configured.
|
|
11
|
+
*/
|
|
12
|
+
function getEasyWDMSDataSource() {
|
|
13
|
+
const dataSource = (0, store_config_1.get)(constants_1.TENANT_EASY_WDMS_DATA_SOURCE);
|
|
14
|
+
if (!dataSource) {
|
|
15
|
+
throw new common_1.UnprocessableEntityException('EasyWDMS database not configured');
|
|
16
|
+
}
|
|
17
|
+
return dataSource;
|
|
18
|
+
}
|
|
19
|
+
exports.getEasyWDMSDataSource = getEasyWDMSDataSource;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves the EasyWDMS EntityManager.
|
|
22
|
+
* @returns The EasyWDMS EntityManager.
|
|
23
|
+
*/
|
|
24
|
+
function getEasyWDMSManager() {
|
|
25
|
+
const dataSource = getEasyWDMSDataSource();
|
|
26
|
+
return dataSource.manager;
|
|
27
|
+
}
|
|
28
|
+
exports.getEasyWDMSManager = getEasyWDMSManager;
|
|
29
|
+
//# sourceMappingURL=easydms-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easydms-context.js","sourceRoot":"","sources":["../../../src/request-store/contexts/easydms-context.ts"],"names":[],"mappings":";;;AAAA,2CAA8D;AAE9D,4CAA4D;AAC5D,kDAAsC;AAEtC;;;;GAIG;AACH,SAAgB,qBAAqB;IACnC,MAAM,UAAU,GAAG,IAAA,kBAAG,EAAa,wCAA4B,CAAC,CAAC;IACjE,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,qCAA4B,CAAC,kCAAkC,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAND,sDAMC;AAED;;;GAGG;AACH,SAAgB,kBAAkB;IAChC,MAAM,UAAU,GAAG,qBAAqB,EAAE,CAAC;IAC3C,OAAO,UAAU,CAAC,OAAO,CAAC;AAC5B,CAAC;AAHD,gDAGC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Request } from 'express';
|
|
2
|
+
import { IRequest } from '../../common/interfaces/context.interface';
|
|
3
|
+
/**
|
|
4
|
+
* Sets the Express request object in the store.
|
|
5
|
+
* @param req - The Express request object.
|
|
6
|
+
*/
|
|
7
|
+
export declare function setExpressRequest(req: Request): void;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the Express request object from the store.
|
|
10
|
+
* @returns The Express request object.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getExpressRequest(): Request;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the custom request object in the store.
|
|
15
|
+
* @param req - The custom request object.
|
|
16
|
+
*/
|
|
17
|
+
export declare function setRequest(req: IRequest): void;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves the custom request object from the store.
|
|
20
|
+
* @returns The custom request object.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getRequest(): IRequest;
|
|
23
|
+
//# sourceMappingURL=express-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"express-context.d.ts","sourceRoot":"","sources":["../../../src/request-store/contexts/express-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAErE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAEpD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CAE9C;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,QAAQ,CAErC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRequest = exports.setRequest = exports.getExpressRequest = exports.setExpressRequest = void 0;
|
|
4
|
+
const store_config_1 = require("../store-config");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
/**
|
|
7
|
+
* Sets the Express request object in the store.
|
|
8
|
+
* @param req - The Express request object.
|
|
9
|
+
*/
|
|
10
|
+
function setExpressRequest(req) {
|
|
11
|
+
(0, store_config_1.set)(constants_1.EXPRESS_REQUEST, req);
|
|
12
|
+
}
|
|
13
|
+
exports.setExpressRequest = setExpressRequest;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the Express request object from the store.
|
|
16
|
+
* @returns The Express request object.
|
|
17
|
+
*/
|
|
18
|
+
function getExpressRequest() {
|
|
19
|
+
return (0, store_config_1.get)(constants_1.EXPRESS_REQUEST);
|
|
20
|
+
}
|
|
21
|
+
exports.getExpressRequest = getExpressRequest;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the custom request object in the store.
|
|
24
|
+
* @param req - The custom request object.
|
|
25
|
+
*/
|
|
26
|
+
function setRequest(req) {
|
|
27
|
+
(0, store_config_1.set)(constants_1.EXPRESS_REQUEST, req);
|
|
28
|
+
}
|
|
29
|
+
exports.setRequest = setRequest;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves the custom request object from the store.
|
|
32
|
+
* @returns The custom request object.
|
|
33
|
+
*/
|
|
34
|
+
function getRequest() {
|
|
35
|
+
return (0, store_config_1.get)(constants_1.EXPRESS_REQUEST);
|
|
36
|
+
}
|
|
37
|
+
exports.getRequest = getRequest;
|
|
38
|
+
//# sourceMappingURL=express-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"express-context.js","sourceRoot":"","sources":["../../../src/request-store/contexts/express-context.ts"],"names":[],"mappings":";;;AACA,kDAA2C;AAC3C,4CAA+C;AAG/C;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,GAAY;IAC5C,IAAA,kBAAG,EAAC,2BAAe,EAAE,GAAG,CAAC,CAAC;AAC5B,CAAC;AAFD,8CAEC;AAED;;;GAGG;AACH,SAAgB,iBAAiB;IAC/B,OAAO,IAAA,kBAAG,EAAU,2BAAe,CAAC,CAAC;AACvC,CAAC;AAFD,8CAEC;AAED;;;GAGG;AACH,SAAgB,UAAU,CAAC,GAAa;IACtC,IAAA,kBAAG,EAAC,2BAAe,EAAE,GAAG,CAAC,CAAC;AAC5B,CAAC;AAFD,gCAEC;AAED;;;GAGG;AACH,SAAgB,UAAU;IACxB,OAAO,IAAA,kBAAG,EAAC,2BAAe,CAAC,CAAC;AAC9B,CAAC;AAFD,gCAEC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './aws-context';
|
|
2
|
+
export * from './express-context';
|
|
3
|
+
export * from './easydms-context';
|
|
4
|
+
export * from './mongo-context';
|
|
5
|
+
export * from './mysql-context';
|
|
6
|
+
export * from './mysql-credentials-context';
|
|
7
|
+
export * from './user-context';
|
|
8
|
+
export * from './tenant-context';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request-store/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
@@ -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
|
+
__exportStar(require("./aws-context"), exports);
|
|
18
|
+
__exportStar(require("./express-context"), exports);
|
|
19
|
+
__exportStar(require("./easydms-context"), exports);
|
|
20
|
+
__exportStar(require("./mongo-context"), exports);
|
|
21
|
+
__exportStar(require("./mysql-context"), exports);
|
|
22
|
+
__exportStar(require("./mysql-credentials-context"), exports);
|
|
23
|
+
__exportStar(require("./user-context"), exports);
|
|
24
|
+
__exportStar(require("./tenant-context"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/request-store/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,8DAA4C;AAC5C,iDAA+B;AAC/B,mDAAiC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { ClientSession } from 'mongoose';
|
|
26
|
+
/**
|
|
27
|
+
* Sets the MongoDB transaction session in the store.
|
|
28
|
+
* @param session - The MongoDB transaction session.
|
|
29
|
+
*/
|
|
30
|
+
export declare function setMongoTransactionSession(session: ClientSession): void;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the MongoDB transaction session from the store.
|
|
33
|
+
* @param strict - Whether to throw an exception if the session is not found.
|
|
34
|
+
* @returns The MongoDB transaction session.
|
|
35
|
+
* @throws UnprocessableEntityException if session is not found and strict is true.
|
|
36
|
+
*/
|
|
37
|
+
export declare function getMongoSession(strict?: boolean): ClientSession;
|
|
38
|
+
//# sourceMappingURL=mongo-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo-context.d.ts","sourceRoot":"","sources":["../../../src/request-store/contexts/mongo-context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,aAAa,QAEhE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,aAAa,CAM/D"}
|