@salesforce/lds-adapters-uiapi 1.136.2 → 1.136.3
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/__mocks__/force/luvioGraphql.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/graphql.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/category.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/deprecated.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/directive-util.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/fieldCategory.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/generic.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/include.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/skip.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/directives/specifiedBy.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/graphql/types/Base64Value.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/BooleanAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/BooleanValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/ChildRelationship.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/CurrencyAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/CurrencyValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DateAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DateFunctionAggregation.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DateOnlyAggregation.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DateTimeAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DateTimeValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DateValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DependentField.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DoubleAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/DoubleValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/EmailAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/EmailValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/EncryptedStringValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/Field.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/FieldValue.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/graphql/types/FilteredLookupInfo.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/IDAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/IDValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/IntAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/IntValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/JSONValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/LatitudeAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/LatitudeValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/ListColumn.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/ListOrder.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/LongAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/LongTextAreaValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/LongValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/LongitudeAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/LongitudeValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/MultiPicklistValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/ObjectInfo.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PageInfo.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PercentAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PercentValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PhoneNumberAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PhoneNumberValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PicklistAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PicklistValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/PolymorphicParentRelationship.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/graphql/types/Query.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/RateLimit.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/Record.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/graphql/types/RecordConnection.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/RecordEdge.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/RecordQuery.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/RecordRepresentation.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/RecordTypeInfo.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/ReferenceToInfo.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/RelatedListInfo.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/RichTextAreaValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/StringAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/StringValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/TextAreaAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/TextAreaValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/ThemeInfo.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/TimeAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/TimeValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/UIAPI.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/UrlAggregate.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/UrlValue.d.ts +7 -6
- package/dist/es/es2018/types/src/generated/graphql/types/type-util.d.ts +10 -11
- package/dist/es/es2018/types/src/generated/resources/postGraphql.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/GraphQLRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/graphql-artifacts/types/RecordRepresentation/getFieldData.d.ts +2 -1
- package/dist/es/es2018/types/src/graphql-artifacts/types/RecordRepresentation/selectType.d.ts +2 -1
- package/dist/es/es2018/uiapi-records-service.js +1 -42
- package/package.json +1 -1
- package/sfdc/graphqlAdapters.js +2 -43
- package/sfdc/index.js +1 -1
- package/sfdc/uiapi-static-functions.js +1 -1
|
@@ -2,8 +2,9 @@ import { Interface as RecordQuery_Interface } from './RecordQuery';
|
|
|
2
2
|
import { Interface as ObjectInfo_Interface } from './ObjectInfo';
|
|
3
3
|
import { Interface as RelatedListInfo_Interface } from './RelatedListInfo';
|
|
4
4
|
import { Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Reader as $64$luvio_engine_Reader, SelectionPropertyKey as $64$luvio_engine_SelectionPropertyKey, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
5
|
-
import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState as type$45$util_GraphQLIngestState,
|
|
5
|
+
import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState as type$45$util_GraphQLIngestState, GraphQLFragmentMap as type$45$util_GraphQLFragmentMap, GraphQLLuvioState as type$45$util_GraphQLLuvioState } from './type-util';
|
|
6
6
|
import { FieldNode as $64$luvio_graphql$45$parser_FieldNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode } from '@luvio/graphql-parser';
|
|
7
|
+
import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables } from '@luvio/graphql';
|
|
7
8
|
export declare const name = "UIAPI";
|
|
8
9
|
export declare const VERSION = "e958f3329b5c6b7fa8d54aad8db926d5";
|
|
9
10
|
export interface Interface {
|
|
@@ -21,11 +22,11 @@ export declare function mergeData(existingData: type$45$util_NormalizedGraphQL,
|
|
|
21
22
|
export declare function ingest(astNode: $64$luvio_graphql$45$parser_FieldNode, state: type$45$util_GraphQLIngestState<PartialInterface>): {
|
|
22
23
|
__ref: string;
|
|
23
24
|
};
|
|
24
|
-
export declare function getFieldData(source: type$45$util_NormalizedGraphQL, sel: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
25
|
-
export declare function selectType(typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables:
|
|
26
|
-
export declare function buildSelectionForField(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
27
|
-
export declare function buildSelectionForNode(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables:
|
|
28
|
-
export declare function select(field: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
25
|
+
export declare function getFieldData(source: type$45$util_NormalizedGraphQL, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables): any;
|
|
26
|
+
export declare function selectType(typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): any;
|
|
27
|
+
export declare function buildSelectionForField(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): Record<string, any> | undefined;
|
|
28
|
+
export declare function buildSelectionForNode(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): Record<string, any> | undefined;
|
|
29
|
+
export declare function select(field: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap): (source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentRecordId: string) => PartialInterface | undefined;
|
|
29
30
|
export declare function getMinimumSelections(): $64$luvio_graphql$45$parser_SelectionNode[];
|
|
30
31
|
export declare function getTypeCacheKeys(astNode: $64$luvio_graphql$45$parser_FieldNode, state: type$45$util_GraphQLLuvioState<PartialInterface>): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
31
32
|
export declare function getFieldType(field: $64$luvio_graphql$45$parser_FieldNode): {
|
|
@@ -2,8 +2,9 @@ import { Interface as LongValue_Interface } from './LongValue';
|
|
|
2
2
|
import { Interface as IntValue_Interface } from './IntValue';
|
|
3
3
|
import { Interface as UrlValue_Interface } from './UrlValue';
|
|
4
4
|
import { Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Reader as $64$luvio_engine_Reader, SelectionPropertyKey as $64$luvio_engine_SelectionPropertyKey, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
5
|
-
import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState as type$45$util_GraphQLIngestState,
|
|
5
|
+
import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState as type$45$util_GraphQLIngestState, GraphQLFragmentMap as type$45$util_GraphQLFragmentMap, GraphQLLuvioState as type$45$util_GraphQLLuvioState } from './type-util';
|
|
6
6
|
import { FieldNode as $64$luvio_graphql$45$parser_FieldNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode } from '@luvio/graphql-parser';
|
|
7
|
+
import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables } from '@luvio/graphql';
|
|
7
8
|
export declare const name = "UrlAggregate";
|
|
8
9
|
export declare const VERSION = "a20a03966540b9046db5f606e20e3c8a";
|
|
9
10
|
export interface Interface {
|
|
@@ -25,11 +26,11 @@ export declare function mergeData(existingData: type$45$util_NormalizedGraphQL,
|
|
|
25
26
|
export declare function ingest(astNode: $64$luvio_graphql$45$parser_FieldNode, state: type$45$util_GraphQLIngestState<PartialInterface>): {
|
|
26
27
|
__ref: string;
|
|
27
28
|
};
|
|
28
|
-
export declare function getFieldData(source: type$45$util_NormalizedGraphQL, sel: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
29
|
-
export declare function selectType(typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables:
|
|
30
|
-
export declare function buildSelectionForField(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
31
|
-
export declare function buildSelectionForNode(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables:
|
|
32
|
-
export declare function select(field: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
29
|
+
export declare function getFieldData(source: type$45$util_NormalizedGraphQL, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables): any;
|
|
30
|
+
export declare function selectType(typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): any;
|
|
31
|
+
export declare function buildSelectionForField(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): Record<string, any> | undefined;
|
|
32
|
+
export declare function buildSelectionForNode(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): Record<string, any> | undefined;
|
|
33
|
+
export declare function select(field: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap): (source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentRecordId: string) => PartialInterface | undefined;
|
|
33
34
|
export declare function getMinimumSelections(): $64$luvio_graphql$45$parser_SelectionNode[];
|
|
34
35
|
export declare function getTypeCacheKeys(astNode: $64$luvio_graphql$45$parser_FieldNode, state: type$45$util_GraphQLLuvioState<PartialInterface>): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
35
36
|
export declare function getFieldType(field: $64$luvio_graphql$45$parser_FieldNode): {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Reader as $64$luvio_engine_Reader, SelectionPropertyKey as $64$luvio_engine_SelectionPropertyKey, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState as type$45$util_GraphQLIngestState,
|
|
2
|
+
import { NormalizedGraphQL as type$45$util_NormalizedGraphQL, GraphQLIngestState as type$45$util_GraphQLIngestState, GraphQLFragmentMap as type$45$util_GraphQLFragmentMap, GraphQLLuvioState as type$45$util_GraphQLLuvioState } from './type-util';
|
|
3
3
|
import { FieldNode as $64$luvio_graphql$45$parser_FieldNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode } from '@luvio/graphql-parser';
|
|
4
|
+
import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables } from '@luvio/graphql';
|
|
4
5
|
export declare const name = "UrlValue";
|
|
5
6
|
export declare const VERSION = "c8376c7f60ac5cfe1c2c1521cd4664fa";
|
|
6
7
|
export interface Interface {
|
|
@@ -17,11 +18,11 @@ export declare function mergeData(existingData: type$45$util_NormalizedGraphQL,
|
|
|
17
18
|
export declare function ingest(astNode: $64$luvio_graphql$45$parser_FieldNode, state: type$45$util_GraphQLIngestState<PartialInterface>): {
|
|
18
19
|
__ref: string;
|
|
19
20
|
};
|
|
20
|
-
export declare function getFieldData(source: type$45$util_NormalizedGraphQL, sel: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
21
|
-
export declare function selectType(typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables:
|
|
22
|
-
export declare function buildSelectionForField(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
23
|
-
export declare function buildSelectionForNode(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables:
|
|
24
|
-
export declare function select(field: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
21
|
+
export declare function getFieldData(source: type$45$util_NormalizedGraphQL, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables): any;
|
|
22
|
+
export declare function selectType(typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): any;
|
|
23
|
+
export declare function buildSelectionForField(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): Record<string, any> | undefined;
|
|
24
|
+
export declare function buildSelectionForNode(source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap, parentRecordId: string): Record<string, any> | undefined;
|
|
25
|
+
export declare function select(field: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: type$45$util_GraphQLFragmentMap): (source: type$45$util_NormalizedGraphQL, reader: $64$luvio_engine_Reader<any>, parentRecordId: string) => PartialInterface | undefined;
|
|
25
26
|
export declare function getMinimumSelections(): $64$luvio_graphql$45$parser_SelectionNode[];
|
|
26
27
|
export declare function getTypeCacheKeys(astNode: $64$luvio_graphql$45$parser_FieldNode, state: type$45$util_GraphQLLuvioState<PartialInterface>): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
27
28
|
export declare function getFieldType(field: $64$luvio_graphql$45$parser_FieldNode): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoreLink as $64$luvio_engine_StoreLink, IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, SelectionPropertyKey as $64$luvio_engine_SelectionPropertyKey, Reader as $64$luvio_engine_Reader } from '@luvio/engine';
|
|
2
|
-
import { FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FieldNode as $64$luvio_graphql$45$parser_FieldNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode,
|
|
2
|
+
import { FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FieldNode as $64$luvio_graphql$45$parser_FieldNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, DocumentNode as $64$luvio_graphql$45$parser_DocumentNode, SelectionSetNode as $64$luvio_graphql$45$parser_SelectionSetNode, ArgumentNode as $64$luvio_graphql$45$parser_ArgumentNode, VariableDefinitionNode as $64$luvio_graphql$45$parser_VariableDefinitionNode } from '@luvio/graphql-parser';
|
|
3
|
+
import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables } from '@luvio/graphql';
|
|
3
4
|
import { PaginationMetadata as pagination_cursor_PaginationMetadata, PaginationParams as pagination_cursor_PaginationParams, PageMetadata as pagination_cursor_PageMetadata } from '../../pagination/cursor';
|
|
4
|
-
export type GraphQLVariables = Record<string, any>;
|
|
5
5
|
export type NormalizedGraphQL<D = undefined> = {
|
|
6
6
|
data: Record<string, any>;
|
|
7
7
|
__link?: $64$luvio_engine_StoreLink;
|
|
@@ -16,7 +16,7 @@ type IsFragmentApplicableType = (fragment: $64$luvio_graphql$45$parser_FragmentD
|
|
|
16
16
|
export interface GraphQLState<D = unknown> {
|
|
17
17
|
data: D;
|
|
18
18
|
path: $64$luvio_engine_IngestPath;
|
|
19
|
-
variables:
|
|
19
|
+
variables: $64$luvio_graphql_GraphQLVariables;
|
|
20
20
|
fragments: GraphQLFragmentMap;
|
|
21
21
|
}
|
|
22
22
|
export interface GraphQLLuvioState<D> extends GraphQLState<D> {
|
|
@@ -75,28 +75,27 @@ export declare function ingestCursorConnectionType<StateType extends GraphQLInge
|
|
|
75
75
|
export declare function ingestNonCursorConnectionType<AstNodeType extends $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, StateType extends GraphQLIngestState<Record<string, any>>>(astNode: AstNodeType, state: StateType, specifics: NonCursorBasedIngestParams<AstNodeType, StateType>): {
|
|
76
76
|
__ref: string;
|
|
77
77
|
};
|
|
78
|
-
export declare function serializeFieldArguments(argumentNodes: Readonly<$64$luvio_graphql$45$parser_ArgumentNode[]>, variables: GraphQLVariables): string;
|
|
79
78
|
export declare const TTL = 900000;
|
|
80
79
|
export declare function applyMinimumFieldsToQuery(query: $64$luvio_graphql$45$parser_DocumentNode): $64$luvio_graphql$45$parser_DocumentNode;
|
|
81
80
|
export declare function injectSelectionSet(selectionSetNode: $64$luvio_graphql$45$parser_SelectionSetNode | undefined, queryTransformHelper: QueryTransformHelper | undefined, fragmentMap: GraphQLFragmentMap): void;
|
|
82
81
|
export declare function getRequestedField(responseDataFieldName: string, requestedFields: $64$luvio_graphql$45$parser_FieldNode[]): $64$luvio_graphql$45$parser_FieldNode | undefined;
|
|
83
82
|
export declare function getPageMetadata(paginationMetadata: pagination_cursor_PaginationMetadata | undefined, paginationParams: pagination_cursor_PaginationParams): pagination_cursor_PageMetadata;
|
|
84
83
|
export declare function isCursorConnectionType(fieldType: GraphQLTypeDetails | undefined): boolean;
|
|
85
|
-
export declare function getSerializedKeyForField(field: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
84
|
+
export declare function getSerializedKeyForField(field: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fieldType: GraphQLTypeDetails | undefined): string;
|
|
86
85
|
export declare function getRequestedFieldsForType(typename: string, selectionSet: $64$luvio_graphql$45$parser_SelectionSetNode, namedFragmentsMap: GraphQLFragmentMap, isFragmentApplicable: IsFragmentApplicableType): $64$luvio_graphql$45$parser_FieldNode[];
|
|
87
86
|
export declare function getQueryTransformerForType(typename: string, fragmentMap: GraphQLFragmentMap): QueryTransformHelper | undefined;
|
|
88
87
|
export declare function sharedGetFragmentType(fragment: $64$luvio_graphql$45$parser_FragmentSpreadNode | $64$luvio_graphql$45$parser_InlineFragmentNode, fragmentMap: GraphQLFragmentMap): string | undefined;
|
|
89
88
|
export declare function getSelectionSetFromFragment(fragment: $64$luvio_graphql$45$parser_FragmentSpreadNode | $64$luvio_graphql$45$parser_InlineFragmentNode, fragmentMap: GraphQLFragmentMap): $64$luvio_graphql$45$parser_SelectionSetNode | undefined;
|
|
90
89
|
export declare function createFragmentMap(document: $64$luvio_graphql$45$parser_DocumentNode): GraphQLFragmentMap;
|
|
91
90
|
export declare function getCursorConnectionMinimumSelections(): $64$luvio_graphql$45$parser_FieldNode[];
|
|
92
|
-
export declare function evaluateArgumentValue(argumentNode: $64$luvio_graphql$45$parser_ArgumentNode | undefined, expectedKind: 'IntValue' | 'FloatValue' | 'StringValue' | 'BooleanValue' | 'EnumValue', variables:
|
|
91
|
+
export declare function evaluateArgumentValue(argumentNode: $64$luvio_graphql$45$parser_ArgumentNode | undefined, expectedKind: 'IntValue' | 'FloatValue' | 'StringValue' | 'BooleanValue' | 'EnumValue', variables: $64$luvio_graphql_GraphQLVariables): any | undefined;
|
|
93
92
|
export declare function getArrayOffsetForPage(state: GraphQLIngestState<any>, node: $64$luvio_graphql$45$parser_FieldNode, key: string | $64$luvio_engine_NormalizedKeyMetadata): number;
|
|
94
93
|
export declare function isFragmentApplicable(fragmentNode: $64$luvio_graphql$45$parser_FragmentDefinitionNode | $64$luvio_graphql$45$parser_InlineFragmentNode, implementedInterfaces: string[], graphqlTypeName: string, typename?: string): boolean;
|
|
95
|
-
export declare function buildSelectionForNode<D = undefined>(source: NormalizedGraphQL<D>, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables:
|
|
96
|
-
export declare function buildSelectionForField<SourceType>(source: SourceType, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables:
|
|
94
|
+
export declare function buildSelectionForNode<D = undefined>(source: NormalizedGraphQL<D>, reader: $64$luvio_engine_Reader<any>, parentNode: $64$luvio_graphql$45$parser_FieldNode | $64$luvio_graphql$45$parser_OperationDefinitionNode, selectionNode: $64$luvio_graphql$45$parser_SelectionNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: GraphQLFragmentMap, isFragmentApplicable: IsFragmentApplicableType, buildSelectionForField: (source: NormalizedGraphQL<D>, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: GraphQLFragmentMap, parentRecordId: string) => unknown, parentRecordId: string): Record<string, any> | undefined;
|
|
95
|
+
export declare function buildSelectionForField<SourceType>(source: SourceType, reader: $64$luvio_engine_Reader<any>, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: GraphQLFragmentMap, isCursorConnectionType: boolean, getFieldData: (source: SourceType, sel: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables) => any, getFieldType: (field: $64$luvio_graphql$45$parser_FieldNode) => {
|
|
97
96
|
isArray: boolean;
|
|
98
97
|
typename: string;
|
|
99
|
-
} | undefined, selectType: (typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables:
|
|
100
|
-
export declare function selectTypeLink<T extends Function, NormalizedGraphQLType extends NormalizedGraphQL<unknown>>(sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables:
|
|
101
|
-
export declare function augmentDefaultVariableValues(variableDefinitions: readonly $64$luvio_graphql$45$parser_VariableDefinitionNode[], variables:
|
|
98
|
+
} | undefined, selectType: (typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables: $64$luvio_graphql_GraphQLVariables, fragments: GraphQLFragmentMap, parentRecordId: string) => void, parentRecordId: string): Record<string, any> | undefined;
|
|
99
|
+
export declare function selectTypeLink<T extends Function, NormalizedGraphQLType extends NormalizedGraphQL<unknown>>(sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables: $64$luvio_graphql_GraphQLVariables, fragments: GraphQLFragmentMap, version: string | undefined, selectFn: (field: $64$luvio_graphql$45$parser_FieldNode, variables: $64$luvio_graphql_GraphQLVariables, fragments: GraphQLFragmentMap) => T, isCursorConnection: boolean): void;
|
|
100
|
+
export declare function augmentDefaultVariableValues(variableDefinitions: readonly $64$luvio_graphql$45$parser_VariableDefinitionNode[], variables: $64$luvio_graphql_GraphQLVariables): void;
|
|
102
101
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentNode as $64$luvio_graphql$45$parser_DocumentNode } from '@luvio/graphql-parser';
|
|
2
|
-
import { GraphQLVariables as
|
|
2
|
+
import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables } from '@luvio/graphql';
|
|
3
3
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
4
4
|
import { GraphqlConfig as adapters_graphql_GraphqlConfig } from '../adapters/graphql';
|
|
5
5
|
import { GraphQLRepresentation as types_GraphQLRepresentation_GraphQLRepresentation } from '../types/GraphQLRepresentation';
|
|
@@ -7,7 +7,7 @@ export interface ResourceRequestConfig {
|
|
|
7
7
|
body: {
|
|
8
8
|
operationName?: string;
|
|
9
9
|
query: $64$luvio_graphql$45$parser_DocumentNode;
|
|
10
|
-
variables?:
|
|
10
|
+
variables?: $64$luvio_graphql_GraphQLVariables;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export declare function select(luvio: $64$luvio_engine_Luvio, config: adapters_graphql_GraphqlConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, ReaderFragment as $64$luvio_engine_ReaderFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
import { DocumentNode as $64$luvio_graphql$45$parser_DocumentNode } from '@luvio/graphql-parser';
|
|
3
|
-
import { GraphQLVariables as
|
|
3
|
+
import { GraphQLVariables as $64$luvio_graphql_GraphQLVariables } from '@luvio/graphql';
|
|
4
4
|
import { PartialInterface as graphql_types_Query_PartialInterface } from '../graphql/types/Query';
|
|
5
5
|
export declare const TTL = 900000;
|
|
6
6
|
export declare const VERSION = "b440235e7e724631f92002fe50e3e096";
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: GraphQLRepresentation): string;
|
|
9
9
|
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: GraphQLRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
-
export declare function select(luvio: $64$luvio_engine_Luvio, query: $64$luvio_graphql$45$parser_DocumentNode, variables:
|
|
11
|
-
export declare const ingest: (query: $64$luvio_graphql$45$parser_DocumentNode, variables:
|
|
12
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, query: $64$luvio_graphql$45$parser_DocumentNode, variables:
|
|
10
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, query: $64$luvio_graphql$45$parser_DocumentNode, variables: $64$luvio_graphql_GraphQLVariables): $64$luvio_engine_ReaderFragment;
|
|
11
|
+
export declare const ingest: (query: $64$luvio_graphql$45$parser_DocumentNode, variables: $64$luvio_graphql_GraphQLVariables) => $64$luvio_engine_ResourceIngest;
|
|
12
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, query: $64$luvio_graphql$45$parser_DocumentNode, variables: $64$luvio_graphql_GraphQLVariables, data: GraphQLRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
13
|
export type GraphQLRepresentation = GraphQLRepresentationData | GraphQLRepresentationErrors;
|
|
14
14
|
export interface GraphQLRepresentationData {
|
|
15
15
|
data: graphql_types_Query_PartialInterface;
|
package/dist/es/es2018/types/src/graphql-artifacts/types/RecordRepresentation/getFieldData.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FieldNode } from '@luvio/graphql-parser';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NormalizedGraphQL } from '../../../generated/graphql/types/type-util';
|
|
3
3
|
import type { RecordRepresentationNormalized } from './../../../generated/types/RecordRepresentation';
|
|
4
|
+
import type { GraphQLVariables } from '@luvio/graphql';
|
|
4
5
|
export declare function getFieldData(source: NormalizedGraphQL<RecordRepresentationNormalized>, sel: FieldNode, variables: GraphQLVariables): any;
|
package/dist/es/es2018/types/src/graphql-artifacts/types/RecordRepresentation/selectType.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FieldNode } from '@luvio/graphql-parser';
|
|
2
|
+
import type { GraphQLVariables } from '@luvio/graphql';
|
|
2
3
|
import type { Reader, SelectionPropertyKey } from '@luvio/engine';
|
|
3
|
-
import type {
|
|
4
|
+
import type { GraphQLFragmentMap } from '../../../generated/graphql/types/type-util';
|
|
4
5
|
import { selectType as generatedSelectType } from '../../../generated/graphql/types/RecordRepresentation';
|
|
5
6
|
export declare function selectType(typename: string, sel: FieldNode, fieldData: any, reader: Reader<any>, key: SelectionPropertyKey, sink: any, variables: GraphQLVariables, fragments: GraphQLFragmentMap, parentRecordId: string): typeof generatedSelectType;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { register } from '@salesforce/lds-default-luvio';
|
|
8
8
|
import { serializeStructuredKey, StoreKeyMap, StoreKeySet, deepFreeze, coerceAdapterRequestContext, Wildcard } from '@luvio/engine';
|
|
9
9
|
import { print, visit, parse as parse$1 } from '@luvio/graphql-parser';
|
|
10
|
+
import { serializeFieldArguments } from '@luvio/graphql';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Defines configuration for the module with a default value which can be overridden by the runtime environment.
|
|
@@ -43030,48 +43031,6 @@ function ingestTypeWithStrategy(astNode, state, isCursorConnectionType, { key, i
|
|
|
43030
43031
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
43031
43032
|
return createLink(key);
|
|
43032
43033
|
}
|
|
43033
|
-
function serializeFieldArguments(argumentNodes, variables) {
|
|
43034
|
-
const mutableArgumentNodes = Object.assign([], argumentNodes);
|
|
43035
|
-
return `args__(${mutableArgumentNodes.sort((a, b) => {
|
|
43036
|
-
const aName = a.name.value.toUpperCase();
|
|
43037
|
-
const bName = b.name.value.toUpperCase();
|
|
43038
|
-
return aName < bName ? -1 : (aName > bName) ? 1 : 0;
|
|
43039
|
-
}).map(node => serializeArgNode(node, variables)).join("::")})`;
|
|
43040
|
-
}
|
|
43041
|
-
function serializeArgNode(argumentNode, variables) {
|
|
43042
|
-
const argName = argumentNode.name.value;
|
|
43043
|
-
return `${argName}:${serializeValueNode(argumentNode.value, variables)}`;
|
|
43044
|
-
}
|
|
43045
|
-
function serializeValueNode(valueNode, variables) {
|
|
43046
|
-
switch (valueNode.kind) {
|
|
43047
|
-
case ("BooleanValue"):
|
|
43048
|
-
return valueNode.value + '';
|
|
43049
|
-
case ("IntValue"):
|
|
43050
|
-
case ("FloatValue"):
|
|
43051
|
-
case ("EnumValue"):
|
|
43052
|
-
case ("StringValue"):
|
|
43053
|
-
return valueNode.value;
|
|
43054
|
-
case ("ListValue"):
|
|
43055
|
-
const mutableValueNodeList = Object.assign([], valueNode.values);
|
|
43056
|
-
return mutableValueNodeList.sort((a, b) => {
|
|
43057
|
-
const aVal = serializeValueNode(a, variables).toUpperCase();
|
|
43058
|
-
const bVal = serializeValueNode(b, variables).toUpperCase();
|
|
43059
|
-
return aVal < bVal ? -1 : (aVal > bVal) ? 1 : 0;
|
|
43060
|
-
}).map((val, i) => serializeValueNode(val, variables) + `[${i}]`).join(',');
|
|
43061
|
-
case ("Variable"):
|
|
43062
|
-
const variableValue = variables[valueNode.name.value];
|
|
43063
|
-
return typeof variableValue === "string" ? variableValue : JSON.stringify(variableValue);
|
|
43064
|
-
case ("NullValue"):
|
|
43065
|
-
return "null";
|
|
43066
|
-
case ("ObjectValue"):
|
|
43067
|
-
const mutableFieldNodeList = Object.assign([], valueNode.fields);
|
|
43068
|
-
return mutableFieldNodeList.sort((a, b) => {
|
|
43069
|
-
const aName = a.name.value.toUpperCase();
|
|
43070
|
-
const bName = b.name.value.toUpperCase();
|
|
43071
|
-
return aName < bName ? -1 : (aName > bName) ? 1 : 0;
|
|
43072
|
-
}).map(field => field.name.value + ":" + serializeValueNode(field.value, variables)).join(',');
|
|
43073
|
-
}
|
|
43074
|
-
}
|
|
43075
43034
|
const TTL$6 = 900000;
|
|
43076
43035
|
function applyMinimumFieldsToQuery(query) {
|
|
43077
43036
|
const fragmentMap = createFragmentMap(query);
|
package/package.json
CHANGED
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -17,6 +17,7 @@ import { print, visit, parse, astResolver } from 'force/ldsGraphqlParser';
|
|
|
17
17
|
import { createInstrumentedAdapter, createLDSAdapter, createGraphQLWireAdapterConstructor, createGraphQLImperativeAdapter } from 'force/ldsBindings';
|
|
18
18
|
export { refresh as refreshGraphQL } from 'force/ldsBindings';
|
|
19
19
|
import { serializeStructuredKey, StoreKeyMap, deepFreeze, StoreKeySet } from 'force/luvioEngine';
|
|
20
|
+
import { serializeFieldArguments } from 'force/luvioGraphql';
|
|
20
21
|
import { createIngestRecordWithFields } from 'force/ldsAdaptersUiapi';
|
|
21
22
|
|
|
22
23
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
@@ -12221,48 +12222,6 @@ function ingestTypeWithStrategy(astNode, state, isCursorConnectionType, { key, i
|
|
|
12221
12222
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
12222
12223
|
return createLink(key);
|
|
12223
12224
|
}
|
|
12224
|
-
function serializeFieldArguments(argumentNodes, variables) {
|
|
12225
|
-
const mutableArgumentNodes = Object.assign([], argumentNodes);
|
|
12226
|
-
return `args__(${mutableArgumentNodes.sort((a, b) => {
|
|
12227
|
-
const aName = a.name.value.toUpperCase();
|
|
12228
|
-
const bName = b.name.value.toUpperCase();
|
|
12229
|
-
return aName < bName ? -1 : (aName > bName) ? 1 : 0;
|
|
12230
|
-
}).map(node => serializeArgNode(node, variables)).join("::")})`;
|
|
12231
|
-
}
|
|
12232
|
-
function serializeArgNode(argumentNode, variables) {
|
|
12233
|
-
const argName = argumentNode.name.value;
|
|
12234
|
-
return `${argName}:${serializeValueNode(argumentNode.value, variables)}`;
|
|
12235
|
-
}
|
|
12236
|
-
function serializeValueNode(valueNode, variables) {
|
|
12237
|
-
switch (valueNode.kind) {
|
|
12238
|
-
case ("BooleanValue"):
|
|
12239
|
-
return valueNode.value + '';
|
|
12240
|
-
case ("IntValue"):
|
|
12241
|
-
case ("FloatValue"):
|
|
12242
|
-
case ("EnumValue"):
|
|
12243
|
-
case ("StringValue"):
|
|
12244
|
-
return valueNode.value;
|
|
12245
|
-
case ("ListValue"):
|
|
12246
|
-
const mutableValueNodeList = Object.assign([], valueNode.values);
|
|
12247
|
-
return mutableValueNodeList.sort((a, b) => {
|
|
12248
|
-
const aVal = serializeValueNode(a, variables).toUpperCase();
|
|
12249
|
-
const bVal = serializeValueNode(b, variables).toUpperCase();
|
|
12250
|
-
return aVal < bVal ? -1 : (aVal > bVal) ? 1 : 0;
|
|
12251
|
-
}).map((val, i) => serializeValueNode(val, variables) + `[${i}]`).join(',');
|
|
12252
|
-
case ("Variable"):
|
|
12253
|
-
const variableValue = variables[valueNode.name.value];
|
|
12254
|
-
return typeof variableValue === "string" ? variableValue : JSON.stringify(variableValue);
|
|
12255
|
-
case ("NullValue"):
|
|
12256
|
-
return "null";
|
|
12257
|
-
case ("ObjectValue"):
|
|
12258
|
-
const mutableFieldNodeList = Object.assign([], valueNode.fields);
|
|
12259
|
-
return mutableFieldNodeList.sort((a, b) => {
|
|
12260
|
-
const aName = a.name.value.toUpperCase();
|
|
12261
|
-
const bName = b.name.value.toUpperCase();
|
|
12262
|
-
return aName < bName ? -1 : (aName > bName) ? 1 : 0;
|
|
12263
|
-
}).map(field => field.name.value + ":" + serializeValueNode(field.value, variables)).join(',');
|
|
12264
|
-
}
|
|
12265
|
-
}
|
|
12266
12225
|
const TTL$1 = 900000;
|
|
12267
12226
|
function applyMinimumFieldsToQuery(query) {
|
|
12268
12227
|
const fragmentMap = createFragmentMap(query);
|
|
@@ -14501,4 +14460,4 @@ register({
|
|
|
14501
14460
|
});
|
|
14502
14461
|
|
|
14503
14462
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
14504
|
-
// version: 1.136.
|
|
14463
|
+
// version: 1.136.3-925803f5f
|
package/sfdc/index.js
CHANGED
|
@@ -35518,4 +35518,4 @@ withDefaultLuvio((luvio) => {
|
|
|
35518
35518
|
});
|
|
35519
35519
|
|
|
35520
35520
|
export { InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoRepresentationType, RepresentationType$N as RecordRepresentationRepresentationType, TTL$v as RecordRepresentationTTL, RepresentationType$N as RecordRepresentationType, VERSION$14 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createRecord, deleteRecord, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActions_imperative, factory$e as getRecordAdapterFactory, getRecordAvatars, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$P as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$B as ingestObjectInfo, ingest$x as ingestQuickActionExecutionRepresentation, ingest$G as ingestRecord, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$x as keyBuilderFromTypeRecordRepresentation, keyBuilder$1F as keyBuilderObjectInfo, keyBuilder$1z as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1Q as keyBuilderRecord, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
35521
|
-
// version: 1.136.
|
|
35521
|
+
// version: 1.136.3-925803f5f
|