@outseta/api-client 0.3.22 → 0.3.24

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.
Files changed (44) hide show
  1. package/dist/index.js +77 -28
  2. package/package.json +1 -1
  3. package/src/generated/activity/activity.ts +2 -2
  4. package/src/generated/attribute/attribute.ts +18 -7
  5. package/src/generated/billing/billing.ts +70 -29
  6. package/src/generated/crm/crm.ts +6 -3
  7. package/src/generated/email/email.ts +32 -13
  8. package/src/generated/models/accountGetAllAccounts200.ts +8 -0
  9. package/src/generated/models/accountWebhookEntityPrimaryStripeSubscription.ts +2 -0
  10. package/src/generated/models/accountWebhookEntityStripeSubscriptionsItem.ts +2 -0
  11. package/src/generated/models/activityGetAll200.ts +8 -0
  12. package/src/generated/models/articleGetAllArticles200.ts +8 -0
  13. package/src/generated/models/campaignGetAllBroadcastEmails200.ts +8 -0
  14. package/src/generated/models/campaignGetAllBroadcastEmailsParams.ts +14 -0
  15. package/src/generated/models/caseGetAllCases200.ts +8 -0
  16. package/src/generated/models/categoryGetAllCategories200.ts +8 -0
  17. package/src/generated/models/categoryGetAllCategoriesParams.ts +14 -0
  18. package/src/generated/models/collectionMetadata.ts +7 -0
  19. package/src/generated/models/crmSettingsAllOf.ts +1 -0
  20. package/src/generated/models/dealGetAllDeals200.ts +8 -0
  21. package/src/generated/models/definitionGetAllDefinitions200.ts +8 -0
  22. package/src/generated/models/definitionGetAllDefinitionsParams.ts +14 -0
  23. package/src/generated/models/discountCouponGetAllDiscountCoupons200.ts +8 -0
  24. package/src/generated/models/discountCouponGetDiscountCouponRedemptions200.ts +8 -0
  25. package/src/generated/models/dripCampaignGetAllDripCampaigns200.ts +8 -0
  26. package/src/generated/models/dripCampaignGetAllDripCampaignsParams.ts +14 -0
  27. package/src/generated/models/emailListGetAllSubscriptions200.ts +8 -0
  28. package/src/generated/models/index.ts +30 -0
  29. package/src/generated/models/invoiceGetAllInvoices200.ts +8 -0
  30. package/src/generated/models/invoiceGetAllInvoicesParams.ts +18 -0
  31. package/src/generated/models/limitParameter.ts +6 -0
  32. package/src/generated/models/offsetParameter.ts +6 -0
  33. package/src/generated/models/personGetAllPeople200.ts +8 -0
  34. package/src/generated/models/planFamilyGetAllPlanFamilies200.ts +8 -0
  35. package/src/generated/models/planFamilyGetAllPlanFamiliesParams.ts +14 -0
  36. package/src/generated/models/planGetAllPlans200.ts +8 -0
  37. package/src/generated/models/planGetAllPlansParams.ts +14 -0
  38. package/src/generated/models/stripeChargeAllOf.ts +7 -0
  39. package/src/generated/models/stripeSubscriptionAllOf.ts +2 -0
  40. package/src/generated/models/subscriptionAddOnGetAllSubscriptionsAddOns200.ts +8 -0
  41. package/src/generated/models/subscriptionGetAllSubscriptions200.ts +8 -0
  42. package/src/generated/models/transactionsGetAllTransactionsByAccountId200.ts +8 -0
  43. package/src/generated/models/transactionsGetAllTransactionsByAccountIdParams.ts +14 -0
  44. 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
- return `/api/v1/billing/transactions/${accountUid}`;
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
- return `/api/v1/billing/invoices`;
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
- return `/api/v1/billing/plans`;
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
- return `/api/v1/billing/planfamilies`;
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
- return `/api/v1/email/campaigns/drips`;
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
- return `/api/v1/email/campaigns/broadcasts`;
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
- return `/api/v1/support/categories`;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/api-client",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "Generated API client for the Outseta REST API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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: Activity[]
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: Definition[]
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, options?: RequestInit): Promise<definitionGetAllDefinitionsResponse> => {
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: DiscountCoupon[]
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: DiscountCouponSubscription[]
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: Transaction[]
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, options?: RequestInit): Promise<transactionsGetAllTransactionsByAccountIdResponse> => {
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: SubscriptionAddOn[]
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: Invoice[]
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: Subscription[]
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: Plan[]
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: PlanFamily[]
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'
@@ -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: Deal[]
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: Account[]
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: Person[]
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: DripCampaign[]
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: BroadcastCampaign[]
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: EmailListPerson[]
1040
+ data: EmailListGetAllSubscriptions200
1022
1041
  status: 200
1023
1042
  }
1024
1043
 
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { Account } from './account';
4
+
5
+ export type AccountGetAllAccounts200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: Account[];
8
+ };
@@ -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 { Activity } from './activity';
4
+
5
+ export type ActivityGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: Activity[];
8
+ };