@servicelabsco/slabs-access-manager 3.0.3 → 3.0.4
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 +90 -0
- package/dist/access/controllers/developer.entity.controller.d.ts +8 -0
- package/dist/access/controllers/developer.entity.controller.js +11 -0
- package/dist/access/controllers/developer.entity.controller.js.map +1 -1
- package/dist/access/controllers/event.trigger.controller.d.ts +3 -2
- package/dist/access/controllers/event.trigger.controller.js +5 -3
- package/dist/access/controllers/event.trigger.controller.js.map +1 -1
- package/dist/access/dtos/developer.entity.get.dto.d.ts +2 -0
- package/dist/access/dtos/developer.entity.get.dto.js +13 -0
- package/dist/access/dtos/developer.entity.get.dto.js.map +1 -1
- package/dist/access/dtos/developer.entity.meta.dto.d.ts +55 -0
- package/dist/access/dtos/developer.entity.meta.dto.js +19 -0
- package/dist/access/dtos/developer.entity.meta.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +1 -1
- package/dist/access/dtos/index.js +1 -1
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/update.developer.business.dto.d.ts +1 -0
- package/dist/access/dtos/update.developer.business.dto.js +8 -0
- package/dist/access/dtos/update.developer.business.dto.js.map +1 -1
- package/dist/access/entities/access.business.entity.d.ts +1 -0
- package/dist/access/entities/access.business.entity.js +4 -0
- package/dist/access/entities/access.business.entity.js.map +1 -1
- package/dist/access/entities/event.trigger.entity.d.ts +1 -0
- package/dist/access/entities/event.trigger.entity.js +4 -0
- package/dist/access/entities/event.trigger.entity.js.map +1 -1
- package/dist/access/es6.classes.d.ts +9 -10
- package/dist/access/es6.classes.js +9 -9
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/index.d.ts +1 -0
- package/dist/access/jobs/index.js +1 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/overriding.script.job.d.ts +1 -2
- package/dist/access/jobs/overriding.script.job.js +5 -9
- package/dist/access/jobs/overriding.script.job.js.map +1 -1
- package/dist/access/jobs/overriding.system.script.job.d.ts +8 -0
- package/dist/access/jobs/overriding.system.script.job.js +40 -0
- package/dist/access/jobs/overriding.system.script.job.js.map +1 -0
- package/dist/access/libraries/business.url.d.ts +3 -0
- package/dist/access/libraries/business.url.js +13 -0
- package/dist/access/libraries/business.url.js.map +1 -0
- package/dist/access/libraries/describe.developer.entity.d.ts +19 -0
- package/dist/access/libraries/describe.developer.entity.js +143 -0
- package/dist/access/libraries/describe.developer.entity.js.map +1 -0
- package/dist/access/libraries/index.d.ts +3 -2
- package/dist/access/libraries/index.js +3 -2
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/process.bulk.upload.item.list.js +1 -5
- package/dist/access/libraries/process.bulk.upload.item.list.js.map +1 -1
- package/dist/access/libraries/process.bulk.upload.list.js +1 -5
- package/dist/access/libraries/process.bulk.upload.list.js.map +1 -1
- package/dist/access/libraries/process.common.list.d.ts +2 -0
- package/dist/access/libraries/process.common.list.js +14 -1
- package/dist/access/libraries/process.common.list.js.map +1 -1
- package/dist/access/libraries/process.developer.entity.d.ts +11 -0
- package/dist/access/libraries/process.developer.entity.js +15 -4
- package/dist/access/libraries/process.developer.entity.js.map +1 -1
- package/dist/access/libraries/process.event.trigger.data.d.ts +5 -1
- package/dist/access/libraries/process.event.trigger.data.js +16 -1
- package/dist/access/libraries/process.event.trigger.data.js.map +1 -1
- package/dist/access/libraries/{send.slack.webhook.notification..js → send.slack.webhook.notification.js} +3 -3
- package/dist/access/libraries/send.slack.webhook.notification.js.map +1 -0
- package/dist/access/libraries/update.developer.business.js +3 -0
- package/dist/access/libraries/update.developer.business.js.map +1 -1
- package/dist/access/services/access.business.service.d.ts +2 -3
- package/dist/access/services/access.business.service.js +6 -6
- package/dist/access/services/access.business.service.js.map +1 -1
- package/dist/access/services/gmail.integration.service.d.ts +2 -3
- package/dist/access/services/gmail.integration.service.js +2 -4
- package/dist/access/services/gmail.integration.service.js.map +1 -1
- package/dist/access/services/index.d.ts +0 -2
- package/dist/access/services/index.js +0 -2
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/notification.service.js +1 -1
- package/dist/access/services/notification.service.js.map +1 -1
- package/dist/access/services/overriding.script.service.d.ts +2 -0
- package/dist/access/services/overriding.script.service.js +14 -5
- package/dist/access/services/overriding.script.service.js.map +1 -1
- package/dist/accessUtility/controllers/index.d.ts +3 -0
- package/dist/accessUtility/controllers/index.js +3 -0
- package/dist/accessUtility/controllers/index.js.map +1 -1
- package/dist/accessUtility/controllers/remote.file.controller.d.ts +18 -0
- package/dist/accessUtility/controllers/remote.file.controller.js +83 -0
- package/dist/accessUtility/controllers/remote.file.controller.js.map +1 -0
- package/dist/accessUtility/controllers/remote.file.path.controller.d.ts +40 -0
- package/dist/accessUtility/controllers/remote.file.path.controller.js +216 -0
- package/dist/accessUtility/controllers/remote.file.path.controller.js.map +1 -0
- package/dist/accessUtility/controllers/remote.file.rule.controller.d.ts +36 -0
- package/dist/accessUtility/controllers/remote.file.rule.controller.js +81 -0
- package/dist/accessUtility/controllers/remote.file.rule.controller.js.map +1 -0
- package/dist/accessUtility/dtos/add.remote.file.path.dto.d.ts +12 -0
- package/dist/accessUtility/dtos/add.remote.file.path.dto.js +72 -0
- package/dist/accessUtility/dtos/add.remote.file.path.dto.js.map +1 -0
- package/dist/accessUtility/dtos/add.remote.file.rule.dto.d.ts +9 -0
- package/dist/accessUtility/dtos/add.remote.file.rule.dto.js +54 -0
- package/dist/accessUtility/dtos/add.remote.file.rule.dto.js.map +1 -0
- package/dist/accessUtility/dtos/bulk.upload.column.match.score.dto.d.ts +6 -0
- package/dist/accessUtility/dtos/bulk.upload.column.match.score.dto.js +4 -1
- package/dist/accessUtility/dtos/bulk.upload.column.match.score.dto.js.map +1 -1
- package/dist/accessUtility/dtos/check.remote.file.path.dto.d.ts +5 -0
- package/dist/accessUtility/dtos/check.remote.file.path.dto.js +37 -0
- package/dist/accessUtility/dtos/check.remote.file.path.dto.js.map +1 -0
- package/dist/accessUtility/dtos/index.d.ts +13 -1
- package/dist/accessUtility/dtos/index.js +13 -1
- package/dist/accessUtility/dtos/index.js.map +1 -1
- package/dist/accessUtility/dtos/poll.remote.file.paths.payload.dto.d.ts +4 -0
- package/dist/accessUtility/dtos/poll.remote.file.paths.payload.dto.js +7 -0
- package/dist/accessUtility/dtos/poll.remote.file.paths.payload.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.attributes.dto.d.ts +10 -0
- package/dist/accessUtility/dtos/remote.file.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/remote.file.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.list.filter.dto.d.ts +5 -0
- package/dist/accessUtility/dtos/remote.file.list.filter.dto.js +33 -0
- package/dist/accessUtility/dtos/remote.file.list.filter.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.path.attributes.dto.d.ts +6 -0
- package/dist/accessUtility/dtos/remote.file.path.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/remote.file.path.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.path.list.filter.dto.d.ts +4 -0
- package/dist/accessUtility/dtos/{lambda.zip.dto.js → remote.file.path.list.filter.dto.js} +10 -11
- package/dist/accessUtility/dtos/remote.file.path.list.filter.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.path.setup.dto.d.ts +20 -0
- package/dist/accessUtility/dtos/remote.file.path.setup.dto.js +10 -0
- package/dist/accessUtility/dtos/remote.file.path.setup.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.path.setup.query.dto.d.ts +4 -0
- package/dist/{access/dtos/add.business.app.integration.dto.js → accessUtility/dtos/remote.file.path.setup.query.dto.js} +10 -10
- package/dist/accessUtility/dtos/remote.file.path.setup.query.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.path.verify.dto.d.ts +20 -0
- package/dist/accessUtility/dtos/remote.file.path.verify.dto.js +10 -0
- package/dist/accessUtility/dtos/remote.file.path.verify.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.rule.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/remote.file.rule.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/remote.file.rule.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/remote.file.rule.list.filter.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/remote.file.rule.list.filter.dto.js +8 -0
- package/dist/accessUtility/dtos/remote.file.rule.list.filter.dto.js.map +1 -0
- package/dist/accessUtility/entities/index.d.ts +3 -0
- package/dist/accessUtility/entities/index.js +3 -0
- package/dist/accessUtility/entities/index.js.map +1 -1
- package/dist/accessUtility/entities/remote.file.entity.d.ts +25 -0
- package/dist/accessUtility/entities/remote.file.entity.js +100 -0
- package/dist/accessUtility/entities/remote.file.entity.js.map +1 -0
- package/dist/accessUtility/entities/remote.file.path.entity.d.ts +18 -0
- package/dist/accessUtility/entities/remote.file.path.entity.js +76 -0
- package/dist/accessUtility/entities/remote.file.path.entity.js.map +1 -0
- package/dist/accessUtility/entities/remote.file.rule.entity.d.ts +15 -0
- package/dist/accessUtility/entities/remote.file.rule.entity.js +65 -0
- package/dist/accessUtility/entities/remote.file.rule.entity.js.map +1 -0
- package/dist/accessUtility/enums/index.d.ts +1 -0
- package/dist/accessUtility/enums/index.js +1 -0
- package/dist/accessUtility/enums/index.js.map +1 -1
- package/dist/accessUtility/enums/remote.file.provider.enum.d.ts +6 -0
- package/dist/accessUtility/enums/remote.file.provider.enum.js +11 -0
- package/dist/accessUtility/enums/remote.file.provider.enum.js.map +1 -0
- package/dist/accessUtility/es6.classes.d.ts +39 -14
- package/dist/accessUtility/es6.classes.js +80 -6
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/index.d.ts +0 -1
- package/dist/accessUtility/index.js +0 -1
- package/dist/accessUtility/index.js.map +1 -1
- package/dist/accessUtility/jobs/bulk.upload.job.d.ts +1 -4
- package/dist/accessUtility/jobs/bulk.upload.job.js +1 -12
- package/dist/accessUtility/jobs/bulk.upload.job.js.map +1 -1
- package/dist/accessUtility/jobs/evaluate.remote.file.rule.job.d.ts +11 -0
- package/dist/accessUtility/jobs/evaluate.remote.file.rule.job.js +37 -0
- package/dist/accessUtility/jobs/evaluate.remote.file.rule.job.js.map +1 -0
- package/dist/accessUtility/jobs/index.d.ts +3 -1
- package/dist/accessUtility/jobs/index.js +3 -1
- package/dist/accessUtility/jobs/index.js.map +1 -1
- package/dist/accessUtility/jobs/poll.remote.file.paths.job.d.ts +19 -0
- package/dist/accessUtility/jobs/poll.remote.file.paths.job.js +65 -0
- package/dist/accessUtility/jobs/poll.remote.file.paths.job.js.map +1 -0
- package/dist/accessUtility/jobs/remote.file.job.d.ts +9 -0
- package/dist/accessUtility/jobs/remote.file.job.js +38 -0
- package/dist/accessUtility/jobs/remote.file.job.js.map +1 -0
- package/dist/accessUtility/libraries/analyse.bulk.upload.js +1 -1
- package/dist/accessUtility/libraries/analyse.bulk.upload.js.map +1 -1
- package/dist/accessUtility/libraries/check.remote.file.path.access.d.ts +30 -0
- package/dist/accessUtility/libraries/check.remote.file.path.access.js +47 -0
- package/dist/accessUtility/libraries/check.remote.file.path.access.js.map +1 -0
- package/dist/accessUtility/libraries/evaluate.remote.file.rule.d.ts +13 -0
- package/dist/accessUtility/libraries/evaluate.remote.file.rule.js +76 -0
- package/dist/accessUtility/libraries/evaluate.remote.file.rule.js.map +1 -0
- package/dist/accessUtility/libraries/google.drive.remote.file.source.d.ts +17 -0
- package/dist/accessUtility/libraries/google.drive.remote.file.source.js +95 -0
- package/dist/accessUtility/libraries/google.drive.remote.file.source.js.map +1 -0
- package/dist/accessUtility/libraries/index.d.ts +13 -1
- package/dist/accessUtility/libraries/index.js +13 -1
- package/dist/accessUtility/libraries/index.js.map +1 -1
- package/dist/accessUtility/libraries/poll.remote.file.path.d.ts +12 -0
- package/dist/accessUtility/libraries/poll.remote.file.path.js +93 -0
- package/dist/accessUtility/libraries/poll.remote.file.path.js.map +1 -0
- package/dist/accessUtility/libraries/process.bulk.definition.list.js +1 -5
- package/dist/accessUtility/libraries/process.bulk.definition.list.js.map +1 -1
- package/dist/accessUtility/libraries/process.bulk.upload.column.list.js +1 -5
- package/dist/accessUtility/libraries/process.bulk.upload.column.list.js.map +1 -1
- package/dist/accessUtility/libraries/process.bulk.upload.definition.change.js +3 -2
- package/dist/accessUtility/libraries/process.bulk.upload.definition.change.js.map +1 -1
- package/dist/accessUtility/libraries/process.bulk.upload.type.list.js +1 -5
- package/dist/accessUtility/libraries/process.bulk.upload.type.list.js.map +1 -1
- package/dist/accessUtility/libraries/process.remote.file.list.d.ts +17 -0
- package/dist/accessUtility/libraries/process.remote.file.list.js +34 -0
- package/dist/accessUtility/libraries/process.remote.file.list.js.map +1 -0
- package/dist/accessUtility/libraries/process.remote.file.path.data.d.ts +18 -0
- package/dist/accessUtility/libraries/process.remote.file.path.data.js +71 -0
- package/dist/accessUtility/libraries/process.remote.file.path.data.js.map +1 -0
- package/dist/accessUtility/libraries/process.remote.file.path.list.d.ts +17 -0
- package/dist/accessUtility/libraries/process.remote.file.path.list.js +31 -0
- package/dist/accessUtility/libraries/process.remote.file.path.list.js.map +1 -0
- package/dist/accessUtility/libraries/process.remote.file.rule.data.d.ts +15 -0
- package/dist/accessUtility/libraries/process.remote.file.rule.data.js +60 -0
- package/dist/accessUtility/libraries/process.remote.file.rule.data.js.map +1 -0
- package/dist/accessUtility/libraries/process.remote.file.rule.list.d.ts +17 -0
- package/dist/accessUtility/libraries/process.remote.file.rule.list.js +29 -0
- package/dist/accessUtility/libraries/process.remote.file.rule.list.js.map +1 -0
- package/dist/accessUtility/libraries/remote.file.path.setup.d.ts +16 -0
- package/dist/accessUtility/libraries/remote.file.path.setup.js +83 -0
- package/dist/accessUtility/libraries/remote.file.path.setup.js.map +1 -0
- package/dist/accessUtility/libraries/remote.file.sources.d.ts +36 -0
- package/dist/accessUtility/libraries/remote.file.sources.js +22 -0
- package/dist/accessUtility/libraries/remote.file.sources.js.map +1 -0
- package/dist/accessUtility/libraries/storage.remote.file.source.d.ts +13 -0
- package/dist/accessUtility/libraries/storage.remote.file.source.js +42 -0
- package/dist/accessUtility/libraries/storage.remote.file.source.js.map +1 -0
- package/dist/accessUtility/libraries/verify.remote.file.path.d.ts +21 -0
- package/dist/accessUtility/libraries/verify.remote.file.path.js +154 -0
- package/dist/accessUtility/libraries/verify.remote.file.path.js.map +1 -0
- package/dist/accessUtility/services/aws.identity.service.d.ts +15 -0
- package/dist/accessUtility/services/aws.identity.service.js +56 -0
- package/dist/accessUtility/services/aws.identity.service.js.map +1 -0
- package/dist/accessUtility/services/index.d.ts +1 -0
- package/dist/accessUtility/services/index.js +1 -0
- package/dist/accessUtility/services/index.js.map +1 -1
- package/dist/accessUtility/services/lambda.service.d.ts +2 -3
- package/dist/accessUtility/services/lambda.service.js +2 -4
- package/dist/accessUtility/services/lambda.service.js.map +1 -1
- package/dist/accessUtility/services/match.bulk.upload.columns.service.d.ts +4 -0
- package/dist/accessUtility/services/match.bulk.upload.columns.service.js +28 -4
- package/dist/accessUtility/services/match.bulk.upload.columns.service.js.map +1 -1
- package/dist/accessUtility/subscribers/index.d.ts +3 -0
- package/dist/accessUtility/subscribers/index.js +3 -0
- package/dist/accessUtility/subscribers/index.js.map +1 -1
- package/dist/accessUtility/subscribers/remote.file.path.subscriber.d.ts +8 -0
- package/dist/accessUtility/subscribers/remote.file.path.subscriber.js +31 -0
- package/dist/accessUtility/subscribers/remote.file.path.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/remote.file.rule.subscriber.d.ts +8 -0
- package/dist/accessUtility/subscribers/remote.file.rule.subscriber.js +31 -0
- package/dist/accessUtility/subscribers/remote.file.rule.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/remote.file.subscriber.d.ts +8 -0
- package/dist/{access/services/request.log.service.js → accessUtility/subscribers/remote.file.subscriber.js} +18 -17
- package/dist/accessUtility/subscribers/remote.file.subscriber.js.map +1 -0
- package/dist/config/source.hash.d.ts +3 -0
- package/dist/config/source.hash.js +3 -0
- package/dist/config/source.hash.js.map +1 -1
- package/dist/development/dtos/material.view.catalog.attributes.dto.d.ts +0 -3
- package/dist/development/dtos/material.view.catalog.attributes.dto.js +0 -4
- package/dist/development/dtos/material.view.catalog.attributes.dto.js.map +1 -1
- package/dist/migrations/1790533017292-CreateRemoteFilePathTable.d.ts +5 -0
- package/dist/migrations/1790533017292-CreateRemoteFilePathTable.js +31 -0
- package/dist/migrations/1790533017292-CreateRemoteFilePathTable.js.map +1 -0
- package/dist/migrations/1790533017293-CreateRemoteFileRuleTable.d.ts +5 -0
- package/dist/migrations/1790533017293-CreateRemoteFileRuleTable.js +26 -0
- package/dist/migrations/1790533017293-CreateRemoteFileRuleTable.js.map +1 -0
- package/dist/migrations/1790533017294-CreateRemoteFileTable.d.ts +5 -0
- package/dist/migrations/1790533017294-CreateRemoteFileTable.js +33 -0
- package/dist/migrations/1790533017294-CreateRemoteFileTable.js.map +1 -0
- package/dist/migrations/1793722190500-EnsureUrlColumnBzBusinessDetailsTable.d.ts +5 -0
- package/dist/migrations/1793722190500-EnsureUrlColumnBzBusinessDetailsTable.js +13 -0
- package/dist/migrations/1793722190500-EnsureUrlColumnBzBusinessDetailsTable.js.map +1 -0
- package/dist/migrations/1793821797214-AddVersionColumnBzEventTriggersTable.d.ts +5 -0
- package/dist/migrations/1793821797214-AddVersionColumnBzEventTriggersTable.js +15 -0
- package/dist/migrations/1793821797214-AddVersionColumnBzEventTriggersTable.js.map +1 -0
- package/package.json +3 -2
- package/dist/access/dtos/add.business.app.integration.dto.d.ts +0 -4
- package/dist/access/dtos/add.business.app.integration.dto.js.map +0 -1
- package/dist/access/libraries/process.business.script.data.d.ts +0 -12
- package/dist/access/libraries/process.business.script.data.js +0 -36
- package/dist/access/libraries/process.business.script.data.js.map +0 -1
- package/dist/access/libraries/send.slack.webhook.notification..js.map +0 -1
- package/dist/access/services/app.integration.service.d.ts +0 -9
- package/dist/access/services/app.integration.service.js +0 -63
- package/dist/access/services/app.integration.service.js.map +0 -1
- package/dist/access/services/request.log.service.d.ts +0 -7
- package/dist/access/services/request.log.service.js.map +0 -1
- package/dist/accessUtility/accessUtility.module.d.ts +0 -2
- package/dist/accessUtility/accessUtility.module.js +0 -27
- package/dist/accessUtility/accessUtility.module.js.map +0 -1
- package/dist/accessUtility/dtos/lambda.zip.dto.d.ts +0 -4
- package/dist/accessUtility/dtos/lambda.zip.dto.js.map +0 -1
- package/dist/accessUtility/jobs/bulk.upload.column.match.job.d.ts +0 -13
- package/dist/accessUtility/jobs/bulk.upload.column.match.job.js +0 -61
- package/dist/accessUtility/jobs/bulk.upload.column.match.job.js.map +0 -1
- package/dist/accessUtility/libraries/process.report.listing.d.ts +0 -23
- package/dist/accessUtility/libraries/process.report.listing.js +0 -93
- package/dist/accessUtility/libraries/process.report.listing.js.map +0 -1
- package/dist/config/constants.d.ts +0 -10
- package/dist/config/constants.js +0 -12
- package/dist/config/constants.js.map +0 -1
- package/dist/config/redis.config.d.ts +0 -5
- package/dist/config/redis.config.js +0 -9
- package/dist/config/redis.config.js.map +0 -1
- /package/dist/access/libraries/{send.slack.webhook.notification..d.ts → send.slack.webhook.notification.d.ts} +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RemoteFilePathController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const typeorm_1 = require("typeorm");
|
|
19
|
+
const business_param_dto_1 = require("../../access/dtos/business.param.dto");
|
|
20
|
+
const process_db_find_1 = require("../../access/libraries/process.db.find");
|
|
21
|
+
const access_business_service_1 = require("../../access/services/access.business.service");
|
|
22
|
+
const developer_mode_access_service_1 = require("../../access/services/developer.mode.access.service");
|
|
23
|
+
const listing_service_1 = require("../../access/services/listing.service");
|
|
24
|
+
const add_remote_file_path_dto_1 = require("../dtos/add.remote.file.path.dto");
|
|
25
|
+
const check_remote_file_path_dto_1 = require("../dtos/check.remote.file.path.dto");
|
|
26
|
+
const remote_file_path_list_filter_dto_1 = require("../dtos/remote.file.path.list.filter.dto");
|
|
27
|
+
const remote_file_path_setup_query_dto_1 = require("../dtos/remote.file.path.setup.query.dto");
|
|
28
|
+
const remote_file_path_entity_1 = require("../entities/remote.file.path.entity");
|
|
29
|
+
const remote_file_provider_enum_1 = require("../enums/remote.file.provider.enum");
|
|
30
|
+
const poll_remote_file_paths_job_1 = require("../jobs/poll.remote.file.paths.job");
|
|
31
|
+
const check_remote_file_path_access_1 = require("../libraries/check.remote.file.path.access");
|
|
32
|
+
const process_remote_file_path_data_1 = require("../libraries/process.remote.file.path.data");
|
|
33
|
+
const process_remote_file_path_list_1 = require("../libraries/process.remote.file.path.list");
|
|
34
|
+
const remote_file_path_setup_1 = require("../libraries/remote.file.path.setup");
|
|
35
|
+
const remote_file_sources_1 = require("../libraries/remote.file.sources");
|
|
36
|
+
const verify_remote_file_path_1 = require("../libraries/verify.remote.file.path");
|
|
37
|
+
const aws_identity_service_1 = require("../services/aws.identity.service");
|
|
38
|
+
const google_drive_service_1 = require("../services/google.drive.service");
|
|
39
|
+
let RemoteFilePathController = class RemoteFilePathController {
|
|
40
|
+
constructor(accessBusinessService, developerModeAccessService, sqlService, listingService, storageService, googleDriveService, pollRemoteFilePathsJob, propertyService, awsIdentityService) {
|
|
41
|
+
this.accessBusinessService = accessBusinessService;
|
|
42
|
+
this.developerModeAccessService = developerModeAccessService;
|
|
43
|
+
this.sqlService = sqlService;
|
|
44
|
+
this.listingService = listingService;
|
|
45
|
+
this.storageService = storageService;
|
|
46
|
+
this.googleDriveService = googleDriveService;
|
|
47
|
+
this.pollRemoteFilePathsJob = pollRemoteFilePathsJob;
|
|
48
|
+
this.propertyService = propertyService;
|
|
49
|
+
this.awsIdentityService = awsIdentityService;
|
|
50
|
+
}
|
|
51
|
+
async search(body) {
|
|
52
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
53
|
+
return new process_remote_file_path_list_1.ProcessRemoteFilePathList(business, this.listingService).process(body);
|
|
54
|
+
}
|
|
55
|
+
async find(body) {
|
|
56
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
57
|
+
const config = {
|
|
58
|
+
primaryCondition: `a.deleted_at is null and a.business_id = ${Number(business.id)}`,
|
|
59
|
+
searchCompareKeys: ['a.name', 'a.identifier', 'a.path', 'a.bucket'],
|
|
60
|
+
tableName: 'bz_remote_file_paths a',
|
|
61
|
+
columns: ['a.*'],
|
|
62
|
+
order: 'a.name asc',
|
|
63
|
+
idsCompareKey: 'a.id',
|
|
64
|
+
...body,
|
|
65
|
+
};
|
|
66
|
+
return new process_db_find_1.ProcessDbFind(this.sqlService).process(config);
|
|
67
|
+
}
|
|
68
|
+
async check(body) {
|
|
69
|
+
await this.developerModeAccessService.validate();
|
|
70
|
+
return new check_remote_file_path_access_1.CheckRemoteFilePathAccess(this.sources()).process(body);
|
|
71
|
+
}
|
|
72
|
+
async setupAll() {
|
|
73
|
+
await this.accessBusinessService.validateAccess();
|
|
74
|
+
return this.setup().all();
|
|
75
|
+
}
|
|
76
|
+
async setupOne(provider, query) {
|
|
77
|
+
await this.accessBusinessService.validateAccess();
|
|
78
|
+
if (!remote_file_provider_enum_1.SUPPORTED_REMOTE_FILE_PROVIDERS.includes(provider)) {
|
|
79
|
+
throw new nestjs_utility_services_1.OperationException(`Remote file provider ${provider} is not supported`);
|
|
80
|
+
}
|
|
81
|
+
return this.setup().s3(query);
|
|
82
|
+
}
|
|
83
|
+
async verify(body) {
|
|
84
|
+
await this.developerModeAccessService.validate();
|
|
85
|
+
return this.verifier().process(body);
|
|
86
|
+
}
|
|
87
|
+
async verifyById(params) {
|
|
88
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
89
|
+
const path = await this.findPath(params.id, business.id);
|
|
90
|
+
return this.verifier().process(path);
|
|
91
|
+
}
|
|
92
|
+
async show(params) {
|
|
93
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
94
|
+
return this.findPath(params.id, business.id);
|
|
95
|
+
}
|
|
96
|
+
async checkById(params) {
|
|
97
|
+
const business = await this.developerModeAccessService.validate();
|
|
98
|
+
const path = await this.findPath(params.id, business.id);
|
|
99
|
+
return new check_remote_file_path_access_1.CheckRemoteFilePathAccess(this.sources()).process(path);
|
|
100
|
+
}
|
|
101
|
+
async create(body) {
|
|
102
|
+
const business = await this.developerModeAccessService.validate();
|
|
103
|
+
return new process_remote_file_path_data_1.ProcessRemoteFilePathData(business, this.sources()).process(body);
|
|
104
|
+
}
|
|
105
|
+
async poll(params) {
|
|
106
|
+
const business = await this.developerModeAccessService.validate();
|
|
107
|
+
const path = await this.findPath(params.id, business.id);
|
|
108
|
+
return this.pollRemoteFilePathsJob.dispatch({ path_id: path.id });
|
|
109
|
+
}
|
|
110
|
+
setup() {
|
|
111
|
+
return new remote_file_path_setup_1.RemoteFilePathSetup(this.propertyService, this.awsIdentityService);
|
|
112
|
+
}
|
|
113
|
+
verifier() {
|
|
114
|
+
return new verify_remote_file_path_1.VerifyRemoteFilePath(this.sources(), this.setup(), this.storageService);
|
|
115
|
+
}
|
|
116
|
+
sources() {
|
|
117
|
+
return new remote_file_sources_1.RemoteFileSources(this.storageService, this.googleDriveService);
|
|
118
|
+
}
|
|
119
|
+
async findPath(id, businessId) {
|
|
120
|
+
const path = await remote_file_path_entity_1.RemoteFilePathEntity.findOne({ where: { id, business_id: businessId, deleted_at: (0, typeorm_1.IsNull)() } });
|
|
121
|
+
if (!path)
|
|
122
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
123
|
+
return path;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
exports.RemoteFilePathController = RemoteFilePathController;
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, common_1.Post)('search'),
|
|
129
|
+
__param(0, (0, common_1.Body)()),
|
|
130
|
+
__metadata("design:type", Function),
|
|
131
|
+
__metadata("design:paramtypes", [remote_file_path_list_filter_dto_1.RemoteFilePathListFilterDto]),
|
|
132
|
+
__metadata("design:returntype", Promise)
|
|
133
|
+
], RemoteFilePathController.prototype, "search", null);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, common_1.Post)('find'),
|
|
136
|
+
__param(0, (0, common_1.Body)()),
|
|
137
|
+
__metadata("design:type", Function),
|
|
138
|
+
__metadata("design:paramtypes", [nestjs_utility_services_1.StringSearchDto]),
|
|
139
|
+
__metadata("design:returntype", Promise)
|
|
140
|
+
], RemoteFilePathController.prototype, "find", null);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, common_1.Post)('check'),
|
|
143
|
+
__param(0, (0, common_1.Body)()),
|
|
144
|
+
__metadata("design:type", Function),
|
|
145
|
+
__metadata("design:paramtypes", [check_remote_file_path_dto_1.CheckRemoteFilePathDto]),
|
|
146
|
+
__metadata("design:returntype", Promise)
|
|
147
|
+
], RemoteFilePathController.prototype, "check", null);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, common_1.Get)('setup'),
|
|
150
|
+
__metadata("design:type", Function),
|
|
151
|
+
__metadata("design:paramtypes", []),
|
|
152
|
+
__metadata("design:returntype", Promise)
|
|
153
|
+
], RemoteFilePathController.prototype, "setupAll", null);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, common_1.Get)('setup/:provider'),
|
|
156
|
+
__param(0, (0, common_1.Param)('provider')),
|
|
157
|
+
__param(1, (0, common_1.Query)()),
|
|
158
|
+
__metadata("design:type", Function),
|
|
159
|
+
__metadata("design:paramtypes", [String, remote_file_path_setup_query_dto_1.RemoteFilePathSetupQueryDto]),
|
|
160
|
+
__metadata("design:returntype", Promise)
|
|
161
|
+
], RemoteFilePathController.prototype, "setupOne", null);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, common_1.Post)('verify'),
|
|
164
|
+
__param(0, (0, common_1.Body)()),
|
|
165
|
+
__metadata("design:type", Function),
|
|
166
|
+
__metadata("design:paramtypes", [check_remote_file_path_dto_1.CheckRemoteFilePathDto]),
|
|
167
|
+
__metadata("design:returntype", Promise)
|
|
168
|
+
], RemoteFilePathController.prototype, "verify", null);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, common_1.Post)(':id/verify'),
|
|
171
|
+
__param(0, (0, common_1.Param)()),
|
|
172
|
+
__metadata("design:type", Function),
|
|
173
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
174
|
+
__metadata("design:returntype", Promise)
|
|
175
|
+
], RemoteFilePathController.prototype, "verifyById", null);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, common_1.Get)(':id'),
|
|
178
|
+
__param(0, (0, common_1.Param)()),
|
|
179
|
+
__metadata("design:type", Function),
|
|
180
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
181
|
+
__metadata("design:returntype", Promise)
|
|
182
|
+
], RemoteFilePathController.prototype, "show", null);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, common_1.Post)(':id/check'),
|
|
185
|
+
__param(0, (0, common_1.Param)()),
|
|
186
|
+
__metadata("design:type", Function),
|
|
187
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
188
|
+
__metadata("design:returntype", Promise)
|
|
189
|
+
], RemoteFilePathController.prototype, "checkById", null);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, common_1.Post)(),
|
|
192
|
+
__param(0, (0, common_1.Body)()),
|
|
193
|
+
__metadata("design:type", Function),
|
|
194
|
+
__metadata("design:paramtypes", [add_remote_file_path_dto_1.AddRemoteFilePathDto]),
|
|
195
|
+
__metadata("design:returntype", Promise)
|
|
196
|
+
], RemoteFilePathController.prototype, "create", null);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, common_1.Post)(':id/poll'),
|
|
199
|
+
__param(0, (0, common_1.Param)()),
|
|
200
|
+
__metadata("design:type", Function),
|
|
201
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
202
|
+
__metadata("design:returntype", Promise)
|
|
203
|
+
], RemoteFilePathController.prototype, "poll", null);
|
|
204
|
+
exports.RemoteFilePathController = RemoteFilePathController = __decorate([
|
|
205
|
+
(0, common_1.Controller)('api/b/remote-file-path'),
|
|
206
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
207
|
+
developer_mode_access_service_1.DeveloperModeAccessService,
|
|
208
|
+
nestjs_utility_services_1.SqlService,
|
|
209
|
+
listing_service_1.ListingService,
|
|
210
|
+
nestjs_utility_services_1.StorageService,
|
|
211
|
+
google_drive_service_1.GoogleDriveService,
|
|
212
|
+
poll_remote_file_paths_job_1.PollRemoteFilePathsJob,
|
|
213
|
+
nestjs_utility_services_1.PropertyService,
|
|
214
|
+
aws_identity_service_1.AwsIdentityService])
|
|
215
|
+
], RemoteFilePathController);
|
|
216
|
+
//# sourceMappingURL=remote.file.path.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote.file.path.controller.js","sourceRoot":"","sources":["../../../src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
|
1
|
+
import { BusinessParamDto } from '../../access/dtos/business.param.dto';
|
|
2
|
+
import { AccessBusinessService } from '../../access/services/access.business.service';
|
|
3
|
+
import { DeveloperModeAccessService } from '../../access/services/developer.mode.access.service';
|
|
4
|
+
import { ListingService } from '../../access/services/listing.service';
|
|
5
|
+
import { AddRemoteFileRuleDto } from '../dtos/add.remote.file.rule.dto';
|
|
6
|
+
import { RemoteFileRuleListFilterDto } from '../dtos/remote.file.rule.list.filter.dto';
|
|
7
|
+
import { RemoteFileRuleEntity } from '../entities/remote.file.rule.entity';
|
|
8
|
+
export declare class RemoteFileRuleController {
|
|
9
|
+
private readonly accessBusinessService;
|
|
10
|
+
private readonly developerModeAccessService;
|
|
11
|
+
private readonly listingService;
|
|
12
|
+
constructor(accessBusinessService: AccessBusinessService, developerModeAccessService: DeveloperModeAccessService, listingService: ListingService);
|
|
13
|
+
search(body: RemoteFileRuleListFilterDto): Promise<import("../..").ListResponseDto>;
|
|
14
|
+
show(params: BusinessParamDto): Promise<{
|
|
15
|
+
script: string;
|
|
16
|
+
business_id: number;
|
|
17
|
+
script_id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
priority: number;
|
|
21
|
+
active: boolean;
|
|
22
|
+
filter_condition: any;
|
|
23
|
+
attributes: import("..").RemoteFileRuleAttributesDto;
|
|
24
|
+
business: import("../..").AccessBusinessEntity;
|
|
25
|
+
id: number;
|
|
26
|
+
uuid: string;
|
|
27
|
+
created_by: number;
|
|
28
|
+
updated_by: number;
|
|
29
|
+
deleted_at: Date;
|
|
30
|
+
updated_at: Date;
|
|
31
|
+
created_at: Date;
|
|
32
|
+
creator: import("@servicelabsco/nestjs-utility-services").CreatorEntity;
|
|
33
|
+
updator: import("@servicelabsco/nestjs-utility-services").CreatorEntity;
|
|
34
|
+
}>;
|
|
35
|
+
create(body: AddRemoteFileRuleDto): Promise<RemoteFileRuleEntity>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RemoteFileRuleController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const typeorm_1 = require("typeorm");
|
|
19
|
+
const business_param_dto_1 = require("../../access/dtos/business.param.dto");
|
|
20
|
+
const access_business_service_1 = require("../../access/services/access.business.service");
|
|
21
|
+
const developer_mode_access_service_1 = require("../../access/services/developer.mode.access.service");
|
|
22
|
+
const listing_service_1 = require("../../access/services/listing.service");
|
|
23
|
+
const add_remote_file_rule_dto_1 = require("../dtos/add.remote.file.rule.dto");
|
|
24
|
+
const remote_file_rule_list_filter_dto_1 = require("../dtos/remote.file.rule.list.filter.dto");
|
|
25
|
+
const remote_file_rule_entity_1 = require("../entities/remote.file.rule.entity");
|
|
26
|
+
const process_remote_file_rule_data_1 = require("../libraries/process.remote.file.rule.data");
|
|
27
|
+
const process_remote_file_rule_list_1 = require("../libraries/process.remote.file.rule.list");
|
|
28
|
+
let RemoteFileRuleController = class RemoteFileRuleController {
|
|
29
|
+
constructor(accessBusinessService, developerModeAccessService, listingService) {
|
|
30
|
+
this.accessBusinessService = accessBusinessService;
|
|
31
|
+
this.developerModeAccessService = developerModeAccessService;
|
|
32
|
+
this.listingService = listingService;
|
|
33
|
+
}
|
|
34
|
+
async search(body) {
|
|
35
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
36
|
+
return new process_remote_file_rule_list_1.ProcessRemoteFileRuleList(business, this.listingService).process(body);
|
|
37
|
+
}
|
|
38
|
+
async show(params) {
|
|
39
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
40
|
+
const rule = await remote_file_rule_entity_1.RemoteFileRuleEntity.findOne({
|
|
41
|
+
where: { id: params.id, business_id: business.id, deleted_at: (0, typeorm_1.IsNull)() },
|
|
42
|
+
relations: ['script'],
|
|
43
|
+
});
|
|
44
|
+
if (!rule)
|
|
45
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
46
|
+
return { ...rule, script: rule.script?.script ?? null };
|
|
47
|
+
}
|
|
48
|
+
async create(body) {
|
|
49
|
+
const business = await this.developerModeAccessService.validate();
|
|
50
|
+
return new process_remote_file_rule_data_1.ProcessRemoteFileRuleData(business).process(body);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.RemoteFileRuleController = RemoteFileRuleController;
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, common_1.Post)('search'),
|
|
56
|
+
__param(0, (0, common_1.Body)()),
|
|
57
|
+
__metadata("design:type", Function),
|
|
58
|
+
__metadata("design:paramtypes", [remote_file_rule_list_filter_dto_1.RemoteFileRuleListFilterDto]),
|
|
59
|
+
__metadata("design:returntype", Promise)
|
|
60
|
+
], RemoteFileRuleController.prototype, "search", null);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, common_1.Get)(':id'),
|
|
63
|
+
__param(0, (0, common_1.Param)()),
|
|
64
|
+
__metadata("design:type", Function),
|
|
65
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
66
|
+
__metadata("design:returntype", Promise)
|
|
67
|
+
], RemoteFileRuleController.prototype, "show", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, common_1.Post)(),
|
|
70
|
+
__param(0, (0, common_1.Body)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [add_remote_file_rule_dto_1.AddRemoteFileRuleDto]),
|
|
73
|
+
__metadata("design:returntype", Promise)
|
|
74
|
+
], RemoteFileRuleController.prototype, "create", null);
|
|
75
|
+
exports.RemoteFileRuleController = RemoteFileRuleController = __decorate([
|
|
76
|
+
(0, common_1.Controller)('api/b/remote-file-rule'),
|
|
77
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
78
|
+
developer_mode_access_service_1.DeveloperModeAccessService,
|
|
79
|
+
listing_service_1.ListingService])
|
|
80
|
+
], RemoteFileRuleController);
|
|
81
|
+
//# sourceMappingURL=remote.file.rule.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote.file.rule.controller.js","sourceRoot":"","sources":["../../../src/accessUtility/controllers/remote.file.rule.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyE;AACzE,qCAAiC;AACjC,6EAAwE;AACxE,2FAAsF;AACtF,uGAAiG;AACjG,2EAAuE;AACvE,+EAAwE;AACxE,+FAAuF;AACvF,iFAA2E;AAC3E,8FAAuF;AACvF,8FAAuF;AAOhF,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YACqB,qBAA4C,EAC5C,0BAAsD,EACtD,cAA8B;QAF9B,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,+BAA0B,GAA1B,0BAA0B,CAA4B;QACtD,mBAAc,GAAd,cAAc,CAAgB;IAChD,CAAC;IAGE,AAAN,KAAK,CAAC,MAAM,CAAS,IA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AA,IAAA,aAAI,GAAE,CAAA;;qCAAO,+CAAoB;;sDAI9C;mCAtCQ,wBAAwB;IADpC,IAAA,mBAAU,EAAC,wBAAwB,CAAC;qCAGW,+CAAqB;QAChB,0DAA0B;QACtC,gCAAc;GAJ1C,wBAAwB,CAuCpC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IdPayloadDto } from './id.payload.dto';
|
|
2
|
+
import { RemoteFilePathAttributesDto } from './remote.file.path.attributes.dto';
|
|
3
|
+
export declare class AddRemoteFilePathDto extends IdPayloadDto {
|
|
4
|
+
name: string;
|
|
5
|
+
identifier: string;
|
|
6
|
+
provider: string;
|
|
7
|
+
bucket: string;
|
|
8
|
+
path: string;
|
|
9
|
+
poll_interval_seconds?: number;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
attributes?: RemoteFilePathAttributesDto;
|
|
12
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.AddRemoteFilePathDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const remote_file_provider_enum_1 = require("../enums/remote.file.provider.enum");
|
|
16
|
+
const id_payload_dto_1 = require("./id.payload.dto");
|
|
17
|
+
const remote_file_path_attributes_dto_1 = require("./remote.file.path.attributes.dto");
|
|
18
|
+
class AddRemoteFilePathDto extends id_payload_dto_1.IdPayloadDto {
|
|
19
|
+
}
|
|
20
|
+
exports.AddRemoteFilePathDto = AddRemoteFilePathDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], AddRemoteFilePathDto.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.ValidateIf)((payload) => !payload.id),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AddRemoteFilePathDto.prototype, "identifier", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsIn)(remote_file_provider_enum_1.SUPPORTED_REMOTE_FILE_PROVIDERS, { message: 'provider must be one of: $constraint1' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], AddRemoteFilePathDto.prototype, "provider", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AddRemoteFilePathDto.prototype, "bucket", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.ValidateIf)((payload) => payload.provider !== remote_file_provider_enum_1.RemoteFileProviderEnum.GOOGLE_DRIVE),
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AddRemoteFilePathDto.prototype, "path", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
56
|
+
(0, class_validator_1.IsInt)(),
|
|
57
|
+
(0, class_validator_1.Min)(60),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], AddRemoteFilePathDto.prototype, "poll_interval_seconds", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], AddRemoteFilePathDto.prototype, "active", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsObject)(),
|
|
70
|
+
__metadata("design:type", remote_file_path_attributes_dto_1.RemoteFilePathAttributesDto)
|
|
71
|
+
], AddRemoteFilePathDto.prototype, "attributes", void 0);
|
|
72
|
+
//# sourceMappingURL=add.remote.file.path.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.remote.file.path.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/add.remote.file.path.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAsH;AACtH,kFAA6G;AAC7G,qDAAgD;AAChD,uFAAgF;AAQhF,MAAa,oBAAqB,SAAQ,6BAAY;CA+CrD;AA/CD,oDA+CC;AA3CG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACE;AAOb;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,EAAC,CAAC,OAA6B,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACQ;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,sBAAI,EAAC,2DAA+B,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;;sDAC3E;AAMjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACI;AAOf;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,EAAC,CAAC,OAA6B,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,KAAK,kDAAsB,CAAC,YAAY,CAAC;IACvG,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACE;AAQb;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,EAAE,CAAC;;mEACuB;AAK/B;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACK;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;8BACE,6DAA2B;wDAAC"}
|
|
@@ -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.AddRemoteFileRuleDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const id_payload_dto_1 = require("./id.payload.dto");
|
|
16
|
+
class AddRemoteFileRuleDto extends id_payload_dto_1.IdPayloadDto {
|
|
17
|
+
}
|
|
18
|
+
exports.AddRemoteFileRuleDto = AddRemoteFileRuleDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AddRemoteFileRuleDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], AddRemoteFileRuleDto.prototype, "description", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
34
|
+
(0, class_validator_1.IsInt)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], AddRemoteFileRuleDto.prototype, "priority", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], AddRemoteFileRuleDto.prototype, "filter_condition", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], AddRemoteFileRuleDto.prototype, "script", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], AddRemoteFileRuleDto.prototype, "active", void 0);
|
|
54
|
+
//# sourceMappingURL=add.remote.file.rule.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.remote.file.rule.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/add.remote.file.rule.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAqF;AACrF,qDAAgD;AAQhD,MAAa,oBAAqB,SAAQ,6BAAY;CAgCrD;AAhCD,oDAgCC;AA5BG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACE;AAKb;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACU;AAMrB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;;sDACS;AAKjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8DACS;AAMtB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACI;AAKf;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACK"}
|
|
@@ -12,8 +12,14 @@ export declare class BulkUploadColumnMatchTypeDto {
|
|
|
12
12
|
missing_mandatory: string[];
|
|
13
13
|
extra: string[];
|
|
14
14
|
}
|
|
15
|
+
export declare class BulkUploadColumnMatchScoredForDto {
|
|
16
|
+
definition_id: number;
|
|
17
|
+
file_url: string;
|
|
18
|
+
scored_at: string;
|
|
19
|
+
}
|
|
15
20
|
export declare class BulkUploadColumnMatchScoreDto {
|
|
16
21
|
ok: boolean;
|
|
17
22
|
overall: number;
|
|
18
23
|
by_type: Record<string, BulkUploadColumnMatchTypeDto>;
|
|
24
|
+
scored_for?: BulkUploadColumnMatchScoredForDto;
|
|
19
25
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BulkUploadColumnMatchScoreDto = exports.BulkUploadColumnMatchTypeDto = exports.BulkUploadColumnMatchDefinedDto = void 0;
|
|
3
|
+
exports.BulkUploadColumnMatchScoreDto = exports.BulkUploadColumnMatchScoredForDto = exports.BulkUploadColumnMatchTypeDto = exports.BulkUploadColumnMatchDefinedDto = void 0;
|
|
4
4
|
class BulkUploadColumnMatchDefinedDto {
|
|
5
5
|
}
|
|
6
6
|
exports.BulkUploadColumnMatchDefinedDto = BulkUploadColumnMatchDefinedDto;
|
|
7
7
|
class BulkUploadColumnMatchTypeDto {
|
|
8
8
|
}
|
|
9
9
|
exports.BulkUploadColumnMatchTypeDto = BulkUploadColumnMatchTypeDto;
|
|
10
|
+
class BulkUploadColumnMatchScoredForDto {
|
|
11
|
+
}
|
|
12
|
+
exports.BulkUploadColumnMatchScoredForDto = BulkUploadColumnMatchScoredForDto;
|
|
10
13
|
class BulkUploadColumnMatchScoreDto {
|
|
11
14
|
}
|
|
12
15
|
exports.BulkUploadColumnMatchScoreDto = BulkUploadColumnMatchScoreDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.upload.column.match.score.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/bulk.upload.column.match.score.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAOD,MAAa,4BAA4B;CAqBxC;AArBD,oEAqBC;AAKD,MAAa,
|
|
1
|
+
{"version":3,"file":"bulk.upload.column.match.score.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/bulk.upload.column.match.score.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAOD,MAAa,4BAA4B;CAqBxC;AArBD,oEAqBC;AAKD,MAAa,iCAAiC;CAS7C;AATD,8EASC;AAKD,MAAa,6BAA6B;CAYzC;AAZD,sEAYC"}
|
|
@@ -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.CheckRemoteFilePathDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const remote_file_provider_enum_1 = require("../enums/remote.file.provider.enum");
|
|
16
|
+
class CheckRemoteFilePathDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CheckRemoteFilePathDto = CheckRemoteFilePathDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsIn)(remote_file_provider_enum_1.SUPPORTED_REMOTE_FILE_PROVIDERS, { message: 'provider must be one of: $constraint1' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CheckRemoteFilePathDto.prototype, "provider", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CheckRemoteFilePathDto.prototype, "bucket", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.ValidateIf)((payload) => payload.provider !== remote_file_provider_enum_1.RemoteFileProviderEnum.GOOGLE_DRIVE),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CheckRemoteFilePathDto.prototype, "path", void 0);
|
|
37
|
+
//# sourceMappingURL=check.remote.file.path.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.remote.file.path.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/check.remote.file.path.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAyE;AACzE,kFAA6G;AAO7G,MAAa,sBAAsB;CAiBlC;AAjBD,wDAiBC;AAdG;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,sBAAI,EAAC,2DAA+B,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;;wDAC3E;AAMjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACI;AAOf;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,EAAC,CAAC,OAA+B,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,KAAK,kDAAsB,CAAC,YAAY,CAAC;IACzG,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACE"}
|
|
@@ -4,6 +4,8 @@ export * from './add.bulk.upload.type.dto';
|
|
|
4
4
|
export * from './add.business.policy.dto';
|
|
5
5
|
export * from './add.item.unit.dto';
|
|
6
6
|
export * from './add.notification.recipient.dto';
|
|
7
|
+
export * from './add.remote.file.path.dto';
|
|
8
|
+
export * from './add.remote.file.rule.dto';
|
|
7
9
|
export * from './bulk.definition.attributes.dto';
|
|
8
10
|
export * from './bulk.definition.list.filter.dto';
|
|
9
11
|
export * from './bulk.definition.load.attributes.dto';
|
|
@@ -22,6 +24,7 @@ export * from './business.policy.attributes.dto';
|
|
|
22
24
|
export * from './business.report.list.filter.dto';
|
|
23
25
|
export * from './business.violation.approval.dto';
|
|
24
26
|
export * from './business.violation.attributes.dto';
|
|
27
|
+
export * from './check.remote.file.path.dto';
|
|
25
28
|
export * from './create.ui.policy.definition.dto';
|
|
26
29
|
export * from './currency.attributes.dto';
|
|
27
30
|
export * from './data.access.attributes.dto';
|
|
@@ -42,7 +45,6 @@ export * from './integration.file.format.attributes.dto';
|
|
|
42
45
|
export * from './item.unit.attributes.dto';
|
|
43
46
|
export * from './item.unit.list.filter.dto';
|
|
44
47
|
export * from './item.violation.attributes.dto';
|
|
45
|
-
export * from './lambda.zip.dto';
|
|
46
48
|
export * from './listing.model.attributes.dto';
|
|
47
49
|
export * from './match.bulk.upload.file.dto';
|
|
48
50
|
export * from './notification.attributes.dto';
|
|
@@ -50,6 +52,16 @@ export * from './notification.recipient.attributes.dto';
|
|
|
50
52
|
export * from './pdf.document.attributes.dto';
|
|
51
53
|
export * from './pdf.document.data.dto';
|
|
52
54
|
export * from './pdf.log.attributes.dto';
|
|
55
|
+
export * from './poll.remote.file.paths.payload.dto';
|
|
56
|
+
export * from './remote.file.attributes.dto';
|
|
57
|
+
export * from './remote.file.list.filter.dto';
|
|
58
|
+
export * from './remote.file.path.attributes.dto';
|
|
59
|
+
export * from './remote.file.path.list.filter.dto';
|
|
60
|
+
export * from './remote.file.path.setup.dto';
|
|
61
|
+
export * from './remote.file.path.setup.query.dto';
|
|
62
|
+
export * from './remote.file.path.verify.dto';
|
|
63
|
+
export * from './remote.file.rule.attributes.dto';
|
|
64
|
+
export * from './remote.file.rule.list.filter.dto';
|
|
53
65
|
export * from './slack.notification.attributes.dto';
|
|
54
66
|
export * from './sms.notification.attributes.dto';
|
|
55
67
|
export * from './tag.assignment.attributes.dto';
|