@salesforce/lds-adapters-industries-identityverification 1.100.2

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.
Files changed (114) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-identityverification.js +2870 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/buildVerificationContext.d.ts +16 -0
  5. package/dist/types/src/generated/adapters/createFormVerification.d.ts +17 -0
  6. package/dist/types/src/generated/adapters/identityVerification.d.ts +15 -0
  7. package/dist/types/src/generated/adapters/searchRecords.d.ts +15 -0
  8. package/dist/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/types/src/generated/artifacts/sfdc.d.ts +5 -0
  10. package/dist/types/src/generated/resources/getConnectIndustriesVideoCallParticipant.d.ts +16 -0
  11. package/dist/types/src/generated/resources/getConnectTimelineMetadataConfigurations.d.ts +15 -0
  12. package/dist/types/src/generated/resources/getConnectTimelineTimelineDefinitionsEventsByTimelineConfigFullNameAndTimelineObjRecordId.d.ts +23 -0
  13. package/dist/types/src/generated/resources/postConnectDocumentAutomationContentDocumentsLinkedObjectsByContentDocumentIdAndLinkedObjectId.d.ts +21 -0
  14. package/dist/types/src/generated/resources/postConnectIdentityVerificationBuildContextByProcessDefinitionName.d.ts +16 -0
  15. package/dist/types/src/generated/resources/postConnectIdentityVerificationInputVerification.d.ts +15 -0
  16. package/dist/types/src/generated/resources/postConnectIdentityVerificationSearch.d.ts +13 -0
  17. package/dist/types/src/generated/resources/postConnectIdentityVerificationVerification.d.ts +13 -0
  18. package/dist/types/src/generated/resources/postConnectIndustriesVideoCall.d.ts +16 -0
  19. package/dist/types/src/generated/resources/postConnectIndustriesVideoCallJoinCall.d.ts +15 -0
  20. package/dist/types/src/generated/resources/postConnectIndustriesVideoCallValidateSignature.d.ts +12 -0
  21. package/dist/types/src/generated/resources/putConnectIndustriesVideoCall.d.ts +10 -0
  22. package/dist/types/src/generated/resources/putConnectIndustriesVideoCallLeaveCall.d.ts +10 -0
  23. package/dist/types/src/generated/resources/putConnectIndustriesVideoCallParticipant.d.ts +10 -0
  24. package/dist/types/src/generated/types/BuildVerificationContextInputRepresentation.d.ts +38 -0
  25. package/dist/types/src/generated/types/BuildVerificationContextWrapperInputRepresentation.d.ts +30 -0
  26. package/dist/types/src/generated/types/ChimeAttendeeResultRepresentation.d.ts +35 -0
  27. package/dist/types/src/generated/types/ChimeMediaPlacementResultRepresentation.d.ts +50 -0
  28. package/dist/types/src/generated/types/ChimeMeetingResultRepresentation.d.ts +33 -0
  29. package/dist/types/src/generated/types/DocumentManagementInputRepresentation.d.ts +42 -0
  30. package/dist/types/src/generated/types/DocumentManagementResultRepresentation.d.ts +35 -0
  31. package/dist/types/src/generated/types/ErrorResponseRepresentation.d.ts +32 -0
  32. package/dist/types/src/generated/types/EvaluateVideoCallParticipantInputRepresentation.d.ts +32 -0
  33. package/dist/types/src/generated/types/EvaluateVideoCallParticipantResultRepresentation.d.ts +32 -0
  34. package/dist/types/src/generated/types/FieldValueInputRepresentation.d.ts +32 -0
  35. package/dist/types/src/generated/types/FieldValueListInputRepresentation.d.ts +30 -0
  36. package/dist/types/src/generated/types/FieldValueOutputRepresentation.d.ts +32 -0
  37. package/dist/types/src/generated/types/FormVerificationDisplayRecordDetailsOutput.d.ts +32 -0
  38. package/dist/types/src/generated/types/FormVerificationFieldInputRepresentation.d.ts +35 -0
  39. package/dist/types/src/generated/types/FormVerificationFieldListInputRepresentation.d.ts +29 -0
  40. package/dist/types/src/generated/types/FormVerificationFieldListOutputRepresentation.d.ts +30 -0
  41. package/dist/types/src/generated/types/FormVerificationFieldListRepresentation.d.ts +30 -0
  42. package/dist/types/src/generated/types/FormVerificationFieldOutputRepresentation.d.ts +35 -0
  43. package/dist/types/src/generated/types/FormVerificationFieldRepresentation.d.ts +35 -0
  44. package/dist/types/src/generated/types/FormVerificationInputRepresentation.d.ts +36 -0
  45. package/dist/types/src/generated/types/FormVerificationOutputRepresentation.d.ts +59 -0
  46. package/dist/types/src/generated/types/FormVerificationReferenceRecordDetailsOutput.d.ts +32 -0
  47. package/dist/types/src/generated/types/FormVerificationRepresentation.d.ts +50 -0
  48. package/dist/types/src/generated/types/JoinVideoCallInputRepresentation.d.ts +38 -0
  49. package/dist/types/src/generated/types/JoinVideoCallResultRepresentation.d.ts +40 -0
  50. package/dist/types/src/generated/types/LeaveVideoCallInputRepresentation.d.ts +32 -0
  51. package/dist/types/src/generated/types/LeaveVideoCallResultRepresentation.d.ts +32 -0
  52. package/dist/types/src/generated/types/LinkedObjectFieldsMapInputRepresentation.d.ts +33 -0
  53. package/dist/types/src/generated/types/NotifyAccessResultRepresentation.d.ts +38 -0
  54. package/dist/types/src/generated/types/PageSpecification.d.ts +35 -0
  55. package/dist/types/src/generated/types/PageSpecificationListInputRepresentation.d.ts +29 -0
  56. package/dist/types/src/generated/types/ProcessDefinitionInputRepresentation.d.ts +32 -0
  57. package/dist/types/src/generated/types/ProcessDefinitionOutputRepresentation.d.ts +33 -0
  58. package/dist/types/src/generated/types/ProcessDetailInputRepresentation.d.ts +71 -0
  59. package/dist/types/src/generated/types/ProcessDetailListInputRepresentation.d.ts +30 -0
  60. package/dist/types/src/generated/types/ProcessDetailOutputRepresentation.d.ts +71 -0
  61. package/dist/types/src/generated/types/SearchFieldRepresentation.d.ts +32 -0
  62. package/dist/types/src/generated/types/SearchFilterInputRepresentation.d.ts +32 -0
  63. package/dist/types/src/generated/types/SearchFilterListInputRepresentation.d.ts +30 -0
  64. package/dist/types/src/generated/types/SearchInputRepresentation.d.ts +36 -0
  65. package/dist/types/src/generated/types/SearchOutputRepresentation.d.ts +50 -0
  66. package/dist/types/src/generated/types/SearchResultHeaderRepresentation.d.ts +35 -0
  67. package/dist/types/src/generated/types/SearchResultRepresentation.d.ts +30 -0
  68. package/dist/types/src/generated/types/SearchWrapperInputRepresentation.d.ts +30 -0
  69. package/dist/types/src/generated/types/SelectedSearchResultInputRepresentation.d.ts +36 -0
  70. package/dist/types/src/generated/types/SelectedSearchResultOutputRepresentation.d.ts +36 -0
  71. package/dist/types/src/generated/types/SelectedVerifiedResultInputRepresentation.d.ts +29 -0
  72. package/dist/types/src/generated/types/SelectedVerifiedResultOutputRepresentation.d.ts +30 -0
  73. package/dist/types/src/generated/types/SetupCallInputRepresentation.d.ts +39 -0
  74. package/dist/types/src/generated/types/SetupCallResultRepresentation.d.ts +39 -0
  75. package/dist/types/src/generated/types/TimelineDataGetResultRepresentation.d.ts +44 -0
  76. package/dist/types/src/generated/types/TimelineElementRepresentation.d.ts +35 -0
  77. package/dist/types/src/generated/types/TimelineEntityRepresentation.d.ts +44 -0
  78. package/dist/types/src/generated/types/TimelineErrorRepresentation.d.ts +32 -0
  79. package/dist/types/src/generated/types/TimelineEventFieldRepresentation.d.ts +32 -0
  80. package/dist/types/src/generated/types/TimelineEventRepresentation.d.ts +45 -0
  81. package/dist/types/src/generated/types/TimelineEventTypeMetadataRepresentation.d.ts +54 -0
  82. package/dist/types/src/generated/types/TimelineEventTypeRepresentation.d.ts +32 -0
  83. package/dist/types/src/generated/types/TimelineMetadataDefinitionRepresentation.d.ts +43 -0
  84. package/dist/types/src/generated/types/TimelineMetadataResultRepresentation.d.ts +37 -0
  85. package/dist/types/src/generated/types/UpdateVideoCallInputRepresentation.d.ts +32 -0
  86. package/dist/types/src/generated/types/UpdateVideoCallResultRepresentation.d.ts +32 -0
  87. package/dist/types/src/generated/types/ValidateSignatureInputRepresentation.d.ts +29 -0
  88. package/dist/types/src/generated/types/ValidateSignatureResultRepresentation.d.ts +35 -0
  89. package/dist/types/src/generated/types/VerificationContextInputRepresentation.d.ts +41 -0
  90. package/dist/types/src/generated/types/VerificationContextOutputRepresentation.d.ts +57 -0
  91. package/dist/types/src/generated/types/VerificationContextWrapperInputRepresentation.d.ts +30 -0
  92. package/dist/types/src/generated/types/VerificationProcessFieldInputRepresentation.d.ts +50 -0
  93. package/dist/types/src/generated/types/VerificationProcessFieldListInputRepresentation.d.ts +30 -0
  94. package/dist/types/src/generated/types/VerificationProcessFieldListOutputRepresentation.d.ts +30 -0
  95. package/dist/types/src/generated/types/VerificationProcessFieldOutputRepresentation.d.ts +50 -0
  96. package/dist/types/src/generated/types/VerifiedDetailsInputRepresentation.d.ts +38 -0
  97. package/dist/types/src/generated/types/VerifiedDetailsListInputRepresentation.d.ts +30 -0
  98. package/dist/types/src/generated/types/VerifiedDetailsOutputRepresentation.d.ts +38 -0
  99. package/dist/types/src/generated/types/VerifiedResultInputRepresentation.d.ts +31 -0
  100. package/dist/types/src/generated/types/VerifiedResultOutputRepresentation.d.ts +33 -0
  101. package/dist/types/src/generated/types/VerifierInputRepresentation.d.ts +32 -0
  102. package/dist/types/src/generated/types/VerifierListInputRepresentation.d.ts +30 -0
  103. package/dist/types/src/generated/types/VerifierOutputRepresentation.d.ts +32 -0
  104. package/dist/types/src/generated/types/VideoCallParticipantFieldRepresentation.d.ts +38 -0
  105. package/dist/types/src/generated/types/VideoCallParticipantRepresentation.d.ts +36 -0
  106. package/dist/types/src/generated/types/VideoCallParticipantResultRepresentation.d.ts +33 -0
  107. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  108. package/dist/umd/es2018/industries-identityverification.js +2881 -0
  109. package/dist/umd/es5/industries-identityverification.js +2920 -0
  110. package/package.json +66 -0
  111. package/sfdc/index.d.ts +1 -0
  112. package/sfdc/index.js +2906 -0
  113. package/src/raml/api.raml +1521 -0
  114. package/src/raml/luvio.raml +42 -0
