@managesome/knotr-toolkit 0.1.1 → 0.8.5

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 (300) hide show
  1. package/dist/backend/config.d.ts +43 -0
  2. package/dist/backend/config.d.ts.map +1 -0
  3. package/dist/backend/config.js +82 -0
  4. package/dist/backend/config.js.map +1 -0
  5. package/dist/backend/database.d.ts +28 -0
  6. package/dist/backend/database.d.ts.map +1 -0
  7. package/dist/backend/database.js +112 -0
  8. package/dist/backend/database.js.map +1 -0
  9. package/dist/backend/firebase.d.ts +68 -0
  10. package/dist/backend/firebase.d.ts.map +1 -0
  11. package/dist/backend/firebase.js +233 -0
  12. package/dist/backend/firebase.js.map +1 -0
  13. package/dist/backend/index.d.ts +8 -0
  14. package/dist/backend/index.d.ts.map +1 -0
  15. package/dist/backend/index.js +19 -0
  16. package/dist/backend/index.js.map +1 -0
  17. package/dist/backend/logger.d.ts +23 -0
  18. package/dist/backend/logger.d.ts.map +1 -0
  19. package/dist/backend/logger.js +107 -0
  20. package/dist/backend/logger.js.map +1 -0
  21. package/dist/backend/redis.d.ts +59 -0
  22. package/dist/backend/redis.d.ts.map +1 -0
  23. package/dist/backend/redis.js +169 -0
  24. package/dist/backend/redis.js.map +1 -0
  25. package/dist/backend/socket.d.ts +81 -0
  26. package/dist/backend/socket.d.ts.map +1 -0
  27. package/dist/backend/socket.js +132 -0
  28. package/dist/backend/socket.js.map +1 -0
  29. package/dist/backend/worker-queue.d.ts +40 -0
  30. package/dist/backend/worker-queue.d.ts.map +1 -0
  31. package/dist/backend/worker-queue.js +140 -0
  32. package/dist/backend/worker-queue.js.map +1 -0
  33. package/dist/client/api-client.d.ts +101 -0
  34. package/dist/client/api-client.d.ts.map +1 -0
  35. package/dist/client/api-client.js +261 -0
  36. package/dist/client/api-client.js.map +1 -0
  37. package/dist/client/api-error.d.ts +100 -0
  38. package/dist/client/api-error.d.ts.map +1 -0
  39. package/dist/client/api-error.js +111 -0
  40. package/dist/client/api-error.js.map +1 -0
  41. package/dist/client/endpoints.d.ts +510 -0
  42. package/dist/client/endpoints.d.ts.map +1 -0
  43. package/dist/client/endpoints.js +306 -0
  44. package/dist/client/endpoints.js.map +1 -0
  45. package/dist/client/index.d.ts +4 -0
  46. package/dist/client/index.d.ts.map +1 -0
  47. package/dist/client/index.js +7 -0
  48. package/dist/client/index.js.map +1 -0
  49. package/dist/constants/index.d.ts +2 -1
  50. package/dist/constants/index.d.ts.map +1 -1
  51. package/dist/constants/index.js +2 -1
  52. package/dist/constants/index.js.map +1 -1
  53. package/dist/constants/socket.d.ts +165 -0
  54. package/dist/constants/socket.d.ts.map +1 -0
  55. package/dist/constants/socket.js +204 -0
  56. package/dist/constants/socket.js.map +1 -0
  57. package/dist/helpers/ApiError.d.ts +74 -0
  58. package/dist/helpers/ApiError.d.ts.map +1 -0
  59. package/dist/helpers/ApiError.js +105 -0
  60. package/dist/helpers/ApiError.js.map +1 -0
  61. package/dist/helpers/asyncHandler.d.ts +42 -0
  62. package/dist/helpers/asyncHandler.d.ts.map +1 -0
  63. package/dist/helpers/asyncHandler.js +47 -0
  64. package/dist/helpers/asyncHandler.js.map +1 -0
  65. package/dist/helpers/id-generator.d.ts +98 -0
  66. package/dist/helpers/id-generator.d.ts.map +1 -0
  67. package/dist/helpers/id-generator.js +128 -0
  68. package/dist/helpers/id-generator.js.map +1 -0
  69. package/dist/helpers/index.d.ts +5 -0
  70. package/dist/helpers/index.d.ts.map +1 -0
  71. package/dist/helpers/index.js +8 -0
  72. package/dist/helpers/index.js.map +1 -0
  73. package/dist/helpers/response-timing.d.ts +91 -0
  74. package/dist/helpers/response-timing.d.ts.map +1 -0
  75. package/dist/helpers/response-timing.js +176 -0
  76. package/dist/helpers/response-timing.js.map +1 -0
  77. package/dist/index.d.ts +7 -3
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +21 -3
  80. package/dist/index.js.map +1 -1
  81. package/dist/schemas/account.schema.d.ts +4500 -0
  82. package/dist/schemas/account.schema.d.ts.map +1 -0
  83. package/dist/schemas/account.schema.js +123 -0
  84. package/dist/schemas/account.schema.js.map +1 -0
  85. package/dist/schemas/chat.schema.d.ts +4796 -0
  86. package/dist/schemas/chat.schema.d.ts.map +1 -0
  87. package/dist/schemas/chat.schema.js +107 -0
  88. package/dist/schemas/chat.schema.js.map +1 -0
  89. package/dist/schemas/collaboration-request.schema.d.ts +3960 -0
  90. package/dist/schemas/collaboration-request.schema.d.ts.map +1 -0
  91. package/dist/schemas/collaboration-request.schema.js +92 -0
  92. package/dist/schemas/collaboration-request.schema.js.map +1 -0
  93. package/dist/schemas/company-review.schema.d.ts +3465 -0
  94. package/dist/schemas/company-review.schema.d.ts.map +1 -0
  95. package/dist/schemas/company-review.schema.js +73 -0
  96. package/dist/schemas/company-review.schema.js.map +1 -0
  97. package/dist/schemas/company.schema.d.ts +6152 -0
  98. package/dist/schemas/company.schema.d.ts.map +1 -0
  99. package/dist/schemas/company.schema.js +192 -0
  100. package/dist/schemas/company.schema.js.map +1 -0
  101. package/dist/schemas/contract.schema.d.ts +5286 -0
  102. package/dist/schemas/contract.schema.d.ts.map +1 -0
  103. package/dist/schemas/contract.schema.js +115 -0
  104. package/dist/schemas/contract.schema.js.map +1 -0
  105. package/dist/schemas/dispute-evidence.schema.d.ts +3788 -0
  106. package/dist/schemas/dispute-evidence.schema.d.ts.map +1 -0
  107. package/dist/schemas/dispute-evidence.schema.js +71 -0
  108. package/dist/schemas/dispute-evidence.schema.js.map +1 -0
  109. package/dist/schemas/dispute.schema.d.ts +4970 -0
  110. package/dist/schemas/dispute.schema.d.ts.map +1 -0
  111. package/dist/schemas/dispute.schema.js +152 -0
  112. package/dist/schemas/dispute.schema.js.map +1 -0
  113. package/dist/schemas/donation.schema.d.ts +3594 -0
  114. package/dist/schemas/donation.schema.d.ts.map +1 -0
  115. package/dist/schemas/donation.schema.js +95 -0
  116. package/dist/schemas/donation.schema.js.map +1 -0
  117. package/dist/schemas/escrow.schema.d.ts +4322 -0
  118. package/dist/schemas/escrow.schema.d.ts.map +1 -0
  119. package/dist/schemas/escrow.schema.js +93 -0
  120. package/dist/schemas/escrow.schema.js.map +1 -0
  121. package/dist/schemas/flag.schema.d.ts +4375 -0
  122. package/dist/schemas/flag.schema.d.ts.map +1 -0
  123. package/dist/schemas/flag.schema.js +133 -0
  124. package/dist/schemas/flag.schema.js.map +1 -0
  125. package/dist/schemas/index.d.ts +33 -0
  126. package/dist/schemas/index.d.ts.map +1 -0
  127. package/dist/schemas/index.js +39 -0
  128. package/dist/schemas/index.js.map +1 -0
  129. package/dist/schemas/interest.schema.d.ts +3804 -0
  130. package/dist/schemas/interest.schema.d.ts.map +1 -0
  131. package/dist/schemas/interest.schema.js +107 -0
  132. package/dist/schemas/interest.schema.js.map +1 -0
  133. package/dist/schemas/match.schema.d.ts +4013 -0
  134. package/dist/schemas/match.schema.d.ts.map +1 -0
  135. package/dist/schemas/match.schema.js +118 -0
  136. package/dist/schemas/match.schema.js.map +1 -0
  137. package/dist/schemas/message.schema.d.ts +4213 -0
  138. package/dist/schemas/message.schema.d.ts.map +1 -0
  139. package/dist/schemas/message.schema.js +134 -0
  140. package/dist/schemas/message.schema.js.map +1 -0
  141. package/dist/schemas/milestone.schema.d.ts +4310 -0
  142. package/dist/schemas/milestone.schema.d.ts.map +1 -0
  143. package/dist/schemas/milestone.schema.js +99 -0
  144. package/dist/schemas/milestone.schema.js.map +1 -0
  145. package/dist/schemas/notification.schema.d.ts +4641 -0
  146. package/dist/schemas/notification.schema.d.ts.map +1 -0
  147. package/dist/schemas/notification.schema.js +139 -0
  148. package/dist/schemas/notification.schema.js.map +1 -0
  149. package/dist/schemas/profile.schema.d.ts +9589 -0
  150. package/dist/schemas/profile.schema.d.ts.map +1 -0
  151. package/dist/schemas/profile.schema.js +360 -0
  152. package/dist/schemas/profile.schema.js.map +1 -0
  153. package/dist/schemas/profit-share-agreement.schema.d.ts +3789 -0
  154. package/dist/schemas/profit-share-agreement.schema.d.ts.map +1 -0
  155. package/dist/schemas/profit-share-agreement.schema.js +76 -0
  156. package/dist/schemas/profit-share-agreement.schema.js.map +1 -0
  157. package/dist/schemas/profit-share.schema.d.ts +4051 -0
  158. package/dist/schemas/profit-share.schema.d.ts.map +1 -0
  159. package/dist/schemas/profit-share.schema.js +96 -0
  160. package/dist/schemas/profit-share.schema.js.map +1 -0
  161. package/dist/schemas/promo-code.schema.d.ts +3924 -0
  162. package/dist/schemas/promo-code.schema.d.ts.map +1 -0
  163. package/dist/schemas/promo-code.schema.js +112 -0
  164. package/dist/schemas/promo-code.schema.js.map +1 -0
  165. package/dist/schemas/proposal.schema.d.ts +5182 -0
  166. package/dist/schemas/proposal.schema.d.ts.map +1 -0
  167. package/dist/schemas/proposal.schema.js +114 -0
  168. package/dist/schemas/proposal.schema.js.map +1 -0
  169. package/dist/schemas/purchase.schema.d.ts +3724 -0
  170. package/dist/schemas/purchase.schema.d.ts.map +1 -0
  171. package/dist/schemas/purchase.schema.js +89 -0
  172. package/dist/schemas/purchase.schema.js.map +1 -0
  173. package/dist/schemas/requirement-post.schema.d.ts +6315 -0
  174. package/dist/schemas/requirement-post.schema.d.ts.map +1 -0
  175. package/dist/schemas/requirement-post.schema.js +153 -0
  176. package/dist/schemas/requirement-post.schema.js.map +1 -0
  177. package/dist/schemas/review.schema.d.ts +4512 -0
  178. package/dist/schemas/review.schema.d.ts.map +1 -0
  179. package/dist/schemas/review.schema.js +121 -0
  180. package/dist/schemas/review.schema.js.map +1 -0
  181. package/dist/schemas/service-listing.schema.d.ts +5152 -0
  182. package/dist/schemas/service-listing.schema.d.ts.map +1 -0
  183. package/dist/schemas/service-listing.schema.js +137 -0
  184. package/dist/schemas/service-listing.schema.js.map +1 -0
  185. package/dist/schemas/subscription.schema.d.ts +3985 -0
  186. package/dist/schemas/subscription.schema.d.ts.map +1 -0
  187. package/dist/schemas/subscription.schema.js +94 -0
  188. package/dist/schemas/subscription.schema.js.map +1 -0
  189. package/dist/schemas/tmc-application.schema.d.ts +4357 -0
  190. package/dist/schemas/tmc-application.schema.d.ts.map +1 -0
  191. package/dist/schemas/tmc-application.schema.js +96 -0
  192. package/dist/schemas/tmc-application.schema.js.map +1 -0
  193. package/dist/schemas/tmc-membership.schema.d.ts +3985 -0
  194. package/dist/schemas/tmc-membership.schema.d.ts.map +1 -0
  195. package/dist/schemas/tmc-membership.schema.js +84 -0
  196. package/dist/schemas/tmc-membership.schema.js.map +1 -0
  197. package/dist/schemas/trust-badge.schema.d.ts +3919 -0
  198. package/dist/schemas/trust-badge.schema.d.ts.map +1 -0
  199. package/dist/schemas/trust-badge.schema.js +83 -0
  200. package/dist/schemas/trust-badge.schema.js.map +1 -0
  201. package/dist/schemas/verification.schema.d.ts +4606 -0
  202. package/dist/schemas/verification.schema.d.ts.map +1 -0
  203. package/dist/schemas/verification.schema.js +114 -0
  204. package/dist/schemas/verification.schema.js.map +1 -0
  205. package/dist/schemas/webhook-event.schema.d.ts +3534 -0
  206. package/dist/schemas/webhook-event.schema.d.ts.map +1 -0
  207. package/dist/schemas/webhook-event.schema.js +83 -0
  208. package/dist/schemas/webhook-event.schema.js.map +1 -0
  209. package/dist/types/account.d.ts +36 -7
  210. package/dist/types/account.d.ts.map +1 -1
  211. package/dist/types/account.js +3 -1
  212. package/dist/types/account.js.map +1 -1
  213. package/dist/types/admin.d.ts +20 -10
  214. package/dist/types/admin.d.ts.map +1 -1
  215. package/dist/types/admin.js +3 -1
  216. package/dist/types/admin.js.map +1 -1
  217. package/dist/types/api.d.ts +184 -109
  218. package/dist/types/api.d.ts.map +1 -1
  219. package/dist/types/api.js +2 -1
  220. package/dist/types/api.js.map +1 -1
  221. package/dist/types/chat.d.ts +38 -20
  222. package/dist/types/chat.d.ts.map +1 -1
  223. package/dist/types/chat.js +3 -1
  224. package/dist/types/chat.js.map +1 -1
  225. package/dist/types/common.d.ts +39 -12
  226. package/dist/types/common.d.ts.map +1 -1
  227. package/dist/types/common.js +4 -1
  228. package/dist/types/common.js.map +1 -1
  229. package/dist/types/company.d.ts +61 -44
  230. package/dist/types/company.d.ts.map +1 -1
  231. package/dist/types/company.js +3 -1
  232. package/dist/types/company.js.map +1 -1
  233. package/dist/types/flag.d.ts +19 -8
  234. package/dist/types/flag.d.ts.map +1 -1
  235. package/dist/types/flag.js +3 -1
  236. package/dist/types/flag.js.map +1 -1
  237. package/dist/types/forms.d.ts +334 -0
  238. package/dist/types/forms.d.ts.map +1 -0
  239. package/dist/types/forms.js +5 -0
  240. package/dist/types/forms.js.map +1 -0
  241. package/dist/types/index.d.ts +18 -13
  242. package/dist/types/index.d.ts.map +1 -1
  243. package/dist/types/index.js +18 -13
  244. package/dist/types/index.js.map +1 -1
  245. package/dist/types/marketplace.d.ts +174 -104
  246. package/dist/types/marketplace.d.ts.map +1 -1
  247. package/dist/types/marketplace.js +2 -0
  248. package/dist/types/marketplace.js.map +1 -1
  249. package/dist/types/match.d.ts +36 -19
  250. package/dist/types/match.d.ts.map +1 -1
  251. package/dist/types/match.js +3 -1
  252. package/dist/types/match.js.map +1 -1
  253. package/dist/types/navigation.d.ts +305 -0
  254. package/dist/types/navigation.d.ts.map +1 -0
  255. package/dist/types/navigation.js +18 -0
  256. package/dist/types/navigation.js.map +1 -0
  257. package/dist/types/notification.d.ts +92 -0
  258. package/dist/types/notification.d.ts.map +1 -0
  259. package/dist/types/notification.js +5 -0
  260. package/dist/types/notification.js.map +1 -0
  261. package/dist/types/payment.d.ts +70 -38
  262. package/dist/types/payment.d.ts.map +1 -1
  263. package/dist/types/payment.js +3 -1
  264. package/dist/types/payment.js.map +1 -1
  265. package/dist/types/policy.d.ts +174 -81
  266. package/dist/types/policy.d.ts.map +1 -1
  267. package/dist/types/policy.js.map +1 -1
  268. package/dist/types/profile.d.ts +48 -37
  269. package/dist/types/profile.d.ts.map +1 -1
  270. package/dist/types/profile.js +3 -1
  271. package/dist/types/profile.js.map +1 -1
  272. package/dist/types/socket.d.ts +431 -0
  273. package/dist/types/socket.d.ts.map +1 -0
  274. package/dist/types/socket.js +5 -0
  275. package/dist/types/socket.js.map +1 -0
  276. package/dist/types/verification.d.ts +18 -9
  277. package/dist/types/verification.d.ts.map +1 -1
  278. package/dist/types/verification.js +3 -1
  279. package/dist/types/verification.js.map +1 -1
  280. package/dist/types/worker.d.ts +452 -0
  281. package/dist/types/worker.d.ts.map +1 -0
  282. package/dist/types/worker.js +5 -0
  283. package/dist/types/worker.js.map +1 -0
  284. package/dist/validation/index.d.ts +5 -0
  285. package/dist/validation/index.d.ts.map +1 -0
  286. package/dist/validation/index.js +9 -0
  287. package/dist/validation/index.js.map +1 -0
  288. package/dist/validation/messages.d.ts +124 -0
  289. package/dist/validation/messages.d.ts.map +1 -0
  290. package/dist/validation/messages.js +160 -0
  291. package/dist/validation/messages.js.map +1 -0
  292. package/dist/validation/schemas.d.ts +1127 -0
  293. package/dist/validation/schemas.d.ts.map +1 -0
  294. package/dist/validation/schemas.js +376 -0
  295. package/dist/validation/schemas.js.map +1 -0
  296. package/dist/validation/validators.d.ts +229 -0
  297. package/dist/validation/validators.d.ts.map +1 -0
  298. package/dist/validation/validators.js +307 -0
  299. package/dist/validation/validators.js.map +1 -0
  300. package/package.json +37 -3
