@servicelabsco/nestjs-utility-services 3.0.19 → 4.0.1
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/CHANGELOG.md +275 -1
- package/README.md +3 -1
- package/dist/app.module.js +10 -43
- package/dist/app.module.js.map +1 -1
- package/dist/auth/auth.module.js +1 -4
- package/dist/auth/auth.module.js.map +1 -1
- package/dist/auth/middlewares/internal.middleware.js +4 -36
- package/dist/auth/middlewares/internal.middleware.js.map +1 -1
- package/dist/auth/services/auth.service.js.map +1 -1
- package/dist/auth/services/device.token.service.js +4 -3
- package/dist/auth/services/device.token.service.js.map +1 -1
- package/dist/auth/services/refresh.token.service.js +1 -34
- package/dist/auth/services/refresh.token.service.js.map +1 -1
- package/dist/common/adapters/redis.io.adapter.d.ts +1 -3
- package/dist/common/adapters/redis.io.adapter.js +3 -7
- package/dist/common/adapters/redis.io.adapter.js.map +1 -1
- package/dist/common/libraries/auth.js +1 -34
- package/dist/common/libraries/auth.js.map +1 -1
- package/dist/common/libraries/common.subscriber.js +15 -15
- package/dist/common/libraries/common.subscriber.js.map +1 -1
- package/dist/common/libraries/custom.crypt.js +13 -46
- package/dist/common/libraries/custom.crypt.js.map +1 -1
- package/dist/common/libraries/custom.logger.js +1 -1
- package/dist/common/libraries/custom.logger.js.map +1 -1
- package/dist/common/libraries/date.util.js +3 -3
- package/dist/common/libraries/date.util.js.map +1 -1
- package/dist/common/libraries/hash.js +3 -36
- package/dist/common/libraries/hash.js.map +1 -1
- package/dist/common/libraries/json.evaluator.js +26 -26
- package/dist/common/libraries/json.evaluator.js.map +1 -1
- package/dist/common/libraries/log.redactor.js +14 -14
- package/dist/common/libraries/log.redactor.js.map +1 -1
- package/dist/common/libraries/money.js +4 -4
- package/dist/common/libraries/money.js.map +1 -1
- package/dist/common/libraries/platform.utility.js +1 -4
- package/dist/common/libraries/platform.utility.js.map +1 -1
- package/dist/common/libraries/record.manager.js.map +1 -1
- package/dist/common/libraries/sentry.sdk.d.ts +1 -1
- package/dist/common/libraries/sentry.sdk.js +1 -1
- package/dist/common/libraries/sentry.sdk.js.map +1 -1
- package/dist/config/jwt.config.js.map +1 -1
- package/dist/config/orm.config.js +0 -3
- package/dist/config/orm.config.js.map +1 -1
- package/dist/config/read.typeorm.config.js +6 -35
- package/dist/config/read.typeorm.config.js.map +1 -1
- package/dist/config/sentry.options.js +14 -1
- package/dist/config/sentry.options.js.map +1 -1
- package/dist/config/typeorm.config.js +6 -37
- package/dist/config/typeorm.config.js.map +1 -1
- package/dist/health.check.controller.js +18 -0
- package/dist/health.check.controller.js.map +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +6 -45
- package/dist/main.js.map +1 -1
- package/dist/migrations/1619296224563-AddMasterSeedersDataSeederTable.js +2 -35
- package/dist/migrations/1619296224563-AddMasterSeedersDataSeederTable.js.map +1 -1
- package/dist/migrations/1779607111923-AddUniqueIndexSysPropertiesName.js +2 -2
- package/dist/migrations/1779607111923-AddUniqueIndexSysPropertiesName.js.map +1 -1
- package/dist/migrations/1779607111924-AddUniqueIndexSysDocumentsFileHash.js +2 -2
- package/dist/migrations/1779607111924-AddUniqueIndexSysDocumentsFileHash.js.map +1 -1
- package/dist/migrations/1779690975270-AddUniqueIndexSysSessionIdentifiers.js +1 -1
- package/dist/migrations/1779690975270-AddUniqueIndexSysSessionIdentifiers.js.map +1 -1
- package/dist/migrations/1779773659655-AddIdempotencyIndexesForJobs.js +3 -3
- package/dist/migrations/1779773659655-AddIdempotencyIndexesForJobs.js.map +1 -1
- package/dist/migrations/1780002352495-MigrateJsonColumnsToJsonb.js +20 -20
- package/dist/migrations/1780002352495-MigrateJsonColumnsToJsonb.js.map +1 -1
- package/dist/migrations/1788287350858-ReplaceUniqueIndexesWithSoftDeleteAware.js +4 -4
- package/dist/migrations/1788287350858-ReplaceUniqueIndexesWithSoftDeleteAware.js.map +1 -1
- package/dist/migrations/1788287350859-NormalizeSocialIdentitiesUuidDefault.js +1 -1
- package/dist/migrations/1788287350859-NormalizeSocialIdentitiesUuidDefault.js.map +1 -1
- package/dist/migrations/1793302598724-CreateUploadSessionTable.d.ts +5 -0
- package/dist/migrations/1793302598724-CreateUploadSessionTable.js +33 -0
- package/dist/migrations/1793302598724-CreateUploadSessionTable.js.map +1 -0
- package/dist/migrations/1793726866264-CreateSourceVersionTable.d.ts +5 -0
- package/dist/migrations/1793726866264-CreateSourceVersionTable.js +22 -0
- package/dist/migrations/1793726866264-CreateSourceVersionTable.js.map +1 -0
- package/dist/migrations/1793732831136-AddLastViewedAtSysMaterialViewsTable.d.ts +5 -0
- package/dist/migrations/1793732831136-AddLastViewedAtSysMaterialViewsTable.js +15 -0
- package/dist/migrations/1793732831136-AddLastViewedAtSysMaterialViewsTable.js.map +1 -0
- package/dist/platformUtility/constants/index.d.ts +1 -0
- package/dist/platformUtility/constants/index.js +1 -0
- package/dist/platformUtility/constants/index.js.map +1 -1
- package/dist/platformUtility/constants/servicelabs.constants.d.ts +30 -0
- package/dist/platformUtility/constants/servicelabs.constants.js +34 -0
- package/dist/platformUtility/constants/servicelabs.constants.js.map +1 -0
- package/dist/platformUtility/consumers/job.consumer.d.ts +2 -1
- package/dist/platformUtility/consumers/job.consumer.js +8 -8
- package/dist/platformUtility/consumers/job.consumer.js.map +1 -1
- package/dist/platformUtility/es6.classes.d.ts +36 -4
- package/dist/platformUtility/es6.classes.js +8 -1
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/filters/sentry.reporting.filter.js +2 -1
- package/dist/platformUtility/filters/sentry.reporting.filter.js.map +1 -1
- package/dist/platformUtility/interfaces/index.d.ts +19 -0
- package/dist/platformUtility/interfaces/index.js +19 -0
- package/dist/platformUtility/interfaces/index.js.map +1 -1
- package/dist/platformUtility/interfaces/servicelabs.call.options.interface.d.ts +8 -0
- package/dist/platformUtility/interfaces/servicelabs.call.options.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.call.options.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.callback.event.interface.d.ts +6 -0
- package/dist/platformUtility/interfaces/servicelabs.callback.event.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.callback.event.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.error.interface.d.ts +10 -0
- package/dist/platformUtility/interfaces/servicelabs.error.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.error.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.html.pdf.input.interface.d.ts +5 -0
- package/dist/platformUtility/interfaces/servicelabs.html.pdf.input.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.html.pdf.input.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.job.file.interface.d.ts +10 -0
- package/dist/platformUtility/interfaces/servicelabs.job.file.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.job.file.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.job.interface.d.ts +31 -0
- package/dist/platformUtility/interfaces/servicelabs.job.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.job.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.job.list.interface.d.ts +5 -0
- package/dist/platformUtility/interfaces/servicelabs.job.list.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.job.list.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.job.list.options.interface.d.ts +6 -0
- package/dist/platformUtility/interfaces/servicelabs.job.list.options.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.job.list.options.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.job.summary.interface.d.ts +15 -0
- package/dist/platformUtility/interfaces/servicelabs.job.summary.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.job.summary.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.request.interface.d.ts +5 -0
- package/dist/platformUtility/interfaces/servicelabs.request.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.request.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.response.interface.d.ts +6 -0
- package/dist/platformUtility/interfaces/servicelabs.response.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.response.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.run.options.interface.d.ts +8 -0
- package/dist/platformUtility/interfaces/servicelabs.run.options.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.run.options.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.store.options.interface.d.ts +5 -0
- package/dist/platformUtility/interfaces/servicelabs.store.options.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.store.options.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.stored.file.interface.d.ts +6 -0
- package/dist/platformUtility/interfaces/servicelabs.stored.file.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.stored.file.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.url.input.interface.d.ts +3 -0
- package/dist/platformUtility/interfaces/servicelabs.url.input.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.url.input.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.utility.interface.d.ts +12 -0
- package/dist/platformUtility/interfaces/servicelabs.utility.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.utility.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.zip.entry.interface.d.ts +4 -0
- package/dist/platformUtility/interfaces/servicelabs.zip.entry.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.zip.entry.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/servicelabs.zip.files.input.interface.d.ts +4 -0
- package/dist/platformUtility/interfaces/servicelabs.zip.files.input.interface.js +3 -0
- package/dist/platformUtility/interfaces/servicelabs.zip.files.input.interface.js.map +1 -0
- package/dist/platformUtility/interfaces/unzip.file.interface.d.ts +6 -0
- package/dist/platformUtility/interfaces/unzip.file.interface.js +3 -0
- package/dist/platformUtility/interfaces/unzip.file.interface.js.map +1 -0
- package/dist/platformUtility/libraries/common.servicelabs.callback.controller.d.ts +11 -0
- package/dist/platformUtility/libraries/common.servicelabs.callback.controller.js +43 -0
- package/dist/platformUtility/libraries/common.servicelabs.callback.controller.js.map +1 -0
- package/dist/platformUtility/libraries/create.entity.constants.file.js +1 -34
- package/dist/platformUtility/libraries/create.entity.constants.file.js.map +1 -1
- package/dist/platformUtility/libraries/create.es6.classes.file.js +1 -34
- package/dist/platformUtility/libraries/create.es6.classes.file.js.map +1 -1
- package/dist/platformUtility/libraries/create.es6.jobs.file.js +1 -34
- package/dist/platformUtility/libraries/create.es6.jobs.file.js.map +1 -1
- package/dist/platformUtility/libraries/create.es6.service.file.js +1 -34
- package/dist/platformUtility/libraries/create.es6.service.file.js.map +1 -1
- package/dist/platformUtility/libraries/create.index.file.js +1 -34
- package/dist/platformUtility/libraries/create.index.file.js.map +1 -1
- package/dist/platformUtility/libraries/file.system.utility.js +1 -34
- package/dist/platformUtility/libraries/file.system.utility.js.map +1 -1
- package/dist/platformUtility/libraries/index.d.ts +1 -0
- package/dist/platformUtility/libraries/index.js +1 -0
- package/dist/platformUtility/libraries/index.js.map +1 -1
- package/dist/platformUtility/libraries/process.common.mail.js +4 -7
- package/dist/platformUtility/libraries/process.common.mail.js.map +1 -1
- package/dist/platformUtility/libraries/process.kaleyra.sms.d.ts +1 -0
- package/dist/platformUtility/libraries/process.kaleyra.sms.js +11 -37
- package/dist/platformUtility/libraries/process.kaleyra.sms.js.map +1 -1
- package/dist/platformUtility/libraries/process.smtp.mail.js +1 -34
- package/dist/platformUtility/libraries/process.smtp.mail.js.map +1 -1
- package/dist/platformUtility/libraries/sentry.bootstrap.js +5 -5
- package/dist/platformUtility/libraries/sentry.bootstrap.js.map +1 -1
- package/dist/platformUtility/libraries/sentry.context.d.ts +1 -1
- package/dist/platformUtility/libraries/sentry.context.js +1 -2
- package/dist/platformUtility/libraries/sentry.context.js.map +1 -1
- package/dist/platformUtility/middlewares/trim.pipe.js +13 -12
- package/dist/platformUtility/middlewares/trim.pipe.js.map +1 -1
- package/dist/platformUtility/platform.utility.module.js +9 -5
- package/dist/platformUtility/platform.utility.module.js.map +1 -1
- package/dist/platformUtility/services/aws.client.factory.js +3 -2
- package/dist/platformUtility/services/aws.client.factory.js.map +1 -1
- package/dist/platformUtility/services/aws.config.service.js +3 -2
- package/dist/platformUtility/services/aws.config.service.js.map +1 -1
- package/dist/platformUtility/services/cache.service.js +4 -2
- package/dist/platformUtility/services/cache.service.js.map +1 -1
- package/dist/platformUtility/services/dynamo.service.js +4 -3
- package/dist/platformUtility/services/dynamo.service.js.map +1 -1
- package/dist/platformUtility/services/index.d.ts +2 -0
- package/dist/platformUtility/services/index.js +2 -0
- package/dist/platformUtility/services/index.js.map +1 -1
- package/dist/platformUtility/services/local.property.service.js +1 -4
- package/dist/platformUtility/services/local.property.service.js.map +1 -1
- package/dist/platformUtility/services/maintenance.service.js +2 -35
- package/dist/platformUtility/services/maintenance.service.js.map +1 -1
- package/dist/platformUtility/services/pdf.service.d.ts +4 -1
- package/dist/platformUtility/services/pdf.service.js +16 -2
- package/dist/platformUtility/services/pdf.service.js.map +1 -1
- package/dist/platformUtility/services/queue.service.d.ts +5 -3
- package/dist/platformUtility/services/queue.service.js +14 -3
- package/dist/platformUtility/services/queue.service.js.map +1 -1
- package/dist/platformUtility/services/redis.service.d.ts +1 -0
- package/dist/platformUtility/services/redis.service.js +10 -8
- package/dist/platformUtility/services/redis.service.js.map +1 -1
- package/dist/platformUtility/services/remote.request.service.js +1 -4
- package/dist/platformUtility/services/remote.request.service.js.map +1 -1
- package/dist/platformUtility/services/s3.service.js +1 -34
- package/dist/platformUtility/services/s3.service.js.map +1 -1
- package/dist/platformUtility/services/servicelabs.dev.service.d.ts +49 -0
- package/dist/platformUtility/services/servicelabs.dev.service.js +181 -0
- package/dist/platformUtility/services/servicelabs.dev.service.js.map +1 -0
- package/dist/platformUtility/services/servicelabs.utility.service.d.ts +51 -0
- package/dist/platformUtility/services/servicelabs.utility.service.js +193 -0
- package/dist/platformUtility/services/servicelabs.utility.service.js.map +1 -0
- package/dist/platformUtility/services/shutdown.service.js.map +1 -1
- package/dist/platformUtility/services/split.pdf.service.d.ts +3 -1
- package/dist/platformUtility/services/split.pdf.service.js +9 -2
- package/dist/platformUtility/services/split.pdf.service.js.map +1 -1
- package/dist/platformUtility/services/sql.service.d.ts +13 -0
- package/dist/platformUtility/services/sql.service.js +51 -0
- package/dist/platformUtility/services/sql.service.js.map +1 -1
- package/dist/platformUtility/services/zip.service.d.ts +7 -2
- package/dist/platformUtility/services/zip.service.js +41 -5
- package/dist/platformUtility/services/zip.service.js.map +1 -1
- package/dist/security/security.module.js +1 -4
- package/dist/security/security.module.js.map +1 -1
- package/dist/system/constants/index.d.ts +1 -0
- package/dist/system/constants/index.js +1 -0
- package/dist/system/constants/index.js.map +1 -1
- package/dist/system/constants/upload.session.constants.d.ts +21 -0
- package/dist/system/constants/upload.session.constants.js +25 -0
- package/dist/system/constants/upload.session.constants.js.map +1 -0
- package/dist/system/controllers/upload.controller.js +2 -2
- package/dist/system/controllers/upload.controller.js.map +1 -1
- package/dist/system/dtos/direct.upload.file.dto.d.ts +5 -0
- package/dist/system/dtos/direct.upload.file.dto.js +37 -0
- package/dist/system/dtos/direct.upload.file.dto.js.map +1 -0
- package/dist/system/dtos/direct.upload.initiate.dto.d.ts +4 -0
- package/dist/system/dtos/direct.upload.initiate.dto.js +27 -0
- package/dist/system/dtos/direct.upload.initiate.dto.js.map +1 -0
- package/dist/system/dtos/direct.upload.options.dto.d.ts +8 -0
- package/dist/system/dtos/direct.upload.options.dto.js +54 -0
- package/dist/system/dtos/direct.upload.options.dto.js.map +1 -0
- package/dist/system/dtos/direct.upload.parts.dto.d.ts +3 -0
- package/dist/system/dtos/direct.upload.parts.dto.js +26 -0
- package/dist/system/dtos/direct.upload.parts.dto.js.map +1 -0
- package/dist/system/dtos/index.d.ts +5 -0
- package/dist/system/dtos/index.js +5 -0
- package/dist/system/dtos/index.js.map +1 -1
- package/dist/system/dtos/local.file.s3.upload.dto.d.ts +1 -0
- package/dist/system/dtos/local.file.s3.upload.dto.js +4 -0
- package/dist/system/dtos/local.file.s3.upload.dto.js.map +1 -1
- package/dist/system/dtos/material.view.attributes.dto.d.ts +4 -0
- package/dist/system/dtos/material.view.attributes.dto.js.map +1 -1
- package/dist/system/dtos/upload.session.attributes.dto.d.ts +5 -0
- package/dist/system/dtos/upload.session.attributes.dto.js +7 -0
- package/dist/system/dtos/upload.session.attributes.dto.js.map +1 -0
- package/dist/system/entities/index.d.ts +2 -0
- package/dist/system/entities/index.js +2 -0
- package/dist/system/entities/index.js.map +1 -1
- package/dist/system/entities/material.view.entity.d.ts +1 -0
- package/dist/system/entities/material.view.entity.js +4 -0
- package/dist/system/entities/material.view.entity.js.map +1 -1
- package/dist/system/entities/source.version.entity.d.ts +9 -0
- package/dist/system/entities/source.version.entity.js +45 -0
- package/dist/system/entities/source.version.entity.js.map +1 -0
- package/dist/system/entities/upload.session.entity.d.ts +20 -0
- package/dist/system/entities/upload.session.entity.js +86 -0
- package/dist/system/entities/upload.session.entity.js.map +1 -0
- package/dist/system/es6.classes.d.ts +38 -6
- package/dist/system/es6.classes.js +26 -1
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/interfaces/direct.upload.part.url.interface.d.ts +6 -0
- package/dist/system/interfaces/direct.upload.part.url.interface.js +3 -0
- package/dist/system/interfaces/direct.upload.part.url.interface.js.map +1 -0
- package/dist/system/interfaces/direct.upload.result.interface.d.ts +10 -0
- package/dist/system/interfaces/direct.upload.result.interface.js +3 -0
- package/dist/system/interfaces/direct.upload.result.interface.js.map +1 -0
- package/dist/system/interfaces/direct.upload.session.interface.d.ts +16 -0
- package/dist/system/interfaces/direct.upload.session.interface.js +3 -0
- package/dist/system/interfaces/direct.upload.session.interface.js.map +1 -0
- package/dist/system/interfaces/direct.upload.status.interface.d.ts +12 -0
- package/dist/system/interfaces/direct.upload.status.interface.js +3 -0
- package/dist/system/interfaces/direct.upload.status.interface.js.map +1 -0
- package/dist/system/interfaces/index.d.ts +6 -0
- package/dist/system/interfaces/index.js +6 -0
- package/dist/system/interfaces/index.js.map +1 -1
- package/dist/system/interfaces/source.version.options.interface.d.ts +7 -0
- package/dist/system/interfaces/source.version.options.interface.js +3 -0
- package/dist/system/interfaces/source.version.options.interface.js.map +1 -0
- package/dist/system/interfaces/uploaded.part.interface.d.ts +5 -0
- package/dist/system/interfaces/uploaded.part.interface.js +3 -0
- package/dist/system/interfaces/uploaded.part.interface.js.map +1 -0
- package/dist/system/jobs/execute.material.view.job.js +2 -0
- package/dist/system/jobs/execute.material.view.job.js.map +1 -1
- package/dist/system/jobs/expire.upload.session.job.d.ts +13 -0
- package/dist/system/jobs/expire.upload.session.job.js +38 -0
- package/dist/system/jobs/expire.upload.session.job.js.map +1 -0
- package/dist/system/jobs/index.d.ts +1 -0
- package/dist/system/jobs/index.js +1 -0
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/jobs/orphan.sweeper.job.js +3 -2
- package/dist/system/jobs/orphan.sweeper.job.js.map +1 -1
- package/dist/system/jobs/set.event.queue.job.js +3 -2
- package/dist/system/jobs/set.event.queue.job.js.map +1 -1
- package/dist/system/jobs/sqs.polling.job.js.map +1 -1
- package/dist/system/jobs/sync.all.code.job.d.ts +9 -0
- package/dist/system/jobs/sync.all.code.job.js +106 -28
- package/dist/system/jobs/sync.all.code.job.js.map +1 -1
- package/dist/system/libraries/code.evaluator.d.ts +13 -0
- package/dist/system/libraries/code.evaluator.js +41 -1
- package/dist/system/libraries/code.evaluator.js.map +1 -1
- package/dist/system/libraries/common.direct.upload.controller.d.ts +19 -0
- package/dist/system/libraries/common.direct.upload.controller.js +84 -0
- package/dist/system/libraries/common.direct.upload.controller.js.map +1 -0
- package/dist/system/libraries/common.storage.service.d.ts +13 -0
- package/dist/system/libraries/common.storage.service.js +78 -1
- package/dist/system/libraries/common.storage.service.js.map +1 -1
- package/dist/system/libraries/crypt.re.encrypt.processor.js +2 -2
- package/dist/system/libraries/crypt.re.encrypt.processor.js.map +1 -1
- package/dist/system/libraries/file.type.detector.d.ts +2 -0
- package/dist/system/libraries/file.type.detector.js +88 -75
- package/dist/system/libraries/file.type.detector.js.map +1 -1
- package/dist/system/libraries/generate.downloadable.report.file.d.ts +1 -0
- package/dist/system/libraries/generate.downloadable.report.file.js +14 -36
- package/dist/system/libraries/generate.downloadable.report.file.js.map +1 -1
- package/dist/system/libraries/index.d.ts +1 -0
- package/dist/system/libraries/index.js +1 -0
- package/dist/system/libraries/index.js.map +1 -1
- package/dist/system/libraries/model.sync.js +2 -2
- package/dist/system/libraries/model.sync.js.map +1 -1
- package/dist/system/libraries/sandboxed.script.executor.js +17 -17
- package/dist/system/libraries/sandboxed.script.executor.js.map +1 -1
- package/dist/system/services/aws.s3.service.js +6 -5
- package/dist/system/services/aws.s3.service.js.map +1 -1
- package/dist/system/services/base.service.js.map +1 -1
- package/dist/system/services/direct.upload.service.d.ts +41 -0
- package/dist/system/services/direct.upload.service.js +385 -0
- package/dist/system/services/direct.upload.service.js.map +1 -0
- package/dist/system/services/document.service.js +2 -38
- package/dist/system/services/document.service.js.map +1 -1
- package/dist/system/services/event.detail.service.js.map +1 -1
- package/dist/system/services/event.queue.service.js +3 -2
- package/dist/system/services/event.queue.service.js.map +1 -1
- package/dist/system/services/index.d.ts +2 -0
- package/dist/system/services/index.js +2 -0
- package/dist/system/services/index.js.map +1 -1
- package/dist/system/services/source.version.service.d.ts +17 -0
- package/dist/system/services/source.version.service.js +86 -0
- package/dist/system/services/source.version.service.js.map +1 -0
- package/dist/system/services/storage.service.d.ts +20 -0
- package/dist/system/services/storage.service.js +62 -7
- package/dist/system/services/storage.service.js.map +1 -1
- package/dist/system/services/upload.service.d.ts +4 -1
- package/dist/system/services/upload.service.js +18 -6
- package/dist/system/services/upload.service.js.map +1 -1
- package/dist/system/subscribers/index.d.ts +1 -0
- package/dist/system/subscribers/index.js +1 -0
- package/dist/system/subscribers/index.js.map +1 -1
- package/dist/system/subscribers/system.script.subscriber.d.ts +13 -0
- package/dist/system/subscribers/system.script.subscriber.js +61 -0
- package/dist/system/subscribers/system.script.subscriber.js.map +1 -0
- package/dist/system/system.module.js +1 -4
- package/dist/system/system.module.js.map +1 -1
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +2 -1
- package/dist/worker.js.map +1 -1
- package/docs/sentry-reporting.md +26 -20
- package/docs/servicelabs-utilities.md +174 -0
- package/docs/upgrade-4.0.md +215 -0
- package/package.json +70 -74
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadSessionConstants = void 0;
|
|
4
|
+
exports.UploadSessionConstants = {
|
|
5
|
+
STATUS_PENDING: 'pending',
|
|
6
|
+
STATUS_COMPLETED: 'completed',
|
|
7
|
+
STATUS_ABORTED: 'aborted',
|
|
8
|
+
STATUS_EXPIRED: 'expired',
|
|
9
|
+
STATUS_REJECTED: 'rejected',
|
|
10
|
+
MODE_SINGLE: 'single',
|
|
11
|
+
MODE_MULTIPART: 'multipart',
|
|
12
|
+
MAX_FILE_SIZE: 10 * 1024 * 1024 * 1024,
|
|
13
|
+
SINGLE_PUT_THRESHOLD: 100 * 1024 * 1024,
|
|
14
|
+
PART_SIZE: 8 * 1024 * 1024,
|
|
15
|
+
MAX_FILES: 50,
|
|
16
|
+
URL_TTL: 15 * 60,
|
|
17
|
+
SESSION_TTL: 24 * 60 * 60,
|
|
18
|
+
MIN_PART_SIZE: 5 * 1024 * 1024,
|
|
19
|
+
MAX_PARTS: 10000,
|
|
20
|
+
INITIAL_PART_URLS: 100,
|
|
21
|
+
MAX_PART_URLS_PER_CALL: 500,
|
|
22
|
+
SNIFF_BYTES: 4096,
|
|
23
|
+
EXPIRE_BATCH_SIZE: 200,
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=upload.session.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.session.constants.js","sourceRoot":"","sources":["../../../src/system/constants/upload.session.constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,sBAAsB,GAAG;IAClC,cAAc,EAAE,SAAS;IACzB,gBAAgB,EAAE,WAAW;IAC7B,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,eAAe,EAAE,UAAU;IAG3B,WAAW,EAAE,QAAQ;IAErB,cAAc,EAAE,WAAW;IAG3B,aAAa,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;IAEtC,oBAAoB,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI;IAEvC,SAAS,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;IAE1B,SAAS,EAAE,EAAE;IAEb,OAAO,EAAE,EAAE,GAAG,EAAE;IAEhB,WAAW,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;IAGzB,aAAa,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;IAE9B,SAAS,EAAE,KAAK;IAEhB,iBAAiB,EAAE,GAAG;IAEtB,sBAAsB,EAAE,GAAG;IAE3B,WAAW,EAAE,IAAI;IAEjB,iBAAiB,EAAE,GAAG;CACzB,CAAC"}
|
|
@@ -26,12 +26,12 @@ let UploadController = class UploadController {
|
|
|
26
26
|
async uploadFiles(files) {
|
|
27
27
|
const res = [];
|
|
28
28
|
for (const file of files) {
|
|
29
|
-
const url = await this.uploadService.
|
|
29
|
+
const { url, size, contentType } = await this.uploadService.uploadWithStats({
|
|
30
30
|
buffer: file.buffer,
|
|
31
31
|
originalname: file.originalname,
|
|
32
32
|
mimetype: file.mimetype,
|
|
33
33
|
}, { acl: 'public-read' });
|
|
34
|
-
res.push({ url, originalname: file.originalname, size
|
|
34
|
+
res.push({ url, originalname: file.originalname, size, contentType });
|
|
35
35
|
}
|
|
36
36
|
return res;
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/upload.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAkF;AAClF,+DAA+D;AAC/D,+DAA2D;AASpD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAKzB,YAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAyB9C,AAAN,KAAK,CAAC,UAAU,CAAkB,KAAK;QACnC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAQO,KAAK,CAAC,WAAW,CAAC,KAAK;QAC3B,MAAM,GAAG,GAAG,EAAE,CAAC;QAEf,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"upload.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/upload.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAkF;AAClF,+DAA+D;AAC/D,+DAA2D;AASpD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAKzB,YAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAyB9C,AAAN,KAAK,CAAC,UAAU,CAAkB,KAAK;QACnC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAQO,KAAK,CAAC,WAAW,CAAC,KAAK;QAC3B,MAAM,GAAG,GAAG,EAAE,CAAC;QAEf,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,eAAe,CACvE;gBACI,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACnB,EACR,EAAE,GAAG,EAAE,aAAa,EAAE,CACzB,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;QAC1E,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ,CAAA;AAzDY,4CAAgB;AA8BnB;IATL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IACzB,IAAA,wBAAe,EACZ,IAAA,sCAAmB,EAAC;QAChB,MAAM,EAAE;YACJ,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,IAAI,GAAG,IAAI;YAC5E,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC,IAAI,EAAE;SAC1D;KACJ,CAAC,CACL;IACiB,WAAA,IAAA,sBAAa,GAAE,CAAA;;;;kDAEhC;2BAhCQ,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAM0B,8BAAa;GALvC,gBAAgB,CAyD5B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.DirectUploadFileDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class DirectUploadFileDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DirectUploadFileDto = DirectUploadFileDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.MaxLength)(512),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DirectUploadFileDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsInt)(),
|
|
28
|
+
(0, class_validator_1.Min)(1),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], DirectUploadFileDto.prototype, "size", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], DirectUploadFileDto.prototype, "content_type", void 0);
|
|
37
|
+
//# sourceMappingURL=direct.upload.file.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct.upload.file.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/direct.upload.file.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA8E;AAQ9E,MAAa,mBAAmB;CAmB/B;AAnBD,kDAmBC;AAbG;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;iDACF;AAMb;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;iDACM;AAMb;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACQ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.DirectUploadInitiateDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const direct_upload_file_dto_1 = require("./direct.upload.file.dto");
|
|
16
|
+
class DirectUploadInitiateDto {
|
|
17
|
+
}
|
|
18
|
+
exports.DirectUploadInitiateDto = DirectUploadInitiateDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsArray)(),
|
|
22
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
23
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
24
|
+
(0, class_transformer_1.Type)(() => direct_upload_file_dto_1.DirectUploadFileDto),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], DirectUploadInitiateDto.prototype, "files", void 0);
|
|
27
|
+
//# sourceMappingURL=direct.upload.initiate.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct.upload.initiate.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/direct.upload.initiate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAwE;AACxE,qEAA+D;AAQ/D,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AADG;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4CAAmB,CAAC;;sDACH"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.DirectUploadOptionsDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class DirectUploadOptionsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DirectUploadOptionsDto = DirectUploadOptionsDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsEnum)(['public', 'private']),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], DirectUploadOptionsDto.prototype, "visibility", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DirectUploadOptionsDto.prototype, "folder", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], DirectUploadOptionsDto.prototype, "engine", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsArray)(),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], DirectUploadOptionsDto.prototype, "allowed_content_types", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsInt)(),
|
|
46
|
+
(0, class_validator_1.Min)(1),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], DirectUploadOptionsDto.prototype, "max_file_size", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], DirectUploadOptionsDto.prototype, "metadata", void 0);
|
|
54
|
+
//# sourceMappingURL=direct.upload.options.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct.upload.options.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/direct.upload.options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAoF;AAOpF,MAAa,sBAAsB;CAoClC;AApCD,wDAoCC;AA/BG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;;0DACI;AAMlC;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACK;AAMhB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACK;AAMhB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;qEACuB;AAOjC;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;6DACgB;AAKvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;wDACqB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.DirectUploadPartsDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class DirectUploadPartsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DirectUploadPartsDto = DirectUploadPartsDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
22
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
23
|
+
(0, class_validator_1.Min)(1, { each: true }),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], DirectUploadPartsDto.prototype, "part_numbers", void 0);
|
|
26
|
+
//# sourceMappingURL=direct.upload.parts.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct.upload.parts.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/direct.upload.parts.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAoE;AAQpE,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AADG;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,qBAAG,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0DACA"}
|
|
@@ -8,6 +8,10 @@ export * from './code.fix.script.attributes.dto';
|
|
|
8
8
|
export * from './comment.attributes.dto';
|
|
9
9
|
export * from './credential.ip.attributes.dto';
|
|
10
10
|
export * from './data.log.attributes.dto';
|
|
11
|
+
export * from './direct.upload.file.dto';
|
|
12
|
+
export * from './direct.upload.initiate.dto';
|
|
13
|
+
export * from './direct.upload.options.dto';
|
|
14
|
+
export * from './direct.upload.parts.dto';
|
|
11
15
|
export * from './document.attributes.dto';
|
|
12
16
|
export * from './executable.script.attributes.dto';
|
|
13
17
|
export * from './executable.script.payload.dto';
|
|
@@ -32,5 +36,6 @@ export * from './scheduled.event.attributes.dto';
|
|
|
32
36
|
export * from './sms.message.attributes.dto';
|
|
33
37
|
export * from './sms.template.attributes.dto';
|
|
34
38
|
export * from './storage.upload.options.dto';
|
|
39
|
+
export * from './upload.session.attributes.dto';
|
|
35
40
|
export * from './user.preference.creation.dto';
|
|
36
41
|
export * from './validation.options.dto';
|
|
@@ -24,6 +24,10 @@ __exportStar(require("./code.fix.script.attributes.dto"), exports);
|
|
|
24
24
|
__exportStar(require("./comment.attributes.dto"), exports);
|
|
25
25
|
__exportStar(require("./credential.ip.attributes.dto"), exports);
|
|
26
26
|
__exportStar(require("./data.log.attributes.dto"), exports);
|
|
27
|
+
__exportStar(require("./direct.upload.file.dto"), exports);
|
|
28
|
+
__exportStar(require("./direct.upload.initiate.dto"), exports);
|
|
29
|
+
__exportStar(require("./direct.upload.options.dto"), exports);
|
|
30
|
+
__exportStar(require("./direct.upload.parts.dto"), exports);
|
|
27
31
|
__exportStar(require("./document.attributes.dto"), exports);
|
|
28
32
|
__exportStar(require("./executable.script.attributes.dto"), exports);
|
|
29
33
|
__exportStar(require("./executable.script.payload.dto"), exports);
|
|
@@ -48,6 +52,7 @@ __exportStar(require("./scheduled.event.attributes.dto"), exports);
|
|
|
48
52
|
__exportStar(require("./sms.message.attributes.dto"), exports);
|
|
49
53
|
__exportStar(require("./sms.template.attributes.dto"), exports);
|
|
50
54
|
__exportStar(require("./storage.upload.options.dto"), exports);
|
|
55
|
+
__exportStar(require("./upload.session.attributes.dto"), exports);
|
|
51
56
|
__exportStar(require("./user.preference.creation.dto"), exports);
|
|
52
57
|
__exportStar(require("./validation.options.dto"), exports);
|
|
53
58
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,0DAAwC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,qEAAmD;AAAA,kEAAgD;AAAA,oDAAkC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,wDAAsC;AAAA,iEAA+C;AAAA,sEAAoD;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,uEAAqD;AAAA,uDAAqC;AAAA,mEAAiD;AAAA,gEAA8C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,+DAA6C;AAAA,iEAA+C;AAAA,2DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,0DAAwC;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,2DAAyC;AAAA,iEAA+C;AAAA,4DAA0C;AAAA,2DAAyC;AAAA,+DAA6C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,qEAAmD;AAAA,kEAAgD;AAAA,oDAAkC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,kEAAgD;AAAA,wDAAsC;AAAA,iEAA+C;AAAA,sEAAoD;AAAA,0DAAwC;AAAA,6DAA2C;AAAA,uEAAqD;AAAA,uDAAqC;AAAA,mEAAiD;AAAA,gEAA8C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,+DAA6C;AAAA,kEAAgD;AAAA,iEAA+C;AAAA,2DAAwC"}
|
|
@@ -30,4 +30,8 @@ __decorate([
|
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], LocalFileS3UploadDto.prototype, "remoteFile", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LocalFileS3UploadDto.prototype, "engine", void 0);
|
|
33
37
|
//# sourceMappingURL=local.file.s3.upload.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.file.s3.upload.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/local.file.s3.upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyD;AAQzD,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"local.file.s3.upload.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/local.file.s3.upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyD;AAQzD,MAAa,oBAAoB;CAmChC;AAnCD,oDAmCC;AA7BG;IADC,IAAA,4BAAU,GAAE;;wDACM;AAOnB;IADC,IAAA,4BAAU,GAAE;;oDACE;AAOf;IADC,IAAA,4BAAU,GAAE;;wDACO;AAOpB;IADC,IAAA,4BAAU,GAAE;;wDACO;AAOpB;IADC,IAAA,4BAAU,GAAE;;oDACG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material.view.attributes.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/material.view.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,4FAAuF;AASvF,MAAa,yBAA0B,SAAQ,2CAAmB;
|
|
1
|
+
{"version":3,"file":"material.view.attributes.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/material.view.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,4FAAuF;AASvF,MAAa,yBAA0B,SAAQ,2CAAmB;CAMjE;AAND,8DAMC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadSessionAttributesDto = void 0;
|
|
4
|
+
class UploadSessionAttributesDto {
|
|
5
|
+
}
|
|
6
|
+
exports.UploadSessionAttributesDto = UploadSessionAttributesDto;
|
|
7
|
+
//# sourceMappingURL=upload.session.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.session.attributes.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/upload.session.attributes.dto.ts"],"names":[],"mappings":";;;AAKA,MAAa,0BAA0B;CAStC;AATD,gEASC"}
|
|
@@ -57,10 +57,12 @@ export * from './security.rule.entity';
|
|
|
57
57
|
export * from './service.entity';
|
|
58
58
|
export * from './sms.message.entity';
|
|
59
59
|
export * from './sms.template.entity';
|
|
60
|
+
export * from './source.version.entity';
|
|
60
61
|
export * from './system.script.entity';
|
|
61
62
|
export * from './ui.action.entity';
|
|
62
63
|
export * from './ui.action.permission.entity';
|
|
63
64
|
export * from './ui.action.role.entity';
|
|
65
|
+
export * from './upload.session.entity';
|
|
64
66
|
export * from './user.group.entity';
|
|
65
67
|
export * from './user.group.member.entity';
|
|
66
68
|
export * from './user.group.permission.entity';
|
|
@@ -73,10 +73,12 @@ __exportStar(require("./security.rule.entity"), exports);
|
|
|
73
73
|
__exportStar(require("./service.entity"), exports);
|
|
74
74
|
__exportStar(require("./sms.message.entity"), exports);
|
|
75
75
|
__exportStar(require("./sms.template.entity"), exports);
|
|
76
|
+
__exportStar(require("./source.version.entity"), exports);
|
|
76
77
|
__exportStar(require("./system.script.entity"), exports);
|
|
77
78
|
__exportStar(require("./ui.action.entity"), exports);
|
|
78
79
|
__exportStar(require("./ui.action.permission.entity"), exports);
|
|
79
80
|
__exportStar(require("./ui.action.role.entity"), exports);
|
|
81
|
+
__exportStar(require("./upload.session.entity"), exports);
|
|
80
82
|
__exportStar(require("./user.group.entity"), exports);
|
|
81
83
|
__exportStar(require("./user.group.member.entity"), exports);
|
|
82
84
|
__exportStar(require("./user.group.permission.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,2DAAyC;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,mDAAiC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,wDAAsC;AAAA,uDAAqC;AAAA,6DAA2C;AAAA,uDAAqC;AAAA,gDAA8B;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,gDAA8B;AAAA,qDAAmC;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,iDAA+B;AAAA,8DAA4C;AAAA,sDAAoC;AAAA,kDAAgC;AAAA,uDAAqC;AAAA,yDAAuC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,2DAAyC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,qDAAmC;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,6DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AAAA,8DAA4C;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,2DAAyC;AAAA,6DAA2C;AAAA,kDAAgC;AAAA,mDAAiC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,wDAAsC;AAAA,uDAAqC;AAAA,6DAA2C;AAAA,uDAAqC;AAAA,gDAA8B;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,gDAA8B;AAAA,qDAAmC;AAAA,6DAA2C;AAAA,wDAAsC;AAAA,iDAA+B;AAAA,8DAA4C;AAAA,sDAAoC;AAAA,kDAAgC;AAAA,uDAAqC;AAAA,yDAAuC;AAAA,2DAAyC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,kDAAgC;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,2DAAyC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,mDAAiC;AAAA,uDAAqC;AAAA,wDAAsC;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,qDAAmC;AAAA,gEAA8C;AAAA,0DAAwC;AAAA,0DAAwC;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,iEAA+C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,6DAA0C"}
|
|
@@ -36,6 +36,10 @@ __decorate([
|
|
|
36
36
|
(0, typeorm_1.Column)(),
|
|
37
37
|
__metadata("design:type", Date)
|
|
38
38
|
], MaterialViewEntity.prototype, "last_run_time", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
|
+
__metadata("design:type", Date)
|
|
42
|
+
], MaterialViewEntity.prototype, "last_viewed_at", void 0);
|
|
39
43
|
__decorate([
|
|
40
44
|
(0, typeorm_1.Column)('jsonb'),
|
|
41
45
|
__metadata("design:type", material_view_attributes_dto_1.MaterialViewAttributesDto)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"material.view.entity.js","sourceRoot":"","sources":["../../../src/system/entities/material.view.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,wEAAoE;AACpE,uFAAiF;AAU1E,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAY;
|
|
1
|
+
{"version":3,"file":"material.view.entity.js","sourceRoot":"","sources":["../../../src/system/entities/material.view.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,wEAAoE;AACpE,uFAAiF;AAU1E,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAY;CAyBnD,CAAA;AAzBY,gDAAkB;AAE3B;IADC,IAAA,gBAAM,GAAE;;sDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;kDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;kDACM;AAGf;IADC,IAAA,gBAAM,GAAE;8BACY,IAAI;+DAAC;AAI1B;IADC,IAAA,gBAAM,GAAE;8BACM,IAAI;yDAAC;AAIpB;IADC,IAAA,gBAAM,GAAE;8BACO,IAAI;0DAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,wDAAyB;sDAAC;6BAtB7B,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,kBAAkB,CAyB9B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.SourceVersionEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_entity_1 = require("../../common/libraries/common.entity");
|
|
15
|
+
let SourceVersionEntity = class SourceVersionEntity extends common_entity_1.CommonEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.SourceVersionEntity = SourceVersionEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SourceVersionEntity.prototype, "source_type", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], SourceVersionEntity.prototype, "source_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], SourceVersionEntity.prototype, "version", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SourceVersionEntity.prototype, "name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)('jsonb'),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], SourceVersionEntity.prototype, "value", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)('jsonb'),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], SourceVersionEntity.prototype, "attributes", void 0);
|
|
42
|
+
exports.SourceVersionEntity = SourceVersionEntity = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)('sys_source_versions')
|
|
44
|
+
], SourceVersionEntity);
|
|
45
|
+
//# sourceMappingURL=source.version.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.version.entity.js","sourceRoot":"","sources":["../../../src/system/entities/source.version.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,wEAAoE;AAa7D,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAY;CAoBpD,CAAA;AApBY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;sDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;oDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;;kDACL;AAGX;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;;uDACA;8BAjBP,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,mBAAmB,CAoB/B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommonEntity } from '../../common/libraries/common.entity';
|
|
2
|
+
import { UploadSessionAttributesDto } from '../dtos/upload.session.attributes.dto';
|
|
3
|
+
export declare class UploadSessionEntity extends CommonEntity {
|
|
4
|
+
engine: string;
|
|
5
|
+
bucket: string;
|
|
6
|
+
object_key: string;
|
|
7
|
+
provider_upload_id: string;
|
|
8
|
+
mode: string;
|
|
9
|
+
original_name: string;
|
|
10
|
+
content_type: string;
|
|
11
|
+
size: number;
|
|
12
|
+
part_size: number;
|
|
13
|
+
part_count: number;
|
|
14
|
+
visibility: string;
|
|
15
|
+
status: string;
|
|
16
|
+
url: string;
|
|
17
|
+
expires_at: Date;
|
|
18
|
+
completed_at: Date;
|
|
19
|
+
attributes: UploadSessionAttributesDto;
|
|
20
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.UploadSessionEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_entity_1 = require("../../common/libraries/common.entity");
|
|
15
|
+
const upload_session_attributes_dto_1 = require("../dtos/upload.session.attributes.dto");
|
|
16
|
+
let UploadSessionEntity = class UploadSessionEntity extends common_entity_1.CommonEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.UploadSessionEntity = UploadSessionEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UploadSessionEntity.prototype, "engine", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UploadSessionEntity.prototype, "bucket", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], UploadSessionEntity.prototype, "object_key", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], UploadSessionEntity.prototype, "provider_upload_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], UploadSessionEntity.prototype, "mode", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], UploadSessionEntity.prototype, "original_name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], UploadSessionEntity.prototype, "content_type", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)('bigint'),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], UploadSessionEntity.prototype, "size", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)('bigint'),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], UploadSessionEntity.prototype, "part_size", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)(),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], UploadSessionEntity.prototype, "part_count", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], UploadSessionEntity.prototype, "visibility", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UploadSessionEntity.prototype, "status", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], UploadSessionEntity.prototype, "url", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)(),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], UploadSessionEntity.prototype, "expires_at", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)(),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], UploadSessionEntity.prototype, "completed_at", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)('jsonb'),
|
|
81
|
+
__metadata("design:type", upload_session_attributes_dto_1.UploadSessionAttributesDto)
|
|
82
|
+
], UploadSessionEntity.prototype, "attributes", void 0);
|
|
83
|
+
exports.UploadSessionEntity = UploadSessionEntity = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)('sys_upload_sessions')
|
|
85
|
+
], UploadSessionEntity);
|
|
86
|
+
//# sourceMappingURL=upload.session.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.session.entity.js","sourceRoot":"","sources":["../../../src/system/entities/upload.session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,wEAAoE;AACpE,yFAAmF;AAW5E,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAY;CAiDpD,CAAA;AAjDY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,GAAE;;mDACM;AAGf;IADC,IAAA,gBAAM,GAAE;;mDACM;AAGf;IADC,IAAA,gBAAM,GAAE;;uDACU;AAInB;IADC,IAAA,gBAAM,GAAE;;+DACkB;AAG3B;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;0DACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;yDACY;AAGrB;IADC,IAAA,gBAAM,EAAC,QAAQ,CAAC;;iDACJ;AAGb;IADC,IAAA,gBAAM,EAAC,QAAQ,CAAC;;sDACC;AAGlB;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;mDACM;AAGf;IADC,IAAA,gBAAM,GAAE;;gDACG;AAGZ;IADC,IAAA,gBAAM,GAAE;8BACG,IAAI;uDAAC;AAGjB;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;yDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,0DAA0B;uDAAC;8BAhD9B,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,mBAAmB,CAiD/B"}
|