@owox/backend 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/create-migration-template.js +8 -0
- package/dist/public/assets/index-CISA6IwH.css +1 -0
- package/dist/public/assets/index-xNsUEA9g.js +550 -0
- package/dist/public/index.html +2 -2
- package/dist/{app.module.js → src/app.module.js} +2 -5
- package/dist/src/common/schemas/google-service-account-key.schema.js +33 -0
- package/dist/src/common/zod/zod-transformer.js +14 -0
- package/dist/src/config/data-source-options.config.js +49 -0
- package/dist/{config → src/config}/express-static.config.js +7 -3
- package/dist/src/config/get-sqlite-database-path.js +36 -0
- package/dist/src/config/migrations.config.js +30 -0
- package/dist/src/data-marts/connector-types/connector-definition.js +11 -0
- package/dist/src/data-marts/connector-types/connector-fields-schema.js +18 -0
- package/dist/src/data-marts/connector-types/connector-specification.js +20 -0
- package/dist/src/data-marts/controllers/connector.controller.js +79 -0
- package/dist/src/data-marts/controllers/data-destination.controller.js +124 -0
- package/dist/{data-marts → src/data-marts}/controllers/data-mart.controller.js +20 -2
- package/dist/src/data-marts/controllers/report.controller.js +159 -0
- package/dist/src/data-marts/controllers/spec/connector.api.js +20 -0
- package/dist/src/data-marts/controllers/spec/data-destination.api.js +28 -0
- package/dist/{data-marts → src/data-marts}/controllers/spec/data-mart.api.js +4 -0
- package/dist/src/data-marts/controllers/spec/report.api.js +55 -0
- package/dist/src/data-marts/data-destination-types/data-destination-config.guards.js +13 -0
- package/dist/src/data-marts/data-destination-types/data-destination-config.type.js +7 -0
- package/dist/src/data-marts/data-destination-types/data-destination-credentials.guards.js +13 -0
- package/dist/src/data-marts/data-destination-types/data-destination-credentials.type.js +9 -0
- package/dist/src/data-marts/data-destination-types/data-destination-facades.js +10 -0
- package/dist/src/data-marts/data-destination-types/data-destination-providers.js +40 -0
- package/dist/src/data-marts/data-destination-types/enums/data-destination-type.enum.js +17 -0
- package/dist/src/data-marts/data-destination-types/facades/data-destination-access-validator.facade.js +40 -0
- package/dist/{data-marts/data-storage-types/facades/data-storage-title.facade.js → src/data-marts/data-destination-types/facades/data-destination-credentials-validator.facade.js} +13 -13
- package/dist/{data-marts/data-storage-types/athena/services/athena-title.generator.js → src/data-marts/data-destination-types/google-sheets/adapters/google-sheets-api-adapter.factory.js} +9 -12
- package/dist/src/data-marts/data-destination-types/google-sheets/adapters/google-sheets-api.adapter.js +104 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/schemas/google-sheets-config.schema.js +11 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/schemas/google-sheets-credentials.schema.js +13 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/services/google-sheets-access-validator.js +59 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/services/google-sheets-credentials-validator.js +45 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/services/google-sheets-report-writer.js +158 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/services/sheet-formatters/sheet-header-formatter.js +54 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/services/sheet-formatters/sheet-metadata-formatter.js +60 -0
- package/dist/src/data-marts/data-destination-types/interfaces/data-destination-access-validator.interface.js +17 -0
- package/dist/src/data-marts/data-destination-types/interfaces/data-destination-credentials-validator.interface.js +15 -0
- package/dist/src/data-marts/data-destination-types/interfaces/data-destination-report-writer.interface.js +3 -0
- package/dist/src/data-marts/data-marts.module.js +127 -0
- package/dist/{data-marts/data-storage-types/bigquery/services/bigquery-title.generator.js → src/data-marts/data-storage-types/athena/adapters/athena-api-adapter.factory.js} +9 -12
- package/dist/src/data-marts/data-storage-types/athena/adapters/athena-api.adapter.js +91 -0
- package/dist/src/data-marts/data-storage-types/athena/adapters/s3-api-adapter.factory.js +21 -0
- package/dist/src/data-marts/data-storage-types/athena/adapters/s3-api.adapter.js +53 -0
- package/dist/src/data-marts/data-storage-types/athena/services/athena-report-reader.service.js +158 -0
- package/dist/src/data-marts/data-storage-types/bigquery/adapters/bigquery-api-adapter.factory.js +21 -0
- package/dist/src/data-marts/data-storage-types/bigquery/adapters/bigquery-api.adapter.js +36 -0
- package/dist/src/data-marts/data-storage-types/bigquery/schemas/bigquery-credentials.schema.js +6 -0
- package/dist/src/data-marts/data-storage-types/bigquery/services/bigquery-report-reader.service.js +132 -0
- package/dist/src/data-marts/data-storage-types/data-storage-config.guards.js +13 -0
- package/dist/src/data-marts/data-storage-types/data-storage-credentials.guards.js +13 -0
- package/dist/src/data-marts/data-storage-types/data-storage-credentials.type.js +3 -0
- package/dist/src/data-marts/data-storage-types/data-storage-facades.js +6 -0
- package/dist/src/data-marts/data-storage-types/data-storage-providers.js +32 -0
- package/dist/src/data-marts/data-storage-types/interfaces/data-storage-report-reader.interface.js +3 -0
- package/dist/src/data-marts/dto/domain/create-data-destination.command.js +17 -0
- package/dist/src/data-marts/dto/domain/create-report.command.js +21 -0
- package/dist/src/data-marts/dto/domain/data-destination.dto.js +23 -0
- package/dist/src/data-marts/dto/domain/delete-data-destination.command.js +13 -0
- package/dist/src/data-marts/dto/domain/get-data-destination.command.js +13 -0
- package/dist/src/data-marts/dto/domain/get-report.command.js +15 -0
- package/dist/src/data-marts/dto/domain/list-data-destinations.command.js +11 -0
- package/dist/src/data-marts/dto/domain/list-reports-by-data-mart.command.js +15 -0
- package/dist/src/data-marts/dto/domain/list-reports-by-project.command.js +13 -0
- package/dist/src/data-marts/dto/domain/report-data-batch.dto.js +13 -0
- package/dist/src/data-marts/dto/domain/report-data-description.dto.js +13 -0
- package/dist/src/data-marts/dto/domain/report.dto.js +31 -0
- package/dist/src/data-marts/dto/domain/run-data-mart.command.js +15 -0
- package/dist/src/data-marts/dto/domain/run-report.command.js +3 -0
- package/dist/src/data-marts/dto/domain/update-data-destination.command.js +17 -0
- package/dist/src/data-marts/dto/domain/update-report.command.js +21 -0
- package/dist/src/data-marts/dto/presentation/connector-definition-response-api.dto.js +37 -0
- package/dist/src/data-marts/dto/presentation/connector-fields-response-api.dto.js +60 -0
- package/dist/src/data-marts/dto/presentation/connector-specification-response-api.dto.js +65 -0
- package/dist/src/data-marts/dto/presentation/create-data-destination-api.dto.js +42 -0
- package/dist/src/data-marts/dto/presentation/create-report-request-api.dto.js +46 -0
- package/dist/src/data-marts/dto/presentation/data-destination-response-api.dto.js +57 -0
- package/dist/src/data-marts/dto/presentation/report-response-api.dto.js +75 -0
- package/dist/src/data-marts/dto/presentation/update-data-destination-api.dto.js +35 -0
- package/dist/src/data-marts/dto/presentation/update-report-request-api.dto.js +39 -0
- package/dist/src/data-marts/dto/schemas/data-mart-table-definitions/connector-definition.schema.js +23 -0
- package/dist/src/data-marts/dto/schemas/data-mart-table-definitions/data-mart-definition.guards.js +23 -0
- package/dist/src/data-marts/entities/data-destination.entity.js +66 -0
- package/dist/src/data-marts/entities/data-mart-run.entity.js +63 -0
- package/dist/src/data-marts/entities/report.entity.js +85 -0
- package/dist/{data-marts → src/data-marts}/enums/data-mart-definition-type.enum.js +1 -0
- package/dist/src/data-marts/enums/data-mart-run-status.enum.js +10 -0
- package/dist/src/data-marts/enums/report-run-status.enum.js +10 -0
- package/dist/src/data-marts/mappers/connector.mapper.js +54 -0
- package/dist/src/data-marts/mappers/data-destination.mapper.js +58 -0
- package/dist/{data-marts → src/data-marts}/mappers/data-mart.mapper.js +4 -0
- package/dist/{data-marts → src/data-marts}/mappers/data-storage.mapper.js +2 -6
- package/dist/src/data-marts/mappers/report.mapper.js +81 -0
- package/dist/src/data-marts/services/connector-execution.service.js +190 -0
- package/dist/src/data-marts/services/connector.service.js +79 -0
- package/dist/src/data-marts/services/data-destination.service.js +39 -0
- package/dist/src/data-marts/use-cases/connector/available-connector.service.js +29 -0
- package/dist/src/data-marts/use-cases/connector/fields-connector.service.js +29 -0
- package/dist/src/data-marts/use-cases/connector/specification-connector.service.js +29 -0
- package/dist/src/data-marts/use-cases/create-data-destination.service.js +51 -0
- package/dist/src/data-marts/use-cases/create-report.service.js +83 -0
- package/dist/src/data-marts/use-cases/delete-data-destination.service.js +59 -0
- package/dist/src/data-marts/use-cases/delete-report.service.js +46 -0
- package/dist/src/data-marts/use-cases/get-data-destination.service.js +34 -0
- package/dist/src/data-marts/use-cases/get-report.service.js +51 -0
- package/dist/src/data-marts/use-cases/list-data-destinations.service.js +42 -0
- package/dist/src/data-marts/use-cases/list-reports-by-data-mart.service.js +47 -0
- package/dist/src/data-marts/use-cases/list-reports-by-project.service.js +47 -0
- package/dist/src/data-marts/use-cases/run-data-mart.service.js +39 -0
- package/dist/src/data-marts/use-cases/run-report.service.js +97 -0
- package/dist/src/data-marts/use-cases/update-data-destination.service.js +52 -0
- package/dist/src/data-marts/use-cases/update-report.service.js +77 -0
- package/dist/src/data-source.js +11 -0
- package/dist/src/load-env.js +34 -0
- package/dist/{main.js → src/main.js} +7 -1
- package/dist/src/migrations/1750350724543-create-data-mart-and-data-storage-tables.js +53 -0
- package/dist/src/migrations/helper.js +13 -0
- package/package.json +28 -9
- package/dist/config/database.config.js +0 -31
- package/dist/data-marts/data-marts.module.js +0 -65
- package/dist/data-marts/data-storage-types/bigquery/schemas/bigquery-credentials.schema.js +0 -11
- package/dist/data-marts/data-storage-types/data-storage-facades.js +0 -7
- package/dist/data-marts/data-storage-types/data-storage-providers.js +0 -27
- package/dist/data-marts/data-storage-types/interfaces/data-storage-title-generator.interface.js +0 -3
- package/dist/public/assets/index-BZJIHZWS.js +0 -502
- package/dist/public/assets/index-BpZgB8Pl.css +0 -1
- /package/dist/{common → src/common}/authorization-context/authorization.context.js +0 -0
- /package/dist/{common → src/common}/common.module.js +0 -0
- /package/dist/{common → src/common}/exceptions/access-validation.exception.js +0 -0
- /package/dist/{common → src/common}/exceptions/base-exception.filter.js +0 -0
- /package/dist/{common → src/common}/exceptions/base.exception.js +0 -0
- /package/dist/{common → src/common}/exceptions/business-violation.exception.js +0 -0
- /package/dist/{common → src/common}/resolver/type-resolver.js +0 -0
- /package/dist/{common → src/common}/resolver/typed-component.resolver.js +0 -0
- /package/dist/{common → src/common}/scheduler/facades/scheduler-facade.impl.js +0 -0
- /package/dist/{common → src/common}/scheduler/scheduler.module.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/fetchers/time-based-trigger-fetcher.factory.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/fetchers/time-based-trigger-fetcher.service.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/graceful-shutdown.service.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/runners/abstract-trigger-runner.service.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/runners/direct-trigger-runner.service.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/runners/pubsub-trigger-runner.service.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/runners/trigger-runner.factory.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/runners/trigger-runner.interface.js +0 -0
- /package/dist/{common → src/common}/scheduler/services/system-time.service.js +0 -0
- /package/dist/{common → src/common}/scheduler/shared/entities/scheduled-trigger.entity.js +0 -0
- /package/dist/{common → src/common}/scheduler/shared/entities/time-based-trigger.entity.js +0 -0
- /package/dist/{common → src/common}/scheduler/shared/scheduler.facade.js +0 -0
- /package/dist/{common → src/common}/scheduler/shared/time-based-trigger-handler.interface.js +0 -0
- /package/dist/{config → src/config}/global-pipes.config.js +0 -0
- /package/dist/{config → src/config}/swagger.config.js +0 -0
- /package/dist/{data-marts → src/data-marts}/controllers/data-storage.controller.js +0 -0
- /package/dist/{data-marts → src/data-marts}/controllers/spec/data-storage.api.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/athena/schemas/athena-config.schema.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/athena/schemas/athena-credentials.schema.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/athena/services/athena-access.validator.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/bigquery/schemas/bigquery-config.schema.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/bigquery/services/bigquery-access.validator.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/data-storage-config.type.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/enums/data-storage-type.enum.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/facades/data-storage-access.facade.js +0 -0
- /package/dist/{data-marts → src/data-marts}/data-storage-types/interfaces/data-storage-access-validator.interface.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/create-data-mart.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/create-data-storage.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/data-mart.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/data-storage.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/delete-data-mart.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/delete-data-storage.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/get-data-mart.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/get-data-storage.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/list-data-marts.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/list-data-storages.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/publish-data-mart.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/update-data-mart-definition.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/update-data-mart-description.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/update-data-mart-title.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/domain/update-data-storage.command.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/create-data-mart-request-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/create-data-mart-response-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/create-data-storage-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/data-mart-response-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/data-storage-list-response-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/data-storage-response-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/update-data-mart-definition-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/update-data-mart-description-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/update-data-mart-title-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/presentation/update-data-storage-api.dto.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/schemas/data-mart-table-definitions/data-mart-definition.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/schemas/data-mart-table-definitions/sql-definition.schema.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/schemas/data-mart-table-definitions/table-definition.schema.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/schemas/data-mart-table-definitions/table-pattern-definition.schema.js +0 -0
- /package/dist/{data-marts → src/data-marts}/dto/schemas/data-mart-table-definitions/view-definition.schema.js +0 -0
- /package/dist/{data-marts → src/data-marts}/entities/data-mart.entity.js +0 -0
- /package/dist/{data-marts → src/data-marts}/entities/data-storage.entity.js +0 -0
- /package/dist/{data-marts → src/data-marts}/enums/data-mart-status.enum.js +0 -0
- /package/dist/{data-marts → src/data-marts}/services/data-mart.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/services/data-storage.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/create-data-mart.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/create-data-storage.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/delete-data-mart.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/delete-data-storage.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/get-data-mart.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/get-data-storage.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/list-data-marts.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/list-data-storages.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/publish-data-mart.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/update-data-mart-definition.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/update-data-mart-description.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/update-data-mart-title.service.js +0 -0
- /package/dist/{data-marts → src/data-marts}/use-cases/update-data-storage.service.js +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataDestinationDto = void 0;
|
|
4
|
+
class DataDestinationDto {
|
|
5
|
+
id;
|
|
6
|
+
title;
|
|
7
|
+
type;
|
|
8
|
+
projectId;
|
|
9
|
+
credentials;
|
|
10
|
+
createdAt;
|
|
11
|
+
modifiedAt;
|
|
12
|
+
constructor(id, title, type, projectId, credentials, createdAt, modifiedAt) {
|
|
13
|
+
this.id = id;
|
|
14
|
+
this.title = title;
|
|
15
|
+
this.type = type;
|
|
16
|
+
this.projectId = projectId;
|
|
17
|
+
this.credentials = credentials;
|
|
18
|
+
this.createdAt = createdAt;
|
|
19
|
+
this.modifiedAt = modifiedAt;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.DataDestinationDto = DataDestinationDto;
|
|
23
|
+
//# sourceMappingURL=data-destination.dto.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteDataDestinationCommand = void 0;
|
|
4
|
+
class DeleteDataDestinationCommand {
|
|
5
|
+
id;
|
|
6
|
+
projectId;
|
|
7
|
+
constructor(id, projectId) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.projectId = projectId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.DeleteDataDestinationCommand = DeleteDataDestinationCommand;
|
|
13
|
+
//# sourceMappingURL=delete-data-destination.command.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDataDestinationCommand = void 0;
|
|
4
|
+
class GetDataDestinationCommand {
|
|
5
|
+
id;
|
|
6
|
+
projectId;
|
|
7
|
+
constructor(id, projectId) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.projectId = projectId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.GetDataDestinationCommand = GetDataDestinationCommand;
|
|
13
|
+
//# sourceMappingURL=get-data-destination.command.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetReportCommand = void 0;
|
|
4
|
+
class GetReportCommand {
|
|
5
|
+
id;
|
|
6
|
+
projectId;
|
|
7
|
+
userId;
|
|
8
|
+
constructor(id, projectId, userId) {
|
|
9
|
+
this.id = id;
|
|
10
|
+
this.projectId = projectId;
|
|
11
|
+
this.userId = userId;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.GetReportCommand = GetReportCommand;
|
|
15
|
+
//# sourceMappingURL=get-report.command.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListDataDestinationsCommand = void 0;
|
|
4
|
+
class ListDataDestinationsCommand {
|
|
5
|
+
projectId;
|
|
6
|
+
constructor(projectId) {
|
|
7
|
+
this.projectId = projectId;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ListDataDestinationsCommand = ListDataDestinationsCommand;
|
|
11
|
+
//# sourceMappingURL=list-data-destinations.command.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListReportsByDataMartCommand = void 0;
|
|
4
|
+
class ListReportsByDataMartCommand {
|
|
5
|
+
dataMartId;
|
|
6
|
+
projectId;
|
|
7
|
+
userId;
|
|
8
|
+
constructor(dataMartId, projectId, userId) {
|
|
9
|
+
this.dataMartId = dataMartId;
|
|
10
|
+
this.projectId = projectId;
|
|
11
|
+
this.userId = userId;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ListReportsByDataMartCommand = ListReportsByDataMartCommand;
|
|
15
|
+
//# sourceMappingURL=list-reports-by-data-mart.command.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListReportsByProjectCommand = void 0;
|
|
4
|
+
class ListReportsByProjectCommand {
|
|
5
|
+
projectId;
|
|
6
|
+
userId;
|
|
7
|
+
constructor(projectId, userId) {
|
|
8
|
+
this.projectId = projectId;
|
|
9
|
+
this.userId = userId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ListReportsByProjectCommand = ListReportsByProjectCommand;
|
|
13
|
+
//# sourceMappingURL=list-reports-by-project.command.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportDataBatch = void 0;
|
|
4
|
+
class ReportDataBatch {
|
|
5
|
+
dataRows;
|
|
6
|
+
nextDataBatchId;
|
|
7
|
+
constructor(dataRows, nextDataBatchId) {
|
|
8
|
+
this.dataRows = dataRows;
|
|
9
|
+
this.nextDataBatchId = nextDataBatchId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ReportDataBatch = ReportDataBatch;
|
|
13
|
+
//# sourceMappingURL=report-data-batch.dto.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportDataDescription = void 0;
|
|
4
|
+
class ReportDataDescription {
|
|
5
|
+
dataHeaders;
|
|
6
|
+
estimatedDataRowsCount;
|
|
7
|
+
constructor(dataHeaders, estimatedDataRowsCount) {
|
|
8
|
+
this.dataHeaders = dataHeaders;
|
|
9
|
+
this.estimatedDataRowsCount = estimatedDataRowsCount;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ReportDataDescription = ReportDataDescription;
|
|
13
|
+
//# sourceMappingURL=report-data-description.dto.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportDto = void 0;
|
|
4
|
+
class ReportDto {
|
|
5
|
+
id;
|
|
6
|
+
title;
|
|
7
|
+
dataMart;
|
|
8
|
+
dataDestinationAccess;
|
|
9
|
+
destinationConfig;
|
|
10
|
+
createdAt;
|
|
11
|
+
modifiedAt;
|
|
12
|
+
lastRunAt;
|
|
13
|
+
lastRunError;
|
|
14
|
+
lastRunStatus;
|
|
15
|
+
runsCount;
|
|
16
|
+
constructor(id, title, dataMart, dataDestinationAccess, destinationConfig, createdAt, modifiedAt, lastRunAt, lastRunError, lastRunStatus, runsCount = 0) {
|
|
17
|
+
this.id = id;
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.dataMart = dataMart;
|
|
20
|
+
this.dataDestinationAccess = dataDestinationAccess;
|
|
21
|
+
this.destinationConfig = destinationConfig;
|
|
22
|
+
this.createdAt = createdAt;
|
|
23
|
+
this.modifiedAt = modifiedAt;
|
|
24
|
+
this.lastRunAt = lastRunAt;
|
|
25
|
+
this.lastRunError = lastRunError;
|
|
26
|
+
this.lastRunStatus = lastRunStatus;
|
|
27
|
+
this.runsCount = runsCount;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ReportDto = ReportDto;
|
|
31
|
+
//# sourceMappingURL=report.dto.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunDataMartCommand = void 0;
|
|
4
|
+
class RunDataMartCommand {
|
|
5
|
+
id;
|
|
6
|
+
projectId;
|
|
7
|
+
userId;
|
|
8
|
+
constructor(id, projectId, userId) {
|
|
9
|
+
this.id = id;
|
|
10
|
+
this.projectId = projectId;
|
|
11
|
+
this.userId = userId;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.RunDataMartCommand = RunDataMartCommand;
|
|
15
|
+
//# sourceMappingURL=run-data-mart.command.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateDataDestinationCommand = void 0;
|
|
4
|
+
class UpdateDataDestinationCommand {
|
|
5
|
+
id;
|
|
6
|
+
projectId;
|
|
7
|
+
title;
|
|
8
|
+
credentials;
|
|
9
|
+
constructor(id, projectId, title, credentials) {
|
|
10
|
+
this.id = id;
|
|
11
|
+
this.projectId = projectId;
|
|
12
|
+
this.title = title;
|
|
13
|
+
this.credentials = credentials;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.UpdateDataDestinationCommand = UpdateDataDestinationCommand;
|
|
17
|
+
//# sourceMappingURL=update-data-destination.command.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateReportCommand = void 0;
|
|
4
|
+
class UpdateReportCommand {
|
|
5
|
+
id;
|
|
6
|
+
projectId;
|
|
7
|
+
userId;
|
|
8
|
+
title;
|
|
9
|
+
dataDestinationId;
|
|
10
|
+
destinationConfig;
|
|
11
|
+
constructor(id, projectId, userId, title, dataDestinationId, destinationConfig) {
|
|
12
|
+
this.id = id;
|
|
13
|
+
this.projectId = projectId;
|
|
14
|
+
this.userId = userId;
|
|
15
|
+
this.title = title;
|
|
16
|
+
this.dataDestinationId = dataDestinationId;
|
|
17
|
+
this.destinationConfig = destinationConfig;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.UpdateReportCommand = UpdateReportCommand;
|
|
21
|
+
//# sourceMappingURL=update-report.command.js.map
|
|
@@ -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.ConnectorDefinitionResponseApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class ConnectorDefinitionResponseApiDto {
|
|
15
|
+
name;
|
|
16
|
+
title;
|
|
17
|
+
description;
|
|
18
|
+
icon;
|
|
19
|
+
}
|
|
20
|
+
exports.ConnectorDefinitionResponseApiDto = ConnectorDefinitionResponseApiDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ example: 'FacebookMarketing' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ConnectorDefinitionResponseApiDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ example: 'Facebook Marketing' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ConnectorDefinitionResponseApiDto.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ example: 'Connect to Facebook Marketing API', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], ConnectorDefinitionResponseApiDto.prototype, "description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ example: 'facebook-icon.svg', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], ConnectorDefinitionResponseApiDto.prototype, "icon", void 0);
|
|
37
|
+
//# sourceMappingURL=connector-definition-response-api.dto.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ConnectorFieldsResponseApiDto = exports.ConnectorFieldResponseApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class ConnectorFieldResponseApiDto {
|
|
15
|
+
name;
|
|
16
|
+
type;
|
|
17
|
+
description;
|
|
18
|
+
}
|
|
19
|
+
exports.ConnectorFieldResponseApiDto = ConnectorFieldResponseApiDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)({ example: 'field_name' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ConnectorFieldResponseApiDto.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({ example: 'Field Type', required: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ConnectorFieldResponseApiDto.prototype, "type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ example: 'Field Description', required: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ConnectorFieldResponseApiDto.prototype, "description", void 0);
|
|
32
|
+
class ConnectorFieldsResponseApiDto {
|
|
33
|
+
name;
|
|
34
|
+
overview;
|
|
35
|
+
description;
|
|
36
|
+
documentation;
|
|
37
|
+
fields;
|
|
38
|
+
}
|
|
39
|
+
exports.ConnectorFieldsResponseApiDto = ConnectorFieldsResponseApiDto;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ example: 'field_name' }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ConnectorFieldsResponseApiDto.prototype, "name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({ example: 'Field Overview', required: false }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ConnectorFieldsResponseApiDto.prototype, "overview", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ example: 'Field Description', required: false }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ConnectorFieldsResponseApiDto.prototype, "description", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({ example: 'Field Documentation', required: false }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ConnectorFieldsResponseApiDto.prototype, "documentation", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ example: 'Field Fields', required: false }),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], ConnectorFieldsResponseApiDto.prototype, "fields", void 0);
|
|
60
|
+
//# sourceMappingURL=connector-fields-response-api.dto.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
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.ConnectorSpecificationResponseApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class ConnectorSpecificationResponseApiDto {
|
|
15
|
+
name;
|
|
16
|
+
title;
|
|
17
|
+
description;
|
|
18
|
+
default;
|
|
19
|
+
requiredType;
|
|
20
|
+
required;
|
|
21
|
+
options;
|
|
22
|
+
placeholder;
|
|
23
|
+
}
|
|
24
|
+
exports.ConnectorSpecificationResponseApiDto = ConnectorSpecificationResponseApiDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ example: 'accessToken' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ConnectorSpecificationResponseApiDto.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ example: 'Access Token', required: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ConnectorSpecificationResponseApiDto.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ example: 'Your Facebook access token', required: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ConnectorSpecificationResponseApiDto.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ example: 'default_value', required: false }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ConnectorSpecificationResponseApiDto.prototype, "default", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
enum: ['string', 'number', 'boolean', 'bool', 'object', 'array', 'date'],
|
|
44
|
+
example: 'string',
|
|
45
|
+
required: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ConnectorSpecificationResponseApiDto.prototype, "requiredType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ example: true, required: false }),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], ConnectorSpecificationResponseApiDto.prototype, "required", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({
|
|
55
|
+
type: [String],
|
|
56
|
+
example: ['option1', 'option2'],
|
|
57
|
+
required: false,
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], ConnectorSpecificationResponseApiDto.prototype, "options", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({ example: 'Enter your access token...', required: false }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ConnectorSpecificationResponseApiDto.prototype, "placeholder", void 0);
|
|
65
|
+
//# sourceMappingURL=connector-specification-response-api.dto.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CreateDataDestinationApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const data_destination_type_enum_1 = require("../../data-destination-types/enums/data-destination-type.enum");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class CreateDataDestinationApiDto {
|
|
17
|
+
title;
|
|
18
|
+
type;
|
|
19
|
+
credentials;
|
|
20
|
+
}
|
|
21
|
+
exports.CreateDataDestinationApiDto = CreateDataDestinationApiDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ example: 'My Google Sheets Destination' }),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateDataDestinationApiDto.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ enum: data_destination_type_enum_1.DataDestinationType }),
|
|
30
|
+
(0, class_validator_1.IsEnum)(data_destination_type_enum_1.DataDestinationType),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateDataDestinationApiDto.prototype, "type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({
|
|
35
|
+
type: 'object',
|
|
36
|
+
additionalProperties: true,
|
|
37
|
+
description: 'Credentials required for the selected destination type',
|
|
38
|
+
}),
|
|
39
|
+
(0, class_validator_1.IsObject)(),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], CreateDataDestinationApiDto.prototype, "credentials", void 0);
|
|
42
|
+
//# sourceMappingURL=create-data-destination-api.dto.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
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.CreateReportRequestApiDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
class CreateReportRequestApiDto {
|
|
16
|
+
title;
|
|
17
|
+
dataMartId;
|
|
18
|
+
dataDestinationId;
|
|
19
|
+
destinationConfig;
|
|
20
|
+
}
|
|
21
|
+
exports.CreateReportRequestApiDto = CreateReportRequestApiDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ example: 'My Report' }),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateReportRequestApiDto.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ description: 'ID of the data mart' }),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateReportRequestApiDto.prototype, "dataMartId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ description: 'ID of the data destination' }),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateReportRequestApiDto.prototype, "dataDestinationId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ description: 'Configuration for the data destination' }),
|
|
42
|
+
(0, class_validator_1.IsObject)(),
|
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], CreateReportRequestApiDto.prototype, "destinationConfig", void 0);
|
|
46
|
+
//# sourceMappingURL=create-report-request-api.dto.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
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.DataDestinationResponseApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const data_destination_type_enum_1 = require("../../data-destination-types/enums/data-destination-type.enum");
|
|
15
|
+
class DataDestinationResponseApiDto {
|
|
16
|
+
id;
|
|
17
|
+
title;
|
|
18
|
+
type;
|
|
19
|
+
projectId;
|
|
20
|
+
credentials;
|
|
21
|
+
createdAt;
|
|
22
|
+
modifiedAt;
|
|
23
|
+
}
|
|
24
|
+
exports.DataDestinationResponseApiDto = DataDestinationResponseApiDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ example: 'abc123e4-5678-90ab-cdef-1234567890ab' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DataDestinationResponseApiDto.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ example: 'My Google Sheets Destination' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], DataDestinationResponseApiDto.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ enum: data_destination_type_enum_1.DataDestinationType, example: data_destination_type_enum_1.DataDestinationType.GOOGLE_SHEETS }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], DataDestinationResponseApiDto.prototype, "type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ example: 'my-project' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], DataDestinationResponseApiDto.prototype, "projectId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
type: 'object',
|
|
44
|
+
additionalProperties: true,
|
|
45
|
+
description: 'Credentials for the destination',
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], DataDestinationResponseApiDto.prototype, "credentials", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ example: '2024-01-01T12:00:00.000Z' }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], DataDestinationResponseApiDto.prototype, "createdAt", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ example: '2024-01-02T15:30:00.000Z' }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], DataDestinationResponseApiDto.prototype, "modifiedAt", void 0);
|
|
57
|
+
//# sourceMappingURL=data-destination-response-api.dto.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
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.ReportResponseApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const data_mart_response_api_dto_1 = require("./data-mart-response-api.dto");
|
|
15
|
+
const data_destination_response_api_dto_1 = require("./data-destination-response-api.dto");
|
|
16
|
+
const report_run_status_enum_1 = require("../../enums/report-run-status.enum");
|
|
17
|
+
class ReportResponseApiDto {
|
|
18
|
+
id;
|
|
19
|
+
title;
|
|
20
|
+
dataMart;
|
|
21
|
+
dataDestinationAccess;
|
|
22
|
+
destinationConfig;
|
|
23
|
+
lastRunAt;
|
|
24
|
+
lastRunStatus;
|
|
25
|
+
lastRunError;
|
|
26
|
+
runsCount;
|
|
27
|
+
createdAt;
|
|
28
|
+
modifiedAt;
|
|
29
|
+
}
|
|
30
|
+
exports.ReportResponseApiDto = ReportResponseApiDto;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ example: '9cabc24e-1234-4a5a-8b12-abcdef123456' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ReportResponseApiDto.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ example: 'My Report' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ReportResponseApiDto.prototype, "title", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)(),
|
|
41
|
+
__metadata("design:type", data_mart_response_api_dto_1.DataMartResponseApiDto)
|
|
42
|
+
], ReportResponseApiDto.prototype, "dataMart", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)(),
|
|
45
|
+
__metadata("design:type", data_destination_response_api_dto_1.DataDestinationResponseApiDto)
|
|
46
|
+
], ReportResponseApiDto.prototype, "dataDestinationAccess", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)(),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], ReportResponseApiDto.prototype, "destinationConfig", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ nullable: true }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], ReportResponseApiDto.prototype, "lastRunAt", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({ enum: report_run_status_enum_1.ReportRunStatus, nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], ReportResponseApiDto.prototype, "lastRunStatus", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({ nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ReportResponseApiDto.prototype, "lastRunError", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({ example: 0 }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], ReportResponseApiDto.prototype, "runsCount", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiProperty)({ example: '2024-01-01T12:00:00.000Z' }),
|
|
69
|
+
__metadata("design:type", Date)
|
|
70
|
+
], ReportResponseApiDto.prototype, "createdAt", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({ example: '2024-01-02T15:30:00.000Z' }),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], ReportResponseApiDto.prototype, "modifiedAt", void 0);
|
|
75
|
+
//# sourceMappingURL=report-response-api.dto.js.map
|