@salesforce/lds-adapters-commerce-extensions 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/commerce-extensions.js +1978 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createMapping.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteMapping.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/adapters/getExtensions.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/getMapping.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getMappings.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getProvider.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getProviders.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/updateMapping.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +9 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/deleteCommerceExtensionMappingsByMappingId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/deleteCommerceExtensionProvidersByProviderId.d.ts +11 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionExtensions.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappings.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappingsByMappingId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionProviders.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionProvidersByProviderId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/patchCommerceExtensionProvidersByProviderId.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/postCommerceExtensionMappings.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postCommerceExtensionProviders.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/putCommerceExtensionMappingsByMappingId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/ApexClassInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ApexClassOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EffectiveMappingRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ExtensionOutputCollectionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/ExtensionOutputRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/MappingInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/MappingOutputCollectionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/MappingOutputRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/ProviderInputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/ProviderOutputCollectionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/ProviderOutputRepresentation.d.ts +67 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +75 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +2147 -0
- package/src/raml/api.raml +351 -0
- package/src/raml/luvio.raml +71 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectCreate: {
|
|
7
|
+
(o: object | null): any;
|
|
8
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
9
|
+
};
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
11
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
12
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
13
|
+
export interface AdapterValidationConfig {
|
|
14
|
+
displayName: string;
|
|
15
|
+
parameters: {
|
|
16
|
+
required: string[];
|
|
17
|
+
optional: string[];
|
|
18
|
+
unsupported?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Validates an adapter config is well-formed.
|
|
23
|
+
* @param config The config to validate.
|
|
24
|
+
* @param adapter The adapter validation configuration.
|
|
25
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
26
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
29
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
30
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
31
|
+
[key in keyof Base]?: any;
|
|
32
|
+
}> = {
|
|
33
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
34
|
+
};
|
|
35
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
36
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
37
|
+
export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
|
|
38
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
39
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
40
|
+
export declare const snapshotRefreshOptions: {
|
|
41
|
+
overrides: {
|
|
42
|
+
headers: {
|
|
43
|
+
'Cache-Control': string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
49
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
50
|
+
* JSON.stringify({a: 1, b: 2})
|
|
51
|
+
* "{"a":1,"b":2}"
|
|
52
|
+
* JSON.stringify({b: 2, a: 1})
|
|
53
|
+
* "{"b":2,"a":1}"
|
|
54
|
+
* @param data Data to be JSON-stringified.
|
|
55
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
|
+
export declare const keyPrefix = "extensions";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_postCommerceExtensionMappings_ResourceRequestConfig } from '../resources/postCommerceExtensionMappings';
|
|
4
|
+
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "createMapping";
|
|
6
|
+
export declare const createMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const createMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface CreateMappingConfig {
|
|
9
|
+
epn: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
providerName: string;
|
|
12
|
+
webstoreId: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const createResourceParams: (config: CreateMappingConfig) => resources_postCommerceExtensionMappings_ResourceRequestConfig;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateMappingConfig>): adapter$45$utils_Untrusted<CreateMappingConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateMappingConfig | null;
|
|
17
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateMappingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>>;
|
|
18
|
+
export declare const createMappingAdapterFactory: $64$luvio_engine_AdapterFactory<CreateMappingConfig, types_MappingOutputRepresentation_MappingOutputRepresentation>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_deleteCommerceExtensionMappingsByMappingId_ResourceRequestConfig } from '../resources/deleteCommerceExtensionMappingsByMappingId';
|
|
4
|
+
export declare const adapterName = "deleteMapping";
|
|
5
|
+
export declare const deleteMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
|
+
export declare const deleteMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
|
+
export interface DeleteMappingConfig {
|
|
8
|
+
mappingId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const createResourceParams: (config: DeleteMappingConfig) => resources_deleteCommerceExtensionMappingsByMappingId_ResourceRequestConfig;
|
|
11
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<DeleteMappingConfig>): adapter$45$utils_Untrusted<DeleteMappingConfig>;
|
|
12
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): DeleteMappingConfig | null;
|
|
13
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: DeleteMappingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<void>;
|
|
14
|
+
export declare const deleteMappingAdapterFactory: $64$luvio_engine_DeleteAdapterFactory<DeleteMappingConfig>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getCommerceExtensionExtensions_ResourceRequestConfig } from '../resources/getCommerceExtensionExtensions';
|
|
4
|
+
import { ExtensionOutputCollectionRepresentation as types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation } from '../types/ExtensionOutputCollectionRepresentation';
|
|
5
|
+
export declare const adapterName = "getExtensions";
|
|
6
|
+
export declare const getExtensions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getExtensions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetExtensionsConfig {
|
|
9
|
+
}
|
|
10
|
+
export declare const createResourceParams: (config: GetExtensionsConfig) => resources_getCommerceExtensionExtensions_ResourceRequestConfig;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetExtensionsConfig>): adapter$45$utils_Untrusted<GetExtensionsConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetExtensionsConfig | null;
|
|
15
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig): $64$luvio_engine_Fragment;
|
|
16
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig): $64$luvio_engine_Snapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, any>;
|
|
17
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig, resourceParams: resources_getCommerceExtensionExtensions_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, any>>;
|
|
18
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig, resourceParams: resources_getCommerceExtensionExtensions_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
19
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, any>>;
|
|
20
|
+
export type BuildSnapshotContext = {
|
|
21
|
+
luvio: $64$luvio_engine_Luvio;
|
|
22
|
+
config: GetExtensionsConfig;
|
|
23
|
+
};
|
|
24
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, any>>;
|
|
25
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>): $64$luvio_engine_Snapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, any>;
|
|
26
|
+
export declare const getExtensionsAdapterFactory: $64$luvio_engine_AdapterFactory<GetExtensionsConfig, types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getCommerceExtensionMappingsByMappingId_ResourceRequestConfig } from '../resources/getCommerceExtensionMappingsByMappingId';
|
|
4
|
+
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation, KeyParams as types_MappingOutputRepresentation_KeyParams } from '../types/MappingOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getMapping";
|
|
6
|
+
export declare const getMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetMappingConfig {
|
|
9
|
+
mappingId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetMappingConfig) => resources_getCommerceExtensionMappingsByMappingId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetMappingConfig>): adapter$45$utils_Untrusted<GetMappingConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetMappingConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig): $64$luvio_engine_Snapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig, resourceParams: resources_getCommerceExtensionMappingsByMappingId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputRepresentation_MappingOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig, resourceParams: resources_getCommerceExtensionMappingsByMappingId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetMappingConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_Snapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
27
|
+
export declare const getMappingAdapterFactory: $64$luvio_engine_AdapterFactory<GetMappingConfig, types_MappingOutputRepresentation_MappingOutputRepresentation>;
|
|
28
|
+
export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_MappingOutputRepresentation_KeyParams, any>[]) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getCommerceExtensionMappings_ResourceRequestConfig } from '../resources/getCommerceExtensionMappings';
|
|
4
|
+
import { MappingOutputCollectionRepresentation as types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation } from '../types/MappingOutputCollectionRepresentation';
|
|
5
|
+
export declare const adapterName = "getMappings";
|
|
6
|
+
export declare const getMappings_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getMappings_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetMappingsConfig {
|
|
9
|
+
epn?: string;
|
|
10
|
+
webstoreId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: GetMappingsConfig) => resources_getCommerceExtensionMappings_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetMappingsConfig>): adapter$45$utils_Untrusted<GetMappingsConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetMappingsConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig): $64$luvio_engine_Snapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig, resourceParams: resources_getCommerceExtensionMappings_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig, resourceParams: resources_getCommerceExtensionMappings_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: GetMappingsConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>): $64$luvio_engine_Snapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, any>;
|
|
28
|
+
export declare const getMappingsAdapterFactory: $64$luvio_engine_AdapterFactory<GetMappingsConfig, types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getCommerceExtensionProvidersByProviderId_ResourceRequestConfig } from '../resources/getCommerceExtensionProvidersByProviderId';
|
|
4
|
+
import { ProviderOutputRepresentation as types_ProviderOutputRepresentation_ProviderOutputRepresentation, KeyParams as types_ProviderOutputRepresentation_KeyParams } from '../types/ProviderOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getProvider";
|
|
6
|
+
export declare const getProvider_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getProvider_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetProviderConfig {
|
|
9
|
+
providerId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetProviderConfig) => resources_getCommerceExtensionProvidersByProviderId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProviderConfig>): adapter$45$utils_Untrusted<GetProviderConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProviderConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig): $64$luvio_engine_Snapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig, resourceParams: resources_getCommerceExtensionProvidersByProviderId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig, resourceParams: resources_getCommerceExtensionProvidersByProviderId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetProviderConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): $64$luvio_engine_Snapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>;
|
|
27
|
+
export declare const getProviderAdapterFactory: $64$luvio_engine_AdapterFactory<GetProviderConfig, types_ProviderOutputRepresentation_ProviderOutputRepresentation>;
|
|
28
|
+
export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_ProviderOutputRepresentation_KeyParams, any>[]) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getCommerceExtensionProviders_ResourceRequestConfig } from '../resources/getCommerceExtensionProviders';
|
|
4
|
+
import { ProviderOutputCollectionRepresentation as types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation } from '../types/ProviderOutputCollectionRepresentation';
|
|
5
|
+
export declare const adapterName = "getProviders";
|
|
6
|
+
export declare const getProviders_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getProviders_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetProvidersConfig {
|
|
9
|
+
effectiveMappingsWebstoreId?: string;
|
|
10
|
+
epn?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: GetProvidersConfig) => resources_getCommerceExtensionProviders_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProvidersConfig>): adapter$45$utils_Untrusted<GetProvidersConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProvidersConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig): $64$luvio_engine_Snapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig, resourceParams: resources_getCommerceExtensionProviders_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig, resourceParams: resources_getCommerceExtensionProviders_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: GetProvidersConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>): $64$luvio_engine_Snapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, any>;
|
|
28
|
+
export declare const getProvidersAdapterFactory: $64$luvio_engine_AdapterFactory<GetProvidersConfig, types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_putCommerceExtensionMappingsByMappingId_ResourceRequestConfig } from '../resources/putCommerceExtensionMappingsByMappingId';
|
|
4
|
+
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "updateMapping";
|
|
6
|
+
export declare const updateMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const updateMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface UpdateMappingConfig {
|
|
9
|
+
mappingId: string;
|
|
10
|
+
epn: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
providerName: string;
|
|
13
|
+
webstoreId: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const createResourceParams: (config: UpdateMappingConfig) => resources_putCommerceExtensionMappingsByMappingId_ResourceRequestConfig;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateMappingConfig>): adapter$45$utils_Untrusted<UpdateMappingConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateMappingConfig | null;
|
|
18
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateMappingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>>;
|
|
19
|
+
export declare const updateMappingAdapterFactory: $64$luvio_engine_AdapterFactory<UpdateMappingConfig, types_MappingOutputRepresentation_MappingOutputRepresentation>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { getExtensionsAdapterFactory } from '../adapters/getExtensions';
|
|
2
|
+
export { getMappingsAdapterFactory } from '../adapters/getMappings';
|
|
3
|
+
export { createMappingAdapterFactory } from '../adapters/createMapping';
|
|
4
|
+
export { deleteMappingAdapterFactory } from '../adapters/deleteMapping';
|
|
5
|
+
export { getMappingAdapterFactory } from '../adapters/getMapping';
|
|
6
|
+
export { updateMappingAdapterFactory } from '../adapters/updateMapping';
|
|
7
|
+
export { getProvidersAdapterFactory } from '../adapters/getProviders';
|
|
8
|
+
export { getProviderAdapterFactory } from '../adapters/getProvider';
|
|
9
|
+
export { notifyUpdateAvailableFactory as notifyMappingUpdateAvailableFactory } from '../types/MappingOutputRepresentation';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare let createMapping: any;
|
|
2
|
+
declare let deleteMapping: any;
|
|
3
|
+
declare let getExtensions: any;
|
|
4
|
+
declare let getMapping: any;
|
|
5
|
+
declare let getMappingNotifyChange: any;
|
|
6
|
+
declare let getMappings: any;
|
|
7
|
+
declare let getProvider: any;
|
|
8
|
+
declare let getProviderNotifyChange: any;
|
|
9
|
+
declare let getProviders: any;
|
|
10
|
+
declare let updateMapping: any;
|
|
11
|
+
declare let getExtensions_imperative: any;
|
|
12
|
+
declare let getMapping_imperative: any;
|
|
13
|
+
declare let getMappings_imperative: any;
|
|
14
|
+
declare let getProvider_imperative: any;
|
|
15
|
+
declare let getProviders_imperative: any;
|
|
16
|
+
declare let notifyMappingUpdateAvailable: any;
|
|
17
|
+
export { createMapping, deleteMapping, getExtensions, getMapping, getMappingNotifyChange, getMappings, getProvider, getProviderNotifyChange, getProviders, updateMapping, getExtensions_imperative, getMapping_imperative, getMappings_imperative, getProvider_imperative, getProviders_imperative, };
|
|
18
|
+
export { notifyMappingUpdateAvailable };
|
package/dist/es/es2018/types/src/generated/resources/deleteCommerceExtensionMappingsByMappingId.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
export interface ResourceRequestConfig {
|
|
3
|
+
urlParams: {
|
|
4
|
+
mappingId: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
8
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
9
|
+
export declare function getResponseCacheKeys(cacheKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
10
|
+
export declare function evictSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
11
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
export interface ResourceRequestConfig {
|
|
3
|
+
urlParams: {
|
|
4
|
+
providerId: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
8
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
9
|
+
export declare function getResponseCacheKeys(cacheKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
10
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
11
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { ExtensionOutputCollectionRepresentation as types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation } from '../types/ExtensionOutputCollectionRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
}
|
|
5
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
6
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
7
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
8
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation): void;
|
|
9
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, any>;
|
|
10
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
11
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { MappingOutputCollectionRepresentation as types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation } from '../types/MappingOutputCollectionRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
epn?: string;
|
|
6
|
+
webstoreId?: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappingsByMappingId.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
mappingId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputRepresentation_MappingOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
16
|
+
export declare function createResourceRequestFromRepresentation(representation: types_MappingOutputRepresentation_MappingOutputRepresentation): $64$luvio_engine_ResourceRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { ProviderOutputCollectionRepresentation as types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation } from '../types/ProviderOutputCollectionRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
effectiveMappingsWebstoreId?: string;
|
|
6
|
+
epn?: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionProvidersByProviderId.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
|
|
2
|
+
import { ProviderOutputRepresentation as types_ProviderOutputRepresentation_ProviderOutputRepresentation } from '../types/ProviderOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
providerId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputRepresentation_ProviderOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputRepresentation_ProviderOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
16
|
+
export declare function createResourceRequestFromRepresentation(representation: types_ProviderOutputRepresentation_ProviderOutputRepresentation): $64$luvio_engine_ResourceRequest;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { ProviderOutputRepresentation as types_ProviderOutputRepresentation_ProviderOutputRepresentation } from '../types/ProviderOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
providerId: string;
|
|
6
|
+
};
|
|
7
|
+
body: {
|
|
8
|
+
apexClass: {};
|
|
9
|
+
configUrl: string;
|
|
10
|
+
description: string;
|
|
11
|
+
epn: string;
|
|
12
|
+
iconUri: string;
|
|
13
|
+
isApplication: boolean;
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
19
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputRepresentation_ProviderOutputRepresentation): void;
|
|
20
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>;
|
|
21
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
22
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
epn: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
providerName: string;
|
|
8
|
+
webstoreId: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { ProviderOutputRepresentation as types_ProviderOutputRepresentation_ProviderOutputRepresentation } from '../types/ProviderOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
apexClass: {};
|
|
6
|
+
configUrl: string;
|
|
7
|
+
description: string;
|
|
8
|
+
epn: string;
|
|
9
|
+
iconUri: string;
|
|
10
|
+
isApplication: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
16
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputRepresentation_ProviderOutputRepresentation): void;
|
|
17
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputRepresentation_ProviderOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProviderOutputRepresentation_ProviderOutputRepresentation, any>;
|
|
18
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/putCommerceExtensionMappingsByMappingId.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
mappingId: string;
|
|
6
|
+
};
|
|
7
|
+
body: {
|
|
8
|
+
epn: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
providerName: string;
|
|
11
|
+
webstoreId: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation): void;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "a5fa5586d809b037f7271b742b6dffde";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ApexClassInputRepresentation, existing: ApexClassInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ApexClassInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ApexClassInputRepresentationNormalized, incoming: ApexClassInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ApexClassInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation of a provider's apex class.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ApexClassInputRepresentationNormalized {
|
|
17
|
+
/** Unique identifier for the apex class. */
|
|
18
|
+
classId: string;
|
|
19
|
+
/** Name of the class containing the entry methods. */
|
|
20
|
+
className: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Input representation of a provider's apex class.
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ApexClassInputRepresentation {
|
|
29
|
+
classId: string;
|
|
30
|
+
className: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "bed780ad418f5f02446c1b0f9d165e5d";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ApexClassOutputRepresentation, existing: ApexClassOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ApexClassOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ApexClassOutputRepresentationNormalized, incoming: ApexClassOutputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ApexClassOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output representation of a provider's apex class.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ApexClassOutputRepresentationNormalized {
|
|
17
|
+
/** Unique identifier for the apex class. */
|
|
18
|
+
classId: string;
|
|
19
|
+
/** Name of the main class containing the entry methods. */
|
|
20
|
+
className: string;
|
|
21
|
+
/** Unique identifier for the company supplying the provider */
|
|
22
|
+
namespace: string;
|
|
23
|
+
/** The version of the apex class */
|
|
24
|
+
version: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Output representation of a provider's apex class.
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface ApexClassOutputRepresentation {
|
|
33
|
+
classId: string;
|
|
34
|
+
className: string;
|
|
35
|
+
namespace: string;
|
|
36
|
+
version: string;
|
|
37
|
+
}
|