@remnawave/backend-contract 2.2.2 → 2.2.4
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/api/controllers/subscription-template.d.ts +4 -1
- package/build/backend/api/controllers/subscription-template.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-template.js +5 -2
- package/build/backend/api/routes.d.ts +4 -1
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +4 -1
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +33 -22
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +60 -40
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.d.ts +70 -0
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/create-template.command.js +26 -0
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +33 -0
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/delete-subscription-template.command.js +20 -0
- package/build/backend/commands/subscription-template/get-template.command.d.ts +9 -11
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +4 -3
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +79 -0
- package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/get-templates.command.js +25 -0
- package/build/backend/commands/subscription-template/index.d.ts +3 -0
- package/build/backend/commands/subscription-template/index.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/index.js +3 -0
- package/build/backend/commands/subscription-template/update-template.command.d.ts +11 -10
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +4 -2
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +54 -36
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +2 -0
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +60 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +60 -0
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +9 -6
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule-modifications.schema.js +8 -0
- package/build/backend/models/response-rules/response-rule.schema.d.ts +30 -20
- package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +21 -14
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.d.ts +27 -18
- package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers/subscription-template.js +5 -2
- package/build/frontend/api/routes.js +4 -1
- package/build/frontend/commands/subscription-template/create-template.command.js +26 -0
- package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +20 -0
- package/build/frontend/commands/subscription-template/get-template.command.js +4 -3
- package/build/frontend/commands/subscription-template/get-templates.command.js +25 -0
- package/build/frontend/commands/subscription-template/index.js +3 -0
- package/build/frontend/commands/subscription-template/update-template.command.js +4 -2
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +1 -0
- package/build/frontend/constants/errors/errors.js +60 -0
- package/build/frontend/models/response-rules/response-rule-modifications.schema.js +8 -0
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const SUBSCRIPTION_TEMPLATE_CONTROLLER: "subscription-templates";
|
|
2
2
|
export declare const SUBSCRIPTION_TEMPLATE_ROUTES: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly GET_ALL: "";
|
|
4
|
+
readonly GET: (uuid: string) => string;
|
|
4
5
|
readonly UPDATE: "";
|
|
6
|
+
readonly DELETE: (uuid: string) => string;
|
|
7
|
+
readonly CREATE: "";
|
|
5
8
|
};
|
|
6
9
|
//# sourceMappingURL=subscription-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-template.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription-template.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,EAAG,wBAAiC,CAAC;AAElF,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"subscription-template.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription-template.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,EAAG,wBAAiC,CAAC;AAElF,eAAO,MAAM,4BAA4B;;yBAEzB,MAAM;;4BAEH,MAAM;;CAEf,CAAC"}
|
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SUBSCRIPTION_TEMPLATE_ROUTES = exports.SUBSCRIPTION_TEMPLATE_CONTROLLER = void 0;
|
|
4
4
|
exports.SUBSCRIPTION_TEMPLATE_CONTROLLER = 'subscription-templates';
|
|
5
5
|
exports.SUBSCRIPTION_TEMPLATE_ROUTES = {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
GET_ALL: '', // get
|
|
7
|
+
GET: (uuid) => `${uuid}`, // get
|
|
8
|
+
UPDATE: '', // patch
|
|
9
|
+
DELETE: (uuid) => `${uuid}`, // delete
|
|
10
|
+
CREATE: '', // post
|
|
8
11
|
};
|
|
@@ -123,8 +123,11 @@ export declare const REST_API: {
|
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
125
|
readonly SUBSCRIPTION_TEMPLATE: {
|
|
126
|
-
readonly GET: (
|
|
126
|
+
readonly GET: (uuid: string) => string;
|
|
127
127
|
readonly UPDATE: "/api/subscription-templates/";
|
|
128
|
+
readonly DELETE: (uuid: string) => string;
|
|
129
|
+
readonly GET_ALL: "/api/subscription-templates/";
|
|
130
|
+
readonly CREATE: "/api/subscription-templates/";
|
|
128
131
|
};
|
|
129
132
|
readonly SUBSCRIPTION_SETTINGS: {
|
|
130
133
|
readonly GET: "/api/subscription-settings/";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;CAanC,CAAC"}
|
|
@@ -160,8 +160,11 @@ exports.REST_API = {
|
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
162
|
SUBSCRIPTION_TEMPLATE: {
|
|
163
|
-
GET: (
|
|
163
|
+
GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_ROUTES.GET(uuid)}`,
|
|
164
164
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_ROUTES.UPDATE}`,
|
|
165
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_ROUTES.DELETE(uuid)}`,
|
|
166
|
+
GET_ALL: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_ROUTES.GET_ALL}`,
|
|
167
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_TEMPLATE_ROUTES.CREATE}`,
|
|
165
168
|
},
|
|
166
169
|
SUBSCRIPTION_SETTINGS: {
|
|
167
170
|
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_SETTINGS_ROUTES.GET}`,
|
|
@@ -73,7 +73,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
73
73
|
readonly SINGBOX: "SINGBOX";
|
|
74
74
|
}>;
|
|
75
75
|
responseModifications: z.ZodOptional<z.ZodObject<{
|
|
76
|
-
headers: z.ZodArray<z.ZodObject<{
|
|
76
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
77
|
key: z.ZodString;
|
|
78
78
|
value: z.ZodString;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -82,17 +82,20 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
82
82
|
}, {
|
|
83
83
|
value: string;
|
|
84
84
|
key: string;
|
|
85
|
-
}>, "many"
|
|
85
|
+
}>, "many">>;
|
|
86
|
+
overrideSubscriptionTemplateWith: z.ZodOptional<z.ZodString>;
|
|
86
87
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
headers
|
|
88
|
+
headers?: {
|
|
88
89
|
value: string;
|
|
89
90
|
key: string;
|
|
90
|
-
}[];
|
|
91
|
+
}[] | undefined;
|
|
92
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
91
93
|
}, {
|
|
92
|
-
headers
|
|
94
|
+
headers?: {
|
|
93
95
|
value: string;
|
|
94
96
|
key: string;
|
|
95
|
-
}[];
|
|
97
|
+
}[] | undefined;
|
|
98
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
96
99
|
}>>;
|
|
97
100
|
}, "strip", z.ZodTypeAny, {
|
|
98
101
|
name: string;
|
|
@@ -107,10 +110,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
107
110
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
108
111
|
description?: string | undefined;
|
|
109
112
|
responseModifications?: {
|
|
110
|
-
headers
|
|
113
|
+
headers?: {
|
|
111
114
|
value: string;
|
|
112
115
|
key: string;
|
|
113
|
-
}[];
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
114
118
|
} | undefined;
|
|
115
119
|
}, {
|
|
116
120
|
name: string;
|
|
@@ -125,10 +129,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
125
129
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
126
130
|
description?: string | undefined;
|
|
127
131
|
responseModifications?: {
|
|
128
|
-
headers
|
|
132
|
+
headers?: {
|
|
129
133
|
value: string;
|
|
130
134
|
key: string;
|
|
131
|
-
}[];
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
132
137
|
} | undefined;
|
|
133
138
|
}>, "many">;
|
|
134
139
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -146,10 +151,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
146
151
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
147
152
|
description?: string | undefined;
|
|
148
153
|
responseModifications?: {
|
|
149
|
-
headers
|
|
154
|
+
headers?: {
|
|
150
155
|
value: string;
|
|
151
156
|
key: string;
|
|
152
|
-
}[];
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
153
159
|
} | undefined;
|
|
154
160
|
}[];
|
|
155
161
|
}, {
|
|
@@ -167,10 +173,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
167
173
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
168
174
|
description?: string | undefined;
|
|
169
175
|
responseModifications?: {
|
|
170
|
-
headers
|
|
176
|
+
headers?: {
|
|
171
177
|
value: string;
|
|
172
178
|
key: string;
|
|
173
|
-
}[];
|
|
179
|
+
}[] | undefined;
|
|
180
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
174
181
|
} | undefined;
|
|
175
182
|
}[];
|
|
176
183
|
}>>;
|
|
@@ -209,10 +216,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
209
216
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
210
217
|
description?: string | undefined;
|
|
211
218
|
responseModifications?: {
|
|
212
|
-
headers
|
|
219
|
+
headers?: {
|
|
213
220
|
value: string;
|
|
214
221
|
key: string;
|
|
215
|
-
}[];
|
|
222
|
+
}[] | undefined;
|
|
223
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
216
224
|
} | undefined;
|
|
217
225
|
}[];
|
|
218
226
|
} | null;
|
|
@@ -249,10 +257,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
249
257
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
250
258
|
description?: string | undefined;
|
|
251
259
|
responseModifications?: {
|
|
252
|
-
headers
|
|
260
|
+
headers?: {
|
|
253
261
|
value: string;
|
|
254
262
|
key: string;
|
|
255
|
-
}[];
|
|
263
|
+
}[] | undefined;
|
|
264
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
256
265
|
} | undefined;
|
|
257
266
|
}[];
|
|
258
267
|
} | null;
|
|
@@ -291,10 +300,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
291
300
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
292
301
|
description?: string | undefined;
|
|
293
302
|
responseModifications?: {
|
|
294
|
-
headers
|
|
303
|
+
headers?: {
|
|
295
304
|
value: string;
|
|
296
305
|
key: string;
|
|
297
|
-
}[];
|
|
306
|
+
}[] | undefined;
|
|
307
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
298
308
|
} | undefined;
|
|
299
309
|
}[];
|
|
300
310
|
} | null;
|
|
@@ -333,10 +343,11 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
333
343
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
334
344
|
description?: string | undefined;
|
|
335
345
|
responseModifications?: {
|
|
336
|
-
headers
|
|
346
|
+
headers?: {
|
|
337
347
|
value: string;
|
|
338
348
|
key: string;
|
|
339
|
-
}[];
|
|
349
|
+
}[] | undefined;
|
|
350
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
340
351
|
} | undefined;
|
|
341
352
|
}[];
|
|
342
353
|
} | null;
|
package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/get-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/get-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
72
72
|
readonly SINGBOX: "SINGBOX";
|
|
73
73
|
}>;
|
|
74
74
|
responseModifications: z.ZodOptional<z.ZodObject<{
|
|
75
|
-
headers: z.ZodArray<z.ZodObject<{
|
|
75
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
76
|
key: z.ZodString;
|
|
77
77
|
value: z.ZodString;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -81,17 +81,20 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
81
81
|
}, {
|
|
82
82
|
value: string;
|
|
83
83
|
key: string;
|
|
84
|
-
}>, "many"
|
|
84
|
+
}>, "many">>;
|
|
85
|
+
overrideSubscriptionTemplateWith: z.ZodOptional<z.ZodString>;
|
|
85
86
|
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
headers
|
|
87
|
+
headers?: {
|
|
87
88
|
value: string;
|
|
88
89
|
key: string;
|
|
89
|
-
}[];
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
90
92
|
}, {
|
|
91
|
-
headers
|
|
93
|
+
headers?: {
|
|
92
94
|
value: string;
|
|
93
95
|
key: string;
|
|
94
|
-
}[];
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
95
98
|
}>>;
|
|
96
99
|
}, "strip", z.ZodTypeAny, {
|
|
97
100
|
name: string;
|
|
@@ -106,10 +109,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
106
109
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
107
110
|
description?: string | undefined;
|
|
108
111
|
responseModifications?: {
|
|
109
|
-
headers
|
|
112
|
+
headers?: {
|
|
110
113
|
value: string;
|
|
111
114
|
key: string;
|
|
112
|
-
}[];
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
113
117
|
} | undefined;
|
|
114
118
|
}, {
|
|
115
119
|
name: string;
|
|
@@ -124,10 +128,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
124
128
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
125
129
|
description?: string | undefined;
|
|
126
130
|
responseModifications?: {
|
|
127
|
-
headers
|
|
131
|
+
headers?: {
|
|
128
132
|
value: string;
|
|
129
133
|
key: string;
|
|
130
|
-
}[];
|
|
134
|
+
}[] | undefined;
|
|
135
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
131
136
|
} | undefined;
|
|
132
137
|
}>, "many">;
|
|
133
138
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -145,10 +150,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
145
150
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
146
151
|
description?: string | undefined;
|
|
147
152
|
responseModifications?: {
|
|
148
|
-
headers
|
|
153
|
+
headers?: {
|
|
149
154
|
value: string;
|
|
150
155
|
key: string;
|
|
151
|
-
}[];
|
|
156
|
+
}[] | undefined;
|
|
157
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
152
158
|
} | undefined;
|
|
153
159
|
}[];
|
|
154
160
|
}, {
|
|
@@ -166,10 +172,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
166
172
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
167
173
|
description?: string | undefined;
|
|
168
174
|
responseModifications?: {
|
|
169
|
-
headers
|
|
175
|
+
headers?: {
|
|
170
176
|
value: string;
|
|
171
177
|
key: string;
|
|
172
|
-
}[];
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
173
180
|
} | undefined;
|
|
174
181
|
}[];
|
|
175
182
|
}>>;
|
|
@@ -204,10 +211,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
204
211
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
205
212
|
description?: string | undefined;
|
|
206
213
|
responseModifications?: {
|
|
207
|
-
headers
|
|
214
|
+
headers?: {
|
|
208
215
|
value: string;
|
|
209
216
|
key: string;
|
|
210
|
-
}[];
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
211
219
|
} | undefined;
|
|
212
220
|
}[];
|
|
213
221
|
} | undefined;
|
|
@@ -242,10 +250,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
242
250
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
243
251
|
description?: string | undefined;
|
|
244
252
|
responseModifications?: {
|
|
245
|
-
headers
|
|
253
|
+
headers?: {
|
|
246
254
|
value: string;
|
|
247
255
|
key: string;
|
|
248
|
-
}[];
|
|
256
|
+
}[] | undefined;
|
|
257
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
249
258
|
} | undefined;
|
|
250
259
|
}[];
|
|
251
260
|
} | undefined;
|
|
@@ -321,7 +330,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
321
330
|
readonly SINGBOX: "SINGBOX";
|
|
322
331
|
}>;
|
|
323
332
|
responseModifications: z.ZodOptional<z.ZodObject<{
|
|
324
|
-
headers: z.ZodArray<z.ZodObject<{
|
|
333
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
325
334
|
key: z.ZodString;
|
|
326
335
|
value: z.ZodString;
|
|
327
336
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -330,17 +339,20 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
330
339
|
}, {
|
|
331
340
|
value: string;
|
|
332
341
|
key: string;
|
|
333
|
-
}>, "many"
|
|
342
|
+
}>, "many">>;
|
|
343
|
+
overrideSubscriptionTemplateWith: z.ZodOptional<z.ZodString>;
|
|
334
344
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
headers
|
|
345
|
+
headers?: {
|
|
336
346
|
value: string;
|
|
337
347
|
key: string;
|
|
338
|
-
}[];
|
|
348
|
+
}[] | undefined;
|
|
349
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
339
350
|
}, {
|
|
340
|
-
headers
|
|
351
|
+
headers?: {
|
|
341
352
|
value: string;
|
|
342
353
|
key: string;
|
|
343
|
-
}[];
|
|
354
|
+
}[] | undefined;
|
|
355
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
344
356
|
}>>;
|
|
345
357
|
}, "strip", z.ZodTypeAny, {
|
|
346
358
|
name: string;
|
|
@@ -355,10 +367,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
355
367
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
356
368
|
description?: string | undefined;
|
|
357
369
|
responseModifications?: {
|
|
358
|
-
headers
|
|
370
|
+
headers?: {
|
|
359
371
|
value: string;
|
|
360
372
|
key: string;
|
|
361
|
-
}[];
|
|
373
|
+
}[] | undefined;
|
|
374
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
362
375
|
} | undefined;
|
|
363
376
|
}, {
|
|
364
377
|
name: string;
|
|
@@ -373,10 +386,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
373
386
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
374
387
|
description?: string | undefined;
|
|
375
388
|
responseModifications?: {
|
|
376
|
-
headers
|
|
389
|
+
headers?: {
|
|
377
390
|
value: string;
|
|
378
391
|
key: string;
|
|
379
|
-
}[];
|
|
392
|
+
}[] | undefined;
|
|
393
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
380
394
|
} | undefined;
|
|
381
395
|
}>, "many">;
|
|
382
396
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -394,10 +408,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
394
408
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
395
409
|
description?: string | undefined;
|
|
396
410
|
responseModifications?: {
|
|
397
|
-
headers
|
|
411
|
+
headers?: {
|
|
398
412
|
value: string;
|
|
399
413
|
key: string;
|
|
400
|
-
}[];
|
|
414
|
+
}[] | undefined;
|
|
415
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
401
416
|
} | undefined;
|
|
402
417
|
}[];
|
|
403
418
|
}, {
|
|
@@ -415,10 +430,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
415
430
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
416
431
|
description?: string | undefined;
|
|
417
432
|
responseModifications?: {
|
|
418
|
-
headers
|
|
433
|
+
headers?: {
|
|
419
434
|
value: string;
|
|
420
435
|
key: string;
|
|
421
|
-
}[];
|
|
436
|
+
}[] | undefined;
|
|
437
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
422
438
|
} | undefined;
|
|
423
439
|
}[];
|
|
424
440
|
}>>;
|
|
@@ -457,10 +473,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
457
473
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
458
474
|
description?: string | undefined;
|
|
459
475
|
responseModifications?: {
|
|
460
|
-
headers
|
|
476
|
+
headers?: {
|
|
461
477
|
value: string;
|
|
462
478
|
key: string;
|
|
463
|
-
}[];
|
|
479
|
+
}[] | undefined;
|
|
480
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
464
481
|
} | undefined;
|
|
465
482
|
}[];
|
|
466
483
|
} | null;
|
|
@@ -497,10 +514,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
497
514
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
498
515
|
description?: string | undefined;
|
|
499
516
|
responseModifications?: {
|
|
500
|
-
headers
|
|
517
|
+
headers?: {
|
|
501
518
|
value: string;
|
|
502
519
|
key: string;
|
|
503
|
-
}[];
|
|
520
|
+
}[] | undefined;
|
|
521
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
504
522
|
} | undefined;
|
|
505
523
|
}[];
|
|
506
524
|
} | null;
|
|
@@ -539,10 +557,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
539
557
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
540
558
|
description?: string | undefined;
|
|
541
559
|
responseModifications?: {
|
|
542
|
-
headers
|
|
560
|
+
headers?: {
|
|
543
561
|
value: string;
|
|
544
562
|
key: string;
|
|
545
|
-
}[];
|
|
563
|
+
}[] | undefined;
|
|
564
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
546
565
|
} | undefined;
|
|
547
566
|
}[];
|
|
548
567
|
} | null;
|
|
@@ -581,10 +600,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
581
600
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
582
601
|
description?: string | undefined;
|
|
583
602
|
responseModifications?: {
|
|
584
|
-
headers
|
|
603
|
+
headers?: {
|
|
585
604
|
value: string;
|
|
586
605
|
key: string;
|
|
587
|
-
}[];
|
|
606
|
+
}[] | undefined;
|
|
607
|
+
overrideSubscriptionTemplateWith?: string | undefined;
|
|
588
608
|
} | undefined;
|
|
589
609
|
}[];
|
|
590
610
|
} | null;
|
package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CreateSubscriptionTemplateCommand {
|
|
3
|
+
const url: "/api/subscription-templates/";
|
|
4
|
+
const TSQ_url: "/api/subscription-templates/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
templateType: z.ZodNativeEnum<{
|
|
9
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
10
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
11
|
+
readonly MIHOMO: "MIHOMO";
|
|
12
|
+
readonly STASH: "STASH";
|
|
13
|
+
readonly CLASH: "CLASH";
|
|
14
|
+
readonly SINGBOX: "SINGBOX";
|
|
15
|
+
}>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: string;
|
|
18
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
19
|
+
}, {
|
|
20
|
+
name: string;
|
|
21
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
22
|
+
}>;
|
|
23
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
24
|
+
const ResponseSchema: z.ZodObject<{
|
|
25
|
+
response: z.ZodObject<{
|
|
26
|
+
uuid: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
templateType: z.ZodNativeEnum<{
|
|
29
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
30
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
31
|
+
readonly MIHOMO: "MIHOMO";
|
|
32
|
+
readonly STASH: "STASH";
|
|
33
|
+
readonly CLASH: "CLASH";
|
|
34
|
+
readonly SINGBOX: "SINGBOX";
|
|
35
|
+
}>;
|
|
36
|
+
templateJson: z.ZodNullable<z.ZodUnknown>;
|
|
37
|
+
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
uuid: string;
|
|
40
|
+
name: string;
|
|
41
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
42
|
+
encodedTemplateYaml: string | null;
|
|
43
|
+
templateJson?: unknown;
|
|
44
|
+
}, {
|
|
45
|
+
uuid: string;
|
|
46
|
+
name: string;
|
|
47
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
48
|
+
encodedTemplateYaml: string | null;
|
|
49
|
+
templateJson?: unknown;
|
|
50
|
+
}>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
response: {
|
|
53
|
+
uuid: string;
|
|
54
|
+
name: string;
|
|
55
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
56
|
+
encodedTemplateYaml: string | null;
|
|
57
|
+
templateJson?: unknown;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
response: {
|
|
61
|
+
uuid: string;
|
|
62
|
+
name: string;
|
|
63
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
64
|
+
encodedTemplateYaml: string | null;
|
|
65
|
+
templateJson?: unknown;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=create-template.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/create-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,gCAAwC,CAAC;IAClD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSubscriptionTemplateCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const constants_2 = require("../../constants");
|
|
8
|
+
var CreateSubscriptionTemplateCommand;
|
|
9
|
+
(function (CreateSubscriptionTemplateCommand) {
|
|
10
|
+
CreateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.CREATE;
|
|
11
|
+
CreateSubscriptionTemplateCommand.TSQ_url = CreateSubscriptionTemplateCommand.url;
|
|
12
|
+
CreateSubscriptionTemplateCommand.endpointDetails = (0, constants_2.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.CREATE, 'post', 'Create subscription template');
|
|
13
|
+
CreateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
name: zod_1.z.string(),
|
|
15
|
+
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
16
|
+
});
|
|
17
|
+
CreateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: zod_1.z.object({
|
|
19
|
+
uuid: zod_1.z.string().uuid(),
|
|
20
|
+
name: zod_1.z.string(),
|
|
21
|
+
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
22
|
+
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
23
|
+
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
})(CreateSubscriptionTemplateCommand || (exports.CreateSubscriptionTemplateCommand = CreateSubscriptionTemplateCommand = {}));
|
package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteSubscriptionTemplateCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
isDeleted: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
isDeleted: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
isDeleted: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
isDeleted: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
isDeleted: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=delete-subscription-template.command.d.ts.map
|
package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-subscription-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/delete-subscription-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,0BAAwC,CAAC;IAClD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|