@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.
Files changed (160) hide show
  1. package/README.md +82 -0
  2. package/dist/cjs/api/admin-b2b.js +260 -0
  3. package/dist/cjs/api/admin-b2b.js.map +1 -0
  4. package/dist/cjs/api/admin-finance.js +78 -0
  5. package/dist/cjs/api/admin-finance.js.map +1 -0
  6. package/dist/cjs/api/admin-payouts.js +54 -0
  7. package/dist/cjs/api/admin-payouts.js.map +1 -0
  8. package/dist/cjs/api/admin-qc.js +237 -0
  9. package/dist/cjs/api/admin-qc.js.map +1 -0
  10. package/dist/cjs/api/admin.js +280 -24
  11. package/dist/cjs/api/admin.js.map +1 -1
  12. package/dist/cjs/api/b2b.js +124 -0
  13. package/dist/cjs/api/b2b.js.map +1 -0
  14. package/dist/cjs/api/communication.js +283 -0
  15. package/dist/cjs/api/communication.js.map +1 -0
  16. package/dist/cjs/api/index.js +33 -1
  17. package/dist/cjs/api/index.js.map +1 -1
  18. package/dist/cjs/api/jobs.js +304 -43
  19. package/dist/cjs/api/jobs.js.map +1 -1
  20. package/dist/cjs/api/location.js +91 -0
  21. package/dist/cjs/api/location.js.map +1 -0
  22. package/dist/cjs/api/payments.js +129 -0
  23. package/dist/cjs/api/payments.js.map +1 -0
  24. package/dist/cjs/api/support.js +148 -0
  25. package/dist/cjs/api/support.js.map +1 -0
  26. package/dist/cjs/hooks/index.js +1738 -4
  27. package/dist/cjs/hooks/index.js.map +1 -1
  28. package/dist/cjs/index.js +35 -1
  29. package/dist/cjs/index.js.map +1 -1
  30. package/dist/cjs/types/admin-finance.js +7 -0
  31. package/dist/cjs/types/admin-finance.js.map +1 -0
  32. package/dist/cjs/types/admin-invoice.js +7 -0
  33. package/dist/cjs/types/admin-invoice.js.map +1 -0
  34. package/dist/cjs/types/admin-payout.js +7 -0
  35. package/dist/cjs/types/admin-payout.js.map +1 -0
  36. package/dist/cjs/types/b2b.js +7 -0
  37. package/dist/cjs/types/b2b.js.map +1 -0
  38. package/dist/cjs/types/communication.js +90 -0
  39. package/dist/cjs/types/communication.js.map +1 -0
  40. package/dist/cjs/types/enums.js +343 -1
  41. package/dist/cjs/types/enums.js.map +1 -1
  42. package/dist/cjs/types/index.js +18 -2
  43. package/dist/cjs/types/index.js.map +1 -1
  44. package/dist/cjs/types/job.js +1 -0
  45. package/dist/cjs/types/job.js.map +1 -1
  46. package/dist/cjs/types/location.js +7 -0
  47. package/dist/cjs/types/location.js.map +1 -0
  48. package/dist/cjs/types/payment.js +7 -0
  49. package/dist/cjs/types/payment.js.map +1 -0
  50. package/dist/cjs/types/qc.js +8 -0
  51. package/dist/cjs/types/qc.js.map +1 -0
  52. package/dist/cjs/types/support.js +7 -0
  53. package/dist/cjs/types/support.js.map +1 -0
  54. package/dist/esm/api/admin-b2b.js +255 -0
  55. package/dist/esm/api/admin-b2b.js.map +1 -0
  56. package/dist/esm/api/admin-finance.js +74 -0
  57. package/dist/esm/api/admin-finance.js.map +1 -0
  58. package/dist/esm/api/admin-payouts.js +50 -0
  59. package/dist/esm/api/admin-payouts.js.map +1 -0
  60. package/dist/esm/api/admin-qc.js +233 -0
  61. package/dist/esm/api/admin-qc.js.map +1 -0
  62. package/dist/esm/api/admin.js +275 -22
  63. package/dist/esm/api/admin.js.map +1 -1
  64. package/dist/esm/api/b2b.js +120 -0
  65. package/dist/esm/api/b2b.js.map +1 -0
  66. package/dist/esm/api/communication.js +275 -0
  67. package/dist/esm/api/communication.js.map +1 -0
  68. package/dist/esm/api/index.js +10 -1
  69. package/dist/esm/api/index.js.map +1 -1
  70. package/dist/esm/api/jobs.js +304 -43
  71. package/dist/esm/api/jobs.js.map +1 -1
  72. package/dist/esm/api/location.js +87 -0
  73. package/dist/esm/api/location.js.map +1 -0
  74. package/dist/esm/api/payments.js +124 -0
  75. package/dist/esm/api/payments.js.map +1 -0
  76. package/dist/esm/api/support.js +143 -0
  77. package/dist/esm/api/support.js.map +1 -0
  78. package/dist/esm/hooks/index.js +1552 -3
  79. package/dist/esm/hooks/index.js.map +1 -1
  80. package/dist/esm/index.js +36 -2
  81. package/dist/esm/index.js.map +1 -1
  82. package/dist/esm/types/admin-finance.js +6 -0
  83. package/dist/esm/types/admin-finance.js.map +1 -0
  84. package/dist/esm/types/admin-invoice.js +6 -0
  85. package/dist/esm/types/admin-invoice.js.map +1 -0
  86. package/dist/esm/types/admin-payout.js +6 -0
  87. package/dist/esm/types/admin-payout.js.map +1 -0
  88. package/dist/esm/types/b2b.js +6 -0
  89. package/dist/esm/types/b2b.js.map +1 -0
  90. package/dist/esm/types/communication.js +87 -0
  91. package/dist/esm/types/communication.js.map +1 -0
  92. package/dist/esm/types/enums.js +341 -0
  93. package/dist/esm/types/enums.js.map +1 -1
  94. package/dist/esm/types/index.js +18 -2
  95. package/dist/esm/types/index.js.map +1 -1
  96. package/dist/esm/types/job.js +1 -0
  97. package/dist/esm/types/job.js.map +1 -1
  98. package/dist/esm/types/location.js +6 -0
  99. package/dist/esm/types/location.js.map +1 -0
  100. package/dist/esm/types/payment.js +6 -0
  101. package/dist/esm/types/payment.js.map +1 -0
  102. package/dist/esm/types/qc.js +7 -0
  103. package/dist/esm/types/qc.js.map +1 -0
  104. package/dist/esm/types/support.js +6 -0
  105. package/dist/esm/types/support.js.map +1 -0
  106. package/dist/types/api/admin-b2b.d.ts +225 -0
  107. package/dist/types/api/admin-b2b.d.ts.map +1 -0
  108. package/dist/types/api/admin-finance.d.ts +52 -0
  109. package/dist/types/api/admin-finance.d.ts.map +1 -0
  110. package/dist/types/api/admin-payouts.d.ts +37 -0
  111. package/dist/types/api/admin-payouts.d.ts.map +1 -0
  112. package/dist/types/api/admin-qc.d.ts +157 -0
  113. package/dist/types/api/admin-qc.d.ts.map +1 -0
  114. package/dist/types/api/admin.d.ts +184 -17
  115. package/dist/types/api/admin.d.ts.map +1 -1
  116. package/dist/types/api/b2b.d.ts +77 -0
  117. package/dist/types/api/b2b.d.ts.map +1 -0
  118. package/dist/types/api/communication.d.ts +201 -0
  119. package/dist/types/api/communication.d.ts.map +1 -0
  120. package/dist/types/api/index.d.ts +10 -1
  121. package/dist/types/api/index.d.ts.map +1 -1
  122. package/dist/types/api/jobs.d.ts +197 -38
  123. package/dist/types/api/jobs.d.ts.map +1 -1
  124. package/dist/types/api/location.d.ts +76 -0
  125. package/dist/types/api/location.d.ts.map +1 -0
  126. package/dist/types/api/payments.d.ts +81 -0
  127. package/dist/types/api/payments.d.ts.map +1 -0
  128. package/dist/types/api/support.d.ts +101 -0
  129. package/dist/types/api/support.d.ts.map +1 -0
  130. package/dist/types/hooks/index.d.ts +965 -6
  131. package/dist/types/hooks/index.d.ts.map +1 -1
  132. package/dist/types/index.d.ts +32 -2
  133. package/dist/types/index.d.ts.map +1 -1
  134. package/dist/types/types/admin-finance.d.ts +265 -0
  135. package/dist/types/types/admin-finance.d.ts.map +1 -0
  136. package/dist/types/types/admin-invoice.d.ts +262 -0
  137. package/dist/types/types/admin-invoice.d.ts.map +1 -0
  138. package/dist/types/types/admin-payout.d.ts +180 -0
  139. package/dist/types/types/admin-payout.d.ts.map +1 -0
  140. package/dist/types/types/admin.d.ts +1341 -0
  141. package/dist/types/types/admin.d.ts.map +1 -1
  142. package/dist/types/types/b2b.d.ts +687 -0
  143. package/dist/types/types/b2b.d.ts.map +1 -0
  144. package/dist/types/types/communication.d.ts +670 -0
  145. package/dist/types/types/communication.d.ts.map +1 -0
  146. package/dist/types/types/enums.d.ts +311 -0
  147. package/dist/types/types/enums.d.ts.map +1 -1
  148. package/dist/types/types/index.d.ts +10 -1
  149. package/dist/types/types/index.d.ts.map +1 -1
  150. package/dist/types/types/job.d.ts +576 -55
  151. package/dist/types/types/job.d.ts.map +1 -1
  152. package/dist/types/types/location.d.ts +74 -0
  153. package/dist/types/types/location.d.ts.map +1 -0
  154. package/dist/types/types/payment.d.ts +281 -0
  155. package/dist/types/types/payment.d.ts.map +1 -0
  156. package/dist/types/types/qc.d.ts +589 -0
  157. package/dist/types/types/qc.d.ts.map +1 -0
  158. package/dist/types/types/support.d.ts +194 -0
  159. package/dist/types/types/support.d.ts.map +1 -0
  160. package/package.json +1 -1
