@salesforce/lds-worker-api 1.289.0 → 1.291.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 +1 -1
- package/dist/standalone/es/lds-worker-api.js +277 -200
- package/dist/standalone/umd/lds-worker-api.js +277 -200
- package/package.json +10 -10
|
@@ -4190,7 +4190,7 @@ function withDefaultLuvio(callback) {
|
|
|
4190
4190
|
}
|
|
4191
4191
|
callbacks.push(callback);
|
|
4192
4192
|
}
|
|
4193
|
-
// version: 1.
|
|
4193
|
+
// version: 1.291.0-8df6969f6
|
|
4194
4194
|
|
|
4195
4195
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4196
4196
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15698,7 +15698,7 @@ function gql(literals, ...subs) {
|
|
|
15698
15698
|
}
|
|
15699
15699
|
return superResult;
|
|
15700
15700
|
}
|
|
15701
|
-
// version: 1.
|
|
15701
|
+
// version: 1.291.0-8df6969f6
|
|
15702
15702
|
|
|
15703
15703
|
function unwrap(data) {
|
|
15704
15704
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16623,7 +16623,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16623
16623
|
const { apiFamily, name } = metadata;
|
|
16624
16624
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16625
16625
|
}
|
|
16626
|
-
// version: 1.
|
|
16626
|
+
// version: 1.291.0-8df6969f6
|
|
16627
16627
|
|
|
16628
16628
|
/**
|
|
16629
16629
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -21023,7 +21023,7 @@ function getResponseCacheKeys$11(storeKeyMap, luvio, resourceParams, response) {
|
|
|
21023
21023
|
function createResourceRequest$1a(config) {
|
|
21024
21024
|
const headers = {};
|
|
21025
21025
|
return {
|
|
21026
|
-
baseUri: '/services/data/
|
|
21026
|
+
baseUri: '/services/data/v62.0',
|
|
21027
21027
|
basePath: '/ui-api/records/' + config.urlParams.recordId + '',
|
|
21028
21028
|
method: 'get',
|
|
21029
21029
|
body: null,
|
|
@@ -21452,7 +21452,7 @@ function ingestError$K(luvio, params, error, snapshotRefresh) {
|
|
|
21452
21452
|
function createResourceRequest$19(config) {
|
|
21453
21453
|
const headers = {};
|
|
21454
21454
|
return {
|
|
21455
|
-
baseUri: '/services/data/
|
|
21455
|
+
baseUri: '/services/data/v62.0',
|
|
21456
21456
|
basePath: '/ui-api/records/batch/' + config.urlParams.recordIds + '',
|
|
21457
21457
|
method: 'get',
|
|
21458
21458
|
body: null,
|
|
@@ -22261,7 +22261,7 @@ function createPaginationParams$6(params) {
|
|
|
22261
22261
|
function createResourceRequest$18(config) {
|
|
22262
22262
|
const headers = {};
|
|
22263
22263
|
return {
|
|
22264
|
-
baseUri: '/services/data/
|
|
22264
|
+
baseUri: '/services/data/v62.0',
|
|
22265
22265
|
basePath: '/ui-api/list-ui/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
22266
22266
|
method: 'get',
|
|
22267
22267
|
body: null,
|
|
@@ -22311,7 +22311,7 @@ function createPaginationParams$5(params) {
|
|
|
22311
22311
|
function createResourceRequest$17(config) {
|
|
22312
22312
|
const headers = {};
|
|
22313
22313
|
return {
|
|
22314
|
-
baseUri: '/services/data/
|
|
22314
|
+
baseUri: '/services/data/v62.0',
|
|
22315
22315
|
basePath: '/ui-api/list-ui/' + config.urlParams.listViewId + '',
|
|
22316
22316
|
method: 'get',
|
|
22317
22317
|
body: null,
|
|
@@ -22353,7 +22353,7 @@ function validateAdapterConfig$17(untrustedConfig, configPropertyNames) {
|
|
|
22353
22353
|
function createResourceRequest$16(config) {
|
|
22354
22354
|
const headers = {};
|
|
22355
22355
|
return {
|
|
22356
|
-
baseUri: '/services/data/
|
|
22356
|
+
baseUri: '/services/data/v62.0',
|
|
22357
22357
|
basePath: '/ui-api/list-records/' + config.urlParams.listViewId + '',
|
|
22358
22358
|
method: 'get',
|
|
22359
22359
|
body: null,
|
|
@@ -23172,7 +23172,7 @@ function ingestError$J(luvio, params, error, snapshotRefresh) {
|
|
|
23172
23172
|
function createResourceRequest$15(config) {
|
|
23173
23173
|
const headers = {};
|
|
23174
23174
|
return {
|
|
23175
|
-
baseUri: '/services/data/
|
|
23175
|
+
baseUri: '/services/data/v62.0',
|
|
23176
23176
|
basePath: '/ui-api/list-records/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
23177
23177
|
method: 'post',
|
|
23178
23178
|
body: config.body,
|
|
@@ -23643,7 +23643,7 @@ function ingestError$I(luvio, params, error, snapshotRefresh) {
|
|
|
23643
23643
|
function createResourceRequest$14(config) {
|
|
23644
23644
|
const headers = {};
|
|
23645
23645
|
return {
|
|
23646
|
-
baseUri: '/services/data/
|
|
23646
|
+
baseUri: '/services/data/v62.0',
|
|
23647
23647
|
basePath: '/ui-api/list-ui/' + config.urlParams.objectApiName + '',
|
|
23648
23648
|
method: 'get',
|
|
23649
23649
|
body: null,
|
|
@@ -23838,7 +23838,7 @@ function keyBuilder$1W(luvio, params) {
|
|
|
23838
23838
|
function createResourceRequest$13(config) {
|
|
23839
23839
|
const headers = {};
|
|
23840
23840
|
return {
|
|
23841
|
-
baseUri: '/services/data/
|
|
23841
|
+
baseUri: '/services/data/v62.0',
|
|
23842
23842
|
basePath: '/ui-api/mru-list-ui/' + config.urlParams.objectApiName + '',
|
|
23843
23843
|
method: 'get',
|
|
23844
23844
|
body: null,
|
|
@@ -23880,7 +23880,7 @@ function validateAdapterConfig$15(untrustedConfig, configPropertyNames) {
|
|
|
23880
23880
|
function createResourceRequest$12(config) {
|
|
23881
23881
|
const headers = {};
|
|
23882
23882
|
return {
|
|
23883
|
-
baseUri: '/services/data/
|
|
23883
|
+
baseUri: '/services/data/v62.0',
|
|
23884
23884
|
basePath: '/ui-api/mru-list-records/' + config.urlParams.objectApiName + '',
|
|
23885
23885
|
method: 'get',
|
|
23886
23886
|
body: null,
|
|
@@ -24839,7 +24839,7 @@ function ingestError$H(luvio, params, error, snapshotRefresh) {
|
|
|
24839
24839
|
function createResourceRequest$11(config) {
|
|
24840
24840
|
const headers = {};
|
|
24841
24841
|
return {
|
|
24842
|
-
baseUri: '/services/data/
|
|
24842
|
+
baseUri: '/services/data/v62.0',
|
|
24843
24843
|
basePath: '/ui-api/object-info/' + config.urlParams.objectApiName + '',
|
|
24844
24844
|
method: 'get',
|
|
24845
24845
|
body: null,
|
|
@@ -25286,7 +25286,7 @@ const ingest$D$1 = function RecordUiRepresentationIngest(input, path, luvio, sto
|
|
|
25286
25286
|
function createResourceRequest$10(config) {
|
|
25287
25287
|
const headers = {};
|
|
25288
25288
|
return {
|
|
25289
|
-
baseUri: '/services/data/
|
|
25289
|
+
baseUri: '/services/data/v62.0',
|
|
25290
25290
|
basePath: '/ui-api/record-ui/' + config.urlParams.recordIds + '',
|
|
25291
25291
|
method: 'get',
|
|
25292
25292
|
body: null,
|
|
@@ -27257,7 +27257,7 @@ function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
|
27257
27257
|
function createResourceRequest$$(config) {
|
|
27258
27258
|
const headers = {};
|
|
27259
27259
|
return {
|
|
27260
|
-
baseUri: '/services/data/
|
|
27260
|
+
baseUri: '/services/data/v62.0',
|
|
27261
27261
|
basePath: '/ui-api/actions/global',
|
|
27262
27262
|
method: 'get',
|
|
27263
27263
|
body: null,
|
|
@@ -27451,12 +27451,12 @@ function ingestError$F(luvio, params, error, snapshotRefresh) {
|
|
|
27451
27451
|
function createResourceRequest$_(config) {
|
|
27452
27452
|
const headers = {};
|
|
27453
27453
|
return {
|
|
27454
|
-
baseUri: '/services/data/
|
|
27454
|
+
baseUri: '/services/data/v62.0',
|
|
27455
27455
|
basePath: '/ui-api/actions/layout/' + config.urlParams.actionApiName + '',
|
|
27456
27456
|
method: 'get',
|
|
27457
27457
|
body: null,
|
|
27458
27458
|
urlParams: config.urlParams,
|
|
27459
|
-
queryParams:
|
|
27459
|
+
queryParams: config.queryParams,
|
|
27460
27460
|
headers,
|
|
27461
27461
|
priority: 'normal',
|
|
27462
27462
|
};
|
|
@@ -27465,6 +27465,8 @@ function createResourceRequest$_(config) {
|
|
|
27465
27465
|
const adapterName$X = 'getQuickActionLayout';
|
|
27466
27466
|
const getQuickActionLayout_ConfigPropertyMetadata = [
|
|
27467
27467
|
generateParamConfigMetadata$2('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
27468
|
+
generateParamConfigMetadata$2('objectApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
27469
|
+
generateParamConfigMetadata$2('recordTypeId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
27468
27470
|
];
|
|
27469
27471
|
const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$X, getQuickActionLayout_ConfigPropertyMetadata);
|
|
27470
27472
|
const createResourceParams$V = /*#__PURE__*/ createResourceParams$13(getQuickActionLayout_ConfigPropertyMetadata);
|
|
@@ -27613,7 +27615,7 @@ function ingestError$E(luvio, params, error, snapshotRefresh) {
|
|
|
27613
27615
|
function createResourceRequest$Z(config) {
|
|
27614
27616
|
const headers = {};
|
|
27615
27617
|
return {
|
|
27616
|
-
baseUri: '/services/data/
|
|
27618
|
+
baseUri: '/services/data/v62.0',
|
|
27617
27619
|
basePath: '/ui-api/actions/lookup/' + config.urlParams.objectApiNames + '',
|
|
27618
27620
|
method: 'get',
|
|
27619
27621
|
body: null,
|
|
@@ -27747,7 +27749,7 @@ function ingestError$D(luvio, params, error, snapshotRefresh) {
|
|
|
27747
27749
|
function createResourceRequest$Y(config) {
|
|
27748
27750
|
const headers = {};
|
|
27749
27751
|
return {
|
|
27750
|
-
baseUri: '/services/data/
|
|
27752
|
+
baseUri: '/services/data/v62.0',
|
|
27751
27753
|
basePath: '/ui-api/actions/object/' + config.urlParams.objectApiName + '/record-create',
|
|
27752
27754
|
method: 'get',
|
|
27753
27755
|
body: null,
|
|
@@ -27910,7 +27912,7 @@ function ingestError$C(luvio, params, error, snapshotRefresh) {
|
|
|
27910
27912
|
function createResourceRequest$X(config) {
|
|
27911
27913
|
const headers = {};
|
|
27912
27914
|
return {
|
|
27913
|
-
baseUri: '/services/data/
|
|
27915
|
+
baseUri: '/services/data/v62.0',
|
|
27914
27916
|
basePath: '/ui-api/actions/overrides/' + config.urlParams.objectApiName + '',
|
|
27915
27917
|
method: 'get',
|
|
27916
27918
|
body: null,
|
|
@@ -28087,7 +28089,7 @@ function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
|
28087
28089
|
function createResourceRequest$W(config) {
|
|
28088
28090
|
const headers = {};
|
|
28089
28091
|
return {
|
|
28090
|
-
baseUri: '/services/data/
|
|
28092
|
+
baseUri: '/services/data/v62.0',
|
|
28091
28093
|
basePath: '/ui-api/actions/formula-activation/' + config.urlParams.actionFeature + '',
|
|
28092
28094
|
method: 'get',
|
|
28093
28095
|
body: null,
|
|
@@ -28290,7 +28292,7 @@ function ingestError$A(luvio, params, error, snapshotRefresh) {
|
|
|
28290
28292
|
function createResourceRequest$V(config) {
|
|
28291
28293
|
const headers = {};
|
|
28292
28294
|
return {
|
|
28293
|
-
baseUri: '/services/data/
|
|
28295
|
+
baseUri: '/services/data/v62.0',
|
|
28294
28296
|
basePath: '/ui-api/actions/record-defaults/' + config.urlParams.actionApiName + '',
|
|
28295
28297
|
method: 'get',
|
|
28296
28298
|
body: null,
|
|
@@ -28446,7 +28448,7 @@ function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
|
28446
28448
|
function createResourceRequest$U(config) {
|
|
28447
28449
|
const headers = {};
|
|
28448
28450
|
return {
|
|
28449
|
-
baseUri: '/services/data/
|
|
28451
|
+
baseUri: '/services/data/v62.0',
|
|
28450
28452
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '',
|
|
28451
28453
|
method: 'get',
|
|
28452
28454
|
body: null,
|
|
@@ -28586,7 +28588,7 @@ function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
|
28586
28588
|
function createResourceRequest$T(config) {
|
|
28587
28589
|
const headers = {};
|
|
28588
28590
|
return {
|
|
28589
|
-
baseUri: '/services/data/
|
|
28591
|
+
baseUri: '/services/data/v62.0',
|
|
28590
28592
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/record-edit',
|
|
28591
28593
|
method: 'get',
|
|
28592
28594
|
body: null,
|
|
@@ -28790,7 +28792,7 @@ function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
|
28790
28792
|
function createResourceRequest$S(config) {
|
|
28791
28793
|
const headers = {};
|
|
28792
28794
|
return {
|
|
28793
|
-
baseUri: '/services/data/
|
|
28795
|
+
baseUri: '/services/data/v62.0',
|
|
28794
28796
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/related-list/' + config.urlParams.relatedListId + '',
|
|
28795
28797
|
method: 'post',
|
|
28796
28798
|
body: config.body,
|
|
@@ -29065,7 +29067,7 @@ function ingestError$w(luvio, params, error, snapshotRefresh) {
|
|
|
29065
29067
|
function createResourceRequest$R(config) {
|
|
29066
29068
|
const headers = {};
|
|
29067
29069
|
return {
|
|
29068
|
-
baseUri: '/services/data/
|
|
29070
|
+
baseUri: '/services/data/v62.0',
|
|
29069
29071
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/related-list/batch',
|
|
29070
29072
|
method: 'post',
|
|
29071
29073
|
body: config.body,
|
|
@@ -29299,7 +29301,7 @@ function ingestError$v(luvio, params, error, snapshotRefresh) {
|
|
|
29299
29301
|
function createResourceRequest$Q(config) {
|
|
29300
29302
|
const headers = {};
|
|
29301
29303
|
return {
|
|
29302
|
-
baseUri: '/services/data/
|
|
29304
|
+
baseUri: '/services/data/v62.0',
|
|
29303
29305
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/related-list-record/' + config.urlParams.relatedListRecordIds + '',
|
|
29304
29306
|
method: 'get',
|
|
29305
29307
|
body: null,
|
|
@@ -30011,7 +30013,7 @@ function ingestError$u(luvio, params, error, snapshotRefresh) {
|
|
|
30011
30013
|
function createResourceRequest$P(config) {
|
|
30012
30014
|
const headers = {};
|
|
30013
30015
|
return {
|
|
30014
|
-
baseUri: '/services/data/
|
|
30016
|
+
baseUri: '/services/data/v62.0',
|
|
30015
30017
|
basePath: '/ui-api/apps',
|
|
30016
30018
|
method: 'get',
|
|
30017
30019
|
body: null,
|
|
@@ -30145,7 +30147,7 @@ function ingestError$t(luvio, params, error, snapshotRefresh) {
|
|
|
30145
30147
|
function createResourceRequest$O(config) {
|
|
30146
30148
|
const headers = {};
|
|
30147
30149
|
return {
|
|
30148
|
-
baseUri: '/services/data/
|
|
30150
|
+
baseUri: '/services/data/v62.0',
|
|
30149
30151
|
basePath: '/ui-api/apps/' + config.urlParams.appId + '',
|
|
30150
30152
|
method: 'get',
|
|
30151
30153
|
body: null,
|
|
@@ -30481,7 +30483,7 @@ function ingestError$s(luvio, params, error, snapshotRefresh) {
|
|
|
30481
30483
|
function createResourceRequest$N(config) {
|
|
30482
30484
|
const headers = {};
|
|
30483
30485
|
return {
|
|
30484
|
-
baseUri: '/services/data/
|
|
30486
|
+
baseUri: '/services/data/v62.0',
|
|
30485
30487
|
basePath: '/ui-api/duplicates/' + config.urlParams.objectApiName + '',
|
|
30486
30488
|
method: 'get',
|
|
30487
30489
|
body: null,
|
|
@@ -30617,7 +30619,7 @@ function ingestError$r(luvio, params, error, snapshotRefresh) {
|
|
|
30617
30619
|
function createResourceRequest$M(config) {
|
|
30618
30620
|
const headers = {};
|
|
30619
30621
|
return {
|
|
30620
|
-
baseUri: '/services/data/
|
|
30622
|
+
baseUri: '/services/data/v62.0',
|
|
30621
30623
|
basePath: '/ui-api/layout/' + config.urlParams.objectApiName + '',
|
|
30622
30624
|
method: 'get',
|
|
30623
30625
|
body: null,
|
|
@@ -30754,7 +30756,7 @@ function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
|
30754
30756
|
function createResourceRequest$L(config) {
|
|
30755
30757
|
const headers = {};
|
|
30756
30758
|
return {
|
|
30757
|
-
baseUri: '/services/data/
|
|
30759
|
+
baseUri: '/services/data/v62.0',
|
|
30758
30760
|
basePath: '/ui-api/layout/' + config.urlParams.objectApiName + '/user-state',
|
|
30759
30761
|
method: 'get',
|
|
30760
30762
|
body: null,
|
|
@@ -30980,7 +30982,7 @@ function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
|
30980
30982
|
function createResourceRequest$K(config) {
|
|
30981
30983
|
const headers = {};
|
|
30982
30984
|
return {
|
|
30983
|
-
baseUri: '/services/data/
|
|
30985
|
+
baseUri: '/services/data/v62.0',
|
|
30984
30986
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
30985
30987
|
method: 'get',
|
|
30986
30988
|
body: null,
|
|
@@ -31239,7 +31241,7 @@ function ingestError$p(luvio, params, error, snapshotRefresh) {
|
|
|
31239
31241
|
function createResourceRequest$J(config) {
|
|
31240
31242
|
const headers = {};
|
|
31241
31243
|
return {
|
|
31242
|
-
baseUri: '/services/data/
|
|
31244
|
+
baseUri: '/services/data/v62.0',
|
|
31243
31245
|
basePath: '/ui-api/list-info/batch',
|
|
31244
31246
|
method: 'get',
|
|
31245
31247
|
body: null,
|
|
@@ -31376,7 +31378,7 @@ function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
|
31376
31378
|
function createResourceRequest$I(config) {
|
|
31377
31379
|
const headers = {};
|
|
31378
31380
|
return {
|
|
31379
|
-
baseUri: '/services/data/
|
|
31381
|
+
baseUri: '/services/data/v62.0',
|
|
31380
31382
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '',
|
|
31381
31383
|
method: 'get',
|
|
31382
31384
|
body: null,
|
|
@@ -31674,7 +31676,7 @@ function ingestSuccess$w(luvio, resourceParams, response) {
|
|
|
31674
31676
|
function createResourceRequest$H(config) {
|
|
31675
31677
|
const headers = {};
|
|
31676
31678
|
return {
|
|
31677
|
-
baseUri: '/services/data/
|
|
31679
|
+
baseUri: '/services/data/v62.0',
|
|
31678
31680
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '',
|
|
31679
31681
|
method: 'post',
|
|
31680
31682
|
body: config.body,
|
|
@@ -31761,91 +31763,7 @@ const createListInfoAdapterFactory = (luvio) => {
|
|
|
31761
31763
|
};
|
|
31762
31764
|
};
|
|
31763
31765
|
|
|
31764
|
-
|
|
31765
|
-
const getListInfoByName_ConfigPropertyMetadata = [
|
|
31766
|
-
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31767
|
-
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31768
|
-
];
|
|
31769
|
-
const getListInfoByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$E, getListInfoByName_ConfigPropertyMetadata);
|
|
31770
|
-
const createResourceParams$D = /*#__PURE__*/ createResourceParams$13(getListInfoByName_ConfigPropertyMetadata);
|
|
31771
|
-
function keyBuilder$17$1(luvio, config) {
|
|
31772
|
-
const resourceParams = createResourceParams$D(config);
|
|
31773
|
-
return keyBuilder$1c$1(luvio, resourceParams);
|
|
31774
|
-
}
|
|
31775
|
-
function typeCheckConfig$I(untrustedConfig) {
|
|
31776
|
-
const config = {};
|
|
31777
|
-
typeCheckConfig$19(untrustedConfig, config, getListInfoByName_ConfigPropertyMetadata);
|
|
31778
|
-
return config;
|
|
31779
|
-
}
|
|
31780
|
-
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
31781
|
-
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
31782
|
-
return null;
|
|
31783
|
-
}
|
|
31784
|
-
const config = typeCheckConfig$I(untrustedConfig);
|
|
31785
|
-
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
31786
|
-
return null;
|
|
31787
|
-
}
|
|
31788
|
-
return config;
|
|
31789
|
-
}
|
|
31790
|
-
function adapterFragment$o(luvio, config) {
|
|
31791
|
-
createResourceParams$D(config);
|
|
31792
|
-
return select$16$1();
|
|
31793
|
-
}
|
|
31794
|
-
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
31795
|
-
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
31796
|
-
config,
|
|
31797
|
-
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$1)
|
|
31798
|
-
});
|
|
31799
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
31800
|
-
}
|
|
31801
|
-
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
31802
|
-
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
31803
|
-
config,
|
|
31804
|
-
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$1)
|
|
31805
|
-
});
|
|
31806
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
31807
|
-
}
|
|
31808
|
-
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
31809
|
-
const resourceParams = createResourceParams$D(config);
|
|
31810
|
-
const request = createResourceRequest$K(resourceParams);
|
|
31811
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
31812
|
-
.then((response) => {
|
|
31813
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
31814
|
-
const cache = new StoreKeyMap();
|
|
31815
|
-
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
31816
|
-
return cache;
|
|
31817
|
-
});
|
|
31818
|
-
}, (response) => {
|
|
31819
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$q(luvio, config, resourceParams, response));
|
|
31820
|
-
});
|
|
31821
|
-
}
|
|
31822
|
-
function buildNetworkSnapshotCachePolicy$u(context, coercedAdapterRequestContext) {
|
|
31823
|
-
return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
31824
|
-
}
|
|
31825
|
-
function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
31826
|
-
const { luvio, config } = context;
|
|
31827
|
-
const selector = {
|
|
31828
|
-
recordId: keyBuilder$17$1(luvio, config),
|
|
31829
|
-
node: adapterFragment$o(luvio, config),
|
|
31830
|
-
variables: {},
|
|
31831
|
-
};
|
|
31832
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
31833
|
-
config,
|
|
31834
|
-
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$1)
|
|
31835
|
-
});
|
|
31836
|
-
return cacheSnapshot;
|
|
31837
|
-
}
|
|
31838
|
-
const getListInfoByNameAdapterFactory = (luvio) => function UiApi__getListInfoByName(untrustedConfig, requestContext) {
|
|
31839
|
-
const config = validateAdapterConfig$I(untrustedConfig, getListInfoByName_ConfigPropertyNames);
|
|
31840
|
-
// Invalid or incomplete config
|
|
31841
|
-
if (config === null) {
|
|
31842
|
-
return null;
|
|
31843
|
-
}
|
|
31844
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
31845
|
-
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
|
|
31846
|
-
};
|
|
31847
|
-
|
|
31848
|
-
function keyBuilder$16$1(luvio, params) {
|
|
31766
|
+
function keyBuilder$17$1(luvio, params) {
|
|
31849
31767
|
return keyBuilder$27(luvio, {
|
|
31850
31768
|
objectApiName: params.urlParams.objectApiName,
|
|
31851
31769
|
listViewApiName: params.urlParams.listViewApiName,
|
|
@@ -31853,7 +31771,7 @@ function keyBuilder$16$1(luvio, params) {
|
|
|
31853
31771
|
});
|
|
31854
31772
|
}
|
|
31855
31773
|
function getResponseCacheKeys$D(cacheKeyMap, luvio, resourceParams) {
|
|
31856
|
-
const key = keyBuilder$
|
|
31774
|
+
const key = keyBuilder$17$1(luvio, resourceParams);
|
|
31857
31775
|
cacheKeyMap.set(key, {
|
|
31858
31776
|
namespace: keyPrefix$2,
|
|
31859
31777
|
representationName: RepresentationType$X,
|
|
@@ -31861,13 +31779,13 @@ function getResponseCacheKeys$D(cacheKeyMap, luvio, resourceParams) {
|
|
|
31861
31779
|
});
|
|
31862
31780
|
}
|
|
31863
31781
|
function evictSuccess$1(luvio, resourceParams) {
|
|
31864
|
-
const key = keyBuilder$
|
|
31782
|
+
const key = keyBuilder$17$1(luvio, resourceParams);
|
|
31865
31783
|
luvio.storeEvict(key);
|
|
31866
31784
|
}
|
|
31867
31785
|
function createResourceRequest$G(config) {
|
|
31868
31786
|
const headers = {};
|
|
31869
31787
|
return {
|
|
31870
|
-
baseUri: '/services/data/
|
|
31788
|
+
baseUri: '/services/data/v62.0',
|
|
31871
31789
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
31872
31790
|
method: 'delete',
|
|
31873
31791
|
body: null,
|
|
@@ -31878,30 +31796,30 @@ function createResourceRequest$G(config) {
|
|
|
31878
31796
|
};
|
|
31879
31797
|
}
|
|
31880
31798
|
|
|
31881
|
-
const adapterName$
|
|
31799
|
+
const adapterName$E = 'deleteListInfo';
|
|
31882
31800
|
const deleteListInfo_ConfigPropertyMetadata = [
|
|
31883
31801
|
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31884
31802
|
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31885
31803
|
];
|
|
31886
|
-
const deleteListInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$
|
|
31887
|
-
const createResourceParams$
|
|
31888
|
-
function typeCheckConfig$
|
|
31804
|
+
const deleteListInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$E, deleteListInfo_ConfigPropertyMetadata);
|
|
31805
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$13(deleteListInfo_ConfigPropertyMetadata);
|
|
31806
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
31889
31807
|
const config = {};
|
|
31890
31808
|
typeCheckConfig$19(untrustedConfig, config, deleteListInfo_ConfigPropertyMetadata);
|
|
31891
31809
|
return config;
|
|
31892
31810
|
}
|
|
31893
|
-
function validateAdapterConfig$
|
|
31811
|
+
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
31894
31812
|
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
31895
31813
|
return null;
|
|
31896
31814
|
}
|
|
31897
|
-
const config = typeCheckConfig$
|
|
31815
|
+
const config = typeCheckConfig$I(untrustedConfig);
|
|
31898
31816
|
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
31899
31817
|
return null;
|
|
31900
31818
|
}
|
|
31901
31819
|
return config;
|
|
31902
31820
|
}
|
|
31903
|
-
function buildNetworkSnapshot$
|
|
31904
|
-
const resourceParams = createResourceParams$
|
|
31821
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
31822
|
+
const resourceParams = createResourceParams$D(config);
|
|
31905
31823
|
const request = createResourceRequest$G(resourceParams);
|
|
31906
31824
|
return luvio.dispatchResourceRequest(request, options)
|
|
31907
31825
|
.then(() => {
|
|
@@ -31920,13 +31838,97 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
31920
31838
|
}
|
|
31921
31839
|
const deleteListInfoAdapterFactory = (luvio) => {
|
|
31922
31840
|
return function UiApideleteListInfo(untrustedConfig) {
|
|
31923
|
-
const config = validateAdapterConfig$
|
|
31841
|
+
const config = validateAdapterConfig$I(untrustedConfig, deleteListInfo_ConfigPropertyNames);
|
|
31924
31842
|
// Invalid or incomplete config
|
|
31925
31843
|
if (config === null) {
|
|
31926
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
31844
|
+
throw new Error(`Invalid config for "${adapterName$E}"`);
|
|
31927
31845
|
}
|
|
31928
|
-
return buildNetworkSnapshot$
|
|
31846
|
+
return buildNetworkSnapshot$H(luvio, config);
|
|
31847
|
+
};
|
|
31848
|
+
};
|
|
31849
|
+
|
|
31850
|
+
const adapterName$D = 'getListInfoByName';
|
|
31851
|
+
const getListInfoByName_ConfigPropertyMetadata = [
|
|
31852
|
+
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31853
|
+
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31854
|
+
];
|
|
31855
|
+
const getListInfoByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$D, getListInfoByName_ConfigPropertyMetadata);
|
|
31856
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$13(getListInfoByName_ConfigPropertyMetadata);
|
|
31857
|
+
function keyBuilder$16$1(luvio, config) {
|
|
31858
|
+
const resourceParams = createResourceParams$C(config);
|
|
31859
|
+
return keyBuilder$1c$1(luvio, resourceParams);
|
|
31860
|
+
}
|
|
31861
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
31862
|
+
const config = {};
|
|
31863
|
+
typeCheckConfig$19(untrustedConfig, config, getListInfoByName_ConfigPropertyMetadata);
|
|
31864
|
+
return config;
|
|
31865
|
+
}
|
|
31866
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
31867
|
+
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
31868
|
+
return null;
|
|
31869
|
+
}
|
|
31870
|
+
const config = typeCheckConfig$H(untrustedConfig);
|
|
31871
|
+
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
31872
|
+
return null;
|
|
31873
|
+
}
|
|
31874
|
+
return config;
|
|
31875
|
+
}
|
|
31876
|
+
function adapterFragment$o(luvio, config) {
|
|
31877
|
+
createResourceParams$C(config);
|
|
31878
|
+
return select$16$1();
|
|
31879
|
+
}
|
|
31880
|
+
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
31881
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
31882
|
+
config,
|
|
31883
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions$1)
|
|
31884
|
+
});
|
|
31885
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
31886
|
+
}
|
|
31887
|
+
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
31888
|
+
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
31889
|
+
config,
|
|
31890
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions$1)
|
|
31891
|
+
});
|
|
31892
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
31893
|
+
}
|
|
31894
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
31895
|
+
const resourceParams = createResourceParams$C(config);
|
|
31896
|
+
const request = createResourceRequest$K(resourceParams);
|
|
31897
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
31898
|
+
.then((response) => {
|
|
31899
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
31900
|
+
const cache = new StoreKeyMap();
|
|
31901
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
31902
|
+
return cache;
|
|
31903
|
+
});
|
|
31904
|
+
}, (response) => {
|
|
31905
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$q(luvio, config, resourceParams, response));
|
|
31906
|
+
});
|
|
31907
|
+
}
|
|
31908
|
+
function buildNetworkSnapshotCachePolicy$u(context, coercedAdapterRequestContext) {
|
|
31909
|
+
return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
31910
|
+
}
|
|
31911
|
+
function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
31912
|
+
const { luvio, config } = context;
|
|
31913
|
+
const selector = {
|
|
31914
|
+
recordId: keyBuilder$16$1(luvio, config),
|
|
31915
|
+
node: adapterFragment$o(luvio, config),
|
|
31916
|
+
variables: {},
|
|
31929
31917
|
};
|
|
31918
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
31919
|
+
config,
|
|
31920
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions$1)
|
|
31921
|
+
});
|
|
31922
|
+
return cacheSnapshot;
|
|
31923
|
+
}
|
|
31924
|
+
const getListInfoByNameAdapterFactory = (luvio) => function UiApi__getListInfoByName(untrustedConfig, requestContext) {
|
|
31925
|
+
const config = validateAdapterConfig$H(untrustedConfig, getListInfoByName_ConfigPropertyNames);
|
|
31926
|
+
// Invalid or incomplete config
|
|
31927
|
+
if (config === null) {
|
|
31928
|
+
return null;
|
|
31929
|
+
}
|
|
31930
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
31931
|
+
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
|
|
31930
31932
|
};
|
|
31931
31933
|
|
|
31932
31934
|
function select$12$1(luvio, params) {
|
|
@@ -31950,7 +31952,7 @@ function ingestSuccess$v(luvio, resourceParams, response) {
|
|
|
31950
31952
|
function createResourceRequest$F(config) {
|
|
31951
31953
|
const headers = {};
|
|
31952
31954
|
return {
|
|
31953
|
-
baseUri: '/services/data/
|
|
31955
|
+
baseUri: '/services/data/v62.0',
|
|
31954
31956
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
31955
31957
|
method: 'patch',
|
|
31956
31958
|
body: config.body,
|
|
@@ -32419,7 +32421,7 @@ function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
|
32419
32421
|
function createResourceRequest$E(config) {
|
|
32420
32422
|
const headers = {};
|
|
32421
32423
|
return {
|
|
32422
|
-
baseUri: '/services/data/
|
|
32424
|
+
baseUri: '/services/data/v62.0',
|
|
32423
32425
|
basePath: '/ui-api/list-object-info/' + config.urlParams.objectApiName + '',
|
|
32424
32426
|
method: 'get',
|
|
32425
32427
|
body: null,
|
|
@@ -32655,7 +32657,7 @@ function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
|
32655
32657
|
function createResourceRequest$D(config) {
|
|
32656
32658
|
const headers = {};
|
|
32657
32659
|
return {
|
|
32658
|
-
baseUri: '/services/data/
|
|
32660
|
+
baseUri: '/services/data/v62.0',
|
|
32659
32661
|
basePath: '/ui-api/list-preferences/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
32660
32662
|
method: 'get',
|
|
32661
32663
|
body: null,
|
|
@@ -32791,7 +32793,7 @@ function ingestSuccess$s(luvio, resourceParams, response) {
|
|
|
32791
32793
|
function createResourceRequest$C(config) {
|
|
32792
32794
|
const headers = {};
|
|
32793
32795
|
return {
|
|
32794
|
-
baseUri: '/services/data/
|
|
32796
|
+
baseUri: '/services/data/v62.0',
|
|
32795
32797
|
basePath: '/ui-api/list-preferences/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
32796
32798
|
method: 'patch',
|
|
32797
32799
|
body: config.body,
|
|
@@ -33031,7 +33033,7 @@ function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
|
33031
33033
|
function createResourceRequest$B(config) {
|
|
33032
33034
|
const headers = {};
|
|
33033
33035
|
return {
|
|
33034
|
-
baseUri: '/services/data/
|
|
33036
|
+
baseUri: '/services/data/v62.0',
|
|
33035
33037
|
basePath: '/ui-api/nav-items',
|
|
33036
33038
|
method: 'get',
|
|
33037
33039
|
body: null,
|
|
@@ -33159,7 +33161,7 @@ function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
|
33159
33161
|
function createResourceRequest$A(config) {
|
|
33160
33162
|
const headers = {};
|
|
33161
33163
|
return {
|
|
33162
|
-
baseUri: '/services/data/
|
|
33164
|
+
baseUri: '/services/data/v62.0',
|
|
33163
33165
|
basePath: '/ui-api/object-info',
|
|
33164
33166
|
method: 'get',
|
|
33165
33167
|
body: null,
|
|
@@ -33491,7 +33493,7 @@ function ingestError$j(luvio, params, error, snapshotRefresh) {
|
|
|
33491
33493
|
function createResourceRequest$z(config) {
|
|
33492
33494
|
const headers = {};
|
|
33493
33495
|
return {
|
|
33494
|
-
baseUri: '/services/data/
|
|
33496
|
+
baseUri: '/services/data/v62.0',
|
|
33495
33497
|
basePath: '/ui-api/object-info/batch/' + config.urlParams.objectApiNames + '',
|
|
33496
33498
|
method: 'get',
|
|
33497
33499
|
body: null,
|
|
@@ -33745,8 +33747,8 @@ const select$L$1 = function PicklistValueRepresentationSelect() {
|
|
|
33745
33747
|
const keyBuilderFromType$i =
|
|
33746
33748
|
/**
|
|
33747
33749
|
* custom key builder from PicklistValuesRepresentation.
|
|
33748
|
-
* PicklistValuesRepresentation.url is like /services/data/
|
|
33749
|
-
* the '/services/data/
|
|
33750
|
+
* PicklistValuesRepresentation.url is like /services/data/v62.0/ui-api/object-info/Account/picklist-values/012000000000000AAA/AccountSource
|
|
33751
|
+
* the '/services/data/v62.0' in the key make trouble for new js release. so chop it off make the key unique cross releases.
|
|
33750
33752
|
*/
|
|
33751
33753
|
function PicklistValuesRepresentationKeyBuilderFromType(luvio, object) {
|
|
33752
33754
|
const id = object.url.substring(object.url.indexOf('/ui-api'));
|
|
@@ -33936,7 +33938,7 @@ function ingestError$i(luvio, params, error, snapshotRefresh) {
|
|
|
33936
33938
|
function createResourceRequest$y(config) {
|
|
33937
33939
|
const headers = {};
|
|
33938
33940
|
return {
|
|
33939
|
-
baseUri: '/services/data/
|
|
33941
|
+
baseUri: '/services/data/v62.0',
|
|
33940
33942
|
basePath: '/ui-api/object-info/' + config.urlParams.objectApiName + '/picklist-values/' + config.urlParams.recordTypeId + '',
|
|
33941
33943
|
method: 'get',
|
|
33942
33944
|
body: null,
|
|
@@ -34038,7 +34040,7 @@ function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
|
34038
34040
|
function createResourceRequest$x(config) {
|
|
34039
34041
|
const headers = {};
|
|
34040
34042
|
return {
|
|
34041
|
-
baseUri: '/services/data/
|
|
34043
|
+
baseUri: '/services/data/v62.0',
|
|
34042
34044
|
basePath: '/ui-api/object-info/' + config.urlParams.objectApiName + '/picklist-values/' + config.urlParams.recordTypeId + '/' + config.urlParams.fieldApiName + '',
|
|
34043
34045
|
method: 'get',
|
|
34044
34046
|
body: null,
|
|
@@ -34243,7 +34245,7 @@ function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
|
34243
34245
|
function createResourceRequest$w(config) {
|
|
34244
34246
|
const headers = {};
|
|
34245
34247
|
return {
|
|
34246
|
-
baseUri: '/services/data/
|
|
34248
|
+
baseUri: '/services/data/v62.0',
|
|
34247
34249
|
basePath: '/ui-api/path/layout/' + config.urlParams.objectApiName + '',
|
|
34248
34250
|
method: 'get',
|
|
34249
34251
|
body: null,
|
|
@@ -34414,7 +34416,7 @@ function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
|
34414
34416
|
function createResourceRequest$v(config) {
|
|
34415
34417
|
const headers = {};
|
|
34416
34418
|
return {
|
|
34417
|
-
baseUri: '/services/data/
|
|
34419
|
+
baseUri: '/services/data/v62.0',
|
|
34418
34420
|
basePath: '/ui-api/predupe',
|
|
34419
34421
|
method: 'post',
|
|
34420
34422
|
body: config.body,
|
|
@@ -35096,7 +35098,7 @@ function getTypeCacheKeys$j$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
35096
35098
|
throw new Error(`Invalid discriminatorValue "${discriminatorValue}". Expected one of "200","400","404"`);
|
|
35097
35099
|
}
|
|
35098
35100
|
|
|
35099
|
-
const TTL$d =
|
|
35101
|
+
const TTL$d = 1800000;
|
|
35100
35102
|
const VERSION$i$1 = "c44c049fa6ad7cf7e932c0aab9107d86";
|
|
35101
35103
|
const RepresentationType$i = 'RecordAvatarBulkMapRepresentation';
|
|
35102
35104
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
@@ -35194,7 +35196,7 @@ function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
|
35194
35196
|
function createResourceRequest$u(config) {
|
|
35195
35197
|
const headers = {};
|
|
35196
35198
|
return {
|
|
35197
|
-
baseUri: '/services/data/
|
|
35199
|
+
baseUri: '/services/data/v62.0',
|
|
35198
35200
|
basePath: '/ui-api/record-avatars/batch/' + config.urlParams.recordIds + '',
|
|
35199
35201
|
method: 'get',
|
|
35200
35202
|
body: null,
|
|
@@ -35804,7 +35806,7 @@ function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
|
35804
35806
|
function createResourceRequest$t(config) {
|
|
35805
35807
|
const headers = {};
|
|
35806
35808
|
return {
|
|
35807
|
-
baseUri: '/services/data/
|
|
35809
|
+
baseUri: '/services/data/v62.0',
|
|
35808
35810
|
basePath: '/ui-api/related-list-count/' + config.urlParams.parentRecordId + '/' + config.urlParams.relatedListId + '',
|
|
35809
35811
|
method: 'get',
|
|
35810
35812
|
body: null,
|
|
@@ -36059,7 +36061,7 @@ function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
|
36059
36061
|
function createResourceRequest$s(config) {
|
|
36060
36062
|
const headers = {};
|
|
36061
36063
|
return {
|
|
36062
|
-
baseUri: '/services/data/
|
|
36064
|
+
baseUri: '/services/data/v62.0',
|
|
36063
36065
|
basePath: '/ui-api/related-list-count/batch/' + config.urlParams.parentRecordId + '/' + config.urlParams.relatedListNames + '',
|
|
36064
36066
|
method: 'get',
|
|
36065
36067
|
body: null,
|
|
@@ -36422,7 +36424,7 @@ function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
|
36422
36424
|
function createResourceRequest$r(config) {
|
|
36423
36425
|
const headers = {};
|
|
36424
36426
|
return {
|
|
36425
|
-
baseUri: '/services/data/
|
|
36427
|
+
baseUri: '/services/data/v62.0',
|
|
36426
36428
|
basePath: '/ui-api/related-list-info/' + config.urlParams.parentObjectApiName + '/' + config.urlParams.relatedListId + '',
|
|
36427
36429
|
method: 'get',
|
|
36428
36430
|
body: null,
|
|
@@ -36682,7 +36684,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
|
36682
36684
|
function createResourceRequest$q(config) {
|
|
36683
36685
|
const headers = {};
|
|
36684
36686
|
return {
|
|
36685
|
-
baseUri: '/services/data/
|
|
36687
|
+
baseUri: '/services/data/v62.0',
|
|
36686
36688
|
basePath: '/ui-api/related-list-info/batch/' + config.urlParams.parentObjectApiName + '/' + config.urlParams.relatedListNames + '',
|
|
36687
36689
|
method: 'get',
|
|
36688
36690
|
body: null,
|
|
@@ -36873,7 +36875,7 @@ function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
|
36873
36875
|
function createResourceRequest$p(config) {
|
|
36874
36876
|
const headers = {};
|
|
36875
36877
|
return {
|
|
36876
|
-
baseUri: '/services/data/
|
|
36878
|
+
baseUri: '/services/data/v62.0',
|
|
36877
36879
|
basePath: '/ui-api/related-list-info/' + config.urlParams.parentObjectApiName + '',
|
|
36878
36880
|
method: 'get',
|
|
36879
36881
|
body: null,
|
|
@@ -37116,7 +37118,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
37116
37118
|
function createResourceRequest$o(config) {
|
|
37117
37119
|
const headers = {};
|
|
37118
37120
|
return {
|
|
37119
|
-
baseUri: '/services/data/
|
|
37121
|
+
baseUri: '/services/data/v62.0',
|
|
37120
37122
|
basePath: '/ui-api/related-list-info/' + config.urlParams.parentObjectApiName + '/' + config.urlParams.relatedListId + '',
|
|
37121
37123
|
method: 'patch',
|
|
37122
37124
|
body: config.body,
|
|
@@ -37286,7 +37288,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
37286
37288
|
function createResourceRequest$n(config) {
|
|
37287
37289
|
const headers = {};
|
|
37288
37290
|
return {
|
|
37289
|
-
baseUri: '/services/data/
|
|
37291
|
+
baseUri: '/services/data/v62.0',
|
|
37290
37292
|
basePath: '/ui-api/related-list-preferences/' + config.urlParams.preferencesId + '',
|
|
37291
37293
|
method: 'get',
|
|
37292
37294
|
body: null,
|
|
@@ -37538,7 +37540,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
37538
37540
|
function createResourceRequest$m(config) {
|
|
37539
37541
|
const headers = {};
|
|
37540
37542
|
return {
|
|
37541
|
-
baseUri: '/services/data/
|
|
37543
|
+
baseUri: '/services/data/v62.0',
|
|
37542
37544
|
basePath: '/ui-api/related-list-preferences/batch/' + config.urlParams.preferencesIds + '',
|
|
37543
37545
|
method: 'get',
|
|
37544
37546
|
body: null,
|
|
@@ -37736,7 +37738,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
37736
37738
|
function createResourceRequest$l(config) {
|
|
37737
37739
|
const headers = {};
|
|
37738
37740
|
return {
|
|
37739
|
-
baseUri: '/services/data/
|
|
37741
|
+
baseUri: '/services/data/v62.0',
|
|
37740
37742
|
basePath: '/ui-api/related-list-preferences/' + config.urlParams.preferencesId + '',
|
|
37741
37743
|
method: 'patch',
|
|
37742
37744
|
body: config.body,
|
|
@@ -38011,7 +38013,7 @@ function generateClientToken(offset) {
|
|
|
38011
38013
|
}
|
|
38012
38014
|
// Code lifted from https://github.com/MaxArt2501/base64-js/blob/master/base64.js
|
|
38013
38015
|
// base64 character set, plus padding character (=)
|
|
38014
|
-
const b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
38016
|
+
const b64$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
38015
38017
|
function base64Encode(input) {
|
|
38016
38018
|
let bitmap, a, b, c;
|
|
38017
38019
|
let result = "", i = 0;
|
|
@@ -38023,8 +38025,8 @@ function base64Encode(input) {
|
|
|
38023
38025
|
throw new TypeError("Failed base64ToAscii encoding: The string to be encoded contains characters outside of the Latin1 range. " + input);
|
|
38024
38026
|
}
|
|
38025
38027
|
bitmap = (a << 16) | (b << 8) | c;
|
|
38026
|
-
result += b64.charAt(bitmap >> 18 & 63) + b64.charAt(bitmap >> 12 & 63)
|
|
38027
|
-
+ b64.charAt(bitmap >> 6 & 63) + b64.charAt(bitmap & 63);
|
|
38028
|
+
result += b64$1.charAt(bitmap >> 18 & 63) + b64$1.charAt(bitmap >> 12 & 63)
|
|
38029
|
+
+ b64$1.charAt(bitmap >> 6 & 63) + b64$1.charAt(bitmap & 63);
|
|
38028
38030
|
}
|
|
38029
38031
|
// If there's need of padding, replace the last 'A's with equal signs
|
|
38030
38032
|
return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result;
|
|
@@ -38495,7 +38497,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
38495
38497
|
function createResourceRequest$k(config) {
|
|
38496
38498
|
const headers = {};
|
|
38497
38499
|
return {
|
|
38498
|
-
baseUri: '/services/data/
|
|
38500
|
+
baseUri: '/services/data/v62.0',
|
|
38499
38501
|
basePath: '/ui-api/related-list-records/' + config.urlParams.parentRecordId + '/' + config.urlParams.relatedListId + '',
|
|
38500
38502
|
method: 'post',
|
|
38501
38503
|
body: config.body,
|
|
@@ -38770,7 +38772,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
38770
38772
|
function createResourceRequest$j(config) {
|
|
38771
38773
|
const headers = {};
|
|
38772
38774
|
return {
|
|
38773
|
-
baseUri: '/services/data/
|
|
38775
|
+
baseUri: '/services/data/v62.0',
|
|
38774
38776
|
basePath: '/ui-api/related-list-records/batch/' + config.urlParams.parentRecordId + '',
|
|
38775
38777
|
method: 'post',
|
|
38776
38778
|
body: config.body,
|
|
@@ -39136,7 +39138,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
39136
39138
|
function createResourceRequest$i(config) {
|
|
39137
39139
|
const headers = {};
|
|
39138
39140
|
return {
|
|
39139
|
-
baseUri: '/services/data/
|
|
39141
|
+
baseUri: '/services/data/v62.0',
|
|
39140
39142
|
basePath: '/ui-api/search-info/' + config.urlParams.objectApiName + '/filters',
|
|
39141
39143
|
method: 'get',
|
|
39142
39144
|
body: null,
|
|
@@ -39318,7 +39320,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
39318
39320
|
function createResourceRequest$h(config) {
|
|
39319
39321
|
const headers = {};
|
|
39320
39322
|
return {
|
|
39321
|
-
baseUri: '/services/data/
|
|
39323
|
+
baseUri: '/services/data/v62.0',
|
|
39322
39324
|
basePath: '/ui-api/search-info/' + config.urlParams.objectApiName + '/filters/' + config.urlParams.filterApiName + '/options',
|
|
39323
39325
|
method: 'get',
|
|
39324
39326
|
body: null,
|
|
@@ -39499,7 +39501,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
39499
39501
|
function createResourceRequest$g(config) {
|
|
39500
39502
|
const headers = {};
|
|
39501
39503
|
return {
|
|
39502
|
-
baseUri: '/services/data/
|
|
39504
|
+
baseUri: '/services/data/v62.0',
|
|
39503
39505
|
basePath: '/ui-api/search-info/' + config.urlParams.objectApiName + '/lookup/' + config.urlParams.fieldApiName + '',
|
|
39504
39506
|
method: 'get',
|
|
39505
39507
|
body: null,
|
|
@@ -39818,7 +39820,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
39818
39820
|
function createResourceRequest$f(config) {
|
|
39819
39821
|
const headers = {};
|
|
39820
39822
|
return {
|
|
39821
|
-
baseUri: '/services/data/
|
|
39823
|
+
baseUri: '/services/data/v62.0',
|
|
39822
39824
|
basePath: '/ui-api/search/results',
|
|
39823
39825
|
method: 'post',
|
|
39824
39826
|
body: config.body,
|
|
@@ -40021,7 +40023,7 @@ function ingestError$1$1(luvio, params, error, snapshotRefresh) {
|
|
|
40021
40023
|
function createResourceRequest$e(config) {
|
|
40022
40024
|
const headers = {};
|
|
40023
40025
|
return {
|
|
40024
|
-
baseUri: '/services/data/
|
|
40026
|
+
baseUri: '/services/data/v62.0',
|
|
40025
40027
|
basePath: '/ui-api/search/results/keyword',
|
|
40026
40028
|
method: 'post',
|
|
40027
40029
|
body: config.body,
|
|
@@ -40261,7 +40263,7 @@ function ingestSuccess$4(luvio, response) {
|
|
|
40261
40263
|
function createResourceRequest$d(config) {
|
|
40262
40264
|
const headers = {};
|
|
40263
40265
|
return {
|
|
40264
|
-
baseUri: '/services/data/
|
|
40266
|
+
baseUri: '/services/data/v62.0',
|
|
40265
40267
|
basePath: '/ui-api/records/batch',
|
|
40266
40268
|
method: 'post',
|
|
40267
40269
|
body: config.body,
|
|
@@ -40375,7 +40377,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
40375
40377
|
function createResourceRequest$c(config) {
|
|
40376
40378
|
const headers = {};
|
|
40377
40379
|
return {
|
|
40378
|
-
baseUri: '/services/data/
|
|
40380
|
+
baseUri: '/services/data/v62.0',
|
|
40379
40381
|
basePath: '/ui-api/actions/perform-quick-action/' + config.urlParams.actionApiName + '',
|
|
40380
40382
|
method: 'patch',
|
|
40381
40383
|
body: config.body,
|
|
@@ -40495,7 +40497,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
40495
40497
|
function createResourceRequest$b(config) {
|
|
40496
40498
|
const headers = {};
|
|
40497
40499
|
return {
|
|
40498
|
-
baseUri: '/services/data/
|
|
40500
|
+
baseUri: '/services/data/v62.0',
|
|
40499
40501
|
basePath: '/ui-api/actions/perform-quick-action/' + config.urlParams.actionApiName + '',
|
|
40500
40502
|
method: 'post',
|
|
40501
40503
|
body: config.body,
|
|
@@ -40597,7 +40599,7 @@ const factory$c = performQuickActionAdapterFactory;
|
|
|
40597
40599
|
function createResourceRequest$a(config) {
|
|
40598
40600
|
const headers = {};
|
|
40599
40601
|
return {
|
|
40600
|
-
baseUri: '/services/data/
|
|
40602
|
+
baseUri: '/services/data/v62.0',
|
|
40601
40603
|
basePath: '/ui-api/layout/' + config.urlParams.objectApiName + '/user-state',
|
|
40602
40604
|
method: 'patch',
|
|
40603
40605
|
body: config.body,
|
|
@@ -41058,7 +41060,7 @@ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
|
41058
41060
|
function createResourceRequest$9(config) {
|
|
41059
41061
|
const headers = {};
|
|
41060
41062
|
return {
|
|
41061
|
-
baseUri: '/services/data/
|
|
41063
|
+
baseUri: '/services/data/v62.0',
|
|
41062
41064
|
basePath: '/ui-api/lookups/' + config.urlParams.objectApiName + '/' + config.urlParams.fieldApiName + '',
|
|
41063
41065
|
method: 'post',
|
|
41064
41066
|
body: config.body,
|
|
@@ -41282,7 +41284,7 @@ const factory$9 = (luvio) => {
|
|
|
41282
41284
|
function createResourceRequest$8(config) {
|
|
41283
41285
|
const headers = {};
|
|
41284
41286
|
return {
|
|
41285
|
-
baseUri: '/services/data/
|
|
41287
|
+
baseUri: '/services/data/v62.0',
|
|
41286
41288
|
basePath: '/ui-api/record-avatars/' + config.urlParams.recordId + '/association',
|
|
41287
41289
|
method: 'post',
|
|
41288
41290
|
body: config.body,
|
|
@@ -41634,7 +41636,7 @@ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
|
41634
41636
|
function createResourceRequest$7(config) {
|
|
41635
41637
|
const headers = {};
|
|
41636
41638
|
return {
|
|
41637
|
-
baseUri: '/services/data/
|
|
41639
|
+
baseUri: '/services/data/v62.0',
|
|
41638
41640
|
basePath: '/ui-api/record-defaults/create/' + config.urlParams.objectApiName + '',
|
|
41639
41641
|
method: 'get',
|
|
41640
41642
|
body: null,
|
|
@@ -42165,7 +42167,7 @@ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
|
42165
42167
|
function createResourceRequest$6(config) {
|
|
42166
42168
|
const headers = {};
|
|
42167
42169
|
return {
|
|
42168
|
-
baseUri: '/services/data/
|
|
42170
|
+
baseUri: '/services/data/v62.0',
|
|
42169
42171
|
basePath: '/ui-api/record-defaults/template/clone/' + config.urlParams.recordId + '',
|
|
42170
42172
|
method: 'get',
|
|
42171
42173
|
body: null,
|
|
@@ -42696,7 +42698,7 @@ function ingestError$M(luvio, params, error, snapshotRefresh) {
|
|
|
42696
42698
|
function createResourceRequest$5(config) {
|
|
42697
42699
|
const headers = {};
|
|
42698
42700
|
return {
|
|
42699
|
-
baseUri: '/services/data/
|
|
42701
|
+
baseUri: '/services/data/v62.0',
|
|
42700
42702
|
basePath: '/ui-api/record-defaults/template/create/' + config.urlParams.objectApiName + '',
|
|
42701
42703
|
method: 'get',
|
|
42702
42704
|
body: null,
|
|
@@ -42901,7 +42903,7 @@ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
|
42901
42903
|
function createResourceRequest$4(config) {
|
|
42902
42904
|
const headers = {};
|
|
42903
42905
|
return {
|
|
42904
|
-
baseUri: '/services/data/
|
|
42906
|
+
baseUri: '/services/data/v62.0',
|
|
42905
42907
|
basePath: '/ui-api/records',
|
|
42906
42908
|
method: 'post',
|
|
42907
42909
|
body: config.body,
|
|
@@ -42913,6 +42915,7 @@ function createResourceRequest$4(config) {
|
|
|
42913
42915
|
}
|
|
42914
42916
|
|
|
42915
42917
|
const createRecord_ConfigPropertyMetadata = [
|
|
42918
|
+
generateParamConfigMetadata$2('handleOwnerChange', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
42916
42919
|
generateParamConfigMetadata$2('includeFieldsInBody', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
42917
42920
|
generateParamConfigMetadata$2('triggerOtherEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
42918
42921
|
generateParamConfigMetadata$2('triggerUserEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -42924,7 +42927,14 @@ const createRecord_ConfigPropertyMetadata = [
|
|
|
42924
42927
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$13(createRecord_ConfigPropertyMetadata);
|
|
42925
42928
|
|
|
42926
42929
|
function onResponseSuccess(luvio, response, recordIngest, conflictMap) {
|
|
42927
|
-
const { body } = response;
|
|
42930
|
+
const { body, status } = response;
|
|
42931
|
+
if (status === HttpStatusCode$1.NoContent) {
|
|
42932
|
+
const syntheticSnapshot = {
|
|
42933
|
+
state: 'Fulfilled',
|
|
42934
|
+
data: {},
|
|
42935
|
+
};
|
|
42936
|
+
return luvio.storeBroadcast().then(() => syntheticSnapshot);
|
|
42937
|
+
}
|
|
42928
42938
|
const selections = buildSelectionFromRecord(body);
|
|
42929
42939
|
const key = keyBuilder$26(luvio, {
|
|
42930
42940
|
recordId: body.id,
|
|
@@ -42995,7 +43005,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
42995
43005
|
function createResourceRequest$3(config) {
|
|
42996
43006
|
const headers = {};
|
|
42997
43007
|
return {
|
|
42998
|
-
baseUri: '/services/data/
|
|
43008
|
+
baseUri: '/services/data/v62.0',
|
|
42999
43009
|
basePath: '/ui-api/records/' + config.urlParams.recordId + '',
|
|
43000
43010
|
method: 'delete',
|
|
43001
43011
|
body: null,
|
|
@@ -43079,7 +43089,7 @@ function createResourceRequest$2$1(config) {
|
|
|
43079
43089
|
headers['If-Unmodified-Since'] = header_ifUnmodifiedSince;
|
|
43080
43090
|
}
|
|
43081
43091
|
return {
|
|
43082
|
-
baseUri: '/services/data/
|
|
43092
|
+
baseUri: '/services/data/v62.0',
|
|
43083
43093
|
basePath: '/ui-api/records/' + config.urlParams.recordId + '',
|
|
43084
43094
|
method: 'patch',
|
|
43085
43095
|
body: config.body,
|
|
@@ -43093,6 +43103,7 @@ function createResourceRequest$2$1(config) {
|
|
|
43093
43103
|
const adapterName$13 = 'updateRecord';
|
|
43094
43104
|
const updateRecord_ConfigPropertyMetadata = [
|
|
43095
43105
|
generateParamConfigMetadata$2('recordId', true, 0 /* UrlParameter */, 0 /* String */, false, getRecordId18),
|
|
43106
|
+
generateParamConfigMetadata$2('handleOwnerChange', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
43096
43107
|
generateParamConfigMetadata$2('triggerOtherEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
43097
43108
|
generateParamConfigMetadata$2('triggerUserEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
43098
43109
|
generateParamConfigMetadata$2('useDefaultRule', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -43152,11 +43163,23 @@ function validateAdapterConfig$2$1(untrustedConfig, configPropertyNames) {
|
|
|
43152
43163
|
return config;
|
|
43153
43164
|
}
|
|
43154
43165
|
|
|
43166
|
+
const ISO8601_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z$/;
|
|
43155
43167
|
function getHeaders(clientOptions) {
|
|
43156
43168
|
const headers = {};
|
|
43157
43169
|
if (untrustedIsObject$2(clientOptions)) {
|
|
43158
43170
|
if (typeof clientOptions.ifUnmodifiedSince === 'string') {
|
|
43159
43171
|
headers.ifUnmodifiedSince = clientOptions.ifUnmodifiedSince;
|
|
43172
|
+
// HTTP standard format date is expected by UI-API
|
|
43173
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
|
|
43174
|
+
// A component built for Connect API must use If-Unmodified-Since
|
|
43175
|
+
// dates formatted as ISO 8601, which does not match the HTTP spec.
|
|
43176
|
+
// For compatibility, convert the date to match the standard.
|
|
43177
|
+
if (headers.ifUnmodifiedSince.match(ISO8601_DATE_REGEX)) {
|
|
43178
|
+
const utcString = new Date(headers.ifUnmodifiedSince).toUTCString();
|
|
43179
|
+
if (utcString !== 'Invalid Date') {
|
|
43180
|
+
headers.ifUnmodifiedSince = utcString;
|
|
43181
|
+
}
|
|
43182
|
+
}
|
|
43160
43183
|
}
|
|
43161
43184
|
}
|
|
43162
43185
|
return headers;
|
|
@@ -43175,6 +43198,14 @@ function buildNetworkSnapshot$2$1(luvio, config, clientOptions) {
|
|
|
43175
43198
|
const recordIngest = createRecordIngest(fieldTrie, optionalFieldTrie, conflictMap);
|
|
43176
43199
|
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
43177
43200
|
return luvio.handleSuccessResponse(() => {
|
|
43201
|
+
if (response.status === HttpStatusCode$1.NoContent) {
|
|
43202
|
+
const syntheticSnapshot = {
|
|
43203
|
+
state: 'Fulfilled',
|
|
43204
|
+
data: {},
|
|
43205
|
+
};
|
|
43206
|
+
luvio.storeEvict(keyBuilder$26(luvio, { recordId }));
|
|
43207
|
+
return luvio.storeBroadcast().then(() => syntheticSnapshot);
|
|
43208
|
+
}
|
|
43178
43209
|
const snapshot = ingestRecordResponse(luvio, response, recordId, recordIngest, conflictMap);
|
|
43179
43210
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
43180
43211
|
}, () => {
|
|
@@ -43342,7 +43373,7 @@ function createResourceParams$1$1(config) {
|
|
|
43342
43373
|
function createResourceRequest$1$1(config) {
|
|
43343
43374
|
const headers = {};
|
|
43344
43375
|
return {
|
|
43345
|
-
baseUri: '/services/data/
|
|
43376
|
+
baseUri: '/services/data/v62.0',
|
|
43346
43377
|
basePath: '/ui-api/records/content-documents/' +
|
|
43347
43378
|
config.urlParams.contentDocumentId +
|
|
43348
43379
|
'/content-versions',
|
|
@@ -43455,7 +43486,7 @@ function createResourceParams$12(config) {
|
|
|
43455
43486
|
function createResourceRequest$1c(config) {
|
|
43456
43487
|
const headers = {};
|
|
43457
43488
|
return {
|
|
43458
|
-
baseUri: '/services/data/
|
|
43489
|
+
baseUri: '/services/data/v62.0',
|
|
43459
43490
|
basePath: '/ui-api/records/content-documents/content-versions',
|
|
43460
43491
|
method: 'post',
|
|
43461
43492
|
body: config.body,
|
|
@@ -43788,7 +43819,7 @@ const getGlobalActionsMetadata = { apiFamily: keyPrefix$2, name: adapterName$Y$1
|
|
|
43788
43819
|
const getKeywordSearchResultsMetadata = { apiFamily: keyPrefix$2, name: adapterName$a, ttl: 200 };
|
|
43789
43820
|
const getLayoutMetadata = { apiFamily: keyPrefix$2, name: adapterName$J, ttl: 900000 };
|
|
43790
43821
|
const getLayoutUserStateMetadata = { apiFamily: keyPrefix$2, name: adapterName$I, ttl: 900000 };
|
|
43791
|
-
const getListInfoByNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$
|
|
43822
|
+
const getListInfoByNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$D, ttl: 900000 };
|
|
43792
43823
|
const getListInfosByNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$H };
|
|
43793
43824
|
const getListInfosByObjectNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$G };
|
|
43794
43825
|
const getListObjectInfoMetadata = { apiFamily: keyPrefix$2, name: adapterName$B, ttl: 900000 };
|
|
@@ -43809,7 +43840,7 @@ const getQuickActionDefaultsMetadata = { apiFamily: keyPrefix$2, name: adapterNa
|
|
|
43809
43840
|
const getQuickActionLayoutMetadata = { apiFamily: keyPrefix$2, name: adapterName$X, ttl: 900000 };
|
|
43810
43841
|
const getRecordMetadata = { apiFamily: keyPrefix$2, name: 'getRecord', ttl: 30000 };
|
|
43811
43842
|
const getRecordActionsMetadata = { apiFamily: keyPrefix$2, name: adapterName$R, ttl: 300000 };
|
|
43812
|
-
const getRecordAvatarsMetadata = { apiFamily: keyPrefix$2, name: adapterName$r, ttl:
|
|
43843
|
+
const getRecordAvatarsMetadata = { apiFamily: keyPrefix$2, name: adapterName$r, ttl: 1800000 };
|
|
43813
43844
|
const getRecordCreateDefaultsMetadata = { apiFamily: keyPrefix$2, name: 'getRecordCreateDefaults', ttl: 900000 };
|
|
43814
43845
|
const getRecordEditActionsMetadata = { apiFamily: keyPrefix$2, name: adapterName$Q, ttl: 300000 };
|
|
43815
43846
|
const getRecordTemplateCloneMetadata = { apiFamily: keyPrefix$2, name: 'getRecordTemplateClone', ttl: 1000 };
|
|
@@ -43896,7 +43927,7 @@ function bindExportsTo$1(luvio) {
|
|
|
43896
43927
|
createContentVersion: unwrapSnapshotData(factory$j),
|
|
43897
43928
|
createListInfo: createLDSAdapter(luvio, adapterName$F, createListInfoAdapterFactory),
|
|
43898
43929
|
createRecord: unwrapSnapshotData(factory$4),
|
|
43899
|
-
deleteListInfo: createLDSAdapter(luvio, adapterName$
|
|
43930
|
+
deleteListInfo: createLDSAdapter(luvio, adapterName$E, deleteListInfoAdapterFactory),
|
|
43900
43931
|
deleteRecord: createLDSAdapter(luvio, 'deleteRecord', factory$3),
|
|
43901
43932
|
executeBatchRecordOperations: unwrapSnapshotData(factory$e),
|
|
43902
43933
|
getActionOverrides: createWireAdapterConstructor(luvio, getActionOverrides_ldsAdapter, getActionOverridesMetadata),
|
|
@@ -44184,7 +44215,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44184
44215
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44185
44216
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44186
44217
|
});
|
|
44187
|
-
// version: 1.
|
|
44218
|
+
// version: 1.291.0-79b8ea231
|
|
44188
44219
|
|
|
44189
44220
|
var ldsIdempotencyWriteDisabled = {
|
|
44190
44221
|
isOpen: function (e) {
|
|
@@ -44371,7 +44402,7 @@ const { join: join$2, push: push$2, unshift } = Array.prototype;
|
|
|
44371
44402
|
const { isArray: isArray$5 } = Array;
|
|
44372
44403
|
const { entries: entries$4, keys: keys$8 } = Object;
|
|
44373
44404
|
|
|
44374
|
-
const UI_API_BASE_URI = '/services/data/
|
|
44405
|
+
const UI_API_BASE_URI = '/services/data/v62.0/ui-api';
|
|
44375
44406
|
|
|
44376
44407
|
let instrumentation$2 = {
|
|
44377
44408
|
aggregateUiChunkCount: (_cb) => { },
|
|
@@ -53403,6 +53434,32 @@ async function readIngestionTimestampForKey(key, query) {
|
|
|
53403
53434
|
return ingestionTimestamp;
|
|
53404
53435
|
}
|
|
53405
53436
|
|
|
53437
|
+
// Code lifted from https://github.com/MaxArt2501/base64-js/blob/master/base64.js
|
|
53438
|
+
// base64 character set, plus padding character (=)
|
|
53439
|
+
const b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
53440
|
+
function btoaPolyfill(input) {
|
|
53441
|
+
let bitmap, a, b, c;
|
|
53442
|
+
let result = '', i = 0;
|
|
53443
|
+
const rest = input.length % 3; // To determine the final padding
|
|
53444
|
+
for (; i < input.length;) {
|
|
53445
|
+
if ((a = input.charCodeAt(i++)) > 255 ||
|
|
53446
|
+
(b = input.charCodeAt(i++)) > 255 ||
|
|
53447
|
+
(c = input.charCodeAt(i++)) > 255) {
|
|
53448
|
+
throw new TypeError('Failed base64ToAscii encoding: The string to be encoded contains characters outside of the Latin1 range. ' +
|
|
53449
|
+
input);
|
|
53450
|
+
}
|
|
53451
|
+
bitmap = (a << 16) | (b << 8) | c;
|
|
53452
|
+
result +=
|
|
53453
|
+
b64.charAt((bitmap >> 18) & 63) +
|
|
53454
|
+
b64.charAt((bitmap >> 12) & 63) +
|
|
53455
|
+
b64.charAt((bitmap >> 6) & 63) +
|
|
53456
|
+
b64.charAt(bitmap & 63);
|
|
53457
|
+
}
|
|
53458
|
+
// If there's need of padding, replace the last 'A's with equal signs
|
|
53459
|
+
return rest ? result.slice(0, rest - 3) + '==='.substring(rest) : result;
|
|
53460
|
+
}
|
|
53461
|
+
const base64encode = typeof btoa === 'function' ? btoa : btoaPolyfill;
|
|
53462
|
+
|
|
53406
53463
|
function findSpanningField(name) {
|
|
53407
53464
|
return (field) => {
|
|
53408
53465
|
return (field.apiName === name ||
|
|
@@ -53684,6 +53741,11 @@ function addResolversToSchema(schema, polyFields) {
|
|
|
53684
53741
|
return { recordRepresentation, ingestionTimestamp };
|
|
53685
53742
|
};
|
|
53686
53743
|
}
|
|
53744
|
+
else if (field.name === 'cursor') {
|
|
53745
|
+
field.resolve = function ({ index }) {
|
|
53746
|
+
return base64encode(`v1:${index}`);
|
|
53747
|
+
};
|
|
53748
|
+
}
|
|
53687
53749
|
}
|
|
53688
53750
|
}
|
|
53689
53751
|
if (isRecordType(type)) {
|
|
@@ -53900,10 +53962,11 @@ async function connectionEdgeResolver(obj, _args, context) {
|
|
|
53900
53962
|
//map each sql result with the ingestion timestamp to pass it down a level
|
|
53901
53963
|
return results.rows
|
|
53902
53964
|
.map((row) => row[0])
|
|
53903
|
-
.map((record) => {
|
|
53965
|
+
.map((record, index) => {
|
|
53904
53966
|
return {
|
|
53905
53967
|
record,
|
|
53906
53968
|
ingestionTimestamp,
|
|
53969
|
+
index,
|
|
53907
53970
|
};
|
|
53908
53971
|
});
|
|
53909
53972
|
}
|
|
@@ -59750,7 +59813,7 @@ function mergePageUrls(first, second) {
|
|
|
59750
59813
|
/**
|
|
59751
59814
|
* merge to paging url with different set of fields or optional fields as combined one
|
|
59752
59815
|
* the paging url is like
|
|
59753
|
-
* /services/data/
|
|
59816
|
+
* /services/data/v62.0/ui-api/related-list-records/001R0000006l1xKIAQ/Contacts
|
|
59754
59817
|
* ?fields=Id%2CName&optionalFields=Contact.Id%2CContact.Name&pageSize=50&pageToken=0
|
|
59755
59818
|
* @param path1 url path and query parmeter without domain
|
|
59756
59819
|
* @param path2 url path and query parmeter without domain
|
|
@@ -61870,7 +61933,7 @@ function instrumentPrimingSession(session) {
|
|
|
61870
61933
|
// so eslint doesn't complain about nimbus
|
|
61871
61934
|
/* global __nimbus */
|
|
61872
61935
|
// note this is automatically incremented by scripts/release/bump-api-version.js at each release
|
|
61873
|
-
const apiVersion = `
|
|
61936
|
+
const apiVersion = `v62.0`;
|
|
61874
61937
|
const batchEndPointPath = `/services/data/${apiVersion}/graphql/batch`;
|
|
61875
61938
|
const endPointPath = `/services/data/${apiVersion}/graphql`;
|
|
61876
61939
|
const batchObjectInfoEndpoint = `/services/data/${apiVersion}/ui-api/object-info/batch`;
|
|
@@ -62052,6 +62115,20 @@ class SqlitePrimingStore {
|
|
|
62052
62115
|
async writeBatch(records, overwrite) {
|
|
62053
62116
|
const idsToPrime = new Set();
|
|
62054
62117
|
const written = [];
|
|
62118
|
+
if (overwrite === true) {
|
|
62119
|
+
// if overwrite is true we need to raise change notifications so use the batchOperations
|
|
62120
|
+
const operations = {};
|
|
62121
|
+
for (const { record, metadata } of records) {
|
|
62122
|
+
const key = keyBuilder$26(this.getLuvio(), { recordId: record.id });
|
|
62123
|
+
idsToPrime.add(record.id);
|
|
62124
|
+
operations[key] = {
|
|
62125
|
+
data: record,
|
|
62126
|
+
metadata: { ...metadata, metadataVersion: DURABLE_METADATA_VERSION },
|
|
62127
|
+
};
|
|
62128
|
+
}
|
|
62129
|
+
await this.store.setEntries(operations, DefaultDurableSegment);
|
|
62130
|
+
return { written: Array.from(idsToPrime), conflicted: [], errors: [] };
|
|
62131
|
+
}
|
|
62055
62132
|
const statement = `${overwrite ? 'REPLACE' : 'INSERT or IGNORE'} INTO lds_data (key, data, metadata) VALUES ${records
|
|
62056
62133
|
.map((_) => `(?,?,?)`)
|
|
62057
62134
|
.join(',')} returning key;`;
|
|
@@ -62417,7 +62494,7 @@ register$1({
|
|
|
62417
62494
|
id: '@salesforce/lds-network-adapter',
|
|
62418
62495
|
instrument: instrument$2,
|
|
62419
62496
|
});
|
|
62420
|
-
// version: 1.
|
|
62497
|
+
// version: 1.291.0-8df6969f6
|
|
62421
62498
|
|
|
62422
62499
|
const { create: create$3, keys: keys$3 } = Object;
|
|
62423
62500
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -81134,7 +81211,7 @@ function ingestError$1(luvio, config, params, error, snapshotRefresh) {
|
|
|
81134
81211
|
function createResourceRequest$2(config) {
|
|
81135
81212
|
const headers = {};
|
|
81136
81213
|
return {
|
|
81137
|
-
baseUri: '/services/data/
|
|
81214
|
+
baseUri: '/services/data/v62.0',
|
|
81138
81215
|
basePath: '/graphql',
|
|
81139
81216
|
method: 'post',
|
|
81140
81217
|
body: { ...config.body,
|
|
@@ -81525,7 +81602,7 @@ function createResourceRequest(config) {
|
|
|
81525
81602
|
const headers = {};
|
|
81526
81603
|
const transformedConfig = stripDocumentsOfMetaschema(config);
|
|
81527
81604
|
return {
|
|
81528
|
-
baseUri: '/services/data/
|
|
81605
|
+
baseUri: '/services/data/v62.0',
|
|
81529
81606
|
basePath: '/graphql/batch',
|
|
81530
81607
|
method: 'post',
|
|
81531
81608
|
body: transformedConfig.body,
|
|
@@ -82481,7 +82558,7 @@ register$1({
|
|
|
82481
82558
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
82482
82559
|
instrument: instrument$1,
|
|
82483
82560
|
});
|
|
82484
|
-
// version: 1.
|
|
82561
|
+
// version: 1.291.0-79b8ea231
|
|
82485
82562
|
|
|
82486
82563
|
// On core the unstable adapters are re-exported with different names,
|
|
82487
82564
|
// we want to match them here.
|
|
@@ -84520,7 +84597,7 @@ function onFetchResponseError(luvio, config, response) {
|
|
|
84520
84597
|
function buildNetworkSnapshot(luvio, config, fragment, options) {
|
|
84521
84598
|
const { variables: queryVariables, query } = config;
|
|
84522
84599
|
const request = {
|
|
84523
|
-
baseUri: '/services/data/
|
|
84600
|
+
baseUri: '/services/data/v62.0',
|
|
84524
84601
|
basePath: '/graphql',
|
|
84525
84602
|
method: 'post',
|
|
84526
84603
|
priority: 'normal',
|
|
@@ -84737,7 +84814,7 @@ withDefaultLuvio((luvio) => {
|
|
|
84737
84814
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
84738
84815
|
graphQLImperative = ldsAdapter;
|
|
84739
84816
|
});
|
|
84740
|
-
// version: 1.
|
|
84817
|
+
// version: 1.291.0-79b8ea231
|
|
84741
84818
|
|
|
84742
84819
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
84743
84820
|
__proto__: null,
|
|
@@ -85475,7 +85552,7 @@ const callbacks$1 = [];
|
|
|
85475
85552
|
function register(r) {
|
|
85476
85553
|
callbacks$1.forEach((callback) => callback(r));
|
|
85477
85554
|
}
|
|
85478
|
-
// version: 1.
|
|
85555
|
+
// version: 1.291.0-8df6969f6
|
|
85479
85556
|
|
|
85480
85557
|
/**
|
|
85481
85558
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -90437,4 +90514,4 @@ const { luvio } = getRuntime();
|
|
|
90437
90514
|
setDefaultLuvio({ luvio });
|
|
90438
90515
|
|
|
90439
90516
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
90440
|
-
// version: 1.
|
|
90517
|
+
// version: 1.291.0-8df6969f6
|