@outseta/api-client 0.3.48 → 0.3.50

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 = {
@@ -1903,6 +1913,12 @@ var EntityType = {
1903
1913
  Broadcast: 12,
1904
1914
  Article: 13
1905
1915
  };
1916
+ // src/generated/models/leadFormSubmissionFieldOutcome.ts
1917
+ var LeadFormSubmissionFieldOutcome = {
1918
+ Written: "Written",
1919
+ Unchanged: "Unchanged",
1920
+ Skipped: "Skipped"
1921
+ };
1906
1922
  // src/generated/models/lineItemType.ts
1907
1923
  var LineItemType = {
1908
1924
  Plan: 1,
@@ -2176,6 +2192,7 @@ export {
2176
2192
  DeserializationStatus,
2177
2193
  EmailListSubscriberStatus,
2178
2194
  EntityType,
2195
+ LeadFormSubmissionFieldOutcome,
2179
2196
  LineItemType,
2180
2197
  OAuthService,
2181
2198
  PaymentsGatewayActivationStatus,
@@ -2235,6 +2252,7 @@ export {
2235
2252
  caseAddCase,
2236
2253
  caseAddClientResponse,
2237
2254
  caseAddReply,
2255
+ caseDeleteCase,
2238
2256
  caseGetAllCases,
2239
2257
  caseGetCase,
2240
2258
  caseUpdateCase,
@@ -2307,6 +2325,7 @@ export {
2307
2325
  getCaseAddCaseUrl,
2308
2326
  getCaseAddClientResponseUrl,
2309
2327
  getCaseAddReplyUrl,
2328
+ getCaseDeleteCaseUrl,
2310
2329
  getCaseGetAllCasesUrl,
2311
2330
  getCaseGetCaseUrl,
2312
2331
  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.50",
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
  };
@@ -451,6 +451,8 @@ export * from './leadFormAllOf';
451
451
  export * from './leadFormAllOfDealPipelineStage';
452
452
  export * from './leadFormSubmission';
453
453
  export * from './leadFormSubmissionAllOf';
454
+ export * from './leadFormSubmissionField';
455
+ export * from './leadFormSubmissionFieldOutcome';
454
456
  export * from './limitParameter';
455
457
  export * from './lineItemType';
456
458
  export * from './message';
@@ -1,12 +1,16 @@
1
1
  // @ts-nocheck
2
2
  import type { Person } from './person';
3
3
  import type { LeadForm } from './leadForm';
4
+ import type { LeadFormSubmissionField } from './leadFormSubmissionField';
4
5
 
5
6
  export type LeadFormSubmissionAllOf = {
6
7
  Person: Person;
7
8
  LeadForm: LeadForm;
8
9
  /** @nullable */
9
10
  RefererURL?: string | null;
11
+ HasPendingFields?: boolean;
12
+ /** @nullable */
13
+ Fields?: LeadFormSubmissionField[] | null;
10
14
  /** @nullable */
11
15
  RecaptchaToken?: string | null;
12
16
  /** @nullable */
@@ -0,0 +1,12 @@
1
+ // @ts-nocheck
2
+ import type { LeadFormSubmissionFieldOutcome } from './leadFormSubmissionFieldOutcome';
3
+
4
+ export interface LeadFormSubmissionField {
5
+ /** @nullable */
6
+ SystemName?: string | null;
7
+ /** @nullable */
8
+ Value?: string | null;
9
+ Outcome?: LeadFormSubmissionFieldOutcome;
10
+ /** @nullable */
11
+ PersonValue?: string | null;
12
+ }
@@ -0,0 +1,17 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * `Written` - Saved, `Unchanged` - Unchanged, `Skipped` - Not saved
5
+ */
6
+ export type LeadFormSubmissionFieldOutcome = typeof LeadFormSubmissionFieldOutcome[keyof typeof LeadFormSubmissionFieldOutcome];
7
+
8
+
9
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
10
+ export const LeadFormSubmissionFieldOutcome = {
11
+ /** Saved */
12
+ Written: 'Written',
13
+ /** Unchanged */
14
+ Unchanged: 'Unchanged',
15
+ /** Not saved */
16
+ Skipped: 'Skipped',
17
+ } as const;
@@ -4,5 +4,7 @@ export interface PersonLeadFormSubmittedActivityData {
4
4
  /** @nullable */
5
5
  LeadFormUid?: string | null;
6
6
  /** @nullable */
7
+ LeadFormSubmissionUid?: string | null;
8
+ /** @nullable */
7
9
  RefererUrl?: string | null;
8
10
  }
@@ -14,6 +14,7 @@ export type PersonWebhookEntityLeadFormSubmissionsItem = {
14
14
  Updated: string;
15
15
  /** @nullable */
16
16
  RefererURL?: string | null;
17
+ HasPendingFields?: boolean;
17
18
  /** @nullable */
18
19
  RecaptchaToken?: string | null;
19
20
  /** @nullable */
@@ -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
  */