@remnawave/backend-contract 0.1.1 → 0.1.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.
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +27 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +4 -0
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +4 -0
- package/package.json +1 -1
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts
CHANGED
@@ -27,9 +27,16 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
27
27
|
readonly LIMITED: "LIMITED";
|
28
28
|
readonly EXPIRED: "EXPIRED";
|
29
29
|
}>;
|
30
|
+
trafficLimitStrategy: z.ZodNativeEnum<{
|
31
|
+
readonly NO_RESET: "NO_RESET";
|
32
|
+
readonly DAY: "DAY";
|
33
|
+
readonly WEEK: "WEEK";
|
34
|
+
readonly MONTH: "MONTH";
|
35
|
+
}>;
|
30
36
|
}, "strip", z.ZodTypeAny, {
|
31
37
|
username: string;
|
32
38
|
shortUuid: string;
|
39
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
33
40
|
daysLeft: number;
|
34
41
|
trafficUsed: string;
|
35
42
|
trafficLimit: string;
|
@@ -39,6 +46,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
39
46
|
}, {
|
40
47
|
username: string;
|
41
48
|
shortUuid: string;
|
49
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
42
50
|
daysLeft: number;
|
43
51
|
trafficUsed: string;
|
44
52
|
trafficLimit: string;
|
@@ -46,11 +54,15 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
46
54
|
isActive: boolean;
|
47
55
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
48
56
|
}>;
|
57
|
+
links: z.ZodArray<z.ZodString, "many">;
|
58
|
+
ssConfLinks: z.ZodRecord<z.ZodString, z.ZodString>;
|
59
|
+
subscriptionUrl: z.ZodString;
|
49
60
|
}, "strip", z.ZodTypeAny, {
|
50
61
|
isFound: boolean;
|
51
62
|
user: {
|
52
63
|
username: string;
|
53
64
|
shortUuid: string;
|
65
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
54
66
|
daysLeft: number;
|
55
67
|
trafficUsed: string;
|
56
68
|
trafficLimit: string;
|
@@ -58,11 +70,15 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
58
70
|
isActive: boolean;
|
59
71
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
60
72
|
};
|
73
|
+
links: string[];
|
74
|
+
ssConfLinks: Record<string, string>;
|
75
|
+
subscriptionUrl: string;
|
61
76
|
}, {
|
62
77
|
isFound: boolean;
|
63
78
|
user: {
|
64
79
|
username: string;
|
65
80
|
shortUuid: string;
|
81
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
66
82
|
daysLeft: number;
|
67
83
|
trafficUsed: string;
|
68
84
|
trafficLimit: string;
|
@@ -70,6 +86,9 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
70
86
|
isActive: boolean;
|
71
87
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
72
88
|
};
|
89
|
+
links: string[];
|
90
|
+
ssConfLinks: Record<string, string>;
|
91
|
+
subscriptionUrl: string;
|
73
92
|
}>;
|
74
93
|
}, "strip", z.ZodTypeAny, {
|
75
94
|
response: {
|
@@ -77,6 +96,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
77
96
|
user: {
|
78
97
|
username: string;
|
79
98
|
shortUuid: string;
|
99
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
80
100
|
daysLeft: number;
|
81
101
|
trafficUsed: string;
|
82
102
|
trafficLimit: string;
|
@@ -84,6 +104,9 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
84
104
|
isActive: boolean;
|
85
105
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
86
106
|
};
|
107
|
+
links: string[];
|
108
|
+
ssConfLinks: Record<string, string>;
|
109
|
+
subscriptionUrl: string;
|
87
110
|
};
|
88
111
|
}, {
|
89
112
|
response: {
|
@@ -91,6 +114,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
91
114
|
user: {
|
92
115
|
username: string;
|
93
116
|
shortUuid: string;
|
117
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
94
118
|
daysLeft: number;
|
95
119
|
trafficUsed: string;
|
96
120
|
trafficLimit: string;
|
@@ -98,6 +122,9 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
98
122
|
isActive: boolean;
|
99
123
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
100
124
|
};
|
125
|
+
links: string[];
|
126
|
+
ssConfLinks: Record<string, string>;
|
127
|
+
subscriptionUrl: string;
|
101
128
|
};
|
102
129
|
}>;
|
103
130
|
type Response = z.infer<typeof ResponseSchema>;
|
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -23,7 +23,11 @@ var GetSubscriptionInfoByShortUuidCommand;
|
|
23
23
|
expiresAt: zod_1.z.string().transform((str) => new Date(str)),
|
24
24
|
isActive: zod_1.z.boolean(),
|
25
25
|
userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
|
26
|
+
trafficLimitStrategy: zod_1.z.nativeEnum(constants_1.RESET_PERIODS),
|
26
27
|
}),
|
28
|
+
links: zod_1.z.array(zod_1.z.string()),
|
29
|
+
ssConfLinks: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
30
|
+
subscriptionUrl: zod_1.z.string(),
|
27
31
|
}),
|
28
32
|
});
|
29
33
|
})(GetSubscriptionInfoByShortUuidCommand || (exports.GetSubscriptionInfoByShortUuidCommand = GetSubscriptionInfoByShortUuidCommand = {}));
|
@@ -23,7 +23,11 @@ var GetSubscriptionInfoByShortUuidCommand;
|
|
23
23
|
expiresAt: zod_1.z.string().transform((str) => new Date(str)),
|
24
24
|
isActive: zod_1.z.boolean(),
|
25
25
|
userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
|
26
|
+
trafficLimitStrategy: zod_1.z.nativeEnum(constants_1.RESET_PERIODS),
|
26
27
|
}),
|
28
|
+
links: zod_1.z.array(zod_1.z.string()),
|
29
|
+
ssConfLinks: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
30
|
+
subscriptionUrl: zod_1.z.string(),
|
27
31
|
}),
|
28
32
|
});
|
29
33
|
})(GetSubscriptionInfoByShortUuidCommand || (exports.GetSubscriptionInfoByShortUuidCommand = GetSubscriptionInfoByShortUuidCommand = {}));
|