@aldb2b/common 1.0.764 → 1.0.765
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/entities/models/meetings/entities/meetingRequests/index.d.ts +5 -0
- package/build/entities/models/meetings/entities/meetingRequests/index.js +22 -0
- package/build/entities/models/meetings/entities/meetingRequests/index.js.map +1 -0
- package/build/entities/models/meetings/entities/meetingRequests/inter-service-identifier.enum.d.ts +11 -0
- package/build/entities/models/meetings/entities/meetingRequests/inter-service-identifier.enum.js +17 -0
- package/build/entities/models/meetings/entities/meetingRequests/inter-service-identifier.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request-status.enum.d.ts +9 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request-status.enum.js +14 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request-status.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request.entity.d.ts +98 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request.entity.js +220 -0
- package/build/entities/models/meetings/entities/meetingRequests/meeting-request.entity.js.map +1 -0
- package/build/entities/models/meetings/entities/meetingRequests/rejected-contact.entity.d.ts +60 -0
- package/build/entities/models/meetings/entities/meetingRequests/rejected-contact.entity.js +24 -0
- package/build/entities/models/meetings/entities/meetingRequests/rejected-contact.entity.js.map +1 -0
- package/build/entities/models/meetings/entities/meetingRequests/template-type.enum.d.ts +4 -0
- package/build/entities/models/meetings/entities/meetingRequests/template-type.enum.js +9 -0
- package/build/entities/models/meetings/entities/meetingRequests/template-type.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/meetings/followup-meeting-type.enum.d.ts +4 -0
- package/build/entities/models/meetings/entities/meetings/followup-meeting-type.enum.js +9 -0
- package/build/entities/models/meetings/entities/meetings/followup-meeting-type.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/meetings/index.d.ts +6 -0
- package/build/entities/models/meetings/entities/meetings/index.js +23 -0
- package/build/entities/models/meetings/entities/meetings/index.js.map +1 -0
- package/build/entities/models/meetings/entities/meetings/meeting-agenda-type.enum.d.ts +5 -0
- package/build/entities/models/meetings/entities/meetings/meeting-agenda-type.enum.js +10 -0
- package/build/entities/models/meetings/entities/meetings/meeting-agenda-type.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/meetings/meeting-status.enum.d.ts +9 -0
- package/build/entities/models/meetings/entities/meetings/meeting-status.enum.js +14 -0
- package/build/entities/models/meetings/entities/meetings/meeting-status.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/meetings/meeting-user-type.enum.d.ts +11 -0
- package/build/entities/models/meetings/entities/meetings/meeting-user-type.enum.js +16 -0
- package/build/entities/models/meetings/entities/meetings/meeting-user-type.enum.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 +247 -0
- package/build/entities/models/meetings/entities/meetings/meeting.entity.js.map +1 -0
- package/build/entities/models/meetings/entities/meetings/reminder-type.enum.d.ts +6 -0
- package/build/entities/models/meetings/entities/meetings/reminder-type.enum.js +11 -0
- package/build/entities/models/meetings/entities/meetings/reminder-type.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/userAvailabilities/index.d.ts +3 -0
- package/build/entities/models/meetings/entities/userAvailabilities/index.js +20 -0
- package/build/entities/models/meetings/entities/userAvailabilities/index.js.map +1 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability-day.enum.d.ts +12 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability-day.enum.js +17 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability-day.enum.js.map +1 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability-timeslot.entity.d.ts +64 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability-timeslot.entity.js +27 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability-timeslot.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 +124 -0
- package/build/entities/models/meetings/entities/userAvailabilities/user-availability.entity.js.map +1 -0
- package/build/entities/models/meetings/index.d.ts +4 -0
- package/build/entities/models/meetings/index.js +21 -0
- package/build/entities/models/meetings/index.js.map +1 -0
- package/build/entities/models/meetings/meetings.provider.d.ts +72 -0
- package/build/entities/models/meetings/meetings.provider.js +38 -0
- package/build/entities/models/meetings/meetings.provider.js.map +1 -0
- package/build/entities/models/model.providers.d.ts +18 -0
- package/build/entities/models/model.providers.js +2 -0
- package/build/entities/models/model.providers.js.map +1 -1
- package/build/entities/mongoose.providers.js +5 -1
- package/build/entities/mongoose.providers.js.map +1 -1
- package/build/enums/database-connection.enum.d.ts +2 -1
- package/build/enums/database-connection.enum.js +1 -0
- package/build/enums/database-connection.enum.js.map +1 -1
- package/build/enums/database-model.enum.d.ts +4 -1
- package/build/enums/database-model.enum.js +3 -0
- package/build/enums/database-model.enum.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/build/entities/models/meetings/entities/userAvailabilities/user-availability.entity.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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="@aldb2b/common/node_modules/mongoose/types/aggregate" />
|
|
25
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/callback" />
|
|
26
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/collection" />
|
|
27
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/connection" />
|
|
28
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/cursor" />
|
|
29
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/document" />
|
|
30
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/error" />
|
|
31
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/expressions" />
|
|
32
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/helpers" />
|
|
33
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/middlewares" />
|
|
34
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/indexes" />
|
|
35
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/models" />
|
|
36
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/mongooseoptions" />
|
|
37
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/pipelinestage" />
|
|
38
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/populate" />
|
|
39
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/query" />
|
|
40
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schemaoptions" />
|
|
41
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schematypes" />
|
|
42
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/session" />
|
|
43
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/types" />
|
|
44
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/utility" />
|
|
45
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/validation" />
|
|
46
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
|
+
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
+
import { Connection } from 'mongoose';
|
|
52
|
+
import { Contact } from '../../../companies';
|
|
53
|
+
import { Event } from '../../../../../entities/models/events';
|
|
54
|
+
import { CustomModel } from '../../../../../db/CustomModel';
|
|
55
|
+
import { MeetingType } from '../../../../../types/meeting-type.enum';
|
|
56
|
+
import { UserAvailabilityTimeSlot } from './user-availability-timeslot.entity';
|
|
57
|
+
export type UserAvailabilityModel = CustomModel<UserAvailability>;
|
|
58
|
+
export declare class UserAvailability {
|
|
59
|
+
_id?: string;
|
|
60
|
+
eventId: Event;
|
|
61
|
+
contactId: Contact;
|
|
62
|
+
durations: number[];
|
|
63
|
+
link: string;
|
|
64
|
+
timeZone: number;
|
|
65
|
+
timeZoneName: string;
|
|
66
|
+
userAvailabilityTimeSlots: UserAvailabilityTimeSlot[];
|
|
67
|
+
preMeetingReminder: number;
|
|
68
|
+
primary: boolean;
|
|
69
|
+
location: string;
|
|
70
|
+
viewCount: number;
|
|
71
|
+
scheduledMeetingCount: number;
|
|
72
|
+
meetingType: MeetingType;
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
updatedAt: Date;
|
|
75
|
+
}
|
|
76
|
+
export declare const userAvailabilityFactory: (connection: Connection, companyConnection: Connection, eventConnection: Connection) => import("mongoose").Model<UserAvailability, {}, {}, {}, import("mongoose").Document<unknown, {}, UserAvailability> & UserAvailability & Required<{
|
|
77
|
+
_id: string;
|
|
78
|
+
}>, any>;
|
package/build/entities/models/meetings/entities/userAvailabilities/user-availability.entity.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userAvailabilityFactory = exports.UserAvailability = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const validateProjectionResult_1 = require("../../../../../validators/validateProjectionResult");
|
|
6
|
+
const validateProjection_1 = require("../../../../../validators/validateProjection");
|
|
7
|
+
const validateNewItem_1 = require("../../../../../validators/validateNewItem");
|
|
8
|
+
const validateUpdateItem_1 = require("../../../../../validators/validateUpdateItem");
|
|
9
|
+
const get_model_ref_1 = require("../../../../services/get-model-ref");
|
|
10
|
+
const generate_model_1 = require("../../../../../entities/services/generate-model");
|
|
11
|
+
const meeting_type_enum_1 = require("../../../../../types/meeting-type.enum");
|
|
12
|
+
const user_availability_timeslot_entity_1 = require("./user-availability-timeslot.entity");
|
|
13
|
+
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
14
|
+
class UserAvailability {
|
|
15
|
+
}
|
|
16
|
+
exports.UserAvailability = UserAvailability;
|
|
17
|
+
const userAvailabilityFactory = (connection, companyConnection, eventConnection) => {
|
|
18
|
+
const userAvailabilitySchema = new mongoose_1.Schema({
|
|
19
|
+
eventId: {
|
|
20
|
+
type: ObjectId,
|
|
21
|
+
ref: (0, get_model_ref_1.getModelRef)('Event', eventConnection),
|
|
22
|
+
},
|
|
23
|
+
contactId: {
|
|
24
|
+
type: ObjectId,
|
|
25
|
+
ref: (0, get_model_ref_1.getModelRef)('Contact', companyConnection),
|
|
26
|
+
},
|
|
27
|
+
durations: {
|
|
28
|
+
type: [Number],
|
|
29
|
+
default: [],
|
|
30
|
+
validate: {
|
|
31
|
+
validator: (durations) => {
|
|
32
|
+
if (durations && durations.length) {
|
|
33
|
+
return durations.every((duration) => duration % 15 === 0);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
message: 'Duration must be a multiple of 15',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
link: { type: String, trim: true, unique: true },
|
|
43
|
+
timeZone: { type: Number, max: 1440, min: -1440, default: 0 },
|
|
44
|
+
timeZoneName: { type: String, trim: true },
|
|
45
|
+
userAvailabilityTimeSlots: [
|
|
46
|
+
{
|
|
47
|
+
type: user_availability_timeslot_entity_1.UserAvailabilityTimeSlotSchema,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
preMeetingReminder: { type: Number },
|
|
51
|
+
primary: { type: Boolean, default: false },
|
|
52
|
+
location: { type: String },
|
|
53
|
+
viewCount: { type: Number, default: 0 },
|
|
54
|
+
scheduledMeetingCount: { type: Number, default: 0 },
|
|
55
|
+
meetingType: {
|
|
56
|
+
type: String,
|
|
57
|
+
enum: Object.values(meeting_type_enum_1.MeetingType),
|
|
58
|
+
default: meeting_type_enum_1.MeetingType.ZOOM,
|
|
59
|
+
},
|
|
60
|
+
createdAt: { type: Date, required: true, default: Date.now },
|
|
61
|
+
updatedAt: { type: Date, required: true, default: Date.now },
|
|
62
|
+
});
|
|
63
|
+
const allProjectionFieldArray = [
|
|
64
|
+
'_id',
|
|
65
|
+
'eventId',
|
|
66
|
+
'contactId',
|
|
67
|
+
'durations',
|
|
68
|
+
'link',
|
|
69
|
+
'timeZone',
|
|
70
|
+
'timeZoneName',
|
|
71
|
+
'userAvailabilityTimeSlots',
|
|
72
|
+
'preMeetingReminder',
|
|
73
|
+
'primary',
|
|
74
|
+
'location',
|
|
75
|
+
'meetingType',
|
|
76
|
+
'viewCount',
|
|
77
|
+
'scheduledMeetingCount',
|
|
78
|
+
'createdAt',
|
|
79
|
+
'updatedAt',
|
|
80
|
+
];
|
|
81
|
+
const allValidateNewItemFieldArray = [
|
|
82
|
+
'_id',
|
|
83
|
+
'eventId',
|
|
84
|
+
'contactId',
|
|
85
|
+
'durations',
|
|
86
|
+
'link',
|
|
87
|
+
'timeZone',
|
|
88
|
+
'timeZoneName',
|
|
89
|
+
'userAvailabilityTimeSlots',
|
|
90
|
+
'preMeetingReminder',
|
|
91
|
+
'createdAt',
|
|
92
|
+
'primary',
|
|
93
|
+
'location',
|
|
94
|
+
'meetingType',
|
|
95
|
+
'viewCount',
|
|
96
|
+
'scheduledMeetingCount',
|
|
97
|
+
'updatedAt',
|
|
98
|
+
];
|
|
99
|
+
const allValidateUpdateItemFieldArray = [
|
|
100
|
+
'durations',
|
|
101
|
+
'link',
|
|
102
|
+
'timeZone',
|
|
103
|
+
'timeZoneName',
|
|
104
|
+
'userAvailabilityTimeSlots',
|
|
105
|
+
'preMeetingReminder',
|
|
106
|
+
'primary',
|
|
107
|
+
'location',
|
|
108
|
+
'meetingType',
|
|
109
|
+
'viewCount',
|
|
110
|
+
'scheduledMeetingCount',
|
|
111
|
+
'updatedAt',
|
|
112
|
+
];
|
|
113
|
+
userAvailabilitySchema.statics.validateProjectionResult = (necessaryProjectionObj) => (0, validateProjectionResult_1.validateProjectionResult)(allProjectionFieldArray, necessaryProjectionObj);
|
|
114
|
+
userAvailabilitySchema.statics.validateProjection = (necessaryProjectionArray) => (0, validateProjection_1.validateProjection)(allProjectionFieldArray, necessaryProjectionArray);
|
|
115
|
+
userAvailabilitySchema.statics.validateNewItem = (newItemObj) => (0, validateNewItem_1.validateNewItem)(allValidateNewItemFieldArray, newItemObj);
|
|
116
|
+
userAvailabilitySchema.statics.validateUpdateItem = (updateItemObj) => (0, validateUpdateItem_1.validateUpdateItem)(allValidateUpdateItemFieldArray, updateItemObj);
|
|
117
|
+
userAvailabilitySchema.pre('findOneAndUpdate', async function (next) {
|
|
118
|
+
this._update.updatedAt = new Date();
|
|
119
|
+
next();
|
|
120
|
+
});
|
|
121
|
+
return (0, generate_model_1.generateModel)('UserAvailability', connection, userAvailabilitySchema);
|
|
122
|
+
};
|
|
123
|
+
exports.userAvailabilityFactory = userAvailabilityFactory;
|
|
124
|
+
//# sourceMappingURL=user-availability.entity.js.map
|
package/build/entities/models/meetings/entities/userAvailabilities/user-availability.entity.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-availability.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/meetings/entities/userAvailabilities/user-availability.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAC7C,iGAA6F;AAC7F,qFAAiF;AACjF,+EAA2E;AAC3E,qFAAiF;AAGjF,sEAAgE;AAChE,oFAA+E;AAE/E,8EAAoE;AACpE,2FAG4C;AAE5C,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,gBAAgB;CAiB5B;AAjBD,4CAiBC;AAEM,MAAM,uBAAuB,GAAG,CACrC,UAAsB,EACtB,iBAA6B,EAC7B,eAA2B,EAC3B,EAAE;IACF,MAAM,sBAAsB,GAAG,IAAI,iBAAM,CAGvC;QACA,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,IAAA,2BAAW,EAAoB,OAAO,EAAE,eAAe,CAAC;SAC9D;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,IAAA,2BAAW,EAAwB,SAAS,EAAE,iBAAiB,CAAC;SACtE;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,CAAC;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE;gBACR,SAAS,EAAE,CAAC,SAAmB,EAAE,EAAE;oBACjC,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;wBAClC,OAA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AAC,kBAAkB,EAAE,KAAK,WAAiB,IAAI;QAGvE,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAA;QACnC,IAAI,EAAE,CAAA;IACR,CAAC,CAAC,CAAA;IAEF,OAAO,IAAA,8BAAa,EAClB,kBAAkB,EAClB,UAAU,EACV,sBAAsB,CACvB,CAAA;AACH,CAAC,CAAA;AApIY,QAAA,uBAAuB,2BAoInC"}
|
|
@@ -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("./entities/meetingRequests"), exports);
|
|
18
|
+
__exportStar(require("./entities/meetings"), exports);
|
|
19
|
+
__exportStar(require("./entities/userAvailabilities"), exports);
|
|
20
|
+
__exportStar(require("./meetings.provider"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/meetings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C;AAC1C,sDAAmC;AACnC,gEAA6C;AAC7C,sDAAmC"}
|
|
@@ -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" />
|
|
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
|
+
import { DatabaseModel } from '../../../enums/database-model.enum';
|
|
53
|
+
import { DatabaseConnection } from '../../../enums/database-connection.enum';
|
|
54
|
+
export declare const meetingProviders: ({
|
|
55
|
+
provide: DatabaseModel;
|
|
56
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/meetings").Meeting, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/meetings").Meeting> & import("./entities/meetings").Meeting & Required<{
|
|
57
|
+
_id: string;
|
|
58
|
+
}>, any>;
|
|
59
|
+
inject: DatabaseConnection[];
|
|
60
|
+
} | {
|
|
61
|
+
provide: DatabaseModel;
|
|
62
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/meetingRequests").MeetingRequest, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/meetingRequests").MeetingRequest> & import("./entities/meetingRequests").MeetingRequest & Required<{
|
|
63
|
+
_id: string;
|
|
64
|
+
}>, any>;
|
|
65
|
+
inject: DatabaseConnection[];
|
|
66
|
+
} | {
|
|
67
|
+
provide: DatabaseModel;
|
|
68
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/userAvailabilities").UserAvailability, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/userAvailabilities").UserAvailability> & import("./entities/userAvailabilities").UserAvailability & Required<{
|
|
69
|
+
_id: string;
|
|
70
|
+
}>, any>;
|
|
71
|
+
inject: DatabaseConnection[];
|
|
72
|
+
})[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.meetingProviders = void 0;
|
|
4
|
+
const database_model_enum_1 = require("../../../enums/database-model.enum");
|
|
5
|
+
const database_connection_enum_1 = require("../../../enums/database-connection.enum");
|
|
6
|
+
const meetings_1 = require("./entities/meetings");
|
|
7
|
+
const meetingRequests_1 = require("./entities/meetingRequests");
|
|
8
|
+
const userAvailabilities_1 = require("./entities/userAvailabilities");
|
|
9
|
+
exports.meetingProviders = [
|
|
10
|
+
{
|
|
11
|
+
provide: database_model_enum_1.DatabaseModel.MEETING_MODEL,
|
|
12
|
+
useFactory: meetings_1.meetingFactory,
|
|
13
|
+
inject: [
|
|
14
|
+
database_connection_enum_1.DatabaseConnection.MEETING_CONNECTION,
|
|
15
|
+
database_connection_enum_1.DatabaseConnection.COMPANY_CONNECTION,
|
|
16
|
+
database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION,
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
provide: database_model_enum_1.DatabaseModel.MEETING_REQUEST_MODEL,
|
|
21
|
+
useFactory: meetingRequests_1.meetingRequestFactory,
|
|
22
|
+
inject: [
|
|
23
|
+
database_connection_enum_1.DatabaseConnection.MEETING_CONNECTION,
|
|
24
|
+
database_connection_enum_1.DatabaseConnection.COMPANY_CONNECTION,
|
|
25
|
+
database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION,
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
provide: database_model_enum_1.DatabaseModel.USER_AVAILABILITY_MODEL,
|
|
30
|
+
useFactory: userAvailabilities_1.userAvailabilityFactory,
|
|
31
|
+
inject: [
|
|
32
|
+
database_connection_enum_1.DatabaseConnection.MEETING_CONNECTION,
|
|
33
|
+
database_connection_enum_1.DatabaseConnection.COMPANY_CONNECTION,
|
|
34
|
+
database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION,
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
//# sourceMappingURL=meetings.provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meetings.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/meetings/meetings.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAClE,sFAA4E;AAC5E,kDAAoD;AACpD,gEAAkE;AAClE,sEAAuE;AAE1D,QAAA,gBAAgB,GAAG;IAC9B;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,yBAAc;QAC1B,MAAM,EAAE;YACN,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,qBAAqB;QAC5C,UAAU,EAAE,uCAAqB;QACjC,MAAM,EAAE;YACN,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,uBAAuB;QAC9C,UAAU,EAAE,4CAAuB;QACnC,MAAM,EAAE;YACN,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;CACF,CAAA"}
|
|
@@ -105,4 +105,22 @@ export declare const modelProviders: ({
|
|
|
105
105
|
provide: import("../..").ServiceProvide;
|
|
106
106
|
inject: (import("../..").DatabaseModel | import("../..").RepositoryProvide)[];
|
|
107
107
|
useFactory: (auditLogRepository: import("./common").AuditTrailRepository, userModel: import("../..").CustomModel<import("./users").User>) => import("./common").AuditTrailService;
|
|
108
|
+
} | {
|
|
109
|
+
provide: import("../..").DatabaseModel;
|
|
110
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./meetings").Meeting, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./meetings").Meeting> & import("./meetings").Meeting & Required<{
|
|
111
|
+
_id: string;
|
|
112
|
+
}>, any>;
|
|
113
|
+
inject: import("../..").DatabaseConnection[];
|
|
114
|
+
} | {
|
|
115
|
+
provide: import("../..").DatabaseModel;
|
|
116
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./meetings").MeetingRequest, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./meetings").MeetingRequest> & import("./meetings").MeetingRequest & Required<{
|
|
117
|
+
_id: string;
|
|
118
|
+
}>, any>;
|
|
119
|
+
inject: import("../..").DatabaseConnection[];
|
|
120
|
+
} | {
|
|
121
|
+
provide: import("../..").DatabaseModel;
|
|
122
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./meetings").UserAvailability, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./meetings").UserAvailability> & import("./meetings").UserAvailability & Required<{
|
|
123
|
+
_id: string;
|
|
124
|
+
}>, any>;
|
|
125
|
+
inject: import("../..").DatabaseConnection[];
|
|
108
126
|
})[];
|
|
@@ -4,11 +4,13 @@ exports.modelProviders = void 0;
|
|
|
4
4
|
const common_provider_1 = require("./common/common.provider");
|
|
5
5
|
const companies_1 = require("./companies");
|
|
6
6
|
const events_provider_1 = require("./events/events.provider");
|
|
7
|
+
const meetings_1 = require("./meetings");
|
|
7
8
|
const users_provider_1 = require("./users/users.provider");
|
|
8
9
|
exports.modelProviders = [
|
|
9
10
|
...events_provider_1.eventProviders,
|
|
10
11
|
...companies_1.companiesProviders,
|
|
11
12
|
...users_provider_1.userProviders,
|
|
13
|
+
...meetings_1.meetingProviders,
|
|
12
14
|
...common_provider_1.commonProviders,
|
|
13
15
|
];
|
|
14
16
|
//# sourceMappingURL=model.providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.providers.js","sourceRoot":"","sources":["../../../src/entities/models/model.providers.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAC1D,2CAAgD;AAChD,8DAAyD;AACzD,2DAAsD;AAEzC,QAAA,cAAc,GAAG;IAC5B,GAAG,gCAAc;IACjB,GAAG,8BAAkB;IACrB,GAAG,8BAAa;IAChB,GAAG,iCAAe;CACnB,CAAA"}
|
|
1
|
+
{"version":3,"file":"model.providers.js","sourceRoot":"","sources":["../../../src/entities/models/model.providers.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAC1D,2CAAgD;AAChD,8DAAyD;AACzD,yCAA6C;AAC7C,2DAAsD;AAEzC,QAAA,cAAc,GAAG;IAC5B,GAAG,gCAAc;IACjB,GAAG,8BAAkB;IACrB,GAAG,8BAAa;IAChB,GAAG,2BAAgB;IACnB,GAAG,iCAAe;CACnB,CAAA"}
|
|
@@ -20,10 +20,14 @@ exports.mongooseProviders = [
|
|
|
20
20
|
provide: database_connection_enum_1.DatabaseConnection.COMPANY_CONNECTION,
|
|
21
21
|
useFactory: async () => await generateConnection(process.env.MONGO_URI_COMPANY),
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
provide: database_connection_enum_1.DatabaseConnection.MEETING_CONNECTION,
|
|
25
|
+
useFactory: async () => await generateConnection(process.env.MONGO_URI_MEETING),
|
|
26
|
+
},
|
|
23
27
|
];
|
|
24
28
|
const connectionsDictionery = [];
|
|
25
29
|
const generateConnection = async (uri) => {
|
|
26
|
-
const connectionDic = connectionsDictionery.find(conn => conn.uri === uri);
|
|
30
|
+
const connectionDic = connectionsDictionery.find((conn) => conn.uri === uri);
|
|
27
31
|
if (connectionDic) {
|
|
28
32
|
return await new Promise((resolve, reject) => {
|
|
29
33
|
connectionDic.connection.on('connected', function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongoose.providers.js","sourceRoot":"","sources":["../../src/entities/mongoose.providers.ts"],"names":[],"mappings":";;;AAAA,uCAAuD;AACvD,gFAAsE;AAGzD,QAAA,iBAAiB,GAAG;IAC/B;QACE,OAAO,EAAE,6CAAkB,CAAC,kBAAkB;QAC9C,UAAU,EAAE,KAAK,IAAyB,EAAE,CAC1C,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;KAClD;IACD;QACE,OAAO,EAAE,6CAAkB,CAAC,gBAAgB;QAC5C,UAAU,EAAE,KAAK,IAAyB,EAAE,CA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ONNECTION = "companyConnection",
|
|
4
4
|
EVENT_CONNECTION = "eventConnection",
|
|
5
|
-
USER_CONNECTION = "userConnection"
|
|
5
|
+
USER_CONNECTION = "userConnection",
|
|
6
|
+
MEETING_CONNECTION = "meetingConnection"
|
|
6
7
|
}
|
|
@@ -7,5 +7,6 @@ var DatabaseConnection;
|
|
|
7
7
|
DatabaseConnection["COMPANY_CONNECTION"] = "companyConnection";
|
|
8
8
|
DatabaseConnection["EVENT_CONNECTION"] = "eventConnection";
|
|
9
9
|
DatabaseConnection["USER_CONNECTION"] = "userConnection";
|
|
10
|
+
DatabaseConnection["MEETING_CONNECTION"] = "meetingConnection";
|
|
10
11
|
})(DatabaseConnection || (exports.DatabaseConnection = DatabaseConnection = {}));
|
|
11
12
|
//# sourceMappingURL=database-connection.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-connection.enum.js","sourceRoot":"","sources":["../../src/enums/database-connection.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"database-connection.enum.js","sourceRoot":"","sources":["../../src/enums/database-connection.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,8DAAwC,CAAA;IACxC,8DAAwC,CAAA;IACxC,0DAAoC,CAAA;IACpC,wDAAkC,CAAA;IAClC,8DAAwC,CAAA;AAC1C,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
|
@@ -6,5 +6,8 @@ export declare enum DatabaseModel {
|
|
|
6
6
|
EVENT_TYPE_MODEL = "EventTypeModel",
|
|
7
7
|
EVENT_PROFILE_MODEL = "EventProfileModel",
|
|
8
8
|
USER_MODEL = "UserModel",
|
|
9
|
-
ROLE_PERMISSION_MODEL = "RolePermissionModel"
|
|
9
|
+
ROLE_PERMISSION_MODEL = "RolePermissionModel",
|
|
10
|
+
MEETING_MODEL = "MeetingModel",
|
|
11
|
+
MEETING_REQUEST_MODEL = "MeetingRequestModel",
|
|
12
|
+
USER_AVAILABILITY_MODEL = "UserAvailabilityModel"
|
|
10
13
|
}
|
|
@@ -11,5 +11,8 @@ var DatabaseModel;
|
|
|
11
11
|
DatabaseModel["EVENT_PROFILE_MODEL"] = "EventProfileModel";
|
|
12
12
|
DatabaseModel["USER_MODEL"] = "UserModel";
|
|
13
13
|
DatabaseModel["ROLE_PERMISSION_MODEL"] = "RolePermissionModel";
|
|
14
|
+
DatabaseModel["MEETING_MODEL"] = "MeetingModel";
|
|
15
|
+
DatabaseModel["MEETING_REQUEST_MODEL"] = "MeetingRequestModel";
|
|
16
|
+
DatabaseModel["USER_AVAILABILITY_MODEL"] = "UserAvailabilityModel";
|
|
14
17
|
})(DatabaseModel || (exports.DatabaseModel = DatabaseModel = {}));
|
|
15
18
|
//# sourceMappingURL=database-model.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-model.enum.js","sourceRoot":"","sources":["../../src/enums/database-model.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"database-model.enum.js","sourceRoot":"","sources":["../../src/enums/database-model.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,sDAAqC,CAAA;IACrC,+CAA8B,CAAA;IAC9B,+CAA8B,CAAA;IAC9B,2CAA0B,CAAA;IAC1B,oDAAmC,CAAA;IACnC,0DAAyC,CAAA;IACzC,yCAAwB,CAAA;IACxB,8DAA6C,CAAA;IAC7C,+CAA8B,CAAA;IAC9B,8DAA6C,CAAA;IAC7C,kEAAiD,CAAA;AACnD,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB"}
|
package/build/index.d.ts
CHANGED
|
@@ -260,6 +260,7 @@ export * from './entities/models/users';
|
|
|
260
260
|
export * from './entities/models/events';
|
|
261
261
|
export * from './entities/models/common';
|
|
262
262
|
export * from './entities/services';
|
|
263
|
+
export * from './entities/models/meetings';
|
|
263
264
|
export * from './common/common.module';
|
|
264
265
|
export * from './common/const';
|
|
265
266
|
export * from './common/controllers/common.controller';
|
package/build/index.js
CHANGED
|
@@ -276,6 +276,7 @@ __exportStar(require("./entities/models/users"), exports);
|
|
|
276
276
|
__exportStar(require("./entities/models/events"), exports);
|
|
277
277
|
__exportStar(require("./entities/models/common"), exports);
|
|
278
278
|
__exportStar(require("./entities/services"), exports);
|
|
279
|
+
__exportStar(require("./entities/models/meetings"), exports);
|
|
279
280
|
__exportStar(require("./common/common.module"), exports);
|
|
280
281
|
__exportStar(require("./common/const"), exports);
|
|
281
282
|
__exportStar(require("./common/controllers/common.controller"), exports);
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAiD;AACjD,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD;AACrD,yEAAsD;AACtD,yEAAsD;AACtD,oEAAiD;AACjD,6EAA0D;AAC1D,2EAAwD;AACxD,8EAA2D;AAC3D,mEAAgD;AAChD,oEAAiD;AACjD,oEAAiD;AACjD,oEAAiD;AACjD,wEAAqD;AACrD,2EAAwD;AACxD,0EAAuD;AACvD,mEAAgD;AAChD,kDAA+B;AAC/B,oEAAiD;AACjD,2EAAwD;AACxD,oEAAiD;AACjD,qEAAkD;AAClD,qEAAkD;AAClD,wEAAqD;AACrD,sEAAmD;AACnD,0EAAuD;AACvD,wEAAqD;AACrD,4EAAyD;AACzD,oEAAiD;AACjD,oEAAiD;AACjD,wEAAqD;AACrD,0EAAuD;AACvD,2E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gC;AAChC,4DAAyC;AACzC,2DAAwC;AACxC,oDAAiC;AACjC,uDAAoC;AACpC,yDAAsC;AACtC,sDAAmC;AACnC,wDAAqC;AACrC,mDAAgC;AAChC,oDAAiC;AACjC,gDAA6B;AAC7B,iDAA8B;AAC9B,uDAAoC;AACpC,wDAAqC;AACrC,uDAAoC;AACpC,0DAAuC;AACvC,wDAAqC;AAErC,qEAAkD;AAClD,kEAA+C;AAC/C,oEAAiD;AACjD,yDAAsC;AACtC,gEAA6C;AAC7C,8DAA2C;AAC3C,gEAA6C;AAC7C,mEAAgD;AAChD,8DAA2C;AAC3C,gEAA6C;AAC7C,kEAA+C;AAC/C,+DAA4C;AAC5C,0DAAuC;AAEvC,iEAA8C;AAC9C,wEAAqD;AACrD,mEAAgD;AAChD,iEAA8C;AAC9C,iEAA8C;AAC9C,oEAAiD;AACjD,iEAA8C;AAE9C,qEAAkD;AAClD,qEAAkD;AAElD,6DAA0C;AAC1C,wFAAqE;AACrE,gEAA6C;AAC7C,oEAAiD;AACjD,8DAA2C;AAC3C,0DAAuC;AACvC,2DAAwC;AACxC,2DAAwC;AACxC,sDAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAiD;AACjD,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD;AACrD,yEAAsD;AACtD,yEAAsD;AACtD,oEAAiD;AACjD,6EAA0D;AAC1D,2EAAwD;AACxD,8EAA2D;AAC3D,mEAAgD;AAChD,oEAAiD;AACjD,oEAAiD;AACjD,oEAAiD;AACjD,wEAAqD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