@salesforce/lds-adapters-revenue-harmonizebilling 1.324.0 → 1.325.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/revenue-harmonizebilling.js +504 -5
- package/dist/es/es2018/types/src/generated/adapters/resumeBilling.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/suspendBilling.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingActionsResumeBilling.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingActionsSuspendBilling.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/ResumeBillingEntityInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ResumeBillingInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/SuspendBillingEntityInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SuspendBillingInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/SuspendResumeBillingEntityOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SuspendResumeBillingOutputRepresentation.d.ts +30 -0
- package/package.json +3 -3
- package/sfdc/index.js +553 -35
- package/src/raml/api.raml +106 -1
- package/src/raml/luvio.raml +13 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, StoreKeyMap, createResourceParams as createResourceParams$3, typeCheckConfig as typeCheckConfig$3 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -91,6 +91,505 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
function validate$5(obj, path = 'ResumeBillingEntityInputRepresentation') {
|
|
95
|
+
const v_error = (() => {
|
|
96
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
97
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
98
|
+
}
|
|
99
|
+
const obj_referenceId = obj.referenceId;
|
|
100
|
+
const path_referenceId = path + '.referenceId';
|
|
101
|
+
if (typeof obj_referenceId !== 'string') {
|
|
102
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
103
|
+
}
|
|
104
|
+
const obj_resumeDate = obj.resumeDate;
|
|
105
|
+
const path_resumeDate = path + '.resumeDate';
|
|
106
|
+
if (typeof obj_resumeDate !== 'string') {
|
|
107
|
+
return new TypeError('Expected "string" but received "' + typeof obj_resumeDate + '" (at "' + path_resumeDate + '")');
|
|
108
|
+
}
|
|
109
|
+
})();
|
|
110
|
+
return v_error === undefined ? null : v_error;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const VERSION$3 = "7ce2fe81672ecdc9756f0999302e57da";
|
|
114
|
+
function validate$4(obj, path = 'SuspendResumeBillingEntityOutputRepresentation') {
|
|
115
|
+
const v_error = (() => {
|
|
116
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
117
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
118
|
+
}
|
|
119
|
+
const obj_errorCode = obj.errorCode;
|
|
120
|
+
const path_errorCode = path + '.errorCode';
|
|
121
|
+
if (typeof obj_errorCode !== 'string') {
|
|
122
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
123
|
+
}
|
|
124
|
+
const obj_errorMessage = obj.errorMessage;
|
|
125
|
+
const path_errorMessage = path + '.errorMessage';
|
|
126
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
127
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
128
|
+
}
|
|
129
|
+
const obj_isSuccess = obj.isSuccess;
|
|
130
|
+
const path_isSuccess = path + '.isSuccess';
|
|
131
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
132
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
133
|
+
}
|
|
134
|
+
const obj_referenceId = obj.referenceId;
|
|
135
|
+
const path_referenceId = path + '.referenceId';
|
|
136
|
+
if (typeof obj_referenceId !== 'string') {
|
|
137
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
138
|
+
}
|
|
139
|
+
})();
|
|
140
|
+
return v_error === undefined ? null : v_error;
|
|
141
|
+
}
|
|
142
|
+
const select$6 = function SuspendResumeBillingEntityOutputRepresentationSelect() {
|
|
143
|
+
return {
|
|
144
|
+
kind: 'Fragment',
|
|
145
|
+
version: VERSION$3,
|
|
146
|
+
private: [],
|
|
147
|
+
selections: [
|
|
148
|
+
{
|
|
149
|
+
name: 'errorCode',
|
|
150
|
+
kind: 'Scalar'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'errorMessage',
|
|
154
|
+
kind: 'Scalar'
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'isSuccess',
|
|
158
|
+
kind: 'Scalar'
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'referenceId',
|
|
162
|
+
kind: 'Scalar'
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
function equals$3(existing, incoming) {
|
|
168
|
+
const existing_isSuccess = existing.isSuccess;
|
|
169
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
170
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
const existing_errorCode = existing.errorCode;
|
|
174
|
+
const incoming_errorCode = incoming.errorCode;
|
|
175
|
+
if (!(existing_errorCode === incoming_errorCode)) {
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
const existing_errorMessage = existing.errorMessage;
|
|
179
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
180
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
const existing_referenceId = existing.referenceId;
|
|
184
|
+
const incoming_referenceId = incoming.referenceId;
|
|
185
|
+
if (!(existing_referenceId === incoming_referenceId)) {
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const TTL$1 = 1000;
|
|
192
|
+
const VERSION$2 = "ebcd12edcc328665dfa61064953627b5";
|
|
193
|
+
function validate$3(obj, path = 'SuspendResumeBillingOutputRepresentation') {
|
|
194
|
+
const v_error = (() => {
|
|
195
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
196
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
197
|
+
}
|
|
198
|
+
const obj_result = obj.result;
|
|
199
|
+
const path_result = path + '.result';
|
|
200
|
+
if (!ArrayIsArray(obj_result)) {
|
|
201
|
+
return new TypeError('Expected "array" but received "' + typeof obj_result + '" (at "' + path_result + '")');
|
|
202
|
+
}
|
|
203
|
+
for (let i = 0; i < obj_result.length; i++) {
|
|
204
|
+
const obj_result_item = obj_result[i];
|
|
205
|
+
const path_result_item = path_result + '[' + i + ']';
|
|
206
|
+
const referencepath_result_itemValidationError = validate$4(obj_result_item, path_result_item);
|
|
207
|
+
if (referencepath_result_itemValidationError !== null) {
|
|
208
|
+
let message = 'Object doesn\'t match SuspendResumeBillingEntityOutputRepresentation (at "' + path_result_item + '")\n';
|
|
209
|
+
message += referencepath_result_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
210
|
+
return new TypeError(message);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
})();
|
|
214
|
+
return v_error === undefined ? null : v_error;
|
|
215
|
+
}
|
|
216
|
+
const RepresentationType$1 = 'SuspendResumeBillingOutputRepresentation';
|
|
217
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
218
|
+
return input;
|
|
219
|
+
}
|
|
220
|
+
const select$5 = function SuspendResumeBillingOutputRepresentationSelect() {
|
|
221
|
+
const { selections: SuspendResumeBillingEntityOutputRepresentation__selections, opaque: SuspendResumeBillingEntityOutputRepresentation__opaque, } = select$6();
|
|
222
|
+
return {
|
|
223
|
+
kind: 'Fragment',
|
|
224
|
+
version: VERSION$2,
|
|
225
|
+
private: [],
|
|
226
|
+
selections: [
|
|
227
|
+
{
|
|
228
|
+
name: 'result',
|
|
229
|
+
kind: 'Object',
|
|
230
|
+
plural: true,
|
|
231
|
+
selections: SuspendResumeBillingEntityOutputRepresentation__selections
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
function equals$2(existing, incoming) {
|
|
237
|
+
const existing_result = existing.result;
|
|
238
|
+
const incoming_result = incoming.result;
|
|
239
|
+
const equals_result_items = equalsArray(existing_result, incoming_result, (existing_result_item, incoming_result_item) => {
|
|
240
|
+
if (!(equals$3(existing_result_item, incoming_result_item))) {
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
if (equals_result_items === false) {
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
return true;
|
|
248
|
+
}
|
|
249
|
+
const ingest$1 = function SuspendResumeBillingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
250
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
251
|
+
const validateError = validate$3(input);
|
|
252
|
+
if (validateError !== null) {
|
|
253
|
+
throw validateError;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
const key = path.fullPath;
|
|
257
|
+
const ttlToUse = TTL$1;
|
|
258
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "HarmonizeBilling", VERSION$2, RepresentationType$1, equals$2);
|
|
259
|
+
return createLink(key);
|
|
260
|
+
};
|
|
261
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
262
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
263
|
+
const rootKey = fullPathFactory();
|
|
264
|
+
rootKeySet.set(rootKey, {
|
|
265
|
+
namespace: keyPrefix,
|
|
266
|
+
representationName: RepresentationType$1,
|
|
267
|
+
mergeable: false
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function select$4(luvio, params) {
|
|
272
|
+
return select$5();
|
|
273
|
+
}
|
|
274
|
+
function keyBuilder$5(luvio, params) {
|
|
275
|
+
return keyPrefix + '::SuspendResumeBillingOutputRepresentation:(' + '[' + params.body.referenceIds.map(element => 'referenceIds.referenceId:' + element.referenceId + '::' + 'referenceIds.resumeDate:' + element.resumeDate).join(',') + ']' + ')';
|
|
276
|
+
}
|
|
277
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
278
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
279
|
+
}
|
|
280
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
281
|
+
const { body } = response;
|
|
282
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
283
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
284
|
+
const snapshot = luvio.storeLookup({
|
|
285
|
+
recordId: key,
|
|
286
|
+
node: select$4(),
|
|
287
|
+
variables: {},
|
|
288
|
+
}, snapshotRefresh);
|
|
289
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
290
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
291
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
deepFreeze(snapshot.data);
|
|
295
|
+
return snapshot;
|
|
296
|
+
}
|
|
297
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
298
|
+
const key = keyBuilder$5(luvio, params);
|
|
299
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
300
|
+
const storeMetadataParams = {
|
|
301
|
+
ttl: TTL$1,
|
|
302
|
+
namespace: keyPrefix,
|
|
303
|
+
version: VERSION$2,
|
|
304
|
+
representationName: RepresentationType$1
|
|
305
|
+
};
|
|
306
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
307
|
+
return errorSnapshot;
|
|
308
|
+
}
|
|
309
|
+
function createResourceRequest$2(config) {
|
|
310
|
+
const headers = {};
|
|
311
|
+
return {
|
|
312
|
+
baseUri: '/services/data/v63.0',
|
|
313
|
+
basePath: '/commerce/invoicing/actions/resume-billing',
|
|
314
|
+
method: 'post',
|
|
315
|
+
body: config.body,
|
|
316
|
+
urlParams: {},
|
|
317
|
+
queryParams: {},
|
|
318
|
+
headers,
|
|
319
|
+
priority: 'normal',
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
const adapterName$2 = 'resumeBilling';
|
|
324
|
+
const resumeBilling_ConfigPropertyMetadata = [
|
|
325
|
+
generateParamConfigMetadata('referenceIds', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
326
|
+
];
|
|
327
|
+
const resumeBilling_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, resumeBilling_ConfigPropertyMetadata);
|
|
328
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(resumeBilling_ConfigPropertyMetadata);
|
|
329
|
+
function keyBuilder$4(luvio, config) {
|
|
330
|
+
const resourceParams = createResourceParams$2(config);
|
|
331
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
332
|
+
}
|
|
333
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
334
|
+
const config = {};
|
|
335
|
+
const untrustedConfig_referenceIds = untrustedConfig.referenceIds;
|
|
336
|
+
if (ArrayIsArray$1(untrustedConfig_referenceIds)) {
|
|
337
|
+
const untrustedConfig_referenceIds_array = [];
|
|
338
|
+
for (let i = 0, arrayLength = untrustedConfig_referenceIds.length; i < arrayLength; i++) {
|
|
339
|
+
const untrustedConfig_referenceIds_item = untrustedConfig_referenceIds[i];
|
|
340
|
+
const referenceResumeBillingEntityInputRepresentationValidationError = validate$5(untrustedConfig_referenceIds_item);
|
|
341
|
+
if (referenceResumeBillingEntityInputRepresentationValidationError === null) {
|
|
342
|
+
untrustedConfig_referenceIds_array.push(untrustedConfig_referenceIds_item);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
config.referenceIds = untrustedConfig_referenceIds_array;
|
|
346
|
+
}
|
|
347
|
+
return config;
|
|
348
|
+
}
|
|
349
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
350
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
351
|
+
return null;
|
|
352
|
+
}
|
|
353
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
354
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
355
|
+
}
|
|
356
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
357
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
return config;
|
|
361
|
+
}
|
|
362
|
+
function adapterFragment$2(luvio, config) {
|
|
363
|
+
createResourceParams$2(config);
|
|
364
|
+
return select$4();
|
|
365
|
+
}
|
|
366
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
367
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
368
|
+
config,
|
|
369
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
370
|
+
});
|
|
371
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
372
|
+
}
|
|
373
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
374
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
375
|
+
config,
|
|
376
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
377
|
+
});
|
|
378
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
379
|
+
}
|
|
380
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
381
|
+
const resourceParams = createResourceParams$2(config);
|
|
382
|
+
const request = createResourceRequest$2(resourceParams);
|
|
383
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
384
|
+
.then((response) => {
|
|
385
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
386
|
+
const cache = new StoreKeyMap();
|
|
387
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
388
|
+
return cache;
|
|
389
|
+
});
|
|
390
|
+
}, (response) => {
|
|
391
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
395
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
|
|
396
|
+
}
|
|
397
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
398
|
+
const { luvio, config } = context;
|
|
399
|
+
const selector = {
|
|
400
|
+
recordId: keyBuilder$4(luvio, config),
|
|
401
|
+
node: adapterFragment$2(luvio, config),
|
|
402
|
+
variables: {},
|
|
403
|
+
};
|
|
404
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
405
|
+
config,
|
|
406
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
407
|
+
});
|
|
408
|
+
return cacheSnapshot;
|
|
409
|
+
}
|
|
410
|
+
const resumeBillingAdapterFactory = (luvio) => function HarmonizeBilling__resumeBilling(untrustedConfig, requestContext) {
|
|
411
|
+
const config = validateAdapterConfig$2(untrustedConfig, resumeBilling_ConfigPropertyNames);
|
|
412
|
+
// Invalid or incomplete config
|
|
413
|
+
if (config === null) {
|
|
414
|
+
return null;
|
|
415
|
+
}
|
|
416
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
417
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
function validate$2(obj, path = 'SuspendBillingEntityInputRepresentation') {
|
|
421
|
+
const v_error = (() => {
|
|
422
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
423
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
424
|
+
}
|
|
425
|
+
const obj_referenceId = obj.referenceId;
|
|
426
|
+
const path_referenceId = path + '.referenceId';
|
|
427
|
+
if (typeof obj_referenceId !== 'string') {
|
|
428
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceId + '" (at "' + path_referenceId + '")');
|
|
429
|
+
}
|
|
430
|
+
const obj_resumeDate = obj.resumeDate;
|
|
431
|
+
const path_resumeDate = path + '.resumeDate';
|
|
432
|
+
if (typeof obj_resumeDate !== 'string') {
|
|
433
|
+
return new TypeError('Expected "string" but received "' + typeof obj_resumeDate + '" (at "' + path_resumeDate + '")');
|
|
434
|
+
}
|
|
435
|
+
const obj_suspendDate = obj.suspendDate;
|
|
436
|
+
const path_suspendDate = path + '.suspendDate';
|
|
437
|
+
if (typeof obj_suspendDate !== 'string') {
|
|
438
|
+
return new TypeError('Expected "string" but received "' + typeof obj_suspendDate + '" (at "' + path_suspendDate + '")');
|
|
439
|
+
}
|
|
440
|
+
})();
|
|
441
|
+
return v_error === undefined ? null : v_error;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
function select$3(luvio, params) {
|
|
445
|
+
return select$5();
|
|
446
|
+
}
|
|
447
|
+
function keyBuilder$3(luvio, params) {
|
|
448
|
+
return keyPrefix + '::SuspendResumeBillingOutputRepresentation:(' + '[' + params.body.referenceIds.map(element => 'referenceIds.referenceId:' + element.referenceId + '::' + 'referenceIds.resumeDate:' + element.resumeDate + '::' + 'referenceIds.suspendDate:' + element.suspendDate).join(',') + ']' + ')';
|
|
449
|
+
}
|
|
450
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
451
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
452
|
+
}
|
|
453
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
454
|
+
const { body } = response;
|
|
455
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
456
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
457
|
+
const snapshot = luvio.storeLookup({
|
|
458
|
+
recordId: key,
|
|
459
|
+
node: select$3(),
|
|
460
|
+
variables: {},
|
|
461
|
+
}, snapshotRefresh);
|
|
462
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
463
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
464
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
deepFreeze(snapshot.data);
|
|
468
|
+
return snapshot;
|
|
469
|
+
}
|
|
470
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
471
|
+
const key = keyBuilder$3(luvio, params);
|
|
472
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
473
|
+
const storeMetadataParams = {
|
|
474
|
+
ttl: TTL$1,
|
|
475
|
+
namespace: keyPrefix,
|
|
476
|
+
version: VERSION$2,
|
|
477
|
+
representationName: RepresentationType$1
|
|
478
|
+
};
|
|
479
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
480
|
+
return errorSnapshot;
|
|
481
|
+
}
|
|
482
|
+
function createResourceRequest$1(config) {
|
|
483
|
+
const headers = {};
|
|
484
|
+
return {
|
|
485
|
+
baseUri: '/services/data/v63.0',
|
|
486
|
+
basePath: '/commerce/invoicing/actions/suspend-billing',
|
|
487
|
+
method: 'post',
|
|
488
|
+
body: config.body,
|
|
489
|
+
urlParams: {},
|
|
490
|
+
queryParams: {},
|
|
491
|
+
headers,
|
|
492
|
+
priority: 'normal',
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
const adapterName$1 = 'suspendBilling';
|
|
497
|
+
const suspendBilling_ConfigPropertyMetadata = [
|
|
498
|
+
generateParamConfigMetadata('referenceIds', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
499
|
+
];
|
|
500
|
+
const suspendBilling_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, suspendBilling_ConfigPropertyMetadata);
|
|
501
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(suspendBilling_ConfigPropertyMetadata);
|
|
502
|
+
function keyBuilder$2(luvio, config) {
|
|
503
|
+
const resourceParams = createResourceParams$1(config);
|
|
504
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
505
|
+
}
|
|
506
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
507
|
+
const config = {};
|
|
508
|
+
const untrustedConfig_referenceIds = untrustedConfig.referenceIds;
|
|
509
|
+
if (ArrayIsArray$1(untrustedConfig_referenceIds)) {
|
|
510
|
+
const untrustedConfig_referenceIds_array = [];
|
|
511
|
+
for (let i = 0, arrayLength = untrustedConfig_referenceIds.length; i < arrayLength; i++) {
|
|
512
|
+
const untrustedConfig_referenceIds_item = untrustedConfig_referenceIds[i];
|
|
513
|
+
const referenceSuspendBillingEntityInputRepresentationValidationError = validate$2(untrustedConfig_referenceIds_item);
|
|
514
|
+
if (referenceSuspendBillingEntityInputRepresentationValidationError === null) {
|
|
515
|
+
untrustedConfig_referenceIds_array.push(untrustedConfig_referenceIds_item);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
config.referenceIds = untrustedConfig_referenceIds_array;
|
|
519
|
+
}
|
|
520
|
+
return config;
|
|
521
|
+
}
|
|
522
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
523
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
524
|
+
return null;
|
|
525
|
+
}
|
|
526
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
527
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
528
|
+
}
|
|
529
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
530
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
531
|
+
return null;
|
|
532
|
+
}
|
|
533
|
+
return config;
|
|
534
|
+
}
|
|
535
|
+
function adapterFragment$1(luvio, config) {
|
|
536
|
+
createResourceParams$1(config);
|
|
537
|
+
return select$3();
|
|
538
|
+
}
|
|
539
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
540
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
541
|
+
config,
|
|
542
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
543
|
+
});
|
|
544
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
545
|
+
}
|
|
546
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
547
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
548
|
+
config,
|
|
549
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
550
|
+
});
|
|
551
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
552
|
+
}
|
|
553
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
554
|
+
const resourceParams = createResourceParams$1(config);
|
|
555
|
+
const request = createResourceRequest$1(resourceParams);
|
|
556
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
557
|
+
.then((response) => {
|
|
558
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
559
|
+
const cache = new StoreKeyMap();
|
|
560
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
561
|
+
return cache;
|
|
562
|
+
});
|
|
563
|
+
}, (response) => {
|
|
564
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
568
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
|
|
569
|
+
}
|
|
570
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
571
|
+
const { luvio, config } = context;
|
|
572
|
+
const selector = {
|
|
573
|
+
recordId: keyBuilder$2(luvio, config),
|
|
574
|
+
node: adapterFragment$1(luvio, config),
|
|
575
|
+
variables: {},
|
|
576
|
+
};
|
|
577
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
578
|
+
config,
|
|
579
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
580
|
+
});
|
|
581
|
+
return cacheSnapshot;
|
|
582
|
+
}
|
|
583
|
+
const suspendBillingAdapterFactory = (luvio) => function HarmonizeBilling__suspendBilling(untrustedConfig, requestContext) {
|
|
584
|
+
const config = validateAdapterConfig$1(untrustedConfig, suspendBilling_ConfigPropertyNames);
|
|
585
|
+
// Invalid or incomplete config
|
|
586
|
+
if (config === null) {
|
|
587
|
+
return null;
|
|
588
|
+
}
|
|
589
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
590
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
591
|
+
};
|
|
592
|
+
|
|
94
593
|
const VERSION$1 = "87ee05ce3f88ad0a2dc442b213bfc776";
|
|
95
594
|
function validate$1(obj, path = 'ErrorResponseRepresentation') {
|
|
96
595
|
const v_error = (() => {
|
|
@@ -332,14 +831,14 @@ const postDraftInvoices_ConfigPropertyMetadata = [
|
|
|
332
831
|
generateParamConfigMetadata('invoiceIds', true, 2 /* Body */, 0 /* String */, true),
|
|
333
832
|
];
|
|
334
833
|
const postDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postDraftInvoices_ConfigPropertyMetadata);
|
|
335
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
834
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(postDraftInvoices_ConfigPropertyMetadata);
|
|
336
835
|
function keyBuilder(luvio, config) {
|
|
337
836
|
const resourceParams = createResourceParams(config);
|
|
338
837
|
return keyBuilder$1(luvio, resourceParams);
|
|
339
838
|
}
|
|
340
839
|
function typeCheckConfig(untrustedConfig) {
|
|
341
840
|
const config = {};
|
|
342
|
-
typeCheckConfig$
|
|
841
|
+
typeCheckConfig$3(untrustedConfig, config, postDraftInvoices_ConfigPropertyMetadata);
|
|
343
842
|
return config;
|
|
344
843
|
}
|
|
345
844
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -388,7 +887,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
388
887
|
});
|
|
389
888
|
}
|
|
390
889
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
391
|
-
return buildNetworkSnapshotCachePolicy$
|
|
890
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
|
|
392
891
|
}
|
|
393
892
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
394
893
|
const { luvio, config } = context;
|
|
@@ -413,4 +912,4 @@ const postDraftInvoicesAdapterFactory = (luvio) => function HarmonizeBilling__po
|
|
|
413
912
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
414
913
|
};
|
|
415
914
|
|
|
416
|
-
export { postDraftInvoicesAdapterFactory };
|
|
915
|
+
export { postDraftInvoicesAdapterFactory, resumeBillingAdapterFactory, suspendBillingAdapterFactory };
|
|
@@ -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 { ResumeBillingEntityInputRepresentation as types_ResumeBillingEntityInputRepresentation_ResumeBillingEntityInputRepresentation } from '../types/ResumeBillingEntityInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postCommerceInvoicingActionsResumeBilling_ResourceRequestConfig } from '../resources/postCommerceInvoicingActionsResumeBilling';
|
|
5
|
+
import { SuspendResumeBillingOutputRepresentation as types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation } from '../types/SuspendResumeBillingOutputRepresentation';
|
|
6
|
+
export declare const adapterName = "resumeBilling";
|
|
7
|
+
export declare const resumeBilling_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const resumeBilling_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface ResumeBillingConfig {
|
|
10
|
+
referenceIds: Array<types_ResumeBillingEntityInputRepresentation_ResumeBillingEntityInputRepresentation>;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: ResumeBillingConfig) => resources_postCommerceInvoicingActionsResumeBilling_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: ResumeBillingConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: ResumeBillingConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ResumeBillingConfig>): adapter$45$utils_Untrusted<ResumeBillingConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ResumeBillingConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: ResumeBillingConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: ResumeBillingConfig): $64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: ResumeBillingConfig, resourceParams: resources_postCommerceInvoicingActionsResumeBilling_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: ResumeBillingConfig, resourceParams: resources_postCommerceInvoicingActionsResumeBilling_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ResumeBillingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: ResumeBillingConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>): $64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>;
|
|
28
|
+
export declare const resumeBillingAdapterFactory: $64$luvio_engine_AdapterFactory<ResumeBillingConfig, types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>;
|
|
@@ -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 { SuspendBillingEntityInputRepresentation as types_SuspendBillingEntityInputRepresentation_SuspendBillingEntityInputRepresentation } from '../types/SuspendBillingEntityInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postCommerceInvoicingActionsSuspendBilling_ResourceRequestConfig } from '../resources/postCommerceInvoicingActionsSuspendBilling';
|
|
5
|
+
import { SuspendResumeBillingOutputRepresentation as types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation } from '../types/SuspendResumeBillingOutputRepresentation';
|
|
6
|
+
export declare const adapterName = "suspendBilling";
|
|
7
|
+
export declare const suspendBilling_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const suspendBilling_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface SuspendBillingConfig {
|
|
10
|
+
referenceIds: Array<types_SuspendBillingEntityInputRepresentation_SuspendBillingEntityInputRepresentation>;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: SuspendBillingConfig) => resources_postCommerceInvoicingActionsSuspendBilling_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: SuspendBillingConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: SuspendBillingConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SuspendBillingConfig>): adapter$45$utils_Untrusted<SuspendBillingConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SuspendBillingConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: SuspendBillingConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: SuspendBillingConfig): $64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: SuspendBillingConfig, resourceParams: resources_postCommerceInvoicingActionsSuspendBilling_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: SuspendBillingConfig, resourceParams: resources_postCommerceInvoicingActionsSuspendBilling_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SuspendBillingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: SuspendBillingConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>): $64$luvio_engine_Snapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>;
|
|
28
|
+
export declare const suspendBillingAdapterFactory: $64$luvio_engine_AdapterFactory<SuspendBillingConfig, types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
declare let postDraftInvoices: any;
|
|
2
|
+
declare let resumeBilling: any;
|
|
3
|
+
declare let suspendBilling: any;
|
|
2
4
|
declare let postDraftInvoices_imperative: any;
|
|
3
|
-
|
|
5
|
+
declare let resumeBilling_imperative: any;
|
|
6
|
+
declare let suspendBilling_imperative: any;
|
|
7
|
+
export { postDraftInvoices, resumeBilling, suspendBilling, postDraftInvoices_imperative, resumeBilling_imperative, suspendBilling_imperative, };
|
package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingActionsResumeBilling.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ResumeBillingEntityInputRepresentation as types_ResumeBillingEntityInputRepresentation_ResumeBillingEntityInputRepresentation } from '../types/ResumeBillingEntityInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { SuspendResumeBillingOutputRepresentation as types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation } from '../types/SuspendResumeBillingOutputRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
referenceIds: Array<types_ResumeBillingEntityInputRepresentation_ResumeBillingEntityInputRepresentation>;
|
|
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_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SuspendResumeBillingOutputRepresentation_SuspendResumeBillingOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|