@wisemen/wise-invoicing-web 0.8.0 → 0.10.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 (57) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js → ApprovalReminderSettingsViewDataProvider-zMiQCYJI.js} +1 -1
  2. package/dist/{BillingDocumentDetailViewDataProvider-V5c_cJwt.js → BillingDocumentDetailViewDataProvider-CvIY5PkX.js} +72 -84
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-BYn3lUyl.js → BillingDocumentPdf-unchUddW.js} +68 -62
  5. package/dist/{CreditNoteDetailViewDataProvider-BqLYeBUQ.js → CreditNoteDetailViewDataProvider-sYgZYTGA.js} +3 -3
  6. package/dist/{CreditNotePdfViewDataProvider-Co4R7QJx.js → CreditNotePdfViewDataProvider-CEog3yg4.js} +2 -2
  7. package/dist/{CustomFieldValueText-BP4bKQh7.js → CustomFieldValueText-BLqu_dSP.js} +1 -1
  8. package/dist/{DunningCaseDetailViewDataProvider-BNByfQTc.js → DunningCaseDetailViewDataProvider-RwcDBSoU.js} +2 -2
  9. package/dist/{DunningCaseOverviewView-Dvwaw597.js → DunningCaseOverviewView-DCoHPpsV.js} +2 -2
  10. package/dist/{DunningCaseSendDialog-DwB_jFum.js → DunningCaseSendDialog-ybWpcDSu.js} +1 -1
  11. package/dist/{InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js → InvoiceApprovalOutOfSyncIndicator-Br7dIeVh.js} +1 -1
  12. package/dist/{InvoiceApprovalOverviewView-jawT-M1t.js → InvoiceApprovalOverviewView-CIRgP9Te.js} +2 -2
  13. package/dist/{InvoiceApproveDialogDataProvider-Bwb8bP1e.js → InvoiceApproveDialogDataProvider-Cf1Ar7tH.js} +2 -2
  14. package/dist/{InvoiceDetailViewDataProvider-DSG6VnDh.js → InvoiceDetailViewDataProvider-CStQkka5.js} +9 -9
  15. package/dist/{InvoiceOverviewViewDataProvider-CLgV-Jcv.js → InvoiceOverviewViewDataProvider-C5OBVOfy.js} +649 -612
  16. package/dist/{InvoicePdfView-BIDvRCr4.js → InvoicePdfView-BR3kWz1Z.js} +1 -1
  17. package/dist/{InvoicePdfViewDataProvider-Ct1HBqqa.js → InvoicePdfViewDataProvider--PHFxD5U.js} +3 -3
  18. package/dist/{InvoicePublicPdfViewDataProvider-DS0Q-BEX.js → InvoicePublicPdfViewDataProvider-CP3zlMFC.js} +3 -3
  19. package/dist/{InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js → InvoicePublicProFormaPdfViewDataProvider-BJJw0mZv.js} +3 -3
  20. package/dist/{ReminderSettingsViewDataProvider-BZgzQIxM.js → ReminderSettingsViewDataProvider-DYUclTJG.js} +1 -1
  21. package/dist/composables/invoicingConfig.composable.d.ts +2 -0
  22. package/dist/{i18n.lib-MOiHLIGc.js → i18n.lib-CN9MRGQ0.js} +2 -6
  23. package/dist/index.d.ts +2 -6
  24. package/dist/index.js +21 -21
  25. package/dist/{invoice.service-Fv4F4aZq.js → invoice.service-Yw5_HhZ9.js} +221 -227
  26. package/dist/{invoiceCustomer.service-CDyrtcwH.js → invoiceCustomer.service-BWBjCw9i.js} +1 -1
  27. package/dist/{invoiceDetail.query-UHE0NCLh.js → invoiceDetail.query-BTd7SVPv.js} +1 -1
  28. package/dist/{invoiceIndexCache.util-CLM7FO6z.js → invoiceIndexCache.util-DKExdA6g.js} +1 -1
  29. package/dist/{invoicingConfig.composable-UC7tGtBj.js → invoicingConfig.composable-SNsMETxy.js} +14 -13
  30. package/dist/libs/i18n.lib.d.ts +2 -6
  31. package/dist/locales/en-US.json.d.ts +1 -3
  32. package/dist/locales/nl-BE.json.d.ts +1 -3
  33. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +2 -2
  34. package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +2 -2
  35. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +2 -2
  36. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
  37. package/dist/modules/invoice/api/services/invoice.service.d.ts +9 -8
  38. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.model.d.ts +15 -0
  39. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.transformer.d.ts +10 -0
  40. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.transformer.spec.d.ts +1 -0
  41. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -1
  42. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +0 -3
  43. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkActionPlan.composable.d.ts +36 -0
  44. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkActionPlan.composable.spec.d.ts +1 -0
  45. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +4 -1
  46. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +1 -1
  47. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +28 -15
  48. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.spec.d.ts +1 -0
  49. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +0 -4
  50. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +2 -0
  51. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +2 -0
  52. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +2 -0
  53. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +2 -0
  54. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +2 -2
  55. package/dist/style.css +1 -1
  56. package/package.json +1 -1
  57. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +0 -10
