Skip to content

Latest commit

 

History

History
226 lines (123 loc) · 5.08 KB

BasicSyncMetadata.md

File metadata and controls

226 lines (123 loc) · 5.08 KB

collection-sync / Exports / BasicSyncMetadata

Class: BasicSyncMetadata

A simple sync metadata manager.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BasicSyncMetadata(lastFetchAt?, lastPostAt?)

Parameters

Name Type
lastFetchAt? Date
lastPostAt? Date

Overrides

CollectionSyncMetadata.constructor

Defined in

example-implementations/BasicSyncMetadata.ts:8

Properties

_lastFetchAt

Private Optional _lastFetchAt: Date

Defined in

example-implementations/BasicSyncMetadata.ts:5


_lastPostAt

Private Optional _lastPostAt: Date

Defined in

example-implementations/BasicSyncMetadata.ts:6

Methods

getLastAt

getLastAt(syncOperation): Promise<undefined | Date>

Parameters

Name Type
syncOperation SyncOperation

Returns

Promise<undefined | Date>

Inherited from

CollectionSyncMetadata.getLastAt

Defined in

CollectionSyncMetadata.ts:21


getLastFetchAt

getLastFetchAt(): undefined | Date

Returns

undefined | Date

Overrides

CollectionSyncMetadata.getLastFetchAt

Defined in

example-implementations/BasicSyncMetadata.ts:25


getLastPostAt

getLastPostAt(): undefined | Date

Returns

undefined | Date

Overrides

CollectionSyncMetadata.getLastPostAt

Defined in

example-implementations/BasicSyncMetadata.ts:29


initialize

initialize(): Promise<void>

Executes async logic to initialize collection or datastore (open file, create database connection, etc).

Returns

Promise<void>

Overrides

CollectionSyncMetadata.initialize

Defined in

example-implementations/BasicSyncMetadata.ts:14


setLastAt

setLastAt(d, syncOperation): Promise<void>

Parameters

Name Type
d Date
syncOperation SyncOperation

Returns

Promise<void>

Inherited from

CollectionSyncMetadata.setLastAt

Defined in

CollectionSyncMetadata.ts:13


setLastFetchAt

setLastFetchAt(d): void

Parameters

Name Type
d Date

Returns

void

Overrides

CollectionSyncMetadata.setLastFetchAt

Defined in

example-implementations/BasicSyncMetadata.ts:17


setLastPostAt

setLastPostAt(d): void

Parameters

Name Type
d Date

Returns

void

Overrides

CollectionSyncMetadata.setLastPostAt

Defined in

example-implementations/BasicSyncMetadata.ts:21