@outseta/react 0.4.15 → 0.4.17
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 +70 -56
- package/package.json +2 -2
- package/src/generated/activity/activity.ts +2 -2
- package/src/generated/attribute/attribute.ts +17 -10
- package/src/generated/billing/billing.ts +63 -44
- package/src/generated/crm/crm.ts +6 -3
- package/src/generated/email/email.ts +28 -21
- package/src/generated/outsetaAPI.schemas.ts +234 -0
- package/src/generated/support/support.ts +17 -13
|
@@ -1475,6 +1475,8 @@ export type StripeSubscriptionAllOfAccount = Account | null;
|
|
|
1475
1475
|
export type StripeSubscriptionAllOfCurrentStripeSubscriptionSchedule = StripeSubscriptionSchedule | null;
|
|
1476
1476
|
|
|
1477
1477
|
export type StripeSubscriptionAllOf = {
|
|
1478
|
+
/** @nullable */
|
|
1479
|
+
ApplicationFeePercent?: number | null;
|
|
1478
1480
|
/** @nullable */
|
|
1479
1481
|
CancelAt?: string | null;
|
|
1480
1482
|
CancelAtPeriodEnd?: boolean;
|
|
@@ -1534,6 +1536,16 @@ export type StripeSubscriptionAllOf = {
|
|
|
1534
1536
|
|
|
1535
1537
|
export type StripeSubscription = AbstractStripeBeanOfSubscription & StripeSubscriptionAllOf;
|
|
1536
1538
|
|
|
1539
|
+
/**
|
|
1540
|
+
* @nullable
|
|
1541
|
+
*/
|
|
1542
|
+
export type StripeSubscriptionCancellationAllOfAccount = Account | null;
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* @nullable
|
|
1546
|
+
*/
|
|
1547
|
+
export type StripeSubscriptionCancellationAllOfLastProduct = StripeProduct | null;
|
|
1548
|
+
|
|
1537
1549
|
export type StripeSubscriptionCancellationAllOf = {
|
|
1538
1550
|
/**
|
|
1539
1551
|
* @maxLength 1024
|
|
@@ -1550,6 +1562,14 @@ export type StripeSubscriptionCancellationAllOf = {
|
|
|
1550
1562
|
* @nullable
|
|
1551
1563
|
*/
|
|
1552
1564
|
Reason?: string | null;
|
|
1565
|
+
/** @nullable */
|
|
1566
|
+
Account?: StripeSubscriptionCancellationAllOfAccount;
|
|
1567
|
+
/** @nullable */
|
|
1568
|
+
CancelationReason?: string | null;
|
|
1569
|
+
/** @nullable */
|
|
1570
|
+
LastProduct?: StripeSubscriptionCancellationAllOfLastProduct;
|
|
1571
|
+
SubmittedDateTime?: string;
|
|
1572
|
+
SubscribingStartDate?: string;
|
|
1553
1573
|
};
|
|
1554
1574
|
|
|
1555
1575
|
export type StripeSubscriptionCancellation = AbstractQcountBean & StripeSubscriptionCancellationAllOf;
|
|
@@ -1853,6 +1873,13 @@ export type StripeChargeAllOf = {
|
|
|
1853
1873
|
Amount?: number;
|
|
1854
1874
|
AmountCaptured?: number;
|
|
1855
1875
|
AmountRefunded?: number;
|
|
1876
|
+
/** @nullable */
|
|
1877
|
+
ApplicationFeeAmount?: number | null;
|
|
1878
|
+
/**
|
|
1879
|
+
* @maxLength 255
|
|
1880
|
+
* @nullable
|
|
1881
|
+
*/
|
|
1882
|
+
ApplicationFeeId?: string | null;
|
|
1856
1883
|
Captured?: boolean;
|
|
1857
1884
|
/**
|
|
1858
1885
|
* @maxLength 3
|
|
@@ -4906,6 +4933,12 @@ export interface ActivityCriteria {
|
|
|
4906
4933
|
ActivityTypes?: string[] | null;
|
|
4907
4934
|
}
|
|
4908
4935
|
|
|
4936
|
+
export interface CollectionMetadata {
|
|
4937
|
+
limit?: number;
|
|
4938
|
+
offset?: number;
|
|
4939
|
+
total?: number;
|
|
4940
|
+
}
|
|
4941
|
+
|
|
4909
4942
|
/**
|
|
4910
4943
|
* @nullable
|
|
4911
4944
|
*/
|
|
@@ -5409,6 +5442,8 @@ export type AccountWebhookEntityStripeSubscriptionsItem = {
|
|
|
5409
5442
|
StripeId?: string | null;
|
|
5410
5443
|
IsLivemode?: boolean;
|
|
5411
5444
|
/** @nullable */
|
|
5445
|
+
ApplicationFeePercent?: number | null;
|
|
5446
|
+
/** @nullable */
|
|
5412
5447
|
CancelAt?: string | null;
|
|
5413
5448
|
CancelAtPeriodEnd?: boolean;
|
|
5414
5449
|
/**
|
|
@@ -7055,6 +7090,8 @@ export type AccountWebhookEntityPrimaryStripeSubscription = {
|
|
|
7055
7090
|
StripeId?: string | null;
|
|
7056
7091
|
IsLivemode?: boolean;
|
|
7057
7092
|
/** @nullable */
|
|
7093
|
+
ApplicationFeePercent?: number | null;
|
|
7094
|
+
/** @nullable */
|
|
7058
7095
|
CancelAt?: string | null;
|
|
7059
7096
|
CancelAtPeriodEnd?: boolean;
|
|
7060
7097
|
/**
|
|
@@ -8953,6 +8990,32 @@ export type DiscordUserRemovedFromServerWebhookPayloadAllOf = {
|
|
|
8953
8990
|
|
|
8954
8991
|
export type DiscordUserRemovedFromServerWebhookPayload = PersonWebhookEntity & DiscordUserRemovedFromServerWebhookPayloadAllOf;
|
|
8955
8992
|
|
|
8993
|
+
/**
|
|
8994
|
+
* Maximum number of records per page.
|
|
8995
|
+
*/
|
|
8996
|
+
export type LimitParameter = number;
|
|
8997
|
+
|
|
8998
|
+
/**
|
|
8999
|
+
* Zero-based page index.
|
|
9000
|
+
*/
|
|
9001
|
+
export type OffsetParameter = number;
|
|
9002
|
+
|
|
9003
|
+
export type DefinitionGetAllDefinitionsParams = {
|
|
9004
|
+
/**
|
|
9005
|
+
* Maximum number of records per page.
|
|
9006
|
+
*/
|
|
9007
|
+
limit?: LimitParameter;
|
|
9008
|
+
/**
|
|
9009
|
+
* Zero-based page index.
|
|
9010
|
+
*/
|
|
9011
|
+
offset?: OffsetParameter;
|
|
9012
|
+
};
|
|
9013
|
+
|
|
9014
|
+
export type DefinitionGetAllDefinitions200 = {
|
|
9015
|
+
metadata?: CollectionMetadata;
|
|
9016
|
+
items?: Definition[];
|
|
9017
|
+
};
|
|
9018
|
+
|
|
8956
9019
|
export type AuthGetTokenParams = {
|
|
8957
9020
|
/**
|
|
8958
9021
|
* @nullable
|
|
@@ -9022,6 +9085,11 @@ q?: string | null;
|
|
|
9022
9085
|
tagUid?: string | null;
|
|
9023
9086
|
};
|
|
9024
9087
|
|
|
9088
|
+
export type CaseGetAllCases200 = {
|
|
9089
|
+
metadata?: CollectionMetadata;
|
|
9090
|
+
items?: Case[];
|
|
9091
|
+
};
|
|
9092
|
+
|
|
9025
9093
|
export type CaseAddCaseParams = {
|
|
9026
9094
|
/**
|
|
9027
9095
|
* Indicates whether an automatic message is sent that the ticket has been created.
|
|
@@ -9043,11 +9111,48 @@ export type ArticleGetAllArticlesParams = {
|
|
|
9043
9111
|
q?: string | null;
|
|
9044
9112
|
};
|
|
9045
9113
|
|
|
9114
|
+
export type ArticleGetAllArticles200 = {
|
|
9115
|
+
metadata?: CollectionMetadata;
|
|
9116
|
+
items?: Article[];
|
|
9117
|
+
};
|
|
9118
|
+
|
|
9046
9119
|
/**
|
|
9047
9120
|
* @nullable
|
|
9048
9121
|
*/
|
|
9049
9122
|
export type ArticleAddArticleBody = Article | null;
|
|
9050
9123
|
|
|
9124
|
+
export type CategoryGetAllCategoriesParams = {
|
|
9125
|
+
/**
|
|
9126
|
+
* Maximum number of records per page.
|
|
9127
|
+
*/
|
|
9128
|
+
limit?: LimitParameter;
|
|
9129
|
+
/**
|
|
9130
|
+
* Zero-based page index.
|
|
9131
|
+
*/
|
|
9132
|
+
offset?: OffsetParameter;
|
|
9133
|
+
};
|
|
9134
|
+
|
|
9135
|
+
export type CategoryGetAllCategories200 = {
|
|
9136
|
+
metadata?: CollectionMetadata;
|
|
9137
|
+
items?: Category[];
|
|
9138
|
+
};
|
|
9139
|
+
|
|
9140
|
+
export type DripCampaignGetAllDripCampaignsParams = {
|
|
9141
|
+
/**
|
|
9142
|
+
* Maximum number of records per page.
|
|
9143
|
+
*/
|
|
9144
|
+
limit?: LimitParameter;
|
|
9145
|
+
/**
|
|
9146
|
+
* Zero-based page index.
|
|
9147
|
+
*/
|
|
9148
|
+
offset?: OffsetParameter;
|
|
9149
|
+
};
|
|
9150
|
+
|
|
9151
|
+
export type DripCampaignGetAllDripCampaigns200 = {
|
|
9152
|
+
metadata?: CollectionMetadata;
|
|
9153
|
+
items?: DripCampaign[];
|
|
9154
|
+
};
|
|
9155
|
+
|
|
9051
9156
|
/**
|
|
9052
9157
|
* @nullable
|
|
9053
9158
|
*/
|
|
@@ -9073,6 +9178,22 @@ export type DripCampaignUpdateDripCampaignMessageBody = DripCampaignMessage | nu
|
|
|
9073
9178
|
*/
|
|
9074
9179
|
export type DripCampaignSendTestCampaignEmailBody = SendTestEmailRequest | null;
|
|
9075
9180
|
|
|
9181
|
+
export type CampaignGetAllBroadcastEmailsParams = {
|
|
9182
|
+
/**
|
|
9183
|
+
* Maximum number of records per page.
|
|
9184
|
+
*/
|
|
9185
|
+
limit?: LimitParameter;
|
|
9186
|
+
/**
|
|
9187
|
+
* Zero-based page index.
|
|
9188
|
+
*/
|
|
9189
|
+
offset?: OffsetParameter;
|
|
9190
|
+
};
|
|
9191
|
+
|
|
9192
|
+
export type CampaignGetAllBroadcastEmails200 = {
|
|
9193
|
+
metadata?: CollectionMetadata;
|
|
9194
|
+
items?: BroadcastCampaign[];
|
|
9195
|
+
};
|
|
9196
|
+
|
|
9076
9197
|
/**
|
|
9077
9198
|
* @nullable
|
|
9078
9199
|
*/
|
|
@@ -9096,6 +9217,11 @@ export type EmailListGetAllSubscriptionsParams = {
|
|
|
9096
9217
|
q?: string | null;
|
|
9097
9218
|
};
|
|
9098
9219
|
|
|
9220
|
+
export type EmailListGetAllSubscriptions200 = {
|
|
9221
|
+
metadata?: CollectionMetadata;
|
|
9222
|
+
items?: EmailListPerson[];
|
|
9223
|
+
};
|
|
9224
|
+
|
|
9099
9225
|
/**
|
|
9100
9226
|
* @nullable
|
|
9101
9227
|
*/
|
|
@@ -9114,6 +9240,11 @@ ownerUid?: string | null;
|
|
|
9114
9240
|
q?: string | null;
|
|
9115
9241
|
};
|
|
9116
9242
|
|
|
9243
|
+
export type DealGetAllDeals200 = {
|
|
9244
|
+
metadata?: CollectionMetadata;
|
|
9245
|
+
items?: Deal[];
|
|
9246
|
+
};
|
|
9247
|
+
|
|
9117
9248
|
/**
|
|
9118
9249
|
* @nullable
|
|
9119
9250
|
*/
|
|
@@ -9137,6 +9268,11 @@ segmentUid?: string | null;
|
|
|
9137
9268
|
q?: string | null;
|
|
9138
9269
|
};
|
|
9139
9270
|
|
|
9271
|
+
export type AccountGetAllAccounts200 = {
|
|
9272
|
+
metadata?: CollectionMetadata;
|
|
9273
|
+
items?: Account[];
|
|
9274
|
+
};
|
|
9275
|
+
|
|
9140
9276
|
export type AccountAddAccountParams = {
|
|
9141
9277
|
isImported?: boolean;
|
|
9142
9278
|
};
|
|
@@ -9179,6 +9315,11 @@ export type PersonGetAllPeopleParams = {
|
|
|
9179
9315
|
q?: string | null;
|
|
9180
9316
|
};
|
|
9181
9317
|
|
|
9318
|
+
export type PersonGetAllPeople200 = {
|
|
9319
|
+
metadata?: CollectionMetadata;
|
|
9320
|
+
items?: Person[];
|
|
9321
|
+
};
|
|
9322
|
+
|
|
9182
9323
|
/**
|
|
9183
9324
|
* @nullable
|
|
9184
9325
|
*/
|
|
@@ -9224,6 +9365,11 @@ q?: string | null;
|
|
|
9224
9365
|
planUid?: string | null;
|
|
9225
9366
|
};
|
|
9226
9367
|
|
|
9368
|
+
export type DiscountCouponGetAllDiscountCoupons200 = {
|
|
9369
|
+
metadata?: CollectionMetadata;
|
|
9370
|
+
items?: DiscountCoupon[];
|
|
9371
|
+
};
|
|
9372
|
+
|
|
9227
9373
|
/**
|
|
9228
9374
|
* @nullable
|
|
9229
9375
|
*/
|
|
@@ -9247,11 +9393,32 @@ q?: string | null;
|
|
|
9247
9393
|
isActive?: boolean | null;
|
|
9248
9394
|
};
|
|
9249
9395
|
|
|
9396
|
+
export type DiscountCouponGetDiscountCouponRedemptions200 = {
|
|
9397
|
+
metadata?: CollectionMetadata;
|
|
9398
|
+
items?: DiscountCouponSubscription[];
|
|
9399
|
+
};
|
|
9400
|
+
|
|
9250
9401
|
/**
|
|
9251
9402
|
* @nullable
|
|
9252
9403
|
*/
|
|
9253
9404
|
export type UsageAddUsageBody = Usage | null;
|
|
9254
9405
|
|
|
9406
|
+
export type TransactionsGetAllTransactionsByAccountIdParams = {
|
|
9407
|
+
/**
|
|
9408
|
+
* Maximum number of records per page.
|
|
9409
|
+
*/
|
|
9410
|
+
limit?: LimitParameter;
|
|
9411
|
+
/**
|
|
9412
|
+
* Zero-based page index.
|
|
9413
|
+
*/
|
|
9414
|
+
offset?: OffsetParameter;
|
|
9415
|
+
};
|
|
9416
|
+
|
|
9417
|
+
export type TransactionsGetAllTransactionsByAccountId200 = {
|
|
9418
|
+
metadata?: CollectionMetadata;
|
|
9419
|
+
items?: Transaction[];
|
|
9420
|
+
};
|
|
9421
|
+
|
|
9255
9422
|
/**
|
|
9256
9423
|
* @nullable
|
|
9257
9424
|
*/
|
|
@@ -9270,6 +9437,11 @@ export type SubscriptionAddOnGetAllSubscriptionsAddOnsParams = {
|
|
|
9270
9437
|
status?: string | null;
|
|
9271
9438
|
};
|
|
9272
9439
|
|
|
9440
|
+
export type SubscriptionAddOnGetAllSubscriptionsAddOns200 = {
|
|
9441
|
+
metadata?: CollectionMetadata;
|
|
9442
|
+
items?: SubscriptionAddOn[];
|
|
9443
|
+
};
|
|
9444
|
+
|
|
9273
9445
|
/**
|
|
9274
9446
|
* @nullable
|
|
9275
9447
|
*/
|
|
@@ -9285,6 +9457,26 @@ export type SubscriptionAddOnAddSubscriptionAddOnPreviewBody = SubscriptionAddOn
|
|
|
9285
9457
|
*/
|
|
9286
9458
|
export type SubscriptionAddOnSetAddOnUpgradeRequiredBody = SubscriptionAddOn | null;
|
|
9287
9459
|
|
|
9460
|
+
export type InvoiceGetAllInvoicesParams = {
|
|
9461
|
+
/**
|
|
9462
|
+
* Maximum number of records per page.
|
|
9463
|
+
*/
|
|
9464
|
+
limit?: LimitParameter;
|
|
9465
|
+
/**
|
|
9466
|
+
* Zero-based page index.
|
|
9467
|
+
*/
|
|
9468
|
+
offset?: OffsetParameter;
|
|
9469
|
+
/**
|
|
9470
|
+
* The invoice Uid to omit from the result set.
|
|
9471
|
+
*/
|
|
9472
|
+
excludeInvoiceUid?: string;
|
|
9473
|
+
};
|
|
9474
|
+
|
|
9475
|
+
export type InvoiceGetAllInvoices200 = {
|
|
9476
|
+
metadata?: CollectionMetadata;
|
|
9477
|
+
items?: Invoice[];
|
|
9478
|
+
};
|
|
9479
|
+
|
|
9288
9480
|
/**
|
|
9289
9481
|
* @nullable
|
|
9290
9482
|
*/
|
|
@@ -9308,6 +9500,11 @@ current?: string | null;
|
|
|
9308
9500
|
status?: string | null;
|
|
9309
9501
|
};
|
|
9310
9502
|
|
|
9503
|
+
export type SubscriptionGetAllSubscriptions200 = {
|
|
9504
|
+
metadata?: CollectionMetadata;
|
|
9505
|
+
items?: Subscription[];
|
|
9506
|
+
};
|
|
9507
|
+
|
|
9311
9508
|
/**
|
|
9312
9509
|
* @nullable
|
|
9313
9510
|
*/
|
|
@@ -9357,6 +9554,22 @@ startImmediately?: string | null;
|
|
|
9357
9554
|
*/
|
|
9358
9555
|
export type SubscriptionChangeSubscriptionBody = Subscription | null;
|
|
9359
9556
|
|
|
9557
|
+
export type PlanGetAllPlansParams = {
|
|
9558
|
+
/**
|
|
9559
|
+
* Maximum number of records per page.
|
|
9560
|
+
*/
|
|
9561
|
+
limit?: LimitParameter;
|
|
9562
|
+
/**
|
|
9563
|
+
* Zero-based page index.
|
|
9564
|
+
*/
|
|
9565
|
+
offset?: OffsetParameter;
|
|
9566
|
+
};
|
|
9567
|
+
|
|
9568
|
+
export type PlanGetAllPlans200 = {
|
|
9569
|
+
metadata?: CollectionMetadata;
|
|
9570
|
+
items?: Plan[];
|
|
9571
|
+
};
|
|
9572
|
+
|
|
9360
9573
|
/**
|
|
9361
9574
|
* @nullable
|
|
9362
9575
|
*/
|
|
@@ -9367,6 +9580,22 @@ export type PlanAddPlanBody = Plan | null;
|
|
|
9367
9580
|
*/
|
|
9368
9581
|
export type PlanUpdatePlanBody = Plan | null;
|
|
9369
9582
|
|
|
9583
|
+
export type PlanFamilyGetAllPlanFamiliesParams = {
|
|
9584
|
+
/**
|
|
9585
|
+
* Maximum number of records per page.
|
|
9586
|
+
*/
|
|
9587
|
+
limit?: LimitParameter;
|
|
9588
|
+
/**
|
|
9589
|
+
* Zero-based page index.
|
|
9590
|
+
*/
|
|
9591
|
+
offset?: OffsetParameter;
|
|
9592
|
+
};
|
|
9593
|
+
|
|
9594
|
+
export type PlanFamilyGetAllPlanFamilies200 = {
|
|
9595
|
+
metadata?: CollectionMetadata;
|
|
9596
|
+
items?: PlanFamily[];
|
|
9597
|
+
};
|
|
9598
|
+
|
|
9370
9599
|
/**
|
|
9371
9600
|
* @nullable
|
|
9372
9601
|
*/
|
|
@@ -9396,6 +9625,11 @@ EntityType?: string | null;
|
|
|
9396
9625
|
EntityUid?: string | null;
|
|
9397
9626
|
};
|
|
9398
9627
|
|
|
9628
|
+
export type ActivityGetAll200 = {
|
|
9629
|
+
metadata?: CollectionMetadata;
|
|
9630
|
+
items?: Activity[];
|
|
9631
|
+
};
|
|
9632
|
+
|
|
9399
9633
|
/**
|
|
9400
9634
|
* @nullable
|
|
9401
9635
|
*/
|
|
@@ -16,13 +16,16 @@ import type {
|
|
|
16
16
|
import type {
|
|
17
17
|
Article,
|
|
18
18
|
ArticleAddArticleBody,
|
|
19
|
+
ArticleGetAllArticles200,
|
|
19
20
|
ArticleGetAllArticlesParams,
|
|
20
21
|
Case,
|
|
21
22
|
CaseAddCaseBody,
|
|
22
23
|
CaseAddCaseParams,
|
|
24
|
+
CaseGetAllCases200,
|
|
23
25
|
CaseGetAllCasesParams,
|
|
24
26
|
CaseHistory,
|
|
25
|
-
|
|
27
|
+
CategoryGetAllCategories200,
|
|
28
|
+
CategoryGetAllCategoriesParams
|
|
26
29
|
} from '../outsetaAPI.schemas';
|
|
27
30
|
|
|
28
31
|
import { customFetch } from '../../mutator';
|
|
@@ -71,7 +74,7 @@ export const caseGetAllCases = (
|
|
|
71
74
|
) => {
|
|
72
75
|
|
|
73
76
|
|
|
74
|
-
return customFetch<
|
|
77
|
+
return customFetch<CaseGetAllCases200>(
|
|
75
78
|
{url: `/api/v1/support/cases`, method: 'GET',
|
|
76
79
|
params, signal
|
|
77
80
|
},
|
|
@@ -400,7 +403,7 @@ export const articleGetAllArticles = (
|
|
|
400
403
|
) => {
|
|
401
404
|
|
|
402
405
|
|
|
403
|
-
return customFetch<
|
|
406
|
+
return customFetch<ArticleGetAllArticles200>(
|
|
404
407
|
{url: `/api/v1/support/articles`, method: 'GET',
|
|
405
408
|
params, signal
|
|
406
409
|
},
|
|
@@ -596,13 +599,14 @@ export function useArticleGetArticle<TData = Awaited<ReturnType<typeof articleGe
|
|
|
596
599
|
* @summary Retrieve all knowledge base categories.
|
|
597
600
|
*/
|
|
598
601
|
export const categoryGetAllCategories = (
|
|
599
|
-
|
|
602
|
+
params?: CategoryGetAllCategoriesParams,
|
|
600
603
|
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
|
601
604
|
) => {
|
|
602
605
|
|
|
603
606
|
|
|
604
|
-
return customFetch<
|
|
605
|
-
{url: `/api/v1/support/categories`, method: 'GET',
|
|
607
|
+
return customFetch<CategoryGetAllCategories200>(
|
|
608
|
+
{url: `/api/v1/support/categories`, method: 'GET',
|
|
609
|
+
params, signal
|
|
606
610
|
},
|
|
607
611
|
options);
|
|
608
612
|
}
|
|
@@ -610,23 +614,23 @@ export const categoryGetAllCategories = (
|
|
|
610
614
|
|
|
611
615
|
|
|
612
616
|
|
|
613
|
-
export const getCategoryGetAllCategoriesQueryKey = () => {
|
|
617
|
+
export const getCategoryGetAllCategoriesQueryKey = (params?: CategoryGetAllCategoriesParams,) => {
|
|
614
618
|
return [
|
|
615
|
-
`/api/v1/support/categories
|
|
619
|
+
`/api/v1/support/categories`, ...(params ? [params]: [])
|
|
616
620
|
] as const;
|
|
617
621
|
}
|
|
618
622
|
|
|
619
623
|
|
|
620
|
-
export const getCategoryGetAllCategoriesQueryOptions = <TData = Awaited<ReturnType<typeof categoryGetAllCategories>>, TError = unknown>( options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof categoryGetAllCategories>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
624
|
+
export const getCategoryGetAllCategoriesQueryOptions = <TData = Awaited<ReturnType<typeof categoryGetAllCategories>>, TError = unknown>(params?: CategoryGetAllCategoriesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof categoryGetAllCategories>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
621
625
|
) => {
|
|
622
626
|
|
|
623
627
|
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
624
628
|
|
|
625
|
-
const queryKey = queryOptions?.queryKey ?? getCategoryGetAllCategoriesQueryKey();
|
|
629
|
+
const queryKey = queryOptions?.queryKey ?? getCategoryGetAllCategoriesQueryKey(params);
|
|
626
630
|
|
|
627
631
|
|
|
628
632
|
|
|
629
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof categoryGetAllCategories>>> = ({ signal }) => categoryGetAllCategories(requestOptions, signal);
|
|
633
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof categoryGetAllCategories>>> = ({ signal }) => categoryGetAllCategories(params, requestOptions, signal);
|
|
630
634
|
|
|
631
635
|
|
|
632
636
|
|
|
@@ -644,11 +648,11 @@ export type CategoryGetAllCategoriesQueryError = unknown
|
|
|
644
648
|
*/
|
|
645
649
|
|
|
646
650
|
export function useCategoryGetAllCategories<TData = Awaited<ReturnType<typeof categoryGetAllCategories>>, TError = unknown>(
|
|
647
|
-
|
|
651
|
+
params?: CategoryGetAllCategoriesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof categoryGetAllCategories>>, TError, TData>, request?: SecondParameter<typeof customFetch>}
|
|
648
652
|
|
|
649
653
|
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
650
654
|
|
|
651
|
-
const queryOptions = getCategoryGetAllCategoriesQueryOptions(options)
|
|
655
|
+
const queryOptions = getCategoryGetAllCategoriesQueryOptions(params,options)
|
|
652
656
|
|
|
653
657
|
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
654
658
|
|