@salesforce/lds-worker-api 1.402.0 → 1.404.0-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sfdc/es/ldsWorkerApi.js +1 -1
- package/dist/standalone/es/lds-worker-api.js +698 -1227
- package/dist/standalone/umd/lds-worker-api.js +698 -1227
- package/package.json +9 -9
|
@@ -33,30 +33,30 @@
|
|
|
33
33
|
const { parse: parse$c, stringify: stringify$c } = JSON;
|
|
34
34
|
const WeakSetCtor = WeakSet;
|
|
35
35
|
|
|
36
|
-
const deeplyFrozen$
|
|
36
|
+
const deeplyFrozen$1 = new WeakSetCtor();
|
|
37
37
|
// Allow custom environments to bypass deep freeze for performance reasons
|
|
38
38
|
let bypassDeepFreeze = false;
|
|
39
39
|
function setBypassDeepFreeze(value) {
|
|
40
40
|
bypassDeepFreeze = value;
|
|
41
41
|
}
|
|
42
|
-
function deepFreeze$
|
|
42
|
+
function deepFreeze$1(value) {
|
|
43
43
|
// No need to freeze primitives or already frozen stuff
|
|
44
44
|
if (bypassDeepFreeze ||
|
|
45
45
|
typeof value !== 'object' ||
|
|
46
46
|
value === null ||
|
|
47
|
-
deeplyFrozen$
|
|
47
|
+
deeplyFrozen$1.has(value)) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
deeplyFrozen$
|
|
50
|
+
deeplyFrozen$1.add(value);
|
|
51
51
|
if (isArray$a(value)) {
|
|
52
52
|
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
53
|
-
deepFreeze$
|
|
53
|
+
deepFreeze$1(value[i]);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
57
|
const keys$1 = keys$b(value);
|
|
58
58
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
59
|
-
deepFreeze$
|
|
59
|
+
deepFreeze$1(value[keys$1[i]]);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
freeze$7(value);
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
return snapshot.state === SnapshotState$3.Pending;
|
|
79
79
|
}
|
|
80
80
|
function createErrorSnapshot(error, refresh) {
|
|
81
|
-
deepFreeze$
|
|
81
|
+
deepFreeze$1(error);
|
|
82
82
|
const snap = {
|
|
83
83
|
error,
|
|
84
84
|
state: SnapshotState$3.Error,
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
if (this.snapshotChanged === false && selector.recordId === this.baseSnapshot.recordId) {
|
|
2621
2621
|
return this.baseSnapshot;
|
|
2622
2622
|
}
|
|
2623
|
-
deepFreeze$
|
|
2623
|
+
deepFreeze$1(data);
|
|
2624
2624
|
return {
|
|
2625
2625
|
recordId: selector.recordId,
|
|
2626
2626
|
select: selector,
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.
|
|
4283
|
+
// version: 1.404.0-dev1-48073cfce6
|
|
4284
4284
|
|
|
4285
4285
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4286
4286
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -4412,7 +4412,7 @@
|
|
|
4412
4412
|
throw new Error(`${messagePrefix}\n[${stringify$b(error)}]`);
|
|
4413
4413
|
}
|
|
4414
4414
|
|
|
4415
|
-
let Sanitizer$
|
|
4415
|
+
let Sanitizer$1 = class Sanitizer {
|
|
4416
4416
|
constructor(obj) {
|
|
4417
4417
|
this.obj = obj;
|
|
4418
4418
|
this.copy = {};
|
|
@@ -4466,8 +4466,8 @@
|
|
|
4466
4466
|
* into the luvio engine code nor into the adapters. All the data coming from LWC-land need to be
|
|
4467
4467
|
* sanitized first.
|
|
4468
4468
|
*/
|
|
4469
|
-
function sanitize$
|
|
4470
|
-
return new Sanitizer$
|
|
4469
|
+
function sanitize$1(obj) {
|
|
4470
|
+
return new Sanitizer$1(obj).sanitize();
|
|
4471
4471
|
}
|
|
4472
4472
|
|
|
4473
4473
|
class LWCLuvioWireAdapter {
|
|
@@ -4513,7 +4513,7 @@
|
|
|
4513
4513
|
*/
|
|
4514
4514
|
update(config, context) {
|
|
4515
4515
|
this.unsubscribe();
|
|
4516
|
-
this.config = sanitize$
|
|
4516
|
+
this.config = sanitize$1(config);
|
|
4517
4517
|
this.callAdapter(this.generateAdapterRequestContext(context));
|
|
4518
4518
|
}
|
|
4519
4519
|
// private and protected utility methods
|
|
@@ -4740,7 +4740,7 @@
|
|
|
4740
4740
|
}
|
|
4741
4741
|
const adapterRequestContext = this.generateAdapterRequestContext(context);
|
|
4742
4742
|
super.unsubscribe();
|
|
4743
|
-
this.config = sanitize$
|
|
4743
|
+
this.config = sanitize$1(config);
|
|
4744
4744
|
// this.callAdapterWithContext(mergedContext);
|
|
4745
4745
|
super.callAdapter(adapterRequestContext);
|
|
4746
4746
|
}
|
|
@@ -4912,7 +4912,7 @@
|
|
|
4912
4912
|
// sanitizing it makes a copy and we lose that reference
|
|
4913
4913
|
// so we avoid sanitizing it
|
|
4914
4914
|
return {
|
|
4915
|
-
...sanitize$
|
|
4915
|
+
...sanitize$1(config),
|
|
4916
4916
|
query: config.query,
|
|
4917
4917
|
};
|
|
4918
4918
|
}
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
const { apiFamily, name } = metadata;
|
|
5325
5325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5326
5326
|
}
|
|
5327
|
-
// version: 1.
|
|
5327
|
+
// version: 1.404.0-dev1-48073cfce6
|
|
5328
5328
|
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -11735,7 +11735,7 @@
|
|
|
11735
11735
|
const childSnapshotData = {
|
|
11736
11736
|
results: childSnapshotDataResponses,
|
|
11737
11737
|
};
|
|
11738
|
-
deepFreeze$
|
|
11738
|
+
deepFreeze$1(childSnapshotData);
|
|
11739
11739
|
return {
|
|
11740
11740
|
childSnapshotData,
|
|
11741
11741
|
seenRecords,
|
|
@@ -11854,7 +11854,7 @@
|
|
|
11854
11854
|
reader.exitPath();
|
|
11855
11855
|
}
|
|
11856
11856
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
11857
|
-
deepFreeze$
|
|
11857
|
+
deepFreeze$1(sink);
|
|
11858
11858
|
reader.exitPath();
|
|
11859
11859
|
return sink;
|
|
11860
11860
|
},
|
|
@@ -14107,7 +14107,7 @@
|
|
|
14107
14107
|
node: select$1O$1(luvio, resourceParams),
|
|
14108
14108
|
variables: {},
|
|
14109
14109
|
}, snapshotRefresh);
|
|
14110
|
-
deepFreeze$
|
|
14110
|
+
deepFreeze$1(snapshot.data);
|
|
14111
14111
|
return snapshot;
|
|
14112
14112
|
}
|
|
14113
14113
|
function ingestError$J(luvio, params, error, snapshotRefresh) {
|
|
@@ -15313,7 +15313,7 @@
|
|
|
15313
15313
|
node: select$1M$1(),
|
|
15314
15314
|
variables: {},
|
|
15315
15315
|
}, snapshotRefresh);
|
|
15316
|
-
deepFreeze$
|
|
15316
|
+
deepFreeze$1(snapshot.data);
|
|
15317
15317
|
return snapshot;
|
|
15318
15318
|
}
|
|
15319
15319
|
function ingestError$I(luvio, params, error, snapshotRefresh) {
|
|
@@ -17762,7 +17762,7 @@
|
|
|
17762
17762
|
node: select$1D$2(),
|
|
17763
17763
|
variables: {},
|
|
17764
17764
|
}, snapshotRefresh);
|
|
17765
|
-
deepFreeze$
|
|
17765
|
+
deepFreeze$1(snapshot.data);
|
|
17766
17766
|
return snapshot;
|
|
17767
17767
|
}
|
|
17768
17768
|
function ingestError$H(luvio, params, error, snapshotRefresh) {
|
|
@@ -17956,7 +17956,7 @@
|
|
|
17956
17956
|
node: select$1B$2(),
|
|
17957
17957
|
variables: {},
|
|
17958
17958
|
}, snapshotRefresh);
|
|
17959
|
-
deepFreeze$
|
|
17959
|
+
deepFreeze$1(snapshot.data);
|
|
17960
17960
|
return snapshot;
|
|
17961
17961
|
}
|
|
17962
17962
|
function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
@@ -18120,7 +18120,7 @@
|
|
|
18120
18120
|
node: select$1A$2(),
|
|
18121
18121
|
variables: {},
|
|
18122
18122
|
}, snapshotRefresh);
|
|
18123
|
-
deepFreeze$
|
|
18123
|
+
deepFreeze$1(snapshot.data);
|
|
18124
18124
|
return snapshot;
|
|
18125
18125
|
}
|
|
18126
18126
|
function ingestError$F(luvio, params, error, snapshotRefresh) {
|
|
@@ -18254,7 +18254,7 @@
|
|
|
18254
18254
|
node: select$1z$2(),
|
|
18255
18255
|
variables: {},
|
|
18256
18256
|
}, snapshotRefresh);
|
|
18257
|
-
deepFreeze$
|
|
18257
|
+
deepFreeze$1(snapshot.data);
|
|
18258
18258
|
return snapshot;
|
|
18259
18259
|
}
|
|
18260
18260
|
function ingestError$E(luvio, params, error, snapshotRefresh) {
|
|
@@ -18423,7 +18423,7 @@
|
|
|
18423
18423
|
node: select$1x$2(),
|
|
18424
18424
|
variables: {},
|
|
18425
18425
|
}, snapshotRefresh);
|
|
18426
|
-
deepFreeze$
|
|
18426
|
+
deepFreeze$1(snapshot.data);
|
|
18427
18427
|
return snapshot;
|
|
18428
18428
|
}
|
|
18429
18429
|
function ingestError$D(luvio, params, error, snapshotRefresh) {
|
|
@@ -18594,7 +18594,7 @@
|
|
|
18594
18594
|
node: select$1v$2(),
|
|
18595
18595
|
variables: {},
|
|
18596
18596
|
}, snapshotRefresh);
|
|
18597
|
-
deepFreeze$
|
|
18597
|
+
deepFreeze$1(snapshot.data);
|
|
18598
18598
|
return snapshot;
|
|
18599
18599
|
}
|
|
18600
18600
|
function ingestError$C(luvio, params, error, snapshotRefresh) {
|
|
@@ -19201,7 +19201,7 @@
|
|
|
19201
19201
|
node: select$1p$2(),
|
|
19202
19202
|
variables: {},
|
|
19203
19203
|
}, snapshotRefresh);
|
|
19204
|
-
deepFreeze$
|
|
19204
|
+
deepFreeze$1(snapshot.data);
|
|
19205
19205
|
return snapshot;
|
|
19206
19206
|
}
|
|
19207
19207
|
function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
@@ -19559,7 +19559,7 @@
|
|
|
19559
19559
|
node: select$1o$2(),
|
|
19560
19560
|
variables: {},
|
|
19561
19561
|
}, snapshotRefresh);
|
|
19562
|
-
deepFreeze$
|
|
19562
|
+
deepFreeze$1(snapshot.data);
|
|
19563
19563
|
return snapshot;
|
|
19564
19564
|
}
|
|
19565
19565
|
function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
@@ -19699,7 +19699,7 @@
|
|
|
19699
19699
|
node: select$1n$2(),
|
|
19700
19700
|
variables: {},
|
|
19701
19701
|
}, snapshotRefresh);
|
|
19702
|
-
deepFreeze$
|
|
19702
|
+
deepFreeze$1(snapshot.data);
|
|
19703
19703
|
return snapshot;
|
|
19704
19704
|
}
|
|
19705
19705
|
function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
@@ -19903,7 +19903,7 @@
|
|
|
19903
19903
|
node: select$1m$2(),
|
|
19904
19904
|
variables: {},
|
|
19905
19905
|
}, snapshotRefresh);
|
|
19906
|
-
deepFreeze$
|
|
19906
|
+
deepFreeze$1(snapshot.data);
|
|
19907
19907
|
return snapshot;
|
|
19908
19908
|
}
|
|
19909
19909
|
function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
@@ -20129,7 +20129,7 @@
|
|
|
20129
20129
|
statusCode: 200,
|
|
20130
20130
|
result: childSnapshot.data,
|
|
20131
20131
|
};
|
|
20132
|
-
deepFreeze$
|
|
20132
|
+
deepFreeze$1(childValue);
|
|
20133
20133
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
20134
20134
|
}
|
|
20135
20135
|
else {
|
|
@@ -20148,7 +20148,7 @@
|
|
|
20148
20148
|
statusCode: childStatusCode,
|
|
20149
20149
|
result: childBody,
|
|
20150
20150
|
};
|
|
20151
|
-
deepFreeze$
|
|
20151
|
+
deepFreeze$1(childValue);
|
|
20152
20152
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
20153
20153
|
}
|
|
20154
20154
|
// track non-cached responses so rebuilds work properly
|
|
@@ -20162,7 +20162,7 @@
|
|
|
20162
20162
|
const childSnapshotData = {
|
|
20163
20163
|
results: childSnapshotDataResponses
|
|
20164
20164
|
};
|
|
20165
|
-
deepFreeze$
|
|
20165
|
+
deepFreeze$1(childSnapshotData);
|
|
20166
20166
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
20167
20167
|
}
|
|
20168
20168
|
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -20412,7 +20412,7 @@
|
|
|
20412
20412
|
node: select$1k$2(),
|
|
20413
20413
|
variables: {},
|
|
20414
20414
|
}, snapshotRefresh);
|
|
20415
|
-
deepFreeze$
|
|
20415
|
+
deepFreeze$1(snapshot.data);
|
|
20416
20416
|
return snapshot;
|
|
20417
20417
|
}
|
|
20418
20418
|
function ingestError$v(luvio, params, error, snapshotRefresh) {
|
|
@@ -21133,7 +21133,7 @@
|
|
|
21133
21133
|
node: select$1f$2(),
|
|
21134
21134
|
variables: {},
|
|
21135
21135
|
}, snapshotRefresh);
|
|
21136
|
-
deepFreeze$
|
|
21136
|
+
deepFreeze$1(snapshot.data);
|
|
21137
21137
|
return snapshot;
|
|
21138
21138
|
}
|
|
21139
21139
|
function ingestError$u(luvio, params, error, snapshotRefresh) {
|
|
@@ -21267,7 +21267,7 @@
|
|
|
21267
21267
|
node: select$1e$2(),
|
|
21268
21268
|
variables: {},
|
|
21269
21269
|
}, snapshotRefresh);
|
|
21270
|
-
deepFreeze$
|
|
21270
|
+
deepFreeze$1(snapshot.data);
|
|
21271
21271
|
return snapshot;
|
|
21272
21272
|
}
|
|
21273
21273
|
function ingestError$t(luvio, params, error, snapshotRefresh) {
|
|
@@ -21603,7 +21603,7 @@
|
|
|
21603
21603
|
node: select$18$2(),
|
|
21604
21604
|
variables: {},
|
|
21605
21605
|
}, snapshotRefresh);
|
|
21606
|
-
deepFreeze$
|
|
21606
|
+
deepFreeze$1(snapshot.data);
|
|
21607
21607
|
return snapshot;
|
|
21608
21608
|
}
|
|
21609
21609
|
function ingestError$s(luvio, params, error, snapshotRefresh) {
|
|
@@ -22102,7 +22102,7 @@
|
|
|
22102
22102
|
node: select$17$2(),
|
|
22103
22103
|
variables: {},
|
|
22104
22104
|
}, snapshotRefresh);
|
|
22105
|
-
deepFreeze$
|
|
22105
|
+
deepFreeze$1(snapshot.data);
|
|
22106
22106
|
return snapshot;
|
|
22107
22107
|
}
|
|
22108
22108
|
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
@@ -22312,7 +22312,7 @@
|
|
|
22312
22312
|
statusCode: 200,
|
|
22313
22313
|
result: childSnapshot.data,
|
|
22314
22314
|
};
|
|
22315
|
-
deepFreeze$
|
|
22315
|
+
deepFreeze$1(childValue);
|
|
22316
22316
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
22317
22317
|
}
|
|
22318
22318
|
else {
|
|
@@ -22331,7 +22331,7 @@
|
|
|
22331
22331
|
statusCode: childStatusCode,
|
|
22332
22332
|
result: childBody,
|
|
22333
22333
|
};
|
|
22334
|
-
deepFreeze$
|
|
22334
|
+
deepFreeze$1(childValue);
|
|
22335
22335
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
22336
22336
|
}
|
|
22337
22337
|
// track non-cached responses so rebuilds work properly
|
|
@@ -22345,7 +22345,7 @@
|
|
|
22345
22345
|
const childSnapshotData = {
|
|
22346
22346
|
results: childSnapshotDataResponses
|
|
22347
22347
|
};
|
|
22348
|
-
deepFreeze$
|
|
22348
|
+
deepFreeze$1(childSnapshotData);
|
|
22349
22349
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
22350
22350
|
}
|
|
22351
22351
|
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -22504,7 +22504,7 @@
|
|
|
22504
22504
|
node: select$15$2(luvio, resourceParams),
|
|
22505
22505
|
variables: {},
|
|
22506
22506
|
}, snapshotRefresh);
|
|
22507
|
-
deepFreeze$
|
|
22507
|
+
deepFreeze$1(snapshot.data);
|
|
22508
22508
|
return snapshot;
|
|
22509
22509
|
}
|
|
22510
22510
|
function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
@@ -22808,7 +22808,7 @@
|
|
|
22808
22808
|
node: select$14$2(),
|
|
22809
22809
|
variables: {},
|
|
22810
22810
|
});
|
|
22811
|
-
deepFreeze$
|
|
22811
|
+
deepFreeze$1(snapshot.data);
|
|
22812
22812
|
return snapshot;
|
|
22813
22813
|
}
|
|
22814
22814
|
function createResourceRequest$I(config) {
|
|
@@ -22887,7 +22887,7 @@
|
|
|
22887
22887
|
return cache;
|
|
22888
22888
|
});
|
|
22889
22889
|
}, (response) => {
|
|
22890
|
-
deepFreeze$
|
|
22890
|
+
deepFreeze$1(response);
|
|
22891
22891
|
throw response;
|
|
22892
22892
|
});
|
|
22893
22893
|
}
|
|
@@ -22971,7 +22971,7 @@
|
|
|
22971
22971
|
return cache;
|
|
22972
22972
|
});
|
|
22973
22973
|
}, (response) => {
|
|
22974
|
-
deepFreeze$
|
|
22974
|
+
deepFreeze$1(response);
|
|
22975
22975
|
throw response;
|
|
22976
22976
|
});
|
|
22977
22977
|
}
|
|
@@ -23085,7 +23085,7 @@
|
|
|
23085
23085
|
node: select$13$2(),
|
|
23086
23086
|
variables: {},
|
|
23087
23087
|
});
|
|
23088
|
-
deepFreeze$
|
|
23088
|
+
deepFreeze$1(snapshot.data);
|
|
23089
23089
|
return snapshot;
|
|
23090
23090
|
}
|
|
23091
23091
|
function createResourceRequest$G(config) {
|
|
@@ -23163,7 +23163,7 @@
|
|
|
23163
23163
|
return cache;
|
|
23164
23164
|
});
|
|
23165
23165
|
}, (response) => {
|
|
23166
|
-
deepFreeze$
|
|
23166
|
+
deepFreeze$1(response);
|
|
23167
23167
|
throw response;
|
|
23168
23168
|
});
|
|
23169
23169
|
}
|
|
@@ -23618,7 +23618,7 @@
|
|
|
23618
23618
|
node: select$Y$2(),
|
|
23619
23619
|
variables: {},
|
|
23620
23620
|
}, snapshotRefresh);
|
|
23621
|
-
deepFreeze$
|
|
23621
|
+
deepFreeze$1(snapshot.data);
|
|
23622
23622
|
return snapshot;
|
|
23623
23623
|
}
|
|
23624
23624
|
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
@@ -23854,7 +23854,7 @@
|
|
|
23854
23854
|
node: select$W$2(),
|
|
23855
23855
|
variables: {},
|
|
23856
23856
|
}, snapshotRefresh);
|
|
23857
|
-
deepFreeze$
|
|
23857
|
+
deepFreeze$1(snapshot.data);
|
|
23858
23858
|
return snapshot;
|
|
23859
23859
|
}
|
|
23860
23860
|
function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
@@ -24002,7 +24002,7 @@
|
|
|
24002
24002
|
node: select$V$2(),
|
|
24003
24003
|
variables: {},
|
|
24004
24004
|
});
|
|
24005
|
-
deepFreeze$
|
|
24005
|
+
deepFreeze$1(snapshot.data);
|
|
24006
24006
|
return snapshot;
|
|
24007
24007
|
}
|
|
24008
24008
|
function createResourceRequest$D(config) {
|
|
@@ -24105,7 +24105,7 @@
|
|
|
24105
24105
|
return cache;
|
|
24106
24106
|
});
|
|
24107
24107
|
}, (response) => {
|
|
24108
|
-
deepFreeze$
|
|
24108
|
+
deepFreeze$1(response);
|
|
24109
24109
|
throw response;
|
|
24110
24110
|
});
|
|
24111
24111
|
}
|
|
@@ -24230,7 +24230,7 @@
|
|
|
24230
24230
|
node: select$T$2(),
|
|
24231
24231
|
variables: {},
|
|
24232
24232
|
}, snapshotRefresh);
|
|
24233
|
-
deepFreeze$
|
|
24233
|
+
deepFreeze$1(snapshot.data);
|
|
24234
24234
|
return snapshot;
|
|
24235
24235
|
}
|
|
24236
24236
|
function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
@@ -24364,7 +24364,7 @@
|
|
|
24364
24364
|
node: select$S$2(),
|
|
24365
24365
|
variables: {},
|
|
24366
24366
|
}, snapshotRefresh);
|
|
24367
|
-
deepFreeze$
|
|
24367
|
+
deepFreeze$1(snapshot.data);
|
|
24368
24368
|
return snapshot;
|
|
24369
24369
|
}
|
|
24370
24370
|
function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
@@ -24641,7 +24641,7 @@
|
|
|
24641
24641
|
statusCode: 200,
|
|
24642
24642
|
result: childSnapshot.data,
|
|
24643
24643
|
};
|
|
24644
|
-
deepFreeze$
|
|
24644
|
+
deepFreeze$1(childValue);
|
|
24645
24645
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
24646
24646
|
}
|
|
24647
24647
|
else {
|
|
@@ -24660,7 +24660,7 @@
|
|
|
24660
24660
|
statusCode: childStatusCode,
|
|
24661
24661
|
result: childBody,
|
|
24662
24662
|
};
|
|
24663
|
-
deepFreeze$
|
|
24663
|
+
deepFreeze$1(childValue);
|
|
24664
24664
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
24665
24665
|
}
|
|
24666
24666
|
// track non-cached responses so rebuilds work properly
|
|
@@ -24674,7 +24674,7 @@
|
|
|
24674
24674
|
const childSnapshotData = {
|
|
24675
24675
|
results: childSnapshotDataResponses
|
|
24676
24676
|
};
|
|
24677
|
-
deepFreeze$
|
|
24677
|
+
deepFreeze$1(childSnapshotData);
|
|
24678
24678
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
24679
24679
|
}
|
|
24680
24680
|
function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -25135,7 +25135,7 @@
|
|
|
25135
25135
|
node: select$I$2(),
|
|
25136
25136
|
variables: {},
|
|
25137
25137
|
}, snapshotRefresh);
|
|
25138
|
-
deepFreeze$
|
|
25138
|
+
deepFreeze$1(snapshot.data);
|
|
25139
25139
|
return snapshot;
|
|
25140
25140
|
}
|
|
25141
25141
|
function ingestError$i(luvio, params, error, snapshotRefresh) {
|
|
@@ -25442,7 +25442,7 @@
|
|
|
25442
25442
|
node: select$H$2(),
|
|
25443
25443
|
variables: {},
|
|
25444
25444
|
}, snapshotRefresh);
|
|
25445
|
-
deepFreeze$
|
|
25445
|
+
deepFreeze$1(snapshot.data);
|
|
25446
25446
|
return snapshot;
|
|
25447
25447
|
}
|
|
25448
25448
|
function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
@@ -25613,7 +25613,7 @@
|
|
|
25613
25613
|
node: select$F$2(),
|
|
25614
25614
|
variables: {},
|
|
25615
25615
|
}, snapshotRefresh);
|
|
25616
|
-
deepFreeze$
|
|
25616
|
+
deepFreeze$1(snapshot.data);
|
|
25617
25617
|
return snapshot;
|
|
25618
25618
|
}
|
|
25619
25619
|
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
@@ -27009,7 +27009,7 @@
|
|
|
27009
27009
|
node: select$t$2(),
|
|
27010
27010
|
variables: {},
|
|
27011
27011
|
}, snapshotRefresh);
|
|
27012
|
-
deepFreeze$
|
|
27012
|
+
deepFreeze$1(snapshot.data);
|
|
27013
27013
|
return snapshot;
|
|
27014
27014
|
}
|
|
27015
27015
|
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
@@ -27209,7 +27209,7 @@
|
|
|
27209
27209
|
statusCode: 200,
|
|
27210
27210
|
result: childSnapshot.data,
|
|
27211
27211
|
};
|
|
27212
|
-
deepFreeze$
|
|
27212
|
+
deepFreeze$1(childValue);
|
|
27213
27213
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
27214
27214
|
}
|
|
27215
27215
|
else {
|
|
@@ -27228,7 +27228,7 @@
|
|
|
27228
27228
|
statusCode: childStatusCode,
|
|
27229
27229
|
result: childBody,
|
|
27230
27230
|
};
|
|
27231
|
-
deepFreeze$
|
|
27231
|
+
deepFreeze$1(childValue);
|
|
27232
27232
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
27233
27233
|
}
|
|
27234
27234
|
// track non-cached responses so rebuilds work properly
|
|
@@ -27242,7 +27242,7 @@
|
|
|
27242
27242
|
const childSnapshotData = {
|
|
27243
27243
|
results: childSnapshotDataResponses
|
|
27244
27244
|
};
|
|
27245
|
-
deepFreeze$
|
|
27245
|
+
deepFreeze$1(childSnapshotData);
|
|
27246
27246
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
27247
27247
|
}
|
|
27248
27248
|
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -27621,7 +27621,7 @@
|
|
|
27621
27621
|
node: select$q$2(),
|
|
27622
27622
|
variables: {},
|
|
27623
27623
|
}, snapshotRefresh);
|
|
27624
|
-
deepFreeze$
|
|
27624
|
+
deepFreeze$1(snapshot.data);
|
|
27625
27625
|
return snapshot;
|
|
27626
27626
|
}
|
|
27627
27627
|
function ingestError$c$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -27832,7 +27832,7 @@
|
|
|
27832
27832
|
statusCode: 200,
|
|
27833
27833
|
result: childSnapshot.data,
|
|
27834
27834
|
};
|
|
27835
|
-
deepFreeze$
|
|
27835
|
+
deepFreeze$1(childValue);
|
|
27836
27836
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
27837
27837
|
}
|
|
27838
27838
|
else {
|
|
@@ -27851,7 +27851,7 @@
|
|
|
27851
27851
|
statusCode: childStatusCode,
|
|
27852
27852
|
result: childBody,
|
|
27853
27853
|
};
|
|
27854
|
-
deepFreeze$
|
|
27854
|
+
deepFreeze$1(childValue);
|
|
27855
27855
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
27856
27856
|
}
|
|
27857
27857
|
// track non-cached responses so rebuilds work properly
|
|
@@ -27865,7 +27865,7 @@
|
|
|
27865
27865
|
const childSnapshotData = {
|
|
27866
27866
|
results: childSnapshotDataResponses
|
|
27867
27867
|
};
|
|
27868
|
-
deepFreeze$
|
|
27868
|
+
deepFreeze$1(childSnapshotData);
|
|
27869
27869
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
27870
27870
|
}
|
|
27871
27871
|
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -28078,7 +28078,7 @@
|
|
|
28078
28078
|
node: select$n$2(),
|
|
28079
28079
|
variables: {},
|
|
28080
28080
|
}, snapshotRefresh);
|
|
28081
|
-
deepFreeze$
|
|
28081
|
+
deepFreeze$1(snapshot.data);
|
|
28082
28082
|
return snapshot;
|
|
28083
28083
|
}
|
|
28084
28084
|
function ingestError$a$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -28327,7 +28327,7 @@
|
|
|
28327
28327
|
node: select$m$2(),
|
|
28328
28328
|
variables: {},
|
|
28329
28329
|
});
|
|
28330
|
-
deepFreeze$
|
|
28330
|
+
deepFreeze$1(snapshot.data);
|
|
28331
28331
|
return snapshot;
|
|
28332
28332
|
}
|
|
28333
28333
|
function createResourceRequest$p(config) {
|
|
@@ -28405,7 +28405,7 @@
|
|
|
28405
28405
|
return cache;
|
|
28406
28406
|
});
|
|
28407
28407
|
}, (response) => {
|
|
28408
|
-
deepFreeze$
|
|
28408
|
+
deepFreeze$1(response);
|
|
28409
28409
|
throw response;
|
|
28410
28410
|
});
|
|
28411
28411
|
}
|
|
@@ -28485,7 +28485,7 @@
|
|
|
28485
28485
|
node: select$k$2(),
|
|
28486
28486
|
variables: {},
|
|
28487
28487
|
}, snapshotRefresh);
|
|
28488
|
-
deepFreeze$
|
|
28488
|
+
deepFreeze$1(snapshot.data);
|
|
28489
28489
|
return snapshot;
|
|
28490
28490
|
}
|
|
28491
28491
|
function ingestError$9$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -28688,7 +28688,7 @@
|
|
|
28688
28688
|
statusCode: 200,
|
|
28689
28689
|
result: childSnapshot.data,
|
|
28690
28690
|
};
|
|
28691
|
-
deepFreeze$
|
|
28691
|
+
deepFreeze$1(childValue);
|
|
28692
28692
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
28693
28693
|
}
|
|
28694
28694
|
else {
|
|
@@ -28707,7 +28707,7 @@
|
|
|
28707
28707
|
statusCode: childStatusCode,
|
|
28708
28708
|
result: childBody,
|
|
28709
28709
|
};
|
|
28710
|
-
deepFreeze$
|
|
28710
|
+
deepFreeze$1(childValue);
|
|
28711
28711
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
28712
28712
|
}
|
|
28713
28713
|
// track non-cached responses so rebuilds work properly
|
|
@@ -28721,7 +28721,7 @@
|
|
|
28721
28721
|
const childSnapshotData = {
|
|
28722
28722
|
results: childSnapshotDataResponses
|
|
28723
28723
|
};
|
|
28724
|
-
deepFreeze$
|
|
28724
|
+
deepFreeze$1(childSnapshotData);
|
|
28725
28725
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
28726
28726
|
}
|
|
28727
28727
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -28947,7 +28947,7 @@
|
|
|
28947
28947
|
node: select$i$2(),
|
|
28948
28948
|
variables: {},
|
|
28949
28949
|
});
|
|
28950
|
-
deepFreeze$
|
|
28950
|
+
deepFreeze$1(snapshot.data);
|
|
28951
28951
|
return snapshot;
|
|
28952
28952
|
}
|
|
28953
28953
|
function createResourceRequest$m$1(config) {
|
|
@@ -29048,7 +29048,7 @@
|
|
|
29048
29048
|
return cache;
|
|
29049
29049
|
});
|
|
29050
29050
|
}, (response) => {
|
|
29051
|
-
deepFreeze$
|
|
29051
|
+
deepFreeze$1(response);
|
|
29052
29052
|
throw response;
|
|
29053
29053
|
});
|
|
29054
29054
|
}
|
|
@@ -29942,7 +29942,7 @@
|
|
|
29942
29942
|
statusCode: 200,
|
|
29943
29943
|
result: childSnapshot.data,
|
|
29944
29944
|
};
|
|
29945
|
-
deepFreeze$
|
|
29945
|
+
deepFreeze$1(childValue);
|
|
29946
29946
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
29947
29947
|
}
|
|
29948
29948
|
else {
|
|
@@ -29961,7 +29961,7 @@
|
|
|
29961
29961
|
statusCode: childStatusCode,
|
|
29962
29962
|
result: childBody,
|
|
29963
29963
|
};
|
|
29964
|
-
deepFreeze$
|
|
29964
|
+
deepFreeze$1(childValue);
|
|
29965
29965
|
ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
|
|
29966
29966
|
}
|
|
29967
29967
|
// track non-cached responses so rebuilds work properly
|
|
@@ -29975,7 +29975,7 @@
|
|
|
29975
29975
|
const childSnapshotData = {
|
|
29976
29976
|
results: childSnapshotDataResponses
|
|
29977
29977
|
};
|
|
29978
|
-
deepFreeze$
|
|
29978
|
+
deepFreeze$1(childSnapshotData);
|
|
29979
29979
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
29980
29980
|
}
|
|
29981
29981
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -30360,7 +30360,7 @@
|
|
|
30360
30360
|
node: select$e$2(),
|
|
30361
30361
|
variables: {},
|
|
30362
30362
|
}, snapshotRefresh);
|
|
30363
|
-
deepFreeze$
|
|
30363
|
+
deepFreeze$1(snapshot.data);
|
|
30364
30364
|
return snapshot;
|
|
30365
30365
|
}
|
|
30366
30366
|
function ingestError$5$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -30543,7 +30543,7 @@
|
|
|
30543
30543
|
node: select$c$2(),
|
|
30544
30544
|
variables: {},
|
|
30545
30545
|
}, snapshotRefresh);
|
|
30546
|
-
deepFreeze$
|
|
30546
|
+
deepFreeze$1(snapshot.data);
|
|
30547
30547
|
return snapshot;
|
|
30548
30548
|
}
|
|
30549
30549
|
function ingestError$4$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -30724,7 +30724,7 @@
|
|
|
30724
30724
|
node: select$a$2(),
|
|
30725
30725
|
variables: {},
|
|
30726
30726
|
}, snapshotRefresh);
|
|
30727
|
-
deepFreeze$
|
|
30727
|
+
deepFreeze$1(snapshot.data);
|
|
30728
30728
|
return snapshot;
|
|
30729
30729
|
}
|
|
30730
30730
|
function ingestError$3$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -31043,7 +31043,7 @@
|
|
|
31043
31043
|
node: select$8$2(),
|
|
31044
31044
|
variables: {},
|
|
31045
31045
|
}, snapshotRefresh);
|
|
31046
|
-
deepFreeze$
|
|
31046
|
+
deepFreeze$1(snapshot.data);
|
|
31047
31047
|
return snapshot;
|
|
31048
31048
|
}
|
|
31049
31049
|
function ingestError$2$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -31246,7 +31246,7 @@
|
|
|
31246
31246
|
node: select$6$2(),
|
|
31247
31247
|
variables: {},
|
|
31248
31248
|
}, snapshotRefresh);
|
|
31249
|
-
deepFreeze$
|
|
31249
|
+
deepFreeze$1(snapshot.data);
|
|
31250
31250
|
return snapshot;
|
|
31251
31251
|
}
|
|
31252
31252
|
function ingestError$1$2(luvio, params, error, snapshotRefresh) {
|
|
@@ -31480,7 +31480,7 @@
|
|
|
31480
31480
|
hasErrors: response.hasErrors,
|
|
31481
31481
|
results: childSnapshotDataResponses,
|
|
31482
31482
|
};
|
|
31483
|
-
deepFreeze$
|
|
31483
|
+
deepFreeze$1(childSnapshotData);
|
|
31484
31484
|
return {
|
|
31485
31485
|
result: childSnapshotData,
|
|
31486
31486
|
seenRecords,
|
|
@@ -31603,7 +31603,7 @@
|
|
|
31603
31603
|
return cache;
|
|
31604
31604
|
});
|
|
31605
31605
|
}, (response) => {
|
|
31606
|
-
deepFreeze$
|
|
31606
|
+
deepFreeze$1(response);
|
|
31607
31607
|
throw response;
|
|
31608
31608
|
});
|
|
31609
31609
|
}
|
|
@@ -31634,7 +31634,7 @@
|
|
|
31634
31634
|
node: select$5$2(),
|
|
31635
31635
|
variables: {},
|
|
31636
31636
|
});
|
|
31637
|
-
deepFreeze$
|
|
31637
|
+
deepFreeze$1(snapshot.data);
|
|
31638
31638
|
return snapshot;
|
|
31639
31639
|
}
|
|
31640
31640
|
function createResourceRequest$d$1(config) {
|
|
@@ -31673,7 +31673,7 @@
|
|
|
31673
31673
|
return cache;
|
|
31674
31674
|
});
|
|
31675
31675
|
}, (response) => {
|
|
31676
|
-
deepFreeze$
|
|
31676
|
+
deepFreeze$1(response);
|
|
31677
31677
|
throw response;
|
|
31678
31678
|
});
|
|
31679
31679
|
}
|
|
@@ -31693,7 +31693,7 @@
|
|
|
31693
31693
|
node: select$4$2(),
|
|
31694
31694
|
variables: {},
|
|
31695
31695
|
});
|
|
31696
|
-
deepFreeze$
|
|
31696
|
+
deepFreeze$1(snapshot.data);
|
|
31697
31697
|
return snapshot;
|
|
31698
31698
|
}
|
|
31699
31699
|
function createResourceRequest$c$1(config) {
|
|
@@ -31732,7 +31732,7 @@
|
|
|
31732
31732
|
return cache;
|
|
31733
31733
|
});
|
|
31734
31734
|
}, (response) => {
|
|
31735
|
-
deepFreeze$
|
|
31735
|
+
deepFreeze$1(response);
|
|
31736
31736
|
throw response;
|
|
31737
31737
|
});
|
|
31738
31738
|
}
|
|
@@ -31819,7 +31819,7 @@
|
|
|
31819
31819
|
return cache;
|
|
31820
31820
|
});
|
|
31821
31821
|
}, (err) => {
|
|
31822
|
-
deepFreeze$
|
|
31822
|
+
deepFreeze$1(err);
|
|
31823
31823
|
throw err;
|
|
31824
31824
|
});
|
|
31825
31825
|
}
|
|
@@ -32399,7 +32399,7 @@
|
|
|
32399
32399
|
.map((targetApiName) => body.lookupResults[targetApiName].records)
|
|
32400
32400
|
.reduce((allRecords, records) => allRecords.concat(records), [])
|
|
32401
32401
|
.forEach((record) => removeEtags$1(record));
|
|
32402
|
-
deepFreeze$
|
|
32402
|
+
deepFreeze$1(body);
|
|
32403
32403
|
return Promise.resolve({
|
|
32404
32404
|
state: 'Fulfilled',
|
|
32405
32405
|
recordId: key,
|
|
@@ -32555,7 +32555,7 @@
|
|
|
32555
32555
|
return cache;
|
|
32556
32556
|
});
|
|
32557
32557
|
}, (err) => {
|
|
32558
|
-
deepFreeze$
|
|
32558
|
+
deepFreeze$1(err);
|
|
32559
32559
|
throw err;
|
|
32560
32560
|
});
|
|
32561
32561
|
};
|
|
@@ -34165,7 +34165,7 @@
|
|
|
34165
34165
|
return cache;
|
|
34166
34166
|
});
|
|
34167
34167
|
}, (err) => {
|
|
34168
|
-
deepFreeze$
|
|
34168
|
+
deepFreeze$1(err);
|
|
34169
34169
|
throw err;
|
|
34170
34170
|
});
|
|
34171
34171
|
}
|
|
@@ -34251,7 +34251,7 @@
|
|
|
34251
34251
|
return cache;
|
|
34252
34252
|
});
|
|
34253
34253
|
}, (response) => {
|
|
34254
|
-
deepFreeze$
|
|
34254
|
+
deepFreeze$1(response);
|
|
34255
34255
|
throw response;
|
|
34256
34256
|
});
|
|
34257
34257
|
}
|
|
@@ -34416,7 +34416,7 @@
|
|
|
34416
34416
|
return cache;
|
|
34417
34417
|
});
|
|
34418
34418
|
}, (err) => {
|
|
34419
|
-
deepFreeze$
|
|
34419
|
+
deepFreeze$1(err);
|
|
34420
34420
|
throw err;
|
|
34421
34421
|
});
|
|
34422
34422
|
}
|
|
@@ -34658,7 +34658,7 @@
|
|
|
34658
34658
|
return cache;
|
|
34659
34659
|
});
|
|
34660
34660
|
}, (response) => {
|
|
34661
|
-
deepFreeze$
|
|
34661
|
+
deepFreeze$1(response);
|
|
34662
34662
|
throw response;
|
|
34663
34663
|
});
|
|
34664
34664
|
}
|
|
@@ -34729,7 +34729,7 @@
|
|
|
34729
34729
|
return cache;
|
|
34730
34730
|
});
|
|
34731
34731
|
}, (response) => {
|
|
34732
|
-
deepFreeze$
|
|
34732
|
+
deepFreeze$1(response);
|
|
34733
34733
|
throw response;
|
|
34734
34734
|
});
|
|
34735
34735
|
}
|
|
@@ -35438,7 +35438,16 @@
|
|
|
35438
35438
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
35439
35439
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
35440
35440
|
});
|
|
35441
|
-
// version: 1.
|
|
35441
|
+
// version: 1.404.0-dev1-9582436c8f
|
|
35442
|
+
|
|
35443
|
+
var allowUpdatesForNonCachedRecords = {
|
|
35444
|
+
isOpen: function (e) {
|
|
35445
|
+
return e.fallback;
|
|
35446
|
+
},
|
|
35447
|
+
hasError: function () {
|
|
35448
|
+
return !0;
|
|
35449
|
+
},
|
|
35450
|
+
};
|
|
35442
35451
|
|
|
35443
35452
|
function requestIdleDetectedCallback(_callback) { }
|
|
35444
35453
|
function declareNotifierTaskSingle(_name) {
|
|
@@ -35483,6 +35492,8 @@
|
|
|
35483
35492
|
return mockInstrumentation;
|
|
35484
35493
|
};
|
|
35485
35494
|
|
|
35495
|
+
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
35496
|
+
|
|
35486
35497
|
/**
|
|
35487
35498
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
35488
35499
|
* otherwise returns false.
|
|
@@ -46952,8 +46963,6 @@
|
|
|
46952
46963
|
},
|
|
46953
46964
|
};
|
|
46954
46965
|
|
|
46955
|
-
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
46956
|
-
|
|
46957
46966
|
var ldsAdapterO11yLoggingGate = {
|
|
46958
46967
|
isOpen: function (e) {
|
|
46959
46968
|
return e.fallback;
|
|
@@ -47967,7 +47976,7 @@
|
|
|
47967
47976
|
}
|
|
47968
47977
|
if (isStoreEntryError(data)) {
|
|
47969
47978
|
// freeze errors on way into L1
|
|
47970
|
-
deepFreeze$
|
|
47979
|
+
deepFreeze$1(data.error);
|
|
47971
47980
|
}
|
|
47972
47981
|
put(key, data);
|
|
47973
47982
|
revivedKeys.add(key);
|
|
@@ -50571,7 +50580,7 @@
|
|
|
50571
50580
|
}
|
|
50572
50581
|
const keyPrefix$2 = 'UiApi';
|
|
50573
50582
|
|
|
50574
|
-
const { assign: assign$2$1, create: create$3$1, entries: entries$3, freeze: freeze$1$
|
|
50583
|
+
const { assign: assign$2$1, create: create$3$1, entries: entries$3, freeze: freeze$1$1, isFrozen: isFrozen$3, keys: keys$3$1, values: values$1 } = Object;
|
|
50575
50584
|
const { hasOwnProperty: hasOwnProperty$4 } = Object.prototype;
|
|
50576
50585
|
const { split, endsWith } = String.prototype;
|
|
50577
50586
|
const { from: from$1, isArray: isArray$3$1 } = Array;
|
|
@@ -52438,7 +52447,7 @@
|
|
|
52438
52447
|
}
|
|
52439
52448
|
return reduce$2.call(childKeys, (acc, cur) => concat$2.call(acc, convertTrieToFieldsRecursively(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
|
|
52440
52449
|
}
|
|
52441
|
-
const BLANK_RECORD_FIELDS_TRIE = freeze$1$
|
|
52450
|
+
const BLANK_RECORD_FIELDS_TRIE = freeze$1$1({
|
|
52442
52451
|
name: '',
|
|
52443
52452
|
children: {},
|
|
52444
52453
|
});
|
|
@@ -52993,7 +53002,7 @@
|
|
|
52993
53002
|
const childSnapshotData = {
|
|
52994
53003
|
results: childSnapshotDataResponses,
|
|
52995
53004
|
};
|
|
52996
|
-
deepFreeze$
|
|
53005
|
+
deepFreeze$1(childSnapshotData);
|
|
52997
53006
|
return {
|
|
52998
53007
|
childSnapshotData,
|
|
52999
53008
|
seenRecords,
|
|
@@ -53112,7 +53121,7 @@
|
|
|
53112
53121
|
reader.exitPath();
|
|
53113
53122
|
}
|
|
53114
53123
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
53115
|
-
deepFreeze$
|
|
53124
|
+
deepFreeze$1(sink);
|
|
53116
53125
|
reader.exitPath();
|
|
53117
53126
|
return sink;
|
|
53118
53127
|
},
|
|
@@ -55065,7 +55074,7 @@
|
|
|
55065
55074
|
node: select$1p$1(luvio, resourceParams),
|
|
55066
55075
|
variables: {},
|
|
55067
55076
|
}, snapshotRefresh);
|
|
55068
|
-
deepFreeze$
|
|
55077
|
+
deepFreeze$1(snapshot.data);
|
|
55069
55078
|
return snapshot;
|
|
55070
55079
|
}
|
|
55071
55080
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
@@ -59221,7 +59230,7 @@
|
|
|
59221
59230
|
statusCode: 200,
|
|
59222
59231
|
result: childSnapshot.data,
|
|
59223
59232
|
};
|
|
59224
|
-
deepFreeze$
|
|
59233
|
+
deepFreeze$1(childValue);
|
|
59225
59234
|
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
59226
59235
|
}
|
|
59227
59236
|
else {
|
|
@@ -59240,7 +59249,7 @@
|
|
|
59240
59249
|
statusCode: childStatusCode,
|
|
59241
59250
|
result: childBody,
|
|
59242
59251
|
};
|
|
59243
|
-
deepFreeze$
|
|
59252
|
+
deepFreeze$1(childValue);
|
|
59244
59253
|
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
59245
59254
|
}
|
|
59246
59255
|
// track non-cached responses so rebuilds work properly
|
|
@@ -59258,7 +59267,7 @@
|
|
|
59258
59267
|
const childSnapshotData = {
|
|
59259
59268
|
results: childSnapshotDataResponses,
|
|
59260
59269
|
};
|
|
59261
|
-
deepFreeze$
|
|
59270
|
+
deepFreeze$1(childSnapshotData);
|
|
59262
59271
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
59263
59272
|
}
|
|
59264
59273
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
@@ -59857,7 +59866,7 @@
|
|
|
59857
59866
|
node: select$1h$1(),
|
|
59858
59867
|
variables: {},
|
|
59859
59868
|
}, snapshotRefresh);
|
|
59860
|
-
deepFreeze$
|
|
59869
|
+
deepFreeze$1(snapshot.data);
|
|
59861
59870
|
return snapshot;
|
|
59862
59871
|
}
|
|
59863
59872
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
@@ -60073,7 +60082,7 @@
|
|
|
60073
60082
|
node: select$1f$1(),
|
|
60074
60083
|
variables: {},
|
|
60075
60084
|
}, snapshotRefresh);
|
|
60076
|
-
deepFreeze$
|
|
60085
|
+
deepFreeze$1(snapshot.data);
|
|
60077
60086
|
return snapshot;
|
|
60078
60087
|
}
|
|
60079
60088
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
@@ -60766,7 +60775,7 @@
|
|
|
60766
60775
|
.map((targetApiName) => body.lookupResults[targetApiName].records)
|
|
60767
60776
|
.reduce((allRecords, records) => allRecords.concat(records), [])
|
|
60768
60777
|
.forEach((record) => removeEtags(record));
|
|
60769
|
-
deepFreeze$
|
|
60778
|
+
deepFreeze$1(body);
|
|
60770
60779
|
return Promise.resolve({
|
|
60771
60780
|
state: 'Fulfilled',
|
|
60772
60781
|
recordId: key,
|
|
@@ -79760,7 +79769,7 @@
|
|
|
79760
79769
|
const fieldKey = getSerializedKeyForField$1(requestedField, variables, fieldType);
|
|
79761
79770
|
if (fieldType === undefined) {
|
|
79762
79771
|
console.warn(`Unknown Field: ${requestedField}. This field or nested fields cannot participate in normalization`);
|
|
79763
|
-
deepFreeze$
|
|
79772
|
+
deepFreeze$1(fieldData);
|
|
79764
79773
|
sink[fieldKey] = fieldData;
|
|
79765
79774
|
continue;
|
|
79766
79775
|
}
|
|
@@ -80617,7 +80626,7 @@
|
|
|
80617
80626
|
}
|
|
80618
80627
|
}
|
|
80619
80628
|
}
|
|
80620
|
-
deepFreeze$
|
|
80629
|
+
deepFreeze$1(trimmedEdges);
|
|
80621
80630
|
const paginatedData = {
|
|
80622
80631
|
data: {
|
|
80623
80632
|
...source,
|
|
@@ -81651,15 +81660,21 @@
|
|
|
81651
81660
|
// allowed us to get a record with the fields we have cached (i.e. would never go to the network)
|
|
81652
81661
|
const doesRecordExist = await this.durableRecordStore.exists(tag);
|
|
81653
81662
|
if (!doesRecordExist) {
|
|
81654
|
-
|
|
81655
|
-
|
|
81656
|
-
|
|
81657
|
-
|
|
81658
|
-
|
|
81659
|
-
|
|
81660
|
-
|
|
81661
|
-
|
|
81662
|
-
|
|
81663
|
+
if (!allowUpdatesForNonCachedRecords.isOpen({ fallback: false })) {
|
|
81664
|
+
// we are trying to patch or delete a record that we don't have cached. This is not supported.
|
|
81665
|
+
// we'll do one last ditch effort to fetch the record with just the Id field in case we're online.
|
|
81666
|
+
// Note this scenario is unlikely outside test and manual test environments
|
|
81667
|
+
const record = await getAdapterData(this.getRecordAdapter, {
|
|
81668
|
+
recordId: targetId,
|
|
81669
|
+
optionalFields: [`${targetApiName}.Id`],
|
|
81670
|
+
});
|
|
81671
|
+
if (record === undefined) {
|
|
81672
|
+
throw Error('Cannot apply a draft to a record that is not cached');
|
|
81673
|
+
}
|
|
81674
|
+
}
|
|
81675
|
+
else if (resolvedRequest.method !== 'patch') {
|
|
81676
|
+
// the allowUpdatesForNonCachedRecords gate is open but a patch is not being attempted. This is not supported.
|
|
81677
|
+
throw Error('Can only perform patch on a record that is not cached');
|
|
81663
81678
|
}
|
|
81664
81679
|
}
|
|
81665
81680
|
}
|
|
@@ -82660,7 +82675,7 @@
|
|
|
82660
82675
|
...trimmedDownData.contentVersion,
|
|
82661
82676
|
fields: cvFields,
|
|
82662
82677
|
};
|
|
82663
|
-
freeze$1$
|
|
82678
|
+
freeze$1$1(trimmedDownData);
|
|
82664
82679
|
eventEmitter({ type: 'create-content-document-and-version-draft-finished' });
|
|
82665
82680
|
return {
|
|
82666
82681
|
state: 'Fulfilled',
|
|
@@ -82992,8 +83007,8 @@
|
|
|
82992
83007
|
* @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
|
|
82993
83008
|
* register it with the DraftQueue, runtime should set that up
|
|
82994
83009
|
*/
|
|
82995
|
-
function updateRecordDraftAdapterFactory(actionHandler, durableRecordStore) {
|
|
82996
|
-
return async function
|
|
83010
|
+
function updateRecordDraftAdapterFactory(actionHandler, durableRecordStore, objectInfoService) {
|
|
83011
|
+
return async function updateRecordDraftAdapter(config, createResourceRequest) {
|
|
82997
83012
|
const request = createResourceRequest(config);
|
|
82998
83013
|
if (actionHandler.hasIdempotencySupport()) {
|
|
82999
83014
|
request.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
@@ -83007,6 +83022,38 @@
|
|
|
83007
83022
|
if (!record) {
|
|
83008
83023
|
record = await durableRecordStore.getRedirectedRecord(action.tag);
|
|
83009
83024
|
}
|
|
83025
|
+
if (record === undefined && allowUpdatesForNonCachedRecords.isOpen({ fallback: false })) {
|
|
83026
|
+
// Fabricate synthetic record for non-cached update.
|
|
83027
|
+
let apiName = config.apiName;
|
|
83028
|
+
if (!apiName) {
|
|
83029
|
+
// try to determine the apiName from the record id prefix
|
|
83030
|
+
try {
|
|
83031
|
+
apiName = await objectInfoService.apiNameForPrefix(config.recordId.substring(0, 3));
|
|
83032
|
+
}
|
|
83033
|
+
catch (error) {
|
|
83034
|
+
throw transformErrorToDraftSynthesisError(new Error(`Cannot determine apiName for record ${config.recordId}: ${error}`));
|
|
83035
|
+
}
|
|
83036
|
+
}
|
|
83037
|
+
const recordFields = Object.entries(config.fields || {}).reduce((acc, [key, value]) => {
|
|
83038
|
+
acc[key] = { value, displayValue: null };
|
|
83039
|
+
return acc;
|
|
83040
|
+
}, {});
|
|
83041
|
+
const currentTimestamp = new Date().toISOString();
|
|
83042
|
+
// fabricate the record
|
|
83043
|
+
record = {
|
|
83044
|
+
id: config.recordId,
|
|
83045
|
+
apiName: apiName,
|
|
83046
|
+
fields: recordFields,
|
|
83047
|
+
systemModstamp: currentTimestamp,
|
|
83048
|
+
lastModifiedDate: currentTimestamp,
|
|
83049
|
+
lastModifiedById: caseSensitiveUserId,
|
|
83050
|
+
recordTypeId: null,
|
|
83051
|
+
recordTypeInfo: null,
|
|
83052
|
+
weakEtag: 0,
|
|
83053
|
+
eTag: '',
|
|
83054
|
+
childRelationships: {},
|
|
83055
|
+
};
|
|
83056
|
+
}
|
|
83010
83057
|
if (record) {
|
|
83011
83058
|
return {
|
|
83012
83059
|
state: 'Fulfilled',
|
|
@@ -83046,7 +83093,7 @@
|
|
|
83046
83093
|
const request = createResourceRequest(config);
|
|
83047
83094
|
const action = await actionHandler.enqueue(request).catch((err) => {
|
|
83048
83095
|
const error = transformErrorToDraftSynthesisError(err);
|
|
83049
|
-
deepFreeze$
|
|
83096
|
+
deepFreeze$1(error);
|
|
83050
83097
|
throw error;
|
|
83051
83098
|
});
|
|
83052
83099
|
let contextId = action.data.body.contextId;
|
|
@@ -83082,7 +83129,7 @@
|
|
|
83082
83129
|
const request = createResourceRequest(config);
|
|
83083
83130
|
const action = await actionHandler.enqueue(request).catch((err) => {
|
|
83084
83131
|
const error = transformErrorToDraftSynthesisError(err);
|
|
83085
|
-
deepFreeze$
|
|
83132
|
+
deepFreeze$1(error);
|
|
83086
83133
|
throw error;
|
|
83087
83134
|
});
|
|
83088
83135
|
let contextId = action.data.body.contextId;
|
|
@@ -90100,7 +90147,7 @@
|
|
|
90100
90147
|
const { keys: keys$2$1, create: create$2$1, assign: assign$1$1, entries: entries$2 } = Object;
|
|
90101
90148
|
const { stringify: stringify$4, parse: parse$4 } = JSON;
|
|
90102
90149
|
const { push: push$3, join: join$1, slice } = Array.prototype;
|
|
90103
|
-
const { isArray: isArray$2$
|
|
90150
|
+
const { isArray: isArray$2$1, from } = Array;
|
|
90104
90151
|
|
|
90105
90152
|
function ldsParamsToString(params) {
|
|
90106
90153
|
const returnParams = create$2$1(null);
|
|
@@ -90112,7 +90159,7 @@
|
|
|
90112
90159
|
// filter out params that have no value
|
|
90113
90160
|
continue;
|
|
90114
90161
|
}
|
|
90115
|
-
if (isArray$2$
|
|
90162
|
+
if (isArray$2$1(value)) {
|
|
90116
90163
|
// filter out empty arrays
|
|
90117
90164
|
if (value.length > 0) {
|
|
90118
90165
|
returnParams[key] = value.join(',');
|
|
@@ -90175,7 +90222,7 @@
|
|
|
90175
90222
|
}
|
|
90176
90223
|
// adapted from adapter-utils untrustedIsObject
|
|
90177
90224
|
function isObject$2(value) {
|
|
90178
|
-
return typeof value === 'object' && value !== null && isArray$2$
|
|
90225
|
+
return typeof value === 'object' && value !== null && isArray$2$1(value) === false;
|
|
90179
90226
|
}
|
|
90180
90227
|
function stringifyIfPresent(value) {
|
|
90181
90228
|
if (value === undefined || value === null) {
|
|
@@ -90525,7 +90572,7 @@
|
|
|
90525
90572
|
const queryString = [];
|
|
90526
90573
|
for (const [key, value] of entries$2(mergedParams)) {
|
|
90527
90574
|
if (value !== undefined) {
|
|
90528
|
-
queryString.push(`${key}=${isArray$2$
|
|
90575
|
+
queryString.push(`${key}=${isArray$2$1(value) ? value.join(',') : value}`);
|
|
90529
90576
|
}
|
|
90530
90577
|
}
|
|
90531
90578
|
return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
|
|
@@ -90676,7 +90723,7 @@
|
|
|
90676
90723
|
* @returns the array or an empty array
|
|
90677
90724
|
*/
|
|
90678
90725
|
function arrayOrEmpty(array) {
|
|
90679
|
-
return array !== undefined && isArray$2$
|
|
90726
|
+
return array !== undefined && isArray$2$1(array) ? array : [];
|
|
90680
90727
|
}
|
|
90681
90728
|
/**
|
|
90682
90729
|
* Calculate the max length per chunk.
|
|
@@ -90720,13 +90767,13 @@
|
|
|
90720
90767
|
*/
|
|
90721
90768
|
function mergeGetRecordResult(first, second) {
|
|
90722
90769
|
// return the error if first is error.
|
|
90723
|
-
if (isArray$2$
|
|
90770
|
+
if (isArray$2$1(first) && !isArray$2$1(second))
|
|
90724
90771
|
return first;
|
|
90725
90772
|
// return the error if second is error.
|
|
90726
|
-
if (!isArray$2$
|
|
90773
|
+
if (!isArray$2$1(first) && isArray$2$1(second))
|
|
90727
90774
|
return second;
|
|
90728
90775
|
// concat the error array if both are error
|
|
90729
|
-
if (isArray$2$
|
|
90776
|
+
if (isArray$2$1(first) && isArray$2$1(second)) {
|
|
90730
90777
|
return [...first, ...second];
|
|
90731
90778
|
}
|
|
90732
90779
|
mergeRecordFields(first, second);
|
|
@@ -91323,7 +91370,7 @@
|
|
|
91323
91370
|
};
|
|
91324
91371
|
}
|
|
91325
91372
|
|
|
91326
|
-
const { keys: keys$1$
|
|
91373
|
+
const { keys: keys$1$1, create: create$1$1, assign: assign$5, entries: entries$1, values } = Object;
|
|
91327
91374
|
const { stringify: stringify$3, parse: parse$3 } = JSON;
|
|
91328
91375
|
|
|
91329
91376
|
function selectColumnsFromTableWhereKeyIn(columnNames, table, keyColumnName, whereIn) {
|
|
@@ -91390,7 +91437,7 @@
|
|
|
91390
91437
|
},
|
|
91391
91438
|
conflictColumns: this.conflictColumnNames,
|
|
91392
91439
|
columns: this.columnNames,
|
|
91393
|
-
rows: keys$1$
|
|
91440
|
+
rows: keys$1$1(entries).reduce((rows, key) => {
|
|
91394
91441
|
const entry = entries[key];
|
|
91395
91442
|
const { data, metadata } = entry;
|
|
91396
91443
|
const row = [key, stringify$3(data), metadata ? stringify$3(metadata) : null];
|
|
@@ -91409,7 +91456,7 @@
|
|
|
91409
91456
|
type: 'setMetadata',
|
|
91410
91457
|
},
|
|
91411
91458
|
columns: [COLUMN_NAME_METADATA$1],
|
|
91412
|
-
values: keys$1$
|
|
91459
|
+
values: keys$1$1(entries).reduce((values, key) => {
|
|
91413
91460
|
const { metadata } = entries[key];
|
|
91414
91461
|
const row = [metadata ? stringify$3(metadata) : null];
|
|
91415
91462
|
values[key] = row;
|
|
@@ -91499,7 +91546,7 @@
|
|
|
91499
91546
|
},
|
|
91500
91547
|
conflictColumns: this.conflictColumnNames,
|
|
91501
91548
|
columns: this.columnNames,
|
|
91502
|
-
rows: keys$1$
|
|
91549
|
+
rows: keys$1$1(entries).reduce((rows, key) => {
|
|
91503
91550
|
const entry = entries[key];
|
|
91504
91551
|
const { data, metadata } = entry;
|
|
91505
91552
|
const row = [key, stringify$3(data)];
|
|
@@ -91525,7 +91572,7 @@
|
|
|
91525
91572
|
type: 'setMetadata',
|
|
91526
91573
|
},
|
|
91527
91574
|
columns: [COLUMN_NAME_METADATA],
|
|
91528
|
-
values: keys$1$
|
|
91575
|
+
values: keys$1$1(entries).reduce((values, key) => {
|
|
91529
91576
|
const { metadata } = entries[key];
|
|
91530
91577
|
const row = [metadata ? stringify$3(metadata) : null];
|
|
91531
91578
|
values[key] = row;
|
|
@@ -91534,7 +91581,7 @@
|
|
|
91534
91581
|
};
|
|
91535
91582
|
}
|
|
91536
91583
|
metadataToUpdateSQLQueries(entries, segment) {
|
|
91537
|
-
return keys$1$
|
|
91584
|
+
return keys$1$1(entries).reduce((accu, key) => {
|
|
91538
91585
|
const { metadata } = entries[key];
|
|
91539
91586
|
if (metadata !== undefined) {
|
|
91540
91587
|
accu.push({
|
|
@@ -91611,7 +91658,7 @@
|
|
|
91611
91658
|
.finally(() => tasker.done());
|
|
91612
91659
|
}
|
|
91613
91660
|
setEntries(entries, segment) {
|
|
91614
|
-
if (keys$1$
|
|
91661
|
+
if (keys$1$1(entries).length === 0) {
|
|
91615
91662
|
return Promise.resolve();
|
|
91616
91663
|
}
|
|
91617
91664
|
const table = this.getTable(segment);
|
|
@@ -91622,7 +91669,7 @@
|
|
|
91622
91669
|
return this.batchOperationAsPromise([upsertOperation]);
|
|
91623
91670
|
}
|
|
91624
91671
|
setMetadata(entries, segment) {
|
|
91625
|
-
if (keys$1$
|
|
91672
|
+
if (keys$1$1(entries).length === 0) {
|
|
91626
91673
|
return Promise.resolve();
|
|
91627
91674
|
}
|
|
91628
91675
|
const table = this.getTable(segment);
|
|
@@ -91632,7 +91679,7 @@
|
|
|
91632
91679
|
batchOperations(operations) {
|
|
91633
91680
|
const sqliteOperations = operations.reduce((acc, cur) => {
|
|
91634
91681
|
if (cur.type === 'setEntries') {
|
|
91635
|
-
if (keys$1$
|
|
91682
|
+
if (keys$1$1(cur.entries).length > 0) {
|
|
91636
91683
|
const table = this.getTable(cur.segment);
|
|
91637
91684
|
const upsertOperation = table.entriesToUpsertOperations(cur.entries, cur.segment);
|
|
91638
91685
|
if (cur.entries[GRAPHQL_QUERY_ROOT_KEY]) {
|
|
@@ -91642,7 +91689,7 @@
|
|
|
91642
91689
|
}
|
|
91643
91690
|
}
|
|
91644
91691
|
else if (cur.type === 'setMetadata') {
|
|
91645
|
-
if (keys$1$
|
|
91692
|
+
if (keys$1$1(cur.entries).length > 0) {
|
|
91646
91693
|
const table = this.getTable(cur.segment);
|
|
91647
91694
|
acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
|
|
91648
91695
|
}
|
|
@@ -91778,7 +91825,7 @@
|
|
|
91778
91825
|
},
|
|
91779
91826
|
conflictColumns: this.conflictColumnNames,
|
|
91780
91827
|
columns: this.columnNames,
|
|
91781
|
-
rows: keys$1$
|
|
91828
|
+
rows: keys$1$1(entries).reduce((rows, key) => {
|
|
91782
91829
|
const entry = entries[key];
|
|
91783
91830
|
rows.push([key, stringify$3(entry.data)]);
|
|
91784
91831
|
return rows;
|
|
@@ -93988,7 +94035,7 @@
|
|
|
93988
94035
|
reader.exitPath();
|
|
93989
94036
|
}
|
|
93990
94037
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
93991
|
-
deepFreeze$
|
|
94038
|
+
deepFreeze$1(sink);
|
|
93992
94039
|
reader.exitPath();
|
|
93993
94040
|
return sink;
|
|
93994
94041
|
},
|
|
@@ -94090,7 +94137,7 @@
|
|
|
94090
94137
|
const childSnapshotData = {
|
|
94091
94138
|
results: childSnapshotDataResponses,
|
|
94092
94139
|
};
|
|
94093
|
-
deepFreeze$
|
|
94140
|
+
deepFreeze$1(childSnapshotData);
|
|
94094
94141
|
return {
|
|
94095
94142
|
childSnapshotData: childSnapshotData,
|
|
94096
94143
|
seenRecords,
|
|
@@ -95105,7 +95152,7 @@
|
|
|
95105
95152
|
const { create: create$6, freeze: freeze$3, keys: keys$7, entries: entries$5 } = Object;
|
|
95106
95153
|
const { isArray: isArray$1$2 } = Array;
|
|
95107
95154
|
const { stringify: stringify$2, parse: parse$2 } = JSON;
|
|
95108
|
-
const WeakSetConstructor
|
|
95155
|
+
const WeakSetConstructor = WeakSet;
|
|
95109
95156
|
const LogLevelMap = {
|
|
95110
95157
|
TRACE: 4,
|
|
95111
95158
|
DEBUG: 3,
|
|
@@ -95142,7 +95189,7 @@
|
|
|
95142
95189
|
this.printer(this.formatter(level, message));
|
|
95143
95190
|
}
|
|
95144
95191
|
}
|
|
95145
|
-
let Ok$1
|
|
95192
|
+
let Ok$1 = class Ok {
|
|
95146
95193
|
constructor(value) {
|
|
95147
95194
|
this.value = value;
|
|
95148
95195
|
}
|
|
@@ -95164,23 +95211,23 @@
|
|
|
95164
95211
|
return !this.isOk();
|
|
95165
95212
|
}
|
|
95166
95213
|
};
|
|
95167
|
-
const ok$1
|
|
95214
|
+
const ok$1 = (value) => new Ok$1(value);
|
|
95168
95215
|
const err$1 = (err2) => new Err$1(err2);
|
|
95169
|
-
function isResult
|
|
95216
|
+
function isResult(value) {
|
|
95170
95217
|
return value != null && typeof value === "object" && "isOk" in value && "isErr" in value && typeof value.isOk === "function" && typeof value.isErr === "function" && (value.isOk() === true && value.isErr() === false && "value" in value || value.isOk() === false && value.isErr() === true && "error" in value);
|
|
95171
95218
|
}
|
|
95172
|
-
function isSubscribable
|
|
95219
|
+
function isSubscribable(obj) {
|
|
95173
95220
|
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
95174
95221
|
}
|
|
95175
|
-
function isSubscribableResult
|
|
95176
|
-
if (!isResult
|
|
95222
|
+
function isSubscribableResult(x) {
|
|
95223
|
+
if (!isResult(x)) {
|
|
95177
95224
|
return false;
|
|
95178
95225
|
}
|
|
95179
|
-
return isSubscribable
|
|
95226
|
+
return isSubscribable(x.isOk() ? x.value : x.error);
|
|
95180
95227
|
}
|
|
95181
95228
|
function buildSubscribableResult$1(result, subscribe, refresh) {
|
|
95182
95229
|
if (result.isOk()) {
|
|
95183
|
-
return ok$1
|
|
95230
|
+
return ok$1({ data: result.value, subscribe, refresh });
|
|
95184
95231
|
} else {
|
|
95185
95232
|
return err$1({ failure: result.error, subscribe, refresh });
|
|
95186
95233
|
}
|
|
@@ -95348,20 +95395,20 @@
|
|
|
95348
95395
|
this.statusText = getStatusText(status);
|
|
95349
95396
|
}
|
|
95350
95397
|
}
|
|
95351
|
-
const deeplyFrozen
|
|
95352
|
-
function deepFreeze
|
|
95353
|
-
if (typeof value !== "object" || value === null || deeplyFrozen
|
|
95398
|
+
const deeplyFrozen = new WeakSetConstructor();
|
|
95399
|
+
function deepFreeze(value) {
|
|
95400
|
+
if (typeof value !== "object" || value === null || deeplyFrozen.has(value)) {
|
|
95354
95401
|
return;
|
|
95355
95402
|
}
|
|
95356
|
-
deeplyFrozen
|
|
95403
|
+
deeplyFrozen.add(value);
|
|
95357
95404
|
if (isArray$1$2(value)) {
|
|
95358
95405
|
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
95359
|
-
deepFreeze
|
|
95406
|
+
deepFreeze(value[i]);
|
|
95360
95407
|
}
|
|
95361
95408
|
} else {
|
|
95362
95409
|
const keys$1 = keys$7(value);
|
|
95363
95410
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
95364
|
-
deepFreeze
|
|
95411
|
+
deepFreeze(value[keys$1[i]]);
|
|
95365
95412
|
}
|
|
95366
95413
|
}
|
|
95367
95414
|
freeze$3(value);
|
|
@@ -95380,11 +95427,11 @@
|
|
|
95380
95427
|
this.type = "user-visible";
|
|
95381
95428
|
}
|
|
95382
95429
|
}
|
|
95383
|
-
function isUserVisibleError$1
|
|
95430
|
+
function isUserVisibleError$1(error) {
|
|
95384
95431
|
return error instanceof Error && "type" in error && error.type === "user-visible";
|
|
95385
95432
|
}
|
|
95386
|
-
function logError$1
|
|
95387
|
-
if (isUserVisibleError$1
|
|
95433
|
+
function logError$1(error) {
|
|
95434
|
+
if (isUserVisibleError$1(error)) {
|
|
95388
95435
|
return;
|
|
95389
95436
|
}
|
|
95390
95437
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
@@ -95433,13 +95480,13 @@
|
|
|
95433
95480
|
}
|
|
95434
95481
|
refresh() {
|
|
95435
95482
|
return this.execute().then((newResult) => {
|
|
95436
|
-
if (isSubscribableResult
|
|
95437
|
-
const value = newResult.isOk() ? ok$1
|
|
95483
|
+
if (isSubscribableResult(newResult)) {
|
|
95484
|
+
const value = newResult.isOk() ? ok$1(newResult.value.data) : err$1(newResult.error.failure);
|
|
95438
95485
|
this.subscriptions.forEach((cb) => {
|
|
95439
95486
|
cb(value);
|
|
95440
95487
|
});
|
|
95441
95488
|
}
|
|
95442
|
-
return ok$1
|
|
95489
|
+
return ok$1(void 0);
|
|
95443
95490
|
});
|
|
95444
95491
|
}
|
|
95445
95492
|
async afterRequestHooks(_options) {
|
|
@@ -95488,7 +95535,7 @@
|
|
|
95488
95535
|
this.afterRequestHooks({ statusCode: 200 });
|
|
95489
95536
|
} catch (e) {
|
|
95490
95537
|
}
|
|
95491
|
-
return ok$1
|
|
95538
|
+
return ok$1(auraReturnValue);
|
|
95492
95539
|
}).catch((error) => {
|
|
95493
95540
|
if (!error || !error.getError) {
|
|
95494
95541
|
return err$1(toError("Failed to get error from response"));
|
|
@@ -95507,7 +95554,7 @@
|
|
|
95507
95554
|
(response2) => {
|
|
95508
95555
|
if (response2.ok) {
|
|
95509
95556
|
return response2.json().then(
|
|
95510
|
-
(json) => ok$1
|
|
95557
|
+
(json) => ok$1(json),
|
|
95511
95558
|
(reason) => err$1(toError(reason))
|
|
95512
95559
|
).finally(() => {
|
|
95513
95560
|
try {
|
|
@@ -96151,10 +96198,10 @@
|
|
|
96151
96198
|
return toError(errorResponse.statusText);
|
|
96152
96199
|
}
|
|
96153
96200
|
processAuraReturnValue(auraReturnValue) {
|
|
96154
|
-
return ok$1
|
|
96201
|
+
return ok$1(auraReturnValue);
|
|
96155
96202
|
}
|
|
96156
96203
|
processFetchReturnValue(json) {
|
|
96157
|
-
return ok$1
|
|
96204
|
+
return ok$1(json);
|
|
96158
96205
|
}
|
|
96159
96206
|
convertAuraResponseToData(responsePromise, coerceError) {
|
|
96160
96207
|
return responsePromise.then((response) => {
|
|
@@ -96219,7 +96266,7 @@
|
|
|
96219
96266
|
err$1(new Error(`Failed to build data from type: ${stringify$2(data.error)}`))
|
|
96220
96267
|
);
|
|
96221
96268
|
}
|
|
96222
|
-
return resolvedPromiseLike$2(ok$1
|
|
96269
|
+
return resolvedPromiseLike$2(ok$1(data.value));
|
|
96223
96270
|
}
|
|
96224
96271
|
writeToCache(cache, networkResult) {
|
|
96225
96272
|
if (networkResult.isOk()) {
|
|
@@ -96290,10 +96337,10 @@
|
|
|
96290
96337
|
return toError(errorResponse.statusText);
|
|
96291
96338
|
}
|
|
96292
96339
|
processAuraReturnValue(auraReturnValue) {
|
|
96293
|
-
return ok$1
|
|
96340
|
+
return ok$1(auraReturnValue);
|
|
96294
96341
|
}
|
|
96295
96342
|
processFetchReturnValue(json) {
|
|
96296
|
-
return ok$1
|
|
96343
|
+
return ok$1(json);
|
|
96297
96344
|
}
|
|
96298
96345
|
convertAuraResponseToData(responsePromise, coerceError) {
|
|
96299
96346
|
return responsePromise.then((response) => {
|
|
@@ -96357,7 +96404,7 @@
|
|
|
96357
96404
|
if (data === void 0) {
|
|
96358
96405
|
return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
|
|
96359
96406
|
}
|
|
96360
|
-
return resolvedPromiseLike$2(ok$1
|
|
96407
|
+
return resolvedPromiseLike$2(ok$1(data));
|
|
96361
96408
|
}
|
|
96362
96409
|
writeToCache(cache, networkResult) {
|
|
96363
96410
|
if (networkResult.isOk()) {
|
|
@@ -96422,13 +96469,13 @@
|
|
|
96422
96469
|
}
|
|
96423
96470
|
refresh() {
|
|
96424
96471
|
return this.execute().then((newResult) => {
|
|
96425
|
-
if (isSubscribableResult
|
|
96426
|
-
const value = newResult.isOk() ? ok$1
|
|
96472
|
+
if (isSubscribableResult(newResult)) {
|
|
96473
|
+
const value = newResult.isOk() ? ok$1(newResult.value.data) : err$1(newResult.error.failure);
|
|
96427
96474
|
this.subscriptions.forEach((cb) => {
|
|
96428
96475
|
cb(value);
|
|
96429
96476
|
});
|
|
96430
96477
|
}
|
|
96431
|
-
return ok$1
|
|
96478
|
+
return ok$1(void 0);
|
|
96432
96479
|
});
|
|
96433
96480
|
}
|
|
96434
96481
|
async afterRequestHooks(_options) {
|
|
@@ -96509,7 +96556,7 @@
|
|
|
96509
96556
|
(response2) => {
|
|
96510
96557
|
if (response2.ok) {
|
|
96511
96558
|
return response2.json().then(
|
|
96512
|
-
(json) => ok$1
|
|
96559
|
+
(json) => ok$1(json),
|
|
96513
96560
|
(reason) => err$1(toError(reason))
|
|
96514
96561
|
).finally(() => {
|
|
96515
96562
|
try {
|
|
@@ -96569,7 +96616,7 @@
|
|
|
96569
96616
|
return toError(errorResponse.statusText);
|
|
96570
96617
|
}
|
|
96571
96618
|
processFetchReturnValue(json) {
|
|
96572
|
-
return ok$1
|
|
96619
|
+
return ok$1(json);
|
|
96573
96620
|
}
|
|
96574
96621
|
convertFetchResponseToData(response) {
|
|
96575
96622
|
return response.then(
|
|
@@ -96613,7 +96660,7 @@
|
|
|
96613
96660
|
err$1(new Error(`Failed to build data from type: ${stringify$2(data.error)}`))
|
|
96614
96661
|
);
|
|
96615
96662
|
}
|
|
96616
|
-
return resolvedPromiseLike$2(ok$1
|
|
96663
|
+
return resolvedPromiseLike$2(ok$1(data.value));
|
|
96617
96664
|
}
|
|
96618
96665
|
writeToCache(cache, networkResult) {
|
|
96619
96666
|
if (networkResult.isOk()) {
|
|
@@ -96915,7 +96962,7 @@
|
|
|
96915
96962
|
const tempCache = this.filteredCache;
|
|
96916
96963
|
return new Promise(async (resolve, reject) => {
|
|
96917
96964
|
try {
|
|
96918
|
-
let readResult = ok$1
|
|
96965
|
+
let readResult = ok$1(void 0);
|
|
96919
96966
|
for await (const rfnResult of this.requestRunner.requestFromNetwork()) {
|
|
96920
96967
|
if (rfnResult) {
|
|
96921
96968
|
const result = await this.services.cacheInclusionPolicy.write({
|
|
@@ -96953,13 +97000,13 @@
|
|
|
96953
97000
|
startTime,
|
|
96954
97001
|
options == null ? void 0 : options.instrumentationAttributes
|
|
96955
97002
|
);
|
|
96956
|
-
return ok$1
|
|
97003
|
+
return ok$1(void 0);
|
|
96957
97004
|
}
|
|
96958
97005
|
this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
|
|
96959
97006
|
const tempCache = this.filteredCache;
|
|
96960
97007
|
return new Promise(async (resolve, reject) => {
|
|
96961
97008
|
try {
|
|
96962
|
-
let readResult = ok$1
|
|
97009
|
+
let readResult = ok$1(void 0);
|
|
96963
97010
|
for await (const rfnResult of this.requestRunner.requestFromNetwork()) {
|
|
96964
97011
|
if (rfnResult) {
|
|
96965
97012
|
const result = await this.services.cacheInclusionPolicy.write({
|
|
@@ -96975,7 +97022,7 @@
|
|
|
96975
97022
|
readFromL1: (l1) => this.requestRunner.readFromCache(l1)
|
|
96976
97023
|
});
|
|
96977
97024
|
if (readResult.isOk()) {
|
|
96978
|
-
resolve(ok$1
|
|
97025
|
+
resolve(ok$1(void 0));
|
|
96979
97026
|
}
|
|
96980
97027
|
}
|
|
96981
97028
|
return resolve(readResult);
|
|
@@ -97027,7 +97074,7 @@
|
|
|
97027
97074
|
startTime,
|
|
97028
97075
|
options == null ? void 0 : options.instrumentationAttributes
|
|
97029
97076
|
);
|
|
97030
|
-
return ok$1
|
|
97077
|
+
return ok$1(void 0);
|
|
97031
97078
|
}
|
|
97032
97079
|
this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
|
|
97033
97080
|
const error = new UserVisibleError(
|
|
@@ -97564,7 +97611,7 @@
|
|
|
97564
97611
|
},
|
|
97565
97612
|
};
|
|
97566
97613
|
}
|
|
97567
|
-
// version: 1.
|
|
97614
|
+
// version: 1.404.0-dev1-9582436c8f
|
|
97568
97615
|
|
|
97569
97616
|
/**
|
|
97570
97617
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97590,7 +97637,7 @@
|
|
|
97590
97637
|
},
|
|
97591
97638
|
};
|
|
97592
97639
|
}
|
|
97593
|
-
// version: 1.
|
|
97640
|
+
// version: 1.404.0-dev1-9582436c8f
|
|
97594
97641
|
|
|
97595
97642
|
/*!
|
|
97596
97643
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -98433,7 +98480,7 @@
|
|
|
98433
98480
|
const astResolver$1 = function(astReference) {
|
|
98434
98481
|
return referenceMap$1.get(astReference);
|
|
98435
98482
|
};
|
|
98436
|
-
function findExecutableOperation$1
|
|
98483
|
+
function findExecutableOperation$1(document, operationName) {
|
|
98437
98484
|
const operations = document.definitions.filter(
|
|
98438
98485
|
(def) => def.kind === Kind$2.OPERATION_DEFINITION
|
|
98439
98486
|
);
|
|
@@ -98451,8 +98498,8 @@
|
|
|
98451
98498
|
}
|
|
98452
98499
|
return void 0;
|
|
98453
98500
|
}
|
|
98454
|
-
function validateGraphQLOperations
|
|
98455
|
-
const executableOperation = findExecutableOperation$1
|
|
98501
|
+
function validateGraphQLOperations(config, options) {
|
|
98502
|
+
const executableOperation = findExecutableOperation$1(config.query, config.operationName);
|
|
98456
98503
|
if (executableOperation) {
|
|
98457
98504
|
const operationType = executableOperation.operation;
|
|
98458
98505
|
if (!options.acceptedOperations.includes(operationType)) {
|
|
@@ -98473,13 +98520,13 @@
|
|
|
98473
98520
|
}
|
|
98474
98521
|
return result;
|
|
98475
98522
|
}
|
|
98476
|
-
function wrapConfigAndVerify
|
|
98523
|
+
function wrapConfigAndVerify(config, options) {
|
|
98477
98524
|
if (config == null ? void 0 : config.query) {
|
|
98478
98525
|
config = { ...config, query: resolveAst$1(config.query) };
|
|
98479
98526
|
if (config.query === void 0) {
|
|
98480
98527
|
throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
|
|
98481
98528
|
}
|
|
98482
|
-
validateGraphQLOperations
|
|
98529
|
+
validateGraphQLOperations(config, {
|
|
98483
98530
|
acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
|
|
98484
98531
|
});
|
|
98485
98532
|
}
|
|
@@ -98499,7 +98546,7 @@
|
|
|
98499
98546
|
return err$1(new Error("No operations found in query"));
|
|
98500
98547
|
}
|
|
98501
98548
|
if (operations.length === 1 && !input.operationName) {
|
|
98502
|
-
return ok$1
|
|
98549
|
+
return ok$1(operations[0]);
|
|
98503
98550
|
}
|
|
98504
98551
|
if (input.operationName) {
|
|
98505
98552
|
const specifiedOperation = operations.find((op) => {
|
|
@@ -98507,7 +98554,7 @@
|
|
|
98507
98554
|
return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
|
|
98508
98555
|
});
|
|
98509
98556
|
if (specifiedOperation) {
|
|
98510
|
-
return ok$1
|
|
98557
|
+
return ok$1(specifiedOperation);
|
|
98511
98558
|
}
|
|
98512
98559
|
return err$1(new Error(`Operation "${input.operationName}" not found in query`));
|
|
98513
98560
|
}
|
|
@@ -98533,7 +98580,7 @@
|
|
|
98533
98580
|
prev[fragment.name.value] = fragment;
|
|
98534
98581
|
return prev;
|
|
98535
98582
|
}, {});
|
|
98536
|
-
return ok$1
|
|
98583
|
+
return ok$1({
|
|
98537
98584
|
selections,
|
|
98538
98585
|
request: { definitions: { variables, fragments } },
|
|
98539
98586
|
parentFieldSelection: void 0
|
|
@@ -98625,13 +98672,13 @@
|
|
|
98625
98672
|
if (this.responseHasErrors(auraReturnValue)) {
|
|
98626
98673
|
return err$1(new UserVisibleError(auraReturnValue));
|
|
98627
98674
|
}
|
|
98628
|
-
return ok$1
|
|
98675
|
+
return ok$1(auraReturnValue);
|
|
98629
98676
|
}
|
|
98630
98677
|
processFetchReturnValue(json) {
|
|
98631
98678
|
if (this.responseHasErrors(json)) {
|
|
98632
98679
|
return err$1(new UserVisibleError(json));
|
|
98633
98680
|
}
|
|
98634
|
-
return ok$1
|
|
98681
|
+
return ok$1(json);
|
|
98635
98682
|
}
|
|
98636
98683
|
/**
|
|
98637
98684
|
* Optional body wrapper name for aura requests.
|
|
@@ -98835,7 +98882,7 @@
|
|
|
98835
98882
|
if (json.hasOwnProperty("errors") && json.errors && json.errors.length > 0) {
|
|
98836
98883
|
return err$1(new UserVisibleError(json));
|
|
98837
98884
|
}
|
|
98838
|
-
return ok$1
|
|
98885
|
+
return ok$1(json);
|
|
98839
98886
|
}
|
|
98840
98887
|
runOriginalRequest() {
|
|
98841
98888
|
return this.convertFetchResponseToData(
|
|
@@ -98912,7 +98959,7 @@
|
|
|
98912
98959
|
this.errors.unshift(error);
|
|
98913
98960
|
}
|
|
98914
98961
|
toValidationResponse() {
|
|
98915
|
-
return !this.hasErrors() ? ok$1
|
|
98962
|
+
return !this.hasErrors() ? ok$1(true) : err$1(this.errors);
|
|
98916
98963
|
}
|
|
98917
98964
|
};
|
|
98918
98965
|
function createThrowableError$1(errors) {
|
|
@@ -98948,7 +98995,7 @@
|
|
|
98948
98995
|
);
|
|
98949
98996
|
}
|
|
98950
98997
|
function validSchemaResponse$1() {
|
|
98951
|
-
return ok$1
|
|
98998
|
+
return ok$1(true);
|
|
98952
98999
|
}
|
|
98953
99000
|
function invalidSchemaResponseWithError$1(error) {
|
|
98954
99001
|
return err$1([error]);
|
|
@@ -99245,13 +99292,13 @@
|
|
|
99245
99292
|
}
|
|
99246
99293
|
function throwUserlandError(error) {
|
|
99247
99294
|
logError$2(error);
|
|
99248
|
-
throw buildUserlandError
|
|
99295
|
+
throw buildUserlandError(error);
|
|
99249
99296
|
}
|
|
99250
|
-
function emitError
|
|
99297
|
+
function emitError(callback, error) {
|
|
99251
99298
|
logError$2(error);
|
|
99252
|
-
callback({ data: void 0, error: buildUserlandError
|
|
99299
|
+
callback({ data: void 0, error: buildUserlandError(error) });
|
|
99253
99300
|
}
|
|
99254
|
-
function buildUserlandError
|
|
99301
|
+
function buildUserlandError(error) {
|
|
99255
99302
|
if (isUserVisibleError$2(error)) {
|
|
99256
99303
|
return error.data;
|
|
99257
99304
|
}
|
|
@@ -99279,19 +99326,19 @@
|
|
|
99279
99326
|
}
|
|
99280
99327
|
};
|
|
99281
99328
|
}
|
|
99282
|
-
const supportedCachePolicyTypes
|
|
99283
|
-
function requestContextIsSupportedCachePolicy
|
|
99284
|
-
return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes
|
|
99329
|
+
const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
|
|
99330
|
+
function requestContextIsSupportedCachePolicy(requestContext) {
|
|
99331
|
+
return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes.includes(
|
|
99285
99332
|
requestContext.cachePolicy.type
|
|
99286
99333
|
);
|
|
99287
99334
|
}
|
|
99288
|
-
function getOverridesForLegacyRequestContext
|
|
99289
|
-
if (requestContextIsSupportedCachePolicy
|
|
99335
|
+
function getOverridesForLegacyRequestContext(requestContext) {
|
|
99336
|
+
if (requestContextIsSupportedCachePolicy(requestContext)) {
|
|
99290
99337
|
return { cacheControlConfig: { type: requestContext.cachePolicy.type } };
|
|
99291
99338
|
}
|
|
99292
99339
|
return {};
|
|
99293
99340
|
}
|
|
99294
|
-
function handleEmit
|
|
99341
|
+
function handleEmit(res, callback) {
|
|
99295
99342
|
const consumerEmittedData = {
|
|
99296
99343
|
data: void 0,
|
|
99297
99344
|
errors: void 0
|
|
@@ -99299,20 +99346,20 @@
|
|
|
99299
99346
|
if (res.isOk()) {
|
|
99300
99347
|
consumerEmittedData.data = res.value.data;
|
|
99301
99348
|
} else {
|
|
99302
|
-
const { data, errors } = toGraphQLResponseFromFailure$1
|
|
99349
|
+
const { data, errors } = toGraphQLResponseFromFailure$1(res.error);
|
|
99303
99350
|
consumerEmittedData.data = data;
|
|
99304
99351
|
consumerEmittedData.errors = errors;
|
|
99305
99352
|
}
|
|
99306
99353
|
callback(consumerEmittedData);
|
|
99307
99354
|
}
|
|
99308
|
-
function toGraphQLResponseFromFailure$1
|
|
99309
|
-
if (isUserVisibleError$1
|
|
99355
|
+
function toGraphQLResponseFromFailure$1(failure) {
|
|
99356
|
+
if (isUserVisibleError$1(failure)) {
|
|
99310
99357
|
return {
|
|
99311
99358
|
data: failure.data.data,
|
|
99312
99359
|
errors: failure.data.errors
|
|
99313
99360
|
};
|
|
99314
99361
|
}
|
|
99315
|
-
logError$1
|
|
99362
|
+
logError$1(failure);
|
|
99316
99363
|
return {
|
|
99317
99364
|
data: void 0,
|
|
99318
99365
|
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
@@ -99322,10 +99369,10 @@
|
|
|
99322
99369
|
bind(getCommand) {
|
|
99323
99370
|
return buildBaseImperativeInvoker(getCommand, (result) => {
|
|
99324
99371
|
if (result.isOk()) {
|
|
99325
|
-
deepFreeze
|
|
99326
|
-
return isSubscribableResult
|
|
99372
|
+
deepFreeze(result.value);
|
|
99373
|
+
return isSubscribableResult(result) ? result.value.data : result.value;
|
|
99327
99374
|
}
|
|
99328
|
-
throw toError(isSubscribableResult
|
|
99375
|
+
throw toError(isSubscribableResult(result) ? result.error.failure : result.error);
|
|
99329
99376
|
});
|
|
99330
99377
|
}
|
|
99331
99378
|
}
|
|
@@ -99340,10 +99387,10 @@
|
|
|
99340
99387
|
bind(getCommand) {
|
|
99341
99388
|
return buildBaseImperativeInvoker(getCommand, (result) => {
|
|
99342
99389
|
if (result.isOk()) {
|
|
99343
|
-
deepFreeze
|
|
99344
|
-
return isSubscribableResult
|
|
99390
|
+
deepFreeze(result.value);
|
|
99391
|
+
return isSubscribableResult(result) ? { data: result.value.data } : { data: result.value };
|
|
99345
99392
|
}
|
|
99346
|
-
throw toError(isSubscribableResult
|
|
99393
|
+
throw toError(isSubscribableResult(result) ? result.error.failure : result.error);
|
|
99347
99394
|
});
|
|
99348
99395
|
}
|
|
99349
99396
|
}
|
|
@@ -99362,14 +99409,14 @@
|
|
|
99362
99409
|
);
|
|
99363
99410
|
}
|
|
99364
99411
|
transformResult(result, exposeRefresh = false) {
|
|
99365
|
-
if (!isSubscribableResult
|
|
99412
|
+
if (!isSubscribableResult(result)) {
|
|
99366
99413
|
console.error(
|
|
99367
99414
|
"Non-subscribable result encountered - please use correct operation type"
|
|
99368
99415
|
);
|
|
99369
99416
|
throw new Error("Internal error in Lightning Data Service adapter occurred");
|
|
99370
99417
|
}
|
|
99371
99418
|
if (result.isOk()) {
|
|
99372
|
-
deepFreeze
|
|
99419
|
+
deepFreeze(result.value.data);
|
|
99373
99420
|
const api = {
|
|
99374
99421
|
data: result.value.data,
|
|
99375
99422
|
subscribe: (cb) => {
|
|
@@ -99413,16 +99460,16 @@
|
|
|
99413
99460
|
const invoke = async (config, requestContext, callback) => {
|
|
99414
99461
|
const command = getCommand({ config, assertIsValid: assertIsValid$1 });
|
|
99415
99462
|
try {
|
|
99416
|
-
const overrides = getOverridesForLegacyRequestContext
|
|
99463
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
99417
99464
|
const result = await command.execute(overrides);
|
|
99418
99465
|
if (result.isOk()) {
|
|
99419
|
-
deepFreeze
|
|
99466
|
+
deepFreeze(result.value);
|
|
99420
99467
|
callback({ data: result.value.data, error: void 0 });
|
|
99421
99468
|
} else {
|
|
99422
99469
|
callback({ data: void 0, error: toError(result.error.failure) });
|
|
99423
99470
|
}
|
|
99424
99471
|
} catch (error) {
|
|
99425
|
-
emitError
|
|
99472
|
+
emitError(callback, error);
|
|
99426
99473
|
}
|
|
99427
99474
|
};
|
|
99428
99475
|
const subscribe = (config, requestContext, callback) => {
|
|
@@ -99430,7 +99477,7 @@
|
|
|
99430
99477
|
let unsubscribe = () => {
|
|
99431
99478
|
};
|
|
99432
99479
|
try {
|
|
99433
|
-
const overrides = getOverridesForLegacyRequestContext
|
|
99480
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
99434
99481
|
command.execute(overrides).then(
|
|
99435
99482
|
(result) => {
|
|
99436
99483
|
if (!result.isOk()) {
|
|
@@ -99447,11 +99494,11 @@
|
|
|
99447
99494
|
callback({ data: result.value.data, error: void 0 });
|
|
99448
99495
|
},
|
|
99449
99496
|
(e) => {
|
|
99450
|
-
emitError
|
|
99497
|
+
emitError(callback, e);
|
|
99451
99498
|
}
|
|
99452
99499
|
);
|
|
99453
99500
|
} catch (e) {
|
|
99454
|
-
emitError
|
|
99501
|
+
emitError(callback, e);
|
|
99455
99502
|
}
|
|
99456
99503
|
return () => {
|
|
99457
99504
|
unsubscribe();
|
|
@@ -99472,11 +99519,11 @@
|
|
|
99472
99519
|
return async (...params) => {
|
|
99473
99520
|
try {
|
|
99474
99521
|
if (params.length) {
|
|
99475
|
-
params[0] = wrapConfigAndVerify
|
|
99522
|
+
params[0] = wrapConfigAndVerify(params[0]);
|
|
99476
99523
|
}
|
|
99477
99524
|
return await buildBaseImperativeInvoker(getCommand, (result) => this.transformResult(result, exposeRefresh))(...params);
|
|
99478
99525
|
} catch (error) {
|
|
99479
|
-
logError$1
|
|
99526
|
+
logError$1(error);
|
|
99480
99527
|
return {
|
|
99481
99528
|
data: void 0,
|
|
99482
99529
|
errors: [
|
|
@@ -99492,7 +99539,7 @@
|
|
|
99492
99539
|
errors: void 0
|
|
99493
99540
|
};
|
|
99494
99541
|
if (result.isOk()) {
|
|
99495
|
-
deepFreeze
|
|
99542
|
+
deepFreeze(result.value);
|
|
99496
99543
|
consumerEmittedData.data = result.value.data.data;
|
|
99497
99544
|
consumerEmittedData.subscribe = (cb) => {
|
|
99498
99545
|
result.value.subscribe((res) => {
|
|
@@ -99503,11 +99550,11 @@
|
|
|
99503
99550
|
if (res.isOk()) {
|
|
99504
99551
|
consumerEmittedData2.data = res.value.data;
|
|
99505
99552
|
} else {
|
|
99506
|
-
if (isUserVisibleError$1
|
|
99553
|
+
if (isUserVisibleError$1(res.error)) {
|
|
99507
99554
|
consumerEmittedData2.data = res.error.data.data;
|
|
99508
99555
|
consumerEmittedData2.errors = res.error.data.errors;
|
|
99509
99556
|
} else {
|
|
99510
|
-
logError$1
|
|
99557
|
+
logError$1(res.error);
|
|
99511
99558
|
consumerEmittedData2.errors = [
|
|
99512
99559
|
{
|
|
99513
99560
|
message: "Internal error in GraphQL adapter occurred",
|
|
@@ -99535,7 +99582,7 @@
|
|
|
99535
99582
|
}
|
|
99536
99583
|
});
|
|
99537
99584
|
} catch (error) {
|
|
99538
|
-
logError$1
|
|
99585
|
+
logError$1(error);
|
|
99539
99586
|
reject(
|
|
99540
99587
|
new Error(
|
|
99541
99588
|
"Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
|
|
@@ -99546,7 +99593,7 @@
|
|
|
99546
99593
|
};
|
|
99547
99594
|
}
|
|
99548
99595
|
} else {
|
|
99549
|
-
const resp = toGraphQLResponseFromFailure$1
|
|
99596
|
+
const resp = toGraphQLResponseFromFailure$1(result.error.failure);
|
|
99550
99597
|
consumerEmittedData.data = resp.data;
|
|
99551
99598
|
consumerEmittedData.errors = resp.errors;
|
|
99552
99599
|
}
|
|
@@ -99563,26 +99610,26 @@
|
|
|
99563
99610
|
class GraphQLLegacyImperativeBindingsService {
|
|
99564
99611
|
bind(getCommand) {
|
|
99565
99612
|
const invoke = async (config, requestContext, callback) => {
|
|
99566
|
-
config = wrapConfigAndVerify
|
|
99613
|
+
config = wrapConfigAndVerify(config);
|
|
99567
99614
|
const command = getCommand({ config, assertIsValid: assertIsValid$1 });
|
|
99568
99615
|
try {
|
|
99569
|
-
const overrides = getOverridesForLegacyRequestContext
|
|
99616
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
99570
99617
|
const result = await command.execute(overrides);
|
|
99571
99618
|
const consumerEmittedData = {
|
|
99572
99619
|
data: void 0,
|
|
99573
99620
|
errors: void 0
|
|
99574
99621
|
};
|
|
99575
99622
|
if (result.isOk()) {
|
|
99576
|
-
deepFreeze
|
|
99623
|
+
deepFreeze(result.value);
|
|
99577
99624
|
consumerEmittedData.data = result.value.data.data;
|
|
99578
99625
|
} else {
|
|
99579
|
-
const { data, errors } = toGraphQLResponseFromFailure$1
|
|
99626
|
+
const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
|
|
99580
99627
|
consumerEmittedData.data = data;
|
|
99581
99628
|
consumerEmittedData.errors = errors;
|
|
99582
99629
|
}
|
|
99583
99630
|
callback(consumerEmittedData);
|
|
99584
99631
|
} catch (error) {
|
|
99585
|
-
logError$1
|
|
99632
|
+
logError$1(error);
|
|
99586
99633
|
callback({
|
|
99587
99634
|
data: void 0,
|
|
99588
99635
|
errors: [
|
|
@@ -99592,31 +99639,31 @@
|
|
|
99592
99639
|
}
|
|
99593
99640
|
};
|
|
99594
99641
|
const subscribe = (config, requestContext, callback) => {
|
|
99595
|
-
config = wrapConfigAndVerify
|
|
99642
|
+
config = wrapConfigAndVerify(config);
|
|
99596
99643
|
const command = getCommand({ config, assertIsValid: assertIsValid$1 });
|
|
99597
99644
|
let unsubscribe = () => {
|
|
99598
99645
|
};
|
|
99599
|
-
const overrides = getOverridesForLegacyRequestContext
|
|
99646
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
99600
99647
|
command.execute(overrides).then((result) => {
|
|
99601
99648
|
const consumerEmittedData = {
|
|
99602
99649
|
data: void 0,
|
|
99603
99650
|
errors: void 0
|
|
99604
99651
|
};
|
|
99605
99652
|
if (result.isOk()) {
|
|
99606
|
-
deepFreeze
|
|
99653
|
+
deepFreeze(result.value);
|
|
99607
99654
|
consumerEmittedData.data = result.value.data.data;
|
|
99608
99655
|
unsubscribe = result.value.subscribe(
|
|
99609
99656
|
(res) => {
|
|
99610
|
-
handleEmit
|
|
99657
|
+
handleEmit(res, callback);
|
|
99611
99658
|
}
|
|
99612
99659
|
);
|
|
99613
99660
|
} else {
|
|
99614
|
-
const { data, errors } = toGraphQLResponseFromFailure$1
|
|
99661
|
+
const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
|
|
99615
99662
|
consumerEmittedData.data = data;
|
|
99616
99663
|
consumerEmittedData.errors = errors;
|
|
99617
99664
|
unsubscribe = result.error.subscribe(
|
|
99618
99665
|
(res) => {
|
|
99619
|
-
handleEmit
|
|
99666
|
+
handleEmit(res, callback);
|
|
99620
99667
|
}
|
|
99621
99668
|
);
|
|
99622
99669
|
}
|
|
@@ -99641,20 +99688,20 @@
|
|
|
99641
99688
|
return async (...params) => {
|
|
99642
99689
|
try {
|
|
99643
99690
|
if (params.length) {
|
|
99644
|
-
params[0] = wrapConfigAndVerify
|
|
99691
|
+
params[0] = wrapConfigAndVerify(params[0], {
|
|
99645
99692
|
acceptedOperations: ["mutation"]
|
|
99646
99693
|
});
|
|
99647
99694
|
}
|
|
99648
99695
|
const command = getCommand({ params, assertIsValid: assertIsValid$1 });
|
|
99649
99696
|
const result = await command.execute({ cacheControlConfig: { type: "no-cache" } });
|
|
99650
99697
|
if (result.isOk()) {
|
|
99651
|
-
deepFreeze
|
|
99698
|
+
deepFreeze(result.value);
|
|
99652
99699
|
return result.value.data;
|
|
99653
99700
|
} else {
|
|
99654
|
-
return toGraphQLResponseFromFailure$1
|
|
99701
|
+
return toGraphQLResponseFromFailure$1(result.error.failure);
|
|
99655
99702
|
}
|
|
99656
99703
|
} catch (error) {
|
|
99657
|
-
logError$1
|
|
99704
|
+
logError$1(error);
|
|
99658
99705
|
return {
|
|
99659
99706
|
data: void 0,
|
|
99660
99707
|
errors: [
|
|
@@ -99678,7 +99725,7 @@
|
|
|
99678
99725
|
* All rights reserved.
|
|
99679
99726
|
* For full license text, see the LICENSE.txt file
|
|
99680
99727
|
*/
|
|
99681
|
-
|
|
99728
|
+
class Sanitizer {
|
|
99682
99729
|
constructor(obj) {
|
|
99683
99730
|
this.obj = obj;
|
|
99684
99731
|
this.copy = {};
|
|
@@ -99723,16 +99770,16 @@
|
|
|
99723
99770
|
this.currentPath = this.currentPath.parent || this.currentPath;
|
|
99724
99771
|
}
|
|
99725
99772
|
}
|
|
99726
|
-
};
|
|
99727
|
-
function sanitize$1(obj) {
|
|
99728
|
-
return new Sanitizer$1(obj).sanitize();
|
|
99729
99773
|
}
|
|
99730
|
-
function
|
|
99774
|
+
function sanitize(obj) {
|
|
99775
|
+
return new Sanitizer(obj).sanitize();
|
|
99776
|
+
}
|
|
99777
|
+
function isIncompleteConfigError(err) {
|
|
99731
99778
|
return err instanceof MissingRequiredPropertyError$1 || err instanceof JsonSchemaViolationError$1 && err.validationErrors.find(
|
|
99732
99779
|
(validationError) => validationError instanceof MissingRequiredPropertyError$1
|
|
99733
99780
|
) !== void 0;
|
|
99734
99781
|
}
|
|
99735
|
-
|
|
99782
|
+
class CommandWireAdapterConstructor {
|
|
99736
99783
|
constructor(callback, sourceContext, options) {
|
|
99737
99784
|
this.callback = callback;
|
|
99738
99785
|
this.connected = false;
|
|
@@ -99751,7 +99798,7 @@
|
|
|
99751
99798
|
}
|
|
99752
99799
|
update(config, _context) {
|
|
99753
99800
|
this.unsubscribe();
|
|
99754
|
-
this.config = sanitize
|
|
99801
|
+
this.config = sanitize(config);
|
|
99755
99802
|
this.invokeAdapter();
|
|
99756
99803
|
}
|
|
99757
99804
|
emit(result) {
|
|
@@ -99789,17 +99836,17 @@
|
|
|
99789
99836
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
99790
99837
|
}
|
|
99791
99838
|
if (result.isErr()) {
|
|
99792
|
-
if (isSubscribableResult
|
|
99839
|
+
if (isSubscribableResult(result)) {
|
|
99793
99840
|
consumerEmittedData.error = result.error.failure;
|
|
99794
99841
|
} else {
|
|
99795
99842
|
consumerEmittedData.error = result.error;
|
|
99796
99843
|
}
|
|
99797
99844
|
} else {
|
|
99798
|
-
if (isSubscribableResult
|
|
99799
|
-
deepFreeze
|
|
99845
|
+
if (isSubscribableResult(result)) {
|
|
99846
|
+
deepFreeze(result.value.data);
|
|
99800
99847
|
consumerEmittedData.data = result.value.data;
|
|
99801
99848
|
} else {
|
|
99802
|
-
deepFreeze
|
|
99849
|
+
deepFreeze(result.value);
|
|
99803
99850
|
consumerEmittedData.data = result.value;
|
|
99804
99851
|
}
|
|
99805
99852
|
}
|
|
@@ -99817,7 +99864,7 @@
|
|
|
99817
99864
|
try {
|
|
99818
99865
|
assertIsValid$1(this.config, this.configSchema);
|
|
99819
99866
|
} catch (err) {
|
|
99820
|
-
if (isIncompleteConfigError
|
|
99867
|
+
if (isIncompleteConfigError(err)) {
|
|
99821
99868
|
return;
|
|
99822
99869
|
}
|
|
99823
99870
|
throw err;
|
|
@@ -99832,7 +99879,7 @@
|
|
|
99832
99879
|
}
|
|
99833
99880
|
this.refresh = void 0;
|
|
99834
99881
|
if (result.isOk()) {
|
|
99835
|
-
if (isSubscribableResult
|
|
99882
|
+
if (isSubscribableResult(result)) {
|
|
99836
99883
|
const value = result.value;
|
|
99837
99884
|
this.unsubscriber = value.subscribe((updatedResult) => {
|
|
99838
99885
|
if (!this.connected || this.config !== initialConfig) {
|
|
@@ -99842,12 +99889,12 @@
|
|
|
99842
99889
|
this.emit(updatedResult);
|
|
99843
99890
|
});
|
|
99844
99891
|
this.refresh = value.refresh;
|
|
99845
|
-
this.emit(ok$1
|
|
99892
|
+
this.emit(ok$1(value.data));
|
|
99846
99893
|
} else {
|
|
99847
99894
|
this.emit(result);
|
|
99848
99895
|
}
|
|
99849
99896
|
} else {
|
|
99850
|
-
if (isSubscribableResult
|
|
99897
|
+
if (isSubscribableResult(result)) {
|
|
99851
99898
|
const value = result.error;
|
|
99852
99899
|
this.unsubscriber = value.subscribe((updatedResult) => {
|
|
99853
99900
|
if (!this.connected || this.config !== initialConfig) {
|
|
@@ -99870,7 +99917,7 @@
|
|
|
99870
99917
|
}
|
|
99871
99918
|
}
|
|
99872
99919
|
handleExecutionThrow(error) {
|
|
99873
|
-
emitError
|
|
99920
|
+
emitError(this.callback, error);
|
|
99874
99921
|
}
|
|
99875
99922
|
unsubscribe() {
|
|
99876
99923
|
if (this.unsubscriber) {
|
|
@@ -99878,15 +99925,15 @@
|
|
|
99878
99925
|
delete this.unsubscriber;
|
|
99879
99926
|
}
|
|
99880
99927
|
}
|
|
99881
|
-
}
|
|
99928
|
+
}
|
|
99882
99929
|
function toGraphQLResponseFromFailure$2(failure) {
|
|
99883
|
-
if (isUserVisibleError$1
|
|
99930
|
+
if (isUserVisibleError$1(failure)) {
|
|
99884
99931
|
return {
|
|
99885
99932
|
data: failure.data.data,
|
|
99886
99933
|
errors: failure.data.errors
|
|
99887
99934
|
};
|
|
99888
99935
|
}
|
|
99889
|
-
logError$1
|
|
99936
|
+
logError$1(failure);
|
|
99890
99937
|
return {
|
|
99891
99938
|
data: void 0,
|
|
99892
99939
|
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
@@ -99894,7 +99941,7 @@
|
|
|
99894
99941
|
}
|
|
99895
99942
|
class LWCWireBindingsService {
|
|
99896
99943
|
bind(getCommand, configSchema, exposeRefresh = false) {
|
|
99897
|
-
return class extends CommandWireAdapterConstructor
|
|
99944
|
+
return class extends CommandWireAdapterConstructor {
|
|
99898
99945
|
constructor() {
|
|
99899
99946
|
super(...arguments);
|
|
99900
99947
|
this.configSchema = configSchema;
|
|
@@ -99913,7 +99960,7 @@
|
|
|
99913
99960
|
service: new LWCWireBindingsService()
|
|
99914
99961
|
};
|
|
99915
99962
|
}
|
|
99916
|
-
|
|
99963
|
+
class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor {
|
|
99917
99964
|
emit(result) {
|
|
99918
99965
|
try {
|
|
99919
99966
|
if (result === void 0) {
|
|
@@ -99949,23 +99996,23 @@
|
|
|
99949
99996
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
99950
99997
|
}
|
|
99951
99998
|
if (result.isErr()) {
|
|
99952
|
-
const failure = isSubscribableResult
|
|
99999
|
+
const failure = isSubscribableResult(result) ? result.error.failure : result.error;
|
|
99953
100000
|
const resp = toGraphQLResponseFromFailure$2(failure);
|
|
99954
100001
|
consumerEmittedData.data = resp.data;
|
|
99955
100002
|
consumerEmittedData.errors = resp.errors;
|
|
99956
100003
|
} else {
|
|
99957
100004
|
consumerEmittedData.data = result.value.data;
|
|
99958
100005
|
}
|
|
99959
|
-
deepFreeze
|
|
100006
|
+
deepFreeze(consumerEmittedData);
|
|
99960
100007
|
this.callback(consumerEmittedData);
|
|
99961
100008
|
}
|
|
99962
100009
|
} catch (e) {
|
|
99963
|
-
logError$1
|
|
100010
|
+
logError$1(e);
|
|
99964
100011
|
this.handleExecutionThrow(e);
|
|
99965
100012
|
}
|
|
99966
100013
|
}
|
|
99967
100014
|
handleExecutionThrow(e) {
|
|
99968
|
-
logError$1
|
|
100015
|
+
logError$1(e);
|
|
99969
100016
|
this.callback({
|
|
99970
100017
|
data: void 0,
|
|
99971
100018
|
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
@@ -99975,21 +100022,21 @@
|
|
|
99975
100022
|
this.unsubscribe();
|
|
99976
100023
|
const resolvedQuery = resolveAst$1(config.query);
|
|
99977
100024
|
if (resolvedQuery) {
|
|
99978
|
-
validateGraphQLOperations
|
|
100025
|
+
validateGraphQLOperations(
|
|
99979
100026
|
{ query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
|
|
99980
100027
|
{ acceptedOperations: ["query"] }
|
|
99981
100028
|
);
|
|
99982
100029
|
}
|
|
99983
100030
|
this.config = {
|
|
99984
|
-
...sanitize
|
|
100031
|
+
...sanitize(config),
|
|
99985
100032
|
query: resolvedQuery
|
|
99986
100033
|
};
|
|
99987
100034
|
this.invokeAdapter();
|
|
99988
100035
|
}
|
|
99989
|
-
}
|
|
100036
|
+
}
|
|
99990
100037
|
class LWCGraphQLWireBindingsService {
|
|
99991
100038
|
bind(getCommand, configSchema, exposeRefresh = false) {
|
|
99992
|
-
return class extends GraphQLCommandWireAdapterConstructor
|
|
100039
|
+
return class extends GraphQLCommandWireAdapterConstructor {
|
|
99993
100040
|
constructor() {
|
|
99994
100041
|
super(...arguments);
|
|
99995
100042
|
this.configSchema = configSchema;
|
|
@@ -100618,7 +100665,7 @@
|
|
|
100618
100665
|
return;
|
|
100619
100666
|
entries.forEach(({ key, entry }) => {
|
|
100620
100667
|
this.services.cache.set(key, entry);
|
|
100621
|
-
return resolvedPromiseLike$2(ok$1
|
|
100668
|
+
return resolvedPromiseLike$2(ok$1(undefined));
|
|
100622
100669
|
});
|
|
100623
100670
|
});
|
|
100624
100671
|
}
|
|
@@ -100980,7 +101027,7 @@
|
|
|
100980
101027
|
};
|
|
100981
101028
|
const draftAwareCreateContentDocumentAndVersionAdapter = createContentDocumentAndVersionDraftAdapterFactory(lazyLuvio, NimbusBinaryStore, contentDocumentCompositeActionHandler, lazyDurableRecordStore);
|
|
100982
101029
|
const draftAwareCreateRecord = createRecordDraftAdapterFactory(uiApiRecordHandler, lazyDurableRecordStore);
|
|
100983
|
-
const draftAwareUpdateRecord = updateRecordDraftAdapterFactory(uiApiRecordHandler, lazyDurableRecordStore);
|
|
101030
|
+
const draftAwareUpdateRecord = updateRecordDraftAdapterFactory(uiApiRecordHandler, lazyDurableRecordStore, lazyObjectInfoService);
|
|
100984
101031
|
const draftAwareDeleteRecord = deleteRecordDraftAdapterFactory(uiApiRecordHandler);
|
|
100985
101032
|
const draftAwarePeformQuickAction = performQuickActionDraftAdapterFactory(quickActionHandler, userId);
|
|
100986
101033
|
const draftAwarePerformUpdateRecordQuickActionAdapter = performUpdateRecordQuickActionDraftAdapterFactory(updateRecordQuickActionHandler, userId);
|
|
@@ -101044,7 +101091,7 @@
|
|
|
101044
101091
|
id: '@salesforce/lds-network-adapter',
|
|
101045
101092
|
instrument: instrument$2,
|
|
101046
101093
|
});
|
|
101047
|
-
// version: 1.
|
|
101094
|
+
// version: 1.404.0-dev1-48073cfce6
|
|
101048
101095
|
|
|
101049
101096
|
const { create: create$3, keys: keys$3 } = Object;
|
|
101050
101097
|
const { stringify, parse } = JSON;
|
|
@@ -101416,12 +101463,11 @@
|
|
|
101416
101463
|
return current;
|
|
101417
101464
|
}
|
|
101418
101465
|
|
|
101419
|
-
|
|
101466
|
+
/*!
|
|
101420
101467
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
101421
101468
|
* All rights reserved.
|
|
101422
101469
|
* For full license text, see the LICENSE.txt file
|
|
101423
101470
|
*/
|
|
101424
|
-
|
|
101425
101471
|
var Kind$1;
|
|
101426
101472
|
(function(Kind2) {
|
|
101427
101473
|
Kind2["NAME"] = "Name";
|
|
@@ -101597,191 +101643,6 @@
|
|
|
101597
101643
|
DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
|
|
101598
101644
|
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
|
101599
101645
|
})(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
|
|
101600
|
-
const referenceMap = /* @__PURE__ */ new WeakMap();
|
|
101601
|
-
const astResolver = function(astReference) {
|
|
101602
|
-
return referenceMap.get(astReference);
|
|
101603
|
-
};
|
|
101604
|
-
|
|
101605
|
-
/*!
|
|
101606
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
101607
|
-
* All rights reserved.
|
|
101608
|
-
* For full license text, see the LICENSE.txt file
|
|
101609
|
-
*/
|
|
101610
|
-
var Kind;
|
|
101611
|
-
(function(Kind2) {
|
|
101612
|
-
Kind2["NAME"] = "Name";
|
|
101613
|
-
Kind2["DOCUMENT"] = "Document";
|
|
101614
|
-
Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
|
|
101615
|
-
Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
|
|
101616
|
-
Kind2["SELECTION_SET"] = "SelectionSet";
|
|
101617
|
-
Kind2["FIELD"] = "Field";
|
|
101618
|
-
Kind2["ARGUMENT"] = "Argument";
|
|
101619
|
-
Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
|
|
101620
|
-
Kind2["INLINE_FRAGMENT"] = "InlineFragment";
|
|
101621
|
-
Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
|
|
101622
|
-
Kind2["VARIABLE"] = "Variable";
|
|
101623
|
-
Kind2["INT"] = "IntValue";
|
|
101624
|
-
Kind2["FLOAT"] = "FloatValue";
|
|
101625
|
-
Kind2["STRING"] = "StringValue";
|
|
101626
|
-
Kind2["BOOLEAN"] = "BooleanValue";
|
|
101627
|
-
Kind2["NULL"] = "NullValue";
|
|
101628
|
-
Kind2["ENUM"] = "EnumValue";
|
|
101629
|
-
Kind2["LIST"] = "ListValue";
|
|
101630
|
-
Kind2["OBJECT"] = "ObjectValue";
|
|
101631
|
-
Kind2["OBJECT_FIELD"] = "ObjectField";
|
|
101632
|
-
Kind2["DIRECTIVE"] = "Directive";
|
|
101633
|
-
Kind2["NAMED_TYPE"] = "NamedType";
|
|
101634
|
-
Kind2["LIST_TYPE"] = "ListType";
|
|
101635
|
-
Kind2["NON_NULL_TYPE"] = "NonNullType";
|
|
101636
|
-
Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
|
|
101637
|
-
Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
|
|
101638
|
-
Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
|
|
101639
|
-
Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
|
|
101640
|
-
Kind2["FIELD_DEFINITION"] = "FieldDefinition";
|
|
101641
|
-
Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
|
|
101642
|
-
Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
|
|
101643
|
-
Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
|
|
101644
|
-
Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
|
|
101645
|
-
Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
|
|
101646
|
-
Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
|
|
101647
|
-
Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
|
|
101648
|
-
Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
|
|
101649
|
-
Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
|
|
101650
|
-
Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
|
|
101651
|
-
Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
|
|
101652
|
-
Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
|
|
101653
|
-
Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
|
|
101654
|
-
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
101655
|
-
})(Kind || (Kind = {}));
|
|
101656
|
-
var TokenKind;
|
|
101657
|
-
(function(TokenKind2) {
|
|
101658
|
-
TokenKind2["SOF"] = "<SOF>";
|
|
101659
|
-
TokenKind2["EOF"] = "<EOF>";
|
|
101660
|
-
TokenKind2["BANG"] = "!";
|
|
101661
|
-
TokenKind2["DOLLAR"] = "$";
|
|
101662
|
-
TokenKind2["AMP"] = "&";
|
|
101663
|
-
TokenKind2["PAREN_L"] = "(";
|
|
101664
|
-
TokenKind2["PAREN_R"] = ")";
|
|
101665
|
-
TokenKind2["SPREAD"] = "...";
|
|
101666
|
-
TokenKind2["COLON"] = ":";
|
|
101667
|
-
TokenKind2["EQUALS"] = "=";
|
|
101668
|
-
TokenKind2["AT"] = "@";
|
|
101669
|
-
TokenKind2["BRACKET_L"] = "[";
|
|
101670
|
-
TokenKind2["BRACKET_R"] = "]";
|
|
101671
|
-
TokenKind2["BRACE_L"] = "{";
|
|
101672
|
-
TokenKind2["PIPE"] = "|";
|
|
101673
|
-
TokenKind2["BRACE_R"] = "}";
|
|
101674
|
-
TokenKind2["NAME"] = "Name";
|
|
101675
|
-
TokenKind2["INT"] = "Int";
|
|
101676
|
-
TokenKind2["FLOAT"] = "Float";
|
|
101677
|
-
TokenKind2["STRING"] = "String";
|
|
101678
|
-
TokenKind2["BLOCK_STRING"] = "BlockString";
|
|
101679
|
-
TokenKind2["COMMENT"] = "Comment";
|
|
101680
|
-
})(TokenKind || (TokenKind = {}));
|
|
101681
|
-
const QueryDocumentKeys = {
|
|
101682
|
-
Name: [],
|
|
101683
|
-
Document: ["definitions"],
|
|
101684
|
-
OperationDefinition: [
|
|
101685
|
-
"name",
|
|
101686
|
-
"variableDefinitions",
|
|
101687
|
-
"directives",
|
|
101688
|
-
"selectionSet"
|
|
101689
|
-
],
|
|
101690
|
-
VariableDefinition: ["variable", "type", "defaultValue", "directives"],
|
|
101691
|
-
Variable: ["name"],
|
|
101692
|
-
SelectionSet: ["selections"],
|
|
101693
|
-
Field: ["alias", "name", "arguments", "directives", "selectionSet"],
|
|
101694
|
-
Argument: ["name", "value"],
|
|
101695
|
-
FragmentSpread: ["name", "directives"],
|
|
101696
|
-
InlineFragment: ["typeCondition", "directives", "selectionSet"],
|
|
101697
|
-
FragmentDefinition: [
|
|
101698
|
-
"name",
|
|
101699
|
-
// Note: fragment variable definitions are deprecated and will removed in v17.0.0
|
|
101700
|
-
"variableDefinitions",
|
|
101701
|
-
"typeCondition",
|
|
101702
|
-
"directives",
|
|
101703
|
-
"selectionSet"
|
|
101704
|
-
],
|
|
101705
|
-
IntValue: [],
|
|
101706
|
-
FloatValue: [],
|
|
101707
|
-
StringValue: [],
|
|
101708
|
-
BooleanValue: [],
|
|
101709
|
-
NullValue: [],
|
|
101710
|
-
EnumValue: [],
|
|
101711
|
-
ListValue: ["values"],
|
|
101712
|
-
ObjectValue: ["fields"],
|
|
101713
|
-
ObjectField: ["name", "value"],
|
|
101714
|
-
Directive: ["name", "arguments"],
|
|
101715
|
-
NamedType: ["name"],
|
|
101716
|
-
ListType: ["type"],
|
|
101717
|
-
NonNullType: ["type"],
|
|
101718
|
-
SchemaDefinition: ["description", "directives", "operationTypes"],
|
|
101719
|
-
OperationTypeDefinition: ["type"],
|
|
101720
|
-
ScalarTypeDefinition: ["description", "name", "directives"],
|
|
101721
|
-
ObjectTypeDefinition: [
|
|
101722
|
-
"description",
|
|
101723
|
-
"name",
|
|
101724
|
-
"interfaces",
|
|
101725
|
-
"directives",
|
|
101726
|
-
"fields"
|
|
101727
|
-
],
|
|
101728
|
-
FieldDefinition: ["description", "name", "arguments", "type", "directives"],
|
|
101729
|
-
InputValueDefinition: [
|
|
101730
|
-
"description",
|
|
101731
|
-
"name",
|
|
101732
|
-
"type",
|
|
101733
|
-
"defaultValue",
|
|
101734
|
-
"directives"
|
|
101735
|
-
],
|
|
101736
|
-
InterfaceTypeDefinition: [
|
|
101737
|
-
"description",
|
|
101738
|
-
"name",
|
|
101739
|
-
"interfaces",
|
|
101740
|
-
"directives",
|
|
101741
|
-
"fields"
|
|
101742
|
-
],
|
|
101743
|
-
UnionTypeDefinition: ["description", "name", "directives", "types"],
|
|
101744
|
-
EnumTypeDefinition: ["description", "name", "directives", "values"],
|
|
101745
|
-
EnumValueDefinition: ["description", "name", "directives"],
|
|
101746
|
-
InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
|
|
101747
|
-
DirectiveDefinition: ["description", "name", "arguments", "locations"],
|
|
101748
|
-
SchemaExtension: ["directives", "operationTypes"],
|
|
101749
|
-
ScalarTypeExtension: ["name", "directives"],
|
|
101750
|
-
ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
101751
|
-
InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
101752
|
-
UnionTypeExtension: ["name", "directives", "types"],
|
|
101753
|
-
EnumTypeExtension: ["name", "directives", "values"],
|
|
101754
|
-
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
101755
|
-
};
|
|
101756
|
-
new Set(Object.keys(QueryDocumentKeys));
|
|
101757
|
-
var OperationTypeNode;
|
|
101758
|
-
(function(OperationTypeNode2) {
|
|
101759
|
-
OperationTypeNode2["QUERY"] = "query";
|
|
101760
|
-
OperationTypeNode2["MUTATION"] = "mutation";
|
|
101761
|
-
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
101762
|
-
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
101763
|
-
var DirectiveLocation;
|
|
101764
|
-
(function(DirectiveLocation2) {
|
|
101765
|
-
DirectiveLocation2["QUERY"] = "QUERY";
|
|
101766
|
-
DirectiveLocation2["MUTATION"] = "MUTATION";
|
|
101767
|
-
DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
101768
|
-
DirectiveLocation2["FIELD"] = "FIELD";
|
|
101769
|
-
DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
|
|
101770
|
-
DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
|
|
101771
|
-
DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
|
|
101772
|
-
DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
|
|
101773
|
-
DirectiveLocation2["SCHEMA"] = "SCHEMA";
|
|
101774
|
-
DirectiveLocation2["SCALAR"] = "SCALAR";
|
|
101775
|
-
DirectiveLocation2["OBJECT"] = "OBJECT";
|
|
101776
|
-
DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
|
|
101777
|
-
DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
|
|
101778
|
-
DirectiveLocation2["INTERFACE"] = "INTERFACE";
|
|
101779
|
-
DirectiveLocation2["UNION"] = "UNION";
|
|
101780
|
-
DirectiveLocation2["ENUM"] = "ENUM";
|
|
101781
|
-
DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
|
|
101782
|
-
DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
|
|
101783
|
-
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
|
101784
|
-
})(DirectiveLocation || (DirectiveLocation = {}));
|
|
101785
101646
|
|
|
101786
101647
|
/*!
|
|
101787
101648
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -101789,15 +101650,15 @@
|
|
|
101789
101650
|
* For full license text, see the LICENSE.txt file
|
|
101790
101651
|
*/
|
|
101791
101652
|
function extractValue(valueNode, variableDefinitions, expectedType) {
|
|
101792
|
-
if (valueNode.kind === Kind.VARIABLE) {
|
|
101653
|
+
if (valueNode.kind === Kind$1.VARIABLE) {
|
|
101793
101654
|
const variableResult = extractVariableValue(valueNode.name.value, variableDefinitions);
|
|
101794
101655
|
if (variableResult.isErr()) {
|
|
101795
101656
|
return variableResult;
|
|
101796
101657
|
}
|
|
101797
101658
|
return validateExpectedType(variableResult.value, expectedType);
|
|
101798
|
-
} else if (valueNode.kind === Kind.NULL) {
|
|
101659
|
+
} else if (valueNode.kind === Kind$1.NULL) {
|
|
101799
101660
|
return validateExpectedType(null, expectedType);
|
|
101800
|
-
} else if (valueNode.kind === Kind.LIST) {
|
|
101661
|
+
} else if (valueNode.kind === Kind$1.LIST) {
|
|
101801
101662
|
const values = [];
|
|
101802
101663
|
for (const val of valueNode.values) {
|
|
101803
101664
|
const extractedResult = extractValue(val, variableDefinitions);
|
|
@@ -101807,7 +101668,7 @@
|
|
|
101807
101668
|
values.push(extractedResult.value);
|
|
101808
101669
|
}
|
|
101809
101670
|
return validateExpectedType(values, expectedType);
|
|
101810
|
-
} else if (valueNode.kind === Kind.OBJECT) {
|
|
101671
|
+
} else if (valueNode.kind === Kind$1.OBJECT) {
|
|
101811
101672
|
const value = {};
|
|
101812
101673
|
for (const field of valueNode.fields) {
|
|
101813
101674
|
const extractedResult = extractValue(field.value, variableDefinitions);
|
|
@@ -101817,10 +101678,10 @@
|
|
|
101817
101678
|
value[field.name.value] = extractedResult.value;
|
|
101818
101679
|
}
|
|
101819
101680
|
return validateExpectedType(value, expectedType);
|
|
101820
|
-
} else if (valueNode.kind === Kind.INT) {
|
|
101681
|
+
} else if (valueNode.kind === Kind$1.INT) {
|
|
101821
101682
|
const value = parseInt(valueNode.value, 10);
|
|
101822
101683
|
return validateExpectedType(value, expectedType);
|
|
101823
|
-
} else if (valueNode.kind === Kind.FLOAT) {
|
|
101684
|
+
} else if (valueNode.kind === Kind$1.FLOAT) {
|
|
101824
101685
|
const value = parseFloat(valueNode.value);
|
|
101825
101686
|
return validateExpectedType(value, expectedType);
|
|
101826
101687
|
} else {
|
|
@@ -101897,9 +101758,9 @@
|
|
|
101897
101758
|
}
|
|
101898
101759
|
return target;
|
|
101899
101760
|
}
|
|
101900
|
-
function findExecutableOperation
|
|
101761
|
+
function findExecutableOperation(input) {
|
|
101901
101762
|
const operations = input.query.definitions.filter(
|
|
101902
|
-
(def) => def.kind === Kind.OPERATION_DEFINITION
|
|
101763
|
+
(def) => def.kind === Kind$1.OPERATION_DEFINITION
|
|
101903
101764
|
);
|
|
101904
101765
|
if (operations.length === 0) {
|
|
101905
101766
|
return err$3(new Error("No operations found in query"));
|
|
@@ -101920,7 +101781,7 @@
|
|
|
101920
101781
|
return err$3(new Error("Multiple operations found in query, and no operation name provided"));
|
|
101921
101782
|
}
|
|
101922
101783
|
function buildGraphQLInputExtension(input) {
|
|
101923
|
-
const operationResult = findExecutableOperation
|
|
101784
|
+
const operationResult = findExecutableOperation(input);
|
|
101924
101785
|
if (operationResult.isErr()) {
|
|
101925
101786
|
return err$3(operationResult.error);
|
|
101926
101787
|
}
|
|
@@ -101955,7 +101816,7 @@
|
|
|
101955
101816
|
const baseAliasedSelection = {
|
|
101956
101817
|
...newSelection,
|
|
101957
101818
|
alias: {
|
|
101958
|
-
kind: Kind.NAME,
|
|
101819
|
+
kind: Kind$1.NAME,
|
|
101959
101820
|
value: baseInjectedAlias
|
|
101960
101821
|
}
|
|
101961
101822
|
};
|
|
@@ -101966,7 +101827,7 @@
|
|
|
101966
101827
|
return {
|
|
101967
101828
|
...newSelection,
|
|
101968
101829
|
alias: {
|
|
101969
|
-
kind: Kind.NAME,
|
|
101830
|
+
kind: Kind$1.NAME,
|
|
101970
101831
|
value: fieldName
|
|
101971
101832
|
}
|
|
101972
101833
|
};
|
|
@@ -101979,11 +101840,11 @@
|
|
|
101979
101840
|
if (a.kind !== b.kind) {
|
|
101980
101841
|
return false;
|
|
101981
101842
|
}
|
|
101982
|
-
if (a.kind === Kind.FIELD) {
|
|
101843
|
+
if (a.kind === Kind$1.FIELD) {
|
|
101983
101844
|
const bField = b;
|
|
101984
101845
|
return !!(a.name.value === bField.name.value) && !!(((_a = a.alias) == null ? void 0 : _a.value) === ((_b = bField.alias) == null ? void 0 : _b.value)) && argumentsEqual(a.arguments, bField.arguments) && selectionSetsEqual((_c = a.selectionSet) == null ? void 0 : _c.selections, (_d = bField.selectionSet) == null ? void 0 : _d.selections) && directivesEqual(a.directives, bField.directives);
|
|
101985
101846
|
}
|
|
101986
|
-
if (a.kind === Kind.FRAGMENT_SPREAD) {
|
|
101847
|
+
if (a.kind === Kind$1.FRAGMENT_SPREAD) {
|
|
101987
101848
|
const bFragmentSpread = b;
|
|
101988
101849
|
return a.name.value === bFragmentSpread.name.value && directivesEqual(a.directives, bFragmentSpread.directives);
|
|
101989
101850
|
}
|
|
@@ -101995,23 +101856,23 @@
|
|
|
101995
101856
|
return false;
|
|
101996
101857
|
}
|
|
101997
101858
|
switch (a.kind) {
|
|
101998
|
-
case Kind.STRING:
|
|
101999
|
-
case Kind.INT:
|
|
102000
|
-
case Kind.FLOAT:
|
|
102001
|
-
case Kind.BOOLEAN:
|
|
102002
|
-
case Kind.ENUM:
|
|
101859
|
+
case Kind$1.STRING:
|
|
101860
|
+
case Kind$1.INT:
|
|
101861
|
+
case Kind$1.FLOAT:
|
|
101862
|
+
case Kind$1.BOOLEAN:
|
|
101863
|
+
case Kind$1.ENUM:
|
|
102003
101864
|
return a.value === b.value;
|
|
102004
|
-
case Kind.NULL:
|
|
101865
|
+
case Kind$1.NULL:
|
|
102005
101866
|
return true;
|
|
102006
|
-
case Kind.VARIABLE:
|
|
101867
|
+
case Kind$1.VARIABLE:
|
|
102007
101868
|
return a.name.value === b.name.value;
|
|
102008
|
-
case Kind.LIST:
|
|
101869
|
+
case Kind$1.LIST:
|
|
102009
101870
|
const bList = b;
|
|
102010
101871
|
if (a.values.length !== bList.values.length) {
|
|
102011
101872
|
return false;
|
|
102012
101873
|
}
|
|
102013
101874
|
return a.values.every((val, index) => argumentValueEquals(val, bList.values[index]));
|
|
102014
|
-
case Kind.OBJECT:
|
|
101875
|
+
case Kind$1.OBJECT:
|
|
102015
101876
|
const bObject = b;
|
|
102016
101877
|
if (a.fields.length !== bObject.fields.length) {
|
|
102017
101878
|
return false;
|
|
@@ -102112,23 +101973,23 @@
|
|
|
102112
101973
|
return ok$3(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
|
|
102113
101974
|
}
|
|
102114
101975
|
({
|
|
102115
|
-
kind: Kind.FIELD,
|
|
101976
|
+
kind: Kind$1.FIELD,
|
|
102116
101977
|
name: {
|
|
102117
|
-
kind: Kind.NAME,
|
|
101978
|
+
kind: Kind$1.NAME,
|
|
102118
101979
|
value: "__typename"
|
|
102119
101980
|
}
|
|
102120
101981
|
});
|
|
102121
101982
|
function isField(node) {
|
|
102122
|
-
return node.kind === Kind.FIELD;
|
|
101983
|
+
return node.kind === Kind$1.FIELD;
|
|
102123
101984
|
}
|
|
102124
101985
|
function isFragmentSpread(node) {
|
|
102125
|
-
return node.kind === Kind.FRAGMENT_SPREAD;
|
|
101986
|
+
return node.kind === Kind$1.FRAGMENT_SPREAD;
|
|
102126
101987
|
}
|
|
102127
101988
|
function isInlineFragment(node) {
|
|
102128
|
-
return node.kind === Kind.INLINE_FRAGMENT;
|
|
101989
|
+
return node.kind === Kind$1.INLINE_FRAGMENT;
|
|
102129
101990
|
}
|
|
102130
101991
|
function isFragmentDefinition(node) {
|
|
102131
|
-
return node.kind === Kind.FRAGMENT_DEFINITION;
|
|
101992
|
+
return node.kind === Kind$1.FRAGMENT_DEFINITION;
|
|
102132
101993
|
}
|
|
102133
101994
|
function extractIfArgument(directive, variables, directiveName) {
|
|
102134
101995
|
var _a;
|
|
@@ -102435,9 +102296,9 @@
|
|
|
102435
102296
|
}
|
|
102436
102297
|
const newTypenameSelection = buildAugmentedFieldSelection(
|
|
102437
102298
|
{
|
|
102438
|
-
kind: Kind.FIELD,
|
|
102299
|
+
kind: Kind$1.FIELD,
|
|
102439
102300
|
name: {
|
|
102440
|
-
kind: Kind.NAME,
|
|
102301
|
+
kind: Kind$1.NAME,
|
|
102441
102302
|
value: "__typename"
|
|
102442
102303
|
}
|
|
102443
102304
|
},
|
|
@@ -102464,7 +102325,7 @@
|
|
|
102464
102325
|
{
|
|
102465
102326
|
...selection,
|
|
102466
102327
|
selectionSet: {
|
|
102467
|
-
kind: Kind.SELECTION_SET,
|
|
102328
|
+
kind: Kind$1.SELECTION_SET,
|
|
102468
102329
|
selections: result.selections
|
|
102469
102330
|
}
|
|
102470
102331
|
}
|
|
@@ -102490,7 +102351,7 @@
|
|
|
102490
102351
|
{
|
|
102491
102352
|
...fragment,
|
|
102492
102353
|
selectionSet: {
|
|
102493
|
-
kind: Kind.SELECTION_SET,
|
|
102354
|
+
kind: Kind$1.SELECTION_SET,
|
|
102494
102355
|
selections: augmentedFragmentSelections.selections
|
|
102495
102356
|
}
|
|
102496
102357
|
}
|
|
@@ -102522,7 +102383,7 @@
|
|
|
102522
102383
|
[fragment.name.value]: {
|
|
102523
102384
|
...fragment,
|
|
102524
102385
|
selectionSet: {
|
|
102525
|
-
kind: Kind.SELECTION_SET,
|
|
102386
|
+
kind: Kind$1.SELECTION_SET,
|
|
102526
102387
|
selections: augmentedFragment.selections
|
|
102527
102388
|
}
|
|
102528
102389
|
}
|
|
@@ -102844,9 +102705,9 @@
|
|
|
102844
102705
|
let augmentedFragments = result.fragments;
|
|
102845
102706
|
const newSelection = buildAugmentedFieldSelection(
|
|
102846
102707
|
{
|
|
102847
|
-
kind: Kind.FIELD,
|
|
102708
|
+
kind: Kind$1.FIELD,
|
|
102848
102709
|
name: {
|
|
102849
|
-
kind: Kind.NAME,
|
|
102710
|
+
kind: Kind$1.NAME,
|
|
102850
102711
|
value: this.idField
|
|
102851
102712
|
}
|
|
102852
102713
|
},
|
|
@@ -102914,7 +102775,7 @@
|
|
|
102914
102775
|
buildKeyParams(input) {
|
|
102915
102776
|
var _a;
|
|
102916
102777
|
const idField = input.selections.find(
|
|
102917
|
-
(selection) => selection.kind === Kind.FIELD && selection.name.value === this.idField
|
|
102778
|
+
(selection) => selection.kind === Kind$1.FIELD && selection.name.value === this.idField
|
|
102918
102779
|
);
|
|
102919
102780
|
if (!idField) {
|
|
102920
102781
|
throw new Error(`Id field ${this.idField} not found in selections`);
|
|
@@ -102970,13 +102831,13 @@
|
|
|
102970
102831
|
}
|
|
102971
102832
|
buildAugmentedQuery(input) {
|
|
102972
102833
|
var _a;
|
|
102973
|
-
const operationResult = findExecutableOperation
|
|
102834
|
+
const operationResult = findExecutableOperation(input);
|
|
102974
102835
|
if (operationResult.isErr()) {
|
|
102975
102836
|
return err$3(operationResult.error);
|
|
102976
102837
|
}
|
|
102977
102838
|
const operation = operationResult.value;
|
|
102978
102839
|
const fragmentDefinitions = input.query.definitions.filter(
|
|
102979
|
-
(def) => def.kind === Kind.FRAGMENT_DEFINITION
|
|
102840
|
+
(def) => def.kind === Kind$1.FRAGMENT_DEFINITION
|
|
102980
102841
|
);
|
|
102981
102842
|
const fragments = fragmentDefinitions.reduce(
|
|
102982
102843
|
(acc, def) => {
|
|
@@ -102993,13 +102854,13 @@
|
|
|
102993
102854
|
let augmentedFragments = result.fragments;
|
|
102994
102855
|
const augmentedOperation = {
|
|
102995
102856
|
...operation,
|
|
102996
|
-
selectionSet: { kind: Kind.SELECTION_SET, selections: augmentedOperationSelections }
|
|
102857
|
+
selectionSet: { kind: Kind$1.SELECTION_SET, selections: augmentedOperationSelections }
|
|
102997
102858
|
};
|
|
102998
102859
|
return ok$3({
|
|
102999
102860
|
...input.query,
|
|
103000
102861
|
definitions: [
|
|
103001
|
-
...input.query.definitions.filter((def) => def.kind !== Kind.FRAGMENT_DEFINITION).map((def) => {
|
|
103002
|
-
if (def.kind !== Kind.OPERATION_DEFINITION || def !== operation) {
|
|
102862
|
+
...input.query.definitions.filter((def) => def.kind !== Kind$1.FRAGMENT_DEFINITION).map((def) => {
|
|
102863
|
+
if (def.kind !== Kind$1.OPERATION_DEFINITION || def !== operation) {
|
|
103003
102864
|
return def;
|
|
103004
102865
|
}
|
|
103005
102866
|
return augmentedOperation;
|
|
@@ -103108,7 +102969,7 @@
|
|
|
103108
102969
|
let augmentedFragments = { ...input.fragments };
|
|
103109
102970
|
input.selections.forEach((selection) => {
|
|
103110
102971
|
var _a;
|
|
103111
|
-
if (selection.kind === Kind.FIELD) {
|
|
102972
|
+
if (selection.kind === Kind$1.FIELD) {
|
|
103112
102973
|
if (Object.keys(this.fields).includes(selection.name.value)) {
|
|
103113
102974
|
const field = this.fields[selection.name.value];
|
|
103114
102975
|
const result2 = field.augmentSelections({
|
|
@@ -103117,7 +102978,7 @@
|
|
|
103117
102978
|
});
|
|
103118
102979
|
augmentedSelections.push({
|
|
103119
102980
|
...selection,
|
|
103120
|
-
selectionSet: { kind: Kind.SELECTION_SET, selections: result2.selections }
|
|
102981
|
+
selectionSet: { kind: Kind$1.SELECTION_SET, selections: result2.selections }
|
|
103121
102982
|
});
|
|
103122
102983
|
augmentedFragments = result2.fragments;
|
|
103123
102984
|
} else {
|
|
@@ -103135,7 +102996,7 @@
|
|
|
103135
102996
|
augmentedSelections.push(...result.selections);
|
|
103136
102997
|
augmentedFragments = result.fragments;
|
|
103137
102998
|
const newSelection = buildAugmentedFieldSelection(
|
|
103138
|
-
{ kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
|
|
102999
|
+
{ kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
|
|
103139
103000
|
augmentedSelections,
|
|
103140
103001
|
input.fragments
|
|
103141
103002
|
);
|
|
@@ -103147,7 +103008,7 @@
|
|
|
103147
103008
|
getTypeDiscriminator(data, selections) {
|
|
103148
103009
|
var _a;
|
|
103149
103010
|
const typenameSelection = selections.find(
|
|
103150
|
-
(selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
|
|
103011
|
+
(selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
|
|
103151
103012
|
);
|
|
103152
103013
|
if (typenameSelection) {
|
|
103153
103014
|
return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
|
|
@@ -103158,7 +103019,7 @@
|
|
|
103158
103019
|
verifyInterfaceFields(selections) {
|
|
103159
103020
|
let selectionErr;
|
|
103160
103021
|
selections.forEach((selection) => {
|
|
103161
|
-
if (selection.kind === Kind.FIELD) {
|
|
103022
|
+
if (selection.kind === Kind$1.FIELD) {
|
|
103162
103023
|
const fieldName = selection.name.value;
|
|
103163
103024
|
const selectionAllowed = fieldName === "__typename" || Object.keys(this.fields).includes(fieldName);
|
|
103164
103025
|
if (!selectionAllowed) {
|
|
@@ -103282,7 +103143,7 @@
|
|
|
103282
103143
|
augmentedSelections.push(...result.selections);
|
|
103283
103144
|
augmentedFragments = result.fragments;
|
|
103284
103145
|
const newSelection = buildAugmentedFieldSelection(
|
|
103285
|
-
{ kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
|
|
103146
|
+
{ kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
|
|
103286
103147
|
augmentedSelections,
|
|
103287
103148
|
input.fragments
|
|
103288
103149
|
);
|
|
@@ -103294,7 +103155,7 @@
|
|
|
103294
103155
|
getTypeDiscriminator(data, selections) {
|
|
103295
103156
|
var _a;
|
|
103296
103157
|
const typenameSelection = selections.find(
|
|
103297
|
-
(selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
|
|
103158
|
+
(selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
|
|
103298
103159
|
);
|
|
103299
103160
|
if (typenameSelection) {
|
|
103300
103161
|
return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
|
|
@@ -103305,7 +103166,7 @@
|
|
|
103305
103166
|
verifyUnionFields(selections) {
|
|
103306
103167
|
let selectionErr;
|
|
103307
103168
|
selections.forEach((selection) => {
|
|
103308
|
-
if (selection.kind === Kind.FIELD) {
|
|
103169
|
+
if (selection.kind === Kind$1.FIELD) {
|
|
103309
103170
|
const fieldName = selection.name.value;
|
|
103310
103171
|
const selectionAllowed = fieldName === "__typename";
|
|
103311
103172
|
if (!selectionAllowed) {
|
|
@@ -103342,12 +103203,12 @@
|
|
|
103342
103203
|
selections: [...input.selections, ...augmentedSelections],
|
|
103343
103204
|
fragments: augmentedFragments
|
|
103344
103205
|
});
|
|
103345
|
-
const typeSelections = result.selections.filter((selection) => selection.kind !== Kind.FIELD).map((selection) => {
|
|
103346
|
-
if (selection.kind === Kind.INLINE_FRAGMENT) {
|
|
103206
|
+
const typeSelections = result.selections.filter((selection) => selection.kind !== Kind$1.FIELD).map((selection) => {
|
|
103207
|
+
if (selection.kind === Kind$1.INLINE_FRAGMENT) {
|
|
103347
103208
|
return {
|
|
103348
103209
|
...selection,
|
|
103349
103210
|
selectionSet: {
|
|
103350
|
-
kind: Kind.SELECTION_SET,
|
|
103211
|
+
kind: Kind$1.SELECTION_SET,
|
|
103351
103212
|
selections: selection.selectionSet.selections
|
|
103352
103213
|
}
|
|
103353
103214
|
};
|
|
@@ -103376,6 +103237,195 @@
|
|
|
103376
103237
|
* For full license text, see the LICENSE.txt file
|
|
103377
103238
|
*/
|
|
103378
103239
|
|
|
103240
|
+
var Kind;
|
|
103241
|
+
(function(Kind2) {
|
|
103242
|
+
Kind2["NAME"] = "Name";
|
|
103243
|
+
Kind2["DOCUMENT"] = "Document";
|
|
103244
|
+
Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
|
|
103245
|
+
Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
|
|
103246
|
+
Kind2["SELECTION_SET"] = "SelectionSet";
|
|
103247
|
+
Kind2["FIELD"] = "Field";
|
|
103248
|
+
Kind2["ARGUMENT"] = "Argument";
|
|
103249
|
+
Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
|
|
103250
|
+
Kind2["INLINE_FRAGMENT"] = "InlineFragment";
|
|
103251
|
+
Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
|
|
103252
|
+
Kind2["VARIABLE"] = "Variable";
|
|
103253
|
+
Kind2["INT"] = "IntValue";
|
|
103254
|
+
Kind2["FLOAT"] = "FloatValue";
|
|
103255
|
+
Kind2["STRING"] = "StringValue";
|
|
103256
|
+
Kind2["BOOLEAN"] = "BooleanValue";
|
|
103257
|
+
Kind2["NULL"] = "NullValue";
|
|
103258
|
+
Kind2["ENUM"] = "EnumValue";
|
|
103259
|
+
Kind2["LIST"] = "ListValue";
|
|
103260
|
+
Kind2["OBJECT"] = "ObjectValue";
|
|
103261
|
+
Kind2["OBJECT_FIELD"] = "ObjectField";
|
|
103262
|
+
Kind2["DIRECTIVE"] = "Directive";
|
|
103263
|
+
Kind2["NAMED_TYPE"] = "NamedType";
|
|
103264
|
+
Kind2["LIST_TYPE"] = "ListType";
|
|
103265
|
+
Kind2["NON_NULL_TYPE"] = "NonNullType";
|
|
103266
|
+
Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
|
|
103267
|
+
Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
|
|
103268
|
+
Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
|
|
103269
|
+
Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
|
|
103270
|
+
Kind2["FIELD_DEFINITION"] = "FieldDefinition";
|
|
103271
|
+
Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
|
|
103272
|
+
Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
|
|
103273
|
+
Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
|
|
103274
|
+
Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
|
|
103275
|
+
Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
|
|
103276
|
+
Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
|
|
103277
|
+
Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
|
|
103278
|
+
Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
|
|
103279
|
+
Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
|
|
103280
|
+
Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
|
|
103281
|
+
Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
|
|
103282
|
+
Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
|
|
103283
|
+
Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
|
|
103284
|
+
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
103285
|
+
})(Kind || (Kind = {}));
|
|
103286
|
+
var TokenKind;
|
|
103287
|
+
(function(TokenKind2) {
|
|
103288
|
+
TokenKind2["SOF"] = "<SOF>";
|
|
103289
|
+
TokenKind2["EOF"] = "<EOF>";
|
|
103290
|
+
TokenKind2["BANG"] = "!";
|
|
103291
|
+
TokenKind2["DOLLAR"] = "$";
|
|
103292
|
+
TokenKind2["AMP"] = "&";
|
|
103293
|
+
TokenKind2["PAREN_L"] = "(";
|
|
103294
|
+
TokenKind2["PAREN_R"] = ")";
|
|
103295
|
+
TokenKind2["SPREAD"] = "...";
|
|
103296
|
+
TokenKind2["COLON"] = ":";
|
|
103297
|
+
TokenKind2["EQUALS"] = "=";
|
|
103298
|
+
TokenKind2["AT"] = "@";
|
|
103299
|
+
TokenKind2["BRACKET_L"] = "[";
|
|
103300
|
+
TokenKind2["BRACKET_R"] = "]";
|
|
103301
|
+
TokenKind2["BRACE_L"] = "{";
|
|
103302
|
+
TokenKind2["PIPE"] = "|";
|
|
103303
|
+
TokenKind2["BRACE_R"] = "}";
|
|
103304
|
+
TokenKind2["NAME"] = "Name";
|
|
103305
|
+
TokenKind2["INT"] = "Int";
|
|
103306
|
+
TokenKind2["FLOAT"] = "Float";
|
|
103307
|
+
TokenKind2["STRING"] = "String";
|
|
103308
|
+
TokenKind2["BLOCK_STRING"] = "BlockString";
|
|
103309
|
+
TokenKind2["COMMENT"] = "Comment";
|
|
103310
|
+
})(TokenKind || (TokenKind = {}));
|
|
103311
|
+
const QueryDocumentKeys = {
|
|
103312
|
+
Name: [],
|
|
103313
|
+
Document: ["definitions"],
|
|
103314
|
+
OperationDefinition: [
|
|
103315
|
+
"name",
|
|
103316
|
+
"variableDefinitions",
|
|
103317
|
+
"directives",
|
|
103318
|
+
"selectionSet"
|
|
103319
|
+
],
|
|
103320
|
+
VariableDefinition: ["variable", "type", "defaultValue", "directives"],
|
|
103321
|
+
Variable: ["name"],
|
|
103322
|
+
SelectionSet: ["selections"],
|
|
103323
|
+
Field: ["alias", "name", "arguments", "directives", "selectionSet"],
|
|
103324
|
+
Argument: ["name", "value"],
|
|
103325
|
+
FragmentSpread: ["name", "directives"],
|
|
103326
|
+
InlineFragment: ["typeCondition", "directives", "selectionSet"],
|
|
103327
|
+
FragmentDefinition: [
|
|
103328
|
+
"name",
|
|
103329
|
+
// Note: fragment variable definitions are deprecated and will removed in v17.0.0
|
|
103330
|
+
"variableDefinitions",
|
|
103331
|
+
"typeCondition",
|
|
103332
|
+
"directives",
|
|
103333
|
+
"selectionSet"
|
|
103334
|
+
],
|
|
103335
|
+
IntValue: [],
|
|
103336
|
+
FloatValue: [],
|
|
103337
|
+
StringValue: [],
|
|
103338
|
+
BooleanValue: [],
|
|
103339
|
+
NullValue: [],
|
|
103340
|
+
EnumValue: [],
|
|
103341
|
+
ListValue: ["values"],
|
|
103342
|
+
ObjectValue: ["fields"],
|
|
103343
|
+
ObjectField: ["name", "value"],
|
|
103344
|
+
Directive: ["name", "arguments"],
|
|
103345
|
+
NamedType: ["name"],
|
|
103346
|
+
ListType: ["type"],
|
|
103347
|
+
NonNullType: ["type"],
|
|
103348
|
+
SchemaDefinition: ["description", "directives", "operationTypes"],
|
|
103349
|
+
OperationTypeDefinition: ["type"],
|
|
103350
|
+
ScalarTypeDefinition: ["description", "name", "directives"],
|
|
103351
|
+
ObjectTypeDefinition: [
|
|
103352
|
+
"description",
|
|
103353
|
+
"name",
|
|
103354
|
+
"interfaces",
|
|
103355
|
+
"directives",
|
|
103356
|
+
"fields"
|
|
103357
|
+
],
|
|
103358
|
+
FieldDefinition: ["description", "name", "arguments", "type", "directives"],
|
|
103359
|
+
InputValueDefinition: [
|
|
103360
|
+
"description",
|
|
103361
|
+
"name",
|
|
103362
|
+
"type",
|
|
103363
|
+
"defaultValue",
|
|
103364
|
+
"directives"
|
|
103365
|
+
],
|
|
103366
|
+
InterfaceTypeDefinition: [
|
|
103367
|
+
"description",
|
|
103368
|
+
"name",
|
|
103369
|
+
"interfaces",
|
|
103370
|
+
"directives",
|
|
103371
|
+
"fields"
|
|
103372
|
+
],
|
|
103373
|
+
UnionTypeDefinition: ["description", "name", "directives", "types"],
|
|
103374
|
+
EnumTypeDefinition: ["description", "name", "directives", "values"],
|
|
103375
|
+
EnumValueDefinition: ["description", "name", "directives"],
|
|
103376
|
+
InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
|
|
103377
|
+
DirectiveDefinition: ["description", "name", "arguments", "locations"],
|
|
103378
|
+
SchemaExtension: ["directives", "operationTypes"],
|
|
103379
|
+
ScalarTypeExtension: ["name", "directives"],
|
|
103380
|
+
ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
103381
|
+
InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
103382
|
+
UnionTypeExtension: ["name", "directives", "types"],
|
|
103383
|
+
EnumTypeExtension: ["name", "directives", "values"],
|
|
103384
|
+
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
103385
|
+
};
|
|
103386
|
+
new Set(Object.keys(QueryDocumentKeys));
|
|
103387
|
+
var OperationTypeNode;
|
|
103388
|
+
(function(OperationTypeNode2) {
|
|
103389
|
+
OperationTypeNode2["QUERY"] = "query";
|
|
103390
|
+
OperationTypeNode2["MUTATION"] = "mutation";
|
|
103391
|
+
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
103392
|
+
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
103393
|
+
var DirectiveLocation;
|
|
103394
|
+
(function(DirectiveLocation2) {
|
|
103395
|
+
DirectiveLocation2["QUERY"] = "QUERY";
|
|
103396
|
+
DirectiveLocation2["MUTATION"] = "MUTATION";
|
|
103397
|
+
DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
103398
|
+
DirectiveLocation2["FIELD"] = "FIELD";
|
|
103399
|
+
DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
|
|
103400
|
+
DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
|
|
103401
|
+
DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
|
|
103402
|
+
DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
|
|
103403
|
+
DirectiveLocation2["SCHEMA"] = "SCHEMA";
|
|
103404
|
+
DirectiveLocation2["SCALAR"] = "SCALAR";
|
|
103405
|
+
DirectiveLocation2["OBJECT"] = "OBJECT";
|
|
103406
|
+
DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
|
|
103407
|
+
DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
|
|
103408
|
+
DirectiveLocation2["INTERFACE"] = "INTERFACE";
|
|
103409
|
+
DirectiveLocation2["UNION"] = "UNION";
|
|
103410
|
+
DirectiveLocation2["ENUM"] = "ENUM";
|
|
103411
|
+
DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
|
|
103412
|
+
DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
|
|
103413
|
+
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
|
103414
|
+
})(DirectiveLocation || (DirectiveLocation = {}));
|
|
103415
|
+
const referenceMap = /* @__PURE__ */ new WeakMap();
|
|
103416
|
+
const astResolver = function(astReference) {
|
|
103417
|
+
return referenceMap.get(astReference);
|
|
103418
|
+
};
|
|
103419
|
+
function resolveAst(ast) {
|
|
103420
|
+
if (ast === null || ast === void 0) {
|
|
103421
|
+
return;
|
|
103422
|
+
}
|
|
103423
|
+
const result = astResolver(ast);
|
|
103424
|
+
if (result === void 0) {
|
|
103425
|
+
throw new Error("Could not resolve AST. Did you parse the query with gql?");
|
|
103426
|
+
}
|
|
103427
|
+
return result;
|
|
103428
|
+
}
|
|
103379
103429
|
|
|
103380
103430
|
/**
|
|
103381
103431
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -103389,10 +103439,8 @@
|
|
|
103389
103439
|
* All rights reserved.
|
|
103390
103440
|
* For full license text, see the LICENSE.txt file
|
|
103391
103441
|
*/
|
|
103392
|
-
const {
|
|
103393
|
-
|
|
103394
|
-
const WeakSetConstructor = WeakSet;
|
|
103395
|
-
let Ok$1 = class Ok {
|
|
103442
|
+
const { hasOwnProperty: hasOwnProperty$2 } = Object.prototype;
|
|
103443
|
+
class Ok {
|
|
103396
103444
|
constructor(value) {
|
|
103397
103445
|
this.value = value;
|
|
103398
103446
|
}
|
|
@@ -103402,576 +103450,70 @@
|
|
|
103402
103450
|
isErr() {
|
|
103403
103451
|
return !this.isOk();
|
|
103404
103452
|
}
|
|
103405
|
-
};
|
|
103406
|
-
const ok$1 = (value) => new Ok$1(value);
|
|
103407
|
-
function isResult(value) {
|
|
103408
|
-
return value != null && typeof value === "object" && "isOk" in value && "isErr" in value && typeof value.isOk === "function" && typeof value.isErr === "function" && (value.isOk() === true && value.isErr() === false && "value" in value || value.isOk() === false && value.isErr() === true && "error" in value);
|
|
103409
|
-
}
|
|
103410
|
-
function isSubscribable(obj) {
|
|
103411
|
-
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
103412
103453
|
}
|
|
103413
|
-
|
|
103414
|
-
|
|
103415
|
-
|
|
103416
|
-
}
|
|
103417
|
-
return isSubscribable(x.isOk() ? x.value : x.error);
|
|
103418
|
-
}
|
|
103419
|
-
const deeplyFrozen = new WeakSetConstructor();
|
|
103420
|
-
function deepFreeze(value) {
|
|
103421
|
-
if (typeof value !== "object" || value === null || deeplyFrozen.has(value)) {
|
|
103422
|
-
return;
|
|
103423
|
-
}
|
|
103424
|
-
deeplyFrozen.add(value);
|
|
103425
|
-
if (isArray$2$1(value)) {
|
|
103426
|
-
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
103427
|
-
deepFreeze(value[i]);
|
|
103428
|
-
}
|
|
103429
|
-
} else {
|
|
103430
|
-
const keys$1$1$1 = keys$1$1(value);
|
|
103431
|
-
for (let i = 0, len = keys$1$1$1.length; i < len; i += 1) {
|
|
103432
|
-
deepFreeze(value[keys$1$1$1[i]]);
|
|
103433
|
-
}
|
|
103434
|
-
}
|
|
103435
|
-
freeze$1$1(value);
|
|
103436
|
-
}
|
|
103437
|
-
|
|
103438
|
-
/*!
|
|
103439
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
103440
|
-
* All rights reserved.
|
|
103441
|
-
* For full license text, see the LICENSE.txt file
|
|
103442
|
-
*/
|
|
103443
|
-
class Sanitizer {
|
|
103444
|
-
constructor(obj) {
|
|
103445
|
-
this.obj = obj;
|
|
103446
|
-
this.copy = {};
|
|
103447
|
-
this.currentPath = {
|
|
103448
|
-
key: "",
|
|
103449
|
-
value: obj,
|
|
103450
|
-
parent: null,
|
|
103451
|
-
data: this.copy
|
|
103452
|
-
};
|
|
103453
|
-
}
|
|
103454
|
-
sanitize() {
|
|
103455
|
-
const sanitizer = this;
|
|
103456
|
-
JSON.stringify(this.obj, function(key, value) {
|
|
103457
|
-
if (key === "") {
|
|
103458
|
-
return value;
|
|
103459
|
-
}
|
|
103460
|
-
const parent = this;
|
|
103461
|
-
if (parent !== sanitizer.currentPath.value) {
|
|
103462
|
-
sanitizer.exit(parent);
|
|
103463
|
-
}
|
|
103464
|
-
if (typeof value === "object" && value !== null) {
|
|
103465
|
-
sanitizer.enter(key, value);
|
|
103466
|
-
return value;
|
|
103467
|
-
}
|
|
103468
|
-
sanitizer.currentPath.data[key] = value;
|
|
103469
|
-
return value;
|
|
103470
|
-
});
|
|
103471
|
-
return this.copy;
|
|
103472
|
-
}
|
|
103473
|
-
enter(key, value) {
|
|
103474
|
-
const { currentPath: parentPath } = this;
|
|
103475
|
-
const data = parentPath.data[key] = Array.isArray(value) ? [] : {};
|
|
103476
|
-
this.currentPath = {
|
|
103477
|
-
key,
|
|
103478
|
-
value,
|
|
103479
|
-
parent: parentPath,
|
|
103480
|
-
data
|
|
103481
|
-
};
|
|
103482
|
-
}
|
|
103483
|
-
exit(parent) {
|
|
103484
|
-
while (this.currentPath.value !== parent) {
|
|
103485
|
-
this.currentPath = this.currentPath.parent || this.currentPath;
|
|
103486
|
-
}
|
|
103487
|
-
}
|
|
103488
|
-
}
|
|
103489
|
-
function sanitize(obj) {
|
|
103490
|
-
return new Sanitizer(obj).sanitize();
|
|
103491
|
-
}
|
|
103492
|
-
function isUserVisibleError$1(error) {
|
|
103493
|
-
return error instanceof Error && "type" in error && error.type === "user-visible";
|
|
103494
|
-
}
|
|
103495
|
-
function emitError(callback, error) {
|
|
103496
|
-
logError$1(error);
|
|
103497
|
-
callback({ data: void 0, error: buildUserlandError(error) });
|
|
103498
|
-
}
|
|
103499
|
-
function buildUserlandError(error) {
|
|
103500
|
-
if (isUserVisibleError$1(error)) {
|
|
103501
|
-
return error.data;
|
|
103454
|
+
class Err {
|
|
103455
|
+
constructor(error) {
|
|
103456
|
+
this.error = error;
|
|
103502
103457
|
}
|
|
103503
|
-
|
|
103504
|
-
|
|
103505
|
-
function logError$1(error) {
|
|
103506
|
-
if (isUserVisibleError$1(error)) {
|
|
103507
|
-
return;
|
|
103458
|
+
isOk() {
|
|
103459
|
+
return false;
|
|
103508
103460
|
}
|
|
103509
|
-
|
|
103510
|
-
|
|
103511
|
-
const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
|
|
103512
|
-
function requestContextIsSupportedCachePolicy(requestContext) {
|
|
103513
|
-
return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes.includes(
|
|
103514
|
-
requestContext.cachePolicy.type
|
|
103515
|
-
);
|
|
103516
|
-
}
|
|
103517
|
-
function getOverridesForLegacyRequestContext(requestContext) {
|
|
103518
|
-
if (requestContextIsSupportedCachePolicy(requestContext)) {
|
|
103519
|
-
return { cacheControlConfig: { type: requestContext.cachePolicy.type } };
|
|
103461
|
+
isErr() {
|
|
103462
|
+
return !this.isOk();
|
|
103520
103463
|
}
|
|
103521
|
-
return {};
|
|
103522
103464
|
}
|
|
103523
|
-
|
|
103524
|
-
|
|
103525
|
-
|
|
103526
|
-
|
|
103527
|
-
|
|
103528
|
-
if (!(options == null ? void 0 : options.skipEmptyEmit)) {
|
|
103529
|
-
this.emit();
|
|
103530
|
-
}
|
|
103531
|
-
}
|
|
103532
|
-
connect() {
|
|
103533
|
-
this.connected = true;
|
|
103534
|
-
this.invokeAdapter();
|
|
103535
|
-
}
|
|
103536
|
-
disconnect() {
|
|
103537
|
-
this.unsubscribe();
|
|
103538
|
-
this.connected = false;
|
|
103539
|
-
}
|
|
103540
|
-
update(config, _context) {
|
|
103541
|
-
this.unsubscribe();
|
|
103542
|
-
this.config = sanitize(config);
|
|
103543
|
-
this.invokeAdapter();
|
|
103544
|
-
}
|
|
103545
|
-
emit(result) {
|
|
103546
|
-
try {
|
|
103547
|
-
if (result === void 0) {
|
|
103548
|
-
this.callback({ data: void 0, error: void 0 });
|
|
103549
|
-
} else {
|
|
103550
|
-
const consumerEmittedRefresh = () => {
|
|
103551
|
-
if (!this.refresh) {
|
|
103552
|
-
return Promise.resolve();
|
|
103553
|
-
}
|
|
103554
|
-
return new Promise((resolve, reject) => {
|
|
103555
|
-
if (!this.refresh) {
|
|
103556
|
-
resolve();
|
|
103557
|
-
return;
|
|
103558
|
-
}
|
|
103559
|
-
this.refresh().then((res) => {
|
|
103560
|
-
if (res.isOk()) {
|
|
103561
|
-
resolve();
|
|
103562
|
-
} else {
|
|
103563
|
-
reject(
|
|
103564
|
-
new Error(
|
|
103565
|
-
"Internal error in Lightning Data Service adapter occurred: Failed to refresh data"
|
|
103566
|
-
)
|
|
103567
|
-
);
|
|
103568
|
-
}
|
|
103569
|
-
});
|
|
103570
|
-
});
|
|
103571
|
-
};
|
|
103572
|
-
let consumerEmittedData = {
|
|
103573
|
-
data: void 0,
|
|
103574
|
-
error: void 0
|
|
103575
|
-
};
|
|
103576
|
-
if (this.exposeRefresh && this.refresh) {
|
|
103577
|
-
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
103578
|
-
}
|
|
103579
|
-
if (result.isErr()) {
|
|
103580
|
-
if (isSubscribableResult(result)) {
|
|
103581
|
-
consumerEmittedData.error = result.error.failure;
|
|
103582
|
-
} else {
|
|
103583
|
-
consumerEmittedData.error = result.error;
|
|
103584
|
-
}
|
|
103585
|
-
} else {
|
|
103586
|
-
if (isSubscribableResult(result)) {
|
|
103587
|
-
deepFreeze(result.value.data);
|
|
103588
|
-
consumerEmittedData.data = result.value.data;
|
|
103589
|
-
} else {
|
|
103590
|
-
deepFreeze(result.value);
|
|
103591
|
-
consumerEmittedData.data = result.value;
|
|
103592
|
-
}
|
|
103593
|
-
}
|
|
103594
|
-
this.callback(consumerEmittedData);
|
|
103595
|
-
}
|
|
103596
|
-
} catch (e) {
|
|
103597
|
-
this.handleExecutionThrow(e);
|
|
103598
|
-
}
|
|
103465
|
+
const ok = (value) => new Ok(value);
|
|
103466
|
+
const err = (err2) => new Err(err2);
|
|
103467
|
+
function resolvedPromiseLike(result) {
|
|
103468
|
+
if (isPromiseLike(result)) {
|
|
103469
|
+
return result.then((nextResult) => nextResult);
|
|
103599
103470
|
}
|
|
103600
|
-
|
|
103601
|
-
|
|
103602
|
-
return;
|
|
103603
|
-
}
|
|
103604
|
-
if (this.configSchema) {
|
|
103471
|
+
return {
|
|
103472
|
+
then: (onFulfilled, _onRejected) => {
|
|
103605
103473
|
try {
|
|
103606
|
-
|
|
103607
|
-
} catch (
|
|
103608
|
-
if (
|
|
103609
|
-
return;
|
|
103474
|
+
return resolvedPromiseLike(onFulfilled(result));
|
|
103475
|
+
} catch (e) {
|
|
103476
|
+
if (onFulfilled === void 0) {
|
|
103477
|
+
return resolvedPromiseLike(result);
|
|
103610
103478
|
}
|
|
103611
|
-
|
|
103479
|
+
return rejectedPromiseLike(e);
|
|
103612
103480
|
}
|
|
103613
103481
|
}
|
|
103614
|
-
const initialConfig = this.config;
|
|
103615
|
-
const command = this.getCommand();
|
|
103616
|
-
try {
|
|
103617
|
-
command.execute().then((result) => {
|
|
103618
|
-
if (!this.connected || this.config !== initialConfig) {
|
|
103619
|
-
return;
|
|
103620
|
-
}
|
|
103621
|
-
this.refresh = void 0;
|
|
103622
|
-
if (result.isOk()) {
|
|
103623
|
-
if (isSubscribableResult(result)) {
|
|
103624
|
-
const value = result.value;
|
|
103625
|
-
this.unsubscriber = value.subscribe((updatedResult) => {
|
|
103626
|
-
if (!this.connected || this.config !== initialConfig) {
|
|
103627
|
-
this.unsubscribe();
|
|
103628
|
-
return;
|
|
103629
|
-
}
|
|
103630
|
-
this.emit(updatedResult);
|
|
103631
|
-
});
|
|
103632
|
-
this.refresh = value.refresh;
|
|
103633
|
-
this.emit(ok$1(value.data));
|
|
103634
|
-
} else {
|
|
103635
|
-
this.emit(result);
|
|
103636
|
-
}
|
|
103637
|
-
} else {
|
|
103638
|
-
if (isSubscribableResult(result)) {
|
|
103639
|
-
const value = result.error;
|
|
103640
|
-
this.unsubscriber = value.subscribe((updatedResult) => {
|
|
103641
|
-
if (!this.connected || this.config !== initialConfig) {
|
|
103642
|
-
this.unsubscribe();
|
|
103643
|
-
return;
|
|
103644
|
-
}
|
|
103645
|
-
this.emit(updatedResult);
|
|
103646
|
-
});
|
|
103647
|
-
this.refresh = value.refresh;
|
|
103648
|
-
this.emit(result);
|
|
103649
|
-
} else {
|
|
103650
|
-
this.unsubscriber = () => {
|
|
103651
|
-
};
|
|
103652
|
-
this.emit(result);
|
|
103653
|
-
}
|
|
103654
|
-
}
|
|
103655
|
-
});
|
|
103656
|
-
} catch (e) {
|
|
103657
|
-
this.handleExecutionThrow(e);
|
|
103658
|
-
}
|
|
103659
|
-
}
|
|
103660
|
-
handleExecutionThrow(error) {
|
|
103661
|
-
emitError(this.callback, error);
|
|
103662
|
-
}
|
|
103663
|
-
unsubscribe() {
|
|
103664
|
-
if (this.unsubscriber) {
|
|
103665
|
-
this.unsubscriber();
|
|
103666
|
-
delete this.unsubscriber;
|
|
103667
|
-
}
|
|
103668
|
-
}
|
|
103669
|
-
}
|
|
103670
|
-
function isIncompleteConfigError(err2) {
|
|
103671
|
-
return err2 instanceof MissingRequiredPropertyError || err2 instanceof JsonSchemaViolationError && err2.validationErrors.find(
|
|
103672
|
-
(validationError) => validationError instanceof MissingRequiredPropertyError
|
|
103673
|
-
) !== void 0;
|
|
103674
|
-
}
|
|
103675
|
-
function findExecutableOperation(document, operationName) {
|
|
103676
|
-
const operations = document.definitions.filter(
|
|
103677
|
-
(def) => def.kind === Kind$1.OPERATION_DEFINITION
|
|
103678
|
-
);
|
|
103679
|
-
if (operations.length === 0) {
|
|
103680
|
-
return void 0;
|
|
103681
|
-
}
|
|
103682
|
-
if (operations.length === 1 && !operationName) {
|
|
103683
|
-
return operations[0];
|
|
103684
|
-
}
|
|
103685
|
-
if (operationName) {
|
|
103686
|
-
return operations.find((op) => {
|
|
103687
|
-
var _a;
|
|
103688
|
-
return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
|
|
103689
|
-
});
|
|
103690
|
-
}
|
|
103691
|
-
return void 0;
|
|
103692
|
-
}
|
|
103693
|
-
function validateGraphQLOperations(config, options) {
|
|
103694
|
-
const executableOperation = findExecutableOperation(config.query, config.operationName);
|
|
103695
|
-
if (executableOperation) {
|
|
103696
|
-
const operationType = executableOperation.operation;
|
|
103697
|
-
if (!options.acceptedOperations.includes(operationType)) {
|
|
103698
|
-
const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
|
|
103699
|
-
throw new Error(
|
|
103700
|
-
`${operationTypeCapitalized} operations are not supported in this context`
|
|
103701
|
-
);
|
|
103702
|
-
}
|
|
103703
|
-
}
|
|
103704
|
-
}
|
|
103705
|
-
function resolveAst(ast) {
|
|
103706
|
-
if (ast === null || ast === void 0) {
|
|
103707
|
-
return;
|
|
103708
|
-
}
|
|
103709
|
-
const result = astResolver(ast);
|
|
103710
|
-
if (result === void 0) {
|
|
103711
|
-
throw new Error("Could not resolve AST. Did you parse the query with gql?");
|
|
103712
|
-
}
|
|
103713
|
-
return result;
|
|
103714
|
-
}
|
|
103715
|
-
function wrapConfigAndVerify(config, options) {
|
|
103716
|
-
if (config == null ? void 0 : config.query) {
|
|
103717
|
-
config = { ...config, query: resolveAst(config.query) };
|
|
103718
|
-
if (config.query === void 0) {
|
|
103719
|
-
throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
|
|
103720
|
-
}
|
|
103721
|
-
validateGraphQLOperations(config, {
|
|
103722
|
-
acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
|
|
103723
|
-
});
|
|
103724
|
-
}
|
|
103725
|
-
return config;
|
|
103726
|
-
}
|
|
103727
|
-
function toGraphQLResponseFromFailure$1(failure) {
|
|
103728
|
-
if (isUserVisibleError$1(failure)) {
|
|
103729
|
-
return {
|
|
103730
|
-
data: failure.data.data,
|
|
103731
|
-
errors: failure.data.errors
|
|
103732
|
-
};
|
|
103733
|
-
}
|
|
103734
|
-
logError$1(failure);
|
|
103735
|
-
return {
|
|
103736
|
-
data: void 0,
|
|
103737
|
-
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
103738
103482
|
};
|
|
103739
103483
|
}
|
|
103740
|
-
|
|
103741
|
-
|
|
103742
|
-
|
|
103743
|
-
if (result === void 0) {
|
|
103744
|
-
this.callback({ data: void 0, errors: void 0 });
|
|
103745
|
-
} else {
|
|
103746
|
-
const consumerEmittedRefresh = () => {
|
|
103747
|
-
if (!this.refresh) {
|
|
103748
|
-
return Promise.resolve();
|
|
103749
|
-
}
|
|
103750
|
-
return new Promise((resolve, reject) => {
|
|
103751
|
-
if (!this.refresh) {
|
|
103752
|
-
resolve();
|
|
103753
|
-
return;
|
|
103754
|
-
}
|
|
103755
|
-
this.refresh().then((res) => {
|
|
103756
|
-
if (res.isOk()) {
|
|
103757
|
-
resolve();
|
|
103758
|
-
} else {
|
|
103759
|
-
reject(
|
|
103760
|
-
new Error(
|
|
103761
|
-
"Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
|
|
103762
|
-
)
|
|
103763
|
-
);
|
|
103764
|
-
}
|
|
103765
|
-
});
|
|
103766
|
-
});
|
|
103767
|
-
};
|
|
103768
|
-
let consumerEmittedData = {
|
|
103769
|
-
data: void 0,
|
|
103770
|
-
errors: void 0
|
|
103771
|
-
};
|
|
103772
|
-
if (this.exposeRefresh && this.refresh) {
|
|
103773
|
-
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
103774
|
-
}
|
|
103775
|
-
if (result.isErr()) {
|
|
103776
|
-
const failure = isSubscribableResult(result) ? result.error.failure : result.error;
|
|
103777
|
-
const resp = toGraphQLResponseFromFailure$1(failure);
|
|
103778
|
-
consumerEmittedData.data = resp.data;
|
|
103779
|
-
consumerEmittedData.errors = resp.errors;
|
|
103780
|
-
} else {
|
|
103781
|
-
consumerEmittedData.data = result.value.data;
|
|
103782
|
-
}
|
|
103783
|
-
deepFreeze(consumerEmittedData);
|
|
103784
|
-
this.callback(consumerEmittedData);
|
|
103785
|
-
}
|
|
103786
|
-
} catch (e) {
|
|
103787
|
-
logError$1(e);
|
|
103788
|
-
this.handleExecutionThrow(e);
|
|
103789
|
-
}
|
|
103790
|
-
}
|
|
103791
|
-
handleExecutionThrow(e) {
|
|
103792
|
-
logError$1(e);
|
|
103793
|
-
this.callback({
|
|
103794
|
-
data: void 0,
|
|
103795
|
-
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
103796
|
-
});
|
|
103797
|
-
}
|
|
103798
|
-
update(config, _context) {
|
|
103799
|
-
this.unsubscribe();
|
|
103800
|
-
const resolvedQuery = resolveAst(config.query);
|
|
103801
|
-
if (resolvedQuery) {
|
|
103802
|
-
validateGraphQLOperations(
|
|
103803
|
-
{ query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
|
|
103804
|
-
{ acceptedOperations: ["query"] }
|
|
103805
|
-
);
|
|
103806
|
-
}
|
|
103807
|
-
this.config = {
|
|
103808
|
-
...sanitize(config),
|
|
103809
|
-
query: resolvedQuery
|
|
103810
|
-
};
|
|
103811
|
-
this.invokeAdapter();
|
|
103484
|
+
function rejectedPromiseLike(reason) {
|
|
103485
|
+
if (isPromiseLike(reason)) {
|
|
103486
|
+
return reason.then((nextResult) => nextResult);
|
|
103812
103487
|
}
|
|
103813
|
-
|
|
103814
|
-
|
|
103815
|
-
|
|
103816
|
-
|
|
103817
|
-
|
|
103818
|
-
|
|
103819
|
-
|
|
103820
|
-
const command = getCommand({ params, assertIsValid });
|
|
103821
|
-
const result = await command.execute();
|
|
103822
|
-
const consumerEmittedData = {
|
|
103823
|
-
data: void 0,
|
|
103824
|
-
errors: void 0
|
|
103825
|
-
};
|
|
103826
|
-
if (result.isOk()) {
|
|
103827
|
-
deepFreeze(result.value);
|
|
103828
|
-
consumerEmittedData.data = result.value.data.data;
|
|
103829
|
-
consumerEmittedData.subscribe = (cb) => {
|
|
103830
|
-
result.value.subscribe((res) => {
|
|
103831
|
-
const consumerEmittedData2 = {
|
|
103832
|
-
data: void 0,
|
|
103833
|
-
errors: void 0
|
|
103834
|
-
};
|
|
103835
|
-
if (res.isOk()) {
|
|
103836
|
-
consumerEmittedData2.data = res.value.data;
|
|
103837
|
-
} else {
|
|
103838
|
-
if (isUserVisibleError$1(res.error)) {
|
|
103839
|
-
consumerEmittedData2.data = res.error.data.data;
|
|
103840
|
-
consumerEmittedData2.errors = res.error.data.errors;
|
|
103841
|
-
} else {
|
|
103842
|
-
logError$1(res.error);
|
|
103843
|
-
consumerEmittedData2.errors = [
|
|
103844
|
-
{
|
|
103845
|
-
message: "Internal error in GraphQL adapter occurred",
|
|
103846
|
-
locations: []
|
|
103847
|
-
}
|
|
103848
|
-
];
|
|
103849
|
-
}
|
|
103850
|
-
}
|
|
103851
|
-
cb(consumerEmittedData2);
|
|
103852
|
-
});
|
|
103853
|
-
};
|
|
103854
|
-
if (exposeRefresh) {
|
|
103855
|
-
consumerEmittedData.refresh = () => {
|
|
103856
|
-
return new Promise((resolve, reject) => {
|
|
103857
|
-
try {
|
|
103858
|
-
result.value.refresh().then((res) => {
|
|
103859
|
-
if (res.isOk()) {
|
|
103860
|
-
resolve();
|
|
103861
|
-
} else {
|
|
103862
|
-
reject(
|
|
103863
|
-
new Error(
|
|
103864
|
-
"Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
|
|
103865
|
-
)
|
|
103866
|
-
);
|
|
103867
|
-
}
|
|
103868
|
-
});
|
|
103869
|
-
} catch (error) {
|
|
103870
|
-
logError$1(error);
|
|
103871
|
-
reject(
|
|
103872
|
-
new Error(
|
|
103873
|
-
"Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
|
|
103874
|
-
)
|
|
103875
|
-
);
|
|
103876
|
-
}
|
|
103877
|
-
});
|
|
103878
|
-
};
|
|
103488
|
+
return {
|
|
103489
|
+
then: (_onFulfilled, onRejected) => {
|
|
103490
|
+
if (typeof onRejected === "function") {
|
|
103491
|
+
try {
|
|
103492
|
+
return resolvedPromiseLike(onRejected(reason));
|
|
103493
|
+
} catch (e) {
|
|
103494
|
+
return rejectedPromiseLike(e);
|
|
103879
103495
|
}
|
|
103880
|
-
} else {
|
|
103881
|
-
const resp = toGraphQLResponseFromFailure$1(result.error.failure);
|
|
103882
|
-
consumerEmittedData.data = resp.data;
|
|
103883
|
-
consumerEmittedData.errors = resp.errors;
|
|
103884
103496
|
}
|
|
103885
|
-
return
|
|
103886
|
-
} catch (error) {
|
|
103887
|
-
logError$1(error);
|
|
103888
|
-
return {
|
|
103889
|
-
data: void 0,
|
|
103890
|
-
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
103891
|
-
};
|
|
103497
|
+
return rejectedPromiseLike(reason);
|
|
103892
103498
|
}
|
|
103893
103499
|
};
|
|
103894
103500
|
}
|
|
103895
|
-
function
|
|
103896
|
-
|
|
103897
|
-
config = wrapConfigAndVerify(config);
|
|
103898
|
-
const command = getCommand({ config, assertIsValid });
|
|
103899
|
-
try {
|
|
103900
|
-
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
103901
|
-
const result = await command.execute(overrides);
|
|
103902
|
-
const consumerEmittedData = {
|
|
103903
|
-
data: void 0,
|
|
103904
|
-
errors: void 0
|
|
103905
|
-
};
|
|
103906
|
-
if (result.isOk()) {
|
|
103907
|
-
deepFreeze(result.value);
|
|
103908
|
-
consumerEmittedData.data = result.value.data.data;
|
|
103909
|
-
} else {
|
|
103910
|
-
const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
|
|
103911
|
-
consumerEmittedData.data = data;
|
|
103912
|
-
consumerEmittedData.errors = errors;
|
|
103913
|
-
}
|
|
103914
|
-
callback(consumerEmittedData);
|
|
103915
|
-
} catch (error) {
|
|
103916
|
-
logError$1(error);
|
|
103917
|
-
callback({
|
|
103918
|
-
data: void 0,
|
|
103919
|
-
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
103920
|
-
});
|
|
103921
|
-
}
|
|
103922
|
-
};
|
|
103923
|
-
const subscribe = (config, requestContext, callback) => {
|
|
103924
|
-
config = wrapConfigAndVerify(config);
|
|
103925
|
-
const command = getCommand({ config, assertIsValid });
|
|
103926
|
-
let unsubscribe = () => {
|
|
103927
|
-
};
|
|
103928
|
-
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
103929
|
-
command.execute(overrides).then((result) => {
|
|
103930
|
-
const consumerEmittedData = {
|
|
103931
|
-
data: void 0,
|
|
103932
|
-
errors: void 0
|
|
103933
|
-
};
|
|
103934
|
-
if (result.isOk()) {
|
|
103935
|
-
deepFreeze(result.value);
|
|
103936
|
-
consumerEmittedData.data = result.value.data.data;
|
|
103937
|
-
unsubscribe = result.value.subscribe(
|
|
103938
|
-
(res) => {
|
|
103939
|
-
handleEmit(res, callback);
|
|
103940
|
-
}
|
|
103941
|
-
);
|
|
103942
|
-
} else {
|
|
103943
|
-
const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
|
|
103944
|
-
consumerEmittedData.data = data;
|
|
103945
|
-
consumerEmittedData.errors = errors;
|
|
103946
|
-
unsubscribe = result.error.subscribe(
|
|
103947
|
-
(res) => {
|
|
103948
|
-
handleEmit(res, callback);
|
|
103949
|
-
}
|
|
103950
|
-
);
|
|
103951
|
-
}
|
|
103952
|
-
callback(consumerEmittedData);
|
|
103953
|
-
});
|
|
103954
|
-
return () => {
|
|
103955
|
-
unsubscribe();
|
|
103956
|
-
};
|
|
103957
|
-
};
|
|
103958
|
-
return { invoke, subscribe };
|
|
103501
|
+
function isPromiseLike(x) {
|
|
103502
|
+
return typeof (x == null ? void 0 : x.then) === "function";
|
|
103959
103503
|
}
|
|
103960
|
-
|
|
103961
|
-
|
|
103962
|
-
|
|
103963
|
-
|
|
103964
|
-
|
|
103965
|
-
if (res.isOk()) {
|
|
103966
|
-
consumerEmittedData.data = res.value.data;
|
|
103967
|
-
} else {
|
|
103968
|
-
const { data, errors } = toGraphQLResponseFromFailure$1(res.error);
|
|
103969
|
-
consumerEmittedData.data = data;
|
|
103970
|
-
consumerEmittedData.errors = errors;
|
|
103504
|
+
class InternalError extends Error {
|
|
103505
|
+
constructor(data) {
|
|
103506
|
+
super();
|
|
103507
|
+
this.data = data;
|
|
103508
|
+
this.type = "internal";
|
|
103971
103509
|
}
|
|
103972
|
-
callback(consumerEmittedData);
|
|
103973
103510
|
}
|
|
103974
|
-
|
|
103511
|
+
function applyDecorators(baseCommand, decorators, options) {
|
|
103512
|
+
if (!decorators || decorators.length === 0) {
|
|
103513
|
+
return baseCommand;
|
|
103514
|
+
}
|
|
103515
|
+
return decorators.reduce((command, decorator) => decorator(command, options), baseCommand);
|
|
103516
|
+
}
|
|
103975
103517
|
|
|
103976
103518
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
103977
103519
|
constructor(services, typeRegistry) {
|
|
@@ -107327,81 +106869,6 @@
|
|
|
107327
106869
|
}
|
|
107328
106870
|
}
|
|
107329
106871
|
|
|
107330
|
-
/*!
|
|
107331
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
107332
|
-
* All rights reserved.
|
|
107333
|
-
* For full license text, see the LICENSE.txt file
|
|
107334
|
-
*/
|
|
107335
|
-
const { hasOwnProperty: hasOwnProperty$2 } = Object.prototype;
|
|
107336
|
-
class Ok {
|
|
107337
|
-
constructor(value) {
|
|
107338
|
-
this.value = value;
|
|
107339
|
-
}
|
|
107340
|
-
isOk() {
|
|
107341
|
-
return true;
|
|
107342
|
-
}
|
|
107343
|
-
isErr() {
|
|
107344
|
-
return !this.isOk();
|
|
107345
|
-
}
|
|
107346
|
-
}
|
|
107347
|
-
class Err {
|
|
107348
|
-
constructor(error) {
|
|
107349
|
-
this.error = error;
|
|
107350
|
-
}
|
|
107351
|
-
isOk() {
|
|
107352
|
-
return false;
|
|
107353
|
-
}
|
|
107354
|
-
isErr() {
|
|
107355
|
-
return !this.isOk();
|
|
107356
|
-
}
|
|
107357
|
-
}
|
|
107358
|
-
const ok = (value) => new Ok(value);
|
|
107359
|
-
const err = (err2) => new Err(err2);
|
|
107360
|
-
function resolvedPromiseLike(result) {
|
|
107361
|
-
if (isPromiseLike(result)) {
|
|
107362
|
-
return result.then((nextResult) => nextResult);
|
|
107363
|
-
}
|
|
107364
|
-
return {
|
|
107365
|
-
then: (onFulfilled, _onRejected) => {
|
|
107366
|
-
try {
|
|
107367
|
-
return resolvedPromiseLike(onFulfilled(result));
|
|
107368
|
-
} catch (e) {
|
|
107369
|
-
if (onFulfilled === void 0) {
|
|
107370
|
-
return resolvedPromiseLike(result);
|
|
107371
|
-
}
|
|
107372
|
-
return rejectedPromiseLike(e);
|
|
107373
|
-
}
|
|
107374
|
-
}
|
|
107375
|
-
};
|
|
107376
|
-
}
|
|
107377
|
-
function rejectedPromiseLike(reason) {
|
|
107378
|
-
if (isPromiseLike(reason)) {
|
|
107379
|
-
return reason.then((nextResult) => nextResult);
|
|
107380
|
-
}
|
|
107381
|
-
return {
|
|
107382
|
-
then: (_onFulfilled, onRejected) => {
|
|
107383
|
-
if (typeof onRejected === "function") {
|
|
107384
|
-
try {
|
|
107385
|
-
return resolvedPromiseLike(onRejected(reason));
|
|
107386
|
-
} catch (e) {
|
|
107387
|
-
return rejectedPromiseLike(e);
|
|
107388
|
-
}
|
|
107389
|
-
}
|
|
107390
|
-
return rejectedPromiseLike(reason);
|
|
107391
|
-
}
|
|
107392
|
-
};
|
|
107393
|
-
}
|
|
107394
|
-
function isPromiseLike(x) {
|
|
107395
|
-
return typeof (x == null ? void 0 : x.then) === "function";
|
|
107396
|
-
}
|
|
107397
|
-
class InternalError extends Error {
|
|
107398
|
-
constructor(data) {
|
|
107399
|
-
super();
|
|
107400
|
-
this.data = data;
|
|
107401
|
-
this.type = "internal";
|
|
107402
|
-
}
|
|
107403
|
-
}
|
|
107404
|
-
|
|
107405
106872
|
function buildGenericTypeFieldDef(selection, fields, staticFieldNames, typename) {
|
|
107406
106873
|
// If the field is not a category field, return the base field def for the field
|
|
107407
106874
|
if (staticFieldNames.includes(selection.name.value)) {
|
|
@@ -115471,36 +114938,6 @@ keys: keys$2,
|
|
|
115471
114938
|
return cloned;
|
|
115472
114939
|
}
|
|
115473
114940
|
|
|
115474
|
-
class GraphQLCommandWireAdapterConstructorV1Import extends GraphQLCommandWireAdapterConstructor {
|
|
115475
|
-
update(config, _context) {
|
|
115476
|
-
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
115477
|
-
if (validatedConfig.isErr()) {
|
|
115478
|
-
// config is incomplete, delay execution
|
|
115479
|
-
return;
|
|
115480
|
-
}
|
|
115481
|
-
super.update(validatedConfig.value, _context);
|
|
115482
|
-
}
|
|
115483
|
-
}
|
|
115484
|
-
|
|
115485
|
-
function buildAsyncGraphQLImperativeLegacyInvokerV1Import(getCommand) {
|
|
115486
|
-
const { invoke: invokeOriginal, subscribe: subscribeOriginal } = buildAsyncGraphQLImperativeLegacyInvoker(getCommand);
|
|
115487
|
-
const invoke = async (config, requestContext, callback) => {
|
|
115488
|
-
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
115489
|
-
if (validatedConfig.isErr()) {
|
|
115490
|
-
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
115491
|
-
}
|
|
115492
|
-
return invokeOriginal(validatedConfig.value, requestContext, callback);
|
|
115493
|
-
};
|
|
115494
|
-
const subscribe = (config, requestContext, callback) => {
|
|
115495
|
-
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
115496
|
-
if (validatedConfig.isErr()) {
|
|
115497
|
-
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
115498
|
-
}
|
|
115499
|
-
return subscribeOriginal(validatedConfig.value, requestContext, callback);
|
|
115500
|
-
};
|
|
115501
|
-
return { invoke, subscribe };
|
|
115502
|
-
}
|
|
115503
|
-
|
|
115504
114941
|
let graphql$1;
|
|
115505
114942
|
let graphql_v1_import;
|
|
115506
114943
|
let graphql_imperative$1;
|
|
@@ -115521,6 +114958,34 @@ keys: keys$2,
|
|
|
115521
114958
|
type: 'pubSub',
|
|
115522
114959
|
version: '1.0',
|
|
115523
114960
|
},
|
|
114961
|
+
fetchNetworkCommandBaseClass: {
|
|
114962
|
+
type: 'fetchNetworkCommandBaseClass',
|
|
114963
|
+
version: '1.0',
|
|
114964
|
+
},
|
|
114965
|
+
legacyImperativeBindings: {
|
|
114966
|
+
type: 'legacyImperativeBindings',
|
|
114967
|
+
version: '1.0',
|
|
114968
|
+
},
|
|
114969
|
+
graphQLLegacyImperativeBindings: {
|
|
114970
|
+
type: 'graphQLLegacyImperativeBindings',
|
|
114971
|
+
version: '1.0',
|
|
114972
|
+
},
|
|
114973
|
+
graphQLImperativeBindings: {
|
|
114974
|
+
type: 'graphQLImperativeBindings',
|
|
114975
|
+
version: '1.0',
|
|
114976
|
+
},
|
|
114977
|
+
graphQLMutationBindings: {
|
|
114978
|
+
type: 'graphQLMutationBindings',
|
|
114979
|
+
version: '1.0',
|
|
114980
|
+
},
|
|
114981
|
+
lwcWireBindings: {
|
|
114982
|
+
type: 'lwcWireBindings',
|
|
114983
|
+
version: '1.0',
|
|
114984
|
+
},
|
|
114985
|
+
lwcGraphQLWireBindings: {
|
|
114986
|
+
type: 'lwcGraphQLWireBindings',
|
|
114987
|
+
version: '1.0',
|
|
114988
|
+
},
|
|
115524
114989
|
auraGraphQLNormalizedCacheControlCommand: {
|
|
115525
114990
|
type: 'auraGraphQLNormalizedCacheControlCommand',
|
|
115526
114991
|
version: '1.0',
|
|
@@ -115558,46 +115023,44 @@ keys: keys$2,
|
|
|
115558
115023
|
getServices(serviceRequirements).then((services) => {
|
|
115559
115024
|
const graphqlTypeRegistry = new CustomGraphQLTypeRegistry(services);
|
|
115560
115025
|
const documentRootType = graphqlTypeRegistry.Query;
|
|
115561
|
-
graphqlTypeRegistry.Mutation;
|
|
115562
|
-
const graphql_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), '
|
|
115563
|
-
graphql$1 =
|
|
115564
|
-
|
|
115565
|
-
|
|
115566
|
-
|
|
115567
|
-
|
|
115568
|
-
|
|
115569
|
-
|
|
115570
|
-
|
|
115571
|
-
|
|
115572
|
-
|
|
115573
|
-
graphql_v1_import = class extends GraphQLCommandWireAdapterConstructorV1Import {
|
|
115574
|
-
constructor() {
|
|
115575
|
-
super(...arguments);
|
|
115576
|
-
this.configSchema = CONFIG_SCHEMA;
|
|
115577
|
-
this.exposeRefresh = true;
|
|
115578
|
-
}
|
|
115579
|
-
getCommand() {
|
|
115580
|
-
return new graphql_ctor(this.config, documentRootType, services);
|
|
115026
|
+
const mutationType = graphqlTypeRegistry.Mutation;
|
|
115027
|
+
const graphql_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
|
|
115028
|
+
graphql$1 = services.lwcGraphQLWireBindings.bind((config) => new graphql_ctor(config, documentRootType, services), CONFIG_SCHEMA, true);
|
|
115029
|
+
class GraphqlV1ImportAdapter extends graphql$1 {
|
|
115030
|
+
update(config, _context) {
|
|
115031
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
115032
|
+
if (validatedConfig.isErr()) {
|
|
115033
|
+
// config is incomplete, delay execution
|
|
115034
|
+
return;
|
|
115035
|
+
}
|
|
115036
|
+
// @ts-expect-error super type at runtime
|
|
115037
|
+
super.update(validatedConfig.value, _context);
|
|
115581
115038
|
}
|
|
115582
|
-
}
|
|
115583
|
-
|
|
115584
|
-
|
|
115039
|
+
}
|
|
115040
|
+
graphql_v1_import = GraphqlV1ImportAdapter;
|
|
115041
|
+
const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
|
|
115042
|
+
graphql_imperative$1 = services.graphQLImperativeBindings.bind(({ params, assertIsValid }) => {
|
|
115585
115043
|
const config = params[0];
|
|
115044
|
+
const options = params[1];
|
|
115586
115045
|
const _ = assertIsValid;
|
|
115587
115046
|
_(config, CONFIG_SCHEMA);
|
|
115588
|
-
|
|
115589
|
-
|
|
115590
|
-
|
|
115047
|
+
const baseCommand = new graphql_imperative_ctor(config, documentRootType, services);
|
|
115048
|
+
return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
|
|
115049
|
+
}, false);
|
|
115050
|
+
graphql_imperative_legacy = services.graphQLLegacyImperativeBindings.bind(({ config, assertIsValid }) => {
|
|
115591
115051
|
const _ = assertIsValid;
|
|
115592
115052
|
_(config, CONFIG_SCHEMA);
|
|
115593
115053
|
return new graphql_imperative_ctor(config, documentRootType, services);
|
|
115594
115054
|
});
|
|
115595
|
-
graphql_imperative_legacy_v1_import =
|
|
115596
|
-
|
|
115597
|
-
|
|
115598
|
-
|
|
115599
|
-
|
|
115600
|
-
|
|
115055
|
+
graphql_imperative_legacy_v1_import = services.graphQLLegacyImperativeBindings.bind(({ config, assertIsValid }) => {
|
|
115056
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
115057
|
+
if (validatedConfig.isErr()) {
|
|
115058
|
+
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
115059
|
+
}
|
|
115060
|
+
const _ = assertIsValid;
|
|
115061
|
+
_(validatedConfig.value, CONFIG_SCHEMA);
|
|
115062
|
+
return new graphql_imperative_ctor(validatedConfig.value, documentRootType, services);
|
|
115063
|
+
});
|
|
115601
115064
|
/*
|
|
115602
115065
|
* State Manager
|
|
115603
115066
|
*/
|
|
@@ -115615,10 +115078,18 @@ keys: keys$2,
|
|
|
115615
115078
|
return new graphql_state_manager_ctor(config, documentRootType, services);
|
|
115616
115079
|
};
|
|
115617
115080
|
graphql_state_manager = createStateManager(factory, ['query'], ['variables', 'operationName']);
|
|
115618
|
-
services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), '
|
|
115081
|
+
const executeMutation_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
|
|
115082
|
+
services.graphQLMutationBindings.bind(({ params, assertIsValid }) => {
|
|
115083
|
+
const config = params[0];
|
|
115084
|
+
const options = params[1];
|
|
115085
|
+
const _ = assertIsValid;
|
|
115086
|
+
_(config, CONFIG_SCHEMA);
|
|
115087
|
+
const baseCommand = new executeMutation_ctor(config, mutationType, services);
|
|
115088
|
+
return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
|
|
115089
|
+
});
|
|
115619
115090
|
useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
|
|
115620
115091
|
if (provisionedCallback) {
|
|
115621
|
-
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, useOneStoreGraphQL);
|
|
115092
|
+
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, graphql_state_manager, useOneStoreGraphQL);
|
|
115622
115093
|
}
|
|
115623
115094
|
}, (_err) => { });
|
|
115624
115095
|
function registerCallback(cb) {
|
|
@@ -115629,7 +115100,7 @@ keys: keys$2,
|
|
|
115629
115100
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
115630
115101
|
}
|
|
115631
115102
|
}
|
|
115632
|
-
// version: 1.
|
|
115103
|
+
// version: 1.404.0-dev1-9582436c8f
|
|
115633
115104
|
|
|
115634
115105
|
function createFragmentMap(documentNode) {
|
|
115635
115106
|
const fragments = {};
|
|
@@ -142226,7 +141697,7 @@ keys: keys$2,
|
|
|
142226
141697
|
const fieldKey = getSerializedKeyForField(requestedField, variables, fieldType);
|
|
142227
141698
|
if (fieldType === undefined) {
|
|
142228
141699
|
console.warn(`Unknown Field: ${requestedField}. This field or nested fields cannot participate in normalization`);
|
|
142229
|
-
deepFreeze$
|
|
141700
|
+
deepFreeze$1(fieldData);
|
|
142230
141701
|
sink[fieldKey] = fieldData;
|
|
142231
141702
|
continue;
|
|
142232
141703
|
}
|
|
@@ -143255,7 +142726,7 @@ keys: keys$2,
|
|
|
143255
142726
|
}
|
|
143256
142727
|
}
|
|
143257
142728
|
}
|
|
143258
|
-
deepFreeze$
|
|
142729
|
+
deepFreeze$1(trimmedEdges);
|
|
143259
142730
|
const paginatedData = {
|
|
143260
142731
|
data: {
|
|
143261
142732
|
...source,
|
|
@@ -144024,7 +143495,7 @@ keys: keys$2,
|
|
|
144024
143495
|
reader.exitPath();
|
|
144025
143496
|
}
|
|
144026
143497
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
144027
|
-
deepFreeze$
|
|
143498
|
+
deepFreeze$1(sink);
|
|
144028
143499
|
reader.exitPath();
|
|
144029
143500
|
return sink;
|
|
144030
143501
|
},
|
|
@@ -144126,7 +143597,7 @@ keys: keys$2,
|
|
|
144126
143597
|
const childSnapshotData = {
|
|
144127
143598
|
results: childSnapshotDataResponses,
|
|
144128
143599
|
};
|
|
144129
|
-
deepFreeze$
|
|
143600
|
+
deepFreeze$1(childSnapshotData);
|
|
144130
143601
|
return {
|
|
144131
143602
|
childSnapshotData: childSnapshotData,
|
|
144132
143603
|
seenRecords,
|
|
@@ -144854,7 +144325,7 @@ keys: keys$2,
|
|
|
144854
144325
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
144855
144326
|
instrument: instrument$1,
|
|
144856
144327
|
});
|
|
144857
|
-
// version: 1.
|
|
144328
|
+
// version: 1.404.0-dev1-9582436c8f
|
|
144858
144329
|
|
|
144859
144330
|
// On core the unstable adapters are re-exported with different names,
|
|
144860
144331
|
// we want to match them here.
|
|
@@ -145006,7 +144477,7 @@ keys: keys$2,
|
|
|
145006
144477
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
145007
144478
|
graphQLImperative = ldsAdapter;
|
|
145008
144479
|
});
|
|
145009
|
-
// version: 1.
|
|
144480
|
+
// version: 1.404.0-dev1-9582436c8f
|
|
145010
144481
|
|
|
145011
144482
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
145012
144483
|
__proto__: null,
|
|
@@ -145805,7 +145276,7 @@ keys: keys$2,
|
|
|
145805
145276
|
function register(r) {
|
|
145806
145277
|
callbacks$1.forEach((callback) => callback(r));
|
|
145807
145278
|
}
|
|
145808
|
-
// version: 1.
|
|
145279
|
+
// version: 1.404.0-dev1-48073cfce6
|
|
145809
145280
|
|
|
145810
145281
|
/**
|
|
145811
145282
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -147142,4 +146613,4 @@ keys: keys$2,
|
|
|
147142
146613
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
147143
146614
|
|
|
147144
146615
|
}));
|
|
147145
|
-
// version: 1.
|
|
146616
|
+
// version: 1.404.0-dev1-48073cfce6
|