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