@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
|
@@ -4196,7 +4196,7 @@
|
|
|
4196
4196
|
}
|
|
4197
4197
|
callbacks.push(callback);
|
|
4198
4198
|
}
|
|
4199
|
-
// version: 1.
|
|
4199
|
+
// version: 1.291.0-8df6969f6
|
|
4200
4200
|
|
|
4201
4201
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4202
4202
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15704,7 +15704,7 @@
|
|
|
15704
15704
|
}
|
|
15705
15705
|
return superResult;
|
|
15706
15706
|
}
|
|
15707
|
-
// version: 1.
|
|
15707
|
+
// version: 1.291.0-8df6969f6
|
|
15708
15708
|
|
|
15709
15709
|
function unwrap(data) {
|
|
15710
15710
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16629,7 +16629,7 @@
|
|
|
16629
16629
|
const { apiFamily, name } = metadata;
|
|
16630
16630
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16631
16631
|
}
|
|
16632
|
-
// version: 1.
|
|
16632
|
+
// version: 1.291.0-8df6969f6
|
|
16633
16633
|
|
|
16634
16634
|
/**
|
|
16635
16635
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -21029,7 +21029,7 @@
|
|
|
21029
21029
|
function createResourceRequest$1a(config) {
|
|
21030
21030
|
const headers = {};
|
|
21031
21031
|
return {
|
|
21032
|
-
baseUri: '/services/data/
|
|
21032
|
+
baseUri: '/services/data/v62.0',
|
|
21033
21033
|
basePath: '/ui-api/records/' + config.urlParams.recordId + '',
|
|
21034
21034
|
method: 'get',
|
|
21035
21035
|
body: null,
|
|
@@ -21458,7 +21458,7 @@
|
|
|
21458
21458
|
function createResourceRequest$19(config) {
|
|
21459
21459
|
const headers = {};
|
|
21460
21460
|
return {
|
|
21461
|
-
baseUri: '/services/data/
|
|
21461
|
+
baseUri: '/services/data/v62.0',
|
|
21462
21462
|
basePath: '/ui-api/records/batch/' + config.urlParams.recordIds + '',
|
|
21463
21463
|
method: 'get',
|
|
21464
21464
|
body: null,
|
|
@@ -22267,7 +22267,7 @@
|
|
|
22267
22267
|
function createResourceRequest$18(config) {
|
|
22268
22268
|
const headers = {};
|
|
22269
22269
|
return {
|
|
22270
|
-
baseUri: '/services/data/
|
|
22270
|
+
baseUri: '/services/data/v62.0',
|
|
22271
22271
|
basePath: '/ui-api/list-ui/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
22272
22272
|
method: 'get',
|
|
22273
22273
|
body: null,
|
|
@@ -22317,7 +22317,7 @@
|
|
|
22317
22317
|
function createResourceRequest$17(config) {
|
|
22318
22318
|
const headers = {};
|
|
22319
22319
|
return {
|
|
22320
|
-
baseUri: '/services/data/
|
|
22320
|
+
baseUri: '/services/data/v62.0',
|
|
22321
22321
|
basePath: '/ui-api/list-ui/' + config.urlParams.listViewId + '',
|
|
22322
22322
|
method: 'get',
|
|
22323
22323
|
body: null,
|
|
@@ -22359,7 +22359,7 @@
|
|
|
22359
22359
|
function createResourceRequest$16(config) {
|
|
22360
22360
|
const headers = {};
|
|
22361
22361
|
return {
|
|
22362
|
-
baseUri: '/services/data/
|
|
22362
|
+
baseUri: '/services/data/v62.0',
|
|
22363
22363
|
basePath: '/ui-api/list-records/' + config.urlParams.listViewId + '',
|
|
22364
22364
|
method: 'get',
|
|
22365
22365
|
body: null,
|
|
@@ -23178,7 +23178,7 @@
|
|
|
23178
23178
|
function createResourceRequest$15(config) {
|
|
23179
23179
|
const headers = {};
|
|
23180
23180
|
return {
|
|
23181
|
-
baseUri: '/services/data/
|
|
23181
|
+
baseUri: '/services/data/v62.0',
|
|
23182
23182
|
basePath: '/ui-api/list-records/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
23183
23183
|
method: 'post',
|
|
23184
23184
|
body: config.body,
|
|
@@ -23649,7 +23649,7 @@
|
|
|
23649
23649
|
function createResourceRequest$14(config) {
|
|
23650
23650
|
const headers = {};
|
|
23651
23651
|
return {
|
|
23652
|
-
baseUri: '/services/data/
|
|
23652
|
+
baseUri: '/services/data/v62.0',
|
|
23653
23653
|
basePath: '/ui-api/list-ui/' + config.urlParams.objectApiName + '',
|
|
23654
23654
|
method: 'get',
|
|
23655
23655
|
body: null,
|
|
@@ -23844,7 +23844,7 @@
|
|
|
23844
23844
|
function createResourceRequest$13(config) {
|
|
23845
23845
|
const headers = {};
|
|
23846
23846
|
return {
|
|
23847
|
-
baseUri: '/services/data/
|
|
23847
|
+
baseUri: '/services/data/v62.0',
|
|
23848
23848
|
basePath: '/ui-api/mru-list-ui/' + config.urlParams.objectApiName + '',
|
|
23849
23849
|
method: 'get',
|
|
23850
23850
|
body: null,
|
|
@@ -23886,7 +23886,7 @@
|
|
|
23886
23886
|
function createResourceRequest$12(config) {
|
|
23887
23887
|
const headers = {};
|
|
23888
23888
|
return {
|
|
23889
|
-
baseUri: '/services/data/
|
|
23889
|
+
baseUri: '/services/data/v62.0',
|
|
23890
23890
|
basePath: '/ui-api/mru-list-records/' + config.urlParams.objectApiName + '',
|
|
23891
23891
|
method: 'get',
|
|
23892
23892
|
body: null,
|
|
@@ -24845,7 +24845,7 @@
|
|
|
24845
24845
|
function createResourceRequest$11(config) {
|
|
24846
24846
|
const headers = {};
|
|
24847
24847
|
return {
|
|
24848
|
-
baseUri: '/services/data/
|
|
24848
|
+
baseUri: '/services/data/v62.0',
|
|
24849
24849
|
basePath: '/ui-api/object-info/' + config.urlParams.objectApiName + '',
|
|
24850
24850
|
method: 'get',
|
|
24851
24851
|
body: null,
|
|
@@ -25292,7 +25292,7 @@
|
|
|
25292
25292
|
function createResourceRequest$10(config) {
|
|
25293
25293
|
const headers = {};
|
|
25294
25294
|
return {
|
|
25295
|
-
baseUri: '/services/data/
|
|
25295
|
+
baseUri: '/services/data/v62.0',
|
|
25296
25296
|
basePath: '/ui-api/record-ui/' + config.urlParams.recordIds + '',
|
|
25297
25297
|
method: 'get',
|
|
25298
25298
|
body: null,
|
|
@@ -27263,7 +27263,7 @@
|
|
|
27263
27263
|
function createResourceRequest$$(config) {
|
|
27264
27264
|
const headers = {};
|
|
27265
27265
|
return {
|
|
27266
|
-
baseUri: '/services/data/
|
|
27266
|
+
baseUri: '/services/data/v62.0',
|
|
27267
27267
|
basePath: '/ui-api/actions/global',
|
|
27268
27268
|
method: 'get',
|
|
27269
27269
|
body: null,
|
|
@@ -27457,12 +27457,12 @@
|
|
|
27457
27457
|
function createResourceRequest$_(config) {
|
|
27458
27458
|
const headers = {};
|
|
27459
27459
|
return {
|
|
27460
|
-
baseUri: '/services/data/
|
|
27460
|
+
baseUri: '/services/data/v62.0',
|
|
27461
27461
|
basePath: '/ui-api/actions/layout/' + config.urlParams.actionApiName + '',
|
|
27462
27462
|
method: 'get',
|
|
27463
27463
|
body: null,
|
|
27464
27464
|
urlParams: config.urlParams,
|
|
27465
|
-
queryParams:
|
|
27465
|
+
queryParams: config.queryParams,
|
|
27466
27466
|
headers,
|
|
27467
27467
|
priority: 'normal',
|
|
27468
27468
|
};
|
|
@@ -27471,6 +27471,8 @@
|
|
|
27471
27471
|
const adapterName$X = 'getQuickActionLayout';
|
|
27472
27472
|
const getQuickActionLayout_ConfigPropertyMetadata = [
|
|
27473
27473
|
generateParamConfigMetadata$2('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
27474
|
+
generateParamConfigMetadata$2('objectApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
27475
|
+
generateParamConfigMetadata$2('recordTypeId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
27474
27476
|
];
|
|
27475
27477
|
const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$X, getQuickActionLayout_ConfigPropertyMetadata);
|
|
27476
27478
|
const createResourceParams$V = /*#__PURE__*/ createResourceParams$13(getQuickActionLayout_ConfigPropertyMetadata);
|
|
@@ -27619,7 +27621,7 @@
|
|
|
27619
27621
|
function createResourceRequest$Z(config) {
|
|
27620
27622
|
const headers = {};
|
|
27621
27623
|
return {
|
|
27622
|
-
baseUri: '/services/data/
|
|
27624
|
+
baseUri: '/services/data/v62.0',
|
|
27623
27625
|
basePath: '/ui-api/actions/lookup/' + config.urlParams.objectApiNames + '',
|
|
27624
27626
|
method: 'get',
|
|
27625
27627
|
body: null,
|
|
@@ -27753,7 +27755,7 @@
|
|
|
27753
27755
|
function createResourceRequest$Y(config) {
|
|
27754
27756
|
const headers = {};
|
|
27755
27757
|
return {
|
|
27756
|
-
baseUri: '/services/data/
|
|
27758
|
+
baseUri: '/services/data/v62.0',
|
|
27757
27759
|
basePath: '/ui-api/actions/object/' + config.urlParams.objectApiName + '/record-create',
|
|
27758
27760
|
method: 'get',
|
|
27759
27761
|
body: null,
|
|
@@ -27916,7 +27918,7 @@
|
|
|
27916
27918
|
function createResourceRequest$X(config) {
|
|
27917
27919
|
const headers = {};
|
|
27918
27920
|
return {
|
|
27919
|
-
baseUri: '/services/data/
|
|
27921
|
+
baseUri: '/services/data/v62.0',
|
|
27920
27922
|
basePath: '/ui-api/actions/overrides/' + config.urlParams.objectApiName + '',
|
|
27921
27923
|
method: 'get',
|
|
27922
27924
|
body: null,
|
|
@@ -28093,7 +28095,7 @@
|
|
|
28093
28095
|
function createResourceRequest$W(config) {
|
|
28094
28096
|
const headers = {};
|
|
28095
28097
|
return {
|
|
28096
|
-
baseUri: '/services/data/
|
|
28098
|
+
baseUri: '/services/data/v62.0',
|
|
28097
28099
|
basePath: '/ui-api/actions/formula-activation/' + config.urlParams.actionFeature + '',
|
|
28098
28100
|
method: 'get',
|
|
28099
28101
|
body: null,
|
|
@@ -28296,7 +28298,7 @@
|
|
|
28296
28298
|
function createResourceRequest$V(config) {
|
|
28297
28299
|
const headers = {};
|
|
28298
28300
|
return {
|
|
28299
|
-
baseUri: '/services/data/
|
|
28301
|
+
baseUri: '/services/data/v62.0',
|
|
28300
28302
|
basePath: '/ui-api/actions/record-defaults/' + config.urlParams.actionApiName + '',
|
|
28301
28303
|
method: 'get',
|
|
28302
28304
|
body: null,
|
|
@@ -28452,7 +28454,7 @@
|
|
|
28452
28454
|
function createResourceRequest$U(config) {
|
|
28453
28455
|
const headers = {};
|
|
28454
28456
|
return {
|
|
28455
|
-
baseUri: '/services/data/
|
|
28457
|
+
baseUri: '/services/data/v62.0',
|
|
28456
28458
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '',
|
|
28457
28459
|
method: 'get',
|
|
28458
28460
|
body: null,
|
|
@@ -28592,7 +28594,7 @@
|
|
|
28592
28594
|
function createResourceRequest$T(config) {
|
|
28593
28595
|
const headers = {};
|
|
28594
28596
|
return {
|
|
28595
|
-
baseUri: '/services/data/
|
|
28597
|
+
baseUri: '/services/data/v62.0',
|
|
28596
28598
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/record-edit',
|
|
28597
28599
|
method: 'get',
|
|
28598
28600
|
body: null,
|
|
@@ -28796,7 +28798,7 @@
|
|
|
28796
28798
|
function createResourceRequest$S(config) {
|
|
28797
28799
|
const headers = {};
|
|
28798
28800
|
return {
|
|
28799
|
-
baseUri: '/services/data/
|
|
28801
|
+
baseUri: '/services/data/v62.0',
|
|
28800
28802
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/related-list/' + config.urlParams.relatedListId + '',
|
|
28801
28803
|
method: 'post',
|
|
28802
28804
|
body: config.body,
|
|
@@ -29071,7 +29073,7 @@
|
|
|
29071
29073
|
function createResourceRequest$R(config) {
|
|
29072
29074
|
const headers = {};
|
|
29073
29075
|
return {
|
|
29074
|
-
baseUri: '/services/data/
|
|
29076
|
+
baseUri: '/services/data/v62.0',
|
|
29075
29077
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/related-list/batch',
|
|
29076
29078
|
method: 'post',
|
|
29077
29079
|
body: config.body,
|
|
@@ -29305,7 +29307,7 @@
|
|
|
29305
29307
|
function createResourceRequest$Q(config) {
|
|
29306
29308
|
const headers = {};
|
|
29307
29309
|
return {
|
|
29308
|
-
baseUri: '/services/data/
|
|
29310
|
+
baseUri: '/services/data/v62.0',
|
|
29309
29311
|
basePath: '/ui-api/actions/record/' + config.urlParams.recordIds + '/related-list-record/' + config.urlParams.relatedListRecordIds + '',
|
|
29310
29312
|
method: 'get',
|
|
29311
29313
|
body: null,
|
|
@@ -30017,7 +30019,7 @@
|
|
|
30017
30019
|
function createResourceRequest$P(config) {
|
|
30018
30020
|
const headers = {};
|
|
30019
30021
|
return {
|
|
30020
|
-
baseUri: '/services/data/
|
|
30022
|
+
baseUri: '/services/data/v62.0',
|
|
30021
30023
|
basePath: '/ui-api/apps',
|
|
30022
30024
|
method: 'get',
|
|
30023
30025
|
body: null,
|
|
@@ -30151,7 +30153,7 @@
|
|
|
30151
30153
|
function createResourceRequest$O(config) {
|
|
30152
30154
|
const headers = {};
|
|
30153
30155
|
return {
|
|
30154
|
-
baseUri: '/services/data/
|
|
30156
|
+
baseUri: '/services/data/v62.0',
|
|
30155
30157
|
basePath: '/ui-api/apps/' + config.urlParams.appId + '',
|
|
30156
30158
|
method: 'get',
|
|
30157
30159
|
body: null,
|
|
@@ -30487,7 +30489,7 @@
|
|
|
30487
30489
|
function createResourceRequest$N(config) {
|
|
30488
30490
|
const headers = {};
|
|
30489
30491
|
return {
|
|
30490
|
-
baseUri: '/services/data/
|
|
30492
|
+
baseUri: '/services/data/v62.0',
|
|
30491
30493
|
basePath: '/ui-api/duplicates/' + config.urlParams.objectApiName + '',
|
|
30492
30494
|
method: 'get',
|
|
30493
30495
|
body: null,
|
|
@@ -30623,7 +30625,7 @@
|
|
|
30623
30625
|
function createResourceRequest$M(config) {
|
|
30624
30626
|
const headers = {};
|
|
30625
30627
|
return {
|
|
30626
|
-
baseUri: '/services/data/
|
|
30628
|
+
baseUri: '/services/data/v62.0',
|
|
30627
30629
|
basePath: '/ui-api/layout/' + config.urlParams.objectApiName + '',
|
|
30628
30630
|
method: 'get',
|
|
30629
30631
|
body: null,
|
|
@@ -30760,7 +30762,7 @@
|
|
|
30760
30762
|
function createResourceRequest$L(config) {
|
|
30761
30763
|
const headers = {};
|
|
30762
30764
|
return {
|
|
30763
|
-
baseUri: '/services/data/
|
|
30765
|
+
baseUri: '/services/data/v62.0',
|
|
30764
30766
|
basePath: '/ui-api/layout/' + config.urlParams.objectApiName + '/user-state',
|
|
30765
30767
|
method: 'get',
|
|
30766
30768
|
body: null,
|
|
@@ -30986,7 +30988,7 @@
|
|
|
30986
30988
|
function createResourceRequest$K(config) {
|
|
30987
30989
|
const headers = {};
|
|
30988
30990
|
return {
|
|
30989
|
-
baseUri: '/services/data/
|
|
30991
|
+
baseUri: '/services/data/v62.0',
|
|
30990
30992
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
30991
30993
|
method: 'get',
|
|
30992
30994
|
body: null,
|
|
@@ -31245,7 +31247,7 @@
|
|
|
31245
31247
|
function createResourceRequest$J(config) {
|
|
31246
31248
|
const headers = {};
|
|
31247
31249
|
return {
|
|
31248
|
-
baseUri: '/services/data/
|
|
31250
|
+
baseUri: '/services/data/v62.0',
|
|
31249
31251
|
basePath: '/ui-api/list-info/batch',
|
|
31250
31252
|
method: 'get',
|
|
31251
31253
|
body: null,
|
|
@@ -31382,7 +31384,7 @@
|
|
|
31382
31384
|
function createResourceRequest$I(config) {
|
|
31383
31385
|
const headers = {};
|
|
31384
31386
|
return {
|
|
31385
|
-
baseUri: '/services/data/
|
|
31387
|
+
baseUri: '/services/data/v62.0',
|
|
31386
31388
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '',
|
|
31387
31389
|
method: 'get',
|
|
31388
31390
|
body: null,
|
|
@@ -31680,7 +31682,7 @@
|
|
|
31680
31682
|
function createResourceRequest$H(config) {
|
|
31681
31683
|
const headers = {};
|
|
31682
31684
|
return {
|
|
31683
|
-
baseUri: '/services/data/
|
|
31685
|
+
baseUri: '/services/data/v62.0',
|
|
31684
31686
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '',
|
|
31685
31687
|
method: 'post',
|
|
31686
31688
|
body: config.body,
|
|
@@ -31767,91 +31769,7 @@
|
|
|
31767
31769
|
};
|
|
31768
31770
|
};
|
|
31769
31771
|
|
|
31770
|
-
|
|
31771
|
-
const getListInfoByName_ConfigPropertyMetadata = [
|
|
31772
|
-
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31773
|
-
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31774
|
-
];
|
|
31775
|
-
const getListInfoByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$E, getListInfoByName_ConfigPropertyMetadata);
|
|
31776
|
-
const createResourceParams$D = /*#__PURE__*/ createResourceParams$13(getListInfoByName_ConfigPropertyMetadata);
|
|
31777
|
-
function keyBuilder$17$1(luvio, config) {
|
|
31778
|
-
const resourceParams = createResourceParams$D(config);
|
|
31779
|
-
return keyBuilder$1c$1(luvio, resourceParams);
|
|
31780
|
-
}
|
|
31781
|
-
function typeCheckConfig$I(untrustedConfig) {
|
|
31782
|
-
const config = {};
|
|
31783
|
-
typeCheckConfig$19(untrustedConfig, config, getListInfoByName_ConfigPropertyMetadata);
|
|
31784
|
-
return config;
|
|
31785
|
-
}
|
|
31786
|
-
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
31787
|
-
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
31788
|
-
return null;
|
|
31789
|
-
}
|
|
31790
|
-
const config = typeCheckConfig$I(untrustedConfig);
|
|
31791
|
-
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
31792
|
-
return null;
|
|
31793
|
-
}
|
|
31794
|
-
return config;
|
|
31795
|
-
}
|
|
31796
|
-
function adapterFragment$o(luvio, config) {
|
|
31797
|
-
createResourceParams$D(config);
|
|
31798
|
-
return select$16$1();
|
|
31799
|
-
}
|
|
31800
|
-
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
31801
|
-
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
31802
|
-
config,
|
|
31803
|
-
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$1)
|
|
31804
|
-
});
|
|
31805
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
31806
|
-
}
|
|
31807
|
-
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
31808
|
-
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
31809
|
-
config,
|
|
31810
|
-
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$1)
|
|
31811
|
-
});
|
|
31812
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
31813
|
-
}
|
|
31814
|
-
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
31815
|
-
const resourceParams = createResourceParams$D(config);
|
|
31816
|
-
const request = createResourceRequest$K(resourceParams);
|
|
31817
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
31818
|
-
.then((response) => {
|
|
31819
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
31820
|
-
const cache = new StoreKeyMap();
|
|
31821
|
-
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
31822
|
-
return cache;
|
|
31823
|
-
});
|
|
31824
|
-
}, (response) => {
|
|
31825
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$q(luvio, config, resourceParams, response));
|
|
31826
|
-
});
|
|
31827
|
-
}
|
|
31828
|
-
function buildNetworkSnapshotCachePolicy$u(context, coercedAdapterRequestContext) {
|
|
31829
|
-
return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
31830
|
-
}
|
|
31831
|
-
function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
31832
|
-
const { luvio, config } = context;
|
|
31833
|
-
const selector = {
|
|
31834
|
-
recordId: keyBuilder$17$1(luvio, config),
|
|
31835
|
-
node: adapterFragment$o(luvio, config),
|
|
31836
|
-
variables: {},
|
|
31837
|
-
};
|
|
31838
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
31839
|
-
config,
|
|
31840
|
-
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions$1)
|
|
31841
|
-
});
|
|
31842
|
-
return cacheSnapshot;
|
|
31843
|
-
}
|
|
31844
|
-
const getListInfoByNameAdapterFactory = (luvio) => function UiApi__getListInfoByName(untrustedConfig, requestContext) {
|
|
31845
|
-
const config = validateAdapterConfig$I(untrustedConfig, getListInfoByName_ConfigPropertyNames);
|
|
31846
|
-
// Invalid or incomplete config
|
|
31847
|
-
if (config === null) {
|
|
31848
|
-
return null;
|
|
31849
|
-
}
|
|
31850
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
31851
|
-
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
|
|
31852
|
-
};
|
|
31853
|
-
|
|
31854
|
-
function keyBuilder$16$1(luvio, params) {
|
|
31772
|
+
function keyBuilder$17$1(luvio, params) {
|
|
31855
31773
|
return keyBuilder$27(luvio, {
|
|
31856
31774
|
objectApiName: params.urlParams.objectApiName,
|
|
31857
31775
|
listViewApiName: params.urlParams.listViewApiName,
|
|
@@ -31859,7 +31777,7 @@
|
|
|
31859
31777
|
});
|
|
31860
31778
|
}
|
|
31861
31779
|
function getResponseCacheKeys$D(cacheKeyMap, luvio, resourceParams) {
|
|
31862
|
-
const key = keyBuilder$
|
|
31780
|
+
const key = keyBuilder$17$1(luvio, resourceParams);
|
|
31863
31781
|
cacheKeyMap.set(key, {
|
|
31864
31782
|
namespace: keyPrefix$2,
|
|
31865
31783
|
representationName: RepresentationType$X,
|
|
@@ -31867,13 +31785,13 @@
|
|
|
31867
31785
|
});
|
|
31868
31786
|
}
|
|
31869
31787
|
function evictSuccess$1(luvio, resourceParams) {
|
|
31870
|
-
const key = keyBuilder$
|
|
31788
|
+
const key = keyBuilder$17$1(luvio, resourceParams);
|
|
31871
31789
|
luvio.storeEvict(key);
|
|
31872
31790
|
}
|
|
31873
31791
|
function createResourceRequest$G(config) {
|
|
31874
31792
|
const headers = {};
|
|
31875
31793
|
return {
|
|
31876
|
-
baseUri: '/services/data/
|
|
31794
|
+
baseUri: '/services/data/v62.0',
|
|
31877
31795
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
31878
31796
|
method: 'delete',
|
|
31879
31797
|
body: null,
|
|
@@ -31884,30 +31802,30 @@
|
|
|
31884
31802
|
};
|
|
31885
31803
|
}
|
|
31886
31804
|
|
|
31887
|
-
const adapterName$
|
|
31805
|
+
const adapterName$E = 'deleteListInfo';
|
|
31888
31806
|
const deleteListInfo_ConfigPropertyMetadata = [
|
|
31889
31807
|
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31890
31808
|
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31891
31809
|
];
|
|
31892
|
-
const deleteListInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$
|
|
31893
|
-
const createResourceParams$
|
|
31894
|
-
function typeCheckConfig$
|
|
31810
|
+
const deleteListInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$E, deleteListInfo_ConfigPropertyMetadata);
|
|
31811
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$13(deleteListInfo_ConfigPropertyMetadata);
|
|
31812
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
31895
31813
|
const config = {};
|
|
31896
31814
|
typeCheckConfig$19(untrustedConfig, config, deleteListInfo_ConfigPropertyMetadata);
|
|
31897
31815
|
return config;
|
|
31898
31816
|
}
|
|
31899
|
-
function validateAdapterConfig$
|
|
31817
|
+
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
31900
31818
|
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
31901
31819
|
return null;
|
|
31902
31820
|
}
|
|
31903
|
-
const config = typeCheckConfig$
|
|
31821
|
+
const config = typeCheckConfig$I(untrustedConfig);
|
|
31904
31822
|
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
31905
31823
|
return null;
|
|
31906
31824
|
}
|
|
31907
31825
|
return config;
|
|
31908
31826
|
}
|
|
31909
|
-
function buildNetworkSnapshot$
|
|
31910
|
-
const resourceParams = createResourceParams$
|
|
31827
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
31828
|
+
const resourceParams = createResourceParams$D(config);
|
|
31911
31829
|
const request = createResourceRequest$G(resourceParams);
|
|
31912
31830
|
return luvio.dispatchResourceRequest(request, options)
|
|
31913
31831
|
.then(() => {
|
|
@@ -31926,13 +31844,97 @@
|
|
|
31926
31844
|
}
|
|
31927
31845
|
const deleteListInfoAdapterFactory = (luvio) => {
|
|
31928
31846
|
return function UiApideleteListInfo(untrustedConfig) {
|
|
31929
|
-
const config = validateAdapterConfig$
|
|
31847
|
+
const config = validateAdapterConfig$I(untrustedConfig, deleteListInfo_ConfigPropertyNames);
|
|
31930
31848
|
// Invalid or incomplete config
|
|
31931
31849
|
if (config === null) {
|
|
31932
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
31850
|
+
throw new Error(`Invalid config for "${adapterName$E}"`);
|
|
31933
31851
|
}
|
|
31934
|
-
return buildNetworkSnapshot$
|
|
31852
|
+
return buildNetworkSnapshot$H(luvio, config);
|
|
31853
|
+
};
|
|
31854
|
+
};
|
|
31855
|
+
|
|
31856
|
+
const adapterName$D = 'getListInfoByName';
|
|
31857
|
+
const getListInfoByName_ConfigPropertyMetadata = [
|
|
31858
|
+
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31859
|
+
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
31860
|
+
];
|
|
31861
|
+
const getListInfoByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$D, getListInfoByName_ConfigPropertyMetadata);
|
|
31862
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$13(getListInfoByName_ConfigPropertyMetadata);
|
|
31863
|
+
function keyBuilder$16$1(luvio, config) {
|
|
31864
|
+
const resourceParams = createResourceParams$C(config);
|
|
31865
|
+
return keyBuilder$1c$1(luvio, resourceParams);
|
|
31866
|
+
}
|
|
31867
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
31868
|
+
const config = {};
|
|
31869
|
+
typeCheckConfig$19(untrustedConfig, config, getListInfoByName_ConfigPropertyMetadata);
|
|
31870
|
+
return config;
|
|
31871
|
+
}
|
|
31872
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
31873
|
+
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
31874
|
+
return null;
|
|
31875
|
+
}
|
|
31876
|
+
const config = typeCheckConfig$H(untrustedConfig);
|
|
31877
|
+
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
31878
|
+
return null;
|
|
31879
|
+
}
|
|
31880
|
+
return config;
|
|
31881
|
+
}
|
|
31882
|
+
function adapterFragment$o(luvio, config) {
|
|
31883
|
+
createResourceParams$C(config);
|
|
31884
|
+
return select$16$1();
|
|
31885
|
+
}
|
|
31886
|
+
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
31887
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
31888
|
+
config,
|
|
31889
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions$1)
|
|
31890
|
+
});
|
|
31891
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
31892
|
+
}
|
|
31893
|
+
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
31894
|
+
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
31895
|
+
config,
|
|
31896
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions$1)
|
|
31897
|
+
});
|
|
31898
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
31899
|
+
}
|
|
31900
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
31901
|
+
const resourceParams = createResourceParams$C(config);
|
|
31902
|
+
const request = createResourceRequest$K(resourceParams);
|
|
31903
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
31904
|
+
.then((response) => {
|
|
31905
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
31906
|
+
const cache = new StoreKeyMap();
|
|
31907
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
31908
|
+
return cache;
|
|
31909
|
+
});
|
|
31910
|
+
}, (response) => {
|
|
31911
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$q(luvio, config, resourceParams, response));
|
|
31912
|
+
});
|
|
31913
|
+
}
|
|
31914
|
+
function buildNetworkSnapshotCachePolicy$u(context, coercedAdapterRequestContext) {
|
|
31915
|
+
return buildNetworkSnapshotCachePolicy$S(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
31916
|
+
}
|
|
31917
|
+
function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
31918
|
+
const { luvio, config } = context;
|
|
31919
|
+
const selector = {
|
|
31920
|
+
recordId: keyBuilder$16$1(luvio, config),
|
|
31921
|
+
node: adapterFragment$o(luvio, config),
|
|
31922
|
+
variables: {},
|
|
31935
31923
|
};
|
|
31924
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
31925
|
+
config,
|
|
31926
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions$1)
|
|
31927
|
+
});
|
|
31928
|
+
return cacheSnapshot;
|
|
31929
|
+
}
|
|
31930
|
+
const getListInfoByNameAdapterFactory = (luvio) => function UiApi__getListInfoByName(untrustedConfig, requestContext) {
|
|
31931
|
+
const config = validateAdapterConfig$H(untrustedConfig, getListInfoByName_ConfigPropertyNames);
|
|
31932
|
+
// Invalid or incomplete config
|
|
31933
|
+
if (config === null) {
|
|
31934
|
+
return null;
|
|
31935
|
+
}
|
|
31936
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
31937
|
+
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
|
|
31936
31938
|
};
|
|
31937
31939
|
|
|
31938
31940
|
function select$12$1(luvio, params) {
|
|
@@ -31956,7 +31958,7 @@
|
|
|
31956
31958
|
function createResourceRequest$F(config) {
|
|
31957
31959
|
const headers = {};
|
|
31958
31960
|
return {
|
|
31959
|
-
baseUri: '/services/data/
|
|
31961
|
+
baseUri: '/services/data/v62.0',
|
|
31960
31962
|
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
31961
31963
|
method: 'patch',
|
|
31962
31964
|
body: config.body,
|
|
@@ -32425,7 +32427,7 @@
|
|
|
32425
32427
|
function createResourceRequest$E(config) {
|
|
32426
32428
|
const headers = {};
|
|
32427
32429
|
return {
|
|
32428
|
-
baseUri: '/services/data/
|
|
32430
|
+
baseUri: '/services/data/v62.0',
|
|
32429
32431
|
basePath: '/ui-api/list-object-info/' + config.urlParams.objectApiName + '',
|
|
32430
32432
|
method: 'get',
|
|
32431
32433
|
body: null,
|
|
@@ -32661,7 +32663,7 @@
|
|
|
32661
32663
|
function createResourceRequest$D(config) {
|
|
32662
32664
|
const headers = {};
|
|
32663
32665
|
return {
|
|
32664
|
-
baseUri: '/services/data/
|
|
32666
|
+
baseUri: '/services/data/v62.0',
|
|
32665
32667
|
basePath: '/ui-api/list-preferences/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
32666
32668
|
method: 'get',
|
|
32667
32669
|
body: null,
|
|
@@ -32797,7 +32799,7 @@
|
|
|
32797
32799
|
function createResourceRequest$C(config) {
|
|
32798
32800
|
const headers = {};
|
|
32799
32801
|
return {
|
|
32800
|
-
baseUri: '/services/data/
|
|
32802
|
+
baseUri: '/services/data/v62.0',
|
|
32801
32803
|
basePath: '/ui-api/list-preferences/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
32802
32804
|
method: 'patch',
|
|
32803
32805
|
body: config.body,
|
|
@@ -33037,7 +33039,7 @@
|
|
|
33037
33039
|
function createResourceRequest$B(config) {
|
|
33038
33040
|
const headers = {};
|
|
33039
33041
|
return {
|
|
33040
|
-
baseUri: '/services/data/
|
|
33042
|
+
baseUri: '/services/data/v62.0',
|
|
33041
33043
|
basePath: '/ui-api/nav-items',
|
|
33042
33044
|
method: 'get',
|
|
33043
33045
|
body: null,
|
|
@@ -33165,7 +33167,7 @@
|
|
|
33165
33167
|
function createResourceRequest$A(config) {
|
|
33166
33168
|
const headers = {};
|
|
33167
33169
|
return {
|
|
33168
|
-
baseUri: '/services/data/
|
|
33170
|
+
baseUri: '/services/data/v62.0',
|
|
33169
33171
|
basePath: '/ui-api/object-info',
|
|
33170
33172
|
method: 'get',
|
|
33171
33173
|
body: null,
|
|
@@ -33497,7 +33499,7 @@
|
|
|
33497
33499
|
function createResourceRequest$z(config) {
|
|
33498
33500
|
const headers = {};
|
|
33499
33501
|
return {
|
|
33500
|
-
baseUri: '/services/data/
|
|
33502
|
+
baseUri: '/services/data/v62.0',
|
|
33501
33503
|
basePath: '/ui-api/object-info/batch/' + config.urlParams.objectApiNames + '',
|
|
33502
33504
|
method: 'get',
|
|
33503
33505
|
body: null,
|
|
@@ -33751,8 +33753,8 @@
|
|
|
33751
33753
|
const keyBuilderFromType$i =
|
|
33752
33754
|
/**
|
|
33753
33755
|
* custom key builder from PicklistValuesRepresentation.
|
|
33754
|
-
* PicklistValuesRepresentation.url is like /services/data/
|
|
33755
|
-
* the '/services/data/
|
|
33756
|
+
* PicklistValuesRepresentation.url is like /services/data/v62.0/ui-api/object-info/Account/picklist-values/012000000000000AAA/AccountSource
|
|
33757
|
+
* the '/services/data/v62.0' in the key make trouble for new js release. so chop it off make the key unique cross releases.
|
|
33756
33758
|
*/
|
|
33757
33759
|
function PicklistValuesRepresentationKeyBuilderFromType(luvio, object) {
|
|
33758
33760
|
const id = object.url.substring(object.url.indexOf('/ui-api'));
|
|
@@ -33942,7 +33944,7 @@
|
|
|
33942
33944
|
function createResourceRequest$y(config) {
|
|
33943
33945
|
const headers = {};
|
|
33944
33946
|
return {
|
|
33945
|
-
baseUri: '/services/data/
|
|
33947
|
+
baseUri: '/services/data/v62.0',
|
|
33946
33948
|
basePath: '/ui-api/object-info/' + config.urlParams.objectApiName + '/picklist-values/' + config.urlParams.recordTypeId + '',
|
|
33947
33949
|
method: 'get',
|
|
33948
33950
|
body: null,
|
|
@@ -34044,7 +34046,7 @@
|
|
|
34044
34046
|
function createResourceRequest$x(config) {
|
|
34045
34047
|
const headers = {};
|
|
34046
34048
|
return {
|
|
34047
|
-
baseUri: '/services/data/
|
|
34049
|
+
baseUri: '/services/data/v62.0',
|
|
34048
34050
|
basePath: '/ui-api/object-info/' + config.urlParams.objectApiName + '/picklist-values/' + config.urlParams.recordTypeId + '/' + config.urlParams.fieldApiName + '',
|
|
34049
34051
|
method: 'get',
|
|
34050
34052
|
body: null,
|
|
@@ -34249,7 +34251,7 @@
|
|
|
34249
34251
|
function createResourceRequest$w(config) {
|
|
34250
34252
|
const headers = {};
|
|
34251
34253
|
return {
|
|
34252
|
-
baseUri: '/services/data/
|
|
34254
|
+
baseUri: '/services/data/v62.0',
|
|
34253
34255
|
basePath: '/ui-api/path/layout/' + config.urlParams.objectApiName + '',
|
|
34254
34256
|
method: 'get',
|
|
34255
34257
|
body: null,
|
|
@@ -34420,7 +34422,7 @@
|
|
|
34420
34422
|
function createResourceRequest$v(config) {
|
|
34421
34423
|
const headers = {};
|
|
34422
34424
|
return {
|
|
34423
|
-
baseUri: '/services/data/
|
|
34425
|
+
baseUri: '/services/data/v62.0',
|
|
34424
34426
|
basePath: '/ui-api/predupe',
|
|
34425
34427
|
method: 'post',
|
|
34426
34428
|
body: config.body,
|
|
@@ -35102,7 +35104,7 @@
|
|
|
35102
35104
|
throw new Error(`Invalid discriminatorValue "${discriminatorValue}". Expected one of "200","400","404"`);
|
|
35103
35105
|
}
|
|
35104
35106
|
|
|
35105
|
-
const TTL$d =
|
|
35107
|
+
const TTL$d = 1800000;
|
|
35106
35108
|
const VERSION$i$1 = "c44c049fa6ad7cf7e932c0aab9107d86";
|
|
35107
35109
|
const RepresentationType$i = 'RecordAvatarBulkMapRepresentation';
|
|
35108
35110
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
@@ -35200,7 +35202,7 @@
|
|
|
35200
35202
|
function createResourceRequest$u(config) {
|
|
35201
35203
|
const headers = {};
|
|
35202
35204
|
return {
|
|
35203
|
-
baseUri: '/services/data/
|
|
35205
|
+
baseUri: '/services/data/v62.0',
|
|
35204
35206
|
basePath: '/ui-api/record-avatars/batch/' + config.urlParams.recordIds + '',
|
|
35205
35207
|
method: 'get',
|
|
35206
35208
|
body: null,
|
|
@@ -35810,7 +35812,7 @@
|
|
|
35810
35812
|
function createResourceRequest$t(config) {
|
|
35811
35813
|
const headers = {};
|
|
35812
35814
|
return {
|
|
35813
|
-
baseUri: '/services/data/
|
|
35815
|
+
baseUri: '/services/data/v62.0',
|
|
35814
35816
|
basePath: '/ui-api/related-list-count/' + config.urlParams.parentRecordId + '/' + config.urlParams.relatedListId + '',
|
|
35815
35817
|
method: 'get',
|
|
35816
35818
|
body: null,
|
|
@@ -36065,7 +36067,7 @@
|
|
|
36065
36067
|
function createResourceRequest$s(config) {
|
|
36066
36068
|
const headers = {};
|
|
36067
36069
|
return {
|
|
36068
|
-
baseUri: '/services/data/
|
|
36070
|
+
baseUri: '/services/data/v62.0',
|
|
36069
36071
|
basePath: '/ui-api/related-list-count/batch/' + config.urlParams.parentRecordId + '/' + config.urlParams.relatedListNames + '',
|
|
36070
36072
|
method: 'get',
|
|
36071
36073
|
body: null,
|
|
@@ -36428,7 +36430,7 @@
|
|
|
36428
36430
|
function createResourceRequest$r(config) {
|
|
36429
36431
|
const headers = {};
|
|
36430
36432
|
return {
|
|
36431
|
-
baseUri: '/services/data/
|
|
36433
|
+
baseUri: '/services/data/v62.0',
|
|
36432
36434
|
basePath: '/ui-api/related-list-info/' + config.urlParams.parentObjectApiName + '/' + config.urlParams.relatedListId + '',
|
|
36433
36435
|
method: 'get',
|
|
36434
36436
|
body: null,
|
|
@@ -36688,7 +36690,7 @@
|
|
|
36688
36690
|
function createResourceRequest$q(config) {
|
|
36689
36691
|
const headers = {};
|
|
36690
36692
|
return {
|
|
36691
|
-
baseUri: '/services/data/
|
|
36693
|
+
baseUri: '/services/data/v62.0',
|
|
36692
36694
|
basePath: '/ui-api/related-list-info/batch/' + config.urlParams.parentObjectApiName + '/' + config.urlParams.relatedListNames + '',
|
|
36693
36695
|
method: 'get',
|
|
36694
36696
|
body: null,
|
|
@@ -36879,7 +36881,7 @@
|
|
|
36879
36881
|
function createResourceRequest$p(config) {
|
|
36880
36882
|
const headers = {};
|
|
36881
36883
|
return {
|
|
36882
|
-
baseUri: '/services/data/
|
|
36884
|
+
baseUri: '/services/data/v62.0',
|
|
36883
36885
|
basePath: '/ui-api/related-list-info/' + config.urlParams.parentObjectApiName + '',
|
|
36884
36886
|
method: 'get',
|
|
36885
36887
|
body: null,
|
|
@@ -37122,7 +37124,7 @@
|
|
|
37122
37124
|
function createResourceRequest$o(config) {
|
|
37123
37125
|
const headers = {};
|
|
37124
37126
|
return {
|
|
37125
|
-
baseUri: '/services/data/
|
|
37127
|
+
baseUri: '/services/data/v62.0',
|
|
37126
37128
|
basePath: '/ui-api/related-list-info/' + config.urlParams.parentObjectApiName + '/' + config.urlParams.relatedListId + '',
|
|
37127
37129
|
method: 'patch',
|
|
37128
37130
|
body: config.body,
|
|
@@ -37292,7 +37294,7 @@
|
|
|
37292
37294
|
function createResourceRequest$n(config) {
|
|
37293
37295
|
const headers = {};
|
|
37294
37296
|
return {
|
|
37295
|
-
baseUri: '/services/data/
|
|
37297
|
+
baseUri: '/services/data/v62.0',
|
|
37296
37298
|
basePath: '/ui-api/related-list-preferences/' + config.urlParams.preferencesId + '',
|
|
37297
37299
|
method: 'get',
|
|
37298
37300
|
body: null,
|
|
@@ -37544,7 +37546,7 @@
|
|
|
37544
37546
|
function createResourceRequest$m(config) {
|
|
37545
37547
|
const headers = {};
|
|
37546
37548
|
return {
|
|
37547
|
-
baseUri: '/services/data/
|
|
37549
|
+
baseUri: '/services/data/v62.0',
|
|
37548
37550
|
basePath: '/ui-api/related-list-preferences/batch/' + config.urlParams.preferencesIds + '',
|
|
37549
37551
|
method: 'get',
|
|
37550
37552
|
body: null,
|
|
@@ -37742,7 +37744,7 @@
|
|
|
37742
37744
|
function createResourceRequest$l(config) {
|
|
37743
37745
|
const headers = {};
|
|
37744
37746
|
return {
|
|
37745
|
-
baseUri: '/services/data/
|
|
37747
|
+
baseUri: '/services/data/v62.0',
|
|
37746
37748
|
basePath: '/ui-api/related-list-preferences/' + config.urlParams.preferencesId + '',
|
|
37747
37749
|
method: 'patch',
|
|
37748
37750
|
body: config.body,
|
|
@@ -38017,7 +38019,7 @@
|
|
|
38017
38019
|
}
|
|
38018
38020
|
// Code lifted from https://github.com/MaxArt2501/base64-js/blob/master/base64.js
|
|
38019
38021
|
// base64 character set, plus padding character (=)
|
|
38020
|
-
const b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
38022
|
+
const b64$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
38021
38023
|
function base64Encode(input) {
|
|
38022
38024
|
let bitmap, a, b, c;
|
|
38023
38025
|
let result = "", i = 0;
|
|
@@ -38029,8 +38031,8 @@
|
|
|
38029
38031
|
throw new TypeError("Failed base64ToAscii encoding: The string to be encoded contains characters outside of the Latin1 range. " + input);
|
|
38030
38032
|
}
|
|
38031
38033
|
bitmap = (a << 16) | (b << 8) | c;
|
|
38032
|
-
result += b64.charAt(bitmap >> 18 & 63) + b64.charAt(bitmap >> 12 & 63)
|
|
38033
|
-
+ b64.charAt(bitmap >> 6 & 63) + b64.charAt(bitmap & 63);
|
|
38034
|
+
result += b64$1.charAt(bitmap >> 18 & 63) + b64$1.charAt(bitmap >> 12 & 63)
|
|
38035
|
+
+ b64$1.charAt(bitmap >> 6 & 63) + b64$1.charAt(bitmap & 63);
|
|
38034
38036
|
}
|
|
38035
38037
|
// If there's need of padding, replace the last 'A's with equal signs
|
|
38036
38038
|
return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result;
|
|
@@ -38501,7 +38503,7 @@
|
|
|
38501
38503
|
function createResourceRequest$k(config) {
|
|
38502
38504
|
const headers = {};
|
|
38503
38505
|
return {
|
|
38504
|
-
baseUri: '/services/data/
|
|
38506
|
+
baseUri: '/services/data/v62.0',
|
|
38505
38507
|
basePath: '/ui-api/related-list-records/' + config.urlParams.parentRecordId + '/' + config.urlParams.relatedListId + '',
|
|
38506
38508
|
method: 'post',
|
|
38507
38509
|
body: config.body,
|
|
@@ -38776,7 +38778,7 @@
|
|
|
38776
38778
|
function createResourceRequest$j(config) {
|
|
38777
38779
|
const headers = {};
|
|
38778
38780
|
return {
|
|
38779
|
-
baseUri: '/services/data/
|
|
38781
|
+
baseUri: '/services/data/v62.0',
|
|
38780
38782
|
basePath: '/ui-api/related-list-records/batch/' + config.urlParams.parentRecordId + '',
|
|
38781
38783
|
method: 'post',
|
|
38782
38784
|
body: config.body,
|
|
@@ -39142,7 +39144,7 @@
|
|
|
39142
39144
|
function createResourceRequest$i(config) {
|
|
39143
39145
|
const headers = {};
|
|
39144
39146
|
return {
|
|
39145
|
-
baseUri: '/services/data/
|
|
39147
|
+
baseUri: '/services/data/v62.0',
|
|
39146
39148
|
basePath: '/ui-api/search-info/' + config.urlParams.objectApiName + '/filters',
|
|
39147
39149
|
method: 'get',
|
|
39148
39150
|
body: null,
|
|
@@ -39324,7 +39326,7 @@
|
|
|
39324
39326
|
function createResourceRequest$h(config) {
|
|
39325
39327
|
const headers = {};
|
|
39326
39328
|
return {
|
|
39327
|
-
baseUri: '/services/data/
|
|
39329
|
+
baseUri: '/services/data/v62.0',
|
|
39328
39330
|
basePath: '/ui-api/search-info/' + config.urlParams.objectApiName + '/filters/' + config.urlParams.filterApiName + '/options',
|
|
39329
39331
|
method: 'get',
|
|
39330
39332
|
body: null,
|
|
@@ -39505,7 +39507,7 @@
|
|
|
39505
39507
|
function createResourceRequest$g(config) {
|
|
39506
39508
|
const headers = {};
|
|
39507
39509
|
return {
|
|
39508
|
-
baseUri: '/services/data/
|
|
39510
|
+
baseUri: '/services/data/v62.0',
|
|
39509
39511
|
basePath: '/ui-api/search-info/' + config.urlParams.objectApiName + '/lookup/' + config.urlParams.fieldApiName + '',
|
|
39510
39512
|
method: 'get',
|
|
39511
39513
|
body: null,
|
|
@@ -39824,7 +39826,7 @@
|
|
|
39824
39826
|
function createResourceRequest$f(config) {
|
|
39825
39827
|
const headers = {};
|
|
39826
39828
|
return {
|
|
39827
|
-
baseUri: '/services/data/
|
|
39829
|
+
baseUri: '/services/data/v62.0',
|
|
39828
39830
|
basePath: '/ui-api/search/results',
|
|
39829
39831
|
method: 'post',
|
|
39830
39832
|
body: config.body,
|
|
@@ -40027,7 +40029,7 @@
|
|
|
40027
40029
|
function createResourceRequest$e(config) {
|
|
40028
40030
|
const headers = {};
|
|
40029
40031
|
return {
|
|
40030
|
-
baseUri: '/services/data/
|
|
40032
|
+
baseUri: '/services/data/v62.0',
|
|
40031
40033
|
basePath: '/ui-api/search/results/keyword',
|
|
40032
40034
|
method: 'post',
|
|
40033
40035
|
body: config.body,
|
|
@@ -40267,7 +40269,7 @@
|
|
|
40267
40269
|
function createResourceRequest$d(config) {
|
|
40268
40270
|
const headers = {};
|
|
40269
40271
|
return {
|
|
40270
|
-
baseUri: '/services/data/
|
|
40272
|
+
baseUri: '/services/data/v62.0',
|
|
40271
40273
|
basePath: '/ui-api/records/batch',
|
|
40272
40274
|
method: 'post',
|
|
40273
40275
|
body: config.body,
|
|
@@ -40381,7 +40383,7 @@
|
|
|
40381
40383
|
function createResourceRequest$c(config) {
|
|
40382
40384
|
const headers = {};
|
|
40383
40385
|
return {
|
|
40384
|
-
baseUri: '/services/data/
|
|
40386
|
+
baseUri: '/services/data/v62.0',
|
|
40385
40387
|
basePath: '/ui-api/actions/perform-quick-action/' + config.urlParams.actionApiName + '',
|
|
40386
40388
|
method: 'patch',
|
|
40387
40389
|
body: config.body,
|
|
@@ -40501,7 +40503,7 @@
|
|
|
40501
40503
|
function createResourceRequest$b(config) {
|
|
40502
40504
|
const headers = {};
|
|
40503
40505
|
return {
|
|
40504
|
-
baseUri: '/services/data/
|
|
40506
|
+
baseUri: '/services/data/v62.0',
|
|
40505
40507
|
basePath: '/ui-api/actions/perform-quick-action/' + config.urlParams.actionApiName + '',
|
|
40506
40508
|
method: 'post',
|
|
40507
40509
|
body: config.body,
|
|
@@ -40603,7 +40605,7 @@
|
|
|
40603
40605
|
function createResourceRequest$a(config) {
|
|
40604
40606
|
const headers = {};
|
|
40605
40607
|
return {
|
|
40606
|
-
baseUri: '/services/data/
|
|
40608
|
+
baseUri: '/services/data/v62.0',
|
|
40607
40609
|
basePath: '/ui-api/layout/' + config.urlParams.objectApiName + '/user-state',
|
|
40608
40610
|
method: 'patch',
|
|
40609
40611
|
body: config.body,
|
|
@@ -41064,7 +41066,7 @@
|
|
|
41064
41066
|
function createResourceRequest$9(config) {
|
|
41065
41067
|
const headers = {};
|
|
41066
41068
|
return {
|
|
41067
|
-
baseUri: '/services/data/
|
|
41069
|
+
baseUri: '/services/data/v62.0',
|
|
41068
41070
|
basePath: '/ui-api/lookups/' + config.urlParams.objectApiName + '/' + config.urlParams.fieldApiName + '',
|
|
41069
41071
|
method: 'post',
|
|
41070
41072
|
body: config.body,
|
|
@@ -41288,7 +41290,7 @@
|
|
|
41288
41290
|
function createResourceRequest$8(config) {
|
|
41289
41291
|
const headers = {};
|
|
41290
41292
|
return {
|
|
41291
|
-
baseUri: '/services/data/
|
|
41293
|
+
baseUri: '/services/data/v62.0',
|
|
41292
41294
|
basePath: '/ui-api/record-avatars/' + config.urlParams.recordId + '/association',
|
|
41293
41295
|
method: 'post',
|
|
41294
41296
|
body: config.body,
|
|
@@ -41640,7 +41642,7 @@
|
|
|
41640
41642
|
function createResourceRequest$7(config) {
|
|
41641
41643
|
const headers = {};
|
|
41642
41644
|
return {
|
|
41643
|
-
baseUri: '/services/data/
|
|
41645
|
+
baseUri: '/services/data/v62.0',
|
|
41644
41646
|
basePath: '/ui-api/record-defaults/create/' + config.urlParams.objectApiName + '',
|
|
41645
41647
|
method: 'get',
|
|
41646
41648
|
body: null,
|
|
@@ -42171,7 +42173,7 @@
|
|
|
42171
42173
|
function createResourceRequest$6(config) {
|
|
42172
42174
|
const headers = {};
|
|
42173
42175
|
return {
|
|
42174
|
-
baseUri: '/services/data/
|
|
42176
|
+
baseUri: '/services/data/v62.0',
|
|
42175
42177
|
basePath: '/ui-api/record-defaults/template/clone/' + config.urlParams.recordId + '',
|
|
42176
42178
|
method: 'get',
|
|
42177
42179
|
body: null,
|
|
@@ -42702,7 +42704,7 @@
|
|
|
42702
42704
|
function createResourceRequest$5(config) {
|
|
42703
42705
|
const headers = {};
|
|
42704
42706
|
return {
|
|
42705
|
-
baseUri: '/services/data/
|
|
42707
|
+
baseUri: '/services/data/v62.0',
|
|
42706
42708
|
basePath: '/ui-api/record-defaults/template/create/' + config.urlParams.objectApiName + '',
|
|
42707
42709
|
method: 'get',
|
|
42708
42710
|
body: null,
|
|
@@ -42907,7 +42909,7 @@
|
|
|
42907
42909
|
function createResourceRequest$4(config) {
|
|
42908
42910
|
const headers = {};
|
|
42909
42911
|
return {
|
|
42910
|
-
baseUri: '/services/data/
|
|
42912
|
+
baseUri: '/services/data/v62.0',
|
|
42911
42913
|
basePath: '/ui-api/records',
|
|
42912
42914
|
method: 'post',
|
|
42913
42915
|
body: config.body,
|
|
@@ -42919,6 +42921,7 @@
|
|
|
42919
42921
|
}
|
|
42920
42922
|
|
|
42921
42923
|
const createRecord_ConfigPropertyMetadata = [
|
|
42924
|
+
generateParamConfigMetadata$2('handleOwnerChange', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
42922
42925
|
generateParamConfigMetadata$2('includeFieldsInBody', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
42923
42926
|
generateParamConfigMetadata$2('triggerOtherEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
42924
42927
|
generateParamConfigMetadata$2('triggerUserEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -42930,7 +42933,14 @@
|
|
|
42930
42933
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$13(createRecord_ConfigPropertyMetadata);
|
|
42931
42934
|
|
|
42932
42935
|
function onResponseSuccess(luvio, response, recordIngest, conflictMap) {
|
|
42933
|
-
const { body } = response;
|
|
42936
|
+
const { body, status } = response;
|
|
42937
|
+
if (status === HttpStatusCode$1.NoContent) {
|
|
42938
|
+
const syntheticSnapshot = {
|
|
42939
|
+
state: 'Fulfilled',
|
|
42940
|
+
data: {},
|
|
42941
|
+
};
|
|
42942
|
+
return luvio.storeBroadcast().then(() => syntheticSnapshot);
|
|
42943
|
+
}
|
|
42934
42944
|
const selections = buildSelectionFromRecord(body);
|
|
42935
42945
|
const key = keyBuilder$26(luvio, {
|
|
42936
42946
|
recordId: body.id,
|
|
@@ -43001,7 +43011,7 @@
|
|
|
43001
43011
|
function createResourceRequest$3(config) {
|
|
43002
43012
|
const headers = {};
|
|
43003
43013
|
return {
|
|
43004
|
-
baseUri: '/services/data/
|
|
43014
|
+
baseUri: '/services/data/v62.0',
|
|
43005
43015
|
basePath: '/ui-api/records/' + config.urlParams.recordId + '',
|
|
43006
43016
|
method: 'delete',
|
|
43007
43017
|
body: null,
|
|
@@ -43085,7 +43095,7 @@
|
|
|
43085
43095
|
headers['If-Unmodified-Since'] = header_ifUnmodifiedSince;
|
|
43086
43096
|
}
|
|
43087
43097
|
return {
|
|
43088
|
-
baseUri: '/services/data/
|
|
43098
|
+
baseUri: '/services/data/v62.0',
|
|
43089
43099
|
basePath: '/ui-api/records/' + config.urlParams.recordId + '',
|
|
43090
43100
|
method: 'patch',
|
|
43091
43101
|
body: config.body,
|
|
@@ -43099,6 +43109,7 @@
|
|
|
43099
43109
|
const adapterName$13 = 'updateRecord';
|
|
43100
43110
|
const updateRecord_ConfigPropertyMetadata = [
|
|
43101
43111
|
generateParamConfigMetadata$2('recordId', true, 0 /* UrlParameter */, 0 /* String */, false, getRecordId18),
|
|
43112
|
+
generateParamConfigMetadata$2('handleOwnerChange', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
43102
43113
|
generateParamConfigMetadata$2('triggerOtherEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
43103
43114
|
generateParamConfigMetadata$2('triggerUserEmail', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
43104
43115
|
generateParamConfigMetadata$2('useDefaultRule', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -43158,11 +43169,23 @@
|
|
|
43158
43169
|
return config;
|
|
43159
43170
|
}
|
|
43160
43171
|
|
|
43172
|
+
const ISO8601_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z$/;
|
|
43161
43173
|
function getHeaders(clientOptions) {
|
|
43162
43174
|
const headers = {};
|
|
43163
43175
|
if (untrustedIsObject$2(clientOptions)) {
|
|
43164
43176
|
if (typeof clientOptions.ifUnmodifiedSince === 'string') {
|
|
43165
43177
|
headers.ifUnmodifiedSince = clientOptions.ifUnmodifiedSince;
|
|
43178
|
+
// HTTP standard format date is expected by UI-API
|
|
43179
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
|
|
43180
|
+
// A component built for Connect API must use If-Unmodified-Since
|
|
43181
|
+
// dates formatted as ISO 8601, which does not match the HTTP spec.
|
|
43182
|
+
// For compatibility, convert the date to match the standard.
|
|
43183
|
+
if (headers.ifUnmodifiedSince.match(ISO8601_DATE_REGEX)) {
|
|
43184
|
+
const utcString = new Date(headers.ifUnmodifiedSince).toUTCString();
|
|
43185
|
+
if (utcString !== 'Invalid Date') {
|
|
43186
|
+
headers.ifUnmodifiedSince = utcString;
|
|
43187
|
+
}
|
|
43188
|
+
}
|
|
43166
43189
|
}
|
|
43167
43190
|
}
|
|
43168
43191
|
return headers;
|
|
@@ -43181,6 +43204,14 @@
|
|
|
43181
43204
|
const recordIngest = createRecordIngest(fieldTrie, optionalFieldTrie, conflictMap);
|
|
43182
43205
|
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
43183
43206
|
return luvio.handleSuccessResponse(() => {
|
|
43207
|
+
if (response.status === HttpStatusCode$1.NoContent) {
|
|
43208
|
+
const syntheticSnapshot = {
|
|
43209
|
+
state: 'Fulfilled',
|
|
43210
|
+
data: {},
|
|
43211
|
+
};
|
|
43212
|
+
luvio.storeEvict(keyBuilder$26(luvio, { recordId }));
|
|
43213
|
+
return luvio.storeBroadcast().then(() => syntheticSnapshot);
|
|
43214
|
+
}
|
|
43184
43215
|
const snapshot = ingestRecordResponse(luvio, response, recordId, recordIngest, conflictMap);
|
|
43185
43216
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
43186
43217
|
}, () => {
|
|
@@ -43348,7 +43379,7 @@
|
|
|
43348
43379
|
function createResourceRequest$1$1(config) {
|
|
43349
43380
|
const headers = {};
|
|
43350
43381
|
return {
|
|
43351
|
-
baseUri: '/services/data/
|
|
43382
|
+
baseUri: '/services/data/v62.0',
|
|
43352
43383
|
basePath: '/ui-api/records/content-documents/' +
|
|
43353
43384
|
config.urlParams.contentDocumentId +
|
|
43354
43385
|
'/content-versions',
|
|
@@ -43461,7 +43492,7 @@
|
|
|
43461
43492
|
function createResourceRequest$1c(config) {
|
|
43462
43493
|
const headers = {};
|
|
43463
43494
|
return {
|
|
43464
|
-
baseUri: '/services/data/
|
|
43495
|
+
baseUri: '/services/data/v62.0',
|
|
43465
43496
|
basePath: '/ui-api/records/content-documents/content-versions',
|
|
43466
43497
|
method: 'post',
|
|
43467
43498
|
body: config.body,
|
|
@@ -43794,7 +43825,7 @@
|
|
|
43794
43825
|
const getKeywordSearchResultsMetadata = { apiFamily: keyPrefix$2, name: adapterName$a, ttl: 200 };
|
|
43795
43826
|
const getLayoutMetadata = { apiFamily: keyPrefix$2, name: adapterName$J, ttl: 900000 };
|
|
43796
43827
|
const getLayoutUserStateMetadata = { apiFamily: keyPrefix$2, name: adapterName$I, ttl: 900000 };
|
|
43797
|
-
const getListInfoByNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$
|
|
43828
|
+
const getListInfoByNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$D, ttl: 900000 };
|
|
43798
43829
|
const getListInfosByNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$H };
|
|
43799
43830
|
const getListInfosByObjectNameMetadata = { apiFamily: keyPrefix$2, name: adapterName$G };
|
|
43800
43831
|
const getListObjectInfoMetadata = { apiFamily: keyPrefix$2, name: adapterName$B, ttl: 900000 };
|
|
@@ -43815,7 +43846,7 @@
|
|
|
43815
43846
|
const getQuickActionLayoutMetadata = { apiFamily: keyPrefix$2, name: adapterName$X, ttl: 900000 };
|
|
43816
43847
|
const getRecordMetadata = { apiFamily: keyPrefix$2, name: 'getRecord', ttl: 30000 };
|
|
43817
43848
|
const getRecordActionsMetadata = { apiFamily: keyPrefix$2, name: adapterName$R, ttl: 300000 };
|
|
43818
|
-
const getRecordAvatarsMetadata = { apiFamily: keyPrefix$2, name: adapterName$r, ttl:
|
|
43849
|
+
const getRecordAvatarsMetadata = { apiFamily: keyPrefix$2, name: adapterName$r, ttl: 1800000 };
|
|
43819
43850
|
const getRecordCreateDefaultsMetadata = { apiFamily: keyPrefix$2, name: 'getRecordCreateDefaults', ttl: 900000 };
|
|
43820
43851
|
const getRecordEditActionsMetadata = { apiFamily: keyPrefix$2, name: adapterName$Q, ttl: 300000 };
|
|
43821
43852
|
const getRecordTemplateCloneMetadata = { apiFamily: keyPrefix$2, name: 'getRecordTemplateClone', ttl: 1000 };
|
|
@@ -43902,7 +43933,7 @@
|
|
|
43902
43933
|
createContentVersion: unwrapSnapshotData(factory$j),
|
|
43903
43934
|
createListInfo: createLDSAdapter(luvio, adapterName$F, createListInfoAdapterFactory),
|
|
43904
43935
|
createRecord: unwrapSnapshotData(factory$4),
|
|
43905
|
-
deleteListInfo: createLDSAdapter(luvio, adapterName$
|
|
43936
|
+
deleteListInfo: createLDSAdapter(luvio, adapterName$E, deleteListInfoAdapterFactory),
|
|
43906
43937
|
deleteRecord: createLDSAdapter(luvio, 'deleteRecord', factory$3),
|
|
43907
43938
|
executeBatchRecordOperations: unwrapSnapshotData(factory$e),
|
|
43908
43939
|
getActionOverrides: createWireAdapterConstructor(luvio, getActionOverrides_ldsAdapter, getActionOverridesMetadata),
|
|
@@ -44190,7 +44221,7 @@
|
|
|
44190
44221
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44191
44222
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44192
44223
|
});
|
|
44193
|
-
// version: 1.
|
|
44224
|
+
// version: 1.291.0-79b8ea231
|
|
44194
44225
|
|
|
44195
44226
|
var ldsIdempotencyWriteDisabled = {
|
|
44196
44227
|
isOpen: function (e) {
|
|
@@ -44377,7 +44408,7 @@
|
|
|
44377
44408
|
const { isArray: isArray$5 } = Array;
|
|
44378
44409
|
const { entries: entries$4, keys: keys$8 } = Object;
|
|
44379
44410
|
|
|
44380
|
-
const UI_API_BASE_URI = '/services/data/
|
|
44411
|
+
const UI_API_BASE_URI = '/services/data/v62.0/ui-api';
|
|
44381
44412
|
|
|
44382
44413
|
let instrumentation$2 = {
|
|
44383
44414
|
aggregateUiChunkCount: (_cb) => { },
|
|
@@ -53409,6 +53440,32 @@
|
|
|
53409
53440
|
return ingestionTimestamp;
|
|
53410
53441
|
}
|
|
53411
53442
|
|
|
53443
|
+
// Code lifted from https://github.com/MaxArt2501/base64-js/blob/master/base64.js
|
|
53444
|
+
// base64 character set, plus padding character (=)
|
|
53445
|
+
const b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
53446
|
+
function btoaPolyfill(input) {
|
|
53447
|
+
let bitmap, a, b, c;
|
|
53448
|
+
let result = '', i = 0;
|
|
53449
|
+
const rest = input.length % 3; // To determine the final padding
|
|
53450
|
+
for (; i < input.length;) {
|
|
53451
|
+
if ((a = input.charCodeAt(i++)) > 255 ||
|
|
53452
|
+
(b = input.charCodeAt(i++)) > 255 ||
|
|
53453
|
+
(c = input.charCodeAt(i++)) > 255) {
|
|
53454
|
+
throw new TypeError('Failed base64ToAscii encoding: The string to be encoded contains characters outside of the Latin1 range. ' +
|
|
53455
|
+
input);
|
|
53456
|
+
}
|
|
53457
|
+
bitmap = (a << 16) | (b << 8) | c;
|
|
53458
|
+
result +=
|
|
53459
|
+
b64.charAt((bitmap >> 18) & 63) +
|
|
53460
|
+
b64.charAt((bitmap >> 12) & 63) +
|
|
53461
|
+
b64.charAt((bitmap >> 6) & 63) +
|
|
53462
|
+
b64.charAt(bitmap & 63);
|
|
53463
|
+
}
|
|
53464
|
+
// If there's need of padding, replace the last 'A's with equal signs
|
|
53465
|
+
return rest ? result.slice(0, rest - 3) + '==='.substring(rest) : result;
|
|
53466
|
+
}
|
|
53467
|
+
const base64encode = typeof btoa === 'function' ? btoa : btoaPolyfill;
|
|
53468
|
+
|
|
53412
53469
|
function findSpanningField(name) {
|
|
53413
53470
|
return (field) => {
|
|
53414
53471
|
return (field.apiName === name ||
|
|
@@ -53690,6 +53747,11 @@
|
|
|
53690
53747
|
return { recordRepresentation, ingestionTimestamp };
|
|
53691
53748
|
};
|
|
53692
53749
|
}
|
|
53750
|
+
else if (field.name === 'cursor') {
|
|
53751
|
+
field.resolve = function ({ index }) {
|
|
53752
|
+
return base64encode(`v1:${index}`);
|
|
53753
|
+
};
|
|
53754
|
+
}
|
|
53693
53755
|
}
|
|
53694
53756
|
}
|
|
53695
53757
|
if (isRecordType(type)) {
|
|
@@ -53906,10 +53968,11 @@
|
|
|
53906
53968
|
//map each sql result with the ingestion timestamp to pass it down a level
|
|
53907
53969
|
return results.rows
|
|
53908
53970
|
.map((row) => row[0])
|
|
53909
|
-
.map((record) => {
|
|
53971
|
+
.map((record, index) => {
|
|
53910
53972
|
return {
|
|
53911
53973
|
record,
|
|
53912
53974
|
ingestionTimestamp,
|
|
53975
|
+
index,
|
|
53913
53976
|
};
|
|
53914
53977
|
});
|
|
53915
53978
|
}
|
|
@@ -59756,7 +59819,7 @@
|
|
|
59756
59819
|
/**
|
|
59757
59820
|
* merge to paging url with different set of fields or optional fields as combined one
|
|
59758
59821
|
* the paging url is like
|
|
59759
|
-
* /services/data/
|
|
59822
|
+
* /services/data/v62.0/ui-api/related-list-records/001R0000006l1xKIAQ/Contacts
|
|
59760
59823
|
* ?fields=Id%2CName&optionalFields=Contact.Id%2CContact.Name&pageSize=50&pageToken=0
|
|
59761
59824
|
* @param path1 url path and query parmeter without domain
|
|
59762
59825
|
* @param path2 url path and query parmeter without domain
|
|
@@ -61876,7 +61939,7 @@
|
|
|
61876
61939
|
// so eslint doesn't complain about nimbus
|
|
61877
61940
|
/* global __nimbus */
|
|
61878
61941
|
// note this is automatically incremented by scripts/release/bump-api-version.js at each release
|
|
61879
|
-
const apiVersion = `
|
|
61942
|
+
const apiVersion = `v62.0`;
|
|
61880
61943
|
const batchEndPointPath = `/services/data/${apiVersion}/graphql/batch`;
|
|
61881
61944
|
const endPointPath = `/services/data/${apiVersion}/graphql`;
|
|
61882
61945
|
const batchObjectInfoEndpoint = `/services/data/${apiVersion}/ui-api/object-info/batch`;
|
|
@@ -62058,6 +62121,20 @@
|
|
|
62058
62121
|
async writeBatch(records, overwrite) {
|
|
62059
62122
|
const idsToPrime = new Set();
|
|
62060
62123
|
const written = [];
|
|
62124
|
+
if (overwrite === true) {
|
|
62125
|
+
// if overwrite is true we need to raise change notifications so use the batchOperations
|
|
62126
|
+
const operations = {};
|
|
62127
|
+
for (const { record, metadata } of records) {
|
|
62128
|
+
const key = keyBuilder$26(this.getLuvio(), { recordId: record.id });
|
|
62129
|
+
idsToPrime.add(record.id);
|
|
62130
|
+
operations[key] = {
|
|
62131
|
+
data: record,
|
|
62132
|
+
metadata: { ...metadata, metadataVersion: DURABLE_METADATA_VERSION },
|
|
62133
|
+
};
|
|
62134
|
+
}
|
|
62135
|
+
await this.store.setEntries(operations, DefaultDurableSegment);
|
|
62136
|
+
return { written: Array.from(idsToPrime), conflicted: [], errors: [] };
|
|
62137
|
+
}
|
|
62061
62138
|
const statement = `${overwrite ? 'REPLACE' : 'INSERT or IGNORE'} INTO lds_data (key, data, metadata) VALUES ${records
|
|
62062
62139
|
.map((_) => `(?,?,?)`)
|
|
62063
62140
|
.join(',')} returning key;`;
|
|
@@ -62423,7 +62500,7 @@
|
|
|
62423
62500
|
id: '@salesforce/lds-network-adapter',
|
|
62424
62501
|
instrument: instrument$2,
|
|
62425
62502
|
});
|
|
62426
|
-
// version: 1.
|
|
62503
|
+
// version: 1.291.0-8df6969f6
|
|
62427
62504
|
|
|
62428
62505
|
const { create: create$3, keys: keys$3 } = Object;
|
|
62429
62506
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -81140,7 +81217,7 @@
|
|
|
81140
81217
|
function createResourceRequest$2(config) {
|
|
81141
81218
|
const headers = {};
|
|
81142
81219
|
return {
|
|
81143
|
-
baseUri: '/services/data/
|
|
81220
|
+
baseUri: '/services/data/v62.0',
|
|
81144
81221
|
basePath: '/graphql',
|
|
81145
81222
|
method: 'post',
|
|
81146
81223
|
body: { ...config.body,
|
|
@@ -81531,7 +81608,7 @@
|
|
|
81531
81608
|
const headers = {};
|
|
81532
81609
|
const transformedConfig = stripDocumentsOfMetaschema(config);
|
|
81533
81610
|
return {
|
|
81534
|
-
baseUri: '/services/data/
|
|
81611
|
+
baseUri: '/services/data/v62.0',
|
|
81535
81612
|
basePath: '/graphql/batch',
|
|
81536
81613
|
method: 'post',
|
|
81537
81614
|
body: transformedConfig.body,
|
|
@@ -82487,7 +82564,7 @@
|
|
|
82487
82564
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
82488
82565
|
instrument: instrument$1,
|
|
82489
82566
|
});
|
|
82490
|
-
// version: 1.
|
|
82567
|
+
// version: 1.291.0-79b8ea231
|
|
82491
82568
|
|
|
82492
82569
|
// On core the unstable adapters are re-exported with different names,
|
|
82493
82570
|
// we want to match them here.
|
|
@@ -84526,7 +84603,7 @@
|
|
|
84526
84603
|
function buildNetworkSnapshot(luvio, config, fragment, options) {
|
|
84527
84604
|
const { variables: queryVariables, query } = config;
|
|
84528
84605
|
const request = {
|
|
84529
|
-
baseUri: '/services/data/
|
|
84606
|
+
baseUri: '/services/data/v62.0',
|
|
84530
84607
|
basePath: '/graphql',
|
|
84531
84608
|
method: 'post',
|
|
84532
84609
|
priority: 'normal',
|
|
@@ -84743,7 +84820,7 @@
|
|
|
84743
84820
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
84744
84821
|
graphQLImperative = ldsAdapter;
|
|
84745
84822
|
});
|
|
84746
|
-
// version: 1.
|
|
84823
|
+
// version: 1.291.0-79b8ea231
|
|
84747
84824
|
|
|
84748
84825
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
84749
84826
|
__proto__: null,
|
|
@@ -85481,7 +85558,7 @@
|
|
|
85481
85558
|
function register(r) {
|
|
85482
85559
|
callbacks$1.forEach((callback) => callback(r));
|
|
85483
85560
|
}
|
|
85484
|
-
// version: 1.
|
|
85561
|
+
// version: 1.291.0-8df6969f6
|
|
85485
85562
|
|
|
85486
85563
|
/**
|
|
85487
85564
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -90462,4 +90539,4 @@
|
|
|
90462
90539
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
90463
90540
|
|
|
90464
90541
|
}));
|
|
90465
|
-
// version: 1.
|
|
90542
|
+
// version: 1.291.0-8df6969f6
|