@outseta/react 0.3.5 → 0.3.7
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 +593 -0
- package/package.json +2 -2
- package/src/generated/activity/activity.ts +2 -2
- package/src/generated/attribute/attribute.ts +4 -4
- package/src/generated/billing/billing.ts +2160 -621
- package/src/generated/crm/crm.ts +15 -12
- package/src/generated/email/email.ts +7 -6
- package/src/generated/outsetaAPI.schemas.ts +99 -0
- package/src/generated/public/public.ts +5 -3
- package/src/generated/support/support.ts +10 -9
package/src/generated/crm/crm.ts
CHANGED
|
@@ -71,7 +71,8 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Returns the deals associated with your account.
|
|
75
|
+
* @summary Retrieve all deals.
|
|
75
76
|
*/
|
|
76
77
|
export const dealGetAllDeals = (
|
|
77
78
|
params?: DealGetAllDealsParams,
|
|
@@ -119,7 +120,7 @@ export type DealGetAllDealsQueryError = void
|
|
|
119
120
|
|
|
120
121
|
|
|
121
122
|
/**
|
|
122
|
-
* @summary
|
|
123
|
+
* @summary Retrieve all deals.
|
|
123
124
|
*/
|
|
124
125
|
|
|
125
126
|
export function useDealGetAllDeals<TData = Awaited<ReturnType<typeof dealGetAllDeals>>, TError = void>(
|
|
@@ -204,7 +205,7 @@ export const useDealAddDeal = <TError = void,
|
|
|
204
205
|
return useMutation(mutationOptions);
|
|
205
206
|
}
|
|
206
207
|
/**
|
|
207
|
-
* @summary
|
|
208
|
+
* @summary Retrieve a deal.
|
|
208
209
|
*/
|
|
209
210
|
export const dealGetDeal = (
|
|
210
211
|
dealUid: string | null,
|
|
@@ -251,7 +252,7 @@ export type DealGetDealQueryError = void
|
|
|
251
252
|
|
|
252
253
|
|
|
253
254
|
/**
|
|
254
|
-
* @summary
|
|
255
|
+
* @summary Retrieve a deal.
|
|
255
256
|
*/
|
|
256
257
|
|
|
257
258
|
export function useDealGetDeal<TData = Awaited<ReturnType<typeof dealGetDeal>>, TError = void>(
|
|
@@ -468,7 +469,8 @@ export const useRegistrationRegisterAccount = <TError = unknown,
|
|
|
468
469
|
return useMutation(mutationOptions);
|
|
469
470
|
}
|
|
470
471
|
/**
|
|
471
|
-
*
|
|
472
|
+
* Optionally filtered by segment (segmentUid) or search query (q).
|
|
473
|
+
* @summary Retrieve all accounts.
|
|
472
474
|
*/
|
|
473
475
|
export const accountGetAllAccounts = (
|
|
474
476
|
params?: AccountGetAllAccountsParams,
|
|
@@ -516,7 +518,7 @@ export type AccountGetAllAccountsQueryError = void
|
|
|
516
518
|
|
|
517
519
|
|
|
518
520
|
/**
|
|
519
|
-
* @summary
|
|
521
|
+
* @summary Retrieve all accounts.
|
|
520
522
|
*/
|
|
521
523
|
|
|
522
524
|
export function useAccountGetAllAccounts<TData = Awaited<ReturnType<typeof accountGetAllAccounts>>, TError = void>(
|
|
@@ -606,7 +608,7 @@ export const useAccountAddAccount = <TError = void,
|
|
|
606
608
|
return useMutation(mutationOptions);
|
|
607
609
|
}
|
|
608
610
|
/**
|
|
609
|
-
* @summary
|
|
611
|
+
* @summary Retrieve an account.
|
|
610
612
|
*/
|
|
611
613
|
export const accountGetAccount = (
|
|
612
614
|
accountUid: string | null,
|
|
@@ -653,7 +655,7 @@ export type AccountGetAccountQueryError = void
|
|
|
653
655
|
|
|
654
656
|
|
|
655
657
|
/**
|
|
656
|
-
* @summary
|
|
658
|
+
* @summary Retrieve an account.
|
|
657
659
|
*/
|
|
658
660
|
|
|
659
661
|
export function useAccountGetAccount<TData = Awaited<ReturnType<typeof accountGetAccount>>, TError = void>(
|
|
@@ -1257,7 +1259,8 @@ export const useAccountSendConfirmationEmail = <TError = void,
|
|
|
1257
1259
|
return useMutation(mutationOptions);
|
|
1258
1260
|
}
|
|
1259
1261
|
/**
|
|
1260
|
-
*
|
|
1262
|
+
* Returns the people associated with your account.
|
|
1263
|
+
* @summary Retrieve all people.
|
|
1261
1264
|
*/
|
|
1262
1265
|
export const personGetAllPeople = (
|
|
1263
1266
|
params?: PersonGetAllPeopleParams,
|
|
@@ -1305,7 +1308,7 @@ export type PersonGetAllPeopleQueryError = void
|
|
|
1305
1308
|
|
|
1306
1309
|
|
|
1307
1310
|
/**
|
|
1308
|
-
* @summary
|
|
1311
|
+
* @summary Retrieve all people.
|
|
1309
1312
|
*/
|
|
1310
1313
|
|
|
1311
1314
|
export function usePersonGetAllPeople<TData = Awaited<ReturnType<typeof personGetAllPeople>>, TError = void>(
|
|
@@ -1390,7 +1393,7 @@ export const usePersonAddPerson = <TError = void,
|
|
|
1390
1393
|
return useMutation(mutationOptions);
|
|
1391
1394
|
}
|
|
1392
1395
|
/**
|
|
1393
|
-
* @summary
|
|
1396
|
+
* @summary Retrieve a person.
|
|
1394
1397
|
*/
|
|
1395
1398
|
export const personGetPerson = (
|
|
1396
1399
|
personUid: string | null,
|
|
@@ -1437,7 +1440,7 @@ export type PersonGetPersonQueryError = void
|
|
|
1437
1440
|
|
|
1438
1441
|
|
|
1439
1442
|
/**
|
|
1440
|
-
* @summary
|
|
1443
|
+
* @summary Retrieve a person.
|
|
1441
1444
|
*/
|
|
1442
1445
|
|
|
1443
1446
|
export function usePersonGetPerson<TData = Awaited<ReturnType<typeof personGetPerson>>, TError = void>(
|
|
@@ -58,7 +58,8 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Archived campaigns are excluded.
|
|
62
|
+
* @summary Retrieve all broadcast campaigns.
|
|
62
63
|
*/
|
|
63
64
|
export const campaignGetAllBroadcastEmails = (
|
|
64
65
|
|
|
@@ -105,7 +106,7 @@ export type CampaignGetAllBroadcastEmailsQueryError = void
|
|
|
105
106
|
|
|
106
107
|
|
|
107
108
|
/**
|
|
108
|
-
* @summary
|
|
109
|
+
* @summary Retrieve all broadcast campaigns.
|
|
109
110
|
*/
|
|
110
111
|
|
|
111
112
|
export function useCampaignGetAllBroadcastEmails<TData = Awaited<ReturnType<typeof campaignGetAllBroadcastEmails>>, TError = void>(
|
|
@@ -194,7 +195,7 @@ export const useCampaignAddBroadcastEmail = <TError = void,
|
|
|
194
195
|
return useMutation(mutationOptions);
|
|
195
196
|
}
|
|
196
197
|
/**
|
|
197
|
-
* @summary
|
|
198
|
+
* @summary Retrieve a broadcast campaign.
|
|
198
199
|
*/
|
|
199
200
|
export const campaignGetBroadcastEmail = (
|
|
200
201
|
broadcastCampaignUid: string | null,
|
|
@@ -241,7 +242,7 @@ export type CampaignGetBroadcastEmailQueryError = void
|
|
|
241
242
|
|
|
242
243
|
|
|
243
244
|
/**
|
|
244
|
-
* @summary
|
|
245
|
+
* @summary Retrieve a broadcast campaign.
|
|
245
246
|
*/
|
|
246
247
|
|
|
247
248
|
export function useCampaignGetBroadcastEmail<TData = Awaited<ReturnType<typeof campaignGetBroadcastEmail>>, TError = void>(
|
|
@@ -587,7 +588,7 @@ export const useCampaignSendTestCampaignEmail = <TError = void,
|
|
|
587
588
|
return useMutation(mutationOptions);
|
|
588
589
|
}
|
|
589
590
|
/**
|
|
590
|
-
* @summary
|
|
591
|
+
* @summary Retrieve all subscribers to an email list.
|
|
591
592
|
*/
|
|
592
593
|
export const emailListGetAllSubscriptions = (
|
|
593
594
|
emailListUid: string | null,
|
|
@@ -638,7 +639,7 @@ export type EmailListGetAllSubscriptionsQueryError = void
|
|
|
638
639
|
|
|
639
640
|
|
|
640
641
|
/**
|
|
641
|
-
* @summary
|
|
642
|
+
* @summary Retrieve all subscribers to an email list.
|
|
642
643
|
*/
|
|
643
644
|
|
|
644
645
|
export function useEmailListGetAllSubscriptions<TData = Awaited<ReturnType<typeof emailListGetAllSubscriptions>>, TError = void>(
|
|
@@ -3785,6 +3785,11 @@ export type MessageAllOf = {
|
|
|
3785
3785
|
* @nullable
|
|
3786
3786
|
*/
|
|
3787
3787
|
Subject?: string | null;
|
|
3788
|
+
/**
|
|
3789
|
+
* @maxLength 250
|
|
3790
|
+
* @nullable
|
|
3791
|
+
*/
|
|
3792
|
+
PreviewText?: string | null;
|
|
3788
3793
|
/** @nullable */
|
|
3789
3794
|
Body?: string | null;
|
|
3790
3795
|
/** @nullable */
|
|
@@ -6073,11 +6078,54 @@ export type PersonSetTemporaryPasswordBody = TemporaryPasswordModel | null;
|
|
|
6073
6078
|
*/
|
|
6074
6079
|
export type PersonForgotPasswordBody = Person | null;
|
|
6075
6080
|
|
|
6081
|
+
export type DiscountCouponGetDiscountCouponByCodeParams = {
|
|
6082
|
+
/**
|
|
6083
|
+
* The unique identifier of the plan to validate the coupon against
|
|
6084
|
+
* @nullable
|
|
6085
|
+
*/
|
|
6086
|
+
planUid: string | null;
|
|
6087
|
+
};
|
|
6088
|
+
|
|
6089
|
+
export type DiscountCouponGetAllDiscountCouponsParams = {
|
|
6090
|
+
/**
|
|
6091
|
+
* When true, returns only coupons that can still be redeemed
|
|
6092
|
+
*/
|
|
6093
|
+
canRedeem?: boolean;
|
|
6094
|
+
/**
|
|
6095
|
+
* Searches coupons by name or code
|
|
6096
|
+
* @nullable
|
|
6097
|
+
*/
|
|
6098
|
+
q?: string | null;
|
|
6099
|
+
/**
|
|
6100
|
+
* Returns only coupons that apply to the plan with this unique identifier
|
|
6101
|
+
* @nullable
|
|
6102
|
+
*/
|
|
6103
|
+
planUid?: string | null;
|
|
6104
|
+
};
|
|
6105
|
+
|
|
6076
6106
|
/**
|
|
6077
6107
|
* @nullable
|
|
6078
6108
|
*/
|
|
6079
6109
|
export type DiscountCouponAddDiscountCouponBody = DiscountCoupon | null;
|
|
6080
6110
|
|
|
6111
|
+
/**
|
|
6112
|
+
* @nullable
|
|
6113
|
+
*/
|
|
6114
|
+
export type DiscountCouponUpdateDiscountCouponBody = DiscountCoupon | null;
|
|
6115
|
+
|
|
6116
|
+
export type DiscountCouponGetDiscountCouponRedemptionsParams = {
|
|
6117
|
+
/**
|
|
6118
|
+
* Searches redemptions by account or plan name
|
|
6119
|
+
* @nullable
|
|
6120
|
+
*/
|
|
6121
|
+
q?: string | null;
|
|
6122
|
+
/**
|
|
6123
|
+
* When set, filters by whether the redemption is still active
|
|
6124
|
+
* @nullable
|
|
6125
|
+
*/
|
|
6126
|
+
isActive?: boolean | null;
|
|
6127
|
+
};
|
|
6128
|
+
|
|
6081
6129
|
/**
|
|
6082
6130
|
* @nullable
|
|
6083
6131
|
*/
|
|
@@ -6093,11 +6141,29 @@ export type TransactionsAddPaymentTransactionBody = Transaction | null;
|
|
|
6093
6141
|
*/
|
|
6094
6142
|
export type PaymentInformationSavePaymentInformationBody = PaymentInformation | null;
|
|
6095
6143
|
|
|
6144
|
+
export type SubscriptionAddOnGetAllSubscriptionsAddOnsParams = {
|
|
6145
|
+
/**
|
|
6146
|
+
* Filters by the add-on's lifecycle: current, future, or past
|
|
6147
|
+
* @nullable
|
|
6148
|
+
*/
|
|
6149
|
+
status?: string | null;
|
|
6150
|
+
};
|
|
6151
|
+
|
|
6096
6152
|
/**
|
|
6097
6153
|
* @nullable
|
|
6098
6154
|
*/
|
|
6099
6155
|
export type SubscriptionAddOnAddSubscriptionAddOnBody = SubscriptionAddOn | null;
|
|
6100
6156
|
|
|
6157
|
+
/**
|
|
6158
|
+
* @nullable
|
|
6159
|
+
*/
|
|
6160
|
+
export type SubscriptionAddOnAddSubscriptionAddOnPreviewBody = SubscriptionAddOn | null;
|
|
6161
|
+
|
|
6162
|
+
/**
|
|
6163
|
+
* @nullable
|
|
6164
|
+
*/
|
|
6165
|
+
export type SubscriptionAddOnSetAddOnUpgradeRequiredBody = SubscriptionAddOn | null;
|
|
6166
|
+
|
|
6101
6167
|
/**
|
|
6102
6168
|
* @nullable
|
|
6103
6169
|
*/
|
|
@@ -6108,6 +6174,19 @@ export type InvoiceAddInvoiceBody = Invoice | null;
|
|
|
6108
6174
|
*/
|
|
6109
6175
|
export type InvoiceUpdateInvoiceBody = Invoice | null;
|
|
6110
6176
|
|
|
6177
|
+
export type SubscriptionGetAllSubscriptionsParams = {
|
|
6178
|
+
/**
|
|
6179
|
+
* Pass 1 to return only the most recent subscription per account, expired or not
|
|
6180
|
+
* @nullable
|
|
6181
|
+
*/
|
|
6182
|
+
current?: string | null;
|
|
6183
|
+
/**
|
|
6184
|
+
* Filters by the subscription's lifecycle: current, future, or past
|
|
6185
|
+
* @nullable
|
|
6186
|
+
*/
|
|
6187
|
+
status?: string | null;
|
|
6188
|
+
};
|
|
6189
|
+
|
|
6111
6190
|
/**
|
|
6112
6191
|
* @nullable
|
|
6113
6192
|
*/
|
|
@@ -6157,6 +6236,26 @@ startImmediately?: string | null;
|
|
|
6157
6236
|
*/
|
|
6158
6237
|
export type SubscriptionChangeSubscriptionBody = Subscription | null;
|
|
6159
6238
|
|
|
6239
|
+
/**
|
|
6240
|
+
* @nullable
|
|
6241
|
+
*/
|
|
6242
|
+
export type PlanAddPlanBody = Plan | null;
|
|
6243
|
+
|
|
6244
|
+
/**
|
|
6245
|
+
* @nullable
|
|
6246
|
+
*/
|
|
6247
|
+
export type PlanUpdatePlanBody = Plan | null;
|
|
6248
|
+
|
|
6249
|
+
/**
|
|
6250
|
+
* @nullable
|
|
6251
|
+
*/
|
|
6252
|
+
export type PlanFamilyAddPlanFamilyBody = PlanFamily | null;
|
|
6253
|
+
|
|
6254
|
+
/**
|
|
6255
|
+
* @nullable
|
|
6256
|
+
*/
|
|
6257
|
+
export type PlanFamilyUpdatePlanFamilyBody = PlanFamily | null;
|
|
6258
|
+
|
|
6160
6259
|
export type ActivityGetAllParams = {
|
|
6161
6260
|
/**
|
|
6162
6261
|
* @nullable
|
|
@@ -32,7 +32,9 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Authenticates a user and returns a JWT access token (plus a refresh token).
|
|
36
|
+
|
|
37
|
+
Post a JSON body with the user's credentials:
|
|
36
38
|
|
|
37
39
|
{ "username": "user@example.com", "password": "their-password" }
|
|
38
40
|
|
|
@@ -67,7 +69,7 @@ body instead contains `"two_factor_enrollment_required": true` with a
|
|
|
67
69
|
`challenge_token` to drive the mid-login enrollment endpoints.
|
|
68
70
|
|
|
69
71
|
Invalid credentials return `400` with a body of `invalid_grant`.
|
|
70
|
-
* @summary Log a user in
|
|
72
|
+
* @summary Log a user in.
|
|
71
73
|
*/
|
|
72
74
|
export const authGetToken = (
|
|
73
75
|
params: AuthGetTokenParams,
|
|
@@ -114,7 +116,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
114
116
|
export type AuthGetTokenMutationError = string
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
|
-
* @summary Log a user in
|
|
119
|
+
* @summary Log a user in.
|
|
118
120
|
*/
|
|
119
121
|
export const useAuthGetToken = <TError = string,
|
|
120
122
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof authGetToken>>, TError,{params: AuthGetTokenParams}, TContext>, request?: SecondParameter<typeof customFetch>}
|
|
@@ -59,9 +59,10 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Optionally filtered by search string, tag, and/or assignment.
|
|
63
|
+
Assigned cases can be filtered by passing in the AssignedToPersonClientIdentifier,
|
|
63
64
|
which is the Uid of the person the case is assigned to.
|
|
64
|
-
* @summary
|
|
65
|
+
* @summary Retrieve all cases.
|
|
65
66
|
*/
|
|
66
67
|
export const caseGetAllCases = (
|
|
67
68
|
params?: CaseGetAllCasesParams,
|
|
@@ -109,7 +110,7 @@ export type CaseGetAllCasesQueryError = void
|
|
|
109
110
|
|
|
110
111
|
|
|
111
112
|
/**
|
|
112
|
-
* @summary
|
|
113
|
+
* @summary Retrieve all cases.
|
|
113
114
|
*/
|
|
114
115
|
|
|
115
116
|
export function useCaseGetAllCases<TData = Awaited<ReturnType<typeof caseGetAllCases>>, TError = void>(
|
|
@@ -196,7 +197,7 @@ export const useCaseAddCase = <TError = void,
|
|
|
196
197
|
return useMutation(mutationOptions);
|
|
197
198
|
}
|
|
198
199
|
/**
|
|
199
|
-
* @summary Retrieve a
|
|
200
|
+
* @summary Retrieve a case.
|
|
200
201
|
*/
|
|
201
202
|
export const caseGetCase = (
|
|
202
203
|
caseUid: string | null,
|
|
@@ -243,7 +244,7 @@ export type CaseGetCaseQueryError = void
|
|
|
243
244
|
|
|
244
245
|
|
|
245
246
|
/**
|
|
246
|
-
* @summary Retrieve a
|
|
247
|
+
* @summary Retrieve a case.
|
|
247
248
|
*/
|
|
248
249
|
|
|
249
250
|
export function useCaseGetCase<TData = Awaited<ReturnType<typeof caseGetCase>>, TError = void>(
|
|
@@ -459,7 +460,7 @@ export function useArticleGetAllArticles<TData = Awaited<ReturnType<typeof artic
|
|
|
459
460
|
|
|
460
461
|
|
|
461
462
|
/**
|
|
462
|
-
* @summary
|
|
463
|
+
* @summary Retrieve a knowledge base article.
|
|
463
464
|
*/
|
|
464
465
|
export const articleGetArticle = (
|
|
465
466
|
articleUid: string | null,
|
|
@@ -506,7 +507,7 @@ export type ArticleGetArticleQueryError = void
|
|
|
506
507
|
|
|
507
508
|
|
|
508
509
|
/**
|
|
509
|
-
* @summary
|
|
510
|
+
* @summary Retrieve a knowledge base article.
|
|
510
511
|
*/
|
|
511
512
|
|
|
512
513
|
export function useArticleGetArticle<TData = Awaited<ReturnType<typeof articleGetArticle>>, TError = void>(
|
|
@@ -527,7 +528,7 @@ export function useArticleGetArticle<TData = Awaited<ReturnType<typeof articleGe
|
|
|
527
528
|
|
|
528
529
|
|
|
529
530
|
/**
|
|
530
|
-
* @summary
|
|
531
|
+
* @summary Retrieve all knowledge base categories.
|
|
531
532
|
*/
|
|
532
533
|
export const categoryGetAllCategories = (
|
|
533
534
|
|
|
@@ -574,7 +575,7 @@ export type CategoryGetAllCategoriesQueryError = unknown
|
|
|
574
575
|
|
|
575
576
|
|
|
576
577
|
/**
|
|
577
|
-
* @summary
|
|
578
|
+
* @summary Retrieve all knowledge base categories.
|
|
578
579
|
*/
|
|
579
580
|
|
|
580
581
|
export function useCategoryGetAllCategories<TData = Awaited<ReturnType<typeof categoryGetAllCategories>>, TError = unknown>(
|