@mestra-dev/contract 0.0.303 → 0.0.305

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 (2) hide show
  1. package/dist/index.d.ts +671 -17
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4873,6 +4873,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4873
4873
  dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
4874
4874
  dueOffsetDays?: number | null | undefined;
4875
4875
  isDeposit?: boolean | undefined;
4876
+ billToName?: string | null | undefined;
4877
+ billToPhone?: string | null | undefined;
4876
4878
  installmentNumber?: number | null | undefined;
4877
4879
  totalInstallments?: number | null | undefined;
4878
4880
  installmentGroupId?: string | null | undefined;
@@ -4984,6 +4986,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4984
4986
  dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
4985
4987
  dueOffsetDays?: number | null | undefined;
4986
4988
  isDeposit?: boolean | undefined;
4989
+ billToName?: string | null | undefined;
4990
+ billToPhone?: string | null | undefined;
4987
4991
  installmentNumber?: number | null | undefined;
4988
4992
  totalInstallments?: number | null | undefined;
4989
4993
  installmentGroupId?: string | null | undefined;
@@ -5125,7 +5129,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
5125
5129
  dueTrigger: string | null;
5126
5130
  dueOffsetDays: number | null;
5127
5131
  isDeposit: boolean;
5132
+ billToName: string | null;
5133
+ billToPhone: string | null;
5128
5134
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
5135
+ payments: {
5136
+ id: string;
5137
+ amount: number;
5138
+ paidAt: string;
5139
+ paymentMethod: string | null;
5140
+ receiptFileName: string | null;
5141
+ created_by: string;
5142
+ created_at: string;
5143
+ }[];
5144
+ paidAmount: number;
5129
5145
  subtotal: number;
5130
5146
  lineDiscounts: number;
5131
5147
  total: number;
@@ -5324,7 +5340,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
5324
5340
  dueTrigger: string | null;
5325
5341
  dueOffsetDays: number | null;
5326
5342
  isDeposit: boolean;
5343
+ billToName: string | null;
5344
+ billToPhone: string | null;
5327
5345
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
5346
+ payments: {
5347
+ id: string;
5348
+ amount: number;
5349
+ paidAt: string;
5350
+ paymentMethod: string | null;
5351
+ receiptFileName: string | null;
5352
+ created_by: string;
5353
+ created_at: string;
5354
+ }[];
5355
+ paidAmount: number;
5328
5356
  subtotal: number;
5329
5357
  lineDiscounts: number;
5330
5358
  total: number;
@@ -5451,6 +5479,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
5451
5479
  dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
5452
5480
  dueOffsetDays?: number | null | undefined;
5453
5481
  isDeposit?: boolean | undefined;
5482
+ billToName?: string | null | undefined;
5483
+ billToPhone?: string | null | undefined;
5454
5484
  installmentNumber?: number | null | undefined;
5455
5485
  totalInstallments?: number | null | undefined;
5456
5486
  installmentGroupId?: string | null | undefined;
@@ -5563,6 +5593,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
5563
5593
  dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
5564
5594
  dueOffsetDays?: number | null | undefined;
5565
5595
  isDeposit?: boolean | undefined;
5596
+ billToName?: string | null | undefined;
5597
+ billToPhone?: string | null | undefined;
5566
5598
  installmentNumber?: number | null | undefined;
5567
5599
  totalInstallments?: number | null | undefined;
5568
5600
  installmentGroupId?: string | null | undefined;
@@ -5705,7 +5737,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
5705
5737
  dueTrigger: string | null;
5706
5738
  dueOffsetDays: number | null;
5707
5739
  isDeposit: boolean;
5740
+ billToName: string | null;
5741
+ billToPhone: string | null;
5708
5742
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
5743
+ payments: {
5744
+ id: string;
5745
+ amount: number;
5746
+ paidAt: string;
5747
+ paymentMethod: string | null;
5748
+ receiptFileName: string | null;
5749
+ created_by: string;
5750
+ created_at: string;
5751
+ }[];
5752
+ paidAmount: number;
5709
5753
  subtotal: number;
