@spaceinvoices/js-sdk 12.21.0 → 12.22.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.
- package/dist/generated/model/expenseItem.d.cts +2 -0
- package/dist/generated/model/expenseItem.d.ts +2 -0
- package/dist/generated-zod/expenses/expenses.d.cts +5 -0
- package/dist/generated-zod/expenses/expenses.d.ts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,8 @@ import type { ExpenseItemRecognition } from './expenseItemRecognition.cjs';
|
|
|
13
13
|
import type { ExpenseItemType } from './expenseItemType.cjs';
|
|
14
14
|
import type { LineDiscount } from './lineDiscount.cjs';
|
|
15
15
|
export interface ExpenseItem {
|
|
16
|
+
/** ID of this document line. Use with PATCH /financial-categories/document-items/{id} to assign a financial category to this line. */
|
|
17
|
+
id?: string;
|
|
16
18
|
/** @nullable */
|
|
17
19
|
type?: ExpenseItemType;
|
|
18
20
|
/** @nullable */
|
|
@@ -13,6 +13,8 @@ import type { ExpenseItemRecognition } from './expenseItemRecognition.js';
|
|
|
13
13
|
import type { ExpenseItemType } from './expenseItemType.js';
|
|
14
14
|
import type { LineDiscount } from './lineDiscount.js';
|
|
15
15
|
export interface ExpenseItem {
|
|
16
|
+
/** ID of this document line. Use with PATCH /financial-categories/document-items/{id} to assign a financial category to this line. */
|
|
17
|
+
id?: string;
|
|
16
18
|
/** @nullable */
|
|
17
19
|
type?: ExpenseItemType;
|
|
18
20
|
/** @nullable */
|
|
@@ -479,6 +479,7 @@ export declare const GetExpensesResponse: zod.ZodObject<{
|
|
|
479
479
|
created_at: zod.z.ZodISODateTime;
|
|
480
480
|
updated_at: zod.z.ZodISODateTime;
|
|
481
481
|
items: zod.ZodArray<zod.ZodObject<{
|
|
482
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
482
483
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
483
484
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
484
485
|
name: zod.ZodString;
|
|
@@ -1605,6 +1606,7 @@ export declare const GetExpenseByIdResponse: zod.ZodObject<{
|
|
|
1605
1606
|
created_at: zod.z.ZodISODateTime;
|
|
1606
1607
|
updated_at: zod.z.ZodISODateTime;
|
|
1607
1608
|
items: zod.ZodArray<zod.ZodObject<{
|
|
1609
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
1608
1610
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
1609
1611
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1610
1612
|
name: zod.ZodString;
|
|
@@ -2096,6 +2098,7 @@ export declare const UpdateExpenseResponse: zod.ZodObject<{
|
|
|
2096
2098
|
created_at: zod.z.ZodISODateTime;
|
|
2097
2099
|
updated_at: zod.z.ZodISODateTime;
|
|
2098
2100
|
items: zod.ZodArray<zod.ZodObject<{
|
|
2101
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
2099
2102
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
2100
2103
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2101
2104
|
name: zod.ZodString;
|
|
@@ -2377,6 +2380,7 @@ export declare const VoidExpenseResponse: zod.ZodObject<{
|
|
|
2377
2380
|
created_at: zod.z.ZodISODateTime;
|
|
2378
2381
|
updated_at: zod.z.ZodISODateTime;
|
|
2379
2382
|
items: zod.ZodArray<zod.ZodObject<{
|
|
2383
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
2380
2384
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
2381
2385
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2382
2386
|
name: zod.ZodString;
|
|
@@ -2647,6 +2651,7 @@ export declare const RestoreExpenseResponse: zod.ZodObject<{
|
|
|
2647
2651
|
created_at: zod.z.ZodISODateTime;
|
|
2648
2652
|
updated_at: zod.z.ZodISODateTime;
|
|
2649
2653
|
items: zod.ZodArray<zod.ZodObject<{
|
|
2654
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
2650
2655
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
2651
2656
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2652
2657
|
name: zod.ZodString;
|
|
@@ -479,6 +479,7 @@ export declare const GetExpensesResponse: zod.ZodObject<{
|
|
|
479
479
|
created_at: zod.z.ZodISODateTime;
|
|
480
480
|
updated_at: zod.z.ZodISODateTime;
|
|
481
481
|
items: zod.ZodArray<zod.ZodObject<{
|
|
482
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
482
483
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
483
484
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
484
485
|
name: zod.ZodString;
|
|
@@ -1605,6 +1606,7 @@ export declare const GetExpenseByIdResponse: zod.ZodObject<{
|
|
|
1605
1606
|
created_at: zod.z.ZodISODateTime;
|
|
1606
1607
|
updated_at: zod.z.ZodISODateTime;
|
|
1607
1608
|
items: zod.ZodArray<zod.ZodObject<{
|
|
1609
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
1608
1610
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
1609
1611
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1610
1612
|
name: zod.ZodString;
|
|
@@ -2096,6 +2098,7 @@ export declare const UpdateExpenseResponse: zod.ZodObject<{
|
|
|
2096
2098
|
created_at: zod.z.ZodISODateTime;
|
|
2097
2099
|
updated_at: zod.z.ZodISODateTime;
|
|
2098
2100
|
items: zod.ZodArray<zod.ZodObject<{
|
|
2101
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
2099
2102
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
2100
2103
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2101
2104
|
name: zod.ZodString;
|
|
@@ -2377,6 +2380,7 @@ export declare const VoidExpenseResponse: zod.ZodObject<{
|
|
|
2377
2380
|
created_at: zod.z.ZodISODateTime;
|
|
2378
2381
|
updated_at: zod.z.ZodISODateTime;
|
|
2379
2382
|
items: zod.ZodArray<zod.ZodObject<{
|
|
2383
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
2380
2384
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
2381
2385
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2382
2386
|
name: zod.ZodString;
|
|
@@ -2647,6 +2651,7 @@ export declare const RestoreExpenseResponse: zod.ZodObject<{
|
|
|
2647
2651
|
created_at: zod.z.ZodISODateTime;
|
|
2648
2652
|
updated_at: zod.z.ZodISODateTime;
|
|
2649
2653
|
items: zod.ZodArray<zod.ZodObject<{
|
|
2654
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
2650
2655
|
type: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"separator">, zod.ZodLiteral<null>]>>>;
|
|
2651
2656
|
item_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2652
2657
|
name: zod.ZodString;
|