@campxdev/server-shared 1.6.56 → 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/permissions/app-permissions/exams-permissions.d.ts +27 -0
- package/dist/permissions/app-permissions/exams-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/exams-permissions.js +27 -0
- package/dist/permissions/app-permissions/exams-permissions.js.map +1 -1
- package/dist/permissions/permissions.d.ts +54 -0
- package/dist/permissions/permissions.d.ts.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,163 @@
|
|
|
1
|
+
import { DataSource, EntityManager } from 'typeorm';
|
|
2
|
+
import { Tenant } from '../../domain';
|
|
3
|
+
import { InstitutionType } from '../../modules-handler';
|
|
4
|
+
/**
|
|
5
|
+
* Sets the tenant details in the store.
|
|
6
|
+
* @param tenant - The tenant details.
|
|
7
|
+
*/
|
|
8
|
+
export declare function setTenantDetails(tenant: Tenant): void;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the tenant details from the store if they exist.
|
|
11
|
+
* @returns The tenant details.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getTenantDetailsIfExists(): Tenant;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the tenant details from the store.
|
|
16
|
+
* @returns The tenant details.
|
|
17
|
+
* @throws UnprocessableEntityException if tenant details are not found.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getTenantDetails(): Tenant;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the tenant data source in the store.
|
|
22
|
+
* @param dataSource - The tenant data source.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setTenantDataSource(dataSource: DataSource): void;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the tenant data source from the store.
|
|
27
|
+
* @returns The tenant data source.
|
|
28
|
+
* @throws UnprocessableEntityException if data source is not found.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getDataSource(): DataSource;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the entity manager from the tenant data source.
|
|
33
|
+
* @returns The entity manager.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getManager(): EntityManager;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the institution details in the store.
|
|
38
|
+
* @param institution - The institution details.
|
|
39
|
+
*/
|
|
40
|
+
export declare function setInstitution(institution: InstitutionType): void;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves the institution details from the store.
|
|
43
|
+
* @returns The institution details.
|
|
44
|
+
* @throws UnprocessableEntityException if institution details are not found.
|
|
45
|
+
*/
|
|
46
|
+
export declare function getInstitutionOrFail(): InstitutionType;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves the institution details from the store.
|
|
49
|
+
* @returns The institution details.
|
|
50
|
+
* @throws UnprocessableEntityException if institution details are not found.
|
|
51
|
+
*/
|
|
52
|
+
export declare function getInstitution(): InstitutionType;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the user institutions in the store.
|
|
55
|
+
* @param institutions - The user institutions.
|
|
56
|
+
*/
|
|
57
|
+
export declare function setUserInstitutions(institutions: InstitutionType[]): void;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves the user institutions from the store.
|
|
60
|
+
* @returns The user institutions.
|
|
61
|
+
*/
|
|
62
|
+
export declare function getUserInstitutions(): InstitutionType[];
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves the legacy institution details from the store.
|
|
65
|
+
* @param institution - The institution details.
|
|
66
|
+
* @returns The legacy institution details.
|
|
67
|
+
*/
|
|
68
|
+
export declare function getInstitutionLegacy(institution?: InstitutionType): {
|
|
69
|
+
id: number;
|
|
70
|
+
_id: string;
|
|
71
|
+
images: {
|
|
72
|
+
id: any;
|
|
73
|
+
typeId: any;
|
|
74
|
+
originalFileName?: string;
|
|
75
|
+
key?: string;
|
|
76
|
+
type?: string;
|
|
77
|
+
subtype?: string;
|
|
78
|
+
mediaType?: string;
|
|
79
|
+
mimeType?: string;
|
|
80
|
+
fileSize?: number;
|
|
81
|
+
s3Response?: any;
|
|
82
|
+
createdAt?: Date;
|
|
83
|
+
updatedAt?: Date;
|
|
84
|
+
url?: string;
|
|
85
|
+
};
|
|
86
|
+
updatedById: any;
|
|
87
|
+
createdById: any;
|
|
88
|
+
imageSquare: {
|
|
89
|
+
id: any;
|
|
90
|
+
typeId: any;
|
|
91
|
+
originalFileName?: string;
|
|
92
|
+
key?: string;
|
|
93
|
+
type?: string;
|
|
94
|
+
subtype?: string;
|
|
95
|
+
mediaType?: string;
|
|
96
|
+
mimeType?: string;
|
|
97
|
+
fileSize?: number;
|
|
98
|
+
s3Response?: any;
|
|
99
|
+
createdAt?: Date;
|
|
100
|
+
updatedAt?: Date;
|
|
101
|
+
url?: string;
|
|
102
|
+
};
|
|
103
|
+
reportHeader: {
|
|
104
|
+
id: any;
|
|
105
|
+
typeId: any;
|
|
106
|
+
originalFileName?: string;
|
|
107
|
+
key?: string;
|
|
108
|
+
type?: string;
|
|
109
|
+
subtype?: string;
|
|
110
|
+
mediaType?: string;
|
|
111
|
+
mimeType?: string;
|
|
112
|
+
fileSize?: number;
|
|
113
|
+
s3Response?: any;
|
|
114
|
+
createdAt?: Date;
|
|
115
|
+
updatedAt?: Date;
|
|
116
|
+
url?: string;
|
|
117
|
+
};
|
|
118
|
+
tenantId?: string;
|
|
119
|
+
uniqueId?: number;
|
|
120
|
+
name?: string;
|
|
121
|
+
code?: string;
|
|
122
|
+
refCode?: string;
|
|
123
|
+
address?: string;
|
|
124
|
+
recognitionDetails?: string;
|
|
125
|
+
phone?: string;
|
|
126
|
+
email?: string;
|
|
127
|
+
updatedAt?: Date;
|
|
128
|
+
createdAt?: Date;
|
|
129
|
+
principals?: {
|
|
130
|
+
name?: string;
|
|
131
|
+
email?: string;
|
|
132
|
+
}[];
|
|
133
|
+
image?: Partial<import("../../domain").MediaRecord>;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Checks if the institution is a master institution.
|
|
137
|
+
* @param institutionId - The institution ID.
|
|
138
|
+
* @returns True if the institution is a master institution, otherwise false.
|
|
139
|
+
*/
|
|
140
|
+
export declare function isMasterInstitution(institutionId?: number): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Checks if the institution is a master global institution.
|
|
143
|
+
* @param institutionId - The institution ID.
|
|
144
|
+
* @returns True if the institution is a master global institution, otherwise false.
|
|
145
|
+
*/
|
|
146
|
+
export declare function isMasterGlobalInstitution(institutionId?: string): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Checks if the user has access to all institutions.
|
|
149
|
+
* @param institutionId - The institution ID.
|
|
150
|
+
* @returns True if the user has access to all institutions, otherwise false.
|
|
151
|
+
*/
|
|
152
|
+
export declare function hasAllInstitutionsAccess(institutionId?: string): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Retrieves the institution ID for filtering.
|
|
155
|
+
* @returns The institution ID for filtering.
|
|
156
|
+
*/
|
|
157
|
+
export declare function getInstitutionIdForFilter(): string;
|
|
158
|
+
/**
|
|
159
|
+
* Retrieves the institution unique ID for filtering.
|
|
160
|
+
* @returns The institution unique ID for filtering.
|
|
161
|
+
*/
|
|
162
|
+
export declare function getInstitutionUniqueIdForFilter(): number;
|
|
163
|
+
//# sourceMappingURL=tenant-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-context.d.ts","sourceRoot":"","sources":["../../../src/request-store/contexts/tenant-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAUxD;;;GAGG;AACH,wBA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__esModule", { value: true });
|
|
3
|
+
exports.getInstitutionUniqueIdForFilter = exports.getInstitutionIdForFilter = exports.hasAllInstitutionsAccess = exports.isMasterGlobalInstitution = exports.isMasterInstitution = exports.getInstitutionLegacy = exports.getUserInstitutions = exports.setUserInstitutions = exports.getInstitution = exports.getInstitutionOrFail = exports.setInstitution = exports.getManager = exports.getDataSource = exports.setTenantDataSource = exports.getTenantDetails = exports.getTenantDetailsIfExists = exports.setTenantDetails = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
const store_config_1 = require("../store-config");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
/**
|
|
9
|
+
* Sets the tenant details in the store.
|
|
10
|
+
* @param tenant - The tenant details.
|
|
11
|
+
*/
|
|
12
|
+
function setTenantDetails(tenant) {
|
|
13
|
+
(0, store_config_1.set)(constants_1.TENANT_DETAILS, tenant);
|
|
14
|
+
}
|
|
15
|
+
exports.setTenantDetails = setTenantDetails;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves the tenant details from the store if they exist.
|
|
18
|
+
* @returns The tenant details.
|
|
19
|
+
*/
|
|
20
|
+
function getTenantDetailsIfExists() {
|
|
21
|
+
return (0, store_config_1.get)(constants_1.TENANT_DETAILS);
|
|
22
|
+
}
|
|
23
|
+
exports.getTenantDetailsIfExists = getTenantDetailsIfExists;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves the tenant details from the store.
|
|
26
|
+
* @returns The tenant details.
|
|
27
|
+
* @throws UnprocessableEntityException if tenant details are not found.
|
|
28
|
+
*/
|
|
29
|
+
function getTenantDetails() {
|
|
30
|
+
const tenant = (0, store_config_1.get)(constants_1.TENANT_DETAILS);
|
|
31
|
+
if (!tenant) {
|
|
32
|
+
throw new common_1.UnprocessableEntityException('Unable to get tenant details');
|
|
33
|
+
}
|
|
34
|
+
return tenant;
|
|
35
|
+
}
|
|
36
|
+
exports.getTenantDetails = getTenantDetails;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the tenant data source in the store.
|
|
39
|
+
* @param dataSource - The tenant data source.
|
|
40
|
+
*/
|
|
41
|
+
function setTenantDataSource(dataSource) {
|
|
42
|
+
(0, store_config_1.set)(constants_1.TENANT_DATA_SOURCE, dataSource);
|
|
43
|
+
}
|
|
44
|
+
exports.setTenantDataSource = setTenantDataSource;
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves the tenant data source from the store.
|
|
47
|
+
* @returns The tenant data source.
|
|
48
|
+
* @throws UnprocessableEntityException if data source is not found.
|
|
49
|
+
*/
|
|
50
|
+
function getDataSource() {
|
|
51
|
+
const dataSource = (0, store_config_1.get)(constants_1.TENANT_DATA_SOURCE);
|
|
52
|
+
if (!dataSource) {
|
|
53
|
+
throw new common_1.UnprocessableEntityException('Unable to connect to data source');
|
|
54
|
+
}
|
|
55
|
+
return dataSource;
|
|
56
|
+
}
|
|
57
|
+
exports.getDataSource = getDataSource;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves the entity manager from the tenant data source.
|
|
60
|
+
* @returns The entity manager.
|
|
61
|
+
*/
|
|
62
|
+
function getManager() {
|
|
63
|
+
const dataSource = getDataSource();
|
|
64
|
+
return dataSource.manager;
|
|
65
|
+
}
|
|
66
|
+
exports.getManager = getManager;
|
|
67
|
+
/**
|
|
68
|
+
* Sets the institution details in the store.
|
|
69
|
+
* @param institution - The institution details.
|
|
70
|
+
*/
|
|
71
|
+
function setInstitution(institution) {
|
|
72
|
+
(0, store_config_1.set)(constants_1.INSTITUTION_KEY, institution);
|
|
73
|
+
}
|
|
74
|
+
exports.setInstitution = setInstitution;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves the institution details from the store.
|
|
77
|
+
* @returns The institution details.
|
|
78
|
+
* @throws UnprocessableEntityException if institution details are not found.
|
|
79
|
+
*/
|
|
80
|
+
function getInstitutionOrFail() {
|
|
81
|
+
return (0, store_config_1.get)(constants_1.INSTITUTION_KEY);
|
|
82
|
+
}
|
|
83
|
+
exports.getInstitutionOrFail = getInstitutionOrFail;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieves the institution details from the store.
|
|
86
|
+
* @returns The institution details.
|
|
87
|
+
* @throws UnprocessableEntityException if institution details are not found.
|
|
88
|
+
*/
|
|
89
|
+
function getInstitution() {
|
|
90
|
+
const institution = getInstitutionOrFail();
|
|
91
|
+
if (!institution) {
|
|
92
|
+
throw new common_1.UnprocessableEntityException('Unable to get institution details');
|
|
93
|
+
}
|
|
94
|
+
return institution;
|
|
95
|
+
}
|
|
96
|
+
exports.getInstitution = getInstitution;
|
|
97
|
+
/**
|
|
98
|
+
* Sets the user institutions in the store.
|
|
99
|
+
* @param institutions - The user institutions.
|
|
100
|
+
*/
|
|
101
|
+
function setUserInstitutions(institutions) {
|
|
102
|
+
(0, store_config_1.set)(constants_1.USER_INSTITUTIONS, institutions);
|
|
103
|
+
}
|
|
104
|
+
exports.setUserInstitutions = setUserInstitutions;
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves the user institutions from the store.
|
|
107
|
+
* @returns The user institutions.
|
|
108
|
+
*/
|
|
109
|
+
function getUserInstitutions() {
|
|
110
|
+
return (0, store_config_1.get)(constants_1.USER_INSTITUTIONS);
|
|
111
|
+
}
|
|
112
|
+
exports.getUserInstitutions = getUserInstitutions;
|
|
113
|
+
/**
|
|
114
|
+
* Retrieves the legacy institution details from the store.
|
|
115
|
+
* @param institution - The institution details.
|
|
116
|
+
* @returns The legacy institution details.
|
|
117
|
+
*/
|
|
118
|
+
function getInstitutionLegacy(institution) {
|
|
119
|
+
if (!institution)
|
|
120
|
+
institution = getInstitutionOrFail();
|
|
121
|
+
if (!institution)
|
|
122
|
+
return;
|
|
123
|
+
return {
|
|
124
|
+
...institution,
|
|
125
|
+
id: institution.uniqueId,
|
|
126
|
+
_id: institution.id,
|
|
127
|
+
images: institution.image ? { ...institution.image, id: undefined, typeId: undefined } : null,
|
|
128
|
+
updatedById: undefined,
|
|
129
|
+
createdById: undefined,
|
|
130
|
+
imageSquare: institution.imageSquare
|
|
131
|
+
? { ...institution.imageSquare, id: undefined, typeId: undefined }
|
|
132
|
+
: null,
|
|
133
|
+
reportHeader: institution.reportHeader
|
|
134
|
+
? { ...institution.reportHeader, id: undefined, typeId: undefined }
|
|
135
|
+
: null,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
exports.getInstitutionLegacy = getInstitutionLegacy;
|
|
139
|
+
/**
|
|
140
|
+
* Checks if the institution is a master institution.
|
|
141
|
+
* @param institutionId - The institution ID.
|
|
142
|
+
* @returns True if the institution is a master institution, otherwise false.
|
|
143
|
+
*/
|
|
144
|
+
function isMasterInstitution(institutionId) {
|
|
145
|
+
const tenant = getTenantDetails();
|
|
146
|
+
institutionId = institutionId || getInstitution().uniqueId;
|
|
147
|
+
if (tenant.institutionType !== utils_1.InstitutionTypes.MASTER_CHILD)
|
|
148
|
+
return true;
|
|
149
|
+
return tenant.masterInstitutionUniqueId === institutionId;
|
|
150
|
+
}
|
|
151
|
+
exports.isMasterInstitution = isMasterInstitution;
|
|
152
|
+
/**
|
|
153
|
+
* Checks if the institution is a master global institution.
|
|
154
|
+
* @param institutionId - The institution ID.
|
|
155
|
+
* @returns True if the institution is a master global institution, otherwise false.
|
|
156
|
+
*/
|
|
157
|
+
function isMasterGlobalInstitution(institutionId) {
|
|
158
|
+
const tenant = getTenantDetails();
|
|
159
|
+
institutionId = institutionId || getInstitution().id;
|
|
160
|
+
if (tenant.institutionType !== utils_1.InstitutionTypes.MASTER_CHILD)
|
|
161
|
+
return true;
|
|
162
|
+
return tenant.masterInstitutionId === institutionId;
|
|
163
|
+
}
|
|
164
|
+
exports.isMasterGlobalInstitution = isMasterGlobalInstitution;
|
|
165
|
+
/**
|
|
166
|
+
* Checks if the user has access to all institutions.
|
|
167
|
+
* @param institutionId - The institution ID.
|
|
168
|
+
* @returns True if the user has access to all institutions, otherwise false.
|
|
169
|
+
*/
|
|
170
|
+
function hasAllInstitutionsAccess(institutionId) {
|
|
171
|
+
institutionId = institutionId || getInstitution().id;
|
|
172
|
+
if (getTenantDetails().institutionType !== utils_1.InstitutionTypes.MASTER_CHILD)
|
|
173
|
+
return false;
|
|
174
|
+
return getTenantDetails().masterInstitutionId === institutionId;
|
|
175
|
+
}
|
|
176
|
+
exports.hasAllInstitutionsAccess = hasAllInstitutionsAccess;
|
|
177
|
+
/**
|
|
178
|
+
* Retrieves the institution ID for filtering.
|
|
179
|
+
* @returns The institution ID for filtering.
|
|
180
|
+
*/
|
|
181
|
+
function getInstitutionIdForFilter() {
|
|
182
|
+
return isMasterInstitution() ? getInstitution().id : getTenantDetails().masterInstitutionId;
|
|
183
|
+
}
|
|
184
|
+
exports.getInstitutionIdForFilter = getInstitutionIdForFilter;
|
|
185
|
+
/**
|
|
186
|
+
* Retrieves the institution unique ID for filtering.
|
|
187
|
+
* @returns The institution unique ID for filtering.
|
|
188
|
+
*/
|
|
189
|
+
function getInstitutionUniqueIdForFilter() {
|
|
190
|
+
return isMasterInstitution()
|
|
191
|
+
? getInstitution().uniqueId
|
|
192
|
+
: getTenantDetails().masterInstitutionUniqueId;
|
|
193
|
+
}
|
|
194
|
+
exports.getInstitutionUniqueIdForFilter = getInstitutionUniqueIdForFilter;
|
|
195
|
+
//# sourceMappingURL=tenant-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-context.js","sourceRoot":"","sources":["../../../src/request-store/contexts/tenant-context.ts"],"names":[],"mappings":";;;AAAA,2CAA8D;AAI9D,uCAA+C;AAC/C,kDAA2C;AAC3C,4CAKsB;AAEtB;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,IAAA,kBAAG,EAAC,0BAAc,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AAFD,4CAEC;AAED;;;GAGG;AACH,SAAgB,wBAAwB;IACtC,OAAO,IAAA,kBAAG,EAAS,0BAAc,CAAC,CAAC;AACrC,CAAC;AAFD,4DAEC;AAED;;;;G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AAe,KAAK,wBAAgB,CAAC,YAAY;QAAE,OAAO,IAAI,CAAC;IAE1E,OAAO,MAAM,CAAC,yBAAyB,KAAK,aAAa,CAAC;AAC5D,CAAC;AAND,kDAMC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,aAAsB;IAC9D,MAAM,MAAM,GAAG,gBAAgB,EAAE,CAAC;IAClC,aAAa,GAAG,aAAa,IAAI,cAAc,EAAE,CAAC,EAAE,CAAC;IACrD,IAAI,MAAM,CAAC,eAAe,KAAK,wBAAgB,CAAC,YAAY;QAAE,OAAO,IAAI,CAAC;IAE1E,OAAO,MAAM,CAAC,mBAAmB,KAAK,aAAa,CAAC;AACtD,CAAC;AAND,8DAMC;AAED;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,aAAsB;IAC7D,aAAa,GAAG,aAAa,IAAI,cAAc,EAAE,CAAC,EAAE,CAAC;IACrD,IAAI,gBAAgB,EAAE,CAAC,eAAe,KAAK,wBAAgB,CAAC,YAAY;QAAE,OAAO,KAAK,CAAC;IACvF,OAAO,gBAAgB,EAAE,CAAC,mBAAmB,KAAK,aAAa,CAAC;AAClE,CAAC;AAJD,4DAIC;AAED;;;GAGG;AACH,SAAgB,yBAAyB;IACvC,OAAO,mBAAmB,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,mBAAmB,CAAC;AAC9F,CAAC;AAFD,8DAEC;AAED;;;GAGG;AACH,SAAgB,+BAA+B;IAC7C,OAAO,mBAAmB,EAAE;QAC1B,CAAC,CAAC,cAAc,EAAE,CAAC,QAAQ;QAC3B,CAAC,CAAC,gBAAgB,EAAE,CAAC,yBAAyB,CAAC;AACnD,CAAC;AAJD,0EAIC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UserData } from '../../common/interfaces/context.interface';
|
|
2
|
+
import { EvaluatorType } from '../../modules-handler';
|
|
3
|
+
/**
|
|
4
|
+
* Sets the user data in the store.
|
|
5
|
+
* @param user - The user data.
|
|
6
|
+
*/
|
|
7
|
+
export declare function setUserData(user: UserData): void;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the user data from the store.
|
|
10
|
+
* @returns The user data.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getUserData(): UserData;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the evaluator data in the store.
|
|
15
|
+
* @param evaluator - The evaluator data.
|
|
16
|
+
*/
|
|
17
|
+
export declare function setEvaluatorData(evaluator: EvaluatorType): void;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves the evaluator data from the store.
|
|
20
|
+
* @returns The evaluator data.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getEvaluatorData(): EvaluatorType;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves the evaluator ID from the store.
|
|
25
|
+
* @returns The evaluator ID.
|
|
26
|
+
* @throws UnprocessableEntityException if evaluator data is not found.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getEvaluatorId(): number;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the lead data in the store.
|
|
31
|
+
* @param lead - The lead data.
|
|
32
|
+
*/
|
|
33
|
+
export declare function setLeadData(lead: any): void;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the lead data from the store.
|
|
36
|
+
* @returns The lead data.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getLeadData(): any;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves the lead ID from the store.
|
|
41
|
+
* @returns The lead ID.
|
|
42
|
+
* @throws UnprocessableEntityException if lead data is not found.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getLeadId(): number;
|
|
45
|
+
//# sourceMappingURL=user-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-context.d.ts","sourceRoot":"","sources":["../../../src/request-store/contexts/user-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAEhD;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,QAAQ,CAEtC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,aAAa,QAExD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAMvC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE3C;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,GAAG,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAOlC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLeadId = exports.getLeadData = exports.setLeadData = exports.getEvaluatorId = exports.getEvaluatorData = exports.setEvaluatorData = exports.getUserData = exports.setUserData = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
const store_config_1 = require("../store-config");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
/**
|
|
8
|
+
* Sets the user data in the store.
|
|
9
|
+
* @param user - The user data.
|
|
10
|
+
*/
|
|
11
|
+
function setUserData(user) {
|
|
12
|
+
(0, store_config_1.set)(constants_1.USER_DATA, user);
|
|
13
|
+
}
|
|
14
|
+
exports.setUserData = setUserData;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the user data from the store.
|
|
17
|
+
* @returns The user data.
|
|
18
|
+
*/
|
|
19
|
+
function getUserData() {
|
|
20
|
+
return (0, store_config_1.get)(constants_1.USER_DATA);
|
|
21
|
+
}
|
|
22
|
+
exports.getUserData = getUserData;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the evaluator data in the store.
|
|
25
|
+
* @param evaluator - The evaluator data.
|
|
26
|
+
*/
|
|
27
|
+
function setEvaluatorData(evaluator) {
|
|
28
|
+
(0, store_config_1.set)(constants_1.EVALUATOR_DATA, evaluator);
|
|
29
|
+
}
|
|
30
|
+
exports.setEvaluatorData = setEvaluatorData;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the evaluator data from the store.
|
|
33
|
+
* @returns The evaluator data.
|
|
34
|
+
*/
|
|
35
|
+
function getEvaluatorData() {
|
|
36
|
+
return (0, store_config_1.get)(constants_1.EVALUATOR_DATA);
|
|
37
|
+
}
|
|
38
|
+
exports.getEvaluatorData = getEvaluatorData;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves the evaluator ID from the store.
|
|
41
|
+
* @returns The evaluator ID.
|
|
42
|
+
* @throws UnprocessableEntityException if evaluator data is not found.
|
|
43
|
+
*/
|
|
44
|
+
function getEvaluatorId() {
|
|
45
|
+
const evaluatorData = getEvaluatorData();
|
|
46
|
+
if (!evaluatorData) {
|
|
47
|
+
throw new common_1.UnprocessableEntityException('Unable to get evaluator details');
|
|
48
|
+
}
|
|
49
|
+
return evaluatorData.id;
|
|
50
|
+
}
|
|
51
|
+
exports.getEvaluatorId = getEvaluatorId;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the lead data in the store.
|
|
54
|
+
* @param lead - The lead data.
|
|
55
|
+
*/
|
|
56
|
+
function setLeadData(lead) {
|
|
57
|
+
(0, store_config_1.set)(constants_1.LEAD_DATA, lead);
|
|
58
|
+
}
|
|
59
|
+
exports.setLeadData = setLeadData;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves the lead data from the store.
|
|
62
|
+
* @returns The lead data.
|
|
63
|
+
*/
|
|
64
|
+
function getLeadData() {
|
|
65
|
+
return (0, store_config_1.get)(constants_1.LEAD_DATA);
|
|
66
|
+
}
|
|
67
|
+
exports.getLeadData = getLeadData;
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves the lead ID from the store.
|
|
70
|
+
* @returns The lead ID.
|
|
71
|
+
* @throws UnprocessableEntityException if lead data is not found.
|
|
72
|
+
*/
|
|
73
|
+
function getLeadId() {
|
|
74
|
+
const userData = getUserData();
|
|
75
|
+
if (!userData?.leadId) {
|
|
76
|
+
throw new common_1.UnprocessableEntityException('You are not a lead');
|
|
77
|
+
}
|
|
78
|
+
return userData.leadId;
|
|
79
|
+
}
|
|
80
|
+
exports.getLeadId = getLeadId;
|
|
81
|
+
//# sourceMappingURL=user-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-context.js","sourceRoot":"","sources":["../../../src/request-store/contexts/user-context.ts"],"names":[],"mappings":";;;AAAA,2CAA8D;AAG9D,kDAA2C;AAC3C,4CAAoE;AAEpE;;;GAGG;AACH,SAAgB,WAAW,CAAC,IAAc;IACxC,IAAA,kBAAG,EAAC,qBAAS,EAAE,IAAI,CAAC,CAAC;AACvB,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,WAAW;IACzB,OAAO,IAAA,kBAAG,EAAC,qBAAS,CAAC,CAAC;AACxB,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,SAAwB;IACvD,IAAA,kBAAG,EAAC,0BAAc,EAAE,SAAS,CAAC,CAAC;AACjC,CAAC;AAFD,4CAEC;AAED;;;GAGG;AACH,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,kBAAG,EAAC,0BAAc,CAAC,CAAC;AAC7B,CAAC;AAFD,4CAEC;AAED;;;;GAIG;AACH,SAAgB,cAAc;IAC5B,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,qCAA4B,CAAC,iCAAiC,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,aAAa,CAAC,EAAE,CAAC;AAC1B,CAAC;AAND,wCAMC;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,IAAS;IACnC,IAAA,kBAAG,EAAC,qBAAS,EAAE,IAAI,CAAC,CAAC;AACvB,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,WAAW;IACzB,OAAO,IAAA,kBAAG,EAAC,qBAAS,CAAC,CAAC;AACxB,CAAC;AAFD,kCAEC;AAED;;;;GAIG;AACH,SAAgB,SAAS;IACvB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACtB,MAAM,IAAI,qCAA4B,CAAC,oBAAoB,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,CAAC;AACzB,CAAC;AAPD,8BAOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request-store/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request-store/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./request-store"), exports);
|
|
18
18
|
__exportStar(require("./store-config"), exports);
|
|
19
19
|
__exportStar(require("./store.interceptor"), exports);
|
|
20
|
+
__exportStar(require("./contexts"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/request-store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/request-store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,6CAA2B"}
|