@faiber/faiber-crm 0.24.0 → 1.0.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/README.md +27 -29
- package/dist/.tsbuildinfo +1 -1
- package/dist/contracts.types.d.ts +201 -0
- package/dist/contracts.types.d.ts.map +1 -0
- package/dist/contracts.types.js +2 -0
- package/dist/contracts.types.js.map +1 -0
- package/dist/index.d.ts +80 -77
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +379 -360
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +314 -270
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +450 -900
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +136 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
- package/provenance.json +27 -0
|
@@ -1,151 +1,98 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
2
2
|
/** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
|
|
3
3
|
/** Backend response type: api. */
|
|
4
|
-
export type RouterStatusRouteGetResponse = import("./types.js").
|
|
4
|
+
export type RouterStatusRouteGetResponse = import("./types.js").CrmHealthResponse;
|
|
5
|
+
/** Backend response type: api. */
|
|
6
|
+
export type RouterApiNotFoundAnyResponse = import("./types.js").CrmApiFallbackResponse;
|
|
7
|
+
/** Backend response type: api. */
|
|
8
|
+
export type RouterApiPathNotFoundAnyResponse = import("./types.js").CrmApiFallbackResponse;
|
|
5
9
|
/** Backend query type: ListQuery. */
|
|
6
|
-
export
|
|
7
|
-
"cursor"?: string | null;
|
|
8
|
-
"limit"?: number | null;
|
|
9
|
-
"q"?: string | null;
|
|
10
|
-
"pipeline_id"?: string | null;
|
|
11
|
-
"stage_id"?: string | null;
|
|
12
|
-
"team_id"?: string | null;
|
|
13
|
-
"owner_user_id"?: string | null;
|
|
14
|
-
"status"?: string | null;
|
|
15
|
-
"statuses"?: string | null;
|
|
16
|
-
"profile_id"?: string | null;
|
|
17
|
-
"active_from"?: string | null;
|
|
18
|
-
"active_to"?: string | null;
|
|
19
|
-
"sort"?: string | null;
|
|
20
|
-
}
|
|
10
|
+
export type ApiActivitiesGetQuery = import("./contracts.types.js").CrmCursorQuery;
|
|
21
11
|
/** Backend response type: ListData<ActivityResponse>. */
|
|
22
12
|
export type ApiActivitiesGetResponse = import("./types.js").CrmActivityListResponse;
|
|
23
13
|
/** Backend request type: CreateActivity. */
|
|
24
|
-
export
|
|
25
|
-
"lead_id"?: string | null;
|
|
26
|
-
"deal_id"?: string | null;
|
|
27
|
-
"contact_id"?: string | null;
|
|
28
|
-
"company_id"?: string | null;
|
|
29
|
-
"activity_type": string;
|
|
30
|
-
"direction"?: string | null;
|
|
31
|
-
"subject"?: string | null;
|
|
32
|
-
"body"?: string | null;
|
|
33
|
-
"outcome"?: string | null;
|
|
34
|
-
"occurred_at"?: string | null;
|
|
35
|
-
"duration_seconds"?: number | null;
|
|
36
|
-
"metadata"?: BackendJson<"JsonValue">;
|
|
37
|
-
}
|
|
14
|
+
export type ApiCreateActivityPostInput = import("./contracts.types.js").CrmActivityCreateInput;
|
|
38
15
|
/** Backend response type: ActivityResponse. */
|
|
39
16
|
export interface ApiCreateActivityPostResponseDataProfile extends JsonObject {
|
|
40
17
|
"id": string;
|
|
41
|
-
"user_id"
|
|
42
|
-
"email"
|
|
43
|
-
"phone"
|
|
44
|
-
"national_code"
|
|
45
|
-
"first_name"
|
|
46
|
-
"last_name"
|
|
47
|
-
"status"
|
|
48
|
-
"employee_type"
|
|
49
|
-
"avatar"
|
|
18
|
+
"user_id": string | null;
|
|
19
|
+
"email": string | null;
|
|
20
|
+
"phone": string | null;
|
|
21
|
+
"national_code": string | null;
|
|
22
|
+
"first_name": JsonValue | null;
|
|
23
|
+
"last_name": JsonValue | null;
|
|
24
|
+
"status": string | null;
|
|
25
|
+
"employee_type": string | null;
|
|
26
|
+
"avatar": string | null;
|
|
50
27
|
}
|
|
51
28
|
export interface ApiCreateActivityPostResponseData extends JsonObject {
|
|
52
29
|
"id": string;
|
|
53
|
-
"lead_id"
|
|
54
|
-
"deal_id"
|
|
55
|
-
"contact_id"
|
|
56
|
-
"company_id"
|
|
30
|
+
"lead_id": string | null;
|
|
31
|
+
"deal_id": string | null;
|
|
32
|
+
"contact_id": string | null;
|
|
33
|
+
"company_id": string | null;
|
|
57
34
|
"owner_user_id": string;
|
|
58
35
|
"activity_type": string;
|
|
59
|
-
"direction"
|
|
60
|
-
"subject"
|
|
61
|
-
"body"
|
|
62
|
-
"outcome"
|
|
36
|
+
"direction": string | null;
|
|
37
|
+
"subject": string | null;
|
|
38
|
+
"body": string | null;
|
|
39
|
+
"outcome": string | null;
|
|
63
40
|
"occurred_at": string;
|
|
64
|
-
"duration_seconds"
|
|
65
|
-
"metadata":
|
|
41
|
+
"duration_seconds": number | null;
|
|
42
|
+
"metadata": JsonValue;
|
|
66
43
|
"created_at": string;
|
|
67
|
-
"profile"
|
|
44
|
+
"profile": ApiCreateActivityPostResponseDataProfile | null;
|
|
68
45
|
}
|
|
69
46
|
export type ApiCreateActivityPostResponse = import("./types.js").CrmApiResponse<ApiCreateActivityPostResponseData>;
|
|
70
47
|
/** Backend request type: CreateActivityWithReminder. */
|
|
71
|
-
export
|
|
72
|
-
"lead_id"?: string | null;
|
|
73
|
-
"deal_id"?: string | null;
|
|
74
|
-
"contact_id"?: string | null;
|
|
75
|
-
"company_id"?: string | null;
|
|
76
|
-
"activity_type": string;
|
|
77
|
-
"direction"?: string | null;
|
|
78
|
-
"subject"?: string | null;
|
|
79
|
-
"body"?: string | null;
|
|
80
|
-
"outcome"?: string | null;
|
|
81
|
-
"occurred_at"?: string | null;
|
|
82
|
-
"duration_seconds"?: number | null;
|
|
83
|
-
"metadata"?: BackendJson<"JsonValue">;
|
|
84
|
-
}
|
|
85
|
-
export interface ApiCreateActivityWithReminderPostInputReminder extends JsonObject {
|
|
86
|
-
"lead_id"?: string | null;
|
|
87
|
-
"deal_id"?: string | null;
|
|
88
|
-
"contact_id"?: string | null;
|
|
89
|
-
"company_id"?: string | null;
|
|
90
|
-
"profile_id"?: string | null;
|
|
91
|
-
"assignee_user_id"?: string | null;
|
|
92
|
-
"title": string;
|
|
93
|
-
"description"?: string | null;
|
|
94
|
-
"task_type"?: string | null;
|
|
95
|
-
"priority"?: string | null;
|
|
96
|
-
"due_at"?: string | null;
|
|
97
|
-
}
|
|
98
|
-
export interface ApiCreateActivityWithReminderPostInput extends JsonObject {
|
|
99
|
-
"activity": ApiCreateActivityWithReminderPostInputActivity;
|
|
100
|
-
"reminder": ApiCreateActivityWithReminderPostInputReminder;
|
|
101
|
-
}
|
|
48
|
+
export type ApiCreateActivityWithReminderPostInput = import("./contracts.types.js").CrmActivityReminderCreateInput;
|
|
102
49
|
/** Backend response type: ActivityWithReminder. */
|
|
103
50
|
export interface ApiCreateActivityWithReminderPostResponseDataActivityProfile extends JsonObject {
|
|
104
51
|
"id": string;
|
|
105
|
-
"user_id"
|
|
106
|
-
"email"
|
|
107
|
-
"phone"
|
|
108
|
-
"national_code"
|
|
109
|
-
"first_name"
|
|
110
|
-
"last_name"
|
|
111
|
-
"status"
|
|
112
|
-
"employee_type"
|
|
113
|
-
"avatar"
|
|
52
|
+
"user_id": string | null;
|
|
53
|
+
"email": string | null;
|
|
54
|
+
"phone": string | null;
|
|
55
|
+
"national_code": string | null;
|
|
56
|
+
"first_name": JsonValue | null;
|
|
57
|
+
"last_name": JsonValue | null;
|
|
58
|
+
"status": string | null;
|
|
59
|
+
"employee_type": string | null;
|
|
60
|
+
"avatar": string | null;
|
|
114
61
|
}
|
|
115
62
|
export interface ApiCreateActivityWithReminderPostResponseDataActivity extends JsonObject {
|
|
116
63
|
"id": string;
|
|
117
|
-
"lead_id"
|
|
118
|
-
"deal_id"
|
|
119
|
-
"contact_id"
|
|
120
|
-
"company_id"
|
|
64
|
+
"lead_id": string | null;
|
|
65
|
+
"deal_id": string | null;
|
|
66
|
+
"contact_id": string | null;
|
|
67
|
+
"company_id": string | null;
|
|
121
68
|
"owner_user_id": string;
|
|
122
69
|
"activity_type": string;
|
|
123
|
-
"direction"
|
|
124
|
-
"subject"
|
|
125
|
-
"body"
|
|
126
|
-
"outcome"
|
|
70
|
+
"direction": string | null;
|
|
71
|
+
"subject": string | null;
|
|
72
|
+
"body": string | null;
|
|
73
|
+
"outcome": string | null;
|
|
127
74
|
"occurred_at": string;
|
|
128
|
-
"duration_seconds"
|
|
129
|
-
"metadata":
|
|
75
|
+
"duration_seconds": number | null;
|
|
76
|
+
"metadata": JsonValue;
|
|
130
77
|
"created_at": string;
|
|
131
|
-
"profile"
|
|
78
|
+
"profile": ApiCreateActivityWithReminderPostResponseDataActivityProfile | null;
|
|
132
79
|
}
|
|
133
80
|
export interface ApiCreateActivityWithReminderPostResponseDataReminder extends JsonObject {
|
|
134
81
|
"id": string;
|
|
135
|
-
"lead_id"
|
|
136
|
-
"deal_id"
|
|
137
|
-
"contact_id"
|
|
138
|
-
"company_id"
|
|
139
|
-
"profile_id"
|
|
82
|
+
"lead_id": string | null;
|
|
83
|
+
"deal_id": string | null;
|
|
84
|
+
"contact_id": string | null;
|
|
85
|
+
"company_id": string | null;
|
|
86
|
+
"profile_id": string | null;
|
|
140
87
|
"assignee_user_id": string;
|
|
141
88
|
"created_by": string;
|
|
142
89
|
"title": string;
|
|
143
|
-
"description"
|
|
90
|
+
"description": string | null;
|
|
144
91
|
"task_type": string;
|
|
145
92
|
"priority": string;
|
|
146
93
|
"status": string;
|
|
147
|
-
"due_at"
|
|
148
|
-
"completed_at"
|
|
94
|
+
"due_at": string | null;
|
|
95
|
+
"completed_at": string | null;
|
|
149
96
|
"version": number;
|
|
150
97
|
"created_at": string;
|
|
151
98
|
"updated_at": string;
|
|
@@ -156,21 +103,7 @@ export interface ApiCreateActivityWithReminderPostResponseData extends JsonObjec
|
|
|
156
103
|
}
|
|
157
104
|
export type ApiCreateActivityWithReminderPostResponse = import("./types.js").CrmApiResponse<ApiCreateActivityWithReminderPostResponseData>;
|
|
158
105
|
/** Backend query type: ListQuery. */
|
|
159
|
-
export
|
|
160
|
-
"cursor"?: string | null;
|
|
161
|
-
"limit"?: number | null;
|
|
162
|
-
"q"?: string | null;
|
|
163
|
-
"pipeline_id"?: string | null;
|
|
164
|
-
"stage_id"?: string | null;
|
|
165
|
-
"team_id"?: string | null;
|
|
166
|
-
"owner_user_id"?: string | null;
|
|
167
|
-
"status"?: string | null;
|
|
168
|
-
"statuses"?: string | null;
|
|
169
|
-
"profile_id"?: string | null;
|
|
170
|
-
"active_from"?: string | null;
|
|
171
|
-
"active_to"?: string | null;
|
|
172
|
-
"sort"?: string | null;
|
|
173
|
-
}
|
|
106
|
+
export type ApiAutomationJobsGetQuery = import("./contracts.types.js").CrmJobListQuery;
|
|
174
107
|
/** Backend response type: ListData<DurableJob>. */
|
|
175
108
|
export type ApiAutomationJobsGetResponse = import("./types.js").CrmAutomationJobListResponse;
|
|
176
109
|
/** Backend response type: Vec<WebhookSubscription>. */
|
|
@@ -192,68 +125,43 @@ export type ApiBoardGetResponse = import("./types.js").CrmBoardResponse;
|
|
|
192
125
|
/** Backend response type: Vec<Campaign>. */
|
|
193
126
|
export interface ApiCampaignsGetResponseItem extends JsonObject {
|
|
194
127
|
"id": string;
|
|
195
|
-
"source_id"
|
|
128
|
+
"source_id": string | null;
|
|
196
129
|
"name": string;
|
|
197
130
|
"slug": string;
|
|
198
131
|
"status": string;
|
|
199
|
-
"starts_at"
|
|
200
|
-
"ends_at"
|
|
201
|
-
"budget"
|
|
202
|
-
"actual_cost"
|
|
132
|
+
"starts_at": string | null;
|
|
133
|
+
"ends_at": string | null;
|
|
134
|
+
"budget": number | null;
|
|
135
|
+
"actual_cost": number | null;
|
|
203
136
|
"currency": string;
|
|
204
|
-
"metadata":
|
|
137
|
+
"metadata": JsonValue;
|
|
205
138
|
"version": number;
|
|
206
139
|
"created_at": string;
|
|
207
140
|
"updated_at": string;
|
|
208
141
|
}
|
|
209
142
|
export type ApiCampaignsGetResponse = import("./types.js").CrmApiResponse<ApiCampaignsGetResponseItem[]>;
|
|
210
143
|
/** Backend request type: CreateCampaign. */
|
|
211
|
-
export
|
|
212
|
-
"source_id"?: string | null;
|
|
213
|
-
"name": string;
|
|
214
|
-
"slug": string;
|
|
215
|
-
"status"?: string | null;
|
|
216
|
-
"starts_at"?: string | null;
|
|
217
|
-
"ends_at"?: string | null;
|
|
218
|
-
"budget"?: number | null;
|
|
219
|
-
"actual_cost"?: number | null;
|
|
220
|
-
"currency"?: string | null;
|
|
221
|
-
"metadata"?: BackendJson<"JsonValue">;
|
|
222
|
-
}
|
|
144
|
+
export type ApiCreateCampaignPostInput = import("./contracts.types.js").CrmCampaignCreateInput;
|
|
223
145
|
/** Backend response type: Campaign. */
|
|
224
146
|
export interface ApiCreateCampaignPostResponseData extends JsonObject {
|
|
225
147
|
"id": string;
|
|
226
|
-
"source_id"
|
|
148
|
+
"source_id": string | null;
|
|
227
149
|
"name": string;
|
|
228
150
|
"slug": string;
|
|
229
151
|
"status": string;
|
|
230
|
-
"starts_at"
|
|
231
|
-
"ends_at"
|
|
232
|
-
"budget"
|
|
233
|
-
"actual_cost"
|
|
152
|
+
"starts_at": string | null;
|
|
153
|
+
"ends_at": string | null;
|
|
154
|
+
"budget": number | null;
|
|
155
|
+
"actual_cost": number | null;
|
|
234
156
|
"currency": string;
|
|
235
|
-
"metadata":
|
|
157
|
+
"metadata": JsonValue;
|
|
236
158
|
"version": number;
|
|
237
159
|
"created_at": string;
|
|
238
160
|
"updated_at": string;
|
|
239
161
|
}
|
|
240
162
|
export type ApiCreateCampaignPostResponse = import("./types.js").CrmApiResponse<ApiCreateCampaignPostResponseData>;
|
|
241
163
|
/** Backend query type: ListQuery. */
|
|
242
|
-
export
|
|
243
|
-
"cursor"?: string | null;
|
|
244
|
-
"limit"?: number | null;
|
|
245
|
-
"q"?: string | null;
|
|
246
|
-
"pipeline_id"?: string | null;
|
|
247
|
-
"stage_id"?: string | null;
|
|
248
|
-
"team_id"?: string | null;
|
|
249
|
-
"owner_user_id"?: string | null;
|
|
250
|
-
"status"?: string | null;
|
|
251
|
-
"statuses"?: string | null;
|
|
252
|
-
"profile_id"?: string | null;
|
|
253
|
-
"active_from"?: string | null;
|
|
254
|
-
"active_to"?: string | null;
|
|
255
|
-
"sort"?: string | null;
|
|
256
|
-
}
|
|
164
|
+
export type ApiCompaniesGetQuery = import("./contracts.types.js").CrmSearchQuery;
|
|
257
165
|
/** Backend response type: ListData<Company>. */
|
|
258
166
|
export type ApiCompaniesGetResponse = import("./types.js").CrmCompanyListResponse;
|
|
259
167
|
/** Backend request type: CreateCompany. */
|
|
@@ -269,25 +177,25 @@ export interface ApiCreateCompanyPostInput extends JsonObject {
|
|
|
269
177
|
"website"?: string | null;
|
|
270
178
|
"owner_user_id"?: string | null;
|
|
271
179
|
"team_id"?: string | null;
|
|
272
|
-
"address"?:
|
|
273
|
-
"custom_data"?:
|
|
180
|
+
"address"?: JsonValue;
|
|
181
|
+
"custom_data"?: JsonValue;
|
|
274
182
|
}
|
|
275
183
|
/** Backend response type: Company. */
|
|
276
184
|
export interface ApiCreateCompanyPostResponseData extends JsonObject {
|
|
277
185
|
"id": string;
|
|
278
|
-
"owner_user_id"
|
|
279
|
-
"team_id"
|
|
186
|
+
"owner_user_id": string | null;
|
|
187
|
+
"team_id": string | null;
|
|
280
188
|
"name": string;
|
|
281
|
-
"legal_name"
|
|
282
|
-
"domain"
|
|
283
|
-
"industry"
|
|
284
|
-
"employee_count"
|
|
285
|
-
"annual_revenue"
|
|
286
|
-
"phone"
|
|
287
|
-
"email"
|
|
288
|
-
"website"
|
|
289
|
-
"address":
|
|
290
|
-
"custom_data":
|
|
189
|
+
"legal_name": string | null;
|
|
190
|
+
"domain": string | null;
|
|
191
|
+
"industry": string | null;
|
|
192
|
+
"employee_count": number | null;
|
|
193
|
+
"annual_revenue": number | null;
|
|
194
|
+
"phone": string | null;
|
|
195
|
+
"email": string | null;
|
|
196
|
+
"website": string | null;
|
|
197
|
+
"address": JsonValue;
|
|
198
|
+
"custom_data": JsonValue;
|
|
291
199
|
"version": number;
|
|
292
200
|
"created_by": string;
|
|
293
201
|
"created_at": string;
|
|
@@ -297,19 +205,19 @@ export type ApiCreateCompanyPostResponse = import("./types.js").CrmApiResponse<A
|
|
|
297
205
|
/** Backend response type: Company. */
|
|
298
206
|
export interface ApiCompanyGetResponseData extends JsonObject {
|
|
299
207
|
"id": string;
|
|
300
|
-
"owner_user_id"
|
|
301
|
-
"team_id"
|
|
208
|
+
"owner_user_id": string | null;
|
|
209
|
+
"team_id": string | null;
|
|
302
210
|
"name": string;
|
|
303
|
-
"legal_name"
|
|
304
|
-
"domain"
|
|
305
|
-
"industry"
|
|
306
|
-
"employee_count"
|
|
307
|
-
"annual_revenue"
|
|
308
|
-
"phone"
|
|
309
|
-
"email"
|
|
310
|
-
"website"
|
|
311
|
-
"address":
|
|
312
|
-
"custom_data":
|
|
211
|
+
"legal_name": string | null;
|
|
212
|
+
"domain": string | null;
|
|
213
|
+
"industry": string | null;
|
|
214
|
+
"employee_count": number | null;
|
|
215
|
+
"annual_revenue": number | null;
|
|
216
|
+
"phone": string | null;
|
|
217
|
+
"email": string | null;
|
|
218
|
+
"website": string | null;
|
|
219
|
+
"address": JsonValue;
|
|
220
|
+
"custom_data": JsonValue;
|
|
313
221
|
"version": number;
|
|
314
222
|
"created_by": string;
|
|
315
223
|
"created_at": string;
|
|
@@ -332,19 +240,19 @@ export interface ApiUpdateCompanyPatchInput extends JsonObject {
|
|
|
332
240
|
/** Backend response type: Company. */
|
|
333
241
|
export interface ApiUpdateCompanyPatchResponseData extends JsonObject {
|
|
334
242
|
"id": string;
|
|
335
|
-
"owner_user_id"
|
|
336
|
-
"team_id"
|
|
243
|
+
"owner_user_id": string | null;
|
|
244
|
+
"team_id": string | null;
|
|
337
245
|
"name": string;
|
|
338
|
-
"legal_name"
|
|
339
|
-
"domain"
|
|
340
|
-
"industry"
|
|
341
|
-
"employee_count"
|
|
342
|
-
"annual_revenue"
|
|
343
|
-
"phone"
|
|
344
|
-
"email"
|
|
345
|
-
"website"
|
|
346
|
-
"address":
|
|
347
|
-
"custom_data":
|
|
246
|
+
"legal_name": string | null;
|
|
247
|
+
"domain": string | null;
|
|
248
|
+
"industry": string | null;
|
|
249
|
+
"employee_count": number | null;
|
|
250
|
+
"annual_revenue": number | null;
|
|
251
|
+
"phone": string | null;
|
|
252
|
+
"email": string | null;
|
|
253
|
+
"website": string | null;
|
|
254
|
+
"address": JsonValue;
|
|
255
|
+
"custom_data": JsonValue;
|
|
348
256
|
"version": number;
|
|
349
257
|
"created_by": string;
|
|
350
258
|
"created_at": string;
|
|
@@ -352,21 +260,7 @@ export interface ApiUpdateCompanyPatchResponseData extends JsonObject {
|
|
|
352
260
|
}
|
|
353
261
|
export type ApiUpdateCompanyPatchResponse = import("./types.js").CrmApiResponse<ApiUpdateCompanyPatchResponseData>;
|
|
354
262
|
/** Backend query type: ListQuery. */
|
|
355
|
-
export
|
|
356
|
-
"cursor"?: string | null;
|
|
357
|
-
"limit"?: number | null;
|
|
358
|
-
"q"?: string | null;
|
|
359
|
-
"pipeline_id"?: string | null;
|
|
360
|
-
"stage_id"?: string | null;
|
|
361
|
-
"team_id"?: string | null;
|
|
362
|
-
"owner_user_id"?: string | null;
|
|
363
|
-
"status"?: string | null;
|
|
364
|
-
"statuses"?: string | null;
|
|
365
|
-
"profile_id"?: string | null;
|
|
366
|
-
"active_from"?: string | null;
|
|
367
|
-
"active_to"?: string | null;
|
|
368
|
-
"sort"?: string | null;
|
|
369
|
-
}
|
|
263
|
+
export type ApiContactsGetQuery = import("./contracts.types.js").CrmSearchQuery;
|
|
370
264
|
/** Backend response type: ListData<Contact>. */
|
|
371
265
|
export type ApiContactsGetResponse = import("./types.js").CrmContactListResponse;
|
|
372
266
|
/** Backend request type: CreateContact. */
|
|
@@ -381,25 +275,25 @@ export interface ApiCreateContactPostInput extends JsonObject {
|
|
|
381
275
|
"owner_user_id"?: string | null;
|
|
382
276
|
"team_id"?: string | null;
|
|
383
277
|
"profile_id"?: string | null;
|
|
384
|
-
"consent"?:
|
|
385
|
-
"custom_data"?:
|
|
278
|
+
"consent"?: JsonValue;
|
|
279
|
+
"custom_data"?: JsonValue;
|
|
386
280
|
}
|
|
387
281
|
/** Backend response type: Contact. */
|
|
388
282
|
export interface ApiCreateContactPostResponseData extends JsonObject {
|
|
389
283
|
"id": string;
|
|
390
|
-
"company_id"
|
|
391
|
-
"owner_user_id"
|
|
392
|
-
"team_id"
|
|
393
|
-
"profile_id"
|
|
284
|
+
"company_id": string | null;
|
|
285
|
+
"owner_user_id": string | null;
|
|
286
|
+
"team_id": string | null;
|
|
287
|
+
"profile_id": string | null;
|
|
394
288
|
"first_name": string;
|
|
395
|
-
"last_name"
|
|
396
|
-
"job_title"
|
|
397
|
-
"email"
|
|
398
|
-
"phone"
|
|
399
|
-
"preferred_channel"
|
|
289
|
+
"last_name": string | null;
|
|
290
|
+
"job_title": string | null;
|
|
291
|
+
"email": string | null;
|
|
292
|
+
"phone": string | null;
|
|
293
|
+
"preferred_channel": string | null;
|
|
400
294
|
"lifecycle_status": string;
|
|
401
|
-
"consent":
|
|
402
|
-
"custom_data":
|
|
295
|
+
"consent": JsonValue;
|
|
296
|
+
"custom_data": JsonValue;
|
|
403
297
|
"version": number;
|
|
404
298
|
"created_by": string;
|
|
405
299
|
"created_at": string;
|
|
@@ -409,19 +303,19 @@ export type ApiCreateContactPostResponse = import("./types.js").CrmApiResponse<A
|
|
|
409
303
|
/** Backend response type: Contact. */
|
|
410
304
|
export interface ApiContactGetResponseData extends JsonObject {
|
|
411
305
|
"id": string;
|
|
412
|
-
"company_id"
|
|
413
|
-
"owner_user_id"
|
|
414
|
-
"team_id"
|
|
415
|
-
"profile_id"
|
|
306
|
+
"company_id": string | null;
|
|
307
|
+
"owner_user_id": string | null;
|
|
308
|
+
"team_id": string | null;
|
|
309
|
+
"profile_id": string | null;
|
|
416
310
|
"first_name": string;
|
|
417
|
-
"last_name"
|
|
418
|
-
"job_title"
|
|
419
|
-
"email"
|
|
420
|
-
"phone"
|
|
421
|
-
"preferred_channel"
|
|
311
|
+
"last_name": string | null;
|
|
312
|
+
"job_title": string | null;
|
|
313
|
+
"email": string | null;
|
|
314
|
+
"phone": string | null;
|
|
315
|
+
"preferred_channel": string | null;
|
|
422
316
|
"lifecycle_status": string;
|
|
423
|
-
"consent":
|
|
424
|
-
"custom_data":
|
|
317
|
+
"consent": JsonValue;
|
|
318
|
+
"custom_data": JsonValue;
|
|
425
319
|
"version": number;
|
|
426
320
|
"created_by": string;
|
|
427
321
|
"created_at": string;
|
|
@@ -429,32 +323,23 @@ export interface ApiContactGetResponseData extends JsonObject {
|
|
|
429
323
|
}
|
|
430
324
|
export type ApiContactGetResponse = import("./types.js").CrmApiResponse<ApiContactGetResponseData>;
|
|
431
325
|
/** Backend request type: UpdateContact. */
|
|
432
|
-
export
|
|
433
|
-
"version": number;
|
|
434
|
-
"first_name"?: string | null;
|
|
435
|
-
"last_name"?: string | null;
|
|
436
|
-
"job_title"?: string | null;
|
|
437
|
-
"email"?: string | null;
|
|
438
|
-
"phone"?: string | null;
|
|
439
|
-
"preferred_channel"?: string | null;
|
|
440
|
-
"lifecycle_status"?: string | null;
|
|
441
|
-
}
|
|
326
|
+
export type ApiUpdateContactPatchInput = import("./contracts.types.js").CrmContactUpdateInput;
|
|
442
327
|
/** Backend response type: Contact. */
|
|
443
328
|
export interface ApiUpdateContactPatchResponseData extends JsonObject {
|
|
444
329
|
"id": string;
|
|
445
|
-
"company_id"
|
|
446
|
-
"owner_user_id"
|
|
447
|
-
"team_id"
|
|
448
|
-
"profile_id"
|
|
330
|
+
"company_id": string | null;
|
|
331
|
+
"owner_user_id": string | null;
|
|
332
|
+
"team_id": string | null;
|
|
333
|
+
"profile_id": string | null;
|
|
449
334
|
"first_name": string;
|
|
450
|
-
"last_name"
|
|
451
|
-
"job_title"
|
|
452
|
-
"email"
|
|
453
|
-
"phone"
|
|
454
|
-
"preferred_channel"
|
|
335
|
+
"last_name": string | null;
|
|
336
|
+
"job_title": string | null;
|
|
337
|
+
"email": string | null;
|
|
338
|
+
"phone": string | null;
|
|
339
|
+
"preferred_channel": string | null;
|
|
455
340
|
"lifecycle_status": string;
|
|
456
|
-
"consent":
|
|
457
|
-
"custom_data":
|
|
341
|
+
"consent": JsonValue;
|
|
342
|
+
"custom_data": JsonValue;
|
|
458
343
|
"version": number;
|
|
459
344
|
"created_by": string;
|
|
460
345
|
"created_at": string;
|
|
@@ -469,29 +354,15 @@ export interface ApiContextGetResponseData extends JsonObject {
|
|
|
469
354
|
"timezone": string;
|
|
470
355
|
"currency": string;
|
|
471
356
|
"ai_mode": string;
|
|
472
|
-
"project_id"
|
|
473
|
-
"project_owner_user_id"
|
|
357
|
+
"project_id": string | null;
|
|
358
|
+
"project_owner_user_id": string | null;
|
|
474
359
|
"agentic_enabled": boolean;
|
|
475
|
-
"settings":
|
|
360
|
+
"settings": JsonValue;
|
|
476
361
|
"version": number;
|
|
477
362
|
}
|
|
478
363
|
export type ApiContextGetResponse = import("./types.js").CrmApiResponse<ApiContextGetResponseData>;
|
|
479
364
|
/** Backend query type: ListQuery. */
|
|
480
|
-
export
|
|
481
|
-
"cursor"?: string | null;
|
|
482
|
-
"limit"?: number | null;
|
|
483
|
-
"q"?: string | null;
|
|
484
|
-
"pipeline_id"?: string | null;
|
|
485
|
-
"stage_id"?: string | null;
|
|
486
|
-
"team_id"?: string | null;
|
|
487
|
-
"owner_user_id"?: string | null;
|
|
488
|
-
"status"?: string | null;
|
|
489
|
-
"statuses"?: string | null;
|
|
490
|
-
"profile_id"?: string | null;
|
|
491
|
-
"active_from"?: string | null;
|
|
492
|
-
"active_to"?: string | null;
|
|
493
|
-
"sort"?: string | null;
|
|
494
|
-
}
|
|
365
|
+
export type ApiDealsGetQuery = import("./contracts.types.js").CrmDealListQuery;
|
|
495
366
|
/** Backend response type: ListData<Deal>. */
|
|
496
367
|
export type ApiDealsGetResponse = import("./types.js").CrmDealListResponse;
|
|
497
368
|
/** Backend request type: CreateDeal. */
|
|
@@ -510,29 +381,29 @@ export interface ApiCreateDealPostInput extends JsonObject {
|
|
|
510
381
|
"expected_close_date"?: string | null;
|
|
511
382
|
"recurring_amount"?: number | null;
|
|
512
383
|
"recurring_interval"?: string | null;
|
|
513
|
-
"custom_data"?:
|
|
384
|
+
"custom_data"?: JsonValue;
|
|
514
385
|
}
|
|
515
386
|
/** Backend response type: Deal. */
|
|
516
387
|
export interface ApiCreateDealPostResponseData extends JsonObject {
|
|
517
388
|
"id": string;
|
|
518
389
|
"pipeline_id": string;
|
|
519
390
|
"stage_id": string;
|
|
520
|
-
"lead_id"
|
|
521
|
-
"company_id"
|
|
522
|
-
"primary_contact_id"
|
|
523
|
-
"owner_user_id"
|
|
524
|
-
"team_id"
|
|
391
|
+
"lead_id": string | null;
|
|
392
|
+
"company_id": string | null;
|
|
393
|
+
"primary_contact_id": string | null;
|
|
394
|
+
"owner_user_id": string | null;
|
|
395
|
+
"team_id": string | null;
|
|
525
396
|
"name": string;
|
|
526
397
|
"amount": number;
|
|
527
398
|
"currency": string;
|
|
528
399
|
"probability": number;
|
|
529
|
-
"expected_close_date"
|
|
530
|
-
"closed_at"
|
|
400
|
+
"expected_close_date": string | null;
|
|
401
|
+
"closed_at": string | null;
|
|
531
402
|
"status": string;
|
|
532
|
-
"loss_reason"
|
|
533
|
-
"recurring_amount"
|
|
534
|
-
"recurring_interval"
|
|
535
|
-
"custom_data":
|
|
403
|
+
"loss_reason": string | null;
|
|
404
|
+
"recurring_amount": number | null;
|
|
405
|
+
"recurring_interval": string | null;
|
|
406
|
+
"custom_data": JsonValue;
|
|
536
407
|
"version": number;
|
|
537
408
|
"created_by": string;
|
|
538
409
|
"created_at": string;
|
|
@@ -544,22 +415,22 @@ export interface ApiDealGetResponseData extends JsonObject {
|
|
|
544
415
|
"id": string;
|
|
545
416
|
"pipeline_id": string;
|
|
546
417
|
"stage_id": string;
|
|
547
|
-
"lead_id"
|
|
548
|
-
"company_id"
|
|
549
|
-
"primary_contact_id"
|
|
550
|
-
"owner_user_id"
|
|
551
|
-
"team_id"
|
|
418
|
+
"lead_id": string | null;
|
|
419
|
+
"company_id": string | null;
|
|
420
|
+
"primary_contact_id": string | null;
|
|
421
|
+
"owner_user_id": string | null;
|
|
422
|
+
"team_id": string | null;
|
|
552
423
|
"name": string;
|
|
553
424
|
"amount": number;
|
|
554
425
|
"currency": string;
|
|
555
426
|
"probability": number;
|
|
556
|
-
"expected_close_date"
|
|
557
|
-
"closed_at"
|
|
427
|
+
"expected_close_date": string | null;
|
|
428
|
+
"closed_at": string | null;
|
|
558
429
|
"status": string;
|
|
559
|
-
"loss_reason"
|
|
560
|
-
"recurring_amount"
|
|
561
|
-
"recurring_interval"
|
|
562
|
-
"custom_data":
|
|
430
|
+
"loss_reason": string | null;
|
|
431
|
+
"recurring_amount": number | null;
|
|
432
|
+
"recurring_interval": string | null;
|
|
433
|
+
"custom_data": JsonValue;
|
|
563
434
|
"version": number;
|
|
564
435
|
"created_by": string;
|
|
565
436
|
"created_at": string;
|
|
@@ -582,22 +453,22 @@ export interface ApiUpdateDealPatchResponseData extends JsonObject {
|
|
|
582
453
|
"id": string;
|
|
583
454
|
"pipeline_id": string;
|
|
584
455
|
"stage_id": string;
|
|
585
|
-
"lead_id"
|
|
586
|
-
"company_id"
|
|
587
|
-
"primary_contact_id"
|
|
588
|
-
"owner_user_id"
|
|
589
|
-
"team_id"
|
|
456
|
+
"lead_id": string | null;
|
|
457
|
+
"company_id": string | null;
|
|
458
|
+
"primary_contact_id": string | null;
|
|
459
|
+
"owner_user_id": string | null;
|
|
460
|
+
"team_id": string | null;
|
|
590
461
|
"name": string;
|
|
591
462
|
"amount": number;
|
|
592
463
|
"currency": string;
|
|
593
464
|
"probability": number;
|
|
594
|
-
"expected_close_date"
|
|
595
|
-
"closed_at"
|
|
465
|
+
"expected_close_date": string | null;
|
|
466
|
+
"closed_at": string | null;
|
|
596
467
|
"status": string;
|
|
597
|
-
"loss_reason"
|
|
598
|
-
"recurring_amount"
|
|
599
|
-
"recurring_interval"
|
|
600
|
-
"custom_data":
|
|
468
|
+
"loss_reason": string | null;
|
|
469
|
+
"recurring_amount": number | null;
|
|
470
|
+
"recurring_interval": string | null;
|
|
471
|
+
"custom_data": JsonValue;
|
|
601
472
|
"version": number;
|
|
602
473
|
"created_by": string;
|
|
603
474
|
"created_at": string;
|
|
@@ -615,22 +486,22 @@ export interface ApiAssignDealPatchResponseData extends JsonObject {
|
|
|
615
486
|
"id": string;
|
|
616
487
|
"pipeline_id": string;
|
|
617
488
|
"stage_id": string;
|
|
618
|
-
"lead_id"
|
|
619
|
-
"company_id"
|
|
620
|
-
"primary_contact_id"
|
|
621
|
-
"owner_user_id"
|
|
622
|
-
"team_id"
|
|
489
|
+
"lead_id": string | null;
|
|
490
|
+
"company_id": string | null;
|
|
491
|
+
"primary_contact_id": string | null;
|
|
492
|
+
"owner_user_id": string | null;
|
|
493
|
+
"team_id": string | null;
|
|
623
494
|
"name": string;
|
|
624
495
|
"amount": number;
|
|
625
496
|
"currency": string;
|
|
626
497
|
"probability": number;
|
|
627
|
-
"expected_close_date"
|
|
628
|
-
"closed_at"
|
|
498
|
+
"expected_close_date": string | null;
|
|
499
|
+
"closed_at": string | null;
|
|
629
500
|
"status": string;
|
|
630
|
-
"loss_reason"
|
|
631
|
-
"recurring_amount"
|
|
632
|
-
"recurring_interval"
|
|
633
|
-
"custom_data":
|
|
501
|
+
"loss_reason": string | null;
|
|
502
|
+
"recurring_amount": number | null;
|
|
503
|
+
"recurring_interval": string | null;
|
|
504
|
+
"custom_data": JsonValue;
|
|
634
505
|
"version": number;
|
|
635
506
|
"created_by": string;
|
|
636
507
|
"created_at": string;
|
|
@@ -648,22 +519,22 @@ export interface ApiMoveDealStagePatchResponseData extends JsonObject {
|
|
|
648
519
|
"id": string;
|
|
649
520
|
"pipeline_id": string;
|
|
650
521
|
"stage_id": string;
|
|
651
|
-
"lead_id"
|
|
652
|
-
"company_id"
|
|
653
|
-
"primary_contact_id"
|
|
654
|
-
"owner_user_id"
|
|
655
|
-
"team_id"
|
|
522
|
+
"lead_id": string | null;
|
|
523
|
+
"company_id": string | null;
|
|
524
|
+
"primary_contact_id": string | null;
|
|
525
|
+
"owner_user_id": string | null;
|
|
526
|
+
"team_id": string | null;
|
|
656
527
|
"name": string;
|
|
657
528
|
"amount": number;
|
|
658
529
|
"currency": string;
|
|
659
530
|
"probability": number;
|
|
660
|
-
"expected_close_date"
|
|
661
|
-
"closed_at"
|
|
531
|
+
"expected_close_date": string | null;
|
|
532
|
+
"closed_at": string | null;
|
|
662
533
|
"status": string;
|
|
663
|
-
"loss_reason"
|
|
664
|
-
"recurring_amount"
|
|
665
|
-
"recurring_interval"
|
|
666
|
-
"custom_data":
|
|
534
|
+
"loss_reason": string | null;
|
|
535
|
+
"recurring_amount": number | null;
|
|
536
|
+
"recurring_interval": string | null;
|
|
537
|
+
"custom_data": JsonValue;
|
|
667
538
|
"version": number;
|
|
668
539
|
"created_by": string;
|
|
669
540
|
"created_at": string;
|
|
@@ -671,29 +542,11 @@ export interface ApiMoveDealStagePatchResponseData extends JsonObject {
|
|
|
671
542
|
}
|
|
672
543
|
export type ApiMoveDealStagePatchResponse = import("./types.js").CrmApiResponse<ApiMoveDealStagePatchResponseData>;
|
|
673
544
|
/** Backend query type: FindOfficeLeadQuery. */
|
|
674
|
-
export
|
|
675
|
-
"profile_id": string;
|
|
676
|
-
"foreign_key": string;
|
|
677
|
-
"flags"?: string;
|
|
678
|
-
}
|
|
545
|
+
export type ApiFindOfficeLeadGetQuery = import("./contracts.types.js").CrmOfficeLeadQuery;
|
|
679
546
|
/** Backend response type: Option<entity::lead::Model>. */
|
|
680
|
-
export type ApiFindOfficeLeadGetResponse = import("./types.js").
|
|
547
|
+
export type ApiFindOfficeLeadGetResponse = import("./types.js").CrmOfficeLeadResponse;
|
|
681
548
|
/** Backend query type: ListQuery. */
|
|
682
|
-
export
|
|
683
|
-
"cursor"?: string | null;
|
|
684
|
-
"limit"?: number | null;
|
|
685
|
-
"q"?: string | null;
|
|
686
|
-
"pipeline_id"?: string | null;
|
|
687
|
-
"stage_id"?: string | null;
|
|
688
|
-
"team_id"?: string | null;
|
|
689
|
-
"owner_user_id"?: string | null;
|
|
690
|
-
"status"?: string | null;
|
|
691
|
-
"statuses"?: string | null;
|
|
692
|
-
"profile_id"?: string | null;
|
|
693
|
-
"active_from"?: string | null;
|
|
694
|
-
"active_to"?: string | null;
|
|
695
|
-
"sort"?: string | null;
|
|
696
|
-
}
|
|
549
|
+
export type ApiLeadsGetQuery = import("./contracts.types.js").CrmLeadListQuery;
|
|
697
550
|
/** Backend response type: ListData<Lead>. */
|
|
698
551
|
export type ApiLeadsGetResponse = import("./types.js").CrmLeadListResponse;
|
|
699
552
|
/** Backend request type: CreateLead. */
|
|
@@ -719,37 +572,37 @@ export interface ApiCreateLeadPostInput extends JsonObject {
|
|
|
719
572
|
"estimated_value"?: number | null;
|
|
720
573
|
"currency"?: string | null;
|
|
721
574
|
"next_activity_at"?: string | null;
|
|
722
|
-
"custom_data"?:
|
|
575
|
+
"custom_data"?: JsonValue;
|
|
723
576
|
}
|
|
724
577
|
/** Backend response type: Lead. */
|
|
725
578
|
export interface ApiCreateLeadPostResponseData extends JsonObject {
|
|
726
579
|
"id": string;
|
|
727
580
|
"pipeline_id": string;
|
|
728
581
|
"stage_id": string;
|
|
729
|
-
"company_id"
|
|
730
|
-
"contact_id"
|
|
731
|
-
"source_id"
|
|
732
|
-
"campaign_id"
|
|
733
|
-
"owner_user_id"
|
|
734
|
-
"team_id"
|
|
735
|
-
"profile_id"
|
|
582
|
+
"company_id": string | null;
|
|
583
|
+
"contact_id": string | null;
|
|
584
|
+
"source_id": string | null;
|
|
585
|
+
"campaign_id": string | null;
|
|
586
|
+
"owner_user_id": string | null;
|
|
587
|
+
"team_id": string | null;
|
|
588
|
+
"profile_id": string | null;
|
|
736
589
|
"title": string;
|
|
737
|
-
"first_name"
|
|
738
|
-
"last_name"
|
|
739
|
-
"company_name"
|
|
740
|
-
"email"
|
|
741
|
-
"phone"
|
|
742
|
-
"segment"
|
|
743
|
-
"offer"
|
|
590
|
+
"first_name": string | null;
|
|
591
|
+
"last_name": string | null;
|
|
592
|
+
"company_name": string | null;
|
|
593
|
+
"email": string | null;
|
|
594
|
+
"phone": string | null;
|
|
595
|
+
"segment": string | null;
|
|
596
|
+
"offer": string | null;
|
|
744
597
|
"status": string;
|
|
745
598
|
"score": number;
|
|
746
|
-
"estimated_value"
|
|
599
|
+
"estimated_value": number | null;
|
|
747
600
|
"currency": string;
|
|
748
|
-
"next_activity_at"
|
|
749
|
-
"converted_at"
|
|
750
|
-
"converted_deal_id"
|
|
751
|
-
"loss_reason"
|
|
752
|
-
"custom_data":
|
|
601
|
+
"next_activity_at": string | null;
|
|
602
|
+
"converted_at": string | null;
|
|
603
|
+
"converted_deal_id": string | null;
|
|
604
|
+
"loss_reason": string | null;
|
|
605
|
+
"custom_data": JsonValue;
|
|
753
606
|
"version": number;
|
|
754
607
|
"created_by": string;
|
|
755
608
|
"created_at": string;
|
|
@@ -759,98 +612,82 @@ export type ApiCreateLeadPostResponse = import("./types.js").CrmApiResponse<ApiC
|
|
|
759
612
|
/** Backend response type: LeadResponse. */
|
|
760
613
|
export interface ApiLeadGetResponseDataProfile extends JsonObject {
|
|
761
614
|
"id": string;
|
|
762
|
-
"user_id"
|
|
763
|
-
"email"
|
|
764
|
-
"phone"
|
|
765
|
-
"national_code"
|
|
766
|
-
"first_name"
|
|
767
|
-
"last_name"
|
|
768
|
-
"status"
|
|
769
|
-
"employee_type"
|
|
770
|
-
"avatar"
|
|
615
|
+
"user_id": string | null;
|
|
616
|
+
"email": string | null;
|
|
617
|
+
"phone": string | null;
|
|
618
|
+
"national_code": string | null;
|
|
619
|
+
"first_name": JsonValue | null;
|
|
620
|
+
"last_name": JsonValue | null;
|
|
621
|
+
"status": string | null;
|
|
622
|
+
"employee_type": string | null;
|
|
623
|
+
"avatar": string | null;
|
|
771
624
|
}
|
|
772
625
|
export interface ApiLeadGetResponseData extends JsonObject {
|
|
773
626
|
"id": string;
|
|
774
627
|
"pipeline_id": string;
|
|
775
628
|
"stage_id": string;
|
|
776
|
-
"company_id"
|
|
777
|
-
"contact_id"
|
|
778
|
-
"source_id"
|
|
779
|
-
"campaign_id"
|
|
780
|
-
"owner_user_id"
|
|
781
|
-
"team_id"
|
|
782
|
-
"profile_id"
|
|
629
|
+
"company_id": string | null;
|
|
630
|
+
"contact_id": string | null;
|
|
631
|
+
"source_id": string | null;
|
|
632
|
+
"campaign_id": string | null;
|
|
633
|
+
"owner_user_id": string | null;
|
|
634
|
+
"team_id": string | null;
|
|
635
|
+
"profile_id": string | null;
|
|
783
636
|
"title": string;
|
|
784
|
-
"first_name"
|
|
785
|
-
"last_name"
|
|
786
|
-
"company_name"
|
|
787
|
-
"email"
|
|
788
|
-
"phone"
|
|
789
|
-
"segment"
|
|
790
|
-
"offer"
|
|
637
|
+
"first_name": string | null;
|
|
638
|
+
"last_name": string | null;
|
|
639
|
+
"company_name": string | null;
|
|
640
|
+
"email": string | null;
|
|
641
|
+
"phone": string | null;
|
|
642
|
+
"segment": string | null;
|
|
643
|
+
"offer": string | null;
|
|
791
644
|
"status": string;
|
|
792
645
|
"score": number;
|
|
793
|
-
"estimated_value"
|
|
646
|
+
"estimated_value": number | null;
|
|
794
647
|
"currency": string;
|
|
795
|
-
"next_activity_at"
|
|
796
|
-
"converted_at"
|
|
797
|
-
"converted_deal_id"
|
|
798
|
-
"loss_reason"
|
|
799
|
-
"custom_data":
|
|
648
|
+
"next_activity_at": string | null;
|
|
649
|
+
"converted_at": string | null;
|
|
650
|
+
"converted_deal_id": string | null;
|
|
651
|
+
"loss_reason": string | null;
|
|
652
|
+
"custom_data": JsonValue;
|
|
800
653
|
"version": number;
|
|
801
654
|
"created_by": string;
|
|
802
655
|
"created_at": string;
|
|
803
656
|
"updated_at": string;
|
|
804
|
-
"profile"
|
|
657
|
+
"profile": ApiLeadGetResponseDataProfile | null;
|
|
805
658
|
}
|
|
806
659
|
export type ApiLeadGetResponse = import("./types.js").CrmApiResponse<ApiLeadGetResponseData>;
|
|
807
660
|
/** Backend request type: UpdateLead. */
|
|
808
|
-
export
|
|
809
|
-
"version": number;
|
|
810
|
-
"title"?: string | null;
|
|
811
|
-
"first_name"?: string | null;
|
|
812
|
-
"last_name"?: string | null;
|
|
813
|
-
"company_name"?: string | null;
|
|
814
|
-
"email"?: string | null;
|
|
815
|
-
"phone"?: string | null;
|
|
816
|
-
"segment"?: string | null;
|
|
817
|
-
"offer"?: string | null;
|
|
818
|
-
"status"?: string | null;
|
|
819
|
-
"score"?: number | null;
|
|
820
|
-
"estimated_value"?: number | null;
|
|
821
|
-
"currency"?: string | null;
|
|
822
|
-
"next_activity_at"?: string | null;
|
|
823
|
-
"profile_id"?: string | null;
|
|
824
|
-
}
|
|
661
|
+
export type ApiUpdateLeadPatchInput = import("./contracts.types.js").CrmLeadUpdateInput;
|
|
825
662
|
/** Backend response type: Lead. */
|
|
826
663
|
export interface ApiUpdateLeadPatchResponseData extends JsonObject {
|
|
827
664
|
"id": string;
|
|
828
665
|
"pipeline_id": string;
|
|
829
666
|
"stage_id": string;
|
|
830
|
-
"company_id"
|
|
831
|
-
"contact_id"
|
|
832
|
-
"source_id"
|
|
833
|
-
"campaign_id"
|
|
834
|
-
"owner_user_id"
|
|
835
|
-
"team_id"
|
|
836
|
-
"profile_id"
|
|
667
|
+
"company_id": string | null;
|
|
668
|
+
"contact_id": string | null;
|
|
669
|
+
"source_id": string | null;
|
|
670
|
+
"campaign_id": string | null;
|
|
671
|
+
"owner_user_id": string | null;
|
|
672
|
+
"team_id": string | null;
|
|
673
|
+
"profile_id": string | null;
|
|
837
674
|
"title": string;
|
|
838
|
-
"first_name"
|
|
839
|
-
"last_name"
|
|
840
|
-
"company_name"
|
|
841
|
-
"email"
|
|
842
|
-
"phone"
|
|
843
|
-
"segment"
|
|
844
|
-
"offer"
|
|
675
|
+
"first_name": string | null;
|
|
676
|
+
"last_name": string | null;
|
|
677
|
+
"company_name": string | null;
|
|
678
|
+
"email": string | null;
|
|
679
|
+
"phone": string | null;
|
|
680
|
+
"segment": string | null;
|
|
681
|
+
"offer": string | null;
|
|
845
682
|
"status": string;
|
|
846
683
|
"score": number;
|
|
847
|
-
"estimated_value"
|
|
684
|
+
"estimated_value": number | null;
|
|
848
685
|
"currency": string;
|
|
849
|
-
"next_activity_at"
|
|
850
|
-
"converted_at"
|
|
851
|
-
"converted_deal_id"
|
|
852
|
-
"loss_reason"
|
|
853
|
-
"custom_data":
|
|
686
|
+
"next_activity_at": string | null;
|
|
687
|
+
"converted_at": string | null;
|
|
688
|
+
"converted_deal_id": string | null;
|
|
689
|
+
"loss_reason": string | null;
|
|
690
|
+
"custom_data": JsonValue;
|
|
854
691
|
"version": number;
|
|
855
692
|
"created_by": string;
|
|
856
693
|
"created_at": string;
|
|
@@ -868,30 +705,30 @@ export interface ApiAssignLeadPatchResponseData extends JsonObject {
|
|
|
868
705
|
"id": string;
|
|
869
706
|
"pipeline_id": string;
|
|
870
707
|
"stage_id": string;
|
|
871
|
-
"company_id"
|
|
872
|
-
"contact_id"
|
|
873
|
-
"source_id"
|
|
874
|
-
"campaign_id"
|
|
875
|
-
"owner_user_id"
|
|
876
|
-
"team_id"
|
|
877
|
-
"profile_id"
|
|
708
|
+
"company_id": string | null;
|
|
709
|
+
"contact_id": string | null;
|
|
710
|
+
"source_id": string | null;
|
|
711
|
+
"campaign_id": string | null;
|
|
712
|
+
"owner_user_id": string | null;
|
|
713
|
+
"team_id": string | null;
|
|
714
|
+
"profile_id": string | null;
|
|
878
715
|
"title": string;
|
|
879
|
-
"first_name"
|
|
880
|
-
"last_name"
|
|
881
|
-
"company_name"
|
|
882
|
-
"email"
|
|
883
|
-
"phone"
|
|
884
|
-
"segment"
|
|
885
|
-
"offer"
|
|
716
|
+
"first_name": string | null;
|
|
717
|
+
"last_name": string | null;
|
|
718
|
+
"company_name": string | null;
|
|
719
|
+
"email": string | null;
|
|
720
|
+
"phone": string | null;
|
|
721
|
+
"segment": string | null;
|
|
722
|
+
"offer": string | null;
|
|
886
723
|
"status": string;
|
|
887
724
|
"score": number;
|
|
888
|
-
"estimated_value"
|
|
725
|
+
"estimated_value": number | null;
|
|
889
726
|
"currency": string;
|
|
890
|
-
"next_activity_at"
|
|
891
|
-
"converted_at"
|
|
892
|
-
"converted_deal_id"
|
|
893
|
-
"loss_reason"
|
|
894
|
-
"custom_data":
|
|
727
|
+
"next_activity_at": string | null;
|
|
728
|
+
"converted_at": string | null;
|
|
729
|
+
"converted_deal_id": string | null;
|
|
730
|
+
"loss_reason": string | null;
|
|
731
|
+
"custom_data": JsonValue;
|
|
895
732
|
"version": number;
|
|
896
733
|
"created_by": string;
|
|
897
734
|
"created_at": string;
|
|
@@ -901,27 +738,27 @@ export type ApiAssignLeadPatchResponse = import("./types.js").CrmApiResponse<Api
|
|
|
901
738
|
/** Backend response type: Vec<LeadHistoryEvent>. */
|
|
902
739
|
export interface ApiLeadHistoryGetResponseItemProfile extends JsonObject {
|
|
903
740
|
"id": string;
|
|
904
|
-
"user_id"
|
|
905
|
-
"email"
|
|
906
|
-
"phone"
|
|
907
|
-
"national_code"
|
|
908
|
-
"first_name"
|
|
909
|
-
"last_name"
|
|
910
|
-
"status"
|
|
911
|
-
"employee_type"
|
|
912
|
-
"avatar"
|
|
741
|
+
"user_id": string | null;
|
|
742
|
+
"email": string | null;
|
|
743
|
+
"phone": string | null;
|
|
744
|
+
"national_code": string | null;
|
|
745
|
+
"first_name": JsonValue | null;
|
|
746
|
+
"last_name": JsonValue | null;
|
|
747
|
+
"status": string | null;
|
|
748
|
+
"employee_type": string | null;
|
|
749
|
+
"avatar": string | null;
|
|
913
750
|
}
|
|
914
751
|
export interface ApiLeadHistoryGetResponseItem extends JsonObject {
|
|
915
752
|
"id": string;
|
|
916
753
|
"event_type": string;
|
|
917
|
-
"actor_user_id"
|
|
918
|
-
"profile"
|
|
919
|
-
"data":
|
|
754
|
+
"actor_user_id": string | null;
|
|
755
|
+
"profile": ApiLeadHistoryGetResponseItemProfile | null;
|
|
756
|
+
"data": JsonValue;
|
|
920
757
|
"occurred_at": string;
|
|
921
758
|
}
|
|
922
759
|
export type ApiLeadHistoryGetResponse = import("./types.js").CrmApiResponse<ApiLeadHistoryGetResponseItem[]>;
|
|
923
760
|
/** Backend response type: serde_json::Value. */
|
|
924
|
-
export type ApiDeleteLeadRemindersDeleteResponse = import("./types.js").
|
|
761
|
+
export type ApiDeleteLeadRemindersDeleteResponse = import("./types.js").CrmLeadReminderDeletionResponse;
|
|
925
762
|
/** Backend response type: DeletionResult. */
|
|
926
763
|
export interface ApiRemoveLeadFromSosDeleteResponseData extends JsonObject {
|
|
927
764
|
"id": string;
|
|
@@ -947,30 +784,30 @@ export interface ApiMoveLeadStagePatchResponseData extends JsonObject {
|
|
|
947
784
|
"id": string;
|
|
948
785
|
"pipeline_id": string;
|
|
949
786
|
"stage_id": string;
|
|
950
|
-
"company_id"
|
|
951
|
-
"contact_id"
|
|
952
|
-
"source_id"
|
|
953
|
-
"campaign_id"
|
|
954
|
-
"owner_user_id"
|
|
955
|
-
"team_id"
|
|
956
|
-
"profile_id"
|
|
787
|
+
"company_id": string | null;
|
|
788
|
+
"contact_id": string | null;
|
|
789
|
+
"source_id": string | null;
|
|
790
|
+
"campaign_id": string | null;
|
|
791
|
+
"owner_user_id": string | null;
|
|
792
|
+
"team_id": string | null;
|
|
793
|
+
"profile_id": string | null;
|
|
957
794
|
"title": string;
|
|
958
|
-
"first_name"
|
|
959
|
-
"last_name"
|
|
960
|
-
"company_name"
|
|
961
|
-
"email"
|
|
962
|
-
"phone"
|
|
963
|
-
"segment"
|
|
964
|
-
"offer"
|
|
795
|
+
"first_name": string | null;
|
|
796
|
+
"last_name": string | null;
|
|
797
|
+
"company_name": string | null;
|
|
798
|
+
"email": string | null;
|
|
799
|
+
"phone": string | null;
|
|
800
|
+
"segment": string | null;
|
|
801
|
+
"offer": string | null;
|
|
965
802
|
"status": string;
|
|
966
803
|
"score": number;
|
|
967
|
-
"estimated_value"
|
|
804
|
+
"estimated_value": number | null;
|
|
968
805
|
"currency": string;
|
|
969
|
-
"next_activity_at"
|
|
970
|
-
"converted_at"
|
|
971
|
-
"converted_deal_id"
|
|
972
|
-
"loss_reason"
|
|
973
|
-
"custom_data":
|
|
806
|
+
"next_activity_at": string | null;
|
|
807
|
+
"converted_at": string | null;
|
|
808
|
+
"converted_deal_id": string | null;
|
|
809
|
+
"loss_reason": string | null;
|
|
810
|
+
"custom_data": JsonValue;
|
|
974
811
|
"version": number;
|
|
975
812
|
"created_by": string;
|
|
976
813
|
"created_at": string;
|
|
@@ -978,21 +815,7 @@ export interface ApiMoveLeadStagePatchResponseData extends JsonObject {
|
|
|
978
815
|
}
|
|
979
816
|
export type ApiMoveLeadStagePatchResponse = import("./types.js").CrmApiResponse<ApiMoveLeadStagePatchResponseData>;
|
|
980
817
|
/** Backend query type: ListQuery. */
|
|
981
|
-
export
|
|
982
|
-
"cursor"?: string | null;
|
|
983
|
-
"limit"?: number | null;
|
|
984
|
-
"q"?: string | null;
|
|
985
|
-
"pipeline_id"?: string | null;
|
|
986
|
-
"stage_id"?: string | null;
|
|
987
|
-
"team_id"?: string | null;
|
|
988
|
-
"owner_user_id"?: string | null;
|
|
989
|
-
"status"?: string | null;
|
|
990
|
-
"statuses"?: string | null;
|
|
991
|
-
"profile_id"?: string | null;
|
|
992
|
-
"active_from"?: string | null;
|
|
993
|
-
"active_to"?: string | null;
|
|
994
|
-
"sort"?: string | null;
|
|
995
|
-
}
|
|
818
|
+
export type ApiLightLeadsGetQuery = import("./contracts.types.js").CrmLeadListQuery;
|
|
996
819
|
/** Backend response type: ListData<Lead>. */
|
|
997
820
|
export type ApiLightLeadsGetResponse = import("./types.js").CrmLeadListResponse;
|
|
998
821
|
/** Backend response type: Vec<PipelineWithStages>. */
|
|
@@ -1005,8 +828,8 @@ export interface ApiUpdatePipelinePatchInput extends JsonObject {
|
|
|
1005
828
|
"hint"?: string | null;
|
|
1006
829
|
"daily_quota"?: number | null;
|
|
1007
830
|
"can_create_lead"?: boolean | null;
|
|
1008
|
-
"acquire_flags"?:
|
|
1009
|
-
"actions"?:
|
|
831
|
+
"acquire_flags"?: JsonValue | null;
|
|
832
|
+
"actions"?: JsonValue | null;
|
|
1010
833
|
"is_active"?: boolean | null;
|
|
1011
834
|
}
|
|
1012
835
|
/** Backend response type: Pipeline. */
|
|
@@ -1015,15 +838,15 @@ export interface ApiUpdatePipelinePatchResponseData extends JsonObject {
|
|
|
1015
838
|
"name": string;
|
|
1016
839
|
"slug": string;
|
|
1017
840
|
"entity_type": string;
|
|
1018
|
-
"team_id"
|
|
841
|
+
"team_id": string | null;
|
|
1019
842
|
"is_default": boolean;
|
|
1020
843
|
"is_active": boolean;
|
|
1021
844
|
"priority": number;
|
|
1022
|
-
"hint"
|
|
845
|
+
"hint": string | null;
|
|
1023
846
|
"daily_quota": number;
|
|
1024
847
|
"can_create_lead": boolean;
|
|
1025
|
-
"acquire_flags":
|
|
1026
|
-
"actions":
|
|
848
|
+
"acquire_flags": JsonValue;
|
|
849
|
+
"actions": JsonValue;
|
|
1027
850
|
"version": number;
|
|
1028
851
|
}
|
|
1029
852
|
export type ApiUpdatePipelinePatchResponse = import("./types.js").CrmApiResponse<ApiUpdatePipelinePatchResponseData>;
|
|
@@ -1034,13 +857,13 @@ export interface ApiReportRunGetResponseData extends JsonObject {
|
|
|
1034
857
|
"period_start": string;
|
|
1035
858
|
"period_end": string;
|
|
1036
859
|
"status": string;
|
|
1037
|
-
"deterministic_summary"
|
|
1038
|
-
"ai_job_id"
|
|
1039
|
-
"ai_interpretation"
|
|
1040
|
-
"error"
|
|
860
|
+
"deterministic_summary": JsonValue | null;
|
|
861
|
+
"ai_job_id": string | null;
|
|
862
|
+
"ai_interpretation": JsonValue | null;
|
|
863
|
+
"error": string | null;
|
|
1041
864
|
"requested_by": string;
|
|
1042
865
|
"created_at": string;
|
|
1043
|
-
"completed_at"
|
|
866
|
+
"completed_at": string | null;
|
|
1044
867
|
}
|
|
1045
868
|
export type ApiReportRunGetResponse = import("./types.js").CrmApiResponse<ApiReportRunGetResponseData>;
|
|
1046
869
|
/** Backend response type: JsonValue. */
|
|
@@ -1098,89 +921,32 @@ export interface ApiCreateSourcePostResponseData extends JsonObject {
|
|
|
1098
921
|
}
|
|
1099
922
|
export type ApiCreateSourcePostResponse = import("./types.js").CrmApiResponse<ApiCreateSourcePostResponseData>;
|
|
1100
923
|
/** Backend response type: DailyStats. */
|
|
1101
|
-
export
|
|
1102
|
-
"id": string;
|
|
1103
|
-
"name": string;
|
|
1104
|
-
"slug": string;
|
|
1105
|
-
"priority": number;
|
|
1106
|
-
"hint"?: string | null;
|
|
1107
|
-
"daily_tasks": number;
|
|
1108
|
-
"leads_count": number;
|
|
1109
|
-
}
|
|
1110
|
-
export interface ApiDailyStatsGetResponseData extends JsonObject {
|
|
1111
|
-
"workflows": ApiDailyStatsGetResponseDataWorkflows[];
|
|
1112
|
-
"total_tasks": number;
|
|
1113
|
-
"total_done_tasks": number;
|
|
1114
|
-
"extra_tasks_done": number;
|
|
1115
|
-
"all_tasks_done": boolean;
|
|
1116
|
-
}
|
|
1117
|
-
export type ApiDailyStatsGetResponse = import("./types.js").CrmApiResponse<ApiDailyStatsGetResponseData>;
|
|
924
|
+
export type ApiDailyStatsGetResponse = import("./types.js").CrmDailyStatsResponse;
|
|
1118
925
|
/** Backend response type: LeadStats. */
|
|
1119
|
-
export
|
|
1120
|
-
"id": string;
|
|
1121
|
-
"name": string;
|
|
1122
|
-
"slug": string;
|
|
1123
|
-
"priority": number;
|
|
1124
|
-
"count": number;
|
|
1125
|
-
"activeLeadCount": number;
|
|
1126
|
-
"deActiveLeadCount": number;
|
|
1127
|
-
}
|
|
1128
|
-
export interface ApiLeadStatsGetResponseData extends JsonObject {
|
|
1129
|
-
"total": number;
|
|
1130
|
-
"active": number;
|
|
1131
|
-
"inactive": number;
|
|
1132
|
-
"workflows": ApiLeadStatsGetResponseDataWorkflows[];
|
|
1133
|
-
}
|
|
1134
|
-
export type ApiLeadStatsGetResponse = import("./types.js").CrmApiResponse<ApiLeadStatsGetResponseData>;
|
|
926
|
+
export type ApiLeadStatsGetResponse = import("./types.js").CrmLeadStatsResponse;
|
|
1135
927
|
/** Backend query type: ListQuery. */
|
|
1136
|
-
export
|
|
1137
|
-
"cursor"?: string | null;
|
|
1138
|
-
"limit"?: number | null;
|
|
1139
|
-
"q"?: string | null;
|
|
1140
|
-
"pipeline_id"?: string | null;
|
|
1141
|
-
"stage_id"?: string | null;
|
|
1142
|
-
"team_id"?: string | null;
|
|
1143
|
-
"owner_user_id"?: string | null;
|
|
1144
|
-
"status"?: string | null;
|
|
1145
|
-
"statuses"?: string | null;
|
|
1146
|
-
"profile_id"?: string | null;
|
|
1147
|
-
"active_from"?: string | null;
|
|
1148
|
-
"active_to"?: string | null;
|
|
1149
|
-
"sort"?: string | null;
|
|
1150
|
-
}
|
|
928
|
+
export type ApiTasksGetQuery = import("./contracts.types.js").CrmTaskListQuery;
|
|
1151
929
|
/** Backend response type: ListData<Task>. */
|
|
1152
930
|
export type ApiTasksGetResponse = import("./types.js").CrmTaskListResponse;
|
|
1153
931
|
/** Backend request type: CreateTask. */
|
|
1154
|
-
export
|
|
1155
|
-
"lead_id"?: string | null;
|
|
1156
|
-
"deal_id"?: string | null;
|
|
1157
|
-
"contact_id"?: string | null;
|
|
1158
|
-
"company_id"?: string | null;
|
|
1159
|
-
"profile_id"?: string | null;
|
|
1160
|
-
"assignee_user_id"?: string | null;
|
|
1161
|
-
"title": string;
|
|
1162
|
-
"description"?: string | null;
|
|
1163
|
-
"task_type"?: string | null;
|
|
1164
|
-
"priority"?: string | null;
|
|
1165
|
-
"due_at"?: string | null;
|
|
1166
|
-
}
|
|
932
|
+
export type ApiCreateTaskPostInput = import("./contracts.types.js").CrmTaskCreateInput;
|
|
1167
933
|
/** Backend response type: Task. */
|
|
1168
934
|
export interface ApiCreateTaskPostResponseData extends JsonObject {
|
|
1169
935
|
"id": string;
|
|
1170
|
-
"lead_id"
|
|
1171
|
-
"deal_id"
|
|
1172
|
-
"contact_id"
|
|
1173
|
-
"company_id"
|
|
1174
|
-
"profile_id"
|
|
936
|
+
"lead_id": string | null;
|
|
937
|
+
"deal_id": string | null;
|
|
938
|
+
"contact_id": string | null;
|
|
939
|
+
"company_id": string | null;
|
|
940
|
+
"profile_id": string | null;
|
|
1175
941
|
"assignee_user_id": string;
|
|
1176
942
|
"created_by": string;
|
|
1177
943
|
"title": string;
|
|
1178
|
-
"description"
|
|
944
|
+
"description": string | null;
|
|
1179
945
|
"task_type": string;
|
|
1180
946
|
"priority": string;
|
|
1181
947
|
"status": string;
|
|
1182
|
-
"due_at"
|
|
1183
|
-
"completed_at"
|
|
948
|
+
"due_at": string | null;
|
|
949
|
+
"completed_at": string | null;
|
|
1184
950
|
"version": number;
|
|
1185
951
|
"created_at": string;
|
|
1186
952
|
"updated_at": string;
|
|
@@ -1193,27 +959,24 @@ export interface ApiDeleteTaskDeleteResponseData extends JsonObject {
|
|
|
1193
959
|
}
|
|
1194
960
|
export type ApiDeleteTaskDeleteResponse = import("./types.js").CrmApiResponse<ApiDeleteTaskDeleteResponseData>;
|
|
1195
961
|
/** Backend request type: UpdateTaskStatus. */
|
|
1196
|
-
export
|
|
1197
|
-
"status": string;
|
|
1198
|
-
"version": number;
|
|
1199
|
-
}
|
|
962
|
+
export type ApiUpdateTaskStatusPatchInput = import("./contracts.types.js").CrmTaskStatusInput;
|
|
1200
963
|
/** Backend response type: Task. */
|
|
1201
964
|
export interface ApiUpdateTaskStatusPatchResponseData extends JsonObject {
|
|
1202
965
|
"id": string;
|
|
1203
|
-
"lead_id"
|
|
1204
|
-
"deal_id"
|
|
1205
|
-
"contact_id"
|
|
1206
|
-
"company_id"
|
|
1207
|
-
"profile_id"
|
|
966
|
+
"lead_id": string | null;
|
|
967
|
+
"deal_id": string | null;
|
|
968
|
+
"contact_id": string | null;
|
|
969
|
+
"company_id": string | null;
|
|
970
|
+
"profile_id": string | null;
|
|
1208
971
|
"assignee_user_id": string;
|
|
1209
972
|
"created_by": string;
|
|
1210
973
|
"title": string;
|
|
1211
|
-
"description"
|
|
974
|
+
"description": string | null;
|
|
1212
975
|
"task_type": string;
|
|
1213
976
|
"priority": string;
|
|
1214
977
|
"status": string;
|
|
1215
|
-
"due_at"
|
|
1216
|
-
"completed_at"
|
|
978
|
+
"due_at": string | null;
|
|
979
|
+
"completed_at": string | null;
|
|
1217
980
|
"version": number;
|
|
1218
981
|
"created_at": string;
|
|
1219
982
|
"updated_at": string;
|
|
@@ -1223,8 +986,8 @@ export type ApiUpdateTaskStatusPatchResponse = import("./types.js").CrmApiRespon
|
|
|
1223
986
|
export interface ApiTeamsGetResponseItem extends JsonObject {
|
|
1224
987
|
"id": string;
|
|
1225
988
|
"name": string;
|
|
1226
|
-
"description"
|
|
1227
|
-
"manager_user_id"
|
|
989
|
+
"description": string | null;
|
|
990
|
+
"manager_user_id": string | null;
|
|
1228
991
|
"is_active": boolean;
|
|
1229
992
|
"version": number;
|
|
1230
993
|
"member_count": number;
|
|
@@ -1242,8 +1005,8 @@ export interface ApiCreateTeamPostInput extends JsonObject {
|
|
|
1242
1005
|
export interface ApiCreateTeamPostResponseData extends JsonObject {
|
|
1243
1006
|
"id": string;
|
|
1244
1007
|
"name": string;
|
|
1245
|
-
"description"
|
|
1246
|
-
"manager_user_id"
|
|
1008
|
+
"description": string | null;
|
|
1009
|
+
"manager_user_id": string | null;
|
|
1247
1010
|
"is_active": boolean;
|
|
1248
1011
|
"version": number;
|
|
1249
1012
|
"member_count": number;
|
|
@@ -1274,7 +1037,7 @@ export interface ApiAddTeamMemberPostResponseData extends JsonObject {
|
|
|
1274
1037
|
"id": string;
|
|
1275
1038
|
"team_id": string;
|
|
1276
1039
|
"user_id": string;
|
|
1277
|
-
"title"
|
|
1040
|
+
"title": string | null;
|
|
1278
1041
|
"capacity": number;
|
|
1279
1042
|
"is_active": boolean;
|
|
1280
1043
|
"created_at": string;
|
|
@@ -1286,7 +1049,7 @@ export interface ApiRemoveTeamMemberDeleteResponseData extends JsonObject {
|
|
|
1286
1049
|
"id": string;
|
|
1287
1050
|
"team_id": string;
|
|
1288
1051
|
"user_id": string;
|
|
1289
|
-
"title"
|
|
1052
|
+
"title": string | null;
|
|
1290
1053
|
"capacity": number;
|
|
1291
1054
|
"is_active": boolean;
|
|
1292
1055
|
"created_at": string;
|
|
@@ -1294,28 +1057,14 @@ export interface ApiRemoveTeamMemberDeleteResponseData extends JsonObject {
|
|
|
1294
1057
|
}
|
|
1295
1058
|
export type ApiRemoveTeamMemberDeleteResponse = import("./types.js").CrmApiResponse<ApiRemoveTeamMemberDeleteResponseData>;
|
|
1296
1059
|
/** Backend query type: ListQuery. */
|
|
1297
|
-
export
|
|
1298
|
-
"cursor"?: string | null;
|
|
1299
|
-
"limit"?: number | null;
|
|
1300
|
-
"q"?: string | null;
|
|
1301
|
-
"pipeline_id"?: string | null;
|
|
1302
|
-
"stage_id"?: string | null;
|
|
1303
|
-
"team_id"?: string | null;
|
|
1304
|
-
"owner_user_id"?: string | null;
|
|
1305
|
-
"status"?: string | null;
|
|
1306
|
-
"statuses"?: string | null;
|
|
1307
|
-
"profile_id"?: string | null;
|
|
1308
|
-
"active_from"?: string | null;
|
|
1309
|
-
"active_to"?: string | null;
|
|
1310
|
-
"sort"?: string | null;
|
|
1311
|
-
}
|
|
1060
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowQuery = import("./contracts.types.js").CrmEntitySortQuery;
|
|
1312
1061
|
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1313
1062
|
export type ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActionsKind = "internal" | "external";
|
|
1314
1063
|
export interface ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActions extends JsonObject {
|
|
1315
1064
|
"key": string;
|
|
1316
1065
|
"kind": ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActionsKind;
|
|
1317
1066
|
"form": string;
|
|
1318
|
-
"required"
|
|
1067
|
+
"required": boolean;
|
|
1319
1068
|
}
|
|
1320
1069
|
export interface ApiListWorkflowsRouteGetApiV1WorkflowResponseItem extends JsonObject {
|
|
1321
1070
|
"id": string;
|
|
@@ -1325,48 +1074,27 @@ export interface ApiListWorkflowsRouteGetApiV1WorkflowResponseItem extends JsonO
|
|
|
1325
1074
|
"acquire_flags": string[];
|
|
1326
1075
|
"priority": number;
|
|
1327
1076
|
"entity_type": string;
|
|
1328
|
-
"team_id"
|
|
1077
|
+
"team_id": string | null;
|
|
1329
1078
|
"is_default": boolean;
|
|
1330
1079
|
"is_active": boolean;
|
|
1331
1080
|
"daily_quota": number;
|
|
1332
1081
|
"version": number;
|
|
1333
1082
|
"can_create_lead": boolean;
|
|
1334
1083
|
"actions": ApiListWorkflowsRouteGetApiV1WorkflowResponseItemActions[];
|
|
1335
|
-
"hint"
|
|
1084
|
+
"hint": string | null;
|
|
1336
1085
|
"created_at": string;
|
|
1337
1086
|
"updated_at": string;
|
|
1338
1087
|
}
|
|
1339
1088
|
export type ApiListWorkflowsRouteGetApiV1WorkflowResponse = import("./types.js").CrmApiResponse<ApiListWorkflowsRouteGetApiV1WorkflowResponseItem[]>;
|
|
1340
1089
|
/** Backend request type: CreateWorkflowRequest. */
|
|
1341
|
-
export type
|
|
1342
|
-
export interface ApiCreateWorkflowRoutePostApiV1WorkflowInputActions extends JsonObject {
|
|
1343
|
-
"key": string;
|
|
1344
|
-
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowInputActionsKind;
|
|
1345
|
-
"form": string;
|
|
1346
|
-
"required"?: boolean;
|
|
1347
|
-
}
|
|
1348
|
-
export interface ApiCreateWorkflowRoutePostApiV1WorkflowInput extends JsonObject {
|
|
1349
|
-
"name": string;
|
|
1350
|
-
"slug": string;
|
|
1351
|
-
"flags"?: string[];
|
|
1352
|
-
"acquire_flags": string[];
|
|
1353
|
-
"priority": number;
|
|
1354
|
-
"entity_type"?: string;
|
|
1355
|
-
"team_id"?: string | null;
|
|
1356
|
-
"is_default"?: boolean;
|
|
1357
|
-
"is_active"?: boolean;
|
|
1358
|
-
"daily_quota"?: number;
|
|
1359
|
-
"can_create_lead"?: boolean;
|
|
1360
|
-
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowInputActions[];
|
|
1361
|
-
"hint"?: string | null;
|
|
1362
|
-
}
|
|
1090
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowInput = import("./contracts.types.js").CrmWorkflowCreateInput;
|
|
1363
1091
|
/** Backend response type: WorkflowResponse. */
|
|
1364
1092
|
export type ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActionsKind = "internal" | "external";
|
|
1365
1093
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActions extends JsonObject {
|
|
1366
1094
|
"key": string;
|
|
1367
1095
|
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActionsKind;
|
|
1368
1096
|
"form": string;
|
|
1369
|
-
"required"
|
|
1097
|
+
"required": boolean;
|
|
1370
1098
|
}
|
|
1371
1099
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseData extends JsonObject {
|
|
1372
1100
|
"id": string;
|
|
@@ -1376,34 +1104,20 @@ export interface ApiCreateWorkflowRoutePostApiV1WorkflowResponseData extends Jso
|
|
|
1376
1104
|
"acquire_flags": string[];
|
|
1377
1105
|
"priority": number;
|
|
1378
1106
|
"entity_type": string;
|
|
1379
|
-
"team_id"
|
|
1107
|
+
"team_id": string | null;
|
|
1380
1108
|
"is_default": boolean;
|
|
1381
1109
|
"is_active": boolean;
|
|
1382
1110
|
"daily_quota": number;
|
|
1383
1111
|
"version": number;
|
|
1384
1112
|
"can_create_lead": boolean;
|
|
1385
1113
|
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowResponseDataActions[];
|
|
1386
|
-
"hint"
|
|
1114
|
+
"hint": string | null;
|
|
1387
1115
|
"created_at": string;
|
|
1388
1116
|
"updated_at": string;
|
|
1389
1117
|
}
|
|
1390
1118
|
export type ApiCreateWorkflowRoutePostApiV1WorkflowResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowRoutePostApiV1WorkflowResponseData>;
|
|
1391
1119
|
/** Backend query type: ListQuery. */
|
|
1392
|
-
export
|
|
1393
|
-
"cursor"?: string | null;
|
|
1394
|
-
"limit"?: number | null;
|
|
1395
|
-
"q"?: string | null;
|
|
1396
|
-
"pipeline_id"?: string | null;
|
|
1397
|
-
"stage_id"?: string | null;
|
|
1398
|
-
"team_id"?: string | null;
|
|
1399
|
-
"owner_user_id"?: string | null;
|
|
1400
|
-
"status"?: string | null;
|
|
1401
|
-
"statuses"?: string | null;
|
|
1402
|
-
"profile_id"?: string | null;
|
|
1403
|
-
"active_from"?: string | null;
|
|
1404
|
-
"active_to"?: string | null;
|
|
1405
|
-
"sort"?: string | null;
|
|
1406
|
-
}
|
|
1120
|
+
export type ApiListWorkflowNodesCompatRouteGetQuery = import("./contracts.types.js").CrmEntitySortQuery;
|
|
1407
1121
|
/** Backend response type: Vec<WorkflowNodeResponse>. */
|
|
1408
1122
|
export interface ApiListWorkflowNodesCompatRouteGetResponseItem extends JsonObject {
|
|
1409
1123
|
"id": string;
|
|
@@ -1412,12 +1126,12 @@ export interface ApiListWorkflowNodesCompatRouteGetResponseItem extends JsonObje
|
|
|
1412
1126
|
"priority": number;
|
|
1413
1127
|
"probability": number;
|
|
1414
1128
|
"stage_type": string;
|
|
1415
|
-
"sla_minutes"
|
|
1129
|
+
"sla_minutes": number | null;
|
|
1416
1130
|
"is_active": boolean;
|
|
1417
1131
|
"workflow_id": string;
|
|
1418
1132
|
"is_draggable_in": boolean;
|
|
1419
1133
|
"is_draggable_out": boolean;
|
|
1420
|
-
"actions"
|
|
1134
|
+
"actions": JsonValue | null;
|
|
1421
1135
|
"auto_win": boolean;
|
|
1422
1136
|
"created_at": string;
|
|
1423
1137
|
"updated_at": string;
|
|
@@ -1433,31 +1147,19 @@ export interface ApiShowWorkflowNodeCompatRouteGetResponseData extends JsonObjec
|
|
|
1433
1147
|
"priority": number;
|
|
1434
1148
|
"probability": number;
|
|
1435
1149
|
"stage_type": string;
|
|
1436
|
-
"sla_minutes"
|
|
1150
|
+
"sla_minutes": number | null;
|
|
1437
1151
|
"is_active": boolean;
|
|
1438
1152
|
"workflow_id": string;
|
|
1439
1153
|
"is_draggable_in": boolean;
|
|
1440
1154
|
"is_draggable_out": boolean;
|
|
1441
|
-
"actions"
|
|
1155
|
+
"actions": JsonValue | null;
|
|
1442
1156
|
"auto_win": boolean;
|
|
1443
1157
|
"created_at": string;
|
|
1444
1158
|
"updated_at": string;
|
|
1445
1159
|
}
|
|
1446
1160
|
export type ApiShowWorkflowNodeCompatRouteGetResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowNodeCompatRouteGetResponseData>;
|
|
1447
1161
|
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1448
|
-
export
|
|
1449
|
-
"name"?: string | null;
|
|
1450
|
-
"slug"?: string | null;
|
|
1451
|
-
"priority"?: number | null;
|
|
1452
|
-
"probability"?: number | null;
|
|
1453
|
-
"stage_type"?: string | null;
|
|
1454
|
-
"sla_minutes"?: number | null;
|
|
1455
|
-
"is_active"?: boolean | null;
|
|
1456
|
-
"is_draggable_in"?: boolean | null;
|
|
1457
|
-
"is_draggable_out"?: boolean | null;
|
|
1458
|
-
"actions"?: JsonValue | null;
|
|
1459
|
-
"auto_win"?: boolean | null;
|
|
1460
|
-
}
|
|
1162
|
+
export type ApiUpdateWorkflowNodeCompatRoutePatchInput = import("./contracts.types.js").CrmWorkflowNodeUpdateInput;
|
|
1461
1163
|
/** Backend response type: WorkflowNodeResponse. */
|
|
1462
1164
|
export interface ApiUpdateWorkflowNodeCompatRoutePatchResponseData extends JsonObject {
|
|
1463
1165
|
"id": string;
|
|
@@ -1466,31 +1168,19 @@ export interface ApiUpdateWorkflowNodeCompatRoutePatchResponseData extends JsonO
|
|
|
1466
1168
|
"priority": number;
|
|
1467
1169
|
"probability": number;
|
|
1468
1170
|
"stage_type": string;
|
|
1469
|
-
"sla_minutes"
|
|
1171
|
+
"sla_minutes": number | null;
|
|
1470
1172
|
"is_active": boolean;
|
|
1471
1173
|
"workflow_id": string;
|
|
1472
1174
|
"is_draggable_in": boolean;
|
|
1473
1175
|
"is_draggable_out": boolean;
|
|
1474
|
-
"actions"
|
|
1176
|
+
"actions": JsonValue | null;
|
|
1475
1177
|
"auto_win": boolean;
|
|
1476
1178
|
"created_at": string;
|
|
1477
1179
|
"updated_at": string;
|
|
1478
1180
|
}
|
|
1479
1181
|
export type ApiUpdateWorkflowNodeCompatRoutePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowNodeCompatRoutePatchResponseData>;
|
|
1480
1182
|
/** Backend request type: CreateWorkflowNodeRequest. */
|
|
1481
|
-
export
|
|
1482
|
-
"name": string;
|
|
1483
|
-
"slug": string;
|
|
1484
|
-
"priority": number;
|
|
1485
|
-
"probability"?: number;
|
|
1486
|
-
"stage_type"?: string;
|
|
1487
|
-
"sla_minutes"?: number | null;
|
|
1488
|
-
"is_active"?: boolean;
|
|
1489
|
-
"is_draggable_in"?: boolean;
|
|
1490
|
-
"is_draggable_out"?: boolean;
|
|
1491
|
-
"actions"?: JsonValue | null;
|
|
1492
|
-
"auto_win"?: boolean;
|
|
1493
|
-
}
|
|
1183
|
+
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdInput = import("./contracts.types.js").CrmWorkflowNodeCreateInput;
|
|
1494
1184
|
/** Backend response type: WorkflowNodeResponse. */
|
|
1495
1185
|
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponseData extends JsonObject {
|
|
1496
1186
|
"id": string;
|
|
@@ -1499,31 +1189,19 @@ export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponseData e
|
|
|
1499
1189
|
"priority": number;
|
|
1500
1190
|
"probability": number;
|
|
1501
1191
|
"stage_type": string;
|
|
1502
|
-
"sla_minutes"
|
|
1192
|
+
"sla_minutes": number | null;
|
|
1503
1193
|
"is_active": boolean;
|
|
1504
1194
|
"workflow_id": string;
|
|
1505
1195
|
"is_draggable_in": boolean;
|
|
1506
1196
|
"is_draggable_out": boolean;
|
|
1507
|
-
"actions"
|
|
1197
|
+
"actions": JsonValue | null;
|
|
1508
1198
|
"auto_win": boolean;
|
|
1509
1199
|
"created_at": string;
|
|
1510
1200
|
"updated_at": string;
|
|
1511
1201
|
}
|
|
1512
1202
|
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponse = import("./types.js").CrmApiResponse<ApiCreateWorkflowNodeRoutePostApiV1WorkflowNodeIdResponseData>;
|
|
1513
1203
|
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1514
|
-
export
|
|
1515
|
-
"name"?: string | null;
|
|
1516
|
-
"slug"?: string | null;
|
|
1517
|
-
"priority"?: number | null;
|
|
1518
|
-
"probability"?: number | null;
|
|
1519
|
-
"stage_type"?: string | null;
|
|
1520
|
-
"sla_minutes"?: number | null;
|
|
1521
|
-
"is_active"?: boolean | null;
|
|
1522
|
-
"is_draggable_in"?: boolean | null;
|
|
1523
|
-
"is_draggable_out"?: boolean | null;
|
|
1524
|
-
"actions"?: JsonValue | null;
|
|
1525
|
-
"auto_win"?: boolean | null;
|
|
1526
|
-
}
|
|
1204
|
+
export type ApiUpdateWorkflowNodeCompatRoutePutInput = import("./contracts.types.js").CrmWorkflowNodeUpdateInput;
|
|
1527
1205
|
/** Backend response type: WorkflowNodeResponse. */
|
|
1528
1206
|
export interface ApiUpdateWorkflowNodeCompatRoutePutResponseData extends JsonObject {
|
|
1529
1207
|
"id": string;
|
|
@@ -1532,12 +1210,12 @@ export interface ApiUpdateWorkflowNodeCompatRoutePutResponseData extends JsonObj
|
|
|
1532
1210
|
"priority": number;
|
|
1533
1211
|
"probability": number;
|
|
1534
1212
|
"stage_type": string;
|
|
1535
|
-
"sla_minutes"
|
|
1213
|
+
"sla_minutes": number | null;
|
|
1536
1214
|
"is_active": boolean;
|
|
1537
1215
|
"workflow_id": string;
|
|
1538
1216
|
"is_draggable_in": boolean;
|
|
1539
1217
|
"is_draggable_out": boolean;
|
|
1540
|
-
"actions"
|
|
1218
|
+
"actions": JsonValue | null;
|
|
1541
1219
|
"auto_win": boolean;
|
|
1542
1220
|
"created_at": string;
|
|
1543
1221
|
"updated_at": string;
|
|
@@ -1555,7 +1233,7 @@ export interface ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActions exten
|
|
|
1555
1233
|
"key": string;
|
|
1556
1234
|
"kind": ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActionsKind;
|
|
1557
1235
|
"form": string;
|
|
1558
|
-
"required"
|
|
1236
|
+
"required": boolean;
|
|
1559
1237
|
}
|
|
1560
1238
|
export interface ApiShowWorkflowRouteGetApiV1WorkflowIdResponseData extends JsonObject {
|
|
1561
1239
|
"id": string;
|
|
@@ -1565,42 +1243,27 @@ export interface ApiShowWorkflowRouteGetApiV1WorkflowIdResponseData extends Json
|
|
|
1565
1243
|
"acquire_flags": string[];
|
|
1566
1244
|
"priority": number;
|
|
1567
1245
|
"entity_type": string;
|
|
1568
|
-
"team_id"
|
|
1246
|
+
"team_id": string | null;
|
|
1569
1247
|
"is_default": boolean;
|
|
1570
1248
|
"is_active": boolean;
|
|
1571
1249
|
"daily_quota": number;
|
|
1572
1250
|
"version": number;
|
|
1573
1251
|
"can_create_lead": boolean;
|
|
1574
1252
|
"actions": ApiShowWorkflowRouteGetApiV1WorkflowIdResponseDataActions[];
|
|
1575
|
-
"hint"
|
|
1253
|
+
"hint": string | null;
|
|
1576
1254
|
"created_at": string;
|
|
1577
1255
|
"updated_at": string;
|
|
1578
1256
|
}
|
|
1579
1257
|
export type ApiShowWorkflowRouteGetApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowRouteGetApiV1WorkflowIdResponseData>;
|
|
1580
1258
|
/** Backend request type: UpdateWorkflowRequest. */
|
|
1581
|
-
export
|
|
1582
|
-
"name"?: string | null;
|
|
1583
|
-
"slug"?: string | null;
|
|
1584
|
-
"flags"?: string[] | null;
|
|
1585
|
-
"acquire_flags"?: string[] | null;
|
|
1586
|
-
"priority"?: number | null;
|
|
1587
|
-
"entity_type"?: string | null;
|
|
1588
|
-
"team_id"?: string | null;
|
|
1589
|
-
"is_default"?: boolean | null;
|
|
1590
|
-
"is_active"?: boolean | null;
|
|
1591
|
-
"daily_quota"?: number | null;
|
|
1592
|
-
"version"?: number | null;
|
|
1593
|
-
"can_create_lead"?: boolean | null;
|
|
1594
|
-
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1595
|
-
"hint"?: string | null;
|
|
1596
|
-
}
|
|
1259
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowIdInput = import("./contracts.types.js").CrmWorkflowUpdateInput;
|
|
1597
1260
|
/** Backend response type: WorkflowResponse. */
|
|
1598
1261
|
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActionsKind = "internal" | "external";
|
|
1599
1262
|
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActions extends JsonObject {
|
|
1600
1263
|
"key": string;
|
|
1601
1264
|
"kind": ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActionsKind;
|
|
1602
1265
|
"form": string;
|
|
1603
|
-
"required"
|
|
1266
|
+
"required": boolean;
|
|
1604
1267
|
}
|
|
1605
1268
|
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseData extends JsonObject {
|
|
1606
1269
|
"id": string;
|
|
@@ -1610,42 +1273,27 @@ export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseData extends
|
|
|
1610
1273
|
"acquire_flags": string[];
|
|
1611
1274
|
"priority": number;
|
|
1612
1275
|
"entity_type": string;
|
|
1613
|
-
"team_id"
|
|
1276
|
+
"team_id": string | null;
|
|
1614
1277
|
"is_default": boolean;
|
|
1615
1278
|
"is_active": boolean;
|
|
1616
1279
|
"daily_quota": number;
|
|
1617
1280
|
"version": number;
|
|
1618
1281
|
"can_create_lead": boolean;
|
|
1619
1282
|
"actions": ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseDataActions[];
|
|
1620
|
-
"hint"
|
|
1283
|
+
"hint": string | null;
|
|
1621
1284
|
"created_at": string;
|
|
1622
1285
|
"updated_at": string;
|
|
1623
1286
|
}
|
|
1624
1287
|
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePatchApiV1WorkflowIdResponseData>;
|
|
1625
1288
|
/** Backend request type: UpdateWorkflowRequest. */
|
|
1626
|
-
export
|
|
1627
|
-
"name"?: string | null;
|
|
1628
|
-
"slug"?: string | null;
|
|
1629
|
-
"flags"?: string[] | null;
|
|
1630
|
-
"acquire_flags"?: string[] | null;
|
|
1631
|
-
"priority"?: number | null;
|
|
1632
|
-
"entity_type"?: string | null;
|
|
1633
|
-
"team_id"?: string | null;
|
|
1634
|
-
"is_default"?: boolean | null;
|
|
1635
|
-
"is_active"?: boolean | null;
|
|
1636
|
-
"daily_quota"?: number | null;
|
|
1637
|
-
"version"?: number | null;
|
|
1638
|
-
"can_create_lead"?: boolean | null;
|
|
1639
|
-
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1640
|
-
"hint"?: string | null;
|
|
1641
|
-
}
|
|
1289
|
+
export type ApiUpdateWorkflowRoutePutInput = import("./contracts.types.js").CrmWorkflowUpdateInput;
|
|
1642
1290
|
/** Backend response type: WorkflowResponse. */
|
|
1643
1291
|
export type ApiUpdateWorkflowRoutePutResponseDataActionsKind = "internal" | "external";
|
|
1644
1292
|
export interface ApiUpdateWorkflowRoutePutResponseDataActions extends JsonObject {
|
|
1645
1293
|
"key": string;
|
|
1646
1294
|
"kind": ApiUpdateWorkflowRoutePutResponseDataActionsKind;
|
|
1647
1295
|
"form": string;
|
|
1648
|
-
"required"
|
|
1296
|
+
"required": boolean;
|
|
1649
1297
|
}
|
|
1650
1298
|
export interface ApiUpdateWorkflowRoutePutResponseData extends JsonObject {
|
|
1651
1299
|
"id": string;
|
|
@@ -1655,41 +1303,27 @@ export interface ApiUpdateWorkflowRoutePutResponseData extends JsonObject {
|
|
|
1655
1303
|
"acquire_flags": string[];
|
|
1656
1304
|
"priority": number;
|
|
1657
1305
|
"entity_type": string;
|
|
1658
|
-
"team_id"
|
|
1306
|
+
"team_id": string | null;
|
|
1659
1307
|
"is_default": boolean;
|
|
1660
1308
|
"is_active": boolean;
|
|
1661
1309
|
"daily_quota": number;
|
|
1662
1310
|
"version": number;
|
|
1663
1311
|
"can_create_lead": boolean;
|
|
1664
1312
|
"actions": ApiUpdateWorkflowRoutePutResponseDataActions[];
|
|
1665
|
-
"hint"
|
|
1313
|
+
"hint": string | null;
|
|
1666
1314
|
"created_at": string;
|
|
1667
1315
|
"updated_at": string;
|
|
1668
1316
|
}
|
|
1669
1317
|
export type ApiUpdateWorkflowRoutePutResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkflowRoutePutResponseData>;
|
|
1670
1318
|
/** Backend query type: ListQuery. */
|
|
1671
|
-
export
|
|
1672
|
-
"cursor"?: string | null;
|
|
1673
|
-
"limit"?: number | null;
|
|
1674
|
-
"q"?: string | null;
|
|
1675
|
-
"pipeline_id"?: string | null;
|
|
1676
|
-
"stage_id"?: string | null;
|
|
1677
|
-
"team_id"?: string | null;
|
|
1678
|
-
"owner_user_id"?: string | null;
|
|
1679
|
-
"status"?: string | null;
|
|
1680
|
-
"statuses"?: string | null;
|
|
1681
|
-
"profile_id"?: string | null;
|
|
1682
|
-
"active_from"?: string | null;
|
|
1683
|
-
"active_to"?: string | null;
|
|
1684
|
-
"sort"?: string | null;
|
|
1685
|
-
}
|
|
1319
|
+
export type ApiListWorkflowsRouteGetApiV1WorkflowsQuery = import("./contracts.types.js").CrmEntitySortQuery;
|
|
1686
1320
|
/** Backend response type: Vec<WorkflowResponse>. */
|
|
1687
1321
|
export type ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActionsKind = "internal" | "external";
|
|
1688
1322
|
export interface ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActions extends JsonObject {
|
|
1689
1323
|
"key": string;
|
|
1690
1324
|
"kind": ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActionsKind;
|
|
1691
1325
|
"form": string;
|
|
1692
|
-
"required"
|
|
1326
|
+
"required": boolean;
|
|
1693
1327
|
}
|
|
1694
1328
|
export interface ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem extends JsonObject {
|
|
1695
1329
|
"id": string;
|
|
@@ -1699,48 +1333,27 @@ export interface ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem extends Json
|
|
|
1699
1333
|
"acquire_flags": string[];
|
|
1700
1334
|
"priority": number;
|
|
1701
1335
|
"entity_type": string;
|
|
1702
|
-
"team_id"
|
|
1336
|
+
"team_id": string | null;
|
|
1703
1337
|
"is_default": boolean;
|
|
1704
1338
|
"is_active": boolean;
|
|
1705
1339
|
"daily_quota": number;
|
|
1706
1340
|
"version": number;
|
|
1707
1341
|
"can_create_lead": boolean;
|
|
1708
1342
|
"actions": ApiListWorkflowsRouteGetApiV1WorkflowsResponseItemActions[];
|
|
1709
|
-
"hint"
|
|
1343
|
+
"hint": string | null;
|
|
1710
1344
|
"created_at": string;
|
|
1711
1345
|
"updated_at": string;
|
|
1712
1346
|
}
|
|
1713
1347
|
export type ApiListWorkflowsRouteGetApiV1WorkflowsResponse = import("./types.js").CrmApiResponse<ApiListWorkflowsRouteGetApiV1WorkflowsResponseItem[]>;
|
|
1714
1348
|
/** Backend request type: CreateWorkflowRequest. */
|
|
1715
|
-
export type
|
|
1716
|
-
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsInputActions extends JsonObject {
|
|
1717
|
-
"key": string;
|
|
1718
|
-
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowsInputActionsKind;
|
|
1719
|
-
"form": string;
|
|
1720
|
-
"required"?: boolean;
|
|
1721
|
-
}
|
|
1722
|
-
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsInput extends JsonObject {
|
|
1723
|
-
"name": string;
|
|
1724
|
-
"slug": string;
|
|
1725
|
-
"flags"?: string[];
|
|
1726
|
-
"acquire_flags": string[];
|
|
1727
|
-
"priority": number;
|
|
1728
|
-
"entity_type"?: string;
|
|
1729
|
-
"team_id"?: string | null;
|
|
1730
|
-
"is_default"?: boolean;
|
|
1731
|
-
"is_active"?: boolean;
|
|
1732
|
-
"daily_quota"?: number;
|
|
1733
|
-
"can_create_lead"?: boolean;
|
|
1734
|
-
"actions"?: ApiCreateWorkflowRoutePostApiV1WorkflowsInputActions[];
|
|
1735
|
-
"hint"?: string | null;
|
|
1736
|
-
}
|
|
1349
|
+
export type ApiCreateWorkflowRoutePostApiV1WorkflowsInput = import("./contracts.types.js").CrmWorkflowCreateInput;
|
|
1737
1350
|
/** Backend response type: WorkflowResponse. */
|
|
1738
1351
|
export type ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActionsKind = "internal" | "external";
|
|
1739
1352
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActions extends JsonObject {
|
|
1740
1353
|
"key": string;
|
|
1741
1354
|
"kind": ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActionsKind;
|
|
1742
1355
|
"form": string;
|
|
1743
|
-
"required"
|
|
1356
|
+
"required": boolean;
|
|
1744
1357
|
}
|
|
1745
1358
|
export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData extends JsonObject {
|
|
1746
1359
|
"id": string;
|
|
@@ -1750,14 +1363,14 @@ export interface ApiCreateWorkflowRoutePostApiV1WorkflowsResponseData extends Js
|
|
|
1750
1363
|
"acquire_flags": string[];
|
|
1751
1364
|
"priority": number;
|
|
1752
1365
|
"entity_type": string;
|
|
1753
|
-
"team_id"
|
|
1366
|
+
"team_id": string | null;
|
|
1754
1367
|
"is_default": boolean;
|
|
1755
1368
|
"is_active": boolean;
|
|
1756
1369
|
"daily_quota": number;
|
|
1757
1370
|
"version": number;
|
|
1758
1371
|
"can_create_lead": boolean;
|
|
1759
1372
|
"actions": ApiCreateWorkflowRoutePostApiV1WorkflowsResponseDataActions[];
|
|
1760
|
-
"hint"
|
|
1373
|
+
"hint": string | null;
|
|
1761
1374
|
"created_at": string;
|
|
1762
1375
|
"updated_at": string;
|
|
1763
1376
|
}
|
|
@@ -1774,7 +1387,7 @@ export interface ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActions exte
|
|
|
1774
1387
|
"key": string;
|
|
1775
1388
|
"kind": ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActionsKind;
|
|
1776
1389
|
"form": string;
|
|
1777
|
-
"required"
|
|
1390
|
+
"required": boolean;
|
|
1778
1391
|
}
|
|
1779
1392
|
export interface ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1780
1393
|
"id": string;
|
|
@@ -1784,42 +1397,27 @@ export interface ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData extends Jso
|
|
|
1784
1397
|
"acquire_flags": string[];
|
|
1785
1398
|
"priority": number;
|
|
1786
1399
|
"entity_type": string;
|
|
1787
|
-
"team_id"
|
|
1400
|
+
"team_id": string | null;
|
|
1788
1401
|
"is_default": boolean;
|
|
1789
1402
|
"is_active": boolean;
|
|
1790
1403
|
"daily_quota": number;
|
|
1791
1404
|
"version": number;
|
|
1792
1405
|
"can_create_lead": boolean;
|
|
1793
1406
|
"actions": ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseDataActions[];
|
|
1794
|
-
"hint"
|
|
1407
|
+
"hint": string | null;
|
|
1795
1408
|
"created_at": string;
|
|
1796
1409
|
"updated_at": string;
|
|
1797
1410
|
}
|
|
1798
1411
|
export type ApiShowWorkflowRouteGetApiV1WorkflowsIdResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowRouteGetApiV1WorkflowsIdResponseData>;
|
|
1799
1412
|
/** Backend request type: UpdateWorkflowRequest. */
|
|
1800
|
-
export
|
|
1801
|
-
"name"?: string | null;
|
|
1802
|
-
"slug"?: string | null;
|
|
1803
|
-
"flags"?: string[] | null;
|
|
1804
|
-
"acquire_flags"?: string[] | null;
|
|
1805
|
-
"priority"?: number | null;
|
|
1806
|
-
"entity_type"?: string | null;
|
|
1807
|
-
"team_id"?: string | null;
|
|
1808
|
-
"is_default"?: boolean | null;
|
|
1809
|
-
"is_active"?: boolean | null;
|
|
1810
|
-
"daily_quota"?: number | null;
|
|
1811
|
-
"version"?: number | null;
|
|
1812
|
-
"can_create_lead"?: boolean | null;
|
|
1813
|
-
"actions"?: BackendJson<"WorkflowActionDefinition">[] | null;
|
|
1814
|
-
"hint"?: string | null;
|
|
1815
|
-
}
|
|
1413
|
+
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdInput = import("./contracts.types.js").CrmWorkflowUpdateInput;
|
|
1816
1414
|
/** Backend response type: WorkflowResponse. */
|
|
1817
1415
|
export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActionsKind = "internal" | "external";
|
|
1818
1416
|
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActions extends JsonObject {
|
|
1819
1417
|
"key": string;
|
|
1820
1418
|
"kind": ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActionsKind;
|
|
1821
1419
|
"form": string;
|
|
1822
|
-
"required"
|
|
1420
|
+
"required": boolean;
|
|
1823
1421
|
}
|
|
1824
1422
|
export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseData extends JsonObject {
|
|
1825
1423
|
"id": string;
|
|
@@ -1829,14 +1427,14 @@ export interface ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseData extends
|
|
|
1829
1427
|
"acquire_flags": string[];
|
|
1830
1428
|
"priority": number;
|
|
1831
1429
|
"entity_type": string;
|
|
1832
|
-
"team_id"
|
|
1430
|
+
"team_id": string | null;
|
|
1833
1431
|
"is_default": boolean;
|
|
1834
1432
|
"is_active": boolean;
|
|
1835
1433
|
"daily_quota": number;
|
|
1836
1434
|
"version": number;
|
|
1837
1435
|
"can_create_lead": boolean;
|
|
1838
1436
|
"actions": ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponseDataActions[];
|
|
1839
|
-
"hint"
|
|
1437
|
+
"hint": string | null;
|
|
1840
1438
|
"created_at": string;
|
|
1841
1439
|
"updated_at": string;
|
|
1842
1440
|
}
|
|
@@ -1845,8 +1443,8 @@ export type ApiUpdateWorkflowRoutePatchApiV1WorkflowsIdResponse = import("./type
|
|
|
1845
1443
|
export interface ApiListWorkflowAssignmentsGetResponseItem extends JsonObject {
|
|
1846
1444
|
"id": string;
|
|
1847
1445
|
"workflow_id": string;
|
|
1848
|
-
"team_id"
|
|
1849
|
-
"user_id"
|
|
1446
|
+
"team_id": string | null;
|
|
1447
|
+
"user_id": string | null;
|
|
1850
1448
|
"created_by": string;
|
|
1851
1449
|
"created_at": string;
|
|
1852
1450
|
}
|
|
@@ -1860,8 +1458,8 @@ export interface ApiCreateWorkflowAssignmentPostInput extends JsonObject {
|
|
|
1860
1458
|
export interface ApiCreateWorkflowAssignmentPostResponseData extends JsonObject {
|
|
1861
1459
|
"id": string;
|
|
1862
1460
|
"workflow_id": string;
|
|
1863
|
-
"team_id"
|
|
1864
|
-
"user_id"
|
|
1461
|
+
"team_id": string | null;
|
|
1462
|
+
"user_id": string | null;
|
|
1865
1463
|
"created_by": string;
|
|
1866
1464
|
"created_at": string;
|
|
1867
1465
|
}
|
|
@@ -1873,21 +1471,7 @@ export interface ApiDeleteWorkflowAssignmentDeleteResponseData extends JsonObjec
|
|
|
1873
1471
|
}
|
|
1874
1472
|
export type ApiDeleteWorkflowAssignmentDeleteResponse = import("./types.js").CrmApiResponse<ApiDeleteWorkflowAssignmentDeleteResponseData>;
|
|
1875
1473
|
/** Backend query type: ListQuery. */
|
|
1876
|
-
export
|
|
1877
|
-
"cursor"?: string | null;
|
|
1878
|
-
"limit"?: number | null;
|
|
1879
|
-
"q"?: string | null;
|
|
1880
|
-
"pipeline_id"?: string | null;
|
|
1881
|
-
"stage_id"?: string | null;
|
|
1882
|
-
"team_id"?: string | null;
|
|
1883
|
-
"owner_user_id"?: string | null;
|
|
1884
|
-
"status"?: string | null;
|
|
1885
|
-
"statuses"?: string | null;
|
|
1886
|
-
"profile_id"?: string | null;
|
|
1887
|
-
"active_from"?: string | null;
|
|
1888
|
-
"active_to"?: string | null;
|
|
1889
|
-
"sort"?: string | null;
|
|
1890
|
-
}
|
|
1474
|
+
export type ApiListWorkflowNodesRouteGetQuery = import("./contracts.types.js").CrmEntitySortQuery;
|
|
1891
1475
|
/** Backend response type: Vec<WorkflowNodeResponse>. */
|
|
1892
1476
|
export interface ApiListWorkflowNodesRouteGetResponseItem extends JsonObject {
|
|
1893
1477
|
"id": string;
|
|
@@ -1896,31 +1480,19 @@ export interface ApiListWorkflowNodesRouteGetResponseItem extends JsonObject {
|
|
|
1896
1480
|
"priority": number;
|
|
1897
1481
|
"probability": number;
|
|
1898
1482
|
"stage_type": string;
|
|
1899
|
-
"sla_minutes"
|
|
1483
|
+
"sla_minutes": number | null;
|
|
1900
1484
|
"is_active": boolean;
|
|
1901
1485
|
"workflow_id": string;
|
|
1902
1486
|
"is_draggable_in": boolean;
|
|
1903
1487
|
"is_draggable_out": boolean;
|
|
1904
|
-
"actions"
|
|
1488
|
+
"actions": JsonValue | null;
|
|
1905
1489
|
"auto_win": boolean;
|
|
1906
1490
|
"created_at": string;
|
|
1907
1491
|
"updated_at": string;
|
|
1908
1492
|
}
|
|
1909
1493
|
export type ApiListWorkflowNodesRouteGetResponse = import("./types.js").CrmApiResponse<ApiListWorkflowNodesRouteGetResponseItem[]>;
|
|
1910
1494
|
/** Backend request type: CreateWorkflowNodeRequest. */
|
|
1911
|
-
export
|
|
1912
|
-
"name": string;
|
|
1913
|
-
"slug": string;
|
|
1914
|
-
"priority": number;
|
|
1915
|
-
"probability"?: number;
|
|
1916
|
-
"stage_type"?: string;
|
|
1917
|
-
"sla_minutes"?: number | null;
|
|
1918
|
-
"is_active"?: boolean;
|
|
1919
|
-
"is_draggable_in"?: boolean;
|
|
1920
|
-
"is_draggable_out"?: boolean;
|
|
1921
|
-
"actions"?: JsonValue | null;
|
|
1922
|
-
"auto_win"?: boolean;
|
|
1923
|
-
}
|
|
1495
|
+
export type ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesInput = import("./contracts.types.js").CrmWorkflowNodeCreateInput;
|
|
1924
1496
|
/** Backend response type: WorkflowNodeResponse. */
|
|
1925
1497
|
export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResponseData extends JsonObject {
|
|
1926
1498
|
"id": string;
|
|
@@ -1929,12 +1501,12 @@ export interface ApiCreateWorkflowNodeRoutePostApiV1WorkflowsWorkflowIdNodesResp
|
|
|
1929
1501
|
"priority": number;
|
|
1930
1502
|
"probability": number;
|
|
1931
1503
|
"stage_type": string;
|
|
1932
|
-
"sla_minutes"
|
|
1504
|
+
"sla_minutes": number | null;
|
|
1933
1505
|
"is_active": boolean;
|
|
1934
1506
|
"workflow_id": string;
|
|
1935
1507
|
"is_draggable_in": boolean;
|
|
1936
1508
|
"is_draggable_out": boolean;
|
|
1937
|
-
"actions"
|
|
1509
|
+
"actions": JsonValue | null;
|
|
1938
1510
|
"auto_win": boolean;
|
|
1939
1511
|
"created_at": string;
|
|
1940
1512
|
"updated_at": string;
|
|
@@ -1954,31 +1526,19 @@ export interface ApiShowWorkflowNodeRouteGetResponseData extends JsonObject {
|
|
|
1954
1526
|
"priority": number;
|
|
1955
1527
|
"probability": number;
|
|
1956
1528
|
"stage_type": string;
|
|
1957
|
-
"sla_minutes"
|
|
1529
|
+
"sla_minutes": number | null;
|
|
1958
1530
|
"is_active": boolean;
|
|
1959
1531
|
"workflow_id": string;
|
|
1960
1532
|
"is_draggable_in": boolean;
|
|
1961
1533
|
"is_draggable_out": boolean;
|
|
1962
|
-
"actions"
|
|
1534
|
+
"actions": JsonValue | null;
|
|
1963
1535
|
"auto_win": boolean;
|
|
1964
1536
|
"created_at": string;
|
|
1965
1537
|
"updated_at": string;
|
|
1966
1538
|
}
|
|
1967
1539
|
export type ApiShowWorkflowNodeRouteGetResponse = import("./types.js").CrmApiResponse<ApiShowWorkflowNodeRouteGetResponseData>;
|
|
1968
1540
|
/** Backend request type: UpdateWorkflowNodeRequest. */
|
|
1969
|
-
export
|
|
1970
|
-
"name"?: string | null;
|
|
1971
|
-
"slug"?: string | null;
|
|
1972
|
-
"priority"?: number | null;
|
|
1973
|
-
"probability"?: number | null;
|
|
1974
|
-
"stage_type"?: string | null;
|
|
1975
|
-
"sla_minutes"?: number | null;
|
|
1976
|
-
"is_active"?: boolean | null;
|
|
1977
|
-
"is_draggable_in"?: boolean | null;
|
|
1978
|
-
"is_draggable_out"?: boolean | null;
|
|
1979
|
-
"actions"?: JsonValue | null;
|
|
1980
|
-
"auto_win"?: boolean | null;
|
|
1981
|
-
}
|
|
1541
|
+
export type ApiUpdateWorkflowNodeRoutePatchInput = import("./contracts.types.js").CrmWorkflowNodeUpdateInput;
|
|
1982
1542
|
/** Backend response type: WorkflowNodeResponse. */
|
|
1983
1543
|
export interface ApiUpdateWorkflowNodeRoutePatchResponseData extends JsonObject {
|
|
1984
1544
|
"id": string;
|
|
@@ -1987,12 +1547,12 @@ export interface ApiUpdateWorkflowNodeRoutePatchResponseData extends JsonObject
|
|
|
1987
1547
|
"priority": number;
|
|
1988
1548
|
"probability": number;
|
|
1989
1549
|
"stage_type": string;
|
|
1990
|
-
"sla_minutes"
|
|
1550
|
+
"sla_minutes": number | null;
|
|
1991
1551
|
"is_active": boolean;
|
|
1992
1552
|
"workflow_id": string;
|
|
1993
1553
|
"is_draggable_in": boolean;
|
|
1994
1554
|
"is_draggable_out": boolean;
|
|
1995
|
-
"actions"
|
|
1555
|
+
"actions": JsonValue | null;
|
|
1996
1556
|
"auto_win": boolean;
|
|
1997
1557
|
"created_at": string;
|
|
1998
1558
|
"updated_at": string;
|
|
@@ -2004,7 +1564,7 @@ export interface ApiMemberWorkflowsGetResponseItemActions extends JsonObject {
|
|
|
2004
1564
|
"key": string;
|
|
2005
1565
|
"kind": ApiMemberWorkflowsGetResponseItemActionsKind;
|
|
2006
1566
|
"form": string;
|
|
2007
|
-
"required"
|
|
1567
|
+
"required": boolean;
|
|
2008
1568
|
}
|
|
2009
1569
|
export interface ApiMemberWorkflowsGetResponseItem extends JsonObject {
|
|
2010
1570
|
"id": string;
|
|
@@ -2014,22 +1574,20 @@ export interface ApiMemberWorkflowsGetResponseItem extends JsonObject {
|
|
|
2014
1574
|
"acquire_flags": string[];
|
|
2015
1575
|
"priority": number;
|
|
2016
1576
|
"entity_type": string;
|
|
2017
|
-
"team_id"
|
|
1577
|
+
"team_id": string | null;
|
|
2018
1578
|
"is_default": boolean;
|
|
2019
1579
|
"is_active": boolean;
|
|
2020
1580
|
"daily_quota": number;
|
|
2021
1581
|
"version": number;
|
|
2022
1582
|
"can_create_lead": boolean;
|
|
2023
1583
|
"actions": ApiMemberWorkflowsGetResponseItemActions[];
|
|
2024
|
-
"hint"
|
|
1584
|
+
"hint": string | null;
|
|
2025
1585
|
"created_at": string;
|
|
2026
1586
|
"updated_at": string;
|
|
2027
1587
|
}
|
|
2028
1588
|
export type ApiMemberWorkflowsGetResponse = import("./types.js").CrmApiResponse<ApiMemberWorkflowsGetResponseItem[]>;
|
|
2029
1589
|
/** Backend query type: super::types::WorklogListQuery. */
|
|
2030
|
-
export
|
|
2031
|
-
"sort"?: string | null;
|
|
2032
|
-
}
|
|
1590
|
+
export type ApiWorklogsGetQuery = import("./contracts.types.js").CrmEntitySortQuery;
|
|
2033
1591
|
/** Backend response type: Vec<WorklogResponse>. */
|
|
2034
1592
|
export interface ApiWorklogsGetResponseItem extends JsonObject {
|
|
2035
1593
|
"id": string;
|
|
@@ -2038,21 +1596,13 @@ export interface ApiWorklogsGetResponseItem extends JsonObject {
|
|
|
2038
1596
|
"profile_id": string;
|
|
2039
1597
|
"start_date": string;
|
|
2040
1598
|
"duration": number;
|
|
2041
|
-
"description"
|
|
1599
|
+
"description": string | null;
|
|
2042
1600
|
"created_at": string;
|
|
2043
1601
|
"updated_at": string;
|
|
2044
1602
|
}
|
|
2045
1603
|
export type ApiWorklogsGetResponse = import("./types.js").CrmApiResponse<ApiWorklogsGetResponseItem[]>;
|
|
2046
1604
|
/** Backend request type: UpdateWorkspace. */
|
|
2047
|
-
export
|
|
2048
|
-
"name"?: string | null;
|
|
2049
|
-
"locale"?: string | null;
|
|
2050
|
-
"timezone"?: string | null;
|
|
2051
|
-
"currency"?: string | null;
|
|
2052
|
-
"ai_mode"?: string | null;
|
|
2053
|
-
"agentic_enabled"?: boolean | null;
|
|
2054
|
-
"version": number;
|
|
2055
|
-
}
|
|
1605
|
+
export type ApiUpdateWorkspacePatchInput = import("./contracts.types.js").CrmWorkspaceUpdateInput;
|
|
2056
1606
|
/** Backend response type: Workspace. */
|
|
2057
1607
|
export interface ApiUpdateWorkspacePatchResponseData extends JsonObject {
|
|
2058
1608
|
"id": string;
|
|
@@ -2061,19 +1611,19 @@ export interface ApiUpdateWorkspacePatchResponseData extends JsonObject {
|
|
|
2061
1611
|
"timezone": string;
|
|
2062
1612
|
"currency": string;
|
|
2063
1613
|
"ai_mode": string;
|
|
2064
|
-
"project_id"
|
|
2065
|
-
"project_owner_user_id"
|
|
1614
|
+
"project_id": string | null;
|
|
1615
|
+
"project_owner_user_id": string | null;
|
|
2066
1616
|
"agentic_enabled": boolean;
|
|
2067
|
-
"settings":
|
|
1617
|
+
"settings": JsonValue;
|
|
2068
1618
|
"version": number;
|
|
2069
1619
|
}
|
|
2070
1620
|
export type ApiUpdateWorkspacePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkspacePatchResponseData>;
|
|
2071
1621
|
/** Backend response type: api. */
|
|
2072
|
-
export type RouterStatusRouteGetHealthResponse = import("./types.js").
|
|
1622
|
+
export type RouterStatusRouteGetHealthResponse = import("./types.js").CrmHealthResponse;
|
|
2073
1623
|
/** Backend response type: api. */
|
|
2074
|
-
export type RouterStatusRouteGetLivezResponse = import("./types.js").
|
|
1624
|
+
export type RouterStatusRouteGetLivezResponse = import("./types.js").CrmHealthResponse;
|
|
2075
1625
|
/** Backend response type: api. */
|
|
2076
|
-
export type RouterReadinessRouteGetResponse = import("./types.js").
|
|
1626
|
+
export type RouterReadinessRouteGetResponse = import("./types.js").CrmReadinessResponse;
|
|
2077
1627
|
/** Backend response type: api. */
|
|
2078
|
-
export type RouterStatusRouteGetUpResponse = import("./types.js").
|
|
1628
|
+
export type RouterStatusRouteGetUpResponse = import("./types.js").CrmHealthResponse;
|
|
2079
1629
|
//# sourceMappingURL=operations.types.d.ts.map
|