@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
@@ -0,0 +1,111 @@
1
+ // ============================================
2
+ // Client-side API Error
3
+ // For use in mobile apps and admin panels (no Express dependency)
4
+ // ============================================
5
+ /**
6
+ * Client-side API error class.
7
+ * Used in mobile apps and admin panels to handle API errors.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * try {
12
+ * const user = await apiClient.get('/users/me');
13
+ * } catch (error) {
14
+ * if (error instanceof ClientApiError) {
15
+ * if (error.code === 'UNAUTHORIZED') {
16
+ * // Redirect to login
17
+ * } else if (error.code === 'VALIDATION_ERROR') {
18
+ * // Show field errors
19
+ * error.details?.forEach(d => setFieldError(d.field, d.message));
20
+ * }
21
+ * }
22
+ * }
23
+ * ```
24
+ */
25
+ export class ClientApiError extends Error {
26
+ /**
27
+ * HTTP status code (e.g., 400, 401, 404, 500)
28
+ */
29
+ statusCode;
30
+ /**
31
+ * Machine-readable error code
32
+ */
33
+ code;
34
+ /**
35
+ * Validation error details
36
+ */
37
+ details;
38
+ /**
39
+ * Original response body
40
+ */
41
+ response;
42
+ /**
43
+ * Whether this is a network error (no response from server)
44
+ */
45
+ isNetworkError;
46
+ constructor(statusCode, message, code = 'UNKNOWN_ERROR', details, response, isNetworkError = false) {
47
+ super(message);
48
+ this.statusCode = statusCode;
49
+ this.code = code;
50
+ this.details = details;
51
+ this.response = response;
52
+ this.isNetworkError = isNetworkError;
53
+ Object.setPrototypeOf(this, ClientApiError.prototype);
54
+ }
55
+ /**
56
+ * Create from API error response
57
+ */
58
+ static fromResponse(statusCode, response) {
59
+ return new ClientApiError(statusCode, response.error.message, response.error.code, response.error.details, response);
60
+ }
61
+ /**
62
+ * Create from network error (no response)
63
+ */
64
+ static networkError(message = 'Network error') {
65
+ return new ClientApiError(0, message, 'NETWORK_ERROR', undefined, undefined, true);
66
+ }
67
+ /**
68
+ * Create from timeout
69
+ */
70
+ static timeout(message = 'Request timed out') {
71
+ return new ClientApiError(0, message, 'TIMEOUT', undefined, undefined, true);
72
+ }
73
+ /**
74
+ * Check if error is a specific code
75
+ */
76
+ is(code) {
77
+ return this.code === code;
78
+ }
79
+ /**
80
+ * Check if error is authentication related
81
+ */
82
+ isAuthError() {
83
+ return this.code === 'UNAUTHORIZED' || this.code === 'FORBIDDEN';
84
+ }
85
+ /**
86
+ * Check if error is recoverable (can retry)
87
+ */
88
+ isRetryable() {
89
+ return (this.isNetworkError ||
90
+ this.code === 'TIMEOUT' ||
91
+ this.code === 'SERVICE_UNAVAILABLE' ||
92
+ this.code === 'RATE_LIMIT_EXCEEDED');
93
+ }
94
+ /**
95
+ * Get error message for a specific field
96
+ */
97
+ getFieldError(field) {
98
+ return this.details?.find((d) => d.field === field)?.message;
99
+ }
100
+ /**
101
+ * Get all field errors as a map
102
+ */
103
+ getFieldErrors() {
104
+ const errors = {};
105
+ this.details?.forEach((d) => {
106
+ errors[d.field] = d.message;
107
+ });
108
+ return errors;
109
+ }
110
+ }
111
+ //# sourceMappingURL=api-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-error.js","sourceRoot":"","sources":["../../src/client/api-error.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,wBAAwB;AACxB,kEAAkE;AAClE,+CAA+C;AA2C/C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,cAAe,SAAQ,KAAK;IACvC;;OAEG;IACa,UAAU,CAAS;IAEnC;;OAEG;IACa,IAAI,CAAqB;IAEzC;;OAEG;IACa,OAAO,CAA2B;IAElD;;OAEG;IACa,QAAQ,CAAoB;IAE5C;;OAEG;IACa,cAAc,CAAU;IAExC,YACE,UAAkB,EAClB,OAAe,EACf,OAA2B,eAAe,EAC1C,OAAiC,EACjC,QAA2B,EAC3B,iBAA0B,KAAK;QAE/B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAkB,EAAE,QAA0B;QAChE,OAAO,IAAI,cAAc,CACvB,UAAU,EACV,QAAQ,CAAC,KAAK,CAAC,OAAO,EACtB,QAAQ,CAAC,KAAK,CAAC,IAAI,EACnB,QAAQ,CAAC,KAAK,CAAC,OAAO,EACtB,QAAQ,CACT,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAkB,eAAe;QACnD,OAAO,IAAI,cAAc,CAAC,CAAC,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Default timeout in milliseconds */
8
+ readonly DEFAULT_TIMEOUT: 30000;
9
+ /** Max retries for failed requests */
10
+ readonly MAX_RETRIES: 3;
11
+ /** Retry delay in milliseconds */
12
+ readonly RETRY_DELAY: 1000;
13
+ };
14
+ /**
15
+ * Build full API URL
16
+ */
17
+ export declare function buildApiUrl(baseUrl: string, path: string): string;
18
+ /**
19
+ * Authentication endpoints
20
+ */
21
+ export declare const AUTH_ENDPOINTS: {
22
+ /** POST - Login with Firebase token */
23
+ readonly LOGIN: "/auth/login";
24
+ /** POST - Logout */
25
+ readonly LOGOUT: "/auth/logout";
26
+ /** POST - Refresh access token */
27
+ readonly REFRESH: "/auth/refresh";
28
+ /** GET - Get current session */
29
+ readonly SESSION: "/auth/session";
30
+ /** POST - Request password reset */
31
+ readonly FORGOT_PASSWORD: "/auth/forgot-password";
32
+ /** POST - Reset password with token */
33
+ readonly RESET_PASSWORD: "/auth/reset-password";
34
+ /** POST - Verify email */
35
+ readonly VERIFY_EMAIL: "/auth/verify-email";
36
+ /** POST - Resend verification email */
37
+ readonly RESEND_VERIFICATION: "/auth/resend-verification";
38
+ /** DELETE - Delete account */
39
+ readonly DELETE_ACCOUNT: "/auth/delete-account";
40
+ };
41
+ /**
42
+ * Account endpoints
43
+ */
44
+ export declare const ACCOUNT_ENDPOINTS: {
45
+ /** GET - Get current account */
46
+ readonly ME: "/accounts/me";
47
+ /** PUT - Update account */
48
+ readonly UPDATE: "/accounts/me";
49
+ /** GET - Get account settings */
50
+ readonly SETTINGS: "/accounts/me/settings";
51
+ /** PUT - Update account settings */
52
+ readonly UPDATE_SETTINGS: "/accounts/me/settings";
53
+ /** GET - Get account notifications */
54
+ readonly NOTIFICATIONS: "/accounts/me/notifications";
55
+ /** PUT - Mark notifications read */
56
+ readonly MARK_NOTIFICATIONS_READ: "/accounts/me/notifications/read";
57
+ /** GET - Get linked profiles */
58
+ readonly PROFILES: "/accounts/me/profiles";
59
+ /** POST - Register push token */
60
+ readonly PUSH_TOKEN: "/accounts/me/push-token";
61
+ };
62
+ /**
63
+ * Profile endpoints
64
+ */
65
+ export declare const PROFILE_ENDPOINTS: {
66
+ /** GET - Get current profile */
67
+ readonly ME: "/profiles/me";
68
+ /** POST - Create profile */
69
+ readonly CREATE: "/profiles";
70
+ /** PUT - Update profile */
71
+ readonly UPDATE: "/profiles/me";
72
+ /** GET - Get profile by ID */
73
+ readonly GET: (id: string) => string;
74
+ /** GET - Search profiles */
75
+ readonly SEARCH: "/profiles/search";
76
+ /** GET - Get recommended profiles */
77
+ readonly RECOMMENDATIONS: "/profiles/recommendations";
78
+ /** POST - Upload photo */
79
+ readonly UPLOAD_PHOTO: "/profiles/me/photos";
80
+ /** DELETE - Delete photo */
81
+ readonly DELETE_PHOTO: (photoId: string) => string;
82
+ /** PUT - Reorder photos */
83
+ readonly REORDER_PHOTOS: "/profiles/me/photos/reorder";
84
+ /** PUT - Set primary photo */
85
+ readonly SET_PRIMARY_PHOTO: (photoId: string) => string;
86
+ /** GET - Get profile views */
87
+ readonly VIEWS: "/profiles/me/views";
88
+ /** GET - Get who viewed me */
89
+ readonly WHO_VIEWED_ME: "/profiles/me/who-viewed";
90
+ /** POST - Block profile */
91
+ readonly BLOCK: (id: string) => string;
92
+ /** DELETE - Unblock profile */
93
+ readonly UNBLOCK: (id: string) => string;
94
+ /** GET - Get blocked profiles */
95
+ readonly BLOCKED: "/profiles/me/blocked";
96
+ };
97
+ /**
98
+ * Match endpoints
99
+ */
100
+ export declare const MATCH_ENDPOINTS: {
101
+ /** GET - Get all matches */
102
+ readonly LIST: "/matches";
103
+ /** GET - Get match by ID */
104
+ readonly GET: (id: string) => string;
105
+ /** POST - End match */
106
+ readonly END: (id: string) => string;
107
+ /** POST - Mark match as success */
108
+ readonly SUCCESS: (id: string) => string;
109
+ /** GET - Get match statistics */
110
+ readonly STATS: "/matches/stats";
111
+ };
112
+ /**
113
+ * Interest endpoints
114
+ */
115
+ export declare const INTEREST_ENDPOINTS: {
116
+ /** POST - Send interest */
117
+ readonly SEND: "/interests";
118
+ /** GET - Get sent interests */
119
+ readonly SENT: "/interests/sent";
120
+ /** GET - Get received interests */
121
+ readonly RECEIVED: "/interests/received";
122
+ /** PUT - Respond to interest */
123
+ readonly RESPOND: (id: string) => string;
124
+ /** DELETE - Withdraw interest */
125
+ readonly WITHDRAW: (id: string) => string;
126
+ /** GET - Check interest status */
127
+ readonly STATUS: (profileId: string) => string;
128
+ };
129
+ /**
130
+ * Chat endpoints
131
+ */
132
+ export declare const CHAT_ENDPOINTS: {
133
+ /** GET - Get all chats */
134
+ readonly LIST: "/chats";
135
+ /** GET - Get chat by ID */
136
+ readonly GET: (id: string) => string;
137
+ /** GET - Get chat messages */
138
+ readonly MESSAGES: (chatId: string) => string;
139
+ /** POST - Send message */
140
+ readonly SEND_MESSAGE: (chatId: string) => string;
141
+ /** PUT - Mark messages as read */
142
+ readonly MARK_READ: (chatId: string) => string;
143
+ /** DELETE - Delete message */
144
+ readonly DELETE_MESSAGE: (chatId: string, messageId: string) => string;
145
+ /** POST - Upload chat image */
146
+ readonly UPLOAD_IMAGE: (chatId: string) => string;
147
+ };
148
+ /**
149
+ * Verification endpoints
150
+ */
151
+ export declare const VERIFICATION_ENDPOINTS: {
152
+ /** GET - Get verification status */
153
+ readonly STATUS: "/verification/status";
154
+ /** POST - Submit verification */
155
+ readonly SUBMIT: "/verification/submit";
156
+ /** POST - Upload document */
157
+ readonly UPLOAD_DOCUMENT: "/verification/documents";
158
+ /** POST - Upload selfie */
159
+ readonly UPLOAD_SELFIE: "/verification/selfie";
160
+ };
161
+ /**
162
+ * Subscription endpoints
163
+ */
164
+ export declare const SUBSCRIPTION_ENDPOINTS: {
165
+ /** GET - Get current subscription */
166
+ readonly CURRENT: "/subscriptions/current";
167
+ /** GET - Get available plans */
168
+ readonly PLANS: "/subscriptions/plans";
169
+ /** POST - Create subscription */
170
+ readonly CREATE: "/subscriptions";
171
+ /** PUT - Update subscription */
172
+ readonly UPDATE: "/subscriptions/current";
173
+ /** DELETE - Cancel subscription */
174
+ readonly CANCEL: "/subscriptions/current";
175
+ /** POST - Restore purchase */
176
+ readonly RESTORE: "/subscriptions/restore";
177
+ /** POST - Apply promo code */
178
+ readonly APPLY_PROMO: "/subscriptions/promo";
179
+ /** GET - Get purchase history */
180
+ readonly HISTORY: "/subscriptions/history";
181
+ };
182
+ /**
183
+ * Company (TMC) endpoints
184
+ */
185
+ export declare const COMPANY_ENDPOINTS: {
186
+ /** POST - Apply as TMC */
187
+ readonly APPLY: "/companies/apply";
188
+ /** GET - Get my company */
189
+ readonly ME: "/companies/me";
190
+ /** PUT - Update company */
191
+ readonly UPDATE: "/companies/me";
192
+ /** GET - Get company by ID */
193
+ readonly GET: (id: string) => string;
194
+ /** GET - Search companies */
195
+ readonly SEARCH: "/companies/search";
196
+ /** GET - Get company team */
197
+ readonly TEAM: "/companies/me/team";
198
+ /** POST - Invite team member */
199
+ readonly INVITE_MEMBER: "/companies/me/team/invite";
200
+ /** DELETE - Remove team member */
201
+ readonly REMOVE_MEMBER: (memberId: string) => string;
202
+ /** GET - Get company analytics */
203
+ readonly ANALYTICS: "/companies/me/analytics";
204
+ /** GET - Get assigned profiles */
205
+ readonly PROFILES: "/companies/me/profiles";
206
+ };
207
+ /**
208
+ * Marketplace endpoints
209
+ */
210
+ export declare const MARKETPLACE_ENDPOINTS: {
211
+ /** GET - Get listings */
212
+ readonly LISTINGS: "/marketplace/listings";
213
+ /** GET - Get listing by ID */
214
+ readonly LISTING: (id: string) => string;
215
+ /** POST - Create listing */
216
+ readonly CREATE_LISTING: "/marketplace/listings";
217
+ /** PUT - Update listing */
218
+ readonly UPDATE_LISTING: (id: string) => string;
219
+ /** GET - Get requirements */
220
+ readonly REQUIREMENTS: "/marketplace/requirements";
221
+ /** GET - Get requirement by ID */
222
+ readonly REQUIREMENT: (id: string) => string;
223
+ /** POST - Create requirement */
224
+ readonly CREATE_REQUIREMENT: "/marketplace/requirements";
225
+ /** GET - Get proposals */
226
+ readonly PROPOSALS: "/marketplace/proposals";
227
+ /** POST - Submit proposal */
228
+ readonly SUBMIT_PROPOSAL: "/marketplace/proposals";
229
+ /** PUT - Respond to proposal */
230
+ readonly RESPOND_PROPOSAL: (id: string) => string;
231
+ /** GET - Get contracts */
232
+ readonly CONTRACTS: "/marketplace/contracts";
233
+ /** GET - Get contract by ID */
234
+ readonly CONTRACT: (id: string) => string;
235
+ /** PUT - Update milestone */
236
+ readonly UPDATE_MILESTONE: (contractId: string, milestoneId: string) => string;
237
+ /** POST - Open dispute */
238
+ readonly OPEN_DISPUTE: (contractId: string) => string;
239
+ };
240
+ /**
241
+ * Flag/Report endpoints
242
+ */
243
+ export declare const FLAG_ENDPOINTS: {
244
+ /** POST - Report profile */
245
+ readonly REPORT_PROFILE: (profileId: string) => string;
246
+ /** POST - Report message */
247
+ readonly REPORT_MESSAGE: (chatId: string, messageId: string) => string;
248
+ /** POST - Report company */
249
+ readonly REPORT_COMPANY: (companyId: string) => string;
250
+ };
251
+ /**
252
+ * Notification endpoints
253
+ */
254
+ export declare const NOTIFICATION_ENDPOINTS: {
255
+ /** GET - Get notifications */
256
+ readonly LIST: "/notifications";
257
+ /** PUT - Mark as read */
258
+ readonly MARK_READ: (id: string) => string;
259
+ /** PUT - Mark all as read */
260
+ readonly MARK_ALL_READ: "/notifications/read-all";
261
+ /** DELETE - Delete notification */
262
+ readonly DELETE: (id: string) => string;
263
+ /** GET - Get unread count */
264
+ readonly UNREAD_COUNT: "/notifications/unread-count";
265
+ };
266
+ /**
267
+ * Settings endpoints
268
+ */
269
+ export declare const SETTINGS_ENDPOINTS: {
270
+ /** GET - Get app settings */
271
+ readonly APP: "/settings/app";
272
+ /** GET - Get notification preferences */
273
+ readonly NOTIFICATIONS: "/settings/notifications";
274
+ /** PUT - Update notification preferences */
275
+ readonly UPDATE_NOTIFICATIONS: "/settings/notifications";
276
+ /** GET - Get privacy settings */
277
+ readonly PRIVACY: "/settings/privacy";
278
+ /** PUT - Update privacy settings */
279
+ readonly UPDATE_PRIVACY: "/settings/privacy";
280
+ };
281
+ /**
282
+ * All endpoints grouped
283
+ */
284
+ export declare const ENDPOINTS: {
285
+ readonly AUTH: {
286
+ /** POST - Login with Firebase token */
287
+ readonly LOGIN: "/auth/login";
288
+ /** POST - Logout */
289
+ readonly LOGOUT: "/auth/logout";
290
+ /** POST - Refresh access token */
291
+ readonly REFRESH: "/auth/refresh";
292
+ /** GET - Get current session */
293
+ readonly SESSION: "/auth/session";
294
+ /** POST - Request password reset */
295
+ readonly FORGOT_PASSWORD: "/auth/forgot-password";
296
+ /** POST - Reset password with token */
297
+ readonly RESET_PASSWORD: "/auth/reset-password";
298
+ /** POST - Verify email */
299
+ readonly VERIFY_EMAIL: "/auth/verify-email";
300
+ /** POST - Resend verification email */
301
+ readonly RESEND_VERIFICATION: "/auth/resend-verification";
302
+ /** DELETE - Delete account */
303
+ readonly DELETE_ACCOUNT: "/auth/delete-account";
304
+ };
305
+ readonly ACCOUNT: {
306
+ /** GET - Get current account */
307
+ readonly ME: "/accounts/me";
308
+ /** PUT - Update account */
309
+ readonly UPDATE: "/accounts/me";
310
+ /** GET - Get account settings */
311
+ readonly SETTINGS: "/accounts/me/settings";
312
+ /** PUT - Update account settings */
313
+ readonly UPDATE_SETTINGS: "/accounts/me/settings";
314
+ /** GET - Get account notifications */
315
+ readonly NOTIFICATIONS: "/accounts/me/notifications";
316
+ /** PUT - Mark notifications read */
317
+ readonly MARK_NOTIFICATIONS_READ: "/accounts/me/notifications/read";
318
+ /** GET - Get linked profiles */
319
+ readonly PROFILES: "/accounts/me/profiles";
320
+ /** POST - Register push token */
321
+ readonly PUSH_TOKEN: "/accounts/me/push-token";
322
+ };
323
+ readonly PROFILE: {
324
+ /** GET - Get current profile */
325
+ readonly ME: "/profiles/me";
326
+ /** POST - Create profile */
327
+ readonly CREATE: "/profiles";
328
+ /** PUT - Update profile */
329
+ readonly UPDATE: "/profiles/me";
330
+ /** GET - Get profile by ID */
331
+ readonly GET: (id: string) => string;
332
+ /** GET - Search profiles */
333
+ readonly SEARCH: "/profiles/search";
334
+ /** GET - Get recommended profiles */
335
+ readonly RECOMMENDATIONS: "/profiles/recommendations";
336
+ /** POST - Upload photo */
337
+ readonly UPLOAD_PHOTO: "/profiles/me/photos";
338
+ /** DELETE - Delete photo */
339
+ readonly DELETE_PHOTO: (photoId: string) => string;
340
+ /** PUT - Reorder photos */
341
+ readonly REORDER_PHOTOS: "/profiles/me/photos/reorder";
342
+ /** PUT - Set primary photo */
343
+ readonly SET_PRIMARY_PHOTO: (photoId: string) => string;
344
+ /** GET - Get profile views */
345
+ readonly VIEWS: "/profiles/me/views";
346
+ /** GET - Get who viewed me */
347
+ readonly WHO_VIEWED_ME: "/profiles/me/who-viewed";
348
+ /** POST - Block profile */
349
+ readonly BLOCK: (id: string) => string;
350
+ /** DELETE - Unblock profile */
351
+ readonly UNBLOCK: (id: string) => string;
352
+ /** GET - Get blocked profiles */
353
+ readonly BLOCKED: "/profiles/me/blocked";
354
+ };
355
+ readonly MATCH: {
356
+ /** GET - Get all matches */
357
+ readonly LIST: "/matches";
358
+ /** GET - Get match by ID */
359
+ readonly GET: (id: string) => string;
360
+ /** POST - End match */
361
+ readonly END: (id: string) => string;
362
+ /** POST - Mark match as success */
363
+ readonly SUCCESS: (id: string) => string;
364
+ /** GET - Get match statistics */
365
+ readonly STATS: "/matches/stats";
366
+ };
367
+ readonly INTEREST: {
368
+ /** POST - Send interest */
369
+ readonly SEND: "/interests";
370
+ /** GET - Get sent interests */
371
+ readonly SENT: "/interests/sent";
372
+ /** GET - Get received interests */
373
+ readonly RECEIVED: "/interests/received";
374
+ /** PUT - Respond to interest */
375
+ readonly RESPOND: (id: string) => string;
376
+ /** DELETE - Withdraw interest */
377
+ readonly WITHDRAW: (id: string) => string;
378
+ /** GET - Check interest status */
379
+ readonly STATUS: (profileId: string) => string;
380
+ };
381
+ readonly CHAT: {
382
+ /** GET - Get all chats */
383
+ readonly LIST: "/chats";
384
+ /** GET - Get chat by ID */
385
+ readonly GET: (id: string) => string;
386
+ /** GET - Get chat messages */
387
+ readonly MESSAGES: (chatId: string) => string;
388
+ /** POST - Send message */
389
+ readonly SEND_MESSAGE: (chatId: string) => string;
390
+ /** PUT - Mark messages as read */
391
+ readonly MARK_READ: (chatId: string) => string;
392
+ /** DELETE - Delete message */
393
+ readonly DELETE_MESSAGE: (chatId: string, messageId: string) => string;
394
+ /** POST - Upload chat image */
395
+ readonly UPLOAD_IMAGE: (chatId: string) => string;
396
+ };
397
+ readonly VERIFICATION: {
398
+ /** GET - Get verification status */
399
+ readonly STATUS: "/verification/status";
400
+ /** POST - Submit verification */
401
+ readonly SUBMIT: "/verification/submit";
402
+ /** POST - Upload document */
403
+ readonly UPLOAD_DOCUMENT: "/verification/documents";
404
+ /** POST - Upload selfie */
405
+ readonly UPLOAD_SELFIE: "/verification/selfie";
406
+ };
407
+ readonly SUBSCRIPTION: {
408
+ /** GET - Get current subscription */
409
+ readonly CURRENT: "/subscriptions/current";
410
+ /** GET - Get available plans */
411
+ readonly PLANS: "/subscriptions/plans";
412
+ /** POST - Create subscription */
413
+ readonly CREATE: "/subscriptions";
414
+ /** PUT - Update subscription */
415
+ readonly UPDATE: "/subscriptions/current";
416
+ /** DELETE - Cancel subscription */
417
+ readonly CANCEL: "/subscriptions/current";
418
+ /** POST - Restore purchase */
419
+ readonly RESTORE: "/subscriptions/restore";
420
+ /** POST - Apply promo code */
421
+ readonly APPLY_PROMO: "/subscriptions/promo";
422
+ /** GET - Get purchase history */
423
+ readonly HISTORY: "/subscriptions/history";
424
+ };
425
+ readonly COMPANY: {
426
+ /** POST - Apply as TMC */
427
+ readonly APPLY: "/companies/apply";
428
+ /** GET - Get my company */
429
+ readonly ME: "/companies/me";
430
+ /** PUT - Update company */
431
+ readonly UPDATE: "/companies/me";
432
+ /** GET - Get company by ID */
433
+ readonly GET: (id: string) => string;
434
+ /** GET - Search companies */
435
+ readonly SEARCH: "/companies/search";
436
+ /** GET - Get company team */
437
+ readonly TEAM: "/companies/me/team";
438
+ /** POST - Invite team member */
439
+ readonly INVITE_MEMBER: "/companies/me/team/invite";
440
+ /** DELETE - Remove team member */
441
+ readonly REMOVE_MEMBER: (memberId: string) => string;
442
+ /** GET - Get company analytics */
443
+ readonly ANALYTICS: "/companies/me/analytics";
444
+ /** GET - Get assigned profiles */
445
+ readonly PROFILES: "/companies/me/profiles";
446
+ };
447
+ readonly MARKETPLACE: {
448
+ /** GET - Get listings */
449
+ readonly LISTINGS: "/marketplace/listings";
450
+ /** GET - Get listing by ID */
451
+ readonly LISTING: (id: string) => string;
452
+ /** POST - Create listing */
453
+ readonly CREATE_LISTING: "/marketplace/listings";
454
+ /** PUT - Update listing */
455
+ readonly UPDATE_LISTING: (id: string) => string;
456
+ /** GET - Get requirements */
457
+ readonly REQUIREMENTS: "/marketplace/requirements";
458
+ /** GET - Get requirement by ID */
459
+ readonly REQUIREMENT: (id: string) => string;
460
+ /** POST - Create requirement */
461
+ readonly CREATE_REQUIREMENT: "/marketplace/requirements";
462
+ /** GET - Get proposals */
463
+ readonly PROPOSALS: "/marketplace/proposals";
464
+ /** POST - Submit proposal */
465
+ readonly SUBMIT_PROPOSAL: "/marketplace/proposals";
466
+ /** PUT - Respond to proposal */
467
+ readonly RESPOND_PROPOSAL: (id: string) => string;
468
+ /** GET - Get contracts */
469
+ readonly CONTRACTS: "/marketplace/contracts";
470
+ /** GET - Get contract by ID */
471
+ readonly CONTRACT: (id: string) => string;
472
+ /** PUT - Update milestone */
473
+ readonly UPDATE_MILESTONE: (contractId: string, milestoneId: string) => string;
474
+ /** POST - Open dispute */
475
+ readonly OPEN_DISPUTE: (contractId: string) => string;
476
+ };
477
+ readonly FLAG: {
478
+ /** POST - Report profile */
479
+ readonly REPORT_PROFILE: (profileId: string) => string;
480
+ /** POST - Report message */
481
+ readonly REPORT_MESSAGE: (chatId: string, messageId: string) => string;
482
+ /** POST - Report company */
483
+ readonly REPORT_COMPANY: (companyId: string) => string;
484
+ };
485
+ readonly NOTIFICATION: {
486
+ /** GET - Get notifications */
487
+ readonly LIST: "/notifications";
488
+ /** PUT - Mark as read */
489
+ readonly MARK_READ: (id: string) => string;
490
+ /** PUT - Mark all as read */
491
+ readonly MARK_ALL_READ: "/notifications/read-all";
492
+ /** DELETE - Delete notification */
493
+ readonly DELETE: (id: string) => string;
494
+ /** GET - Get unread count */
495
+ readonly UNREAD_COUNT: "/notifications/unread-count";
496
+ };
497
+ readonly SETTINGS: {
498
+ /** GET - Get app settings */
499
+ readonly APP: "/settings/app";
500
+ /** GET - Get notification preferences */
501
+ readonly NOTIFICATIONS: "/settings/notifications";
502
+ /** PUT - Update notification preferences */
503
+ readonly UPDATE_NOTIFICATIONS: "/settings/notifications";
504
+ /** GET - Get privacy settings */
505
+ readonly PRIVACY: "/settings/privacy";
506
+ /** PUT - Update privacy settings */
507
+ readonly UPDATE_PRIVACY: "/settings/privacy";
508
+ };
509
+ };
510
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/client/endpoints.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,UAAU;IACrB,0BAA0B;;IAE1B,sCAAsC;;IAEtC,sCAAsC;;IAEtC,kCAAkC;;CAE1B,CAAC;AAEX;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAIjE;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB,uCAAuC;;IAEvC,oBAAoB;;IAEpB,kCAAkC;;IAElC,gCAAgC;;IAEhC,oCAAoC;;IAEpC,uCAAuC;;IAEvC,0BAA0B;;IAE1B,uCAAuC;;IAEvC,8BAA8B;;CAEtB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,gCAAgC;;IAEhC,2BAA2B;;IAE3B,iCAAiC;;IAEjC,oCAAoC;;IAEpC,sCAAsC;;IAE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