@@ -1,18 +1,18 @@
1
- import { A as e, C as t, D as n, E as r, G as ee, I as i, L as a, M as o, N as s, S as c, T as l, U as u, W as d, Y as f, a as te, at as ne, b as re, c as ie, d as ae, dt as oe, g as se, h as ce, i as le, it as ue, j as de, k as fe, l as pe, m as me, mt as he, n as ge, ot as _e, p as ve, r as ye, s as be, t as p, ut as xe, v as Se, w as Ce, x as we, z as Te } from "./api.util-CR2xLnNj.js";
2
- import { A as m, b as h, f as g, h as _, r as v, x as y } from "./documentTitle.composable-RvqrZTBa.js";
3
- import { n as b } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { r as x } from "./src-DUSgQTKr.js";
5
- import { t as S } from "./address.transformer-jGddczLV.js";
6
- import { n as C, r as w, t as T } from "./plainDate.transformer-Bhiz9jW7.js";
7
- import { n as E, t as D } from "./percentage.util-Bl78kSSk.js";
8
- import { a as O, i as Ee, n as k, o as De, r as Oe, t as ke } from "./billingDocumentDetail.transformer-D1f6Nv-U.js";
9
- import { t as A } from "./dist-BFx8U4Su.js";
10
- import j from "zod";
11
- import { ref as Ae } from "vue";
12
- import { SortUtil as je } from "@wisemen/vue-core-api-utils";
13
- import { Temporal as M } from "temporal-polyfill";
1
+ import { A as e, C as t, D as n, E as r, G as ee, I as te, L as i, M as a, N as o, S as s, T as c, U as ne, W as re, Y as ie, a as l, at as ae, b as oe, c as se, d as ce, dt as le, g as ue, h as de, i as fe, it as pe, j as me, k as he, l as u, m as d, mt as f, n as ge, ot as _e, p as ve, r as ye, s as be, t as p, ut as xe, v as Se, w as Ce, x as we, z as Te } from "./api.util-CR2xLnNj.js";
2
+ import { A as m, b as Ee, f as h, h as g, r as _, x as v } from "./documentTitle.composable-RvqrZTBa.js";
3
+ import { n as y } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
+ import { r as b } from "./src-DUSgQTKr.js";
5
+ import { t as x } from "./address.transformer-jGddczLV.js";
6
+ import { n as S, r as C, t as w } from "./plainDate.transformer-Bhiz9jW7.js";
7
+ import { n as T, t as E } from "./percentage.util-Bl78kSSk.js";
8
+ import { a as D, i as De, n as O, o as Oe, r as ke, t as Ae } from "./billingDocumentDetail.transformer-D1f6Nv-U.js";
9
+ import { t as k } from "./dist-BFx8U4Su.js";
10
+ import A from "zod";
11
+ import { ref as je } from "vue";
12
+ import { SortUtil as Me } from "@wisemen/vue-core-api-utils";
13
+ import { Temporal as j } from "temporal-polyfill";
14
14
  //#region ../toolkit/src/utils/monetary/monetary.util.ts
