@yrpri/api 9.0.111 → 9.0.113
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/agents/assistants/baseAssistant.d.ts +1 -1
- package/agents/assistants/baseAssistant.js +1 -1
- package/agents/assistants/modes/tools/baseTools.d.ts +1 -1
- package/agents/assistants/modes/tools/models/agents.d.ts +1 -1
- package/agents/assistants/modes/tools/models/subscriptions.d.ts +1 -1
- package/agents/assistants/modes/tools/models/users.d.ts +1 -1
- package/agents/assistants/voiceAssistant.d.ts +1 -1
- package/agents/assistants/voiceAssistant.js +1 -1
- package/agents/controllers/policySynthAgents.js +0 -4
- package/agents/managers/emailInvitesManager.js +1 -1
- package/agents/managers/newAiModelSetup.js +0 -3
- package/agents/managers/notificationAgentQueueManager.js +1 -1
- package/app.js +4 -4
- package/controllers/allOurIdeas.js +3 -3
- package/controllers/audios.cjs +1 -1
- package/controllers/bulkStatusUpdates.cjs +1 -1
- package/controllers/communities.cjs +14 -14
- package/controllers/domains.cjs +12 -12
- package/controllers/groups.cjs +17 -17
- package/controllers/images.cjs +1 -1
- package/controllers/points.cjs +1 -1
- package/controllers/posts.cjs +3 -3
- package/controllers/ratings.cjs +1 -1
- package/controllers/users.cjs +4 -4
- package/controllers/videos.cjs +1 -1
- package/deleteUnwantedDeclerations.cjs +7 -7
- package/models/audio.cjs +1 -1
- package/models/campaign.cjs +1 -1
- package/models/community.cjs +1 -1
- package/models/domain.cjs +1 -1
- package/models/group.cjs +1 -1
- package/models/image.cjs +1 -1
- package/models/index.cjs +1 -1
- package/models/index.d.cts +2 -3
- package/models/point.cjs +1 -1
- package/models/post.cjs +1 -1
- package/models/video.cjs +2 -2
- package/package.json +6 -7
- package/scripts/cloning/clearUsersForCommunitiesFromUrl.js +1 -1
- package/scripts/cloning/cloneWBFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/cloneWBFromUrlScriptNoUsersOrPoints.js +1 -1
- package/scripts/cloning/cloneWBSerbianFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/copyCommunityConfigAndTranslationsFromURL.js +1 -1
- package/scripts/cloning/copyGroupConfigAndTranslationsFromURL.js +1 -1
- package/scripts/cloning/copyPostVideosFromURL.js +1 -1
- package/scripts/cloning/deepCloneSerbianWBFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/deepCloneWBFromUrlScriptAndCreateLinks.js +1 -1
- package/scripts/cloning/setAdminsFromURL.js +1 -1
- package/scripts/cloning/setExternalIdsFromURL.js +1 -1
- package/scripts/gallery/refreshAcApiPostIdsForCommunity.js +1 -1
- package/scripts/importAllLocalesFromLocalFolders.js +1 -1
- package/scripts/landUseGame/export3Ddata.js +1 -1
- package/{active-citizen → services}/engine/analytics/importer.js +5 -5
- package/{active-citizen → services}/engine/old/exporters/categories_dataset.js +3 -3
- package/{active-citizen → services}/engine/old/exporters/sentiment_dataset.js +2 -2
- package/services/models/index.cjs +35 -0
- package/services/models/index.d.cts +2 -0
- package/{active-citizen → services}/scripts/kue_watch_stuck_jobs.js +2 -2
- package/src/models/index.d.ts +84 -0
- package/src/server.d.ts +104 -0
- package/src/services/controllers/activities.d.ts +5 -0
- package/src/services/controllers/notifications.d.ts +5 -0
- package/utils/copy_utils.cjs +4 -4
- package/utils/generateDocumentation.js +287 -0
- package/utils/seedModels.js +5 -4
- package/active-citizen/controllers/activities.d.ts +0 -5
- package/active-citizen/controllers/notifications.d.ts +0 -5
- package/migrations/agentAuditLogs.cjs +0 -46
- package/migrations/agentAuditLogs.d.cts +0 -1
- package/migrations/agentClasses.cjs +0 -60
- package/migrations/agentClasses.d.cts +0 -1
- package/migrations/agentConnectorClasses.cjs +0 -61
- package/migrations/agentConnectorClasses.d.cts +0 -1
- package/migrations/agentConnectors.cjs +0 -50
- package/migrations/agentConnectors.d.cts +0 -1
- package/migrations/agentEvals.cjs +0 -45
- package/migrations/agentEvals.d.cts +0 -1
- package/migrations/agentRegistries.cjs +0 -40
- package/migrations/agentRegistries.d.cts +0 -1
- package/migrations/agents.cjs +0 -54
- package/migrations/agents.d.cts +0 -1
- package/migrations/aiModels.cjs +0 -49
- package/migrations/aiModels.d.cts +0 -1
- package/migrations/apiUsage.cjs +0 -47
- package/migrations/apiUsage.d.cts +0 -1
- package/migrations/apis.cjs +0 -49
- package/migrations/apis.d.cts +0 -1
- package/migrations/groupPrivateData.cjs +0 -30
- package/migrations/groupPrivateData.d.cts +0 -2
- package/migrations/modelUsage.cjs +0 -60
- package/migrations/modelUsage.d.cts +0 -2
- package/migrations/privateAccessStore.cjs +0 -55
- package/migrations/privateAccessStore.d.cts +0 -1
- package/migrations/zzz_associations.cjs +0 -154
- package/migrations/zzz_associations.d.cts +0 -1
- package/migrations/zzzz_createUsersAndAdminsForClasses.cjs +0 -100
- package/migrations/zzzz_createUsersAndAdminsForClasses.d.cts +0 -1
- package/migrations/zzzzz_create_agent_runs.cjs +0 -606
- package/migrations/zzzzz_create_agent_runs.d.cts +0 -2
- package/migrations/zzzzzz_create_agent_runs_fix.cjs +0 -11
- package/migrations/zzzzzz_create_agent_runs_fix.d.cts +0 -2
- package/migrations/zzzzzzz_create_trees.cjs +0 -81
- package/migrations/zzzzzzz_create_trees.d.cts +0 -2
- package/publish.js +0 -40
- package/repack.d.ts +0 -1
- package/repack.js +0 -53
- /package/{active-citizen → services}/controllers/activities.cjs +0 -0
- /package/{active-citizen → services}/controllers/activities.d.cts +0 -0
- /package/{active-citizen → services}/controllers/news_feeds.cjs +0 -0
- /package/{active-citizen → services}/controllers/news_feeds.d.cts +0 -0
- /package/{active-citizen → services}/controllers/notifications.cjs +0 -0
- /package/{active-citizen → services}/controllers/notifications.d.cts +0 -0
- /package/{active-citizen → services}/controllers/recommendations.cjs +0 -0
- /package/{active-citizen → services}/controllers/recommendations.d.cts +0 -0
- /package/{active-citizen → services}/email_templates/_common.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/bulk_status_update/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/delayed_notification/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/footer.html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/footer.text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/general_user_notification/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/header.html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/header.text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_changed/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/password_recovery/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_activity/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_comment/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/point_news_story/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_activity/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/post_status_change/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/user_invite/text.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/html.ejs +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/style.css +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/style.css.map +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/style.scss +0 -0
- /package/{active-citizen → services}/email_templates/notifications/welcome/text.ejs +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/aiHelper.d.ts +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/aiHelper.js +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/explainAnswersAssistant.d.ts +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/explainAnswersAssistant.js +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/iconGenerator.d.ts +0 -0
- /package/{active-citizen → services}/engine/allOurIdeas/iconGenerator.js +0 -0
- /package/{active-citizen → services}/engine/analytics/export_anon_community_activities.d.ts +0 -0
- /package/{active-citizen → services}/engine/analytics/export_anon_community_activities.js +0 -0
- /package/{active-citizen → services}/engine/analytics/importer.d.ts +0 -0
- /package/{active-citizen → services}/engine/analytics/manager.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/manager.d.cts +0 -0
- /package/{active-citizen → services}/engine/analytics/plausible/manager.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/plausible/manager.d.cts +0 -0
- /package/{active-citizen → services}/engine/analytics/statsCalc.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/statsCalc.d.cts +0 -0
- /package/{active-citizen → services}/engine/analytics/utils.cjs +0 -0
- /package/{active-citizen → services}/engine/analytics/utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/marketing/campaign.cjs +0 -0
- /package/{active-citizen → services}/engine/marketing/campaign.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/CreateFraudAuditReport.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/CreateFraudAuditReport.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteEndorsements.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteEndorsements.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePointQualities.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePointQualities.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePoints.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePoints.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePosts.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeletePosts.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteRatings.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudDeleteRatings.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetEndorsements.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetEndorsements.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPointQualities.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPointQualities.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPoints.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPoints.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPosts.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetPosts.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetRatings.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudGetRatings.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudScannerNotifier.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/fraud/FraudScannerNotifier.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/get_moderation_items.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/get_moderation_items.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/CommunityLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/CommunityLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/GroupLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/GroupLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/ImageLabelingBase.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/ImageLabelingBase.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PointLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PointLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PostLabeling.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/image_labeling/PostLabeling.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/perspective_api_client.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/perspective_api_client.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/process_moderation_items.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/process_moderation_items.d.cts +0 -0
- /package/{active-citizen → services}/engine/moderation/toxicity_analysis.cjs +0 -0
- /package/{active-citizen → services}/engine/moderation/toxicity_analysis.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/activity_and_item_index_definitions.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/activity_and_item_index_definitions.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_dynamically.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_dynamically.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_from_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/generate_from_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/news_feeds/news_feeds_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/news_feeds/news_feeds_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/emails_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/emails_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_point_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_point_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_status_change_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/generate_post_status_change_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/notifications_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/notifications_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/point_delivery.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/point_delivery.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/post_delivery.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/post_delivery.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/process_delayed_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/process_delayed_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/notifications/process_general_notifications.cjs +0 -0
- /package/{active-citizen → services}/engine/notifications/process_general_notifications.d.cts +0 -0
- /package/{active-citizen → services}/engine/old/exporters/categories_dataset.d.ts +0 -0
- /package/{active-citizen → services}/engine/old/exporters/dataset_tools.d.ts +0 -0
- /package/{active-citizen → services}/engine/old/exporters/dataset_tools.js +0 -0
- /package/{active-citizen → services}/engine/old/exporters/sentiment_dataset.d.ts +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_importer.cjs +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_importer.d.cts +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_manager.cjs +0 -0
- /package/{active-citizen → services}/engine/recommendations/events_manager.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/add_points_to_sheet.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/add_points_to_sheet.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/commonUtils.d.ts +0 -0
- /package/{active-citizen → services}/engine/reports/commonUtils.js +0 -0
- /package/{active-citizen → services}/engine/reports/common_utils.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/common_utils.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/docx_group_report.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/docx_group_report.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/xlsAllOurIdeasExport.d.ts +0 -0
- /package/{active-citizen → services}/engine/reports/xlsAllOurIdeasExport.js +0 -0
- /package/{active-citizen → services}/engine/reports/xls_community_users_report.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/xls_community_users_report.d.cts +0 -0
- /package/{active-citizen → services}/engine/reports/xls_group_report.cjs +0 -0
- /package/{active-citizen → services}/engine/reports/xls_group_report.d.cts +0 -0
- /package/{active-citizen → services}/llms/baseChatBot.d.ts +0 -0
- /package/{active-citizen → services}/llms/baseChatBot.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/chatGptImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/chatGptImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/collectionImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/collectionImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/dalleImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/dalleImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/fluxImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/fluxImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/iImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/iImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imageProcessorService.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imageProcessorService.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imagenImageGenerator.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/imagenImageGenerator.js +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/s3Service.d.ts +0 -0
- /package/{active-citizen → services}/llms/imageGeneration/s3Service.js +0 -0
- /package/{active-citizen → services}/llms/llmTranslation.d.ts +0 -0
- /package/{active-citizen → services}/llms/llmTranslation.js +0 -0
- /package/{active-citizen → services}/locales/aa/translation.json +0 -0
- /package/{active-citizen → services}/locales/ab/translation.json +0 -0
- /package/{active-citizen → services}/locales/ae/translation.json +0 -0
- /package/{active-citizen → services}/locales/af/translation.json +0 -0
- /package/{active-citizen → services}/locales/ak/translation.json +0 -0
- /package/{active-citizen → services}/locales/am/translation.json +0 -0
- /package/{active-citizen → services}/locales/an/translation.json +0 -0
- /package/{active-citizen → services}/locales/ar/translation.json +0 -0
- /package/{active-citizen → services}/locales/ar_eg/translation.json +0 -0
- /package/{active-citizen → services}/locales/as/translation.json +0 -0
- /package/{active-citizen → services}/locales/av/translation.json +0 -0
- /package/{active-citizen → services}/locales/ay/translation.json +0 -0
- /package/{active-citizen → services}/locales/az/translation.json +0 -0
- /package/{active-citizen → services}/locales/ba/translation.json +0 -0
- /package/{active-citizen → services}/locales/be/translation.json +0 -0
- /package/{active-citizen → services}/locales/bg/translation.json +0 -0
- /package/{active-citizen → services}/locales/bho/translation.json +0 -0
- /package/{active-citizen → services}/locales/bi/translation.json +0 -0
- /package/{active-citizen → services}/locales/bm/translation.json +0 -0
- /package/{active-citizen → services}/locales/bn/translation.json +0 -0
- /package/{active-citizen → services}/locales/bo/translation.json +0 -0
- /package/{active-citizen → services}/locales/br/translation.json +0 -0
- /package/{active-citizen → services}/locales/bs/translation.json +0 -0
- /package/{active-citizen → services}/locales/ca/translation.json +0 -0
- /package/{active-citizen → services}/locales/ce/translation.json +0 -0
- /package/{active-citizen → services}/locales/ceb/translation.json +0 -0
- /package/{active-citizen → services}/locales/ch/translation.json +0 -0
- /package/{active-citizen → services}/locales/ckb/translation.json +0 -0
- /package/{active-citizen → services}/locales/cnr/translation.json +0 -0
- /package/{active-citizen → services}/locales/co/translation.json +0 -0
- /package/{active-citizen → services}/locales/cr/translation.json +0 -0
- /package/{active-citizen → services}/locales/cs/translation.json +0 -0
- /package/{active-citizen → services}/locales/cu/translation.json +0 -0
- /package/{active-citizen → services}/locales/cv/translation.json +0 -0
- /package/{active-citizen → services}/locales/cy/translation.json +0 -0
- /package/{active-citizen → services}/locales/da/translation.json +0 -0
- /package/{active-citizen → services}/locales/de/translation.json +0 -0
- /package/{active-citizen → services}/locales/doi/translation.json +0 -0
- /package/{active-citizen → services}/locales/dv/translation.json +0 -0
- /package/{active-citizen → services}/locales/dz/translation.json +0 -0
- /package/{active-citizen → services}/locales/ee/translation.json +0 -0
- /package/{active-citizen → services}/locales/el/translation.json +0 -0
- /package/{active-citizen → services}/locales/en/translation.json +0 -0
- /package/{active-citizen → services}/locales/en_ca/translation.json +0 -0
- /package/{active-citizen → services}/locales/en_gb/translation.json +0 -0
- /package/{active-citizen → services}/locales/eo/translation.json +0 -0
- /package/{active-citizen → services}/locales/es/translation.json +0 -0
- /package/{active-citizen → services}/locales/et/translation.json +0 -0
- /package/{active-citizen → services}/locales/eu/translation.json +0 -0
- /package/{active-citizen → services}/locales/fa/translation.json +0 -0
- /package/{active-citizen → services}/locales/ff/translation.json +0 -0
- /package/{active-citizen → services}/locales/fi/translation.json +0 -0
- /package/{active-citizen → services}/locales/fil/translation.json +0 -0
- /package/{active-citizen → services}/locales/fj/translation.json +0 -0
- /package/{active-citizen → services}/locales/fo/translation.json +0 -0
- /package/{active-citizen → services}/locales/fr/translation.json +0 -0
- /package/{active-citizen → services}/locales/fy/translation.json +0 -0
- /package/{active-citizen → services}/locales/ga/translation.json +0 -0
- /package/{active-citizen → services}/locales/gd/translation.json +0 -0
- /package/{active-citizen → services}/locales/gl/translation.json +0 -0
- /package/{active-citizen → services}/locales/gn/translation.json +0 -0
- /package/{active-citizen → services}/locales/gom/translation.json +0 -0
- /package/{active-citizen → services}/locales/gu/translation.json +0 -0
- /package/{active-citizen → services}/locales/gv/translation.json +0 -0
- /package/{active-citizen → services}/locales/ha/translation.json +0 -0
- /package/{active-citizen → services}/locales/haw/translation.json +0 -0
- /package/{active-citizen → services}/locales/he/translation.json +0 -0
- /package/{active-citizen → services}/locales/hi/translation.json +0 -0
- /package/{active-citizen → services}/locales/hmn/translation.json +0 -0
- /package/{active-citizen → services}/locales/ho/translation.json +0 -0
- /package/{active-citizen → services}/locales/hr/translation.json +0 -0
- /package/{active-citizen → services}/locales/ht/translation.json +0 -0
- /package/{active-citizen → services}/locales/hu/translation.json +0 -0
- /package/{active-citizen → services}/locales/hy/translation.json +0 -0
- /package/{active-citizen → services}/locales/hz/translation.json +0 -0
- /package/{active-citizen → services}/locales/ia/translation.json +0 -0
- /package/{active-citizen → services}/locales/id/translation.json +0 -0
- /package/{active-citizen → services}/locales/ie/translation.json +0 -0
- /package/{active-citizen → services}/locales/ig/translation.json +0 -0
- /package/{active-citizen → services}/locales/ii/translation.json +0 -0
- /package/{active-citizen → services}/locales/ik/translation.json +0 -0
- /package/{active-citizen → services}/locales/ilo/translation.json +0 -0
- /package/{active-citizen → services}/locales/io/translation.json +0 -0
- /package/{active-citizen → services}/locales/is/translation.json +0 -0
- /package/{active-citizen → services}/locales/it/translation.json +0 -0
- /package/{active-citizen → services}/locales/iu/translation.json +0 -0
- /package/{active-citizen → services}/locales/ja/translation.json +0 -0
- /package/{active-citizen → services}/locales/jv/translation.json +0 -0
- /package/{active-citizen → services}/locales/ka/translation.json +0 -0
- /package/{active-citizen → services}/locales/kg/translation.json +0 -0
- /package/{active-citizen → services}/locales/ki/translation.json +0 -0
- /package/{active-citizen → services}/locales/kj/translation.json +0 -0
- /package/{active-citizen → services}/locales/kk/translation.json +0 -0
- /package/{active-citizen → services}/locales/kl/translation.json +0 -0
- /package/{active-citizen → services}/locales/km/translation.json +0 -0
- /package/{active-citizen → services}/locales/kn/translation.json +0 -0
- /package/{active-citizen → services}/locales/ko/translation.json +0 -0
- /package/{active-citizen → services}/locales/kr/translation.json +0 -0
- /package/{active-citizen → services}/locales/kri/translation.json +0 -0
- /package/{active-citizen → services}/locales/ks/translation.json +0 -0
- /package/{active-citizen → services}/locales/ku/translation.json +0 -0
- /package/{active-citizen → services}/locales/kv/translation.json +0 -0
- /package/{active-citizen → services}/locales/kw/translation.json +0 -0
- /package/{active-citizen → services}/locales/ky/translation.json +0 -0
- /package/{active-citizen → services}/locales/la/translation.json +0 -0
- /package/{active-citizen → services}/locales/lb/translation.json +0 -0
- /package/{active-citizen → services}/locales/lg/translation.json +0 -0
- /package/{active-citizen → services}/locales/li/translation.json +0 -0
- /package/{active-citizen → services}/locales/ln/translation.json +0 -0
- /package/{active-citizen → services}/locales/lo/translation.json +0 -0
- /package/{active-citizen → services}/locales/lt/translation.json +0 -0
- /package/{active-citizen → services}/locales/lu/translation.json +0 -0
- /package/{active-citizen → services}/locales/lus/translation.json +0 -0
- /package/{active-citizen → services}/locales/lv/translation.json +0 -0
- /package/{active-citizen → services}/locales/mai/translation.json +0 -0
- /package/{active-citizen → services}/locales/mg/translation.json +0 -0
- /package/{active-citizen → services}/locales/mh/translation.json +0 -0
- /package/{active-citizen → services}/locales/mi/translation.json +0 -0
- /package/{active-citizen → services}/locales/mk/translation.json +0 -0
- /package/{active-citizen → services}/locales/ml/translation.json +0 -0
- /package/{active-citizen → services}/locales/mn/translation.json +0 -0
- /package/{active-citizen → services}/locales/mnd/translation.json +0 -0
- /package/{active-citizen → services}/locales/mni_mtei/translation.json +0 -0
- /package/{active-citizen → services}/locales/mr/translation.json +0 -0
- /package/{active-citizen → services}/locales/ms/translation.json +0 -0
- /package/{active-citizen → services}/locales/mt/translation.json +0 -0
- /package/{active-citizen → services}/locales/my/translation.json +0 -0
- /package/{active-citizen → services}/locales/na/translation.json +0 -0
- /package/{active-citizen → services}/locales/nb/translation.json +0 -0
- /package/{active-citizen → services}/locales/nd/translation.json +0 -0
- /package/{active-citizen → services}/locales/ne/translation.json +0 -0
- /package/{active-citizen → services}/locales/ng/translation.json +0 -0
- /package/{active-citizen → services}/locales/nl/translation.json +0 -0
- /package/{active-citizen → services}/locales/nn/translation.json +0 -0
- /package/{active-citizen → services}/locales/no/translation.json +0 -0
- /package/{active-citizen → services}/locales/nr/translation.json +0 -0
- /package/{active-citizen → services}/locales/nso/translation.json +0 -0
- /package/{active-citizen → services}/locales/nv/translation.json +0 -0
- /package/{active-citizen → services}/locales/ny/translation.json +0 -0
- /package/{active-citizen → services}/locales/oc/translation.json +0 -0
- /package/{active-citizen → services}/locales/oj/translation.json +0 -0
- /package/{active-citizen → services}/locales/om/translation.json +0 -0
- /package/{active-citizen → services}/locales/or/translation.json +0 -0
- /package/{active-citizen → services}/locales/os/translation.json +0 -0
- /package/{active-citizen → services}/locales/pa/translation.json +0 -0
- /package/{active-citizen → services}/locales/pi/translation.json +0 -0
- /package/{active-citizen → services}/locales/pl/translation.json +0 -0
- /package/{active-citizen → services}/locales/ps/translation.json +0 -0
- /package/{active-citizen → services}/locales/pt/translation.json +0 -0
- /package/{active-citizen → services}/locales/pt_br/translation.json +0 -0
- /package/{active-citizen → services}/locales/qu/translation.json +0 -0
- /package/{active-citizen → services}/locales/rm/translation.json +0 -0
- /package/{active-citizen → services}/locales/rn/translation.json +0 -0
- /package/{active-citizen → services}/locales/ro/translation.json +0 -0
- /package/{active-citizen → services}/locales/ro_md/translation.json +0 -0
- /package/{active-citizen → services}/locales/ru/translation.json +0 -0
- /package/{active-citizen → services}/locales/rw/translation.json +0 -0
- /package/{active-citizen → services}/locales/sa/translation.json +0 -0
- /package/{active-citizen → services}/locales/sc/translation.json +0 -0
- /package/{active-citizen → services}/locales/sd/translation.json +0 -0
- /package/{active-citizen → services}/locales/se/translation.json +0 -0
- /package/{active-citizen → services}/locales/sg/translation.json +0 -0
- /package/{active-citizen → services}/locales/si/translation.json +0 -0
- /package/{active-citizen → services}/locales/sk/translation.json +0 -0
- /package/{active-citizen → services}/locales/sl/translation.json +0 -0
- /package/{active-citizen → services}/locales/sm/translation.json +0 -0
- /package/{active-citizen → services}/locales/sn/translation.json +0 -0
- /package/{active-citizen → services}/locales/so/translation.json +0 -0
- /package/{active-citizen → services}/locales/sq/translation.json +0 -0
- /package/{active-citizen → services}/locales/sr/translation.json +0 -0
- /package/{active-citizen → services}/locales/sr_latin/translation.json +0 -0
- /package/{active-citizen → services}/locales/ss/translation.json +0 -0
- /package/{active-citizen → services}/locales/st/translation.json +0 -0
- /package/{active-citizen → services}/locales/su/translation.json +0 -0
- /package/{active-citizen → services}/locales/sv/translation.json +0 -0
- /package/{active-citizen → services}/locales/sw/translation.json +0 -0
- /package/{active-citizen → services}/locales/ta/translation.json +0 -0
- /package/{active-citizen → services}/locales/te/translation.json +0 -0
- /package/{active-citizen → services}/locales/tg/translation.json +0 -0
- /package/{active-citizen → services}/locales/th/translation.json +0 -0
- /package/{active-citizen → services}/locales/ti/translation.json +0 -0
- /package/{active-citizen → services}/locales/tk/translation.json +0 -0
- /package/{active-citizen → services}/locales/tl/translation.json +0 -0
- /package/{active-citizen → services}/locales/tn/translation.json +0 -0
- /package/{active-citizen → services}/locales/to/translation.json +0 -0
- /package/{active-citizen → services}/locales/tr/translation.json +0 -0
- /package/{active-citizen → services}/locales/ts/translation.json +0 -0
- /package/{active-citizen → services}/locales/tt/translation.json +0 -0
- /package/{active-citizen → services}/locales/tw/translation.json +0 -0
- /package/{active-citizen → services}/locales/ty/translation.json +0 -0
- /package/{active-citizen → services}/locales/ug/translation.json +0 -0
- /package/{active-citizen → services}/locales/uk/translation.json +0 -0
- /package/{active-citizen → services}/locales/ur/translation.json +0 -0
- /package/{active-citizen → services}/locales/uz/translation.json +0 -0
- /package/{active-citizen → services}/locales/ve/translation.json +0 -0
- /package/{active-citizen → services}/locales/vi/translation.json +0 -0
- /package/{active-citizen → services}/locales/vo/translation.json +0 -0
- /package/{active-citizen → services}/locales/wa/translation.json +0 -0
- /package/{active-citizen → services}/locales/wo/translation.json +0 -0
- /package/{active-citizen → services}/locales/xh/translation.json +0 -0
- /package/{active-citizen → services}/locales/yi/translation.json +0 -0
- /package/{active-citizen → services}/locales/yo/translation.json +0 -0
- /package/{active-citizen → services}/locales/za/translation.json +0 -0
- /package/{active-citizen → services}/locales/zh/translation.json +0 -0
- /package/{active-citizen → services}/locales/zh_cn/translation.json +0 -0
- /package/{active-citizen → services}/locales/zh_tw/translation.json +0 -0
- /package/{active-citizen → services}/locales/zu/translation.json +0 -0
- /package/{active-citizen → services}/models/ac_activity.cjs +0 -0
- /package/{active-citizen → services}/models/ac_activity.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_background_job.cjs +0 -0
- /package/{active-citizen → services}/models/ac_background_job.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_campaign.cjs +0 -0
- /package/{active-citizen → services}/models/ac_campaign.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_client_activity.cjs +0 -0
- /package/{active-citizen → services}/models/ac_client_activity.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_delayed_notification.cjs +0 -0
- /package/{active-citizen → services}/models/ac_delayed_notification.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_following.cjs +0 -0
- /package/{active-citizen → services}/models/ac_following.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_list.cjs +0 -0
- /package/{active-citizen → services}/models/ac_list.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_list_users.cjs +0 -0
- /package/{active-citizen → services}/models/ac_list_users.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_mute.cjs +0 -0
- /package/{active-citizen → services}/models/ac_mute.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_item.cjs +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_item.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_processed_range.cjs +0 -0
- /package/{active-citizen → services}/models/ac_news_feed_processed_range.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_notification.cjs +0 -0
- /package/{active-citizen → services}/models/ac_notification.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_translation_cache.cjs +0 -0
- /package/{active-citizen → services}/models/ac_translation_cache.d.cts +0 -0
- /package/{active-citizen → services}/models/ac_watching.cjs +0 -0
- /package/{active-citizen → services}/models/ac_watching.d.cts +0 -0
- /package/{active-citizen → services}/scripts/analytics/setup_all_plausible_goals.cjs +0 -0
- /package/{active-citizen → services}/scripts/analytics/setup_all_plausible_goals.d.cts +0 -0
- /package/{active-citizen → services}/scripts/fix_old_delayed_notifications.d.ts +0 -0
- /package/{active-citizen → services}/scripts/fix_old_delayed_notifications.js +0 -0
- /package/{active-citizen → services}/scripts/kue_status.d.ts +0 -0
- /package/{active-citizen → services}/scripts/kue_status.js +0 -0
- /package/{active-citizen → services}/scripts/kue_watch_stuck_jobs.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_clear_language.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_clear_language.js +0 -0
- /package/{active-citizen → services}/scripts/translation_delete.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_delete.js +0 -0
- /package/{active-citizen → services}/scripts/translation_replace_text_from_url.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_replace_text_from_url.js +0 -0
- /package/{active-citizen → services}/scripts/translation_update.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translation_update.js +0 -0
- /package/{active-citizen → services}/scripts/translations_list.d.ts +0 -0
- /package/{active-citizen → services}/scripts/translations_list.js +0 -0
- /package/{active-citizen → services}/utils/airbrake.cjs +0 -0
- /package/{active-citizen → services}/utils/airbrake.d.cts +0 -0
- /package/{active-citizen → services}/utils/get_anonymous_system_user.cjs +0 -0
- /package/{active-citizen → services}/utils/get_anonymous_system_user.d.cts +0 -0
- /package/{active-citizen → services}/utils/i18n.cjs +0 -0
- /package/{active-citizen → services}/utils/i18n.d.cts +0 -0
- /package/{active-citizen → services}/utils/logger.cjs +0 -0
- /package/{active-citizen → services}/utils/logger.d.cts +0 -0
- /package/{active-citizen → services}/utils/redisConnection.cjs +0 -0
- /package/{active-citizen → services}/utils/redisConnection.d.cts +0 -0
- /package/{active-citizen → services}/utils/to_json.cjs +0 -0
- /package/{active-citizen → services}/utils/to_json.d.cts +0 -0
- /package/{active-citizen → services}/utils/translation_cloning.cjs +0 -0
- /package/{active-citizen → services}/utils/translation_cloning.d.cts +0 -0
- /package/{active-citizen → services}/utils/translation_helpers.cjs +0 -0
- /package/{active-citizen → services}/utils/translation_helpers.d.cts +0 -0
- /package/{active-citizen → services}/utils/truncate_text.cjs +0 -0
- /package/{active-citizen → services}/utils/truncate_text.d.cts +0 -0
- /package/{active-citizen → services}/utils/updateAllLocalesFromEn.d.ts +0 -0
- /package/{active-citizen → services}/utils/updateAllLocalesFromEn.js +0 -0
- /package/{active-citizen → services}/utils/updateLocaleFolders.d.ts +0 -0
- /package/{active-citizen → services}/utils/updateLocaleFolders.js +0 -0
- /package/{active-citizen → services}/workers/activity.cjs +0 -0
- /package/{active-citizen → services}/workers/activity.d.cts +0 -0
- /package/{active-citizen → services}/workers/anonymizations.cjs +0 -0
- /package/{active-citizen → services}/workers/anonymizations.d.cts +0 -0
- /package/{active-citizen → services}/workers/bulk_status_update.cjs +0 -0
- /package/{active-citizen → services}/workers/bulk_status_update.d.cts +0 -0
- /package/{active-citizen → services}/workers/delayed_jobs.cjs +0 -0
- /package/{active-citizen → services}/workers/delayed_jobs.d.cts +0 -0
- /package/{active-citizen → services}/workers/deletions.cjs +0 -0
- /package/{active-citizen → services}/workers/deletions.d.cts +0 -0
- /package/{active-citizen → services}/workers/email.cjs +0 -0
- /package/{active-citizen → services}/workers/email.d.cts +0 -0
- /package/{active-citizen → services}/workers/fraud_management.cjs +0 -0
- /package/{active-citizen → services}/workers/fraud_management.d.cts +0 -0
- /package/{active-citizen → services}/workers/generativeAi.d.ts +0 -0
- /package/{active-citizen → services}/workers/generativeAi.js +0 -0
- /package/{active-citizen → services}/workers/main.cjs +0 -0
- /package/{active-citizen → services}/workers/main.d.cts +0 -0
- /package/{active-citizen → services}/workers/marketing.cjs +0 -0
- /package/{active-citizen → services}/workers/marketing.d.cts +0 -0
- /package/{active-citizen → services}/workers/moderation.cjs +0 -0
- /package/{active-citizen → services}/workers/moderation.d.cts +0 -0
- /package/{active-citizen → services}/workers/notification_delivery.cjs +0 -0
- /package/{active-citizen → services}/workers/notification_delivery.d.cts +0 -0
- /package/{active-citizen → services}/workers/notification_news_feed.cjs +0 -0
- /package/{active-citizen → services}/workers/notification_news_feed.d.cts +0 -0
- /package/{active-citizen → services}/workers/queue.cjs +0 -0
- /package/{active-citizen → services}/workers/queue.d.cts +0 -0
- /package/{active-citizen → services}/workers/recount.cjs +0 -0
- /package/{active-citizen → services}/workers/recount.d.cts +0 -0
- /package/{active-citizen → services}/workers/reports.cjs +0 -0
- /package/{active-citizen → services}/workers/reports.d.cts +0 -0
- /package/{active-citizen → services}/workers/similarities.cjs +0 -0
- /package/{active-citizen → services}/workers/similarities.d.cts +0 -0
- /package/{active-citizen → services}/workers/speech_to_text.cjs +0 -0
- /package/{active-citizen → services}/workers/speech_to_text.d.cts +0 -0
- /package/{agents → src/agents}/assistants/assistant.d.ts +0 -0
- /package/{controllers → src/controllers}/audios.d.ts +0 -0
- /package/{controllers → src/controllers}/categories.d.ts +0 -0
- /package/{controllers → src/controllers}/communities.d.ts +0 -0
- /package/{controllers → src/controllers}/domains.d.ts +0 -0
- /package/{controllers → src/controllers}/groups.d.ts +0 -0
- /package/{controllers → src/controllers}/images.d.ts +0 -0
- /package/{controllers → src/controllers}/points.d.ts +0 -0
- /package/{controllers → src/controllers}/posts.d.ts +0 -0
- /package/{controllers → src/controllers}/ratings.d.ts +0 -0
- /package/{controllers → src/controllers}/users.d.ts +0 -0
- /package/{controllers → src/controllers}/videos.d.ts +0 -0
- /package/{utils → src/utils}/copy_utils.d.ts +0 -0
- /package/{utils → src/utils}/manifest_generator.d.ts +0 -0
- /package/{publish.d.ts → utils/generateDocumentation.d.ts} +0 -0
|
@@ -1,606 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = {
|
|
3
|
-
up: async (queryInterface, Sequelize) => {
|
|
4
|
-
// Create the 'agent_product_bundles' table
|
|
5
|
-
await queryInterface.createTable("agent_product_bundles", {
|
|
6
|
-
id: {
|
|
7
|
-
type: Sequelize.INTEGER,
|
|
8
|
-
autoIncrement: true,
|
|
9
|
-
primaryKey: true,
|
|
10
|
-
},
|
|
11
|
-
uuid: {
|
|
12
|
-
type: Sequelize.UUID,
|
|
13
|
-
defaultValue: Sequelize.UUIDV4,
|
|
14
|
-
allowNull: false,
|
|
15
|
-
},
|
|
16
|
-
name: {
|
|
17
|
-
type: Sequelize.STRING,
|
|
18
|
-
allowNull: false,
|
|
19
|
-
},
|
|
20
|
-
description: {
|
|
21
|
-
type: Sequelize.TEXT,
|
|
22
|
-
allowNull: true,
|
|
23
|
-
},
|
|
24
|
-
configuration: {
|
|
25
|
-
type: Sequelize.JSONB,
|
|
26
|
-
allowNull: true,
|
|
27
|
-
},
|
|
28
|
-
created_at: {
|
|
29
|
-
type: Sequelize.DATE,
|
|
30
|
-
allowNull: false,
|
|
31
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
32
|
-
},
|
|
33
|
-
updated_at: {
|
|
34
|
-
type: Sequelize.DATE,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
await queryInterface.addIndex("agent_product_bundles", ["uuid"], {
|
|
40
|
-
unique: true,
|
|
41
|
-
});
|
|
42
|
-
await queryInterface.addIndex("agent_product_bundles", ["name"]);
|
|
43
|
-
// Create the 'agent_products' table
|
|
44
|
-
await queryInterface.createTable("agent_products", {
|
|
45
|
-
id: {
|
|
46
|
-
type: Sequelize.INTEGER,
|
|
47
|
-
autoIncrement: true,
|
|
48
|
-
primaryKey: true,
|
|
49
|
-
},
|
|
50
|
-
uuid: {
|
|
51
|
-
type: Sequelize.UUID,
|
|
52
|
-
defaultValue: Sequelize.UUIDV4,
|
|
53
|
-
allowNull: false,
|
|
54
|
-
},
|
|
55
|
-
name: {
|
|
56
|
-
type: Sequelize.STRING,
|
|
57
|
-
allowNull: false,
|
|
58
|
-
},
|
|
59
|
-
description: {
|
|
60
|
-
type: Sequelize.TEXT,
|
|
61
|
-
allowNull: true,
|
|
62
|
-
},
|
|
63
|
-
user_id: {
|
|
64
|
-
type: Sequelize.INTEGER,
|
|
65
|
-
allowNull: false,
|
|
66
|
-
references: {
|
|
67
|
-
model: "users", // Assuming 'users' table exists
|
|
68
|
-
key: "id",
|
|
69
|
-
},
|
|
70
|
-
onDelete: "CASCADE",
|
|
71
|
-
},
|
|
72
|
-
group_id: {
|
|
73
|
-
type: Sequelize.INTEGER,
|
|
74
|
-
allowNull: true,
|
|
75
|
-
references: {
|
|
76
|
-
model: "groups",
|
|
77
|
-
key: "id",
|
|
78
|
-
},
|
|
79
|
-
onDelete: "CASCADE",
|
|
80
|
-
},
|
|
81
|
-
domain_id: {
|
|
82
|
-
type: Sequelize.INTEGER,
|
|
83
|
-
allowNull: false,
|
|
84
|
-
references: {
|
|
85
|
-
model: "domains",
|
|
86
|
-
key: "id",
|
|
87
|
-
},
|
|
88
|
-
onDelete: "CASCADE",
|
|
89
|
-
},
|
|
90
|
-
configuration: {
|
|
91
|
-
type: Sequelize.JSONB,
|
|
92
|
-
allowNull: false
|
|
93
|
-
},
|
|
94
|
-
status: {
|
|
95
|
-
type: Sequelize.JSONB,
|
|
96
|
-
allowNull: true,
|
|
97
|
-
defaultValue: {},
|
|
98
|
-
},
|
|
99
|
-
created_at: {
|
|
100
|
-
type: Sequelize.DATE,
|
|
101
|
-
allowNull: false,
|
|
102
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
103
|
-
},
|
|
104
|
-
updated_at: {
|
|
105
|
-
type: Sequelize.DATE,
|
|
106
|
-
allowNull: false,
|
|
107
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
108
|
-
},
|
|
109
|
-
});
|
|
110
|
-
await queryInterface.addIndex("agent_products", ["uuid"], {
|
|
111
|
-
unique: true,
|
|
112
|
-
});
|
|
113
|
-
await queryInterface.addIndex("agent_products", ["user_id"]);
|
|
114
|
-
await queryInterface.addIndex("agent_products", ["group_id"]);
|
|
115
|
-
await queryInterface.addIndex("agent_products", ["domain_id"]);
|
|
116
|
-
// Create the 'subscription_plans' table
|
|
117
|
-
await queryInterface.createTable("subscription_plans", {
|
|
118
|
-
id: {
|
|
119
|
-
type: Sequelize.INTEGER,
|
|
120
|
-
autoIncrement: true,
|
|
121
|
-
primaryKey: true,
|
|
122
|
-
},
|
|
123
|
-
uuid: {
|
|
124
|
-
type: Sequelize.UUID,
|
|
125
|
-
defaultValue: Sequelize.UUIDV4,
|
|
126
|
-
allowNull: false,
|
|
127
|
-
},
|
|
128
|
-
agent_product_id: {
|
|
129
|
-
type: Sequelize.INTEGER,
|
|
130
|
-
allowNull: false,
|
|
131
|
-
references: {
|
|
132
|
-
model: "agent_products",
|
|
133
|
-
key: "id",
|
|
134
|
-
},
|
|
135
|
-
onDelete: "CASCADE",
|
|
136
|
-
},
|
|
137
|
-
name: {
|
|
138
|
-
type: Sequelize.STRING(256),
|
|
139
|
-
allowNull: false,
|
|
140
|
-
},
|
|
141
|
-
description: {
|
|
142
|
-
type: Sequelize.TEXT,
|
|
143
|
-
allowNull: true,
|
|
144
|
-
},
|
|
145
|
-
configuration: {
|
|
146
|
-
type: Sequelize.JSONB,
|
|
147
|
-
allowNull: false,
|
|
148
|
-
},
|
|
149
|
-
created_at: {
|
|
150
|
-
type: Sequelize.DATE,
|
|
151
|
-
allowNull: false,
|
|
152
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
153
|
-
},
|
|
154
|
-
updated_at: {
|
|
155
|
-
type: Sequelize.DATE,
|
|
156
|
-
allowNull: false,
|
|
157
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
158
|
-
},
|
|
159
|
-
});
|
|
160
|
-
await queryInterface.addIndex("subscription_plans", ["uuid"], {
|
|
161
|
-
unique: true,
|
|
162
|
-
});
|
|
163
|
-
await queryInterface.addIndex("subscription_plans", ["agent_product_id"]);
|
|
164
|
-
await queryInterface.addIndex("subscription_plans", ["name"]);
|
|
165
|
-
// Create the 'subscriptions' table
|
|
166
|
-
await queryInterface.createTable("subscriptions", {
|
|
167
|
-
id: {
|
|
168
|
-
type: Sequelize.INTEGER,
|
|
169
|
-
autoIncrement: true,
|
|
170
|
-
primaryKey: true,
|
|
171
|
-
},
|
|
172
|
-
uuid: {
|
|
173
|
-
type: Sequelize.UUID,
|
|
174
|
-
defaultValue: Sequelize.UUIDV4,
|
|
175
|
-
allowNull: false,
|
|
176
|
-
},
|
|
177
|
-
user_id: {
|
|
178
|
-
type: Sequelize.INTEGER,
|
|
179
|
-
allowNull: false,
|
|
180
|
-
references: {
|
|
181
|
-
model: "users",
|
|
182
|
-
key: "id",
|
|
183
|
-
},
|
|
184
|
-
onDelete: "CASCADE",
|
|
185
|
-
},
|
|
186
|
-
domain_id: {
|
|
187
|
-
type: Sequelize.INTEGER,
|
|
188
|
-
allowNull: false,
|
|
189
|
-
references: {
|
|
190
|
-
model: "domains",
|
|
191
|
-
key: "id",
|
|
192
|
-
},
|
|
193
|
-
onDelete: "CASCADE",
|
|
194
|
-
},
|
|
195
|
-
agent_product_id: {
|
|
196
|
-
type: Sequelize.INTEGER,
|
|
197
|
-
allowNull: false,
|
|
198
|
-
references: {
|
|
199
|
-
model: "agent_products",
|
|
200
|
-
key: "id",
|
|
201
|
-
},
|
|
202
|
-
onDelete: "CASCADE",
|
|
203
|
-
},
|
|
204
|
-
configuration: {
|
|
205
|
-
type: Sequelize.JSONB,
|
|
206
|
-
allowNull: true,
|
|
207
|
-
},
|
|
208
|
-
subscription_plan_id: {
|
|
209
|
-
type: Sequelize.INTEGER,
|
|
210
|
-
allowNull: false,
|
|
211
|
-
references: {
|
|
212
|
-
model: "subscription_plans",
|
|
213
|
-
key: "id",
|
|
214
|
-
},
|
|
215
|
-
onDelete: "CASCADE",
|
|
216
|
-
},
|
|
217
|
-
start_date: {
|
|
218
|
-
type: Sequelize.DATE,
|
|
219
|
-
allowNull: false,
|
|
220
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
221
|
-
},
|
|
222
|
-
end_date: {
|
|
223
|
-
type: Sequelize.DATE,
|
|
224
|
-
allowNull: true,
|
|
225
|
-
},
|
|
226
|
-
next_billing_date: {
|
|
227
|
-
type: Sequelize.DATE,
|
|
228
|
-
allowNull: false,
|
|
229
|
-
},
|
|
230
|
-
status: {
|
|
231
|
-
type: Sequelize.ENUM("active", "paused", "cancelled", "expired"),
|
|
232
|
-
allowNull: false,
|
|
233
|
-
defaultValue: "active",
|
|
234
|
-
},
|
|
235
|
-
payment_method: {
|
|
236
|
-
type: Sequelize.STRING(50),
|
|
237
|
-
allowNull: true,
|
|
238
|
-
},
|
|
239
|
-
transaction_id: {
|
|
240
|
-
type: Sequelize.STRING(100),
|
|
241
|
-
allowNull: true,
|
|
242
|
-
},
|
|
243
|
-
metadata: {
|
|
244
|
-
type: Sequelize.JSONB,
|
|
245
|
-
allowNull: true,
|
|
246
|
-
defaultValue: {},
|
|
247
|
-
},
|
|
248
|
-
created_at: {
|
|
249
|
-
type: Sequelize.DATE,
|
|
250
|
-
allowNull: false,
|
|
251
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
252
|
-
},
|
|
253
|
-
updated_at: {
|
|
254
|
-
type: Sequelize.DATE,
|
|
255
|
-
allowNull: false,
|
|
256
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
257
|
-
},
|
|
258
|
-
});
|
|
259
|
-
await queryInterface.addIndex("subscriptions", ["uuid"], {
|
|
260
|
-
unique: true,
|
|
261
|
-
});
|
|
262
|
-
await queryInterface.addIndex("subscriptions", ["user_id"]);
|
|
263
|
-
await queryInterface.addIndex("subscriptions", ["agent_product_id"]);
|
|
264
|
-
await queryInterface.addIndex("subscriptions", ["subscription_plan_id"]);
|
|
265
|
-
// Create the 'discounts' table
|
|
266
|
-
await queryInterface.createTable("discounts", {
|
|
267
|
-
id: {
|
|
268
|
-
type: Sequelize.INTEGER,
|
|
269
|
-
autoIncrement: true,
|
|
270
|
-
primaryKey: true,
|
|
271
|
-
},
|
|
272
|
-
uuid: {
|
|
273
|
-
type: Sequelize.UUID,
|
|
274
|
-
defaultValue: Sequelize.UUIDV4,
|
|
275
|
-
allowNull: false,
|
|
276
|
-
},
|
|
277
|
-
code: {
|
|
278
|
-
type: Sequelize.STRING(50),
|
|
279
|
-
allowNull: false,
|
|
280
|
-
unique: true,
|
|
281
|
-
},
|
|
282
|
-
description: {
|
|
283
|
-
type: Sequelize.TEXT,
|
|
284
|
-
allowNull: true,
|
|
285
|
-
},
|
|
286
|
-
discount_type: {
|
|
287
|
-
type: Sequelize.ENUM("percentage", "fixed"),
|
|
288
|
-
allowNull: false,
|
|
289
|
-
},
|
|
290
|
-
discount_value: {
|
|
291
|
-
type: Sequelize.DECIMAL(10, 2),
|
|
292
|
-
allowNull: false,
|
|
293
|
-
},
|
|
294
|
-
max_uses: {
|
|
295
|
-
type: Sequelize.INTEGER,
|
|
296
|
-
allowNull: true,
|
|
297
|
-
},
|
|
298
|
-
uses: {
|
|
299
|
-
type: Sequelize.INTEGER,
|
|
300
|
-
allowNull: false,
|
|
301
|
-
defaultValue: 0,
|
|
302
|
-
},
|
|
303
|
-
start_date: {
|
|
304
|
-
type: Sequelize.DATE,
|
|
305
|
-
allowNull: true,
|
|
306
|
-
},
|
|
307
|
-
end_date: {
|
|
308
|
-
type: Sequelize.DATE,
|
|
309
|
-
allowNull: true,
|
|
310
|
-
},
|
|
311
|
-
applicable_to: {
|
|
312
|
-
type: Sequelize.ENUM("agent_product", "booster", "subscription", "both"),
|
|
313
|
-
allowNull: false,
|
|
314
|
-
},
|
|
315
|
-
created_at: {
|
|
316
|
-
type: Sequelize.DATE,
|
|
317
|
-
allowNull: false,
|
|
318
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
319
|
-
},
|
|
320
|
-
updated_at: {
|
|
321
|
-
type: Sequelize.DATE,
|
|
322
|
-
allowNull: false,
|
|
323
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
324
|
-
},
|
|
325
|
-
});
|
|
326
|
-
await queryInterface.addIndex("discounts", ["uuid"], {
|
|
327
|
-
unique: true,
|
|
328
|
-
});
|
|
329
|
-
await queryInterface.addIndex("discounts", ["code"], {
|
|
330
|
-
unique: true,
|
|
331
|
-
});
|
|
332
|
-
// Create the 'agent_product_booster_purchases' table
|
|
333
|
-
await queryInterface.createTable("agent_product_booster_purchases", {
|
|
334
|
-
id: {
|
|
335
|
-
type: Sequelize.INTEGER,
|
|
336
|
-
autoIncrement: true,
|
|
337
|
-
primaryKey: true,
|
|
338
|
-
},
|
|
339
|
-
uuid: {
|
|
340
|
-
type: Sequelize.UUID,
|
|
341
|
-
defaultValue: Sequelize.UUIDV4,
|
|
342
|
-
allowNull: false,
|
|
343
|
-
},
|
|
344
|
-
user_id: {
|
|
345
|
-
type: Sequelize.INTEGER,
|
|
346
|
-
allowNull: false,
|
|
347
|
-
references: {
|
|
348
|
-
model: "users", // Assuming 'users' table exists
|
|
349
|
-
key: "id",
|
|
350
|
-
},
|
|
351
|
-
onDelete: "CASCADE",
|
|
352
|
-
},
|
|
353
|
-
agent_product_id: {
|
|
354
|
-
type: Sequelize.INTEGER,
|
|
355
|
-
allowNull: false,
|
|
356
|
-
references: {
|
|
357
|
-
model: "agent_products",
|
|
358
|
-
key: "id",
|
|
359
|
-
},
|
|
360
|
-
onDelete: "CASCADE",
|
|
361
|
-
},
|
|
362
|
-
subscription_plan_id: {
|
|
363
|
-
type: Sequelize.INTEGER,
|
|
364
|
-
allowNull: false,
|
|
365
|
-
references: {
|
|
366
|
-
model: "subscription_plans",
|
|
367
|
-
key: "id",
|
|
368
|
-
},
|
|
369
|
-
onDelete: "CASCADE",
|
|
370
|
-
},
|
|
371
|
-
runs_purchased: {
|
|
372
|
-
type: Sequelize.INTEGER,
|
|
373
|
-
allowNull: false,
|
|
374
|
-
},
|
|
375
|
-
amount: {
|
|
376
|
-
type: Sequelize.DECIMAL(10, 2),
|
|
377
|
-
allowNull: false,
|
|
378
|
-
},
|
|
379
|
-
currency: {
|
|
380
|
-
type: Sequelize.STRING(10),
|
|
381
|
-
allowNull: false,
|
|
382
|
-
defaultValue: "USD",
|
|
383
|
-
},
|
|
384
|
-
purchase_date: {
|
|
385
|
-
type: Sequelize.DATE,
|
|
386
|
-
allowNull: false,
|
|
387
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
388
|
-
},
|
|
389
|
-
payment_method: {
|
|
390
|
-
type: Sequelize.STRING(50),
|
|
391
|
-
allowNull: true,
|
|
392
|
-
},
|
|
393
|
-
status: {
|
|
394
|
-
type: Sequelize.STRING(20),
|
|
395
|
-
allowNull: false,
|
|
396
|
-
defaultValue: "completed",
|
|
397
|
-
},
|
|
398
|
-
transaction_id: {
|
|
399
|
-
type: Sequelize.STRING(100),
|
|
400
|
-
allowNull: true,
|
|
401
|
-
},
|
|
402
|
-
metadata: {
|
|
403
|
-
type: Sequelize.JSONB,
|
|
404
|
-
allowNull: true,
|
|
405
|
-
defaultValue: {},
|
|
406
|
-
},
|
|
407
|
-
discount_id: {
|
|
408
|
-
type: Sequelize.INTEGER,
|
|
409
|
-
allowNull: true,
|
|
410
|
-
references: {
|
|
411
|
-
model: "discounts",
|
|
412
|
-
key: "id",
|
|
413
|
-
},
|
|
414
|
-
onDelete: "SET NULL",
|
|
415
|
-
},
|
|
416
|
-
created_at: {
|
|
417
|
-
type: Sequelize.DATE,
|
|
418
|
-
allowNull: false,
|
|
419
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
420
|
-
},
|
|
421
|
-
updated_at: {
|
|
422
|
-
type: Sequelize.DATE,
|
|
423
|
-
allowNull: false,
|
|
424
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
425
|
-
},
|
|
426
|
-
});
|
|
427
|
-
await queryInterface.addIndex("agent_product_booster_purchases", ["uuid"], {
|
|
428
|
-
unique: true,
|
|
429
|
-
});
|
|
430
|
-
await queryInterface.addIndex("agent_product_booster_purchases", [
|
|
431
|
-
"user_id",
|
|
432
|
-
]);
|
|
433
|
-
await queryInterface.addIndex("agent_product_booster_purchases", [
|
|
434
|
-
"agent_product_id",
|
|
435
|
-
]);
|
|
436
|
-
await queryInterface.addIndex("agent_product_booster_purchases", [
|
|
437
|
-
"subscription_plan_id",
|
|
438
|
-
]);
|
|
439
|
-
await queryInterface.addIndex("agent_product_booster_purchases", [
|
|
440
|
-
"discount_id",
|
|
441
|
-
]);
|
|
442
|
-
// Create the 'agent_product_runs' table
|
|
443
|
-
await queryInterface.createTable("agent_product_runs", {
|
|
444
|
-
id: {
|
|
445
|
-
type: Sequelize.INTEGER,
|
|
446
|
-
autoIncrement: true,
|
|
447
|
-
primaryKey: true,
|
|
448
|
-
},
|
|
449
|
-
uuid: {
|
|
450
|
-
type: Sequelize.UUID,
|
|
451
|
-
defaultValue: Sequelize.UUIDV4,
|
|
452
|
-
allowNull: false,
|
|
453
|
-
},
|
|
454
|
-
subscription_id: {
|
|
455
|
-
type: Sequelize.INTEGER,
|
|
456
|
-
allowNull: false,
|
|
457
|
-
references: {
|
|
458
|
-
model: "subscriptions",
|
|
459
|
-
key: "id",
|
|
460
|
-
},
|
|
461
|
-
onDelete: "CASCADE",
|
|
462
|
-
},
|
|
463
|
-
start_time: {
|
|
464
|
-
type: Sequelize.DATE,
|
|
465
|
-
allowNull: false,
|
|
466
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
467
|
-
},
|
|
468
|
-
end_time: {
|
|
469
|
-
type: Sequelize.DATE,
|
|
470
|
-
allowNull: true,
|
|
471
|
-
},
|
|
472
|
-
duration: {
|
|
473
|
-
type: Sequelize.INTEGER,
|
|
474
|
-
allowNull: true,
|
|
475
|
-
},
|
|
476
|
-
status: {
|
|
477
|
-
type: Sequelize.ENUM("pending", "running", "completed", "failed", "cancelled"),
|
|
478
|
-
allowNull: false,
|
|
479
|
-
defaultValue: "pending",
|
|
480
|
-
},
|
|
481
|
-
workflow: {
|
|
482
|
-
type: Sequelize.JSONB,
|
|
483
|
-
allowNull: false
|
|
484
|
-
},
|
|
485
|
-
input_data: {
|
|
486
|
-
type: Sequelize.JSONB,
|
|
487
|
-
allowNull: true,
|
|
488
|
-
defaultValue: {},
|
|
489
|
-
},
|
|
490
|
-
output_data: {
|
|
491
|
-
type: Sequelize.JSONB,
|
|
492
|
-
allowNull: true,
|
|
493
|
-
defaultValue: {},
|
|
494
|
-
},
|
|
495
|
-
error_message: {
|
|
496
|
-
type: Sequelize.TEXT,
|
|
497
|
-
allowNull: true,
|
|
498
|
-
},
|
|
499
|
-
run_type: {
|
|
500
|
-
type: Sequelize.STRING(50),
|
|
501
|
-
allowNull: true,
|
|
502
|
-
},
|
|
503
|
-
metadata: {
|
|
504
|
-
type: Sequelize.JSONB,
|
|
505
|
-
allowNull: true,
|
|
506
|
-
defaultValue: {},
|
|
507
|
-
},
|
|
508
|
-
created_at: {
|
|
509
|
-
type: Sequelize.DATE,
|
|
510
|
-
allowNull: false,
|
|
511
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
512
|
-
},
|
|
513
|
-
updated_at: {
|
|
514
|
-
type: Sequelize.DATE,
|
|
515
|
-
allowNull: false,
|
|
516
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
517
|
-
},
|
|
518
|
-
});
|
|
519
|
-
await queryInterface.addIndex("agent_product_runs", ["uuid"], {
|
|
520
|
-
unique: true,
|
|
521
|
-
});
|
|
522
|
-
await queryInterface.addIndex("agent_product_runs", ["subscription_id"]);
|
|
523
|
-
await queryInterface.addIndex("agent_product_runs", ["status"]);
|
|
524
|
-
await queryInterface.createTable("subscription_discounts", {
|
|
525
|
-
subscription_id: {
|
|
526
|
-
type: Sequelize.INTEGER,
|
|
527
|
-
allowNull: false,
|
|
528
|
-
references: {
|
|
529
|
-
model: "subscriptions",
|
|
530
|
-
key: "id",
|
|
531
|
-
},
|
|
532
|
-
onDelete: "CASCADE",
|
|
533
|
-
},
|
|
534
|
-
discount_id: {
|
|
535
|
-
type: Sequelize.INTEGER,
|
|
536
|
-
allowNull: false,
|
|
537
|
-
references: {
|
|
538
|
-
model: "discounts",
|
|
539
|
-
key: "id",
|
|
540
|
-
},
|
|
541
|
-
onDelete: "CASCADE",
|
|
542
|
-
},
|
|
543
|
-
created_at: {
|
|
544
|
-
type: Sequelize.DATE,
|
|
545
|
-
allowNull: false,
|
|
546
|
-
defaultValue: Sequelize.NOW,
|
|
547
|
-
},
|
|
548
|
-
updated_at: {
|
|
549
|
-
type: Sequelize.DATE,
|
|
550
|
-
allowNull: false,
|
|
551
|
-
defaultValue: Sequelize.NOW,
|
|
552
|
-
},
|
|
553
|
-
});
|
|
554
|
-
// Add composite primary key
|
|
555
|
-
await queryInterface.addConstraint("subscription_discounts", {
|
|
556
|
-
fields: ["subscription_id", "discount_id"],
|
|
557
|
-
type: "primary key",
|
|
558
|
-
name: "subscription_discounts_pkey",
|
|
559
|
-
});
|
|
560
|
-
await queryInterface.addIndex("subscription_discounts", [
|
|
561
|
-
"subscription_id",
|
|
562
|
-
]);
|
|
563
|
-
await queryInterface.addIndex("subscription_discounts", ["discount_id"]);
|
|
564
|
-
// Create the join table for agent_products and agent_product_bundles
|
|
565
|
-
await queryInterface.createTable("agent_product_bundles_products", {
|
|
566
|
-
agent_product_id: {
|
|
567
|
-
type: Sequelize.INTEGER,
|
|
568
|
-
allowNull: false,
|
|
569
|
-
references: {
|
|
570
|
-
model: "agent_products",
|
|
571
|
-
key: "id",
|
|
572
|
-
},
|
|
573
|
-
onDelete: "CASCADE",
|
|
574
|
-
},
|
|
575
|
-
agent_product_bundle_id: {
|
|
576
|
-
type: Sequelize.INTEGER,
|
|
577
|
-
allowNull: false,
|
|
578
|
-
references: {
|
|
579
|
-
model: "agent_product_bundles",
|
|
580
|
-
key: "id",
|
|
581
|
-
},
|
|
582
|
-
onDelete: "CASCADE",
|
|
583
|
-
},
|
|
584
|
-
created_at: {
|
|
585
|
-
type: Sequelize.DATE,
|
|
586
|
-
allowNull: false,
|
|
587
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
588
|
-
},
|
|
589
|
-
updated_at: {
|
|
590
|
-
type: Sequelize.DATE,
|
|
591
|
-
allowNull: false,
|
|
592
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
593
|
-
},
|
|
594
|
-
});
|
|
595
|
-
// Add composite primary key
|
|
596
|
-
await queryInterface.addConstraint("agent_product_bundles_products", {
|
|
597
|
-
fields: ["agent_product_id", "agent_product_bundle_id"],
|
|
598
|
-
type: "primary key",
|
|
599
|
-
name: "agent_product_bundles_products_pkey",
|
|
600
|
-
});
|
|
601
|
-
// Add indexes for better query performance
|
|
602
|
-
await queryInterface.addIndex("agent_product_bundles_products", ["agent_product_id"]);
|
|
603
|
-
await queryInterface.addIndex("agent_product_bundles_products", ["agent_product_bundle_id"]);
|
|
604
|
-
},
|
|
605
|
-
down: async (queryInterface, Sequelize) => { },
|
|
606
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = {
|
|
3
|
-
up: async (queryInterface, Sequelize) => {
|
|
4
|
-
// First, remove the ENUM constraint
|
|
5
|
-
await queryInterface.sequelize.query('ALTER TABLE agent_product_runs ALTER COLUMN status DROP DEFAULT;');
|
|
6
|
-
await queryInterface.sequelize.query('ALTER TABLE agent_product_runs ALTER COLUMN status TYPE VARCHAR(50);');
|
|
7
|
-
// Then set the new default
|
|
8
|
-
await queryInterface.sequelize.query('ALTER TABLE agent_product_runs ALTER COLUMN status SET DEFAULT \'ready\';');
|
|
9
|
-
},
|
|
10
|
-
down: async (queryInterface, Sequelize) => { },
|
|
11
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = {
|
|
3
|
-
up: async (queryInterface, Sequelize) => {
|
|
4
|
-
await queryInterface.createTable("workflow_conversations", {
|
|
5
|
-
id: {
|
|
6
|
-
type: Sequelize.INTEGER,
|
|
7
|
-
autoIncrement: true,
|
|
8
|
-
primaryKey: true,
|
|
9
|
-
allowNull: false,
|
|
10
|
-
},
|
|
11
|
-
agent_product_id: {
|
|
12
|
-
type: Sequelize.INTEGER,
|
|
13
|
-
allowNull: true,
|
|
14
|
-
references: {
|
|
15
|
-
model: "agent_products",
|
|
16
|
-
key: "id",
|
|
17
|
-
},
|
|
18
|
-
onDelete: "SET NULL",
|
|
19
|
-
},
|
|
20
|
-
user_id: {
|
|
21
|
-
type: Sequelize.INTEGER,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
references: {
|
|
24
|
-
model: "users",
|
|
25
|
-
key: "id",
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
configuration: {
|
|
29
|
-
type: Sequelize.JSONB,
|
|
30
|
-
allowNull: false,
|
|
31
|
-
defaultValue: {},
|
|
32
|
-
},
|
|
33
|
-
created_at: {
|
|
34
|
-
type: Sequelize.DATE,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
37
|
-
},
|
|
38
|
-
updated_at: {
|
|
39
|
-
type: Sequelize.DATE,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
defaultValue: Sequelize.literal("NOW()"),
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
// Optionally, add indexes for performance:
|
|
45
|
-
await queryInterface.addIndex("workflow_conversations", ["agent_product_id"]);
|
|
46
|
-
await queryInterface.addIndex("workflow_conversations", ["user_id"]);
|
|
47
|
-
await queryInterface.addColumn("agent_products", "parent_agent_product_id", {
|
|
48
|
-
type: Sequelize.INTEGER,
|
|
49
|
-
allowNull: true,
|
|
50
|
-
references: {
|
|
51
|
-
model: "agent_products",
|
|
52
|
-
key: "id",
|
|
53
|
-
},
|
|
54
|
-
onDelete: "SET NULL",
|
|
55
|
-
});
|
|
56
|
-
await queryInterface.addIndex("agent_products", ["parent_agent_product_id"]);
|
|
57
|
-
await queryInterface.addColumn("agent_product_runs", "workflowId", {
|
|
58
|
-
type: Sequelize.INTEGER,
|
|
59
|
-
allowNull: true,
|
|
60
|
-
references: {
|
|
61
|
-
model: "workflow_conversations",
|
|
62
|
-
key: "id",
|
|
63
|
-
},
|
|
64
|
-
onDelete: "SET NULL",
|
|
65
|
-
});
|
|
66
|
-
await queryInterface.addIndex("agent_product_runs", ["workflowId"]);
|
|
67
|
-
await queryInterface.addColumn("agent_product_runs", "parent_agent_product_run_id", {
|
|
68
|
-
type: Sequelize.INTEGER,
|
|
69
|
-
allowNull: true,
|
|
70
|
-
references: {
|
|
71
|
-
model: "agent_product_runs",
|
|
72
|
-
key: "id",
|
|
73
|
-
},
|
|
74
|
-
onDelete: "SET NULL",
|
|
75
|
-
});
|
|
76
|
-
await queryInterface.addIndex("agent_product_runs", ["parent_agent_product_run_id"]);
|
|
77
|
-
},
|
|
78
|
-
down: async (queryInterface, Sequelize) => {
|
|
79
|
-
await queryInterface.dropTable("workflow_conversations");
|
|
80
|
-
},
|
|
81
|
-
};
|