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