@outseta/api-client 0.4.8 → 0.4.10
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/index.js
CHANGED
|
@@ -1715,6 +1715,15 @@ var campaignArchiveBroadcastCampaign = async (broadcastCampaignUid, options) =>
|
|
|
1715
1715
|
method: "POST"
|
|
1716
1716
|
});
|
|
1717
1717
|
};
|
|
1718
|
+
var getCampaignUnarchiveBroadcastCampaignUrl = (broadcastCampaignUid) => {
|
|
1719
|
+
return `/api/v1/email/campaigns/broadcasts/${broadcastCampaignUid}/unarchive`;
|
|
1720
|
+
};
|
|
1721
|
+
var campaignUnarchiveBroadcastCampaign = async (broadcastCampaignUid, options) => {
|
|
1722
|
+
return customFetch(getCampaignUnarchiveBroadcastCampaignUrl(broadcastCampaignUid), {
|
|
1723
|
+
...options,
|
|
1724
|
+
method: "POST"
|
|
1725
|
+
});
|
|
1726
|
+
};
|
|
1718
1727
|
var getCampaignSendTestCampaignEmailUrl = () => {
|
|
1719
1728
|
return `/api/v1/email/campaigns/broadcasts/sendtestemail`;
|
|
1720
1729
|
};
|
|
@@ -2820,6 +2829,7 @@ export {
|
|
|
2820
2829
|
campaignRemoveTagFromEntity,
|
|
2821
2830
|
campaignSendTestCampaignEmail,
|
|
2822
2831
|
campaignSetTagsForEntity,
|
|
2832
|
+
campaignUnarchiveBroadcastCampaign,
|
|
2823
2833
|
campaignUnscheduleBroadcastEmail,
|
|
2824
2834
|
campaignUpdateBroadcastEmail,
|
|
2825
2835
|
caseAddCase,
|
|
@@ -2895,6 +2905,7 @@ export {
|
|
|
2895
2905
|
getCampaignRemoveTagFromEntityUrl,
|
|
2896
2906
|
getCampaignSendTestCampaignEmailUrl,
|
|
2897
2907
|
getCampaignSetTagsForEntityUrl,
|
|
2908
|
+
getCampaignUnarchiveBroadcastCampaignUrl,
|
|
2898
2909
|
getCampaignUnscheduleBroadcastEmailUrl,
|
|
2899
2910
|
getCampaignUpdateBroadcastEmailUrl,
|
|
2900
2911
|
getCaseAddCaseUrl,
|
package/package.json
CHANGED
|
@@ -589,7 +589,7 @@ export const dripCampaignSendTestCampaignEmail = async (dripCampaignSendTestCamp
|
|
|
589
589
|
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
|
-
* Archived broadcasts are excluded.
|
|
592
|
+
* Archived broadcasts are excluded unless the Status filter asks for them (Status=10).
|
|
593
593
|
* @summary Retrieve all broadcasts.
|
|
594
594
|
*/
|
|
595
595
|
export type campaignGetAllBroadcastEmailsResponse200 = {
|
|
@@ -1005,6 +1005,60 @@ export const campaignArchiveBroadcastCampaign = async (broadcastCampaignUid: str
|
|
|
1005
1005
|
);}
|
|
1006
1006
|
|
|
1007
1007
|
|
|
1008
|
+
/**
|
|
1009
|
+
* The broadcast's status becomes Sent if it sent any emails, and Draft otherwise.
|
|
1010
|
+
Unarchiving never resumes sending.
|
|
1011
|
+
* @summary Unarchive a broadcast.
|
|
1012
|
+
*/
|
|
1013
|
+
export type campaignUnarchiveBroadcastCampaignResponse200 = {
|
|
1014
|
+
data: BroadcastCampaign
|
|
1015
|
+
status: 200
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
export type campaignUnarchiveBroadcastCampaignResponse400 = {
|
|
1019
|
+
data: void
|
|
1020
|
+
status: 400
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export type campaignUnarchiveBroadcastCampaignResponse401 = {
|
|
1024
|
+
data: void
|
|
1025
|
+
status: 401
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
export type campaignUnarchiveBroadcastCampaignResponse404 = {
|
|
1029
|
+
data: void
|
|
1030
|
+
status: 404
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export type campaignUnarchiveBroadcastCampaignResponseSuccess = (campaignUnarchiveBroadcastCampaignResponse200) & {
|
|
1034
|
+
headers: Headers;
|
|
1035
|
+
};
|
|
1036
|
+
export type campaignUnarchiveBroadcastCampaignResponseError = (campaignUnarchiveBroadcastCampaignResponse400 | campaignUnarchiveBroadcastCampaignResponse401 | campaignUnarchiveBroadcastCampaignResponse404) & {
|
|
1037
|
+
headers: Headers;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
export type campaignUnarchiveBroadcastCampaignResponse = (campaignUnarchiveBroadcastCampaignResponseSuccess | campaignUnarchiveBroadcastCampaignResponseError)
|
|
1041
|
+
|
|
1042
|
+
export const getCampaignUnarchiveBroadcastCampaignUrl = (broadcastCampaignUid: string | null,) => {
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
return `/api/v1/email/campaigns/broadcasts/${broadcastCampaignUid}/unarchive`
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
export const campaignUnarchiveBroadcastCampaign = async (broadcastCampaignUid: string | null, options?: RequestInit): Promise<campaignUnarchiveBroadcastCampaignResponse> => {
|
|
1051
|
+
|
|
1052
|
+
return customFetch<campaignUnarchiveBroadcastCampaignResponse>(getCampaignUnarchiveBroadcastCampaignUrl(broadcastCampaignUid),
|
|
1053
|
+
{
|
|
1054
|
+
...options,
|
|
1055
|
+
method: 'POST'
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
}
|
|
1059
|
+
);}
|
|
1060
|
+
|
|
1061
|
+
|
|
1008
1062
|
/**
|
|
1009
1063
|
* Sends to the logged-in user and optionally to additional recipients. Additional
|
|
1010
1064
|
recipients are specified as a list of person Uids and must belong to the same account
|
|
@@ -475,7 +475,9 @@ export * from './passwordPayload';
|
|
|
475
475
|
export * from './pauseCollectionOptions';
|
|
476
476
|
export * from './paymentInformation';
|
|
477
477
|
export * from './paymentInformationAllOf';
|
|
478
|
+
export * from './paymentInformationCompleteRequest';
|
|
478
479
|
export * from './paymentInformationSavePaymentInformationBody';
|
|
480
|
+
export * from './paymentInformationStateRequest';
|
|
479
481
|
export * from './paymentsGatewayActivationStatus';
|
|
480
482
|
export * from './paymentsMode';
|
|
481
483
|
export * from './person';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request body for POST /api/v1/billing/paymentinformation/complete: the client
|
|
5
|
+
secret of the Stripe intent the user confirmed.
|
|
6
|
+
*/
|
|
7
|
+
export interface PaymentInformationCompleteRequest {
|
|
8
|
+
/** @nullable */
|
|
9
|
+
ClientSecret?: string | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request body for POST /api/v1/billing/paymentinformation/state: the account
|
|
5
|
+
whose payment information is being updated, and the client secret of the Stripe
|
|
6
|
+
intent the user is about to confirm.
|
|
7
|
+
*/
|
|
8
|
+
export interface PaymentInformationStateRequest {
|
|
9
|
+
/** @nullable */
|
|
10
|
+
AccountUid?: string | null;
|
|
11
|
+
/** @nullable */
|
|
12
|
+
ClientSecret?: string | null;
|
|
13
|
+
}
|