@openinc/parse-server-opendash 4.3.1 → 4.4.0
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/dist/features/openservice/alarms/AlarmEvent.d.ts +40 -0
- package/dist/features/openservice/alarms/alarmIdentity.d.ts +39 -0
- package/dist/features/openservice/{serviceTickets/alarmActions/functions/alarmTicketFields.js → alarms/alarmIdentity.js} +55 -57
- package/dist/features/openservice/alarms/index.d.ts +30 -0
- package/dist/features/openservice/alarms/index.js +52 -0
- package/dist/features/openservice/alarms/resolveEquipment.d.ts +17 -0
- package/dist/features/openservice/alarms/resolveEquipment.js +42 -0
- package/dist/features/openservice/alarms/schedule/AlarmScheduleTypes.d.ts +88 -0
- package/dist/features/openservice/alarms/schedule/AlarmScheduleTypes.js +29 -0
- package/dist/features/openservice/alarms/schedule/alarmScheduleFields.d.ts +27 -0
- package/dist/features/openservice/alarms/schedule/alarmScheduleFields.js +56 -0
- package/dist/features/openservice/alarms/schedule/createAlarmSchedule.d.ts +37 -0
- package/dist/features/openservice/alarms/schedule/createAlarmSchedule.js +181 -0
- package/dist/features/openservice/alarms/schedule/ensureAlarmScheduleAction.d.ts +22 -0
- package/dist/features/openservice/alarms/schedule/ensureAlarmScheduleAction.js +127 -0
- package/dist/features/openservice/alarms/schedule/listAlarmTriggers.d.ts +41 -0
- package/dist/features/openservice/alarms/schedule/listAlarmTriggers.js +137 -0
- package/dist/features/openservice/alarms/tenantForSecret.d.ts +13 -0
- package/dist/features/openservice/alarms/tenantForSecret.js +45 -0
- package/dist/features/openservice/{serviceTickets/alarmActions/types → alarms/ticket}/AlarmTicketTypes.d.ts +0 -26
- package/dist/features/openservice/alarms/ticket/alarmTicketFields.d.ts +18 -0
- package/dist/features/openservice/alarms/ticket/alarmTicketFields.js +37 -0
- package/dist/features/openservice/{serviceTickets/alarmActions/service → alarms/ticket}/createAlarmTicket.d.ts +7 -7
- package/dist/features/openservice/{serviceTickets/alarmActions/service → alarms/ticket}/createAlarmTicket.js +15 -69
- package/dist/features/openservice/{serviceTickets/alarmActions/service → alarms/ticket}/ensureAlarmTicketAction.js +2 -2
- package/dist/features/openservice/functions/assignUsersAndRoles.d.ts +5 -0
- package/dist/features/openservice/functions/assignUsersAndRoles.js +5 -0
- package/dist/features/openservice/functions/getSourceMetaMap.d.ts +4 -0
- package/dist/features/openservice/functions/getSourceMetaMap.js +4 -0
- package/dist/features/openservice/functions/getTicketObject.d.ts +5 -0
- package/dist/features/openservice/functions/getTicketObject.js +5 -0
- package/dist/features/openservice/functions/saveDescription.d.ts +5 -0
- package/dist/features/openservice/functions/saveDescription.js +5 -0
- package/dist/features/openservice/functions/saveDowntime.d.ts +5 -0
- package/dist/features/openservice/functions/saveDowntime.js +5 -0
- package/dist/features/openservice/functions/saveDuedate.d.ts +5 -0
- package/dist/features/openservice/functions/saveDuedate.js +5 -0
- package/dist/features/openservice/functions/saveFrequency.d.ts +5 -0
- package/dist/features/openservice/functions/saveFrequency.js +5 -0
- package/dist/features/openservice/functions/saveIssuecategory.d.ts +10 -0
- package/dist/features/openservice/functions/saveIssuecategory.js +10 -0
- package/dist/features/openservice/functions/saveMaterial.d.ts +5 -0
- package/dist/features/openservice/functions/saveMaterial.js +5 -0
- package/dist/features/openservice/functions/saveMessage.d.ts +5 -0
- package/dist/features/openservice/functions/saveMessage.js +5 -0
- package/dist/features/openservice/functions/savePriority.d.ts +5 -0
- package/dist/features/openservice/functions/savePriority.js +5 -0
- package/dist/features/openservice/functions/saveProject.d.ts +5 -0
- package/dist/features/openservice/functions/saveProject.js +5 -0
- package/dist/features/openservice/functions/saveRestriction.d.ts +5 -0
- package/dist/features/openservice/functions/saveRestriction.js +5 -0
- package/dist/features/openservice/functions/saveSource.d.ts +5 -0
- package/dist/features/openservice/functions/saveSource.js +5 -0
- package/dist/features/openservice/functions/saveState.d.ts +10 -0
- package/dist/features/openservice/functions/saveState.js +10 -0
- package/dist/features/openservice/functions/saveTicketMeta.d.ts +5 -0
- package/dist/features/openservice/functions/saveTicketMeta.js +5 -0
- package/dist/features/openservice/functions/saveTicketTitle.d.ts +5 -0
- package/dist/features/openservice/functions/saveTicketTitle.js +5 -0
- package/dist/features/openservice/index.d.ts +15 -0
- package/dist/features/openservice/index.js +15 -0
- package/dist/features/openservice/init.d.ts +9 -0
- package/dist/features/openservice/init.js +15 -3
- package/dist/features/openservice/issuecategory/initIssuecategory.d.ts +4 -0
- package/dist/features/openservice/issuecategory/initIssuecategory.js +4 -0
- package/dist/features/openservice/kanbanState/initKanbanStates.d.ts +10 -0
- package/dist/features/openservice/kanbanState/initKanbanStates.js +10 -0
- package/dist/features/openservice/messages/initMessages.d.ts +3 -0
- package/dist/features/openservice/messages/initMessages.js +3 -0
- package/dist/features/openservice/messages/removeLatestMessage.d.ts +2 -0
- package/dist/features/openservice/messages/removeLatestMessage.js +2 -0
- package/dist/features/openservice/schedules/calendarSync/Access.d.ts +12 -0
- package/dist/features/openservice/schedules/calendarSync/{service/CalendarManager.d.ts → CalendarManager.d.ts} +7 -2
- package/dist/features/openservice/schedules/calendarSync/{service/CalendarManager.js → CalendarManager.js} +6 -1
- package/dist/features/openservice/schedules/calendarSync/{service/CalendarSyncPoller.d.ts → CalendarSyncPoller.d.ts} +6 -1
- package/dist/features/openservice/schedules/calendarSync/{service/CalendarSyncPoller.js → CalendarSyncPoller.js} +7 -2
- package/dist/features/openservice/schedules/calendarSync/ConfigValues.d.ts +13 -0
- package/dist/features/openservice/schedules/calendarSync/{types/Event.d.ts → Event.d.ts} +7 -0
- package/dist/features/openservice/schedules/calendarSync/Event.js +9 -0
- package/dist/features/openservice/schedules/calendarSync/calendarMetaHelper.d.ts +76 -0
- package/dist/features/openservice/schedules/calendarSync/{service/calendarMetaHelper.js → calendarMetaHelper.js} +31 -1
- package/dist/features/openservice/schedules/calendarSync/eventToSchedule.d.ts +37 -0
- package/dist/features/openservice/schedules/calendarSync/{functions/eventToSchedule.js → eventToSchedule.js} +5 -0
- package/dist/features/openservice/schedules/calendarSync/scheduleToEvent.d.ts +9 -0
- package/dist/features/openservice/schedules/calendarSync/{functions/scheduleToEvent.js → scheduleToEvent.js} +5 -0
- package/dist/features/openservice/schedules/{mappings/checkStatus.d.ts → checkStatus.d.ts} +3 -0
- package/dist/features/openservice/schedules/{mappings/checkStatus.js → checkStatus.js} +4 -1
- package/dist/features/openservice/schedules/getScheduleLink.d.ts +3 -0
- package/dist/features/openservice/schedules/getScheduleLink.js +3 -0
- package/dist/features/openservice/schedules/initSchedulesFeature.d.ts +4 -0
- package/dist/features/openservice/schedules/initSchedulesFeature.js +5 -1
- package/dist/features/openservice/schedules/reassignScheduleExecutions.d.ts +5 -0
- package/dist/features/openservice/schedules/{mappings/reassignScheduleExecutions.js → reassignScheduleExecutions.js} +5 -1
- package/dist/features/openservice/serviceSchedules/calendarSync/{service/ServiceCalendarSyncPoller.d.ts → ServiceCalendarSyncPoller.d.ts} +26 -1
- package/dist/features/openservice/serviceSchedules/calendarSync/{service/ServiceCalendarSyncPoller.js → ServiceCalendarSyncPoller.js} +94 -20
- package/dist/features/openservice/serviceSchedules/calendarSync/{functions/eventToPlan.d.ts → eventToPlan.d.ts} +2 -2
- package/dist/features/openservice/serviceSchedules/calendarSync/index.d.ts +8 -8
- package/dist/features/openservice/serviceSchedules/calendarSync/index.js +7 -7
- package/dist/features/openservice/serviceSchedules/calendarSync/{functions/outlookRecurrence.d.ts → outlookRecurrence.d.ts} +2 -2
- package/dist/features/openservice/serviceSchedules/calendarSync/{functions/planToEvent.d.ts → planToEvent.d.ts} +3 -3
- package/dist/features/openservice/serviceSchedules/calendarSync/{service/serviceCalendarMeta.d.ts → serviceCalendarMeta.d.ts} +3 -3
- package/dist/features/openservice/serviceSchedules/calendarSync/{service/serviceCalendarMeta.js → serviceCalendarMeta.js} +1 -1
- package/dist/features/openservice/serviceSchedules/calendarSync/{service/syncPlanToCalendar.d.ts → syncPlanToCalendar.d.ts} +3 -3
- package/dist/features/openservice/serviceSchedules/calendarSync/{service/syncPlanToCalendar.js → syncPlanToCalendar.js} +5 -5
- package/dist/features/openservice/serviceSchedules/initServiceSchedulesFeature.js +2 -2
- package/dist/features/openservice/ticket/getTicketLink.d.ts +2 -0
- package/dist/features/openservice/ticket/getTicketLink.js +2 -0
- package/dist/features/openservice/ticket/initTicket.d.ts +2 -0
- package/dist/features/openservice/ticket/initTicket.js +2 -0
- package/dist/features/openservice/types/Material.d.ts +4 -0
- package/dist/features/openservice/types/MessageData.d.ts +8 -0
- package/dist/features/openservice/types/OpenserviceTranslationKeys.d.ts +4 -0
- package/dist/features/openservice/types/OpenserviceTranslationKeys.js +4 -0
- package/dist/features/openservice/types/SaveValues.d.ts +4 -0
- package/dist/features/openservice/types/ScheduleTypes.d.ts +24 -0
- package/dist/features/openservice/types/TicketData.d.ts +4 -0
- package/dist/features/openservice/types/TicketMeta.d.ts +28 -0
- package/dist/features/openservice/types/TicketMeta.js +4 -0
- package/dist/functions/openinc-openservice-alarm-create-schedule.d.ts +25 -0
- package/dist/functions/openinc-openservice-alarm-create-schedule.js +63 -0
- package/dist/functions/openinc-openservice-alarm-create-ticket.js +2 -2
- package/dist/functions/openinc-openservice-alarm-triggers.d.ts +13 -0
- package/dist/functions/openinc-openservice-alarm-triggers.js +29 -0
- package/dist/functions/openinc-openservice-get-sourcemeta-map.js +8 -0
- package/dist/functions/openinc-openservice-provider-access.d.ts +1 -0
- package/dist/functions/openinc-openservice-provider-access.js +79 -0
- package/dist/functions/openinc-openservice-save-ticket-data.js +11 -0
- package/dist/functions/openinc-openservice-ticket-data.js +9 -0
- package/dist/hooks/Maintenance_Schedule.js +3 -3
- package/dist/hooks/Service_Schedule.js +11 -11
- package/dist/hooks/Service_Schedule_Template.js +6 -6
- package/dist/hooks/Service_Ticket.js +12 -1
- package/dist/scripts/migration/lib/ticket.js +3 -0
- package/dist/types/Contact.d.ts +3 -0
- package/dist/types/Contact.js +6 -0
- package/dist/types/Service_Schedule.d.ts +3 -0
- package/dist/types/Service_Schedule.js +6 -0
- package/package.json +1 -1
- package/schema/Contact.json +5 -0
- package/schema/Service_Schedule.json +4 -0
- package/schema/Service_TicketCounter.json +10 -22
- package/dist/features/openservice/schedules/calendarSync/functions/eventToSchedule.d.ts +0 -17
- package/dist/features/openservice/schedules/calendarSync/functions/scheduleToEvent.d.ts +0 -4
- package/dist/features/openservice/schedules/calendarSync/service/calendarMetaHelper.d.ts +0 -36
- package/dist/features/openservice/schedules/calendarSync/types/Access.d.ts +0 -9
- package/dist/features/openservice/schedules/calendarSync/types/ConfigValues.d.ts +0 -8
- package/dist/features/openservice/schedules/mappings/reassignScheduleExecutions.d.ts +0 -1
- package/dist/features/openservice/serviceSchedules/acl/index.d.ts +0 -1
- package/dist/features/openservice/serviceSchedules/acl/index.js +0 -6
- package/dist/features/openservice/serviceTickets/alarmActions/functions/alarmTicketFields.d.ts +0 -35
- package/dist/features/openservice/serviceTickets/alarmActions/index.d.ts +0 -7
- package/dist/features/openservice/serviceTickets/alarmActions/index.js +0 -16
- /package/dist/features/openservice/{schedules/calendarSync/types/Access.js → alarms/AlarmEvent.js} +0 -0
- /package/dist/features/openservice/{serviceTickets/alarmActions/types → alarms/ticket}/AlarmTicketTypes.js +0 -0
- /package/dist/features/openservice/{serviceTickets/alarmActions/service → alarms/ticket}/ensureAlarmTicketAction.d.ts +0 -0
- /package/dist/features/openservice/schedules/calendarSync/{types/ConfigValues.js → Access.js} +0 -0
- /package/dist/features/openservice/schedules/calendarSync/{types/Event.js → ConfigValues.js} +0 -0
- /package/dist/features/openservice/serviceSchedules/{acl/assignmentAcl.d.ts → assignmentAcl.d.ts} +0 -0
- /package/dist/features/openservice/serviceSchedules/{acl/assignmentAcl.js → assignmentAcl.js} +0 -0
- /package/dist/features/openservice/serviceSchedules/calendarSync/{types/ServiceSyncTypes.d.ts → ServiceSyncTypes.d.ts} +0 -0
- /package/dist/features/openservice/serviceSchedules/calendarSync/{types/ServiceSyncTypes.js → ServiceSyncTypes.js} +0 -0
- /package/dist/features/openservice/serviceSchedules/calendarSync/{functions/eventToPlan.js → eventToPlan.js} +0 -0
- /package/dist/features/openservice/serviceSchedules/calendarSync/{functions/outlookRecurrence.js → outlookRecurrence.js} +0 -0
- /package/dist/features/openservice/serviceSchedules/calendarSync/{functions/planToEvent.js → planToEvent.js} +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.init = init;
|
|
7
|
+
const node_1 = __importDefault(require("parse/node"));
|
|
8
|
+
const index_js_1 = require("../features/openservice/alarms/index.js");
|
|
9
|
+
const index_js_2 = require("../types/index.js");
|
|
10
|
+
/**
|
|
11
|
+
* Schedule a one-off maintenance appointment for a fired alarm.
|
|
12
|
+
*
|
|
13
|
+
* The receiving end of the `openservice-create-schedule` alarm action: an alarm
|
|
14
|
+
* watches a sensor, the rule breaks, its `OD3_AlarmWebhook` POSTs here with the
|
|
15
|
+
* alarm's data and the settings somebody filled into the action's form — above
|
|
16
|
+
* all the maintenance template to use.
|
|
17
|
+
*
|
|
18
|
+
* **Authentication** — one of:
|
|
19
|
+
*
|
|
20
|
+
* - the **master key** (server-to-server inside the stack), then `tenantId`
|
|
21
|
+
* must be given;
|
|
22
|
+
* - a **shared secret** matching an `OPENSERVICE_ALARM_SCHEDULE_SECRET` config
|
|
23
|
+
* row, which also establishes the tenant. An external executor is not trusted
|
|
24
|
+
* to name a tenant, so the secret does it.
|
|
25
|
+
*
|
|
26
|
+
* A logged-in user is deliberately *not* enough: this is a machine endpoint,
|
|
27
|
+
* and a browser session should not be able to fabricate maintenance plans.
|
|
28
|
+
*
|
|
29
|
+
* Params: `{ event, params?, secret?, tenantId? }`.
|
|
30
|
+
* Returns `{ scheduleId, created, origin, due, equipmentId?, templateId? }` —
|
|
31
|
+
* `created: false` means an unperformed appointment for this alarm already
|
|
32
|
+
* existed (see `createAlarmSchedule`).
|
|
33
|
+
*/
|
|
34
|
+
async function init(name) {
|
|
35
|
+
node_1.default.Cloud.define(name, async (request) => {
|
|
36
|
+
const { event, params, secret, tenantId } = request.params;
|
|
37
|
+
if (!event || typeof event !== "object") {
|
|
38
|
+
throw new node_1.default.Error(node_1.default.Error.INVALID_QUERY, `${name} needs an "event" object describing the alarm`);
|
|
39
|
+
}
|
|
40
|
+
const tenant = request.master
|
|
41
|
+
? await tenantById(tenantId)
|
|
42
|
+
: await (0, index_js_1.tenantForAlarmSchedule)(typeof secret === "string" ? secret : "");
|
|
43
|
+
if (!tenant) {
|
|
44
|
+
// Same answer for "wrong secret" and "no such tenant": a caller
|
|
45
|
+
// guessing secrets learns nothing from the difference.
|
|
46
|
+
throw new node_1.default.Error(node_1.default.Error.OPERATION_FORBIDDEN, `${name}: unknown tenant or invalid secret`);
|
|
47
|
+
}
|
|
48
|
+
const result = await (0, index_js_1.createAlarmSchedule)(tenant, event, params ?? {});
|
|
49
|
+
console.log(`[${name}] ${result.created ? "created" : "reused"} schedule ` +
|
|
50
|
+
`${result.scheduleId} for ${result.origin}, due ${result.due}` +
|
|
51
|
+
(result.equipmentId ? ` (machine ${result.equipmentId})` : ""));
|
|
52
|
+
return result;
|
|
53
|
+
},
|
|
54
|
+
// No `requireUser`: the callers are machines, authenticated above.
|
|
55
|
+
{});
|
|
56
|
+
}
|
|
57
|
+
async function tenantById(tenantId) {
|
|
58
|
+
if (!tenantId)
|
|
59
|
+
return undefined;
|
|
60
|
+
return ((await new node_1.default.Query(index_js_2.Tenant)
|
|
61
|
+
.equalTo("objectId", tenantId)
|
|
62
|
+
.first({ useMasterKey: true })) ?? undefined);
|
|
63
|
+
}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.init = init;
|
|
7
7
|
const node_1 = __importDefault(require("parse/node"));
|
|
8
|
-
const index_js_1 = require("../features/openservice/
|
|
8
|
+
const index_js_1 = require("../features/openservice/alarms/index.js");
|
|
9
9
|
const index_js_2 = require("../types/index.js");
|
|
10
10
|
/**
|
|
11
11
|
* Raise an open.SERVICE ticket for a fired alarm.
|
|
@@ -39,7 +39,7 @@ async function init(name) {
|
|
|
39
39
|
}
|
|
40
40
|
const tenant = request.master
|
|
41
41
|
? await tenantById(tenantId)
|
|
42
|
-
: await (0, index_js_1.
|
|
42
|
+
: await (0, index_js_1.tenantForAlarmTicket)(typeof secret === "string" ? secret : "");
|
|
43
43
|
if (!tenant) {
|
|
44
44
|
// Same answer for "wrong secret" and "no such tenant": a caller
|
|
45
45
|
// guessing secrets learns nothing from the difference.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List the alarms in the caller's tenant that create maintenance plans.
|
|
3
|
+
*
|
|
4
|
+
* Unlike the two alarm endpoints next to it, this one is for a **person**:
|
|
5
|
+
* `requireUser`, and the tenant comes from their account rather than from a
|
|
6
|
+
* secret — a browser session must never be able to name a tenant it does not
|
|
7
|
+
* belong to.
|
|
8
|
+
*
|
|
9
|
+
* It needs the master key internally because `Alarm.beforeSave` makes alarms
|
|
10
|
+
* private per user (`denyTenantUserRead`); see `listAlarmTriggers` for why the
|
|
11
|
+
* plant-wide view is the only useful one.
|
|
12
|
+
*/
|
|
13
|
+
export declare function init(name: string): Promise<void>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.init = init;
|
|
7
|
+
const node_1 = __importDefault(require("parse/node"));
|
|
8
|
+
const index_js_1 = require("../features/openservice/alarms/index.js");
|
|
9
|
+
/**
|
|
10
|
+
* List the alarms in the caller's tenant that create maintenance plans.
|
|
11
|
+
*
|
|
12
|
+
* Unlike the two alarm endpoints next to it, this one is for a **person**:
|
|
13
|
+
* `requireUser`, and the tenant comes from their account rather than from a
|
|
14
|
+
* secret — a browser session must never be able to name a tenant it does not
|
|
15
|
+
* belong to.
|
|
16
|
+
*
|
|
17
|
+
* It needs the master key internally because `Alarm.beforeSave` makes alarms
|
|
18
|
+
* private per user (`denyTenantUserRead`); see `listAlarmTriggers` for why the
|
|
19
|
+
* plant-wide view is the only useful one.
|
|
20
|
+
*/
|
|
21
|
+
async function init(name) {
|
|
22
|
+
node_1.default.Cloud.define(name, async (request) => {
|
|
23
|
+
const user = request.user;
|
|
24
|
+
if (!user) {
|
|
25
|
+
throw new node_1.default.Error(node_1.default.Error.INVALID_SESSION_TOKEN, `${name} requires a logged-in user`);
|
|
26
|
+
}
|
|
27
|
+
return (0, index_js_1.listAlarmTriggers)(user);
|
|
28
|
+
}, { requireUser: true });
|
|
29
|
+
}
|
|
@@ -4,6 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.init = init;
|
|
7
|
+
/**
|
|
8
|
+
* Map v1 sources to their meta entries.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated open.SERVICE v1 endpoint (`Maintenance_SourceMeta`). v2 models
|
|
11
|
+
* machines as `OD3_Service_Equipment` and reads them directly.
|
|
12
|
+
*
|
|
13
|
+
* Kept because installations still holding v1 data call it.
|
|
14
|
+
*/
|
|
7
15
|
const node_1 = __importDefault(require("parse/node"));
|
|
8
16
|
const index_js_1 = require("../features/openservice/index.js");
|
|
9
17
|
async function init(name) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import Parse from "parse/node";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
// import {
|
|
5
|
+
// grantProviderAccess,
|
|
6
|
+
// revokeProviderAccess,
|
|
7
|
+
// } from "../features/openservice/serviceProviders/index.js";
|
|
8
|
+
// import {
|
|
9
|
+
// Permissions,
|
|
10
|
+
// requirePermission,
|
|
11
|
+
// } from "../features/permissions/index.js";
|
|
12
|
+
// import { Tenant, type _User } from "../types/index.js";
|
|
13
|
+
// /**
|
|
14
|
+
// * Grant or revoke an external service provider's access to one maintenance
|
|
15
|
+
// * plan.
|
|
16
|
+
// *
|
|
17
|
+
// * Params: `{ contactId, scheduleId, revoke? }`.
|
|
18
|
+
// *
|
|
19
|
+
// * **Who may call it.** A logged-in user holding `schedule_create` — the same
|
|
20
|
+
// * capability that lets somebody set a plan up in the first place. Creating an
|
|
21
|
+
// * account for a stranger and pointing it at a customer's plan is at least as
|
|
22
|
+
// * consequential as creating the plan, so it does not get a weaker gate; and
|
|
23
|
+
// * `requirePermission` means it is a real gate, not UI that can be walked
|
|
24
|
+
// * around by calling the function directly (GRENZEN §2).
|
|
25
|
+
// *
|
|
26
|
+
// * The tenant comes from the caller's account, never from a parameter.
|
|
27
|
+
// */
|
|
28
|
+
// export async function init(name: string) {
|
|
29
|
+
// Parse.Cloud.define(
|
|
30
|
+
// name,
|
|
31
|
+
// async (request) => {
|
|
32
|
+
// await requirePermission(
|
|
33
|
+
// {
|
|
34
|
+
// sessionToken: request.user?.getSessionToken(),
|
|
35
|
+
// master: request.master,
|
|
36
|
+
// },
|
|
37
|
+
// Permissions.SERVICE.schedule_create,
|
|
38
|
+
// "Granting service provider access requires schedule creation rights.",
|
|
39
|
+
// );
|
|
40
|
+
// const user = request.user as _User | undefined;
|
|
41
|
+
// const tenant = user?.get("tenant") as Tenant | undefined;
|
|
42
|
+
// if (!tenant) {
|
|
43
|
+
// throw new Parse.Error(
|
|
44
|
+
// Parse.Error.OPERATION_FORBIDDEN,
|
|
45
|
+
// `${name}: the calling user has no tenant`,
|
|
46
|
+
// );
|
|
47
|
+
// }
|
|
48
|
+
// const { contactId, scheduleId, revoke } = request.params as {
|
|
49
|
+
// contactId?: string;
|
|
50
|
+
// scheduleId?: string;
|
|
51
|
+
// revoke?: boolean;
|
|
52
|
+
// };
|
|
53
|
+
// if (!contactId || !scheduleId) {
|
|
54
|
+
// throw new Parse.Error(
|
|
55
|
+
// Parse.Error.INVALID_QUERY,
|
|
56
|
+
// `${name} needs "contactId" and "scheduleId"`,
|
|
57
|
+
// );
|
|
58
|
+
// }
|
|
59
|
+
// if (revoke) {
|
|
60
|
+
// const result = await revokeProviderAccess(
|
|
61
|
+
// tenant,
|
|
62
|
+
// contactId,
|
|
63
|
+
// scheduleId,
|
|
64
|
+
// );
|
|
65
|
+
// console.log(
|
|
66
|
+
// `[${name}] revoked contact ${contactId} from schedule ${scheduleId}`,
|
|
67
|
+
// );
|
|
68
|
+
// return result;
|
|
69
|
+
// }
|
|
70
|
+
// const result = await grantProviderAccess(tenant, contactId, scheduleId);
|
|
71
|
+
// console.log(
|
|
72
|
+
// `[${name}] granted contact ${contactId} on schedule ${scheduleId} ` +
|
|
73
|
+
// `as user ${result.userId}${result.created ? " (new account)" : ""}`,
|
|
74
|
+
// );
|
|
75
|
+
// return result;
|
|
76
|
+
// },
|
|
77
|
+
// { requireUser: true },
|
|
78
|
+
// );
|
|
79
|
+
// }
|
|
@@ -7,6 +7,17 @@ exports.getUsername = getUsername;
|
|
|
7
7
|
exports.init = init;
|
|
8
8
|
exports.saveTicketData = saveTicketData;
|
|
9
9
|
exports.serializeTicketData = serializeTicketData;
|
|
10
|
+
/**
|
|
11
|
+
* Write one or more fields of a v1 maintenance ticket.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated open.SERVICE v1 endpoint (`Maintenance_Ticket*`). v2 writes
|
|
14
|
+
* `OD3_Service_Ticket` from the frontend and lets the `Service_Ticket` hooks
|
|
15
|
+
* keep number, ACL, notifications and history — there is no v2 counterpart to
|
|
16
|
+
* this function, by design: a field-by-field save endpoint was the v1 way of
|
|
17
|
+
* doing what hooks now do on every write path.
|
|
18
|
+
*
|
|
19
|
+
* Kept because installations still holding v1 tickets call it.
|
|
20
|
+
*/
|
|
10
21
|
const node_1 = __importDefault(require("parse/node"));
|
|
11
22
|
const index_js_1 = require("../features/openservice/index.js");
|
|
12
23
|
const catchError_js_1 = require("../helper/catchError.js");
|
|
@@ -8,6 +8,15 @@ exports.getTicketData = getTicketData;
|
|
|
8
8
|
exports.getTicketMaterial = getTicketMaterial;
|
|
9
9
|
exports.getTicketSource = getTicketSource;
|
|
10
10
|
exports.arrayToDistinct = arrayToDistinct;
|
|
11
|
+
/**
|
|
12
|
+
* Read v1 maintenance tickets with filters.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated open.SERVICE v1 endpoint (`Maintenance_Ticket*`). v2 queries
|
|
15
|
+
* `OD3_Service_Ticket` directly — its ACL answers "who may see this", so a
|
|
16
|
+
* server-side read endpoint is no longer needed.
|
|
17
|
+
*
|
|
18
|
+
* Kept because installations still holding v1 tickets call it.
|
|
19
|
+
*/
|
|
11
20
|
const node_1 = __importDefault(require("parse/node"));
|
|
12
21
|
const catchError_js_1 = require("../helper/catchError.js");
|
|
13
22
|
const index_js_1 = require("../types/index.js");
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.init = init;
|
|
7
7
|
const node_1 = __importDefault(require("parse/node"));
|
|
8
|
-
const scheduleToEvent_1 = require("../features/openservice/schedules/calendarSync/
|
|
9
|
-
const calendarMetaHelper_1 = require("../features/openservice/schedules/calendarSync/
|
|
10
|
-
const CalendarManager_1 = require("../features/openservice/schedules/calendarSync/
|
|
8
|
+
const scheduleToEvent_1 = require("../features/openservice/schedules/calendarSync/scheduleToEvent");
|
|
9
|
+
const calendarMetaHelper_1 = require("../features/openservice/schedules/calendarSync/calendarMetaHelper");
|
|
10
|
+
const CalendarManager_1 = require("../features/openservice/schedules/calendarSync/CalendarManager");
|
|
11
11
|
const schema_1 = require("../features/schema");
|
|
12
12
|
const types_1 = require("../types");
|
|
13
13
|
async function init() {
|
|
@@ -8,11 +8,11 @@ const node_1 = __importDefault(require("parse/node"));
|
|
|
8
8
|
const index_js_1 = require("../features/schema/index.js");
|
|
9
9
|
const Permissions_js_1 = require("../features/permissions/types/Permissions.js");
|
|
10
10
|
const index_js_2 = require("../features/permissions/index.js");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const assignmentAcl_js_1 = require("../features/openservice/serviceSchedules/assignmentAcl.js");
|
|
12
|
+
const index_js_3 = require("../features/openservice/serviceSchedules/calendarSync/index.js");
|
|
13
|
+
const index_js_4 = require("../types/index.js");
|
|
14
14
|
async function init() {
|
|
15
|
-
(0, index_js_1.beforeSaveHook)(
|
|
15
|
+
(0, index_js_1.beforeSaveHook)(index_js_4.Service_Schedule, async (request) => {
|
|
16
16
|
const { object, original, user } = request;
|
|
17
17
|
await (0, index_js_1.defaultHandler)(request);
|
|
18
18
|
// The creator, recorded once and never rewritten: it is who the plan
|
|
@@ -33,13 +33,13 @@ async function init() {
|
|
|
33
33
|
denyTenantUserRead: true,
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
|
-
(0, index_js_1.afterSaveHook)(
|
|
36
|
+
(0, index_js_1.afterSaveHook)(index_js_4.Service_Schedule, async (request) => {
|
|
37
37
|
const { object, original, context } = request;
|
|
38
38
|
// Our own ACL write — the assignments already match, nothing to redo.
|
|
39
|
-
if (context?.[
|
|
39
|
+
if (context?.[assignmentAcl_js_1.ASSIGNMENT_ACL_CONTEXT_FLAG])
|
|
40
40
|
return;
|
|
41
41
|
// Assignments are relations: only readable now that the save applied them.
|
|
42
|
-
await (0,
|
|
42
|
+
await (0, assignmentAcl_js_1.syncAssignmentAcl)(object, {
|
|
43
43
|
roleRelations: ["assignedRoles", "escalationRoles"],
|
|
44
44
|
userRelations: ["assignedUsers"],
|
|
45
45
|
}).catch((error) => {
|
|
@@ -49,7 +49,7 @@ async function init() {
|
|
|
49
49
|
// that would create a new version there, which the delta feed reports as a
|
|
50
50
|
// foreign change, which we would import again — an endless echo. The
|
|
51
51
|
// poller marks its own writes with this flag.
|
|
52
|
-
if (context?.[
|
|
52
|
+
if (context?.[index_js_3.CALENDAR_SYNC_CONTEXT_FLAG])
|
|
53
53
|
return;
|
|
54
54
|
// Seed data belongs to a demo tenant, not in anybody's calendar.
|
|
55
55
|
if (object.get("seed"))
|
|
@@ -59,12 +59,12 @@ async function init() {
|
|
|
59
59
|
// Graph round trip (token + write) would otherwise be part of every save
|
|
60
60
|
// the user waits for. Failures are logged, and the next relevant save
|
|
61
61
|
// retries — as does the delta poller from the other side.
|
|
62
|
-
(0,
|
|
62
|
+
(0, index_js_3.syncPlanToCalendar)(object).catch((error) => {
|
|
63
63
|
console.error(`[ServiceCalendarSync] Plan ${object.id} could not be synced:`, error);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
(0, index_js_1.beforeDeleteHook)(
|
|
67
|
+
(0, index_js_1.beforeDeleteHook)(index_js_4.Service_Schedule, async (request) => {
|
|
68
68
|
const { object } = request;
|
|
69
69
|
// Parse has no delete right of its own — an ACL `write` grant covers update
|
|
70
70
|
// *and* delete, so anyone allowed to edit a plan could otherwise remove it.
|
|
@@ -79,7 +79,7 @@ async function init() {
|
|
|
79
79
|
//
|
|
80
80
|
// A plan without any execution carries no history, so removing it stays
|
|
81
81
|
// allowed — that keeps mistakenly created plans cleanable.
|
|
82
|
-
const executions = await new node_1.default.Query(
|
|
82
|
+
const executions = await new node_1.default.Query(index_js_4.Service_Schedule_Execution)
|
|
83
83
|
.equalTo("schedule", object)
|
|
84
84
|
.count({ useMasterKey: true });
|
|
85
85
|
if (executions > 0) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.init = init;
|
|
4
4
|
const index_js_1 = require("../features/schema/index.js");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const assignmentAcl_js_1 = require("../features/openservice/serviceSchedules/assignmentAcl.js");
|
|
6
|
+
const index_js_2 = require("../types/index.js");
|
|
7
7
|
async function init() {
|
|
8
|
-
(0, index_js_1.beforeSaveHook)(
|
|
8
|
+
(0, index_js_1.beforeSaveHook)(index_js_2.Service_Schedule_Template, async (request) => {
|
|
9
9
|
const { object, original, user } = request;
|
|
10
10
|
await (0, index_js_1.defaultHandler)(request);
|
|
11
11
|
// The creator, recorded once and never rewritten — a template stays visible
|
|
@@ -21,15 +21,15 @@ async function init() {
|
|
|
21
21
|
denyTenantUserRead: true,
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
|
-
(0, index_js_1.afterSaveHook)(
|
|
24
|
+
(0, index_js_1.afterSaveHook)(index_js_2.Service_Schedule_Template, async (request) => {
|
|
25
25
|
const { object, context } = request;
|
|
26
26
|
// Our own ACL write — the assignments already match.
|
|
27
|
-
if (context?.[
|
|
27
|
+
if (context?.[assignmentAcl_js_1.ASSIGNMENT_ACL_CONTEXT_FLAG])
|
|
28
28
|
return;
|
|
29
29
|
// `assignedRoles` is a relation, readable only after the save applied it.
|
|
30
30
|
// Templates carry no `assignedUsers`: they are shared by role, and the
|
|
31
31
|
// creator keeps their own grant.
|
|
32
|
-
await (0,
|
|
32
|
+
await (0, assignmentAcl_js_1.syncAssignmentAcl)(object, {
|
|
33
33
|
roleRelations: ["assignedRoles"],
|
|
34
34
|
}).catch((error) => {
|
|
35
35
|
console.error(`[ServiceScheduleAcl] Template ${object.id}: could not sync ACL from assignments:`, error);
|
|
@@ -172,13 +172,23 @@ async function assignTicketNumber(ticket) {
|
|
|
172
172
|
return; // no scope to count within — leave unnumbered
|
|
173
173
|
ticket.set("number", await nextTenantTicketNumber(tenant));
|
|
174
174
|
}
|
|
175
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* Find-or-create the tenant's ticket counter and return the next value.
|
|
177
|
+
*
|
|
178
|
+
* Counters are server-internal — only this hook and the migration ever touch
|
|
179
|
+
* them — so every row gets an empty ACL: nobody but the master/maintenance key
|
|
180
|
+
* reads or writes it. The class CLP says the same (`Service_TicketCounter.json`);
|
|
181
|
+
* this is the per-row half of it, and it also repairs rows written before either
|
|
182
|
+
* existed, which carried the Parse default of public read *and write*. A client
|
|
183
|
+
* that could set `value` could hand another tenant duplicate ticket numbers.
|
|
184
|
+
*/
|
|
176
185
|
async function nextTenantTicketNumber(tenant) {
|
|
177
186
|
const existing = await new node_1.default.Query("OD3_Service_TicketCounter")
|
|
178
187
|
.equalTo("tenant", tenant)
|
|
179
188
|
.first({ useMasterKey: true });
|
|
180
189
|
if (existing) {
|
|
181
190
|
existing.increment("value", 1);
|
|
191
|
+
existing.setACL(new node_1.default.ACL());
|
|
182
192
|
await existing.save(null, { useMasterKey: true });
|
|
183
193
|
return existing.get("value");
|
|
184
194
|
}
|
|
@@ -186,6 +196,7 @@ async function nextTenantTicketNumber(tenant) {
|
|
|
186
196
|
const counter = new Counter();
|
|
187
197
|
counter.set("tenant", tenant);
|
|
188
198
|
counter.set("value", 1);
|
|
199
|
+
counter.setACL(new node_1.default.ACL());
|
|
189
200
|
await counter.save(null, { useMasterKey: true });
|
|
190
201
|
return 1;
|
|
191
202
|
}
|
|
@@ -115,6 +115,9 @@ class TicketNumberer {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
counter.set("value", value);
|
|
118
|
+
// Same closed ACL the hook writes: counters are server-internal, so no
|
|
119
|
+
// client — of this tenant or any other — may read or increment one.
|
|
120
|
+
counter.setACL(new node_1.default.ACL());
|
|
118
121
|
await counter.save(null, acl_js_1.MIGRATION_SAVE);
|
|
119
122
|
if (!existingId && counter.id)
|
|
120
123
|
this.tenantCounterIds.set(tenantId, counter.id);
|
package/dist/types/Contact.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface ContactAttributes {
|
|
|
9
9
|
updatedAt: Date;
|
|
10
10
|
city?: string | undefined;
|
|
11
11
|
company?: Company | undefined;
|
|
12
|
+
deleted: boolean;
|
|
12
13
|
department?: string | undefined;
|
|
13
14
|
description?: string | undefined;
|
|
14
15
|
email?: string | undefined;
|
|
@@ -29,6 +30,8 @@ export declare class Contact extends Parse.Object<ContactAttributes> {
|
|
|
29
30
|
set city(value: string | undefined);
|
|
30
31
|
get company(): Company | undefined;
|
|
31
32
|
set company(value: Company | undefined);
|
|
33
|
+
get deleted(): boolean;
|
|
34
|
+
set deleted(value: boolean);
|
|
32
35
|
get department(): string | undefined;
|
|
33
36
|
set department(value: string | undefined);
|
|
34
37
|
get description(): string | undefined;
|
package/dist/types/Contact.js
CHANGED
|
@@ -22,6 +22,12 @@ class Contact extends node_1.default.Object {
|
|
|
22
22
|
set company(value) {
|
|
23
23
|
super.set("company", value);
|
|
24
24
|
}
|
|
25
|
+
get deleted() {
|
|
26
|
+
return super.get("deleted");
|
|
27
|
+
}
|
|
28
|
+
set deleted(value) {
|
|
29
|
+
super.set("deleted", value);
|
|
30
|
+
}
|
|
25
31
|
get department() {
|
|
26
32
|
return super.get("department");
|
|
27
33
|
}
|
|
@@ -23,6 +23,7 @@ export interface Service_ScheduleAttributes {
|
|
|
23
23
|
graceDays?: number | undefined;
|
|
24
24
|
leadDays?: number | undefined;
|
|
25
25
|
notifications: any[];
|
|
26
|
+
origin?: string | undefined;
|
|
26
27
|
pausedUntil?: Date | undefined;
|
|
27
28
|
seed?: boolean | undefined;
|
|
28
29
|
serviceProviders?: any[] | undefined;
|
|
@@ -61,6 +62,8 @@ export declare class Service_Schedule extends Parse.Object<Service_ScheduleAttri
|
|
|
61
62
|
set leadDays(value: number | undefined);
|
|
62
63
|
get notifications(): any[];
|
|
63
64
|
set notifications(value: any[]);
|
|
65
|
+
get origin(): string | undefined;
|
|
66
|
+
set origin(value: string | undefined);
|
|
64
67
|
get pausedUntil(): Date | undefined;
|
|
65
68
|
set pausedUntil(value: Date | undefined);
|
|
66
69
|
get seed(): boolean | undefined;
|
|
@@ -91,6 +91,12 @@ class Service_Schedule extends node_1.default.Object {
|
|
|
91
91
|
set notifications(value) {
|
|
92
92
|
super.set("notifications", value);
|
|
93
93
|
}
|
|
94
|
+
get origin() {
|
|
95
|
+
return super.get("origin");
|
|
96
|
+
}
|
|
97
|
+
set origin(value) {
|
|
98
|
+
super.set("origin", value);
|
|
99
|
+
}
|
|
94
100
|
get pausedUntil() {
|
|
95
101
|
return super.get("pausedUntil");
|
|
96
102
|
}
|
package/package.json
CHANGED
package/schema/Contact.json
CHANGED
|
@@ -12,27 +12,15 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"classLevelPermissions": {
|
|
15
|
-
"find": {
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"*": true
|
|
26
|
-
},
|
|
27
|
-
"update": {
|
|
28
|
-
"*": true
|
|
29
|
-
},
|
|
30
|
-
"delete": {
|
|
31
|
-
"*": true
|
|
32
|
-
},
|
|
33
|
-
"addField": {
|
|
34
|
-
"*": true
|
|
35
|
-
},
|
|
36
|
-
"protectedFields": {}
|
|
15
|
+
"find": {},
|
|
16
|
+
"count": {},
|
|
17
|
+
"get": {},
|
|
18
|
+
"create": {},
|
|
19
|
+
"update": {},
|
|
20
|
+
"delete": {},
|
|
21
|
+
"addField": {},
|
|
22
|
+
"protectedFields": {
|
|
23
|
+
"*": []
|
|
24
|
+
}
|
|
37
25
|
}
|
|
38
26
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { GraphEventResponse } from "../types/Event.js";
|
|
2
|
-
export type ScheduleCronTimestamp = {
|
|
3
|
-
startDate: Date;
|
|
4
|
-
endDate?: Date;
|
|
5
|
-
number: number;
|
|
6
|
-
unit: "days" | "weeks" | "months";
|
|
7
|
-
};
|
|
8
|
-
export type NotifyBeforeDue = {
|
|
9
|
-
value: number;
|
|
10
|
-
unit: "minutes" | "hours" | "days" | "weeks";
|
|
11
|
-
};
|
|
12
|
-
export type EventToScheduleResult = {
|
|
13
|
-
schedule_type: "timestamp";
|
|
14
|
-
timestamp: ScheduleCronTimestamp;
|
|
15
|
-
notifyBeforeDue?: NotifyBeforeDue;
|
|
16
|
-
};
|
|
17
|
-
export declare function eventToSchedule(event: GraphEventResponse): EventToScheduleResult | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Maintenance_Schedule } from "../../../../../types/index.js";
|
|
2
|
-
import { CalendarEventSnapshot } from "../service/calendarMetaHelper.js";
|
|
3
|
-
import { GraphEvent } from "../types/Event.js";
|
|
4
|
-
export declare function scheduleToEvent(schedule: Maintenance_Schedule, originalEvent?: CalendarEventSnapshot): Promise<GraphEvent | undefined>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Meta_Entry, Tenant } from "../../../../../types/index.js";
|
|
2
|
-
import { MetaConfig } from "../../../../../types/custom/MetaField.js";
|
|
3
|
-
import { GraphEventResponse } from "../types/Event.js";
|
|
4
|
-
export declare const CALENDAR_SYNC_CONTEXT: string;
|
|
5
|
-
export interface CalendarEventSnapshot {
|
|
6
|
-
id: string;
|
|
7
|
-
subject?: string;
|
|
8
|
-
start: {
|
|
9
|
-
dateTime: string;
|
|
10
|
-
timeZone: string;
|
|
11
|
-
};
|
|
12
|
-
end: {
|
|
13
|
-
dateTime: string;
|
|
14
|
-
timeZone: string;
|
|
15
|
-
};
|
|
16
|
-
isAllDay?: boolean;
|
|
17
|
-
isCancelled?: boolean;
|
|
18
|
-
body?: {
|
|
19
|
-
contentType?: string;
|
|
20
|
-
content?: string;
|
|
21
|
-
};
|
|
22
|
-
recurrence?: GraphEventResponse["recurrence"];
|
|
23
|
-
location?: {
|
|
24
|
-
displayName?: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export interface CalendarMetaValues {
|
|
28
|
-
microsoftCalendarEventId: string;
|
|
29
|
-
microsoftCalendarChangeKey?: string;
|
|
30
|
-
microsoftCalendarEvent?: CalendarEventSnapshot;
|
|
31
|
-
}
|
|
32
|
-
export declare const CalendarMetaConfig: MetaConfig;
|
|
33
|
-
export declare function findCalendarMetaForSchedule(scheduleId: string): Promise<Meta_Entry | null>;
|
|
34
|
-
export declare function findCalendarMetaByEventId(eventId: string): Promise<Meta_Entry | null>;
|
|
35
|
-
export declare function saveCalendarMeta(scheduleId: string, eventId: string, changeKey?: string, tenant?: Tenant, event?: GraphEventResponse): Promise<Meta_Entry>;
|
|
36
|
-
export declare function updateCalendarChangeKey(entry: Meta_Entry, changeKey: string, event?: GraphEventResponse): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function reassignScheduleExecutions(): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ASSIGNMENT_ACL_CONTEXT_FLAG, syncAssignmentAcl, type AssignmentAclOptions, } from "./assignmentAcl.js";
|