@aldb2b/common 1.0.124 → 1.0.125
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/CustomModel.d.ts +4 -0
- package/build/db/CustomModel.js +8 -0
- package/build/db/CustomModel.js.map +1 -0
- package/build/db/MongooseBase.d.ts +41 -0
- package/build/db/MongooseBase.js +346 -0
- package/build/db/MongooseBase.js.map +1 -0
- package/build/db/aggregate/AggregateConvertor.d.ts +23 -0
- package/build/db/aggregate/AggregateConvertor.js +212 -0
- package/build/db/aggregate/AggregateConvertor.js.map +1 -0
- package/build/db/aggregate/createAggregateResponse.d.ts +2 -0
- package/build/db/aggregate/createAggregateResponse.js +50 -0
- package/build/db/aggregate/createAggregateResponse.js.map +1 -0
- package/build/db/mongoose-find-options.d.ts +12 -0
- package/build/db/mongoose-find-options.js +68 -0
- package/build/db/mongoose-find-options.js.map +1 -0
- package/build/decorators/get-event-id-decorator.d.ts +1 -0
- package/build/decorators/get-event-id-decorator.js +10 -0
- package/build/decorators/get-event-id-decorator.js.map +1 -0
- package/build/decorators/get-user-decorator.d.ts +1 -0
- package/build/decorators/get-user-decorator.js +13 -0
- package/build/decorators/get-user-decorator.js.map +1 -0
- package/build/events/attendee-contact.interface.d.ts +10 -0
- package/build/events/attendee-contact.interface.js +3 -0
- package/build/events/attendee-contact.interface.js.map +1 -0
- package/build/events/authorize-user.interface.d.ts +13 -0
- package/build/events/authorize-user.interface.js +3 -0
- package/build/events/authorize-user.interface.js.map +1 -0
- package/build/events/campaign-users.interface.d.ts +11 -0
- package/build/events/campaign-users.interface.js +3 -0
- package/build/events/campaign-users.interface.js.map +1 -0
- package/build/events/compute-calendar.interface.d.ts +14 -0
- package/build/events/compute-calendar.interface.js +3 -0
- package/build/events/compute-calendar.interface.js.map +1 -0
- package/build/events/contacts-by-search.interface.d.ts +10 -0
- package/build/events/contacts-by-search.interface.js +3 -0
- package/build/events/contacts-by-search.interface.js.map +1 -0
- package/build/events/countries-by-search.interface.d.ts +10 -0
- package/build/events/countries-by-search.interface.js +3 -0
- package/build/events/countries-by-search.interface.js.map +1 -0
- package/build/events/create-company-setting.interface.d.ts +18 -0
- package/build/events/create-company-setting.interface.js +3 -0
- package/build/events/create-company-setting.interface.js.map +1 -0
- package/build/events/create-company.interface.js +3 -0
- package/build/events/create-company.interface.js.map +1 -0
- package/build/events/create-contact.interface.js +3 -0
- package/build/events/create-contact.interface.js.map +1 -0
- package/build/events/create-default-templates.d.ts +10 -0
- package/build/events/create-default-templates.js +3 -0
- package/build/events/create-default-templates.js.map +1 -0
- package/build/events/data-by-search.interface.d.ts +10 -0
- package/build/events/data-by-search.interface.js +3 -0
- package/build/events/data-by-search.interface.js.map +1 -0
- package/build/events/edit-list-users.interface.d.ts +10 -0
- package/build/events/edit-list-users.interface.js +3 -0
- package/build/events/edit-list-users.interface.js.map +1 -0
- package/build/events/email-specs.interface.d.ts +18 -0
- package/build/events/email-specs.interface.js +3 -0
- package/build/events/email-specs.interface.js.map +1 -0
- package/build/events/get-companies.interface.d.ts +10 -0
- package/build/events/get-companies.interface.js +3 -0
- package/build/events/get-companies.interface.js.map +1 -0
- package/build/events/get-contacts-by-query.interface.d.ts +10 -0
- package/build/events/get-contacts-by-query.interface.js +3 -0
- package/build/events/get-contacts-by-query.interface.js.map +1 -0
- package/build/events/get-event.interface.d.ts +10 -0
- package/build/events/get-event.interface.js +3 -0
- package/build/events/get-event.interface.js.map +1 -0
- package/build/events/get-meeting-by-query.interface.d.ts +10 -0
- package/build/events/get-meeting-by-query.interface.js +3 -0
- package/build/events/get-meeting-by-query.interface.js.map +1 -0
- package/build/events/get-templates.interface.d.ts +10 -0
- package/build/events/get-templates.interface.js +3 -0
- package/build/events/get-templates.interface.js.map +1 -0
- package/build/events/get-unavailable-by-user.interface.d.ts +13 -0
- package/build/events/get-unavailable-by-user.interface.js +3 -0
- package/build/events/get-unavailable-by-user.interface.js.map +1 -0
- package/build/events/get-user-by-id.interface.d.ts +10 -0
- package/build/events/get-user-by-id.interface.js +3 -0
- package/build/events/get-user-by-id.interface.js.map +1 -0
- package/build/events/groups-by-company.interface.d.ts +13 -0
- package/build/events/groups-by-company.interface.js +3 -0
- package/build/events/groups-by-company.interface.js.map +1 -0
- package/build/events/groups-by-ids.interface.d.ts +10 -0
- package/build/events/groups-by-ids.interface.js +3 -0
- package/build/events/groups-by-ids.interface.js.map +1 -0
- package/build/events/manage-asseccibillity.interface.d.ts +13 -0
- package/build/events/manage-asseccibillity.interface.js +3 -0
- package/build/events/manage-asseccibillity.interface.js.map +1 -0
- package/build/events/meeting-count-by-company.interface.d.ts +10 -0
- package/build/events/meeting-count-by-company.interface.js +3 -0
- package/build/events/meeting-count-by-company.interface.js.map +1 -0
- package/build/events/meeting-count-by-user.interface.d.ts +10 -0
- package/build/events/meeting-count-by-user.interface.js +3 -0
- package/build/events/meeting-count-by-user.interface.js.map +1 -0
- package/build/events/meeting-request-created.interface.d.ts +20 -0
- package/build/events/meeting-request-created.interface.js +3 -0
- package/build/events/meeting-request-created.interface.js.map +1 -0
- package/build/events/meeting-requested-users.interface.d.ts +10 -0
- package/build/events/meeting-requested-users.interface.js +3 -0
- package/build/events/meeting-requested-users.interface.js.map +1 -0
- package/build/events/queues.d.ts +2 -1
- package/build/events/queues.js +1 -0
- package/build/events/queues.js.map +1 -1
- package/build/events/send-emails.interface.d.ts +21 -0
- package/build/events/send-emails.interface.js +3 -0
- package/build/events/send-emails.interface.js.map +1 -0
- package/build/events/send-notifications.interface.d.ts +23 -0
- package/build/events/send-notifications.interface.js +3 -0
- package/build/events/send-notifications.interface.js.map +1 -0
- package/build/events/subjects.d.ts +33 -0
- package/build/events/subjects.js +38 -0
- package/build/events/subjects.js.map +1 -0
- package/build/events/update-company-setting.interface.d.ts +18 -0
- package/build/events/update-company-setting.interface.js +3 -0
- package/build/events/update-company-setting.interface.js.map +1 -0
- package/build/events/update-meeting-status.interface.d.ts +11 -0
- package/build/events/update-meeting-status.interface.js +3 -0
- package/build/events/update-meeting-status.interface.js.map +1 -0
- package/build/events/update-user-event-info.interface.js +3 -0
- package/build/events/update-user-event-info.interface.js.map +1 -0
- package/build/interceptors/response.interceptor.d.ts +6 -0
- package/build/interceptors/response.interceptor.js +31 -0
- package/build/interceptors/response.interceptor.js.map +1 -0
- package/build/interceptors/serialize.interceptor.d.ts +12 -0
- package/build/interceptors/serialize.interceptor.js +25 -0
- package/build/interceptors/serialize.interceptor.js.map +1 -0
- package/build/middlewares/app.middleware.d.ts +6 -0
- package/build/middlewares/app.middleware.js +30 -0
- package/build/middlewares/app.middleware.js.map +1 -0
- package/build/middlewares/authorizer.middleware.d.ts +10 -0
- package/build/middlewares/authorizer.middleware.js +101 -0
- package/build/middlewares/authorizer.middleware.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +2 -2
- package/build/types/analytic-group.interface.d.ts +12 -0
- package/build/types/analytic-group.interface.js +3 -0
- package/build/types/analytic-group.interface.js.map +1 -0
- package/build/types/chat-group.interface.d.ts +4 -0
- package/build/types/chat-group.interface.js +3 -0
- package/build/types/chat-group.interface.js.map +1 -0
- package/build/types/default-visibility.interface.d.ts +13 -0
- package/build/types/default-visibility.interface.js +3 -0
- package/build/types/default-visibility.interface.js.map +1 -0
- package/build/types/download-presigned-url.interface.d.ts +4 -0
- package/build/types/download-presigned-url.interface.js +3 -0
- package/build/types/download-presigned-url.interface.js.map +1 -0
- package/build/types/group-visibility.interface.d.ts +13 -0
- package/build/types/group-visibility.interface.js +3 -0
- package/build/types/group-visibility.interface.js.map +1 -0
- package/build/types/header-user.interface.d.ts +8 -0
- package/build/types/header-user.interface.js +3 -0
- package/build/types/header-user.interface.js.map +1 -0
- package/build/types/match-group.interface.d.ts +7 -0
- package/build/types/match-group.interface.js +3 -0
- package/build/types/match-group.interface.js.map +1 -0
- package/build/types/match.interface.d.ts +6 -0
- package/build/types/match.interface.js +3 -0
- package/build/types/match.interface.js.map +1 -0
- package/build/types/meeting-request-token.interface.d.ts +7 -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-type.enum.d.ts +6 -0
- package/build/types/meeting-type.enum.js +11 -0
- package/build/types/meeting-type.enum.js.map +1 -0
- package/build/types/notification-event.enum.d.ts +16 -0
- package/build/types/notification-event.enum.js +21 -0
- package/build/types/notification-event.enum.js.map +1 -0
- package/build/types/notification-type.enum.d.ts +6 -0
- package/build/types/notification-type.enum.js +11 -0
- package/build/types/notification-type.enum.js.map +1 -0
- package/build/types/operation-types.d.ts +5 -0
- package/build/types/operation-types.js +10 -0
- package/build/types/operation-types.js.map +1 -0
- package/build/types/read-result.interface.d.ts +5 -0
- package/build/types/read-result.interface.js +3 -0
- package/build/types/read-result.interface.js.map +1 -0
- package/build/types/update-input-data.interface.d.ts +11 -0
- package/build/types/update-input-data.interface.js +3 -0
- package/build/types/update-input-data.interface.js.map +1 -0
- package/build/types/upload-presigned-url.interface.d.ts +4 -0
- package/build/types/upload-presigned-url.interface.js +3 -0
- package/build/types/upload-presigned-url.interface.js.map +1 -0
- package/build/types/user-invitations.interface.d.ts +6 -0
- package/build/types/user-invitations.interface.js +3 -0
- package/build/types/user-invitations.interface.js.map +1 -0
- package/build/types/user-role.enum.d.ts +7 -0
- package/build/types/user-role.enum.js +12 -0
- package/build/types/user-role.enum.js.map +1 -0
- package/build/types/user-type.enum.d.ts +5 -0
- package/build/types/user-type.enum.js +10 -0
- package/build/types/user-type.enum.js.map +1 -0
- package/build/types/visibility-group.interface.d.ts +6 -0
- package/build/types/visibility-group.interface.js +3 -0
- package/build/types/visibility-group.interface.js.map +1 -0
- package/build/utils/create-default-directories.d.ts +1 -0
- package/build/utils/create-default-directories.js +24 -0
- package/build/utils/create-default-directories.js.map +1 -0
- package/build/utils/equal-array-object.d.ts +1 -0
- package/build/utils/equal-array-object.js +10 -0
- package/build/utils/equal-array-object.js.map +1 -0
- package/build/utils/equal-object.d.ts +1 -0
- package/build/utils/equal-object.js +9 -0
- package/build/utils/equal-object.js.map +1 -0
- package/build/utils/parse-query.d.ts +1 -0
- package/build/utils/parse-query.js +31 -0
- package/build/utils/parse-query.js.map +1 -0
- package/build/utils/projection.d.ts +1 -0
- package/build/utils/projection.js +26 -0
- package/build/utils/projection.js.map +1 -0
- package/build/utils/timezone.d.ts +2 -0
- package/build/utils/timezone.js +15 -0
- package/build/utils/timezone.js.map +1 -0
- package/build/validators/conditional-required.d.ts +2 -0
- package/build/validators/conditional-required.js +24 -0
- package/build/validators/conditional-required.js.map +1 -0
- package/build/validators/date-validator.d.ts +2 -0
- package/build/validators/date-validator.js +21 -0
- package/build/validators/date-validator.js.map +1 -0
- package/build/validators/responses/customizeArrayResponse.d.ts +3 -0
- package/build/validators/responses/customizeArrayResponse.js +24 -0
- package/build/validators/responses/customizeArrayResponse.js.map +1 -0
- package/build/validators/responses/error.d.ts +2 -0
- package/build/validators/responses/error.interface.d.ts +4 -0
- package/build/validators/responses/error.interface.js +3 -0
- package/build/validators/responses/error.interface.js.map +1 -0
- package/build/validators/responses/error.js +29 -0
- package/build/validators/responses/error.js.map +1 -0
- package/build/validators/responses/response-option.interface.d.ts +7 -0
- package/build/validators/responses/response-option.interface.js +3 -0
- package/build/validators/responses/response-option.interface.js.map +1 -0
- package/build/validators/responses/succes-result.interface.d.ts +10 -0
- package/build/validators/responses/succes-result.interface.js +3 -0
- package/build/validators/responses/succes-result.interface.js.map +1 -0
- package/build/validators/responses/success.d.ts +3 -0
- package/build/validators/responses/success.interface.d.ts +4 -0
- package/build/validators/responses/success.interface.js +3 -0
- package/build/validators/responses/success.interface.js.map +1 -0
- package/build/validators/responses/success.js +15 -0
- package/build/validators/responses/success.js.map +1 -0
- package/build/validators/validateNewItem.d.ts +1 -0
- package/build/validators/validateNewItem.js +23 -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 +23 -0
- package/build/validators/validateUpdateItem.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AnalyticGroup {
|
|
2
|
+
scheduledMeetings?: boolean;
|
|
3
|
+
conductedMeetings?: boolean;
|
|
4
|
+
matches?: boolean;
|
|
5
|
+
meetingPerParticipants?: boolean;
|
|
6
|
+
opportunities?: boolean;
|
|
7
|
+
meetingRating?: boolean;
|
|
8
|
+
myWishToMeet?: boolean;
|
|
9
|
+
chat?: boolean;
|
|
10
|
+
totalSwipe?: boolean;
|
|
11
|
+
wishToMeetMe?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytic-group.interface.js","sourceRoot":"","sources":["../../src/types/analytic-group.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-group.interface.js","sourceRoot":"","sources":["../../src/types/chat-group.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnalyticGroup } from './analytic-group.interface';
|
|
2
|
+
import { VisibilityGroup } from './visibility-group.interface';
|
|
3
|
+
export interface DefaultVisibility {
|
|
4
|
+
name: string;
|
|
5
|
+
exhibitor?: VisibilityGroup;
|
|
6
|
+
visitor?: VisibilityGroup;
|
|
7
|
+
sponsor?: VisibilityGroup;
|
|
8
|
+
RFQ?: VisibilityGroup;
|
|
9
|
+
offer?: VisibilityGroup;
|
|
10
|
+
analyticVisitor?: AnalyticGroup;
|
|
11
|
+
analyticSponsor?: AnalyticGroup;
|
|
12
|
+
analyticExhibitor?: AnalyticGroup;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-visibility.interface.js","sourceRoot":"","sources":["../../src/types/default-visibility.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-presigned-url.interface.js","sourceRoot":"","sources":["../../src/types/download-presigned-url.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnalyticGroup } from './analytic-group.interface';
|
|
2
|
+
import { ChatGroup } from './chat-group.interface';
|
|
3
|
+
import { VisibilityGroup } from './visibility-group.interface';
|
|
4
|
+
export interface GroupVisibility {
|
|
5
|
+
name: string;
|
|
6
|
+
groups: string[];
|
|
7
|
+
visibility?: VisibilityGroup;
|
|
8
|
+
chat?: ChatGroup;
|
|
9
|
+
offer?: boolean;
|
|
10
|
+
RFQ?: boolean;
|
|
11
|
+
requestMeeting?: boolean;
|
|
12
|
+
analytics?: AnalyticGroup;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-visibility.interface.js","sourceRoot":"","sources":["../../src/types/group-visibility.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-user.interface.js","sourceRoot":"","sources":["../../src/types/header-user.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-group.interface.js","sourceRoot":"","sources":["../../src/types/match-group.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.interface.js","sourceRoot":"","sources":["../../src/types/match.interface.ts"],"names":[],"mappings":""}
|
|
@@ -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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MeetingType = void 0;
|
|
4
|
+
var MeetingType;
|
|
5
|
+
(function (MeetingType) {
|
|
6
|
+
MeetingType["IN_PERSON"] = "In-person";
|
|
7
|
+
MeetingType["ZOOM"] = "Zoom";
|
|
8
|
+
MeetingType["TEAMS"] = "Teams";
|
|
9
|
+
MeetingType["ALADDIN_MEETING"] = "Aladdin Meeting";
|
|
10
|
+
})(MeetingType = exports.MeetingType || (exports.MeetingType = {}));
|
|
11
|
+
//# sourceMappingURL=meeting-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-type.enum.js","sourceRoot":"","sources":["../../src/types/meeting-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,kDAAmC,CAAA;AACrC,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum NotificationEvent {
|
|
2
|
+
INFORMATIONAL_MESSAGE = "InformationMessage",
|
|
3
|
+
NEW_REQUEST_MEETING = "NewRequestMeeting",
|
|
4
|
+
ACCEPT_REQUEST_MEETING = "AcceptRequestMeeting",
|
|
5
|
+
REJECT_REQUEST_MEETING = "RejectRequestMeeting",
|
|
6
|
+
RESCHEDULE_REQUEST_MEETING = "RescheduleRequestMeeting",
|
|
7
|
+
CANCEL_REQUEST_MEETING = "CancelRequestMeeting",
|
|
8
|
+
UPDATE_REQUEST_MEETING = "UpdateRequestMeeting",
|
|
9
|
+
CONFERENCE_AGENDA_SESSION_REMINDER = "ConferenceAgendaSessionReminder",
|
|
10
|
+
SURVEY_NOTIFICATION = "SurveyNotificaiton",
|
|
11
|
+
MEETING_START_SOON = "MeetingStartSoon",
|
|
12
|
+
SCHEDULE_MEETING = "ScheduleMeeting",
|
|
13
|
+
RESCHEDULE_MEETING = "RescheduleMeeting",
|
|
14
|
+
CANCEL_MEETING = "CancelMeeting",
|
|
15
|
+
REMINDER_MESSAGE = "ReminderMessage"
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationEvent = void 0;
|
|
4
|
+
var NotificationEvent;
|
|
5
|
+
(function (NotificationEvent) {
|
|
6
|
+
NotificationEvent["INFORMATIONAL_MESSAGE"] = "InformationMessage";
|
|
7
|
+
NotificationEvent["NEW_REQUEST_MEETING"] = "NewRequestMeeting";
|
|
8
|
+
NotificationEvent["ACCEPT_REQUEST_MEETING"] = "AcceptRequestMeeting";
|
|
9
|
+
NotificationEvent["REJECT_REQUEST_MEETING"] = "RejectRequestMeeting";
|
|
10
|
+
NotificationEvent["RESCHEDULE_REQUEST_MEETING"] = "RescheduleRequestMeeting";
|
|
11
|
+
NotificationEvent["CANCEL_REQUEST_MEETING"] = "CancelRequestMeeting";
|
|
12
|
+
NotificationEvent["UPDATE_REQUEST_MEETING"] = "UpdateRequestMeeting";
|
|
13
|
+
NotificationEvent["CONFERENCE_AGENDA_SESSION_REMINDER"] = "ConferenceAgendaSessionReminder";
|
|
14
|
+
NotificationEvent["SURVEY_NOTIFICATION"] = "SurveyNotificaiton";
|
|
15
|
+
NotificationEvent["MEETING_START_SOON"] = "MeetingStartSoon";
|
|
16
|
+
NotificationEvent["SCHEDULE_MEETING"] = "ScheduleMeeting";
|
|
17
|
+
NotificationEvent["RESCHEDULE_MEETING"] = "RescheduleMeeting";
|
|
18
|
+
NotificationEvent["CANCEL_MEETING"] = "CancelMeeting";
|
|
19
|
+
NotificationEvent["REMINDER_MESSAGE"] = "ReminderMessage";
|
|
20
|
+
})(NotificationEvent = exports.NotificationEvent || (exports.NotificationEvent = {}));
|
|
21
|
+
//# sourceMappingURL=notification-event.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-event.enum.js","sourceRoot":"","sources":["../../src/types/notification-event.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAeX;AAfD,WAAY,iBAAiB;IAC3B,iEAA4C,CAAA;IAC5C,8DAAyC,CAAA;IACzC,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,4EAAuD,CAAA;IACvD,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,2FAAsE,CAAA;IACtE,+DAA0C,CAAA;IAC1C,4DAAuC,CAAA;IACvC,yDAAoC,CAAA;IACpC,6DAAwC,CAAA;IACxC,qDAAgC,CAAA;IAChC,yDAAoC,CAAA;AACtC,CAAC,EAfW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAe5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["EMAIL"] = "Email";
|
|
7
|
+
NotificationType["PUSH_NOTIFICATION"] = "PushNotification";
|
|
8
|
+
NotificationType["SMS"] = "SMS";
|
|
9
|
+
NotificationType["SYSTEM"] = "System";
|
|
10
|
+
})(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
|
|
11
|
+
//# sourceMappingURL=notification-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-type.enum.js","sourceRoot":"","sources":["../../src/types/notification-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,0DAAsC,CAAA;IACtC,+BAAW,CAAA;IACX,qCAAiB,CAAA;AACnB,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operationTypes = void 0;
|
|
4
|
+
var operationTypes;
|
|
5
|
+
(function (operationTypes) {
|
|
6
|
+
operationTypes["CREATE"] = "create";
|
|
7
|
+
operationTypes["UPDATE"] = "update";
|
|
8
|
+
operationTypes["DELETE"] = "delete";
|
|
9
|
+
})(operationTypes = exports.operationTypes || (exports.operationTypes = {}));
|
|
10
|
+
//# sourceMappingURL=operation-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-types.js","sourceRoot":"","sources":["../../src/types/operation-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-result.interface.js","sourceRoot":"","sources":["../../src/types/read-result.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-input-data.interface.js","sourceRoot":"","sources":["../../src/types/update-input-data.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-presigned-url.interface.js","sourceRoot":"","sources":["../../src/types/upload-presigned-url.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-invitations.interface.js","sourceRoot":"","sources":["../../src/types/user-invitations.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserRole = void 0;
|
|
4
|
+
var UserRole;
|
|
5
|
+
(function (UserRole) {
|
|
6
|
+
UserRole["ADMIN"] = "Admin";
|
|
7
|
+
UserRole["MANAGER"] = "Manager";
|
|
8
|
+
UserRole["OPERATION"] = "Operation";
|
|
9
|
+
UserRole["ONGROUND"] = "Onground";
|
|
10
|
+
UserRole["USER"] = "User";
|
|
11
|
+
})(UserRole = exports.UserRole || (exports.UserRole = {}));
|
|
12
|
+
//# sourceMappingURL=user-role.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-role.enum.js","sourceRoot":"","sources":["../../src/types/user-role.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;AACf,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserType = void 0;
|
|
4
|
+
var UserType;
|
|
5
|
+
(function (UserType) {
|
|
6
|
+
UserType["ADMIN"] = "Admin";
|
|
7
|
+
UserType["ORGANIZER"] = "Organizer";
|
|
8
|
+
UserType["USER"] = "User";
|
|
9
|
+
})(UserType = exports.UserType || (exports.UserType = {}));
|
|
10
|
+
//# sourceMappingURL=user-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-type.enum.js","sourceRoot":"","sources":["../../src/types/user-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visibility-group.interface.js","sourceRoot":"","sources":["../../src/types/visibility-group.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createDefaultDirectories: (requiredDirs: any) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDefaultDirectories = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const createDefaultDirectories = (requiredDirs) => {
|
|
6
|
+
const initialDirectory = './uploads';
|
|
7
|
+
if (!fs.existsSync(initialDirectory)) {
|
|
8
|
+
fs.mkdirSync(initialDirectory);
|
|
9
|
+
}
|
|
10
|
+
const createFiles = (requiredDirs, initialRoute) => {
|
|
11
|
+
requiredDirs.forEach(file => {
|
|
12
|
+
let finalRoute = `${initialRoute}/${file.name}`;
|
|
13
|
+
if (!fs.existsSync(finalRoute)) {
|
|
14
|
+
fs.mkdirSync(finalRoute);
|
|
15
|
+
}
|
|
16
|
+
if (file.subDirs.length) {
|
|
17
|
+
createFiles(file.subDirs, finalRoute);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
createFiles(requiredDirs, initialDirectory);
|
|
22
|
+
};
|
|
23
|
+
exports.createDefaultDirectories = createDefaultDirectories;
|
|
24
|
+
//# sourceMappingURL=create-default-directories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-default-directories.js","sourceRoot":"","sources":["../../src/utils/create-default-directories.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AAElB,MAAM,wBAAwB,GAAG,CAAC,YAAY,EAAE,EAAE;IACrD,MAAM,gBAAgB,GAAG,WAAW,CAAA;IACtC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE;QACpC,EAAE,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;KAC/B;IAED,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,EAAE;QACjD,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAC1B,IAAI,UAAU,GAAG,GAAG,YAAY,IAAI,IAAI,CAAC,IAAI,EAAE,CAAA;YAC/C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;gBAC9B,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;aACzB;YAED,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;gBACvB,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;aACtC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAA;IACD,WAAW,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;AAC7C,CAAC,CAAA;AAnBY,QAAA,wBAAwB,4BAmBpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function equalArrayObject(arr1: object[], arr2: object[]): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.equalArrayObject = void 0;
|
|
4
|
+
const equal_object_1 = require("./equal-object");
|
|
5
|
+
function equalArrayObject(arr1, arr2) {
|
|
6
|
+
return (arr1.length === arr2.length &&
|
|
7
|
+
arr1.every((o, idx) => equal_object_1.equalObject(o, arr2[idx])));
|
|
8
|
+
}
|
|
9
|
+
exports.equalArrayObject = equalArrayObject;
|
|
10
|
+
//# sourceMappingURL=equal-array-object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equal-array-object.js","sourceRoot":"","sources":["../../src/utils/equal-array-object.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,SAAgB,gBAAgB,CAAC,IAAc,EAAE,IAAc;IAC7D,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;QAC3B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,0BAAW,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAClD,CAAC;AACJ,CAAC;AALD,4CAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function equalObject(obj1: object, obj2: object): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.equalObject = void 0;
|
|
4
|
+
function equalObject(obj1, obj2) {
|
|
5
|
+
return (Object.keys(obj1).length === Object.keys(obj2).length &&
|
|
6
|
+
Object.keys(obj1).every((p) => obj1[p] === obj2[p]));
|
|
7
|
+
}
|
|
8
|
+
exports.equalObject = equalObject;
|
|
9
|
+
//# sourceMappingURL=equal-object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equal-object.js","sourceRoot":"","sources":["../../src/utils/equal-object.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,IAAY,EAAE,IAAY;IACpD,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM;QACrD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CACpD,CAAC;AACJ,CAAC;AALD,kCAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseQuery(filterDto: any): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseQuery = void 0;
|
|
4
|
+
function parseQuery(filterDto) {
|
|
5
|
+
if (typeof filterDto === 'object' && (filterDto === null || filterDto === void 0 ? void 0 : filterDto.order)) {
|
|
6
|
+
const newDto = JSON.parse(filterDto.order);
|
|
7
|
+
filterDto.order = newDto;
|
|
8
|
+
}
|
|
9
|
+
if (filterDto === null || filterDto === void 0 ? void 0 : filterDto.join) {
|
|
10
|
+
const newDto = JSON.parse(filterDto.join);
|
|
11
|
+
filterDto.join = newDto;
|
|
12
|
+
}
|
|
13
|
+
if ((filterDto === null || filterDto === void 0 ? void 0 : filterDto.where) && typeof filterDto.where === 'string') {
|
|
14
|
+
const newDto = JSON.parse(filterDto.where);
|
|
15
|
+
filterDto.where = newDto;
|
|
16
|
+
}
|
|
17
|
+
if ((filterDto === null || filterDto === void 0 ? void 0 : filterDto.where) && Array.isArray(filterDto.where)) {
|
|
18
|
+
const newWhere = filterDto.where.map((item) => {
|
|
19
|
+
if (typeof item === 'string') {
|
|
20
|
+
JSON.parse(item);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return item;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
filterDto.where = newWhere;
|
|
27
|
+
}
|
|
28
|
+
return filterDto;
|
|
29
|
+
}
|
|
30
|
+
exports.parseQuery = parseQuery;
|
|
31
|
+
//# sourceMappingURL=parse-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-query.js","sourceRoot":"","sources":["../../src/utils/parse-query.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,SAAc;IACvC,IAAI,OAAO,SAAS,KAAK,QAAQ,KAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,CAAA,EAAE;QACrD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC3C,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC;KAC1B;IACD,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,EAAE;QACnB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC1C,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC;KACzB;IACD,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,KAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE;QAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC3C,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC;KAC1B;IACD,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,KAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;QACtD,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC5C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;gBAC5B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aAClB;iBAAM;gBACL,OAAO,IAAI,CAAC;aACb;QACH,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,KAAK,GAAG,QAAQ,CAAC;KAC5B;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAxBD,gCAwBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function projection(allProjectionFieldArray: string[], necessaryProjectionArray: string[]): {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projection = void 0;
|
|
4
|
+
function projection(allProjectionFieldArray, necessaryProjectionArray) {
|
|
5
|
+
try {
|
|
6
|
+
const projection = {};
|
|
7
|
+
let returnAll = true;
|
|
8
|
+
Array.isArray(necessaryProjectionArray) &&
|
|
9
|
+
necessaryProjectionArray.length &&
|
|
10
|
+
necessaryProjectionArray.map((key) => {
|
|
11
|
+
if (allProjectionFieldArray.includes(key)) {
|
|
12
|
+
returnAll = false;
|
|
13
|
+
projection[key] = true;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
if (returnAll) {
|
|
17
|
+
allProjectionFieldArray.map((key) => (projection[key] = true));
|
|
18
|
+
}
|
|
19
|
+
return projection;
|
|
20
|
+
}
|
|
21
|
+
catch (err) {
|
|
22
|
+
throw err;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.projection = projection;
|
|
26
|
+
//# sourceMappingURL=projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projection.js","sourceRoot":"","sources":["../../src/utils/projection.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CACxB,uBAAiC,EACjC,wBAAkC;IAElC,IAAI;QACF,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,SAAS,GAAG,IAAI,CAAC;QAErB,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;YACrC,wBAAwB,CAAC,MAAM;YAC/B,wBAAwB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnC,IAAI,uBAAuB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBACzC,SAAS,GAAG,KAAK,CAAC;oBAClB,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;iBACxB;YACH,CAAC,CAAC,CAAC;QAEL,IAAI,SAAS,EAAE;YACb,uBAAuB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;SAChE;QAED,OAAO,UAAU,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,GAAG,CAAC;KACX;AACH,CAAC;AAzBD,gCAyBC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTimezone = exports.setTimezone = void 0;
|
|
4
|
+
function setTimezone(tz) {
|
|
5
|
+
if (tz)
|
|
6
|
+
return process.env.TZ = tz;
|
|
7
|
+
else
|
|
8
|
+
return process.env.TZ = 'Etc/GMT';
|
|
9
|
+
}
|
|
10
|
+
exports.setTimezone = setTimezone;
|
|
11
|
+
function getTimezone() {
|
|
12
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
13
|
+
}
|
|
14
|
+
exports.getTimezone = getTimezone;
|
|
15
|
+
//# sourceMappingURL=timezone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone.js","sourceRoot":"","sources":["../../src/utils/timezone.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,EAAW;IACnC,IAAI,EAAE;QAAE,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;;QAC9B,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAC;AAC3C,CAAC;AAHD,kCAGC;AAED,SAAgB,WAAW;IACvB,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC;AAC5D,CAAC;AAFD,kCAEC"}
|