@@ -0,0 +1,225 @@
1
+ /**
2
+ * Admin B2B API
3
+ * Handles B2B company management, contracts, properties, users, and invoices (admin operations)
4
+ */
5
+ import { HttpClient } from '../utils/http-client';
6
+ import { StandardResponse, PagedResult, CreateInvoiceDto, UpdateInvoiceDto, SendInvoiceDto, InvoiceSendResponseDto, RecordInvoicePaymentDto, InvoicePaymentResponseDto, CancelInvoiceDto, AdminInvoiceListItemDto, AdminInvoiceDetailDto, AdminInvoiceFilterDto, CompanyStatementDto, CompanyStatementFilterDto, InvoiceableJobsResponseDto, InvoiceableJobsFilterDto, AdminCompanyListItemDto, AdminCompanyDetailDto, CreateCompanyDto, UpdateCompanyDto, CompanyFilterDto, RegenerateCodeResultDto, AssignAccountManagerDto, AdminCompanyUserDto, AddCompanyUserDto, UpdateCompanyUserDto, AdminContractDto, AdminContractListItemDto, CreateContractDto, UpdateContractDto, ContractFilterDto, AdminPropertyDto, AdminPropertyListItemDto, AdminCreatePropertyDto, AdminUpdatePropertyDto, PropertyFilterDto, AdminMeetingNoteDto, AdminMeetingNoteListItemDto, CreateMeetingNoteDto, UpdateMeetingNoteDto, MeetingNoteFilterDto, AdminUsageReportDto } from '../types';
7
+ /**
8
+ * Admin B2B Invoices API
9
+ * Manages B2B company invoices - create, send, record payments, and generate statements
10
+ */
11
+ export declare class AdminB2BInvoicesApi {
12
+ private readonly http;
13
+ constructor(http: HttpClient);
14
+ /**
15
+ * Get base path for a company's invoices
16
+ */
17
+ private getBasePath;
18
+ /**
19
+ * Get invoices for a company
20
+ */
21
+ listInvoices(companyId: string, params?: AdminInvoiceFilterDto): Promise<StandardResponse<PagedResult<AdminInvoiceListItemDto>>>;
22
+ /**
23
+ * Create a new invoice for a company
24
+ */
25
+ createInvoice(companyId: string, data: CreateInvoiceDto): Promise<StandardResponse<AdminInvoiceDetailDto>>;
26
+ /**
27
+ * Get invoice details
28
+ */
29
+ getInvoice(companyId: string, invoiceId: string): Promise<StandardResponse<AdminInvoiceDetailDto>>;
30
+ /**
31
+ * Update a draft invoice
32
+ */
33
+ updateInvoice(companyId: string, invoiceId: string, data: UpdateInvoiceDto): Promise<StandardResponse<AdminInvoiceDetailDto>>;
34
+ /**
35
+ * Send an invoice to the company
36
+ */
37
+ sendInvoice(companyId: string, invoiceId: string, data?: SendInvoiceDto): Promise<StandardResponse<InvoiceSendResponseDto>>;
38
+ /**
39
+ * Record a payment against an invoice
40
+ */
41
+ recordPayment(companyId: string, invoiceId: string, data: RecordInvoicePaymentDto): Promise<StandardResponse<InvoicePaymentResponseDto>>;
42
+ /**
43
+ * Cancel an invoice
44
+ */
45
+ cancelInvoice(companyId: string, invoiceId: string, data: CancelInvoiceDto): Promise<StandardResponse<AdminInvoiceDetailDto>>;
46
+ /**
47
+ * Get company statement (billing history)
48
+ */
49
+ getStatement(companyId: string, params?: CompanyStatementFilterDto): Promise<StandardResponse<CompanyStatementDto>>;
50
+ /**
51
+ * Get jobs that can be included in an invoice
52
+ */
53
+ getInvoiceableJobs(companyId: string, params?: InvoiceableJobsFilterDto): Promise<StandardResponse<InvoiceableJobsResponseDto>>;
54
+ }
55
+ /** Company list response with pagination info */
56
+ export interface CompanyListResponse {
57
+ companies: AdminCompanyListItemDto[];
58
+ totalCount: number;
59
+ page: number;
60
+ pageSize: number;
61
+ totalPages: number;
62
+ }
63
+ /** Company user list response with pagination info */
64
+ export interface CompanyUserListResponse {
65
+ users: AdminCompanyUserDto[];
66
+ totalCount: number;
67
+ page: number;
68
+ pageSize: number;
69
+ totalPages: number;
70
+ }
71
+ /** Contract list response with pagination info */
72
+ export interface ContractListResponse {
73
+ contracts: AdminContractListItemDto[];
74
+ totalCount: number;
75
+ page: number;
76
+ pageSize: number;
77
+ totalPages: number;
78
+ }
79
+ /** Property list response with pagination info */
80
+ export interface PropertyListResponse {
81
+ properties: AdminPropertyListItemDto[];
82
+ totalCount: number;
83
+ page: number;
84
+ pageSize: number;
85
+ totalPages: number;
86
+ }
87
+ /** Meeting note list response with pagination info */
88
+ export interface MeetingNoteListResponse {
89
+ meetingNotes: AdminMeetingNoteListItemDto[];
90
+ totalCount: number;
91
+ page: number;
92
+ pageSize: number;
93
+ totalPages: number;
94
+ }
95
+ /** Usage report request filter */
96
+ export interface UsageReportFilterDto {
97
+ fromDate?: string;
98
+ toDate?: string;
99
+ includeJobDetails?: boolean;
100
+ groupBy?: string;
101
+ }
102
+ /**
103
+ * Admin B2B API
104
+ * Manages B2B companies, contracts, properties, users, and meeting notes
105
+ */
106
+ export declare class AdminB2BApi {
107
+ private readonly http;
108
+ private readonly basePath;
109
+ constructor(http: HttpClient);
110
+ /**
111
+ * Get a paginated list of B2B companies
112
+ */
113
+ listCompanies(params?: CompanyFilterDto): Promise<StandardResponse<CompanyListResponse>>;
114
+ /**
115
+ * Get detailed company information by ID
116
+ */
117
+ getCompany(companyId: string): Promise<StandardResponse<AdminCompanyDetailDto>>;
118
+ /**
119
+ * Create a new B2B company
120
+ */
121
+ createCompany(data: CreateCompanyDto): Promise<StandardResponse<AdminCompanyDetailDto>>;
122
+ /**
123
+ * Update an existing B2B company
124
+ */
125
+ updateCompany(companyId: string, data: UpdateCompanyDto): Promise<StandardResponse<AdminCompanyDetailDto>>;
126
+ /**
127
+ * Delete (soft delete) a B2B company
128
+ */
129
+ deleteCompany(companyId: string): Promise<StandardResponse<boolean>>;
130
+ /**
131
+ * Regenerate a company's linking code
132
+ */
133
+ regenerateCompanyCode(companyId: string): Promise<StandardResponse<RegenerateCodeResultDto>>;
134
+ /**
135
+ * Assign an account manager to a company
136
+ */
137
+ assignAccountManager(companyId: string, data: AssignAccountManagerDto): Promise<StandardResponse<boolean>>;
138
+ /**
139
+ * Get usage report for a company
140
+ */
141
+ getUsageReport(companyId: string, params?: UsageReportFilterDto): Promise<StandardResponse<AdminUsageReportDto>>;
142
+ /**
143
+ * Get users for a company
144
+ */
145
+ listCompanyUsers(companyId: string, params?: {
146
+ page?: number;
147
+ pageSize?: number;
148
+ search?: string;
149
+ role?: string;
150
+ isActive?: boolean;
151
+ }): Promise<StandardResponse<CompanyUserListResponse>>;
152
+ /**
153
+ * Add a user to a company
154
+ */
155
+ addCompanyUser(companyId: string, data: AddCompanyUserDto): Promise<StandardResponse<AdminCompanyUserDto>>;
156
+ /**
157
+ * Update a company user
158
+ */
159
+ updateCompanyUser(companyId: string, userId: string, data: UpdateCompanyUserDto): Promise<StandardResponse<AdminCompanyUserDto>>;
160
+ /**
161
+ * Remove a user from a company
162
+ */
163
+ removeCompanyUser(companyId: string, userId: string): Promise<StandardResponse<boolean>>;
164
+ /**
165
+ * Get contracts for a company
166
+ */
167
+ listCompanyContracts(companyId: string, params?: ContractFilterDto): Promise<StandardResponse<ContractListResponse>>;
168
+ /**
169
+ * Get contract details
170
+ */
171
+ getContract(contractId: string): Promise<StandardResponse<AdminContractDto>>;
172
+ /**
173
+ * Create a new contract for a company
174
+ */
175
+ createContract(companyId: string, data: CreateContractDto): Promise<StandardResponse<AdminContractDto>>;
176
+ /**
177
+ * Update a contract
178
+ */
179
+ updateContract(contractId: string, data: UpdateContractDto): Promise<StandardResponse<AdminContractDto>>;
180
+ /**
181
+ * Terminate a contract
182
+ */
183
+ terminateContract(contractId: string, reason: string): Promise<StandardResponse<boolean>>;
184
+ /**
185
+ * Get properties for a company
186
+ */
187
+ listCompanyProperties(companyId: string, params?: PropertyFilterDto): Promise<StandardResponse<PropertyListResponse>>;
188
+ /**
189
+ * Get property details
190
+ */
191
+ getProperty(propertyId: string): Promise<StandardResponse<AdminPropertyDto>>;
192
+ /**
193
+ * Create a new property for a company
194
+ */
195
+ createProperty(companyId: string, data: AdminCreatePropertyDto): Promise<StandardResponse<AdminPropertyDto>>;
196
+ /**
197
+ * Update a property
198
+ */
199
+ updateProperty(propertyId: string, data: AdminUpdatePropertyDto): Promise<StandardResponse<AdminPropertyDto>>;
200
+ /**
201
+ * Delete (soft delete) a property
202
+ */
203
+ deleteProperty(propertyId: string): Promise<StandardResponse<boolean>>;
204
+ /**
205
+ * Get meeting notes for a company
206
+ */
207
+ listCompanyMeetingNotes(companyId: string, params?: MeetingNoteFilterDto): Promise<StandardResponse<MeetingNoteListResponse>>;
208
+ /**
209
+ * Get meeting note details
210
+ */
211
+ getMeetingNote(meetingNoteId: string): Promise<StandardResponse<AdminMeetingNoteDto>>;
212
+ /**
213
+ * Create a new meeting note for a company
214
+ */
215
+ createMeetingNote(companyId: string, data: CreateMeetingNoteDto): Promise<StandardResponse<AdminMeetingNoteDto>>;
216
+ /**
217
+ * Update a meeting note
218
+ */
219
+ updateMeetingNote(meetingNoteId: string, data: UpdateMeetingNoteDto): Promise<StandardResponse<AdminMeetingNoteDto>>;
220
+ /**
221
+ * Delete a meeting note
222
+ */
223
+ deleteMeetingNote(meetingNoteId: string): Promise<StandardResponse<boolean>>;
224
+ }
225
+ //# sourceMappingURL=admin-b2b.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-b2b.d.ts","sourceRoot":"","sources":["../../../src/api/admin-b2b.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,WAAW,EAEX,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EAExB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EAEvB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EAEpB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACj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AI,EAAE,oBAAoB,GACzB,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAOjD;;OAEG;IACG,iBAAiB,CACrB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAOjD;;OAEG;IACG,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;CAGnF"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Admin Finance API
3
+ * Handles financial reporting, reconciliation, and revenue management (admin operations)
4
+ */
5
+ import { HttpClient } from '../utils/http-client';
6
+ import { StandardResponse, PagedResult, AdminTransactionListItemDto, AdminTransactionDetailDto, AdminTransactionFilterDto, FlagTransactionDto, ReconciliationDto, ReconciliationFilterDto, RevenueSummaryDto, RevenueSummaryFilterDto, CommissionSummaryDto, CommissionSummaryFilterDto, OutstandingBalanceSummaryDto, OutstandingBalanceFilterDto } from '../types';
7
+ /**
8
+ * Admin Finance API
9
+ * Provides financial reporting, reconciliation, revenue analysis, and outstanding balance management
10
+ */
11
+ export declare class AdminFinanceApi {
12
+ private readonly http;
13
+ private readonly basePath;
14
+ constructor(http: HttpClient);
15
+ /**
16
+ * Get all transactions (with filters)
17
+ */
18
+ listTransactions(params?: AdminTransactionFilterDto): Promise<StandardResponse<PagedResult<AdminTransactionListItemDto>>>;
19
+ /**
20
+ * Get transaction details
21
+ */
22
+ getTransaction(transactionId: string): Promise<StandardResponse<AdminTransactionDetailDto>>;
23
+ /**
24
+ * Flag a transaction for review
25
+ */
26
+ flagTransaction(transactionId: string, data: FlagTransactionDto): Promise<StandardResponse<AdminTransactionDetailDto>>;
27
+ /**
28
+ * Unflag a transaction
29
+ */
30
+ unflagTransaction(transactionId: string): Promise<StandardResponse<AdminTransactionDetailDto>>;
31
+ /**
32
+ * Mark a transaction as reconciled
33
+ */
34
+ markReconciled(transactionId: string): Promise<StandardResponse<AdminTransactionDetailDto>>;
35
+ /**
36
+ * Get reconciliation report
37
+ */
38
+ getReconciliationReport(params?: ReconciliationFilterDto): Promise<StandardResponse<ReconciliationDto>>;
39
+ /**
40
+ * Get revenue summary
41
+ */
42
+ getRevenueSummary(params?: RevenueSummaryFilterDto): Promise<StandardResponse<RevenueSummaryDto>>;
43
+ /**
44
+ * Get commission summary
45
+ */
46
+ getCommissionSummary(params?: CommissionSummaryFilterDto): Promise<StandardResponse<CommissionSummaryDto>>;
47
+ /**
48
+ * Get outstanding balances (artisan payables and B2B receivables)
49
+ */
50
+ getOutstandingBalances(params?: OutstandingBalanceFilterDto): Promise<StandardResponse<OutstandingBalanceSummaryDto>>;
51
+ }
52
+ //# sourceMappingURL=admin-finance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-finance.d.ts","sourceRoot":"","sources":["../../../src/api/admin-finance.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,WAAW,EAEX,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAElB,iBAAiB,EACjB,uBAAuB,EAEvB,iBAAiB,EACjB,uBAAuB,EAEvB,oBAAoB,EACpB,0BAA0B,EAE1B,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,qBAAa,eAAe;IAGd,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;gBAEvB,IAAI,EAAE,UAAU;IAI7C;;OAEG;IACG,gBAAgB,CACpB,MAAM,CAAC,EAAE,yBAAyB,GACjC,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC;IAOtE;;OAEG;IACG,cAAc,CAClB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;IAMvD;;OAEG;IACG,eAAe,CACnB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;IAOvD;;OAEG;IACG,iBAAiB,CACrB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;IAMvD;;OAEG;IACG,cAAc,CAClB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;IAQvD;;OAEG;IACG,uBAAuB,CAC3B,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IAS/C;;OAEG;IACG,iBAAiB,CACrB,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IAS/C;;OAEG;IACG,oBAAoB,CACxB,MAAM,CAAC,EAAE,0BAA0B,GAClC,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IASlD;;OAEG;IACG,sBAAsB,CAC1B,MAAM,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;CAM3D"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Admin Payouts API
3
+ * Handles artisan payout management (admin operations)
4
+ */
5
+ import { HttpClient } from '../utils/http-client';
6
+ import { StandardResponse, PagedResult, ProcessWeeklyPayoutsDto, WeeklyPayoutResultDto, PendingPayoutsFilterDto, PendingPayoutsResponseDto, AdminPayoutListItemDto, AdminPayoutDetailDto, PayoutHistoryFilterDto, RetryPayoutDto, PayoutRetryResultDto } from '../types';
7
+ /**
8
+ * Admin Payouts API
9
+ * Manages artisan payouts - view pending, process weekly, view history, retry failed
10
+ */
11
+ export declare class AdminPayoutsApi {
12
+ private readonly http;
13
+ private readonly basePath;
14
+ constructor(http: HttpClient);
15
+ /**
16
+ * Get pending payouts (artisans waiting to be paid)
17
+ */
18
+ getPendingPayouts(params?: PendingPayoutsFilterDto): Promise<StandardResponse<PendingPayoutsResponseDto>>;
19
+ /**
20
+ * Process weekly payouts for artisans
21
+ * Can be run as dry-run to preview results before actual processing
22
+ */
23
+ processWeeklyPayouts(data?: ProcessWeeklyPayoutsDto): Promise<StandardResponse<WeeklyPayoutResultDto>>;
24
+ /**
25
+ * Get payout history (past payouts)
26
+ */
27
+ getHistory(params?: PayoutHistoryFilterDto): Promise<StandardResponse<PagedResult<AdminPayoutListItemDto>>>;
28
+ /**
29
+ * Get payout details
30
+ */
31
+ getPayout(payoutId: string): Promise<StandardResponse<AdminPayoutDetailDto>>;
32
+ /**
33
+ * Retry a failed payout
34
+ */
35
+ retryPayout(payoutId: string, data?: RetryPayoutDto): Promise<StandardResponse<PayoutRetryResultDto>>;
36
+ }
37
+ //# sourceMappingURL=admin-payouts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-payouts.d.ts","sourceRoot":"","sources":["../../../src/api/admin-payouts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,WAAW,EAEX,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,qBAAa,eAAe;IAGd,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;gBAEvB,IAAI,EAAE,UAAU;IAI7C;;OAEG;IACG,iBAAiB,CACrB,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;IASvD;;;OAGG;IACG,oBAAoB,CACxB,IAAI,CAAC,EAAE,uBAAuB,GAC7B,OAAO,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;IASnD;;OAEG;IACG,UAAU,CACd,MAAM,CAAC,EAAE,sBAAsB,GAC9B,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAOjE;;OAEG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAMlF;;OAEG;IACG,WAAW,CACf,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;CAMnD"}
@@ -0,0 +1,157 @@
1
+ /**
2
+ * Admin Quality Control API
3
+ * Handles quality control operations including callbacks, complaints,
4
+ * site visits, mystery shops, artisan reviews, and quality alerts
5
+ */
6
+ import { HttpClient } from '../utils/http-client';
7
+ import { StandardResponse, PagedResult, CallbackListItemDto, CallbackDetailDto, CreateCallbackDto, LogCallbackOutcomeDto, EscalateCallbackDto, RescheduleCallbackDto, CallbackFilterDto, ComplaintListItemDto, ComplaintDetailDto, CreateComplaintDto, UpdateComplaintDto, ResolveComplaintDto, ComplaintRefundDto, ComplaintRedoDto, EscalateComplaintDto, ComplaintFilterDto, SiteVisitListItemDto, SiteVisitDetailDto, ScheduleSiteVisitDto, SubmitSiteVisitReportDto, SiteVisitFilterDto, MysteryShopListItemDto, MysteryShopDetailDto, ScheduleMysteryShopDto, SubmitMysteryShopReportDto, MysteryShopFilterDto, ArtisanReviewListItemDto, ArtisanReviewDetailDto, ArtisanReviewDecisionDto, ArtisanReviewFilterDto, QualityAlertListItemDto, QualityAlertDetailDto, AcknowledgeAlertDto, ResolveAlertDto, EscalateAlertDto, QualityAlertFilterDto, QCDashboardSummaryDto } from '../types';
8
+ /**
9
+ * Admin Quality Control API
10
+ * Manages callbacks, complaints, site visits, mystery shops, artisan reviews, and quality alerts
11
+ */
12
+ export declare class AdminQCApi {
13
+ private readonly http;
14
+ private readonly basePath;
15
+ constructor(http: HttpClient);
16
+ /**
17
+ * Get callback queue with pagination and filters
18
+ */
19
+ listCallbacks(params?: CallbackFilterDto): Promise<StandardResponse<PagedResult<CallbackListItemDto>>>;
20
+ /**
21
+ * Get callback details by ID
22
+ */
23
+ getCallback(callbackId: string): Promise<StandardResponse<CallbackDetailDto>>;
24
+ /**
25
+ * Create a new callback for a job
26
+ */
27
+ createCallback(data: CreateCallbackDto): Promise<StandardResponse<CallbackDetailDto>>;
28
+ /**
29
+ * Log the outcome of a callback
30
+ */
31
+ logCallbackOutcome(callbackId: string, data: LogCallbackOutcomeDto): Promise<StandardResponse<CallbackDetailDto>>;
32
+ /**
33
+ * Escalate a callback to another user
34
+ */
35
+ escalateCallback(callbackId: string, data: EscalateCallbackDto): Promise<StandardResponse<CallbackDetailDto>>;
36
+ /**
37
+ * Reschedule a callback
38
+ */
39
+ rescheduleCallback(callbackId: string, data: RescheduleCallbackDto): Promise<StandardResponse<CallbackDetailDto>>;
40
+ /**
41
+ * Assign a callback to a user
42
+ */
43
+ assignCallback(callbackId: string, assignedToId: string): Promise<StandardResponse<CallbackDetailDto>>;
44
+ /**
45
+ * Get complaints list with pagination and filters
46
+ */
47
+ listComplaints(params?: ComplaintFilterDto): Promise<StandardResponse<PagedResult<ComplaintListItemDto>>>;
48
+ /**
49
+ * Get complaint details by ID
50
+ */
51
+ getComplaint(complaintId: string): Promise<StandardResponse<ComplaintDetailDto>>;
52
+ /**
53
+ * Create a new complaint
54
+ */
55
+ createComplaint(consumerId: string, data: CreateComplaintDto): Promise<StandardResponse<ComplaintDetailDto>>;
56
+ /**
57
+ * Update complaint status and details
58
+ */
59
+ updateComplaint(complaintId: string, data: UpdateComplaintDto): Promise<StandardResponse<ComplaintDetailDto>>;
60
+ /**
61
+ * Resolve a complaint
62
+ */
63
+ resolveComplaint(complaintId: string, data: ResolveComplaintDto): Promise<StandardResponse<ComplaintDetailDto>>;
64
+ /**
65
+ * Process a refund for a complaint
66
+ */
67
+ processRefund(complaintId: string, data: ComplaintRefundDto): Promise<StandardResponse<ComplaintDetailDto>>;
68
+ /**
69
+ * Schedule a redo for a complaint
70
+ */
71
+ scheduleRedo(complaintId: string, data: ComplaintRedoDto): Promise<StandardResponse<ComplaintDetailDto>>;
72
+ /**
73
+ * Escalate a complaint
74
+ */
75
+ escalateComplaint(complaintId: string, data: EscalateComplaintDto): Promise<StandardResponse<ComplaintDetailDto>>;
76
+ /**
77
+ * Assign a complaint to a user
78
+ */
79
+ assignComplaint(complaintId: string, assignedToId: string): Promise<StandardResponse<ComplaintDetailDto>>;
80
+ /**
81
+ * Get site visits list with pagination and filters
82
+ */
83
+ listSiteVisits(params?: SiteVisitFilterDto): Promise<StandardResponse<PagedResult<SiteVisitListItemDto>>>;
84
+ /**
85
+ * Get site visit details by ID
86
+ */
87
+ getSiteVisit(siteVisitId: string): Promise<StandardResponse<SiteVisitDetailDto>>;
88
+ /**
89
+ * Schedule a new site visit
90
+ */
91
+ scheduleSiteVisit(data: ScheduleSiteVisitDto): Promise<StandardResponse<SiteVisitDetailDto>>;
92
+ /**
93
+ * Submit a site visit report
94
+ */
95
+ submitSiteVisitReport(siteVisitId: string, data: SubmitSiteVisitReportDto): Promise<StandardResponse<SiteVisitDetailDto>>;
96
+ /**
97
+ * Cancel a site visit
98
+ */
99
+ cancelSiteVisit(siteVisitId: string, reason: string): Promise<StandardResponse<SiteVisitDetailDto>>;
100
+ /**
101
+ * Get mystery shops list with pagination and filters
102
+ */
103
+ listMysteryShops(params?: MysteryShopFilterDto): Promise<StandardResponse<PagedResult<MysteryShopListItemDto>>>;
104
+ /**
105
+ * Get mystery shop details by ID
106
+ */
107
+ getMysteryShop(mysteryShopId: string): Promise<StandardResponse<MysteryShopDetailDto>>;
108
+ /**
109
+ * Schedule a new mystery shop
110
+ */
111
+ scheduleMysteryShop(data: ScheduleMysteryShopDto): Promise<StandardResponse<MysteryShopDetailDto>>;
112
+ /**
113
+ * Submit a mystery shop report
114
+ */
115
+ submitMysteryShopReport(mysteryShopId: string, data: SubmitMysteryShopReportDto): Promise<StandardResponse<MysteryShopDetailDto>>;
116
+ /**
117
+ * Cancel a mystery shop
118
+ */
119
+ cancelMysteryShop(mysteryShopId: string, reason: string): Promise<StandardResponse<MysteryShopDetailDto>>;
120
+ /**
121
+ * Get artisan reviews list with pagination and filters
122
+ */
123
+ listArtisanReviews(params?: ArtisanReviewFilterDto): Promise<StandardResponse<PagedResult<ArtisanReviewListItemDto>>>;
124
+ /**
125
+ * Get artisan review details by ID
126
+ */
127
+ getArtisanReview(reviewId: string): Promise<StandardResponse<ArtisanReviewDetailDto>>;
128
+ /**
129
+ * Submit a decision for an artisan review
130
+ */
131
+ submitReviewDecision(reviewId: string, data: ArtisanReviewDecisionDto): Promise<StandardResponse<ArtisanReviewDetailDto>>;
132
+ /**
133
+ * Get quality alerts list with pagination and filters
134
+ */
135
+ listAlerts(params?: QualityAlertFilterDto): Promise<StandardResponse<PagedResult<QualityAlertListItemDto>>>;
136
+ /**
137
+ * Get quality alert details by ID
138
+ */
139
+ getAlert(alertId: string): Promise<StandardResponse<QualityAlertDetailDto>>;
140
+ /**
141
+ * Acknowledge a quality alert
142
+ */
143
+ acknowledgeAlert(alertId: string, data?: AcknowledgeAlertDto): Promise<StandardResponse<QualityAlertDetailDto>>;
144
+ /**
145
+ * Resolve a quality alert
146
+ */
147
+ resolveAlert(alertId: string, data: ResolveAlertDto): Promise<StandardResponse<QualityAlertDetailDto>>;
148
+ /**
149
+ * Escalate a quality alert
150
+ */
151
+ escalateAlert(alertId: string, data: EscalateAlertDto): Promise<StandardResponse<QualityAlertDetailDto>>;
152
+ /**
153
+ * Get QC dashboard summary
154
+ */
155
+ getDashboardSummary(): Promise<StandardResponse<QCDashboardSummaryDto>>;
156
+ }
157
+ //# sourceMappingURL=admin-qc.d.ts.map
@@ -0,0 +1 @@
1
+ {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