@connectedxm/admin 3.3.8 → 3.3.9
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.cjs +10 -26
- package/dist/index.d.cts +48 -14
- package/dist/index.d.ts +48 -14
- package/dist/index.js +10 -26
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18675,36 +18675,28 @@ var useGetTaxIntegration = (type = "", options = {}) => {
|
|
|
18675
18675
|
};
|
|
18676
18676
|
|
|
18677
18677
|
// src/queries/organization/tax/useGetEntityUseCodes.ts
|
|
18678
|
-
var ENTITY_USE_CODES_QUERY_KEY = (type
|
|
18678
|
+
var ENTITY_USE_CODES_QUERY_KEY = (type) => [
|
|
18679
18679
|
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18680
|
-
"ENTITY_USE_CODES"
|
|
18681
|
-
search
|
|
18680
|
+
"ENTITY_USE_CODES"
|
|
18682
18681
|
];
|
|
18683
18682
|
var SET_ENTITY_USE_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
18684
18683
|
client.setQueryData(ENTITY_USE_CODES_QUERY_KEY(...keyParams), response);
|
|
18685
18684
|
};
|
|
18686
18685
|
var GetEntityUseCodes = async ({
|
|
18687
18686
|
type,
|
|
18688
|
-
search,
|
|
18689
18687
|
adminApiParams
|
|
18690
18688
|
}) => {
|
|
18691
18689
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18692
18690
|
const { data } = await adminApi.get(
|
|
18693
|
-
`/organization/tax/${type}/entity-use-codes
|
|
18694
|
-
{
|
|
18695
|
-
params: {
|
|
18696
|
-
search
|
|
18697
|
-
}
|
|
18698
|
-
}
|
|
18691
|
+
`/organization/tax/${type}/entity-use-codes`
|
|
18699
18692
|
);
|
|
18700
18693
|
return data;
|
|
18701
18694
|
};
|
|
18702
|
-
var useGetEntityUseCodes = (type = "",
|
|
18695
|
+
var useGetEntityUseCodes = (type = "", options = {}) => {
|
|
18703
18696
|
return useConnectedSingleQuery(
|
|
18704
|
-
ENTITY_USE_CODES_QUERY_KEY(type
|
|
18697
|
+
ENTITY_USE_CODES_QUERY_KEY(type),
|
|
18705
18698
|
(params) => GetEntityUseCodes({
|
|
18706
18699
|
type,
|
|
18707
|
-
search,
|
|
18708
18700
|
...params
|
|
18709
18701
|
}),
|
|
18710
18702
|
{
|
|
@@ -18716,36 +18708,28 @@ var useGetEntityUseCodes = (type = "", search, options = {}) => {
|
|
|
18716
18708
|
};
|
|
18717
18709
|
|
|
18718
18710
|
// src/queries/organization/tax/useGetTaxCodes.ts
|
|
18719
|
-
var TAX_CODES_QUERY_KEY = (type
|
|
18711
|
+
var TAX_CODES_QUERY_KEY = (type) => [
|
|
18720
18712
|
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
18721
|
-
"TAX_CODES"
|
|
18722
|
-
search
|
|
18713
|
+
"TAX_CODES"
|
|
18723
18714
|
];
|
|
18724
18715
|
var SET_TAX_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
18725
18716
|
client.setQueryData(TAX_CODES_QUERY_KEY(...keyParams), response);
|
|
18726
18717
|
};
|
|
18727
18718
|
var GetTaxCodes = async ({
|
|
18728
18719
|
type,
|
|
18729
|
-
search,
|
|
18730
18720
|
adminApiParams
|
|
18731
18721
|
}) => {
|
|
18732
18722
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
18733
18723
|
const { data } = await adminApi.get(
|
|
18734
|
-
`/organization/tax/${type}/tax-codes
|
|
18735
|
-
{
|
|
18736
|
-
params: {
|
|
18737
|
-
search
|
|
18738
|
-
}
|
|
18739
|
-
}
|
|
18724
|
+
`/organization/tax/${type}/tax-codes`
|
|
18740
18725
|
);
|
|
18741
18726
|
return data;
|
|
18742
18727
|
};
|
|
18743
|
-
var useGetTaxCodes = (type = "",
|
|
18728
|
+
var useGetTaxCodes = (type = "", options = {}) => {
|
|
18744
18729
|
return useConnectedSingleQuery(
|
|
18745
|
-
TAX_CODES_QUERY_KEY(type
|
|
18730
|
+
TAX_CODES_QUERY_KEY(type),
|
|
18746
18731
|
(params) => GetTaxCodes({
|
|
18747
18732
|
type,
|
|
18748
|
-
search,
|
|
18749
18733
|
...params
|
|
18750
18734
|
}),
|
|
18751
18735
|
{
|
package/dist/index.d.cts
CHANGED
|
@@ -753,6 +753,8 @@ interface BaseEventAddOn {
|
|
|
753
753
|
imageId: string | null;
|
|
754
754
|
image: BaseImage | null;
|
|
755
755
|
eventId: string | null;
|
|
756
|
+
taxCode: string | null;
|
|
757
|
+
taxIncluded: boolean;
|
|
756
758
|
createdAt: string;
|
|
757
759
|
updatedAt: string;
|
|
758
760
|
}
|
|
@@ -1285,6 +1287,8 @@ interface BaseInvoiceLineItem {
|
|
|
1285
1287
|
description: string;
|
|
1286
1288
|
quantity: number;
|
|
1287
1289
|
amount: number;
|
|
1290
|
+
taxCode: string | null;
|
|
1291
|
+
taxIncluded: boolean;
|
|
1288
1292
|
createdAt: string;
|
|
1289
1293
|
updatedAt: string;
|
|
1290
1294
|
}
|
|
@@ -1306,7 +1310,6 @@ interface BaseInvoice {
|
|
|
1306
1310
|
status: InvoiceStatus;
|
|
1307
1311
|
title: string;
|
|
1308
1312
|
notes: string | null;
|
|
1309
|
-
taxable: boolean;
|
|
1310
1313
|
}
|
|
1311
1314
|
interface Invoice extends BaseInvoice {
|
|
1312
1315
|
lineItems: BaseInvoiceLineItem;
|
|
@@ -1684,8 +1687,9 @@ interface BasePaymentLineItem {
|
|
|
1684
1687
|
refunded: number;
|
|
1685
1688
|
discount: number;
|
|
1686
1689
|
deferred: number;
|
|
1687
|
-
taxable: boolean;
|
|
1688
1690
|
paymentId: number;
|
|
1691
|
+
taxCode: string | null;
|
|
1692
|
+
taxIncluded: boolean;
|
|
1689
1693
|
passId: string | null;
|
|
1690
1694
|
packageId: string | null;
|
|
1691
1695
|
passAddOnId: string | null;
|
|
@@ -1706,8 +1710,6 @@ interface PaymentLineItem extends BasePaymentLineItem {
|
|
|
1706
1710
|
subscription: BaseSubscription | null;
|
|
1707
1711
|
coupon: BaseCoupon | null;
|
|
1708
1712
|
payment: BasePayment;
|
|
1709
|
-
taxable: boolean;
|
|
1710
|
-
taxCode?: string | null;
|
|
1711
1713
|
}
|
|
1712
1714
|
interface PaymentIntegration {
|
|
1713
1715
|
id: string;
|
|
@@ -2089,6 +2091,8 @@ interface BaseEventSession {
|
|
|
2089
2091
|
registrationEnabled: boolean;
|
|
2090
2092
|
price: number | null;
|
|
2091
2093
|
limit: number | null;
|
|
2094
|
+
taxCode: string | null;
|
|
2095
|
+
taxIncluded: boolean;
|
|
2092
2096
|
createdAt: string;
|
|
2093
2097
|
updatedAt: string;
|
|
2094
2098
|
}
|
|
@@ -2591,6 +2595,8 @@ interface BaseEventPassType {
|
|
|
2591
2595
|
maxQuantityPerSale: number;
|
|
2592
2596
|
emailDomains: string | null;
|
|
2593
2597
|
requireCoupon: boolean;
|
|
2598
|
+
taxCode: string | null;
|
|
2599
|
+
taxIncluded: boolean;
|
|
2594
2600
|
createdAt: string;
|
|
2595
2601
|
updatedAt: string;
|
|
2596
2602
|
}
|
|
@@ -2962,6 +2968,8 @@ interface BaseEventRoomType {
|
|
|
2962
2968
|
image: BaseImage | null;
|
|
2963
2969
|
passTypes: BaseEventRoomTypePassTypeDetails[];
|
|
2964
2970
|
addOns: BaseEventRoomTypeAddOnDetails[];
|
|
2971
|
+
taxCode: string | null;
|
|
2972
|
+
taxIncluded: boolean;
|
|
2965
2973
|
}
|
|
2966
2974
|
interface EventRoomType extends BaseEventRoomType {
|
|
2967
2975
|
sortOrder: number;
|
|
@@ -3133,6 +3141,8 @@ interface BaseBookingSpace {
|
|
|
3133
3141
|
end: string | null;
|
|
3134
3142
|
sortOrder: number;
|
|
3135
3143
|
visible: boolean;
|
|
3144
|
+
taxCode: string | null;
|
|
3145
|
+
taxIncluded: boolean;
|
|
3136
3146
|
}
|
|
3137
3147
|
interface BookingSpace extends BaseBookingSpace {
|
|
3138
3148
|
confirmationBody: string | null;
|
|
@@ -4116,6 +4126,8 @@ interface EventAddOnCreateInputs {
|
|
|
4116
4126
|
supply?: number | string | null;
|
|
4117
4127
|
sortOrder?: number | string | null;
|
|
4118
4128
|
imageId?: string | null;
|
|
4129
|
+
taxCode?: string | null;
|
|
4130
|
+
taxIncluded?: boolean;
|
|
4119
4131
|
}
|
|
4120
4132
|
interface EventAddOnTranslationUpdateInputs {
|
|
4121
4133
|
name?: string | null;
|
|
@@ -4131,6 +4143,8 @@ interface EventAddOnUpdateInputs {
|
|
|
4131
4143
|
supply?: number | string | null;
|
|
4132
4144
|
sortOrder?: number | string | null;
|
|
4133
4145
|
imageId?: string | null;
|
|
4146
|
+
taxCode?: string | null;
|
|
4147
|
+
taxIncluded?: boolean;
|
|
4134
4148
|
}
|
|
4135
4149
|
interface EventBadgeFieldUpdateInputs {
|
|
4136
4150
|
type?: keyof typeof BadgeFieldType | null;
|
|
@@ -4344,6 +4358,8 @@ interface EventSessionCreateInputs {
|
|
|
4344
4358
|
locationId?: string | null;
|
|
4345
4359
|
roundName?: string | null;
|
|
4346
4360
|
matchName?: string | null;
|
|
4361
|
+
taxCode?: string | null;
|
|
4362
|
+
taxIncluded?: boolean;
|
|
4347
4363
|
}
|
|
4348
4364
|
interface EventSessionAccessUpdateInputs {
|
|
4349
4365
|
status?: PurchaseStatus;
|
|
@@ -4374,6 +4390,8 @@ interface EventSessionUpdateInputs {
|
|
|
4374
4390
|
locationId?: string | null;
|
|
4375
4391
|
roundName?: string | null;
|
|
4376
4392
|
matchName?: string | null;
|
|
4393
|
+
taxCode?: string | null;
|
|
4394
|
+
taxIncluded?: boolean;
|
|
4377
4395
|
}
|
|
4378
4396
|
interface EventSessionLocationCreateInputs {
|
|
4379
4397
|
name: string;
|
|
@@ -4699,19 +4717,22 @@ interface InvoiceCreateInputs {
|
|
|
4699
4717
|
notes?: string | null;
|
|
4700
4718
|
accountId?: string | null;
|
|
4701
4719
|
eventId?: string | null;
|
|
4702
|
-
taxable?: boolean;
|
|
4703
4720
|
}
|
|
4704
4721
|
interface InvoiceLineItemCreateInputs {
|
|
4705
4722
|
name: string;
|
|
4706
4723
|
description: string;
|
|
4707
4724
|
quantity: string | number;
|
|
4708
4725
|
amount: string;
|
|
4726
|
+
taxCode?: string | null;
|
|
4727
|
+
taxIncluded?: boolean;
|
|
4709
4728
|
}
|
|
4710
4729
|
interface InvoiceLineItemUpdateInputs {
|
|
4711
4730
|
name?: string | null;
|
|
4712
4731
|
description?: string | null;
|
|
4713
4732
|
quantity?: string | number | null;
|
|
4714
4733
|
amount?: number | null;
|
|
4734
|
+
taxCode?: string | null;
|
|
4735
|
+
taxIncluded?: boolean;
|
|
4715
4736
|
}
|
|
4716
4737
|
interface InvoiceUpdateInputs {
|
|
4717
4738
|
title?: string | null;
|
|
@@ -4720,7 +4741,6 @@ interface InvoiceUpdateInputs {
|
|
|
4720
4741
|
notes?: string | null;
|
|
4721
4742
|
accountId?: string | null;
|
|
4722
4743
|
eventId?: string | null;
|
|
4723
|
-
taxable?: boolean;
|
|
4724
4744
|
}
|
|
4725
4745
|
interface LeadCreateInputs {
|
|
4726
4746
|
status?: LeadStatus;
|
|
@@ -5161,6 +5181,8 @@ interface PassTypeCreateInputs {
|
|
|
5161
5181
|
enableCoupons?: boolean;
|
|
5162
5182
|
overrideStartDate?: string | null;
|
|
5163
5183
|
requireCoupon?: boolean;
|
|
5184
|
+
taxCode?: string | null;
|
|
5185
|
+
taxIncluded?: boolean;
|
|
5164
5186
|
}
|
|
5165
5187
|
interface PassTypeUpdateInputs {
|
|
5166
5188
|
visibility?: keyof typeof PassTypeVisibility | null;
|
|
@@ -5184,6 +5206,8 @@ interface PassTypeUpdateInputs {
|
|
|
5184
5206
|
enableCoupons?: boolean;
|
|
5185
5207
|
overrideStartDate?: string | null;
|
|
5186
5208
|
requireCoupon?: boolean;
|
|
5209
|
+
taxCode?: string | null;
|
|
5210
|
+
taxIncluded?: boolean;
|
|
5187
5211
|
}
|
|
5188
5212
|
interface TierCreateInputs {
|
|
5189
5213
|
name: string;
|
|
@@ -5304,6 +5328,8 @@ interface EventRoomTypeCreateInputs {
|
|
|
5304
5328
|
defaultEnd?: string | null;
|
|
5305
5329
|
maxEnd?: string | null;
|
|
5306
5330
|
imageId?: string | null;
|
|
5331
|
+
taxCode?: string | null;
|
|
5332
|
+
taxIncluded?: boolean;
|
|
5307
5333
|
}
|
|
5308
5334
|
interface EventRoomTypeUpdateInputs {
|
|
5309
5335
|
name?: string;
|
|
@@ -5321,6 +5347,8 @@ interface EventRoomTypeUpdateInputs {
|
|
|
5321
5347
|
defaultEnd?: string | null;
|
|
5322
5348
|
maxEnd?: string | null;
|
|
5323
5349
|
imageId?: string | null;
|
|
5350
|
+
taxCode?: string | null;
|
|
5351
|
+
taxIncluded?: boolean;
|
|
5324
5352
|
}
|
|
5325
5353
|
interface EventRoomTypeTranslationUpdateInputs {
|
|
5326
5354
|
name?: string | null;
|
|
@@ -5473,6 +5501,8 @@ interface BookingSpaceCreateInputs {
|
|
|
5473
5501
|
visible?: boolean;
|
|
5474
5502
|
confirmationBody?: string | null;
|
|
5475
5503
|
confirmationReplyTo?: string | null;
|
|
5504
|
+
taxCode?: string | null;
|
|
5505
|
+
taxIncluded?: boolean;
|
|
5476
5506
|
}
|
|
5477
5507
|
interface BookingSpaceUpdateInputs {
|
|
5478
5508
|
name?: string;
|
|
@@ -5486,6 +5516,8 @@ interface BookingSpaceUpdateInputs {
|
|
|
5486
5516
|
visible?: boolean;
|
|
5487
5517
|
confirmationBody?: string | null;
|
|
5488
5518
|
confirmationReplyTo?: string | null;
|
|
5519
|
+
taxCode?: string | null;
|
|
5520
|
+
taxIncluded?: boolean;
|
|
5489
5521
|
}
|
|
5490
5522
|
interface BookingSpaceTranslationUpdateInputs {
|
|
5491
5523
|
name?: string | null;
|
|
@@ -5657,6 +5689,8 @@ interface EventPackageCreateInputs {
|
|
|
5657
5689
|
isActive?: boolean;
|
|
5658
5690
|
imageId?: string | null;
|
|
5659
5691
|
sortOrder?: number | string | null;
|
|
5692
|
+
taxCode?: string | null;
|
|
5693
|
+
taxIncluded?: boolean;
|
|
5660
5694
|
}
|
|
5661
5695
|
interface EventPackageUpdateInputs {
|
|
5662
5696
|
name?: string;
|
|
@@ -5665,6 +5699,8 @@ interface EventPackageUpdateInputs {
|
|
|
5665
5699
|
isActive?: boolean;
|
|
5666
5700
|
imageId?: string | null;
|
|
5667
5701
|
sortOrder?: number | string | null;
|
|
5702
|
+
taxCode?: string | null;
|
|
5703
|
+
taxIncluded?: boolean;
|
|
5668
5704
|
}
|
|
5669
5705
|
interface EventPackagePassCreateInputs {
|
|
5670
5706
|
passTypeId: string;
|
|
@@ -14756,7 +14792,7 @@ declare const useGetOrganizationSideEffects: (params?: Omit<GetOrganizationSideE
|
|
|
14756
14792
|
* @category Keys
|
|
14757
14793
|
* @group Tax Integrations
|
|
14758
14794
|
*/
|
|
14759
|
-
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string
|
|
14795
|
+
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string) => string[];
|
|
14760
14796
|
/**
|
|
14761
14797
|
* @category Setters
|
|
14762
14798
|
* @group Tax Integrations
|
|
@@ -14764,24 +14800,23 @@ declare const ENTITY_USE_CODES_QUERY_KEY: (type: string, search?: string) => (st
|
|
|
14764
14800
|
declare const SET_ENTITY_USE_CODES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof ENTITY_USE_CODES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEntityUseCodes>>) => void;
|
|
14765
14801
|
interface GetEntityUseCodesProps extends SingleQueryParams {
|
|
14766
14802
|
type: string;
|
|
14767
|
-
search?: string;
|
|
14768
14803
|
}
|
|
14769
14804
|
/**
|
|
14770
14805
|
* @category Queries
|
|
14771
14806
|
* @group Tax Integrations
|
|
14772
14807
|
*/
|
|
14773
|
-
declare const GetEntityUseCodes: ({ type,
|
|
14808
|
+
declare const GetEntityUseCodes: ({ type, adminApiParams, }: GetEntityUseCodesProps) => Promise<ConnectedXMResponse<any[]>>;
|
|
14774
14809
|
/**
|
|
14775
14810
|
* @category Hooks
|
|
14776
14811
|
* @group Tax Integrations
|
|
14777
14812
|
*/
|
|
14778
|
-
declare const useGetEntityUseCodes: (type?: string,
|
|
14813
|
+
declare const useGetEntityUseCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetEntityUseCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<any[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14779
14814
|
|
|
14780
14815
|
/**
|
|
14781
14816
|
* @category Keys
|
|
14782
14817
|
* @group Tax Integrations
|
|
14783
14818
|
*/
|
|
14784
|
-
declare const TAX_CODES_QUERY_KEY: (type: string
|
|
14819
|
+
declare const TAX_CODES_QUERY_KEY: (type: string) => string[];
|
|
14785
14820
|
/**
|
|
14786
14821
|
* @category Setters
|
|
14787
14822
|
* @group Tax Integrations
|
|
@@ -14789,18 +14824,17 @@ declare const TAX_CODES_QUERY_KEY: (type: string, search?: string) => (string |
|
|
|
14789
14824
|
declare const SET_TAX_CODES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof TAX_CODES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetTaxCodes>>) => void;
|
|
14790
14825
|
interface GetTaxCodesProps extends SingleQueryParams {
|
|
14791
14826
|
type: string;
|
|
14792
|
-
search?: string;
|
|
14793
14827
|
}
|
|
14794
14828
|
/**
|
|
14795
14829
|
* @category Queries
|
|
14796
14830
|
* @group Tax Integrations
|
|
14797
14831
|
*/
|
|
14798
|
-
declare const GetTaxCodes: ({ type,
|
|
14832
|
+
declare const GetTaxCodes: ({ type, adminApiParams, }: GetTaxCodesProps) => Promise<ConnectedXMResponse<TaxCode[]>>;
|
|
14799
14833
|
/**
|
|
14800
14834
|
* @category Hooks
|
|
14801
14835
|
* @group Tax Integrations
|
|
14802
14836
|
*/
|
|
14803
|
-
declare const useGetTaxCodes: (type?: string,
|
|
14837
|
+
declare const useGetTaxCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetTaxCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<TaxCode[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14804
14838
|
|
|
14805
14839
|
/**
|
|
14806
14840
|
* @category Keys
|
package/dist/index.d.ts
CHANGED
|
@@ -753,6 +753,8 @@ interface BaseEventAddOn {
|
|
|
753
753
|
imageId: string | null;
|
|
754
754
|
image: BaseImage | null;
|
|
755
755
|
eventId: string | null;
|
|
756
|
+
taxCode: string | null;
|
|
757
|
+
taxIncluded: boolean;
|
|
756
758
|
createdAt: string;
|
|
757
759
|
updatedAt: string;
|
|
758
760
|
}
|
|
@@ -1285,6 +1287,8 @@ interface BaseInvoiceLineItem {
|
|
|
1285
1287
|
description: string;
|
|
1286
1288
|
quantity: number;
|
|
1287
1289
|
amount: number;
|
|
1290
|
+
taxCode: string | null;
|
|
1291
|
+
taxIncluded: boolean;
|
|
1288
1292
|
createdAt: string;
|
|
1289
1293
|
updatedAt: string;
|
|
1290
1294
|
}
|
|
@@ -1306,7 +1310,6 @@ interface BaseInvoice {
|
|
|
1306
1310
|
status: InvoiceStatus;
|
|
1307
1311
|
title: string;
|
|
1308
1312
|
notes: string | null;
|
|
1309
|
-
taxable: boolean;
|
|
1310
1313
|
}
|
|
1311
1314
|
interface Invoice extends BaseInvoice {
|
|
1312
1315
|
lineItems: BaseInvoiceLineItem;
|
|
@@ -1684,8 +1687,9 @@ interface BasePaymentLineItem {
|
|
|
1684
1687
|
refunded: number;
|
|
1685
1688
|
discount: number;
|
|
1686
1689
|
deferred: number;
|
|
1687
|
-
taxable: boolean;
|
|
1688
1690
|
paymentId: number;
|
|
1691
|
+
taxCode: string | null;
|
|
1692
|
+
taxIncluded: boolean;
|
|
1689
1693
|
passId: string | null;
|
|
1690
1694
|
packageId: string | null;
|
|
1691
1695
|
passAddOnId: string | null;
|
|
@@ -1706,8 +1710,6 @@ interface PaymentLineItem extends BasePaymentLineItem {
|
|
|
1706
1710
|
subscription: BaseSubscription | null;
|
|
1707
1711
|
coupon: BaseCoupon | null;
|
|
1708
1712
|
payment: BasePayment;
|
|
1709
|
-
taxable: boolean;
|
|
1710
|
-
taxCode?: string | null;
|
|
1711
1713
|
}
|
|
1712
1714
|
interface PaymentIntegration {
|
|
1713
1715
|
id: string;
|
|
@@ -2089,6 +2091,8 @@ interface BaseEventSession {
|
|
|
2089
2091
|
registrationEnabled: boolean;
|
|
2090
2092
|
price: number | null;
|
|
2091
2093
|
limit: number | null;
|
|
2094
|
+
taxCode: string | null;
|
|
2095
|
+
taxIncluded: boolean;
|
|
2092
2096
|
createdAt: string;
|
|
2093
2097
|
updatedAt: string;
|
|
2094
2098
|
}
|
|
@@ -2591,6 +2595,8 @@ interface BaseEventPassType {
|
|
|
2591
2595
|
maxQuantityPerSale: number;
|
|
2592
2596
|
emailDomains: string | null;
|
|
2593
2597
|
requireCoupon: boolean;
|
|
2598
|
+
taxCode: string | null;
|
|
2599
|
+
taxIncluded: boolean;
|
|
2594
2600
|
createdAt: string;
|
|
2595
2601
|
updatedAt: string;
|
|
2596
2602
|
}
|
|
@@ -2962,6 +2968,8 @@ interface BaseEventRoomType {
|
|
|
2962
2968
|
image: BaseImage | null;
|
|
2963
2969
|
passTypes: BaseEventRoomTypePassTypeDetails[];
|
|
2964
2970
|
addOns: BaseEventRoomTypeAddOnDetails[];
|
|
2971
|
+
taxCode: string | null;
|
|
2972
|
+
taxIncluded: boolean;
|
|
2965
2973
|
}
|
|
2966
2974
|
interface EventRoomType extends BaseEventRoomType {
|
|
2967
2975
|
sortOrder: number;
|
|
@@ -3133,6 +3141,8 @@ interface BaseBookingSpace {
|
|
|
3133
3141
|
end: string | null;
|
|
3134
3142
|
sortOrder: number;
|
|
3135
3143
|
visible: boolean;
|
|
3144
|
+
taxCode: string | null;
|
|
3145
|
+
taxIncluded: boolean;
|
|
3136
3146
|
}
|
|
3137
3147
|
interface BookingSpace extends BaseBookingSpace {
|
|
3138
3148
|
confirmationBody: string | null;
|
|
@@ -4116,6 +4126,8 @@ interface EventAddOnCreateInputs {
|
|
|
4116
4126
|
supply?: number | string | null;
|
|
4117
4127
|
sortOrder?: number | string | null;
|
|
4118
4128
|
imageId?: string | null;
|
|
4129
|
+
taxCode?: string | null;
|
|
4130
|
+
taxIncluded?: boolean;
|
|
4119
4131
|
}
|
|
4120
4132
|
interface EventAddOnTranslationUpdateInputs {
|
|
4121
4133
|
name?: string | null;
|
|
@@ -4131,6 +4143,8 @@ interface EventAddOnUpdateInputs {
|
|
|
4131
4143
|
supply?: number | string | null;
|
|
4132
4144
|
sortOrder?: number | string | null;
|
|
4133
4145
|
imageId?: string | null;
|
|
4146
|
+
taxCode?: string | null;
|
|
4147
|
+
taxIncluded?: boolean;
|
|
4134
4148
|
}
|
|
4135
4149
|
interface EventBadgeFieldUpdateInputs {
|
|
4136
4150
|
type?: keyof typeof BadgeFieldType | null;
|
|
@@ -4344,6 +4358,8 @@ interface EventSessionCreateInputs {
|
|
|
4344
4358
|
locationId?: string | null;
|
|
4345
4359
|
roundName?: string | null;
|
|
4346
4360
|
matchName?: string | null;
|
|
4361
|
+
taxCode?: string | null;
|
|
4362
|
+
taxIncluded?: boolean;
|
|
4347
4363
|
}
|
|
4348
4364
|
interface EventSessionAccessUpdateInputs {
|
|
4349
4365
|
status?: PurchaseStatus;
|
|
@@ -4374,6 +4390,8 @@ interface EventSessionUpdateInputs {
|
|
|
4374
4390
|
locationId?: string | null;
|
|
4375
4391
|
roundName?: string | null;
|
|
4376
4392
|
matchName?: string | null;
|
|
4393
|
+
taxCode?: string | null;
|
|
4394
|
+
taxIncluded?: boolean;
|
|
4377
4395
|
}
|
|
4378
4396
|
interface EventSessionLocationCreateInputs {
|
|
4379
4397
|
name: string;
|
|
@@ -4699,19 +4717,22 @@ interface InvoiceCreateInputs {
|
|
|
4699
4717
|
notes?: string | null;
|
|
4700
4718
|
accountId?: string | null;
|
|
4701
4719
|
eventId?: string | null;
|
|
4702
|
-
taxable?: boolean;
|
|
4703
4720
|
}
|
|
4704
4721
|
interface InvoiceLineItemCreateInputs {
|
|
4705
4722
|
name: string;
|
|
4706
4723
|
description: string;
|
|
4707
4724
|
quantity: string | number;
|
|
4708
4725
|
amount: string;
|
|
4726
|
+
taxCode?: string | null;
|
|
4727
|
+
taxIncluded?: boolean;
|
|
4709
4728
|
}
|
|
4710
4729
|
interface InvoiceLineItemUpdateInputs {
|
|
4711
4730
|
name?: string | null;
|
|
4712
4731
|
description?: string | null;
|
|
4713
4732
|
quantity?: string | number | null;
|
|
4714
4733
|
amount?: number | null;
|
|
4734
|
+
taxCode?: string | null;
|
|
4735
|
+
taxIncluded?: boolean;
|
|
4715
4736
|
}
|
|
4716
4737
|
interface InvoiceUpdateInputs {
|
|
4717
4738
|
title?: string | null;
|
|
@@ -4720,7 +4741,6 @@ interface InvoiceUpdateInputs {
|
|
|
4720
4741
|
notes?: string | null;
|
|
4721
4742
|
accountId?: string | null;
|
|
4722
4743
|
eventId?: string | null;
|
|
4723
|
-
taxable?: boolean;
|
|
4724
4744
|
}
|
|
4725
4745
|
interface LeadCreateInputs {
|
|
4726
4746
|
status?: LeadStatus;
|
|
@@ -5161,6 +5181,8 @@ interface PassTypeCreateInputs {
|
|
|
5161
5181
|
enableCoupons?: boolean;
|
|
5162
5182
|
overrideStartDate?: string | null;
|
|
5163
5183
|
requireCoupon?: boolean;
|
|
5184
|
+
taxCode?: string | null;
|
|
5185
|
+
taxIncluded?: boolean;
|
|
5164
5186
|
}
|
|
5165
5187
|
interface PassTypeUpdateInputs {
|
|
5166
5188
|
visibility?: keyof typeof PassTypeVisibility | null;
|
|
@@ -5184,6 +5206,8 @@ interface PassTypeUpdateInputs {
|
|
|
5184
5206
|
enableCoupons?: boolean;
|
|
5185
5207
|
overrideStartDate?: string | null;
|
|
5186
5208
|
requireCoupon?: boolean;
|
|
5209
|
+
taxCode?: string | null;
|
|
5210
|
+
taxIncluded?: boolean;
|
|
5187
5211
|
}
|
|
5188
5212
|
interface TierCreateInputs {
|
|
5189
5213
|
name: string;
|
|
@@ -5304,6 +5328,8 @@ interface EventRoomTypeCreateInputs {
|
|
|
5304
5328
|
defaultEnd?: string | null;
|
|
5305
5329
|
maxEnd?: string | null;
|
|
5306
5330
|
imageId?: string | null;
|
|
5331
|
+
taxCode?: string | null;
|
|
5332
|
+
taxIncluded?: boolean;
|
|
5307
5333
|
}
|
|
5308
5334
|
interface EventRoomTypeUpdateInputs {
|
|
5309
5335
|
name?: string;
|
|
@@ -5321,6 +5347,8 @@ interface EventRoomTypeUpdateInputs {
|
|
|
5321
5347
|
defaultEnd?: string | null;
|
|
5322
5348
|
maxEnd?: string | null;
|
|
5323
5349
|
imageId?: string | null;
|
|
5350
|
+
taxCode?: string | null;
|
|
5351
|
+
taxIncluded?: boolean;
|
|
5324
5352
|
}
|
|
5325
5353
|
interface EventRoomTypeTranslationUpdateInputs {
|
|
5326
5354
|
name?: string | null;
|
|
@@ -5473,6 +5501,8 @@ interface BookingSpaceCreateInputs {
|
|
|
5473
5501
|
visible?: boolean;
|
|
5474
5502
|
confirmationBody?: string | null;
|
|
5475
5503
|
confirmationReplyTo?: string | null;
|
|
5504
|
+
taxCode?: string | null;
|
|
5505
|
+
taxIncluded?: boolean;
|
|
5476
5506
|
}
|
|
5477
5507
|
interface BookingSpaceUpdateInputs {
|
|
5478
5508
|
name?: string;
|
|
@@ -5486,6 +5516,8 @@ interface BookingSpaceUpdateInputs {
|
|
|
5486
5516
|
visible?: boolean;
|
|
5487
5517
|
confirmationBody?: string | null;
|
|
5488
5518
|
confirmationReplyTo?: string | null;
|
|
5519
|
+
taxCode?: string | null;
|
|
5520
|
+
taxIncluded?: boolean;
|
|
5489
5521
|
}
|
|
5490
5522
|
interface BookingSpaceTranslationUpdateInputs {
|
|
5491
5523
|
name?: string | null;
|
|
@@ -5657,6 +5689,8 @@ interface EventPackageCreateInputs {
|
|
|
5657
5689
|
isActive?: boolean;
|
|
5658
5690
|
imageId?: string | null;
|
|
5659
5691
|
sortOrder?: number | string | null;
|
|
5692
|
+
taxCode?: string | null;
|
|
5693
|
+
taxIncluded?: boolean;
|
|
5660
5694
|
}
|
|
5661
5695
|
interface EventPackageUpdateInputs {
|
|
5662
5696
|
name?: string;
|
|
@@ -5665,6 +5699,8 @@ interface EventPackageUpdateInputs {
|
|
|
5665
5699
|
isActive?: boolean;
|
|
5666
5700
|
imageId?: string | null;
|
|
5667
5701
|
sortOrder?: number | string | null;
|
|
5702
|
+
taxCode?: string | null;
|
|
5703
|
+
taxIncluded?: boolean;
|
|
5668
5704
|
}
|
|
5669
5705
|
interface EventPackagePassCreateInputs {
|
|
5670
5706
|
passTypeId: string;
|
|
@@ -14756,7 +14792,7 @@ declare const useGetOrganizationSideEffects: (params?: Omit<GetOrganizationSideE
|
|
|
14756
14792
|
* @category Keys
|
|
14757
14793
|
* @group Tax Integrations
|
|
14758
14794
|
*/
|
|
14759
|
-
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string
|
|
14795
|
+
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string) => string[];
|
|
14760
14796
|
/**
|
|
14761
14797
|
* @category Setters
|
|
14762
14798
|
* @group Tax Integrations
|
|
@@ -14764,24 +14800,23 @@ declare const ENTITY_USE_CODES_QUERY_KEY: (type: string, search?: string) => (st
|
|
|
14764
14800
|
declare const SET_ENTITY_USE_CODES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof ENTITY_USE_CODES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetEntityUseCodes>>) => void;
|
|
14765
14801
|
interface GetEntityUseCodesProps extends SingleQueryParams {
|
|
14766
14802
|
type: string;
|
|
14767
|
-
search?: string;
|
|
14768
14803
|
}
|
|
14769
14804
|
/**
|
|
14770
14805
|
* @category Queries
|
|
14771
14806
|
* @group Tax Integrations
|
|
14772
14807
|
*/
|
|
14773
|
-
declare const GetEntityUseCodes: ({ type,
|
|
14808
|
+
declare const GetEntityUseCodes: ({ type, adminApiParams, }: GetEntityUseCodesProps) => Promise<ConnectedXMResponse<any[]>>;
|
|
14774
14809
|
/**
|
|
14775
14810
|
* @category Hooks
|
|
14776
14811
|
* @group Tax Integrations
|
|
14777
14812
|
*/
|
|
14778
|
-
declare const useGetEntityUseCodes: (type?: string,
|
|
14813
|
+
declare const useGetEntityUseCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetEntityUseCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<any[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14779
14814
|
|
|
14780
14815
|
/**
|
|
14781
14816
|
* @category Keys
|
|
14782
14817
|
* @group Tax Integrations
|
|
14783
14818
|
*/
|
|
14784
|
-
declare const TAX_CODES_QUERY_KEY: (type: string
|
|
14819
|
+
declare const TAX_CODES_QUERY_KEY: (type: string) => string[];
|
|
14785
14820
|
/**
|
|
14786
14821
|
* @category Setters
|
|
14787
14822
|
* @group Tax Integrations
|
|
@@ -14789,18 +14824,17 @@ declare const TAX_CODES_QUERY_KEY: (type: string, search?: string) => (string |
|
|
|
14789
14824
|
declare const SET_TAX_CODES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof TAX_CODES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetTaxCodes>>) => void;
|
|
14790
14825
|
interface GetTaxCodesProps extends SingleQueryParams {
|
|
14791
14826
|
type: string;
|
|
14792
|
-
search?: string;
|
|
14793
14827
|
}
|
|
14794
14828
|
/**
|
|
14795
14829
|
* @category Queries
|
|
14796
14830
|
* @group Tax Integrations
|
|
14797
14831
|
*/
|
|
14798
|
-
declare const GetTaxCodes: ({ type,
|
|
14832
|
+
declare const GetTaxCodes: ({ type, adminApiParams, }: GetTaxCodesProps) => Promise<ConnectedXMResponse<TaxCode[]>>;
|
|
14799
14833
|
/**
|
|
14800
14834
|
* @category Hooks
|
|
14801
14835
|
* @group Tax Integrations
|
|
14802
14836
|
*/
|
|
14803
|
-
declare const useGetTaxCodes: (type?: string,
|
|
14837
|
+
declare const useGetTaxCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetTaxCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<TaxCode[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14804
14838
|
|
|
14805
14839
|
/**
|
|
14806
14840
|
* @category Keys
|
package/dist/index.js
CHANGED
|
@@ -15551,36 +15551,28 @@ var useGetTaxIntegration = (type = "", options = {}) => {
|
|
|
15551
15551
|
};
|
|
15552
15552
|
|
|
15553
15553
|
// src/queries/organization/tax/useGetEntityUseCodes.ts
|
|
15554
|
-
var ENTITY_USE_CODES_QUERY_KEY = (type
|
|
15554
|
+
var ENTITY_USE_CODES_QUERY_KEY = (type) => [
|
|
15555
15555
|
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
15556
|
-
"ENTITY_USE_CODES"
|
|
15557
|
-
search
|
|
15556
|
+
"ENTITY_USE_CODES"
|
|
15558
15557
|
];
|
|
15559
15558
|
var SET_ENTITY_USE_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
15560
15559
|
client.setQueryData(ENTITY_USE_CODES_QUERY_KEY(...keyParams), response);
|
|
15561
15560
|
};
|
|
15562
15561
|
var GetEntityUseCodes = async ({
|
|
15563
15562
|
type,
|
|
15564
|
-
search,
|
|
15565
15563
|
adminApiParams
|
|
15566
15564
|
}) => {
|
|
15567
15565
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
15568
15566
|
const { data } = await adminApi.get(
|
|
15569
|
-
`/organization/tax/${type}/entity-use-codes
|
|
15570
|
-
{
|
|
15571
|
-
params: {
|
|
15572
|
-
search
|
|
15573
|
-
}
|
|
15574
|
-
}
|
|
15567
|
+
`/organization/tax/${type}/entity-use-codes`
|
|
15575
15568
|
);
|
|
15576
15569
|
return data;
|
|
15577
15570
|
};
|
|
15578
|
-
var useGetEntityUseCodes = (type = "",
|
|
15571
|
+
var useGetEntityUseCodes = (type = "", options = {}) => {
|
|
15579
15572
|
return useConnectedSingleQuery(
|
|
15580
|
-
ENTITY_USE_CODES_QUERY_KEY(type
|
|
15573
|
+
ENTITY_USE_CODES_QUERY_KEY(type),
|
|
15581
15574
|
(params) => GetEntityUseCodes({
|
|
15582
15575
|
type,
|
|
15583
|
-
search,
|
|
15584
15576
|
...params
|
|
15585
15577
|
}),
|
|
15586
15578
|
{
|
|
@@ -15592,36 +15584,28 @@ var useGetEntityUseCodes = (type = "", search, options = {}) => {
|
|
|
15592
15584
|
};
|
|
15593
15585
|
|
|
15594
15586
|
// src/queries/organization/tax/useGetTaxCodes.ts
|
|
15595
|
-
var TAX_CODES_QUERY_KEY = (type
|
|
15587
|
+
var TAX_CODES_QUERY_KEY = (type) => [
|
|
15596
15588
|
...TAX_INTEGRATION_QUERY_KEY(type),
|
|
15597
|
-
"TAX_CODES"
|
|
15598
|
-
search
|
|
15589
|
+
"TAX_CODES"
|
|
15599
15590
|
];
|
|
15600
15591
|
var SET_TAX_CODES_QUERY_DATA = (client, keyParams, response) => {
|
|
15601
15592
|
client.setQueryData(TAX_CODES_QUERY_KEY(...keyParams), response);
|
|
15602
15593
|
};
|
|
15603
15594
|
var GetTaxCodes = async ({
|
|
15604
15595
|
type,
|
|
15605
|
-
search,
|
|
15606
15596
|
adminApiParams
|
|
15607
15597
|
}) => {
|
|
15608
15598
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
15609
15599
|
const { data } = await adminApi.get(
|
|
15610
|
-
`/organization/tax/${type}/tax-codes
|
|
15611
|
-
{
|
|
15612
|
-
params: {
|
|
15613
|
-
search
|
|
15614
|
-
}
|
|
15615
|
-
}
|
|
15600
|
+
`/organization/tax/${type}/tax-codes`
|
|
15616
15601
|
);
|
|
15617
15602
|
return data;
|
|
15618
15603
|
};
|
|
15619
|
-
var useGetTaxCodes = (type = "",
|
|
15604
|
+
var useGetTaxCodes = (type = "", options = {}) => {
|
|
15620
15605
|
return useConnectedSingleQuery(
|
|
15621
|
-
TAX_CODES_QUERY_KEY(type
|
|
15606
|
+
TAX_CODES_QUERY_KEY(type),
|
|
15622
15607
|
(params) => GetTaxCodes({
|
|
15623
15608
|
type,
|
|
15624
|
-
search,
|
|
15625
15609
|
...params
|
|
15626
15610
|
}),
|
|
15627
15611
|
{
|