cf-service-sdk 0.1.25 → 0.1.26
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/generated/graphql.d.ts +18 -0
- package/dist/generated/graphql.js +10 -2
- package/dist/queries.js +4 -2
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +2 -2
- package/package.json +1 -1
|
@@ -4584,6 +4584,8 @@ export type QuerySegmentsArgs = {
|
|
|
4584
4584
|
/** Query */
|
|
4585
4585
|
export type QuerySuggestedCompanyFiltersArgs = {
|
|
4586
4586
|
similarToCompany?: InputMaybe<Scalars['ID']['input']>;
|
|
4587
|
+
similarToUrl?: InputMaybe<Scalars['String']['input']>;
|
|
4588
|
+
similarToUrls?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
4587
4589
|
};
|
|
4588
4590
|
/** Query */
|
|
4589
4591
|
export type QuerySupplierArgs = {
|
|
@@ -5249,8 +5251,12 @@ export type SubscriptionType = {
|
|
|
5249
5251
|
/** Suggested filters and sort hierarchy for company search */
|
|
5250
5252
|
export type SuggestedCompanyFilters = {
|
|
5251
5253
|
__typename?: 'SuggestedCompanyFilters';
|
|
5254
|
+
/** URLs that failed analysis */
|
|
5255
|
+
failedUrls?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
5252
5256
|
/** Suggested filter values to pass to companySearch */
|
|
5253
5257
|
filters?: Maybe<SuggestedFilterValues>;
|
|
5258
|
+
/** URLs still being analyzed — frontend should re-poll when non-empty */
|
|
5259
|
+
pendingUrls?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
5254
5260
|
/** Suggested sort order for the search */
|
|
5255
5261
|
sortHierarchy?: Maybe<Array<Maybe<SuggestedSort>>>;
|
|
5256
5262
|
};
|
|
@@ -26500,11 +26506,15 @@ export type StatesOptionsQuery = {
|
|
|
26500
26506
|
};
|
|
26501
26507
|
export type SuggestedCompanyFiltersQueryVariables = Exact<{
|
|
26502
26508
|
similarToCompany?: InputMaybe<Scalars['ID']['input']>;
|
|
26509
|
+
similarToUrl?: InputMaybe<Scalars['String']['input']>;
|
|
26510
|
+
similarToUrls?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
|
|
26503
26511
|
}>;
|
|
26504
26512
|
export type SuggestedCompanyFiltersQuery = {
|
|
26505
26513
|
__typename?: 'Query';
|
|
26506
26514
|
suggestedCompanyFilters?: {
|
|
26507
26515
|
__typename?: 'SuggestedCompanyFilters';
|
|
26516
|
+
pendingUrls?: Array<string | null> | null;
|
|
26517
|
+
failedUrls?: Array<string | null> | null;
|
|
26508
26518
|
filters?: {
|
|
26509
26519
|
__typename?: 'SuggestedFilterValues';
|
|
26510
26520
|
keywords?: string | null;
|
|
@@ -36747,17 +36757,25 @@ export declare const SuggestedCompanyFiltersDocument: Apollo.DocumentNode;
|
|
|
36747
36757
|
* const { data, loading, error } = useSuggestedCompanyFiltersQuery({
|
|
36748
36758
|
* variables: {
|
|
36749
36759
|
* similarToCompany: // value for 'similarToCompany'
|
|
36760
|
+
* similarToUrl: // value for 'similarToUrl'
|
|
36761
|
+
* similarToUrls: // value for 'similarToUrls'
|
|
36750
36762
|
* },
|
|
36751
36763
|
* });
|
|
36752
36764
|
*/
|
|
36753
36765
|
export declare function useSuggestedCompanyFiltersQuery(baseOptions?: Apollo.QueryHookOptions<SuggestedCompanyFiltersQuery, SuggestedCompanyFiltersQueryVariables>): Apollo.QueryResult<SuggestedCompanyFiltersQuery, Exact<{
|
|
36754
36766
|
similarToCompany?: InputMaybe<Scalars["ID"]["input"]>;
|
|
36767
|
+
similarToUrl?: InputMaybe<Scalars["String"]["input"]>;
|
|
36768
|
+
similarToUrls?: InputMaybe<Array<InputMaybe<Scalars["String"]["input"]>> | InputMaybe<Scalars["String"]["input"]>>;
|
|
36755
36769
|
}>>;
|
|
36756
36770
|
export declare function useSuggestedCompanyFiltersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SuggestedCompanyFiltersQuery, SuggestedCompanyFiltersQueryVariables>): Apollo.LazyQueryResultTuple<SuggestedCompanyFiltersQuery, Exact<{
|
|
36757
36771
|
similarToCompany?: InputMaybe<Scalars["ID"]["input"]>;
|
|
36772
|
+
similarToUrl?: InputMaybe<Scalars["String"]["input"]>;
|
|
36773
|
+
similarToUrls?: InputMaybe<Array<InputMaybe<Scalars["String"]["input"]>> | InputMaybe<Scalars["String"]["input"]>>;
|
|
36758
36774
|
}>>;
|
|
36759
36775
|
export declare function useSuggestedCompanyFiltersSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<SuggestedCompanyFiltersQuery, SuggestedCompanyFiltersQueryVariables>): Apollo.UseSuspenseQueryResult<SuggestedCompanyFiltersQuery | undefined, Exact<{
|
|
36760
36776
|
similarToCompany?: InputMaybe<Scalars["ID"]["input"]>;
|
|
36777
|
+
similarToUrl?: InputMaybe<Scalars["String"]["input"]>;
|
|
36778
|
+
similarToUrls?: InputMaybe<Array<InputMaybe<Scalars["String"]["input"]>> | InputMaybe<Scalars["String"]["input"]>>;
|
|
36761
36779
|
}>>;
|
|
36762
36780
|
export type SuggestedCompanyFiltersQueryHookResult = ReturnType<typeof useSuggestedCompanyFiltersQuery>;
|
|
36763
36781
|
export type SuggestedCompanyFiltersLazyQueryHookResult = ReturnType<typeof useSuggestedCompanyFiltersLazyQuery>;
|
|
@@ -24814,8 +24814,12 @@ function useStatesOptionsSuspenseQuery(baseOptions) {
|
|
|
24814
24814
|
return Apollo.useSuspenseQuery(exports.StatesOptionsDocument, options);
|
|
24815
24815
|
}
|
|
24816
24816
|
exports.SuggestedCompanyFiltersDocument = (0, client_1.gql) `
|
|
24817
|
-
query SuggestedCompanyFilters($similarToCompany: ID) {
|
|
24818
|
-
suggestedCompanyFilters(
|
|
24817
|
+
query SuggestedCompanyFilters($similarToCompany: ID, $similarToUrl: String, $similarToUrls: [String]) {
|
|
24818
|
+
suggestedCompanyFilters(
|
|
24819
|
+
similarToCompany: $similarToCompany
|
|
24820
|
+
similarToUrl: $similarToUrl
|
|
24821
|
+
similarToUrls: $similarToUrls
|
|
24822
|
+
) {
|
|
24819
24823
|
filters {
|
|
24820
24824
|
keywords
|
|
24821
24825
|
geoLat
|
|
@@ -24828,6 +24832,8 @@ exports.SuggestedCompanyFiltersDocument = (0, client_1.gql) `
|
|
|
24828
24832
|
geoLat
|
|
24829
24833
|
geoLon
|
|
24830
24834
|
}
|
|
24835
|
+
pendingUrls
|
|
24836
|
+
failedUrls
|
|
24831
24837
|
}
|
|
24832
24838
|
}
|
|
24833
24839
|
`;
|
|
@@ -24844,6 +24850,8 @@ exports.SuggestedCompanyFiltersDocument = (0, client_1.gql) `
|
|
|
24844
24850
|
* const { data, loading, error } = useSuggestedCompanyFiltersQuery({
|
|
24845
24851
|
* variables: {
|
|
24846
24852
|
* similarToCompany: // value for 'similarToCompany'
|
|
24853
|
+
* similarToUrl: // value for 'similarToUrl'
|
|
24854
|
+
* similarToUrls: // value for 'similarToUrls'
|
|
24847
24855
|
* },
|
|
24848
24856
|
* });
|
|
24849
24857
|
*/
|
package/dist/queries.js
CHANGED
|
@@ -11589,8 +11589,8 @@ query CompanyAudiencesAndCampaigns($companyId: ID!) {
|
|
|
11589
11589
|
}
|
|
11590
11590
|
}`;
|
|
11591
11591
|
exports.SUGGESTED_COMPANY_FILTERS = (0, client_1.gql) `
|
|
11592
|
-
query SuggestedCompanyFilters($similarToCompany: ID) {
|
|
11593
|
-
suggestedCompanyFilters(similarToCompany: $similarToCompany) {
|
|
11592
|
+
query SuggestedCompanyFilters($similarToCompany: ID, $similarToUrl: String, $similarToUrls: [String]) {
|
|
11593
|
+
suggestedCompanyFilters(similarToCompany: $similarToCompany, similarToUrl: $similarToUrl, similarToUrls: $similarToUrls) {
|
|
11594
11594
|
filters {
|
|
11595
11595
|
keywords
|
|
11596
11596
|
geoLat
|
|
@@ -11603,6 +11603,8 @@ query SuggestedCompanyFilters($similarToCompany: ID) {
|
|
|
11603
11603
|
geoLat
|
|
11604
11604
|
geoLon
|
|
11605
11605
|
}
|
|
11606
|
+
pendingUrls
|
|
11607
|
+
failedUrls
|
|
11606
11608
|
}
|
|
11607
11609
|
}`;
|
|
11608
11610
|
exports.COMPANY_EXTERNAL_IDENTIFIER = (0, client_1.gql) `
|
package/dist/sdk.d.ts
CHANGED
|
@@ -234,7 +234,7 @@ export declare class CloudForgeSDK {
|
|
|
234
234
|
segment(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
235
235
|
segments(pagination?: PaginationInput, includeSystemTemplates?: boolean, filters?: SegmentFilterInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
236
236
|
statesOptions(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
237
|
-
suggestedCompanyFilters(similarToCompany?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
237
|
+
suggestedCompanyFilters(similarToCompany?: string, similarToUrl?: string, similarToUrls?: string[]): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
238
238
|
supplier(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
239
239
|
supplierListContacts(supplierListId: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
240
240
|
supplierListCustomContacts(supplierListId: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -1370,10 +1370,10 @@ class CloudForgeSDK {
|
|
|
1370
1370
|
query: queries_1.STATES_OPTIONS
|
|
1371
1371
|
});
|
|
1372
1372
|
}
|
|
1373
|
-
async suggestedCompanyFilters(similarToCompany) {
|
|
1373
|
+
async suggestedCompanyFilters(similarToCompany, similarToUrl, similarToUrls) {
|
|
1374
1374
|
return this.apolloClient.query({
|
|
1375
1375
|
query: queries_1.SUGGESTED_COMPANY_FILTERS,
|
|
1376
|
-
variables: { similarToCompany }
|
|
1376
|
+
variables: { similarToCompany, similarToUrl, similarToUrls }
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
1379
1379
|
async supplier(id) {
|