@wisemen/wise-invoicing-web 0.19.0 → 0.20.0

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 (46) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js → ApprovalReminderSettingsViewDataProvider-DMWLX53_.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-jpp-QwPi.js} +1655 -1655
  3. package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Zw3GXZVE.js} +9 -9
  4. package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-CA-nzjzV.js} +3 -3
  5. package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-Dnw03isr.js} +1 -1
  6. package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-CoJXggOy.js} +141 -141
  7. package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-BWx3Fhuy.js} +3 -3
  8. package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-Bv5aMLh6.js} +2 -2
  9. package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-Ca7-AmAH.js} +3 -3
  10. package/dist/{InvoiceRejectDialog-_5i8eFuk.js → InvoiceRejectDialog-Ca-4nz4U.js} +7 -7
  11. package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-uXAh9ypU.js} +23 -23
  12. package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-C3cyIUhL.js} +2 -2
  13. package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-C-CRF9sK.js} +66 -66
  14. package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-COQEInsh.js} +3 -3
  15. package/dist/{api.util-sW4gNny-.js → api.util-DSerLsgA.js} +666 -648
  16. package/dist/billingDocumentDetail.transformer-ClWwi8h4.js +310 -0
  17. package/dist/client/index.d.ts +2 -2
  18. package/dist/client/sdk.gen.d.ts +5 -5
  19. package/dist/client/types.gen.d.ts +81 -46
  20. package/dist/client/zod.gen.d.ts +1304 -96
  21. package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-q1b6nzu0.js} +5 -5
  22. package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-DQxer9Je.js} +31 -31
  23. package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-BlxvUaz0.js} +2 -2
  24. package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-D5uPh3uG.js} +37 -35
  25. package/dist/{i18n.lib-DckceEsg.js → i18n.lib-DB15VQsH.js} +2 -0
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.js +1686 -1684
  28. package/dist/{invoice.service-v9uIoFgR.js → invoice.service-BKgP2p8z.js} +165 -164
  29. package/dist/{invoiceApproval.service-DXIKgCI_.js → invoiceApproval.service-oT1fvhsW.js} +5 -4
  30. package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-D17DWEh1.js} +29 -29
  31. package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-CLYUR6vc.js} +2 -2
  32. package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-CzyZqT82.js} +1 -1
  33. package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-CzgTMtog.js} +2 -2
  34. package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-D8T34N7f.js} +27 -27
  35. package/dist/libs/i18n.lib.d.ts +2 -0
  36. package/dist/locales/en-US.json.d.ts +1 -0
  37. package/dist/locales/nl-BE.json.d.ts +1 -0
  38. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
  39. package/dist/modules/invoice/api/services/invoice.service.d.ts +3 -3
  40. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +2 -1
  41. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
  42. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
  43. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
  44. package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-CFmCWWlO.js} +7 -7
  45. package/package.json +1 -1
  46. package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
@@ -1111,6 +1111,10 @@ export type AddressCommand = {
1111
1111
  unit: string | null;
1112
1112
  coordinates: CoordinatesCommand | null;
1113
1113
  };
