@accounter/client 0.0.8-alpha-20251022132023-9f41aae2ce16f8761101edc548f486cc6ce80333 → 0.0.8-alpha-20251022144027-c9c7a4b309de8a72dfd0ec4f11e63713ad12878f
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/CHANGELOG.md +1 -25
- package/dist/assets/index-B2UYAO1O.css +1 -0
- package/dist/assets/index-CZb2m31K.js +1229 -0
- package/dist/assets/{index.es-CL8po8bM.js → index.es-9gVMpHTc.js} +5 -5
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/components/business/admin-business-section.tsx +284 -0
- package/src/components/business/index.tsx +22 -0
- package/src/components/business-transactions/business-extended-info.tsx +15 -13
- package/src/components/business-transactions/business-transactions-single.tsx +3 -3
- package/src/components/business-transactions/index.tsx +1 -12
- package/src/components/business-trips/business-trip.tsx +3 -3
- package/src/components/charges/cells/business-trip.tsx +8 -6
- package/src/components/charges/cells/counterparty.tsx +5 -7
- package/src/components/common/accounter-table.tsx +5 -6
- package/src/components/common/business-trip-report/parts/core-expense-row.tsx +9 -11
- package/src/components/common/business-trip-report/parts/uncategorized-transactions.tsx +13 -11
- package/src/components/common/buttons/button-with-label.tsx +41 -0
- package/src/components/common/buttons/button.tsx +44 -0
- package/src/components/common/buttons/index.ts +2 -0
- package/src/components/common/buttons/logout-button.tsx +6 -7
- package/src/components/common/documents-to-charge-matcher/selection-handler/index.tsx +2 -4
- package/src/components/common/documents-to-charge-matcher/selection-handler/wide-filtered-selection.tsx +7 -5
- package/src/components/common/forms/edit-document.tsx +10 -21
- package/src/components/common/new-documents-list.tsx +8 -10
- package/src/components/documents-table/cells/creditor.tsx +4 -11
- package/src/components/documents-table/cells/debtor.tsx +4 -11
- package/src/components/layout/dashboard-layout.tsx +0 -4
- package/src/components/layout/sidelinks.tsx +27 -28
- package/src/components/ledger-table/counterparty-cell.tsx +13 -19
- package/src/components/login-page.tsx +1 -2
- package/src/components/reports/corporate-tax-ruling-compliance-report/index.tsx +3 -3
- package/src/components/reports/profit-and-loss-report/index.tsx +3 -3
- package/src/components/reports/tax-report/index.tsx +3 -3
- package/src/components/screens/businesses/business.tsx +9 -21
- package/src/components/screens/charges/charge.tsx +9 -22
- package/src/components/transactions-table/cells/counterparty.tsx +2 -9
- package/src/components/transactions-table/cells-legacy/counterparty.tsx +2 -9
- package/src/gql/gql.ts +15 -3
- package/src/gql/graphql.ts +4913 -1559
- package/src/hooks/use-update-admin-business.ts +71 -0
- package/src/index.tsx +22 -4
- package/src/providers/auth-guard.tsx +23 -14
- package/src/providers/index.tsx +2 -7
- package/src/providers/urql.tsx +12 -7
- package/src/providers/user-provider.tsx +2 -3
- package/dist/assets/Checkbox-DBF5r7jA.js +0 -6
- package/dist/assets/Progress-Cjv9yrat.js +0 -1
- package/dist/assets/Typography-DdVppmQe.js +0 -1
- package/dist/assets/accordion-DcMd-Til.js +0 -1
- package/dist/assets/accountant-approvals-CU_EA64d.js +0 -1
- package/dist/assets/all-charges-DKGmrDeD.js +0 -1
- package/dist/assets/arrow-up-down-BeIaAKWn.js +0 -6
- package/dist/assets/business-EtSaFzKh.js +0 -37
- package/dist/assets/business-transactions-single-B0Up2Bs4.js +0 -1
- package/dist/assets/business-trip-CmMmdjCh.js +0 -1
- package/dist/assets/charges-filters-CqWjSIKI.js +0 -1
- package/dist/assets/charges-ledger-validation-DHfLjNlq.js +0 -1
- package/dist/assets/chart-D1Y6fN3z.js +0 -74
- package/dist/assets/data-table-pagination-BCciANKD.js +0 -11
- package/dist/assets/editable-business-trip-VNJjiYOp.js +0 -16
- package/dist/assets/graphql-document-dedupe-fragments-ByT8-wlV.js +0 -1
- package/dist/assets/index-1L3dEkVN.js +0 -1
- package/dist/assets/index-4ZIYAzBJ.js +0 -1
- package/dist/assets/index-4r9JDo8p.js +0 -1
- package/dist/assets/index-BFHiMLVc.js +0 -1
- package/dist/assets/index-BGmhxff9.js +0 -1
- package/dist/assets/index-BMcyYDGt.js +0 -11
- package/dist/assets/index-BVQkLk5i.js +0 -1
- package/dist/assets/index-Bj3HckU6.js +0 -876
- package/dist/assets/index-BnQW4CTb.js +0 -1
- package/dist/assets/index-C0FVazZA.js +0 -24
- package/dist/assets/index-CUDeasQ_.js +0 -1
- package/dist/assets/index-Cfm6e2hX.js +0 -1
- package/dist/assets/index-Cqz-mRoO.js +0 -17
- package/dist/assets/index-Cs7MeC4J.js +0 -137
- package/dist/assets/index-CzzfC-dD.css +0 -1
- package/dist/assets/index-DABsOOfA.js +0 -1
- package/dist/assets/index-DB4BgQdp.js +0 -2
- package/dist/assets/index-DV-Q6DUw.js +0 -1
- package/dist/assets/index-Dd5ylSyH.js +0 -9
- package/dist/assets/index-Dn7p3J8Q.js +0 -1
- package/dist/assets/index-Dpk6i3ex.js +0 -6
- package/dist/assets/index-EiT4SOpW.js +0 -2
- package/dist/assets/index-rcKvu7eR.js +0 -6
- package/dist/assets/index-sDbz8nnb.js +0 -1
- package/dist/assets/issue-document-CYdlZijI.js +0 -1
- package/dist/assets/login-page-CnMdssTN.js +0 -1
- package/dist/assets/missing-info-charges-CzeKbCyG.js +0 -1
- package/dist/assets/page-not-found-Bsa0DCM4.js +0 -1
- package/dist/assets/pencil-BMWYIsZB.js +0 -6
- package/dist/assets/report-commentary-row-D9AtKtZx.js +0 -1
- package/dist/assets/save-DC_eQcBj.js +0 -11
- package/dist/assets/sequential-CAnleQny.js +0 -1
- package/dist/assets/similar-charges-by-business-modal-Dmb2ZymF.js +0 -1
- package/dist/assets/sub-BIMwxqar.js +0 -1
- package/dist/assets/subMonths-B7SR4Lli.js +0 -1
- package/src/components/error-boundary.tsx +0 -189
- package/src/components/layout/breadcrumbs.tsx +0 -72
- package/src/components/layout/document-title.tsx +0 -26
- package/src/components/layout/navigation-progress.tsx +0 -52
- package/src/components/layout/page-skeleton.tsx +0 -49
- package/src/providers/urql-client.ts +0 -86
- package/src/router/config.tsx +0 -534
- package/src/router/layouts/dashboard-layout.tsx +0 -20
- package/src/router/layouts/root-layout.tsx +0 -69
- package/src/router/loaders/auth-loader.ts +0 -32
- package/src/router/loaders/business-loader.ts +0 -25
- package/src/router/loaders/charge-loader.ts +0 -25
- package/src/router/loaders/index.ts +0 -17
- package/src/router/routes.ts +0 -88
- package/src/router/types.ts +0 -68
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext, useEffect, useState, type ReactElement } from 'react';
|
|
2
2
|
import { Loader2 } from 'lucide-react';
|
|
3
|
-
import {
|
|
3
|
+
import { useMatch } from 'react-router-dom';
|
|
4
4
|
import { useQuery } from 'urql';
|
|
5
5
|
import { Table } from '@mantine/core';
|
|
6
6
|
import { ProfitAndLossReportDocument } from '../../../gql/graphql.js';
|
|
@@ -135,10 +135,10 @@ import { ProfitAndLossReportFilter } from './profit-and-loss-report-filters.js';
|
|
|
135
135
|
`;
|
|
136
136
|
|
|
137
137
|
export const ProfitAndLossReport = (): ReactElement => {
|
|
138
|
-
const
|
|
138
|
+
const match = useMatch('/reports/profit-and-loss/:year');
|
|
139
139
|
const { setFiltersContext } = useContext(FiltersContext);
|
|
140
140
|
const [year, setYear] = useState<number>(
|
|
141
|
-
|
|
141
|
+
(match ? Number(match.params.year) : undefined) ?? new Date().getFullYear(),
|
|
142
142
|
);
|
|
143
143
|
const [referenceYears, setReferenceYears] = useState<number[]>([]);
|
|
144
144
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext, useEffect, useState, type ReactElement } from 'react';
|
|
2
2
|
import { Loader2 } from 'lucide-react';
|
|
3
|
-
import {
|
|
3
|
+
import { useMatch } from 'react-router-dom';
|
|
4
4
|
import { useQuery } from 'urql';
|
|
5
5
|
import { Table } from '@mantine/core';
|
|
6
6
|
import { TaxReportDocument } from '../../../gql/graphql.js';
|
|
@@ -140,10 +140,10 @@ import { TaxReportFilter } from './tax-report-filters.js';
|
|
|
140
140
|
`;
|
|
141
141
|
|
|
142
142
|
export const TaxReport = (): ReactElement => {
|
|
143
|
-
const
|
|
143
|
+
const match = useMatch('/reports/tax/:year');
|
|
144
144
|
const { setFiltersContext } = useContext(FiltersContext);
|
|
145
145
|
const [year, setYear] = useState<number>(
|
|
146
|
-
|
|
146
|
+
(match ? Number(match.params.year) : undefined) ?? new Date().getFullYear(),
|
|
147
147
|
);
|
|
148
148
|
const [referenceYears, setReferenceYears] = useState<number[]>([]);
|
|
149
149
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useMatch } from 'react-router-dom';
|
|
3
3
|
import { useQuery } from 'urql';
|
|
4
4
|
import Business from '@/components/business/index.js';
|
|
5
|
-
import { BusinessScreenDocument
|
|
5
|
+
import { BusinessScreenDocument } from '../../../gql/graphql.js';
|
|
6
6
|
import { AccounterLoader } from '../../common/index.js';
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions -- used by codegen
|
|
@@ -20,37 +20,25 @@ export function getBusinessHref(businessId: string): string {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const BusinessScreen = (): ReactElement => {
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
let loaderData: BusinessScreenQuery | undefined;
|
|
27
|
-
try {
|
|
28
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
29
|
-
loaderData = useLoaderData() as BusinessScreenQuery;
|
|
30
|
-
} catch {
|
|
31
|
-
// No loader data - fallback to query
|
|
32
|
-
}
|
|
23
|
+
const match = useMatch('/businesses/:businessId');
|
|
24
|
+
|
|
25
|
+
const businessId = match?.params.businessId;
|
|
33
26
|
|
|
34
|
-
// Only fetch if we don't have loader data
|
|
35
27
|
const [{ data, fetching }, fetchBusiness] = useQuery({
|
|
36
28
|
query: BusinessScreenDocument,
|
|
37
|
-
pause: !businessId
|
|
29
|
+
pause: !businessId,
|
|
38
30
|
variables: {
|
|
39
31
|
businessId: businessId ?? '',
|
|
40
32
|
},
|
|
41
33
|
});
|
|
42
34
|
|
|
43
|
-
|
|
44
|
-
const businessData = loaderData || data;
|
|
45
|
-
const isLoading = !loaderData && fetching;
|
|
46
|
-
|
|
47
|
-
if (isLoading && !businessData?.business) {
|
|
35
|
+
if (fetching && !data?.business) {
|
|
48
36
|
return <AccounterLoader />;
|
|
49
37
|
}
|
|
50
38
|
|
|
51
|
-
if (!businessId || !
|
|
39
|
+
if (!businessId || !data?.business) {
|
|
52
40
|
return <div>Business not found</div>;
|
|
53
41
|
}
|
|
54
42
|
|
|
55
|
-
return <Business data={
|
|
43
|
+
return <Business data={data.business} refetchBusiness={async () => fetchBusiness()} />;
|
|
56
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState, type ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useMatch } from 'react-router-dom';
|
|
3
3
|
import { useQuery } from 'urql';
|
|
4
|
-
import { ChargeScreenDocument
|
|
4
|
+
import { ChargeScreenDocument } from '../../../gql/graphql.js';
|
|
5
5
|
import { ChargesTable } from '../../charges/charges-table.js';
|
|
6
6
|
import {
|
|
7
7
|
AccounterLoader,
|
|
@@ -29,17 +29,9 @@ type Props = {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const Charge = ({ chargeId }: Props): ReactElement => {
|
|
32
|
-
const
|
|
33
|
-
const id = chargeId || chargeIdFromUrl;
|
|
32
|
+
const match = useMatch('/charges/:chargeId');
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
let loaderData: ChargeScreenQuery | undefined;
|
|
37
|
-
try {
|
|
38
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
39
|
-
loaderData = useLoaderData() as ChargeScreenQuery;
|
|
40
|
-
} catch {
|
|
41
|
-
// No loader data - component used outside router context (e.g., as child component)
|
|
42
|
-
}
|
|
34
|
+
const id = chargeId || match?.params.chargeId;
|
|
43
35
|
|
|
44
36
|
const [editChargeId, setEditChargeId] = useState<
|
|
45
37
|
{ id: string; onChange: () => void } | undefined
|
|
@@ -51,24 +43,19 @@ export const Charge = ({ chargeId }: Props): ReactElement => {
|
|
|
51
43
|
undefined,
|
|
52
44
|
);
|
|
53
45
|
|
|
54
|
-
// Only fetch if we don't have loader data and need to fetch (prop-based usage)
|
|
55
46
|
const [{ data, fetching }, fetchCharge] = useQuery({
|
|
56
47
|
query: ChargeScreenDocument,
|
|
57
|
-
pause: !id
|
|
48
|
+
pause: !id,
|
|
58
49
|
variables: {
|
|
59
50
|
chargeId: id ?? '',
|
|
60
51
|
},
|
|
61
52
|
});
|
|
62
53
|
|
|
63
54
|
useEffect(() => {
|
|
64
|
-
if (id
|
|
55
|
+
if (id) {
|
|
65
56
|
fetchCharge();
|
|
66
57
|
}
|
|
67
|
-
}, [id,
|
|
68
|
-
|
|
69
|
-
// Use loader data if available, otherwise use query data
|
|
70
|
-
const chargeData = loaderData || data;
|
|
71
|
-
const isLoading = !loaderData && fetching;
|
|
58
|
+
}, [id, fetchCharge]);
|
|
72
59
|
|
|
73
60
|
if (!id) {
|
|
74
61
|
return <div>Charge not found</div>;
|
|
@@ -76,14 +63,14 @@ export const Charge = ({ chargeId }: Props): ReactElement => {
|
|
|
76
63
|
|
|
77
64
|
return (
|
|
78
65
|
<>
|
|
79
|
-
{
|
|
66
|
+
{fetching ? (
|
|
80
67
|
<AccounterLoader />
|
|
81
68
|
) : (
|
|
82
69
|
<ChargesTable
|
|
83
70
|
setEditChargeId={setEditChargeId}
|
|
84
71
|
setInsertDocument={setInsertDocument}
|
|
85
72
|
setMatchDocuments={setMatchDocuments}
|
|
86
|
-
data={
|
|
73
|
+
data={data?.charge ? [data.charge] : []}
|
|
87
74
|
isAllOpened
|
|
88
75
|
/>
|
|
89
76
|
)}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState, type ReactElement } from 'react';
|
|
2
2
|
import { CheckIcon } from 'lucide-react';
|
|
3
|
-
import { Link } from 'react-router-dom';
|
|
4
3
|
import type { ChargeFilter } from '../../../gql/graphql.js';
|
|
5
4
|
import { useGetBusinesses } from '../../../hooks/use-get-businesses.js';
|
|
6
5
|
import { useUpdateTransaction } from '../../../hooks/use-update-transaction.js';
|
|
@@ -86,15 +85,9 @@ export function Counterparty({ transaction, onChange }: Props): ReactElement {
|
|
|
86
85
|
<>
|
|
87
86
|
<div className="flex flex-wrap flex-col justify-center">
|
|
88
87
|
{counterparty?.id ? (
|
|
89
|
-
<
|
|
90
|
-
to={getHref(counterparty.id)}
|
|
91
|
-
target="_blank"
|
|
92
|
-
rel="noreferrer"
|
|
93
|
-
onClick={event => event.stopPropagation()}
|
|
94
|
-
className="inline-flex items-center font-semibold"
|
|
95
|
-
>
|
|
88
|
+
<a href={getHref(counterparty.id)} target="_blank" rel="noreferrer">
|
|
96
89
|
{name}
|
|
97
|
-
</
|
|
90
|
+
</a>
|
|
98
91
|
) : (
|
|
99
92
|
<>
|
|
100
93
|
<SelectWithSearch
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState, type ReactElement } from 'react';
|
|
2
2
|
import { CheckIcon } from 'lucide-react';
|
|
3
|
-
import { Link } from 'react-router-dom';
|
|
4
3
|
import {
|
|
5
4
|
TransactionsTableEntityFieldsFragmentDoc,
|
|
6
5
|
type ChargeFilter,
|
|
@@ -107,15 +106,9 @@ export function Counterparty({ data, onChange, enableEdit }: Props): ReactElemen
|
|
|
107
106
|
<td>
|
|
108
107
|
<div className="flex flex-wrap gap-1 items-center justify-center">
|
|
109
108
|
{counterparty?.id ? (
|
|
110
|
-
<
|
|
111
|
-
to={getHref(counterparty.id)}
|
|
112
|
-
target="_blank"
|
|
113
|
-
rel="noreferrer"
|
|
114
|
-
onClick={event => event.stopPropagation()}
|
|
115
|
-
className="inline-flex items-center font-semibold"
|
|
116
|
-
>
|
|
109
|
+
<a href={getHref(counterparty.id)} target="_blank" rel="noreferrer">
|
|
117
110
|
{name}
|
|
118
|
-
</
|
|
111
|
+
</a>
|
|
119
112
|
) : (
|
|
120
113
|
<>
|
|
121
114
|
<SelectWithSearch
|
package/src/gql/gql.ts
CHANGED
|
@@ -21,12 +21,13 @@ type Documents = {
|
|
|
21
21
|
"\n query BusinessTripsRowValidation($id: UUID!) {\n businessTrip(id: $id) {\n id\n uncategorizedTransactions {\n transaction {\n ... on Transaction @defer {\n id\n }\n }\n }\n summary {\n ... on BusinessTripSummary @defer {\n errors\n }\n }\n }\n }\n": typeof types.BusinessTripsRowValidationDocument,
|
|
22
22
|
"\n query EditableBusinessTrip($businessTripId: UUID!) {\n businessTrip(id: $businessTripId) {\n id\n ...BusinessTripReportHeaderFields\n ...BusinessTripReportAttendeesFields\n ...BusinessTripUncategorizedTransactionsFields\n ...BusinessTripReportFlightsFields\n ...BusinessTripReportAccommodationsFields\n ...BusinessTripReportTravelAndSubsistenceFields\n ...BusinessTripReportCarRentalFields\n ...BusinessTripReportOtherFields\n ...BusinessTripReportSummaryFields\n ... on BusinessTrip {\n uncategorizedTransactions {\n transaction {\n id\n }\n }\n }\n }\n }\n": typeof types.EditableBusinessTripDocument,
|
|
23
23
|
"\n query BusinessTripsScreen {\n allBusinessTrips {\n id\n name\n dates {\n start\n }\n ...BusinessTripsRowFields\n }\n }\n": typeof types.BusinessTripsScreenDocument,
|
|
24
|
+
"\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n": typeof types.BusinessAdminSectionFragmentDoc,
|
|
24
25
|
"\n fragment BusinessHeader on Business {\n __typename\n id\n name\n createdAt\n ... on LtdFinancialEntity {\n governmentId\n }\n }\n": typeof types.BusinessHeaderFragmentDoc,
|
|
25
26
|
"\n query BusinessChargesSection($page: Int, $limit: Int, $filters: ChargeFilter) {\n allCharges(page: $page, limit: $limit, filters: $filters) {\n nodes {\n id\n ...ChargesTableFields\n }\n pageInfo {\n totalPages\n }\n }\n }\n": typeof types.BusinessChargesSectionDocument,
|
|
26
27
|
"\n fragment BusinessConfigurationSection on Business {\n __typename\n id\n pcn874RecordType\n irsCode\n isActive\n ... on LtdFinancialEntity {\n optionalVAT\n exemptDealer\n isReceiptEnough\n isDocumentsOptional\n sortCode {\n id\n key\n defaultIrsCode\n }\n taxCategory {\n id\n }\n suggestions {\n phrases\n emails\n tags {\n id\n }\n description\n emailListener {\n internalEmailLinks\n emailBody\n attachments\n }\n }\n clientInfo {\n id\n }\n }\n }\n": typeof types.BusinessConfigurationSectionFragmentDoc,
|
|
27
28
|
"\n fragment BusinessContactSection on Business {\n __typename\n id\n ... on LtdFinancialEntity {\n name\n hebrewName\n country\n governmentId\n address\n email\n # localAddress\n phoneNumber\n website\n clientInfo {\n id\n emails\n }\n }\n }\n": typeof types.BusinessContactSectionFragmentDoc,
|
|
28
29
|
"\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n }\n }\n": typeof types.ClientContractsSectionDocument,
|
|
29
|
-
"\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n }\n": typeof types.BusinessPageFragmentDoc,
|
|
30
|
+
"\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n adminInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n ...BusinessAdminSection\n }\n": typeof types.BusinessPageFragmentDoc,
|
|
30
31
|
"\n fragment ClientIntegrationsSection on LtdFinancialEntity {\n id\n clientInfo {\n id\n greenInvoiceId\n hiveId\n }\n }\n": typeof types.ClientIntegrationsSectionFragmentDoc,
|
|
31
32
|
"\n query ClientIntegrationsSectionGreenInvoice($clientId: UUID!) {\n greenInvoiceClient(clientId: $clientId) {\n id\n country\n emails\n name\n phone\n taxId\n address\n city\n zip\n fax\n mobile\n }\n }\n": typeof types.ClientIntegrationsSectionGreenInvoiceDocument,
|
|
32
33
|
"\n fragment AllBusinessesRowFields on LtdFinancialEntity {\n id\n ...AllBusinessesNameFields\n ...AllBusinessesHebrewNameFields\n }\n": typeof types.AllBusinessesRowFieldsFragmentDoc,
|
|
@@ -237,6 +238,7 @@ type Documents = {
|
|
|
237
238
|
"\n mutation MergeCharges(\n $baseChargeID: UUID!\n $chargeIdsToMerge: [UUID!]!\n $fields: UpdateChargeInput\n ) {\n mergeCharges(\n baseChargeID: $baseChargeID\n chargeIdsToMerge: $chargeIdsToMerge\n fields: $fields\n ) {\n __typename\n ... on MergeChargeSuccessfulResult {\n charge {\n id\n }\n }\n ... on CommonError {\n message\n }\n }\n }\n": typeof types.MergeChargesDocument,
|
|
238
239
|
"\n mutation PreviewGreenInvoiceDocument($input: NewDocumentInput!) {\n previewGreenInvoiceDocument(input: $input)\n }\n": typeof types.PreviewGreenInvoiceDocumentDocument,
|
|
239
240
|
"\n mutation RegenerateLedger($chargeId: UUID!) {\n regenerateLedgerRecords(chargeId: $chargeId) {\n __typename\n ... on Ledger {\n records {\n id\n }\n }\n ... on CommonError {\n message\n }\n }\n }\n": typeof types.RegenerateLedgerDocument,
|
|
241
|
+
"\n mutation UpdateAdminBusiness($adminBusinessId: UUID!, $fields: UpdateAdminBusinessInput!) {\n updateAdminBusiness(businessId: $adminBusinessId, fields: $fields) {\n id\n }\n }\n": typeof types.UpdateAdminBusinessDocument,
|
|
240
242
|
"\n mutation UpdateBusinessTripAccommodationsExpense(\n $fields: UpdateBusinessTripAccommodationsExpenseInput!\n ) {\n updateBusinessTripAccommodationsExpense(fields: $fields)\n }\n": typeof types.UpdateBusinessTripAccommodationsExpenseDocument,
|
|
241
243
|
"\n mutation UpdateBusinessTripAccountantApproval(\n $businessTripId: UUID!\n $status: AccountantStatus!\n ) {\n updateBusinessTripAccountantApproval(businessTripId: $businessTripId, approvalStatus: $status)\n }\n": typeof types.UpdateBusinessTripAccountantApprovalDocument,
|
|
242
244
|
"\n mutation UpdateBusinessTripAttendee($fields: BusinessTripAttendeeUpdateInput!) {\n updateBusinessTripAttendee(fields: $fields)\n }\n": typeof types.UpdateBusinessTripAttendeeDocument,
|
|
@@ -275,12 +277,13 @@ const documents: Documents = {
|
|
|
275
277
|
"\n query BusinessTripsRowValidation($id: UUID!) {\n businessTrip(id: $id) {\n id\n uncategorizedTransactions {\n transaction {\n ... on Transaction @defer {\n id\n }\n }\n }\n summary {\n ... on BusinessTripSummary @defer {\n errors\n }\n }\n }\n }\n": types.BusinessTripsRowValidationDocument,
|
|
276
278
|
"\n query EditableBusinessTrip($businessTripId: UUID!) {\n businessTrip(id: $businessTripId) {\n id\n ...BusinessTripReportHeaderFields\n ...BusinessTripReportAttendeesFields\n ...BusinessTripUncategorizedTransactionsFields\n ...BusinessTripReportFlightsFields\n ...BusinessTripReportAccommodationsFields\n ...BusinessTripReportTravelAndSubsistenceFields\n ...BusinessTripReportCarRentalFields\n ...BusinessTripReportOtherFields\n ...BusinessTripReportSummaryFields\n ... on BusinessTrip {\n uncategorizedTransactions {\n transaction {\n id\n }\n }\n }\n }\n }\n": types.EditableBusinessTripDocument,
|
|
277
279
|
"\n query BusinessTripsScreen {\n allBusinessTrips {\n id\n name\n dates {\n start\n }\n ...BusinessTripsRowFields\n }\n }\n": types.BusinessTripsScreenDocument,
|
|
280
|
+
"\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n": types.BusinessAdminSectionFragmentDoc,
|
|
278
281
|
"\n fragment BusinessHeader on Business {\n __typename\n id\n name\n createdAt\n ... on LtdFinancialEntity {\n governmentId\n }\n }\n": types.BusinessHeaderFragmentDoc,
|
|
279
282
|
"\n query BusinessChargesSection($page: Int, $limit: Int, $filters: ChargeFilter) {\n allCharges(page: $page, limit: $limit, filters: $filters) {\n nodes {\n id\n ...ChargesTableFields\n }\n pageInfo {\n totalPages\n }\n }\n }\n": types.BusinessChargesSectionDocument,
|
|
280
283
|
"\n fragment BusinessConfigurationSection on Business {\n __typename\n id\n pcn874RecordType\n irsCode\n isActive\n ... on LtdFinancialEntity {\n optionalVAT\n exemptDealer\n isReceiptEnough\n isDocumentsOptional\n sortCode {\n id\n key\n defaultIrsCode\n }\n taxCategory {\n id\n }\n suggestions {\n phrases\n emails\n tags {\n id\n }\n description\n emailListener {\n internalEmailLinks\n emailBody\n attachments\n }\n }\n clientInfo {\n id\n }\n }\n }\n": types.BusinessConfigurationSectionFragmentDoc,
|
|
281
284
|
"\n fragment BusinessContactSection on Business {\n __typename\n id\n ... on LtdFinancialEntity {\n name\n hebrewName\n country\n governmentId\n address\n email\n # localAddress\n phoneNumber\n website\n clientInfo {\n id\n emails\n }\n }\n }\n": types.BusinessContactSectionFragmentDoc,
|
|
282
285
|
"\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n }\n }\n": types.ClientContractsSectionDocument,
|
|
283
|
-
"\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n }\n": types.BusinessPageFragmentDoc,
|
|
286
|
+
"\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n adminInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n ...BusinessAdminSection\n }\n": types.BusinessPageFragmentDoc,
|
|
284
287
|
"\n fragment ClientIntegrationsSection on LtdFinancialEntity {\n id\n clientInfo {\n id\n greenInvoiceId\n hiveId\n }\n }\n": types.ClientIntegrationsSectionFragmentDoc,
|
|
285
288
|
"\n query ClientIntegrationsSectionGreenInvoice($clientId: UUID!) {\n greenInvoiceClient(clientId: $clientId) {\n id\n country\n emails\n name\n phone\n taxId\n address\n city\n zip\n fax\n mobile\n }\n }\n": types.ClientIntegrationsSectionGreenInvoiceDocument,
|
|
286
289
|
"\n fragment AllBusinessesRowFields on LtdFinancialEntity {\n id\n ...AllBusinessesNameFields\n ...AllBusinessesHebrewNameFields\n }\n": types.AllBusinessesRowFieldsFragmentDoc,
|
|
@@ -491,6 +494,7 @@ const documents: Documents = {
|
|
|
491
494
|
"\n mutation MergeCharges(\n $baseChargeID: UUID!\n $chargeIdsToMerge: [UUID!]!\n $fields: UpdateChargeInput\n ) {\n mergeCharges(\n baseChargeID: $baseChargeID\n chargeIdsToMerge: $chargeIdsToMerge\n fields: $fields\n ) {\n __typename\n ... on MergeChargeSuccessfulResult {\n charge {\n id\n }\n }\n ... on CommonError {\n message\n }\n }\n }\n": types.MergeChargesDocument,
|
|
492
495
|
"\n mutation PreviewGreenInvoiceDocument($input: NewDocumentInput!) {\n previewGreenInvoiceDocument(input: $input)\n }\n": types.PreviewGreenInvoiceDocumentDocument,
|
|
493
496
|
"\n mutation RegenerateLedger($chargeId: UUID!) {\n regenerateLedgerRecords(chargeId: $chargeId) {\n __typename\n ... on Ledger {\n records {\n id\n }\n }\n ... on CommonError {\n message\n }\n }\n }\n": types.RegenerateLedgerDocument,
|
|
497
|
+
"\n mutation UpdateAdminBusiness($adminBusinessId: UUID!, $fields: UpdateAdminBusinessInput!) {\n updateAdminBusiness(businessId: $adminBusinessId, fields: $fields) {\n id\n }\n }\n": types.UpdateAdminBusinessDocument,
|
|
494
498
|
"\n mutation UpdateBusinessTripAccommodationsExpense(\n $fields: UpdateBusinessTripAccommodationsExpenseInput!\n ) {\n updateBusinessTripAccommodationsExpense(fields: $fields)\n }\n": types.UpdateBusinessTripAccommodationsExpenseDocument,
|
|
495
499
|
"\n mutation UpdateBusinessTripAccountantApproval(\n $businessTripId: UUID!\n $status: AccountantStatus!\n ) {\n updateBusinessTripAccountantApproval(businessTripId: $businessTripId, approvalStatus: $status)\n }\n": types.UpdateBusinessTripAccountantApprovalDocument,
|
|
496
500
|
"\n mutation UpdateBusinessTripAttendee($fields: BusinessTripAttendeeUpdateInput!) {\n updateBusinessTripAttendee(fields: $fields)\n }\n": types.UpdateBusinessTripAttendeeDocument,
|
|
@@ -564,6 +568,10 @@ export function graphql(source: "\n query EditableBusinessTrip($businessTripId:
|
|
|
564
568
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
565
569
|
*/
|
|
566
570
|
export function graphql(source: "\n query BusinessTripsScreen {\n allBusinessTrips {\n id\n name\n dates {\n start\n }\n ...BusinessTripsRowFields\n }\n }\n"): (typeof documents)["\n query BusinessTripsScreen {\n allBusinessTrips {\n id\n name\n dates {\n start\n }\n ...BusinessTripsRowFields\n }\n }\n"];
|
|
571
|
+
/**
|
|
572
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
573
|
+
*/
|
|
574
|
+
export function graphql(source: "\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n"): (typeof documents)["\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n"];
|
|
567
575
|
/**
|
|
568
576
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
569
577
|
*/
|
|
@@ -587,7 +595,7 @@ export function graphql(source: "\n query ClientContractsSection($clientId: UUI
|
|
|
587
595
|
/**
|
|
588
596
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
589
597
|
*/
|
|
590
|
-
export function graphql(source: "\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n }\n"): (typeof documents)["\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n }\n"];
|
|
598
|
+
export function graphql(source: "\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n adminInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n ...BusinessAdminSection\n }\n"): (typeof documents)["\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n adminInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n ...BusinessAdminSection\n }\n"];
|
|
591
599
|
/**
|
|
592
600
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
593
601
|
*/
|
|
@@ -1428,6 +1436,10 @@ export function graphql(source: "\n mutation PreviewGreenInvoiceDocument($input
|
|
|
1428
1436
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
1429
1437
|
*/
|
|
1430
1438
|
export function graphql(source: "\n mutation RegenerateLedger($chargeId: UUID!) {\n regenerateLedgerRecords(chargeId: $chargeId) {\n __typename\n ... on Ledger {\n records {\n id\n }\n }\n ... on CommonError {\n message\n }\n }\n }\n"): (typeof documents)["\n mutation RegenerateLedger($chargeId: UUID!) {\n regenerateLedgerRecords(chargeId: $chargeId) {\n __typename\n ... on Ledger {\n records {\n id\n }\n }\n ... on CommonError {\n message\n }\n }\n }\n"];
|
|
1439
|
+
/**
|
|
1440
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
1441
|
+
*/
|
|
1442
|
+
export function graphql(source: "\n mutation UpdateAdminBusiness($adminBusinessId: UUID!, $fields: UpdateAdminBusinessInput!) {\n updateAdminBusiness(businessId: $adminBusinessId, fields: $fields) {\n id\n }\n }\n"): (typeof documents)["\n mutation UpdateAdminBusiness($adminBusinessId: UUID!, $fields: UpdateAdminBusinessInput!) {\n updateAdminBusiness(businessId: $adminBusinessId, fields: $fields) {\n id\n }\n }\n"];
|
|
1431
1443
|
/**
|
|
1432
1444
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
1433
1445
|
*/
|