@spaceinvoices/js-sdk 10.1.3 → 10.1.4

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.
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import type { Error, GetActivities200, GetActivitiesParams } from '../model/index.cjs';
9
9
  /**
10
- * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by created_at descending by default.
10
+ * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
11
11
  * @summary List activities
12
12
  */
13
13
  export type getActivitiesResponse200 = {
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import type { Error, GetActivities200, GetActivitiesParams } from '../model/index.js';
9
9
  /**
10
- * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by created_at descending by default.
10
+ * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
11
11
  * @summary List activities
12
12
  */
13
13
  export type getActivitiesResponse200 = {
@@ -64,6 +64,10 @@ export type GetActivitiesParams = {
64
64
  * Filter by specific resource ID
65
65
  */
66
66
  resource_id?: string;
67
+ /**
68
+ * Include Payment activities linked to resource_id within the current entity. Other filters still apply. Defaults to false; has no effect without resource_id.
69
+ */
70
+ include_related_payments?: boolean;
67
71
  /**
68
72
  * Filter by action type (e.g., created, updated, deleted, sent)
69
73
  */
@@ -64,6 +64,10 @@ export type GetActivitiesParams = {
64
64
  * Filter by specific resource ID
65
65
  */
66
66
  resource_id?: string;
67
+ /**
68
+ * Include Payment activities linked to resource_id within the current entity. Other filters still apply. Defaults to false; has no effect without resource_id.
69
+ */
70
+ include_related_payments?: boolean;
67
71
  /**
68
72
  * Filter by action type (e.g., created, updated, deleted, sent)
69
73
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  /**
10
- * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by created_at descending by default.
10
+ * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
11
11
  * @summary List activities
12
12
  */
13
13
  export declare const getActivitiesQueryLimitDefault = 10;
@@ -39,6 +39,7 @@ export declare const GetActivitiesQueryParams: zod.ZodObject<{
39
39
  query: zod.ZodOptional<zod.ZodString>;
40
40
  resource_type: zod.ZodOptional<zod.ZodString>;
41
41
  resource_id: zod.ZodOptional<zod.ZodString>;
42
+ include_related_payments: zod.ZodOptional<zod.ZodBoolean>;
42
43
  action: zod.ZodOptional<zod.ZodString>;
43
44
  }, zod.z.core.$strip>;
44
45
  export declare const GetActivitiesHeader: zod.ZodObject<{
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  /**
10
- * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by created_at descending by default.
10
+ * Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
11
11
  * @summary List activities
12
12
  */
13
13
  export declare const getActivitiesQueryLimitDefault = 10;
@@ -39,6 +39,7 @@ export declare const GetActivitiesQueryParams: zod.ZodObject<{
39
39
  query: zod.ZodOptional<zod.ZodString>;
40
40
  resource_type: zod.ZodOptional<zod.ZodString>;
41
41
  resource_id: zod.ZodOptional<zod.ZodString>;
42
+ include_related_payments: zod.ZodOptional<zod.ZodBoolean>;
42
43
  action: zod.ZodOptional<zod.ZodString>;
43
44
  }, zod.z.core.$strip>;
44
45
  export declare const GetActivitiesHeader: zod.ZodObject<{