Skip to content

Commit

Permalink
DataSync: export NewRecordBehaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Nov 14, 2024
1 parent fc6180b commit dcc0f03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/IHP/DataSync/ihp-datasync.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class DataSyncController {

const APPEND_NEW_RECORD = 0;
const PREPEND_NEW_RECORD = 1;
export const NewRecordBehaviour = { APPEND_NEW_RECORD, PREPEND_NEW_RECORD };

class DataSubscription {
constructor(query, cache = null) {
Expand Down
4 changes: 2 additions & 2 deletions lib/IHP/DataSync/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
whereGreaterThan,
whereGreaterThanOrEqual
} from './ihp-querybuilder.js';
import { DataSyncController, DataSubscription, initIHPBackend, createRecord, createRecords, updateRecord, updateRecords, deleteRecord, deleteRecords } from './ihp-datasync.js';
import { DataSyncController, DataSubscription, initIHPBackend, createRecord, createRecords, updateRecord, updateRecords, deleteRecord, deleteRecords, NewRecordBehaviour } from './ihp-datasync.js';
import { Transaction, withTransaction } from './transaction.js';

export {
Expand All @@ -45,7 +45,7 @@ export {
whereGreaterThanOrEqual,

/* ihp-datasync.js */
DataSyncController, DataSubscription, initIHPBackend, createRecord, createRecords, updateRecord, updateRecords, deleteRecord, deleteRecords,
DataSyncController, DataSubscription, initIHPBackend, createRecord, createRecords, updateRecord, updateRecords, deleteRecord, deleteRecords, NewRecordBehaviour,

/* transaction.js */
Transaction, withTransaction
Expand Down

0 comments on commit dcc0f03

Please sign in to comment.