@@ -0,0 +1,2870 @@
1
+ /**
2
+ * Copyright (c) 2022, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ import { serializeStructuredKey, StoreKeyMap } from '@luvio/engine';
8
+
9
+ const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
+ const { keys: ObjectKeys$1, freeze: ObjectFreeze$1, create: ObjectCreate$1 } = Object;
11
+ const { isArray: ArrayIsArray$1 } = Array;
12
+ /**
13
+ * Validates an adapter config is well-formed.
14
+ * @param config The config to validate.
15
+ * @param adapter The adapter validation configuration.
16
+ * @param oneOf The keys the config must contain at least one of.
17
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
18
+ */
19
+ function validateConfig(config, adapter, oneOf) {
20
+ const { displayName } = adapter;
21
+ const { required, optional, unsupported } = adapter.parameters;
22
+ if (config === undefined ||
23
+ required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
24
+ throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
25
+ }
26
+ if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
27
+ throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
28
+ }
29
+ if (unsupported !== undefined &&
30
+ unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
31
+ throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
32
+ }
33
+ const supported = required.concat(optional);
34
+ if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
35
+ throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
36
+ }
37
+ }
38
+ function untrustedIsObject(untrusted) {
39
+ return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
40
+ }
41
+ function areRequiredParametersPresent(config, configPropertyNames) {
42
+ return configPropertyNames.parameters.required.every(req => req in config);
43
+ }
44
+ const keyPrefix = 'IdentityVerification';
45
+
46
+ const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
47
+ const { isArray: ArrayIsArray } = Array;
48
+ function equalsArray(a, b, equalsItem) {
49
+ const aLength = a.length;
50
+ const bLength = b.length;
51
+ if (aLength !== bLength) {
52
+ return false;
53
+ }
54
+ for (let i = 0; i < aLength; i++) {
55
+ if (equalsItem(a[i], b[i]) === false) {
56
+ return false;
57
+ }
58
+ }
59
+ return true;
60
+ }
61
+ function deepFreeze(value) {
62
+ // No need to freeze primitives
63
+ if (typeof value !== 'object' || value === null) {
64
+ return;
65
+ }
66
+ if (ArrayIsArray(value)) {
67
+ for (let i = 0, len = value.length; i < len; i += 1) {
68
+ deepFreeze(value[i]);
69
+ }
70
+ }
71
+ else {
72
+ const keys = ObjectKeys(value);
73
+ for (let i = 0, len = keys.length; i < len; i += 1) {
74
+ deepFreeze(value[keys[i]]);
75
+ }
76
+ }
77
+ ObjectFreeze(value);
78
+ }
79
+ function createLink(ref) {
80
+ return {
81
+ __ref: serializeStructuredKey(ref),
82
+ };
83
+ }
84
+
85
+ function validate$C(obj, path = 'VerifiedDetailsInputRepresentation') {
86
+ const v_error = (() => {
87
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
88
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
89
+ }
90
+ const obj_label = obj.label;
91
+ const path_label = path + '.label';
92
+ if (typeof obj_label !== 'string') {
93
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
94
+ }
95
+ const obj_processDetailName = obj.processDetailName;
96
+ const path_processDetailName = path + '.processDetailName';
97
+ if (typeof obj_processDetailName !== 'string') {
98
+ return new TypeError('Expected "string" but received "' + typeof obj_processDetailName + '" (at "' + path_processDetailName + '")');
99
+ }
100
+ const obj_searchObjectName = obj.searchObjectName;
101
+ const path_searchObjectName = path + '.searchObjectName';
102
+ if (typeof obj_searchObjectName !== 'string') {
103
+ return new TypeError('Expected "string" but received "' + typeof obj_searchObjectName + '" (at "' + path_searchObjectName + '")');
104
+ }
105
+ const obj_verifiedId = obj.verifiedId;
106
+ const path_verifiedId = path + '.verifiedId';
107
+ if (typeof obj_verifiedId !== 'string') {
108
+ return new TypeError('Expected "string" but received "' + typeof obj_verifiedId + '" (at "' + path_verifiedId + '")');
109
+ }
110
+ })();
111
+ return v_error === undefined ? null : v_error;
112
+ }
113
+
114
+ function validate$B(obj, path = 'VerifiedDetailsListInputRepresentation') {
115
+ const v_error = (() => {
116
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
117
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
118
+ }
119
+ const obj_verifiedDetailsList = obj.verifiedDetailsList;
120
+ const path_verifiedDetailsList = path + '.verifiedDetailsList';
121
+ if (!ArrayIsArray(obj_verifiedDetailsList)) {
122
+ return new TypeError('Expected "array" but received "' + typeof obj_verifiedDetailsList + '" (at "' + path_verifiedDetailsList + '")');
123
+ }
124
+ for (let i = 0; i < obj_verifiedDetailsList.length; i++) {
125
+ const obj_verifiedDetailsList_item = obj_verifiedDetailsList[i];
126
+ const path_verifiedDetailsList_item = path_verifiedDetailsList + '[' + i + ']';
127
+ const referencepath_verifiedDetailsList_itemValidationError = validate$C(obj_verifiedDetailsList_item, path_verifiedDetailsList_item);
128
+ if (referencepath_verifiedDetailsList_itemValidationError !== null) {
129
+ let message = 'Object doesn\'t match VerifiedDetailsInputRepresentation (at "' + path_verifiedDetailsList_item + '")\n';
130
+ message += referencepath_verifiedDetailsList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
131
+ return new TypeError(message);
132
+ }
133
+ }
134
+ })();
135
+ return v_error === undefined ? null : v_error;
136
+ }
137
+
138
+ function validate$A(obj, path = 'SelectedVerifiedResultInputRepresentation') {
139
+ const v_error = (() => {
140
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
141
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
142
+ }
143
+ const obj_verifiedDetails = obj.verifiedDetails;
144
+ const path_verifiedDetails = path + '.verifiedDetails';
145
+ const referencepath_verifiedDetailsValidationError = validate$B(obj_verifiedDetails, path_verifiedDetails);
146
+ if (referencepath_verifiedDetailsValidationError !== null) {
147
+ let message = 'Object doesn\'t match VerifiedDetailsListInputRepresentation (at "' + path_verifiedDetails + '")\n';
148
+ message += referencepath_verifiedDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
149
+ return new TypeError(message);
150
+ }
151
+ })();
152
+ return v_error === undefined ? null : v_error;
153
+ }
154
+
155
+ function validate$z(obj, path = 'BuildVerificationContextInputRepresentation') {
156
+ const v_error = (() => {
157
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
158
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
159
+ }
160
+ const obj_objectName = obj.objectName;
161
+ const path_objectName = path + '.objectName';
162
+ if (typeof obj_objectName !== 'string') {
163
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
164
+ }
165
+ const obj_processDetailName = obj.processDetailName;
166
+ const path_processDetailName = path + '.processDetailName';
167
+ if (typeof obj_processDetailName !== 'string') {
168
+ return new TypeError('Expected "string" but received "' + typeof obj_processDetailName + '" (at "' + path_processDetailName + '")');
169
+ }
170
+ const obj_selectedRecordId = obj.selectedRecordId;
171
+ const path_selectedRecordId = path + '.selectedRecordId';
172
+ if (typeof obj_selectedRecordId !== 'string') {
173
+ return new TypeError('Expected "string" but received "' + typeof obj_selectedRecordId + '" (at "' + path_selectedRecordId + '")');
174
+ }
175
+ const obj_selectedVerifiedResult = obj.selectedVerifiedResult;
176
+ const path_selectedVerifiedResult = path + '.selectedVerifiedResult';
177
+ const referencepath_selectedVerifiedResultValidationError = validate$A(obj_selectedVerifiedResult, path_selectedVerifiedResult);
178
+ if (referencepath_selectedVerifiedResultValidationError !== null) {
179
+ let message = 'Object doesn\'t match SelectedVerifiedResultInputRepresentation (at "' + path_selectedVerifiedResult + '")\n';
180
+ message += referencepath_selectedVerifiedResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
181
+ return new TypeError(message);
182
+ }
183
+ })();
184
+ return v_error === undefined ? null : v_error;
185
+ }
186
+
187
+ const VERSION$j = "c595fd97010460844d185ee75e1583dd";
188
+ function validate$y(obj, path = 'VerificationProcessFieldOutputRepresentation') {
189
+ const v_error = (() => {
190
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
191
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
192
+ }
193
+ const obj_dataSourceType = obj.dataSourceType;
194
+ const path_dataSourceType = path + '.dataSourceType';
195
+ if (typeof obj_dataSourceType !== 'string') {
196
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSourceType + '" (at "' + path_dataSourceType + '")');
197
+ }
198
+ const obj_dataType = obj.dataType;
199
+ const path_dataType = path + '.dataType';
200
+ if (typeof obj_dataType !== 'string') {
201
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
202
+ }
203
+ const obj_developerName = obj.developerName;
204
+ const path_developerName = path + '.developerName';
205
+ if (typeof obj_developerName !== 'string') {
206
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
207
+ }
208
+ const obj_fieldName = obj.fieldName;
209
+ const path_fieldName = path + '.fieldName';
210
+ if (typeof obj_fieldName !== 'string') {
211
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
212
+ }
213
+ const obj_fieldType = obj.fieldType;
214
+ const path_fieldType = path + '.fieldType';
215
+ if (typeof obj_fieldType !== 'string') {
216
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
217
+ }
218
+ const obj_fieldValueFormula = obj.fieldValueFormula;
219
+ const path_fieldValueFormula = path + '.fieldValueFormula';
220
+ if (typeof obj_fieldValueFormula !== 'string') {
221
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldValueFormula + '" (at "' + path_fieldValueFormula + '")');
222
+ }
223
+ const obj_isManualInput = obj.isManualInput;
224
+ const path_isManualInput = path + '.isManualInput';
225
+ if (typeof obj_isManualInput !== 'boolean') {
226
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isManualInput + '" (at "' + path_isManualInput + '")');
227
+ }
228
+ const obj_label = obj.label;
229
+ const path_label = path + '.label';
230
+ if (typeof obj_label !== 'string') {
231
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
232
+ }
233
+ })();
234
+ return v_error === undefined ? null : v_error;
235
+ }
236
+ const select$n = function VerificationProcessFieldOutputRepresentationSelect() {
237
+ return {
238
+ kind: 'Fragment',
239
+ version: VERSION$j,
240
+ private: [],
241
+ selections: [
242
+ {
243
+ name: 'dataSourceType',
244
+ kind: 'Scalar'
245
+ },
246
+ {
247
+ name: 'dataType',
248
+ kind: 'Scalar'
249
+ },
250
+ {
251
+ name: 'developerName',
252
+ kind: 'Scalar'
253
+ },
254
+ {
255
+ name: 'fieldName',
256
+ kind: 'Scalar'
257
+ },
258
+ {
259
+ name: 'fieldType',
260
+ kind: 'Scalar'
261
+ },
262
+ {
263
+ name: 'fieldValueFormula',
264
+ kind: 'Scalar'
265
+ },
266
+ {
267
+ name: 'isManualInput',
268
+ kind: 'Scalar'
269
+ },
270
+ {
271
+ name: 'label',
272
+ kind: 'Scalar'
273
+ }
274
+ ]
275
+ };
276
+ };
277
+ function equals$j(existing, incoming) {
278
+ const existing_isManualInput = existing.isManualInput;
279
+ const incoming_isManualInput = incoming.isManualInput;
280
+ if (!(existing_isManualInput === incoming_isManualInput)) {
281
+ return false;
282
+ }
283
+ const existing_dataSourceType = existing.dataSourceType;
284
+ const incoming_dataSourceType = incoming.dataSourceType;
285
+ if (!(existing_dataSourceType === incoming_dataSourceType)) {
286
+ return false;
287
+ }
288
+ const existing_dataType = existing.dataType;
289
+ const incoming_dataType = incoming.dataType;
290
+ if (!(existing_dataType === incoming_dataType)) {
291
+ return false;
292
+ }
293
+ const existing_developerName = existing.developerName;
294
+ const incoming_developerName = incoming.developerName;
295
+ if (!(existing_developerName === incoming_developerName)) {
296
+ return false;
297
+ }
298
+ const existing_fieldName = existing.fieldName;
299
+ const incoming_fieldName = incoming.fieldName;
300
+ if (!(existing_fieldName === incoming_fieldName)) {
301
+ return false;
302
+ }
303
+ const existing_fieldType = existing.fieldType;
304
+ const incoming_fieldType = incoming.fieldType;
305
+ if (!(existing_fieldType === incoming_fieldType)) {
306
+ return false;
307
+ }
308
+ const existing_fieldValueFormula = existing.fieldValueFormula;
309
+ const incoming_fieldValueFormula = incoming.fieldValueFormula;
310
+ if (!(existing_fieldValueFormula === incoming_fieldValueFormula)) {
311
+ return false;
312
+ }
313
+ const existing_label = existing.label;
314
+ const incoming_label = incoming.label;
315
+ if (!(existing_label === incoming_label)) {
316
+ return false;
317
+ }
318
+ return true;
319
+ }
320
+
321
+ const VERSION$i = "0310ab1b6460c0c1d3e08e7d3b6232e6";
322
+ function validate$x(obj, path = 'VerificationProcessFieldListOutputRepresentation') {
323
+ const v_error = (() => {
324
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
325
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
326
+ }
327
+ const obj_verificationProcessFields = obj.verificationProcessFields;
328
+ const path_verificationProcessFields = path + '.verificationProcessFields';
329
+ if (!ArrayIsArray(obj_verificationProcessFields)) {
330
+ return new TypeError('Expected "array" but received "' + typeof obj_verificationProcessFields + '" (at "' + path_verificationProcessFields + '")');
331
+ }
332
+ for (let i = 0; i < obj_verificationProcessFields.length; i++) {
333
+ const obj_verificationProcessFields_item = obj_verificationProcessFields[i];
334
+ const path_verificationProcessFields_item = path_verificationProcessFields + '[' + i + ']';
335
+ const referencepath_verificationProcessFields_itemValidationError = validate$y(obj_verificationProcessFields_item, path_verificationProcessFields_item);
336
+ if (referencepath_verificationProcessFields_itemValidationError !== null) {
337
+ let message = 'Object doesn\'t match VerificationProcessFieldOutputRepresentation (at "' + path_verificationProcessFields_item + '")\n';
338
+ message += referencepath_verificationProcessFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
339
+ return new TypeError(message);
340
+ }
341
+ }
342
+ })();
343
+ return v_error === undefined ? null : v_error;
344
+ }
345
+ const select$m = function VerificationProcessFieldListOutputRepresentationSelect() {
346
+ const { selections: VerificationProcessFieldOutputRepresentation__selections, opaque: VerificationProcessFieldOutputRepresentation__opaque, } = select$n();
347
+ return {
348
+ kind: 'Fragment',
349
+ version: VERSION$i,
350
+ private: [],
351
+ selections: [
352
+ {
353
+ name: 'verificationProcessFields',
354
+ kind: 'Object',
355
+ plural: true,
356
+ selections: VerificationProcessFieldOutputRepresentation__selections
357
+ }
358
+ ]
359
+ };
360
+ };
361
+ function equals$i(existing, incoming) {
362
+ const existing_verificationProcessFields = existing.verificationProcessFields;
363
+ const incoming_verificationProcessFields = incoming.verificationProcessFields;
364
+ const equals_verificationProcessFields_items = equalsArray(existing_verificationProcessFields, incoming_verificationProcessFields, (existing_verificationProcessFields_item, incoming_verificationProcessFields_item) => {
365
+ if (!(equals$j(existing_verificationProcessFields_item, incoming_verificationProcessFields_item))) {
366
+ return false;
367
+ }
368
+ });
369
+ if (equals_verificationProcessFields_items === false) {
370
+ return false;
371
+ }
372
+ return true;
373
+ }
374
+
375
+ const VERSION$h = "9219dba4840bf4da4a41add2d5913d0e";
376
+ function validate$w(obj, path = 'ProcessDetailOutputRepresentation') {
377
+ const v_error = (() => {
378
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
379
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
380
+ }
381
+ const obj_apexClassName = obj.apexClassName;
382
+ const path_apexClassName = path + '.apexClassName';
383
+ if (typeof obj_apexClassName !== 'string') {
384
+ return new TypeError('Expected "string" but received "' + typeof obj_apexClassName + '" (at "' + path_apexClassName + '")');
385
+ }
386
+ const obj_dataSourceType = obj.dataSourceType;
387
+ const path_dataSourceType = path + '.dataSourceType';
388
+ if (typeof obj_dataSourceType !== 'string') {
389
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSourceType + '" (at "' + path_dataSourceType + '")');
390
+ }
391
+ const obj_developerName = obj.developerName;
392
+ const path_developerName = path + '.developerName';
393
+ if (typeof obj_developerName !== 'string') {
394
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
395
+ }
396
+ const obj_isRetryAllowedAfterLimit = obj.isRetryAllowedAfterLimit;
397
+ const path_isRetryAllowedAfterLimit = path + '.isRetryAllowedAfterLimit';
398
+ if (typeof obj_isRetryAllowedAfterLimit !== 'boolean') {
399
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRetryAllowedAfterLimit + '" (at "' + path_isRetryAllowedAfterLimit + '")');
400
+ }
401
+ const obj_label = obj.label;
402
+ const path_label = path + '.label';
403
+ if (typeof obj_label !== 'string') {
404
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
405
+ }
406
+ const obj_linkedVerificationProcessDetailName = obj.linkedVerificationProcessDetailName;
407
+ const path_linkedVerificationProcessDetailName = path + '.linkedVerificationProcessDetailName';
408
+ if (typeof obj_linkedVerificationProcessDetailName !== 'string') {
409
+ return new TypeError('Expected "string" but received "' + typeof obj_linkedVerificationProcessDetailName + '" (at "' + path_linkedVerificationProcessDetailName + '")');
410
+ }
411
+ const obj_optionalVerifierCount = obj.optionalVerifierCount;
412
+ const path_optionalVerifierCount = path + '.optionalVerifierCount';
413
+ if (typeof obj_optionalVerifierCount !== 'number' || (typeof obj_optionalVerifierCount === 'number' && Math.floor(obj_optionalVerifierCount) !== obj_optionalVerifierCount)) {
414
+ return new TypeError('Expected "integer" but received "' + typeof obj_optionalVerifierCount + '" (at "' + path_optionalVerifierCount + '")');
415
+ }
416
+ const obj_retryLimit = obj.retryLimit;
417
+ const path_retryLimit = path + '.retryLimit';
418
+ if (typeof obj_retryLimit !== 'number' || (typeof obj_retryLimit === 'number' && Math.floor(obj_retryLimit) !== obj_retryLimit)) {
419
+ return new TypeError('Expected "integer" but received "' + typeof obj_retryLimit + '" (at "' + path_retryLimit + '")');
420
+ }
421
+ const obj_searchObjectName = obj.searchObjectName;
422
+ const path_searchObjectName = path + '.searchObjectName';
423
+ if (typeof obj_searchObjectName !== 'string') {
424
+ return new TypeError('Expected "string" but received "' + typeof obj_searchObjectName + '" (at "' + path_searchObjectName + '")');
425
+ }
426
+ const obj_searchResultFilter = obj.searchResultFilter;
427
+ const path_searchResultFilter = path + '.searchResultFilter';
428
+ if (typeof obj_searchResultFilter !== 'string') {
429
+ return new TypeError('Expected "string" but received "' + typeof obj_searchResultFilter + '" (at "' + path_searchResultFilter + '")');
430
+ }
431
+ const obj_searchResultSortOrder = obj.searchResultSortOrder;
432
+ const path_searchResultSortOrder = path + '.searchResultSortOrder';
433
+ if (typeof obj_searchResultSortOrder !== 'string') {
434
+ return new TypeError('Expected "string" but received "' + typeof obj_searchResultSortOrder + '" (at "' + path_searchResultSortOrder + '")');
435
+ }
436
+ const obj_searchResultUniqueIdField = obj.searchResultUniqueIdField;
437
+ const path_searchResultUniqueIdField = path + '.searchResultUniqueIdField';
438
+ if (typeof obj_searchResultUniqueIdField !== 'string') {
439
+ return new TypeError('Expected "string" but received "' + typeof obj_searchResultUniqueIdField + '" (at "' + path_searchResultUniqueIdField + '")');
440
+ }
441
+ const obj_searchSequenceNo = obj.searchSequenceNo;
442
+ const path_searchSequenceNo = path + '.searchSequenceNo';
443
+ if (typeof obj_searchSequenceNo !== 'number' || (typeof obj_searchSequenceNo === 'number' && Math.floor(obj_searchSequenceNo) !== obj_searchSequenceNo)) {
444
+ return new TypeError('Expected "integer" but received "' + typeof obj_searchSequenceNo + '" (at "' + path_searchSequenceNo + '")');
445
+ }
446
+ const obj_searchType = obj.searchType;
447
+ const path_searchType = path + '.searchType';
448
+ if (typeof obj_searchType !== 'string') {
449
+ return new TypeError('Expected "string" but received "' + typeof obj_searchType + '" (at "' + path_searchType + '")');
450
+ }
451
+ const obj_verificationProcessFieldList = obj.verificationProcessFieldList;
452
+ const path_verificationProcessFieldList = path + '.verificationProcessFieldList';
453
+ const referencepath_verificationProcessFieldListValidationError = validate$x(obj_verificationProcessFieldList, path_verificationProcessFieldList);
454
+ if (referencepath_verificationProcessFieldListValidationError !== null) {
455
+ let message = 'Object doesn\'t match VerificationProcessFieldListOutputRepresentation (at "' + path_verificationProcessFieldList + '")\n';
456
+ message += referencepath_verificationProcessFieldListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
457
+ return new TypeError(message);
458
+ }
459
+ })();
460
+ return v_error === undefined ? null : v_error;
461
+ }
462
+ const select$l = function ProcessDetailOutputRepresentationSelect() {
463
+ const { selections: VerificationProcessFieldListOutputRepresentation__selections, opaque: VerificationProcessFieldListOutputRepresentation__opaque, } = select$m();
464
+ return {
465
+ kind: 'Fragment',
466
+ version: VERSION$h,
467
+ private: [],
468
+ selections: [
469
+ {
470
+ name: 'apexClassName',
471
+ kind: 'Scalar'
472
+ },
473
+ {
474
+ name: 'dataSourceType',
475
+ kind: 'Scalar'
476
+ },
477
+ {
478
+ name: 'developerName',
479
+ kind: 'Scalar'
480
+ },
481
+ {
482
+ name: 'isRetryAllowedAfterLimit',
483
+ kind: 'Scalar'
484
+ },
485
+ {
486
+ name: 'label',
487
+ kind: 'Scalar'
488
+ },
489
+ {
490
+ name: 'linkedVerificationProcessDetailName',
491
+ kind: 'Scalar'
492
+ },
493
+ {
494
+ name: 'optionalVerifierCount',
495
+ kind: 'Scalar'
496
+ },
497
+ {
498
+ name: 'retryLimit',
499
+ kind: 'Scalar'
500
+ },
501
+ {
502
+ name: 'searchObjectName',
503
+ kind: 'Scalar'
504
+ },
505
+ {
506
+ name: 'searchResultFilter',
507
+ kind: 'Scalar'
508
+ },
509
+ {
510
+ name: 'searchResultSortOrder',
511
+ kind: 'Scalar'
512
+ },
513
+ {
514
+ name: 'searchResultUniqueIdField',
515
+ kind: 'Scalar'
516
+ },
517
+ {
518
+ name: 'searchSequenceNo',
519
+ kind: 'Scalar'
520
+ },
521
+ {
522
+ name: 'searchType',
523
+ kind: 'Scalar'
524
+ },
525
+ {
526
+ name: 'verificationProcessFieldList',
527
+ kind: 'Object',
528
+ selections: VerificationProcessFieldListOutputRepresentation__selections
529
+ }
530
+ ]
531
+ };
532
+ };
533
+ function equals$h(existing, incoming) {
534
+ const existing_isRetryAllowedAfterLimit = existing.isRetryAllowedAfterLimit;
535
+ const incoming_isRetryAllowedAfterLimit = incoming.isRetryAllowedAfterLimit;
536
+ if (!(existing_isRetryAllowedAfterLimit === incoming_isRetryAllowedAfterLimit)) {
537
+ return false;
538
+ }
539
+ const existing_optionalVerifierCount = existing.optionalVerifierCount;
540
+ const incoming_optionalVerifierCount = incoming.optionalVerifierCount;
541
+ if (!(existing_optionalVerifierCount === incoming_optionalVerifierCount)) {
542
+ return false;
543
+ }
544
+ const existing_retryLimit = existing.retryLimit;
545
+ const incoming_retryLimit = incoming.retryLimit;
546
+ if (!(existing_retryLimit === incoming_retryLimit)) {
547
+ return false;
548
+ }
549
+ const existing_searchSequenceNo = existing.searchSequenceNo;
550
+ const incoming_searchSequenceNo = incoming.searchSequenceNo;
551
+ if (!(existing_searchSequenceNo === incoming_searchSequenceNo)) {
552
+ return false;
553
+ }
554
+ const existing_apexClassName = existing.apexClassName;
555
+ const incoming_apexClassName = incoming.apexClassName;
556
+ if (!(existing_apexClassName === incoming_apexClassName)) {
557
+ return false;
558
+ }
559
+ const existing_dataSourceType = existing.dataSourceType;
560
+ const incoming_dataSourceType = incoming.dataSourceType;
561
+ if (!(existing_dataSourceType === incoming_dataSourceType)) {
562
+ return false;
563
+ }
564
+ const existing_developerName = existing.developerName;
565
+ const incoming_developerName = incoming.developerName;
566
+ if (!(existing_developerName === incoming_developerName)) {
567
+ return false;
568
+ }
569
+ const existing_label = existing.label;
570
+ const incoming_label = incoming.label;
571
+ if (!(existing_label === incoming_label)) {
572
+ return false;
573
+ }
574
+ const existing_linkedVerificationProcessDetailName = existing.linkedVerificationProcessDetailName;
575
+ const incoming_linkedVerificationProcessDetailName = incoming.linkedVerificationProcessDetailName;
576
+ if (!(existing_linkedVerificationProcessDetailName === incoming_linkedVerificationProcessDetailName)) {
577
+ return false;
578
+ }
579
+ const existing_searchObjectName = existing.searchObjectName;
580
+ const incoming_searchObjectName = incoming.searchObjectName;
581
+ if (!(existing_searchObjectName === incoming_searchObjectName)) {
582
+ return false;
583
+ }
584
+ const existing_searchResultFilter = existing.searchResultFilter;
585
+ const incoming_searchResultFilter = incoming.searchResultFilter;
586
+ if (!(existing_searchResultFilter === incoming_searchResultFilter)) {
587
+ return false;
588
+ }
589
+ const existing_searchResultSortOrder = existing.searchResultSortOrder;
590
+ const incoming_searchResultSortOrder = incoming.searchResultSortOrder;
591
+ if (!(existing_searchResultSortOrder === incoming_searchResultSortOrder)) {
592
+ return false;
593
+ }
594
+ const existing_searchResultUniqueIdField = existing.searchResultUniqueIdField;
595
+ const incoming_searchResultUniqueIdField = incoming.searchResultUniqueIdField;
596
+ if (!(existing_searchResultUniqueIdField === incoming_searchResultUniqueIdField)) {
597
+ return false;
598
+ }
599
+ const existing_searchType = existing.searchType;
600
+ const incoming_searchType = incoming.searchType;
601
+ if (!(existing_searchType === incoming_searchType)) {
602
+ return false;
603
+ }
604
+ const existing_verificationProcessFieldList = existing.verificationProcessFieldList;
605
+ const incoming_verificationProcessFieldList = incoming.verificationProcessFieldList;
606
+ if (!(equals$i(existing_verificationProcessFieldList, incoming_verificationProcessFieldList))) {
607
+ return false;
608
+ }
609
+ return true;
610
+ }
611
+
612
+ const VERSION$g = "f7df3d7baee20ea55d31cd2684bcd53c";
613
+ function validate$v(obj, path = 'ProcessDefinitionOutputRepresentation') {
614
+ const v_error = (() => {
615
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
616
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
617
+ }
618
+ const obj_layoutType = obj.layoutType;
619
+ const path_layoutType = path + '.layoutType';
620
+ if (typeof obj_layoutType !== 'string') {
621
+ return new TypeError('Expected "string" but received "' + typeof obj_layoutType + '" (at "' + path_layoutType + '")');
622
+ }
623
+ const obj_processDetail = obj.processDetail;
624
+ const path_processDetail = path + '.processDetail';
625
+ if (!ArrayIsArray(obj_processDetail)) {
626
+ return new TypeError('Expected "array" but received "' + typeof obj_processDetail + '" (at "' + path_processDetail + '")');
627
+ }
628
+ for (let i = 0; i < obj_processDetail.length; i++) {
629
+ const obj_processDetail_item = obj_processDetail[i];
630
+ const path_processDetail_item = path_processDetail + '[' + i + ']';
631
+ const referencepath_processDetail_itemValidationError = validate$w(obj_processDetail_item, path_processDetail_item);
632
+ if (referencepath_processDetail_itemValidationError !== null) {
633
+ let message = 'Object doesn\'t match ProcessDetailOutputRepresentation (at "' + path_processDetail_item + '")\n';
634
+ message += referencepath_processDetail_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
635
+ return new TypeError(message);
636
+ }
637
+ }
638
+ })();
639
+ return v_error === undefined ? null : v_error;
640
+ }
641
+ const select$k = function ProcessDefinitionOutputRepresentationSelect() {
642
+ const { selections: ProcessDetailOutputRepresentation__selections, opaque: ProcessDetailOutputRepresentation__opaque, } = select$l();
643
+ return {
644
+ kind: 'Fragment',
645
+ version: VERSION$g,
646
+ private: [],
647
+ selections: [
648
+ {
649
+ name: 'layoutType',
650
+ kind: 'Scalar'
651
+ },
652
+ {
653
+ name: 'processDetail',
654
+ kind: 'Object',
655
+ plural: true,
656
+ selections: ProcessDetailOutputRepresentation__selections
657
+ }
658
+ ]
659
+ };
660
+ };
661
+ function equals$g(existing, incoming) {
662
+ const existing_layoutType = existing.layoutType;
663
+ const incoming_layoutType = incoming.layoutType;
664
+ if (!(existing_layoutType === incoming_layoutType)) {
665
+ return false;
666
+ }
667
+ const existing_processDetail = existing.processDetail;
668
+ const incoming_processDetail = incoming.processDetail;
669
+ const equals_processDetail_items = equalsArray(existing_processDetail, incoming_processDetail, (existing_processDetail_item, incoming_processDetail_item) => {
670
+ if (!(equals$h(existing_processDetail_item, incoming_processDetail_item))) {
671
+ return false;
672
+ }
673
+ });
674
+ if (equals_processDetail_items === false) {
675
+ return false;
676
+ }
677
+ return true;
678
+ }
679
+
680
+ const VERSION$f = "8b8bce7690509ff818bf0ca770bf2b1a";
681
+ function validate$u(obj, path = 'FieldValueOutputRepresentation') {
682
+ const v_error = (() => {
683
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
684
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
685
+ }
686
+ const obj_developerName = obj.developerName;
687
+ const path_developerName = path + '.developerName';
688
+ if (typeof obj_developerName !== 'string') {
689
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
690
+ }
691
+ const obj_value = obj.value;
692
+ const path_value = path + '.value';
693
+ if (typeof obj_value !== 'string') {
694
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
695
+ }
696
+ })();
697
+ return v_error === undefined ? null : v_error;
698
+ }
699
+ const select$j = function FieldValueOutputRepresentationSelect() {
700
+ return {
701
+ kind: 'Fragment',
702
+ version: VERSION$f,
703
+ private: [],
704
+ selections: [
705
+ {
706
+ name: 'developerName',
707
+ kind: 'Scalar'
708
+ },
709
+ {
710
+ name: 'value',
711
+ kind: 'Scalar'
712
+ }
713
+ ]
714
+ };
715
+ };
716
+ function equals$f(existing, incoming) {
717
+ const existing_developerName = existing.developerName;
718
+ const incoming_developerName = incoming.developerName;
719
+ if (!(existing_developerName === incoming_developerName)) {
720
+ return false;
721
+ }
722
+ const existing_value = existing.value;
723
+ const incoming_value = incoming.value;
724
+ if (!(existing_value === incoming_value)) {
725
+ return false;
726
+ }
727
+ return true;
728
+ }
729
+
730
+ const VERSION$e = "93eaa497fcedcc99a5063892dd5a4efa";
731
+ function validate$t(obj, path = 'SelectedSearchResultOutputRepresentation') {
732
+ const v_error = (() => {
733
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
734
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
735
+ }
736
+ const obj_objectName = obj.objectName;
737
+ const path_objectName = path + '.objectName';
738
+ if (typeof obj_objectName !== 'string') {
739
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
740
+ }
741
+ const obj_selectedRecordId = obj.selectedRecordId;
742
+ const path_selectedRecordId = path + '.selectedRecordId';
743
+ if (typeof obj_selectedRecordId !== 'string') {
744
+ return new TypeError('Expected "string" but received "' + typeof obj_selectedRecordId + '" (at "' + path_selectedRecordId + '")');
745
+ }
746
+ const obj_selectedRecordObject = obj.selectedRecordObject;
747
+ const path_selectedRecordObject = path + '.selectedRecordObject';
748
+ if (!ArrayIsArray(obj_selectedRecordObject)) {
749
+ return new TypeError('Expected "array" but received "' + typeof obj_selectedRecordObject + '" (at "' + path_selectedRecordObject + '")');
750
+ }
751
+ for (let i = 0; i < obj_selectedRecordObject.length; i++) {
752
+ const obj_selectedRecordObject_item = obj_selectedRecordObject[i];
753
+ const path_selectedRecordObject_item = path_selectedRecordObject + '[' + i + ']';
754
+ const referencepath_selectedRecordObject_itemValidationError = validate$u(obj_selectedRecordObject_item, path_selectedRecordObject_item);
755
+ if (referencepath_selectedRecordObject_itemValidationError !== null) {
756
+ let message = 'Object doesn\'t match FieldValueOutputRepresentation (at "' + path_selectedRecordObject_item + '")\n';
757
+ message += referencepath_selectedRecordObject_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
758
+ return new TypeError(message);
759
+ }
760
+ }
761
+ })();
762
+ return v_error === undefined ? null : v_error;
763
+ }
764
+ const select$i = function SelectedSearchResultOutputRepresentationSelect() {
765
+ const { selections: FieldValueOutputRepresentation__selections, opaque: FieldValueOutputRepresentation__opaque, } = select$j();
766
+ return {
767
+ kind: 'Fragment',
768
+ version: VERSION$e,
769
+ private: [],
770
+ selections: [
771
+ {
772
+ name: 'objectName',
773
+ kind: 'Scalar'
774
+ },
775
+ {
776
+ name: 'selectedRecordId',
777
+ kind: 'Scalar'
778
+ },
779
+ {
780
+ name: 'selectedRecordObject',
781
+ kind: 'Object',
782
+ plural: true,
783
+ selections: FieldValueOutputRepresentation__selections
784
+ }
785
+ ]
786
+ };
787
+ };
788
+ function equals$e(existing, incoming) {
789
+ const existing_objectName = existing.objectName;
790
+ const incoming_objectName = incoming.objectName;
791
+ if (!(existing_objectName === incoming_objectName)) {
792
+ return false;
793
+ }
794
+ const existing_selectedRecordId = existing.selectedRecordId;
795
+ const incoming_selectedRecordId = incoming.selectedRecordId;
796
+ if (!(existing_selectedRecordId === incoming_selectedRecordId)) {
797
+ return false;
798
+ }
799
+ const existing_selectedRecordObject = existing.selectedRecordObject;
800
+ const incoming_selectedRecordObject = incoming.selectedRecordObject;
801
+ const equals_selectedRecordObject_items = equalsArray(existing_selectedRecordObject, incoming_selectedRecordObject, (existing_selectedRecordObject_item, incoming_selectedRecordObject_item) => {
802
+ if (!(equals$f(existing_selectedRecordObject_item, incoming_selectedRecordObject_item))) {
803
+ return false;
804
+ }
805
+ });
806
+ if (equals_selectedRecordObject_items === false) {
807
+ return false;
808
+ }
809
+ return true;
810
+ }
811
+
812
+ const VERSION$d = "807aef2a41531744385e6daf017c105d";
813
+ function validate$s(obj, path = 'VerifiedDetailsOutputRepresentation') {
814
+ const v_error = (() => {
815
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
816
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
817
+ }
818
+ const obj_label = obj.label;
819
+ const path_label = path + '.label';
820
+ if (typeof obj_label !== 'string') {
821
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
822
+ }
823
+ const obj_processDetailName = obj.processDetailName;
824
+ const path_processDetailName = path + '.processDetailName';
825
+ if (typeof obj_processDetailName !== 'string') {
826
+ return new TypeError('Expected "string" but received "' + typeof obj_processDetailName + '" (at "' + path_processDetailName + '")');
827
+ }
828
+ const obj_searchObjectName = obj.searchObjectName;
829
+ const path_searchObjectName = path + '.searchObjectName';
830
+ if (typeof obj_searchObjectName !== 'string') {
831
+ return new TypeError('Expected "string" but received "' + typeof obj_searchObjectName + '" (at "' + path_searchObjectName + '")');
832
+ }
833
+ const obj_verifiedId = obj.verifiedId;
834
+ const path_verifiedId = path + '.verifiedId';
835
+ if (typeof obj_verifiedId !== 'string') {
836
+ return new TypeError('Expected "string" but received "' + typeof obj_verifiedId + '" (at "' + path_verifiedId + '")');
837
+ }
838
+ })();
839
+ return v_error === undefined ? null : v_error;
840
+ }
841
+ const select$h = function VerifiedDetailsOutputRepresentationSelect() {
842
+ return {
843
+ kind: 'Fragment',
844
+ version: VERSION$d,
845
+ private: [],
846
+ selections: [
847
+ {
848
+ name: 'label',
849
+ kind: 'Scalar'
850
+ },
851
+ {
852
+ name: 'processDetailName',
853
+ kind: 'Scalar'
854
+ },
855
+ {
856
+ name: 'searchObjectName',
857
+ kind: 'Scalar'
858
+ },
859
+ {
860
+ name: 'verifiedId',
861
+ kind: 'Scalar'
862
+ }
863
+ ]
864
+ };
865
+ };
866
+ function equals$d(existing, incoming) {
867
+ const existing_label = existing.label;
868
+ const incoming_label = incoming.label;
869
+ if (!(existing_label === incoming_label)) {
870
+ return false;
871
+ }
872
+ const existing_processDetailName = existing.processDetailName;
873
+ const incoming_processDetailName = incoming.processDetailName;
874
+ if (!(existing_processDetailName === incoming_processDetailName)) {
875
+ return false;
876
+ }
877
+ const existing_searchObjectName = existing.searchObjectName;
878
+ const incoming_searchObjectName = incoming.searchObjectName;
879
+ if (!(existing_searchObjectName === incoming_searchObjectName)) {
880
+ return false;
881
+ }
882
+ const existing_verifiedId = existing.verifiedId;
883
+ const incoming_verifiedId = incoming.verifiedId;
884
+ if (!(existing_verifiedId === incoming_verifiedId)) {
885
+ return false;
886
+ }
887
+ return true;
888
+ }
889
+
890
+ const VERSION$c = "4bbadbef0266aa9adde4b601bd5177dc";
891
+ function validate$r(obj, path = 'SelectedVerifiedResultOutputRepresentation') {
892
+ const v_error = (() => {
893
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
894
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
895
+ }
896
+ const obj_verifiedDetails = obj.verifiedDetails;
897
+ const path_verifiedDetails = path + '.verifiedDetails';
898
+ if (!ArrayIsArray(obj_verifiedDetails)) {
899
+ return new TypeError('Expected "array" but received "' + typeof obj_verifiedDetails + '" (at "' + path_verifiedDetails + '")');
900
+ }
901
+ for (let i = 0; i < obj_verifiedDetails.length; i++) {
902
+ const obj_verifiedDetails_item = obj_verifiedDetails[i];
903
+ const path_verifiedDetails_item = path_verifiedDetails + '[' + i + ']';
904
+ const referencepath_verifiedDetails_itemValidationError = validate$s(obj_verifiedDetails_item, path_verifiedDetails_item);
905
+ if (referencepath_verifiedDetails_itemValidationError !== null) {
906
+ let message = 'Object doesn\'t match VerifiedDetailsOutputRepresentation (at "' + path_verifiedDetails_item + '")\n';
907
+ message += referencepath_verifiedDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
908
+ return new TypeError(message);
909
+ }
910
+ }
911
+ })();
912
+ return v_error === undefined ? null : v_error;
913
+ }
914
+ const select$g = function SelectedVerifiedResultOutputRepresentationSelect() {
915
+ const { selections: VerifiedDetailsOutputRepresentation__selections, opaque: VerifiedDetailsOutputRepresentation__opaque, } = select$h();
916
+ return {
917
+ kind: 'Fragment',
918
+ version: VERSION$c,
919
+ private: [],
920
+ selections: [
921
+ {
922
+ name: 'verifiedDetails',
923
+ kind: 'Object',
924
+ plural: true,
925
+ selections: VerifiedDetailsOutputRepresentation__selections
926
+ }
927
+ ]
928
+ };
929
+ };
930
+ function equals$c(existing, incoming) {
931
+ const existing_verifiedDetails = existing.verifiedDetails;
932
+ const incoming_verifiedDetails = incoming.verifiedDetails;
933
+ const equals_verifiedDetails_items = equalsArray(existing_verifiedDetails, incoming_verifiedDetails, (existing_verifiedDetails_item, incoming_verifiedDetails_item) => {
934
+ if (!(equals$d(existing_verifiedDetails_item, incoming_verifiedDetails_item))) {
935
+ return false;
936
+ }
937
+ });
938
+ if (equals_verifiedDetails_items === false) {
939
+ return false;
940
+ }
941
+ return true;
942
+ }
943
+
944
+ const VERSION$b = "d7c13d76eec0847fef3be5346f7c046d";
945
+ function validate$q(obj, path = 'VerifierOutputRepresentation') {
946
+ const v_error = (() => {
947
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
948
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
949
+ }
950
+ const obj_developerName = obj.developerName;
951
+ const path_developerName = path + '.developerName';
952
+ if (typeof obj_developerName !== 'string') {
953
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
954
+ }
955
+ const obj_verificationState = obj.verificationState;
956
+ const path_verificationState = path + '.verificationState';
957
+ if (typeof obj_verificationState !== 'string') {
958
+ return new TypeError('Expected "string" but received "' + typeof obj_verificationState + '" (at "' + path_verificationState + '")');
959
+ }
960
+ })();
961
+ return v_error === undefined ? null : v_error;
962
+ }
963
+ const select$f = function VerifierOutputRepresentationSelect() {
964
+ return {
965
+ kind: 'Fragment',
966
+ version: VERSION$b,
967
+ private: [],
968
+ selections: [
969
+ {
970
+ name: 'developerName',
971
+ kind: 'Scalar'
972
+ },
973
+ {
974
+ name: 'verificationState',
975
+ kind: 'Scalar'
976
+ }
977
+ ]
978
+ };
979
+ };
980
+ function equals$b(existing, incoming) {
981
+ const existing_developerName = existing.developerName;
982
+ const incoming_developerName = incoming.developerName;
983
+ if (!(existing_developerName === incoming_developerName)) {
984
+ return false;
985
+ }
986
+ const existing_verificationState = existing.verificationState;
987
+ const incoming_verificationState = incoming.verificationState;
988
+ if (!(existing_verificationState === incoming_verificationState)) {
989
+ return false;
990
+ }
991
+ return true;
992
+ }
993
+
994
+ const VERSION$a = "c623247a0177dab9de9c9dbb1ced9bcc";
995
+ function validate$p(obj, path = 'VerifiedResultOutputRepresentation') {
996
+ const v_error = (() => {
997
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
998
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
999
+ }
1000
+ const obj_optionalVerifiers = obj.optionalVerifiers;
1001
+ const path_optionalVerifiers = path + '.optionalVerifiers';
1002
+ if (!ArrayIsArray(obj_optionalVerifiers)) {
1003
+ return new TypeError('Expected "array" but received "' + typeof obj_optionalVerifiers + '" (at "' + path_optionalVerifiers + '")');
1004
+ }
1005
+ for (let i = 0; i < obj_optionalVerifiers.length; i++) {
1006
+ const obj_optionalVerifiers_item = obj_optionalVerifiers[i];
1007
+ const path_optionalVerifiers_item = path_optionalVerifiers + '[' + i + ']';
1008
+ const referencepath_optionalVerifiers_itemValidationError = validate$q(obj_optionalVerifiers_item, path_optionalVerifiers_item);
1009
+ if (referencepath_optionalVerifiers_itemValidationError !== null) {
1010
+ let message = 'Object doesn\'t match VerifierOutputRepresentation (at "' + path_optionalVerifiers_item + '")\n';
1011
+ message += referencepath_optionalVerifiers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1012
+ return new TypeError(message);
1013
+ }
1014
+ }
1015
+ const obj_requiredVerifiers = obj.requiredVerifiers;
1016
+ const path_requiredVerifiers = path + '.requiredVerifiers';
1017
+ if (!ArrayIsArray(obj_requiredVerifiers)) {
1018
+ return new TypeError('Expected "array" but received "' + typeof obj_requiredVerifiers + '" (at "' + path_requiredVerifiers + '")');
1019
+ }
1020
+ for (let i = 0; i < obj_requiredVerifiers.length; i++) {
1021
+ const obj_requiredVerifiers_item = obj_requiredVerifiers[i];
1022
+ const path_requiredVerifiers_item = path_requiredVerifiers + '[' + i + ']';
1023
+ const referencepath_requiredVerifiers_itemValidationError = validate$q(obj_requiredVerifiers_item, path_requiredVerifiers_item);
1024
+ if (referencepath_requiredVerifiers_itemValidationError !== null) {
1025
+ let message = 'Object doesn\'t match VerifierOutputRepresentation (at "' + path_requiredVerifiers_item + '")\n';
1026
+ message += referencepath_requiredVerifiers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1027
+ return new TypeError(message);
1028
+ }
1029
+ }
1030
+ })();
1031
+ return v_error === undefined ? null : v_error;
1032
+ }
1033
+ const select$e = function VerifiedResultOutputRepresentationSelect() {
1034
+ const { selections: VerifierOutputRepresentation__selections, opaque: VerifierOutputRepresentation__opaque, } = select$f();
1035
+ return {
1036
+ kind: 'Fragment',
1037
+ version: VERSION$a,
1038
+ private: [],
1039
+ selections: [
1040
+ {
1041
+ name: 'optionalVerifiers',
1042
+ kind: 'Object',
1043
+ plural: true,
1044
+ selections: VerifierOutputRepresentation__selections
1045
+ },
1046
+ {
1047
+ name: 'requiredVerifiers',
1048
+ kind: 'Object',
1049
+ plural: true,
1050
+ selections: VerifierOutputRepresentation__selections
1051
+ }
1052
+ ]
1053
+ };
1054
+ };
1055
+ function equals$a(existing, incoming) {
1056
+ const existing_optionalVerifiers = existing.optionalVerifiers;
1057
+ const incoming_optionalVerifiers = incoming.optionalVerifiers;
1058
+ const equals_optionalVerifiers_items = equalsArray(existing_optionalVerifiers, incoming_optionalVerifiers, (existing_optionalVerifiers_item, incoming_optionalVerifiers_item) => {
1059
+ if (!(equals$b(existing_optionalVerifiers_item, incoming_optionalVerifiers_item))) {
1060
+ return false;
1061
+ }
1062
+ });
1063
+ if (equals_optionalVerifiers_items === false) {
1064
+ return false;
1065
+ }
1066
+ const existing_requiredVerifiers = existing.requiredVerifiers;
1067
+ const incoming_requiredVerifiers = incoming.requiredVerifiers;
1068
+ const equals_requiredVerifiers_items = equalsArray(existing_requiredVerifiers, incoming_requiredVerifiers, (existing_requiredVerifiers_item, incoming_requiredVerifiers_item) => {
1069
+ if (!(equals$b(existing_requiredVerifiers_item, incoming_requiredVerifiers_item))) {
1070
+ return false;
1071
+ }
1072
+ });
1073
+ if (equals_requiredVerifiers_items === false) {
1074
+ return false;
1075
+ }
1076
+ return true;
1077
+ }
1078
+
1079
+ const TTL$2 = 300;
1080
+ const VERSION$9 = "4f545b10a56df76ef87654b567d69cd6";
1081
+ function validate$o(obj, path = 'VerificationContextOutputRepresentation') {
1082
+ const v_error = (() => {
1083
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1084
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1085
+ }
1086
+ const obj_isSuccess = obj.isSuccess;
1087
+ const path_isSuccess = path + '.isSuccess';
1088
+ if (typeof obj_isSuccess !== 'boolean') {
1089
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
1090
+ }
1091
+ const obj_message = obj.message;
1092
+ const path_message = path + '.message';
1093
+ if (typeof obj_message !== 'string') {
1094
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1095
+ }
1096
+ const obj_processDefinition = obj.processDefinition;
1097
+ const path_processDefinition = path + '.processDefinition';
1098
+ const referencepath_processDefinitionValidationError = validate$v(obj_processDefinition, path_processDefinition);
1099
+ if (referencepath_processDefinitionValidationError !== null) {
1100
+ let message = 'Object doesn\'t match ProcessDefinitionOutputRepresentation (at "' + path_processDefinition + '")\n';
1101
+ message += referencepath_processDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1102
+ return new TypeError(message);
1103
+ }
1104
+ const obj_selectedSearchResult = obj.selectedSearchResult;
1105
+ const path_selectedSearchResult = path + '.selectedSearchResult';
1106
+ const referencepath_selectedSearchResultValidationError = validate$t(obj_selectedSearchResult, path_selectedSearchResult);
1107
+ if (referencepath_selectedSearchResultValidationError !== null) {
1108
+ let message = 'Object doesn\'t match SelectedSearchResultOutputRepresentation (at "' + path_selectedSearchResult + '")\n';
1109
+ message += referencepath_selectedSearchResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1110
+ return new TypeError(message);
1111
+ }
1112
+ const obj_selectedVerifiedResult = obj.selectedVerifiedResult;
1113
+ const path_selectedVerifiedResult = path + '.selectedVerifiedResult';
1114
+ const referencepath_selectedVerifiedResultValidationError = validate$r(obj_selectedVerifiedResult, path_selectedVerifiedResult);
1115
+ if (referencepath_selectedVerifiedResultValidationError !== null) {
1116
+ let message = 'Object doesn\'t match SelectedVerifiedResultOutputRepresentation (at "' + path_selectedVerifiedResult + '")\n';
1117
+ message += referencepath_selectedVerifiedResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1118
+ return new TypeError(message);
1119
+ }
1120
+ const obj_verifiedResult = obj.verifiedResult;
1121
+ const path_verifiedResult = path + '.verifiedResult';
1122
+ const referencepath_verifiedResultValidationError = validate$p(obj_verifiedResult, path_verifiedResult);
1123
+ if (referencepath_verifiedResultValidationError !== null) {
1124
+ let message = 'Object doesn\'t match VerifiedResultOutputRepresentation (at "' + path_verifiedResult + '")\n';
1125
+ message += referencepath_verifiedResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1126
+ return new TypeError(message);
1127
+ }
1128
+ })();
1129
+ return v_error === undefined ? null : v_error;
1130
+ }
1131
+ const RepresentationType$2 = 'VerificationContextOutputRepresentation';
1132
+ function keyBuilder$2(luvio, config) {
1133
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.message;
1134
+ }
1135
+ function keyBuilderFromType$2(luvio, object) {
1136
+ const keyParams = {
1137
+ message: object.message
1138
+ };
1139
+ return keyBuilder$2(luvio, keyParams);
1140
+ }
1141
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1142
+ return input;
1143
+ }
1144
+ const select$d = function VerificationContextOutputRepresentationSelect() {
1145
+ const { selections: ProcessDefinitionOutputRepresentation__selections, opaque: ProcessDefinitionOutputRepresentation__opaque, } = select$k();
1146
+ const { selections: SelectedSearchResultOutputRepresentation__selections, opaque: SelectedSearchResultOutputRepresentation__opaque, } = select$i();
1147
+ const { selections: SelectedVerifiedResultOutputRepresentation__selections, opaque: SelectedVerifiedResultOutputRepresentation__opaque, } = select$g();
1148
+ const { selections: VerifiedResultOutputRepresentation__selections, opaque: VerifiedResultOutputRepresentation__opaque, } = select$e();
1149
+ return {
1150
+ kind: 'Fragment',
1151
+ version: VERSION$9,
1152
+ private: [],
1153
+ selections: [
1154
+ {
1155
+ name: 'isSuccess',
1156
+ kind: 'Scalar'
1157
+ },
1158
+ {
1159
+ name: 'message',
1160
+ kind: 'Scalar'
1161
+ },
1162
+ {
1163
+ name: 'processDefinition',
1164
+ kind: 'Object',
1165
+ selections: ProcessDefinitionOutputRepresentation__selections
1166
+ },
1167
+ {
1168
+ name: 'selectedSearchResult',
1169
+ kind: 'Object',
1170
+ selections: SelectedSearchResultOutputRepresentation__selections
1171
+ },
1172
+ {
1173
+ name: 'selectedVerifiedResult',
1174
+ kind: 'Object',
1175
+ selections: SelectedVerifiedResultOutputRepresentation__selections
1176
+ },
1177
+ {
1178
+ name: 'verifiedResult',
1179
+ kind: 'Object',
1180
+ selections: VerifiedResultOutputRepresentation__selections
1181
+ }
1182
+ ]
1183
+ };
1184
+ };
1185
+ function equals$9(existing, incoming) {
1186
+ const existing_isSuccess = existing.isSuccess;
1187
+ const incoming_isSuccess = incoming.isSuccess;
1188
+ if (!(existing_isSuccess === incoming_isSuccess)) {
1189
+ return false;
1190
+ }
1191
+ const existing_message = existing.message;
1192
+ const incoming_message = incoming.message;
1193
+ if (!(existing_message === incoming_message)) {
1194
+ return false;
1195
+ }
1196
+ const existing_processDefinition = existing.processDefinition;
1197
+ const incoming_processDefinition = incoming.processDefinition;
1198
+ if (!(equals$g(existing_processDefinition, incoming_processDefinition))) {
1199
+ return false;
1200
+ }
1201
+ const existing_selectedSearchResult = existing.selectedSearchResult;
1202
+ const incoming_selectedSearchResult = incoming.selectedSearchResult;
1203
+ if (!(equals$e(existing_selectedSearchResult, incoming_selectedSearchResult))) {
1204
+ return false;
1205
+ }
1206
+ const existing_selectedVerifiedResult = existing.selectedVerifiedResult;
1207
+ const incoming_selectedVerifiedResult = incoming.selectedVerifiedResult;
1208
+ if (!(equals$c(existing_selectedVerifiedResult, incoming_selectedVerifiedResult))) {
1209
+ return false;
1210
+ }
1211
+ const existing_verifiedResult = existing.verifiedResult;
1212
+ const incoming_verifiedResult = incoming.verifiedResult;
1213
+ if (!(equals$a(existing_verifiedResult, incoming_verifiedResult))) {
1214
+ return false;
1215
+ }
1216
+ return true;
1217
+ }
1218
+ const ingest$2 = function VerificationContextOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1219
+ if (process.env.NODE_ENV !== 'production') {
1220
+ const validateError = validate$o(input);
1221
+ if (validateError !== null) {
1222
+ throw validateError;
1223
+ }
1224
+ }
1225
+ const key = keyBuilderFromType$2(luvio, input);
1226
+ const existingRecord = store.readEntry(key);
1227
+ const ttlToUse = TTL$2;
1228
+ let incomingRecord = normalize$2(input, store.readEntry(key), {
1229
+ fullPath: key,
1230
+ parent: path.parent,
1231
+ propertyName: path.propertyName,
1232
+ ttl: ttlToUse
1233
+ });
1234
+ if (existingRecord === undefined || equals$9(existingRecord, incomingRecord) === false) {
1235
+ luvio.storePublish(key, incomingRecord);
1236
+ }
1237
+ {
1238
+ const storeMetadataParams = {
1239
+ ttl: ttlToUse,
1240
+ namespace: "IdentityVerification",
1241
+ version: VERSION$9,
1242
+ representationName: RepresentationType$2,
1243
+ };
1244
+ luvio.publishStoreMetadata(key, storeMetadataParams);
1245
+ }
1246
+ return createLink(key);
1247
+ };
1248
+ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
1249
+ const rootKeySet = new StoreKeyMap();
1250
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1251
+ const rootKey = keyBuilderFromType$2(luvio, input);
1252
+ rootKeySet.set(rootKey, {
1253
+ namespace: keyPrefix,
1254
+ representationName: RepresentationType$2,
1255
+ mergeable: false
1256
+ });
1257
+ return rootKeySet;
1258
+ }
1259
+
1260
+ function select$c(luvio, params) {
1261
+ return select$d();
1262
+ }
1263
+ function getResponseCacheKeys$3(luvio, resourceParams, response) {
1264
+ return getTypeCacheKeys$2(luvio, response);
1265
+ }
1266
+ function ingestSuccess$3(luvio, resourceParams, response) {
1267
+ const { body } = response;
1268
+ const key = keyBuilderFromType$2(luvio, body);
1269
+ luvio.storeIngest(key, ingest$2, body);
1270
+ const snapshot = luvio.storeLookup({
1271
+ recordId: key,
1272
+ node: select$c(),
1273
+ variables: {},
1274
+ });
1275
+ if (process.env.NODE_ENV !== 'production') {
1276
+ if (snapshot.state !== 'Fulfilled') {
1277
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1278
+ }
1279
+ }
1280
+ return snapshot;
1281
+ }
1282
+ function createResourceRequest$3(config) {
1283
+ const headers = {};
1284
+ return {
1285
+ baseUri: '/services/data/v58.0',
1286
+ basePath: '/connect/identity-verification/build-context/' + config.urlParams.processDefinitionName + '',
1287
+ method: 'post',
1288
+ body: config.body,
1289
+ urlParams: config.urlParams,
1290
+ queryParams: {},
1291
+ headers,
1292
+ priority: 'normal',
1293
+ };
1294
+ }
1295
+
1296
+ const buildVerificationContext_ConfigPropertyNames = {
1297
+ displayName: 'buildVerificationContext',
1298
+ parameters: {
1299
+ required: ['processDefinitionName', 'BuildContextData'],
1300
+ optional: []
1301
+ }
1302
+ };
1303
+ function createResourceParams$3(config) {
1304
+ const resourceParams = {
1305
+ urlParams: {
1306
+ processDefinitionName: config.processDefinitionName
1307
+ },
1308
+ body: {
1309
+ BuildContextData: config.BuildContextData
1310
+ }
1311
+ };
1312
+ return resourceParams;
1313
+ }
1314
+ function typeCheckConfig$3(untrustedConfig) {
1315
+ const config = {};
1316
+ const untrustedConfig_processDefinitionName = untrustedConfig.processDefinitionName;
1317
+ if (typeof untrustedConfig_processDefinitionName === 'string') {
1318
+ config.processDefinitionName = untrustedConfig_processDefinitionName;
1319
+ }
1320
+ const untrustedConfig_BuildContextData = untrustedConfig.BuildContextData;
1321
+ const referenceBuildVerificationContextInputRepresentationValidationError = validate$z(untrustedConfig_BuildContextData);
1322
+ if (referenceBuildVerificationContextInputRepresentationValidationError === null) {
1323
+ config.BuildContextData = untrustedConfig_BuildContextData;
1324
+ }
1325
+ return config;
1326
+ }
1327
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1328
+ if (!untrustedIsObject(untrustedConfig)) {
1329
+ return null;
1330
+ }
1331
+ if (process.env.NODE_ENV !== 'production') {
1332
+ validateConfig(untrustedConfig, configPropertyNames);
1333
+ }
1334
+ const config = typeCheckConfig$3(untrustedConfig);
1335
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1336
+ return null;
1337
+ }
1338
+ return config;
1339
+ }
1340
+ function buildNetworkSnapshot$3(luvio, config, options) {
1341
+ const resourceParams = createResourceParams$3(config);
1342
+ const request = createResourceRequest$3(resourceParams);
1343
+ return luvio.dispatchResourceRequest(request, options)
1344
+ .then((response) => {
1345
+ return luvio.handleSuccessResponse(() => {
1346
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1347
+ return luvio.storeBroadcast().then(() => snapshot);
1348
+ }, () => getResponseCacheKeys$3(luvio, resourceParams, response.body));
1349
+ }, (response) => {
1350
+ deepFreeze(response);
1351
+ throw response;
1352
+ });
1353
+ }
1354
+ const buildVerificationContextAdapterFactory = (luvio) => {
1355
+ return function buildVerificationContext(untrustedConfig) {
1356
+ const config = validateAdapterConfig$3(untrustedConfig, buildVerificationContext_ConfigPropertyNames);
1357
+ // Invalid or incomplete config
1358
+ if (config === null) {
1359
+ throw new Error('Invalid config for "buildVerificationContext"');
1360
+ }
1361
+ return buildNetworkSnapshot$3(luvio, config);
1362
+ };
1363
+ };
1364
+
1365
+ const VERSION$8 = "040b4a43e3e18749e02370ec085d1b47";
1366
+ function validate$n(obj, path = 'FormVerificationFieldOutputRepresentation') {
1367
+ const v_error = (() => {
1368
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1369
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1370
+ }
1371
+ const obj_developerName = obj.developerName;
1372
+ const path_developerName = path + '.developerName';
1373
+ if (typeof obj_developerName !== 'string') {
1374
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1375
+ }
1376
+ const obj_isVerified = obj.isVerified;
1377
+ const path_isVerified = path + '.isVerified';
1378
+ if (typeof obj_isVerified !== 'boolean') {
1379
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isVerified + '" (at "' + path_isVerified + '")');
1380
+ }
1381
+ const obj_value = obj.value;
1382
+ const path_value = path + '.value';
1383
+ if (typeof obj_value !== 'string') {
1384
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1385
+ }
1386
+ })();
1387
+ return v_error === undefined ? null : v_error;
1388
+ }
1389
+ const select$b = function FormVerificationFieldOutputRepresentationSelect() {
1390
+ return {
1391
+ kind: 'Fragment',
1392
+ version: VERSION$8,
1393
+ private: [],
1394
+ selections: [
1395
+ {
1396
+ name: 'developerName',
1397
+ kind: 'Scalar'
1398
+ },
1399
+ {
1400
+ name: 'isVerified',
1401
+ kind: 'Scalar'
1402
+ },
1403
+ {
1404
+ name: 'value',
1405
+ kind: 'Scalar'
1406
+ }
1407
+ ]
1408
+ };
1409
+ };
1410
+ function equals$8(existing, incoming) {
1411
+ const existing_isVerified = existing.isVerified;
1412
+ const incoming_isVerified = incoming.isVerified;
1413
+ if (!(existing_isVerified === incoming_isVerified)) {
1414
+ return false;
1415
+ }
1416
+ const existing_developerName = existing.developerName;
1417
+ const incoming_developerName = incoming.developerName;
1418
+ if (!(existing_developerName === incoming_developerName)) {
1419
+ return false;
1420
+ }
1421
+ const existing_value = existing.value;
1422
+ const incoming_value = incoming.value;
1423
+ if (!(existing_value === incoming_value)) {
1424
+ return false;
1425
+ }
1426
+ return true;
1427
+ }
1428
+
1429
+ const VERSION$7 = "20e25a7a7da428d9eb10fcb19a1a8875";
1430
+ function validate$m(obj, path = 'FormVerificationFieldListOutputRepresentation') {
1431
+ const v_error = (() => {
1432
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1433
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1434
+ }
1435
+ const obj_formVerificationFields = obj.formVerificationFields;
1436
+ const path_formVerificationFields = path + '.formVerificationFields';
1437
+ if (!ArrayIsArray(obj_formVerificationFields)) {
1438
+ return new TypeError('Expected "array" but received "' + typeof obj_formVerificationFields + '" (at "' + path_formVerificationFields + '")');
1439
+ }
1440
+ for (let i = 0; i < obj_formVerificationFields.length; i++) {
1441
+ const obj_formVerificationFields_item = obj_formVerificationFields[i];
1442
+ const path_formVerificationFields_item = path_formVerificationFields + '[' + i + ']';
1443
+ const referencepath_formVerificationFields_itemValidationError = validate$n(obj_formVerificationFields_item, path_formVerificationFields_item);
1444
+ if (referencepath_formVerificationFields_itemValidationError !== null) {
1445
+ let message = 'Object doesn\'t match FormVerificationFieldOutputRepresentation (at "' + path_formVerificationFields_item + '")\n';
1446
+ message += referencepath_formVerificationFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1447
+ return new TypeError(message);
1448
+ }
1449
+ }
1450
+ })();
1451
+ return v_error === undefined ? null : v_error;
1452
+ }
1453
+ const select$a = function FormVerificationFieldListOutputRepresentationSelect() {
1454
+ const { selections: FormVerificationFieldOutputRepresentation__selections, opaque: FormVerificationFieldOutputRepresentation__opaque, } = select$b();
1455
+ return {
1456
+ kind: 'Fragment',
1457
+ version: VERSION$7,
1458
+ private: [],
1459
+ selections: [
1460
+ {
1461
+ name: 'formVerificationFields',
1462
+ kind: 'Object',
1463
+ plural: true,
1464
+ selections: FormVerificationFieldOutputRepresentation__selections
1465
+ }
1466
+ ]
1467
+ };
1468
+ };
1469
+ function equals$7(existing, incoming) {
1470
+ const existing_formVerificationFields = existing.formVerificationFields;
1471
+ const incoming_formVerificationFields = incoming.formVerificationFields;
1472
+ const equals_formVerificationFields_items = equalsArray(existing_formVerificationFields, incoming_formVerificationFields, (existing_formVerificationFields_item, incoming_formVerificationFields_item) => {
1473
+ if (!(equals$8(existing_formVerificationFields_item, incoming_formVerificationFields_item))) {
1474
+ return false;
1475
+ }
1476
+ });
1477
+ if (equals_formVerificationFields_items === false) {
1478
+ return false;
1479
+ }
1480
+ return true;
1481
+ }
1482
+
1483
+ const VERSION$6 = "a06f6cd40f6c16c76d2d7e94104e58bd";
1484
+ function validate$l(obj, path = 'FormVerificationReferenceRecordDetailsOutput') {
1485
+ const v_error = (() => {
1486
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1487
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1488
+ }
1489
+ const obj_referenceRecordId = obj.referenceRecordId;
1490
+ const path_referenceRecordId = path + '.referenceRecordId';
1491
+ if (typeof obj_referenceRecordId !== 'string') {
1492
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceRecordId + '" (at "' + path_referenceRecordId + '")');
1493
+ }
1494
+ const obj_referenceRecordName = obj.referenceRecordName;
1495
+ const path_referenceRecordName = path + '.referenceRecordName';
1496
+ if (typeof obj_referenceRecordName !== 'string') {
1497
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceRecordName + '" (at "' + path_referenceRecordName + '")');
1498
+ }
1499
+ })();
1500
+ return v_error === undefined ? null : v_error;
1501
+ }
1502
+ const select$9 = function FormVerificationReferenceRecordDetailsOutputSelect() {
1503
+ return {
1504
+ kind: 'Fragment',
1505
+ version: VERSION$6,
1506
+ private: [],
1507
+ selections: [
1508
+ {
1509
+ name: 'referenceRecordId',
1510
+ kind: 'Scalar'
1511
+ },
1512
+ {
1513
+ name: 'referenceRecordName',
1514
+ kind: 'Scalar'
1515
+ }
1516
+ ]
1517
+ };
1518
+ };
1519
+ function equals$6(existing, incoming) {
1520
+ const existing_referenceRecordId = existing.referenceRecordId;
1521
+ const incoming_referenceRecordId = incoming.referenceRecordId;
1522
+ if (!(existing_referenceRecordId === incoming_referenceRecordId)) {
1523
+ return false;
1524
+ }
1525
+ const existing_referenceRecordName = existing.referenceRecordName;
1526
+ const incoming_referenceRecordName = incoming.referenceRecordName;
1527
+ if (!(existing_referenceRecordName === incoming_referenceRecordName)) {
1528
+ return false;
1529
+ }
1530
+ return true;
1531
+ }
1532
+
1533
+ const VERSION$5 = "b09b53fb4bc0d114197d5d7fffe6c4af";
1534
+ function validate$k(obj, path = 'ErrorResponseRepresentation') {
1535
+ const v_error = (() => {
1536
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1537
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1538
+ }
1539
+ const obj_code = obj.code;
1540
+ const path_code = path + '.code';
1541
+ if (typeof obj_code !== 'string') {
1542
+ return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
1543
+ }
1544
+ const obj_message = obj.message;
1545
+ const path_message = path + '.message';
1546
+ if (typeof obj_message !== 'string') {
1547
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1548
+ }
1549
+ })();
1550
+ return v_error === undefined ? null : v_error;
1551
+ }
1552
+ const select$8 = function ErrorResponseRepresentationSelect() {
1553
+ return {
1554
+ kind: 'Fragment',
1555
+ version: VERSION$5,
1556
+ private: [],
1557
+ selections: [
1558
+ {
1559
+ name: 'code',
1560
+ kind: 'Scalar'
1561
+ },
1562
+ {
1563
+ name: 'message',
1564
+ kind: 'Scalar'
1565
+ }
1566
+ ]
1567
+ };
1568
+ };
1569
+ function equals$5(existing, incoming) {
1570
+ const existing_code = existing.code;
1571
+ const incoming_code = incoming.code;
1572
+ if (!(existing_code === incoming_code)) {
1573
+ return false;
1574
+ }
1575
+ const existing_message = existing.message;
1576
+ const incoming_message = incoming.message;
1577
+ if (!(existing_message === incoming_message)) {
1578
+ return false;
1579
+ }
1580
+ return true;
1581
+ }
1582
+
1583
+ const TTL$1 = 300;
1584
+ const VERSION$4 = "4198a8be59b6753598518c1517e91458";
1585
+ function validate$j(obj, path = 'FormVerificationOutputRepresentation') {
1586
+ const v_error = (() => {
1587
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1588
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1589
+ }
1590
+ const obj_developerName = obj.developerName;
1591
+ const path_developerName = path + '.developerName';
1592
+ if (typeof obj_developerName !== 'string') {
1593
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1594
+ }
1595
+ const obj_formVerificationFieldList = obj.formVerificationFieldList;
1596
+ const path_formVerificationFieldList = path + '.formVerificationFieldList';
1597
+ const referencepath_formVerificationFieldListValidationError = validate$m(obj_formVerificationFieldList, path_formVerificationFieldList);
1598
+ if (referencepath_formVerificationFieldListValidationError !== null) {
1599
+ let message = 'Object doesn\'t match FormVerificationFieldListOutputRepresentation (at "' + path_formVerificationFieldList + '")\n';
1600
+ message += referencepath_formVerificationFieldListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1601
+ return new TypeError(message);
1602
+ }
1603
+ const obj_isVerified = obj.isVerified;
1604
+ const path_isVerified = path + '.isVerified';
1605
+ if (typeof obj_isVerified !== 'boolean') {
1606
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isVerified + '" (at "' + path_isVerified + '")');
1607
+ }
1608
+ const obj_referenceRecordDetails = obj.referenceRecordDetails;
1609
+ const path_referenceRecordDetails = path + '.referenceRecordDetails';
1610
+ const referencepath_referenceRecordDetailsValidationError = validate$l(obj_referenceRecordDetails, path_referenceRecordDetails);
1611
+ if (referencepath_referenceRecordDetailsValidationError !== null) {
1612
+ let message = 'Object doesn\'t match FormVerificationReferenceRecordDetailsOutput (at "' + path_referenceRecordDetails + '")\n';
1613
+ message += referencepath_referenceRecordDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1614
+ return new TypeError(message);
1615
+ }
1616
+ const obj_retryCount = obj.retryCount;
1617
+ const path_retryCount = path + '.retryCount';
1618
+ if (typeof obj_retryCount !== 'number' || (typeof obj_retryCount === 'number' && Math.floor(obj_retryCount) !== obj_retryCount)) {
1619
+ return new TypeError('Expected "integer" but received "' + typeof obj_retryCount + '" (at "' + path_retryCount + '")');
1620
+ }
1621
+ const obj_selectedRecordId = obj.selectedRecordId;
1622
+ const path_selectedRecordId = path + '.selectedRecordId';
1623
+ if (typeof obj_selectedRecordId !== 'string') {
1624
+ return new TypeError('Expected "string" but received "' + typeof obj_selectedRecordId + '" (at "' + path_selectedRecordId + '")');
1625
+ }
1626
+ const obj_status = obj.status;
1627
+ const path_status = path + '.status';
1628
+ const referencepath_statusValidationError = validate$k(obj_status, path_status);
1629
+ if (referencepath_statusValidationError !== null) {
1630
+ let message = 'Object doesn\'t match ErrorResponseRepresentation (at "' + path_status + '")\n';
1631
+ message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1632
+ return new TypeError(message);
1633
+ }
1634
+ })();
1635
+ return v_error === undefined ? null : v_error;
1636
+ }
1637
+ const RepresentationType$1 = 'FormVerificationOutputRepresentation';
1638
+ function keyBuilder$1(luvio, config) {
1639
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.developerName;
1640
+ }
1641
+ function keyBuilderFromType$1(luvio, object) {
1642
+ const keyParams = {
1643
+ developerName: object.developerName
1644
+ };
1645
+ return keyBuilder$1(luvio, keyParams);
1646
+ }
1647
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1648
+ return input;
1649
+ }
1650
+ const select$7 = function FormVerificationOutputRepresentationSelect() {
1651
+ const { selections: FormVerificationFieldListOutputRepresentation__selections, opaque: FormVerificationFieldListOutputRepresentation__opaque, } = select$a();
1652
+ const { selections: FormVerificationReferenceRecordDetailsOutput__selections, opaque: FormVerificationReferenceRecordDetailsOutput__opaque, } = select$9();
1653
+ const { selections: ErrorResponseRepresentation__selections, opaque: ErrorResponseRepresentation__opaque, } = select$8();
1654
+ return {
1655
+ kind: 'Fragment',
1656
+ version: VERSION$4,
1657
+ private: [],
1658
+ selections: [
1659
+ {
1660
+ name: 'developerName',
1661
+ kind: 'Scalar'
1662
+ },
1663
+ {
1664
+ name: 'formVerificationFieldList',
1665
+ kind: 'Object',
1666
+ selections: FormVerificationFieldListOutputRepresentation__selections
1667
+ },
1668
+ {
1669
+ name: 'isVerified',
1670
+ kind: 'Scalar'
1671
+ },
1672
+ {
1673
+ name: 'referenceRecordDetails',
1674
+ kind: 'Object',
1675
+ selections: FormVerificationReferenceRecordDetailsOutput__selections
1676
+ },
1677
+ {
1678
+ name: 'retryCount',
1679
+ kind: 'Scalar'
1680
+ },
1681
+ {
1682
+ name: 'selectedRecordId',
1683
+ kind: 'Scalar'
1684
+ },
1685
+ {
1686
+ name: 'status',
1687
+ kind: 'Object',
1688
+ selections: ErrorResponseRepresentation__selections
1689
+ }
1690
+ ]
1691
+ };
1692
+ };
1693
+ function equals$4(existing, incoming) {
1694
+ const existing_isVerified = existing.isVerified;
1695
+ const incoming_isVerified = incoming.isVerified;
1696
+ if (!(existing_isVerified === incoming_isVerified)) {
1697
+ return false;
1698
+ }
1699
+ const existing_retryCount = existing.retryCount;
1700
+ const incoming_retryCount = incoming.retryCount;
1701
+ if (!(existing_retryCount === incoming_retryCount)) {
1702
+ return false;
1703
+ }
1704
+ const existing_developerName = existing.developerName;
1705
+ const incoming_developerName = incoming.developerName;
1706
+ if (!(existing_developerName === incoming_developerName)) {
1707
+ return false;
1708
+ }
1709
+ const existing_selectedRecordId = existing.selectedRecordId;
1710
+ const incoming_selectedRecordId = incoming.selectedRecordId;
1711
+ if (!(existing_selectedRecordId === incoming_selectedRecordId)) {
1712
+ return false;
1713
+ }
1714
+ const existing_formVerificationFieldList = existing.formVerificationFieldList;
1715
+ const incoming_formVerificationFieldList = incoming.formVerificationFieldList;
1716
+ if (!(equals$7(existing_formVerificationFieldList, incoming_formVerificationFieldList))) {
1717
+ return false;
1718
+ }
1719
+ const existing_referenceRecordDetails = existing.referenceRecordDetails;
1720
+ const incoming_referenceRecordDetails = incoming.referenceRecordDetails;
1721
+ if (!(equals$6(existing_referenceRecordDetails, incoming_referenceRecordDetails))) {
1722
+ return false;
1723
+ }
1724
+ const existing_status = existing.status;
1725
+ const incoming_status = incoming.status;
1726
+ if (!(equals$5(existing_status, incoming_status))) {
1727
+ return false;
1728
+ }
1729
+ return true;
1730
+ }
1731
+ const ingest$1 = function FormVerificationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1732
+ if (process.env.NODE_ENV !== 'production') {
1733
+ const validateError = validate$j(input);
1734
+ if (validateError !== null) {
1735
+ throw validateError;
1736
+ }
1737
+ }
1738
+ const key = keyBuilderFromType$1(luvio, input);
1739
+ const existingRecord = store.readEntry(key);
1740
+ const ttlToUse = TTL$1;
1741
+ let incomingRecord = normalize$1(input, store.readEntry(key), {
1742
+ fullPath: key,
1743
+ parent: path.parent,
1744
+ propertyName: path.propertyName,
1745
+ ttl: ttlToUse
1746
+ });
1747
+ if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
1748
+ luvio.storePublish(key, incomingRecord);
1749
+ }
1750
+ {
1751
+ const storeMetadataParams = {
1752
+ ttl: ttlToUse,
1753
+ namespace: "IdentityVerification",
1754
+ version: VERSION$4,
1755
+ representationName: RepresentationType$1,
1756
+ };
1757
+ luvio.publishStoreMetadata(key, storeMetadataParams);
1758
+ }
1759
+ return createLink(key);
1760
+ };
1761
+ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
1762
+ const rootKeySet = new StoreKeyMap();
1763
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1764
+ const rootKey = keyBuilderFromType$1(luvio, input);
1765
+ rootKeySet.set(rootKey, {
1766
+ namespace: keyPrefix,
1767
+ representationName: RepresentationType$1,
1768
+ mergeable: false
1769
+ });
1770
+ return rootKeySet;
1771
+ }
1772
+
1773
+ function select$6(luvio, params) {
1774
+ return select$7();
1775
+ }
1776
+ function getResponseCacheKeys$2(luvio, resourceParams, response) {
1777
+ return getTypeCacheKeys$1(luvio, response);
1778
+ }
1779
+ function ingestSuccess$2(luvio, resourceParams, response) {
1780
+ const { body } = response;
1781
+ const key = keyBuilderFromType$1(luvio, body);
1782
+ luvio.storeIngest(key, ingest$1, body);
1783
+ const snapshot = luvio.storeLookup({
1784
+ recordId: key,
1785
+ node: select$6(),
1786
+ variables: {},
1787
+ });
1788
+ if (process.env.NODE_ENV !== 'production') {
1789
+ if (snapshot.state !== 'Fulfilled') {
1790
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1791
+ }
1792
+ }
1793
+ return snapshot;
1794
+ }
1795
+ function createResourceRequest$2(config) {
1796
+ const headers = {};
1797
+ return {
1798
+ baseUri: '/services/data/v58.0',
1799
+ basePath: '/connect/identity-verification/input-verification',
1800
+ method: 'post',
1801
+ body: config.body,
1802
+ urlParams: {},
1803
+ queryParams: {},
1804
+ headers,
1805
+ priority: 'normal',
1806
+ };
1807
+ }
1808
+
1809
+ const createFormVerification_ConfigPropertyNames = {
1810
+ displayName: 'createFormVerification',
1811
+ parameters: {
1812
+ required: ['developerName', 'formVerificationFieldList', 'selectedRecordId'],
1813
+ optional: []
1814
+ }
1815
+ };
1816
+ function createResourceParams$2(config) {
1817
+ const resourceParams = {
1818
+ body: {
1819
+ developerName: config.developerName, formVerificationFieldList: config.formVerificationFieldList, selectedRecordId: config.selectedRecordId
1820
+ }
1821
+ };
1822
+ return resourceParams;
1823
+ }
1824
+ function typeCheckConfig$2(untrustedConfig) {
1825
+ const config = {};
1826
+ const untrustedConfig_developerName = untrustedConfig.developerName;
1827
+ if (typeof untrustedConfig_developerName === 'string') {
1828
+ config.developerName = untrustedConfig_developerName;
1829
+ }
1830
+ const untrustedConfig_formVerificationFieldList = untrustedConfig.formVerificationFieldList;
1831
+ const referenceFormVerificationFieldListOutputRepresentationValidationError = validate$m(untrustedConfig_formVerificationFieldList);
1832
+ if (referenceFormVerificationFieldListOutputRepresentationValidationError === null) {
1833
+ config.formVerificationFieldList = untrustedConfig_formVerificationFieldList;
1834
+ }
1835
+ const untrustedConfig_selectedRecordId = untrustedConfig.selectedRecordId;
1836
+ if (typeof untrustedConfig_selectedRecordId === 'string') {
1837
+ config.selectedRecordId = untrustedConfig_selectedRecordId;
1838
+ }
1839
+ return config;
1840
+ }
1841
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1842
+ if (!untrustedIsObject(untrustedConfig)) {
1843
+ return null;
1844
+ }
1845
+ if (process.env.NODE_ENV !== 'production') {
1846
+ validateConfig(untrustedConfig, configPropertyNames);
1847
+ }
1848
+ const config = typeCheckConfig$2(untrustedConfig);
1849
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1850
+ return null;
1851
+ }
1852
+ return config;
1853
+ }
1854
+ function buildNetworkSnapshot$2(luvio, config, options) {
1855
+ const resourceParams = createResourceParams$2(config);
1856
+ const request = createResourceRequest$2(resourceParams);
1857
+ return luvio.dispatchResourceRequest(request, options)
1858
+ .then((response) => {
1859
+ return luvio.handleSuccessResponse(() => {
1860
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1861
+ return luvio.storeBroadcast().then(() => snapshot);
1862
+ }, () => getResponseCacheKeys$2(luvio, resourceParams, response.body));
1863
+ }, (response) => {
1864
+ deepFreeze(response);
1865
+ throw response;
1866
+ });
1867
+ }
1868
+ const createFormVerificationAdapterFactory = (luvio) => {
1869
+ return function createFormVerification(untrustedConfig) {
1870
+ const config = validateAdapterConfig$2(untrustedConfig, createFormVerification_ConfigPropertyNames);
1871
+ // Invalid or incomplete config
1872
+ if (config === null) {
1873
+ throw new Error('Invalid config for "createFormVerification"');
1874
+ }
1875
+ return buildNetworkSnapshot$2(luvio, config);
1876
+ };
1877
+ };
1878
+
1879
+ function validate$i(obj, path = 'SearchFilterInputRepresentation') {
1880
+ const v_error = (() => {
1881
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1882
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1883
+ }
1884
+ const obj_developerName = obj.developerName;
1885
+ const path_developerName = path + '.developerName';
1886
+ if (typeof obj_developerName !== 'string') {
1887
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1888
+ }
1889
+ const obj_value = obj.value;
1890
+ const path_value = path + '.value';
1891
+ if (typeof obj_value !== 'string') {
1892
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1893
+ }
1894
+ })();
1895
+ return v_error === undefined ? null : v_error;
1896
+ }
1897
+
1898
+ function validate$h(obj, path = 'SearchFilterListInputRepresentation') {
1899
+ const v_error = (() => {
1900
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1901
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1902
+ }
1903
+ const obj_searchFilterList = obj.searchFilterList;
1904
+ const path_searchFilterList = path + '.searchFilterList';
1905
+ if (!ArrayIsArray(obj_searchFilterList)) {
1906
+ return new TypeError('Expected "array" but received "' + typeof obj_searchFilterList + '" (at "' + path_searchFilterList + '")');
1907
+ }
1908
+ for (let i = 0; i < obj_searchFilterList.length; i++) {
1909
+ const obj_searchFilterList_item = obj_searchFilterList[i];
1910
+ const path_searchFilterList_item = path_searchFilterList + '[' + i + ']';
1911
+ const referencepath_searchFilterList_itemValidationError = validate$i(obj_searchFilterList_item, path_searchFilterList_item);
1912
+ if (referencepath_searchFilterList_itemValidationError !== null) {
1913
+ let message = 'Object doesn\'t match SearchFilterInputRepresentation (at "' + path_searchFilterList_item + '")\n';
1914
+ message += referencepath_searchFilterList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1915
+ return new TypeError(message);
1916
+ }
1917
+ }
1918
+ })();
1919
+ return v_error === undefined ? null : v_error;
1920
+ }
1921
+
1922
+ function validate$g(obj, path = 'VerificationProcessFieldInputRepresentation') {
1923
+ const v_error = (() => {
1924
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1925
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1926
+ }
1927
+ const obj_dataSourceType = obj.dataSourceType;
1928
+ const path_dataSourceType = path + '.dataSourceType';
1929
+ if (typeof obj_dataSourceType !== 'string') {
1930
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSourceType + '" (at "' + path_dataSourceType + '")');
1931
+ }
1932
+ const obj_dataType = obj.dataType;
1933
+ const path_dataType = path + '.dataType';
1934
+ if (typeof obj_dataType !== 'string') {
1935
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
1936
+ }
1937
+ const obj_developerName = obj.developerName;
1938
+ const path_developerName = path + '.developerName';
1939
+ if (typeof obj_developerName !== 'string') {
1940
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1941
+ }
1942
+ const obj_fieldName = obj.fieldName;
1943
+ const path_fieldName = path + '.fieldName';
1944
+ if (typeof obj_fieldName !== 'string') {
1945
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
1946
+ }
1947
+ const obj_fieldType = obj.fieldType;
1948
+ const path_fieldType = path + '.fieldType';
1949
+ if (typeof obj_fieldType !== 'string') {
1950
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
1951
+ }
1952
+ const obj_fieldValueFormula = obj.fieldValueFormula;
1953
+ const path_fieldValueFormula = path + '.fieldValueFormula';
1954
+ if (typeof obj_fieldValueFormula !== 'string') {
1955
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldValueFormula + '" (at "' + path_fieldValueFormula + '")');
1956
+ }
1957
+ const obj_isManualInput = obj.isManualInput;
1958
+ const path_isManualInput = path + '.isManualInput';
1959
+ if (typeof obj_isManualInput !== 'boolean') {
1960
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isManualInput + '" (at "' + path_isManualInput + '")');
1961
+ }
1962
+ const obj_label = obj.label;
1963
+ const path_label = path + '.label';
1964
+ if (typeof obj_label !== 'string') {
1965
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1966
+ }
1967
+ })();
1968
+ return v_error === undefined ? null : v_error;
1969
+ }
1970
+
1971
+ function validate$f(obj, path = 'VerificationProcessFieldListInputRepresentation') {
1972
+ const v_error = (() => {
1973
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1974
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1975
+ }
1976
+ const obj_verificationProcessFields = obj.verificationProcessFields;
1977
+ const path_verificationProcessFields = path + '.verificationProcessFields';
1978
+ if (!ArrayIsArray(obj_verificationProcessFields)) {
1979
+ return new TypeError('Expected "array" but received "' + typeof obj_verificationProcessFields + '" (at "' + path_verificationProcessFields + '")');
1980
+ }
1981
+ for (let i = 0; i < obj_verificationProcessFields.length; i++) {
1982
+ const obj_verificationProcessFields_item = obj_verificationProcessFields[i];
1983
+ const path_verificationProcessFields_item = path_verificationProcessFields + '[' + i + ']';
1984
+ const referencepath_verificationProcessFields_itemValidationError = validate$g(obj_verificationProcessFields_item, path_verificationProcessFields_item);
1985
+ if (referencepath_verificationProcessFields_itemValidationError !== null) {
1986
+ let message = 'Object doesn\'t match VerificationProcessFieldInputRepresentation (at "' + path_verificationProcessFields_item + '")\n';
1987
+ message += referencepath_verificationProcessFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1988
+ return new TypeError(message);
1989
+ }
1990
+ }
1991
+ })();
1992
+ return v_error === undefined ? null : v_error;
1993
+ }
1994
+
1995
+ function validate$e(obj, path = 'ProcessDetailInputRepresentation') {
1996
+ const v_error = (() => {
1997
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1998
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1999
+ }
2000
+ const obj_apexClassName = obj.apexClassName;
2001
+ const path_apexClassName = path + '.apexClassName';
2002
+ if (typeof obj_apexClassName !== 'string') {
2003
+ return new TypeError('Expected "string" but received "' + typeof obj_apexClassName + '" (at "' + path_apexClassName + '")');
2004
+ }
2005
+ const obj_dataSourceType = obj.dataSourceType;
2006
+ const path_dataSourceType = path + '.dataSourceType';
2007
+ if (typeof obj_dataSourceType !== 'string') {
2008
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSourceType + '" (at "' + path_dataSourceType + '")');
2009
+ }
2010
+ const obj_developerName = obj.developerName;
2011
+ const path_developerName = path + '.developerName';
2012
+ if (typeof obj_developerName !== 'string') {
2013
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
2014
+ }
2015
+ const obj_isRetryAllowedAfterLimit = obj.isRetryAllowedAfterLimit;
2016
+ const path_isRetryAllowedAfterLimit = path + '.isRetryAllowedAfterLimit';
2017
+ if (typeof obj_isRetryAllowedAfterLimit !== 'boolean') {
2018
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRetryAllowedAfterLimit + '" (at "' + path_isRetryAllowedAfterLimit + '")');
2019
+ }
2020
+ const obj_label = obj.label;
2021
+ const path_label = path + '.label';
2022
+ if (typeof obj_label !== 'string') {
2023
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2024
+ }
2025
+ const obj_linkedVerificationProcessDetailName = obj.linkedVerificationProcessDetailName;
2026
+ const path_linkedVerificationProcessDetailName = path + '.linkedVerificationProcessDetailName';
2027
+ if (typeof obj_linkedVerificationProcessDetailName !== 'string') {
2028
+ return new TypeError('Expected "string" but received "' + typeof obj_linkedVerificationProcessDetailName + '" (at "' + path_linkedVerificationProcessDetailName + '")');
2029
+ }
2030
+ const obj_optionalVerifierCount = obj.optionalVerifierCount;
2031
+ const path_optionalVerifierCount = path + '.optionalVerifierCount';
2032
+ if (typeof obj_optionalVerifierCount !== 'number' || (typeof obj_optionalVerifierCount === 'number' && Math.floor(obj_optionalVerifierCount) !== obj_optionalVerifierCount)) {
2033
+ return new TypeError('Expected "integer" but received "' + typeof obj_optionalVerifierCount + '" (at "' + path_optionalVerifierCount + '")');
2034
+ }
2035
+ const obj_retryLimit = obj.retryLimit;
2036
+ const path_retryLimit = path + '.retryLimit';
2037
+ if (typeof obj_retryLimit !== 'number' || (typeof obj_retryLimit === 'number' && Math.floor(obj_retryLimit) !== obj_retryLimit)) {
2038
+ return new TypeError('Expected "integer" but received "' + typeof obj_retryLimit + '" (at "' + path_retryLimit + '")');
2039
+ }
2040
+ const obj_searchObjectName = obj.searchObjectName;
2041
+ const path_searchObjectName = path + '.searchObjectName';
2042
+ if (typeof obj_searchObjectName !== 'string') {
2043
+ return new TypeError('Expected "string" but received "' + typeof obj_searchObjectName + '" (at "' + path_searchObjectName + '")');
2044
+ }
2045
+ const obj_searchResultFilter = obj.searchResultFilter;
2046
+ const path_searchResultFilter = path + '.searchResultFilter';
2047
+ if (typeof obj_searchResultFilter !== 'string') {
2048
+ return new TypeError('Expected "string" but received "' + typeof obj_searchResultFilter + '" (at "' + path_searchResultFilter + '")');
2049
+ }
2050
+ const obj_searchResultSortOrder = obj.searchResultSortOrder;
2051
+ const path_searchResultSortOrder = path + '.searchResultSortOrder';
2052
+ if (typeof obj_searchResultSortOrder !== 'string') {
2053
+ return new TypeError('Expected "string" but received "' + typeof obj_searchResultSortOrder + '" (at "' + path_searchResultSortOrder + '")');
2054
+ }
2055
+ const obj_searchResultUniqueIdField = obj.searchResultUniqueIdField;
2056
+ const path_searchResultUniqueIdField = path + '.searchResultUniqueIdField';
2057
+ if (typeof obj_searchResultUniqueIdField !== 'string') {
2058
+ return new TypeError('Expected "string" but received "' + typeof obj_searchResultUniqueIdField + '" (at "' + path_searchResultUniqueIdField + '")');
2059
+ }
2060
+ const obj_searchSequenceNo = obj.searchSequenceNo;
2061
+ const path_searchSequenceNo = path + '.searchSequenceNo';
2062
+ if (typeof obj_searchSequenceNo !== 'number' || (typeof obj_searchSequenceNo === 'number' && Math.floor(obj_searchSequenceNo) !== obj_searchSequenceNo)) {
2063
+ return new TypeError('Expected "integer" but received "' + typeof obj_searchSequenceNo + '" (at "' + path_searchSequenceNo + '")');
2064
+ }
2065
+ const obj_searchType = obj.searchType;
2066
+ const path_searchType = path + '.searchType';
2067
+ if (typeof obj_searchType !== 'string') {
2068
+ return new TypeError('Expected "string" but received "' + typeof obj_searchType + '" (at "' + path_searchType + '")');
2069
+ }
2070
+ const obj_verificationProcessFieldList = obj.verificationProcessFieldList;
2071
+ const path_verificationProcessFieldList = path + '.verificationProcessFieldList';
2072
+ const referencepath_verificationProcessFieldListValidationError = validate$f(obj_verificationProcessFieldList, path_verificationProcessFieldList);
2073
+ if (referencepath_verificationProcessFieldListValidationError !== null) {
2074
+ let message = 'Object doesn\'t match VerificationProcessFieldListInputRepresentation (at "' + path_verificationProcessFieldList + '")\n';
2075
+ message += referencepath_verificationProcessFieldListValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2076
+ return new TypeError(message);
2077
+ }
2078
+ })();
2079
+ return v_error === undefined ? null : v_error;
2080
+ }
2081
+
2082
+ function validate$d(obj, path = 'ProcessDetailListInputRepresentation') {
2083
+ const v_error = (() => {
2084
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2085
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2086
+ }
2087
+ const obj_processDetailList = obj.processDetailList;
2088
+ const path_processDetailList = path + '.processDetailList';
2089
+ if (!ArrayIsArray(obj_processDetailList)) {
2090
+ return new TypeError('Expected "array" but received "' + typeof obj_processDetailList + '" (at "' + path_processDetailList + '")');
2091
+ }
2092
+ for (let i = 0; i < obj_processDetailList.length; i++) {
2093
+ const obj_processDetailList_item = obj_processDetailList[i];
2094
+ const path_processDetailList_item = path_processDetailList + '[' + i + ']';
2095
+ const referencepath_processDetailList_itemValidationError = validate$e(obj_processDetailList_item, path_processDetailList_item);
2096
+ if (referencepath_processDetailList_itemValidationError !== null) {
2097
+ let message = 'Object doesn\'t match ProcessDetailInputRepresentation (at "' + path_processDetailList_item + '")\n';
2098
+ message += referencepath_processDetailList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2099
+ return new TypeError(message);
2100
+ }
2101
+ }
2102
+ })();
2103
+ return v_error === undefined ? null : v_error;
2104
+ }
2105
+
2106
+ function validate$c(obj, path = 'ProcessDefinitionInputRepresentation') {
2107
+ const v_error = (() => {
2108
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2109
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2110
+ }
2111
+ const obj_layoutType = obj.layoutType;
2112
+ const path_layoutType = path + '.layoutType';
2113
+ if (typeof obj_layoutType !== 'string') {
2114
+ return new TypeError('Expected "string" but received "' + typeof obj_layoutType + '" (at "' + path_layoutType + '")');
2115
+ }
2116
+ const obj_processDetail = obj.processDetail;
2117
+ const path_processDetail = path + '.processDetail';
2118
+ const referencepath_processDetailValidationError = validate$d(obj_processDetail, path_processDetail);
2119
+ if (referencepath_processDetailValidationError !== null) {
2120
+ let message = 'Object doesn\'t match ProcessDetailListInputRepresentation (at "' + path_processDetail + '")\n';
2121
+ message += referencepath_processDetailValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2122
+ return new TypeError(message);
2123
+ }
2124
+ })();
2125
+ return v_error === undefined ? null : v_error;
2126
+ }
2127
+
2128
+ function validate$b(obj, path = 'FieldValueInputRepresentation') {
2129
+ const v_error = (() => {
2130
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2131
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2132
+ }
2133
+ const obj_developerName = obj.developerName;
2134
+ const path_developerName = path + '.developerName';
2135
+ if (typeof obj_developerName !== 'string') {
2136
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
2137
+ }
2138
+ const obj_value = obj.value;
2139
+ const path_value = path + '.value';
2140
+ if (typeof obj_value !== 'string') {
2141
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2142
+ }
2143
+ })();
2144
+ return v_error === undefined ? null : v_error;
2145
+ }
2146
+
2147
+ function validate$a(obj, path = 'FieldValueListInputRepresentation') {
2148
+ const v_error = (() => {
2149
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2150
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2151
+ }
2152
+ const obj_selectedRecordObjectList = obj.selectedRecordObjectList;
2153
+ const path_selectedRecordObjectList = path + '.selectedRecordObjectList';
2154
+ if (!ArrayIsArray(obj_selectedRecordObjectList)) {
2155
+ return new TypeError('Expected "array" but received "' + typeof obj_selectedRecordObjectList + '" (at "' + path_selectedRecordObjectList + '")');
2156
+ }
2157
+ for (let i = 0; i < obj_selectedRecordObjectList.length; i++) {
2158
+ const obj_selectedRecordObjectList_item = obj_selectedRecordObjectList[i];
2159
+ const path_selectedRecordObjectList_item = path_selectedRecordObjectList + '[' + i + ']';
2160
+ const referencepath_selectedRecordObjectList_itemValidationError = validate$b(obj_selectedRecordObjectList_item, path_selectedRecordObjectList_item);
2161
+ if (referencepath_selectedRecordObjectList_itemValidationError !== null) {
2162
+ let message = 'Object doesn\'t match FieldValueInputRepresentation (at "' + path_selectedRecordObjectList_item + '")\n';
2163
+ message += referencepath_selectedRecordObjectList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2164
+ return new TypeError(message);
2165
+ }
2166
+ }
2167
+ })();
2168
+ return v_error === undefined ? null : v_error;
2169
+ }
2170
+
2171
+ function validate$9(obj, path = 'SelectedSearchResultInputRepresentation') {
2172
+ const v_error = (() => {
2173
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2174
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2175
+ }
2176
+ const obj_objectName = obj.objectName;
2177
+ const path_objectName = path + '.objectName';
2178
+ if (typeof obj_objectName !== 'string') {
2179
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
2180
+ }
2181
+ const obj_selectedRecordId = obj.selectedRecordId;
2182
+ const path_selectedRecordId = path + '.selectedRecordId';
2183
+ if (typeof obj_selectedRecordId !== 'string') {
2184
+ return new TypeError('Expected "string" but received "' + typeof obj_selectedRecordId + '" (at "' + path_selectedRecordId + '")');
2185
+ }
2186
+ const obj_selectedRecordObject = obj.selectedRecordObject;
2187
+ const path_selectedRecordObject = path + '.selectedRecordObject';
2188
+ const referencepath_selectedRecordObjectValidationError = validate$a(obj_selectedRecordObject, path_selectedRecordObject);
2189
+ if (referencepath_selectedRecordObjectValidationError !== null) {
2190
+ let message = 'Object doesn\'t match FieldValueListInputRepresentation (at "' + path_selectedRecordObject + '")\n';
2191
+ message += referencepath_selectedRecordObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2192
+ return new TypeError(message);
2193
+ }
2194
+ })();
2195
+ return v_error === undefined ? null : v_error;
2196
+ }
2197
+
2198
+ function validate$8(obj, path = 'VerifierInputRepresentation') {
2199
+ const v_error = (() => {
2200
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2201
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2202
+ }
2203
+ const obj_developerName = obj.developerName;
2204
+ const path_developerName = path + '.developerName';
2205
+ if (typeof obj_developerName !== 'string') {
2206
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
2207
+ }
2208
+ const obj_verificationState = obj.verificationState;
2209
+ const path_verificationState = path + '.verificationState';
2210
+ if (typeof obj_verificationState !== 'string') {
2211
+ return new TypeError('Expected "string" but received "' + typeof obj_verificationState + '" (at "' + path_verificationState + '")');
2212
+ }
2213
+ })();
2214
+ return v_error === undefined ? null : v_error;
2215
+ }
2216
+
2217
+ function validate$7(obj, path = 'VerifierListInputRepresentation') {
2218
+ const v_error = (() => {
2219
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2220
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2221
+ }
2222
+ const obj_verifiersList = obj.verifiersList;
2223
+ const path_verifiersList = path + '.verifiersList';
2224
+ if (!ArrayIsArray(obj_verifiersList)) {
2225
+ return new TypeError('Expected "array" but received "' + typeof obj_verifiersList + '" (at "' + path_verifiersList + '")');
2226
+ }
2227
+ for (let i = 0; i < obj_verifiersList.length; i++) {
2228
+ const obj_verifiersList_item = obj_verifiersList[i];
2229
+ const path_verifiersList_item = path_verifiersList + '[' + i + ']';
2230
+ const referencepath_verifiersList_itemValidationError = validate$8(obj_verifiersList_item, path_verifiersList_item);
2231
+ if (referencepath_verifiersList_itemValidationError !== null) {
2232
+ let message = 'Object doesn\'t match VerifierInputRepresentation (at "' + path_verifiersList_item + '")\n';
2233
+ message += referencepath_verifiersList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2234
+ return new TypeError(message);
2235
+ }
2236
+ }
2237
+ })();
2238
+ return v_error === undefined ? null : v_error;
2239
+ }
2240
+
2241
+ function validate$6(obj, path = 'VerifiedResultInputRepresentation') {
2242
+ const v_error = (() => {
2243
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2244
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2245
+ }
2246
+ const obj_optionalVerifiers = obj.optionalVerifiers;
2247
+ const path_optionalVerifiers = path + '.optionalVerifiers';
2248
+ const referencepath_optionalVerifiersValidationError = validate$7(obj_optionalVerifiers, path_optionalVerifiers);
2249
+ if (referencepath_optionalVerifiersValidationError !== null) {
2250
+ let message = 'Object doesn\'t match VerifierListInputRepresentation (at "' + path_optionalVerifiers + '")\n';
2251
+ message += referencepath_optionalVerifiersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2252
+ return new TypeError(message);
2253
+ }
2254
+ const obj_requiredVerifiers = obj.requiredVerifiers;
2255
+ const path_requiredVerifiers = path + '.requiredVerifiers';
2256
+ const referencepath_requiredVerifiersValidationError = validate$7(obj_requiredVerifiers, path_requiredVerifiers);
2257
+ if (referencepath_requiredVerifiersValidationError !== null) {
2258
+ let message = 'Object doesn\'t match VerifierListInputRepresentation (at "' + path_requiredVerifiers + '")\n';
2259
+ message += referencepath_requiredVerifiersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2260
+ return new TypeError(message);
2261
+ }
2262
+ })();
2263
+ return v_error === undefined ? null : v_error;
2264
+ }
2265
+
2266
+ function validate$5(obj, path = 'VerificationContextInputRepresentation') {
2267
+ const v_error = (() => {
2268
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2269
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2270
+ }
2271
+ const obj_processDefinition = obj.processDefinition;
2272
+ const path_processDefinition = path + '.processDefinition';
2273
+ const referencepath_processDefinitionValidationError = validate$c(obj_processDefinition, path_processDefinition);
2274
+ if (referencepath_processDefinitionValidationError !== null) {
2275
+ let message = 'Object doesn\'t match ProcessDefinitionInputRepresentation (at "' + path_processDefinition + '")\n';
2276
+ message += referencepath_processDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2277
+ return new TypeError(message);
2278
+ }
2279
+ const obj_selectedSearchResult = obj.selectedSearchResult;
2280
+ const path_selectedSearchResult = path + '.selectedSearchResult';
2281
+ const referencepath_selectedSearchResultValidationError = validate$9(obj_selectedSearchResult, path_selectedSearchResult);
2282
+ if (referencepath_selectedSearchResultValidationError !== null) {
2283
+ let message = 'Object doesn\'t match SelectedSearchResultInputRepresentation (at "' + path_selectedSearchResult + '")\n';
2284
+ message += referencepath_selectedSearchResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2285
+ return new TypeError(message);
2286
+ }
2287
+ const obj_selectedVerifiedResult = obj.selectedVerifiedResult;
2288
+ const path_selectedVerifiedResult = path + '.selectedVerifiedResult';
2289
+ const referencepath_selectedVerifiedResultValidationError = validate$A(obj_selectedVerifiedResult, path_selectedVerifiedResult);
2290
+ if (referencepath_selectedVerifiedResultValidationError !== null) {
2291
+ let message = 'Object doesn\'t match SelectedVerifiedResultInputRepresentation (at "' + path_selectedVerifiedResult + '")\n';
2292
+ message += referencepath_selectedVerifiedResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2293
+ return new TypeError(message);
2294
+ }
2295
+ const obj_verifiedResult = obj.verifiedResult;
2296
+ const path_verifiedResult = path + '.verifiedResult';
2297
+ const referencepath_verifiedResultValidationError = validate$6(obj_verifiedResult, path_verifiedResult);
2298
+ if (referencepath_verifiedResultValidationError !== null) {
2299
+ let message = 'Object doesn\'t match VerifiedResultInputRepresentation (at "' + path_verifiedResult + '")\n';
2300
+ message += referencepath_verifiedResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2301
+ return new TypeError(message);
2302
+ }
2303
+ })();
2304
+ return v_error === undefined ? null : v_error;
2305
+ }
2306
+
2307
+ function validate$4(obj, path = 'SearchInputRepresentation') {
2308
+ const v_error = (() => {
2309
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2310
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2311
+ }
2312
+ const obj_searchFilters = obj.searchFilters;
2313
+ const path_searchFilters = path + '.searchFilters';
2314
+ const referencepath_searchFiltersValidationError = validate$h(obj_searchFilters, path_searchFilters);
2315
+ if (referencepath_searchFiltersValidationError !== null) {
2316
+ let message = 'Object doesn\'t match SearchFilterListInputRepresentation (at "' + path_searchFilters + '")\n';
2317
+ message += referencepath_searchFiltersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2318
+ return new TypeError(message);
2319
+ }
2320
+ const obj_searchTerm = obj.searchTerm;
2321
+ const path_searchTerm = path + '.searchTerm';
2322
+ if (typeof obj_searchTerm !== 'string') {
2323
+ return new TypeError('Expected "string" but received "' + typeof obj_searchTerm + '" (at "' + path_searchTerm + '")');
2324
+ }
2325
+ const obj_verificationContext = obj.verificationContext;
2326
+ const path_verificationContext = path + '.verificationContext';
2327
+ const referencepath_verificationContextValidationError = validate$5(obj_verificationContext, path_verificationContext);
2328
+ if (referencepath_verificationContextValidationError !== null) {
2329
+ let message = 'Object doesn\'t match VerificationContextInputRepresentation (at "' + path_verificationContext + '")\n';
2330
+ message += referencepath_verificationContextValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2331
+ return new TypeError(message);
2332
+ }
2333
+ })();
2334
+ return v_error === undefined ? null : v_error;
2335
+ }
2336
+
2337
+ const VERSION$3 = "39ef3d0d437e38ad865ad83a2977d33f";
2338
+ function validate$3(obj, path = 'SearchFieldRepresentation') {
2339
+ const v_error = (() => {
2340
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2341
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2342
+ }
2343
+ const obj_developerName = obj.developerName;
2344
+ const path_developerName = path + '.developerName';
2345
+ if (typeof obj_developerName !== 'string') {
2346
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
2347
+ }
2348
+ const obj_value = obj.value;
2349
+ const path_value = path + '.value';
2350
+ if (typeof obj_value !== 'string') {
2351
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2352
+ }
2353
+ })();
2354
+ return v_error === undefined ? null : v_error;
2355
+ }
2356
+ const select$5 = function SearchFieldRepresentationSelect() {
2357
+ return {
2358
+ kind: 'Fragment',
2359
+ version: VERSION$3,
2360
+ private: [],
2361
+ selections: [
2362
+ {
2363
+ name: 'developerName',
2364
+ kind: 'Scalar'
2365
+ },
2366
+ {
2367
+ name: 'value',
2368
+ kind: 'Scalar'
2369
+ }
2370
+ ]
2371
+ };
2372
+ };
2373
+ function equals$3(existing, incoming) {
2374
+ const existing_developerName = existing.developerName;
2375
+ const incoming_developerName = incoming.developerName;
2376
+ if (!(existing_developerName === incoming_developerName)) {
2377
+ return false;
2378
+ }
2379
+ const existing_value = existing.value;
2380
+ const incoming_value = incoming.value;
2381
+ if (!(existing_value === incoming_value)) {
2382
+ return false;
2383
+ }
2384
+ return true;
2385
+ }
2386
+
2387
+ const VERSION$2 = "b308e2de6551edfa314aab674ff62608";
2388
+ function validate$2(obj, path = 'SearchResultRepresentation') {
2389
+ const v_error = (() => {
2390
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2391
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2392
+ }
2393
+ const obj_searchFields = obj.searchFields;
2394
+ const path_searchFields = path + '.searchFields';
2395
+ if (!ArrayIsArray(obj_searchFields)) {
2396
+ return new TypeError('Expected "array" but received "' + typeof obj_searchFields + '" (at "' + path_searchFields + '")');
2397
+ }
2398
+ for (let i = 0; i < obj_searchFields.length; i++) {
2399
+ const obj_searchFields_item = obj_searchFields[i];
2400
+ const path_searchFields_item = path_searchFields + '[' + i + ']';
2401
+ const referencepath_searchFields_itemValidationError = validate$3(obj_searchFields_item, path_searchFields_item);
2402
+ if (referencepath_searchFields_itemValidationError !== null) {
2403
+ let message = 'Object doesn\'t match SearchFieldRepresentation (at "' + path_searchFields_item + '")\n';
2404
+ message += referencepath_searchFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2405
+ return new TypeError(message);
2406
+ }
2407
+ }
2408
+ })();
2409
+ return v_error === undefined ? null : v_error;
2410
+ }
2411
+ const select$4 = function SearchResultRepresentationSelect() {
2412
+ const { selections: SearchFieldRepresentation__selections, opaque: SearchFieldRepresentation__opaque, } = select$5();
2413
+ return {
2414
+ kind: 'Fragment',
2415
+ version: VERSION$2,
2416
+ private: [],
2417
+ selections: [
2418
+ {
2419
+ name: 'searchFields',
2420
+ kind: 'Object',
2421
+ plural: true,
2422
+ selections: SearchFieldRepresentation__selections
2423
+ }
2424
+ ]
2425
+ };
2426
+ };
2427
+ function equals$2(existing, incoming) {
2428
+ const existing_searchFields = existing.searchFields;
2429
+ const incoming_searchFields = incoming.searchFields;
2430
+ const equals_searchFields_items = equalsArray(existing_searchFields, incoming_searchFields, (existing_searchFields_item, incoming_searchFields_item) => {
2431
+ if (!(equals$3(existing_searchFields_item, incoming_searchFields_item))) {
2432
+ return false;
2433
+ }
2434
+ });
2435
+ if (equals_searchFields_items === false) {
2436
+ return false;
2437
+ }
2438
+ return true;
2439
+ }
2440
+
2441
+ const VERSION$1 = "a3627b3009adf6d8fac512b5ad5d708d";
2442
+ function validate$1(obj, path = 'SearchResultHeaderRepresentation') {
2443
+ const v_error = (() => {
2444
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2445
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2446
+ }
2447
+ const obj_dataType = obj.dataType;
2448
+ const path_dataType = path + '.dataType';
2449
+ if (typeof obj_dataType !== 'string') {
2450
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
2451
+ }
2452
+ const obj_developerName = obj.developerName;
2453
+ const path_developerName = path + '.developerName';
2454
+ if (typeof obj_developerName !== 'string') {
2455
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
2456
+ }
2457
+ const obj_displayLabel = obj.displayLabel;
2458
+ const path_displayLabel = path + '.displayLabel';
2459
+ if (typeof obj_displayLabel !== 'string') {
2460
+ return new TypeError('Expected "string" but received "' + typeof obj_displayLabel + '" (at "' + path_displayLabel + '")');
2461
+ }
2462
+ })();
2463
+ return v_error === undefined ? null : v_error;
2464
+ }
2465
+ const select$3 = function SearchResultHeaderRepresentationSelect() {
2466
+ return {
2467
+ kind: 'Fragment',
2468
+ version: VERSION$1,
2469
+ private: [],
2470
+ selections: [
2471
+ {
2472
+ name: 'dataType',
2473
+ kind: 'Scalar'
2474
+ },
2475
+ {
2476
+ name: 'developerName',
2477
+ kind: 'Scalar'
2478
+ },
2479
+ {
2480
+ name: 'displayLabel',
2481
+ kind: 'Scalar'
2482
+ }
2483
+ ]
2484
+ };
2485
+ };
2486
+ function equals$1(existing, incoming) {
2487
+ const existing_dataType = existing.dataType;
2488
+ const incoming_dataType = incoming.dataType;
2489
+ if (!(existing_dataType === incoming_dataType)) {
2490
+ return false;
2491
+ }
2492
+ const existing_developerName = existing.developerName;
2493
+ const incoming_developerName = incoming.developerName;
2494
+ if (!(existing_developerName === incoming_developerName)) {
2495
+ return false;
2496
+ }
2497
+ const existing_displayLabel = existing.displayLabel;
2498
+ const incoming_displayLabel = incoming.displayLabel;
2499
+ if (!(existing_displayLabel === incoming_displayLabel)) {
2500
+ return false;
2501
+ }
2502
+ return true;
2503
+ }
2504
+
2505
+ const TTL = 300;
2506
+ const VERSION = "979c60b836386e96a5484b2af400562d";
2507
+ function validate(obj, path = 'SearchOutputRepresentation') {
2508
+ const v_error = (() => {
2509
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2510
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2511
+ }
2512
+ const obj_isSuccess = obj.isSuccess;
2513
+ const path_isSuccess = path + '.isSuccess';
2514
+ if (typeof obj_isSuccess !== 'boolean') {
2515
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
2516
+ }
2517
+ const obj_message = obj.message;
2518
+ const path_message = path + '.message';
2519
+ if (typeof obj_message !== 'string') {
2520
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
2521
+ }
2522
+ const obj_searchResult = obj.searchResult;
2523
+ const path_searchResult = path + '.searchResult';
2524
+ if (!ArrayIsArray(obj_searchResult)) {
2525
+ return new TypeError('Expected "array" but received "' + typeof obj_searchResult + '" (at "' + path_searchResult + '")');
2526
+ }
2527
+ for (let i = 0; i < obj_searchResult.length; i++) {
2528
+ const obj_searchResult_item = obj_searchResult[i];
2529
+ const path_searchResult_item = path_searchResult + '[' + i + ']';
2530
+ const referencepath_searchResult_itemValidationError = validate$2(obj_searchResult_item, path_searchResult_item);
2531
+ if (referencepath_searchResult_itemValidationError !== null) {
2532
+ let message = 'Object doesn\'t match SearchResultRepresentation (at "' + path_searchResult_item + '")\n';
2533
+ message += referencepath_searchResult_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2534
+ return new TypeError(message);
2535
+ }
2536
+ }
2537
+ const obj_searchResultHeader = obj.searchResultHeader;
2538
+ const path_searchResultHeader = path + '.searchResultHeader';
2539
+ if (!ArrayIsArray(obj_searchResultHeader)) {
2540
+ return new TypeError('Expected "array" but received "' + typeof obj_searchResultHeader + '" (at "' + path_searchResultHeader + '")');
2541
+ }
2542
+ for (let i = 0; i < obj_searchResultHeader.length; i++) {
2543
+ const obj_searchResultHeader_item = obj_searchResultHeader[i];
2544
+ const path_searchResultHeader_item = path_searchResultHeader + '[' + i + ']';
2545
+ const referencepath_searchResultHeader_itemValidationError = validate$1(obj_searchResultHeader_item, path_searchResultHeader_item);
2546
+ if (referencepath_searchResultHeader_itemValidationError !== null) {
2547
+ let message = 'Object doesn\'t match SearchResultHeaderRepresentation (at "' + path_searchResultHeader_item + '")\n';
2548
+ message += referencepath_searchResultHeader_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2549
+ return new TypeError(message);
2550
+ }
2551
+ }
2552
+ })();
2553
+ return v_error === undefined ? null : v_error;
2554
+ }
2555
+ const RepresentationType = 'SearchOutputRepresentation';
2556
+ function keyBuilder(luvio, config) {
2557
+ return keyPrefix + '::' + RepresentationType + ':' + config.message;
2558
+ }
2559
+ function keyBuilderFromType(luvio, object) {
2560
+ const keyParams = {
2561
+ message: object.message
2562
+ };
2563
+ return keyBuilder(luvio, keyParams);
2564
+ }
2565
+ function normalize(input, existing, path, luvio, store, timestamp) {
2566
+ return input;
2567
+ }
2568
+ const select$2 = function SearchOutputRepresentationSelect() {
2569
+ const { selections: SearchResultRepresentation__selections, opaque: SearchResultRepresentation__opaque, } = select$4();
2570
+ const { selections: SearchResultHeaderRepresentation__selections, opaque: SearchResultHeaderRepresentation__opaque, } = select$3();
2571
+ return {
2572
+ kind: 'Fragment',
2573
+ version: VERSION,
2574
+ private: [],
2575
+ selections: [
2576
+ {
2577
+ name: 'isSuccess',
2578
+ kind: 'Scalar'
2579
+ },
2580
+ {
2581
+ name: 'message',
2582
+ kind: 'Scalar'
2583
+ },
2584
+ {
2585
+ name: 'searchResult',
2586
+ kind: 'Object',
2587
+ plural: true,
2588
+ selections: SearchResultRepresentation__selections
2589
+ },
2590
+ {
2591
+ name: 'searchResultHeader',
2592
+ kind: 'Object',
2593
+ plural: true,
2594
+ selections: SearchResultHeaderRepresentation__selections
2595
+ }
2596
+ ]
2597
+ };
2598
+ };
2599
+ function equals(existing, incoming) {
2600
+ const existing_isSuccess = existing.isSuccess;
2601
+ const incoming_isSuccess = incoming.isSuccess;
2602
+ if (!(existing_isSuccess === incoming_isSuccess)) {
2603
+ return false;
2604
+ }
2605
+ const existing_message = existing.message;
2606
+ const incoming_message = incoming.message;
2607
+ if (!(existing_message === incoming_message)) {
2608
+ return false;
2609
+ }
2610
+ const existing_searchResult = existing.searchResult;
2611
+ const incoming_searchResult = incoming.searchResult;
2612
+ const equals_searchResult_items = equalsArray(existing_searchResult, incoming_searchResult, (existing_searchResult_item, incoming_searchResult_item) => {
2613
+ if (!(equals$2(existing_searchResult_item, incoming_searchResult_item))) {
2614
+ return false;
2615
+ }
2616
+ });
2617
+ if (equals_searchResult_items === false) {
2618
+ return false;
2619
+ }
2620
+ const existing_searchResultHeader = existing.searchResultHeader;
2621
+ const incoming_searchResultHeader = incoming.searchResultHeader;
2622
+ const equals_searchResultHeader_items = equalsArray(existing_searchResultHeader, incoming_searchResultHeader, (existing_searchResultHeader_item, incoming_searchResultHeader_item) => {
2623
+ if (!(equals$1(existing_searchResultHeader_item, incoming_searchResultHeader_item))) {
2624
+ return false;
2625
+ }
2626
+ });
2627
+ if (equals_searchResultHeader_items === false) {
2628
+ return false;
2629
+ }
2630
+ return true;
2631
+ }
2632
+ const ingest = function SearchOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2633
+ if (process.env.NODE_ENV !== 'production') {
2634
+ const validateError = validate(input);
2635
+ if (validateError !== null) {
2636
+ throw validateError;
2637
+ }
2638
+ }
2639
+ const key = keyBuilderFromType(luvio, input);
2640
+ const existingRecord = store.readEntry(key);
2641
+ const ttlToUse = TTL;
2642
+ let incomingRecord = normalize(input, store.readEntry(key), {
2643
+ fullPath: key,
2644
+ parent: path.parent,
2645
+ propertyName: path.propertyName,
2646
+ ttl: ttlToUse
2647
+ });
2648
+ if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
2649
+ luvio.storePublish(key, incomingRecord);
2650
+ }
2651
+ {
2652
+ const storeMetadataParams = {
2653
+ ttl: ttlToUse,
2654
+ namespace: "IdentityVerification",
2655
+ version: VERSION,
2656
+ representationName: RepresentationType,
2657
+ };
2658
+ luvio.publishStoreMetadata(key, storeMetadataParams);
2659
+ }
2660
+ return createLink(key);
2661
+ };
2662
+ function getTypeCacheKeys(luvio, input, fullPathFactory) {
2663
+ const rootKeySet = new StoreKeyMap();
2664
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2665
+ const rootKey = keyBuilderFromType(luvio, input);
2666
+ rootKeySet.set(rootKey, {
2667
+ namespace: keyPrefix,
2668
+ representationName: RepresentationType,
2669
+ mergeable: false
2670
+ });
2671
+ return rootKeySet;
2672
+ }
2673
+
2674
+ function select$1(luvio, params) {
2675
+ return select$2();
2676
+ }
2677
+ function getResponseCacheKeys$1(luvio, resourceParams, response) {
2678
+ return getTypeCacheKeys(luvio, response);
2679
+ }
2680
+ function ingestSuccess$1(luvio, resourceParams, response) {
2681
+ const { body } = response;
2682
+ const key = keyBuilderFromType(luvio, body);
2683
+ luvio.storeIngest(key, ingest, body);
2684
+ const snapshot = luvio.storeLookup({
2685
+ recordId: key,
2686
+ node: select$1(),
2687
+ variables: {},
2688
+ });
2689
+ if (process.env.NODE_ENV !== 'production') {
2690
+ if (snapshot.state !== 'Fulfilled') {
2691
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2692
+ }
2693
+ }
2694
+ return snapshot;
2695
+ }
2696
+ function createResourceRequest$1(config) {
2697
+ const headers = {};
2698
+ return {
2699
+ baseUri: '/services/data/v58.0',
2700
+ basePath: '/connect/identity-verification/search',
2701
+ method: 'post',
2702
+ body: config.body,
2703
+ urlParams: {},
2704
+ queryParams: {},
2705
+ headers,
2706
+ priority: 'normal',
2707
+ };
2708
+ }
2709
+
2710
+ const searchRecords_ConfigPropertyNames = {
2711
+ displayName: 'searchRecords',
2712
+ parameters: {
2713
+ required: ['SearchRecordsContextData'],
2714
+ optional: []
2715
+ }
2716
+ };
2717
+ function createResourceParams$1(config) {
2718
+ const resourceParams = {
2719
+ body: {
2720
+ SearchRecordsContextData: config.SearchRecordsContextData
2721
+ }
2722
+ };
2723
+ return resourceParams;
2724
+ }
2725
+ function typeCheckConfig$1(untrustedConfig) {
2726
+ const config = {};
2727
+ const untrustedConfig_SearchRecordsContextData = untrustedConfig.SearchRecordsContextData;
2728
+ const referenceSearchInputRepresentationValidationError = validate$4(untrustedConfig_SearchRecordsContextData);
2729
+ if (referenceSearchInputRepresentationValidationError === null) {
2730
+ config.SearchRecordsContextData = untrustedConfig_SearchRecordsContextData;
2731
+ }
2732
+ return config;
2733
+ }
2734
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2735
+ if (!untrustedIsObject(untrustedConfig)) {
2736
+ return null;
2737
+ }
2738
+ if (process.env.NODE_ENV !== 'production') {
2739
+ validateConfig(untrustedConfig, configPropertyNames);
2740
+ }
2741
+ const config = typeCheckConfig$1(untrustedConfig);
2742
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2743
+ return null;
2744
+ }
2745
+ return config;
2746
+ }
2747
+ function buildNetworkSnapshot$1(luvio, config, options) {
2748
+ const resourceParams = createResourceParams$1(config);
2749
+ const request = createResourceRequest$1(resourceParams);
2750
+ return luvio.dispatchResourceRequest(request, options)
2751
+ .then((response) => {
2752
+ return luvio.handleSuccessResponse(() => {
2753
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
2754
+ return luvio.storeBroadcast().then(() => snapshot);
2755
+ }, () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
2756
+ }, (response) => {
2757
+ deepFreeze(response);
2758
+ throw response;
2759
+ });
2760
+ }
2761
+ const searchRecordsAdapterFactory = (luvio) => {
2762
+ return function searchRecords(untrustedConfig) {
2763
+ const config = validateAdapterConfig$1(untrustedConfig, searchRecords_ConfigPropertyNames);
2764
+ // Invalid or incomplete config
2765
+ if (config === null) {
2766
+ throw new Error('Invalid config for "searchRecords"');
2767
+ }
2768
+ return buildNetworkSnapshot$1(luvio, config);
2769
+ };
2770
+ };
2771
+
2772
+ function select(luvio, params) {
2773
+ return select$d();
2774
+ }
2775
+ function getResponseCacheKeys(luvio, resourceParams, response) {
2776
+ return getTypeCacheKeys$2(luvio, response);
2777
+ }
2778
+ function ingestSuccess(luvio, resourceParams, response) {
2779
+ const { body } = response;
2780
+ const key = keyBuilderFromType$2(luvio, body);
2781
+ luvio.storeIngest(key, ingest$2, body);
2782
+ const snapshot = luvio.storeLookup({
2783
+ recordId: key,
2784
+ node: select(),
2785
+ variables: {},
2786
+ });
2787
+ if (process.env.NODE_ENV !== 'production') {
2788
+ if (snapshot.state !== 'Fulfilled') {
2789
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2790
+ }
2791
+ }
2792
+ return snapshot;
2793
+ }
2794
+ function createResourceRequest(config) {
2795
+ const headers = {};
2796
+ return {
2797
+ baseUri: '/services/data/v58.0',
2798
+ basePath: '/connect/identity-verification/verification',
2799
+ method: 'post',
2800
+ body: config.body,
2801
+ urlParams: {},
2802
+ queryParams: {},
2803
+ headers,
2804
+ priority: 'normal',
2805
+ };
2806
+ }
2807
+
2808
+ const identityVerification_ConfigPropertyNames = {
2809
+ displayName: 'identityVerification',
2810
+ parameters: {
2811
+ required: ['IdentityVerificationContextData'],
2812
+ optional: []
2813
+ }
2814
+ };
2815
+ function createResourceParams(config) {
2816
+ const resourceParams = {
2817
+ body: {
2818
+ IdentityVerificationContextData: config.IdentityVerificationContextData
2819
+ }
2820
+ };
2821
+ return resourceParams;
2822
+ }
2823
+ function typeCheckConfig(untrustedConfig) {
2824
+ const config = {};
2825
+ const untrustedConfig_IdentityVerificationContextData = untrustedConfig.IdentityVerificationContextData;
2826
+ const referenceVerificationContextInputRepresentationValidationError = validate$5(untrustedConfig_IdentityVerificationContextData);
2827
+ if (referenceVerificationContextInputRepresentationValidationError === null) {
2828
+ config.IdentityVerificationContextData = untrustedConfig_IdentityVerificationContextData;
2829
+ }
2830
+ return config;
2831
+ }
2832
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
2833
+ if (!untrustedIsObject(untrustedConfig)) {
2834
+ return null;
2835
+ }
2836
+ if (process.env.NODE_ENV !== 'production') {
2837
+ validateConfig(untrustedConfig, configPropertyNames);
2838
+ }
2839
+ const config = typeCheckConfig(untrustedConfig);
2840
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2841
+ return null;
2842
+ }
2843
+ return config;
2844
+ }
2845
+ function buildNetworkSnapshot(luvio, config, options) {
2846
+ const resourceParams = createResourceParams(config);
2847
+ const request = createResourceRequest(resourceParams);
2848
+ return luvio.dispatchResourceRequest(request, options)
2849
+ .then((response) => {
2850
+ return luvio.handleSuccessResponse(() => {
2851
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
2852
+ return luvio.storeBroadcast().then(() => snapshot);
2853
+ }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
2854
+ }, (response) => {
2855
+ deepFreeze(response);
2856
+ throw response;
2857
+ });
2858
+ }
2859
+ const identityVerificationAdapterFactory = (luvio) => {
2860
+ return function identityVerification(untrustedConfig) {
2861
+ const config = validateAdapterConfig(untrustedConfig, identityVerification_ConfigPropertyNames);
2862
+ // Invalid or incomplete config
2863
+ if (config === null) {
2864
+ throw new Error('Invalid config for "identityVerification"');
2865
+ }
2866
+ return buildNetworkSnapshot(luvio, config);
2867
+ };
2868
+ };
2869
+
2870
+ export { buildVerificationContextAdapterFactory, createFormVerificationAdapterFactory, identityVerificationAdapterFactory, searchRecordsAdapterFactory };