@outseta/api-client 0.3.4 → 0.3.6

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.
@@ -52,7 +52,8 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
52
52
 
53
53
 
54
54
  /**
55
- * @summary Retrieves all the deals associated with your account.
55
+ * Returns the deals associated with your account.
56
+ * @summary Retrieve all deals.
56
57
  */
57
58
  export type dealGetAllDealsResponse200 = {
58
59
  data: Deal[]
@@ -149,7 +150,7 @@ export const dealAddDeal = async (dealAddDealBody: NonReadonly<DealAddDealBody>,
149
150
 
150
151
 
151
152
  /**
152
- * @summary Retrieves one deal associated with your account.
153
+ * @summary Retrieve a deal.
153
154
  */
154
155
  export type dealGetDealResponse200 = {
155
156
  data: Deal
@@ -349,7 +350,8 @@ export const registrationRegisterAccount = async (account: NonReadonly<Account>,
349
350
 
350
351
 
351
352
  /**
352
- * @summary Returns all accounts, optionally filtered by segment or search query.
353
+ * Optionally filtered by segment (segmentUid) or search query (q).
354
+ * @summary Retrieve all accounts.
353
355
  */
354
356
  export type accountGetAllAccountsResponse200 = {
355
357
  data: Account[]
@@ -456,7 +458,7 @@ export const accountAddAccount = async (accountAddAccountBody: NonReadonly<Accou
456
458
 
457
459
 
458
460
  /**
459
- * @summary Returns a single account by UID.
461
+ * @summary Retrieve an account.
460
462
  */
461
463
  export type accountGetAccountResponse200 = {
462
464
  data: Account
@@ -999,7 +1001,8 @@ export const accountSendConfirmationEmail = async (accountUid: string | null, op
999
1001
 
1000
1002
 
1001
1003
  /**
1002
- * @summary Retrieves all the people associated with your account.
1004
+ * Returns the people associated with your account.
1005
+ * @summary Retrieve all people.
1003
1006
  */
1004
1007
  export type personGetAllPeopleResponse200 = {
1005
1008
  data: Person[]
@@ -1091,7 +1094,7 @@ export const personAddPerson = async (personAddPersonBody: NonReadonly<PersonAdd
1091
1094
 
1092
1095
 
1093
1096
  /**
1094
- * @summary Retrieves a person.
1097
+ * @summary Retrieve a person.
1095
1098
  */
1096
1099
  export type personGetPersonResponse200 = {
1097
1100
  data: Person
@@ -39,7 +39,8 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
39
39
 
40
40
 
41
41
  /**
42
- * @summary Retrieves all non-archived broadcast campaigns.
42
+ * Archived campaigns are excluded.
43
+ * @summary Retrieve all broadcast campaigns.
43
44
  */
44
45
  export type campaignGetAllBroadcastEmailsResponse200 = {
45
46
  data: BroadcastCampaign[]
@@ -128,7 +129,7 @@ export const campaignAddBroadcastEmail = async (campaignAddBroadcastEmailBody: N
128
129
 
129
130
 
130
131
  /**
131
- * @summary Retrieves a single broadcast campaign by its Uid.
132
+ * @summary Retrieve a broadcast campaign.
132
133
  */
133
134
  export type campaignGetBroadcastEmailResponse200 = {
134
135
  data: BroadcastCampaign
@@ -442,7 +443,7 @@ export const campaignSendTestCampaignEmail = async (campaignSendTestCampaignEmai
442
443
 
443
444
 
444
445
  /**
445
- * @summary Retrieves all the people subscribing to an email list.
446
+ * @summary Retrieve all subscribers to an email list.
446
447
  */
447
448
  export type emailListGetAllSubscriptionsResponse200 = {
448
449
  data: EmailListPerson[]
@@ -0,0 +1,18 @@
1
+ // @ts-nocheck
2
+
3
+ export type DiscountCouponGetAllDiscountCouponsParams = {
4
+ /**
5
+ * When true, returns only coupons that can still be redeemed
6
+ */
7
+ canRedeem?: boolean;
8
+ /**
9
+ * Searches coupons by name or code
10
+ * @nullable
11
+ */
12
+ q?: string | null;
13
+ /**
14
+ * Returns only coupons that apply to the plan with this unique identifier
15
+ * @nullable
16
+ */
17
+ planUid?: string | null;
18
+ };
@@ -0,0 +1,9 @@
1
+ // @ts-nocheck
2
+
3
+ export type DiscountCouponGetDiscountCouponByCodeParams = {
4
+ /**
5
+ * The unique identifier of the plan to validate the coupon against
6
+ * @nullable
7
+ */
8
+ planUid: string | null;
9
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+
3
+ export type DiscountCouponGetDiscountCouponRedemptionsParams = {
4
+ /**
5
+ * Searches redemptions by account or plan name
6
+ * @nullable
7
+ */
8
+ q?: string | null;
9
+ /**
10
+ * When set, filters by whether the redemption is still active
11
+ * @nullable
12
+ */
13
+ isActive?: boolean | null;
14
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { DiscountCoupon } from './discountCoupon';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type DiscountCouponUpdateDiscountCouponBody = DiscountCoupon | null;
@@ -187,6 +187,9 @@ export * from './discordUserAllOf';
187
187
  export * from './discountCoupon';
188
188
  export * from './discountCouponAddDiscountCouponBody';
189
189
  export * from './discountCouponAllOf';
190
+ export * from './discountCouponGetAllDiscountCouponsParams';
191
+ export * from './discountCouponGetDiscountCouponByCodeParams';
192
+ export * from './discountCouponGetDiscountCouponRedemptionsParams';
190
193
  export * from './discountCouponPlan';
191
194
  export * from './discountCouponPlanAllOf';
192
195
  export * from './discountCouponPlanAllOfDiscountCoupon';
@@ -195,6 +198,7 @@ export * from './discountCouponSubscription';
195
198
  export * from './discountCouponSubscriptionAllOf';
196
199
  export * from './discountCouponSubscriptionAllOfDiscountCoupon';
197
200
  export * from './discountCouponSubscriptionAllOfSubscription';
201
+ export * from './discountCouponUpdateDiscountCouponBody';
198
202
  export * from './dnsEntry';
199
203
  export * from './dripCampaign';
200
204
  export * from './dripCampaignAllOf';
@@ -301,10 +305,14 @@ export * from './planAddOn';
301
305
  export * from './planAddOnAllOf';
302
306
  export * from './planAddOnAllOfAddOn';
303
307
  export * from './planAddOnAllOfPlan';
308
+ export * from './planAddPlanBody';
304
309
  export * from './planAllOf';
305
310
  export * from './planAllOfPlanFamily';
306
311
  export * from './planFamily';
312
+ export * from './planFamilyAddPlanFamilyBody';
307
313
  export * from './planFamilyAllOf';
314
+ export * from './planFamilyUpdatePlanFamilyBody';
315
+ export * from './planUpdatePlanBody';
308
316
  export * from './processCodePayload';
309
317
  export * from './qcount';
310
318
  export * from './qcountAllOf';
@@ -428,9 +436,12 @@ export * from './stripeSubscriptionSchedulePhaseItemAllOfStripePrice';
428
436
  export * from './subscription';
429
437
  export * from './subscriptionAddOn';
430
438
  export * from './subscriptionAddOnAddSubscriptionAddOnBody';
439
+ export * from './subscriptionAddOnAddSubscriptionAddOnPreviewBody';
431
440
  export * from './subscriptionAddOnAllOf';
432
441
  export * from './subscriptionAddOnAllOfAddOn';
433
442
  export * from './subscriptionAddOnAllOfSubscription';
443
+ export * from './subscriptionAddOnGetAllSubscriptionsAddOnsParams';
444
+ export * from './subscriptionAddOnSetAddOnUpgradeRequiredBody';
434
445
  export * from './subscriptionAllOf';
435
446
  export * from './subscriptionAllOfAccount';
436
447
  export * from './subscriptionAllOfLatestInvoice';
@@ -442,6 +453,7 @@ export * from './subscriptionChangeSubscriptionPreviewParams';
442
453
  export * from './subscriptionFirstTimeSubscriptionBody';
443
454
  export * from './subscriptionFirstTimeSubscriptionPreviewBody';
444
455
  export * from './subscriptionFirstTimeSubscriptionPreviewParams';
456
+ export * from './subscriptionGetAllSubscriptionsParams';
445
457
  export * from './subscriptionSetSubscriptionUpgradeRequiredBody';
446
458
  export * from './supportArticleStatus';
447
459
  export * from './supportCaseHistoryType';
@@ -16,6 +16,11 @@ export type MessageAllOf = {
16
16
  * @nullable
17
17
  */
18
18
  Subject?: string | null;
19
+ /**
20
+ * @maxLength 250
21
+ * @nullable
22
+ */
23
+ PreviewText?: string | null;
19
24
  /** @nullable */
20
25
  Body?: string | null;
21
26
  /** @nullable */
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { Plan } from './plan';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type PlanAddPlanBody = Plan | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { PlanFamily } from './planFamily';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type PlanFamilyAddPlanFamilyBody = PlanFamily | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { PlanFamily } from './planFamily';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type PlanFamilyUpdatePlanFamilyBody = PlanFamily | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { Plan } from './plan';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type PlanUpdatePlanBody = Plan | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { SubscriptionAddOn } from './subscriptionAddOn';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type SubscriptionAddOnAddSubscriptionAddOnPreviewBody = SubscriptionAddOn | null;
@@ -0,0 +1,9 @@
1
+ // @ts-nocheck
2
+
3
+ export type SubscriptionAddOnGetAllSubscriptionsAddOnsParams = {
4
+ /**
5
+ * Filters by the add-on's lifecycle: current, future, or past
6
+ * @nullable
7
+ */
8
+ status?: string | null;
9
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { SubscriptionAddOn } from './subscriptionAddOn';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type SubscriptionAddOnSetAddOnUpgradeRequiredBody = SubscriptionAddOn | null;
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+
3
+ export type SubscriptionGetAllSubscriptionsParams = {
4
+ /**
5
+ * Pass 1 to return only the most recent subscription per account, expired or not
6
+ * @nullable
7
+ */
8
+ current?: string | null;
9
+ /**
10
+ * Filters by the subscription's lifecycle: current, future, or past
11
+ * @nullable
12
+ */
13
+ status?: string | null;
14
+ };
@@ -18,7 +18,9 @@ import type {
18
18
  import { customFetch } from '../../client';
19
19
 
20
20
  /**
21
- * Post a JSON body with the user's credentials:
21
+ * Authenticates a user and returns a JWT access token (plus a refresh token).
22
+
23
+ Post a JSON body with the user's credentials:
22
24
 
23
25
  { "username": "user@example.com", "password": "their-password" }
24
26
 
@@ -53,7 +55,7 @@ body instead contains `"two_factor_enrollment_required": true` with a
53
55
  `challenge_token` to drive the mid-login enrollment endpoints.
54
56
 
55
57
  Invalid credentials return `400` with a body of `invalid_grant`.
56
- * @summary Log a user in and obtain a JWT access token.
58
+ * @summary Log a user in.
57
59
  */
58
60
  export type authGetTokenResponse200 = {
59
61
  data: TokenPayload
@@ -40,9 +40,10 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
40
40
 
41
41
 
42
42
  /**
43
- * Assigned cases can be filtered by passing in the AssignedToPersonClientIdentifier,
43
+ * Optionally filtered by search string, tag, and/or assignment.
44
+ Assigned cases can be filtered by passing in the AssignedToPersonClientIdentifier,
44
45
  which is the Uid of the person the case is assigned to.
45
- * @summary Returns all cases, optionally filtered by search string, tag, and/or assignment.
46
+ * @summary Retrieve all cases.
46
47
  */
47
48
  export type caseGetAllCasesResponse200 = {
48
49
  data: Case[]
@@ -147,7 +148,7 @@ export const caseAddCase = async (caseAddCaseBody: NonReadonly<CaseAddCaseBody>,
147
148
 
148
149
 
149
150
  /**
150
- * @summary Retrieve a specific case
151
+ * @summary Retrieve a case.
151
152
  */
152
153
  export type caseGetCaseResponse200 = {
153
154
  data: Case
@@ -347,7 +348,7 @@ export const articleGetAllArticles = async (params?: ArticleGetAllArticlesParams
347
348
 
348
349
 
349
350
  /**
350
- * @summary Retrieves a knowledge base article.
351
+ * @summary Retrieve a knowledge base article.
351
352
  */
352
353
  export type articleGetArticleResponse200 = {
353
354
  data: Article
@@ -394,7 +395,7 @@ export const articleGetArticle = async (articleUid: string | null, options?: Req
394
395
 
395
396
 
396
397
  /**
397
- * @summary Retrieves all knowledge base categories.
398
+ * @summary Retrieve all knowledge base categories.
398
399
  */
399
400
  export type categoryGetAllCategoriesResponse200 = {
400
401
  data: Category[]