@@ -1,7 +1,8 @@
1
- import type { Location, TimestampFields } from './common';
1
+ import type { ILocation, ITimestampFields } from './common.js';
2
2
  export type ServiceCategory = 'full_service' | 'profile_management' | 'search_only' | 'verification' | 'consultation' | 'event_based';
3
3
  export type PricingModel = 'fixed' | 'monthly' | 'success_based' | 'hybrid';
4
- export interface ServicePackage {
4
+ export type VerificationLevel = 'basic' | 'verified' | 'trusted' | 'premium' | 'elite';
5
+ export interface IServicePackage {
5
6
  id: string;
6
7
  name: string;
7
8
  description: string;
@@ -13,18 +14,18 @@ export interface ServicePackage {
13
14
  guaranteedMatches?: number;
14
15
  refundPolicy?: string;
15
16
  }
16
- export interface ServiceListing extends TimestampFields {
17
+ export interface IServiceListing extends ITimestampFields {
17
18
  id: string;
18
19
  companyId: string;
19
20
  title: string;
20
21
  description: string;
21
22
  category: ServiceCategory;
22
23
  specializations: string[];
23
- packages: ServicePackage[];
24
+ packages: IServicePackage[];
24
25
  pricingModel: PricingModel;
25
26
  successFeePercentage?: number;
26
27
  targetSects: string[];
27
- targetRegions: Location[];
28
+ targetRegions: ILocation[];
28
29
  targetProfessions: string[];
29
30
  termsAndConditions: string;
30
31
  privacyPolicy: string;
@@ -38,18 +39,18 @@ export interface ServiceListing extends TimestampFields {
38
39
  isActive: boolean;
39
40
  isFeatured: boolean;
40
41
  featuredUntil?: Date;
41
- verificationLevel: 'basic' | 'verified' | 'trusted' | 'premium' | 'elite';
42
+ verificationLevel: VerificationLevel;
42
43
  }
43
- export interface ServiceListingCreateInput {
44
+ export interface IServiceListingCreateInput {
44
45
  title: string;
45
46
  description: string;
46
47
  category: ServiceCategory;
47
48
  specializations: string[];
48
- packages: Omit<ServicePackage, 'id'>[];
49
+ packages: Omit<IServicePackage, 'id'>[];
49
50
  pricingModel: PricingModel;
50
51
  successFeePercentage?: number;
51
52
  targetSects?: string[];
52
- targetRegions?: Location[];
53
+ targetRegions?: ILocation[];
53
54
  targetProfessions?: string[];
54
55
  termsAndConditions: string;
55
56
  privacyPolicy?: string;
@@ -58,8 +59,10 @@ export interface ServiceListingCreateInput {
58
59
  }
59
60
  export type RequirementStatus = 'draft' | 'active' | 'paused' | 'in_contract' | 'completed' | 'cancelled' | 'filled' | 'closed';
60
61
  export type RequirementVisibility = 'public' | 'invited' | 'private';
61
- export interface RequirementPreferences {
62
- gender: 'male' | 'female';
62
+ export type RequirementUrgency = 'flexible' | 'moderate' | 'urgent';
63
+ export type CandidateGender = 'male' | 'female';
64
+ export interface IRequirementPreferences {
65
+ gender: CandidateGender;
63
66
  ageRange: {
64
67
  min: number;
65
68
  max: number;
@@ -67,31 +70,31 @@ export interface RequirementPreferences {
67
70
  sects: string[];
68
71
  educationLevels: string[];
69
72
  professions: string[];
70
- locations: Location[];
73
+ locations: ILocation[];
71
74
  maritalStatuses: string[];
72
75
  additionalRequirements?: string;
73
76
  }
74
- export interface RequirementPost extends TimestampFields {
77
+ export interface IRequirementPost extends ITimestampFields {
75
78
  id: string;
76
79
  accountId: string;
77
80
  profileId?: string;
78
81
  title: string;
79
82
  description: string;
80
83
  candidateOverview: string;
81
- candidateGender: 'male' | 'female';
84
+ candidateGender: CandidateGender;
82
85
  candidateAge: number;
83
86
  candidateProfession: string;
84
87
  candidateEducation: string;
85
- candidateLocation: Location;
88
+ candidateLocation: ILocation;
86
89
  candidateSect: string;
87
- preferences: RequirementPreferences;
90
+ preferences: IRequirementPreferences;
88
91
  budgetMin: number;
89
92
  budgetMax: number;
90
93
  currency: string;
91
94
  timeline: number;
92
- urgency: 'flexible' | 'moderate' | 'urgent';
95
+ urgency: RequirementUrgency;
93
96
  preferredCompanyTypes?: string[];
94
- preferredRegions?: Location[];
97
+ preferredRegions?: ILocation[];
95
98
  requireVerifiedCompany: boolean;
96
99
  minimumRating?: number;
97
100
  status: RequirementStatus;
@@ -107,24 +110,24 @@ export interface RequirementPost extends TimestampFields {
107
110
  selectedContractId?: string;
108
111
  filledAt?: Date;
109
112
  }
110
- export interface RequirementPostCreateInput {
113
+ export interface IRequirementPostCreateInput {
111
114
  title: string;
112
115
  description: string;
113
116
  candidateOverview: string;
114
- candidateGender: 'male' | 'female';
117
+ candidateGender: CandidateGender;
115
118
  candidateAge: number;
116
119
  candidateProfession: string;
117
120
  candidateEducation: string;
118
- candidateLocation: Location;
121
+ candidateLocation: ILocation;
119
122
  candidateSect: string;
120
- preferences: RequirementPreferences;
123
+ preferences: IRequirementPreferences;
121
124
  budgetMin: number;
122
125
  budgetMax: number;
123
126
  currency?: string;
124
127
  timeline: number;
125
- urgency?: 'flexible' | 'moderate' | 'urgent';
128
+ urgency?: RequirementUrgency;
126
129
  preferredCompanyTypes?: string[];
127
- preferredRegions?: Location[];
130
+ preferredRegions?: ILocation[];
128
131
  requireVerifiedCompany?: boolean;
129
132
  minimumRating?: number;
130
133
  visibility?: RequirementVisibility;
@@ -132,7 +135,7 @@ export interface RequirementPostCreateInput {
132
135
  profileId?: string;
133
136
  }
134
137
  export type ProposalStatus = 'pending' | 'shortlisted' | 'accepted' | 'rejected' | 'withdrawn' | 'expired';
135
- export interface ProposalMilestone {
138
+ export interface IProposalMilestone {
136
139
  id: string;
137
140
  title: string;
138
141
  description: string;
@@ -140,17 +143,17 @@ export interface ProposalMilestone {
140
143
  dueDate?: Date;
141
144
  deliverables: string[];
142
145
  }
143
- export interface Proposal extends TimestampFields {
146
+ export interface IProposal extends ITimestampFields {
144
147
  id: string;
145
148
  requirementId: string;
146
149
  companyId: string;
147
150
  listingId?: string;
148
151
  coverLetter: string;
149
- proposedPackage?: ServicePackage;
152
+ proposedPackage?: IServicePackage;
150
153
  customPrice: number;
151
154
  currency: string;
152
155
  proposedDuration: number;
153
- proposedMilestones: ProposalMilestone[];
156
+ proposedMilestones: IProposalMilestone[];
154
157
  relevantExperience: string;
155
158
  potentialMatches?: number;
156
159
  guarantees: string[];
@@ -168,15 +171,15 @@ export interface Proposal extends TimestampFields {
168
171
  viewedByClient: boolean;
169
172
  viewedAt?: Date;
170
173
  }
171
- export interface ProposalCreateInput {
174
+ export interface IProposalCreateInput {
172
175
  requirementId: string;
173
176
  listingId?: string;
174
177
  coverLetter: string;
175
- proposedPackage?: ServicePackage;
178
+ proposedPackage?: IServicePackage;
176
179
  customPrice: number;
177
180
  currency?: string;
178
181
  proposedDuration: number;
179
- proposedMilestones: Omit<ProposalMilestone, 'id'>[];
182
+ proposedMilestones: Omit<IProposalMilestone, 'id'>[];
180
183
  relevantExperience: string;
181
184
  potentialMatches?: number;
182
185
  guarantees?: string[];
@@ -185,7 +188,8 @@ export interface ProposalCreateInput {
185
188
  customTerms?: string;
186
189
  }
187
190
  export type ContractStatus = 'pending_payment' | 'active' | 'paused' | 'completed' | 'disputed' | 'cancelled' | 'terminated';
188
- export interface Contract extends TimestampFields {
191
+ export type ContractCancelledBy = 'family' | 'company' | 'admin';
192
+ export interface IContract extends ITimestampFields {
189
193
  id: string;
190
194
  proposalId: string;
191
195
  requirementId: string;
@@ -209,7 +213,7 @@ export interface Contract extends TimestampFields {
209
213
  completedAt?: Date;
210
214
  cancelledAt?: Date;
211
215
  cancellationReason?: string;
212
- cancelledBy?: 'family' | 'company' | 'admin';
216
+ cancelledBy?: ContractCancelledBy;
213
217
  currentMilestoneId?: string;
214
218
  completedMilestones: string[];
215
219
  progressPercentage: number;
@@ -225,7 +229,7 @@ export interface Contract extends TimestampFields {
225
229
  startedAt?: Date;
226
230
  }
227
231
  export type MilestoneStatus = 'upcoming' | 'in_progress' | 'pending_approval' | 'approved' | 'disputed' | 'paid' | 'refunded';
228
- export interface Milestone extends TimestampFields {
232
+ export interface IMilestone extends ITimestampFields {
229
233
  id: string;
230
234
  contractId: string;
231
235
  proposalMilestoneId?: string;
@@ -251,13 +255,13 @@ export interface Milestone extends TimestampFields {
251
255
  }
252
256
  export type CollaborationType = 'match_request' | 'referral' | 'partnership' | 'pool_join' | 'event_collab';
253
257
  export type CollaborationStatus = 'pending' | 'accepted' | 'rejected' | 'active' | 'completed' | 'cancelled';
254
- export interface CollaborationTerms {
258
+ export interface ICollaborationTerms {
255
259
  revenueShare: number;
256
260
  leadCompany: string;
257
261
  communicationRules: string;
258
262
  exclusivityPeriod?: number;
259
263
  }
260
- export interface CollaborationRequest extends TimestampFields {
264
+ export interface ICollaborationRequest extends ITimestampFields {
261
265
  id: string;
262
266
  fromCompanyId: string;
263
267
  toCompanyId: string;
@@ -266,28 +270,29 @@ export interface CollaborationRequest extends TimestampFields {
266
270
  description: string;
267
271
  profileId?: string;
268
272
  requirementId?: string;
269
- terms: CollaborationTerms;
273
+ terms: ICollaborationTerms;
270
274
  status: CollaborationStatus;
271
275
  respondedAt?: Date;
272
276
  responseMessage?: string;
273
277
  matchId?: string;
274
278
  revenueGenerated?: number;
275
279
  }
276
- export interface CollaborationRequestCreateInput {
280
+ export interface ICollaborationRequestCreateInput {
277
281
  toCompanyId: string;
278
282
  type: CollaborationType;
279
283
  title: string;
280
284
  description: string;
281
285
  profileId?: string;
282
286
  requirementId?: string;
283
- terms: CollaborationTerms;
287
+ terms: ICollaborationTerms;
284
288
  }
285
289
  export type ReviewType = 'contract_review' | 'collaboration_review' | 'success_story';
286
- export interface Review extends TimestampFields {
290
+ export type ReviewerType = 'family' | 'company';
291
+ export interface IReview extends ITimestampFields {
287
292
  id: string;
288
293
  type: ReviewType;
289
294
  reviewerId: string;
290
- reviewerType: 'family' | 'company';
295
+ reviewerType: ReviewerType;
291
296
  reviewerName: string;
292
297
  reviewedId: string;
293
298
  contractId?: string;
@@ -310,7 +315,7 @@ export interface Review extends TimestampFields {
310
315
  moderatedAt?: Date;
311
316
  moderatedBy?: string;
312
317
  }
313
- export interface ReviewCreateInput {
318
+ export interface IReviewCreateInput {
314
319
  type: ReviewType;
315
320
  reviewedId: string;
316
321
  contractId?: string;
@@ -330,16 +335,17 @@ export interface ReviewCreateInput {
330
335
  photos?: string[];
331
336
  }
332
337
  export type EscrowStatus = 'pending' | 'funded' | 'partially_released' | 'released' | 'refunded' | 'disputed';
333
- export interface EscrowTransaction {
338
+ export type EscrowTransactionType = 'deposit' | 'release' | 'refund';
339
+ export interface IEscrowTransaction {
334
340
  id: string;
335
- type: 'deposit' | 'release' | 'refund';
341
+ type: EscrowTransactionType;
336
342
  amount: number;
337
343
  milestoneId?: string;
338
344
  description: string;
339
345
  createdAt: Date;
340
346
  processedAt?: Date;
341
347
  }
342
- export interface Escrow extends TimestampFields {
348
+ export interface IEscrow extends ITimestampFields {
343
349
  id: string;
344
350
  contractId: string;
345
351
  accountId: string;
@@ -351,7 +357,7 @@ export interface Escrow extends TimestampFields {
351
357
  availableBalance: number;
352
358
  currency: string;
353
359
  status: EscrowStatus;
354
- transactions: EscrowTransaction[];
360
+ transactions: IEscrowTransaction[];
355
361
  platformFeePercentage: number;
356
362
  platformFeeAmount: number;
357
363
  disputeId?: string;
@@ -362,7 +368,7 @@ export interface Escrow extends TimestampFields {
362
368
  export type TMCStatus = 'none' | 'pending' | 'approved' | 'suspended';
363
369
  export type TMCTier = 'standard' | 'gold' | 'platinum';
364
370
  export type TMCApprovalMethod = 'manual' | 'criteria';
365
- export interface TMCFields {
371
+ export interface ITMCFields {
366
372
  isTrustManagementCompany: boolean;
367
373
  tmcStatus: TMCStatus;
368
374
  tmcTier?: TMCTier;
@@ -376,7 +382,21 @@ export interface TMCFields {
376
382
  maxManagedCompanies: number;
377
383
  }
378
384
  export type TMCApplicationStatus = 'pending' | 'under_review' | 'approved' | 'rejected';
379
- export interface TMCApplication extends TimestampFields {
385
+ export type TMCDocumentType = 'business_license' | 'track_record' | 'reference_letter' | 'other';
386
+ export interface ITMCApplicationDocument {
387
+ type: TMCDocumentType;
388
+ url: string;
389
+ name: string;
390
+ uploadedAt: Date;
391
+ }
392
+ export interface ITMCApplicationReference {
393
+ name: string;
394
+ company: string;
395
+ email: string;
396
+ phone?: string;
397
+ relationship: string;
398
+ }
399
+ export interface ITMCApplication extends ITimestampFields {
380
400
  id: string;
381
401
  companyId: string;
382
402
  companyName: string;
@@ -386,19 +406,8 @@ export interface TMCApplication extends TimestampFields {
386
406
  currentTrustLevel: string;
387
407
  specializations: string[];
388
408
  geographicCoverage: string[];
389
- documents: {
390
- type: 'business_license' | 'track_record' | 'reference_letter' | 'other';
391
- url: string;
392
- name: string;
393
- uploadedAt: Date;
394
- }[];
395
- references: {
396
- name: string;
397
- company: string;
398
- email: string;
399
- phone?: string;
400
- relationship: string;
401
- }[];
409
+ documents: ITMCApplicationDocument[];
410
+ references: ITMCApplicationReference[];
402
411
  status: TMCApplicationStatus;
403
412
  reviewedAt?: Date;
404
413
  reviewedBy?: string;
@@ -406,28 +415,18 @@ export interface TMCApplication extends TimestampFields {
406
415
  rejectionReason?: string;
407
416
  approvedTier?: TMCTier;
408
417
  }
409
- export interface TMCApplicationCreateInput {
418
+ export interface ITMCApplicationCreateInput {
410
419
  applicationLetter: string;
411
420
  yearsInBusiness: number;
412
421
  totalMatchesFacilitated: number;
413
422
  specializations: string[];
414
423
  geographicCoverage: string[];
415
- documents: {
416
- type: 'business_license' | 'track_record' | 'reference_letter' | 'other';
417
- url: string;
418
- name: string;
419
- }[];
420
- references: {
421
- name: string;
422
- company: string;
423
- email: string;
424
- phone?: string;
425
- relationship: string;
426
- }[];
424
+ documents: Omit<ITMCApplicationDocument, 'uploadedAt'>[];
425
+ references: ITMCApplicationReference[];
427
426
  }
428
427
  export type TMCMembershipStatus = 'pending' | 'active' | 'suspended' | 'revoked';
429
428
  export type VouchLevel = 'basic' | 'standard' | 'full';
430
- export interface TMCMembership extends TimestampFields {
429
+ export interface ITMCMembership extends ITimestampFields {
431
430
  id: string;
432
431
  companyId: string;
433
432
  tmcCompanyId: string;
@@ -446,14 +445,14 @@ export interface TMCMembership extends TimestampFields {
446
445
  totalProfitShared: number;
447
446
  lastProfitShareDate?: Date;
448
447
  }
449
- export interface TMCMembershipInviteInput {
448
+ export interface ITMCMembershipInviteInput {
450
449
  companyId: string;
451
450
  vouchLevel: VouchLevel;
452
451
  profitSharePercentage: number;
453
452
  contractTerms?: string;
454
453
  }
455
454
  export type BadgeType = 'verified' | 'endorsed' | 'premium_partner' | 'top_performer' | 'founding_partner';
456
- export interface TrustBadge extends TimestampFields {
455
+ export interface ITrustBadge extends ITimestampFields {
457
456
  id: string;
458
457
  companyId: string;
459
458
  tmcCompanyId?: string;
@@ -471,13 +470,14 @@ export interface TrustBadge extends TimestampFields {
471
470
  showOnListing: boolean;
472
471
  showOnSearch: boolean;
473
472
  }
474
- export interface ProfitShareAgreement extends TimestampFields {
473
+ export type ProfitShareAppliesTo = 'contracts' | 'subscriptions' | 'profile_packs';
474
+ export interface IProfitShareAgreement extends ITimestampFields {
475
475
  id: string;
476
476
  companyId: string;
477
477
  tmcCompanyId: string;
478
478
  membershipId: string;
479
479
  sharePercentage: number;
480
- appliesTo: ('contracts' | 'subscriptions' | 'profile_packs')[];
480
+ appliesTo: ProfitShareAppliesTo[];
481
481
  minimumEarningThreshold?: number;
482
482
  monthlyCapAmount?: number;
483
483
  startDate: Date;
@@ -488,12 +488,14 @@ export interface ProfitShareAgreement extends TimestampFields {
488
488
  transactionCount: number;
489
489
  }
490
490
  export type ProfitShareStatus = 'pending' | 'processing' | 'completed' | 'failed';
491
- export interface ProfitShare extends TimestampFields {
491
+ export type ProfitShareTriggerType = 'contract_payment' | 'milestone_release' | 'subscription';
492
+ export type ProfitSharePayoutMethod = 'stripe_connect' | 'manual';
493
+ export interface IProfitShare extends ITimestampFields {
492
494
  id: string;
493
495
  agreementId: string;
494
496
  companyId: string;
495
497
  tmcCompanyId: string;
496
- triggerType: 'contract_payment' | 'milestone_release' | 'subscription';
498
+ triggerType: ProfitShareTriggerType;
497
499
  triggerId: string;
498
500
  originalAmount: number;
499
501
  sharePercentage: number;
@@ -505,18 +507,22 @@ export interface ProfitShare extends TimestampFields {
505
507
  processedAt?: Date;
506
508
  paidAt?: Date;
507
509
  failureReason?: string;
508
- payoutMethod: 'stripe_connect' | 'manual';
510
+ payoutMethod: ProfitSharePayoutMethod;
509
511
  stripeTransferId?: string;
510
512
  }
511
513
  export type DisputePhase = 'discussion' | 'mediation' | 'admin_review' | 'resolved';
512
514
  export type DisputeStatus = 'open' | 'awaiting_response' | 'in_mediation' | 'escalated' | 'resolved' | 'closed';
513
515
  export type DisputeResolution = 'full_refund' | 'partial_refund' | 'release_to_company' | 'split' | 'withdrawn' | 'mutual_agreement';
514
516
  export type EvidenceType = 'text' | 'file' | 'image' | 'video' | 'chat_log' | 'contract_doc';
515
- export interface DisputeEvidence extends TimestampFields {
517
+ export type DisputeCategory = 'service_not_delivered' | 'quality_issue' | 'communication_problem' | 'misrepresentation' | 'timeline_breach' | 'refund_request' | 'other';
518
+ export type DisputeInitiatedBy = 'family' | 'company';
519
+ export type EscalatedBy = 'auto' | 'family' | 'company' | 'admin';
520
+ export type SubmitterType = 'family' | 'company';
521
+ export interface IDisputeEvidence extends ITimestampFields {
516
522
  id: string;
517
523
  disputeId: string;
518
524
  submittedBy: string;
519
- submitterType: 'family' | 'company';
525
+ submitterType: SubmitterType;
520
526
  type: EvidenceType;
521
527
  title: string;
522
528
  description: string;
@@ -528,29 +534,30 @@ export interface DisputeEvidence extends TimestampFields {
528
534
  isVisible: boolean;
529
535
  adminOnly: boolean;
530
536
  }
531
- export interface Dispute extends TimestampFields {
537
+ export interface IDisputePhaseHistoryEntry {
538
+ phase: DisputePhase;
539
+ startedAt: Date;
540
+ endedAt?: Date;
541
+ escalatedBy: EscalatedBy;
542
+ notes?: string;
543
+ }
544
+ export interface IDispute extends ITimestampFields {
532
545
  id: string;
533
546
  contractId: string;
534
547
  escrowId: string;
535
548
  accountId: string;
536
549
  companyId: string;
537
- initiatedBy: 'family' | 'company';
550
+ initiatedBy: DisputeInitiatedBy;
538
551
  initiatedAt: Date;
539
552
  title: string;
540
553
  description: string;
541
- category: 'service_not_delivered' | 'quality_issue' | 'communication_problem' | 'misrepresentation' | 'timeline_breach' | 'refund_request' | 'other';
554
+ category: DisputeCategory;
542
555
  amountInDispute: number;
543
556
  currency: string;
544
557
  currentPhase: DisputePhase;
545
558
  phaseStartedAt: Date;
546
559
  autoEscalateAt: Date;
547
- phaseHistory: {
548
- phase: DisputePhase;
549
- startedAt: Date;
550
- endedAt?: Date;
551
- escalatedBy: 'auto' | 'family' | 'company' | 'admin';
552
- notes?: string;
553
- }[];
560
+ phaseHistory: IDisputePhaseHistoryEntry[];
554
561
  familyEvidenceSubmitted: boolean;
555
562
  companyEvidenceSubmitted: boolean;
556
563
  evidenceDeadline?: Date;
@@ -565,19 +572,82 @@ export interface Dispute extends TimestampFields {
565
572
  assignedAt?: Date;
566
573
  adminNotes?: string;
567
574
  }
568
- export interface DisputeCreateInput {
575
+ export interface IDisputeEvidenceCreateInput {
576
+ type: EvidenceType;
577
+ title: string;
578
+ description: string;
579
+ content?: string;
580
+ fileUrl?: string;
581
+ fileName?: string;
582
+ }
583
+ export interface IDisputeCreateInput {
569
584
  contractId: string;
570
585
  title: string;
571
586
  description: string;
572
- category: Dispute['category'];
587
+ category: DisputeCategory;
573
588
  amountInDispute?: number;
574
- initialEvidence?: {
575
- type: EvidenceType;
576
- title: string;
577
- description: string;
578
- content?: string;
579
- fileUrl?: string;
580
- fileName?: string;
581
- }[];
589
+ initialEvidence?: IDisputeEvidenceCreateInput[];
582
590
  }
591
+ /** @deprecated Use IServicePackage instead */
592
+ export type ServicePackage = IServicePackage;
593
+ /** @deprecated Use IServiceListing instead */
594
+ export type ServiceListing = IServiceListing;
595
+ /** @deprecated Use IServiceListingCreateInput instead */
596
+ export type ServiceListingCreateInput = IServiceListingCreateInput;
597
+ /** @deprecated Use IRequirementPreferences instead */
598
+ export type RequirementPreferences = IRequirementPreferences;
599
+ /** @deprecated Use IRequirementPost instead */
600
+ export type RequirementPost = IRequirementPost;
601
+ /** @deprecated Use IRequirementPostCreateInput instead */
602
+ export type RequirementPostCreateInput = IRequirementPostCreateInput;
603
+ /** @deprecated Use IProposalMilestone instead */
604
+ export type ProposalMilestone = IProposalMilestone;
605
+ /** @deprecated Use IProposal instead */
606
+ export type Proposal = IProposal;
607
+ /** @deprecated Use IProposalCreateInput instead */
608
+ export type ProposalCreateInput = IProposalCreateInput;
609
+ /** @deprecated Use IContract instead */
610
+ export type Contract = IContract;
611
+ /** @deprecated Use IMilestone instead */
612
+ export type Milestone = IMilestone;
613
+ /** @deprecated Use ICollaborationTerms instead */
614
+ export type CollaborationTerms = ICollaborationTerms;
615
+ /** @deprecated Use ICollaborationRequest instead */
616
+ export type CollaborationRequest = ICollaborationRequest;
617
+ /** @deprecated Use ICollaborationRequestCreateInput instead */
618
+ export type CollaborationRequestCreateInput = ICollaborationRequestCreateInput;
619
+ /** @deprecated Use IReview instead */
620
+ export type Review = IReview;
621
+ /** @deprecated Use IReviewCreateInput instead */
622
+ export type ReviewCreateInput = IReviewCreateInput;
623
+ /** @deprecated Use IEscrowTransaction instead */
624
+ export type EscrowTransaction = IEscrowTransaction;
625
+ /** @deprecated Use IEscrow instead */
626
+ export type Escrow = IEscrow;
627
+ /** @deprecated Use ITMCFields instead */
628
+ export type TMCFields = ITMCFields;
629
+ /** @deprecated Use ITMCApplicationDocument instead */
630
+ export type TMCApplicationDocument = ITMCApplicationDocument;
631
+ /** @deprecated Use ITMCApplicationReference instead */
632
+ export type TMCApplicationReference = ITMCApplicationReference;
633
+ /** @deprecated Use ITMCApplication instead */
634
+ export type TMCApplication = ITMCApplication;
635
+ /** @deprecated Use ITMCApplicationCreateInput instead */
636
+ export type TMCApplicationCreateInput = ITMCApplicationCreateInput;
637
+ /** @deprecated Use ITMCMembership instead */
638
+ export type TMCMembership = ITMCMembership;
639
+ /** @deprecated Use ITMCMembershipInviteInput instead */
640
+ export type TMCMembershipInviteInput = ITMCMembershipInviteInput;
641
+ /** @deprecated Use ITrustBadge instead */
642
+ export type TrustBadge = ITrustBadge;
643
+ /** @deprecated Use IProfitShareAgreement instead */
644
+ export type ProfitShareAgreement = IProfitShareAgreement;
645
+ /** @deprecated Use IProfitShare instead */
646
+ export type ProfitShare = IProfitShare;
647
+ /** @deprecated Use IDisputeEvidence instead */
648
+ export type DisputeEvidence = IDisputeEvidence;
649
+ /** @deprecated Use IDispute instead */
650
+ export type Dispute = IDispute;
651
+ /** @deprecated Use IDisputeCreateInput instead */
652
+ export type DisputeCreateInput = IDisputeCreateInput;
583
653
  //# sourceMappingURL=marketplace.d.ts.map