@outseta/api-client 0.3.22 → 0.3.23
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 +77 -28
- package/package.json +1 -1
- package/src/generated/activity/activity.ts +2 -2
- package/src/generated/attribute/attribute.ts +18 -7
- package/src/generated/billing/billing.ts +70 -29
- package/src/generated/crm/crm.ts +6 -3
- package/src/generated/email/email.ts +32 -13
- package/src/generated/models/accountGetAllAccounts200.ts +8 -0
- package/src/generated/models/accountWebhookEntityPrimaryStripeSubscription.ts +2 -0
- package/src/generated/models/accountWebhookEntityStripeSubscriptionsItem.ts +2 -0
- package/src/generated/models/activityGetAll200.ts +8 -0
- package/src/generated/models/articleGetAllArticles200.ts +8 -0
- package/src/generated/models/campaignGetAllBroadcastEmails200.ts +8 -0
- package/src/generated/models/campaignGetAllBroadcastEmailsParams.ts +14 -0
- package/src/generated/models/caseGetAllCases200.ts +8 -0
- package/src/generated/models/categoryGetAllCategories200.ts +8 -0
- package/src/generated/models/categoryGetAllCategoriesParams.ts +14 -0
- package/src/generated/models/collectionMetadata.ts +7 -0
- package/src/generated/models/dealGetAllDeals200.ts +8 -0
- package/src/generated/models/definitionGetAllDefinitions200.ts +8 -0
- package/src/generated/models/definitionGetAllDefinitionsParams.ts +14 -0
- package/src/generated/models/discountCouponGetAllDiscountCoupons200.ts +8 -0
- package/src/generated/models/discountCouponGetDiscountCouponRedemptions200.ts +8 -0
- package/src/generated/models/dripCampaignGetAllDripCampaigns200.ts +8 -0
- package/src/generated/models/dripCampaignGetAllDripCampaignsParams.ts +14 -0
- package/src/generated/models/emailListGetAllSubscriptions200.ts +8 -0
- package/src/generated/models/index.ts +30 -0
- package/src/generated/models/invoiceGetAllInvoices200.ts +8 -0
- package/src/generated/models/invoiceGetAllInvoicesParams.ts +18 -0
- package/src/generated/models/limitParameter.ts +6 -0
- package/src/generated/models/offsetParameter.ts +6 -0
- package/src/generated/models/personGetAllPeople200.ts +8 -0
- package/src/generated/models/planFamilyGetAllPlanFamilies200.ts +8 -0
- package/src/generated/models/planFamilyGetAllPlanFamiliesParams.ts +14 -0
- package/src/generated/models/planGetAllPlans200.ts +8 -0
- package/src/generated/models/planGetAllPlansParams.ts +14 -0
- package/src/generated/models/stripeChargeAllOf.ts +7 -0
- package/src/generated/models/stripeSubscriptionAllOf.ts +2 -0
- package/src/generated/models/subscriptionAddOnGetAllSubscriptionsAddOns200.ts +8 -0
- package/src/generated/models/subscriptionGetAllSubscriptions200.ts +8 -0
- package/src/generated/models/transactionsGetAllTransactionsByAccountId200.ts +8 -0
- package/src/generated/models/transactionsGetAllTransactionsByAccountIdParams.ts +14 -0
- package/src/generated/support/support.ts +19 -9
package/dist/index.js
CHANGED
|
@@ -169,11 +169,18 @@ var usageAddUsage = async (usageAddUsageBody, options) => {
|
|
|
169
169
|
body: JSON.stringify(usageAddUsageBody)
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
var getTransactionsGetAllTransactionsByAccountIdUrl = (accountUid) => {
|
|
173
|
-
|
|
172
|
+
var getTransactionsGetAllTransactionsByAccountIdUrl = (accountUid, params) => {
|
|
173
|
+
const normalizedParams = new URLSearchParams;
|
|
174
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
175
|
+
if (value !== undefined) {
|
|
176
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
const stringifiedParams = normalizedParams.toString();
|
|
180
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/transactions/${accountUid}?${stringifiedParams}` : `/api/v1/billing/transactions/${accountUid}`;
|
|
174
181
|
};
|
|
175
|
-
var transactionsGetAllTransactionsByAccountId = async (accountUid, options) => {
|
|
176
|
-
return customFetch(getTransactionsGetAllTransactionsByAccountIdUrl(accountUid), {
|
|
182
|
+
var transactionsGetAllTransactionsByAccountId = async (accountUid, params, options) => {
|
|
183
|
+
return customFetch(getTransactionsGetAllTransactionsByAccountIdUrl(accountUid, params), {
|
|
177
184
|
...options,
|
|
178
185
|
method: "GET"
|
|
179
186
|
});
|
|
@@ -276,11 +283,18 @@ var subscriptionAddOnExpireSubscriptionAddOn = async (subscriptionAddOnUid, opti
|
|
|
276
283
|
method: "PUT"
|
|
277
284
|
});
|
|
278
285
|
};
|
|
279
|
-
var getInvoiceGetAllInvoicesUrl = () => {
|
|
280
|
-
|
|
286
|
+
var getInvoiceGetAllInvoicesUrl = (params) => {
|
|
287
|
+
const normalizedParams = new URLSearchParams;
|
|
288
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
289
|
+
if (value !== undefined) {
|
|
290
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
const stringifiedParams = normalizedParams.toString();
|
|
294
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/invoices?${stringifiedParams}` : `/api/v1/billing/invoices`;
|
|
281
295
|
};
|
|
282
|
-
var invoiceGetAllInvoices = async (options) => {
|
|
283
|
-
return customFetch(getInvoiceGetAllInvoicesUrl(), {
|
|
296
|
+
var invoiceGetAllInvoices = async (params, options) => {
|
|
297
|
+
return customFetch(getInvoiceGetAllInvoicesUrl(params), {
|
|
284
298
|
...options,
|
|
285
299
|
method: "GET"
|
|
286
300
|
});
|
|
@@ -480,11 +494,18 @@ var subscriptionChangeSubscription = async (subscriptionUid, subscriptionChangeS
|
|
|
480
494
|
body: JSON.stringify(subscriptionChangeSubscriptionBody)
|
|
481
495
|
});
|
|
482
496
|
};
|
|
483
|
-
var getPlanGetAllPlansUrl = () => {
|
|
484
|
-
|
|
497
|
+
var getPlanGetAllPlansUrl = (params) => {
|
|
498
|
+
const normalizedParams = new URLSearchParams;
|
|
499
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
500
|
+
if (value !== undefined) {
|
|
501
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
const stringifiedParams = normalizedParams.toString();
|
|
505
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/plans?${stringifiedParams}` : `/api/v1/billing/plans`;
|
|
485
506
|
};
|
|
486
|
-
var planGetAllPlans = async (options) => {
|
|
487
|
-
return customFetch(getPlanGetAllPlansUrl(), {
|
|
507
|
+
var planGetAllPlans = async (params, options) => {
|
|
508
|
+
return customFetch(getPlanGetAllPlansUrl(params), {
|
|
488
509
|
...options,
|
|
489
510
|
method: "GET"
|
|
490
511
|
});
|
|
@@ -529,11 +550,18 @@ var planDeletePlan = async (planUid, options) => {
|
|
|
529
550
|
method: "DELETE"
|
|
530
551
|
});
|
|
531
552
|
};
|
|
532
|
-
var getPlanFamilyGetAllPlanFamiliesUrl = () => {
|
|
533
|
-
|
|
553
|
+
var getPlanFamilyGetAllPlanFamiliesUrl = (params) => {
|
|
554
|
+
const normalizedParams = new URLSearchParams;
|
|
555
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
556
|
+
if (value !== undefined) {
|
|
557
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
const stringifiedParams = normalizedParams.toString();
|
|
561
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/planfamilies?${stringifiedParams}` : `/api/v1/billing/planfamilies`;
|
|
534
562
|
};
|
|
535
|
-
var planFamilyGetAllPlanFamilies = async (options) => {
|
|
536
|
-
return customFetch(getPlanFamilyGetAllPlanFamiliesUrl(), {
|
|
563
|
+
var planFamilyGetAllPlanFamilies = async (params, options) => {
|
|
564
|
+
return customFetch(getPlanFamilyGetAllPlanFamiliesUrl(params), {
|
|
537
565
|
...options,
|
|
538
566
|
method: "GET"
|
|
539
567
|
});
|
|
@@ -868,11 +896,18 @@ var personForgotPassword = async (personForgotPasswordBody, options) => {
|
|
|
868
896
|
});
|
|
869
897
|
};
|
|
870
898
|
// src/generated/email/email.ts
|
|
871
|
-
var getDripCampaignGetAllDripCampaignsUrl = () => {
|
|
872
|
-
|
|
899
|
+
var getDripCampaignGetAllDripCampaignsUrl = (params) => {
|
|
900
|
+
const normalizedParams = new URLSearchParams;
|
|
901
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
902
|
+
if (value !== undefined) {
|
|
903
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
const stringifiedParams = normalizedParams.toString();
|
|
907
|
+
return stringifiedParams.length > 0 ? `/api/v1/email/campaigns/drips?${stringifiedParams}` : `/api/v1/email/campaigns/drips`;
|
|
873
908
|
};
|
|
874
|
-
var dripCampaignGetAllDripCampaigns = async (options) => {
|
|
875
|
-
return customFetch(getDripCampaignGetAllDripCampaignsUrl(), {
|
|
909
|
+
var dripCampaignGetAllDripCampaigns = async (params, options) => {
|
|
910
|
+
return customFetch(getDripCampaignGetAllDripCampaignsUrl(params), {
|
|
876
911
|
...options,
|
|
877
912
|
method: "GET"
|
|
878
913
|
});
|
|
@@ -968,11 +1003,18 @@ var dripCampaignSendTestCampaignEmail = async (dripCampaignSendTestCampaignEmail
|
|
|
968
1003
|
body: JSON.stringify(dripCampaignSendTestCampaignEmailBody)
|
|
969
1004
|
});
|
|
970
1005
|
};
|
|
971
|
-
var getCampaignGetAllBroadcastEmailsUrl = () => {
|
|
972
|
-
|
|
1006
|
+
var getCampaignGetAllBroadcastEmailsUrl = (params) => {
|
|
1007
|
+
const normalizedParams = new URLSearchParams;
|
|
1008
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1009
|
+
if (value !== undefined) {
|
|
1010
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1011
|
+
}
|
|
1012
|
+
});
|
|
1013
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1014
|
+
return stringifiedParams.length > 0 ? `/api/v1/email/campaigns/broadcasts?${stringifiedParams}` : `/api/v1/email/campaigns/broadcasts`;
|
|
973
1015
|
};
|
|
974
|
-
var campaignGetAllBroadcastEmails = async (options) => {
|
|
975
|
-
return customFetch(getCampaignGetAllBroadcastEmailsUrl(), {
|
|
1016
|
+
var campaignGetAllBroadcastEmails = async (params, options) => {
|
|
1017
|
+
return customFetch(getCampaignGetAllBroadcastEmailsUrl(params), {
|
|
976
1018
|
...options,
|
|
977
1019
|
method: "GET"
|
|
978
1020
|
});
|
|
@@ -1180,11 +1222,18 @@ var articleGetArticle = async (articleUid, options) => {
|
|
|
1180
1222
|
method: "GET"
|
|
1181
1223
|
});
|
|
1182
1224
|
};
|
|
1183
|
-
var getCategoryGetAllCategoriesUrl = () => {
|
|
1184
|
-
|
|
1225
|
+
var getCategoryGetAllCategoriesUrl = (params) => {
|
|
1226
|
+
const normalizedParams = new URLSearchParams;
|
|
1227
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1228
|
+
if (value !== undefined) {
|
|
1229
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1233
|
+
return stringifiedParams.length > 0 ? `/api/v1/support/categories?${stringifiedParams}` : `/api/v1/support/categories`;
|
|
1185
1234
|
};
|
|
1186
|
-
var categoryGetAllCategories = async (options) => {
|
|
1187
|
-
return customFetch(getCategoryGetAllCategoriesUrl(), {
|
|
1235
|
+
var categoryGetAllCategories = async (params, options) => {
|
|
1236
|
+
return customFetch(getCategoryGetAllCategoriesUrl(params), {
|
|
1188
1237
|
...options,
|
|
1189
1238
|
method: "GET"
|
|
1190
1239
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import type {
|
|
3
|
-
Activity,
|
|
4
3
|
ActivityAddCustomActivityBody,
|
|
4
|
+
ActivityGetAll200,
|
|
5
5
|
ActivityGetAllParams
|
|
6
6
|
} from '.././models';
|
|
7
7
|
|
|
@@ -43,7 +43,7 @@ ActivityDateTime__lt/ActivityDateTime__lte.
|
|
|
43
43
|
* @summary Retrieve all activities.
|
|
44
44
|
*/
|
|
45
45
|
export type activityGetAllResponse200 = {
|
|
46
|
-
data:
|
|
46
|
+
data: ActivityGetAll200
|
|
47
47
|
status: 200
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import type {
|
|
3
|
-
Definition
|
|
3
|
+
Definition,
|
|
4
|
+
DefinitionGetAllDefinitions200,
|
|
5
|
+
DefinitionGetAllDefinitionsParams
|
|
4
6
|
} from '.././models';
|
|
5
7
|
|
|
6
8
|
import { customFetch } from '../../client';
|
|
@@ -12,7 +14,7 @@ the custom attributes that have been added to that entity.
|
|
|
12
14
|
* @summary Retrieve all custom attribute definitions.
|
|
13
15
|
*/
|
|
14
16
|
export type definitionGetAllDefinitionsResponse200 = {
|
|
15
|
-
data:
|
|
17
|
+
data: DefinitionGetAllDefinitions200
|
|
16
18
|
status: 200
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -23,17 +25,26 @@ export type definitionGetAllDefinitionsResponseSuccess = (definitionGetAllDefini
|
|
|
23
25
|
|
|
24
26
|
export type definitionGetAllDefinitionsResponse = (definitionGetAllDefinitionsResponseSuccess)
|
|
25
27
|
|
|
26
|
-
export const getDefinitionGetAllDefinitionsUrl = (entityType: string | null,
|
|
28
|
+
export const getDefinitionGetAllDefinitionsUrl = (entityType: string | null,
|
|
29
|
+
params?: DefinitionGetAllDefinitionsParams,) => {
|
|
30
|
+
const normalizedParams = new URLSearchParams();
|
|
27
31
|
|
|
32
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
33
|
+
|
|
34
|
+
if (value !== undefined) {
|
|
35
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
36
|
+
}
|
|
37
|
+
});
|
|
28
38
|
|
|
29
|
-
|
|
39
|
+
const stringifiedParams = normalizedParams.toString();
|
|
30
40
|
|
|
31
|
-
return `/api/v1/attributes/${entityType}/definitions`
|
|
41
|
+
return stringifiedParams.length > 0 ? `/api/v1/attributes/${entityType}/definitions?${stringifiedParams}` : `/api/v1/attributes/${entityType}/definitions`
|
|
32
42
|
}
|
|
33
43
|
|
|
34
|
-
export const definitionGetAllDefinitions = async (entityType: string | null,
|
|
44
|
+
export const definitionGetAllDefinitions = async (entityType: string | null,
|
|
45
|
+
params?: DefinitionGetAllDefinitionsParams, options?: RequestInit): Promise<definitionGetAllDefinitionsResponse> => {
|
|
35
46
|
|
|
36
|
-
return customFetch<definitionGetAllDefinitionsResponse>(getDefinitionGetAllDefinitionsUrl(entityType),
|
|
47
|
+
return customFetch<definitionGetAllDefinitionsResponse>(getDefinitionGetAllDefinitionsUrl(entityType,params),
|
|
37
48
|
{
|
|
38
49
|
...options,
|
|
39
50
|
method: 'GET'
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
DiscountCoupon,
|
|
4
4
|
DiscountCouponAddDiscountCouponBody,
|
|
5
|
+
DiscountCouponGetAllDiscountCoupons200,
|
|
5
6
|
DiscountCouponGetAllDiscountCouponsParams,
|
|
6
7
|
DiscountCouponGetDiscountCouponByCodeParams,
|
|
8
|
+
DiscountCouponGetDiscountCouponRedemptions200,
|
|
7
9
|
DiscountCouponGetDiscountCouponRedemptionsParams,
|
|
8
|
-
DiscountCouponSubscription,
|
|
9
10
|
DiscountCouponUpdateDiscountCouponBody,
|
|
10
11
|
Invoice,
|
|
11
12
|
InvoiceAddInvoiceBody,
|
|
13
|
+
InvoiceGetAllInvoices200,
|
|
14
|
+
InvoiceGetAllInvoicesParams,
|
|
12
15
|
InvoiceUpdateInvoiceBody,
|
|
13
16
|
PaymentInformation,
|
|
14
17
|
PaymentInformationSavePaymentInformationBody,
|
|
@@ -16,12 +19,17 @@ import type {
|
|
|
16
19
|
PlanAddPlanBody,
|
|
17
20
|
PlanFamily,
|
|
18
21
|
PlanFamilyAddPlanFamilyBody,
|
|
22
|
+
PlanFamilyGetAllPlanFamilies200,
|
|
23
|
+
PlanFamilyGetAllPlanFamiliesParams,
|
|
19
24
|
PlanFamilyUpdatePlanFamilyBody,
|
|
25
|
+
PlanGetAllPlans200,
|
|
26
|
+
PlanGetAllPlansParams,
|
|
20
27
|
PlanUpdatePlanBody,
|
|
21
28
|
Subscription,
|
|
22
29
|
SubscriptionAddOn,
|
|
23
30
|
SubscriptionAddOnAddSubscriptionAddOnBody,
|
|
24
31
|
SubscriptionAddOnAddSubscriptionAddOnPreviewBody,
|
|
32
|
+
SubscriptionAddOnGetAllSubscriptionsAddOns200,
|
|
25
33
|
SubscriptionAddOnGetAllSubscriptionsAddOnsParams,
|
|
26
34
|
SubscriptionAddOnSetAddOnUpgradeRequiredBody,
|
|
27
35
|
SubscriptionChangeSubscriptionBody,
|
|
@@ -31,10 +39,13 @@ import type {
|
|
|
31
39
|
SubscriptionFirstTimeSubscriptionBody,
|
|
32
40
|
SubscriptionFirstTimeSubscriptionPreviewBody,
|
|
33
41
|
SubscriptionFirstTimeSubscriptionPreviewParams,
|
|
42
|
+
SubscriptionGetAllSubscriptions200,
|
|
34
43
|
SubscriptionGetAllSubscriptionsParams,
|
|
35
44
|
SubscriptionSetSubscriptionUpgradeRequiredBody,
|
|
36
45
|
Transaction,
|
|
37
46
|
TransactionsAddPaymentTransactionBody,
|
|
47
|
+
TransactionsGetAllTransactionsByAccountId200,
|
|
48
|
+
TransactionsGetAllTransactionsByAccountIdParams,
|
|
38
49
|
Usage,
|
|
39
50
|
UsageAddUsageBody
|
|
40
51
|
} from '.././models';
|
|
@@ -131,7 +142,7 @@ export const discountCouponGetDiscountCouponByCode = async (code: string | null,
|
|
|
131
142
|
* @summary Retrieve all discount coupons.
|
|
132
143
|
*/
|
|
133
144
|
export type discountCouponGetAllDiscountCouponsResponse200 = {
|
|
134
|
-
data:
|
|
145
|
+
data: DiscountCouponGetAllDiscountCoupons200
|
|
135
146
|
status: 200
|
|
136
147
|
}
|
|
137
148
|
|
|
@@ -388,7 +399,7 @@ export const discountCouponDeleteDiscountCoupon = async (discountCouponUid: stri
|
|
|
388
399
|
* @summary Retrieve the redemptions of a discount coupon.
|
|
389
400
|
*/
|
|
390
401
|
export type discountCouponGetDiscountCouponRedemptionsResponse200 = {
|
|
391
|
-
data:
|
|
402
|
+
data: DiscountCouponGetDiscountCouponRedemptions200
|
|
392
403
|
status: 200
|
|
393
404
|
}
|
|
394
405
|
|
|
@@ -489,7 +500,7 @@ BillingTransactionType: Invoice = 1, Payment = 2, Credit = 3, Refund = 4, Charge
|
|
|
489
500
|
* @summary Retrieve all transactions.
|
|
490
501
|
*/
|
|
491
502
|
export type transactionsGetAllTransactionsByAccountIdResponse200 = {
|
|
492
|
-
data:
|
|
503
|
+
data: TransactionsGetAllTransactionsByAccountId200
|
|
493
504
|
status: 200
|
|
494
505
|
}
|
|
495
506
|
|
|
@@ -512,17 +523,26 @@ export type transactionsGetAllTransactionsByAccountIdResponseError = (transactio
|
|
|
512
523
|
|
|
513
524
|
export type transactionsGetAllTransactionsByAccountIdResponse = (transactionsGetAllTransactionsByAccountIdResponseSuccess | transactionsGetAllTransactionsByAccountIdResponseError)
|
|
514
525
|
|
|
515
|
-
export const getTransactionsGetAllTransactionsByAccountIdUrl = (accountUid: string | null,
|
|
526
|
+
export const getTransactionsGetAllTransactionsByAccountIdUrl = (accountUid: string | null,
|
|
527
|
+
params?: TransactionsGetAllTransactionsByAccountIdParams,) => {
|
|
528
|
+
const normalizedParams = new URLSearchParams();
|
|
516
529
|
|
|
530
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
531
|
+
|
|
532
|
+
if (value !== undefined) {
|
|
533
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
534
|
+
}
|
|
535
|
+
});
|
|
517
536
|
|
|
518
|
-
|
|
537
|
+
const stringifiedParams = normalizedParams.toString();
|
|
519
538
|
|
|
520
|
-
return `/api/v1/billing/transactions/${accountUid}`
|
|
539
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/transactions/${accountUid}?${stringifiedParams}` : `/api/v1/billing/transactions/${accountUid}`
|
|
521
540
|
}
|
|
522
541
|
|
|
523
|
-
export const transactionsGetAllTransactionsByAccountId = async (accountUid: string | null,
|
|
542
|
+
export const transactionsGetAllTransactionsByAccountId = async (accountUid: string | null,
|
|
543
|
+
params?: TransactionsGetAllTransactionsByAccountIdParams, options?: RequestInit): Promise<transactionsGetAllTransactionsByAccountIdResponse> => {
|
|
524
544
|
|
|
525
|
-
return customFetch<transactionsGetAllTransactionsByAccountIdResponse>(getTransactionsGetAllTransactionsByAccountIdUrl(accountUid),
|
|
545
|
+
return customFetch<transactionsGetAllTransactionsByAccountIdResponse>(getTransactionsGetAllTransactionsByAccountIdUrl(accountUid,params),
|
|
526
546
|
{
|
|
527
547
|
...options,
|
|
528
548
|
method: 'GET'
|
|
@@ -624,7 +644,7 @@ export const paymentInformationSavePaymentInformation = async (paymentInformatio
|
|
|
624
644
|
* @summary Retrieve all subscription add-ons.
|
|
625
645
|
*/
|
|
626
646
|
export type subscriptionAddOnGetAllSubscriptionsAddOnsResponse200 = {
|
|
627
|
-
data:
|
|
647
|
+
data: SubscriptionAddOnGetAllSubscriptionsAddOns200
|
|
628
648
|
status: 200
|
|
629
649
|
}
|
|
630
650
|
|
|
@@ -978,7 +998,7 @@ Pass excludeInvoiceUid as a query parameter to omit a specific invoice from the
|
|
|
978
998
|
* @summary Retrieve all invoices.
|
|
979
999
|
*/
|
|
980
1000
|
export type invoiceGetAllInvoicesResponse200 = {
|
|
981
|
-
data:
|
|
1001
|
+
data: InvoiceGetAllInvoices200
|
|
982
1002
|
status: 200
|
|
983
1003
|
}
|
|
984
1004
|
|
|
@@ -996,17 +1016,24 @@ export type invoiceGetAllInvoicesResponseError = (invoiceGetAllInvoicesResponse4
|
|
|
996
1016
|
|
|
997
1017
|
export type invoiceGetAllInvoicesResponse = (invoiceGetAllInvoicesResponseSuccess | invoiceGetAllInvoicesResponseError)
|
|
998
1018
|
|
|
999
|
-
export const getInvoiceGetAllInvoicesUrl = () => {
|
|
1019
|
+
export const getInvoiceGetAllInvoicesUrl = (params?: InvoiceGetAllInvoicesParams,) => {
|
|
1020
|
+
const normalizedParams = new URLSearchParams();
|
|
1000
1021
|
|
|
1022
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1023
|
+
|
|
1024
|
+
if (value !== undefined) {
|
|
1025
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1001
1028
|
|
|
1002
|
-
|
|
1029
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1003
1030
|
|
|
1004
|
-
return `/api/v1/billing/invoices`
|
|
1031
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/invoices?${stringifiedParams}` : `/api/v1/billing/invoices`
|
|
1005
1032
|
}
|
|
1006
1033
|
|
|
1007
|
-
export const invoiceGetAllInvoices = async ( options?: RequestInit): Promise<invoiceGetAllInvoicesResponse> => {
|
|
1034
|
+
export const invoiceGetAllInvoices = async (params?: InvoiceGetAllInvoicesParams, options?: RequestInit): Promise<invoiceGetAllInvoicesResponse> => {
|
|
1008
1035
|
|
|
1009
|
-
return customFetch<invoiceGetAllInvoicesResponse>(getInvoiceGetAllInvoicesUrl(),
|
|
1036
|
+
return customFetch<invoiceGetAllInvoicesResponse>(getInvoiceGetAllInvoicesUrl(params),
|
|
1010
1037
|
{
|
|
1011
1038
|
...options,
|
|
1012
1039
|
method: 'GET'
|
|
@@ -1391,7 +1418,7 @@ specific person.
|
|
|
1391
1418
|
* @summary Retrieve all subscriptions.
|
|
1392
1419
|
*/
|
|
1393
1420
|
export type subscriptionGetAllSubscriptionsResponse200 = {
|
|
1394
|
-
data:
|
|
1421
|
+
data: SubscriptionGetAllSubscriptions200
|
|
1395
1422
|
status: 200
|
|
1396
1423
|
}
|
|
1397
1424
|
|
|
@@ -1932,7 +1959,7 @@ export const subscriptionChangeSubscription = async (subscriptionUid: string | n
|
|
|
1932
1959
|
* @summary Retrieve all plans.
|
|
1933
1960
|
*/
|
|
1934
1961
|
export type planGetAllPlansResponse200 = {
|
|
1935
|
-
data:
|
|
1962
|
+
data: PlanGetAllPlans200
|
|
1936
1963
|
status: 200
|
|
1937
1964
|
}
|
|
1938
1965
|
|
|
@@ -1943,17 +1970,24 @@ export type planGetAllPlansResponseSuccess = (planGetAllPlansResponse200) & {
|
|
|
1943
1970
|
|
|
1944
1971
|
export type planGetAllPlansResponse = (planGetAllPlansResponseSuccess)
|
|
1945
1972
|
|
|
1946
|
-
export const getPlanGetAllPlansUrl = () => {
|
|
1973
|
+
export const getPlanGetAllPlansUrl = (params?: PlanGetAllPlansParams,) => {
|
|
1974
|
+
const normalizedParams = new URLSearchParams();
|
|
1947
1975
|
|
|
1976
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1977
|
+
|
|
1978
|
+
if (value !== undefined) {
|
|
1979
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
1980
|
+
}
|
|
1981
|
+
});
|
|
1948
1982
|
|
|
1949
|
-
|
|
1983
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1950
1984
|
|
|
1951
|
-
return `/api/v1/billing/plans`
|
|
1985
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/plans?${stringifiedParams}` : `/api/v1/billing/plans`
|
|
1952
1986
|
}
|
|
1953
1987
|
|
|
1954
|
-
export const planGetAllPlans = async ( options?: RequestInit): Promise<planGetAllPlansResponse> => {
|
|
1988
|
+
export const planGetAllPlans = async (params?: PlanGetAllPlansParams, options?: RequestInit): Promise<planGetAllPlansResponse> => {
|
|
1955
1989
|
|
|
1956
|
-
return customFetch<planGetAllPlansResponse>(getPlanGetAllPlansUrl(),
|
|
1990
|
+
return customFetch<planGetAllPlansResponse>(getPlanGetAllPlansUrl(params),
|
|
1957
1991
|
{
|
|
1958
1992
|
...options,
|
|
1959
1993
|
method: 'GET'
|
|
@@ -2163,7 +2197,7 @@ export const planDeletePlan = async (planUid: string | null, options?: RequestIn
|
|
|
2163
2197
|
* @summary Retrieve all plan families.
|
|
2164
2198
|
*/
|
|
2165
2199
|
export type planFamilyGetAllPlanFamiliesResponse200 = {
|
|
2166
|
-
data:
|
|
2200
|
+
data: PlanFamilyGetAllPlanFamilies200
|
|
2167
2201
|
status: 200
|
|
2168
2202
|
}
|
|
2169
2203
|
|
|
@@ -2174,17 +2208,24 @@ export type planFamilyGetAllPlanFamiliesResponseSuccess = (planFamilyGetAllPlanF
|
|
|
2174
2208
|
|
|
2175
2209
|
export type planFamilyGetAllPlanFamiliesResponse = (planFamilyGetAllPlanFamiliesResponseSuccess)
|
|
2176
2210
|
|
|
2177
|
-
export const getPlanFamilyGetAllPlanFamiliesUrl = () => {
|
|
2211
|
+
export const getPlanFamilyGetAllPlanFamiliesUrl = (params?: PlanFamilyGetAllPlanFamiliesParams,) => {
|
|
2212
|
+
const normalizedParams = new URLSearchParams();
|
|
2178
2213
|
|
|
2214
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2215
|
+
|
|
2216
|
+
if (value !== undefined) {
|
|
2217
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
2218
|
+
}
|
|
2219
|
+
});
|
|
2179
2220
|
|
|
2180
|
-
|
|
2221
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2181
2222
|
|
|
2182
|
-
return `/api/v1/billing/planfamilies`
|
|
2223
|
+
return stringifiedParams.length > 0 ? `/api/v1/billing/planfamilies?${stringifiedParams}` : `/api/v1/billing/planfamilies`
|
|
2183
2224
|
}
|
|
2184
2225
|
|
|
2185
|
-
export const planFamilyGetAllPlanFamilies = async ( options?: RequestInit): Promise<planFamilyGetAllPlanFamiliesResponse> => {
|
|
2226
|
+
export const planFamilyGetAllPlanFamilies = async (params?: PlanFamilyGetAllPlanFamiliesParams, options?: RequestInit): Promise<planFamilyGetAllPlanFamiliesResponse> => {
|
|
2186
2227
|
|
|
2187
|
-
return customFetch<planFamilyGetAllPlanFamiliesResponse>(getPlanFamilyGetAllPlanFamiliesUrl(),
|
|
2228
|
+
return customFetch<planFamilyGetAllPlanFamiliesResponse>(getPlanFamilyGetAllPlanFamiliesUrl(params),
|
|
2188
2229
|
{
|
|
2189
2230
|
...options,
|
|
2190
2231
|
method: 'GET'
|
package/src/generated/crm/crm.ts
CHANGED
|
@@ -6,17 +6,20 @@ import type {
|
|
|
6
6
|
AccountAddPersonToAccountBody,
|
|
7
7
|
AccountCancelAccountBody,
|
|
8
8
|
AccountExtendTrialBody,
|
|
9
|
+
AccountGetAllAccounts200,
|
|
9
10
|
AccountGetAllAccountsParams,
|
|
10
11
|
AccountUpdateAccountBody,
|
|
11
12
|
AccountUpdateMembershipBody,
|
|
12
13
|
Deal,
|
|
13
14
|
DealAddDealBody,
|
|
15
|
+
DealGetAllDeals200,
|
|
14
16
|
DealGetAllDealsParams,
|
|
15
17
|
DealUpdateDealBody,
|
|
16
18
|
Person,
|
|
17
19
|
PersonAccount,
|
|
18
20
|
PersonAddPersonBody,
|
|
19
21
|
PersonForgotPasswordBody,
|
|
22
|
+
PersonGetAllPeople200,
|
|
20
23
|
PersonGetAllPeopleParams,
|
|
21
24
|
PersonSetTemporaryPasswordBody,
|
|
22
25
|
PersonUpdatePersonBody
|
|
@@ -56,7 +59,7 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
|
|
|
56
59
|
* @summary Retrieve all deals.
|
|
57
60
|
*/
|
|
58
61
|
export type dealGetAllDealsResponse200 = {
|
|
59
|
-
data:
|
|
62
|
+
data: DealGetAllDeals200
|
|
60
63
|
status: 200
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -354,7 +357,7 @@ export const registrationRegisterAccount = async (account: NonReadonly<Account>,
|
|
|
354
357
|
* @summary Retrieve all accounts.
|
|
355
358
|
*/
|
|
356
359
|
export type accountGetAllAccountsResponse200 = {
|
|
357
|
-
data:
|
|
360
|
+
data: AccountGetAllAccounts200
|
|
358
361
|
status: 200
|
|
359
362
|
}
|
|
360
363
|
|
|
@@ -1009,7 +1012,7 @@ export const accountSendConfirmationEmail = async (accountUid: string | null, op
|
|
|
1009
1012
|
* @summary Retrieve all people.
|
|
1010
1013
|
*/
|
|
1011
1014
|
export type personGetAllPeopleResponse200 = {
|
|
1012
|
-
data:
|
|
1015
|
+
data: PersonGetAllPeople200
|
|
1013
1016
|
status: 200
|
|
1014
1017
|
}
|
|
1015
1018
|
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
BroadcastCampaign,
|
|
4
4
|
CampaignAddBroadcastEmailBody,
|
|
5
|
+
CampaignGetAllBroadcastEmails200,
|
|
6
|
+
CampaignGetAllBroadcastEmailsParams,
|
|
5
7
|
CampaignSendTestCampaignEmailBody,
|
|
6
8
|
CampaignUpdateBroadcastEmailBody,
|
|
7
9
|
DripCampaign,
|
|
8
10
|
DripCampaignAddDripCampaignBody,
|
|
9
11
|
DripCampaignAddDripCampaignMessageBody,
|
|
12
|
+
DripCampaignGetAllDripCampaigns200,
|
|
13
|
+
DripCampaignGetAllDripCampaignsParams,
|
|
10
14
|
DripCampaignMessage,
|
|
11
15
|
DripCampaignSendTestCampaignEmailBody,
|
|
12
16
|
DripCampaignUpdateDripCampaignBody,
|
|
13
17
|
DripCampaignUpdateDripCampaignMessageBody,
|
|
14
18
|
EmailListAddSubscriptionBody,
|
|
19
|
+
EmailListGetAllSubscriptions200,
|
|
15
20
|
EmailListGetAllSubscriptionsParams,
|
|
16
21
|
EmailListPerson
|
|
17
22
|
} from '.././models';
|
|
@@ -49,7 +54,7 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>] ? {
|
|
|
49
54
|
* @summary Retrieve all drip campaigns.
|
|
50
55
|
*/
|
|
51
56
|
export type dripCampaignGetAllDripCampaignsResponse200 = {
|
|
52
|
-
data:
|
|
57
|
+
data: DripCampaignGetAllDripCampaigns200
|
|
53
58
|
status: 200
|
|
54
59
|
}
|
|
55
60
|
|
|
@@ -67,17 +72,24 @@ export type dripCampaignGetAllDripCampaignsResponseError = (dripCampaignGetAllDr
|
|
|
67
72
|
|
|
68
73
|
export type dripCampaignGetAllDripCampaignsResponse = (dripCampaignGetAllDripCampaignsResponseSuccess | dripCampaignGetAllDripCampaignsResponseError)
|
|
69
74
|
|
|
70
|
-
export const getDripCampaignGetAllDripCampaignsUrl = () => {
|
|
75
|
+
export const getDripCampaignGetAllDripCampaignsUrl = (params?: DripCampaignGetAllDripCampaignsParams,) => {
|
|
76
|
+
const normalizedParams = new URLSearchParams();
|
|
71
77
|
|
|
78
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
79
|
+
|
|
80
|
+
if (value !== undefined) {
|
|
81
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
82
|
+
}
|
|
83
|
+
});
|
|
72
84
|
|
|
73
|
-
|
|
85
|
+
const stringifiedParams = normalizedParams.toString();
|
|
74
86
|
|
|
75
|
-
return `/api/v1/email/campaigns/drips`
|
|
87
|
+
return stringifiedParams.length > 0 ? `/api/v1/email/campaigns/drips?${stringifiedParams}` : `/api/v1/email/campaigns/drips`
|
|
76
88
|
}
|
|
77
89
|
|
|
78
|
-
export const dripCampaignGetAllDripCampaigns = async ( options?: RequestInit): Promise<dripCampaignGetAllDripCampaignsResponse> => {
|
|
90
|
+
export const dripCampaignGetAllDripCampaigns = async (params?: DripCampaignGetAllDripCampaignsParams, options?: RequestInit): Promise<dripCampaignGetAllDripCampaignsResponse> => {
|
|
79
91
|
|
|
80
|
-
return customFetch<dripCampaignGetAllDripCampaignsResponse>(getDripCampaignGetAllDripCampaignsUrl(),
|
|
92
|
+
return customFetch<dripCampaignGetAllDripCampaignsResponse>(getDripCampaignGetAllDripCampaignsUrl(params),
|
|
81
93
|
{
|
|
82
94
|
...options,
|
|
83
95
|
method: 'GET'
|
|
@@ -572,7 +584,7 @@ export const dripCampaignSendTestCampaignEmail = async (dripCampaignSendTestCamp
|
|
|
572
584
|
* @summary Retrieve all broadcasts.
|
|
573
585
|
*/
|
|
574
586
|
export type campaignGetAllBroadcastEmailsResponse200 = {
|
|
575
|
-
data:
|
|
587
|
+
data: CampaignGetAllBroadcastEmails200
|
|
576
588
|
status: 200
|
|
577
589
|
}
|
|
578
590
|
|
|
@@ -590,17 +602,24 @@ export type campaignGetAllBroadcastEmailsResponseError = (campaignGetAllBroadcas
|
|
|
590
602
|
|
|
591
603
|
export type campaignGetAllBroadcastEmailsResponse = (campaignGetAllBroadcastEmailsResponseSuccess | campaignGetAllBroadcastEmailsResponseError)
|
|
592
604
|
|
|
593
|
-
export const getCampaignGetAllBroadcastEmailsUrl = () => {
|
|
605
|
+
export const getCampaignGetAllBroadcastEmailsUrl = (params?: CampaignGetAllBroadcastEmailsParams,) => {
|
|
606
|
+
const normalizedParams = new URLSearchParams();
|
|
594
607
|
|
|
608
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
609
|
+
|
|
610
|
+
if (value !== undefined) {
|
|
611
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
612
|
+
}
|
|
613
|
+
});
|
|
595
614
|
|
|
596
|
-
|
|
615
|
+
const stringifiedParams = normalizedParams.toString();
|
|
597
616
|
|
|
598
|
-
return `/api/v1/email/campaigns/broadcasts`
|
|
617
|
+
return stringifiedParams.length > 0 ? `/api/v1/email/campaigns/broadcasts?${stringifiedParams}` : `/api/v1/email/campaigns/broadcasts`
|
|
599
618
|
}
|
|
600
619
|
|
|
601
|
-
export const campaignGetAllBroadcastEmails = async ( options?: RequestInit): Promise<campaignGetAllBroadcastEmailsResponse> => {
|
|
620
|
+
export const campaignGetAllBroadcastEmails = async (params?: CampaignGetAllBroadcastEmailsParams, options?: RequestInit): Promise<campaignGetAllBroadcastEmailsResponse> => {
|
|
602
621
|
|
|
603
|
-
return customFetch<campaignGetAllBroadcastEmailsResponse>(getCampaignGetAllBroadcastEmailsUrl(),
|
|
622
|
+
return customFetch<campaignGetAllBroadcastEmailsResponse>(getCampaignGetAllBroadcastEmailsUrl(params),
|
|
604
623
|
{
|
|
605
624
|
...options,
|
|
606
625
|
method: 'GET'
|
|
@@ -1018,7 +1037,7 @@ export const campaignSendTestCampaignEmail = async (campaignSendTestCampaignEmai
|
|
|
1018
1037
|
* @summary Retrieve all subscribers to an email list.
|
|
1019
1038
|
*/
|
|
1020
1039
|
export type emailListGetAllSubscriptionsResponse200 = {
|
|
1021
|
-
data:
|
|
1040
|
+
data: EmailListGetAllSubscriptions200
|
|
1022
1041
|
status: 200
|
|
1023
1042
|
}
|
|
1024
1043
|
|
|
@@ -22,6 +22,8 @@ export type AccountWebhookEntityPrimaryStripeSubscription = {
|
|
|
22
22
|
StripeId?: string | null;
|
|
23
23
|
IsLivemode?: boolean;
|
|
24
24
|
/** @nullable */
|
|
25
|
+
ApplicationFeePercent?: number | null;
|
|
26
|
+
/** @nullable */
|
|
25
27
|
CancelAt?: string | null;
|
|
26
28
|
CancelAtPeriodEnd?: boolean;
|
|
27
29
|
/**
|
|
@@ -19,6 +19,8 @@ export type AccountWebhookEntityStripeSubscriptionsItem = {
|
|
|
19
19
|
StripeId?: string | null;
|
|
20
20
|
IsLivemode?: boolean;
|
|
21
21
|
/** @nullable */
|
|
22
|
+
ApplicationFeePercent?: number | null;
|
|
23
|
+
/** @nullable */
|
|
22
24
|
CancelAt?: string | null;
|
|
23
25
|
CancelAtPeriodEnd?: boolean;
|
|
24
26
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { CollectionMetadata } from './collectionMetadata';
|
|
3
|
+
import type { BroadcastCampaign } from './broadcastCampaign';
|
|
4
|
+
|
|
5
|
+
export type CampaignGetAllBroadcastEmails200 = {
|
|
6
|
+
metadata?: CollectionMetadata;
|
|
7
|
+
items?: BroadcastCampaign[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type CampaignGetAllBroadcastEmailsParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type CategoryGetAllCategoriesParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type DefinitionGetAllDefinitionsParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { CollectionMetadata } from './collectionMetadata';
|
|
3
|
+
import type { DiscountCouponSubscription } from './discountCouponSubscription';
|
|
4
|
+
|
|
5
|
+
export type DiscountCouponGetDiscountCouponRedemptions200 = {
|
|
6
|
+
metadata?: CollectionMetadata;
|
|
7
|
+
items?: DiscountCouponSubscription[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type DripCampaignGetAllDripCampaignsParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -81,6 +81,7 @@ export * from './accountCancelationAllOfLastPlan';
|
|
|
81
81
|
export * from './accountCreatedWebhookPayload';
|
|
82
82
|
export * from './accountDeletedWebhookPayload';
|
|
83
83
|
export * from './accountExtendTrialBody';
|
|
84
|
+
export * from './accountGetAllAccounts200';
|
|
84
85
|
export * from './accountGetAllAccountsParams';
|
|
85
86
|
export * from './accountPaidSubscriptionCreatedActivityData';
|
|
86
87
|
export * from './accountPaidSubscriptionCreatedWebhookPayload';
|
|
@@ -201,6 +202,7 @@ export * from './activityCRMDealTriggerAllOf';
|
|
|
201
202
|
export * from './activityCRMDealTriggerAllOfDealPipelineStage';
|
|
202
203
|
export * from './activityCriteria';
|
|
203
204
|
export * from './activityCriteriaActivityType';
|
|
205
|
+
export * from './activityGetAll200';
|
|
204
206
|
export * from './activityGetAllParams';
|
|
205
207
|
export * from './activityNotification';
|
|
206
208
|
export * from './activityNotificationAllOf';
|
|
@@ -224,6 +226,7 @@ export * from './article';
|
|
|
224
226
|
export * from './articleAddArticleBody';
|
|
225
227
|
export * from './articleAllOf';
|
|
226
228
|
export * from './articleAllOfCategory';
|
|
229
|
+
export * from './articleGetAllArticles200';
|
|
227
230
|
export * from './articleGetAllArticlesParams';
|
|
228
231
|
export * from './authGetTokenParams';
|
|
229
232
|
export * from './authResendTwoFactorParams';
|
|
@@ -246,6 +249,8 @@ export * from './broadcastCampaignStatus';
|
|
|
246
249
|
export * from './campaign';
|
|
247
250
|
export * from './campaignAddBroadcastEmailBody';
|
|
248
251
|
export * from './campaignAllOf';
|
|
252
|
+
export * from './campaignGetAllBroadcastEmails200';
|
|
253
|
+
export * from './campaignGetAllBroadcastEmailsParams';
|
|
249
254
|
export * from './campaignSendTestCampaignEmailBody';
|
|
250
255
|
export * from './campaignType';
|
|
251
256
|
export * from './campaignUpdateBroadcastEmailBody';
|
|
@@ -255,6 +260,7 @@ export * from './caseAddCaseBody';
|
|
|
255
260
|
export * from './caseAddCaseParams';
|
|
256
261
|
export * from './caseAllOf';
|
|
257
262
|
export * from './caseAllOfLastCaseHistory';
|
|
263
|
+
export * from './caseGetAllCases200';
|
|
258
264
|
export * from './caseGetAllCasesParams';
|
|
259
265
|
export * from './caseHistory';
|
|
260
266
|
export * from './caseHistoryAllOf';
|
|
@@ -264,10 +270,13 @@ export * from './caseTagAllOfCase';
|
|
|
264
270
|
export * from './caseTagAllOfTag';
|
|
265
271
|
export * from './category';
|
|
266
272
|
export * from './categoryAllOf';
|
|
273
|
+
export * from './categoryGetAllCategories200';
|
|
274
|
+
export * from './categoryGetAllCategoriesParams';
|
|
267
275
|
export * from './chatSettings';
|
|
268
276
|
export * from './chatSettingsAllOf';
|
|
269
277
|
export * from './clientApplication';
|
|
270
278
|
export * from './clientApplicationAllOf';
|
|
279
|
+
export * from './collectionMetadata';
|
|
271
280
|
export * from './contentGroup';
|
|
272
281
|
export * from './contentGroupAllOf';
|
|
273
282
|
export * from './contentGroupItem';
|
|
@@ -288,6 +297,7 @@ export * from './dealAllOfOwner';
|
|
|
288
297
|
export * from './dealCreatedWebhookPayload';
|
|
289
298
|
export * from './dealDeletedWebhookPayload';
|
|
290
299
|
export * from './dealDueDateWebhookPayload';
|
|
300
|
+
export * from './dealGetAllDeals200';
|
|
291
301
|
export * from './dealGetAllDealsParams';
|
|
292
302
|
export * from './dealPerson';
|
|
293
303
|
export * from './dealPersonAllOf';
|
|
@@ -309,6 +319,8 @@ export * from './dealWebhookEntityOwner';
|
|
|
309
319
|
export * from './dealWebhookEntityOwnerOAuthIntegrationStatus';
|
|
310
320
|
export * from './definition';
|
|
311
321
|
export * from './definitionAllOf';
|
|
322
|
+
export * from './definitionGetAllDefinitions200';
|
|
323
|
+
export * from './definitionGetAllDefinitionsParams';
|
|
312
324
|
export * from './deserializationStatus';
|
|
313
325
|
export * from './discordRole';
|
|
314
326
|
export * from './discordRoleAllOf';
|
|
@@ -334,8 +346,10 @@ export * from './discordUserRolesUpdatedWebhookPayloadAllOf';
|
|
|
334
346
|
export * from './discountCoupon';
|
|
335
347
|
export * from './discountCouponAddDiscountCouponBody';
|
|
336
348
|
export * from './discountCouponAllOf';
|
|
349
|
+
export * from './discountCouponGetAllDiscountCoupons200';
|
|
337
350
|
export * from './discountCouponGetAllDiscountCouponsParams';
|
|
338
351
|
export * from './discountCouponGetDiscountCouponByCodeParams';
|
|
352
|
+
export * from './discountCouponGetDiscountCouponRedemptions200';
|
|
339
353
|
export * from './discountCouponGetDiscountCouponRedemptionsParams';
|
|
340
354
|
export * from './discountCouponPlan';
|
|
341
355
|
export * from './discountCouponPlanAllOf';
|
|
@@ -352,6 +366,8 @@ export * from './dripCampaignAddDripCampaignBody';
|
|
|
352
366
|
export * from './dripCampaignAddDripCampaignMessageBody';
|
|
353
367
|
export * from './dripCampaignAllOf';
|
|
354
368
|
export * from './dripCampaignAllOfCampaign';
|
|
369
|
+
export * from './dripCampaignGetAllDripCampaigns200';
|
|
370
|
+
export * from './dripCampaignGetAllDripCampaignsParams';
|
|
355
371
|
export * from './dripCampaignMessage';
|
|
356
372
|
export * from './dripCampaignMessageAllOf';
|
|
357
373
|
export * from './dripCampaignMessageAllOfDripCampaign';
|
|
@@ -364,6 +380,7 @@ export * from './emailLinkAllOf';
|
|
|
364
380
|
export * from './emailList';
|
|
365
381
|
export * from './emailListAddSubscriptionBody';
|
|
366
382
|
export * from './emailListAllOf';
|
|
383
|
+
export * from './emailListGetAllSubscriptions200';
|
|
367
384
|
export * from './emailListGetAllSubscriptionsParams';
|
|
368
385
|
export * from './emailListPerson';
|
|
369
386
|
export * from './emailListPersonAllOf';
|
|
@@ -382,6 +399,8 @@ export * from './invoiceAddInvoiceBody';
|
|
|
382
399
|
export * from './invoiceAllOf';
|
|
383
400
|
export * from './invoiceAllOfSubscription';
|
|
384
401
|
export * from './invoiceCreditOptions';
|
|
402
|
+
export * from './invoiceGetAllInvoices200';
|
|
403
|
+
export * from './invoiceGetAllInvoicesParams';
|
|
385
404
|
export * from './invoiceLineItem';
|
|
386
405
|
export * from './invoiceLineItemAllOf';
|
|
387
406
|
export * from './invoiceLineItemAllOfInvoice';
|
|
@@ -396,6 +415,7 @@ export * from './leadFormAllOf';
|
|
|
396
415
|
export * from './leadFormAllOfDealPipelineStage';
|
|
397
416
|
export * from './leadFormSubmission';
|
|
398
417
|
export * from './leadFormSubmissionAllOf';
|
|
418
|
+
export * from './limitParameter';
|
|
399
419
|
export * from './lineItemType';
|
|
400
420
|
export * from './message';
|
|
401
421
|
export * from './messageAllOf';
|
|
@@ -404,6 +424,7 @@ export * from './noCodeSettings';
|
|
|
404
424
|
export * from './noCodeSettingsAllOf';
|
|
405
425
|
export * from './noCodeSettingsAllOfAccount';
|
|
406
426
|
export * from './oAuthService';
|
|
427
|
+
export * from './offsetParameter';
|
|
407
428
|
export * from './passwordChangeModel';
|
|
408
429
|
export * from './passwordPayload';
|
|
409
430
|
export * from './pauseCollectionOptions';
|
|
@@ -434,6 +455,7 @@ export * from './personEmailUnsubscribedActivityData';
|
|
|
434
455
|
export * from './personEmailUnsubscribedWebhookPayload';
|
|
435
456
|
export * from './personEmailUnsubscribedWebhookPayloadAllOf';
|
|
436
457
|
export * from './personForgotPasswordBody';
|
|
458
|
+
export * from './personGetAllPeople200';
|
|
437
459
|
export * from './personGetAllPeopleParams';
|
|
438
460
|
export * from './personLeadFormSubmittedActivityData';
|
|
439
461
|
export * from './personLeadFormSubmittedWebhookPayload';
|
|
@@ -499,7 +521,11 @@ export * from './planCreatedWebhookPayload';
|
|
|
499
521
|
export * from './planFamily';
|
|
500
522
|
export * from './planFamilyAddPlanFamilyBody';
|
|
501
523
|
export * from './planFamilyAllOf';
|
|
524
|
+
export * from './planFamilyGetAllPlanFamilies200';
|
|
525
|
+
export * from './planFamilyGetAllPlanFamiliesParams';
|
|
502
526
|
export * from './planFamilyUpdatePlanFamilyBody';
|
|
527
|
+
export * from './planGetAllPlans200';
|
|
528
|
+
export * from './planGetAllPlansParams';
|
|
503
529
|
export * from './planUpdatePlanBody';
|
|
504
530
|
export * from './planUpdatedWebhookPayload';
|
|
505
531
|
export * from './planWebhookEntity';
|
|
@@ -642,6 +668,7 @@ export * from './subscriptionAddOnAddSubscriptionAddOnPreviewBody';
|
|
|
642
668
|
export * from './subscriptionAddOnAllOf';
|
|
643
669
|
export * from './subscriptionAddOnAllOfAddOn';
|
|
644
670
|
export * from './subscriptionAddOnAllOfSubscription';
|
|
671
|
+
export * from './subscriptionAddOnGetAllSubscriptionsAddOns200';
|
|
645
672
|
export * from './subscriptionAddOnGetAllSubscriptionsAddOnsParams';
|
|
646
673
|
export * from './subscriptionAddOnSetAddOnUpgradeRequiredBody';
|
|
647
674
|
export * from './subscriptionAllOf';
|
|
@@ -655,6 +682,7 @@ export * from './subscriptionChangeSubscriptionPreviewParams';
|
|
|
655
682
|
export * from './subscriptionFirstTimeSubscriptionBody';
|
|
656
683
|
export * from './subscriptionFirstTimeSubscriptionPreviewBody';
|
|
657
684
|
export * from './subscriptionFirstTimeSubscriptionPreviewParams';
|
|
685
|
+
export * from './subscriptionGetAllSubscriptions200';
|
|
658
686
|
export * from './subscriptionGetAllSubscriptionsParams';
|
|
659
687
|
export * from './subscriptionSetSubscriptionUpgradeRequiredBody';
|
|
660
688
|
export * from './supportArticleStatus';
|
|
@@ -693,6 +721,8 @@ export * from './transactionAllOf';
|
|
|
693
721
|
export * from './transactionAllOfAccount';
|
|
694
722
|
export * from './transactionAllOfInvoice';
|
|
695
723
|
export * from './transactionsAddPaymentTransactionBody';
|
|
724
|
+
export * from './transactionsGetAllTransactionsByAccountId200';
|
|
725
|
+
export * from './transactionsGetAllTransactionsByAccountIdParams';
|
|
696
726
|
export * from './translation';
|
|
697
727
|
export * from './translationAllOf';
|
|
698
728
|
export * from './twoFactorChallengePayload';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type InvoiceGetAllInvoicesParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
/**
|
|
15
|
+
* The invoice Uid to omit from the result set.
|
|
16
|
+
*/
|
|
17
|
+
excludeInvoiceUid?: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type PlanFamilyGetAllPlanFamiliesParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type PlanGetAllPlansParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -7,6 +7,13 @@ export type StripeChargeAllOf = {
|
|
|
7
7
|
Amount?: number;
|
|
8
8
|
AmountCaptured?: number;
|
|
9
9
|
AmountRefunded?: number;
|
|
10
|
+
/** @nullable */
|
|
11
|
+
ApplicationFeeAmount?: number | null;
|
|
12
|
+
/**
|
|
13
|
+
* @maxLength 255
|
|
14
|
+
* @nullable
|
|
15
|
+
*/
|
|
16
|
+
ApplicationFeeId?: string | null;
|
|
10
17
|
Captured?: boolean;
|
|
11
18
|
/**
|
|
12
19
|
* @maxLength 3
|
|
@@ -7,6 +7,8 @@ import type { StripeSubscriptionAllOfAccount } from './stripeSubscriptionAllOfAc
|
|
|
7
7
|
import type { StripeSubscriptionAllOfCurrentStripeSubscriptionSchedule } from './stripeSubscriptionAllOfCurrentStripeSubscriptionSchedule';
|
|
8
8
|
|
|
9
9
|
export type StripeSubscriptionAllOf = {
|
|
10
|
+
/** @nullable */
|
|
11
|
+
ApplicationFeePercent?: number | null;
|
|
10
12
|
/** @nullable */
|
|
11
13
|
CancelAt?: string | null;
|
|
12
14
|
CancelAtPeriodEnd?: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { CollectionMetadata } from './collectionMetadata';
|
|
3
|
+
import type { SubscriptionAddOn } from './subscriptionAddOn';
|
|
4
|
+
|
|
5
|
+
export type SubscriptionAddOnGetAllSubscriptionsAddOns200 = {
|
|
6
|
+
metadata?: CollectionMetadata;
|
|
7
|
+
items?: SubscriptionAddOn[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { LimitParameter } from './limitParameter';
|
|
3
|
+
import type { OffsetParameter } from './offsetParameter';
|
|
4
|
+
|
|
5
|
+
export type TransactionsGetAllTransactionsByAccountIdParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of records per page.
|
|
8
|
+
*/
|
|
9
|
+
limit?: LimitParameter;
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based page index.
|
|
12
|
+
*/
|
|
13
|
+
offset?: OffsetParameter;
|
|
14
|
+
};
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
Article,
|
|
4
4
|
ArticleAddArticleBody,
|
|
5
|
+
ArticleGetAllArticles200,
|
|
5
6
|
ArticleGetAllArticlesParams,
|
|
6
7
|
Case,
|
|
7
8
|
CaseAddCaseBody,
|
|
8
9
|
CaseAddCaseParams,
|
|
10
|
+
CaseGetAllCases200,
|
|
9
11
|
CaseGetAllCasesParams,
|
|
10
12
|
CaseHistory,
|
|
11
|
-
|
|
13
|
+
CategoryGetAllCategories200,
|
|
14
|
+
CategoryGetAllCategoriesParams
|
|
12
15
|
} from '.././models';
|
|
13
16
|
|
|
14
17
|
import { customFetch } from '../../client';
|
|
@@ -47,7 +50,7 @@ which is the Uid of the person the case is assigned to.
|
|
|
47
50
|
* @summary Retrieve all cases.
|
|
48
51
|
*/
|
|
49
52
|
export type caseGetAllCasesResponse200 = {
|
|
50
|
-
data:
|
|
53
|
+
data: CaseGetAllCases200
|
|
51
54
|
status: 200
|
|
52
55
|
}
|
|
53
56
|
|
|
@@ -310,7 +313,7 @@ export const caseAddClientResponse = async (caseUid: string | null,
|
|
|
310
313
|
* @summary Retrieve all knowledge base articles.
|
|
311
314
|
*/
|
|
312
315
|
export type articleGetAllArticlesResponse200 = {
|
|
313
|
-
data:
|
|
316
|
+
data: ArticleGetAllArticles200
|
|
314
317
|
status: 200
|
|
315
318
|
}
|
|
316
319
|
|
|
@@ -442,7 +445,7 @@ export const articleGetArticle = async (articleUid: string | null, options?: Req
|
|
|
442
445
|
* @summary Retrieve all knowledge base categories.
|
|
443
446
|
*/
|
|
444
447
|
export type categoryGetAllCategoriesResponse200 = {
|
|
445
|
-
data:
|
|
448
|
+
data: CategoryGetAllCategories200
|
|
446
449
|
status: 200
|
|
447
450
|
}
|
|
448
451
|
|
|
@@ -453,17 +456,24 @@ export type categoryGetAllCategoriesResponseSuccess = (categoryGetAllCategoriesR
|
|
|
453
456
|
|
|
454
457
|
export type categoryGetAllCategoriesResponse = (categoryGetAllCategoriesResponseSuccess)
|
|
455
458
|
|
|
456
|
-
export const getCategoryGetAllCategoriesUrl = () => {
|
|
459
|
+
export const getCategoryGetAllCategoriesUrl = (params?: CategoryGetAllCategoriesParams,) => {
|
|
460
|
+
const normalizedParams = new URLSearchParams();
|
|
457
461
|
|
|
462
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
463
|
+
|
|
464
|
+
if (value !== undefined) {
|
|
465
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString())
|
|
466
|
+
}
|
|
467
|
+
});
|
|
458
468
|
|
|
459
|
-
|
|
469
|
+
const stringifiedParams = normalizedParams.toString();
|
|
460
470
|
|
|
461
|
-
return `/api/v1/support/categories`
|
|
471
|
+
return stringifiedParams.length > 0 ? `/api/v1/support/categories?${stringifiedParams}` : `/api/v1/support/categories`
|
|
462
472
|
}
|
|
463
473
|
|
|
464
|
-
export const categoryGetAllCategories = async ( options?: RequestInit): Promise<categoryGetAllCategoriesResponse> => {
|
|
474
|
+
export const categoryGetAllCategories = async (params?: CategoryGetAllCategoriesParams, options?: RequestInit): Promise<categoryGetAllCategoriesResponse> => {
|
|
465
475
|
|
|
466
|
-
return customFetch<categoryGetAllCategoriesResponse>(getCategoryGetAllCategoriesUrl(),
|
|
476
|
+
return customFetch<categoryGetAllCategoriesResponse>(getCategoryGetAllCategoriesUrl(params),
|
|
467
477
|
{
|
|
468
478
|
...options,
|
|
469
479
|
method: 'GET'
|