@salesforce/lds-worker-api 1.133.2 → 1.133.3
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.
|
@@ -761,4 +761,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
764
|
-
// version: 1.133.
|
|
764
|
+
// version: 1.133.3-9eae0c441
|
|
@@ -3791,7 +3791,7 @@ function withDefaultLuvio(callback) {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
callbacks.push(callback);
|
|
3793
3793
|
}
|
|
3794
|
-
// version: 1.133.
|
|
3794
|
+
// version: 1.133.3-9eae0c441
|
|
3795
3795
|
|
|
3796
3796
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3797
3797
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15215,7 +15215,7 @@ function parseAndVisit(source) {
|
|
|
15215
15215
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15216
15216
|
return luvioDocumentNode;
|
|
15217
15217
|
}
|
|
15218
|
-
// version: 1.133.
|
|
15218
|
+
// version: 1.133.3-9eae0c441
|
|
15219
15219
|
|
|
15220
15220
|
function unwrap(data) {
|
|
15221
15221
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16128,7 +16128,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16128
16128
|
const { apiFamily, name } = metadata;
|
|
16129
16129
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16130
16130
|
}
|
|
16131
|
-
// version: 1.133.
|
|
16131
|
+
// version: 1.133.3-9eae0c441
|
|
16132
16132
|
|
|
16133
16133
|
/**
|
|
16134
16134
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44428,7 +44428,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44428
44428
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44429
44429
|
});
|
|
44430
44430
|
});
|
|
44431
|
-
// version: 1.133.
|
|
44431
|
+
// version: 1.133.3-1dab73faa
|
|
44432
44432
|
|
|
44433
44433
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44434
44434
|
|
|
@@ -47217,7 +47217,10 @@ function fieldFilter(fieldName, fieldNode, alias, apiName, input, joins) {
|
|
|
47217
47217
|
for (let i = 0; i < length; i++) {
|
|
47218
47218
|
const term = op.value.value[i];
|
|
47219
47219
|
if (term !== null) {
|
|
47220
|
-
const splittedValue = term
|
|
47220
|
+
const splittedValue = term
|
|
47221
|
+
.split(MultiPickListValueSeparator$1)
|
|
47222
|
+
.map((v) => v.trim())
|
|
47223
|
+
.filter((v) => v.length > 0);
|
|
47221
47224
|
if (splittedValue.length === 1) {
|
|
47222
47225
|
children.push(comparison(extract, op.operator, {
|
|
47223
47226
|
type: ValueType.MultiPicklistSet,
|
|
@@ -47672,10 +47675,16 @@ function operatorWithValue(operator, valueNode, objectInfoDataType) {
|
|
|
47672
47675
|
if (objectInfoDataType === 'MultiPicklist') {
|
|
47673
47676
|
if (isMultiPicklistOperatorType(operator)) {
|
|
47674
47677
|
if (is(valueNode, 'StringValue')) {
|
|
47678
|
+
// The raw value could be ';;a; b;;', clean it up to 'a;b'
|
|
47679
|
+
const welformatedValue = valueNode.value
|
|
47680
|
+
.split(MultiPickListValueSeparator$1)
|
|
47681
|
+
.map((v) => v.trim())
|
|
47682
|
+
.filter((v) => v.length > 0)
|
|
47683
|
+
.join(MultiPickListValueSeparator$1);
|
|
47675
47684
|
return success({
|
|
47676
47685
|
type: 'MultiPicklistOperator',
|
|
47677
47686
|
operator,
|
|
47678
|
-
value: stringLiteral(
|
|
47687
|
+
value: stringLiteral(welformatedValue),
|
|
47679
47688
|
});
|
|
47680
47689
|
}
|
|
47681
47690
|
return failure([message(`Comparison value must be a MultiPicklist`)]);
|
|
@@ -51438,7 +51447,14 @@ function createMultiPicklistPredicate(value, operator, fieldInfo, alias) {
|
|
|
51438
51447
|
}
|
|
51439
51448
|
// generate single prodicate for = and !=
|
|
51440
51449
|
if (operator === '=' || operator === '!=') {
|
|
51441
|
-
|
|
51450
|
+
// The raw value could be ';;a; b;;', clean it up to 'a;b'
|
|
51451
|
+
const welformatedValue = value
|
|
51452
|
+
.toString()
|
|
51453
|
+
.split(MultiPickListValueSeparator)
|
|
51454
|
+
.map((v) => v.trim())
|
|
51455
|
+
.filter((v) => v.length > 0)
|
|
51456
|
+
.join(MultiPickListValueSeparator);
|
|
51457
|
+
return createSinglePredicate(welformatedValue, operator, fieldInfo, alias);
|
|
51442
51458
|
}
|
|
51443
51459
|
// if we have more than 1 value in the array from an includes/excludes we must split the values into
|
|
51444
51460
|
// a compound OR predicate for includes, AND predicate for excludes. each predicate could a composite
|
|
@@ -51448,7 +51464,10 @@ function createMultiPicklistPredicate(value, operator, fieldInfo, alias) {
|
|
|
51448
51464
|
type: PredicateType.compound,
|
|
51449
51465
|
operator: operator === 'LIKE' ? 'or' : 'and',
|
|
51450
51466
|
children: valueArray.map((v) => {
|
|
51451
|
-
const splittedValue = v
|
|
51467
|
+
const splittedValue = v
|
|
51468
|
+
.split(MultiPickListValueSeparator)
|
|
51469
|
+
.map((v) => v.trim())
|
|
51470
|
+
.filter((v) => v.length > 0);
|
|
51452
51471
|
if (splittedValue.length === 1) {
|
|
51453
51472
|
return createSinglePredicate(v, operator, fieldInfo, alias);
|
|
51454
51473
|
}
|
|
@@ -60045,7 +60064,7 @@ register({
|
|
|
60045
60064
|
id: '@salesforce/lds-network-adapter',
|
|
60046
60065
|
instrument: instrument$1,
|
|
60047
60066
|
});
|
|
60048
|
-
// version: 1.133.
|
|
60067
|
+
// version: 1.133.3-9eae0c441
|
|
60049
60068
|
|
|
60050
60069
|
const { create: create$2, keys: keys$2 } = Object;
|
|
60051
60070
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -74353,7 +74372,7 @@ register({
|
|
|
74353
74372
|
configuration: { ...configurationForGraphQLAdapters },
|
|
74354
74373
|
instrument,
|
|
74355
74374
|
});
|
|
74356
|
-
// version: 1.133.
|
|
74375
|
+
// version: 1.133.3-1dab73faa
|
|
74357
74376
|
|
|
74358
74377
|
// On core the unstable adapters are re-exported with different names,
|
|
74359
74378
|
|
|
@@ -76482,7 +76501,7 @@ withDefaultLuvio((luvio) => {
|
|
|
76482
76501
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
76483
76502
|
graphQLImperative = ldsAdapter;
|
|
76484
76503
|
});
|
|
76485
|
-
// version: 1.133.
|
|
76504
|
+
// version: 1.133.3-1dab73faa
|
|
76486
76505
|
|
|
76487
76506
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
76488
76507
|
__proto__: null,
|
|
@@ -77174,4 +77193,4 @@ const { luvio } = getRuntime();
|
|
|
77174
77193
|
setDefaultLuvio({ luvio });
|
|
77175
77194
|
|
|
77176
77195
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
77177
|
-
// version: 1.133.
|
|
77196
|
+
// version: 1.133.3-9eae0c441
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IdleDetector, Activity } from 'o11y/dist/modules/o11y/client/interfaces';
|
|
2
|
+
export declare const idleDetector: IdleDetector;
|
|
3
|
+
export declare const activity: Partial<Activity>;
|
|
4
|
+
type MetricsTags = Record<string, number | string | boolean>;
|
|
5
|
+
declare function startActivity(_name: string): Activity;
|
|
6
|
+
export declare const mockInstrumentation: {
|
|
7
|
+
startActivity: typeof startActivity;
|
|
8
|
+
error: () => void;
|
|
9
|
+
trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
10
|
+
incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const getInstrumentation: () => {
|
|
13
|
+
startActivity: typeof startActivity;
|
|
14
|
+
error: () => void;
|
|
15
|
+
trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
16
|
+
incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -3797,7 +3797,7 @@
|
|
|
3797
3797
|
}
|
|
3798
3798
|
callbacks.push(callback);
|
|
3799
3799
|
}
|
|
3800
|
-
// version: 1.133.
|
|
3800
|
+
// version: 1.133.3-9eae0c441
|
|
3801
3801
|
|
|
3802
3802
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3803
3803
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15221,7 +15221,7 @@
|
|
|
15221
15221
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15222
15222
|
return luvioDocumentNode;
|
|
15223
15223
|
}
|
|
15224
|
-
// version: 1.133.
|
|
15224
|
+
// version: 1.133.3-9eae0c441
|
|
15225
15225
|
|
|
15226
15226
|
function unwrap(data) {
|
|
15227
15227
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16134,7 +16134,7 @@
|
|
|
16134
16134
|
const { apiFamily, name } = metadata;
|
|
16135
16135
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16136
16136
|
}
|
|
16137
|
-
// version: 1.133.
|
|
16137
|
+
// version: 1.133.3-9eae0c441
|
|
16138
16138
|
|
|
16139
16139
|
/**
|
|
16140
16140
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44434,7 +44434,7 @@
|
|
|
44434
44434
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44435
44435
|
});
|
|
44436
44436
|
});
|
|
44437
|
-
// version: 1.133.
|
|
44437
|
+
// version: 1.133.3-1dab73faa
|
|
44438
44438
|
|
|
44439
44439
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44440
44440
|
|
|
@@ -47223,7 +47223,10 @@
|
|
|
47223
47223
|
for (let i = 0; i < length; i++) {
|
|
47224
47224
|
const term = op.value.value[i];
|
|
47225
47225
|
if (term !== null) {
|
|
47226
|
-
const splittedValue = term
|
|
47226
|
+
const splittedValue = term
|
|
47227
|
+
.split(MultiPickListValueSeparator$1)
|
|
47228
|
+
.map((v) => v.trim())
|
|
47229
|
+
.filter((v) => v.length > 0);
|
|
47227
47230
|
if (splittedValue.length === 1) {
|
|
47228
47231
|
children.push(comparison(extract, op.operator, {
|
|
47229
47232
|
type: ValueType.MultiPicklistSet,
|
|
@@ -47678,10 +47681,16 @@
|
|
|
47678
47681
|
if (objectInfoDataType === 'MultiPicklist') {
|
|
47679
47682
|
if (isMultiPicklistOperatorType(operator)) {
|
|
47680
47683
|
if (is(valueNode, 'StringValue')) {
|
|
47684
|
+
// The raw value could be ';;a; b;;', clean it up to 'a;b'
|
|
47685
|
+
const welformatedValue = valueNode.value
|
|
47686
|
+
.split(MultiPickListValueSeparator$1)
|
|
47687
|
+
.map((v) => v.trim())
|
|
47688
|
+
.filter((v) => v.length > 0)
|
|
47689
|
+
.join(MultiPickListValueSeparator$1);
|
|
47681
47690
|
return success({
|
|
47682
47691
|
type: 'MultiPicklistOperator',
|
|
47683
47692
|
operator,
|
|
47684
|
-
value: stringLiteral(
|
|
47693
|
+
value: stringLiteral(welformatedValue),
|
|
47685
47694
|
});
|
|
47686
47695
|
}
|
|
47687
47696
|
return failure([message(`Comparison value must be a MultiPicklist`)]);
|
|
@@ -51444,7 +51453,14 @@
|
|
|
51444
51453
|
}
|
|
51445
51454
|
// generate single prodicate for = and !=
|
|
51446
51455
|
if (operator === '=' || operator === '!=') {
|
|
51447
|
-
|
|
51456
|
+
// The raw value could be ';;a; b;;', clean it up to 'a;b'
|
|
51457
|
+
const welformatedValue = value
|
|
51458
|
+
.toString()
|
|
51459
|
+
.split(MultiPickListValueSeparator)
|
|
51460
|
+
.map((v) => v.trim())
|
|
51461
|
+
.filter((v) => v.length > 0)
|
|
51462
|
+
.join(MultiPickListValueSeparator);
|
|
51463
|
+
return createSinglePredicate(welformatedValue, operator, fieldInfo, alias);
|
|
51448
51464
|
}
|
|
51449
51465
|
// if we have more than 1 value in the array from an includes/excludes we must split the values into
|
|
51450
51466
|
// a compound OR predicate for includes, AND predicate for excludes. each predicate could a composite
|
|
@@ -51454,7 +51470,10 @@
|
|
|
51454
51470
|
type: PredicateType.compound,
|
|
51455
51471
|
operator: operator === 'LIKE' ? 'or' : 'and',
|
|
51456
51472
|
children: valueArray.map((v) => {
|
|
51457
|
-
const splittedValue = v
|
|
51473
|
+
const splittedValue = v
|
|
51474
|
+
.split(MultiPickListValueSeparator)
|
|
51475
|
+
.map((v) => v.trim())
|
|
51476
|
+
.filter((v) => v.length > 0);
|
|
51458
51477
|
if (splittedValue.length === 1) {
|
|
51459
51478
|
return createSinglePredicate(v, operator, fieldInfo, alias);
|
|
51460
51479
|
}
|
|
@@ -60051,7 +60070,7 @@
|
|
|
60051
60070
|
id: '@salesforce/lds-network-adapter',
|
|
60052
60071
|
instrument: instrument$1,
|
|
60053
60072
|
});
|
|
60054
|
-
// version: 1.133.
|
|
60073
|
+
// version: 1.133.3-9eae0c441
|
|
60055
60074
|
|
|
60056
60075
|
const { create: create$2, keys: keys$2 } = Object;
|
|
60057
60076
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -74359,7 +74378,7 @@
|
|
|
74359
74378
|
configuration: { ...configurationForGraphQLAdapters },
|
|
74360
74379
|
instrument,
|
|
74361
74380
|
});
|
|
74362
|
-
// version: 1.133.
|
|
74381
|
+
// version: 1.133.3-1dab73faa
|
|
74363
74382
|
|
|
74364
74383
|
// On core the unstable adapters are re-exported with different names,
|
|
74365
74384
|
|
|
@@ -76488,7 +76507,7 @@
|
|
|
76488
76507
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
76489
76508
|
graphQLImperative = ldsAdapter;
|
|
76490
76509
|
});
|
|
76491
|
-
// version: 1.133.
|
|
76510
|
+
// version: 1.133.3-1dab73faa
|
|
76492
76511
|
|
|
76493
76512
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
76494
76513
|
__proto__: null,
|
|
@@ -77197,4 +77216,4 @@
|
|
|
77197
77216
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
77198
77217
|
|
|
77199
77218
|
}));
|
|
77200
|
-
// version: 1.133.
|
|
77219
|
+
// version: 1.133.3-9eae0c441
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IdleDetector, Activity } from 'o11y/dist/modules/o11y/client/interfaces';
|
|
2
|
+
export declare const idleDetector: IdleDetector;
|
|
3
|
+
export declare const activity: Partial<Activity>;
|
|
4
|
+
type MetricsTags = Record<string, number | string | boolean>;
|
|
5
|
+
declare function startActivity(_name: string): Activity;
|
|
6
|
+
export declare const mockInstrumentation: {
|
|
7
|
+
startActivity: typeof startActivity;
|
|
8
|
+
error: () => void;
|
|
9
|
+
trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
10
|
+
incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const getInstrumentation: () => {
|
|
13
|
+
startActivity: typeof startActivity;
|
|
14
|
+
error: () => void;
|
|
15
|
+
trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
16
|
+
incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
|
|
17
|
+
};
|
|
18
|
+
export {};
|