@salesforce/lds-worker-api 1.100.4 → 1.101.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/sfdc/es/ldsWorkerApi.js +2 -2
- package/dist/standalone/es/lds-worker-api.js +23 -23
- package/dist/standalone/umd/lds-worker-api.js +23 -23
- package/package.json +10 -10
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/adapter-snapshot.result.json +9 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.adapter-testcase.json +16 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.l2DataSet.tsv +2 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.adapter-testcase.json +16 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.l2DataSet.tsv +2 -0
|
@@ -623,7 +623,7 @@ function executeMutatingAdapter(adapterId, config, onResult, nativeAdapterReques
|
|
|
623
623
|
|
|
624
624
|
/* istanbul ignore file */
|
|
625
625
|
// A allowlist of methods that we allow to be proxied from another LDS instance
|
|
626
|
-
const allowList = ['enqueue', 'getQueueActions'
|
|
626
|
+
const allowList = ['enqueue', 'getQueueActions'];
|
|
627
627
|
/**
|
|
628
628
|
* Implements the DraftQueue interface from nimbus-plugin-lds by passing requests
|
|
629
629
|
* to the instance of the lds-drafts' DraftQueue implementation
|
|
@@ -743,4 +743,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
746
|
-
// version: 1.
|
|
746
|
+
// version: 1.101.0-07a9bc898
|
|
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
|
|
|
3776
3776
|
}
|
|
3777
3777
|
callbacks.push(callback);
|
|
3778
3778
|
}
|
|
3779
|
-
// version: 1.
|
|
3779
|
+
// version: 1.101.0-07a9bc898
|
|
3780
3780
|
|
|
3781
3781
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3782
3782
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15200,7 +15200,7 @@ function parseAndVisit(source) {
|
|
|
15200
15200
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15201
15201
|
return luvioDocumentNode;
|
|
15202
15202
|
}
|
|
15203
|
-
// version: 1.
|
|
15203
|
+
// version: 1.101.0-07a9bc898
|
|
15204
15204
|
|
|
15205
15205
|
function unwrap(data) {
|
|
15206
15206
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16081,7 +16081,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata) {
|
|
|
16081
16081
|
const { apiFamily, name } = metadata;
|
|
16082
16082
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16083
16083
|
}
|
|
16084
|
-
// version: 1.
|
|
16084
|
+
// version: 1.101.0-07a9bc898
|
|
16085
16085
|
|
|
16086
16086
|
/**
|
|
16087
16087
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -43634,7 +43634,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43634
43634
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
43635
43635
|
});
|
|
43636
43636
|
});
|
|
43637
|
-
// version: 1.
|
|
43637
|
+
// version: 1.101.0-07a9bc898
|
|
43638
43638
|
|
|
43639
43639
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
43640
43640
|
|
|
@@ -48228,14 +48228,13 @@ const { isArray: isArray$3 } = Array;
|
|
|
48228
48228
|
function buildLuvioOverrideForDraftAdapters(luvio, handler, extractTargetIdFromCacheKey, options = {}) {
|
|
48229
48229
|
// override this to create and enqueue a new draft action, and return synthetic response
|
|
48230
48230
|
const dispatchResourceRequest = async function (resourceRequest, _context) {
|
|
48231
|
-
const
|
|
48231
|
+
const { data } = await handler.enqueue(resourceRequest).catch((err) => {
|
|
48232
48232
|
throw transformErrorToDraftSynthesisError(err);
|
|
48233
48233
|
});
|
|
48234
|
-
|
|
48235
|
-
if (record === undefined) {
|
|
48234
|
+
if (data === undefined) {
|
|
48236
48235
|
return Promise.reject(createDraftSynthesisErrorResponse());
|
|
48237
48236
|
}
|
|
48238
|
-
return createOkResponse(
|
|
48237
|
+
return createOkResponse(data);
|
|
48239
48238
|
};
|
|
48240
48239
|
// override this to use an infinitely large ttl so the cache entry never expires
|
|
48241
48240
|
const publishStoreMetadata = function (key, storeMetadataParams) {
|
|
@@ -48480,10 +48479,6 @@ class DurableDraftQueue {
|
|
|
48480
48479
|
const handler = customActionHandler(executor, id, this);
|
|
48481
48480
|
return this.addHandler(handler);
|
|
48482
48481
|
}
|
|
48483
|
-
async getDataForAction(action) {
|
|
48484
|
-
const handler = this.getHandler(action.handler);
|
|
48485
|
-
return handler.getDataForAction(action);
|
|
48486
|
-
}
|
|
48487
48482
|
getQueueState() {
|
|
48488
48483
|
return this.state;
|
|
48489
48484
|
}
|
|
@@ -48576,7 +48571,11 @@ class DurableDraftQueue {
|
|
|
48576
48571
|
if (this.state === DraftQueueState.Started) {
|
|
48577
48572
|
this.processNextAction();
|
|
48578
48573
|
}
|
|
48579
|
-
|
|
48574
|
+
const actionData = (await handler.getDataForAction(pendingAction));
|
|
48575
|
+
return {
|
|
48576
|
+
action: pendingAction,
|
|
48577
|
+
data: actionData,
|
|
48578
|
+
};
|
|
48580
48579
|
});
|
|
48581
48580
|
}
|
|
48582
48581
|
registerOnChangedListener(listener) {
|
|
@@ -49506,7 +49505,9 @@ class DraftManager {
|
|
|
49506
49505
|
targetId,
|
|
49507
49506
|
tag,
|
|
49508
49507
|
})
|
|
49509
|
-
.then(
|
|
49508
|
+
.then((result) => {
|
|
49509
|
+
return this.buildDraftQueueItem(result.action);
|
|
49510
|
+
});
|
|
49510
49511
|
}
|
|
49511
49512
|
/**
|
|
49512
49513
|
* Get the current state of each of the DraftActions in the DraftQueue
|
|
@@ -55365,14 +55366,13 @@ function performQuickActionDraftEnvironment(luvio, env, handler) {
|
|
|
55365
55366
|
// only override requests to createRecord endpoint
|
|
55366
55367
|
return env.dispatchResourceRequest(request, context, eventObservers);
|
|
55367
55368
|
}
|
|
55368
|
-
const
|
|
55369
|
+
const { data } = await handler.enqueue(request).catch((err) => {
|
|
55369
55370
|
throw createDraftSynthesisErrorResponse(err.message);
|
|
55370
55371
|
});
|
|
55371
|
-
|
|
55372
|
-
if (record === undefined) {
|
|
55372
|
+
if (data === undefined) {
|
|
55373
55373
|
return Promise.reject(createDraftSynthesisErrorResponse());
|
|
55374
55374
|
}
|
|
55375
|
-
return createOkResponse(
|
|
55375
|
+
return createOkResponse(data);
|
|
55376
55376
|
};
|
|
55377
55377
|
return create$2$1(env, {
|
|
55378
55378
|
dispatchResourceRequest: { value: dispatchResourceRequest },
|
|
@@ -58810,7 +58810,7 @@ register({
|
|
|
58810
58810
|
id: '@salesforce/lds-network-adapter',
|
|
58811
58811
|
instrument: instrument$1,
|
|
58812
58812
|
});
|
|
58813
|
-
// version: 1.
|
|
58813
|
+
// version: 1.101.0-07a9bc898
|
|
58814
58814
|
|
|
58815
58815
|
const { create: create$2, keys: keys$2 } = Object;
|
|
58816
58816
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -76463,7 +76463,7 @@ register({
|
|
|
76463
76463
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76464
76464
|
instrument,
|
|
76465
76465
|
});
|
|
76466
|
-
// version: 1.
|
|
76466
|
+
// version: 1.101.0-07a9bc898
|
|
76467
76467
|
|
|
76468
76468
|
// On core the unstable adapters are re-exported with different names,
|
|
76469
76469
|
|
|
@@ -78592,7 +78592,7 @@ withDefaultLuvio((luvio) => {
|
|
|
78592
78592
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78593
78593
|
graphQLImperative = ldsAdapter;
|
|
78594
78594
|
});
|
|
78595
|
-
// version: 1.
|
|
78595
|
+
// version: 1.101.0-07a9bc898
|
|
78596
78596
|
|
|
78597
78597
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78598
78598
|
__proto__: null,
|
|
@@ -79182,7 +79182,7 @@ function executeMutatingAdapter(adapterId, config, onResult, nativeAdapterReques
|
|
|
79182
79182
|
|
|
79183
79183
|
/* istanbul ignore file */
|
|
79184
79184
|
// A allowlist of methods that we allow to be proxied from another LDS instance
|
|
79185
|
-
const allowList = ['enqueue', 'getQueueActions'
|
|
79185
|
+
const allowList = ['enqueue', 'getQueueActions'];
|
|
79186
79186
|
/**
|
|
79187
79187
|
* Implements the DraftQueue interface from nimbus-plugin-lds by passing requests
|
|
79188
79188
|
* to the instance of the lds-drafts' DraftQueue implementation
|
|
@@ -79266,4 +79266,4 @@ const { luvio } = getRuntime();
|
|
|
79266
79266
|
setDefaultLuvio({ luvio });
|
|
79267
79267
|
|
|
79268
79268
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
79269
|
-
// version: 1.
|
|
79269
|
+
// version: 1.101.0-07a9bc898
|
|
@@ -3782,7 +3782,7 @@
|
|
|
3782
3782
|
}
|
|
3783
3783
|
callbacks.push(callback);
|
|
3784
3784
|
}
|
|
3785
|
-
// version: 1.
|
|
3785
|
+
// version: 1.101.0-07a9bc898
|
|
3786
3786
|
|
|
3787
3787
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3788
3788
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15206,7 +15206,7 @@
|
|
|
15206
15206
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15207
15207
|
return luvioDocumentNode;
|
|
15208
15208
|
}
|
|
15209
|
-
// version: 1.
|
|
15209
|
+
// version: 1.101.0-07a9bc898
|
|
15210
15210
|
|
|
15211
15211
|
function unwrap(data) {
|
|
15212
15212
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16087,7 +16087,7 @@
|
|
|
16087
16087
|
const { apiFamily, name } = metadata;
|
|
16088
16088
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16089
16089
|
}
|
|
16090
|
-
// version: 1.
|
|
16090
|
+
// version: 1.101.0-07a9bc898
|
|
16091
16091
|
|
|
16092
16092
|
/**
|
|
16093
16093
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -43640,7 +43640,7 @@
|
|
|
43640
43640
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
43641
43641
|
});
|
|
43642
43642
|
});
|
|
43643
|
-
// version: 1.
|
|
43643
|
+
// version: 1.101.0-07a9bc898
|
|
43644
43644
|
|
|
43645
43645
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
43646
43646
|
|
|
@@ -48234,14 +48234,13 @@
|
|
|
48234
48234
|
function buildLuvioOverrideForDraftAdapters(luvio, handler, extractTargetIdFromCacheKey, options = {}) {
|
|
48235
48235
|
// override this to create and enqueue a new draft action, and return synthetic response
|
|
48236
48236
|
const dispatchResourceRequest = async function (resourceRequest, _context) {
|
|
48237
|
-
const
|
|
48237
|
+
const { data } = await handler.enqueue(resourceRequest).catch((err) => {
|
|
48238
48238
|
throw transformErrorToDraftSynthesisError(err);
|
|
48239
48239
|
});
|
|
48240
|
-
|
|
48241
|
-
if (record === undefined) {
|
|
48240
|
+
if (data === undefined) {
|
|
48242
48241
|
return Promise.reject(createDraftSynthesisErrorResponse());
|
|
48243
48242
|
}
|
|
48244
|
-
return createOkResponse(
|
|
48243
|
+
return createOkResponse(data);
|
|
48245
48244
|
};
|
|
48246
48245
|
// override this to use an infinitely large ttl so the cache entry never expires
|
|
48247
48246
|
const publishStoreMetadata = function (key, storeMetadataParams) {
|
|
@@ -48486,10 +48485,6 @@
|
|
|
48486
48485
|
const handler = customActionHandler(executor, id, this);
|
|
48487
48486
|
return this.addHandler(handler);
|
|
48488
48487
|
}
|
|
48489
|
-
async getDataForAction(action) {
|
|
48490
|
-
const handler = this.getHandler(action.handler);
|
|
48491
|
-
return handler.getDataForAction(action);
|
|
48492
|
-
}
|
|
48493
48488
|
getQueueState() {
|
|
48494
48489
|
return this.state;
|
|
48495
48490
|
}
|
|
@@ -48582,7 +48577,11 @@
|
|
|
48582
48577
|
if (this.state === DraftQueueState.Started) {
|
|
48583
48578
|
this.processNextAction();
|
|
48584
48579
|
}
|
|
48585
|
-
|
|
48580
|
+
const actionData = (await handler.getDataForAction(pendingAction));
|
|
48581
|
+
return {
|
|
48582
|
+
action: pendingAction,
|
|
48583
|
+
data: actionData,
|
|
48584
|
+
};
|
|
48586
48585
|
});
|
|
48587
48586
|
}
|
|
48588
48587
|
registerOnChangedListener(listener) {
|
|
@@ -49512,7 +49511,9 @@
|
|
|
49512
49511
|
targetId,
|
|
49513
49512
|
tag,
|
|
49514
49513
|
})
|
|
49515
|
-
.then(
|
|
49514
|
+
.then((result) => {
|
|
49515
|
+
return this.buildDraftQueueItem(result.action);
|
|
49516
|
+
});
|
|
49516
49517
|
}
|
|
49517
49518
|
/**
|
|
49518
49519
|
* Get the current state of each of the DraftActions in the DraftQueue
|
|
@@ -55371,14 +55372,13 @@
|
|
|
55371
55372
|
// only override requests to createRecord endpoint
|
|
55372
55373
|
return env.dispatchResourceRequest(request, context, eventObservers);
|
|
55373
55374
|
}
|
|
55374
|
-
const
|
|
55375
|
+
const { data } = await handler.enqueue(request).catch((err) => {
|
|
55375
55376
|
throw createDraftSynthesisErrorResponse(err.message);
|
|
55376
55377
|
});
|
|
55377
|
-
|
|
55378
|
-
if (record === undefined) {
|
|
55378
|
+
if (data === undefined) {
|
|
55379
55379
|
return Promise.reject(createDraftSynthesisErrorResponse());
|
|
55380
55380
|
}
|
|
55381
|
-
return createOkResponse(
|
|
55381
|
+
return createOkResponse(data);
|
|
55382
55382
|
};
|
|
55383
55383
|
return create$2$1(env, {
|
|
55384
55384
|
dispatchResourceRequest: { value: dispatchResourceRequest },
|
|
@@ -58816,7 +58816,7 @@
|
|
|
58816
58816
|
id: '@salesforce/lds-network-adapter',
|
|
58817
58817
|
instrument: instrument$1,
|
|
58818
58818
|
});
|
|
58819
|
-
// version: 1.
|
|
58819
|
+
// version: 1.101.0-07a9bc898
|
|
58820
58820
|
|
|
58821
58821
|
const { create: create$2, keys: keys$2 } = Object;
|
|
58822
58822
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -76469,7 +76469,7 @@
|
|
|
76469
76469
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76470
76470
|
instrument,
|
|
76471
76471
|
});
|
|
76472
|
-
// version: 1.
|
|
76472
|
+
// version: 1.101.0-07a9bc898
|
|
76473
76473
|
|
|
76474
76474
|
// On core the unstable adapters are re-exported with different names,
|
|
76475
76475
|
|
|
@@ -78598,7 +78598,7 @@
|
|
|
78598
78598
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78599
78599
|
graphQLImperative = ldsAdapter;
|
|
78600
78600
|
});
|
|
78601
|
-
// version: 1.
|
|
78601
|
+
// version: 1.101.0-07a9bc898
|
|
78602
78602
|
|
|
78603
78603
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78604
78604
|
__proto__: null,
|
|
@@ -79188,7 +79188,7 @@
|
|
|
79188
79188
|
|
|
79189
79189
|
/* istanbul ignore file */
|
|
79190
79190
|
// A allowlist of methods that we allow to be proxied from another LDS instance
|
|
79191
|
-
const allowList = ['enqueue', 'getQueueActions'
|
|
79191
|
+
const allowList = ['enqueue', 'getQueueActions'];
|
|
79192
79192
|
/**
|
|
79193
79193
|
* Implements the DraftQueue interface from nimbus-plugin-lds by passing requests
|
|
79194
79194
|
* to the instance of the lds-drafts' DraftQueue implementation
|
|
@@ -79289,4 +79289,4 @@
|
|
|
79289
79289
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
79290
79290
|
|
|
79291
79291
|
}));
|
|
79292
|
-
// version: 1.
|
|
79292
|
+
// version: 1.101.0-07a9bc898
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.101.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/umd/lds-worker-api.js",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@luvio/engine": "0.135.4",
|
|
38
38
|
"@luvio/environments": "0.135.4",
|
|
39
39
|
"@oat-sa/rollup-plugin-wildcard-external": "^0.1.0",
|
|
40
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
41
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
42
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
43
|
-
"@salesforce/lds-drafts": "^1.
|
|
44
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
45
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
46
|
-
"@salesforce/lds-priming": "^1.
|
|
47
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
48
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
40
|
+
"@salesforce/lds-adapters-graphql": "^1.101.0",
|
|
41
|
+
"@salesforce/lds-adapters-uiapi": "^1.101.0",
|
|
42
|
+
"@salesforce/lds-default-luvio": "^1.101.0",
|
|
43
|
+
"@salesforce/lds-drafts": "^1.101.0",
|
|
44
|
+
"@salesforce/lds-graphql-parser": "^1.101.0",
|
|
45
|
+
"@salesforce/lds-luvio-engine": "^1.101.0",
|
|
46
|
+
"@salesforce/lds-priming": "^1.101.0",
|
|
47
|
+
"@salesforce/lds-runtime-mobile": "^1.101.0",
|
|
48
|
+
"@salesforce/nimbus-plugin-lds": "^1.101.0",
|
|
49
49
|
"ajv": "^8.11.0",
|
|
50
50
|
"glob": "^7.1.5",
|
|
51
51
|
"nimbus-types": "^2.0.0-alpha1",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"testCaseName": "Mismatching metadata version fails the only-if-cached adapter call",
|
|
3
|
+
"l2DataSetPath": "./adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.l2DataSet.tsv",
|
|
4
|
+
"adapters": [
|
|
5
|
+
{
|
|
6
|
+
"_comment": "get object info for Pilot",
|
|
7
|
+
"name": "getObjectInfo",
|
|
8
|
+
"config": { "objectApiName": "Pilot" },
|
|
9
|
+
"requestContext": {
|
|
10
|
+
"cachePolicy": { "type": "only-if-cached" }
|
|
11
|
+
},
|
|
12
|
+
"expectedResult": "./adapter-testcases/metadataVersion/adapter-snapshot.result.json"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"freezeTime": true
|
|
16
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
key data metadata
|
|
2
|
+
UiApi::ObjectInfoRepresentation:Pilot {"apiName":"Pilot","associateEntityType":null,"associateParentEntity":null,"childRelationships":[],"createable":true,"custom":false,"defaultRecordTypeId":"012000000000000AAA","deletable":false,"dependentFields":{},"eTag":"bc958a32268f93e2105e47efb7f14c00","feedEnabled":true,"fields":{"CreatedById":{"apiName":"CreatedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"CreatedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"CreatedDate":{"apiName":"CreatedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"FirstName":{"apiName":"FirstName","calculated":false,"compound":false,"compoundComponentName":"FirstName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"First Name","length":40,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":false,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Id":{"apiName":"Id","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Pilot ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedById":{"apiName":"LastModifiedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"LastModifiedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedDate":{"apiName":"LastModifiedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastName":{"apiName":"LastName","calculated":false,"compound":false,"compoundComponentName":"LastName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Name","length":80,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Name":{"apiName":"Name","calculated":false,"compound":true,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Full Name","length":121,"nameField":true,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"SystemModstamp":{"apiName":"SystemModstamp","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"System Modstamp","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false}},"keyPrefix":"a01","label":"Pilot","labelPlural":"Pilots","layoutable":true,"mruEnabled":true,"nameFields":["FirstName","LastName","Name"],"queryable":true,"recordTypeInfos":{"012000000000000AAA":{"available":true,"defaultRecordTypeMapping":true,"master":true,"name":"Master","recordTypeId":"012000000000000AAA"}},"searchable":true,"themeInfo":{"color":"65CAE4","iconUrl":"https://corsa04-basic-2015684969.vpod.t.force.com/img/icon/t4v35/standard/user_120.png"},"updateable":true} {"ingestionTimestamp":1577836800000,"expirationTimestamp":1577837700000,"representationName":"ObjectInfoRepresentation","namespace":"UiApi","version":"ec9370a0cd56f4769fe9ec5cd942ff30","metadataVersion":"0.100.0"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"testCaseName": "Mismatching version fails only-if-cached adapter call",
|
|
3
|
+
"l2DataSetPath": "./adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.l2DataSet.tsv",
|
|
4
|
+
"adapters": [
|
|
5
|
+
{
|
|
6
|
+
"_comment": "get Boeing 737 record last flied by name",
|
|
7
|
+
"name": "getObjectInfo",
|
|
8
|
+
"config": { "objectApiName": "Pilot" },
|
|
9
|
+
"requestContext": {
|
|
10
|
+
"cachePolicy": { "type": "only-if-cached" }
|
|
11
|
+
},
|
|
12
|
+
"expectedResult": "./adapter-testcases/metadataVersion/adapter-snapshot.result.json"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"freezeTime": true
|
|
16
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
key data metadata
|
|
2
|
+
UiApi::ObjectInfoRepresentation:Pilot {"apiName":"Pilot","associateEntityType":null,"associateParentEntity":null,"childRelationships":[],"createable":true,"custom":false,"defaultRecordTypeId":"012000000000000AAA","deletable":false,"dependentFields":{},"eTag":"bc958a32268f93e2105e47efb7f14c00","feedEnabled":true,"fields":{"CreatedById":{"apiName":"CreatedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"CreatedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"CreatedDate":{"apiName":"CreatedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"FirstName":{"apiName":"FirstName","calculated":false,"compound":false,"compoundComponentName":"FirstName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"First Name","length":40,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":false,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Id":{"apiName":"Id","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Pilot ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedById":{"apiName":"LastModifiedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"LastModifiedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedDate":{"apiName":"LastModifiedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastName":{"apiName":"LastName","calculated":false,"compound":false,"compoundComponentName":"LastName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Name","length":80,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Name":{"apiName":"Name","calculated":false,"compound":true,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Full Name","length":121,"nameField":true,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"SystemModstamp":{"apiName":"SystemModstamp","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"System Modstamp","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false}},"keyPrefix":"a01","label":"Pilot","labelPlural":"Pilots","layoutable":true,"mruEnabled":true,"nameFields":["FirstName","LastName","Name"],"queryable":true,"recordTypeInfos":{"012000000000000AAA":{"available":true,"defaultRecordTypeMapping":true,"master":true,"name":"Master","recordTypeId":"012000000000000AAA"}},"searchable":true,"themeInfo":{"color":"65CAE4","iconUrl":"https://corsa04-basic-2015684969.vpod.t.force.com/img/icon/t4v35/standard/user_120.png"},"updateable":true} {"ingestionTimestamp":1577836800000,"expirationTimestamp":1577837700000,"representationName":"ObjectInfoRepresentation","namespace":"UiApi","version":"ac9370a0cd56f4769fe9ec5cd942ff30","metadataVersion":"0.111.0"}
|