@futo-org/backups-orchestrator-api 0.39.0 → 0.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backends/local.backend.js +6 -0
- package/dist/backends/local.backend.js.map +1 -1
- package/dist/dto/auth.dto.d.ts +15 -9
- package/dist/dto/auth.dto.js +15 -49
- package/dist/dto/auth.dto.js.map +1 -1
- package/dist/dto/backend.dto.d.ts +35 -12
- package/dist/dto/backend.dto.js +20 -57
- package/dist/dto/backend.dto.js.map +1 -1
- package/dist/dto/filesystem.dto.d.ts +20 -9
- package/dist/dto/filesystem.dto.js +21 -46
- package/dist/dto/filesystem.dto.js.map +1 -1
- package/dist/dto/integrations.dto.d.ts +83 -34
- package/dist/dto/integrations.dto.js +64 -173
- package/dist/dto/integrations.dto.js.map +1 -1
- package/dist/dto/onboarding.dto.d.ts +23 -15
- package/dist/dto/onboarding.dto.js +23 -75
- package/dist/dto/onboarding.dto.js.map +1 -1
- package/dist/dto/repository.dto.d.ts +550 -128
- package/dist/dto/repository.dto.js +181 -430
- package/dist/dto/repository.dto.js.map +1 -1
- package/dist/dto/runningTasks.dto.d.ts +31 -10
- package/dist/dto/runningTasks.dto.js +25 -49
- package/dist/dto/runningTasks.dto.js.map +1 -1
- package/dist/dto/schedule.dto.d.ts +61 -23
- package/dist/dto/schedule.dto.js +47 -130
- package/dist/dto/schedule.dto.js.map +1 -1
- package/dist/dto/ticket.dto.d.ts +11 -5
- package/dist/dto/ticket.dto.js +13 -30
- package/dist/dto/ticket.dto.js.map +1 -1
- package/dist/repositories/runHistory.repository.d.ts +4 -4
- package/package.json +5 -5
|
@@ -1,192 +1,83 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ImmichRollbackRequestDto = exports.ConfigureImmichIntegrationRequestDto = exports.IntegrationsResponseDto = exports.ImmichIntegrationDto = exports.ImmichIntegrationConfigurationDto = exports.ImmichStateDto = exports.ImmichLibraryDto = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
4
|
+
const nestjs_zod_1 = require("nestjs-zod");
|
|
5
|
+
const zod_1 = require("zod");
|
|
15
6
|
const repository_dto_1 = require("./repository.dto");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
const LibrariesSchema = zod_1.z.union([zod_1.z.literal('all'), zod_1.z.array(zod_1.z.string())]);
|
|
8
|
+
const ImmichLibrarySchema = zod_1.z
|
|
9
|
+
.object({
|
|
10
|
+
id: zod_1.z.string(),
|
|
11
|
+
name: zod_1.z.string(),
|
|
12
|
+
importPaths: zod_1.z.array(zod_1.z.string()),
|
|
13
|
+
exclusionPatterns: zod_1.z.array(zod_1.z.string()),
|
|
14
|
+
})
|
|
15
|
+
.meta({ id: 'ImmichLibraryDto' });
|
|
16
|
+
const ImmichStateSchema = zod_1.z
|
|
17
|
+
.object({
|
|
18
|
+
dataPath: zod_1.z.string(),
|
|
19
|
+
dataFolders: zod_1.z.array(zod_1.z.string()),
|
|
20
|
+
libraries: zod_1.z.array(ImmichLibrarySchema),
|
|
21
|
+
})
|
|
22
|
+
.meta({ id: 'ImmichStateDto' });
|
|
23
|
+
const ImmichIntegrationConfigurationSchema = zod_1.z
|
|
24
|
+
.object({
|
|
25
|
+
dataFolders: zod_1.z.array(zod_1.z.string()),
|
|
26
|
+
backupConfiguration: zod_1.z.boolean(),
|
|
27
|
+
libraries: LibrariesSchema,
|
|
28
|
+
})
|
|
29
|
+
.meta({ id: 'ImmichIntegrationConfigurationDto' });
|
|
30
|
+
const ImmichIntegrationSchema = zod_1.z
|
|
31
|
+
.object({
|
|
32
|
+
id: zod_1.z.string(),
|
|
33
|
+
scheduleId: zod_1.z.string(),
|
|
34
|
+
configuration: ImmichIntegrationConfigurationSchema,
|
|
35
|
+
})
|
|
36
|
+
.meta({ id: 'ImmichIntegrationDto' });
|
|
37
|
+
const IntegrationsResponseSchema = zod_1.z
|
|
38
|
+
.object({
|
|
39
|
+
immichState: ImmichStateSchema.optional(),
|
|
40
|
+
immichIntegration: ImmichIntegrationSchema.optional(),
|
|
41
|
+
})
|
|
42
|
+
.meta({ id: 'IntegrationsResponseDto' });
|
|
43
|
+
const ConfigureImmichIntegrationRequestSchema = zod_1.z
|
|
44
|
+
.object({
|
|
45
|
+
name: zod_1.z.string(),
|
|
46
|
+
worm: zod_1.z.boolean(),
|
|
47
|
+
cron: zod_1.z.string(),
|
|
48
|
+
dataFolders: zod_1.z.array(zod_1.z.string()),
|
|
49
|
+
backupConfiguration: zod_1.z.boolean(),
|
|
50
|
+
libraries: LibrariesSchema,
|
|
51
|
+
retentionPolicy: repository_dto_1.RetentionPolicySchema.nullable().optional(),
|
|
52
|
+
paused: zod_1.z.boolean().optional(),
|
|
53
|
+
})
|
|
54
|
+
.meta({ id: 'ConfigureImmichIntegrationRequestDto' });
|
|
55
|
+
const ImmichRollbackRequestSchema = zod_1.z
|
|
56
|
+
.object({
|
|
57
|
+
repositoryId: zod_1.z.string(),
|
|
58
|
+
snapshotId: zod_1.z.string(),
|
|
59
|
+
backupFileName: zod_1.z.string().optional(),
|
|
60
|
+
})
|
|
61
|
+
.meta({ id: 'ImmichRollbackRequestDto' });
|
|
62
|
+
class ImmichLibraryDto extends (0, nestjs_zod_1.createZodDto)(ImmichLibrarySchema) {
|
|
21
63
|
}
|
|
22
64
|
exports.ImmichLibraryDto = ImmichLibraryDto;
|
|
23
|
-
|
|
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;
|
|
65
|
+
class ImmichStateDto extends (0, nestjs_zod_1.createZodDto)(ImmichStateSchema) {
|
|
43
66
|
}
|
|
44
67
|
exports.ImmichStateDto = ImmichStateDto;
|
|
45
|
-
|
|
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;
|
|
68
|
+
class ImmichIntegrationConfigurationDto extends (0, nestjs_zod_1.createZodDto)(ImmichIntegrationConfigurationSchema) {
|
|
61
69
|
}
|
|
62
70
|
exports.ImmichIntegrationConfigurationDto = ImmichIntegrationConfigurationDto;
|
|
63
|
-
|
|
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;
|
|
71
|
+
class ImmichIntegrationDto extends (0, nestjs_zod_1.createZodDto)(ImmichIntegrationSchema) {
|
|
84
72
|
}
|
|
85
73
|
exports.ImmichIntegrationDto = ImmichIntegrationDto;
|
|
86
|
-
|
|
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;
|
|
74
|
+
class IntegrationsResponseDto extends (0, nestjs_zod_1.createZodDto)(IntegrationsResponseSchema) {
|
|
101
75
|
}
|
|
102
76
|
exports.IntegrationsResponseDto = IntegrationsResponseDto;
|
|
103
|
-
|
|
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
|
-
paused;
|
|
77
|
+
class ConfigureImmichIntegrationRequestDto extends (0, nestjs_zod_1.createZodDto)(ConfigureImmichIntegrationRequestSchema) {
|
|
120
78
|
}
|
|
121
79
|
exports.ConfigureImmichIntegrationRequestDto = ConfigureImmichIntegrationRequestDto;
|
|
122
|
-
|
|
123
|
-
(0, swagger_1.ApiProperty)({ type: String }),
|
|
124
|
-
(0, class_validator_1.IsString)(),
|
|
125
|
-
__metadata("design:type", String)
|
|
126
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "name", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
129
|
-
(0, class_validator_1.IsBoolean)(),
|
|
130
|
-
__metadata("design:type", Boolean)
|
|
131
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "worm", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, swagger_1.ApiProperty)({ type: String }),
|
|
134
|
-
(0, class_validator_1.IsString)(),
|
|
135
|
-
__metadata("design:type", String)
|
|
136
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "cron", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
(0, swagger_1.ApiProperty)({ type: [String] }),
|
|
139
|
-
(0, class_validator_1.IsArray)(),
|
|
140
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
141
|
-
__metadata("design:type", Array)
|
|
142
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "dataFolders", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
145
|
-
(0, class_validator_1.IsBoolean)(),
|
|
146
|
-
__metadata("design:type", Boolean)
|
|
147
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "backupConfiguration", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, swagger_1.ApiProperty)({
|
|
150
|
-
oneOf: [
|
|
151
|
-
{ type: 'string', enum: ['all'] },
|
|
152
|
-
{ type: 'array', items: { type: 'string' } },
|
|
153
|
-
],
|
|
154
|
-
}),
|
|
155
|
-
(0, class_validator_1.IsDefined)(),
|
|
156
|
-
__metadata("design:type", Object)
|
|
157
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "libraries", void 0);
|
|
158
|
-
__decorate([
|
|
159
|
-
(0, swagger_1.ApiProperty)({ type: repository_dto_1.RetentionPolicyDto, required: false, nullable: true }),
|
|
160
|
-
(0, class_validator_1.IsOptional)(),
|
|
161
|
-
(0, class_validator_1.IsObject)(),
|
|
162
|
-
__metadata("design:type", Object)
|
|
163
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "retentionPolicy", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, required: false }),
|
|
166
|
-
(0, class_validator_1.IsOptional)(),
|
|
167
|
-
(0, class_validator_1.IsBoolean)(),
|
|
168
|
-
__metadata("design:type", Boolean)
|
|
169
|
-
], ConfigureImmichIntegrationRequestDto.prototype, "paused", void 0);
|
|
170
|
-
class ImmichRollbackRequestDto {
|
|
171
|
-
repositoryId;
|
|
172
|
-
snapshotId;
|
|
173
|
-
backupFileName;
|
|
80
|
+
class ImmichRollbackRequestDto extends (0, nestjs_zod_1.createZodDto)(ImmichRollbackRequestSchema) {
|
|
174
81
|
}
|
|
175
82
|
exports.ImmichRollbackRequestDto = ImmichRollbackRequestDto;
|
|
176
|
-
__decorate([
|
|
177
|
-
(0, swagger_1.ApiProperty)({ type: String }),
|
|
178
|
-
(0, class_validator_1.IsString)(),
|
|
179
|
-
__metadata("design:type", String)
|
|
180
|
-
], ImmichRollbackRequestDto.prototype, "repositoryId", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, swagger_1.ApiProperty)({ type: String }),
|
|
183
|
-
(0, class_validator_1.IsString)(),
|
|
184
|
-
__metadata("design:type", String)
|
|
185
|
-
], ImmichRollbackRequestDto.prototype, "snapshotId", void 0);
|
|
186
|
-
__decorate([
|
|
187
|
-
(0, swagger_1.ApiProperty)({ type: String, required: false }),
|
|
188
|
-
(0, class_validator_1.IsOptional)(),
|
|
189
|
-
(0, class_validator_1.IsString)(),
|
|
190
|
-
__metadata("design:type", String)
|
|
191
|
-
], ImmichRollbackRequestDto.prototype, "backupFileName", void 0);
|
|
192
83
|
//# sourceMappingURL=integrations.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.dto.js","sourceRoot":"","sources":["../../src/dto/integrations.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EAAE,CAAC,CAAC;AAE5C,MAAa,gBAAiB,SAAQ,IAAA,yBAAY,EAAC,mBAAmB,CAAC;CAAG;AAA1E,4CAA0E;AAC1E,MAAa,cAAe,SAAQ,IAAA,yBAAY,EAAC,iBAAiB,CAAC;CAAG;AAAtE,wCAAsE;AACtE,MAAa,iCAAkC,SAAQ,IAAA,yBAAY,EAAC,oCAAoC,CAAC;CAAG;AAA5G,8EAA4G;AAC5G,MAAa,oBAAqB,SAAQ,IAAA,yBAAY,EAAC,uBAAuB,CAAC;CAAG;AAAlF,oDAAkF;AAClF,MAAa,uBAAwB,SAAQ,IAAA,yBAAY,EAAC,0BAA0B,CAAC;CAAG;AAAxF,0DAAwF;AACxF,MAAa,oCAAqC,SAAQ,IAAA,yBAAY,EAAC,uCAAuC,CAAC;CAAG;AAAlH,oFAAkH;AAClH,MAAa,wBAAyB,SAAQ,IAAA,yBAAY,EAAC,2BAA2B,CAAC;CAAG;AAA1F,4DAA0F"}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { BootstrapStatus, TelemetryLevel } from '../enum';
|
|
2
|
-
|
|
3
|
-
status: BootstrapStatus
|
|
4
|
-
error
|
|
5
|
-
hasTelemetry: TelemetryLevel
|
|
6
|
-
requiresAuthentication:
|
|
7
|
-
isAuthenticated:
|
|
8
|
-
hasOnboardedKey:
|
|
9
|
-
hasBackend:
|
|
10
|
-
hasBackup:
|
|
11
|
-
hasSchedule:
|
|
12
|
-
hasSkippedExtraConfig:
|
|
3
|
+
declare const OnboardingStatusResponseDto_base: import("nestjs-zod").ZodDto<z.ZodObject<{
|
|
4
|
+
status: z.ZodEnum<typeof BootstrapStatus>;
|
|
5
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6
|
+
hasTelemetry: z.ZodEnum<typeof TelemetryLevel>;
|
|
7
|
+
requiresAuthentication: z.ZodBoolean;
|
|
8
|
+
isAuthenticated: z.ZodBoolean;
|
|
9
|
+
hasOnboardedKey: z.ZodBoolean;
|
|
10
|
+
hasBackend: z.ZodBoolean;
|
|
11
|
+
hasBackup: z.ZodBoolean;
|
|
12
|
+
hasSchedule: z.ZodBoolean;
|
|
13
|
+
hasSkippedExtraConfig: z.ZodBoolean;
|
|
14
|
+
}, z.core.$strip>, false>;
|
|
15
|
+
export declare class OnboardingStatusResponseDto extends OnboardingStatusResponseDto_base {
|
|
13
16
|
}
|
|
14
|
-
|
|
15
|
-
recoveryKey:
|
|
17
|
+
declare const CurrentRecoveryKeyResponse_base: import("nestjs-zod").ZodDto<z.ZodObject<{
|
|
18
|
+
recoveryKey: z.ZodString;
|
|
19
|
+
}, z.core.$strip>, false>;
|
|
20
|
+
export declare class CurrentRecoveryKeyResponse extends CurrentRecoveryKeyResponse_base {
|
|
16
21
|
}
|
|
17
|
-
|
|
18
|
-
recoveryKey:
|
|
22
|
+
declare const ImportRecoveryKeyRequest_base: import("nestjs-zod").ZodDto<z.ZodObject<{
|
|
23
|
+
recoveryKey: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, false>;
|
|
25
|
+
export declare class ImportRecoveryKeyRequest extends ImportRecoveryKeyRequest_base {
|
|
19
26
|
}
|
|
27
|
+
export {};
|
|
@@ -1,86 +1,34 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ImportRecoveryKeyRequest = exports.CurrentRecoveryKeyResponse = exports.OnboardingStatusResponseDto = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
4
|
+
const nestjs_zod_1 = require("nestjs-zod");
|
|
5
|
+
const zod_1 = require("zod");
|
|
15
6
|
const enum_1 = require("../enum");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
7
|
+
const OnboardingStatusResponseSchema = zod_1.z
|
|
8
|
+
.object({
|
|
9
|
+
status: zod_1.z.enum(enum_1.BootstrapStatus).meta({ id: 'BootstrapStatus' }),
|
|
10
|
+
error: zod_1.z.string().optional(),
|
|
11
|
+
hasTelemetry: zod_1.z.enum(enum_1.TelemetryLevel).meta({ id: 'TelemetryLevel' }),
|
|
12
|
+
requiresAuthentication: zod_1.z.boolean(),
|
|
13
|
+
isAuthenticated: zod_1.z.boolean(),
|
|
14
|
+
hasOnboardedKey: zod_1.z.boolean(),
|
|
15
|
+
hasBackend: zod_1.z.boolean(),
|
|
16
|
+
hasBackup: zod_1.z.boolean(),
|
|
17
|
+
hasSchedule: zod_1.z.boolean(),
|
|
18
|
+
hasSkippedExtraConfig: zod_1.z.boolean(),
|
|
19
|
+
})
|
|
20
|
+
.meta({ id: 'OnboardingStatusResponseDto' });
|
|
21
|
+
const CurrentRecoveryKeyResponseSchema = zod_1.z
|
|
22
|
+
.object({ recoveryKey: zod_1.z.string() })
|
|
23
|
+
.meta({ id: 'CurrentRecoveryKeyResponse' });
|
|
24
|
+
const ImportRecoveryKeyRequestSchema = zod_1.z.object({ recoveryKey: zod_1.z.string() }).meta({ id: 'ImportRecoveryKeyRequest' });
|
|
25
|
+
class OnboardingStatusResponseDto extends (0, nestjs_zod_1.createZodDto)(OnboardingStatusResponseSchema) {
|
|
27
26
|
}
|
|
28
27
|
exports.OnboardingStatusResponseDto = OnboardingStatusResponseDto;
|
|
29
|
-
|
|
30
|
-
(0, swagger_1.ApiProperty)({ enum: enum_1.BootstrapStatus, enumName: 'BootstrapStatus' }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], OnboardingStatusResponseDto.prototype, "status", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ type: String, required: false }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], OnboardingStatusResponseDto.prototype, "error", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)({ enum: enum_1.TelemetryLevel, enumName: 'TelemetryLevel' }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], OnboardingStatusResponseDto.prototype, "hasTelemetry", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
43
|
-
__metadata("design:type", Boolean)
|
|
44
|
-
], OnboardingStatusResponseDto.prototype, "requiresAuthentication", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
47
|
-
__metadata("design:type", Boolean)
|
|
48
|
-
], OnboardingStatusResponseDto.prototype, "isAuthenticated", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
51
|
-
__metadata("design:type", Boolean)
|
|
52
|
-
], OnboardingStatusResponseDto.prototype, "hasOnboardedKey", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
55
|
-
__metadata("design:type", Boolean)
|
|
56
|
-
], OnboardingStatusResponseDto.prototype, "hasBackend", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
59
|
-
__metadata("design:type", Boolean)
|
|
60
|
-
], OnboardingStatusResponseDto.prototype, "hasBackup", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
63
|
-
__metadata("design:type", Boolean)
|
|
64
|
-
], OnboardingStatusResponseDto.prototype, "hasSchedule", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, swagger_1.ApiProperty)({ type: Boolean }),
|
|
67
|
-
__metadata("design:type", Boolean)
|
|
68
|
-
], OnboardingStatusResponseDto.prototype, "hasSkippedExtraConfig", void 0);
|
|
69
|
-
class CurrentRecoveryKeyResponse {
|
|
70
|
-
recoveryKey;
|
|
28
|
+
class CurrentRecoveryKeyResponse extends (0, nestjs_zod_1.createZodDto)(CurrentRecoveryKeyResponseSchema) {
|
|
71
29
|
}
|
|
72
30
|
exports.CurrentRecoveryKeyResponse = CurrentRecoveryKeyResponse;
|
|
73
|
-
|
|
74
|
-
(0, swagger_1.ApiProperty)({ type: String }),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], CurrentRecoveryKeyResponse.prototype, "recoveryKey", void 0);
|
|
77
|
-
class ImportRecoveryKeyRequest {
|
|
78
|
-
recoveryKey;
|
|
31
|
+
class ImportRecoveryKeyRequest extends (0, nestjs_zod_1.createZodDto)(ImportRecoveryKeyRequestSchema) {
|
|
79
32
|
}
|
|
80
33
|
exports.ImportRecoveryKeyRequest = ImportRecoveryKeyRequest;
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, swagger_1.ApiProperty)({ type: String }),
|
|
83
|
-
(0, class_validator_1.IsString)(),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], ImportRecoveryKeyRequest.prototype, "recoveryKey", void 0);
|
|
86
34
|
//# sourceMappingURL=onboarding.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding.dto.js","sourceRoot":"","sources":["../../src/dto/onboarding.dto.ts"],"names":[],"m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