@salesforce/lds-adapters-industries-scheduler 1.302.0 → 1.304.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-scheduler.js +1321 -809
- package/dist/es/es2018/types/src/generated/adapters/getServiceResourceCapacity.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/adapters/getServiceTerritoryCapacity.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/adapters/updateWaitlistParticipant.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSchedulingServiceResourceCapacity.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSchedulingServiceTerritoryCapacity.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectSchedulingWaitlistParticipants.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/types/DayCapacity.d.ts +6 -6
- package/dist/es/es2018/types/src/generated/types/GetServiceResourceCapacityOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/GetServiceTerritoryCapacityOutputRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/ServiceResourceCapacity.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ServiceResourceCapacityInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/ServiceResourceCapacityListResult.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/{ServiceTerritoryWorkTypeCapacity.d.ts → ServiceTerritoryCapacity.d.ts} +17 -8
- package/dist/es/es2018/types/src/generated/types/ServiceTerritoryCapacityInputRepresentation.d.ts +16 -7
- package/dist/es/es2018/types/src/generated/types/ServiceTerritoryCapacityListResult.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/UpdateWaitlistParticipantInputRepresentation.d.ts +6 -3
- package/package.json +4 -4
- package/sfdc/index.js +1406 -883
- package/src/raml/api.raml +153 -13
- package/src/raml/luvio.raml +4 -0
- package/dist/es/es2018/types/src/generated/types/ServiceTerritoryCapacityWorkTypeListResult.d.ts +0 -29
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$c, typeCheckConfig as typeCheckConfig$j, StoreKeyMap, createResourceParams as createResourceParams$j } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -91,8 +91,8 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
94
|
+
const VERSION$S = "ccbd37c17b881b95fe03fe4851c55909";
|
|
95
|
+
function validate$W(obj, path = 'SchedulerExtendedFieldsOutputRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -110,10 +110,10 @@ function validate$T(obj, path = 'SchedulerExtendedFieldsOutputRepresentation') {
|
|
|
110
110
|
})();
|
|
111
111
|
return v_error === undefined ? null : v_error;
|
|
112
112
|
}
|
|
113
|
-
const select$
|
|
113
|
+
const select$19 = function SchedulerExtendedFieldsOutputRepresentationSelect() {
|
|
114
114
|
return {
|
|
115
115
|
kind: 'Fragment',
|
|
116
|
-
version: VERSION$
|
|
116
|
+
version: VERSION$S,
|
|
117
117
|
private: [],
|
|
118
118
|
selections: [
|
|
119
119
|
{
|
|
@@ -127,7 +127,7 @@ const select$15 = function SchedulerExtendedFieldsOutputRepresentationSelect() {
|
|
|
127
127
|
]
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
-
function equals$
|
|
130
|
+
function equals$S(existing, incoming) {
|
|
131
131
|
const existing_name = existing.name;
|
|
132
132
|
const incoming_name = incoming.name;
|
|
133
133
|
if (!(existing_name === incoming_name)) {
|
|
@@ -141,8 +141,8 @@ function equals$P(existing, incoming) {
|
|
|
141
141
|
return true;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
const VERSION$
|
|
145
|
-
function validate$
|
|
144
|
+
const VERSION$R = "e1942247bd0b4b845f6e33cb6ef21a75";
|
|
145
|
+
function validate$V(obj, path = 'GetServiceTerritoriesResult') {
|
|
146
146
|
const v_error = (() => {
|
|
147
147
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
148
148
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -206,10 +206,10 @@ function validate$S(obj, path = 'GetServiceTerritoriesResult') {
|
|
|
206
206
|
})();
|
|
207
207
|
return v_error === undefined ? null : v_error;
|
|
208
208
|
}
|
|
209
|
-
const select$
|
|
209
|
+
const select$18 = function GetServiceTerritoriesResultSelect() {
|
|
210
210
|
return {
|
|
211
211
|
kind: 'Fragment',
|
|
212
|
-
version: VERSION$
|
|
212
|
+
version: VERSION$R,
|
|
213
213
|
private: [],
|
|
214
214
|
selections: [
|
|
215
215
|
{
|
|
@@ -258,7 +258,7 @@ const select$14 = function GetServiceTerritoriesResultSelect() {
|
|
|
258
258
|
]
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
|
-
function equals$
|
|
261
|
+
function equals$R(existing, incoming) {
|
|
262
262
|
const existing_city = existing.city;
|
|
263
263
|
const incoming_city = incoming.city;
|
|
264
264
|
if (!(existing_city === incoming_city)) {
|
|
@@ -336,8 +336,8 @@ function equals$O(existing, incoming) {
|
|
|
336
336
|
return true;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
const VERSION$
|
|
340
|
-
function validate$
|
|
339
|
+
const VERSION$Q = "8b15cce0754cf4733a7724c1628bc305";
|
|
340
|
+
function validate$U(obj, path = 'ServiceAppointmentRepresentation') {
|
|
341
341
|
const v_error = (() => {
|
|
342
342
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
343
343
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -390,7 +390,7 @@ function validate$R(obj, path = 'ServiceAppointmentRepresentation') {
|
|
|
390
390
|
for (let i = 0; i < obj_relatedRecordFields.length; i++) {
|
|
391
391
|
const obj_relatedRecordFields_item = obj_relatedRecordFields[i];
|
|
392
392
|
const path_relatedRecordFields_item = path_relatedRecordFields + '[' + i + ']';
|
|
393
|
-
const referencepath_relatedRecordFields_itemValidationError = validate$
|
|
393
|
+
const referencepath_relatedRecordFields_itemValidationError = validate$W(obj_relatedRecordFields_item, path_relatedRecordFields_item);
|
|
394
394
|
if (referencepath_relatedRecordFields_itemValidationError !== null) {
|
|
395
395
|
let message = 'Object doesn\'t match SchedulerExtendedFieldsOutputRepresentation (at "' + path_relatedRecordFields_item + '")\n';
|
|
396
396
|
message += referencepath_relatedRecordFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -409,7 +409,7 @@ function validate$R(obj, path = 'ServiceAppointmentRepresentation') {
|
|
|
409
409
|
}
|
|
410
410
|
const obj_serviceTerritory = obj.serviceTerritory;
|
|
411
411
|
const path_serviceTerritory = path + '.serviceTerritory';
|
|
412
|
-
const referencepath_serviceTerritoryValidationError = validate$
|
|
412
|
+
const referencepath_serviceTerritoryValidationError = validate$V(obj_serviceTerritory, path_serviceTerritory);
|
|
413
413
|
if (referencepath_serviceTerritoryValidationError !== null) {
|
|
414
414
|
let message = 'Object doesn\'t match GetServiceTerritoriesResult (at "' + path_serviceTerritory + '")\n';
|
|
415
415
|
message += referencepath_serviceTerritoryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -443,12 +443,12 @@ function validate$R(obj, path = 'ServiceAppointmentRepresentation') {
|
|
|
443
443
|
})();
|
|
444
444
|
return v_error === undefined ? null : v_error;
|
|
445
445
|
}
|
|
446
|
-
const select$
|
|
447
|
-
const { selections: SchedulerExtendedFieldsOutputRepresentation__selections, opaque: SchedulerExtendedFieldsOutputRepresentation__opaque, } = select$
|
|
448
|
-
const { selections: GetServiceTerritoriesResult__selections, opaque: GetServiceTerritoriesResult__opaque, } = select$
|
|
446
|
+
const select$17 = function ServiceAppointmentRepresentationSelect() {
|
|
447
|
+
const { selections: SchedulerExtendedFieldsOutputRepresentation__selections, opaque: SchedulerExtendedFieldsOutputRepresentation__opaque, } = select$19();
|
|
448
|
+
const { selections: GetServiceTerritoriesResult__selections, opaque: GetServiceTerritoriesResult__opaque, } = select$18();
|
|
449
449
|
return {
|
|
450
450
|
kind: 'Fragment',
|
|
451
|
-
version: VERSION$
|
|
451
|
+
version: VERSION$Q,
|
|
452
452
|
private: [],
|
|
453
453
|
selections: [
|
|
454
454
|
{
|
|
@@ -525,7 +525,7 @@ const select$13 = function ServiceAppointmentRepresentationSelect() {
|
|
|
525
525
|
]
|
|
526
526
|
};
|
|
527
527
|
};
|
|
528
|
-
function equals$
|
|
528
|
+
function equals$Q(existing, incoming) {
|
|
529
529
|
const existing_isAnonymousBooking = existing.isAnonymousBooking;
|
|
530
530
|
const incoming_isAnonymousBooking = incoming.isAnonymousBooking;
|
|
531
531
|
if (!(existing_isAnonymousBooking === incoming_isAnonymousBooking)) {
|
|
@@ -604,7 +604,7 @@ function equals$N(existing, incoming) {
|
|
|
604
604
|
const existing_relatedRecordFields = existing.relatedRecordFields;
|
|
605
605
|
const incoming_relatedRecordFields = incoming.relatedRecordFields;
|
|
606
606
|
const equals_relatedRecordFields_items = equalsArray(existing_relatedRecordFields, incoming_relatedRecordFields, (existing_relatedRecordFields_item, incoming_relatedRecordFields_item) => {
|
|
607
|
-
if (!(equals$
|
|
607
|
+
if (!(equals$S(existing_relatedRecordFields_item, incoming_relatedRecordFields_item))) {
|
|
608
608
|
return false;
|
|
609
609
|
}
|
|
610
610
|
});
|
|
@@ -613,14 +613,14 @@ function equals$N(existing, incoming) {
|
|
|
613
613
|
}
|
|
614
614
|
const existing_serviceTerritory = existing.serviceTerritory;
|
|
615
615
|
const incoming_serviceTerritory = incoming.serviceTerritory;
|
|
616
|
-
if (!(equals$
|
|
616
|
+
if (!(equals$R(existing_serviceTerritory, incoming_serviceTerritory))) {
|
|
617
617
|
return false;
|
|
618
618
|
}
|
|
619
619
|
return true;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
const VERSION$
|
|
623
|
-
function validate$
|
|
622
|
+
const VERSION$P = "0ebc6f397590a38f7d774c4af6fe342f";
|
|
623
|
+
function validate$T(obj, path = 'WorkTypeGroupRepresentation') {
|
|
624
624
|
const v_error = (() => {
|
|
625
625
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
626
626
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -638,10 +638,10 @@ function validate$Q(obj, path = 'WorkTypeGroupRepresentation') {
|
|
|
638
638
|
})();
|
|
639
639
|
return v_error === undefined ? null : v_error;
|
|
640
640
|
}
|
|
641
|
-
const select$
|
|
641
|
+
const select$16 = function WorkTypeGroupRepresentationSelect() {
|
|
642
642
|
return {
|
|
643
643
|
kind: 'Fragment',
|
|
644
|
-
version: VERSION$
|
|
644
|
+
version: VERSION$P,
|
|
645
645
|
private: [],
|
|
646
646
|
selections: [
|
|
647
647
|
{
|
|
@@ -655,7 +655,7 @@ const select$12 = function WorkTypeGroupRepresentationSelect() {
|
|
|
655
655
|
]
|
|
656
656
|
};
|
|
657
657
|
};
|
|
658
|
-
function equals$
|
|
658
|
+
function equals$P(existing, incoming) {
|
|
659
659
|
const existing_id = existing.id;
|
|
660
660
|
const incoming_id = incoming.id;
|
|
661
661
|
if (!(existing_id === incoming_id)) {
|
|
@@ -669,15 +669,15 @@ function equals$M(existing, incoming) {
|
|
|
669
669
|
return true;
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
const VERSION$
|
|
673
|
-
function validate$
|
|
672
|
+
const VERSION$O = "26d9d68e403f1fc11715c68781ebef23";
|
|
673
|
+
function validate$S(obj, path = 'GetAppointmentFromTokenResult') {
|
|
674
674
|
const v_error = (() => {
|
|
675
675
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
676
676
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
677
677
|
}
|
|
678
678
|
const obj_serviceAppointment = obj.serviceAppointment;
|
|
679
679
|
const path_serviceAppointment = path + '.serviceAppointment';
|
|
680
|
-
const referencepath_serviceAppointmentValidationError = validate$
|
|
680
|
+
const referencepath_serviceAppointmentValidationError = validate$U(obj_serviceAppointment, path_serviceAppointment);
|
|
681
681
|
if (referencepath_serviceAppointmentValidationError !== null) {
|
|
682
682
|
let message = 'Object doesn\'t match ServiceAppointmentRepresentation (at "' + path_serviceAppointment + '")\n';
|
|
683
683
|
message += referencepath_serviceAppointmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -690,7 +690,7 @@ function validate$P(obj, path = 'GetAppointmentFromTokenResult') {
|
|
|
690
690
|
}
|
|
691
691
|
const obj_workTypeGroup = obj.workTypeGroup;
|
|
692
692
|
const path_workTypeGroup = path + '.workTypeGroup';
|
|
693
|
-
const referencepath_workTypeGroupValidationError = validate$
|
|
693
|
+
const referencepath_workTypeGroupValidationError = validate$T(obj_workTypeGroup, path_workTypeGroup);
|
|
694
694
|
if (referencepath_workTypeGroupValidationError !== null) {
|
|
695
695
|
let message = 'Object doesn\'t match WorkTypeGroupRepresentation (at "' + path_workTypeGroup + '")\n';
|
|
696
696
|
message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -699,12 +699,12 @@ function validate$P(obj, path = 'GetAppointmentFromTokenResult') {
|
|
|
699
699
|
})();
|
|
700
700
|
return v_error === undefined ? null : v_error;
|
|
701
701
|
}
|
|
702
|
-
const select$
|
|
703
|
-
const { selections: ServiceAppointmentRepresentation__selections, opaque: ServiceAppointmentRepresentation__opaque, } = select$
|
|
704
|
-
const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$
|
|
702
|
+
const select$15 = function GetAppointmentFromTokenResultSelect() {
|
|
703
|
+
const { selections: ServiceAppointmentRepresentation__selections, opaque: ServiceAppointmentRepresentation__opaque, } = select$17();
|
|
704
|
+
const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$16();
|
|
705
705
|
return {
|
|
706
706
|
kind: 'Fragment',
|
|
707
|
-
version: VERSION$
|
|
707
|
+
version: VERSION$O,
|
|
708
708
|
private: [],
|
|
709
709
|
selections: [
|
|
710
710
|
{
|
|
@@ -724,7 +724,7 @@ const select$11 = function GetAppointmentFromTokenResultSelect() {
|
|
|
724
724
|
]
|
|
725
725
|
};
|
|
726
726
|
};
|
|
727
|
-
function equals$
|
|
727
|
+
function equals$O(existing, incoming) {
|
|
728
728
|
const existing_serviceResourceId = existing.serviceResourceId;
|
|
729
729
|
const incoming_serviceResourceId = incoming.serviceResourceId;
|
|
730
730
|
if (!(existing_serviceResourceId === incoming_serviceResourceId)) {
|
|
@@ -732,26 +732,26 @@ function equals$L(existing, incoming) {
|
|
|
732
732
|
}
|
|
733
733
|
const existing_serviceAppointment = existing.serviceAppointment;
|
|
734
734
|
const incoming_serviceAppointment = incoming.serviceAppointment;
|
|
735
|
-
if (!(equals$
|
|
735
|
+
if (!(equals$Q(existing_serviceAppointment, incoming_serviceAppointment))) {
|
|
736
736
|
return false;
|
|
737
737
|
}
|
|
738
738
|
const existing_workTypeGroup = existing.workTypeGroup;
|
|
739
739
|
const incoming_workTypeGroup = incoming.workTypeGroup;
|
|
740
|
-
if (!(equals$
|
|
740
|
+
if (!(equals$P(existing_workTypeGroup, incoming_workTypeGroup))) {
|
|
741
741
|
return false;
|
|
742
742
|
}
|
|
743
743
|
return true;
|
|
744
744
|
}
|
|
745
745
|
|
|
746
|
-
const VERSION$
|
|
747
|
-
function validate$
|
|
746
|
+
const VERSION$N = "083f2aef413359729868ac5e60c9cc70";
|
|
747
|
+
function validate$R(obj, path = 'GetAppointmentFromTokenOutputRepresentation') {
|
|
748
748
|
const v_error = (() => {
|
|
749
749
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
750
750
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
751
751
|
}
|
|
752
752
|
const obj_result = obj.result;
|
|
753
753
|
const path_result = path + '.result';
|
|
754
|
-
const referencepath_resultValidationError = validate$
|
|
754
|
+
const referencepath_resultValidationError = validate$S(obj_result, path_result);
|
|
755
755
|
if (referencepath_resultValidationError !== null) {
|
|
756
756
|
let message = 'Object doesn\'t match GetAppointmentFromTokenResult (at "' + path_result + '")\n';
|
|
757
757
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -760,15 +760,15 @@ function validate$O(obj, path = 'GetAppointmentFromTokenOutputRepresentation') {
|
|
|
760
760
|
})();
|
|
761
761
|
return v_error === undefined ? null : v_error;
|
|
762
762
|
}
|
|
763
|
-
const RepresentationType$
|
|
764
|
-
function normalize$
|
|
763
|
+
const RepresentationType$k = 'GetAppointmentFromTokenOutputRepresentation';
|
|
764
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
765
765
|
return input;
|
|
766
766
|
}
|
|
767
|
-
const select$
|
|
768
|
-
const { selections: GetAppointmentFromTokenResult__selections, opaque: GetAppointmentFromTokenResult__opaque, } = select$
|
|
767
|
+
const select$14 = function GetAppointmentFromTokenOutputRepresentationSelect() {
|
|
768
|
+
const { selections: GetAppointmentFromTokenResult__selections, opaque: GetAppointmentFromTokenResult__opaque, } = select$15();
|
|
769
769
|
return {
|
|
770
770
|
kind: 'Fragment',
|
|
771
|
-
version: VERSION$
|
|
771
|
+
version: VERSION$N,
|
|
772
772
|
private: [],
|
|
773
773
|
selections: [
|
|
774
774
|
{
|
|
@@ -779,52 +779,52 @@ const select$10 = function GetAppointmentFromTokenOutputRepresentationSelect() {
|
|
|
779
779
|
]
|
|
780
780
|
};
|
|
781
781
|
};
|
|
782
|
-
function equals$
|
|
782
|
+
function equals$N(existing, incoming) {
|
|
783
783
|
const existing_result = existing.result;
|
|
784
784
|
const incoming_result = incoming.result;
|
|
785
|
-
if (!(equals$
|
|
785
|
+
if (!(equals$O(existing_result, incoming_result))) {
|
|
786
786
|
return false;
|
|
787
787
|
}
|
|
788
788
|
return true;
|
|
789
789
|
}
|
|
790
|
-
const ingest$
|
|
790
|
+
const ingest$k = function GetAppointmentFromTokenOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
791
791
|
if (process.env.NODE_ENV !== 'production') {
|
|
792
|
-
const validateError = validate$
|
|
792
|
+
const validateError = validate$R(input);
|
|
793
793
|
if (validateError !== null) {
|
|
794
794
|
throw validateError;
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
const key = path.fullPath;
|
|
798
798
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
799
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
799
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "IndustriesScheduler", VERSION$N, RepresentationType$k, equals$N);
|
|
800
800
|
return createLink(key);
|
|
801
801
|
};
|
|
802
|
-
function getTypeCacheKeys$
|
|
802
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
803
803
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
804
804
|
const rootKey = fullPathFactory();
|
|
805
805
|
rootKeySet.set(rootKey, {
|
|
806
806
|
namespace: keyPrefix,
|
|
807
|
-
representationName: RepresentationType$
|
|
807
|
+
representationName: RepresentationType$k,
|
|
808
808
|
mergeable: false
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
function select
|
|
813
|
-
return select$
|
|
812
|
+
function select$13(luvio, params) {
|
|
813
|
+
return select$14();
|
|
814
814
|
}
|
|
815
|
-
function keyBuilder$
|
|
815
|
+
function keyBuilder$w(luvio, params) {
|
|
816
816
|
return keyPrefix + '::GetAppointmentFromTokenOutputRepresentation:(' + 'token:' + params.queryParams.token + ')';
|
|
817
817
|
}
|
|
818
|
-
function getResponseCacheKeys$
|
|
819
|
-
getTypeCacheKeys$
|
|
818
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
819
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$w(luvio, resourceParams));
|
|
820
820
|
}
|
|
821
|
-
function ingestSuccess$
|
|
821
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
822
822
|
const { body } = response;
|
|
823
|
-
const key = keyBuilder$
|
|
824
|
-
luvio.storeIngest(key, ingest$
|
|
823
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
824
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
825
825
|
const snapshot = luvio.storeLookup({
|
|
826
826
|
recordId: key,
|
|
827
|
-
node: select
|
|
827
|
+
node: select$13(),
|
|
828
828
|
variables: {},
|
|
829
829
|
}, snapshotRefresh);
|
|
830
830
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -835,13 +835,13 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
835
835
|
deepFreeze(snapshot.data);
|
|
836
836
|
return snapshot;
|
|
837
837
|
}
|
|
838
|
-
function ingestError$
|
|
839
|
-
const key = keyBuilder$
|
|
838
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
839
|
+
const key = keyBuilder$w(luvio, params);
|
|
840
840
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
841
841
|
luvio.storeIngestError(key, errorSnapshot);
|
|
842
842
|
return errorSnapshot;
|
|
843
843
|
}
|
|
844
|
-
function createResourceRequest$
|
|
844
|
+
function createResourceRequest$i(config) {
|
|
845
845
|
const headers = {};
|
|
846
846
|
return {
|
|
847
847
|
baseUri: '/services/data/v62.0',
|
|
@@ -855,94 +855,94 @@ function createResourceRequest$h(config) {
|
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
857
|
|
|
858
|
-
const adapterName$
|
|
858
|
+
const adapterName$i = 'getAppointmentFromToken';
|
|
859
859
|
const getAppointmentFromToken_ConfigPropertyMetadata = [
|
|
860
860
|
generateParamConfigMetadata('token', false, 1 /* QueryParameter */, 0 /* String */),
|
|
861
861
|
];
|
|
862
|
-
const getAppointmentFromToken_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
863
|
-
const createResourceParams$
|
|
864
|
-
function keyBuilder$
|
|
865
|
-
const resourceParams = createResourceParams$
|
|
866
|
-
return keyBuilder$
|
|
862
|
+
const getAppointmentFromToken_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getAppointmentFromToken_ConfigPropertyMetadata);
|
|
863
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(getAppointmentFromToken_ConfigPropertyMetadata);
|
|
864
|
+
function keyBuilder$v(luvio, config) {
|
|
865
|
+
const resourceParams = createResourceParams$i(config);
|
|
866
|
+
return keyBuilder$w(luvio, resourceParams);
|
|
867
867
|
}
|
|
868
|
-
function typeCheckConfig$
|
|
868
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
869
869
|
const config = {};
|
|
870
|
-
typeCheckConfig$
|
|
870
|
+
typeCheckConfig$j(untrustedConfig, config, getAppointmentFromToken_ConfigPropertyMetadata);
|
|
871
871
|
return config;
|
|
872
872
|
}
|
|
873
|
-
function validateAdapterConfig$
|
|
873
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
874
874
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
875
875
|
return null;
|
|
876
876
|
}
|
|
877
877
|
if (process.env.NODE_ENV !== 'production') {
|
|
878
878
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
879
879
|
}
|
|
880
|
-
const config = typeCheckConfig$
|
|
880
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
881
881
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
882
882
|
return null;
|
|
883
883
|
}
|
|
884
884
|
return config;
|
|
885
885
|
}
|
|
886
|
-
function adapterFragment$
|
|
887
|
-
createResourceParams$
|
|
888
|
-
return select
|
|
886
|
+
function adapterFragment$b(luvio, config) {
|
|
887
|
+
createResourceParams$i(config);
|
|
888
|
+
return select$13();
|
|
889
889
|
}
|
|
890
|
-
function onFetchResponseSuccess$
|
|
891
|
-
const snapshot = ingestSuccess$
|
|
890
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
891
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
892
892
|
config,
|
|
893
|
-
resolve: () => buildNetworkSnapshot$
|
|
893
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
894
894
|
});
|
|
895
895
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
896
896
|
}
|
|
897
|
-
function onFetchResponseError$
|
|
898
|
-
const snapshot = ingestError$
|
|
897
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
898
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
899
899
|
config,
|
|
900
|
-
resolve: () => buildNetworkSnapshot$
|
|
900
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
901
901
|
});
|
|
902
902
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
903
903
|
}
|
|
904
|
-
function buildNetworkSnapshot$
|
|
905
|
-
const resourceParams = createResourceParams$
|
|
906
|
-
const request = createResourceRequest$
|
|
904
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
905
|
+
const resourceParams = createResourceParams$i(config);
|
|
906
|
+
const request = createResourceRequest$i(resourceParams);
|
|
907
907
|
return luvio.dispatchResourceRequest(request, options)
|
|
908
908
|
.then((response) => {
|
|
909
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
909
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
910
910
|
const cache = new StoreKeyMap();
|
|
911
|
-
getResponseCacheKeys$
|
|
911
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
912
912
|
return cache;
|
|
913
913
|
});
|
|
914
914
|
}, (response) => {
|
|
915
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
915
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
|
-
function buildNetworkSnapshotCachePolicy$
|
|
919
|
-
return buildNetworkSnapshotCachePolicy$
|
|
918
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
919
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
920
920
|
}
|
|
921
|
-
function buildCachedSnapshotCachePolicy$
|
|
921
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
922
922
|
const { luvio, config } = context;
|
|
923
923
|
const selector = {
|
|
924
|
-
recordId: keyBuilder$
|
|
925
|
-
node: adapterFragment$
|
|
924
|
+
recordId: keyBuilder$v(luvio, config),
|
|
925
|
+
node: adapterFragment$b(luvio, config),
|
|
926
926
|
variables: {},
|
|
927
927
|
};
|
|
928
928
|
const cacheSnapshot = storeLookup(selector, {
|
|
929
929
|
config,
|
|
930
|
-
resolve: () => buildNetworkSnapshot$
|
|
930
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
931
931
|
});
|
|
932
932
|
return cacheSnapshot;
|
|
933
933
|
}
|
|
934
934
|
const getAppointmentFromTokenAdapterFactory = (luvio) => function IndustriesScheduler__getAppointmentFromToken(untrustedConfig, requestContext) {
|
|
935
|
-
const config = validateAdapterConfig$
|
|
935
|
+
const config = validateAdapterConfig$i(untrustedConfig, getAppointmentFromToken_ConfigPropertyNames);
|
|
936
936
|
// Invalid or incomplete config
|
|
937
937
|
if (config === null) {
|
|
938
938
|
return null;
|
|
939
939
|
}
|
|
940
940
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
941
|
-
buildCachedSnapshotCachePolicy$
|
|
941
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
942
942
|
};
|
|
943
943
|
|
|
944
|
-
const VERSION$
|
|
945
|
-
function validate$
|
|
944
|
+
const VERSION$M = "e59fa9697db603c279574c903444729d";
|
|
945
|
+
function validate$Q(obj, path = 'DecryptionResult') {
|
|
946
946
|
const v_error = (() => {
|
|
947
947
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
948
948
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -957,10 +957,10 @@ function validate$N(obj, path = 'DecryptionResult') {
|
|
|
957
957
|
})();
|
|
958
958
|
return v_error === undefined ? null : v_error;
|
|
959
959
|
}
|
|
960
|
-
const select$
|
|
960
|
+
const select$12 = function DecryptionResultSelect() {
|
|
961
961
|
return {
|
|
962
962
|
kind: 'Fragment',
|
|
963
|
-
version: VERSION$
|
|
963
|
+
version: VERSION$M,
|
|
964
964
|
private: [],
|
|
965
965
|
selections: [
|
|
966
966
|
{
|
|
@@ -971,7 +971,7 @@ const select$_ = function DecryptionResultSelect() {
|
|
|
971
971
|
]
|
|
972
972
|
};
|
|
973
973
|
};
|
|
974
|
-
function equals$
|
|
974
|
+
function equals$M(existing, incoming) {
|
|
975
975
|
const existing_decryptedString = existing.decryptedString;
|
|
976
976
|
const incoming_decryptedString = incoming.decryptedString;
|
|
977
977
|
// if at least one of these optionals is defined
|
|
@@ -988,15 +988,15 @@ function equals$J(existing, incoming) {
|
|
|
988
988
|
return true;
|
|
989
989
|
}
|
|
990
990
|
|
|
991
|
-
const VERSION$
|
|
992
|
-
function validate$
|
|
991
|
+
const VERSION$L = "5858461c4350d865afadd4d3ceea3be7";
|
|
992
|
+
function validate$P(obj, path = 'DecryptionOutputRepresentation') {
|
|
993
993
|
const v_error = (() => {
|
|
994
994
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
995
995
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
996
996
|
}
|
|
997
997
|
const obj_result = obj.result;
|
|
998
998
|
const path_result = path + '.result';
|
|
999
|
-
const referencepath_resultValidationError = validate$
|
|
999
|
+
const referencepath_resultValidationError = validate$Q(obj_result, path_result);
|
|
1000
1000
|
if (referencepath_resultValidationError !== null) {
|
|
1001
1001
|
let message = 'Object doesn\'t match DecryptionResult (at "' + path_result + '")\n';
|
|
1002
1002
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1005,15 +1005,15 @@ function validate$M(obj, path = 'DecryptionOutputRepresentation') {
|
|
|
1005
1005
|
})();
|
|
1006
1006
|
return v_error === undefined ? null : v_error;
|
|
1007
1007
|
}
|
|
1008
|
-
const RepresentationType$
|
|
1009
|
-
function normalize$
|
|
1008
|
+
const RepresentationType$j = 'DecryptionOutputRepresentation';
|
|
1009
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
1010
1010
|
return input;
|
|
1011
1011
|
}
|
|
1012
|
-
const select$
|
|
1013
|
-
const { selections: DecryptionResult__selections, opaque: DecryptionResult__opaque, } = select$
|
|
1012
|
+
const select$11 = function DecryptionOutputRepresentationSelect() {
|
|
1013
|
+
const { selections: DecryptionResult__selections, opaque: DecryptionResult__opaque, } = select$12();
|
|
1014
1014
|
return {
|
|
1015
1015
|
kind: 'Fragment',
|
|
1016
|
-
version: VERSION$
|
|
1016
|
+
version: VERSION$L,
|
|
1017
1017
|
private: [],
|
|
1018
1018
|
selections: [
|
|
1019
1019
|
{
|
|
@@ -1024,52 +1024,52 @@ const select$Z = function DecryptionOutputRepresentationSelect() {
|
|
|
1024
1024
|
]
|
|
1025
1025
|
};
|
|
1026
1026
|
};
|
|
1027
|
-
function equals$
|
|
1027
|
+
function equals$L(existing, incoming) {
|
|
1028
1028
|
const existing_result = existing.result;
|
|
1029
1029
|
const incoming_result = incoming.result;
|
|
1030
|
-
if (!(equals$
|
|
1030
|
+
if (!(equals$M(existing_result, incoming_result))) {
|
|
1031
1031
|
return false;
|
|
1032
1032
|
}
|
|
1033
1033
|
return true;
|
|
1034
1034
|
}
|
|
1035
|
-
const ingest$
|
|
1035
|
+
const ingest$j = function DecryptionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1036
1036
|
if (process.env.NODE_ENV !== 'production') {
|
|
1037
|
-
const validateError = validate$
|
|
1037
|
+
const validateError = validate$P(input);
|
|
1038
1038
|
if (validateError !== null) {
|
|
1039
1039
|
throw validateError;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
const key = path.fullPath;
|
|
1043
1043
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1044
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1044
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "IndustriesScheduler", VERSION$L, RepresentationType$j, equals$L);
|
|
1045
1045
|
return createLink(key);
|
|
1046
1046
|
};
|
|
1047
|
-
function getTypeCacheKeys$
|
|
1047
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
1048
1048
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1049
1049
|
const rootKey = fullPathFactory();
|
|
1050
1050
|
rootKeySet.set(rootKey, {
|
|
1051
1051
|
namespace: keyPrefix,
|
|
1052
|
-
representationName: RepresentationType$
|
|
1052
|
+
representationName: RepresentationType$j,
|
|
1053
1053
|
mergeable: false
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
function select$
|
|
1058
|
-
return select$
|
|
1057
|
+
function select$10(luvio, params) {
|
|
1058
|
+
return select$11();
|
|
1059
1059
|
}
|
|
1060
|
-
function keyBuilder$
|
|
1060
|
+
function keyBuilder$u(luvio, params) {
|
|
1061
1061
|
return keyPrefix + '::DecryptionOutputRepresentation:(' + 'encryptedString:' + params.queryParams.encryptedString + ')';
|
|
1062
1062
|
}
|
|
1063
|
-
function getResponseCacheKeys$
|
|
1064
|
-
getTypeCacheKeys$
|
|
1063
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
1064
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
1065
1065
|
}
|
|
1066
|
-
function ingestSuccess$
|
|
1066
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
1067
1067
|
const { body } = response;
|
|
1068
|
-
const key = keyBuilder$
|
|
1069
|
-
luvio.storeIngest(key, ingest$
|
|
1068
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
1069
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
1070
1070
|
const snapshot = luvio.storeLookup({
|
|
1071
1071
|
recordId: key,
|
|
1072
|
-
node: select$
|
|
1072
|
+
node: select$10(),
|
|
1073
1073
|
variables: {},
|
|
1074
1074
|
}, snapshotRefresh);
|
|
1075
1075
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1080,13 +1080,13 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1080
1080
|
deepFreeze(snapshot.data);
|
|
1081
1081
|
return snapshot;
|
|
1082
1082
|
}
|
|
1083
|
-
function ingestError$
|
|
1084
|
-
const key = keyBuilder$
|
|
1083
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
1084
|
+
const key = keyBuilder$u(luvio, params);
|
|
1085
1085
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1086
1086
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1087
1087
|
return errorSnapshot;
|
|
1088
1088
|
}
|
|
1089
|
-
function createResourceRequest$
|
|
1089
|
+
function createResourceRequest$h(config) {
|
|
1090
1090
|
const headers = {};
|
|
1091
1091
|
return {
|
|
1092
1092
|
baseUri: '/services/data/v62.0',
|
|
@@ -1100,94 +1100,94 @@ function createResourceRequest$g(config) {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
|
-
const adapterName$
|
|
1103
|
+
const adapterName$h = 'decryption';
|
|
1104
1104
|
const decryption_ConfigPropertyMetadata = [
|
|
1105
1105
|
generateParamConfigMetadata('encryptedString', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1106
1106
|
];
|
|
1107
|
-
const decryption_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1108
|
-
const createResourceParams$
|
|
1109
|
-
function keyBuilder$
|
|
1110
|
-
const resourceParams = createResourceParams$
|
|
1111
|
-
return keyBuilder$
|
|
1107
|
+
const decryption_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, decryption_ConfigPropertyMetadata);
|
|
1108
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(decryption_ConfigPropertyMetadata);
|
|
1109
|
+
function keyBuilder$t(luvio, config) {
|
|
1110
|
+
const resourceParams = createResourceParams$h(config);
|
|
1111
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
1112
1112
|
}
|
|
1113
|
-
function typeCheckConfig$
|
|
1113
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
1114
1114
|
const config = {};
|
|
1115
|
-
typeCheckConfig$
|
|
1115
|
+
typeCheckConfig$j(untrustedConfig, config, decryption_ConfigPropertyMetadata);
|
|
1116
1116
|
return config;
|
|
1117
1117
|
}
|
|
1118
|
-
function validateAdapterConfig$
|
|
1118
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
1119
1119
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1120
1120
|
return null;
|
|
1121
1121
|
}
|
|
1122
1122
|
if (process.env.NODE_ENV !== 'production') {
|
|
1123
1123
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1124
1124
|
}
|
|
1125
|
-
const config = typeCheckConfig$
|
|
1125
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
1126
1126
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1127
1127
|
return null;
|
|
1128
1128
|
}
|
|
1129
1129
|
return config;
|
|
1130
1130
|
}
|
|
1131
|
-
function adapterFragment$
|
|
1132
|
-
createResourceParams$
|
|
1133
|
-
return select$
|
|
1131
|
+
function adapterFragment$a(luvio, config) {
|
|
1132
|
+
createResourceParams$h(config);
|
|
1133
|
+
return select$10();
|
|
1134
1134
|
}
|
|
1135
|
-
function onFetchResponseSuccess$
|
|
1136
|
-
const snapshot = ingestSuccess$
|
|
1135
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
1136
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
1137
1137
|
config,
|
|
1138
|
-
resolve: () => buildNetworkSnapshot$
|
|
1138
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
1139
1139
|
});
|
|
1140
1140
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1141
1141
|
}
|
|
1142
|
-
function onFetchResponseError$
|
|
1143
|
-
const snapshot = ingestError$
|
|
1142
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
1143
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
1144
1144
|
config,
|
|
1145
|
-
resolve: () => buildNetworkSnapshot$
|
|
1145
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
1146
1146
|
});
|
|
1147
1147
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1148
1148
|
}
|
|
1149
|
-
function buildNetworkSnapshot$
|
|
1150
|
-
const resourceParams = createResourceParams$
|
|
1151
|
-
const request = createResourceRequest$
|
|
1149
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
1150
|
+
const resourceParams = createResourceParams$h(config);
|
|
1151
|
+
const request = createResourceRequest$h(resourceParams);
|
|
1152
1152
|
return luvio.dispatchResourceRequest(request, options)
|
|
1153
1153
|
.then((response) => {
|
|
1154
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1154
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
1155
1155
|
const cache = new StoreKeyMap();
|
|
1156
|
-
getResponseCacheKeys$
|
|
1156
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
1157
1157
|
return cache;
|
|
1158
1158
|
});
|
|
1159
1159
|
}, (response) => {
|
|
1160
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1160
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
1163
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1164
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1163
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
1164
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
1165
1165
|
}
|
|
1166
|
-
function buildCachedSnapshotCachePolicy$
|
|
1166
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
1167
1167
|
const { luvio, config } = context;
|
|
1168
1168
|
const selector = {
|
|
1169
|
-
recordId: keyBuilder$
|
|
1170
|
-
node: adapterFragment$
|
|
1169
|
+
recordId: keyBuilder$t(luvio, config),
|
|
1170
|
+
node: adapterFragment$a(luvio, config),
|
|
1171
1171
|
variables: {},
|
|
1172
1172
|
};
|
|
1173
1173
|
const cacheSnapshot = storeLookup(selector, {
|
|
1174
1174
|
config,
|
|
1175
|
-
resolve: () => buildNetworkSnapshot$
|
|
1175
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
1176
1176
|
});
|
|
1177
1177
|
return cacheSnapshot;
|
|
1178
1178
|
}
|
|
1179
1179
|
const decryptionAdapterFactory = (luvio) => function IndustriesScheduler__decryption(untrustedConfig, requestContext) {
|
|
1180
|
-
const config = validateAdapterConfig$
|
|
1180
|
+
const config = validateAdapterConfig$h(untrustedConfig, decryption_ConfigPropertyNames);
|
|
1181
1181
|
// Invalid or incomplete config
|
|
1182
1182
|
if (config === null) {
|
|
1183
1183
|
return null;
|
|
1184
1184
|
}
|
|
1185
1185
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1186
|
-
buildCachedSnapshotCachePolicy$
|
|
1186
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
1187
1187
|
};
|
|
1188
1188
|
|
|
1189
|
-
const VERSION$
|
|
1190
|
-
function validate$
|
|
1189
|
+
const VERSION$K = "741cde13e31186122ba311835e66856d";
|
|
1190
|
+
function validate$O(obj, path = 'EncryptionResult') {
|
|
1191
1191
|
const v_error = (() => {
|
|
1192
1192
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1193
1193
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1202,10 +1202,10 @@ function validate$L(obj, path = 'EncryptionResult') {
|
|
|
1202
1202
|
})();
|
|
1203
1203
|
return v_error === undefined ? null : v_error;
|
|
1204
1204
|
}
|
|
1205
|
-
const select
|
|
1205
|
+
const select$$ = function EncryptionResultSelect() {
|
|
1206
1206
|
return {
|
|
1207
1207
|
kind: 'Fragment',
|
|
1208
|
-
version: VERSION$
|
|
1208
|
+
version: VERSION$K,
|
|
1209
1209
|
private: [],
|
|
1210
1210
|
selections: [
|
|
1211
1211
|
{
|
|
@@ -1216,7 +1216,7 @@ const select$X = function EncryptionResultSelect() {
|
|
|
1216
1216
|
]
|
|
1217
1217
|
};
|
|
1218
1218
|
};
|
|
1219
|
-
function equals$
|
|
1219
|
+
function equals$K(existing, incoming) {
|
|
1220
1220
|
const existing_encryptedString = existing.encryptedString;
|
|
1221
1221
|
const incoming_encryptedString = incoming.encryptedString;
|
|
1222
1222
|
// if at least one of these optionals is defined
|
|
@@ -1233,15 +1233,15 @@ function equals$H(existing, incoming) {
|
|
|
1233
1233
|
return true;
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
const VERSION$
|
|
1237
|
-
function validate$
|
|
1236
|
+
const VERSION$J = "3aa6403cc7aa2cc26c20b41a76c71b49";
|
|
1237
|
+
function validate$N(obj, path = 'EncryptionOutputRepresentation') {
|
|
1238
1238
|
const v_error = (() => {
|
|
1239
1239
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1240
1240
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1241
1241
|
}
|
|
1242
1242
|
const obj_result = obj.result;
|
|
1243
1243
|
const path_result = path + '.result';
|
|
1244
|
-
const referencepath_resultValidationError = validate$
|
|
1244
|
+
const referencepath_resultValidationError = validate$O(obj_result, path_result);
|
|
1245
1245
|
if (referencepath_resultValidationError !== null) {
|
|
1246
1246
|
let message = 'Object doesn\'t match EncryptionResult (at "' + path_result + '")\n';
|
|
1247
1247
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1250,15 +1250,15 @@ function validate$K(obj, path = 'EncryptionOutputRepresentation') {
|
|
|
1250
1250
|
})();
|
|
1251
1251
|
return v_error === undefined ? null : v_error;
|
|
1252
1252
|
}
|
|
1253
|
-
const RepresentationType$
|
|
1254
|
-
function normalize$
|
|
1253
|
+
const RepresentationType$i = 'EncryptionOutputRepresentation';
|
|
1254
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
1255
1255
|
return input;
|
|
1256
1256
|
}
|
|
1257
|
-
const select$
|
|
1258
|
-
const { selections: EncryptionResult__selections, opaque: EncryptionResult__opaque, } = select
|
|
1257
|
+
const select$_ = function EncryptionOutputRepresentationSelect() {
|
|
1258
|
+
const { selections: EncryptionResult__selections, opaque: EncryptionResult__opaque, } = select$$();
|
|
1259
1259
|
return {
|
|
1260
1260
|
kind: 'Fragment',
|
|
1261
|
-
version: VERSION$
|
|
1261
|
+
version: VERSION$J,
|
|
1262
1262
|
private: [],
|
|
1263
1263
|
selections: [
|
|
1264
1264
|
{
|
|
@@ -1269,52 +1269,52 @@ const select$W = function EncryptionOutputRepresentationSelect() {
|
|
|
1269
1269
|
]
|
|
1270
1270
|
};
|
|
1271
1271
|
};
|
|
1272
|
-
function equals$
|
|
1272
|
+
function equals$J(existing, incoming) {
|
|
1273
1273
|
const existing_result = existing.result;
|
|
1274
1274
|
const incoming_result = incoming.result;
|
|
1275
|
-
if (!(equals$
|
|
1275
|
+
if (!(equals$K(existing_result, incoming_result))) {
|
|
1276
1276
|
return false;
|
|
1277
1277
|
}
|
|
1278
1278
|
return true;
|
|
1279
1279
|
}
|
|
1280
|
-
const ingest$
|
|
1280
|
+
const ingest$i = function EncryptionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1281
1281
|
if (process.env.NODE_ENV !== 'production') {
|
|
1282
|
-
const validateError = validate$
|
|
1282
|
+
const validateError = validate$N(input);
|
|
1283
1283
|
if (validateError !== null) {
|
|
1284
1284
|
throw validateError;
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
const key = path.fullPath;
|
|
1288
1288
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1289
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1289
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "IndustriesScheduler", VERSION$J, RepresentationType$i, equals$J);
|
|
1290
1290
|
return createLink(key);
|
|
1291
1291
|
};
|
|
1292
|
-
function getTypeCacheKeys$
|
|
1292
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
1293
1293
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1294
1294
|
const rootKey = fullPathFactory();
|
|
1295
1295
|
rootKeySet.set(rootKey, {
|
|
1296
1296
|
namespace: keyPrefix,
|
|
1297
|
-
representationName: RepresentationType$
|
|
1297
|
+
representationName: RepresentationType$i,
|
|
1298
1298
|
mergeable: false
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
|
-
function select$
|
|
1303
|
-
return select$
|
|
1302
|
+
function select$Z(luvio, params) {
|
|
1303
|
+
return select$_();
|
|
1304
1304
|
}
|
|
1305
|
-
function keyBuilder$
|
|
1305
|
+
function keyBuilder$s(luvio, params) {
|
|
1306
1306
|
return keyPrefix + '::EncryptionOutputRepresentation:(' + 'inputString:' + params.queryParams.inputString + ')';
|
|
1307
1307
|
}
|
|
1308
|
-
function getResponseCacheKeys$
|
|
1309
|
-
getTypeCacheKeys$
|
|
1308
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
1309
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
|
|
1310
1310
|
}
|
|
1311
|
-
function ingestSuccess$
|
|
1311
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
1312
1312
|
const { body } = response;
|
|
1313
|
-
const key = keyBuilder$
|
|
1314
|
-
luvio.storeIngest(key, ingest$
|
|
1313
|
+
const key = keyBuilder$s(luvio, resourceParams);
|
|
1314
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
1315
1315
|
const snapshot = luvio.storeLookup({
|
|
1316
1316
|
recordId: key,
|
|
1317
|
-
node: select$
|
|
1317
|
+
node: select$Z(),
|
|
1318
1318
|
variables: {},
|
|
1319
1319
|
}, snapshotRefresh);
|
|
1320
1320
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1325,13 +1325,13 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1325
1325
|
deepFreeze(snapshot.data);
|
|
1326
1326
|
return snapshot;
|
|
1327
1327
|
}
|
|
1328
|
-
function ingestError$
|
|
1329
|
-
const key = keyBuilder$
|
|
1328
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
1329
|
+
const key = keyBuilder$s(luvio, params);
|
|
1330
1330
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1331
1331
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1332
1332
|
return errorSnapshot;
|
|
1333
1333
|
}
|
|
1334
|
-
function createResourceRequest$
|
|
1334
|
+
function createResourceRequest$g(config) {
|
|
1335
1335
|
const headers = {};
|
|
1336
1336
|
return {
|
|
1337
1337
|
baseUri: '/services/data/v62.0',
|
|
@@ -1345,94 +1345,94 @@ function createResourceRequest$f(config) {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
|
-
const adapterName$
|
|
1348
|
+
const adapterName$g = 'encrypt';
|
|
1349
1349
|
const encrypt_ConfigPropertyMetadata = [
|
|
1350
1350
|
generateParamConfigMetadata('inputString', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1351
1351
|
];
|
|
1352
|
-
const encrypt_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1353
|
-
const createResourceParams$
|
|
1354
|
-
function keyBuilder$
|
|
1355
|
-
const resourceParams = createResourceParams$
|
|
1356
|
-
return keyBuilder$
|
|
1352
|
+
const encrypt_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, encrypt_ConfigPropertyMetadata);
|
|
1353
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(encrypt_ConfigPropertyMetadata);
|
|
1354
|
+
function keyBuilder$r(luvio, config) {
|
|
1355
|
+
const resourceParams = createResourceParams$g(config);
|
|
1356
|
+
return keyBuilder$s(luvio, resourceParams);
|
|
1357
1357
|
}
|
|
1358
|
-
function typeCheckConfig$
|
|
1358
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
1359
1359
|
const config = {};
|
|
1360
|
-
typeCheckConfig$
|
|
1360
|
+
typeCheckConfig$j(untrustedConfig, config, encrypt_ConfigPropertyMetadata);
|
|
1361
1361
|
return config;
|
|
1362
1362
|
}
|
|
1363
|
-
function validateAdapterConfig$
|
|
1363
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
1364
1364
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1365
1365
|
return null;
|
|
1366
1366
|
}
|
|
1367
1367
|
if (process.env.NODE_ENV !== 'production') {
|
|
1368
1368
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1369
1369
|
}
|
|
1370
|
-
const config = typeCheckConfig$
|
|
1370
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
1371
1371
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1372
1372
|
return null;
|
|
1373
1373
|
}
|
|
1374
1374
|
return config;
|
|
1375
1375
|
}
|
|
1376
|
-
function adapterFragment$
|
|
1377
|
-
createResourceParams$
|
|
1378
|
-
return select$
|
|
1376
|
+
function adapterFragment$9(luvio, config) {
|
|
1377
|
+
createResourceParams$g(config);
|
|
1378
|
+
return select$Z();
|
|
1379
1379
|
}
|
|
1380
|
-
function onFetchResponseSuccess$
|
|
1381
|
-
const snapshot = ingestSuccess$
|
|
1380
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
1381
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
1382
1382
|
config,
|
|
1383
|
-
resolve: () => buildNetworkSnapshot$
|
|
1383
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
1384
1384
|
});
|
|
1385
1385
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1386
1386
|
}
|
|
1387
|
-
function onFetchResponseError$
|
|
1388
|
-
const snapshot = ingestError$
|
|
1387
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
1388
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
1389
1389
|
config,
|
|
1390
|
-
resolve: () => buildNetworkSnapshot$
|
|
1390
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
1391
1391
|
});
|
|
1392
1392
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1393
1393
|
}
|
|
1394
|
-
function buildNetworkSnapshot$
|
|
1395
|
-
const resourceParams = createResourceParams$
|
|
1396
|
-
const request = createResourceRequest$
|
|
1394
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
1395
|
+
const resourceParams = createResourceParams$g(config);
|
|
1396
|
+
const request = createResourceRequest$g(resourceParams);
|
|
1397
1397
|
return luvio.dispatchResourceRequest(request, options)
|
|
1398
1398
|
.then((response) => {
|
|
1399
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1399
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
1400
1400
|
const cache = new StoreKeyMap();
|
|
1401
|
-
getResponseCacheKeys$
|
|
1401
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
1402
1402
|
return cache;
|
|
1403
1403
|
});
|
|
1404
1404
|
}, (response) => {
|
|
1405
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1405
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1409
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1408
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
1409
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
1410
1410
|
}
|
|
1411
|
-
function buildCachedSnapshotCachePolicy$
|
|
1411
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
1412
1412
|
const { luvio, config } = context;
|
|
1413
1413
|
const selector = {
|
|
1414
|
-
recordId: keyBuilder$
|
|
1415
|
-
node: adapterFragment$
|
|
1414
|
+
recordId: keyBuilder$r(luvio, config),
|
|
1415
|
+
node: adapterFragment$9(luvio, config),
|
|
1416
1416
|
variables: {},
|
|
1417
1417
|
};
|
|
1418
1418
|
const cacheSnapshot = storeLookup(selector, {
|
|
1419
1419
|
config,
|
|
1420
|
-
resolve: () => buildNetworkSnapshot$
|
|
1420
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
1421
1421
|
});
|
|
1422
1422
|
return cacheSnapshot;
|
|
1423
1423
|
}
|
|
1424
1424
|
const encryptAdapterFactory = (luvio) => function IndustriesScheduler__encrypt(untrustedConfig, requestContext) {
|
|
1425
|
-
const config = validateAdapterConfig$
|
|
1425
|
+
const config = validateAdapterConfig$g(untrustedConfig, encrypt_ConfigPropertyNames);
|
|
1426
1426
|
// Invalid or incomplete config
|
|
1427
1427
|
if (config === null) {
|
|
1428
1428
|
return null;
|
|
1429
1429
|
}
|
|
1430
1430
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1431
|
-
buildCachedSnapshotCachePolicy$
|
|
1431
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
1432
1432
|
};
|
|
1433
1433
|
|
|
1434
|
-
const VERSION$
|
|
1435
|
-
function validate$
|
|
1434
|
+
const VERSION$I = "745ed19773bc6307c6816a6d100b0cbe";
|
|
1435
|
+
function validate$M(obj, path = 'GetEngagementChannelTypeResult') {
|
|
1436
1436
|
const v_error = (() => {
|
|
1437
1437
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1438
1438
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1496,10 +1496,10 @@ function validate$J(obj, path = 'GetEngagementChannelTypeResult') {
|
|
|
1496
1496
|
})();
|
|
1497
1497
|
return v_error === undefined ? null : v_error;
|
|
1498
1498
|
}
|
|
1499
|
-
const select$
|
|
1499
|
+
const select$Y = function GetEngagementChannelTypeResultSelect() {
|
|
1500
1500
|
return {
|
|
1501
1501
|
kind: 'Fragment',
|
|
1502
|
-
version: VERSION$
|
|
1502
|
+
version: VERSION$I,
|
|
1503
1503
|
private: [],
|
|
1504
1504
|
selections: [
|
|
1505
1505
|
{
|
|
@@ -1537,7 +1537,7 @@ const select$U = function GetEngagementChannelTypeResultSelect() {
|
|
|
1537
1537
|
]
|
|
1538
1538
|
};
|
|
1539
1539
|
};
|
|
1540
|
-
function equals$
|
|
1540
|
+
function equals$I(existing, incoming) {
|
|
1541
1541
|
const existing_contactPoint = existing.contactPoint;
|
|
1542
1542
|
const incoming_contactPoint = incoming.contactPoint;
|
|
1543
1543
|
// if at least one of these optionals is defined
|
|
@@ -1629,8 +1629,8 @@ function equals$F(existing, incoming) {
|
|
|
1629
1629
|
return true;
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
|
-
const VERSION$
|
|
1633
|
-
function validate$
|
|
1632
|
+
const VERSION$H = "129c53d5f8fb579d31c255a020838251";
|
|
1633
|
+
function validate$L(obj, path = 'GetEngagementChannelTypeListResult') {
|
|
1634
1634
|
const v_error = (() => {
|
|
1635
1635
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1636
1636
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1643,7 +1643,7 @@ function validate$I(obj, path = 'GetEngagementChannelTypeListResult') {
|
|
|
1643
1643
|
for (let i = 0; i < obj_engagementChannelTypes.length; i++) {
|
|
1644
1644
|
const obj_engagementChannelTypes_item = obj_engagementChannelTypes[i];
|
|
1645
1645
|
const path_engagementChannelTypes_item = path_engagementChannelTypes + '[' + i + ']';
|
|
1646
|
-
const referencepath_engagementChannelTypes_itemValidationError = validate$
|
|
1646
|
+
const referencepath_engagementChannelTypes_itemValidationError = validate$M(obj_engagementChannelTypes_item, path_engagementChannelTypes_item);
|
|
1647
1647
|
if (referencepath_engagementChannelTypes_itemValidationError !== null) {
|
|
1648
1648
|
let message = 'Object doesn\'t match GetEngagementChannelTypeResult (at "' + path_engagementChannelTypes_item + '")\n';
|
|
1649
1649
|
message += referencepath_engagementChannelTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1653,11 +1653,11 @@ function validate$I(obj, path = 'GetEngagementChannelTypeListResult') {
|
|
|
1653
1653
|
})();
|
|
1654
1654
|
return v_error === undefined ? null : v_error;
|
|
1655
1655
|
}
|
|
1656
|
-
const select$
|
|
1657
|
-
const { selections: GetEngagementChannelTypeResult__selections, opaque: GetEngagementChannelTypeResult__opaque, } = select$
|
|
1656
|
+
const select$X = function GetEngagementChannelTypeListResultSelect() {
|
|
1657
|
+
const { selections: GetEngagementChannelTypeResult__selections, opaque: GetEngagementChannelTypeResult__opaque, } = select$Y();
|
|
1658
1658
|
return {
|
|
1659
1659
|
kind: 'Fragment',
|
|
1660
|
-
version: VERSION$
|
|
1660
|
+
version: VERSION$H,
|
|
1661
1661
|
private: [],
|
|
1662
1662
|
selections: [
|
|
1663
1663
|
{
|
|
@@ -1669,11 +1669,11 @@ const select$T = function GetEngagementChannelTypeListResultSelect() {
|
|
|
1669
1669
|
]
|
|
1670
1670
|
};
|
|
1671
1671
|
};
|
|
1672
|
-
function equals$
|
|
1672
|
+
function equals$H(existing, incoming) {
|
|
1673
1673
|
const existing_engagementChannelTypes = existing.engagementChannelTypes;
|
|
1674
1674
|
const incoming_engagementChannelTypes = incoming.engagementChannelTypes;
|
|
1675
1675
|
const equals_engagementChannelTypes_items = equalsArray(existing_engagementChannelTypes, incoming_engagementChannelTypes, (existing_engagementChannelTypes_item, incoming_engagementChannelTypes_item) => {
|
|
1676
|
-
if (!(equals$
|
|
1676
|
+
if (!(equals$I(existing_engagementChannelTypes_item, incoming_engagementChannelTypes_item))) {
|
|
1677
1677
|
return false;
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
@@ -1683,15 +1683,15 @@ function equals$E(existing, incoming) {
|
|
|
1683
1683
|
return true;
|
|
1684
1684
|
}
|
|
1685
1685
|
|
|
1686
|
-
const VERSION$
|
|
1687
|
-
function validate$
|
|
1686
|
+
const VERSION$G = "622654426aa18b7c8846e6d863a5f446";
|
|
1687
|
+
function validate$K(obj, path = 'GetEngagementChannelTypeOutputRepresentation') {
|
|
1688
1688
|
const v_error = (() => {
|
|
1689
1689
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1690
1690
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1691
1691
|
}
|
|
1692
1692
|
const obj_result = obj.result;
|
|
1693
1693
|
const path_result = path + '.result';
|
|
1694
|
-
const referencepath_resultValidationError = validate$
|
|
1694
|
+
const referencepath_resultValidationError = validate$L(obj_result, path_result);
|
|
1695
1695
|
if (referencepath_resultValidationError !== null) {
|
|
1696
1696
|
let message = 'Object doesn\'t match GetEngagementChannelTypeListResult (at "' + path_result + '")\n';
|
|
1697
1697
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1700,15 +1700,15 @@ function validate$H(obj, path = 'GetEngagementChannelTypeOutputRepresentation')
|
|
|
1700
1700
|
})();
|
|
1701
1701
|
return v_error === undefined ? null : v_error;
|
|
1702
1702
|
}
|
|
1703
|
-
const RepresentationType$
|
|
1704
|
-
function normalize$
|
|
1703
|
+
const RepresentationType$h = 'GetEngagementChannelTypeOutputRepresentation';
|
|
1704
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
1705
1705
|
return input;
|
|
1706
1706
|
}
|
|
1707
|
-
const select$
|
|
1708
|
-
const { selections: GetEngagementChannelTypeListResult__selections, opaque: GetEngagementChannelTypeListResult__opaque, } = select$
|
|
1707
|
+
const select$W = function GetEngagementChannelTypeOutputRepresentationSelect() {
|
|
1708
|
+
const { selections: GetEngagementChannelTypeListResult__selections, opaque: GetEngagementChannelTypeListResult__opaque, } = select$X();
|
|
1709
1709
|
return {
|
|
1710
1710
|
kind: 'Fragment',
|
|
1711
|
-
version: VERSION$
|
|
1711
|
+
version: VERSION$G,
|
|
1712
1712
|
private: [],
|
|
1713
1713
|
selections: [
|
|
1714
1714
|
{
|
|
@@ -1719,52 +1719,52 @@ const select$S = function GetEngagementChannelTypeOutputRepresentationSelect() {
|
|
|
1719
1719
|
]
|
|
1720
1720
|
};
|
|
1721
1721
|
};
|
|
1722
|
-
function equals$
|
|
1722
|
+
function equals$G(existing, incoming) {
|
|
1723
1723
|
const existing_result = existing.result;
|
|
1724
1724
|
const incoming_result = incoming.result;
|
|
1725
|
-
if (!(equals$
|
|
1725
|
+
if (!(equals$H(existing_result, incoming_result))) {
|
|
1726
1726
|
return false;
|
|
1727
1727
|
}
|
|
1728
1728
|
return true;
|
|
1729
1729
|
}
|
|
1730
|
-
const ingest$
|
|
1730
|
+
const ingest$h = function GetEngagementChannelTypeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1731
1731
|
if (process.env.NODE_ENV !== 'production') {
|
|
1732
|
-
const validateError = validate$
|
|
1732
|
+
const validateError = validate$K(input);
|
|
1733
1733
|
if (validateError !== null) {
|
|
1734
1734
|
throw validateError;
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
const key = path.fullPath;
|
|
1738
1738
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1739
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1739
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "IndustriesScheduler", VERSION$G, RepresentationType$h, equals$G);
|
|
1740
1740
|
return createLink(key);
|
|
1741
1741
|
};
|
|
1742
|
-
function getTypeCacheKeys$
|
|
1742
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
1743
1743
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1744
1744
|
const rootKey = fullPathFactory();
|
|
1745
1745
|
rootKeySet.set(rootKey, {
|
|
1746
1746
|
namespace: keyPrefix,
|
|
1747
|
-
representationName: RepresentationType$
|
|
1747
|
+
representationName: RepresentationType$h,
|
|
1748
1748
|
mergeable: false
|
|
1749
1749
|
});
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
|
-
function select$
|
|
1753
|
-
return select$
|
|
1752
|
+
function select$V(luvio, params) {
|
|
1753
|
+
return select$W();
|
|
1754
1754
|
}
|
|
1755
|
-
function keyBuilder$
|
|
1755
|
+
function keyBuilder$q(luvio, params) {
|
|
1756
1756
|
return keyPrefix + '::GetEngagementChannelTypeOutputRepresentation:(' + 'workTypeGroupIds:' + params.queryParams.workTypeGroupIds + ',' + 'workTypeIds:' + params.queryParams.workTypeIds + ')';
|
|
1757
1757
|
}
|
|
1758
|
-
function getResponseCacheKeys$
|
|
1759
|
-
getTypeCacheKeys$
|
|
1758
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
1759
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
|
|
1760
1760
|
}
|
|
1761
|
-
function ingestSuccess$
|
|
1761
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
1762
1762
|
const { body } = response;
|
|
1763
|
-
const key = keyBuilder$
|
|
1764
|
-
luvio.storeIngest(key, ingest$
|
|
1763
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
1764
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
1765
1765
|
const snapshot = luvio.storeLookup({
|
|
1766
1766
|
recordId: key,
|
|
1767
|
-
node: select$
|
|
1767
|
+
node: select$V(),
|
|
1768
1768
|
variables: {},
|
|
1769
1769
|
}, snapshotRefresh);
|
|
1770
1770
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1775,13 +1775,13 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1775
1775
|
deepFreeze(snapshot.data);
|
|
1776
1776
|
return snapshot;
|
|
1777
1777
|
}
|
|
1778
|
-
function ingestError$
|
|
1779
|
-
const key = keyBuilder$
|
|
1778
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
1779
|
+
const key = keyBuilder$q(luvio, params);
|
|
1780
1780
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1781
1781
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1782
1782
|
return errorSnapshot;
|
|
1783
1783
|
}
|
|
1784
|
-
function createResourceRequest$
|
|
1784
|
+
function createResourceRequest$f(config) {
|
|
1785
1785
|
const headers = {};
|
|
1786
1786
|
return {
|
|
1787
1787
|
baseUri: '/services/data/v62.0',
|
|
@@ -1795,95 +1795,95 @@ function createResourceRequest$e(config) {
|
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
1797
|
|
|
1798
|
-
const adapterName$
|
|
1798
|
+
const adapterName$f = 'getEngagementChannelTypes';
|
|
1799
1799
|
const getEngagementChannelTypes_ConfigPropertyMetadata = [
|
|
1800
1800
|
generateParamConfigMetadata('workTypeGroupIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1801
1801
|
generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1802
1802
|
];
|
|
1803
|
-
const getEngagementChannelTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1804
|
-
const createResourceParams$
|
|
1805
|
-
function keyBuilder$
|
|
1806
|
-
const resourceParams = createResourceParams$
|
|
1807
|
-
return keyBuilder$
|
|
1803
|
+
const getEngagementChannelTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
1804
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
1805
|
+
function keyBuilder$p(luvio, config) {
|
|
1806
|
+
const resourceParams = createResourceParams$f(config);
|
|
1807
|
+
return keyBuilder$q(luvio, resourceParams);
|
|
1808
1808
|
}
|
|
1809
|
-
function typeCheckConfig$
|
|
1809
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
1810
1810
|
const config = {};
|
|
1811
|
-
typeCheckConfig$
|
|
1811
|
+
typeCheckConfig$j(untrustedConfig, config, getEngagementChannelTypes_ConfigPropertyMetadata);
|
|
1812
1812
|
return config;
|
|
1813
1813
|
}
|
|
1814
|
-
function validateAdapterConfig$
|
|
1814
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
1815
1815
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1816
1816
|
return null;
|
|
1817
1817
|
}
|
|
1818
1818
|
if (process.env.NODE_ENV !== 'production') {
|
|
1819
1819
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1820
1820
|
}
|
|
1821
|
-
const config = typeCheckConfig$
|
|
1821
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
1822
1822
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1823
1823
|
return null;
|
|
1824
1824
|
}
|
|
1825
1825
|
return config;
|
|
1826
1826
|
}
|
|
1827
|
-
function adapterFragment$
|
|
1828
|
-
createResourceParams$
|
|
1829
|
-
return select$
|
|
1827
|
+
function adapterFragment$8(luvio, config) {
|
|
1828
|
+
createResourceParams$f(config);
|
|
1829
|
+
return select$V();
|
|
1830
1830
|
}
|
|
1831
|
-
function onFetchResponseSuccess$
|
|
1832
|
-
const snapshot = ingestSuccess$
|
|
1831
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
1832
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
1833
1833
|
config,
|
|
1834
|
-
resolve: () => buildNetworkSnapshot$
|
|
1834
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1835
1835
|
});
|
|
1836
1836
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1837
1837
|
}
|
|
1838
|
-
function onFetchResponseError$
|
|
1839
|
-
const snapshot = ingestError$
|
|
1838
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
1839
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
1840
1840
|
config,
|
|
1841
|
-
resolve: () => buildNetworkSnapshot$
|
|
1841
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1842
1842
|
});
|
|
1843
1843
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1844
1844
|
}
|
|
1845
|
-
function buildNetworkSnapshot$
|
|
1846
|
-
const resourceParams = createResourceParams$
|
|
1847
|
-
const request = createResourceRequest$
|
|
1845
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
1846
|
+
const resourceParams = createResourceParams$f(config);
|
|
1847
|
+
const request = createResourceRequest$f(resourceParams);
|
|
1848
1848
|
return luvio.dispatchResourceRequest(request, options)
|
|
1849
1849
|
.then((response) => {
|
|
1850
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1850
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
1851
1851
|
const cache = new StoreKeyMap();
|
|
1852
|
-
getResponseCacheKeys$
|
|
1852
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1853
1853
|
return cache;
|
|
1854
1854
|
});
|
|
1855
1855
|
}, (response) => {
|
|
1856
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1856
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
1857
1857
|
});
|
|
1858
1858
|
}
|
|
1859
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1860
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1859
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
1860
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
1861
1861
|
}
|
|
1862
|
-
function buildCachedSnapshotCachePolicy$
|
|
1862
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
1863
1863
|
const { luvio, config } = context;
|
|
1864
1864
|
const selector = {
|
|
1865
|
-
recordId: keyBuilder$
|
|
1866
|
-
node: adapterFragment$
|
|
1865
|
+
recordId: keyBuilder$p(luvio, config),
|
|
1866
|
+
node: adapterFragment$8(luvio, config),
|
|
1867
1867
|
variables: {},
|
|
1868
1868
|
};
|
|
1869
1869
|
const cacheSnapshot = storeLookup(selector, {
|
|
1870
1870
|
config,
|
|
1871
|
-
resolve: () => buildNetworkSnapshot$
|
|
1871
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1872
1872
|
});
|
|
1873
1873
|
return cacheSnapshot;
|
|
1874
1874
|
}
|
|
1875
1875
|
const getEngagementChannelTypesAdapterFactory = (luvio) => function IndustriesScheduler__getEngagementChannelTypes(untrustedConfig, requestContext) {
|
|
1876
|
-
const config = validateAdapterConfig$
|
|
1876
|
+
const config = validateAdapterConfig$f(untrustedConfig, getEngagementChannelTypes_ConfigPropertyNames);
|
|
1877
1877
|
// Invalid or incomplete config
|
|
1878
1878
|
if (config === null) {
|
|
1879
1879
|
return null;
|
|
1880
1880
|
}
|
|
1881
1881
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1882
|
-
buildCachedSnapshotCachePolicy$
|
|
1882
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
1883
1883
|
};
|
|
1884
1884
|
|
|
1885
|
-
const VERSION$
|
|
1886
|
-
function validate$
|
|
1885
|
+
const VERSION$F = "d7e0cb4e89f9dd3842fa2a5bdd0a27d0";
|
|
1886
|
+
function validate$J(obj, path = 'AppointmentChannelRepresentation') {
|
|
1887
1887
|
const v_error = (() => {
|
|
1888
1888
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1889
1889
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1912,10 +1912,10 @@ function validate$G(obj, path = 'AppointmentChannelRepresentation') {
|
|
|
1912
1912
|
})();
|
|
1913
1913
|
return v_error === undefined ? null : v_error;
|
|
1914
1914
|
}
|
|
1915
|
-
const select$
|
|
1915
|
+
const select$U = function AppointmentChannelRepresentationSelect() {
|
|
1916
1916
|
return {
|
|
1917
1917
|
kind: 'Fragment',
|
|
1918
|
-
version: VERSION$
|
|
1918
|
+
version: VERSION$F,
|
|
1919
1919
|
private: [],
|
|
1920
1920
|
selections: [
|
|
1921
1921
|
{
|
|
@@ -1936,7 +1936,7 @@ const select$Q = function AppointmentChannelRepresentationSelect() {
|
|
|
1936
1936
|
]
|
|
1937
1937
|
};
|
|
1938
1938
|
};
|
|
1939
|
-
function equals$
|
|
1939
|
+
function equals$F(existing, incoming) {
|
|
1940
1940
|
const existing_appointmentType = existing.appointmentType;
|
|
1941
1941
|
const incoming_appointmentType = incoming.appointmentType;
|
|
1942
1942
|
// if at least one of these optionals is defined
|
|
@@ -1979,8 +1979,8 @@ function equals$C(existing, incoming) {
|
|
|
1979
1979
|
return true;
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
|
-
const VERSION$
|
|
1983
|
-
function validate$
|
|
1982
|
+
const VERSION$E = "c53d2d7c54f3f7e132ff8f6059f30726";
|
|
1983
|
+
function validate$I(obj, path = 'ExtendedFieldsOutputRepresentation') {
|
|
1984
1984
|
const v_error = (() => {
|
|
1985
1985
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1986
1986
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1998,10 +1998,10 @@ function validate$F(obj, path = 'ExtendedFieldsOutputRepresentation') {
|
|
|
1998
1998
|
})();
|
|
1999
1999
|
return v_error === undefined ? null : v_error;
|
|
2000
2000
|
}
|
|
2001
|
-
const select$
|
|
2001
|
+
const select$T = function ExtendedFieldsOutputRepresentationSelect() {
|
|
2002
2002
|
return {
|
|
2003
2003
|
kind: 'Fragment',
|
|
2004
|
-
version: VERSION$
|
|
2004
|
+
version: VERSION$E,
|
|
2005
2005
|
private: [],
|
|
2006
2006
|
selections: [
|
|
2007
2007
|
{
|
|
@@ -2015,7 +2015,7 @@ const select$P = function ExtendedFieldsOutputRepresentationSelect() {
|
|
|
2015
2015
|
]
|
|
2016
2016
|
};
|
|
2017
2017
|
};
|
|
2018
|
-
function equals$
|
|
2018
|
+
function equals$E(existing, incoming) {
|
|
2019
2019
|
const existing_name = existing.name;
|
|
2020
2020
|
const incoming_name = incoming.name;
|
|
2021
2021
|
if (!(existing_name === incoming_name)) {
|
|
@@ -2029,8 +2029,8 @@ function equals$B(existing, incoming) {
|
|
|
2029
2029
|
return true;
|
|
2030
2030
|
}
|
|
2031
2031
|
|
|
2032
|
-
const VERSION$
|
|
2033
|
-
function validate$
|
|
2032
|
+
const VERSION$D = "c20b4853fc9dcf179a2b0f54d4b77be8";
|
|
2033
|
+
function validate$H(obj, path = 'ServiceResourceRepresentation') {
|
|
2034
2034
|
const v_error = (() => {
|
|
2035
2035
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2036
2036
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2052,10 +2052,10 @@ function validate$E(obj, path = 'ServiceResourceRepresentation') {
|
|
|
2052
2052
|
})();
|
|
2053
2053
|
return v_error === undefined ? null : v_error;
|
|
2054
2054
|
}
|
|
2055
|
-
const select$
|
|
2055
|
+
const select$S = function ServiceResourceRepresentationSelect() {
|
|
2056
2056
|
return {
|
|
2057
2057
|
kind: 'Fragment',
|
|
2058
|
-
version: VERSION$
|
|
2058
|
+
version: VERSION$D,
|
|
2059
2059
|
private: [],
|
|
2060
2060
|
selections: [
|
|
2061
2061
|
{
|
|
@@ -2071,7 +2071,7 @@ const select$O = function ServiceResourceRepresentationSelect() {
|
|
|
2071
2071
|
]
|
|
2072
2072
|
};
|
|
2073
2073
|
};
|
|
2074
|
-
function equals$
|
|
2074
|
+
function equals$D(existing, incoming) {
|
|
2075
2075
|
const existing_id = existing.id;
|
|
2076
2076
|
const incoming_id = incoming.id;
|
|
2077
2077
|
// if at least one of these optionals is defined
|
|
@@ -2101,8 +2101,8 @@ function equals$A(existing, incoming) {
|
|
|
2101
2101
|
return true;
|
|
2102
2102
|
}
|
|
2103
2103
|
|
|
2104
|
-
const VERSION$
|
|
2105
|
-
function validate$
|
|
2104
|
+
const VERSION$C = "ab6792274f598551855e829fe9222cd6";
|
|
2105
|
+
function validate$G(obj, path = 'GroupAppointmentResult') {
|
|
2106
2106
|
const v_error = (() => {
|
|
2107
2107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2108
2108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2110,7 +2110,7 @@ function validate$D(obj, path = 'GroupAppointmentResult') {
|
|
|
2110
2110
|
if (obj.appointmentChannel !== undefined) {
|
|
2111
2111
|
const obj_appointmentChannel = obj.appointmentChannel;
|
|
2112
2112
|
const path_appointmentChannel = path + '.appointmentChannel';
|
|
2113
|
-
const referencepath_appointmentChannelValidationError = validate$
|
|
2113
|
+
const referencepath_appointmentChannelValidationError = validate$J(obj_appointmentChannel, path_appointmentChannel);
|
|
2114
2114
|
if (referencepath_appointmentChannelValidationError !== null) {
|
|
2115
2115
|
let message = 'Object doesn\'t match AppointmentChannelRepresentation (at "' + path_appointmentChannel + '")\n';
|
|
2116
2116
|
message += referencepath_appointmentChannelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2161,7 +2161,7 @@ function validate$D(obj, path = 'GroupAppointmentResult') {
|
|
|
2161
2161
|
for (let i = 0; i < obj_extendedFields.length; i++) {
|
|
2162
2162
|
const obj_extendedFields_item = obj_extendedFields[i];
|
|
2163
2163
|
const path_extendedFields_item = path_extendedFields + '[' + i + ']';
|
|
2164
|
-
const referencepath_extendedFields_itemValidationError = validate$
|
|
2164
|
+
const referencepath_extendedFields_itemValidationError = validate$I(obj_extendedFields_item, path_extendedFields_item);
|
|
2165
2165
|
if (referencepath_extendedFields_itemValidationError !== null) {
|
|
2166
2166
|
let message = 'Object doesn\'t match ExtendedFieldsOutputRepresentation (at "' + path_extendedFields_item + '")\n';
|
|
2167
2167
|
message += referencepath_extendedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2179,7 +2179,7 @@ function validate$D(obj, path = 'GroupAppointmentResult') {
|
|
|
2179
2179
|
if (obj.resource !== undefined) {
|
|
2180
2180
|
const obj_resource = obj.resource;
|
|
2181
2181
|
const path_resource = path + '.resource';
|
|
2182
|
-
const referencepath_resourceValidationError = validate$
|
|
2182
|
+
const referencepath_resourceValidationError = validate$H(obj_resource, path_resource);
|
|
2183
2183
|
if (referencepath_resourceValidationError !== null) {
|
|
2184
2184
|
let message = 'Object doesn\'t match ServiceResourceRepresentation (at "' + path_resource + '")\n';
|
|
2185
2185
|
message += referencepath_resourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2203,7 +2203,7 @@ function validate$D(obj, path = 'GroupAppointmentResult') {
|
|
|
2203
2203
|
if (obj.workTypeGroup !== undefined) {
|
|
2204
2204
|
const obj_workTypeGroup = obj.workTypeGroup;
|
|
2205
2205
|
const path_workTypeGroup = path + '.workTypeGroup';
|
|
2206
|
-
const referencepath_workTypeGroupValidationError = validate$
|
|
2206
|
+
const referencepath_workTypeGroupValidationError = validate$T(obj_workTypeGroup, path_workTypeGroup);
|
|
2207
2207
|
if (referencepath_workTypeGroupValidationError !== null) {
|
|
2208
2208
|
let message = 'Object doesn\'t match WorkTypeGroupRepresentation (at "' + path_workTypeGroup + '")\n';
|
|
2209
2209
|
message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2220,14 +2220,14 @@ function validate$D(obj, path = 'GroupAppointmentResult') {
|
|
|
2220
2220
|
})();
|
|
2221
2221
|
return v_error === undefined ? null : v_error;
|
|
2222
2222
|
}
|
|
2223
|
-
const select$
|
|
2224
|
-
const { selections: AppointmentChannelRepresentation__selections, opaque: AppointmentChannelRepresentation__opaque, } = select$
|
|
2225
|
-
const { selections: ExtendedFieldsOutputRepresentation__selections, opaque: ExtendedFieldsOutputRepresentation__opaque, } = select$
|
|
2226
|
-
const { selections: ServiceResourceRepresentation__selections, opaque: ServiceResourceRepresentation__opaque, } = select$
|
|
2227
|
-
const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$
|
|
2223
|
+
const select$R = function GroupAppointmentResultSelect() {
|
|
2224
|
+
const { selections: AppointmentChannelRepresentation__selections, opaque: AppointmentChannelRepresentation__opaque, } = select$U();
|
|
2225
|
+
const { selections: ExtendedFieldsOutputRepresentation__selections, opaque: ExtendedFieldsOutputRepresentation__opaque, } = select$T();
|
|
2226
|
+
const { selections: ServiceResourceRepresentation__selections, opaque: ServiceResourceRepresentation__opaque, } = select$S();
|
|
2227
|
+
const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$16();
|
|
2228
2228
|
return {
|
|
2229
2229
|
kind: 'Fragment',
|
|
2230
|
-
version: VERSION$
|
|
2230
|
+
version: VERSION$C,
|
|
2231
2231
|
private: [],
|
|
2232
2232
|
selections: [
|
|
2233
2233
|
{
|
|
@@ -2303,7 +2303,7 @@ const select$N = function GroupAppointmentResultSelect() {
|
|
|
2303
2303
|
]
|
|
2304
2304
|
};
|
|
2305
2305
|
};
|
|
2306
|
-
function equals$
|
|
2306
|
+
function equals$C(existing, incoming) {
|
|
2307
2307
|
const existing_attendeeCount = existing.attendeeCount;
|
|
2308
2308
|
const incoming_attendeeCount = incoming.attendeeCount;
|
|
2309
2309
|
// if at least one of these optionals is defined
|
|
@@ -2430,7 +2430,7 @@ function equals$z(existing, incoming) {
|
|
|
2430
2430
|
if (existing_appointmentChannel === undefined || incoming_appointmentChannel === undefined) {
|
|
2431
2431
|
return false;
|
|
2432
2432
|
}
|
|
2433
|
-
if (!(equals$
|
|
2433
|
+
if (!(equals$F(existing_appointmentChannel, incoming_appointmentChannel))) {
|
|
2434
2434
|
return false;
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
@@ -2444,7 +2444,7 @@ function equals$z(existing, incoming) {
|
|
|
2444
2444
|
return false;
|
|
2445
2445
|
}
|
|
2446
2446
|
const equals_extendedFields_items = equalsArray(existing_extendedFields, incoming_extendedFields, (existing_extendedFields_item, incoming_extendedFields_item) => {
|
|
2447
|
-
if (!(equals$
|
|
2447
|
+
if (!(equals$E(existing_extendedFields_item, incoming_extendedFields_item))) {
|
|
2448
2448
|
return false;
|
|
2449
2449
|
}
|
|
2450
2450
|
});
|
|
@@ -2461,7 +2461,7 @@ function equals$z(existing, incoming) {
|
|
|
2461
2461
|
if (existing_resource === undefined || incoming_resource === undefined) {
|
|
2462
2462
|
return false;
|
|
2463
2463
|
}
|
|
2464
|
-
if (!(equals$
|
|
2464
|
+
if (!(equals$D(existing_resource, incoming_resource))) {
|
|
2465
2465
|
return false;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
@@ -2474,15 +2474,15 @@ function equals$z(existing, incoming) {
|
|
|
2474
2474
|
if (existing_workTypeGroup === undefined || incoming_workTypeGroup === undefined) {
|
|
2475
2475
|
return false;
|
|
2476
2476
|
}
|
|
2477
|
-
if (!(equals$
|
|
2477
|
+
if (!(equals$P(existing_workTypeGroup, incoming_workTypeGroup))) {
|
|
2478
2478
|
return false;
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
2481
|
return true;
|
|
2482
2482
|
}
|
|
2483
2483
|
|
|
2484
|
-
const VERSION$
|
|
2485
|
-
function validate$
|
|
2484
|
+
const VERSION$B = "285a28be083bf65a61201b367253b128";
|
|
2485
|
+
function validate$F(obj, path = 'GetGroupAppointmentsListResult') {
|
|
2486
2486
|
const v_error = (() => {
|
|
2487
2487
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2488
2488
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2495,7 +2495,7 @@ function validate$C(obj, path = 'GetGroupAppointmentsListResult') {
|
|
|
2495
2495
|
for (let i = 0; i < obj_groupAppointments.length; i++) {
|
|
2496
2496
|
const obj_groupAppointments_item = obj_groupAppointments[i];
|
|
2497
2497
|
const path_groupAppointments_item = path_groupAppointments + '[' + i + ']';
|
|
2498
|
-
const referencepath_groupAppointments_itemValidationError = validate$
|
|
2498
|
+
const referencepath_groupAppointments_itemValidationError = validate$G(obj_groupAppointments_item, path_groupAppointments_item);
|
|
2499
2499
|
if (referencepath_groupAppointments_itemValidationError !== null) {
|
|
2500
2500
|
let message = 'Object doesn\'t match GroupAppointmentResult (at "' + path_groupAppointments_item + '")\n';
|
|
2501
2501
|
message += referencepath_groupAppointments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2505,11 +2505,11 @@ function validate$C(obj, path = 'GetGroupAppointmentsListResult') {
|
|
|
2505
2505
|
})();
|
|
2506
2506
|
return v_error === undefined ? null : v_error;
|
|
2507
2507
|
}
|
|
2508
|
-
const select$
|
|
2509
|
-
const { selections: GroupAppointmentResult__selections, opaque: GroupAppointmentResult__opaque, } = select$
|
|
2508
|
+
const select$Q = function GetGroupAppointmentsListResultSelect() {
|
|
2509
|
+
const { selections: GroupAppointmentResult__selections, opaque: GroupAppointmentResult__opaque, } = select$R();
|
|
2510
2510
|
return {
|
|
2511
2511
|
kind: 'Fragment',
|
|
2512
|
-
version: VERSION$
|
|
2512
|
+
version: VERSION$B,
|
|
2513
2513
|
private: [],
|
|
2514
2514
|
selections: [
|
|
2515
2515
|
{
|
|
@@ -2521,11 +2521,11 @@ const select$M = function GetGroupAppointmentsListResultSelect() {
|
|
|
2521
2521
|
]
|
|
2522
2522
|
};
|
|
2523
2523
|
};
|
|
2524
|
-
function equals$
|
|
2524
|
+
function equals$B(existing, incoming) {
|
|
2525
2525
|
const existing_groupAppointments = existing.groupAppointments;
|
|
2526
2526
|
const incoming_groupAppointments = incoming.groupAppointments;
|
|
2527
2527
|
const equals_groupAppointments_items = equalsArray(existing_groupAppointments, incoming_groupAppointments, (existing_groupAppointments_item, incoming_groupAppointments_item) => {
|
|
2528
|
-
if (!(equals$
|
|
2528
|
+
if (!(equals$C(existing_groupAppointments_item, incoming_groupAppointments_item))) {
|
|
2529
2529
|
return false;
|
|
2530
2530
|
}
|
|
2531
2531
|
});
|
|
@@ -2535,15 +2535,15 @@ function equals$y(existing, incoming) {
|
|
|
2535
2535
|
return true;
|
|
2536
2536
|
}
|
|
2537
2537
|
|
|
2538
|
-
const VERSION$
|
|
2539
|
-
function validate$
|
|
2538
|
+
const VERSION$A = "dd808b5c4d7acc763844a203f7558772";
|
|
2539
|
+
function validate$E(obj, path = 'GetGroupAppointmentsOutputRepresentation') {
|
|
2540
2540
|
const v_error = (() => {
|
|
2541
2541
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2542
2542
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2543
2543
|
}
|
|
2544
2544
|
const obj_result = obj.result;
|
|
2545
2545
|
const path_result = path + '.result';
|
|
2546
|
-
const referencepath_resultValidationError = validate$
|
|
2546
|
+
const referencepath_resultValidationError = validate$F(obj_result, path_result);
|
|
2547
2547
|
if (referencepath_resultValidationError !== null) {
|
|
2548
2548
|
let message = 'Object doesn\'t match GetGroupAppointmentsListResult (at "' + path_result + '")\n';
|
|
2549
2549
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2552,15 +2552,15 @@ function validate$B(obj, path = 'GetGroupAppointmentsOutputRepresentation') {
|
|
|
2552
2552
|
})();
|
|
2553
2553
|
return v_error === undefined ? null : v_error;
|
|
2554
2554
|
}
|
|
2555
|
-
const RepresentationType$
|
|
2556
|
-
function normalize$
|
|
2555
|
+
const RepresentationType$g = 'GetGroupAppointmentsOutputRepresentation';
|
|
2556
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
2557
2557
|
return input;
|
|
2558
2558
|
}
|
|
2559
|
-
const select$
|
|
2560
|
-
const { selections: GetGroupAppointmentsListResult__selections, opaque: GetGroupAppointmentsListResult__opaque, } = select$
|
|
2559
|
+
const select$P = function GetGroupAppointmentsOutputRepresentationSelect() {
|
|
2560
|
+
const { selections: GetGroupAppointmentsListResult__selections, opaque: GetGroupAppointmentsListResult__opaque, } = select$Q();
|
|
2561
2561
|
return {
|
|
2562
2562
|
kind: 'Fragment',
|
|
2563
|
-
version: VERSION$
|
|
2563
|
+
version: VERSION$A,
|
|
2564
2564
|
private: [],
|
|
2565
2565
|
selections: [
|
|
2566
2566
|
{
|
|
@@ -2571,52 +2571,52 @@ const select$L = function GetGroupAppointmentsOutputRepresentationSelect() {
|
|
|
2571
2571
|
]
|
|
2572
2572
|
};
|
|
2573
2573
|
};
|
|
2574
|
-
function equals$
|
|
2574
|
+
function equals$A(existing, incoming) {
|
|
2575
2575
|
const existing_result = existing.result;
|
|
2576
2576
|
const incoming_result = incoming.result;
|
|
2577
|
-
if (!(equals$
|
|
2577
|
+
if (!(equals$B(existing_result, incoming_result))) {
|
|
2578
2578
|
return false;
|
|
2579
2579
|
}
|
|
2580
2580
|
return true;
|
|
2581
2581
|
}
|
|
2582
|
-
const ingest$
|
|
2582
|
+
const ingest$g = function GetGroupAppointmentsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2583
2583
|
if (process.env.NODE_ENV !== 'production') {
|
|
2584
|
-
const validateError = validate$
|
|
2584
|
+
const validateError = validate$E(input);
|
|
2585
2585
|
if (validateError !== null) {
|
|
2586
2586
|
throw validateError;
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
2589
|
const key = path.fullPath;
|
|
2590
2590
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
2591
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2591
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "IndustriesScheduler", VERSION$A, RepresentationType$g, equals$A);
|
|
2592
2592
|
return createLink(key);
|
|
2593
2593
|
};
|
|
2594
|
-
function getTypeCacheKeys$
|
|
2594
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
2595
2595
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2596
2596
|
const rootKey = fullPathFactory();
|
|
2597
2597
|
rootKeySet.set(rootKey, {
|
|
2598
2598
|
namespace: keyPrefix,
|
|
2599
|
-
representationName: RepresentationType$
|
|
2599
|
+
representationName: RepresentationType$g,
|
|
2600
2600
|
mergeable: false
|
|
2601
2601
|
});
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
|
-
function select$
|
|
2605
|
-
return select$
|
|
2604
|
+
function select$O(luvio, params) {
|
|
2605
|
+
return select$P();
|
|
2606
2606
|
}
|
|
2607
|
-
function keyBuilder$
|
|
2607
|
+
function keyBuilder$o(luvio, params) {
|
|
2608
2608
|
return keyPrefix + '::GetGroupAppointmentsOutputRepresentation:(' + (params.body.startTime === undefined ? 'startTime' : 'startTime:' + params.body.startTime) + '::' + (params.body.endTime === undefined ? 'endTime' : 'endTime:' + params.body.endTime) + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + '::' + (params.body.offset === undefined ? 'offset' : 'offset:' + params.body.offset) + '::' + (params.body.filterByWorkTypeGroups === undefined ? 'filterByWorkTypeGroups' : 'filterByWorkTypeGroups:' + params.body.filterByWorkTypeGroups) + '::' + (params.body.filterByWorkTypes === undefined ? 'filterByWorkTypes' : 'filterByWorkTypes:' + params.body.filterByWorkTypes) + '::' + (params.body.filterByParentRecords === undefined ? 'filterByParentRecords' : 'filterByParentRecords:' + params.body.filterByParentRecords) + '::' + (params.body.filterByTerritories === undefined ? 'filterByTerritories' : 'filterByTerritories:' + params.body.filterByTerritories) + '::' + (params.body.filterByResources === undefined ? 'filterByResources' : 'filterByResources:' + params.body.filterByResources) + '::' + (params.body.excludeAssociatedAppts === undefined ? 'excludeAssociatedAppts' : 'excludeAssociatedAppts:' + params.body.excludeAssociatedAppts) + '::' + (params.body.extendedFieldsToQuery === undefined ? 'extendedFieldsToQuery' : 'extendedFieldsToQuery:' + params.body.extendedFieldsToQuery) + ')';
|
|
2609
2609
|
}
|
|
2610
|
-
function getResponseCacheKeys$
|
|
2611
|
-
getTypeCacheKeys$
|
|
2610
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
2611
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$o(luvio, resourceParams));
|
|
2612
2612
|
}
|
|
2613
|
-
function ingestSuccess$
|
|
2613
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
2614
2614
|
const { body } = response;
|
|
2615
|
-
const key = keyBuilder$
|
|
2616
|
-
luvio.storeIngest(key, ingest$
|
|
2615
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
2616
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
2617
2617
|
const snapshot = luvio.storeLookup({
|
|
2618
2618
|
recordId: key,
|
|
2619
|
-
node: select$
|
|
2619
|
+
node: select$O(),
|
|
2620
2620
|
variables: {},
|
|
2621
2621
|
}, snapshotRefresh);
|
|
2622
2622
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2627,13 +2627,13 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2627
2627
|
deepFreeze(snapshot.data);
|
|
2628
2628
|
return snapshot;
|
|
2629
2629
|
}
|
|
2630
|
-
function ingestError$
|
|
2631
|
-
const key = keyBuilder$
|
|
2630
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
2631
|
+
const key = keyBuilder$o(luvio, params);
|
|
2632
2632
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2633
2633
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2634
2634
|
return errorSnapshot;
|
|
2635
2635
|
}
|
|
2636
|
-
function createResourceRequest$
|
|
2636
|
+
function createResourceRequest$e(config) {
|
|
2637
2637
|
const headers = {};
|
|
2638
2638
|
return {
|
|
2639
2639
|
baseUri: '/services/data/v62.0',
|
|
@@ -2647,7 +2647,7 @@ function createResourceRequest$d(config) {
|
|
|
2647
2647
|
};
|
|
2648
2648
|
}
|
|
2649
2649
|
|
|
2650
|
-
const adapterName$
|
|
2650
|
+
const adapterName$e = 'getGroupAppointments';
|
|
2651
2651
|
const getGroupAppointments_ConfigPropertyMetadata = [
|
|
2652
2652
|
generateParamConfigMetadata('startTime', false, 2 /* Body */, 0 /* String */),
|
|
2653
2653
|
generateParamConfigMetadata('endTime', false, 2 /* Body */, 0 /* String */),
|
|
@@ -2661,90 +2661,90 @@ const getGroupAppointments_ConfigPropertyMetadata = [
|
|
|
2661
2661
|
generateParamConfigMetadata('excludeAssociatedAppts', false, 2 /* Body */, 1 /* Boolean */),
|
|
2662
2662
|
generateParamConfigMetadata('extendedFieldsToQuery', false, 2 /* Body */, 0 /* String */, true),
|
|
2663
2663
|
];
|
|
2664
|
-
const getGroupAppointments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2665
|
-
const createResourceParams$
|
|
2666
|
-
function keyBuilder$
|
|
2667
|
-
const resourceParams = createResourceParams$
|
|
2668
|
-
return keyBuilder$
|
|
2664
|
+
const getGroupAppointments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getGroupAppointments_ConfigPropertyMetadata);
|
|
2665
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(getGroupAppointments_ConfigPropertyMetadata);
|
|
2666
|
+
function keyBuilder$n(luvio, config) {
|
|
2667
|
+
const resourceParams = createResourceParams$e(config);
|
|
2668
|
+
return keyBuilder$o(luvio, resourceParams);
|
|
2669
2669
|
}
|
|
2670
|
-
function typeCheckConfig$
|
|
2670
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
2671
2671
|
const config = {};
|
|
2672
|
-
typeCheckConfig$
|
|
2672
|
+
typeCheckConfig$j(untrustedConfig, config, getGroupAppointments_ConfigPropertyMetadata);
|
|
2673
2673
|
return config;
|
|
2674
2674
|
}
|
|
2675
|
-
function validateAdapterConfig$
|
|
2675
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
2676
2676
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2677
2677
|
return null;
|
|
2678
2678
|
}
|
|
2679
2679
|
if (process.env.NODE_ENV !== 'production') {
|
|
2680
2680
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2681
2681
|
}
|
|
2682
|
-
const config = typeCheckConfig$
|
|
2682
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
2683
2683
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2684
2684
|
return null;
|
|
2685
2685
|
}
|
|
2686
2686
|
return config;
|
|
2687
2687
|
}
|
|
2688
|
-
function adapterFragment$
|
|
2689
|
-
createResourceParams$
|
|
2690
|
-
return select$
|
|
2688
|
+
function adapterFragment$7(luvio, config) {
|
|
2689
|
+
createResourceParams$e(config);
|
|
2690
|
+
return select$O();
|
|
2691
2691
|
}
|
|
2692
|
-
function onFetchResponseSuccess$
|
|
2693
|
-
const snapshot = ingestSuccess$
|
|
2692
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
2693
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
2694
2694
|
config,
|
|
2695
|
-
resolve: () => buildNetworkSnapshot$
|
|
2695
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2696
2696
|
});
|
|
2697
2697
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2698
2698
|
}
|
|
2699
|
-
function onFetchResponseError$
|
|
2700
|
-
const snapshot = ingestError$
|
|
2699
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
2700
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
2701
2701
|
config,
|
|
2702
|
-
resolve: () => buildNetworkSnapshot$
|
|
2702
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2703
2703
|
});
|
|
2704
2704
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2705
2705
|
}
|
|
2706
|
-
function buildNetworkSnapshot$
|
|
2707
|
-
const resourceParams = createResourceParams$
|
|
2708
|
-
const request = createResourceRequest$
|
|
2706
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
2707
|
+
const resourceParams = createResourceParams$e(config);
|
|
2708
|
+
const request = createResourceRequest$e(resourceParams);
|
|
2709
2709
|
return luvio.dispatchResourceRequest(request, options)
|
|
2710
2710
|
.then((response) => {
|
|
2711
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2711
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
2712
2712
|
const cache = new StoreKeyMap();
|
|
2713
|
-
getResponseCacheKeys$
|
|
2713
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
2714
2714
|
return cache;
|
|
2715
2715
|
});
|
|
2716
2716
|
}, (response) => {
|
|
2717
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2717
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
2718
2718
|
});
|
|
2719
2719
|
}
|
|
2720
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2721
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2720
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
2721
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, 'get', false);
|
|
2722
2722
|
}
|
|
2723
|
-
function buildCachedSnapshotCachePolicy$
|
|
2723
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
2724
2724
|
const { luvio, config } = context;
|
|
2725
2725
|
const selector = {
|
|
2726
|
-
recordId: keyBuilder$
|
|
2727
|
-
node: adapterFragment$
|
|
2726
|
+
recordId: keyBuilder$n(luvio, config),
|
|
2727
|
+
node: adapterFragment$7(luvio, config),
|
|
2728
2728
|
variables: {},
|
|
2729
2729
|
};
|
|
2730
2730
|
const cacheSnapshot = storeLookup(selector, {
|
|
2731
2731
|
config,
|
|
2732
|
-
resolve: () => buildNetworkSnapshot$
|
|
2732
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2733
2733
|
});
|
|
2734
2734
|
return cacheSnapshot;
|
|
2735
2735
|
}
|
|
2736
2736
|
const getGroupAppointmentsAdapterFactory = (luvio) => function IndustriesScheduler__getGroupAppointments(untrustedConfig, requestContext) {
|
|
2737
|
-
const config = validateAdapterConfig$
|
|
2737
|
+
const config = validateAdapterConfig$e(untrustedConfig, getGroupAppointments_ConfigPropertyNames);
|
|
2738
2738
|
// Invalid or incomplete config
|
|
2739
2739
|
if (config === null) {
|
|
2740
2740
|
return null;
|
|
2741
2741
|
}
|
|
2742
2742
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2743
|
-
buildCachedSnapshotCachePolicy$
|
|
2743
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
2744
2744
|
};
|
|
2745
2745
|
|
|
2746
|
-
const VERSION$
|
|
2747
|
-
function validate$
|
|
2746
|
+
const VERSION$z = "235368820a5a56f542c7f4ecb4e2141c";
|
|
2747
|
+
function validate$D(obj, path = 'WaitlistServiceResourceWithWorkTypes') {
|
|
2748
2748
|
const v_error = (() => {
|
|
2749
2749
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2750
2750
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2779,10 +2779,10 @@ function validate$A(obj, path = 'WaitlistServiceResourceWithWorkTypes') {
|
|
|
2779
2779
|
})();
|
|
2780
2780
|
return v_error === undefined ? null : v_error;
|
|
2781
2781
|
}
|
|
2782
|
-
const select$
|
|
2782
|
+
const select$N = function WaitlistServiceResourceWithWorkTypesSelect() {
|
|
2783
2783
|
return {
|
|
2784
2784
|
kind: 'Fragment',
|
|
2785
|
-
version: VERSION$
|
|
2785
|
+
version: VERSION$z,
|
|
2786
2786
|
private: [],
|
|
2787
2787
|
selections: [
|
|
2788
2788
|
{
|
|
@@ -2805,7 +2805,7 @@ const select$J = function WaitlistServiceResourceWithWorkTypesSelect() {
|
|
|
2805
2805
|
]
|
|
2806
2806
|
};
|
|
2807
2807
|
};
|
|
2808
|
-
function equals$
|
|
2808
|
+
function equals$z(existing, incoming) {
|
|
2809
2809
|
const existing_id = existing.id;
|
|
2810
2810
|
const incoming_id = incoming.id;
|
|
2811
2811
|
if (!(existing_id === incoming_id)) {
|
|
@@ -2834,8 +2834,8 @@ function equals$w(existing, incoming) {
|
|
|
2834
2834
|
return true;
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
|
-
const VERSION$
|
|
2838
|
-
function validate$
|
|
2837
|
+
const VERSION$y = "9d573b064500fae0b4205231dae5af50";
|
|
2838
|
+
function validate$C(obj, path = 'WaitlistWorkTypeGroup') {
|
|
2839
2839
|
const v_error = (() => {
|
|
2840
2840
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2841
2841
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2857,10 +2857,10 @@ function validate$z(obj, path = 'WaitlistWorkTypeGroup') {
|
|
|
2857
2857
|
})();
|
|
2858
2858
|
return v_error === undefined ? null : v_error;
|
|
2859
2859
|
}
|
|
2860
|
-
const select$
|
|
2860
|
+
const select$M = function WaitlistWorkTypeGroupSelect() {
|
|
2861
2861
|
return {
|
|
2862
2862
|
kind: 'Fragment',
|
|
2863
|
-
version: VERSION$
|
|
2863
|
+
version: VERSION$y,
|
|
2864
2864
|
private: [],
|
|
2865
2865
|
selections: [
|
|
2866
2866
|
{
|
|
@@ -2876,7 +2876,7 @@ const select$I = function WaitlistWorkTypeGroupSelect() {
|
|
|
2876
2876
|
]
|
|
2877
2877
|
};
|
|
2878
2878
|
};
|
|
2879
|
-
function equals$
|
|
2879
|
+
function equals$y(existing, incoming) {
|
|
2880
2880
|
const existing_id = existing.id;
|
|
2881
2881
|
const incoming_id = incoming.id;
|
|
2882
2882
|
// if at least one of these optionals is defined
|
|
@@ -2906,8 +2906,8 @@ function equals$v(existing, incoming) {
|
|
|
2906
2906
|
return true;
|
|
2907
2907
|
}
|
|
2908
2908
|
|
|
2909
|
-
const VERSION$
|
|
2910
|
-
function validate$
|
|
2909
|
+
const VERSION$x = "30392f4c9c348c3e9081046d48f7bd4b";
|
|
2910
|
+
function validate$B(obj, path = 'GetNextWaitlistParticipantResult') {
|
|
2911
2911
|
const v_error = (() => {
|
|
2912
2912
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2913
2913
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2921,7 +2921,7 @@ function validate$y(obj, path = 'GetNextWaitlistParticipantResult') {
|
|
|
2921
2921
|
}
|
|
2922
2922
|
const obj_waitlistServiceResource = obj.waitlistServiceResource;
|
|
2923
2923
|
const path_waitlistServiceResource = path + '.waitlistServiceResource';
|
|
2924
|
-
const referencepath_waitlistServiceResourceValidationError = validate$
|
|
2924
|
+
const referencepath_waitlistServiceResourceValidationError = validate$D(obj_waitlistServiceResource, path_waitlistServiceResource);
|
|
2925
2925
|
if (referencepath_waitlistServiceResourceValidationError !== null) {
|
|
2926
2926
|
let message = 'Object doesn\'t match WaitlistServiceResourceWithWorkTypes (at "' + path_waitlistServiceResource + '")\n';
|
|
2927
2927
|
message += referencepath_waitlistServiceResourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2936,7 +2936,7 @@ function validate$y(obj, path = 'GetNextWaitlistParticipantResult') {
|
|
|
2936
2936
|
for (let i = 0; i < obj_workTypeGroups.length; i++) {
|
|
2937
2937
|
const obj_workTypeGroups_item = obj_workTypeGroups[i];
|
|
2938
2938
|
const path_workTypeGroups_item = path_workTypeGroups + '[' + i + ']';
|
|
2939
|
-
const referencepath_workTypeGroups_itemValidationError = validate$
|
|
2939
|
+
const referencepath_workTypeGroups_itemValidationError = validate$C(obj_workTypeGroups_item, path_workTypeGroups_item);
|
|
2940
2940
|
if (referencepath_workTypeGroups_itemValidationError !== null) {
|
|
2941
2941
|
let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroups_item + '")\n';
|
|
2942
2942
|
message += referencepath_workTypeGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2954,12 +2954,12 @@ function validate$y(obj, path = 'GetNextWaitlistParticipantResult') {
|
|
|
2954
2954
|
})();
|
|
2955
2955
|
return v_error === undefined ? null : v_error;
|
|
2956
2956
|
}
|
|
2957
|
-
const select$
|
|
2958
|
-
const { selections: WaitlistServiceResourceWithWorkTypes__selections, opaque: WaitlistServiceResourceWithWorkTypes__opaque, } = select$
|
|
2959
|
-
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$
|
|
2957
|
+
const select$L = function GetNextWaitlistParticipantResultSelect() {
|
|
2958
|
+
const { selections: WaitlistServiceResourceWithWorkTypes__selections, opaque: WaitlistServiceResourceWithWorkTypes__opaque, } = select$N();
|
|
2959
|
+
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$M();
|
|
2960
2960
|
return {
|
|
2961
2961
|
kind: 'Fragment',
|
|
2962
|
-
version: VERSION$
|
|
2962
|
+
version: VERSION$x,
|
|
2963
2963
|
private: [],
|
|
2964
2964
|
selections: [
|
|
2965
2965
|
{
|
|
@@ -2987,7 +2987,7 @@ const select$H = function GetNextWaitlistParticipantResultSelect() {
|
|
|
2987
2987
|
]
|
|
2988
2988
|
};
|
|
2989
2989
|
};
|
|
2990
|
-
function equals$
|
|
2990
|
+
function equals$x(existing, incoming) {
|
|
2991
2991
|
const existing_waitlistParticipantId = existing.waitlistParticipantId;
|
|
2992
2992
|
const incoming_waitlistParticipantId = incoming.waitlistParticipantId;
|
|
2993
2993
|
// if at least one of these optionals is defined
|
|
@@ -3016,7 +3016,7 @@ function equals$u(existing, incoming) {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
const existing_waitlistServiceResource = existing.waitlistServiceResource;
|
|
3018
3018
|
const incoming_waitlistServiceResource = incoming.waitlistServiceResource;
|
|
3019
|
-
if (!(equals$
|
|
3019
|
+
if (!(equals$z(existing_waitlistServiceResource, incoming_waitlistServiceResource))) {
|
|
3020
3020
|
return false;
|
|
3021
3021
|
}
|
|
3022
3022
|
const existing_workTypeGroups = existing.workTypeGroups;
|
|
@@ -3029,7 +3029,7 @@ function equals$u(existing, incoming) {
|
|
|
3029
3029
|
return false;
|
|
3030
3030
|
}
|
|
3031
3031
|
const equals_workTypeGroups_items = equalsArray(existing_workTypeGroups, incoming_workTypeGroups, (existing_workTypeGroups_item, incoming_workTypeGroups_item) => {
|
|
3032
|
-
if (!(equals$
|
|
3032
|
+
if (!(equals$y(existing_workTypeGroups_item, incoming_workTypeGroups_item))) {
|
|
3033
3033
|
return false;
|
|
3034
3034
|
}
|
|
3035
3035
|
});
|
|
@@ -3040,15 +3040,15 @@ function equals$u(existing, incoming) {
|
|
|
3040
3040
|
return true;
|
|
3041
3041
|
}
|
|
3042
3042
|
|
|
3043
|
-
const VERSION$
|
|
3044
|
-
function validate$
|
|
3043
|
+
const VERSION$w = "fdb3c9715f03c84992830bbcea4fb245";
|
|
3044
|
+
function validate$A(obj, path = 'GetNextWaitlistParticipantOutputRepresentation') {
|
|
3045
3045
|
const v_error = (() => {
|
|
3046
3046
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3047
3047
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3048
3048
|
}
|
|
3049
3049
|
const obj_result = obj.result;
|
|
3050
3050
|
const path_result = path + '.result';
|
|
3051
|
-
const referencepath_resultValidationError = validate$
|
|
3051
|
+
const referencepath_resultValidationError = validate$B(obj_result, path_result);
|
|
3052
3052
|
if (referencepath_resultValidationError !== null) {
|
|
3053
3053
|
let message = 'Object doesn\'t match GetNextWaitlistParticipantResult (at "' + path_result + '")\n';
|
|
3054
3054
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3057,15 +3057,15 @@ function validate$x(obj, path = 'GetNextWaitlistParticipantOutputRepresentation'
|
|
|
3057
3057
|
})();
|
|
3058
3058
|
return v_error === undefined ? null : v_error;
|
|
3059
3059
|
}
|
|
3060
|
-
const RepresentationType$
|
|
3061
|
-
function normalize$
|
|
3060
|
+
const RepresentationType$f = 'GetNextWaitlistParticipantOutputRepresentation';
|
|
3061
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
3062
3062
|
return input;
|
|
3063
3063
|
}
|
|
3064
|
-
const select$
|
|
3065
|
-
const { selections: GetNextWaitlistParticipantResult__selections, opaque: GetNextWaitlistParticipantResult__opaque, } = select$
|
|
3064
|
+
const select$K = function GetNextWaitlistParticipantOutputRepresentationSelect() {
|
|
3065
|
+
const { selections: GetNextWaitlistParticipantResult__selections, opaque: GetNextWaitlistParticipantResult__opaque, } = select$L();
|
|
3066
3066
|
return {
|
|
3067
3067
|
kind: 'Fragment',
|
|
3068
|
-
version: VERSION$
|
|
3068
|
+
version: VERSION$w,
|
|
3069
3069
|
private: [],
|
|
3070
3070
|
selections: [
|
|
3071
3071
|
{
|
|
@@ -3076,52 +3076,52 @@ const select$G = function GetNextWaitlistParticipantOutputRepresentationSelect()
|
|
|
3076
3076
|
]
|
|
3077
3077
|
};
|
|
3078
3078
|
};
|
|
3079
|
-
function equals$
|
|
3079
|
+
function equals$w(existing, incoming) {
|
|
3080
3080
|
const existing_result = existing.result;
|
|
3081
3081
|
const incoming_result = incoming.result;
|
|
3082
|
-
if (!(equals$
|
|
3082
|
+
if (!(equals$x(existing_result, incoming_result))) {
|
|
3083
3083
|
return false;
|
|
3084
3084
|
}
|
|
3085
3085
|
return true;
|
|
3086
3086
|
}
|
|
3087
|
-
const ingest$
|
|
3087
|
+
const ingest$f = function GetNextWaitlistParticipantOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3088
3088
|
if (process.env.NODE_ENV !== 'production') {
|
|
3089
|
-
const validateError = validate$
|
|
3089
|
+
const validateError = validate$A(input);
|
|
3090
3090
|
if (validateError !== null) {
|
|
3091
3091
|
throw validateError;
|
|
3092
3092
|
}
|
|
3093
3093
|
}
|
|
3094
3094
|
const key = path.fullPath;
|
|
3095
3095
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
3096
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3096
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "IndustriesScheduler", VERSION$w, RepresentationType$f, equals$w);
|
|
3097
3097
|
return createLink(key);
|
|
3098
3098
|
};
|
|
3099
|
-
function getTypeCacheKeys$
|
|
3099
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
3100
3100
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3101
3101
|
const rootKey = fullPathFactory();
|
|
3102
3102
|
rootKeySet.set(rootKey, {
|
|
3103
3103
|
namespace: keyPrefix,
|
|
3104
|
-
representationName: RepresentationType$
|
|
3104
|
+
representationName: RepresentationType$f,
|
|
3105
3105
|
mergeable: false
|
|
3106
3106
|
});
|
|
3107
3107
|
}
|
|
3108
3108
|
|
|
3109
|
-
function select$
|
|
3110
|
-
return select$
|
|
3109
|
+
function select$J(luvio, params) {
|
|
3110
|
+
return select$K();
|
|
3111
3111
|
}
|
|
3112
|
-
function keyBuilder$
|
|
3112
|
+
function keyBuilder$m(luvio, params) {
|
|
3113
3113
|
return keyPrefix + '::GetNextWaitlistParticipantOutputRepresentation:(' + 'userId:' + params.queryParams.userId + ')';
|
|
3114
3114
|
}
|
|
3115
|
-
function getResponseCacheKeys$
|
|
3116
|
-
getTypeCacheKeys$
|
|
3115
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
3116
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
3117
3117
|
}
|
|
3118
|
-
function ingestSuccess$
|
|
3118
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
3119
3119
|
const { body } = response;
|
|
3120
|
-
const key = keyBuilder$
|
|
3121
|
-
luvio.storeIngest(key, ingest$
|
|
3120
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
3121
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3122
3122
|
const snapshot = luvio.storeLookup({
|
|
3123
3123
|
recordId: key,
|
|
3124
|
-
node: select$
|
|
3124
|
+
node: select$J(),
|
|
3125
3125
|
variables: {},
|
|
3126
3126
|
}, snapshotRefresh);
|
|
3127
3127
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3132,13 +3132,13 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3132
3132
|
deepFreeze(snapshot.data);
|
|
3133
3133
|
return snapshot;
|
|
3134
3134
|
}
|
|
3135
|
-
function ingestError$
|
|
3136
|
-
const key = keyBuilder$
|
|
3135
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
3136
|
+
const key = keyBuilder$m(luvio, params);
|
|
3137
3137
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3138
3138
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3139
3139
|
return errorSnapshot;
|
|
3140
3140
|
}
|
|
3141
|
-
function createResourceRequest$
|
|
3141
|
+
function createResourceRequest$d(config) {
|
|
3142
3142
|
const headers = {};
|
|
3143
3143
|
return {
|
|
3144
3144
|
baseUri: '/services/data/v62.0',
|
|
@@ -3152,94 +3152,94 @@ function createResourceRequest$c(config) {
|
|
|
3152
3152
|
};
|
|
3153
3153
|
}
|
|
3154
3154
|
|
|
3155
|
-
const adapterName$
|
|
3155
|
+
const adapterName$d = 'getNextWaitlistParticipant';
|
|
3156
3156
|
const getNextWaitlistParticipant_ConfigPropertyMetadata = [
|
|
3157
3157
|
generateParamConfigMetadata('userId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3158
3158
|
];
|
|
3159
|
-
const getNextWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3160
|
-
const createResourceParams$
|
|
3161
|
-
function keyBuilder$
|
|
3162
|
-
const resourceParams = createResourceParams$
|
|
3163
|
-
return keyBuilder$
|
|
3159
|
+
const getNextWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
3160
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
3161
|
+
function keyBuilder$l(luvio, config) {
|
|
3162
|
+
const resourceParams = createResourceParams$d(config);
|
|
3163
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
3164
3164
|
}
|
|
3165
|
-
function typeCheckConfig$
|
|
3165
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3166
3166
|
const config = {};
|
|
3167
|
-
typeCheckConfig$
|
|
3167
|
+
typeCheckConfig$j(untrustedConfig, config, getNextWaitlistParticipant_ConfigPropertyMetadata);
|
|
3168
3168
|
return config;
|
|
3169
3169
|
}
|
|
3170
|
-
function validateAdapterConfig$
|
|
3170
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3171
3171
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3172
3172
|
return null;
|
|
3173
3173
|
}
|
|
3174
3174
|
if (process.env.NODE_ENV !== 'production') {
|
|
3175
3175
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3176
3176
|
}
|
|
3177
|
-
const config = typeCheckConfig$
|
|
3177
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3178
3178
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3179
3179
|
return null;
|
|
3180
3180
|
}
|
|
3181
3181
|
return config;
|
|
3182
3182
|
}
|
|
3183
|
-
function adapterFragment$
|
|
3184
|
-
createResourceParams$
|
|
3185
|
-
return select$
|
|
3183
|
+
function adapterFragment$6(luvio, config) {
|
|
3184
|
+
createResourceParams$d(config);
|
|
3185
|
+
return select$J();
|
|
3186
3186
|
}
|
|
3187
|
-
function onFetchResponseSuccess$
|
|
3188
|
-
const snapshot = ingestSuccess$
|
|
3187
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
3188
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
3189
3189
|
config,
|
|
3190
|
-
resolve: () => buildNetworkSnapshot$
|
|
3190
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3191
3191
|
});
|
|
3192
3192
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3193
3193
|
}
|
|
3194
|
-
function onFetchResponseError$
|
|
3195
|
-
const snapshot = ingestError$
|
|
3194
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
3195
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
3196
3196
|
config,
|
|
3197
|
-
resolve: () => buildNetworkSnapshot$
|
|
3197
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3198
3198
|
});
|
|
3199
3199
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3200
3200
|
}
|
|
3201
|
-
function buildNetworkSnapshot$
|
|
3202
|
-
const resourceParams = createResourceParams$
|
|
3203
|
-
const request = createResourceRequest$
|
|
3201
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
3202
|
+
const resourceParams = createResourceParams$d(config);
|
|
3203
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3204
3204
|
return luvio.dispatchResourceRequest(request, options)
|
|
3205
3205
|
.then((response) => {
|
|
3206
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3206
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
3207
3207
|
const cache = new StoreKeyMap();
|
|
3208
|
-
getResponseCacheKeys$
|
|
3208
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
3209
3209
|
return cache;
|
|
3210
3210
|
});
|
|
3211
3211
|
}, (response) => {
|
|
3212
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3212
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
3213
3213
|
});
|
|
3214
3214
|
}
|
|
3215
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3216
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3215
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
3216
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
3217
3217
|
}
|
|
3218
|
-
function buildCachedSnapshotCachePolicy$
|
|
3218
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
3219
3219
|
const { luvio, config } = context;
|
|
3220
3220
|
const selector = {
|
|
3221
|
-
recordId: keyBuilder$
|
|
3222
|
-
node: adapterFragment$
|
|
3221
|
+
recordId: keyBuilder$l(luvio, config),
|
|
3222
|
+
node: adapterFragment$6(luvio, config),
|
|
3223
3223
|
variables: {},
|
|
3224
3224
|
};
|
|
3225
3225
|
const cacheSnapshot = storeLookup(selector, {
|
|
3226
3226
|
config,
|
|
3227
|
-
resolve: () => buildNetworkSnapshot$
|
|
3227
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3228
3228
|
});
|
|
3229
3229
|
return cacheSnapshot;
|
|
3230
3230
|
}
|
|
3231
3231
|
const getNextWaitlistParticipantAdapterFactory = (luvio) => function IndustriesScheduler__getNextWaitlistParticipant(untrustedConfig, requestContext) {
|
|
3232
|
-
const config = validateAdapterConfig$
|
|
3232
|
+
const config = validateAdapterConfig$d(untrustedConfig, getNextWaitlistParticipant_ConfigPropertyNames);
|
|
3233
3233
|
// Invalid or incomplete config
|
|
3234
3234
|
if (config === null) {
|
|
3235
3235
|
return null;
|
|
3236
3236
|
}
|
|
3237
3237
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3238
|
-
buildCachedSnapshotCachePolicy$
|
|
3238
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
3239
3239
|
};
|
|
3240
3240
|
|
|
3241
|
-
const VERSION$
|
|
3242
|
-
function validate$
|
|
3241
|
+
const VERSION$v = "2ef071c700b84cba91e63e981e2eede7";
|
|
3242
|
+
function validate$z(obj, path = 'WaitlistServiceResource') {
|
|
3243
3243
|
const v_error = (() => {
|
|
3244
3244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3245
3245
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3261,10 +3261,10 @@ function validate$w(obj, path = 'WaitlistServiceResource') {
|
|
|
3261
3261
|
})();
|
|
3262
3262
|
return v_error === undefined ? null : v_error;
|
|
3263
3263
|
}
|
|
3264
|
-
const select$
|
|
3264
|
+
const select$I = function WaitlistServiceResourceSelect() {
|
|
3265
3265
|
return {
|
|
3266
3266
|
kind: 'Fragment',
|
|
3267
|
-
version: VERSION$
|
|
3267
|
+
version: VERSION$v,
|
|
3268
3268
|
private: [],
|
|
3269
3269
|
selections: [
|
|
3270
3270
|
{
|
|
@@ -3280,7 +3280,7 @@ const select$E = function WaitlistServiceResourceSelect() {
|
|
|
3280
3280
|
]
|
|
3281
3281
|
};
|
|
3282
3282
|
};
|
|
3283
|
-
function equals$
|
|
3283
|
+
function equals$v(existing, incoming) {
|
|
3284
3284
|
const existing_id = existing.id;
|
|
3285
3285
|
const incoming_id = incoming.id;
|
|
3286
3286
|
// if at least one of these optionals is defined
|
|
@@ -3310,8 +3310,8 @@ function equals$s(existing, incoming) {
|
|
|
3310
3310
|
return true;
|
|
3311
3311
|
}
|
|
3312
3312
|
|
|
3313
|
-
const VERSION$
|
|
3314
|
-
function validate$
|
|
3313
|
+
const VERSION$u = "94839138e6c7630a1a31cfdb12c02cf8";
|
|
3314
|
+
function validate$y(obj, path = 'ParticipantRecentInteractionsResult') {
|
|
3315
3315
|
const v_error = (() => {
|
|
3316
3316
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3317
3317
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3324,7 +3324,7 @@ function validate$v(obj, path = 'ParticipantRecentInteractionsResult') {
|
|
|
3324
3324
|
for (let i = 0; i < obj_serviceResources.length; i++) {
|
|
3325
3325
|
const obj_serviceResources_item = obj_serviceResources[i];
|
|
3326
3326
|
const path_serviceResources_item = path_serviceResources + '[' + i + ']';
|
|
3327
|
-
const referencepath_serviceResources_itemValidationError = validate$
|
|
3327
|
+
const referencepath_serviceResources_itemValidationError = validate$z(obj_serviceResources_item, path_serviceResources_item);
|
|
3328
3328
|
if (referencepath_serviceResources_itemValidationError !== null) {
|
|
3329
3329
|
let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResources_item + '")\n';
|
|
3330
3330
|
message += referencepath_serviceResources_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3334,11 +3334,11 @@ function validate$v(obj, path = 'ParticipantRecentInteractionsResult') {
|
|
|
3334
3334
|
})();
|
|
3335
3335
|
return v_error === undefined ? null : v_error;
|
|
3336
3336
|
}
|
|
3337
|
-
const select$
|
|
3338
|
-
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$
|
|
3337
|
+
const select$H = function ParticipantRecentInteractionsResultSelect() {
|
|
3338
|
+
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$I();
|
|
3339
3339
|
return {
|
|
3340
3340
|
kind: 'Fragment',
|
|
3341
|
-
version: VERSION$
|
|
3341
|
+
version: VERSION$u,
|
|
3342
3342
|
private: [],
|
|
3343
3343
|
selections: [
|
|
3344
3344
|
{
|
|
@@ -3350,11 +3350,11 @@ const select$D = function ParticipantRecentInteractionsResultSelect() {
|
|
|
3350
3350
|
]
|
|
3351
3351
|
};
|
|
3352
3352
|
};
|
|
3353
|
-
function equals$
|
|
3353
|
+
function equals$u(existing, incoming) {
|
|
3354
3354
|
const existing_serviceResources = existing.serviceResources;
|
|
3355
3355
|
const incoming_serviceResources = incoming.serviceResources;
|
|
3356
3356
|
const equals_serviceResources_items = equalsArray(existing_serviceResources, incoming_serviceResources, (existing_serviceResources_item, incoming_serviceResources_item) => {
|
|
3357
|
-
if (!(equals$
|
|
3357
|
+
if (!(equals$v(existing_serviceResources_item, incoming_serviceResources_item))) {
|
|
3358
3358
|
return false;
|
|
3359
3359
|
}
|
|
3360
3360
|
});
|
|
@@ -3364,15 +3364,15 @@ function equals$r(existing, incoming) {
|
|
|
3364
3364
|
return true;
|
|
3365
3365
|
}
|
|
3366
3366
|
|
|
3367
|
-
const VERSION$
|
|
3368
|
-
function validate$
|
|
3367
|
+
const VERSION$t = "24dc5bcc8caeafb90382a21924b4dda8";
|
|
3368
|
+
function validate$x(obj, path = 'ParticipantRecentInteractionsOutputRepresentation') {
|
|
3369
3369
|
const v_error = (() => {
|
|
3370
3370
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3371
3371
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3372
3372
|
}
|
|
3373
3373
|
const obj_result = obj.result;
|
|
3374
3374
|
const path_result = path + '.result';
|
|
3375
|
-
const referencepath_resultValidationError = validate$
|
|
3375
|
+
const referencepath_resultValidationError = validate$y(obj_result, path_result);
|
|
3376
3376
|
if (referencepath_resultValidationError !== null) {
|
|
3377
3377
|
let message = 'Object doesn\'t match ParticipantRecentInteractionsResult (at "' + path_result + '")\n';
|
|
3378
3378
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3381,15 +3381,15 @@ function validate$u(obj, path = 'ParticipantRecentInteractionsOutputRepresentati
|
|
|
3381
3381
|
})();
|
|
3382
3382
|
return v_error === undefined ? null : v_error;
|
|
3383
3383
|
}
|
|
3384
|
-
const RepresentationType$
|
|
3385
|
-
function normalize$
|
|
3384
|
+
const RepresentationType$e = 'ParticipantRecentInteractionsOutputRepresentation';
|
|
3385
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3386
3386
|
return input;
|
|
3387
3387
|
}
|
|
3388
|
-
const select$
|
|
3389
|
-
const { selections: ParticipantRecentInteractionsResult__selections, opaque: ParticipantRecentInteractionsResult__opaque, } = select$
|
|
3388
|
+
const select$G = function ParticipantRecentInteractionsOutputRepresentationSelect() {
|
|
3389
|
+
const { selections: ParticipantRecentInteractionsResult__selections, opaque: ParticipantRecentInteractionsResult__opaque, } = select$H();
|
|
3390
3390
|
return {
|
|
3391
3391
|
kind: 'Fragment',
|
|
3392
|
-
version: VERSION$
|
|
3392
|
+
version: VERSION$t,
|
|
3393
3393
|
private: [],
|
|
3394
3394
|
selections: [
|
|
3395
3395
|
{
|
|
@@ -3400,52 +3400,52 @@ const select$C = function ParticipantRecentInteractionsOutputRepresentationSelec
|
|
|
3400
3400
|
]
|
|
3401
3401
|
};
|
|
3402
3402
|
};
|
|
3403
|
-
function equals$
|
|
3403
|
+
function equals$t(existing, incoming) {
|
|
3404
3404
|
const existing_result = existing.result;
|
|
3405
3405
|
const incoming_result = incoming.result;
|
|
3406
|
-
if (!(equals$
|
|
3406
|
+
if (!(equals$u(existing_result, incoming_result))) {
|
|
3407
3407
|
return false;
|
|
3408
3408
|
}
|
|
3409
3409
|
return true;
|
|
3410
3410
|
}
|
|
3411
|
-
const ingest$
|
|
3411
|
+
const ingest$e = function ParticipantRecentInteractionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3412
3412
|
if (process.env.NODE_ENV !== 'production') {
|
|
3413
|
-
const validateError = validate$
|
|
3413
|
+
const validateError = validate$x(input);
|
|
3414
3414
|
if (validateError !== null) {
|
|
3415
3415
|
throw validateError;
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
const key = path.fullPath;
|
|
3419
3419
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
3420
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3420
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "IndustriesScheduler", VERSION$t, RepresentationType$e, equals$t);
|
|
3421
3421
|
return createLink(key);
|
|
3422
3422
|
};
|
|
3423
|
-
function getTypeCacheKeys$
|
|
3423
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
3424
3424
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3425
3425
|
const rootKey = fullPathFactory();
|
|
3426
3426
|
rootKeySet.set(rootKey, {
|
|
3427
3427
|
namespace: keyPrefix,
|
|
3428
|
-
representationName: RepresentationType$
|
|
3428
|
+
representationName: RepresentationType$e,
|
|
3429
3429
|
mergeable: false
|
|
3430
3430
|
});
|
|
3431
3431
|
}
|
|
3432
3432
|
|
|
3433
|
-
function select$
|
|
3434
|
-
return select$
|
|
3433
|
+
function select$F(luvio, params) {
|
|
3434
|
+
return select$G();
|
|
3435
3435
|
}
|
|
3436
|
-
function keyBuilder$
|
|
3436
|
+
function keyBuilder$k(luvio, params) {
|
|
3437
3437
|
return keyPrefix + '::ParticipantRecentInteractionsOutputRepresentation:(' + 'filterByResourceIds:' + params.queryParams.filterByResourceIds + ',' + 'participantId:' + params.queryParams.participantId + ',' + 'territoryId:' + params.queryParams.territoryId + ')';
|
|
3438
3438
|
}
|
|
3439
|
-
function getResponseCacheKeys$
|
|
3440
|
-
getTypeCacheKeys$
|
|
3439
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
3440
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
|
|
3441
3441
|
}
|
|
3442
|
-
function ingestSuccess$
|
|
3442
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
3443
3443
|
const { body } = response;
|
|
3444
|
-
const key = keyBuilder$
|
|
3445
|
-
luvio.storeIngest(key, ingest$
|
|
3444
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
3445
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3446
3446
|
const snapshot = luvio.storeLookup({
|
|
3447
3447
|
recordId: key,
|
|
3448
|
-
node: select$
|
|
3448
|
+
node: select$F(),
|
|
3449
3449
|
variables: {},
|
|
3450
3450
|
}, snapshotRefresh);
|
|
3451
3451
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3456,13 +3456,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3456
3456
|
deepFreeze(snapshot.data);
|
|
3457
3457
|
return snapshot;
|
|
3458
3458
|
}
|
|
3459
|
-
function ingestError$
|
|
3460
|
-
const key = keyBuilder$
|
|
3459
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
3460
|
+
const key = keyBuilder$k(luvio, params);
|
|
3461
3461
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3462
3462
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3463
3463
|
return errorSnapshot;
|
|
3464
3464
|
}
|
|
3465
|
-
function createResourceRequest$
|
|
3465
|
+
function createResourceRequest$c(config) {
|
|
3466
3466
|
const headers = {};
|
|
3467
3467
|
return {
|
|
3468
3468
|
baseUri: '/services/data/v62.0',
|
|
@@ -3476,96 +3476,96 @@ function createResourceRequest$b(config) {
|
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
|
|
3479
|
-
const adapterName$
|
|
3479
|
+
const adapterName$c = 'getParticipantRecentInteractions';
|
|
3480
3480
|
const getParticipantRecentInteractions_ConfigPropertyMetadata = [
|
|
3481
3481
|
generateParamConfigMetadata('filterByResourceIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3482
3482
|
generateParamConfigMetadata('participantId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3483
3483
|
generateParamConfigMetadata('territoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3484
3484
|
];
|
|
3485
|
-
const getParticipantRecentInteractions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3486
|
-
const createResourceParams$
|
|
3487
|
-
function keyBuilder$
|
|
3488
|
-
const resourceParams = createResourceParams$
|
|
3489
|
-
return keyBuilder$
|
|
3485
|
+
const getParticipantRecentInteractions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
3486
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
3487
|
+
function keyBuilder$j(luvio, config) {
|
|
3488
|
+
const resourceParams = createResourceParams$c(config);
|
|
3489
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
3490
3490
|
}
|
|
3491
|
-
function typeCheckConfig$
|
|
3491
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
3492
3492
|
const config = {};
|
|
3493
|
-
typeCheckConfig$
|
|
3493
|
+
typeCheckConfig$j(untrustedConfig, config, getParticipantRecentInteractions_ConfigPropertyMetadata);
|
|
3494
3494
|
return config;
|
|
3495
3495
|
}
|
|
3496
|
-
function validateAdapterConfig$
|
|
3496
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
3497
3497
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3498
3498
|
return null;
|
|
3499
3499
|
}
|
|
3500
3500
|
if (process.env.NODE_ENV !== 'production') {
|
|
3501
3501
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3502
3502
|
}
|
|
3503
|
-
const config = typeCheckConfig$
|
|
3503
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
3504
3504
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3505
3505
|
return null;
|
|
3506
3506
|
}
|
|
3507
3507
|
return config;
|
|
3508
3508
|
}
|
|
3509
|
-
function adapterFragment$
|
|
3510
|
-
createResourceParams$
|
|
3511
|
-
return select$
|
|
3509
|
+
function adapterFragment$5(luvio, config) {
|
|
3510
|
+
createResourceParams$c(config);
|
|
3511
|
+
return select$F();
|
|
3512
3512
|
}
|
|
3513
|
-
function onFetchResponseSuccess$
|
|
3514
|
-
const snapshot = ingestSuccess$
|
|
3513
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
3514
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
3515
3515
|
config,
|
|
3516
|
-
resolve: () => buildNetworkSnapshot$
|
|
3516
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
3517
3517
|
});
|
|
3518
3518
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3519
3519
|
}
|
|
3520
|
-
function onFetchResponseError$
|
|
3521
|
-
const snapshot = ingestError$
|
|
3520
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
3521
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
3522
3522
|
config,
|
|
3523
|
-
resolve: () => buildNetworkSnapshot$
|
|
3523
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
3524
3524
|
});
|
|
3525
3525
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3526
3526
|
}
|
|
3527
|
-
function buildNetworkSnapshot$
|
|
3528
|
-
const resourceParams = createResourceParams$
|
|
3529
|
-
const request = createResourceRequest$
|
|
3527
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
3528
|
+
const resourceParams = createResourceParams$c(config);
|
|
3529
|
+
const request = createResourceRequest$c(resourceParams);
|
|
3530
3530
|
return luvio.dispatchResourceRequest(request, options)
|
|
3531
3531
|
.then((response) => {
|
|
3532
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3532
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
3533
3533
|
const cache = new StoreKeyMap();
|
|
3534
|
-
getResponseCacheKeys$
|
|
3534
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
3535
3535
|
return cache;
|
|
3536
3536
|
});
|
|
3537
3537
|
}, (response) => {
|
|
3538
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3538
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
3539
3539
|
});
|
|
3540
3540
|
}
|
|
3541
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3542
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3541
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
3542
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
3543
3543
|
}
|
|
3544
|
-
function buildCachedSnapshotCachePolicy$
|
|
3544
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
3545
3545
|
const { luvio, config } = context;
|
|
3546
3546
|
const selector = {
|
|
3547
|
-
recordId: keyBuilder$
|
|
3548
|
-
node: adapterFragment$
|
|
3547
|
+
recordId: keyBuilder$j(luvio, config),
|
|
3548
|
+
node: adapterFragment$5(luvio, config),
|
|
3549
3549
|
variables: {},
|
|
3550
3550
|
};
|
|
3551
3551
|
const cacheSnapshot = storeLookup(selector, {
|
|
3552
3552
|
config,
|
|
3553
|
-
resolve: () => buildNetworkSnapshot$
|
|
3553
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
3554
3554
|
});
|
|
3555
3555
|
return cacheSnapshot;
|
|
3556
3556
|
}
|
|
3557
3557
|
const getParticipantRecentInteractionsAdapterFactory = (luvio) => function IndustriesScheduler__getParticipantRecentInteractions(untrustedConfig, requestContext) {
|
|
3558
|
-
const config = validateAdapterConfig$
|
|
3558
|
+
const config = validateAdapterConfig$c(untrustedConfig, getParticipantRecentInteractions_ConfigPropertyNames);
|
|
3559
3559
|
// Invalid or incomplete config
|
|
3560
3560
|
if (config === null) {
|
|
3561
3561
|
return null;
|
|
3562
3562
|
}
|
|
3563
3563
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3564
|
-
buildCachedSnapshotCachePolicy$
|
|
3564
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
3565
3565
|
};
|
|
3566
3566
|
|
|
3567
|
-
const VERSION$
|
|
3568
|
-
function validate$
|
|
3567
|
+
const VERSION$s = "d5db628ccd69eb00e87ff518e66c3467";
|
|
3568
|
+
function validate$w(obj, path = 'ServiceAppointmentAttendeeResult') {
|
|
3569
3569
|
const v_error = (() => {
|
|
3570
3570
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3571
3571
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3578,23 +3578,23 @@ function validate$t(obj, path = 'ServiceAppointmentAttendeeResult') {
|
|
|
3578
3578
|
})();
|
|
3579
3579
|
return v_error === undefined ? null : v_error;
|
|
3580
3580
|
}
|
|
3581
|
-
const RepresentationType$
|
|
3582
|
-
function keyBuilder$
|
|
3583
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3581
|
+
const RepresentationType$d = 'ServiceAppointmentAttendeeResult';
|
|
3582
|
+
function keyBuilder$i(luvio, config) {
|
|
3583
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.id;
|
|
3584
3584
|
}
|
|
3585
3585
|
function keyBuilderFromType$8(luvio, object) {
|
|
3586
3586
|
const keyParams = {
|
|
3587
3587
|
id: object.serviceAppointmentAttendeeId
|
|
3588
3588
|
};
|
|
3589
|
-
return keyBuilder$
|
|
3589
|
+
return keyBuilder$i(luvio, keyParams);
|
|
3590
3590
|
}
|
|
3591
|
-
function normalize$
|
|
3591
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
3592
3592
|
return input;
|
|
3593
3593
|
}
|
|
3594
|
-
const select$
|
|
3594
|
+
const select$E = function ServiceAppointmentAttendeeResultSelect() {
|
|
3595
3595
|
return {
|
|
3596
3596
|
kind: 'Fragment',
|
|
3597
|
-
version: VERSION$
|
|
3597
|
+
version: VERSION$s,
|
|
3598
3598
|
private: [],
|
|
3599
3599
|
selections: [
|
|
3600
3600
|
{
|
|
@@ -3604,7 +3604,7 @@ const select$A = function ServiceAppointmentAttendeeResultSelect() {
|
|
|
3604
3604
|
]
|
|
3605
3605
|
};
|
|
3606
3606
|
};
|
|
3607
|
-
function equals$
|
|
3607
|
+
function equals$s(existing, incoming) {
|
|
3608
3608
|
const existing_serviceAppointmentAttendeeId = existing.serviceAppointmentAttendeeId;
|
|
3609
3609
|
const incoming_serviceAppointmentAttendeeId = incoming.serviceAppointmentAttendeeId;
|
|
3610
3610
|
if (!(existing_serviceAppointmentAttendeeId === incoming_serviceAppointmentAttendeeId)) {
|
|
@@ -3612,30 +3612,30 @@ function equals$p(existing, incoming) {
|
|
|
3612
3612
|
}
|
|
3613
3613
|
return true;
|
|
3614
3614
|
}
|
|
3615
|
-
const ingest$
|
|
3615
|
+
const ingest$d = function ServiceAppointmentAttendeeResultIngest(input, path, luvio, store, timestamp) {
|
|
3616
3616
|
if (process.env.NODE_ENV !== 'production') {
|
|
3617
|
-
const validateError = validate$
|
|
3617
|
+
const validateError = validate$w(input);
|
|
3618
3618
|
if (validateError !== null) {
|
|
3619
3619
|
throw validateError;
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
3622
3622
|
const key = keyBuilderFromType$8(luvio, input);
|
|
3623
3623
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
3624
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3624
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "IndustriesScheduler", VERSION$s, RepresentationType$d, equals$s);
|
|
3625
3625
|
return createLink(key);
|
|
3626
3626
|
};
|
|
3627
|
-
function getTypeCacheKeys$
|
|
3627
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
3628
3628
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3629
3629
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
3630
3630
|
rootKeySet.set(rootKey, {
|
|
3631
3631
|
namespace: keyPrefix,
|
|
3632
|
-
representationName: RepresentationType$
|
|
3632
|
+
representationName: RepresentationType$d,
|
|
3633
3633
|
mergeable: false
|
|
3634
3634
|
});
|
|
3635
3635
|
}
|
|
3636
3636
|
|
|
3637
|
-
const VERSION$
|
|
3638
|
-
function validate$
|
|
3637
|
+
const VERSION$r = "5c5b3e37dfffc3539569033454c183b4";
|
|
3638
|
+
function validate$v(obj, path = 'ServiceAppointmentAttendeeOutputRepresentation') {
|
|
3639
3639
|
const v_error = (() => {
|
|
3640
3640
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3641
3641
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3648,20 +3648,20 @@ function validate$s(obj, path = 'ServiceAppointmentAttendeeOutputRepresentation'
|
|
|
3648
3648
|
})();
|
|
3649
3649
|
return v_error === undefined ? null : v_error;
|
|
3650
3650
|
}
|
|
3651
|
-
const RepresentationType$
|
|
3652
|
-
function keyBuilder$
|
|
3653
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3651
|
+
const RepresentationType$c = 'ServiceAppointmentAttendeeOutputRepresentation';
|
|
3652
|
+
function keyBuilder$h(luvio, config) {
|
|
3653
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
|
|
3654
3654
|
}
|
|
3655
3655
|
function keyBuilderFromType$7(luvio, object) {
|
|
3656
3656
|
const keyParams = {
|
|
3657
3657
|
id: object.result.serviceAppointmentAttendeeId
|
|
3658
3658
|
};
|
|
3659
|
-
return keyBuilder$
|
|
3659
|
+
return keyBuilder$h(luvio, keyParams);
|
|
3660
3660
|
}
|
|
3661
|
-
function normalize$
|
|
3661
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
3662
3662
|
const input_result = input.result;
|
|
3663
3663
|
const input_result_id = path.fullPath + '__result';
|
|
3664
|
-
input.result = ingest$
|
|
3664
|
+
input.result = ingest$d(input_result, {
|
|
3665
3665
|
fullPath: input_result_id,
|
|
3666
3666
|
propertyName: 'result',
|
|
3667
3667
|
parent: {
|
|
@@ -3673,21 +3673,21 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3673
3673
|
}, luvio, store, timestamp);
|
|
3674
3674
|
return input;
|
|
3675
3675
|
}
|
|
3676
|
-
const select$
|
|
3676
|
+
const select$D = function ServiceAppointmentAttendeeOutputRepresentationSelect() {
|
|
3677
3677
|
return {
|
|
3678
3678
|
kind: 'Fragment',
|
|
3679
|
-
version: VERSION$
|
|
3679
|
+
version: VERSION$r,
|
|
3680
3680
|
private: [],
|
|
3681
3681
|
selections: [
|
|
3682
3682
|
{
|
|
3683
3683
|
name: 'result',
|
|
3684
3684
|
kind: 'Link',
|
|
3685
|
-
fragment: select$
|
|
3685
|
+
fragment: select$E()
|
|
3686
3686
|
}
|
|
3687
3687
|
]
|
|
3688
3688
|
};
|
|
3689
3689
|
};
|
|
3690
|
-
function equals$
|
|
3690
|
+
function equals$r(existing, incoming) {
|
|
3691
3691
|
const existing_result = existing.result;
|
|
3692
3692
|
const incoming_result = incoming.result;
|
|
3693
3693
|
if (!(existing_result.__ref === incoming_result.__ref)) {
|
|
@@ -3695,42 +3695,42 @@ function equals$o(existing, incoming) {
|
|
|
3695
3695
|
}
|
|
3696
3696
|
return true;
|
|
3697
3697
|
}
|
|
3698
|
-
const ingest$
|
|
3698
|
+
const ingest$c = function ServiceAppointmentAttendeeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3699
3699
|
if (process.env.NODE_ENV !== 'production') {
|
|
3700
|
-
const validateError = validate$
|
|
3700
|
+
const validateError = validate$v(input);
|
|
3701
3701
|
if (validateError !== null) {
|
|
3702
3702
|
throw validateError;
|
|
3703
3703
|
}
|
|
3704
3704
|
}
|
|
3705
3705
|
const key = keyBuilderFromType$7(luvio, input);
|
|
3706
3706
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
3707
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3707
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "IndustriesScheduler", VERSION$r, RepresentationType$c, equals$r);
|
|
3708
3708
|
return createLink(key);
|
|
3709
3709
|
};
|
|
3710
|
-
function getTypeCacheKeys$
|
|
3710
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
3711
3711
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3712
3712
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
3713
3713
|
rootKeySet.set(rootKey, {
|
|
3714
3714
|
namespace: keyPrefix,
|
|
3715
|
-
representationName: RepresentationType$
|
|
3715
|
+
representationName: RepresentationType$c,
|
|
3716
3716
|
mergeable: false
|
|
3717
3717
|
});
|
|
3718
|
-
getTypeCacheKeys$
|
|
3718
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.result);
|
|
3719
3719
|
}
|
|
3720
3720
|
|
|
3721
|
-
function select$
|
|
3722
|
-
return select$
|
|
3721
|
+
function select$C(luvio, params) {
|
|
3722
|
+
return select$D();
|
|
3723
3723
|
}
|
|
3724
|
-
function getResponseCacheKeys$
|
|
3725
|
-
getTypeCacheKeys$
|
|
3724
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
3725
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
3726
3726
|
}
|
|
3727
|
-
function ingestSuccess$
|
|
3727
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
3728
3728
|
const { body } = response;
|
|
3729
3729
|
const key = keyBuilderFromType$7(luvio, body);
|
|
3730
|
-
luvio.storeIngest(key, ingest$
|
|
3730
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
3731
3731
|
const snapshot = luvio.storeLookup({
|
|
3732
3732
|
recordId: key,
|
|
3733
|
-
node: select$
|
|
3733
|
+
node: select$C(),
|
|
3734
3734
|
variables: {},
|
|
3735
3735
|
});
|
|
3736
3736
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3741,7 +3741,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
3741
3741
|
deepFreeze(snapshot.data);
|
|
3742
3742
|
return snapshot;
|
|
3743
3743
|
}
|
|
3744
|
-
function createResourceRequest$
|
|
3744
|
+
function createResourceRequest$b(config) {
|
|
3745
3745
|
const headers = {};
|
|
3746
3746
|
return {
|
|
3747
3747
|
baseUri: '/services/data/v62.0',
|
|
@@ -3755,24 +3755,24 @@ function createResourceRequest$a(config) {
|
|
|
3755
3755
|
};
|
|
3756
3756
|
}
|
|
3757
3757
|
|
|
3758
|
-
const adapterName$
|
|
3758
|
+
const adapterName$b = 'updateServiceAppointmentAttendee';
|
|
3759
3759
|
const updateServiceAppointmentAttendee_ConfigPropertyMetadata = [
|
|
3760
3760
|
generateParamConfigMetadata('serviceAppointmentAttendeeId', true, 2 /* Body */, 0 /* String */),
|
|
3761
3761
|
generateParamConfigMetadata('appointmentId', false, 2 /* Body */, 0 /* String */),
|
|
3762
3762
|
generateParamConfigMetadata('attendeeId', false, 2 /* Body */, 0 /* String */),
|
|
3763
3763
|
generateParamConfigMetadata('extendedFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3764
3764
|
];
|
|
3765
|
-
const updateServiceAppointmentAttendee_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3766
|
-
const createResourceParams$
|
|
3767
|
-
function typeCheckConfig$
|
|
3765
|
+
const updateServiceAppointmentAttendee_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateServiceAppointmentAttendee_ConfigPropertyMetadata);
|
|
3766
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(updateServiceAppointmentAttendee_ConfigPropertyMetadata);
|
|
3767
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
3768
3768
|
const config = {};
|
|
3769
|
-
typeCheckConfig$
|
|
3769
|
+
typeCheckConfig$j(untrustedConfig, config, updateServiceAppointmentAttendee_ConfigPropertyMetadata);
|
|
3770
3770
|
const untrustedConfig_extendedFields = untrustedConfig.extendedFields;
|
|
3771
3771
|
if (ArrayIsArray$1(untrustedConfig_extendedFields)) {
|
|
3772
3772
|
const untrustedConfig_extendedFields_array = [];
|
|
3773
3773
|
for (let i = 0, arrayLength = untrustedConfig_extendedFields.length; i < arrayLength; i++) {
|
|
3774
3774
|
const untrustedConfig_extendedFields_item = untrustedConfig_extendedFields[i];
|
|
3775
|
-
const referenceExtendedFieldsOutputRepresentationValidationError = validate$
|
|
3775
|
+
const referenceExtendedFieldsOutputRepresentationValidationError = validate$I(untrustedConfig_extendedFields_item);
|
|
3776
3776
|
if (referenceExtendedFieldsOutputRepresentationValidationError === null) {
|
|
3777
3777
|
untrustedConfig_extendedFields_array.push(untrustedConfig_extendedFields_item);
|
|
3778
3778
|
}
|
|
@@ -3781,30 +3781,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
3781
3781
|
}
|
|
3782
3782
|
return config;
|
|
3783
3783
|
}
|
|
3784
|
-
function validateAdapterConfig$
|
|
3784
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
3785
3785
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3786
3786
|
return null;
|
|
3787
3787
|
}
|
|
3788
3788
|
if (process.env.NODE_ENV !== 'production') {
|
|
3789
3789
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3790
3790
|
}
|
|
3791
|
-
const config = typeCheckConfig$
|
|
3791
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
3792
3792
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3793
3793
|
return null;
|
|
3794
3794
|
}
|
|
3795
3795
|
return config;
|
|
3796
3796
|
}
|
|
3797
|
-
function buildNetworkSnapshot$
|
|
3798
|
-
const resourceParams = createResourceParams$
|
|
3799
|
-
const request = createResourceRequest$
|
|
3797
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
3798
|
+
const resourceParams = createResourceParams$b(config);
|
|
3799
|
+
const request = createResourceRequest$b(resourceParams);
|
|
3800
3800
|
return luvio.dispatchResourceRequest(request, options)
|
|
3801
3801
|
.then((response) => {
|
|
3802
3802
|
return luvio.handleSuccessResponse(() => {
|
|
3803
|
-
const snapshot = ingestSuccess$
|
|
3803
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
3804
3804
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3805
3805
|
}, () => {
|
|
3806
3806
|
const cache = new StoreKeyMap();
|
|
3807
|
-
getResponseCacheKeys$
|
|
3807
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
3808
3808
|
return cache;
|
|
3809
3809
|
});
|
|
3810
3810
|
}, (response) => {
|
|
@@ -3814,28 +3814,28 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
3814
3814
|
}
|
|
3815
3815
|
const updateServiceAppointmentAttendeeAdapterFactory = (luvio) => {
|
|
3816
3816
|
return function updateServiceAppointmentAttendee(untrustedConfig) {
|
|
3817
|
-
const config = validateAdapterConfig$
|
|
3817
|
+
const config = validateAdapterConfig$b(untrustedConfig, updateServiceAppointmentAttendee_ConfigPropertyNames);
|
|
3818
3818
|
// Invalid or incomplete config
|
|
3819
3819
|
if (config === null) {
|
|
3820
3820
|
throw new Error('Invalid config for "updateServiceAppointmentAttendee"');
|
|
3821
3821
|
}
|
|
3822
|
-
return buildNetworkSnapshot$
|
|
3822
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
3823
3823
|
};
|
|
3824
3824
|
};
|
|
3825
3825
|
|
|
3826
|
-
function select$
|
|
3827
|
-
return select$
|
|
3826
|
+
function select$B(luvio, params) {
|
|
3827
|
+
return select$D();
|
|
3828
3828
|
}
|
|
3829
|
-
function getResponseCacheKeys$
|
|
3830
|
-
getTypeCacheKeys$
|
|
3829
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
3830
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
3831
3831
|
}
|
|
3832
|
-
function ingestSuccess$
|
|
3832
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
3833
3833
|
const { body } = response;
|
|
3834
3834
|
const key = keyBuilderFromType$7(luvio, body);
|
|
3835
|
-
luvio.storeIngest(key, ingest$
|
|
3835
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
3836
3836
|
const snapshot = luvio.storeLookup({
|
|
3837
3837
|
recordId: key,
|
|
3838
|
-
node: select$
|
|
3838
|
+
node: select$B(),
|
|
3839
3839
|
variables: {},
|
|
3840
3840
|
});
|
|
3841
3841
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3846,7 +3846,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
3846
3846
|
deepFreeze(snapshot.data);
|
|
3847
3847
|
return snapshot;
|
|
3848
3848
|
}
|
|
3849
|
-
function createResourceRequest$
|
|
3849
|
+
function createResourceRequest$a(config) {
|
|
3850
3850
|
const headers = {};
|
|
3851
3851
|
return {
|
|
3852
3852
|
baseUri: '/services/data/v62.0',
|
|
@@ -3860,23 +3860,23 @@ function createResourceRequest$9(config) {
|
|
|
3860
3860
|
};
|
|
3861
3861
|
}
|
|
3862
3862
|
|
|
3863
|
-
const adapterName$
|
|
3863
|
+
const adapterName$a = 'createServiceAppointmentAttendee';
|
|
3864
3864
|
const createServiceAppointmentAttendee_ConfigPropertyMetadata = [
|
|
3865
3865
|
generateParamConfigMetadata('appointmentId', true, 2 /* Body */, 0 /* String */),
|
|
3866
3866
|
generateParamConfigMetadata('attendeeId', true, 2 /* Body */, 0 /* String */),
|
|
3867
3867
|
generateParamConfigMetadata('extendedFields', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3868
3868
|
];
|
|
3869
|
-
const createServiceAppointmentAttendee_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3870
|
-
const createResourceParams$
|
|
3871
|
-
function typeCheckConfig$
|
|
3869
|
+
const createServiceAppointmentAttendee_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createServiceAppointmentAttendee_ConfigPropertyMetadata);
|
|
3870
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(createServiceAppointmentAttendee_ConfigPropertyMetadata);
|
|
3871
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
3872
3872
|
const config = {};
|
|
3873
|
-
typeCheckConfig$
|
|
3873
|
+
typeCheckConfig$j(untrustedConfig, config, createServiceAppointmentAttendee_ConfigPropertyMetadata);
|
|
3874
3874
|
const untrustedConfig_extendedFields = untrustedConfig.extendedFields;
|
|
3875
3875
|
if (ArrayIsArray$1(untrustedConfig_extendedFields)) {
|
|
3876
3876
|
const untrustedConfig_extendedFields_array = [];
|
|
3877
3877
|
for (let i = 0, arrayLength = untrustedConfig_extendedFields.length; i < arrayLength; i++) {
|
|
3878
3878
|
const untrustedConfig_extendedFields_item = untrustedConfig_extendedFields[i];
|
|
3879
|
-
const referenceExtendedFieldsOutputRepresentationValidationError = validate$
|
|
3879
|
+
const referenceExtendedFieldsOutputRepresentationValidationError = validate$I(untrustedConfig_extendedFields_item);
|
|
3880
3880
|
if (referenceExtendedFieldsOutputRepresentationValidationError === null) {
|
|
3881
3881
|
untrustedConfig_extendedFields_array.push(untrustedConfig_extendedFields_item);
|
|
3882
3882
|
}
|
|
@@ -3885,30 +3885,30 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
3885
3885
|
}
|
|
3886
3886
|
return config;
|
|
3887
3887
|
}
|
|
3888
|
-
function validateAdapterConfig$
|
|
3888
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
3889
3889
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3890
3890
|
return null;
|
|
3891
3891
|
}
|
|
3892
3892
|
if (process.env.NODE_ENV !== 'production') {
|
|
3893
3893
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3894
3894
|
}
|
|
3895
|
-
const config = typeCheckConfig$
|
|
3895
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
3896
3896
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3897
3897
|
return null;
|
|
3898
3898
|
}
|
|
3899
3899
|
return config;
|
|
3900
3900
|
}
|
|
3901
|
-
function buildNetworkSnapshot$
|
|
3902
|
-
const resourceParams = createResourceParams$
|
|
3903
|
-
const request = createResourceRequest$
|
|
3901
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
3902
|
+
const resourceParams = createResourceParams$a(config);
|
|
3903
|
+
const request = createResourceRequest$a(resourceParams);
|
|
3904
3904
|
return luvio.dispatchResourceRequest(request, options)
|
|
3905
3905
|
.then((response) => {
|
|
3906
3906
|
return luvio.handleSuccessResponse(() => {
|
|
3907
|
-
const snapshot = ingestSuccess$
|
|
3907
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
3908
3908
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3909
3909
|
}, () => {
|
|
3910
3910
|
const cache = new StoreKeyMap();
|
|
3911
|
-
getResponseCacheKeys$
|
|
3911
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
3912
3912
|
return cache;
|
|
3913
3913
|
});
|
|
3914
3914
|
}, (response) => {
|
|
@@ -3918,16 +3918,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
const createServiceAppointmentAttendeeAdapterFactory = (luvio) => {
|
|
3920
3920
|
return function createServiceAppointmentAttendee(untrustedConfig) {
|
|
3921
|
-
const config = validateAdapterConfig$
|
|
3921
|
+
const config = validateAdapterConfig$a(untrustedConfig, createServiceAppointmentAttendee_ConfigPropertyNames);
|
|
3922
3922
|
// Invalid or incomplete config
|
|
3923
3923
|
if (config === null) {
|
|
3924
3924
|
throw new Error('Invalid config for "createServiceAppointmentAttendee"');
|
|
3925
3925
|
}
|
|
3926
|
-
return buildNetworkSnapshot$
|
|
3926
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
3927
3927
|
};
|
|
3928
3928
|
};
|
|
3929
3929
|
|
|
3930
|
-
function validate$
|
|
3930
|
+
function validate$u(obj, path = 'UpdateServiceAppointmentInputRepresentation') {
|
|
3931
3931
|
const v_error = (() => {
|
|
3932
3932
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3933
3933
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3974,8 +3974,8 @@ function validate$r(obj, path = 'UpdateServiceAppointmentInputRepresentation') {
|
|
|
3974
3974
|
return v_error === undefined ? null : v_error;
|
|
3975
3975
|
}
|
|
3976
3976
|
|
|
3977
|
-
const VERSION$
|
|
3978
|
-
function validate$
|
|
3977
|
+
const VERSION$q = "2f0614d98c99215427524626e17e574b";
|
|
3978
|
+
function validate$t(obj, path = 'ServiceAppointmentResult') {
|
|
3979
3979
|
const v_error = (() => {
|
|
3980
3980
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3981
3981
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4007,23 +4007,23 @@ function validate$q(obj, path = 'ServiceAppointmentResult') {
|
|
|
4007
4007
|
})();
|
|
4008
4008
|
return v_error === undefined ? null : v_error;
|
|
4009
4009
|
}
|
|
4010
|
-
const RepresentationType$
|
|
4011
|
-
function keyBuilder$
|
|
4012
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4010
|
+
const RepresentationType$b = 'ServiceAppointmentResult';
|
|
4011
|
+
function keyBuilder$g(luvio, config) {
|
|
4012
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
4013
4013
|
}
|
|
4014
4014
|
function keyBuilderFromType$6(luvio, object) {
|
|
4015
4015
|
const keyParams = {
|
|
4016
4016
|
id: object.serviceAppointmentId
|
|
4017
4017
|
};
|
|
4018
|
-
return keyBuilder$
|
|
4018
|
+
return keyBuilder$g(luvio, keyParams);
|
|
4019
4019
|
}
|
|
4020
|
-
function normalize$
|
|
4020
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
4021
4021
|
return input;
|
|
4022
4022
|
}
|
|
4023
|
-
const select$
|
|
4023
|
+
const select$A = function ServiceAppointmentResultSelect() {
|
|
4024
4024
|
return {
|
|
4025
4025
|
kind: 'Fragment',
|
|
4026
|
-
version: VERSION$
|
|
4026
|
+
version: VERSION$q,
|
|
4027
4027
|
private: [],
|
|
4028
4028
|
selections: [
|
|
4029
4029
|
{
|
|
@@ -4043,7 +4043,7 @@ const select$w = function ServiceAppointmentResultSelect() {
|
|
|
4043
4043
|
]
|
|
4044
4044
|
};
|
|
4045
4045
|
};
|
|
4046
|
-
function equals$
|
|
4046
|
+
function equals$q(existing, incoming) {
|
|
4047
4047
|
const existing_parentRecordId = existing.parentRecordId;
|
|
4048
4048
|
const incoming_parentRecordId = incoming.parentRecordId;
|
|
4049
4049
|
// if at least one of these optionals is defined
|
|
@@ -4074,30 +4074,30 @@ function equals$n(existing, incoming) {
|
|
|
4074
4074
|
}
|
|
4075
4075
|
return true;
|
|
4076
4076
|
}
|
|
4077
|
-
const ingest$
|
|
4077
|
+
const ingest$b = function ServiceAppointmentResultIngest(input, path, luvio, store, timestamp) {
|
|
4078
4078
|
if (process.env.NODE_ENV !== 'production') {
|
|
4079
|
-
const validateError = validate$
|
|
4079
|
+
const validateError = validate$t(input);
|
|
4080
4080
|
if (validateError !== null) {
|
|
4081
4081
|
throw validateError;
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
4084
|
const key = keyBuilderFromType$6(luvio, input);
|
|
4085
4085
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
4086
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4086
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "IndustriesScheduler", VERSION$q, RepresentationType$b, equals$q);
|
|
4087
4087
|
return createLink(key);
|
|
4088
4088
|
};
|
|
4089
|
-
function getTypeCacheKeys$
|
|
4089
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
4090
4090
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4091
4091
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
4092
4092
|
rootKeySet.set(rootKey, {
|
|
4093
4093
|
namespace: keyPrefix,
|
|
4094
|
-
representationName: RepresentationType$
|
|
4094
|
+
representationName: RepresentationType$b,
|
|
4095
4095
|
mergeable: false
|
|
4096
4096
|
});
|
|
4097
4097
|
}
|
|
4098
4098
|
|
|
4099
|
-
const VERSION$
|
|
4100
|
-
function validate$
|
|
4099
|
+
const VERSION$p = "09b2befd1e1777ff063639379004b1b7";
|
|
4100
|
+
function validate$s(obj, path = 'ServiceAppointmentOutputRepresentation') {
|
|
4101
4101
|
const v_error = (() => {
|
|
4102
4102
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4103
4103
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4110,20 +4110,20 @@ function validate$p(obj, path = 'ServiceAppointmentOutputRepresentation') {
|
|
|
4110
4110
|
})();
|
|
4111
4111
|
return v_error === undefined ? null : v_error;
|
|
4112
4112
|
}
|
|
4113
|
-
const RepresentationType$
|
|
4114
|
-
function keyBuilder$
|
|
4115
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4113
|
+
const RepresentationType$a = 'ServiceAppointmentOutputRepresentation';
|
|
4114
|
+
function keyBuilder$f(luvio, config) {
|
|
4115
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.id;
|
|
4116
4116
|
}
|
|
4117
4117
|
function keyBuilderFromType$5(luvio, object) {
|
|
4118
4118
|
const keyParams = {
|
|
4119
4119
|
id: object.result.serviceAppointmentId
|
|
4120
4120
|
};
|
|
4121
|
-
return keyBuilder$
|
|
4121
|
+
return keyBuilder$f(luvio, keyParams);
|
|
4122
4122
|
}
|
|
4123
|
-
function normalize$
|
|
4123
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
4124
4124
|
const input_result = input.result;
|
|
4125
4125
|
const input_result_id = path.fullPath + '__result';
|
|
4126
|
-
input.result = ingest$
|
|
4126
|
+
input.result = ingest$b(input_result, {
|
|
4127
4127
|
fullPath: input_result_id,
|
|
4128
4128
|
propertyName: 'result',
|
|
4129
4129
|
parent: {
|
|
@@ -4135,21 +4135,21 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4135
4135
|
}, luvio, store, timestamp);
|
|
4136
4136
|
return input;
|
|
4137
4137
|
}
|
|
4138
|
-
const select$
|
|
4138
|
+
const select$z = function ServiceAppointmentOutputRepresentationSelect() {
|
|
4139
4139
|
return {
|
|
4140
4140
|
kind: 'Fragment',
|
|
4141
|
-
version: VERSION$
|
|
4141
|
+
version: VERSION$p,
|
|
4142
4142
|
private: [],
|
|
4143
4143
|
selections: [
|
|
4144
4144
|
{
|
|
4145
4145
|
name: 'result',
|
|
4146
4146
|
kind: 'Link',
|
|
4147
|
-
fragment: select$
|
|
4147
|
+
fragment: select$A()
|
|
4148
4148
|
}
|
|
4149
4149
|
]
|
|
4150
4150
|
};
|
|
4151
4151
|
};
|
|
4152
|
-
function equals$
|
|
4152
|
+
function equals$p(existing, incoming) {
|
|
4153
4153
|
const existing_result = existing.result;
|
|
4154
4154
|
const incoming_result = incoming.result;
|
|
4155
4155
|
if (!(existing_result.__ref === incoming_result.__ref)) {
|
|
@@ -4157,42 +4157,42 @@ function equals$m(existing, incoming) {
|
|
|
4157
4157
|
}
|
|
4158
4158
|
return true;
|
|
4159
4159
|
}
|
|
4160
|
-
const ingest$
|
|
4160
|
+
const ingest$a = function ServiceAppointmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4161
4161
|
if (process.env.NODE_ENV !== 'production') {
|
|
4162
|
-
const validateError = validate$
|
|
4162
|
+
const validateError = validate$s(input);
|
|
4163
4163
|
if (validateError !== null) {
|
|
4164
4164
|
throw validateError;
|
|
4165
4165
|
}
|
|
4166
4166
|
}
|
|
4167
4167
|
const key = keyBuilderFromType$5(luvio, input);
|
|
4168
4168
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
4169
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4169
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "IndustriesScheduler", VERSION$p, RepresentationType$a, equals$p);
|
|
4170
4170
|
return createLink(key);
|
|
4171
4171
|
};
|
|
4172
|
-
function getTypeCacheKeys$
|
|
4172
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
4173
4173
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4174
4174
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
4175
4175
|
rootKeySet.set(rootKey, {
|
|
4176
4176
|
namespace: keyPrefix,
|
|
4177
|
-
representationName: RepresentationType$
|
|
4177
|
+
representationName: RepresentationType$a,
|
|
4178
4178
|
mergeable: false
|
|
4179
4179
|
});
|
|
4180
|
-
getTypeCacheKeys$
|
|
4180
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.result);
|
|
4181
4181
|
}
|
|
4182
4182
|
|
|
4183
|
-
function select$
|
|
4184
|
-
return select$
|
|
4183
|
+
function select$y(luvio, params) {
|
|
4184
|
+
return select$z();
|
|
4185
4185
|
}
|
|
4186
|
-
function getResponseCacheKeys$
|
|
4187
|
-
getTypeCacheKeys$
|
|
4186
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
4187
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4188
4188
|
}
|
|
4189
|
-
function ingestSuccess$
|
|
4189
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
4190
4190
|
const { body } = response;
|
|
4191
4191
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4192
|
-
luvio.storeIngest(key, ingest$
|
|
4192
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
4193
4193
|
const snapshot = luvio.storeLookup({
|
|
4194
4194
|
recordId: key,
|
|
4195
|
-
node: select$
|
|
4195
|
+
node: select$y(),
|
|
4196
4196
|
variables: {},
|
|
4197
4197
|
});
|
|
4198
4198
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4203,7 +4203,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
4203
4203
|
deepFreeze(snapshot.data);
|
|
4204
4204
|
return snapshot;
|
|
4205
4205
|
}
|
|
4206
|
-
function createResourceRequest$
|
|
4206
|
+
function createResourceRequest$9(config) {
|
|
4207
4207
|
const headers = {};
|
|
4208
4208
|
return {
|
|
4209
4209
|
baseUri: '/services/data/v62.0',
|
|
@@ -4217,45 +4217,45 @@ function createResourceRequest$8(config) {
|
|
|
4217
4217
|
};
|
|
4218
4218
|
}
|
|
4219
4219
|
|
|
4220
|
-
const adapterName$
|
|
4220
|
+
const adapterName$9 = 'updateServiceAppointment';
|
|
4221
4221
|
const updateServiceAppointment_ConfigPropertyMetadata = [
|
|
4222
4222
|
generateParamConfigMetadata('updateServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4223
4223
|
];
|
|
4224
|
-
const updateServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4225
|
-
const createResourceParams$
|
|
4226
|
-
function typeCheckConfig$
|
|
4224
|
+
const updateServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, updateServiceAppointment_ConfigPropertyMetadata);
|
|
4225
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(updateServiceAppointment_ConfigPropertyMetadata);
|
|
4226
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
4227
4227
|
const config = {};
|
|
4228
4228
|
const untrustedConfig_updateServiceAppointmentInput = untrustedConfig.updateServiceAppointmentInput;
|
|
4229
|
-
const referenceUpdateServiceAppointmentInputRepresentationValidationError = validate$
|
|
4229
|
+
const referenceUpdateServiceAppointmentInputRepresentationValidationError = validate$u(untrustedConfig_updateServiceAppointmentInput);
|
|
4230
4230
|
if (referenceUpdateServiceAppointmentInputRepresentationValidationError === null) {
|
|
4231
4231
|
config.updateServiceAppointmentInput = untrustedConfig_updateServiceAppointmentInput;
|
|
4232
4232
|
}
|
|
4233
4233
|
return config;
|
|
4234
4234
|
}
|
|
4235
|
-
function validateAdapterConfig$
|
|
4235
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
4236
4236
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4237
4237
|
return null;
|
|
4238
4238
|
}
|
|
4239
4239
|
if (process.env.NODE_ENV !== 'production') {
|
|
4240
4240
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4241
4241
|
}
|
|
4242
|
-
const config = typeCheckConfig$
|
|
4242
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
4243
4243
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4244
4244
|
return null;
|
|
4245
4245
|
}
|
|
4246
4246
|
return config;
|
|
4247
4247
|
}
|
|
4248
|
-
function buildNetworkSnapshot$
|
|
4249
|
-
const resourceParams = createResourceParams$
|
|
4250
|
-
const request = createResourceRequest$
|
|
4248
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
4249
|
+
const resourceParams = createResourceParams$9(config);
|
|
4250
|
+
const request = createResourceRequest$9(resourceParams);
|
|
4251
4251
|
return luvio.dispatchResourceRequest(request, options)
|
|
4252
4252
|
.then((response) => {
|
|
4253
4253
|
return luvio.handleSuccessResponse(() => {
|
|
4254
|
-
const snapshot = ingestSuccess$
|
|
4254
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
4255
4255
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4256
4256
|
}, () => {
|
|
4257
4257
|
const cache = new StoreKeyMap();
|
|
4258
|
-
getResponseCacheKeys$
|
|
4258
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
4259
4259
|
return cache;
|
|
4260
4260
|
});
|
|
4261
4261
|
}, (response) => {
|
|
@@ -4265,16 +4265,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
const updateServiceAppointmentAdapterFactory = (luvio) => {
|
|
4267
4267
|
return function updateServiceAppointment(untrustedConfig) {
|
|
4268
|
-
const config = validateAdapterConfig$
|
|
4268
|
+
const config = validateAdapterConfig$9(untrustedConfig, updateServiceAppointment_ConfigPropertyNames);
|
|
4269
4269
|
// Invalid or incomplete config
|
|
4270
4270
|
if (config === null) {
|
|
4271
4271
|
throw new Error('Invalid config for "updateServiceAppointment"');
|
|
4272
4272
|
}
|
|
4273
|
-
return buildNetworkSnapshot$
|
|
4273
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
4274
4274
|
};
|
|
4275
4275
|
};
|
|
4276
4276
|
|
|
4277
|
-
function validate$
|
|
4277
|
+
function validate$r(obj, path = 'CreateServiceAppointmentInputRepresentation') {
|
|
4278
4278
|
const v_error = (() => {
|
|
4279
4279
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4280
4280
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4325,19 +4325,19 @@ function validate$o(obj, path = 'CreateServiceAppointmentInputRepresentation') {
|
|
|
4325
4325
|
return v_error === undefined ? null : v_error;
|
|
4326
4326
|
}
|
|
4327
4327
|
|
|
4328
|
-
function select$
|
|
4329
|
-
return select$
|
|
4328
|
+
function select$x(luvio, params) {
|
|
4329
|
+
return select$z();
|
|
4330
4330
|
}
|
|
4331
|
-
function getResponseCacheKeys$
|
|
4332
|
-
getTypeCacheKeys$
|
|
4331
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
4332
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
4333
4333
|
}
|
|
4334
|
-
function ingestSuccess$
|
|
4334
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
4335
4335
|
const { body } = response;
|
|
4336
4336
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4337
|
-
luvio.storeIngest(key, ingest$
|
|
4337
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
4338
4338
|
const snapshot = luvio.storeLookup({
|
|
4339
4339
|
recordId: key,
|
|
4340
|
-
node: select$
|
|
4340
|
+
node: select$x(),
|
|
4341
4341
|
variables: {},
|
|
4342
4342
|
});
|
|
4343
4343
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4348,7 +4348,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
4348
4348
|
deepFreeze(snapshot.data);
|
|
4349
4349
|
return snapshot;
|
|
4350
4350
|
}
|
|
4351
|
-
function createResourceRequest$
|
|
4351
|
+
function createResourceRequest$8(config) {
|
|
4352
4352
|
const headers = {};
|
|
4353
4353
|
return {
|
|
4354
4354
|
baseUri: '/services/data/v62.0',
|
|
@@ -4362,45 +4362,45 @@ function createResourceRequest$7(config) {
|
|
|
4362
4362
|
};
|
|
4363
4363
|
}
|
|
4364
4364
|
|
|
4365
|
-
const adapterName$
|
|
4365
|
+
const adapterName$8 = 'createServiceAppointment';
|
|
4366
4366
|
const createServiceAppointment_ConfigPropertyMetadata = [
|
|
4367
4367
|
generateParamConfigMetadata('createServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4368
4368
|
];
|
|
4369
|
-
const createServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4370
|
-
const createResourceParams$
|
|
4371
|
-
function typeCheckConfig$
|
|
4369
|
+
const createServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createServiceAppointment_ConfigPropertyMetadata);
|
|
4370
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(createServiceAppointment_ConfigPropertyMetadata);
|
|
4371
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
4372
4372
|
const config = {};
|
|
4373
4373
|
const untrustedConfig_createServiceAppointmentInput = untrustedConfig.createServiceAppointmentInput;
|
|
4374
|
-
const referenceCreateServiceAppointmentInputRepresentationValidationError = validate$
|
|
4374
|
+
const referenceCreateServiceAppointmentInputRepresentationValidationError = validate$r(untrustedConfig_createServiceAppointmentInput);
|
|
4375
4375
|
if (referenceCreateServiceAppointmentInputRepresentationValidationError === null) {
|
|
4376
4376
|
config.createServiceAppointmentInput = untrustedConfig_createServiceAppointmentInput;
|
|
4377
4377
|
}
|
|
4378
4378
|
return config;
|
|
4379
4379
|
}
|
|
4380
|
-
function validateAdapterConfig$
|
|
4380
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
4381
4381
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4382
4382
|
return null;
|
|
4383
4383
|
}
|
|
4384
4384
|
if (process.env.NODE_ENV !== 'production') {
|
|
4385
4385
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4386
4386
|
}
|
|
4387
|
-
const config = typeCheckConfig$
|
|
4387
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
4388
4388
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4389
4389
|
return null;
|
|
4390
4390
|
}
|
|
4391
4391
|
return config;
|
|
4392
4392
|
}
|
|
4393
|
-
function buildNetworkSnapshot$
|
|
4394
|
-
const resourceParams = createResourceParams$
|
|
4395
|
-
const request = createResourceRequest$
|
|
4393
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
4394
|
+
const resourceParams = createResourceParams$8(config);
|
|
4395
|
+
const request = createResourceRequest$8(resourceParams);
|
|
4396
4396
|
return luvio.dispatchResourceRequest(request, options)
|
|
4397
4397
|
.then((response) => {
|
|
4398
4398
|
return luvio.handleSuccessResponse(() => {
|
|
4399
|
-
const snapshot = ingestSuccess$
|
|
4399
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
4400
4400
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4401
4401
|
}, () => {
|
|
4402
4402
|
const cache = new StoreKeyMap();
|
|
4403
|
-
getResponseCacheKeys$
|
|
4403
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
4404
4404
|
return cache;
|
|
4405
4405
|
});
|
|
4406
4406
|
}, (response) => {
|
|
@@ -4410,67 +4410,500 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
4410
4410
|
}
|
|
4411
4411
|
const createServiceAppointmentAdapterFactory = (luvio) => {
|
|
4412
4412
|
return function createServiceAppointment(untrustedConfig) {
|
|
4413
|
-
const config = validateAdapterConfig$
|
|
4413
|
+
const config = validateAdapterConfig$8(untrustedConfig, createServiceAppointment_ConfigPropertyNames);
|
|
4414
4414
|
// Invalid or incomplete config
|
|
4415
4415
|
if (config === null) {
|
|
4416
4416
|
throw new Error('Invalid config for "createServiceAppointment"');
|
|
4417
4417
|
}
|
|
4418
|
-
return buildNetworkSnapshot$
|
|
4418
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
4419
4419
|
};
|
|
4420
4420
|
};
|
|
4421
4421
|
|
|
4422
|
-
const VERSION$
|
|
4423
|
-
function validate$
|
|
4422
|
+
const VERSION$o = "8314adcc205d8101123ce276fb7d933f";
|
|
4423
|
+
function validate$q(obj, path = 'DayCapacity') {
|
|
4424
4424
|
const v_error = (() => {
|
|
4425
4425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4426
4426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4427
4427
|
}
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4428
|
+
if (obj.capacity !== undefined) {
|
|
4429
|
+
const obj_capacity = obj.capacity;
|
|
4430
|
+
const path_capacity = path + '.capacity';
|
|
4431
|
+
if (typeof obj_capacity !== 'number' || (typeof obj_capacity === 'number' && Math.floor(obj_capacity) !== obj_capacity)) {
|
|
4432
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_capacity + '" (at "' + path_capacity + '")');
|
|
4433
|
+
}
|
|
4432
4434
|
}
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4435
|
+
if (obj.targetDate !== undefined) {
|
|
4436
|
+
const obj_targetDate = obj.targetDate;
|
|
4437
|
+
const path_targetDate = path + '.targetDate';
|
|
4438
|
+
if (typeof obj_targetDate !== 'string') {
|
|
4439
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetDate + '" (at "' + path_targetDate + '")');
|
|
4440
|
+
}
|
|
4437
4441
|
}
|
|
4438
4442
|
})();
|
|
4439
4443
|
return v_error === undefined ? null : v_error;
|
|
4440
4444
|
}
|
|
4441
|
-
const select$
|
|
4445
|
+
const select$w = function DayCapacitySelect() {
|
|
4442
4446
|
return {
|
|
4443
4447
|
kind: 'Fragment',
|
|
4444
|
-
version: VERSION$
|
|
4448
|
+
version: VERSION$o,
|
|
4445
4449
|
private: [],
|
|
4446
4450
|
selections: [
|
|
4447
4451
|
{
|
|
4448
4452
|
name: 'capacity',
|
|
4449
|
-
kind: 'Scalar'
|
|
4453
|
+
kind: 'Scalar',
|
|
4454
|
+
required: false
|
|
4450
4455
|
},
|
|
4451
4456
|
{
|
|
4452
|
-
name: '
|
|
4453
|
-
kind: 'Scalar'
|
|
4457
|
+
name: 'targetDate',
|
|
4458
|
+
kind: 'Scalar',
|
|
4459
|
+
required: false
|
|
4454
4460
|
}
|
|
4455
4461
|
]
|
|
4456
4462
|
};
|
|
4457
4463
|
};
|
|
4458
|
-
function equals$
|
|
4464
|
+
function equals$o(existing, incoming) {
|
|
4459
4465
|
const existing_capacity = existing.capacity;
|
|
4460
4466
|
const incoming_capacity = incoming.capacity;
|
|
4461
|
-
if
|
|
4467
|
+
// if at least one of these optionals is defined
|
|
4468
|
+
if (existing_capacity !== undefined || incoming_capacity !== undefined) {
|
|
4469
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4470
|
+
// not equal
|
|
4471
|
+
if (existing_capacity === undefined || incoming_capacity === undefined) {
|
|
4472
|
+
return false;
|
|
4473
|
+
}
|
|
4474
|
+
if (!(existing_capacity === incoming_capacity)) {
|
|
4475
|
+
return false;
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
const existing_targetDate = existing.targetDate;
|
|
4479
|
+
const incoming_targetDate = incoming.targetDate;
|
|
4480
|
+
// if at least one of these optionals is defined
|
|
4481
|
+
if (existing_targetDate !== undefined || incoming_targetDate !== undefined) {
|
|
4482
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4483
|
+
// not equal
|
|
4484
|
+
if (existing_targetDate === undefined || incoming_targetDate === undefined) {
|
|
4485
|
+
return false;
|
|
4486
|
+
}
|
|
4487
|
+
if (!(existing_targetDate === incoming_targetDate)) {
|
|
4488
|
+
return false;
|
|
4489
|
+
}
|
|
4490
|
+
}
|
|
4491
|
+
return true;
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4494
|
+
const VERSION$n = "e4fbf9648417d367eeb5e72d0cdcfeda";
|
|
4495
|
+
function validate$p(obj, path = 'ServiceResourceCapacity') {
|
|
4496
|
+
const v_error = (() => {
|
|
4497
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4498
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4499
|
+
}
|
|
4500
|
+
const obj_dayCapacityList = obj.dayCapacityList;
|
|
4501
|
+
const path_dayCapacityList = path + '.dayCapacityList';
|
|
4502
|
+
if (!ArrayIsArray(obj_dayCapacityList)) {
|
|
4503
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dayCapacityList + '" (at "' + path_dayCapacityList + '")');
|
|
4504
|
+
}
|
|
4505
|
+
for (let i = 0; i < obj_dayCapacityList.length; i++) {
|
|
4506
|
+
const obj_dayCapacityList_item = obj_dayCapacityList[i];
|
|
4507
|
+
const path_dayCapacityList_item = path_dayCapacityList + '[' + i + ']';
|
|
4508
|
+
const referencepath_dayCapacityList_itemValidationError = validate$q(obj_dayCapacityList_item, path_dayCapacityList_item);
|
|
4509
|
+
if (referencepath_dayCapacityList_itemValidationError !== null) {
|
|
4510
|
+
let message = 'Object doesn\'t match DayCapacity (at "' + path_dayCapacityList_item + '")\n';
|
|
4511
|
+
message += referencepath_dayCapacityList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4512
|
+
return new TypeError(message);
|
|
4513
|
+
}
|
|
4514
|
+
}
|
|
4515
|
+
if (obj.serviceTerritoryId !== undefined) {
|
|
4516
|
+
const obj_serviceTerritoryId = obj.serviceTerritoryId;
|
|
4517
|
+
const path_serviceTerritoryId = path + '.serviceTerritoryId';
|
|
4518
|
+
if (typeof obj_serviceTerritoryId !== 'string') {
|
|
4519
|
+
return new TypeError('Expected "string" but received "' + typeof obj_serviceTerritoryId + '" (at "' + path_serviceTerritoryId + '")');
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4522
|
+
if (obj.serviceTerritoryName !== undefined) {
|
|
4523
|
+
const obj_serviceTerritoryName = obj.serviceTerritoryName;
|
|
4524
|
+
const path_serviceTerritoryName = path + '.serviceTerritoryName';
|
|
4525
|
+
if (typeof obj_serviceTerritoryName !== 'string') {
|
|
4526
|
+
return new TypeError('Expected "string" but received "' + typeof obj_serviceTerritoryName + '" (at "' + path_serviceTerritoryName + '")');
|
|
4527
|
+
}
|
|
4528
|
+
}
|
|
4529
|
+
if (obj.workTypeId !== undefined) {
|
|
4530
|
+
const obj_workTypeId = obj.workTypeId;
|
|
4531
|
+
const path_workTypeId = path + '.workTypeId';
|
|
4532
|
+
if (typeof obj_workTypeId !== 'string') {
|
|
4533
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workTypeId + '" (at "' + path_workTypeId + '")');
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4536
|
+
if (obj.workTypeName !== undefined) {
|
|
4537
|
+
const obj_workTypeName = obj.workTypeName;
|
|
4538
|
+
const path_workTypeName = path + '.workTypeName';
|
|
4539
|
+
if (typeof obj_workTypeName !== 'string') {
|
|
4540
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workTypeName + '" (at "' + path_workTypeName + '")');
|
|
4541
|
+
}
|
|
4542
|
+
}
|
|
4543
|
+
})();
|
|
4544
|
+
return v_error === undefined ? null : v_error;
|
|
4545
|
+
}
|
|
4546
|
+
const select$v = function ServiceResourceCapacitySelect() {
|
|
4547
|
+
const { selections: DayCapacity__selections, opaque: DayCapacity__opaque, } = select$w();
|
|
4548
|
+
return {
|
|
4549
|
+
kind: 'Fragment',
|
|
4550
|
+
version: VERSION$n,
|
|
4551
|
+
private: [],
|
|
4552
|
+
selections: [
|
|
4553
|
+
{
|
|
4554
|
+
name: 'dayCapacityList',
|
|
4555
|
+
kind: 'Object',
|
|
4556
|
+
plural: true,
|
|
4557
|
+
selections: DayCapacity__selections
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
name: 'serviceTerritoryId',
|
|
4561
|
+
kind: 'Scalar',
|
|
4562
|
+
required: false
|
|
4563
|
+
},
|
|
4564
|
+
{
|
|
4565
|
+
name: 'serviceTerritoryName',
|
|
4566
|
+
kind: 'Scalar',
|
|
4567
|
+
required: false
|
|
4568
|
+
},
|
|
4569
|
+
{
|
|
4570
|
+
name: 'workTypeId',
|
|
4571
|
+
kind: 'Scalar',
|
|
4572
|
+
required: false
|
|
4573
|
+
},
|
|
4574
|
+
{
|
|
4575
|
+
name: 'workTypeName',
|
|
4576
|
+
kind: 'Scalar',
|
|
4577
|
+
required: false
|
|
4578
|
+
}
|
|
4579
|
+
]
|
|
4580
|
+
};
|
|
4581
|
+
};
|
|
4582
|
+
function equals$n(existing, incoming) {
|
|
4583
|
+
const existing_serviceTerritoryId = existing.serviceTerritoryId;
|
|
4584
|
+
const incoming_serviceTerritoryId = incoming.serviceTerritoryId;
|
|
4585
|
+
// if at least one of these optionals is defined
|
|
4586
|
+
if (existing_serviceTerritoryId !== undefined || incoming_serviceTerritoryId !== undefined) {
|
|
4587
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4588
|
+
// not equal
|
|
4589
|
+
if (existing_serviceTerritoryId === undefined || incoming_serviceTerritoryId === undefined) {
|
|
4590
|
+
return false;
|
|
4591
|
+
}
|
|
4592
|
+
if (!(existing_serviceTerritoryId === incoming_serviceTerritoryId)) {
|
|
4593
|
+
return false;
|
|
4594
|
+
}
|
|
4595
|
+
}
|
|
4596
|
+
const existing_serviceTerritoryName = existing.serviceTerritoryName;
|
|
4597
|
+
const incoming_serviceTerritoryName = incoming.serviceTerritoryName;
|
|
4598
|
+
// if at least one of these optionals is defined
|
|
4599
|
+
if (existing_serviceTerritoryName !== undefined || incoming_serviceTerritoryName !== undefined) {
|
|
4600
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4601
|
+
// not equal
|
|
4602
|
+
if (existing_serviceTerritoryName === undefined || incoming_serviceTerritoryName === undefined) {
|
|
4603
|
+
return false;
|
|
4604
|
+
}
|
|
4605
|
+
if (!(existing_serviceTerritoryName === incoming_serviceTerritoryName)) {
|
|
4606
|
+
return false;
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
const existing_workTypeId = existing.workTypeId;
|
|
4610
|
+
const incoming_workTypeId = incoming.workTypeId;
|
|
4611
|
+
// if at least one of these optionals is defined
|
|
4612
|
+
if (existing_workTypeId !== undefined || incoming_workTypeId !== undefined) {
|
|
4613
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4614
|
+
// not equal
|
|
4615
|
+
if (existing_workTypeId === undefined || incoming_workTypeId === undefined) {
|
|
4616
|
+
return false;
|
|
4617
|
+
}
|
|
4618
|
+
if (!(existing_workTypeId === incoming_workTypeId)) {
|
|
4619
|
+
return false;
|
|
4620
|
+
}
|
|
4621
|
+
}
|
|
4622
|
+
const existing_workTypeName = existing.workTypeName;
|
|
4623
|
+
const incoming_workTypeName = incoming.workTypeName;
|
|
4624
|
+
// if at least one of these optionals is defined
|
|
4625
|
+
if (existing_workTypeName !== undefined || incoming_workTypeName !== undefined) {
|
|
4626
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4627
|
+
// not equal
|
|
4628
|
+
if (existing_workTypeName === undefined || incoming_workTypeName === undefined) {
|
|
4629
|
+
return false;
|
|
4630
|
+
}
|
|
4631
|
+
if (!(existing_workTypeName === incoming_workTypeName)) {
|
|
4632
|
+
return false;
|
|
4633
|
+
}
|
|
4634
|
+
}
|
|
4635
|
+
const existing_dayCapacityList = existing.dayCapacityList;
|
|
4636
|
+
const incoming_dayCapacityList = incoming.dayCapacityList;
|
|
4637
|
+
const equals_dayCapacityList_items = equalsArray(existing_dayCapacityList, incoming_dayCapacityList, (existing_dayCapacityList_item, incoming_dayCapacityList_item) => {
|
|
4638
|
+
if (!(equals$o(existing_dayCapacityList_item, incoming_dayCapacityList_item))) {
|
|
4639
|
+
return false;
|
|
4640
|
+
}
|
|
4641
|
+
});
|
|
4642
|
+
if (equals_dayCapacityList_items === false) {
|
|
4462
4643
|
return false;
|
|
4463
4644
|
}
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4645
|
+
return true;
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
const VERSION$m = "f62368e507c7195fd023290021f643d4";
|
|
4649
|
+
function validate$o(obj, path = 'ServiceResourceCapacityListResult') {
|
|
4650
|
+
const v_error = (() => {
|
|
4651
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4652
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4653
|
+
}
|
|
4654
|
+
const obj_serviceResourceCapacityListResult = obj.serviceResourceCapacityListResult;
|
|
4655
|
+
const path_serviceResourceCapacityListResult = path + '.serviceResourceCapacityListResult';
|
|
4656
|
+
if (!ArrayIsArray(obj_serviceResourceCapacityListResult)) {
|
|
4657
|
+
return new TypeError('Expected "array" but received "' + typeof obj_serviceResourceCapacityListResult + '" (at "' + path_serviceResourceCapacityListResult + '")');
|
|
4658
|
+
}
|
|
4659
|
+
for (let i = 0; i < obj_serviceResourceCapacityListResult.length; i++) {
|
|
4660
|
+
const obj_serviceResourceCapacityListResult_item = obj_serviceResourceCapacityListResult[i];
|
|
4661
|
+
const path_serviceResourceCapacityListResult_item = path_serviceResourceCapacityListResult + '[' + i + ']';
|
|
4662
|
+
const referencepath_serviceResourceCapacityListResult_itemValidationError = validate$p(obj_serviceResourceCapacityListResult_item, path_serviceResourceCapacityListResult_item);
|
|
4663
|
+
if (referencepath_serviceResourceCapacityListResult_itemValidationError !== null) {
|
|
4664
|
+
let message = 'Object doesn\'t match ServiceResourceCapacity (at "' + path_serviceResourceCapacityListResult_item + '")\n';
|
|
4665
|
+
message += referencepath_serviceResourceCapacityListResult_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4666
|
+
return new TypeError(message);
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
})();
|
|
4670
|
+
return v_error === undefined ? null : v_error;
|
|
4671
|
+
}
|
|
4672
|
+
const select$u = function ServiceResourceCapacityListResultSelect() {
|
|
4673
|
+
const { selections: ServiceResourceCapacity__selections, opaque: ServiceResourceCapacity__opaque, } = select$v();
|
|
4674
|
+
return {
|
|
4675
|
+
kind: 'Fragment',
|
|
4676
|
+
version: VERSION$m,
|
|
4677
|
+
private: [],
|
|
4678
|
+
selections: [
|
|
4679
|
+
{
|
|
4680
|
+
name: 'serviceResourceCapacityListResult',
|
|
4681
|
+
kind: 'Object',
|
|
4682
|
+
plural: true,
|
|
4683
|
+
selections: ServiceResourceCapacity__selections
|
|
4684
|
+
}
|
|
4685
|
+
]
|
|
4686
|
+
};
|
|
4687
|
+
};
|
|
4688
|
+
function equals$m(existing, incoming) {
|
|
4689
|
+
const existing_serviceResourceCapacityListResult = existing.serviceResourceCapacityListResult;
|
|
4690
|
+
const incoming_serviceResourceCapacityListResult = incoming.serviceResourceCapacityListResult;
|
|
4691
|
+
const equals_serviceResourceCapacityListResult_items = equalsArray(existing_serviceResourceCapacityListResult, incoming_serviceResourceCapacityListResult, (existing_serviceResourceCapacityListResult_item, incoming_serviceResourceCapacityListResult_item) => {
|
|
4692
|
+
if (!(equals$n(existing_serviceResourceCapacityListResult_item, incoming_serviceResourceCapacityListResult_item))) {
|
|
4693
|
+
return false;
|
|
4694
|
+
}
|
|
4695
|
+
});
|
|
4696
|
+
if (equals_serviceResourceCapacityListResult_items === false) {
|
|
4697
|
+
return false;
|
|
4698
|
+
}
|
|
4699
|
+
return true;
|
|
4700
|
+
}
|
|
4701
|
+
|
|
4702
|
+
const VERSION$l = "1ce9e9ce7bea9c1fa346dadeffdca36d";
|
|
4703
|
+
function validate$n(obj, path = 'GetServiceResourceCapacityOutputRepresentation') {
|
|
4704
|
+
const v_error = (() => {
|
|
4705
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4706
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4707
|
+
}
|
|
4708
|
+
const obj_result = obj.result;
|
|
4709
|
+
const path_result = path + '.result';
|
|
4710
|
+
const referencepath_resultValidationError = validate$o(obj_result, path_result);
|
|
4711
|
+
if (referencepath_resultValidationError !== null) {
|
|
4712
|
+
let message = 'Object doesn\'t match ServiceResourceCapacityListResult (at "' + path_result + '")\n';
|
|
4713
|
+
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4714
|
+
return new TypeError(message);
|
|
4715
|
+
}
|
|
4716
|
+
})();
|
|
4717
|
+
return v_error === undefined ? null : v_error;
|
|
4718
|
+
}
|
|
4719
|
+
const RepresentationType$9 = 'GetServiceResourceCapacityOutputRepresentation';
|
|
4720
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
4721
|
+
return input;
|
|
4722
|
+
}
|
|
4723
|
+
const select$t = function GetServiceResourceCapacityOutputRepresentationSelect() {
|
|
4724
|
+
const { selections: ServiceResourceCapacityListResult__selections, opaque: ServiceResourceCapacityListResult__opaque, } = select$u();
|
|
4725
|
+
return {
|
|
4726
|
+
kind: 'Fragment',
|
|
4727
|
+
version: VERSION$l,
|
|
4728
|
+
private: [],
|
|
4729
|
+
selections: [
|
|
4730
|
+
{
|
|
4731
|
+
name: 'result',
|
|
4732
|
+
kind: 'Object',
|
|
4733
|
+
selections: ServiceResourceCapacityListResult__selections
|
|
4734
|
+
}
|
|
4735
|
+
]
|
|
4736
|
+
};
|
|
4737
|
+
};
|
|
4738
|
+
function equals$l(existing, incoming) {
|
|
4739
|
+
const existing_result = existing.result;
|
|
4740
|
+
const incoming_result = incoming.result;
|
|
4741
|
+
if (!(equals$m(existing_result, incoming_result))) {
|
|
4467
4742
|
return false;
|
|
4468
4743
|
}
|
|
4469
4744
|
return true;
|
|
4470
4745
|
}
|
|
4746
|
+
const ingest$9 = function GetServiceResourceCapacityOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4747
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4748
|
+
const validateError = validate$n(input);
|
|
4749
|
+
if (validateError !== null) {
|
|
4750
|
+
throw validateError;
|
|
4751
|
+
}
|
|
4752
|
+
}
|
|
4753
|
+
const key = path.fullPath;
|
|
4754
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
4755
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "IndustriesScheduler", VERSION$l, RepresentationType$9, equals$l);
|
|
4756
|
+
return createLink(key);
|
|
4757
|
+
};
|
|
4758
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
4759
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4760
|
+
const rootKey = fullPathFactory();
|
|
4761
|
+
rootKeySet.set(rootKey, {
|
|
4762
|
+
namespace: keyPrefix,
|
|
4763
|
+
representationName: RepresentationType$9,
|
|
4764
|
+
mergeable: false
|
|
4765
|
+
});
|
|
4766
|
+
}
|
|
4767
|
+
|
|
4768
|
+
function select$s(luvio, params) {
|
|
4769
|
+
return select$t();
|
|
4770
|
+
}
|
|
4771
|
+
function keyBuilder$e(luvio, params) {
|
|
4772
|
+
return keyPrefix + '::GetServiceResourceCapacityOutputRepresentation:(' + 'endDate:' + params.queryParams.endDate + ',' + 'maxLimit:' + params.queryParams.maxLimit + ',' + 'offset:' + params.queryParams.offset + ',' + 'serviceResourceId:' + params.queryParams.serviceResourceId + ',' + 'serviceTerritoryId:' + params.queryParams.serviceTerritoryId + ',' + 'startDate:' + params.queryParams.startDate + ')';
|
|
4773
|
+
}
|
|
4774
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
4775
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
4776
|
+
}
|
|
4777
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
4778
|
+
const { body } = response;
|
|
4779
|
+
const key = keyBuilder$e(luvio, resourceParams);
|
|
4780
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
4781
|
+
const snapshot = luvio.storeLookup({
|
|
4782
|
+
recordId: key,
|
|
4783
|
+
node: select$s(),
|
|
4784
|
+
variables: {},
|
|
4785
|
+
}, snapshotRefresh);
|
|
4786
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4787
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4788
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
deepFreeze(snapshot.data);
|
|
4792
|
+
return snapshot;
|
|
4793
|
+
}
|
|
4794
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
4795
|
+
const key = keyBuilder$e(luvio, params);
|
|
4796
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4797
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
4798
|
+
return errorSnapshot;
|
|
4799
|
+
}
|
|
4800
|
+
function createResourceRequest$7(config) {
|
|
4801
|
+
const headers = {};
|
|
4802
|
+
return {
|
|
4803
|
+
baseUri: '/services/data/v62.0',
|
|
4804
|
+
basePath: '/connect/scheduling/service-resource-capacity',
|
|
4805
|
+
method: 'get',
|
|
4806
|
+
body: null,
|
|
4807
|
+
urlParams: {},
|
|
4808
|
+
queryParams: config.queryParams,
|
|
4809
|
+
headers,
|
|
4810
|
+
priority: 'normal',
|
|
4811
|
+
};
|
|
4812
|
+
}
|
|
4813
|
+
|
|
4814
|
+
const adapterName$7 = 'getServiceResourceCapacity';
|
|
4815
|
+
const getServiceResourceCapacity_ConfigPropertyMetadata = [
|
|
4816
|
+
generateParamConfigMetadata('endDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4817
|
+
generateParamConfigMetadata('maxLimit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4818
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4819
|
+
generateParamConfigMetadata('serviceResourceId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4820
|
+
generateParamConfigMetadata('serviceTerritoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4821
|
+
generateParamConfigMetadata('startDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4822
|
+
];
|
|
4823
|
+
const getServiceResourceCapacity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getServiceResourceCapacity_ConfigPropertyMetadata);
|
|
4824
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(getServiceResourceCapacity_ConfigPropertyMetadata);
|
|
4825
|
+
function keyBuilder$d(luvio, config) {
|
|
4826
|
+
const resourceParams = createResourceParams$7(config);
|
|
4827
|
+
return keyBuilder$e(luvio, resourceParams);
|
|
4828
|
+
}
|
|
4829
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
4830
|
+
const config = {};
|
|
4831
|
+
typeCheckConfig$j(untrustedConfig, config, getServiceResourceCapacity_ConfigPropertyMetadata);
|
|
4832
|
+
return config;
|
|
4833
|
+
}
|
|
4834
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
4835
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4836
|
+
return null;
|
|
4837
|
+
}
|
|
4838
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4839
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4840
|
+
}
|
|
4841
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
4842
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4843
|
+
return null;
|
|
4844
|
+
}
|
|
4845
|
+
return config;
|
|
4846
|
+
}
|
|
4847
|
+
function adapterFragment$4(luvio, config) {
|
|
4848
|
+
createResourceParams$7(config);
|
|
4849
|
+
return select$s();
|
|
4850
|
+
}
|
|
4851
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
4852
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
4853
|
+
config,
|
|
4854
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4855
|
+
});
|
|
4856
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4857
|
+
}
|
|
4858
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
4859
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
4860
|
+
config,
|
|
4861
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4862
|
+
});
|
|
4863
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4864
|
+
}
|
|
4865
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
4866
|
+
const resourceParams = createResourceParams$7(config);
|
|
4867
|
+
const request = createResourceRequest$7(resourceParams);
|
|
4868
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4869
|
+
.then((response) => {
|
|
4870
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
4871
|
+
const cache = new StoreKeyMap();
|
|
4872
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
4873
|
+
return cache;
|
|
4874
|
+
});
|
|
4875
|
+
}, (response) => {
|
|
4876
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
4877
|
+
});
|
|
4878
|
+
}
|
|
4879
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
4880
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
4881
|
+
}
|
|
4882
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
4883
|
+
const { luvio, config } = context;
|
|
4884
|
+
const selector = {
|
|
4885
|
+
recordId: keyBuilder$d(luvio, config),
|
|
4886
|
+
node: adapterFragment$4(luvio, config),
|
|
4887
|
+
variables: {},
|
|
4888
|
+
};
|
|
4889
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4890
|
+
config,
|
|
4891
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4892
|
+
});
|
|
4893
|
+
return cacheSnapshot;
|
|
4894
|
+
}
|
|
4895
|
+
const getServiceResourceCapacityAdapterFactory = (luvio) => function IndustriesScheduler__getServiceResourceCapacity(untrustedConfig, requestContext) {
|
|
4896
|
+
const config = validateAdapterConfig$7(untrustedConfig, getServiceResourceCapacity_ConfigPropertyNames);
|
|
4897
|
+
// Invalid or incomplete config
|
|
4898
|
+
if (config === null) {
|
|
4899
|
+
return null;
|
|
4900
|
+
}
|
|
4901
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4902
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
4903
|
+
};
|
|
4471
4904
|
|
|
4472
|
-
const VERSION$k = "
|
|
4473
|
-
function validate$m(obj, path = '
|
|
4905
|
+
const VERSION$k = "900609b1219b6cec21dd620bcf43c7a9";
|
|
4906
|
+
function validate$m(obj, path = 'ServiceTerritoryCapacity') {
|
|
4474
4907
|
const v_error = (() => {
|
|
4475
4908
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4476
4909
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4483,23 +4916,44 @@ function validate$m(obj, path = 'ServiceTerritoryWorkTypeCapacity') {
|
|
|
4483
4916
|
for (let i = 0; i < obj_dayCapacityList.length; i++) {
|
|
4484
4917
|
const obj_dayCapacityList_item = obj_dayCapacityList[i];
|
|
4485
4918
|
const path_dayCapacityList_item = path_dayCapacityList + '[' + i + ']';
|
|
4486
|
-
const referencepath_dayCapacityList_itemValidationError = validate$
|
|
4919
|
+
const referencepath_dayCapacityList_itemValidationError = validate$q(obj_dayCapacityList_item, path_dayCapacityList_item);
|
|
4487
4920
|
if (referencepath_dayCapacityList_itemValidationError !== null) {
|
|
4488
4921
|
let message = 'Object doesn\'t match DayCapacity (at "' + path_dayCapacityList_item + '")\n';
|
|
4489
4922
|
message += referencepath_dayCapacityList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4490
4923
|
return new TypeError(message);
|
|
4491
4924
|
}
|
|
4492
4925
|
}
|
|
4926
|
+
if (obj.serviceResourceId !== undefined) {
|
|
4927
|
+
const obj_serviceResourceId = obj.serviceResourceId;
|
|
4928
|
+
const path_serviceResourceId = path + '.serviceResourceId';
|
|
4929
|
+
if (typeof obj_serviceResourceId !== 'string') {
|
|
4930
|
+
return new TypeError('Expected "string" but received "' + typeof obj_serviceResourceId + '" (at "' + path_serviceResourceId + '")');
|
|
4931
|
+
}
|
|
4932
|
+
}
|
|
4933
|
+
if (obj.serviceResourceName !== undefined) {
|
|
4934
|
+
const obj_serviceResourceName = obj.serviceResourceName;
|
|
4935
|
+
const path_serviceResourceName = path + '.serviceResourceName';
|
|
4936
|
+
if (typeof obj_serviceResourceName !== 'string') {
|
|
4937
|
+
return new TypeError('Expected "string" but received "' + typeof obj_serviceResourceName + '" (at "' + path_serviceResourceName + '")');
|
|
4938
|
+
}
|
|
4939
|
+
}
|
|
4493
4940
|
const obj_workTypeId = obj.workTypeId;
|
|
4494
4941
|
const path_workTypeId = path + '.workTypeId';
|
|
4495
4942
|
if (typeof obj_workTypeId !== 'string') {
|
|
4496
4943
|
return new TypeError('Expected "string" but received "' + typeof obj_workTypeId + '" (at "' + path_workTypeId + '")');
|
|
4497
4944
|
}
|
|
4945
|
+
if (obj.workTypeName !== undefined) {
|
|
4946
|
+
const obj_workTypeName = obj.workTypeName;
|
|
4947
|
+
const path_workTypeName = path + '.workTypeName';
|
|
4948
|
+
if (typeof obj_workTypeName !== 'string') {
|
|
4949
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workTypeName + '" (at "' + path_workTypeName + '")');
|
|
4950
|
+
}
|
|
4951
|
+
}
|
|
4498
4952
|
})();
|
|
4499
4953
|
return v_error === undefined ? null : v_error;
|
|
4500
4954
|
}
|
|
4501
|
-
const select$r = function
|
|
4502
|
-
const { selections: DayCapacity__selections, opaque: DayCapacity__opaque, } = select$
|
|
4955
|
+
const select$r = function ServiceTerritoryCapacitySelect() {
|
|
4956
|
+
const { selections: DayCapacity__selections, opaque: DayCapacity__opaque, } = select$w();
|
|
4503
4957
|
return {
|
|
4504
4958
|
kind: 'Fragment',
|
|
4505
4959
|
version: VERSION$k,
|
|
@@ -4511,23 +4965,77 @@ const select$r = function ServiceTerritoryWorkTypeCapacitySelect() {
|
|
|
4511
4965
|
plural: true,
|
|
4512
4966
|
selections: DayCapacity__selections
|
|
4513
4967
|
},
|
|
4968
|
+
{
|
|
4969
|
+
name: 'serviceResourceId',
|
|
4970
|
+
kind: 'Scalar',
|
|
4971
|
+
required: false
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
name: 'serviceResourceName',
|
|
4975
|
+
kind: 'Scalar',
|
|
4976
|
+
required: false
|
|
4977
|
+
},
|
|
4514
4978
|
{
|
|
4515
4979
|
name: 'workTypeId',
|
|
4516
4980
|
kind: 'Scalar'
|
|
4981
|
+
},
|
|
4982
|
+
{
|
|
4983
|
+
name: 'workTypeName',
|
|
4984
|
+
kind: 'Scalar',
|
|
4985
|
+
required: false
|
|
4517
4986
|
}
|
|
4518
4987
|
]
|
|
4519
4988
|
};
|
|
4520
4989
|
};
|
|
4521
4990
|
function equals$k(existing, incoming) {
|
|
4991
|
+
const existing_serviceResourceId = existing.serviceResourceId;
|
|
4992
|
+
const incoming_serviceResourceId = incoming.serviceResourceId;
|
|
4993
|
+
// if at least one of these optionals is defined
|
|
4994
|
+
if (existing_serviceResourceId !== undefined || incoming_serviceResourceId !== undefined) {
|
|
4995
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4996
|
+
// not equal
|
|
4997
|
+
if (existing_serviceResourceId === undefined || incoming_serviceResourceId === undefined) {
|
|
4998
|
+
return false;
|
|
4999
|
+
}
|
|
5000
|
+
if (!(existing_serviceResourceId === incoming_serviceResourceId)) {
|
|
5001
|
+
return false;
|
|
5002
|
+
}
|
|
5003
|
+
}
|
|
5004
|
+
const existing_serviceResourceName = existing.serviceResourceName;
|
|
5005
|
+
const incoming_serviceResourceName = incoming.serviceResourceName;
|
|
5006
|
+
// if at least one of these optionals is defined
|
|
5007
|
+
if (existing_serviceResourceName !== undefined || incoming_serviceResourceName !== undefined) {
|
|
5008
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5009
|
+
// not equal
|
|
5010
|
+
if (existing_serviceResourceName === undefined || incoming_serviceResourceName === undefined) {
|
|
5011
|
+
return false;
|
|
5012
|
+
}
|
|
5013
|
+
if (!(existing_serviceResourceName === incoming_serviceResourceName)) {
|
|
5014
|
+
return false;
|
|
5015
|
+
}
|
|
5016
|
+
}
|
|
4522
5017
|
const existing_workTypeId = existing.workTypeId;
|
|
4523
5018
|
const incoming_workTypeId = incoming.workTypeId;
|
|
4524
5019
|
if (!(existing_workTypeId === incoming_workTypeId)) {
|
|
4525
5020
|
return false;
|
|
4526
5021
|
}
|
|
5022
|
+
const existing_workTypeName = existing.workTypeName;
|
|
5023
|
+
const incoming_workTypeName = incoming.workTypeName;
|
|
5024
|
+
// if at least one of these optionals is defined
|
|
5025
|
+
if (existing_workTypeName !== undefined || incoming_workTypeName !== undefined) {
|
|
5026
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5027
|
+
// not equal
|
|
5028
|
+
if (existing_workTypeName === undefined || incoming_workTypeName === undefined) {
|
|
5029
|
+
return false;
|
|
5030
|
+
}
|
|
5031
|
+
if (!(existing_workTypeName === incoming_workTypeName)) {
|
|
5032
|
+
return false;
|
|
5033
|
+
}
|
|
5034
|
+
}
|
|
4527
5035
|
const existing_dayCapacityList = existing.dayCapacityList;
|
|
4528
5036
|
const incoming_dayCapacityList = incoming.dayCapacityList;
|
|
4529
5037
|
const equals_dayCapacityList_items = equalsArray(existing_dayCapacityList, incoming_dayCapacityList, (existing_dayCapacityList_item, incoming_dayCapacityList_item) => {
|
|
4530
|
-
if (!(equals$
|
|
5038
|
+
if (!(equals$o(existing_dayCapacityList_item, incoming_dayCapacityList_item))) {
|
|
4531
5039
|
return false;
|
|
4532
5040
|
}
|
|
4533
5041
|
});
|
|
@@ -4537,61 +5045,61 @@ function equals$k(existing, incoming) {
|
|
|
4537
5045
|
return true;
|
|
4538
5046
|
}
|
|
4539
5047
|
|
|
4540
|
-
const VERSION$j = "
|
|
4541
|
-
function validate$l(obj, path = '
|
|
5048
|
+
const VERSION$j = "5353d99f8ce3adff9e38549b9db4f6b5";
|
|
5049
|
+
function validate$l(obj, path = 'ServiceTerritoryCapacityListResult') {
|
|
4542
5050
|
const v_error = (() => {
|
|
4543
5051
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4544
5052
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4545
5053
|
}
|
|
4546
|
-
const
|
|
4547
|
-
const
|
|
4548
|
-
if (!ArrayIsArray(
|
|
4549
|
-
return new TypeError('Expected "array" but received "' + typeof
|
|
4550
|
-
}
|
|
4551
|
-
for (let i = 0; i <
|
|
4552
|
-
const
|
|
4553
|
-
const
|
|
4554
|
-
const
|
|
4555
|
-
if (
|
|
4556
|
-
let message = 'Object doesn\'t match
|
|
4557
|
-
message +=
|
|
5054
|
+
const obj_serviceTerritoryCapacityListResult = obj.serviceTerritoryCapacityListResult;
|
|
5055
|
+
const path_serviceTerritoryCapacityListResult = path + '.serviceTerritoryCapacityListResult';
|
|
5056
|
+
if (!ArrayIsArray(obj_serviceTerritoryCapacityListResult)) {
|
|
5057
|
+
return new TypeError('Expected "array" but received "' + typeof obj_serviceTerritoryCapacityListResult + '" (at "' + path_serviceTerritoryCapacityListResult + '")');
|
|
5058
|
+
}
|
|
5059
|
+
for (let i = 0; i < obj_serviceTerritoryCapacityListResult.length; i++) {
|
|
5060
|
+
const obj_serviceTerritoryCapacityListResult_item = obj_serviceTerritoryCapacityListResult[i];
|
|
5061
|
+
const path_serviceTerritoryCapacityListResult_item = path_serviceTerritoryCapacityListResult + '[' + i + ']';
|
|
5062
|
+
const referencepath_serviceTerritoryCapacityListResult_itemValidationError = validate$m(obj_serviceTerritoryCapacityListResult_item, path_serviceTerritoryCapacityListResult_item);
|
|
5063
|
+
if (referencepath_serviceTerritoryCapacityListResult_itemValidationError !== null) {
|
|
5064
|
+
let message = 'Object doesn\'t match ServiceTerritoryCapacity (at "' + path_serviceTerritoryCapacityListResult_item + '")\n';
|
|
5065
|
+
message += referencepath_serviceTerritoryCapacityListResult_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4558
5066
|
return new TypeError(message);
|
|
4559
5067
|
}
|
|
4560
5068
|
}
|
|
4561
5069
|
})();
|
|
4562
5070
|
return v_error === undefined ? null : v_error;
|
|
4563
5071
|
}
|
|
4564
|
-
const select$q = function
|
|
4565
|
-
const { selections:
|
|
5072
|
+
const select$q = function ServiceTerritoryCapacityListResultSelect() {
|
|
5073
|
+
const { selections: ServiceTerritoryCapacity__selections, opaque: ServiceTerritoryCapacity__opaque, } = select$r();
|
|
4566
5074
|
return {
|
|
4567
5075
|
kind: 'Fragment',
|
|
4568
5076
|
version: VERSION$j,
|
|
4569
5077
|
private: [],
|
|
4570
5078
|
selections: [
|
|
4571
5079
|
{
|
|
4572
|
-
name: '
|
|
5080
|
+
name: 'serviceTerritoryCapacityListResult',
|
|
4573
5081
|
kind: 'Object',
|
|
4574
5082
|
plural: true,
|
|
4575
|
-
selections:
|
|
5083
|
+
selections: ServiceTerritoryCapacity__selections
|
|
4576
5084
|
}
|
|
4577
5085
|
]
|
|
4578
5086
|
};
|
|
4579
5087
|
};
|
|
4580
5088
|
function equals$j(existing, incoming) {
|
|
4581
|
-
const
|
|
4582
|
-
const
|
|
4583
|
-
const
|
|
4584
|
-
if (!(equals$k(
|
|
5089
|
+
const existing_serviceTerritoryCapacityListResult = existing.serviceTerritoryCapacityListResult;
|
|
5090
|
+
const incoming_serviceTerritoryCapacityListResult = incoming.serviceTerritoryCapacityListResult;
|
|
5091
|
+
const equals_serviceTerritoryCapacityListResult_items = equalsArray(existing_serviceTerritoryCapacityListResult, incoming_serviceTerritoryCapacityListResult, (existing_serviceTerritoryCapacityListResult_item, incoming_serviceTerritoryCapacityListResult_item) => {
|
|
5092
|
+
if (!(equals$k(existing_serviceTerritoryCapacityListResult_item, incoming_serviceTerritoryCapacityListResult_item))) {
|
|
4585
5093
|
return false;
|
|
4586
5094
|
}
|
|
4587
5095
|
});
|
|
4588
|
-
if (
|
|
5096
|
+
if (equals_serviceTerritoryCapacityListResult_items === false) {
|
|
4589
5097
|
return false;
|
|
4590
5098
|
}
|
|
4591
5099
|
return true;
|
|
4592
5100
|
}
|
|
4593
5101
|
|
|
4594
|
-
const VERSION$i = "
|
|
5102
|
+
const VERSION$i = "c8a47ebb5152e07a366cce6e68023760";
|
|
4595
5103
|
function validate$k(obj, path = 'GetServiceTerritoryCapacityOutputRepresentation') {
|
|
4596
5104
|
const v_error = (() => {
|
|
4597
5105
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4601,7 +5109,7 @@ function validate$k(obj, path = 'GetServiceTerritoryCapacityOutputRepresentation
|
|
|
4601
5109
|
const path_result = path + '.result';
|
|
4602
5110
|
const referencepath_resultValidationError = validate$l(obj_result, path_result);
|
|
4603
5111
|
if (referencepath_resultValidationError !== null) {
|
|
4604
|
-
let message = 'Object doesn\'t match
|
|
5112
|
+
let message = 'Object doesn\'t match ServiceTerritoryCapacityListResult (at "' + path_result + '")\n';
|
|
4605
5113
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4606
5114
|
return new TypeError(message);
|
|
4607
5115
|
}
|
|
@@ -4613,7 +5121,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4613
5121
|
return input;
|
|
4614
5122
|
}
|
|
4615
5123
|
const select$p = function GetServiceTerritoryCapacityOutputRepresentationSelect() {
|
|
4616
|
-
const { selections:
|
|
5124
|
+
const { selections: ServiceTerritoryCapacityListResult__selections, opaque: ServiceTerritoryCapacityListResult__opaque, } = select$q();
|
|
4617
5125
|
return {
|
|
4618
5126
|
kind: 'Fragment',
|
|
4619
5127
|
version: VERSION$i,
|
|
@@ -4622,7 +5130,7 @@ const select$p = function GetServiceTerritoryCapacityOutputRepresentationSelect(
|
|
|
4622
5130
|
{
|
|
4623
5131
|
name: 'result',
|
|
4624
5132
|
kind: 'Object',
|
|
4625
|
-
selections:
|
|
5133
|
+
selections: ServiceTerritoryCapacityListResult__selections
|
|
4626
5134
|
}
|
|
4627
5135
|
]
|
|
4628
5136
|
};
|
|
@@ -4661,7 +5169,7 @@ function select$o(luvio, params) {
|
|
|
4661
5169
|
return select$p();
|
|
4662
5170
|
}
|
|
4663
5171
|
function keyBuilder$c(luvio, params) {
|
|
4664
|
-
return keyPrefix + '::GetServiceTerritoryCapacityOutputRepresentation:(' + 'endDate:' + params.queryParams.endDate + ',' + 'serviceTerritoryId:' + params.queryParams.serviceTerritoryId + ',' + 'startDate:' + params.queryParams.startDate + ')';
|
|
5172
|
+
return keyPrefix + '::GetServiceTerritoryCapacityOutputRepresentation:(' + 'endDate:' + params.queryParams.endDate + ',' + 'maxLimit:' + params.queryParams.maxLimit + ',' + 'offset:' + params.queryParams.offset + ',' + 'serviceTerritoryId:' + params.queryParams.serviceTerritoryId + ',' + 'startDate:' + params.queryParams.startDate + ',' + 'workTypeId:' + params.queryParams.workTypeId + ')';
|
|
4665
5173
|
}
|
|
4666
5174
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
4667
5175
|
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
@@ -4706,18 +5214,21 @@ function createResourceRequest$6(config) {
|
|
|
4706
5214
|
const adapterName$6 = 'getServiceTerritoryCapacity';
|
|
4707
5215
|
const getServiceTerritoryCapacity_ConfigPropertyMetadata = [
|
|
4708
5216
|
generateParamConfigMetadata('endDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5217
|
+
generateParamConfigMetadata('maxLimit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5218
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4709
5219
|
generateParamConfigMetadata('serviceTerritoryId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4710
5220
|
generateParamConfigMetadata('startDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5221
|
+
generateParamConfigMetadata('workTypeId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4711
5222
|
];
|
|
4712
5223
|
const getServiceTerritoryCapacity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getServiceTerritoryCapacity_ConfigPropertyMetadata);
|
|
4713
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
5224
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getServiceTerritoryCapacity_ConfigPropertyMetadata);
|
|
4714
5225
|
function keyBuilder$b(luvio, config) {
|
|
4715
5226
|
const resourceParams = createResourceParams$6(config);
|
|
4716
5227
|
return keyBuilder$c(luvio, resourceParams);
|
|
4717
5228
|
}
|
|
4718
5229
|
function typeCheckConfig$6(untrustedConfig) {
|
|
4719
5230
|
const config = {};
|
|
4720
|
-
typeCheckConfig$
|
|
5231
|
+
typeCheckConfig$j(untrustedConfig, config, getServiceTerritoryCapacity_ConfigPropertyMetadata);
|
|
4721
5232
|
return config;
|
|
4722
5233
|
}
|
|
4723
5234
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -4766,7 +5277,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
4766
5277
|
});
|
|
4767
5278
|
}
|
|
4768
5279
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
4769
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5280
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
4770
5281
|
}
|
|
4771
5282
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
4772
5283
|
const { luvio, config } = context;
|
|
@@ -5056,7 +5567,7 @@ const createWaitlistAppointment_ConfigPropertyMetadata = [
|
|
|
5056
5567
|
generateParamConfigMetadata('waitlistAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5057
5568
|
];
|
|
5058
5569
|
const createWaitlistAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createWaitlistAppointment_ConfigPropertyMetadata);
|
|
5059
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
5570
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(createWaitlistAppointment_ConfigPropertyMetadata);
|
|
5060
5571
|
function typeCheckConfig$5(untrustedConfig) {
|
|
5061
5572
|
const config = {};
|
|
5062
5573
|
const untrustedConfig_waitlistAppointmentInput = untrustedConfig.waitlistAppointmentInput;
|
|
@@ -5424,7 +5935,7 @@ const createWaitlistCheckIn_ConfigPropertyMetadata = [
|
|
|
5424
5935
|
generateParamConfigMetadata('waitlistCheckInInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5425
5936
|
];
|
|
5426
5937
|
const createWaitlistCheckIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createWaitlistCheckIn_ConfigPropertyMetadata);
|
|
5427
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
5938
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(createWaitlistCheckIn_ConfigPropertyMetadata);
|
|
5428
5939
|
function typeCheckConfig$4(untrustedConfig) {
|
|
5429
5940
|
const config = {};
|
|
5430
5941
|
const untrustedConfig_waitlistCheckInInput = untrustedConfig.waitlistCheckInInput;
|
|
@@ -5739,7 +6250,7 @@ function validate$b(obj, path = 'WaitlistParticipantResult') {
|
|
|
5739
6250
|
for (let i = 0; i < obj_extendedFields.length; i++) {
|
|
5740
6251
|
const obj_extendedFields_item = obj_extendedFields[i];
|
|
5741
6252
|
const path_extendedFields_item = path_extendedFields + '[' + i + ']';
|
|
5742
|
-
const referencepath_extendedFields_itemValidationError = validate$
|
|
6253
|
+
const referencepath_extendedFields_itemValidationError = validate$I(obj_extendedFields_item, path_extendedFields_item);
|
|
5743
6254
|
if (referencepath_extendedFields_itemValidationError !== null) {
|
|
5744
6255
|
let message = 'Object doesn\'t match ExtendedFieldsOutputRepresentation (at "' + path_extendedFields_item + '")\n';
|
|
5745
6256
|
message += referencepath_extendedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5771,7 +6282,7 @@ function validate$b(obj, path = 'WaitlistParticipantResult') {
|
|
|
5771
6282
|
if (obj.serviceResource !== undefined) {
|
|
5772
6283
|
const obj_serviceResource = obj.serviceResource;
|
|
5773
6284
|
const path_serviceResource = path + '.serviceResource';
|
|
5774
|
-
const referencepath_serviceResourceValidationError = validate$
|
|
6285
|
+
const referencepath_serviceResourceValidationError = validate$z(obj_serviceResource, path_serviceResource);
|
|
5775
6286
|
if (referencepath_serviceResourceValidationError !== null) {
|
|
5776
6287
|
let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResource + '")\n';
|
|
5777
6288
|
message += referencepath_serviceResourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5788,7 +6299,7 @@ function validate$b(obj, path = 'WaitlistParticipantResult') {
|
|
|
5788
6299
|
if (obj.workTypeGroup !== undefined) {
|
|
5789
6300
|
const obj_workTypeGroup = obj.workTypeGroup;
|
|
5790
6301
|
const path_workTypeGroup = path + '.workTypeGroup';
|
|
5791
|
-
const referencepath_workTypeGroupValidationError = validate$
|
|
6302
|
+
const referencepath_workTypeGroupValidationError = validate$C(obj_workTypeGroup, path_workTypeGroup);
|
|
5792
6303
|
if (referencepath_workTypeGroupValidationError !== null) {
|
|
5793
6304
|
let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroup + '")\n';
|
|
5794
6305
|
message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5799,10 +6310,10 @@ function validate$b(obj, path = 'WaitlistParticipantResult') {
|
|
|
5799
6310
|
return v_error === undefined ? null : v_error;
|
|
5800
6311
|
}
|
|
5801
6312
|
const select$f = function WaitlistParticipantResultSelect() {
|
|
5802
|
-
const { selections: ExtendedFieldsOutputRepresentation__selections, opaque: ExtendedFieldsOutputRepresentation__opaque, } = select$
|
|
6313
|
+
const { selections: ExtendedFieldsOutputRepresentation__selections, opaque: ExtendedFieldsOutputRepresentation__opaque, } = select$T();
|
|
5803
6314
|
const { selections: WaitlistParticipantParticipant__selections, opaque: WaitlistParticipantParticipant__opaque, } = select$g();
|
|
5804
|
-
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$
|
|
5805
|
-
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$
|
|
6315
|
+
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$I();
|
|
6316
|
+
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$M();
|
|
5806
6317
|
return {
|
|
5807
6318
|
kind: 'Fragment',
|
|
5808
6319
|
version: VERSION$b,
|
|
@@ -5893,7 +6404,7 @@ function equals$b(existing, incoming) {
|
|
|
5893
6404
|
const existing_extendedFields = existing.extendedFields;
|
|
5894
6405
|
const incoming_extendedFields = incoming.extendedFields;
|
|
5895
6406
|
const equals_extendedFields_items = equalsArray(existing_extendedFields, incoming_extendedFields, (existing_extendedFields_item, incoming_extendedFields_item) => {
|
|
5896
|
-
if (!(equals$
|
|
6407
|
+
if (!(equals$E(existing_extendedFields_item, incoming_extendedFields_item))) {
|
|
5897
6408
|
return false;
|
|
5898
6409
|
}
|
|
5899
6410
|
});
|
|
@@ -5922,7 +6433,7 @@ function equals$b(existing, incoming) {
|
|
|
5922
6433
|
if (existing_serviceResource === undefined || incoming_serviceResource === undefined) {
|
|
5923
6434
|
return false;
|
|
5924
6435
|
}
|
|
5925
|
-
if (!(equals$
|
|
6436
|
+
if (!(equals$v(existing_serviceResource, incoming_serviceResource))) {
|
|
5926
6437
|
return false;
|
|
5927
6438
|
}
|
|
5928
6439
|
}
|
|
@@ -5935,7 +6446,7 @@ function equals$b(existing, incoming) {
|
|
|
5935
6446
|
if (existing_workTypeGroup === undefined || incoming_workTypeGroup === undefined) {
|
|
5936
6447
|
return false;
|
|
5937
6448
|
}
|
|
5938
|
-
if (!(equals$
|
|
6449
|
+
if (!(equals$y(existing_workTypeGroup, incoming_workTypeGroup))) {
|
|
5939
6450
|
return false;
|
|
5940
6451
|
}
|
|
5941
6452
|
}
|
|
@@ -5978,7 +6489,7 @@ function validate$a(obj, path = 'WaitlistResult') {
|
|
|
5978
6489
|
for (let i = 0; i < obj_serviceResources.length; i++) {
|
|
5979
6490
|
const obj_serviceResources_item = obj_serviceResources[i];
|
|
5980
6491
|
const path_serviceResources_item = path_serviceResources + '[' + i + ']';
|
|
5981
|
-
const referencepath_serviceResources_itemValidationError = validate$
|
|
6492
|
+
const referencepath_serviceResources_itemValidationError = validate$z(obj_serviceResources_item, path_serviceResources_item);
|
|
5982
6493
|
if (referencepath_serviceResources_itemValidationError !== null) {
|
|
5983
6494
|
let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResources_item + '")\n';
|
|
5984
6495
|
message += referencepath_serviceResources_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6029,7 +6540,7 @@ function validate$a(obj, path = 'WaitlistResult') {
|
|
|
6029
6540
|
for (let i = 0; i < obj_workTypeGroups.length; i++) {
|
|
6030
6541
|
const obj_workTypeGroups_item = obj_workTypeGroups[i];
|
|
6031
6542
|
const path_workTypeGroups_item = path_workTypeGroups + '[' + i + ']';
|
|
6032
|
-
const referencepath_workTypeGroups_itemValidationError = validate$
|
|
6543
|
+
const referencepath_workTypeGroups_itemValidationError = validate$C(obj_workTypeGroups_item, path_workTypeGroups_item);
|
|
6033
6544
|
if (referencepath_workTypeGroups_itemValidationError !== null) {
|
|
6034
6545
|
let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroups_item + '")\n';
|
|
6035
6546
|
message += referencepath_workTypeGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6041,10 +6552,10 @@ function validate$a(obj, path = 'WaitlistResult') {
|
|
|
6041
6552
|
return v_error === undefined ? null : v_error;
|
|
6042
6553
|
}
|
|
6043
6554
|
const select$e = function WaitlistResultSelect() {
|
|
6044
|
-
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$
|
|
6555
|
+
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$I();
|
|
6045
6556
|
const { selections: WaitlistAnalytics__selections, opaque: WaitlistAnalytics__opaque, } = select$h();
|
|
6046
6557
|
const { selections: WaitlistParticipantResult__selections, opaque: WaitlistParticipantResult__opaque, } = select$f();
|
|
6047
|
-
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$
|
|
6558
|
+
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$M();
|
|
6048
6559
|
return {
|
|
6049
6560
|
kind: 'Fragment',
|
|
6050
6561
|
version: VERSION$a,
|
|
@@ -6163,7 +6674,7 @@ function equals$a(existing, incoming) {
|
|
|
6163
6674
|
return false;
|
|
6164
6675
|
}
|
|
6165
6676
|
const equals_serviceResources_items = equalsArray(existing_serviceResources, incoming_serviceResources, (existing_serviceResources_item, incoming_serviceResources_item) => {
|
|
6166
|
-
if (!(equals$
|
|
6677
|
+
if (!(equals$v(existing_serviceResources_item, incoming_serviceResources_item))) {
|
|
6167
6678
|
return false;
|
|
6168
6679
|
}
|
|
6169
6680
|
});
|
|
@@ -6212,7 +6723,7 @@ function equals$a(existing, incoming) {
|
|
|
6212
6723
|
return false;
|
|
6213
6724
|
}
|
|
6214
6725
|
const equals_workTypeGroups_items = equalsArray(existing_workTypeGroups, incoming_workTypeGroups, (existing_workTypeGroups_item, incoming_workTypeGroups_item) => {
|
|
6215
|
-
if (!(equals$
|
|
6726
|
+
if (!(equals$y(existing_workTypeGroups_item, incoming_workTypeGroups_item))) {
|
|
6216
6727
|
return false;
|
|
6217
6728
|
}
|
|
6218
6729
|
});
|
|
@@ -6256,7 +6767,7 @@ function validate$9(obj, path = 'WaitlistWorkType') {
|
|
|
6256
6767
|
if (obj.workTypeGroup !== undefined) {
|
|
6257
6768
|
const obj_workTypeGroup = obj.workTypeGroup;
|
|
6258
6769
|
const path_workTypeGroup = path + '.workTypeGroup';
|
|
6259
|
-
const referencepath_workTypeGroupValidationError = validate$
|
|
6770
|
+
const referencepath_workTypeGroupValidationError = validate$C(obj_workTypeGroup, path_workTypeGroup);
|
|
6260
6771
|
if (referencepath_workTypeGroupValidationError !== null) {
|
|
6261
6772
|
let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroup + '")\n';
|
|
6262
6773
|
message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6268,7 +6779,7 @@ function validate$9(obj, path = 'WaitlistWorkType') {
|
|
|
6268
6779
|
}
|
|
6269
6780
|
const select$d = function WaitlistWorkTypeSelect() {
|
|
6270
6781
|
const { selections: WaitlistResult__selections, opaque: WaitlistResult__opaque, } = select$e();
|
|
6271
|
-
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$
|
|
6782
|
+
const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$M();
|
|
6272
6783
|
return {
|
|
6273
6784
|
kind: 'Fragment',
|
|
6274
6785
|
version: VERSION$9,
|
|
@@ -6348,7 +6859,7 @@ function equals$9(existing, incoming) {
|
|
|
6348
6859
|
if (existing_workTypeGroup === undefined || incoming_workTypeGroup === undefined) {
|
|
6349
6860
|
return false;
|
|
6350
6861
|
}
|
|
6351
|
-
if (!(equals$
|
|
6862
|
+
if (!(equals$y(existing_workTypeGroup, incoming_workTypeGroup))) {
|
|
6352
6863
|
return false;
|
|
6353
6864
|
}
|
|
6354
6865
|
}
|
|
@@ -6370,7 +6881,7 @@ function validate$8(obj, path = 'WaitlistRelationshipsResult') {
|
|
|
6370
6881
|
for (let i = 0; i < obj_serviceResources.length; i++) {
|
|
6371
6882
|
const obj_serviceResources_item = obj_serviceResources[i];
|
|
6372
6883
|
const path_serviceResources_item = path_serviceResources + '[' + i + ']';
|
|
6373
|
-
const referencepath_serviceResources_itemValidationError = validate$
|
|
6884
|
+
const referencepath_serviceResources_itemValidationError = validate$z(obj_serviceResources_item, path_serviceResources_item);
|
|
6374
6885
|
if (referencepath_serviceResources_itemValidationError !== null) {
|
|
6375
6886
|
let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResources_item + '")\n';
|
|
6376
6887
|
message += referencepath_serviceResources_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6399,7 +6910,7 @@ function validate$8(obj, path = 'WaitlistRelationshipsResult') {
|
|
|
6399
6910
|
return v_error === undefined ? null : v_error;
|
|
6400
6911
|
}
|
|
6401
6912
|
const select$c = function WaitlistRelationshipsResultSelect() {
|
|
6402
|
-
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$
|
|
6913
|
+
const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$I();
|
|
6403
6914
|
const { selections: WaitlistWorkType__selections, opaque: WaitlistWorkType__opaque, } = select$d();
|
|
6404
6915
|
return {
|
|
6405
6916
|
kind: 'Fragment',
|
|
@@ -6434,7 +6945,7 @@ function equals$8(existing, incoming) {
|
|
|
6434
6945
|
return false;
|
|
6435
6946
|
}
|
|
6436
6947
|
const equals_serviceResources_items = equalsArray(existing_serviceResources, incoming_serviceResources, (existing_serviceResources_item, incoming_serviceResources_item) => {
|
|
6437
|
-
if (!(equals$
|
|
6948
|
+
if (!(equals$v(existing_serviceResources_item, incoming_serviceResources_item))) {
|
|
6438
6949
|
return false;
|
|
6439
6950
|
}
|
|
6440
6951
|
});
|
|
@@ -6582,14 +7093,14 @@ const getWaitlistRelationships_ConfigPropertyMetadata = [
|
|
|
6582
7093
|
generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6583
7094
|
];
|
|
6584
7095
|
const getWaitlistRelationships_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getWaitlistRelationships_ConfigPropertyMetadata);
|
|
6585
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7096
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(getWaitlistRelationships_ConfigPropertyMetadata);
|
|
6586
7097
|
function keyBuilder$5(luvio, config) {
|
|
6587
7098
|
const resourceParams = createResourceParams$3(config);
|
|
6588
7099
|
return keyBuilder$6(luvio, resourceParams);
|
|
6589
7100
|
}
|
|
6590
7101
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6591
7102
|
const config = {};
|
|
6592
|
-
typeCheckConfig$
|
|
7103
|
+
typeCheckConfig$j(untrustedConfig, config, getWaitlistRelationships_ConfigPropertyMetadata);
|
|
6593
7104
|
return config;
|
|
6594
7105
|
}
|
|
6595
7106
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -6638,7 +7149,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
6638
7149
|
});
|
|
6639
7150
|
}
|
|
6640
7151
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6641
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7152
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
6642
7153
|
}
|
|
6643
7154
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6644
7155
|
const { luvio, config } = context;
|
|
@@ -6840,14 +7351,14 @@ const getWaitlists_ConfigPropertyMetadata = [
|
|
|
6840
7351
|
generateParamConfigMetadata('waitlistIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6841
7352
|
];
|
|
6842
7353
|
const getWaitlists_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getWaitlists_ConfigPropertyMetadata);
|
|
6843
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7354
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(getWaitlists_ConfigPropertyMetadata);
|
|
6844
7355
|
function keyBuilder$3(luvio, config) {
|
|
6845
7356
|
const resourceParams = createResourceParams$2(config);
|
|
6846
7357
|
return keyBuilder$4(luvio, resourceParams);
|
|
6847
7358
|
}
|
|
6848
7359
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6849
7360
|
const config = {};
|
|
6850
|
-
typeCheckConfig$
|
|
7361
|
+
typeCheckConfig$j(untrustedConfig, config, getWaitlists_ConfigPropertyMetadata);
|
|
6851
7362
|
return config;
|
|
6852
7363
|
}
|
|
6853
7364
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -6896,7 +7407,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
6896
7407
|
});
|
|
6897
7408
|
}
|
|
6898
7409
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6899
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7410
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
6900
7411
|
}
|
|
6901
7412
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6902
7413
|
const { luvio, config } = context;
|
|
@@ -7080,14 +7591,15 @@ function createResourceRequest$1(config) {
|
|
|
7080
7591
|
|
|
7081
7592
|
const adapterName$1 = 'updateWaitlistParticipant';
|
|
7082
7593
|
const updateWaitlistParticipant_ConfigPropertyMetadata = [
|
|
7083
|
-
generateParamConfigMetadata('
|
|
7594
|
+
generateParamConfigMetadata('serviceAppointmentStatus', false, 2 /* Body */, 0 /* String */),
|
|
7595
|
+
generateParamConfigMetadata('targetPosition', false, 2 /* Body */, 3 /* Integer */),
|
|
7084
7596
|
generateParamConfigMetadata('waitlistParticipantId', true, 2 /* Body */, 0 /* String */),
|
|
7085
7597
|
];
|
|
7086
7598
|
const updateWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateWaitlistParticipant_ConfigPropertyMetadata);
|
|
7087
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7599
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(updateWaitlistParticipant_ConfigPropertyMetadata);
|
|
7088
7600
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7089
7601
|
const config = {};
|
|
7090
|
-
typeCheckConfig$
|
|
7602
|
+
typeCheckConfig$j(untrustedConfig, config, updateWaitlistParticipant_ConfigPropertyMetadata);
|
|
7091
7603
|
return config;
|
|
7092
7604
|
}
|
|
7093
7605
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7232,7 +7744,7 @@ function validate$2(obj, path = 'WaitlistParticipantStats') {
|
|
|
7232
7744
|
if (obj.workTypeGroup !== undefined) {
|
|
7233
7745
|
const obj_workTypeGroup = obj.workTypeGroup;
|
|
7234
7746
|
const path_workTypeGroup = path + '.workTypeGroup';
|
|
7235
|
-
const referencepath_workTypeGroupValidationError = validate$
|
|
7747
|
+
const referencepath_workTypeGroupValidationError = validate$T(obj_workTypeGroup, path_workTypeGroup);
|
|
7236
7748
|
if (referencepath_workTypeGroupValidationError !== null) {
|
|
7237
7749
|
let message = 'Object doesn\'t match WorkTypeGroupRepresentation (at "' + path_workTypeGroup + '")\n';
|
|
7238
7750
|
message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7245,7 +7757,7 @@ function validate$2(obj, path = 'WaitlistParticipantStats') {
|
|
|
7245
7757
|
const select$3 = function WaitlistParticipantStatsSelect() {
|
|
7246
7758
|
const { selections: WaitlistResult__selections, opaque: WaitlistResult__opaque, } = select$e();
|
|
7247
7759
|
const { selections: WorkTypeRepresentation__selections, opaque: WorkTypeRepresentation__opaque, } = select$4();
|
|
7248
|
-
const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$
|
|
7760
|
+
const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$16();
|
|
7249
7761
|
return {
|
|
7250
7762
|
kind: 'Fragment',
|
|
7251
7763
|
version: VERSION$2,
|
|
@@ -7362,7 +7874,7 @@ function equals$2(existing, incoming) {
|
|
|
7362
7874
|
if (existing_workTypeGroup === undefined || incoming_workTypeGroup === undefined) {
|
|
7363
7875
|
return false;
|
|
7364
7876
|
}
|
|
7365
|
-
if (!(equals$
|
|
7877
|
+
if (!(equals$P(existing_workTypeGroup, incoming_workTypeGroup))) {
|
|
7366
7878
|
return false;
|
|
7367
7879
|
}
|
|
7368
7880
|
}
|
|
@@ -7551,14 +8063,14 @@ const getWaitlistParticipantStats_ConfigPropertyMetadata = [
|
|
|
7551
8063
|
generateParamConfigMetadata('waitlistParticipantIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
7552
8064
|
];
|
|
7553
8065
|
const getWaitlistParticipantStats_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getWaitlistParticipantStats_ConfigPropertyMetadata);
|
|
7554
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8066
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(getWaitlistParticipantStats_ConfigPropertyMetadata);
|
|
7555
8067
|
function keyBuilder(luvio, config) {
|
|
7556
8068
|
const resourceParams = createResourceParams(config);
|
|
7557
8069
|
return keyBuilder$1(luvio, resourceParams);
|
|
7558
8070
|
}
|
|
7559
8071
|
function typeCheckConfig(untrustedConfig) {
|
|
7560
8072
|
const config = {};
|
|
7561
|
-
typeCheckConfig$
|
|
8073
|
+
typeCheckConfig$j(untrustedConfig, config, getWaitlistParticipantStats_ConfigPropertyMetadata);
|
|
7562
8074
|
return config;
|
|
7563
8075
|
}
|
|
7564
8076
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7607,7 +8119,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
7607
8119
|
});
|
|
7608
8120
|
}
|
|
7609
8121
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7610
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8122
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7611
8123
|
}
|
|
7612
8124
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7613
8125
|
const { luvio, config } = context;
|
|
@@ -7632,4 +8144,4 @@ const getWaitlistParticipantStatsAdapterFactory = (luvio) => function Industries
|
|
|
7632
8144
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7633
8145
|
};
|
|
7634
8146
|
|
|
7635
|
-
export { createServiceAppointmentAdapterFactory, createServiceAppointmentAttendeeAdapterFactory, createWaitlistAppointmentAdapterFactory, createWaitlistCheckInAdapterFactory, decryptionAdapterFactory, encryptAdapterFactory, getAppointmentFromTokenAdapterFactory, getEngagementChannelTypesAdapterFactory, getGroupAppointmentsAdapterFactory, getNextWaitlistParticipantAdapterFactory, getParticipantRecentInteractionsAdapterFactory, getServiceTerritoryCapacityAdapterFactory, getWaitlistParticipantStatsAdapterFactory, getWaitlistRelationshipsAdapterFactory, getWaitlistsAdapterFactory, updateServiceAppointmentAdapterFactory, updateServiceAppointmentAttendeeAdapterFactory, updateWaitlistParticipantAdapterFactory };
|
|
8147
|
+
export { createServiceAppointmentAdapterFactory, createServiceAppointmentAttendeeAdapterFactory, createWaitlistAppointmentAdapterFactory, createWaitlistCheckInAdapterFactory, decryptionAdapterFactory, encryptAdapterFactory, getAppointmentFromTokenAdapterFactory, getEngagementChannelTypesAdapterFactory, getGroupAppointmentsAdapterFactory, getNextWaitlistParticipantAdapterFactory, getParticipantRecentInteractionsAdapterFactory, getServiceResourceCapacityAdapterFactory, getServiceTerritoryCapacityAdapterFactory, getWaitlistParticipantStatsAdapterFactory, getWaitlistRelationshipsAdapterFactory, getWaitlistsAdapterFactory, updateServiceAppointmentAdapterFactory, updateServiceAppointmentAttendeeAdapterFactory, updateWaitlistParticipantAdapterFactory };
|