cf-service-sdk 0.1.38 → 0.1.40
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 +264 -1
- package/dist/generated/graphql.js +145 -2
- package/dist/mutations.js +1 -0
- package/dist/queries.d.ts +3 -0
- package/dist/queries.js +44 -2
- package/dist/sdk.d.ts +4 -1
- package/dist/sdk.js +18 -0
- package/package.json +1 -1
|
@@ -2093,11 +2093,14 @@ export type DashboardStatsType = {
|
|
|
2093
2093
|
export declare enum DateRangeEnum {
|
|
2094
2094
|
AllTime = "ALL_TIME",
|
|
2095
2095
|
Custom = "CUSTOM",
|
|
2096
|
+
LastMonth = "LAST_MONTH",
|
|
2097
|
+
LastWeek = "LAST_WEEK",
|
|
2096
2098
|
ThisMonth = "THIS_MONTH",
|
|
2097
2099
|
ThisQuarter = "THIS_QUARTER",
|
|
2098
2100
|
ThisWeek = "THIS_WEEK",
|
|
2099
2101
|
ThisYear = "THIS_YEAR",
|
|
2100
|
-
Today = "TODAY"
|
|
2102
|
+
Today = "TODAY",
|
|
2103
|
+
Yesterday = "YESTERDAY"
|
|
2101
2104
|
}
|
|
2102
2105
|
export type DeleteCallCampaign = {
|
|
2103
2106
|
__typename?: 'DeleteCallCampaign';
|
|
@@ -2677,6 +2680,8 @@ export type MailLogObject = {
|
|
|
2677
2680
|
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2678
2681
|
/** User who owns the email integration */
|
|
2679
2682
|
userId?: Maybe<Scalars['Int']['output']>;
|
|
2683
|
+
/** Display name of the user who owns the email integration */
|
|
2684
|
+
userName?: Maybe<Scalars['String']['output']>;
|
|
2680
2685
|
};
|
|
2681
2686
|
/** Email communication type */
|
|
2682
2687
|
export declare enum MailLogTypeEnum {
|
|
@@ -4285,6 +4290,12 @@ export type Query = {
|
|
|
4285
4290
|
segment?: Maybe<SegmentObject>;
|
|
4286
4291
|
/** Get paginated list of segments for the current user's account */
|
|
4287
4292
|
segments?: Maybe<PaginatedSegmentList>;
|
|
4293
|
+
/** Per-user breakdown (total visits + unique clients) for the Site Visit Report */
|
|
4294
|
+
siteVisitBreakdownByUser?: Maybe<Array<SiteVisitUserBreakdownType>>;
|
|
4295
|
+
/** Paginated list of site visit notes */
|
|
4296
|
+
siteVisitLog?: Maybe<SiteVisitLogConnectionType>;
|
|
4297
|
+
/** Aggregate metrics for the Site Visit Report */
|
|
4298
|
+
siteVisitReportSummary?: Maybe<SiteVisitSummaryType>;
|
|
4288
4299
|
/** All states/provinces with country info (US + Canada) */
|
|
4289
4300
|
statesOptions?: Maybe<Array<Maybe<StateProvinceData>>>;
|
|
4290
4301
|
/** Get suggested filters and sort hierarchy for use in company_search */
|
|
@@ -4658,6 +4669,20 @@ export type QuerySegmentsArgs = {
|
|
|
4658
4669
|
pagination?: InputMaybe<PaginationInput>;
|
|
4659
4670
|
};
|
|
4660
4671
|
/** Query */
|
|
4672
|
+
export type QuerySiteVisitBreakdownByUserArgs = {
|
|
4673
|
+
filters: SiteVisitFilterInput;
|
|
4674
|
+
};
|
|
4675
|
+
/** Query */
|
|
4676
|
+
export type QuerySiteVisitLogArgs = {
|
|
4677
|
+
filters: SiteVisitFilterInput;
|
|
4678
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
4679
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
4680
|
+
};
|
|
4681
|
+
/** Query */
|
|
4682
|
+
export type QuerySiteVisitReportSummaryArgs = {
|
|
4683
|
+
filters: SiteVisitFilterInput;
|
|
4684
|
+
};
|
|
4685
|
+
/** Query */
|
|
4661
4686
|
export type QuerySuggestedCompanyFiltersArgs = {
|
|
4662
4687
|
similarToCompany?: InputMaybe<Scalars['ID']['input']>;
|
|
4663
4688
|
similarToUrl?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5298,6 +5323,74 @@ export type SignupInput = {
|
|
|
5298
5323
|
password: Scalars['String']['input'];
|
|
5299
5324
|
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
5300
5325
|
};
|
|
5326
|
+
/** Input filters for Site Visit Report */
|
|
5327
|
+
export type SiteVisitFilterInput = {
|
|
5328
|
+
/** Predefined date range */
|
|
5329
|
+
dateRange?: InputMaybe<DateRangeEnum>;
|
|
5330
|
+
/** Custom end date (required if date_range is CUSTOM) */
|
|
5331
|
+
endDate?: InputMaybe<Scalars['Date']['input']>;
|
|
5332
|
+
/** Filter by specific user IDs; empty or null returns all users in the account */
|
|
5333
|
+
forUser?: InputMaybe<Array<InputMaybe<Scalars['Int']['input']>>>;
|
|
5334
|
+
/** Custom start date (required if date_range is CUSTOM) */
|
|
5335
|
+
startDate?: InputMaybe<Scalars['Date']['input']>;
|
|
5336
|
+
};
|
|
5337
|
+
/** Paginated connection of Site Visit Log rows */
|
|
5338
|
+
export type SiteVisitLogConnectionType = {
|
|
5339
|
+
__typename?: 'SiteVisitLogConnectionType';
|
|
5340
|
+
/** Whether there are more rows after this page */
|
|
5341
|
+
hasNextPage?: Maybe<Scalars['Boolean']['output']>;
|
|
5342
|
+
/** Offset to use for the next page, or null if on last page */
|
|
5343
|
+
nextOffset?: Maybe<Scalars['Int']['output']>;
|
|
5344
|
+
nodes?: Maybe<Array<Maybe<SiteVisitLogNodeType>>>;
|
|
5345
|
+
/** Total rows matching filters before pagination */
|
|
5346
|
+
totalCount?: Maybe<Scalars['Int']['output']>;
|
|
5347
|
+
};
|
|
5348
|
+
/** A single row in the Site Visit Log table */
|
|
5349
|
+
export type SiteVisitLogNodeType = {
|
|
5350
|
+
__typename?: 'SiteVisitLogNodeType';
|
|
5351
|
+
/** Id of the company visited */
|
|
5352
|
+
companyId?: Maybe<Scalars['Int']['output']>;
|
|
5353
|
+
/** Name of the company visited */
|
|
5354
|
+
companyName?: Maybe<Scalars['String']['output']>;
|
|
5355
|
+
/** Date the site visit was logged */
|
|
5356
|
+
date?: Maybe<Scalars['Date']['output']>;
|
|
5357
|
+
/** CompanyNote id, used for deep-linking to the note */
|
|
5358
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
5359
|
+
/** Truncated preview of the note summary or body, up to 80 chars plus an ellipsis when truncated */
|
|
5360
|
+
notePreview?: Maybe<Scalars['String']['output']>;
|
|
5361
|
+
/** First name of the user who logged the visit */
|
|
5362
|
+
userFirstName?: Maybe<Scalars['String']['output']>;
|
|
5363
|
+
/** Id of the user who logged the visit */
|
|
5364
|
+
userId?: Maybe<Scalars['Int']['output']>;
|
|
5365
|
+
/** Last name of the user who logged the visit */
|
|
5366
|
+
userLastName?: Maybe<Scalars['String']['output']>;
|
|
5367
|
+
};
|
|
5368
|
+
/** Summary metrics for the Site Visit Report */
|
|
5369
|
+
export type SiteVisitSummaryType = {
|
|
5370
|
+
__typename?: 'SiteVisitSummaryType';
|
|
5371
|
+
/** Number of users who conducted at least one site visit */
|
|
5372
|
+
activeReps?: Maybe<Scalars['Int']['output']>;
|
|
5373
|
+
/** Total visits divided by number of users who logged a visit */
|
|
5374
|
+
avgVisitsPerUser?: Maybe<Scalars['Float']['output']>;
|
|
5375
|
+
/** Total number of site visit notes in range */
|
|
5376
|
+
totalVisits?: Maybe<Scalars['Int']['output']>;
|
|
5377
|
+
/** Number of unique companies with at least one site visit */
|
|
5378
|
+
uniqueClients?: Maybe<Scalars['Int']['output']>;
|
|
5379
|
+
};
|
|
5380
|
+
/** Per-user breakdown row for the Overview sub-tab */
|
|
5381
|
+
export type SiteVisitUserBreakdownType = {
|
|
5382
|
+
__typename?: 'SiteVisitUserBreakdownType';
|
|
5383
|
+
/** Total site visits by this user in range */
|
|
5384
|
+
totalVisits?: Maybe<Scalars['Int']['output']>;
|
|
5385
|
+
/** Distinct companies visited by this user in range */
|
|
5386
|
+
uniqueClients?: Maybe<Scalars['Int']['output']>;
|
|
5387
|
+
/** First name */
|
|
5388
|
+
userFirstName?: Maybe<Scalars['String']['output']>;
|
|
5389
|
+
/** Id of the user */
|
|
5390
|
+
userId?: Maybe<Scalars['Int']['output']>;
|
|
5391
|
+
/** Last name */
|
|
5392
|
+
userLastName?: Maybe<Scalars['String']['output']>;
|
|
5393
|
+
};
|
|
5301
5394
|
/** Skip a queued or draft campaign and advance next_scheduled_at on the config. */
|
|
5302
5395
|
export type SkipAutomatedProspecting = {
|
|
5303
5396
|
__typename?: 'SkipAutomatedProspecting';
|
|
@@ -12332,6 +12425,7 @@ export type SendEmailToEmailThreadMutation = {
|
|
|
12332
12425
|
grantId?: string | null;
|
|
12333
12426
|
hasAttachments?: boolean | null;
|
|
12334
12427
|
userId?: number | null;
|
|
12428
|
+
userName?: string | null;
|
|
12335
12429
|
accountId?: number | null;
|
|
12336
12430
|
contactId?: number | null;
|
|
12337
12431
|
companyId?: number | null;
|
|
@@ -23060,6 +23154,7 @@ export type EmailThreadQuery = {
|
|
|
23060
23154
|
grantId?: string | null;
|
|
23061
23155
|
hasAttachments?: boolean | null;
|
|
23062
23156
|
userId?: number | null;
|
|
23157
|
+
userName?: string | null;
|
|
23063
23158
|
accountId?: number | null;
|
|
23064
23159
|
contactId?: number | null;
|
|
23065
23160
|
companyId?: number | null;
|
|
@@ -23108,6 +23203,7 @@ export type EmailThreadsByCompanyQuery = {
|
|
|
23108
23203
|
grantId?: string | null;
|
|
23109
23204
|
hasAttachments?: boolean | null;
|
|
23110
23205
|
userId?: number | null;
|
|
23206
|
+
userName?: string | null;
|
|
23111
23207
|
accountId?: number | null;
|
|
23112
23208
|
contactId?: number | null;
|
|
23113
23209
|
companyId?: number | null;
|
|
@@ -23268,6 +23364,7 @@ export type MailLogQuery = {
|
|
|
23268
23364
|
grantId?: string | null;
|
|
23269
23365
|
hasAttachments?: boolean | null;
|
|
23270
23366
|
userId?: number | null;
|
|
23367
|
+
userName?: string | null;
|
|
23271
23368
|
accountId?: number | null;
|
|
23272
23369
|
contactId?: number | null;
|
|
23273
23370
|
companyId?: number | null;
|
|
@@ -23306,6 +23403,7 @@ export type MailLogsQuery = {
|
|
|
23306
23403
|
grantId?: string | null;
|
|
23307
23404
|
hasAttachments?: boolean | null;
|
|
23308
23405
|
userId?: number | null;
|
|
23406
|
+
userName?: string | null;
|
|
23309
23407
|
accountId?: number | null;
|
|
23310
23408
|
contactId?: number | null;
|
|
23311
23409
|
companyId?: number | null;
|
|
@@ -26723,6 +26821,58 @@ export type SegmentsQuery = {
|
|
|
26723
26821
|
} | null;
|
|
26724
26822
|
} | null;
|
|
26725
26823
|
};
|
|
26824
|
+
export type SiteVisitBreakdownByUserQueryVariables = Exact<{
|
|
26825
|
+
filters: SiteVisitFilterInput;
|
|
26826
|
+
}>;
|
|
26827
|
+
export type SiteVisitBreakdownByUserQuery = {
|
|
26828
|
+
__typename?: 'Query';
|
|
26829
|
+
siteVisitBreakdownByUser?: Array<{
|
|
26830
|
+
__typename?: 'SiteVisitUserBreakdownType';
|
|
26831
|
+
userId?: number | null;
|
|
26832
|
+
userFirstName?: string | null;
|
|
26833
|
+
userLastName?: string | null;
|
|
26834
|
+
totalVisits?: number | null;
|
|
26835
|
+
uniqueClients?: number | null;
|
|
26836
|
+
}> | null;
|
|
26837
|
+
};
|
|
26838
|
+
export type SiteVisitLogQueryVariables = Exact<{
|
|
26839
|
+
filters: SiteVisitFilterInput;
|
|
26840
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
26841
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
26842
|
+
}>;
|
|
26843
|
+
export type SiteVisitLogQuery = {
|
|
26844
|
+
__typename?: 'Query';
|
|
26845
|
+
siteVisitLog?: {
|
|
26846
|
+
__typename?: 'SiteVisitLogConnectionType';
|
|
26847
|
+
totalCount?: number | null;
|
|
26848
|
+
hasNextPage?: boolean | null;
|
|
26849
|
+
nextOffset?: number | null;
|
|
26850
|
+
nodes?: Array<{
|
|
26851
|
+
__typename?: 'SiteVisitLogNodeType';
|
|
26852
|
+
id?: string | null;
|
|
26853
|
+
date?: any | null;
|
|
26854
|
+
userId?: number | null;
|
|
26855
|
+
userFirstName?: string | null;
|
|
26856
|
+
userLastName?: string | null;
|
|
26857
|
+
companyId?: number | null;
|
|
26858
|
+
companyName?: string | null;
|
|
26859
|
+
notePreview?: string | null;
|
|
26860
|
+
} | null> | null;
|
|
26861
|
+
} | null;
|
|
26862
|
+
};
|
|
26863
|
+
export type SiteVisitReportSummaryQueryVariables = Exact<{
|
|
26864
|
+
filters: SiteVisitFilterInput;
|
|
26865
|
+
}>;
|
|
26866
|
+
export type SiteVisitReportSummaryQuery = {
|
|
26867
|
+
__typename?: 'Query';
|
|
26868
|
+
siteVisitReportSummary?: {
|
|
26869
|
+
__typename?: 'SiteVisitSummaryType';
|
|
26870
|
+
totalVisits?: number | null;
|
|
26871
|
+
uniqueClients?: number | null;
|
|
26872
|
+
avgVisitsPerUser?: number | null;
|
|
26873
|
+
activeReps?: number | null;
|
|
26874
|
+
} | null;
|
|
26875
|
+
};
|
|
26726
26876
|
export type StatesOptionsQueryVariables = Exact<{
|
|
26727
26877
|
[key: string]: never;
|
|
26728
26878
|
}>;
|
|
@@ -37022,6 +37172,119 @@ export type SegmentsQueryHookResult = ReturnType<typeof useSegmentsQuery>;
|
|
|
37022
37172
|
export type SegmentsLazyQueryHookResult = ReturnType<typeof useSegmentsLazyQuery>;
|
|
37023
37173
|
export type SegmentsSuspenseQueryHookResult = ReturnType<typeof useSegmentsSuspenseQuery>;
|
|
37024
37174
|
export type SegmentsQueryResult = Apollo.QueryResult<SegmentsQuery, SegmentsQueryVariables>;
|
|
37175
|
+
export declare const SiteVisitBreakdownByUserDocument: Apollo.DocumentNode;
|
|
37176
|
+
/**
|
|
37177
|
+
* __useSiteVisitBreakdownByUserQuery__
|
|
37178
|
+
*
|
|
37179
|
+
* To run a query within a React component, call `useSiteVisitBreakdownByUserQuery` and pass it any options that fit your needs.
|
|
37180
|
+
* When your component renders, `useSiteVisitBreakdownByUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
37181
|
+
* you can use to render your UI.
|
|
37182
|
+
*
|
|
37183
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
37184
|
+
*
|
|
37185
|
+
* @example
|
|
37186
|
+
* const { data, loading, error } = useSiteVisitBreakdownByUserQuery({
|
|
37187
|
+
* variables: {
|
|
37188
|
+
* filters: // value for 'filters'
|
|
37189
|
+
* },
|
|
37190
|
+
* });
|
|
37191
|
+
*/
|
|
37192
|
+
export declare function useSiteVisitBreakdownByUserQuery(baseOptions: Apollo.QueryHookOptions<SiteVisitBreakdownByUserQuery, SiteVisitBreakdownByUserQueryVariables> & ({
|
|
37193
|
+
variables: SiteVisitBreakdownByUserQueryVariables;
|
|
37194
|
+
skip?: boolean;
|
|
37195
|
+
} | {
|
|
37196
|
+
skip: boolean;
|
|
37197
|
+
})): Apollo.QueryResult<SiteVisitBreakdownByUserQuery, Exact<{
|
|
37198
|
+
filters: SiteVisitFilterInput;
|
|
37199
|
+
}>>;
|
|
37200
|
+
export declare function useSiteVisitBreakdownByUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SiteVisitBreakdownByUserQuery, SiteVisitBreakdownByUserQueryVariables>): Apollo.LazyQueryResultTuple<SiteVisitBreakdownByUserQuery, Exact<{
|
|
37201
|
+
filters: SiteVisitFilterInput;
|
|
37202
|
+
}>>;
|
|
37203
|
+
export declare function useSiteVisitBreakdownByUserSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<SiteVisitBreakdownByUserQuery, SiteVisitBreakdownByUserQueryVariables>): Apollo.UseSuspenseQueryResult<SiteVisitBreakdownByUserQuery | undefined, Exact<{
|
|
37204
|
+
filters: SiteVisitFilterInput;
|
|
37205
|
+
}>>;
|
|
37206
|
+
export type SiteVisitBreakdownByUserQueryHookResult = ReturnType<typeof useSiteVisitBreakdownByUserQuery>;
|
|
37207
|
+
export type SiteVisitBreakdownByUserLazyQueryHookResult = ReturnType<typeof useSiteVisitBreakdownByUserLazyQuery>;
|
|
37208
|
+
export type SiteVisitBreakdownByUserSuspenseQueryHookResult = ReturnType<typeof useSiteVisitBreakdownByUserSuspenseQuery>;
|
|
37209
|
+
export type SiteVisitBreakdownByUserQueryResult = Apollo.QueryResult<SiteVisitBreakdownByUserQuery, SiteVisitBreakdownByUserQueryVariables>;
|
|
37210
|
+
export declare const SiteVisitLogDocument: Apollo.DocumentNode;
|
|
37211
|
+
/**
|
|
37212
|
+
* __useSiteVisitLogQuery__
|
|
37213
|
+
*
|
|
37214
|
+
* To run a query within a React component, call `useSiteVisitLogQuery` and pass it any options that fit your needs.
|
|
37215
|
+
* When your component renders, `useSiteVisitLogQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
37216
|
+
* you can use to render your UI.
|
|
37217
|
+
*
|
|
37218
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
37219
|
+
*
|
|
37220
|
+
* @example
|
|
37221
|
+
* const { data, loading, error } = useSiteVisitLogQuery({
|
|
37222
|
+
* variables: {
|
|
37223
|
+
* filters: // value for 'filters'
|
|
37224
|
+
* offset: // value for 'offset'
|
|
37225
|
+
* limit: // value for 'limit'
|
|
37226
|
+
* },
|
|
37227
|
+
* });
|
|
37228
|
+
*/
|
|
37229
|
+
export declare function useSiteVisitLogQuery(baseOptions: Apollo.QueryHookOptions<SiteVisitLogQuery, SiteVisitLogQueryVariables> & ({
|
|
37230
|
+
variables: SiteVisitLogQueryVariables;
|
|
37231
|
+
skip?: boolean;
|
|
37232
|
+
} | {
|
|
37233
|
+
skip: boolean;
|
|
37234
|
+
})): Apollo.QueryResult<SiteVisitLogQuery, Exact<{
|
|
37235
|
+
filters: SiteVisitFilterInput;
|
|
37236
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
37237
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
37238
|
+
}>>;
|
|
37239
|
+
export declare function useSiteVisitLogLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SiteVisitLogQuery, SiteVisitLogQueryVariables>): Apollo.LazyQueryResultTuple<SiteVisitLogQuery, Exact<{
|
|
37240
|
+
filters: SiteVisitFilterInput;
|
|
37241
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
37242
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
37243
|
+
}>>;
|
|
37244
|
+
export declare function useSiteVisitLogSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<SiteVisitLogQuery, SiteVisitLogQueryVariables>): Apollo.UseSuspenseQueryResult<SiteVisitLogQuery | undefined, Exact<{
|
|
37245
|
+
filters: SiteVisitFilterInput;
|
|
37246
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
37247
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
37248
|
+
}>>;
|
|
37249
|
+
export type SiteVisitLogQueryHookResult = ReturnType<typeof useSiteVisitLogQuery>;
|
|
37250
|
+
export type SiteVisitLogLazyQueryHookResult = ReturnType<typeof useSiteVisitLogLazyQuery>;
|
|
37251
|
+
export type SiteVisitLogSuspenseQueryHookResult = ReturnType<typeof useSiteVisitLogSuspenseQuery>;
|
|
37252
|
+
export type SiteVisitLogQueryResult = Apollo.QueryResult<SiteVisitLogQuery, SiteVisitLogQueryVariables>;
|
|
37253
|
+
export declare const SiteVisitReportSummaryDocument: Apollo.DocumentNode;
|
|
37254
|
+
/**
|
|
37255
|
+
* __useSiteVisitReportSummaryQuery__
|
|
37256
|
+
*
|
|
37257
|
+
* To run a query within a React component, call `useSiteVisitReportSummaryQuery` and pass it any options that fit your needs.
|
|
37258
|
+
* When your component renders, `useSiteVisitReportSummaryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
37259
|
+
* you can use to render your UI.
|
|
37260
|
+
*
|
|
37261
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
37262
|
+
*
|
|
37263
|
+
* @example
|
|
37264
|
+
* const { data, loading, error } = useSiteVisitReportSummaryQuery({
|
|
37265
|
+
* variables: {
|
|
37266
|
+
* filters: // value for 'filters'
|
|
37267
|
+
* },
|
|
37268
|
+
* });
|
|
37269
|
+
*/
|
|
37270
|
+
export declare function useSiteVisitReportSummaryQuery(baseOptions: Apollo.QueryHookOptions<SiteVisitReportSummaryQuery, SiteVisitReportSummaryQueryVariables> & ({
|
|
37271
|
+
variables: SiteVisitReportSummaryQueryVariables;
|
|
37272
|
+
skip?: boolean;
|
|
37273
|
+
} | {
|
|
37274
|
+
skip: boolean;
|
|
37275
|
+
})): Apollo.QueryResult<SiteVisitReportSummaryQuery, Exact<{
|
|
37276
|
+
filters: SiteVisitFilterInput;
|
|
37277
|
+
}>>;
|
|
37278
|
+
export declare function useSiteVisitReportSummaryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SiteVisitReportSummaryQuery, SiteVisitReportSummaryQueryVariables>): Apollo.LazyQueryResultTuple<SiteVisitReportSummaryQuery, Exact<{
|
|
37279
|
+
filters: SiteVisitFilterInput;
|
|
37280
|
+
}>>;
|
|
37281
|
+
export declare function useSiteVisitReportSummarySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<SiteVisitReportSummaryQuery, SiteVisitReportSummaryQueryVariables>): Apollo.UseSuspenseQueryResult<SiteVisitReportSummaryQuery | undefined, Exact<{
|
|
37282
|
+
filters: SiteVisitFilterInput;
|
|
37283
|
+
}>>;
|
|
37284
|
+
export type SiteVisitReportSummaryQueryHookResult = ReturnType<typeof useSiteVisitReportSummaryQuery>;
|
|
37285
|
+
export type SiteVisitReportSummaryLazyQueryHookResult = ReturnType<typeof useSiteVisitReportSummaryLazyQuery>;
|
|
37286
|
+
export type SiteVisitReportSummarySuspenseQueryHookResult = ReturnType<typeof useSiteVisitReportSummarySuspenseQuery>;
|
|
37287
|
+
export type SiteVisitReportSummaryQueryResult = Apollo.QueryResult<SiteVisitReportSummaryQuery, SiteVisitReportSummaryQueryVariables>;
|
|
37025
37288
|
export declare const StatesOptionsDocument: Apollo.DocumentNode;
|
|
37026
37289
|
/**
|
|
37027
37290
|
* __useStatesOptionsQuery__
|
|
@@ -37,8 +37,8 @@ exports.CreateRfqDocument = exports.CreateNotificationDocument = exports.CreateM
|
|
|
37
37
|
exports.RemoveMemberDocument = exports.RemoveCustomContactFromSupplierListDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCombinedCampaignDocument = exports.RemoveContactsFromCampaignDocument = exports.RemoveContactFromSupplierListDocument = exports.RemoveContactFromMySupplierDocument = exports.RemoveContactFromAutomatedProspectingDocument = exports.RejectInvitationDocument = exports.ReduceSpamDocument = exports.PreviewCampaignEmailDocument = exports.PauseCombinedCampaignDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.LaunchAutomatedProspectingDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.GenerateNewEmailDocument = exports.GenerateCallCampaignScriptDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSupplierlistDocument = exports.DeleteSegmentDocument = exports.DeleteSavedSearchSpotDocument = exports.DeleteSalesGoalDocument = exports.DeleteRfqlineitemDocument = exports.DeleteRfqDocument = exports.DeleteNotificationDocument = exports.DeleteMysupplierDocument = exports.DeleteEmailTemplateDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCombinedCampaignTemplateDocument = exports.DeleteCombinedCampaignDocument = exports.DeleteCampaignDocument = exports.DeleteCallScriptTemplateDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSupplierlistDocument = exports.CreateSegmentDocument = exports.CreateSavedSearchSpotDocument = exports.CreateSalesGoalDocument = exports.CreateRfqlineitemDocument = void 0;
|
|
38
38
|
exports.UpdateSalesGoalDocument = exports.UpdateRfqlineitemDocument = exports.UpdateRfqDocument = exports.UpdateMysupplierDocument = exports.UpdateEmailTemplateDocument = exports.UpdateEmailScheduleDocument = exports.UpdateEmailReportSettingsDocument = exports.UpdateContactDocument = exports.UpdateCompanyProfileDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyExternalIdentifierDocument = exports.UpdateCompanyDocument = exports.UpdateCombinedCampaignTemplateDocument = exports.UpdateCombinedCampaignLogsDocument = exports.UpdateCombinedCampaignLogDocument = exports.UpdateCombinedCampaignDocument = exports.UpdateCampaignDocument = exports.UpdateCallScriptTemplateDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UpdateAutomatedProspectingIndustriesDocument = exports.UpdateAutomatedProspectingCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnskipAutomatedProspectingDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCombinedCampaignDocument = exports.StartCampaignDocument = exports.SkipAutomatedProspectingDocument = exports.SignupDocument = exports.SetLeadNotInterestedDocument = exports.SendTestEmailReportDocument = exports.SendTestEmailCombinedDocument = exports.SendTestEmailDocument = exports.SendRfqTestEmailDocument = exports.SendRfqDocument = exports.SendManualEmailDocument = exports.SendEmailToEmailThreadDocument = exports.SendEmailToContactDocument = exports.ScheduleRfqDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.SaveContactsToCrmDocument = exports.SaveAutomatedProspectingConfigDocument = exports.ResumeCombinedCampaignDocument = exports.RequestProAccessDocument = exports.RemoveSupplierFromSupplierListDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = void 0;
|
|
39
39
|
exports.CurrentAccountDocument = exports.CrmFunnelReportDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanySearchDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyMetadataDocument = exports.CompanyExternalIdentifierDocument = exports.CompanyAudiencesAndCampaignsDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignTemplatesDocument = exports.CombinedCampaignTemplateDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallScriptTemplatesDocument = exports.CallScriptTemplateDocument = exports.CallCampaignsDocument = exports.CallCampaignScriptPreviewDocument = exports.CallCampaignReportDocument = exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AutomatedProspectingStatsDocument = exports.AutomatedProspectingConfigDocument = exports.AutomatedProspectingCampaignsDocument = exports.AutomatedProspectingCampaignDocument = exports.AccountSubscriptionDocument = exports.AccountProfileDocument = exports.AccountMembersDocument = exports.AccountFeatureFlagsDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSupplierlistDocument = exports.UpdateSegmentDocument = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = void 0;
|
|
40
|
+
exports.SupplierListCustomContactsDocument = exports.SupplierListContactsDocument = exports.SupplierDocument = exports.SuggestedCompanyFiltersDocument = exports.StatesOptionsDocument = exports.SiteVisitReportSummaryDocument = exports.SiteVisitLogDocument = exports.SiteVisitBreakdownByUserDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.SavedSearchSpotsDocument = exports.SalesGoalsDocument = exports.SalesGoalReportDocument = exports.SalesGoalDocument = exports.RfqlineitemListDocument = exports.RfqlineitemDocument = exports.RfqSuppliersDocument = exports.RfqListDocument = exports.RfqDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MysupplierListDocument = exports.MysupplierDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.MailLogsDocument = exports.MailLogDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.GoogleReverseGeocodeDocument = exports.GooglePlacesAutocompleteDocument = exports.GooglePlaceDetailsDocument = exports.EmployeeSizesDocument = exports.EmailThreadsByCompanyDocument = exports.EmailThreadDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.EmailCampaignReportStatsDocument = exports.EmailCampaignReportOverviewDocument = exports.EmailCampaignReportByCampaignDocument = exports.DashboardStatsDocument = exports.CurrentPipelineTotalDocument = void 0;
|
|
41
|
+
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SuppliersDocument = exports.SupplierlistListDocument = exports.SupplierlistDocument = void 0;
|
|
42
42
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
43
43
|
exports.useAddContactToAutomatedProspectingMutation = useAddContactToAutomatedProspectingMutation;
|
|
44
44
|
exports.useAddContactToSupplierListMutation = useAddContactToSupplierListMutation;
|
|
@@ -438,6 +438,15 @@ exports.useSegmentSuspenseQuery = useSegmentSuspenseQuery;
|
|
|
438
438
|
exports.useSegmentsQuery = useSegmentsQuery;
|
|
439
439
|
exports.useSegmentsLazyQuery = useSegmentsLazyQuery;
|
|
440
440
|
exports.useSegmentsSuspenseQuery = useSegmentsSuspenseQuery;
|
|
441
|
+
exports.useSiteVisitBreakdownByUserQuery = useSiteVisitBreakdownByUserQuery;
|
|
442
|
+
exports.useSiteVisitBreakdownByUserLazyQuery = useSiteVisitBreakdownByUserLazyQuery;
|
|
443
|
+
exports.useSiteVisitBreakdownByUserSuspenseQuery = useSiteVisitBreakdownByUserSuspenseQuery;
|
|
444
|
+
exports.useSiteVisitLogQuery = useSiteVisitLogQuery;
|
|
445
|
+
exports.useSiteVisitLogLazyQuery = useSiteVisitLogLazyQuery;
|
|
446
|
+
exports.useSiteVisitLogSuspenseQuery = useSiteVisitLogSuspenseQuery;
|
|
447
|
+
exports.useSiteVisitReportSummaryQuery = useSiteVisitReportSummaryQuery;
|
|
448
|
+
exports.useSiteVisitReportSummaryLazyQuery = useSiteVisitReportSummaryLazyQuery;
|
|
449
|
+
exports.useSiteVisitReportSummarySuspenseQuery = useSiteVisitReportSummarySuspenseQuery;
|
|
441
450
|
exports.useStatesOptionsQuery = useStatesOptionsQuery;
|
|
442
451
|
exports.useStatesOptionsLazyQuery = useStatesOptionsLazyQuery;
|
|
443
452
|
exports.useStatesOptionsSuspenseQuery = useStatesOptionsSuspenseQuery;
|
|
@@ -562,11 +571,14 @@ var DateRangeEnum;
|
|
|
562
571
|
(function (DateRangeEnum) {
|
|
563
572
|
DateRangeEnum["AllTime"] = "ALL_TIME";
|
|
564
573
|
DateRangeEnum["Custom"] = "CUSTOM";
|
|
574
|
+
DateRangeEnum["LastMonth"] = "LAST_MONTH";
|
|
575
|
+
DateRangeEnum["LastWeek"] = "LAST_WEEK";
|
|
565
576
|
DateRangeEnum["ThisMonth"] = "THIS_MONTH";
|
|
566
577
|
DateRangeEnum["ThisQuarter"] = "THIS_QUARTER";
|
|
567
578
|
DateRangeEnum["ThisWeek"] = "THIS_WEEK";
|
|
568
579
|
DateRangeEnum["ThisYear"] = "THIS_YEAR";
|
|
569
580
|
DateRangeEnum["Today"] = "TODAY";
|
|
581
|
+
DateRangeEnum["Yesterday"] = "YESTERDAY";
|
|
570
582
|
})(DateRangeEnum || (exports.DateRangeEnum = DateRangeEnum = {}));
|
|
571
583
|
/** Email communication type */
|
|
572
584
|
var MailLogTypeEnum;
|
|
@@ -8507,6 +8519,7 @@ exports.SendEmailToEmailThreadDocument = (0, client_1.gql) `
|
|
|
8507
8519
|
grantId
|
|
8508
8520
|
hasAttachments
|
|
8509
8521
|
userId
|
|
8522
|
+
userName
|
|
8510
8523
|
accountId
|
|
8511
8524
|
contactId
|
|
8512
8525
|
companyId
|
|
@@ -20647,6 +20660,7 @@ exports.EmailThreadDocument = (0, client_1.gql) `
|
|
|
20647
20660
|
grantId
|
|
20648
20661
|
hasAttachments
|
|
20649
20662
|
userId
|
|
20663
|
+
userName
|
|
20650
20664
|
accountId
|
|
20651
20665
|
contactId
|
|
20652
20666
|
companyId
|
|
@@ -20717,6 +20731,7 @@ exports.EmailThreadsByCompanyDocument = (0, client_1.gql) `
|
|
|
20717
20731
|
grantId
|
|
20718
20732
|
hasAttachments
|
|
20719
20733
|
userId
|
|
20734
|
+
userName
|
|
20720
20735
|
accountId
|
|
20721
20736
|
contactId
|
|
20722
20737
|
companyId
|
|
@@ -21050,6 +21065,7 @@ exports.MailLogDocument = (0, client_1.gql) `
|
|
|
21050
21065
|
grantId
|
|
21051
21066
|
hasAttachments
|
|
21052
21067
|
userId
|
|
21068
|
+
userName
|
|
21053
21069
|
accountId
|
|
21054
21070
|
contactId
|
|
21055
21071
|
companyId
|
|
@@ -21112,6 +21128,7 @@ exports.MailLogsDocument = (0, client_1.gql) `
|
|
|
21112
21128
|
grantId
|
|
21113
21129
|
hasAttachments
|
|
21114
21130
|
userId
|
|
21131
|
+
userName
|
|
21115
21132
|
accountId
|
|
21116
21133
|
contactId
|
|
21117
21134
|
companyId
|
|
@@ -24925,6 +24942,132 @@ function useSegmentsSuspenseQuery(baseOptions) {
|
|
|
24925
24942
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
24926
24943
|
return Apollo.useSuspenseQuery(exports.SegmentsDocument, options);
|
|
24927
24944
|
}
|
|
24945
|
+
exports.SiteVisitBreakdownByUserDocument = (0, client_1.gql) `
|
|
24946
|
+
query SiteVisitBreakdownByUser($filters: SiteVisitFilterInput!) {
|
|
24947
|
+
siteVisitBreakdownByUser(filters: $filters) {
|
|
24948
|
+
userId
|
|
24949
|
+
userFirstName
|
|
24950
|
+
userLastName
|
|
24951
|
+
totalVisits
|
|
24952
|
+
uniqueClients
|
|
24953
|
+
}
|
|
24954
|
+
}
|
|
24955
|
+
`;
|
|
24956
|
+
/**
|
|
24957
|
+
* __useSiteVisitBreakdownByUserQuery__
|
|
24958
|
+
*
|
|
24959
|
+
* To run a query within a React component, call `useSiteVisitBreakdownByUserQuery` and pass it any options that fit your needs.
|
|
24960
|
+
* When your component renders, `useSiteVisitBreakdownByUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
24961
|
+
* you can use to render your UI.
|
|
24962
|
+
*
|
|
24963
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
24964
|
+
*
|
|
24965
|
+
* @example
|
|
24966
|
+
* const { data, loading, error } = useSiteVisitBreakdownByUserQuery({
|
|
24967
|
+
* variables: {
|
|
24968
|
+
* filters: // value for 'filters'
|
|
24969
|
+
* },
|
|
24970
|
+
* });
|
|
24971
|
+
*/
|
|
24972
|
+
function useSiteVisitBreakdownByUserQuery(baseOptions) {
|
|
24973
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
24974
|
+
return Apollo.useQuery(exports.SiteVisitBreakdownByUserDocument, options);
|
|
24975
|
+
}
|
|
24976
|
+
function useSiteVisitBreakdownByUserLazyQuery(baseOptions) {
|
|
24977
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
24978
|
+
return Apollo.useLazyQuery(exports.SiteVisitBreakdownByUserDocument, options);
|
|
24979
|
+
}
|
|
24980
|
+
function useSiteVisitBreakdownByUserSuspenseQuery(baseOptions) {
|
|
24981
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
24982
|
+
return Apollo.useSuspenseQuery(exports.SiteVisitBreakdownByUserDocument, options);
|
|
24983
|
+
}
|
|
24984
|
+
exports.SiteVisitLogDocument = (0, client_1.gql) `
|
|
24985
|
+
query SiteVisitLog($filters: SiteVisitFilterInput!, $offset: Int, $limit: Int) {
|
|
24986
|
+
siteVisitLog(filters: $filters, offset: $offset, limit: $limit) {
|
|
24987
|
+
nodes {
|
|
24988
|
+
id
|
|
24989
|
+
date
|
|
24990
|
+
userId
|
|
24991
|
+
userFirstName
|
|
24992
|
+
userLastName
|
|
24993
|
+
companyId
|
|
24994
|
+
companyName
|
|
24995
|
+
notePreview
|
|
24996
|
+
}
|
|
24997
|
+
totalCount
|
|
24998
|
+
hasNextPage
|
|
24999
|
+
nextOffset
|
|
25000
|
+
}
|
|
25001
|
+
}
|
|
25002
|
+
`;
|
|
25003
|
+
/**
|
|
25004
|
+
* __useSiteVisitLogQuery__
|
|
25005
|
+
*
|
|
25006
|
+
* To run a query within a React component, call `useSiteVisitLogQuery` and pass it any options that fit your needs.
|
|
25007
|
+
* When your component renders, `useSiteVisitLogQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
25008
|
+
* you can use to render your UI.
|
|
25009
|
+
*
|
|
25010
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
25011
|
+
*
|
|
25012
|
+
* @example
|
|
25013
|
+
* const { data, loading, error } = useSiteVisitLogQuery({
|
|
25014
|
+
* variables: {
|
|
25015
|
+
* filters: // value for 'filters'
|
|
25016
|
+
* offset: // value for 'offset'
|
|
25017
|
+
* limit: // value for 'limit'
|
|
25018
|
+
* },
|
|
25019
|
+
* });
|
|
25020
|
+
*/
|
|
25021
|
+
function useSiteVisitLogQuery(baseOptions) {
|
|
25022
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
25023
|
+
return Apollo.useQuery(exports.SiteVisitLogDocument, options);
|
|
25024
|
+
}
|
|
25025
|
+
function useSiteVisitLogLazyQuery(baseOptions) {
|
|
25026
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
25027
|
+
return Apollo.useLazyQuery(exports.SiteVisitLogDocument, options);
|
|
25028
|
+
}
|
|
25029
|
+
function useSiteVisitLogSuspenseQuery(baseOptions) {
|
|
25030
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
25031
|
+
return Apollo.useSuspenseQuery(exports.SiteVisitLogDocument, options);
|
|
25032
|
+
}
|
|
25033
|
+
exports.SiteVisitReportSummaryDocument = (0, client_1.gql) `
|
|
25034
|
+
query SiteVisitReportSummary($filters: SiteVisitFilterInput!) {
|
|
25035
|
+
siteVisitReportSummary(filters: $filters) {
|
|
25036
|
+
totalVisits
|
|
25037
|
+
uniqueClients
|
|
25038
|
+
avgVisitsPerUser
|
|
25039
|
+
activeReps
|
|
25040
|
+
}
|
|
25041
|
+
}
|
|
25042
|
+
`;
|
|
25043
|
+
/**
|
|
25044
|
+
* __useSiteVisitReportSummaryQuery__
|
|
25045
|
+
*
|
|
25046
|
+
* To run a query within a React component, call `useSiteVisitReportSummaryQuery` and pass it any options that fit your needs.
|
|
25047
|
+
* When your component renders, `useSiteVisitReportSummaryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
25048
|
+
* you can use to render your UI.
|
|
25049
|
+
*
|
|
25050
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
25051
|
+
*
|
|
25052
|
+
* @example
|
|
25053
|
+
* const { data, loading, error } = useSiteVisitReportSummaryQuery({
|
|
25054
|
+
* variables: {
|
|
25055
|
+
* filters: // value for 'filters'
|
|
25056
|
+
* },
|
|
25057
|
+
* });
|
|
25058
|
+
*/
|
|
25059
|
+
function useSiteVisitReportSummaryQuery(baseOptions) {
|
|
25060
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
25061
|
+
return Apollo.useQuery(exports.SiteVisitReportSummaryDocument, options);
|
|
25062
|
+
}
|
|
25063
|
+
function useSiteVisitReportSummaryLazyQuery(baseOptions) {
|
|
25064
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
25065
|
+
return Apollo.useLazyQuery(exports.SiteVisitReportSummaryDocument, options);
|
|
25066
|
+
}
|
|
25067
|
+
function useSiteVisitReportSummarySuspenseQuery(baseOptions) {
|
|
25068
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
25069
|
+
return Apollo.useSuspenseQuery(exports.SiteVisitReportSummaryDocument, options);
|
|
25070
|
+
}
|
|
24928
25071
|
exports.StatesOptionsDocument = (0, client_1.gql) `
|
|
24929
25072
|
query StatesOptions {
|
|
24930
25073
|
statesOptions {
|
package/dist/mutations.js
CHANGED
package/dist/queries.d.ts
CHANGED
|
@@ -34,6 +34,9 @@ export declare const DASHBOARD_STATS: import("@apollo/client").DocumentNode;
|
|
|
34
34
|
export declare const CRM_FUNNEL_REPORT: import("@apollo/client").DocumentNode;
|
|
35
35
|
export declare const CURRENT_PIPELINE_TOTAL: import("@apollo/client").DocumentNode;
|
|
36
36
|
export declare const SALES_GOAL_REPORT: import("@apollo/client").DocumentNode;
|
|
37
|
+
export declare const SITE_VISIT_REPORT_SUMMARY: import("@apollo/client").DocumentNode;
|
|
38
|
+
export declare const SITE_VISIT_LOG: import("@apollo/client").DocumentNode;
|
|
39
|
+
export declare const SITE_VISIT_BREAKDOWN_BY_USER: import("@apollo/client").DocumentNode;
|
|
37
40
|
export declare const RECENT_HISTORY: import("@apollo/client").DocumentNode;
|
|
38
41
|
export declare const CALL_SCRIPT_TEMPLATES: import("@apollo/client").DocumentNode;
|
|
39
42
|
export declare const CALL_SCRIPT_TEMPLATE: import("@apollo/client").DocumentNode;
|
package/dist/queries.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.SALES_GOALS = exports.CALL_CAMPAIGN_SCRIPT_PREVIEW = exports.CALL_CAMPAIGN_REPORT = exports.CALL_CAMPAIGN_LOG = exports.CALL_CAMPAIGN_LOGS = exports.CALL_CAMPAIGN_ANALYTICS = exports.CALL_CAMPAIGN = exports.CALL_CAMPAIGNS = exports.CALL_SCRIPT_TEMPLATE = exports.CALL_SCRIPT_TEMPLATES = exports.RECENT_HISTORY = exports.SITE_VISIT_BREAKDOWN_BY_USER = exports.SITE_VISIT_LOG = exports.SITE_VISIT_REPORT_SUMMARY = exports.SALES_GOAL_REPORT = exports.CURRENT_PIPELINE_TOTAL = exports.CRM_FUNNEL_REPORT = exports.DASHBOARD_STATS = exports.EMAIL_THREADS_BY_COMPANY = exports.EMAIL_THREAD = exports.MAIL_LOG = exports.MAIL_LOGS = exports.COMBINED_CAMPAIGN_TEMPLATE = exports.COMBINED_CAMPAIGN_TEMPLATES = exports.COMBINED_CAMPAIGN_STEPS = exports.COMBINED_CAMPAIGN_CONTACTS = exports.COMBINED_CAMPAIGN_LOGS = exports.COMBINED_CAMPAIGN = exports.COMBINED_CAMPAIGNS = exports.ACCOUNT_SUBSCRIPTION = exports.SUPPLIER_LIST_CUSTOM_CONTACTS = exports.SUPPLIER_LIST_CONTACTS = exports.RFQ_SUPPLIERS = exports.SUPPLIER = exports.SUPPLIERS = exports.RFQLINEITEM_LIST = exports.RFQLINEITEM = exports.SUPPLIERLIST_LIST = exports.SUPPLIERLIST = exports.RFQ_LIST = exports.RFQ = exports.MYSUPPLIER_LIST = exports.MYSUPPLIER = exports.PRODUCT_TYPES = exports.PRODUCT_CATEGORIES = exports.INDUSTRY_SECTORS = exports.INDUSTRY_TYPES = exports.METAL_GRADES = exports.METAL_TYPES = exports.SAVED_SEARCH_SPOTS = void 0;
|
|
4
|
+
exports.MY_INVITATIONS = exports.BUSINESS_PROFILE = exports.ACCOUNT_FEATURE_FLAGS = exports.PENDING_INVITATIONS = exports.ACCOUNT_MEMBERS = exports.CURRENT_ACCOUNT = exports.COMPANY_EXTERNAL_IDENTIFIER = exports.SUGGESTED_COMPANY_FILTERS = exports.COMPANY_AUDIENCES_AND_CAMPAIGNS = exports.EMPLOYEE_SIZES = exports.STATES_OPTIONS = exports.US_STATES = exports.COMPANY_METADATA = exports.CONTACT = exports.COMPANY = exports.SEARCH_CONTACTS = exports.CONTACTS = exports.COMPANY_SEARCH = exports.COMPANIES = exports.COMPANY_NOTE = exports.COMPANY_NOTES = exports.AUTOMATED_PROSPECTING_STATS = exports.AUTOMATED_PROSPECTING_CAMPAIGN = exports.AUTOMATED_PROSPECTING_CAMPAIGNS = exports.AUTOMATED_PROSPECTING_CONFIG = exports.GOOGLE_PLACE_DETAILS = exports.GOOGLE_PLACES_AUTOCOMPLETE = exports.GOOGLE_REVERSE_GEOCODE = exports.CONTACTS_IN_SEGMENT = exports.SEGMENT = exports.SEGMENTS = exports.EMAIL_CAMPAIGN_REPORT_BY_CAMPAIGN = exports.EMAIL_CAMPAIGN_REPORT_OVERVIEW = exports.EMAIL_CAMPAIGN_REPORT_STATS = exports.CAMPAIGN_CONTACTS = exports.CAMPAIGN_LOGS = exports.CAMPAIGN_ANALYTICS = exports.CAMPAIGN_STATS = exports.CAMPAIGN = exports.CAMPAIGNS = exports.EMAIL_TEMPLATES = exports.EMAIL_TEMPLATE = exports.NYLAS_CONNECTION = exports.RECENT_NOTIFICATIONS = exports.NOTIFICATION = exports.NOTIFICATIONS = exports.UNREAD_NOTIFICATIONS_COUNT = exports.TASK = exports.TASKS = exports.SALES_GOAL = void 0;
|
|
5
|
+
exports.ACCOUNT_PROFILE = exports.USER_PROFILE = void 0;
|
|
5
6
|
const client_1 = require("@apollo/client");
|
|
6
7
|
exports.SAVED_SEARCH_SPOTS = (0, client_1.gql) `
|
|
7
8
|
query SavedSearchSpots {
|
|
@@ -5742,6 +5743,7 @@ query MailLogs($filters: MailLogFilterInput) {
|
|
|
5742
5743
|
grantId
|
|
5743
5744
|
hasAttachments
|
|
5744
5745
|
userId
|
|
5746
|
+
userName
|
|
5745
5747
|
accountId
|
|
5746
5748
|
contactId
|
|
5747
5749
|
companyId
|
|
@@ -5783,6 +5785,7 @@ query MailLog($id: Int!) {
|
|
|
5783
5785
|
grantId
|
|
5784
5786
|
hasAttachments
|
|
5785
5787
|
userId
|
|
5788
|
+
userName
|
|
5786
5789
|
accountId
|
|
5787
5790
|
contactId
|
|
5788
5791
|
companyId
|
|
@@ -5818,6 +5821,7 @@ query EmailThread($threadId: String!, $companyId: Int) {
|
|
|
5818
5821
|
grantId
|
|
5819
5822
|
hasAttachments
|
|
5820
5823
|
userId
|
|
5824
|
+
userName
|
|
5821
5825
|
accountId
|
|
5822
5826
|
contactId
|
|
5823
5827
|
companyId
|
|
@@ -5858,6 +5862,7 @@ query EmailThreadsByCompany($companyId: Int!, $page: Int, $pageSize: Int) {
|
|
|
5858
5862
|
grantId
|
|
5859
5863
|
hasAttachments
|
|
5860
5864
|
userId
|
|
5865
|
+
userName
|
|
5861
5866
|
accountId
|
|
5862
5867
|
contactId
|
|
5863
5868
|
companyId
|
|
@@ -5992,6 +5997,43 @@ query SalesGoalReport($salesGoalId: Int!, $forUser: Int) {
|
|
|
5992
5997
|
overallCompletedPercentage
|
|
5993
5998
|
}
|
|
5994
5999
|
}`;
|
|
6000
|
+
exports.SITE_VISIT_REPORT_SUMMARY = (0, client_1.gql) `
|
|
6001
|
+
query SiteVisitReportSummary($filters: SiteVisitFilterInput!) {
|
|
6002
|
+
siteVisitReportSummary(filters: $filters) {
|
|
6003
|
+
totalVisits
|
|
6004
|
+
uniqueClients
|
|
6005
|
+
avgVisitsPerUser
|
|
6006
|
+
activeReps
|
|
6007
|
+
}
|
|
6008
|
+
}`;
|
|
6009
|
+
exports.SITE_VISIT_LOG = (0, client_1.gql) `
|
|
6010
|
+
query SiteVisitLog($filters: SiteVisitFilterInput!, $offset: Int, $limit: Int) {
|
|
6011
|
+
siteVisitLog(filters: $filters, offset: $offset, limit: $limit) {
|
|
6012
|
+
nodes {
|
|
6013
|
+
id
|
|
6014
|
+
date
|
|
6015
|
+
userId
|
|
6016
|
+
userFirstName
|
|
6017
|
+
userLastName
|
|
6018
|
+
companyId
|
|
6019
|
+
companyName
|
|
6020
|
+
notePreview
|
|
6021
|
+
}
|
|
6022
|
+
totalCount
|
|
6023
|
+
hasNextPage
|
|
6024
|
+
nextOffset
|
|
6025
|
+
}
|
|
6026
|
+
}`;
|
|
6027
|
+
exports.SITE_VISIT_BREAKDOWN_BY_USER = (0, client_1.gql) `
|
|
6028
|
+
query SiteVisitBreakdownByUser($filters: SiteVisitFilterInput!) {
|
|
6029
|
+
siteVisitBreakdownByUser(filters: $filters) {
|
|
6030
|
+
userId
|
|
6031
|
+
userFirstName
|
|
6032
|
+
userLastName
|
|
6033
|
+
totalVisits
|
|
6034
|
+
uniqueClients
|
|
6035
|
+
}
|
|
6036
|
+
}`;
|
|
5995
6037
|
exports.RECENT_HISTORY = (0, client_1.gql) `
|
|
5996
6038
|
query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortInput, $pagination: PaginationInput) {
|
|
5997
6039
|
recentHistory(filter: $filter, sort: $sort, pagination: $pagination) {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CloudForgeClientOptions } from "./client";
|
|
2
|
-
import { AddContactToSupplierListInput, AddCustomContactToSupplierInput, AddSupplierToMySuppliersInput, AddSupplierToSupplierListInput, AutomatedProspectingCampaignInput, BulkAssignOwnersInput, CallReportFilterInput, CallScriptTemplateInput, CombinedCampaignFilterInput, CombinedCampaignInput, CombinedCampaignStepInput, CombinedCampaignTemplateInput, CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanyProfileInput, CompanySortInput, CompleteRfqInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSalesGoalInput, CreateSegmentMutationVariables, CreateTaskMutationVariables, CrmCurrentPipelineFilterInput, CrmFilterInput, CustomContactInput, EmailAttachmentInput, EmailCampaignReportFilterInput, EmailReportSettingsInput, EmailScheduleInput, EmailToneInput, FileUploadInput, GenerateCallCampaignScriptInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MailLogFilterInput, MicrosoftUserInput, MySupplierInput, PaginationInput, Procurement_MySupplierFilterInput, Procurement_RfqFilterInput, Procurement_RfqLineItemFilterInput, Procurement_SupplierListFilterInput, RecentHistoryFilterInput, RecentHistorySortInput, ReduceSpamInput, RemoveContactFromMySupplierInput, RemoveContactFromSupplierListInput, RemoveCustomContactFromSupplierInput, RemoveSupplierFromSupplierListInput, RfqInput, RfqLineItemInput, SalesGoalFilterInput, SaveContactsToCrmInput, SaveNylasConnectionMutationVariables, Scalars, ScheduleRfqInput, SegmentFilterInput, SemanticSearchConfigInput, SendRfqInput, SendRfqTestEmailInput, SetLeadAsNotInterestedInput, SignupInput, SubmitFeedbackMutationVariables, SupplierListInput, SupplierSearchFilterInput, SupplierSortInput, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCombinedCampaignInput, UpdateCombinedCampaignLogInput, UpdateCompanyExternalIdentifierInput, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSalesGoalInput, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
2
|
+
import { AddContactToSupplierListInput, AddCustomContactToSupplierInput, AddSupplierToMySuppliersInput, AddSupplierToSupplierListInput, AutomatedProspectingCampaignInput, BulkAssignOwnersInput, CallReportFilterInput, CallScriptTemplateInput, CombinedCampaignFilterInput, CombinedCampaignInput, CombinedCampaignStepInput, CombinedCampaignTemplateInput, CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanyProfileInput, CompanySortInput, CompleteRfqInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSalesGoalInput, CreateSegmentMutationVariables, CreateTaskMutationVariables, CrmCurrentPipelineFilterInput, CrmFilterInput, CustomContactInput, EmailAttachmentInput, EmailCampaignReportFilterInput, EmailReportSettingsInput, EmailScheduleInput, EmailToneInput, FileUploadInput, GenerateCallCampaignScriptInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MailLogFilterInput, MicrosoftUserInput, MySupplierInput, PaginationInput, Procurement_MySupplierFilterInput, Procurement_RfqFilterInput, Procurement_RfqLineItemFilterInput, Procurement_SupplierListFilterInput, RecentHistoryFilterInput, RecentHistorySortInput, ReduceSpamInput, RemoveContactFromMySupplierInput, RemoveContactFromSupplierListInput, RemoveCustomContactFromSupplierInput, RemoveSupplierFromSupplierListInput, RfqInput, RfqLineItemInput, SalesGoalFilterInput, SaveContactsToCrmInput, SaveNylasConnectionMutationVariables, Scalars, ScheduleRfqInput, SegmentFilterInput, SemanticSearchConfigInput, SendRfqInput, SendRfqTestEmailInput, SetLeadAsNotInterestedInput, SignupInput, SiteVisitFilterInput, SubmitFeedbackMutationVariables, SupplierListInput, SupplierSearchFilterInput, SupplierSortInput, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCombinedCampaignInput, UpdateCombinedCampaignLogInput, UpdateCompanyExternalIdentifierInput, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSalesGoalInput, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
3
3
|
export declare class CloudForgeSDK {
|
|
4
4
|
private client;
|
|
5
5
|
private apolloClient;
|
|
@@ -235,6 +235,9 @@ export declare class CloudForgeSDK {
|
|
|
235
235
|
searchContacts(filters?: ContactFilterInput, pagination?: PaginationInput, sort?: ContactSortInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
236
236
|
segment(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
237
237
|
segments(pagination?: PaginationInput, includeSystemTemplates?: boolean, filters?: SegmentFilterInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
238
|
+
siteVisitBreakdownByUser(filters: SiteVisitFilterInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
239
|
+
siteVisitLog(filters: SiteVisitFilterInput, offset?: number, limit?: number): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
240
|
+
siteVisitReportSummary(filters: SiteVisitFilterInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
238
241
|
statesOptions(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
239
242
|
suggestedCompanyFilters(similarToCompany?: string, similarToUrl?: string, similarToUrls?: string[]): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
240
243
|
supplier(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -1377,6 +1377,24 @@ class CloudForgeSDK {
|
|
|
1377
1377
|
variables: { pagination, includeSystemTemplates, filters }
|
|
1378
1378
|
});
|
|
1379
1379
|
}
|
|
1380
|
+
async siteVisitBreakdownByUser(filters) {
|
|
1381
|
+
return this.apolloClient.query({
|
|
1382
|
+
query: queries_1.SITE_VISIT_BREAKDOWN_BY_USER,
|
|
1383
|
+
variables: { filters }
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
async siteVisitLog(filters, offset, limit) {
|
|
1387
|
+
return this.apolloClient.query({
|
|
1388
|
+
query: queries_1.SITE_VISIT_LOG,
|
|
1389
|
+
variables: { filters, offset, limit }
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
async siteVisitReportSummary(filters) {
|
|
1393
|
+
return this.apolloClient.query({
|
|
1394
|
+
query: queries_1.SITE_VISIT_REPORT_SUMMARY,
|
|
1395
|
+
variables: { filters }
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1380
1398
|
async statesOptions() {
|
|
1381
1399
|
return this.apolloClient.query({
|
|
1382
1400
|
query: queries_1.STATES_OPTIONS
|