digital-tools 2.1.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +2 -0
  3. package/dist/client.d.ts +109 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +69 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/define.d.ts +2 -2
  8. package/dist/define.d.ts.map +1 -1
  9. package/dist/define.js +22 -20
  10. package/dist/define.js.map +1 -1
  11. package/dist/function-ref.d.ts +229 -0
  12. package/dist/function-ref.d.ts.map +1 -0
  13. package/dist/function-ref.js +28 -0
  14. package/dist/function-ref.js.map +1 -0
  15. package/dist/function-sugar.d.ts +57 -0
  16. package/dist/function-sugar.d.ts.map +1 -0
  17. package/dist/function-sugar.js +79 -0
  18. package/dist/function-sugar.js.map +1 -0
  19. package/dist/index.d.ts +10 -3
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +24 -4
  22. package/dist/index.js.map +1 -1
  23. package/dist/providers/analytics/mixpanel.d.ts.map +1 -1
  24. package/dist/providers/analytics/mixpanel.js +21 -18
  25. package/dist/providers/analytics/mixpanel.js.map +1 -1
  26. package/dist/providers/calendar/cal-com.d.ts.map +1 -1
  27. package/dist/providers/calendar/cal-com.js +10 -10
  28. package/dist/providers/calendar/cal-com.js.map +1 -1
  29. package/dist/providers/calendar/google-calendar.d.ts.map +1 -1
  30. package/dist/providers/calendar/google-calendar.js +4 -4
  31. package/dist/providers/calendar/google-calendar.js.map +1 -1
  32. package/dist/providers/crm/hubspot.d.ts.map +1 -1
  33. package/dist/providers/crm/hubspot.js +107 -85
  34. package/dist/providers/crm/hubspot.js.map +1 -1
  35. package/dist/providers/development/github.d.ts.map +1 -1
  36. package/dist/providers/development/github.js +40 -43
  37. package/dist/providers/development/github.js.map +1 -1
  38. package/dist/providers/ecommerce/shopify.d.ts.map +1 -1
  39. package/dist/providers/ecommerce/shopify.js +79 -62
  40. package/dist/providers/ecommerce/shopify.js.map +1 -1
  41. package/dist/providers/email/resend.d.ts.map +1 -1
  42. package/dist/providers/email/resend.js +20 -16
  43. package/dist/providers/email/resend.js.map +1 -1
  44. package/dist/providers/email/sendgrid.d.ts.map +1 -1
  45. package/dist/providers/email/sendgrid.js +12 -9
  46. package/dist/providers/email/sendgrid.js.map +1 -1
  47. package/dist/providers/finance/stripe.d.ts.map +1 -1
  48. package/dist/providers/finance/stripe.js +44 -42
  49. package/dist/providers/finance/stripe.js.map +1 -1
  50. package/dist/providers/forms/typeform.d.ts.map +1 -1
  51. package/dist/providers/forms/typeform.js +68 -58
  52. package/dist/providers/forms/typeform.js.map +1 -1
  53. package/dist/providers/knowledge/notion.d.ts.map +1 -1
  54. package/dist/providers/knowledge/notion.js +75 -41
  55. package/dist/providers/knowledge/notion.js.map +1 -1
  56. package/dist/providers/marketing/mailchimp.d.ts.map +1 -1
  57. package/dist/providers/marketing/mailchimp.js +74 -61
  58. package/dist/providers/marketing/mailchimp.js.map +1 -1
  59. package/dist/providers/media/cloudinary.d.ts.map +1 -1
  60. package/dist/providers/media/cloudinary.js +30 -28
  61. package/dist/providers/media/cloudinary.js.map +1 -1
  62. package/dist/providers/messaging/slack.d.ts.map +1 -1
  63. package/dist/providers/messaging/slack.js +75 -58
  64. package/dist/providers/messaging/slack.js.map +1 -1
  65. package/dist/providers/messaging/twilio-sms.d.ts.map +1 -1
  66. package/dist/providers/messaging/twilio-sms.js +33 -15
  67. package/dist/providers/messaging/twilio-sms.js.map +1 -1
  68. package/dist/providers/project-management/linear.d.ts.map +1 -1
  69. package/dist/providers/project-management/linear.js +31 -27
  70. package/dist/providers/project-management/linear.js.map +1 -1
  71. package/dist/providers/spreadsheet/google-sheets.d.ts.map +1 -1
  72. package/dist/providers/spreadsheet/google-sheets.js +21 -18
  73. package/dist/providers/spreadsheet/google-sheets.js.map +1 -1
  74. package/dist/providers/spreadsheet/xlsx.d.ts.map +1 -1
  75. package/dist/providers/spreadsheet/xlsx.js +4 -4
  76. package/dist/providers/spreadsheet/xlsx.js.map +1 -1
  77. package/dist/providers/storage/index.js +1 -0
  78. package/dist/providers/storage/index.js.map +1 -1
  79. package/dist/providers/storage/s3.d.ts.map +1 -1
  80. package/dist/providers/storage/s3.js +36 -27
  81. package/dist/providers/storage/s3.js.map +1 -1
  82. package/dist/providers/support/zendesk.d.ts.map +1 -1
  83. package/dist/providers/support/zendesk.js +24 -25
  84. package/dist/providers/support/zendesk.js.map +1 -1
  85. package/dist/providers/tasks/todoist.d.ts.map +1 -1
  86. package/dist/providers/tasks/todoist.js +18 -18
  87. package/dist/providers/tasks/todoist.js.map +1 -1
  88. package/dist/providers/video-conferencing/google-meet.d.ts.map +1 -1
  89. package/dist/providers/video-conferencing/google-meet.js +11 -11
  90. package/dist/providers/video-conferencing/google-meet.js.map +1 -1
  91. package/dist/providers/video-conferencing/jitsi.js +14 -14
  92. package/dist/providers/video-conferencing/jitsi.js.map +1 -1
  93. package/dist/providers/video-conferencing/teams.d.ts.map +1 -1
  94. package/dist/providers/video-conferencing/teams.js +9 -7
  95. package/dist/providers/video-conferencing/teams.js.map +1 -1
  96. package/dist/providers/video-conferencing/zoom.d.ts.map +1 -1
  97. package/dist/providers/video-conferencing/zoom.js +26 -24
  98. package/dist/providers/video-conferencing/zoom.js.map +1 -1
  99. package/dist/tools/data.d.ts.map +1 -1
  100. package/dist/tools/data.js +5 -12
  101. package/dist/tools/data.js.map +1 -1
  102. package/dist/tools/index.d.ts +1 -0
  103. package/dist/tools/index.d.ts.map +1 -1
  104. package/dist/tools/index.js +1 -0
  105. package/dist/tools/index.js.map +1 -1
  106. package/dist/tools/system.d.ts +289 -0
  107. package/dist/tools/system.d.ts.map +1 -0
  108. package/dist/tools/system.js +752 -0
  109. package/dist/tools/system.js.map +1 -0
  110. package/dist/tools/web.d.ts.map +1 -1
  111. package/dist/tools/web.js +22 -10
  112. package/dist/tools/web.js.map +1 -1
  113. package/dist/track-record.d.ts +101 -0
  114. package/dist/track-record.d.ts.map +1 -0
  115. package/dist/track-record.js +17 -0
  116. package/dist/track-record.js.map +1 -0
  117. package/dist/types.d.ts +210 -9
  118. package/dist/types.d.ts.map +1 -1
  119. package/dist/verb-registration.d.ts +122 -0
  120. package/dist/verb-registration.d.ts.map +1 -0
  121. package/dist/verb-registration.js +176 -0
  122. package/dist/verb-registration.js.map +1 -0
  123. package/dist/worker.d.ts +93 -0
  124. package/dist/worker.d.ts.map +1 -0
  125. package/dist/worker.js +315 -0
  126. package/dist/worker.js.map +1 -0
  127. package/dist/wrap.d.ts +89 -0
  128. package/dist/wrap.d.ts.map +1 -0
  129. package/dist/wrap.js +225 -0
  130. package/dist/wrap.js.map +1 -0
  131. package/package.json +21 -4
  132. package/src/client.ts +136 -0
  133. package/src/define.ts +31 -37
  134. package/src/function-ref.ts +264 -0
  135. package/src/function-sugar.ts +134 -0
  136. package/src/index.ts +132 -10
  137. package/src/providers/analytics/mixpanel.ts +19 -18
  138. package/src/providers/calendar/cal-com.ts +29 -18
  139. package/src/providers/calendar/google-calendar.ts +20 -14
  140. package/src/providers/crm/hubspot.ts +225 -99
  141. package/src/providers/development/github.ts +206 -135
  142. package/src/providers/ecommerce/shopify.ts +250 -89
  143. package/src/providers/email/resend.ts +101 -28
  144. package/src/providers/email/sendgrid.ts +12 -9
  145. package/src/providers/finance/stripe.ts +128 -49
  146. package/src/providers/forms/typeform.ts +74 -58
  147. package/src/providers/knowledge/notion.ts +340 -88
  148. package/src/providers/marketing/mailchimp.ts +86 -70
  149. package/src/providers/media/cloudinary.ts +99 -41
  150. package/src/providers/messaging/slack.ts +283 -85
  151. package/src/providers/messaging/twilio-sms.ts +35 -15
  152. package/src/providers/project-management/linear.ts +143 -55
  153. package/src/providers/spreadsheet/google-sheets.ts +222 -56
  154. package/src/providers/spreadsheet/xlsx.ts +47 -16
  155. package/src/providers/storage/s3.ts +119 -47
  156. package/src/providers/support/zendesk.ts +196 -46
  157. package/src/providers/tasks/todoist.ts +20 -26
  158. package/src/providers/video-conferencing/google-meet.ts +17 -20
  159. package/src/providers/video-conferencing/jitsi.ts +14 -14
  160. package/src/providers/video-conferencing/teams.ts +14 -13
  161. package/src/providers/video-conferencing/zoom.ts +54 -49
  162. package/src/tools/data.ts +6 -16
  163. package/src/tools/index.ts +1 -0
  164. package/src/tools/system.ts +887 -0
  165. package/src/tools/web.ts +22 -10
  166. package/src/track-record.ts +106 -0
  167. package/src/types.ts +241 -13
  168. package/src/verb-registration.ts +197 -0
  169. package/src/worker.ts +370 -0
  170. package/src/wrap.ts +260 -0
  171. package/test/client.test.ts +146 -0
  172. package/test/communication-tools-extended.test.ts +734 -0
  173. package/test/data-tools-extended.test.ts +743 -0
  174. package/test/define-extended.test.ts +819 -0
  175. package/test/define.test.ts +150 -41
  176. package/test/entities.test.ts +623 -0
  177. package/test/extended-entities.test.ts +1228 -0
  178. package/test/provider-implementations.test.ts +725 -0
  179. package/test/provider-registry-extended.test.ts +583 -0
  180. package/test/providers/google-sheets.test.ts +851 -0
  181. package/test/providers/helpers.ts +554 -0
  182. package/test/providers/hubspot.test.ts +576 -0
  183. package/test/providers/slack.test.ts +932 -0
  184. package/test/providers/stripe.test.ts +701 -0
  185. package/test/providers.test.ts +578 -0
  186. package/test/system-tools-extended.test.ts +632 -0
  187. package/test/system.test.ts +673 -0
  188. package/test/tools.test.ts +15 -11
  189. package/test/types.test.ts +402 -0
  190. package/test/verb-registration.test.ts +395 -0
  191. package/test/web-tools.test.ts +553 -0
  192. package/test/worker-extended.test.ts +699 -0
  193. package/test/worker.test.ts +576 -0
  194. package/test/wrap.test.ts +366 -0
  195. package/tsconfig.json +3 -13
  196. package/vitest.config.ts +37 -0
  197. package/wrangler.jsonc +9 -0
  198. package/.turbo/turbo-build.log +0 -5
  199. package/dist/providers/voice/vapi.d.ts +0 -27
  200. package/dist/providers/voice/vapi.d.ts.map +0 -1
  201. package/dist/providers/voice/vapi.js +0 -440
  202. package/dist/providers/voice/vapi.js.map +0 -1
  203. package/src/define.js +0 -267
  204. package/src/entities/advertising.js +0 -999
  205. package/src/entities/ai.js +0 -756
  206. package/src/entities/analytics.js +0 -1588
  207. package/src/entities/automation.js +0 -601
  208. package/src/entities/communication.js +0 -1150
  209. package/src/entities/crm.js +0 -1386
  210. package/src/entities/design.js +0 -546
  211. package/src/entities/development.js +0 -2212
  212. package/src/entities/document.js +0 -874
  213. package/src/entities/ecommerce.js +0 -1429
  214. package/src/entities/experiment.js +0 -1039
  215. package/src/entities/finance.js +0 -3478
  216. package/src/entities/forms.js +0 -1892
  217. package/src/entities/hr.js +0 -661
  218. package/src/entities/identity.js +0 -997
  219. package/src/entities/index.js +0 -282
  220. package/src/entities/infrastructure.js +0 -1153
  221. package/src/entities/knowledge.js +0 -1438
  222. package/src/entities/marketing.js +0 -1610
  223. package/src/entities/media.js +0 -1634
  224. package/src/entities/notification.js +0 -1199
  225. package/src/entities/presentation.js +0 -1274
  226. package/src/entities/productivity.js +0 -1317
  227. package/src/entities/project-management.js +0 -1136
  228. package/src/entities/recruiting.js +0 -736
  229. package/src/entities/shipping.js +0 -509
  230. package/src/entities/signature.js +0 -1102
  231. package/src/entities/site.js +0 -222
  232. package/src/entities/spreadsheet.js +0 -1341
  233. package/src/entities/storage.js +0 -1198
  234. package/src/entities/support.js +0 -1166
  235. package/src/entities/video-conferencing.js +0 -1750
  236. package/src/entities/video.js +0 -950
  237. package/src/entities.js +0 -1663
  238. package/src/index.js +0 -74
  239. package/src/providers/analytics/index.js +0 -17
  240. package/src/providers/analytics/mixpanel.js +0 -255
  241. package/src/providers/calendar/cal-com.js +0 -303
  242. package/src/providers/calendar/google-calendar.js +0 -335
  243. package/src/providers/calendar/index.js +0 -20
  244. package/src/providers/crm/hubspot.js +0 -566
  245. package/src/providers/crm/index.js +0 -17
  246. package/src/providers/development/github.js +0 -472
  247. package/src/providers/development/index.js +0 -17
  248. package/src/providers/ecommerce/index.js +0 -17
  249. package/src/providers/ecommerce/shopify.js +0 -378
  250. package/src/providers/email/index.js +0 -20
  251. package/src/providers/email/resend.js +0 -258
  252. package/src/providers/email/sendgrid.js +0 -161
  253. package/src/providers/finance/index.js +0 -17
  254. package/src/providers/finance/stripe.js +0 -549
  255. package/src/providers/forms/index.js +0 -17
  256. package/src/providers/forms/typeform.js +0 -500
  257. package/src/providers/index.js +0 -123
  258. package/src/providers/knowledge/index.js +0 -17
  259. package/src/providers/knowledge/notion.js +0 -389
  260. package/src/providers/marketing/index.js +0 -17
  261. package/src/providers/marketing/mailchimp.js +0 -443
  262. package/src/providers/media/cloudinary.js +0 -318
  263. package/src/providers/media/index.js +0 -17
  264. package/src/providers/messaging/index.js +0 -20
  265. package/src/providers/messaging/slack.js +0 -393
  266. package/src/providers/messaging/twilio-sms.js +0 -249
  267. package/src/providers/project-management/index.js +0 -17
  268. package/src/providers/project-management/linear.js +0 -575
  269. package/src/providers/registry.js +0 -86
  270. package/src/providers/spreadsheet/google-sheets.js +0 -375
  271. package/src/providers/spreadsheet/index.js +0 -20
  272. package/src/providers/spreadsheet/xlsx.js +0 -423
  273. package/src/providers/storage/index.js +0 -24
  274. package/src/providers/storage/s3.js +0 -419
  275. package/src/providers/support/index.js +0 -17
  276. package/src/providers/support/zendesk.js +0 -373
  277. package/src/providers/tasks/index.js +0 -17
  278. package/src/providers/tasks/todoist.js +0 -286
  279. package/src/providers/types.js +0 -9
  280. package/src/providers/video-conferencing/google-meet.js +0 -286
  281. package/src/providers/video-conferencing/index.js +0 -31
  282. package/src/providers/video-conferencing/jitsi.js +0 -254
  283. package/src/providers/video-conferencing/teams.js +0 -270
  284. package/src/providers/video-conferencing/zoom.js +0 -332
  285. package/src/registry.js +0 -128
  286. package/src/tools/communication.js +0 -184
  287. package/src/tools/data.js +0 -205
  288. package/src/tools/index.js +0 -11
  289. package/src/tools/web.js +0 -137
  290. package/src/types.js +0 -10
  291. package/test/define.test.js +0 -306
  292. package/test/registry.test.js +0 -357
  293. package/test/tools.test.js +0 -363
