@salesforce/lds-adapters-uiapi 1.314.0 → 1.315.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/main.d.ts +2 -0
- package/dist/es/es2018/types/src/wire/createContentDocumentAndVersion/configurationTypes.d.ts +2 -3
- package/dist/es/es2018/types/src/wire/createRecord/configurationTypes.d.ts +2 -3
- package/dist/es/es2018/types/src/wire/deleteRecord/configurationTypes.d.ts +3 -2
- package/dist/es/es2018/types/src/wire/graphql/configurationTypes.d.ts +3 -3
- package/dist/es/es2018/types/src/wire/graphqlBatch/configurationTypes.d.ts +2 -3
- package/dist/es/es2018/types/src/wire/performQuickAction/index.d.ts +1 -1
- package/dist/es/es2018/types/src/wire/performUpdateRecordQuickAction/index.d.ts +1 -1
- package/dist/es/es2018/types/src/wire/updateRecord/configurationTypes.d.ts +2 -3
- package/dist/es/es2018/uiapi-records-service.js +659 -747
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +3 -3
- package/sfdc/index.js +681 -769
|
@@ -61,6 +61,8 @@ export type { DraftAwareUpdateRecordAdapter } from './wire/updateRecord/configur
|
|
|
61
61
|
export type { DraftAwareDeleteRecordAdapter } from './wire/deleteRecord/configurationTypes';
|
|
62
62
|
export type { DraftAwareCreateContentDocumentAndVersionAdapter } from './wire/createContentDocumentAndVersion/configurationTypes';
|
|
63
63
|
export type { DraftAwareCreateContentVersionAdapter } from './wire/createContentVersion/configurationTypes';
|
|
64
|
+
export type { DraftAwarePerformQuickActionAdapter } from './wire/performQuickAction/configurationTypes';
|
|
65
|
+
export type { DraftAwarePerformUpdateRecordQuickActionAdapter } from './wire/performUpdateRecordQuickAction/configurationTypes';
|
|
64
66
|
export type { DraftAwareGraphQLAdapter } from './wire/graphql/configurationTypes';
|
|
65
67
|
export type { EnvironmentAwareGraphQLBatchAdapter } from './wire/graphqlBatch/configurationTypes';
|
|
66
68
|
export type { ContentDocumentCompositeRepresentation } from './generated/types/ContentDocumentCompositeRepresentation';
|
package/dist/es/es2018/types/src/wire/createContentDocumentAndVersion/configurationTypes.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { AdapterRequestContext, Snapshot } from '@luvio/engine';
|
|
1
|
+
import type { AdapterRequestContext, ResourceRequest, Snapshot } from '@luvio/engine';
|
|
2
2
|
import type { ContentDocumentCompositeRepresentation } from '../../generated/types/ContentDocumentCompositeRepresentation';
|
|
3
|
-
import type { buildNetworkSnapshot } from './buildNetworkSnapshot';
|
|
4
3
|
import type { CreateContentDocumentAndVersionConfig } from './AdapterConfig';
|
|
5
|
-
export type DraftAwareCreateContentDocumentAndVersionAdapter = (config: CreateContentDocumentAndVersionConfig,
|
|
4
|
+
export type DraftAwareCreateContentDocumentAndVersionAdapter = (config: CreateContentDocumentAndVersionConfig, requestBuilder: (config: CreateContentDocumentAndVersionConfig) => ResourceRequest, requestContext?: AdapterRequestContext) => Promise<Snapshot<ContentDocumentCompositeRepresentation>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Snapshot } from '@luvio/engine';
|
|
1
|
+
import type { ResourceRequest, Snapshot } from '@luvio/engine';
|
|
2
2
|
import type { CreateRecordConfig } from '../../generated/adapters/createRecord';
|
|
3
3
|
import type { RecordRepresentation } from '../../generated/types/RecordRepresentation';
|
|
4
|
-
|
|
5
|
-
export type DraftAwareCreateRecordAdapter = (config: CreateRecordConfig, networkSnapshotBuilder: typeof buildNetworkSnapshot) => Promise<Snapshot<RecordRepresentation>>;
|
|
4
|
+
export type DraftAwareCreateRecordAdapter = (config: CreateRecordConfig, requestBuilder: (config: CreateRecordConfig) => ResourceRequest) => Promise<Snapshot<RecordRepresentation>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import type { DeleteRecordConfig } from '../../generated/adapters/deleteRecord';
|
|
3
|
+
export type DraftAwareDeleteRecordAdapter = (config: DeleteRecordConfig, requestBuilder: (config: DeleteRecordConfig) => ResourceRequest) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AvailableSnapshot, AdapterRequestContext
|
|
2
|
-
import type {
|
|
1
|
+
import type { AvailableSnapshot, AdapterRequestContext } from '@luvio/engine';
|
|
2
|
+
import type { GraphqlConfig } from '../../generated/adapters/graphql';
|
|
3
3
|
import type { GraphQLRepresentation } from '../../generated/types/GraphQLRepresentation';
|
|
4
|
-
export type DraftAwareGraphQLAdapter = (config: GraphqlConfig,
|
|
4
|
+
export type DraftAwareGraphQLAdapter = (config: GraphqlConfig, requestContext?: AdapterRequestContext) => Promise<AvailableSnapshot<GraphQLRepresentation>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { AvailableSnapshot, AdapterRequestContext
|
|
1
|
+
import type { AvailableSnapshot, AdapterRequestContext } from '@luvio/engine';
|
|
2
2
|
import type { GraphqlBatchConfig } from '../../wire/graphqlBatch';
|
|
3
3
|
import type { GraphQLBatchRepresentation } from '../../wire/graphqlBatch/postGraphqlBatch';
|
|
4
|
-
|
|
5
|
-
export type EnvironmentAwareGraphQLBatchAdapter = (config: GraphqlBatchConfig, buildCachedSnapshotCachePolicy: (context: BatchBuildSnapshotContext, storeLookup: StoreLookup<GraphQLBatchRepresentation, unknown>) => Snapshot<GraphQLBatchRepresentation, any>, buildNetworkSnapshotCachePolicy: (context: BatchBuildSnapshotContext, coercedAdapterRequestContext: CoercedAdapterRequestContext) => Promise<Snapshot<GraphQLBatchRepresentation, any>>, requestContext?: AdapterRequestContext) => Promise<AvailableSnapshot<GraphQLBatchRepresentation>>;
|
|
4
|
+
export type EnvironmentAwareGraphQLBatchAdapter = (config: GraphqlBatchConfig, requestContext?: AdapterRequestContext) => Promise<AvailableSnapshot<GraphQLBatchRepresentation>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Luvio, Snapshot } from '@luvio/engine';
|
|
2
2
|
import type { QuickActionExecutionRepresentation } from '../../generated/types/QuickActionExecutionRepresentation';
|
|
3
|
-
export declare const factory: (luvio: Luvio) => (
|
|
3
|
+
export declare const factory: (luvio: Luvio) => (untrustedConfig: unknown) => Promise<Snapshot<QuickActionExecutionRepresentation>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Luvio, Snapshot } from '@luvio/engine';
|
|
2
2
|
import type { QuickActionExecutionRepresentation } from '../../generated/types/QuickActionExecutionRepresentation';
|
|
3
|
-
export declare const factory: (luvio: Luvio) => (
|
|
3
|
+
export declare const factory: (luvio: Luvio) => (untrustedConfig: unknown) => Promise<Snapshot<QuickActionExecutionRepresentation>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Snapshot } from '@luvio/engine';
|
|
1
|
+
import type { ResourceRequest, Snapshot } from '@luvio/engine';
|
|
2
2
|
import type { UpdateRecordConfig } from '../../generated/adapters/updateRecord';
|
|
3
3
|
import type { RecordRepresentation } from '../../generated/types/RecordRepresentation';
|
|
4
|
-
|
|
5
|
-
export type DraftAwareUpdateRecordAdapter = (config: UpdateRecordConfig, networkSnapshotBuilder: typeof buildNetworkSnapshot) => Promise<Snapshot<RecordRepresentation>>;
|
|
4
|
+
export type DraftAwareUpdateRecordAdapter = (config: UpdateRecordConfig, requestBuilder: (config: UpdateRecordConfig) => ResourceRequest) => Promise<Snapshot<RecordRepresentation>>;
|