@outseta/api-client 0.2.3 → 0.2.4
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/package.json +8 -8
- package/src/generated/activity/activity.ts +10 -7
- package/src/generated/attribute/attribute.ts +94 -0
- package/src/generated/billing/billing.ts +391 -16
- package/src/generated/crm/crm.ts +84 -22
- package/src/generated/email/email.ts +21 -16
- package/src/generated/models/activityType.ts +2 -1
- package/src/generated/models/articleGetAllArticlesParams.ts +1 -0
- package/src/generated/models/crmSettingsAllOf.ts +1 -0
- package/src/generated/models/index.ts +1 -0
- package/src/generated/models/invoiceUpdateInvoiceBody.ts +7 -0
- package/src/generated/models/paymentsGatewayActivationStatus.ts +2 -1
- package/src/generated/models/qcountConfigSettingType.ts +3 -1
- package/src/generated/models/setupIntent.ts +1 -0
- package/src/generated/support/support.ts +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outseta/api-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Generated API client for the Outseta REST API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,12 +17,6 @@
|
|
|
17
17
|
"import": "./dist/index.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "rimraf dist && bun build src/index.ts --outdir dist --target node --format esm --packages external",
|
|
22
|
-
"typecheck": "tsc --noEmit",
|
|
23
|
-
"lint": "eslint src --ignore-pattern generated",
|
|
24
|
-
"test": "bun test --env-file ../../.env.test"
|
|
25
|
-
},
|
|
26
20
|
"dependencies": {},
|
|
27
21
|
"devDependencies": {
|
|
28
22
|
"@types/bun": "^1.3.10",
|
|
@@ -35,5 +29,11 @@
|
|
|
35
29
|
"publishConfig": {
|
|
36
30
|
"access": "public",
|
|
37
31
|
"provenance": true
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "rimraf dist && bun build src/index.ts --outdir dist --target node --format esm --packages external",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"lint": "eslint src --ignore-pattern generated",
|
|
37
|
+
"test": "bun test --env-file ../../.env.test"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|
|
@@ -8,10 +8,12 @@ import type {
|
|
|
8
8
|
import { customFetch } from '../../client';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
ActivityType=[100,101] where ActivityUpdated = 100 and AcccountUpdated = 101
|
|
11
|
+
* One or multiple parameters can be defined to filter the results.
|
|
12
|
+
ActivityType=[100,101] where ActivityUpdated = 100 and AcccountUpdated = 101.
|
|
13
13
|
Results will be limited to the last year unless ActivityDateTime is specified,
|
|
14
|
-
possibly with ActivityDateTime__gt/ActivityDateTime__gte and
|
|
14
|
+
possibly with ActivityDateTime__gt/ActivityDateTime__gte and
|
|
15
|
+
ActivityDateTime__lt/ActivityDateTime__lte.
|
|
16
|
+
* @summary Retrieve all activities, optionally filtered.
|
|
15
17
|
*/
|
|
16
18
|
export type activityGetAllResponse200 = {
|
|
17
19
|
data: Activity[]
|
|
@@ -68,10 +70,11 @@ export const activityGetAll = async (params?: ActivityGetAllParams, options?: Re
|
|
|
68
70
|
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
|
-
*
|
|
72
|
-
|
|
73
|
-
campaigns
|
|
74
|
-
|
|
73
|
+
* These activities show up on the activity feed of the corresponding entity and can be
|
|
74
|
+
leveraged to trigger drip campaigns and other automation. For integration with drip
|
|
75
|
+
campaigns make sure that what you pass in the Title property matches the start / stop
|
|
76
|
+
value specified for the campaign.
|
|
77
|
+
* @summary Record a custom event associated to an account, person or deal.
|
|
75
78
|
*/
|
|
76
79
|
export type activityAddCustomActivityResponse200 = {
|
|
77
80
|
data: Blob
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type {
|
|
3
|
+
Definition
|
|
4
|
+
} from '.././models';
|
|
5
|
+
|
|
6
|
+
import { customFetch } from '../../client';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* entityType is the name of an EntityType enum value, for example: Account, Person,
|
|
10
|
+
Deal. Definitions describe the labels, system names, and control types of
|
|
11
|
+
the custom attributes that have been added to that entity.
|
|
12
|
+
* @summary Returns all custom attribute definitions for the given entity type.
|
|
13
|
+
*/
|
|
14
|
+
export type definitionGetAllDefinitionsResponse200 = {
|
|
15
|
+
data: Definition[]
|
|
16
|
+
status: 200
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type definitionGetAllDefinitionsResponseSuccess = (definitionGetAllDefinitionsResponse200) & {
|
|
20
|
+
headers: Headers;
|
|
21
|
+
};
|
|
22
|
+
;
|
|
23
|
+
|
|
24
|
+
export type definitionGetAllDefinitionsResponse = (definitionGetAllDefinitionsResponseSuccess)
|
|
25
|
+
|
|
26
|
+
export const getDefinitionGetAllDefinitionsUrl = (entityType: string | null,) => {
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
return `/api/v1/attributes/${entityType}/definitions`
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const definitionGetAllDefinitions = async (entityType: string | null, options?: RequestInit): Promise<definitionGetAllDefinitionsResponse> => {
|
|
35
|
+
|
|
36
|
+
return customFetch<definitionGetAllDefinitionsResponse>(getDefinitionGetAllDefinitionsUrl(entityType),
|
|
37
|
+
{
|
|
38
|
+
...options,
|
|
39
|
+
method: 'GET'
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
);}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The entityType segment of the URL must match the type the definition belongs to
|
|
48
|
+
(e.g. Account, Person, Deal).
|
|
49
|
+
* @summary Returns a single custom attribute definition by UID.
|
|
50
|
+
*/
|
|
51
|
+
export type definitionGetDefinitionResponse200 = {
|
|
52
|
+
data: Definition
|
|
53
|
+
status: 200
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type definitionGetDefinitionResponse400 = {
|
|
57
|
+
data: void
|
|
58
|
+
status: 400
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type definitionGetDefinitionResponse404 = {
|
|
62
|
+
data: void
|
|
63
|
+
status: 404
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type definitionGetDefinitionResponseSuccess = (definitionGetDefinitionResponse200) & {
|
|
67
|
+
headers: Headers;
|
|
68
|
+
};
|
|
69
|
+
export type definitionGetDefinitionResponseError = (definitionGetDefinitionResponse400 | definitionGetDefinitionResponse404) & {
|
|
70
|
+
headers: Headers;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type definitionGetDefinitionResponse = (definitionGetDefinitionResponseSuccess | definitionGetDefinitionResponseError)
|
|
74
|
+
|
|
75
|
+
export const getDefinitionGetDefinitionUrl = (definitionUid: string | null,) => {
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
return `/api/v1/attributes/definitions/${definitionUid}`
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const definitionGetDefinition = async (definitionUid: string | null, options?: RequestInit): Promise<definitionGetDefinitionResponse> => {
|
|
84
|
+
|
|
85
|
+
return customFetch<definitionGetDefinitionResponse>(getDefinitionGetDefinitionUrl(definitionUid),
|
|
86
|
+
{
|
|
87
|
+
...options,
|
|
88
|
+
method: 'GET'
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
);}
|
|
93
|
+
|
|
94
|
+
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
DiscountCouponAddDiscountCouponBody,
|
|
5
5
|
Invoice,
|
|
6
6
|
InvoiceAddInvoiceBody,
|
|
7
|
+
InvoiceUpdateInvoiceBody,
|
|
7
8
|
PaymentInformation,
|
|
8
9
|
PaymentInformationSavePaymentInformationBody,
|
|
9
10
|
Plan,
|
|
@@ -27,8 +28,9 @@ import type {
|
|
|
27
28
|
import { customFetch } from '../../client';
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Only one of AmountOff or PercentOff should be set.
|
|
31
32
|
Duration values: 1 = Forever, 2 = Once, 3 = Repeating (DurationInMonths must be set).
|
|
33
|
+
* @summary Add a new discount coupon.
|
|
32
34
|
*/
|
|
33
35
|
export type discountCouponAddDiscountCouponResponse200 = {
|
|
34
36
|
data: DiscountCoupon
|
|
@@ -114,8 +116,9 @@ export const usageAddUsage = async (usageAddUsageBody: UsageAddUsageBody, option
|
|
|
114
116
|
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
|
-
*
|
|
119
|
+
* Transactions are tied to accounts and invoices.
|
|
118
120
|
BillingTransactionType: Invoice = 1, Payment = 2, Credit = 3, Refund = 4, Chargeback = 5.
|
|
121
|
+
* @summary Retrieve all transactions for a given account.
|
|
119
122
|
*/
|
|
120
123
|
export type transactionsGetAllTransactionsByAccountIdResponse200 = {
|
|
121
124
|
data: Transaction[]
|
|
@@ -162,8 +165,9 @@ export const transactionsGetAllTransactionsByAccountId = async (accountUid: stri
|
|
|
162
165
|
|
|
163
166
|
|
|
164
167
|
/**
|
|
165
|
-
*
|
|
166
|
-
|
|
168
|
+
* If the amount matches the outstanding amount of the invoice, the invoice will be marked
|
|
169
|
+
as Paid.
|
|
170
|
+
* @summary Add a payment to an invoice.
|
|
167
171
|
*/
|
|
168
172
|
export type transactionsAddPaymentTransactionResponse200 = {
|
|
169
173
|
data: Transaction
|
|
@@ -291,6 +295,51 @@ export const subscriptionAddOnAddSubscriptionAddOn = async (subscriptionAddOnAdd
|
|
|
291
295
|
);}
|
|
292
296
|
|
|
293
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Admins and API key callers see every invoice. Non-admin users see only invoices
|
|
300
|
+
belonging to the account they are the primary contact of.
|
|
301
|
+
Pass excludeInvoiceUid as a query parameter to omit a specific invoice from the result set.
|
|
302
|
+
* @summary Returns all invoices, optionally restricted to the requester's account.
|
|
303
|
+
*/
|
|
304
|
+
export type invoiceGetAllInvoicesResponse200 = {
|
|
305
|
+
data: Invoice[]
|
|
306
|
+
status: 200
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export type invoiceGetAllInvoicesResponse401 = {
|
|
310
|
+
data: void
|
|
311
|
+
status: 401
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type invoiceGetAllInvoicesResponseSuccess = (invoiceGetAllInvoicesResponse200) & {
|
|
315
|
+
headers: Headers;
|
|
316
|
+
};
|
|
317
|
+
export type invoiceGetAllInvoicesResponseError = (invoiceGetAllInvoicesResponse401) & {
|
|
318
|
+
headers: Headers;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
export type invoiceGetAllInvoicesResponse = (invoiceGetAllInvoicesResponseSuccess | invoiceGetAllInvoicesResponseError)
|
|
322
|
+
|
|
323
|
+
export const getInvoiceGetAllInvoicesUrl = () => {
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
return `/api/v1/billing/invoices`
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export const invoiceGetAllInvoices = async ( options?: RequestInit): Promise<invoiceGetAllInvoicesResponse> => {
|
|
332
|
+
|
|
333
|
+
return customFetch<invoiceGetAllInvoicesResponse>(getInvoiceGetAllInvoicesUrl(),
|
|
334
|
+
{
|
|
335
|
+
...options,
|
|
336
|
+
method: 'GET'
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
}
|
|
340
|
+
);}
|
|
341
|
+
|
|
342
|
+
|
|
294
343
|
/**
|
|
295
344
|
* @summary Create an ad-hoc invoice for a given account.
|
|
296
345
|
*/
|
|
@@ -334,6 +383,329 @@ export const invoiceAddInvoice = async (invoiceAddInvoiceBody: InvoiceAddInvoice
|
|
|
334
383
|
);}
|
|
335
384
|
|
|
336
385
|
|
|
386
|
+
/**
|
|
387
|
+
* @summary Returns a single invoice by UID.
|
|
388
|
+
*/
|
|
389
|
+
export type invoiceGetInvoiceResponse200 = {
|
|
390
|
+
data: Invoice
|
|
391
|
+
status: 200
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export type invoiceGetInvoiceResponse400 = {
|
|
395
|
+
data: void
|
|
396
|
+
status: 400
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export type invoiceGetInvoiceResponse401 = {
|
|
400
|
+
data: void
|
|
401
|
+
status: 401
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export type invoiceGetInvoiceResponse404 = {
|
|
405
|
+
data: void
|
|
406
|
+
status: 404
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export type invoiceGetInvoiceResponseSuccess = (invoiceGetInvoiceResponse200) & {
|
|
410
|
+
headers: Headers;
|
|
411
|
+
};
|
|
412
|
+
export type invoiceGetInvoiceResponseError = (invoiceGetInvoiceResponse400 | invoiceGetInvoiceResponse401 | invoiceGetInvoiceResponse404) & {
|
|
413
|
+
headers: Headers;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
export type invoiceGetInvoiceResponse = (invoiceGetInvoiceResponseSuccess | invoiceGetInvoiceResponseError)
|
|
417
|
+
|
|
418
|
+
export const getInvoiceGetInvoiceUrl = (invoiceUid: string | null,) => {
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
return `/api/v1/billing/invoices/${invoiceUid}`
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export const invoiceGetInvoice = async (invoiceUid: string | null, options?: RequestInit): Promise<invoiceGetInvoiceResponse> => {
|
|
427
|
+
|
|
428
|
+
return customFetch<invoiceGetInvoiceResponse>(getInvoiceGetInvoiceUrl(invoiceUid),
|
|
429
|
+
{
|
|
430
|
+
...options,
|
|
431
|
+
method: 'GET'
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
}
|
|
435
|
+
);}
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Only invoices created manually via the API or admin UI can be updated; invoices
|
|
440
|
+
generated by a subscription's billing cycle are immutable and will return a
|
|
441
|
+
validation error.
|
|
442
|
+
* @summary Update an ad-hoc (manually created) invoice.
|
|
443
|
+
*/
|
|
444
|
+
export type invoiceUpdateInvoiceResponse200 = {
|
|
445
|
+
data: Invoice
|
|
446
|
+
status: 200
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export type invoiceUpdateInvoiceResponse400 = {
|
|
450
|
+
data: void
|
|
451
|
+
status: 400
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export type invoiceUpdateInvoiceResponse401 = {
|
|
455
|
+
data: void
|
|
456
|
+
status: 401
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export type invoiceUpdateInvoiceResponse404 = {
|
|
460
|
+
data: void
|
|
461
|
+
status: 404
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export type invoiceUpdateInvoiceResponseSuccess = (invoiceUpdateInvoiceResponse200) & {
|
|
465
|
+
headers: Headers;
|
|
466
|
+
};
|
|
467
|
+
export type invoiceUpdateInvoiceResponseError = (invoiceUpdateInvoiceResponse400 | invoiceUpdateInvoiceResponse401 | invoiceUpdateInvoiceResponse404) & {
|
|
468
|
+
headers: Headers;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
export type invoiceUpdateInvoiceResponse = (invoiceUpdateInvoiceResponseSuccess | invoiceUpdateInvoiceResponseError)
|
|
472
|
+
|
|
473
|
+
export const getInvoiceUpdateInvoiceUrl = (invoiceUid: string | null,) => {
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
return `/api/v1/billing/invoices/${invoiceUid}`
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export const invoiceUpdateInvoice = async (invoiceUid: string | null,
|
|
482
|
+
invoiceUpdateInvoiceBody: InvoiceUpdateInvoiceBody, options?: RequestInit): Promise<invoiceUpdateInvoiceResponse> => {
|
|
483
|
+
|
|
484
|
+
return customFetch<invoiceUpdateInvoiceResponse>(getInvoiceUpdateInvoiceUrl(invoiceUid),
|
|
485
|
+
{
|
|
486
|
+
...options,
|
|
487
|
+
method: 'PUT',
|
|
488
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
489
|
+
body: JSON.stringify(
|
|
490
|
+
invoiceUpdateInvoiceBody,)
|
|
491
|
+
}
|
|
492
|
+
);}
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @summary Delete an invoice.
|
|
497
|
+
*/
|
|
498
|
+
export type invoiceDeleteInvoiceResponse200 = {
|
|
499
|
+
data: Blob
|
|
500
|
+
status: 200
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export type invoiceDeleteInvoiceResponse400 = {
|
|
504
|
+
data: void
|
|
505
|
+
status: 400
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export type invoiceDeleteInvoiceResponse401 = {
|
|
509
|
+
data: void
|
|
510
|
+
status: 401
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export type invoiceDeleteInvoiceResponse404 = {
|
|
514
|
+
data: void
|
|
515
|
+
status: 404
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export type invoiceDeleteInvoiceResponseSuccess = (invoiceDeleteInvoiceResponse200) & {
|
|
519
|
+
headers: Headers;
|
|
520
|
+
};
|
|
521
|
+
export type invoiceDeleteInvoiceResponseError = (invoiceDeleteInvoiceResponse400 | invoiceDeleteInvoiceResponse401 | invoiceDeleteInvoiceResponse404) & {
|
|
522
|
+
headers: Headers;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
export type invoiceDeleteInvoiceResponse = (invoiceDeleteInvoiceResponseSuccess | invoiceDeleteInvoiceResponseError)
|
|
526
|
+
|
|
527
|
+
export const getInvoiceDeleteInvoiceUrl = (invoiceUid: string | null,) => {
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
return `/api/v1/billing/invoices/${invoiceUid}`
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export const invoiceDeleteInvoice = async (invoiceUid: string | null, options?: RequestInit): Promise<invoiceDeleteInvoiceResponse> => {
|
|
536
|
+
|
|
537
|
+
return customFetch<invoiceDeleteInvoiceResponse>(getInvoiceDeleteInvoiceUrl(invoiceUid),
|
|
538
|
+
{
|
|
539
|
+
...options,
|
|
540
|
+
method: 'DELETE'
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
}
|
|
544
|
+
);}
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Response body is a binary PDF (Content-Type: application/pdf) served as an
|
|
549
|
+
attachment named invoice-{Number}-{InvoiceDate}-{AccountName}.pdf.
|
|
550
|
+
* @summary Returns a rendered PDF copy of an invoice.
|
|
551
|
+
*/
|
|
552
|
+
export type invoiceGetInvoiceAsPdfResponse200 = {
|
|
553
|
+
data: Blob
|
|
554
|
+
status: 200
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export type invoiceGetInvoiceAsPdfResponse400 = {
|
|
558
|
+
data: void
|
|
559
|
+
status: 400
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export type invoiceGetInvoiceAsPdfResponse401 = {
|
|
563
|
+
data: void
|
|
564
|
+
status: 401
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export type invoiceGetInvoiceAsPdfResponse404 = {
|
|
568
|
+
data: void
|
|
569
|
+
status: 404
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export type invoiceGetInvoiceAsPdfResponseSuccess = (invoiceGetInvoiceAsPdfResponse200) & {
|
|
573
|
+
headers: Headers;
|
|
574
|
+
};
|
|
575
|
+
export type invoiceGetInvoiceAsPdfResponseError = (invoiceGetInvoiceAsPdfResponse400 | invoiceGetInvoiceAsPdfResponse401 | invoiceGetInvoiceAsPdfResponse404) & {
|
|
576
|
+
headers: Headers;
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
export type invoiceGetInvoiceAsPdfResponse = (invoiceGetInvoiceAsPdfResponseSuccess | invoiceGetInvoiceAsPdfResponseError)
|
|
580
|
+
|
|
581
|
+
export const getInvoiceGetInvoiceAsPdfUrl = (invoiceUid: string | null,) => {
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
return `/api/v1/billing/invoices/${invoiceUid}/pdf`
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export const invoiceGetInvoiceAsPdf = async (invoiceUid: string | null, options?: RequestInit): Promise<invoiceGetInvoiceAsPdfResponse> => {
|
|
590
|
+
|
|
591
|
+
return customFetch<invoiceGetInvoiceAsPdfResponse>(getInvoiceGetInvoiceAsPdfUrl(invoiceUid),
|
|
592
|
+
{
|
|
593
|
+
...options,
|
|
594
|
+
method: 'GET'
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
}
|
|
598
|
+
);}
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Optional query parameters:
|
|
603
|
+
note - free-text note to include in the email body.
|
|
604
|
+
bcc - comma-separated list of email addresses to BCC.
|
|
605
|
+
* @summary Email an invoice to the account's billing contact.
|
|
606
|
+
*/
|
|
607
|
+
export type invoiceSendInvoiceEmailResponse200 = {
|
|
608
|
+
data: Blob
|
|
609
|
+
status: 200
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
export type invoiceSendInvoiceEmailResponse400 = {
|
|
613
|
+
data: void
|
|
614
|
+
status: 400
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export type invoiceSendInvoiceEmailResponse401 = {
|
|
618
|
+
data: void
|
|
619
|
+
status: 401
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export type invoiceSendInvoiceEmailResponse404 = {
|
|
623
|
+
data: void
|
|
624
|
+
status: 404
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export type invoiceSendInvoiceEmailResponseSuccess = (invoiceSendInvoiceEmailResponse200) & {
|
|
628
|
+
headers: Headers;
|
|
629
|
+
};
|
|
630
|
+
export type invoiceSendInvoiceEmailResponseError = (invoiceSendInvoiceEmailResponse400 | invoiceSendInvoiceEmailResponse401 | invoiceSendInvoiceEmailResponse404) & {
|
|
631
|
+
headers: Headers;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
export type invoiceSendInvoiceEmailResponse = (invoiceSendInvoiceEmailResponseSuccess | invoiceSendInvoiceEmailResponseError)
|
|
635
|
+
|
|
636
|
+
export const getInvoiceSendInvoiceEmailUrl = (invoiceUid: string | null,) => {
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
return `/api/v1/billing/invoices/${invoiceUid}/sendinvoiceemail`
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export const invoiceSendInvoiceEmail = async (invoiceUid: string | null, options?: RequestInit): Promise<invoiceSendInvoiceEmailResponse> => {
|
|
645
|
+
|
|
646
|
+
return customFetch<invoiceSendInvoiceEmailResponse>(getInvoiceSendInvoiceEmailUrl(invoiceUid),
|
|
647
|
+
{
|
|
648
|
+
...options,
|
|
649
|
+
method: 'POST'
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
}
|
|
653
|
+
);}
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Returns 400 Bad Request if the invoice is not in the Paid status.
|
|
658
|
+
* @summary Send the "invoice paid" receipt email to the account's billing contact.
|
|
659
|
+
*/
|
|
660
|
+
export type invoiceSendInvoicePaidEmailResponse200 = {
|
|
661
|
+
data: Blob
|
|
662
|
+
status: 200
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export type invoiceSendInvoicePaidEmailResponse400 = {
|
|
666
|
+
data: void
|
|
667
|
+
status: 400
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export type invoiceSendInvoicePaidEmailResponse401 = {
|
|
671
|
+
data: void
|
|
672
|
+
status: 401
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export type invoiceSendInvoicePaidEmailResponse404 = {
|
|
676
|
+
data: void
|
|
677
|
+
status: 404
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export type invoiceSendInvoicePaidEmailResponseSuccess = (invoiceSendInvoicePaidEmailResponse200) & {
|
|
681
|
+
headers: Headers;
|
|
682
|
+
};
|
|
683
|
+
export type invoiceSendInvoicePaidEmailResponseError = (invoiceSendInvoicePaidEmailResponse400 | invoiceSendInvoicePaidEmailResponse401 | invoiceSendInvoicePaidEmailResponse404) & {
|
|
684
|
+
headers: Headers;
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
export type invoiceSendInvoicePaidEmailResponse = (invoiceSendInvoicePaidEmailResponseSuccess | invoiceSendInvoicePaidEmailResponseError)
|
|
688
|
+
|
|
689
|
+
export const getInvoiceSendInvoicePaidEmailUrl = (invoiceUid: string | null,) => {
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
return `/api/v1/billing/invoices/${invoiceUid}/sendinvoicepaidemail`
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export const invoiceSendInvoicePaidEmail = async (invoiceUid: string | null, options?: RequestInit): Promise<invoiceSendInvoicePaidEmailResponse> => {
|
|
698
|
+
|
|
699
|
+
return customFetch<invoiceSendInvoicePaidEmailResponse>(getInvoiceSendInvoicePaidEmailUrl(invoiceUid),
|
|
700
|
+
{
|
|
701
|
+
...options,
|
|
702
|
+
method: 'POST'
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
}
|
|
706
|
+
);}
|
|
707
|
+
|
|
708
|
+
|
|
337
709
|
/**
|
|
338
710
|
* @summary Retrieves a subscription.
|
|
339
711
|
*/
|
|
@@ -441,8 +813,9 @@ export const subscriptionAddDiscountToSubscription = async (subscriptionUid: str
|
|
|
441
813
|
|
|
442
814
|
|
|
443
815
|
/**
|
|
444
|
-
*
|
|
445
|
-
|
|
816
|
+
* When a subscription is flagged, next time the user authenticates the authentication
|
|
817
|
+
widget will prompt the user to change plan.
|
|
818
|
+
* @summary Indicate that an upgrade of plan is required.
|
|
446
819
|
*/
|
|
447
820
|
export type subscriptionSetSubscriptionUpgradeRequiredResponse200 = {
|
|
448
821
|
data: Subscription
|
|
@@ -496,10 +869,11 @@ export const subscriptionSetSubscriptionUpgradeRequired = async (subscriptionUid
|
|
|
496
869
|
|
|
497
870
|
|
|
498
871
|
/**
|
|
499
|
-
*
|
|
500
|
-
with this subscription.
|
|
501
|
-
|
|
502
|
-
|
|
872
|
+
* Returns an invoice object with information about the amount outstanding if an account
|
|
873
|
+
were to register with this subscription. BillingRenewalTerm values: 1 = Monthly,
|
|
874
|
+
2 = Yearly, 3 = Quarterly, 4 = OneTime. Pass asOf=renewal to see the renewal invoice
|
|
875
|
+
instead of the initial invoice.
|
|
876
|
+
* @summary Preview the initial or renewal invoice for a hypothetical subscription.
|
|
503
877
|
*/
|
|
504
878
|
export type subscriptionFirstTimeSubscriptionPreviewResponse200 = {
|
|
505
879
|
data: Invoice
|
|
@@ -543,8 +917,8 @@ export const subscriptionFirstTimeSubscriptionPreview = async (subscriptionFirst
|
|
|
543
917
|
|
|
544
918
|
|
|
545
919
|
/**
|
|
546
|
-
*
|
|
547
|
-
|
|
920
|
+
* Returns an invoice object with information about the amount outstanding.
|
|
921
|
+
* @summary Add a subscription to an account for the first time.
|
|
548
922
|
*/
|
|
549
923
|
export type subscriptionFirstTimeSubscriptionResponse200 = {
|
|
550
924
|
data: Invoice
|
|
@@ -587,8 +961,9 @@ export const subscriptionFirstTimeSubscription = async (subscriptionFirstTimeSub
|
|
|
587
961
|
|
|
588
962
|
|
|
589
963
|
/**
|
|
590
|
-
*
|
|
591
|
-
|
|
964
|
+
* Returns an invoice object with information about the amount outstanding. This method
|
|
965
|
+
does not commit the subscription change.
|
|
966
|
+
* @summary Preview the invoice for a subscription change.
|
|
592
967
|
*/
|
|
593
968
|
export type subscriptionChangeSubscriptionPreviewResponse200 = {
|
|
594
969
|
data: Invoice
|
|
@@ -651,8 +1026,8 @@ export const subscriptionChangeSubscriptionPreview = async (subscriptionUid: str
|
|
|
651
1026
|
|
|
652
1027
|
|
|
653
1028
|
/**
|
|
654
|
-
*
|
|
655
|
-
|
|
1029
|
+
* Returns an invoice object with information about the amount outstanding.
|
|
1030
|
+
* @summary Change a subscription on an account.
|
|
656
1031
|
*/
|
|
657
1032
|
export type subscriptionChangeSubscriptionResponse200 = {
|
|
658
1033
|
data: Subscription
|
package/src/generated/crm/crm.ts
CHANGED
|
@@ -280,11 +280,13 @@ export const dealDeleteDeal = async (dealUid: string | null, options?: RequestIn
|
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
|
-
*
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
283
|
+
* This is the same endpoint the sign up embed uses to create accounts. At a minimum you
|
|
284
|
+
must pass one Primary Contact with an Email address and one Subscription record with a
|
|
285
|
+
reference to a Plan. Other fields (e.g. Account Name, Billing Address, Payment
|
|
286
|
+
Information, etc.) can be passed as desired. A confirmation email will be sent to the
|
|
287
|
+
user unless you've specifically toggled this option off on the AUTH > SIGN UP AND LOGIN
|
|
288
|
+
page.
|
|
289
|
+
* @summary Register a new account.
|
|
288
290
|
*/
|
|
289
291
|
export type registrationRegisterAccountResponse200 = {
|
|
290
292
|
data: Account
|
|
@@ -373,9 +375,9 @@ export const accountGetAllAccounts = async (params?: AccountGetAllAccountsParams
|
|
|
373
375
|
|
|
374
376
|
|
|
375
377
|
/**
|
|
376
|
-
*
|
|
377
|
-
To add an account with an existing person, the Account payload include something like this:
|
|
378
|
+
* To add an account with an existing person, the Account payload include something like this:
|
|
378
379
|
{ ... other Account properties ..., "PersonAccount": [ { "Person": { "Uid": [personUid] }, "IsPrimary": "true" } ] }
|
|
380
|
+
* @summary Add a new account.
|
|
379
381
|
*/
|
|
380
382
|
export type accountAddAccountResponse200 = {
|
|
381
383
|
data: Blob
|
|
@@ -530,9 +532,10 @@ export const accountDeleteAccount = async (accountUid: string | null, options?:
|
|
|
530
532
|
|
|
531
533
|
|
|
532
534
|
/**
|
|
533
|
-
*
|
|
534
|
-
|
|
535
|
-
|
|
535
|
+
* You can update one or multiple properties on the object. Any property that you
|
|
536
|
+
include in the json schema will be updated. To update custom properties just
|
|
537
|
+
include them in the same way that they are included when you do a get on the object.
|
|
538
|
+
* @summary Update account information.
|
|
536
539
|
*/
|
|
537
540
|
export type accountUpdateAccountResponse200 = {
|
|
538
541
|
data: Account
|
|
@@ -750,10 +753,10 @@ export const accountDeleteMembership = async (accountUid: string | null,
|
|
|
750
753
|
|
|
751
754
|
|
|
752
755
|
/**
|
|
753
|
-
*
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
756
|
+
* The account needs to be in subscribing stage. The stage will automatically change over to
|
|
757
|
+
cancelling. If the account has a subscription attached to it then at the subscription
|
|
758
|
+
renewal the subscription will end and the account will be automatically set to expired.
|
|
759
|
+
* @summary Add a cancellation request to an account.
|
|
757
760
|
*/
|
|
758
761
|
export type accountCancelAccountResponse200 = {
|
|
759
762
|
data: Blob
|
|
@@ -913,9 +916,10 @@ export const accountExtendTrial = async (accountUid: string | null,
|
|
|
913
916
|
|
|
914
917
|
|
|
915
918
|
/**
|
|
916
|
-
*
|
|
917
|
-
to
|
|
918
|
-
|
|
919
|
+
* Pass personUid as a query parameter to send to a specific person, or personUid=* to send
|
|
920
|
+
to all people on the account. If no personUid is provided, the email is sent to the
|
|
921
|
+
primary contact.
|
|
922
|
+
* @summary Send a confirmation email to people on an account.
|
|
919
923
|
*/
|
|
920
924
|
export type accountSendConfirmationEmailResponse200 = {
|
|
921
925
|
data: Blob
|
|
@@ -1111,9 +1115,10 @@ export const personGetPerson = async (personUid: string | null, options?: Reques
|
|
|
1111
1115
|
|
|
1112
1116
|
|
|
1113
1117
|
/**
|
|
1114
|
-
*
|
|
1115
|
-
|
|
1116
|
-
|
|
1118
|
+
* You can update one or multiple properties on the object. Any property that you
|
|
1119
|
+
include in the json schema will be updated. To update custom properties just
|
|
1120
|
+
include them in the same way that they are included when you do a get on the object.
|
|
1121
|
+
* @summary Update a person record.
|
|
1117
1122
|
*/
|
|
1118
1123
|
export type personUpdatePersonResponse200 = {
|
|
1119
1124
|
data: Person
|
|
@@ -1273,8 +1278,65 @@ export const personSetTemporaryPassword = async (personUid: string | null,
|
|
|
1273
1278
|
|
|
1274
1279
|
|
|
1275
1280
|
/**
|
|
1276
|
-
*
|
|
1277
|
-
|
|
1281
|
+
* All prior recovery codes are invalidated. Existing TOTP/Email mechanisms are intentionally
|
|
1282
|
+
left in place — the admin returns the new codes to the user out of band, the user logs in
|
|
1283
|
+
with one, then re-enrolls their device. Mirrors the temporary-password flow at
|
|
1284
|
+
SetTemporaryPassword.
|
|
1285
|
+
* @summary Regenerate 2FA recovery codes for a user locked out of their authenticator.
|
|
1286
|
+
*/
|
|
1287
|
+
export type personRegenerateTwoFactorRecoveryCodesResponse200 = {
|
|
1288
|
+
data: Blob
|
|
1289
|
+
status: 200
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
export type personRegenerateTwoFactorRecoveryCodesResponse400 = {
|
|
1293
|
+
data: void
|
|
1294
|
+
status: 400
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
export type personRegenerateTwoFactorRecoveryCodesResponse401 = {
|
|
1298
|
+
data: void
|
|
1299
|
+
status: 401
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
export type personRegenerateTwoFactorRecoveryCodesResponse404 = {
|
|
1303
|
+
data: void
|
|
1304
|
+
status: 404
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export type personRegenerateTwoFactorRecoveryCodesResponseSuccess = (personRegenerateTwoFactorRecoveryCodesResponse200) & {
|
|
1308
|
+
headers: Headers;
|
|
1309
|
+
};
|
|
1310
|
+
export type personRegenerateTwoFactorRecoveryCodesResponseError = (personRegenerateTwoFactorRecoveryCodesResponse400 | personRegenerateTwoFactorRecoveryCodesResponse401 | personRegenerateTwoFactorRecoveryCodesResponse404) & {
|
|
1311
|
+
headers: Headers;
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
export type personRegenerateTwoFactorRecoveryCodesResponse = (personRegenerateTwoFactorRecoveryCodesResponseSuccess | personRegenerateTwoFactorRecoveryCodesResponseError)
|
|
1315
|
+
|
|
1316
|
+
export const getPersonRegenerateTwoFactorRecoveryCodesUrl = (personUid: string | null,) => {
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
return `/api/v1/crm/people/${personUid}/regenerateTwoFactorRecoveryCodes`
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
export const personRegenerateTwoFactorRecoveryCodes = async (personUid: string | null, options?: RequestInit): Promise<personRegenerateTwoFactorRecoveryCodesResponse> => {
|
|
1325
|
+
|
|
1326
|
+
return customFetch<personRegenerateTwoFactorRecoveryCodesResponse>(getPersonRegenerateTwoFactorRecoveryCodesUrl(personUid),
|
|
1327
|
+
{
|
|
1328
|
+
...options,
|
|
1329
|
+
method: 'PUT'
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
}
|
|
1333
|
+
);}
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Sends an email to the user with a link to a page where they can reset their password.
|
|
1338
|
+
The reset password token in the link is valid for 30 minutes.
|
|
1339
|
+
* @summary Initiate the forgot password flow.
|
|
1278
1340
|
*/
|
|
1279
1341
|
export type personForgotPasswordResponse200 = {
|
|
1280
1342
|
data: Blob
|
|
@@ -54,10 +54,11 @@ export const campaignGetAllBroadcastEmails = async ( options?: RequestInit): Pro
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
* To copy an existing broadcast, retrieve it and pass its data as the request body — the
|
|
58
|
+
Uid, SendDateTime, and message counts are automatically reset. Recipients can be
|
|
59
|
+
specified using EmailListUids and SegmentUids instead of populating RecipientData
|
|
60
|
+
directly. If both are provided, they are merged.
|
|
61
|
+
* @summary Create a new broadcast campaign.
|
|
61
62
|
*/
|
|
62
63
|
export type campaignAddBroadcastEmailResponse200 = {
|
|
63
64
|
data: BroadcastCampaign
|
|
@@ -152,10 +153,11 @@ export const campaignGetBroadcastEmail = async (broadcastCampaignUid: string | n
|
|
|
152
153
|
|
|
153
154
|
|
|
154
155
|
/**
|
|
155
|
-
*
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
* Setting SendDateTime to a future date schedules the broadcast for sending and its status
|
|
157
|
+
changes to Pending. Clearing SendDateTime unschedules the broadcast. Recipients can be
|
|
158
|
+
specified using EmailListUids and SegmentUids instead of populating RecipientData
|
|
159
|
+
directly. If both are provided, they are merged.
|
|
160
|
+
* @summary Update a broadcast campaign.
|
|
159
161
|
*/
|
|
160
162
|
export type campaignUpdateBroadcastEmailResponse200 = {
|
|
161
163
|
data: BroadcastCampaign
|
|
@@ -209,8 +211,9 @@ export const campaignUpdateBroadcastEmail = async (broadcastCampaignUid: string
|
|
|
209
211
|
|
|
210
212
|
|
|
211
213
|
/**
|
|
212
|
-
*
|
|
213
|
-
|
|
214
|
+
* Only campaigns in Draft or Pending status can be deleted. Campaigns that have been
|
|
215
|
+
processed should be archived instead.
|
|
216
|
+
* @summary Delete a broadcast campaign.
|
|
214
217
|
*/
|
|
215
218
|
export type campaignDeleteBroadcastCampaignResponse200 = {
|
|
216
219
|
data: Blob
|
|
@@ -366,9 +369,10 @@ export const campaignArchiveBroadcastCampaign = async (broadcastCampaignUid: str
|
|
|
366
369
|
|
|
367
370
|
|
|
368
371
|
/**
|
|
369
|
-
*
|
|
370
|
-
recipients
|
|
371
|
-
|
|
372
|
+
* Sends to the logged-in user and optionally to additional recipients. Additional
|
|
373
|
+
recipients are specified as a list of person Uids and must belong to the same account
|
|
374
|
+
as the logged-in user.
|
|
375
|
+
* @summary Send a test email for a broadcast campaign.
|
|
372
376
|
*/
|
|
373
377
|
export type campaignSendTestCampaignEmailResponse200 = {
|
|
374
378
|
data: Blob
|
|
@@ -467,9 +471,10 @@ export const emailListGetAllSubscriptions = async (emailListUid: string | null,
|
|
|
467
471
|
|
|
468
472
|
|
|
469
473
|
/**
|
|
470
|
-
*
|
|
471
|
-
|
|
472
|
-
|
|
474
|
+
* To subscribe a new person, pass a Person object with an Email address. To subscribe an
|
|
475
|
+
existing person, pass a Person object with a Uid. The SendWelcomeEmail property
|
|
476
|
+
determines if the person is sent a welcome email and defaults to false.
|
|
477
|
+
* @summary Subscribe a person to an email list.
|
|
473
478
|
*/
|
|
474
479
|
export type emailListAddSubscriptionResponse200 = {
|
|
475
480
|
data: EmailListPerson
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* `10` - Custom, `50` - Note, `51` - Email, `52` - PhoneCall, `53` - Meeting, `54` - Chat, `100` - AccountCreated, `101` - AccountUpdated, `102` - AccountAddPerson, `103` - AccountStageUpdated, `104` - AccountDeleted, `105` - AccountBillingInformationUpdated, `106` - AccountSubscriptionPlanUpdated, `107` - AccountSubscriptionPaymentCollected, `108` - AccountSubscriptionPaymentDeclined, `109` - AccountBillingInformationRequested, `110` - AccountBillingInvoiceEmailSent, `111` - AccountRemovePerson, `112` - AccountPaidSubscriptionCreated, `113` - AccountBillingInformationRemoved, `114` - AccountPrimaryPersonUpdated, `115` - AccountBillingInvoiceCreated, `116` - AccountSubscriptionStarted, `117` - AccountSubscriptionRenewalExtended, `118` - AccountSubscriptionAddOnsChanged, `119` - AccountSubscriptionCancellationRequested, `120` - AccountBillingInvoiceDeleted, `200` - PersonCreated, `201` - PersonUpdated, `202` - PersonDeleted, `203` - PersonLogin, `204` - PersonListSubscribed, `205` - PersonListUnsubscribed, `206` - PersonSegmentAdded, `207` - PersonSegmentRemoved, `208` - PersonEmailOpened, `209` - PersonEmailClicked, `210` - PersonEmailBounce, `211` - PersonEmailSpam, `212` - PersonSupportTicketCreated, `213` - PersonSupportTicketUpdated, `214` - PersonLeadFormSubmitted, `215` - PersonListConfirmed, `216` - PersonEmailSubscribed, `217` - PersonEmailUnsubscribed, `218` - PersonTemporaryPasswordSet, `219` - PersonSupportTicketClosed, `300` - DealCreated, `301` - DealUpdated, `302` - DealAddPerson, `303` - DealAddAccount, `304` - DealDeleted, `305` - DealDueDate, `306` - TaskCreated, `307` - TaskUpdated, `400` - PlanCreated, `401` - PlanUpdated, `402` - AddOnCreated, `403` - AddOnUpdated, `500` - DiscordUserLinked, `501` - DiscordUserAddedToServer, `502` - DiscordUserRolesUpdated, `503` - DiscordUserRemovedFromServer, `1000` - OutsetaSuspiciousBehavior
|
|
4
|
+
* `10` - Custom, `50` - Note, `51` - Email, `52` - PhoneCall, `53` - Meeting, `54` - Chat, `100` - AccountCreated, `101` - AccountUpdated, `102` - AccountAddPerson, `103` - AccountStageUpdated, `104` - AccountDeleted, `105` - AccountBillingInformationUpdated, `106` - AccountSubscriptionPlanUpdated, `107` - AccountSubscriptionPaymentCollected, `108` - AccountSubscriptionPaymentDeclined, `109` - AccountBillingInformationRequested, `110` - AccountBillingInvoiceEmailSent, `111` - AccountRemovePerson, `112` - AccountPaidSubscriptionCreated, `113` - AccountBillingInformationRemoved, `114` - AccountPrimaryPersonUpdated, `115` - AccountBillingInvoiceCreated, `116` - AccountSubscriptionStarted, `117` - AccountSubscriptionRenewalExtended, `118` - AccountSubscriptionAddOnsChanged, `119` - AccountSubscriptionCancellationRequested, `120` - AccountBillingInvoiceDeleted, `200` - PersonCreated, `201` - PersonUpdated, `202` - PersonDeleted, `203` - PersonLogin, `204` - PersonListSubscribed, `205` - PersonListUnsubscribed, `206` - PersonSegmentAdded, `207` - PersonSegmentRemoved, `208` - PersonEmailOpened, `209` - PersonEmailClicked, `210` - PersonEmailBounce, `211` - PersonEmailSpam, `212` - PersonSupportTicketCreated, `213` - PersonSupportTicketUpdated, `214` - PersonLeadFormSubmitted, `215` - PersonListConfirmed, `216` - PersonEmailSubscribed, `217` - PersonEmailUnsubscribed, `218` - PersonTemporaryPasswordSet, `219` - PersonSupportTicketClosed, `220` - PersonTwoFactorRecoveryCodesRegenerated, `300` - DealCreated, `301` - DealUpdated, `302` - DealAddPerson, `303` - DealAddAccount, `304` - DealDeleted, `305` - DealDueDate, `306` - TaskCreated, `307` - TaskUpdated, `400` - PlanCreated, `401` - PlanUpdated, `402` - AddOnCreated, `403` - AddOnUpdated, `500` - DiscordUserLinked, `501` - DiscordUserAddedToServer, `502` - DiscordUserRolesUpdated, `503` - DiscordUserRemovedFromServer, `1000` - OutsetaSuspiciousBehavior
|
|
5
5
|
*/
|
|
6
6
|
export type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
7
7
|
|
|
@@ -55,6 +55,7 @@ export const ActivityType = {
|
|
|
55
55
|
PersonEmailUnsubscribed: 217,
|
|
56
56
|
PersonTemporaryPasswordSet: 218,
|
|
57
57
|
PersonSupportTicketClosed: 219,
|
|
58
|
+
PersonTwoFactorRecoveryCodesRegenerated: 220,
|
|
58
59
|
DealCreated: 300,
|
|
59
60
|
DealUpdated: 301,
|
|
60
61
|
DealAddPerson: 302,
|
|
@@ -227,6 +227,7 @@ export * from './invoiceLineItemAllOf';
|
|
|
227
227
|
export * from './invoiceLineItemAllOfInvoice';
|
|
228
228
|
export * from './invoiceLineItemAllOfLineItemType';
|
|
229
229
|
export * from './invoiceStatusChangeOptions';
|
|
230
|
+
export * from './invoiceUpdateInvoiceBody';
|
|
230
231
|
export * from './jwtKey';
|
|
231
232
|
export * from './jwtKeyAllOf';
|
|
232
233
|
export * from './jwtKeyAllOfQcount';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* `0` - Disabled, `1` - ForteEnabled, `2` - StripeEnabled
|
|
4
|
+
* `0` - Disabled, `1` - ForteEnabled, `2` - StripeEnabled, `3` - CustomEnabled
|
|
5
5
|
*/
|
|
6
6
|
export type PaymentsGatewayActivationStatus = typeof PaymentsGatewayActivationStatus[keyof typeof PaymentsGatewayActivationStatus];
|
|
7
7
|
|
|
@@ -11,4 +11,5 @@ export const PaymentsGatewayActivationStatus = {
|
|
|
11
11
|
Disabled: 0,
|
|
12
12
|
ForteEnabled: 1,
|
|
13
13
|
StripeEnabled: 2,
|
|
14
|
+
CustomEnabled: 3,
|
|
14
15
|
} as const;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* `100` - Slack, `102` - MagicLinkApiKey, `103` - MagicLinkApiKeySecret, `104` - OAuth_HideCreateAccountLink, `105` - Chat_IsOffline, `106` - HostedPageCustomCode, `107` - RegistrationConfirmationEmailDelaySeconds, `108` - AccountCancellationReasons, `110` - WebhookSignatureKey, `111` - HostedProfileBackLink, `112` - AccountCancellationReasonRequired, `114` - Email_OutsetaBrandingDisabled, `119` - Email_BlacklistedInboundEmails, `121` - PasswordPolicy, `123` - CRM_FieldSortingEnabled, `124` - CRM_RegistrationCallbackLocations, `125` - KnowledgeBaseVersion, `126` - Support_SpamThreshold, `127` - Email_RestrictedPhrases, `128` - KnowledgeBaseLanguage, `130` - Billing_System, `131` - Billing_RestrictSubscriptionActions, `190` - Stripe_TaxEnabled, `192` - Stripe_TaxIdTypes, `193` - Stripe_ApplePayMerchantIdDomainAssociation, `194` - Stripe_WebhookSecret, `200` - Webflow_AccessToken, `201` - Webflow_SyncEnabled, `202` - Webflow_SyncConfiguration, `203` - Webflow_ApiVersion, `550` - CopyQcount_AddOnMap, `551` - CopyQcount_AccountMap, `552` - CopyQcount_DiscountCouponMap, `553` - CopyQcount_InvoiceMap, `554` - CopyQcount_PersonMap, `555` - CopyQcount_PlanMap, `556` - CopyQcount_PlanFamilyMap, `557` - CopyQcount_SubscriptionMap, `558` - CopyQcount_TransactionMap, `570` - StripeMigration_LastAccountId, `571` - StripeMigration_LastInvoiceId, `572` - StripeMigration_LastExpiredSubscriptionId, `573` - StripeMigration_LastPostExportSubscriptionId, `574` - StripeMigration_LastUsageId, `575` - StripeMigration_SubscriptionExportDate, `576` - StripeMigration_SubscriptionExportIds, `577` - StripeMigration_SubscriptionAddOnExportIds, `578` - StripeMigration_SubscriptionCutoverDate, `579` - StripeMigration_LastPreCutoverExportSubscriptionId
|
|
4
|
+
* `100` - Slack, `102` - MagicLinkApiKey, `103` - MagicLinkApiKeySecret, `104` - OAuth_HideCreateAccountLink, `105` - Chat_IsOffline, `106` - HostedPageCustomCode, `107` - RegistrationConfirmationEmailDelaySeconds, `108` - AccountCancellationReasons, `110` - WebhookSignatureKey, `111` - HostedProfileBackLink, `112` - AccountCancellationReasonRequired, `114` - Email_OutsetaBrandingDisabled, `119` - Email_BlacklistedInboundEmails, `121` - PasswordPolicy, `123` - CRM_FieldSortingEnabled, `124` - CRM_RegistrationCallbackLocations, `125` - KnowledgeBaseVersion, `126` - Support_SpamThreshold, `127` - Email_RestrictedPhrases, `128` - KnowledgeBaseLanguage, `130` - Billing_System, `131` - Billing_RestrictSubscriptionActions, `140` - TwoFactorAuthenticationEnabled, `142` - ForceTwoFactorAuthentication, `190` - Stripe_TaxEnabled, `192` - Stripe_TaxIdTypes, `193` - Stripe_ApplePayMerchantIdDomainAssociation, `194` - Stripe_WebhookSecret, `200` - Webflow_AccessToken, `201` - Webflow_SyncEnabled, `202` - Webflow_SyncConfiguration, `203` - Webflow_ApiVersion, `550` - CopyQcount_AddOnMap, `551` - CopyQcount_AccountMap, `552` - CopyQcount_DiscountCouponMap, `553` - CopyQcount_InvoiceMap, `554` - CopyQcount_PersonMap, `555` - CopyQcount_PlanMap, `556` - CopyQcount_PlanFamilyMap, `557` - CopyQcount_SubscriptionMap, `558` - CopyQcount_TransactionMap, `570` - StripeMigration_LastAccountId, `571` - StripeMigration_LastInvoiceId, `572` - StripeMigration_LastExpiredSubscriptionId, `573` - StripeMigration_LastPostExportSubscriptionId, `574` - StripeMigration_LastUsageId, `575` - StripeMigration_SubscriptionExportDate, `576` - StripeMigration_SubscriptionExportIds, `577` - StripeMigration_SubscriptionAddOnExportIds, `578` - StripeMigration_SubscriptionCutoverDate, `579` - StripeMigration_LastPreCutoverExportSubscriptionId
|
|
5
5
|
*/
|
|
6
6
|
export type QcountConfigSettingType = typeof QcountConfigSettingType[keyof typeof QcountConfigSettingType];
|
|
7
7
|
|
|
@@ -30,6 +30,8 @@ export const QcountConfigSettingType = {
|
|
|
30
30
|
KnowledgeBaseLanguage: 128,
|
|
31
31
|
Billing_System: 130,
|
|
32
32
|
Billing_RestrictSubscriptionActions: 131,
|
|
33
|
+
TwoFactorAuthenticationEnabled: 140,
|
|
34
|
+
ForceTwoFactorAuthentication: 142,
|
|
33
35
|
Stripe_TaxEnabled: 190,
|
|
34
36
|
Stripe_TaxIdTypes: 192,
|
|
35
37
|
Stripe_ApplePayMerchantIdDomainAssociation: 193,
|
|
@@ -13,9 +13,9 @@ import type {
|
|
|
13
13
|
import { customFetch } from '../../client';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
Assigned cases can be filtered by passing in the AssignedToPersonClientIdentifier,
|
|
16
|
+
* Assigned cases can be filtered by passing in the AssignedToPersonClientIdentifier,
|
|
18
17
|
which is the Uid of the person the case is assigned to.
|
|
18
|
+
* @summary Returns all cases, optionally filtered by search string, tag, and/or assignment.
|
|
19
19
|
*/
|
|
20
20
|
export type caseGetAllCasesResponse200 = {
|
|
21
21
|
data: Case[]
|
|
@@ -278,8 +278,7 @@ export const caseAddClientResponse = async (caseUid: string | null,
|
|
|
278
278
|
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* @summary
|
|
282
|
-
Matches on title or body of the article"
|
|
281
|
+
* @summary Retrieve all knowledge base articles.
|
|
283
282
|
*/
|
|
284
283
|
export type articleGetAllArticlesResponse200 = {
|
|
285
284
|
data: Article[]
|