@outseta/api-client 0.3.48 → 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 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/api-client",
3
- "version": "0.3.48",
3
+ "version": "0.3.49",
4
4
  "description": "Generated API client for the Outseta REST API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,5 +36,7 @@ export type AccountWebhookEntityCurrentSubscriptionDiscountCouponSubscriptionsIt
36
36
  MaxRedemptions?: number | null;
37
37
  ApplyToAddOns?: boolean;
38
38
  /** @nullable */
39
+ IsInUse?: boolean | null;
40
+ /** @nullable */
39
41
  PlanUids?: string | null;
40
42
  } | null;
@@ -36,5 +36,7 @@ export type AccountWebhookEntityLatestSubscriptionDiscountCouponSubscriptionsIte
36
36
  MaxRedemptions?: number | null;
37
37
  ApplyToAddOns?: boolean;
38
38
  /** @nullable */
39
+ IsInUse?: boolean | null;
40
+ /** @nullable */
39
41
  PlanUids?: string | null;
40
42
  } | null;
@@ -36,5 +36,7 @@ export type AccountWebhookEntitySubscriptionsItemDiscountCouponSubscriptionsItem
36
36
  MaxRedemptions?: number | null;
37
37
  ApplyToAddOns?: boolean;
38
38
  /** @nullable */
39
+ IsInUse?: boolean | null;
40
+ /** @nullable */
39
41
  PlanUids?: string | null;
40
42
  } | null;
@@ -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;
@@ -28,5 +28,7 @@ export type DiscountCouponAllOf = {
28
28
  DiscountCouponPlans?: DiscountCouponPlan[] | null;
29
29
  ApplyToAddOns?: boolean;
30
30
  /** @nullable */
31
+ IsInUse?: boolean | null;
32
+ /** @nullable */
31
33
  PlanUids?: string | null;
32
34
  };
@@ -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
  */