@workbenchcrm/sdk 1.0.2 → 1.0.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.
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -98,9 +98,13 @@ interface ApiError {
|
|
|
98
98
|
meta: ResponseMeta;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Client status values
|
|
101
|
+
* Client status values (lifecycle status)
|
|
102
102
|
*/
|
|
103
|
-
type ClientStatus = 'active' | 'inactive' | '
|
|
103
|
+
type ClientStatus = 'active' | 'inactive' | 'archived';
|
|
104
|
+
/**
|
|
105
|
+
* Lead status values (pipeline stage for leads)
|
|
106
|
+
*/
|
|
107
|
+
type LeadStatus = 'new' | 'contacted' | 'qualified' | 'proposal' | 'negotiation' | 'won' | 'lost';
|
|
104
108
|
/**
|
|
105
109
|
* Client record
|
|
106
110
|
*/
|
|
@@ -113,6 +117,8 @@ interface Client {
|
|
|
113
117
|
email: string | null;
|
|
114
118
|
phone: string | null;
|
|
115
119
|
status: ClientStatus;
|
|
120
|
+
/** Lead pipeline stage */
|
|
121
|
+
lead_status: LeadStatus | null;
|
|
116
122
|
source: string | null;
|
|
117
123
|
notes: string | null;
|
|
118
124
|
/** Internal notes visible only to business users */
|
|
@@ -132,7 +138,10 @@ interface CreateClientOptions {
|
|
|
132
138
|
company?: string | null;
|
|
133
139
|
email?: string | null;
|
|
134
140
|
phone?: string | null;
|
|
141
|
+
/** Client lifecycle status (defaults to 'active') */
|
|
135
142
|
status?: ClientStatus;
|
|
143
|
+
/** Lead pipeline stage (defaults to 'new') */
|
|
144
|
+
lead_status?: LeadStatus | null;
|
|
136
145
|
source?: string | null;
|
|
137
146
|
notes?: string | null;
|
|
138
147
|
internal_notes?: string | null;
|
|
@@ -150,6 +159,7 @@ interface UpdateClientOptions extends Partial<CreateClientOptions> {
|
|
|
150
159
|
*/
|
|
151
160
|
interface ListClientsOptions extends ListOptions {
|
|
152
161
|
status?: ClientStatus;
|
|
162
|
+
lead_status?: LeadStatus;
|
|
153
163
|
}
|
|
154
164
|
/**
|
|
155
165
|
* Invoice status values
|
|
@@ -359,7 +369,7 @@ interface ListJobsOptions extends ListOptions {
|
|
|
359
369
|
/**
|
|
360
370
|
* Service request status values
|
|
361
371
|
*/
|
|
362
|
-
type ServiceRequestStatus = 'new' | '
|
|
372
|
+
type ServiceRequestStatus = 'new' | 'contacted' | 'scheduled' | 'in_progress' | 'completed' | 'cancelled' | 'rejected';
|
|
363
373
|
/**
|
|
364
374
|
* Service request priority values
|
|
365
375
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -98,9 +98,13 @@ interface ApiError {
|
|
|
98
98
|
meta: ResponseMeta;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Client status values
|
|
101
|
+
* Client status values (lifecycle status)
|
|
102
102
|
*/
|
|
103
|
-
type ClientStatus = 'active' | 'inactive' | '
|
|
103
|
+
type ClientStatus = 'active' | 'inactive' | 'archived';
|
|
104
|
+
/**
|
|
105
|
+
* Lead status values (pipeline stage for leads)
|
|
106
|
+
*/
|
|
107
|
+
type LeadStatus = 'new' | 'contacted' | 'qualified' | 'proposal' | 'negotiation' | 'won' | 'lost';
|
|
104
108
|
/**
|
|
105
109
|
* Client record
|
|
106
110
|
*/
|
|
@@ -113,6 +117,8 @@ interface Client {
|
|
|
113
117
|
email: string | null;
|
|
114
118
|
phone: string | null;
|
|
115
119
|
status: ClientStatus;
|
|
120
|
+
/** Lead pipeline stage */
|
|
121
|
+
lead_status: LeadStatus | null;
|
|
116
122
|
source: string | null;
|
|
117
123
|
notes: string | null;
|
|
118
124
|
/** Internal notes visible only to business users */
|
|
@@ -132,7 +138,10 @@ interface CreateClientOptions {
|
|
|
132
138
|
company?: string | null;
|
|
133
139
|
email?: string | null;
|
|
134
140
|
phone?: string | null;
|
|
141
|
+
/** Client lifecycle status (defaults to 'active') */
|
|
135
142
|
status?: ClientStatus;
|
|
143
|
+
/** Lead pipeline stage (defaults to 'new') */
|
|
144
|
+
lead_status?: LeadStatus | null;
|
|
136
145
|
source?: string | null;
|
|
137
146
|
notes?: string | null;
|
|
138
147
|
internal_notes?: string | null;
|
|
@@ -150,6 +159,7 @@ interface UpdateClientOptions extends Partial<CreateClientOptions> {
|
|
|
150
159
|
*/
|
|
151
160
|
interface ListClientsOptions extends ListOptions {
|
|
152
161
|
status?: ClientStatus;
|
|
162
|
+
lead_status?: LeadStatus;
|
|
153
163
|
}
|
|
154
164
|
/**
|
|
155
165
|
* Invoice status values
|
|
@@ -359,7 +369,7 @@ interface ListJobsOptions extends ListOptions {
|
|
|
359
369
|
/**
|
|
360
370
|
* Service request status values
|
|
361
371
|
*/
|
|
362
|
-
type ServiceRequestStatus = 'new' | '
|
|
372
|
+
type ServiceRequestStatus = 'new' | 'contacted' | 'scheduled' | 'in_progress' | 'completed' | 'cancelled' | 'rejected';
|
|
363
373
|
/**
|
|
364
374
|
* Service request priority values
|
|
365
375
|
*/
|