@remnawave/backend-contract 2.1.71 → 2.1.73
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/snippets/create-snippet.command.d.ts +3 -7
- package/build/backend/commands/snippets/create-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/create-snippet.command.js +1 -1
- package/build/backend/commands/snippets/update-snippets.command.d.ts +3 -7
- package/build/backend/commands/snippets/update-snippets.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/update-snippets.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/snippets/create-snippet.command.js +1 -1
- package/build/frontend/commands/snippets/update-snippets.command.js +1 -1
- package/build/frontend/constants/errors/errors.js +10 -0
- package/package.json +1 -1
|
@@ -5,17 +5,13 @@ export declare namespace CreateSnippetCommand {
|
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
name: z.ZodString;
|
|
8
|
-
snippet: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough"
|
|
8
|
+
snippet: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name: string;
|
|
11
|
-
snippet: {}
|
|
12
|
-
[k: string]: unknown;
|
|
13
|
-
};
|
|
11
|
+
snippet: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
14
12
|
}, {
|
|
15
13
|
name: string;
|
|
16
|
-
snippet: {}
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
};
|
|
14
|
+
snippet: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
19
15
|
}>;
|
|
20
16
|
type Request = z.infer<typeof RequestSchema>;
|
|
21
17
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-snippet.command.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/create-snippet.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,kBAA2B,CAAC;IACrC,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"create-snippet.command.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/create-snippet.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,kBAA2B,CAAC;IACrC,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -16,7 +16,7 @@ var CreateSnippetCommand;
|
|
|
16
16
|
.min(2, 'Name must be at least 2 characters')
|
|
17
17
|
.max(255, 'Name must be less than 255 characters')
|
|
18
18
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
-
snippet: zod_1.z.object({}).passthrough(),
|
|
19
|
+
snippet: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
20
20
|
});
|
|
21
21
|
CreateSnippetCommand.ResponseSchema = zod_1.z.object({
|
|
22
22
|
response: zod_1.z.object({
|
|
@@ -5,17 +5,13 @@ export declare namespace UpdateSnippetCommand {
|
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
name: z.ZodString;
|
|
8
|
-
snippet: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough"
|
|
8
|
+
snippet: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name: string;
|
|
11
|
-
snippet: {}
|
|
12
|
-
[k: string]: unknown;
|
|
13
|
-
};
|
|
11
|
+
snippet: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
14
12
|
}, {
|
|
15
13
|
name: string;
|
|
16
|
-
snippet: {}
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
};
|
|
14
|
+
snippet: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
19
15
|
}>;
|
|
20
16
|
type Request = z.infer<typeof RequestSchema>;
|
|
21
17
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-snippets.command.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/update-snippets.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,kBAA2B,CAAC;IACrC,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"update-snippets.command.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/update-snippets.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,kBAA2B,CAAC;IACrC,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -16,7 +16,7 @@ var UpdateSnippetCommand;
|
|
|
16
16
|
.min(2, 'Name must be at least 2 characters')
|
|
17
17
|
.max(255, 'Name must be less than 255 characters')
|
|
18
18
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
-
snippet: zod_1.z.object({}).passthrough(),
|
|
19
|
+
snippet: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
20
20
|
});
|
|
21
21
|
UpdateSnippetCommand.ResponseSchema = zod_1.z.object({
|
|
22
22
|
response: zod_1.z.object({
|
|
@@ -854,5 +854,15 @@ export declare const ERRORS: {
|
|
|
854
854
|
readonly message: "Update snippet error";
|
|
855
855
|
readonly httpCode: 500;
|
|
856
856
|
};
|
|
857
|
+
readonly SNIPPET_CANNOT_BE_EMPTY: {
|
|
858
|
+
readonly code: "A166";
|
|
859
|
+
readonly message: "Snippet cannot be empty";
|
|
860
|
+
readonly httpCode: 400;
|
|
861
|
+
};
|
|
862
|
+
readonly SNIPPET_CANNOT_CONTAIN_EMPTY_OBJECTS: {
|
|
863
|
+
readonly code: "A167";
|
|
864
|
+
readonly message: "Snippet cannot contain empty objects";
|
|
865
|
+
readonly httpCode: 400;
|
|
866
|
+
};
|
|
857
867
|
};
|
|
858
868
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAshB3B,CAAC"}
|
|
@@ -825,4 +825,14 @@ exports.ERRORS = {
|
|
|
825
825
|
message: 'Update snippet error',
|
|
826
826
|
httpCode: 500,
|
|
827
827
|
},
|
|
828
|
+
SNIPPET_CANNOT_BE_EMPTY: {
|
|
829
|
+
code: 'A166',
|
|
830
|
+
message: 'Snippet cannot be empty',
|
|
831
|
+
httpCode: 400,
|
|
832
|
+
},
|
|
833
|
+
SNIPPET_CANNOT_CONTAIN_EMPTY_OBJECTS: {
|
|
834
|
+
code: 'A167',
|
|
835
|
+
message: 'Snippet cannot contain empty objects',
|
|
836
|
+
httpCode: 400,
|
|
837
|
+
},
|
|
828
838
|
};
|
|
@@ -16,7 +16,7 @@ var CreateSnippetCommand;
|
|
|
16
16
|
.min(2, 'Name must be at least 2 characters')
|
|
17
17
|
.max(255, 'Name must be less than 255 characters')
|
|
18
18
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
-
snippet: zod_1.z.object({}).passthrough(),
|
|
19
|
+
snippet: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
20
20
|
});
|
|
21
21
|
CreateSnippetCommand.ResponseSchema = zod_1.z.object({
|
|
22
22
|
response: zod_1.z.object({
|
|
@@ -16,7 +16,7 @@ var UpdateSnippetCommand;
|
|
|
16
16
|
.min(2, 'Name must be at least 2 characters')
|
|
17
17
|
.max(255, 'Name must be less than 255 characters')
|
|
18
18
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
-
snippet: zod_1.z.object({}).passthrough(),
|
|
19
|
+
snippet: zod_1.z.array(zod_1.z.object({}).passthrough()),
|
|
20
20
|
});
|
|
21
21
|
UpdateSnippetCommand.ResponseSchema = zod_1.z.object({
|
|
22
22
|
response: zod_1.z.object({
|
|
@@ -825,4 +825,14 @@ exports.ERRORS = {
|
|
|
825
825
|
message: 'Update snippet error',
|
|
826
826
|
httpCode: 500,
|
|
827
827
|
},
|
|
828
|
+
SNIPPET_CANNOT_BE_EMPTY: {
|
|
829
|
+
code: 'A166',
|
|
830
|
+
message: 'Snippet cannot be empty',
|
|
831
|
+
httpCode: 400,
|
|
832
|
+
},
|
|
833
|
+
SNIPPET_CANNOT_CONTAIN_EMPTY_OBJECTS: {
|
|
834
|
+
code: 'A167',
|
|
835
|
+
message: 'Snippet cannot contain empty objects',
|
|
836
|
+
httpCode: 400,
|
|
837
|
+
},
|
|
828
838
|
};
|