@erxes/api-shared 0.0.0-stage → 3.2.19-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +672 -0
- package/core-modules/dist/erxes-api-shared-core-modules.cjs.d.ts +2 -0
- package/core-modules/dist/erxes-api-shared-core-modules.cjs.dev.js +6685 -0
- package/core-modules/dist/erxes-api-shared-core-modules.cjs.js +7 -0
- package/core-modules/dist/erxes-api-shared-core-modules.cjs.prod.js +6685 -0
- package/core-modules/dist/erxes-api-shared-core-modules.esm.js +6298 -0
- package/core-modules/package.json +5 -0
- package/core-types/dist/erxes-api-shared-core-types.cjs.d.ts +2 -0
- package/core-types/dist/erxes-api-shared-core-types.cjs.dev.js +12 -0
- package/core-types/dist/erxes-api-shared-core-types.cjs.js +7 -0
- package/core-types/dist/erxes-api-shared-core-types.cjs.prod.js +12 -0
- package/core-types/dist/erxes-api-shared-core-types.esm.js +8 -0
- package/core-types/package.json +5 -0
- package/dist/declarations/src/core-modules/approval/approvalChangeTypes.d.ts +15 -0
- package/dist/declarations/src/core-modules/approval/approvalChangeTypes.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/approval/checkApprovalLock.d.ts +7 -0
- package/dist/declarations/src/core-modules/approval/checkApprovalLock.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/approval/constants.d.ts +37 -0
- package/dist/declarations/src/core-modules/approval/constants.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/approval/index.d.ts +7 -0
- package/dist/declarations/src/core-modules/approval/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/approval/initApproval.d.ts +9 -0
- package/dist/declarations/src/core-modules/approval/initApproval.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/approval/types.d.ts +164 -0
- package/dist/declarations/src/core-modules/approval/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/approval/zodSchemas.d.ts +125 -0
- package/dist/declarations/src/core-modules/approval/zodSchemas.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/apps/@types/app.d.ts +15 -0
- package/dist/declarations/src/core-modules/apps/@types/app.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/apps/db/definitions/apps.d.ts +13 -0
- package/dist/declarations/src/core-modules/apps/db/definitions/apps.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/apps/index.d.ts +3 -0
- package/dist/declarations/src/core-modules/apps/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/actionErrorPolicy.d.ts +68 -0
- package/dist/declarations/src/core-modules/automations/actionErrorPolicy.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/actionOutcome.d.ts +51 -0
- package/dist/declarations/src/core-modules/automations/actionOutcome.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/constants.d.ts +101 -0
- package/dist/declarations/src/core-modules/automations/constants.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/definitions/aiAgents.d.ts +141 -0
- package/dist/declarations/src/core-modules/automations/definitions/aiAgents.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/definitions/automations.d.ts +868 -0
- package/dist/declarations/src/core-modules/automations/definitions/automations.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/definitions/executions.d.ts +316 -0
- package/dist/declarations/src/core-modules/automations/definitions/executions.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/definitions/index.d.ts +4 -0
- package/dist/declarations/src/core-modules/automations/definitions/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/index.d.ts +14 -0
- package/dist/declarations/src/core-modules/automations/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/outputResolvers.d.ts +67 -0
- package/dist/declarations/src/core-modules/automations/outputResolvers.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/reEnrollment.d.ts +23 -0
- package/dist/declarations/src/core-modules/automations/reEnrollment.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/segmentMembership.d.ts +19 -0
- package/dist/declarations/src/core-modules/automations/segmentMembership.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/sendAutomationMessage.d.ts +51 -0
- package/dist/declarations/src/core-modules/automations/sendAutomationMessage.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/setupAutomationProducers.d.ts +4 -0
- package/dist/declarations/src/core-modules/automations/setupAutomationProducers.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/typeUtils.d.ts +2 -0
- package/dist/declarations/src/core-modules/automations/typeUtils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/types.d.ts +474 -0
- package/dist/declarations/src/core-modules/automations/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/utils.d.ts +38 -0
- package/dist/declarations/src/core-modules/automations/utils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/workflowValidation.d.ts +3 -0
- package/dist/declarations/src/core-modules/automations/workflowValidation.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/automations/zodTypes.d.ts +2366 -0
- package/dist/declarations/src/core-modules/automations/zodTypes.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/clientPortal.d.ts +375 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/clientPortal.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/comment.d.ts +53 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/comment.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/cpNotification.d.ts +110 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/cpNotification.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/cpUser.d.ts +828 -0
- package/dist/declarations/src/core-modules/client-portals/definitions/cpUser.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/client-portals/index.d.ts +5 -0
- package/dist/declarations/src/core-modules/client-portals/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/db/definitions/common.d.ts +77 -0
- package/dist/declarations/src/core-modules/common/db/definitions/common.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/createEventHandlers.d.ts +8 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/createEventHandlers.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/generateEventHandlers.d.ts +4 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/generateEventHandlers.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/index.d.ts +5 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/runtimeContext.d.ts +9 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/runtimeContext.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/schemas.d.ts +82 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/schemas.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/types.d.ts +87 -0
- package/dist/declarations/src/core-modules/common/eventHandlers/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/index.d.ts +5 -0
- package/dist/declarations/src/core-modules/common/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/references/getRecordReferenceFields.d.ts +57 -0
- package/dist/declarations/src/core-modules/common/references/getRecordReferenceFields.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/references/index.d.ts +6 -0
- package/dist/declarations/src/core-modules/common/references/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/references/initRecordReferences.d.ts +4 -0
- package/dist/declarations/src/core-modules/common/references/initRecordReferences.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/references/resolveRecordReferencePlaceholders.d.ts +12 -0
- package/dist/declarations/src/core-modules/common/references/resolveRecordReferencePlaceholders.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/references/resolveRecordReferenceValue.d.ts +6 -0
- package/dist/declarations/src/core-modules/common/references/resolveRecordReferenceValue.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/references/types.d.ts +63 -0
- package/dist/declarations/src/core-modules/common/references/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/common/routeToModuleProducer.d.ts +55 -0
- package/dist/declarations/src/core-modules/common/routeToModuleProducer.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/blocksToHtml.d.ts +72 -0
- package/dist/declarations/src/core-modules/email-content/blocksToHtml.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/constants.d.ts +5 -0
- package/dist/declarations/src/core-modules/email-content/constants.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/emailFooter.d.ts +5 -0
- package/dist/declarations/src/core-modules/email-content/emailFooter.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/expandRepeatRows.d.ts +9 -0
- package/dist/declarations/src/core-modules/email-content/expandRepeatRows.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/index.d.ts +9 -0
- package/dist/declarations/src/core-modules/email-content/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/renderEmailContent.d.ts +19 -0
- package/dist/declarations/src/core-modules/email-content/renderEmailContent.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/replacePlaceholders.d.ts +36 -0
- package/dist/declarations/src/core-modules/email-content/replacePlaceholders.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/types.d.ts +48 -0
- package/dist/declarations/src/core-modules/email-content/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/email-content/unresolvedPlaceholders.d.ts +4 -0
- package/dist/declarations/src/core-modules/email-content/unresolvedPlaceholders.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/forms/index.d.ts +3 -0
- package/dist/declarations/src/core-modules/forms/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/forms/types.d.ts +55 -0
- package/dist/declarations/src/core-modules/forms/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/forms/utils.d.ts +4 -0
- package/dist/declarations/src/core-modules/forms/utils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/index.d.ts +8 -0
- package/dist/declarations/src/core-modules/import-export/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/types.d.ts +181 -0
- package/dist/declarations/src/core-modules/import-export/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/utils/exportCursor.d.ts +14 -0
- package/dist/declarations/src/core-modules/import-export/utils/exportCursor.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/utils/headerMatcher.d.ts +32 -0
- package/dist/declarations/src/core-modules/import-export/utils/headerMatcher.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/utils/importExportRuntime.d.ts +32 -0
- package/dist/declarations/src/core-modules/import-export/utils/importExportRuntime.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/utils/importUtils.d.ts +25 -0
- package/dist/declarations/src/core-modules/import-export/utils/importUtils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/worker.d.ts +8 -0
- package/dist/declarations/src/core-modules/import-export/worker.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/import-export/zodSchemas.d.ts +111 -0
- package/dist/declarations/src/core-modules/import-export/zodSchemas.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/index.d.ts +16 -0
- package/dist/declarations/src/core-modules/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/activityLog/builder.d.ts +3 -0
- package/dist/declarations/src/core-modules/logs/activityLog/builder.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/activityLog/index.d.ts +5 -0
- package/dist/declarations/src/core-modules/logs/activityLog/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/activityLog/sharedBuilders.d.ts +18 -0
- package/dist/declarations/src/core-modules/logs/activityLog/sharedBuilders.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/activityLog/types.d.ts +21 -0
- package/dist/declarations/src/core-modules/logs/activityLog/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/activityLog/utils.d.ts +10 -0
- package/dist/declarations/src/core-modules/logs/activityLog/utils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/activityLogUtils.d.ts +72 -0
- package/dist/declarations/src/core-modules/logs/activityLogUtils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/definitions/activityLog.d.ts +84 -0
- package/dist/declarations/src/core-modules/logs/definitions/activityLog.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/definitions/logs.d.ts +39 -0
- package/dist/declarations/src/core-modules/logs/definitions/logs.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/index.d.ts +6 -0
- package/dist/declarations/src/core-modules/logs/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/logs/types.d.ts +15 -0
- package/dist/declarations/src/core-modules/logs/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailAddresses.d.ts +73 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailAddresses.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailDeliveries.d.ts +115 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailDeliveries.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailRamp.d.ts +65 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailRamp.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailSenders.d.ts +58 -0
- package/dist/declarations/src/core-modules/notifications/definitions/emailSenders.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/definitions/notificationSettings.d.ts +66 -0
- package/dist/declarations/src/core-modules/notifications/definitions/notificationSettings.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/definitions/notifications.d.ts +89 -0
- package/dist/declarations/src/core-modules/notifications/definitions/notifications.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/index.d.ts +8 -0
- package/dist/declarations/src/core-modules/notifications/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/notifications/utils.d.ts +85 -0
- package/dist/declarations/src/core-modules/notifications/utils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/permissions/db/definitions/permissions.d.ts +60 -0
- package/dist/declarations/src/core-modules/permissions/db/definitions/permissions.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/permissions/index.d.ts +4 -0
- package/dist/declarations/src/core-modules/permissions/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/permissions/user-actions-map.d.ts +4 -0
- package/dist/declarations/src/core-modules/permissions/user-actions-map.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/permissions/utils.d.ts +22 -0
- package/dist/declarations/src/core-modules/permissions/utils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/filter.d.ts +5 -0
- package/dist/declarations/src/core-modules/properties/filter.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/importExport.d.ts +18 -0
- package/dist/declarations/src/core-modules/properties/importExport.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/index.d.ts +10 -0
- package/dist/declarations/src/core-modules/properties/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/keys.d.ts +46 -0
- package/dist/declarations/src/core-modules/properties/keys.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/mergeRows.d.ts +8 -0
- package/dist/declarations/src/core-modules/properties/mergeRows.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/operators.d.ts +6 -0
- package/dist/declarations/src/core-modules/properties/operators.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/options.d.ts +10 -0
- package/dist/declarations/src/core-modules/properties/options.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/setupPropertyProducers.d.ts +4 -0
- package/dist/declarations/src/core-modules/properties/setupPropertyProducers.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/types.d.ts +14 -0
- package/dist/declarations/src/core-modules/properties/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/properties/valueUsage.d.ts +56 -0
- package/dist/declarations/src/core-modules/properties/valueUsage.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/dependencies.d.ts +6 -0
- package/dist/declarations/src/core-modules/segments/dependencies.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/evaluate.d.ts +11 -0
- package/dist/declarations/src/core-modules/segments/evaluate.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/evaluateBatch.d.ts +42 -0
- package/dist/declarations/src/core-modules/segments/evaluateBatch.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/evaluateFieldsRouter.d.ts +29 -0
- package/dist/declarations/src/core-modules/segments/evaluateFieldsRouter.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/evaluateOwned.d.ts +27 -0
- package/dist/declarations/src/core-modules/segments/evaluateOwned.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/events.d.ts +45 -0
- package/dist/declarations/src/core-modules/segments/events.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/fieldBuilders.d.ts +35 -0
- package/dist/declarations/src/core-modules/segments/fieldBuilders.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/fieldMeta.d.ts +62 -0
- package/dist/declarations/src/core-modules/segments/fieldMeta.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/fieldRequests.d.ts +33 -0
- package/dist/declarations/src/core-modules/segments/fieldRequests.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/fingerprint.d.ts +6 -0
- package/dist/declarations/src/core-modules/segments/fingerprint.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/index.d.ts +31 -0
- package/dist/declarations/src/core-modules/segments/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/joinChanges.d.ts +11 -0
- package/dist/declarations/src/core-modules/segments/joinChanges.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/materialized.d.ts +9 -0
- package/dist/declarations/src/core-modules/segments/materialized.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/measureRelations.d.ts +18 -0
- package/dist/declarations/src/core-modules/segments/measureRelations.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/memberQuery.d.ts +13 -0
- package/dist/declarations/src/core-modules/segments/memberQuery.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/membership.d.ts +24 -0
- package/dist/declarations/src/core-modules/segments/membership.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/mongoFilter.d.ts +15 -0
- package/dist/declarations/src/core-modules/segments/mongoFilter.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/nodeRefs.d.ts +5 -0
- package/dist/declarations/src/core-modules/segments/nodeRefs.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/nodes.d.ts +42 -0
- package/dist/declarations/src/core-modules/segments/nodes.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/operators.d.ts +46 -0
- package/dist/declarations/src/core-modules/segments/operators.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/ownedSource.d.ts +7 -0
- package/dist/declarations/src/core-modules/segments/ownedSource.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/plan.d.ts +35 -0
- package/dist/declarations/src/core-modules/segments/plan.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/relationRegistry.d.ts +33 -0
- package/dist/declarations/src/core-modules/segments/relationRegistry.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/setupSegmentProducers.d.ts +4 -0
- package/dist/declarations/src/core-modules/segments/setupSegmentProducers.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/subjectsReachedBy.d.ts +11 -0
- package/dist/declarations/src/core-modules/segments/subjectsReachedBy.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/timeZone.d.ts +2 -0
- package/dist/declarations/src/core-modules/segments/timeZone.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/types.d.ts +67 -0
- package/dist/declarations/src/core-modules/segments/types.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/utils.d.ts +4 -0
- package/dist/declarations/src/core-modules/segments/utils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/walkNodes.d.ts +9 -0
- package/dist/declarations/src/core-modules/segments/walkNodes.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/zodSchemas.d.ts +532 -0
- package/dist/declarations/src/core-modules/segments/zodSchemas.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/segments/zonedTime.d.ts +25 -0
- package/dist/declarations/src/core-modules/segments/zonedTime.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/templates/index.d.ts +2 -0
- package/dist/declarations/src/core-modules/templates/index.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/templates/utils.d.ts +11 -0
- package/dist/declarations/src/core-modules/templates/utils.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/users/constants.d.ts +114 -0
- package/dist/declarations/src/core-modules/users/constants.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/users/db/definitions/users.d.ts +24 -0
- package/dist/declarations/src/core-modules/users/db/definitions/users.d.ts.map +1 -0
- package/dist/declarations/src/core-modules/users/index.d.ts +3 -0
- package/dist/declarations/src/core-modules/users/index.d.ts.map +1 -0
- package/dist/declarations/src/core-types/common.d.ts +149 -0
- package/dist/declarations/src/core-types/common.d.ts.map +1 -0
- package/dist/declarations/src/core-types/index.d.ts +20 -0
- package/dist/declarations/src/core-types/index.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/app/app.d.ts +12 -0
- package/dist/declarations/src/core-types/modules/app/app.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/automations/automations.d.ts +19 -0
- package/dist/declarations/src/core-types/modules/automations/automations.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/contacts/company.d.ts +53 -0
- package/dist/declarations/src/core-types/modules/contacts/company.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/contacts/contacts-common.d.ts +32 -0
- package/dist/declarations/src/core-types/modules/contacts/contacts-common.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/contacts/customer.d.ts +74 -0
- package/dist/declarations/src/core-types/modules/contacts/customer.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/emailTemplates/emailTemplate.d.ts +18 -0
- package/dist/declarations/src/core-types/modules/emailTemplates/emailTemplate.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/logs/logs.d.ts +28 -0
- package/dist/declarations/src/core-types/modules/logs/logs.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/permissions/permission.d.ts +56 -0
- package/dist/declarations/src/core-types/modules/permissions/permission.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/permissions/role.d.ts +21 -0
- package/dist/declarations/src/core-types/modules/permissions/role.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/products/product.d.ts +76 -0
- package/dist/declarations/src/core-types/modules/products/product.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/products/productCategory.d.ts +26 -0
- package/dist/declarations/src/core-types/modules/products/productCategory.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/products/productConfig.d.ts +9 -0
- package/dist/declarations/src/core-types/modules/products/productConfig.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/products/uom.d.ts +11 -0
- package/dist/declarations/src/core-types/modules/products/uom.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/relations/relations.d.ts +13 -0
- package/dist/declarations/src/core-types/modules/relations/relations.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/saas/organization.d.ts +8 -0
- package/dist/declarations/src/core-types/modules/saas/organization.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/tags/tag.d.ts +16 -0
- package/dist/declarations/src/core-types/modules/tags/tag.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/team-member/structure.d.ts +19 -0
- package/dist/declarations/src/core-types/modules/team-member/structure.d.ts.map +1 -0
- package/dist/declarations/src/core-types/modules/team-member/user.d.ts +90 -0
- package/dist/declarations/src/core-types/modules/team-member/user.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +3 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/agent-tools/auth.d.ts +18 -0
- package/dist/declarations/src/utils/agent-tools/auth.d.ts.map +1 -0
- package/dist/declarations/src/utils/agent-tools/endpoints.d.ts +16 -0
- package/dist/declarations/src/utils/agent-tools/endpoints.d.ts.map +1 -0
- package/dist/declarations/src/utils/agent-tools/index.d.ts +6 -0
- package/dist/declarations/src/utils/agent-tools/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/agent-tools/manifest.d.ts +11 -0
- package/dist/declarations/src/utils/agent-tools/manifest.d.ts.map +1 -0
- package/dist/declarations/src/utils/agent-tools/responseLimit.d.ts +26 -0
- package/dist/declarations/src/utils/agent-tools/responseLimit.d.ts.map +1 -0
- package/dist/declarations/src/utils/agent-tools/types.d.ts +48 -0
- package/dist/declarations/src/utils/agent-tools/types.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/beforeResolvers.d.ts +41 -0
- package/dist/declarations/src/utils/apollo/beforeResolvers.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/commonTypeDefs.d.ts +7 -0
- package/dist/declarations/src/utils/apollo/commonTypeDefs.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/constants.d.ts +3 -0
- package/dist/declarations/src/utils/apollo/constants.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/customScalars.d.ts +6 -0
- package/dist/declarations/src/utils/apollo/customScalars.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/expectedErrorPlugin.d.ts +11 -0
- package/dist/declarations/src/utils/apollo/expectedErrorPlugin.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/index.d.ts +10 -0
- package/dist/declarations/src/utils/apollo/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/runBeforeResolvers.d.ts +27 -0
- package/dist/declarations/src/utils/apollo/runBeforeResolvers.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/utils.d.ts +5 -0
- package/dist/declarations/src/utils/apollo/utils.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/wrapperMutations.d.ts +8 -0
- package/dist/declarations/src/utils/apollo/wrapperMutations.d.ts.map +1 -0
- package/dist/declarations/src/utils/apollo/wrapperResolvers.d.ts +8 -0
- package/dist/declarations/src/utils/apollo/wrapperResolvers.d.ts.map +1 -0
- package/dist/declarations/src/utils/bulkUtils.d.ts +7 -0
- package/dist/declarations/src/utils/bulkUtils.d.ts.map +1 -0
- package/dist/declarations/src/utils/constants.d.ts +40 -0
- package/dist/declarations/src/utils/constants.d.ts.map +1 -0
- package/dist/declarations/src/utils/editor.d.ts +45 -0
- package/dist/declarations/src/utils/editor.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/address.d.ts +10 -0
- package/dist/declarations/src/utils/email/address.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/attachments.d.ts +12 -0
- package/dist/declarations/src/utils/email/attachments.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/config.d.ts +10 -0
- package/dist/declarations/src/utils/email/config.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/constants.d.ts +6 -0
- package/dist/declarations/src/utils/email/constants.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/index.d.ts +12 -0
- package/dist/declarations/src/utils/email/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/providers/sendgrid.d.ts +17 -0
- package/dist/declarations/src/utils/email/providers/sendgrid.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/providers/sendgridEvents.d.ts +18 -0
- package/dist/declarations/src/utils/email/providers/sendgridEvents.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/providers/ses.d.ts +19 -0
- package/dist/declarations/src/utils/email/providers/ses.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/providers/smtp.d.ts +14 -0
- package/dist/declarations/src/utils/email/providers/smtp.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/resolveProvider.d.ts +6 -0
- package/dist/declarations/src/utils/email/resolveProvider.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/service.d.ts +50 -0
- package/dist/declarations/src/utils/email/service.d.ts.map +1 -0
- package/dist/declarations/src/utils/email/types.d.ts +87 -0
- package/dist/declarations/src/utils/email/types.d.ts.map +1 -0
- package/dist/declarations/src/utils/errorClassifier.d.ts +56 -0
- package/dist/declarations/src/utils/errorClassifier.d.ts.map +1 -0
- package/dist/declarations/src/utils/file/read.d.ts +14 -0
- package/dist/declarations/src/utils/file/read.d.ts.map +1 -0
- package/dist/declarations/src/utils/file/upload.d.ts +10 -0
- package/dist/declarations/src/utils/file/upload.d.ts.map +1 -0
- package/dist/declarations/src/utils/graphqlPubSub.d.ts +3 -0
- package/dist/declarations/src/utils/graphqlPubSub.d.ts.map +1 -0
- package/dist/declarations/src/utils/headers/get-hostname.d.ts +5 -0
- package/dist/declarations/src/utils/headers/get-hostname.d.ts.map +1 -0
- package/dist/declarations/src/utils/headers/index.d.ts +5 -0
- package/dist/declarations/src/utils/headers/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/headers/sanitize.d.ts +3 -0
- package/dist/declarations/src/utils/headers/sanitize.d.ts.map +1 -0
- package/dist/declarations/src/utils/headers/subdomain.d.ts +4 -0
- package/dist/declarations/src/utils/headers/subdomain.d.ts.map +1 -0
- package/dist/declarations/src/utils/headers/user.d.ts +14 -0
- package/dist/declarations/src/utils/headers/user.d.ts.map +1 -0
- package/dist/declarations/src/utils/index.d.ts +28 -0
- package/dist/declarations/src/utils/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/knowledge.d.ts +50 -0
- package/dist/declarations/src/utils/knowledge.d.ts.map +1 -0
- package/dist/declarations/src/utils/logs/index.d.ts +103 -0
- package/dist/declarations/src/utils/logs/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/mongo/cursor-util.d.ts +41 -0
- package/dist/declarations/src/utils/mongo/cursor-util.d.ts.map +1 -0
- package/dist/declarations/src/utils/mongo/generate-models.d.ts +4 -0
- package/dist/declarations/src/utils/mongo/generate-models.d.ts.map +1 -0
- package/dist/declarations/src/utils/mongo/index.d.ts +6 -0
- package/dist/declarations/src/utils/mongo/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/mongo/mongo-connection.d.ts +5 -0
- package/dist/declarations/src/utils/mongo/mongo-connection.d.ts.map +1 -0
- package/dist/declarations/src/utils/mongo/mongoose-types.d.ts +22 -0
- package/dist/declarations/src/utils/mongo/mongoose-types.d.ts.map +1 -0
- package/dist/declarations/src/utils/mongo/mongoose-utils.d.ts +30 -0
- package/dist/declarations/src/utils/mongo/mongoose-utils.d.ts.map +1 -0
- package/dist/declarations/src/utils/mongo/search-tokens.d.ts +21 -0
- package/dist/declarations/src/utils/mongo/search-tokens.d.ts.map +1 -0
- package/dist/declarations/src/utils/mq-worker.d.ts +19 -0
- package/dist/declarations/src/utils/mq-worker.d.ts.map +1 -0
- package/dist/declarations/src/utils/random.d.ts +3 -0
- package/dist/declarations/src/utils/random.d.ts.map +1 -0
- package/dist/declarations/src/utils/redis.d.ts +4 -0
- package/dist/declarations/src/utils/redis.d.ts.map +1 -0
- package/dist/declarations/src/utils/saas/index.d.ts +3 -0
- package/dist/declarations/src/utils/saas/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/saas/saas-mongo-connection.d.ts +59 -0
- package/dist/declarations/src/utils/saas/saas-mongo-connection.d.ts.map +1 -0
- package/dist/declarations/src/utils/saas/types.d.ts +96 -0
- package/dist/declarations/src/utils/saas/types.d.ts.map +1 -0
- package/dist/declarations/src/utils/sanitize.d.ts +3 -0
- package/dist/declarations/src/utils/sanitize.d.ts.map +1 -0
- package/dist/declarations/src/utils/sentry-init.d.ts +15 -0
- package/dist/declarations/src/utils/sentry-init.d.ts.map +1 -0
- package/dist/declarations/src/utils/sentry-instrument.d.ts +2 -0
- package/dist/declarations/src/utils/sentry-instrument.d.ts.map +1 -0
- package/dist/declarations/src/utils/serializablePayload.d.ts +11 -0
- package/dist/declarations/src/utils/serializablePayload.d.ts.map +1 -0
- package/dist/declarations/src/utils/service-discovery.d.ts +25 -0
- package/dist/declarations/src/utils/service-discovery.d.ts.map +1 -0
- package/dist/declarations/src/utils/start-plugin.d.ts +85 -0
- package/dist/declarations/src/utils/start-plugin.d.ts.map +1 -0
- package/dist/declarations/src/utils/string.d.ts +82 -0
- package/dist/declarations/src/utils/string.d.ts.map +1 -0
- package/dist/declarations/src/utils/trpc/index.d.ts +79 -0
- package/dist/declarations/src/utils/trpc/index.d.ts.map +1 -0
- package/dist/declarations/src/utils/trpc/sendCoreModuleProducer.d.ts +53 -0
- package/dist/declarations/src/utils/trpc/sendCoreModuleProducer.d.ts.map +1 -0
- package/dist/declarations/src/utils/utils.d.ts +69 -0
- package/dist/declarations/src/utils/utils.d.ts.map +1 -0
- package/dist/erxes-api-shared.cjs.d.ts +3 -0
- package/dist/erxes-api-shared.cjs.dev.js +7 -0
- package/dist/erxes-api-shared.cjs.js +7 -0
- package/dist/erxes-api-shared.cjs.prod.js +7 -0
- package/dist/erxes-api-shared.esm.js +3 -0
- package/dist/start-plugin-576e707d.cjs.prod.js +23223 -0
- package/dist/start-plugin-6e76556c.esm.js +22742 -0
- package/dist/start-plugin-89fa2bd2.cjs.dev.js +23225 -0
- package/package.json +105 -4
- package/src/common-modules/payment/worker.ts +53 -0
- package/src/core-modules/approval/approvalChangeTypes.ts +31 -0
- package/src/core-modules/approval/checkApprovalLock.ts +85 -0
- package/src/core-modules/approval/constants.ts +45 -0
- package/src/core-modules/approval/index.ts +6 -0
- package/src/core-modules/approval/initApproval.ts +59 -0
- package/src/core-modules/approval/types.ts +206 -0
- package/src/core-modules/approval/zodSchemas.ts +55 -0
- package/src/core-modules/apps/@types/app.ts +15 -0
- package/src/core-modules/apps/db/definitions/apps.ts +30 -0
- package/src/core-modules/apps/index.ts +2 -0
- package/src/core-modules/automations/actionErrorPolicy.test.ts +125 -0
- package/src/core-modules/automations/actionErrorPolicy.ts +162 -0
- package/src/core-modules/automations/actionInputs.test.ts +70 -0
- package/src/core-modules/automations/actionOutcome.test.ts +87 -0
- package/src/core-modules/automations/actionOutcome.ts +128 -0
- package/src/core-modules/automations/constants.ts +181 -0
- package/src/core-modules/automations/definitions/aiAgents.ts +343 -0
- package/src/core-modules/automations/definitions/automations.ts +207 -0
- package/src/core-modules/automations/definitions/executions.ts +190 -0
- package/src/core-modules/automations/definitions/index.ts +3 -0
- package/src/core-modules/automations/getValueByPath.test.ts +49 -0
- package/src/core-modules/automations/index.ts +13 -0
- package/src/core-modules/automations/outputResolvers.test.ts +97 -0
- package/src/core-modules/automations/outputResolvers.ts +1238 -0
- package/src/core-modules/automations/reEnrollment.ts +34 -0
- package/src/core-modules/automations/segmentMembership.ts +34 -0
- package/src/core-modules/automations/sendAutomationMessage.ts +219 -0
- package/src/core-modules/automations/setPropertyOutcome.test.ts +105 -0
- package/src/core-modules/automations/setPropertyRows.test.ts +61 -0
- package/src/core-modules/automations/setupAutomationProducers.ts +187 -0
- package/src/core-modules/automations/typeUtils.ts +3 -0
- package/src/core-modules/automations/types.ts +577 -0
- package/src/core-modules/automations/utils.ts +1128 -0
- package/src/core-modules/automations/workflowValidation.ts +32 -0
- package/src/core-modules/automations/zodTypes.ts +221 -0
- package/src/core-modules/client-portals/definitions/clientPortal.ts +230 -0
- package/src/core-modules/client-portals/definitions/comment.ts +26 -0
- package/src/core-modules/client-portals/definitions/cpNotification.ts +112 -0
- package/src/core-modules/client-portals/definitions/cpUser.ts +236 -0
- package/src/core-modules/client-portals/index.ts +4 -0
- package/src/core-modules/common/db/definitions/common.ts +43 -0
- package/src/core-modules/common/eventHandlers/createEventHandlers.ts +236 -0
- package/src/core-modules/common/eventHandlers/generateEventHandlers.ts +37 -0
- package/src/core-modules/common/eventHandlers/index.ts +11 -0
- package/src/core-modules/common/eventHandlers/runtimeContext.ts +36 -0
- package/src/core-modules/common/eventHandlers/schemas.ts +53 -0
- package/src/core-modules/common/eventHandlers/types.ts +97 -0
- package/src/core-modules/common/eventHandlers/utils.ts +113 -0
- package/src/core-modules/common/index.ts +4 -0
- package/src/core-modules/common/references/fetchRecordReferenceTargets.ts +43 -0
- package/src/core-modules/common/references/getRecordReferenceFields.ts +243 -0
- package/src/core-modules/common/references/index.ts +9 -0
- package/src/core-modules/common/references/initRecordReferences.ts +84 -0
- package/src/core-modules/common/references/normalizeRecordReferenceConfig.ts +59 -0
- package/src/core-modules/common/references/resolveRecordReferencePath.ts +473 -0
- package/src/core-modules/common/references/resolveRecordReferencePlaceholders.ts +173 -0
- package/src/core-modules/common/references/resolveRecordReferenceValue.ts +41 -0
- package/src/core-modules/common/references/resolveRecordRelationIds.ts +57 -0
- package/src/core-modules/common/references/types.ts +78 -0
- package/src/core-modules/common/references/utils.ts +60 -0
- package/src/core-modules/common/references/zodInputs.ts +13 -0
- package/src/core-modules/common/routeToModuleProducer.ts +118 -0
- package/src/core-modules/email-content/blocksToHtml.ts +551 -0
- package/src/core-modules/email-content/constants.ts +4 -0
- package/src/core-modules/email-content/emailFooter.ts +17 -0
- package/src/core-modules/email-content/expandRepeatRows.test.ts +36 -0
- package/src/core-modules/email-content/expandRepeatRows.ts +59 -0
- package/src/core-modules/email-content/index.ts +8 -0
- package/src/core-modules/email-content/renderEmailContent.ts +88 -0
- package/src/core-modules/email-content/replacePlaceholders.ts +143 -0
- package/src/core-modules/email-content/types.ts +49 -0
- package/src/core-modules/email-content/unresolvedPlaceholders.ts +27 -0
- package/src/core-modules/forms/index.ts +2 -0
- package/src/core-modules/forms/types.ts +86 -0
- package/src/core-modules/forms/utils.ts +34 -0
- package/src/core-modules/import-export/index.ts +7 -0
- package/src/core-modules/import-export/types.ts +204 -0
- package/src/core-modules/import-export/utils/createCoreImportClient.ts +131 -0
- package/src/core-modules/import-export/utils/exportBatchProcess.ts +560 -0
- package/src/core-modules/import-export/utils/exportCursor.ts +47 -0
- package/src/core-modules/import-export/utils/headerMatcher.test.ts +90 -0
- package/src/core-modules/import-export/utils/headerMatcher.ts +229 -0
- package/src/core-modules/import-export/utils/importBatchProcess.ts +780 -0
- package/src/core-modules/import-export/utils/importExportError.ts +71 -0
- package/src/core-modules/import-export/utils/importExportRuntime.ts +96 -0
- package/src/core-modules/import-export/utils/importUtils.ts +59 -0
- package/src/core-modules/import-export/utils/progressUpdate.ts +25 -0
- package/src/core-modules/import-export/utils/tempWorkspace.ts +34 -0
- package/src/core-modules/import-export/worker.ts +215 -0
- package/src/core-modules/import-export/zodSchemas.ts +63 -0
- package/src/core-modules/index.ts +15 -0
- package/src/core-modules/logs/activityLog/builder.ts +232 -0
- package/src/core-modules/logs/activityLog/index.ts +4 -0
- package/src/core-modules/logs/activityLog/sharedBuilders.ts +95 -0
- package/src/core-modules/logs/activityLog/types.ts +26 -0
- package/src/core-modules/logs/activityLog/utils.ts +61 -0
- package/src/core-modules/logs/activityLogUtils.ts +677 -0
- package/src/core-modules/logs/definitions/activityLog.ts +71 -0
- package/src/core-modules/logs/definitions/logs.ts +49 -0
- package/src/core-modules/logs/index.ts +5 -0
- package/src/core-modules/logs/types.ts +16 -0
- package/src/core-modules/notifications/definitions/emailAddresses.ts +105 -0
- package/src/core-modules/notifications/definitions/emailDeliveries.ts +188 -0
- package/src/core-modules/notifications/definitions/emailRamp.ts +83 -0
- package/src/core-modules/notifications/definitions/emailSenders.ts +84 -0
- package/src/core-modules/notifications/definitions/notificationConfigs.ts +110 -0
- package/src/core-modules/notifications/definitions/notificationSettings.ts +67 -0
- package/src/core-modules/notifications/definitions/notifications.ts +130 -0
- package/src/core-modules/notifications/emailUtils.ts +88 -0
- package/src/core-modules/notifications/index.ts +7 -0
- package/src/core-modules/notifications/utils.ts +143 -0
- package/src/core-modules/permissions/db/definitions/permissions.ts +82 -0
- package/src/core-modules/permissions/index.ts +3 -0
- package/src/core-modules/permissions/oauth-scopes.test.ts +102 -0
- package/src/core-modules/permissions/user-actions-map.ts +170 -0
- package/src/core-modules/permissions/utils.ts +317 -0
- package/src/core-modules/properties/README.md +161 -0
- package/src/core-modules/properties/filter.test.ts +74 -0
- package/src/core-modules/properties/filter.ts +156 -0
- package/src/core-modules/properties/importExport.ts +159 -0
- package/src/core-modules/properties/index.ts +9 -0
- package/src/core-modules/properties/keys.test.ts +71 -0
- package/src/core-modules/properties/keys.ts +128 -0
- package/src/core-modules/properties/mergePropertyData.test.ts +65 -0
- package/src/core-modules/properties/mergeRows.ts +93 -0
- package/src/core-modules/properties/operators.ts +91 -0
- package/src/core-modules/properties/options.test.ts +119 -0
- package/src/core-modules/properties/options.ts +55 -0
- package/src/core-modules/properties/setupPropertyProducers.ts +32 -0
- package/src/core-modules/properties/types.ts +31 -0
- package/src/core-modules/properties/valueUsage.test.ts +158 -0
- package/src/core-modules/properties/valueUsage.ts +153 -0
- package/src/core-modules/segments/anniversary.test.ts +122 -0
- package/src/core-modules/segments/dependencies.test.ts +173 -0
- package/src/core-modules/segments/dependencies.ts +70 -0
- package/src/core-modules/segments/evaluate.test.ts +339 -0
- package/src/core-modules/segments/evaluate.ts +388 -0
- package/src/core-modules/segments/evaluateBatch.test.ts +233 -0
- package/src/core-modules/segments/evaluateBatch.ts +263 -0
- package/src/core-modules/segments/evaluateFieldsRouter.test.ts +148 -0
- package/src/core-modules/segments/evaluateFieldsRouter.ts +94 -0
- package/src/core-modules/segments/evaluateOwned.ts +162 -0
- package/src/core-modules/segments/events.ts +142 -0
- package/src/core-modules/segments/fieldBuilders.ts +152 -0
- package/src/core-modules/segments/fieldMeta.ts +96 -0
- package/src/core-modules/segments/fieldRequests.test.ts +302 -0
- package/src/core-modules/segments/fieldRequests.ts +172 -0
- package/src/core-modules/segments/fieldSources.test.ts +99 -0
- package/src/core-modules/segments/fingerprint.test.ts +111 -0
- package/src/core-modules/segments/fingerprint.ts +70 -0
- package/src/core-modules/segments/index.ts +30 -0
- package/src/core-modules/segments/joinChanges.test.ts +96 -0
- package/src/core-modules/segments/joinChanges.ts +67 -0
- package/src/core-modules/segments/materialized.ts +23 -0
- package/src/core-modules/segments/measureRelations.test.ts +222 -0
- package/src/core-modules/segments/measureRelations.ts +322 -0
- package/src/core-modules/segments/memberQuery.test.ts +60 -0
- package/src/core-modules/segments/memberQuery.ts +45 -0
- package/src/core-modules/segments/membership.ts +170 -0
- package/src/core-modules/segments/mongoFilter.test.ts +326 -0
- package/src/core-modules/segments/mongoFilter.ts +355 -0
- package/src/core-modules/segments/nodeRefs.ts +29 -0
- package/src/core-modules/segments/nodes.ts +48 -0
- package/src/core-modules/segments/operators.ts +243 -0
- package/src/core-modules/segments/ownedSource.ts +16 -0
- package/src/core-modules/segments/plan.test.ts +172 -0
- package/src/core-modules/segments/plan.ts +155 -0
- package/src/core-modules/segments/relationRegistry.test.ts +64 -0
- package/src/core-modules/segments/relationRegistry.ts +198 -0
- package/src/core-modules/segments/segmentReference.test.ts +142 -0
- package/src/core-modules/segments/setupSegmentProducers.ts +77 -0
- package/src/core-modules/segments/subjectsReachedBy.ts +70 -0
- package/src/core-modules/segments/timeZone.ts +56 -0
- package/src/core-modules/segments/types.ts +97 -0
- package/src/core-modules/segments/utils.ts +122 -0
- package/src/core-modules/segments/walkNodes.ts +76 -0
- package/src/core-modules/segments/zodSchemas.ts +130 -0
- package/src/core-modules/segments/zonedTime.test.ts +163 -0
- package/src/core-modules/segments/zonedTime.ts +198 -0
- package/src/core-modules/templates/index.ts +1 -0
- package/src/core-modules/templates/utils.ts +91 -0
- package/src/core-modules/users/constants.ts +318 -0
- package/src/core-modules/users/db/definitions/users.ts +226 -0
- package/src/core-modules/users/index.ts +2 -0
- package/src/core-types/common.ts +183 -0
- package/src/core-types/index.ts +19 -0
- package/src/core-types/modules/app/app.ts +13 -0
- package/src/core-types/modules/automations/automations.ts +23 -0
- package/src/core-types/modules/contacts/company.ts +70 -0
- package/src/core-types/modules/contacts/contacts-common.ts +32 -0
- package/src/core-types/modules/contacts/customer.ts +94 -0
- package/src/core-types/modules/emailTemplates/emailTemplate.ts +19 -0
- package/src/core-types/modules/emailTemplates/index.ts +1 -0
- package/src/core-types/modules/logs/logs.ts +30 -0
- package/src/core-types/modules/permissions/permission.ts +63 -0
- package/src/core-types/modules/permissions/role.ts +24 -0
- package/src/core-types/modules/products/product.ts +100 -0
- package/src/core-types/modules/products/productCategory.ts +27 -0
- package/src/core-types/modules/products/productConfig.ts +10 -0
- package/src/core-types/modules/products/uom.ts +12 -0
- package/src/core-types/modules/relations/relations.ts +14 -0
- package/src/core-types/modules/saas/organization.ts +7 -0
- package/src/core-types/modules/structure/structure.ts +29 -0
- package/src/core-types/modules/tags/tag.ts +17 -0
- package/src/core-types/modules/team-member/structure.ts +23 -0
- package/src/core-types/modules/team-member/user.ts +93 -0
- package/src/index.ts +1 -0
- package/src/utils/agent-tools/auth.ts +129 -0
- package/src/utils/agent-tools/endpoints.ts +274 -0
- package/src/utils/agent-tools/index.ts +5 -0
- package/src/utils/agent-tools/manifest.ts +152 -0
- package/src/utils/agent-tools/responseLimit.test.ts +99 -0
- package/src/utils/agent-tools/responseLimit.ts +66 -0
- package/src/utils/agent-tools/types.ts +52 -0
- package/src/utils/apollo/beforeResolvers.ts +117 -0
- package/src/utils/apollo/commonTypeDefs.ts +78 -0
- package/src/utils/apollo/constants.ts +16 -0
- package/src/utils/apollo/customScalars.ts +69 -0
- package/src/utils/apollo/expectedErrorPlugin.ts +83 -0
- package/src/utils/apollo/index.ts +10 -0
- package/src/utils/apollo/runBeforeResolvers.ts +214 -0
- package/src/utils/apollo/utils.ts +80 -0
- package/src/utils/apollo/wrapperMutations.ts +75 -0
- package/src/utils/apollo/wrapperResolvers.ts +182 -0
- package/src/utils/bulkUtils.ts +62 -0
- package/src/utils/constants.ts +99 -0
- package/src/utils/editor.ts +412 -0
- package/src/utils/email/address.ts +42 -0
- package/src/utils/email/attachments.ts +74 -0
- package/src/utils/email/config.ts +46 -0
- package/src/utils/email/constants.ts +25 -0
- package/src/utils/email/index.ts +11 -0
- package/src/utils/email/providers/sendgrid.ts +280 -0
- package/src/utils/email/providers/sendgridEvents.ts +48 -0
- package/src/utils/email/providers/ses.ts +250 -0
- package/src/utils/email/providers/smtp.ts +99 -0
- package/src/utils/email/resolveProvider.ts +75 -0
- package/src/utils/email/service.ts +192 -0
- package/src/utils/email/types.ts +127 -0
- package/src/utils/errorClassifier.test.ts +231 -0
- package/src/utils/errorClassifier.ts +458 -0
- package/src/utils/file/read.ts +464 -0
- package/src/utils/file/upload.ts +531 -0
- package/src/utils/graphqlPubSub.ts +28 -0
- package/src/utils/headers/get-hostname.ts +18 -0
- package/src/utils/headers/index.ts +4 -0
- package/src/utils/headers/sanitize.ts +9 -0
- package/src/utils/headers/subdomain.ts +13 -0
- package/src/utils/headers/user.test.ts +76 -0
- package/src/utils/headers/user.ts +113 -0
- package/src/utils/index.ts +27 -0
- package/src/utils/knowledge.ts +107 -0
- package/src/utils/logs/index.ts +247 -0
- package/src/utils/mongo/cursor-util.ts +153 -0
- package/src/utils/mongo/generate-models.ts +97 -0
- package/src/utils/mongo/index.ts +5 -0
- package/src/utils/mongo/mongo-connection.ts +42 -0
- package/src/utils/mongo/mongoose-types.ts +26 -0
- package/src/utils/mongo/mongoose-utils.ts +329 -0
- package/src/utils/mongo/search-tokens.ts +193 -0
- package/src/utils/mq-worker.ts +150 -0
- package/src/utils/random.ts +6 -0
- package/src/utils/redis.ts +23 -0
- package/src/utils/saas/constants.ts +32 -0
- package/src/utils/saas/definition.ts +318 -0
- package/src/utils/saas/index.ts +2 -0
- package/src/utils/saas/saas-mongo-connection.ts +595 -0
- package/src/utils/saas/types.ts +107 -0
- package/src/utils/sanitize.ts +73 -0
- package/src/utils/sentry-init.ts +128 -0
- package/src/utils/sentry-instrument.ts +5 -0
- package/src/utils/serializablePayload.test.ts +65 -0
- package/src/utils/serializablePayload.ts +44 -0
- package/src/utils/service-discovery.ts +256 -0
- package/src/utils/start-plugin.ts +482 -0
- package/src/utils/string.ts +159 -0
- package/src/utils/trpc/index.ts +278 -0
- package/src/utils/trpc/sendCoreModuleProducer.ts +146 -0
- package/src/utils/trpc/trpc-setup.ts +91 -0
- package/src/utils/utils.ts +669 -0
- package/utils/dist/erxes-api-shared-utils.cjs.d.ts +2 -0
- package/utils/dist/erxes-api-shared-utils.cjs.dev.js +3066 -0
- package/utils/dist/erxes-api-shared-utils.cjs.js +7 -0
- package/utils/dist/erxes-api-shared-utils.cjs.prod.js +3066 -0
- package/utils/dist/erxes-api-shared-utils.esm.js +2776 -0
- package/utils/package.json +5 -0
- package/README.md +0 -3
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
import { IOrganization, ISaasAddon, ISaasHelpCenterDomain, ISaasOrganizationPlanHistory } from "./types.js";
|
|
3
|
+
export declare let coreModelOrganizations: any;
|
|
4
|
+
export declare let coreModelAddons: any;
|
|
5
|
+
export declare let coreModelBundles: any;
|
|
6
|
+
export declare let coreModelInstallations: any;
|
|
7
|
+
export declare let coreModelUsers: any;
|
|
8
|
+
export declare let coreModelEndpoints: any;
|
|
9
|
+
export declare let coreModelPromoCodes: any;
|
|
10
|
+
export declare let coreModelPlugins: any;
|
|
11
|
+
export declare let coreModelExperiences: any;
|
|
12
|
+
export declare let coreModelOrganizationPlanHistories: mongoose.Model<ISaasOrganizationPlanHistory>;
|
|
13
|
+
export declare const getSaasCoreConnection: () => Promise<void>;
|
|
14
|
+
export declare const ORGANIZATION_ID_MAPPING: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const getSaasOrganizationIdBySubdomain: (subdomain: string) => Promise<string>;
|
|
18
|
+
export declare const getSaasOrgsCache: ({ subdomain, excludeSubdomains, domain, }: {
|
|
19
|
+
subdomain?: string;
|
|
20
|
+
excludeSubdomains?: string[];
|
|
21
|
+
domain?: string;
|
|
22
|
+
}) => Promise<any>;
|
|
23
|
+
export declare const getSaasOrganizations: (email?: string) => Promise<any>;
|
|
24
|
+
export declare const getSaasOrganizationsByFilter: (filter: any) => Promise<any>;
|
|
25
|
+
export declare const updateSaasOrganization: (subdomain: string, update: object) => Promise<any>;
|
|
26
|
+
type OrganizationWithHelpCenterDomains = Pick<IOrganization, 'subdomain' | 'helpCenterDomain' | 'helpCenterDomains'>;
|
|
27
|
+
/** The organization's help center domains, the legacy single one included. */
|
|
28
|
+
export declare const helpCenterDomainsOf: (organization?: Partial<OrganizationWithHelpCenterDomains> | null) => ISaasHelpCenterDomain[];
|
|
29
|
+
export declare const getSaasOrganizationByHelpCenterDomain: (hostname: string) => Promise<{
|
|
30
|
+
subdomain: string;
|
|
31
|
+
domain: ISaasHelpCenterDomain;
|
|
32
|
+
} | null>;
|
|
33
|
+
export declare const getSaasOrganizationHelpCenterDomains: (subdomain: string) => Promise<ISaasHelpCenterDomain[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Organizations with a help center domain still waiting on DNS or its
|
|
36
|
+
* certificate within its background check window. Callers pick the pending
|
|
37
|
+
* entries out with helpCenterDomainsOf; active domains are skipped there.
|
|
38
|
+
*/
|
|
39
|
+
export declare const getSaasOrganizationsWithPendingHelpCenterDomain: () => Promise<OrganizationWithHelpCenterDomains[]>;
|
|
40
|
+
/** Adds the domain, or replaces the stored one with the same hostname. */
|
|
41
|
+
export declare const saveSaasOrganizationHelpCenterDomain: (subdomain: string, domain: ISaasHelpCenterDomain) => Promise<"OK">;
|
|
42
|
+
export declare const removeSaasOrganizationHelpCenterDomain: (subdomain: string, hostname: string) => Promise<"OK">;
|
|
43
|
+
export declare const getSaasOrganizationDetail: ({ subdomain, }: {
|
|
44
|
+
subdomain: string;
|
|
45
|
+
}) => Promise<any>;
|
|
46
|
+
export declare const getSaasOrganizationPlanHistories: ({ organizationId, statuses, }: {
|
|
47
|
+
organizationId: string;
|
|
48
|
+
statuses?: string[];
|
|
49
|
+
}) => Promise<ISaasOrganizationPlanHistory[]>;
|
|
50
|
+
export declare const getSaasOrganizationActiveAddons: ({ organizationId, }: {
|
|
51
|
+
organizationId: string;
|
|
52
|
+
}) => Promise<ISaasAddon[]>;
|
|
53
|
+
export declare const removeOrgsCache: (source: string) => Promise<"OK">;
|
|
54
|
+
export declare const getSaasPlugins: (query?: any) => Promise<any>;
|
|
55
|
+
export declare const getSaasPlugin: (query?: any) => Promise<any>;
|
|
56
|
+
export declare const getSaasPromoCodes: (query?: any) => Promise<any>;
|
|
57
|
+
export declare const getSaasOrgPromoCodes: ({ promoCodes, }: IOrganization) => Promise<any>;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=saas-mongo-connection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saas-mongo-connection.d.ts","sourceRoot":"../../../../../src/utils/saas","sources":["saas-mongo-connection.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAchC,OAAO,EACL,aAAa,EACb,UAAU,EAEV,qBAAqB,EACrB,4BAA4B,EAC7B,mBAAgB;AAIjB,eAAO,IAAI,sBAAsB,EAAE,GAAG,CAAC;AACvC,eAAO,IAAI,eAAe,EAAE,GAAG,CAAC;AAChC,eAAO,IAAI,gBAAgB,EAAE,GAAG,CAAC;AACjC,eAAO,IAAI,sBAAsB,EAAE,GAAG,CAAC;AACvC,eAAO,IAAI,cAAc,EAAE,GAAG,CAAC;AAC/B,eAAO,IAAI,kBAAkB,EAAE,GAAG,CAAC;AACnC,eAAO,IAAI,mBAAmB,EAAE,GAAG,CAAC;AACpC,eAAO,IAAI,gBAAgB,EAAE,GAAG,CAAC;AACjC,eAAO,IAAI,oBAAoB,EAAE,GAAG,CAAC;AACrC,eAAO,IAAI,kCAAkC,EAAE,QAAQ,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAE5F,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,IAAI,CA+C1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAO,CAAC;AAErE,eAAO,MAAM,gCAAgC,GAC3C,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAgBhB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,2CAIpC;IACD,SAAS,CAAC,EAAE,MAAM,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AAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,KAAG,OAAO,CAAC,4BAA4B,EAAE,CA+BzC,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAU,qBAEnD;IACD,cAAc,EAAE,MAAM,CAAC;CACxB,KAAG,OAAO,CAAC,UAAU,EAAE,CAyCvB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,kBAI7C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,QAAO,GAAQ,iBAInD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAU,QAAO,GAAQ,iBAIlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,QAAO,GAAQ,iBAItD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,iBAExC,aAAa,iBAQf,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export interface ISaasHelpCenterDomainRecord {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ISaasHelpCenterDomain {
|
|
6
|
+
hostname: string;
|
|
7
|
+
helpCenterId?: string;
|
|
8
|
+
cloudflareId?: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
sslStatus?: string;
|
|
11
|
+
dnsStatus?: string;
|
|
12
|
+
ownershipVerification?: ISaasHelpCenterDomainRecord;
|
|
13
|
+
sslValidationRecords?: ISaasHelpCenterDomainRecord[];
|
|
14
|
+
verificationErrors?: string[];
|
|
15
|
+
autoCheckUntil?: Date;
|
|
16
|
+
lastCheckedAt?: Date;
|
|
17
|
+
createdAt?: Date;
|
|
18
|
+
}
|
|
19
|
+
export interface IOrganization {
|
|
20
|
+
_id?: string;
|
|
21
|
+
name: string;
|
|
22
|
+
subdomain: string;
|
|
23
|
+
ownerId: string;
|
|
24
|
+
plan: string;
|
|
25
|
+
expiryDate: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
teamMembersLimit: number;
|
|
28
|
+
interval: string;
|
|
29
|
+
charge: any;
|
|
30
|
+
logo?: string;
|
|
31
|
+
favicon?: string;
|
|
32
|
+
iconColor?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
dnsStatus?: string;
|
|
35
|
+
backgroundColor?: string;
|
|
36
|
+
isWhiteLabel?: boolean;
|
|
37
|
+
isNext?: boolean;
|
|
38
|
+
bundleId?: string;
|
|
39
|
+
domain?: string;
|
|
40
|
+
textColor?: string;
|
|
41
|
+
lastActiveDate?: Date;
|
|
42
|
+
cronLastExecutedDate?: any;
|
|
43
|
+
createdAt?: Date;
|
|
44
|
+
promoCodes?: string[];
|
|
45
|
+
partnerKey?: string;
|
|
46
|
+
awsSesAccountStatus?: string;
|
|
47
|
+
customDomainStatus?: Record<string, unknown>;
|
|
48
|
+
hostNameStatus?: string;
|
|
49
|
+
sslStatus?: string;
|
|
50
|
+
helpCenterDomain?: ISaasHelpCenterDomain;
|
|
51
|
+
helpCenterDomains?: ISaasHelpCenterDomain[];
|
|
52
|
+
}
|
|
53
|
+
export interface ISaasBundle {
|
|
54
|
+
_id?: string;
|
|
55
|
+
title?: string;
|
|
56
|
+
type?: string;
|
|
57
|
+
isFree?: boolean;
|
|
58
|
+
pluginsLimits?: Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
export interface ISaasAddon {
|
|
61
|
+
_id?: string;
|
|
62
|
+
kind?: string;
|
|
63
|
+
quantity?: number;
|
|
64
|
+
installationId?: string;
|
|
65
|
+
subscriptionId?: string;
|
|
66
|
+
expiryDate?: Date;
|
|
67
|
+
interval?: string;
|
|
68
|
+
paymentStatus?: string;
|
|
69
|
+
paymentStatusMessage?: string;
|
|
70
|
+
isCanceled?: boolean;
|
|
71
|
+
createdAt?: Date;
|
|
72
|
+
updatedAt?: Date;
|
|
73
|
+
bundle?: ISaasBundle;
|
|
74
|
+
}
|
|
75
|
+
export interface ISaasOrganizationPlanHistory {
|
|
76
|
+
_id?: string;
|
|
77
|
+
organizationId: string;
|
|
78
|
+
source?: string;
|
|
79
|
+
status?: string;
|
|
80
|
+
isNext?: boolean;
|
|
81
|
+
productId?: string;
|
|
82
|
+
bundleId?: string;
|
|
83
|
+
interval?: string;
|
|
84
|
+
pluginsLimitsSnapshot?: Record<string, unknown>;
|
|
85
|
+
assistantLimit?: number;
|
|
86
|
+
stripeCheckoutSessionId?: string;
|
|
87
|
+
stripePaymentIntentId?: string;
|
|
88
|
+
stripeSubscriptionId?: string;
|
|
89
|
+
stripeInvoiceId?: string;
|
|
90
|
+
startsAt?: Date;
|
|
91
|
+
endsAt?: Date;
|
|
92
|
+
createdAt?: Date;
|
|
93
|
+
updatedAt?: Date;
|
|
94
|
+
bundle?: ISaasBundle;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"../../../../../src/utils/saas","sources":["types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,2BAA2B,CAAC;IACpD,oBAAoB,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACrD,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CA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AM,CAAC,EAAE,IAAI,CAAC;IACd,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"../../../../src/utils","sources":["sanitize.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,WAc7C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,MA8BzC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Sentry initialization utilities for erxes services.
|
|
3
|
+
*
|
|
4
|
+
* Extracted to eliminate duplication across sentry-instrument.ts files
|
|
5
|
+
* (shared, core-api, gateway).
|
|
6
|
+
*/
|
|
7
|
+
import * as Sentry from '@sentry/node';
|
|
8
|
+
/**
|
|
9
|
+
* Initialize Sentry with the standard erxes configuration.
|
|
10
|
+
*
|
|
11
|
+
* @param beforeSend - Optional beforeSend hook (e.g. sentryExpectedErrorFilter)
|
|
12
|
+
* @param serverName - Optional server name override (defaults to env or 'erxes')
|
|
13
|
+
*/
|
|
14
|
+
export declare function initErxesSentry(beforeSend?: (event: Sentry.ErrorEvent, hint?: Sentry.EventHint) => PromiseLike<Sentry.ErrorEvent | null> | Sentry.ErrorEvent | null, serverName?: string): void;
|
|
15
|
+
//# sourceMappingURL=sentry-init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentry-init.d.ts","sourceRoot":"../../../../src/utils","sources":["sentry-init.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAmGvC;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,SAAS,KAAK,WAAW,CAAC,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,UAAU,GAAG,IAAI,EACpI,UAAU,CAAC,EAAE,MAAM,QAapB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentry-instrument.d.ts","sourceRoot":"../../../../src/utils","sources":["sentry-instrument.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A payload as the queue can carry it, with any cycle broken.
|
|
3
|
+
*
|
|
4
|
+
* A value is only a cycle when it contains itself, so the chain of holders is
|
|
5
|
+
* what is checked rather than everything met so far. Treating every second
|
|
6
|
+
* sighting of an object as a cycle dropped shared references, which is how a
|
|
7
|
+
* change log's `added` lost the very subdocument it was reporting: the diff
|
|
8
|
+
* names the same object the document it came from already carried.
|
|
9
|
+
*/
|
|
10
|
+
export declare const toSerializablePayload: <T>(payload: T) => T;
|
|
11
|
+
//# sourceMappingURL=serializablePayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializablePayload.d.ts","sourceRoot":"../../../../src/utils","sources":["serializablePayload.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAE,SAAS,CAAC,KAAG,CAkCrD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface PluginConfig {
|
|
2
|
+
name: string;
|
|
3
|
+
port: number;
|
|
4
|
+
hasSubscriptions?: boolean;
|
|
5
|
+
meta?: any;
|
|
6
|
+
}
|
|
7
|
+
export declare const isDev: boolean;
|
|
8
|
+
export declare const keyForConfig: (name: string) => string;
|
|
9
|
+
export declare const getPlugins: () => Promise<string[]>;
|
|
10
|
+
export declare const setActivePlugins: (plugins: string[]) => Promise<void>;
|
|
11
|
+
export declare const getActivePlugins: () => Promise<string[]>;
|
|
12
|
+
export declare const getAvailablePlugins: (subdomain: string) => Promise<string[]>;
|
|
13
|
+
type ServiceInfo = {
|
|
14
|
+
address: string;
|
|
15
|
+
config: any;
|
|
16
|
+
};
|
|
17
|
+
export declare const clearServiceDiscoveryCache: (name?: string) => void;
|
|
18
|
+
export declare const getPlugin: (name: string) => Promise<Readonly<ServiceInfo>>;
|
|
19
|
+
export declare const joinErxesGateway: ({ name, port, hasSubscriptions, meta, }: PluginConfig) => Promise<void>;
|
|
20
|
+
export declare const leaveErxesGateway: (name: string, port: number) => Promise<void>;
|
|
21
|
+
export declare const isEnabled: (name: string) => Promise<boolean>;
|
|
22
|
+
export declare const getPluginAddress: (name: string) => Promise<any>;
|
|
23
|
+
export declare const initializePluginConfig: <TConfig extends object>(pluginName: string, propertyName: string, config: TConfig) => Promise<void>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=service-discovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-discovery.d.ts","sourceRoot":"../../../../src/utils","sources":["service-discovery.ts"],"names":[],"mappings":"AAYA,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,eAAO,MAAM,KAAK,SAA6B,CAAC;AAEhD,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,WAAkC,CAAC;AAE5E,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,MAAM,EAAE,CAUnD,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAU,SAAS,MAAM,EAAE,KAAG,OAAO,CAAC,IAAI,CAEtE,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,MAAM,EAAE,CAQzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,EAAE,CAkClB,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,CAAC;AAIpD,eAAO,MAAM,0BAA0B,GAAI,OAAO,MAAM,SAWvD,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,MAAM,MAAM,KACX,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAiB/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,yCAKpC,YAAY,kBAuEd,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,MAAM,MAAM,EAAE,MAAM,MAAM,kBAEjE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,MAAM,MAAM,qBAM3C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,iBAKlD,CAAC;AAcF,eAAO,MAAM,sBAAsB,GAAU,OAAO,SAAS,MAAM,EACjE,YAAY,MAAM,EAClB,cAAc,MAAM,EACpB,QAAQ,OAAO,kBAgBhB,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import "./sentry-instrument.js";
|
|
2
|
+
import express, { Request as ApiRequest, Response as ApiResponse, Router } from 'express';
|
|
3
|
+
import { DocumentNode, GraphQLScalarType } from 'graphql';
|
|
4
|
+
import type { IPropertyMeta, LogsConfigs, SegmentConfigs, TApprovalConfig, TRecordReferencesConfig } from "../core-modules/index.js";
|
|
5
|
+
import { AutomationConfigs } from "../core-modules/automations/types.js";
|
|
6
|
+
import type { ImportExportConfigs } from "../core-modules/import-export/types.js";
|
|
7
|
+
import { IMainContext, IPermissionConfig } from "../core-types/index.js";
|
|
8
|
+
import { BeforeResolversConfig } from "./apollo/beforeResolvers.js";
|
|
9
|
+
import { AfterProcessConfigs } from "./logs/index.js";
|
|
10
|
+
export declare const MAX_HEADER_BYTES: number;
|
|
11
|
+
declare enum API_METHODS {
|
|
12
|
+
GET = "get",
|
|
13
|
+
POST = "post",
|
|
14
|
+
PUT = "put",
|
|
15
|
+
PATCH = "patch",
|
|
16
|
+
DELETE = "delete"
|
|
17
|
+
}
|
|
18
|
+
type TAPIMethod = keyof typeof API_METHODS;
|
|
19
|
+
type IMeta = {
|
|
20
|
+
automations?: AutomationConfigs;
|
|
21
|
+
segments?: SegmentConfigs;
|
|
22
|
+
logs?: LogsConfigs;
|
|
23
|
+
afterProcess?: AfterProcessConfigs;
|
|
24
|
+
payments?: any;
|
|
25
|
+
notifications?: any;
|
|
26
|
+
tags?: any;
|
|
27
|
+
documents?: {
|
|
28
|
+
types: {
|
|
29
|
+
label: string;
|
|
30
|
+
contentType: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
properties?: IPropertyMeta;
|
|
34
|
+
references?: TRecordReferencesConfig;
|
|
35
|
+
approval?: TApprovalConfig;
|
|
36
|
+
permissions?: IPermissionConfig;
|
|
37
|
+
beforeResolvers?: BeforeResolversConfig;
|
|
38
|
+
importExport?: ImportExportConfigs;
|
|
39
|
+
relations?: {
|
|
40
|
+
subscribedTypes: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type ApiHandler = {
|
|
44
|
+
method: TAPIMethod;
|
|
45
|
+
path: string;
|
|
46
|
+
resolver: (req: ApiRequest, res: ApiResponse) => Promise<void> | void;
|
|
47
|
+
};
|
|
48
|
+
type ResolverObject = {
|
|
49
|
+
[key: string]: (...args: any[]) => any;
|
|
50
|
+
};
|
|
51
|
+
type GraphqlResolver = {
|
|
52
|
+
[key: string]: ResolverObject | GraphQLScalarType;
|
|
53
|
+
};
|
|
54
|
+
type ConfigTypes = {
|
|
55
|
+
name: string;
|
|
56
|
+
port: number;
|
|
57
|
+
graphql: () => Promise<{
|
|
58
|
+
resolvers: GraphqlResolver;
|
|
59
|
+
typeDefs: DocumentNode;
|
|
60
|
+
}>;
|
|
61
|
+
expressRouter?: Router;
|
|
62
|
+
apolloServerContext: (subdomain: string, context: any, req: ApiRequest, res: ApiResponse) => Promise<IMainContext>;
|
|
63
|
+
onServerInit?: (app: express.Express) => Promise<void>;
|
|
64
|
+
middlewares?: any;
|
|
65
|
+
apiHandlers?: ApiHandler[];
|
|
66
|
+
hasSubscriptions?: boolean;
|
|
67
|
+
corsOptions?: any;
|
|
68
|
+
subscriptionPluginPath?: any;
|
|
69
|
+
trpcAppRouter?: {
|
|
70
|
+
router: any;
|
|
71
|
+
createContext: <TContext>(subdomain: string, context: any) => Promise<TContext>;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* tRPC procedure paths to exclude from the agent capability manifest.
|
|
75
|
+
* Agent-tools endpoints are mounted automatically on every plugin that
|
|
76
|
+
* supplies a `trpcAppRouter`. Only procedures declaring
|
|
77
|
+
* `.meta({ agent: { permission } })` appear in the manifest; this list
|
|
78
|
+
* removes specific annotated procedures when needed.
|
|
79
|
+
*/
|
|
80
|
+
agentToolsExclude?: string[];
|
|
81
|
+
meta?: IMeta;
|
|
82
|
+
};
|
|
83
|
+
export declare function startPlugin(configs: ConfigTypes): Promise<express.Express>;
|
|
84
|
+
export default startPlugin;
|
|
85
|
+
//# sourceMappingURL=start-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-plugin.d.ts","sourceRoot":"../../../../src/utils","sources":["start-plugin.ts"],"names":[],"mappings":"AAAA,gCAA6B;AAS7B,OAAO,OAAO,EAAE,EACd,OAAO,IAAI,UAAU,EACrB,QAAQ,IAAI,WAAW,EAEvB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAK1D,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,cAAc,EACd,eAAe,EACf,uBAAuB,EACxB,iCAAwB;AAQzB,OAAO,EAAE,iBAAiB,EAAE,6CAA0C;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,+CAA4C;AAE/E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,+BAAsB;A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C,OAAO,CAAC,OAAO,CAAC,CAyU1B;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const stripAnsi: (str: string) => Promise<string>;
|
|
2
|
+
/**
|
|
3
|
+
* Removes the last trailing slash from a string if it exists.
|
|
4
|
+
*
|
|
5
|
+
* @param text - the string to remove the trailing slash from
|
|
6
|
+
* @returns the modified string with the trailing slash removed
|
|
7
|
+
*/
|
|
8
|
+
export declare const removeLastTrailingSlash: (text: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Replaces multiple whitespace characters in a string with a single space and trims
|
|
11
|
+
* the string of leading and trailing whitespace.
|
|
12
|
+
*
|
|
13
|
+
* @param text - the string to remove extra spaces from
|
|
14
|
+
* @returns the modified string with extra spaces removed
|
|
15
|
+
*/
|
|
16
|
+
export declare const removeExtraSpaces: (text: string) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Checks if the given string is a valid URL.
|
|
19
|
+
*
|
|
20
|
+
* @param url - the string to check
|
|
21
|
+
* @returns true if the string is a valid URL, false otherwise
|
|
22
|
+
*/
|
|
23
|
+
export declare const isValidURL: (url: string) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Splits text into chunks of strings limited by the given character count.
|
|
26
|
+
*
|
|
27
|
+
* Regex explanation:
|
|
28
|
+
* .{1,100}(\\s|$)
|
|
29
|
+
* - . → matches any character (except line terminators)
|
|
30
|
+
* - {1,100} → matches 1 to 100 of the preceding token
|
|
31
|
+
* - (\\s|$) → ends with a whitespace OR end of string
|
|
32
|
+
*
|
|
33
|
+
* @param str - Text to be split
|
|
34
|
+
* @param size - Character length of each chunk
|
|
35
|
+
* @returns An array of string chunks
|
|
36
|
+
*/
|
|
37
|
+
export declare const splitStr: (str: string, size: number) => Promise<string[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Cleans the given HTML content by removing ANSI escape codes
|
|
40
|
+
* and truncating the result to a maximum of 100 characters.
|
|
41
|
+
*
|
|
42
|
+
* @param content - The HTML content to be cleaned.
|
|
43
|
+
* @returns The cleaned content as a string.
|
|
44
|
+
*/
|
|
45
|
+
export declare const cleanHtml: (content?: string) => Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Escapes a string so that it can be used in a regular expression.
|
|
48
|
+
* This escapes all characters that have special meanings in regular
|
|
49
|
+
* expressions, so that the string can be used verbatim in a regular
|
|
50
|
+
* expression.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} str the string to escape
|
|
53
|
+
* @returns {string} the escaped string
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Takes an array of strings and returns a single string that is
|
|
57
|
+
* suitable for use as a search query. The function trims the
|
|
58
|
+
* resulting string to 512 characters if it is longer than that.
|
|
59
|
+
*
|
|
60
|
+
* @param {string[]} values an array of strings to join
|
|
61
|
+
* @returns {string} a single string suitable for use as a search query
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* Generates a random string of a given length using a given pattern.
|
|
65
|
+
*
|
|
66
|
+
* The pattern string can contain the following special characters:
|
|
67
|
+
* - `a`: lowercase letters
|
|
68
|
+
* - `A`: uppercase letters
|
|
69
|
+
* - `0`: numbers
|
|
70
|
+
* - `!`: special characters
|
|
71
|
+
*
|
|
72
|
+
* Any other characters in the pattern string are interpreted as literal
|
|
73
|
+
* characters and are included in the resulting string.
|
|
74
|
+
*
|
|
75
|
+
* If no valid pattern is provided, the function throws an error.
|
|
76
|
+
*
|
|
77
|
+
* @param {string} pattern the pattern to use when generating the string
|
|
78
|
+
* @param {number} length the length of the resulting string
|
|
79
|
+
* @returns {string} the generated string
|
|
80
|
+
*/
|
|
81
|
+
export declare const random: (pattern: string, length: number) => string;
|
|
82
|
+
//# sourceMappingURL=string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"../../../../src/utils","sources":["string.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAU,KAAK,MAAM,oBAQ1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,WAEnD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,WAE7C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,OAMxC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,GACnB,KAAK,MAAM,EACX,MAAM,MAAM,KACX,OAAO,CAAC,MAAM,EAAE,CAWlB,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,SAAS,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,MAAM,CACb,CAAC;AAErD;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,GAAI,SAAS,MAAM,EAAE,QAAQ,MAAM,WAmCrD,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createScopedEventHandlers } from "../../core-modules/common/eventHandlers/generateEventHandlers.js";
|
|
2
|
+
import { TRPCRequestOptions } from '@trpc/client';
|
|
3
|
+
import * as trpcExpress from '@trpc/server/adapters/express';
|
|
4
|
+
import { IncomingHttpHeaders } from 'http';
|
|
5
|
+
export type MessageProps = {
|
|
6
|
+
subdomain: string;
|
|
7
|
+
method?: 'query' | 'mutation';
|
|
8
|
+
pluginName: string;
|
|
9
|
+
module: string;
|
|
10
|
+
action: string;
|
|
11
|
+
input: any;
|
|
12
|
+
defaultValue?: any;
|
|
13
|
+
options?: TRPCRequestOptions;
|
|
14
|
+
context?: CommonTRPCContext;
|
|
15
|
+
throwOnError?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type CommonTRPCContext = {
|
|
18
|
+
processId?: string;
|
|
19
|
+
userId?: string;
|
|
20
|
+
cpUserId?: string;
|
|
21
|
+
};
|
|
22
|
+
export type ScopedEventHandlers = ReturnType<typeof createScopedEventHandlers>;
|
|
23
|
+
type RequestTRPCContext = {
|
|
24
|
+
subdomain: string;
|
|
25
|
+
} & CommonTRPCContext;
|
|
26
|
+
export type TRPCContext = RequestTRPCContext & {
|
|
27
|
+
eventHandlers: ScopedEventHandlers;
|
|
28
|
+
};
|
|
29
|
+
export interface InterMessage {
|
|
30
|
+
subdomain: string;
|
|
31
|
+
data?: any;
|
|
32
|
+
timeout?: number;
|
|
33
|
+
defaultValue?: any;
|
|
34
|
+
thirdService?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface RPSuccess {
|
|
37
|
+
status: 'success';
|
|
38
|
+
data?: any;
|
|
39
|
+
}
|
|
40
|
+
export interface RPError {
|
|
41
|
+
status: 'error';
|
|
42
|
+
errorMessage: string;
|
|
43
|
+
}
|
|
44
|
+
export type RPResult = RPSuccess | RPError;
|
|
45
|
+
export type RP = (params: InterMessage) => RPResult | Promise<RPResult>;
|
|
46
|
+
export declare const trpcContextHeaderName = "x-trpc-context";
|
|
47
|
+
export declare function encodeTRPCContextHeader(subdomain: string, method: 'query' | 'mutation', context: CommonTRPCContext | undefined): string;
|
|
48
|
+
/**
|
|
49
|
+
* Decode the base64 JSON tRPC context header into tenant, method, and caller
|
|
50
|
+
* context. Returns null when the header is absent or malformed. Note: the
|
|
51
|
+
* header is an encoding, not an authentication credential.
|
|
52
|
+
*/
|
|
53
|
+
export declare function decodeTRPCContextHeader(headers: IncomingHttpHeaders): {
|
|
54
|
+
subdomain: string;
|
|
55
|
+
method: 'query' | 'mutation';
|
|
56
|
+
context: CommonTRPCContext;
|
|
57
|
+
} | null;
|
|
58
|
+
export declare const sendTRPCMessage: ({ subdomain, pluginName, method, module, action, input, defaultValue, options, context, throwOnError, }: MessageProps) => Promise<any>;
|
|
59
|
+
/**
|
|
60
|
+
* Shared plugin-context initialization for in-process tRPC execution:
|
|
61
|
+
* request process state, event-handler runtime context, and scoped event
|
|
62
|
+
* handlers. Used by the /trpc express adapter and by the agent-tools
|
|
63
|
+
* endpoints so both paths build identical contexts.
|
|
64
|
+
*/
|
|
65
|
+
export declare const createPluginTRPCContext: <TContext>(subdomain: string, reqContext: CommonTRPCContext, trpcContext?: (subdomain: string, context: any) => Promise<TContext>) => Promise<TContext | TRPCContext>;
|
|
66
|
+
export declare const createTRPCContext: <TContext>(trpcContext: (subdomain: string, context: any) => Promise<TContext & TRPCContext>) => ({ req, }: trpcExpress.CreateExpressContextOptions) => Promise<TContext & TRPCContext>;
|
|
67
|
+
export type ITRPCContext<TExtraContext = object> = Awaited<ReturnType<typeof createTRPCContext<TExtraContext>>>;
|
|
68
|
+
export declare const ok: (data: any) => {
|
|
69
|
+
status: string;
|
|
70
|
+
data: any;
|
|
71
|
+
timestamp: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const err: (error: any) => {
|
|
74
|
+
status: string;
|
|
75
|
+
error: any;
|
|
76
|
+
timestamp: string;
|
|
77
|
+
};
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/utils/trpc","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,yEAAsE;AAC1G,OAAO,EAGL,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAK3C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,OAAO,CAAC,EA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AuB,CAAC,OAAO,EAAE,mBAAmB,GAAG;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC;IAC7B,OAAO,EAAE,iBAAiB,CAAC;CAC5B,GAAG,IAAI,CAgBP;AAED,eAAO,MAAM,eAAe,GAAU,yGAWnC,YAAY,iBAgEd,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAU,QAAQ,EACpD,WAAW,MAAM,EACjB,YAAY,iBAAiB,EAC7B,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,QAAQ,CAAC,KACnE,OAAO,CAAC,QAAQ,GAAG,WAAW,CA8BhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC3B,QAAQ,EACP,aAAa,CACX,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,GAAG,KACT,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC,MAE/B,UAEJ,WAAW,CAAC,2BAA2B,KAAG,OAAO,CAClD,QAAQ,GAAG,WAAW,CAiBvB,CAAC;AAEJ,MAAM,MAAM,YAAY,CAAC,aAAa,GAAG,MAAM,IAAI,OAAO,CACxD,UAAU,CAAC,OAAO,iBAAiB,CAAC,aAAa,CAAC,CAAC,CACpD,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,MAAM,GAAG;;;;CAM3B,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,OAAO,GAAG;;;;CAc7B,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { TRPCRequestOptions } from '@trpc/client';
|
|
2
|
+
import { TAutomationProducers } from "../../core-modules/automations/types.js";
|
|
3
|
+
import { TAutomationProducersInput } from "../../core-modules/automations/zodTypes.js";
|
|
4
|
+
import { TSegmentProducers } from "../../core-modules/segments/types.js";
|
|
5
|
+
import { TAfterProcessProducers } from "../../core-modules/logs/types.js";
|
|
6
|
+
import { TBeforeResolversProducers, TBeforeResolversProducersInput } from "../apollo/beforeResolvers.js";
|
|
7
|
+
import { TSegmentProducersInput } from "../../core-modules/segments/zodSchemas.js";
|
|
8
|
+
import { TImportExportProducersInput } from "../../core-modules/import-export/zodSchemas.js";
|
|
9
|
+
import { TImportExportProducers } from "../../core-modules/import-export/types.js";
|
|
10
|
+
import { TRPCContext } from "./index.js";
|
|
11
|
+
import { TRecordReferenceProducers, TRecordReferenceProducersInput } from "../../core-modules/common/references/types.js";
|
|
12
|
+
import { TApprovalChangeProducers, TApprovalChangeProducersInput } from "../../core-modules/approval/types.js";
|
|
13
|
+
import { TPropertyProducers, TPropertyProducersInput } from "../../core-modules/properties/valueUsage.js";
|
|
14
|
+
type TModuleProducerInputMap = {
|
|
15
|
+
automations: {
|
|
16
|
+
[K in TAutomationProducers]: TAutomationProducersInput[K];
|
|
17
|
+
};
|
|
18
|
+
segments: {
|
|
19
|
+
[K in TSegmentProducers]: TSegmentProducersInput[K];
|
|
20
|
+
};
|
|
21
|
+
afterProcess: {
|
|
22
|
+
[K in TAfterProcessProducers]: any;
|
|
23
|
+
};
|
|
24
|
+
beforeResolvers: {
|
|
25
|
+
[K in TBeforeResolversProducers]: TBeforeResolversProducersInput[K];
|
|
26
|
+
};
|
|
27
|
+
importExport: {
|
|
28
|
+
[K in TImportExportProducers]: TImportExportProducersInput[K];
|
|
29
|
+
};
|
|
30
|
+
references: {
|
|
31
|
+
[K in TRecordReferenceProducers]: TRecordReferenceProducersInput[K];
|
|
32
|
+
};
|
|
33
|
+
approval: {
|
|
34
|
+
[K in TApprovalChangeProducers]: TApprovalChangeProducersInput[K];
|
|
35
|
+
};
|
|
36
|
+
properties: {
|
|
37
|
+
[K in TPropertyProducers]: TPropertyProducersInput[K];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type TCoreModuleProducer<TModuleName extends keyof TModuleProducerInputMap = keyof TModuleProducerInputMap, TProducerName extends keyof TModuleProducerInputMap[TModuleName] = keyof TModuleProducerInputMap[TModuleName]> = {
|
|
41
|
+
subdomain: string;
|
|
42
|
+
moduleName: TModuleName;
|
|
43
|
+
producerName: TProducerName;
|
|
44
|
+
method?: 'query' | 'mutation';
|
|
45
|
+
pluginName: string;
|
|
46
|
+
input: TModuleProducerInputMap[TModuleName][TProducerName];
|
|
47
|
+
defaultValue?: any;
|
|
48
|
+
options?: TRPCRequestOptions;
|
|
49
|
+
context?: TRPCContext;
|
|
50
|
+
};
|
|
51
|
+
export declare const sendCoreModuleProducer: <TModuleName extends keyof TModuleProducerInputMap = keyof TModuleProducerInputMap, TProducerName extends keyof TModuleProducerInputMap[TModuleName] = keyof TModuleProducerInputMap[TModuleName]>({ subdomain, moduleName, pluginName, method, producerName, input, defaultValue, options, context, }: TCoreModuleProducer<TModuleName, TProducerName>) => Promise<any>;
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=sendCoreModuleProducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendCoreModuleProducer.d.ts","sourceRoot":"../../../../../src/utils/trpc","sources":["sendCoreModuleProducer.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,oBAAoB,EAAE,gDAA6C;AAC5E,OAAO,EAAE,yBAAyB,EAAE,mDAAgD;AACpF,OAAO,EAAE,iBAAiB,EAAE,6CAA0C;AACtE,OAAO,EAAE,sBAAsB,EAAE,yCAAsC;AACvE,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC/B,qCAAkC;AACnC,OAAO,EAAE,sBAAsB,EAAE,kDAA+C;AAChF,OAAO,EAAE,2BAA2B,EAAE,uDAAoD;AAC1F,OAAO,EAAE,sBAAsB,EAAE,kDAA+C;AAChF,OAAO,EAA2B,WAAW,EAAyB,mBAAU;AAChF,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC/B,sDAAmD;AACpD,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC9B,6CAA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