15
- var N = class e {
15
+ var M = class e {
16
16
  static fromDto(e) {
17
17
  return {
18
18
  amount: e.amount,
@@ -33,7 +33,7 @@ var N = class e {
33
33
  static toNullableDto(t) {
34
34
  return t === null ? null : e.toDto(t);
35
35
  }
36
- }, Me = class {
36
+ }, Ne = class {
37
37
  static toDto(e) {
38
38
  let t = e.remarks?.trim() ?? "";
39
39
  return {
@@ -41,7 +41,7 @@ var N = class e {
41
41
  remarks: t === "" ? null : t
42
42
  };
43
43
  }
44
- }, Ne = class {
44
+ }, Pe = class {
45
45
  static toDto(e) {
46
46
  if (e.reason === null) throw Error("A rejection reason is required");
47
47
  let t = e.remarks?.trim() ?? "";
@@ -51,23 +51,69 @@ var N = class e {
51
51
  remarks: t === "" ? null : t
52
52
  };
53
53
  }
54
- }, Pe = class {
54
+ }, N = class {
55
55
  static toDto(e) {
56
- return { customerUuid: e.customer.uuid };
56
+ if (e == null) return;
57
+ let t = e.trim();
58
+ return t === "" ? void 0 : t;
57
59
  }
58
60
  }, P = class {
61
+ static toDateRangeDto(e) {
62
+ if (e != null && e.from !== null && e.until !== null) return {
63
+ startDate: w.toDto(e.from),
64
+ endDate: w.toDto(e.until)
65
+ };
66
+ }
67
+ static toDto(e) {
68
+ return {
69
+ filter: this.toFilterDto(e.filters),
70
+ pagination: e.pagination,
71
+ search: N.toDto(e.search),
72
+ sort: Me.toDto(e.sort, {
73
+ created_at: m.CREATED_AT,
74
+ issued_on: m.ISSUED_ON,
75
+ customer: m.CUSTOMER,
76
+ netAmount: m.NET_AMOUNT,
77
+ sequence: m.SEQUENCE
78
+ })
79
+ };
80
+ }
81
+ static toFilterDto(e) {
82
+ let t = {};
83
+ return e?.approvalStatuses?.length && (t.approvalStatuses = e.approvalStatuses), e?.customerExternalIds?.length && (t.customerExternalIds = e.customerExternalIds), e?.hasChangesSinceApprovalSent !== null && e?.hasChangesSinceApprovalSent !== void 0 && (t.hasChangesSinceApprovalSent = e.hasChangesSinceApprovalSent), e?.customerUuids?.length && (t.customerUuids = e.customerUuids), e?.customFields?.length && (t.customFields = e.customFields), e?.issuedOnRange && (t.issuedOnRange = this.toDateRangeDto(e.issuedOnRange)), e?.dueOnRange && (t.dueOnRange = this.toDateRangeDto(e.dueOnRange)), e?.isOverdue !== null && e?.isOverdue !== void 0 && (t.isOverdue = e.isOverdue), e?.lifecycleStatuses?.length && (t.lifecycleStatuses = e.lifecycleStatuses), e?.settlementStatuses?.length && (t.settlementStatuses = e.settlementStatuses), e?.statuses && (t.statuses = e.statuses), t;
84
+ }
85
+ }, F = class {
86
+ static toDto(e) {
87
+ if (e.type === "invoices") return { filter: { invoiceUuids: {
88
+ scope: g.INCLUDE,
89
+ values: e.invoiceUuids
90
+ } } };
91
+ let t = P.toFilterDto(e.queryParams.filters);
92
+ return e.excludedInvoiceUuids.length > 0 && (t.invoiceUuids = {
93
+ scope: g.EXCLUDE,
94
+ values: e.excludedInvoiceUuids
95
+ }), {
96
+ filter: t,
97
+ search: N.toDto(e.queryParams.search)
98
+ };
99
+ }
100
+ }, Fe = class {
101
+ static toDto(e) {
102
+ return { customerUuid: e.customer.uuid };
103
+ }
104
+ }, I = class {
59
105
  static fromDetailDto(e) {
60
106
  return {
61
- reminderSentAt: w.fromNullableDto(e.reminderSentAt),
62
- sentAt: w.fromNullableDto(e.sentAt),
107
+ reminderSentAt: C.fromNullableDto(e.reminderSentAt),
108
+ sentAt: C.fromNullableDto(e.sentAt),
63
109
  level: e.level,
64
110
  status: e.status
65
111
  };
66
112
  }
67
113
  static fromIndexDto(e) {
68
114
  return e === null ? null : {
69
- reminderSentAt: w.fromNullableDto(e.reminderSentAt),
70
- sentAt: w.fromNullableDto(e.sentAt),
115
+ reminderSentAt: C.fromNullableDto(e.reminderSentAt),
116
+ sentAt: C.fromNullableDto(e.sentAt),
71
117
  level: e.level,
72
118
  status: e.status
73
119
  };
@@ -78,96 +124,68 @@ var N = class e {
78
124
  remark: e.customerRemark
79
125
  };
80
126
  }
81
- }, Fe = class e {
127
+ }, Ie = class e {
82
128
  static findActiveApproval(e) {
83
129
  return e.approval.find((e) => e.isActive) ?? null;
84
130
  }
85
131
  static fromDto(t) {
86
132
  let n = e.findActiveApproval(t), r = t.approval.find((e) => e.rejectionReason !== null) ?? null;
87
133
  return {
88
- ...ke.fromViewInvoiceDetailDto(t, t.uuid, y.STANDARD),
134
+ ...Ae.fromViewInvoiceDetailDto(t, t.uuid, v.STANDARD),
89
135
  approvalUuid: n === null ? null : n.uuid,
90
136
  hasApprovalHistory: t.approval.length > 0,
91
137
  hasChangesSinceApprovalSent: t.hasChangesSinceApprovalSent,
92
- approval: n === null ? null : P.fromDetailDto(n),
138
+ approval: n === null ? null : I.fromDetailDto(n),
93
139
  approvalEmail: t.customer.approvalEmail,
94
- approvalProFormaFile: n === null ? null : Oe.fromNullableDto(n.proFormaFile),
95
- rejection: r === null ? null : P.rejectionFromDetailDto(r),
140
+ approvalProFormaFile: n === null ? null : ke.fromNullableDto(n.proFormaFile),
141
+ rejection: r === null ? null : I.rejectionFromDetailDto(r),
96
142
  requiresPriorApproval: t.requiresPriorApproval
97
143
  };
98
144
  }
99
- }, Ie = class {
145
+ }, Le = class {
100
146
  static fromDto(e) {
101
147
  return {
102
148
  uuid: e.uuid,
103
- createdAt: w.fromDto(e.createdAt),
104
- dueOn: T.fromNullableDto(e.dueOn),
105
- issuedOn: T.fromNullableDto(e.issuedOn),
149
+ createdAt: C.fromDto(e.createdAt),
150
+ dueOn: w.fromNullableDto(e.dueOn),
151
+ issuedOn: w.fromNullableDto(e.issuedOn),
106
152
  hasChangesSinceApprovalSent: e.hasChangesSinceApprovalSent,
107
153
  isDisputed: e.isDisputed,
108
154
  isOverdue: e.isOverdue,
109
- approval: P.fromIndexDto(e.approval),
110
- balanceDueAmount: C.fromNullableDto(e.balanceDueAmount),
155
+ approval: I.fromIndexDto(e.approval),
156
+ balanceDueAmount: S.fromNullableDto(e.balanceDueAmount),
111
157
  customerName: e.customer.name,
112
- customFields: e.customFields.map(k.fromDto),
158
+ customFields: e.customFields.map(O.fromDto),
113
159
  deliveryStatus: e.deliveryStatus,
114
- grossAmount: C.fromDto(e.grossAmount),
160
+ grossAmount: S.fromDto(e.grossAmount),
115
161
  lifecycleStatus: e.lifecycleStatus,
116
- paidAmount: C.fromNullableDto(e.paidAmount),
162
+ paidAmount: S.fromNullableDto(e.paidAmount),
117
163
  requiresPriorApproval: e.requiresPriorApproval,
118
164
  sequence: e.sequence,
119
165
  settlementStatus: e.settlementStatus,
120
166
  status: e.status,
121
167
  subject: e.subject,
122
- total: C.fromDto(e.netAmount),
123
- totalCreditedAmount: C.fromNullableDto(e.totalCreditedAmount),
168
+ total: S.fromDto(e.netAmount),
169
+ totalCreditedAmount: S.fromNullableDto(e.totalCreditedAmount),
124
170
  type: e.type
125
171
  };
126
172
  }
127
- }, F = class {
128
- static toDto(e) {
129
- if (e == null) return;
130
- let t = e.trim();
131
- return t === "" ? void 0 : t;
132
- }
133
- }, Le = class {
134
- static toDateRangeDto(e) {
135
- if (e != null && e.from !== null && e.until !== null) return {
136
- startDate: T.toDto(e.from),
137
- endDate: T.toDto(e.until)
138
- };
139
- }
140
- static toDto(e) {
141
- let t = {};
142
- return e.filters?.approvalStatuses?.length && (t.approvalStatuses = e.filters.approvalStatuses), e.filters?.customerExternalIds?.length && (t.customerExternalIds = e.filters.customerExternalIds), e.filters?.hasChangesSinceApprovalSent !== null && e.filters?.hasChangesSinceApprovalSent !== void 0 && (t.hasChangesSinceApprovalSent = e.filters.hasChangesSinceApprovalSent), e.filters?.customerUuids?.length && (t.customerUuids = e.filters.customerUuids), e.filters?.customFields?.length && (t.customFields = e.filters.customFields), e.filters?.issuedOnRange && (t.issuedOnRange = this.toDateRangeDto(e.filters.issuedOnRange)), e.filters?.dueOnRange && (t.dueOnRange = this.toDateRangeDto(e.filters.dueOnRange)), e.filters?.isOverdue !== null && e.filters?.isOverdue !== void 0 && (t.isOverdue = e.filters.isOverdue), e.filters?.lifecycleStatuses?.length && (t.lifecycleStatuses = e.filters.lifecycleStatuses), e.filters?.settlementStatuses?.length && (t.settlementStatuses = e.filters.settlementStatuses), e.filters?.statuses && (t.statuses = e.filters.statuses), {
143
- filter: t,
144
- pagination: e.pagination,
145
- search: F.toDto(e.search),
146
- sort: je.toDto(e.sort, {
147
- created_at: m.CREATED_AT,
148
- issued_on: m.ISSUED_ON,
149
- customer: m.CUSTOMER,
150
- netAmount: m.NET_AMOUNT,
151
- sequence: m.SEQUENCE
152
- })
153
- };
154
- }
155
- }, I = class {
173
+ }, L = class {
156
174
  static getCurrentLocale() {
157
175
  return Intl.DateTimeFormat(navigator.language).resolvedOptions().locale;
158
176
  }
159
- }, L = class {
177
+ }, R = class {
160
178
  static earliest(...e) {
161
179
  return e.reduce((e, t) => t.epochMilliseconds < e.epochMilliseconds ? t : e);
162
180
  }
163
181
  static getNow() {
164
- return M.Now.instant();
182
+ return j.Now.instant();
165
183
  }
166
- static getToday(e = R.getCurrentTimeZone()) {
184
+ static getToday(e = z.getCurrentTimeZone()) {
167
185
  return this.getNow().toZonedDateTimeISO(e).toPlainDate();
168
186
  }
169
187
  static instantFrom(e) {
170
- return M.Instant.from(e);
188
+ return j.Instant.from(e);
171
189
  }
172
190
  static instantFromDateAndTime(e, t, n) {
173
191
  return e.toPlainDateTime(t).toZonedDateTime(n).toInstant();
@@ -193,12 +211,12 @@ var N = class e {
193
211
  static latest(...e) {
194
212
  return e.reduce((e, t) => t.epochMilliseconds > e.epochMilliseconds ? t : e);
195
213
  }
196
- static plainDateAndTimeToZonedDateTime(e, t, n = R.getCurrentTimeZone()) {
214
+ static plainDateAndTimeToZonedDateTime(e, t, n = z.getCurrentTimeZone()) {
197
215
  return this.plainDateTimeFromDateAndTime(e, t).toZonedDateTime(n);
198
216
  }
199
217
  static plainDateRangeToDateTimeInstantRange(e) {
200
218
  if (e.startDate === null || e.endDate === null) return null;
201
- let t = R.getCurrentTimeZone();
219
+ let t = z.getCurrentTimeZone();
202
220
  return {
203
221
  startDate: e.startDate.toZonedDateTime({ timeZone: t }).toInstant(),
204
222
  endDate: e.endDate.toZonedDateTime({ timeZone: t }).with({
@@ -210,15 +228,15 @@ var N = class e {
210
228
  };
211
229
  }
212
230
  static plainDateTimeFromDateAndTime(e, t) {
213
- return M.PlainDate.from(e).toPlainDateTime(M.PlainTime.from(t));
231
+ return j.PlainDate.from(e).toPlainDateTime(j.PlainTime.from(t));
214
232
  }
215
- static plainDateTimeToZonedDateTime(e, t = R.getCurrentTimeZone()) {
233
+ static plainDateTimeToZonedDateTime(e, t = z.getCurrentTimeZone()) {
216
234
  return e.toZonedDateTime(t);
217
235
  }
218
236
  static plainDateToInstant(e, t) {
219
237
  return e.toZonedDateTime(t).toInstant();
220
238
  }
221
- }, R = class {
239
+ }, z = class {
222
240
  static getAvailableTimeZones() {
223
241
  return Intl.supportedValuesOf("timeZone");
224
242
  }
@@ -226,24 +244,24 @@ var N = class e {
226
244
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
227
245
  }
228
246
  static getOffset(e) {
229
- let { offset: t } = L.getNow().toZonedDateTimeISO(e), [n, r] = t.split(":");
247
+ let { offset: t } = R.getNow().toZonedDateTimeISO(e), [n, r] = t.split(":");
230
248
  return r === "00" ? n : t;
231
249
  }
232
250
  }, Re = {
233
- appLanguage: I.getCurrentLocale(),
251
+ appLanguage: L.getCurrentLocale(),
234
252
  hourCycle: "locale-default",
235
- locale: I.getCurrentLocale(),
236
- timeZone: R.getCurrentTimeZone()
253
+ locale: L.getCurrentLocale(),
254
+ timeZone: z.getCurrentTimeZone()
237
255
  };
238
- Ae(Re);
256
+ je(Re);
239
257
  //#endregion
240
258
  //#region ../date/src/models/form/plainDateField.model.ts
241
- var z = j.instanceof(M.PlainDate, { error: () => "Invalid date format" }), B = j.instanceof(M.PlainTime, { error: () => "Invalid time format" }), V = j.object({
242
- date: z,
243
- time: B
244
- }), H = j.object({
245
- date: z.nullable(),
246
- time: B.nullable()
259
+ var B = A.instanceof(j.PlainDate, { error: () => "Invalid date format" }), V = A.instanceof(j.PlainTime, { error: () => "Invalid time format" }), H = A.object({
260
+ date: B,
261
+ time: V
262
+ }), U = A.object({
263
+ date: B.nullable(),
264
+ time: V.nullable()
247
265
  }).superRefine(({ date: e, time: t }, n) => {
248
266
  e === null != (t === null) && n.addIssue({
249
267
  code: "custom",
@@ -251,44 +269,44 @@ var z = j.instanceof(M.PlainDate, { error: () => "Invalid date format" }), B = j
251
269
  path: [e === null ? "date" : "time"]
252
270
  });
253
271
  });
254
- function U(e) {
255
- return M.PlainDate.from(e.date).toPlainDateTime(M.PlainTime.from(e.time));
272
+ function W(e) {
273
+ return j.PlainDate.from(e.date).toPlainDateTime(j.PlainTime.from(e.time));
256
274
  }
257
- function W(e, t) {
258
- return U(e).since(U(t)).total("seconds") < 0;
275
+ function G(e, t) {
276
+ return W(e).since(W(t)).total("seconds") < 0;
259
277
  }
260
- j.object({
261
- end: V,
262
- start: V
278
+ A.object({
279
+ end: H,
280
+ start: H
263
281
  }).superRefine(({ end: e, start: t }, n) => {
264
- W(t, e) || n.addIssue({
282
+ G(t, e) || n.addIssue({
265
283
  code: "custom",
266
284
  message: "End date/time must be after start date/time",
267
285
  path: ["end", "time"]
268
286
  });
269
- }), j.object({
270
- end: H,
271
- start: H
287
+ }), A.object({
288
+ end: U,
289
+ start: U
272
290
  }).superRefine(({ end: e, start: t }, n) => {
273
- t.date !== null && t.time !== null && e.date !== null && e.time !== null && (W(t, e) || n.addIssue({
291
+ t.date !== null && t.time !== null && e.date !== null && e.time !== null && (G(t, e) || n.addIssue({
274
292
  code: "custom",
275
293
  message: "End date/time must be after start date/time",
276
294
  path: ["end", "time"]
277
295
  }));
278
- }), j.object({
279
- end: V,
280
- start: H
296
+ }), A.object({
297
+ end: H,
298
+ start: U
281
299
  }).superRefine(({ end: e, start: t }, n) => {
282
- t.time !== null && t.date !== null && (W(t, e) || n.addIssue({
300
+ t.time !== null && t.date !== null && (G(t, e) || n.addIssue({
283
301
  code: "custom",
284
302
  message: "End date/time must be after start date/time",
285
303
  path: ["end", "time"]
286
304
  }));
287
- }), j.object({
288
- end: H,
289
- start: V
305
+ }), A.object({
306
+ end: U,
307
+ start: H
290
308
  }).superRefine(({ end: e, start: t }, n) => {
291
- e.date !== null && e.time !== null && (W(t, e) || n.addIssue({
309
+ e.date !== null && e.time !== null && (G(t, e) || n.addIssue({
292
310
  code: "custom",
293
311
  message: "End date/time must be after start date/time",
294
312
  path: ["end", "time"]
@@ -298,7 +316,7 @@ j.object({
298
316
  //#region ../date/src/transformers/instant.transformer.ts
299
317
  var ze = class {
300
318
  static fromDto(e) {
301
- return M.Instant.from(e);
319
+ return j.Instant.from(e);
302
320
  }
303
321
  static fromNullableDto(e) {
304
322
  return e === null ? null : this.fromDto(e);
@@ -309,9 +327,9 @@ var ze = class {
309
327
  static toNullableDto(e) {
310
328
  return e === null ? null : this.toDto(e);
311
329
  }
312
- }, G = class {
330
+ }, K = class {
313
331
  static fromDto(e) {
314
- return M.PlainDate.from(e);
332
+ return j.PlainDate.from(e);
315
333
  }
316
334
  static fromNullableDto(e) {
317
335
  return e === null ? null : this.fromDto(e);
@@ -327,8 +345,8 @@ var ze = class {
327
345
  return {
328
346
  uuid: e.uuid,
329
347
  createdAt: ze.fromDto(e.createdAt),
330
- amount: N.fromDto(e.amount),
331
- date: G.fromDto(e.date),
348
+ amount: M.fromDto(e.amount),
349
+ date: K.fromDto(e.date),
332
350
  paymentReference: e.paymentReference,
333
351
  remarks: e.remarks,
334
352
  source: e.source
@@ -337,12 +355,12 @@ var ze = class {
337
355
  }, Ve = class {
338
356
  static toDto(e) {
339
357
  return {
340
- amount: N.toDto({
341
- amount: x(e.amount, e.precision),
358
+ amount: M.toDto({
359
+ amount: b(e.amount, e.precision),
342
360
  currency: e.currency,
343
361
  precision: e.precision
344
362
  }),
345
- date: G.toDto(e.date),
363
+ date: K.toDto(e.date),
346
364
  paymentReference: e.paymentReference === "" ? null : e.paymentReference,
347
365
  remarks: e.remarks === "" ? null : e.remarks
348
366
  };
@@ -350,10 +368,10 @@ var ze = class {
350
368
  };
351
369
  //#endregion
352
370
  //#region src/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.ts
353
- function K(e) {
371
+ function He(e) {
354
372
  return {
355
373
  uuid: e.uuid,
356
- createdAt: w.fromDto(e.createdAt),
374
+ createdAt: C.fromDto(e.createdAt),
357
375
  sequence: e.sequence,
358
376
  status: e.status
359
377
  };
@@ -363,40 +381,40 @@ function q(e) {
363
381
  uuid: e.uuid,
364
382
  isDiscount: e.isDiscount,
365
383
  name: e.name,
366
- customFields: e.customFields.map(k.fromDto),
384
+ customFields: e.customFields.map(O.fromDto),
367
385
  description: e.description,
368
- discount: O.fromDto(e.discount),
369
- grossAmount: C.fromDto(e.grossAmount),
370
- netAmount: C.fromDto(e.netAmount),
386
+ discount: D.fromDto(e.discount),
387
+ grossAmount: S.fromDto(e.grossAmount),
388
+ netAmount: S.fromDto(e.netAmount),
371
389
  position: e.position,
372
390
  quantity: e.quantity,
373
391
  unit: e.unit,
374
- unitPrice: C.fromDto(e.unitPrice),
392
+ unitPrice: S.fromDto(e.unitPrice),
375
393
  vatRate: e.vatRate,
376
- vatRatePercentage: E.fromDto(e.vatRatePercentage)
394
+ vatRatePercentage: T.fromDto(e.vatRatePercentage)
377
395
  };
378
396
  }
379
397
  function J(e) {
380
398
  return {
381
399
  uuid: e.uuid,
382
400
  name: e.name,
383
- customFields: e.customFields.map(k.fromDto),
401
+ customFields: e.customFields.map(O.fromDto),
384
402
  description: e.description,
385
403
  groups: e.groups.toSorted((e, t) => e.position - t.position).map(J),
386
404
  lines: e.lines.toSorted((e, t) => e.position - t.position).map(q),
387
405
  position: e.position
388
406
  };
389
407
  }
390
- function He(e) {
391
- return [...e.ungroupedLines, ...Ee.flattenLines(e.groups)].toSorted((e, t) => e.position - t.position);
408
+ function Ue(e) {
409
+ return [...e.ungroupedLines, ...De.flattenLines(e.groups)].toSorted((e, t) => e.position - t.position);
392
410
  }
393
411
  var Y = class e {
394
412
  static fromPublicDto(t) {
395
413
  return {
396
414
  ...e.fromPublicProFormaDto(t),
397
- deliveredOn: T.fromNullableDto(t.deliveredOn),
398
- dueOn: T.fromNullableDto(t.dueOn),
399
- originalInvoice: t.originalInvoice === null ? null : K(t.originalInvoice),
415
+ deliveredOn: w.fromNullableDto(t.deliveredOn),
416
+ dueOn: w.fromNullableDto(t.dueOn),
417
+ originalInvoice: t.originalInvoice === null ? null : He(t.originalInvoice),
400
418
  recipient: t.recipient === null ? null : {
401
419
  uuid: t.recipient.uuid,
402
420
  name: t.recipient.name,
@@ -409,15 +427,15 @@ var Y = class e {
409
427
  }
410
428
  static fromPublicProFormaDto(e) {
411
429
  return {
412
- createdAt: w.fromDto(e.createdAt),
430
+ createdAt: C.fromDto(e.createdAt),
413
431
  deliveredOn: null,
414
432
  dueOn: null,
415
- issueOn: T.fromNullableDto(e.issueOn),
416
- updatedAt: w.fromDto(e.updatedAt),
433
+ issueOn: w.fromNullableDto(e.issueOn),
434
+ updatedAt: C.fromDto(e.updatedAt),
417
435
  issuer: {
418
436
  uuid: e.issuer.uuid,
419
437
  name: e.issuer.name,
420
- address: S.fromNullableDto(e.issuer.address),
438
+ address: x.fromNullableDto(e.issuer.address),
421
439
  alternativeBankAccountNumber: e.issuer.alternativeBankAccountNumber,
422
440
  bankAccountNumber: e.issuer.bankAccountNumber,
423
441
  email: e.issuer.email,
@@ -425,52 +443,52 @@ var Y = class e {
425
443
  vatNumber: e.issuer.vatNumber,
426
444
  website: e.issuer.website
427
445
  },
428
- advancePaymentAmount: C.fromNullableDto(e.advancePaymentAmount),
446
+ advancePaymentAmount: S.fromNullableDto(e.advancePaymentAmount),
429
447
  customer: {
430
448
  uuid: e.customer.uuid,
431
449
  name: e.customer.name,
432
- address: S.fromNullableDto(e.customer.address),
450
+ address: x.fromNullableDto(e.customer.address),
433
451
  email: e.customer.email,
434
452
  phoneNumber: e.customer.phoneNumber,
435
453
  vatNumber: e.customer.vatNumber
436
454
  },
437
- customFields: e.customFields.map(k.fromDto),
438
- effectiveNet: C.fromDto(e.effectiveNet),
455
+ customFields: e.customFields.map(O.fromDto),
456
+ effectiveNet: S.fromDto(e.effectiveNet),
439
457
  externalRemarks: e.externalRemarks,
440
- globalDiscount: O.fromDto(e.globalDiscount),
441
- grossAmount: C.fromDto(e.grossAmount),
458
+ globalDiscount: D.fromDto(e.globalDiscount),
459
+ grossAmount: S.fromDto(e.grossAmount),
442
460
  groups: e.groups.toSorted((e, t) => e.position - t.position).map(J),
443
- lines: He(e).map(q),
444
- netAmount: C.fromDto(e.netAmount),
461
+ lines: Ue(e).map(q),
462
+ netAmount: S.fromDto(e.netAmount),
445
463
  originalInvoice: null,
446
464
  paymentReference: e.paymentReference,
447
465
  poNumber: e.poNumber,
448
466
  recipient: null,
449
467
  sequence: null,
450
- status: h.READY,
468
+ status: Ee.READY,
451
469
  subject: e.subject,
452
- totalDiscountAmount: C.fromNullableDto(e.totalDiscountAmount),
453
- type: y.STANDARD,
470
+ totalDiscountAmount: S.fromNullableDto(e.totalDiscountAmount),
471
+ type: v.STANDARD,
454
472
  ungroupedLines: e.ungroupedLines.map(q),
455
- vatAmount: C.fromDto(e.vatAmount),
473
+ vatAmount: S.fromDto(e.vatAmount),
456
474
  vatSummaries: e.vatSummaries.map((e) => ({
457
- netAmount: C.fromDto(e.netAmount),
458
- vatAmount: C.fromDto(e.vatAmount),
475
+ netAmount: S.fromDto(e.netAmount),
476
+ vatAmount: S.fromDto(e.vatAmount),
459
477
  vatRate: e.vatRate
460
478
  }))
461
479
  };
462
480
  }
463
- }, Ue = class {
481
+ }, We = class {
464
482
  static toDto(e) {
465
483
  let t = Math.abs(e.value);
466
- return e.type === g.PERCENTAGE ? { discount: {
484
+ return e.type === h.PERCENTAGE ? { discount: {
467
485
  amount: null,
468
486
  description: null,
469
- percentage: E.toDto(new D(t)),
487
+ percentage: T.toDto(new E(t)),
470
488
  type: e.type
471
489
  } } : { discount: {
472
- amount: C.toDto({
473
- amount: b(t, e.precision),
490
+ amount: S.toDto({
491
+ amount: y(t, e.precision),
474
492
  currency: e.currency,
475
493
  precision: e.precision
476
494
  }),
@@ -497,13 +515,13 @@ var Y = class e {
497
515
  static toDto(e) {
498
516
  return {
499
517
  preparedByUuid: e.preparedBy.uuid,
500
- deliveredOn: T.toNullableDto(e.deliveredOn),
501
- dueOn: T.toDto(e.dueOn),
502
- issuedOn: T.toDto(e.issuedOn),
503
- customFields: e.customFields.map(k.toDto),
504
- externalRemarks: A.trimOrNull(e.externalRemarks),
505
- poNumber: A.trimOrNull(e.poNumber),
506
- subject: A.trimOrNull(e.subject)
518
+ deliveredOn: w.toNullableDto(e.deliveredOn),
519
+ dueOn: w.toDto(e.dueOn),
520
+ issuedOn: w.toDto(e.issuedOn),
521
+ customFields: e.customFields.map(O.toDto),
522
+ externalRemarks: k.trimOrNull(e.externalRemarks),
523
+ poNumber: k.trimOrNull(e.poNumber),
524
+ subject: k.trimOrNull(e.subject)
507
525
  };
508
526
  }
509
527
  static toForm(e) {
@@ -525,95 +543,83 @@ function Q(e) {
525
543
  return {
526
544
  isDiscount: e.quantity < 0 || e.isDiscount,
527
545
  name: e.name,
528
- customFields: e.customFields.map(k.toDto),
546
+ customFields: e.customFields.map(O.toDto),
529
547
  description: e.description,
530
- discount: O.toDto(e.discount),
548
+ discount: D.toDto(e.discount),
531
549
  position: e.position,
532
550
  quantity: e.quantity,
533
551
  unit: e.unit,
534
- unitPrice: C.toDto(e.unitPrice),
552
+ unitPrice: S.toDto(e.unitPrice),
535
553
  vatRate: e.vatRate
536
554
  };
537
555
  }
538
556
  function $(e) {
539
557
  return {
540
558
  name: e.name,
541
- customFields: e.customFields.map(k.toDto),
559
+ customFields: e.customFields.map(O.toDto),
542
560
  description: e.description,
543
561
  groups: e.groups.map($),
544
562
  lines: e.lines.map(Q),
545
563
  position: e.position
546
564
  };
547
565
  }
548
- var We = class {
566
+ var Ge = class {
549
567
  static toDto(e) {
550
568
  return {
551
569
  groups: e.groups.map($),
552
570
  ungroupedLines: e.ungroupedLines.map(Q)
553
571
  };
554
572
  }
555
- }, Ge = class {
573
+ }, Ke = class {
556
574
  static async applyDiscount(e, t) {
557
575
  let n = await p.fromPromise(ge({
558
- body: Ue.toDto(t),
576
+ body: We.toDto(t),
559
577
  path: { uuid: e }
560
578
  }));
561
579
  return p.void(n);
562
580
  }
563
581
  static async approveApproval(e, t) {
564
582
  let n = await p.fromPromise(ye({
565
- body: Me.toDto(t),
583
+ body: Ne.toDto(t),
566
584
  path: { uuid: e }
567
585
  }));
568
586
  return p.void(n);
569
587
  }
570
588
  static async archiveApproval(e) {
571
- let t = await p.fromPromise(pe({ path: { uuid: e } }));
589
+ let t = await p.fromPromise(u({ path: { uuid: e } }));
572
590
  return p.void(t);
573
591
  }
574
592
  static async bulkFinalize(e) {
575
- return (await p.fromPromise(le({ query: { filter: { invoiceUuids: {
576
- scope: _.INCLUDE,
577
- values: e
578
- } } } }))).map((e) => e.data);
593
+ return (await p.fromPromise(fe({ query: F.toDto(e) }))).map((e) => e.data);
579
594
  }
580
595
  static async bulkMarkAsReady(e) {
581
- return (await p.fromPromise(te({ query: { filter: { invoiceUuids: {
582
- scope: _.INCLUDE,
583
- values: e
584
- } } } }))).map((e) => e.data);
596
+ return (await p.fromPromise(l({ query: F.toDto(e) }))).map((e) => e.data);
585
597
  }
586
598
  static async bulkSend(e) {
587
- return (await p.fromPromise(ie({ query: { filter: { invoiceUuids: {
588
- scope: _.INCLUDE,
589
- values: e
590
- } } } }))).map((e) => e.data);
599
+ return (await p.fromPromise(se({ query: F.toDto(e) }))).map((e) => e.data);
591
600
  }
592
601
  static async bulkSendApproval(e) {
593
- return (await p.fromPromise(be({ query: { filter: { invoiceUuids: {
594
- scope: _.INCLUDE,
595
- values: e
596
- } } } }))).map((e) => e.data);
602
+ return (await p.fromPromise(be({ query: F.toDto(e) }))).map((e) => e.data);
597
603
  }
598
604
  static async create(e) {
599
- return (await p.fromPromise(ve({ body: Pe.toDto(e) }))).map((e) => e.data.uuid);
605
+ return (await p.fromPromise(ve({ body: Fe.toDto(e) }))).map((e) => e.data.uuid);
600
606
  }
601
607
  static async createCreditNote(e) {
602
- return (await p.fromPromise(ae({ path: { uuid: e } }))).map((e) => e.data.uuid);
608
+ return (await p.fromPromise(ce({ path: { uuid: e } }))).map((e) => e.data.uuid);
603
609
  }
604
610
  static async createPayment(e, t) {
605
- let n = await p.fromPromise(me({
611
+ let n = await p.fromPromise(d({
606
612
  body: Ve.toDto(t),
607
613
  path: { uuid: e }
608
614
  }));
609
615
  return p.void(n);
610
616
  }
611
617
  static async delete(e) {
612
- let t = await p.fromPromise(ce({ path: { uuid: e } }));
618
+ let t = await p.fromPromise(de({ path: { uuid: e } }));
613
619
  return p.void(t);
614
620
  }
615
621
  static async deletePayment(e, t) {
616
- let n = await p.fromPromise(se({ path: {
622
+ let n = await p.fromPromise(ue({ path: {
617
623
  uuid: e,
618
624
  paymentUuid: t
619
625
  } }));
@@ -623,35 +629,35 @@ var We = class {
623
629
  return (await p.fromPromise(Se({ path: { uuid: e } }))).map((e) => e.data.uuid);
624
630
  }
625
631
  static async finalize(e) {
626
- let t = await p.fromPromise(re({ path: { uuid: e } }));
632
+ let t = await p.fromPromise(oe({ path: { uuid: e } }));
627
633
  return p.void(t);
628
634
  }
629
635
  static async getActivityLogs(e, t) {
630
- return (await p.fromPromise(f({ query: {
636
+ return (await p.fromPromise(ie({ query: {
631
637
  filter: {
632
638
  entityUuids: [e],
633
- roles: [v.INVOICE]
639
+ roles: [_.INVOICE]
634
640
  },
635
641
  pagination: {
636
642
  key: t.pagination.key ?? null,
637
643
  limit: t.pagination.limit
638
644
  }
639
645
  } }))).map((e) => ({
640
- data: e.data.logs.map(De.fromDto),
646
+ data: e.data.logs.map(Oe.fromDto),
641
647
  meta: { next: e.data.nextKey }
642
648
  }));
643
649
  }
644
650
  static async getAll(e) {
645
- return (await p.fromPromise(ne({
646
- query: Le.toDto(e),
651
+ return (await p.fromPromise(ae({
652
+ query: P.toDto(e),
647
653
  responseValidator: void 0
648
654
  }))).map((e) => ({
649
- data: e.data.items.map(Ie.fromDto),
655
+ data: e.data.items.map(Le.fromDto),
650
656
  meta: e.data.meta
651
657
  }));
652
658
  }
653
659
  static async getByUuid(e) {
654
- return (await p.fromPromise(ue({ path: { uuid: e } }))).map((e) => Fe.fromDto(e.data));
660
+ return (await p.fromPromise(pe({ path: { uuid: e } }))).map((e) => Ie.fromDto(e.data));
655
661
  }
656
662
  static async getPayments(e) {
657
663
  return (await p.fromPromise(_e({ path: { uuid: e } }))).map((e) => e.data.items.map(Be.fromDto));
@@ -660,10 +666,10 @@ var We = class {
660
666
  return (await p.fromPromise(xe({ query: { token: e } }))).map((e) => Y.fromPublicDto(e.data));
661
667
  }
662
668
  static async getPublicProFormaDetail(e) {
663
- return (await p.fromPromise(oe({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
669
+ return (await p.fromPromise(le({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
664
670
  }
665
671
  static async markAsDraft(e) {
666
- let t = await p.fromPromise(c({ path: { uuid: e } }));
672
+ let t = await p.fromPromise(s({ path: { uuid: e } }));
667
673
  return p.void(t);
668
674
  }
669
675
  static async markAsPaid(e) {
@@ -679,54 +685,42 @@ var We = class {
679
685
  return p.void(t);
680
686
  }
681
687
  static async markAsReady(e) {
682
- let t = await p.fromPromise(l({ path: { uuid: e } }));
688
+ let t = await p.fromPromise(c({ path: { uuid: e } }));
683
689
  return p.void(t);
684
690
  }
685
691
  static async previewBulkFinalize(e) {
686
- return (await p.fromPromise(r({ query: { filter: { invoiceUuids: {
687
- scope: _.INCLUDE,
688
- values: e
689
- } } } }))).map((e) => e.data);
692
+ return (await p.fromPromise(r({ query: F.toDto(e) }))).map((e) => e.data);
690
693
  }
691
694
  static async previewBulkMarkAsReady(e) {
692
- return (await p.fromPromise(n({ query: { filter: { invoiceUuids: {
693
- scope: _.INCLUDE,
694
- values: e
695
- } } } }))).map((e) => e.data);
695
+ return (await p.fromPromise(n({ query: F.toDto(e) }))).map((e) => e.data);
696
696
  }
697
697
  static async previewBulkSend(t) {
698
- return (await p.fromPromise(e({ query: { filter: { invoiceUuids: {
699
- scope: _.INCLUDE,
700
- values: t
701
- } } } }))).map((e) => e.data);
698
+ return (await p.fromPromise(e({ query: F.toDto(t) }))).map((e) => e.data);
702
699
  }
703
700
  static async previewBulkSendApproval(e) {
704
- return (await p.fromPromise(fe({ query: { filter: { invoiceUuids: {
705
- scope: _.INCLUDE,
706
- values: e
707
- } } } }))).map((e) => e.data);
701
+ return (await p.fromPromise(he({ query: F.toDto(e) }))).map((e) => e.data);
708
702
  }
709
703
  static async rejectApproval(e, t) {
710
- let n = await p.fromPromise(de({
711
- body: Ne.toDto(t),
704
+ let n = await p.fromPromise(me({
705
+ body: Pe.toDto(t),
712
706
  path: { uuid: e }
713
707
  }));
714
708
  return p.void(n);
715
709
  }
716
710
  static async restartApproval(e) {
717
- let t = await p.fromPromise(o({ path: { uuid: e } }));
711
+ let t = await p.fromPromise(a({ path: { uuid: e } }));
718
712
  return p.void(t);
719
713
  }
720
714
  static async restoreFromProForma(e) {
721
- let t = await p.fromPromise(s({ path: { uuid: e } }));
715
+ let t = await p.fromPromise(o({ path: { uuid: e } }));
722
716
  return p.void(t);
723
717
  }
724
718
  static async send(e) {
725
- let t = await p.fromPromise(a({ path: { uuid: e } }));
719
+ let t = await p.fromPromise(i({ path: { uuid: e } }));
726
720
  return p.void(t);
727
721
  }
728
722
  static async sendApproval(e) {
729
- let t = await p.fromPromise(i({ path: { uuid: e } }));
723
+ let t = await p.fromPromise(te({ path: { uuid: e } }));
730
724
  return p.void(t);
731
725
  }
732
726
  static async unmarkAsPriorApprovalRequired(e) {
@@ -741,23 +735,23 @@ var We = class {
741
735
  return p.void(n);
742
736
  }
743
737
  static async updateAttachments(e, t) {
744
- let n = await p.fromPromise(u({
738
+ let n = await p.fromPromise(ne({
745
739
  body: X.toDto(t),
746
740
  path: { uuid: e }
747
741
  }));
748
742
  return p.void(n);
749
743
  }
750
744
  static async updateLines(e, t) {
751
- let n = await p.fromPromise(d({
752
- body: We.toDto(t),
745
+ let n = await p.fromPromise(re({
746
+ body: Ge.toDto(t),
753
747
  path: { uuid: e }
754
748
  }));
755
749
  return p.void(n);
756
750
  }
757
751
  static async withdrawProtest(e) {
758
- let t = await p.fromPromise(he({ path: { uuid: e } }));
752
+ let t = await p.fromPromise(f({ path: { uuid: e } }));
759
753
  return p.void(t);
760
754
  }
761
755
  };
762
756
  //#endregion
763
- export { L as a, z as i, Z as n, F as o, X as r, Ge as t };
757
+ export { R as a, B as i, Z as n, N as o, X as r, Ke as t };