@salesforce/lds-adapters-sales-people-api 1.134.7 → 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/sales-people-api.js +4 -61
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
- package/dist/es/es2018/types/src/generated/types/NameUi.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/PeopleAPIResponse.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/PeopleAPIResponseCollection.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/PhoneUi.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/PhysAddressUi.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/SignatureUi.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/SocialMediaUi.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/TitleUi.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 +5 -62
|
@@ -4,10 +4,10 @@
|
|
|
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
|
|
10
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
31
31
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
32
|
}
|
|
33
33
|
const supported = required.concat(optional);
|
|
34
|
-
if (ObjectKeys
|
|
34
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
35
35
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -50,7 +50,6 @@ const snapshotRefreshOptions = {
|
|
|
50
50
|
};
|
|
51
51
|
const keyPrefix = 'people-api';
|
|
52
52
|
|
|
53
|
-
const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
54
53
|
const { isArray: ArrayIsArray } = Array;
|
|
55
54
|
const { stringify: JSONStringify } = JSON;
|
|
56
55
|
function createLink(ref) {
|
|
@@ -107,9 +106,6 @@ function validate$7(obj, path = 'PhysAddressUi') {
|
|
|
107
106
|
})();
|
|
108
107
|
return v_error === undefined ? null : v_error;
|
|
109
108
|
}
|
|
110
|
-
function deepFreeze$7(input) {
|
|
111
|
-
ObjectFreeze(input);
|
|
112
|
-
}
|
|
113
109
|
|
|
114
110
|
function validate$6(obj, path = 'NameUi') {
|
|
115
111
|
const v_error = (() => {
|
|
@@ -134,9 +130,6 @@ function validate$6(obj, path = 'NameUi') {
|
|
|
134
130
|
})();
|
|
135
131
|
return v_error === undefined ? null : v_error;
|
|
136
132
|
}
|
|
137
|
-
function deepFreeze$6(input) {
|
|
138
|
-
ObjectFreeze(input);
|
|
139
|
-
}
|
|
140
133
|
|
|
141
134
|
function validate$5(obj, path = 'PhoneUi') {
|
|
142
135
|
const v_error = (() => {
|
|
@@ -166,9 +159,6 @@ function validate$5(obj, path = 'PhoneUi') {
|
|
|
166
159
|
})();
|
|
167
160
|
return v_error === undefined ? null : v_error;
|
|
168
161
|
}
|
|
169
|
-
function deepFreeze$5(input) {
|
|
170
|
-
ObjectFreeze(input);
|
|
171
|
-
}
|
|
172
162
|
|
|
173
163
|
function validate$4(obj, path = 'SocialMediaUi') {
|
|
174
164
|
const v_error = (() => {
|
|
@@ -193,9 +183,6 @@ function validate$4(obj, path = 'SocialMediaUi') {
|
|
|
193
183
|
})();
|
|
194
184
|
return v_error === undefined ? null : v_error;
|
|
195
185
|
}
|
|
196
|
-
function deepFreeze$4(input) {
|
|
197
|
-
ObjectFreeze(input);
|
|
198
|
-
}
|
|
199
186
|
|
|
200
187
|
function validate$3(obj, path = 'TitleUi') {
|
|
201
188
|
const v_error = (() => {
|
|
@@ -220,9 +207,6 @@ function validate$3(obj, path = 'TitleUi') {
|
|
|
220
207
|
})();
|
|
221
208
|
return v_error === undefined ? null : v_error;
|
|
222
209
|
}
|
|
223
|
-
function deepFreeze$3(input) {
|
|
224
|
-
ObjectFreeze(input);
|
|
225
|
-
}
|
|
226
210
|
|
|
227
211
|
function validate$2(obj, path = 'SignatureUi') {
|
|
228
212
|
const v_error = (() => {
|
|
@@ -330,33 +314,6 @@ function validate$2(obj, path = 'SignatureUi') {
|
|
|
330
314
|
})();
|
|
331
315
|
return v_error === undefined ? null : v_error;
|
|
332
316
|
}
|
|
333
|
-
function deepFreeze$2(input) {
|
|
334
|
-
const input_addresses = input.addresses;
|
|
335
|
-
for (let i = 0; i < input_addresses.length; i++) {
|
|
336
|
-
const input_addresses_item = input_addresses[i];
|
|
337
|
-
deepFreeze$7(input_addresses_item);
|
|
338
|
-
}
|
|
339
|
-
ObjectFreeze(input_addresses);
|
|
340
|
-
const input_name = input.name;
|
|
341
|
-
deepFreeze$6(input_name);
|
|
342
|
-
const input_phones = input.phones;
|
|
343
|
-
for (let i = 0; i < input_phones.length; i++) {
|
|
344
|
-
const input_phones_item = input_phones[i];
|
|
345
|
-
deepFreeze$5(input_phones_item);
|
|
346
|
-
}
|
|
347
|
-
ObjectFreeze(input_phones);
|
|
348
|
-
const input_socialMediaUrls = input.socialMediaUrls;
|
|
349
|
-
for (let i = 0; i < input_socialMediaUrls.length; i++) {
|
|
350
|
-
const input_socialMediaUrls_item = input_socialMediaUrls[i];
|
|
351
|
-
deepFreeze$4(input_socialMediaUrls_item);
|
|
352
|
-
}
|
|
353
|
-
ObjectFreeze(input_socialMediaUrls);
|
|
354
|
-
const input_title = input.title;
|
|
355
|
-
deepFreeze$3(input_title);
|
|
356
|
-
const input_webUrls = input.webUrls;
|
|
357
|
-
ObjectFreeze(input_webUrls);
|
|
358
|
-
ObjectFreeze(input);
|
|
359
|
-
}
|
|
360
317
|
|
|
361
318
|
function validate$1(obj, path = 'PeopleAPIResponse') {
|
|
362
319
|
const v_error = (() => {
|
|
@@ -379,11 +336,6 @@ function validate$1(obj, path = 'PeopleAPIResponse') {
|
|
|
379
336
|
})();
|
|
380
337
|
return v_error === undefined ? null : v_error;
|
|
381
338
|
}
|
|
382
|
-
function deepFreeze$1(input) {
|
|
383
|
-
const input_signature = input.signature;
|
|
384
|
-
deepFreeze$2(input_signature);
|
|
385
|
-
ObjectFreeze(input);
|
|
386
|
-
}
|
|
387
339
|
|
|
388
340
|
const VERSION = "1acb2e7e06055d8818df0d3592d62c04";
|
|
389
341
|
function validate(obj, path = 'PeopleAPIResponseCollection') {
|
|
@@ -427,15 +379,6 @@ function equals(existing, incoming) {
|
|
|
427
379
|
}
|
|
428
380
|
return true;
|
|
429
381
|
}
|
|
430
|
-
function deepFreeze(input) {
|
|
431
|
-
const input_responses = input.responses;
|
|
432
|
-
for (let i = 0; i < input_responses.length; i++) {
|
|
433
|
-
const input_responses_item = input_responses[i];
|
|
434
|
-
deepFreeze$1(input_responses_item);
|
|
435
|
-
}
|
|
436
|
-
ObjectFreeze(input_responses);
|
|
437
|
-
ObjectFreeze(input);
|
|
438
|
-
}
|
|
439
382
|
const ingest = function PeopleAPIResponseCollectionIngest(input, path, luvio, store, timestamp) {
|
|
440
383
|
if (process.env.NODE_ENV !== 'production') {
|
|
441
384
|
const validateError = validate(input);
|
|
@@ -452,7 +395,6 @@ const ingest = function PeopleAPIResponseCollectionIngest(input, path, luvio, st
|
|
|
452
395
|
propertyName: path.propertyName,
|
|
453
396
|
ttl: ttlToUse
|
|
454
397
|
});
|
|
455
|
-
deepFreeze(input);
|
|
456
398
|
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
457
399
|
luvio.storePublish(key, incomingRecord);
|
|
458
400
|
}
|
|
@@ -502,6 +444,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
502
444
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
503
445
|
}
|
|
504
446
|
}
|
|
447
|
+
deepFreeze(snapshot.data);
|
|
505
448
|
return snapshot;
|
|
506
449
|
}
|
|
507
450
|
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: NameUi, existing: NameUiNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NameUiNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: NameUiNormalized, incoming: NameUiNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: NameUi): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: NameUi, 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: PeopleAPIResponse, existing: PeopleAPIResponseNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PeopleAPIResponseNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: PeopleAPIResponseNormalized, incoming: PeopleAPIResponseNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: PeopleAPIResponse): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PeopleAPIResponse, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: PeopleAPIResponseCollection, existing: PeopleAPIResponseCollectionNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PeopleAPIResponseCollectionNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
8
|
export declare function equals(existing: PeopleAPIResponseCollectionNormalized, incoming: PeopleAPIResponseCollectionNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: PeopleAPIResponseCollection): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PeopleAPIResponseCollection, 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: PhoneUi, existing: PhoneUiNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PhoneUiNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: PhoneUiNormalized, incoming: PhoneUiNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: PhoneUi): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PhoneUi, 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: PhysAddressUi, existing: PhysAddressUiNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PhysAddressUiNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: PhysAddressUiNormalized, incoming: PhysAddressUiNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: PhysAddressUi): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PhysAddressUi, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -10,7 +10,6 @@ export declare const RepresentationType: string;
|
|
|
10
10
|
export declare function normalize(input: SignatureUi, existing: SignatureUiNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SignatureUiNormalized;
|
|
11
11
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
12
|
export declare function equals(existing: SignatureUiNormalized, incoming: SignatureUiNormalized): boolean;
|
|
13
|
-
export declare function deepFreeze(input: SignatureUi): void;
|
|
14
13
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
15
14
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SignatureUi, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
16
15
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: SocialMediaUi, existing: SocialMediaUiNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SocialMediaUiNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: SocialMediaUiNormalized, incoming: SocialMediaUiNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: SocialMediaUi): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SocialMediaUi, 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: TitleUi, existing: TitleUiNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TitleUiNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: TitleUiNormalized, incoming: TitleUiNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: TitleUi): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TitleUi, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -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
package/sfdc/index.js
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
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
|
|
20
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
41
41
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
42
|
}
|
|
43
43
|
const supported = required.concat(optional);
|
|
44
|
-
if (ObjectKeys
|
|
44
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
45
45
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -60,7 +60,6 @@ const snapshotRefreshOptions = {
|
|
|
60
60
|
};
|
|
61
61
|
const keyPrefix = 'people-api';
|
|
62
62
|
|
|
63
|
-
const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
64
63
|
const { isArray: ArrayIsArray } = Array;
|
|
65
64
|
const { stringify: JSONStringify } = JSON;
|
|
66
65
|
function createLink(ref) {
|
|
@@ -117,9 +116,6 @@ function validate$7(obj, path = 'PhysAddressUi') {
|
|
|
117
116
|
})();
|
|
118
117
|
return v_error === undefined ? null : v_error;
|
|
119
118
|
}
|
|
120
|
-
function deepFreeze$7(input) {
|
|
121
|
-
ObjectFreeze(input);
|
|
122
|
-
}
|
|
123
119
|
|
|
124
120
|
function validate$6(obj, path = 'NameUi') {
|
|
125
121
|
const v_error = (() => {
|
|
@@ -144,9 +140,6 @@ function validate$6(obj, path = 'NameUi') {
|
|
|
144
140
|
})();
|
|
145
141
|
return v_error === undefined ? null : v_error;
|
|
146
142
|
}
|
|
147
|
-
function deepFreeze$6(input) {
|
|
148
|
-
ObjectFreeze(input);
|
|
149
|
-
}
|
|
150
143
|
|
|
151
144
|
function validate$5(obj, path = 'PhoneUi') {
|
|
152
145
|
const v_error = (() => {
|
|
@@ -176,9 +169,6 @@ function validate$5(obj, path = 'PhoneUi') {
|
|
|
176
169
|
})();
|
|
177
170
|
return v_error === undefined ? null : v_error;
|
|
178
171
|
}
|
|
179
|
-
function deepFreeze$5(input) {
|
|
180
|
-
ObjectFreeze(input);
|
|
181
|
-
}
|
|
182
172
|
|
|
183
173
|
function validate$4(obj, path = 'SocialMediaUi') {
|
|
184
174
|
const v_error = (() => {
|
|
@@ -203,9 +193,6 @@ function validate$4(obj, path = 'SocialMediaUi') {
|
|
|
203
193
|
})();
|
|
204
194
|
return v_error === undefined ? null : v_error;
|
|
205
195
|
}
|
|
206
|
-
function deepFreeze$4(input) {
|
|
207
|
-
ObjectFreeze(input);
|
|
208
|
-
}
|
|
209
196
|
|
|
210
197
|
function validate$3(obj, path = 'TitleUi') {
|
|
211
198
|
const v_error = (() => {
|
|
@@ -230,9 +217,6 @@ function validate$3(obj, path = 'TitleUi') {
|
|
|
230
217
|
})();
|
|
231
218
|
return v_error === undefined ? null : v_error;
|
|
232
219
|
}
|
|
233
|
-
function deepFreeze$3(input) {
|
|
234
|
-
ObjectFreeze(input);
|
|
235
|
-
}
|
|
236
220
|
|
|
237
221
|
function validate$2(obj, path = 'SignatureUi') {
|
|
238
222
|
const v_error = (() => {
|
|
@@ -340,33 +324,6 @@ function validate$2(obj, path = 'SignatureUi') {
|
|
|
340
324
|
})();
|
|
341
325
|
return v_error === undefined ? null : v_error;
|
|
342
326
|
}
|
|
343
|
-
function deepFreeze$2(input) {
|
|
344
|
-
const input_addresses = input.addresses;
|
|
345
|
-
for (let i = 0; i < input_addresses.length; i++) {
|
|
346
|
-
const input_addresses_item = input_addresses[i];
|
|
347
|
-
deepFreeze$7(input_addresses_item);
|
|
348
|
-
}
|
|
349
|
-
ObjectFreeze(input_addresses);
|
|
350
|
-
const input_name = input.name;
|
|
351
|
-
deepFreeze$6(input_name);
|
|
352
|
-
const input_phones = input.phones;
|
|
353
|
-
for (let i = 0; i < input_phones.length; i++) {
|
|
354
|
-
const input_phones_item = input_phones[i];
|
|
355
|
-
deepFreeze$5(input_phones_item);
|
|
356
|
-
}
|
|
357
|
-
ObjectFreeze(input_phones);
|
|
358
|
-
const input_socialMediaUrls = input.socialMediaUrls;
|
|
359
|
-
for (let i = 0; i < input_socialMediaUrls.length; i++) {
|
|
360
|
-
const input_socialMediaUrls_item = input_socialMediaUrls[i];
|
|
361
|
-
deepFreeze$4(input_socialMediaUrls_item);
|
|
362
|
-
}
|
|
363
|
-
ObjectFreeze(input_socialMediaUrls);
|
|
364
|
-
const input_title = input.title;
|
|
365
|
-
deepFreeze$3(input_title);
|
|
366
|
-
const input_webUrls = input.webUrls;
|
|
367
|
-
ObjectFreeze(input_webUrls);
|
|
368
|
-
ObjectFreeze(input);
|
|
369
|
-
}
|
|
370
327
|
|
|
371
328
|
function validate$1(obj, path = 'PeopleAPIResponse') {
|
|
372
329
|
const v_error = (() => {
|
|
@@ -389,11 +346,6 @@ function validate$1(obj, path = 'PeopleAPIResponse') {
|
|
|
389
346
|
})();
|
|
390
347
|
return v_error === undefined ? null : v_error;
|
|
391
348
|
}
|
|
392
|
-
function deepFreeze$1(input) {
|
|
393
|
-
const input_signature = input.signature;
|
|
394
|
-
deepFreeze$2(input_signature);
|
|
395
|
-
ObjectFreeze(input);
|
|
396
|
-
}
|
|
397
349
|
|
|
398
350
|
const VERSION = "1acb2e7e06055d8818df0d3592d62c04";
|
|
399
351
|
function validate(obj, path = 'PeopleAPIResponseCollection') {
|
|
@@ -437,15 +389,6 @@ function equals(existing, incoming) {
|
|
|
437
389
|
}
|
|
438
390
|
return true;
|
|
439
391
|
}
|
|
440
|
-
function deepFreeze(input) {
|
|
441
|
-
const input_responses = input.responses;
|
|
442
|
-
for (let i = 0; i < input_responses.length; i++) {
|
|
443
|
-
const input_responses_item = input_responses[i];
|
|
444
|
-
deepFreeze$1(input_responses_item);
|
|
445
|
-
}
|
|
446
|
-
ObjectFreeze(input_responses);
|
|
447
|
-
ObjectFreeze(input);
|
|
448
|
-
}
|
|
449
392
|
const ingest = function PeopleAPIResponseCollectionIngest(input, path, luvio, store, timestamp) {
|
|
450
393
|
if (process.env.NODE_ENV !== 'production') {
|
|
451
394
|
const validateError = validate(input);
|
|
@@ -462,7 +405,6 @@ const ingest = function PeopleAPIResponseCollectionIngest(input, path, luvio, st
|
|
|
462
405
|
propertyName: path.propertyName,
|
|
463
406
|
ttl: ttlToUse
|
|
464
407
|
});
|
|
465
|
-
deepFreeze(input);
|
|
466
408
|
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
467
409
|
luvio.storePublish(key, incomingRecord);
|
|
468
410
|
}
|
|
@@ -512,6 +454,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
512
454
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
513
455
|
}
|
|
514
456
|
}
|
|
457
|
+
deepFreeze(snapshot.data);
|
|
515
458
|
return snapshot;
|
|
516
459
|
}
|
|
517
460
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -671,4 +614,4 @@ withDefaultLuvio((luvio) => {
|
|
|
671
614
|
});
|
|
672
615
|
|
|
673
616
|
export { getParsedSignatureData, getParsedSignatureData_imperative };
|
|
674
|
-
// version: 1.134.
|
|
617
|
+
// version: 1.134.8-c3d6d2cfc
|