@kelpie/server 0.1.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.
- package/LICENSE +661 -0
- package/README.md +57 -0
- package/dist/app.d.ts +36 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +98 -0
- package/dist/app.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/actor.d.ts +71 -0
- package/dist/lib/actor.d.ts.map +1 -0
- package/dist/lib/actor.js +48 -0
- package/dist/lib/actor.js.map +1 -0
- package/dist/lib/changes.d.ts +17 -0
- package/dist/lib/changes.d.ts.map +1 -0
- package/dist/lib/changes.js +35 -0
- package/dist/lib/changes.js.map +1 -0
- package/dist/lib/columns.d.ts +152 -0
- package/dist/lib/columns.d.ts.map +1 -0
- package/dist/lib/columns.js +126 -0
- package/dist/lib/columns.js.map +1 -0
- package/dist/lib/config.d.ts +36 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +52 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/database.d.ts +57 -0
- package/dist/lib/database.d.ts.map +1 -0
- package/dist/lib/database.js +91 -0
- package/dist/lib/database.js.map +1 -0
- package/dist/lib/dates.d.ts +11 -0
- package/dist/lib/dates.d.ts.map +1 -0
- package/dist/lib/dates.js +17 -0
- package/dist/lib/dates.js.map +1 -0
- package/dist/lib/email.d.ts +42 -0
- package/dist/lib/email.d.ts.map +1 -0
- package/dist/lib/email.js +38 -0
- package/dist/lib/email.js.map +1 -0
- package/dist/lib/errors.d.ts +76 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +102 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/http.d.ts +59 -0
- package/dist/lib/http.d.ts.map +1 -0
- package/dist/lib/http.js +89 -0
- package/dist/lib/http.js.map +1 -0
- package/dist/lib/ids.d.ts +55 -0
- package/dist/lib/ids.d.ts.map +1 -0
- package/dist/lib/ids.js +56 -0
- package/dist/lib/ids.js.map +1 -0
- package/dist/lib/logger.d.ts +22 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +43 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/moduleConfig.d.ts +14 -0
- package/dist/lib/moduleConfig.d.ts.map +1 -0
- package/dist/lib/moduleConfig.js +56 -0
- package/dist/lib/moduleConfig.js.map +1 -0
- package/dist/lib/normalisation.d.ts +19 -0
- package/dist/lib/normalisation.d.ts.map +1 -0
- package/dist/lib/normalisation.js +32 -0
- package/dist/lib/normalisation.js.map +1 -0
- package/dist/lib/pagination.d.ts +104 -0
- package/dist/lib/pagination.d.ts.map +1 -0
- package/dist/lib/pagination.js +189 -0
- package/dist/lib/pagination.js.map +1 -0
- package/dist/lib/passwords.d.ts +32 -0
- package/dist/lib/passwords.d.ts.map +1 -0
- package/dist/lib/passwords.js +51 -0
- package/dist/lib/passwords.js.map +1 -0
- package/dist/lib/search.d.ts +11 -0
- package/dist/lib/search.d.ts.map +1 -0
- package/dist/lib/search.js +25 -0
- package/dist/lib/search.js.map +1 -0
- package/dist/lib/secrets.d.ts +40 -0
- package/dist/lib/secrets.d.ts.map +1 -0
- package/dist/lib/secrets.js +152 -0
- package/dist/lib/secrets.js.map +1 -0
- package/dist/lib/timezones.d.ts +38 -0
- package/dist/lib/timezones.d.ts.map +1 -0
- package/dist/lib/timezones.js +55 -0
- package/dist/lib/timezones.js.map +1 -0
- package/dist/lib/tokens.d.ts +10 -0
- package/dist/lib/tokens.d.ts.map +1 -0
- package/dist/lib/tokens.js +31 -0
- package/dist/lib/tokens.js.map +1 -0
- package/dist/lib/url.d.ts +25 -0
- package/dist/lib/url.d.ts.map +1 -0
- package/dist/lib/url.js +41 -0
- package/dist/lib/url.js.map +1 -0
- package/dist/modules/activities/index.d.ts +18 -0
- package/dist/modules/activities/index.d.ts.map +1 -0
- package/dist/modules/activities/index.js +34 -0
- package/dist/modules/activities/index.js.map +1 -0
- package/dist/modules/activities/recorder.d.ts +53 -0
- package/dist/modules/activities/recorder.d.ts.map +1 -0
- package/dist/modules/activities/recorder.js +36 -0
- package/dist/modules/activities/recorder.js.map +1 -0
- package/dist/modules/activities/repository.d.ts +52 -0
- package/dist/modules/activities/repository.d.ts.map +1 -0
- package/dist/modules/activities/repository.js +127 -0
- package/dist/modules/activities/repository.js.map +1 -0
- package/dist/modules/activities/routes.d.ts +17 -0
- package/dist/modules/activities/routes.d.ts.map +1 -0
- package/dist/modules/activities/routes.js +45 -0
- package/dist/modules/activities/routes.js.map +1 -0
- package/dist/modules/activities/schema.d.ts +188 -0
- package/dist/modules/activities/schema.d.ts.map +1 -0
- package/dist/modules/activities/schema.js +34 -0
- package/dist/modules/activities/schema.js.map +1 -0
- package/dist/modules/activities/service.d.ts +32 -0
- package/dist/modules/activities/service.d.ts.map +1 -0
- package/dist/modules/activities/service.js +28 -0
- package/dist/modules/activities/service.js.map +1 -0
- package/dist/modules/activities/tools.d.ts +4 -0
- package/dist/modules/activities/tools.d.ts.map +1 -0
- package/dist/modules/activities/tools.js +26 -0
- package/dist/modules/activities/tools.js.map +1 -0
- package/dist/modules/activities/wording.d.ts +79 -0
- package/dist/modules/activities/wording.d.ts.map +1 -0
- package/dist/modules/activities/wording.js +134 -0
- package/dist/modules/activities/wording.js.map +1 -0
- package/dist/modules/agent-tasks/catalog.d.ts +16 -0
- package/dist/modules/agent-tasks/catalog.d.ts.map +1 -0
- package/dist/modules/agent-tasks/catalog.js +694 -0
- package/dist/modules/agent-tasks/catalog.js.map +1 -0
- package/dist/modules/agent-tasks/dispatch.d.ts +61 -0
- package/dist/modules/agent-tasks/dispatch.d.ts.map +1 -0
- package/dist/modules/agent-tasks/dispatch.js +139 -0
- package/dist/modules/agent-tasks/dispatch.js.map +1 -0
- package/dist/modules/agent-tasks/index.d.ts +17 -0
- package/dist/modules/agent-tasks/index.d.ts.map +1 -0
- package/dist/modules/agent-tasks/index.js +54 -0
- package/dist/modules/agent-tasks/index.js.map +1 -0
- package/dist/modules/agent-tasks/prompt.d.ts +41 -0
- package/dist/modules/agent-tasks/prompt.d.ts.map +1 -0
- package/dist/modules/agent-tasks/prompt.js +78 -0
- package/dist/modules/agent-tasks/prompt.js.map +1 -0
- package/dist/modules/agent-tasks/repository.d.ts +32 -0
- package/dist/modules/agent-tasks/repository.d.ts.map +1 -0
- package/dist/modules/agent-tasks/repository.js +83 -0
- package/dist/modules/agent-tasks/repository.js.map +1 -0
- package/dist/modules/agent-tasks/resolve.d.ts +44 -0
- package/dist/modules/agent-tasks/resolve.d.ts.map +1 -0
- package/dist/modules/agent-tasks/resolve.js +396 -0
- package/dist/modules/agent-tasks/resolve.js.map +1 -0
- package/dist/modules/agent-tasks/routes.d.ts +55 -0
- package/dist/modules/agent-tasks/routes.d.ts.map +1 -0
- package/dist/modules/agent-tasks/routes.js +173 -0
- package/dist/modules/agent-tasks/routes.js.map +1 -0
- package/dist/modules/agent-tasks/schema.d.ts +346 -0
- package/dist/modules/agent-tasks/schema.d.ts.map +1 -0
- package/dist/modules/agent-tasks/schema.js +47 -0
- package/dist/modules/agent-tasks/schema.js.map +1 -0
- package/dist/modules/agent-tasks/service.d.ts +79 -0
- package/dist/modules/agent-tasks/service.d.ts.map +1 -0
- package/dist/modules/agent-tasks/service.js +210 -0
- package/dist/modules/agent-tasks/service.js.map +1 -0
- package/dist/modules/agent-tasks/wire.d.ts +35 -0
- package/dist/modules/agent-tasks/wire.d.ts.map +1 -0
- package/dist/modules/agent-tasks/wire.js +31 -0
- package/dist/modules/agent-tasks/wire.js.map +1 -0
- package/dist/modules/api-keys/index.d.ts +9 -0
- package/dist/modules/api-keys/index.d.ts.map +1 -0
- package/dist/modules/api-keys/index.js +29 -0
- package/dist/modules/api-keys/index.js.map +1 -0
- package/dist/modules/api-keys/keys.d.ts +25 -0
- package/dist/modules/api-keys/keys.d.ts.map +1 -0
- package/dist/modules/api-keys/keys.js +40 -0
- package/dist/modules/api-keys/keys.js.map +1 -0
- package/dist/modules/api-keys/repository.d.ts +15 -0
- package/dist/modules/api-keys/repository.d.ts.map +1 -0
- package/dist/modules/api-keys/repository.js +48 -0
- package/dist/modules/api-keys/repository.js.map +1 -0
- package/dist/modules/api-keys/routes.d.ts +8 -0
- package/dist/modules/api-keys/routes.d.ts.map +1 -0
- package/dist/modules/api-keys/routes.js +52 -0
- package/dist/modules/api-keys/routes.js.map +1 -0
- package/dist/modules/api-keys/schema.d.ts +166 -0
- package/dist/modules/api-keys/schema.d.ts.map +1 -0
- package/dist/modules/api-keys/schema.js +23 -0
- package/dist/modules/api-keys/schema.js.map +1 -0
- package/dist/modules/api-keys/service.d.ts +37 -0
- package/dist/modules/api-keys/service.d.ts.map +1 -0
- package/dist/modules/api-keys/service.js +95 -0
- package/dist/modules/api-keys/service.js.map +1 -0
- package/dist/modules/attachedRecords.d.ts +39 -0
- package/dist/modules/attachedRecords.d.ts.map +1 -0
- package/dist/modules/attachedRecords.js +52 -0
- package/dist/modules/attachedRecords.js.map +1 -0
- package/dist/modules/auth/actor.d.ts +11 -0
- package/dist/modules/auth/actor.d.ts.map +1 -0
- package/dist/modules/auth/actor.js +10 -0
- package/dist/modules/auth/actor.js.map +1 -0
- package/dist/modules/auth/credentials.d.ts +18 -0
- package/dist/modules/auth/credentials.d.ts.map +1 -0
- package/dist/modules/auth/credentials.js +105 -0
- package/dist/modules/auth/credentials.js.map +1 -0
- package/dist/modules/auth/index.d.ts +3 -0
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/index.js +41 -0
- package/dist/modules/auth/index.js.map +1 -0
- package/dist/modules/auth/preferences.d.ts +34 -0
- package/dist/modules/auth/preferences.d.ts.map +1 -0
- package/dist/modules/auth/preferences.js +30 -0
- package/dist/modules/auth/preferences.js.map +1 -0
- package/dist/modules/auth/repository.d.ts +54 -0
- package/dist/modules/auth/repository.d.ts.map +1 -0
- package/dist/modules/auth/repository.js +137 -0
- package/dist/modules/auth/repository.js.map +1 -0
- package/dist/modules/auth/routes.d.ts +10 -0
- package/dist/modules/auth/routes.d.ts.map +1 -0
- package/dist/modules/auth/routes.js +181 -0
- package/dist/modules/auth/routes.js.map +1 -0
- package/dist/modules/auth/schema.d.ts +530 -0
- package/dist/modules/auth/schema.d.ts.map +1 -0
- package/dist/modules/auth/schema.js +67 -0
- package/dist/modules/auth/schema.js.map +1 -0
- package/dist/modules/auth/service.d.ts +73 -0
- package/dist/modules/auth/service.d.ts.map +1 -0
- package/dist/modules/auth/service.js +288 -0
- package/dist/modules/auth/service.js.map +1 -0
- package/dist/modules/auth/session.d.ts +16 -0
- package/dist/modules/auth/session.d.ts.map +1 -0
- package/dist/modules/auth/session.js +30 -0
- package/dist/modules/auth/session.js.map +1 -0
- package/dist/modules/companies/index.d.ts +9 -0
- package/dist/modules/companies/index.d.ts.map +1 -0
- package/dist/modules/companies/index.js +37 -0
- package/dist/modules/companies/index.js.map +1 -0
- package/dist/modules/companies/repository.d.ts +40 -0
- package/dist/modules/companies/repository.d.ts.map +1 -0
- package/dist/modules/companies/repository.js +112 -0
- package/dist/modules/companies/repository.js.map +1 -0
- package/dist/modules/companies/routes.d.ts +89 -0
- package/dist/modules/companies/routes.d.ts.map +1 -0
- package/dist/modules/companies/routes.js +125 -0
- package/dist/modules/companies/routes.js.map +1 -0
- package/dist/modules/companies/schema.d.ts +381 -0
- package/dist/modules/companies/schema.d.ts.map +1 -0
- package/dist/modules/companies/schema.js +51 -0
- package/dist/modules/companies/schema.js.map +1 -0
- package/dist/modules/companies/service.d.ts +49 -0
- package/dist/modules/companies/service.d.ts.map +1 -0
- package/dist/modules/companies/service.js +184 -0
- package/dist/modules/companies/service.js.map +1 -0
- package/dist/modules/companies/tools.d.ts +4 -0
- package/dist/modules/companies/tools.d.ts.map +1 -0
- package/dist/modules/companies/tools.js +27 -0
- package/dist/modules/companies/tools.js.map +1 -0
- package/dist/modules/core.d.ts +21 -0
- package/dist/modules/core.d.ts.map +1 -0
- package/dist/modules/core.js +82 -0
- package/dist/modules/core.js.map +1 -0
- package/dist/modules/crudTools.d.ts +99 -0
- package/dist/modules/crudTools.d.ts.map +1 -0
- package/dist/modules/crudTools.js +123 -0
- package/dist/modules/crudTools.js.map +1 -0
- package/dist/modules/dashboard/attention.d.ts +39 -0
- package/dist/modules/dashboard/attention.d.ts.map +1 -0
- package/dist/modules/dashboard/attention.js +57 -0
- package/dist/modules/dashboard/attention.js.map +1 -0
- package/dist/modules/dashboard/index.d.ts +15 -0
- package/dist/modules/dashboard/index.d.ts.map +1 -0
- package/dist/modules/dashboard/index.js +44 -0
- package/dist/modules/dashboard/index.js.map +1 -0
- package/dist/modules/dashboard/repository.d.ts +83 -0
- package/dist/modules/dashboard/repository.d.ts.map +1 -0
- package/dist/modules/dashboard/repository.js +217 -0
- package/dist/modules/dashboard/repository.js.map +1 -0
- package/dist/modules/dashboard/routes.d.ts +21 -0
- package/dist/modules/dashboard/routes.d.ts.map +1 -0
- package/dist/modules/dashboard/routes.js +116 -0
- package/dist/modules/dashboard/routes.js.map +1 -0
- package/dist/modules/dashboard/service.d.ts +122 -0
- package/dist/modules/dashboard/service.d.ts.map +1 -0
- package/dist/modules/dashboard/service.js +215 -0
- package/dist/modules/dashboard/service.js.map +1 -0
- package/dist/modules/dashboard/tools.d.ts +4 -0
- package/dist/modules/dashboard/tools.d.ts.map +1 -0
- package/dist/modules/dashboard/tools.js +33 -0
- package/dist/modules/dashboard/tools.js.map +1 -0
- package/dist/modules/deals/index.d.ts +11 -0
- package/dist/modules/deals/index.d.ts.map +1 -0
- package/dist/modules/deals/index.js +38 -0
- package/dist/modules/deals/index.js.map +1 -0
- package/dist/modules/deals/repository.d.ts +44 -0
- package/dist/modules/deals/repository.d.ts.map +1 -0
- package/dist/modules/deals/repository.js +160 -0
- package/dist/modules/deals/repository.js.map +1 -0
- package/dist/modules/deals/routes.d.ts +50 -0
- package/dist/modules/deals/routes.d.ts.map +1 -0
- package/dist/modules/deals/routes.js +132 -0
- package/dist/modules/deals/routes.js.map +1 -0
- package/dist/modules/deals/schema.d.ts +419 -0
- package/dist/modules/deals/schema.d.ts.map +1 -0
- package/dist/modules/deals/schema.js +61 -0
- package/dist/modules/deals/schema.js.map +1 -0
- package/dist/modules/deals/service.d.ts +71 -0
- package/dist/modules/deals/service.d.ts.map +1 -0
- package/dist/modules/deals/service.js +277 -0
- package/dist/modules/deals/service.js.map +1 -0
- package/dist/modules/deals/tools.d.ts +4 -0
- package/dist/modules/deals/tools.d.ts.map +1 -0
- package/dist/modules/deals/tools.js +33 -0
- package/dist/modules/deals/tools.js.map +1 -0
- package/dist/modules/decisions/index.d.ts +11 -0
- package/dist/modules/decisions/index.d.ts.map +1 -0
- package/dist/modules/decisions/index.js +34 -0
- package/dist/modules/decisions/index.js.map +1 -0
- package/dist/modules/decisions/repository.d.ts +38 -0
- package/dist/modules/decisions/repository.d.ts.map +1 -0
- package/dist/modules/decisions/repository.js +126 -0
- package/dist/modules/decisions/repository.js.map +1 -0
- package/dist/modules/decisions/routes.d.ts +42 -0
- package/dist/modules/decisions/routes.d.ts.map +1 -0
- package/dist/modules/decisions/routes.js +131 -0
- package/dist/modules/decisions/routes.js.map +1 -0
- package/dist/modules/decisions/schema.d.ts +228 -0
- package/dist/modules/decisions/schema.d.ts.map +1 -0
- package/dist/modules/decisions/schema.js +41 -0
- package/dist/modules/decisions/schema.js.map +1 -0
- package/dist/modules/decisions/service.d.ts +60 -0
- package/dist/modules/decisions/service.d.ts.map +1 -0
- package/dist/modules/decisions/service.js +122 -0
- package/dist/modules/decisions/service.js.map +1 -0
- package/dist/modules/decisions/tools.d.ts +4 -0
- package/dist/modules/decisions/tools.d.ts.map +1 -0
- package/dist/modules/decisions/tools.js +32 -0
- package/dist/modules/decisions/tools.js.map +1 -0
- package/dist/modules/forms/embed.d.ts +50 -0
- package/dist/modules/forms/embed.d.ts.map +1 -0
- package/dist/modules/forms/embed.js +236 -0
- package/dist/modules/forms/embed.js.map +1 -0
- package/dist/modules/forms/fields.d.ts +71 -0
- package/dist/modules/forms/fields.d.ts.map +1 -0
- package/dist/modules/forms/fields.js +122 -0
- package/dist/modules/forms/fields.js.map +1 -0
- package/dist/modules/forms/index.d.ts +15 -0
- package/dist/modules/forms/index.d.ts.map +1 -0
- package/dist/modules/forms/index.js +53 -0
- package/dist/modules/forms/index.js.map +1 -0
- package/dist/modules/forms/mapping.d.ts +99 -0
- package/dist/modules/forms/mapping.d.ts.map +1 -0
- package/dist/modules/forms/mapping.js +152 -0
- package/dist/modules/forms/mapping.js.map +1 -0
- package/dist/modules/forms/publicRoutes.d.ts +11 -0
- package/dist/modules/forms/publicRoutes.d.ts.map +1 -0
- package/dist/modules/forms/publicRoutes.js +68 -0
- package/dist/modules/forms/publicRoutes.js.map +1 -0
- package/dist/modules/forms/repository.d.ts +65 -0
- package/dist/modules/forms/repository.d.ts.map +1 -0
- package/dist/modules/forms/repository.js +139 -0
- package/dist/modules/forms/repository.js.map +1 -0
- package/dist/modules/forms/routes.d.ts +106 -0
- package/dist/modules/forms/routes.d.ts.map +1 -0
- package/dist/modules/forms/routes.js +204 -0
- package/dist/modules/forms/routes.js.map +1 -0
- package/dist/modules/forms/schema.d.ts +643 -0
- package/dist/modules/forms/schema.d.ts.map +1 -0
- package/dist/modules/forms/schema.js +87 -0
- package/dist/modules/forms/schema.js.map +1 -0
- package/dist/modules/forms/service.d.ts +62 -0
- package/dist/modules/forms/service.d.ts.map +1 -0
- package/dist/modules/forms/service.js +208 -0
- package/dist/modules/forms/service.js.map +1 -0
- package/dist/modules/forms/submission.d.ts +30 -0
- package/dist/modules/forms/submission.d.ts.map +1 -0
- package/dist/modules/forms/submission.js +337 -0
- package/dist/modules/forms/submission.js.map +1 -0
- package/dist/modules/forms/tools.d.ts +4 -0
- package/dist/modules/forms/tools.d.ts.map +1 -0
- package/dist/modules/forms/tools.js +46 -0
- package/dist/modules/forms/tools.js.map +1 -0
- package/dist/modules/handbook/index.d.ts +15 -0
- package/dist/modules/handbook/index.d.ts.map +1 -0
- package/dist/modules/handbook/index.js +37 -0
- package/dist/modules/handbook/index.js.map +1 -0
- package/dist/modules/handbook/repository.d.ts +52 -0
- package/dist/modules/handbook/repository.d.ts.map +1 -0
- package/dist/modules/handbook/repository.js +109 -0
- package/dist/modules/handbook/repository.js.map +1 -0
- package/dist/modules/handbook/routes.d.ts +38 -0
- package/dist/modules/handbook/routes.d.ts.map +1 -0
- package/dist/modules/handbook/routes.js +103 -0
- package/dist/modules/handbook/routes.js.map +1 -0
- package/dist/modules/handbook/schema.d.ts +206 -0
- package/dist/modules/handbook/schema.d.ts.map +1 -0
- package/dist/modules/handbook/schema.js +37 -0
- package/dist/modules/handbook/schema.js.map +1 -0
- package/dist/modules/handbook/service.d.ts +59 -0
- package/dist/modules/handbook/service.d.ts.map +1 -0
- package/dist/modules/handbook/service.js +246 -0
- package/dist/modules/handbook/service.js.map +1 -0
- package/dist/modules/handbook/slugs.d.ts +28 -0
- package/dist/modules/handbook/slugs.d.ts.map +1 -0
- package/dist/modules/handbook/slugs.js +48 -0
- package/dist/modules/handbook/slugs.js.map +1 -0
- package/dist/modules/handbook/tools.d.ts +4 -0
- package/dist/modules/handbook/tools.d.ts.map +1 -0
- package/dist/modules/handbook/tools.js +26 -0
- package/dist/modules/handbook/tools.js.map +1 -0
- package/dist/modules/handbook/tree.d.ts +69 -0
- package/dist/modules/handbook/tree.d.ts.map +1 -0
- package/dist/modules/handbook/tree.js +117 -0
- package/dist/modules/handbook/tree.js.map +1 -0
- package/dist/modules/hiring/candidates.d.ts +70 -0
- package/dist/modules/hiring/candidates.d.ts.map +1 -0
- package/dist/modules/hiring/candidates.js +243 -0
- package/dist/modules/hiring/candidates.js.map +1 -0
- package/dist/modules/hiring/index.d.ts +15 -0
- package/dist/modules/hiring/index.d.ts.map +1 -0
- package/dist/modules/hiring/index.js +48 -0
- package/dist/modules/hiring/index.js.map +1 -0
- package/dist/modules/hiring/repository.d.ts +52 -0
- package/dist/modules/hiring/repository.d.ts.map +1 -0
- package/dist/modules/hiring/repository.js +137 -0
- package/dist/modules/hiring/repository.js.map +1 -0
- package/dist/modules/hiring/roles.d.ts +42 -0
- package/dist/modules/hiring/roles.d.ts.map +1 -0
- package/dist/modules/hiring/roles.js +104 -0
- package/dist/modules/hiring/roles.js.map +1 -0
- package/dist/modules/hiring/routes.d.ts +73 -0
- package/dist/modules/hiring/routes.d.ts.map +1 -0
- package/dist/modules/hiring/routes.js +170 -0
- package/dist/modules/hiring/routes.js.map +1 -0
- package/dist/modules/hiring/schema.d.ts +308 -0
- package/dist/modules/hiring/schema.d.ts.map +1 -0
- package/dist/modules/hiring/schema.js +62 -0
- package/dist/modules/hiring/schema.js.map +1 -0
- package/dist/modules/hiring/tools.d.ts +8 -0
- package/dist/modules/hiring/tools.d.ts.map +1 -0
- package/dist/modules/hiring/tools.js +50 -0
- package/dist/modules/hiring/tools.js.map +1 -0
- package/dist/modules/import-export/csv.d.ts +47 -0
- package/dist/modules/import-export/csv.d.ts.map +1 -0
- package/dist/modules/import-export/csv.js +138 -0
- package/dist/modules/import-export/csv.js.map +1 -0
- package/dist/modules/import-export/drafts.d.ts +83 -0
- package/dist/modules/import-export/drafts.d.ts.map +1 -0
- package/dist/modules/import-export/drafts.js +97 -0
- package/dist/modules/import-export/drafts.js.map +1 -0
- package/dist/modules/import-export/exportRows.d.ts +8 -0
- package/dist/modules/import-export/exportRows.d.ts.map +1 -0
- package/dist/modules/import-export/exportRows.js +71 -0
- package/dist/modules/import-export/exportRows.js.map +1 -0
- package/dist/modules/import-export/index.d.ts +15 -0
- package/dist/modules/import-export/index.d.ts.map +1 -0
- package/dist/modules/import-export/index.js +43 -0
- package/dist/modules/import-export/index.js.map +1 -0
- package/dist/modules/import-export/mapping.d.ts +46 -0
- package/dist/modules/import-export/mapping.d.ts.map +1 -0
- package/dist/modules/import-export/mapping.js +115 -0
- package/dist/modules/import-export/mapping.js.map +1 -0
- package/dist/modules/import-export/plan.d.ts +107 -0
- package/dist/modules/import-export/plan.d.ts.map +1 -0
- package/dist/modules/import-export/plan.js +178 -0
- package/dist/modules/import-export/plan.js.map +1 -0
- package/dist/modules/import-export/presets.d.ts +39 -0
- package/dist/modules/import-export/presets.d.ts.map +1 -0
- package/dist/modules/import-export/presets.js +151 -0
- package/dist/modules/import-export/presets.js.map +1 -0
- package/dist/modules/import-export/repository.d.ts +171 -0
- package/dist/modules/import-export/repository.d.ts.map +1 -0
- package/dist/modules/import-export/repository.js +343 -0
- package/dist/modules/import-export/repository.js.map +1 -0
- package/dist/modules/import-export/routes.d.ts +9 -0
- package/dist/modules/import-export/routes.d.ts.map +1 -0
- package/dist/modules/import-export/routes.js +199 -0
- package/dist/modules/import-export/routes.js.map +1 -0
- package/dist/modules/import-export/schema.d.ts +494 -0
- package/dist/modules/import-export/schema.d.ts.map +1 -0
- package/dist/modules/import-export/schema.js +99 -0
- package/dist/modules/import-export/schema.js.map +1 -0
- package/dist/modules/import-export/service.d.ts +74 -0
- package/dist/modules/import-export/service.d.ts.map +1 -0
- package/dist/modules/import-export/service.js +561 -0
- package/dist/modules/import-export/service.js.map +1 -0
- package/dist/modules/import-export/streams.d.ts +4 -0
- package/dist/modules/import-export/streams.d.ts.map +1 -0
- package/dist/modules/import-export/streams.js +55 -0
- package/dist/modules/import-export/streams.js.map +1 -0
- package/dist/modules/import-export/tools.d.ts +22 -0
- package/dist/modules/import-export/tools.d.ts.map +1 -0
- package/dist/modules/import-export/tools.js +116 -0
- package/dist/modules/import-export/tools.js.map +1 -0
- package/dist/modules/import-export/validation.d.ts +7 -0
- package/dist/modules/import-export/validation.d.ts.map +1 -0
- package/dist/modules/import-export/validation.js +114 -0
- package/dist/modules/import-export/validation.js.map +1 -0
- package/dist/modules/import-export/writes.d.ts +45 -0
- package/dist/modules/import-export/writes.d.ts.map +1 -0
- package/dist/modules/import-export/writes.js +247 -0
- package/dist/modules/import-export/writes.js.map +1 -0
- package/dist/modules/integrations/schema.d.ts +185 -0
- package/dist/modules/integrations/schema.d.ts.map +1 -0
- package/dist/modules/integrations/schema.js +26 -0
- package/dist/modules/integrations/schema.js.map +1 -0
- package/dist/modules/mcp/index.d.ts +26 -0
- package/dist/modules/mcp/index.d.ts.map +1 -0
- package/dist/modules/mcp/index.js +45 -0
- package/dist/modules/mcp/index.js.map +1 -0
- package/dist/modules/mcp/protocol.d.ts +166 -0
- package/dist/modules/mcp/protocol.d.ts.map +1 -0
- package/dist/modules/mcp/protocol.js +292 -0
- package/dist/modules/mcp/protocol.js.map +1 -0
- package/dist/modules/mcp/router.d.ts +23 -0
- package/dist/modules/mcp/router.d.ts.map +1 -0
- package/dist/modules/mcp/router.js +298 -0
- package/dist/modules/mcp/router.js.map +1 -0
- package/dist/modules/notes/index.d.ts +9 -0
- package/dist/modules/notes/index.d.ts.map +1 -0
- package/dist/modules/notes/index.js +37 -0
- package/dist/modules/notes/index.js.map +1 -0
- package/dist/modules/notes/repository.d.ts +34 -0
- package/dist/modules/notes/repository.d.ts.map +1 -0
- package/dist/modules/notes/repository.js +70 -0
- package/dist/modules/notes/repository.js.map +1 -0
- package/dist/modules/notes/routes.d.ts +37 -0
- package/dist/modules/notes/routes.d.ts.map +1 -0
- package/dist/modules/notes/routes.js +124 -0
- package/dist/modules/notes/routes.js.map +1 -0
- package/dist/modules/notes/schema.d.ts +176 -0
- package/dist/modules/notes/schema.d.ts.map +1 -0
- package/dist/modules/notes/schema.js +35 -0
- package/dist/modules/notes/schema.js.map +1 -0
- package/dist/modules/notes/service.d.ts +49 -0
- package/dist/modules/notes/service.d.ts.map +1 -0
- package/dist/modules/notes/service.js +118 -0
- package/dist/modules/notes/service.js.map +1 -0
- package/dist/modules/notes/tools.d.ts +4 -0
- package/dist/modules/notes/tools.d.ts.map +1 -0
- package/dist/modules/notes/tools.js +41 -0
- package/dist/modules/notes/tools.js.map +1 -0
- package/dist/modules/opportunities/index.d.ts +11 -0
- package/dist/modules/opportunities/index.d.ts.map +1 -0
- package/dist/modules/opportunities/index.js +38 -0
- package/dist/modules/opportunities/index.js.map +1 -0
- package/dist/modules/opportunities/repository.d.ts +28 -0
- package/dist/modules/opportunities/repository.d.ts.map +1 -0
- package/dist/modules/opportunities/repository.js +89 -0
- package/dist/modules/opportunities/repository.js.map +1 -0
- package/dist/modules/opportunities/routes.d.ts +39 -0
- package/dist/modules/opportunities/routes.d.ts.map +1 -0
- package/dist/modules/opportunities/routes.js +104 -0
- package/dist/modules/opportunities/routes.js.map +1 -0
- package/dist/modules/opportunities/schema.d.ts +266 -0
- package/dist/modules/opportunities/schema.d.ts.map +1 -0
- package/dist/modules/opportunities/schema.js +41 -0
- package/dist/modules/opportunities/schema.js.map +1 -0
- package/dist/modules/opportunities/service.d.ts +60 -0
- package/dist/modules/opportunities/service.d.ts.map +1 -0
- package/dist/modules/opportunities/service.js +212 -0
- package/dist/modules/opportunities/service.js.map +1 -0
- package/dist/modules/opportunities/tools.d.ts +4 -0
- package/dist/modules/opportunities/tools.d.ts.map +1 -0
- package/dist/modules/opportunities/tools.js +33 -0
- package/dist/modules/opportunities/tools.js.map +1 -0
- package/dist/modules/partnerships/index.d.ts +11 -0
- package/dist/modules/partnerships/index.d.ts.map +1 -0
- package/dist/modules/partnerships/index.js +38 -0
- package/dist/modules/partnerships/index.js.map +1 -0
- package/dist/modules/partnerships/repository.d.ts +47 -0
- package/dist/modules/partnerships/repository.d.ts.map +1 -0
- package/dist/modules/partnerships/repository.js +169 -0
- package/dist/modules/partnerships/repository.js.map +1 -0
- package/dist/modules/partnerships/routes.d.ts +46 -0
- package/dist/modules/partnerships/routes.d.ts.map +1 -0
- package/dist/modules/partnerships/routes.js +122 -0
- package/dist/modules/partnerships/routes.js.map +1 -0
- package/dist/modules/partnerships/schema.d.ts +338 -0
- package/dist/modules/partnerships/schema.d.ts.map +1 -0
- package/dist/modules/partnerships/schema.js +54 -0
- package/dist/modules/partnerships/schema.js.map +1 -0
- package/dist/modules/partnerships/service.d.ts +71 -0
- package/dist/modules/partnerships/service.d.ts.map +1 -0
- package/dist/modules/partnerships/service.js +273 -0
- package/dist/modules/partnerships/service.js.map +1 -0
- package/dist/modules/partnerships/tools.d.ts +4 -0
- package/dist/modules/partnerships/tools.d.ts.map +1 -0
- package/dist/modules/partnerships/tools.js +35 -0
- package/dist/modules/partnerships/tools.js.map +1 -0
- package/dist/modules/people/index.d.ts +9 -0
- package/dist/modules/people/index.d.ts.map +1 -0
- package/dist/modules/people/index.js +37 -0
- package/dist/modules/people/index.js.map +1 -0
- package/dist/modules/people/repository.d.ts +31 -0
- package/dist/modules/people/repository.d.ts.map +1 -0
- package/dist/modules/people/repository.js +109 -0
- package/dist/modules/people/repository.js.map +1 -0
- package/dist/modules/people/routes.d.ts +111 -0
- package/dist/modules/people/routes.d.ts.map +1 -0
- package/dist/modules/people/routes.js +134 -0
- package/dist/modules/people/routes.js.map +1 -0
- package/dist/modules/people/schema.d.ts +354 -0
- package/dist/modules/people/schema.d.ts.map +1 -0
- package/dist/modules/people/schema.js +61 -0
- package/dist/modules/people/schema.js.map +1 -0
- package/dist/modules/people/service.d.ts +56 -0
- package/dist/modules/people/service.d.ts.map +1 -0
- package/dist/modules/people/service.js +190 -0
- package/dist/modules/people/service.js.map +1 -0
- package/dist/modules/people/tools.d.ts +4 -0
- package/dist/modules/people/tools.d.ts.map +1 -0
- package/dist/modules/people/tools.js +27 -0
- package/dist/modules/people/tools.js.map +1 -0
- package/dist/modules/pipelines/index.d.ts +9 -0
- package/dist/modules/pipelines/index.d.ts.map +1 -0
- package/dist/modules/pipelines/index.js +37 -0
- package/dist/modules/pipelines/index.js.map +1 -0
- package/dist/modules/pipelines/repository.d.ts +26 -0
- package/dist/modules/pipelines/repository.d.ts.map +1 -0
- package/dist/modules/pipelines/repository.js +67 -0
- package/dist/modules/pipelines/repository.js.map +1 -0
- package/dist/modules/pipelines/routes.d.ts +33 -0
- package/dist/modules/pipelines/routes.d.ts.map +1 -0
- package/dist/modules/pipelines/routes.js +98 -0
- package/dist/modules/pipelines/routes.js.map +1 -0
- package/dist/modules/pipelines/schema.d.ts +170 -0
- package/dist/modules/pipelines/schema.d.ts.map +1 -0
- package/dist/modules/pipelines/schema.js +30 -0
- package/dist/modules/pipelines/schema.js.map +1 -0
- package/dist/modules/pipelines/service.d.ts +49 -0
- package/dist/modules/pipelines/service.d.ts.map +1 -0
- package/dist/modules/pipelines/service.js +227 -0
- package/dist/modules/pipelines/service.js.map +1 -0
- package/dist/modules/pipelines/tools.d.ts +4 -0
- package/dist/modules/pipelines/tools.d.ts.map +1 -0
- package/dist/modules/pipelines/tools.js +43 -0
- package/dist/modules/pipelines/tools.js.map +1 -0
- package/dist/modules/plans/index.d.ts +10 -0
- package/dist/modules/plans/index.d.ts.map +1 -0
- package/dist/modules/plans/index.js +33 -0
- package/dist/modules/plans/index.js.map +1 -0
- package/dist/modules/plans/repository.d.ts +49 -0
- package/dist/modules/plans/repository.d.ts.map +1 -0
- package/dist/modules/plans/repository.js +94 -0
- package/dist/modules/plans/repository.js.map +1 -0
- package/dist/modules/plans/routes.d.ts +46 -0
- package/dist/modules/plans/routes.d.ts.map +1 -0
- package/dist/modules/plans/routes.js +152 -0
- package/dist/modules/plans/routes.js.map +1 -0
- package/dist/modules/plans/schema.d.ts +209 -0
- package/dist/modules/plans/schema.d.ts.map +1 -0
- package/dist/modules/plans/schema.js +37 -0
- package/dist/modules/plans/schema.js.map +1 -0
- package/dist/modules/plans/service.d.ts +57 -0
- package/dist/modules/plans/service.d.ts.map +1 -0
- package/dist/modules/plans/service.js +125 -0
- package/dist/modules/plans/service.js.map +1 -0
- package/dist/modules/plans/tools.d.ts +4 -0
- package/dist/modules/plans/tools.d.ts.map +1 -0
- package/dist/modules/plans/tools.js +39 -0
- package/dist/modules/plans/tools.js.map +1 -0
- package/dist/modules/positions/index.d.ts +9 -0
- package/dist/modules/positions/index.d.ts.map +1 -0
- package/dist/modules/positions/index.js +36 -0
- package/dist/modules/positions/index.js.map +1 -0
- package/dist/modules/positions/repository.d.ts +34 -0
- package/dist/modules/positions/repository.d.ts.map +1 -0
- package/dist/modules/positions/repository.js +71 -0
- package/dist/modules/positions/repository.js.map +1 -0
- package/dist/modules/positions/routes.d.ts +22 -0
- package/dist/modules/positions/routes.d.ts.map +1 -0
- package/dist/modules/positions/routes.js +56 -0
- package/dist/modules/positions/routes.js.map +1 -0
- package/dist/modules/positions/schema.d.ts +154 -0
- package/dist/modules/positions/schema.d.ts.map +1 -0
- package/dist/modules/positions/schema.js +36 -0
- package/dist/modules/positions/schema.js.map +1 -0
- package/dist/modules/positions/service.d.ts +46 -0
- package/dist/modules/positions/service.d.ts.map +1 -0
- package/dist/modules/positions/service.js +159 -0
- package/dist/modules/positions/service.js.map +1 -0
- package/dist/modules/positions/tools.d.ts +4 -0
- package/dist/modules/positions/tools.d.ts.map +1 -0
- package/dist/modules/positions/tools.js +26 -0
- package/dist/modules/positions/tools.js.map +1 -0
- package/dist/modules/raises/index.d.ts +11 -0
- package/dist/modules/raises/index.d.ts.map +1 -0
- package/dist/modules/raises/index.js +38 -0
- package/dist/modules/raises/index.js.map +1 -0
- package/dist/modules/raises/repository.d.ts +48 -0
- package/dist/modules/raises/repository.d.ts.map +1 -0
- package/dist/modules/raises/repository.js +164 -0
- package/dist/modules/raises/repository.js.map +1 -0
- package/dist/modules/raises/routes.d.ts +48 -0
- package/dist/modules/raises/routes.d.ts.map +1 -0
- package/dist/modules/raises/routes.js +126 -0
- package/dist/modules/raises/routes.js.map +1 -0
- package/dist/modules/raises/schema.d.ts +356 -0
- package/dist/modules/raises/schema.d.ts.map +1 -0
- package/dist/modules/raises/schema.js +55 -0
- package/dist/modules/raises/schema.js.map +1 -0
- package/dist/modules/raises/service.d.ts +79 -0
- package/dist/modules/raises/service.d.ts.map +1 -0
- package/dist/modules/raises/service.js +275 -0
- package/dist/modules/raises/service.js.map +1 -0
- package/dist/modules/raises/tools.d.ts +4 -0
- package/dist/modules/raises/tools.d.ts.map +1 -0
- package/dist/modules/raises/tools.js +33 -0
- package/dist/modules/raises/tools.js.map +1 -0
- package/dist/modules/recordTargets.d.ts +55 -0
- package/dist/modules/recordTargets.d.ts.map +1 -0
- package/dist/modules/recordTargets.js +107 -0
- package/dist/modules/recordTargets.js.map +1 -0
- package/dist/modules/references.d.ts +8 -0
- package/dist/modules/references.d.ts.map +1 -0
- package/dist/modules/references.js +40 -0
- package/dist/modules/references.js.map +1 -0
- package/dist/modules/reseal.d.ts +33 -0
- package/dist/modules/reseal.d.ts.map +1 -0
- package/dist/modules/reseal.js +108 -0
- package/dist/modules/reseal.js.map +1 -0
- package/dist/modules/search/index.d.ts +21 -0
- package/dist/modules/search/index.d.ts.map +1 -0
- package/dist/modules/search/index.js +50 -0
- package/dist/modules/search/index.js.map +1 -0
- package/dist/modules/search/query.d.ts +44 -0
- package/dist/modules/search/query.d.ts.map +1 -0
- package/dist/modules/search/query.js +88 -0
- package/dist/modules/search/query.js.map +1 -0
- package/dist/modules/search/repository.d.ts +44 -0
- package/dist/modules/search/repository.d.ts.map +1 -0
- package/dist/modules/search/repository.js +252 -0
- package/dist/modules/search/repository.js.map +1 -0
- package/dist/modules/search/routes.d.ts +17 -0
- package/dist/modules/search/routes.d.ts.map +1 -0
- package/dist/modules/search/routes.js +93 -0
- package/dist/modules/search/routes.js.map +1 -0
- package/dist/modules/search/service.d.ts +55 -0
- package/dist/modules/search/service.d.ts.map +1 -0
- package/dist/modules/search/service.js +69 -0
- package/dist/modules/search/service.js.map +1 -0
- package/dist/modules/search/tools.d.ts +4 -0
- package/dist/modules/search/tools.d.ts.map +1 -0
- package/dist/modules/search/tools.js +52 -0
- package/dist/modules/search/tools.js.map +1 -0
- package/dist/modules/stagedRecords.d.ts +28 -0
- package/dist/modules/stagedRecords.d.ts.map +1 -0
- package/dist/modules/stagedRecords.js +50 -0
- package/dist/modules/stagedRecords.js.map +1 -0
- package/dist/modules/webhooks/delivery.d.ts +98 -0
- package/dist/modules/webhooks/delivery.d.ts.map +1 -0
- package/dist/modules/webhooks/delivery.js +237 -0
- package/dist/modules/webhooks/delivery.js.map +1 -0
- package/dist/modules/webhooks/index.d.ts +23 -0
- package/dist/modules/webhooks/index.d.ts.map +1 -0
- package/dist/modules/webhooks/index.js +48 -0
- package/dist/modules/webhooks/index.js.map +1 -0
- package/dist/modules/webhooks/payloads.d.ts +31 -0
- package/dist/modules/webhooks/payloads.d.ts.map +1 -0
- package/dist/modules/webhooks/payloads.js +52 -0
- package/dist/modules/webhooks/payloads.js.map +1 -0
- package/dist/modules/webhooks/repository.d.ts +70 -0
- package/dist/modules/webhooks/repository.d.ts.map +1 -0
- package/dist/modules/webhooks/repository.js +140 -0
- package/dist/modules/webhooks/repository.js.map +1 -0
- package/dist/modules/webhooks/routes.d.ts +47 -0
- package/dist/modules/webhooks/routes.d.ts.map +1 -0
- package/dist/modules/webhooks/routes.js +170 -0
- package/dist/modules/webhooks/routes.js.map +1 -0
- package/dist/modules/webhooks/schema.d.ts +396 -0
- package/dist/modules/webhooks/schema.d.ts.map +1 -0
- package/dist/modules/webhooks/schema.js +61 -0
- package/dist/modules/webhooks/schema.js.map +1 -0
- package/dist/modules/webhooks/service.d.ts +65 -0
- package/dist/modules/webhooks/service.d.ts.map +1 -0
- package/dist/modules/webhooks/service.js +202 -0
- package/dist/modules/webhooks/service.js.map +1 -0
- package/dist/modules/webhooks/signing.d.ts +57 -0
- package/dist/modules/webhooks/signing.d.ts.map +1 -0
- package/dist/modules/webhooks/signing.js +69 -0
- package/dist/modules/webhooks/signing.js.map +1 -0
- package/dist/modules/webhooks/tools.d.ts +4 -0
- package/dist/modules/webhooks/tools.d.ts.map +1 -0
- package/dist/modules/webhooks/tools.js +77 -0
- package/dist/modules/webhooks/tools.js.map +1 -0
- package/dist/modules/webhooks/url.d.ts +10 -0
- package/dist/modules/webhooks/url.d.ts.map +1 -0
- package/dist/modules/webhooks/url.js +9 -0
- package/dist/modules/webhooks/url.js.map +1 -0
- package/dist/modules/workspace/capabilities.d.ts +9 -0
- package/dist/modules/workspace/capabilities.d.ts.map +1 -0
- package/dist/modules/workspace/capabilities.js +12 -0
- package/dist/modules/workspace/capabilities.js.map +1 -0
- package/dist/modules/workspace/idempotencyMiddleware.d.ts +16 -0
- package/dist/modules/workspace/idempotencyMiddleware.d.ts.map +1 -0
- package/dist/modules/workspace/idempotencyMiddleware.js +142 -0
- package/dist/modules/workspace/idempotencyMiddleware.js.map +1 -0
- package/dist/modules/workspace/idempotencyRepository.d.ts +43 -0
- package/dist/modules/workspace/idempotencyRepository.d.ts.map +1 -0
- package/dist/modules/workspace/idempotencyRepository.js +75 -0
- package/dist/modules/workspace/idempotencyRepository.js.map +1 -0
- package/dist/modules/workspace/index.d.ts +9 -0
- package/dist/modules/workspace/index.d.ts.map +1 -0
- package/dist/modules/workspace/index.js +53 -0
- package/dist/modules/workspace/index.js.map +1 -0
- package/dist/modules/workspace/repository.d.ts +112 -0
- package/dist/modules/workspace/repository.d.ts.map +1 -0
- package/dist/modules/workspace/repository.js +266 -0
- package/dist/modules/workspace/repository.js.map +1 -0
- package/dist/modules/workspace/roles.d.ts +22 -0
- package/dist/modules/workspace/roles.d.ts.map +1 -0
- package/dist/modules/workspace/roles.js +31 -0
- package/dist/modules/workspace/roles.js.map +1 -0
- package/dist/modules/workspace/routes.d.ts +41 -0
- package/dist/modules/workspace/routes.d.ts.map +1 -0
- package/dist/modules/workspace/routes.js +158 -0
- package/dist/modules/workspace/routes.js.map +1 -0
- package/dist/modules/workspace/schema.d.ts +719 -0
- package/dist/modules/workspace/schema.d.ts.map +1 -0
- package/dist/modules/workspace/schema.js +102 -0
- package/dist/modules/workspace/schema.js.map +1 -0
- package/dist/modules/workspace/service.d.ts +94 -0
- package/dist/modules/workspace/service.d.ts.map +1 -0
- package/dist/modules/workspace/service.js +528 -0
- package/dist/modules/workspace/service.js.map +1 -0
- package/dist/modules/workspace/starters.d.ts +22 -0
- package/dist/modules/workspace/starters.d.ts.map +1 -0
- package/dist/modules/workspace/starters.js +56 -0
- package/dist/modules/workspace/starters.js.map +1 -0
- package/dist/modules/workspace/tools.d.ts +4 -0
- package/dist/modules/workspace/tools.d.ts.map +1 -0
- package/dist/modules/workspace/tools.js +95 -0
- package/dist/modules/workspace/tools.js.map +1 -0
- package/dist/runtime/entitlements.d.ts +66 -0
- package/dist/runtime/entitlements.d.ts.map +1 -0
- package/dist/runtime/entitlements.js +62 -0
- package/dist/runtime/entitlements.js.map +1 -0
- package/dist/runtime/events.d.ts +139 -0
- package/dist/runtime/events.d.ts.map +1 -0
- package/dist/runtime/events.js +98 -0
- package/dist/runtime/events.js.map +1 -0
- package/dist/runtime/migrate.d.ts +28 -0
- package/dist/runtime/migrate.d.ts.map +1 -0
- package/dist/runtime/migrate.js +43 -0
- package/dist/runtime/migrate.js.map +1 -0
- package/dist/runtime/module.d.ts +138 -0
- package/dist/runtime/module.d.ts.map +1 -0
- package/dist/runtime/module.js +2 -0
- package/dist/runtime/module.js.map +1 -0
- package/dist/runtime/moduleConfig.d.ts +21 -0
- package/dist/runtime/moduleConfig.d.ts.map +1 -0
- package/dist/runtime/moduleConfig.js +54 -0
- package/dist/runtime/moduleConfig.js.map +1 -0
- package/dist/runtime/order.d.ts +21 -0
- package/dist/runtime/order.d.ts.map +1 -0
- package/dist/runtime/order.js +72 -0
- package/dist/runtime/order.js.map +1 -0
- package/dist/runtime/registry.d.ts +66 -0
- package/dist/runtime/registry.d.ts.map +1 -0
- package/dist/runtime/registry.js +148 -0
- package/dist/runtime/registry.js.map +1 -0
- package/dist/runtime/transaction.d.ts +34 -0
- package/dist/runtime/transaction.d.ts.map +1 -0
- package/dist/runtime/transaction.js +24 -0
- package/dist/runtime/transaction.js.map +1 -0
- package/dist/schema/index.d.ts +30 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +30 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/testing/app.d.ts +42 -0
- package/dist/testing/app.d.ts.map +1 -0
- package/dist/testing/app.js +31 -0
- package/dist/testing/app.js.map +1 -0
- package/dist/testing/client.d.ts +34 -0
- package/dist/testing/client.d.ts.map +1 -0
- package/dist/testing/client.js +70 -0
- package/dist/testing/client.js.map +1 -0
- package/dist/testing/database.d.ts +17 -0
- package/dist/testing/database.d.ts.map +1 -0
- package/dist/testing/database.js +84 -0
- package/dist/testing/database.js.map +1 -0
- package/dist/testing/environment.d.ts +17 -0
- package/dist/testing/environment.d.ts.map +1 -0
- package/dist/testing/environment.js +19 -0
- package/dist/testing/environment.js.map +1 -0
- package/dist/testing/fixtures.d.ts +22 -0
- package/dist/testing/fixtures.d.ts.map +1 -0
- package/dist/testing/fixtures.js +55 -0
- package/dist/testing/fixtures.js.map +1 -0
- package/dist/testing/index.d.ts +10 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +6 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/services.d.ts +18 -0
- package/dist/testing/services.d.ts.map +1 -0
- package/dist/testing/services.js +43 -0
- package/dist/testing/services.js.map +1 -0
- package/migrations/0000_initial_schema.sql +597 -0
- package/migrations/0001_uneven_lockjaw.sql +11 -0
- package/migrations/0002_neat_madame_web.sql +2 -0
- package/migrations/0003_bright_shockwave.sql +1 -0
- package/migrations/0004_drop_unused_import_columns.sql +2 -0
- package/migrations/0005_import_job_rows.sql +23 -0
- package/migrations/0006_drop_webhook_secret_hash.sql +1 -0
- package/migrations/0007_add_webhook_secret_encrypted.sql +1 -0
- package/migrations/0008_rich_mister_sinister.sql +3 -0
- package/migrations/0009_natural_proemial_gods.sql +1 -0
- package/migrations/0010_fine_brood.sql +1 -0
- package/migrations/0011_add_webhook_previous_secret.sql +2 -0
- package/migrations/0012_idempotency_keys_response_nullable.sql +1 -0
- package/migrations/0013_add_agent_run_failure_reason.sql +1 -0
- package/migrations/0014_right_shinko_yamashiro.sql +12 -0
- package/migrations/0015_peaceful_chimera.sql +33 -0
- package/migrations/meta/0000_snapshot.json +4467 -0
- package/migrations/meta/0001_snapshot.json +4539 -0
- package/migrations/meta/0002_snapshot.json +4539 -0
- package/migrations/meta/0003_snapshot.json +4544 -0
- package/migrations/meta/0004_snapshot.json +4531 -0
- package/migrations/meta/0005_snapshot.json +4674 -0
- package/migrations/meta/0006_snapshot.json +4668 -0
- package/migrations/meta/0007_snapshot.json +4674 -0
- package/migrations/meta/0008_snapshot.json +4694 -0
- package/migrations/meta/0009_snapshot.json +4700 -0
- package/migrations/meta/0010_snapshot.json +4694 -0
- package/migrations/meta/0011_snapshot.json +4706 -0
- package/migrations/meta/0012_snapshot.json +4706 -0
- package/migrations/meta/0013_snapshot.json +4712 -0
- package/migrations/meta/0014_snapshot.json +4802 -0
- package/migrations/meta/0015_snapshot.json +5077 -0
- package/migrations/meta/_journal.json +118 -0
- package/package.json +68 -0
- package/src/app.ts +157 -0
- package/src/index.ts +113 -0
- package/src/lib/actor.ts +99 -0
- package/src/lib/changes.ts +43 -0
- package/src/lib/columns.ts +170 -0
- package/src/lib/config.ts +86 -0
- package/src/lib/database.ts +118 -0
- package/src/lib/dates.ts +18 -0
- package/src/lib/email.ts +65 -0
- package/src/lib/errors.ts +156 -0
- package/src/lib/http.ts +109 -0
- package/src/lib/ids.ts +61 -0
- package/src/lib/logger.ts +73 -0
- package/src/lib/moduleConfig.ts +65 -0
- package/src/lib/normalisation.ts +36 -0
- package/src/lib/pagination.ts +291 -0
- package/src/lib/passwords.ts +56 -0
- package/src/lib/search.ts +29 -0
- package/src/lib/secrets.ts +223 -0
- package/src/lib/timezones.ts +59 -0
- package/src/lib/tokens.ts +37 -0
- package/src/lib/url.ts +52 -0
- package/src/modules/activities/index.ts +43 -0
- package/src/modules/activities/recorder.ts +108 -0
- package/src/modules/activities/repository.ts +196 -0
- package/src/modules/activities/routes.ts +78 -0
- package/src/modules/activities/schema.ts +41 -0
- package/src/modules/activities/service.ts +93 -0
- package/src/modules/activities/tools.ts +40 -0
- package/src/modules/activities/wording.ts +168 -0
- package/src/modules/agent-tasks/catalog.ts +712 -0
- package/src/modules/agent-tasks/dispatch.ts +188 -0
- package/src/modules/agent-tasks/index.ts +79 -0
- package/src/modules/agent-tasks/prompt.ts +140 -0
- package/src/modules/agent-tasks/repository.ts +152 -0
- package/src/modules/agent-tasks/resolve.ts +704 -0
- package/src/modules/agent-tasks/routes.ts +260 -0
- package/src/modules/agent-tasks/schema.ts +57 -0
- package/src/modules/agent-tasks/service.ts +370 -0
- package/src/modules/agent-tasks/wire.ts +61 -0
- package/src/modules/api-keys/index.ts +34 -0
- package/src/modules/api-keys/keys.ts +59 -0
- package/src/modules/api-keys/repository.ts +82 -0
- package/src/modules/api-keys/routes.ts +83 -0
- package/src/modules/api-keys/schema.ts +28 -0
- package/src/modules/api-keys/service.ts +152 -0
- package/src/modules/attachedRecords.ts +85 -0
- package/src/modules/auth/actor.ts +17 -0
- package/src/modules/auth/credentials.ts +153 -0
- package/src/modules/auth/index.ts +49 -0
- package/src/modules/auth/preferences.ts +57 -0
- package/src/modules/auth/repository.ts +240 -0
- package/src/modules/auth/routes.ts +247 -0
- package/src/modules/auth/schema.ts +77 -0
- package/src/modules/auth/service.ts +441 -0
- package/src/modules/auth/session.ts +40 -0
- package/src/modules/companies/index.ts +43 -0
- package/src/modules/companies/repository.ts +185 -0
- package/src/modules/companies/routes.ts +170 -0
- package/src/modules/companies/schema.ts +66 -0
- package/src/modules/companies/service.ts +267 -0
- package/src/modules/companies/tools.ts +32 -0
- package/src/modules/core.ts +93 -0
- package/src/modules/crudTools.ts +226 -0
- package/src/modules/dashboard/attention.ts +67 -0
- package/src/modules/dashboard/index.ts +49 -0
- package/src/modules/dashboard/repository.ts +360 -0
- package/src/modules/dashboard/routes.ts +171 -0
- package/src/modules/dashboard/service.ts +449 -0
- package/src/modules/dashboard/tools.ts +39 -0
- package/src/modules/deals/index.ts +44 -0
- package/src/modules/deals/repository.ts +251 -0
- package/src/modules/deals/routes.ts +166 -0
- package/src/modules/deals/schema.ts +72 -0
- package/src/modules/deals/service.ts +433 -0
- package/src/modules/deals/tools.ts +39 -0
- package/src/modules/decisions/index.ts +40 -0
- package/src/modules/decisions/repository.ts +204 -0
- package/src/modules/decisions/routes.ts +184 -0
- package/src/modules/decisions/schema.ts +56 -0
- package/src/modules/decisions/service.ts +223 -0
- package/src/modules/decisions/tools.ts +38 -0
- package/src/modules/forms/embed.ts +274 -0
- package/src/modules/forms/fields.ts +206 -0
- package/src/modules/forms/index.ts +61 -0
- package/src/modules/forms/mapping.ts +222 -0
- package/src/modules/forms/publicRoutes.ts +92 -0
- package/src/modules/forms/repository.ts +223 -0
- package/src/modules/forms/routes.ts +276 -0
- package/src/modules/forms/schema.ts +135 -0
- package/src/modules/forms/service.ts +362 -0
- package/src/modules/forms/submission.ts +496 -0
- package/src/modules/forms/tools.ts +66 -0
- package/src/modules/handbook/index.ts +43 -0
- package/src/modules/handbook/repository.ts +173 -0
- package/src/modules/handbook/routes.ts +145 -0
- package/src/modules/handbook/schema.ts +43 -0
- package/src/modules/handbook/service.ts +399 -0
- package/src/modules/handbook/slugs.ts +54 -0
- package/src/modules/handbook/tools.ts +32 -0
- package/src/modules/handbook/tree.ts +158 -0
- package/src/modules/hiring/candidates.ts +391 -0
- package/src/modules/hiring/index.ts +55 -0
- package/src/modules/hiring/repository.ts +244 -0
- package/src/modules/hiring/roles.ts +174 -0
- package/src/modules/hiring/routes.ts +257 -0
- package/src/modules/hiring/schema.ts +93 -0
- package/src/modules/hiring/tools.ts +73 -0
- package/src/modules/import-export/csv.ts +180 -0
- package/src/modules/import-export/drafts.ts +182 -0
- package/src/modules/import-export/exportRows.ts +85 -0
- package/src/modules/import-export/index.ts +49 -0
- package/src/modules/import-export/mapping.ts +154 -0
- package/src/modules/import-export/plan.ts +311 -0
- package/src/modules/import-export/presets.ts +183 -0
- package/src/modules/import-export/repository.ts +603 -0
- package/src/modules/import-export/routes.ts +276 -0
- package/src/modules/import-export/schema.ts +142 -0
- package/src/modules/import-export/service.ts +842 -0
- package/src/modules/import-export/streams.ts +98 -0
- package/src/modules/import-export/tools.ts +153 -0
- package/src/modules/import-export/validation.ts +163 -0
- package/src/modules/import-export/writes.ts +365 -0
- package/src/modules/integrations/schema.ts +31 -0
- package/src/modules/mcp/index.ts +52 -0
- package/src/modules/mcp/protocol.ts +442 -0
- package/src/modules/mcp/router.ts +425 -0
- package/src/modules/notes/index.ts +43 -0
- package/src/modules/notes/repository.ts +130 -0
- package/src/modules/notes/routes.ts +170 -0
- package/src/modules/notes/schema.ts +42 -0
- package/src/modules/notes/service.ts +204 -0
- package/src/modules/notes/tools.ts +46 -0
- package/src/modules/opportunities/index.ts +44 -0
- package/src/modules/opportunities/repository.ts +157 -0
- package/src/modules/opportunities/routes.ts +152 -0
- package/src/modules/opportunities/schema.ts +47 -0
- package/src/modules/opportunities/service.ts +342 -0
- package/src/modules/opportunities/tools.ts +39 -0
- package/src/modules/partnerships/index.ts +44 -0
- package/src/modules/partnerships/repository.ts +274 -0
- package/src/modules/partnerships/routes.ts +170 -0
- package/src/modules/partnerships/schema.ts +65 -0
- package/src/modules/partnerships/service.ts +442 -0
- package/src/modules/partnerships/tools.ts +41 -0
- package/src/modules/people/index.ts +43 -0
- package/src/modules/people/repository.ts +167 -0
- package/src/modules/people/routes.ts +175 -0
- package/src/modules/people/schema.ts +89 -0
- package/src/modules/people/service.ts +284 -0
- package/src/modules/people/tools.ts +32 -0
- package/src/modules/pipelines/index.ts +43 -0
- package/src/modules/pipelines/repository.ts +116 -0
- package/src/modules/pipelines/routes.ts +157 -0
- package/src/modules/pipelines/schema.ts +37 -0
- package/src/modules/pipelines/service.ts +339 -0
- package/src/modules/pipelines/tools.ts +52 -0
- package/src/modules/plans/index.ts +39 -0
- package/src/modules/plans/repository.ts +174 -0
- package/src/modules/plans/routes.ts +212 -0
- package/src/modules/plans/schema.ts +45 -0
- package/src/modules/plans/service.ts +223 -0
- package/src/modules/plans/tools.ts +45 -0
- package/src/modules/positions/index.ts +42 -0
- package/src/modules/positions/repository.ts +136 -0
- package/src/modules/positions/routes.ts +97 -0
- package/src/modules/positions/schema.ts +42 -0
- package/src/modules/positions/service.ts +253 -0
- package/src/modules/positions/tools.ts +32 -0
- package/src/modules/raises/index.ts +44 -0
- package/src/modules/raises/repository.ts +254 -0
- package/src/modules/raises/routes.ts +160 -0
- package/src/modules/raises/schema.ts +66 -0
- package/src/modules/raises/service.ts +442 -0
- package/src/modules/raises/tools.ts +39 -0
- package/src/modules/recordTargets.ts +194 -0
- package/src/modules/references.ts +44 -0
- package/src/modules/reseal.ts +178 -0
- package/src/modules/search/index.ts +55 -0
- package/src/modules/search/query.ts +104 -0
- package/src/modules/search/repository.ts +388 -0
- package/src/modules/search/routes.ts +131 -0
- package/src/modules/search/service.ts +153 -0
- package/src/modules/search/tools.ts +60 -0
- package/src/modules/stagedRecords.ts +91 -0
- package/src/modules/webhooks/delivery.ts +349 -0
- package/src/modules/webhooks/index.ts +85 -0
- package/src/modules/webhooks/payloads.ts +84 -0
- package/src/modules/webhooks/repository.ts +244 -0
- package/src/modules/webhooks/routes.ts +240 -0
- package/src/modules/webhooks/schema.ts +78 -0
- package/src/modules/webhooks/service.ts +347 -0
- package/src/modules/webhooks/signing.ts +95 -0
- package/src/modules/webhooks/tools.ts +108 -0
- package/src/modules/webhooks/url.ts +21 -0
- package/src/modules/workspace/capabilities.ts +14 -0
- package/src/modules/workspace/idempotencyMiddleware.ts +207 -0
- package/src/modules/workspace/idempotencyRepository.ts +111 -0
- package/src/modules/workspace/index.ts +64 -0
- package/src/modules/workspace/repository.ts +420 -0
- package/src/modules/workspace/roles.ts +38 -0
- package/src/modules/workspace/routes.ts +255 -0
- package/src/modules/workspace/schema.ts +130 -0
- package/src/modules/workspace/service.ts +798 -0
- package/src/modules/workspace/starters.ts +69 -0
- package/src/modules/workspace/tools.ts +141 -0
- package/src/runtime/entitlements.ts +142 -0
- package/src/runtime/events.ts +185 -0
- package/src/runtime/migrate.ts +75 -0
- package/src/runtime/module.ts +147 -0
- package/src/runtime/moduleConfig.ts +68 -0
- package/src/runtime/order.ts +90 -0
- package/src/runtime/registry.ts +263 -0
- package/src/runtime/transaction.ts +80 -0
- package/src/schema/index.ts +30 -0
- package/src/testing/app.ts +79 -0
- package/src/testing/client.ts +118 -0
- package/src/testing/database.ts +106 -0
- package/src/testing/environment.ts +22 -0
- package/src/testing/fixtures.ts +70 -0
- package/src/testing/index.ts +13 -0
- package/src/testing/services.ts +67 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { normaliseDomain, normaliseEmail } from '../../lib/normalisation.js';
|
|
2
|
+
import { companyDraft, dealFieldsDraft, personDraft } from './drafts.js';
|
|
3
|
+
import { buildMatchKey, splitList } from './mapping.js';
|
|
4
|
+
import { aliasedStageSlug } from './presets.js';
|
|
5
|
+
import { validateRow } from './validation.js';
|
|
6
|
+
function error(...errors) {
|
|
7
|
+
return { action: 'error', errors };
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The stage a deal row names, as a stage of this workspace.
|
|
11
|
+
*
|
|
12
|
+
* Its own slug first, then its label, then the vendor alias table. Slug before
|
|
13
|
+
* label because a rename leaves the slug alone, which is the whole reason an
|
|
14
|
+
* import addresses stages by slug (`pipeline_stages` in `schema.md`).
|
|
15
|
+
*/
|
|
16
|
+
function resolveStageId(lookups, raw) {
|
|
17
|
+
const folded = raw.trim().toLowerCase();
|
|
18
|
+
const direct = lookups.dealStageIdByName.get(folded);
|
|
19
|
+
if (direct !== undefined) {
|
|
20
|
+
return direct;
|
|
21
|
+
}
|
|
22
|
+
const aliased = aliasedStageSlug(raw);
|
|
23
|
+
return aliased === undefined ? undefined : lookups.dealStageIdByName.get(aliased);
|
|
24
|
+
}
|
|
25
|
+
function planPosition(context, mapped) {
|
|
26
|
+
const email = normaliseEmail(mapped.person_email ?? '');
|
|
27
|
+
const domain = normaliseDomain(mapped.company_domain ?? '');
|
|
28
|
+
const personId = email === null ? undefined : context.lookups.personIdByEmail.get(email);
|
|
29
|
+
const companyId = domain === null ? undefined : context.lookups.companyIdByDomain.get(domain);
|
|
30
|
+
const problems = [];
|
|
31
|
+
if (personId === undefined) {
|
|
32
|
+
problems.push({ field: 'person_email', message: 'No person here has that address. Import people first' });
|
|
33
|
+
}
|
|
34
|
+
if (companyId === undefined) {
|
|
35
|
+
problems.push({
|
|
36
|
+
field: 'company_domain',
|
|
37
|
+
message: 'No company here has that domain. Import companies first',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (personId === undefined || companyId === undefined) {
|
|
41
|
+
return error(...problems);
|
|
42
|
+
}
|
|
43
|
+
return { object: 'positions', personId, companyId, title: (mapped.title ?? '').trim() };
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A deal's company, stage, owner and contacts.
|
|
47
|
+
*
|
|
48
|
+
* A missing company fails the row rather than creating a stub, per
|
|
49
|
+
* `import-export.md`. An `owner_email` that names nobody in the workspace also
|
|
50
|
+
* fails it: the mockup silently resolves that to the importer, and quietly
|
|
51
|
+
* moving another person's deals onto whoever ran the import is worse data than a
|
|
52
|
+
* refused row. Unmapping the column is the way to import without owners.
|
|
53
|
+
*/
|
|
54
|
+
function planDeal(context, mapped) {
|
|
55
|
+
const problems = [];
|
|
56
|
+
const domain = normaliseDomain(mapped.company_domain ?? '');
|
|
57
|
+
const companyId = domain === null ? undefined : context.lookups.companyIdByDomain.get(domain);
|
|
58
|
+
if (companyId === undefined) {
|
|
59
|
+
problems.push({
|
|
60
|
+
field: 'company_domain',
|
|
61
|
+
message: 'No company here has that domain. Import companies first',
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
const stageId = resolveStageId(context.lookups, mapped.stage ?? '');
|
|
65
|
+
if (stageId === undefined) {
|
|
66
|
+
problems.push({
|
|
67
|
+
field: 'stage',
|
|
68
|
+
message: `"${(mapped.stage ?? '').trim()}" is not a stage of this workspace's deal pipeline`,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
const ownerEmail = normaliseEmail(mapped.owner_email ?? '');
|
|
72
|
+
const ownerId = ownerEmail === null ? null : (context.lookups.memberIdByEmail.get(ownerEmail) ?? null);
|
|
73
|
+
if (ownerEmail !== null && ownerId === null) {
|
|
74
|
+
problems.push({
|
|
75
|
+
field: 'owner_email',
|
|
76
|
+
message: `Nobody in this workspace is ${ownerEmail}. Leave the column unmapped to import without owners`,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
const personIds = [];
|
|
80
|
+
for (const raw of splitList(mapped.person_emails)) {
|
|
81
|
+
const address = normaliseEmail(raw);
|
|
82
|
+
const personId = address === null ? undefined : context.lookups.personIdByEmail.get(address);
|
|
83
|
+
if (personId === undefined) {
|
|
84
|
+
problems.push({ field: 'person_emails', message: `No person here has the address ${raw}` });
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
personIds.push(personId);
|
|
88
|
+
}
|
|
89
|
+
if (problems.length > 0 || companyId === undefined || stageId === undefined) {
|
|
90
|
+
return error(...problems);
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
object: 'deals',
|
|
94
|
+
draft: dealFieldsDraft(mapped),
|
|
95
|
+
companyId,
|
|
96
|
+
stageId,
|
|
97
|
+
ownerId,
|
|
98
|
+
personIds: [...new Set(personIds)],
|
|
99
|
+
setsPeople: (mapped.person_emails ?? '').trim().length > 0,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function isRowPlan(value) {
|
|
103
|
+
return 'action' in value;
|
|
104
|
+
}
|
|
105
|
+
/** Resolves every reference the row names into the write it would perform. */
|
|
106
|
+
function resolveWrite(context, mapped) {
|
|
107
|
+
switch (context.object) {
|
|
108
|
+
case 'companies':
|
|
109
|
+
return { object: 'companies', draft: companyDraft(mapped) };
|
|
110
|
+
case 'people':
|
|
111
|
+
return { object: 'people', draft: personDraft(mapped) };
|
|
112
|
+
case 'positions':
|
|
113
|
+
return planPosition(context, mapped);
|
|
114
|
+
case 'deals':
|
|
115
|
+
return planDeal(context, mapped);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @param mapped The row's cells by Kelpie column, from `mapRow`.
|
|
120
|
+
* @returns What this row would do. `create` when its key matches nothing;
|
|
121
|
+
* otherwise the job's conflict mode decides between `skip` and `update`.
|
|
122
|
+
*/
|
|
123
|
+
export function planRow(context, mapped) {
|
|
124
|
+
const invalid = validateRow(context.object, context.matchKey, mapped);
|
|
125
|
+
if (invalid.length > 0) {
|
|
126
|
+
return error(...invalid);
|
|
127
|
+
}
|
|
128
|
+
const write = resolveWrite(context, mapped);
|
|
129
|
+
if (isRowPlan(write)) {
|
|
130
|
+
return write;
|
|
131
|
+
}
|
|
132
|
+
const key = buildMatchKey(context.matchKey, mapped);
|
|
133
|
+
// Unreachable while every match-key column is required, which `validateRow`
|
|
134
|
+
// enforces. Kept because that coupling lives in another file.
|
|
135
|
+
if (key === null) {
|
|
136
|
+
return error({
|
|
137
|
+
field: context.matchKey.columns[0] ?? 'match_key',
|
|
138
|
+
message: 'The key columns are not all filled in, so this row cannot be matched',
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
const targetId = context.lookups.existing.get(key);
|
|
142
|
+
if (targetId === undefined) {
|
|
143
|
+
return { action: 'create', key, write };
|
|
144
|
+
}
|
|
145
|
+
// An empty string is the placeholder an in-file match carries: the record it
|
|
146
|
+
// matched has not been written yet, so there is no id to report.
|
|
147
|
+
const resolved = targetId.length === 0 ? null : targetId;
|
|
148
|
+
return context.conflictMode === 'update'
|
|
149
|
+
? { action: 'update', key, targetId: resolved, write }
|
|
150
|
+
: { action: 'skip', key, targetId: resolved };
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Plans a whole file.
|
|
154
|
+
*
|
|
155
|
+
* A row that would create a record registers its key, so a later row carrying
|
|
156
|
+
* the same key reads as a match rather than as a second create. That is the
|
|
157
|
+
* in-file duplicate the mockup handles too, and without it a file listing one
|
|
158
|
+
* company twice reports two creates and performs one.
|
|
159
|
+
*/
|
|
160
|
+
export function planRows(context, rows) {
|
|
161
|
+
const existing = new Map(context.lookups.existing);
|
|
162
|
+
const withOverlay = { ...context, lookups: { ...context.lookups, existing } };
|
|
163
|
+
return rows.map((row) => {
|
|
164
|
+
const plan = planRow(withOverlay, row.mapped);
|
|
165
|
+
if (plan.action === 'create') {
|
|
166
|
+
existing.set(plan.key, '');
|
|
167
|
+
}
|
|
168
|
+
return { row: row.row, plan };
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export function countPlans(rows) {
|
|
172
|
+
const counts = { total: rows.length, create: 0, update: 0, skip: 0, error: 0 };
|
|
173
|
+
for (const { plan } of rows) {
|
|
174
|
+
counts[plan.action] += 1;
|
|
175
|
+
}
|
|
176
|
+
return counts;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../src/modules/import-export/plan.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAExE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAsF7C,SAAS,KAAK,CAAC,GAAG,MAAiC;IACjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAA;AACpC,CAAC;AAED;;;;;;GAMG;AACH,SAAS,cAAc,CAAC,OAAsB,EAAE,GAAW;IACzD,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACvC,MAAM,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IAEpD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,MAAM,CAAA;IACf,CAAC;IAED,MAA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AAG,EAAE,IAAI,EAAE,CAAA;IAC/B,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAA2B;IACpD,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAA;IAE9E,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC1B,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ImportColumnMap, ImportObject, ImportSource } from '@kelpie/schemas';
|
|
2
|
+
/**
|
|
3
|
+
* Source packs: the header a vendor's CSV export uses for each Kelpie column,
|
|
4
|
+
* and the stage names their pipelines ship with.
|
|
5
|
+
*
|
|
6
|
+
* Server-side rather than in `@kelpie/schemas`, because a caller sends a
|
|
7
|
+
* `column_map` and never needs to know how one was derived. The endpoint derives
|
|
8
|
+
* it when the request omits it, which is what keeps an agent from having to
|
|
9
|
+
* reimplement any of this.
|
|
10
|
+
*
|
|
11
|
+
* Ported from `mockups/src/data/importExport.ts`. Pure.
|
|
12
|
+
*/
|
|
13
|
+
type SourcePreset = Partial<Record<ImportObject, Readonly<Record<string, string>>>>;
|
|
14
|
+
export declare const SOURCE_PRESETS: Readonly<Record<ImportSource, SourcePreset>>;
|
|
15
|
+
/**
|
|
16
|
+
* Vendor deal-stage names, reduced to the slug of a Kelpie starter stage.
|
|
17
|
+
*
|
|
18
|
+
* This is an alias table, not the answer: the slug it produces is looked up
|
|
19
|
+
* against the workspace's own deal pipeline, which a workspace is free to have
|
|
20
|
+
* renamed or rebuilt. A slug with no stage behind it is a row error.
|
|
21
|
+
*
|
|
22
|
+
* Keys are compared after the normalisation in `stageAliasKeys`, so one entry
|
|
23
|
+
* covers `Closed Won`, `closedwon` and `closed_won`.
|
|
24
|
+
*/
|
|
25
|
+
export declare const DEAL_STAGE_ALIASES: Readonly<Record<string, string>>;
|
|
26
|
+
/** @returns The Kelpie stage slug a vendor name aliases to, or undefined. */
|
|
27
|
+
export declare function aliasedStageSlug(raw: string): string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The column map to use when a request sends none.
|
|
30
|
+
*
|
|
31
|
+
* The source's preset wins, then an exact header match ignoring case, then the
|
|
32
|
+
* column is left unmapped. Preset first because a HubSpot file has both a
|
|
33
|
+
* `Name` and a `Company Domain Name`, and the preset knows which is which.
|
|
34
|
+
*
|
|
35
|
+
* @param headers The file's own header row.
|
|
36
|
+
*/
|
|
37
|
+
export declare function defaultColumnMap(source: ImportSource, object: ImportObject, headers: readonly string[]): ImportColumnMap;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/modules/import-export/presets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAElF;;;;;;;;;;GAUG;AAEH,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;AAEnF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,CA6DvE,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkB/D,CAAA;AAsCD,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,SAAS,MAAM,EAAE,GACzB,eAAe,CAkBjB"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { OBJECT_COLUMNS } from '@kelpie/schemas';
|
|
2
|
+
export const SOURCE_PRESETS = {
|
|
3
|
+
custom: {},
|
|
4
|
+
hubspot: {
|
|
5
|
+
companies: {
|
|
6
|
+
name: 'Name',
|
|
7
|
+
domain: 'Company Domain Name',
|
|
8
|
+
industry: 'Industry',
|
|
9
|
+
website: 'Website URL',
|
|
10
|
+
hq: 'City',
|
|
11
|
+
description: 'Description',
|
|
12
|
+
},
|
|
13
|
+
people: {
|
|
14
|
+
name: 'Full Name',
|
|
15
|
+
email: 'Email',
|
|
16
|
+
phones: 'Phone Number',
|
|
17
|
+
location: 'City',
|
|
18
|
+
},
|
|
19
|
+
positions: {
|
|
20
|
+
person_email: 'Email',
|
|
21
|
+
company_domain: 'Company Domain Name',
|
|
22
|
+
title: 'Job Title',
|
|
23
|
+
},
|
|
24
|
+
deals: {
|
|
25
|
+
name: 'Deal Name',
|
|
26
|
+
company_domain: 'Associated Company Domain',
|
|
27
|
+
stage: 'Deal Stage',
|
|
28
|
+
value: 'Amount',
|
|
29
|
+
owner_email: 'Owner Email',
|
|
30
|
+
expected_close: 'Close Date',
|
|
31
|
+
external_id: 'Record ID',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
salesforce: {
|
|
35
|
+
companies: {
|
|
36
|
+
name: 'Account Name',
|
|
37
|
+
domain: 'Website',
|
|
38
|
+
industry: 'Industry',
|
|
39
|
+
hq: 'Billing City',
|
|
40
|
+
description: 'Description',
|
|
41
|
+
},
|
|
42
|
+
people: {
|
|
43
|
+
name: 'Full Name',
|
|
44
|
+
email: 'Email',
|
|
45
|
+
phones: 'Phone',
|
|
46
|
+
location: 'Mailing City',
|
|
47
|
+
},
|
|
48
|
+
positions: {
|
|
49
|
+
person_email: 'Email',
|
|
50
|
+
company_domain: 'Account Website',
|
|
51
|
+
title: 'Title',
|
|
52
|
+
},
|
|
53
|
+
deals: {
|
|
54
|
+
name: 'Opportunity Name',
|
|
55
|
+
company_domain: 'Account Website',
|
|
56
|
+
stage: 'Stage',
|
|
57
|
+
value: 'Amount',
|
|
58
|
+
owner_email: 'Owner Email',
|
|
59
|
+
expected_close: 'Close Date',
|
|
60
|
+
external_id: 'Opportunity ID',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Vendor deal-stage names, reduced to the slug of a Kelpie starter stage.
|
|
66
|
+
*
|
|
67
|
+
* This is an alias table, not the answer: the slug it produces is looked up
|
|
68
|
+
* against the workspace's own deal pipeline, which a workspace is free to have
|
|
69
|
+
* renamed or rebuilt. A slug with no stage behind it is a row error.
|
|
70
|
+
*
|
|
71
|
+
* Keys are compared after the normalisation in `stageAliasKeys`, so one entry
|
|
72
|
+
* covers `Closed Won`, `closedwon` and `closed_won`.
|
|
73
|
+
*/
|
|
74
|
+
export const DEAL_STAGE_ALIASES = {
|
|
75
|
+
qualifying: 'qualifying',
|
|
76
|
+
qualification: 'qualifying',
|
|
77
|
+
prospecting: 'qualifying',
|
|
78
|
+
appointment_scheduled: 'qualifying',
|
|
79
|
+
qualified_to_buy: 'qualifying',
|
|
80
|
+
proposal: 'proposal',
|
|
81
|
+
presentation_scheduled: 'proposal',
|
|
82
|
+
proposal_price_quote: 'proposal',
|
|
83
|
+
value_proposition: 'proposal',
|
|
84
|
+
negotiation: 'negotiation',
|
|
85
|
+
negotiation_review: 'negotiation',
|
|
86
|
+
decision_maker_bought_in: 'negotiation',
|
|
87
|
+
perception_analysis: 'negotiation',
|
|
88
|
+
won: 'won',
|
|
89
|
+
closed_won: 'won',
|
|
90
|
+
lost: 'lost',
|
|
91
|
+
closed_lost: 'lost',
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* A stage name with every separator removed.
|
|
95
|
+
*
|
|
96
|
+
* Vendors write one stage several ways — `Closed Won`, `closed_won`,
|
|
97
|
+
* `CLOSEDWON` — and squashing all of them to `closedwon` makes them one key. It
|
|
98
|
+
* is the only form that works on `closedwon`, which has no separator left to
|
|
99
|
+
* split on.
|
|
100
|
+
*/
|
|
101
|
+
function squash(raw) {
|
|
102
|
+
return raw.trim().toLowerCase().replace(/[\s_\-/]+/gu, '');
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The alias table indexed by squashed name, built once.
|
|
106
|
+
*
|
|
107
|
+
* Two entries squashing to the same key would be one entry with the last
|
|
108
|
+
* definition winning, so the build refuses it rather than silently dropping an
|
|
109
|
+
* alias somebody wrote on purpose.
|
|
110
|
+
*/
|
|
111
|
+
const ALIASES_BY_SQUASHED_NAME = (() => {
|
|
112
|
+
const index = new Map();
|
|
113
|
+
for (const [name, slug] of Object.entries(DEAL_STAGE_ALIASES)) {
|
|
114
|
+
const key = squash(name);
|
|
115
|
+
const existing = index.get(key);
|
|
116
|
+
if (existing !== undefined && existing !== slug) {
|
|
117
|
+
throw new Error(`Deal stage aliases "${name}" and another both reduce to "${key}"`);
|
|
118
|
+
}
|
|
119
|
+
index.set(key, slug);
|
|
120
|
+
}
|
|
121
|
+
return index;
|
|
122
|
+
})();
|
|
123
|
+
/** @returns The Kelpie stage slug a vendor name aliases to, or undefined. */
|
|
124
|
+
export function aliasedStageSlug(raw) {
|
|
125
|
+
return ALIASES_BY_SQUASHED_NAME.get(squash(raw));
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The column map to use when a request sends none.
|
|
129
|
+
*
|
|
130
|
+
* The source's preset wins, then an exact header match ignoring case, then the
|
|
131
|
+
* column is left unmapped. Preset first because a HubSpot file has both a
|
|
132
|
+
* `Name` and a `Company Domain Name`, and the preset knows which is which.
|
|
133
|
+
*
|
|
134
|
+
* @param headers The file's own header row.
|
|
135
|
+
*/
|
|
136
|
+
export function defaultColumnMap(source, object, headers) {
|
|
137
|
+
const preset = SOURCE_PRESETS[source][object] ?? {};
|
|
138
|
+
const present = new Set(headers);
|
|
139
|
+
const map = {};
|
|
140
|
+
for (const column of OBJECT_COLUMNS[object]) {
|
|
141
|
+
const fromPreset = preset[column.key];
|
|
142
|
+
if (fromPreset !== undefined && present.has(fromPreset)) {
|
|
143
|
+
map[column.key] = fromPreset;
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
map[column.key] =
|
|
147
|
+
headers.find((header) => header.toLowerCase() === column.key.toLowerCase()) ?? null;
|
|
148
|
+
}
|
|
149
|
+
return map;
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=presets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../../src/modules/import-export/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAiBhD,MAAM,CAAC,MAAM,cAAc,GAAiD;IAC1E,MAAM,EAAE,EAAE;IACV,OAAO,EAAE;QACP,SAAS,EAAE;YACT,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,qBAAqB;YAC7B,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,aAAa;YACtB,EAAE,EAAE,MAAM;YACV,WAAW,EAAE,aAAa;SAC3B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,cAAc;YACtB,QAAQ,EAAE,MAAM;SACjB;QACD,SAAS,EAAE;YACT,YAAY,EAAE,OAAO;YACrB,cAAc,EAAE,qBAAqB;YACrC,KAAK,EAAE,WAAW;SACnB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,WAAW;YACjB,cAAc,EAAE,2BAA2B;YAC3C,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,aAAa;YAC1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AG,CAAC,CAAA;QAErC,IAAI,UAAU,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;YACxD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,UAAU,CAAA;YAC5B,SAAQ;QACV,CAAC;QAED,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC;YACb,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,IAAI,CAAA;IACvF,CAAC;IAED,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { Queryable } from '../../runtime/transaction.ts';
|
|
2
|
+
import type { MatchKeyParts } from './mapping.ts';
|
|
3
|
+
import { importJobRows, importJobs } from './schema.ts';
|
|
4
|
+
import type { SettledRowAction } from './schema.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Import job storage, the lookups a plan resolves against, and the paged reads
|
|
7
|
+
* an export streams.
|
|
8
|
+
*
|
|
9
|
+
* The lookup functions read the `people`, `companies`, `positions`, `deals`,
|
|
10
|
+
* `pipeline_stages` and `workspace_members` **tables** rather than their
|
|
11
|
+
* repositories. That is the cross-relation rule in `architecture.md`: an import
|
|
12
|
+
* asks one question about ten thousand rows at a time, and composing sibling
|
|
13
|
+
* repositories would answer it one record per round trip.
|
|
14
|
+
*/
|
|
15
|
+
export type ImportJobRecord = typeof importJobs.$inferSelect;
|
|
16
|
+
export type ImportJobColumns = typeof importJobs.$inferInsert;
|
|
17
|
+
export type ImportJobRowRecord = typeof importJobRows.$inferSelect;
|
|
18
|
+
export type ImportJobRowColumns = typeof importJobRows.$inferInsert;
|
|
19
|
+
/** How many records an export reads per round trip. */
|
|
20
|
+
export declare const EXPORT_PAGE = 500;
|
|
21
|
+
export declare function insertJob(db: Queryable, values: ImportJobColumns): Promise<ImportJobRecord>;
|
|
22
|
+
export declare function findJob(db: Queryable, workspaceId: string, id: string): Promise<ImportJobRecord | undefined>;
|
|
23
|
+
export declare function updateJob(db: Queryable, workspaceId: string, id: string, changes: Partial<ImportJobColumns>): Promise<ImportJobRecord | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Moves a job from one status to another, and says whether it was there to move.
|
|
26
|
+
*
|
|
27
|
+
* The `from` predicate is what makes a commit safe to race: two requests both
|
|
28
|
+
* reading `ready` will both try this, and only the one whose `UPDATE` matched a
|
|
29
|
+
* row proceeds. Checking the status in a separate `SELECT` first would leave the
|
|
30
|
+
* window between the two open.
|
|
31
|
+
*
|
|
32
|
+
* @returns The moved row, or undefined when the job was in some other status.
|
|
33
|
+
*/
|
|
34
|
+
export declare function moveJobStatus(db: Queryable, workspaceId: string, id: string, from: string, changes: Partial<ImportJobColumns>): Promise<ImportJobRecord | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Removes a job that is in one of `deletableStatuses`, taking its rows with it
|
|
37
|
+
* through the `import_job_rows` cascade.
|
|
38
|
+
*
|
|
39
|
+
* The status lives in the predicate for the same reason it does in
|
|
40
|
+
* `moveJobStatus`: reading the status and then deleting would leave the window
|
|
41
|
+
* between the two open, and what fits in that window is a commit claiming the
|
|
42
|
+
* job and starting to write records against it.
|
|
43
|
+
*
|
|
44
|
+
* @returns How many jobs matched, which is 0 or 1. Zero means the job is gone or
|
|
45
|
+
* is in a status this delete may not touch, and the caller tells those apart.
|
|
46
|
+
*/
|
|
47
|
+
export declare function deleteJob(db: Queryable, workspaceId: string, id: string, deletableStatuses: readonly string[]): Promise<number>;
|
|
48
|
+
/** What a commit did to one line. Never `pending`: it has been applied. */
|
|
49
|
+
export interface RowOutcome {
|
|
50
|
+
readonly rowNumber: number;
|
|
51
|
+
readonly action: SettledRowAction;
|
|
52
|
+
readonly errors: readonly {
|
|
53
|
+
readonly field: string;
|
|
54
|
+
readonly message: string;
|
|
55
|
+
}[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Records what the commit did to one line, as it does it.
|
|
59
|
+
*
|
|
60
|
+
* `onConflictDoUpdate` on the job and line, so re-running an interrupted commit
|
|
61
|
+
* overwrites the outcome of a line it already reached rather than failing on the
|
|
62
|
+
* primary key. That is the same idempotency the writes themselves have, and
|
|
63
|
+
* without it a commit could not be re-run at all.
|
|
64
|
+
*/
|
|
65
|
+
export declare function recordRowOutcome(db: Queryable, workspaceId: string, jobId: string, values: Readonly<Record<string, string>>, outcome: RowOutcome, now: Date): Promise<void>;
|
|
66
|
+
/** A stored record reduced to what a match key is built from. */
|
|
67
|
+
export interface KeyedRecord {
|
|
68
|
+
readonly id: string;
|
|
69
|
+
readonly parts: MatchKeyParts;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Candidates for a company match, by whichever component the key uses.
|
|
73
|
+
*
|
|
74
|
+
* Both filters run because a file can be keyed either way and the caller passes
|
|
75
|
+
* only the values its key needs; the other array is empty and its query never
|
|
76
|
+
* runs. `lower(name) in (…)` rather than `ilike`: a name is caller data, and
|
|
77
|
+
* `ilike` would read a `%` inside one as a wildcard. Same rule as
|
|
78
|
+
* `findCompanyByName`.
|
|
79
|
+
*/
|
|
80
|
+
export declare function findCompanyKeys(db: Queryable, workspaceId: string, domains: readonly string[], names: readonly string[]): Promise<KeyedRecord[]>;
|
|
81
|
+
export declare function findPeopleKeys(db: Queryable, workspaceId: string, emails: readonly string[]): Promise<KeyedRecord[]>;
|
|
82
|
+
/**
|
|
83
|
+
* Positions held by any of these people, with the address and domain a match key
|
|
84
|
+
* compares on.
|
|
85
|
+
*
|
|
86
|
+
* Filtered by person rather than by both sides: a person has a handful of
|
|
87
|
+
* positions, so this narrows to the same set the domain filter would and needs
|
|
88
|
+
* one join instead of two predicates.
|
|
89
|
+
*/
|
|
90
|
+
export declare function findPositionKeys(db: Queryable, workspaceId: string, personEmails: readonly string[]): Promise<KeyedRecord[]>;
|
|
91
|
+
export declare function findDealKeysByExternalId(db: Queryable, workspaceId: string, externalIds: readonly string[]): Promise<KeyedRecord[]>;
|
|
92
|
+
export declare function findDealKeysByCompany(db: Queryable, workspaceId: string, domains: readonly string[]): Promise<KeyedRecord[]>;
|
|
93
|
+
export declare function findPersonIdsByEmail(db: Queryable, workspaceId: string, emails: readonly string[]): Promise<{
|
|
94
|
+
email: string | null;
|
|
95
|
+
id: string;
|
|
96
|
+
}[]>;
|
|
97
|
+
export declare function findCompanyIdsByDomain(db: Queryable, workspaceId: string, domains: readonly string[]): Promise<{
|
|
98
|
+
domain: string | null;
|
|
99
|
+
id: string;
|
|
100
|
+
}[]>;
|
|
101
|
+
/** Every member of the workspace, by the address of the user behind them. */
|
|
102
|
+
export declare function listMemberEmails(db: Queryable, workspaceId: string): Promise<{
|
|
103
|
+
id: string;
|
|
104
|
+
email: string;
|
|
105
|
+
}[]>;
|
|
106
|
+
/** The deal pipeline's stages, for resolving a stage name in a row. */
|
|
107
|
+
export declare function listDealStages(db: Queryable, workspaceId: string): Promise<{
|
|
108
|
+
id: string;
|
|
109
|
+
slug: string;
|
|
110
|
+
label: string;
|
|
111
|
+
}[]>;
|
|
112
|
+
export interface ExportCompanyRow {
|
|
113
|
+
readonly id: string;
|
|
114
|
+
readonly name: string;
|
|
115
|
+
readonly domain: string | null;
|
|
116
|
+
readonly industry: string | null;
|
|
117
|
+
readonly stage: string;
|
|
118
|
+
readonly sizeBand: string;
|
|
119
|
+
readonly accountType: string;
|
|
120
|
+
readonly icpFit: string;
|
|
121
|
+
readonly description: string;
|
|
122
|
+
readonly summary: string;
|
|
123
|
+
readonly tags: readonly string[];
|
|
124
|
+
readonly website: string | null;
|
|
125
|
+
readonly hq: string | null;
|
|
126
|
+
}
|
|
127
|
+
export declare function readCompanies(db: Queryable, workspaceId: string, after: string): Promise<ExportCompanyRow[]>;
|
|
128
|
+
export interface ExportPersonRow {
|
|
129
|
+
readonly id: string;
|
|
130
|
+
readonly name: string;
|
|
131
|
+
readonly email: string | null;
|
|
132
|
+
readonly timezone: string | null;
|
|
133
|
+
readonly location: string | null;
|
|
134
|
+
readonly preferredChannel: string;
|
|
135
|
+
readonly influence: string;
|
|
136
|
+
readonly relationship: string;
|
|
137
|
+
readonly summary: string;
|
|
138
|
+
readonly tags: readonly string[];
|
|
139
|
+
readonly phones: readonly string[];
|
|
140
|
+
}
|
|
141
|
+
export declare function readPeople(db: Queryable, workspaceId: string, after: string): Promise<ExportPersonRow[]>;
|
|
142
|
+
export interface ExportPositionRow {
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly personEmail: string | null;
|
|
145
|
+
readonly companyDomain: string | null;
|
|
146
|
+
readonly title: string;
|
|
147
|
+
}
|
|
148
|
+
export declare function readPositions(db: Queryable, workspaceId: string, after: string): Promise<ExportPositionRow[]>;
|
|
149
|
+
export interface ExportDealRow {
|
|
150
|
+
readonly id: string;
|
|
151
|
+
readonly name: string;
|
|
152
|
+
readonly companyDomain: string | null;
|
|
153
|
+
readonly stageSlug: string;
|
|
154
|
+
readonly valueCents: number | null;
|
|
155
|
+
readonly ownerEmail: string | null;
|
|
156
|
+
readonly expectedClose: string | null;
|
|
157
|
+
readonly competitors: readonly string[];
|
|
158
|
+
readonly risks: string;
|
|
159
|
+
readonly whyWin: string;
|
|
160
|
+
readonly summary: string;
|
|
161
|
+
readonly tags: readonly string[];
|
|
162
|
+
readonly externalId: string | null;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* `owner_email` comes from a left join: a deal may have no owner, and an inner
|
|
166
|
+
* join would drop it from the export rather than leave the column empty.
|
|
167
|
+
*/
|
|
168
|
+
export declare function readDeals(db: Queryable, workspaceId: string, after: string): Promise<ExportDealRow[]>;
|
|
169
|
+
/** The addresses of the people on each of a page of deals, in one query. */
|
|
170
|
+
export declare function readDealPersonEmails(db: Queryable, dealIds: readonly string[]): Promise<ReadonlyMap<string, readonly string[]>>;
|
|
171
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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