@aeolus-fleet/core 0.31.0 → 0.32.1
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/README.md +1 -1
- package/dist/adapters/prisma/defined-scopes.d.ts +4 -0
- package/dist/adapters/prisma/defined-scopes.js +23 -0
- package/dist/adapters/prisma/defined-scopes.js.map +1 -0
- package/dist/adapters/prisma/delivery-notices.d.ts +3 -0
- package/dist/adapters/prisma/delivery-notices.js +7 -2
- package/dist/adapters/prisma/delivery-notices.js.map +1 -1
- package/dist/adapters/prisma/fleet-limit-settings.d.ts +6 -0
- package/dist/adapters/prisma/fleet-limit-settings.js +17 -0
- package/dist/adapters/prisma/fleet-limit-settings.js.map +1 -0
- package/dist/adapters/prisma/generated/browser.d.ts +17 -3
- package/dist/adapters/prisma/generated/client.d.ts +17 -3
- package/dist/adapters/prisma/generated/commonInputTypes.d.ts +196 -46
- package/dist/adapters/prisma/generated/enums.d.ts +32 -0
- package/dist/adapters/prisma/generated/enums.js +28 -1
- package/dist/adapters/prisma/generated/enums.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/class.d.ts +22 -0
- package/dist/adapters/prisma/generated/internal/class.js +4 -4
- package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +254 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js +62 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +63 -0
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +62 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
- package/dist/adapters/prisma/generated/models/DefinedScope.d.ts +1110 -0
- package/dist/adapters/prisma/generated/models/DefinedScope.js +2 -0
- package/dist/adapters/prisma/generated/models/DefinedScope.js.map +1 -0
- package/dist/adapters/prisma/generated/models/Fleet.d.ts +2128 -2
- package/dist/adapters/prisma/generated/models/InstallationSettings.d.ts +108 -4
- package/dist/adapters/prisma/generated/models/Message.d.ts +557 -516
- package/dist/adapters/prisma/generated/models/Schedule.d.ts +3925 -0
- package/dist/adapters/prisma/generated/models/Schedule.js +2 -0
- package/dist/adapters/prisma/generated/models/Schedule.js.map +1 -0
- package/dist/adapters/prisma/generated/models/Ship.d.ts +736 -3
- package/dist/adapters/prisma/generated/models.d.ts +2 -0
- package/dist/adapters/prisma/history-pruner.d.ts +3 -0
- package/dist/adapters/prisma/history-pruner.js +232 -0
- package/dist/adapters/prisma/history-pruner.js.map +1 -0
- package/dist/adapters/prisma/history.js +67 -14
- package/dist/adapters/prisma/history.js.map +1 -1
- package/dist/adapters/prisma/installation.js +27 -8
- package/dist/adapters/prisma/installation.js.map +1 -1
- package/dist/adapters/prisma/messaging.js +7 -3
- package/dist/adapters/prisma/messaging.js.map +1 -1
- package/dist/adapters/prisma/registry.js +28 -9
- package/dist/adapters/prisma/registry.js.map +1 -1
- package/dist/adapters/prisma/rows.js +10 -1
- package/dist/adapters/prisma/rows.js.map +1 -1
- package/dist/adapters/prisma/schedules.d.ts +12 -0
- package/dist/adapters/prisma/schedules.js +255 -0
- package/dist/adapters/prisma/schedules.js.map +1 -0
- package/dist/adapters/prisma/unit-of-work.d.ts +7 -2
- package/dist/adapters/prisma/unit-of-work.js +7 -0
- package/dist/adapters/prisma/unit-of-work.js.map +1 -1
- package/dist/adapters/trpc/console.d.ts +1 -1
- package/dist/adapters/trpc/console.js +3 -6
- package/dist/adapters/trpc/console.js.map +1 -1
- package/dist/adapters/trpc/context.d.ts +20 -0
- package/dist/adapters/trpc/fleet.d.ts +210 -8
- package/dist/adapters/trpc/fleet.js +111 -11
- package/dist/adapters/trpc/fleet.js.map +1 -1
- package/dist/adapters/trpc/installation.d.ts +139 -4
- package/dist/adapters/trpc/installation.js +4 -4
- package/dist/adapters/trpc/installation.js.map +1 -1
- package/dist/adapters/trpc/router.d.ts +508 -8
- package/dist/adapters/trpc/schedule-output.d.ts +74 -0
- package/dist/adapters/trpc/schedule-output.js +71 -0
- package/dist/adapters/trpc/schedule-output.js.map +1 -0
- package/dist/adapters/trpc/ship-contract.js +7 -0
- package/dist/adapters/trpc/ship-contract.js.map +1 -1
- package/dist/adapters/trpc/ship.d.ts +188 -3
- package/dist/adapters/trpc/ship.js +105 -11
- package/dist/adapters/trpc/ship.js.map +1 -1
- package/dist/adapters/trpc/starting-prompt-text.js +5 -5
- package/dist/adapters/trpc/starting-prompt-text.js.map +1 -1
- package/dist/adapters/trpc/trpc.d.ts +8 -0
- package/dist/adapters/trpc/trpc.js +19 -2
- package/dist/adapters/trpc/trpc.js.map +1 -1
- package/dist/app.d.ts +5 -3
- package/dist/app.js +30 -4
- package/dist/app.js.map +1 -1
- package/dist/domain/messaging/add-to-meeting.js +1 -1
- package/dist/domain/messaging/add-to-meeting.js.map +1 -1
- package/dist/domain/messaging/cancel-schedule.d.ts +35 -0
- package/dist/domain/messaging/cancel-schedule.js +45 -0
- package/dist/domain/messaging/cancel-schedule.js.map +1 -0
- package/dist/domain/messaging/check-reach-to-each.d.ts +25 -0
- package/dist/domain/messaging/check-reach-to-each.js +21 -0
- package/dist/domain/messaging/check-reach-to-each.js.map +1 -0
- package/dist/domain/messaging/cron.d.ts +46 -0
- package/dist/domain/messaging/cron.js +164 -0
- package/dist/domain/messaging/cron.js.map +1 -0
- package/dist/domain/messaging/daily-message-limit.d.ts +7 -5
- package/dist/domain/messaging/daily-message-limit.js +8 -7
- package/dist/domain/messaging/daily-message-limit.js.map +1 -1
- package/dist/domain/messaging/list-schedules.d.ts +38 -0
- package/dist/domain/messaging/list-schedules.js +33 -0
- package/dist/domain/messaging/list-schedules.js.map +1 -0
- package/dist/domain/messaging/message.d.ts +43 -4
- package/dist/domain/messaging/message.js +82 -4
- package/dist/domain/messaging/message.js.map +1 -1
- package/dist/domain/messaging/open-meeting.js +1 -1
- package/dist/domain/messaging/open-meeting.js.map +1 -1
- package/dist/domain/messaging/pause-schedule.d.ts +34 -0
- package/dist/domain/messaging/pause-schedule.js +44 -0
- package/dist/domain/messaging/pause-schedule.js.map +1 -0
- package/dist/domain/messaging/ports.d.ts +77 -3
- package/dist/domain/messaging/public.d.ts +1 -0
- package/dist/domain/messaging/public.js +1 -0
- package/dist/domain/messaging/public.js.map +1 -1
- package/dist/domain/messaging/push-receive-deliveries.d.ts +4 -1
- package/dist/domain/messaging/push-receive-deliveries.js +5 -2
- package/dist/domain/messaging/push-receive-deliveries.js.map +1 -1
- package/dist/domain/messaging/receive-deliveries.d.ts +4 -1
- package/dist/domain/messaging/receive-deliveries.js +2 -0
- package/dist/domain/messaging/receive-deliveries.js.map +1 -1
- package/dist/domain/messaging/resend-delivery.js +2 -2
- package/dist/domain/messaging/resend-delivery.js.map +1 -1
- package/dist/domain/messaging/resume-schedule.d.ts +34 -0
- package/dist/domain/messaging/resume-schedule.js +37 -0
- package/dist/domain/messaging/resume-schedule.js.map +1 -0
- package/dist/domain/messaging/retired-scheduler.d.ts +31 -0
- package/dist/domain/messaging/retired-scheduler.js +30 -0
- package/dist/domain/messaging/retired-scheduler.js.map +1 -0
- package/dist/domain/messaging/schedule-access.d.ts +20 -0
- package/dist/domain/messaging/schedule-access.js +21 -0
- package/dist/domain/messaging/schedule-access.js.map +1 -0
- package/dist/domain/messaging/schedule-limits.d.ts +25 -0
- package/dist/domain/messaging/schedule-limits.js +51 -0
- package/dist/domain/messaging/schedule-limits.js.map +1 -0
- package/dist/domain/messaging/schedule-message.d.ts +65 -0
- package/dist/domain/messaging/schedule-message.js +151 -0
- package/dist/domain/messaging/schedule-message.js.map +1 -0
- package/dist/domain/messaging/schedule.d.ts +238 -0
- package/dist/domain/messaging/schedule.js +316 -0
- package/dist/domain/messaging/schedule.js.map +1 -0
- package/dist/domain/messaging/send-due-schedules.d.ts +40 -0
- package/dist/domain/messaging/send-due-schedules.js +141 -0
- package/dist/domain/messaging/send-due-schedules.js.map +1 -0
- package/dist/domain/messaging/send-message.d.ts +10 -3
- package/dist/domain/messaging/send-message.js +78 -4
- package/dist/domain/messaging/send-message.js.map +1 -1
- package/dist/domain/messaging/send-request.d.ts +3 -2
- package/dist/domain/messaging/send-request.js +5 -2
- package/dist/domain/messaging/send-request.js.map +1 -1
- package/dist/domain/registry/applied-limits.d.ts +5 -7
- package/dist/domain/registry/applied-limits.js +5 -9
- package/dist/domain/registry/applied-limits.js.map +1 -1
- package/dist/domain/registry/check-manage.d.ts +23 -0
- package/dist/domain/registry/check-manage.js +19 -0
- package/dist/domain/registry/check-manage.js.map +1 -0
- package/dist/domain/registry/commission-ship.js +3 -3
- package/dist/domain/registry/commission-ship.js.map +1 -1
- package/dist/domain/registry/declare-scopes.d.ts +5 -3
- package/dist/domain/registry/declare-scopes.js +4 -2
- package/dist/domain/registry/declare-scopes.js.map +1 -1
- package/dist/domain/registry/define-scope.d.ts +33 -0
- package/dist/domain/registry/define-scope.js +30 -0
- package/dist/domain/registry/define-scope.js.map +1 -0
- package/dist/domain/registry/defined-scope.d.ts +68 -0
- package/dist/domain/registry/defined-scope.js +83 -0
- package/dist/domain/registry/defined-scope.js.map +1 -0
- package/dist/domain/registry/describe-scope.d.ts +31 -0
- package/dist/domain/registry/describe-scope.js +28 -0
- package/dist/domain/registry/describe-scope.js.map +1 -0
- package/dist/domain/registry/get-fleet-limits.d.ts +1 -1
- package/dist/domain/registry/get-fleet-limits.js +1 -1
- package/dist/domain/registry/get-fleet-limits.js.map +1 -1
- package/dist/domain/registry/grant-scopes.d.ts +4 -3
- package/dist/domain/registry/grant-scopes.js +4 -4
- package/dist/domain/registry/grant-scopes.js.map +1 -1
- package/dist/domain/registry/installation-fleet.d.ts +4 -1
- package/dist/domain/registry/installation-fleet.js +9 -2
- package/dist/domain/registry/installation-fleet.js.map +1 -1
- package/dist/domain/registry/label-value-texts.d.ts +16 -0
- package/dist/domain/registry/label-value-texts.js +15 -0
- package/dist/domain/registry/label-value-texts.js.map +1 -0
- package/dist/domain/registry/limits.d.ts +42 -7
- package/dist/domain/registry/limits.js +41 -6
- package/dist/domain/registry/limits.js.map +1 -1
- package/dist/domain/registry/list-scopes.d.ts +13 -6
- package/dist/domain/registry/list-scopes.js +15 -6
- package/dist/domain/registry/list-scopes.js.map +1 -1
- package/dist/domain/registry/named-namespaces.d.ts +18 -8
- package/dist/domain/registry/named-namespaces.js +11 -3
- package/dist/domain/registry/named-namespaces.js.map +1 -1
- package/dist/domain/registry/ports.d.ts +20 -0
- package/dist/domain/registry/public.d.ts +2 -0
- package/dist/domain/registry/public.js +2 -0
- package/dist/domain/registry/public.js.map +1 -1
- package/dist/domain/registry/remove-scope.d.ts +29 -0
- package/dist/domain/registry/remove-scope.js +32 -0
- package/dist/domain/registry/remove-scope.js.map +1 -0
- package/dist/domain/registry/resolve-label-selection.d.ts +20 -0
- package/dist/domain/registry/resolve-label-selection.js +26 -0
- package/dist/domain/registry/resolve-label-selection.js.map +1 -0
- package/dist/domain/registry/retire-ship.d.ts +5 -2
- package/dist/domain/registry/retire-ship.js +6 -1
- package/dist/domain/registry/retire-ship.js.map +1 -1
- package/dist/domain/registry/scope-grant.d.ts +6 -2
- package/dist/domain/registry/scope-grant.js +9 -5
- package/dist/domain/registry/scope-grant.js.map +1 -1
- package/dist/domain/registry/scope-namespace.d.ts +5 -1
- package/dist/domain/registry/scope-namespace.js +9 -2
- package/dist/domain/registry/scope-namespace.js.map +1 -1
- package/dist/domain/registry/set-fleet-limits.d.ts +8 -5
- package/dist/domain/registry/set-fleet-limits.js +38 -6
- package/dist/domain/registry/set-fleet-limits.js.map +1 -1
- package/dist/domain/registry/set-installation-settings.d.ts +4 -4
- package/dist/domain/registry/set-installation-settings.js +21 -15
- package/dist/domain/registry/set-installation-settings.js.map +1 -1
- package/dist/domain/registry/ship.d.ts +2 -0
- package/dist/domain/registry/ship.js +1 -1
- package/dist/domain/registry/ship.js.map +1 -1
- package/dist/domain/shared/delivery-way.d.ts +4 -0
- package/dist/domain/shared/delivery-way.js +5 -2
- package/dist/domain/shared/delivery-way.js.map +1 -1
- package/dist/domain/shared/errors.d.ts +1 -1
- package/dist/domain/shared/errors.js.map +1 -1
- package/dist/domain/shared/history-pruning.d.ts +130 -0
- package/dist/domain/shared/history-pruning.js +74 -0
- package/dist/domain/shared/history-pruning.js.map +1 -0
- package/dist/domain/shared/history.d.ts +33 -5
- package/dist/domain/shared/history.js +3 -1
- package/dist/domain/shared/history.js.map +1 -1
- package/dist/domain/shared/prune-history.d.ts +39 -0
- package/dist/domain/shared/prune-history.js +98 -0
- package/dist/domain/shared/prune-history.js.map +1 -0
- package/dist/domain/shared/read-fleet-limits.d.ts +14 -4
- package/dist/domain/shared/read-fleet-limits.js +8 -4
- package/dist/domain/shared/read-fleet-limits.js.map +1 -1
- package/dist/domain/shared/read-message-deliveries.d.ts +30 -0
- package/dist/domain/shared/read-message-deliveries.js +24 -0
- package/dist/domain/shared/read-message-deliveries.js.map +1 -0
- package/dist/domain/shared/read-message.d.ts +4 -1
- package/dist/domain/shared/read-message.js +3 -2
- package/dist/domain/shared/read-message.js.map +1 -1
- package/dist/domain/shared/read-sent-message.d.ts +21 -7
- package/dist/domain/shared/read-sent-message.js +19 -6
- package/dist/domain/shared/read-sent-message.js.map +1 -1
- package/dist/domain/shared/selector.d.ts +21 -8
- package/dist/domain/shared/stuck.d.ts +3 -2
- package/dist/domain/shared/stuck.js +1 -1
- package/dist/domain/shared/stuck.js.map +1 -1
- package/dist/schedule-timer.d.ts +22 -0
- package/dist/schedule-timer.js +78 -0
- package/dist/schedule-timer.js.map +1 -0
- package/dist/testing/temporal-setup.d.ts +1 -0
- package/dist/testing/temporal-setup.js +7 -0
- package/dist/testing/temporal-setup.js.map +1 -0
- package/dist/wiring.d.ts +26 -0
- package/dist/wiring.js +27 -1
- package/dist/wiring.js.map +1 -1
- package/package.json +3 -2
- package/src/adapters/prisma/migrations/20261025090000_scheduled_messages_envelope/migration.sql +5 -0
- package/src/adapters/prisma/migrations/20261025090100_schedules/migration.sql +109 -0
- package/src/adapters/prisma/migrations/20261025120000_repeating_schedules/migration.sql +40 -0
- package/src/adapters/prisma/migrations/20261025130000_schedule_limits/migration.sql +11 -0
- package/src/adapters/prisma/migrations/20261025140000_send_to_a_label/migration.sql +16 -0
- package/src/adapters/prisma/migrations/20261025150000_define_scope/migration.sql +64 -0
- package/src/adapters/prisma/migrations/20261025150100_defined_scopes/migration.sql +15 -0
- package/src/adapters/prisma/migrations/20261025160000_retention/migration.sql +7 -0
- package/src/adapters/prisma/migrations/20261025170000_message_deliveries_page/migration.sql +7 -0
- package/src/adapters/prisma/migrations/20261025180000_history_pruning/migration.sql +25 -0
- package/src/adapters/prisma/migrations/20261025190000_history_pruning_crew_events/migration.sql +2 -0
- package/src/adapters/prisma/migrations/20261025200000_schedule_to_a_label/migration.sql +12 -0
- package/src/adapters/prisma/schema.prisma +179 -26
package/README.md
CHANGED
|
@@ -133,6 +133,6 @@ A request Fastify refuses before any procedure runs answers in the same `{ "code
|
|
|
133
133
|
|
|
134
134
|
The operator's account: `console.account` answers `kind: "operator"` with the signed-in operator's email, theme and this console session (`{ "device": "Mac · Chrome", "since": "..." }`; the device is worded from the sign-in's User-Agent and is also argo's lease location), or `kind: "viewer"` with the session alone for a viewer session (decision 0022). `console.setTheme` (`{ "theme": "light" | "dark" | "system" }`) stores the theme on the account, so it follows the operator to any browser; no event. Both answer only a console session (`FORBIDDEN` otherwise), and `console.setTheme` refuses a viewer session.
|
|
135
135
|
|
|
136
|
-
Last seen: every call a crew token or the console session authenticates marks its lease seen (`leases.last_seen_at`), in the statement that looks the caller up. `fleet.list` and `fleet.ship` answer `lastSeenAt` for a crewed ship (its claim until it calls again), for the viewer ship the last use of its most recent viewer session, and null otherwise. Observation only (ADR 0016): no heartbeat, nothing ends a lease because a ship went quiet. With the
|
|
136
|
+
Last seen: every call a crew token or the console session authenticates marks its lease seen (`leases.last_seen_at`), in the statement that looks the caller up. `fleet.list` and `fleet.ship` answer `lastSeenAt` for a crewed ship (its claim until it calls again), for the viewer ship the last use of its most recent viewer session, and null otherwise. Observation only (ADR 0016): no heartbeat, nothing ends a lease because a ship went quiet. With the Aeolus Fleet plugin, the watcher's inbox check keeps it fresh about every 25 s.
|
|
137
137
|
|
|
138
138
|
`GET /api/version` answers the versions this process runs, `{ "server": "0.7.0", "common": "0.7.0" }`, and nothing else. No authentication, no fleet data. The web app's `/version` combines it with its own.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DefinedScopeRepository } from '../../domain/registry/ports.js';
|
|
2
|
+
import type { Db } from './client.js';
|
|
3
|
+
/** The fleet's own scopes on Postgres (design gateway-scopes, 4.1). */
|
|
4
|
+
export declare function createPrismaDefinedScopeRepository(db: Db): DefinedScopeRepository;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { idSchema, scopeNameSchema } from '@aeolus-fleet/common';
|
|
2
|
+
/** A defined scope row as the domain trusts it. */
|
|
3
|
+
function definedOf(row) {
|
|
4
|
+
return { fleetId: idSchema('fleet').parse(row.fleetId), scope: scopeNameSchema.parse(row.scope), description: row.description };
|
|
5
|
+
}
|
|
6
|
+
/** The fleet's own scopes on Postgres (design gateway-scopes, 4.1). */
|
|
7
|
+
export function createPrismaDefinedScopeRepository(db) {
|
|
8
|
+
return {
|
|
9
|
+
find: async (fleetId, scope) => {
|
|
10
|
+
const row = await db.definedScope.findUnique({ where: { fleetId_scope: { fleetId, scope } } });
|
|
11
|
+
return row === null ? undefined : definedOf(row);
|
|
12
|
+
},
|
|
13
|
+
save: async ({ fleetId, scope, description }) => {
|
|
14
|
+
await db.definedScope.upsert({ where: { fleetId_scope: { fleetId, scope } }, create: { fleetId, scope, description }, update: { description } });
|
|
15
|
+
},
|
|
16
|
+
remove: async (fleetId, scope) => {
|
|
17
|
+
await db.definedScope.deleteMany({ where: { fleetId, scope } });
|
|
18
|
+
},
|
|
19
|
+
list: async (fleetId) => (await db.definedScope.findMany({ where: { fleetId }, orderBy: { scope: 'asc' } })).map(definedOf),
|
|
20
|
+
usesNamespace: async (fleetId, namespace) => (await db.definedScope.count({ where: { fleetId, scope: { startsWith: `${namespace}:` } } })) > 0,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=defined-scopes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defined-scopes.js","sourceRoot":"","sources":["../../../src/adapters/prisma/defined-scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMjE,mDAAmD;AACnD,SAAS,SAAS,CAAC,GAA4D;IAC7E,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC;AAClI,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,kCAAkC,CAAC,EAAM;IACvD,OAAO;QACL,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;YAC7B,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;YAC/F,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QACnD,CAAC;QACD,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;YAC9C,MAAM,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;QACnJ,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;YAC/B,MAAM,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAClE,CAAC;QACD,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;QAC3H,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,SAAS,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC;KAC/I,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FleetEventNotice } from '../../domain/shared/events.js';
|
|
2
2
|
import type { DeliveryNotice, Notifier } from '../../domain/shared/notifier.js';
|
|
3
3
|
import type { Db } from './client.js';
|
|
4
|
+
import type { ScheduleNotice } from '../../domain/messaging/ports.js';
|
|
4
5
|
/** The one channel every pending delivery is announced on. */
|
|
5
6
|
export declare const DELIVERY_PENDING_CHANNEL = "aeolus_delivery_pending";
|
|
6
7
|
export declare function createPrismaNotifier(db: Db): Notifier;
|
|
@@ -27,6 +28,8 @@ export declare function listenForPendingDeliveries(options: {
|
|
|
27
28
|
onNotice: (notice: DeliveryNotice) => void;
|
|
28
29
|
/** Hears that a fleet's events up to a number have committed (event-log.ts), for live subscriptions. */
|
|
29
30
|
onFleetEvent?: (notice: FleetEventNotice) => void;
|
|
31
|
+
/** Hears that a schedule's next attempt is due at a time (schedules.ts), for the server's schedule timer. */
|
|
32
|
+
onScheduleDue?: (notice: ScheduleNotice) => void;
|
|
30
33
|
onListening?: () => void;
|
|
31
34
|
onError?: (error: Error) => void;
|
|
32
35
|
/** The first wait before trying again; 1 second unless a test says otherwise. */
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* only when that transaction commits, and drops it when it rolls back. The
|
|
5
5
|
* payload says which delivery is pending and for whom, never the message's
|
|
6
6
|
* payload. The same connection hears committed events (event-log.ts) for the
|
|
7
|
-
* live subscriptions.
|
|
7
|
+
* live subscriptions, and new or advanced schedules (schedules.ts) for the
|
|
8
|
+
* server's schedule timer.
|
|
8
9
|
*/
|
|
9
10
|
import pg from 'pg';
|
|
10
11
|
import { FLEET_EVENT_CHANNEL } from './event-log.js';
|
|
11
12
|
import { toDeliveryNotice, toFleetEventNotice } from './rows.js';
|
|
13
|
+
import { SCHEDULE_DUE_CHANNEL, toScheduleNotice } from './schedules.js';
|
|
12
14
|
/** The one channel every pending delivery is announced on. */
|
|
13
15
|
export const DELIVERY_PENDING_CHANNEL = 'aeolus_delivery_pending';
|
|
14
16
|
export function createPrismaNotifier(db) {
|
|
@@ -77,6 +79,9 @@ export function listenForPendingDeliveries(options) {
|
|
|
77
79
|
else if (channel === FLEET_EVENT_CHANNEL) {
|
|
78
80
|
options.onFleetEvent?.(toFleetEventNotice(JSON.parse(payload)));
|
|
79
81
|
}
|
|
82
|
+
else if (channel === SCHEDULE_DUE_CHANNEL) {
|
|
83
|
+
options.onScheduleDue?.(toScheduleNotice(JSON.parse(payload)));
|
|
84
|
+
}
|
|
80
85
|
}
|
|
81
86
|
catch (error) {
|
|
82
87
|
report(error);
|
|
@@ -85,7 +90,7 @@ export function listenForPendingDeliveries(options) {
|
|
|
85
90
|
client
|
|
86
91
|
.connect()
|
|
87
92
|
// The channels are constants, never outside input.
|
|
88
|
-
.then(() => client.query(`LISTEN ${DELIVERY_PENDING_CHANNEL}; LISTEN ${FLEET_EVENT_CHANNEL}`))
|
|
93
|
+
.then(() => client.query(`LISTEN ${DELIVERY_PENDING_CHANNEL}; LISTEN ${FLEET_EVENT_CHANNEL}; LISTEN ${SCHEDULE_DUE_CHANNEL}`))
|
|
89
94
|
.then(() => {
|
|
90
95
|
if (client !== current) {
|
|
91
96
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-notices.js","sourceRoot":"","sources":["../../../src/adapters/prisma/delivery-notices.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"delivery-notices.js","sourceRoot":"","sources":["../../../src/adapters/prisma/delivery-notices.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FleetLimitSettings } from '../../domain/registry/limits.js';
|
|
2
|
+
import type { Fleet } from './generated/client.js';
|
|
3
|
+
/** A fleet's limit columns: for each limit and the retention, whether the fleet sets its own and that limit or days (null for none). */
|
|
4
|
+
export type FleetLimitColumns = Pick<Fleet, 'shipLimitSet' | 'shipLimit' | 'dailyMessageLimitSet' | 'dailyMessageLimit' | 'schedulesPerShipLimitSet' | 'schedulesPerShipLimit' | 'minimumScheduleIntervalSet' | 'minimumScheduleInterval' | 'retentionSet' | 'retentionDays'>;
|
|
5
|
+
/** How a fleet's limits and its retention are set, from its columns. */
|
|
6
|
+
export declare function limitSettingsOf(row: FleetLimitColumns): FleetLimitSettings;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function settingOf(isSet, limit) {
|
|
2
|
+
return isSet ? { kind: 'fleet', limit } : { kind: 'default' };
|
|
3
|
+
}
|
|
4
|
+
function retentionOf(isSet, days) {
|
|
5
|
+
return isSet ? { kind: 'fleet', days } : { kind: 'default' };
|
|
6
|
+
}
|
|
7
|
+
/** How a fleet's limits and its retention are set, from its columns. */
|
|
8
|
+
export function limitSettingsOf(row) {
|
|
9
|
+
return {
|
|
10
|
+
ships: settingOf(row.shipLimitSet, row.shipLimit),
|
|
11
|
+
dailyMessages: settingOf(row.dailyMessageLimitSet, row.dailyMessageLimit),
|
|
12
|
+
schedulesPerShip: settingOf(row.schedulesPerShipLimitSet, row.schedulesPerShipLimit),
|
|
13
|
+
minimumScheduleInterval: settingOf(row.minimumScheduleIntervalSet, row.minimumScheduleInterval),
|
|
14
|
+
retention: retentionOf(row.retentionSet, row.retentionDays),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=fleet-limit-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet-limit-settings.js","sourceRoot":"","sources":["../../../src/adapters/prisma/fleet-limit-settings.ts"],"names":[],"mappings":"AAkBA,SAAS,SAAS,CAAC,KAAc,EAAE,KAAoB;IACrD,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAChE,CAAC;AAED,SAAS,WAAW,CAAC,KAAc,EAAE,IAAmB;IACtD,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC/D,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,eAAe,CAAC,GAAsB;IACpD,OAAO;QACL,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,SAAS,CAAC;QACjD,aAAa,EAAE,SAAS,CAAC,GAAG,CAAC,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC;QACzE,gBAAgB,EAAE,SAAS,CAAC,GAAG,CAAC,wBAAwB,EAAE,GAAG,CAAC,qBAAqB,CAAC;QACpF,uBAAuB,EAAE,SAAS,CAAC,GAAG,CAAC,0BAA0B,EAAE,GAAG,CAAC,uBAAuB,CAAC;QAC/F,SAAS,EAAE,WAAW,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,aAAa,CAAC;KAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -96,6 +96,11 @@ export type InstallationDeclaredNetworkRules = Prisma.InstallationDeclaredNetwor
|
|
|
96
96
|
* retires.
|
|
97
97
|
*/
|
|
98
98
|
export type ScopeNamespace = Prisma.ScopeNamespaceModel;
|
|
99
|
+
/**
|
|
100
|
+
* Model DefinedScope
|
|
101
|
+
* One of the fleet's own scopes (design gateway-scopes, 4.1), with its one-line description.
|
|
102
|
+
*/
|
|
103
|
+
export type DefinedScope = Prisma.DefinedScopeModel;
|
|
99
104
|
/**
|
|
100
105
|
* Model VerifiedFacts
|
|
101
106
|
* One writer's verified facts about a ship (decision 0059): what it checked,
|
|
@@ -152,6 +157,13 @@ export type Message = Prisma.MessageModel;
|
|
|
152
157
|
* both participants, the opener at first.
|
|
153
158
|
*/
|
|
154
159
|
export type Meeting = Prisma.MeetingModel;
|
|
160
|
+
/**
|
|
161
|
+
* Model Schedule
|
|
162
|
+
* How a meeting's free mic passes (decision 0061, M9): the moderator's pick, or the oldest request.
|
|
163
|
+
* A ship's scheduled message (decision 0062): its send input as given, its timing and
|
|
164
|
+
* refusal strategy, its state, next send time and attempt, and its last outcome.
|
|
165
|
+
*/
|
|
166
|
+
export type Schedule = Prisma.ScheduleModel;
|
|
155
167
|
/**
|
|
156
168
|
* Model MeetingMicRequest
|
|
157
169
|
* A participant waiting for the mic of its meeting, since its time (decision 0061, M8): once per meeting.
|
|
@@ -224,9 +236,11 @@ export type ConsoleSession = Prisma.ConsoleSessionModel;
|
|
|
224
236
|
export type SignInTicket = Prisma.SignInTicketModel;
|
|
225
237
|
/**
|
|
226
238
|
* Model InstallationSettings
|
|
227
|
-
* The installation's settings (decision 0020): the default ship
|
|
228
|
-
*
|
|
229
|
-
*
|
|
239
|
+
* The installation's settings (decision 0020): the default ship, daily message,
|
|
240
|
+
* schedules per ship and minimum schedule interval (seconds) limits and the
|
|
241
|
+
* default retention in days (decision 0066) for fleets, and the cap on fleets,
|
|
242
|
+
* each null for none. One row at most, and none until the installation sets
|
|
243
|
+
* them. Belongs to no fleet.
|
|
230
244
|
*/
|
|
231
245
|
export type InstallationSettings = Prisma.InstallationSettingsModel;
|
|
232
246
|
/**
|
|
@@ -115,6 +115,11 @@ export type InstallationDeclaredNetworkRules = Prisma.InstallationDeclaredNetwor
|
|
|
115
115
|
* retires.
|
|
116
116
|
*/
|
|
117
117
|
export type ScopeNamespace = Prisma.ScopeNamespaceModel;
|
|
118
|
+
/**
|
|
119
|
+
* Model DefinedScope
|
|
120
|
+
* One of the fleet's own scopes (design gateway-scopes, 4.1), with its one-line description.
|
|
121
|
+
*/
|
|
122
|
+
export type DefinedScope = Prisma.DefinedScopeModel;
|
|
118
123
|
/**
|
|
119
124
|
* Model VerifiedFacts
|
|
120
125
|
* One writer's verified facts about a ship (decision 0059): what it checked,
|
|
@@ -171,6 +176,13 @@ export type Message = Prisma.MessageModel;
|
|
|
171
176
|
* both participants, the opener at first.
|
|
172
177
|
*/
|
|
173
178
|
export type Meeting = Prisma.MeetingModel;
|
|
179
|
+
/**
|
|
180
|
+
* Model Schedule
|
|
181
|
+
* How a meeting's free mic passes (decision 0061, M9): the moderator's pick, or the oldest request.
|
|
182
|
+
* A ship's scheduled message (decision 0062): its send input as given, its timing and
|
|
183
|
+
* refusal strategy, its state, next send time and attempt, and its last outcome.
|
|
184
|
+
*/
|
|
185
|
+
export type Schedule = Prisma.ScheduleModel;
|
|
174
186
|
/**
|
|
175
187
|
* Model MeetingMicRequest
|
|
176
188
|
* A participant waiting for the mic of its meeting, since its time (decision 0061, M8): once per meeting.
|
|
@@ -243,9 +255,11 @@ export type ConsoleSession = Prisma.ConsoleSessionModel;
|
|
|
243
255
|
export type SignInTicket = Prisma.SignInTicketModel;
|
|
244
256
|
/**
|
|
245
257
|
* Model InstallationSettings
|
|
246
|
-
* The installation's settings (decision 0020): the default ship
|
|
247
|
-
*
|
|
248
|
-
*
|
|
258
|
+
* The installation's settings (decision 0020): the default ship, daily message,
|
|
259
|
+
* schedules per ship and minimum schedule interval (seconds) limits and the
|
|
260
|
+
* default retention in days (decision 0066) for fleets, and the cap on fleets,
|
|
261
|
+
* each null for none. One row at most, and none until the installation sets
|
|
262
|
+
* them. Belongs to no fleet.
|
|
249
263
|
*/
|
|
250
264
|
export type InstallationSettings = Prisma.InstallationSettingsModel;
|
|
251
265
|
/**
|
|
@@ -49,6 +49,16 @@ export type IntNullableFilter<$PrismaModel = never> = {
|
|
|
49
49
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
50
50
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
51
51
|
};
|
|
52
|
+
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
53
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
54
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
55
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
56
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
57
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
58
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
59
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
60
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
61
|
+
};
|
|
52
62
|
export type SortOrderInput = {
|
|
53
63
|
sort: Prisma.SortOrder;
|
|
54
64
|
nulls?: Prisma.NullsOrder;
|
|
@@ -120,6 +130,19 @@ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
120
130
|
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
121
131
|
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
122
132
|
};
|
|
133
|
+
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
134
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
135
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
136
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
137
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
138
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
139
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
140
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
141
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
142
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
143
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
144
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
145
|
+
};
|
|
123
146
|
export type EnumShipKindFilter<$PrismaModel = never> = {
|
|
124
147
|
equals?: $Enums.ShipKind | Prisma.EnumShipKindFieldRefInput<$PrismaModel>;
|
|
125
148
|
in?: $Enums.ShipKind[] | Prisma.ListEnumShipKindFieldRefInput<$PrismaModel>;
|
|
@@ -140,16 +163,6 @@ export type StringNullableFilter<$PrismaModel = never> = {
|
|
|
140
163
|
mode?: Prisma.QueryMode;
|
|
141
164
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
142
165
|
};
|
|
143
|
-
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
144
|
-
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
145
|
-
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
146
|
-
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
147
|
-
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
148
|
-
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
149
|
-
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
150
|
-
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
151
|
-
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
152
|
-
};
|
|
153
166
|
export type EnumCommissionerKindNullableFilter<$PrismaModel = never> = {
|
|
154
167
|
equals?: $Enums.CommissionerKind | Prisma.EnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
155
168
|
in?: $Enums.CommissionerKind[] | Prisma.ListEnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
@@ -182,19 +195,6 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
182
195
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
183
196
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
184
197
|
};
|
|
185
|
-
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
186
|
-
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
187
|
-
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
188
|
-
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
189
|
-
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
190
|
-
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
191
|
-
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
192
|
-
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
193
|
-
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
194
|
-
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
195
|
-
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
196
|
-
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
197
|
-
};
|
|
198
198
|
export type EnumCommissionerKindNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
199
199
|
equals?: $Enums.CommissionerKind | Prisma.EnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
200
200
|
in?: $Enums.CommissionerKind[] | Prisma.ListEnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
@@ -438,6 +438,81 @@ export type EnumMicPatternWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
438
438
|
_min?: Prisma.NestedEnumMicPatternFilter<$PrismaModel>;
|
|
439
439
|
_max?: Prisma.NestedEnumMicPatternFilter<$PrismaModel>;
|
|
440
440
|
};
|
|
441
|
+
export type EnumScheduleTimingKindFilter<$PrismaModel = never> = {
|
|
442
|
+
equals?: $Enums.ScheduleTimingKind | Prisma.EnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
443
|
+
in?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
444
|
+
notIn?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
445
|
+
not?: Prisma.NestedEnumScheduleTimingKindFilter<$PrismaModel> | $Enums.ScheduleTimingKind;
|
|
446
|
+
};
|
|
447
|
+
export type EnumRefusalStrategyFilter<$PrismaModel = never> = {
|
|
448
|
+
equals?: $Enums.RefusalStrategy | Prisma.EnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
449
|
+
in?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
450
|
+
notIn?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
451
|
+
not?: Prisma.NestedEnumRefusalStrategyFilter<$PrismaModel> | $Enums.RefusalStrategy;
|
|
452
|
+
};
|
|
453
|
+
export type EnumMissedStrategyFilter<$PrismaModel = never> = {
|
|
454
|
+
equals?: $Enums.MissedStrategy | Prisma.EnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
455
|
+
in?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
456
|
+
notIn?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
457
|
+
not?: Prisma.NestedEnumMissedStrategyFilter<$PrismaModel> | $Enums.MissedStrategy;
|
|
458
|
+
};
|
|
459
|
+
export type EnumScheduleStateFilter<$PrismaModel = never> = {
|
|
460
|
+
equals?: $Enums.ScheduleState | Prisma.EnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
461
|
+
in?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
462
|
+
notIn?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
463
|
+
not?: Prisma.NestedEnumScheduleStateFilter<$PrismaModel> | $Enums.ScheduleState;
|
|
464
|
+
};
|
|
465
|
+
export type EnumScheduleOutcomeKindNullableFilter<$PrismaModel = never> = {
|
|
466
|
+
equals?: $Enums.ScheduleOutcomeKind | Prisma.EnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
467
|
+
in?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
468
|
+
notIn?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
469
|
+
not?: Prisma.NestedEnumScheduleOutcomeKindNullableFilter<$PrismaModel> | $Enums.ScheduleOutcomeKind | null;
|
|
470
|
+
};
|
|
471
|
+
export type EnumScheduleTimingKindWithAggregatesFilter<$PrismaModel = never> = {
|
|
472
|
+
equals?: $Enums.ScheduleTimingKind | Prisma.EnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
473
|
+
in?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
474
|
+
notIn?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
475
|
+
not?: Prisma.NestedEnumScheduleTimingKindWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleTimingKind;
|
|
476
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
477
|
+
_min?: Prisma.NestedEnumScheduleTimingKindFilter<$PrismaModel>;
|
|
478
|
+
_max?: Prisma.NestedEnumScheduleTimingKindFilter<$PrismaModel>;
|
|
479
|
+
};
|
|
480
|
+
export type EnumRefusalStrategyWithAggregatesFilter<$PrismaModel = never> = {
|
|
481
|
+
equals?: $Enums.RefusalStrategy | Prisma.EnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
482
|
+
in?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
483
|
+
notIn?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
484
|
+
not?: Prisma.NestedEnumRefusalStrategyWithAggregatesFilter<$PrismaModel> | $Enums.RefusalStrategy;
|
|
485
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
486
|
+
_min?: Prisma.NestedEnumRefusalStrategyFilter<$PrismaModel>;
|
|
487
|
+
_max?: Prisma.NestedEnumRefusalStrategyFilter<$PrismaModel>;
|
|
488
|
+
};
|
|
489
|
+
export type EnumMissedStrategyWithAggregatesFilter<$PrismaModel = never> = {
|
|
490
|
+
equals?: $Enums.MissedStrategy | Prisma.EnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
491
|
+
in?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
492
|
+
notIn?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
493
|
+
not?: Prisma.NestedEnumMissedStrategyWithAggregatesFilter<$PrismaModel> | $Enums.MissedStrategy;
|
|
494
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
495
|
+
_min?: Prisma.NestedEnumMissedStrategyFilter<$PrismaModel>;
|
|
496
|
+
_max?: Prisma.NestedEnumMissedStrategyFilter<$PrismaModel>;
|
|
497
|
+
};
|
|
498
|
+
export type EnumScheduleStateWithAggregatesFilter<$PrismaModel = never> = {
|
|
499
|
+
equals?: $Enums.ScheduleState | Prisma.EnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
500
|
+
in?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
501
|
+
notIn?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
502
|
+
not?: Prisma.NestedEnumScheduleStateWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleState;
|
|
503
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
504
|
+
_min?: Prisma.NestedEnumScheduleStateFilter<$PrismaModel>;
|
|
505
|
+
_max?: Prisma.NestedEnumScheduleStateFilter<$PrismaModel>;
|
|
506
|
+
};
|
|
507
|
+
export type EnumScheduleOutcomeKindNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
508
|
+
equals?: $Enums.ScheduleOutcomeKind | Prisma.EnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
509
|
+
in?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
510
|
+
notIn?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
511
|
+
not?: Prisma.NestedEnumScheduleOutcomeKindNullableWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleOutcomeKind | null;
|
|
512
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
513
|
+
_min?: Prisma.NestedEnumScheduleOutcomeKindNullableFilter<$PrismaModel>;
|
|
514
|
+
_max?: Prisma.NestedEnumScheduleOutcomeKindNullableFilter<$PrismaModel>;
|
|
515
|
+
};
|
|
441
516
|
export type EnumDeliveryStateFilter<$PrismaModel = never> = {
|
|
442
517
|
equals?: $Enums.DeliveryState | Prisma.EnumDeliveryStateFieldRefInput<$PrismaModel>;
|
|
443
518
|
in?: $Enums.DeliveryState[] | Prisma.ListEnumDeliveryStateFieldRefInput<$PrismaModel>;
|
|
@@ -635,6 +710,16 @@ export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
|
635
710
|
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
636
711
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
637
712
|
};
|
|
713
|
+
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
714
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
715
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
716
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
717
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
718
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
719
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
720
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
721
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
722
|
+
};
|
|
638
723
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
639
724
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
640
725
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
@@ -731,6 +816,19 @@ export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|
|
731
816
|
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
732
817
|
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null;
|
|
733
818
|
};
|
|
819
|
+
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
820
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
821
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
822
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
823
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
824
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
825
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
826
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
827
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
828
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
829
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
830
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
831
|
+
};
|
|
734
832
|
export type NestedEnumShipKindFilter<$PrismaModel = never> = {
|
|
735
833
|
equals?: $Enums.ShipKind | Prisma.EnumShipKindFieldRefInput<$PrismaModel>;
|
|
736
834
|
in?: $Enums.ShipKind[] | Prisma.ListEnumShipKindFieldRefInput<$PrismaModel>;
|
|
@@ -750,16 +848,6 @@ export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
|
750
848
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
751
849
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
752
850
|
};
|
|
753
|
-
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
754
|
-
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
755
|
-
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
756
|
-
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
757
|
-
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
758
|
-
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
759
|
-
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
760
|
-
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
761
|
-
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
762
|
-
};
|
|
763
851
|
export type NestedEnumCommissionerKindNullableFilter<$PrismaModel = never> = {
|
|
764
852
|
equals?: $Enums.CommissionerKind | Prisma.EnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
765
853
|
in?: $Enums.CommissionerKind[] | Prisma.ListEnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
@@ -791,19 +879,6 @@ export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
791
879
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
792
880
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
793
881
|
};
|
|
794
|
-
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
795
|
-
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
796
|
-
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
797
|
-
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
|
|
798
|
-
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
799
|
-
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
800
|
-
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
801
|
-
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
802
|
-
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
803
|
-
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
804
|
-
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
805
|
-
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
806
|
-
};
|
|
807
882
|
export type NestedEnumCommissionerKindNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
808
883
|
equals?: $Enums.CommissionerKind | Prisma.EnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
809
884
|
in?: $Enums.CommissionerKind[] | Prisma.ListEnumCommissionerKindFieldRefInput<$PrismaModel> | null;
|
|
@@ -997,6 +1072,81 @@ export type NestedEnumMicPatternWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
997
1072
|
_min?: Prisma.NestedEnumMicPatternFilter<$PrismaModel>;
|
|
998
1073
|
_max?: Prisma.NestedEnumMicPatternFilter<$PrismaModel>;
|
|
999
1074
|
};
|
|
1075
|
+
export type NestedEnumScheduleTimingKindFilter<$PrismaModel = never> = {
|
|
1076
|
+
equals?: $Enums.ScheduleTimingKind | Prisma.EnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
1077
|
+
in?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
1078
|
+
notIn?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
1079
|
+
not?: Prisma.NestedEnumScheduleTimingKindFilter<$PrismaModel> | $Enums.ScheduleTimingKind;
|
|
1080
|
+
};
|
|
1081
|
+
export type NestedEnumRefusalStrategyFilter<$PrismaModel = never> = {
|
|
1082
|
+
equals?: $Enums.RefusalStrategy | Prisma.EnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
1083
|
+
in?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
1084
|
+
notIn?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
1085
|
+
not?: Prisma.NestedEnumRefusalStrategyFilter<$PrismaModel> | $Enums.RefusalStrategy;
|
|
1086
|
+
};
|
|
1087
|
+
export type NestedEnumMissedStrategyFilter<$PrismaModel = never> = {
|
|
1088
|
+
equals?: $Enums.MissedStrategy | Prisma.EnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
1089
|
+
in?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
1090
|
+
notIn?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
1091
|
+
not?: Prisma.NestedEnumMissedStrategyFilter<$PrismaModel> | $Enums.MissedStrategy;
|
|
1092
|
+
};
|
|
1093
|
+
export type NestedEnumScheduleStateFilter<$PrismaModel = never> = {
|
|
1094
|
+
equals?: $Enums.ScheduleState | Prisma.EnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
1095
|
+
in?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
1096
|
+
notIn?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
1097
|
+
not?: Prisma.NestedEnumScheduleStateFilter<$PrismaModel> | $Enums.ScheduleState;
|
|
1098
|
+
};
|
|
1099
|
+
export type NestedEnumScheduleOutcomeKindNullableFilter<$PrismaModel = never> = {
|
|
1100
|
+
equals?: $Enums.ScheduleOutcomeKind | Prisma.EnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
1101
|
+
in?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
1102
|
+
notIn?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
1103
|
+
not?: Prisma.NestedEnumScheduleOutcomeKindNullableFilter<$PrismaModel> | $Enums.ScheduleOutcomeKind | null;
|
|
1104
|
+
};
|
|
1105
|
+
export type NestedEnumScheduleTimingKindWithAggregatesFilter<$PrismaModel = never> = {
|
|
1106
|
+
equals?: $Enums.ScheduleTimingKind | Prisma.EnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
1107
|
+
in?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
1108
|
+
notIn?: $Enums.ScheduleTimingKind[] | Prisma.ListEnumScheduleTimingKindFieldRefInput<$PrismaModel>;
|
|
1109
|
+
not?: Prisma.NestedEnumScheduleTimingKindWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleTimingKind;
|
|
1110
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
1111
|
+
_min?: Prisma.NestedEnumScheduleTimingKindFilter<$PrismaModel>;
|
|
1112
|
+
_max?: Prisma.NestedEnumScheduleTimingKindFilter<$PrismaModel>;
|
|
1113
|
+
};
|
|
1114
|
+
export type NestedEnumRefusalStrategyWithAggregatesFilter<$PrismaModel = never> = {
|
|
1115
|
+
equals?: $Enums.RefusalStrategy | Prisma.EnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
1116
|
+
in?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
1117
|
+
notIn?: $Enums.RefusalStrategy[] | Prisma.ListEnumRefusalStrategyFieldRefInput<$PrismaModel>;
|
|
1118
|
+
not?: Prisma.NestedEnumRefusalStrategyWithAggregatesFilter<$PrismaModel> | $Enums.RefusalStrategy;
|
|
1119
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
1120
|
+
_min?: Prisma.NestedEnumRefusalStrategyFilter<$PrismaModel>;
|
|
1121
|
+
_max?: Prisma.NestedEnumRefusalStrategyFilter<$PrismaModel>;
|
|
1122
|
+
};
|
|
1123
|
+
export type NestedEnumMissedStrategyWithAggregatesFilter<$PrismaModel = never> = {
|
|
1124
|
+
equals?: $Enums.MissedStrategy | Prisma.EnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
1125
|
+
in?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
1126
|
+
notIn?: $Enums.MissedStrategy[] | Prisma.ListEnumMissedStrategyFieldRefInput<$PrismaModel>;
|
|
1127
|
+
not?: Prisma.NestedEnumMissedStrategyWithAggregatesFilter<$PrismaModel> | $Enums.MissedStrategy;
|
|
1128
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
1129
|
+
_min?: Prisma.NestedEnumMissedStrategyFilter<$PrismaModel>;
|
|
1130
|
+
_max?: Prisma.NestedEnumMissedStrategyFilter<$PrismaModel>;
|
|
1131
|
+
};
|
|
1132
|
+
export type NestedEnumScheduleStateWithAggregatesFilter<$PrismaModel = never> = {
|
|
1133
|
+
equals?: $Enums.ScheduleState | Prisma.EnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
1134
|
+
in?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
1135
|
+
notIn?: $Enums.ScheduleState[] | Prisma.ListEnumScheduleStateFieldRefInput<$PrismaModel>;
|
|
1136
|
+
not?: Prisma.NestedEnumScheduleStateWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleState;
|
|
1137
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
1138
|
+
_min?: Prisma.NestedEnumScheduleStateFilter<$PrismaModel>;
|
|
1139
|
+
_max?: Prisma.NestedEnumScheduleStateFilter<$PrismaModel>;
|
|
1140
|
+
};
|
|
1141
|
+
export type NestedEnumScheduleOutcomeKindNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
1142
|
+
equals?: $Enums.ScheduleOutcomeKind | Prisma.EnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
1143
|
+
in?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
1144
|
+
notIn?: $Enums.ScheduleOutcomeKind[] | Prisma.ListEnumScheduleOutcomeKindFieldRefInput<$PrismaModel> | null;
|
|
1145
|
+
not?: Prisma.NestedEnumScheduleOutcomeKindNullableWithAggregatesFilter<$PrismaModel> | $Enums.ScheduleOutcomeKind | null;
|
|
1146
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
1147
|
+
_min?: Prisma.NestedEnumScheduleOutcomeKindNullableFilter<$PrismaModel>;
|
|
1148
|
+
_max?: Prisma.NestedEnumScheduleOutcomeKindNullableFilter<$PrismaModel>;
|
|
1149
|
+
};
|
|
1000
1150
|
export type NestedEnumDeliveryStateFilter<$PrismaModel = never> = {
|
|
1001
1151
|
equals?: $Enums.DeliveryState | Prisma.EnumDeliveryStateFieldRefInput<$PrismaModel>;
|
|
1002
1152
|
in?: $Enums.DeliveryState[] | Prisma.ListEnumDeliveryStateFieldRefInput<$PrismaModel>;
|
|
@@ -45,6 +45,7 @@ export declare const SelectorKind: {
|
|
|
45
45
|
readonly ship: "ship";
|
|
46
46
|
readonly type: "type";
|
|
47
47
|
readonly meeting: "meeting";
|
|
48
|
+
readonly label: "label";
|
|
48
49
|
};
|
|
49
50
|
export type SelectorKind = (typeof SelectorKind)[keyof typeof SelectorKind];
|
|
50
51
|
export declare const DeliveryState: {
|
|
@@ -59,6 +60,37 @@ export declare const DeliveryState: {
|
|
|
59
60
|
readonly abandoned: "abandoned";
|
|
60
61
|
};
|
|
61
62
|
export type DeliveryState = (typeof DeliveryState)[keyof typeof DeliveryState];
|
|
63
|
+
export declare const ScheduleState: {
|
|
64
|
+
readonly active: "active";
|
|
65
|
+
readonly paused: "paused";
|
|
66
|
+
readonly ended: "ended";
|
|
67
|
+
readonly cancelled: "cancelled";
|
|
68
|
+
};
|
|
69
|
+
export type ScheduleState = (typeof ScheduleState)[keyof typeof ScheduleState];
|
|
70
|
+
export declare const ScheduleTimingKind: {
|
|
71
|
+
readonly once: "once";
|
|
72
|
+
readonly every: "every";
|
|
73
|
+
readonly cron: "cron";
|
|
74
|
+
};
|
|
75
|
+
export type ScheduleTimingKind = (typeof ScheduleTimingKind)[keyof typeof ScheduleTimingKind];
|
|
76
|
+
export declare const RefusalStrategy: {
|
|
77
|
+
readonly skip: "skip";
|
|
78
|
+
readonly retry: "retry";
|
|
79
|
+
readonly pause: "pause";
|
|
80
|
+
};
|
|
81
|
+
export type RefusalStrategy = (typeof RefusalStrategy)[keyof typeof RefusalStrategy];
|
|
82
|
+
export declare const MissedStrategy: {
|
|
83
|
+
readonly each: "each";
|
|
84
|
+
readonly once: "once";
|
|
85
|
+
readonly skip: "skip";
|
|
86
|
+
};
|
|
87
|
+
export type MissedStrategy = (typeof MissedStrategy)[keyof typeof MissedStrategy];
|
|
88
|
+
export declare const ScheduleOutcomeKind: {
|
|
89
|
+
readonly sent: "sent";
|
|
90
|
+
readonly refused: "refused";
|
|
91
|
+
readonly missed: "missed";
|
|
92
|
+
};
|
|
93
|
+
export type ScheduleOutcomeKind = (typeof ScheduleOutcomeKind)[keyof typeof ScheduleOutcomeKind];
|
|
62
94
|
export declare const MicPattern: {
|
|
63
95
|
readonly moderator: "moderator";
|
|
64
96
|
readonly fifo: "fifo";
|
|
@@ -47,7 +47,8 @@ export const CrewStatus = {
|
|
|
47
47
|
export const SelectorKind = {
|
|
48
48
|
ship: 'ship',
|
|
49
49
|
type: 'type',
|
|
50
|
-
meeting: 'meeting'
|
|
50
|
+
meeting: 'meeting',
|
|
51
|
+
label: 'label'
|
|
51
52
|
};
|
|
52
53
|
export const DeliveryState = {
|
|
53
54
|
pending: 'pending',
|
|
@@ -60,6 +61,32 @@ export const DeliveryState = {
|
|
|
60
61
|
dismissed: 'dismissed',
|
|
61
62
|
abandoned: 'abandoned'
|
|
62
63
|
};
|
|
64
|
+
export const ScheduleState = {
|
|
65
|
+
active: 'active',
|
|
66
|
+
paused: 'paused',
|
|
67
|
+
ended: 'ended',
|
|
68
|
+
cancelled: 'cancelled'
|
|
69
|
+
};
|
|
70
|
+
export const ScheduleTimingKind = {
|
|
71
|
+
once: 'once',
|
|
72
|
+
every: 'every',
|
|
73
|
+
cron: 'cron'
|
|
74
|
+
};
|
|
75
|
+
export const RefusalStrategy = {
|
|
76
|
+
skip: 'skip',
|
|
77
|
+
retry: 'retry',
|
|
78
|
+
pause: 'pause'
|
|
79
|
+
};
|
|
80
|
+
export const MissedStrategy = {
|
|
81
|
+
each: 'each',
|
|
82
|
+
once: 'once',
|
|
83
|
+
skip: 'skip'
|
|
84
|
+
};
|
|
85
|
+
export const ScheduleOutcomeKind = {
|
|
86
|
+
sent: 'sent',
|
|
87
|
+
refused: 'refused',
|
|
88
|
+
missed: 'missed'
|
|
89
|
+
};
|
|
63
90
|
export const MicPattern = {
|
|
64
91
|
moderator: 'moderator',
|
|
65
92
|
fifo: 'fifo'
|