@connectedxm/admin 3.3.8 → 3.3.10
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 +49 -14
- package/dist/index.d.ts +49 -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,10 @@ interface BasePaymentLineItem {
|
|
|
1684
1687
|
refunded: number;
|
|
1685
1688
|
discount: number;
|
|
1686
1689
|
deferred: number;
|
|
1687
|
-
|
|
1690
|
+
salesTax: number;
|
|
1688
1691
|
paymentId: number;
|
|
1692
|
+
taxCode: string | null;
|
|
1693
|
+
taxIncluded: boolean;
|
|
1689
1694
|
passId: string | null;
|
|
1690
1695
|
packageId: string | null;
|
|
1691
1696
|
passAddOnId: string | null;
|
|
@@ -1706,8 +1711,6 @@ interface PaymentLineItem extends BasePaymentLineItem {
|
|
|
1706
1711
|
subscription: BaseSubscription | null;
|
|
1707
1712
|
coupon: BaseCoupon | null;
|
|
1708
1713
|
payment: BasePayment;
|
|
1709
|
-
taxable: boolean;
|
|
1710
|
-
taxCode?: string | null;
|
|
1711
1714
|
}
|
|
1712
1715
|
interface PaymentIntegration {
|
|
1713
1716
|
id: string;
|
|
@@ -2089,6 +2092,8 @@ interface BaseEventSession {
|
|
|
2089
2092
|
registrationEnabled: boolean;
|
|
2090
2093
|
price: number | null;
|
|
2091
2094
|
limit: number | null;
|
|
2095
|
+
taxCode: string | null;
|
|
2096
|
+
taxIncluded: boolean;
|
|
2092
2097
|
createdAt: string;
|
|
2093
2098
|
updatedAt: string;
|
|
2094
2099
|
}
|
|
@@ -2591,6 +2596,8 @@ interface BaseEventPassType {
|
|
|
2591
2596
|
maxQuantityPerSale: number;
|
|
2592
2597
|
emailDomains: string | null;
|
|
2593
2598
|
requireCoupon: boolean;
|
|
2599
|
+
taxCode: string | null;
|
|
2600
|
+
taxIncluded: boolean;
|
|
2594
2601
|
createdAt: string;
|
|
2595
2602
|
updatedAt: string;
|
|
2596
2603
|
}
|
|
@@ -2962,6 +2969,8 @@ interface BaseEventRoomType {
|
|
|
2962
2969
|
image: BaseImage | null;
|
|
2963
2970
|
passTypes: BaseEventRoomTypePassTypeDetails[];
|
|
2964
2971
|
addOns: BaseEventRoomTypeAddOnDetails[];
|
|
2972
|
+
taxCode: string | null;
|
|
2973
|
+
taxIncluded: boolean;
|
|
2965
2974
|
}
|
|
2966
2975
|
interface EventRoomType extends BaseEventRoomType {
|
|
2967
2976
|
sortOrder: number;
|
|
@@ -3133,6 +3142,8 @@ interface BaseBookingSpace {
|
|
|
3133
3142
|
end: string | null;
|
|
3134
3143
|
sortOrder: number;
|
|
3135
3144
|
visible: boolean;
|
|
3145
|
+
taxCode: string | null;
|
|
3146
|
+
taxIncluded: boolean;
|
|
3136
3147
|
}
|
|
3137
3148
|
interface BookingSpace extends BaseBookingSpace {
|
|
3138
3149
|
confirmationBody: string | null;
|
|
@@ -4116,6 +4127,8 @@ interface EventAddOnCreateInputs {
|
|
|
4116
4127
|
supply?: number | string | null;
|
|
4117
4128
|
sortOrder?: number | string | null;
|
|
4118
4129
|
imageId?: string | null;
|
|
4130
|
+
taxCode?: string | null;
|
|
4131
|
+
taxIncluded?: boolean;
|
|
4119
4132
|
}
|
|
4120
4133
|
interface EventAddOnTranslationUpdateInputs {
|
|
4121
4134
|
name?: string | null;
|
|
@@ -4131,6 +4144,8 @@ interface EventAddOnUpdateInputs {
|
|
|
4131
4144
|
supply?: number | string | null;
|
|
4132
4145
|
sortOrder?: number | string | null;
|
|
4133
4146
|
imageId?: string | null;
|
|
4147
|
+
taxCode?: string | null;
|
|
4148
|
+
taxIncluded?: boolean;
|
|
4134
4149
|
}
|
|
4135
4150
|
interface EventBadgeFieldUpdateInputs {
|
|
4136
4151
|
type?: keyof typeof BadgeFieldType | null;
|
|
@@ -4344,6 +4359,8 @@ interface EventSessionCreateInputs {
|
|
|
4344
4359
|
locationId?: string | null;
|
|
4345
4360
|
roundName?: string | null;
|
|
4346
4361
|
matchName?: string | null;
|
|
4362
|
+
taxCode?: string | null;
|
|
4363
|
+
taxIncluded?: boolean;
|
|
4347
4364
|
}
|
|
4348
4365
|
interface EventSessionAccessUpdateInputs {
|
|
4349
4366
|
status?: PurchaseStatus;
|
|
@@ -4374,6 +4391,8 @@ interface EventSessionUpdateInputs {
|
|
|
4374
4391
|
locationId?: string | null;
|
|
4375
4392
|
roundName?: string | null;
|
|
4376
4393
|
matchName?: string | null;
|
|
4394
|
+
taxCode?: string | null;
|
|
4395
|
+
taxIncluded?: boolean;
|
|
4377
4396
|
}
|
|
4378
4397
|
interface EventSessionLocationCreateInputs {
|
|
4379
4398
|
name: string;
|
|
@@ -4699,19 +4718,22 @@ interface InvoiceCreateInputs {
|
|
|
4699
4718
|
notes?: string | null;
|
|
4700
4719
|
accountId?: string | null;
|
|
4701
4720
|
eventId?: string | null;
|
|
4702
|
-
taxable?: boolean;
|
|
4703
4721
|
}
|
|
4704
4722
|
interface InvoiceLineItemCreateInputs {
|
|
4705
4723
|
name: string;
|
|
4706
4724
|
description: string;
|
|
4707
4725
|
quantity: string | number;
|
|
4708
4726
|
amount: string;
|
|
4727
|
+
taxCode?: string | null;
|
|
4728
|
+
taxIncluded?: boolean;
|
|
4709
4729
|
}
|
|
4710
4730
|
interface InvoiceLineItemUpdateInputs {
|
|
4711
4731
|
name?: string | null;
|
|
4712
4732
|
description?: string | null;
|
|
4713
4733
|
quantity?: string | number | null;
|
|
4714
4734
|
amount?: number | null;
|
|
4735
|
+
taxCode?: string | null;
|
|
4736
|
+
taxIncluded?: boolean;
|
|
4715
4737
|
}
|
|
4716
4738
|
interface InvoiceUpdateInputs {
|
|
4717
4739
|
title?: string | null;
|
|
@@ -4720,7 +4742,6 @@ interface InvoiceUpdateInputs {
|
|
|
4720
4742
|
notes?: string | null;
|
|
4721
4743
|
accountId?: string | null;
|
|
4722
4744
|
eventId?: string | null;
|
|
4723
|
-
taxable?: boolean;
|
|
4724
4745
|
}
|
|
4725
4746
|
interface LeadCreateInputs {
|
|
4726
4747
|
status?: LeadStatus;
|
|
@@ -5161,6 +5182,8 @@ interface PassTypeCreateInputs {
|
|
|
5161
5182
|
enableCoupons?: boolean;
|
|
5162
5183
|
overrideStartDate?: string | null;
|
|
5163
5184
|
requireCoupon?: boolean;
|
|
5185
|
+
taxCode?: string | null;
|
|
5186
|
+
taxIncluded?: boolean;
|
|
5164
5187
|
}
|
|
5165
5188
|
interface PassTypeUpdateInputs {
|
|
5166
5189
|
visibility?: keyof typeof PassTypeVisibility | null;
|
|
@@ -5184,6 +5207,8 @@ interface PassTypeUpdateInputs {
|
|
|
5184
5207
|
enableCoupons?: boolean;
|
|
5185
5208
|
overrideStartDate?: string | null;
|
|
5186
5209
|
requireCoupon?: boolean;
|
|
5210
|
+
taxCode?: string | null;
|
|
5211
|
+
taxIncluded?: boolean;
|
|
5187
5212
|
}
|
|
5188
5213
|
interface TierCreateInputs {
|
|
5189
5214
|
name: string;
|
|
@@ -5304,6 +5329,8 @@ interface EventRoomTypeCreateInputs {
|
|
|
5304
5329
|
defaultEnd?: string | null;
|
|
5305
5330
|
maxEnd?: string | null;
|
|
5306
5331
|
imageId?: string | null;
|
|
5332
|
+
taxCode?: string | null;
|
|
5333
|
+
taxIncluded?: boolean;
|
|
5307
5334
|
}
|
|
5308
5335
|
interface EventRoomTypeUpdateInputs {
|
|
5309
5336
|
name?: string;
|
|
@@ -5321,6 +5348,8 @@ interface EventRoomTypeUpdateInputs {
|
|
|
5321
5348
|
defaultEnd?: string | null;
|
|
5322
5349
|
maxEnd?: string | null;
|
|
5323
5350
|
imageId?: string | null;
|
|
5351
|
+
taxCode?: string | null;
|
|
5352
|
+
taxIncluded?: boolean;
|
|
5324
5353
|
}
|
|
5325
5354
|
interface EventRoomTypeTranslationUpdateInputs {
|
|
5326
5355
|
name?: string | null;
|
|
@@ -5473,6 +5502,8 @@ interface BookingSpaceCreateInputs {
|
|
|
5473
5502
|
visible?: boolean;
|
|
5474
5503
|
confirmationBody?: string | null;
|
|
5475
5504
|
confirmationReplyTo?: string | null;
|
|
5505
|
+
taxCode?: string | null;
|
|
5506
|
+
taxIncluded?: boolean;
|
|
5476
5507
|
}
|
|
5477
5508
|
interface BookingSpaceUpdateInputs {
|
|
5478
5509
|
name?: string;
|
|
@@ -5486,6 +5517,8 @@ interface BookingSpaceUpdateInputs {
|
|
|
5486
5517
|
visible?: boolean;
|
|
5487
5518
|
confirmationBody?: string | null;
|
|
5488
5519
|
confirmationReplyTo?: string | null;
|
|
5520
|
+
taxCode?: string | null;
|
|
5521
|
+
taxIncluded?: boolean;
|
|
5489
5522
|
}
|
|
5490
5523
|
interface BookingSpaceTranslationUpdateInputs {
|
|
5491
5524
|
name?: string | null;
|
|
@@ -5657,6 +5690,8 @@ interface EventPackageCreateInputs {
|
|
|
5657
5690
|
isActive?: boolean;
|
|
5658
5691
|
imageId?: string | null;
|
|
5659
5692
|
sortOrder?: number | string | null;
|
|
5693
|
+
taxCode?: string | null;
|
|
5694
|
+
taxIncluded?: boolean;
|
|
5660
5695
|
}
|
|
5661
5696
|
interface EventPackageUpdateInputs {
|
|
5662
5697
|
name?: string;
|
|
@@ -5665,6 +5700,8 @@ interface EventPackageUpdateInputs {
|
|
|
5665
5700
|
isActive?: boolean;
|
|
5666
5701
|
imageId?: string | null;
|
|
5667
5702
|
sortOrder?: number | string | null;
|
|
5703
|
+
taxCode?: string | null;
|
|
5704
|
+
taxIncluded?: boolean;
|
|
5668
5705
|
}
|
|
5669
5706
|
interface EventPackagePassCreateInputs {
|
|
5670
5707
|
passTypeId: string;
|
|
@@ -14756,7 +14793,7 @@ declare const useGetOrganizationSideEffects: (params?: Omit<GetOrganizationSideE
|
|
|
14756
14793
|
* @category Keys
|
|
14757
14794
|
* @group Tax Integrations
|
|
14758
14795
|
*/
|
|
14759
|
-
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string
|
|
14796
|
+
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string) => string[];
|
|
14760
14797
|
/**
|
|
14761
14798
|
* @category Setters
|
|
14762
14799
|
* @group Tax Integrations
|
|
@@ -14764,24 +14801,23 @@ declare const ENTITY_USE_CODES_QUERY_KEY: (type: string, search?: string) => (st
|
|
|
14764
14801
|
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
14802
|
interface GetEntityUseCodesProps extends SingleQueryParams {
|
|
14766
14803
|
type: string;
|
|
14767
|
-
search?: string;
|
|
14768
14804
|
}
|
|
14769
14805
|
/**
|
|
14770
14806
|
* @category Queries
|
|
14771
14807
|
* @group Tax Integrations
|
|
14772
14808
|
*/
|
|
14773
|
-
declare const GetEntityUseCodes: ({ type,
|
|
14809
|
+
declare const GetEntityUseCodes: ({ type, adminApiParams, }: GetEntityUseCodesProps) => Promise<ConnectedXMResponse<any[]>>;
|
|
14774
14810
|
/**
|
|
14775
14811
|
* @category Hooks
|
|
14776
14812
|
* @group Tax Integrations
|
|
14777
14813
|
*/
|
|
14778
|
-
declare const useGetEntityUseCodes: (type?: string,
|
|
14814
|
+
declare const useGetEntityUseCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetEntityUseCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<any[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14779
14815
|
|
|
14780
14816
|
/**
|
|
14781
14817
|
* @category Keys
|
|
14782
14818
|
* @group Tax Integrations
|
|
14783
14819
|
*/
|
|
14784
|
-
declare const TAX_CODES_QUERY_KEY: (type: string
|
|
14820
|
+
declare const TAX_CODES_QUERY_KEY: (type: string) => string[];
|
|
14785
14821
|
/**
|
|
14786
14822
|
* @category Setters
|
|
14787
14823
|
* @group Tax Integrations
|
|
@@ -14789,18 +14825,17 @@ declare const TAX_CODES_QUERY_KEY: (type: string, search?: string) => (string |
|
|
|
14789
14825
|
declare const SET_TAX_CODES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof TAX_CODES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetTaxCodes>>) => void;
|
|
14790
14826
|
interface GetTaxCodesProps extends SingleQueryParams {
|
|
14791
14827
|
type: string;
|
|
14792
|
-
search?: string;
|
|
14793
14828
|
}
|
|
14794
14829
|
/**
|
|
14795
14830
|
* @category Queries
|
|
14796
14831
|
* @group Tax Integrations
|
|
14797
14832
|
*/
|
|
14798
|
-
declare const GetTaxCodes: ({ type,
|
|
14833
|
+
declare const GetTaxCodes: ({ type, adminApiParams, }: GetTaxCodesProps) => Promise<ConnectedXMResponse<TaxCode[]>>;
|
|
14799
14834
|
/**
|
|
14800
14835
|
* @category Hooks
|
|
14801
14836
|
* @group Tax Integrations
|
|
14802
14837
|
*/
|
|
14803
|
-
declare const useGetTaxCodes: (type?: string,
|
|
14838
|
+
declare const useGetTaxCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetTaxCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<TaxCode[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14804
14839
|
|
|
14805
14840
|
/**
|
|
14806
14841
|
* @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,10 @@ interface BasePaymentLineItem {
|
|
|
1684
1687
|
refunded: number;
|
|
1685
1688
|
discount: number;
|
|
1686
1689
|
deferred: number;
|
|
1687
|
-
|
|
1690
|
+
salesTax: number;
|
|
1688
1691
|
paymentId: number;
|
|
1692
|
+
taxCode: string | null;
|
|
1693
|
+
taxIncluded: boolean;
|
|
1689
1694
|
passId: string | null;
|
|
1690
1695
|
packageId: string | null;
|
|
1691
1696
|
passAddOnId: string | null;
|
|
@@ -1706,8 +1711,6 @@ interface PaymentLineItem extends BasePaymentLineItem {
|
|
|
1706
1711
|
subscription: BaseSubscription | null;
|
|
1707
1712
|
coupon: BaseCoupon | null;
|
|
1708
1713
|
payment: BasePayment;
|
|
1709
|
-
taxable: boolean;
|
|
1710
|
-
taxCode?: string | null;
|
|
1711
1714
|
}
|
|
1712
1715
|
interface PaymentIntegration {
|
|
1713
1716
|
id: string;
|
|
@@ -2089,6 +2092,8 @@ interface BaseEventSession {
|
|
|
2089
2092
|
registrationEnabled: boolean;
|
|
2090
2093
|
price: number | null;
|
|
2091
2094
|
limit: number | null;
|
|
2095
|
+
taxCode: string | null;
|
|
2096
|
+
taxIncluded: boolean;
|
|
2092
2097
|
createdAt: string;
|
|
2093
2098
|
updatedAt: string;
|
|
2094
2099
|
}
|
|
@@ -2591,6 +2596,8 @@ interface BaseEventPassType {
|
|
|
2591
2596
|
maxQuantityPerSale: number;
|
|
2592
2597
|
emailDomains: string | null;
|
|
2593
2598
|
requireCoupon: boolean;
|
|
2599
|
+
taxCode: string | null;
|
|
2600
|
+
taxIncluded: boolean;
|
|
2594
2601
|
createdAt: string;
|
|
2595
2602
|
updatedAt: string;
|
|
2596
2603
|
}
|
|
@@ -2962,6 +2969,8 @@ interface BaseEventRoomType {
|
|
|
2962
2969
|
image: BaseImage | null;
|
|
2963
2970
|
passTypes: BaseEventRoomTypePassTypeDetails[];
|
|
2964
2971
|
addOns: BaseEventRoomTypeAddOnDetails[];
|
|
2972
|
+
taxCode: string | null;
|
|
2973
|
+
taxIncluded: boolean;
|
|
2965
2974
|
}
|
|
2966
2975
|
interface EventRoomType extends BaseEventRoomType {
|
|
2967
2976
|
sortOrder: number;
|
|
@@ -3133,6 +3142,8 @@ interface BaseBookingSpace {
|
|
|
3133
3142
|
end: string | null;
|
|
3134
3143
|
sortOrder: number;
|
|
3135
3144
|
visible: boolean;
|
|
3145
|
+
taxCode: string | null;
|
|
3146
|
+
taxIncluded: boolean;
|
|
3136
3147
|
}
|
|
3137
3148
|
interface BookingSpace extends BaseBookingSpace {
|
|
3138
3149
|
confirmationBody: string | null;
|
|
@@ -4116,6 +4127,8 @@ interface EventAddOnCreateInputs {
|
|
|
4116
4127
|
supply?: number | string | null;
|
|
4117
4128
|
sortOrder?: number | string | null;
|
|
4118
4129
|
imageId?: string | null;
|
|
4130
|
+
taxCode?: string | null;
|
|
4131
|
+
taxIncluded?: boolean;
|
|
4119
4132
|
}
|
|
4120
4133
|
interface EventAddOnTranslationUpdateInputs {
|
|
4121
4134
|
name?: string | null;
|
|
@@ -4131,6 +4144,8 @@ interface EventAddOnUpdateInputs {
|
|
|
4131
4144
|
supply?: number | string | null;
|
|
4132
4145
|
sortOrder?: number | string | null;
|
|
4133
4146
|
imageId?: string | null;
|
|
4147
|
+
taxCode?: string | null;
|
|
4148
|
+
taxIncluded?: boolean;
|
|
4134
4149
|
}
|
|
4135
4150
|
interface EventBadgeFieldUpdateInputs {
|
|
4136
4151
|
type?: keyof typeof BadgeFieldType | null;
|
|
@@ -4344,6 +4359,8 @@ interface EventSessionCreateInputs {
|
|
|
4344
4359
|
locationId?: string | null;
|
|
4345
4360
|
roundName?: string | null;
|
|
4346
4361
|
matchName?: string | null;
|
|
4362
|
+
taxCode?: string | null;
|
|
4363
|
+
taxIncluded?: boolean;
|
|
4347
4364
|
}
|
|
4348
4365
|
interface EventSessionAccessUpdateInputs {
|
|
4349
4366
|
status?: PurchaseStatus;
|
|
@@ -4374,6 +4391,8 @@ interface EventSessionUpdateInputs {
|
|
|
4374
4391
|
locationId?: string | null;
|
|
4375
4392
|
roundName?: string | null;
|
|
4376
4393
|
matchName?: string | null;
|
|
4394
|
+
taxCode?: string | null;
|
|
4395
|
+
taxIncluded?: boolean;
|
|
4377
4396
|
}
|
|
4378
4397
|
interface EventSessionLocationCreateInputs {
|
|
4379
4398
|
name: string;
|
|
@@ -4699,19 +4718,22 @@ interface InvoiceCreateInputs {
|
|
|
4699
4718
|
notes?: string | null;
|
|
4700
4719
|
accountId?: string | null;
|
|
4701
4720
|
eventId?: string | null;
|
|
4702
|
-
taxable?: boolean;
|
|
4703
4721
|
}
|
|
4704
4722
|
interface InvoiceLineItemCreateInputs {
|
|
4705
4723
|
name: string;
|
|
4706
4724
|
description: string;
|
|
4707
4725
|
quantity: string | number;
|
|
4708
4726
|
amount: string;
|
|
4727
|
+
taxCode?: string | null;
|
|
4728
|
+
taxIncluded?: boolean;
|
|
4709
4729
|
}
|
|
4710
4730
|
interface InvoiceLineItemUpdateInputs {
|
|
4711
4731
|
name?: string | null;
|
|
4712
4732
|
description?: string | null;
|
|
4713
4733
|
quantity?: string | number | null;
|
|
4714
4734
|
amount?: number | null;
|
|
4735
|
+
taxCode?: string | null;
|
|
4736
|
+
taxIncluded?: boolean;
|
|
4715
4737
|
}
|
|
4716
4738
|
interface InvoiceUpdateInputs {
|
|
4717
4739
|
title?: string | null;
|
|
@@ -4720,7 +4742,6 @@ interface InvoiceUpdateInputs {
|
|
|
4720
4742
|
notes?: string | null;
|
|
4721
4743
|
accountId?: string | null;
|
|
4722
4744
|
eventId?: string | null;
|
|
4723
|
-
taxable?: boolean;
|
|
4724
4745
|
}
|
|
4725
4746
|
interface LeadCreateInputs {
|
|
4726
4747
|
status?: LeadStatus;
|
|
@@ -5161,6 +5182,8 @@ interface PassTypeCreateInputs {
|
|
|
5161
5182
|
enableCoupons?: boolean;
|
|
5162
5183
|
overrideStartDate?: string | null;
|
|
5163
5184
|
requireCoupon?: boolean;
|
|
5185
|
+
taxCode?: string | null;
|
|
5186
|
+
taxIncluded?: boolean;
|
|
5164
5187
|
}
|
|
5165
5188
|
interface PassTypeUpdateInputs {
|
|
5166
5189
|
visibility?: keyof typeof PassTypeVisibility | null;
|
|
@@ -5184,6 +5207,8 @@ interface PassTypeUpdateInputs {
|
|
|
5184
5207
|
enableCoupons?: boolean;
|
|
5185
5208
|
overrideStartDate?: string | null;
|
|
5186
5209
|
requireCoupon?: boolean;
|
|
5210
|
+
taxCode?: string | null;
|
|
5211
|
+
taxIncluded?: boolean;
|
|
5187
5212
|
}
|
|
5188
5213
|
interface TierCreateInputs {
|
|
5189
5214
|
name: string;
|
|
@@ -5304,6 +5329,8 @@ interface EventRoomTypeCreateInputs {
|
|
|
5304
5329
|
defaultEnd?: string | null;
|
|
5305
5330
|
maxEnd?: string | null;
|
|
5306
5331
|
imageId?: string | null;
|
|
5332
|
+
taxCode?: string | null;
|
|
5333
|
+
taxIncluded?: boolean;
|
|
5307
5334
|
}
|
|
5308
5335
|
interface EventRoomTypeUpdateInputs {
|
|
5309
5336
|
name?: string;
|
|
@@ -5321,6 +5348,8 @@ interface EventRoomTypeUpdateInputs {
|
|
|
5321
5348
|
defaultEnd?: string | null;
|
|
5322
5349
|
maxEnd?: string | null;
|
|
5323
5350
|
imageId?: string | null;
|
|
5351
|
+
taxCode?: string | null;
|
|
5352
|
+
taxIncluded?: boolean;
|
|
5324
5353
|
}
|
|
5325
5354
|
interface EventRoomTypeTranslationUpdateInputs {
|
|
5326
5355
|
name?: string | null;
|
|
@@ -5473,6 +5502,8 @@ interface BookingSpaceCreateInputs {
|
|
|
5473
5502
|
visible?: boolean;
|
|
5474
5503
|
confirmationBody?: string | null;
|
|
5475
5504
|
confirmationReplyTo?: string | null;
|
|
5505
|
+
taxCode?: string | null;
|
|
5506
|
+
taxIncluded?: boolean;
|
|
5476
5507
|
}
|
|
5477
5508
|
interface BookingSpaceUpdateInputs {
|
|
5478
5509
|
name?: string;
|
|
@@ -5486,6 +5517,8 @@ interface BookingSpaceUpdateInputs {
|
|
|
5486
5517
|
visible?: boolean;
|
|
5487
5518
|
confirmationBody?: string | null;
|
|
5488
5519
|
confirmationReplyTo?: string | null;
|
|
5520
|
+
taxCode?: string | null;
|
|
5521
|
+
taxIncluded?: boolean;
|
|
5489
5522
|
}
|
|
5490
5523
|
interface BookingSpaceTranslationUpdateInputs {
|
|
5491
5524
|
name?: string | null;
|
|
@@ -5657,6 +5690,8 @@ interface EventPackageCreateInputs {
|
|
|
5657
5690
|
isActive?: boolean;
|
|
5658
5691
|
imageId?: string | null;
|
|
5659
5692
|
sortOrder?: number | string | null;
|
|
5693
|
+
taxCode?: string | null;
|
|
5694
|
+
taxIncluded?: boolean;
|
|
5660
5695
|
}
|
|
5661
5696
|
interface EventPackageUpdateInputs {
|
|
5662
5697
|
name?: string;
|
|
@@ -5665,6 +5700,8 @@ interface EventPackageUpdateInputs {
|
|
|
5665
5700
|
isActive?: boolean;
|
|
5666
5701
|
imageId?: string | null;
|
|
5667
5702
|
sortOrder?: number | string | null;
|
|
5703
|
+
taxCode?: string | null;
|
|
5704
|
+
taxIncluded?: boolean;
|
|
5668
5705
|
}
|
|
5669
5706
|
interface EventPackagePassCreateInputs {
|
|
5670
5707
|
passTypeId: string;
|
|
@@ -14756,7 +14793,7 @@ declare const useGetOrganizationSideEffects: (params?: Omit<GetOrganizationSideE
|
|
|
14756
14793
|
* @category Keys
|
|
14757
14794
|
* @group Tax Integrations
|
|
14758
14795
|
*/
|
|
14759
|
-
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string
|
|
14796
|
+
declare const ENTITY_USE_CODES_QUERY_KEY: (type: string) => string[];
|
|
14760
14797
|
/**
|
|
14761
14798
|
* @category Setters
|
|
14762
14799
|
* @group Tax Integrations
|
|
@@ -14764,24 +14801,23 @@ declare const ENTITY_USE_CODES_QUERY_KEY: (type: string, search?: string) => (st
|
|
|
14764
14801
|
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
14802
|
interface GetEntityUseCodesProps extends SingleQueryParams {
|
|
14766
14803
|
type: string;
|
|
14767
|
-
search?: string;
|
|
14768
14804
|
}
|
|
14769
14805
|
/**
|
|
14770
14806
|
* @category Queries
|
|
14771
14807
|
* @group Tax Integrations
|
|
14772
14808
|
*/
|
|
14773
|
-
declare const GetEntityUseCodes: ({ type,
|
|
14809
|
+
declare const GetEntityUseCodes: ({ type, adminApiParams, }: GetEntityUseCodesProps) => Promise<ConnectedXMResponse<any[]>>;
|
|
14774
14810
|
/**
|
|
14775
14811
|
* @category Hooks
|
|
14776
14812
|
* @group Tax Integrations
|
|
14777
14813
|
*/
|
|
14778
|
-
declare const useGetEntityUseCodes: (type?: string,
|
|
14814
|
+
declare const useGetEntityUseCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetEntityUseCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<any[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14779
14815
|
|
|
14780
14816
|
/**
|
|
14781
14817
|
* @category Keys
|
|
14782
14818
|
* @group Tax Integrations
|
|
14783
14819
|
*/
|
|
14784
|
-
declare const TAX_CODES_QUERY_KEY: (type: string
|
|
14820
|
+
declare const TAX_CODES_QUERY_KEY: (type: string) => string[];
|
|
14785
14821
|
/**
|
|
14786
14822
|
* @category Setters
|
|
14787
14823
|
* @group Tax Integrations
|
|
@@ -14789,18 +14825,17 @@ declare const TAX_CODES_QUERY_KEY: (type: string, search?: string) => (string |
|
|
|
14789
14825
|
declare const SET_TAX_CODES_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof TAX_CODES_QUERY_KEY>, response: Awaited<ReturnType<typeof GetTaxCodes>>) => void;
|
|
14790
14826
|
interface GetTaxCodesProps extends SingleQueryParams {
|
|
14791
14827
|
type: string;
|
|
14792
|
-
search?: string;
|
|
14793
14828
|
}
|
|
14794
14829
|
/**
|
|
14795
14830
|
* @category Queries
|
|
14796
14831
|
* @group Tax Integrations
|
|
14797
14832
|
*/
|
|
14798
|
-
declare const GetTaxCodes: ({ type,
|
|
14833
|
+
declare const GetTaxCodes: ({ type, adminApiParams, }: GetTaxCodesProps) => Promise<ConnectedXMResponse<TaxCode[]>>;
|
|
14799
14834
|
/**
|
|
14800
14835
|
* @category Hooks
|
|
14801
14836
|
* @group Tax Integrations
|
|
14802
14837
|
*/
|
|
14803
|
-
declare const useGetTaxCodes: (type?: string,
|
|
14838
|
+
declare const useGetTaxCodes: (type?: string, options?: SingleQueryOptions<ReturnType<typeof GetTaxCodes>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<TaxCode[]>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
14804
14839
|
|
|
14805
14840
|
/**
|
|
14806
14841
|
* @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
|
{
|