@osise/api-client 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -0
- package/dist/cjs/api/admin-b2b.js +260 -0
- package/dist/cjs/api/admin-b2b.js.map +1 -0
- package/dist/cjs/api/admin-finance.js +78 -0
- package/dist/cjs/api/admin-finance.js.map +1 -0
- package/dist/cjs/api/admin-payouts.js +54 -0
- package/dist/cjs/api/admin-payouts.js.map +1 -0
- package/dist/cjs/api/admin-qc.js +237 -0
- package/dist/cjs/api/admin-qc.js.map +1 -0
- package/dist/cjs/api/admin.js +280 -24
- package/dist/cjs/api/admin.js.map +1 -1
- package/dist/cjs/api/b2b.js +124 -0
- package/dist/cjs/api/b2b.js.map +1 -0
- package/dist/cjs/api/communication.js +283 -0
- package/dist/cjs/api/communication.js.map +1 -0
- package/dist/cjs/api/index.js +33 -1
- package/dist/cjs/api/index.js.map +1 -1
- package/dist/cjs/api/jobs.js +304 -43
- package/dist/cjs/api/jobs.js.map +1 -1
- package/dist/cjs/api/location.js +91 -0
- package/dist/cjs/api/location.js.map +1 -0
- package/dist/cjs/api/payments.js +129 -0
- package/dist/cjs/api/payments.js.map +1 -0
- package/dist/cjs/api/support.js +148 -0
- package/dist/cjs/api/support.js.map +1 -0
- package/dist/cjs/hooks/index.js +1738 -4
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/index.js +35 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/admin-finance.js +7 -0
- package/dist/cjs/types/admin-finance.js.map +1 -0
- package/dist/cjs/types/admin-invoice.js +7 -0
- package/dist/cjs/types/admin-invoice.js.map +1 -0
- package/dist/cjs/types/admin-payout.js +7 -0
- package/dist/cjs/types/admin-payout.js.map +1 -0
- package/dist/cjs/types/b2b.js +7 -0
- package/dist/cjs/types/b2b.js.map +1 -0
- package/dist/cjs/types/communication.js +90 -0
- package/dist/cjs/types/communication.js.map +1 -0
- package/dist/cjs/types/enums.js +343 -1
- package/dist/cjs/types/enums.js.map +1 -1
- package/dist/cjs/types/index.js +18 -2
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/job.js +1 -0
- package/dist/cjs/types/job.js.map +1 -1
- package/dist/cjs/types/location.js +7 -0
- package/dist/cjs/types/location.js.map +1 -0
- package/dist/cjs/types/payment.js +7 -0
- package/dist/cjs/types/payment.js.map +1 -0
- package/dist/cjs/types/qc.js +8 -0
- package/dist/cjs/types/qc.js.map +1 -0
- package/dist/cjs/types/support.js +7 -0
- package/dist/cjs/types/support.js.map +1 -0
- package/dist/esm/api/admin-b2b.js +255 -0
- package/dist/esm/api/admin-b2b.js.map +1 -0
- package/dist/esm/api/admin-finance.js +74 -0
- package/dist/esm/api/admin-finance.js.map +1 -0
- package/dist/esm/api/admin-payouts.js +50 -0
- package/dist/esm/api/admin-payouts.js.map +1 -0
- package/dist/esm/api/admin-qc.js +233 -0
- package/dist/esm/api/admin-qc.js.map +1 -0
- package/dist/esm/api/admin.js +275 -22
- package/dist/esm/api/admin.js.map +1 -1
- package/dist/esm/api/b2b.js +120 -0
- package/dist/esm/api/b2b.js.map +1 -0
- package/dist/esm/api/communication.js +275 -0
- package/dist/esm/api/communication.js.map +1 -0
- package/dist/esm/api/index.js +10 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/jobs.js +304 -43
- package/dist/esm/api/jobs.js.map +1 -1
- package/dist/esm/api/location.js +87 -0
- package/dist/esm/api/location.js.map +1 -0
- package/dist/esm/api/payments.js +124 -0
- package/dist/esm/api/payments.js.map +1 -0
- package/dist/esm/api/support.js +143 -0
- package/dist/esm/api/support.js.map +1 -0
- package/dist/esm/hooks/index.js +1552 -3
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/index.js +36 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/admin-finance.js +6 -0
- package/dist/esm/types/admin-finance.js.map +1 -0
- package/dist/esm/types/admin-invoice.js +6 -0
- package/dist/esm/types/admin-invoice.js.map +1 -0
- package/dist/esm/types/admin-payout.js +6 -0
- package/dist/esm/types/admin-payout.js.map +1 -0
- package/dist/esm/types/b2b.js +6 -0
- package/dist/esm/types/b2b.js.map +1 -0
- package/dist/esm/types/communication.js +87 -0
- package/dist/esm/types/communication.js.map +1 -0
- package/dist/esm/types/enums.js +341 -0
- package/dist/esm/types/enums.js.map +1 -1
- package/dist/esm/types/index.js +18 -2
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/job.js +1 -0
- package/dist/esm/types/job.js.map +1 -1
- package/dist/esm/types/location.js +6 -0
- package/dist/esm/types/location.js.map +1 -0
- package/dist/esm/types/payment.js +6 -0
- package/dist/esm/types/payment.js.map +1 -0
- package/dist/esm/types/qc.js +7 -0
- package/dist/esm/types/qc.js.map +1 -0
- package/dist/esm/types/support.js +6 -0
- package/dist/esm/types/support.js.map +1 -0
- package/dist/types/api/admin-b2b.d.ts +225 -0
- package/dist/types/api/admin-b2b.d.ts.map +1 -0
- package/dist/types/api/admin-finance.d.ts +52 -0
- package/dist/types/api/admin-finance.d.ts.map +1 -0
- package/dist/types/api/admin-payouts.d.ts +37 -0
- package/dist/types/api/admin-payouts.d.ts.map +1 -0
- package/dist/types/api/admin-qc.d.ts +157 -0
- package/dist/types/api/admin-qc.d.ts.map +1 -0
- package/dist/types/api/admin.d.ts +184 -17
- package/dist/types/api/admin.d.ts.map +1 -1
- package/dist/types/api/b2b.d.ts +77 -0
- package/dist/types/api/b2b.d.ts.map +1 -0
- package/dist/types/api/communication.d.ts +201 -0
- package/dist/types/api/communication.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +10 -1
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/jobs.d.ts +197 -38
- package/dist/types/api/jobs.d.ts.map +1 -1
- package/dist/types/api/location.d.ts +76 -0
- package/dist/types/api/location.d.ts.map +1 -0
- package/dist/types/api/payments.d.ts +81 -0
- package/dist/types/api/payments.d.ts.map +1 -0
- package/dist/types/api/support.d.ts +101 -0
- package/dist/types/api/support.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +965 -6
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +32 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/admin-finance.d.ts +265 -0
- package/dist/types/types/admin-finance.d.ts.map +1 -0
- package/dist/types/types/admin-invoice.d.ts +262 -0
- package/dist/types/types/admin-invoice.d.ts.map +1 -0
- package/dist/types/types/admin-payout.d.ts +180 -0
- package/dist/types/types/admin-payout.d.ts.map +1 -0
- package/dist/types/types/admin.d.ts +1341 -0
- package/dist/types/types/admin.d.ts.map +1 -1
- package/dist/types/types/b2b.d.ts +687 -0
- package/dist/types/types/b2b.d.ts.map +1 -0
- package/dist/types/types/communication.d.ts +670 -0
- package/dist/types/types/communication.d.ts.map +1 -0
- package/dist/types/types/enums.d.ts +311 -0
- package/dist/types/types/enums.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +10 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/job.d.ts +576 -55
- package/dist/types/types/job.d.ts.map +1 -1
- package/dist/types/types/location.d.ts +74 -0
- package/dist/types/types/location.d.ts.map +1 -0
- package/dist/types/types/payment.d.ts +281 -0
- package/dist/types/types/payment.d.ts.map +1 -0
- package/dist/types/types/qc.d.ts +589 -0
- package/dist/types/types/qc.d.ts.map +1 -0
- package/dist/types/types/support.d.ts +194 -0
- package/dist/types/types/support.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ interface MutationResult<TData, TVariables> extends MutationState<TData> {
|
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
127
|
export declare function useMutation<TData, TVariables>(mutationFn: (variables: TVariables) => Promise<StandardResponse<TData>>, options?: MutationOptions<TData>): MutationResult<TData, TVariables>;
|
|
128
|
-
import type { OtpPurpose, DeviceType } from '../types';
|
|
128
|
+
import type { OtpPurpose, DeviceType, PaginationParams, ArtisanFilterDto, ConsumerFilterDto, ApplicationFilterDto, JobFilterDto, ArtisanJobFilterDto, EstimateRequestDto, CreateJobDto, RescheduleJobDto, EscalateJobDto, NegotiateQuoteDto, CreateRatingDto, AddTipDto, ReportIssueDto, RequestRedoDto, AcceptJobDto, DeclineJobDto, AcknowledgeJobDto, MarkEnRouteDto, MarkArrivedDto, UpdateArtisanLocationDto, JobProgressUpdateDto, MarkJobCompleteDto, ConfirmCashReceivedDto, CreateQuoteDto, RequestMaterialsDto, JobQueueFilterDto, AssignArtisanDto, BroadcastJobDto, ReassignJobDto, UpdateJobPriorityDto, AddJobNoteDto, UpdateJobEtaDto, LogContactDto, InitiatePaymentDto, RecordBankTransferDto, ConfirmCashPaymentDto, PaymentFilterDto, AddPaymentMethodDto, UpdatePaymentMethodDto, AdminInvoiceFilterDto, CreateInvoiceDto, UpdateInvoiceDto, SendInvoiceDto, RecordInvoicePaymentDto, CancelInvoiceDto, CompanyStatementFilterDto, InvoiceableJobsFilterDto, PendingPayoutsFilterDto, ProcessWeeklyPayoutsDto, PayoutHistoryFilterDto, RetryPayoutDto, AdminTransactionFilterDto, FlagTransactionDto, ReconciliationFilterDto, RevenueSummaryFilterDto, CommissionSummaryFilterDto, OutstandingBalanceFilterDto, LinkCompanyDto, TeamListRequestDto, InviteTeamMemberDto, UpdateTeamMemberRoleDto, ConsumerPropertyListRequestDto, CreateB2BPropertyDto, UpdateB2BPropertyDto, CompanyFilterDto, CreateCompanyDto, UpdateCompanyDto, AssignAccountManagerDto, AddCompanyUserDto, UpdateCompanyUserDto, ContractFilterDto, CreateContractDto, UpdateContractDto, PropertyFilterDto, AdminCreatePropertyDto, AdminUpdatePropertyDto, MeetingNoteFilterDto, CreateMeetingNoteDto, UpdateMeetingNoteDto, AnalyticsFilterDto, ReportGenerationRequestDto, ReportListRequestDto, ReportExportRequestDto, ScheduledReportListRequestDto, CreateScheduledReportDto, UpdateScheduledReportDto, AdminUserListRequestDto, CreateAdminUserDto, UpdateAdminUserDto, DeactivateAdminUserDto, UpdateAdminRolesDto, ServiceAreaListRequestDto, CreateServiceAreaDto, UpdateServiceAreaDto, UpdatePricingConfigDto, UpdateCommissionConfigDto, UpdateSystemSettingsDto, ActivityLogListRequestDto, ErrorLogListRequestDto, TicketFilterDto, CreateTicketDto, CreateTicketMessageDto, CloseTicketDto, RateTicketDto, CreateEmergencyTicketDto, FaqFilterDto, FaqSearchDto, FaqFeedbackDto } from '../types';
|
|
129
129
|
interface RequestOtpInput {
|
|
130
130
|
phoneNumber: string;
|
|
131
131
|
purpose: OtpPurpose;
|
|
@@ -154,7 +154,6 @@ export declare function useLogout(): MutationResult<null, unknown>;
|
|
|
154
154
|
* Hook for getting current user
|
|
155
155
|
*/
|
|
156
156
|
export declare function useCurrentUser(): QueryResult<import("../index").UserProfileDto>;
|
|
157
|
-
import type { PaginationParams } from '../types';
|
|
158
157
|
/**
|
|
159
158
|
* Hook for consumer profile
|
|
160
159
|
*/
|
|
@@ -191,20 +190,308 @@ export declare function useArtisanEarnings(): QueryResult<import("../index").Ear
|
|
|
191
190
|
* Hook for artisan performance
|
|
192
191
|
*/
|
|
193
192
|
export declare function useArtisanPerformance(): QueryResult<import("../index").PerformanceRatingDto>;
|
|
194
|
-
|
|
193
|
+
/**
|
|
194
|
+
* Hook for service categories
|
|
195
|
+
*/
|
|
196
|
+
export declare function useServiceCategories(): QueryResult<import("../index").ServiceCategoryDto[]>;
|
|
197
|
+
/**
|
|
198
|
+
* Hook for a specific service category
|
|
199
|
+
*/
|
|
200
|
+
export declare function useServiceCategory(categoryId: string): QueryResult<import("../index").ServiceCategoryDto>;
|
|
201
|
+
/**
|
|
202
|
+
* Hook for getting a job estimate
|
|
203
|
+
*/
|
|
204
|
+
export declare function useEstimate(): MutationResult<import("../index").EstimateResponseDto, EstimateRequestDto>;
|
|
195
205
|
/**
|
|
196
206
|
* Hook for consumer jobs
|
|
197
207
|
*/
|
|
198
208
|
export declare function useConsumerJobs(params?: JobFilterDto): QueryResult<import("../index").PagedResult<import("../index").JobListItemDto>>;
|
|
209
|
+
/**
|
|
210
|
+
* Alias for useConsumerJobs
|
|
211
|
+
*/
|
|
212
|
+
export declare function useJobs(params?: JobFilterDto): QueryResult<import("../index").PagedResult<import("../index").JobListItemDto>>;
|
|
213
|
+
/**
|
|
214
|
+
* Hook for a specific job
|
|
215
|
+
*/
|
|
216
|
+
export declare function useJob(jobId: string): QueryResult<import("../index").JobDetailDto>;
|
|
217
|
+
/**
|
|
218
|
+
* Hook for job status
|
|
219
|
+
*/
|
|
220
|
+
export declare function useJobStatus(jobId: string): QueryResult<import("../index").JobStatusDto>;
|
|
221
|
+
/**
|
|
222
|
+
* Hook for job updates/timeline
|
|
223
|
+
*/
|
|
224
|
+
export declare function useJobUpdates(jobId: string): QueryResult<import("../index").JobUpdateDto[]>;
|
|
225
|
+
/**
|
|
226
|
+
* Hook for job artisan info
|
|
227
|
+
*/
|
|
228
|
+
export declare function useJobArtisan(jobId: string): QueryResult<import("../index").ArtisanForJobDto>;
|
|
229
|
+
/**
|
|
230
|
+
* Hook for job ETA
|
|
231
|
+
*/
|
|
232
|
+
export declare function useJobEta(jobId: string): QueryResult<import("../index").EtaDto>;
|
|
233
|
+
/**
|
|
234
|
+
* Hook for artisan location
|
|
235
|
+
*/
|
|
236
|
+
export declare function useJobLocation(jobId: string): QueryResult<import("../index").LocationDto>;
|
|
237
|
+
/**
|
|
238
|
+
* Hook for creating a job
|
|
239
|
+
*/
|
|
240
|
+
export declare function useCreateJob(): MutationResult<import("../index").JobRequestDto | import("../index").JobDetailDto, CreateJobDto>;
|
|
241
|
+
/**
|
|
242
|
+
* Hook for cancelling a job
|
|
243
|
+
*/
|
|
244
|
+
export declare function useCancelJob(): MutationResult<import("../index").JobDetailDto, {
|
|
245
|
+
jobId: string;
|
|
246
|
+
reason: string;
|
|
247
|
+
}>;
|
|
248
|
+
/**
|
|
249
|
+
* Hook for rescheduling a job
|
|
250
|
+
*/
|
|
251
|
+
export declare function useRescheduleJob(): MutationResult<import("../index").JobDetailDto, {
|
|
252
|
+
jobId: string;
|
|
253
|
+
data: RescheduleJobDto;
|
|
254
|
+
}>;
|
|
255
|
+
/**
|
|
256
|
+
* Hook for escalating a job
|
|
257
|
+
*/
|
|
258
|
+
export declare function useEscalateJob(): MutationResult<import("../index").JobDetailDto, {
|
|
259
|
+
jobId: string;
|
|
260
|
+
data: EscalateJobDto;
|
|
261
|
+
}>;
|
|
262
|
+
/**
|
|
263
|
+
* Hook for job quote
|
|
264
|
+
*/
|
|
265
|
+
export declare function useJobQuote(jobId: string): QueryResult<import("../index").JobQuoteDto>;
|
|
266
|
+
/**
|
|
267
|
+
* Hook for approving a quote
|
|
268
|
+
*/
|
|
269
|
+
export declare function useApproveQuote(): MutationResult<import("../index").JobQuoteDto, string>;
|
|
270
|
+
/**
|
|
271
|
+
* Hook for rejecting a quote
|
|
272
|
+
*/
|
|
273
|
+
export declare function useRejectQuote(): MutationResult<import("../index").JobQuoteDto, {
|
|
274
|
+
jobId: string;
|
|
275
|
+
reason: string;
|
|
276
|
+
}>;
|
|
277
|
+
/**
|
|
278
|
+
* Hook for negotiating a quote
|
|
279
|
+
*/
|
|
280
|
+
export declare function useNegotiateQuote(): MutationResult<import("../index").JobQuoteDto, {
|
|
281
|
+
jobId: string;
|
|
282
|
+
data: NegotiateQuoteDto;
|
|
283
|
+
}>;
|
|
284
|
+
/**
|
|
285
|
+
* Hook for job rating
|
|
286
|
+
*/
|
|
287
|
+
export declare function useJobRating(jobId: string): QueryResult<import("../index").JobRatingDto>;
|
|
288
|
+
/**
|
|
289
|
+
* Hook for submitting a rating
|
|
290
|
+
*/
|
|
291
|
+
export declare function useSubmitRating(): MutationResult<import("../index").JobRatingDto, {
|
|
292
|
+
jobId: string;
|
|
293
|
+
data: CreateRatingDto;
|
|
294
|
+
}>;
|
|
295
|
+
/**
|
|
296
|
+
* Hook for adding a tip
|
|
297
|
+
*/
|
|
298
|
+
export declare function useAddTip(): MutationResult<import("../index").JobRatingDto, {
|
|
299
|
+
jobId: string;
|
|
300
|
+
data: AddTipDto;
|
|
301
|
+
}>;
|
|
302
|
+
/**
|
|
303
|
+
* Hook for confirming job completion
|
|
304
|
+
*/
|
|
305
|
+
export declare function useConfirmCompletion(): MutationResult<import("../index").JobDetailDto, {
|
|
306
|
+
jobId: string;
|
|
307
|
+
notes?: string;
|
|
308
|
+
}>;
|
|
309
|
+
/**
|
|
310
|
+
* Hook for reporting an issue
|
|
311
|
+
*/
|
|
312
|
+
export declare function useReportIssue(): MutationResult<import("../index").JobDetailDto, {
|
|
313
|
+
jobId: string;
|
|
314
|
+
data: ReportIssueDto;
|
|
315
|
+
}>;
|
|
316
|
+
/**
|
|
317
|
+
* Hook for requesting a redo
|
|
318
|
+
*/
|
|
319
|
+
export declare function useRequestRedo(): MutationResult<import("../index").JobDetailDto, {
|
|
320
|
+
jobId: string;
|
|
321
|
+
data: RequestRedoDto;
|
|
322
|
+
}>;
|
|
323
|
+
/**
|
|
324
|
+
* Hook for available jobs (artisan)
|
|
325
|
+
*/
|
|
326
|
+
export declare function useAvailableJobs(): QueryResult<import("../index").PagedResult<import("../index").ArtisanJobDto>>;
|
|
199
327
|
/**
|
|
200
328
|
* Hook for artisan jobs
|
|
201
329
|
*/
|
|
202
330
|
export declare function useArtisanJobs(params?: ArtisanJobFilterDto): QueryResult<import("../index").PagedResult<import("../index").ArtisanJobDto>>;
|
|
203
331
|
/**
|
|
204
|
-
* Hook for
|
|
332
|
+
* Hook for artisan job history
|
|
333
|
+
*/
|
|
334
|
+
export declare function useArtisanJobHistory(params?: ArtisanJobFilterDto): QueryResult<import("../index").PagedResult<import("../index").ArtisanJobDto>>;
|
|
335
|
+
/**
|
|
336
|
+
* Hook for accepting a job
|
|
337
|
+
*/
|
|
338
|
+
export declare function useAcceptJob(): MutationResult<import("../index").ArtisanJobDetailDto, {
|
|
339
|
+
jobId: string;
|
|
340
|
+
data?: AcceptJobDto;
|
|
341
|
+
}>;
|
|
342
|
+
/**
|
|
343
|
+
* Hook for declining a job
|
|
344
|
+
*/
|
|
345
|
+
export declare function useDeclineJob(): MutationResult<null, {
|
|
346
|
+
jobId: string;
|
|
347
|
+
data: DeclineJobDto;
|
|
348
|
+
}>;
|
|
349
|
+
/**
|
|
350
|
+
* Hook for acknowledging assignment
|
|
351
|
+
*/
|
|
352
|
+
export declare function useAcknowledgeJob(): MutationResult<import("../index").ArtisanJobDetailDto, {
|
|
353
|
+
jobId: string;
|
|
354
|
+
data?: AcknowledgeJobDto;
|
|
355
|
+
}>;
|
|
356
|
+
/**
|
|
357
|
+
* Hook for marking en route
|
|
358
|
+
*/
|
|
359
|
+
export declare function useMarkEnRoute(): MutationResult<import("../index").ArtisanJobDetailDto, {
|
|
360
|
+
jobId: string;
|
|
361
|
+
data: MarkEnRouteDto;
|
|
362
|
+
}>;
|
|
363
|
+
/**
|
|
364
|
+
* Hook for marking arrived
|
|
365
|
+
*/
|
|
366
|
+
export declare function useMarkArrived(): MutationResult<import("../index").ArtisanJobDetailDto, {
|
|
367
|
+
jobId: string;
|
|
368
|
+
data: MarkArrivedDto;
|
|
369
|
+
}>;
|
|
370
|
+
/**
|
|
371
|
+
* Hook for updating artisan location
|
|
372
|
+
*/
|
|
373
|
+
export declare function useUpdateArtisanLocation(): MutationResult<null, {
|
|
374
|
+
jobId: string;
|
|
375
|
+
data: UpdateArtisanLocationDto;
|
|
376
|
+
}>;
|
|
377
|
+
/**
|
|
378
|
+
* Hook for sending job update
|
|
379
|
+
*/
|
|
380
|
+
export declare function useSendJobUpdate(): MutationResult<import("../index").ArtisanJobDetailDto, {
|
|
381
|
+
jobId: string;
|
|
382
|
+
data: JobProgressUpdateDto;
|
|
383
|
+
}>;
|
|
384
|
+
/**
|
|
385
|
+
* Hook for marking job complete
|
|
386
|
+
*/
|
|
387
|
+
export declare function useMarkComplete(): MutationResult<import("../index").ArtisanJobDetailDto, {
|
|
388
|
+
jobId: string;
|
|
389
|
+
data: MarkJobCompleteDto;
|
|
390
|
+
}>;
|
|
391
|
+
/**
|
|
392
|
+
* Hook for submitting a quote (artisan)
|
|
393
|
+
*/
|
|
394
|
+
export declare function useSubmitQuote(): MutationResult<import("../index").JobQuoteDto, {
|
|
395
|
+
jobId: string;
|
|
396
|
+
data: CreateQuoteDto;
|
|
397
|
+
}>;
|
|
398
|
+
/**
|
|
399
|
+
* Hook for revising a quote (artisan)
|
|
400
|
+
*/
|
|
401
|
+
export declare function useReviseQuote(): MutationResult<import("../index").JobQuoteDto, {
|
|
402
|
+
jobId: string;
|
|
403
|
+
data: CreateQuoteDto;
|
|
404
|
+
}>;
|
|
405
|
+
/**
|
|
406
|
+
* Hook for requesting materials
|
|
407
|
+
*/
|
|
408
|
+
export declare function useRequestMaterials(): MutationResult<import("../index").JobQuoteDto, {
|
|
409
|
+
jobId: string;
|
|
410
|
+
data: RequestMaterialsDto;
|
|
411
|
+
}>;
|
|
412
|
+
/**
|
|
413
|
+
* Hook for confirming cash received
|
|
414
|
+
*/
|
|
415
|
+
export declare function useConfirmCashReceived(): MutationResult<import("../index").ArtisanJobDetailDto, {
|
|
416
|
+
jobId: string;
|
|
417
|
+
data: ConfirmCashReceivedDto;
|
|
418
|
+
}>;
|
|
419
|
+
/**
|
|
420
|
+
* Hook for job queue (admin/dispatcher)
|
|
421
|
+
*/
|
|
422
|
+
export declare function useJobQueue(params?: JobQueueFilterDto): QueryResult<import("../index").PagedResult<import("../index").JobQueueItemDto>>;
|
|
423
|
+
/**
|
|
424
|
+
* Hook for active jobs (admin)
|
|
425
|
+
*/
|
|
426
|
+
export declare function useActiveJobs(): QueryResult<import("../index").PagedResult<import("../index").JobQueueItemDto>>;
|
|
427
|
+
/**
|
|
428
|
+
* Hook for admin job detail
|
|
429
|
+
*/
|
|
430
|
+
export declare function useAdminJob(jobId: string): QueryResult<import("../index").AdminJobDetailDto>;
|
|
431
|
+
/**
|
|
432
|
+
* Hook for available artisans for a job
|
|
433
|
+
*/
|
|
434
|
+
export declare function useAvailableArtisans(jobId: string): QueryResult<import("../index").AvailableArtisanDto[]>;
|
|
435
|
+
/**
|
|
436
|
+
* Hook for suggested artisans for a job
|
|
437
|
+
*/
|
|
438
|
+
export declare function useSuggestedArtisans(jobId: string): QueryResult<import("../index").SuggestedArtisanDto[]>;
|
|
439
|
+
/**
|
|
440
|
+
* Hook for assigning artisan to job
|
|
441
|
+
*/
|
|
442
|
+
export declare function useAssignArtisan(): MutationResult<import("../index").JobDetailDto, {
|
|
443
|
+
jobId: string;
|
|
444
|
+
data: AssignArtisanDto;
|
|
445
|
+
}>;
|
|
446
|
+
/**
|
|
447
|
+
* Hook for broadcasting job to artisans
|
|
448
|
+
*/
|
|
449
|
+
export declare function useBroadcastJob(): MutationResult<import("../index").JobDetailDto, {
|
|
450
|
+
jobId: string;
|
|
451
|
+
data: BroadcastJobDto;
|
|
452
|
+
}>;
|
|
453
|
+
/**
|
|
454
|
+
* Hook for reassigning job
|
|
455
|
+
*/
|
|
456
|
+
export declare function useReassignJob(): MutationResult<import("../index").JobDetailDto, {
|
|
457
|
+
jobId: string;
|
|
458
|
+
data: ReassignJobDto;
|
|
459
|
+
}>;
|
|
460
|
+
/**
|
|
461
|
+
* Hook for updating job priority
|
|
462
|
+
*/
|
|
463
|
+
export declare function useUpdateJobPriority(): MutationResult<import("../index").JobDetailDto, {
|
|
464
|
+
jobId: string;
|
|
465
|
+
data: UpdateJobPriorityDto;
|
|
466
|
+
}>;
|
|
467
|
+
/**
|
|
468
|
+
* Hook for adding job note
|
|
469
|
+
*/
|
|
470
|
+
export declare function useAddJobNote(): MutationResult<import("../index").JobNoteDto, {
|
|
471
|
+
jobId: string;
|
|
472
|
+
data: AddJobNoteDto;
|
|
473
|
+
}>;
|
|
474
|
+
/**
|
|
475
|
+
* Hook for updating job ETA
|
|
476
|
+
*/
|
|
477
|
+
export declare function useUpdateJobEta(): MutationResult<import("../index").JobDetailDto, {
|
|
478
|
+
jobId: string;
|
|
479
|
+
data: UpdateJobEtaDto;
|
|
480
|
+
}>;
|
|
481
|
+
/**
|
|
482
|
+
* Hook for logging customer contact
|
|
483
|
+
*/
|
|
484
|
+
export declare function useLogCustomerContact(): MutationResult<import("../index").JobNoteDto, {
|
|
485
|
+
jobId: string;
|
|
486
|
+
data: LogContactDto;
|
|
487
|
+
}>;
|
|
488
|
+
/**
|
|
489
|
+
* Hook for logging artisan contact
|
|
205
490
|
*/
|
|
206
|
-
export declare function
|
|
207
|
-
|
|
491
|
+
export declare function useLogArtisanContact(): MutationResult<import("../index").JobNoteDto, {
|
|
492
|
+
jobId: string;
|
|
493
|
+
data: LogContactDto;
|
|
494
|
+
}>;
|
|
208
495
|
/**
|
|
209
496
|
* Hook for admin dashboard stats
|
|
210
497
|
*/
|
|
@@ -221,5 +508,677 @@ export declare function useAdminConsumers(params?: ConsumerFilterDto): QueryResu
|
|
|
221
508
|
* Hook for pending applications
|
|
222
509
|
*/
|
|
223
510
|
export declare function usePendingApplications(params?: ApplicationFilterDto): QueryResult<import("../index").PagedResult<import("../index").AdminArtisanListItemDto>>;
|
|
511
|
+
/**
|
|
512
|
+
* Hook for getting saved payment methods
|
|
513
|
+
*/
|
|
514
|
+
export declare function usePaymentMethods(): QueryResult<import("../index").SavedPaymentMethodDto[]>;
|
|
515
|
+
/**
|
|
516
|
+
* Hook for adding a payment method
|
|
517
|
+
*/
|
|
518
|
+
export declare function useAddPaymentMethod(): MutationResult<import("../index").SavedPaymentMethodDto, AddPaymentMethodDto>;
|
|
519
|
+
/**
|
|
520
|
+
* Hook for updating a payment method
|
|
521
|
+
*/
|
|
522
|
+
export declare function useUpdatePaymentMethod(): MutationResult<import("../index").SavedPaymentMethodDto, {
|
|
523
|
+
methodId: string;
|
|
524
|
+
data: UpdatePaymentMethodDto;
|
|
525
|
+
}>;
|
|
526
|
+
/**
|
|
527
|
+
* Hook for deleting a payment method
|
|
528
|
+
*/
|
|
529
|
+
export declare function useDeletePaymentMethod(): MutationResult<null, string>;
|
|
530
|
+
/**
|
|
531
|
+
* Hook for setting default payment method
|
|
532
|
+
*/
|
|
533
|
+
export declare function useSetDefaultPaymentMethod(): MutationResult<import("../index").SavedPaymentMethodDto, string>;
|
|
534
|
+
/**
|
|
535
|
+
* Hook for getting payment status
|
|
536
|
+
*/
|
|
537
|
+
export declare function usePaymentStatus(jobId: string): QueryResult<import("../index").PaymentStatusDto>;
|
|
538
|
+
/**
|
|
539
|
+
* Hook for getting payment details
|
|
540
|
+
*/
|
|
541
|
+
export declare function usePayment(jobId: string): QueryResult<import("../index").PaymentDto>;
|
|
542
|
+
/**
|
|
543
|
+
* Hook for initiating a payment
|
|
544
|
+
*/
|
|
545
|
+
export declare function useInitiatePayment(): MutationResult<import("../index").PaymentInitiationDto, {
|
|
546
|
+
jobId: string;
|
|
547
|
+
data: InitiatePaymentDto;
|
|
548
|
+
}>;
|
|
549
|
+
/**
|
|
550
|
+
* Hook for completing a card payment
|
|
551
|
+
*/
|
|
552
|
+
export declare function usePayWithCard(): MutationResult<import("../index").PaymentStatusDto, {
|
|
553
|
+
jobId: string;
|
|
554
|
+
paymentReference: string;
|
|
555
|
+
saveCard?: boolean;
|
|
556
|
+
}>;
|
|
557
|
+
/**
|
|
558
|
+
* Hook for recording a bank transfer payment
|
|
559
|
+
*/
|
|
560
|
+
export declare function usePayWithTransfer(): MutationResult<import("../index").PaymentStatusDto, {
|
|
561
|
+
jobId: string;
|
|
562
|
+
data: RecordBankTransferDto;
|
|
563
|
+
}>;
|
|
564
|
+
/**
|
|
565
|
+
* Hook for confirming cash payment (artisan)
|
|
566
|
+
*/
|
|
567
|
+
export declare function useConfirmCashPayment(): MutationResult<import("../index").PaymentStatusDto, {
|
|
568
|
+
jobId: string;
|
|
569
|
+
data?: ConfirmCashPaymentDto;
|
|
570
|
+
}>;
|
|
571
|
+
/**
|
|
572
|
+
* Hook for getting a receipt
|
|
573
|
+
*/
|
|
574
|
+
export declare function useReceipt(jobId: string): QueryResult<import("../index").ReceiptDto>;
|
|
575
|
+
/**
|
|
576
|
+
* Hook for getting an invoice (B2B)
|
|
577
|
+
*/
|
|
578
|
+
export declare function useInvoice(jobId: string): QueryResult<import("../index").InvoiceDto>;
|
|
579
|
+
/**
|
|
580
|
+
* Hook for payment history
|
|
581
|
+
*/
|
|
582
|
+
export declare function usePaymentHistory(params?: PaymentFilterDto): QueryResult<import("../index").PagedResult<import("../index").PaymentListItemDto>>;
|
|
583
|
+
/**
|
|
584
|
+
* Hook for company invoices (admin)
|
|
585
|
+
*/
|
|
586
|
+
export declare function useCompanyInvoices(companyId: string, params?: AdminInvoiceFilterDto): QueryResult<import("../index").PagedResult<import("../index").AdminInvoiceListItemDto>>;
|
|
587
|
+
/**
|
|
588
|
+
* Hook for invoice detail (admin)
|
|
589
|
+
*/
|
|
590
|
+
export declare function useAdminInvoice(companyId: string, invoiceId: string): QueryResult<import("../index").AdminInvoiceDetailDto>;
|
|
591
|
+
/**
|
|
592
|
+
* Hook for creating an invoice
|
|
593
|
+
*/
|
|
594
|
+
export declare function useCreateInvoice(): MutationResult<import("../index").AdminInvoiceDetailDto, {
|
|
595
|
+
companyId: string;
|
|
596
|
+
data: CreateInvoiceDto;
|
|
597
|
+
}>;
|
|
598
|
+
/**
|
|
599
|
+
* Hook for updating a draft invoice
|
|
600
|
+
*/
|
|
601
|
+
export declare function useUpdateInvoice(): MutationResult<import("../index").AdminInvoiceDetailDto, {
|
|
602
|
+
companyId: string;
|
|
603
|
+
invoiceId: string;
|
|
604
|
+
data: UpdateInvoiceDto;
|
|
605
|
+
}>;
|
|
606
|
+
/**
|
|
607
|
+
* Hook for sending an invoice
|
|
608
|
+
*/
|
|
609
|
+
export declare function useSendInvoice(): MutationResult<import("../index").InvoiceSendResponseDto, {
|
|
610
|
+
companyId: string;
|
|
611
|
+
invoiceId: string;
|
|
612
|
+
data?: SendInvoiceDto;
|
|
613
|
+
}>;
|
|
614
|
+
/**
|
|
615
|
+
* Hook for recording invoice payment
|
|
616
|
+
*/
|
|
617
|
+
export declare function useRecordInvoicePayment(): MutationResult<import("../index").InvoicePaymentResponseDto, {
|
|
618
|
+
companyId: string;
|
|
619
|
+
invoiceId: string;
|
|
620
|
+
data: RecordInvoicePaymentDto;
|
|
621
|
+
}>;
|
|
622
|
+
/**
|
|
623
|
+
* Hook for cancelling an invoice
|
|
624
|
+
*/
|
|
625
|
+
export declare function useCancelInvoice(): MutationResult<import("../index").AdminInvoiceDetailDto, {
|
|
626
|
+
companyId: string;
|
|
627
|
+
invoiceId: string;
|
|
628
|
+
data: CancelInvoiceDto;
|
|
629
|
+
}>;
|
|
630
|
+
/**
|
|
631
|
+
* Hook for company statement
|
|
632
|
+
*/
|
|
633
|
+
export declare function useCompanyStatement(companyId: string, params?: CompanyStatementFilterDto): QueryResult<import("../index").CompanyStatementDto>;
|
|
634
|
+
/**
|
|
635
|
+
* Hook for invoiceable jobs
|
|
636
|
+
*/
|
|
637
|
+
export declare function useInvoiceableJobs(companyId: string, params?: InvoiceableJobsFilterDto): QueryResult<import("../index").InvoiceableJobsResponseDto>;
|
|
638
|
+
/**
|
|
639
|
+
* Hook for pending payouts
|
|
640
|
+
*/
|
|
641
|
+
export declare function usePendingPayouts(params?: PendingPayoutsFilterDto): QueryResult<import("../index").PendingPayoutsResponseDto>;
|
|
642
|
+
/**
|
|
643
|
+
* Hook for processing weekly payouts
|
|
644
|
+
*/
|
|
645
|
+
export declare function useProcessWeeklyPayouts(): MutationResult<import("../index").WeeklyPayoutResultDto, ProcessWeeklyPayoutsDto | undefined>;
|
|
646
|
+
/**
|
|
647
|
+
* Hook for payout history
|
|
648
|
+
*/
|
|
649
|
+
export declare function usePayoutHistory(params?: PayoutHistoryFilterDto): QueryResult<import("../index").PagedResult<import("../index").AdminPayoutListItemDto>>;
|
|
650
|
+
/**
|
|
651
|
+
* Hook for payout detail
|
|
652
|
+
*/
|
|
653
|
+
export declare function useAdminPayout(payoutId: string): QueryResult<import("../index").AdminPayoutDetailDto>;
|
|
654
|
+
/**
|
|
655
|
+
* Hook for retrying a failed payout
|
|
656
|
+
*/
|
|
657
|
+
export declare function useRetryPayout(): MutationResult<import("../index").PayoutRetryResultDto, {
|
|
658
|
+
payoutId: string;
|
|
659
|
+
data?: RetryPayoutDto;
|
|
660
|
+
}>;
|
|
661
|
+
/**
|
|
662
|
+
* Hook for admin transactions
|
|
663
|
+
*/
|
|
664
|
+
export declare function useAdminTransactions(params?: AdminTransactionFilterDto): QueryResult<import("../index").PagedResult<import("../index").AdminTransactionListItemDto>>;
|
|
665
|
+
/**
|
|
666
|
+
* Hook for admin transaction detail
|
|
667
|
+
*/
|
|
668
|
+
export declare function useAdminTransaction(transactionId: string): QueryResult<import("../index").AdminTransactionDetailDto>;
|
|
669
|
+
/**
|
|
670
|
+
* Hook for flagging a transaction
|
|
671
|
+
*/
|
|
672
|
+
export declare function useFlagTransaction(): MutationResult<import("../index").AdminTransactionDetailDto, {
|
|
673
|
+
transactionId: string;
|
|
674
|
+
data: FlagTransactionDto;
|
|
675
|
+
}>;
|
|
676
|
+
/**
|
|
677
|
+
* Hook for unflagging a transaction
|
|
678
|
+
*/
|
|
679
|
+
export declare function useUnflagTransaction(): MutationResult<import("../index").AdminTransactionDetailDto, string>;
|
|
680
|
+
/**
|
|
681
|
+
* Hook for marking a transaction as reconciled
|
|
682
|
+
*/
|
|
683
|
+
export declare function useMarkTransactionReconciled(): MutationResult<import("../index").AdminTransactionDetailDto, string>;
|
|
684
|
+
/**
|
|
685
|
+
* Hook for reconciliation report
|
|
686
|
+
*/
|
|
687
|
+
export declare function useReconciliationReport(params?: ReconciliationFilterDto): QueryResult<import("../index").ReconciliationDto>;
|
|
688
|
+
/**
|
|
689
|
+
* Hook for revenue summary
|
|
690
|
+
*/
|
|
691
|
+
export declare function useRevenueSummary(params?: RevenueSummaryFilterDto): QueryResult<import("../index").RevenueSummaryDto>;
|
|
692
|
+
/**
|
|
693
|
+
* Hook for commission summary
|
|
694
|
+
*/
|
|
695
|
+
export declare function useCommissionSummary(params?: CommissionSummaryFilterDto): QueryResult<import("../index").CommissionSummaryDto>;
|
|
696
|
+
/**
|
|
697
|
+
* Hook for outstanding balances
|
|
698
|
+
*/
|
|
699
|
+
export declare function useOutstandingBalances(params?: OutstandingBalanceFilterDto): QueryResult<import("../index").OutstandingBalanceSummaryDto>;
|
|
700
|
+
/**
|
|
701
|
+
* Hook for getting my company info (B2B consumer)
|
|
702
|
+
*/
|
|
703
|
+
export declare function useMyCompany(): QueryResult<import("../index").CompanyInfoDto>;
|
|
704
|
+
/**
|
|
705
|
+
* Hook for linking to a company
|
|
706
|
+
*/
|
|
707
|
+
export declare function useLinkToCompany(): MutationResult<import("../index").CompanyInfoDto, LinkCompanyDto>;
|
|
708
|
+
/**
|
|
709
|
+
* Hook for unlinking from company
|
|
710
|
+
*/
|
|
711
|
+
export declare function useUnlinkFromCompany(): MutationResult<boolean, unknown>;
|
|
712
|
+
/**
|
|
713
|
+
* Hook for team members (B2B consumer)
|
|
714
|
+
*/
|
|
715
|
+
export declare function useTeamMembers(params?: TeamListRequestDto): QueryResult<import("../index").TeamListResponseDto>;
|
|
716
|
+
/**
|
|
717
|
+
* Hook for inviting a team member
|
|
718
|
+
*/
|
|
719
|
+
export declare function useInviteTeamMember(): MutationResult<import("../index").TeamMemberInfoDto, InviteTeamMemberDto>;
|
|
720
|
+
/**
|
|
721
|
+
* Hook for updating team member role
|
|
722
|
+
*/
|
|
723
|
+
export declare function useUpdateTeamMemberRole(): MutationResult<import("../index").TeamMemberInfoDto, {
|
|
724
|
+
memberId: string;
|
|
725
|
+
data: UpdateTeamMemberRoleDto;
|
|
726
|
+
}>;
|
|
727
|
+
/**
|
|
728
|
+
* Hook for removing a team member
|
|
729
|
+
*/
|
|
730
|
+
export declare function useRemoveTeamMember(): MutationResult<boolean, string>;
|
|
731
|
+
/**
|
|
732
|
+
* Hook for monthly B2B report
|
|
733
|
+
*/
|
|
734
|
+
export declare function useB2BMonthlyReport(year?: number, month?: number): QueryResult<import("../index").B2BReportDto>;
|
|
735
|
+
/**
|
|
736
|
+
* Hook for B2B properties (consumer)
|
|
737
|
+
*/
|
|
738
|
+
export declare function useB2BProperties(params?: ConsumerPropertyListRequestDto): QueryResult<import("../index").ConsumerPropertyListResponseDto>;
|
|
739
|
+
/**
|
|
740
|
+
* Hook for B2B property detail (consumer)
|
|
741
|
+
*/
|
|
742
|
+
export declare function useB2BProperty(propertyId: string): QueryResult<import("../index").ConsumerPropertyDetailDto>;
|
|
743
|
+
/**
|
|
744
|
+
* Hook for creating a B2B property (consumer)
|
|
745
|
+
*/
|
|
746
|
+
export declare function useCreateB2BProperty(): MutationResult<import("../index").ConsumerPropertyDetailDto, CreateB2BPropertyDto>;
|
|
747
|
+
/**
|
|
748
|
+
* Hook for updating a B2B property (consumer)
|
|
749
|
+
*/
|
|
750
|
+
export declare function useUpdateB2BProperty(): MutationResult<import("../index").ConsumerPropertyDetailDto, {
|
|
751
|
+
propertyId: string;
|
|
752
|
+
data: UpdateB2BPropertyDto;
|
|
753
|
+
}>;
|
|
754
|
+
/**
|
|
755
|
+
* Hook for deleting a B2B property (consumer)
|
|
756
|
+
*/
|
|
757
|
+
export declare function useDeleteB2BProperty(): MutationResult<boolean, string>;
|
|
758
|
+
/**
|
|
759
|
+
* Hook for admin B2B companies list
|
|
760
|
+
*/
|
|
761
|
+
export declare function useAdminCompanies(params?: CompanyFilterDto): QueryResult<import("../api/admin-b2b").CompanyListResponse>;
|
|
762
|
+
/**
|
|
763
|
+
* Hook for admin company detail
|
|
764
|
+
*/
|
|
765
|
+
export declare function useAdminCompany(companyId: string): QueryResult<import("../index").AdminCompanyDetailDto>;
|
|
766
|
+
/**
|
|
767
|
+
* Hook for creating a company (admin)
|
|
768
|
+
*/
|
|
769
|
+
export declare function useCreateCompany(): MutationResult<import("../index").AdminCompanyDetailDto, CreateCompanyDto>;
|
|
770
|
+
/**
|
|
771
|
+
* Hook for updating a company (admin)
|
|
772
|
+
*/
|
|
773
|
+
export declare function useUpdateCompany(): MutationResult<import("../index").AdminCompanyDetailDto, {
|
|
774
|
+
companyId: string;
|
|
775
|
+
data: UpdateCompanyDto;
|
|
776
|
+
}>;
|
|
777
|
+
/**
|
|
778
|
+
* Hook for deleting a company (admin)
|
|
779
|
+
*/
|
|
780
|
+
export declare function useDeleteCompany(): MutationResult<boolean, string>;
|
|
781
|
+
/**
|
|
782
|
+
* Hook for regenerating company code (admin)
|
|
783
|
+
*/
|
|
784
|
+
export declare function useRegenerateCompanyCode(): MutationResult<import("../index").RegenerateCodeResultDto, string>;
|
|
785
|
+
/**
|
|
786
|
+
* Hook for assigning account manager (admin)
|
|
787
|
+
*/
|
|
788
|
+
export declare function useAssignAccountManager(): MutationResult<boolean, {
|
|
789
|
+
companyId: string;
|
|
790
|
+
data: AssignAccountManagerDto;
|
|
791
|
+
}>;
|
|
792
|
+
/**
|
|
793
|
+
* Hook for company usage report (admin)
|
|
794
|
+
*/
|
|
795
|
+
export declare function useCompanyUsageReport(companyId: string, params?: {
|
|
796
|
+
fromDate?: string;
|
|
797
|
+
toDate?: string;
|
|
798
|
+
}): QueryResult<import("../index").AdminUsageReportDto>;
|
|
799
|
+
/**
|
|
800
|
+
* Hook for company users (admin)
|
|
801
|
+
*/
|
|
802
|
+
export declare function useAdminCompanyUsers(companyId: string, params?: {
|
|
803
|
+
page?: number;
|
|
804
|
+
pageSize?: number;
|
|
805
|
+
search?: string;
|
|
806
|
+
role?: string;
|
|
807
|
+
isActive?: boolean;
|
|
808
|
+
}): QueryResult<import("../api/admin-b2b").CompanyUserListResponse>;
|
|
809
|
+
/**
|
|
810
|
+
* Hook for adding a company user (admin)
|
|
811
|
+
*/
|
|
812
|
+
export declare function useAddCompanyUser(): MutationResult<import("../index").AdminCompanyUserDto, {
|
|
813
|
+
companyId: string;
|
|
814
|
+
data: AddCompanyUserDto;
|
|
815
|
+
}>;
|
|
816
|
+
/**
|
|
817
|
+
* Hook for updating a company user (admin)
|
|
818
|
+
*/
|
|
819
|
+
export declare function useUpdateCompanyUser(): MutationResult<import("../index").AdminCompanyUserDto, {
|
|
820
|
+
companyId: string;
|
|
821
|
+
userId: string;
|
|
822
|
+
data: UpdateCompanyUserDto;
|
|
823
|
+
}>;
|
|
824
|
+
/**
|
|
825
|
+
* Hook for removing a company user (admin)
|
|
826
|
+
*/
|
|
827
|
+
export declare function useRemoveCompanyUser(): MutationResult<boolean, {
|
|
828
|
+
companyId: string;
|
|
829
|
+
userId: string;
|
|
830
|
+
}>;
|
|
831
|
+
/**
|
|
832
|
+
* Hook for company contracts (admin)
|
|
833
|
+
*/
|
|
834
|
+
export declare function useAdminCompanyContracts(companyId: string, params?: ContractFilterDto): QueryResult<import("../api/admin-b2b").ContractListResponse>;
|
|
835
|
+
/**
|
|
836
|
+
* Hook for contract detail (admin)
|
|
837
|
+
*/
|
|
838
|
+
export declare function useAdminContract(contractId: string): QueryResult<import("../index").AdminContractDto>;
|
|
839
|
+
/**
|
|
840
|
+
* Hook for creating a contract (admin)
|
|
841
|
+
*/
|
|
842
|
+
export declare function useCreateContract(): MutationResult<import("../index").AdminContractDto, {
|
|
843
|
+
companyId: string;
|
|
844
|
+
data: CreateContractDto;
|
|
845
|
+
}>;
|
|
846
|
+
/**
|
|
847
|
+
* Hook for updating a contract (admin)
|
|
848
|
+
*/
|
|
849
|
+
export declare function useUpdateContract(): MutationResult<import("../index").AdminContractDto, {
|
|
850
|
+
contractId: string;
|
|
851
|
+
data: UpdateContractDto;
|
|
852
|
+
}>;
|
|
853
|
+
/**
|
|
854
|
+
* Hook for terminating a contract (admin)
|
|
855
|
+
*/
|
|
856
|
+
export declare function useTerminateContract(): MutationResult<boolean, {
|
|
857
|
+
contractId: string;
|
|
858
|
+
reason: string;
|
|
859
|
+
}>;
|
|
860
|
+
/**
|
|
861
|
+
* Hook for company properties (admin)
|
|
862
|
+
*/
|
|
863
|
+
export declare function useAdminCompanyProperties(companyId: string, params?: PropertyFilterDto): QueryResult<import("../api/admin-b2b").PropertyListResponse>;
|
|
864
|
+
/**
|
|
865
|
+
* Hook for property detail (admin)
|
|
866
|
+
*/
|
|
867
|
+
export declare function useAdminProperty(propertyId: string): QueryResult<import("../index").AdminPropertyDto>;
|
|
868
|
+
/**
|
|
869
|
+
* Hook for creating a property (admin)
|
|
870
|
+
*/
|
|
871
|
+
export declare function useCreateAdminProperty(): MutationResult<import("../index").AdminPropertyDto, {
|
|
872
|
+
companyId: string;
|
|
873
|
+
data: AdminCreatePropertyDto;
|
|
874
|
+
}>;
|
|
875
|
+
/**
|
|
876
|
+
* Hook for updating a property (admin)
|
|
877
|
+
*/
|
|
878
|
+
export declare function useUpdateAdminProperty(): MutationResult<import("../index").AdminPropertyDto, {
|
|
879
|
+
propertyId: string;
|
|
880
|
+
data: AdminUpdatePropertyDto;
|
|
881
|
+
}>;
|
|
882
|
+
/**
|
|
883
|
+
* Hook for deleting a property (admin)
|
|
884
|
+
*/
|
|
885
|
+
export declare function useDeleteAdminProperty(): MutationResult<boolean, string>;
|
|
886
|
+
/**
|
|
887
|
+
* Hook for company meeting notes (admin)
|
|
888
|
+
*/
|
|
889
|
+
export declare function useAdminMeetingNotes(companyId: string, params?: MeetingNoteFilterDto): QueryResult<import("../api/admin-b2b").MeetingNoteListResponse>;
|
|
890
|
+
/**
|
|
891
|
+
* Hook for meeting note detail (admin)
|
|
892
|
+
*/
|
|
893
|
+
export declare function useAdminMeetingNote(meetingNoteId: string): QueryResult<import("../index").AdminMeetingNoteDto>;
|
|
894
|
+
/**
|
|
895
|
+
* Hook for creating a meeting note (admin)
|
|
896
|
+
*/
|
|
897
|
+
export declare function useCreateMeetingNote(): MutationResult<import("../index").AdminMeetingNoteDto, {
|
|
898
|
+
companyId: string;
|
|
899
|
+
data: CreateMeetingNoteDto;
|
|
900
|
+
}>;
|
|
901
|
+
/**
|
|
902
|
+
* Hook for updating a meeting note (admin)
|
|
903
|
+
*/
|
|
904
|
+
export declare function useUpdateMeetingNote(): MutationResult<import("../index").AdminMeetingNoteDto, {
|
|
905
|
+
meetingNoteId: string;
|
|
906
|
+
data: UpdateMeetingNoteDto;
|
|
907
|
+
}>;
|
|
908
|
+
/**
|
|
909
|
+
* Hook for deleting a meeting note (admin)
|
|
910
|
+
*/
|
|
911
|
+
export declare function useDeleteMeetingNote(): MutationResult<boolean, string>;
|
|
912
|
+
/**
|
|
913
|
+
* Hook for dashboard KPIs
|
|
914
|
+
*/
|
|
915
|
+
export declare function useDashboardKpis(params?: AnalyticsFilterDto): QueryResult<import("../index").DashboardKpiDto>;
|
|
916
|
+
/**
|
|
917
|
+
* Hook for job analytics
|
|
918
|
+
*/
|
|
919
|
+
export declare function useJobAnalytics(params?: AnalyticsFilterDto): QueryResult<import("../index").JobAnalyticsDto>;
|
|
920
|
+
/**
|
|
921
|
+
* Hook for artisan analytics (detailed)
|
|
922
|
+
*/
|
|
923
|
+
export declare function useArtisanAnalytics(params?: AnalyticsFilterDto): QueryResult<import("../index").ArtisanAnalyticsDetailDto>;
|
|
924
|
+
/**
|
|
925
|
+
* Hook for customer analytics
|
|
926
|
+
*/
|
|
927
|
+
export declare function useCustomerAnalytics(params?: AnalyticsFilterDto): QueryResult<import("../index").CustomerAnalyticsDetailDto>;
|
|
928
|
+
/**
|
|
929
|
+
* Hook for revenue analytics
|
|
930
|
+
*/
|
|
931
|
+
export declare function useRevenueAnalytics(params?: AnalyticsFilterDto): QueryResult<import("../index").RevenueAnalyticsDto>;
|
|
932
|
+
/**
|
|
933
|
+
* Hook for SLA compliance analytics
|
|
934
|
+
*/
|
|
935
|
+
export declare function useSlaAnalytics(params?: AnalyticsFilterDto): QueryResult<import("../index").SlaAnalyticsDto>;
|
|
936
|
+
/**
|
|
937
|
+
* Hook for complaint analytics
|
|
938
|
+
*/
|
|
939
|
+
export declare function useComplaintAnalytics(params?: AnalyticsFilterDto): QueryResult<import("../index").ComplaintAnalyticsDto>;
|
|
940
|
+
/**
|
|
941
|
+
* Hook for generating jobs report
|
|
942
|
+
*/
|
|
943
|
+
export declare function useGenerateJobsReport(): MutationResult<import("../index").ReportGenerationResponseDto, ReportGenerationRequestDto>;
|
|
944
|
+
/**
|
|
945
|
+
* Hook for generating artisans report
|
|
946
|
+
*/
|
|
947
|
+
export declare function useGenerateArtisansReport(): MutationResult<import("../index").ReportGenerationResponseDto, ReportGenerationRequestDto>;
|
|
948
|
+
/**
|
|
949
|
+
* Hook for generating customers report
|
|
950
|
+
*/
|
|
951
|
+
export declare function useGenerateCustomersReport(): MutationResult<import("../index").ReportGenerationResponseDto, ReportGenerationRequestDto>;
|
|
952
|
+
/**
|
|
953
|
+
* Hook for generating revenue report
|
|
954
|
+
*/
|
|
955
|
+
export declare function useGenerateRevenueReport(): MutationResult<import("../index").ReportGenerationResponseDto, ReportGenerationRequestDto>;
|
|
956
|
+
/**
|
|
957
|
+
* Hook for listing reports
|
|
958
|
+
*/
|
|
959
|
+
export declare function useReportsList(params?: ReportListRequestDto): QueryResult<import("../index").ReportListResponseDto>;
|
|
960
|
+
/**
|
|
961
|
+
* Hook for report detail
|
|
962
|
+
*/
|
|
963
|
+
export declare function useReport(reportId: string): QueryResult<import("../index").ReportDetailResponseDto>;
|
|
964
|
+
/**
|
|
965
|
+
* Hook for exporting a report
|
|
966
|
+
*/
|
|
967
|
+
export declare function useExportReport(): MutationResult<import("../index").ReportExportResponseDto, {
|
|
968
|
+
reportId: string;
|
|
969
|
+
data: ReportExportRequestDto;
|
|
970
|
+
}>;
|
|
971
|
+
/**
|
|
972
|
+
* Hook for scheduled reports list
|
|
973
|
+
*/
|
|
974
|
+
export declare function useScheduledReports(params?: ScheduledReportListRequestDto): QueryResult<import("../index").ScheduledReportListResponseDto>;
|
|
975
|
+
/**
|
|
976
|
+
* Hook for creating a scheduled report
|
|
977
|
+
*/
|
|
978
|
+
export declare function useCreateScheduledReport(): MutationResult<import("../index").ScheduledReportDetailResponseDto, CreateScheduledReportDto>;
|
|
979
|
+
/**
|
|
980
|
+
* Hook for scheduled report detail
|
|
981
|
+
*/
|
|
982
|
+
export declare function useScheduledReport(scheduleId: string): QueryResult<import("../index").ScheduledReportDetailResponseDto>;
|
|
983
|
+
/**
|
|
984
|
+
* Hook for updating a scheduled report
|
|
985
|
+
*/
|
|
986
|
+
export declare function useUpdateScheduledReport(): MutationResult<import("../index").ScheduledReportDetailResponseDto, {
|
|
987
|
+
scheduleId: string;
|
|
988
|
+
data: UpdateScheduledReportDto;
|
|
989
|
+
}>;
|
|
990
|
+
/**
|
|
991
|
+
* Hook for deleting a scheduled report
|
|
992
|
+
*/
|
|
993
|
+
export declare function useDeleteScheduledReport(): MutationResult<boolean, string>;
|
|
994
|
+
/**
|
|
995
|
+
* Hook for available report types
|
|
996
|
+
*/
|
|
997
|
+
export declare function useAvailableReportTypes(): QueryResult<import("../index").AvailableReportTypesResponseDto>;
|
|
998
|
+
/**
|
|
999
|
+
* Hook for admin users list
|
|
1000
|
+
*/
|
|
1001
|
+
export declare function useAdminUsers(params?: AdminUserListRequestDto): QueryResult<import("../index").AdminUserListResponseDto>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Hook for admin user detail
|
|
1004
|
+
*/
|
|
1005
|
+
export declare function useAdminUser(userId: string): QueryResult<import("../index").AdminUserDetailResponseDto>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Hook for creating an admin user
|
|
1008
|
+
*/
|
|
1009
|
+
export declare function useCreateAdminUser(): MutationResult<import("../index").AdminUserDetailResponseDto, CreateAdminUserDto>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Hook for updating an admin user
|
|
1012
|
+
*/
|
|
1013
|
+
export declare function useUpdateAdminUser(): MutationResult<import("../index").AdminUserDetailResponseDto, {
|
|
1014
|
+
userId: string;
|
|
1015
|
+
data: UpdateAdminUserDto;
|
|
1016
|
+
}>;
|
|
1017
|
+
/**
|
|
1018
|
+
* Hook for deactivating an admin user
|
|
1019
|
+
*/
|
|
1020
|
+
export declare function useDeactivateAdminUser(): MutationResult<boolean, {
|
|
1021
|
+
userId: string;
|
|
1022
|
+
data?: DeactivateAdminUserDto;
|
|
1023
|
+
}>;
|
|
1024
|
+
/**
|
|
1025
|
+
* Hook for updating admin user roles
|
|
1026
|
+
*/
|
|
1027
|
+
export declare function useUpdateAdminUserRoles(): MutationResult<import("../index").AdminUserDetailResponseDto, {
|
|
1028
|
+
userId: string;
|
|
1029
|
+
data: UpdateAdminRolesDto;
|
|
1030
|
+
}>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Hook for service areas list
|
|
1033
|
+
*/
|
|
1034
|
+
export declare function useServiceAreas(params?: ServiceAreaListRequestDto): QueryResult<import("../index").ServiceAreaListResponseDto>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Hook for service area detail
|
|
1037
|
+
*/
|
|
1038
|
+
export declare function useServiceArea(areaId: string): QueryResult<import("../index").ServiceAreaDetailResponseDto>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Hook for creating a service area
|
|
1041
|
+
*/
|
|
1042
|
+
export declare function useCreateServiceArea(): MutationResult<import("../index").ServiceAreaDetailResponseDto, CreateServiceAreaDto>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Hook for updating a service area
|
|
1045
|
+
*/
|
|
1046
|
+
export declare function useUpdateServiceArea(): MutationResult<import("../index").ServiceAreaDetailResponseDto, {
|
|
1047
|
+
areaId: string;
|
|
1048
|
+
data: UpdateServiceAreaDto;
|
|
1049
|
+
}>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Hook for deleting a service area
|
|
1052
|
+
*/
|
|
1053
|
+
export declare function useDeleteServiceArea(): MutationResult<boolean, string>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Hook for pricing configuration
|
|
1056
|
+
*/
|
|
1057
|
+
export declare function usePricingConfig(): QueryResult<import("../index").PricingConfigResponseDto>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Hook for updating pricing configuration
|
|
1060
|
+
*/
|
|
1061
|
+
export declare function useUpdatePricingConfig(): MutationResult<import("../index").PricingConfigResponseDto, UpdatePricingConfigDto>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Hook for commission configuration
|
|
1064
|
+
*/
|
|
1065
|
+
export declare function useCommissionConfig(): QueryResult<import("../index").CommissionConfigResponseDto>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Hook for updating commission configuration
|
|
1068
|
+
*/
|
|
1069
|
+
export declare function useUpdateCommissionConfig(): MutationResult<import("../index").CommissionConfigResponseDto, UpdateCommissionConfigDto>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Hook for system settings
|
|
1072
|
+
*/
|
|
1073
|
+
export declare function useSystemSettings(): QueryResult<import("../index").SystemSettingsResponseDto>;
|
|
1074
|
+
/**
|
|
1075
|
+
* Hook for updating system settings
|
|
1076
|
+
*/
|
|
1077
|
+
export declare function useUpdateSystemSettings(): MutationResult<import("../index").SystemSettingsResponseDto, UpdateSystemSettingsDto>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Hook for activity logs
|
|
1080
|
+
*/
|
|
1081
|
+
export declare function useActivityLogs(params?: ActivityLogListRequestDto): QueryResult<import("../index").ActivityLogListResponseDto>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Hook for activity log detail
|
|
1084
|
+
*/
|
|
1085
|
+
export declare function useActivityLog(logId: string): QueryResult<import("../index").ActivityLogDetailResponseDto>;
|
|
1086
|
+
/**
|
|
1087
|
+
* Hook for error logs
|
|
1088
|
+
*/
|
|
1089
|
+
export declare function useErrorLogs(params?: ErrorLogListRequestDto): QueryResult<import("../index").ErrorLogListResponseDto>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Hook for getting user's support tickets
|
|
1092
|
+
*/
|
|
1093
|
+
export declare function useTickets(params?: TicketFilterDto): QueryResult<import("../index").TicketListResponseDto>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Hook for getting a specific ticket
|
|
1096
|
+
*/
|
|
1097
|
+
export declare function useTicket(ticketId: string): QueryResult<import("../index").TicketDetailDto>;
|
|
1098
|
+
/**
|
|
1099
|
+
* Hook for creating a support ticket
|
|
1100
|
+
*/
|
|
1101
|
+
export declare function useCreateTicket(): MutationResult<import("../index").TicketDetailDto, CreateTicketDto>;
|
|
1102
|
+
/**
|
|
1103
|
+
* Hook for sending a message in a ticket
|
|
1104
|
+
*/
|
|
1105
|
+
export declare function useSendTicketMessage(): MutationResult<import("../index").TicketMessageResponseDto, {
|
|
1106
|
+
ticketId: string;
|
|
1107
|
+
data: CreateTicketMessageDto;
|
|
1108
|
+
}>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Hook for closing a ticket
|
|
1111
|
+
*/
|
|
1112
|
+
export declare function useCloseTicket(): MutationResult<import("../index").TicketDetailDto, {
|
|
1113
|
+
ticketId: string;
|
|
1114
|
+
data?: CloseTicketDto;
|
|
1115
|
+
}>;
|
|
1116
|
+
/**
|
|
1117
|
+
* Hook for rating a ticket
|
|
1118
|
+
*/
|
|
1119
|
+
export declare function useRateTicket(): MutationResult<import("../index").TicketDetailDto, {
|
|
1120
|
+
ticketId: string;
|
|
1121
|
+
data: RateTicketDto;
|
|
1122
|
+
}>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Hook for marking ticket messages as read
|
|
1125
|
+
*/
|
|
1126
|
+
export declare function useMarkTicketMessagesAsRead(): MutationResult<boolean, string>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Hook for getting FAQ articles
|
|
1129
|
+
*/
|
|
1130
|
+
export declare function useFaq(params?: FaqFilterDto): QueryResult<import("../index").FaqListResponseDto>;
|
|
1131
|
+
/**
|
|
1132
|
+
* Hook for searching FAQ articles
|
|
1133
|
+
*/
|
|
1134
|
+
export declare function useSearchFaq(params: FaqSearchDto): QueryResult<import("../index").FaqSearchResponseDto>;
|
|
1135
|
+
/**
|
|
1136
|
+
* Hook for getting a specific FAQ article
|
|
1137
|
+
*/
|
|
1138
|
+
export declare function useFaqArticle(articleId: string): QueryResult<import("../index").FaqArticleDetailDto>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Hook for recording FAQ feedback
|
|
1141
|
+
*/
|
|
1142
|
+
export declare function useRecordFaqFeedback(): MutationResult<boolean, {
|
|
1143
|
+
articleId: string;
|
|
1144
|
+
data: FaqFeedbackDto;
|
|
1145
|
+
}>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Hook for reporting an emergency (artisan)
|
|
1148
|
+
*/
|
|
1149
|
+
export declare function useReportEmergency(): MutationResult<import("../index").TicketDetailDto, CreateEmergencyTicketDto>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Hook for getting artisan's support tickets
|
|
1152
|
+
*/
|
|
1153
|
+
export declare function useArtisanTickets(params?: TicketFilterDto): QueryResult<import("../index").TicketListResponseDto>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Hook for getting a specific artisan ticket
|
|
1156
|
+
*/
|
|
1157
|
+
export declare function useArtisanTicket(ticketId: string): QueryResult<import("../index").TicketDetailDto>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Hook for creating an artisan support ticket
|
|
1160
|
+
*/
|
|
1161
|
+
export declare function useCreateArtisanTicket(): MutationResult<import("../index").TicketDetailDto, CreateTicketDto>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Hook for sending a message in an artisan ticket
|
|
1164
|
+
*/
|
|
1165
|
+
export declare function useSendArtisanTicketMessage(): MutationResult<import("../index").TicketMessageResponseDto, {
|
|
1166
|
+
ticketId: string;
|
|
1167
|
+
data: CreateTicketMessageDto;
|
|
1168
|
+
}>;
|
|
1169
|
+
/**
|
|
1170
|
+
* Hook for closing an artisan ticket
|
|
1171
|
+
*/
|
|
1172
|
+
export declare function useCloseArtisanTicket(): MutationResult<import("../index").TicketDetailDto, {
|
|
1173
|
+
ticketId: string;
|
|
1174
|
+
data?: CloseTicketDto;
|
|
1175
|
+
}>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Hook for rating an artisan ticket
|
|
1178
|
+
*/
|
|
1179
|
+
export declare function useRateArtisanTicket(): MutationResult<import("../index").TicketDetailDto, {
|
|
1180
|
+
ticketId: string;
|
|
1181
|
+
data: RateTicketDto;
|
|
1182
|
+
}>;
|
|
224
1183
|
export {};
|
|
225
1184
|
//# sourceMappingURL=index.d.ts.map
|