@accounter/client 0.0.8-alpha-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81 → 0.0.8-alpha-20251028123001-a8ce4e53bbde9f6eeded7bfeea650700f6a63130

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +24 -12
  2. package/dist/assets/{Checkbox-D9q62D8v.js → Checkbox-sjgv9dlI.js} +2 -2
  3. package/dist/assets/{Progress-DRjeFVVZ.js → Progress-DKypjBbn.js} +1 -1
  4. package/dist/assets/{Typography-CbuOxmxV.js → Typography-CJfovWMc.js} +1 -1
  5. package/dist/assets/{accordion-pfIKfX4Y.js → accordion-Cfc9ae4H.js} +1 -1
  6. package/dist/assets/{accountant-approvals-CXholBsN.js → accountant-approvals-DhCtddzR.js} +1 -1
  7. package/dist/assets/{all-charges-Cq7JGIw2.js → all-charges-H_xH1cUe.js} +1 -1
  8. package/dist/assets/{arrow-up-down-Dh7BsmBW.js → arrow-up-down-DapQ791y.js} +2 -2
  9. package/dist/assets/{building-2-DsBmoiLM.js → building-2-B5JpJWrx.js} +2 -2
  10. package/dist/assets/business-BtKmlUZR.js +32 -0
  11. package/dist/assets/{business-header-DDDNCIl7.js → business-header-BK89Rfvy.js} +1 -1
  12. package/dist/assets/{business-transactions-single-C8LdMKdp.js → business-transactions-single-Dv6-AKgI.js} +1 -1
  13. package/dist/assets/{business-trip-C5sPEx_a.js → business-trip-DIBdq8Jq.js} +1 -1
  14. package/dist/assets/{charges-filters-CoxkLwLG.js → charges-filters-CTMCRKNm.js} +1 -1
  15. package/dist/assets/{charges-ledger-validation-ZfrK_Aim.js → charges-ledger-validation-c6jklgQz.js} +1 -1
  16. package/dist/assets/{chart-DT0S7sTG.js → chart-0bAgDGey.js} +1 -1
  17. package/dist/assets/{data-table-pagination-BIpu2Fzl.js → data-table-pagination-BgCuddCb.js} +3 -3
  18. package/dist/assets/{editable-business-trip-DTNGD1cG.js → editable-business-trip-Cr87pQT-.js} +4 -4
  19. package/dist/assets/{index-tjro57tL.js → index-B8QopG0Z.js} +1 -1
  20. package/dist/assets/{index-CfBh4W-y.js → index-BBpGo89I.js} +2 -2
  21. package/dist/assets/{index-DUATm10r.js → index-BVZuWqUd.js} +1 -1
  22. package/dist/assets/{index-CqQ5r7_V.js → index-Bt7NK9UB.js} +1 -1
  23. package/dist/assets/index-CBPTpZHL.css +1 -0
  24. package/dist/assets/{index-CM0HVUR5.js → index-CKfzp5hU.js} +1 -1
  25. package/dist/assets/{index-BbN569Ip.js → index-CTzkpoqF.js} +1 -1
  26. package/dist/assets/{index-DTVw9idN.js → index-CaSs1tPq.js} +1 -1
  27. package/dist/assets/{index-C82IZR7M.js → index-Cgl63fgb.js} +1 -1
  28. package/dist/assets/{index-DqHvHWlp.js → index-ChwFk-6u.js} +1 -1
  29. package/dist/assets/{index-c5ib3rgl.js → index-CnHbGv9H.js} +1 -1
  30. package/dist/assets/{index-CbXs_TpY.js → index-CnKUadG6.js} +98 -98
  31. package/dist/assets/{index-CX33776G.js → index-CpqDv0tU.js} +1 -1
  32. package/dist/assets/{index-CH7ebmNN.js → index-CtfXFlRt.js} +1 -1
  33. package/dist/assets/{index-CQqv3cqO.js → index-Cyg6_G-8.js} +1 -1
  34. package/dist/assets/{index-DA5dVRCr.js → index-D92U_VYB.js} +3 -3
  35. package/dist/assets/{index-Cst4LEdT.js → index-DLRffFbF.js} +1 -1
  36. package/dist/assets/{index-TrMaspii.js → index-DaSgVGNd.js} +1 -1
  37. package/dist/assets/{index-DxULggyH.js → index-Dnafld8G.js} +7 -7
  38. package/dist/assets/{index-2pcc30po.js → index-b4v6_EXH.js} +2 -2
  39. package/dist/assets/{index-3FSzrAcq.js → index-f6-rwrBW.js} +1 -1
  40. package/dist/assets/{index-BxZQN0p6.js → index-mXqFMX5P.js} +1 -1
  41. package/dist/assets/{index-0cS85m-R.js → index-sUDYfUlt.js} +1 -1
  42. package/dist/assets/{index-cLwQhCXe.js → index-tgi4TEs-.js} +1 -1
  43. package/dist/assets/{index.es-BUc4piRK.js → index.es-JpTIgXoh.js} +1 -1
  44. package/dist/assets/{issue-document-B_RjziMe.js → issue-document-CejQASYM.js} +1 -1
  45. package/dist/assets/{login-page-B2shLJFL.js → login-page-ByDrdoxH.js} +1 -1
  46. package/dist/assets/{missing-info-charges-DNA-ZjLm.js → missing-info-charges-DHt03bdz.js} +1 -1
  47. package/dist/assets/{page-not-found-CAQqHYW0.js → page-not-found-Bhi5OU5Q.js} +1 -1
  48. package/dist/assets/{pencil-DZ5pOEVX.js → pencil-CEfu8zQ4.js} +2 -2
  49. package/dist/assets/{report-commentary-row-BHgKNhnX.js → report-commentary-row-CmDH8P-d.js} +1 -1
  50. package/dist/assets/{save-CL8bhoFP.js → save-Drpbh6u3.js} +2 -2
  51. package/dist/assets/{sub-C_dogjkK.js → sub-DBgZtyi3.js} +1 -1
  52. package/dist/assets/subMonths-J6RX2Vo3.js +1 -0
  53. package/dist/index.html +2 -2
  54. package/package.json +5 -5
  55. package/src/components/business/contracts-section.tsx +18 -4
  56. package/src/components/clients/contracts/modify-contract-dialog.tsx +64 -11
  57. package/src/gql/gql.ts +6 -6
  58. package/src/gql/graphql.ts +7 -7
  59. package/src/hooks/use-get-all-contracts.ts +1 -1
  60. package/dist/assets/business-B0Z0CMjU.js +0 -32
  61. package/dist/assets/index-BU7S_VxQ.css +0 -1
  62. package/dist/assets/subMonths-adiK1C_h.js +0 -1
