@salesforce/lds-adapters-platform-external-services 1.134.6 → 1.134.8
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/platform-external-services.js +66 -51
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
- package/dist/es/es2018/types/src/generated/types/ApiInfoRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ApiListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ApiSchemaRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/DataShapeInferenceOutputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExternalServiceSchemaRequestRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsBreakdownRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsForServiceRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsOutputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsOverviewRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/InferenceErrorMessageRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/NamedCredentialListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/NamedCredentialRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputWrapperRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceOutputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceParameterRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/SchemaValidationInputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/SchemaValidationInputWrapperRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/SchemaValidationMessageRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/SchemaValidationOutputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +1 -8
- package/package.json +1 -1
- package/sfdc/index.js +67 -52
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys$1,
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
|
+
const { stringify: JSONStringify$1 } = JSON;
|
|
11
12
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
13
|
/**
|
|
13
14
|
* Validates an adapter config is well-formed.
|
|
@@ -48,9 +49,64 @@ const snapshotRefreshOptions = {
|
|
|
48
49
|
},
|
|
49
50
|
}
|
|
50
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
54
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
55
|
+
* JSON.stringify({a: 1, b: 2})
|
|
56
|
+
* "{"a":1,"b":2}"
|
|
57
|
+
* JSON.stringify({b: 2, a: 1})
|
|
58
|
+
* "{"b":2,"a":1}"
|
|
59
|
+
* @param data Data to be JSON-stringified.
|
|
60
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
61
|
+
*/
|
|
62
|
+
function stableJSONStringify(node) {
|
|
63
|
+
// This is for Date values.
|
|
64
|
+
if (node && node.toJSON && typeof node.toJSON === 'function') {
|
|
65
|
+
// eslint-disable-next-line no-param-reassign
|
|
66
|
+
node = node.toJSON();
|
|
67
|
+
}
|
|
68
|
+
if (node === undefined) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (typeof node === 'number') {
|
|
72
|
+
return isFinite(node) ? '' + node : 'null';
|
|
73
|
+
}
|
|
74
|
+
if (typeof node !== 'object') {
|
|
75
|
+
return JSONStringify$1(node);
|
|
76
|
+
}
|
|
77
|
+
let i;
|
|
78
|
+
let out;
|
|
79
|
+
if (ArrayIsArray$1(node)) {
|
|
80
|
+
out = '[';
|
|
81
|
+
for (i = 0; i < node.length; i++) {
|
|
82
|
+
if (i) {
|
|
83
|
+
out += ',';
|
|
84
|
+
}
|
|
85
|
+
out += stableJSONStringify(node[i]) || 'null';
|
|
86
|
+
}
|
|
87
|
+
return out + ']';
|
|
88
|
+
}
|
|
89
|
+
if (node === null) {
|
|
90
|
+
return 'null';
|
|
91
|
+
}
|
|
92
|
+
const keys = ObjectKeys$1(node).sort();
|
|
93
|
+
out = '';
|
|
94
|
+
for (i = 0; i < keys.length; i++) {
|
|
95
|
+
const key = keys[i];
|
|
96
|
+
const value = stableJSONStringify(node[key]);
|
|
97
|
+
if (!value) {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (out) {
|
|
101
|
+
out += ',';
|
|
102
|
+
}
|
|
103
|
+
out += JSONStringify$1(key) + ':' + value;
|
|
104
|
+
}
|
|
105
|
+
return '{' + out + '}';
|
|
106
|
+
}
|
|
51
107
|
const keyPrefix = 'external-services';
|
|
52
108
|
|
|
53
|
-
const {
|
|
109
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
54
110
|
const { isArray: ArrayIsArray } = Array;
|
|
55
111
|
const { stringify: JSONStringify } = JSON;
|
|
56
112
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -66,24 +122,6 @@ function equalsArray(a, b, equalsItem) {
|
|
|
66
122
|
}
|
|
67
123
|
return true;
|
|
68
124
|
}
|
|
69
|
-
function deepFreeze$2(value) {
|
|
70
|
-
// No need to freeze primitives
|
|
71
|
-
if (typeof value !== 'object' || value === null) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
if (ArrayIsArray(value)) {
|
|
75
|
-
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
76
|
-
deepFreeze$2(value[i]);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
const keys = ObjectKeys(value);
|
|
81
|
-
for (let i = 0, len = keys.length; i < len; i += 1) {
|
|
82
|
-
deepFreeze$2(value[keys[i]]);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
ObjectFreeze(value);
|
|
86
|
-
}
|
|
87
125
|
function createLink(ref) {
|
|
88
126
|
return {
|
|
89
127
|
__ref: serializeStructuredKey(ref),
|
|
@@ -139,9 +177,6 @@ function equals$8(existing, incoming) {
|
|
|
139
177
|
}
|
|
140
178
|
return true;
|
|
141
179
|
}
|
|
142
|
-
function deepFreeze$1(input) {
|
|
143
|
-
ObjectFreeze(input);
|
|
144
|
-
}
|
|
145
180
|
|
|
146
181
|
const VERSION$7 = "d45a6a39072862479f5c25fe921c0926";
|
|
147
182
|
function validate$a(obj, path = 'DataShapeInferenceOutputRepresentation') {
|
|
@@ -236,30 +271,6 @@ function equals$7(existing, incoming) {
|
|
|
236
271
|
}
|
|
237
272
|
return true;
|
|
238
273
|
}
|
|
239
|
-
function deepFreeze(input) {
|
|
240
|
-
const input_errorMessages = input.errorMessages;
|
|
241
|
-
for (let i = 0; i < input_errorMessages.length; i++) {
|
|
242
|
-
const input_errorMessages_item = input_errorMessages[i];
|
|
243
|
-
deepFreeze$1(input_errorMessages_item);
|
|
244
|
-
}
|
|
245
|
-
ObjectFreeze(input_errorMessages);
|
|
246
|
-
const input_items = input.items;
|
|
247
|
-
for (let i = 0; i < input_items.length; i++) {
|
|
248
|
-
const input_items_item = input_items[i];
|
|
249
|
-
deepFreeze(input_items_item);
|
|
250
|
-
}
|
|
251
|
-
ObjectFreeze(input_items);
|
|
252
|
-
const input_properties = input.properties;
|
|
253
|
-
const input_properties_keys = Object.keys(input_properties);
|
|
254
|
-
const input_properties_length = input_properties_keys.length;
|
|
255
|
-
for (let i = 0; i < input_properties_length; i++) {
|
|
256
|
-
const key = input_properties_keys[i];
|
|
257
|
-
const input_properties_prop = input_properties[key];
|
|
258
|
-
deepFreeze(input_properties_prop);
|
|
259
|
-
}
|
|
260
|
-
ObjectFreeze(input_properties);
|
|
261
|
-
ObjectFreeze(input);
|
|
262
|
-
}
|
|
263
274
|
const ingest$3 = function DataShapeInferenceOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
264
275
|
if (process.env.NODE_ENV !== 'production') {
|
|
265
276
|
const validateError = validate$a(input);
|
|
@@ -276,7 +287,6 @@ const ingest$3 = function DataShapeInferenceOutputRepresentationIngest(input, pa
|
|
|
276
287
|
propertyName: path.propertyName,
|
|
277
288
|
ttl: ttlToUse
|
|
278
289
|
});
|
|
279
|
-
deepFreeze(input);
|
|
280
290
|
if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
|
|
281
291
|
luvio.storePublish(key, incomingRecord);
|
|
282
292
|
}
|
|
@@ -326,6 +336,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
326
336
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
327
337
|
}
|
|
328
338
|
}
|
|
339
|
+
deepFreeze(snapshot.data);
|
|
329
340
|
return snapshot;
|
|
330
341
|
}
|
|
331
342
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
@@ -708,7 +719,7 @@ function select$9(luvio, params) {
|
|
|
708
719
|
return select$a();
|
|
709
720
|
}
|
|
710
721
|
function keyBuilder$6(luvio, params) {
|
|
711
|
-
return keyPrefix + '::OpenApiSpecInferenceOutputRepresentation:(' + 'version:' + params.urlParams.version + ',' + 'input.description:' + params.body.input.description + '::' + (params.body.input.externalServiceId === undefined ? 'input.externalServiceId' : 'input.externalServiceId:' + params.body.input.externalServiceId) + '::' + 'input.method:' + params.body.input.method + '::' + 'input.name:' + params.body.input.name + '::' + 'input.operationDescription:' + params.body.input.operationDescription + '::' + 'input.operationName:' + params.body.input.operationName + '::' + 'input.parameters:' +
|
|
722
|
+
return keyPrefix + '::OpenApiSpecInferenceOutputRepresentation:(' + 'version:' + params.urlParams.version + ',' + 'input.description:' + params.body.input.description + '::' + (params.body.input.externalServiceId === undefined ? 'input.externalServiceId' : 'input.externalServiceId:' + params.body.input.externalServiceId) + '::' + 'input.method:' + params.body.input.method + '::' + 'input.name:' + params.body.input.name + '::' + 'input.operationDescription:' + params.body.input.operationDescription + '::' + 'input.operationName:' + params.body.input.operationName + '::' + '[' + params.body.input.parameters.map(element => (element.description === undefined ? 'input.parameters.description' : 'input.parameters.description:' + element.description) + '::' + 'input.parameters.location:' + element.location + '::' + 'input.parameters.name:' + element.name + '::' + 'input.parameters.required:' + element.required + '::' + 'input.parameters.type:' + element.type).join(',') + ']' + '::' + 'input.path:' + params.body.input.path + '::' + stableJSONStringify(params.body.input.requestBody) + '::' + stableJSONStringify(params.body.input.responseBody) + ')';
|
|
712
723
|
}
|
|
713
724
|
function getResponseCacheKeys$3(luvio, resourceParams, response) {
|
|
714
725
|
return getTypeCacheKeys$2(luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
@@ -727,6 +738,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
727
738
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
728
739
|
}
|
|
729
740
|
}
|
|
741
|
+
deepFreeze(snapshot.data);
|
|
730
742
|
return snapshot;
|
|
731
743
|
}
|
|
732
744
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
@@ -1419,6 +1431,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
1419
1431
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1420
1432
|
}
|
|
1421
1433
|
}
|
|
1434
|
+
deepFreeze(snapshot.data);
|
|
1422
1435
|
return snapshot;
|
|
1423
1436
|
}
|
|
1424
1437
|
function createResourceRequest$2(config) {
|
|
@@ -1489,7 +1502,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1489
1502
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1490
1503
|
}, () => getResponseCacheKeys$2(luvio, resourceParams, response.body));
|
|
1491
1504
|
}, (response) => {
|
|
1492
|
-
deepFreeze
|
|
1505
|
+
deepFreeze(response);
|
|
1493
1506
|
throw response;
|
|
1494
1507
|
});
|
|
1495
1508
|
}
|
|
@@ -1952,6 +1965,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1952
1965
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1953
1966
|
}
|
|
1954
1967
|
}
|
|
1968
|
+
deepFreeze(snapshot.data);
|
|
1955
1969
|
return snapshot;
|
|
1956
1970
|
}
|
|
1957
1971
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -2095,6 +2109,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2095
2109
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2096
2110
|
}
|
|
2097
2111
|
}
|
|
2112
|
+
deepFreeze(snapshot.data);
|
|
2098
2113
|
return snapshot;
|
|
2099
2114
|
}
|
|
2100
2115
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -3,17 +3,11 @@ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
5
5
|
(o: {}): string[];
|
|
6
|
-
}, ObjectFreeze: {
|
|
7
|
-
<T extends Function>(f: T): T;
|
|
8
|
-
<T_1 extends {
|
|
9
|
-
[idx: string]: object | U | null | undefined;
|
|
10
|
-
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
11
|
-
<T_2>(o: T_2): Readonly<T_2>;
|
|
12
6
|
}, ObjectCreate: {
|
|
13
7
|
(o: object | null): any;
|
|
14
8
|
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
15
9
|
};
|
|
16
|
-
export {
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
17
11
|
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
18
12
|
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
19
13
|
export interface AdapterValidationConfig {
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ApiInfoRepresentation, existing: ApiInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ApiInfoRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ApiInfoRepresentationNormalized, incoming: ApiInfoRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ApiInfoRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ApiInfoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: ApiListRepresentation, existing: ApiListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ApiListRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: ApiListRepresentationNormalized, incoming: ApiListRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: ApiListRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ApiListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ApiSchemaRepresentation, existing: ApiSchemaRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ApiSchemaRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ApiSchemaRepresentationNormalized, incoming: ApiSchemaRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ApiSchemaRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ApiSchemaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
package/dist/es/es2018/types/src/generated/types/DataShapeInferenceOutputRepresentation.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: DataShapeInferenceOutputRepresentation, existing: DataShapeInferenceOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataShapeInferenceOutputRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
8
|
export declare function equals(existing: DataShapeInferenceOutputRepresentationNormalized, incoming: DataShapeInferenceOutputRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: DataShapeInferenceOutputRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: DataShapeInferenceOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
package/dist/es/es2018/types/src/generated/types/ExternalServiceSchemaRequestRepresentation.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ExternalServiceSchemaRequestRepresentation, existing: ExternalServiceSchemaRequestRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalServiceSchemaRequestRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ExternalServiceSchemaRequestRepresentationNormalized, incoming: ExternalServiceSchemaRequestRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ExternalServiceSchemaRequestRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalServiceSchemaRequestRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ExternalServiceStatisticsBreakdownRepresentation, existing: ExternalServiceStatisticsBreakdownRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalServiceStatisticsBreakdownRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ExternalServiceStatisticsBreakdownRepresentationNormalized, incoming: ExternalServiceStatisticsBreakdownRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ExternalServiceStatisticsBreakdownRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalServiceStatisticsBreakdownRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: ExternalServiceStatisticsForServiceRepresentation, existing: ExternalServiceStatisticsForServiceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalServiceStatisticsForServiceRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: ExternalServiceStatisticsForServiceRepresentationNormalized, incoming: ExternalServiceStatisticsForServiceRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: ExternalServiceStatisticsForServiceRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalServiceStatisticsForServiceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
package/dist/es/es2018/types/src/generated/types/ExternalServiceStatisticsOutputRepresentation.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
|
|
|
7
7
|
export declare function normalize(input: ExternalServiceStatisticsOutputRepresentation, existing: ExternalServiceStatisticsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalServiceStatisticsOutputRepresentationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
9
|
export declare function equals(existing: ExternalServiceStatisticsOutputRepresentationNormalized, incoming: ExternalServiceStatisticsOutputRepresentationNormalized): boolean;
|
|
10
|
-
export declare function deepFreeze(input: ExternalServiceStatisticsOutputRepresentation): void;
|
|
11
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
11
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalServiceStatisticsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
12
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ExternalServiceStatisticsOverviewRepresentation, existing: ExternalServiceStatisticsOverviewRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalServiceStatisticsOverviewRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ExternalServiceStatisticsOverviewRepresentationNormalized, incoming: ExternalServiceStatisticsOverviewRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ExternalServiceStatisticsOverviewRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExternalServiceStatisticsOverviewRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: InferenceErrorMessageRepresentation, existing: InferenceErrorMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InferenceErrorMessageRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: InferenceErrorMessageRepresentationNormalized, incoming: InferenceErrorMessageRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: InferenceErrorMessageRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InferenceErrorMessageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: NamedCredentialListRepresentation, existing: NamedCredentialListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NamedCredentialListRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: NamedCredentialListRepresentationNormalized, incoming: NamedCredentialListRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: NamedCredentialListRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: NamedCredentialListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: NamedCredentialRepresentation, existing: NamedCredentialRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NamedCredentialRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: NamedCredentialRepresentationNormalized, incoming: NamedCredentialRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: NamedCredentialRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: NamedCredentialRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputRepresentation.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: OpenApiSpecInferenceInputRepresentation, existing: OpenApiSpecInferenceInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenApiSpecInferenceInputRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: OpenApiSpecInferenceInputRepresentationNormalized, incoming: OpenApiSpecInferenceInputRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: OpenApiSpecInferenceInputRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: OpenApiSpecInferenceInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceInputWrapperRepresentation.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: OpenApiSpecInferenceInputWrapperRepresentation, existing: OpenApiSpecInferenceInputWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenApiSpecInferenceInputWrapperRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: OpenApiSpecInferenceInputWrapperRepresentationNormalized, incoming: OpenApiSpecInferenceInputWrapperRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: OpenApiSpecInferenceInputWrapperRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: OpenApiSpecInferenceInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceOutputRepresentation.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
|
|
|
7
7
|
export declare function normalize(input: OpenApiSpecInferenceOutputRepresentation, existing: OpenApiSpecInferenceOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenApiSpecInferenceOutputRepresentationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
9
|
export declare function equals(existing: OpenApiSpecInferenceOutputRepresentationNormalized, incoming: OpenApiSpecInferenceOutputRepresentationNormalized): boolean;
|
|
10
|
-
export declare function deepFreeze(input: OpenApiSpecInferenceOutputRepresentation): void;
|
|
11
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
11
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: OpenApiSpecInferenceOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
12
|
/**
|
package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceParameterRepresentation.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: OpenApiSpecInferenceParameterRepresentation, existing: OpenApiSpecInferenceParameterRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenApiSpecInferenceParameterRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: OpenApiSpecInferenceParameterRepresentationNormalized, incoming: OpenApiSpecInferenceParameterRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: OpenApiSpecInferenceParameterRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: OpenApiSpecInferenceParameterRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: SchemaValidationInputRepresentation, existing: SchemaValidationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SchemaValidationInputRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: SchemaValidationInputRepresentationNormalized, incoming: SchemaValidationInputRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: SchemaValidationInputRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SchemaValidationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
package/dist/es/es2018/types/src/generated/types/SchemaValidationInputWrapperRepresentation.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: SchemaValidationInputWrapperRepresentation, existing: SchemaValidationInputWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SchemaValidationInputWrapperRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: SchemaValidationInputWrapperRepresentationNormalized, incoming: SchemaValidationInputWrapperRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: SchemaValidationInputWrapperRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SchemaValidationInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: SchemaValidationMessageRepresentation, existing: SchemaValidationMessageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SchemaValidationMessageRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: SchemaValidationMessageRepresentationNormalized, incoming: SchemaValidationMessageRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: SchemaValidationMessageRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SchemaValidationMessageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
15
15
|
export declare function normalize(input: SchemaValidationOutputRepresentation, existing: SchemaValidationOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SchemaValidationOutputRepresentationNormalized;
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: SchemaValidationOutputRepresentationNormalized, incoming: SchemaValidationOutputRepresentationNormalized): boolean;
|
|
18
|
-
export declare function deepFreeze(input: SchemaValidationOutputRepresentation): void;
|
|
19
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
19
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SchemaValidationOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
20
|
/**
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const
|
|
3
|
-
<T extends Function>(f: T): T;
|
|
4
|
-
<T_1 extends {
|
|
5
|
-
[idx: string]: object | U | null | undefined;
|
|
6
|
-
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
7
|
-
<T_2>(o: T_2): Readonly<T_2>;
|
|
8
|
-
}, ObjectKeys: {
|
|
2
|
+
export declare const ObjectKeys: {
|
|
9
3
|
(o: object): string[];
|
|
10
4
|
(o: {}): string[];
|
|
11
5
|
}, ObjectCreate: {
|
|
@@ -31,7 +25,6 @@ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (i
|
|
|
31
25
|
export declare function equalsObject<U, V extends {
|
|
32
26
|
[key: string]: U;
|
|
33
27
|
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
34
|
-
export declare function deepFreeze(value: any): void;
|
|
35
28
|
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
36
29
|
__ref: string;
|
|
37
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-external-services",
|
|
3
|
-
"version": "1.134.
|
|
3
|
+
"version": "1.134.8",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "External Services Connect API Family",
|
|
6
6
|
"main": "dist/es/es2018/platform-external-services.js",
|
package/sfdc/index.js
CHANGED
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, StoreKeyMap } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
-
const { keys: ObjectKeys$1,
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
|
+
const { stringify: JSONStringify$1 } = JSON;
|
|
21
22
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
23
|
/**
|
|
23
24
|
* Validates an adapter config is well-formed.
|
|
@@ -58,9 +59,64 @@ const snapshotRefreshOptions = {
|
|
|
58
59
|
},
|
|
59
60
|
}
|
|
60
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
64
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
65
|
+
* JSON.stringify({a: 1, b: 2})
|
|
66
|
+
* "{"a":1,"b":2}"
|
|
67
|
+
* JSON.stringify({b: 2, a: 1})
|
|
68
|
+
* "{"b":2,"a":1}"
|
|
69
|
+
* @param data Data to be JSON-stringified.
|
|
70
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
71
|
+
*/
|
|
72
|
+
function stableJSONStringify(node) {
|
|
73
|
+
// This is for Date values.
|
|
74
|
+
if (node && node.toJSON && typeof node.toJSON === 'function') {
|
|
75
|
+
// eslint-disable-next-line no-param-reassign
|
|
76
|
+
node = node.toJSON();
|
|
77
|
+
}
|
|
78
|
+
if (node === undefined) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (typeof node === 'number') {
|
|
82
|
+
return isFinite(node) ? '' + node : 'null';
|
|
83
|
+
}
|
|
84
|
+
if (typeof node !== 'object') {
|
|
85
|
+
return JSONStringify$1(node);
|
|
86
|
+
}
|
|
87
|
+
let i;
|
|
88
|
+
let out;
|
|
89
|
+
if (ArrayIsArray$1(node)) {
|
|
90
|
+
out = '[';
|
|
91
|
+
for (i = 0; i < node.length; i++) {
|
|
92
|
+
if (i) {
|
|
93
|
+
out += ',';
|
|
94
|
+
}
|
|
95
|
+
out += stableJSONStringify(node[i]) || 'null';
|
|
96
|
+
}
|
|
97
|
+
return out + ']';
|
|
98
|
+
}
|
|
99
|
+
if (node === null) {
|
|
100
|
+
return 'null';
|
|
101
|
+
}
|
|
102
|
+
const keys = ObjectKeys$1(node).sort();
|
|
103
|
+
out = '';
|
|
104
|
+
for (i = 0; i < keys.length; i++) {
|
|
105
|
+
const key = keys[i];
|
|
106
|
+
const value = stableJSONStringify(node[key]);
|
|
107
|
+
if (!value) {
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
if (out) {
|
|
111
|
+
out += ',';
|
|
112
|
+
}
|
|
113
|
+
out += JSONStringify$1(key) + ':' + value;
|
|
114
|
+
}
|
|
115
|
+
return '{' + out + '}';
|
|
116
|
+
}
|
|
61
117
|
const keyPrefix = 'external-services';
|
|
62
118
|
|
|
63
|
-
const {
|
|
119
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
64
120
|
const { isArray: ArrayIsArray } = Array;
|
|
65
121
|
const { stringify: JSONStringify } = JSON;
|
|
66
122
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -76,24 +132,6 @@ function equalsArray(a, b, equalsItem) {
|
|
|
76
132
|
}
|
|
77
133
|
return true;
|
|
78
134
|
}
|
|
79
|
-
function deepFreeze$2(value) {
|
|
80
|
-
// No need to freeze primitives
|
|
81
|
-
if (typeof value !== 'object' || value === null) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (ArrayIsArray(value)) {
|
|
85
|
-
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
86
|
-
deepFreeze$2(value[i]);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
const keys = ObjectKeys(value);
|
|
91
|
-
for (let i = 0, len = keys.length; i < len; i += 1) {
|
|
92
|
-
deepFreeze$2(value[keys[i]]);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
ObjectFreeze(value);
|
|
96
|
-
}
|
|
97
135
|
function createLink(ref) {
|
|
98
136
|
return {
|
|
99
137
|
__ref: serializeStructuredKey(ref),
|
|
@@ -149,9 +187,6 @@ function equals$8(existing, incoming) {
|
|
|
149
187
|
}
|
|
150
188
|
return true;
|
|
151
189
|
}
|
|
152
|
-
function deepFreeze$1(input) {
|
|
153
|
-
ObjectFreeze(input);
|
|
154
|
-
}
|
|
155
190
|
|
|
156
191
|
const VERSION$7 = "d45a6a39072862479f5c25fe921c0926";
|
|
157
192
|
function validate$a(obj, path = 'DataShapeInferenceOutputRepresentation') {
|
|
@@ -246,30 +281,6 @@ function equals$7(existing, incoming) {
|
|
|
246
281
|
}
|
|
247
282
|
return true;
|
|
248
283
|
}
|
|
249
|
-
function deepFreeze(input) {
|
|
250
|
-
const input_errorMessages = input.errorMessages;
|
|
251
|
-
for (let i = 0; i < input_errorMessages.length; i++) {
|
|
252
|
-
const input_errorMessages_item = input_errorMessages[i];
|
|
253
|
-
deepFreeze$1(input_errorMessages_item);
|
|
254
|
-
}
|
|
255
|
-
ObjectFreeze(input_errorMessages);
|
|
256
|
-
const input_items = input.items;
|
|
257
|
-
for (let i = 0; i < input_items.length; i++) {
|
|
258
|
-
const input_items_item = input_items[i];
|
|
259
|
-
deepFreeze(input_items_item);
|
|
260
|
-
}
|
|
261
|
-
ObjectFreeze(input_items);
|
|
262
|
-
const input_properties = input.properties;
|
|
263
|
-
const input_properties_keys = Object.keys(input_properties);
|
|
264
|
-
const input_properties_length = input_properties_keys.length;
|
|
265
|
-
for (let i = 0; i < input_properties_length; i++) {
|
|
266
|
-
const key = input_properties_keys[i];
|
|
267
|
-
const input_properties_prop = input_properties[key];
|
|
268
|
-
deepFreeze(input_properties_prop);
|
|
269
|
-
}
|
|
270
|
-
ObjectFreeze(input_properties);
|
|
271
|
-
ObjectFreeze(input);
|
|
272
|
-
}
|
|
273
284
|
const ingest$3 = function DataShapeInferenceOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
274
285
|
if (process.env.NODE_ENV !== 'production') {
|
|
275
286
|
const validateError = validate$a(input);
|
|
@@ -286,7 +297,6 @@ const ingest$3 = function DataShapeInferenceOutputRepresentationIngest(input, pa
|
|
|
286
297
|
propertyName: path.propertyName,
|
|
287
298
|
ttl: ttlToUse
|
|
288
299
|
});
|
|
289
|
-
deepFreeze(input);
|
|
290
300
|
if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
|
|
291
301
|
luvio.storePublish(key, incomingRecord);
|
|
292
302
|
}
|
|
@@ -336,6 +346,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
336
346
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
337
347
|
}
|
|
338
348
|
}
|
|
349
|
+
deepFreeze(snapshot.data);
|
|
339
350
|
return snapshot;
|
|
340
351
|
}
|
|
341
352
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
@@ -718,7 +729,7 @@ function select$9(luvio, params) {
|
|
|
718
729
|
return select$a();
|
|
719
730
|
}
|
|
720
731
|
function keyBuilder$6(luvio, params) {
|
|
721
|
-
return keyPrefix + '::OpenApiSpecInferenceOutputRepresentation:(' + 'version:' + params.urlParams.version + ',' + 'input.description:' + params.body.input.description + '::' + (params.body.input.externalServiceId === undefined ? 'input.externalServiceId' : 'input.externalServiceId:' + params.body.input.externalServiceId) + '::' + 'input.method:' + params.body.input.method + '::' + 'input.name:' + params.body.input.name + '::' + 'input.operationDescription:' + params.body.input.operationDescription + '::' + 'input.operationName:' + params.body.input.operationName + '::' + 'input.parameters:' +
|
|
732
|
+
return keyPrefix + '::OpenApiSpecInferenceOutputRepresentation:(' + 'version:' + params.urlParams.version + ',' + 'input.description:' + params.body.input.description + '::' + (params.body.input.externalServiceId === undefined ? 'input.externalServiceId' : 'input.externalServiceId:' + params.body.input.externalServiceId) + '::' + 'input.method:' + params.body.input.method + '::' + 'input.name:' + params.body.input.name + '::' + 'input.operationDescription:' + params.body.input.operationDescription + '::' + 'input.operationName:' + params.body.input.operationName + '::' + '[' + params.body.input.parameters.map(element => (element.description === undefined ? 'input.parameters.description' : 'input.parameters.description:' + element.description) + '::' + 'input.parameters.location:' + element.location + '::' + 'input.parameters.name:' + element.name + '::' + 'input.parameters.required:' + element.required + '::' + 'input.parameters.type:' + element.type).join(',') + ']' + '::' + 'input.path:' + params.body.input.path + '::' + stableJSONStringify(params.body.input.requestBody) + '::' + stableJSONStringify(params.body.input.responseBody) + ')';
|
|
722
733
|
}
|
|
723
734
|
function getResponseCacheKeys$3(luvio, resourceParams, response) {
|
|
724
735
|
return getTypeCacheKeys$2(luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
@@ -737,6 +748,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
737
748
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
738
749
|
}
|
|
739
750
|
}
|
|
751
|
+
deepFreeze(snapshot.data);
|
|
740
752
|
return snapshot;
|
|
741
753
|
}
|
|
742
754
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
@@ -1329,6 +1341,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1329
1341
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1330
1342
|
}
|
|
1331
1343
|
}
|
|
1344
|
+
deepFreeze(snapshot.data);
|
|
1332
1345
|
return snapshot;
|
|
1333
1346
|
}
|
|
1334
1347
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -1472,6 +1485,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1472
1485
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1473
1486
|
}
|
|
1474
1487
|
}
|
|
1488
|
+
deepFreeze(snapshot.data);
|
|
1475
1489
|
return snapshot;
|
|
1476
1490
|
}
|
|
1477
1491
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -2150,6 +2164,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
2150
2164
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2151
2165
|
}
|
|
2152
2166
|
}
|
|
2167
|
+
deepFreeze(snapshot.data);
|
|
2153
2168
|
return snapshot;
|
|
2154
2169
|
}
|
|
2155
2170
|
function createResourceRequest(config) {
|
|
@@ -2220,7 +2235,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2220
2235
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2221
2236
|
}, () => getResponseCacheKeys(luvio, resourceParams, response.body));
|
|
2222
2237
|
}, (response) => {
|
|
2223
|
-
deepFreeze
|
|
2238
|
+
deepFreeze(response);
|
|
2224
2239
|
throw response;
|
|
2225
2240
|
});
|
|
2226
2241
|
}
|
|
@@ -2288,4 +2303,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2288
2303
|
});
|
|
2289
2304
|
|
|
2290
2305
|
export { getDataShape, getDataShape_imperative, getOpenApiSpec, getOpenApiSpec_imperative, getStatistics, getStatisticsForService, getStatisticsForService_imperative, getStatistics_imperative, validateSchema };
|
|
2291
|
-
// version: 1.134.
|
|
2306
|
+
// version: 1.134.8-c3d6d2cfc
|