@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,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConvertIdsToObjectId = exports.CheckCollection = exports.CreateCollection = void 0;
|
|
4
|
+
const bson_1 = require("bson");
|
|
5
|
+
async function CreateCollection(dbInstance) {
|
|
6
|
+
await dbInstance.db.createCollection('audittrails', {
|
|
7
|
+
validator: {
|
|
8
|
+
$jsonSchema: {},
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
exports.CreateCollection = CreateCollection;
|
|
13
|
+
async function CheckCollection(dbInstance) {
|
|
14
|
+
const collections = await dbInstance.listCollections();
|
|
15
|
+
return !!collections.find((collection) => collection.name === 'audittrails');
|
|
16
|
+
}
|
|
17
|
+
exports.CheckCollection = CheckCollection;
|
|
18
|
+
function IsPotentialObjectId(str) {
|
|
19
|
+
if (typeof str !== 'string' || str.length !== 24) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
return /^[0-9a-f]{24}$/i.test(str);
|
|
23
|
+
}
|
|
24
|
+
function ConvertIdsToObjectId(obj) {
|
|
25
|
+
for (const key in obj) {
|
|
26
|
+
if (typeof obj[key] === 'object') {
|
|
27
|
+
}
|
|
28
|
+
else if (IsPotentialObjectId(obj[key])) {
|
|
29
|
+
obj[key] = new bson_1.ObjectId(obj[key]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ConvertIdsToObjectId = ConvertIdsToObjectId;
|
|
34
|
+
//# sourceMappingURL=audit-trail.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-trail.model.js","sourceRoot":"","sources":["../../../src/db/auditTrail/audit-trail.model.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEzB,KAAK,UAAU,gBAAgB,CAAC,UAAe;IACpD,MAAM,UAAU,CAAC,EAAE,CAAC,gBAAgB,CAAC,aAAa,EAAE;QAClD,SAAS,EAAE;YACT,WAAW,EAAE,EAAE;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAND,4CAMC;AAEM,KAAK,UAAU,eAAe,CAAC,UAAe;IACnD,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,eAAe,EAAE,CAAC;IACvD,OAAO,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC;AAC/E,CAAC;AAHD,0CAGC;AAED,SAAS,mBAAmB,CAAC,GAAW;IACtC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;QACjD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC;AAED,SAAgB,oBAAoB,CAAC,GAAQ;IAC3C,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QACtB,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE,CAAC;QAEnC,CAAC;aAAM,IAAI,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACzC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,eAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;AACH,CAAC;AARD,oDAQC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomModel } from '../CustomModel';
|
|
2
|
+
import { AuditTrailType } from './interfaces/AuditTrail.type';
|
|
3
|
+
export declare class AuditTrailRepository<T> {
|
|
4
|
+
private dbInstance;
|
|
5
|
+
private dbModel;
|
|
6
|
+
constructor(dbModel: CustomModel<T>);
|
|
7
|
+
create(payload: AuditTrailType): Promise<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.AuditTrailRepository = void 0;
|
|
13
|
+
const audit_trail_model_1 = require("./audit-trail.model");
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const CustomModel_1 = require("../CustomModel");
|
|
16
|
+
let AuditTrailRepository = class AuditTrailRepository {
|
|
17
|
+
constructor(dbModel) {
|
|
18
|
+
console.log('AuditTrailRepository constructor: ');
|
|
19
|
+
this.dbModel = dbModel;
|
|
20
|
+
this.dbInstance = dbModel.db;
|
|
21
|
+
}
|
|
22
|
+
async create(payload) {
|
|
23
|
+
const auditTrailExists = await (0, audit_trail_model_1.CheckCollection)(this.dbInstance);
|
|
24
|
+
console.log('auditTrailExists: ', auditTrailExists);
|
|
25
|
+
if (!auditTrailExists) {
|
|
26
|
+
await (0, audit_trail_model_1.CreateCollection)(this.dbInstance);
|
|
27
|
+
}
|
|
28
|
+
(0, audit_trail_model_1.ConvertIdsToObjectId)(payload);
|
|
29
|
+
this.dbModel = await this.dbInstance.collection('audittrails');
|
|
30
|
+
console.log('payload: ', payload);
|
|
31
|
+
console.log('this.dbModel: ', await this.dbModel);
|
|
32
|
+
await this.dbModel.insertOne(payload);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.AuditTrailRepository = AuditTrailRepository;
|
|
36
|
+
exports.AuditTrailRepository = AuditTrailRepository = __decorate([
|
|
37
|
+
(0, common_1.Injectable)(),
|
|
38
|
+
__metadata("design:paramtypes", [CustomModel_1.CustomModel])
|
|
39
|
+
], AuditTrailRepository);
|
|
40
|
+
//# sourceMappingURL=audit-trail.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-trail.repository.js","sourceRoot":"","sources":["../../../src/db/auditTrail/audit-trail.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAI6B;AAC7B,2CAA4C;AAC5C,gDAA6C;AAItC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAI/B,YAAY,OAAuB;QACjC,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAuB;QAClC,MAAM,gBAAgB,GAAG,MAAM,IAAA,mCAAe,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAChE,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;QAEpD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,MAAM,IAAA,oCAAgB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC1C,CAAC;QAED,IAAA,wCAAoB,EAAC,OAAO,CAAC,CAAC;QAE9B,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,CAAC;QAElD,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;CACF,CAAA;AA1BY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAKU,yBAAW;GAJrB,oBAAoB,CA0BhC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
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" />
|
|
25
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/aggregate" />
|
|
26
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/callback" />
|
|
27
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/collection" />
|
|
28
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/connection" />
|
|
29
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/cursor" />
|
|
30
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/document" />
|
|
31
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/error" />
|
|
32
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/expressions" />
|
|
33
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/helpers" />
|
|
34
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/middlewares" />
|
|
35
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/indexes" />
|
|
36
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/models" />
|
|
37
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/mongooseoptions" />
|
|
38
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/pipelinestage" />
|
|
39
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/populate" />
|
|
40
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/query" />
|
|
41
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schemaoptions" />
|
|
42
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schematypes" />
|
|
43
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/session" />
|
|
44
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/types" />
|
|
45
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/utility" />
|
|
46
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/validation" />
|
|
47
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
48
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
49
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
50
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
51
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
52
|
+
export declare const modelProviders: ({
|
|
53
|
+
provide: import("../..").DatabaseModel;
|
|
54
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./events").EventType, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./events").EventType> & import("./events").EventType & Required<{
|
|
55
|
+
_id: string;
|
|
56
|
+
}>, any>;
|
|
57
|
+
inject: import("../..").DatabaseConnection[];
|
|
58
|
+
} | {
|
|
59
|
+
provide: import("../..").DatabaseModel;
|
|
60
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<import("./events").Event, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./events").Event> & import("./events").Event & Required<{
|
|
61
|
+
_id: string;
|
|
62
|
+
}>, any>;
|
|
63
|
+
inject: import("../..").DatabaseConnection[];
|
|
64
|
+
} | {
|
|
65
|
+
provide: import("../..").DatabaseModel;
|
|
66
|
+
useFactory: (connection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./companies").Company, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./companies").Company> & import("./companies").Company & Required<{
|
|
67
|
+
_id: string;
|
|
68
|
+
}>, any>;
|
|
69
|
+
inject: import("../..").DatabaseConnection[];
|
|
70
|
+
} | {
|
|
71
|
+
provide: import("../..").DatabaseModel;
|
|
72
|
+
useFactory: (connection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./companies").Contact, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./companies").Contact> & import("./companies").Contact & Required<{
|
|
73
|
+
_id: string;
|
|
74
|
+
}>, any>;
|
|
75
|
+
inject: import("../..").DatabaseConnection[];
|
|
76
|
+
} | {
|
|
77
|
+
provide: import("../..").DatabaseModel;
|
|
78
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./users").RolePermission, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./users").RolePermission> & import("./users").RolePermission & Required<{
|
|
79
|
+
_id: string;
|
|
80
|
+
}>, any>;
|
|
81
|
+
inject: import("../..").DatabaseConnection[];
|
|
82
|
+
} | {
|
|
83
|
+
provide: import("../..").DatabaseModel;
|
|
84
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./users").User, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./users").User> & import("./users").User & Required<{
|
|
85
|
+
_id: string;
|
|
86
|
+
}>, any>;
|
|
87
|
+
inject: import("../..").DatabaseConnection[];
|
|
88
|
+
} | {
|
|
89
|
+
provide: import("../..").DatabaseModel;
|
|
90
|
+
useFactory: (connection: import("mongoose").Connection, eventConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<import("./common").AuditTrail, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./common").AuditTrail> & import("./common").AuditTrail & Required<{
|
|
91
|
+
_id: string;
|
|
92
|
+
}>, any>;
|
|
93
|
+
inject: import("../..").DatabaseConnection[];
|
|
94
|
+
} | {
|
|
95
|
+
provide: import("../..").RepositoryProvide;
|
|
96
|
+
inject: import("../..").DatabaseModel[];
|
|
97
|
+
useFactory: (auditModel: import("../..").CustomModel<import("./common").AuditTrail>) => import("./common").AuditTrailRepository;
|
|
98
|
+
} | {
|
|
99
|
+
provide: import("../..").ServiceProvide;
|
|
100
|
+
inject: (import("../..").DatabaseModel | import("../..").RepositoryProvide)[];
|
|
101
|
+
useFactory: (auditLogRepository: import("./common").AuditTrailRepository, userModel: import("../..").CustomModel<import("./users").User>) => import("./common").AuditTrailService;
|
|
102
|
+
})[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { operationTypes } from "..";
|
|
3
|
+
export declare namespace CreateCompanyEvent {
|
|
4
|
+
interface Context {
|
|
5
|
+
subject: Subjects.CreateEventInCompany;
|
|
6
|
+
data: Data;
|
|
7
|
+
}
|
|
8
|
+
interface Data {
|
|
9
|
+
operation: operationTypes;
|
|
10
|
+
data: any;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { HeaderUser, operationTypes } from "..";
|
|
3
|
+
export declare namespace CreateCompany {
|
|
4
|
+
interface Context {
|
|
5
|
+
subject: Subjects.CreateCompany;
|
|
6
|
+
data: Data;
|
|
7
|
+
}
|
|
8
|
+
interface Data {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
website?: string;
|
|
12
|
+
eventId?: string;
|
|
13
|
+
usertype?: string;
|
|
14
|
+
contact?: string;
|
|
15
|
+
operationType: operationTypes;
|
|
16
|
+
userHeader?: HeaderUser;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { HeaderUser, OnboardedThru, operationTypes } from "..";
|
|
3
|
+
export declare namespace CreateContact {
|
|
4
|
+
interface Context {
|
|
5
|
+
subject: Subjects.CreateContact;
|
|
6
|
+
data: Data;
|
|
7
|
+
}
|
|
8
|
+
interface Data {
|
|
9
|
+
firstname: string;
|
|
10
|
+
lastname: string;
|
|
11
|
+
email: string;
|
|
12
|
+
company: string;
|
|
13
|
+
eventId: string;
|
|
14
|
+
createdBy: string;
|
|
15
|
+
role?: string;
|
|
16
|
+
roleType?: string;
|
|
17
|
+
userHeader?: HeaderUser;
|
|
18
|
+
operationType?: operationTypes;
|
|
19
|
+
onboardedThru?: OnboardedThru;
|
|
20
|
+
companyDataObj?: any;
|
|
21
|
+
contactDataObj?: any;
|
|
22
|
+
defaultAdmins?: string[];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { operationTypes } from "..";
|
|
3
|
+
export declare namespace CreateMeetingEvent {
|
|
4
|
+
interface Context {
|
|
5
|
+
subject: Subjects.CreateEventInMeeting;
|
|
6
|
+
data: Data;
|
|
7
|
+
}
|
|
8
|
+
interface Data {
|
|
9
|
+
operation: operationTypes;
|
|
10
|
+
data: any;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { operationTypes } from "..";
|
|
3
|
+
export declare namespace CreateNotificationEvent {
|
|
4
|
+
interface Context {
|
|
5
|
+
subject: Subjects.CreateEventInNotification;
|
|
6
|
+
data: Data;
|
|
7
|
+
}
|
|
8
|
+
interface Data {
|
|
9
|
+
operation: operationTypes;
|
|
10
|
+
data: any;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RecordType } from '../types/record-type.enum';
|
|
2
|
+
import { Subjects } from './subjects';
|
|
3
|
+
import { PropertyType } from './enums/property-type.enum';
|
|
4
|
+
export declare namespace CreateProperty {
|
|
5
|
+
interface Context {
|
|
6
|
+
subject: Subjects.CreateProperty;
|
|
7
|
+
data: Data;
|
|
8
|
+
}
|
|
9
|
+
interface Data {
|
|
10
|
+
relatedRecordType: RecordType;
|
|
11
|
+
relatedRecordId: string;
|
|
12
|
+
eventId?: string;
|
|
13
|
+
type: PropertyType;
|
|
14
|
+
content: string;
|
|
15
|
+
ownerUser: string;
|
|
16
|
+
ownerCompany: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-property.interface.js","sourceRoot":"","sources":["../../src/events/create-property.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
export declare namespace CreateSubscriptionEventInterface {
|
|
3
|
+
interface Context {
|
|
4
|
+
subject: Subjects.CreateSubscriptionEvent;
|
|
5
|
+
data: Data;
|
|
6
|
+
}
|
|
7
|
+
interface Data {
|
|
8
|
+
eventId?: string;
|
|
9
|
+
paymentMethod?: string;
|
|
10
|
+
subscription?: string;
|
|
11
|
+
expiryDate?: string;
|
|
12
|
+
userId?: string;
|
|
13
|
+
userEmail?: string;
|
|
14
|
+
companyId?: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { RecordType } from '../types/record-type.enum';
|
|
3
|
+
import { UserLanguage } from '../types/user-language.enum';
|
|
4
|
+
import { NotificationType } from '../types/notification-type.enum';
|
|
5
|
+
import { NotificationEvent } from '../types/notification-event.enum';
|
|
6
|
+
import { BulkUsers } from '../types/bulk-users.enum';
|
|
7
|
+
import { NotificationICalendarEvent } from '../types/notifications-calendar-event.interface';
|
|
8
|
+
export declare namespace SendNotifications {
|
|
9
|
+
interface Context {
|
|
10
|
+
subject: Subjects.SendNotifications;
|
|
11
|
+
data: Data[];
|
|
12
|
+
}
|
|
13
|
+
interface Data {
|
|
14
|
+
type: NotificationType;
|
|
15
|
+
trigger: NotificationEvent;
|
|
16
|
+
eventId?: string;
|
|
17
|
+
meeting?: string;
|
|
18
|
+
meetingRequest?: string;
|
|
19
|
+
senderCompany?: string;
|
|
20
|
+
senderContact?: string;
|
|
21
|
+
subject?: string;
|
|
22
|
+
content?: string;
|
|
23
|
+
template?: string;
|
|
24
|
+
templateId?: string;
|
|
25
|
+
receiverCompany: string;
|
|
26
|
+
receiver: string;
|
|
27
|
+
attachments?: string[];
|
|
28
|
+
iCalendarEvent?: NotificationICalendarEvent;
|
|
29
|
+
links?: any;
|
|
30
|
+
relatedRecordType?: RecordType;
|
|
31
|
+
relatedRecordId?: string;
|
|
32
|
+
language?: UserLanguage;
|
|
33
|
+
bulkUsers?: BulkUsers;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-notifications.interface.js","sourceRoot":"","sources":["../../src/events/send-notifications.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { operationTypes } from "..";
|
|
3
|
+
export declare namespace SyncEventWithNotification {
|
|
4
|
+
interface Context {
|
|
5
|
+
subject: Subjects.SyncEventWithNotification;
|
|
6
|
+
data: Data;
|
|
7
|
+
}
|
|
8
|
+
interface Data {
|
|
9
|
+
operation: operationTypes;
|
|
10
|
+
data: any;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { operationTypes } from "..";
|
|
3
|
+
export declare namespace SyncSubscriptionEvent {
|
|
4
|
+
interface Context {
|
|
5
|
+
subject: Subjects.CreateEventInSubscription;
|
|
6
|
+
data: Data;
|
|
7
|
+
}
|
|
8
|
+
interface Data {
|
|
9
|
+
operation: operationTypes;
|
|
10
|
+
data: any;
|
|
11
|
+
}
|
|
12
|
+
}
|