@salesforce/lds-worker-api 1.229.0-dev1 → 1.229.0-dev2
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.
|
@@ -795,4 +795,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
798
|
-
// version: 1.229.0-
|
|
798
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
@@ -3968,7 +3968,7 @@ function withDefaultLuvio(callback) {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
callbacks.push(callback);
|
|
3970
3970
|
}
|
|
3971
|
-
// version: 1.229.0-
|
|
3971
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
3972
3972
|
|
|
3973
3973
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3974
3974
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15429,7 +15429,7 @@ function gql(literals, ...subs) {
|
|
|
15429
15429
|
}
|
|
15430
15430
|
return superResult;
|
|
15431
15431
|
}
|
|
15432
|
-
// version: 1.229.0-
|
|
15432
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
15433
15433
|
|
|
15434
15434
|
function unwrap(data) {
|
|
15435
15435
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16352,7 +16352,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16352
16352
|
const { apiFamily, name } = metadata;
|
|
16353
16353
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16354
16354
|
}
|
|
16355
|
-
// version: 1.229.0-
|
|
16355
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
16356
16356
|
|
|
16357
16357
|
/**
|
|
16358
16358
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -25038,18 +25038,28 @@ const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) =
|
|
|
25038
25038
|
* These are intermediate lookups to check if the record is in the L2 cache
|
|
25039
25039
|
* @param {Luvio} luvio
|
|
25040
25040
|
* @param {GetRecordLayoutTypeConfig} config
|
|
25041
|
-
* @param {BuildCachedSnapshot<BuildSnapshotContext} cachedSnapshot
|
|
25041
|
+
* @param {BuildCachedSnapshot<BuildSnapshotContext>} cachedSnapshot
|
|
25042
25042
|
*/
|
|
25043
25043
|
function makeCacheOnlySnapshot(luvio, config, adapterContext, cachedSnapshot) {
|
|
25044
|
-
return luvio.applyCachePolicy(
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
25048
|
-
},
|
|
25049
|
-
}, { config, luvio, adapterContext }, cachedSnapshot,
|
|
25050
|
-
// this won't be invoked since we're requesting only-if-cached
|
|
25044
|
+
return luvio.applyCachePolicy(
|
|
25045
|
+
// Pass empty context so environment will use its default cache-policy
|
|
25046
|
+
{}, { config, luvio, adapterContext }, cachedSnapshot,
|
|
25047
|
+
// disallow hitting the network by returning a gateway timeout
|
|
25051
25048
|
() => {
|
|
25052
|
-
|
|
25049
|
+
return new Promise((resolve) => {
|
|
25050
|
+
resolve({
|
|
25051
|
+
state: 'Error',
|
|
25052
|
+
data: undefined,
|
|
25053
|
+
error: {
|
|
25054
|
+
body: undefined,
|
|
25055
|
+
headers: {},
|
|
25056
|
+
ok: false,
|
|
25057
|
+
status: 504,
|
|
25058
|
+
statusText: 'Gateway Timeout',
|
|
25059
|
+
errorType: 'fetchResponse',
|
|
25060
|
+
},
|
|
25061
|
+
});
|
|
25062
|
+
});
|
|
25053
25063
|
});
|
|
25054
25064
|
}
|
|
25055
25065
|
/**
|
|
@@ -41158,7 +41168,7 @@ withDefaultLuvio((luvio) => {
|
|
|
41158
41168
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41159
41169
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41160
41170
|
});
|
|
41161
|
-
// version: 1.229.0-
|
|
41171
|
+
// version: 1.229.0-dev2-696fe5026
|
|
41162
41172
|
|
|
41163
41173
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41164
41174
|
|
|
@@ -45497,8 +45507,8 @@ function rootRecordQuery(selection, input) {
|
|
|
45497
45507
|
// If there is no metadata for this query or it somehow lacks a timestamp
|
|
45498
45508
|
// skip setting the root timestamp
|
|
45499
45509
|
if (queryMetadata !== undefined && queryMetadata.ingestionTimestamp !== undefined) {
|
|
45500
|
-
// subtract
|
|
45501
|
-
input.rootTimestamp = queryMetadata.ingestionTimestamp -
|
|
45510
|
+
// subtract 1000ms from timestamp to account for ingestion processing time
|
|
45511
|
+
input.rootTimestamp = queryMetadata.ingestionTimestamp - 1000;
|
|
45502
45512
|
}
|
|
45503
45513
|
}
|
|
45504
45514
|
return recordQuery(selection, alias, apiName, [], input);
|
|
@@ -50322,8 +50332,8 @@ async function fetchIngestionTimeStampFromDatabase(apiName, info, args, query) {
|
|
|
50322
50332
|
const results = await query(sql, [key]);
|
|
50323
50333
|
const [timestamp] = results.rows.map((row) => row[0]);
|
|
50324
50334
|
if (timestamp !== null && typeof timestamp === 'number') {
|
|
50325
|
-
//go back
|
|
50326
|
-
ingestionTimestamp = timestamp -
|
|
50335
|
+
//go back 1000 ms to adjust for margin of error when top level query is stored and when raml objects are stored
|
|
50336
|
+
ingestionTimestamp = timestamp - 1000;
|
|
50327
50337
|
}
|
|
50328
50338
|
}
|
|
50329
50339
|
return ingestionTimestamp;
|
|
@@ -50372,26 +50382,20 @@ function generateRecordQueries(objectInfos) {
|
|
|
50372
50382
|
let recordConnections = ``;
|
|
50373
50383
|
const polymorphicFieldTypeNames = new Set();
|
|
50374
50384
|
let typedScalars = new Set();
|
|
50385
|
+
let parentRelationshipFields = new Set();
|
|
50375
50386
|
for (const objectInfo of values$1(objectInfos)) {
|
|
50376
50387
|
const { apiName, childRelationships } = objectInfo;
|
|
50377
50388
|
let fields = ``;
|
|
50378
50389
|
typedScalars.add(`${apiName}_Filter`);
|
|
50379
50390
|
typedScalars.add(`${apiName}_OrderBy`);
|
|
50380
|
-
for (const childRelationship of childRelationships) {
|
|
50381
|
-
const { childObjectApiName } = childRelationship;
|
|
50382
|
-
// Only add the relationship if there is relevant objectinfos for it,
|
|
50383
|
-
// otherwise we'd be defining types we cannot satisfy and aren't referenced in
|
|
50384
|
-
// the query.
|
|
50385
|
-
if (objectInfos[childObjectApiName] !== undefined) {
|
|
50386
|
-
fields += `${childRelationship.relationshipName}(first: Int, where: ${childObjectApiName}_Filter, orderBy: ${childObjectApiName}_OrderBy, scope: SupportedScopes): ${childObjectApiName}Connection \n`;
|
|
50387
|
-
typedScalars.add(`${childObjectApiName}_Filter`);
|
|
50388
|
-
typedScalars.add(`${childObjectApiName}_OrderBy`);
|
|
50389
|
-
}
|
|
50390
|
-
}
|
|
50391
50391
|
for (const field of values$1(objectInfo.fields)) {
|
|
50392
50392
|
if (!fieldsStaticallyAdded.includes(field.apiName)) {
|
|
50393
50393
|
fields += `${field.apiName}: ${dataTypeToType(field.dataType, field.apiName)}\n`;
|
|
50394
50394
|
}
|
|
50395
|
+
//handles parent relationship
|
|
50396
|
+
if (field.relationshipName === null) {
|
|
50397
|
+
continue;
|
|
50398
|
+
}
|
|
50395
50399
|
// For spanning parent relationships with no union types
|
|
50396
50400
|
if (field.referenceToInfos.length === 1) {
|
|
50397
50401
|
const [relation] = field.referenceToInfos;
|
|
@@ -50399,11 +50403,13 @@ function generateRecordQueries(objectInfos) {
|
|
|
50399
50403
|
// otherwise we'd be defining types we cannot satisfy and aren't referenced in
|
|
50400
50404
|
// the query.
|
|
50401
50405
|
if (objectInfos[relation.apiName] !== undefined) {
|
|
50406
|
+
parentRelationshipFields.add(field.relationshipName);
|
|
50402
50407
|
fields += `${field.relationshipName}: ${relation.apiName}\n`;
|
|
50403
50408
|
}
|
|
50404
50409
|
// For polymorphic field, its type is 'Record' inteface. The concrete entity type name is saved for field resolving of next phase
|
|
50405
50410
|
}
|
|
50406
50411
|
else if (field.referenceToInfos.length > 1) {
|
|
50412
|
+
parentRelationshipFields.add(field.relationshipName);
|
|
50407
50413
|
fields += `${field.relationshipName}: Record\n`;
|
|
50408
50414
|
for (const relation of field.referenceToInfos) {
|
|
50409
50415
|
if (objectInfos[relation.apiName] !== undefined) {
|
|
@@ -50412,6 +50418,20 @@ function generateRecordQueries(objectInfos) {
|
|
|
50412
50418
|
}
|
|
50413
50419
|
}
|
|
50414
50420
|
}
|
|
50421
|
+
// handles child relationship
|
|
50422
|
+
for (const childRelationship of childRelationships) {
|
|
50423
|
+
const { childObjectApiName } = childRelationship;
|
|
50424
|
+
// Only add the relationship if there is relevant objectinfos for it,
|
|
50425
|
+
// otherwise we'd be defining types we cannot satisfy and aren't referenced in
|
|
50426
|
+
// the query.
|
|
50427
|
+
// If one field has both parent relationship and child relationship with the same name, the child relationship is ignored. This is how the server GQL has implemented as date of 08/07/2023
|
|
50428
|
+
if (objectInfos[childObjectApiName] !== undefined &&
|
|
50429
|
+
!parentRelationshipFields.has(childRelationship.relationshipName)) {
|
|
50430
|
+
fields += `${childRelationship.relationshipName}(first: Int, where: ${childObjectApiName}_Filter, orderBy: ${childObjectApiName}_OrderBy, scope: SupportedScopes): ${childObjectApiName}Connection \n`;
|
|
50431
|
+
typedScalars.add(`${childObjectApiName}_Filter`);
|
|
50432
|
+
typedScalars.add(`${childObjectApiName}_OrderBy`);
|
|
50433
|
+
}
|
|
50434
|
+
}
|
|
50415
50435
|
recordQueries += `${apiName}(first: Int, where: ${apiName}_Filter, orderBy: ${apiName}_OrderBy, scope: SupportedScopes): ${apiName}Connection\n`;
|
|
50416
50436
|
const isServiceAppointment = apiName === 'ServiceAppointment';
|
|
50417
50437
|
recordConnections += /* GraphQL */ `
|
|
@@ -57846,7 +57866,7 @@ register({
|
|
|
57846
57866
|
id: '@salesforce/lds-network-adapter',
|
|
57847
57867
|
instrument: instrument$1,
|
|
57848
57868
|
});
|
|
57849
|
-
// version: 1.229.0-
|
|
57869
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
57850
57870
|
|
|
57851
57871
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57852
57872
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -76292,7 +76312,7 @@ register({
|
|
|
76292
76312
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76293
76313
|
instrument,
|
|
76294
76314
|
});
|
|
76295
|
-
// version: 1.229.0-
|
|
76315
|
+
// version: 1.229.0-dev2-696fe5026
|
|
76296
76316
|
|
|
76297
76317
|
// On core the unstable adapters are re-exported with different names,
|
|
76298
76318
|
|
|
@@ -78539,7 +78559,7 @@ withDefaultLuvio((luvio) => {
|
|
|
78539
78559
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78540
78560
|
graphQLImperative = ldsAdapter;
|
|
78541
78561
|
});
|
|
78542
|
-
// version: 1.229.0-
|
|
78562
|
+
// version: 1.229.0-dev2-696fe5026
|
|
78543
78563
|
|
|
78544
78564
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78545
78565
|
__proto__: null,
|
|
@@ -79253,4 +79273,4 @@ const { luvio } = getRuntime();
|
|
|
79253
79273
|
setDefaultLuvio({ luvio });
|
|
79254
79274
|
|
|
79255
79275
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
79256
|
-
// version: 1.229.0-
|
|
79276
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
@@ -3974,7 +3974,7 @@
|
|
|
3974
3974
|
}
|
|
3975
3975
|
callbacks.push(callback);
|
|
3976
3976
|
}
|
|
3977
|
-
// version: 1.229.0-
|
|
3977
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
3978
3978
|
|
|
3979
3979
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3980
3980
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15435,7 +15435,7 @@
|
|
|
15435
15435
|
}
|
|
15436
15436
|
return superResult;
|
|
15437
15437
|
}
|
|
15438
|
-
// version: 1.229.0-
|
|
15438
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
15439
15439
|
|
|
15440
15440
|
function unwrap(data) {
|
|
15441
15441
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16358,7 +16358,7 @@
|
|
|
16358
16358
|
const { apiFamily, name } = metadata;
|
|
16359
16359
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16360
16360
|
}
|
|
16361
|
-
// version: 1.229.0-
|
|
16361
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
16362
16362
|
|
|
16363
16363
|
/**
|
|
16364
16364
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -25044,18 +25044,28 @@
|
|
|
25044
25044
|
* These are intermediate lookups to check if the record is in the L2 cache
|
|
25045
25045
|
* @param {Luvio} luvio
|
|
25046
25046
|
* @param {GetRecordLayoutTypeConfig} config
|
|
25047
|
-
* @param {BuildCachedSnapshot<BuildSnapshotContext} cachedSnapshot
|
|
25047
|
+
* @param {BuildCachedSnapshot<BuildSnapshotContext>} cachedSnapshot
|
|
25048
25048
|
*/
|
|
25049
25049
|
function makeCacheOnlySnapshot(luvio, config, adapterContext, cachedSnapshot) {
|
|
25050
|
-
return luvio.applyCachePolicy(
|
|
25051
|
-
|
|
25052
|
-
|
|
25053
|
-
|
|
25054
|
-
},
|
|
25055
|
-
}, { config, luvio, adapterContext }, cachedSnapshot,
|
|
25056
|
-
// this won't be invoked since we're requesting only-if-cached
|
|
25050
|
+
return luvio.applyCachePolicy(
|
|
25051
|
+
// Pass empty context so environment will use its default cache-policy
|
|
25052
|
+
{}, { config, luvio, adapterContext }, cachedSnapshot,
|
|
25053
|
+
// disallow hitting the network by returning a gateway timeout
|
|
25057
25054
|
() => {
|
|
25058
|
-
|
|
25055
|
+
return new Promise((resolve) => {
|
|
25056
|
+
resolve({
|
|
25057
|
+
state: 'Error',
|
|
25058
|
+
data: undefined,
|
|
25059
|
+
error: {
|
|
25060
|
+
body: undefined,
|
|
25061
|
+
headers: {},
|
|
25062
|
+
ok: false,
|
|
25063
|
+
status: 504,
|
|
25064
|
+
statusText: 'Gateway Timeout',
|
|
25065
|
+
errorType: 'fetchResponse',
|
|
25066
|
+
},
|
|
25067
|
+
});
|
|
25068
|
+
});
|
|
25059
25069
|
});
|
|
25060
25070
|
}
|
|
25061
25071
|
/**
|
|
@@ -41164,7 +41174,7 @@
|
|
|
41164
41174
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41165
41175
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41166
41176
|
});
|
|
41167
|
-
// version: 1.229.0-
|
|
41177
|
+
// version: 1.229.0-dev2-696fe5026
|
|
41168
41178
|
|
|
41169
41179
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41170
41180
|
|
|
@@ -45503,8 +45513,8 @@
|
|
|
45503
45513
|
// If there is no metadata for this query or it somehow lacks a timestamp
|
|
45504
45514
|
// skip setting the root timestamp
|
|
45505
45515
|
if (queryMetadata !== undefined && queryMetadata.ingestionTimestamp !== undefined) {
|
|
45506
|
-
// subtract
|
|
45507
|
-
input.rootTimestamp = queryMetadata.ingestionTimestamp -
|
|
45516
|
+
// subtract 1000ms from timestamp to account for ingestion processing time
|
|
45517
|
+
input.rootTimestamp = queryMetadata.ingestionTimestamp - 1000;
|
|
45508
45518
|
}
|
|
45509
45519
|
}
|
|
45510
45520
|
return recordQuery(selection, alias, apiName, [], input);
|
|
@@ -50328,8 +50338,8 @@
|
|
|
50328
50338
|
const results = await query(sql, [key]);
|
|
50329
50339
|
const [timestamp] = results.rows.map((row) => row[0]);
|
|
50330
50340
|
if (timestamp !== null && typeof timestamp === 'number') {
|
|
50331
|
-
//go back
|
|
50332
|
-
ingestionTimestamp = timestamp -
|
|
50341
|
+
//go back 1000 ms to adjust for margin of error when top level query is stored and when raml objects are stored
|
|
50342
|
+
ingestionTimestamp = timestamp - 1000;
|
|
50333
50343
|
}
|
|
50334
50344
|
}
|
|
50335
50345
|
return ingestionTimestamp;
|
|
@@ -50378,26 +50388,20 @@
|
|
|
50378
50388
|
let recordConnections = ``;
|
|
50379
50389
|
const polymorphicFieldTypeNames = new Set();
|
|
50380
50390
|
let typedScalars = new Set();
|
|
50391
|
+
let parentRelationshipFields = new Set();
|
|
50381
50392
|
for (const objectInfo of values$1(objectInfos)) {
|
|
50382
50393
|
const { apiName, childRelationships } = objectInfo;
|
|
50383
50394
|
let fields = ``;
|
|
50384
50395
|
typedScalars.add(`${apiName}_Filter`);
|
|
50385
50396
|
typedScalars.add(`${apiName}_OrderBy`);
|
|
50386
|
-
for (const childRelationship of childRelationships) {
|
|
50387
|
-
const { childObjectApiName } = childRelationship;
|
|
50388
|
-
// Only add the relationship if there is relevant objectinfos for it,
|
|
50389
|
-
// otherwise we'd be defining types we cannot satisfy and aren't referenced in
|
|
50390
|
-
// the query.
|
|
50391
|
-
if (objectInfos[childObjectApiName] !== undefined) {
|
|
50392
|
-
fields += `${childRelationship.relationshipName}(first: Int, where: ${childObjectApiName}_Filter, orderBy: ${childObjectApiName}_OrderBy, scope: SupportedScopes): ${childObjectApiName}Connection \n`;
|
|
50393
|
-
typedScalars.add(`${childObjectApiName}_Filter`);
|
|
50394
|
-
typedScalars.add(`${childObjectApiName}_OrderBy`);
|
|
50395
|
-
}
|
|
50396
|
-
}
|
|
50397
50397
|
for (const field of values$1(objectInfo.fields)) {
|
|
50398
50398
|
if (!fieldsStaticallyAdded.includes(field.apiName)) {
|
|
50399
50399
|
fields += `${field.apiName}: ${dataTypeToType(field.dataType, field.apiName)}\n`;
|
|
50400
50400
|
}
|
|
50401
|
+
//handles parent relationship
|
|
50402
|
+
if (field.relationshipName === null) {
|
|
50403
|
+
continue;
|
|
50404
|
+
}
|
|
50401
50405
|
// For spanning parent relationships with no union types
|
|
50402
50406
|
if (field.referenceToInfos.length === 1) {
|
|
50403
50407
|
const [relation] = field.referenceToInfos;
|
|
@@ -50405,11 +50409,13 @@
|
|
|
50405
50409
|
// otherwise we'd be defining types we cannot satisfy and aren't referenced in
|
|
50406
50410
|
// the query.
|
|
50407
50411
|
if (objectInfos[relation.apiName] !== undefined) {
|
|
50412
|
+
parentRelationshipFields.add(field.relationshipName);
|
|
50408
50413
|
fields += `${field.relationshipName}: ${relation.apiName}\n`;
|
|
50409
50414
|
}
|
|
50410
50415
|
// For polymorphic field, its type is 'Record' inteface. The concrete entity type name is saved for field resolving of next phase
|
|
50411
50416
|
}
|
|
50412
50417
|
else if (field.referenceToInfos.length > 1) {
|
|
50418
|
+
parentRelationshipFields.add(field.relationshipName);
|
|
50413
50419
|
fields += `${field.relationshipName}: Record\n`;
|
|
50414
50420
|
for (const relation of field.referenceToInfos) {
|
|
50415
50421
|
if (objectInfos[relation.apiName] !== undefined) {
|
|
@@ -50418,6 +50424,20 @@
|
|
|
50418
50424
|
}
|
|
50419
50425
|
}
|
|
50420
50426
|
}
|
|
50427
|
+
// handles child relationship
|
|
50428
|
+
for (const childRelationship of childRelationships) {
|
|
50429
|
+
const { childObjectApiName } = childRelationship;
|
|
50430
|
+
// Only add the relationship if there is relevant objectinfos for it,
|
|
50431
|
+
// otherwise we'd be defining types we cannot satisfy and aren't referenced in
|
|
50432
|
+
// the query.
|
|
50433
|
+
// If one field has both parent relationship and child relationship with the same name, the child relationship is ignored. This is how the server GQL has implemented as date of 08/07/2023
|
|
50434
|
+
if (objectInfos[childObjectApiName] !== undefined &&
|
|
50435
|
+
!parentRelationshipFields.has(childRelationship.relationshipName)) {
|
|
50436
|
+
fields += `${childRelationship.relationshipName}(first: Int, where: ${childObjectApiName}_Filter, orderBy: ${childObjectApiName}_OrderBy, scope: SupportedScopes): ${childObjectApiName}Connection \n`;
|
|
50437
|
+
typedScalars.add(`${childObjectApiName}_Filter`);
|
|
50438
|
+
typedScalars.add(`${childObjectApiName}_OrderBy`);
|
|
50439
|
+
}
|
|
50440
|
+
}
|
|
50421
50441
|
recordQueries += `${apiName}(first: Int, where: ${apiName}_Filter, orderBy: ${apiName}_OrderBy, scope: SupportedScopes): ${apiName}Connection\n`;
|
|
50422
50442
|
const isServiceAppointment = apiName === 'ServiceAppointment';
|
|
50423
50443
|
recordConnections += /* GraphQL */ `
|
|
@@ -57852,7 +57872,7 @@
|
|
|
57852
57872
|
id: '@salesforce/lds-network-adapter',
|
|
57853
57873
|
instrument: instrument$1,
|
|
57854
57874
|
});
|
|
57855
|
-
// version: 1.229.0-
|
|
57875
|
+
// version: 1.229.0-dev2-e9832aaff
|
|
57856
57876
|
|
|
57857
57877
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57858
57878
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -76298,7 +76318,7 @@
|
|
|
76298
76318
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76299
76319
|
instrument,
|
|
76300
76320
|
});
|
|
76301
|
-
// version: 1.229.0-
|
|
76321
|
+
// version: 1.229.0-dev2-696fe5026
|
|
76302
76322
|
|
|
76303
76323
|
// On core the unstable adapters are re-exported with different names,
|
|
76304
76324
|
|
|
@@ -78545,7 +78565,7 @@
|
|
|
78545
78565
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78546
78566
|
graphQLImperative = ldsAdapter;
|
|
78547
78567
|
});
|
|
78548
|
-
// version: 1.229.0-
|
|
78568
|
+
// version: 1.229.0-dev2-696fe5026
|
|
78549
78569
|
|
|
78550
78570
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78551
78571
|
__proto__: null,
|
|
@@ -79276,4 +79296,4 @@
|
|
|
79276
79296
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
79277
79297
|
|
|
79278
79298
|
}));
|
|
79279
|
-
// version: 1.229.0-
|
|
79299
|
+
// version: 1.229.0-dev2-e9832aaff
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.229.0-
|
|
3
|
+
"version": "1.229.0-dev2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "1.229.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "1.229.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "1.229.0-
|
|
41
|
-
"@salesforce/lds-drafts": "1.229.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "1.229.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "1.229.0-
|
|
44
|
-
"@salesforce/lds-priming": "1.229.0-
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "1.229.0-
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "1.229.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "1.229.0-dev2",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "1.229.0-dev2",
|
|
40
|
+
"@salesforce/lds-default-luvio": "1.229.0-dev2",
|
|
41
|
+
"@salesforce/lds-drafts": "1.229.0-dev2",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "1.229.0-dev2",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "1.229.0-dev2",
|
|
44
|
+
"@salesforce/lds-priming": "1.229.0-dev2",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "1.229.0-dev2",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "1.229.0-dev2",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|