@salesforce/lds-adapters-platform-appexchange 1.332.0-dev2 → 1.332.0-dev21

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.
@@ -0,0 +1,32 @@
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_postConnectAppexchangeSearchListings_ResourceRequestConfig } from '../resources/postConnectAppexchangeSearchListings';
4
+ import { AppExchangeSearchListingCollectionRepresentation as types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation } from '../types/AppExchangeSearchListingCollectionRepresentation';
5
+ export declare const adapterName = "searchListings";
6
+ export declare const searchListings_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const searchListings_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface SearchListingsConfig {
9
+ category?: Array<string>;
10
+ edition?: Array<string>;
11
+ features?: Array<string>;
12
+ impact?: Array<string>;
13
+ industry?: Array<string>;
14
+ keyword?: string;
15
+ labs?: Array<string>;
16
+ language?: string;
17
+ languages?: Array<string>;
18
+ page?: number;
19
+ pageSize?: number;
20
+ persona?: Array<string>;
21
+ price?: Array<string>;
22
+ product?: string;
23
+ rating?: number;
24
+ sort?: string;
25
+ tech?: Array<string>;
26
+ type?: string;
27
+ }
28
+ export declare const createResourceParams: (config: SearchListingsConfig) => resources_postConnectAppexchangeSearchListings_ResourceRequestConfig;
29
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SearchListingsConfig>): adapter$45$utils_Untrusted<SearchListingsConfig>;
30
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SearchListingsConfig | null;
31
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SearchListingsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation, any>>;
32
+ export declare const searchListingsAdapterFactory: $64$luvio_engine_AdapterFactory<SearchListingsConfig, types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation>;
@@ -1,3 +1,3 @@
1
1
  export { getListingDetailsAdapterFactory } from '../adapters/getListingDetails';
2
- export { getAppExchangeSearchListingCollectionAdapterFactory } from '../adapters/getAppExchangeSearchListingCollection';
2
+ export { searchListingsAdapterFactory } from '../adapters/searchListings';
3
3
  export { postAppExchangeUserEventsAdapterFactory } from '../adapters/postAppExchangeUserEvents';
@@ -1,6 +1,5 @@
1
- declare let getAppExchangeSearchListingCollection: any;
2
1
  declare let getListingDetails: any;
3
2
  declare let postAppExchangeUserEvents: any;
4
- declare let getAppExchangeSearchListingCollection_imperative: any;
3
+ declare let searchListings: any;
5
4
  declare let getListingDetails_imperative: any;
6
- export { getAppExchangeSearchListingCollection, getListingDetails, postAppExchangeUserEvents, getAppExchangeSearchListingCollection_imperative, getListingDetails_imperative, };
5
+ export { getListingDetails, postAppExchangeUserEvents, searchListings, getListingDetails_imperative, };
@@ -0,0 +1,29 @@
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 { AppExchangeSearchListingCollectionRepresentation as types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation } from '../types/AppExchangeSearchListingCollectionRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ category?: Array<string>;
6
+ edition?: Array<string>;
7
+ features?: Array<string>;
8
+ impact?: Array<string>;
9
+ industry?: Array<string>;
10
+ keyword?: string;
11
+ labs?: Array<string>;
12
+ language?: string;
13
+ languages?: Array<string>;
14
+ page?: number;
15
+ pageSize?: number;
16
+ persona?: Array<string>;
17
+ price?: Array<string>;
18
+ product?: string;
19
+ rating?: number;
20
+ sort?: string;
21
+ tech?: Array<string>;
22
+ type?: string;
23
+ };
24
+ }
25
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
26
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation): void;
27
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_AppExchangeSearchListingCollectionRepresentation_AppExchangeSearchListingCollectionRepresentation, any>;
28
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
29
+ export default createResourceRequest;
@@ -1,10 +1,19 @@
1
1
  import { AppExchangeSearchListingRepresentation as AppExchangeSearchListingRepresentation_AppExchangeSearchListingRepresentation } from './AppExchangeSearchListingRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const VERSION = "a62184aef316aa15954899c1d6098cb5";