@@ -21,7 +21,7 @@ import {
21
21
  query ClientContractsSection($clientId: UUID!) {
22
22
  contractsByClient(clientId: $clientId) {
23
23
  id
24
- purchaseOrder
24
+ purchaseOrders
25
25
  startDate
26
26
  endDate
27
27
  amount {
@@ -46,7 +46,7 @@ function convertContractDataToFormValues(
46
46
  id: contract.id,
47
47
  // TODO: activate this field later. requires additional backend support
48
48
  // operationsLimit: 0, // Placeholder, as this field is not in the query
49
- po: contract.purchaseOrder ?? undefined,
49
+ pos: contract.purchaseOrders ?? undefined,
50
50
  startDate: contract.startDate,
51
51
  endDate: contract.endDate,
52
52
  paymentAmount: contract.amount.raw,
@@ -130,8 +130,22 @@ export function ContractsSection({ clientId }: Props) {
130
130
  </div>
131
131
 
132
132
  <div className="space-y-0">
133
- <p className="text-sm text-muted-foreground">PO Number</p>
134
- <p className="text-sm font-medium font-mono">{contract.purchaseOrder}</p>
133
+ <p className="text-sm text-muted-foreground">PO Numbers</p>
134
+ <p className="text-sm font-medium font-mono">
135
+ {contract.purchaseOrders.toReversed()[0] ?? ''}
136
+ </p>
137
+ {contract.purchaseOrders.length > 1 && (
138
+ <div className="space-x-1">
139
+ {contract.purchaseOrders
140
+ .toReversed()
141
+ .slice(1)
142
+ .map(po => (
143
+ <span key={po} className="text-xs font-thin font-mono">
144
+ {po}
145
+ </span>
146
+ ))}
147
+ </div>
148
+ )}
135
149
  </div>
136
150
 
137
151
  {/* TODO: activate this field later. requires additional backend support */}
@@ -1,8 +1,9 @@
1
1
  import { useCallback, useEffect, useState } from 'react';
2
2
  import { format } from 'date-fns';
3
- import { Plus } from 'lucide-react';
3
+ import { Plus, X } from 'lucide-react';
4
4
  import { useForm } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
+ import { Badge } from '@/components/ui/badge.js';
6
7
  import { Button } from '@/components/ui/button.js';
7
8
  import {
8
9
  Dialog,
@@ -48,7 +49,7 @@ const contractFormSchema = z.object({
48
49
  // operationsLimit: z.number().optional(),
49
50
  startDate: z.iso.date('Start date is required'),
50
51
  endDate: z.iso.date('End date is required'),
51
- po: z.string().optional(),
52
+ pos: z.array(z.string()),
52
53
  paymentAmount: z.number().min(0, 'Payment amount must be non-negative'),
53
54
  paymentCurrency: z.enum(Object.values(Currency), 'Currency is required'),
54
55
  productType: z.enum(Object.values(Product)).optional(),
@@ -67,7 +68,7 @@ const newContractDefaultValues: ContractFormValues = {
67
68
  // operationsLimit: 0,
68
69
  startDate: '',
69
70
  endDate: '',
70
- po: undefined,
71
+ pos: [],
71
72
  paymentAmount: 0,
72
73
  paymentCurrency: Currency.Usd,
73
74
  productType: Product.Hive,
@@ -88,6 +89,7 @@ interface Props {
88
89
  export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
89
90
  const [isDialogOpen, setIsDialogOpen] = useState(false);
90
91
  const [editingContract, setEditingContract] = useState<ContractFormValues | null>(null);
92
+ const [newPO, setNewPO] = useState('');
91
93
 
92
94
  const { updateContract, updating } = useUpdateContract();
93
95
  const { createContract, creating } = useCreateContract();
@@ -97,6 +99,26 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
97
99
  defaultValues: contract || newContractDefaultValues,
98
100
  });
99
101
 
102
+ const addPO = () => {
103
+ const trimmedPO = newPO.trim();
104
+ if (trimmedPO) {
105
+ const currentLinks = form.getValues('pos');
106
+ if (!currentLinks.includes(trimmedPO)) {
107
+ form.setValue('pos', [...currentLinks, trimmedPO], { shouldDirty: true });
108
+ }
109
+ setNewPO('');
110
+ }
111
+ };
112
+
113
+ const removePO = (index: number) => {
114
+ const currentLinks = form.getValues('pos');
115
+ form.setValue(
116
+ 'pos',
117
+ currentLinks.filter((_, i) => i !== index),
118
+ { shouldDirty: true },
119
+ );
120
+ };
121
+
100
122
  useEffect(() => {
101
123
  if (contract) {
102
124
  setEditingContract(contract);
@@ -105,7 +127,7 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
105
127
  // operationsLimit: contract.operationsLimit,
106
128
  startDate: contract.startDate,
107
129
  endDate: contract.endDate,
108
- po: contract.po,
130
+ pos: contract.pos,
109
131
  paymentAmount: contract.paymentAmount,
110
132
  paymentCurrency: contract.paymentCurrency,
111
133
  productType: contract.productType,
@@ -141,7 +163,7 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
141
163
  msCloud: values.msCloudLink,
142
164
  plan: values.subscriptionPlan,
143
165
  product: values.productType,
144
- purchaseOrder: values.po,
166
+ purchaseOrders: values.pos,
145
167
  remarks: values.defaultRemark,
146
168
  startDate: format(new Date(values.startDate), 'yyyy-MM-dd') as TimelessDateString,
147
169
  },
@@ -163,7 +185,7 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
163
185
  msCloud: values.msCloudLink,
164
186
  plan: values.subscriptionPlan,
165
187
  product: values.productType,
166
- purchaseOrder: values.po,
188
+ purchaseOrders: values.pos,
167
189
  remarks: values.defaultRemark,
168
190
  startDate: format(new Date(values.startDate), 'yyyy-MM-dd') as TimelessDateString,
169
191
  },
@@ -211,15 +233,46 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
211
233
  </FormItem>
212
234
  )}
213
235
  /> */}
236
+
214
237
  <FormField
215
238
  control={form.control}
216
- name="po"
239
+ name="pos"
217
240
  render={({ field }) => (
218
241
  <FormItem>
219
- <FormLabel>PO Number</FormLabel>
220
- <FormControl>
221
- <Input placeholder="PO-2024-001" {...field} />
222
- </FormControl>
242
+ <FormLabel>Purchase Orders</FormLabel>
243
+ <div className="flex gap-2">
244
+ <Input
245
+ placeholder="Add PO..."
246
+ value={newPO}
247
+ onChange={e => setNewPO(e.target.value)}
248
+ onKeyDown={e => {
249
+ if (e.key === 'Enter') {
250
+ e.preventDefault();
251
+ addPO();
252
+ }
253
+ }}
254
+ />
255
+ <Button type="button" size="sm" onClick={addPO}>
256
+ <Plus className="h-4 w-4" />
257
+ </Button>
258
+ </div>
259
+ <div className="flex flex-wrap gap-2 mt-2">
260
+ {field.value?.map((link, index) => (
261
+ <Badge key={link} variant="secondary" className="gap-1 max-w-xs truncate">
262
+ {link}
263
+ {index === field.value.length - 1 && (
264
+ <Button
265
+ variant="ghost"
266
+ size="icon"
267
+ className="p-0 size-3"
268
+ onClick={() => removePO(index)}
269
+ >
270
+ <X className="size-3 cursor-pointer flex-shrink-0" />
271
+ </Button>
272
+ )}
273
+ </Badge>
274
+ ))}
275
+ </div>
223
276
  <FormMessage />
224
277
  </FormItem>
225
278
  )}
package/src/gql/gql.ts CHANGED
@@ -26,7 +26,7 @@ type Documents = {
26
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,
27
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,
28
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,
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 query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrders\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,
30
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,
31
31
  "\n fragment ClientIntegrationsSection on LtdFinancialEntity {\n id\n clientInfo {\n id\n greenInvoiceId\n hiveId\n }\n }\n": typeof types.ClientIntegrationsSectionFragmentDoc,
32
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,
@@ -211,7 +211,7 @@ type Documents = {
211
211
  "\n mutation DeleteTag($tagId: UUID!) {\n deleteTag(id: $tagId)\n }\n": typeof types.DeleteTagDocument,
212
212
  "\n mutation FetchIncomeDocuments($ownerId: UUID!) {\n fetchIncomeDocuments(ownerId: $ownerId) {\n id\n ...NewFetchedDocumentFields\n }\n }\n": typeof types.FetchIncomeDocumentsDocument,
213
213
  "\n query AllClients {\n allClients {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n }\n": typeof types.AllClientsDocument,
214
- "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n": typeof types.AllOpenContractsDocument,
214
+ "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrders\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n": typeof types.AllOpenContractsDocument,
215
215
  "\n query AllBusinesses {\n allBusinesses {\n nodes {\n id\n name\n }\n }\n }\n": typeof types.AllBusinessesDocument,
216
216
  "\n query AllCountries {\n allCountries {\n id\n name\n code\n }\n }\n": typeof types.AllCountriesDocument,
217
217
  "\n query AllFinancialEntities {\n allFinancialEntities {\n nodes {\n id\n name\n }\n }\n }\n": typeof types.AllFinancialEntitiesDocument,
@@ -278,7 +278,7 @@ const documents: Documents = {
278
278
  "\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,
279
279
  "\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,
280
280
  "\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,
281
- "\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,
281
+ "\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrders\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,
282
282
  "\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,
283
283
  "\n fragment ClientIntegrationsSection on LtdFinancialEntity {\n id\n clientInfo {\n id\n greenInvoiceId\n hiveId\n }\n }\n": types.ClientIntegrationsSectionFragmentDoc,
284
284
  "\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,
@@ -463,7 +463,7 @@ const documents: Documents = {
463
463
  "\n mutation DeleteTag($tagId: UUID!) {\n deleteTag(id: $tagId)\n }\n": types.DeleteTagDocument,
464
464
  "\n mutation FetchIncomeDocuments($ownerId: UUID!) {\n fetchIncomeDocuments(ownerId: $ownerId) {\n id\n ...NewFetchedDocumentFields\n }\n }\n": types.FetchIncomeDocumentsDocument,
465
465
  "\n query AllClients {\n allClients {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n }\n": types.AllClientsDocument,
466
- "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n": types.AllOpenContractsDocument,
466
+ "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrders\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n": types.AllOpenContractsDocument,
467
467
  "\n query AllBusinesses {\n allBusinesses {\n nodes {\n id\n name\n }\n }\n }\n": types.AllBusinessesDocument,
468
468
  "\n query AllCountries {\n allCountries {\n id\n name\n code\n }\n }\n": types.AllCountriesDocument,
469
469
  "\n query AllFinancialEntities {\n allFinancialEntities {\n nodes {\n id\n name\n }\n }\n }\n": types.AllFinancialEntitiesDocument,
@@ -583,7 +583,7 @@ export function graphql(source: "\n fragment BusinessContactSection on Business
583
583
  /**
584
584
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
585
585
  */
586
- export function graphql(source: "\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 documents)["\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"];
586
+ export function graphql(source: "\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrders\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 documents)["\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrders\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"];
587
587
  /**
588
588
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
589
589
  */
@@ -1323,7 +1323,7 @@ export function graphql(source: "\n query AllClients {\n allClients {\n
1323
1323
  /**
1324
1324
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1325
1325
  */
1326
- export function graphql(source: "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n"): (typeof documents)["\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n"];
1326
+ export function graphql(source: "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrders\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n"): (typeof documents)["\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrders\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n"];
1327
1327
  /**
1328
1328
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
1329
1329
  */