Skip to content

CreateSyncPlanOptions

Defined in: src/sync/createSyncPlan.ts:48

Options accepted by createSyncPlan.

PropertyTypeDescriptionDefined in
conflictPolicy?SyncConflictPolicyConflict policy. Defaults to "overwrite".src/sync/createSyncPlan.ts:62
deletePolicy?SyncDeletePolicyDelete policy. Defaults to "never".src/sync/createSyncPlan.ts:60
destinationSyncEndpointInputDestination-side endpoint that produced the diff.src/sync/createSyncPlan.ts:56
diffRemoteTreeDiffDiff produced by diffRemoteTrees or an equivalent source.src/sync/createSyncPlan.ts:52
direction?SyncDirectionSync direction. Defaults to "source-to-destination".src/sync/createSyncPlan.ts:58
dryRun?booleanWhether the plan is informational only. Defaults to true.src/sync/createSyncPlan.ts:66
idstringStable plan identifier.src/sync/createSyncPlan.ts:50
includeDirectoryActions?booleanWhether to plan upload/download steps for directories. Defaults to false.src/sync/createSyncPlan.ts:64
metadata?Record<string, unknown>Caller-defined metadata retained for diagnostics.src/sync/createSyncPlan.ts:70
now?() => DateClock used for deterministic tests. Defaults to new Date().src/sync/createSyncPlan.ts:68
sourceSyncEndpointInputSource-side endpoint that produced the diff.src/sync/createSyncPlan.ts:54