@@ -1,736 +0,0 @@
1
- /**
2
- * Recruiting Entity Types (Nouns)
3
- *
4
- * Recruitment and hiring entities for job postings, candidates,
5
- * applications, interviews, and offers.
6
- *
7
- * @packageDocumentation
8
- */
9
- // =============================================================================
10
- // Job
11
- // =============================================================================
12
- /**
13
- * Job entity
14
- *
15
- * Represents a job posting or requisition.
16
- */
17
- export const Job = {
18
- singular: 'job',
19
- plural: 'jobs',
20
- description: 'A job posting or requisition',
21
- properties: {
22
- // Identity
23
- title: {
24
- type: 'string',
25
- description: 'Job title',
26
- },
27
- slug: {
28
- type: 'string',
29
- optional: true,
30
- description: 'URL-friendly identifier',
31
- },
32
- requisitionId: {
33
- type: 'string',
34
- optional: true,
35
- description: 'Internal requisition ID',
36
- },
37
- // Description
38
- description: {
39
- type: 'string',
40
- description: 'Job description',
41
- },
42
- responsibilities: {
43
- type: 'string',
44
- optional: true,
45
- description: 'Key responsibilities',
46
- },
47
- requirements: {
48
- type: 'string',
49
- optional: true,
50
- description: 'Required qualifications',
51
- },
52
- niceToHave: {
53
- type: 'string',
54
- optional: true,
55
- description: 'Preferred qualifications',
56
- },
57
- benefits: {
58
- type: 'string',
59
- optional: true,
60
- description: 'Benefits offered',
61
- },
62
- // Details
63
- department: {
64
- type: 'string',
65
- optional: true,
66
- description: 'Department',
67
- },
68
- location: {
69
- type: 'string',
70
- optional: true,
71
- description: 'Work location',
72
- },
73
- workType: {
74
- type: 'string',
75
- optional: true,
76
- description: 'Work arrangement',
77
- examples: ['remote', 'hybrid', 'onsite'],
78
- },
79
- employmentType: {
80
- type: 'string',
81
- optional: true,
82
- description: 'Employment type',
83
- examples: ['full-time', 'part-time', 'contract', 'internship'],
84
- },
85
- experienceLevel: {
86
- type: 'string',
87
- optional: true,
88
- description: 'Experience level',
89
- examples: ['entry', 'mid', 'senior', 'lead', 'executive'],
90
- },
91
- // Compensation
92
- salaryMin: {
93
- type: 'number',
94
- optional: true,
95
- description: 'Minimum salary',
96
- },
97
- salaryMax: {
98
- type: 'number',
99
- optional: true,
100
- description: 'Maximum salary',
101
- },
102
- currency: {
103
- type: 'string',
104
- optional: true,
105
- description: 'Salary currency',
106
- },
107
- equity: {
108
- type: 'string',
109
- optional: true,
110
- description: 'Equity compensation',
111
- },
112
- // Status
113
- status: {
114
- type: 'string',
115
- description: 'Job status',
116
- examples: ['draft', 'open', 'paused', 'closed', 'filled', 'cancelled'],
117
- },
118
- visibility: {
119
- type: 'string',
120
- optional: true,
121
- description: 'Visibility',
122
- examples: ['public', 'internal', 'confidential'],
123
- },
124
- // Dates
125
- postedAt: {
126
- type: 'datetime',
127
- optional: true,
128
- description: 'When posted',
129
- },
130
- closingDate: {
131
- type: 'datetime',
132
- optional: true,
133
- description: 'Application deadline',
134
- },
135
- // Counts
136
- openings: {
137
- type: 'number',
138
- optional: true,
139
- description: 'Number of openings',
140
- },
141
- applicantCount: {
142
- type: 'number',
143
- optional: true,
144
- description: 'Number of applicants',
145
- },
146
- },
147
- relationships: {
148
- hiringManager: {
149
- type: 'Employee',
150
- required: false,
151
- description: 'Hiring manager',
152
- },
153
- recruiter: {
154
- type: 'Employee',
155
- required: false,
156
- description: 'Assigned recruiter',
157
- },
158
- interviewers: {
159
- type: 'Employee[]',
160
- description: 'Interview team',
161
- },
162
- applications: {
163
- type: 'Application[]',
164
- description: 'Job applications',
165
- },
166
- },
167
- actions: [
168
- 'create',
169
- 'update',
170
- 'publish',
171
- 'pause',
172
- 'close',
173
- 'reopen',
174
- 'duplicate',
175
- ],
176
- events: [
177
- 'created',
178
- 'updated',
179
- 'published',
180
- 'paused',
181
- 'closed',
182
- 'reopened',
183
- 'filled',
184
- ],
185
- };
186
- // =============================================================================
187
- // Candidate
188
- // =============================================================================
189
- /**
190
- * Candidate entity
191
- *
192
- * Represents a job candidate.
193
- */
194
- export const Candidate = {
195
- singular: 'candidate',
196
- plural: 'candidates',
197
- description: 'A job candidate',
198
- properties: {
199
- // Identity
200
- firstName: {
201
- type: 'string',
202
- description: 'First name',
203
- },
204
- lastName: {
205
- type: 'string',
206
- description: 'Last name',
207
- },
208
- email: {
209
- type: 'string',
210
- description: 'Email address',
211
- },
212
- phone: {
213
- type: 'string',
214
- optional: true,
215
- description: 'Phone number',
216
- },
217
- // Profile
218
- headline: {
219
- type: 'string',
220
- optional: true,
221
- description: 'Professional headline',
222
- },
223
- summary: {
224
- type: 'string',
225
- optional: true,
226
- description: 'Professional summary',
227
- },
228
- location: {
229
- type: 'string',
230
- optional: true,
231
- description: 'Current location',
232
- },
233
- linkedinUrl: {
234
- type: 'url',
235
- optional: true,
236
- description: 'LinkedIn profile URL',
237
- },
238
- portfolioUrl: {
239
- type: 'url',
240
- optional: true,
241
- description: 'Portfolio URL',
242
- },
243
- websiteUrl: {
244
- type: 'url',
245
- optional: true,
246
- description: 'Personal website URL',
247
- },
248
- // Documents
249
- resumeUrl: {
250
- type: 'url',
251
- optional: true,
252
- description: 'Resume URL',
253
- },
254
- coverLetterUrl: {
255
- type: 'url',
256
- optional: true,
257
- description: 'Cover letter URL',
258
- },
259
- // Experience
260
- currentTitle: {
261
- type: 'string',
262
- optional: true,
263
- description: 'Current job title',
264
- },
265
- currentCompany: {
266
- type: 'string',
267
- optional: true,
268
- description: 'Current employer',
269
- },
270
- yearsOfExperience: {
271
- type: 'number',
272
- optional: true,
273
- description: 'Years of experience',
274
- },
275
- skills: {
276
- type: 'string',
277
- array: true,
278
- optional: true,
279
- description: 'Skills list',
280
- },
281
- // Source
282
- source: {
283
- type: 'string',
284
- optional: true,
285
- description: 'How they found us',
286
- examples: ['website', 'linkedin', 'referral', 'job-board', 'agency', 'event'],
287
- },
288
- referredBy: {
289
- type: 'string',
290
- optional: true,
291
- description: 'Referrer name or ID',
292
- },
293
- // Tags
294
- tags: {
295
- type: 'string',
296
- array: true,
297
- optional: true,
298
- description: 'Tags for organization',
299
- },
300
- notes: {
301
- type: 'string',
302
- optional: true,
303
- description: 'Recruiter notes',
304
- },
305
- },
306
- relationships: {
307
- applications: {
308
- type: 'Application[]',
309
- description: 'Job applications',
310
- },
311
- interviews: {
312
- type: 'Interview[]',
313
- description: 'Scheduled interviews',
314
- },
315
- },
316
- actions: [
317
- 'create',
318
- 'update',
319
- 'merge',
320
- 'archive',
321
- 'addTag',
322
- 'removeTag',
323
- ],
324
- events: [
325
- 'created',
326
- 'updated',
327
- 'merged',
328
- 'archived',
329
- 'tagAdded',
330
- 'tagRemoved',
331
- ],
332
- };
333
- // =============================================================================
334
- // Application
335
- // =============================================================================
336
- /**
337
- * Application entity
338
- *
339
- * Represents a job application from a candidate.
340
- */
341
- export const Application = {
342
- singular: 'application',
343
- plural: 'applications',
344
- description: 'A job application from a candidate',
345
- properties: {
346
- // Status
347
- status: {
348
- type: 'string',
349
- description: 'Application status',
350
- examples: ['new', 'screening', 'interviewing', 'offer', 'hired', 'rejected', 'withdrawn'],
351
- },
352
- stage: {
353
- type: 'string',
354
- optional: true,
355
- description: 'Current pipeline stage',
356
- },
357
- // Responses
358
- answers: {
359
- type: 'json',
360
- optional: true,
361
- description: 'Application question answers',
362
- },
363
- coverLetter: {
364
- type: 'string',
365
- optional: true,
366
- description: 'Cover letter text',
367
- },
368
- // Evaluation
369
- rating: {
370
- type: 'number',
371
- optional: true,
372
- description: 'Overall rating (1-5)',
373
- },
374
- scores: {
375
- type: 'json',
376
- optional: true,
377
- description: 'Detailed scores by criteria',
378
- },
379
- // Rejection
380
- rejectionReason: {
381
- type: 'string',
382
- optional: true,
383
- description: 'Reason for rejection',
384
- examples: ['underqualified', 'overqualified', 'culture-fit', 'compensation', 'position-filled', 'no-response'],
385
- },
386
- rejectionNotes: {
387
- type: 'string',
388
- optional: true,
389
- description: 'Rejection notes',
390
- },
391
- // Dates
392
- appliedAt: {
393
- type: 'datetime',
394
- description: 'Application date',
395
- },
396
- reviewedAt: {
397
- type: 'datetime',
398
- optional: true,
399
- description: 'When first reviewed',
400
- },
401
- decidedAt: {
402
- type: 'datetime',
403
- optional: true,
404
- description: 'When final decision made',
405
- },
406
- },
407
- relationships: {
408
- job: {
409
- type: 'Job',
410
- description: 'Job applied for',
411
- },
412
- candidate: {
413
- type: 'Candidate',
414
- description: 'Applicant',
415
- },
416
- interviews: {
417
- type: 'Interview[]',
418
- description: 'Scheduled interviews',
419
- },
420
- offer: {
421
- type: 'Offer',
422
- required: false,
423
- description: 'Job offer (if extended)',
424
- },
425
- },
426
- actions: [
427
- 'submit',
428
- 'review',
429
- 'advance',
430
- 'reject',
431
- 'withdraw',
432
- 'restore',
433
- ],
434
- events: [
435
- 'submitted',
436
- 'reviewed',
437
- 'advanced',
438
- 'rejected',
439
- 'withdrawn',
440
- 'restored',
441
- 'hired',
442
- ],
443
- };
444
- // =============================================================================
445
- // Interview
446
- // =============================================================================
447
- /**
448
- * Interview entity
449
- *
450
- * Represents a scheduled interview.
451
- */
452
- export const Interview = {
453
- singular: 'interview',
454
- plural: 'interviews',
455
- description: 'A scheduled interview',
456
- properties: {
457
- // Type
458
- type: {
459
- type: 'string',
460
- description: 'Interview type',
461
- examples: ['phone-screen', 'video', 'onsite', 'technical', 'behavioral', 'panel', 'final'],
462
- },
463
- round: {
464
- type: 'number',
465
- optional: true,
466
- description: 'Interview round number',
467
- },
468
- // Status
469
- status: {
470
- type: 'string',
471
- description: 'Interview status',
472
- examples: ['scheduled', 'confirmed', 'completed', 'cancelled', 'no-show', 'rescheduled'],
473
- },
474
- // Scheduling
475
- scheduledAt: {
476
- type: 'datetime',
477
- description: 'Scheduled start time',
478
- },
479
- duration: {
480
- type: 'number',
481
- description: 'Duration in minutes',
482
- },
483
- timezone: {
484
- type: 'string',
485
- optional: true,
486
- description: 'Timezone',
487
- },
488
- // Location
489
- location: {
490
- type: 'string',
491
- optional: true,
492
- description: 'Location or meeting link',
493
- },
494
- meetingUrl: {
495
- type: 'url',
496
- optional: true,
497
- description: 'Video meeting URL',
498
- },
499
- // Content
500
- agenda: {
501
- type: 'string',
502
- optional: true,
503
- description: 'Interview agenda',
504
- },
505
- questions: {
506
- type: 'json',
507
- optional: true,
508
- description: 'Interview questions',
509
- },
510
- // Feedback
511
- feedback: {
512
- type: 'string',
513
- optional: true,
514
- description: 'Interviewer feedback',
515
- },
516
- rating: {
517
- type: 'number',
518
- optional: true,
519
- description: 'Overall rating (1-5)',
520
- },
521
- scores: {
522
- type: 'json',
523
- optional: true,
524
- description: 'Scores by criteria',
525
- },
526
- recommendation: {
527
- type: 'string',
528
- optional: true,
529
- description: 'Hiring recommendation',
530
- examples: ['strong-hire', 'hire', 'no-hire', 'strong-no-hire', 'undecided'],
531
- },
532
- // Notes
533
- notes: {
534
- type: 'string',
535
- optional: true,
536
- description: 'Interview notes',
537
- },
538
- },
539
- relationships: {
540
- application: {
541
- type: 'Application',
542
- description: 'Related application',
543
- },
544
- candidate: {
545
- type: 'Candidate',
546
- description: 'Candidate being interviewed',
547
- },
548
- interviewer: {
549
- type: 'Employee',
550
- description: 'Primary interviewer',
551
- },
552
- panelists: {
553
- type: 'Employee[]',
554
- description: 'Interview panel',
555
- },
556
- meeting: {
557
- type: 'Meeting',
558
- required: false,
559
- description: 'Associated meeting',
560
- },
561
- },
562
- actions: [
563
- 'schedule',
564
- 'confirm',
565
- 'reschedule',
566
- 'cancel',
567
- 'complete',
568
- 'submitFeedback',
569
- ],
570
- events: [
571
- 'scheduled',
572
- 'confirmed',
573
- 'rescheduled',
574
- 'cancelled',
575
- 'started',
576
- 'completed',
577
- 'feedbackSubmitted',
578
- ],
579
- };
580
- // =============================================================================
581
- // Offer
582
- // =============================================================================
583
- /**
584
- * Offer entity
585
- *
586
- * Represents a job offer.
587
- */
588
- export const Offer = {
589
- singular: 'offer',
590
- plural: 'offers',
591
- description: 'A job offer',
592
- properties: {
593
- // Status
594
- status: {
595
- type: 'string',
596
- description: 'Offer status',
597
- examples: ['draft', 'pending-approval', 'approved', 'sent', 'accepted', 'declined', 'expired', 'rescinded'],
598
- },
599
- // Position
600
- title: {
601
- type: 'string',
602
- description: 'Job title',
603
- },
604
- department: {
605
- type: 'string',
606
- optional: true,
607
- description: 'Department',
608
- },
609
- location: {
610
- type: 'string',
611
- optional: true,
612
- description: 'Work location',
613
- },
614
- startDate: {
615
- type: 'datetime',
616
- optional: true,
617
- description: 'Proposed start date',
618
- },
619
- // Compensation
620
- salary: {
621
- type: 'number',
622
- description: 'Base salary',
623
- },
624
- currency: {
625
- type: 'string',
626
- description: 'Currency',
627
- },
628
- bonus: {
629
- type: 'number',
630
- optional: true,
631
- description: 'Signing bonus',
632
- },
633
- equity: {
634
- type: 'string',
635
- optional: true,
636
- description: 'Equity package',
637
- },
638
- benefits: {
639
- type: 'string',
640
- optional: true,
641
- description: 'Benefits summary',
642
- },
643
- // Terms
644
- employmentType: {
645
- type: 'string',
646
- optional: true,
647
- description: 'Employment type',
648
- },
649
- offerLetterUrl: {
650
- type: 'url',
651
- optional: true,
652
- description: 'Offer letter document URL',
653
- },
654
- // Dates
655
- expiresAt: {
656
- type: 'datetime',
657
- optional: true,
658
- description: 'Offer expiration date',
659
- },
660
- sentAt: {
661
- type: 'datetime',
662
- optional: true,
663
- description: 'When sent to candidate',
664
- },
665
- respondedAt: {
666
- type: 'datetime',
667
- optional: true,
668
- description: 'When candidate responded',
669
- },
670
- // Decline
671
- declineReason: {
672
- type: 'string',
673
- optional: true,
674
- description: 'Reason for decline',
675
- },
676
- },
677
- relationships: {
678
- application: {
679
- type: 'Application',
680
- description: 'Related application',
681
- },
682
- candidate: {
683
- type: 'Candidate',
684
- description: 'Candidate receiving offer',
685
- },
686
- job: {
687
- type: 'Job',
688
- description: 'Job position',
689
- },
690
- approver: {
691
- type: 'Employee',
692
- required: false,
693
- description: 'Person who approved offer',
694
- },
695
- },
696
- actions: [
697
- 'create',
698
- 'update',
699
- 'submitForApproval',
700
- 'approve',
701
- 'send',
702
- 'accept',
703
- 'decline',
704
- 'rescind',
705
- 'negotiate',
706
- ],
707
- events: [
708
- 'created',
709
- 'updated',
710
- 'submittedForApproval',
711
- 'approved',
712
- 'sent',
713
- 'accepted',
714
- 'declined',
715
- 'rescinded',
716
- 'negotiated',
717
- 'expired',
718
- ],
719
- };
720
- // =============================================================================
721
- // Exports
722
- // =============================================================================
723
- export const RecruitingEntities = {
724
- Job,
725
- Candidate,
726
- Application,
727
- Interview,
728
- Offer,
729
- };
730
- export const RecruitingCategories = {
731
- jobs: ['Job'],
732
- candidates: ['Candidate'],
733
- applications: ['Application'],
734
- interviews: ['Interview'],
735
- offers: ['Offer'],
736
- };