@salesforce/lds-drafts 1.114.0 → 1.114.1
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/DraftManager.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ export declare class DraftManager {
|
|
|
150
150
|
* @param sourceActionId The draft action id to merge onto the target. This
|
|
151
151
|
* action will be removed after the merge.
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
mergeActions(targetActionId: string, sourceActionId: string): Promise<DraftQueueItem>;
|
|
154
154
|
/**
|
|
155
155
|
* Sets the metadata object of the specified action to the
|
|
156
156
|
* provided metadata
|
package/dist/DraftQueue.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ export interface DraftQueue {
|
|
|
216
216
|
* @param sourceActionId The draft action id to merge onto the target. This
|
|
217
217
|
* action will be removed after the merge.
|
|
218
218
|
*/
|
|
219
|
-
|
|
219
|
+
mergeActions<Data, Response>(targetActionId: string, sourceActionId: string): Promise<DraftAction<Data, Response>>;
|
|
220
220
|
/** Set the draft queue state to Started and process the next item */
|
|
221
221
|
startQueue(): Promise<void>;
|
|
222
222
|
/** Set the draft queue state to Stopped and don't let another item begin */
|
|
@@ -46,7 +46,7 @@ export declare class DurableDraftQueue implements DraftQueue {
|
|
|
46
46
|
private startQueueSafe;
|
|
47
47
|
removeDraftAction(actionId: string): Promise<void>;
|
|
48
48
|
replaceAction(actionId: string, withActionId: string): Promise<DraftAction<unknown, unknown>>;
|
|
49
|
-
|
|
49
|
+
mergeActions<Data, Response>(targetActionId: string, sourceActionId: string): Promise<DraftAction<Data, Response>>;
|
|
50
50
|
setMetadata(actionId: string, metadata: DraftActionMetadata): Promise<DraftAction<unknown, unknown>>;
|
|
51
51
|
private scheduleRetry;
|
|
52
52
|
}
|
package/dist/ldsDrafts.js
CHANGED
|
@@ -728,7 +728,7 @@ class DurableDraftQueue {
|
|
|
728
728
|
this.replacingAction = replacing;
|
|
729
729
|
return replacing;
|
|
730
730
|
}
|
|
731
|
-
|
|
731
|
+
mergeActions(targetActionId, sourceActionId) {
|
|
732
732
|
// ids must be unique
|
|
733
733
|
if (targetActionId === sourceActionId) {
|
|
734
734
|
return Promise.reject(new Error('target and source action ids cannot be the same'));
|
|
@@ -1628,8 +1628,8 @@ class DraftManager {
|
|
|
1628
1628
|
* @param sourceActionId The draft action id to merge onto the target. This
|
|
1629
1629
|
* action will be removed after the merge.
|
|
1630
1630
|
*/
|
|
1631
|
-
|
|
1632
|
-
return this.draftQueue.
|
|
1631
|
+
mergeActions(targetActionId, sourceActionId) {
|
|
1632
|
+
return this.draftQueue.mergeActions(targetActionId, sourceActionId).then((merged) => {
|
|
1633
1633
|
return this.buildDraftQueueItem(merged);
|
|
1634
1634
|
});
|
|
1635
1635
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-drafts",
|
|
3
|
-
"version": "1.114.
|
|
3
|
+
"version": "1.114.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS Drafts",
|
|
6
6
|
"main": "dist/ldsDrafts.js",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@luvio/engine": "0.137.1",
|
|
28
28
|
"@luvio/environments": "0.137.1",
|
|
29
|
-
"@salesforce/lds-utils-adapters": "^1.114.
|
|
29
|
+
"@salesforce/lds-utils-adapters": "^1.114.1"
|
|
30
30
|
}
|
|
31
31
|
}
|