1114
+ export declare enum ApprovalMode {
1115
+ PRO_FORMA = "pro_forma",
1116
+ FINALIZED = "finalized"
1117
+ }
1114
1118
  export type CreateCustomerCommand = {
1115
1119
  name: string;
1116
1120
  address: AddressCommand | null;
@@ -1119,7 +1123,7 @@ export type CreateCustomerCommand = {
1119
1123
  vatNumber: string | null;
1120
1124
  type: CustomerType;
1121
1125
  locale: Locale;
1122
- requiresPriorApproval?: boolean;
1126
+ approvalMode?: ApprovalMode | null;
1123
1127
  approvalEmail: string | null;
1124
1128
  reference?: string | null;
1125
1129
  };
@@ -1197,7 +1201,7 @@ export type ViewCustomerDetailResponse = {
1197
1201
  currency: Currency;
1198
1202
  isDeactivated: boolean;
1199
1203
  defaultPaymentTerm: DurationDto;
1200
- requiresPriorApproval: boolean;
1204
+ approvalMode: ApprovalMode | null;
1201
1205
  approvalEmail: string | null;
1202
1206
  contacts: CustomerContactsResponse;
1203
1207
  reference: string | null;
@@ -1263,7 +1267,7 @@ export type UpdateCustomerCommand = {
1263
1267
  */
1264
1268
  currency: Currency;
1265
1269
  defaultPaymentTerm?: DurationDto;
1266
- requiresPriorApproval?: boolean;
1270
+ approvalMode?: ApprovalMode | null;
1267
1271
  approvalEmail: string | null;
1268
1272
  reference?: string | null;
1269
1273
  };
@@ -1781,7 +1785,7 @@ export type UpdateInvoiceLinesCommand = {
1781
1785
  };
1782
1786
  export type CreateInvoiceCommand = {
1783
1787
  customerUuid: string;
1784
- requiresPriorApproval?: boolean;
1788
+ approvalMode?: ApprovalMode | null;
1785
1789
  isExternallyCreated?: boolean;
1786
1790
  contactOverride?: InvoiceContactOverrideCommand;
1787
1791
  /**
@@ -1952,6 +1956,7 @@ export declare enum ApprovalReminderLevel {
1952
1956
  }
1953
1957
  export type ViewInvoiceDetailApprovalResponse = {
1954
1958
  uuid: string;
1959
+ mode: ApprovalMode;
1955
1960
  sentAt: string | null;
1956
1961
  status: InvoiceApprovalStatus;
1957
1962
  answeredAt: string | null;
@@ -2034,7 +2039,7 @@ export type ViewInvoiceDetailResponse = {
2034
2039
  isOverdue: boolean;
2035
2040
  reminders: Array<ViewInvoiceDetailReminderResponse>;
2036
2041
  reminderConfigs: Array<ViewInvoiceDetailReminderConfigResponse>;
2037
- requiresPriorApproval: boolean;
2042
+ approvalMode: ApprovalMode | null;
2038
2043
  approval: Array<ViewInvoiceDetailApprovalResponse>;
2039
2044
  hasChangesSinceApprovalSent: boolean;
2040
2045
  isEditable: boolean;
@@ -2135,6 +2140,7 @@ export type ViewInvoiceIndexFilterQuery = {
2135
2140
  approvalStatuses?: Array<ApprovalDisplayStatus>;
2136
2141
  isApprovalCancelled?: boolean;
2137
2142
  isExternallyCreated?: boolean;
2143
+ poNumber?: string;
2138
2144
  };
2139
2145
  export type InvoiceIndexCustomerResponse = {
2140
2146
  uuid: string;
@@ -2168,7 +2174,7 @@ export type InvoiceIndexResponse = {
2168
2174
  isOverdue: boolean;
2169
2175
  deliveryStatus: InvoiceDeliveryStatus;
2170
2176
  customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto | ReferenceCustomFieldValueDto>;
2171
- requiresPriorApproval: boolean;
2177
+ approvalMode: ApprovalMode | null;
2172
2178
  hasChangesSinceApprovalSent: boolean;
2173
2179
  approval: InvoiceIndexApprovalResponse | null;
2174
2180
  };
@@ -2255,6 +2261,14 @@ export type FileUnconfirmedError = {
2255
2261
  export type UpdateInvoiceAttachmentsCommand = {
2256
2262
  fileUuids: Array<string>;
2257
2263
  };
2264
+ export type CustomerHasNoApprovalEmailError = {
2265
+ /**
2266
+ * a human-readable explanation specific to this occurrence of the problem
2267
+ */
2268
+ detail?: string;
2269
+ status: '409';
2270
+ code: 'customer_has_no_approval_email';
2271
+ };
2258
2272
  export type InvoiceSequenceCounterNotFoundError = {
2259
2273
  /**
2260
2274
  * a human-readable explanation specific to this occurrence of the problem
@@ -2526,6 +2540,7 @@ export type PreviewBulkMarkInvoiceAsReadyFilterQuery = {
2526
2540
  approvalStatuses?: Array<ApprovalDisplayStatus>;
2527
2541
  isApprovalCancelled?: boolean;
2528
2542
  isExternallyCreated?: boolean;
2543
+ poNumber?: string;
2529
2544
  };
2530
2545
  export type BulkActionMeta = {
2531
2546
  total: number;
@@ -2575,6 +2590,7 @@ export type BulkMarkInvoiceAsReadyFilterQuery = {
2575
2590
  approvalStatuses?: Array<ApprovalDisplayStatus>;
2576
2591
  isApprovalCancelled?: boolean;
2577
2592
  isExternallyCreated?: boolean;
2593
+ poNumber?: string;
2578
2594
  };
2579
2595
  export type BulkMarkInvoiceAsReadyResponse = {
2580
2596
  meta: BulkActionMeta;
@@ -2605,6 +2621,7 @@ export type PreviewBulkFinalizeInvoiceFilterQuery = {
2605
2621
  approvalStatuses?: Array<ApprovalDisplayStatus>;
2606
2622
  isApprovalCancelled?: boolean;
2607
2623
  isExternallyCreated?: boolean;
2624
+ poNumber?: string;
2608
2625
  };
2609
2626
  export type PreviewBulkFinalizeInvoiceResponse = {
2610
2627
  meta: BulkActionMeta;
@@ -2630,6 +2647,7 @@ export type BulkFinalizeInvoiceFilterQuery = {
2630
2647
  approvalStatuses?: Array<ApprovalDisplayStatus>;
2631
2648
  isApprovalCancelled?: boolean;
2632
2649
  isExternallyCreated?: boolean;
2650
+ poNumber?: string;
2633
2651
  };
2634
2652
  export type BulkFinalizeInvoiceResponse = {
2635
2653
  meta: BulkActionMeta;
@@ -2652,6 +2670,7 @@ export type PreviewBulkDeleteInvoiceFilterQuery = {
2652
2670
  approvalStatuses?: Array<ApprovalDisplayStatus>;
2653
2671
  isApprovalCancelled?: boolean;
2654
2672
  isExternallyCreated?: boolean;
2673
+ poNumber?: string;
2655
2674
  };
2656
2675
  export type PreviewBulkDeleteInvoiceResponse = {
2657
2676
  meta: BulkActionMeta;
@@ -2674,6 +2693,7 @@ export type BulkDeleteInvoiceFilterQuery = {
2674
2693
  approvalStatuses?: Array<ApprovalDisplayStatus>;
2675
2694
  isApprovalCancelled?: boolean;
2676
2695
  isExternallyCreated?: boolean;
2696
+ poNumber?: string;
2677
2697
  };
2678
2698
  export type BulkDeleteInvoiceResponse = {
2679
2699
  meta: BulkActionMeta;
@@ -3194,6 +3214,14 @@ export type ViewPublicDunningCaseReminderResponse = {
3194
3214
  outstandingInvoices: Array<ViewPublicDunningCaseReminderOutstandingInvoiceResponse>;
3195
3215
  totalFee: MonetaryDto;
3196
3216
  };
3217
+ export type ApprovalRequestedOnFinalizationError = {
3218
+ /**
3219
+ * a human-readable explanation specific to this occurrence of the problem
3220
+ */
3221
+ detail?: string;
3222
+ status: '409';
3223
+ code: 'approval_requested_on_finalization';
3224
+ };
3197
3225
  export type ApprovalRequiresEditableInvoiceError = {
3198
3226
  /**
3199
3227
  * a human-readable explanation specific to this occurrence of the problem
@@ -3226,15 +3254,7 @@ export type ApprovalAlreadySentError = {
3226
3254
  status: '409';
3227
3255
  code: 'approval_already_sent_error';
3228
3256
  };
3229
- export type CustomerHasNoApprovalEmailError = {
3230
- /**
3231
- * a human-readable explanation specific to this occurrence of the problem
3232
- */
3233
- detail?: string;
3234
- status: '409';
3235
- code: 'customer_has_no_approval_email';
3236
- };
3237
- export type PreviewBulkSendInvoiceApprovalFilterQuery = {
3257
+ export type PreviewBulkSendProFormaApprovalFilterQuery = {
3238
3258
  statuses?: Array<InvoiceStatus>;
3239
3259
  lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
3240
3260
  customerUuids?: Array<string>;
@@ -3251,12 +3271,13 @@ export type PreviewBulkSendInvoiceApprovalFilterQuery = {
3251
3271
  approvalStatuses?: Array<ApprovalDisplayStatus>;
3252
3272
  isApprovalCancelled?: boolean;
3253
3273
  isExternallyCreated?: boolean;
3274
+ poNumber?: string;
3254
3275
  };
3255
- export type PreviewBulkSendInvoiceApprovalResponse = {
3276
+ export type PreviewBulkSendProFormaApprovalResponse = {
3256
3277
  meta: BulkActionMeta;
3257
3278
  skipped: Array<BulkActionSkippedItem>;
3258
3279
  };
3259
- export type BulkSendInvoiceApprovalFilterQuery = {
3280
+ export type BulkSendProFormaApprovalFilterQuery = {
3260
3281
  statuses?: Array<InvoiceStatus>;
3261
3282
  lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
3262
3283
  customerUuids?: Array<string>;
@@ -3273,8 +3294,9 @@ export type BulkSendInvoiceApprovalFilterQuery = {
3273
3294
  approvalStatuses?: Array<ApprovalDisplayStatus>;
3274
3295
  isApprovalCancelled?: boolean;
3275
3296
  isExternallyCreated?: boolean;
3297
+ poNumber?: string;
3276
3298
  };
3277
- export type BulkSendInvoiceApprovalResponse = {
3299
+ export type BulkSendProFormaApprovalResponse = {
3278
3300
  meta: BulkActionMeta;
3279
3301
  skipped: Array<BulkActionSkippedItem>;
3280
3302
  };
@@ -3353,6 +3375,7 @@ export type ApprovalRestartRequiresActiveApprovalError = {
3353
3375
  };
3354
3376
  export type ViewInvoiceApprovalIndexFilterQuery = {
3355
3377
  status?: InvoiceApprovalStatus;
3378
+ mode?: ApprovalMode;
3356
3379
  invoiceUuid?: string;
3357
3380
  customerUuid?: string;
3358
3381
  level?: ApprovalReminderLevel;
@@ -3382,6 +3405,7 @@ export type ViewInvoiceApprovalIndexRecipientResponse = {
3382
3405
  export type ViewInvoiceApprovalIndexItemResponse = {
3383
3406
  uuid: string;
3384
3407
  createdAt: string;
3408
+ mode: ApprovalMode;
3385
3409
  status: InvoiceApprovalStatus;
3386
3410
  sentAt: string | 'infinity' | '-infinity' | null;
3387
3411
  answeredAt: string | 'infinity' | '-infinity' | null;
@@ -3391,8 +3415,19 @@ export type ViewInvoiceApprovalIndexItemResponse = {
3391
3415
  rejectionReason: InvoiceApprovalRejectionReason | null;
3392
3416
  level: ApprovalReminderLevel | null;
3393
3417
  lastReminderSentAt: string | 'infinity' | '-infinity' | null;
3418
+ /**
3419
+ * Of the approved document: the pro forma or the finalized invoice
3420
+ */
3421
+ netAmount: MonetaryDto;
3422
+ /**
3423
+ * Of the approved document: the pro forma or the finalized invoice
3424
+ */
3425
+ grossAmount: MonetaryDto;
3394
3426
  invoice: ViewInvoiceApprovalIndexInvoiceResponse;
3395
- proForma: ViewInvoiceApprovalIndexProFormaResponse;
3427
+ /**
3428
+ * Null for finalized approvals, which approve the invoice itself
3429
+ */
3430
+ proForma: ViewInvoiceApprovalIndexProFormaResponse | null;
3396
3431
  customer: ViewInvoiceApprovalIndexCustomerResponse;
3397
3432
  recipient: ViewInvoiceApprovalIndexRecipientResponse;
3398
3433
  };
@@ -5422,7 +5457,7 @@ export type FinalizeInvoiceV1Errors = {
5422
5457
  };
5423
5458
  409: {
5424
5459
  traceId?: string | null;
5425
- errors?: Array<InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError | InvoiceFinalizationRequiresApprovalError | InvoiceIssuedOnBeforeLastIssuedError | InvoiceIssuedOnInClosedPeriodError>;
5460
+ errors?: Array<CustomerHasNoApprovalEmailError | InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError | InvoiceFinalizationRequiresApprovalError | InvoiceIssuedOnBeforeLastIssuedError | InvoiceIssuedOnInClosedPeriodError>;
5426
5461
  };
5427
5462
  500: {
5428
5463
  traceId?: string | null;
@@ -6245,69 +6280,69 @@ export type ViewPublicDunningCaseReminderV1Responses = {
6245
6280
  200: ViewPublicDunningCaseReminderResponse;
6246
6281
  };
6247
6282
  export type ViewPublicDunningCaseReminderV1Response = ViewPublicDunningCaseReminderV1Responses[keyof ViewPublicDunningCaseReminderV1Responses];
6248
- export type SendInvoiceApprovalV1Data = {
6283
+ export type SendProFormaApprovalV1Data = {
6249
6284
  body?: never;
6250
6285
  path: {
6251
6286
  uuid: string;
6252
6287
  };
6253
6288
  query?: never;
6254
- url: '/api/v1/invoices/{uuid}/send-approval';
6289
+ url: '/api/v1/invoices/{uuid}/send-pro-forma-approval';
6255
6290
  };
6256
- export type SendInvoiceApprovalV1Errors = {
6291
+ export type SendProFormaApprovalV1Errors = {
6257
6292
  404: {
6258
6293
  traceId?: string | null;
6259
6294
  errors?: Array<InvoiceNotFoundError>;
6260
6295
  };
6261
6296
  409: {
6262
6297
  traceId?: string | null;
6263
- errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalAlreadySentError | CustomerHasNoApprovalEmailError>;
6298
+ errors?: Array<ApprovalRequestedOnFinalizationError | ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalAlreadySentError | CustomerHasNoApprovalEmailError>;
6264
6299
  };
6265
6300
  500: {
6266
6301
  traceId?: string | null;
6267
6302
  errors?: Array<InternalServerApiError>;
6268
6303
  };
6269
6304
  };
6270
- export type SendInvoiceApprovalV1Error = SendInvoiceApprovalV1Errors[keyof SendInvoiceApprovalV1Errors];
6271
- export type PreviewBulkSendInvoiceApprovalV1Data = {
6305
+ export type SendProFormaApprovalV1Error = SendProFormaApprovalV1Errors[keyof SendProFormaApprovalV1Errors];
6306
+ export type PreviewBulkSendProFormaApprovalV1Data = {
6272
6307
  body?: never;
6273
6308
  path?: never;
6274
6309
  query?: {
6275
- filter?: PreviewBulkSendInvoiceApprovalFilterQuery;
6310
+ filter?: PreviewBulkSendProFormaApprovalFilterQuery;
6276
6311
  search?: string;
6277
6312
  };
6278
- url: '/api/v1/invoices/send-approval/preview';
6313
+ url: '/api/v1/invoices/send-pro-forma-approval/preview';
6279
6314
  };
6280
- export type PreviewBulkSendInvoiceApprovalV1Errors = {
6315
+ export type PreviewBulkSendProFormaApprovalV1Errors = {
6281
6316
  500: {
6282
6317
  traceId?: string | null;
6283
6318
  errors?: Array<InternalServerApiError>;
6284
6319
  };
6285
6320
  };
6286
- export type PreviewBulkSendInvoiceApprovalV1Error = PreviewBulkSendInvoiceApprovalV1Errors[keyof PreviewBulkSendInvoiceApprovalV1Errors];
6287
- export type PreviewBulkSendInvoiceApprovalV1Responses = {
6288
- 200: PreviewBulkSendInvoiceApprovalResponse;
6321
+ export type PreviewBulkSendProFormaApprovalV1Error = PreviewBulkSendProFormaApprovalV1Errors[keyof PreviewBulkSendProFormaApprovalV1Errors];
6322
+ export type PreviewBulkSendProFormaApprovalV1Responses = {
6323
+ 200: PreviewBulkSendProFormaApprovalResponse;
6289
6324
  };
6290
- export type PreviewBulkSendInvoiceApprovalV1Response = PreviewBulkSendInvoiceApprovalV1Responses[keyof PreviewBulkSendInvoiceApprovalV1Responses];
6291
- export type BulkSendInvoiceApprovalV1Data = {
6325
+ export type PreviewBulkSendProFormaApprovalV1Response = PreviewBulkSendProFormaApprovalV1Responses[keyof PreviewBulkSendProFormaApprovalV1Responses];
6326
+ export type BulkSendProFormaApprovalV1Data = {
6292
6327
  body?: never;
6293
6328
  path?: never;
6294
6329
  query?: {
6295
- filter?: BulkSendInvoiceApprovalFilterQuery;
6330
+ filter?: BulkSendProFormaApprovalFilterQuery;
6296
6331
  search?: string;
6297
6332
  };
6298
- url: '/api/v1/invoices/send-approval';
6333
+ url: '/api/v1/invoices/send-pro-forma-approval';
6299
6334
  };
6300
- export type BulkSendInvoiceApprovalV1Errors = {
6335
+ export type BulkSendProFormaApprovalV1Errors = {
6301
6336
  500: {
6302
6337
  traceId?: string | null;
6303
6338
  errors?: Array<InternalServerApiError>;
6304
6339
  };
6305
6340
  };
6306
- export type BulkSendInvoiceApprovalV1Error = BulkSendInvoiceApprovalV1Errors[keyof BulkSendInvoiceApprovalV1Errors];
6307
- export type BulkSendInvoiceApprovalV1Responses = {
6308
- 200: BulkSendInvoiceApprovalResponse;
6341
+ export type BulkSendProFormaApprovalV1Error = BulkSendProFormaApprovalV1Errors[keyof BulkSendProFormaApprovalV1Errors];
6342
+ export type BulkSendProFormaApprovalV1Responses = {
6343
+ 200: BulkSendProFormaApprovalResponse;
6309
6344
  };
6310
- export type BulkSendInvoiceApprovalV1Response = BulkSendInvoiceApprovalV1Responses[keyof BulkSendInvoiceApprovalV1Responses];
6345
+ export type BulkSendProFormaApprovalV1Response = BulkSendProFormaApprovalV1Responses[keyof BulkSendProFormaApprovalV1Responses];
6311
6346
  export type ApproveInvoiceApprovalV1Data = {
6312
6347
  body: ApproveInvoiceApprovalCommand;
6313
6348
  path: {
@@ -6397,29 +6432,29 @@ export type CancelInvoiceApprovalV1Responses = {
6397
6432
  204: void;
6398
6433
  };
6399
6434
  export type CancelInvoiceApprovalV1Response = CancelInvoiceApprovalV1Responses[keyof CancelInvoiceApprovalV1Responses];
6400
- export type RestartInvoiceApprovalV1Data = {
6435
+ export type RestartProFormaApprovalV1Data = {
6401
6436
  body?: never;
6402
6437
  path: {
6403
6438
  uuid: string;
6404
6439
  };
6405
6440
  query?: never;
6406
- url: '/api/v1/invoices/{uuid}/restart-approval';
6441
+ url: '/api/v1/invoices/{uuid}/restart-pro-forma-approval';
6407
6442
  };
6408
- export type RestartInvoiceApprovalV1Errors = {
6443
+ export type RestartProFormaApprovalV1Errors = {
6409
6444
  404: {
6410
6445
  traceId?: string | null;
6411
6446
  errors?: Array<InvoiceNotFoundError>;
6412
6447
  };
6413
6448
  409: {
6414
6449
  traceId?: string | null;
6415
- errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalRestartRequiresActiveApprovalError | CustomerHasNoApprovalEmailError>;
6450
+ errors?: Array<ApprovalRequestedOnFinalizationError | ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalRestartRequiresActiveApprovalError | CustomerHasNoApprovalEmailError>;
6416
6451
  };
6417
6452
  500: {
6418
6453
  traceId?: string | null;
6419
6454
  errors?: Array<InternalServerApiError>;
6420
6455
  };
6421
6456
  };
6422
- export type RestartInvoiceApprovalV1Error = RestartInvoiceApprovalV1Errors[keyof RestartInvoiceApprovalV1Errors];
6457
+ export type RestartProFormaApprovalV1Error = RestartProFormaApprovalV1Errors[keyof RestartProFormaApprovalV1Errors];
6423
6458
  export type ViewInvoiceApprovalIndexV1Data = {
6424
6459
  body?: never;
6425
6460
  path?: never;