@remnawave/backend-contract 2.2.1 → 2.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"get-subscription-by-short-uuid-by-client-type.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-by-short-uuid-by-client-type.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6CAA6C,CAAC;IACpD,MAAM,GAAG,+BAA4B,CAAC;IACtC,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;;;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;CACvD"}
1
+ {"version":3,"file":"get-subscription-by-short-uuid-by-client-type.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-by-short-uuid-by-client-type.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6CAA6C,CAAC;IACpD,MAAM,GAAG,+BAA4B,CAAC;IACtC,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;;;;;;;;;;;MAKxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;CACvD"}
@@ -10,6 +10,8 @@ var GetSubscriptionByShortUuidByClientTypeCommand;
10
10
  GetSubscriptionByShortUuidByClientTypeCommand.TSQ_url = GetSubscriptionByShortUuidByClientTypeCommand.url(':shortUuid');
11
11
  GetSubscriptionByShortUuidByClientTypeCommand.RequestSchema = zod_1.z.object({
12
12
  shortUuid: zod_1.z.string(),
13
- clientType: zod_1.z.nativeEnum(constants_1.REQUEST_TEMPLATE_TYPE),
13
+ clientType: zod_1.z.nativeEnum(constants_1.REQUEST_TEMPLATE_TYPE, {
14
+ message: 'Invalid client type.',
15
+ }),
14
16
  });
15
17
  })(GetSubscriptionByShortUuidByClientTypeCommand || (exports.GetSubscriptionByShortUuidByClientTypeCommand = GetSubscriptionByShortUuidByClientTypeCommand = {}));
@@ -10,6 +10,8 @@ var GetSubscriptionByShortUuidByClientTypeCommand;
10
10
  GetSubscriptionByShortUuidByClientTypeCommand.TSQ_url = GetSubscriptionByShortUuidByClientTypeCommand.url(':shortUuid');
11
11
  GetSubscriptionByShortUuidByClientTypeCommand.RequestSchema = zod_1.z.object({
12
12
  shortUuid: zod_1.z.string(),
13
- clientType: zod_1.z.nativeEnum(constants_1.REQUEST_TEMPLATE_TYPE),
13
+ clientType: zod_1.z.nativeEnum(constants_1.REQUEST_TEMPLATE_TYPE, {
14
+ message: 'Invalid client type.',
15
+ }),
14
16
  });
15
17
  })(GetSubscriptionByShortUuidByClientTypeCommand || (exports.GetSubscriptionByShortUuidByClientTypeCommand = GetSubscriptionByShortUuidByClientTypeCommand = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",