@outseta/api-client 0.3.47 → 0.3.49
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 +13 -1
- package/package.json +1 -1
- package/src/generated/models/accountWebhookEntityCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts +2 -0
- package/src/generated/models/accountWebhookEntityLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts +2 -0
- package/src/generated/models/accountWebhookEntitySubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts +2 -0
- package/src/generated/models/backGroundTaskType.ts +2 -1
- package/src/generated/models/changeSubscriptionCompleteRequest.ts +10 -0
- package/src/generated/models/changeSubscriptionStateRequest.ts +14 -0
- package/src/generated/models/changeSubscriptionStateRequestSubscription.ts +7 -0
- package/src/generated/models/discountCouponAllOf.ts +2 -0
- package/src/generated/models/index.ts +3 -0
- package/src/generated/support/support.ts +58 -0
package/dist/index.js
CHANGED
|
@@ -1356,6 +1356,15 @@ var caseUpdateCase = async (caseUid, caseUpdateCaseBody, options) => {
|
|
|
1356
1356
|
body: JSON.stringify(caseUpdateCaseBody)
|
|
1357
1357
|
});
|
|
1358
1358
|
};
|
|
1359
|
+
var getCaseDeleteCaseUrl = (caseUid) => {
|
|
1360
|
+
return `/api/v1/support/cases/${caseUid}`;
|
|
1361
|
+
};
|
|
1362
|
+
var caseDeleteCase = async (caseUid, options) => {
|
|
1363
|
+
return customFetch(getCaseDeleteCaseUrl(caseUid), {
|
|
1364
|
+
...options,
|
|
1365
|
+
method: "DELETE"
|
|
1366
|
+
});
|
|
1367
|
+
};
|
|
1359
1368
|
var getCaseAddReplyUrl = (caseUid) => {
|
|
1360
1369
|
return `/api/v1/support/cases/${caseUid}/replies`;
|
|
1361
1370
|
};
|
|
@@ -1770,7 +1779,8 @@ var BackGroundTaskType = {
|
|
|
1770
1779
|
UpdateDiscordMemberRolesTask: 19,
|
|
1771
1780
|
SendInvoicePaidEmailTask: 20,
|
|
1772
1781
|
ResendTrialLimitEmailTask: 21,
|
|
1773
|
-
UpdateStripeSubscriptionApplicationFeePercentTask: 22
|
|
1782
|
+
UpdateStripeSubscriptionApplicationFeePercentTask: 22,
|
|
1783
|
+
DeleteSupportCaseContentTask: 23
|
|
1774
1784
|
};
|
|
1775
1785
|
// src/generated/models/billingAddOnType.ts
|
|
1776
1786
|
var BillingAddOnType = {
|
|
@@ -2235,6 +2245,7 @@ export {
|
|
|
2235
2245
|
caseAddCase,
|
|
2236
2246
|
caseAddClientResponse,
|
|
2237
2247
|
caseAddReply,
|
|
2248
|
+
caseDeleteCase,
|
|
2238
2249
|
caseGetAllCases,
|
|
2239
2250
|
caseGetCase,
|
|
2240
2251
|
caseUpdateCase,
|
|
@@ -2307,6 +2318,7 @@ export {
|
|
|
2307
2318
|
getCaseAddCaseUrl,
|
|
2308
2319
|
getCaseAddClientResponseUrl,
|
|
2309
2320
|
getCaseAddReplyUrl,
|
|
2321
|
+
getCaseDeleteCaseUrl,
|
|
2310
2322
|
getCaseGetAllCasesUrl,
|
|
2311
2323
|
getCaseGetCaseUrl,
|
|
2312
2324
|
getCaseUpdateCaseUrl,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* `1` - UpdateSegmentBackGroundTask, `2` - ImportPeopleTask, `3` - ImportAccountTask, `4` - ImportDealTask, `5` - ImportEmailList, `6` - RescheduleDripCampaignTask, `7` - DeleteSegmentPeopleTask, `8` - StartDripCampaignTask, `9` - WebflowSyncTask, `10` - UpdatePersonSegmentsTask, `11` - ImportDiscountCouponTask, `12` - RemoveDiscordUserFromAllServersTask, `13` - SendInvoiceEmailTask, `14` - UpdateDiscordUserRolesTask, `15` - StripeBillingSyncTask, `16` - UpdateStripeDefaultSourceTask, `17` - DeleteScheduledCampaignMessagesTask, `18` - SendSpamCheckEmailTask, `19` - UpdateDiscordMemberRolesTask, `20` - SendInvoicePaidEmailTask, `21` - ResendTrialLimitEmailTask, `22` - UpdateStripeSubscriptionApplicationFeePercentTask
|
|
4
|
+
* `1` - UpdateSegmentBackGroundTask, `2` - ImportPeopleTask, `3` - ImportAccountTask, `4` - ImportDealTask, `5` - ImportEmailList, `6` - RescheduleDripCampaignTask, `7` - DeleteSegmentPeopleTask, `8` - StartDripCampaignTask, `9` - WebflowSyncTask, `10` - UpdatePersonSegmentsTask, `11` - ImportDiscountCouponTask, `12` - RemoveDiscordUserFromAllServersTask, `13` - SendInvoiceEmailTask, `14` - UpdateDiscordUserRolesTask, `15` - StripeBillingSyncTask, `16` - UpdateStripeDefaultSourceTask, `17` - DeleteScheduledCampaignMessagesTask, `18` - SendSpamCheckEmailTask, `19` - UpdateDiscordMemberRolesTask, `20` - SendInvoicePaidEmailTask, `21` - ResendTrialLimitEmailTask, `22` - UpdateStripeSubscriptionApplicationFeePercentTask, `23` - DeleteSupportCaseContentTask
|
|
5
5
|
*/
|
|
6
6
|
export type BackGroundTaskType = typeof BackGroundTaskType[keyof typeof BackGroundTaskType];
|
|
7
7
|
|
|
@@ -30,4 +30,5 @@ export const BackGroundTaskType = {
|
|
|
30
30
|
SendInvoicePaidEmailTask: 20,
|
|
31
31
|
ResendTrialLimitEmailTask: 21,
|
|
32
32
|
UpdateStripeSubscriptionApplicationFeePercentTask: 22,
|
|
33
|
+
DeleteSupportCaseContentTask: 23,
|
|
33
34
|
} as const;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request body for POST /api/v1/billing/subscriptions/changesubscription/complete:
|
|
5
|
+
the client secret of the Stripe intent the user confirmed.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChangeSubscriptionCompleteRequest {
|
|
8
|
+
/** @nullable */
|
|
9
|
+
ClientSecret?: string | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { ChangeSubscriptionStateRequestSubscription } from './changeSubscriptionStateRequestSubscription';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Request body for POST /api/v1/billing/subscriptions/{subscriptionUid}/changesubscription/state:
|
|
6
|
+
the new subscription and the client secret of the Stripe intent the user is about
|
|
7
|
+
to confirm.
|
|
8
|
+
*/
|
|
9
|
+
export interface ChangeSubscriptionStateRequest {
|
|
10
|
+
/** @nullable */
|
|
11
|
+
ClientSecret?: string | null;
|
|
12
|
+
/** @nullable */
|
|
13
|
+
Subscription?: ChangeSubscriptionStateRequestSubscription;
|
|
14
|
+
}
|
|
@@ -291,6 +291,9 @@ export * from './category';
|
|
|
291
291
|
export * from './categoryAllOf';
|
|
292
292
|
export * from './categoryGetAllCategories200';
|
|
293
293
|
export * from './categoryGetAllCategoriesParams';
|
|
294
|
+
export * from './changeSubscriptionCompleteRequest';
|
|
295
|
+
export * from './changeSubscriptionStateRequest';
|
|
296
|
+
export * from './changeSubscriptionStateRequestSubscription';
|
|
294
297
|
export * from './chatSettings';
|
|
295
298
|
export * from './chatSettingsAllOf';
|
|
296
299
|
export * from './clientApplication';
|
|
@@ -280,6 +280,64 @@ export const caseUpdateCase = async (caseUid: string | null,
|
|
|
280
280
|
);}
|
|
281
281
|
|
|
282
282
|
|
|
283
|
+
/**
|
|
284
|
+
* The ticket is deleted together with all its replies, notes, tags and attachments.
|
|
285
|
+
This cannot be undone.
|
|
286
|
+
|
|
287
|
+
The ticket and its history are gone when the request returns. Its attachment files,
|
|
288
|
+
its search entry, and the logs of the emails and activities that relate to it are
|
|
289
|
+
removed in the background shortly after.
|
|
290
|
+
* @summary Permanently delete a support ticket.
|
|
291
|
+
*/
|
|
292
|
+
export type caseDeleteCaseResponse200 = {
|
|
293
|
+
data: Blob
|
|
294
|
+
status: 200
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export type caseDeleteCaseResponse400 = {
|
|
298
|
+
data: void
|
|
299
|
+
status: 400
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export type caseDeleteCaseResponse401 = {
|
|
303
|
+
data: void
|
|
304
|
+
status: 401
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export type caseDeleteCaseResponse404 = {
|
|
308
|
+
data: void
|
|
309
|
+
status: 404
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export type caseDeleteCaseResponseSuccess = (caseDeleteCaseResponse200) & {
|
|
313
|
+
headers: Headers;
|
|
314
|
+
};
|
|
315
|
+
export type caseDeleteCaseResponseError = (caseDeleteCaseResponse400 | caseDeleteCaseResponse401 | caseDeleteCaseResponse404) & {
|
|
316
|
+
headers: Headers;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export type caseDeleteCaseResponse = (caseDeleteCaseResponseSuccess | caseDeleteCaseResponseError)
|
|
320
|
+
|
|
321
|
+
export const getCaseDeleteCaseUrl = (caseUid: string | null,) => {
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
return `/api/v1/support/cases/${caseUid}`
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export const caseDeleteCase = async (caseUid: string | null, options?: RequestInit): Promise<caseDeleteCaseResponse> => {
|
|
330
|
+
|
|
331
|
+
return customFetch<caseDeleteCaseResponse>(getCaseDeleteCaseUrl(caseUid),
|
|
332
|
+
{
|
|
333
|
+
...options,
|
|
334
|
+
method: 'DELETE'
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
}
|
|
338
|
+
);}
|
|
339
|
+
|
|
340
|
+
|
|
283
341
|
/**
|
|
284
342
|
* @summary Adds a reply from an agent to a support case.
|
|
285
343
|
*/
|