@maesn/typescript-sdk 0.8.12 → 0.8.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/esm/funcs/accounting-delete-item.d.ts +11 -0
- package/esm/funcs/accounting-delete-item.d.ts.map +1 -0
- package/esm/funcs/accounting-delete-item.js +81 -0
- package/esm/funcs/accounting-delete-item.js.map +1 -0
- package/esm/funcs/accounting-get-journal-entry.js +1 -0
- package/esm/funcs/accounting-get-journal-entry.js.map +1 -1
- package/esm/funcs/accounting-update-item.d.ts +11 -0
- package/esm/funcs/accounting-update-item.d.ts.map +1 -0
- package/esm/funcs/accounting-update-item.js +82 -0
- package/esm/funcs/accounting-update-item.js.map +1 -0
- package/esm/funcs/accounting-update-journal-entry.d.ts +11 -0
- package/esm/funcs/accounting-update-journal-entry.d.ts.map +1 -0
- package/esm/funcs/accounting-update-journal-entry.js +109 -0
- package/esm/funcs/accounting-update-journal-entry.js.map +1 -0
- package/esm/funcs/auth-create-end-user-account.js +5 -1
- package/esm/funcs/auth-create-end-user-account.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +10 -9
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +29 -13
- package/esm/lib/encodings.js.map +1 -1
- package/esm/models/account-response-dto.d.ts +10 -0
- package/esm/models/account-response-dto.d.ts.map +1 -1
- package/esm/models/account-response-dto.js +11 -0
- package/esm/models/account-response-dto.js.map +1 -1
- package/esm/models/bank-account-request-common-dto-v2.d.ts +2 -0
- package/esm/models/bank-account-request-common-dto-v2.d.ts.map +1 -1
- package/esm/models/bank-account-request-common-dto-v2.js +1 -0
- package/esm/models/bank-account-request-common-dto-v2.js.map +1 -1
- package/esm/models/bank-account-response-common-dto-v2.d.ts +15 -0
- package/esm/models/bank-account-response-common-dto-v2.d.ts.map +1 -0
- package/esm/models/bank-account-response-common-dto-v2.js +19 -0
- package/esm/models/bank-account-response-common-dto-v2.js.map +1 -0
- package/esm/models/booking-proposal-response-dto-v2.d.ts +1 -0
- package/esm/models/booking-proposal-response-dto-v2.d.ts.map +1 -1
- package/esm/models/booking-proposal-response-dto-v2.js +1 -0
- package/esm/models/booking-proposal-response-dto-v2.js.map +1 -1
- package/esm/models/contact-person-dto-v2.d.ts +2 -0
- package/esm/models/contact-person-dto-v2.d.ts.map +1 -1
- package/esm/models/contact-person-dto-v2.js +2 -0
- package/esm/models/contact-person-dto-v2.js.map +1 -1
- package/esm/models/contact-response-dto-v2.d.ts +5 -0
- package/esm/models/contact-response-dto-v2.d.ts.map +1 -1
- package/esm/models/contact-response-dto-v2.js +5 -0
- package/esm/models/contact-response-dto-v2.js.map +1 -1
- package/esm/models/create-account-request-dto.d.ts +3 -0
- package/esm/models/create-account-request-dto.d.ts.map +1 -1
- package/esm/models/create-account-request-dto.js +2 -0
- package/esm/models/create-account-request-dto.js.map +1 -1
- package/esm/models/create-contact-person-dto-v2.d.ts +4 -0
- package/esm/models/create-contact-person-dto-v2.d.ts.map +1 -1
- package/esm/models/create-contact-person-dto-v2.js +2 -0
- package/esm/models/create-contact-person-dto-v2.js.map +1 -1
- package/esm/models/create-contact-request-dto-v2.d.ts +9 -0
- package/esm/models/create-contact-request-dto-v2.d.ts.map +1 -1
- package/esm/models/create-contact-request-dto-v2.js +5 -0
- package/esm/models/create-contact-request-dto-v2.js.map +1 -1
- package/esm/models/create-journal-entry-request-dto.d.ts +2 -0
- package/esm/models/create-journal-entry-request-dto.d.ts.map +1 -1
- package/esm/models/create-journal-entry-request-dto.js +1 -0
- package/esm/models/create-journal-entry-request-dto.js.map +1 -1
- package/esm/models/create-offer-line-item-request-dto.d.ts +1 -0
- package/esm/models/create-offer-line-item-request-dto.d.ts.map +1 -1
- package/esm/models/create-offer-line-item-request-dto.js +1 -0
- package/esm/models/create-offer-line-item-request-dto.js.map +1 -1
- package/esm/models/create-offer-request-dto.d.ts +2 -0
- package/esm/models/create-offer-request-dto.d.ts.map +1 -1
- package/esm/models/create-offer-request-dto.js +1 -0
- package/esm/models/create-offer-request-dto.js.map +1 -1
- package/esm/models/create-sales-order-line-item-request-dto.d.ts +4 -0
- package/esm/models/create-sales-order-line-item-request-dto.d.ts.map +1 -1
- package/esm/models/create-sales-order-line-item-request-dto.js +2 -0
- package/esm/models/create-sales-order-line-item-request-dto.js.map +1 -1
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +2 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/journal-entry-response-dto.d.ts +2 -1
- package/esm/models/journal-entry-response-dto.d.ts.map +1 -1
- package/esm/models/journal-entry-response-dto.js +2 -1
- package/esm/models/journal-entry-response-dto.js.map +1 -1
- package/esm/models/offer-line-item-response-dto.d.ts +1 -0
- package/esm/models/offer-line-item-response-dto.d.ts.map +1 -1
- package/esm/models/offer-line-item-response-dto.js +1 -0
- package/esm/models/offer-line-item-response-dto.js.map +1 -1
- package/esm/models/offer-response-dto.d.ts +1 -0
- package/esm/models/offer-response-dto.d.ts.map +1 -1
- package/esm/models/offer-response-dto.js +1 -0
- package/esm/models/offer-response-dto.js.map +1 -1
- package/esm/models/operations/create-end-user-account.d.ts +5 -0
- package/esm/models/operations/create-end-user-account.d.ts.map +1 -1
- package/esm/models/operations/create-end-user-account.js +1 -0
- package/esm/models/operations/create-end-user-account.js.map +1 -1
- package/esm/models/operations/delete-item.d.ts +75 -0
- package/esm/models/operations/delete-item.d.ts.map +1 -0
- package/esm/models/operations/delete-item.js +57 -0
- package/esm/models/operations/delete-item.js.map +1 -0
- package/esm/models/operations/get-journal-entry.d.ts +5 -0
- package/esm/models/operations/get-journal-entry.d.ts.map +1 -1
- package/esm/models/operations/get-journal-entry.js +1 -0
- package/esm/models/operations/get-journal-entry.js.map +1 -1
- package/esm/models/operations/index.d.ts +3 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +3 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/update-item.d.ts +77 -0
- package/esm/models/operations/update-item.d.ts.map +1 -0
- package/esm/models/operations/update-item.js +58 -0
- package/esm/models/operations/update-item.js.map +1 -0
- package/esm/models/operations/update-journal-entry.d.ts +96 -0
- package/esm/models/operations/update-journal-entry.d.ts.map +1 -0
- package/esm/models/operations/update-journal-entry.js +83 -0
- package/esm/models/operations/update-journal-entry.js.map +1 -0
- package/esm/models/tax-rate-request-common-dto.d.ts +18 -0
- package/esm/models/tax-rate-request-common-dto.d.ts.map +1 -0
- package/esm/models/tax-rate-request-common-dto.js +15 -0
- package/esm/models/tax-rate-request-common-dto.js.map +1 -0
- package/esm/sdk/accounting.d.ts +3 -0
- package/esm/sdk/accounting.d.ts.map +1 -1
- package/esm/sdk/accounting.js +12 -0
- package/esm/sdk/accounting.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accounting-delete-item.ts +172 -0
- package/src/funcs/accounting-get-journal-entry.ts +1 -0
- package/src/funcs/accounting-update-item.ts +173 -0
- package/src/funcs/accounting-update-journal-entry.ts +226 -0
- package/src/funcs/auth-create-end-user-account.ts +6 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/models/account-response-dto.ts +32 -0
- package/src/models/bank-account-request-common-dto-v2.ts +3 -0
- package/src/models/bank-account-response-common-dto-v2.ts +41 -0
- package/src/models/booking-proposal-response-dto-v2.ts +2 -0
- package/src/models/contact-person-dto-v2.ts +4 -0
- package/src/models/contact-response-dto-v2.ts +14 -0
- package/src/models/create-account-request-dto.ts +8 -0
- package/src/models/create-contact-person-dto-v2.ts +6 -0
- package/src/models/create-contact-request-dto-v2.ts +19 -0
- package/src/models/create-journal-entry-request-dto.ts +3 -0
- package/src/models/create-offer-line-item-request-dto.ts +1 -0
- package/src/models/create-offer-request-dto.ts +3 -0
- package/src/models/create-sales-order-line-item-request-dto.ts +6 -0
- package/src/models/index.ts +2 -0
- package/src/models/journal-entry-response-dto.ts +4 -2
- package/src/models/offer-line-item-response-dto.ts +1 -0
- package/src/models/offer-response-dto.ts +2 -0
- package/src/models/operations/create-end-user-account.ts +6 -0
- package/src/models/operations/delete-item.ts +185 -0
- package/src/models/operations/get-journal-entry.ts +6 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/update-item.ts +188 -0
- package/src/models/operations/update-journal-entry.ts +261 -0
- package/src/models/tax-rate-request-common-dto.ts +39 -0
- package/src/sdk/accounting.ts +36 -0
package/src/lib/encodings.ts
CHANGED
|
@@ -12,10 +12,41 @@ export class EncodingError extends Error {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export type CharEncoding = "percent" | "percentExceptReserved" | "none";
|
|
16
|
+
|
|
17
|
+
const reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
|
|
18
|
+
|
|
19
|
+
function encodeKeyChars(
|
|
20
|
+
v: string,
|
|
21
|
+
charEncoding: CharEncoding | undefined,
|
|
22
|
+
): string {
|
|
23
|
+
return encodeChars(
|
|
24
|
+
v,
|
|
25
|
+
charEncoding === "percentExceptReserved" ? "percent" : charEncoding,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function encodeChars(
|
|
30
|
+
v: string,
|
|
31
|
+
charEncoding: CharEncoding | undefined,
|
|
32
|
+
): string {
|
|
33
|
+
switch (charEncoding) {
|
|
34
|
+
case "percent":
|
|
35
|
+
return encodeURIComponent(v);
|
|
36
|
+
case "percentExceptReserved":
|
|
37
|
+
return encodeURIComponent(v).replace(
|
|
38
|
+
reservedEscapes,
|
|
39
|
+
(m) => decodeURIComponent(m),
|
|
40
|
+
);
|
|
41
|
+
default:
|
|
42
|
+
return v;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
15
46
|
export function encodeMatrix(
|
|
16
47
|
key: string,
|
|
17
48
|
value: unknown,
|
|
18
|
-
options?: { explode?: boolean; charEncoding?:
|
|
49
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
19
50
|
): string | undefined {
|
|
20
51
|
let out = "";
|
|
21
52
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -27,7 +58,7 @@ export function encodeMatrix(
|
|
|
27
58
|
}
|
|
28
59
|
|
|
29
60
|
const encodeString = (v: string) => {
|
|
30
|
-
return options?.charEncoding
|
|
61
|
+
return encodeChars(v, options?.charEncoding);
|
|
31
62
|
};
|
|
32
63
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
33
64
|
|
|
@@ -52,7 +83,7 @@ export function encodeMatrix(
|
|
|
52
83
|
return;
|
|
53
84
|
}
|
|
54
85
|
|
|
55
|
-
const keyPrefix =
|
|
86
|
+
const keyPrefix = encodeKeyChars(pk, options?.charEncoding);
|
|
56
87
|
tmp = `${keyPrefix}=${encValue}`;
|
|
57
88
|
// trim trailing '=' if value was empty
|
|
58
89
|
if (tmp === `${keyPrefix}=`) {
|
|
@@ -73,7 +104,7 @@ export function encodeMatrix(
|
|
|
73
104
|
export function encodeLabel(
|
|
74
105
|
key: string,
|
|
75
106
|
value: unknown,
|
|
76
|
-
options?: { explode?: boolean; charEncoding?:
|
|
107
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
77
108
|
): string | undefined {
|
|
78
109
|
let out = "";
|
|
79
110
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -85,7 +116,7 @@ export function encodeLabel(
|
|
|
85
116
|
}
|
|
86
117
|
|
|
87
118
|
const encodeString = (v: string) => {
|
|
88
|
-
return options?.charEncoding
|
|
119
|
+
return encodeChars(v, options?.charEncoding);
|
|
89
120
|
};
|
|
90
121
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
91
122
|
|
|
@@ -103,7 +134,7 @@ export function encodeLabel(
|
|
|
103
134
|
encValue = mapped?.join("").slice(1);
|
|
104
135
|
} else {
|
|
105
136
|
const k = options?.explode && isPlainObject(value)
|
|
106
|
-
? `${
|
|
137
|
+
? `${encodeKeyChars(pk, options?.charEncoding)}=`
|
|
107
138
|
: "";
|
|
108
139
|
encValue = `${k}${encodeValue(pv)}`;
|
|
109
140
|
}
|
|
@@ -117,14 +148,14 @@ export function encodeLabel(
|
|
|
117
148
|
type FormEncoder = (
|
|
118
149
|
key: string,
|
|
119
150
|
value: unknown,
|
|
120
|
-
options?: { explode?: boolean; charEncoding?:
|
|
151
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
121
152
|
) => string | undefined;
|
|
122
153
|
|
|
123
154
|
function formEncoder(sep: string): FormEncoder {
|
|
124
155
|
return (
|
|
125
156
|
key: string,
|
|
126
157
|
value: unknown,
|
|
127
|
-
options?: { explode?: boolean; charEncoding?:
|
|
158
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
128
159
|
) => {
|
|
129
160
|
let out = "";
|
|
130
161
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -136,7 +167,7 @@ function formEncoder(sep: string): FormEncoder {
|
|
|
136
167
|
}
|
|
137
168
|
|
|
138
169
|
const encodeString = (v: string) => {
|
|
139
|
-
return options?.charEncoding
|
|
170
|
+
return encodeChars(v, options?.charEncoding);
|
|
140
171
|
};
|
|
141
172
|
|
|
142
173
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
@@ -163,7 +194,7 @@ function formEncoder(sep: string): FormEncoder {
|
|
|
163
194
|
return;
|
|
164
195
|
}
|
|
165
196
|
|
|
166
|
-
tmp = `${
|
|
197
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
167
198
|
|
|
168
199
|
// If we end up with the nothing then skip forward
|
|
169
200
|
if (!tmp || tmp === "=") {
|
|
@@ -184,7 +215,7 @@ export const encodePipeDelimited = formEncoder("|");
|
|
|
184
215
|
export function encodeBodyForm(
|
|
185
216
|
key: string,
|
|
186
217
|
value: unknown,
|
|
187
|
-
options?: { explode?: boolean; charEncoding?:
|
|
218
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
188
219
|
): string {
|
|
189
220
|
let out = "";
|
|
190
221
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -192,7 +223,7 @@ export function encodeBodyForm(
|
|
|
192
223
|
: [[key, value]];
|
|
193
224
|
|
|
194
225
|
const encodeString = (v: string) => {
|
|
195
|
-
return options?.charEncoding
|
|
226
|
+
return encodeChars(v, options?.charEncoding);
|
|
196
227
|
};
|
|
197
228
|
|
|
198
229
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
@@ -211,7 +242,7 @@ export function encodeBodyForm(
|
|
|
211
242
|
encValue = `${encodeValue(pv)}`;
|
|
212
243
|
}
|
|
213
244
|
|
|
214
|
-
tmp = `${
|
|
245
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
215
246
|
|
|
216
247
|
// If we end up with the nothing then skip forward
|
|
217
248
|
if (!tmp || tmp === "=") {
|
|
@@ -227,7 +258,7 @@ export function encodeBodyForm(
|
|
|
227
258
|
export function encodeDeepObject(
|
|
228
259
|
key: string,
|
|
229
260
|
value: unknown,
|
|
230
|
-
options?: { charEncoding?:
|
|
261
|
+
options?: { charEncoding?: CharEncoding },
|
|
231
262
|
): string | undefined {
|
|
232
263
|
if (value == null) {
|
|
233
264
|
return;
|
|
@@ -245,7 +276,7 @@ export function encodeDeepObject(
|
|
|
245
276
|
export function encodeDeepObjectObject(
|
|
246
277
|
key: string,
|
|
247
278
|
value: unknown,
|
|
248
|
-
options?: { charEncoding?:
|
|
279
|
+
options?: { charEncoding?: CharEncoding },
|
|
249
280
|
): string | undefined {
|
|
250
281
|
if (value == null) {
|
|
251
282
|
return;
|
|
@@ -254,7 +285,7 @@ export function encodeDeepObjectObject(
|
|
|
254
285
|
let out = "";
|
|
255
286
|
|
|
256
287
|
const encodeString = (v: string) => {
|
|
257
|
-
return options?.charEncoding
|
|
288
|
+
return encodeChars(v, options?.charEncoding);
|
|
258
289
|
};
|
|
259
290
|
|
|
260
291
|
if (!isPlainObject(value)) {
|
|
@@ -278,7 +309,9 @@ export function encodeDeepObjectObject(
|
|
|
278
309
|
|
|
279
310
|
const pairs: unknown[] = Array.isArray(cv) ? cv : [cv];
|
|
280
311
|
const encoded = mapDefined(pairs, (v) => {
|
|
281
|
-
return `${
|
|
312
|
+
return `${encodeKeyChars(pk, options?.charEncoding)}=${
|
|
313
|
+
encodeString(serializeValue(v))
|
|
314
|
+
}`;
|
|
282
315
|
})?.join("&");
|
|
283
316
|
|
|
284
317
|
out += encoded == null ? "" : `&${encoded}`;
|
|
@@ -290,25 +323,27 @@ export function encodeDeepObjectObject(
|
|
|
290
323
|
export function encodeJSON(
|
|
291
324
|
key: string,
|
|
292
325
|
value: unknown,
|
|
293
|
-
options?: { explode?: boolean; charEncoding?:
|
|
326
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
294
327
|
): string | undefined {
|
|
295
328
|
if (typeof value === "undefined") {
|
|
296
329
|
return;
|
|
297
330
|
}
|
|
298
331
|
|
|
299
332
|
const encodeString = (v: string) => {
|
|
300
|
-
return options?.charEncoding
|
|
333
|
+
return encodeChars(v, options?.charEncoding);
|
|
301
334
|
};
|
|
302
335
|
|
|
303
336
|
const encVal = encodeString(JSON.stringify(value, jsonReplacer));
|
|
304
337
|
|
|
305
|
-
return options?.explode
|
|
338
|
+
return options?.explode
|
|
339
|
+
? encVal
|
|
340
|
+
: `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
|
|
306
341
|
}
|
|
307
342
|
|
|
308
343
|
export const encodeSimple = (
|
|
309
344
|
key: string,
|
|
310
345
|
value: unknown,
|
|
311
|
-
options?: { explode?: boolean; charEncoding?:
|
|
346
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
312
347
|
): string | undefined => {
|
|
313
348
|
let out = "";
|
|
314
349
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -320,7 +355,7 @@ export const encodeSimple = (
|
|
|
320
355
|
}
|
|
321
356
|
|
|
322
357
|
const encodeString = (v: string) => {
|
|
323
|
-
return options?.charEncoding
|
|
358
|
+
return encodeChars(v, options?.charEncoding);
|
|
324
359
|
};
|
|
325
360
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
326
361
|
|
|
@@ -426,7 +461,7 @@ export function queryJoin(...args: (string | undefined)[]): string {
|
|
|
426
461
|
|
|
427
462
|
type QueryEncoderOptions = {
|
|
428
463
|
explode?: boolean;
|
|
429
|
-
charEncoding?:
|
|
464
|
+
charEncoding?: CharEncoding;
|
|
430
465
|
allowEmptyValue?: string[];
|
|
431
466
|
};
|
|
432
467
|
|
|
@@ -198,6 +198,13 @@ export type AccountResponseDtoStatus = ClosedEnum<
|
|
|
198
198
|
typeof AccountResponseDtoStatus
|
|
199
199
|
>;
|
|
200
200
|
|
|
201
|
+
export type AccountResponseDtoTaxRate = {
|
|
202
|
+
id: string | null;
|
|
203
|
+
code: string | null;
|
|
204
|
+
name: string | null;
|
|
205
|
+
percentage: number | null;
|
|
206
|
+
};
|
|
207
|
+
|
|
201
208
|
export type AccountResponseDto = {
|
|
202
209
|
id: string | null;
|
|
203
210
|
balance: number | null;
|
|
@@ -211,6 +218,7 @@ export type AccountResponseDto = {
|
|
|
211
218
|
number: string | null;
|
|
212
219
|
parentAccountId: string | null;
|
|
213
220
|
status: AccountResponseDtoStatus | null;
|
|
221
|
+
taxRate: AccountResponseDtoTaxRate | null;
|
|
214
222
|
type: string | null;
|
|
215
223
|
updatedDate: string | null;
|
|
216
224
|
};
|
|
@@ -236,6 +244,27 @@ export const AccountResponseDtoStatus$inboundSchema: z.ZodMiniEnum<
|
|
|
236
244
|
typeof AccountResponseDtoStatus
|
|
237
245
|
> = z.enum(AccountResponseDtoStatus);
|
|
238
246
|
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const AccountResponseDtoTaxRate$inboundSchema: z.ZodMiniType<
|
|
249
|
+
AccountResponseDtoTaxRate,
|
|
250
|
+
unknown
|
|
251
|
+
> = z.object({
|
|
252
|
+
id: types.nullable(types.string()),
|
|
253
|
+
code: types.nullable(types.string()),
|
|
254
|
+
name: types.nullable(types.string()),
|
|
255
|
+
percentage: types.nullable(types.number()),
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
export function accountResponseDtoTaxRateFromJSON(
|
|
259
|
+
jsonString: string,
|
|
260
|
+
): SafeParseResult<AccountResponseDtoTaxRate, SDKValidationError> {
|
|
261
|
+
return safeParse(
|
|
262
|
+
jsonString,
|
|
263
|
+
(x) => AccountResponseDtoTaxRate$inboundSchema.parse(JSON.parse(x)),
|
|
264
|
+
`Failed to parse 'AccountResponseDtoTaxRate' from JSON`,
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
|
|
239
268
|
/** @internal */
|
|
240
269
|
export const AccountResponseDto$inboundSchema: z.ZodMiniType<
|
|
241
270
|
AccountResponseDto,
|
|
@@ -255,6 +284,9 @@ export const AccountResponseDto$inboundSchema: z.ZodMiniType<
|
|
|
255
284
|
number: types.nullable(types.string()),
|
|
256
285
|
parentAccountId: types.nullable(types.string()),
|
|
257
286
|
status: types.nullable(AccountResponseDtoStatus$inboundSchema),
|
|
287
|
+
taxRate: types.nullable(
|
|
288
|
+
z.lazy(() => AccountResponseDtoTaxRate$inboundSchema),
|
|
289
|
+
),
|
|
258
290
|
type: types.nullable(types.string()),
|
|
259
291
|
updatedDate: types.nullable(types.string()),
|
|
260
292
|
});
|
|
@@ -6,6 +6,7 @@ import * as z from "zod/v4-mini";
|
|
|
6
6
|
|
|
7
7
|
export type BankAccountRequestCommonDtoV2 = {
|
|
8
8
|
id?: string | undefined;
|
|
9
|
+
bankName?: string | undefined;
|
|
9
10
|
bic?: string | undefined;
|
|
10
11
|
code?: string | undefined;
|
|
11
12
|
iban?: string | undefined;
|
|
@@ -15,6 +16,7 @@ export type BankAccountRequestCommonDtoV2 = {
|
|
|
15
16
|
/** @internal */
|
|
16
17
|
export type BankAccountRequestCommonDtoV2$Outbound = {
|
|
17
18
|
id?: string | undefined;
|
|
19
|
+
bankName?: string | undefined;
|
|
18
20
|
bic?: string | undefined;
|
|
19
21
|
code?: string | undefined;
|
|
20
22
|
iban?: string | undefined;
|
|
@@ -27,6 +29,7 @@ export const BankAccountRequestCommonDtoV2$outboundSchema: z.ZodMiniType<
|
|
|
27
29
|
BankAccountRequestCommonDtoV2
|
|
28
30
|
> = z.object({
|
|
29
31
|
id: z.optional(z.string()),
|
|
32
|
+
bankName: z.optional(z.string()),
|
|
30
33
|
bic: z.optional(z.string()),
|
|
31
34
|
code: z.optional(z.string()),
|
|
32
35
|
iban: z.optional(z.string()),
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type BankAccountResponseCommonDtoV2 = {
|
|
12
|
+
id: string | null;
|
|
13
|
+
bankName: string | null;
|
|
14
|
+
bic: string | null;
|
|
15
|
+
code: string | null;
|
|
16
|
+
iban: string | null;
|
|
17
|
+
number: number | null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const BankAccountResponseCommonDtoV2$inboundSchema: z.ZodMiniType<
|
|
22
|
+
BankAccountResponseCommonDtoV2,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: types.nullable(types.string()),
|
|
26
|
+
bankName: types.nullable(types.string()),
|
|
27
|
+
bic: types.nullable(types.string()),
|
|
28
|
+
code: types.nullable(types.string()),
|
|
29
|
+
iban: types.nullable(types.string()),
|
|
30
|
+
number: types.nullable(types.number()),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function bankAccountResponseCommonDtoV2FromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<BankAccountResponseCommonDtoV2, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => BankAccountResponseCommonDtoV2$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'BankAccountResponseCommonDtoV2' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -19,6 +19,7 @@ import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
|
19
19
|
|
|
20
20
|
export type BookingProposalResponseDtoV2BankAccount = {
|
|
21
21
|
id: string | null;
|
|
22
|
+
bankName: string | null;
|
|
22
23
|
bic: string | null;
|
|
23
24
|
code: string | null;
|
|
24
25
|
iban: string | null;
|
|
@@ -94,6 +95,7 @@ export type BookingProposalResponseDtoV2 = {
|
|
|
94
95
|
export const BookingProposalResponseDtoV2BankAccount$inboundSchema:
|
|
95
96
|
z.ZodMiniType<BookingProposalResponseDtoV2BankAccount, unknown> = z.object({
|
|
96
97
|
id: types.nullable(types.string()),
|
|
98
|
+
bankName: types.nullable(types.string()),
|
|
97
99
|
bic: types.nullable(types.string()),
|
|
98
100
|
code: types.nullable(types.string()),
|
|
99
101
|
iban: types.nullable(types.string()),
|
|
@@ -18,8 +18,10 @@ import {
|
|
|
18
18
|
|
|
19
19
|
export type ContactPersonDtoV2 = {
|
|
20
20
|
id: string | null;
|
|
21
|
+
birthDate: string | null;
|
|
21
22
|
emailAddresses: Array<EmailAddressV2> | null;
|
|
22
23
|
firstName: string | null;
|
|
24
|
+
jobTitle: string | null;
|
|
23
25
|
lastName: string | null;
|
|
24
26
|
phoneNumbers: Array<PhoneNumberV2> | null;
|
|
25
27
|
salutation: string | null;
|
|
@@ -31,8 +33,10 @@ export const ContactPersonDtoV2$inboundSchema: z.ZodMiniType<
|
|
|
31
33
|
unknown
|
|
32
34
|
> = z.object({
|
|
33
35
|
id: types.nullable(types.string()),
|
|
36
|
+
birthDate: types.nullable(types.string()),
|
|
34
37
|
emailAddresses: types.nullable(z.array(EmailAddressV2$inboundSchema)),
|
|
35
38
|
firstName: types.nullable(types.string()),
|
|
39
|
+
jobTitle: types.nullable(types.string()),
|
|
36
40
|
lastName: types.nullable(types.string()),
|
|
37
41
|
phoneNumbers: types.nullable(z.array(PhoneNumberV2$inboundSchema)),
|
|
38
42
|
salutation: types.nullable(types.string()),
|
|
@@ -7,6 +7,10 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import * as types from "../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
BankAccountResponseCommonDtoV2,
|
|
12
|
+
BankAccountResponseCommonDtoV2$inboundSchema,
|
|
13
|
+
} from "./bank-account-response-common-dto-v2.js";
|
|
10
14
|
import {
|
|
11
15
|
ContactAddressV2,
|
|
12
16
|
ContactAddressV2$inboundSchema,
|
|
@@ -37,6 +41,8 @@ export type ContactResponseDtoV2ContactType = ClosedEnum<
|
|
|
37
41
|
export type ContactResponseDtoV2 = {
|
|
38
42
|
id: string | null;
|
|
39
43
|
addresses: Array<ContactAddressV2> | null;
|
|
44
|
+
bankAccounts: Array<BankAccountResponseCommonDtoV2> | null;
|
|
45
|
+
businessRegistrationNumber: string | null;
|
|
40
46
|
companyName: string | null;
|
|
41
47
|
contactPersons: Array<ContactPersonDtoV2> | null;
|
|
42
48
|
contactType: ContactResponseDtoV2ContactType | null;
|
|
@@ -45,9 +51,11 @@ export type ContactResponseDtoV2 = {
|
|
|
45
51
|
isCustomer: boolean | null;
|
|
46
52
|
isSupplier: boolean | null;
|
|
47
53
|
number: string | null;
|
|
54
|
+
parentId: string | null;
|
|
48
55
|
phoneNumbers: Array<PhoneNumberV2> | null;
|
|
49
56
|
projectId: string | null;
|
|
50
57
|
updatedDate: string | null;
|
|
58
|
+
vatId: string | null;
|
|
51
59
|
website: string | null;
|
|
52
60
|
};
|
|
53
61
|
|
|
@@ -63,6 +71,10 @@ export const ContactResponseDtoV2$inboundSchema: z.ZodMiniType<
|
|
|
63
71
|
> = z.object({
|
|
64
72
|
id: types.nullable(types.string()),
|
|
65
73
|
addresses: types.nullable(z.array(ContactAddressV2$inboundSchema)),
|
|
74
|
+
bankAccounts: types.nullable(
|
|
75
|
+
z.array(BankAccountResponseCommonDtoV2$inboundSchema),
|
|
76
|
+
),
|
|
77
|
+
businessRegistrationNumber: types.nullable(types.string()),
|
|
66
78
|
companyName: types.nullable(types.string()),
|
|
67
79
|
contactPersons: types.nullable(z.array(ContactPersonDtoV2$inboundSchema)),
|
|
68
80
|
contactType: types.nullable(ContactResponseDtoV2ContactType$inboundSchema),
|
|
@@ -71,9 +83,11 @@ export const ContactResponseDtoV2$inboundSchema: z.ZodMiniType<
|
|
|
71
83
|
isCustomer: types.nullable(types.boolean()),
|
|
72
84
|
isSupplier: types.nullable(types.boolean()),
|
|
73
85
|
number: types.nullable(types.string()),
|
|
86
|
+
parentId: types.nullable(types.string()),
|
|
74
87
|
phoneNumbers: types.nullable(z.array(PhoneNumberV2$inboundSchema)),
|
|
75
88
|
projectId: types.nullable(types.string()),
|
|
76
89
|
updatedDate: types.nullable(types.string()),
|
|
90
|
+
vatId: types.nullable(types.string()),
|
|
77
91
|
website: types.nullable(types.string()),
|
|
78
92
|
});
|
|
79
93
|
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
TaxRateRequestCommonDto,
|
|
9
|
+
TaxRateRequestCommonDto$Outbound,
|
|
10
|
+
TaxRateRequestCommonDto$outboundSchema,
|
|
11
|
+
} from "./tax-rate-request-common-dto.js";
|
|
7
12
|
|
|
8
13
|
export const CreateAccountRequestDtoClass = {
|
|
9
14
|
Asset: "ASSET",
|
|
@@ -266,6 +271,7 @@ export type CreateAccountRequestDto = {
|
|
|
266
271
|
number?: string | undefined;
|
|
267
272
|
parentAccountId?: string | undefined;
|
|
268
273
|
status?: CreateAccountRequestDtoStatus | undefined;
|
|
274
|
+
taxRate?: TaxRateRequestCommonDto | undefined;
|
|
269
275
|
type?: CreateAccountRequestDtoType | undefined;
|
|
270
276
|
};
|
|
271
277
|
|
|
@@ -300,6 +306,7 @@ export type CreateAccountRequestDto$Outbound = {
|
|
|
300
306
|
number?: string | undefined;
|
|
301
307
|
parentAccountId?: string | undefined;
|
|
302
308
|
status?: string | undefined;
|
|
309
|
+
taxRate?: TaxRateRequestCommonDto$Outbound | undefined;
|
|
303
310
|
type?: string | undefined;
|
|
304
311
|
};
|
|
305
312
|
|
|
@@ -317,6 +324,7 @@ export const CreateAccountRequestDto$outboundSchema: z.ZodMiniType<
|
|
|
317
324
|
number: z.optional(z.string()),
|
|
318
325
|
parentAccountId: z.optional(z.string()),
|
|
319
326
|
status: z.optional(CreateAccountRequestDtoStatus$outboundSchema),
|
|
327
|
+
taxRate: z.optional(TaxRateRequestCommonDto$outboundSchema),
|
|
320
328
|
type: z.optional(CreateAccountRequestDtoType$outboundSchema),
|
|
321
329
|
});
|
|
322
330
|
|
|
@@ -16,8 +16,10 @@ import {
|
|
|
16
16
|
|
|
17
17
|
export type CreateContactPersonDtoV2 = {
|
|
18
18
|
id?: string | undefined;
|
|
19
|
+
birthDate?: string | undefined;
|
|
19
20
|
emailAddresses?: Array<EmailAddressV2> | undefined;
|
|
20
21
|
firstName?: string | undefined;
|
|
22
|
+
jobTitle?: string | undefined;
|
|
21
23
|
lastName?: string | undefined;
|
|
22
24
|
phoneNumbers?: Array<PhoneNumberV2> | undefined;
|
|
23
25
|
salutation?: string | undefined;
|
|
@@ -26,8 +28,10 @@ export type CreateContactPersonDtoV2 = {
|
|
|
26
28
|
/** @internal */
|
|
27
29
|
export type CreateContactPersonDtoV2$Outbound = {
|
|
28
30
|
id?: string | undefined;
|
|
31
|
+
birthDate?: string | undefined;
|
|
29
32
|
emailAddresses?: Array<EmailAddressV2$Outbound> | undefined;
|
|
30
33
|
firstName?: string | undefined;
|
|
34
|
+
jobTitle?: string | undefined;
|
|
31
35
|
lastName?: string | undefined;
|
|
32
36
|
phoneNumbers?: Array<PhoneNumberV2$Outbound> | undefined;
|
|
33
37
|
salutation?: string | undefined;
|
|
@@ -39,8 +43,10 @@ export const CreateContactPersonDtoV2$outboundSchema: z.ZodMiniType<
|
|
|
39
43
|
CreateContactPersonDtoV2
|
|
40
44
|
> = z.object({
|
|
41
45
|
id: z.optional(z.string()),
|
|
46
|
+
birthDate: z.optional(z.string()),
|
|
42
47
|
emailAddresses: z.optional(z.array(EmailAddressV2$outboundSchema)),
|
|
43
48
|
firstName: z.optional(z.string()),
|
|
49
|
+
jobTitle: z.optional(z.string()),
|
|
44
50
|
lastName: z.optional(z.string()),
|
|
45
51
|
phoneNumbers: z.optional(z.array(PhoneNumberV2$outboundSchema)),
|
|
46
52
|
salutation: z.optional(z.string()),
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
BankAccountRequestCommonDtoV2,
|
|
9
|
+
BankAccountRequestCommonDtoV2$Outbound,
|
|
10
|
+
BankAccountRequestCommonDtoV2$outboundSchema,
|
|
11
|
+
} from "./bank-account-request-common-dto-v2.js";
|
|
7
12
|
import {
|
|
8
13
|
CreateContactAddressV2,
|
|
9
14
|
CreateContactAddressV2$Outbound,
|
|
@@ -37,6 +42,8 @@ export type CreateContactRequestDtoV2ContactType = ClosedEnum<
|
|
|
37
42
|
export type CreateContactRequestDtoV2 = {
|
|
38
43
|
id?: string | undefined;
|
|
39
44
|
addresses?: Array<CreateContactAddressV2> | undefined;
|
|
45
|
+
bankAccounts?: Array<BankAccountRequestCommonDtoV2> | undefined;
|
|
46
|
+
businessRegistrationNumber?: string | undefined;
|
|
40
47
|
companyName?: string | undefined;
|
|
41
48
|
contactPersons?: Array<CreateContactPersonDtoV2> | undefined;
|
|
42
49
|
contactType: CreateContactRequestDtoV2ContactType;
|
|
@@ -44,8 +51,10 @@ export type CreateContactRequestDtoV2 = {
|
|
|
44
51
|
isCustomer?: boolean | undefined;
|
|
45
52
|
isSupplier?: boolean | undefined;
|
|
46
53
|
number?: string | undefined;
|
|
54
|
+
parentId?: string | undefined;
|
|
47
55
|
phoneNumbers?: Array<PhoneNumberV2> | undefined;
|
|
48
56
|
projectId?: string | undefined;
|
|
57
|
+
vatId?: string | undefined;
|
|
49
58
|
website?: string | undefined;
|
|
50
59
|
};
|
|
51
60
|
|
|
@@ -58,6 +67,8 @@ export const CreateContactRequestDtoV2ContactType$outboundSchema: z.ZodMiniEnum<
|
|
|
58
67
|
export type CreateContactRequestDtoV2$Outbound = {
|
|
59
68
|
id?: string | undefined;
|
|
60
69
|
addresses?: Array<CreateContactAddressV2$Outbound> | undefined;
|
|
70
|
+
bankAccounts?: Array<BankAccountRequestCommonDtoV2$Outbound> | undefined;
|
|
71
|
+
businessRegistrationNumber?: string | undefined;
|
|
61
72
|
companyName?: string | undefined;
|
|
62
73
|
contactPersons?: Array<CreateContactPersonDtoV2$Outbound> | undefined;
|
|
63
74
|
contactType: string;
|
|
@@ -65,8 +76,10 @@ export type CreateContactRequestDtoV2$Outbound = {
|
|
|
65
76
|
isCustomer?: boolean | undefined;
|
|
66
77
|
isSupplier?: boolean | undefined;
|
|
67
78
|
number?: string | undefined;
|
|
79
|
+
parentId?: string | undefined;
|
|
68
80
|
phoneNumbers?: Array<PhoneNumberV2$Outbound> | undefined;
|
|
69
81
|
projectId?: string | undefined;
|
|
82
|
+
vatId?: string | undefined;
|
|
70
83
|
website?: string | undefined;
|
|
71
84
|
};
|
|
72
85
|
|
|
@@ -77,6 +90,10 @@ export const CreateContactRequestDtoV2$outboundSchema: z.ZodMiniType<
|
|
|
77
90
|
> = z.object({
|
|
78
91
|
id: z.optional(z.string()),
|
|
79
92
|
addresses: z.optional(z.array(CreateContactAddressV2$outboundSchema)),
|
|
93
|
+
bankAccounts: z.optional(
|
|
94
|
+
z.array(BankAccountRequestCommonDtoV2$outboundSchema),
|
|
95
|
+
),
|
|
96
|
+
businessRegistrationNumber: z.optional(z.string()),
|
|
80
97
|
companyName: z.optional(z.string()),
|
|
81
98
|
contactPersons: z.optional(z.array(CreateContactPersonDtoV2$outboundSchema)),
|
|
82
99
|
contactType: CreateContactRequestDtoV2ContactType$outboundSchema,
|
|
@@ -84,8 +101,10 @@ export const CreateContactRequestDtoV2$outboundSchema: z.ZodMiniType<
|
|
|
84
101
|
isCustomer: z.optional(z.boolean()),
|
|
85
102
|
isSupplier: z.optional(z.boolean()),
|
|
86
103
|
number: z.optional(z.string()),
|
|
104
|
+
parentId: z.optional(z.string()),
|
|
87
105
|
phoneNumbers: z.optional(z.array(PhoneNumberV2$outboundSchema)),
|
|
88
106
|
projectId: z.optional(z.string()),
|
|
107
|
+
vatId: z.optional(z.string()),
|
|
89
108
|
website: z.optional(z.string()),
|
|
90
109
|
});
|
|
91
110
|
|
|
@@ -229,6 +229,7 @@ export type CreateJournalEntryRequestDto = {
|
|
|
229
229
|
recordType?: CreateJournalEntryRequestDtoRecordType | undefined;
|
|
230
230
|
taxAssignmentDate?: string | undefined;
|
|
231
231
|
transactionDate?: string | undefined;
|
|
232
|
+
version?: string | undefined;
|
|
232
233
|
};
|
|
233
234
|
|
|
234
235
|
/** @internal */
|
|
@@ -275,6 +276,7 @@ export type CreateJournalEntryRequestDto$Outbound = {
|
|
|
275
276
|
recordType?: string | undefined;
|
|
276
277
|
taxAssignmentDate?: string | undefined;
|
|
277
278
|
transactionDate?: string | undefined;
|
|
279
|
+
version?: string | undefined;
|
|
278
280
|
};
|
|
279
281
|
|
|
280
282
|
/** @internal */
|
|
@@ -306,6 +308,7 @@ export const CreateJournalEntryRequestDto$outboundSchema: z.ZodMiniType<
|
|
|
306
308
|
recordType: z.optional(CreateJournalEntryRequestDtoRecordType$outboundSchema),
|
|
307
309
|
taxAssignmentDate: z.optional(z.string()),
|
|
308
310
|
transactionDate: z.optional(z.string()),
|
|
311
|
+
version: z.optional(z.string()),
|
|
309
312
|
});
|
|
310
313
|
|
|
311
314
|
export function createJournalEntryRequestDtoToJSON(
|
|
@@ -13,6 +13,7 @@ export const CreateOfferLineItemRequestDtoType = {
|
|
|
13
13
|
Value: "VALUE",
|
|
14
14
|
FixedAsset: "FIXED_ASSET",
|
|
15
15
|
Charge: "CHARGE",
|
|
16
|
+
Service: "SERVICE",
|
|
16
17
|
} as const;
|
|
17
18
|
export type CreateOfferLineItemRequestDtoType = ClosedEnum<
|
|
18
19
|
typeof CreateOfferLineItemRequestDtoType
|
|
@@ -31,6 +31,7 @@ export type CreateOfferRequestDto = {
|
|
|
31
31
|
addresses: Array<AddressOffer>;
|
|
32
32
|
contactId?: string | undefined;
|
|
33
33
|
currency: string;
|
|
34
|
+
expirationDate?: string | undefined;
|
|
34
35
|
lineItems?: Array<CreateOfferLineItemRequestDto> | undefined;
|
|
35
36
|
name?: string | undefined;
|
|
36
37
|
offerDate: string;
|
|
@@ -56,6 +57,7 @@ export type CreateOfferRequestDto$Outbound = {
|
|
|
56
57
|
addresses: Array<AddressOffer$Outbound>;
|
|
57
58
|
contactId?: string | undefined;
|
|
58
59
|
currency: string;
|
|
60
|
+
expirationDate?: string | undefined;
|
|
59
61
|
lineItems?: Array<CreateOfferLineItemRequestDto$Outbound> | undefined;
|
|
60
62
|
name?: string | undefined;
|
|
61
63
|
offerDate: string;
|
|
@@ -79,6 +81,7 @@ export const CreateOfferRequestDto$outboundSchema: z.ZodMiniType<
|
|
|
79
81
|
addresses: z.array(AddressOffer$outboundSchema),
|
|
80
82
|
contactId: z.optional(z.string()),
|
|
81
83
|
currency: z.string(),
|
|
84
|
+
expirationDate: z.optional(z.string()),
|
|
82
85
|
lineItems: z.optional(z.array(CreateOfferLineItemRequestDto$outboundSchema)),
|
|
83
86
|
name: z.optional(z.string()),
|
|
84
87
|
offerDate: z.string(),
|
|
@@ -8,7 +8,9 @@ export type CreateSalesOrderLineItemRequestDto = {
|
|
|
8
8
|
itemId?: string | undefined;
|
|
9
9
|
description?: string | undefined;
|
|
10
10
|
itemName?: string | undefined;
|
|
11
|
+
lineNumber?: string | undefined;
|
|
11
12
|
optional?: boolean | undefined;
|
|
13
|
+
parentLineNumber?: string | undefined;
|
|
12
14
|
quantity?: number | undefined;
|
|
13
15
|
taxCode?: string | undefined;
|
|
14
16
|
taxRatePercentage?: number | undefined;
|
|
@@ -28,7 +30,9 @@ export type CreateSalesOrderLineItemRequestDto$Outbound = {
|
|
|
28
30
|
itemId?: string | undefined;
|
|
29
31
|
description?: string | undefined;
|
|
30
32
|
itemName?: string | undefined;
|
|
33
|
+
lineNumber?: string | undefined;
|
|
31
34
|
optional?: boolean | undefined;
|
|
35
|
+
parentLineNumber?: string | undefined;
|
|
32
36
|
quantity?: number | undefined;
|
|
33
37
|
taxCode?: string | undefined;
|
|
34
38
|
taxRatePercentage?: number | undefined;
|
|
@@ -51,7 +55,9 @@ export const CreateSalesOrderLineItemRequestDto$outboundSchema: z.ZodMiniType<
|
|
|
51
55
|
itemId: z.optional(z.string()),
|
|
52
56
|
description: z.optional(z.string()),
|
|
53
57
|
itemName: z.optional(z.string()),
|
|
58
|
+
lineNumber: z.optional(z.string()),
|
|
54
59
|
optional: z.optional(z.boolean()),
|
|
60
|
+
parentLineNumber: z.optional(z.string()),
|
|
55
61
|
quantity: z.optional(z.number()),
|
|
56
62
|
taxCode: z.optional(z.string()),
|
|
57
63
|
taxRatePercentage: z.optional(z.number()),
|