@remnawave/backend-contract 0.7.19 → 0.7.20
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/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +9 -9
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +9 -9
- package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/backend/constants/errors/errors.d.ts +10 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +10 -0
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/frontend/constants/errors/errors.js +10 -0
- package/package.json +1 -1
@@ -29,7 +29,7 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
29
29
|
const ResponseSchema: z.ZodObject<{
|
30
30
|
response: z.ZodObject<{
|
31
31
|
total: z.ZodNumber;
|
32
|
-
|
32
|
+
devices: z.ZodArray<z.ZodObject<{
|
33
33
|
hwid: z.ZodString;
|
34
34
|
userUuid: z.ZodString;
|
35
35
|
platform: z.ZodNullable<z.ZodString>;
|
@@ -58,8 +58,7 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
58
58
|
userAgent: string | null;
|
59
59
|
}>, "many">;
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
61
|
-
|
62
|
-
device: {
|
61
|
+
devices: {
|
63
62
|
hwid: string;
|
64
63
|
createdAt: Date;
|
65
64
|
updatedAt: Date;
|
@@ -69,9 +68,9 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
69
68
|
deviceModel: string | null;
|
70
69
|
userAgent: string | null;
|
71
70
|
}[];
|
72
|
-
}, {
|
73
71
|
total: number;
|
74
|
-
|
72
|
+
}, {
|
73
|
+
devices: {
|
75
74
|
hwid: string;
|
76
75
|
createdAt: string;
|
77
76
|
updatedAt: string;
|
@@ -81,11 +80,11 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
81
80
|
deviceModel: string | null;
|
82
81
|
userAgent: string | null;
|
83
82
|
}[];
|
83
|
+
total: number;
|
84
84
|
}>;
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
86
86
|
response: {
|
87
|
-
|
88
|
-
device: {
|
87
|
+
devices: {
|
89
88
|
hwid: string;
|
90
89
|
createdAt: Date;
|
91
90
|
updatedAt: Date;
|
@@ -95,11 +94,11 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
95
94
|
deviceModel: string | null;
|
96
95
|
userAgent: string | null;
|
97
96
|
}[];
|
97
|
+
total: number;
|
98
98
|
};
|
99
99
|
}, {
|
100
100
|
response: {
|
101
|
-
|
102
|
-
device: {
|
101
|
+
devices: {
|
103
102
|
hwid: string;
|
104
103
|
createdAt: string;
|
105
104
|
updatedAt: string;
|
@@ -109,6 +108,7 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
109
108
|
deviceModel: string | null;
|
110
109
|
userAgent: string | null;
|
111
110
|
}[];
|
111
|
+
total: number;
|
112
112
|
};
|
113
113
|
}>;
|
114
114
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -21,7 +21,7 @@ var CreateUserHwidDeviceCommand;
|
|
21
21
|
CreateUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
22
22
|
response: zod_1.z.object({
|
23
23
|
total: zod_1.z.number(),
|
24
|
-
|
24
|
+
devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
|
25
25
|
}),
|
26
26
|
});
|
27
27
|
})(CreateUserHwidDeviceCommand || (exports.CreateUserHwidDeviceCommand = CreateUserHwidDeviceCommand = {}));
|
@@ -17,7 +17,7 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
17
17
|
const ResponseSchema: z.ZodObject<{
|
18
18
|
response: z.ZodObject<{
|
19
19
|
total: z.ZodNumber;
|
20
|
-
|
20
|
+
devices: z.ZodArray<z.ZodObject<{
|
21
21
|
hwid: z.ZodString;
|
22
22
|
userUuid: z.ZodString;
|
23
23
|
platform: z.ZodNullable<z.ZodString>;
|
@@ -46,8 +46,7 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
46
46
|
userAgent: string | null;
|
47
47
|
}>, "many">;
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
49
|
-
|
50
|
-
device: {
|
49
|
+
devices: {
|
51
50
|
hwid: string;
|
52
51
|
createdAt: Date;
|
53
52
|
updatedAt: Date;
|
@@ -57,9 +56,9 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
57
56
|
deviceModel: string | null;
|
58
57
|
userAgent: string | null;
|
59
58
|
}[];
|
60
|
-
}, {
|
61
59
|
total: number;
|
62
|
-
|
60
|
+
}, {
|
61
|
+
devices: {
|
63
62
|
hwid: string;
|
64
63
|
createdAt: string;
|
65
64
|
updatedAt: string;
|
@@ -69,11 +68,11 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
69
68
|
deviceModel: string | null;
|
70
69
|
userAgent: string | null;
|
71
70
|
}[];
|
71
|
+
total: number;
|
72
72
|
}>;
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
74
74
|
response: {
|
75
|
-
|
76
|
-
device: {
|
75
|
+
devices: {
|
77
76
|
hwid: string;
|
78
77
|
createdAt: Date;
|
79
78
|
updatedAt: Date;
|
@@ -83,11 +82,11 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
83
82
|
deviceModel: string | null;
|
84
83
|
userAgent: string | null;
|
85
84
|
}[];
|
85
|
+
total: number;
|
86
86
|
};
|
87
87
|
}, {
|
88
88
|
response: {
|
89
|
-
|
90
|
-
device: {
|
89
|
+
devices: {
|
91
90
|
hwid: string;
|
92
91
|
createdAt: string;
|
93
92
|
updatedAt: string;
|
@@ -97,6 +96,7 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
97
96
|
deviceModel: string | null;
|
98
97
|
userAgent: string | null;
|
99
98
|
}[];
|
99
|
+
total: number;
|
100
100
|
};
|
101
101
|
}>;
|
102
102
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -17,7 +17,7 @@ var DeleteUserHwidDeviceCommand;
|
|
17
17
|
DeleteUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
18
18
|
response: zod_1.z.object({
|
19
19
|
total: zod_1.z.number(),
|
20
|
-
|
20
|
+
devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
|
21
21
|
}),
|
22
22
|
});
|
23
23
|
})(DeleteUserHwidDeviceCommand || (exports.DeleteUserHwidDeviceCommand = DeleteUserHwidDeviceCommand = {}));
|
@@ -559,5 +559,15 @@ export declare const ERRORS: {
|
|
559
559
|
readonly message: "Bulk delete by status error";
|
560
560
|
readonly httpCode: 500;
|
561
561
|
};
|
562
|
+
readonly CLEAN_OLD_USAGE_RECORDS_ERROR: {
|
563
|
+
readonly code: "A107";
|
564
|
+
readonly message: "Clean old usage records error";
|
565
|
+
readonly httpCode: 500;
|
566
|
+
};
|
567
|
+
readonly VACUUM_TABLE_ERROR: {
|
568
|
+
readonly code: "A108";
|
569
|
+
readonly message: "Vacuum table error";
|
570
|
+
readonly httpCode: 500;
|
571
|
+
};
|
562
572
|
};
|
563
573
|
//# sourceMappingURL=errors.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8O3B,CAAC"}
|
@@ -530,4 +530,14 @@ exports.ERRORS = {
|
|
530
530
|
message: 'Bulk delete by status error',
|
531
531
|
httpCode: 500,
|
532
532
|
},
|
533
|
+
CLEAN_OLD_USAGE_RECORDS_ERROR: {
|
534
|
+
code: 'A107',
|
535
|
+
message: 'Clean old usage records error',
|
536
|
+
httpCode: 500,
|
537
|
+
},
|
538
|
+
VACUUM_TABLE_ERROR: {
|
539
|
+
code: 'A108',
|
540
|
+
message: 'Vacuum table error',
|
541
|
+
httpCode: 500,
|
542
|
+
},
|
533
543
|
};
|
@@ -21,7 +21,7 @@ var CreateUserHwidDeviceCommand;
|
|
21
21
|
CreateUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
22
22
|
response: zod_1.z.object({
|
23
23
|
total: zod_1.z.number(),
|
24
|
-
|
24
|
+
devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
|
25
25
|
}),
|
26
26
|
});
|
27
27
|
})(CreateUserHwidDeviceCommand || (exports.CreateUserHwidDeviceCommand = CreateUserHwidDeviceCommand = {}));
|
@@ -17,7 +17,7 @@ var DeleteUserHwidDeviceCommand;
|
|
17
17
|
DeleteUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
18
18
|
response: zod_1.z.object({
|
19
19
|
total: zod_1.z.number(),
|
20
|
-
|
20
|
+
devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
|
21
21
|
}),
|
22
22
|
});
|
23
23
|
})(DeleteUserHwidDeviceCommand || (exports.DeleteUserHwidDeviceCommand = DeleteUserHwidDeviceCommand = {}));
|
@@ -530,4 +530,14 @@ exports.ERRORS = {
|
|
530
530
|
message: 'Bulk delete by status error',
|
531
531
|
httpCode: 500,
|
532
532
|
},
|
533
|
+
CLEAN_OLD_USAGE_RECORDS_ERROR: {
|
534
|
+
code: 'A107',
|
535
|
+
message: 'Clean old usage records error',
|
536
|
+
httpCode: 500,
|
537
|
+
},
|
538
|
+
VACUUM_TABLE_ERROR: {
|
539
|
+
code: 'A108',
|
540
|
+
message: 'Vacuum table error',
|
541
|
+
httpCode: 500,
|
542
|
+
},
|
533
543
|
};
|