cf-service-sdk-dharani 0.0.39 → 0.0.41
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 +16 -4
- package/dist/generated/graphql.js +7 -5
- package/dist/mutations.js +2 -2
- package/dist/queries.js +2 -2
- package/dist/sdk.d.ts +2 -2
- package/dist/sdk.js +4 -4
- package/package.json +1 -1
|
@@ -1764,7 +1764,7 @@ export type MutationRejectInvitationArgs = {
|
|
|
1764
1764
|
export type MutationRemoveContactsFromCampaignArgs = {
|
|
1765
1765
|
campaignId: Scalars['ID']['input'];
|
|
1766
1766
|
contactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
|
|
1767
|
-
|
|
1767
|
+
customContactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
|
|
1768
1768
|
};
|
|
1769
1769
|
/** Mutations */
|
|
1770
1770
|
export type MutationRemoveContactsFromSegmentArgs = {
|
|
@@ -2183,6 +2183,8 @@ export type QueryCampaignAnalyticsArgs = {
|
|
|
2183
2183
|
/** Query */
|
|
2184
2184
|
export type QueryCampaignContactsArgs = {
|
|
2185
2185
|
campaignUuid: Scalars['ID']['input'];
|
|
2186
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
2187
|
+
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
2186
2188
|
};
|
|
2187
2189
|
/** Query */
|
|
2188
2190
|
export type QueryCampaignLogsArgs = {
|
|
@@ -5095,7 +5097,7 @@ export type RejectInvitationMutation = {
|
|
|
5095
5097
|
export type RemoveContactsFromCampaignMutationVariables = Exact<{
|
|
5096
5098
|
campaignId: Scalars['ID']['input'];
|
|
5097
5099
|
contactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>>;
|
|
5098
|
-
|
|
5100
|
+
customContactIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>>;
|
|
5099
5101
|
}>;
|
|
5100
5102
|
export type RemoveContactsFromCampaignMutation = {
|
|
5101
5103
|
__typename?: 'Mutation';
|
|
@@ -7955,6 +7957,8 @@ export type CampaignAnalyticsQuery = {
|
|
|
7955
7957
|
};
|
|
7956
7958
|
export type CampaignContactsQueryVariables = Exact<{
|
|
7957
7959
|
campaignUuid: Scalars['ID']['input'];
|
|
7960
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
7961
|
+
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
7958
7962
|
}>;
|
|
7959
7963
|
export type CampaignContactsQuery = {
|
|
7960
7964
|
__typename?: 'Query';
|
|
@@ -12846,14 +12850,14 @@ export type RemoveContactsFromCampaignMutationFn = Apollo.MutationFunction<Remov
|
|
|
12846
12850
|
* variables: {
|
|
12847
12851
|
* campaignId: // value for 'campaignId'
|
|
12848
12852
|
* contactIds: // value for 'contactIds'
|
|
12849
|
-
*
|
|
12853
|
+
* customContactIds: // value for 'customContactIds'
|
|
12850
12854
|
* },
|
|
12851
12855
|
* });
|
|
12852
12856
|
*/
|
|
12853
12857
|
export declare function useRemoveContactsFromCampaignMutation(baseOptions?: Apollo.MutationHookOptions<RemoveContactsFromCampaignMutation, RemoveContactsFromCampaignMutationVariables>): Apollo.MutationTuple<RemoveContactsFromCampaignMutation, Exact<{
|
|
12854
12858
|
campaignId: Scalars["ID"]["input"];
|
|
12855
12859
|
contactIds?: InputMaybe<Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>>;
|
|
12856
|
-
|
|
12860
|
+
customContactIds?: InputMaybe<Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>>;
|
|
12857
12861
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
12858
12862
|
export type RemoveContactsFromCampaignMutationHookResult = ReturnType<typeof useRemoveContactsFromCampaignMutation>;
|
|
12859
12863
|
export type RemoveContactsFromCampaignMutationResult = Apollo.MutationResult<RemoveContactsFromCampaignMutation>;
|
|
@@ -13861,6 +13865,8 @@ export declare const CampaignContactsDocument: Apollo.DocumentNode;
|
|
|
13861
13865
|
* const { data, loading, error } = useCampaignContactsQuery({
|
|
13862
13866
|
* variables: {
|
|
13863
13867
|
* campaignUuid: // value for 'campaignUuid'
|
|
13868
|
+
* page: // value for 'page'
|
|
13869
|
+
* pageSize: // value for 'pageSize'
|
|
13864
13870
|
* },
|
|
13865
13871
|
* });
|
|
13866
13872
|
*/
|
|
@@ -13871,12 +13877,18 @@ export declare function useCampaignContactsQuery(baseOptions: Apollo.QueryHookOp
|
|
|
13871
13877
|
skip: boolean;
|
|
13872
13878
|
})): Apollo.QueryResult<CampaignContactsQuery, Exact<{
|
|
13873
13879
|
campaignUuid: Scalars["ID"]["input"];
|
|
13880
|
+
page?: InputMaybe<Scalars["Int"]["input"]>;
|
|
13881
|
+
pageSize?: InputMaybe<Scalars["Int"]["input"]>;
|
|
13874
13882
|
}>>;
|
|
13875
13883
|
export declare function useCampaignContactsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CampaignContactsQuery, CampaignContactsQueryVariables>): Apollo.LazyQueryResultTuple<CampaignContactsQuery, Exact<{
|
|
13876
13884
|
campaignUuid: Scalars["ID"]["input"];
|
|
13885
|
+
page?: InputMaybe<Scalars["Int"]["input"]>;
|
|
13886
|
+
pageSize?: InputMaybe<Scalars["Int"]["input"]>;
|
|
13877
13887
|
}>>;
|
|
13878
13888
|
export declare function useCampaignContactsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CampaignContactsQuery, CampaignContactsQueryVariables>): Apollo.UseSuspenseQueryResult<CampaignContactsQuery | undefined, Exact<{
|
|
13879
13889
|
campaignUuid: Scalars["ID"]["input"];
|
|
13890
|
+
page?: InputMaybe<Scalars["Int"]["input"]>;
|
|
13891
|
+
pageSize?: InputMaybe<Scalars["Int"]["input"]>;
|
|
13880
13892
|
}>>;
|
|
13881
13893
|
export type CampaignContactsQueryHookResult = ReturnType<typeof useCampaignContactsQuery>;
|
|
13882
13894
|
export type CampaignContactsLazyQueryHookResult = ReturnType<typeof useCampaignContactsLazyQuery>;
|
|
@@ -3444,11 +3444,11 @@ function useRejectInvitationMutation(baseOptions) {
|
|
|
3444
3444
|
return Apollo.useMutation(exports.RejectInvitationDocument, options);
|
|
3445
3445
|
}
|
|
3446
3446
|
exports.RemoveContactsFromCampaignDocument = (0, client_1.gql) `
|
|
3447
|
-
mutation RemoveContactsFromCampaign($campaignId: ID!, $contactIds: [ID], $
|
|
3447
|
+
mutation RemoveContactsFromCampaign($campaignId: ID!, $contactIds: [ID], $customContactIds: [ID]) {
|
|
3448
3448
|
removeContactsFromCampaign(
|
|
3449
3449
|
campaignId: $campaignId
|
|
3450
3450
|
contactIds: $contactIds
|
|
3451
|
-
|
|
3451
|
+
customContactIds: $customContactIds
|
|
3452
3452
|
) {
|
|
3453
3453
|
campaign {
|
|
3454
3454
|
uuid
|
|
@@ -3525,7 +3525,7 @@ exports.RemoveContactsFromCampaignDocument = (0, client_1.gql) `
|
|
|
3525
3525
|
* variables: {
|
|
3526
3526
|
* campaignId: // value for 'campaignId'
|
|
3527
3527
|
* contactIds: // value for 'contactIds'
|
|
3528
|
-
*
|
|
3528
|
+
* customContactIds: // value for 'customContactIds'
|
|
3529
3529
|
* },
|
|
3530
3530
|
* });
|
|
3531
3531
|
*/
|
|
@@ -6849,8 +6849,8 @@ function useCampaignAnalyticsSuspenseQuery(baseOptions) {
|
|
|
6849
6849
|
return Apollo.useSuspenseQuery(exports.CampaignAnalyticsDocument, options);
|
|
6850
6850
|
}
|
|
6851
6851
|
exports.CampaignContactsDocument = (0, client_1.gql) `
|
|
6852
|
-
query CampaignContacts($campaignUuid: ID
|
|
6853
|
-
campaignContacts(campaignUuid: $campaignUuid) {
|
|
6852
|
+
query CampaignContacts($campaignUuid: ID!, $page: Int, $pageSize: Int) {
|
|
6853
|
+
campaignContacts(campaignUuid: $campaignUuid, page: $page, pageSize: $pageSize) {
|
|
6854
6854
|
validEmailCount
|
|
6855
6855
|
items {
|
|
6856
6856
|
firstName
|
|
@@ -6889,6 +6889,8 @@ exports.CampaignContactsDocument = (0, client_1.gql) `
|
|
|
6889
6889
|
* const { data, loading, error } = useCampaignContactsQuery({
|
|
6890
6890
|
* variables: {
|
|
6891
6891
|
* campaignUuid: // value for 'campaignUuid'
|
|
6892
|
+
* page: // value for 'page'
|
|
6893
|
+
* pageSize: // value for 'pageSize'
|
|
6892
6894
|
* },
|
|
6893
6895
|
* });
|
|
6894
6896
|
*/
|
package/dist/mutations.js
CHANGED
|
@@ -1691,8 +1691,8 @@ mutation AddContactsToCampaign($campaignId: ID!, $contacts: [CustomContactInput]
|
|
|
1691
1691
|
}
|
|
1692
1692
|
}`;
|
|
1693
1693
|
exports.REMOVE_CONTACTS_FROM_CAMPAIGN = (0, client_1.gql) `
|
|
1694
|
-
mutation RemoveContactsFromCampaign($campaignId: ID!, $contactIds: [ID], $
|
|
1695
|
-
removeContactsFromCampaign(campaignId: $campaignId, contactIds: $contactIds,
|
|
1694
|
+
mutation RemoveContactsFromCampaign($campaignId: ID!, $contactIds: [ID], $customContactIds: [ID]) {
|
|
1695
|
+
removeContactsFromCampaign(campaignId: $campaignId, contactIds: $contactIds, customContactIds: $customContactIds) {
|
|
1696
1696
|
campaign {
|
|
1697
1697
|
uuid
|
|
1698
1698
|
name
|
package/dist/queries.js
CHANGED
|
@@ -2357,8 +2357,8 @@ query CampaignLogs($campaignId: ID!, $pagination: PaginationInput!, $search: Str
|
|
|
2357
2357
|
}
|
|
2358
2358
|
}`;
|
|
2359
2359
|
exports.CAMPAIGN_CONTACTS = (0, client_1.gql) `
|
|
2360
|
-
query CampaignContacts($campaignUuid: ID
|
|
2361
|
-
campaignContacts(campaignUuid: $campaignUuid) {
|
|
2360
|
+
query CampaignContacts($campaignUuid: ID!, $page: Int, $pageSize: Int) {
|
|
2361
|
+
campaignContacts(campaignUuid: $campaignUuid, page: $page, pageSize: $pageSize) {
|
|
2362
2362
|
validEmailCount
|
|
2363
2363
|
items {
|
|
2364
2364
|
firstName
|
package/dist/sdk.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export declare class CloudForgeSDK {
|
|
|
49
49
|
pauseCampaign(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
50
50
|
previewCampaignEmail(campaignId: string, contactId: string, customSubject?: string, customTemplate?: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
51
51
|
rejectInvitation(input: InvitationResponseInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
52
|
-
removeContactsFromCampaign(campaignId: string, contactIds?: string[],
|
|
52
|
+
removeContactsFromCampaign(campaignId: string, contactIds?: string[], customContactIds?: string[]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
53
53
|
removeContactsFromSegment(contactIds: string[], segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
54
54
|
removeMember(accountId: string, memberId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
55
55
|
removeSegmentFromCallCampaign(campaignId: string, segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
@@ -84,7 +84,7 @@ export declare class CloudForgeSDK {
|
|
|
84
84
|
callCampaigns(pagination: PaginationInput, sortBy?: string, status?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
85
85
|
campaign(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
86
86
|
campaignAnalytics(campaignId: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
87
|
-
campaignContacts(campaignUuid: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
87
|
+
campaignContacts(campaignUuid: string, page?: number, pageSize?: number): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
88
88
|
campaignLogs(campaignId: string, pagination: PaginationInput, search?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
89
89
|
campaignStats(fromDate?: string, toDate?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
90
90
|
campaigns(pagination: PaginationInput, status?: string, sortBy?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -277,10 +277,10 @@ class CloudForgeSDK {
|
|
|
277
277
|
variables: { ...input }
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
async removeContactsFromCampaign(campaignId, contactIds,
|
|
280
|
+
async removeContactsFromCampaign(campaignId, contactIds, customContactIds) {
|
|
281
281
|
return this.apolloClient.mutate({
|
|
282
282
|
mutation: mutations_1.REMOVE_CONTACTS_FROM_CAMPAIGN,
|
|
283
|
-
variables: { campaignId, contactIds,
|
|
283
|
+
variables: { campaignId, contactIds, customContactIds }
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
async removeContactsFromSegment(contactIds, segmentId) {
|
|
@@ -488,10 +488,10 @@ class CloudForgeSDK {
|
|
|
488
488
|
variables: { campaignId }
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
|
-
async campaignContacts(campaignUuid) {
|
|
491
|
+
async campaignContacts(campaignUuid, page, pageSize) {
|
|
492
492
|
return this.apolloClient.query({
|
|
493
493
|
query: queries_1.CAMPAIGN_CONTACTS,
|
|
494
|
-
variables: { campaignUuid }
|
|
494
|
+
variables: { campaignUuid, page, pageSize }
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
async campaignLogs(campaignId, pagination, search) {
|