@solibo/solibo-react 1.16.13 → 1.16.15
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/api/commands/conversation/useDeleteConversation.d.ts +1 -0
- package/dist/api/commands/conversation/useUpdateConversation.d.ts +1 -0
- package/dist/api/commands/invoicing/useToggleInvoicingPlanTransactionOverdue.d.ts +1 -0
- package/dist/api/commands/resident/useRemovePersonFromCompany.d.ts +2 -0
- package/dist/api/commands/routines/useCreateRoutine.d.ts +2 -0
- package/dist/api/commands/section/useMassUpdateSection.d.ts +1 -0
- package/dist/api/queries/invoicing/invoicingKeys.d.ts +1 -51
- package/dist/api/queries/invoicing/invoicingKeys.js +4 -199
- package/dist/api/queries/invoicing/invoicingKeys.js.map +1 -1
- package/dist/api/queries/invoicing/useSectionInvoicesQueries.d.ts +3 -0
- package/dist/api/queries/invoicing/useSectionInvoicesQueries.js +6 -0
- package/dist/api/queries/invoicing/useSectionInvoicesQueries.js.map +1 -1
- package/dist/api/queries/user/useAuthedUser.d.ts +3 -1
- package/dist/api/queries/user/useAuthedUser.js +2 -2
- package/dist/api/queries/user/useAuthedUser.js.map +1 -1
- package/dist/api/queries/user/useUser.d.ts +3 -1
- package/dist/api/queries/user/useUser.js +2 -2
- package/dist/api/queries/user/useUser.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const useDeleteConversation: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
|
|
2
2
|
companyId: import("@solibo/solibo-sdk").Id;
|
|
3
3
|
conversationId: import("@solibo/solibo-sdk").Id;
|
|
4
|
+
translateToCountryId?: import("@solibo/solibo-sdk").Id | null;
|
|
4
5
|
}, unknown>;
|
|
@@ -2,4 +2,5 @@ export declare const useUpdateConversation: () => import("../../../index.js").Mu
|
|
|
2
2
|
companyId: import("@solibo/solibo-sdk").Id;
|
|
3
3
|
conversationId: import("@solibo/solibo-sdk").Id;
|
|
4
4
|
cmd: import("@solibo/solibo-sdk").SdkInput<import("@solibo/solibo-sdk").UpdateConversationCommandProps>;
|
|
5
|
+
translateToCountryId?: import("@solibo/solibo-sdk").Id | null;
|
|
5
6
|
}, unknown>;
|
|
@@ -6,4 +6,5 @@ export declare const useToggleInvoicingPlanTransactionOverdue: () => import("../
|
|
|
6
6
|
export declare const useCreateInvoicingPlanTransactions: () => import("../../../index.js").MutationResultWithValidation<import("@solibo/solibo-sdk").InvoiceInput[], Error, {
|
|
7
7
|
companyId: import("@solibo/solibo-sdk").Id;
|
|
8
8
|
invoicePlanId: import("@solibo/solibo-sdk").Id;
|
|
9
|
+
at?: import("@solibo/solibo-sdk").Id | null;
|
|
9
10
|
}, unknown>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const useRemovePersonFromCompany: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
|
|
2
2
|
companyId: import("@solibo/solibo-sdk").Id;
|
|
3
3
|
personId: import("@solibo/solibo-sdk").Id;
|
|
4
|
+
removeBods?: boolean | null;
|
|
5
|
+
removeParkeringsplass?: boolean | null;
|
|
4
6
|
}, unknown>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const useCreateRoutine: () => import("../../../index.js").MutationResultWithValidation<import("@solibo/solibo-sdk").Routine, Error, {
|
|
2
2
|
companyId: import("@solibo/solibo-sdk").Id;
|
|
3
3
|
cmd: import("@solibo/solibo-sdk").SdkInput<import("@solibo/solibo-sdk").CreateRoutineCommandProps>;
|
|
4
|
+
year?: number | null;
|
|
5
|
+
routineType?: import("@solibo/solibo-sdk").RoutineType | null;
|
|
4
6
|
}, unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const useMassUpdateSection: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
|
|
2
2
|
companyId: import("@solibo/solibo-sdk").Id;
|
|
3
3
|
cmd: import("@solibo/solibo-sdk").SdkInput<import("@solibo/solibo-sdk").MassUpdateSectionCommandProps>;
|
|
4
|
+
status?: import("@solibo/solibo-sdk").SectionState | null;
|
|
4
5
|
}, unknown>;
|
|
@@ -1,51 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const invoicingKeys: {
|
|
3
|
-
all: readonly ["invoicing"];
|
|
4
|
-
customers: (companyId?: Id | null | undefined) => readonly ["invoicing", "customers", Id | null | undefined];
|
|
5
|
-
customerDetail: (companyId?: Id | null | undefined, customerId?: Id | null | undefined, type?: CustomerType) => readonly ["invoicing", "customerDetail", Id | null | undefined, Id | null | undefined, CustomerType | undefined];
|
|
6
|
-
customerInvoices: (companyId?: Id | null | undefined, customerId?: Id | null | undefined) => readonly ["invoicing", "customerInvoices", Id | null | undefined, Id | null | undefined];
|
|
7
|
-
customerMeta: (companyId?: Id | null | undefined, customerId?: Id | null | undefined) => readonly ["invoicing", "customerMeta", Id | null | undefined, Id | null | undefined];
|
|
8
|
-
customerRecipient: (companyId?: Id | null | undefined, personId?: Id | null | undefined) => readonly ["invoicing", "customerRecipient", Id | null | undefined, Id | null | undefined];
|
|
9
|
-
plans: (companyId?: Id | null | undefined, active?: boolean, type?: InvoicePlanType) => readonly ["invoicing", "plans", Id | null | undefined, boolean | undefined, InvoicePlanType | undefined];
|
|
10
|
-
planDetail: (companyId?: Id | null | undefined, planId?: Id | null | undefined) => readonly ["invoicing", "planDetail", Id | null | undefined, Id | null | undefined];
|
|
11
|
-
planLines: (companyId?: Id | null | undefined, planId?: Id | null | undefined) => readonly ["invoicing", "planLines", Id | null | undefined, Id | null | undefined];
|
|
12
|
-
planLineDetail: (companyId?: Id | null | undefined, invoicePlanId?: Id | null | undefined, invoiceLineId?: Id | null | undefined) => readonly ["invoicing", "planLineDetail", Id | null | undefined, Id | null | undefined, Id | null | undefined];
|
|
13
|
-
planDistributions: (companyId: Id, invoicePlanId: Id) => readonly ["invoicing", "planDistributions", Id, Id];
|
|
14
|
-
planDistribution: (companyId: Id, invoicePlanId: Id, distributionId: Id) => readonly ["invoicing", "planDistribution", Id, Id, Id];
|
|
15
|
-
planTransactions: (companyId: Id, invoicePlanId: Id) => readonly ["invoicing", "planTransactions", Id, Id];
|
|
16
|
-
planTransactionInvoices: (companyId: Id, invoicePlanId: Id, transactionId: Id) => readonly ["invoicing", "planTransactionInvoices", Id, Id, Id];
|
|
17
|
-
plansForSection: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["invoicing", "plansForSection", Id | null | undefined, Id | null | undefined];
|
|
18
|
-
planSettings: (companyId?: Id | null | undefined, planId?: Id | null | undefined) => readonly ["invoicing", "planSettings", Id | null | undefined, Id | null | undefined];
|
|
19
|
-
planTypes: (companyId?: Id) => readonly ["invoicing", "planTypes", Id | undefined];
|
|
20
|
-
settings: (companyId?: Id | null | undefined) => readonly ["invoicing", "settings", Id | null | undefined];
|
|
21
|
-
adHocGroups: (companyId?: Id | null | undefined) => readonly ["invoicing", "adHocGroups", Id | null | undefined];
|
|
22
|
-
adHocGroupDetail: (companyId?: Id | null | undefined, groupId?: Id | null | undefined) => readonly ["invoicing", "adHocGroupDetail", Id | null | undefined, Id | null | undefined];
|
|
23
|
-
adHocLines: (companyId: Id, type: "organization" | "person" | "section", id: Id, adhocLineId?: Id | null | undefined) => readonly ["invoicing", "adHocLines", Id, "section" | "person" | "organization", Id, Id | null | undefined];
|
|
24
|
-
planAdHocLines: (companyId?: Id | null | undefined, invoicePlanId?: Id | null | undefined) => readonly ["invoicing", "planAdHocLines", Id | null | undefined, Id | null | undefined];
|
|
25
|
-
queuedInvoices: (companyId?: Id | null | undefined) => readonly ["invoicing", "queuedInvoices", Id | null | undefined];
|
|
26
|
-
queuedInvoicePdf: (companyId?: Id | null | undefined, invoiceId?: string) => readonly ["invoicing", "queuedInvoicePdf", Id | null | undefined, string | undefined];
|
|
27
|
-
historicInvoices: (companyId?: Id | null | undefined, periodStart?: Id | null | undefined, periodEnd?: Id | null | undefined) => readonly ["invoicing", "historicInvoices", Id | null | undefined, Id | null | undefined, Id | null | undefined];
|
|
28
|
-
creditNotes: (companyId?: Id | null | undefined, invoiceId?: string) => readonly ["invoicing", "creditNotes", Id | null | undefined, string | undefined];
|
|
29
|
-
sectionInvoices: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["invoicing", "sectionInvoices", Id | null | undefined, Id | null | undefined];
|
|
30
|
-
massInvoice: (companyId?: Id | null | undefined) => readonly ["invoicing", "massInvoice", Id | null | undefined];
|
|
31
|
-
massInvoicePreview: (companyId?: Id | null | undefined, groupId?: Id | null | undefined) => readonly ["invoicing", "massInvoicePreview", Id | null | undefined, Id | null | undefined];
|
|
32
|
-
massInvoicePdf: (companyId?: Id | null | undefined, groupId?: Id | null | undefined, iterator?: Id | null | undefined) => readonly ["invoicing", "massInvoicePdf", Id | null | undefined, Id | null | undefined, Id | null | undefined];
|
|
33
|
-
preview: (companyId?: Id | null | undefined, plan?: Id | null | undefined, at?: Id | null | undefined) => readonly ["invoicing", "preview", Id | null | undefined, Id | null | undefined, Id | null | undefined];
|
|
34
|
-
previewPdf: (companyId?: Id | null | undefined, customerId?: Id | null | undefined, customerType?: string, sectionId?: Id | null | undefined, planId?: Id | null | undefined, at?: Id | null | undefined) => readonly ["invoicing", "previewPdf", Id | null | undefined, Id | null | undefined, Id | null | undefined, string | undefined, Id | null | undefined, Id | null | undefined];
|
|
35
|
-
recipient: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["invoicing", "recipient", Id | null | undefined, Id | null | undefined];
|
|
36
|
-
invoicePayments: (companyId: Id, invoiceId: string) => readonly ["invoicing", "invoicePayments", Id, string];
|
|
37
|
-
invoicePdfs: (companyId: Id, invoiceIds: string[]) => readonly ["invoicing", "invoicePdfs", Id, string[]];
|
|
38
|
-
customerInvoicePdf: (companyId?: Id | null | undefined, customerType?: string, customerId?: Id | null | undefined, invoiceId?: string) => readonly ["invoicing", "customerInvoicePdf", Id | null | undefined, string | undefined, Id | null | undefined, string | undefined];
|
|
39
|
-
customerInvoiceOverdueFirstPdf: (companyId?: Id | null | undefined, customerType?: string, customerId?: Id | null | undefined, invoiceId?: string) => readonly ["invoicing", "customerInvoiceOverdueFirstPdf", Id | null | undefined, string | undefined, Id | null | undefined, string | undefined];
|
|
40
|
-
customerInvoiceOverdueSecondPdf: (companyId?: Id | null | undefined, customerType?: string, customerId?: Id | null | undefined, invoiceId?: string) => readonly ["invoicing", "customerInvoiceOverdueSecondPdf", Id | null | undefined, string | undefined, Id | null | undefined, string | undefined];
|
|
41
|
-
triplewinActivated: (companyId?: Id | null | undefined) => readonly ["invoicing", "triplewinActivated", Id | null | undefined];
|
|
42
|
-
triplewin: (companyId?: Id | null | undefined) => readonly ["invoicing", "triplewin", Id | null | undefined];
|
|
43
|
-
overdueInvoices: (expiredType: ExpiredType) => readonly ["invoicing", "overdueInvoices", ExpiredType];
|
|
44
|
-
expiredInvoices: () => readonly ["invoicing", "expiredInvoices"];
|
|
45
|
-
expiredTypes: () => readonly ["invoicing", "expiredTypes"];
|
|
46
|
-
expiredByCustomer: (tenant?: string, payerType?: PayerType, payerId?: string, invoiceIds?: string[]) => readonly ["invoicing", "expiredByCustomer", string | undefined, PayerType | undefined, string | undefined, string[] | undefined];
|
|
47
|
-
redirectExpiredByCustomer: (tenant?: string, payerType?: PayerType, payerId?: string, shouldRedirect?: boolean) => readonly ["invoicing", "redirectExpiredByCustomer", string | undefined, PayerType | undefined, string | undefined, boolean | undefined];
|
|
48
|
-
upcomingInvoicing: () => readonly ["invoicing", "upcomingInvoicing"];
|
|
49
|
-
processedPayments: () => readonly ["invoicing", "processedPayments"];
|
|
50
|
-
unprocessedPayments: () => readonly ["invoicing", "unprocessedPayments"];
|
|
51
|
-
};
|
|
1
|
+
export { invoicingKeys } from '@solibo/solibo-query';
|
|
@@ -1,200 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
customerDetail: (companyId, customerId, type) => [
|
|
6
|
-
...invoicingKeys.all,
|
|
7
|
-
'customerDetail',
|
|
8
|
-
companyId,
|
|
9
|
-
customerId,
|
|
10
|
-
type,
|
|
11
|
-
],
|
|
12
|
-
customerInvoices: (companyId, customerId) => [
|
|
13
|
-
...invoicingKeys.all,
|
|
14
|
-
'customerInvoices',
|
|
15
|
-
companyId,
|
|
16
|
-
customerId,
|
|
17
|
-
],
|
|
18
|
-
customerMeta: (companyId, customerId) => [...invoicingKeys.all, 'customerMeta', companyId, customerId],
|
|
19
|
-
customerRecipient: (companyId, personId) => [
|
|
20
|
-
...invoicingKeys.all,
|
|
21
|
-
'customerRecipient',
|
|
22
|
-
companyId,
|
|
23
|
-
personId,
|
|
24
|
-
],
|
|
25
|
-
// Invoice Plans
|
|
26
|
-
plans: (companyId, active, type) => [...invoicingKeys.all, 'plans', companyId, active, type],
|
|
27
|
-
planDetail: (companyId, planId) => [...invoicingKeys.all, 'planDetail', companyId, planId],
|
|
28
|
-
planLines: (companyId, planId) => [...invoicingKeys.all, 'planLines', companyId, planId],
|
|
29
|
-
planLineDetail: (companyId, invoicePlanId, invoiceLineId) => [
|
|
30
|
-
...invoicingKeys.all,
|
|
31
|
-
'planLineDetail',
|
|
32
|
-
companyId,
|
|
33
|
-
invoicePlanId,
|
|
34
|
-
invoiceLineId,
|
|
35
|
-
],
|
|
36
|
-
planDistributions: (companyId, invoicePlanId) => [
|
|
37
|
-
...invoicingKeys.all,
|
|
38
|
-
'planDistributions',
|
|
39
|
-
companyId,
|
|
40
|
-
invoicePlanId,
|
|
41
|
-
],
|
|
42
|
-
planDistribution: (companyId, invoicePlanId, distributionId) => [
|
|
43
|
-
...invoicingKeys.all,
|
|
44
|
-
'planDistribution',
|
|
45
|
-
companyId,
|
|
46
|
-
invoicePlanId,
|
|
47
|
-
distributionId,
|
|
48
|
-
],
|
|
49
|
-
planTransactions: (companyId, invoicePlanId) => [
|
|
50
|
-
...invoicingKeys.all,
|
|
51
|
-
'planTransactions',
|
|
52
|
-
companyId,
|
|
53
|
-
invoicePlanId,
|
|
54
|
-
],
|
|
55
|
-
planTransactionInvoices: (companyId, invoicePlanId, transactionId) => [
|
|
56
|
-
...invoicingKeys.all,
|
|
57
|
-
'planTransactionInvoices',
|
|
58
|
-
companyId,
|
|
59
|
-
invoicePlanId,
|
|
60
|
-
transactionId,
|
|
61
|
-
],
|
|
62
|
-
plansForSection: (companyId, sectionId) => [
|
|
63
|
-
...invoicingKeys.all,
|
|
64
|
-
'plansForSection',
|
|
65
|
-
companyId,
|
|
66
|
-
sectionId,
|
|
67
|
-
],
|
|
68
|
-
planSettings: (companyId, planId) => [...invoicingKeys.all, 'planSettings', companyId, planId],
|
|
69
|
-
planTypes: (companyId) => [...invoicingKeys.all, 'planTypes', companyId],
|
|
70
|
-
// Invoice Settings
|
|
71
|
-
settings: (companyId) => [...invoicingKeys.all, 'settings', companyId],
|
|
72
|
-
// Ad Hoc
|
|
73
|
-
adHocGroups: (companyId) => [...invoicingKeys.all, 'adHocGroups', companyId],
|
|
74
|
-
adHocGroupDetail: (companyId, groupId) => [...invoicingKeys.all, 'adHocGroupDetail', companyId, groupId],
|
|
75
|
-
adHocLines: (companyId, type, id, adhocLineId) => [
|
|
76
|
-
...invoicingKeys.all,
|
|
77
|
-
'adHocLines',
|
|
78
|
-
companyId,
|
|
79
|
-
type,
|
|
80
|
-
id,
|
|
81
|
-
adhocLineId,
|
|
82
|
-
],
|
|
83
|
-
planAdHocLines: (companyId, invoicePlanId) => [
|
|
84
|
-
...invoicingKeys.all,
|
|
85
|
-
'planAdHocLines',
|
|
86
|
-
companyId,
|
|
87
|
-
invoicePlanId,
|
|
88
|
-
],
|
|
89
|
-
// Invoices & Queued
|
|
90
|
-
queuedInvoices: (companyId) => [...invoicingKeys.all, 'queuedInvoices', companyId],
|
|
91
|
-
queuedInvoicePdf: (companyId, invoiceId) => [
|
|
92
|
-
...invoicingKeys.all,
|
|
93
|
-
'queuedInvoicePdf',
|
|
94
|
-
companyId,
|
|
95
|
-
invoiceId,
|
|
96
|
-
],
|
|
97
|
-
historicInvoices: (companyId, periodStart, periodEnd) => [
|
|
98
|
-
...invoicingKeys.all,
|
|
99
|
-
'historicInvoices',
|
|
100
|
-
companyId,
|
|
101
|
-
periodStart,
|
|
102
|
-
periodEnd,
|
|
103
|
-
],
|
|
104
|
-
creditNotes: (companyId, invoiceId) => [...invoicingKeys.all, 'creditNotes', companyId, invoiceId],
|
|
105
|
-
sectionInvoices: (companyId, sectionId) => [
|
|
106
|
-
...invoicingKeys.all,
|
|
107
|
-
'sectionInvoices',
|
|
108
|
-
companyId,
|
|
109
|
-
sectionId,
|
|
110
|
-
],
|
|
111
|
-
// Mass Invoice
|
|
112
|
-
massInvoice: (companyId) => [...invoicingKeys.all, 'massInvoice', companyId],
|
|
113
|
-
massInvoicePreview: (companyId, groupId) => [
|
|
114
|
-
...invoicingKeys.all,
|
|
115
|
-
'massInvoicePreview',
|
|
116
|
-
companyId,
|
|
117
|
-
groupId,
|
|
118
|
-
],
|
|
119
|
-
massInvoicePdf: (companyId, groupId, iterator) => [
|
|
120
|
-
...invoicingKeys.all,
|
|
121
|
-
'massInvoicePdf',
|
|
122
|
-
companyId,
|
|
123
|
-
groupId,
|
|
124
|
-
iterator,
|
|
125
|
-
],
|
|
126
|
-
// Preview
|
|
127
|
-
preview: (companyId, plan, at) => [...invoicingKeys.all, 'preview', companyId, plan, at],
|
|
128
|
-
previewPdf: (companyId, customerId, customerType, sectionId, planId, at) => [
|
|
129
|
-
...invoicingKeys.all,
|
|
130
|
-
'previewPdf',
|
|
131
|
-
companyId,
|
|
132
|
-
customerId,
|
|
133
|
-
sectionId,
|
|
134
|
-
customerType,
|
|
135
|
-
planId,
|
|
136
|
-
at,
|
|
137
|
-
],
|
|
138
|
-
// Recipients
|
|
139
|
-
recipient: (companyId, sectionId) => [...invoicingKeys.all, 'recipient', companyId, sectionId],
|
|
140
|
-
// Invoice Details
|
|
141
|
-
invoicePayments: (companyId, invoiceId) => [
|
|
142
|
-
...invoicingKeys.all,
|
|
143
|
-
'invoicePayments',
|
|
144
|
-
companyId,
|
|
145
|
-
invoiceId,
|
|
146
|
-
],
|
|
147
|
-
invoicePdfs: (companyId, invoiceIds) => [...invoicingKeys.all, 'invoicePdfs', companyId, invoiceIds],
|
|
148
|
-
customerInvoicePdf: (companyId, customerType, customerId, invoiceId) => [
|
|
149
|
-
...invoicingKeys.all,
|
|
150
|
-
'customerInvoicePdf',
|
|
151
|
-
companyId,
|
|
152
|
-
customerType,
|
|
153
|
-
customerId,
|
|
154
|
-
invoiceId,
|
|
155
|
-
],
|
|
156
|
-
customerInvoiceOverdueFirstPdf: (companyId, customerType, customerId, invoiceId) => [
|
|
157
|
-
...invoicingKeys.all,
|
|
158
|
-
'customerInvoiceOverdueFirstPdf',
|
|
159
|
-
companyId,
|
|
160
|
-
customerType,
|
|
161
|
-
customerId,
|
|
162
|
-
invoiceId,
|
|
163
|
-
],
|
|
164
|
-
customerInvoiceOverdueSecondPdf: (companyId, customerType, customerId, invoiceId) => [
|
|
165
|
-
...invoicingKeys.all,
|
|
166
|
-
'customerInvoiceOverdueSecondPdf',
|
|
167
|
-
companyId,
|
|
168
|
-
customerType,
|
|
169
|
-
customerId,
|
|
170
|
-
invoiceId,
|
|
171
|
-
],
|
|
172
|
-
// Triplewin
|
|
173
|
-
triplewinActivated: (companyId) => [...invoicingKeys.all, 'triplewinActivated', companyId],
|
|
174
|
-
triplewin: (companyId) => [...invoicingKeys.all, 'triplewin', companyId],
|
|
175
|
-
// Overdue & Expired
|
|
176
|
-
overdueInvoices: (expiredType) => [...invoicingKeys.all, 'overdueInvoices', expiredType],
|
|
177
|
-
expiredInvoices: () => [...invoicingKeys.all, 'expiredInvoices'],
|
|
178
|
-
expiredTypes: () => [...invoicingKeys.all, 'expiredTypes'],
|
|
179
|
-
expiredByCustomer: (tenant, payerType, payerId, invoiceIds) => [
|
|
180
|
-
...invoicingKeys.all,
|
|
181
|
-
'expiredByCustomer',
|
|
182
|
-
tenant,
|
|
183
|
-
payerType,
|
|
184
|
-
payerId,
|
|
185
|
-
invoiceIds,
|
|
186
|
-
],
|
|
187
|
-
redirectExpiredByCustomer: (tenant, payerType, payerId, shouldRedirect) => [
|
|
188
|
-
...invoicingKeys.all,
|
|
189
|
-
'redirectExpiredByCustomer',
|
|
190
|
-
tenant,
|
|
191
|
-
payerType,
|
|
192
|
-
payerId,
|
|
193
|
-
shouldRedirect,
|
|
194
|
-
],
|
|
195
|
-
// Upcoming & Payments
|
|
196
|
-
upcomingInvoicing: () => [...invoicingKeys.all, 'upcomingInvoicing'],
|
|
197
|
-
processedPayments: () => [...invoicingKeys.all, 'processedPayments'],
|
|
198
|
-
unprocessedPayments: () => [...invoicingKeys.all, 'unprocessedPayments'],
|
|
199
|
-
};
|
|
1
|
+
// The canonical invoicing key factories live in @solibo/solibo-query. This file
|
|
2
|
+
// used to hold a copy that drifted out of sync and never trimmed trailing
|
|
3
|
+
// undefined segments, so short invalidation calls silently matched nothing.
|
|
4
|
+
export { invoicingKeys } from '@solibo/solibo-query';
|
|
200
5
|
//# sourceMappingURL=invoicingKeys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoicingKeys.js","sourceRoot":"","sources":["../../../../src/api/queries/invoicing/invoicingKeys.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,GAAG,EAAE,CAAC,WAAW,CAAU;IAE3B,YAAY;IACZ,SAAS,EAAE,CAAC,SAAiC,EAAE,EAAE,CAC7C,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,SAAS,CAAU;IAC3D,cAAc,EAAE,CACZ,SAAiC,EACjC,UAAkC,EAClC,IAAmB,EACrB,EAAE,CACA;QACI,GAAG,aAAa,CAAC,GAAG;QACpB,gBAAgB;QAChB,SAAS;QACT,UAAU;QACV,IAAI;KACE;IACd,gBAAgB,EAAE,CACd,SAAiC,EACjC,UAAkC,EACpC,EAAE,CACA;QACI,GAAG,aAAa,CAAC,GAAG;QACpB,kBAAkB;QAClB,SAAS;QACT,UAAU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,qBAAqB,CAAU;CAC7D,CAAC","sourcesContent":["import type {\n CustomerType,\n ExpiredType,\n Id,\n InvoicePlanType,\n PayerType,\n} from '@solibo/solibo-sdk';\n\nexport const invoicingKeys = {\n all: ['invoicing'] as const,\n\n // Customers\n customers: (companyId?: Id | null | undefined) =>\n [...invoicingKeys.all, 'customers', companyId] as const,\n customerDetail: (\n companyId?: Id | null | undefined,\n customerId?: Id | null | undefined,\n type?: CustomerType\n ) =>\n [\n ...invoicingKeys.all,\n 'customerDetail',\n companyId,\n customerId,\n type,\n ] as const,\n customerInvoices: (\n companyId?: Id | null | undefined,\n customerId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'customerInvoices',\n companyId,\n customerId,\n ] as const,\n customerMeta: (\n companyId?: Id | null | undefined,\n customerId?: Id | null | undefined\n ) => [...invoicingKeys.all, 'customerMeta', companyId, customerId] as const,\n customerRecipient: (\n companyId?: Id | null | undefined,\n personId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'customerRecipient',\n companyId,\n personId,\n ] as const,\n\n // Invoice Plans\n plans: (\n companyId?: Id | null | undefined,\n active?: boolean,\n type?: InvoicePlanType\n ) => [...invoicingKeys.all, 'plans', companyId, active, type] as const,\n planDetail: (\n companyId?: Id | null | undefined,\n planId?: Id | null | undefined\n ) => [...invoicingKeys.all, 'planDetail', companyId, planId] as const,\n planLines: (\n companyId?: Id | null | undefined,\n planId?: Id | null | undefined\n ) => [...invoicingKeys.all, 'planLines', companyId, planId] as const,\n planLineDetail: (\n companyId?: Id | null | undefined,\n invoicePlanId?: Id | null | undefined,\n invoiceLineId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'planLineDetail',\n companyId,\n invoicePlanId,\n invoiceLineId,\n ] as const,\n planDistributions: (companyId: Id, invoicePlanId: Id) =>\n [\n ...invoicingKeys.all,\n 'planDistributions',\n companyId,\n invoicePlanId,\n ] as const,\n planDistribution: (companyId: Id, invoicePlanId: Id, distributionId: Id) =>\n [\n ...invoicingKeys.all,\n 'planDistribution',\n companyId,\n invoicePlanId,\n distributionId,\n ] as const,\n planTransactions: (companyId: Id, invoicePlanId: Id) =>\n [\n ...invoicingKeys.all,\n 'planTransactions',\n companyId,\n invoicePlanId,\n ] as const,\n planTransactionInvoices: (\n companyId: Id,\n invoicePlanId: Id,\n transactionId: Id\n ) =>\n [\n ...invoicingKeys.all,\n 'planTransactionInvoices',\n companyId,\n invoicePlanId,\n transactionId,\n ] as const,\n plansForSection: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'plansForSection',\n companyId,\n sectionId,\n ] as const,\n planSettings: (\n companyId?: Id | null | undefined,\n planId?: Id | null | undefined\n ) => [...invoicingKeys.all, 'planSettings', companyId, planId] as const,\n planTypes: (companyId?: Id) =>\n [...invoicingKeys.all, 'planTypes', companyId] as const,\n\n // Invoice Settings\n settings: (companyId?: Id | null | undefined) =>\n [...invoicingKeys.all, 'settings', companyId] as const,\n\n // Ad Hoc\n adHocGroups: (companyId?: Id | null | undefined) =>\n [...invoicingKeys.all, 'adHocGroups', companyId] as const,\n adHocGroupDetail: (\n companyId?: Id | null | undefined,\n groupId?: Id | null | undefined\n ) =>\n [...invoicingKeys.all, 'adHocGroupDetail', companyId, groupId] as const,\n adHocLines: (\n companyId: Id,\n type: 'organization' | 'person' | 'section',\n id: Id,\n adhocLineId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'adHocLines',\n companyId,\n type,\n id,\n adhocLineId,\n ] as const,\n planAdHocLines: (\n companyId?: Id | null | undefined,\n invoicePlanId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'planAdHocLines',\n companyId,\n invoicePlanId,\n ] as const,\n\n // Invoices & Queued\n queuedInvoices: (companyId?: Id | null | undefined) =>\n [...invoicingKeys.all, 'queuedInvoices', companyId] as const,\n queuedInvoicePdf: (companyId?: Id | null | undefined, invoiceId?: string) =>\n [\n ...invoicingKeys.all,\n 'queuedInvoicePdf',\n companyId,\n invoiceId,\n ] as const,\n historicInvoices: (\n companyId?: Id | null | undefined,\n periodStart?: Id | null | undefined,\n periodEnd?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'historicInvoices',\n companyId,\n periodStart,\n periodEnd,\n ] as const,\n creditNotes: (companyId?: Id | null | undefined, invoiceId?: string) =>\n [...invoicingKeys.all, 'creditNotes', companyId, invoiceId] as const,\n sectionInvoices: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'sectionInvoices',\n companyId,\n sectionId,\n ] as const,\n\n // Mass Invoice\n massInvoice: (companyId?: Id | null | undefined) =>\n [...invoicingKeys.all, 'massInvoice', companyId] as const,\n massInvoicePreview: (\n companyId?: Id | null | undefined,\n groupId?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'massInvoicePreview',\n companyId,\n groupId,\n ] as const,\n massInvoicePdf: (\n companyId?: Id | null | undefined,\n groupId?: Id | null | undefined,\n iterator?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'massInvoicePdf',\n companyId,\n groupId,\n iterator,\n ] as const,\n\n // Preview\n preview: (\n companyId?: Id | null | undefined,\n plan?: Id | null | undefined,\n at?: Id | null | undefined\n ) => [...invoicingKeys.all, 'preview', companyId, plan, at] as const,\n previewPdf: (\n companyId?: Id | null | undefined,\n customerId?: Id | null | undefined,\n customerType?: string,\n sectionId?: Id | null | undefined,\n planId?: Id | null | undefined,\n at?: Id | null | undefined\n ) =>\n [\n ...invoicingKeys.all,\n 'previewPdf',\n companyId,\n customerId,\n sectionId,\n customerType,\n planId,\n at,\n ] as const,\n\n // Recipients\n recipient: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined\n ) => [...invoicingKeys.all, 'recipient', companyId, sectionId] as const,\n\n // Invoice Details\n invoicePayments: (companyId: Id, invoiceId: string) =>\n [\n ...invoicingKeys.all,\n 'invoicePayments',\n companyId,\n invoiceId,\n ] as const,\n invoicePdfs: (companyId: Id, invoiceIds: string[]) =>\n [...invoicingKeys.all, 'invoicePdfs', companyId, invoiceIds] as const,\n customerInvoicePdf: (\n companyId?: Id | null | undefined,\n customerType?: string,\n customerId?: Id | null | undefined,\n invoiceId?: string\n ) =>\n [\n ...invoicingKeys.all,\n 'customerInvoicePdf',\n companyId,\n customerType,\n customerId,\n invoiceId,\n ] as const,\n customerInvoiceOverdueFirstPdf: (\n companyId?: Id | null | undefined,\n customerType?: string,\n customerId?: Id | null | undefined,\n invoiceId?: string\n ) =>\n [\n ...invoicingKeys.all,\n 'customerInvoiceOverdueFirstPdf',\n companyId,\n customerType,\n customerId,\n invoiceId,\n ] as const,\n customerInvoiceOverdueSecondPdf: (\n companyId?: Id | null | undefined,\n customerType?: string,\n customerId?: Id | null | undefined,\n invoiceId?: string\n ) =>\n [\n ...invoicingKeys.all,\n 'customerInvoiceOverdueSecondPdf',\n companyId,\n customerType,\n customerId,\n invoiceId,\n ] as const,\n\n // Triplewin\n triplewinActivated: (companyId?: Id | null | undefined) =>\n [...invoicingKeys.all, 'triplewinActivated', companyId] as const,\n triplewin: (companyId?: Id | null | undefined) =>\n [...invoicingKeys.all, 'triplewin', companyId] as const,\n\n // Overdue & Expired\n overdueInvoices: (expiredType: ExpiredType) =>\n [...invoicingKeys.all, 'overdueInvoices', expiredType] as const,\n expiredInvoices: () => [...invoicingKeys.all, 'expiredInvoices'] as const,\n expiredTypes: () => [...invoicingKeys.all, 'expiredTypes'] as const,\n expiredByCustomer: (\n tenant?: string,\n payerType?: PayerType,\n payerId?: string,\n invoiceIds?: string[]\n ) =>\n [\n ...invoicingKeys.all,\n 'expiredByCustomer',\n tenant,\n payerType,\n payerId,\n invoiceIds,\n ] as const,\n redirectExpiredByCustomer: (\n tenant?: string,\n payerType?: PayerType,\n payerId?: string,\n shouldRedirect?: boolean\n ) =>\n [\n ...invoicingKeys.all,\n 'redirectExpiredByCustomer',\n tenant,\n payerType,\n payerId,\n shouldRedirect,\n ] as const,\n\n // Upcoming & Payments\n upcomingInvoicing: () =>\n [...invoicingKeys.all, 'upcomingInvoicing'] as const,\n processedPayments: () =>\n [...invoicingKeys.all, 'processedPayments'] as const,\n unprocessedPayments: () =>\n [...invoicingKeys.all, 'unprocessedPayments'] as const,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"invoicingKeys.js","sourceRoot":"","sources":["../../../../src/api/queries/invoicing/invoicingKeys.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0EAA0E;AAC1E,4EAA4E;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["// The canonical invoicing key factories live in @solibo/solibo-query. This file\n// used to hold a copy that drifted out of sync and never trimmed trailing\n// undefined segments, so short invalidation calls silently matched nothing.\nexport { invoicingKeys } from '@solibo/solibo-query';\n"]}
|
|
@@ -4,6 +4,9 @@ export declare const useSectionInvoicesQueries: (params: {
|
|
|
4
4
|
sectionIds?: Id[] | null | undefined;
|
|
5
5
|
secondaryCompanyId?: Id | null | undefined;
|
|
6
6
|
fields?: string;
|
|
7
|
+
pageToken?: string;
|
|
8
|
+
autoPaginate?: boolean | null;
|
|
9
|
+
count?: number;
|
|
7
10
|
}) => {
|
|
8
11
|
data: import("@solibo/solibo-sdk").PagedListInvoice[];
|
|
9
12
|
isPending: boolean;
|
|
@@ -10,11 +10,17 @@ export const useSectionInvoicesQueries = (params) => {
|
|
|
10
10
|
queryKey: [
|
|
11
11
|
invoicingKeys.sectionInvoices(actualCompanyId, sectionId),
|
|
12
12
|
params.fields,
|
|
13
|
+
params.pageToken,
|
|
14
|
+
params.autoPaginate ?? false,
|
|
15
|
+
params.count,
|
|
13
16
|
],
|
|
14
17
|
queryFn: () => sdk.api.invoicing.indexInvoicingSectionInvoices({
|
|
15
18
|
companyId: actualCompanyId,
|
|
16
19
|
sectionId,
|
|
17
20
|
fields: params.fields,
|
|
21
|
+
pageToken: params.pageToken,
|
|
22
|
+
autoPaginate: params.autoPaginate ?? false,
|
|
23
|
+
count: params.count,
|
|
18
24
|
}),
|
|
19
25
|
enabled: !!params.sectionIds && !!actualCompanyId,
|
|
20
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSectionInvoicesQueries.js","sourceRoot":"","sources":["../../../../src/api/queries/invoicing/useSectionInvoicesQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"useSectionInvoicesQueries.js","sourceRoot":"","sources":["../../../../src/api/queries/invoicing/useSectionInvoicesQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAQzC,EAAE,EAAE;IACD,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,MAAM,eAAe,GAAG,MAAM,CAAC,kBAAkB,IAAI,MAAM,CAAC,SAAS,CAAC;IAEtE,MAAM,qBAAqB,GAAG,UAAU,CAAC;QACrC,OAAO,EAAE,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;YACjD,OAAO;gBACH,QAAQ,EAAE;oBACN,aAAa,CAAC,eAAe,CAAC,eAAe,EAAE,SAAS,CAAC;oBACzD,MAAM,CAAC,MAAM;oBACb,MAAM,CAAC,SAAS;oBAChB,MAAM,CAAC,YAAY,IAAI,KAAK;oBAC5B,MAAM,CAAC,KAAK;iBACf;gBACD,OAAO,EAAE,GAAG,EAAE,CACV,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,6BAA6B,CAAC;oBAC5C,SAAS,EAAE,eAAgB;oBAC3B,SAAS;oBACT,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,KAAK;oBAC1C,KAAK,EAAE,MAAM,CAAC,KAAK;iBACtB,CAAC;gBACN,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC,eAAe;aACpD,CAAC;QACN,CAAC,CAAC;KACL,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,qBAAqB;SAC7B,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC;SAC/C,GAAG,CAAC,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEtD,MAAM,SAAS,GAAG,qBAAqB,CAAC,IAAI,CACxC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,CAC5C,CAAC;IAEF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC/B,CAAC,CAAC","sourcesContent":["import { useQueries } from '@tanstack/react-query';\nimport { useSdk } from '../../../sdkProvider.js';\nimport { Id } from '@solibo/solibo-sdk';\nimport { invoicingKeys } from './invoicingKeys.js';\n\nexport const useSectionInvoicesQueries = (params: {\n companyId?: Id | null | undefined;\n sectionIds?: Id[] | null | undefined;\n secondaryCompanyId?: Id | null | undefined;\n fields?: string;\n pageToken?: string;\n autoPaginate?: boolean | null;\n count?: number;\n}) => {\n const sdk = useSdk();\n const actualCompanyId = params.secondaryCompanyId ?? params.companyId;\n\n const ownedSectionsInvoices = useQueries({\n queries: (params.sectionIds ?? []).map((sectionId) => {\n return {\n queryKey: [\n invoicingKeys.sectionInvoices(actualCompanyId, sectionId),\n params.fields,\n params.pageToken,\n params.autoPaginate ?? false,\n params.count,\n ],\n queryFn: () =>\n sdk.api.invoicing.indexInvoicingSectionInvoices({\n companyId: actualCompanyId!,\n sectionId,\n fields: params.fields,\n pageToken: params.pageToken,\n autoPaginate: params.autoPaginate ?? false,\n count: params.count,\n }),\n enabled: !!params.sectionIds && !!actualCompanyId,\n };\n }),\n });\n const data = ownedSectionsInvoices\n .filter((result) => result.status === 'success')\n .map((successfulResult) => successfulResult.data);\n\n const isPending = ownedSectionsInvoices.some(\n (request) => request.status === 'pending'\n );\n\n return { data, isPending };\n};\n"]}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { authedUserQueryOptions } from '@solibo/solibo-query';
|
|
2
|
+
import type { RestParams } from '../../../utils/restParams.js';
|
|
3
|
+
export declare const useAuthedUser: (...args: RestParams<typeof authedUserQueryOptions>) => import("@tanstack/react-query").UseQueryResult<import("@solibo/solibo-sdk").AuthUser, Error>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
2
|
import { useSdk } from '../../../sdkProvider.js';
|
|
3
3
|
import { authedUserQueryOptions } from '@solibo/solibo-query';
|
|
4
|
-
export const useAuthedUser = () => {
|
|
4
|
+
export const useAuthedUser = (...args) => {
|
|
5
5
|
const sdk = useSdk();
|
|
6
|
-
return useQuery(authedUserQueryOptions(sdk));
|
|
6
|
+
return useQuery(authedUserQueryOptions(sdk, ...args));
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=useAuthedUser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuthedUser.js","sourceRoot":"","sources":["../../../../src/api/queries/user/useAuthedUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"useAuthedUser.js","sourceRoot":"","sources":["../../../../src/api/queries/user/useAuthedUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,MAAM,CAAC,MAAM,aAAa,GAAG,CACzB,GAAG,IAA+C,EACpD,EAAE;IACA,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,OAAO,QAAQ,CAAC,sBAAsB,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC","sourcesContent":["import { useQuery } from '@tanstack/react-query';\nimport { useSdk } from '../../../sdkProvider.js';\nimport { authedUserQueryOptions } from '@solibo/solibo-query';\nimport type { RestParams } from '../../../utils/restParams.js';\n\nexport const useAuthedUser = (\n ...args: RestParams<typeof authedUserQueryOptions>\n) => {\n const sdk = useSdk();\n return useQuery(authedUserQueryOptions(sdk, ...args));\n};\n"]}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { userQueryOptions } from '@solibo/solibo-query';
|
|
2
|
+
import type { RestParams } from '../../../utils/restParams.js';
|
|
3
|
+
export declare const useUser: (...args: RestParams<typeof userQueryOptions>) => import("@tanstack/react-query").UseQueryResult<import("@solibo/solibo-sdk").PersonUser, Error>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
2
|
import { useSdk } from '../../../sdkProvider.js';
|
|
3
3
|
import { userQueryOptions } from '@solibo/solibo-query';
|
|
4
|
-
export const useUser = () => {
|
|
4
|
+
export const useUser = (...args) => {
|
|
5
5
|
const sdk = useSdk();
|
|
6
|
-
return useQuery(userQueryOptions(sdk));
|
|
6
|
+
return useQuery(userQueryOptions(sdk, ...args));
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=useUser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUser.js","sourceRoot":"","sources":["../../../../src/api/queries/user/useUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"useUser.js","sourceRoot":"","sources":["../../../../src/api/queries/user/useUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAG,IAAyC,EAAE,EAAE;IACpE,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,OAAO,QAAQ,CAAC,gBAAgB,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC","sourcesContent":["import { useQuery } from '@tanstack/react-query';\nimport { useSdk } from '../../../sdkProvider.js';\nimport { userQueryOptions } from '@solibo/solibo-query';\nimport type { RestParams } from '../../../utils/restParams.js';\n\nexport const useUser = (...args: RestParams<typeof userQueryOptions>) => {\n const sdk = useSdk();\n return useQuery(userQueryOptions(sdk, ...args));\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solibo/solibo-react",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.15",
|
|
4
4
|
"description": "React hooks for Solibo SDK (wraps @solibo/solibo-query)",
|
|
5
5
|
"homepage": "https://sdk.solibo.no",
|
|
6
6
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"react": "^19.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@solibo/solibo-
|
|
37
|
-
"@solibo/solibo-
|
|
36
|
+
"@solibo/solibo-sdk": "1.16.15",
|
|
37
|
+
"@solibo/solibo-query": "1.16.15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint/js": "^10.0.1",
|