@solidstarters/solid-core 1.2.192 → 1.2.200
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/dist/commands/mcp.command.d.ts +20 -0
- package/dist/commands/mcp.command.d.ts.map +1 -0
- package/dist/commands/mcp.command.js +208 -0
- package/dist/commands/mcp.command.js.map +1 -0
- package/dist/commands/refresh-model.command.d.ts +8 -5
- package/dist/commands/refresh-model.command.d.ts.map +1 -1
- package/dist/commands/refresh-model.command.js +32 -0
- package/dist/commands/refresh-model.command.js.map +1 -1
- package/dist/commands/remove-fields.command.js +1 -1
- package/dist/commands/remove-fields.command.js.map +1 -1
- package/dist/commands/seed.command.d.ts +2 -0
- package/dist/commands/seed.command.d.ts.map +1 -1
- package/dist/commands/seed.command.js +28 -1
- package/dist/commands/seed.command.js.map +1 -1
- package/dist/controllers/authentication.controller.js +1 -1
- package/dist/controllers/authentication.controller.js.map +1 -1
- package/dist/controllers/email-template.controller.js +1 -1
- package/dist/controllers/email-template.controller.js.map +1 -1
- package/dist/controllers/field-metadata.controller.d.ts +136 -4
- package/dist/controllers/field-metadata.controller.d.ts.map +1 -1
- package/dist/controllers/field-metadata.controller.js +14 -1
- package/dist/controllers/field-metadata.controller.js.map +1 -1
- package/dist/controllers/media-storage-provider-metadata.controller.js +1 -1
- package/dist/controllers/media-storage-provider-metadata.controller.js.map +1 -1
- package/dist/controllers/model-metadata.controller.js +1 -1
- package/dist/controllers/model-metadata.controller.js.map +1 -1
- package/dist/controllers/module-metadata.controller.js +1 -1
- package/dist/controllers/module-metadata.controller.js.map +1 -1
- package/dist/controllers/otp-authentication.controller.js +1 -1
- package/dist/controllers/otp-authentication.controller.js.map +1 -1
- package/dist/controllers/service.controller.js +1 -1
- package/dist/controllers/service.controller.js.map +1 -1
- package/dist/controllers/sms-template.controller.js +1 -1
- package/dist/controllers/sms-template.controller.js.map +1 -1
- package/dist/controllers/test-queue.controller.js +1 -1
- package/dist/controllers/test-queue.controller.js.map +1 -1
- package/dist/controllers/test.controller.js +1 -1
- package/dist/controllers/test.controller.js.map +1 -1
- package/dist/dtos/create-ai-interaction.dto.d.ts +2 -0
- package/dist/dtos/create-ai-interaction.dto.d.ts.map +1 -1
- package/dist/dtos/create-ai-interaction.dto.js +14 -1
- package/dist/dtos/create-ai-interaction.dto.js.map +1 -1
- package/dist/dtos/create-field-metadata.dto.d.ts +22 -5
- package/dist/dtos/create-field-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-field-metadata.dto.js +33 -7
- package/dist/dtos/create-field-metadata.dto.js.map +1 -1
- package/dist/dtos/create-import-transaction.dto.d.ts +0 -1
- package/dist/dtos/create-import-transaction.dto.d.ts.map +1 -1
- package/dist/dtos/create-import-transaction.dto.js +1 -7
- package/dist/dtos/create-import-transaction.dto.js.map +1 -1
- package/dist/dtos/create-model-metadata.dto.d.ts +2 -0
- package/dist/dtos/create-model-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-model-metadata.dto.js +13 -1
- package/dist/dtos/create-model-metadata.dto.js.map +1 -1
- package/dist/dtos/create-role-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-role-metadata.dto.js +5 -1
- package/dist/dtos/create-role-metadata.dto.js.map +1 -1
- package/dist/dtos/resolve-s3-url.dto.d.ts +10 -0
- package/dist/dtos/resolve-s3-url.dto.d.ts.map +1 -0
- package/dist/dtos/resolve-s3-url.dto.js +49 -0
- package/dist/dtos/resolve-s3-url.dto.js.map +1 -0
- package/dist/dtos/update-ai-interaction.dto.d.ts +2 -0
- package/dist/dtos/update-ai-interaction.dto.d.ts.map +1 -1
- package/dist/dtos/update-ai-interaction.dto.js +13 -1
- package/dist/dtos/update-ai-interaction.dto.js.map +1 -1
- package/dist/dtos/update-field-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/update-field-metadata.dto.js.map +1 -1
- package/dist/dtos/update-import-transaction.dto.d.ts +0 -1
- package/dist/dtos/update-import-transaction.dto.d.ts.map +1 -1
- package/dist/dtos/update-import-transaction.dto.js +1 -7
- package/dist/dtos/update-import-transaction.dto.js.map +1 -1
- package/dist/entities/action-metadata.entity.js +4 -4
- package/dist/entities/action-metadata.entity.js.map +1 -1
- package/dist/entities/ai-interaction.entity.d.ts +2 -0
- package/dist/entities/ai-interaction.entity.d.ts.map +1 -1
- package/dist/entities/ai-interaction.entity.js +15 -6
- package/dist/entities/ai-interaction.entity.js.map +1 -1
- package/dist/entities/chatter-message-details.entity.d.ts.map +1 -1
- package/dist/entities/chatter-message-details.entity.js +1 -1
- package/dist/entities/chatter-message-details.entity.js.map +1 -1
- package/dist/entities/chatter-message.entity.js +1 -1
- package/dist/entities/chatter-message.entity.js.map +1 -1
- package/dist/entities/common.entity.d.ts +2 -3
- package/dist/entities/common.entity.d.ts.map +1 -1
- package/dist/entities/common.entity.js +9 -11
- package/dist/entities/common.entity.js.map +1 -1
- package/dist/entities/dashboard-question-sql-dataset-config.entity.js +2 -2
- package/dist/entities/dashboard-question-sql-dataset-config.entity.js.map +1 -1
- package/dist/entities/dashboard-question.entity.js +3 -3
- package/dist/entities/dashboard-question.entity.js.map +1 -1
- package/dist/entities/dashboard-variable.entity.js +3 -3
- package/dist/entities/dashboard-variable.entity.js.map +1 -1
- package/dist/entities/dashboard.entity.js +1 -1
- package/dist/entities/dashboard.entity.js.map +1 -1
- package/dist/entities/email-template.entity.d.ts.map +1 -1
- package/dist/entities/email-template.entity.js +4 -3
- package/dist/entities/email-template.entity.js.map +1 -1
- package/dist/entities/export-template.entity.js +2 -2
- package/dist/entities/export-template.entity.js.map +1 -1
- package/dist/entities/export-transaction.entity.js +2 -2
- package/dist/entities/export-transaction.entity.js.map +1 -1
- package/dist/entities/field-metadata.entity.d.ts +1 -0
- package/dist/entities/field-metadata.entity.d.ts.map +1 -1
- package/dist/entities/field-metadata.entity.js +8 -4
- package/dist/entities/field-metadata.entity.js.map +1 -1
- package/dist/entities/import-transaction-error-log.entity.js +1 -1
- package/dist/entities/import-transaction-error-log.entity.js.map +1 -1
- package/dist/entities/import-transaction.entity.d.ts +0 -1
- package/dist/entities/import-transaction.entity.d.ts.map +1 -1
- package/dist/entities/import-transaction.entity.js +2 -7
- package/dist/entities/import-transaction.entity.js.map +1 -1
- package/dist/entities/legacy-common-with-id.entity.d.ts +5 -0
- package/dist/entities/legacy-common-with-id.entity.d.ts.map +1 -0
- package/dist/entities/legacy-common-with-id.entity.js +32 -0
- package/dist/entities/legacy-common-with-id.entity.js.map +1 -0
- package/dist/entities/legacy-common.entity.d.ts +13 -0
- package/dist/entities/legacy-common.entity.d.ts.map +1 -0
- package/dist/entities/legacy-common.entity.js +67 -0
- package/dist/entities/legacy-common.entity.js.map +1 -0
- package/dist/entities/list-of-values.entity.js +2 -2
- package/dist/entities/list-of-values.entity.js.map +1 -1
- package/dist/entities/locale.entity.js +1 -1
- package/dist/entities/locale.entity.js.map +1 -1
- package/dist/entities/media.entity.d.ts.map +1 -1
- package/dist/entities/media.entity.js +3 -3
- package/dist/entities/media.entity.js.map +1 -1
- package/dist/entities/menu-item-metadata.entity.js +4 -4
- package/dist/entities/menu-item-metadata.entity.js.map +1 -1
- package/dist/entities/model-metadata.entity.d.ts +2 -0
- package/dist/entities/model-metadata.entity.d.ts.map +1 -1
- package/dist/entities/model-metadata.entity.js +11 -3
- package/dist/entities/model-metadata.entity.js.map +1 -1
- package/dist/entities/mq-message-queue.entity.js +1 -1
- package/dist/entities/mq-message-queue.entity.js.map +1 -1
- package/dist/entities/mq-message.entity.d.ts +3 -3
- package/dist/entities/mq-message.entity.d.ts.map +1 -1
- package/dist/entities/mq-message.entity.js +10 -10
- package/dist/entities/mq-message.entity.js.map +1 -1
- package/dist/entities/saved-filters.entity.js +4 -4
- package/dist/entities/saved-filters.entity.js.map +1 -1
- package/dist/entities/scheduled-job.entity.js +4 -4
- package/dist/entities/scheduled-job.entity.js.map +1 -1
- package/dist/entities/security-rule.entity.js +2 -2
- package/dist/entities/security-rule.entity.js.map +1 -1
- package/dist/entities/setting.entity.js +2 -2
- package/dist/entities/setting.entity.js.map +1 -1
- package/dist/entities/sms-template.entity.js +2 -2
- package/dist/entities/sms-template.entity.js.map +1 -1
- package/dist/entities/user-activity-history.entity.d.ts.map +1 -1
- package/dist/entities/user-activity-history.entity.js +1 -1
- package/dist/entities/user-activity-history.entity.js.map +1 -1
- package/dist/entities/user-view-metadata.entity.js +2 -2
- package/dist/entities/user-view-metadata.entity.js.map +1 -1
- package/dist/entities/user.entity.js +13 -15
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/view-metadata.entity.js +3 -3
- package/dist/entities/view-metadata.entity.js.map +1 -1
- package/dist/helpers/date.helper.d.ts +1 -1
- package/dist/helpers/date.helper.d.ts.map +1 -1
- package/dist/helpers/date.helper.js +24 -2
- package/dist/helpers/date.helper.js.map +1 -1
- package/dist/helpers/model-metadata-helper.service.d.ts +4 -1
- package/dist/helpers/model-metadata-helper.service.d.ts.map +1 -1
- package/dist/helpers/model-metadata-helper.service.js +48 -30
- package/dist/helpers/model-metadata-helper.service.js.map +1 -1
- package/dist/helpers/module.helper.d.ts.map +1 -1
- package/dist/helpers/module.helper.js +1 -3
- package/dist/helpers/module.helper.js.map +1 -1
- package/dist/helpers/schematic.service.d.ts +9 -3
- package/dist/helpers/schematic.service.d.ts.map +1 -1
- package/dist/helpers/schematic.service.js +49 -32
- package/dist/helpers/schematic.service.js.map +1 -1
- package/dist/helpers/solid-registry.d.ts +3 -2
- package/dist/helpers/solid-registry.d.ts.map +1 -1
- package/dist/helpers/solid-registry.js +10 -0
- package/dist/helpers/solid-registry.js.map +1 -1
- package/dist/helpers/typeorm-db-helper.d.ts +3 -0
- package/dist/helpers/typeorm-db-helper.d.ts.map +1 -0
- package/dist/helpers/typeorm-db-helper.js +24 -0
- package/dist/helpers/typeorm-db-helper.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +3 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.d.ts.map +1 -1
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js +6 -1
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.d.ts +1 -1
- package/dist/seeders/module-metadata-seeder.service.d.ts.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.js +39 -17
- package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +53 -468
- package/dist/seeders/system-fields-seeder.service.d.ts.map +1 -1
- package/dist/seeders/system-fields-seeder.service.js +1 -1
- package/dist/seeders/system-fields-seeder.service.js.map +1 -1
- package/dist/services/ai-interaction.service.js +1 -1
- package/dist/services/ai-interaction.service.js.map +1 -1
- package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.d.ts.map +1 -1
- package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.js +6 -4
- package/dist/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.js.map +1 -1
- package/dist/services/crud-helper.service.d.ts +8 -0
- package/dist/services/crud-helper.service.d.ts.map +1 -1
- package/dist/services/crud-helper.service.js +28 -5
- package/dist/services/crud-helper.service.js.map +1 -1
- package/dist/services/crud.service.d.ts +4 -1
- package/dist/services/crud.service.d.ts.map +1 -1
- package/dist/services/crud.service.js +87 -7
- package/dist/services/crud.service.js.map +1 -1
- package/dist/services/field-metadata.service.d.ts +143 -6
- package/dist/services/field-metadata.service.d.ts.map +1 -1
- package/dist/services/field-metadata.service.js +211 -56
- package/dist/services/field-metadata.service.js.map +1 -1
- package/dist/services/menu-item-metadata.service.d.ts +3 -1
- package/dist/services/menu-item-metadata.service.d.ts.map +1 -1
- package/dist/services/menu-item-metadata.service.js +31 -11
- package/dist/services/menu-item-metadata.service.js.map +1 -1
- package/dist/services/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +14 -3
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/services/mq-message.service.d.ts.map +1 -1
- package/dist/services/mq-message.service.js +3 -4
- package/dist/services/mq-message.service.js.map +1 -1
- package/dist/services/queues/publisher-factory.service.d.ts.map +1 -1
- package/dist/services/queues/publisher-factory.service.js +4 -0
- package/dist/services/queues/publisher-factory.service.js.map +1 -1
- package/dist/{providers → services/selection-providers}/list-of-values-selection-providers.service.d.ts +2 -2
- package/dist/services/selection-providers/list-of-values-selection-providers.service.d.ts.map +1 -0
- package/dist/{providers → services/selection-providers}/list-of-values-selection-providers.service.js +3 -3
- package/dist/services/selection-providers/list-of-values-selection-providers.service.js.map +1 -0
- package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.d.ts +20 -0
- package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.d.ts.map +1 -0
- package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.js +87 -0
- package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.js.map +1 -0
- package/dist/services/setting.service.d.ts.map +1 -1
- package/dist/services/setting.service.js +2 -1
- package/dist/services/setting.service.js.map +1 -1
- package/dist/services/solid-introspect.service.d.ts +19 -3
- package/dist/services/solid-introspect.service.d.ts.map +1 -1
- package/dist/services/solid-introspect.service.js +83 -11
- package/dist/services/solid-introspect.service.js.map +1 -1
- package/dist/services/view-metadata.service.d.ts +3 -1
- package/dist/services/view-metadata.service.d.ts.map +1 -1
- package/dist/services/view-metadata.service.js +31 -5
- package/dist/services/view-metadata.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +5 -1
- package/dist/solid-core.module.js.map +1 -1
- package/dist/subscribers/audit.subscriber.d.ts +3 -2
- package/dist/subscribers/audit.subscriber.d.ts.map +1 -1
- package/dist/subscribers/audit.subscriber.js +6 -12
- package/dist/subscribers/audit.subscriber.js.map +1 -1
- package/dist/subscribers/computed-entity-field.subscriber.d.ts +3 -2
- package/dist/subscribers/computed-entity-field.subscriber.d.ts.map +1 -1
- package/dist/subscribers/computed-entity-field.subscriber.js +7 -9
- package/dist/subscribers/computed-entity-field.subscriber.js.map +1 -1
- package/dist/subscribers/created-by-updated-by.subscriber.d.ts +4 -2
- package/dist/subscribers/created-by-updated-by.subscriber.d.ts.map +1 -1
- package/dist/subscribers/created-by-updated-by.subscriber.js +10 -8
- package/dist/subscribers/created-by-updated-by.subscriber.js.map +1 -1
- package/dist/subscribers/field-metadata.subscriber.d.ts.map +1 -1
- package/dist/subscribers/field-metadata.subscriber.js +0 -1
- package/dist/subscribers/field-metadata.subscriber.js.map +1 -1
- package/dist/subscribers/model-metadata.subscriber.d.ts.map +1 -1
- package/dist/subscribers/model-metadata.subscriber.js +3 -2
- package/dist/subscribers/model-metadata.subscriber.js.map +1 -1
- package/dist/subscribers/soft-delete-aware-event.subscriber.d.ts +3 -2
- package/dist/subscribers/soft-delete-aware-event.subscriber.d.ts.map +1 -1
- package/dist/subscribers/soft-delete-aware-event.subscriber.js +6 -11
- package/dist/subscribers/soft-delete-aware-event.subscriber.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/sql/mssql/proc_CleanupModelMetadata.sql +175 -0
- package/sql/mssql/proc_CleanupModuleMetadata.sql +78 -0
- package/sql/mssql/scratchpad.sql +10 -0
- package/sql/postgres/proc_CleanupModelMetadata.sql +148 -0
- package/sql/postgres/proc_CleanupModuleMetadata.sql +50 -0
- package/sql/postgres/scratchpad.sql +12 -0
- package/sql-server-changes.txt +88 -0
- package/src/commands/mcp.command.ts +215 -0
- package/src/commands/refresh-model.command.ts +37 -5
- package/src/commands/remove-fields.command.ts +1 -1
- package/src/commands/seed.command.ts +34 -15
- package/src/controllers/authentication.controller.ts +1 -1
- package/src/controllers/email-template.controller.ts +1 -1
- package/src/controllers/field-metadata.controller.ts +7 -1
- package/src/controllers/media-storage-provider-metadata.controller.ts +1 -1
- package/src/controllers/model-metadata.controller.ts +1 -1
- package/src/controllers/module-metadata.controller.ts +1 -1
- package/src/controllers/otp-authentication.controller.ts +1 -1
- package/src/controllers/service.controller.ts +1 -1
- package/src/controllers/sms-template.controller.ts +1 -1
- package/src/controllers/test-queue.controller.ts +1 -1
- package/src/controllers/test.controller.ts +1 -1
- package/src/dtos/create-ai-interaction.dto.ts +16 -9
- package/src/dtos/create-field-metadata.dto.ts +42 -12
- package/src/dtos/create-import-transaction.dto.ts +0 -4
- package/src/dtos/create-model-metadata.dto.ts +10 -0
- package/src/dtos/create-role-metadata.dto.ts +8 -2
- package/src/dtos/resolve-s3-url.dto.ts +33 -0
- package/src/dtos/update-ai-interaction.dto.ts +16 -9
- package/src/dtos/update-field-metadata.dto.ts +1 -2
- package/src/dtos/update-import-transaction.dto.ts +0 -4
- package/src/entities/action-metadata.entity.ts +4 -4
- package/src/entities/ai-interaction.entity.ts +16 -12
- package/src/entities/chatter-message-details.entity.ts +18 -18
- package/src/entities/chatter-message.entity.ts +2 -2
- package/src/entities/common.entity.ts +19 -10
- package/src/entities/dashboard-question-sql-dataset-config.entity.ts +2 -2
- package/src/entities/dashboard-question.entity.ts +3 -3
- package/src/entities/dashboard-variable.entity.ts +3 -3
- package/src/entities/dashboard.entity.ts +1 -1
- package/src/entities/email-template.entity.ts +4 -3
- package/src/entities/export-template.entity.ts +2 -2
- package/src/entities/export-transaction.entity.ts +2 -2
- package/src/entities/field-metadata.entity.ts +6 -3
- package/src/entities/import-transaction-error-log.entity.ts +2 -2
- package/src/entities/import-transaction.entity.ts +2 -5
- package/src/entities/legacy-common-with-id.entity.ts +11 -0
- package/src/entities/legacy-common.entity.ts +57 -0
- package/src/entities/list-of-values.entity.ts +2 -2
- package/src/entities/locale.entity.ts +1 -1
- package/src/entities/media.entity.ts +25 -25
- package/src/entities/menu-item-metadata.entity.ts +4 -4
- package/src/entities/model-metadata.entity.ts +9 -2
- package/src/entities/mq-message-queue.entity.ts +1 -1
- package/src/entities/mq-message.entity.ts +34 -34
- package/src/entities/saved-filters.entity.ts +5 -5
- package/src/entities/scheduled-job.entity.ts +4 -4
- package/src/entities/security-rule.entity.ts +2 -2
- package/src/entities/setting.entity.ts +2 -2
- package/src/entities/sms-template.entity.ts +2 -2
- package/src/entities/user-activity-history.entity.ts +14 -14
- package/src/entities/user-view-metadata.entity.ts +2 -2
- package/src/entities/user.entity.ts +15 -15
- package/src/entities/view-metadata.entity.ts +3 -3
- package/src/helpers/date.helper.ts +31 -10
- package/src/helpers/model-metadata-helper.service.ts +63 -32
- package/src/helpers/module.helper.ts +4 -3
- package/src/helpers/schematic.service.ts +72 -46
- package/src/helpers/solid-registry.ts +14 -2
- package/src/helpers/typeorm-db-helper.ts +26 -0
- package/src/index.ts +5 -1
- package/src/interfaces.ts +3 -0
- package/src/jobs/database/trigger-mcp-client-subscriber-database.service.ts +17 -21
- package/src/seeders/module-metadata-seeder.service.ts +73 -29
- package/src/seeders/seed-data/solid-core-metadata.json +55 -470
- package/src/seeders/system-fields-seeder.service.ts +34 -35
- package/src/services/ai-interaction.service.ts +1 -1
- package/src/services/computed-fields/entity/alpha-num-external-id-computed-field-provider.ts +13 -9
- package/src/services/crud-helper.service.ts +32 -4
- package/src/services/crud.service.ts +158 -10
- package/src/services/field-metadata.service.ts +272 -67
- package/src/services/menu-item-metadata.service.ts +81 -50
- package/src/services/model-metadata.service.ts +18 -3
- package/src/services/mq-message.service.ts +16 -15
- package/src/services/queues/publisher-factory.service.ts +2 -1
- package/src/{providers → services/selection-providers}/list-of-values-selection-providers.service.ts +2 -2
- package/src/services/selection-providers/pseudo-foreign-key-selection-provider.service.ts +94 -0
- package/src/services/setting.service.ts +13 -10
- package/src/services/solid-introspect.service.ts +110 -10
- package/src/services/view-metadata.service.ts +48 -18
- package/src/solid-core.module.ts +5 -1
- package/src/subscribers/audit.subscriber.ts +12 -8
- package/src/subscribers/computed-entity-field.subscriber.ts +13 -7
- package/src/subscribers/created-by-updated-by.subscriber.ts +14 -8
- package/src/subscribers/field-metadata.subscriber.ts +1 -1
- package/src/subscribers/model-metadata.subscriber.ts +4 -2
- package/src/subscribers/soft-delete-aware-event.subscriber.ts +12 -6
- package/dist/providers/list-of-values-selection-providers.service.d.ts.map +0 -1
- package/dist/providers/list-of-values-selection-providers.service.js.map +0 -1
- package/src/commands/ingest-rag-chunking-strategy-for.md +0 -224
- package/src/entities/user.entity.ts.bkp +0 -144
- package/src/services/docker exec -it mssql //" +0 -8
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ResolveS3UrlDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ResolveS3UrlDto {
|
|
16
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
+
return { modelName: { required: true, type: () => String }, fieldName: { required: true, type: () => String }, s3KeyFieldName: { required: true, type: () => String }, fieldValue: { required: true, type: () => String }, fileType: { required: true, type: () => String }, bucketName: { required: true, type: () => String }, isPrivate: { required: true, type: () => String } };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ResolveS3UrlDto = ResolveS3UrlDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ResolveS3UrlDto.prototype, "modelName", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ResolveS3UrlDto.prototype, "fieldName", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ResolveS3UrlDto.prototype, "s3KeyFieldName", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ResolveS3UrlDto.prototype, "fieldValue", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ResolveS3UrlDto.prototype, "fileType", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ResolveS3UrlDto.prototype, "bucketName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ResolveS3UrlDto.prototype, "isPrivate", void 0);
|
|
49
|
+
//# sourceMappingURL=resolve-s3-url.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-s3-url.dto.js","sourceRoot":"","sources":["../../src/dtos/resolve-s3-url.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,eAAe;;;;CAqB3B;AArBD,0CAqBC;AAnBG;IADC,IAAA,4BAAU,GAAE;;kDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;kDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;uDACU;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACM;AAGnB;IADC,IAAA,4BAAU,GAAE;;iDACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;mDACM;AAGnB;IADC,IAAA,4BAAU,GAAE;;kDACK","sourcesContent":["import { IsEmail, IsNotEmpty, IsOptional, MinLength } from 'class-validator';\n\nexport class ResolveS3UrlDto {\n @IsNotEmpty()\n modelName: string;\n\n @IsNotEmpty()\n fieldName: string;\n\n @IsNotEmpty()\n s3KeyFieldName: string;\n\n @IsNotEmpty()\n fieldValue: string;\n\n @IsNotEmpty()\n fileType: string;\n \n @IsNotEmpty()\n bucketName: string;\n\n @IsNotEmpty()\n isPrivate: string;\n}\n\n\n\n\n\n\n\n\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-ai-interaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAKpB,QAAQ,EAAE,MAAM,CAAC;IAKjB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAIhB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,CAAC;IAIlB,cAAc,EAAE,MAAM,CAAC;IAIvB,QAAQ,EAAE,GAAG,CAAC;IAId,SAAS,EAAE,OAAO,CAAC;IAInB,mBAAmB,EAAE,MAAM,CAAC;IAI5B,wBAAwB,EAAE,MAAM,CAAC;IAIjC,WAAW,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"update-ai-interaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAKpB,QAAQ,EAAE,MAAM,CAAC;IAKjB,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAIhB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,CAAC;IAIlB,cAAc,EAAE,MAAM,CAAC;IAIvB,QAAQ,EAAE,GAAG,CAAC;IAId,SAAS,EAAE,OAAO,CAAC;IAInB,mBAAmB,EAAE,MAAM,CAAC;IAI5B,wBAAwB,EAAE,MAAM,CAAC;IAIjC,WAAW,EAAE,OAAO,CAAC;IAIrB,WAAW,EAAE,MAAM,CAAC;IAIpB,YAAY,EAAE,MAAM,CAAC;IAIrB,WAAW,EAAE,MAAM,CAAC;IAKxB,eAAe,EAAE,MAAM,CAAC;IAKxB,QAAQ,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -15,7 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
16
16
|
class UpdateAiInteractionDto {
|
|
17
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { id: { required: true, type: () => Number }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean }, parentInteractionId: { required: true, type: () => Number }, parentInteractionUserKey: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number } };
|
|
18
|
+
return { id: { required: true, type: () => Number }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean }, parentInteractionId: { required: true, type: () => Number }, parentInteractionUserKey: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number }, originalMessage: { required: true, type: () => String }, isEdited: { required: true, type: () => Boolean } };
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.UpdateAiInteractionDto = UpdateAiInteractionDto;
|
|
@@ -135,4 +135,16 @@ __decorate([
|
|
|
135
135
|
(0, swagger_1.ApiProperty)(),
|
|
136
136
|
__metadata("design:type", Number)
|
|
137
137
|
], UpdateAiInteractionDto.prototype, "totalTokens", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, class_validator_1.IsOptional)(),
|
|
140
|
+
(0, class_validator_1.IsString)(),
|
|
141
|
+
(0, swagger_1.ApiProperty)(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], UpdateAiInteractionDto.prototype, "originalMessage", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, class_validator_1.IsOptional)(),
|
|
146
|
+
(0, class_validator_1.IsBoolean)(),
|
|
147
|
+
(0, swagger_1.ApiProperty)(),
|
|
148
|
+
__metadata("design:type", Boolean)
|
|
149
|
+
], UpdateAiInteractionDto.prototype, "isEdited", void 0);
|
|
138
150
|
//# sourceMappingURL=update-ai-interaction.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-ai-interaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA4F;AAC5F,6CAA8C;AAE9C,MAAa,sBAAsB;;;;
|
|
1
|
+
{"version":3,"file":"update-ai-interaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-ai-interaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA4F;AAC5F,6CAA8C;AAE9C,MAAa,sBAAsB;;;;CAyFlC;AAzFD,wDAyFC;AAtFG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kDACG;AAIX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;sDACC;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;2DACM;AAKpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACG;AAKjB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACD;AAKb;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uDACE;AAIhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACC;AAIf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACI;AAIlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;8DACS;AAIvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;wDACA;AAId;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;yDACK;AAInB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;mEACc;AAI5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;wEACmB;AAIjC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;2DACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;2DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;4DACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;2DACM;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACU;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;wDACI","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsBoolean } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\n\nexport class UpdateAiInteractionDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n threadId: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n role: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n message: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n contentType: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n errorMessage: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n modelUsed: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n responseTimeMs: number;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n metadata: any;\n @IsOptional()\n @IsBoolean()\n @ApiProperty()\n isApplied: boolean;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n parentInteractionId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n parentInteractionUserKey: string;\n @IsOptional()\n @IsBoolean()\n @ApiProperty()\n isAutoApply: boolean;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n inputTokens: number;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n outputTokens: number;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalTokens: number;\n\n@IsOptional()\n@IsString()\n@ApiProperty()\noriginalMessage: string;\n\n@IsOptional()\n@IsBoolean()\n@ApiProperty()\nisEdited: boolean;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-field-metadata.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-field-metadata.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,qBAAa,sBAAuB,SAAQ,sBAAsB;IAI9D,EAAE,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-field-metadata.dto.js","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"update-field-metadata.dto.js","sourceRoot":"","sources":["../../src/dtos/update-field-metadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAuD;AACvD,2EAAqE;AAErE,MAAa,sBAAuB,SAAQ,kDAAsB;;;;CAKjE;AALD,wDAKC;AADG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACD","sourcesContent":["import { IsNumber, IsOptional } from \"class-validator\";\nimport { CreateFieldMetadataDto } from \"./create-field-metadata.dto\";\n\nexport class UpdateFieldMetaDataDto extends CreateFieldMetadataDto {\n \n @IsNumber()\n @IsOptional()\n id?: number;\n}"]}
|
|
@@ -2,7 +2,6 @@ import { UpdateImportTransactionErrorLogDto } from 'src/dtos/update-import-trans
|
|
|
2
2
|
export declare class UpdateImportTransactionDto {
|
|
3
3
|
id: number;
|
|
4
4
|
status: string;
|
|
5
|
-
importTransactionId: string;
|
|
6
5
|
mapping: any;
|
|
7
6
|
modelMetadataId: number;
|
|
8
7
|
modelMetadataUserKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-import-transaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AAEtG,qBAAa,0BAA0B;IAGnC,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,
|
|
1
|
+
{"version":3,"file":"update-import-transaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AAEtG,qBAAa,0BAA0B;IAGnC,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,GAAG,CAAC;IAIb,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;IAI7B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,qBAAqB,EAAE,MAAM,CAAC;IAM9B,yBAAyB,EAAE,kCAAkC,EAAE,CAAC;IAIhE,4BAA4B,EAAE,MAAM,EAAE,CAAC;IAIvC,gCAAgC,EAAE,MAAM,CAAC;CAC5C"}
|
|
@@ -17,7 +17,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
17
17
|
const update_import_transaction_error_log_dto_1 = require("./update-import-transaction-error-log.dto");
|
|
18
18
|
class UpdateImportTransactionDto {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { id: { required: true, type: () => Number }, status: { required: true, type: () => String },
|
|
20
|
+
return { id: { required: true, type: () => Number }, status: { required: true, type: () => String }, mapping: { required: true, type: () => Object }, modelMetadataId: { required: true, type: () => Number }, modelMetadataUserKey: { required: true, type: () => String }, moduleMetadataId: { required: true, type: () => Number }, moduleMetadataUserKey: { required: true, type: () => String }, importTransactionErrorLog: { required: true, type: () => [require("./update-import-transaction-error-log.dto").UpdateImportTransactionErrorLogDto] }, importTransactionErrorLogIds: { required: true, type: () => [Number] }, importTransactionErrorLogCommand: { required: true, type: () => String } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.UpdateImportTransactionDto = UpdateImportTransactionDto;
|
|
@@ -32,12 +32,6 @@ __decorate([
|
|
|
32
32
|
(0, swagger_1.ApiProperty)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], UpdateImportTransactionDto.prototype, "status", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, swagger_1.ApiProperty)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], UpdateImportTransactionDto.prototype, "importTransactionId", void 0);
|
|
41
35
|
__decorate([
|
|
42
36
|
(0, class_validator_1.IsOptional)(),
|
|
43
37
|
(0, class_validator_1.IsJSON)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-import-transaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA8F;AAC9F,6CAA8C;AAC9C,yDAAyC;AACzC,uGAAsG;AAEtG,MAAa,0BAA0B;;;;
|
|
1
|
+
{"version":3,"file":"update-import-transaction.dto.js","sourceRoot":"","sources":["../../src/dtos/update-import-transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA8F;AAC9F,6CAA8C;AAC9C,yDAAyC;AACzC,uGAAsG;AAEtG,MAAa,0BAA0B;;;;CA0CtC;AA1CD,gEA0CC;AAvCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sDACG;AAIX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACC;AAIf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;2DACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;mEACU;AAIxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;wEACe;AAI7B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;oEACW;AAIzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;yEACgB;AAM9B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4EAAkC,CAAC;;6EACiB;AAIhE;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,qBAAW,GAAE;;gFACyB;AAIvC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oFAC2B","sourcesContent":["import { IsInt,IsOptional, IsString, IsJSON, ValidateNested, IsArray } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateImportTransactionErrorLogDto } from 'src/dtos/update-import-transaction-error-log.dto';\n\nexport class UpdateImportTransactionDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n @IsOptional()\n @IsJSON()\n @ApiProperty()\n mapping: any;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n modelMetadataId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n modelMetadataUserKey: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n moduleMetadataId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n moduleMetadataUserKey: string;\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateImportTransactionErrorLogDto)\n importTransactionErrorLog: UpdateImportTransactionErrorLogDto[];\n @IsOptional()\n @IsArray()\n @ApiProperty()\n importTransactionErrorLogIds: number[];\n @IsString()\n @IsOptional()\n @ApiProperty()\n importTransactionErrorLogCommand: string;\n}"]}
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], ActionMetadata.prototype, "customComponent", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ name: "custom_is_modal",
|
|
51
|
+
(0, typeorm_1.Column)({ name: "custom_is_modal", nullable: true }),
|
|
52
52
|
__metadata("design:type", Boolean)
|
|
53
53
|
], ActionMetadata.prototype, "customIsModal", void 0);
|
|
54
54
|
__decorate([
|
|
@@ -57,19 +57,19 @@ __decorate([
|
|
|
57
57
|
], ActionMetadata.prototype, "serverEndpoint", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, typeorm_1.Index)(),
|
|
60
|
-
(0, typeorm_1.ManyToOne)(() => module_metadata_entity_1.ModuleMetadata, {
|
|
60
|
+
(0, typeorm_1.ManyToOne)(() => module_metadata_entity_1.ModuleMetadata, {}),
|
|
61
61
|
(0, typeorm_1.JoinColumn)({ name: 'module_id', referencedColumnName: 'id' }),
|
|
62
62
|
__metadata("design:type", module_metadata_entity_1.ModuleMetadata)
|
|
63
63
|
], ActionMetadata.prototype, "module", void 0);
|
|
64
64
|
__decorate([
|
|
65
65
|
(0, typeorm_1.Index)(),
|
|
66
|
-
(0, typeorm_1.ManyToOne)(() => model_metadata_entity_1.ModelMetadata, {
|
|
66
|
+
(0, typeorm_1.ManyToOne)(() => model_metadata_entity_1.ModelMetadata, {}),
|
|
67
67
|
(0, typeorm_1.JoinColumn)({ name: 'model_id', referencedColumnName: 'id' }),
|
|
68
68
|
__metadata("design:type", model_metadata_entity_1.ModelMetadata)
|
|
69
69
|
], ActionMetadata.prototype, "model", void 0);
|
|
70
70
|
__decorate([
|
|
71
71
|
(0, typeorm_1.Index)(),
|
|
72
|
-
(0, typeorm_1.ManyToOne)(() => view_metadata_entity_1.ViewMetadata, {
|
|
72
|
+
(0, typeorm_1.ManyToOne)(() => view_metadata_entity_1.ViewMetadata, {}),
|
|
73
73
|
(0, typeorm_1.JoinColumn)({ name: 'view_id', referencedColumnName: 'id' }),
|
|
74
74
|
__metadata("design:type", view_metadata_entity_1.ViewMetadata)
|
|
75
75
|
], ActionMetadata.prototype, "view", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-metadata.entity.js","sourceRoot":"","sources":["../../src/entities/action-metadata.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,qEAAqE;AACrE,mEAAmE;AACnE,iEAAgE;AAEzD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAwC/C,CAAA;AAxCY,wCAAc;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;4CAC3C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDAC9B;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CAC7B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC7C;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC9C;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"action-metadata.entity.js","sourceRoot":"","sources":["../../src/entities/action-metadata.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,qEAAqE;AACrE,mEAAmE;AACnE,iEAAgE;AAEzD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAwC/C,CAAA;AAxCY,wCAAc;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;4CAC3C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDAC9B;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CAC7B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC7C;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC9C;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC7B;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC9C;AAKvB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,CAAC;IACnC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,uCAAc;8CAAC;AAKvB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE,EAAE,CAAC;IAClC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,qCAAa;6CAAC;AAKrB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,EAAE,CAAC;IACjC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,mCAAY;4CAAC;yBAvCV,cAAc;IAD1B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAwC1B","sourcesContent":["import { CommonEntity } from \"src/entities/common.entity\"\nimport { Entity, Column, Index, ManyToOne, JoinColumn } from \"typeorm\";\nimport { ModuleMetadata } from 'src/entities/module-metadata.entity';\nimport { ModelMetadata } from 'src/entities/model-metadata.entity';\nimport { ViewMetadata } from 'src/entities/view-metadata.entity'\n@Entity(\"ss_action_metadata\")\nexport class ActionMetadata extends CommonEntity {\n @Column({ name: \"name\", type: \"varchar\", unique: true })\n name: string;\n\n @Column({ name: \"display_name\", type: \"varchar\" })\n displayName: string;\n\n @Index()\n @Column({ name: \"type\", type: \"varchar\" })\n type: string;\n\n @Column({ name: \"domain\", type: \"text\", nullable: true })\n domain: any;\n\n @Column({ name: \"context\", type: \"text\", nullable: true })\n context: any;\n\n @Column({ name: \"custom_component\", type: \"varchar\", nullable: true })\n customComponent: string;\n\n @Column({ name: \"custom_is_modal\", nullable: true })\n customIsModal: boolean;\n\n @Column({ name: \"server_endpoint\", type: \"varchar\", nullable: true })\n serverEndpoint: string;\n\n @Index()\n @ManyToOne(() => ModuleMetadata, {})\n @JoinColumn({ name: 'module_id', referencedColumnName: 'id' })\n module: ModuleMetadata;\n\n @Index()\n @ManyToOne(() => ModelMetadata, {})\n @JoinColumn({ name: 'model_id', referencedColumnName: 'id' })\n model: ModelMetadata;\n\n @Index()\n @ManyToOne(() => ViewMetadata, {})\n @JoinColumn({ name: 'view_id', referencedColumnName: 'id' })\n view: ViewMetadata;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-interaction.entity.d.ts","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAE/C,qBACa,aAAc,SAAQ,YAAY;IAI3C,IAAI,EAAE,IAAI,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,WAAW,EAAE,MAAM,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,EAAE,MAAM,CAAC;IAEvB,QAAQ,EAAE,GAAG,CAAC;IAEd,SAAS,EAAE,OAAO,CAAS;IAI3B,iBAAiB,EAAE,aAAa,CAAC;IAGjC,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,OAAO,CAAS;
|
|
1
|
+
{"version":3,"file":"ai-interaction.entity.d.ts","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAE/C,qBACa,aAAc,SAAQ,YAAY;IAI3C,IAAI,EAAE,IAAI,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,WAAW,EAAE,MAAM,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,EAAE,MAAM,CAAC;IAEvB,QAAQ,EAAE,GAAG,CAAC;IAEd,SAAS,EAAE,OAAO,CAAS;IAI3B,iBAAiB,EAAE,aAAa,CAAC;IAGjC,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,OAAO,CAAS;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IAEpB,eAAe,EAAE,MAAM,CAAC;IAExB,QAAQ,EAAE,OAAO,CAAS;CAC7B"}
|
|
@@ -19,15 +19,16 @@ let AiInteraction = class AiInteraction extends common_entity_1.CommonEntity {
|
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.isApplied = false;
|
|
21
21
|
this.isAutoApply = false;
|
|
22
|
+
this.isEdited = false;
|
|
22
23
|
}
|
|
23
24
|
static _OPENAPI_METADATA_FACTORY() {
|
|
24
|
-
return { user: { required: true, type: () => require("./user.entity").User }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean, default: false }, parentInteraction: { required: true, type: () => require("./ai-interaction.entity").AiInteraction }, externalId: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean, default: false }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number } };
|
|
25
|
+
return { user: { required: true, type: () => require("./user.entity").User }, threadId: { required: true, type: () => String }, role: { required: true, type: () => String }, message: { required: true, type: () => String }, contentType: { required: true, type: () => String }, status: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, modelUsed: { required: true, type: () => String }, responseTimeMs: { required: true, type: () => Number }, metadata: { required: true, type: () => Object }, isApplied: { required: true, type: () => Boolean, default: false }, parentInteraction: { required: true, type: () => require("./ai-interaction.entity").AiInteraction }, externalId: { required: true, type: () => String }, isAutoApply: { required: true, type: () => Boolean, default: false }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, totalTokens: { required: true, type: () => Number }, originalMessage: { required: true, type: () => String }, isEdited: { required: true, type: () => Boolean, default: false } };
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
exports.AiInteraction = AiInteraction;
|
|
28
29
|
__decorate([
|
|
29
30
|
(0, typeorm_1.Index)(),
|
|
30
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
31
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false }),
|
|
31
32
|
(0, typeorm_1.JoinColumn)(),
|
|
32
33
|
__metadata("design:type", user_entity_1.User)
|
|
33
34
|
], AiInteraction.prototype, "user", void 0);
|
|
@@ -66,16 +67,16 @@ __decorate([
|
|
|
66
67
|
__metadata("design:type", Number)
|
|
67
68
|
], AiInteraction.prototype, "responseTimeMs", void 0);
|
|
68
69
|
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: "
|
|
70
|
+
(0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
|
|
70
71
|
__metadata("design:type", Object)
|
|
71
72
|
], AiInteraction.prototype, "metadata", void 0);
|
|
72
73
|
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({
|
|
74
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
74
75
|
__metadata("design:type", Boolean)
|
|
75
76
|
], AiInteraction.prototype, "isApplied", void 0);
|
|
76
77
|
__decorate([
|
|
77
78
|
(0, typeorm_1.Index)(),
|
|
78
|
-
(0, typeorm_1.ManyToOne)(() => AiInteraction, {
|
|
79
|
+
(0, typeorm_1.ManyToOne)(() => AiInteraction, { nullable: true }),
|
|
79
80
|
(0, typeorm_1.JoinColumn)(),
|
|
80
81
|
__metadata("design:type", AiInteraction)
|
|
81
82
|
], AiInteraction.prototype, "parentInteraction", void 0);
|
|
@@ -85,7 +86,7 @@ __decorate([
|
|
|
85
86
|
__metadata("design:type", String)
|
|
86
87
|
], AiInteraction.prototype, "externalId", void 0);
|
|
87
88
|
__decorate([
|
|
88
|
-
(0, typeorm_1.Column)({
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
89
90
|
__metadata("design:type", Boolean)
|
|
90
91
|
], AiInteraction.prototype, "isAutoApply", void 0);
|
|
91
92
|
__decorate([
|
|
@@ -100,6 +101,14 @@ __decorate([
|
|
|
100
101
|
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
101
102
|
__metadata("design:type", Number)
|
|
102
103
|
], AiInteraction.prototype, "totalTokens", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], AiInteraction.prototype, "originalMessage", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
110
|
+
__metadata("design:type", Boolean)
|
|
111
|
+
], AiInteraction.prototype, "isEdited", void 0);
|
|
103
112
|
exports.AiInteraction = AiInteraction = __decorate([
|
|
104
113
|
(0, typeorm_1.Entity)("ss_ai_interactions")
|
|
105
114
|
], AiInteraction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-interaction.entity.js","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"ai-interaction.entity.js","sourceRoot":"","sources":["../../src/entities/ai-interaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,+CAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;IAAxC;;QA0BH,cAAS,GAAY,KAAK,CAAC;QAS3B,gBAAW,GAAY,KAAK,CAAC;QAa7B,aAAQ,GAAY,KAAK,CAAC;KAC7B;;0lBAvBwB,KAAK,0NASH,KAAK,uRAaR,KAAK;;CAC5B,CAAA;AAjDY,sCAAa;AAItB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1C,IAAA,oBAAU,GAAE;8BACP,kBAAI;2CAAC;AAGX;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACX;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACf;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACT;AAEhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7B;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpB;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1B;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACrB;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAClC;AAEd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDAChB;AAI3B;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,oBAAU,GAAE;8BACM,aAAa;wDAAC;AAGjC;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;iDACT;AAEnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACd;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACvB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACjB;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACjB;wBAhDjB,aAAa;IADzB,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,aAAa,CAiDzB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, JoinColumn, ManyToOne, Index, Column } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\n\n@Entity(\"ss_ai_interactions\")\nexport class AiInteraction extends CommonEntity {\n @Index()\n @ManyToOne(() => User, { nullable: false })\n @JoinColumn()\n user: User;\n @Index()\n @Column({ type: \"varchar\" })\n threadId: string;\n @Column({ type: \"varchar\" })\n role: string;\n @Column({ type: \"text\" })\n message: string;\n @Column({ type: \"varchar\", nullable: true })\n contentType: string;\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n status: string;\n @Column({ type: \"text\", nullable: true })\n errorMessage: string;\n @Column({ type: \"varchar\", nullable: true })\n modelUsed: string;\n @Column({ type: \"integer\", nullable: true })\n responseTimeMs: number;\n @Column({ type: \"simple-json\", nullable: true })\n metadata: any;\n @Column({ nullable: true, default: false })\n isApplied: boolean = false;\n @Index()\n @ManyToOne(() => AiInteraction, { nullable: true })\n @JoinColumn()\n parentInteraction: AiInteraction;\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n externalId: string;\n @Column({ nullable: true, default: false })\n isAutoApply: boolean = false;\n\n @Column({ type: \"integer\", nullable: true })\n inputTokens: number;\n\n @Column({ type: \"integer\", nullable: true })\n outputTokens: number;\n\n @Column({ type: \"integer\", nullable: true })\n totalTokens: number;\n @Column({ type: \"text\", nullable: true })\n originalMessage: string;\n @Column({ nullable: true, default: false })\n isEdited: boolean = false;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatter-message-details.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,qBACa,qBAAsB,SAAQ,YAAY;
|
|
1
|
+
{"version":3,"file":"chatter-message-details.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,qBACa,qBAAsB,SAAQ,YAAY;IAGnD,cAAc,EAAE,cAAc,CAAC;IAG/B,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,eAAe,EAAE,MAAM,CAAC;IAIxB,eAAe,EAAE,MAAM,CAAC;IAGxB,SAAS,EAAE,MAAM,CAAC;IAGlB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -21,7 +21,7 @@ let ChatterMessageDetails = class ChatterMessageDetails extends common_entity_1.
|
|
|
21
21
|
};
|
|
22
22
|
exports.ChatterMessageDetails = ChatterMessageDetails;
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.ManyToOne)(() => chatter_message_entity_1.ChatterMessage, {
|
|
24
|
+
(0, typeorm_1.ManyToOne)(() => chatter_message_entity_1.ChatterMessage, { nullable: true }),
|
|
25
25
|
(0, typeorm_1.JoinColumn)(),
|
|
26
26
|
__metadata("design:type", chatter_message_entity_1.ChatterMessage)
|
|
27
27
|
], ChatterMessageDetails.prototype, "chatterMessage", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatter-message-details.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"chatter-message-details.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message-details.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,qEAAoE;AAE7D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAY;;;;CAuBtD,CAAA;AAvBY,sDAAqB;AAG9B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnD,IAAA,oBAAU,GAAE;8BACG,uCAAc;6DAAC;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACpB;AAIxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACpB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wDACV;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DAChB;gCAtBhB,qBAAqB;IADjC,IAAA,gBAAM,EAAC,4BAA4B,CAAC;GACxB,qBAAqB,CAuBjC","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, JoinColumn, ManyToOne, Column, Index } from 'typeorm';\nimport { ChatterMessage } from 'src/entities/chatter-message.entity'\n@Entity(\"ss_chatter_message_details\")\nexport class ChatterMessageDetails extends CommonEntity {\n @ManyToOne(() => ChatterMessage, { nullable: true })\n @JoinColumn()\n chatterMessage: ChatterMessage;\n\n @Column({ type: \"text\", nullable: true })\n oldValue: string;\n\n @Column({ type: \"text\", nullable: true })\n newValue: string;\n\n @Column({ type: \"varchar\", nullable: true })\n oldValueDisplay: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n newValueDisplay: string;\n\n @Column({ type: \"varchar\" })\n fieldName: string;\n\n @Column({ type: \"text\", nullable: true })\n fieldDisplayName: string;\n}"]}
|
|
@@ -44,7 +44,7 @@ __decorate([
|
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], ChatterMessage.prototype, "coModelName", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
48
48
|
(0, typeorm_1.JoinColumn)(),
|
|
49
49
|
__metadata("design:type", user_entity_1.User)
|
|
50
50
|
], ChatterMessage.prototype, "user", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,+CAA+C;AAC/C,qFAAyE;AAGlE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAsB/C,CAAA;AAtBY,wCAAc;AAGvB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACL;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAGpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACJ;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAGpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,GAAE;8BACP,kBAAI;4CAAC;AAEX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sDAAqB,EAAE,CAAC,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DAC5E;AAE/C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChB;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACpB;yBArBZ,cAAc;IAD1B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAsB1B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\nimport { ChatterMessageDetails } from './chatter-message-details.entity';\n\n@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom\n @Column({ type: \"text\", nullable: true })\n messageBody: string;\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n @Column({ type: \"varchar\" })\n coModelName: string;\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n @Column({ type: \"text\", nullable: true })\n modelDisplayName: string;\n @Column({ type: \"text\", nullable: true })\n modelUserKey: string;\n}"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { User } from "./user.entity";
|
|
2
1
|
export declare abstract class CommonEntity {
|
|
3
2
|
id: number;
|
|
4
3
|
createdAt: Date;
|
|
@@ -8,7 +7,7 @@ export declare abstract class CommonEntity {
|
|
|
8
7
|
publishedAt: Date;
|
|
9
8
|
localeName: string;
|
|
10
9
|
defaultEntityLocaleId: number;
|
|
11
|
-
createdBy:
|
|
12
|
-
updatedBy:
|
|
10
|
+
createdBy: number;
|
|
11
|
+
updatedBy: number;
|
|
13
12
|
}
|
|
14
13
|
//# sourceMappingURL=common.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.entity.d.ts","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.entity.d.ts","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":"AAIA,8BACsB,YAAY;IAG9B,EAAE,EAAE,MAAM,CAAA;IAGV,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,cAAc,EAAE,MAAM,CAAC;IAIvB,WAAW,EAAE,IAAI,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAInB,qBAAqB,EAAE,MAAM,CAAC;IAc9B,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;CAErB"}
|
|
@@ -15,7 +15,7 @@ const typeorm_1 = require("typeorm");
|
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
let CommonEntity = class CommonEntity {
|
|
17
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { id: { required: true, type: () => Number }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date }, deletedAt: { required: true, type: () => Date }, deletedTracker: { required: true, type: () => String }, publishedAt: { required: true, type: () => Date }, localeName: { required: true, type: () => String }, defaultEntityLocaleId: { required: true, type: () => Number }, createdBy: { required: true, type: () =>
|
|
18
|
+
return { id: { required: true, type: () => Number }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date }, deletedAt: { required: true, type: () => Date }, deletedTracker: { required: true, type: () => String }, publishedAt: { required: true, type: () => Date }, localeName: { required: true, type: () => String }, defaultEntityLocaleId: { required: true, type: () => Number }, createdBy: { required: true, type: () => Number }, updatedBy: { required: true, type: () => Number } };
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
exports.CommonEntity = CommonEntity;
|
|
@@ -25,15 +25,15 @@ __decorate([
|
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], CommonEntity.prototype, "id", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.CreateDateColumn)({
|
|
28
|
+
(0, typeorm_1.CreateDateColumn)({ name: "created_at" }),
|
|
29
29
|
__metadata("design:type", Date)
|
|
30
30
|
], CommonEntity.prototype, "createdAt", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typeorm_1.UpdateDateColumn)({
|
|
32
|
+
(0, typeorm_1.UpdateDateColumn)({ name: "updated_at" }),
|
|
33
33
|
__metadata("design:type", Date)
|
|
34
34
|
], CommonEntity.prototype, "updatedAt", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, typeorm_1.DeleteDateColumn)({
|
|
36
|
+
(0, typeorm_1.DeleteDateColumn)({ name: "deleted_at" }),
|
|
37
37
|
__metadata("design:type", Date)
|
|
38
38
|
], CommonEntity.prototype, "deletedAt", void 0);
|
|
39
39
|
__decorate([
|
|
@@ -42,7 +42,7 @@ __decorate([
|
|
|
42
42
|
], CommonEntity.prototype, "deletedTracker", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, class_transformer_1.Expose)(),
|
|
45
|
-
(0, typeorm_1.Column)({
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'published_at', default: null, nullable: true }),
|
|
46
46
|
__metadata("design:type", Date)
|
|
47
47
|
], CommonEntity.prototype, "publishedAt", void 0);
|
|
48
48
|
__decorate([
|
|
@@ -57,15 +57,13 @@ __decorate([
|
|
|
57
57
|
], CommonEntity.prototype, "defaultEntityLocaleId", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, class_transformer_1.Expose)(),
|
|
60
|
-
(0,
|
|
61
|
-
(
|
|
62
|
-
__metadata("design:type", Function)
|
|
60
|
+
(0, typeorm_1.Column)({ name: `created_by_id`, nullable: true }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
63
62
|
], CommonEntity.prototype, "createdBy", void 0);
|
|
64
63
|
__decorate([
|
|
65
64
|
(0, class_transformer_1.Expose)(),
|
|
66
|
-
(0,
|
|
67
|
-
(
|
|
68
|
-
__metadata("design:type", Function)
|
|
65
|
+
(0, typeorm_1.Column)({ name: `updated_by_id`, nullable: true }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
69
67
|
], CommonEntity.prototype, "updatedBy", void 0);
|
|
70
68
|
exports.CommonEntity = CommonEntity = __decorate([
|
|
71
69
|
(0, class_transformer_1.Exclude)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA0H;AAE1H,yDAA0D;AAGnD,IAAe,YAAY,GAA3B,MAAe,YAAY;;;;
|
|
1
|
+
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../src/entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAA0H;AAE1H,yDAA0D;AAGnD,IAAe,YAAY,GAA3B,MAAe,YAAY;;;;CA+CjC,CAAA;AA/CqB,oCAAY;AAG9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wCAClC;AAGV;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC9B,IAAI;+CAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC9B,IAAI;+CAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC9B,IAAI;+CAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;;oDACpC;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACnD,IAAI;iDAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDAC7C;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,0BAA0B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2DAC3C;AAc9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAChC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAChC;uBA7CA,YAAY;IADjC,IAAA,2BAAO,GAAE;GACY,YAAY,CA+CjC","sourcesContent":["import { Column, CreateDateColumn, DeleteDateColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from \"typeorm\";\nimport type { User } from \"./user.entity\";\nimport { Exclude, Expose, Type } from \"class-transformer\";\n\n@Exclude()\nexport abstract class CommonEntity {\n @Expose()\n @PrimaryGeneratedColumn({ type: 'integer' })\n id: number\n\n @CreateDateColumn({ name: \"created_at\" })\n createdAt: Date;\n\n @UpdateDateColumn({ name: \"updated_at\" })\n updatedAt: Date;\n\n @DeleteDateColumn({ name: \"deleted_at\" })\n deletedAt: Date;\n\n @Column({ name: \"deletedTracker\", default: \"not-deleted\" })\n deletedTracker: string;\n\n @Expose()\n @Column({ name: 'published_at', default: null, nullable: true })\n publishedAt: Date;\n\n @Expose()\n @Column({ type: \"varchar\", name: 'locale_name', default: null })\n localeName: string;\n\n @Expose()\n @Column({ type: \"int\", name: 'default_entity_locale_id', default: null })\n defaultEntityLocaleId: number;\n\n // @Expose()\n // @Type( () => require('./user.entity').User?.default ?? require('./user.entity').User )\n // @ManyToOne(() => require('./user.entity').User?.default ?? require('./user.entity').User, { nullable: true })\n // createdBy: User;\n\n // @Expose()\n // @Type( () => require('./user.entity').User?.default ?? require('./user.entity').User )\n // @ManyToOne(() => require('./user.entity').User?.default ?? require('./user.entity').User, { nullable: true })\n // updatedBy: User;\n\n @Expose()\n @Column({ name: `created_by_id`, nullable: true })\n createdBy: number;\n\n @Expose()\n @Column({ name: `updated_by_id`, nullable: true })\n updatedBy: number;\n \n}\n"]}
|
|
@@ -46,7 +46,7 @@ __decorate([
|
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], DashboardQuestionSqlDatasetConfig.prototype, "valueColumnName", void 0);
|
|
48
48
|
__decorate([
|
|
49
|
-
(0, typeorm_1.ManyToOne)(() => dashboard_question_entity_1.DashboardQuestion, {
|
|
49
|
+
(0, typeorm_1.ManyToOne)(() => dashboard_question_entity_1.DashboardQuestion, { nullable: false }),
|
|
50
50
|
(0, typeorm_1.JoinColumn)(),
|
|
51
51
|
__metadata("design:type", dashboard_question_entity_1.DashboardQuestion)
|
|
52
52
|
], DashboardQuestionSqlDatasetConfig.prototype, "question", void 0);
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
], DashboardQuestionSqlDatasetConfig.prototype, "options", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, typeorm_1.Index)({ unique: true }),
|
|
59
|
-
(0, typeorm_1.Column)({ type: "varchar", nullable:
|
|
59
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: false }),
|
|
60
60
|
__metadata("design:type", String)
|
|
61
61
|
], DashboardQuestionSqlDatasetConfig.prototype, "externalId", void 0);
|
|
62
62
|
exports.DashboardQuestionSqlDatasetConfig = DashboardQuestionSqlDatasetConfig = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-question-sql-dataset-config.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question-sql-dataset-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,2EAA0E;AAGnE,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,4BAAY;;;;CAsBlE,CAAA;AAtBY,8EAAiC;AAG1C;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sEACR;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6EACD;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACrB;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACb;AAEZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAGxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"dashboard-question-sql-dataset-config.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question-sql-dataset-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAuE;AACvE,2EAA0E;AAGnE,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,4BAAY;;;;CAsBlE,CAAA;AAtBY,8EAAiC;AAG1C;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sEACR;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6EACD;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACrB;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACb;AAEZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0EACJ;AAGxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAiB,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvD,IAAA,oBAAU,GAAE;8BACH,6CAAiB;mEAAC;AAE5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEAC5B;AAGb;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qEAC1B;4CArBV,iCAAiC;IAD7C,IAAA,gBAAM,EAAC,0CAA0C,CAAC;GACtC,iCAAiC,CAsB7C","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne } from 'typeorm';\nimport { DashboardQuestion } from 'src/entities/dashboard-question.entity'\n\n@Entity(\"ss_dashboard_question_sql_dataset_config\")\nexport class DashboardQuestionSqlDatasetConfig extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n datasetName: string;\n @Column({ type: \"varchar\" })\n datasetDisplayName: string;\n @Column({ type: \"text\", nullable: true })\n description: string;\n @Column({ type: \"text\" })\n sql: string;\n @Column({ type: \"varchar\" })\n labelColumnName: string;\n @Column({ type: \"varchar\" })\n valueColumnName: string;\n @ManyToOne(() => DashboardQuestion, { nullable: false })\n @JoinColumn()\n question: DashboardQuestion;\n @Column({ type: \"text\", nullable: true })\n options: any;\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}"]}
|
|
@@ -41,7 +41,7 @@ __decorate([
|
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], DashboardQuestion.prototype, "providerName", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, typeorm_1.ManyToOne)(() => dashboard_entity_1.Dashboard, {
|
|
44
|
+
(0, typeorm_1.ManyToOne)(() => dashboard_entity_1.Dashboard, { nullable: true }),
|
|
45
45
|
(0, typeorm_1.JoinColumn)(),
|
|
46
46
|
__metadata("design:type", dashboard_entity_1.Dashboard)
|
|
47
47
|
], DashboardQuestion.prototype, "dashboard", void 0);
|
|
@@ -50,7 +50,7 @@ __decorate([
|
|
|
50
50
|
__metadata("design:type", Array)
|
|
51
51
|
], DashboardQuestion.prototype, "questionSqlDatasetConfigs", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: "
|
|
53
|
+
(0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
|
|
54
54
|
__metadata("design:type", Object)
|
|
55
55
|
], DashboardQuestion.prototype, "chartOptions", void 0);
|
|
56
56
|
__decorate([
|
|
@@ -67,7 +67,7 @@ __decorate([
|
|
|
67
67
|
], DashboardQuestion.prototype, "sequenceNumber", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, typeorm_1.Index)({ unique: true }),
|
|
70
|
-
(0, typeorm_1.Column)({ type: "varchar", nullable:
|
|
70
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: false }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], DashboardQuestion.prototype, "externalId", void 0);
|
|
73
73
|
exports.DashboardQuestion = DashboardQuestion = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-question.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,yDAA0D;AAC1D,iHAA6G;AAGtG,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAY;;;;CA4BlD,CAAA;AA5BY,8CAAiB;AAG1B;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACf;AAGb;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,CAAC;;qDACQ;AAGnB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,CAAC;;uDACU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACvB;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"dashboard-question.entity.js","sourceRoot":"","sources":["../../src/entities/dashboard-question.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,yDAA0D;AAC1D,iHAA6G;AAGtG,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAY;;;;CA4BlD,CAAA;AA5BY,8CAAiB;AAG1B;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACf;AAGb;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,CAAC;;qDACQ;AAGnB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,CAAC;;uDACU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACvB;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,oBAAU,GAAE;8BACF,4BAAS;oDAAC;AAErB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gFAAiC,EAAE,iCAAiC,CAAC,EAAE,CAAC,iCAAiC,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oEACxF;AAE/D;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC9B;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACxB;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC1B;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACrB;AAGvB;IAFC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qDAC1B;4BA3BV,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,iBAAiB,CA4B7B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { Dashboard } from 'src/entities/dashboard.entity';\nimport { DashboardQuestionSqlDatasetConfig } from 'src/entities/dashboard-question-sql-dataset-config.entity'\n\n@Entity(\"ss_dashboard_question\")\nexport class DashboardQuestion extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n name: string;\n @Index()\n @Column({})\n sourceType: string;\n @Index()\n @Column({})\n visualisedAs: string;\n @Column({ type: \"varchar\", nullable: true })\n providerName: string;\n @ManyToOne(() => Dashboard, { nullable: true })\n @JoinColumn()\n dashboard: Dashboard;\n @OneToMany(() => DashboardQuestionSqlDatasetConfig, dashboardQuestionSqlDatasetConfig => dashboardQuestionSqlDatasetConfig.question, { cascade: true })\n questionSqlDatasetConfigs: DashboardQuestionSqlDatasetConfig[];\n @Column({ type: \"simple-json\", nullable: true })\n chartOptions: any;\n @Column({ type: \"text\", nullable: true })\n labelSql: string;\n @Column({ type: \"text\", nullable: true })\n kpiSql: string;\n @Column({ type: \"integer\", nullable: true })\n sequenceNumber: number;\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: false })\n externalId: string;\n}"]}
|