@accounter/client 0.0.8-alpha-20251022132444-51d3ebadb2849ea323e03b88c735cdca4f91db7d → 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/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
  */