@remnawave/subscription-page-types 0.2.5 → 0.2.7

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.
@@ -17,7 +17,7 @@ exports.BASE_TRANSLATION_LABELS = {
17
17
  expires: 'Expires',
18
18
  bandwidth: 'Bandwidth',
19
19
  scanToImport: 'Scan to Import',
20
- expiresIn: 'Expires In',
20
+ expiresIn: 'Expires',
21
21
  expired: 'Expired',
22
22
  unknown: 'Unknown',
23
23
  indefinitely: 'Indefinitely',
@@ -43,7 +43,7 @@ const BlockSchema = zod_1.z.object({
43
43
  buttons: zod_1.z.array(ButtonSchema),
44
44
  });
45
45
  const PlatformAppSchema = zod_1.z.object({
46
- name: zod_1.z.string(),
46
+ name: zod_1.z.string().min(2, 'Name must be at least 2 characters long'),
47
47
  svgIconKey: zod_1.z.optional(zod_1.z.string()),
48
48
  featured: zod_1.z.boolean(),
49
49
  blocks: zod_1.z.array(BlockSchema),
@@ -17,7 +17,7 @@ exports.BASE_TRANSLATION_LABELS = {
17
17
  expires: 'Expires',
18
18
  bandwidth: 'Bandwidth',
19
19
  scanToImport: 'Scan to Import',
20
- expiresIn: 'Expires In',
20
+ expiresIn: 'Expires',
21
21
  expired: 'Expired',
22
22
  unknown: 'Unknown',
23
23
  indefinitely: 'Indefinitely',
@@ -43,7 +43,7 @@ const BlockSchema = zod_1.z.object({
43
43
  buttons: zod_1.z.array(ButtonSchema),
44
44
  });
45
45
  const PlatformAppSchema = zod_1.z.object({
46
- name: zod_1.z.string(),
46
+ name: zod_1.z.string().min(2, 'Name must be at least 2 characters long'),
47
47
  svgIconKey: zod_1.z.optional(zod_1.z.string()),
48
48
  featured: zod_1.z.boolean(),
49
49
  blocks: zod_1.z.array(BlockSchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/subscription-page-types",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A types library for Remnawave Subscription Page.",