@salesforce/lds-worker-api 1.464.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';
|
|
@@ -95696,8 +95682,8 @@ let InternalError$1 = class InternalError extends Error {
|
|
|
95696
95682
|
}
|
|
95697
95683
|
};
|
|
95698
95684
|
class UserVisibleError extends Error {
|
|
95699
|
-
constructor(data) {
|
|
95700
|
-
super();
|
|
95685
|
+
constructor(data, message) {
|
|
95686
|
+
super(message);
|
|
95701
95687
|
this.data = data;
|
|
95702
95688
|
this.type = "user-visible";
|
|
95703
95689
|
}
|
|
@@ -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,8 +95794,16 @@ 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]);
|
|
95803
|
+
return new UserVisibleError(
|
|
95804
|
+
response,
|
|
95805
|
+
`Error from ${this.endpoint}, status ${response.status}`
|
|
95806
|
+
);
|
|
95809
95807
|
}
|
|
95810
95808
|
/**
|
|
95811
95809
|
* Customize how non-2xx fetch fallback responses are converted into errors.
|
|
@@ -95902,11 +95900,15 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
95902
95900
|
this.auraParams,
|
|
95903
95901
|
this.actionConfig
|
|
95904
95902
|
),
|
|
95905
|
-
this.coerceAuraErrors
|
|
95903
|
+
(errs) => this.coerceAuraErrors(errs)
|
|
95906
95904
|
);
|
|
95907
95905
|
} else if (this.shouldUseFetch()) {
|
|
95908
95906
|
const [input, init] = this.fetchParams;
|
|
95909
|
-
const initWithOptions = applyOperationRequestOptions$
|
|
95907
|
+
const initWithOptions = applyOperationRequestOptions$3(
|
|
95908
|
+
init,
|
|
95909
|
+
this.operationType,
|
|
95910
|
+
this.requestOptions
|
|
95911
|
+
);
|
|
95910
95912
|
try {
|
|
95911
95913
|
const fetchCall = initWithOptions === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithOptions);
|
|
95912
95914
|
return this.convertFetchResponseToData(fetchCall);
|
|
@@ -96474,6 +96476,19 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
|
|
|
96474
96476
|
};
|
|
96475
96477
|
}
|
|
96476
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
|
+
}
|
|
96477
96492
|
class AuraCacheControlCommand extends CacheControlCommand {
|
|
96478
96493
|
constructor(services) {
|
|
96479
96494
|
super(services);
|
|
@@ -96491,6 +96506,20 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
96491
96506
|
"Fetch parameters must be specified when using HTTP transport on an Aura adapter"
|
|
96492
96507
|
);
|
|
96493
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
|
+
}
|
|
96494
96523
|
shouldUseAuraNetwork() {
|
|
96495
96524
|
return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
|
|
96496
96525
|
}
|
|
@@ -96509,7 +96538,7 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
96509
96538
|
(errs) => this.coerceAuraErrors(errs)
|
|
96510
96539
|
);
|
|
96511
96540
|
} else if (this.shouldUseFetch()) {
|
|
96512
|
-
const params = this.fetchParams;
|
|
96541
|
+
const params = this.withRequestOptions(this.fetchParams);
|
|
96513
96542
|
try {
|
|
96514
96543
|
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
96515
96544
|
} catch (reason) {
|
|
@@ -96656,13 +96685,17 @@ class NetworkCommand extends BaseCommand {
|
|
|
96656
96685
|
async afterRequestHooks(_options) {
|
|
96657
96686
|
}
|
|
96658
96687
|
}
|
|
96659
|
-
function applyOperationRequestOptions(init, operationType) {
|
|
96660
|
-
if (operationType === void 0) {
|
|
96688
|
+
function applyOperationRequestOptions$1(init, operationType, requestOptions) {
|
|
96689
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96661
96690
|
return init;
|
|
96662
96691
|
}
|
|
96663
96692
|
return {
|
|
96664
96693
|
...init,
|
|
96665
|
-
onestore: {
|
|
96694
|
+
onestore: {
|
|
96695
|
+
...requestOptions,
|
|
96696
|
+
...init?.onestore,
|
|
96697
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96698
|
+
}
|
|
96666
96699
|
};
|
|
96667
96700
|
}
|
|
96668
96701
|
function isAbortableCommand(command) {
|
|
@@ -96743,11 +96776,19 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
96743
96776
|
get operationType() {
|
|
96744
96777
|
return void 0;
|
|
96745
96778
|
}
|
|
96779
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides (`generateRequestOptionsGetter`). */
|
|
96780
|
+
get requestOptions() {
|
|
96781
|
+
return void 0;
|
|
96782
|
+
}
|
|
96746
96783
|
fetch(contextSeed) {
|
|
96747
96784
|
try {
|
|
96748
96785
|
const [input, init] = this.fetchParams;
|
|
96749
96786
|
const operationType = this.operationType;
|
|
96750
|
-
const initWithOptions = applyOperationRequestOptions(
|
|
96787
|
+
const initWithOptions = applyOperationRequestOptions$1(
|
|
96788
|
+
init,
|
|
96789
|
+
operationType,
|
|
96790
|
+
this.requestOptions
|
|
96791
|
+
);
|
|
96751
96792
|
const seed = operationType === void 0 ? contextSeed : { operationType, ...contextSeed };
|
|
96752
96793
|
const initWithSeed = seed === void 0 ? initWithOptions : { ...initWithOptions, __contextSeed: seed };
|
|
96753
96794
|
const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
|
|
@@ -96822,6 +96863,19 @@ function buildServiceDescriptor$j() {
|
|
|
96822
96863
|
};
|
|
96823
96864
|
}
|
|
96824
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
|
+
}
|
|
96825
96879
|
class HttpCacheControlCommand extends CacheControlCommand {
|
|
96826
96880
|
constructor(services) {
|
|
96827
96881
|
super(services);
|
|
@@ -96831,9 +96885,25 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
96831
96885
|
requestFromNetwork() {
|
|
96832
96886
|
return this.fetch();
|
|
96833
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
|
+
}
|
|
96834
96902
|
fetch() {
|
|
96835
96903
|
try {
|
|
96836
|
-
return this.convertFetchResponseToData(
|
|
96904
|
+
return this.convertFetchResponseToData(
|
|
96905
|
+
this.services.fetch(...this.withRequestOptions(this.fetchParams))
|
|
96906
|
+
);
|
|
96837
96907
|
} catch (reason) {
|
|
96838
96908
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
96839
96909
|
}
|
|
@@ -97843,7 +97913,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
97843
97913
|
},
|
|
97844
97914
|
};
|
|
97845
97915
|
}
|
|
97846
|
-
// version: 1.
|
|
97916
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97847
97917
|
|
|
97848
97918
|
/**
|
|
97849
97919
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97869,7 +97939,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
97869
97939
|
},
|
|
97870
97940
|
};
|
|
97871
97941
|
}
|
|
97872
|
-
// version: 1.
|
|
97942
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97873
97943
|
|
|
97874
97944
|
function findExecutableOperation$1(input) {
|
|
97875
97945
|
const operations = input.query.definitions.filter(
|
|
@@ -98066,7 +98136,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
98066
98136
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98067
98137
|
});
|
|
98068
98138
|
} else if (this.shouldUseFetch()) {
|
|
98069
|
-
const params = this.originalFetchParams;
|
|
98139
|
+
const params = this.withRequestOptions(this.originalFetchParams);
|
|
98070
98140
|
try {
|
|
98071
98141
|
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
98072
98142
|
(result) => {
|
|
@@ -98221,7 +98291,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
98221
98291
|
}
|
|
98222
98292
|
runOriginalRequest() {
|
|
98223
98293
|
return this.convertFetchResponseToData(
|
|
98224
|
-
this.services.fetch(...this.originalFetchParams)
|
|
98294
|
+
this.services.fetch(...this.withRequestOptions(this.originalFetchParams))
|
|
98225
98295
|
).then((result) => {
|
|
98226
98296
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98227
98297
|
});
|
|
@@ -100281,10 +100351,6 @@ function initializeOneStore(sqliteStore, luvio) {
|
|
|
100281
100351
|
const instrumentationServiceDescriptor = buildServiceDescriptor$e(loggerService);
|
|
100282
100352
|
const nimbusSqliteOneStoreCacheServiceDescriptor = buildNimbusDurableCacheInclusionPolicyService(cacheServiceDescriptor.service, new NimbusSqliteOneStoreCache(sqliteStore));
|
|
100283
100353
|
const featureFlagsServiceDescriptor = buildServiceDescriptor$c();
|
|
100284
|
-
const featureFlagsService = featureFlagsServiceDescriptor.service;
|
|
100285
|
-
// This disables the GraphQL mapping from lightning/uiGraphQLApi to lightning/graphql in this runtime
|
|
100286
|
-
// The gate is likely NOT to rollout ever, but we keep it here for completeness
|
|
100287
|
-
featureFlagsService.set('useOneStoreGraphQL', false);
|
|
100288
100354
|
const luvioUiapiRecordsServiceDescriptor = buildServiceDescriptor$a((configs) => {
|
|
100289
100355
|
return notifyUpdateAvailableFactory(luvio)(configs);
|
|
100290
100356
|
}, (recordId, reader) => {
|
|
@@ -100588,7 +100654,7 @@ register$1({
|
|
|
100588
100654
|
id: '@salesforce/lds-network-adapter',
|
|
100589
100655
|
instrument: instrument$2,
|
|
100590
100656
|
});
|
|
100591
|
-
// version: 1.
|
|
100657
|
+
// version: 1.466.0-b7b08a8e3c
|
|
100592
100658
|
|
|
100593
100659
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100594
100660
|
const { stringify, parse } = JSON;
|
|
@@ -107983,7 +108049,6 @@ let graphql_imperative$1;
|
|
|
107983
108049
|
let graphql_imperative_legacy;
|
|
107984
108050
|
let graphql_imperative_legacy_v1_import;
|
|
107985
108051
|
let graphql_state_manager;
|
|
107986
|
-
let useOneStoreGraphQL = false;
|
|
107987
108052
|
const serviceRequirements = {
|
|
107988
108053
|
instrumentCommand: {
|
|
107989
108054
|
type: 'instrumentCommand',
|
|
@@ -108127,9 +108192,8 @@ getServices(serviceRequirements).then((services) => {
|
|
|
108127
108192
|
const baseCommand = new executeMutation_ctor(config, mutationType, services);
|
|
108128
108193
|
return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
|
|
108129
108194
|
});
|
|
108130
|
-
useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
|
|
108131
108195
|
if (provisionedCallback) {
|
|
108132
|
-
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);
|
|
108133
108197
|
}
|
|
108134
108198
|
}, (_err) => { });
|
|
108135
108199
|
function registerCallback(cb) {
|
|
@@ -108137,10 +108201,10 @@ function registerCallback(cb) {
|
|
|
108137
108201
|
provisionedCallback = cb;
|
|
108138
108202
|
}
|
|
108139
108203
|
else {
|
|
108140
|
-
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);
|
|
108141
108205
|
}
|
|
108142
108206
|
}
|
|
108143
|
-
// version: 1.
|
|
108207
|
+
// version: 1.466.0-ba624febc8
|
|
108144
108208
|
|
|
108145
108209
|
function createFragmentMap(documentNode) {
|
|
108146
108210
|
const fragments = {};
|
|
@@ -136839,7 +136903,7 @@ let graphqlBatch;
|
|
|
136839
136903
|
// Imperative GET Adapters
|
|
136840
136904
|
let graphql_imperative;
|
|
136841
136905
|
let graphqlBatch_imperative;
|
|
136842
|
-
|
|
136906
|
+
const refreshGraphQL = (data) => {
|
|
136843
136907
|
return refresh$3(data, 'refreshUiApi');
|
|
136844
136908
|
};
|
|
136845
136909
|
// Adapter Metadata
|
|
@@ -136863,21 +136927,7 @@ withDefaultLuvio((luvio) => {
|
|
|
136863
136927
|
({ graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative } = bindExportsTo(luvio));
|
|
136864
136928
|
// We register the callback here rather than above withDefaultLuvio because we want environments
|
|
136865
136929
|
// that don't have onestore bootstrapped with the required services to default to the luvio versions of the adapters
|
|
136866
|
-
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative,
|
|
136867
|
-
if (useOneStoreGraphQL) {
|
|
136868
|
-
graphql = oneStoreGraphql;
|
|
136869
|
-
graphql_imperative = oneStoreGraphql_imperative_legacy;
|
|
136870
|
-
refreshGraphQL = (data) => {
|
|
136871
|
-
if (data?.data === undefined && data?.errors === undefined) {
|
|
136872
|
-
return Promise.resolve();
|
|
136873
|
-
}
|
|
136874
|
-
if (typeof data?.refresh === 'function') {
|
|
136875
|
-
return data.refresh();
|
|
136876
|
-
}
|
|
136877
|
-
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
136878
|
-
throw new Error('Component attempted to refresh a GraphQL result that is not refreshable');
|
|
136879
|
-
};
|
|
136880
|
-
}
|
|
136930
|
+
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, _oneStoreGraphql_imperative_legacy, oneStoreGraphql_state_manager) => {
|
|
136881
136931
|
});
|
|
136882
136932
|
});
|
|
136883
136933
|
|
|
@@ -137383,7 +137433,7 @@ register$1({
|
|
|
137383
137433
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
137384
137434
|
instrument: instrument$1,
|
|
137385
137435
|
});
|
|
137386
|
-
// version: 1.
|
|
137436
|
+
// version: 1.466.0-ba624febc8
|
|
137387
137437
|
|
|
137388
137438
|
// On core the unstable adapters are re-exported with different names,
|
|
137389
137439
|
// we want to match them here.
|
|
@@ -137395,7 +137445,7 @@ var unstableLightningRelatedListApi = /*#__PURE__*/Object.freeze({
|
|
|
137395
137445
|
gql: gql,
|
|
137396
137446
|
get graphql () { return graphql; },
|
|
137397
137447
|
get graphqlBatch () { return graphqlBatch; },
|
|
137398
|
-
|
|
137448
|
+
refreshGraphQL: refreshGraphQL,
|
|
137399
137449
|
get unstable_getActionOverrides_imperative () { return unstable_getActionOverrides_imperative; },
|
|
137400
137450
|
get unstable_getFlexipageFormulaOverrides_imperative () { return unstable_getFlexipageFormulaOverrides_imperative; },
|
|
137401
137451
|
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
@@ -137535,7 +137585,7 @@ withDefaultLuvio((luvio) => {
|
|
|
137535
137585
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137536
137586
|
graphQLImperative = ldsAdapter;
|
|
137537
137587
|
});
|
|
137538
|
-
// version: 1.
|
|
137588
|
+
// version: 1.466.0-ba624febc8
|
|
137539
137589
|
|
|
137540
137590
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137541
137591
|
__proto__: null,
|
|
@@ -138387,7 +138437,7 @@ const callbacks$1 = [];
|
|
|
138387
138437
|
function register(r) {
|
|
138388
138438
|
callbacks$1.forEach((callback) => callback(r));
|
|
138389
138439
|
}
|
|
138390
|
-
// version: 1.
|
|
138440
|
+
// version: 1.466.0-b7b08a8e3c
|
|
138391
138441
|
|
|
138392
138442
|
/**
|
|
138393
138443
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139676,4 +139726,4 @@ const { luvio } = getRuntime();
|
|
|
139676
139726
|
setDefaultLuvio({ luvio });
|
|
139677
139727
|
|
|
139678
139728
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToMergeAndMetadata, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
139679
|
-
// 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';
|
|
@@ -95702,8 +95688,8 @@
|
|
|
95702
95688
|
}
|
|
95703
95689
|
};
|
|
95704
95690
|
class UserVisibleError extends Error {
|
|
95705
|
-
constructor(data) {
|
|
95706
|
-
super();
|
|
95691
|
+
constructor(data, message) {
|
|
95692
|
+
super(message);
|
|
95707
95693
|
this.data = data;
|
|
95708
95694
|
this.type = "user-visible";
|
|
95709
95695
|
}
|
|
@@ -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,8 +95800,16 @@
|
|
|
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]);
|
|
95809
|
+
return new UserVisibleError(
|
|
95810
|
+
response,
|
|
95811
|
+
`Error from ${this.endpoint}, status ${response.status}`
|
|
95812
|
+
);
|
|
95815
95813
|
}
|
|
95816
95814
|
/**
|
|
95817
95815
|
* Customize how non-2xx fetch fallback responses are converted into errors.
|
|
@@ -95908,11 +95906,15 @@
|
|
|
95908
95906
|
this.auraParams,
|
|
95909
95907
|
this.actionConfig
|
|
95910
95908
|
),
|
|
95911
|
-
this.coerceAuraErrors
|
|
95909
|
+
(errs) => this.coerceAuraErrors(errs)
|
|
95912
95910
|
);
|
|
95913
95911
|
} else if (this.shouldUseFetch()) {
|
|
95914
95912
|
const [input, init] = this.fetchParams;
|
|
95915
|
-
const initWithOptions = applyOperationRequestOptions$
|
|
95913
|
+
const initWithOptions = applyOperationRequestOptions$3(
|
|
95914
|
+
init,
|
|
95915
|
+
this.operationType,
|
|
95916
|
+
this.requestOptions
|
|
95917
|
+
);
|
|
95916
95918
|
try {
|
|
95917
95919
|
const fetchCall = initWithOptions === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithOptions);
|
|
95918
95920
|
return this.convertFetchResponseToData(fetchCall);
|
|
@@ -96480,6 +96482,19 @@
|
|
|
96480
96482
|
};
|
|
96481
96483
|
}
|
|
96482
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
|
+
}
|
|
96483
96498
|
class AuraCacheControlCommand extends CacheControlCommand {
|
|
96484
96499
|
constructor(services) {
|
|
96485
96500
|
super(services);
|
|
@@ -96497,6 +96512,20 @@
|
|
|
96497
96512
|
"Fetch parameters must be specified when using HTTP transport on an Aura adapter"
|
|
96498
96513
|
);
|
|
96499
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
|
+
}
|
|
96500
96529
|
shouldUseAuraNetwork() {
|
|
96501
96530
|
return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
|
|
96502
96531
|
}
|
|
@@ -96515,7 +96544,7 @@
|
|
|
96515
96544
|
(errs) => this.coerceAuraErrors(errs)
|
|
96516
96545
|
);
|
|
96517
96546
|
} else if (this.shouldUseFetch()) {
|
|
96518
|
-
const params = this.fetchParams;
|
|
96547
|
+
const params = this.withRequestOptions(this.fetchParams);
|
|
96519
96548
|
try {
|
|
96520
96549
|
return this.convertFetchResponseToData(this.services.fetch(...params));
|
|
96521
96550
|
} catch (reason) {
|
|
@@ -96662,13 +96691,17 @@
|
|
|
96662
96691
|
async afterRequestHooks(_options) {
|
|
96663
96692
|
}
|
|
96664
96693
|
}
|
|
96665
|
-
function applyOperationRequestOptions(init, operationType) {
|
|
96666
|
-
if (operationType === void 0) {
|
|
96694
|
+
function applyOperationRequestOptions$1(init, operationType, requestOptions) {
|
|
96695
|
+
if (operationType === void 0 && requestOptions === void 0) {
|
|
96667
96696
|
return init;
|
|
96668
96697
|
}
|
|
96669
96698
|
return {
|
|
96670
96699
|
...init,
|
|
96671
|
-
onestore: {
|
|
96700
|
+
onestore: {
|
|
96701
|
+
...requestOptions,
|
|
96702
|
+
...init?.onestore,
|
|
96703
|
+
...operationType !== void 0 && { retrySafe: operationType === "query" }
|
|
96704
|
+
}
|
|
96672
96705
|
};
|
|
96673
96706
|
}
|
|
96674
96707
|
function isAbortableCommand(command) {
|
|
@@ -96749,11 +96782,19 @@
|
|
|
96749
96782
|
get operationType() {
|
|
96750
96783
|
return void 0;
|
|
96751
96784
|
}
|
|
96785
|
+
/** Declared `onestore` options (`handleServerError`, `compression`); generated overrides (`generateRequestOptionsGetter`). */
|
|
96786
|
+
get requestOptions() {
|
|
96787
|
+
return void 0;
|
|
96788
|
+
}
|
|
96752
96789
|
fetch(contextSeed) {
|
|
96753
96790
|
try {
|
|
96754
96791
|
const [input, init] = this.fetchParams;
|
|
96755
96792
|
const operationType = this.operationType;
|
|
96756
|
-
const initWithOptions = applyOperationRequestOptions(
|
|
96793
|
+
const initWithOptions = applyOperationRequestOptions$1(
|
|
96794
|
+
init,
|
|
96795
|
+
operationType,
|
|
96796
|
+
this.requestOptions
|
|
96797
|
+
);
|
|
96757
96798
|
const seed = operationType === void 0 ? contextSeed : { operationType, ...contextSeed };
|
|
96758
96799
|
const initWithSeed = seed === void 0 ? initWithOptions : { ...initWithOptions, __contextSeed: seed };
|
|
96759
96800
|
const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
|
|
@@ -96828,6 +96869,19 @@
|
|
|
96828
96869
|
};
|
|
96829
96870
|
}
|
|
96830
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
|
+
}
|
|
96831
96885
|
class HttpCacheControlCommand extends CacheControlCommand {
|
|
96832
96886
|
constructor(services) {
|
|
96833
96887
|
super(services);
|
|
@@ -96837,9 +96891,25 @@
|
|
|
96837
96891
|
requestFromNetwork() {
|
|
96838
96892
|
return this.fetch();
|
|
96839
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
|
+
}
|
|
96840
96908
|
fetch() {
|
|
96841
96909
|
try {
|
|
96842
|
-
return this.convertFetchResponseToData(
|
|
96910
|
+
return this.convertFetchResponseToData(
|
|
96911
|
+
this.services.fetch(...this.withRequestOptions(this.fetchParams))
|
|
96912
|
+
);
|
|
96843
96913
|
} catch (reason) {
|
|
96844
96914
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
96845
96915
|
}
|
|
@@ -97849,7 +97919,7 @@
|
|
|
97849
97919
|
},
|
|
97850
97920
|
};
|
|
97851
97921
|
}
|
|
97852
|
-
// version: 1.
|
|
97922
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97853
97923
|
|
|
97854
97924
|
/**
|
|
97855
97925
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97875,7 +97945,7 @@
|
|
|
97875
97945
|
},
|
|
97876
97946
|
};
|
|
97877
97947
|
}
|
|
97878
|
-
// version: 1.
|
|
97948
|
+
// version: 1.466.0-b7b08a8e3c
|
|
97879
97949
|
|
|
97880
97950
|
function findExecutableOperation$1(input) {
|
|
97881
97951
|
const operations = input.query.definitions.filter(
|
|
@@ -98072,7 +98142,7 @@
|
|
|
98072
98142
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98073
98143
|
});
|
|
98074
98144
|
} else if (this.shouldUseFetch()) {
|
|
98075
|
-
const params = this.originalFetchParams;
|
|
98145
|
+
const params = this.withRequestOptions(this.originalFetchParams);
|
|
98076
98146
|
try {
|
|
98077
98147
|
return this.convertFetchResponseToData(this.services.fetch(...params)).then(
|
|
98078
98148
|
(result) => {
|
|
@@ -98227,7 +98297,7 @@
|
|
|
98227
98297
|
}
|
|
98228
98298
|
runOriginalRequest() {
|
|
98229
98299
|
return this.convertFetchResponseToData(
|
|
98230
|
-
this.services.fetch(...this.originalFetchParams)
|
|
98300
|
+
this.services.fetch(...this.withRequestOptions(this.originalFetchParams))
|
|
98231
98301
|
).then((result) => {
|
|
98232
98302
|
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
98233
98303
|
});
|
|
@@ -100287,10 +100357,6 @@
|
|
|
100287
100357
|
const instrumentationServiceDescriptor = buildServiceDescriptor$e(loggerService);
|
|
100288
100358
|
const nimbusSqliteOneStoreCacheServiceDescriptor = buildNimbusDurableCacheInclusionPolicyService(cacheServiceDescriptor.service, new NimbusSqliteOneStoreCache(sqliteStore));
|
|
100289
100359
|
const featureFlagsServiceDescriptor = buildServiceDescriptor$c();
|
|
100290
|
-
const featureFlagsService = featureFlagsServiceDescriptor.service;
|
|
100291
|
-
// This disables the GraphQL mapping from lightning/uiGraphQLApi to lightning/graphql in this runtime
|
|
100292
|
-
// The gate is likely NOT to rollout ever, but we keep it here for completeness
|
|
100293
|
-
featureFlagsService.set('useOneStoreGraphQL', false);
|
|
100294
100360
|
const luvioUiapiRecordsServiceDescriptor = buildServiceDescriptor$a((configs) => {
|
|
100295
100361
|
return notifyUpdateAvailableFactory(luvio)(configs);
|
|
100296
100362
|
}, (recordId, reader) => {
|
|
@@ -100594,7 +100660,7 @@
|
|
|
100594
100660
|
id: '@salesforce/lds-network-adapter',
|
|
100595
100661
|
instrument: instrument$2,
|
|
100596
100662
|
});
|
|
100597
|
-
// version: 1.
|
|
100663
|
+
// version: 1.466.0-b7b08a8e3c
|
|
100598
100664
|
|
|
100599
100665
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100600
100666
|
const { stringify, parse } = JSON;
|
|
@@ -107989,7 +108055,6 @@
|
|
|
107989
108055
|
let graphql_imperative_legacy;
|
|
107990
108056
|
let graphql_imperative_legacy_v1_import;
|
|
107991
108057
|
let graphql_state_manager;
|
|
107992
|
-
let useOneStoreGraphQL = false;
|
|
107993
108058
|
const serviceRequirements = {
|
|
107994
108059
|
instrumentCommand: {
|
|
107995
108060
|
type: 'instrumentCommand',
|
|
@@ -108133,9 +108198,8 @@
|
|
|
108133
108198
|
const baseCommand = new executeMutation_ctor(config, mutationType, services);
|
|
108134
108199
|
return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
|
|
108135
108200
|
});
|
|
108136
|
-
useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
|
|
108137
108201
|
if (provisionedCallback) {
|
|
108138
|
-
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);
|
|
108139
108203
|
}
|
|
108140
108204
|
}, (_err) => { });
|
|
108141
108205
|
function registerCallback(cb) {
|
|
@@ -108143,10 +108207,10 @@
|
|
|
108143
108207
|
provisionedCallback = cb;
|
|
108144
108208
|
}
|
|
108145
108209
|
else {
|
|
108146
|
-
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);
|
|
108147
108211
|
}
|
|
108148
108212
|
}
|
|
108149
|
-
// version: 1.
|
|
108213
|
+
// version: 1.466.0-ba624febc8
|
|
108150
108214
|
|
|
108151
108215
|
function createFragmentMap(documentNode) {
|
|
108152
108216
|
const fragments = {};
|
|
@@ -136845,7 +136909,7 @@
|
|
|
136845
136909
|
// Imperative GET Adapters
|
|
136846
136910
|
let graphql_imperative;
|
|
136847
136911
|
let graphqlBatch_imperative;
|
|
136848
|
-
|
|
136912
|
+
const refreshGraphQL = (data) => {
|
|
136849
136913
|
return refresh$3(data, 'refreshUiApi');
|
|
136850
136914
|
};
|
|
136851
136915
|
// Adapter Metadata
|
|
@@ -136869,21 +136933,7 @@
|
|
|
136869
136933
|
({ graphql, graphqlBatch, graphql_imperative, graphqlBatch_imperative } = bindExportsTo(luvio));
|
|
136870
136934
|
// We register the callback here rather than above withDefaultLuvio because we want environments
|
|
136871
136935
|
// that don't have onestore bootstrapped with the required services to default to the luvio versions of the adapters
|
|
136872
|
-
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative,
|
|
136873
|
-
if (useOneStoreGraphQL) {
|
|
136874
|
-
graphql = oneStoreGraphql;
|
|
136875
|
-
graphql_imperative = oneStoreGraphql_imperative_legacy;
|
|
136876
|
-
refreshGraphQL = (data) => {
|
|
136877
|
-
if (data?.data === undefined && data?.errors === undefined) {
|
|
136878
|
-
return Promise.resolve();
|
|
136879
|
-
}
|
|
136880
|
-
if (typeof data?.refresh === 'function') {
|
|
136881
|
-
return data.refresh();
|
|
136882
|
-
}
|
|
136883
|
-
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
136884
|
-
throw new Error('Component attempted to refresh a GraphQL result that is not refreshable');
|
|
136885
|
-
};
|
|
136886
|
-
}
|
|
136936
|
+
registerCallback((oneStoreGraphql, oneStoreGraphql_imperative, _oneStoreGraphql_imperative_legacy, oneStoreGraphql_state_manager) => {
|
|
136887
136937
|
});
|
|
136888
136938
|
});
|
|
136889
136939
|
|
|
@@ -137389,7 +137439,7 @@
|
|
|
137389
137439
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
137390
137440
|
instrument: instrument$1,
|
|
137391
137441
|
});
|
|
137392
|
-
// version: 1.
|
|
137442
|
+
// version: 1.466.0-ba624febc8
|
|
137393
137443
|
|
|
137394
137444
|
// On core the unstable adapters are re-exported with different names,
|
|
137395
137445
|
// we want to match them here.
|
|
@@ -137401,7 +137451,7 @@
|
|
|
137401
137451
|
gql: gql,
|
|
137402
137452
|
get graphql () { return graphql; },
|
|
137403
137453
|
get graphqlBatch () { return graphqlBatch; },
|
|
137404
|
-
|
|
137454
|
+
refreshGraphQL: refreshGraphQL,
|
|
137405
137455
|
get unstable_getActionOverrides_imperative () { return unstable_getActionOverrides_imperative; },
|
|
137406
137456
|
get unstable_getFlexipageFormulaOverrides_imperative () { return unstable_getFlexipageFormulaOverrides_imperative; },
|
|
137407
137457
|
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
@@ -137541,7 +137591,7 @@
|
|
|
137541
137591
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137542
137592
|
graphQLImperative = ldsAdapter;
|
|
137543
137593
|
});
|
|
137544
|
-
// version: 1.
|
|
137594
|
+
// version: 1.466.0-ba624febc8
|
|
137545
137595
|
|
|
137546
137596
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137547
137597
|
__proto__: null,
|
|
@@ -138393,7 +138443,7 @@
|
|
|
138393
138443
|
function register(r) {
|
|
138394
138444
|
callbacks$1.forEach((callback) => callback(r));
|
|
138395
138445
|
}
|
|
138396
|
-
// version: 1.
|
|
138446
|
+
// version: 1.466.0-b7b08a8e3c
|
|
138397
138447
|
|
|
138398
138448
|
/**
|
|
138399
138449
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139704,4 +139754,4 @@
|
|
|
139704
139754
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
139705
139755
|
|
|
139706
139756
|
}));
|
|
139707
|
-
// 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",
|