@aldb2b/common 1.0.630 → 1.0.632
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/audit-trail.model.d.ts +3 -0
- package/build/db/auditTrail/audit-trail.model.js +34 -0
- package/build/db/auditTrail/audit-trail.model.js.map +1 -0
- package/build/db/auditTrail/audit-trail.repository.d.ts +8 -0
- package/build/db/auditTrail/audit-trail.repository.js +40 -0
- package/build/db/auditTrail/audit-trail.repository.js.map +1 -0
- 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/model.providers.d.ts +102 -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-property.interface.d.ts +18 -0
- package/build/events/create-property.interface.js +3 -0
- package/build/events/create-property.interface.js.map +1 -0
- package/build/events/create-subscription-event.interface.d.ts +16 -0
- package/build/events/send-notifications.interface.d.ts +35 -0
- package/build/events/send-notifications.interface.js +3 -0
- package/build/events/send-notifications.interface.js.map +1 -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 +248 -0
- package/build/index.js +265 -0
- package/build/index.js.map +1 -0
- package/build/middlewares/term.middleware.d.ts +11 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/types/meeting-request-token.interface.d.ts +10 -0
- package/build/types/meeting-request-token.interface.js +3 -0
- package/build/types/meeting-request-token.interface.js.map +1 -0
- package/build/types/meeting-token.interface.d.ts +8 -0
- package/build/types/meeting-token.interface.js +3 -0
- package/build/types/meeting-token.interface.js.map +1 -0
- package/build/types/record-type.enum.d.ts +22 -0
- package/build/types/record-type.enum.js +27 -0
- package/build/types/record-type.enum.js.map +1 -0
- package/build/utils/encryptor.d.ts +7 -0
- package/build/utils/encryptor.js +36 -0
- package/build/utils/encryptor.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-request-token.interface.js","sourceRoot":"","sources":["../../src/types/meeting-request-token.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-token.interface.js","sourceRoot":"","sources":["../../src/types/meeting-token.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum RecordType {
|
|
2
|
+
COMPANY = "Company",
|
|
3
|
+
CONTACT = "Contact",
|
|
4
|
+
MEETING = "Meeting",
|
|
5
|
+
MEETING_REQUEST = "MeetingRequest",
|
|
6
|
+
PRODUCT = "Product",
|
|
7
|
+
SERVICE = "Service",
|
|
8
|
+
RFQ = "RFQ",
|
|
9
|
+
QUOTATION = "Quotation",
|
|
10
|
+
SHARED_LIST = "SharedList",
|
|
11
|
+
WISH_LIST = "WishList",
|
|
12
|
+
SURVEY = "Survey",
|
|
13
|
+
REMINDER = "Reminder",
|
|
14
|
+
MEETING_AGENDA = "MeetingAgenda",
|
|
15
|
+
USER = "User",
|
|
16
|
+
NOTIFICATION = "Notification",
|
|
17
|
+
REGRESSION = "Regression",
|
|
18
|
+
ORDER = "Order",
|
|
19
|
+
SESSION = "Session",
|
|
20
|
+
MATCH_LIST = "MatchList",
|
|
21
|
+
ITP = "Itp"
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecordType = void 0;
|
|
4
|
+
var RecordType;
|
|
5
|
+
(function (RecordType) {
|
|
6
|
+
RecordType["COMPANY"] = "Company";
|
|
7
|
+
RecordType["CONTACT"] = "Contact";
|
|
8
|
+
RecordType["MEETING"] = "Meeting";
|
|
9
|
+
RecordType["MEETING_REQUEST"] = "MeetingRequest";
|
|
10
|
+
RecordType["PRODUCT"] = "Product";
|
|
11
|
+
RecordType["SERVICE"] = "Service";
|
|
12
|
+
RecordType["RFQ"] = "RFQ";
|
|
13
|
+
RecordType["QUOTATION"] = "Quotation";
|
|
14
|
+
RecordType["SHARED_LIST"] = "SharedList";
|
|
15
|
+
RecordType["WISH_LIST"] = "WishList";
|
|
16
|
+
RecordType["SURVEY"] = "Survey";
|
|
17
|
+
RecordType["REMINDER"] = "Reminder";
|
|
18
|
+
RecordType["MEETING_AGENDA"] = "MeetingAgenda";
|
|
19
|
+
RecordType["USER"] = "User";
|
|
20
|
+
RecordType["NOTIFICATION"] = "Notification";
|
|
21
|
+
RecordType["REGRESSION"] = "Regression";
|
|
22
|
+
RecordType["ORDER"] = "Order";
|
|
23
|
+
RecordType["SESSION"] = "Session";
|
|
24
|
+
RecordType["MATCH_LIST"] = "MatchList";
|
|
25
|
+
RecordType["ITP"] = "Itp";
|
|
26
|
+
})(RecordType || (exports.RecordType = RecordType = {}));
|
|
27
|
+
//# sourceMappingURL=record-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-type.enum.js","sourceRoot":"","sources":["../../src/types/record-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAqBX;AArBD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,gDAAkC,CAAA;IAClC,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,8CAAgC,CAAA;IAChC,2BAAa,CAAA;IACb,2CAA6B,CAAA;IAC7B,uCAAyB,CAAA;IACzB,6BAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,sCAAwB,CAAA;IACxB,yBAAW,CAAA;AACb,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.Encryptor = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const Cryptr = require('cryptr');
|
|
15
|
+
let Encryptor = class Encryptor {
|
|
16
|
+
constructor(tokenSerializer) {
|
|
17
|
+
this.cryptr = new Cryptr(tokenSerializer);
|
|
18
|
+
}
|
|
19
|
+
encrypt(data) {
|
|
20
|
+
return this.cryptr.encrypt(JSON.stringify(data));
|
|
21
|
+
}
|
|
22
|
+
decrypt(token, moduleType) {
|
|
23
|
+
try {
|
|
24
|
+
return JSON.parse(this.cryptr.decrypt(token));
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
throw new common_1.BadRequestException('Invalid token');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.Encryptor = Encryptor;
|
|
32
|
+
exports.Encryptor = Encryptor = __decorate([
|
|
33
|
+
(0, common_1.Injectable)(),
|
|
34
|
+
__metadata("design:paramtypes", [String])
|
|
35
|
+
], Encryptor);
|
|
36
|
+
//# sourceMappingURL=encryptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptor.js","sourceRoot":"","sources":["../../src/utils/encryptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAgE;AAIhE,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAGzB,IAAM,SAAS,GAAf,MAAM,SAAS;IAEpB,YAAY,eAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,eAAe,CAAC,CAAA;IAC3C,CAAC;IAED,OAAO,CAAC,IAAO;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;IAClD,CAAC;IAED,OAAO,CAAC,KAAa,EAAE,UAAuB;QAC5C,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAQ,CAAA;QACtD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,4BAAmB,CAAC,eAAe,CAAC,CAAA;QAChD,CAAC;IACH,CAAC;CACF,CAAA;AAjBY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;;GACA,SAAS,CAiBrB"}
|