@workbenchcrm/sdk 1.0.1 → 1.0.3

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/index.d.mts CHANGED
@@ -100,7 +100,7 @@ interface ApiError {
100
100
  /**
101
101
  * Client status values
102
102
  */
103
- type ClientStatus = 'active' | 'inactive' | 'lead' | 'prospect';
103
+ type ClientStatus = 'active' | 'inactive' | 'lead' | 'prospect' | 'archived';
104
104
  /**
105
105
  * Client record
106
106
  */
@@ -297,11 +297,11 @@ interface ListQuotesOptions extends ListOptions {
297
297
  /**
298
298
  * Job status values
299
299
  */
300
- type JobStatus = 'pending' | 'scheduled' | 'in_progress' | 'completed' | 'cancelled' | 'on_hold';
300
+ type JobStatus = 'draft' | 'scheduled' | 'in_progress' | 'on_hold' | 'completed' | 'cancelled' | 'invoiced' | 'closed';
301
301
  /**
302
302
  * Job priority values
303
303
  */
304
- type JobPriority = 'low' | 'medium' | 'high' | 'urgent';
304
+ type JobPriority = 'low' | 'medium' | 'normal' | 'high' | 'urgent';
305
305
  /**
306
306
  * Job record
307
307
  */
@@ -359,11 +359,11 @@ interface ListJobsOptions extends ListOptions {
359
359
  /**
360
360
  * Service request status values
361
361
  */
362
- type ServiceRequestStatus = 'new' | 'reviewing' | 'scheduled' | 'completed' | 'cancelled' | 'declined';
362
+ type ServiceRequestStatus = 'new' | 'contacted' | 'scheduled' | 'in_progress' | 'completed' | 'cancelled' | 'rejected';
363
363
  /**
364
364
  * Service request priority values
365
365
  */
366
- type ServiceRequestPriority = 'low' | 'medium' | 'high' | 'urgent';
366
+ type ServiceRequestPriority = 'low' | 'normal' | 'high' | 'urgent';
367
367
  /**
368
368
  * Service request record
369
369
  */
@@ -371,6 +371,8 @@ interface ServiceRequest {
371
371
  id: string;
372
372
  business_id: string;
373
373
  client_id: string | null;
374
+ /** Unique request number for display/reference (auto-generated) */
375
+ request_number: string;
374
376
  title: string;
375
377
  description: string | null;
376
378
  status: ServiceRequestStatus;
package/dist/index.d.ts CHANGED
@@ -100,7 +100,7 @@ interface ApiError {
100
100
  /**
101
101
  * Client status values
102
102
  */
103
- type ClientStatus = 'active' | 'inactive' | 'lead' | 'prospect';
103
+ type ClientStatus = 'active' | 'inactive' | 'lead' | 'prospect' | 'archived';
104
104
  /**
105
105
  * Client record
106
106
  */
@@ -297,11 +297,11 @@ interface ListQuotesOptions extends ListOptions {
297
297
  /**
298
298
  * Job status values
299
299
  */
300
- type JobStatus = 'pending' | 'scheduled' | 'in_progress' | 'completed' | 'cancelled' | 'on_hold';
300
+ type JobStatus = 'draft' | 'scheduled' | 'in_progress' | 'on_hold' | 'completed' | 'cancelled' | 'invoiced' | 'closed';
301
301
  /**
302
302
  * Job priority values
303
303
  */
304
- type JobPriority = 'low' | 'medium' | 'high' | 'urgent';
304
+ type JobPriority = 'low' | 'medium' | 'normal' | 'high' | 'urgent';
305
305
  /**
306
306
  * Job record
307
307
  */
@@ -359,11 +359,11 @@ interface ListJobsOptions extends ListOptions {
359
359
  /**
360
360
  * Service request status values
361
361
  */
362
- type ServiceRequestStatus = 'new' | 'reviewing' | 'scheduled' | 'completed' | 'cancelled' | 'declined';
362
+ type ServiceRequestStatus = 'new' | 'contacted' | 'scheduled' | 'in_progress' | 'completed' | 'cancelled' | 'rejected';
363
363
  /**
364
364
  * Service request priority values
365
365
  */
366
- type ServiceRequestPriority = 'low' | 'medium' | 'high' | 'urgent';
366
+ type ServiceRequestPriority = 'low' | 'normal' | 'high' | 'urgent';
367
367
  /**
368
368
  * Service request record
369
369
  */
@@ -371,6 +371,8 @@ interface ServiceRequest {
371
371
  id: string;
372
372
  business_id: string;
373
373
  client_id: string | null;
374
+ /** Unique request number for display/reference (auto-generated) */
375
+ request_number: string;
374
376
  title: string;
375
377
  description: string | null;
376
378
  status: ServiceRequestStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbenchcrm/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Official Node.js SDK for the Workbench CRM API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",