@masonlandcattle/servicetitan-sdk 0.1.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.
@@ -0,0 +1,2377 @@
1
+ type Environment = "production" | "development";
2
+ interface Logger {
3
+ debug?: (...args: unknown[]) => void;
4
+ info?: (...args: unknown[]) => void;
5
+ warn?: (...args: unknown[]) => void;
6
+ error?: (...args: unknown[]) => void;
7
+ }
8
+ interface ServiceTitanClientOptions {
9
+ tenantId?: string;
10
+ appKey?: string;
11
+ clientId?: string;
12
+ clientSecret?: string;
13
+ environment?: Environment;
14
+ authUrl?: string;
15
+ apiBaseUrl?: string;
16
+ timeoutMs?: number;
17
+ retries?: number;
18
+ retryInitialDelayMs?: number;
19
+ maxConcurrent?: number;
20
+ minTimeMs?: number;
21
+ logger?: Logger;
22
+ }
23
+ type HttpMethod = "get" | "post" | "put" | "patch" | "delete";
24
+
25
+ declare class ServiceTitanClient {
26
+ private axiosInstance;
27
+ private limiter;
28
+ private options;
29
+ private token;
30
+ private tokenExpiry;
31
+ private refreshing;
32
+ constructor(opts?: ServiceTitanClientOptions);
33
+ private refreshToken;
34
+ authenticate(): Promise<string>;
35
+ private delay;
36
+ private computeBackoff;
37
+ private isRetryable;
38
+ private schedule;
39
+ request<T = any>(method: HttpMethod, endpoint: string, options?: {
40
+ params?: Record<string, any>;
41
+ data?: any;
42
+ headers?: Record<string, string>;
43
+ retries?: number;
44
+ }): Promise<T>;
45
+ buildPath(options: {
46
+ category: string;
47
+ subject: string;
48
+ version?: string;
49
+ tenantScoped?: boolean;
50
+ idOrSubpath?: string;
51
+ }): string;
52
+ getAll<T = any>(path: string, params?: Record<string, unknown>, pageSize?: number): Promise<T[]>;
53
+ }
54
+ declare function createClientFromEnv(overrides?: ServiceTitanClientOptions): ServiceTitanClient;
55
+
56
+ /**
57
+ * Get Invoices list
58
+ * GET /accounting/v2/tenant/{tenantId}/invoices
59
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, number, customerId, exported, createdAfter, createdBefore, status
60
+ */
61
+ declare function listInvoices(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
62
+ /**
63
+ * Get all Invoices (auto-pagination)
64
+ */
65
+ declare function getAllInvoices(client: ServiceTitanClient, params?: Record<string, unknown>, pageSize?: number): Promise<any[]>;
66
+ /**
67
+ * Create Adjustment Invoice
68
+ * POST /accounting/v2/tenant/{tenantId}/invoices/adjustment
69
+ * - Required body depends on adjustment type; typically includes original invoice and adjustments
70
+ */
71
+ declare function createAdjustmentInvoice(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
72
+ /**
73
+ * Get Invoice Custom Field Types
74
+ * GET /accounting/v2/tenant/{tenantId}/invoices/custom-field-types
75
+ */
76
+ declare function getInvoiceCustomFieldTypes(client: ServiceTitanClient): Promise<any>;
77
+ /**
78
+ * Update Invoice Custom Fields
79
+ * POST /accounting/v2/tenant/{tenantId}/invoices/{id}/custom-fields
80
+ */
81
+ declare function updateInvoiceCustomFields(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
82
+ /**
83
+ * Mark Invoices as exported
84
+ * POST /accounting/v2/tenant/{tenantId}/invoices/mark-as-exported
85
+ * - Required body: { ids: number[] }
86
+ */
87
+ declare function markInvoicesAsExported(client: ServiceTitanClient, ids: Array<number | string>): Promise<any>;
88
+ /**
89
+ * Update Invoice
90
+ * PUT /accounting/v2/tenant/{tenantId}/invoices/{id}
91
+ */
92
+ declare function updateInvoice(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
93
+ /**
94
+ * Update Invoice Items
95
+ * PUT /accounting/v2/tenant/{tenantId}/invoices/{id}/items
96
+ */
97
+ declare function updateInvoiceItems(client: ServiceTitanClient, id: number | string, items: Record<string, unknown>): Promise<any>;
98
+ /**
99
+ * Delete Invoice Item
100
+ * DELETE /accounting/v2/tenant/{tenantId}/invoices/{invoiceId}/items/{itemId}
101
+ */
102
+ declare function deleteInvoiceItem(client: ServiceTitanClient, invoiceId: number | string, itemId: number | string): Promise<any>;
103
+
104
+ /**
105
+ * Get Inventory Bills (paginated list)
106
+ * GET /accounting/v2/tenant/{tenantId}/inventory-bills
107
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, number, vendorId, exported, createdAfter, createdBefore, status
108
+ */
109
+ declare function listInventoryBills(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
110
+ /**
111
+ * Get all Inventory Bills (auto-pagination)
112
+ */
113
+ declare function getAllInventoryBills(client: ServiceTitanClient, params?: Record<string, unknown>, pageSize?: number): Promise<any[]>;
114
+ /**
115
+ * Export Inventory Bills
116
+ * POST /accounting/v2/tenant/{tenantId}/inventory-bills/export
117
+ * - Required body fields depend on export target; typically includes filters and destination
118
+ */
119
+ declare function exportInventoryBills(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
120
+ /**
121
+ * Get Inventory Bill Custom Field Types
122
+ * GET /accounting/v2/tenant/{tenantId}/inventory-bills/custom-field-types
123
+ */
124
+ declare function getInventoryBillCustomFieldTypes(client: ServiceTitanClient): Promise<any>;
125
+ /**
126
+ * Update Inventory Bill Custom Fields
127
+ * POST /accounting/v2/tenant/{tenantId}/inventory-bills/{id}/custom-fields
128
+ * - Required: id, body with custom fields
129
+ */
130
+ declare function updateInventoryBillCustomFields(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
131
+ /**
132
+ * Mark Inventory Bills as exported
133
+ * POST /accounting/v2/tenant/{tenantId}/inventory-bills/mark-as-exported
134
+ * - Required body: { ids: number[] }
135
+ */
136
+ declare function markInventoryBillsAsExported(client: ServiceTitanClient, ids: Array<number | string>): Promise<any>;
137
+
138
+ /**
139
+ * Get Journal Entries
140
+ * GET /accounting/v2/tenant/{tenantId}/journal-entries
141
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, number, exported, createdAfter, createdBefore
142
+ */
143
+ declare function listJournalEntries(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
144
+ /**
145
+ * Get all Journal Entries (auto-pagination)
146
+ */
147
+ declare function getAllJournalEntries(client: ServiceTitanClient, params?: Record<string, unknown>, pageSize?: number): Promise<any[]>;
148
+ /**
149
+ * Get Journal Entry Details
150
+ * GET /accounting/v2/tenant/{tenantId}/journal-entries/{id}
151
+ */
152
+ declare function getJournalEntryDetails(client: ServiceTitanClient, id: number | string): Promise<any>;
153
+ /**
154
+ * Get Journal Entries summary
155
+ * GET /accounting/v2/tenant/{tenantId}/journal-entries/summary
156
+ */
157
+ declare function getJournalEntriesSummary(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
158
+ /**
159
+ * Update Journal Entry
160
+ * PUT /accounting/v2/tenant/{tenantId}/journal-entries/{id}
161
+ */
162
+ declare function updateJournalEntry(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
163
+ /**
164
+ * Sync Update Journal Entries
165
+ * POST /accounting/v2/tenant/{tenantId}/journal-entries/sync-update
166
+ * - Body: batch updates for entries
167
+ */
168
+ declare function syncUpdateJournalEntries(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
169
+
170
+ /**
171
+ * Get Payment Terms list
172
+ * GET /accounting/v2/tenant/{tenantId}/payment-terms
173
+ * - Optional params: page, pageSize
174
+ */
175
+ declare function listPaymentTerms(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
176
+ /**
177
+ * Get all Payment Terms (auto-pagination)
178
+ */
179
+ declare function getAllPaymentTerms(client: ServiceTitanClient, params?: Record<string, unknown>, pageSize?: number): Promise<any[]>;
180
+ /**
181
+ * Get Payment Term model
182
+ * GET /accounting/v2/tenant/{tenantId}/payment-terms/model
183
+ */
184
+ declare function getPaymentTermModel(client: ServiceTitanClient): Promise<any>;
185
+
186
+ /**
187
+ * Get Payment Types list
188
+ * GET /accounting/v2/tenant/{tenantId}/payment-types
189
+ * - Optional params: page, pageSize
190
+ */
191
+ declare function listPaymentTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
192
+ /**
193
+ * Get all Payment Types (auto-pagination)
194
+ */
195
+ declare function getAllPaymentTypes(client: ServiceTitanClient, params?: Record<string, unknown>, pageSize?: number): Promise<any[]>;
196
+ /**
197
+ * Get Payment Type by ID
198
+ * GET /accounting/v2/tenant/{tenantId}/payment-types/{id}
199
+ */
200
+ declare function getPaymentType(client: ServiceTitanClient, id: number | string): Promise<any>;
201
+
202
+ /**
203
+ * Get Payments list
204
+ * GET /accounting/v2/tenant/{tenantId}/payments
205
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, number, customerId, exported, createdAfter, createdBefore, status
206
+ */
207
+ declare function listPayments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
208
+ /**
209
+ * Get all Payments (auto-pagination)
210
+ */
211
+ declare function getAllPayments(client: ServiceTitanClient, params?: Record<string, unknown>, pageSize?: number): Promise<any[]>;
212
+ /**
213
+ * Update Payment custom fields
214
+ * POST /accounting/v2/tenant/{tenantId}/payments/{id}/custom-fields
215
+ */
216
+ declare function updatePaymentCustomFields(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
217
+ /**
218
+ * Get Payment custom field types
219
+ * GET /accounting/v2/tenant/{tenantId}/payments/custom-field-types
220
+ */
221
+ declare function getPaymentCustomFieldTypes(client: ServiceTitanClient): Promise<any>;
222
+ /**
223
+ * Update Payment status
224
+ * POST /accounting/v2/tenant/{tenantId}/payments/{id}/status
225
+ */
226
+ declare function updatePaymentStatus(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
227
+ /**
228
+ * Update Payment
229
+ * PUT /accounting/v2/tenant/{tenantId}/payments/{id}
230
+ */
231
+ declare function updatePayment(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
232
+
233
+ /**
234
+ * Get Tax Zones list
235
+ * GET /accounting/v2/tenant/{tenantId}/tax-zones
236
+ * - Optional params: page, pageSize
237
+ */
238
+ declare function listTaxZones(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
239
+ /**
240
+ * Get all Tax Zones (auto-pagination)
241
+ */
242
+ declare function getAllTaxZones(client: ServiceTitanClient, params?: Record<string, unknown>, pageSize?: number): Promise<any[]>;
243
+
244
+ /**
245
+ * Get AP Credits list
246
+ * GET /accounting/v2/tenant/{tenantId}/ap-credits
247
+ * - Required: none
248
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, number, vendorId, exported, createdAfter, createdBefore
249
+ */
250
+ declare function listApCredits(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
251
+ /**
252
+ * Mark AP Credits as exported
253
+ * POST /accounting/v2/tenant/{tenantId}/ap-credits/mark-as-exported
254
+ * - Required body: { ids: number[] }
255
+ */
256
+ declare function markApCreditsAsExported(client: ServiceTitanClient, ids: Array<number | string>): Promise<any>;
257
+
258
+ /**
259
+ * Get AP Payments list
260
+ * GET /accounting/v2/tenant/{tenantId}/ap-payments
261
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, number, vendorId, exported, createdAfter, createdBefore, status
262
+ */
263
+ declare function listApPayments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
264
+ /**
265
+ * Mark AP Payments as exported
266
+ * POST /accounting/v2/tenant/{tenantId}/ap-payments/mark-as-exported
267
+ * - Required body: { ids: number[] }
268
+ */
269
+ declare function markApPaymentsAsExported(client: ServiceTitanClient, ids: Array<number | string>): Promise<any>;
270
+
271
+ /**
272
+ * Get GL Accounts list
273
+ * GET /accounting/v2/tenant/{tenantId}/gl-accounts
274
+ * - Optional params: page, pageSize, type, number, updatedAfter, updatedBefore
275
+ */
276
+ declare function listGlAccounts(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
277
+ /**
278
+ * Get GL Account by ID
279
+ * GET /accounting/v2/tenant/{tenantId}/gl-accounts/{id}
280
+ */
281
+ declare function getGlAccount(client: ServiceTitanClient, id: number | string): Promise<any>;
282
+ /**
283
+ * Create GL Account
284
+ * POST /accounting/v2/tenant/{tenantId}/gl-accounts
285
+ * - Required fields vary by type; typical fields: name, number, type
286
+ */
287
+ declare function createGlAccount(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
288
+ /**
289
+ * Update GL Account
290
+ * PUT /accounting/v2/tenant/{tenantId}/gl-accounts/{id}
291
+ */
292
+ declare function updateGlAccount(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
293
+ /**
294
+ * Get GL Account Types
295
+ * GET /accounting/v2/tenant/{tenantId}/gl-account-types
296
+ */
297
+ declare function listGlAccountTypes(client: ServiceTitanClient): Promise<any>;
298
+
299
+ declare const index$l_createAdjustmentInvoice: typeof createAdjustmentInvoice;
300
+ declare const index$l_createGlAccount: typeof createGlAccount;
301
+ declare const index$l_deleteInvoiceItem: typeof deleteInvoiceItem;
302
+ declare const index$l_exportInventoryBills: typeof exportInventoryBills;
303
+ declare const index$l_getAllInventoryBills: typeof getAllInventoryBills;
304
+ declare const index$l_getAllInvoices: typeof getAllInvoices;
305
+ declare const index$l_getAllJournalEntries: typeof getAllJournalEntries;
306
+ declare const index$l_getAllPaymentTerms: typeof getAllPaymentTerms;
307
+ declare const index$l_getAllPaymentTypes: typeof getAllPaymentTypes;
308
+ declare const index$l_getAllPayments: typeof getAllPayments;
309
+ declare const index$l_getAllTaxZones: typeof getAllTaxZones;
310
+ declare const index$l_getGlAccount: typeof getGlAccount;
311
+ declare const index$l_getInventoryBillCustomFieldTypes: typeof getInventoryBillCustomFieldTypes;
312
+ declare const index$l_getInvoiceCustomFieldTypes: typeof getInvoiceCustomFieldTypes;
313
+ declare const index$l_getJournalEntriesSummary: typeof getJournalEntriesSummary;
314
+ declare const index$l_getJournalEntryDetails: typeof getJournalEntryDetails;
315
+ declare const index$l_getPaymentCustomFieldTypes: typeof getPaymentCustomFieldTypes;
316
+ declare const index$l_getPaymentTermModel: typeof getPaymentTermModel;
317
+ declare const index$l_getPaymentType: typeof getPaymentType;
318
+ declare const index$l_listApCredits: typeof listApCredits;
319
+ declare const index$l_listApPayments: typeof listApPayments;
320
+ declare const index$l_listGlAccountTypes: typeof listGlAccountTypes;
321
+ declare const index$l_listGlAccounts: typeof listGlAccounts;
322
+ declare const index$l_listInventoryBills: typeof listInventoryBills;
323
+ declare const index$l_listInvoices: typeof listInvoices;
324
+ declare const index$l_listJournalEntries: typeof listJournalEntries;
325
+ declare const index$l_listPaymentTerms: typeof listPaymentTerms;
326
+ declare const index$l_listPaymentTypes: typeof listPaymentTypes;
327
+ declare const index$l_listPayments: typeof listPayments;
328
+ declare const index$l_listTaxZones: typeof listTaxZones;
329
+ declare const index$l_markApCreditsAsExported: typeof markApCreditsAsExported;
330
+ declare const index$l_markApPaymentsAsExported: typeof markApPaymentsAsExported;
331
+ declare const index$l_markInventoryBillsAsExported: typeof markInventoryBillsAsExported;
332
+ declare const index$l_markInvoicesAsExported: typeof markInvoicesAsExported;
333
+ declare const index$l_syncUpdateJournalEntries: typeof syncUpdateJournalEntries;
334
+ declare const index$l_updateGlAccount: typeof updateGlAccount;
335
+ declare const index$l_updateInventoryBillCustomFields: typeof updateInventoryBillCustomFields;
336
+ declare const index$l_updateInvoice: typeof updateInvoice;
337
+ declare const index$l_updateInvoiceCustomFields: typeof updateInvoiceCustomFields;
338
+ declare const index$l_updateInvoiceItems: typeof updateInvoiceItems;
339
+ declare const index$l_updateJournalEntry: typeof updateJournalEntry;
340
+ declare const index$l_updatePayment: typeof updatePayment;
341
+ declare const index$l_updatePaymentCustomFields: typeof updatePaymentCustomFields;
342
+ declare const index$l_updatePaymentStatus: typeof updatePaymentStatus;
343
+ declare namespace index$l {
344
+ export { index$l_createAdjustmentInvoice as createAdjustmentInvoice, index$l_createGlAccount as createGlAccount, index$l_deleteInvoiceItem as deleteInvoiceItem, index$l_exportInventoryBills as exportInventoryBills, index$l_getAllInventoryBills as getAllInventoryBills, index$l_getAllInvoices as getAllInvoices, index$l_getAllJournalEntries as getAllJournalEntries, index$l_getAllPaymentTerms as getAllPaymentTerms, index$l_getAllPaymentTypes as getAllPaymentTypes, index$l_getAllPayments as getAllPayments, index$l_getAllTaxZones as getAllTaxZones, index$l_getGlAccount as getGlAccount, index$l_getInventoryBillCustomFieldTypes as getInventoryBillCustomFieldTypes, index$l_getInvoiceCustomFieldTypes as getInvoiceCustomFieldTypes, index$l_getJournalEntriesSummary as getJournalEntriesSummary, index$l_getJournalEntryDetails as getJournalEntryDetails, index$l_getPaymentCustomFieldTypes as getPaymentCustomFieldTypes, index$l_getPaymentTermModel as getPaymentTermModel, index$l_getPaymentType as getPaymentType, index$l_listApCredits as listApCredits, index$l_listApPayments as listApPayments, index$l_listGlAccountTypes as listGlAccountTypes, index$l_listGlAccounts as listGlAccounts, index$l_listInventoryBills as listInventoryBills, index$l_listInvoices as listInvoices, index$l_listJournalEntries as listJournalEntries, index$l_listPaymentTerms as listPaymentTerms, index$l_listPaymentTypes as listPaymentTypes, index$l_listPayments as listPayments, index$l_listTaxZones as listTaxZones, index$l_markApCreditsAsExported as markApCreditsAsExported, index$l_markApPaymentsAsExported as markApPaymentsAsExported, index$l_markInventoryBillsAsExported as markInventoryBillsAsExported, index$l_markInvoicesAsExported as markInvoicesAsExported, index$l_syncUpdateJournalEntries as syncUpdateJournalEntries, index$l_updateGlAccount as updateGlAccount, index$l_updateInventoryBillCustomFields as updateInventoryBillCustomFields, index$l_updateInvoice as updateInvoice, index$l_updateInvoiceCustomFields as updateInvoiceCustomFields, index$l_updateInvoiceItems as updateInvoiceItems, index$l_updateJournalEntry as updateJournalEntry, index$l_updatePayment as updatePayment, index$l_updatePaymentCustomFields as updatePaymentCustomFields, index$l_updatePaymentStatus as updatePaymentStatus };
345
+ }
346
+
347
+ /**
348
+ * Bulk add tags to entities
349
+ * POST /crm/v2/tenant/{tenantId}/bulk-tags/add-tags
350
+ * - Required body: { entityType: 'customers'|'locations'|'leads'|'contacts', entityIds: number[], tagIds: number[] }
351
+ */
352
+ declare function addTagsBulk(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
353
+ /**
354
+ * Bulk remove tags from entities
355
+ * POST /crm/v2/tenant/{tenantId}/bulk-tags/remove-tags
356
+ * - Required body: { entityType: 'customers'|'locations'|'leads'|'contacts', entityIds: number[], tagIds: number[] }
357
+ */
358
+ declare function removeTagsBulk(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
359
+
360
+ /**
361
+ * List contact methods
362
+ * GET /crm/v2/tenant/{tenantId}/contact-methods
363
+ * - Optional params: page, pageSize, contactId, type
364
+ */
365
+ declare function listContactMethods(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
366
+ /**
367
+ * Create contact method
368
+ * POST /crm/v2/tenant/{tenantId}/contact-methods
369
+ * - Required fields depend on type; typical: contactId, type, value
370
+ */
371
+ declare function createContactMethod(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
372
+ /**
373
+ * Update contact method
374
+ * PUT /crm/v2/tenant/{tenantId}/contact-methods/{id}
375
+ */
376
+ declare function updateContactMethod(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
377
+ /**
378
+ * Upsert contact method
379
+ * POST /crm/v2/tenant/{tenantId}/contact-methods/upsert
380
+ */
381
+ declare function upsertContactMethod(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
382
+ /**
383
+ * Get contact method by ID
384
+ * GET /crm/v2/tenant/{tenantId}/contact-methods/{id}
385
+ */
386
+ declare function getContactMethod(client: ServiceTitanClient, id: number | string): Promise<any>;
387
+ /**
388
+ * Delete contact method
389
+ * DELETE /crm/v2/tenant/{tenantId}/contact-methods/{id}
390
+ */
391
+ declare function deleteContactMethod(client: ServiceTitanClient, id: number | string): Promise<any>;
392
+
393
+ /**
394
+ * List contact method preferences
395
+ * GET /crm/v2/tenant/{tenantId}/contact-preferences
396
+ * - Optional params: page, pageSize, contactMethodId
397
+ */
398
+ declare function listContactMethodPreferences(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
399
+ /**
400
+ * Get contact method preference by ID
401
+ * GET /crm/v2/tenant/{tenantId}/contact-preferences/{id}
402
+ */
403
+ declare function getContactMethodPreference(client: ServiceTitanClient, id: number | string): Promise<any>;
404
+ /**
405
+ * Update contact method preference
406
+ * PUT /crm/v2/tenant/{tenantId}/contact-preferences/{id}
407
+ */
408
+ declare function updateContactMethodPreference(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
409
+
410
+ /**
411
+ * List contacts
412
+ * GET /crm/v2/tenant/{tenantId}/contacts
413
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, search
414
+ */
415
+ declare function listContacts(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
416
+ /**
417
+ * Create contact
418
+ * POST /crm/v2/tenant/{tenantId}/contacts
419
+ */
420
+ declare function createContact(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
421
+ /**
422
+ * Update contact
423
+ * PATCH /crm/v2/tenant/{tenantId}/contacts/{id}
424
+ */
425
+ declare function updateContact(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
426
+ /**
427
+ * Replace contact
428
+ * PUT /crm/v2/tenant/{tenantId}/contacts/{id}
429
+ */
430
+ declare function replaceContact(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
431
+ /**
432
+ * Get contact by ID
433
+ * GET /crm/v2/tenant/{tenantId}/contacts/{id}
434
+ */
435
+ declare function getContact(client: ServiceTitanClient, id: number | string): Promise<any>;
436
+ /**
437
+ * Delete contact
438
+ * DELETE /crm/v2/tenant/{tenantId}/contacts/{id}
439
+ */
440
+ declare function deleteContact(client: ServiceTitanClient, id: number | string): Promise<any>;
441
+ /**
442
+ * Search contact methods
443
+ * GET /crm/v2/tenant/{tenantId}/contacts/contact-methods:search
444
+ */
445
+ declare function searchContactMethods(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
446
+ /**
447
+ * Get preference metadata list
448
+ * GET /crm/v2/tenant/{tenantId}/contacts/preference-metadata
449
+ */
450
+ declare function getContactsPreferenceMetadataList(client: ServiceTitanClient): Promise<any>;
451
+ /**
452
+ * Get by relationship id
453
+ * GET /crm/v2/tenant/{tenantId}/contacts/relationships/{relationshipId}
454
+ */
455
+ declare function getContactByRelationshipId(client: ServiceTitanClient, relationshipId: number | string): Promise<any>;
456
+ /**
457
+ * Get contact relationship list
458
+ * GET /crm/v2/tenant/{tenantId}/contacts/{id}/relationships
459
+ */
460
+ declare function getContactRelationshipList(client: ServiceTitanClient, id: number | string): Promise<any>;
461
+ /**
462
+ * Delete contact relationship
463
+ * DELETE /crm/v2/tenant/{tenantId}/contacts/{id}/relationships/{relationshipId}
464
+ */
465
+ declare function deleteContactRelationship(client: ServiceTitanClient, id: number | string, relationshipId: number | string): Promise<any>;
466
+ /**
467
+ * Create contact relationship
468
+ * POST /crm/v2/tenant/{tenantId}/contacts/{id}/relationships
469
+ */
470
+ declare function createContactRelationship(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
471
+
472
+ /**
473
+ * List customers
474
+ * GET /crm/v2/tenant/{tenantId}/customers
475
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, search
476
+ */
477
+ declare function listCustomers(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
478
+ /**
479
+ * Create customer
480
+ * POST /crm/v2/tenant/{tenantId}/customers
481
+ */
482
+ declare function createCustomer(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
483
+ /**
484
+ * Update customer
485
+ * PATCH /crm/v2/tenant/{tenantId}/customers/{id}
486
+ */
487
+ declare function updateCustomer(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
488
+ /**
489
+ * Get customer by ID
490
+ * GET /crm/v2/tenant/{tenantId}/customers/{id}
491
+ */
492
+ declare function getCustomer(client: ServiceTitanClient, id: number | string): Promise<any>;
493
+ /**
494
+ * Get modified contacts list for customer
495
+ * GET /crm/v2/tenant/{tenantId}/customers/{id}/modified-contacts
496
+ */
497
+ declare function getModifiedContactsList(client: ServiceTitanClient, id: number | string): Promise<any>;
498
+ /**
499
+ * Get customer custom field types
500
+ * GET /crm/v2/tenant/{tenantId}/customers/custom-field-types
501
+ */
502
+ declare function getCustomerCustomFieldTypes(client: ServiceTitanClient): Promise<any>;
503
+ /**
504
+ * Get customer contacts list
505
+ * GET /crm/v2/tenant/{tenantId}/customers/{id}/contacts
506
+ */
507
+ declare function getCustomerContactList(client: ServiceTitanClient, id: number | string): Promise<any>;
508
+ /**
509
+ * Create customer contact
510
+ * POST /crm/v2/tenant/{tenantId}/customers/{id}/contacts
511
+ */
512
+ declare function createCustomerContact(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
513
+ /**
514
+ * Update customer contact
515
+ * PUT /crm/v2/tenant/{tenantId}/customers/{id}/contacts/{contactId}
516
+ */
517
+ declare function updateCustomerContact(client: ServiceTitanClient, id: number | string, contactId: number | string, data: Record<string, unknown>): Promise<any>;
518
+ /**
519
+ * Delete customer contact
520
+ * DELETE /crm/v2/tenant/{tenantId}/customers/{id}/contacts/{contactId}
521
+ */
522
+ declare function deleteCustomerContact(client: ServiceTitanClient, id: number | string, contactId: number | string): Promise<any>;
523
+ /**
524
+ * Get customer notes
525
+ * GET /crm/v2/tenant/{tenantId}/customers/{id}/notes
526
+ */
527
+ declare function getCustomerNotes(client: ServiceTitanClient, id: number | string): Promise<any>;
528
+ /**
529
+ * Create customer note
530
+ * POST /crm/v2/tenant/{tenantId}/customers/{id}/notes
531
+ */
532
+ declare function createCustomerNote(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
533
+ /**
534
+ * Delete customer note
535
+ * DELETE /crm/v2/tenant/{tenantId}/customers/{id}/notes/{noteId}
536
+ */
537
+ declare function deleteCustomerNote(client: ServiceTitanClient, id: number | string, noteId: number | string): Promise<any>;
538
+ /**
539
+ * Add tag to customer
540
+ * POST /crm/v2/tenant/{tenantId}/customers/{id}/tags/{tagId}
541
+ */
542
+ declare function createCustomerTag(client: ServiceTitanClient, id: number | string, tagId: number | string): Promise<any>;
543
+ /**
544
+ * Remove tag from customer
545
+ * DELETE /crm/v2/tenant/{tenantId}/customers/{id}/tags/{tagId}
546
+ */
547
+ declare function deleteCustomerTag(client: ServiceTitanClient, id: number | string, tagId: number | string): Promise<any>;
548
+
549
+ /**
550
+ * List leads
551
+ * GET /crm/v2/tenant/{tenantId}/leads
552
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, status
553
+ */
554
+ declare function listLeads(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
555
+ /**
556
+ * Create lead
557
+ * POST /crm/v2/tenant/{tenantId}/leads
558
+ */
559
+ declare function createLead(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
560
+ /**
561
+ * Submit lead form
562
+ * POST /crm/v2/tenant/{tenantId}/leads/submit
563
+ */
564
+ declare function submitLeadForm(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
565
+ /**
566
+ * Update lead
567
+ * PATCH /crm/v2/tenant/{tenantId}/leads/{id}
568
+ */
569
+ declare function updateLead(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
570
+ /**
571
+ * Get lead by ID
572
+ * GET /crm/v2/tenant/{tenantId}/leads/{id}
573
+ */
574
+ declare function getLead(client: ServiceTitanClient, id: number | string): Promise<any>;
575
+ /**
576
+ * Dismiss lead
577
+ * POST /crm/v2/tenant/{tenantId}/leads/{id}/dismiss
578
+ */
579
+ declare function dismissLead(client: ServiceTitanClient, id: number | string, data?: Record<string, unknown>): Promise<any>;
580
+ /**
581
+ * Create follow up for lead
582
+ * POST /crm/v2/tenant/{tenantId}/leads/{id}/follow-ups
583
+ */
584
+ declare function createLeadFollowUp(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
585
+ /**
586
+ * Get lead notes
587
+ * GET /crm/v2/tenant/{tenantId}/leads/{id}/notes
588
+ */
589
+ declare function getLeadNotes(client: ServiceTitanClient, id: number | string): Promise<any>;
590
+ /**
591
+ * Create lead note
592
+ * POST /crm/v2/tenant/{tenantId}/leads/{id}/notes
593
+ */
594
+ declare function createLeadNote(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
595
+
596
+ /**
597
+ * List locations
598
+ * GET /crm/v2/tenant/{tenantId}/locations
599
+ * - Optional params: page, pageSize, updatedAfter, updatedBefore, search
600
+ */
601
+ declare function listLocations(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
602
+ /**
603
+ * Create location
604
+ * POST /crm/v2/tenant/{tenantId}/locations
605
+ */
606
+ declare function createLocation(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
607
+ /**
608
+ * Update location
609
+ * PATCH /crm/v2/tenant/{tenantId}/locations/{id}
610
+ */
611
+ declare function updateLocation(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
612
+ /**
613
+ * Get location by ID
614
+ * GET /crm/v2/tenant/{tenantId}/locations/{id}
615
+ */
616
+ declare function getLocation(client: ServiceTitanClient, id: number | string): Promise<any>;
617
+ /**
618
+ * Get location contact list
619
+ * GET /crm/v2/tenant/{tenantId}/locations/{id}/contacts
620
+ */
621
+ declare function getLocationContactList(client: ServiceTitanClient, id: number | string): Promise<any>;
622
+ /**
623
+ * Create location contact
624
+ * POST /crm/v2/tenant/{tenantId}/locations/{id}/contacts
625
+ */
626
+ declare function createLocationContact(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
627
+ /**
628
+ * Update location contact
629
+ * PUT /crm/v2/tenant/{tenantId}/locations/{id}/contacts/{contactId}
630
+ */
631
+ declare function updateLocationContact(client: ServiceTitanClient, id: number | string, contactId: number | string, data: Record<string, unknown>): Promise<any>;
632
+ /**
633
+ * Delete location contact
634
+ * DELETE /crm/v2/tenant/{tenantId}/locations/{id}/contacts/{contactId}
635
+ */
636
+ declare function deleteLocationContact(client: ServiceTitanClient, id: number | string, contactId: number | string): Promise<any>;
637
+ /**
638
+ * Get location custom field types
639
+ * GET /crm/v2/tenant/{tenantId}/locations/custom-field-types
640
+ */
641
+ declare function getLocationCustomFieldTypes(client: ServiceTitanClient): Promise<any>;
642
+ /**
643
+ * Get location notes
644
+ * GET /crm/v2/tenant/{tenantId}/locations/{id}/notes
645
+ */
646
+ declare function getLocationNotes(client: ServiceTitanClient, id: number | string): Promise<any>;
647
+ /**
648
+ * Create location note
649
+ * POST /crm/v2/tenant/{tenantId}/locations/{id}/notes
650
+ */
651
+ declare function createLocationNote(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
652
+ /**
653
+ * Delete location note
654
+ * DELETE /crm/v2/tenant/{tenantId}/locations/{id}/notes/{noteId}
655
+ */
656
+ declare function deleteLocationNote(client: ServiceTitanClient, id: number | string, noteId: number | string): Promise<any>;
657
+ /**
658
+ * Add tag to location
659
+ * POST /crm/v2/tenant/{tenantId}/locations/{id}/tags/{tagId}
660
+ */
661
+ declare function createLocationTag(client: ServiceTitanClient, id: number | string, tagId: number | string): Promise<any>;
662
+ /**
663
+ * Remove tag from location
664
+ * DELETE /crm/v2/tenant/{tenantId}/locations/{id}/tags/{tagId}
665
+ */
666
+ declare function deleteLocationTag(client: ServiceTitanClient, id: number | string, tagId: number | string): Promise<any>;
667
+
668
+ /**
669
+ * CRM Exports
670
+ * GET /crm/v2/tenant/{tenantId}/export/*
671
+ */
672
+ declare function exportBookings(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
673
+ declare function exportCustomers(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
674
+ declare function exportCustomerContacts(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
675
+ declare function exportLeads(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
676
+ declare function exportLocations(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
677
+ declare function exportLocationContacts(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
678
+
679
+ /**
680
+ * Booking Provider Tags
681
+ * /crm/v2/tenant/{tenantId}/booking-provider-tags
682
+ */
683
+ declare function listBookingProviderTags(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
684
+ declare function createBookingProviderTag(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
685
+ declare function getBookingProviderTag(client: ServiceTitanClient, id: number | string): Promise<any>;
686
+ declare function updateBookingProviderTag(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
687
+ declare function deleteBookingProviderTag(client: ServiceTitanClient, id: number | string): Promise<any>;
688
+
689
+ /**
690
+ * Bookings (tenant-scoped)
691
+ * /crm/v2/tenant/{tenantId}/bookings
692
+ */
693
+ declare function listBookings(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
694
+ declare function createBooking(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
695
+ declare function getBooking(client: ServiceTitanClient, id: number | string): Promise<any>;
696
+ declare function updateBooking(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
697
+ declare function getBookingContacts(client: ServiceTitanClient, id: number | string, params?: Record<string, unknown>): Promise<any>;
698
+ declare function createBookingContact(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
699
+ declare function listProviderBookings(client: ServiceTitanClient, provider: string, params?: Record<string, unknown>): Promise<any>;
700
+ declare function createProviderBooking(client: ServiceTitanClient, provider: string, data: Record<string, unknown>): Promise<any>;
701
+ declare function getProviderBooking(client: ServiceTitanClient, provider: string, id: number | string): Promise<any>;
702
+ declare function updateProviderBooking(client: ServiceTitanClient, provider: string, id: number | string, data: Record<string, unknown>): Promise<any>;
703
+ declare function getProviderBookingContacts(client: ServiceTitanClient, provider: string, id: number | string, params?: Record<string, unknown>): Promise<any>;
704
+ declare function createProviderBookingContact(client: ServiceTitanClient, provider: string, id: number | string, data: Record<string, unknown>): Promise<any>;
705
+ declare function getProviderBookingContact(client: ServiceTitanClient, provider: string, id: number | string, contactId: number | string): Promise<any>;
706
+ declare function updateProviderBookingContact(client: ServiceTitanClient, provider: string, id: number | string, contactId: number | string, data: Record<string, unknown>): Promise<any>;
707
+ declare function deleteProviderBookingContact(client: ServiceTitanClient, provider: string, id: number | string, contactId: number | string): Promise<any>;
708
+
709
+ declare const index$k_addTagsBulk: typeof addTagsBulk;
710
+ declare const index$k_createBooking: typeof createBooking;
711
+ declare const index$k_createBookingContact: typeof createBookingContact;
712
+ declare const index$k_createBookingProviderTag: typeof createBookingProviderTag;
713
+ declare const index$k_createContact: typeof createContact;
714
+ declare const index$k_createContactMethod: typeof createContactMethod;
715
+ declare const index$k_createContactRelationship: typeof createContactRelationship;
716
+ declare const index$k_createCustomer: typeof createCustomer;
717
+ declare const index$k_createCustomerContact: typeof createCustomerContact;
718
+ declare const index$k_createCustomerNote: typeof createCustomerNote;
719
+ declare const index$k_createCustomerTag: typeof createCustomerTag;
720
+ declare const index$k_createLead: typeof createLead;
721
+ declare const index$k_createLeadFollowUp: typeof createLeadFollowUp;
722
+ declare const index$k_createLeadNote: typeof createLeadNote;
723
+ declare const index$k_createLocation: typeof createLocation;
724
+ declare const index$k_createLocationContact: typeof createLocationContact;
725
+ declare const index$k_createLocationNote: typeof createLocationNote;
726
+ declare const index$k_createLocationTag: typeof createLocationTag;
727
+ declare const index$k_createProviderBooking: typeof createProviderBooking;
728
+ declare const index$k_createProviderBookingContact: typeof createProviderBookingContact;
729
+ declare const index$k_deleteBookingProviderTag: typeof deleteBookingProviderTag;
730
+ declare const index$k_deleteContact: typeof deleteContact;
731
+ declare const index$k_deleteContactMethod: typeof deleteContactMethod;
732
+ declare const index$k_deleteContactRelationship: typeof deleteContactRelationship;
733
+ declare const index$k_deleteCustomerContact: typeof deleteCustomerContact;
734
+ declare const index$k_deleteCustomerNote: typeof deleteCustomerNote;
735
+ declare const index$k_deleteCustomerTag: typeof deleteCustomerTag;
736
+ declare const index$k_deleteLocationContact: typeof deleteLocationContact;
737
+ declare const index$k_deleteLocationNote: typeof deleteLocationNote;
738
+ declare const index$k_deleteLocationTag: typeof deleteLocationTag;
739
+ declare const index$k_deleteProviderBookingContact: typeof deleteProviderBookingContact;
740
+ declare const index$k_dismissLead: typeof dismissLead;
741
+ declare const index$k_exportBookings: typeof exportBookings;
742
+ declare const index$k_exportCustomerContacts: typeof exportCustomerContacts;
743
+ declare const index$k_exportCustomers: typeof exportCustomers;
744
+ declare const index$k_exportLeads: typeof exportLeads;
745
+ declare const index$k_exportLocationContacts: typeof exportLocationContacts;
746
+ declare const index$k_exportLocations: typeof exportLocations;
747
+ declare const index$k_getBooking: typeof getBooking;
748
+ declare const index$k_getBookingContacts: typeof getBookingContacts;
749
+ declare const index$k_getBookingProviderTag: typeof getBookingProviderTag;
750
+ declare const index$k_getContact: typeof getContact;
751
+ declare const index$k_getContactByRelationshipId: typeof getContactByRelationshipId;
752
+ declare const index$k_getContactMethod: typeof getContactMethod;
753
+ declare const index$k_getContactMethodPreference: typeof getContactMethodPreference;
754
+ declare const index$k_getContactRelationshipList: typeof getContactRelationshipList;
755
+ declare const index$k_getContactsPreferenceMetadataList: typeof getContactsPreferenceMetadataList;
756
+ declare const index$k_getCustomer: typeof getCustomer;
757
+ declare const index$k_getCustomerContactList: typeof getCustomerContactList;
758
+ declare const index$k_getCustomerCustomFieldTypes: typeof getCustomerCustomFieldTypes;
759
+ declare const index$k_getCustomerNotes: typeof getCustomerNotes;
760
+ declare const index$k_getLead: typeof getLead;
761
+ declare const index$k_getLeadNotes: typeof getLeadNotes;
762
+ declare const index$k_getLocation: typeof getLocation;
763
+ declare const index$k_getLocationContactList: typeof getLocationContactList;
764
+ declare const index$k_getLocationCustomFieldTypes: typeof getLocationCustomFieldTypes;
765
+ declare const index$k_getLocationNotes: typeof getLocationNotes;
766
+ declare const index$k_getModifiedContactsList: typeof getModifiedContactsList;
767
+ declare const index$k_getProviderBooking: typeof getProviderBooking;
768
+ declare const index$k_getProviderBookingContact: typeof getProviderBookingContact;
769
+ declare const index$k_getProviderBookingContacts: typeof getProviderBookingContacts;
770
+ declare const index$k_listBookingProviderTags: typeof listBookingProviderTags;
771
+ declare const index$k_listBookings: typeof listBookings;
772
+ declare const index$k_listContactMethodPreferences: typeof listContactMethodPreferences;
773
+ declare const index$k_listContactMethods: typeof listContactMethods;
774
+ declare const index$k_listContacts: typeof listContacts;
775
+ declare const index$k_listCustomers: typeof listCustomers;
776
+ declare const index$k_listLeads: typeof listLeads;
777
+ declare const index$k_listLocations: typeof listLocations;
778
+ declare const index$k_listProviderBookings: typeof listProviderBookings;
779
+ declare const index$k_removeTagsBulk: typeof removeTagsBulk;
780
+ declare const index$k_replaceContact: typeof replaceContact;
781
+ declare const index$k_searchContactMethods: typeof searchContactMethods;
782
+ declare const index$k_submitLeadForm: typeof submitLeadForm;
783
+ declare const index$k_updateBooking: typeof updateBooking;
784
+ declare const index$k_updateBookingProviderTag: typeof updateBookingProviderTag;
785
+ declare const index$k_updateContact: typeof updateContact;
786
+ declare const index$k_updateContactMethod: typeof updateContactMethod;
787
+ declare const index$k_updateContactMethodPreference: typeof updateContactMethodPreference;
788
+ declare const index$k_updateCustomer: typeof updateCustomer;
789
+ declare const index$k_updateCustomerContact: typeof updateCustomerContact;
790
+ declare const index$k_updateLead: typeof updateLead;
791
+ declare const index$k_updateLocation: typeof updateLocation;
792
+ declare const index$k_updateLocationContact: typeof updateLocationContact;
793
+ declare const index$k_updateProviderBooking: typeof updateProviderBooking;
794
+ declare const index$k_updateProviderBookingContact: typeof updateProviderBookingContact;
795
+ declare const index$k_upsertContactMethod: typeof upsertContactMethod;
796
+ declare namespace index$k {
797
+ export { index$k_addTagsBulk as addTagsBulk, index$k_createBooking as createBooking, index$k_createBookingContact as createBookingContact, index$k_createBookingProviderTag as createBookingProviderTag, index$k_createContact as createContact, index$k_createContactMethod as createContactMethod, index$k_createContactRelationship as createContactRelationship, index$k_createCustomer as createCustomer, index$k_createCustomerContact as createCustomerContact, index$k_createCustomerNote as createCustomerNote, index$k_createCustomerTag as createCustomerTag, index$k_createLead as createLead, index$k_createLeadFollowUp as createLeadFollowUp, index$k_createLeadNote as createLeadNote, index$k_createLocation as createLocation, index$k_createLocationContact as createLocationContact, index$k_createLocationNote as createLocationNote, index$k_createLocationTag as createLocationTag, index$k_createProviderBooking as createProviderBooking, index$k_createProviderBookingContact as createProviderBookingContact, index$k_deleteBookingProviderTag as deleteBookingProviderTag, index$k_deleteContact as deleteContact, index$k_deleteContactMethod as deleteContactMethod, index$k_deleteContactRelationship as deleteContactRelationship, index$k_deleteCustomerContact as deleteCustomerContact, index$k_deleteCustomerNote as deleteCustomerNote, index$k_deleteCustomerTag as deleteCustomerTag, index$k_deleteLocationContact as deleteLocationContact, index$k_deleteLocationNote as deleteLocationNote, index$k_deleteLocationTag as deleteLocationTag, index$k_deleteProviderBookingContact as deleteProviderBookingContact, index$k_dismissLead as dismissLead, index$k_exportBookings as exportBookings, index$k_exportCustomerContacts as exportCustomerContacts, index$k_exportCustomers as exportCustomers, index$k_exportLeads as exportLeads, index$k_exportLocationContacts as exportLocationContacts, index$k_exportLocations as exportLocations, index$k_getBooking as getBooking, index$k_getBookingContacts as getBookingContacts, index$k_getBookingProviderTag as getBookingProviderTag, index$k_getContact as getContact, index$k_getContactByRelationshipId as getContactByRelationshipId, index$k_getContactMethod as getContactMethod, index$k_getContactMethodPreference as getContactMethodPreference, index$k_getContactRelationshipList as getContactRelationshipList, index$k_getContactsPreferenceMetadataList as getContactsPreferenceMetadataList, index$k_getCustomer as getCustomer, index$k_getCustomerContactList as getCustomerContactList, index$k_getCustomerCustomFieldTypes as getCustomerCustomFieldTypes, index$k_getCustomerNotes as getCustomerNotes, index$k_getLead as getLead, index$k_getLeadNotes as getLeadNotes, index$k_getLocation as getLocation, index$k_getLocationContactList as getLocationContactList, index$k_getLocationCustomFieldTypes as getLocationCustomFieldTypes, index$k_getLocationNotes as getLocationNotes, index$k_getModifiedContactsList as getModifiedContactsList, index$k_getProviderBooking as getProviderBooking, index$k_getProviderBookingContact as getProviderBookingContact, index$k_getProviderBookingContacts as getProviderBookingContacts, index$k_listBookingProviderTags as listBookingProviderTags, index$k_listBookings as listBookings, index$k_listContactMethodPreferences as listContactMethodPreferences, index$k_listContactMethods as listContactMethods, index$k_listContacts as listContacts, index$k_listCustomers as listCustomers, index$k_listLeads as listLeads, index$k_listLocations as listLocations, index$k_listProviderBookings as listProviderBookings, index$k_removeTagsBulk as removeTagsBulk, index$k_replaceContact as replaceContact, index$k_searchContactMethods as searchContactMethods, index$k_submitLeadForm as submitLeadForm, index$k_updateBooking as updateBooking, index$k_updateBookingProviderTag as updateBookingProviderTag, index$k_updateContact as updateContact, index$k_updateContactMethod as updateContactMethod, index$k_updateContactMethodPreference as updateContactMethodPreference, index$k_updateCustomer as updateCustomer, index$k_updateCustomerContact as updateCustomerContact, index$k_updateLead as updateLead, index$k_updateLocation as updateLocation, index$k_updateLocationContact as updateLocationContact, index$k_updateProviderBooking as updateProviderBooking, index$k_updateProviderBookingContact as updateProviderBookingContact, index$k_upsertContactMethod as upsertContactMethod };
798
+ }
799
+
800
+ /**
801
+ * Dispatch Export
802
+ * GET /dispatch/v2/tenant/{tenantId}/export/appointment-assignments
803
+ */
804
+ /**
805
+ * Export appointment assignments
806
+ * GET /dispatch/v2/tenant/{tenantId}/export/appointment-assignments
807
+ */
808
+ declare function exportAppointmentAssignments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
809
+
810
+ /**
811
+ * Appointment Assignments
812
+ * /dispatch/v2/tenant/{tenantId}/appointment-assignments
813
+ */
814
+ /**
815
+ * List appointment assignments
816
+ * GET /dispatch/v2/tenant/{tenantId}/appointment-assignments
817
+ */
818
+ declare function listAppointmentAssignments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
819
+ /**
820
+ * Assign technicians to appointments
821
+ * POST /dispatch/v2/tenant/{tenantId}/appointment-assignments/assign-technicians
822
+ */
823
+ declare function assignTechnicians(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
824
+ /**
825
+ * Unassign technicians from appointments
826
+ * POST /dispatch/v2/tenant/{tenantId}/appointment-assignments/unassign-technicians
827
+ */
828
+ declare function unassignTechnicians(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
829
+
830
+ /**
831
+ * Arrival Windows
832
+ * /dispatch/v2/tenant/{tenantId}/arrival-windows
833
+ */
834
+ /**
835
+ * List arrival windows
836
+ * GET /dispatch/v2/tenant/{tenantId}/arrival-windows
837
+ */
838
+ declare function listArrivalWindows(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
839
+ /**
840
+ * Create arrival window
841
+ * POST /dispatch/v2/tenant/{tenantId}/arrival-windows
842
+ */
843
+ declare function createArrivalWindow(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
844
+ /**
845
+ * Get arrival window by ID
846
+ * GET /dispatch/v2/tenant/{tenantId}/arrival-windows/{id}
847
+ */
848
+ declare function getArrivalWindow(client: ServiceTitanClient, id: number | string): Promise<any>;
849
+ /**
850
+ * Update arrival window
851
+ * PATCH /dispatch/v2/tenant/{tenantId}/arrival-windows/{id}
852
+ */
853
+ declare function updateArrivalWindow(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
854
+ /**
855
+ * Get arrival windows configuration
856
+ * GET /dispatch/v2/tenant/{tenantId}/arrival-windows/configuration
857
+ */
858
+ declare function getArrivalWindowsConfiguration(client: ServiceTitanClient): Promise<any>;
859
+ /**
860
+ * Update arrival windows configuration
861
+ * PUT /dispatch/v2/tenant/{tenantId}/arrival-windows/configuration
862
+ */
863
+ declare function updateArrivalWindowsConfiguration(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
864
+ /**
865
+ * Activate arrival window
866
+ * POST /dispatch/v2/tenant/{tenantId}/arrival-windows/{id}/activated
867
+ */
868
+ declare function activateArrivalWindow(client: ServiceTitanClient, id: number | string): Promise<any>;
869
+
870
+ /**
871
+ * Business Hours
872
+ * /dispatch/v2/tenant/{tenantId}/business-hours
873
+ */
874
+ /**
875
+ * List business hours
876
+ * GET /dispatch/v2/tenant/{tenantId}/business-hours
877
+ */
878
+ declare function listBusinessHours(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
879
+ /**
880
+ * Create business hour
881
+ * POST /dispatch/v2/tenant/{tenantId}/business-hours
882
+ */
883
+ declare function createBusinessHour(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
884
+
885
+ /**
886
+ * Capacity
887
+ * /dispatch/v2/tenant/{tenantId}/capacity
888
+ */
889
+ /**
890
+ * Query capacity
891
+ * GET /dispatch/v2/tenant/{tenantId}/capacity
892
+ */
893
+ declare function getCapacity(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
894
+
895
+ /**
896
+ * List GPS pings for provider
897
+ * GET /dispatch/v2/{gps_provider}/gps-pings
898
+ */
899
+ declare function listGpsPings(client: ServiceTitanClient, provider: string, params?: Record<string, unknown>): Promise<any>;
900
+ /**
901
+ * Create GPS ping for provider
902
+ * POST /dispatch/v2/{gps_provider}/gps-pings
903
+ */
904
+ declare function createGpsPing(client: ServiceTitanClient, provider: string, data: Record<string, unknown>): Promise<any>;
905
+
906
+ /**
907
+ * Non-Job Appointments
908
+ * /dispatch/v2/tenant/{tenantId}/non-job-appointments
909
+ */
910
+ /**
911
+ * List non-job appointments
912
+ * GET /dispatch/v2/tenant/{tenantId}/non-job-appointments
913
+ */
914
+ declare function listNonJobAppointments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
915
+ /**
916
+ * Create non-job appointment
917
+ * POST /dispatch/v2/tenant/{tenantId}/non-job-appointments
918
+ */
919
+ declare function createNonJobAppointment(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
920
+ /**
921
+ * Get non-job appointment by ID
922
+ * GET /dispatch/v2/tenant/{tenantId}/non-job-appointments/{id}
923
+ */
924
+ declare function getNonJobAppointment(client: ServiceTitanClient, id: number | string): Promise<any>;
925
+ /**
926
+ * Update non-job appointment
927
+ * PATCH /dispatch/v2/tenant/{tenantId}/non-job-appointments/{id}
928
+ */
929
+ declare function updateNonJobAppointment(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
930
+ /**
931
+ * Delete non-job appointment
932
+ * DELETE /dispatch/v2/tenant/{tenantId}/non-job-appointments/{id}
933
+ */
934
+ declare function deleteNonJobAppointment(client: ServiceTitanClient, id: number | string): Promise<any>;
935
+
936
+ /**
937
+ * Teams
938
+ * /dispatch/v2/tenant/{tenantId}/teams
939
+ */
940
+ /**
941
+ * List teams
942
+ * GET /dispatch/v2/tenant/{tenantId}/teams
943
+ */
944
+ declare function listTeams(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
945
+ /**
946
+ * Create team
947
+ * POST /dispatch/v2/tenant/{tenantId}/teams
948
+ */
949
+ declare function createTeam(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
950
+ /**
951
+ * Get team by ID
952
+ * GET /dispatch/v2/tenant/{tenantId}/teams/{id}
953
+ */
954
+ declare function getTeam(client: ServiceTitanClient, id: number | string): Promise<any>;
955
+ /**
956
+ * Update team
957
+ * PATCH /dispatch/v2/tenant/{tenantId}/teams/{id}
958
+ */
959
+ declare function updateTeam(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
960
+
961
+ /**
962
+ * Technician Shifts
963
+ * /dispatch/v2/tenant/{tenantId}/technician-shifts
964
+ */
965
+ /**
966
+ * List technician shifts
967
+ * GET /dispatch/v2/tenant/{tenantId}/technician-shifts
968
+ */
969
+ declare function listTechnicianShifts(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
970
+ /**
971
+ * Create technician shift
972
+ * POST /dispatch/v2/tenant/{tenantId}/technician-shifts
973
+ */
974
+ declare function createTechnicianShift(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
975
+ /**
976
+ * Bulk delete technician shifts
977
+ * POST /dispatch/v2/tenant/{tenantId}/technician-shifts/bulk-delete
978
+ */
979
+ declare function bulkDeleteTechnicianShifts(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
980
+ /**
981
+ * Get technician shift by ID
982
+ * GET /dispatch/v2/tenant/{tenantId}/technician-shifts/{id}
983
+ */
984
+ declare function getTechnicianShift(client: ServiceTitanClient, id: number | string): Promise<any>;
985
+ /**
986
+ * Update technician shift
987
+ * PATCH /dispatch/v2/tenant/{tenantId}/technician-shifts/{id}
988
+ */
989
+ declare function updateTechnicianShift(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
990
+ /**
991
+ * Delete technician shift
992
+ * DELETE /dispatch/v2/tenant/{tenantId}/technician-shifts/{id}
993
+ */
994
+ declare function deleteTechnicianShift(client: ServiceTitanClient, id: number | string): Promise<any>;
995
+
996
+ /**
997
+ * Technician Tracking
998
+ * /dispatch/v2/tenant/{tenantId}/technician-tracking
999
+ */
1000
+ /**
1001
+ * Get technician tracking URL/status
1002
+ * GET /dispatch/v2/tenant/{tenantId}/technician-tracking?technicianId={technicianId}&appointmentId={appointmentId}
1003
+ */
1004
+ declare function getTechnicianTracking(client: ServiceTitanClient, params: {
1005
+ technicianId: number | string;
1006
+ appointmentId: number | string;
1007
+ }): Promise<any>;
1008
+
1009
+ /**
1010
+ * Zones
1011
+ * /dispatch/v2/tenant/{tenantId}/zones
1012
+ */
1013
+ /**
1014
+ * List zones
1015
+ * GET /dispatch/v2/tenant/{tenantId}/zones
1016
+ */
1017
+ declare function listZones(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1018
+ /**
1019
+ * Create zone
1020
+ * POST /dispatch/v2/tenant/{tenantId}/zones
1021
+ */
1022
+ declare function createZone(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1023
+ /**
1024
+ * Get zone by ID
1025
+ * GET /dispatch/v2/tenant/{tenantId}/zones/{id}
1026
+ */
1027
+ declare function getZone(client: ServiceTitanClient, id: number | string): Promise<any>;
1028
+ /**
1029
+ * Update zone
1030
+ * PATCH /dispatch/v2/tenant/{tenantId}/zones/{id}
1031
+ */
1032
+ declare function updateZone(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1033
+ /**
1034
+ * Delete zone
1035
+ * DELETE /dispatch/v2/tenant/{tenantId}/zones/{id}
1036
+ */
1037
+ declare function deleteZone(client: ServiceTitanClient, id: number | string): Promise<any>;
1038
+
1039
+ declare const index$j_activateArrivalWindow: typeof activateArrivalWindow;
1040
+ declare const index$j_assignTechnicians: typeof assignTechnicians;
1041
+ declare const index$j_bulkDeleteTechnicianShifts: typeof bulkDeleteTechnicianShifts;
1042
+ declare const index$j_createArrivalWindow: typeof createArrivalWindow;
1043
+ declare const index$j_createBusinessHour: typeof createBusinessHour;
1044
+ declare const index$j_createGpsPing: typeof createGpsPing;
1045
+ declare const index$j_createNonJobAppointment: typeof createNonJobAppointment;
1046
+ declare const index$j_createTeam: typeof createTeam;
1047
+ declare const index$j_createTechnicianShift: typeof createTechnicianShift;
1048
+ declare const index$j_createZone: typeof createZone;
1049
+ declare const index$j_deleteNonJobAppointment: typeof deleteNonJobAppointment;
1050
+ declare const index$j_deleteTechnicianShift: typeof deleteTechnicianShift;
1051
+ declare const index$j_deleteZone: typeof deleteZone;
1052
+ declare const index$j_exportAppointmentAssignments: typeof exportAppointmentAssignments;
1053
+ declare const index$j_getArrivalWindow: typeof getArrivalWindow;
1054
+ declare const index$j_getArrivalWindowsConfiguration: typeof getArrivalWindowsConfiguration;
1055
+ declare const index$j_getCapacity: typeof getCapacity;
1056
+ declare const index$j_getNonJobAppointment: typeof getNonJobAppointment;
1057
+ declare const index$j_getTeam: typeof getTeam;
1058
+ declare const index$j_getTechnicianShift: typeof getTechnicianShift;
1059
+ declare const index$j_getTechnicianTracking: typeof getTechnicianTracking;
1060
+ declare const index$j_getZone: typeof getZone;
1061
+ declare const index$j_listAppointmentAssignments: typeof listAppointmentAssignments;
1062
+ declare const index$j_listArrivalWindows: typeof listArrivalWindows;
1063
+ declare const index$j_listBusinessHours: typeof listBusinessHours;
1064
+ declare const index$j_listGpsPings: typeof listGpsPings;
1065
+ declare const index$j_listNonJobAppointments: typeof listNonJobAppointments;
1066
+ declare const index$j_listTeams: typeof listTeams;
1067
+ declare const index$j_listTechnicianShifts: typeof listTechnicianShifts;
1068
+ declare const index$j_listZones: typeof listZones;
1069
+ declare const index$j_unassignTechnicians: typeof unassignTechnicians;
1070
+ declare const index$j_updateArrivalWindow: typeof updateArrivalWindow;
1071
+ declare const index$j_updateArrivalWindowsConfiguration: typeof updateArrivalWindowsConfiguration;
1072
+ declare const index$j_updateNonJobAppointment: typeof updateNonJobAppointment;
1073
+ declare const index$j_updateTeam: typeof updateTeam;
1074
+ declare const index$j_updateTechnicianShift: typeof updateTechnicianShift;
1075
+ declare const index$j_updateZone: typeof updateZone;
1076
+ declare namespace index$j {
1077
+ export { index$j_activateArrivalWindow as activateArrivalWindow, index$j_assignTechnicians as assignTechnicians, index$j_bulkDeleteTechnicianShifts as bulkDeleteTechnicianShifts, index$j_createArrivalWindow as createArrivalWindow, index$j_createBusinessHour as createBusinessHour, index$j_createGpsPing as createGpsPing, index$j_createNonJobAppointment as createNonJobAppointment, index$j_createTeam as createTeam, index$j_createTechnicianShift as createTechnicianShift, index$j_createZone as createZone, index$j_deleteNonJobAppointment as deleteNonJobAppointment, index$j_deleteTechnicianShift as deleteTechnicianShift, index$j_deleteZone as deleteZone, index$j_exportAppointmentAssignments as exportAppointmentAssignments, index$j_getArrivalWindow as getArrivalWindow, index$j_getArrivalWindowsConfiguration as getArrivalWindowsConfiguration, index$j_getCapacity as getCapacity, index$j_getNonJobAppointment as getNonJobAppointment, index$j_getTeam as getTeam, index$j_getTechnicianShift as getTechnicianShift, index$j_getTechnicianTracking as getTechnicianTracking, index$j_getZone as getZone, index$j_listAppointmentAssignments as listAppointmentAssignments, index$j_listArrivalWindows as listArrivalWindows, index$j_listBusinessHours as listBusinessHours, index$j_listGpsPings as listGpsPings, index$j_listNonJobAppointments as listNonJobAppointments, index$j_listTeams as listTeams, index$j_listTechnicianShifts as listTechnicianShifts, index$j_listZones as listZones, index$j_unassignTechnicians as unassignTechnicians, index$j_updateArrivalWindow as updateArrivalWindow, index$j_updateArrivalWindowsConfiguration as updateArrivalWindowsConfiguration, index$j_updateNonJobAppointment as updateNonJobAppointment, index$j_updateTeam as updateTeam, index$j_updateTechnicianShift as updateTechnicianShift, index$j_updateZone as updateZone };
1078
+ }
1079
+
1080
+ /**
1081
+ * Export installed equipment
1082
+ * GET /equipment-systems/v2/tenant/{tenantId}/export/installed-equipment
1083
+ *
1084
+ * Optional query params:
1085
+ * - page: number
1086
+ * - pageSize: number
1087
+ * - modifiedOnOrAfter: string (ISO datetime)
1088
+ * - modifiedBefore: string (ISO datetime)
1089
+ */
1090
+ declare function exportInstalledEquipment(client: ServiceTitanClient, params?: {
1091
+ page?: number;
1092
+ pageSize?: number;
1093
+ modifiedOnOrAfter?: string;
1094
+ modifiedBefore?: string;
1095
+ }): Promise<any>;
1096
+
1097
+ /**
1098
+ * List installed equipment
1099
+ * GET /equipment-systems/v2/tenant/{tenantId}/installed-equipment
1100
+ *
1101
+ * Optional query params:
1102
+ * - page: number
1103
+ * - pageSize: number
1104
+ * - search: string
1105
+ * - createdOnOrAfter: string (ISO datetime)
1106
+ * - createdBefore: string (ISO datetime)
1107
+ * - modifiedOnOrAfter: string (ISO datetime)
1108
+ * - modifiedBefore: string (ISO datetime)
1109
+ */
1110
+ declare function listInstalledEquipment(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1111
+ /**
1112
+ * Create installed equipment
1113
+ * POST /equipment-systems/v2/tenant/{tenantId}/installed-equipment
1114
+ *
1115
+ * Required body fields (typical):
1116
+ * - customerId: number
1117
+ * - locationId: number
1118
+ * - equipmentTypeId: number
1119
+ * - serialNumber: string
1120
+ *
1121
+ * Optional body fields depend on tenant config
1122
+ */
1123
+ declare function createInstalledEquipment(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1124
+ /**
1125
+ * List installed equipment attachments
1126
+ * GET /equipment-systems/v2/tenant/{tenantId}/installed-equipment/attachments
1127
+ *
1128
+ * Optional query params:
1129
+ * - page: number
1130
+ * - pageSize: number
1131
+ * - installedEquipmentId: number
1132
+ */
1133
+ declare function listInstalledEquipmentAttachments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1134
+ /**
1135
+ * Create installed equipment attachment
1136
+ * POST /equipment-systems/v2/tenant/{tenantId}/installed-equipment/attachments
1137
+ *
1138
+ * Required body fields:
1139
+ * - installedEquipmentId: number
1140
+ * - name: string
1141
+ * - contentBase64: string (base64-encoded file)
1142
+ * - contentType: string (MIME type)
1143
+ */
1144
+ declare function createInstalledEquipmentAttachment(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1145
+ /**
1146
+ * List installed equipment custom field types
1147
+ * GET /equipment-systems/v2/tenant/{tenantId}/installed-equipment/custom-field-types
1148
+ *
1149
+ * Optional query params:
1150
+ * - page: number
1151
+ * - pageSize: number
1152
+ * - descending: boolean
1153
+ */
1154
+ declare function listInstalledEquipmentCustomFieldTypes(client: ServiceTitanClient, params?: {
1155
+ page?: number;
1156
+ pageSize?: number;
1157
+ descending?: boolean;
1158
+ }): Promise<any>;
1159
+ /**
1160
+ * Get installed equipment by ID
1161
+ * GET /equipment-systems/v2/tenant/{tenantId}/installed-equipment/{id}
1162
+ *
1163
+ * Required path params:
1164
+ * - id: number|string
1165
+ */
1166
+ declare function getInstalledEquipment(client: ServiceTitanClient, id: number | string): Promise<any>;
1167
+ /**
1168
+ * Update installed equipment
1169
+ * PATCH /equipment-systems/v2/tenant/{tenantId}/installed-equipment/{id}
1170
+ *
1171
+ * Required path params:
1172
+ * - id: number|string
1173
+ */
1174
+ declare function updateInstalledEquipment(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1175
+
1176
+ declare const index$i_createInstalledEquipment: typeof createInstalledEquipment;
1177
+ declare const index$i_createInstalledEquipmentAttachment: typeof createInstalledEquipmentAttachment;
1178
+ declare const index$i_exportInstalledEquipment: typeof exportInstalledEquipment;
1179
+ declare const index$i_getInstalledEquipment: typeof getInstalledEquipment;
1180
+ declare const index$i_listInstalledEquipment: typeof listInstalledEquipment;
1181
+ declare const index$i_listInstalledEquipmentAttachments: typeof listInstalledEquipmentAttachments;
1182
+ declare const index$i_listInstalledEquipmentCustomFieldTypes: typeof listInstalledEquipmentCustomFieldTypes;
1183
+ declare const index$i_updateInstalledEquipment: typeof updateInstalledEquipment;
1184
+ declare namespace index$i {
1185
+ export { index$i_createInstalledEquipment as createInstalledEquipment, index$i_createInstalledEquipmentAttachment as createInstalledEquipmentAttachment, index$i_exportInstalledEquipment as exportInstalledEquipment, index$i_getInstalledEquipment as getInstalledEquipment, index$i_listInstalledEquipment as listInstalledEquipment, index$i_listInstalledEquipmentAttachments as listInstalledEquipmentAttachments, index$i_listInstalledEquipmentCustomFieldTypes as listInstalledEquipmentCustomFieldTypes, index$i_updateInstalledEquipment as updateInstalledEquipment };
1186
+ }
1187
+
1188
+ /**
1189
+ * JPM Export endpoints (read-optimized feeds)
1190
+ * Base: /jpm/v2/tenant/{tenantId}/export
1191
+ *
1192
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-jpm-v2&operation=Export_Appointments
1193
+ */
1194
+ declare function exportAppointments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1195
+ declare function exportJobCanceledLogs(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1196
+ declare function exportJobHistory(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1197
+ declare function exportJobNotes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1198
+ declare function exportJobs(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1199
+ declare function exportProjectNotes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1200
+ declare function exportProjects(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1201
+
1202
+ /**
1203
+ * Appointments
1204
+ * Base: /jpm/v2/tenant/{tenantId}/appointments
1205
+ */
1206
+ declare function listAppointments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1207
+ declare function getAppointment(client: ServiceTitanClient, id: number | string): Promise<any>;
1208
+ declare function confirmAppointment(client: ServiceTitanClient, id: number | string): Promise<any>;
1209
+ declare function unconfirmAppointment(client: ServiceTitanClient, id: number | string): Promise<any>;
1210
+ declare function holdAppointment(client: ServiceTitanClient, id: number | string, data?: Record<string, unknown>): Promise<any>;
1211
+ declare function unholdAppointment(client: ServiceTitanClient, id: number | string): Promise<any>;
1212
+ declare function rescheduleAppointment(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1213
+ declare function updateSpecialInstructions(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1214
+
1215
+ /**
1216
+ * Jobs
1217
+ * Base: /jpm/v2/tenant/{tenantId}/jobs
1218
+ */
1219
+ declare function listJobs(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1220
+ declare function getJob(client: ServiceTitanClient, id: number | string, params?: Record<string, unknown>): Promise<any>;
1221
+ declare function getJobBookedLog(client: ServiceTitanClient, id: number | string): Promise<any>;
1222
+ declare function cancelJob(client: ServiceTitanClient, id: number | string, data?: Record<string, unknown>): Promise<any>;
1223
+ declare function getJobCanceledLog(client: ServiceTitanClient, id: number | string): Promise<any>;
1224
+ declare function getJobHistory(client: ServiceTitanClient, id: number | string): Promise<any>;
1225
+ declare function listJobNotes(client: ServiceTitanClient, id: number | string): Promise<any>;
1226
+ declare function createJobNote(client: ServiceTitanClient, id: number | string, data: {
1227
+ text: string;
1228
+ pinToTop?: boolean;
1229
+ }): Promise<any>;
1230
+ declare function removeJobCancellation(client: ServiceTitanClient, id: number | string): Promise<any>;
1231
+ declare function getCancelReasons(client: ServiceTitanClient, ids: Array<number | string>): Promise<any>;
1232
+
1233
+ /**
1234
+ * Projects
1235
+ * Base: /jpm/v2/tenant/{tenantId}/projects
1236
+ */
1237
+ declare function listProjects(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1238
+ declare function getProject(client: ServiceTitanClient, id: number | string): Promise<any>;
1239
+ declare function detachJob(client: ServiceTitanClient, jobId: number | string): Promise<any>;
1240
+ declare function attachJob(client: ServiceTitanClient, id: number | string, jobId: number | string): Promise<any>;
1241
+ declare function listProjectNotes(client: ServiceTitanClient, id: number | string): Promise<any>;
1242
+ declare function createProjectNote(client: ServiceTitanClient, id: number | string, data: {
1243
+ text: string;
1244
+ pinToTop?: boolean;
1245
+ }): Promise<any>;
1246
+ declare function listProjectCustomFields(client: ServiceTitanClient): Promise<any>;
1247
+
1248
+ /**
1249
+ * Job Cancel Reasons
1250
+ * Base: /jpm/v2/tenant/{tenantId}/job-cancel-reasons
1251
+ */
1252
+ declare function listJobCancelReasons(client: ServiceTitanClient): Promise<any>;
1253
+
1254
+ /**
1255
+ * Job Hold Reasons
1256
+ * Base: /jpm/v2/tenant/{tenantId}/job-hold-reasons
1257
+ */
1258
+ declare function listJobHoldReasons(client: ServiceTitanClient): Promise<any>;
1259
+
1260
+ /**
1261
+ * Job Types
1262
+ * Base: /jpm/v2/tenant/{tenantId}/job-types
1263
+ */
1264
+ declare function listJobTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1265
+ declare function createJobType(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1266
+ declare function getJobType(client: ServiceTitanClient, id: number | string): Promise<any>;
1267
+ declare function updateJobType(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1268
+
1269
+ /**
1270
+ * Project Statuses
1271
+ * Base: /jpm/v2/tenant/{tenantId}/project-statuses
1272
+ */
1273
+ declare function listProjectStatuses(client: ServiceTitanClient): Promise<any>;
1274
+ declare function getProjectStatus(client: ServiceTitanClient, id: number | string): Promise<any>;
1275
+
1276
+ /**
1277
+ * Project SubStatuses
1278
+ * Base: /jpm/v2/tenant/{tenantId}/project-substatuses
1279
+ */
1280
+ declare function listProjectSubStatuses(client: ServiceTitanClient): Promise<any>;
1281
+ declare function getProjectSubStatus(client: ServiceTitanClient, id: number | string): Promise<any>;
1282
+
1283
+ /**
1284
+ * Project Types
1285
+ * Base: /jpm/v2/tenant/{tenantId}/project-types
1286
+ */
1287
+ declare function listProjectTypes(client: ServiceTitanClient): Promise<any>;
1288
+ declare function getProjectType(client: ServiceTitanClient, id: number | string): Promise<any>;
1289
+
1290
+ /**
1291
+ * Work Breakdown Structure (WBS)
1292
+ * Base: /jpm/v2/tenant/{tenantId}/work-breakdown-structure
1293
+ */
1294
+ declare function listBudgetCodes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1295
+ declare function createBudgetCode(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1296
+ declare function batchCreateBudgetCodes(client: ServiceTitanClient, data: Record<string, unknown>[]): Promise<any>;
1297
+ declare function partialUpdateBudgetCodes(client: ServiceTitanClient, data: Record<string, unknown>[]): Promise<any>;
1298
+ declare function batchPartialUpdateBudgetCodes(client: ServiceTitanClient, data: Record<string, unknown>[]): Promise<any>;
1299
+ declare function listProjectBudgetCodes(client: ServiceTitanClient, projectId: number | string): Promise<any>;
1300
+ declare function listProjectSegments(client: ServiceTitanClient, projectId: number | string): Promise<any>;
1301
+ declare function listProjectSegmentItems(client: ServiceTitanClient, projectId: number | string, segmentId: number | string): Promise<any>;
1302
+ declare function listProjectSegmentItemChildren(client: ServiceTitanClient, projectId: number | string, segmentId: number | string, segmentItemId: number | string): Promise<any>;
1303
+ declare function listSegments(client: ServiceTitanClient): Promise<any>;
1304
+ declare function listSegmentItems(client: ServiceTitanClient, segmentId: number | string): Promise<any>;
1305
+ declare function listSegmentItemChildren(client: ServiceTitanClient, segmentId: number | string, segmentItemId: number | string): Promise<any>;
1306
+
1307
+ /**
1308
+ * Job Planning & Management (JPM)
1309
+ *
1310
+ * Describes endpoints under the `jpm` API category covering appointments,
1311
+ * jobs, projects, job metadata (types/statuses), and Work Breakdown
1312
+ * Structure (budget codes and segments). Also includes read-optimized
1313
+ * export endpoints. These helpers build the canonical paths and delegate
1314
+ * to the shared `ServiceTitanClient` for auth, retries, and rate limits.
1315
+ */
1316
+
1317
+ declare const index$h_attachJob: typeof attachJob;
1318
+ declare const index$h_batchCreateBudgetCodes: typeof batchCreateBudgetCodes;
1319
+ declare const index$h_batchPartialUpdateBudgetCodes: typeof batchPartialUpdateBudgetCodes;
1320
+ declare const index$h_cancelJob: typeof cancelJob;
1321
+ declare const index$h_confirmAppointment: typeof confirmAppointment;
1322
+ declare const index$h_createBudgetCode: typeof createBudgetCode;
1323
+ declare const index$h_createJobNote: typeof createJobNote;
1324
+ declare const index$h_createJobType: typeof createJobType;
1325
+ declare const index$h_createProjectNote: typeof createProjectNote;
1326
+ declare const index$h_detachJob: typeof detachJob;
1327
+ declare const index$h_exportAppointments: typeof exportAppointments;
1328
+ declare const index$h_exportJobCanceledLogs: typeof exportJobCanceledLogs;
1329
+ declare const index$h_exportJobHistory: typeof exportJobHistory;
1330
+ declare const index$h_exportJobNotes: typeof exportJobNotes;
1331
+ declare const index$h_exportJobs: typeof exportJobs;
1332
+ declare const index$h_exportProjectNotes: typeof exportProjectNotes;
1333
+ declare const index$h_exportProjects: typeof exportProjects;
1334
+ declare const index$h_getAppointment: typeof getAppointment;
1335
+ declare const index$h_getCancelReasons: typeof getCancelReasons;
1336
+ declare const index$h_getJob: typeof getJob;
1337
+ declare const index$h_getJobBookedLog: typeof getJobBookedLog;
1338
+ declare const index$h_getJobCanceledLog: typeof getJobCanceledLog;
1339
+ declare const index$h_getJobHistory: typeof getJobHistory;
1340
+ declare const index$h_getJobType: typeof getJobType;
1341
+ declare const index$h_getProject: typeof getProject;
1342
+ declare const index$h_getProjectStatus: typeof getProjectStatus;
1343
+ declare const index$h_getProjectSubStatus: typeof getProjectSubStatus;
1344
+ declare const index$h_getProjectType: typeof getProjectType;
1345
+ declare const index$h_holdAppointment: typeof holdAppointment;
1346
+ declare const index$h_listAppointments: typeof listAppointments;
1347
+ declare const index$h_listBudgetCodes: typeof listBudgetCodes;
1348
+ declare const index$h_listJobCancelReasons: typeof listJobCancelReasons;
1349
+ declare const index$h_listJobHoldReasons: typeof listJobHoldReasons;
1350
+ declare const index$h_listJobNotes: typeof listJobNotes;
1351
+ declare const index$h_listJobTypes: typeof listJobTypes;
1352
+ declare const index$h_listJobs: typeof listJobs;
1353
+ declare const index$h_listProjectBudgetCodes: typeof listProjectBudgetCodes;
1354
+ declare const index$h_listProjectCustomFields: typeof listProjectCustomFields;
1355
+ declare const index$h_listProjectNotes: typeof listProjectNotes;
1356
+ declare const index$h_listProjectSegmentItemChildren: typeof listProjectSegmentItemChildren;
1357
+ declare const index$h_listProjectSegmentItems: typeof listProjectSegmentItems;
1358
+ declare const index$h_listProjectSegments: typeof listProjectSegments;
1359
+ declare const index$h_listProjectStatuses: typeof listProjectStatuses;
1360
+ declare const index$h_listProjectSubStatuses: typeof listProjectSubStatuses;
1361
+ declare const index$h_listProjectTypes: typeof listProjectTypes;
1362
+ declare const index$h_listProjects: typeof listProjects;
1363
+ declare const index$h_listSegmentItemChildren: typeof listSegmentItemChildren;
1364
+ declare const index$h_listSegmentItems: typeof listSegmentItems;
1365
+ declare const index$h_listSegments: typeof listSegments;
1366
+ declare const index$h_partialUpdateBudgetCodes: typeof partialUpdateBudgetCodes;
1367
+ declare const index$h_removeJobCancellation: typeof removeJobCancellation;
1368
+ declare const index$h_rescheduleAppointment: typeof rescheduleAppointment;
1369
+ declare const index$h_unconfirmAppointment: typeof unconfirmAppointment;
1370
+ declare const index$h_unholdAppointment: typeof unholdAppointment;
1371
+ declare const index$h_updateJobType: typeof updateJobType;
1372
+ declare const index$h_updateSpecialInstructions: typeof updateSpecialInstructions;
1373
+ declare namespace index$h {
1374
+ export { index$h_attachJob as attachJob, index$h_batchCreateBudgetCodes as batchCreateBudgetCodes, index$h_batchPartialUpdateBudgetCodes as batchPartialUpdateBudgetCodes, index$h_cancelJob as cancelJob, index$h_confirmAppointment as confirmAppointment, index$h_createBudgetCode as createBudgetCode, index$h_createJobNote as createJobNote, index$h_createJobType as createJobType, index$h_createProjectNote as createProjectNote, index$h_detachJob as detachJob, index$h_exportAppointments as exportAppointments, index$h_exportJobCanceledLogs as exportJobCanceledLogs, index$h_exportJobHistory as exportJobHistory, index$h_exportJobNotes as exportJobNotes, index$h_exportJobs as exportJobs, index$h_exportProjectNotes as exportProjectNotes, index$h_exportProjects as exportProjects, index$h_getAppointment as getAppointment, index$h_getCancelReasons as getCancelReasons, index$h_getJob as getJob, index$h_getJobBookedLog as getJobBookedLog, index$h_getJobCanceledLog as getJobCanceledLog, index$h_getJobHistory as getJobHistory, index$h_getJobType as getJobType, index$h_getProject as getProject, index$h_getProjectStatus as getProjectStatus, index$h_getProjectSubStatus as getProjectSubStatus, index$h_getProjectType as getProjectType, index$h_holdAppointment as holdAppointment, index$h_listAppointments as listAppointments, index$h_listBudgetCodes as listBudgetCodes, index$h_listJobCancelReasons as listJobCancelReasons, index$h_listJobHoldReasons as listJobHoldReasons, index$h_listJobNotes as listJobNotes, index$h_listJobTypes as listJobTypes, index$h_listJobs as listJobs, index$h_listProjectBudgetCodes as listProjectBudgetCodes, index$h_listProjectCustomFields as listProjectCustomFields, index$h_listProjectNotes as listProjectNotes, index$h_listProjectSegmentItemChildren as listProjectSegmentItemChildren, index$h_listProjectSegmentItems as listProjectSegmentItems, index$h_listProjectSegments as listProjectSegments, index$h_listProjectStatuses as listProjectStatuses, index$h_listProjectSubStatuses as listProjectSubStatuses, index$h_listProjectTypes as listProjectTypes, index$h_listProjects as listProjects, index$h_listSegmentItemChildren as listSegmentItemChildren, index$h_listSegmentItems as listSegmentItems, index$h_listSegments as listSegments, index$h_partialUpdateBudgetCodes as partialUpdateBudgetCodes, index$h_removeJobCancellation as removeJobCancellation, index$h_rescheduleAppointment as rescheduleAppointment, index$h_unconfirmAppointment as unconfirmAppointment, index$h_unholdAppointment as unholdAppointment, index$h_updateJobType as updateJobType, index$h_updateSpecialInstructions as updateSpecialInstructions };
1375
+ }
1376
+
1377
+ /**
1378
+ * Inventory Export endpoints (read-optimized feeds)
1379
+ * Base: /inventory/v2/tenant/{tenantId}/export
1380
+ *
1381
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-inventory-v2&operation=Export_Adjustments
1382
+ */
1383
+ declare function exportAdjustments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1384
+ declare function exportPurchaseOrders(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1385
+ declare function exportReturns(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1386
+ declare function exportTransfers(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1387
+
1388
+ /**
1389
+ * Adjustments
1390
+ * Base: /inventory/v2/tenant/{tenantId}/adjustments
1391
+ */
1392
+ declare function listAdjustments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1393
+ declare function listAdjustmentCustomFields(client: ServiceTitanClient): Promise<any>;
1394
+ declare function getAdjustment(client: ServiceTitanClient, id: number | string): Promise<any>;
1395
+
1396
+ /**
1397
+ * Purchase Orders
1398
+ * Base: /inventory/v2/tenant/{tenantId}/purchase-orders
1399
+ */
1400
+ declare function listPurchaseOrders(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1401
+ declare function createPurchaseOrder(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1402
+ declare function listPurchaseOrderRequests(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1403
+ declare function approvePurchaseOrderRequest(client: ServiceTitanClient, id: number | string): Promise<any>;
1404
+ declare function rejectPurchaseOrderRequest(client: ServiceTitanClient, id: number | string): Promise<any>;
1405
+ declare function getPurchaseOrder(client: ServiceTitanClient, id: number | string): Promise<any>;
1406
+ declare function updatePurchaseOrder(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1407
+ declare function cancelPurchaseOrder(client: ServiceTitanClient, id: number | string): Promise<any>;
1408
+
1409
+ /**
1410
+ * Purchase Order Markups
1411
+ * Base: /inventory/v2/tenant/{tenantId}/purchase-order-markups
1412
+ */
1413
+ declare function listPurchaseOrderMarkups(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1414
+ declare function createPurchaseOrderMarkup(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1415
+ declare function getPurchaseOrderMarkup(client: ServiceTitanClient, id: number | string): Promise<any>;
1416
+ declare function updatePurchaseOrderMarkup(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1417
+ declare function deletePurchaseOrderMarkup(client: ServiceTitanClient, id: number | string): Promise<any>;
1418
+
1419
+ /**
1420
+ * Purchase Order Types
1421
+ * Base: /inventory/v2/tenant/{tenantId}/purchase-order-types
1422
+ */
1423
+ declare function listPurchaseOrderTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1424
+ declare function createPurchaseOrderType(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1425
+ declare function getPurchaseOrderType(client: ServiceTitanClient, id: number | string): Promise<any>;
1426
+
1427
+ /**
1428
+ * Receipts
1429
+ * Base: /inventory/v2/tenant/{tenantId}/receipts
1430
+ */
1431
+ declare function listReceipts(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1432
+ declare function createReceipt(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1433
+ declare function listReceiptCustomFields(client: ServiceTitanClient): Promise<any>;
1434
+ declare function cancelReceipt(client: ServiceTitanClient, id: number | string): Promise<any>;
1435
+
1436
+ /**
1437
+ * Returns
1438
+ * Base: /inventory/v2/tenant/{tenantId}/returns
1439
+ */
1440
+ declare function listReturns(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1441
+ declare function createReturn(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1442
+ declare function listReturnCustomFields(client: ServiceTitanClient): Promise<any>;
1443
+ declare function getReturn(client: ServiceTitanClient, id: number | string): Promise<any>;
1444
+ declare function cancelReturn(client: ServiceTitanClient, id: number | string): Promise<any>;
1445
+
1446
+ /**
1447
+ * Return Types
1448
+ * Base: /inventory/v2/tenant/{tenantId}/return-types
1449
+ */
1450
+ declare function listReturnTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1451
+ declare function getReturnType(client: ServiceTitanClient, id: number | string): Promise<any>;
1452
+
1453
+ /**
1454
+ * Transfers
1455
+ * Base: /inventory/v2/tenant/{tenantId}/transfers
1456
+ */
1457
+ declare function listTransfers(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1458
+ declare function listTransferCustomFields(client: ServiceTitanClient): Promise<any>;
1459
+ declare function getTransfer(client: ServiceTitanClient, id: number | string): Promise<any>;
1460
+
1461
+ /**
1462
+ * Trucks
1463
+ * Base: /inventory/v2/tenant/{tenantId}/trucks
1464
+ */
1465
+ declare function listTrucks(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1466
+ declare function getTruck(client: ServiceTitanClient, id: number | string): Promise<any>;
1467
+
1468
+ /**
1469
+ * Vendors
1470
+ * Base: /inventory/v2/tenant/{tenantId}/vendors
1471
+ */
1472
+ declare function listVendors(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1473
+ declare function createVendor(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1474
+ declare function getVendor(client: ServiceTitanClient, id: number | string): Promise<any>;
1475
+ declare function updateVendor(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1476
+
1477
+ /**
1478
+ * Warehouses
1479
+ * Base: /inventory/v2/tenant/{tenantId}/warehouses
1480
+ */
1481
+ declare function listWarehouses(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1482
+ declare function getWarehouse(client: ServiceTitanClient, id: number | string): Promise<any>;
1483
+
1484
+ /**
1485
+ * Inventory (tenant-inventory-v2)
1486
+ *
1487
+ * Covers export feeds and entities: adjustments, purchase orders and related
1488
+ * markups/types, receipts, returns & return types, transfers, trucks,
1489
+ * vendors, and warehouses.
1490
+ */
1491
+
1492
+ declare const index$g_approvePurchaseOrderRequest: typeof approvePurchaseOrderRequest;
1493
+ declare const index$g_cancelPurchaseOrder: typeof cancelPurchaseOrder;
1494
+ declare const index$g_cancelReceipt: typeof cancelReceipt;
1495
+ declare const index$g_cancelReturn: typeof cancelReturn;
1496
+ declare const index$g_createPurchaseOrder: typeof createPurchaseOrder;
1497
+ declare const index$g_createPurchaseOrderMarkup: typeof createPurchaseOrderMarkup;
1498
+ declare const index$g_createPurchaseOrderType: typeof createPurchaseOrderType;
1499
+ declare const index$g_createReceipt: typeof createReceipt;
1500
+ declare const index$g_createReturn: typeof createReturn;
1501
+ declare const index$g_createVendor: typeof createVendor;
1502
+ declare const index$g_deletePurchaseOrderMarkup: typeof deletePurchaseOrderMarkup;
1503
+ declare const index$g_exportAdjustments: typeof exportAdjustments;
1504
+ declare const index$g_exportPurchaseOrders: typeof exportPurchaseOrders;
1505
+ declare const index$g_exportReturns: typeof exportReturns;
1506
+ declare const index$g_exportTransfers: typeof exportTransfers;
1507
+ declare const index$g_getAdjustment: typeof getAdjustment;
1508
+ declare const index$g_getPurchaseOrder: typeof getPurchaseOrder;
1509
+ declare const index$g_getPurchaseOrderMarkup: typeof getPurchaseOrderMarkup;
1510
+ declare const index$g_getPurchaseOrderType: typeof getPurchaseOrderType;
1511
+ declare const index$g_getReturn: typeof getReturn;
1512
+ declare const index$g_getReturnType: typeof getReturnType;
1513
+ declare const index$g_getTransfer: typeof getTransfer;
1514
+ declare const index$g_getTruck: typeof getTruck;
1515
+ declare const index$g_getVendor: typeof getVendor;
1516
+ declare const index$g_getWarehouse: typeof getWarehouse;
1517
+ declare const index$g_listAdjustmentCustomFields: typeof listAdjustmentCustomFields;
1518
+ declare const index$g_listAdjustments: typeof listAdjustments;
1519
+ declare const index$g_listPurchaseOrderMarkups: typeof listPurchaseOrderMarkups;
1520
+ declare const index$g_listPurchaseOrderRequests: typeof listPurchaseOrderRequests;
1521
+ declare const index$g_listPurchaseOrderTypes: typeof listPurchaseOrderTypes;
1522
+ declare const index$g_listPurchaseOrders: typeof listPurchaseOrders;
1523
+ declare const index$g_listReceiptCustomFields: typeof listReceiptCustomFields;
1524
+ declare const index$g_listReceipts: typeof listReceipts;
1525
+ declare const index$g_listReturnCustomFields: typeof listReturnCustomFields;
1526
+ declare const index$g_listReturnTypes: typeof listReturnTypes;
1527
+ declare const index$g_listReturns: typeof listReturns;
1528
+ declare const index$g_listTransferCustomFields: typeof listTransferCustomFields;
1529
+ declare const index$g_listTransfers: typeof listTransfers;
1530
+ declare const index$g_listTrucks: typeof listTrucks;
1531
+ declare const index$g_listVendors: typeof listVendors;
1532
+ declare const index$g_listWarehouses: typeof listWarehouses;
1533
+ declare const index$g_rejectPurchaseOrderRequest: typeof rejectPurchaseOrderRequest;
1534
+ declare const index$g_updatePurchaseOrder: typeof updatePurchaseOrder;
1535
+ declare const index$g_updatePurchaseOrderMarkup: typeof updatePurchaseOrderMarkup;
1536
+ declare const index$g_updateVendor: typeof updateVendor;
1537
+ declare namespace index$g {
1538
+ export { index$g_approvePurchaseOrderRequest as approvePurchaseOrderRequest, index$g_cancelPurchaseOrder as cancelPurchaseOrder, index$g_cancelReceipt as cancelReceipt, index$g_cancelReturn as cancelReturn, index$g_createPurchaseOrder as createPurchaseOrder, index$g_createPurchaseOrderMarkup as createPurchaseOrderMarkup, index$g_createPurchaseOrderType as createPurchaseOrderType, index$g_createReceipt as createReceipt, index$g_createReturn as createReturn, index$g_createVendor as createVendor, index$g_deletePurchaseOrderMarkup as deletePurchaseOrderMarkup, index$g_exportAdjustments as exportAdjustments, index$g_exportPurchaseOrders as exportPurchaseOrders, index$g_exportReturns as exportReturns, index$g_exportTransfers as exportTransfers, index$g_getAdjustment as getAdjustment, index$g_getPurchaseOrder as getPurchaseOrder, index$g_getPurchaseOrderMarkup as getPurchaseOrderMarkup, index$g_getPurchaseOrderType as getPurchaseOrderType, index$g_getReturn as getReturn, index$g_getReturnType as getReturnType, index$g_getTransfer as getTransfer, index$g_getTruck as getTruck, index$g_getVendor as getVendor, index$g_getWarehouse as getWarehouse, index$g_listAdjustmentCustomFields as listAdjustmentCustomFields, index$g_listAdjustments as listAdjustments, index$g_listPurchaseOrderMarkups as listPurchaseOrderMarkups, index$g_listPurchaseOrderRequests as listPurchaseOrderRequests, index$g_listPurchaseOrderTypes as listPurchaseOrderTypes, index$g_listPurchaseOrders as listPurchaseOrders, index$g_listReceiptCustomFields as listReceiptCustomFields, index$g_listReceipts as listReceipts, index$g_listReturnCustomFields as listReturnCustomFields, index$g_listReturnTypes as listReturnTypes, index$g_listReturns as listReturns, index$g_listTransferCustomFields as listTransferCustomFields, index$g_listTransfers as listTransfers, index$g_listTrucks as listTrucks, index$g_listVendors as listVendors, index$g_listWarehouses as listWarehouses, index$g_rejectPurchaseOrderRequest as rejectPurchaseOrderRequest, index$g_updatePurchaseOrder as updatePurchaseOrder, index$g_updatePurchaseOrderMarkup as updatePurchaseOrderMarkup, index$g_updateVendor as updateVendor };
1539
+ }
1540
+
1541
+ /**
1542
+ * Memberships Export endpoints
1543
+ * Base: /memberships/v2/tenant/{tenantId}/export
1544
+ *
1545
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-memberships-v2&operation=Export_InvoiceTemplates
1546
+ */
1547
+ declare function exportInvoiceTemplates(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1548
+ declare function exportMembershipStatusChanges(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1549
+ declare function exportMembershipTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1550
+ declare function exportMemberships(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1551
+ declare function exportRecurringServiceEvents(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1552
+ declare function exportRecurringServiceTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1553
+ declare function exportRecurringServices(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1554
+
1555
+ /**
1556
+ * Customer Memberships
1557
+ * Base: /memberships/v2/tenant/{tenantId}/memberships
1558
+ */
1559
+ declare function listMemberships(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1560
+ declare function listMembershipCustomFields(client: ServiceTitanClient): Promise<any>;
1561
+ declare function membershipSale(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1562
+ declare function getMembership(client: ServiceTitanClient, id: number | string): Promise<any>;
1563
+ declare function updateMembership(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1564
+ declare function listMembershipStatusChanges(client: ServiceTitanClient, id: number | string): Promise<any>;
1565
+
1566
+ /**
1567
+ * Invoice Templates
1568
+ * Base: /memberships/v2/tenant/{tenantId}/invoice-templates
1569
+ */
1570
+ declare function listInvoiceTemplates(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1571
+ declare function getInvoiceTemplate(client: ServiceTitanClient, id: number | string): Promise<any>;
1572
+ declare function updateInvoiceTemplate(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1573
+ declare function listInvoiceTemplatesByIds(client: ServiceTitanClient, ids: Array<number | string>): Promise<any>;
1574
+
1575
+ /**
1576
+ * Location Recurring Service Events
1577
+ * Base: /memberships/v2/tenant/{tenantId}/recurring-service-events
1578
+ */
1579
+ declare function listRecurringServiceEvents(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1580
+ declare function markRecurringServiceEventComplete(client: ServiceTitanClient, id: number | string): Promise<any>;
1581
+ declare function markRecurringServiceEventIncomplete(client: ServiceTitanClient, id: number | string): Promise<any>;
1582
+
1583
+ /**
1584
+ * Location Recurring Services
1585
+ * Base: /memberships/v2/tenant/{tenantId}/recurring-services
1586
+ */
1587
+ declare function listRecurringServices(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1588
+ declare function getRecurringService(client: ServiceTitanClient, id: number | string): Promise<any>;
1589
+ declare function updateRecurringService(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1590
+
1591
+ /**
1592
+ * Membership Types
1593
+ * Base: /memberships/v2/tenant/{tenantId}/membership-types
1594
+ */
1595
+ declare function listMembershipTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1596
+ declare function getMembershipType(client: ServiceTitanClient, id: number | string): Promise<any>;
1597
+ declare function listMembershipTypeDiscounts(client: ServiceTitanClient, id: number | string): Promise<any>;
1598
+ declare function listMembershipTypeDurationBillingItems(client: ServiceTitanClient, id: number | string): Promise<any>;
1599
+ declare function listMembershipTypeRecurringServiceItems(client: ServiceTitanClient, id: number | string): Promise<any>;
1600
+
1601
+ /**
1602
+ * Recurring Service Types
1603
+ * Base: /memberships/v2/tenant/{tenantId}/recurring-service-types
1604
+ */
1605
+ declare function listRecurringServiceTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1606
+ declare function getRecurringServiceType(client: ServiceTitanClient, id: number | string): Promise<any>;
1607
+
1608
+ /**
1609
+ * Memberships (tenant-memberships-v2)
1610
+ */
1611
+
1612
+ declare const index$f_exportInvoiceTemplates: typeof exportInvoiceTemplates;
1613
+ declare const index$f_exportMembershipStatusChanges: typeof exportMembershipStatusChanges;
1614
+ declare const index$f_exportMembershipTypes: typeof exportMembershipTypes;
1615
+ declare const index$f_exportMemberships: typeof exportMemberships;
1616
+ declare const index$f_exportRecurringServiceEvents: typeof exportRecurringServiceEvents;
1617
+ declare const index$f_exportRecurringServiceTypes: typeof exportRecurringServiceTypes;
1618
+ declare const index$f_exportRecurringServices: typeof exportRecurringServices;
1619
+ declare const index$f_getInvoiceTemplate: typeof getInvoiceTemplate;
1620
+ declare const index$f_getMembership: typeof getMembership;
1621
+ declare const index$f_getMembershipType: typeof getMembershipType;
1622
+ declare const index$f_getRecurringService: typeof getRecurringService;
1623
+ declare const index$f_getRecurringServiceType: typeof getRecurringServiceType;
1624
+ declare const index$f_listInvoiceTemplates: typeof listInvoiceTemplates;
1625
+ declare const index$f_listInvoiceTemplatesByIds: typeof listInvoiceTemplatesByIds;
1626
+ declare const index$f_listMembershipCustomFields: typeof listMembershipCustomFields;
1627
+ declare const index$f_listMembershipStatusChanges: typeof listMembershipStatusChanges;
1628
+ declare const index$f_listMembershipTypeDiscounts: typeof listMembershipTypeDiscounts;
1629
+ declare const index$f_listMembershipTypeDurationBillingItems: typeof listMembershipTypeDurationBillingItems;
1630
+ declare const index$f_listMembershipTypeRecurringServiceItems: typeof listMembershipTypeRecurringServiceItems;
1631
+ declare const index$f_listMembershipTypes: typeof listMembershipTypes;
1632
+ declare const index$f_listMemberships: typeof listMemberships;
1633
+ declare const index$f_listRecurringServiceEvents: typeof listRecurringServiceEvents;
1634
+ declare const index$f_listRecurringServiceTypes: typeof listRecurringServiceTypes;
1635
+ declare const index$f_listRecurringServices: typeof listRecurringServices;
1636
+ declare const index$f_markRecurringServiceEventComplete: typeof markRecurringServiceEventComplete;
1637
+ declare const index$f_markRecurringServiceEventIncomplete: typeof markRecurringServiceEventIncomplete;
1638
+ declare const index$f_membershipSale: typeof membershipSale;
1639
+ declare const index$f_updateInvoiceTemplate: typeof updateInvoiceTemplate;
1640
+ declare const index$f_updateMembership: typeof updateMembership;
1641
+ declare const index$f_updateRecurringService: typeof updateRecurringService;
1642
+ declare namespace index$f {
1643
+ export { index$f_exportInvoiceTemplates as exportInvoiceTemplates, index$f_exportMembershipStatusChanges as exportMembershipStatusChanges, index$f_exportMembershipTypes as exportMembershipTypes, index$f_exportMemberships as exportMemberships, index$f_exportRecurringServiceEvents as exportRecurringServiceEvents, index$f_exportRecurringServiceTypes as exportRecurringServiceTypes, index$f_exportRecurringServices as exportRecurringServices, index$f_getInvoiceTemplate as getInvoiceTemplate, index$f_getMembership as getMembership, index$f_getMembershipType as getMembershipType, index$f_getRecurringService as getRecurringService, index$f_getRecurringServiceType as getRecurringServiceType, index$f_listInvoiceTemplates as listInvoiceTemplates, index$f_listInvoiceTemplatesByIds as listInvoiceTemplatesByIds, index$f_listMembershipCustomFields as listMembershipCustomFields, index$f_listMembershipStatusChanges as listMembershipStatusChanges, index$f_listMembershipTypeDiscounts as listMembershipTypeDiscounts, index$f_listMembershipTypeDurationBillingItems as listMembershipTypeDurationBillingItems, index$f_listMembershipTypeRecurringServiceItems as listMembershipTypeRecurringServiceItems, index$f_listMembershipTypes as listMembershipTypes, index$f_listMemberships as listMemberships, index$f_listRecurringServiceEvents as listRecurringServiceEvents, index$f_listRecurringServiceTypes as listRecurringServiceTypes, index$f_listRecurringServices as listRecurringServices, index$f_markRecurringServiceEventComplete as markRecurringServiceEventComplete, index$f_markRecurringServiceEventIncomplete as markRecurringServiceEventIncomplete, index$f_membershipSale as membershipSale, index$f_updateInvoiceTemplate as updateInvoiceTemplate, index$f_updateMembership as updateMembership, index$f_updateRecurringService as updateRecurringService };
1644
+ }
1645
+
1646
+ /**
1647
+ * Payroll Export endpoints
1648
+ * Base: /payroll/v2/tenant/{tenantId}/export
1649
+ *
1650
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-payroll-v2&operation=Export_ActivityCodes
1651
+ */
1652
+ declare function exportActivityCodes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1653
+ declare function exportGrossPayItems(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1654
+ declare function exportJobSplits(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1655
+ declare function exportJobTimesheets(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1656
+ declare function exportPayrollAdjustments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1657
+ declare function exportPayrollSettings(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1658
+ declare function exportTimesheetCodes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1659
+
1660
+ /**
1661
+ * Activity Codes
1662
+ * Base: /payroll/v2/tenant/{tenantId}/activity-codes
1663
+ */
1664
+ declare function listActivityCodes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1665
+ declare function getActivityCode(client: ServiceTitanClient, id: number | string): Promise<any>;
1666
+
1667
+ /**
1668
+ * Gross Pay Items
1669
+ * Base: /payroll/v2/tenant/{tenantId}/gross-pay-items
1670
+ */
1671
+ declare function listGrossPayItems(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1672
+ declare function createGrossPayItem(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1673
+ declare function getGrossPayItem(client: ServiceTitanClient, id: number | string): Promise<any>;
1674
+ declare function updateGrossPayItem(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1675
+
1676
+ /**
1677
+ * Job Splits
1678
+ * Base: /payroll/v2/tenant/{tenantId}/jobs
1679
+ */
1680
+ declare function listJobSplits(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1681
+ declare function listJobSplitsByJob(client: ServiceTitanClient, jobId: number | string): Promise<any>;
1682
+
1683
+ /**
1684
+ * Location Labor Type (Rates)
1685
+ * Base: /payroll/v2/tenant/{tenantId}/locations/rates
1686
+ */
1687
+ declare function listLocationLaborRates(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1688
+
1689
+ /**
1690
+ * Payroll Adjustments
1691
+ * Base: /payroll/v2/tenant/{tenantId}/payroll-adjustments
1692
+ */
1693
+ declare function listPayrollAdjustments(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1694
+ declare function createPayrollAdjustment(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1695
+ declare function getPayrollAdjustment(client: ServiceTitanClient, id: number | string): Promise<any>;
1696
+
1697
+ /**
1698
+ * Payrolls
1699
+ */
1700
+ declare function listEmployeePayrolls(client: ServiceTitanClient, employeeId: number | string, params?: Record<string, unknown>): Promise<any>;
1701
+ declare function listPayrolls(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1702
+ declare function listTechnicianPayrolls(client: ServiceTitanClient, technicianId: number | string, params?: Record<string, unknown>): Promise<any>;
1703
+
1704
+ /**
1705
+ * Payroll Settings
1706
+ */
1707
+ declare function getEmployeePayrollSettings(client: ServiceTitanClient, employeeId: number | string, params?: Record<string, unknown>): Promise<any>;
1708
+ declare function updateEmployeePayrollSettings(client: ServiceTitanClient, employeeId: number | string, data: Record<string, unknown>): Promise<any>;
1709
+ declare function getPayrollSettings(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1710
+ declare function getTechnicianPayrollSettings(client: ServiceTitanClient, technicianId: number | string, params?: Record<string, unknown>): Promise<any>;
1711
+ declare function updateTechnicianPayrollSettings(client: ServiceTitanClient, technicianId: number | string, data: Record<string, unknown>): Promise<any>;
1712
+
1713
+ /**
1714
+ * Timesheet Codes
1715
+ * Base: /payroll/v2/tenant/{tenantId}/timesheet-codes
1716
+ */
1717
+ declare function listTimesheetCodes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1718
+ declare function getTimesheetCode(client: ServiceTitanClient, id: number | string): Promise<any>;
1719
+
1720
+ /**
1721
+ * Timesheets
1722
+ * Base: /payroll/v2/tenant/{tenantId}/jobs/timesheets
1723
+ */
1724
+ declare function listJobTimesheets(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1725
+ declare function listTimesheetsForJob(client: ServiceTitanClient, jobId: number | string, params?: Record<string, unknown>): Promise<any>;
1726
+ declare function listNonJobTimesheets(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1727
+
1728
+ /**
1729
+ * Payroll (tenant-payroll-v2)
1730
+ */
1731
+
1732
+ declare const index$e_createGrossPayItem: typeof createGrossPayItem;
1733
+ declare const index$e_createPayrollAdjustment: typeof createPayrollAdjustment;
1734
+ declare const index$e_exportActivityCodes: typeof exportActivityCodes;
1735
+ declare const index$e_exportGrossPayItems: typeof exportGrossPayItems;
1736
+ declare const index$e_exportJobSplits: typeof exportJobSplits;
1737
+ declare const index$e_exportJobTimesheets: typeof exportJobTimesheets;
1738
+ declare const index$e_exportPayrollAdjustments: typeof exportPayrollAdjustments;
1739
+ declare const index$e_exportPayrollSettings: typeof exportPayrollSettings;
1740
+ declare const index$e_exportTimesheetCodes: typeof exportTimesheetCodes;
1741
+ declare const index$e_getActivityCode: typeof getActivityCode;
1742
+ declare const index$e_getEmployeePayrollSettings: typeof getEmployeePayrollSettings;
1743
+ declare const index$e_getGrossPayItem: typeof getGrossPayItem;
1744
+ declare const index$e_getPayrollAdjustment: typeof getPayrollAdjustment;
1745
+ declare const index$e_getPayrollSettings: typeof getPayrollSettings;
1746
+ declare const index$e_getTechnicianPayrollSettings: typeof getTechnicianPayrollSettings;
1747
+ declare const index$e_getTimesheetCode: typeof getTimesheetCode;
1748
+ declare const index$e_listActivityCodes: typeof listActivityCodes;
1749
+ declare const index$e_listEmployeePayrolls: typeof listEmployeePayrolls;
1750
+ declare const index$e_listGrossPayItems: typeof listGrossPayItems;
1751
+ declare const index$e_listJobSplits: typeof listJobSplits;
1752
+ declare const index$e_listJobSplitsByJob: typeof listJobSplitsByJob;
1753
+ declare const index$e_listJobTimesheets: typeof listJobTimesheets;
1754
+ declare const index$e_listLocationLaborRates: typeof listLocationLaborRates;
1755
+ declare const index$e_listNonJobTimesheets: typeof listNonJobTimesheets;
1756
+ declare const index$e_listPayrollAdjustments: typeof listPayrollAdjustments;
1757
+ declare const index$e_listPayrolls: typeof listPayrolls;
1758
+ declare const index$e_listTechnicianPayrolls: typeof listTechnicianPayrolls;
1759
+ declare const index$e_listTimesheetCodes: typeof listTimesheetCodes;
1760
+ declare const index$e_listTimesheetsForJob: typeof listTimesheetsForJob;
1761
+ declare const index$e_updateEmployeePayrollSettings: typeof updateEmployeePayrollSettings;
1762
+ declare const index$e_updateGrossPayItem: typeof updateGrossPayItem;
1763
+ declare const index$e_updateTechnicianPayrollSettings: typeof updateTechnicianPayrollSettings;
1764
+ declare namespace index$e {
1765
+ export { index$e_createGrossPayItem as createGrossPayItem, index$e_createPayrollAdjustment as createPayrollAdjustment, index$e_exportActivityCodes as exportActivityCodes, index$e_exportGrossPayItems as exportGrossPayItems, index$e_exportJobSplits as exportJobSplits, index$e_exportJobTimesheets as exportJobTimesheets, index$e_exportPayrollAdjustments as exportPayrollAdjustments, index$e_exportPayrollSettings as exportPayrollSettings, index$e_exportTimesheetCodes as exportTimesheetCodes, index$e_getActivityCode as getActivityCode, index$e_getEmployeePayrollSettings as getEmployeePayrollSettings, index$e_getGrossPayItem as getGrossPayItem, index$e_getPayrollAdjustment as getPayrollAdjustment, index$e_getPayrollSettings as getPayrollSettings, index$e_getTechnicianPayrollSettings as getTechnicianPayrollSettings, index$e_getTimesheetCode as getTimesheetCode, index$e_listActivityCodes as listActivityCodes, index$e_listEmployeePayrolls as listEmployeePayrolls, index$e_listGrossPayItems as listGrossPayItems, index$e_listJobSplits as listJobSplits, index$e_listJobSplitsByJob as listJobSplitsByJob, index$e_listJobTimesheets as listJobTimesheets, index$e_listLocationLaborRates as listLocationLaborRates, index$e_listNonJobTimesheets as listNonJobTimesheets, index$e_listPayrollAdjustments as listPayrollAdjustments, index$e_listPayrolls as listPayrolls, index$e_listTechnicianPayrolls as listTechnicianPayrolls, index$e_listTimesheetCodes as listTimesheetCodes, index$e_listTimesheetsForJob as listTimesheetsForJob, index$e_updateEmployeePayrollSettings as updateEmployeePayrollSettings, index$e_updateGrossPayItem as updateGrossPayItem, index$e_updateTechnicianPayrollSettings as updateTechnicianPayrollSettings };
1766
+ }
1767
+
1768
+ /**
1769
+ * Forms
1770
+ * Base: /forms/v2/tenant/{tenantId}/forms
1771
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-forms-v2&operation=Form_GetForms
1772
+ */
1773
+ declare function listForms(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1774
+
1775
+ /**
1776
+ * Form Submissions
1777
+ * Base: /forms/v2/tenant/{tenantId}/submissions
1778
+ */
1779
+ declare function listFormSubmissions(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1780
+
1781
+ /**
1782
+ * Jobs attachments (Forms domain)
1783
+ * Base: /forms/v2/tenant/{tenantId}/jobs
1784
+ */
1785
+ declare function getJobAttachment(client: ServiceTitanClient, id: number | string): Promise<any>;
1786
+ declare function listJobAttachments(client: ServiceTitanClient, id: number | string): Promise<any>;
1787
+ declare function listJobAttachmentsByJobId(client: ServiceTitanClient, jobId: number | string): Promise<any>;
1788
+
1789
+ /**
1790
+ * Forms (tenant-forms-v2)
1791
+ */
1792
+
1793
+ declare const index$d_getJobAttachment: typeof getJobAttachment;
1794
+ declare const index$d_listFormSubmissions: typeof listFormSubmissions;
1795
+ declare const index$d_listForms: typeof listForms;
1796
+ declare const index$d_listJobAttachments: typeof listJobAttachments;
1797
+ declare const index$d_listJobAttachmentsByJobId: typeof listJobAttachmentsByJobId;
1798
+ declare namespace index$d {
1799
+ export { index$d_getJobAttachment as getJobAttachment, index$d_listFormSubmissions as listFormSubmissions, index$d_listForms as listForms, index$d_listJobAttachments as listJobAttachments, index$d_listJobAttachmentsByJobId as listJobAttachmentsByJobId };
1800
+ }
1801
+
1802
+ /**
1803
+ * Technician Rating
1804
+ * Base: /customer-interactions/v2/tenant/{tenantId}/technician-rating
1805
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-customer-interactions-v2&operation=TechnicianRating_Update
1806
+ */
1807
+ declare function updateTechnicianRating(client: ServiceTitanClient, technicianId: number | string, jobId: number | string, data: Record<string, unknown>): Promise<any>;
1808
+
1809
+ /**
1810
+ * Customer Interactions (tenant-customer-interactions-v2)
1811
+ */
1812
+
1813
+ declare const index$c_updateTechnicianRating: typeof updateTechnicianRating;
1814
+ declare namespace index$c {
1815
+ export { index$c_updateTechnicianRating as updateTechnicianRating };
1816
+ }
1817
+
1818
+ /**
1819
+ * Call Reasons
1820
+ * Base: /jbce/v2/tenant/{tenantId}/call-reasons
1821
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-jbce-v2&operation=CallReasons_Get
1822
+ */
1823
+ declare function listCallReasons(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1824
+
1825
+ /**
1826
+ * Job Booking (Search operations) - JBCE (tenant-jbce-v2)
1827
+ */
1828
+
1829
+ declare const index$b_listCallReasons: typeof listCallReasons;
1830
+ declare namespace index$b {
1831
+ export { index$b_listCallReasons as listCallReasons };
1832
+ }
1833
+
1834
+ /**
1835
+ * Campaign Categories
1836
+ * Base: /marketing/v2/tenant/{tenantId}/categories
1837
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-marketing-v2&operation=CampaignCategories_GetList
1838
+ */
1839
+ declare function listCampaignCategories(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1840
+ declare function createCampaignCategory(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1841
+ declare function getCampaignCategory(client: ServiceTitanClient, id: number | string): Promise<any>;
1842
+ declare function updateCampaignCategory(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1843
+
1844
+ /**
1845
+ * Campaign Costs
1846
+ * Base: /marketing/v2/tenant/{tenantId}/costs
1847
+ */
1848
+ declare function listCampaignCosts(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1849
+ declare function createCampaignCost(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1850
+ declare function getCampaignCost(client: ServiceTitanClient, id: number | string): Promise<any>;
1851
+ declare function updateCampaignCost(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1852
+
1853
+ /**
1854
+ * Campaigns
1855
+ * Base: /marketing/v2/tenant/{tenantId}/campaigns
1856
+ */
1857
+ declare function listCampaigns(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1858
+ declare function createCampaign(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1859
+ declare function getCampaign(client: ServiceTitanClient, id: number | string): Promise<any>;
1860
+ declare function updateCampaign(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1861
+ declare function listCampaignCostsForCampaign(client: ServiceTitanClient, id: number | string, params?: Record<string, unknown>): Promise<any>;
1862
+
1863
+ /**
1864
+ * Suppressions
1865
+ * Base: /marketing/v2/tenant/{tenantId}/suppressions
1866
+ */
1867
+ declare function listSuppressions(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1868
+ declare function suppressEmail(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1869
+ declare function unsuppressEmail(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1870
+ declare function getSuppressionByEmail(client: ServiceTitanClient, email: string): Promise<any>;
1871
+
1872
+ /**
1873
+ * Marketing (tenant-marketing-v2)
1874
+ */
1875
+
1876
+ declare const index$a_createCampaign: typeof createCampaign;
1877
+ declare const index$a_createCampaignCategory: typeof createCampaignCategory;
1878
+ declare const index$a_createCampaignCost: typeof createCampaignCost;
1879
+ declare const index$a_getCampaign: typeof getCampaign;
1880
+ declare const index$a_getCampaignCategory: typeof getCampaignCategory;
1881
+ declare const index$a_getCampaignCost: typeof getCampaignCost;
1882
+ declare const index$a_getSuppressionByEmail: typeof getSuppressionByEmail;
1883
+ declare const index$a_listCampaignCategories: typeof listCampaignCategories;
1884
+ declare const index$a_listCampaignCosts: typeof listCampaignCosts;
1885
+ declare const index$a_listCampaignCostsForCampaign: typeof listCampaignCostsForCampaign;
1886
+ declare const index$a_listCampaigns: typeof listCampaigns;
1887
+ declare const index$a_listSuppressions: typeof listSuppressions;
1888
+ declare const index$a_suppressEmail: typeof suppressEmail;
1889
+ declare const index$a_unsuppressEmail: typeof unsuppressEmail;
1890
+ declare const index$a_updateCampaign: typeof updateCampaign;
1891
+ declare const index$a_updateCampaignCategory: typeof updateCampaignCategory;
1892
+ declare const index$a_updateCampaignCost: typeof updateCampaignCost;
1893
+ declare namespace index$a {
1894
+ export { index$a_createCampaign as createCampaign, index$a_createCampaignCategory as createCampaignCategory, index$a_createCampaignCost as createCampaignCost, index$a_getCampaign as getCampaign, index$a_getCampaignCategory as getCampaignCategory, index$a_getCampaignCost as getCampaignCost, index$a_getSuppressionByEmail as getSuppressionByEmail, index$a_listCampaignCategories as listCampaignCategories, index$a_listCampaignCosts as listCampaignCosts, index$a_listCampaignCostsForCampaign as listCampaignCostsForCampaign, index$a_listCampaigns as listCampaigns, index$a_listSuppressions as listSuppressions, index$a_suppressEmail as suppressEmail, index$a_unsuppressEmail as unsuppressEmail, index$a_updateCampaign as updateCampaign, index$a_updateCampaignCategory as updateCampaignCategory, index$a_updateCampaignCost as updateCampaignCost };
1895
+ }
1896
+
1897
+ /**
1898
+ * Attributed Leads
1899
+ * Base: /marketing-ads/v2/tenant/{tenantId}/attributed-leads
1900
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-marketing-ads-v2&operation=AttributedLeads_Get
1901
+ */
1902
+ declare function listAttributedLeads(client: ServiceTitanClient, params: {
1903
+ fromUtc: string;
1904
+ toUtc: string;
1905
+ } & Record<string, unknown>): Promise<any>;
1906
+
1907
+ declare function listCapacityWarnings(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1908
+
1909
+ declare function listExternalCallAttributions(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1910
+
1911
+ declare function getPerformance(client: ServiceTitanClient, params: {
1912
+ fromUtc: string;
1913
+ toUtc: string;
1914
+ performanceSegmentationType?: string;
1915
+ } & Record<string, unknown>): Promise<any>;
1916
+
1917
+ declare function listScheduledJobAttributions(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1918
+
1919
+ declare function listWebBookingAttributions(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1920
+
1921
+ declare function listWebLeadFormAttributions(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1922
+
1923
+ /**
1924
+ * Marketing Ads (tenant-marketing-ads-v2)
1925
+ */
1926
+
1927
+ declare const index$9_getPerformance: typeof getPerformance;
1928
+ declare const index$9_listAttributedLeads: typeof listAttributedLeads;
1929
+ declare const index$9_listCapacityWarnings: typeof listCapacityWarnings;
1930
+ declare const index$9_listExternalCallAttributions: typeof listExternalCallAttributions;
1931
+ declare const index$9_listScheduledJobAttributions: typeof listScheduledJobAttributions;
1932
+ declare const index$9_listWebBookingAttributions: typeof listWebBookingAttributions;
1933
+ declare const index$9_listWebLeadFormAttributions: typeof listWebLeadFormAttributions;
1934
+ declare namespace index$9 {
1935
+ export { index$9_getPerformance as getPerformance, index$9_listAttributedLeads as listAttributedLeads, index$9_listCapacityWarnings as listCapacityWarnings, index$9_listExternalCallAttributions as listExternalCallAttributions, index$9_listScheduledJobAttributions as listScheduledJobAttributions, index$9_listWebBookingAttributions as listWebBookingAttributions, index$9_listWebLeadFormAttributions as listWebLeadFormAttributions };
1936
+ }
1937
+
1938
+ /**
1939
+ * Dynamic Value Sets
1940
+ * Base: /reporting/v2/tenant/{tenantId}/dynamic-value-sets
1941
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-reporting-v2&operation=DynamicValueSets_GetDynamicSet
1942
+ */
1943
+ declare function getDynamicValueSet(client: ServiceTitanClient, dynamicSetId: number | string, params?: Record<string, unknown>): Promise<any>;
1944
+
1945
+ /**
1946
+ * Report Categories
1947
+ * Base: /reporting/v2/tenant/{tenantId}/report-categories
1948
+ */
1949
+ declare function listReportCategories(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1950
+
1951
+ /**
1952
+ * Report Category Reports
1953
+ * Base: /reporting/v2/tenant/{tenantId}/{report_category}/reports
1954
+ */
1955
+ declare function listReportsForCategory(client: ServiceTitanClient, reportCategory: string, params?: Record<string, unknown>): Promise<any>;
1956
+ declare function getReport(client: ServiceTitanClient, reportCategory: string, reportId: number | string): Promise<any>;
1957
+ declare function getReportData(client: ServiceTitanClient, reportCategory: string, reportId: number | string, params?: Record<string, unknown>): Promise<any>;
1958
+
1959
+ /**
1960
+ * Reporting (tenant-reporting-v2)
1961
+ */
1962
+
1963
+ declare const index$8_getDynamicValueSet: typeof getDynamicValueSet;
1964
+ declare const index$8_getReport: typeof getReport;
1965
+ declare const index$8_getReportData: typeof getReportData;
1966
+ declare const index$8_listReportCategories: typeof listReportCategories;
1967
+ declare const index$8_listReportsForCategory: typeof listReportsForCategory;
1968
+ declare namespace index$8 {
1969
+ export { index$8_getDynamicValueSet as getDynamicValueSet, index$8_getReport as getReport, index$8_getReportData as getReportData, index$8_listReportCategories as listReportCategories, index$8_listReportsForCategory as listReportsForCategory };
1970
+ }
1971
+
1972
+ /**
1973
+ * Pricebook Export endpoints
1974
+ * Base: /pricebook/v2/tenant/{tenantId}/export
1975
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-pricebook-v2&operation=Export_Categories
1976
+ */
1977
+ declare function exportCategories(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1978
+ declare function exportEquipment(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1979
+ declare function exportMaterials(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1980
+ declare function exportServices(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1981
+
1982
+ /**
1983
+ * Pricebook Categories
1984
+ * Base: /pricebook/v2/tenant/{tenantId}/categories
1985
+ */
1986
+ declare function listCategories(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1987
+ declare function createCategory(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
1988
+ declare function getCategory(client: ServiceTitanClient, id: number | string): Promise<any>;
1989
+ declare function updateCategory(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
1990
+ declare function deleteCategory(client: ServiceTitanClient, id: number | string): Promise<any>;
1991
+
1992
+ /**
1993
+ * Client Specific Pricing
1994
+ * Base: /pricebook/v2/tenant/{tenantId}/clientspecificpricing
1995
+ */
1996
+ declare function listClientSpecificPricing(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
1997
+ declare function getClientSpecificPricingRateSheet(client: ServiceTitanClient, rateSheetId: number | string): Promise<any>;
1998
+
1999
+ /**
2000
+ * Discounts and Fees
2001
+ * Base: /pricebook/v2/tenant/{tenantId}/discounts-and-fees
2002
+ */
2003
+ declare function listDiscountsAndFees(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2004
+ declare function createDiscountOrFee(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2005
+ declare function getDiscountOrFee(client: ServiceTitanClient, id: number | string): Promise<any>;
2006
+ declare function updateDiscountOrFee(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2007
+ declare function deleteDiscountOrFee(client: ServiceTitanClient, id: number | string): Promise<any>;
2008
+
2009
+ /**
2010
+ * Pricebook Equipment
2011
+ * Base: /pricebook/v2/tenant/{tenantId}/equipment
2012
+ */
2013
+ declare function listEquipment(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2014
+ declare function createEquipment(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2015
+ declare function getEquipment(client: ServiceTitanClient, id: number | string): Promise<any>;
2016
+ declare function updateEquipment(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2017
+ declare function deleteEquipment(client: ServiceTitanClient, id: number | string): Promise<any>;
2018
+
2019
+ /**
2020
+ * Pricebook Images
2021
+ * Base: /pricebook/v2/tenant/{tenantId}/images
2022
+ */
2023
+ declare function listImages(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2024
+ declare function uploadImage(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2025
+
2026
+ /**
2027
+ * Pricebook Materials
2028
+ * Base: /pricebook/v2/tenant/{tenantId}/materials
2029
+ */
2030
+ declare function listMaterials(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2031
+ declare function createMaterial(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2032
+ declare function listMaterialCostTypes(client: ServiceTitanClient): Promise<any>;
2033
+ declare function getMaterial(client: ServiceTitanClient, id: number | string): Promise<any>;
2034
+ declare function updateMaterial(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2035
+ declare function deleteMaterial(client: ServiceTitanClient, id: number | string): Promise<any>;
2036
+
2037
+ /**
2038
+ * Materials Markup
2039
+ * Base: /pricebook/v2/tenant/{tenantId}/materialsmarkup
2040
+ */
2041
+ declare function listMaterialsMarkup(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2042
+ declare function createMaterialsMarkup(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2043
+ declare function getMaterialsMarkup(client: ServiceTitanClient, id: number | string): Promise<any>;
2044
+ declare function updateMaterialsMarkup(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2045
+
2046
+ /**
2047
+ * Pricebook bulk
2048
+ * Base: /pricebook/v2/tenant/{tenantId}/pricebook
2049
+ */
2050
+ declare function exportPricebook(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2051
+ declare function importPricebook(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2052
+
2053
+ /**
2054
+ * Pricebook Services
2055
+ * Base: /pricebook/v2/tenant/{tenantId}/services
2056
+ */
2057
+ declare function listServices(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2058
+ declare function createService(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2059
+ declare function getService(client: ServiceTitanClient, id: number | string): Promise<any>;
2060
+ declare function updateService(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2061
+ declare function deleteService(client: ServiceTitanClient, id: number | string): Promise<any>;
2062
+
2063
+ /**
2064
+ * Pricebook (tenant-pricebook-v2)
2065
+ */
2066
+
2067
+ declare const index$7_createCategory: typeof createCategory;
2068
+ declare const index$7_createDiscountOrFee: typeof createDiscountOrFee;
2069
+ declare const index$7_createEquipment: typeof createEquipment;
2070
+ declare const index$7_createMaterial: typeof createMaterial;
2071
+ declare const index$7_createMaterialsMarkup: typeof createMaterialsMarkup;
2072
+ declare const index$7_createService: typeof createService;
2073
+ declare const index$7_deleteCategory: typeof deleteCategory;
2074
+ declare const index$7_deleteDiscountOrFee: typeof deleteDiscountOrFee;
2075
+ declare const index$7_deleteEquipment: typeof deleteEquipment;
2076
+ declare const index$7_deleteMaterial: typeof deleteMaterial;
2077
+ declare const index$7_deleteService: typeof deleteService;
2078
+ declare const index$7_exportCategories: typeof exportCategories;
2079
+ declare const index$7_exportEquipment: typeof exportEquipment;
2080
+ declare const index$7_exportMaterials: typeof exportMaterials;
2081
+ declare const index$7_exportPricebook: typeof exportPricebook;
2082
+ declare const index$7_exportServices: typeof exportServices;
2083
+ declare const index$7_getCategory: typeof getCategory;
2084
+ declare const index$7_getClientSpecificPricingRateSheet: typeof getClientSpecificPricingRateSheet;
2085
+ declare const index$7_getDiscountOrFee: typeof getDiscountOrFee;
2086
+ declare const index$7_getEquipment: typeof getEquipment;
2087
+ declare const index$7_getMaterial: typeof getMaterial;
2088
+ declare const index$7_getMaterialsMarkup: typeof getMaterialsMarkup;
2089
+ declare const index$7_getService: typeof getService;
2090
+ declare const index$7_importPricebook: typeof importPricebook;
2091
+ declare const index$7_listCategories: typeof listCategories;
2092
+ declare const index$7_listClientSpecificPricing: typeof listClientSpecificPricing;
2093
+ declare const index$7_listDiscountsAndFees: typeof listDiscountsAndFees;
2094
+ declare const index$7_listEquipment: typeof listEquipment;
2095
+ declare const index$7_listImages: typeof listImages;
2096
+ declare const index$7_listMaterialCostTypes: typeof listMaterialCostTypes;
2097
+ declare const index$7_listMaterials: typeof listMaterials;
2098
+ declare const index$7_listMaterialsMarkup: typeof listMaterialsMarkup;
2099
+ declare const index$7_listServices: typeof listServices;
2100
+ declare const index$7_updateCategory: typeof updateCategory;
2101
+ declare const index$7_updateDiscountOrFee: typeof updateDiscountOrFee;
2102
+ declare const index$7_updateEquipment: typeof updateEquipment;
2103
+ declare const index$7_updateMaterial: typeof updateMaterial;
2104
+ declare const index$7_updateMaterialsMarkup: typeof updateMaterialsMarkup;
2105
+ declare const index$7_updateService: typeof updateService;
2106
+ declare const index$7_uploadImage: typeof uploadImage;
2107
+ declare namespace index$7 {
2108
+ export { index$7_createCategory as createCategory, index$7_createDiscountOrFee as createDiscountOrFee, index$7_createEquipment as createEquipment, index$7_createMaterial as createMaterial, index$7_createMaterialsMarkup as createMaterialsMarkup, index$7_createService as createService, index$7_deleteCategory as deleteCategory, index$7_deleteDiscountOrFee as deleteDiscountOrFee, index$7_deleteEquipment as deleteEquipment, index$7_deleteMaterial as deleteMaterial, index$7_deleteService as deleteService, index$7_exportCategories as exportCategories, index$7_exportEquipment as exportEquipment, index$7_exportMaterials as exportMaterials, index$7_exportPricebook as exportPricebook, index$7_exportServices as exportServices, index$7_getCategory as getCategory, index$7_getClientSpecificPricingRateSheet as getClientSpecificPricingRateSheet, index$7_getDiscountOrFee as getDiscountOrFee, index$7_getEquipment as getEquipment, index$7_getMaterial as getMaterial, index$7_getMaterialsMarkup as getMaterialsMarkup, index$7_getService as getService, index$7_importPricebook as importPricebook, index$7_listCategories as listCategories, index$7_listClientSpecificPricing as listClientSpecificPricing, index$7_listDiscountsAndFees as listDiscountsAndFees, index$7_listEquipment as listEquipment, index$7_listImages as listImages, index$7_listMaterialCostTypes as listMaterialCostTypes, index$7_listMaterials as listMaterials, index$7_listMaterialsMarkup as listMaterialsMarkup, index$7_listServices as listServices, index$7_updateCategory as updateCategory, index$7_updateDiscountOrFee as updateDiscountOrFee, index$7_updateEquipment as updateEquipment, index$7_updateMaterial as updateMaterial, index$7_updateMaterialsMarkup as updateMaterialsMarkup, index$7_updateService as updateService, index$7_uploadImage as uploadImage };
2109
+ }
2110
+
2111
+ /**
2112
+ * Client Side Data
2113
+ * Base: /task-management/v2/tenant/{tenantId}/data
2114
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-task-management-v2&operation=ClientSideData_Get
2115
+ */
2116
+ declare function getClientSideData(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2117
+
2118
+ /**
2119
+ * Tasks
2120
+ * Base: /task-management/v2/tenant/{tenantId}/tasks
2121
+ */
2122
+ declare function listTasks(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2123
+ declare function createTask(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2124
+ declare function getTask(client: ServiceTitanClient, id: number | string): Promise<any>;
2125
+ declare function listSubtasks(client: ServiceTitanClient, id: number | string): Promise<any>;
2126
+
2127
+ /**
2128
+ * Task Management (tenant-task-management-v2)
2129
+ */
2130
+
2131
+ declare const index$6_createTask: typeof createTask;
2132
+ declare const index$6_getClientSideData: typeof getClientSideData;
2133
+ declare const index$6_getTask: typeof getTask;
2134
+ declare const index$6_listSubtasks: typeof listSubtasks;
2135
+ declare const index$6_listTasks: typeof listTasks;
2136
+ declare namespace index$6 {
2137
+ export { index$6_createTask as createTask, index$6_getClientSideData as getClientSideData, index$6_getTask as getTask, index$6_listSubtasks as listSubtasks, index$6_listTasks as listTasks };
2138
+ }
2139
+
2140
+ /**
2141
+ * Telecom Export
2142
+ * Base: /telecom/tenant/{tenantId}/export
2143
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-telecom&operation=Export_Calls
2144
+ */
2145
+ declare function exportCalls(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2146
+
2147
+ /**
2148
+ * Calls
2149
+ * Base: /telecom/tenant/{tenantId}/calls
2150
+ */
2151
+ declare function listCalls(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2152
+ declare function getCall(client: ServiceTitanClient, id: number | string): Promise<any>;
2153
+ declare function updateCall(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2154
+ declare function getCallRecording(client: ServiceTitanClient, id: number | string): Promise<any>;
2155
+ declare function getCallVoicemail(client: ServiceTitanClient, id: number | string): Promise<any>;
2156
+
2157
+ /**
2158
+ * Telecom (tenant-telecom)
2159
+ */
2160
+
2161
+ declare const index$5_exportCalls: typeof exportCalls;
2162
+ declare const index$5_getCall: typeof getCall;
2163
+ declare const index$5_getCallRecording: typeof getCallRecording;
2164
+ declare const index$5_getCallVoicemail: typeof getCallVoicemail;
2165
+ declare const index$5_listCalls: typeof listCalls;
2166
+ declare const index$5_updateCall: typeof updateCall;
2167
+ declare namespace index$5 {
2168
+ export { index$5_exportCalls as exportCalls, index$5_getCall as getCall, index$5_getCallRecording as getCallRecording, index$5_getCallVoicemail as getCallVoicemail, index$5_listCalls as listCalls, index$5_updateCall as updateCall };
2169
+ }
2170
+
2171
+ /**
2172
+ * Timesheets v2 Export
2173
+ * Base: /timesheets/v2/tenant/{tenantId}/export
2174
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-timesheets-v2&operation=Export_Activities
2175
+ */
2176
+ declare function exportActivities(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2177
+ declare function exportActivityCategories(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2178
+ declare function exportActivityTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2179
+
2180
+ /**
2181
+ * Activities
2182
+ * Base: /timesheets/v2/tenant/{tenantId}/activities
2183
+ */
2184
+ declare function listActivities(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2185
+ declare function getActivity(client: ServiceTitanClient, id: number | string): Promise<any>;
2186
+
2187
+ /**
2188
+ * Activity Categories
2189
+ * Base: /timesheets/v2/tenant/{tenantId}/activity-categories
2190
+ */
2191
+ declare function listActivityCategories(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2192
+ declare function getActivityCategory(client: ServiceTitanClient, id: number | string): Promise<any>;
2193
+
2194
+ /**
2195
+ * Activity Types
2196
+ * Base: /timesheets/v2/tenant/{tenantId}/activity-types
2197
+ */
2198
+ declare function listActivityTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2199
+ declare function getActivityType(client: ServiceTitanClient, id: number | string): Promise<any>;
2200
+
2201
+ /**
2202
+ * Timesheets v2 (tenant-timesheets-v2)
2203
+ */
2204
+
2205
+ declare const index$4_exportActivities: typeof exportActivities;
2206
+ declare const index$4_exportActivityCategories: typeof exportActivityCategories;
2207
+ declare const index$4_exportActivityTypes: typeof exportActivityTypes;
2208
+ declare const index$4_getActivity: typeof getActivity;
2209
+ declare const index$4_getActivityCategory: typeof getActivityCategory;
2210
+ declare const index$4_getActivityType: typeof getActivityType;
2211
+ declare const index$4_listActivities: typeof listActivities;
2212
+ declare const index$4_listActivityCategories: typeof listActivityCategories;
2213
+ declare const index$4_listActivityTypes: typeof listActivityTypes;
2214
+ declare namespace index$4 {
2215
+ export { index$4_exportActivities as exportActivities, index$4_exportActivityCategories as exportActivityCategories, index$4_exportActivityTypes as exportActivityTypes, index$4_getActivity as getActivity, index$4_getActivityCategory as getActivityCategory, index$4_getActivityType as getActivityType, index$4_listActivities as listActivities, index$4_listActivityCategories as listActivityCategories, index$4_listActivityTypes as listActivityTypes };
2216
+ }
2217
+
2218
+ /**
2219
+ * Settings Export
2220
+ * Base: /settings/v2/tenant/{tenantId}/export
2221
+ */
2222
+ declare function exportBusinessUnits(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2223
+ declare function exportEmployees(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2224
+ declare function exportTagTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2225
+ declare function exportTechnicians(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2226
+
2227
+ declare function listBusinessUnits(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2228
+ declare function getBusinessUnit(client: ServiceTitanClient, id: number | string): Promise<any>;
2229
+ declare function updateBusinessUnit(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2230
+
2231
+ declare function listEmployees(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2232
+ declare function createEmployee(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2233
+ declare function getEmployee(client: ServiceTitanClient, id: number | string): Promise<any>;
2234
+ declare function updateEmployee(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2235
+ declare function getEmployeeAccountActions(client: ServiceTitanClient, id: number | string): Promise<any>;
2236
+
2237
+ declare function listTagTypes(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2238
+ declare function createTagType(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2239
+
2240
+ declare function listTechnicians(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2241
+ declare function createTechnician(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2242
+ declare function getTechnician(client: ServiceTitanClient, id: number | string): Promise<any>;
2243
+ declare function updateTechnician(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2244
+ declare function getTechnicianAccountActions(client: ServiceTitanClient, id: number | string): Promise<any>;
2245
+
2246
+ declare function listUserRoles(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2247
+
2248
+ /**
2249
+ * Settings (tenant-settings-v2)
2250
+ */
2251
+
2252
+ declare const index$3_createEmployee: typeof createEmployee;
2253
+ declare const index$3_createTagType: typeof createTagType;
2254
+ declare const index$3_createTechnician: typeof createTechnician;
2255
+ declare const index$3_exportBusinessUnits: typeof exportBusinessUnits;
2256
+ declare const index$3_exportEmployees: typeof exportEmployees;
2257
+ declare const index$3_exportTagTypes: typeof exportTagTypes;
2258
+ declare const index$3_exportTechnicians: typeof exportTechnicians;
2259
+ declare const index$3_getBusinessUnit: typeof getBusinessUnit;
2260
+ declare const index$3_getEmployee: typeof getEmployee;
2261
+ declare const index$3_getEmployeeAccountActions: typeof getEmployeeAccountActions;
2262
+ declare const index$3_getTechnician: typeof getTechnician;
2263
+ declare const index$3_getTechnicianAccountActions: typeof getTechnicianAccountActions;
2264
+ declare const index$3_listBusinessUnits: typeof listBusinessUnits;
2265
+ declare const index$3_listEmployees: typeof listEmployees;
2266
+ declare const index$3_listTagTypes: typeof listTagTypes;
2267
+ declare const index$3_listTechnicians: typeof listTechnicians;
2268
+ declare const index$3_listUserRoles: typeof listUserRoles;
2269
+ declare const index$3_updateBusinessUnit: typeof updateBusinessUnit;
2270
+ declare const index$3_updateEmployee: typeof updateEmployee;
2271
+ declare const index$3_updateTechnician: typeof updateTechnician;
2272
+ declare namespace index$3 {
2273
+ export { index$3_createEmployee as createEmployee, index$3_createTagType as createTagType, index$3_createTechnician as createTechnician, index$3_exportBusinessUnits as exportBusinessUnits, index$3_exportEmployees as exportEmployees, index$3_exportTagTypes as exportTagTypes, index$3_exportTechnicians as exportTechnicians, index$3_getBusinessUnit as getBusinessUnit, index$3_getEmployee as getEmployee, index$3_getEmployeeAccountActions as getEmployeeAccountActions, index$3_getTechnician as getTechnician, index$3_getTechnicianAccountActions as getTechnicianAccountActions, index$3_listBusinessUnits as listBusinessUnits, index$3_listEmployees as listEmployees, index$3_listTagTypes as listTagTypes, index$3_listTechnicians as listTechnicians, index$3_listUserRoles as listUserRoles, index$3_updateBusinessUnit as updateBusinessUnit, index$3_updateEmployee as updateEmployee, index$3_updateTechnician as updateTechnician };
2274
+ }
2275
+
2276
+ /**
2277
+ * Estimates
2278
+ * Base: /salestech/v2/tenant/{tenantId}/estimates
2279
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-salestech-v2&operation=Estimates_GetList
2280
+ */
2281
+ declare function listEstimates(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2282
+ declare function createEstimate(client: ServiceTitanClient, data: Record<string, unknown>): Promise<any>;
2283
+ declare function listEstimateItems(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2284
+ declare function getEstimate(client: ServiceTitanClient, id: number | string): Promise<any>;
2285
+ declare function updateEstimate(client: ServiceTitanClient, id: number | string, data: Record<string, unknown>): Promise<any>;
2286
+ declare function dismissEstimate(client: ServiceTitanClient, id: number | string): Promise<any>;
2287
+ declare function listEstimateItemsByEstimate(client: ServiceTitanClient, id: number | string): Promise<any>;
2288
+ declare function getEstimateItem(client: ServiceTitanClient, id: number | string, itemId: number | string): Promise<any>;
2289
+ declare function sellEstimate(client: ServiceTitanClient, id: number | string): Promise<any>;
2290
+ declare function unsellEstimate(client: ServiceTitanClient, id: number | string): Promise<any>;
2291
+
2292
+ /**
2293
+ * Estimates Export
2294
+ * Base: /salestech/v2/tenant/{tenantId}/estimates/export
2295
+ */
2296
+ declare function exportEstimates(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2297
+
2298
+ /**
2299
+ * SalesTech (tenant-salestech-v2)
2300
+ */
2301
+
2302
+ declare const index$2_createEstimate: typeof createEstimate;
2303
+ declare const index$2_dismissEstimate: typeof dismissEstimate;
2304
+ declare const index$2_exportEstimates: typeof exportEstimates;
2305
+ declare const index$2_getEstimate: typeof getEstimate;
2306
+ declare const index$2_getEstimateItem: typeof getEstimateItem;
2307
+ declare const index$2_listEstimateItems: typeof listEstimateItems;
2308
+ declare const index$2_listEstimateItemsByEstimate: typeof listEstimateItemsByEstimate;
2309
+ declare const index$2_listEstimates: typeof listEstimates;
2310
+ declare const index$2_sellEstimate: typeof sellEstimate;
2311
+ declare const index$2_unsellEstimate: typeof unsellEstimate;
2312
+ declare const index$2_updateEstimate: typeof updateEstimate;
2313
+ declare namespace index$2 {
2314
+ export { index$2_createEstimate as createEstimate, index$2_dismissEstimate as dismissEstimate, index$2_exportEstimates as exportEstimates, index$2_getEstimate as getEstimate, index$2_getEstimateItem as getEstimateItem, index$2_listEstimateItems as listEstimateItems, index$2_listEstimateItemsByEstimate as listEstimateItemsByEstimate, index$2_listEstimates as listEstimates, index$2_sellEstimate as sellEstimate, index$2_unsellEstimate as unsellEstimate, index$2_updateEstimate as updateEstimate };
2315
+ }
2316
+
2317
+ /**
2318
+ * Routers
2319
+ * Base: /scheduling-pro/v2/tenant/{tenantId}/routers
2320
+ */
2321
+ declare function getRouterPerformance(client: ServiceTitanClient, id: number | string, params?: {
2322
+ sessionCreatedOnOrAfter?: string;
2323
+ sessionCreatedBefore?: string;
2324
+ } & Record<string, unknown>): Promise<any>;
2325
+ declare function listRouterSessions(client: ServiceTitanClient, id: number | string, params?: Record<string, unknown>): Promise<any>;
2326
+
2327
+ /**
2328
+ * Schedulers
2329
+ * Base: /scheduling-pro/v2/tenant/{tenantId}/schedulers
2330
+ */
2331
+ declare function listSchedulers(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2332
+ declare function getSchedulerPerformance(client: ServiceTitanClient, id: number | string, params?: {
2333
+ sessionCreatedOnOrAfter?: string;
2334
+ sessionCreatedBefore?: string;
2335
+ } & Record<string, unknown>): Promise<any>;
2336
+ declare function listSchedulerSessions(client: ServiceTitanClient, id: number | string, params?: Record<string, unknown>): Promise<any>;
2337
+
2338
+ /**
2339
+ * Scheduling Pro (tenant-scheduling-pro-v2)
2340
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-scheduling-pro-v2&operation=Router_RouterPerformance
2341
+ */
2342
+
2343
+ declare const index$1_getRouterPerformance: typeof getRouterPerformance;
2344
+ declare const index$1_getSchedulerPerformance: typeof getSchedulerPerformance;
2345
+ declare const index$1_listRouterSessions: typeof listRouterSessions;
2346
+ declare const index$1_listSchedulerSessions: typeof listSchedulerSessions;
2347
+ declare const index$1_listSchedulers: typeof listSchedulers;
2348
+ declare namespace index$1 {
2349
+ export { index$1_getRouterPerformance as getRouterPerformance, index$1_getSchedulerPerformance as getSchedulerPerformance, index$1_listRouterSessions as listRouterSessions, index$1_listSchedulerSessions as listSchedulerSessions, index$1_listSchedulers as listSchedulers };
2350
+ }
2351
+
2352
+ /**
2353
+ * Service Agreements Export
2354
+ * Base: /service-agreements/v2/tenant/{tenantId}/export
2355
+ */
2356
+ declare function exportServiceAgreements(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2357
+
2358
+ /**
2359
+ * Service Agreements
2360
+ * Base: /service-agreements/v2/tenant/{tenantId}/service-agreements
2361
+ */
2362
+ declare function listServiceAgreements(client: ServiceTitanClient, params?: Record<string, unknown>): Promise<any>;
2363
+ declare function getServiceAgreement(client: ServiceTitanClient, id: number | string): Promise<any>;
2364
+
2365
+ /**
2366
+ * Service Agreements (tenant-service-agreements-v2)
2367
+ * Reference: https://developer.servicetitan.io/api-details/#api=tenant-service-agreements-v2&operation=Export_ServiceAgreements
2368
+ */
2369
+
2370
+ declare const index_exportServiceAgreements: typeof exportServiceAgreements;
2371
+ declare const index_getServiceAgreement: typeof getServiceAgreement;
2372
+ declare const index_listServiceAgreements: typeof listServiceAgreements;
2373
+ declare namespace index {
2374
+ export { index_exportServiceAgreements as exportServiceAgreements, index_getServiceAgreement as getServiceAgreement, index_listServiceAgreements as listServiceAgreements };
2375
+ }
2376
+
2377
+ export { index$l as Accounting, index$k as CRM, index$c as CustomerInteractions, index$j as Dispatch, index$i as EquipmentSystems, index$d as Forms, index$g as Inventory, index$b as JBCE, index$h as JPM, index$a as Marketing, index$9 as MarketingAds, index$f as Memberships, index$e as Payroll, index$7 as Pricebook, index$8 as Reporting, index$2 as SalesEstimates, index$1 as SchedulingPro, index as ServiceAgreements, ServiceTitanClient, index$3 as Settings, index$6 as TaskManagement, index$5 as Telecom, index$4 as TimesheetsV2, createClientFromEnv };