5710
5754
  lineDiscounts: number;
5711
5755
  total: number;
@@ -5783,7 +5827,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
5783
5827
  json: {
5784
5828
  workspace: string;
5785
5829
  installmentGroupId?: string | undefined;
5786
- invoices: {
5830
+ invoices?: {
5787
5831
  services: {
5788
5832
  serviceId?: string | null | undefined;
5789
5833
  name: string;
@@ -5856,6 +5900,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
5856
5900
  dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
5857
5901
  dueOffsetDays?: number | null | undefined;
5858
5902
  isDeposit?: boolean | undefined;
5903
+ billToName?: string | null | undefined;
5904
+ billToPhone?: string | null | undefined;
5859
5905
  invoiceId: string;
5860
5906
  SellerFinanceAccountId: string;
5861
5907
  customerId: string;
@@ -5877,7 +5923,108 @@ declare const routes: import("hono/hono-base").HonoBase<{
5877
5923
  paymentMethod?: string | undefined;
5878
5924
  amountType?: "transit" | "revenue" | undefined;
5879
5925
  cinvoiceId?: string | undefined;
5880
- }[];
5926
+ }[] | undefined;
5927
+ plans?: {
5928
+ installmentGroupId?: string | undefined;
5929
+ invoices: {
5930
+ services: {
5931
+ serviceId?: string | null | undefined;
5932
+ name: string;
5933
+ unitPrice: number;
5934
+ quantity?: number | undefined;
5935
+ discount?: number | undefined;
5936
+ description?: string | undefined;
5937
+ itemId?: string | null | undefined;
5938
+ itemPrice?: number | null | undefined;
5939
+ itemQuantity?: number | null | undefined;
5940
+ itemDiscount?: number | null | undefined;
5941
+ kind?: "free" | "service" | "property" | "transit" | null | undefined;
5942
+ amountType?: "transit" | "revenue" | "commission" | "advance" | "conditional" | null | undefined;
5943
+ vatRate?: number | null | undefined;
5944
+ dealType?: "sale" | "rent" | null | undefined;
5945
+ priceUnit?: "per_month" | "per_day" | "total" | null | undefined;
5946
+ deposit?: number | null | undefined;
5947
+ commissionMode?: "fixed" | "percent" | null | undefined;
5948
+ commissionPercent?: number | null | undefined;
5949
+ commissionFixed?: number | null | undefined;
5950
+ commissionPaidBy?: "buyer" | "seller" | "split" | null | undefined;
5951
+ commissionBuyerShare?: number | null | undefined;
5952
+ commissionBilledSide?: "buyer" | "seller" | null | undefined;
5953
+ commissionBaseUnlocked?: boolean | undefined;
5954
+ viaAgency?: {
5955
+ payee: string;
5956
+ payeeBank: string;
5957
+ transferTrigger: "contract" | "date" | "payment" | "deposit" | "registration";
5958
+ deadlineDays: number;
5959
+ enabled: boolean;
5960
+ } | null | undefined;
5961
+ transit?: {
5962
+ payee: string;
5963
+ payeeBank: string;
5964
+ transferTrigger: "contract" | "date" | "payment" | "deposit" | "registration";
5965
+ deadlineDays: number;
5966
+ } | null | undefined;
5967
+ transferPayment?: {
5968
+ viaAgencyBefore: boolean;
5969
+ } | null | undefined;
5970
+ executors?: {
5971
+ personKind: "member" | "partner";
5972
+ personId?: string | null | undefined;
5973
+ name: string;
5974
+ role: "partner" | "lead" | "co_agent" | "buyer_agent" | "seller_agent";
5975
+ shareKind: "fixed" | "percent";
5976
+ sharePercent?: number | null | undefined;
5977
+ shareAmount?: number | null | undefined;
5978
+ trigger?: "contract" | "date" | "payment" | "deposit" | "registration" | undefined;
5979
+ }[] | undefined;
5980
+ costs?: {
5981
+ category: string;
5982
+ supplier?: string | undefined;
5983
+ description?: string | undefined;
5984
+ amount: number;
5985
+ inputVatRate?: number | undefined;
5986
+ paidBy: "company_now" | "company_later" | "executor";
5987
+ }[] | undefined;
5988
+ }[];
5989
+ branchId?: string | null | undefined;
5990
+ responsibleId?: string | null | undefined;
5991
+ internalNote?: string | null | undefined;
5992
+ allowedPaymentMethods?: string[] | null | undefined;
5993
+ allowPartialPayment?: boolean | undefined;
5994
+ remindPayer?: boolean | undefined;
5995
+ recurringInterval?: "monthly" | "quarterly" | "yearly" | null | undefined;
5996
+ scheduleType?: "fullPayment" | "installment" | "subscription" | "prepayment" | "stages" | null | undefined;
5997
+ installmentInterval?: "month" | "twoWeeks" | "week" | "year" | null | undefined;
5998
+ stageLabel?: string | null | undefined;
5999
+ dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
6000
+ dueOffsetDays?: number | null | undefined;
6001
+ isDeposit?: boolean | undefined;
6002
+ billToName?: string | null | undefined;
6003
+ billToPhone?: string | null | undefined;
6004
+ invoiceId: string;
6005
+ SellerFinanceAccountId: string;
6006
+ customerId: string;
6007
+ date: string | number;
6008
+ language: "ru" | "en";
6009
+ currency: "USD" | "EUR" | "RUB";
6010
+ vatOption: "vat_included" | "vat_excluded";
6011
+ vatRate?: number | undefined;
6012
+ buyerInn?: string | undefined;
6013
+ buyerKpp?: string | undefined;
6014
+ notes?: string | undefined;
6015
+ status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
6016
+ discount?: number | undefined;
6017
+ fullPayment?: boolean | undefined;
6018
+ installment?: boolean | undefined;
6019
+ subscription?: boolean | undefined;
6020
+ subscriptionStartDate?: string | number | undefined;
6021
+ subscriptionEndDate?: string | number | undefined;
6022
+ paymentMethod?: string | undefined;
6023
+ amountType?: "transit" | "revenue" | undefined;
6024
+ cinvoiceId?: string | undefined;
6025
+ }[];
6026
+ }[] | undefined;
6027
+ deleteCinvoiceIds?: string[] | undefined;
5881
6028
  };
5882
6029
  };
5883
6030
  output: {
@@ -5891,7 +6038,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
5891
6038
  json: {
5892
6039
  workspace: string;
5893
6040
  installmentGroupId?: string | undefined;
5894
- invoices: {
6041
+ invoices?: {
5895
6042
  services: {
5896
6043
  serviceId?: string | null | undefined;
5897
6044
  name: string;
@@ -5964,6 +6111,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
5964
6111
  dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
5965
6112
  dueOffsetDays?: number | null | undefined;
5966
6113
  isDeposit?: boolean | undefined;
6114
+ billToName?: string | null | undefined;
6115
+ billToPhone?: string | null | undefined;
5967
6116
  invoiceId: string;
5968
6117
  SellerFinanceAccountId: string;
5969
6118
  customerId: string;
@@ -5985,7 +6134,108 @@ declare const routes: import("hono/hono-base").HonoBase<{
5985
6134
  paymentMethod?: string | undefined;
5986
6135
  amountType?: "transit" | "revenue" | undefined;
5987
6136
  cinvoiceId?: string | undefined;
5988
- }[];
6137
+ }[] | undefined;
6138
+ plans?: {
6139
+ installmentGroupId?: string | undefined;
6140
+ invoices: {
6141
+ services: {
6142
+ serviceId?: string | null | undefined;
6143
+ name: string;
6144
+ unitPrice: number;
6145
+ quantity?: number | undefined;
6146
+ discount?: number | undefined;
6147
+ description?: string | undefined;
6148
+ itemId?: string | null | undefined;
6149
+ itemPrice?: number | null | undefined;
6150
+ itemQuantity?: number | null | undefined;
6151
+ itemDiscount?: number | null | undefined;
6152
+ kind?: "free" | "service" | "property" | "transit" | null | undefined;
6153
+ amountType?: "transit" | "revenue" | "commission" | "advance" | "conditional" | null | undefined;
6154
+ vatRate?: number | null | undefined;
6155
+ dealType?: "sale" | "rent" | null | undefined;
6156
+ priceUnit?: "per_month" | "per_day" | "total" | null | undefined;
6157
+ deposit?: number | null | undefined;
6158
+ commissionMode?: "fixed" | "percent" | null | undefined;
6159
+ commissionPercent?: number | null | undefined;
6160
+ commissionFixed?: number | null | undefined;
6161
+ commissionPaidBy?: "buyer" | "seller" | "split" | null | undefined;
6162
+ commissionBuyerShare?: number | null | undefined;
6163
+ commissionBilledSide?: "buyer" | "seller" | null | undefined;
6164
+ commissionBaseUnlocked?: boolean | undefined;
6165
+ viaAgency?: {
6166
+ payee: string;
6167
+ payeeBank: string;
6168
+ transferTrigger: "contract" | "date" | "payment" | "deposit" | "registration";
6169
+ deadlineDays: number;
6170
+ enabled: boolean;
6171
+ } | null | undefined;
6172
+ transit?: {
6173
+ payee: string;
6174
+ payeeBank: string;
6175
+ transferTrigger: "contract" | "date" | "payment" | "deposit" | "registration";
6176
+ deadlineDays: number;
6177
+ } | null | undefined;
6178
+ transferPayment?: {
6179
+ viaAgencyBefore: boolean;
6180
+ } | null | undefined;
6181
+ executors?: {
6182
+ personKind: "member" | "partner";
6183
+ personId?: string | null | undefined;
6184
+ name: string;
6185
+ role: "partner" | "lead" | "co_agent" | "buyer_agent" | "seller_agent";
6186
+ shareKind: "fixed" | "percent";
6187
+ sharePercent?: number | null | undefined;
6188
+ shareAmount?: number | null | undefined;
6189
+ trigger?: "contract" | "date" | "payment" | "deposit" | "registration" | undefined;
6190
+ }[] | undefined;
6191
+ costs?: {
6192
+ category: string;
6193
+ supplier?: string | undefined;
6194
+ description?: string | undefined;
6195
+ amount: number;
6196
+ inputVatRate?: number | undefined;
6197
+ paidBy: "company_now" | "company_later" | "executor";
6198
+ }[] | undefined;
6199
+ }[];
6200
+ branchId?: string | null | undefined;
6201
+ responsibleId?: string | null | undefined;
6202
+ internalNote?: string | null | undefined;
6203
+ allowedPaymentMethods?: string[] | null | undefined;
6204
+ allowPartialPayment?: boolean | undefined;
6205
+ remindPayer?: boolean | undefined;
6206
+ recurringInterval?: "monthly" | "quarterly" | "yearly" | null | undefined;
6207
+ scheduleType?: "fullPayment" | "installment" | "subscription" | "prepayment" | "stages" | null | undefined;
6208
+ installmentInterval?: "month" | "twoWeeks" | "week" | "year" | null | undefined;
6209
+ stageLabel?: string | null | undefined;
6210
+ dueTrigger?: "contract" | "date" | "payment" | "deposit" | "registration" | null | undefined;
6211
+ dueOffsetDays?: number | null | undefined;
6212
+ isDeposit?: boolean | undefined;
6213
+ billToName?: string | null | undefined;
6214
+ billToPhone?: string | null | undefined;
6215
+ invoiceId: string;
6216
+ SellerFinanceAccountId: string;
6217
+ customerId: string;
6218
+ date: string | number;
6219
+ language: "ru" | "en";
6220
+ currency: "USD" | "EUR" | "RUB";
6221
+ vatOption: "vat_included" | "vat_excluded";
6222
+ vatRate?: number | undefined;
6223
+ buyerInn?: string | undefined;
6224
+ buyerKpp?: string | undefined;
6225
+ notes?: string | undefined;
6226
+ status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
6227
+ discount?: number | undefined;
6228
+ fullPayment?: boolean | undefined;
6229
+ installment?: boolean | undefined;
6230
+ subscription?: boolean | undefined;
6231
+ subscriptionStartDate?: string | number | undefined;
6232
+ subscriptionEndDate?: string | number | undefined;
6233
+ paymentMethod?: string | undefined;
6234
+ amountType?: "transit" | "revenue" | undefined;
6235
+ cinvoiceId?: string | undefined;
6236
+ }[];
6237
+ }[] | undefined;
6238
+ deleteCinvoiceIds?: string[] | undefined;
5989
6239
  };
5990
6240
  };
5991
6241
  output: {
@@ -6040,7 +6290,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
6040
6290
  dueTrigger: string | null;
6041
6291
  dueOffsetDays: number | null;
6042
6292
  isDeposit: boolean;
6293
+ billToName: string | null;
6294
+ billToPhone: string | null;
6043
6295
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
6296
+ payments: {
6297
+ id: string;
6298
+ amount: number;
6299
+ paidAt: string;
6300
+ paymentMethod: string | null;
6301
+ receiptFileName: string | null;
6302
+ created_by: string;
6303
+ created_at: string;
6304
+ }[];
6305
+ paidAmount: number;
6044
6306
  subtotal: number;
6045
6307
  lineDiscounts: number;
6046
6308
  total: number;
@@ -6111,6 +6373,178 @@ declare const routes: import("hono/hono-base").HonoBase<{
6111
6373
  status: 200;
6112
6374
  };
6113
6375
  };
6376
+ } & {
6377
+ "/payments/record": {
6378
+ $post: {
6379
+ input: {
6380
+ json: {
6381
+ workspace: string;
6382
+ cinvoiceId: string;
6383
+ amount: number;
6384
+ date: string | number;
6385
+ paymentMethod?: string | undefined;
6386
+ };
6387
+ };
6388
+ output: {
6389
+ success: false;
6390
+ error: string;
6391
+ };
6392
+ outputFormat: "json";
6393
+ status: 400 | 404;
6394
+ } | {
6395
+ input: {
6396
+ json: {
6397
+ workspace: string;
6398
+ cinvoiceId: string;
6399
+ amount: number;
6400
+ date: string | number;
6401
+ paymentMethod?: string | undefined;
6402
+ };
6403
+ };
6404
+ output: {
6405
+ success: true;
6406
+ payment: {
6407
+ id: string;
6408
+ amount: number;
6409
+ paidAt: string;
6410
+ paymentMethod: string | null;
6411
+ receiptFileName: string | null;
6412
+ created_by: string;
6413
+ created_at: string;
6414
+ };
6415
+ cinvoice: {
6416
+ id: string;
6417
+ created_at: string;
6418
+ workspaceId: string;
6419
+ updated_at: string | null;
6420
+ deleted_at: string | null;
6421
+ verified_at: string | null;
6422
+ suspended_at: string | null;
6423
+ invoiceId: string;
6424
+ status: string;
6425
+ date: string;
6426
+ customerId: string;
6427
+ created_by: string;
6428
+ branchId: string | null;
6429
+ responsibleId: string | null;
6430
+ fullPayment: boolean | null;
6431
+ installment: boolean | null;
6432
+ notes: string | null;
6433
+ subscriptionEndDate: string | null;
6434
+ currency: string;
6435
+ serviceId: string | null;
6436
+ invoiceDiscount: number;
6437
+ discount: number;
6438
+ SellerFinanceAccountId: string;
6439
+ language: string;
6440
+ vatOption: string;
6441
+ unitName: string;
6442
+ unitPrice: number;
6443
+ unitQuantity: number;
6444
+ installmentNumber: number | null;
6445
+ totalInstallments: number | null;
6446
+ installmentGroupId: string | null;
6447
+ vatRate: number | null;
6448
+ paidAt: string | null;
6449
+ buyerInn: string | null;
6450
+ buyerKpp: string | null;
6451
+ subscription: boolean | null;
6452
+ subscriptionStartDate: string | null;
6453
+ paymentMethod: string | null;
6454
+ internalNote: string | null;
6455
+ allowedPaymentMethods: string[] | null;
6456
+ allowPartialPayment: boolean;
6457
+ remindPayer: boolean;
6458
+ recurringInterval: string | null;
6459
+ scheduleType: string | null;
6460
+ installmentInterval: string | null;
6461
+ stageLabel: string | null;
6462
+ dueTrigger: string | null;
6463
+ dueOffsetDays: number | null;
6464
+ isDeposit: boolean;
6465
+ billToName: string | null;
6466
+ billToPhone: string | null;
6467
+ amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
6468
+ payments: {
6469
+ id: string;
6470
+ amount: number;
6471
+ paidAt: string;
6472
+ paymentMethod: string | null;
6473
+ receiptFileName: string | null;
6474
+ created_by: string;
6475
+ created_at: string;
6476
+ }[];
6477
+ paidAmount: number;
6478
+ subtotal: number;
6479
+ lineDiscounts: number;
6480
+ total: number;
6481
+ services: {
6482
+ executors: {
6483
+ personKind: string;
6484
+ personId: string | null;
6485
+ name: string;
6486
+ role: string;
6487
+ shareKind: string;
6488
+ sharePercent: number | null;
6489
+ shareAmount: number | null;
6490
+ trigger: string;
6491
+ }[];
6492
+ costs: {
6493
+ category: string;
6494
+ supplier: string;
6495
+ description: string;
6496
+ amount: number;
6497
+ inputVatRate: number;
6498
+ paidBy: string;
6499
+ }[];
6500
+ id: string;
6501
+ serviceId: string | null;
6502
+ position: number;
6503
+ name: string;
6504
+ unitPrice: number;
6505
+ quantity: number;
6506
+ discount: number;
6507
+ description: string | null;
6508
+ itemId: string | null;
6509
+ itemPrice: number | null;
6510
+ itemQuantity: number | null;
6511
+ itemDiscount: number | null;
6512
+ kind: string | null;
6513
+ amountType: "transit" | "revenue" | "commission" | "advance" | "conditional" | null;
6514
+ vatRate: number | null;
6515
+ dealType: string | null;
6516
+ priceUnit: string | null;
6517
+ deposit: number | null;
6518
+ commissionMode: string | null;
6519
+ commissionPercent: number | null;
6520
+ commissionFixed: number | null;
6521
+ commissionPaidBy: string | null;
6522
+ commissionBuyerShare: number | null;
6523
+ commissionBilledSide: string | null;
6524
+ commissionBaseUnlocked: boolean;
6525
+ viaAgency: {
6526
+ payee: string;
6527
+ payeeBank: string;
6528
+ transferTrigger: string;
6529
+ deadlineDays: number;
6530
+ enabled: boolean;
6531
+ } | null;
6532
+ transit: {
6533
+ payee: string;
6534
+ payeeBank: string;
6535
+ transferTrigger: string;
6536
+ deadlineDays: number;
6537
+ } | null;
6538
+ transferPayment: {
6539
+ viaAgencyBefore: boolean;
6540
+ } | null;
6541
+ }[];
6542
+ };
6543
+ };
6544
+ outputFormat: "json";
6545
+ status: 201;
6546
+ };
6547
+ };
6114
6548
  } & {
6115
6549
  "/delete": {
6116
6550
  $post: {
@@ -6668,6 +7102,21 @@ declare const routes: import("hono/hono-base").HonoBase<{
6668
7102
  } & {
6669
7103
  "/update": {
6670
7104
  $post: {
7105
+ input: {
7106
+ json: {
7107
+ tagId: string;
7108
+ workspace: string;
7109
+ name?: string | undefined;
7110
+ description?: string | undefined;
7111
+ };
7112
+ };
7113
+ output: {
7114
+ success: false;
7115
+ error: string;
7116
+ };
7117
+ outputFormat: "json";
7118
+ status: 404;
7119
+ } | {
6671
7120
  input: {
6672
7121
  json: {
6673
7122
  tagId: string;
@@ -6679,19 +7128,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
6679
7128
  output: {
6680
7129
  success: true;
6681
7130
  tag: {
6682
- rows: never[];
6683
- command: string;
6684
- rowCount: number | null;
6685
- oid: number;
6686
- fields: {
6687
- name: string;
6688
- tableID: number;
6689
- columnID: number;
6690
- dataTypeID: number;
6691
- dataTypeSize: number;
6692
- dataTypeModifier: number;
6693
- format: string;
6694
- }[];
7131
+ updated_at: string | null;
7132
+ deleted_at: string | null;
7133
+ verified_at: string | null;
7134
+ suspended_at: string | null;
7135
+ created_at: string;
7136
+ id: string;
7137
+ workspaceId: string;
7138
+ name: string;
7139
+ description: string | null;
6695
7140
  };
6696
7141
  };
6697
7142
  outputFormat: "json";
@@ -9598,6 +10043,195 @@ declare const routes: import("hono/hono-base").HonoBase<{
9598
10043
  status: import("hono/utils/http-status").ContentfulStatusCode;
9599
10044
  };
9600
10045
  };
10046
+ } & {
10047
+ "/upload-to-cinvoice-payment": {
10048
+ $post: {
10049
+ input: {
10050
+ json: {
10051
+ filename: string;
10052
+ contentType: string;
10053
+ contentLength: number;
10054
+ workspace: string;
10055
+ paymentId: string;
10056
+ };
10057
+ };
10058
+ output: {
10059
+ success: false;
10060
+ error: string;
10061
+ };
10062
+ outputFormat: "json";
10063
+ status: 404;
10064
+ } | {
10065
+ input: {
10066
+ json: {
10067
+ filename: string;
10068
+ contentType: string;
10069
+ contentLength: number;
10070
+ workspace: string;
10071
+ paymentId: string;
10072
+ };
10073
+ };
10074
+ output: {
10075
+ success: true;
10076
+ url: string;
10077
+ fields: {
10078
+ [x: string]: string;
10079
+ };
10080
+ key: string;
10081
+ maxSize: number;
10082
+ };
10083
+ outputFormat: "json";
10084
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10085
+ };
10086
+ };
10087
+ } & {
10088
+ "/confirm-cinvoice-payment-file": {
10089
+ $post: {
10090
+ input: {
10091
+ json: {
10092
+ filename: string;
10093
+ workspace: string;
10094
+ paymentId: string;
10095
+ };
10096
+ };
10097
+ output: {
10098
+ success: false;
10099
+ error: string;
10100
+ };
10101
+ outputFormat: "json";
10102
+ status: 404;
10103
+ } | {
10104
+ input: {
10105
+ json: {
10106
+ filename: string;
10107
+ workspace: string;
10108
+ paymentId: string;
10109
+ };
10110
+ };
10111
+ output: {
10112
+ success: false;
10113
+ error: string;
10114
+ };
10115
+ outputFormat: "json";
10116
+ status: 400;
10117
+ } | {
10118
+ input: {
10119
+ json: {
10120
+ filename: string;
10121
+ workspace: string;
10122
+ paymentId: string;
10123
+ };
10124
+ };
10125
+ output: {
10126
+ success: true;
10127
+ key: string;
10128
+ receiptFileName: string;
10129
+ };
10130
+ outputFormat: "json";
10131
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10132
+ };
10133
+ };
10134
+ } & {
10135
+ "/download-from-cinvoice-payment/:workspace/:paymentId": {
10136
+ $get: {
10137
+ input: {
10138
+ param: {
10139
+ workspace: string;
10140
+ } & {
10141
+ paymentId: string;
10142
+ };
10143
+ };
10144
+ output: {
10145
+ success: false;
10146
+ error: string;
10147
+ };
10148
+ outputFormat: "json";
10149
+ status: 404;
10150
+ } | {
10151
+ input: {
10152
+ param: {
10153
+ workspace: string;
10154
+ } & {
10155
+ paymentId: string;
10156
+ };
10157
+ };
10158
+ output: {
10159
+ success: true;
10160
+ file: {
10161
+ key: string;
10162
+ filename: string;
10163
+ size: number;
10164
+ lastModified: string | null;
10165
+ downloadUrl: string;
10166
+ };
10167
+ };
10168
+ outputFormat: "json";
10169
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10170
+ };
10171
+ };
10172
+ } & {
10173
+ "/delete-cinvoice-payment-file": {
10174
+ $post: {
10175
+ input: {
10176
+ json: {
10177
+ filename: string;
10178
+ workspace: string;
10179
+ paymentId: string;
10180
+ };
10181
+ };
10182
+ output: {
10183
+ success: false;
10184
+ error: string;
10185
+ };
10186
+ outputFormat: "json";
10187
+ status: 404;
10188
+ } | {
10189
+ input: {
10190
+ json: {
10191
+ filename: string;
10192
+ workspace: string;
10193
+ paymentId: string;
10194
+ };
10195
+ };
10196
+ output: {
10197
+ success: false;
10198
+ message: string;
10199
+ key: string;
10200
+ };
10201
+ outputFormat: "json";
10202
+ status: 404;
10203
+ } | {
10204
+ input: {
10205
+ json: {
10206
+ filename: string;
10207
+ workspace: string;
10208
+ paymentId: string;
10209
+ };
10210
+ };
10211
+ output: {
10212
+ success: false;
10213
+ message: string;
10214
+ key: string;
10215
+ };
10216
+ outputFormat: "json";
10217
+ status: 500;
10218
+ } | {
10219
+ input: {
10220
+ json: {
10221
+ filename: string;
10222
+ workspace: string;
10223
+ paymentId: string;
10224
+ };
10225
+ };
10226
+ output: {
10227
+ success: true;
10228
+ message: string;
10229
+ key: string;
10230
+ };
10231
+ outputFormat: "json";
10232
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10233
+ };
10234
+ };
9601
10235
  }, "/files"> | import("hono/types").MergeSchemaPath<{
9602
10236
  "/start": {
9603
10237
  $post: {
@@ -11650,6 +12284,26 @@ declare const routes: import("hono/hono-base").HonoBase<{
11650
12284
  status: 200;
11651
12285
  };
11652
12286
  };
12287
+ } & {
12288
+ "/pending-invoices/:workspace": {
12289
+ $get: {
12290
+ input: {
12291
+ param: {
12292
+ workspace: string;
12293
+ };
12294
+ };
12295
+ output: {
12296
+ success: true;
12297
+ totals: {
12298
+ currency: string;
12299
+ owedMinor: number;
12300
+ invoiceCount: number;
12301
+ }[];
12302
+ };
12303
+ outputFormat: "json";
12304
+ status: 200;
12305
+ };
12306
+ };
11653
12307
  } & {
11654
12308
  "/visibility/:workspace": {
11655
12309
  $get: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.303",
3
+ "version": "0.0.305",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,