@salesforce/lds-adapters-uiapi 1.235.0 → 1.237.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/types/src/__performance__/utils/sqliteDurableStore.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/getRelatedListRecordsBatch.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/adapters/getRelatedListsActions.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/adapters/updateListInfoByName.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/fields/types/BatchRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/CompositeRelatedListRecordCollectionResultRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/KeywordSearchResultsRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/ListRecordCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/ListUiRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/LookupValuesRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/RecordCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/RelatedListRecordCollectionBatchRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/RelatedListRecordCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/SearchResultCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/graphql/types/type-util.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/getUiApiActionsRecordRelatedListBatchByRecordIdsAndRelatedListIds.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/patchUiApiListInfoByListViewApiNameAndObjectApiName.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/patchUiApiListInfoByListViewId.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/postUiApiActionsRecordRelatedListBatchByRecordIds.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/resources/postUiApiRelatedListRecordsBatchByParentRecordId.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/CompositeActionRelatedListsCollectionResultRepresentation.d.ts +10 -4
- package/dist/es/es2018/types/src/generated/types/CompositeRelatedListRecordCollectionResultRepresentation.d.ts +10 -4
- package/dist/es/es2018/types/src/generated/types/ListInfoInputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ListObjectColumnRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/ListObjectInfoRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/main.d.ts +3 -2
- package/dist/es/es2018/types/src/overrides/resources/postUiApiRelatedListRecordsByParentRecordIdAndRelatedListId.d.ts +2 -2
- package/dist/es/es2018/types/src/raml-artifacts/adapters/getLookupRecords/validateAdapterConfig.d.ts +2 -1
- package/dist/es/es2018/types/src/wire/getListInfosByName/createChildResourceParams.d.ts +4 -0
- package/dist/es/es2018/types/src/wire/getLookupRecords/index.d.ts +2 -0
- package/dist/es/es2018/types/src/wire/getRelatedListRecordsBatch/createChildResourceParams.d.ts +4 -0
- package/dist/es/es2018/types/src/wire/getRelatedListsActions/createChildResourceParams.d.ts +4 -0
- package/dist/es/es2018/types/src/wire/graphqlBatch/index.d.ts +7 -8
- package/dist/es/es2018/types/src/{overrides/resources → wire/graphqlBatch}/postGraphqlBatch.d.ts +13 -6
- package/dist/es/es2018/uiapi-records-service.js +1227 -987
- package/package.json +5 -4
- package/sfdc/graphqlAdapters.js +4 -5
- package/sfdc/index.js +1209 -973
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +152 -578
- package/src/raml/luvio.raml +3 -22
- package/dist/es/es2018/types/src/generated/resources/deleteUiApiFavoritesByFavoriteId.d.ts +0 -11
- package/dist/es/es2018/types/src/generated/resources/deleteUiApiHealthCheck.d.ts +0 -8
- package/dist/es/es2018/types/src/generated/resources/getUiApiAggregateUi.d.ts +0 -16
- package/dist/es/es2018/types/src/generated/resources/getUiApiFavorites.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/getUiApiFavoritesByFavoriteId.d.ts +0 -15
- package/dist/es/es2018/types/src/generated/resources/getUiApiHealthCheck.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/getUiApiRelatedListRecordsBatchByParentRecordId.d.ts +0 -30
- package/dist/es/es2018/types/src/generated/resources/getUiApiRelatedListRecordsBatchByParentRecordIdAndRelatedListIds.d.ts +0 -23
- package/dist/es/es2018/types/src/generated/resources/patchUiApiFavoritesByFavoriteId.d.ts +0 -19
- package/dist/es/es2018/types/src/generated/resources/patchUiApiFavoritesUsageByFavoriteId.d.ts +0 -9
- package/dist/es/es2018/types/src/generated/resources/patchUiApiHealthCheck.d.ts +0 -6
- package/dist/es/es2018/types/src/generated/resources/postGraphqlBatch.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/postUiApiActionsRecordRelatedListBatchByRecordIdsAndRelatedListIds.d.ts +0 -17
- package/dist/es/es2018/types/src/generated/resources/postUiApiActionsRecordRelatedListByRecordIds.d.ts +0 -19
- package/dist/es/es2018/types/src/generated/resources/postUiApiAggregateUi.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/postUiApiFavorites.d.ts +0 -21
- package/dist/es/es2018/types/src/generated/resources/postUiApiHealthCheck.d.ts +0 -9
- package/dist/es/es2018/types/src/generated/resources/postUiApiRelatedListRecordsBatchByParentRecordIdAndRelatedListIds.d.ts +0 -17
- package/dist/es/es2018/types/src/generated/resources/putUiApiFavoritesBatch.d.ts +0 -9
- package/dist/es/es2018/types/src/generated/resources/putUiApiHealthCheck.d.ts +0 -6
- package/dist/es/es2018/types/src/generated/types/CompositeGraphQLResultRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/GraphQLBatchInputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/GraphQLBatchRepresentation.d.ts +0 -29
- package/dist/es/es2018/types/src/generated/types/HealthCheckRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/overrides/resources/getUiApiListInfoBatch.d.ts +0 -38
- package/dist/es/es2018/types/src/overrides/resources/postUiApiActionsRecordRelatedListBatchByRecordIds.d.ts +0 -14
- package/dist/es/es2018/types/src/overrides/resources/postUiApiRelatedListRecordsBatchByParentRecordId.d.ts +0 -16
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from '../../generated/adapters/adapter-utils';
|
|
2
2
|
import type { Luvio as $64$luvio_engine_Luvio, 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';
|
|
3
|
-
import type { ResourceRequestConfig as resources_postGraphqlBatch_ResourceRequestConfig } from '
|
|
4
|
-
import type { GraphQLBatchRepresentation as types_GraphQLBatchRepresentation_GraphQLBatchRepresentation } from '../../generated/types/GraphQLBatchRepresentation';
|
|
3
|
+
import type { ResourceRequestConfig as resources_postGraphqlBatch_ResourceRequestConfig, GraphQLBatchRepresentation } from './postGraphqlBatch';
|
|
5
4
|
import type { GraphqlConfig } from '../../generated/adapters/graphql';
|
|
6
5
|
export interface GraphqlBatchConfig {
|
|
7
6
|
batchQuery: Array<GraphqlConfig>;
|
|
@@ -9,19 +8,19 @@ export interface GraphqlBatchConfig {
|
|
|
9
8
|
export declare function createResourceParams(config: GraphqlBatchConfig): resources_postGraphqlBatch_ResourceRequestConfig;
|
|
10
9
|
export declare function transformConfiguration(config: GraphqlBatchConfig): GraphqlBatchConfig;
|
|
11
10
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GraphqlBatchConfig>): adapter$45$utils_Untrusted<GraphqlBatchConfig>;
|
|
12
|
-
export declare const factory: $64$luvio_engine_AdapterFactory<GraphqlBatchConfig,
|
|
11
|
+
export declare const factory: $64$luvio_engine_AdapterFactory<GraphqlBatchConfig, GraphQLBatchRepresentation>;
|
|
13
12
|
export declare const adapterName = "graphqlBatch";
|
|
14
13
|
export declare const graphqlBatch_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
15
14
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig): string;
|
|
16
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GraphqlBatchConfig | null;
|
|
17
16
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig): $64$luvio_engine_Fragment;
|
|
18
|
-
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig): $64$luvio_engine_Snapshot<
|
|
19
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, resourceParams: resources_postGraphqlBatch_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig): $64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, resourceParams: resources_postGraphqlBatch_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<GraphQLBatchRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<GraphQLBatchRepresentation, any> | import("@luvio/engine").StaleSnapshot<GraphQLBatchRepresentation, any> | import("@luvio/engine").PendingSnapshot<GraphQLBatchRepresentation, any>>;
|
|
20
19
|
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, resourceParams: resources_postGraphqlBatch_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GraphqlBatchConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>>;
|
|
22
21
|
export type BuildSnapshotContext = {
|
|
23
22
|
luvio: $64$luvio_engine_Luvio;
|
|
24
23
|
config: GraphqlBatchConfig;
|
|
25
24
|
};
|
|
26
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<
|
|
27
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<GraphQLBatchRepresentation>): $64$luvio_engine_Snapshot<GraphQLBatchRepresentation, any>;
|
package/dist/es/es2018/types/src/{overrides/resources → wire/graphqlBatch}/postGraphqlBatch.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { FetchResponse as $64$luvio_engine_FetchResponse, Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest, NormalizedKeyMetadata } from '@luvio/engine';
|
|
1
|
+
import type { FetchResponse as $64$luvio_engine_FetchResponse, Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest, NormalizedKeyMetadata, HttpStatusCode } from '@luvio/engine';
|
|
2
2
|
import { StoreKeySet } from '@luvio/engine';
|
|
3
3
|
import type { ResourceRequestConfig as postGraphql_ResourceRequestConfig } from '../../generated/resources/postGraphql';
|
|
4
|
-
import type {
|
|
4
|
+
import type { GraphQLRepresentation } from '../../generated/types/GraphQLRepresentation';
|
|
5
5
|
import type { GraphqlConfig } from '../../generated/adapters/graphql';
|
|
6
6
|
export interface ResourceRequestConfig {
|
|
7
7
|
body: {
|
|
@@ -18,6 +18,13 @@ interface NormalizedResourceRequestConfig {
|
|
|
18
18
|
batchQuery: Array<NormalizedGraphQLRequest>;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
export type GraphQLBatchRepresentation = {
|
|
22
|
+
results: Array<GraphQLCompositeResult>;
|
|
23
|
+
};
|
|
24
|
+
type GraphQLCompositeResult = {
|
|
25
|
+
statusCode: HttpStatusCode;
|
|
26
|
+
result: GraphQLRepresentation;
|
|
27
|
+
};
|
|
21
28
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
22
29
|
export declare function stripDocumentsOfMetaschema(config: ResourceRequestConfig): NormalizedResourceRequestConfig;
|
|
23
30
|
export declare function createChildResourceParams(resourceParams: ResourceRequestConfig): postGraphql_ResourceRequestConfig[];
|
|
@@ -25,12 +32,12 @@ export declare function selectChildResourceParams(luvio: $64$luvio_engine_Luvio,
|
|
|
25
32
|
export declare function select(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
26
33
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
27
34
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): NormalizedKeyMetadata;
|
|
28
|
-
export declare function getResponseCacheKeys(keys: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response:
|
|
35
|
+
export declare function getResponseCacheKeys(keys: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: GraphQLBatchRepresentation): void;
|
|
29
36
|
export declare function ingestSuccessChildResourceParams(luvio: $64$luvio_engine_Luvio, childConfigs: GraphqlConfig[], childResourceParamsArray: postGraphql_ResourceRequestConfig[], childEnvelopes: Array<any>): {
|
|
30
|
-
childSnapshotData:
|
|
37
|
+
childSnapshotData: GraphQLBatchRepresentation;
|
|
31
38
|
seenRecords: StoreKeySet<string | NormalizedKeyMetadata>;
|
|
32
39
|
snapshotState: string;
|
|
33
40
|
};
|
|
34
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
35
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<
|
|
41
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<GraphQLBatchRepresentation>, snapshotRefresh: $64$luvio_engine_SnapshotRefresh<GraphQLBatchRepresentation>): $64$luvio_engine_FulfilledSnapshot<GraphQLBatchRepresentation, any> | $64$luvio_engine_StaleSnapshot<GraphQLBatchRepresentation, any> | $64$luvio_engine_PendingSnapshot<GraphQLBatchRepresentation, any>;
|
|
42
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<GraphQLBatchRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
36
43
|
export default createResourceRequest;
|