@salesforce/lds-adapters-revenue-harmonizebilling 1.273.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/revenue-harmonizebilling.js +416 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/postDraftInvoices.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingInvoicesCollectionActionsPost.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/ErrorResponseRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/InvoiceDraftToPostedInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/RevenueAsyncRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +451 -0
- package/src/raml/api.raml +90 -0
- package/src/raml/luvio.raml +21 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Terms of Use
|
|
2
|
+
|
|
3
|
+
Copyright 2022 Salesforce, Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
These Terms of Use govern the download, installation, and/or use of this
|
|
6
|
+
software provided by Salesforce, Inc. ("Salesforce") (the "Software"), were
|
|
7
|
+
last updated on April 15, 2022, and constitute a legally binding
|
|
8
|
+
agreement between you and Salesforce. If you do not agree to these Terms of
|
|
9
|
+
Use, do not install or use the Software.
|
|
10
|
+
|
|
11
|
+
Salesforce grants you a worldwide, non-exclusive, no-charge, royalty-free
|
|
12
|
+
copyright license to reproduce, prepare derivative works of, publicly
|
|
13
|
+
display, publicly perform, sublicense, and distribute the Software and
|
|
14
|
+
derivative works subject to these Terms. These Terms shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
Subject to the limited rights expressly granted hereunder, Salesforce
|
|
18
|
+
reserves all rights, title, and interest in and to all intellectual
|
|
19
|
+
property subsisting in the Software. No rights are granted to you hereunder
|
|
20
|
+
other than as expressly set forth herein. Users residing in countries on
|
|
21
|
+
the United States Office of Foreign Assets Control sanction list, or which
|
|
22
|
+
are otherwise subject to a US export embargo, may not use the Software.
|
|
23
|
+
|
|
24
|
+
Implementation of the Software may require development work, for which you
|
|
25
|
+
are responsible. The Software may contain bugs, errors and
|
|
26
|
+
incompatibilities and is made available on an AS IS basis without support,
|
|
27
|
+
updates, or service level commitments.
|
|
28
|
+
|
|
29
|
+
Salesforce reserves the right at any time to modify, suspend, or
|
|
30
|
+
discontinue, the Software (or any part thereof) with or without notice. You
|
|
31
|
+
agree that Salesforce shall not be liable to you or to any third party for
|
|
32
|
+
any modification, suspension, or discontinuance.
|
|
33
|
+
|
|
34
|
+
You agree to defend Salesforce against any claim, demand, suit or
|
|
35
|
+
proceeding made or brought against Salesforce by a third party arising out
|
|
36
|
+
of or accruing from (a) your use of the Software, and (b) any application
|
|
37
|
+
you develop with the Software that infringes any copyright, trademark,
|
|
38
|
+
trade secret, trade dress, patent, or other intellectual property right of
|
|
39
|
+
any person or defames any person or violates their rights of publicity or
|
|
40
|
+
privacy (each a "Claim Against Salesforce"), and will indemnify Salesforce
|
|
41
|
+
from any damages, attorney fees, and costs finally awarded against
|
|
42
|
+
Salesforce as a result of, or for any amounts paid by Salesforce under a
|
|
43
|
+
settlement approved by you in writing of, a Claim Against Salesforce,
|
|
44
|
+
provided Salesforce (x) promptly gives you written notice of the Claim
|
|
45
|
+
Against Salesforce, (y) gives you sole control of the defense and
|
|
46
|
+
settlement of the Claim Against Salesforce (except that you may not settle
|
|
47
|
+
any Claim Against Salesforce unless it unconditionally releases Salesforce
|
|
48
|
+
of all liability), and (z) gives you all reasonable assistance, at your
|
|
49
|
+
expense.
|
|
50
|
+
|
|
51
|
+
WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE SOFTWARE IS NOT
|
|
52
|
+
SUPPORTED AND IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
53
|
+
IMPLIED. IN NO EVENT SHALL SALESFORCE HAVE ANY LIABILITY FOR ANY DAMAGES,
|
|
54
|
+
INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL, INCIDENTAL,
|
|
55
|
+
PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR DAMAGES BASED ON LOST PROFITS, DATA,
|
|
56
|
+
OR USE, IN CONNECTION WITH THE SOFTWARE, HOWEVER CAUSED AND WHETHER IN
|
|
57
|
+
CONTRACT, TORT, OR UNDER ANY OTHER THEORY OF LIABILITY, WHETHER OR NOT YOU
|
|
58
|
+
HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
59
|
+
|
|
60
|
+
These Terms of Use shall be governed exclusively by the internal laws of
|
|
61
|
+
the State of California, without regard to its conflicts of laws
|
|
62
|
+
rules. Each party hereby consents to the exclusive jurisdiction of the
|
|
63
|
+
state and federal courts located in San Francisco County, California to
|
|
64
|
+
adjudicate any dispute arising out of or relating to these Terms of Use and
|
|
65
|
+
the download, installation, and/or use of the Software. Except as expressly
|
|
66
|
+
stated herein, these Terms of Use constitute the entire agreement between
|
|
67
|
+
the parties, and supersede all prior and contemporaneous agreements,
|
|
68
|
+
proposals, or representations, written or oral, concerning their subject
|
|
69
|
+
matter. No modification, amendment, or waiver of any provision of these
|
|
70
|
+
Terms of Use shall be effective unless it is by an update to these Terms of
|
|
71
|
+
Use that Salesforce makes available, or is in writing and signed by the
|
|
72
|
+
party against whom the modification, amendment, or waiver is to be
|
|
73
|
+
asserted.
|
|
74
|
+
|
|
75
|
+
Data Privacy: Salesforce may collect, process, and store device,
|
|
76
|
+
system, and other information related to your use of the Software. This
|
|
77
|
+
information includes, but is not limited to, IP address, user metrics, and
|
|
78
|
+
other data ("Usage Data"). Salesforce may use Usage Data for analytics,
|
|
79
|
+
product development, and marketing purposes. You acknowledge that files
|
|
80
|
+
generated in conjunction with the Software may contain sensitive or
|
|
81
|
+
confidential data, and you are solely responsible for anonymizing and
|
|
82
|
+
protecting such data.
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from '@luvio/engine';
|
|
8
|
+
|
|
9
|
+
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
11
|
+
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
|
+
/**
|
|
13
|
+
* Validates an adapter config is well-formed.
|
|
14
|
+
* @param config The config to validate.
|
|
15
|
+
* @param adapter The adapter validation configuration.
|
|
16
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
17
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
18
|
+
*/
|
|
19
|
+
function validateConfig(config, adapter, oneOf) {
|
|
20
|
+
const { displayName } = adapter;
|
|
21
|
+
const { required, optional, unsupported } = adapter.parameters;
|
|
22
|
+
if (config === undefined ||
|
|
23
|
+
required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
24
|
+
throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
|
|
25
|
+
}
|
|
26
|
+
if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
27
|
+
throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
|
|
28
|
+
}
|
|
29
|
+
if (unsupported !== undefined &&
|
|
30
|
+
unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
|
|
31
|
+
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
|
+
}
|
|
33
|
+
const supported = required.concat(optional);
|
|
34
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
35
|
+
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function untrustedIsObject(untrusted) {
|
|
39
|
+
return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
|
|
40
|
+
}
|
|
41
|
+
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
42
|
+
return configPropertyNames.parameters.required.every(req => req in config);
|
|
43
|
+
}
|
|
44
|
+
const snapshotRefreshOptions = {
|
|
45
|
+
overrides: {
|
|
46
|
+
headers: {
|
|
47
|
+
'Cache-Control': 'no-cache',
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
|
+
return {
|
|
53
|
+
name,
|
|
54
|
+
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
58
|
+
coerceFn,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
62
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
63
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
64
|
+
return {
|
|
65
|
+
displayName,
|
|
66
|
+
parameters: {
|
|
67
|
+
required,
|
|
68
|
+
optional,
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const keyPrefix = 'HarmonizeBilling';
|
|
73
|
+
|
|
74
|
+
const { isArray: ArrayIsArray } = Array;
|
|
75
|
+
function equalsArray(a, b, equalsItem) {
|
|
76
|
+
const aLength = a.length;
|
|
77
|
+
const bLength = b.length;
|
|
78
|
+
if (aLength !== bLength) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
for (let i = 0; i < aLength; i++) {
|
|
82
|
+
if (equalsItem(a[i], b[i]) === false) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
function createLink(ref) {
|
|
89
|
+
return {
|
|
90
|
+
__ref: serializeStructuredKey(ref),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const VERSION$1 = "87ee05ce3f88ad0a2dc442b213bfc776";
|
|
95
|
+
function validate$1(obj, path = 'ErrorResponseRepresentation') {
|
|
96
|
+
const v_error = (() => {
|
|
97
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
99
|
+
}
|
|
100
|
+
const obj_errorCode = obj.errorCode;
|
|
101
|
+
const path_errorCode = path + '.errorCode';
|
|
102
|
+
if (typeof obj_errorCode !== 'string') {
|
|
103
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
104
|
+
}
|
|
105
|
+
const obj_message = obj.message;
|
|
106
|
+
const path_message = path + '.message';
|
|
107
|
+
if (typeof obj_message !== 'string') {
|
|
108
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
109
|
+
}
|
|
110
|
+
})();
|
|
111
|
+
return v_error === undefined ? null : v_error;
|
|
112
|
+
}
|
|
113
|
+
const select$2 = function ErrorResponseRepresentationSelect() {
|
|
114
|
+
return {
|
|
115
|
+
kind: 'Fragment',
|
|
116
|
+
version: VERSION$1,
|
|
117
|
+
private: [],
|
|
118
|
+
selections: [
|
|
119
|
+
{
|
|
120
|
+
name: 'errorCode',
|
|
121
|
+
kind: 'Scalar'
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'message',
|
|
125
|
+
kind: 'Scalar'
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
function equals$1(existing, incoming) {
|
|
131
|
+
const existing_errorCode = existing.errorCode;
|
|
132
|
+
const incoming_errorCode = incoming.errorCode;
|
|
133
|
+
if (!(existing_errorCode === incoming_errorCode)) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
const existing_message = existing.message;
|
|
137
|
+
const incoming_message = incoming.message;
|
|
138
|
+
if (!(existing_message === incoming_message)) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const TTL = 1000;
|
|
145
|
+
const VERSION = "c39f40d590b6aa4fa4327c8ca997c6cc";
|
|
146
|
+
function validate(obj, path = 'RevenueAsyncRepresentation') {
|
|
147
|
+
const v_error = (() => {
|
|
148
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
149
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
150
|
+
}
|
|
151
|
+
const obj_errors = obj.errors;
|
|
152
|
+
const path_errors = path + '.errors';
|
|
153
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
154
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
155
|
+
}
|
|
156
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
157
|
+
const obj_errors_item = obj_errors[i];
|
|
158
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
159
|
+
const referencepath_errors_itemValidationError = validate$1(obj_errors_item, path_errors_item);
|
|
160
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
161
|
+
let message = 'Object doesn\'t match ErrorResponseRepresentation (at "' + path_errors_item + '")\n';
|
|
162
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
163
|
+
return new TypeError(message);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const obj_requestIdentifier = obj.requestIdentifier;
|
|
167
|
+
const path_requestIdentifier = path + '.requestIdentifier';
|
|
168
|
+
if (typeof obj_requestIdentifier !== 'string') {
|
|
169
|
+
return new TypeError('Expected "string" but received "' + typeof obj_requestIdentifier + '" (at "' + path_requestIdentifier + '")');
|
|
170
|
+
}
|
|
171
|
+
if (obj.statusURL !== undefined) {
|
|
172
|
+
const obj_statusURL = obj.statusURL;
|
|
173
|
+
const path_statusURL = path + '.statusURL';
|
|
174
|
+
if (typeof obj_statusURL !== 'string') {
|
|
175
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusURL + '" (at "' + path_statusURL + '")');
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const obj_success = obj.success;
|
|
179
|
+
const path_success = path + '.success';
|
|
180
|
+
if (typeof obj_success !== 'boolean') {
|
|
181
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_success + '" (at "' + path_success + '")');
|
|
182
|
+
}
|
|
183
|
+
})();
|
|
184
|
+
return v_error === undefined ? null : v_error;
|
|
185
|
+
}
|
|
186
|
+
const RepresentationType = 'RevenueAsyncRepresentation';
|
|
187
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
188
|
+
return input;
|
|
189
|
+
}
|
|
190
|
+
const select$1 = function RevenueAsyncRepresentationSelect() {
|
|
191
|
+
const { selections: ErrorResponseRepresentation__selections, opaque: ErrorResponseRepresentation__opaque, } = select$2();
|
|
192
|
+
return {
|
|
193
|
+
kind: 'Fragment',
|
|
194
|
+
version: VERSION,
|
|
195
|
+
private: [],
|
|
196
|
+
selections: [
|
|
197
|
+
{
|
|
198
|
+
name: 'errors',
|
|
199
|
+
kind: 'Object',
|
|
200
|
+
plural: true,
|
|
201
|
+
selections: ErrorResponseRepresentation__selections
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: 'requestIdentifier',
|
|
205
|
+
kind: 'Scalar'
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'statusURL',
|
|
209
|
+
kind: 'Scalar',
|
|
210
|
+
required: false
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'success',
|
|
214
|
+
kind: 'Scalar'
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
function equals(existing, incoming) {
|
|
220
|
+
const existing_success = existing.success;
|
|
221
|
+
const incoming_success = incoming.success;
|
|
222
|
+
if (!(existing_success === incoming_success)) {
|
|
223
|
+
return false;
|
|
224
|
+
}
|
|
225
|
+
const existing_requestIdentifier = existing.requestIdentifier;
|
|
226
|
+
const incoming_requestIdentifier = incoming.requestIdentifier;
|
|
227
|
+
if (!(existing_requestIdentifier === incoming_requestIdentifier)) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
const existing_statusURL = existing.statusURL;
|
|
231
|
+
const incoming_statusURL = incoming.statusURL;
|
|
232
|
+
// if at least one of these optionals is defined
|
|
233
|
+
if (existing_statusURL !== undefined || incoming_statusURL !== undefined) {
|
|
234
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
235
|
+
// not equal
|
|
236
|
+
if (existing_statusURL === undefined || incoming_statusURL === undefined) {
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
if (!(existing_statusURL === incoming_statusURL)) {
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
const existing_errors = existing.errors;
|
|
244
|
+
const incoming_errors = incoming.errors;
|
|
245
|
+
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
246
|
+
if (!(equals$1(existing_errors_item, incoming_errors_item))) {
|
|
247
|
+
return false;
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
if (equals_errors_items === false) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
return true;
|
|
254
|
+
}
|
|
255
|
+
const ingest = function RevenueAsyncRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
256
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
257
|
+
const validateError = validate(input);
|
|
258
|
+
if (validateError !== null) {
|
|
259
|
+
throw validateError;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
const key = path.fullPath;
|
|
263
|
+
const ttlToUse = TTL;
|
|
264
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "HarmonizeBilling", VERSION, RepresentationType, equals);
|
|
265
|
+
return createLink(key);
|
|
266
|
+
};
|
|
267
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
268
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
269
|
+
const rootKey = fullPathFactory();
|
|
270
|
+
rootKeySet.set(rootKey, {
|
|
271
|
+
namespace: keyPrefix,
|
|
272
|
+
representationName: RepresentationType,
|
|
273
|
+
mergeable: false
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
function select(luvio, params) {
|
|
278
|
+
return select$1();
|
|
279
|
+
}
|
|
280
|
+
function keyBuilder$1(luvio, params) {
|
|
281
|
+
return keyPrefix + '::RevenueAsyncRepresentation:(' + (params.body.correlationId === undefined ? 'correlationId' : 'correlationId:' + params.body.correlationId) + '::' + 'invoiceIds:' + params.body.invoiceIds + ')';
|
|
282
|
+
}
|
|
283
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
284
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
285
|
+
}
|
|
286
|
+
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
287
|
+
const { body } = response;
|
|
288
|
+
const key = keyBuilder$1(luvio, resourceParams);
|
|
289
|
+
luvio.storeIngest(key, ingest, body);
|
|
290
|
+
const snapshot = luvio.storeLookup({
|
|
291
|
+
recordId: key,
|
|
292
|
+
node: select(),
|
|
293
|
+
variables: {},
|
|
294
|
+
}, snapshotRefresh);
|
|
295
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
296
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
297
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
deepFreeze(snapshot.data);
|
|
301
|
+
return snapshot;
|
|
302
|
+
}
|
|
303
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
304
|
+
const key = keyBuilder$1(luvio, params);
|
|
305
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
306
|
+
const storeMetadataParams = {
|
|
307
|
+
ttl: TTL,
|
|
308
|
+
namespace: keyPrefix,
|
|
309
|
+
version: VERSION,
|
|
310
|
+
representationName: RepresentationType
|
|
311
|
+
};
|
|
312
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
313
|
+
return errorSnapshot;
|
|
314
|
+
}
|
|
315
|
+
function createResourceRequest(config) {
|
|
316
|
+
const headers = {};
|
|
317
|
+
return {
|
|
318
|
+
baseUri: '/services/data/v61.0',
|
|
319
|
+
basePath: '/commerce/invoicing/invoices/collection/actions/post',
|
|
320
|
+
method: 'post',
|
|
321
|
+
body: config.body,
|
|
322
|
+
urlParams: {},
|
|
323
|
+
queryParams: {},
|
|
324
|
+
headers,
|
|
325
|
+
priority: 'normal',
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
const adapterName = 'postDraftInvoices';
|
|
330
|
+
const postDraftInvoices_ConfigPropertyMetadata = [
|
|
331
|
+
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
332
|
+
generateParamConfigMetadata('invoiceIds', true, 2 /* Body */, 0 /* String */, true),
|
|
333
|
+
];
|
|
334
|
+
const postDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postDraftInvoices_ConfigPropertyMetadata);
|
|
335
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(postDraftInvoices_ConfigPropertyMetadata);
|
|
336
|
+
function keyBuilder(luvio, config) {
|
|
337
|
+
const resourceParams = createResourceParams(config);
|
|
338
|
+
return keyBuilder$1(luvio, resourceParams);
|
|
339
|
+
}
|
|
340
|
+
function typeCheckConfig(untrustedConfig) {
|
|
341
|
+
const config = {};
|
|
342
|
+
typeCheckConfig$1(untrustedConfig, config, postDraftInvoices_ConfigPropertyMetadata);
|
|
343
|
+
return config;
|
|
344
|
+
}
|
|
345
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
346
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
350
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
351
|
+
}
|
|
352
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
353
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
354
|
+
return null;
|
|
355
|
+
}
|
|
356
|
+
return config;
|
|
357
|
+
}
|
|
358
|
+
function adapterFragment(luvio, config) {
|
|
359
|
+
createResourceParams(config);
|
|
360
|
+
return select();
|
|
361
|
+
}
|
|
362
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
363
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
364
|
+
config,
|
|
365
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
366
|
+
});
|
|
367
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
368
|
+
}
|
|
369
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
370
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
371
|
+
config,
|
|
372
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
373
|
+
});
|
|
374
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
375
|
+
}
|
|
376
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
377
|
+
const resourceParams = createResourceParams(config);
|
|
378
|
+
const request = createResourceRequest(resourceParams);
|
|
379
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
380
|
+
.then((response) => {
|
|
381
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
382
|
+
const cache = new StoreKeyMap();
|
|
383
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
384
|
+
return cache;
|
|
385
|
+
});
|
|
386
|
+
}, (response) => {
|
|
387
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
391
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
|
|
392
|
+
}
|
|
393
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
394
|
+
const { luvio, config } = context;
|
|
395
|
+
const selector = {
|
|
396
|
+
recordId: keyBuilder(luvio, config),
|
|
397
|
+
node: adapterFragment(luvio, config),
|
|
398
|
+
variables: {},
|
|
399
|
+
};
|
|
400
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
401
|
+
config,
|
|
402
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
403
|
+
});
|
|
404
|
+
return cacheSnapshot;
|
|
405
|
+
}
|
|
406
|
+
const postDraftInvoicesAdapterFactory = (luvio) => function HarmonizeBilling__postDraftInvoices(untrustedConfig, requestContext) {
|
|
407
|
+
const config = validateAdapterConfig(untrustedConfig, postDraftInvoices_ConfigPropertyNames);
|
|
408
|
+
// Invalid or incomplete config
|
|
409
|
+
if (config === null) {
|
|
410
|
+
return null;
|
|
411
|
+
}
|
|
412
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
413
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
export { postDraftInvoicesAdapterFactory };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectCreate: {
|
|
7
|
+
(o: object | null): any;
|
|
8
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
9
|
+
};
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
11
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
12
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
13
|
+
export interface AdapterValidationConfig {
|
|
14
|
+
displayName: string;
|
|
15
|
+
parameters: {
|
|
16
|
+
required: string[];
|
|
17
|
+
optional: string[];
|
|
18
|
+
unsupported?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
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
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
29
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
30
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
31
|
+
[key in keyof Base]?: any;
|
|
32
|
+
}> = {
|
|
33
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
34
|
+
};
|
|
35
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
36
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
37
|
+
export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
|
|
38
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
39
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
40
|
+
export declare const snapshotRefreshOptions: {
|
|
41
|
+
overrides: {
|
|
42
|
+
headers: {
|
|
43
|
+
'Cache-Control': string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
49
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
50
|
+
* JSON.stringify({a: 1, b: 2})
|
|
51
|
+
* "{"a":1,"b":2}"
|
|
52
|
+
* JSON.stringify({b: 2, a: 1})
|
|
53
|
+
* "{"b":2,"a":1}"
|
|
54
|
+
* @param data Data to be JSON-stringified.
|
|
55
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
|
+
export declare const keyPrefix = "HarmonizeBilling";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_postCommerceInvoicingInvoicesCollectionActionsPost_ResourceRequestConfig } from '../resources/postCommerceInvoicingInvoicesCollectionActionsPost';
|
|
4
|
+
import { RevenueAsyncRepresentation as types_RevenueAsyncRepresentation_RevenueAsyncRepresentation } from '../types/RevenueAsyncRepresentation';
|
|
5
|
+
export declare const adapterName = "postDraftInvoices";
|
|
6
|
+
export declare const postDraftInvoices_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const postDraftInvoices_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface PostDraftInvoicesConfig {
|
|
9
|
+
correlationId?: string;
|
|
10
|
+
invoiceIds: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: PostDraftInvoicesConfig) => resources_postCommerceInvoicingInvoicesCollectionActionsPost_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: PostDraftInvoicesConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: PostDraftInvoicesConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostDraftInvoicesConfig>): adapter$45$utils_Untrusted<PostDraftInvoicesConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PostDraftInvoicesConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: PostDraftInvoicesConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: PostDraftInvoicesConfig): $64$luvio_engine_Snapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: PostDraftInvoicesConfig, resourceParams: resources_postCommerceInvoicingInvoicesCollectionActionsPost_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: PostDraftInvoicesConfig, resourceParams: resources_postCommerceInvoicingInvoicesCollectionActionsPost_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PostDraftInvoicesConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: PostDraftInvoicesConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation>): $64$luvio_engine_Snapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, any>;
|
|
28
|
+
export declare const postDraftInvoicesAdapterFactory: $64$luvio_engine_AdapterFactory<PostDraftInvoicesConfig, types_RevenueAsyncRepresentation_RevenueAsyncRepresentation>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { postDraftInvoicesAdapterFactory } from '../adapters/postDraftInvoices';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { RevenueAsyncRepresentation as types_RevenueAsyncRepresentation_RevenueAsyncRepresentation } from '../types/RevenueAsyncRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
correlationId?: string;
|
|
6
|
+
invoiceIds: Array<string>;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_RevenueAsyncRepresentation_RevenueAsyncRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_RevenueAsyncRepresentation_RevenueAsyncRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "87ee05ce3f88ad0a2dc442b213bfc776";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ErrorResponseRepresentation, existing: ErrorResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ErrorResponseRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ErrorResponseRepresentationNormalized, incoming: ErrorResponseRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ErrorResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Error response representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ErrorResponseRepresentationNormalized {
|
|
17
|
+
/** Error Code */
|
|
18
|
+
errorCode: string;
|
|
19
|
+
/** Message stating the reason for error, if any */
|
|
20
|
+
message: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Error response representation
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ErrorResponseRepresentation {
|
|
29
|
+
errorCode: string;
|
|
30
|
+
message: string;
|
|
31
|
+
}
|