@aldb2b/common 1.0.838 → 1.0.840
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/build/db/auditTrail/interfaces/Audit-trail-input.interface.d.ts +7 -0
- package/build/entities/entities.module.d.ts +2 -0
- package/build/entities/models/common/entities/audit-trail.entity.d.ts +75 -0
- package/build/entities/models/common/entities/audit-trail.entity.js +106 -0
- package/build/entities/models/common/entities/audit-trail.entity.js.map +1 -0
- package/build/entities/models/companies/entities/company.entity.d.ts +73 -0
- package/build/entities/models/companies/entities/company.entity.js +58 -0
- package/build/entities/models/companies/entities/company.entity.js.map +1 -0
- package/build/entities/models/companies/entities/contact.entity.d.ts +70 -0
- package/build/entities/models/companies/entities/contact.entity.js +52 -0
- package/build/entities/models/companies/entities/contact.entity.js.map +1 -0
- package/build/entities/models/events/entities/event/event.entity.d.ts +89 -0
- package/build/entities/models/events/entities/event/event.entity.js +169 -0
- package/build/entities/models/events/entities/event/event.entity.js.map +1 -0
- package/build/entities/models/events/entities/eventProfile/event-profile.entity.d.ts +66 -0
- package/build/entities/models/events/entities/eventProfile/event-profile.entity.js +59 -0
- package/build/entities/models/events/entities/eventProfile/event-profile.entity.js.map +1 -0
- package/build/entities/models/events/entities/eventType/event-type.entity.d.ts +64 -0
- package/build/entities/models/events/entities/eventType/event-type.entity.js +57 -0
- package/build/entities/models/events/entities/eventType/event-type.entity.js.map +1 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request.entity.d.ts +96 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request.entity.js +291 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request.entity.js.map +1 -0
- package/build/entities/models/meetings/entities/meetings/meeting.entity.d.ts +106 -0
- package/build/entities/models/meetings/entities/meetings/meeting.entity.js +346 -0
- package/build/entities/models/meetings/entities/meetings/meeting.entity.js.map +1 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability.entity.d.ts +78 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability.entity.js +126 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability.entity.js.map +1 -0
- package/build/entities/models/model.providers.d.ts +112 -0
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.d.ts +67 -0
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.js +101 -0
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.js.map +1 -0
- package/build/entities/models/users/entities/users/user.entity.d.ts +96 -0
- package/build/entities/models/users/entities/users/user.entity.js +192 -0
- package/build/entities/models/users/entities/users/user.entity.js.map +1 -0
- package/build/events/create-company-event.interface.d.ts +12 -0
- package/build/events/create-company.interface.d.ts +18 -0
- package/build/events/create-contact.interface.d.ts +24 -0
- package/build/events/create-meeting-event.interface.d.ts +12 -0
- package/build/events/create-notification-event.interface.d.ts +12 -0
- package/build/events/create-subscription-event.interface.d.ts +16 -0
- package/build/events/sync-event-with-notification.interface.d.ts +12 -0
- package/build/events/sync-subscription-event.interface.d.ts +12 -0
- package/build/index.d.ts +285 -0
- package/build/index.js +302 -0
- package/build/index.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/validators/validateNewItem.d.ts +1 -0
- package/build/validators/validateNewItem.js +24 -0
- package/build/validators/validateNewItem.js.map +1 -0
- package/build/validators/validateProjection.d.ts +1 -0
- package/build/validators/validateProjection.js +33 -0
- package/build/validators/validateProjection.js.map +1 -0
- package/build/validators/validateProjectionResult.d.ts +1 -0
- package/build/validators/validateProjectionResult.js +37 -0
- package/build/validators/validateProjectionResult.js.map +1 -0
- package/build/validators/validateUpdateItem.d.ts +1 -0
- package/build/validators/validateUpdateItem.js +24 -0
- package/build/validators/validateUpdateItem.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateNewItem(allValidateNewItemFieldArray: string[], newItemObj: object, strict?: boolean): object;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateNewItem = void 0;
|
|
4
|
+
function validateNewItem(allValidateNewItemFieldArray, newItemObj, strict = true) {
|
|
5
|
+
const validatedNewItem = {};
|
|
6
|
+
try {
|
|
7
|
+
if (Array.isArray(allValidateNewItemFieldArray) &&
|
|
8
|
+
allValidateNewItemFieldArray.length) {
|
|
9
|
+
for (const fieldName in newItemObj) {
|
|
10
|
+
if ((newItemObj[fieldName] !== undefined &&
|
|
11
|
+
allValidateNewItemFieldArray.includes(fieldName)) ||
|
|
12
|
+
strict == false) {
|
|
13
|
+
validatedNewItem[fieldName] = newItemObj[fieldName];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return validatedNewItem;
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
throw err;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.validateNewItem = validateNewItem;
|
|
24
|
+
//# sourceMappingURL=validateNewItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateNewItem.js","sourceRoot":"","sources":["../../src/validators/validateNewItem.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAC7B,4BAAsC,EACtC,UAAkB,EAClB,MAAM,GAAG,IAAI;IAEb,MAAM,gBAAgB,GAAG,EAAE,CAAA;IAC3B,IAAI,CAAC;QACH,IACE,KAAK,CAAC,OAAO,CAAC,4BAA4B,CAAC;YAC3C,4BAA4B,CAAC,MAAM,EACnC,CAAC;YACD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;gBACnC,IACE,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK,SAAS;oBAClC,4BAA4B,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;oBACnD,MAAM,IAAI,KAAK,EACf,CAAC;oBACD,gBAAgB,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;gBACrD,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,gBAAgB,CAAA;IACzB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,GAAG,CAAA;IACX,CAAC;AACH,CAAC;AA1BD,0CA0BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateProjection(allProjectionFieldArray: string[], necessaryProjectionArray: string[], strict?: boolean): object;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateProjection = void 0;
|
|
4
|
+
function validateProjection(allProjectionFieldArray, necessaryProjectionArray, strict = true) {
|
|
5
|
+
const validatedProjection = {};
|
|
6
|
+
try {
|
|
7
|
+
let returnAll = true;
|
|
8
|
+
Array.isArray(necessaryProjectionArray) &&
|
|
9
|
+
necessaryProjectionArray.length &&
|
|
10
|
+
necessaryProjectionArray.map((key) => {
|
|
11
|
+
if (allProjectionFieldArray.length) {
|
|
12
|
+
if (allProjectionFieldArray.includes(key) || strict == false) {
|
|
13
|
+
returnAll = false;
|
|
14
|
+
validatedProjection[key] = true;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
returnAll = false;
|
|
19
|
+
validatedProjection[key] = true;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
if (returnAll) {
|
|
23
|
+
allProjectionFieldArray.map((key) => (validatedProjection[key] = true));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
}
|
|
28
|
+
finally {
|
|
29
|
+
return validatedProjection;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.validateProjection = validateProjection;
|
|
33
|
+
//# sourceMappingURL=validateProjection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateProjection.js","sourceRoot":"","sources":["../../src/validators/validateProjection.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAChC,uBAAiC,EACjC,wBAAkC,EAClC,MAAM,GAAG,IAAI;IAEb,MAAM,mBAAmB,GAAG,EAAE,CAAA;IAC9B,IAAI,CAAC;QACH,IAAI,SAAS,GAAG,IAAI,CAAA;QAEpB,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;YACrC,wBAAwB,CAAC,MAAM;YAC/B,wBAAwB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnC,IAAI,uBAAuB,CAAC,MAAM,EAAE,CAAC;oBACnC,IAAI,uBAAuB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;wBAC7D,SAAS,GAAG,KAAK,CAAA;wBACjB,mBAAmB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;oBACjC,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,SAAS,GAAG,KAAK,CAAA;oBACjB,mBAAmB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;gBACjC,CAAC;YACH,CAAC,CAAC,CAAA;QAEJ,IAAI,SAAS,EAAE,CAAC;YACd,uBAAuB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;QACzE,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACT,OAAO,mBAAmB,CAAA;IAC5B,CAAC;AACH,CAAC;AA9BD,gDA8BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateProjectionResult(allProjectionFieldArray: string[], necessaryProjectionObj: any, strict?: boolean): object;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateProjectionResult = void 0;
|
|
4
|
+
function validateProjectionResult(allProjectionFieldArray, necessaryProjectionObj, strict = true) {
|
|
5
|
+
const returnProjectedResult = {};
|
|
6
|
+
try {
|
|
7
|
+
let returnAll = true;
|
|
8
|
+
if (typeof necessaryProjectionObj === 'object' &&
|
|
9
|
+
necessaryProjectionObj !== null &&
|
|
10
|
+
Object.keys(necessaryProjectionObj).length) {
|
|
11
|
+
for (const key in necessaryProjectionObj) {
|
|
12
|
+
if (necessaryProjectionObj.hasOwnProperty(key)) {
|
|
13
|
+
if (allProjectionFieldArray.length) {
|
|
14
|
+
if (allProjectionFieldArray.includes(key) || strict == false) {
|
|
15
|
+
returnAll = false;
|
|
16
|
+
returnProjectedResult[key] = necessaryProjectionObj[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
returnAll = false;
|
|
21
|
+
returnProjectedResult[key] = necessaryProjectionObj[key];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (returnAll) {
|
|
27
|
+
allProjectionFieldArray.map((key) => (returnProjectedResult[key] = necessaryProjectionObj[key]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (err) {
|
|
31
|
+
}
|
|
32
|
+
finally {
|
|
33
|
+
return returnProjectedResult;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.validateProjectionResult = validateProjectionResult;
|
|
37
|
+
//# sourceMappingURL=validateProjectionResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateProjectionResult.js","sourceRoot":"","sources":["../../src/validators/validateProjectionResult.ts"],"names":[],"mappings":";;;AAAA,SAAgB,wBAAwB,CACtC,uBAAiC,EACjC,sBAAsB,EACtB,MAAM,GAAG,IAAI;IAEb,MAAM,qBAAqB,GAAG,EAAE,CAAA;IAChC,IAAI,CAAC;QACH,IAAI,SAAS,GAAG,IAAI,CAAA;QAEpB,IACE,OAAO,sBAAsB,KAAK,QAAQ;YAC1C,sBAAsB,KAAK,IAAI;YAC/B,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,MAAM,EAC1C,CAAC;YACD,KAAK,MAAM,GAAG,IAAI,sBAAsB,EAAE,CAAC;gBACzC,IAAI,sBAAsB,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC/C,IAAI,uBAAuB,CAAC,MAAM,EAAE,CAAC;wBACnC,IAAI,uBAAuB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;4BAC7D,SAAS,GAAG,KAAK,CAAA;4BACjB,qBAAqB,CAAC,GAAG,CAAC,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAA;wBAC1D,CAAC;oBACH,CAAC;yBAAM,CAAC;wBACN,SAAS,GAAG,KAAK,CAAA;wBACjB,qBAAqB,CAAC,GAAG,CAAC,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAA;oBAC1D,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,SAAS,EAAE,CAAC;YACd,uBAAuB,CAAC,GAAG,CACzB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC,CACpE,CAAA;QACH,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACT,OAAO,qBAAqB,CAAA;IAC9B,CAAC;AACH,CAAC;AAtCD,4DAsCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateUpdateItem(allValidateUpdateItemFieldArray: string[], updateItemObj: any, strict?: boolean): object;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateUpdateItem = void 0;
|
|
4
|
+
function validateUpdateItem(allValidateUpdateItemFieldArray, updateItemObj, strict = true) {
|
|
5
|
+
try {
|
|
6
|
+
const validatedUpdateItem = {};
|
|
7
|
+
if (Array.isArray(allValidateUpdateItemFieldArray) &&
|
|
8
|
+
allValidateUpdateItemFieldArray.length) {
|
|
9
|
+
for (const fieldName in updateItemObj) {
|
|
10
|
+
if ((updateItemObj[fieldName] !== undefined &&
|
|
11
|
+
allValidateUpdateItemFieldArray.includes(fieldName)) ||
|
|
12
|
+
strict == false) {
|
|
13
|
+
validatedUpdateItem[fieldName] = updateItemObj[fieldName];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return validatedUpdateItem;
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
throw err;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.validateUpdateItem = validateUpdateItem;
|
|
24
|
+
//# sourceMappingURL=validateUpdateItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateUpdateItem.js","sourceRoot":"","sources":["../../src/validators/validateUpdateItem.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAChC,+BAAyC,EACzC,aAAa,EACb,MAAM,GAAG,IAAI;IAEb,IAAI,CAAC;QACH,MAAM,mBAAmB,GAAG,EAAE,CAAA;QAC9B,IACE,KAAK,CAAC,OAAO,CAAC,+BAA+B,CAAC;YAC9C,+BAA+B,CAAC,MAAM,EACtC,CAAC;YACD,KAAK,MAAM,SAAS,IAAI,aAAa,EAAE,CAAC;gBACtC,IACE,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,SAAS;oBACrC,+BAA+B,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;oBACtD,MAAM,IAAI,KAAK,EACf,CAAC;oBACD,mBAAmB,CAAC,SAAS,CAAC,GAAG,aAAa,CAAC,SAAS,CAAC,CAAA;gBAC3D,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,mBAAmB,CAAA;IAC5B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,GAAG,CAAA;IACX,CAAC;AACH,CAAC;AA1BD,gDA0BC"}
|