@salesforce/lds-worker-api 1.465.0 → 1.466.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.
|
@@ -1426,4 +1426,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
1428
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToMergeAndMetadata, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1429
|
-
// version: 1.
|
|
1429
|
+
// version: 1.466.0-b7b08a8e3c
|
|
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
callbacks.push(callback);
|
|
4278
4278
|
}
|
|
4279
|
-
// version: 1.
|
|
4279
|
+
// version: 1.466.0-b7b08a8e3c
|
|
4280
4280
|
|
|
4281
4281
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4282
4282
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5320,7 +5320,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5320
5320
|
const { apiFamily, name } = metadata;
|
|
5321
5321
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5322
5322
|
}
|
|
5323
|
-
// version: 1.
|
|
5323
|
+
// version: 1.466.0-b7b08a8e3c
|
|
5324
5324
|
|
|
5325
5325
|
function isSupportedEntity(_objectApiName) {
|
|
5326
5326
|
return true;
|
|
@@ -14373,7 +14373,7 @@ function coerceFormFactor$1(form) {
|
|
|
14373
14373
|
return undefined;
|
|
14374
14374
|
}
|
|
14375
14375
|
|
|
14376
|
-
const VERSION$10$2 = "
|
|
14376
|
+
const VERSION$10$2 = "c42f4294edf6efc71f5ff9b9adf922e8";
|
|
14377
14377
|
const RepresentationType$G = 'PlatformActionRepresentation';
|
|
14378
14378
|
function keyBuilder$1P$1(luvio, config) {
|
|
14379
14379
|
return keyPrefix$3 + '::' + RepresentationType$G + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
|
|
@@ -14433,6 +14433,11 @@ const select$1G$2 = function PlatformActionRepresentationSelect() {
|
|
|
14433
14433
|
name: 'lwcComponent',
|
|
14434
14434
|
kind: 'Scalar'
|
|
14435
14435
|
},
|
|
14436
|
+
{
|
|
14437
|
+
name: 'modalSize',
|
|
14438
|
+
kind: 'Scalar',
|
|
14439
|
+
required: false
|
|
14440
|
+
},
|
|
14436
14441
|
{
|
|
14437
14442
|
name: 'primaryColor',
|
|
14438
14443
|
kind: 'Scalar'
|
|
@@ -14533,6 +14538,19 @@ function equals$S(existing, incoming) {
|
|
|
14533
14538
|
if (!(existing_lwcComponent === incoming_lwcComponent)) {
|
|
14534
14539
|
return false;
|
|
14535
14540
|
}
|
|
14541
|
+
const existing_modalSize = existing.modalSize;
|
|
14542
|
+
const incoming_modalSize = incoming.modalSize;
|
|
14543
|
+
// if at least one of these optionals is defined
|
|
14544
|
+
if (existing_modalSize !== undefined || incoming_modalSize !== undefined) {
|
|
14545
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
14546
|
+
// not equal
|
|
14547
|
+
if (existing_modalSize === undefined || incoming_modalSize === undefined) {
|
|
14548
|
+
return false;
|
|
14549
|
+
}
|
|
14550
|
+
if (!(existing_modalSize === incoming_modalSize)) {
|
|
14551
|
+
return false;
|
|
14552
|
+
}
|
|
14553
|
+
}
|
|
14536
14554
|
const existing_primaryColor = existing.primaryColor;
|
|
14537
14555
|
const incoming_primaryColor = incoming.primaryColor;
|
|
14538
14556
|
if (!(existing_primaryColor === incoming_primaryColor)) {
|
|
@@ -32547,7 +32565,7 @@ withDefaultLuvio((luvio) => {
|
|
|
32547
32565
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32548
32566
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32549
32567
|
});
|
|
32550
|
-
// version: 1.
|
|
32568
|
+
// version: 1.466.0-ba624febc8
|
|
32551
32569
|
|
|
32552
32570
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32553
32571
|
isOpen: function (e) {
|
|
@@ -83075,47 +83093,41 @@ var DateLiteral;
|
|
|
83075
83093
|
DateLiteral["YESTERDAY"] = "YESTERDAY";
|
|
83076
83094
|
DateLiteral["NEXT_WEEK"] = "NEXT_WEEK";
|
|
83077
83095
|
})(DateLiteral || (DateLiteral = {}));
|
|
83078
|
-
// ranged adjusted to be between now and the end of the day,
|
|
83079
|
-
// you cannot do a straight = comparison in SQL
|
|
83080
83096
|
const TODAY_RANGE = {
|
|
83081
83097
|
lowerBound: `date('now')`,
|
|
83082
|
-
upperBound: `
|
|
83098
|
+
upperBound: `datetime('now', 'start of day', '+1 day', '-1 seconds')`,
|
|
83083
83099
|
};
|
|
83084
|
-
// ranged adjusted to be between today +1 day and +2 days -.001 seconds to be the very end of tomorrows date
|
|
83085
|
-
// you cannot do a straight = comparison in SQL
|
|
83086
83100
|
const TOMORROW_RANGE = {
|
|
83087
83101
|
lowerBound: `date('now', '+1 day')`,
|
|
83088
|
-
upperBound: `
|
|
83102
|
+
upperBound: `datetime('now', 'start of day', '+2 days', '-1 seconds')`,
|
|
83089
83103
|
};
|
|
83090
83104
|
const YESTERDAY_RANGE = {
|
|
83091
83105
|
lowerBound: `date('now', '-1 day')`,
|
|
83092
|
-
upperBound: `
|
|
83106
|
+
upperBound: `datetime('now', 'start of day', '-1 seconds')`,
|
|
83093
83107
|
};
|
|
83094
83108
|
const THIS_WEEK_RANGE = {
|
|
83095
|
-
lowerBound: `date('now', '
|
|
83096
|
-
upperBound: `
|
|
83109
|
+
lowerBound: `date('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}')`,
|
|
83110
|
+
upperBound: `datetime('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '+7 days', '-1 seconds')`,
|
|
83097
83111
|
};
|
|
83098
83112
|
const LAST_WEEK_RANGE = {
|
|
83099
|
-
lowerBound: `date('now', 'weekday
|
|
83100
|
-
upperBound: `
|
|
83113
|
+
lowerBound: `date('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '-7 days')`,
|
|
83114
|
+
upperBound: `datetime('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '-1 seconds')`,
|
|
83101
83115
|
};
|
|
83102
83116
|
const NEXT_WEEK_RANGE = {
|
|
83103
|
-
lowerBound: `date('now', 'weekday
|
|
83104
|
-
upperBound: `
|
|
83117
|
+
lowerBound: `date('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '+7 days')`,
|
|
83118
|
+
upperBound: `datetime('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '+14 days', '-1 seconds')`,
|
|
83105
83119
|
};
|
|
83106
83120
|
const THIS_MONTH_RANGE = {
|
|
83107
83121
|
lowerBound: `date('now', 'start of month')`,
|
|
83108
|
-
upperBound: `
|
|
83122
|
+
upperBound: `datetime('now', 'start of month', '+1 month', '-1 seconds')`,
|
|
83109
83123
|
};
|
|
83110
83124
|
const LAST_MONTH_RANGE = {
|
|
83111
83125
|
lowerBound: `date('now', 'start of month', '-1 month')`,
|
|
83112
|
-
upperBound: `
|
|
83126
|
+
upperBound: `datetime('now', 'start of month', '-1 seconds')`,
|
|
83113
83127
|
};
|
|
83114
83128
|
const NEXT_MONTH_RANGE = {
|
|
83115
83129
|
lowerBound: `date('now', 'start of month', '+1 month')`,
|
|
83116
|
-
|
|
83117
|
-
// this needs to be 0 day
|
|
83118
|
-
upperBound: `date('now', 'start of month', '+2 month', '0 day')`,
|
|
83130
|
+
upperBound: `datetime('now', 'start of month', '+2 months', '-1 seconds')`,
|
|
83119
83131
|
};
|
|
83120
83132
|
const THIS_QUARTER_RANGE = () => {
|
|
83121
83133
|
return computeQuarterDateRange(DateLiteral.THIS_QUARTER);
|
|
@@ -83128,23 +83140,23 @@ const NEXT_QUARTER_RANGE = () => {
|
|
|
83128
83140
|
};
|
|
83129
83141
|
const THIS_YEAR_RANGE = {
|
|
83130
83142
|
lowerBound: `date('now', 'start of year')`,
|
|
83131
|
-
upperBound: `
|
|
83143
|
+
upperBound: `datetime('now', 'start of year', '+1 year', '-1 seconds')`,
|
|
83132
83144
|
};
|
|
83133
83145
|
const LAST_YEAR_RANGE = {
|
|
83134
83146
|
lowerBound: `date('now', 'start of year', '-1 year')`,
|
|
83135
|
-
upperBound: `
|
|
83147
|
+
upperBound: `datetime('now', 'start of year', '-1 seconds')`,
|
|
83136
83148
|
};
|
|
83137
83149
|
const NEXT_YEAR_RANGE = {
|
|
83138
83150
|
lowerBound: `date('now', 'start of year', '+1 year')`,
|
|
83139
|
-
upperBound: `
|
|
83151
|
+
upperBound: `datetime('now', 'start of year', '+2 years', '-1 seconds')`,
|
|
83140
83152
|
};
|
|
83141
83153
|
const LAST_90_DAYS_RANGE = {
|
|
83142
83154
|
lowerBound: `date('now', '-90 days')`,
|
|
83143
|
-
upperBound: `
|
|
83155
|
+
upperBound: `datetime('now')`,
|
|
83144
83156
|
};
|
|
83145
83157
|
const NEXT_90_DAYS_RANGE = {
|
|
83146
83158
|
lowerBound: `date('now', '+1 day')`,
|
|
83147
|
-
upperBound: `
|
|
83159
|
+
upperBound: `datetime('now', 'start of day', '+91 days', '-1 seconds')`,
|
|
83148
83160
|
};
|
|
83149
83161
|
// querter start date in UTC
|
|
83150
83162
|
function quarterStart(date) {
|
|
@@ -83158,23 +83170,17 @@ function computeQuarterDateRange(enumType) {
|
|
|
83158
83170
|
case DateLiteral.LAST_QUARTER:
|
|
83159
83171
|
return {
|
|
83160
83172
|
lowerBound: `date('${curQuarterStart}', '-3 months')`,
|
|
83161
|
-
|
|
83162
|
-
// 0 days sets it to the end of the month
|
|
83163
|
-
upperBound: `date('${curQuarterStart}', '0 days')`,
|
|
83173
|
+
upperBound: `datetime('${curQuarterStart}', '-1 seconds')`,
|
|
83164
83174
|
};
|
|
83165
83175
|
case DateLiteral.THIS_QUARTER:
|
|
83166
83176
|
return {
|
|
83167
83177
|
lowerBound: `date('${curQuarterStart}')`,
|
|
83168
|
-
|
|
83169
|
-
// 0 days sets it to the end of the month
|
|
83170
|
-
upperBound: `date('${curQuarterStart}', '3 months', '0 days')`,
|
|
83178
|
+
upperBound: `datetime('${curQuarterStart}', '+3 months', '-1 seconds')`,
|
|
83171
83179
|
};
|
|
83172
83180
|
case DateLiteral.NEXT_QUARTER:
|
|
83173
83181
|
return {
|
|
83174
83182
|
lowerBound: `date('${curQuarterStart}', '+3 months')`,
|
|
83175
|
-
|
|
83176
|
-
// 0 days sets it to the end of the month
|
|
83177
|
-
upperBound: `date('${curQuarterStart}', '+6 months', '0 days')`,
|
|
83183
|
+
upperBound: `datetime('${curQuarterStart}', '+6 months', '-1 seconds')`,
|
|
83178
83184
|
};
|
|
83179
83185
|
}
|
|
83180
83186
|
}
|
|
@@ -83393,11 +83399,11 @@ function dateRangesFrom(dateRange, input, dateFunction) {
|
|
|
83393
83399
|
case DateRange.next_n_days: {
|
|
83394
83400
|
return {
|
|
83395
83401
|
binding: {
|
|
83396
|
-
upper: `${input} days`,
|
|
83402
|
+
upper: `${input + 1} days`,
|
|
83397
83403
|
lower: '1 days',
|
|
83398
83404
|
},
|
|
83399
83405
|
range: {
|
|
83400
|
-
upper: `${dateFunction}('now', 'start of day',
|
|
83406
|
+
upper: `${dateFunction}('now', 'start of day', ?, '-1 seconds')`,
|
|
83401
83407
|
lower: `${dateFunction}('now', 'start of day', ?)`,
|
|
83402
83408
|
},
|
|
83403
83409
|
};
|
|
@@ -83434,19 +83440,14 @@ function dateRangesFrom(dateRange, input, dateFunction) {
|
|
|
83434
83440
|
// starts at 00:00:00 the first day of the week n weeks after the current week
|
|
83435
83441
|
// ends 23:59:59 of the last day of week before the current
|
|
83436
83442
|
case DateRange.next_n_weeks: {
|
|
83437
|
-
const isStartOfWeek = isTodayStartOfWeek();
|
|
83438
83443
|
return {
|
|
83439
83444
|
binding: {
|
|
83440
|
-
|
|
83441
|
-
|
|
83442
|
-
// so for the upper bound if today is the start of the week we need to add 7 more days to the value to get next week as the start
|
|
83443
|
-
upper: `${input * 7 + (isStartOfWeek ? 7 : 0)} days`,
|
|
83444
|
-
//lower bound starts out 00:00:00 of next week
|
|
83445
|
-
lower: `${isStartOfWeek ? 7 : 0} days`,
|
|
83445
|
+
upper: `${(input + 1) * 7} days`,
|
|
83446
|
+
lower: '7 days',
|
|
83446
83447
|
},
|
|
83447
83448
|
range: {
|
|
83448
|
-
upper: `${dateFunction}('now', '
|
|
83449
|
-
lower: `${dateFunction}('now', '
|
|
83449
|
+
upper: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?, '-1 seconds')`,
|
|
83450
|
+
lower: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?)`,
|
|
83450
83451
|
},
|
|
83451
83452
|
};
|
|
83452
83453
|
}
|
|
@@ -83454,19 +83455,14 @@ function dateRangesFrom(dateRange, input, dateFunction) {
|
|
|
83454
83455
|
// starts at 00:00:00 of day 0 n weeks before the current week
|
|
83455
83456
|
// ends 23:59:59 at last day of the week before the current week
|
|
83456
83457
|
case DateRange.last_n_weeks: {
|
|
83457
|
-
const isStartOfWeek = isTodayStartOfWeek();
|
|
83458
83458
|
return {
|
|
83459
83459
|
binding: {
|
|
83460
|
-
|
|
83461
|
-
|
|
83462
|
-
upper: `${-(isStartOfWeek ? 0 : 7)} days`,
|
|
83463
|
-
// starting on 00:00:00 of n * weeks before current week
|
|
83464
|
-
// -7 more days if today not the start of the week because weekday FIRST_DAY_OF_WEEK puts us next week day 0
|
|
83465
|
-
lower: `${-input * 7 - (isStartOfWeek ? 0 : 7)} days`,
|
|
83460
|
+
upper: '0 days',
|
|
83461
|
+
lower: `${-input * 7} days`,
|
|
83466
83462
|
},
|
|
83467
83463
|
range: {
|
|
83468
|
-
upper: `${dateFunction}('now', '
|
|
83469
|
-
lower: `${dateFunction}('now', '
|
|
83464
|
+
upper: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?, '-1 seconds')`,
|
|
83465
|
+
lower: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?)`,
|
|
83470
83466
|
},
|
|
83471
83467
|
};
|
|
83472
83468
|
}
|
|
@@ -83474,21 +83470,14 @@ function dateRangesFrom(dateRange, input, dateFunction) {
|
|
|
83474
83470
|
// starts 00:00:00 on day 0 of n weeks before the current week
|
|
83475
83471
|
// ends 7 days after the start
|
|
83476
83472
|
case DateRange.n_weeks_ago: {
|
|
83477
|
-
const isStartOfWeek = isTodayStartOfWeek();
|
|
83478
83473
|
return {
|
|
83479
83474
|
binding: {
|
|
83480
|
-
|
|
83481
|
-
|
|
83482
|
-
// so add 7 to remove a week from -(n)
|
|
83483
|
-
upper: `${-input * 7 + (isStartOfWeek ? 7 : 0)} days`,
|
|
83484
|
-
// start of the week n weeks from the current week
|
|
83485
|
-
// if today is the start of the week then -(n) will do to be the previous week, but
|
|
83486
|
-
// if today is not the start of the week we need to go back 1 more week since weekday FIRST_DAY_OF_WEEK will put us next week
|
|
83487
|
-
lower: `${-input * 7 - (isStartOfWeek ? 0 : 7)} days`,
|
|
83475
|
+
upper: `${-input * 7 + 7} days`,
|
|
83476
|
+
lower: `${-input * 7} days`,
|
|
83488
83477
|
},
|
|
83489
83478
|
range: {
|
|
83490
|
-
upper: `${dateFunction}('now', '
|
|
83491
|
-
lower: `${dateFunction}('now', '
|
|
83479
|
+
upper: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?, '-1 seconds')`,
|
|
83480
|
+
lower: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?)`,
|
|
83492
83481
|
},
|
|
83493
83482
|
};
|
|
83494
83483
|
}
|
|
@@ -83638,9 +83627,6 @@ function dateRangesFrom(dateRange, input, dateFunction) {
|
|
|
83638
83627
|
throw new Error(`DateRangeInput ${dateRange} is not supported in local evalutation`);
|
|
83639
83628
|
}
|
|
83640
83629
|
}
|
|
83641
|
-
function isTodayStartOfWeek() {
|
|
83642
|
-
return new Date().getDay() === FIRST_DAY_OF_WEEK;
|
|
83643
|
-
}
|
|
83644
83630
|
|
|
83645
83631
|
const JSON_EXTRACT_PATH_INGESTION_TIMESTAMP = '$.ingestionTimestamp';
|
|
83646
83632
|
const JSON_EXTRACT_PATH_INGESTION_APINAME = '$.apiName';
|
|
@@ -95765,13 +95751,17 @@ function buildServiceDescriptor$m() {
|
|
|
95765
95751
|
};
|
|
95766
95752
|
}
|
|
95767
95753
|
|
|
95768
|
-
function applyOperationRequestOptions$
|
|
95769
|
-
if (operationType === void 0) {
|
|
95754
|
+
function applyOperationRequestOptions$3(init, operationType, requestOptions) {
|
|
95755
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
95770
95756
|
return init;
|
|
95771
95757
|
}
|
|
95772
95758
|
return {
|
|
95773
95759
|
...init,
|
|
95774
|
-
onestore: {
|
|
95760
|
+
onestore: {
|
|
95761
|
+
...requestOptions,
|
|
95762
|
+
...init?.onestore,
|
|
95763
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
95764
|
+
}
|
|
95775
95765
|
};
|
|
95776
95766
|
}
|
|
95777
95767
|
class AuraNetworkCommand extends NetworkCommand$1 {
|
|
@@ -95804,6 +95794,10 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
95804
95794
|
get operationType() {
|
|
95805
95795
|
return void 0;
|
|
95806
95796
|
}
|
|
95797
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides. HTTP fallback only. */
|
|
95798
|
+
get requestOptions() {
|
|
95799
|
+
return void 0;
|
|
95800
|
+
}
|
|
95807
95801
|
coerceAuraErrors(auraErrors) {
|
|
95808
95802
|
const response = getFetchResponseFromAuraError(auraErrors[0]);
|
|
95809
95803
|
return new UserVisibleError(
|
|
@@ -95910,7 +95904,11 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
95910
95904
|
);
|
|
95911
95905
|
} else if (this.shouldUseFetch()) {
|
|
95912
95906
|
const [input, init] = this.fetchParams;
|
|
95913
|
-
const initWithOptions = applyOperationRequestOptions$
|
|
95907
|
+
const initWithOptions = applyOperationRequestOptions$3(
|
|
95908
|
+
init,
|
|
95909
|
+
this.operationType,
|
|
95910
|
+
this.requestOptions
|
|
95911
|
+
);
|
|
95914
95912
|
try {
|
|
95915
95913
|
const fetchCall = initWithOptions === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithOptions);
|
|
95916
95914
|
return this.convertFetchResponseToData(fetchCall);
|
|
@@ -96478,6 +96476,19 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
|
|
|
96478
96476
|
};
|
|
96479
96477
|
}
|
|
96480
96478
|
|
|
96479
|
+
function applyOperationRequestOptions$2(init, operationType, requestOptions) {
|
|
96480
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96481
|
+
return init;
|
|
96482
|
+
}
|
|
96483
|
+
return {
|
|
96484
|
+
...init,
|
|
96485
|
+
onestore: {
|
|
96486
|
+
...requestOptions,
|
|
96487
|
+
...init?.onestore,
|
|
96488
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96489
|
+
}
|
|
96490
|
+
};
|
|
96491
|
+
}
|
|
96481
96492
|
class AuraCacheControlCommand extends CacheControlCommand {
|
|
96482
96493
|
constructor(services) {
|
|
96483
96494
|
super(services);
|
|
@@ -96495,6 +96506,20 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
96495
96506
|
"Fetch parameters must be specified when using HTTP transport on an Aura adapter"
|
|
96496
96507
|
);
|
|
96497
96508
|
}
|
|
96509
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides. HTTP fallback only. */
|
|
96510
|
+
get requestOptions() {
|
|
96511
|
+
return void 0;
|
|
96512
|
+
}
|
|
96513
|
+
/**
|
|
96514
|
+
* `params` with request options merged into `init.onestore` (see `applyOperationRequestOptions`).
|
|
96515
|
+
* `retrySafe` follows `operationType` (default `'query'`): hand-written writes must override it.
|
|
96516
|
+
*/
|
|
96517
|
+
withRequestOptions([
|
|
96518
|
+
input,
|
|
96519
|
+
init
|
|
96520
|
+
]) {
|
|
96521
|
+
return [input, applyOperationRequestOptions$2(init, this.operationType, this.requestOptions)];
|
|
96522
|
+
}
|
|
96498
96523
|
shouldUseAuraNetwork() {
|
|
96499
96524
|
return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
|
|
96500
96525
|
}
|
|
@@ -96513,7 +96538,7 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
96513
96538
|
(errs) => this.coerceAuraErrors(errs)
|
|
96514
96539
|
);
|
|
96515
96540
|
} else if (this.shouldUseFetch()) {
|
|
96516
|
-
const params = this.fetchParams;
|
|
96541
|
+
const params = this.withRequestOptions(this.fetchParams);
|
|
96517
96542
|
try {
|
|
96518
96543
|
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
96519
96544
|
} catch (reason) {
|
|
@@ -96660,13 +96685,17 @@ class NetworkCommand extends BaseCommand {
|
|
|
96660
96685
|
async afterRequestHooks(_options) {
|
|
96661
96686
|
}
|
|
96662
96687
|
}
|
|
96663
|
-
function applyOperationRequestOptions(init, operationType) {
|
|
96664
|
-
if (operationType === void 0) {
|
|
96688
|
+
function applyOperationRequestOptions$1(init, operationType, requestOptions) {
|
|
96689
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96665
96690
|
return init;
|
|
96666
96691
|
}
|
|
96667
96692
|
return {
|
|
96668
96693
|
...init,
|
|
96669
|
-
onestore: {
|
|
96694
|
+
onestore: {
|
|
96695
|
+
...requestOptions,
|
|
96696
|
+
...init?.onestore,
|
|
96697
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96698
|
+
}
|
|
96670
96699
|
};
|
|
96671
96700
|
}
|
|
96672
96701
|
function isAbortableCommand(command) {
|
|
@@ -96747,11 +96776,19 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
96747
96776
|
get operationType() {
|
|
96748
96777
|
return void 0;
|
|
96749
96778
|
}
|
|
96779
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides (`generateRequestOptionsGetter`). */
|
|
96780
|
+
get requestOptions() {
|
|
96781
|
+
return void 0;
|
|
96782
|
+
}
|
|
96750
96783
|
fetch(contextSeed) {
|
|
96751
96784
|
try {
|
|
96752
96785
|
const [input, init] = this.fetchParams;
|
|
96753
96786
|
const operationType = this.operationType;
|
|
96754
|
-
const initWithOptions = applyOperationRequestOptions(
|
|
96787
|
+
const initWithOptions = applyOperationRequestOptions$1(
|
|
96788
|
+
init,
|
|
96789
|
+
operationType,
|
|
96790
|
+
this.requestOptions
|
|
96791
|
+
);
|
|
96755
96792
|
const seed = operationType === void 0 ? contextSeed : { operationType, ...contextSeed };
|
|
96756
96793
|
const initWithSeed = seed === void 0 ? initWithOptions : { ...initWithOptions, __contextSeed: seed };
|
|
96757
96794
|
const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
|
|
@@ -96826,6 +96863,19 @@ function buildServiceDescriptor$j() {
|
|
|
96826
96863
|
};
|
|
96827
96864
|
}
|
|
96828
96865
|
|
|
96866
|
+
function applyOperationRequestOptions(init, operationType, requestOptions) {
|
|
96867
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96868
|
+
return init;
|
|
96869
|
+
}
|
|
96870
|
+
return {
|
|
96871
|
+
...init,
|
|
96872
|
+
onestore: {
|
|
96873
|
+
...requestOptions,
|
|
96874
|
+
...init?.onestore,
|
|
96875
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96876
|
+
}
|
|
96877
|
+
};
|
|
96878
|
+
}
|
|
96829
96879
|
class HttpCacheControlCommand extends CacheControlCommand {
|
|
96830
96880
|
constructor(services) {
|
|
96831
96881
|
super(services);
|
|
@@ -96835,9 +96885,25 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
96835
96885
|
requestFromNetwork() {
|
|
96836
96886
|
return this.fetch();
|
|
96837
96887
|
}
|
|
96888
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides. */
|
|
96889
|
+
get requestOptions() {
|
|
96890
|
+
return void 0;
|
|
96891
|
+
}
|
|
96892
|
+
/**
|
|
96893
|
+
* `params` with request options merged into `init.onestore` (see `applyOperationRequestOptions`).
|
|
96894
|
+
* `retrySafe` follows `operationType` (default `'query'`): hand-written writes must override it.
|
|
96895
|
+
*/
|
|
96896
|
+
withRequestOptions([
|
|
96897
|
+
input,
|
|
96898
|
+
init
|
|
96899
|
+
]) {
|
|
96900
|
+
return [input, applyOperationRequestOptions(init, this.operationType, this.requestOptions)];
|
|
96901
|
+
}
|
|
96838
96902
|
fetch() {
|
|
96839
96903
|
try {
|
|
96840
|
-
return this.convertFetchResponseToData(
|
|
96904
|
+
return this.convertFetchResponseToData(
|
|
96905
|
+
this.services.fetch(...this.withRequestOptions(this.fetchParams))
|
|
96906
|
+
);
|
|
96841
96907
|
} catch (reason) {
|
|
96842
96908
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
96843
96909
|
}
|
|
@@ -97847,7 +97913,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
97847
97913
|
},
|
|
97848
97914
|
};
|
|
97849
97915
|
}
|
|
97850
|
-
// version: 1.
|
|
97916
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97851
97917
|
|
|
97852
97918
|
/**
|
|
97853
97919
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97873,7 +97939,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
97873
97939
|
},
|
|
97874
97940
|
};
|
|
97875
97941
|
}
|
|
97876
|
-
// version: 1.
|
|
97942
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97877
97943
|
|
|
97878
97944
|
function findExecutableOperation$1(input) {
|
|
97879
97945
|
const operations = input.query.definitions.filter(
|
|
@@ -98070,7 +98136,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
98070
98136
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98071
98137
|
});
|
|
98072
98138
|
} else if (this.shouldUseFetch()) {
|
|
98073
|
-
const params = this.originalFetchParams;
|
|
98139
|
+
const params = this.withRequestOptions(this.originalFetchParams);
|
|
98074
98140
|
try {
|
|
98075
98141
|
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
98076
98142
|
(result) => {
|
|
@@ -98225,7 +98291,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
98225
98291
|
}
|
|
98226
98292
|
runOriginalRequest() {
|
|
98227
98293
|
return this.convertFetchResponseToData(
|
|
98228
|
-
this.services.fetch(...this.originalFetchParams)
|
|
98294
|
+
this.services.fetch(...this.withRequestOptions(this.originalFetchParams))
|
|
98229
98295
|
).then((result) => {
|
|
98230
98296
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98231
98297
|
});
|
|
@@ -100285,10 +100351,6 @@ function initializeOneStore(sqliteStore, luvio) {
|
|
|
100285
100351
|
const instrumentationServiceDescriptor = buildServiceDescriptor$e(loggerService);
|
|
100286
100352
|
const nimbusSqliteOneStoreCacheServiceDescriptor = buildNimbusDurableCacheInclusionPolicyService(cacheServiceDescriptor.service, new NimbusSqliteOneStoreCache(sqliteStore));
|
|
100287
100353
|
const featureFlagsServiceDescriptor = buildServiceDescriptor$c();
|
|
100288
|
-
const featureFlagsService = featureFlagsServiceDescriptor.service;
|
|
100289
|
-
// This disables the GraphQL mapping from lightning/uiGraphQLApi to lightning/graphql in this runtime
|
|
100290
|
-
// The gate is likely NOT to rollout ever, but we keep it here for completeness
|
|
100291
|
-
featureFlagsService.set('useOneStoreGraphQL', false);
|
|
100292
100354
|
const luvioUiapiRecordsServiceDescriptor = buildServiceDescriptor$a((configs) => {
|
|
100293
100355
|
return notifyUpdateAvailableFactory(luvio)(configs);
|
|
100294
100356
|
}, (recordId, reader) => {
|
|
@@ -100592,7 +100654,7 @@ register$1({
|
|
|
100592
100654
|
id: '@salesforce/lds-network-adapter',
|
|
100593
100655
|
instrument: instrument$2,
|
|
100594
100656
|
});
|
|
100595
|
-
// version: 1.
|
|
100657
|
+
// version: 1.466.0-b7b08a8e3c
|
|
100596
100658
|
|
|
100597
100659
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100598
100660
|
const { stringify, parse } = JSON;
|
|
@@ -107987,7 +108049,6 @@ let graphql_imperative$1;
|
|
|
107987
108049
|
let graphql_imperative_legacy;
|
|
107988
108050
|
let graphql_imperative_legacy_v1_import;
|
|
107989
108051
|
let graphql_state_manager;
|
|
107990
|
-
let useOneStoreGraphQL = false;
|
|
107991
108052
|
const serviceRequirements = {
|
|
107992
108053
|
instrumentCommand: {
|
|
107993
108054
|
type: 'instrumentCommand',
|
|
@@ -108131,9 +108192,8 @@ getServices(serviceRequirements).then((services) => {
|
|
|
108131
108192
|
const baseCommand = new executeMutation_ctor(config, mutationType, services);
|
|
108132
108193
|
return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
|
|
108133
108194
|
});
|
|
108134
|
-
useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
|
|
108135
108195
|
if (provisionedCallback) {
|
|
108136
|
-
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, graphql_state_manager
|
|
108196
|
+
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, graphql_state_manager);
|
|
108137
108197
|
}
|
|
108138
108198
|
}, (_err) => { });
|
|
108139
108199
|
function registerCallback(cb) {
|
|
@@ -108141,10 +108201,10 @@ function registerCallback(cb) {
|
|
|
108141
108201
|
provisionedCallback = cb;
|
|
108142
108202
|
}
|
|
108143
108203
|
else {
|
|
108144
|
-
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager
|
|
108204
|
+
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager);
|
|
108145
108205
|
}
|
|
108146
108206
|
}
|
|
108147
|
-
// version: 1.
|
|
108207
|
+
// version: 1.466.0-ba624febc8
|
|
108148
108208
|
|
|
108149
108209
|
function createFragmentMap(documentNode) {
|
|
108150
108210
|
const fragments = {};
|
|
@@ -136843,7 +136903,7 @@ let graphqlBatch;
|
|
|
136843
136903
|
// Imperative GET Adapters
|
|
136844
136904
|
let graphql_imperative;
|
|
136845
136905
|
let graphqlBatch_imperative;
|
|
136846
|
-
|
|
136906
|
+
const refreshGraphQL = (data) => {
|
|
136847
136907
|
return refresh$3(data, 'refreshUiApi');
|
|
136848
136908
|
};
|
|
136849
136909
|
// Adapter Metadata
|
|
@@ -136867,21 +136927,7 @@ withDefaultLuvio((luvio) => {
|
|
|
136867
136927
|
({ graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative } = bindExportsTo(luvio));
|
|
136868
136928
|
// We register the callback here rather than above withDefaultLuvio because we want environments
|
|
136869
136929
|
// that don't have onestore bootstrapped with the required services to default to the luvio versions of the adapters
|
|
136870
|
-
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative,
|
|
136871
|
-
if (useOneStoreGraphQL) {
|
|
136872
|
-
graphql = oneStoreGraphql;
|
|
136873
|
-
graphql_imperative = oneStoreGraphql_imperative_legacy;
|
|
136874
|
-
refreshGraphQL = (data) => {
|
|
136875
|
-
if (data?.data === undefined && data?.errors === undefined) {
|
|
136876
|
-
return Promise.resolve();
|
|
136877
|
-
}
|
|
136878
|
-
if (typeof data?.refresh === 'function') {
|
|
136879
|
-
return data.refresh();
|
|
136880
|
-
}
|
|
136881
|
-
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
136882
|
-
throw new Error('Component attempted to refresh a GraphQL result that is not refreshable');
|
|
136883
|
-
};
|
|
136884
|
-
}
|
|
136930
|
+
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, _oneStoreGraphql_imperative_legacy, oneStoreGraphql_state_manager) => {
|
|
136885
136931
|
});
|
|
136886
136932
|
});
|
|
136887
136933
|
|
|
@@ -137387,7 +137433,7 @@ register$1({
|
|
|
137387
137433
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
137388
137434
|
instrument: instrument$1,
|
|
137389
137435
|
});
|
|
137390
|
-
// version: 1.
|
|
137436
|
+
// version: 1.466.0-ba624febc8
|
|
137391
137437
|
|
|
137392
137438
|
// On core the unstable adapters are re-exported with different names,
|
|
137393
137439
|
// we want to match them here.
|
|
@@ -137399,7 +137445,7 @@ var unstableLightningRelatedListApi = /*#__PURE__*/Object.freeze({
|
|
|
137399
137445
|
gql: gql,
|
|
137400
137446
|
get graphql () { return graphql; },
|
|
137401
137447
|
get graphqlBatch () { return graphqlBatch; },
|
|
137402
|
-
|
|
137448
|
+
refreshGraphQL: refreshGraphQL,
|
|
137403
137449
|
get unstable_getActionOverrides_imperative () { return unstable_getActionOverrides_imperative; },
|
|
137404
137450
|
get unstable_getFlexipageFormulaOverrides_imperative () { return unstable_getFlexipageFormulaOverrides_imperative; },
|
|
137405
137451
|
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
@@ -137539,7 +137585,7 @@ withDefaultLuvio((luvio) => {
|
|
|
137539
137585
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137540
137586
|
graphQLImperative = ldsAdapter;
|
|
137541
137587
|
});
|
|
137542
|
-
// version: 1.
|
|
137588
|
+
// version: 1.466.0-ba624febc8
|
|
137543
137589
|
|
|
137544
137590
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137545
137591
|
__proto__: null,
|
|
@@ -138391,7 +138437,7 @@ const callbacks$1 = [];
|
|
|
138391
138437
|
function register(r) {
|
|
138392
138438
|
callbacks$1.forEach((callback) => callback(r));
|
|
138393
138439
|
}
|
|
138394
|
-
// version: 1.
|
|
138440
|
+
// version: 1.466.0-b7b08a8e3c
|
|
138395
138441
|
|
|
138396
138442
|
/**
|
|
138397
138443
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139680,4 +139726,4 @@ const { luvio } = getRuntime();
|
|
|
139680
139726
|
setDefaultLuvio({ luvio });
|
|
139681
139727
|
|
|
139682
139728
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToMergeAndMetadata, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
139683
|
-
// version: 1.
|
|
139729
|
+
// version: 1.466.0-b7b08a8e3c
|
|
@@ -4282,7 +4282,7 @@
|
|
|
4282
4282
|
}
|
|
4283
4283
|
callbacks.push(callback);
|
|
4284
4284
|
}
|
|
4285
|
-
// version: 1.
|
|
4285
|
+
// version: 1.466.0-b7b08a8e3c
|
|
4286
4286
|
|
|
4287
4287
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4288
4288
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5326,7 +5326,7 @@
|
|
|
5326
5326
|
const { apiFamily, name } = metadata;
|
|
5327
5327
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5328
5328
|
}
|
|
5329
|
-
// version: 1.
|
|
5329
|
+
// version: 1.466.0-b7b08a8e3c
|
|
5330
5330
|
|
|
5331
5331
|
function isSupportedEntity(_objectApiName) {
|
|
5332
5332
|
return true;
|
|
@@ -14379,7 +14379,7 @@
|
|
|
14379
14379
|
return undefined;
|
|
14380
14380
|
}
|
|
14381
14381
|
|
|
14382
|
-
const VERSION$10$2 = "
|
|
14382
|
+
const VERSION$10$2 = "c42f4294edf6efc71f5ff9b9adf922e8";
|
|
14383
14383
|
const RepresentationType$G = 'PlatformActionRepresentation';
|
|
14384
14384
|
function keyBuilder$1P$1(luvio, config) {
|
|
14385
14385
|
return keyPrefix$3 + '::' + RepresentationType$G + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
|
|
@@ -14439,6 +14439,11 @@
|
|
|
14439
14439
|
name: 'lwcComponent',
|
|
14440
14440
|
kind: 'Scalar'
|
|
14441
14441
|
},
|
|
14442
|
+
{
|
|
14443
|
+
name: 'modalSize',
|
|
14444
|
+
kind: 'Scalar',
|
|
14445
|
+
required: false
|
|
14446
|
+
},
|
|
14442
14447
|
{
|
|
14443
14448
|
name: 'primaryColor',
|
|
14444
14449
|
kind: 'Scalar'
|
|
@@ -14539,6 +14544,19 @@
|
|
|
14539
14544
|
if (!(existing_lwcComponent === incoming_lwcComponent)) {
|
|
14540
14545
|
return false;
|
|
14541
14546
|
}
|
|
14547
|
+
const existing_modalSize = existing.modalSize;
|
|
14548
|
+
const incoming_modalSize = incoming.modalSize;
|
|
14549
|
+
// if at least one of these optionals is defined
|
|
14550
|
+
if (existing_modalSize !== undefined || incoming_modalSize !== undefined) {
|
|
14551
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
14552
|
+
// not equal
|
|
14553
|
+
if (existing_modalSize === undefined || incoming_modalSize === undefined) {
|
|
14554
|
+
return false;
|
|
14555
|
+
}
|
|
14556
|
+
if (!(existing_modalSize === incoming_modalSize)) {
|
|
14557
|
+
return false;
|
|
14558
|
+
}
|
|
14559
|
+
}
|
|
14542
14560
|
const existing_primaryColor = existing.primaryColor;
|
|
14543
14561
|
const incoming_primaryColor = incoming.primaryColor;
|
|
14544
14562
|
if (!(existing_primaryColor === incoming_primaryColor)) {
|
|
@@ -32553,7 +32571,7 @@
|
|
|
32553
32571
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32554
32572
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32555
32573
|
});
|
|
32556
|
-
// version: 1.
|
|
32574
|
+
// version: 1.466.0-ba624febc8
|
|
32557
32575
|
|
|
32558
32576
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32559
32577
|
isOpen: function (e) {
|
|
@@ -83081,47 +83099,41 @@
|
|
|
83081
83099
|
DateLiteral["YESTERDAY"] = "YESTERDAY";
|
|
83082
83100
|
DateLiteral["NEXT_WEEK"] = "NEXT_WEEK";
|
|
83083
83101
|
})(DateLiteral || (DateLiteral = {}));
|
|
83084
|
-
// ranged adjusted to be between now and the end of the day,
|
|
83085
|
-
// you cannot do a straight = comparison in SQL
|
|
83086
83102
|
const TODAY_RANGE = {
|
|
83087
83103
|
lowerBound: `date('now')`,
|
|
83088
|
-
upperBound: `
|
|
83104
|
+
upperBound: `datetime('now', 'start of day', '+1 day', '-1 seconds')`,
|
|
83089
83105
|
};
|
|
83090
|
-
// ranged adjusted to be between today +1 day and +2 days -.001 seconds to be the very end of tomorrows date
|
|
83091
|
-
// you cannot do a straight = comparison in SQL
|
|
83092
83106
|
const TOMORROW_RANGE = {
|
|
83093
83107
|
lowerBound: `date('now', '+1 day')`,
|
|
83094
|
-
upperBound: `
|
|
83108
|
+
upperBound: `datetime('now', 'start of day', '+2 days', '-1 seconds')`,
|
|
83095
83109
|
};
|
|
83096
83110
|
const YESTERDAY_RANGE = {
|
|
83097
83111
|
lowerBound: `date('now', '-1 day')`,
|
|
83098
|
-
upperBound: `
|
|
83112
|
+
upperBound: `datetime('now', 'start of day', '-1 seconds')`,
|
|
83099
83113
|
};
|
|
83100
83114
|
const THIS_WEEK_RANGE = {
|
|
83101
|
-
lowerBound: `date('now', '
|
|
83102
|
-
upperBound: `
|
|
83115
|
+
lowerBound: `date('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}')`,
|
|
83116
|
+
upperBound: `datetime('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '+7 days', '-1 seconds')`,
|
|
83103
83117
|
};
|
|
83104
83118
|
const LAST_WEEK_RANGE = {
|
|
83105
|
-
lowerBound: `date('now', 'weekday
|
|
83106
|
-
upperBound: `
|
|
83119
|
+
lowerBound: `date('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '-7 days')`,
|
|
83120
|
+
upperBound: `datetime('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '-1 seconds')`,
|
|
83107
83121
|
};
|
|
83108
83122
|
const NEXT_WEEK_RANGE = {
|
|
83109
|
-
lowerBound: `date('now', 'weekday
|
|
83110
|
-
upperBound: `
|
|
83123
|
+
lowerBound: `date('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '+7 days')`,
|
|
83124
|
+
upperBound: `datetime('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', '+14 days', '-1 seconds')`,
|
|
83111
83125
|
};
|
|
83112
83126
|
const THIS_MONTH_RANGE = {
|
|
83113
83127
|
lowerBound: `date('now', 'start of month')`,
|
|
83114
|
-
upperBound: `
|
|
83128
|
+
upperBound: `datetime('now', 'start of month', '+1 month', '-1 seconds')`,
|
|
83115
83129
|
};
|
|
83116
83130
|
const LAST_MONTH_RANGE = {
|
|
83117
83131
|
lowerBound: `date('now', 'start of month', '-1 month')`,
|
|
83118
|
-
upperBound: `
|
|
83132
|
+
upperBound: `datetime('now', 'start of month', '-1 seconds')`,
|
|
83119
83133
|
};
|
|
83120
83134
|
const NEXT_MONTH_RANGE = {
|
|
83121
83135
|
lowerBound: `date('now', 'start of month', '+1 month')`,
|
|
83122
|
-
|
|
83123
|
-
// this needs to be 0 day
|
|
83124
|
-
upperBound: `date('now', 'start of month', '+2 month', '0 day')`,
|
|
83136
|
+
upperBound: `datetime('now', 'start of month', '+2 months', '-1 seconds')`,
|
|
83125
83137
|
};
|
|
83126
83138
|
const THIS_QUARTER_RANGE = () => {
|
|
83127
83139
|
return computeQuarterDateRange(DateLiteral.THIS_QUARTER);
|
|
@@ -83134,23 +83146,23 @@
|
|
|
83134
83146
|
};
|
|
83135
83147
|
const THIS_YEAR_RANGE = {
|
|
83136
83148
|
lowerBound: `date('now', 'start of year')`,
|
|
83137
|
-
upperBound: `
|
|
83149
|
+
upperBound: `datetime('now', 'start of year', '+1 year', '-1 seconds')`,
|
|
83138
83150
|
};
|
|
83139
83151
|
const LAST_YEAR_RANGE = {
|
|
83140
83152
|
lowerBound: `date('now', 'start of year', '-1 year')`,
|
|
83141
|
-
upperBound: `
|
|
83153
|
+
upperBound: `datetime('now', 'start of year', '-1 seconds')`,
|
|
83142
83154
|
};
|
|
83143
83155
|
const NEXT_YEAR_RANGE = {
|
|
83144
83156
|
lowerBound: `date('now', 'start of year', '+1 year')`,
|
|
83145
|
-
upperBound: `
|
|
83157
|
+
upperBound: `datetime('now', 'start of year', '+2 years', '-1 seconds')`,
|
|
83146
83158
|
};
|
|
83147
83159
|
const LAST_90_DAYS_RANGE = {
|
|
83148
83160
|
lowerBound: `date('now', '-90 days')`,
|
|
83149
|
-
upperBound: `
|
|
83161
|
+
upperBound: `datetime('now')`,
|
|
83150
83162
|
};
|
|
83151
83163
|
const NEXT_90_DAYS_RANGE = {
|
|
83152
83164
|
lowerBound: `date('now', '+1 day')`,
|
|
83153
|
-
upperBound: `
|
|
83165
|
+
upperBound: `datetime('now', 'start of day', '+91 days', '-1 seconds')`,
|
|
83154
83166
|
};
|
|
83155
83167
|
// querter start date in UTC
|
|
83156
83168
|
function quarterStart(date) {
|
|
@@ -83164,23 +83176,17 @@
|
|
|
83164
83176
|
case DateLiteral.LAST_QUARTER:
|
|
83165
83177
|
return {
|
|
83166
83178
|
lowerBound: `date('${curQuarterStart}', '-3 months')`,
|
|
83167
|
-
|
|
83168
|
-
// 0 days sets it to the end of the month
|
|
83169
|
-
upperBound: `date('${curQuarterStart}', '0 days')`,
|
|
83179
|
+
upperBound: `datetime('${curQuarterStart}', '-1 seconds')`,
|
|
83170
83180
|
};
|
|
83171
83181
|
case DateLiteral.THIS_QUARTER:
|
|
83172
83182
|
return {
|
|
83173
83183
|
lowerBound: `date('${curQuarterStart}')`,
|
|
83174
|
-
|
|
83175
|
-
// 0 days sets it to the end of the month
|
|
83176
|
-
upperBound: `date('${curQuarterStart}', '3 months', '0 days')`,
|
|
83184
|
+
upperBound: `datetime('${curQuarterStart}', '+3 months', '-1 seconds')`,
|
|
83177
83185
|
};
|
|
83178
83186
|
case DateLiteral.NEXT_QUARTER:
|
|
83179
83187
|
return {
|
|
83180
83188
|
lowerBound: `date('${curQuarterStart}', '+3 months')`,
|
|
83181
|
-
|
|
83182
|
-
// 0 days sets it to the end of the month
|
|
83183
|
-
upperBound: `date('${curQuarterStart}', '+6 months', '0 days')`,
|
|
83189
|
+
upperBound: `datetime('${curQuarterStart}', '+6 months', '-1 seconds')`,
|
|
83184
83190
|
};
|
|
83185
83191
|
}
|
|
83186
83192
|
}
|
|
@@ -83399,11 +83405,11 @@
|
|
|
83399
83405
|
case DateRange.next_n_days: {
|
|
83400
83406
|
return {
|
|
83401
83407
|
binding: {
|
|
83402
|
-
upper: `${input} days`,
|
|
83408
|
+
upper: `${input + 1} days`,
|
|
83403
83409
|
lower: '1 days',
|
|
83404
83410
|
},
|
|
83405
83411
|
range: {
|
|
83406
|
-
upper: `${dateFunction}('now', 'start of day',
|
|
83412
|
+
upper: `${dateFunction}('now', 'start of day', ?, '-1 seconds')`,
|
|
83407
83413
|
lower: `${dateFunction}('now', 'start of day', ?)`,
|
|
83408
83414
|
},
|
|
83409
83415
|
};
|
|
@@ -83440,19 +83446,14 @@
|
|
|
83440
83446
|
// starts at 00:00:00 the first day of the week n weeks after the current week
|
|
83441
83447
|
// ends 23:59:59 of the last day of week before the current
|
|
83442
83448
|
case DateRange.next_n_weeks: {
|
|
83443
|
-
const isStartOfWeek = isTodayStartOfWeek();
|
|
83444
83449
|
return {
|
|
83445
83450
|
binding: {
|
|
83446
|
-
|
|
83447
|
-
|
|
83448
|
-
// so for the upper bound if today is the start of the week we need to add 7 more days to the value to get next week as the start
|
|
83449
|
-
upper: `${input * 7 + (isStartOfWeek ? 7 : 0)} days`,
|
|
83450
|
-
//lower bound starts out 00:00:00 of next week
|
|
83451
|
-
lower: `${isStartOfWeek ? 7 : 0} days`,
|
|
83451
|
+
upper: `${(input + 1) * 7} days`,
|
|
83452
|
+
lower: '7 days',
|
|
83452
83453
|
},
|
|
83453
83454
|
range: {
|
|
83454
|
-
upper: `${dateFunction}('now', '
|
|
83455
|
-
lower: `${dateFunction}('now', '
|
|
83455
|
+
upper: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?, '-1 seconds')`,
|
|
83456
|
+
lower: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?)`,
|
|
83456
83457
|
},
|
|
83457
83458
|
};
|
|
83458
83459
|
}
|
|
@@ -83460,19 +83461,14 @@
|
|
|
83460
83461
|
// starts at 00:00:00 of day 0 n weeks before the current week
|
|
83461
83462
|
// ends 23:59:59 at last day of the week before the current week
|
|
83462
83463
|
case DateRange.last_n_weeks: {
|
|
83463
|
-
const isStartOfWeek = isTodayStartOfWeek();
|
|
83464
83464
|
return {
|
|
83465
83465
|
binding: {
|
|
83466
|
-
|
|
83467
|
-
|
|
83468
|
-
upper: `${-(isStartOfWeek ? 0 : 7)} days`,
|
|
83469
|
-
// starting on 00:00:00 of n * weeks before current week
|
|
83470
|
-
// -7 more days if today not the start of the week because weekday FIRST_DAY_OF_WEEK puts us next week day 0
|
|
83471
|
-
lower: `${-input * 7 - (isStartOfWeek ? 0 : 7)} days`,
|
|
83466
|
+
upper: '0 days',
|
|
83467
|
+
lower: `${-input * 7} days`,
|
|
83472
83468
|
},
|
|
83473
83469
|
range: {
|
|
83474
|
-
upper: `${dateFunction}('now', '
|
|
83475
|
-
lower: `${dateFunction}('now', '
|
|
83470
|
+
upper: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?, '-1 seconds')`,
|
|
83471
|
+
lower: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?)`,
|
|
83476
83472
|
},
|
|
83477
83473
|
};
|
|
83478
83474
|
}
|
|
@@ -83480,21 +83476,14 @@
|
|
|
83480
83476
|
// starts 00:00:00 on day 0 of n weeks before the current week
|
|
83481
83477
|
// ends 7 days after the start
|
|
83482
83478
|
case DateRange.n_weeks_ago: {
|
|
83483
|
-
const isStartOfWeek = isTodayStartOfWeek();
|
|
83484
83479
|
return {
|
|
83485
83480
|
binding: {
|
|
83486
|
-
|
|
83487
|
-
|
|
83488
|
-
// so add 7 to remove a week from -(n)
|
|
83489
|
-
upper: `${-input * 7 + (isStartOfWeek ? 7 : 0)} days`,
|
|
83490
|
-
// start of the week n weeks from the current week
|
|
83491
|
-
// if today is the start of the week then -(n) will do to be the previous week, but
|
|
83492
|
-
// if today is not the start of the week we need to go back 1 more week since weekday FIRST_DAY_OF_WEEK will put us next week
|
|
83493
|
-
lower: `${-input * 7 - (isStartOfWeek ? 0 : 7)} days`,
|
|
83481
|
+
upper: `${-input * 7 + 7} days`,
|
|
83482
|
+
lower: `${-input * 7} days`,
|
|
83494
83483
|
},
|
|
83495
83484
|
range: {
|
|
83496
|
-
upper: `${dateFunction}('now', '
|
|
83497
|
-
lower: `${dateFunction}('now', '
|
|
83485
|
+
upper: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?, '-1 seconds')`,
|
|
83486
|
+
lower: `${dateFunction}('now', 'start of day', '-6 days', 'weekday ${FIRST_DAY_OF_WEEK}', ?)`,
|
|
83498
83487
|
},
|
|
83499
83488
|
};
|
|
83500
83489
|
}
|
|
@@ -83644,9 +83633,6 @@
|
|
|
83644
83633
|
throw new Error(`DateRangeInput ${dateRange} is not supported in local evalutation`);
|
|
83645
83634
|
}
|
|
83646
83635
|
}
|
|
83647
|
-
function isTodayStartOfWeek() {
|
|
83648
|
-
return new Date().getDay() === FIRST_DAY_OF_WEEK;
|
|
83649
|
-
}
|
|
83650
83636
|
|
|
83651
83637
|
const JSON_EXTRACT_PATH_INGESTION_TIMESTAMP = '$.ingestionTimestamp';
|
|
83652
83638
|
const JSON_EXTRACT_PATH_INGESTION_APINAME = '$.apiName';
|
|
@@ -95771,13 +95757,17 @@
|
|
|
95771
95757
|
};
|
|
95772
95758
|
}
|
|
95773
95759
|
|
|
95774
|
-
function applyOperationRequestOptions$
|
|
95775
|
-
if (operationType === void 0) {
|
|
95760
|
+
function applyOperationRequestOptions$3(init, operationType, requestOptions) {
|
|
95761
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
95776
95762
|
return init;
|
|
95777
95763
|
}
|
|
95778
95764
|
return {
|
|
95779
95765
|
...init,
|
|
95780
|
-
onestore: {
|
|
95766
|
+
onestore: {
|
|
95767
|
+
...requestOptions,
|
|
95768
|
+
...init?.onestore,
|
|
95769
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
95770
|
+
}
|
|
95781
95771
|
};
|
|
95782
95772
|
}
|
|
95783
95773
|
class AuraNetworkCommand extends NetworkCommand$1 {
|
|
@@ -95810,6 +95800,10 @@
|
|
|
95810
95800
|
get operationType() {
|
|
95811
95801
|
return void 0;
|
|
95812
95802
|
}
|
|
95803
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides. HTTP fallback only. */
|
|
95804
|
+
get requestOptions() {
|
|
95805
|
+
return void 0;
|
|
95806
|
+
}
|
|
95813
95807
|
coerceAuraErrors(auraErrors) {
|
|
95814
95808
|
const response = getFetchResponseFromAuraError(auraErrors[0]);
|
|
95815
95809
|
return new UserVisibleError(
|
|
@@ -95916,7 +95910,11 @@
|
|
|
95916
95910
|
);
|
|
95917
95911
|
} else if (this.shouldUseFetch()) {
|
|
95918
95912
|
const [input, init] = this.fetchParams;
|
|
95919
|
-
const initWithOptions = applyOperationRequestOptions$
|
|
95913
|
+
const initWithOptions = applyOperationRequestOptions$3(
|
|
95914
|
+
init,
|
|
95915
|
+
this.operationType,
|
|
95916
|
+
this.requestOptions
|
|
95917
|
+
);
|
|
95920
95918
|
try {
|
|
95921
95919
|
const fetchCall = initWithOptions === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithOptions);
|
|
95922
95920
|
return this.convertFetchResponseToData(fetchCall);
|
|
@@ -96484,6 +96482,19 @@
|
|
|
96484
96482
|
};
|
|
96485
96483
|
}
|
|
96486
96484
|
|
|
96485
|
+
function applyOperationRequestOptions$2(init, operationType, requestOptions) {
|
|
96486
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96487
|
+
return init;
|
|
96488
|
+
}
|
|
96489
|
+
return {
|
|
96490
|
+
...init,
|
|
96491
|
+
onestore: {
|
|
96492
|
+
...requestOptions,
|
|
96493
|
+
...init?.onestore,
|
|
96494
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96495
|
+
}
|
|
96496
|
+
};
|
|
96497
|
+
}
|
|
96487
96498
|
class AuraCacheControlCommand extends CacheControlCommand {
|
|
96488
96499
|
constructor(services) {
|
|
96489
96500
|
super(services);
|
|
@@ -96501,6 +96512,20 @@
|
|
|
96501
96512
|
"Fetch parameters must be specified when using HTTP transport on an Aura adapter"
|
|
96502
96513
|
);
|
|
96503
96514
|
}
|
|
96515
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides. HTTP fallback only. */
|
|
96516
|
+
get requestOptions() {
|
|
96517
|
+
return void 0;
|
|
96518
|
+
}
|
|
96519
|
+
/**
|
|
96520
|
+
* `params` with request options merged into `init.onestore` (see `applyOperationRequestOptions`).
|
|
96521
|
+
* `retrySafe` follows `operationType` (default `'query'`): hand-written writes must override it.
|
|
96522
|
+
*/
|
|
96523
|
+
withRequestOptions([
|
|
96524
|
+
input,
|
|
96525
|
+
init
|
|
96526
|
+
]) {
|
|
96527
|
+
return [input, applyOperationRequestOptions$2(init, this.operationType, this.requestOptions)];
|
|
96528
|
+
}
|
|
96504
96529
|
shouldUseAuraNetwork() {
|
|
96505
96530
|
return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
|
|
96506
96531
|
}
|
|
@@ -96519,7 +96544,7 @@
|
|
|
96519
96544
|
(errs) => this.coerceAuraErrors(errs)
|
|
96520
96545
|
);
|
|
96521
96546
|
} else if (this.shouldUseFetch()) {
|
|
96522
|
-
const params = this.fetchParams;
|
|
96547
|
+
const params = this.withRequestOptions(this.fetchParams);
|
|
96523
96548
|
try {
|
|
96524
96549
|
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
96525
96550
|
} catch (reason) {
|
|
@@ -96666,13 +96691,17 @@
|
|
|
96666
96691
|
async afterRequestHooks(_options) {
|
|
96667
96692
|
}
|
|
96668
96693
|
}
|
|
96669
|
-
function applyOperationRequestOptions(init, operationType) {
|
|
96670
|
-
if (operationType === void 0) {
|
|
96694
|
+
function applyOperationRequestOptions$1(init, operationType, requestOptions) {
|
|
96695
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96671
96696
|
return init;
|
|
96672
96697
|
}
|
|
96673
96698
|
return {
|
|
96674
96699
|
...init,
|
|
96675
|
-
onestore: {
|
|
96700
|
+
onestore: {
|
|
96701
|
+
...requestOptions,
|
|
96702
|
+
...init?.onestore,
|
|
96703
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96704
|
+
}
|
|
96676
96705
|
};
|
|
96677
96706
|
}
|
|
96678
96707
|
function isAbortableCommand(command) {
|
|
@@ -96753,11 +96782,19 @@
|
|
|
96753
96782
|
get operationType() {
|
|
96754
96783
|
return void 0;
|
|
96755
96784
|
}
|
|
96785
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides (`generateRequestOptionsGetter`). */
|
|
96786
|
+
get requestOptions() {
|
|
96787
|
+
return void 0;
|
|
96788
|
+
}
|
|
96756
96789
|
fetch(contextSeed) {
|
|
96757
96790
|
try {
|
|
96758
96791
|
const [input, init] = this.fetchParams;
|
|
96759
96792
|
const operationType = this.operationType;
|
|
96760
|
-
const initWithOptions = applyOperationRequestOptions(
|
|
96793
|
+
const initWithOptions = applyOperationRequestOptions$1(
|
|
96794
|
+
init,
|
|
96795
|
+
operationType,
|
|
96796
|
+
this.requestOptions
|
|
96797
|
+
);
|
|
96761
96798
|
const seed = operationType === void 0 ? contextSeed : { operationType, ...contextSeed };
|
|
96762
96799
|
const initWithSeed = seed === void 0 ? initWithOptions : { ...initWithOptions, __contextSeed: seed };
|
|
96763
96800
|
const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
|
|
@@ -96832,6 +96869,19 @@
|
|
|
96832
96869
|
};
|
|
96833
96870
|
}
|
|
96834
96871
|
|
|
96872
|
+
function applyOperationRequestOptions(init, operationType, requestOptions) {
|
|
96873
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96874
|
+
return init;
|
|
96875
|
+
}
|
|
96876
|
+
return {
|
|
96877
|
+
...init,
|
|
96878
|
+
onestore: {
|
|
96879
|
+
...requestOptions,
|
|
96880
|
+
...init?.onestore,
|
|
96881
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96882
|
+
}
|
|
96883
|
+
};
|
|
96884
|
+
}
|
|
96835
96885
|
class HttpCacheControlCommand extends CacheControlCommand {
|
|
96836
96886
|
constructor(services) {
|
|
96837
96887
|
super(services);
|
|
@@ -96841,9 +96891,25 @@
|
|
|
96841
96891
|
requestFromNetwork() {
|
|
96842
96892
|
return this.fetch();
|
|
96843
96893
|
}
|
|
96894
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides. */
|
|
96895
|
+
get requestOptions() {
|
|
96896
|
+
return void 0;
|
|
96897
|
+
}
|
|
96898
|
+
/**
|
|
96899
|
+
* `params` with request options merged into `init.onestore` (see `applyOperationRequestOptions`).
|
|
96900
|
+
* `retrySafe` follows `operationType` (default `'query'`): hand-written writes must override it.
|
|
96901
|
+
*/
|
|
96902
|
+
withRequestOptions([
|
|
96903
|
+
input,
|
|
96904
|
+
init
|
|
96905
|
+
]) {
|
|
96906
|
+
return [input, applyOperationRequestOptions(init, this.operationType, this.requestOptions)];
|
|
96907
|
+
}
|
|
96844
96908
|
fetch() {
|
|
96845
96909
|
try {
|
|
96846
|
-
return this.convertFetchResponseToData(
|
|
96910
|
+
return this.convertFetchResponseToData(
|
|
96911
|
+
this.services.fetch(...this.withRequestOptions(this.fetchParams))
|
|
96912
|
+
);
|
|
96847
96913
|
} catch (reason) {
|
|
96848
96914
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
96849
96915
|
}
|
|
@@ -97853,7 +97919,7 @@
|
|
|
97853
97919
|
},
|
|
97854
97920
|
};
|
|
97855
97921
|
}
|
|
97856
|
-
// version: 1.
|
|
97922
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97857
97923
|
|
|
97858
97924
|
/**
|
|
97859
97925
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97879,7 +97945,7 @@
|
|
|
97879
97945
|
},
|
|
97880
97946
|
};
|
|
97881
97947
|
}
|
|
97882
|
-
// version: 1.
|
|
97948
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97883
97949
|
|
|
97884
97950
|
function findExecutableOperation$1(input) {
|
|
97885
97951
|
const operations = input.query.definitions.filter(
|
|
@@ -98076,7 +98142,7 @@
|
|
|
98076
98142
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98077
98143
|
});
|
|
98078
98144
|
} else if (this.shouldUseFetch()) {
|
|
98079
|
-
const params = this.originalFetchParams;
|
|
98145
|
+
const params = this.withRequestOptions(this.originalFetchParams);
|
|
98080
98146
|
try {
|
|
98081
98147
|
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
98082
98148
|
(result) => {
|
|
@@ -98231,7 +98297,7 @@
|
|
|
98231
98297
|
}
|
|
98232
98298
|
runOriginalRequest() {
|
|
98233
98299
|
return this.convertFetchResponseToData(
|
|
98234
|
-
this.services.fetch(...this.originalFetchParams)
|
|
98300
|
+
this.services.fetch(...this.withRequestOptions(this.originalFetchParams))
|
|
98235
98301
|
).then((result) => {
|
|
98236
98302
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98237
98303
|
});
|
|
@@ -100291,10 +100357,6 @@
|
|
|
100291
100357
|
const instrumentationServiceDescriptor = buildServiceDescriptor$e(loggerService);
|
|
100292
100358
|
const nimbusSqliteOneStoreCacheServiceDescriptor = buildNimbusDurableCacheInclusionPolicyService(cacheServiceDescriptor.service, new NimbusSqliteOneStoreCache(sqliteStore));
|
|
100293
100359
|
const featureFlagsServiceDescriptor = buildServiceDescriptor$c();
|
|
100294
|
-
const featureFlagsService = featureFlagsServiceDescriptor.service;
|
|
100295
|
-
// This disables the GraphQL mapping from lightning/uiGraphQLApi to lightning/graphql in this runtime
|
|
100296
|
-
// The gate is likely NOT to rollout ever, but we keep it here for completeness
|
|
100297
|
-
featureFlagsService.set('useOneStoreGraphQL', false);
|
|
100298
100360
|
const luvioUiapiRecordsServiceDescriptor = buildServiceDescriptor$a((configs) => {
|
|
100299
100361
|
return notifyUpdateAvailableFactory(luvio)(configs);
|
|
100300
100362
|
}, (recordId, reader) => {
|
|
@@ -100598,7 +100660,7 @@
|
|
|
100598
100660
|
id: '@salesforce/lds-network-adapter',
|
|
100599
100661
|
instrument: instrument$2,
|
|
100600
100662
|
});
|
|
100601
|
-
// version: 1.
|
|
100663
|
+
// version: 1.466.0-b7b08a8e3c
|
|
100602
100664
|
|
|
100603
100665
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100604
100666
|
const { stringify, parse } = JSON;
|
|
@@ -107993,7 +108055,6 @@
|
|
|
107993
108055
|
let graphql_imperative_legacy;
|
|
107994
108056
|
let graphql_imperative_legacy_v1_import;
|
|
107995
108057
|
let graphql_state_manager;
|
|
107996
|
-
let useOneStoreGraphQL = false;
|
|
107997
108058
|
const serviceRequirements = {
|
|
107998
108059
|
instrumentCommand: {
|
|
107999
108060
|
type: 'instrumentCommand',
|
|
@@ -108137,9 +108198,8 @@
|
|
|
108137
108198
|
const baseCommand = new executeMutation_ctor(config, mutationType, services);
|
|
108138
108199
|
return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
|
|
108139
108200
|
});
|
|
108140
|
-
useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
|
|
108141
108201
|
if (provisionedCallback) {
|
|
108142
|
-
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, graphql_state_manager
|
|
108202
|
+
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, graphql_state_manager);
|
|
108143
108203
|
}
|
|
108144
108204
|
}, (_err) => { });
|
|
108145
108205
|
function registerCallback(cb) {
|
|
@@ -108147,10 +108207,10 @@
|
|
|
108147
108207
|
provisionedCallback = cb;
|
|
108148
108208
|
}
|
|
108149
108209
|
else {
|
|
108150
|
-
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager
|
|
108210
|
+
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager);
|
|
108151
108211
|
}
|
|
108152
108212
|
}
|
|
108153
|
-
// version: 1.
|
|
108213
|
+
// version: 1.466.0-ba624febc8
|
|
108154
108214
|
|
|
108155
108215
|
function createFragmentMap(documentNode) {
|
|
108156
108216
|
const fragments = {};
|
|
@@ -136849,7 +136909,7 @@
|
|
|
136849
136909
|
// Imperative GET Adapters
|
|
136850
136910
|
let graphql_imperative;
|
|
136851
136911
|
let graphqlBatch_imperative;
|
|
136852
|
-
|
|
136912
|
+
const refreshGraphQL = (data) => {
|
|
136853
136913
|
return refresh$3(data, 'refreshUiApi');
|
|
136854
136914
|
};
|
|
136855
136915
|
// Adapter Metadata
|
|
@@ -136873,21 +136933,7 @@
|
|
|
136873
136933
|
({ graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative } = bindExportsTo(luvio));
|
|
136874
136934
|
// We register the callback here rather than above withDefaultLuvio because we want environments
|
|
136875
136935
|
// that don't have onestore bootstrapped with the required services to default to the luvio versions of the adapters
|
|
136876
|
-
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative,
|
|
136877
|
-
if (useOneStoreGraphQL) {
|
|
136878
|
-
graphql = oneStoreGraphql;
|
|
136879
|
-
graphql_imperative = oneStoreGraphql_imperative_legacy;
|
|
136880
|
-
refreshGraphQL = (data) => {
|
|
136881
|
-
if (data?.data === undefined && data?.errors === undefined) {
|
|
136882
|
-
return Promise.resolve();
|
|
136883
|
-
}
|
|
136884
|
-
if (typeof data?.refresh === 'function') {
|
|
136885
|
-
return data.refresh();
|
|
136886
|
-
}
|
|
136887
|
-
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
136888
|
-
throw new Error('Component attempted to refresh a GraphQL result that is not refreshable');
|
|
136889
|
-
};
|
|
136890
|
-
}
|
|
136936
|
+
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, _oneStoreGraphql_imperative_legacy, oneStoreGraphql_state_manager) => {
|
|
136891
136937
|
});
|
|
136892
136938
|
});
|
|
136893
136939
|
|
|
@@ -137393,7 +137439,7 @@
|
|
|
137393
137439
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
137394
137440
|
instrument: instrument$1,
|
|
137395
137441
|
});
|
|
137396
|
-
// version: 1.
|
|
137442
|
+
// version: 1.466.0-ba624febc8
|
|
137397
137443
|
|
|
137398
137444
|
// On core the unstable adapters are re-exported with different names,
|
|
137399
137445
|
// we want to match them here.
|
|
@@ -137405,7 +137451,7 @@
|
|
|
137405
137451
|
gql: gql,
|
|
137406
137452
|
get graphql () { return graphql; },
|
|
137407
137453
|
get graphqlBatch () { return graphqlBatch; },
|
|
137408
|
-
|
|
137454
|
+
refreshGraphQL: refreshGraphQL,
|
|
137409
137455
|
get unstable_getActionOverrides_imperative () { return unstable_getActionOverrides_imperative; },
|
|
137410
137456
|
get unstable_getFlexipageFormulaOverrides_imperative () { return unstable_getFlexipageFormulaOverrides_imperative; },
|
|
137411
137457
|
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
@@ -137545,7 +137591,7 @@
|
|
|
137545
137591
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137546
137592
|
graphQLImperative = ldsAdapter;
|
|
137547
137593
|
});
|
|
137548
|
-
// version: 1.
|
|
137594
|
+
// version: 1.466.0-ba624febc8
|
|
137549
137595
|
|
|
137550
137596
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137551
137597
|
__proto__: null,
|
|
@@ -138397,7 +138443,7 @@
|
|
|
138397
138443
|
function register(r) {
|
|
138398
138444
|
callbacks$1.forEach((callback) => callback(r));
|
|
138399
138445
|
}
|
|
138400
|
-
// version: 1.
|
|
138446
|
+
// version: 1.466.0-b7b08a8e3c
|
|
138401
138447
|
|
|
138402
138448
|
/**
|
|
138403
138449
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139708,4 +139754,4 @@
|
|
|
139708
139754
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
139709
139755
|
|
|
139710
139756
|
}));
|
|
139711
|
-
// version: 1.
|
|
139757
|
+
// version: 1.466.0-b7b08a8e3c
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.466.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.466.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.466.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.466.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.466.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.466.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.466.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.466.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.466.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|