@loculabs/api-client 1.1.0 → 1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.2.0](https://github.com/loculabs/api-client/compare/v1.1.0...v1.2.0) (2026-01-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * **types:** accept boolean values for string boolean params ([3a62057](https://github.com/loculabs/api-client/commit/3a62057077c46176bf81799474151ccaa7fa708b))
7
+
1
8
  # [1.1.0](https://github.com/loculabs/api-client/compare/v1.0.0...v1.1.0) (2026-01-21)
2
9
 
3
10
 
package/dist/index.d.mts CHANGED
@@ -816,8 +816,10 @@ type PaginationParams = {
816
816
  limit?: number;
817
817
  cursor?: string;
818
818
  };
819
+ /** Accepts boolean or string representation for query params */
820
+ type BooleanParam = boolean | "true" | "false";
819
821
  type TaskListParams = PaginationParams & {
820
- done?: "true" | "false";
822
+ done?: BooleanParam;
821
823
  projectId?: string;
822
824
  parentId?: string;
823
825
  section?: "today" | "sooner" | "later";
@@ -830,7 +832,7 @@ type TaskSectionsParams = {
830
832
  includeHtml?: boolean | null;
831
833
  };
832
834
  type SubtaskListParams = PaginationParams & {
833
- done?: "true" | "false";
835
+ done?: BooleanParam;
834
836
  includeHtml?: boolean | null;
835
837
  };
836
838
  type ProjectListParams = PaginationParams & {
@@ -847,7 +849,7 @@ type SessionListParams = PaginationParams & {
847
849
  includeActivities?: boolean | null;
848
850
  };
849
851
  type WebhookListParams = PaginationParams & {
850
- isActive?: "true" | "false";
852
+ isActive?: BooleanParam;
851
853
  };
852
854
 
853
855
  type LocuClientConfig = {
@@ -1083,4 +1085,4 @@ declare const parseWebhookPayload: <T = unknown>(body: string) => WebhookPayload
1083
1085
  */
1084
1086
  declare const generateWebhookSignature: (secret: string, timestamp: number, body: string) => string;
1085
1087
 
1086
- export { type ActivityListResponse, type ApiError, type CreateActivityRequest, type CreateNoteRequest, type CreateProjectRequest, type CreateSessionRequest, type CreateTaskRequest, type CreateWebhookRequest, type DeleteActivityResponse, type DeleteNoteResponse, type DeleteProjectResponse, type DeleteSessionResponse, type DeleteTaskResponse, type DeleteWebhookResponse, type ErrorResponse, type JiraTask, type LinearTask, LocuApiError, type LocuClient, type LocuClientConfig, type LocuTask, type MeResponse, type Note, type NoteListParams, type NoteListResponse, type PaginatedResponse, type PaginationParams, type ParsedWebhookSignature, type Project, type ProjectDescription, type ProjectListParams, type ProjectListResponse, type RotateSecretResponse, type Session, type SessionActivity, type SessionListParams, type SessionListResponse, type SessionWithActivities, type StartTimerRequest, type StopTimerResponse, type StopTimerSession, type SubtaskListParams, type Task, type TaskBySection, type TaskDescription, type TaskListParams, type TaskListResponse, type TaskSectionsParams, type TaskSectionsResponse, type TimerState, type UpdateActivityRequest, type UpdateNoteRequest, type UpdateProjectRequest, type UpdateSessionRequest, type UpdateTaskRequest, type UpdateWebhookRequest, type VerifyWebhookOptions, type Webhook, type WebhookDelivery, type WebhookDeliveryListResponse, type WebhookListParams, type WebhookListResponse, type WebhookPayload, type WebhookSignatureResult, type WebhookWithSecret, createLocuClient, generateWebhookSignature, parseWebhookPayload, parseWebhookSignature, verifyWebhookSignature };
1088
+ export { type ActivityListResponse, type ApiError, type BooleanParam, type CreateActivityRequest, type CreateNoteRequest, type CreateProjectRequest, type CreateSessionRequest, type CreateTaskRequest, type CreateWebhookRequest, type DeleteActivityResponse, type DeleteNoteResponse, type DeleteProjectResponse, type DeleteSessionResponse, type DeleteTaskResponse, type DeleteWebhookResponse, type ErrorResponse, type JiraTask, type LinearTask, LocuApiError, type LocuClient, type LocuClientConfig, type LocuTask, type MeResponse, type Note, type NoteListParams, type NoteListResponse, type PaginatedResponse, type PaginationParams, type ParsedWebhookSignature, type Project, type ProjectDescription, type ProjectListParams, type ProjectListResponse, type RotateSecretResponse, type Session, type SessionActivity, type SessionListParams, type SessionListResponse, type SessionWithActivities, type StartTimerRequest, type StopTimerResponse, type StopTimerSession, type SubtaskListParams, type Task, type TaskBySection, type TaskDescription, type TaskListParams, type TaskListResponse, type TaskSectionsParams, type TaskSectionsResponse, type TimerState, type UpdateActivityRequest, type UpdateNoteRequest, type UpdateProjectRequest, type UpdateSessionRequest, type UpdateTaskRequest, type UpdateWebhookRequest, type VerifyWebhookOptions, type Webhook, type WebhookDelivery, type WebhookDeliveryListResponse, type WebhookListParams, type WebhookListResponse, type WebhookPayload, type WebhookSignatureResult, type WebhookWithSecret, createLocuClient, generateWebhookSignature, parseWebhookPayload, parseWebhookSignature, verifyWebhookSignature };
package/dist/index.d.ts CHANGED
@@ -816,8 +816,10 @@ type PaginationParams = {
816
816
  limit?: number;
817
817
  cursor?: string;
818
818
  };
819
+ /** Accepts boolean or string representation for query params */
820
+ type BooleanParam = boolean | "true" | "false";
819
821
  type TaskListParams = PaginationParams & {
820
- done?: "true" | "false";
822
+ done?: BooleanParam;
821
823
  projectId?: string;
822
824
  parentId?: string;
823
825
  section?: "today" | "sooner" | "later";
@@ -830,7 +832,7 @@ type TaskSectionsParams = {
830
832
  includeHtml?: boolean | null;
831
833
  };
832
834
  type SubtaskListParams = PaginationParams & {
833
- done?: "true" | "false";
835
+ done?: BooleanParam;
834
836
  includeHtml?: boolean | null;
835
837
  };
836
838
  type ProjectListParams = PaginationParams & {
@@ -847,7 +849,7 @@ type SessionListParams = PaginationParams & {
847
849
  includeActivities?: boolean | null;
848
850
  };
849
851
  type WebhookListParams = PaginationParams & {
850
- isActive?: "true" | "false";
852
+ isActive?: BooleanParam;
851
853
  };
852
854
 
853
855
  type LocuClientConfig = {
@@ -1083,4 +1085,4 @@ declare const parseWebhookPayload: <T = unknown>(body: string) => WebhookPayload
1083
1085
  */
1084
1086
  declare const generateWebhookSignature: (secret: string, timestamp: number, body: string) => string;
1085
1087
 
1086
- export { type ActivityListResponse, type ApiError, type CreateActivityRequest, type CreateNoteRequest, type CreateProjectRequest, type CreateSessionRequest, type CreateTaskRequest, type CreateWebhookRequest, type DeleteActivityResponse, type DeleteNoteResponse, type DeleteProjectResponse, type DeleteSessionResponse, type DeleteTaskResponse, type DeleteWebhookResponse, type ErrorResponse, type JiraTask, type LinearTask, LocuApiError, type LocuClient, type LocuClientConfig, type LocuTask, type MeResponse, type Note, type NoteListParams, type NoteListResponse, type PaginatedResponse, type PaginationParams, type ParsedWebhookSignature, type Project, type ProjectDescription, type ProjectListParams, type ProjectListResponse, type RotateSecretResponse, type Session, type SessionActivity, type SessionListParams, type SessionListResponse, type SessionWithActivities, type StartTimerRequest, type StopTimerResponse, type StopTimerSession, type SubtaskListParams, type Task, type TaskBySection, type TaskDescription, type TaskListParams, type TaskListResponse, type TaskSectionsParams, type TaskSectionsResponse, type TimerState, type UpdateActivityRequest, type UpdateNoteRequest, type UpdateProjectRequest, type UpdateSessionRequest, type UpdateTaskRequest, type UpdateWebhookRequest, type VerifyWebhookOptions, type Webhook, type WebhookDelivery, type WebhookDeliveryListResponse, type WebhookListParams, type WebhookListResponse, type WebhookPayload, type WebhookSignatureResult, type WebhookWithSecret, createLocuClient, generateWebhookSignature, parseWebhookPayload, parseWebhookSignature, verifyWebhookSignature };
1088
+ export { type ActivityListResponse, type ApiError, type BooleanParam, type CreateActivityRequest, type CreateNoteRequest, type CreateProjectRequest, type CreateSessionRequest, type CreateTaskRequest, type CreateWebhookRequest, type DeleteActivityResponse, type DeleteNoteResponse, type DeleteProjectResponse, type DeleteSessionResponse, type DeleteTaskResponse, type DeleteWebhookResponse, type ErrorResponse, type JiraTask, type LinearTask, LocuApiError, type LocuClient, type LocuClientConfig, type LocuTask, type MeResponse, type Note, type NoteListParams, type NoteListResponse, type PaginatedResponse, type PaginationParams, type ParsedWebhookSignature, type Project, type ProjectDescription, type ProjectListParams, type ProjectListResponse, type RotateSecretResponse, type Session, type SessionActivity, type SessionListParams, type SessionListResponse, type SessionWithActivities, type StartTimerRequest, type StopTimerResponse, type StopTimerSession, type SubtaskListParams, type Task, type TaskBySection, type TaskDescription, type TaskListParams, type TaskListResponse, type TaskSectionsParams, type TaskSectionsResponse, type TimerState, type UpdateActivityRequest, type UpdateNoteRequest, type UpdateProjectRequest, type UpdateSessionRequest, type UpdateTaskRequest, type UpdateWebhookRequest, type VerifyWebhookOptions, type Webhook, type WebhookDelivery, type WebhookDeliveryListResponse, type WebhookListParams, type WebhookListResponse, type WebhookPayload, type WebhookSignatureResult, type WebhookWithSecret, createLocuClient, generateWebhookSignature, parseWebhookPayload, parseWebhookSignature, verifyWebhookSignature };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loculabs/api-client",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "TypeScript client for the Locu REST API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",