2
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "8d9a771044db35da3a48fdd775bfe9b2";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
+ primaryKey: string;
8
+ }
9
+ export type AppExchangeSearchListingCollectionRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialAppExchangeSearchListingCollectionRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): AppExchangeSearchListingCollectionRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: AppExchangeSearchListingCollectionRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: AppExchangeSearchListingCollectionRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
6
15
  export declare function normalize(input: AppExchangeSearchListingCollectionRepresentation, existing: AppExchangeSearchListingCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AppExchangeSearchListingCollectionRepresentationNormalized;
7
- export declare const select: () => $64$luvio_engine_BaseFragment;
16
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
17
  export declare function equals(existing: AppExchangeSearchListingCollectionRepresentationNormalized, incoming: AppExchangeSearchListingCollectionRepresentationNormalized): boolean;
9
18
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
19
  export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AppExchangeSearchListingCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
@@ -12,11 +21,13 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
12
21
  * Represents an AppExchange search listing collection
13
22
  *
14
23
  * Keys:
15
- * (none)
24
+ * primaryKey (string): primaryKey
16
25
  */
17
26
  export interface AppExchangeSearchListingCollectionRepresentationNormalized {
18
27
  /** The list of the AppExchange listings */
19
28
  listings: Array<AppExchangeSearchListingRepresentation_AppExchangeSearchListingRepresentation>;
29
+ /** The primary key */
30
+ primaryKey: string;
20
31
  /** The total count of the AppExchange listings */
21
32
  totalCount: number;
22
33
  }
@@ -24,9 +35,10 @@ export interface AppExchangeSearchListingCollectionRepresentationNormalized {
24
35
  * Represents an AppExchange search listing collection
25
36
  *
26
37
  * Keys:
27
- * (none)
38
+ * primaryKey (string): primaryKey
28
39
  */
29
40
  export interface AppExchangeSearchListingCollectionRepresentation {
30
41
  listings: Array<AppExchangeSearchListingRepresentation_AppExchangeSearchListingRepresentation>;
42
+ primaryKey: string;
31
43
  totalCount: number;
32
44
  }
@@ -1,6 +1,6 @@
1
1
  import { AppExchangeListingLogoRepresentation as AppExchangeListingLogoRepresentation_AppExchangeListingLogoRepresentation } from './AppExchangeListingLogoRepresentation';
2
2
  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';
3
- export declare const VERSION = "4c3e5e06b63b97e21a01138feab0ae5d";
3
+ export declare const VERSION = "d0c891a7c7f849972936e052211f1ffe";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: AppExchangeSearchListingRepresentation, existing: AppExchangeSearchListingRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AppExchangeSearchListingRepresentationNormalized;
@@ -16,33 +16,33 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  */
17
17
  export interface AppExchangeSearchListingRepresentationNormalized {
18
18
  /** Average Rating of AppExchange listing */
19
- averageRating: number;
19
+ averageRating?: number;
20
20
  /** Collection Name of AppExchange listing */
21
- collectionName: string;
21
+ collectionName?: string;
22
22
  /** Description of AppExchange listing */
23
- description: string;
23
+ description?: string;
24
24
  /** Document Position of AppExchange listing */
25
- documentPosition: number;
25
+ documentPosition?: number;
26
26
  /** Document title of AppExchange listing */
27
- documentTitle: string;
27
+ documentTitle?: string;
28
28
  /** Listing Categories of AppExchange listing */
29
- listingCategories: Array<string>;
29
+ listingCategories?: Array<string>;
30
30
  /** Logos of AppExchange listing */
31
- logos: Array<AppExchangeListingLogoRepresentation_AppExchangeListingLogoRepresentation>;
31
+ logos?: Array<AppExchangeListingLogoRepresentation_AppExchangeListingLogoRepresentation>;
32
32
  /** OneAppExchange Framework Id - primary identifier of AppExchange Listing */
33
- oafId: string;
33
+ oafId?: string;
34
34
  /** Pricing of AppExchange listing */
35
- pricing: string;
35
+ pricing?: string;
36
36
  /** Publisher of AppExchange listing */
37
- publisher: string;
37
+ publisher?: string;
38
38
  /** Reviews Amount of AppExchange listing */
39
- reviewsAmount: number;
39
+ reviewsAmount?: number;
40
40
  /** Source Name of AppExchange listing */
41
- sourceName: string;
41
+ sourceName?: string;
42
42
  /** Title of AppExchange listing */
43
- title: string;
43
+ title?: string;
44
44
  /** Type of AppExchange listing */
45
- type: string;
45
+ type?: string;
46
46
  }
47
47
  /**
48
48
  * Represents an AppExchange search listing
@@ -51,18 +51,18 @@ export interface AppExchangeSearchListingRepresentationNormalized {
51
51
  * (none)
52
52
  */
53
53
  export interface AppExchangeSearchListingRepresentation {
54
- averageRating: number;
55
- collectionName: string;
56
- description: string;
57
- documentPosition: number;
58
- documentTitle: string;
59
- listingCategories: Array<string>;
60
- logos: Array<AppExchangeListingLogoRepresentation_AppExchangeListingLogoRepresentation>;
61
- oafId: string;
62
- pricing: string;
63
- publisher: string;
64
- reviewsAmount: number;
65
- sourceName: string;
66
- title: string;
67
- type: string;
54
+ averageRating?: number;
55
+ collectionName?: string;
56
+ description?: string;
57
+ documentPosition?: number;
58
+ documentTitle?: string;
59
+ listingCategories?: Array<string>;
60
+ logos?: Array<AppExchangeListingLogoRepresentation_AppExchangeListingLogoRepresentation>;
61
+ oafId?: string;
62
+ pricing?: string;
63
+ publisher?: string;
64
+ reviewsAmount?: number;
65
+ sourceName?: string;
66
+ title?: string;
67
+ type?: string;
68
68
  }
@@ -0,0 +1,79 @@
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 = "ddfe3ab8f556fe83e27d6324c0d8561e";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: AppExchangeSearchListingsInputRepresentation, existing: AppExchangeSearchListingsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AppExchangeSearchListingsInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: AppExchangeSearchListingsInputRepresentationNormalized, incoming: AppExchangeSearchListingsInputRepresentationNormalized): 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: AppExchangeSearchListingsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents an AppExchange search listings input
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface AppExchangeSearchListingsInputRepresentationNormalized {
17
+ /** The category of the AppExchange listing */
18
+ category?: Array<string>;
19
+ /** The edition of the AppExchange listings */
20
+ edition?: Array<string>;
21
+ /** The features of the AppExchange listings */
22
+ features?: Array<string>;
23
+ /** The impact of the AppExchange listings */
24
+ impact?: Array<string>;
25
+ /** The industry of the AppExchange listings */
26
+ industry?: Array<string>;
27
+ /** The keyword to search AppExchange listing */
28
+ keyword?: string;
29
+ /** The labs of the AppExchange listings */
30
+ labs?: Array<string>;
31
+ /** The language of the AppExchange MarketPlace */
32
+ language?: string;
33
+ /** The languages of the AppExchange listings */
34
+ languages?: Array<string>;
35
+ /** The page of the AppExchange listings */
36
+ page?: number;
37
+ /** The pageSize of the AppExchange listings */
38
+ pageSize?: number;
39
+ /** The persona of the AppExchange listings */
40
+ persona?: Array<string>;
41
+ /** The price of the AppExchange listing */
42
+ price?: Array<string>;
43
+ /** The product of the AppExchange listings */
44
+ product?: string;
45
+ /** The rating of the AppExchange listing */
46
+ rating?: number;
47
+ /** The sort order of AppExchange listing */
48
+ sort?: string;
49
+ /** The tech of the AppExchange listings */
50
+ tech?: Array<string>;
51
+ /** The type of the AppExchange listing */
52
+ type?: string;
53
+ }
54
+ /**
55
+ * Represents an AppExchange search listings input
56
+ *
57
+ * Keys:
58
+ * (none)
59
+ */
60
+ export interface AppExchangeSearchListingsInputRepresentation {
61
+ category?: Array<string>;
62
+ edition?: Array<string>;
63
+ features?: Array<string>;
64
+ impact?: Array<string>;
65
+ industry?: Array<string>;
66
+ keyword?: string;
67
+ labs?: Array<string>;
68
+ language?: string;
69
+ languages?: Array<string>;
70
+ page?: number;
71
+ pageSize?: number;
72
+ persona?: Array<string>;
73
+ price?: Array<string>;
74
+ product?: string;
75
+ rating?: number;
76
+ sort?: string;
77
+ tech?: Array<string>;
78
+ type?: string;
79
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-appexchange",
3
- "version": "1.332.0-dev2",
3
+ "version": "1.332.0-dev21",
4
4
  "description": "This API Family is owned by AppExchange Everywhere team, aimed at integrating AppExchange with Core.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-appexchange.js",
@@ -46,10 +46,10 @@
46
46
  "test:unit": "jest"
47
47
  },
48
48
  "dependencies": {
49
- "@salesforce/lds-bindings": "^1.332.0-dev2"
49
+ "@salesforce/lds-bindings": "^1.332.0-dev21"
50
50
  },
51
51
  "devDependencies": {
52
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev2"
52
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev21"
53
53
  },
54
54
  "nx": {
55
55
  "targets": {