lucid-extension-sdk 0.0.270 → 0.0.271
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.
|
@@ -100,6 +100,7 @@ export declare class Patch {
|
|
|
100
100
|
/** The syncCollectionId of the changed collection */
|
|
101
101
|
syncCollectionId: CollectionId);
|
|
102
102
|
getChange(collections?: PatchChangeCollection[]): PatchChange;
|
|
103
|
+
toJSON(): object;
|
|
103
104
|
}
|
|
104
105
|
/**
|
|
105
106
|
* A patch action is a kind of synchronous style action. It occurs when data is changed in the Lucid editor. All the
|
|
@@ -90,6 +90,17 @@ class Patch {
|
|
|
90
90
|
getChange(collections = []) {
|
|
91
91
|
return new patchresponsebody_1.PatchChange(this.id, this.syncSourceId, collections);
|
|
92
92
|
}
|
|
93
|
+
toJSON() {
|
|
94
|
+
return {
|
|
95
|
+
'Id': this.id,
|
|
96
|
+
'ItemsAdded': this.itemsAdded,
|
|
97
|
+
'ItemsChanged': this.itemsChanged,
|
|
98
|
+
'ItemsDeleted': this.itemsDeleted,
|
|
99
|
+
'ItemOrderChanged': this.itemOrderChanged,
|
|
100
|
+
'SyncSourceId': this.syncSourceId,
|
|
101
|
+
'SyncCollectionId': this.syncCollectionId,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
93
104
|
}
|
|
94
105
|
exports.Patch = Patch;
|
|
95
106
|
/**
|