@solibo/solibo-query 1.52.0 → 1.53.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.
@@ -8,6 +8,6 @@ export declare function createInvoiceRecipientMutationOptions(sdk: SoliboClient,
8
8
  customerId: Id;
9
9
  cmd: SdkInput<CreateInvoiceRecipientCommandProps>;
10
10
  sectionIdToDeleteFrom?: Id | null | undefined;
11
- }) => Promise<import("@solibo/solibo-sdk").InvoiceRecipient>;
11
+ }) => Promise<bigint[]>;
12
12
  onSuccess: (_: any, params: any) => Promise<[void, void, void, void, void, void]>;
13
13
  };
@@ -6,6 +6,6 @@ export declare function createSupplierContactMutationOptions(sdk: SoliboClient,
6
6
  companyId: Id;
7
7
  supplierId: Id;
8
8
  cmd: SdkInput<CreateSupplierContactCommandProps>;
9
- }) => Promise<import("@solibo/solibo-sdk").Person>;
9
+ }) => Promise<import("@solibo/solibo-sdk").SupplierContact>;
10
10
  onSuccess: (_: any, params: any) => Promise<[void, void]>;
11
11
  };
@@ -7,6 +7,6 @@ export declare function editSupplierContactMutationOptions(sdk: SoliboClient, qu
7
7
  supplierId: Id;
8
8
  contactId: Id;
9
9
  cmd: SdkInput<UpdateSupplierContactCommandProps>;
10
- }) => Promise<import("@solibo/solibo-sdk").Person>;
10
+ }) => Promise<import("@solibo/solibo-sdk").SupplierContact>;
11
11
  onSuccess: (_: any, params: any) => Promise<[void, void]>;
12
12
  };
@@ -20,13 +20,15 @@ export declare function tasksQueryOptions(sdk: SoliboClient, params: {
20
20
  deleted?: Parameters<typeof indexTasks>[1]["deleted"];
21
21
  /** Deleted tasks too. */
22
22
  includeDeleted?: Parameters<typeof indexTasks>[1]["includeDeleted"];
23
+ /** Sort direction, `ASC` or `DESC`. */
24
+ orderDirection?: Parameters<typeof indexTasks>[1]["orderDirection"];
23
25
  fields?: string;
24
26
  pageToken?: string;
25
27
  autoPaginate?: boolean | null;
26
28
  count?: number;
27
29
  }): {
28
30
  initialPageParam: string | undefined;
29
- queryKey: (boolean | Id | readonly string[] | readonly ["tasks", "list", string | number | null | undefined] | null | undefined)[];
31
+ queryKey: (boolean | Id | readonly string[] | import("@solibo/solibo-sdk").TaskOrderDirection | readonly ["tasks", "list", string | number | null | undefined] | null | undefined)[];
30
32
  queryFn: ({ pageParam }: {
31
33
  pageParam: any;
32
34
  }) => Promise<import("@solibo/solibo-sdk").PagedListTask>;
@@ -25,6 +25,7 @@ export function tasksQueryOptions(sdk, params) {
25
25
  canonicalQueryIds(params.taskIds),
26
26
  params.deleted,
27
27
  params.includeDeleted,
28
+ params.orderDirection,
28
29
  params.fields,
29
30
  params.count,
30
31
  ],
@@ -38,6 +39,7 @@ export function tasksQueryOptions(sdk, params) {
38
39
  taskIds: params.taskIds,
39
40
  deleted: params.deleted,
40
41
  includeDeleted: params.includeDeleted,
42
+ orderDirection: params.orderDirection,
41
43
  fields: params.fields,
42
44
  pageToken: pageParam,
43
45
  autoPaginate: params.autoPaginate,
@@ -15,13 +15,15 @@ export declare function tasksForUserQueryOptions(sdk: SoliboClient, params?: {
15
15
  deleted?: Parameters<typeof indexTasksUser>[1]["deleted"];
16
16
  /** Deleted tasks too. */
17
17
  includeDeleted?: Parameters<typeof indexTasksUser>[1]["includeDeleted"];
18
+ /** Sort direction, `ASC` or `DESC`. */
19
+ orderDirection?: Parameters<typeof indexTasksUser>[1]["orderDirection"];
18
20
  fields?: string;
19
21
  pageToken?: string;
20
22
  autoPaginate?: boolean | null;
21
23
  count?: number;
22
24
  }): {
23
25
  initialPageParam: string | undefined;
24
- queryKey: (boolean | Id | readonly string[] | null | undefined)[];
26
+ queryKey: (boolean | Id | readonly string[] | import("@solibo/solibo-sdk").TaskOrderDirection | null | undefined)[];
25
27
  queryFn: ({ pageParam }: {
26
28
  pageParam: any;
27
29
  }) => Promise<import("@solibo/solibo-sdk").PagedListTask>;
@@ -16,6 +16,7 @@ export function tasksForUserQueryOptions(sdk, params = {}) {
16
16
  canonicalQueryIds(params.taskIds),
17
17
  params.deleted,
18
18
  params.includeDeleted,
19
+ params.orderDirection,
19
20
  params.fields,
20
21
  params.count,
21
22
  ],
@@ -29,6 +30,7 @@ export function tasksForUserQueryOptions(sdk, params = {}) {
29
30
  taskIds: params.taskIds,
30
31
  deleted: params.deleted,
31
32
  includeDeleted: params.includeDeleted,
33
+ orderDirection: params.orderDirection,
32
34
  fields: params.fields,
33
35
  pageToken: pageParam,
34
36
  autoPaginate: params.autoPaginate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-query",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "description": "Framework-agnostic TanStack Query options for the Solibo Home SDK. Solibo Home is the platform for owning and managing homes in Norway.",
5
5
  "homepage": "https://sdk.solibo.no",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "buffer": "^6.0.3",
42
42
  "hash-wasm": "^4.12.0",
43
43
  "mime-types": "^3.0.2",
44
- "@solibo/solibo-sdk": "1.52.0"
44
+ "@solibo/solibo-sdk": "1.53.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@eslint/js": "^10.0.1",