@salesforce/lds-adapters-platform-enablement 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/platform-enablement.js +4 -2
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryItemRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummarySectionRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryTaskRepresentation.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 -3
|
@@ -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.
|
|
@@ -1161,6 +1161,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1161
1161
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
|
+
deepFreeze(snapshot.data);
|
|
1164
1165
|
return snapshot;
|
|
1165
1166
|
}
|
|
1166
1167
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -1316,6 +1317,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1316
1317
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1317
1318
|
}
|
|
1318
1319
|
}
|
|
1320
|
+
deepFreeze(snapshot.data);
|
|
1319
1321
|
return snapshot;
|
|
1320
1322
|
}
|
|
1321
1323
|
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 {
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryItemRepresentation.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare function normalize(input: EnablementProgramSummaryItemRepresentat
|
|
|
10
10
|
export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
|
|
11
11
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
12
|
export declare function equals(existing: EnablementProgramSummaryItemRepresentationNormalized, incoming: EnablementProgramSummaryItemRepresentationNormalized): boolean;
|
|
13
|
-
export declare function deepFreeze(input: EnablementProgramSummaryItemRepresentation): void;
|
|
14
13
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
15
14
|
export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
|
|
16
15
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryListRepresentation.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
16
|
export declare function equals(existing: EnablementProgramSummaryListRepresentationNormalized, incoming: EnablementProgramSummaryListRepresentationNormalized): boolean;
|
|
17
|
-
export declare function deepFreeze(input: EnablementProgramSummaryListRepresentation): void;
|
|
18
17
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
18
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
19
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryRepresentation.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
16
16
|
export declare function normalize(input: EnablementProgramSummaryRepresentation, existing: EnablementProgramSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryRepresentationNormalized;
|
|
17
17
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
18
|
export declare function equals(existing: EnablementProgramSummaryRepresentationNormalized, incoming: EnablementProgramSummaryRepresentationNormalized): boolean;
|
|
19
|
-
export declare function deepFreeze(input: EnablementProgramSummaryRepresentation): void;
|
|
20
19
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
20
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
21
|
/**
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramSummarySectionRepresentation.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
|
|
|
7
7
|
export declare function normalize(input: EnablementProgramSummarySectionRepresentation, existing: EnablementProgramSummarySectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummarySectionRepresentationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
9
|
export declare function equals(existing: EnablementProgramSummarySectionRepresentationNormalized, incoming: EnablementProgramSummarySectionRepresentationNormalized): boolean;
|
|
10
|
-
export declare function deepFreeze(input: EnablementProgramSummarySectionRepresentation): void;
|
|
11
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
11
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummarySectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
12
|
/**
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramSummaryTaskRepresentation.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: EnablementProgramSummaryTaskRepresentation, existing: EnablementProgramSummaryTaskRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryTaskRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: EnablementProgramSummaryTaskRepresentationNormalized, incoming: EnablementProgramSummaryTaskRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: EnablementProgramSummaryTaskRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryTaskRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -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.
|
|
@@ -1171,6 +1171,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1171
1171
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
|
+
deepFreeze(snapshot.data);
|
|
1174
1175
|
return snapshot;
|
|
1175
1176
|
}
|
|
1176
1177
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -1326,6 +1327,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1326
1327
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1327
1328
|
}
|
|
1328
1329
|
}
|
|
1330
|
+
deepFreeze(snapshot.data);
|
|
1329
1331
|
return snapshot;
|
|
1330
1332
|
}
|
|
1331
1333
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -1499,4 +1501,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1499
1501
|
});
|
|
1500
1502
|
|
|
1501
1503
|
export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
|
|
1502
|
-
// version: 1.134.
|
|
1504
|
+
// version: 1.134.8-c3d6d2cfc
|