@futo-org/backups-orchestrator-api 0.1.71
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/LICENSE +41 -0
- package/dist/backends/backend.d.ts +23 -0
- package/dist/backends/backend.js +31 -0
- package/dist/backends/backend.js.map +1 -0
- package/dist/backends/local.backend.d.ts +24 -0
- package/dist/backends/local.backend.js +92 -0
- package/dist/backends/local.backend.js.map +1 -0
- package/dist/backends/s3.backend.d.ts +24 -0
- package/dist/backends/s3.backend.js +47 -0
- package/dist/backends/s3.backend.js.map +1 -0
- package/dist/backends/yucca.backend.d.ts +27 -0
- package/dist/backends/yucca.backend.js +63 -0
- package/dist/backends/yucca.backend.js.map +1 -0
- package/dist/const.d.ts +2 -0
- package/dist/const.js +6 -0
- package/dist/const.js.map +1 -0
- package/dist/controllers/auth.controller.d.ts +7 -0
- package/dist/controllers/auth.controller.js +38 -0
- package/dist/controllers/auth.controller.js.map +1 -0
- package/dist/controllers/backend.controller.d.ts +8 -0
- package/dist/controllers/backend.controller.js +52 -0
- package/dist/controllers/backend.controller.js.map +1 -0
- package/dist/controllers/development.controller.d.ts +6 -0
- package/dist/controllers/development.controller.js +35 -0
- package/dist/controllers/development.controller.js.map +1 -0
- package/dist/controllers/filesystem.controller.d.ts +7 -0
- package/dist/controllers/filesystem.controller.js +43 -0
- package/dist/controllers/filesystem.controller.js.map +1 -0
- package/dist/controllers/integrations.controller.d.ts +8 -0
- package/dist/controllers/integrations.controller.js +51 -0
- package/dist/controllers/integrations.controller.js.map +1 -0
- package/dist/controllers/onboarding.controller.d.ts +11 -0
- package/dist/controllers/onboarding.controller.js +80 -0
- package/dist/controllers/onboarding.controller.js.map +1 -0
- package/dist/controllers/repository.controller.d.ts +22 -0
- package/dist/controllers/repository.controller.js +227 -0
- package/dist/controllers/repository.controller.js.map +1 -0
- package/dist/controllers/runHistory.controller.d.ts +9 -0
- package/dist/controllers/runHistory.controller.js +55 -0
- package/dist/controllers/runHistory.controller.js.map +1 -0
- package/dist/controllers/runningTasks.controller.d.ts +8 -0
- package/dist/controllers/runningTasks.controller.js +52 -0
- package/dist/controllers/runningTasks.controller.js.map +1 -0
- package/dist/controllers/schedule.controller.d.ts +10 -0
- package/dist/controllers/schedule.controller.js +76 -0
- package/dist/controllers/schedule.controller.js.map +1 -0
- package/dist/dto/auth.dto.d.ts +4 -0
- package/dist/dto/auth.dto.js +27 -0
- package/dist/dto/auth.dto.js.map +1 -0
- package/dist/dto/backend.dto.d.ts +16 -0
- package/dist/dto/backend.dto.js +64 -0
- package/dist/dto/backend.dto.js.map +1 -0
- package/dist/dto/filesystem.dto.d.ts +12 -0
- package/dist/dto/filesystem.dto.js +56 -0
- package/dist/dto/filesystem.dto.js.map +1 -0
- package/dist/dto/integrations.dto.d.ts +35 -0
- package/dist/dto/integrations.dto.js +163 -0
- package/dist/dto/integrations.dto.js.map +1 -0
- package/dist/dto/onboarding.dto.d.ts +13 -0
- package/dist/dto/onboarding.dto.js +60 -0
- package/dist/dto/onboarding.dto.js.map +1 -0
- package/dist/dto/repository.dto.d.ts +113 -0
- package/dist/dto/repository.dto.js +421 -0
- package/dist/dto/repository.dto.js.map +1 -0
- package/dist/dto/runningTasks.dto.d.ts +14 -0
- package/dist/dto/runningTasks.dto.js +59 -0
- package/dist/dto/runningTasks.dto.js.map +1 -0
- package/dist/dto/schedule.dto.d.ts +29 -0
- package/dist/dto/schedule.dto.js +149 -0
- package/dist/dto/schedule.dto.js.map +1 -0
- package/dist/enum.d.ts +32 -0
- package/dist/enum.js +42 -0
- package/dist/enum.js.map +1 -0
- package/dist/events/events.gateway.d.ts +73 -0
- package/dist/events/events.gateway.js +79 -0
- package/dist/events/events.gateway.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/moduleConfig.d.ts +20 -0
- package/dist/moduleConfig.js +5 -0
- package/dist/moduleConfig.js.map +1 -0
- package/dist/orchestrationApi.module.d.ts +5 -0
- package/dist/orchestrationApi.module.js +134 -0
- package/dist/orchestrationApi.module.js.map +1 -0
- package/dist/repositories/backend.repository.d.ts +19 -0
- package/dist/repositories/backend.repository.js +60 -0
- package/dist/repositories/backend.repository.js.map +1 -0
- package/dist/repositories/config.repository.d.ts +18 -0
- package/dist/repositories/config.repository.js +93 -0
- package/dist/repositories/config.repository.js.map +1 -0
- package/dist/repositories/database.repository.d.ts +11 -0
- package/dist/repositories/database.repository.js +85 -0
- package/dist/repositories/database.repository.js.map +1 -0
- package/dist/repositories/moduleConfig.repository.d.ts +12 -0
- package/dist/repositories/moduleConfig.repository.js +48 -0
- package/dist/repositories/moduleConfig.repository.js.map +1 -0
- package/dist/repositories/repository.repository.d.ts +18 -0
- package/dist/repositories/repository.repository.js +81 -0
- package/dist/repositories/repository.repository.js.map +1 -0
- package/dist/repositories/repositoryIntegrationImmich.repository.d.ts +14 -0
- package/dist/repositories/repositoryIntegrationImmich.repository.js +57 -0
- package/dist/repositories/repositoryIntegrationImmich.repository.js.map +1 -0
- package/dist/repositories/repositoryLocalMetrics.repository.d.ts +23 -0
- package/dist/repositories/repositoryLocalMetrics.repository.js +55 -0
- package/dist/repositories/repositoryLocalMetrics.repository.js.map +1 -0
- package/dist/repositories/repositoryPath.repository.d.ts +17 -0
- package/dist/repositories/repositoryPath.repository.js +48 -0
- package/dist/repositories/repositoryPath.repository.js.map +1 -0
- package/dist/repositories/restic.repository.d.ts +207 -0
- package/dist/repositories/restic.repository.js +96 -0
- package/dist/repositories/restic.repository.js.map +1 -0
- package/dist/repositories/runHistory.repository.d.ts +44 -0
- package/dist/repositories/runHistory.repository.js +191 -0
- package/dist/repositories/runHistory.repository.js.map +1 -0
- package/dist/repositories/runningTasks.repository.d.ts +14 -0
- package/dist/repositories/runningTasks.repository.js +77 -0
- package/dist/repositories/runningTasks.repository.js.map +1 -0
- package/dist/repositories/schedule.repository.d.ts +47 -0
- package/dist/repositories/schedule.repository.js +99 -0
- package/dist/repositories/schedule.repository.js.map +1 -0
- package/dist/repositories/storage.repository.d.ts +9 -0
- package/dist/repositories/storage.repository.js +39 -0
- package/dist/repositories/storage.repository.js.map +1 -0
- package/dist/schema/index.d.ts +20 -0
- package/dist/schema/index.js +3 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/migrations/20260218105210-InitialMigration.d.ts +3 -0
- package/dist/schema/migrations/20260218105210-InitialMigration.js +15 -0
- package/dist/schema/migrations/20260218105210-InitialMigration.js.map +1 -0
- package/dist/schema/migrations/20260218122600-AddRepositories.d.ts +3 -0
- package/dist/schema/migrations/20260218122600-AddRepositories.js +21 -0
- package/dist/schema/migrations/20260218122600-AddRepositories.js.map +1 -0
- package/dist/schema/migrations/20260224112323-RepositoryPathTable.d.ts +3 -0
- package/dist/schema/migrations/20260224112323-RepositoryPathTable.js +16 -0
- package/dist/schema/migrations/20260224112323-RepositoryPathTable.js.map +1 -0
- package/dist/schema/migrations/20260224123344-RunHistoryTable.d.ts +3 -0
- package/dist/schema/migrations/20260224123344-RunHistoryTable.js +20 -0
- package/dist/schema/migrations/20260224123344-RunHistoryTable.js.map +1 -0
- package/dist/schema/migrations/20260224125102-RepositoryMetricsTable.d.ts +3 -0
- package/dist/schema/migrations/20260224125102-RepositoryMetricsTable.js +16 -0
- package/dist/schema/migrations/20260224125102-RepositoryMetricsTable.js.map +1 -0
- package/dist/schema/migrations/20260304162353-ScheduleTable.d.ts +3 -0
- package/dist/schema/migrations/20260304162353-ScheduleTable.js +27 -0
- package/dist/schema/migrations/20260304162353-ScheduleTable.js.map +1 -0
- package/dist/schema/migrations/20260313222211-AddMetricsColumns.d.ts +3 -0
- package/dist/schema/migrations/20260313222211-AddMetricsColumns.js +13 -0
- package/dist/schema/migrations/20260313222211-AddMetricsColumns.js.map +1 -0
- package/dist/schema/migrations/20260330120000-RepositoryIntegrationImmichTable.d.ts +3 -0
- package/dist/schema/migrations/20260330120000-RepositoryIntegrationImmichTable.js +15 -0
- package/dist/schema/migrations/20260330120000-RepositoryIntegrationImmichTable.js.map +1 -0
- package/dist/schema/migrations/20260330130000-AddScheduleIdToImmichIntegration.d.ts +3 -0
- package/dist/schema/migrations/20260330130000-AddScheduleIdToImmichIntegration.js +14 -0
- package/dist/schema/migrations/20260330130000-AddScheduleIdToImmichIntegration.js.map +1 -0
- package/dist/schema/migrations/20260507120000-AddRunHistoryType.d.ts +3 -0
- package/dist/schema/migrations/20260507120000-AddRunHistoryType.js +18 -0
- package/dist/schema/migrations/20260507120000-AddRunHistoryType.js.map +1 -0
- package/dist/schema/migrations/20260512120000-AddRepositoryRetentionPolicy.d.ts +3 -0
- package/dist/schema/migrations/20260512120000-AddRepositoryRetentionPolicy.js +11 -0
- package/dist/schema/migrations/20260512120000-AddRepositoryRetentionPolicy.js.map +1 -0
- package/dist/schema/migrations/20260512120000-AddRepositoryRetentionPreset.d.ts +3 -0
- package/dist/schema/migrations/20260512120000-AddRepositoryRetentionPreset.js +18 -0
- package/dist/schema/migrations/20260512120000-AddRepositoryRetentionPreset.js.map +1 -0
- package/dist/schema/migrations/20260512130000-AllowForgetRunHistoryType.d.ts +3 -0
- package/dist/schema/migrations/20260512130000-AllowForgetRunHistoryType.js +47 -0
- package/dist/schema/migrations/20260512130000-AllowForgetRunHistoryType.js.map +1 -0
- package/dist/schema/tables/backend.table.d.ts +20 -0
- package/dist/schema/tables/backend.table.js +9 -0
- package/dist/schema/tables/backend.table.js.map +1 -0
- package/dist/schema/tables/config.table.d.ts +4 -0
- package/dist/schema/tables/config.table.js +9 -0
- package/dist/schema/tables/config.table.js.map +1 -0
- package/dist/schema/tables/repository.table.d.ts +5 -0
- package/dist/schema/tables/repository.table.js +10 -0
- package/dist/schema/tables/repository.table.js.map +1 -0
- package/dist/schema/tables/repositoryIntegrationImmich.table.d.ts +10 -0
- package/dist/schema/tables/repositoryIntegrationImmich.table.js +10 -0
- package/dist/schema/tables/repositoryIntegrationImmich.table.js.map +1 -0
- package/dist/schema/tables/repositoryLocalMetrics.table.d.ts +7 -0
- package/dist/schema/tables/repositoryLocalMetrics.table.js +12 -0
- package/dist/schema/tables/repositoryLocalMetrics.table.js.map +1 -0
- package/dist/schema/tables/repositoryPath.table.d.ts +4 -0
- package/dist/schema/tables/repositoryPath.table.js +9 -0
- package/dist/schema/tables/repositoryPath.table.js.map +1 -0
- package/dist/schema/tables/repositorySchedule.table.d.ts +4 -0
- package/dist/schema/tables/repositorySchedule.table.js +9 -0
- package/dist/schema/tables/repositorySchedule.table.js.map +1 -0
- package/dist/schema/tables/runHistory.table.d.ts +11 -0
- package/dist/schema/tables/runHistory.table.js +14 -0
- package/dist/schema/tables/runHistory.table.js.map +1 -0
- package/dist/schema/tables/schedule.table.d.ts +9 -0
- package/dist/schema/tables/schedule.table.js +14 -0
- package/dist/schema/tables/schedule.table.js.map +1 -0
- package/dist/services/auth.service.d.ts +16 -0
- package/dist/services/auth.service.js +85 -0
- package/dist/services/auth.service.js.map +1 -0
- package/dist/services/backend.service.d.ts +12 -0
- package/dist/services/backend.service.js +68 -0
- package/dist/services/backend.service.js.map +1 -0
- package/dist/services/bootstrap.service.d.ts +13 -0
- package/dist/services/bootstrap.service.js +44 -0
- package/dist/services/bootstrap.service.js.map +1 -0
- package/dist/services/database.service.d.ts +11 -0
- package/dist/services/database.service.js +39 -0
- package/dist/services/database.service.js.map +1 -0
- package/dist/services/development.service.d.ts +11 -0
- package/dist/services/development.service.js +59 -0
- package/dist/services/development.service.js.map +1 -0
- package/dist/services/filesystem.service.d.ts +7 -0
- package/dist/services/filesystem.service.js +43 -0
- package/dist/services/filesystem.service.js.map +1 -0
- package/dist/services/integrations.service.d.ts +22 -0
- package/dist/services/integrations.service.js +158 -0
- package/dist/services/integrations.service.js.map +1 -0
- package/dist/services/onboarding.service.d.ts +17 -0
- package/dist/services/onboarding.service.js +65 -0
- package/dist/services/onboarding.service.js.map +1 -0
- package/dist/services/repository.service.d.ts +65 -0
- package/dist/services/repository.service.js +623 -0
- package/dist/services/repository.service.js.map +1 -0
- package/dist/services/runHistory.service.d.ts +7 -0
- package/dist/services/runHistory.service.js +29 -0
- package/dist/services/runHistory.service.js.map +1 -0
- package/dist/services/runningTasks.service.d.ts +8 -0
- package/dist/services/runningTasks.service.js +34 -0
- package/dist/services/runningTasks.service.js.map +1 -0
- package/dist/services/schedule.service.d.ts +27 -0
- package/dist/services/schedule.service.js +197 -0
- package/dist/services/schedule.service.js.map +1 -0
- package/dist/utils/restic.d.ts +17 -0
- package/dist/utils/restic.js +26 -0
- package/dist/utils/restic.js.map +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,76 @@
|
|
|
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.ScheduleController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const schedule_dto_1 = require("../dto/schedule.dto");
|
|
19
|
+
const schedule_service_1 = require("../services/schedule.service");
|
|
20
|
+
let ScheduleController = class ScheduleController {
|
|
21
|
+
service;
|
|
22
|
+
constructor(service) {
|
|
23
|
+
this.service = service;
|
|
24
|
+
}
|
|
25
|
+
createSchedule(dto) {
|
|
26
|
+
return this.service.createSchedule(dto);
|
|
27
|
+
}
|
|
28
|
+
getSchedules() {
|
|
29
|
+
return this.service.getSchedules();
|
|
30
|
+
}
|
|
31
|
+
updateSchedule(id, dto) {
|
|
32
|
+
return this.service.updateSchedule(id, dto);
|
|
33
|
+
}
|
|
34
|
+
removeSchedule(id) {
|
|
35
|
+
return this.service.removeSchedule(id);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.ScheduleController = ScheduleController;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, common_1.Post)(),
|
|
41
|
+
(0, swagger_1.ApiOkResponse)({ type: schedule_dto_1.ScheduleCreateResponseDto }),
|
|
42
|
+
__param(0, (0, common_1.Body)()),
|
|
43
|
+
__metadata("design:type", Function),
|
|
44
|
+
__metadata("design:paramtypes", [schedule_dto_1.ScheduleCreateRequestDto]),
|
|
45
|
+
__metadata("design:returntype", Promise)
|
|
46
|
+
], ScheduleController.prototype, "createSchedule", null);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, common_1.Get)(),
|
|
49
|
+
(0, swagger_1.ApiOkResponse)({ type: schedule_dto_1.ScheduleListResponseDto }),
|
|
50
|
+
__metadata("design:type", Function),
|
|
51
|
+
__metadata("design:paramtypes", []),
|
|
52
|
+
__metadata("design:returntype", Promise)
|
|
53
|
+
], ScheduleController.prototype, "getSchedules", null);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, common_1.Patch)('/:id'),
|
|
56
|
+
(0, swagger_1.ApiParam)({ name: 'id', type: String }),
|
|
57
|
+
(0, swagger_1.ApiOkResponse)({ type: schedule_dto_1.ScheduleUpdateResponseDto }),
|
|
58
|
+
__param(0, (0, common_1.Param)('id')),
|
|
59
|
+
__param(1, (0, common_1.Body)()),
|
|
60
|
+
__metadata("design:type", Function),
|
|
61
|
+
__metadata("design:paramtypes", [String, schedule_dto_1.ScheduleUpdateRequestDto]),
|
|
62
|
+
__metadata("design:returntype", Promise)
|
|
63
|
+
], ScheduleController.prototype, "updateSchedule", null);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, common_1.Delete)('/:id'),
|
|
66
|
+
(0, swagger_1.ApiParam)({ name: 'id', type: String }),
|
|
67
|
+
__param(0, (0, common_1.Param)('id')),
|
|
68
|
+
__metadata("design:type", Function),
|
|
69
|
+
__metadata("design:paramtypes", [String]),
|
|
70
|
+
__metadata("design:returntype", Promise)
|
|
71
|
+
], ScheduleController.prototype, "removeSchedule", null);
|
|
72
|
+
exports.ScheduleController = ScheduleController = __decorate([
|
|
73
|
+
(0, common_1.Controller)('/yucca/schedule'),
|
|
74
|
+
__metadata("design:paramtypes", [schedule_service_1.ScheduleService])
|
|
75
|
+
], ScheduleController);
|
|
76
|
+
//# sourceMappingURL=schedule.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.controller.js","sourceRoot":"","sources":["../../src/controllers/schedule.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmF;AACnF,6CAA0D;AAC1D,sDAM6B;AAC7B,mEAA+D;AAGxD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IACA;IAA7B,YAA6B,OAAwB;QAAxB,YAAO,GAAP,OAAO,CAAiB;IAAG,CAAC;IAIzD,cAAc,CAAS,GAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC;IAID,YAAY;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAKD,cAAc,CAAc,EAAU,EAAU,GAA6B;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IAC9C,CAAC;IAID,cAAc,CAAc,EAAU;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACzC,CAAC;CACF,CAAA;AA3BY,gDAAkB;AAK7B;IAFC,IAAA,aAAI,GAAE;IACN,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,wCAAyB,EAAE,CAAC;IACnC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,uCAAwB;;wDAEnD;AAID;IAFC,IAAA,YAAG,GAAE;IACL,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,sCAAuB,EAAE,CAAC;;;;sDAGhD;AAKD;IAHC,IAAA,cAAK,EAAC,MAAM,CAAC;IACb,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACtC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,wCAAyB,EAAE,CAAC;IACnC,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAM,uCAAwB;;wDAE5E;AAID;IAFC,IAAA,eAAM,EAAC,MAAM,CAAC;IACd,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACvB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;wDAE1B;6BA1BU,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAEU,kCAAe;GAD1C,kBAAkB,CA2B9B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DeviceFlowResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class DeviceFlowResponseDto {
|
|
15
|
+
userCode;
|
|
16
|
+
verificationUri;
|
|
17
|
+
}
|
|
18
|
+
exports.DeviceFlowResponseDto = DeviceFlowResponseDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DeviceFlowResponseDto.prototype, "userCode", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DeviceFlowResponseDto.prototype, "verificationUri", void 0);
|
|
27
|
+
//# sourceMappingURL=auth.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../src/dto/auth.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,MAAa,qBAAqB;IAEhC,QAAQ,CAAU;IAGlB,eAAe,CAAU;CAC1B;AAND,sDAMC;AAJC;IADC,IAAA,qBAAW,GAAE;;uDACI;AAGlB;IADC,IAAA,qBAAW,GAAE;;8DACW"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BackendType } from '../enum';
|
|
2
|
+
export declare class BackendDto {
|
|
3
|
+
id: string;
|
|
4
|
+
type: BackendType;
|
|
5
|
+
isOnline: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class BackendsResponseDto {
|
|
9
|
+
backends: BackendDto[];
|
|
10
|
+
}
|
|
11
|
+
export declare class BackendResponseDto {
|
|
12
|
+
backend: BackendDto;
|
|
13
|
+
}
|
|
14
|
+
export declare class CreateLocalBackendRequestDto {
|
|
15
|
+
path: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.CreateLocalBackendRequestDto = exports.BackendResponseDto = exports.BackendsResponseDto = exports.BackendDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const enum_1 = require("../enum");
|
|
16
|
+
class BackendDto {
|
|
17
|
+
id;
|
|
18
|
+
type;
|
|
19
|
+
isOnline;
|
|
20
|
+
error;
|
|
21
|
+
}
|
|
22
|
+
exports.BackendDto = BackendDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], BackendDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ enumName: 'BackendType', enum: enum_1.BackendType }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], BackendDto.prototype, "type", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], BackendDto.prototype, "isOnline", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: String, required: false }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BackendDto.prototype, "error", void 0);
|
|
39
|
+
class BackendsResponseDto {
|
|
40
|
+
backends;
|
|
41
|
+
}
|
|
42
|
+
exports.BackendsResponseDto = BackendsResponseDto;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ type: [BackendDto] }),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], BackendsResponseDto.prototype, "backends", void 0);
|
|
47
|
+
class BackendResponseDto {
|
|
48
|
+
backend;
|
|
49
|
+
}
|
|
50
|
+
exports.BackendResponseDto = BackendResponseDto;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ type: BackendDto }),
|
|
53
|
+
__metadata("design:type", BackendDto)
|
|
54
|
+
], BackendResponseDto.prototype, "backend", void 0);
|
|
55
|
+
class CreateLocalBackendRequestDto {
|
|
56
|
+
path;
|
|
57
|
+
}
|
|
58
|
+
exports.CreateLocalBackendRequestDto = CreateLocalBackendRequestDto;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CreateLocalBackendRequestDto.prototype, "path", void 0);
|
|
64
|
+
//# sourceMappingURL=backend.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.dto.js","sourceRoot":"","sources":["../../src/dto/backend.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,kCAAsC;AAEtC,MAAa,UAAU;IAErB,EAAE,CAAU;IAGZ,IAAI,CAAe;IAGnB,QAAQ,CAAW;IAGnB,KAAK,CAAU;CAChB;AAZD,gCAYC;AAVC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGZ;IADC,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;wCACzC;AAGnB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;4CACZ;AAGnB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCAChC;AAGjB,MAAa,mBAAmB;IAE9B,QAAQ,CAAgB;CACzB;AAHD,kDAGC;AADC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;;qDACZ;AAG1B,MAAa,kBAAkB;IAE7B,OAAO,CAAc;CACtB;AAHD,gDAGC;AADC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BACxB,UAAU;mDAAC;AAGvB,MAAa,4BAA4B;IAGvC,IAAI,CAAU;CACf;AAJD,oEAIC;AADC;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC7B,IAAA,0BAAQ,GAAE;;0DACG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class FilesystemListingRequestDto {
|
|
2
|
+
path?: string;
|
|
3
|
+
}
|
|
4
|
+
export declare class FilesystemListingItemDto {
|
|
5
|
+
path: string;
|
|
6
|
+
isDirectory: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class FilesystemListingResponseDto {
|
|
9
|
+
parent: string;
|
|
10
|
+
path: string;
|
|
11
|
+
items: FilesystemListingItemDto[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.FilesystemListingResponseDto = exports.FilesystemListingItemDto = exports.FilesystemListingRequestDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class FilesystemListingRequestDto {
|
|
16
|
+
path;
|
|
17
|
+
}
|
|
18
|
+
exports.FilesystemListingRequestDto = FilesystemListingRequestDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({ type: () => String, required: false }),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], FilesystemListingRequestDto.prototype, "path", void 0);
|
|
25
|
+
class FilesystemListingItemDto {
|
|
26
|
+
path;
|
|
27
|
+
isDirectory;
|
|
28
|
+
}
|
|
29
|
+
exports.FilesystemListingItemDto = FilesystemListingItemDto;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: () => String }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], FilesystemListingItemDto.prototype, "path", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ type: () => Boolean }),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], FilesystemListingItemDto.prototype, "isDirectory", void 0);
|
|
38
|
+
class FilesystemListingResponseDto {
|
|
39
|
+
parent;
|
|
40
|
+
path;
|
|
41
|
+
items;
|
|
42
|
+
}
|
|
43
|
+
exports.FilesystemListingResponseDto = FilesystemListingResponseDto;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({ type: () => String }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], FilesystemListingResponseDto.prototype, "parent", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: () => String }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], FilesystemListingResponseDto.prototype, "path", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({ type: () => [FilesystemListingItemDto] }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], FilesystemListingResponseDto.prototype, "items", void 0);
|
|
56
|
+
//# sourceMappingURL=filesystem.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filesystem.dto.js","sourceRoot":"","sources":["../../src/dto/filesystem.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAuD;AAEvD,MAAa,2BAA2B;IAItC,IAAI,CAAU;CACf;AALD,kEAKC;AADC;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACG;AAGhB,MAAa,wBAAwB;IAEnC,IAAI,CAAU;IAGd,WAAW,CAAW;CACvB;AAND,4DAMC;AAJC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;sDACtB;AAGd;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;;6DACf;AAGxB,MAAa,4BAA4B;IAEvC,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAA8B;CACpC;AATD,oEASC;AAPC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;4DACpB;AAGhB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;0DACtB;AAGd;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,wBAAwB,CAAC,EAAE,CAAC;;2DACrB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { RetentionPolicyDto } from './repository.dto';
|
|
2
|
+
export declare class ImmichLibraryDto {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
importPaths: string[];
|
|
6
|
+
exclusionPatterns: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare class ImmichStateDto {
|
|
9
|
+
dataPath: string;
|
|
10
|
+
dataFolders: string[];
|
|
11
|
+
libraries: ImmichLibraryDto[];
|
|
12
|
+
}
|
|
13
|
+
export declare class ImmichIntegrationConfigurationDto {
|
|
14
|
+
dataFolders: string[];
|
|
15
|
+
backupConfiguration: boolean;
|
|
16
|
+
libraries: 'all' | string[];
|
|
17
|
+
}
|
|
18
|
+
export declare class ImmichIntegrationDto {
|
|
19
|
+
id: string;
|
|
20
|
+
scheduleId: string;
|
|
21
|
+
configuration: ImmichIntegrationConfigurationDto;
|
|
22
|
+
}
|
|
23
|
+
export declare class IntegrationsResponseDto {
|
|
24
|
+
immichState?: ImmichStateDto;
|
|
25
|
+
immichIntegration?: ImmichIntegrationDto;
|
|
26
|
+
}
|
|
27
|
+
export declare class ConfigureImmichIntegrationRequestDto {
|
|
28
|
+
name: string;
|
|
29
|
+
worm: boolean;
|
|
30
|
+
cron: string;
|
|
31
|
+
dataFolders: string[];
|
|
32
|
+
backupConfiguration: boolean;
|
|
33
|
+
libraries: 'all' | string[];
|
|
34
|
+
retentionPolicy?: RetentionPolicyDto | null;
|
|
35
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
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.ConfigureImmichIntegrationRequestDto = exports.IntegrationsResponseDto = exports.ImmichIntegrationDto = exports.ImmichIntegrationConfigurationDto = exports.ImmichStateDto = exports.ImmichLibraryDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const repository_dto_1 = require("./repository.dto");
|
|
16
|
+
class ImmichLibraryDto {
|
|
17
|
+
id;
|
|
18
|
+
name;
|
|
19
|
+
importPaths;
|
|
20
|
+
exclusionPatterns;
|
|
21
|
+
}
|
|
22
|
+
exports.ImmichLibraryDto = ImmichLibraryDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ImmichLibraryDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ImmichLibraryDto.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: [String] }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], ImmichLibraryDto.prototype, "importPaths", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: [String] }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], ImmichLibraryDto.prototype, "exclusionPatterns", void 0);
|
|
39
|
+
class ImmichStateDto {
|
|
40
|
+
dataPath;
|
|
41
|
+
dataFolders;
|
|
42
|
+
libraries;
|
|
43
|
+
}
|
|
44
|
+
exports.ImmichStateDto = ImmichStateDto;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ImmichStateDto.prototype, "dataPath", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ type: [String] }),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], ImmichStateDto.prototype, "dataFolders", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ type: [ImmichLibraryDto] }),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], ImmichStateDto.prototype, "libraries", void 0);
|
|
57
|
+
class ImmichIntegrationConfigurationDto {
|
|
58
|
+
dataFolders;
|
|
59
|
+
backupConfiguration;
|
|
60
|
+
libraries;
|
|
61
|
+
}
|
|
62
|
+
exports.ImmichIntegrationConfigurationDto = ImmichIntegrationConfigurationDto;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({ type: [String] }),
|
|
65
|
+
__metadata("design:type", Array)
|
|
66
|
+
], ImmichIntegrationConfigurationDto.prototype, "dataFolders", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
69
|
+
__metadata("design:type", Boolean)
|
|
70
|
+
], ImmichIntegrationConfigurationDto.prototype, "backupConfiguration", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
oneOf: [
|
|
74
|
+
{ type: 'string', enum: ['all'] },
|
|
75
|
+
{ type: 'array', items: { type: 'string' } },
|
|
76
|
+
],
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], ImmichIntegrationConfigurationDto.prototype, "libraries", void 0);
|
|
80
|
+
class ImmichIntegrationDto {
|
|
81
|
+
id;
|
|
82
|
+
scheduleId;
|
|
83
|
+
configuration;
|
|
84
|
+
}
|
|
85
|
+
exports.ImmichIntegrationDto = ImmichIntegrationDto;
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], ImmichIntegrationDto.prototype, "id", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], ImmichIntegrationDto.prototype, "scheduleId", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)({ type: ImmichIntegrationConfigurationDto }),
|
|
96
|
+
__metadata("design:type", ImmichIntegrationConfigurationDto)
|
|
97
|
+
], ImmichIntegrationDto.prototype, "configuration", void 0);
|
|
98
|
+
class IntegrationsResponseDto {
|
|
99
|
+
immichState;
|
|
100
|
+
immichIntegration;
|
|
101
|
+
}
|
|
102
|
+
exports.IntegrationsResponseDto = IntegrationsResponseDto;
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({ type: ImmichStateDto, required: false }),
|
|
105
|
+
__metadata("design:type", ImmichStateDto)
|
|
106
|
+
], IntegrationsResponseDto.prototype, "immichState", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({ type: ImmichIntegrationDto, required: false }),
|
|
109
|
+
__metadata("design:type", ImmichIntegrationDto)
|
|
110
|
+
], IntegrationsResponseDto.prototype, "immichIntegration", void 0);
|
|
111
|
+
class ConfigureImmichIntegrationRequestDto {
|
|
112
|
+
name;
|
|
113
|
+
worm;
|
|
114
|
+
cron;
|
|
115
|
+
dataFolders;
|
|
116
|
+
backupConfiguration;
|
|
117
|
+
libraries;
|
|
118
|
+
retentionPolicy;
|
|
119
|
+
}
|
|
120
|
+
exports.ConfigureImmichIntegrationRequestDto = ConfigureImmichIntegrationRequestDto;
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
123
|
+
(0, class_validator_1.IsString)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], ConfigureImmichIntegrationRequestDto.prototype, "name", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
128
|
+
(0, class_validator_1.IsBoolean)(),
|
|
129
|
+
__metadata("design:type", Boolean)
|
|
130
|
+
], ConfigureImmichIntegrationRequestDto.prototype, "worm", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
133
|
+
(0, class_validator_1.IsString)(),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], ConfigureImmichIntegrationRequestDto.prototype, "cron", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiProperty)({ type: [String] }),
|
|
138
|
+
(0, class_validator_1.IsArray)(),
|
|
139
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
140
|
+
__metadata("design:type", Array)
|
|
141
|
+
], ConfigureImmichIntegrationRequestDto.prototype, "dataFolders", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
144
|
+
(0, class_validator_1.IsBoolean)(),
|
|
145
|
+
__metadata("design:type", Boolean)
|
|
146
|
+
], ConfigureImmichIntegrationRequestDto.prototype, "backupConfiguration", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, swagger_1.ApiProperty)({
|
|
149
|
+
oneOf: [
|
|
150
|
+
{ type: 'string', enum: ['all'] },
|
|
151
|
+
{ type: 'array', items: { type: 'string' } },
|
|
152
|
+
],
|
|
153
|
+
}),
|
|
154
|
+
(0, class_validator_1.IsDefined)(),
|
|
155
|
+
__metadata("design:type", Object)
|
|
156
|
+
], ConfigureImmichIntegrationRequestDto.prototype, "libraries", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, swagger_1.ApiProperty)({ type: repository_dto_1.RetentionPolicyDto, required: false, nullable: true }),
|
|
159
|
+
(0, class_validator_1.IsOptional)(),
|
|
160
|
+
(0, class_validator_1.IsObject)(),
|
|
161
|
+
__metadata("design:type", Object)
|
|
162
|
+
], ConfigureImmichIntegrationRequestDto.prototype, "retentionPolicy", void 0);
|
|
163
|
+
//# sourceMappingURL=integrations.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.dto.js","sourceRoot":"","sources":["../../src/dto/integrations.dto.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class OnboardingStatusResponseDto {
|
|
2
|
+
hasOnboardedKey: boolean;
|
|
3
|
+
hasBackend: boolean;
|
|
4
|
+
hasBackup: boolean;
|
|
5
|
+
hasSchedule: boolean;
|
|
6
|
+
hasSkippedExtraConfig: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class CurrentRecoveryKeyResponse {
|
|
9
|
+
recoveryKey: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class ImportRecoveryKeyRequest {
|
|
12
|
+
recoveryKey: string;
|
|
13
|
+
}
|
|
@@ -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.ImportRecoveryKeyRequest = exports.CurrentRecoveryKeyResponse = exports.OnboardingStatusResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class OnboardingStatusResponseDto {
|
|
16
|
+
hasOnboardedKey;
|
|
17
|
+
hasBackend;
|
|
18
|
+
hasBackup;
|
|
19
|
+
hasSchedule;
|
|
20
|
+
hasSkippedExtraConfig;
|
|
21
|
+
}
|
|
22
|
+
exports.OnboardingStatusResponseDto = OnboardingStatusResponseDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
25
|
+
__metadata("design:type", Boolean)
|
|
26
|
+
], OnboardingStatusResponseDto.prototype, "hasOnboardedKey", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], OnboardingStatusResponseDto.prototype, "hasBackend", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], OnboardingStatusResponseDto.prototype, "hasBackup", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], OnboardingStatusResponseDto.prototype, "hasSchedule", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], OnboardingStatusResponseDto.prototype, "hasSkippedExtraConfig", void 0);
|
|
43
|
+
class CurrentRecoveryKeyResponse {
|
|
44
|
+
recoveryKey;
|
|
45
|
+
}
|
|
46
|
+
exports.CurrentRecoveryKeyResponse = CurrentRecoveryKeyResponse;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], CurrentRecoveryKeyResponse.prototype, "recoveryKey", void 0);
|
|
51
|
+
class ImportRecoveryKeyRequest {
|
|
52
|
+
recoveryKey;
|
|
53
|
+
}
|
|
54
|
+
exports.ImportRecoveryKeyRequest = ImportRecoveryKeyRequest;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({ type: String }),
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ImportRecoveryKeyRequest.prototype, "recoveryKey", void 0);
|
|
60
|
+
//# sourceMappingURL=onboarding.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.dto.js","sourceRoot":"","sources":["../../src/dto/onboarding.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAE3C,MAAa,2BAA2B;IAEtC,eAAe,CAAW;IAG1B,UAAU,CAAW;IAGrB,SAAS,CAAW;IAGpB,WAAW,CAAW;IAGtB,qBAAqB,CAAW;CACjC;AAfD,kEAeC;AAbC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;oEACL;AAG1B;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;+DACV;AAGrB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;8DACX;AAGpB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;gEACT;AAGtB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;0EACC;AAGlC,MAAa,0BAA0B;IAErC,WAAW,CAAU;CACtB;AAHD,gEAGC;AADC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+DACT;AAGvB,MAAa,wBAAwB;IAGnC,WAAW,CAAU;CACtB;AAJD,4DAIC;AADC;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC7B,IAAA,0BAAQ,GAAE;;6DACU"}
|