@spaceinvoices/js-sdk 12.1.0 → 12.2.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.
@@ -53,7 +53,7 @@ export declare const getCreateExpenseUrl: () => string;
53
53
  export declare const createExpense: (createExpenseBody: CreateExpenseBody, options?: RequestInit) => Promise<createExpenseResponse>;
54
54
  /**
55
55
  * Retrieve a paginated list of expenses with optional filtering.
56
- Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data.
56
+ Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data. Filter expenses that contain a saved catalog item with `{"items.item_id":"item_..."}`.
57
57
  * @summary List expenses
58
58
  */
59
59
  export type getExpensesResponse200 = {
@@ -53,7 +53,7 @@ export declare const getCreateExpenseUrl: () => string;
53
53
  export declare const createExpense: (createExpenseBody: CreateExpenseBody, options?: RequestInit) => Promise<createExpenseResponse>;
54
54
  /**
55
55
  * Retrieve a paginated list of expenses with optional filtering.
56
- Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data.
56
+ Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data. Filter expenses that contain a saved catalog item with `{"items.item_id":"item_..."}`.
57
57
  * @summary List expenses
58
58
  */
59
59
  export type getExpensesResponse200 = {
@@ -137,7 +137,7 @@ export declare const getCreateInvoiceUrl: () => string;
137
137
  export declare const createInvoice: (createInvoice: CreateInvoice, options?: RequestInit) => Promise<createInvoiceResponse>;
138
138
  /**
139
139
  * Retrieve a paginated list of invoices with optional filtering and sorting.
140
- Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting.
140
+ Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting. Filter invoices that contain a saved catalog item with `{"items.item_id":"item_..."}`.
141
141
  * @summary List all invoices
142
142
  */
143
143
  export type getInvoicesResponse200 = {
@@ -137,7 +137,7 @@ export declare const getCreateInvoiceUrl: () => string;
137
137
  export declare const createInvoice: (createInvoice: CreateInvoice, options?: RequestInit) => Promise<createInvoiceResponse>;
138
138
  /**
139
139
  * Retrieve a paginated list of invoices with optional filtering and sorting.
140
- Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting.
140
+ Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting. Filter invoices that contain a saved catalog item with `{"items.item_id":"item_..."}`.
141
141
  * @summary List all invoices
142
142
  */
143
143
  export type getInvoicesResponse200 = {
@@ -48,7 +48,7 @@ export type GetExpensesParams = {
48
48
  - `endsWith` - String ends with
49
49
  - `between` - Value between two numbers/dates [min, max]
50
50
 
51
- **Allowed fields:** id, number, type, is_draft, voided_at, deleted_at, supplier_id, supplier, supplier_document_number, date, date_received, date_due, date_service, date_service_to, currency_code, transaction_type, reference, note, summary_classification, total, total_with_tax, total_paid, total_due, paid_in_full, created_at, updated_at, metadata
51
+ **Allowed fields:** id, number, type, is_draft, voided_at, deleted_at, supplier_id, supplier, supplier_document_number, date, date_received, date_due, date_service, date_service_to, currency_code, transaction_type, reference, note, summary_classification, total, total_with_tax, total_paid, total_due, paid_in_full, created_at, updated_at, metadata, items.item_id
52
52
 
53
53
  **Examples:**
54
54
  - `{"total": {"gte": 1000}}` - Invoices over 1000
@@ -48,7 +48,7 @@ export type GetExpensesParams = {
48
48
  - `endsWith` - String ends with
49
49
  - `between` - Value between two numbers/dates [min, max]
50
50
 
51
- **Allowed fields:** id, number, type, is_draft, voided_at, deleted_at, supplier_id, supplier, supplier_document_number, date, date_received, date_due, date_service, date_service_to, currency_code, transaction_type, reference, note, summary_classification, total, total_with_tax, total_paid, total_due, paid_in_full, created_at, updated_at, metadata
51
+ **Allowed fields:** id, number, type, is_draft, voided_at, deleted_at, supplier_id, supplier, supplier_document_number, date, date_received, date_due, date_service, date_service_to, currency_code, transaction_type, reference, note, summary_classification, total, total_with_tax, total_paid, total_due, paid_in_full, created_at, updated_at, metadata, items.item_id
52
52
 
53
53
  **Examples:**
54
54
  - `{"total": {"gte": 1000}}` - Invoices over 1000
@@ -48,7 +48,7 @@ export type GetInvoicesParams = {
48
48
  - `endsWith` - String ends with
49
49
  - `between` - Value between two numbers/dates [min, max]
50
50
 
51
- **Allowed fields:** id, number, customer_id, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, is_draft, date_due, paid_in_full, total_due, total_paid, voided_at
51
+ **Allowed fields:** id, number, customer_id, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, is_draft, date_due, paid_in_full, total_due, total_paid, voided_at, items.item_id
52
52
 
53
53
  **Examples:**
54
54
  - `{"total": {"gte": 1000}}` - Invoices over 1000
@@ -48,7 +48,7 @@ export type GetInvoicesParams = {
48
48
  - `endsWith` - String ends with
49
49
  - `between` - Value between two numbers/dates [min, max]
50
50
 
51
- **Allowed fields:** id, number, customer_id, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, is_draft, date_due, paid_in_full, total_due, total_paid, voided_at
51
+ **Allowed fields:** id, number, customer_id, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, is_draft, date_due, paid_in_full, total_due, total_paid, voided_at, items.item_id
52
52
 
53
53
  **Examples:**
54
54
  - `{"total": {"gte": 1000}}` - Invoices over 1000
@@ -253,7 +253,7 @@ export declare const CreateExpenseBody: zod.ZodObject<{
253
253
  }, zod.z.core.$strip>;
254
254
  /**
255
255
  * Retrieve a paginated list of expenses with optional filtering.
256
- Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data.
256
+ Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data. Filter expenses that contain a saved catalog item with `{"items.item_id":"item_..."}`.
257
257
  * @summary List expenses
258
258
  */
259
259
  export declare const getExpensesQueryLimitDefault = 10;
@@ -253,7 +253,7 @@ export declare const CreateExpenseBody: zod.ZodObject<{
253
253
  }, zod.z.core.$strip>;
254
254
  /**
255
255
  * Retrieve a paginated list of expenses with optional filtering.
256
- Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data.
256
+ Supports cursor-based pagination, full-text search across supplier snapshot and document fields, and suite-standard JSON query filters for date, totals, payment state, and supplier snapshot data. Filter expenses that contain a saved catalog item with `{"items.item_id":"item_..."}`.
257
257
  * @summary List expenses
258
258
  */
259
259
  export declare const getExpensesQueryLimitDefault = 10;
@@ -5224,7 +5224,7 @@ export declare const CreateInvoiceBody: zod.ZodObject<{
5224
5224
  }, zod.z.core.$strip>;
5225
5225
  /**
5226
5226
  * Retrieve a paginated list of invoices with optional filtering and sorting.
5227
- Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting.
5227
+ Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting. Filter invoices that contain a saved catalog item with `{"items.item_id":"item_..."}`.
5228
5228
  * @summary List all invoices
5229
5229
  */
5230
5230
  export declare const getInvoicesQueryLimitDefault = 10;
@@ -5224,7 +5224,7 @@ export declare const CreateInvoiceBody: zod.ZodObject<{
5224
5224
  }, zod.z.core.$strip>;
5225
5225
  /**
5226
5226
  * Retrieve a paginated list of invoices with optional filtering and sorting.
5227
- Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting.
5227
+ Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, full-text search, and sorting. Filter invoices that contain a saved catalog item with `{"items.item_id":"item_..."}`.
5228
5228
  * @summary List all invoices
5229
5229
  */
5230
5230
  export declare const getInvoicesQueryLimitDefault = 10;