@outbuild-company/schedule-core 1.36.0 → 1.38.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/index.d.cts CHANGED
@@ -336,6 +336,10 @@ declare const COMPLETED_PROGRESS = 100;
336
336
  declare const LOOKAHEAD_CONFIRMATION_KIND: {
337
337
  readonly HAS_LOOKAHEAD_TASKS: "has_lookahead_tasks";
338
338
  };
339
+ /** Confirmation kind raised when a paste would give pasted activities new custom ids because other activities already hold theirs. */
340
+ declare const CUSTOM_ID_CONFIRMATION_KIND: {
341
+ readonly PASTE_CONFLICTS: "custom_id_paste_conflicts";
342
+ };
339
343
 
340
344
  /** Discriminators for commands accepted by {@link ScheduleCore.dispatch}. */
341
345
  declare const DISPATCH_ACTION_KIND: {
@@ -1459,8 +1463,20 @@ interface LookaheadConfirmationRequest {
1459
1463
  /** Every such parent, present only when more than one blocks the change. */
1460
1464
  readonly activityIds?: readonly string[];
1461
1465
  }
1462
- /** A confirmation request raised by a data date edit or by a lookahead guard. */
1463
- type DispatchConfirmationRequest = ConfirmationRequest | LookaheadConfirmationRequest;
1466
+ /**
1467
+ * Returned with `reason: 'confirmation_required'` when an activity paste
1468
+ * would keep a copied custom id that another activity already holds, or the
1469
+ * same custom id twice. Re-dispatch the same paste with
1470
+ * `regenerateConflictingCustomIds: true` to paste it: the copies that hold a
1471
+ * listed custom id get a new one, every other copy keeps its own.
1472
+ */
1473
+ interface CustomIdConflictConfirmationRequest {
1474
+ readonly kind: typeof CUSTOM_ID_CONFIRMATION_KIND.PASTE_CONFLICTS;
1475
+ /** Every conflicting custom id, in clipboard order. */
1476
+ readonly customIds: readonly string[];
1477
+ }
1478
+ /** A confirmation request raised by a data date edit, a lookahead guard or a custom id conflict. */
1479
+ type DispatchConfirmationRequest = ConfirmationRequest | LookaheadConfirmationRequest | CustomIdConflictConfirmationRequest;
1464
1480
  /** One ordered input accepted by {@link ScheduleCore.dispatchMany}. */
1465
1481
  type DispatchManyAction = DispatchAction | ActivityBatchAction;
1466
1482
  /** Per-operation derived-work controls; both default to `false`. */
@@ -1496,6 +1512,11 @@ interface DispatchOptions {
1496
1512
  * the earlier actions of the batch left it.
1497
1513
  */
1498
1514
  lookaheadTasksByActivityId?: Readonly<Record<string, boolean>>;
1515
+ /**
1516
+ * Lets an activity paste give a new custom id to every copy whose custom id
1517
+ * conflicts, instead of rejecting with a custom id confirmation.
1518
+ */
1519
+ regenerateConflictingCustomIds?: boolean;
1499
1520
  }
1500
1521
  /**
1501
1522
  * Complete accepted or rejected command result returned unchanged by public APIs.
@@ -4100,6 +4121,99 @@ declare function getActiveBaseline(activity: {
4100
4121
  baselinePoints?: readonly CoreBaselinePoint[];
4101
4122
  } | null | undefined): CoreBaselinePoint | null;
4102
4123
 
4124
+ /**
4125
+ * Selects the normalized baseline point the consumer is currently displaying.
4126
+ *
4127
+ * Visibility is the version the user picked in the baseline selector, which may
4128
+ * differ from the active version while an older baseline is being inspected.
4129
+ *
4130
+ * @param activity - Baseline-bearing activity, or a nullish value.
4131
+ * @returns The visible point, or `null` when none is available.
4132
+ */
4133
+ declare function getVisibleBaseline(activity: {
4134
+ baselinePoints?: readonly CoreBaselinePoint[];
4135
+ } | null | undefined): CoreBaselinePoint | null;
4136
+
4137
+ /** Calendars of the schedule whose working time is read. */
4138
+ interface CalendarReaderInput {
4139
+ readonly calendars: readonly BackendCalendarInput[];
4140
+ readonly baseCalendars?: readonly BackendCalendarInput[];
4141
+ }
4142
+
4143
+ /** One calendar of a schedule, reduced to working-time measurement. */
4144
+ interface StandaloneCalendar {
4145
+ /**
4146
+ * Signed working hours between two instants on this calendar; negative
4147
+ * when `end` precedes `start`. Converting hours to days is the caller's
4148
+ * job.
4149
+ */
4150
+ readonly calculateDuration: (start: Date, end: Date) => number;
4151
+ /**
4152
+ * Whether `date` falls in working time. With `unit` `'day'`, true when the
4153
+ * day has any working hour.
4154
+ */
4155
+ readonly isWorkTime: (date: Date, unit: CalendarUnit) => boolean;
4156
+ /**
4157
+ * The instant reached after `durationHours` working hours from `start`.
4158
+ * A duration that ends at a shift end returns that shift end.
4159
+ */
4160
+ readonly calculateEndDate: (start: Date, durationHours: number) => Date;
4161
+ /**
4162
+ * The closest working instant to `query.date` in `query.direction`. A date
4163
+ * inside working time comes back unchanged. Outside it, `'hour'` gives the
4164
+ * next shift start for `'future'` and the previous shift end for `'past'`;
4165
+ * `'day'` gives the start of the next working day for `'future'` and the
4166
+ * end of the previous working day (00:00 of the day after it) for `'past'`.
4167
+ * A `'past'` search looks back up to 3660 days and throws when it finds no
4168
+ * working day.
4169
+ */
4170
+ readonly getClosestWorkTime: (query: WorkTimeQuery) => Date;
4171
+ /**
4172
+ * The shift windows of the day that contains `date`, as `HH:mm-HH:mm`
4173
+ * strings; empty on a non-working day. A workable exception day returns
4174
+ * its own shifts.
4175
+ */
4176
+ readonly getWorkHours: (date: Date) => string[];
4177
+ }
4178
+ /** Read-only access to a schedule's calendars, outside a schedule instance. */
4179
+ interface StandaloneCalendarReader {
4180
+ /**
4181
+ * Returns the calendar for `calendarId`; a `null` or unknown id resolves
4182
+ * to the schedule default calendar.
4183
+ */
4184
+ readonly getCalendar: (calendarId: CalendarId | null) => StandaloneCalendar;
4185
+ }
4186
+ /**
4187
+ * Builds a standalone calendar reader with the same normalization and
4188
+ * calendar setup the schedule uses, so working-time queries match the live
4189
+ * schedule. Throws when `calendars` is empty.
4190
+ */
4191
+ declare function createCalendarReader(input: CalendarReaderInput): StandaloneCalendarReader;
4192
+
4193
+ /** Inputs of {@link baselineVarianceDays}. */
4194
+ interface BaselineVarianceDaysInput {
4195
+ /** Live end date of the activity, or `null` when it has none. */
4196
+ readonly endDate: Date | null | undefined;
4197
+ /** End date of the baseline to measure against, or `null` when none applies. */
4198
+ readonly baselineEnd: Date | null | undefined;
4199
+ /** Calendar the activity is scheduled on; only working-time measurement is used. */
4200
+ readonly calendar: Pick<StandaloneCalendar, 'calculateDuration'>;
4201
+ /** Working hours in one schedule day. */
4202
+ readonly hoursPerDay: number;
4203
+ }
4204
+ /**
4205
+ * Calculates the working-day gap between an activity end and a baseline end.
4206
+ *
4207
+ * This is the rule behind the Gantt baseline variance column. The gap is
4208
+ * measured on the given calendar, so non-working time is excluded, and is
4209
+ * rounded to two decimals. A positive result means the activity finishes
4210
+ * after the baseline; a negative result means it finishes ahead of it.
4211
+ *
4212
+ * @param input - End dates, the activity calendar and the sector working hours per day.
4213
+ * @returns Signed working days, `0` when both ends coincide, or `null` when a date is missing or invalid, or `hoursPerDay` is not a positive finite number.
4214
+ */
4215
+ declare function baselineVarianceDays(input: BaselineVarianceDaysInput): number | null;
4216
+
4103
4217
  /** Calendar duration boundary used by expected-progress calculation. */
4104
4218
  interface CalendarLike {
4105
4219
  /** @returns Working duration between two dates in a consistent calendar unit. */
@@ -4270,62 +4384,6 @@ declare function resolveExpectedFinishDateSelection(input: {
4270
4384
  readonly displayedFinish: Date;
4271
4385
  }): Date;
4272
4386
 
4273
- /** Calendars of the schedule whose working time is read. */
4274
- interface CalendarReaderInput {
4275
- readonly calendars: readonly BackendCalendarInput[];
4276
- readonly baseCalendars?: readonly BackendCalendarInput[];
4277
- }
4278
-
4279
- /** One calendar of a schedule, reduced to working-time measurement. */
4280
- interface StandaloneCalendar {
4281
- /**
4282
- * Signed working hours between two instants on this calendar; negative
4283
- * when `end` precedes `start`. Converting hours to days is the caller's
4284
- * job.
4285
- */
4286
- readonly calculateDuration: (start: Date, end: Date) => number;
4287
- /**
4288
- * Whether `date` falls in working time. With `unit` `'day'`, true when the
4289
- * day has any working hour.
4290
- */
4291
- readonly isWorkTime: (date: Date, unit: CalendarUnit) => boolean;
4292
- /**
4293
- * The instant reached after `durationHours` working hours from `start`.
4294
- * A duration that ends at a shift end returns that shift end.
4295
- */
4296
- readonly calculateEndDate: (start: Date, durationHours: number) => Date;
4297
- /**
4298
- * The closest working instant to `query.date` in `query.direction`. A date
4299
- * inside working time comes back unchanged. Outside it, `'hour'` gives the
4300
- * next shift start for `'future'` and the previous shift end for `'past'`;
4301
- * `'day'` gives the start of the next working day for `'future'` and the
4302
- * end of the previous working day (00:00 of the day after it) for `'past'`.
4303
- * A `'past'` search looks back up to 3660 days and throws when it finds no
4304
- * working day.
4305
- */
4306
- readonly getClosestWorkTime: (query: WorkTimeQuery) => Date;
4307
- /**
4308
- * The shift windows of the day that contains `date`, as `HH:mm-HH:mm`
4309
- * strings; empty on a non-working day. A workable exception day returns
4310
- * its own shifts.
4311
- */
4312
- readonly getWorkHours: (date: Date) => string[];
4313
- }
4314
- /** Read-only access to a schedule's calendars, outside a schedule instance. */
4315
- interface StandaloneCalendarReader {
4316
- /**
4317
- * Returns the calendar for `calendarId`; a `null` or unknown id resolves
4318
- * to the schedule default calendar.
4319
- */
4320
- readonly getCalendar: (calendarId: CalendarId | null) => StandaloneCalendar;
4321
- }
4322
- /**
4323
- * Builds a standalone calendar reader with the same normalization and
4324
- * calendar setup the schedule uses, so working-time queries match the live
4325
- * schedule. Throws when `calendars` is empty.
4326
- */
4327
- declare function createCalendarReader(input: CalendarReaderInput): StandaloneCalendarReader;
4328
-
4329
4387
  /** Calendars of the schedule that owns the activities being re-derived. */
4330
4388
  interface LookaheadDerivedCalendars {
4331
4389
  readonly calendars: readonly BackendCalendarInput[];
@@ -4558,4 +4616,4 @@ declare const DISPATCH_TRACK_EVENT: {
4558
4616
  /** Consumer analytics event name emitted by a schedule mutation. */
4559
4617
  type DispatchTrackEvent = (typeof DISPATCH_TRACK_EVENT)[keyof typeof DISPATCH_TRACK_EVENT];
4560
4618
 
4561
- export { ACTIVITY_BATCH_ACTION_KIND, ACTIVITY_BATCH_MODE, ACTIVITY_DATE_EDGE, ACTIVITY_FIELD, ACTIVITY_PONDERATOR_CRITERION, ACTIVITY_PROGRESS_ORIGIN, ACTIVITY_TYPE, type ActivityBaselineSnapshot, type ActivityBatchAction, type ActivityBatchInput, type ActivityBatchItem, type ActivityBatchItemInput, type ActivityBatchLinkInput$1 as ActivityBatchLinkInput, type ActivityBatchMode, type ActivityBatchParentReference, type ActivityBatchReference, type ActivityBulkEdit, type ActivityClipboardEntry, type ActivityClipboardReferences, type ActivityClipboardSnapshot, type ActivityCreateInput, type ActivityCreationOverrides, type ActivityCreter, type ActivityDateEdge, type ActivityDateEdit, type ActivityField, type ActivityFieldEdit, type ActivityFieldValue, type ActivityFieldsRestoreEntry, type ActivityFieldsRestoreInput, type ActivityId, type ActivityLookaheadSyncInput, type ActivityMoveInput, type ActivityPasteDestination, type ActivityRowFacts, type ActivityStatus, type ActivityType, type ApplyLookaheadConversionInput, BASELINE_ROLE, type BackendActivityInput, type BackendCalendarExceptionInput, type BackendCalendarInput, type BackendLinkInput, type BackendRow, type BackendRowScope, type BackendScheduleInput, type BackendSectorInput, type BackendShiftInput, type BaselinePoint, type BaselineRole, type BaselineVersion, type BranchOrderChange, CALENDAR_UNIT, CHANGE_SET_SOURCE_KIND, COLUMN, COMPLETED_PROGRESS, CONFIRMATION_KIND, CONSTRAINT_TYPE, CONSTRAINT_TYPE_TO_LABEL, CONSTRAINT_WARNING_KIND, CREATION_KIND, type Calendar, type CalendarId, type CalendarLike, type CalendarReaderInput, type CalendarUnit, type CalendarWorktime, type ChangeSet, type ChangeSetSource, type ColumnName, type ConfirmationAlternative, type ConfirmationKind, type ConfirmationRequest, type ConstraintType, type ConstraintWarning, type CoreActivity, type CoreBaselinePoint, type CreationKind, type CriticalPathResult, P6_PROPERTY_CONTRACT as DATA_DATE_PROPERTY_CONTRACT, DATE_GESTURE_KIND, DEFAULT_HOURS_PER_DAY, DISPATCH_ACTION_KIND, DISPATCH_ACTION_KINDS, DISPATCH_LINK_OPERATION_KIND, DISPATCH_TRACK_EVENT, type P6ActivityCalculationInputs as DataDateActivityCalculationInputs, type P6ActivityColumnKey as DataDateActivityColumnKey, type P6ActivityData as DataDateActivityData, type P6ActivityDraftState as DataDateActivityDraftState, type P6ActivityInputPatch as DataDateActivityInputPatch, type P6ActivityState as DataDateActivityState, type P6ActivityStateDto as DataDateActivityStateDto, type P6ActivityType as DataDateActivityType, P6CapabilityError as DataDateCapabilityError, type P6CapabilityErrorCode as DataDateCapabilityErrorCode, type P6DependencyReference as DataDateDependencyReference, type P6DiagnosticProjectIdentity as DataDateDiagnosticProjectIdentity, type P6DiagnosticRelationship as DataDateDiagnosticRelationship, type P6DiagnosticRelationshipType as DataDateDiagnosticRelationshipType, type P6DurationType as DataDateDurationType, type P6EndingActivityOption as DataDateEndingActivityOption, type P6EndingActivityPage as DataDateEndingActivityPage, type P6EndingActivitySearch as DataDateEndingActivitySearch, type P6MappedScheduleOptions as DataDateMappedScheduleOptions, type P6MissingActivityInput as DataDateMissingActivityInput, type P6OutOfSequencePolicy as DataDateOutOfSequencePolicy, type P6ProjectPlannedStartChange as DataDateProjectPlannedStartChange, type P6ProjectState as DataDateProjectState, type P6PropertyContractRow as DataDatePropertyContractRow, type P6PropertyEdgeCases as DataDatePropertyEdgeCases, type P6RawProjectOptions as DataDateRawProjectOptions, type P6RawScheduleOptions as DataDateRawScheduleOptions, type P6RequiredHistoricalField as DataDateRequiredHistoricalField, type P6ResourceAssignment as DataDateResourceAssignment, type P6ScheduleDiagnostic as DataDateScheduleDiagnostic, type P6ScheduleDiagnosticCode as DataDateScheduleDiagnosticCode, type P6ScheduleDiagnosticDto as DataDateScheduleDiagnosticDto, type P6ScheduleDto as DataDateScheduleDto, type P6ScheduleInput as DataDateScheduleInput, type P6ScheduleReadiness as DataDateScheduleReadiness, type P6ScheduleResult as DataDateScheduleResult, type P6ScheduleRunLog as DataDateScheduleRunLog, type P6ScheduleRunLogDto as DataDateScheduleRunLogDto, type P6ScheduleSettings as DataDateScheduleSettings, type P6ScheduleSettingsDto as DataDateScheduleSettingsDto, type P6ScheduleWarning as DataDateScheduleWarning, type P6SerializableState as DataDateSerializableState, type P6SettingsChange as DataDateSettingsChange, type DateGesture, type DateGestureKind, type DateGesturePreview, type DatesBatchVerdict, type DeletedActivitySnapshot, type DeletedLinkSnapshot, type DispatchAction, type DispatchActionKind, type DispatchConfirmationRequest, type DispatchManyAction, type DispatchManyChangeSetSource, type DispatchManyResult, type DispatchOptions, type DispatchRejectReason, type DispatchResult, type DispatchTrackEvent, EDIT_ALERT_KEY, EDIT_DENIAL_REASON, ENTITY_CHANGE_KIND, type EditAlertKey, type EditDenialReason, type EditResult, type EditableColumnName, type EffectiveGraphAudit, type EntityChange, type ActivityBatchLinkInput as ErgonomicActivityBatchLinkInput, type ExpectedProgressAdapter, FILTER_FIELD, FILTER_LOGIC, FILTER_OPERATOR, FILTER_REJECTION_REASON, FILTER_VALUE_KIND, FLAT_WBS_DEPTH, type FilterCriterion, type FilterCriterionGroup, type FilterCriterionValue, type FilterDateRange, type FilterField, type FilterLogic, type FilterOperator, type FilterRejection, type FilterState, type FilterValueKind, GROUP_ID_PREFIX, GROUP_ID_SEPARATOR, type GroupCriterion, type GroupCriterionInput, type GroupLevelWindow, type GroupState, type GroupStateInput, type HistoryRevertFieldsEntry, type HistoryRevertInput, type HistoryRevertLink, type HostScheduleSource, type IdCounters, type ImpactRequestSyncInput, LINK_BATCH_OPERATION_KIND, LINK_CODE, LINK_CODE_TO_TYPE, LINK_REJECTION_REASON, LINK_RELATIONSHIP, LINK_TYPE, LINK_TYPE_CODE, LOOKAHEAD_CONFIRMATION_KIND, type Link, type LinkBatchOperationKind, type LinkBatchRequest, type LinkBatchVerdict, type LinkCreateRequest, type LinkId, type LinkPatchRequest, type LinkRejection, type LinkRelationship, type LinkType, type LinkTypeCode, type LinkUpdateAction, type LinksBatchOperation, type LoadDiagnostic, type LoadDiagnosticCode, type LoadTimeAction, type LoadTimeSectorFlags, type LoadTimeWork, type LookaheadActualIntent, LookaheadActualTransitionError, type LookaheadActualTransitionErrorCode, type LookaheadConfirmationRequest, type LookaheadConversionFormerParent, type LookaheadConversionGroup, type LookaheadConversionInput, type LookaheadConversionMilestoneMove, type LookaheadConversionPlan, type LookaheadConversionResult, type LookaheadDerivedCalendars, type LookaheadDerivedFields, type LookaheadDerivedFieldsResolver, type LookaheadDerivedInput, type LookaheadProgressActualActivityState, type LookaheadProgressActualInput, type LookaheadProgressActualPlan, MINIMUM_GROUP_DEPTH, MINIMUM_GROUP_LEVEL, type ModifiedActivityChanges, type MutationContext, NEW_ACTIVITY_DEFAULTS, NOT_STARTED_PROGRESS, ORDER_DIRECTION, ORDER_MODE, type OrderDirection, type OrderMode, type OrderRule, type OrderState, PASTE_PLACEMENT, PERSISTENCE_REBASE_CONFLICT_KIND, PERSISTENCE_REBASE_ENTITY, type ParsedInput, type PendingRequest, type PersistableActivityField, type PersistedEntityIdentity, type PersistenceCheckpoint, type PersistenceRebaseConflict, type PersistenceRebaseConflictKind, type PersistenceRebaseEntity, type PersistenceRebaseInput, type PersistenceRebaseRekey, type PersistenceRebaseRemoteChange, type PersistenceRebaseReport, type PipelineColumnName, type ProjectWorkHours, REJECTION_REASON, RESTORABLE_ACTIVITY_FIELDS, ROOT_PARENT_ID, type RenumberedActivity, type RestorableActivityField, type RevertibleActivityField, SCHEDULE_CORE_STATUS, SCHEDULE_EFFECT_KIND, SIR_AUTO_REJECT_REASON, STATUS, STATUS_CRITERIA, STRUCTURE_ACTIVITY_FIELDS, type ScheduleActivitiesApi, type ScheduleApiNamespaces, type ScheduleAutoScheduleAction, type ScheduleBaselinesApi, type ScheduleCalendarsApi, type ScheduleCellsApi, ScheduleCore, type ScheduleCoreInput, type ScheduleCoreReporter, type ScheduleCoreRestoreOptions, type ScheduleCoreSnapshot, type ScheduleCoreStatus, type ScheduleCriticalPathApi, type ScheduleP6Api as ScheduleDataDatesApi, type ScheduleDiagnosticsApi, type ScheduleEffect, type ScheduleHistoryApi, type ScheduleImpactRequestsApi, type ScheduleLinksApi, type SchedulePersistenceApi, type ScheduleProjectionApi, type ScheduleSelectionApi, type ScheduleViewApi, type SectorMetadata, type SelectionToggleInput, type StandaloneCalendar, type StandaloneCalendarReader, type StaticActivityDefaults, type StatusCriteria, type TrackingEvent, UNASSIGNED_GROUP_LABEL, UNASSIGNED_VALUE_ID, type UndoOptions, VIEW_ATTRIBUTE_KIND, VISUAL_ROW_KIND, type ViewAttributeAssignmentInput, type ViewAttributeCatalogInput, type ViewAttributeFilterCriterion, type ViewAttributeOrderRule, type ViewAttributeValueInput, type ViewFilterInput, type ViewStateChange, type ViewStatePropChange, type VisualRow, WORK_TIME_DIRECTION, type WbsDepth, type WithProplannerId, type WorkTimeDirection, type WorkTimeQuery, activityBackendRow, allowedSecondaryConstraintTypes, appendGroupRowId, buildGroupRowId, checkNoUpdatedLinks, computeExpectedProgress, createCalendarReader, createLookaheadDerivedFields, createOutbuildP6ScheduleSettings as createOutbuildDataDateScheduleSettings, createSchedule, p6InputFromDto as dataDateInputFromDto, decodeWireValue, encodeWireValue, expectedProgressFromBaseline, formatUtcAsP6WallDate, getActiveBaseline, getUnsavedActivities, hostScheduleInput, isRestorableActivityField, isRevertibleActivityField, isRootParent, isViewAttributeCriterion, isViewAttributeOrderRule, linkBackendRow, loadTimeWork, mapP6ScheduleOptions as mapDataDateScheduleOptions, movedToAnotherUtcDay, normalizeParentKey, parseFromBackend, parseP6DayAsCalendarStart, parseP6WallDateAsUtc, planLookaheadProgressActuals, prepareLookaheadProgressActuals, prepareLookaheadProgressActualsForPersistence, rescheduledOnLoad, resolveExpectedFinishDateSelection, resolveLookaheadActualDateSelection, serializeP6Activity as serializeDataDateActivity, serializeP6Settings as serializeDataDateSettings, serializeP6State as serializeDataDateState, willRunCriticalPath, yieldToBrowser };
4619
+ export { ACTIVITY_BATCH_ACTION_KIND, ACTIVITY_BATCH_MODE, ACTIVITY_DATE_EDGE, ACTIVITY_FIELD, ACTIVITY_PONDERATOR_CRITERION, ACTIVITY_PROGRESS_ORIGIN, ACTIVITY_TYPE, type ActivityBaselineSnapshot, type ActivityBatchAction, type ActivityBatchInput, type ActivityBatchItem, type ActivityBatchItemInput, type ActivityBatchLinkInput$1 as ActivityBatchLinkInput, type ActivityBatchMode, type ActivityBatchParentReference, type ActivityBatchReference, type ActivityBulkEdit, type ActivityClipboardEntry, type ActivityClipboardReferences, type ActivityClipboardSnapshot, type ActivityCreateInput, type ActivityCreationOverrides, type ActivityCreter, type ActivityDateEdge, type ActivityDateEdit, type ActivityField, type ActivityFieldEdit, type ActivityFieldValue, type ActivityFieldsRestoreEntry, type ActivityFieldsRestoreInput, type ActivityId, type ActivityLookaheadSyncInput, type ActivityMoveInput, type ActivityPasteDestination, type ActivityRowFacts, type ActivityStatus, type ActivityType, type ApplyLookaheadConversionInput, BASELINE_ROLE, type BackendActivityInput, type BackendCalendarExceptionInput, type BackendCalendarInput, type BackendLinkInput, type BackendRow, type BackendRowScope, type BackendScheduleInput, type BackendSectorInput, type BackendShiftInput, type BaselinePoint, type BaselineRole, type BaselineVarianceDaysInput, type BaselineVersion, type BranchOrderChange, CALENDAR_UNIT, CHANGE_SET_SOURCE_KIND, COLUMN, COMPLETED_PROGRESS, CONFIRMATION_KIND, CONSTRAINT_TYPE, CONSTRAINT_TYPE_TO_LABEL, CONSTRAINT_WARNING_KIND, CREATION_KIND, CUSTOM_ID_CONFIRMATION_KIND, type Calendar, type CalendarId, type CalendarLike, type CalendarReaderInput, type CalendarUnit, type CalendarWorktime, type ChangeSet, type ChangeSetSource, type ColumnName, type ConfirmationAlternative, type ConfirmationKind, type ConfirmationRequest, type ConstraintType, type ConstraintWarning, type CoreActivity, type CoreBaselinePoint, type CreationKind, type CriticalPathResult, type CustomIdConflictConfirmationRequest, P6_PROPERTY_CONTRACT as DATA_DATE_PROPERTY_CONTRACT, DATE_GESTURE_KIND, DEFAULT_HOURS_PER_DAY, DISPATCH_ACTION_KIND, DISPATCH_ACTION_KINDS, DISPATCH_LINK_OPERATION_KIND, DISPATCH_TRACK_EVENT, type P6ActivityCalculationInputs as DataDateActivityCalculationInputs, type P6ActivityColumnKey as DataDateActivityColumnKey, type P6ActivityData as DataDateActivityData, type P6ActivityDraftState as DataDateActivityDraftState, type P6ActivityInputPatch as DataDateActivityInputPatch, type P6ActivityState as DataDateActivityState, type P6ActivityStateDto as DataDateActivityStateDto, type P6ActivityType as DataDateActivityType, P6CapabilityError as DataDateCapabilityError, type P6CapabilityErrorCode as DataDateCapabilityErrorCode, type P6DependencyReference as DataDateDependencyReference, type P6DiagnosticProjectIdentity as DataDateDiagnosticProjectIdentity, type P6DiagnosticRelationship as DataDateDiagnosticRelationship, type P6DiagnosticRelationshipType as DataDateDiagnosticRelationshipType, type P6DurationType as DataDateDurationType, type P6EndingActivityOption as DataDateEndingActivityOption, type P6EndingActivityPage as DataDateEndingActivityPage, type P6EndingActivitySearch as DataDateEndingActivitySearch, type P6MappedScheduleOptions as DataDateMappedScheduleOptions, type P6MissingActivityInput as DataDateMissingActivityInput, type P6OutOfSequencePolicy as DataDateOutOfSequencePolicy, type P6ProjectPlannedStartChange as DataDateProjectPlannedStartChange, type P6ProjectState as DataDateProjectState, type P6PropertyContractRow as DataDatePropertyContractRow, type P6PropertyEdgeCases as DataDatePropertyEdgeCases, type P6RawProjectOptions as DataDateRawProjectOptions, type P6RawScheduleOptions as DataDateRawScheduleOptions, type P6RequiredHistoricalField as DataDateRequiredHistoricalField, type P6ResourceAssignment as DataDateResourceAssignment, type P6ScheduleDiagnostic as DataDateScheduleDiagnostic, type P6ScheduleDiagnosticCode as DataDateScheduleDiagnosticCode, type P6ScheduleDiagnosticDto as DataDateScheduleDiagnosticDto, type P6ScheduleDto as DataDateScheduleDto, type P6ScheduleInput as DataDateScheduleInput, type P6ScheduleReadiness as DataDateScheduleReadiness, type P6ScheduleResult as DataDateScheduleResult, type P6ScheduleRunLog as DataDateScheduleRunLog, type P6ScheduleRunLogDto as DataDateScheduleRunLogDto, type P6ScheduleSettings as DataDateScheduleSettings, type P6ScheduleSettingsDto as DataDateScheduleSettingsDto, type P6ScheduleWarning as DataDateScheduleWarning, type P6SerializableState as DataDateSerializableState, type P6SettingsChange as DataDateSettingsChange, type DateGesture, type DateGestureKind, type DateGesturePreview, type DatesBatchVerdict, type DeletedActivitySnapshot, type DeletedLinkSnapshot, type DispatchAction, type DispatchActionKind, type DispatchConfirmationRequest, type DispatchManyAction, type DispatchManyChangeSetSource, type DispatchManyResult, type DispatchOptions, type DispatchRejectReason, type DispatchResult, type DispatchTrackEvent, EDIT_ALERT_KEY, EDIT_DENIAL_REASON, ENTITY_CHANGE_KIND, type EditAlertKey, type EditDenialReason, type EditResult, type EditableColumnName, type EffectiveGraphAudit, type EntityChange, type ActivityBatchLinkInput as ErgonomicActivityBatchLinkInput, type ExpectedProgressAdapter, FILTER_FIELD, FILTER_LOGIC, FILTER_OPERATOR, FILTER_REJECTION_REASON, FILTER_VALUE_KIND, FLAT_WBS_DEPTH, type FilterCriterion, type FilterCriterionGroup, type FilterCriterionValue, type FilterDateRange, type FilterField, type FilterLogic, type FilterOperator, type FilterRejection, type FilterState, type FilterValueKind, GROUP_ID_PREFIX, GROUP_ID_SEPARATOR, type GroupCriterion, type GroupCriterionInput, type GroupLevelWindow, type GroupState, type GroupStateInput, type HistoryRevertFieldsEntry, type HistoryRevertInput, type HistoryRevertLink, type HostScheduleSource, type IdCounters, type ImpactRequestSyncInput, LINK_BATCH_OPERATION_KIND, LINK_CODE, LINK_CODE_TO_TYPE, LINK_REJECTION_REASON, LINK_RELATIONSHIP, LINK_TYPE, LINK_TYPE_CODE, LOOKAHEAD_CONFIRMATION_KIND, type Link, type LinkBatchOperationKind, type LinkBatchRequest, type LinkBatchVerdict, type LinkCreateRequest, type LinkId, type LinkPatchRequest, type LinkRejection, type LinkRelationship, type LinkType, type LinkTypeCode, type LinkUpdateAction, type LinksBatchOperation, type LoadDiagnostic, type LoadDiagnosticCode, type LoadTimeAction, type LoadTimeSectorFlags, type LoadTimeWork, type LookaheadActualIntent, LookaheadActualTransitionError, type LookaheadActualTransitionErrorCode, type LookaheadConfirmationRequest, type LookaheadConversionFormerParent, type LookaheadConversionGroup, type LookaheadConversionInput, type LookaheadConversionMilestoneMove, type LookaheadConversionPlan, type LookaheadConversionResult, type LookaheadDerivedCalendars, type LookaheadDerivedFields, type LookaheadDerivedFieldsResolver, type LookaheadDerivedInput, type LookaheadProgressActualActivityState, type LookaheadProgressActualInput, type LookaheadProgressActualPlan, MINIMUM_GROUP_DEPTH, MINIMUM_GROUP_LEVEL, type ModifiedActivityChanges, type MutationContext, NEW_ACTIVITY_DEFAULTS, NOT_STARTED_PROGRESS, ORDER_DIRECTION, ORDER_MODE, type OrderDirection, type OrderMode, type OrderRule, type OrderState, PASTE_PLACEMENT, PERSISTENCE_REBASE_CONFLICT_KIND, PERSISTENCE_REBASE_ENTITY, type ParsedInput, type PendingRequest, type PersistableActivityField, type PersistedEntityIdentity, type PersistenceCheckpoint, type PersistenceRebaseConflict, type PersistenceRebaseConflictKind, type PersistenceRebaseEntity, type PersistenceRebaseInput, type PersistenceRebaseRekey, type PersistenceRebaseRemoteChange, type PersistenceRebaseReport, type PipelineColumnName, type ProjectWorkHours, REJECTION_REASON, RESTORABLE_ACTIVITY_FIELDS, ROOT_PARENT_ID, type RenumberedActivity, type RestorableActivityField, type RevertibleActivityField, SCHEDULE_CORE_STATUS, SCHEDULE_EFFECT_KIND, SIR_AUTO_REJECT_REASON, STATUS, STATUS_CRITERIA, STRUCTURE_ACTIVITY_FIELDS, type ScheduleActivitiesApi, type ScheduleApiNamespaces, type ScheduleAutoScheduleAction, type ScheduleBaselinesApi, type ScheduleCalendarsApi, type ScheduleCellsApi, ScheduleCore, type ScheduleCoreInput, type ScheduleCoreReporter, type ScheduleCoreRestoreOptions, type ScheduleCoreSnapshot, type ScheduleCoreStatus, type ScheduleCriticalPathApi, type ScheduleP6Api as ScheduleDataDatesApi, type ScheduleDiagnosticsApi, type ScheduleEffect, type ScheduleHistoryApi, type ScheduleImpactRequestsApi, type ScheduleLinksApi, type SchedulePersistenceApi, type ScheduleProjectionApi, type ScheduleSelectionApi, type ScheduleViewApi, type SectorMetadata, type SelectionToggleInput, type StandaloneCalendar, type StandaloneCalendarReader, type StaticActivityDefaults, type StatusCriteria, type TrackingEvent, UNASSIGNED_GROUP_LABEL, UNASSIGNED_VALUE_ID, type UndoOptions, VIEW_ATTRIBUTE_KIND, VISUAL_ROW_KIND, type ViewAttributeAssignmentInput, type ViewAttributeCatalogInput, type ViewAttributeFilterCriterion, type ViewAttributeOrderRule, type ViewAttributeValueInput, type ViewFilterInput, type ViewStateChange, type ViewStatePropChange, type VisualRow, WORK_TIME_DIRECTION, type WbsDepth, type WithProplannerId, type WorkTimeDirection, type WorkTimeQuery, activityBackendRow, allowedSecondaryConstraintTypes, appendGroupRowId, baselineVarianceDays, buildGroupRowId, checkNoUpdatedLinks, computeExpectedProgress, createCalendarReader, createLookaheadDerivedFields, createOutbuildP6ScheduleSettings as createOutbuildDataDateScheduleSettings, createSchedule, p6InputFromDto as dataDateInputFromDto, decodeWireValue, encodeWireValue, expectedProgressFromBaseline, formatUtcAsP6WallDate, getActiveBaseline, getUnsavedActivities, getVisibleBaseline, hostScheduleInput, isRestorableActivityField, isRevertibleActivityField, isRootParent, isViewAttributeCriterion, isViewAttributeOrderRule, linkBackendRow, loadTimeWork, mapP6ScheduleOptions as mapDataDateScheduleOptions, movedToAnotherUtcDay, normalizeParentKey, parseFromBackend, parseP6DayAsCalendarStart, parseP6WallDateAsUtc, planLookaheadProgressActuals, prepareLookaheadProgressActuals, prepareLookaheadProgressActualsForPersistence, rescheduledOnLoad, resolveExpectedFinishDateSelection, resolveLookaheadActualDateSelection, serializeP6Activity as serializeDataDateActivity, serializeP6Settings as serializeDataDateSettings, serializeP6State as serializeDataDateState, willRunCriticalPath, yieldToBrowser };
package/dist/index.d.ts CHANGED
@@ -336,6 +336,10 @@ declare const COMPLETED_PROGRESS = 100;
336
336
  declare const LOOKAHEAD_CONFIRMATION_KIND: {
337
337
  readonly HAS_LOOKAHEAD_TASKS: "has_lookahead_tasks";
338
338
  };
339
+ /** Confirmation kind raised when a paste would give pasted activities new custom ids because other activities already hold theirs. */
340
+ declare const CUSTOM_ID_CONFIRMATION_KIND: {
341
+ readonly PASTE_CONFLICTS: "custom_id_paste_conflicts";
342
+ };
339
343
 
340
344
  /** Discriminators for commands accepted by {@link ScheduleCore.dispatch}. */
341
345
  declare const DISPATCH_ACTION_KIND: {
@@ -1459,8 +1463,20 @@ interface LookaheadConfirmationRequest {
1459
1463
  /** Every such parent, present only when more than one blocks the change. */
1460
1464
  readonly activityIds?: readonly string[];
1461
1465
  }
1462
- /** A confirmation request raised by a data date edit or by a lookahead guard. */
1463
- type DispatchConfirmationRequest = ConfirmationRequest | LookaheadConfirmationRequest;
1466
+ /**
1467
+ * Returned with `reason: 'confirmation_required'` when an activity paste
1468
+ * would keep a copied custom id that another activity already holds, or the
1469
+ * same custom id twice. Re-dispatch the same paste with
1470
+ * `regenerateConflictingCustomIds: true` to paste it: the copies that hold a
1471
+ * listed custom id get a new one, every other copy keeps its own.
1472
+ */
1473
+ interface CustomIdConflictConfirmationRequest {
1474
+ readonly kind: typeof CUSTOM_ID_CONFIRMATION_KIND.PASTE_CONFLICTS;
1475
+ /** Every conflicting custom id, in clipboard order. */
1476
+ readonly customIds: readonly string[];
1477
+ }
1478
+ /** A confirmation request raised by a data date edit, a lookahead guard or a custom id conflict. */
1479
+ type DispatchConfirmationRequest = ConfirmationRequest | LookaheadConfirmationRequest | CustomIdConflictConfirmationRequest;
1464
1480
  /** One ordered input accepted by {@link ScheduleCore.dispatchMany}. */
1465
1481
  type DispatchManyAction = DispatchAction | ActivityBatchAction;
1466
1482
  /** Per-operation derived-work controls; both default to `false`. */
@@ -1496,6 +1512,11 @@ interface DispatchOptions {
1496
1512
  * the earlier actions of the batch left it.
1497
1513
  */
1498
1514
  lookaheadTasksByActivityId?: Readonly<Record<string, boolean>>;
1515
+ /**
1516
+ * Lets an activity paste give a new custom id to every copy whose custom id
1517
+ * conflicts, instead of rejecting with a custom id confirmation.
1518
+ */
1519
+ regenerateConflictingCustomIds?: boolean;
1499
1520
  }
1500
1521
  /**
1501
1522
  * Complete accepted or rejected command result returned unchanged by public APIs.
@@ -4100,6 +4121,99 @@ declare function getActiveBaseline(activity: {
4100
4121
  baselinePoints?: readonly CoreBaselinePoint[];
4101
4122
  } | null | undefined): CoreBaselinePoint | null;
4102
4123
 
4124
+ /**
4125
+ * Selects the normalized baseline point the consumer is currently displaying.
4126
+ *
4127
+ * Visibility is the version the user picked in the baseline selector, which may
4128
+ * differ from the active version while an older baseline is being inspected.
4129
+ *
4130
+ * @param activity - Baseline-bearing activity, or a nullish value.
4131
+ * @returns The visible point, or `null` when none is available.
4132
+ */
4133
+ declare function getVisibleBaseline(activity: {
4134
+ baselinePoints?: readonly CoreBaselinePoint[];
4135
+ } | null | undefined): CoreBaselinePoint | null;
4136
+
4137
+ /** Calendars of the schedule whose working time is read. */
4138
+ interface CalendarReaderInput {
4139
+ readonly calendars: readonly BackendCalendarInput[];
4140
+ readonly baseCalendars?: readonly BackendCalendarInput[];
4141
+ }
4142
+
4143
+ /** One calendar of a schedule, reduced to working-time measurement. */
4144
+ interface StandaloneCalendar {
4145
+ /**
4146
+ * Signed working hours between two instants on this calendar; negative
4147
+ * when `end` precedes `start`. Converting hours to days is the caller's
4148
+ * job.
4149
+ */
4150
+ readonly calculateDuration: (start: Date, end: Date) => number;
4151
+ /**
4152
+ * Whether `date` falls in working time. With `unit` `'day'`, true when the
4153
+ * day has any working hour.
4154
+ */
4155
+ readonly isWorkTime: (date: Date, unit: CalendarUnit) => boolean;
4156
+ /**
4157
+ * The instant reached after `durationHours` working hours from `start`.
4158
+ * A duration that ends at a shift end returns that shift end.
4159
+ */
4160
+ readonly calculateEndDate: (start: Date, durationHours: number) => Date;
4161
+ /**
4162
+ * The closest working instant to `query.date` in `query.direction`. A date
4163
+ * inside working time comes back unchanged. Outside it, `'hour'` gives the
4164
+ * next shift start for `'future'` and the previous shift end for `'past'`;
4165
+ * `'day'` gives the start of the next working day for `'future'` and the
4166
+ * end of the previous working day (00:00 of the day after it) for `'past'`.
4167
+ * A `'past'` search looks back up to 3660 days and throws when it finds no
4168
+ * working day.
4169
+ */
4170
+ readonly getClosestWorkTime: (query: WorkTimeQuery) => Date;
4171
+ /**
4172
+ * The shift windows of the day that contains `date`, as `HH:mm-HH:mm`
4173
+ * strings; empty on a non-working day. A workable exception day returns
4174
+ * its own shifts.
4175
+ */
4176
+ readonly getWorkHours: (date: Date) => string[];
4177
+ }
4178
+ /** Read-only access to a schedule's calendars, outside a schedule instance. */
4179
+ interface StandaloneCalendarReader {
4180
+ /**
4181
+ * Returns the calendar for `calendarId`; a `null` or unknown id resolves
4182
+ * to the schedule default calendar.
4183
+ */
4184
+ readonly getCalendar: (calendarId: CalendarId | null) => StandaloneCalendar;
4185
+ }
4186
+ /**
4187
+ * Builds a standalone calendar reader with the same normalization and
4188
+ * calendar setup the schedule uses, so working-time queries match the live
4189
+ * schedule. Throws when `calendars` is empty.
4190
+ */
4191
+ declare function createCalendarReader(input: CalendarReaderInput): StandaloneCalendarReader;
4192
+
4193
+ /** Inputs of {@link baselineVarianceDays}. */
4194
+ interface BaselineVarianceDaysInput {
4195
+ /** Live end date of the activity, or `null` when it has none. */
4196
+ readonly endDate: Date | null | undefined;
4197
+ /** End date of the baseline to measure against, or `null` when none applies. */
4198
+ readonly baselineEnd: Date | null | undefined;
4199
+ /** Calendar the activity is scheduled on; only working-time measurement is used. */
4200
+ readonly calendar: Pick<StandaloneCalendar, 'calculateDuration'>;
4201
+ /** Working hours in one schedule day. */
4202
+ readonly hoursPerDay: number;
4203
+ }
4204
+ /**
4205
+ * Calculates the working-day gap between an activity end and a baseline end.
4206
+ *
4207
+ * This is the rule behind the Gantt baseline variance column. The gap is
4208
+ * measured on the given calendar, so non-working time is excluded, and is
4209
+ * rounded to two decimals. A positive result means the activity finishes
4210
+ * after the baseline; a negative result means it finishes ahead of it.
4211
+ *
4212
+ * @param input - End dates, the activity calendar and the sector working hours per day.
4213
+ * @returns Signed working days, `0` when both ends coincide, or `null` when a date is missing or invalid, or `hoursPerDay` is not a positive finite number.
4214
+ */
4215
+ declare function baselineVarianceDays(input: BaselineVarianceDaysInput): number | null;
4216
+
4103
4217
  /** Calendar duration boundary used by expected-progress calculation. */
4104
4218
  interface CalendarLike {
4105
4219
  /** @returns Working duration between two dates in a consistent calendar unit. */
@@ -4270,62 +4384,6 @@ declare function resolveExpectedFinishDateSelection(input: {
4270
4384
  readonly displayedFinish: Date;
4271
4385
  }): Date;
4272
4386
 
4273
- /** Calendars of the schedule whose working time is read. */
4274
- interface CalendarReaderInput {
4275
- readonly calendars: readonly BackendCalendarInput[];
4276
- readonly baseCalendars?: readonly BackendCalendarInput[];
4277
- }
4278
-
4279
- /** One calendar of a schedule, reduced to working-time measurement. */
4280
- interface StandaloneCalendar {
4281
- /**
4282
- * Signed working hours between two instants on this calendar; negative
4283
- * when `end` precedes `start`. Converting hours to days is the caller's
4284
- * job.
4285
- */
4286
- readonly calculateDuration: (start: Date, end: Date) => number;
4287
- /**
4288
- * Whether `date` falls in working time. With `unit` `'day'`, true when the
4289
- * day has any working hour.
4290
- */
4291
- readonly isWorkTime: (date: Date, unit: CalendarUnit) => boolean;
4292
- /**
4293
- * The instant reached after `durationHours` working hours from `start`.
4294
- * A duration that ends at a shift end returns that shift end.
4295
- */
4296
- readonly calculateEndDate: (start: Date, durationHours: number) => Date;
4297
- /**
4298
- * The closest working instant to `query.date` in `query.direction`. A date
4299
- * inside working time comes back unchanged. Outside it, `'hour'` gives the
4300
- * next shift start for `'future'` and the previous shift end for `'past'`;
4301
- * `'day'` gives the start of the next working day for `'future'` and the
4302
- * end of the previous working day (00:00 of the day after it) for `'past'`.
4303
- * A `'past'` search looks back up to 3660 days and throws when it finds no
4304
- * working day.
4305
- */
4306
- readonly getClosestWorkTime: (query: WorkTimeQuery) => Date;
4307
- /**
4308
- * The shift windows of the day that contains `date`, as `HH:mm-HH:mm`
4309
- * strings; empty on a non-working day. A workable exception day returns
4310
- * its own shifts.
4311
- */
4312
- readonly getWorkHours: (date: Date) => string[];
4313
- }
4314
- /** Read-only access to a schedule's calendars, outside a schedule instance. */
4315
- interface StandaloneCalendarReader {
4316
- /**
4317
- * Returns the calendar for `calendarId`; a `null` or unknown id resolves
4318
- * to the schedule default calendar.
4319
- */
4320
- readonly getCalendar: (calendarId: CalendarId | null) => StandaloneCalendar;
4321
- }
4322
- /**
4323
- * Builds a standalone calendar reader with the same normalization and
4324
- * calendar setup the schedule uses, so working-time queries match the live
4325
- * schedule. Throws when `calendars` is empty.
4326
- */
4327
- declare function createCalendarReader(input: CalendarReaderInput): StandaloneCalendarReader;
4328
-
4329
4387
  /** Calendars of the schedule that owns the activities being re-derived. */
4330
4388
  interface LookaheadDerivedCalendars {
4331
4389
  readonly calendars: readonly BackendCalendarInput[];
@@ -4558,4 +4616,4 @@ declare const DISPATCH_TRACK_EVENT: {
4558
4616
  /** Consumer analytics event name emitted by a schedule mutation. */
4559
4617
  type DispatchTrackEvent = (typeof DISPATCH_TRACK_EVENT)[keyof typeof DISPATCH_TRACK_EVENT];
4560
4618
 
4561
- export { ACTIVITY_BATCH_ACTION_KIND, ACTIVITY_BATCH_MODE, ACTIVITY_DATE_EDGE, ACTIVITY_FIELD, ACTIVITY_PONDERATOR_CRITERION, ACTIVITY_PROGRESS_ORIGIN, ACTIVITY_TYPE, type ActivityBaselineSnapshot, type ActivityBatchAction, type ActivityBatchInput, type ActivityBatchItem, type ActivityBatchItemInput, type ActivityBatchLinkInput$1 as ActivityBatchLinkInput, type ActivityBatchMode, type ActivityBatchParentReference, type ActivityBatchReference, type ActivityBulkEdit, type ActivityClipboardEntry, type ActivityClipboardReferences, type ActivityClipboardSnapshot, type ActivityCreateInput, type ActivityCreationOverrides, type ActivityCreter, type ActivityDateEdge, type ActivityDateEdit, type ActivityField, type ActivityFieldEdit, type ActivityFieldValue, type ActivityFieldsRestoreEntry, type ActivityFieldsRestoreInput, type ActivityId, type ActivityLookaheadSyncInput, type ActivityMoveInput, type ActivityPasteDestination, type ActivityRowFacts, type ActivityStatus, type ActivityType, type ApplyLookaheadConversionInput, BASELINE_ROLE, type BackendActivityInput, type BackendCalendarExceptionInput, type BackendCalendarInput, type BackendLinkInput, type BackendRow, type BackendRowScope, type BackendScheduleInput, type BackendSectorInput, type BackendShiftInput, type BaselinePoint, type BaselineRole, type BaselineVersion, type BranchOrderChange, CALENDAR_UNIT, CHANGE_SET_SOURCE_KIND, COLUMN, COMPLETED_PROGRESS, CONFIRMATION_KIND, CONSTRAINT_TYPE, CONSTRAINT_TYPE_TO_LABEL, CONSTRAINT_WARNING_KIND, CREATION_KIND, type Calendar, type CalendarId, type CalendarLike, type CalendarReaderInput, type CalendarUnit, type CalendarWorktime, type ChangeSet, type ChangeSetSource, type ColumnName, type ConfirmationAlternative, type ConfirmationKind, type ConfirmationRequest, type ConstraintType, type ConstraintWarning, type CoreActivity, type CoreBaselinePoint, type CreationKind, type CriticalPathResult, P6_PROPERTY_CONTRACT as DATA_DATE_PROPERTY_CONTRACT, DATE_GESTURE_KIND, DEFAULT_HOURS_PER_DAY, DISPATCH_ACTION_KIND, DISPATCH_ACTION_KINDS, DISPATCH_LINK_OPERATION_KIND, DISPATCH_TRACK_EVENT, type P6ActivityCalculationInputs as DataDateActivityCalculationInputs, type P6ActivityColumnKey as DataDateActivityColumnKey, type P6ActivityData as DataDateActivityData, type P6ActivityDraftState as DataDateActivityDraftState, type P6ActivityInputPatch as DataDateActivityInputPatch, type P6ActivityState as DataDateActivityState, type P6ActivityStateDto as DataDateActivityStateDto, type P6ActivityType as DataDateActivityType, P6CapabilityError as DataDateCapabilityError, type P6CapabilityErrorCode as DataDateCapabilityErrorCode, type P6DependencyReference as DataDateDependencyReference, type P6DiagnosticProjectIdentity as DataDateDiagnosticProjectIdentity, type P6DiagnosticRelationship as DataDateDiagnosticRelationship, type P6DiagnosticRelationshipType as DataDateDiagnosticRelationshipType, type P6DurationType as DataDateDurationType, type P6EndingActivityOption as DataDateEndingActivityOption, type P6EndingActivityPage as DataDateEndingActivityPage, type P6EndingActivitySearch as DataDateEndingActivitySearch, type P6MappedScheduleOptions as DataDateMappedScheduleOptions, type P6MissingActivityInput as DataDateMissingActivityInput, type P6OutOfSequencePolicy as DataDateOutOfSequencePolicy, type P6ProjectPlannedStartChange as DataDateProjectPlannedStartChange, type P6ProjectState as DataDateProjectState, type P6PropertyContractRow as DataDatePropertyContractRow, type P6PropertyEdgeCases as DataDatePropertyEdgeCases, type P6RawProjectOptions as DataDateRawProjectOptions, type P6RawScheduleOptions as DataDateRawScheduleOptions, type P6RequiredHistoricalField as DataDateRequiredHistoricalField, type P6ResourceAssignment as DataDateResourceAssignment, type P6ScheduleDiagnostic as DataDateScheduleDiagnostic, type P6ScheduleDiagnosticCode as DataDateScheduleDiagnosticCode, type P6ScheduleDiagnosticDto as DataDateScheduleDiagnosticDto, type P6ScheduleDto as DataDateScheduleDto, type P6ScheduleInput as DataDateScheduleInput, type P6ScheduleReadiness as DataDateScheduleReadiness, type P6ScheduleResult as DataDateScheduleResult, type P6ScheduleRunLog as DataDateScheduleRunLog, type P6ScheduleRunLogDto as DataDateScheduleRunLogDto, type P6ScheduleSettings as DataDateScheduleSettings, type P6ScheduleSettingsDto as DataDateScheduleSettingsDto, type P6ScheduleWarning as DataDateScheduleWarning, type P6SerializableState as DataDateSerializableState, type P6SettingsChange as DataDateSettingsChange, type DateGesture, type DateGestureKind, type DateGesturePreview, type DatesBatchVerdict, type DeletedActivitySnapshot, type DeletedLinkSnapshot, type DispatchAction, type DispatchActionKind, type DispatchConfirmationRequest, type DispatchManyAction, type DispatchManyChangeSetSource, type DispatchManyResult, type DispatchOptions, type DispatchRejectReason, type DispatchResult, type DispatchTrackEvent, EDIT_ALERT_KEY, EDIT_DENIAL_REASON, ENTITY_CHANGE_KIND, type EditAlertKey, type EditDenialReason, type EditResult, type EditableColumnName, type EffectiveGraphAudit, type EntityChange, type ActivityBatchLinkInput as ErgonomicActivityBatchLinkInput, type ExpectedProgressAdapter, FILTER_FIELD, FILTER_LOGIC, FILTER_OPERATOR, FILTER_REJECTION_REASON, FILTER_VALUE_KIND, FLAT_WBS_DEPTH, type FilterCriterion, type FilterCriterionGroup, type FilterCriterionValue, type FilterDateRange, type FilterField, type FilterLogic, type FilterOperator, type FilterRejection, type FilterState, type FilterValueKind, GROUP_ID_PREFIX, GROUP_ID_SEPARATOR, type GroupCriterion, type GroupCriterionInput, type GroupLevelWindow, type GroupState, type GroupStateInput, type HistoryRevertFieldsEntry, type HistoryRevertInput, type HistoryRevertLink, type HostScheduleSource, type IdCounters, type ImpactRequestSyncInput, LINK_BATCH_OPERATION_KIND, LINK_CODE, LINK_CODE_TO_TYPE, LINK_REJECTION_REASON, LINK_RELATIONSHIP, LINK_TYPE, LINK_TYPE_CODE, LOOKAHEAD_CONFIRMATION_KIND, type Link, type LinkBatchOperationKind, type LinkBatchRequest, type LinkBatchVerdict, type LinkCreateRequest, type LinkId, type LinkPatchRequest, type LinkRejection, type LinkRelationship, type LinkType, type LinkTypeCode, type LinkUpdateAction, type LinksBatchOperation, type LoadDiagnostic, type LoadDiagnosticCode, type LoadTimeAction, type LoadTimeSectorFlags, type LoadTimeWork, type LookaheadActualIntent, LookaheadActualTransitionError, type LookaheadActualTransitionErrorCode, type LookaheadConfirmationRequest, type LookaheadConversionFormerParent, type LookaheadConversionGroup, type LookaheadConversionInput, type LookaheadConversionMilestoneMove, type LookaheadConversionPlan, type LookaheadConversionResult, type LookaheadDerivedCalendars, type LookaheadDerivedFields, type LookaheadDerivedFieldsResolver, type LookaheadDerivedInput, type LookaheadProgressActualActivityState, type LookaheadProgressActualInput, type LookaheadProgressActualPlan, MINIMUM_GROUP_DEPTH, MINIMUM_GROUP_LEVEL, type ModifiedActivityChanges, type MutationContext, NEW_ACTIVITY_DEFAULTS, NOT_STARTED_PROGRESS, ORDER_DIRECTION, ORDER_MODE, type OrderDirection, type OrderMode, type OrderRule, type OrderState, PASTE_PLACEMENT, PERSISTENCE_REBASE_CONFLICT_KIND, PERSISTENCE_REBASE_ENTITY, type ParsedInput, type PendingRequest, type PersistableActivityField, type PersistedEntityIdentity, type PersistenceCheckpoint, type PersistenceRebaseConflict, type PersistenceRebaseConflictKind, type PersistenceRebaseEntity, type PersistenceRebaseInput, type PersistenceRebaseRekey, type PersistenceRebaseRemoteChange, type PersistenceRebaseReport, type PipelineColumnName, type ProjectWorkHours, REJECTION_REASON, RESTORABLE_ACTIVITY_FIELDS, ROOT_PARENT_ID, type RenumberedActivity, type RestorableActivityField, type RevertibleActivityField, SCHEDULE_CORE_STATUS, SCHEDULE_EFFECT_KIND, SIR_AUTO_REJECT_REASON, STATUS, STATUS_CRITERIA, STRUCTURE_ACTIVITY_FIELDS, type ScheduleActivitiesApi, type ScheduleApiNamespaces, type ScheduleAutoScheduleAction, type ScheduleBaselinesApi, type ScheduleCalendarsApi, type ScheduleCellsApi, ScheduleCore, type ScheduleCoreInput, type ScheduleCoreReporter, type ScheduleCoreRestoreOptions, type ScheduleCoreSnapshot, type ScheduleCoreStatus, type ScheduleCriticalPathApi, type ScheduleP6Api as ScheduleDataDatesApi, type ScheduleDiagnosticsApi, type ScheduleEffect, type ScheduleHistoryApi, type ScheduleImpactRequestsApi, type ScheduleLinksApi, type SchedulePersistenceApi, type ScheduleProjectionApi, type ScheduleSelectionApi, type ScheduleViewApi, type SectorMetadata, type SelectionToggleInput, type StandaloneCalendar, type StandaloneCalendarReader, type StaticActivityDefaults, type StatusCriteria, type TrackingEvent, UNASSIGNED_GROUP_LABEL, UNASSIGNED_VALUE_ID, type UndoOptions, VIEW_ATTRIBUTE_KIND, VISUAL_ROW_KIND, type ViewAttributeAssignmentInput, type ViewAttributeCatalogInput, type ViewAttributeFilterCriterion, type ViewAttributeOrderRule, type ViewAttributeValueInput, type ViewFilterInput, type ViewStateChange, type ViewStatePropChange, type VisualRow, WORK_TIME_DIRECTION, type WbsDepth, type WithProplannerId, type WorkTimeDirection, type WorkTimeQuery, activityBackendRow, allowedSecondaryConstraintTypes, appendGroupRowId, buildGroupRowId, checkNoUpdatedLinks, computeExpectedProgress, createCalendarReader, createLookaheadDerivedFields, createOutbuildP6ScheduleSettings as createOutbuildDataDateScheduleSettings, createSchedule, p6InputFromDto as dataDateInputFromDto, decodeWireValue, encodeWireValue, expectedProgressFromBaseline, formatUtcAsP6WallDate, getActiveBaseline, getUnsavedActivities, hostScheduleInput, isRestorableActivityField, isRevertibleActivityField, isRootParent, isViewAttributeCriterion, isViewAttributeOrderRule, linkBackendRow, loadTimeWork, mapP6ScheduleOptions as mapDataDateScheduleOptions, movedToAnotherUtcDay, normalizeParentKey, parseFromBackend, parseP6DayAsCalendarStart, parseP6WallDateAsUtc, planLookaheadProgressActuals, prepareLookaheadProgressActuals, prepareLookaheadProgressActualsForPersistence, rescheduledOnLoad, resolveExpectedFinishDateSelection, resolveLookaheadActualDateSelection, serializeP6Activity as serializeDataDateActivity, serializeP6Settings as serializeDataDateSettings, serializeP6State as serializeDataDateState, willRunCriticalPath, yieldToBrowser };
4619
+ export { ACTIVITY_BATCH_ACTION_KIND, ACTIVITY_BATCH_MODE, ACTIVITY_DATE_EDGE, ACTIVITY_FIELD, ACTIVITY_PONDERATOR_CRITERION, ACTIVITY_PROGRESS_ORIGIN, ACTIVITY_TYPE, type ActivityBaselineSnapshot, type ActivityBatchAction, type ActivityBatchInput, type ActivityBatchItem, type ActivityBatchItemInput, type ActivityBatchLinkInput$1 as ActivityBatchLinkInput, type ActivityBatchMode, type ActivityBatchParentReference, type ActivityBatchReference, type ActivityBulkEdit, type ActivityClipboardEntry, type ActivityClipboardReferences, type ActivityClipboardSnapshot, type ActivityCreateInput, type ActivityCreationOverrides, type ActivityCreter, type ActivityDateEdge, type ActivityDateEdit, type ActivityField, type ActivityFieldEdit, type ActivityFieldValue, type ActivityFieldsRestoreEntry, type ActivityFieldsRestoreInput, type ActivityId, type ActivityLookaheadSyncInput, type ActivityMoveInput, type ActivityPasteDestination, type ActivityRowFacts, type ActivityStatus, type ActivityType, type ApplyLookaheadConversionInput, BASELINE_ROLE, type BackendActivityInput, type BackendCalendarExceptionInput, type BackendCalendarInput, type BackendLinkInput, type BackendRow, type BackendRowScope, type BackendScheduleInput, type BackendSectorInput, type BackendShiftInput, type BaselinePoint, type BaselineRole, type BaselineVarianceDaysInput, type BaselineVersion, type BranchOrderChange, CALENDAR_UNIT, CHANGE_SET_SOURCE_KIND, COLUMN, COMPLETED_PROGRESS, CONFIRMATION_KIND, CONSTRAINT_TYPE, CONSTRAINT_TYPE_TO_LABEL, CONSTRAINT_WARNING_KIND, CREATION_KIND, CUSTOM_ID_CONFIRMATION_KIND, type Calendar, type CalendarId, type CalendarLike, type CalendarReaderInput, type CalendarUnit, type CalendarWorktime, type ChangeSet, type ChangeSetSource, type ColumnName, type ConfirmationAlternative, type ConfirmationKind, type ConfirmationRequest, type ConstraintType, type ConstraintWarning, type CoreActivity, type CoreBaselinePoint, type CreationKind, type CriticalPathResult, type CustomIdConflictConfirmationRequest, P6_PROPERTY_CONTRACT as DATA_DATE_PROPERTY_CONTRACT, DATE_GESTURE_KIND, DEFAULT_HOURS_PER_DAY, DISPATCH_ACTION_KIND, DISPATCH_ACTION_KINDS, DISPATCH_LINK_OPERATION_KIND, DISPATCH_TRACK_EVENT, type P6ActivityCalculationInputs as DataDateActivityCalculationInputs, type P6ActivityColumnKey as DataDateActivityColumnKey, type P6ActivityData as DataDateActivityData, type P6ActivityDraftState as DataDateActivityDraftState, type P6ActivityInputPatch as DataDateActivityInputPatch, type P6ActivityState as DataDateActivityState, type P6ActivityStateDto as DataDateActivityStateDto, type P6ActivityType as DataDateActivityType, P6CapabilityError as DataDateCapabilityError, type P6CapabilityErrorCode as DataDateCapabilityErrorCode, type P6DependencyReference as DataDateDependencyReference, type P6DiagnosticProjectIdentity as DataDateDiagnosticProjectIdentity, type P6DiagnosticRelationship as DataDateDiagnosticRelationship, type P6DiagnosticRelationshipType as DataDateDiagnosticRelationshipType, type P6DurationType as DataDateDurationType, type P6EndingActivityOption as DataDateEndingActivityOption, type P6EndingActivityPage as DataDateEndingActivityPage, type P6EndingActivitySearch as DataDateEndingActivitySearch, type P6MappedScheduleOptions as DataDateMappedScheduleOptions, type P6MissingActivityInput as DataDateMissingActivityInput, type P6OutOfSequencePolicy as DataDateOutOfSequencePolicy, type P6ProjectPlannedStartChange as DataDateProjectPlannedStartChange, type P6ProjectState as DataDateProjectState, type P6PropertyContractRow as DataDatePropertyContractRow, type P6PropertyEdgeCases as DataDatePropertyEdgeCases, type P6RawProjectOptions as DataDateRawProjectOptions, type P6RawScheduleOptions as DataDateRawScheduleOptions, type P6RequiredHistoricalField as DataDateRequiredHistoricalField, type P6ResourceAssignment as DataDateResourceAssignment, type P6ScheduleDiagnostic as DataDateScheduleDiagnostic, type P6ScheduleDiagnosticCode as DataDateScheduleDiagnosticCode, type P6ScheduleDiagnosticDto as DataDateScheduleDiagnosticDto, type P6ScheduleDto as DataDateScheduleDto, type P6ScheduleInput as DataDateScheduleInput, type P6ScheduleReadiness as DataDateScheduleReadiness, type P6ScheduleResult as DataDateScheduleResult, type P6ScheduleRunLog as DataDateScheduleRunLog, type P6ScheduleRunLogDto as DataDateScheduleRunLogDto, type P6ScheduleSettings as DataDateScheduleSettings, type P6ScheduleSettingsDto as DataDateScheduleSettingsDto, type P6ScheduleWarning as DataDateScheduleWarning, type P6SerializableState as DataDateSerializableState, type P6SettingsChange as DataDateSettingsChange, type DateGesture, type DateGestureKind, type DateGesturePreview, type DatesBatchVerdict, type DeletedActivitySnapshot, type DeletedLinkSnapshot, type DispatchAction, type DispatchActionKind, type DispatchConfirmationRequest, type DispatchManyAction, type DispatchManyChangeSetSource, type DispatchManyResult, type DispatchOptions, type DispatchRejectReason, type DispatchResult, type DispatchTrackEvent, EDIT_ALERT_KEY, EDIT_DENIAL_REASON, ENTITY_CHANGE_KIND, type EditAlertKey, type EditDenialReason, type EditResult, type EditableColumnName, type EffectiveGraphAudit, type EntityChange, type ActivityBatchLinkInput as ErgonomicActivityBatchLinkInput, type ExpectedProgressAdapter, FILTER_FIELD, FILTER_LOGIC, FILTER_OPERATOR, FILTER_REJECTION_REASON, FILTER_VALUE_KIND, FLAT_WBS_DEPTH, type FilterCriterion, type FilterCriterionGroup, type FilterCriterionValue, type FilterDateRange, type FilterField, type FilterLogic, type FilterOperator, type FilterRejection, type FilterState, type FilterValueKind, GROUP_ID_PREFIX, GROUP_ID_SEPARATOR, type GroupCriterion, type GroupCriterionInput, type GroupLevelWindow, type GroupState, type GroupStateInput, type HistoryRevertFieldsEntry, type HistoryRevertInput, type HistoryRevertLink, type HostScheduleSource, type IdCounters, type ImpactRequestSyncInput, LINK_BATCH_OPERATION_KIND, LINK_CODE, LINK_CODE_TO_TYPE, LINK_REJECTION_REASON, LINK_RELATIONSHIP, LINK_TYPE, LINK_TYPE_CODE, LOOKAHEAD_CONFIRMATION_KIND, type Link, type LinkBatchOperationKind, type LinkBatchRequest, type LinkBatchVerdict, type LinkCreateRequest, type LinkId, type LinkPatchRequest, type LinkRejection, type LinkRelationship, type LinkType, type LinkTypeCode, type LinkUpdateAction, type LinksBatchOperation, type LoadDiagnostic, type LoadDiagnosticCode, type LoadTimeAction, type LoadTimeSectorFlags, type LoadTimeWork, type LookaheadActualIntent, LookaheadActualTransitionError, type LookaheadActualTransitionErrorCode, type LookaheadConfirmationRequest, type LookaheadConversionFormerParent, type LookaheadConversionGroup, type LookaheadConversionInput, type LookaheadConversionMilestoneMove, type LookaheadConversionPlan, type LookaheadConversionResult, type LookaheadDerivedCalendars, type LookaheadDerivedFields, type LookaheadDerivedFieldsResolver, type LookaheadDerivedInput, type LookaheadProgressActualActivityState, type LookaheadProgressActualInput, type LookaheadProgressActualPlan, MINIMUM_GROUP_DEPTH, MINIMUM_GROUP_LEVEL, type ModifiedActivityChanges, type MutationContext, NEW_ACTIVITY_DEFAULTS, NOT_STARTED_PROGRESS, ORDER_DIRECTION, ORDER_MODE, type OrderDirection, type OrderMode, type OrderRule, type OrderState, PASTE_PLACEMENT, PERSISTENCE_REBASE_CONFLICT_KIND, PERSISTENCE_REBASE_ENTITY, type ParsedInput, type PendingRequest, type PersistableActivityField, type PersistedEntityIdentity, type PersistenceCheckpoint, type PersistenceRebaseConflict, type PersistenceRebaseConflictKind, type PersistenceRebaseEntity, type PersistenceRebaseInput, type PersistenceRebaseRekey, type PersistenceRebaseRemoteChange, type PersistenceRebaseReport, type PipelineColumnName, type ProjectWorkHours, REJECTION_REASON, RESTORABLE_ACTIVITY_FIELDS, ROOT_PARENT_ID, type RenumberedActivity, type RestorableActivityField, type RevertibleActivityField, SCHEDULE_CORE_STATUS, SCHEDULE_EFFECT_KIND, SIR_AUTO_REJECT_REASON, STATUS, STATUS_CRITERIA, STRUCTURE_ACTIVITY_FIELDS, type ScheduleActivitiesApi, type ScheduleApiNamespaces, type ScheduleAutoScheduleAction, type ScheduleBaselinesApi, type ScheduleCalendarsApi, type ScheduleCellsApi, ScheduleCore, type ScheduleCoreInput, type ScheduleCoreReporter, type ScheduleCoreRestoreOptions, type ScheduleCoreSnapshot, type ScheduleCoreStatus, type ScheduleCriticalPathApi, type ScheduleP6Api as ScheduleDataDatesApi, type ScheduleDiagnosticsApi, type ScheduleEffect, type ScheduleHistoryApi, type ScheduleImpactRequestsApi, type ScheduleLinksApi, type SchedulePersistenceApi, type ScheduleProjectionApi, type ScheduleSelectionApi, type ScheduleViewApi, type SectorMetadata, type SelectionToggleInput, type StandaloneCalendar, type StandaloneCalendarReader, type StaticActivityDefaults, type StatusCriteria, type TrackingEvent, UNASSIGNED_GROUP_LABEL, UNASSIGNED_VALUE_ID, type UndoOptions, VIEW_ATTRIBUTE_KIND, VISUAL_ROW_KIND, type ViewAttributeAssignmentInput, type ViewAttributeCatalogInput, type ViewAttributeFilterCriterion, type ViewAttributeOrderRule, type ViewAttributeValueInput, type ViewFilterInput, type ViewStateChange, type ViewStatePropChange, type VisualRow, WORK_TIME_DIRECTION, type WbsDepth, type WithProplannerId, type WorkTimeDirection, type WorkTimeQuery, activityBackendRow, allowedSecondaryConstraintTypes, appendGroupRowId, baselineVarianceDays, buildGroupRowId, checkNoUpdatedLinks, computeExpectedProgress, createCalendarReader, createLookaheadDerivedFields, createOutbuildP6ScheduleSettings as createOutbuildDataDateScheduleSettings, createSchedule, p6InputFromDto as dataDateInputFromDto, decodeWireValue, encodeWireValue, expectedProgressFromBaseline, formatUtcAsP6WallDate, getActiveBaseline, getUnsavedActivities, getVisibleBaseline, hostScheduleInput, isRestorableActivityField, isRevertibleActivityField, isRootParent, isViewAttributeCriterion, isViewAttributeOrderRule, linkBackendRow, loadTimeWork, mapP6ScheduleOptions as mapDataDateScheduleOptions, movedToAnotherUtcDay, normalizeParentKey, parseFromBackend, parseP6DayAsCalendarStart, parseP6WallDateAsUtc, planLookaheadProgressActuals, prepareLookaheadProgressActuals, prepareLookaheadProgressActualsForPersistence, rescheduledOnLoad, resolveExpectedFinishDateSelection, resolveLookaheadActualDateSelection, serializeP6Activity as serializeDataDateActivity, serializeP6Settings as serializeDataDateSettings, serializeP6State as serializeDataDateState, willRunCriticalPath, yieldToBrowser };