@salesforce/lds-runtime-mobile 1.342.0 → 1.344.0
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/main.js +30 -38
- package/dist/types/sfs/ProductConsumedSideEffects.d.ts +26 -0
- package/dist/types/sfs/sfsCustomSideEffects.d.ts +2 -2
- package/package.json +14 -14
- package/sfdc/main.js +30 -38
- package/sfdc/types/sfs/ProductConsumedSideEffects.d.ts +26 -0
- package/sfdc/types/sfs/sfsCustomSideEffects.d.ts +2 -2
package/dist/main.js
CHANGED
|
@@ -37,6 +37,7 @@ import formattingOptions from 'lightning/i18nCldrOptions';
|
|
|
37
37
|
import ldsPrimingGraphqlBatch from '@salesforce/gate/lds.primingGraphqlBatch';
|
|
38
38
|
import lmrPrimingUseSoql from '@salesforce/gate/lmr.primingUseSoql';
|
|
39
39
|
import graphqlL2AdapterGate from '@salesforce/gate/lmr.graphqlL2Adapter';
|
|
40
|
+
import productConsumedSideEffectsKillSwitch from '@salesforce/gate/com.salesforce.fieldservice.productConsumedSideEffectsKillSwitch';
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -2764,13 +2765,6 @@ var DraftQueueOperationType;
|
|
|
2764
2765
|
DraftQueueOperationType["ItemCompleted"] = "completed";
|
|
2765
2766
|
DraftQueueOperationType["ItemFailed"] = "failed";
|
|
2766
2767
|
DraftQueueOperationType["ItemUpdated"] = "updated";
|
|
2767
|
-
/** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
|
|
2768
|
-
* Planned to be removed in 256 (W-16217436) */
|
|
2769
|
-
DraftQueueOperationType["QueueStarted"] = "started";
|
|
2770
|
-
/** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
|
|
2771
|
-
* Planned to be removed in 256 (W-16217436) */
|
|
2772
|
-
DraftQueueOperationType["QueueStopped"] = "stopped";
|
|
2773
|
-
/** @since 252 */
|
|
2774
2768
|
DraftQueueOperationType["QueueStateChanged"] = "queueStateChanged";
|
|
2775
2769
|
})(DraftQueueOperationType || (DraftQueueOperationType = {}));
|
|
2776
2770
|
/**
|
|
@@ -2854,16 +2848,6 @@ class DraftManager {
|
|
|
2854
2848
|
throw Error('Unsupported event type');
|
|
2855
2849
|
}
|
|
2856
2850
|
}
|
|
2857
|
-
draftQueueStateToOperationType(state) {
|
|
2858
|
-
switch (state) {
|
|
2859
|
-
case DraftQueueState.Started:
|
|
2860
|
-
return DraftQueueOperationType.QueueStarted;
|
|
2861
|
-
case DraftQueueState.Stopped:
|
|
2862
|
-
return DraftQueueOperationType.QueueStopped;
|
|
2863
|
-
default:
|
|
2864
|
-
throw Error('Unsupported event type');
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
2851
|
/**
|
|
2868
2852
|
* Enqueue a custom action on the DraftQueue for a handler
|
|
2869
2853
|
* @param handler the handler's id
|
|
@@ -2925,8 +2909,7 @@ class DraftManager {
|
|
|
2925
2909
|
*
|
|
2926
2910
|
* @param listener The listener closure to subscribe to changes
|
|
2927
2911
|
*/
|
|
2928
|
-
registerDraftQueueChangedListener(listener,
|
|
2929
|
-
this.listenerVersion = version;
|
|
2912
|
+
registerDraftQueueChangedListener(listener, _version = undefined) {
|
|
2930
2913
|
this.listeners.push(listener);
|
|
2931
2914
|
return () => {
|
|
2932
2915
|
this.listeners = this.listeners.filter((l) => {
|
|
@@ -3042,12 +3025,7 @@ class DraftManager {
|
|
|
3042
3025
|
const managerState = await this.getQueue();
|
|
3043
3026
|
let operationType, item;
|
|
3044
3027
|
if (isDraftQueueStateChangeEvent(event)) {
|
|
3045
|
-
|
|
3046
|
-
operationType = this.draftQueueStateToOperationType(event.state);
|
|
3047
|
-
}
|
|
3048
|
-
else {
|
|
3049
|
-
operationType = DraftQueueOperationType.QueueStateChanged;
|
|
3050
|
-
}
|
|
3028
|
+
operationType = DraftQueueOperationType.QueueStateChanged;
|
|
3051
3029
|
}
|
|
3052
3030
|
else {
|
|
3053
3031
|
const { action, type } = event;
|
|
@@ -44703,16 +44681,22 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
|
|
|
44703
44681
|
}
|
|
44704
44682
|
}
|
|
44705
44683
|
else {
|
|
44706
|
-
|
|
44707
|
-
|
|
44708
|
-
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44709
|
-
if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44710
|
-
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44684
|
+
if (value === null && dataType !== 'MultiPicklist') {
|
|
44685
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} NULL`;
|
|
44711
44686
|
}
|
|
44712
44687
|
else {
|
|
44713
|
-
|
|
44688
|
+
const { sql: questionSql, binding: valueBinding } = handleExtractedPredicateValue(boundValue, false);
|
|
44689
|
+
// SQLite is case sensitive by default, SOQL is case in-sensitive by default
|
|
44690
|
+
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44691
|
+
if (dataType === 'MultiPicklist' &&
|
|
44692
|
+
(operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44693
|
+
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44694
|
+
}
|
|
44695
|
+
else {
|
|
44696
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
|
|
44697
|
+
}
|
|
44698
|
+
binding.push(...valueBinding);
|
|
44714
44699
|
}
|
|
44715
|
-
binding.push(...valueBinding);
|
|
44716
44700
|
}
|
|
44717
44701
|
}
|
|
44718
44702
|
return { sql, binding };
|
|
@@ -55102,10 +55086,18 @@ function isStoreRecordError(storeRecord) {
|
|
|
55102
55086
|
return storeRecord.__type === 'error';
|
|
55103
55087
|
}
|
|
55104
55088
|
|
|
55105
|
-
|
|
55106
|
-
|
|
55107
|
-
|
|
55108
|
-
|
|
55089
|
+
function createSfsSideEffectHooks(durableRecordStore) {
|
|
55090
|
+
if (productConsumedSideEffectsKillSwitch.isOpen({ fallback: false })) {
|
|
55091
|
+
return [];
|
|
55092
|
+
}
|
|
55093
|
+
return [
|
|
55094
|
+
// SFS FSCore needs to implement code to bypass it's existing "side effect" code for Product Consumed.
|
|
55095
|
+
// W-17683696 is the work that will enable the code below after FSCore's W-17422735 is completed.
|
|
55096
|
+
// new ProductConsumedCreatedHook(),
|
|
55097
|
+
// new ProductConsumedUpdatedHook(durableRecordStore),
|
|
55098
|
+
// new ProductConsumedDeletedHook(durableRecordStore),
|
|
55099
|
+
];
|
|
55100
|
+
}
|
|
55109
55101
|
|
|
55110
55102
|
// so eslint doesn't complain about nimbus
|
|
55111
55103
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -55187,7 +55179,7 @@ function getRuntime() {
|
|
|
55187
55179
|
lazySideEffectService = new SideEffectService(lazyDurableRecordStore, lazyObjectInfoService, userId, formatDisplayValue);
|
|
55188
55180
|
const draftService = new UiApiDraftRecordService(() => lazyLuvio, lazyDurableStore, lazyObjectInfoService, newRecordId, lazySideEffectStore, lazyDurableRecordStore);
|
|
55189
55181
|
const uiApiRecordHandler = new UiApiActionHandler(() => lazyLuvio, lazyNetworkAdapter, lazyDraftQueue, getRecord, lazyObjectInfoService, isGenerated, draftService, lazySideEffectService, lazyDurableRecordStore);
|
|
55190
|
-
uiApiRecordHandler.setSideEffectHooks(
|
|
55182
|
+
uiApiRecordHandler.setSideEffectHooks(createSfsSideEffectHooks());
|
|
55191
55183
|
const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService, lazyObjectInfoService, getRecord);
|
|
55192
55184
|
const updateRecordQuickActionHandler = new UpdateRecordQuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
|
|
55193
55185
|
const contentDocumentCompositeActionHandler = new ContentDocumentCompositeRepresentationActionHandler(() => lazyLuvio, userId, draftService, lazyObjectInfoService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, NimbusBinaryStore, lazySideEffectService);
|
|
@@ -55298,4 +55290,4 @@ register({
|
|
|
55298
55290
|
});
|
|
55299
55291
|
|
|
55300
55292
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
55301
|
-
// version: 1.
|
|
55293
|
+
// version: 1.344.0-5dd845c684
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SideEffect } from '../drafts/sideEffects';
|
|
2
|
+
import type { CreateSideEffectHook, DeleteSideEffectHook, UpdateSideEffectHook } from '../drafts/records/actionHandlers/SideEffectHook';
|
|
3
|
+
import { DurableRecordStore } from '../durableStore/DurableRecordStore';
|
|
4
|
+
export declare const instrumentation: import("o11y/dist/modules/o11y/client/interfaces").Instrumentation;
|
|
5
|
+
export declare class ProductConsumedCreatedHook implements CreateSideEffectHook {
|
|
6
|
+
on: 'post';
|
|
7
|
+
apiName: string;
|
|
8
|
+
private static COUNTER_NAME;
|
|
9
|
+
then(draftActionId: string, draftActionTimestamp: number, _draftRecordId: string, fields: Record<string, any>): Promise<SideEffect[]>;
|
|
10
|
+
}
|
|
11
|
+
export declare class ProductConsumedUpdatedHook implements UpdateSideEffectHook {
|
|
12
|
+
private readonly durableRecordStore;
|
|
13
|
+
on: 'patch';
|
|
14
|
+
apiName: string;
|
|
15
|
+
private static COUNTER_NAME;
|
|
16
|
+
constructor(durableRecordStore: DurableRecordStore);
|
|
17
|
+
then(draftActionId: string, draftActionTimestamp: number, draftRecordId: string, fields: Record<string, any>): Promise<SideEffect[]>;
|
|
18
|
+
}
|
|
19
|
+
export declare class ProductConsumedDeletedHook implements DeleteSideEffectHook {
|
|
20
|
+
private readonly durableRecordStore;
|
|
21
|
+
on: 'delete';
|
|
22
|
+
apiName: string;
|
|
23
|
+
private static COUNTER_NAME;
|
|
24
|
+
constructor(durableRecordStore: DurableRecordStore);
|
|
25
|
+
then(draftActionId: string, draftActionTimestamp: number, draftRecordId: string): Promise<SideEffect[]>;
|
|
26
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { DurableRecordStore } from '../durableStore/DurableRecordStore';
|
|
1
2
|
import type { SideEffectHook } from '../drafts/records/actionHandlers/SideEffectHook';
|
|
2
|
-
declare
|
|
3
|
-
export default _default;
|
|
3
|
+
export declare function createSfsSideEffectHooks(durableRecordStore: DurableRecordStore): SideEffectHook[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.344.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
36
|
-
"@salesforce/lds-bindings": "^1.
|
|
37
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
35
|
+
"@salesforce/lds-adapters-uiapi": "^1.344.0",
|
|
36
|
+
"@salesforce/lds-bindings": "^1.344.0",
|
|
37
|
+
"@salesforce/lds-instrumentation": "^1.344.0",
|
|
38
38
|
"@salesforce/user": "0.0.21",
|
|
39
39
|
"o11y": "250.7.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
43
|
-
"@salesforce/lds-drafts": "^1.
|
|
44
|
-
"@salesforce/lds-durable-records": "^1.
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
46
|
-
"@salesforce/lds-network-nimbus": "^1.
|
|
47
|
-
"@salesforce/lds-store-binary": "^1.
|
|
48
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
49
|
-
"@salesforce/lds-store-sql": "^1.
|
|
50
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
51
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
42
|
+
"@salesforce/lds-adapters-graphql": "^1.344.0",
|
|
43
|
+
"@salesforce/lds-drafts": "^1.344.0",
|
|
44
|
+
"@salesforce/lds-durable-records": "^1.344.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.344.0",
|
|
46
|
+
"@salesforce/lds-network-nimbus": "^1.344.0",
|
|
47
|
+
"@salesforce/lds-store-binary": "^1.344.0",
|
|
48
|
+
"@salesforce/lds-store-nimbus": "^1.344.0",
|
|
49
|
+
"@salesforce/lds-store-sql": "^1.344.0",
|
|
50
|
+
"@salesforce/lds-utils-adapters": "^1.344.0",
|
|
51
|
+
"@salesforce/nimbus-plugin-lds": "^1.344.0",
|
|
52
52
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
53
53
|
"wait-for-expect": "^3.0.2"
|
|
54
54
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -37,6 +37,7 @@ import formattingOptions from 'lightning/i18nCldrOptions';
|
|
|
37
37
|
import ldsPrimingGraphqlBatch from '@salesforce/gate/lds.primingGraphqlBatch';
|
|
38
38
|
import lmrPrimingUseSoql from '@salesforce/gate/lmr.primingUseSoql';
|
|
39
39
|
import graphqlL2AdapterGate from '@salesforce/gate/lmr.graphqlL2Adapter';
|
|
40
|
+
import productConsumedSideEffectsKillSwitch from '@salesforce/gate/com.salesforce.fieldservice.productConsumedSideEffectsKillSwitch';
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -2764,13 +2765,6 @@ var DraftQueueOperationType;
|
|
|
2764
2765
|
DraftQueueOperationType["ItemCompleted"] = "completed";
|
|
2765
2766
|
DraftQueueOperationType["ItemFailed"] = "failed";
|
|
2766
2767
|
DraftQueueOperationType["ItemUpdated"] = "updated";
|
|
2767
|
-
/** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
|
|
2768
|
-
* Planned to be removed in 256 (W-16217436) */
|
|
2769
|
-
DraftQueueOperationType["QueueStarted"] = "started";
|
|
2770
|
-
/** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
|
|
2771
|
-
* Planned to be removed in 256 (W-16217436) */
|
|
2772
|
-
DraftQueueOperationType["QueueStopped"] = "stopped";
|
|
2773
|
-
/** @since 252 */
|
|
2774
2768
|
DraftQueueOperationType["QueueStateChanged"] = "queueStateChanged";
|
|
2775
2769
|
})(DraftQueueOperationType || (DraftQueueOperationType = {}));
|
|
2776
2770
|
/**
|
|
@@ -2854,16 +2848,6 @@ class DraftManager {
|
|
|
2854
2848
|
throw Error('Unsupported event type');
|
|
2855
2849
|
}
|
|
2856
2850
|
}
|
|
2857
|
-
draftQueueStateToOperationType(state) {
|
|
2858
|
-
switch (state) {
|
|
2859
|
-
case DraftQueueState.Started:
|
|
2860
|
-
return DraftQueueOperationType.QueueStarted;
|
|
2861
|
-
case DraftQueueState.Stopped:
|
|
2862
|
-
return DraftQueueOperationType.QueueStopped;
|
|
2863
|
-
default:
|
|
2864
|
-
throw Error('Unsupported event type');
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
2851
|
/**
|
|
2868
2852
|
* Enqueue a custom action on the DraftQueue for a handler
|
|
2869
2853
|
* @param handler the handler's id
|
|
@@ -2925,8 +2909,7 @@ class DraftManager {
|
|
|
2925
2909
|
*
|
|
2926
2910
|
* @param listener The listener closure to subscribe to changes
|
|
2927
2911
|
*/
|
|
2928
|
-
registerDraftQueueChangedListener(listener,
|
|
2929
|
-
this.listenerVersion = version;
|
|
2912
|
+
registerDraftQueueChangedListener(listener, _version = undefined) {
|
|
2930
2913
|
this.listeners.push(listener);
|
|
2931
2914
|
return () => {
|
|
2932
2915
|
this.listeners = this.listeners.filter((l) => {
|
|
@@ -3042,12 +3025,7 @@ class DraftManager {
|
|
|
3042
3025
|
const managerState = await this.getQueue();
|
|
3043
3026
|
let operationType, item;
|
|
3044
3027
|
if (isDraftQueueStateChangeEvent(event)) {
|
|
3045
|
-
|
|
3046
|
-
operationType = this.draftQueueStateToOperationType(event.state);
|
|
3047
|
-
}
|
|
3048
|
-
else {
|
|
3049
|
-
operationType = DraftQueueOperationType.QueueStateChanged;
|
|
3050
|
-
}
|
|
3028
|
+
operationType = DraftQueueOperationType.QueueStateChanged;
|
|
3051
3029
|
}
|
|
3052
3030
|
else {
|
|
3053
3031
|
const { action, type } = event;
|
|
@@ -44703,16 +44681,22 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
|
|
|
44703
44681
|
}
|
|
44704
44682
|
}
|
|
44705
44683
|
else {
|
|
44706
|
-
|
|
44707
|
-
|
|
44708
|
-
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44709
|
-
if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44710
|
-
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44684
|
+
if (value === null && dataType !== 'MultiPicklist') {
|
|
44685
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} NULL`;
|
|
44711
44686
|
}
|
|
44712
44687
|
else {
|
|
44713
|
-
|
|
44688
|
+
const { sql: questionSql, binding: valueBinding } = handleExtractedPredicateValue(boundValue, false);
|
|
44689
|
+
// SQLite is case sensitive by default, SOQL is case in-sensitive by default
|
|
44690
|
+
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
44691
|
+
if (dataType === 'MultiPicklist' &&
|
|
44692
|
+
(operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
44693
|
+
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
44694
|
+
}
|
|
44695
|
+
else {
|
|
44696
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
|
|
44697
|
+
}
|
|
44698
|
+
binding.push(...valueBinding);
|
|
44714
44699
|
}
|
|
44715
|
-
binding.push(...valueBinding);
|
|
44716
44700
|
}
|
|
44717
44701
|
}
|
|
44718
44702
|
return { sql, binding };
|
|
@@ -55102,10 +55086,18 @@ function isStoreRecordError(storeRecord) {
|
|
|
55102
55086
|
return storeRecord.__type === 'error';
|
|
55103
55087
|
}
|
|
55104
55088
|
|
|
55105
|
-
|
|
55106
|
-
|
|
55107
|
-
|
|
55108
|
-
|
|
55089
|
+
function createSfsSideEffectHooks(durableRecordStore) {
|
|
55090
|
+
if (productConsumedSideEffectsKillSwitch.isOpen({ fallback: false })) {
|
|
55091
|
+
return [];
|
|
55092
|
+
}
|
|
55093
|
+
return [
|
|
55094
|
+
// SFS FSCore needs to implement code to bypass it's existing "side effect" code for Product Consumed.
|
|
55095
|
+
// W-17683696 is the work that will enable the code below after FSCore's W-17422735 is completed.
|
|
55096
|
+
// new ProductConsumedCreatedHook(),
|
|
55097
|
+
// new ProductConsumedUpdatedHook(durableRecordStore),
|
|
55098
|
+
// new ProductConsumedDeletedHook(durableRecordStore),
|
|
55099
|
+
];
|
|
55100
|
+
}
|
|
55109
55101
|
|
|
55110
55102
|
// so eslint doesn't complain about nimbus
|
|
55111
55103
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -55187,7 +55179,7 @@ function getRuntime() {
|
|
|
55187
55179
|
lazySideEffectService = new SideEffectService(lazyDurableRecordStore, lazyObjectInfoService, userId, formatDisplayValue);
|
|
55188
55180
|
const draftService = new UiApiDraftRecordService(() => lazyLuvio, lazyDurableStore, lazyObjectInfoService, newRecordId, lazySideEffectStore, lazyDurableRecordStore);
|
|
55189
55181
|
const uiApiRecordHandler = new UiApiActionHandler(() => lazyLuvio, lazyNetworkAdapter, lazyDraftQueue, getRecord, lazyObjectInfoService, isGenerated, draftService, lazySideEffectService, lazyDurableRecordStore);
|
|
55190
|
-
uiApiRecordHandler.setSideEffectHooks(
|
|
55182
|
+
uiApiRecordHandler.setSideEffectHooks(createSfsSideEffectHooks());
|
|
55191
55183
|
const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService, lazyObjectInfoService, getRecord);
|
|
55192
55184
|
const updateRecordQuickActionHandler = new UpdateRecordQuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
|
|
55193
55185
|
const contentDocumentCompositeActionHandler = new ContentDocumentCompositeRepresentationActionHandler(() => lazyLuvio, userId, draftService, lazyObjectInfoService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, NimbusBinaryStore, lazySideEffectService);
|
|
@@ -55298,4 +55290,4 @@ register({
|
|
|
55298
55290
|
});
|
|
55299
55291
|
|
|
55300
55292
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
55301
|
-
// version: 1.
|
|
55293
|
+
// version: 1.344.0-5dd845c684
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SideEffect } from '../drafts/sideEffects';
|
|
2
|
+
import type { CreateSideEffectHook, DeleteSideEffectHook, UpdateSideEffectHook } from '../drafts/records/actionHandlers/SideEffectHook';
|
|
3
|
+
import { DurableRecordStore } from '../durableStore/DurableRecordStore';
|
|
4
|
+
export declare const instrumentation: import("o11y/dist/modules/o11y/client/interfaces").Instrumentation;
|
|
5
|
+
export declare class ProductConsumedCreatedHook implements CreateSideEffectHook {
|
|
6
|
+
on: 'post';
|
|
7
|
+
apiName: string;
|
|
8
|
+
private static COUNTER_NAME;
|
|
9
|
+
then(draftActionId: string, draftActionTimestamp: number, _draftRecordId: string, fields: Record<string, any>): Promise<SideEffect[]>;
|
|
10
|
+
}
|
|
11
|
+
export declare class ProductConsumedUpdatedHook implements UpdateSideEffectHook {
|
|
12
|
+
private readonly durableRecordStore;
|
|
13
|
+
on: 'patch';
|
|
14
|
+
apiName: string;
|
|
15
|
+
private static COUNTER_NAME;
|
|
16
|
+
constructor(durableRecordStore: DurableRecordStore);
|
|
17
|
+
then(draftActionId: string, draftActionTimestamp: number, draftRecordId: string, fields: Record<string, any>): Promise<SideEffect[]>;
|
|
18
|
+
}
|
|
19
|
+
export declare class ProductConsumedDeletedHook implements DeleteSideEffectHook {
|
|
20
|
+
private readonly durableRecordStore;
|
|
21
|
+
on: 'delete';
|
|
22
|
+
apiName: string;
|
|
23
|
+
private static COUNTER_NAME;
|
|
24
|
+
constructor(durableRecordStore: DurableRecordStore);
|
|
25
|
+
then(draftActionId: string, draftActionTimestamp: number, draftRecordId: string): Promise<SideEffect[]>;
|
|
26
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { DurableRecordStore } from '../durableStore/DurableRecordStore';
|
|
1
2
|
import type { SideEffectHook } from '../drafts/records/actionHandlers/SideEffectHook';
|
|
2
|
-
declare
|
|
3
|
-
export default _default;
|
|
3
|
+
export declare function createSfsSideEffectHooks(durableRecordStore: DurableRecordStore): SideEffectHook[];
|