@remnawave/backend-contract 2.3.7 → 2.3.9
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/config-profiles.d.ts +3 -0
- package/build/backend/api/controllers/config-profiles.d.ts.map +1 -1
- package/build/backend/api/controllers/config-profiles.js +4 -0
- package/build/backend/api/controllers/external-squads.d.ts +3 -0
- package/build/backend/api/controllers/external-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/external-squads.js +4 -0
- package/build/backend/api/controllers/internal-squads.d.ts +3 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +4 -0
- package/build/backend/api/controllers/subscription-template.d.ts +3 -0
- package/build/backend/api/controllers/subscription-template.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-template.js +4 -0
- package/build/backend/api/routes.d.ts +12 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +12 -0
- package/build/backend/commands/config-profiles/actions/index.d.ts +2 -0
- package/build/backend/commands/config-profiles/actions/index.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/actions/index.js +17 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +278 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.js +25 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +5 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +5 -0
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +5 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +7 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/index.d.ts +1 -0
- package/build/backend/commands/config-profiles/index.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/index.js +1 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +5 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/actions/index.d.ts +2 -0
- package/build/backend/commands/external-squads/actions/index.d.ts.map +1 -0
- package/build/backend/commands/external-squads/actions/index.js +17 -0
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts +436 -0
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/actions/reorder.command.js +25 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +5 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +5 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +7 -0
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/index.d.ts +1 -0
- package/build/backend/commands/external-squads/index.d.ts.map +1 -1
- package/build/backend/commands/external-squads/index.js +1 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +5 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +4 -4
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +4 -4
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +4 -4
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +4 -4
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +4 -4
- package/build/backend/commands/hosts/create.command.d.ts +4 -4
- package/build/backend/commands/hosts/get-all.command.d.ts +4 -4
- package/build/backend/commands/hosts/get-one.command.d.ts +4 -4
- package/build/backend/commands/hosts/update.command.d.ts +4 -4
- package/build/backend/commands/internal-squads/actions/index.d.ts +2 -0
- package/build/backend/commands/internal-squads/actions/index.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/actions/index.js +17 -0
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +258 -0
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/actions/reorder.command.js +25 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +5 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts +5 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +7 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.d.ts +1 -0
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +1 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +5 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/enable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +4 -4
- package/build/backend/commands/nodes/create.command.d.ts +4 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +4 -4
- package/build/backend/commands/nodes/get-one.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +4 -4
- package/build/backend/commands/subscription-template/actions/index.d.ts +2 -0
- package/build/backend/commands/subscription-template/actions/index.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/actions/index.js +17 -0
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +120 -0
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/actions/reorder.command.js +25 -0
- package/build/backend/commands/subscription-template/create-template.command.d.ts +5 -0
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.js +4 -10
- package/build/backend/commands/subscription-template/get-template.command.d.ts +5 -0
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +3 -9
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +7 -0
- package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-templates.command.js +3 -9
- package/build/backend/commands/subscription-template/index.d.ts +1 -0
- package/build/backend/commands/subscription-template/index.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/index.js +1 -0
- package/build/backend/commands/subscription-template/update-template.command.d.ts +5 -0
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +3 -9
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +17 -8
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.d.ts +7 -0
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +7 -0
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +7 -0
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +7 -0
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +7 -0
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts +9 -0
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +7 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +7 -0
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/backend/models/base-internal-squad.schema.d.ts +3 -0
- package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/base-internal-squad.schema.js +1 -0
- package/build/backend/models/config-profile.schema.d.ts +3 -0
- package/build/backend/models/config-profile.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile.schema.js +1 -0
- package/build/backend/models/extended-users.schema.d.ts +5 -0
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.d.ts +3 -0
- package/build/backend/models/external-squad.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.js +1 -0
- package/build/backend/models/hosts.schema.d.ts +2 -2
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/internal-squad.schema.d.ts +3 -0
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/internal-squad.schema.js +1 -0
- package/build/backend/models/nodes.schema.d.ts +2 -2
- package/build/backend/models/subscription-template.schema.d.ts +31 -0
- package/build/backend/models/subscription-template.schema.d.ts.map +1 -0
- package/build/backend/models/subscription-template.schema.js +16 -0
- package/build/frontend/api/controllers/config-profiles.js +4 -0
- package/build/frontend/api/controllers/external-squads.js +4 -0
- package/build/frontend/api/controllers/internal-squads.js +4 -0
- package/build/frontend/api/controllers/subscription-template.js +4 -0
- package/build/frontend/api/routes.js +12 -0
- package/build/frontend/commands/config-profiles/actions/index.js +17 -0
- package/build/frontend/commands/config-profiles/actions/reorder.command.js +25 -0
- package/build/frontend/commands/config-profiles/index.js +1 -0
- package/build/frontend/commands/external-squads/actions/index.js +17 -0
- package/build/frontend/commands/external-squads/actions/reorder.command.js +25 -0
- package/build/frontend/commands/external-squads/index.js +1 -0
- package/build/frontend/commands/internal-squads/actions/index.js +17 -0
- package/build/frontend/commands/internal-squads/actions/reorder.command.js +25 -0
- package/build/frontend/commands/internal-squads/index.js +1 -0
- package/build/frontend/commands/subscription-template/actions/index.js +17 -0
- package/build/frontend/commands/subscription-template/actions/reorder.command.js +25 -0
- package/build/frontend/commands/subscription-template/create-template.command.js +4 -10
- package/build/frontend/commands/subscription-template/get-template.command.js +3 -9
- package/build/frontend/commands/subscription-template/get-templates.command.js +3 -9
- package/build/frontend/commands/subscription-template/index.js +1 -0
- package/build/frontend/commands/subscription-template/update-template.command.js +3 -9
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/models/base-internal-squad.schema.js +1 -0
- package/build/frontend/models/config-profile.schema.js +1 -0
- package/build/frontend/models/external-squad.schema.js +1 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/internal-squad.schema.js +1 -0
- package/build/frontend/models/subscription-template.schema.js +16 -0
- package/package.json +1 -1
|
@@ -176,11 +176,11 @@ export declare namespace CreateNodeCommand {
|
|
|
176
176
|
faviconLink: string | null;
|
|
177
177
|
loginUrl: string | null;
|
|
178
178
|
} | null;
|
|
179
|
+
viewPosition: number;
|
|
179
180
|
name: string;
|
|
180
181
|
port: number | null;
|
|
181
182
|
countryCode: string;
|
|
182
183
|
trafficLimitBytes: number | null;
|
|
183
|
-
viewPosition: number;
|
|
184
184
|
address: string;
|
|
185
185
|
isDisabled: boolean;
|
|
186
186
|
isConnected: boolean;
|
|
@@ -227,11 +227,11 @@ export declare namespace CreateNodeCommand {
|
|
|
227
227
|
faviconLink: string | null;
|
|
228
228
|
loginUrl: string | null;
|
|
229
229
|
} | null;
|
|
230
|
+
viewPosition: number;
|
|
230
231
|
name: string;
|
|
231
232
|
port: number | null;
|
|
232
233
|
countryCode: string;
|
|
233
234
|
trafficLimitBytes: number | null;
|
|
234
|
-
viewPosition: number;
|
|
235
235
|
address: string;
|
|
236
236
|
isDisabled: boolean;
|
|
237
237
|
isConnected: boolean;
|
|
@@ -280,11 +280,11 @@ export declare namespace CreateNodeCommand {
|
|
|
280
280
|
faviconLink: string | null;
|
|
281
281
|
loginUrl: string | null;
|
|
282
282
|
} | null;
|
|
283
|
+
viewPosition: number;
|
|
283
284
|
name: string;
|
|
284
285
|
port: number | null;
|
|
285
286
|
countryCode: string;
|
|
286
287
|
trafficLimitBytes: number | null;
|
|
287
|
-
viewPosition: number;
|
|
288
288
|
address: string;
|
|
289
289
|
isDisabled: boolean;
|
|
290
290
|
isConnected: boolean;
|
|
@@ -333,11 +333,11 @@ export declare namespace CreateNodeCommand {
|
|
|
333
333
|
faviconLink: string | null;
|
|
334
334
|
loginUrl: string | null;
|
|
335
335
|
} | null;
|
|
336
|
+
viewPosition: number;
|
|
336
337
|
name: string;
|
|
337
338
|
port: number | null;
|
|
338
339
|
countryCode: string;
|
|
339
340
|
trafficLimitBytes: number | null;
|
|
340
|
-
viewPosition: number;
|
|
341
341
|
address: string;
|
|
342
342
|
isDisabled: boolean;
|
|
343
343
|
isConnected: boolean;
|
|
@@ -123,11 +123,11 @@ export declare namespace GetAllNodesCommand {
|
|
|
123
123
|
faviconLink: string | null;
|
|
124
124
|
loginUrl: string | null;
|
|
125
125
|
} | null;
|
|
126
|
+
viewPosition: number;
|
|
126
127
|
name: string;
|
|
127
128
|
port: number | null;
|
|
128
129
|
countryCode: string;
|
|
129
130
|
trafficLimitBytes: number | null;
|
|
130
|
-
viewPosition: number;
|
|
131
131
|
address: string;
|
|
132
132
|
isDisabled: boolean;
|
|
133
133
|
isConnected: boolean;
|
|
@@ -174,11 +174,11 @@ export declare namespace GetAllNodesCommand {
|
|
|
174
174
|
faviconLink: string | null;
|
|
175
175
|
loginUrl: string | null;
|
|
176
176
|
} | null;
|
|
177
|
+
viewPosition: number;
|
|
177
178
|
name: string;
|
|
178
179
|
port: number | null;
|
|
179
180
|
countryCode: string;
|
|
180
181
|
trafficLimitBytes: number | null;
|
|
181
|
-
viewPosition: number;
|
|
182
182
|
address: string;
|
|
183
183
|
isDisabled: boolean;
|
|
184
184
|
isConnected: boolean;
|
|
@@ -227,11 +227,11 @@ export declare namespace GetAllNodesCommand {
|
|
|
227
227
|
faviconLink: string | null;
|
|
228
228
|
loginUrl: string | null;
|
|
229
229
|
} | null;
|
|
230
|
+
viewPosition: number;
|
|
230
231
|
name: string;
|
|
231
232
|
port: number | null;
|
|
232
233
|
countryCode: string;
|
|
233
234
|
trafficLimitBytes: number | null;
|
|
234
|
-
viewPosition: number;
|
|
235
235
|
address: string;
|
|
236
236
|
isDisabled: boolean;
|
|
237
237
|
isConnected: boolean;
|
|
@@ -280,11 +280,11 @@ export declare namespace GetAllNodesCommand {
|
|
|
280
280
|
faviconLink: string | null;
|
|
281
281
|
loginUrl: string | null;
|
|
282
282
|
} | null;
|
|
283
|
+
viewPosition: number;
|
|
283
284
|
name: string;
|
|
284
285
|
port: number | null;
|
|
285
286
|
countryCode: string;
|
|
286
287
|
trafficLimitBytes: number | null;
|
|
287
|
-
viewPosition: number;
|
|
288
288
|
address: string;
|
|
289
289
|
isDisabled: boolean;
|
|
290
290
|
isConnected: boolean;
|
|
@@ -131,11 +131,11 @@ export declare namespace GetOneNodeCommand {
|
|
|
131
131
|
faviconLink: string | null;
|
|
132
132
|
loginUrl: string | null;
|
|
133
133
|
} | null;
|
|
134
|
+
viewPosition: number;
|
|
134
135
|
name: string;
|
|
135
136
|
port: number | null;
|
|
136
137
|
countryCode: string;
|
|
137
138
|
trafficLimitBytes: number | null;
|
|
138
|
-
viewPosition: number;
|
|
139
139
|
address: string;
|
|
140
140
|
isDisabled: boolean;
|
|
141
141
|
isConnected: boolean;
|
|
@@ -182,11 +182,11 @@ export declare namespace GetOneNodeCommand {
|
|
|
182
182
|
faviconLink: string | null;
|
|
183
183
|
loginUrl: string | null;
|
|
184
184
|
} | null;
|
|
185
|
+
viewPosition: number;
|
|
185
186
|
name: string;
|
|
186
187
|
port: number | null;
|
|
187
188
|
countryCode: string;
|
|
188
189
|
trafficLimitBytes: number | null;
|
|
189
|
-
viewPosition: number;
|
|
190
190
|
address: string;
|
|
191
191
|
isDisabled: boolean;
|
|
192
192
|
isConnected: boolean;
|
|
@@ -235,11 +235,11 @@ export declare namespace GetOneNodeCommand {
|
|
|
235
235
|
faviconLink: string | null;
|
|
236
236
|
loginUrl: string | null;
|
|
237
237
|
} | null;
|
|
238
|
+
viewPosition: number;
|
|
238
239
|
name: string;
|
|
239
240
|
port: number | null;
|
|
240
241
|
countryCode: string;
|
|
241
242
|
trafficLimitBytes: number | null;
|
|
242
|
-
viewPosition: number;
|
|
243
243
|
address: string;
|
|
244
244
|
isDisabled: boolean;
|
|
245
245
|
isConnected: boolean;
|
|
@@ -288,11 +288,11 @@ export declare namespace GetOneNodeCommand {
|
|
|
288
288
|
faviconLink: string | null;
|
|
289
289
|
loginUrl: string | null;
|
|
290
290
|
} | null;
|
|
291
|
+
viewPosition: number;
|
|
291
292
|
name: string;
|
|
292
293
|
port: number | null;
|
|
293
294
|
countryCode: string;
|
|
294
295
|
trafficLimitBytes: number | null;
|
|
295
|
-
viewPosition: number;
|
|
296
296
|
address: string;
|
|
297
297
|
isDisabled: boolean;
|
|
298
298
|
isConnected: boolean;
|
|
@@ -285,11 +285,11 @@ export declare namespace UpdateNodeCommand {
|
|
|
285
285
|
faviconLink: string | null;
|
|
286
286
|
loginUrl: string | null;
|
|
287
287
|
} | null;
|
|
288
|
+
viewPosition: number;
|
|
288
289
|
name: string;
|
|
289
290
|
port: number | null;
|
|
290
291
|
countryCode: string;
|
|
291
292
|
trafficLimitBytes: number | null;
|
|
292
|
-
viewPosition: number;
|
|
293
293
|
address: string;
|
|
294
294
|
isDisabled: boolean;
|
|
295
295
|
isConnected: boolean;
|
|
@@ -336,11 +336,11 @@ export declare namespace UpdateNodeCommand {
|
|
|
336
336
|
faviconLink: string | null;
|
|
337
337
|
loginUrl: string | null;
|
|
338
338
|
} | null;
|
|
339
|
+
viewPosition: number;
|
|
339
340
|
name: string;
|
|
340
341
|
port: number | null;
|
|
341
342
|
countryCode: string;
|
|
342
343
|
trafficLimitBytes: number | null;
|
|
343
|
-
viewPosition: number;
|
|
344
344
|
address: string;
|
|
345
345
|
isDisabled: boolean;
|
|
346
346
|
isConnected: boolean;
|
|
@@ -389,11 +389,11 @@ export declare namespace UpdateNodeCommand {
|
|
|
389
389
|
faviconLink: string | null;
|
|
390
390
|
loginUrl: string | null;
|
|
391
391
|
} | null;
|
|
392
|
+
viewPosition: number;
|
|
392
393
|
name: string;
|
|
393
394
|
port: number | null;
|
|
394
395
|
countryCode: string;
|
|
395
396
|
trafficLimitBytes: number | null;
|
|
396
|
-
viewPosition: number;
|
|
397
397
|
address: string;
|
|
398
398
|
isDisabled: boolean;
|
|
399
399
|
isConnected: boolean;
|
|
@@ -442,11 +442,11 @@ export declare namespace UpdateNodeCommand {
|
|
|
442
442
|
faviconLink: string | null;
|
|
443
443
|
loginUrl: string | null;
|
|
444
444
|
} | null;
|
|
445
|
+
viewPosition: number;
|
|
445
446
|
name: string;
|
|
446
447
|
port: number | null;
|
|
447
448
|
countryCode: string;
|
|
448
449
|
trafficLimitBytes: number | null;
|
|
449
|
-
viewPosition: number;
|
|
450
450
|
address: string;
|
|
451
451
|
isDisabled: boolean;
|
|
452
452
|
isConnected: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/subscription-template/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./reorder.command"), exports);
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace ReorderSubscriptionTemplateCommand {
|
|
3
|
+
const url: "/api/subscription-templates/actions/reorder";
|
|
4
|
+
const TSQ_url: "/api/subscription-templates/actions/reorder";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
items: z.ZodArray<z.ZodObject<Pick<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
viewPosition: z.ZodNumber;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
templateType: z.ZodNativeEnum<{
|
|
12
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
13
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
14
|
+
readonly MIHOMO: "MIHOMO";
|
|
15
|
+
readonly STASH: "STASH";
|
|
16
|
+
readonly CLASH: "CLASH";
|
|
17
|
+
readonly SINGBOX: "SINGBOX";
|
|
18
|
+
}>;
|
|
19
|
+
templateJson: z.ZodNullable<z.ZodUnknown>;
|
|
20
|
+
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
|
22
|
+
uuid: string;
|
|
23
|
+
viewPosition: number;
|
|
24
|
+
}, {
|
|
25
|
+
uuid: string;
|
|
26
|
+
viewPosition: number;
|
|
27
|
+
}>, "many">;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
items: {
|
|
30
|
+
uuid: string;
|
|
31
|
+
viewPosition: number;
|
|
32
|
+
}[];
|
|
33
|
+
}, {
|
|
34
|
+
items: {
|
|
35
|
+
uuid: string;
|
|
36
|
+
viewPosition: number;
|
|
37
|
+
}[];
|
|
38
|
+
}>;
|
|
39
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
40
|
+
const ResponseSchema: z.ZodObject<{
|
|
41
|
+
response: z.ZodObject<{
|
|
42
|
+
total: z.ZodNumber;
|
|
43
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
44
|
+
uuid: z.ZodString;
|
|
45
|
+
viewPosition: z.ZodNumber;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
templateType: z.ZodNativeEnum<{
|
|
48
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
49
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
50
|
+
readonly MIHOMO: "MIHOMO";
|
|
51
|
+
readonly STASH: "STASH";
|
|
52
|
+
readonly CLASH: "CLASH";
|
|
53
|
+
readonly SINGBOX: "SINGBOX";
|
|
54
|
+
}>;
|
|
55
|
+
templateJson: z.ZodNullable<z.ZodUnknown>;
|
|
56
|
+
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
uuid: string;
|
|
59
|
+
viewPosition: number;
|
|
60
|
+
name: string;
|
|
61
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
62
|
+
encodedTemplateYaml: string | null;
|
|
63
|
+
templateJson?: unknown;
|
|
64
|
+
}, {
|
|
65
|
+
uuid: string;
|
|
66
|
+
viewPosition: number;
|
|
67
|
+
name: string;
|
|
68
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
69
|
+
encodedTemplateYaml: string | null;
|
|
70
|
+
templateJson?: unknown;
|
|
71
|
+
}>, "many">;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
templates: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
viewPosition: number;
|
|
76
|
+
name: string;
|
|
77
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
78
|
+
encodedTemplateYaml: string | null;
|
|
79
|
+
templateJson?: unknown;
|
|
80
|
+
}[];
|
|
81
|
+
total: number;
|
|
82
|
+
}, {
|
|
83
|
+
templates: {
|
|
84
|
+
uuid: string;
|
|
85
|
+
viewPosition: number;
|
|
86
|
+
name: string;
|
|
87
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
88
|
+
encodedTemplateYaml: string | null;
|
|
89
|
+
templateJson?: unknown;
|
|
90
|
+
}[];
|
|
91
|
+
total: number;
|
|
92
|
+
}>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
response: {
|
|
95
|
+
templates: {
|
|
96
|
+
uuid: string;
|
|
97
|
+
viewPosition: number;
|
|
98
|
+
name: string;
|
|
99
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
100
|
+
encodedTemplateYaml: string | null;
|
|
101
|
+
templateJson?: unknown;
|
|
102
|
+
}[];
|
|
103
|
+
total: number;
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
response: {
|
|
107
|
+
templates: {
|
|
108
|
+
uuid: string;
|
|
109
|
+
viewPosition: number;
|
|
110
|
+
name: string;
|
|
111
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
112
|
+
encodedTemplateYaml: string | null;
|
|
113
|
+
templateJson?: unknown;
|
|
114
|
+
}[];
|
|
115
|
+
total: number;
|
|
116
|
+
};
|
|
117
|
+
}>;
|
|
118
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=reorder.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscription-template/actions/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kCAAkC,CAAC;IACzC,MAAM,GAAG,+CAAiD,CAAC;IAC3D,MAAM,OAAO,+CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReorderSubscriptionTemplateCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
const constants_1 = require("../../../constants");
|
|
8
|
+
var ReorderSubscriptionTemplateCommand;
|
|
9
|
+
(function (ReorderSubscriptionTemplateCommand) {
|
|
10
|
+
ReorderSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.ACTIONS.REORDER;
|
|
11
|
+
ReorderSubscriptionTemplateCommand.TSQ_url = ReorderSubscriptionTemplateCommand.url;
|
|
12
|
+
ReorderSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.ACTIONS.REORDER, 'post', 'Reorder subscription templates');
|
|
13
|
+
ReorderSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
items: zod_1.z.array(models_1.SubscriptionTemplateSchema.pick({
|
|
15
|
+
viewPosition: true,
|
|
16
|
+
uuid: true,
|
|
17
|
+
})),
|
|
18
|
+
});
|
|
19
|
+
ReorderSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
response: zod_1.z.object({
|
|
21
|
+
total: zod_1.z.number(),
|
|
22
|
+
templates: zod_1.z.array(models_1.SubscriptionTemplateSchema),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
})(ReorderSubscriptionTemplateCommand || (exports.ReorderSubscriptionTemplateCommand = ReorderSubscriptionTemplateCommand = {}));
|
|
@@ -24,6 +24,7 @@ export declare namespace CreateSubscriptionTemplateCommand {
|
|
|
24
24
|
const ResponseSchema: z.ZodObject<{
|
|
25
25
|
response: z.ZodObject<{
|
|
26
26
|
uuid: z.ZodString;
|
|
27
|
+
viewPosition: z.ZodNumber;
|
|
27
28
|
name: z.ZodString;
|
|
28
29
|
templateType: z.ZodNativeEnum<{
|
|
29
30
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
@@ -37,12 +38,14 @@ export declare namespace CreateSubscriptionTemplateCommand {
|
|
|
37
38
|
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
38
39
|
}, "strip", z.ZodTypeAny, {
|
|
39
40
|
uuid: string;
|
|
41
|
+
viewPosition: number;
|
|
40
42
|
name: string;
|
|
41
43
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
42
44
|
encodedTemplateYaml: string | null;
|
|
43
45
|
templateJson?: unknown;
|
|
44
46
|
}, {
|
|
45
47
|
uuid: string;
|
|
48
|
+
viewPosition: number;
|
|
46
49
|
name: string;
|
|
47
50
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
48
51
|
encodedTemplateYaml: string | null;
|
|
@@ -51,6 +54,7 @@ export declare namespace CreateSubscriptionTemplateCommand {
|
|
|
51
54
|
}, "strip", z.ZodTypeAny, {
|
|
52
55
|
response: {
|
|
53
56
|
uuid: string;
|
|
57
|
+
viewPosition: number;
|
|
54
58
|
name: string;
|
|
55
59
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
56
60
|
encodedTemplateYaml: string | null;
|
|
@@ -59,6 +63,7 @@ export declare namespace CreateSubscriptionTemplateCommand {
|
|
|
59
63
|
}, {
|
|
60
64
|
response: {
|
|
61
65
|
uuid: string;
|
|
66
|
+
viewPosition: number;
|
|
62
67
|
name: string;
|
|
63
68
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
64
69
|
encodedTemplateYaml: string | null;
|
|
@@ -1 +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;;;;;;;;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
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;;;;;;;;;;;;;;;;MAUxB,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"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateSubscriptionTemplateCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../api");
|
|
6
5
|
const constants_1 = require("../../constants");
|
|
7
|
-
const
|
|
6
|
+
const api_1 = require("../../api");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
8
|
var CreateSubscriptionTemplateCommand;
|
|
9
9
|
(function (CreateSubscriptionTemplateCommand) {
|
|
10
10
|
CreateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.CREATE;
|
|
11
11
|
CreateSubscriptionTemplateCommand.TSQ_url = CreateSubscriptionTemplateCommand.url;
|
|
12
|
-
CreateSubscriptionTemplateCommand.endpointDetails = (0,
|
|
12
|
+
CreateSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.CREATE, 'post', 'Create subscription template');
|
|
13
13
|
CreateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
14
|
name: zod_1.z
|
|
15
15
|
.string()
|
|
@@ -19,12 +19,6 @@ var CreateSubscriptionTemplateCommand;
|
|
|
19
19
|
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
20
20
|
});
|
|
21
21
|
CreateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
-
response:
|
|
23
|
-
uuid: zod_1.z.string().uuid(),
|
|
24
|
-
name: zod_1.z.string(),
|
|
25
|
-
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
26
|
-
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
27
|
-
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
28
|
-
}),
|
|
22
|
+
response: models_1.SubscriptionTemplateSchema,
|
|
29
23
|
});
|
|
30
24
|
})(CreateSubscriptionTemplateCommand || (exports.CreateSubscriptionTemplateCommand = CreateSubscriptionTemplateCommand = {}));
|
|
@@ -14,6 +14,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
|
15
15
|
response: z.ZodObject<{
|
|
16
16
|
uuid: z.ZodString;
|
|
17
|
+
viewPosition: z.ZodNumber;
|
|
17
18
|
name: z.ZodString;
|
|
18
19
|
templateType: z.ZodNativeEnum<{
|
|
19
20
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
@@ -27,12 +28,14 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
27
28
|
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
28
29
|
}, "strip", z.ZodTypeAny, {
|
|
29
30
|
uuid: string;
|
|
31
|
+
viewPosition: number;
|
|
30
32
|
name: string;
|
|
31
33
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
32
34
|
encodedTemplateYaml: string | null;
|
|
33
35
|
templateJson?: unknown;
|
|
34
36
|
}, {
|
|
35
37
|
uuid: string;
|
|
38
|
+
viewPosition: number;
|
|
36
39
|
name: string;
|
|
37
40
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
38
41
|
encodedTemplateYaml: string | null;
|
|
@@ -41,6 +44,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
41
44
|
}, "strip", z.ZodTypeAny, {
|
|
42
45
|
response: {
|
|
43
46
|
uuid: string;
|
|
47
|
+
viewPosition: number;
|
|
44
48
|
name: string;
|
|
45
49
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
46
50
|
encodedTemplateYaml: string | null;
|
|
@@ -49,6 +53,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
49
53
|
}, {
|
|
50
54
|
response: {
|
|
51
55
|
uuid: string;
|
|
56
|
+
viewPosition: number;
|
|
52
57
|
name: string;
|
|
53
58
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
54
59
|
encodedTemplateYaml: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,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
|
|
1
|
+
{"version":3,"file":"get-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -3,23 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetSubscriptionTemplateCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
6
7
|
const constants_1 = require("../../constants");
|
|
7
|
-
const constants_2 = require("../../constants");
|
|
8
8
|
var GetSubscriptionTemplateCommand;
|
|
9
9
|
(function (GetSubscriptionTemplateCommand) {
|
|
10
10
|
GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET;
|
|
11
11
|
GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':uuid');
|
|
12
|
-
GetSubscriptionTemplateCommand.endpointDetails = (0,
|
|
12
|
+
GetSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET(':uuid'), 'get', 'Get subscription template by uuid');
|
|
13
13
|
GetSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response:
|
|
18
|
-
uuid: zod_1.z.string().uuid(),
|
|
19
|
-
name: zod_1.z.string(),
|
|
20
|
-
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
21
|
-
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
22
|
-
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
23
|
-
}),
|
|
17
|
+
response: models_1.SubscriptionTemplateSchema,
|
|
24
18
|
});
|
|
25
19
|
})(GetSubscriptionTemplateCommand || (exports.GetSubscriptionTemplateCommand = GetSubscriptionTemplateCommand = {}));
|
|
@@ -8,6 +8,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
8
8
|
total: z.ZodNumber;
|
|
9
9
|
templates: z.ZodArray<z.ZodObject<{
|
|
10
10
|
uuid: z.ZodString;
|
|
11
|
+
viewPosition: z.ZodNumber;
|
|
11
12
|
name: z.ZodString;
|
|
12
13
|
templateType: z.ZodNativeEnum<{
|
|
13
14
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
@@ -21,12 +22,14 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
21
22
|
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
22
23
|
}, "strip", z.ZodTypeAny, {
|
|
23
24
|
uuid: string;
|
|
25
|
+
viewPosition: number;
|
|
24
26
|
name: string;
|
|
25
27
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
26
28
|
encodedTemplateYaml: string | null;
|
|
27
29
|
templateJson?: unknown;
|
|
28
30
|
}, {
|
|
29
31
|
uuid: string;
|
|
32
|
+
viewPosition: number;
|
|
30
33
|
name: string;
|
|
31
34
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
32
35
|
encodedTemplateYaml: string | null;
|
|
@@ -35,6 +38,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
35
38
|
}, "strip", z.ZodTypeAny, {
|
|
36
39
|
templates: {
|
|
37
40
|
uuid: string;
|
|
41
|
+
viewPosition: number;
|
|
38
42
|
name: string;
|
|
39
43
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
40
44
|
encodedTemplateYaml: string | null;
|
|
@@ -44,6 +48,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
44
48
|
}, {
|
|
45
49
|
templates: {
|
|
46
50
|
uuid: string;
|
|
51
|
+
viewPosition: number;
|
|
47
52
|
name: string;
|
|
48
53
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
49
54
|
encodedTemplateYaml: string | null;
|
|
@@ -55,6 +60,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
55
60
|
response: {
|
|
56
61
|
templates: {
|
|
57
62
|
uuid: string;
|
|
63
|
+
viewPosition: number;
|
|
58
64
|
name: string;
|
|
59
65
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
60
66
|
encodedTemplateYaml: string | null;
|
|
@@ -66,6 +72,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
66
72
|
response: {
|
|
67
73
|
templates: {
|
|
68
74
|
uuid: string;
|
|
75
|
+
viewPosition: number;
|
|
69
76
|
name: string;
|
|
70
77
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
71
78
|
encodedTemplateYaml: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-templates.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-templates.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-templates.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-templates.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -3,23 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetSubscriptionTemplatesCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
6
7
|
const constants_1 = require("../../constants");
|
|
7
|
-
const constants_2 = require("../../constants");
|
|
8
8
|
var GetSubscriptionTemplatesCommand;
|
|
9
9
|
(function (GetSubscriptionTemplatesCommand) {
|
|
10
10
|
GetSubscriptionTemplatesCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET_ALL;
|
|
11
11
|
GetSubscriptionTemplatesCommand.TSQ_url = GetSubscriptionTemplatesCommand.url;
|
|
12
|
-
GetSubscriptionTemplatesCommand.endpointDetails = (0,
|
|
12
|
+
GetSubscriptionTemplatesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET_ALL, 'get', 'Get all subscription templates (wihout content)');
|
|
13
13
|
GetSubscriptionTemplatesCommand.ResponseSchema = zod_1.z.object({
|
|
14
14
|
response: zod_1.z.object({
|
|
15
15
|
total: zod_1.z.number(),
|
|
16
|
-
templates: zod_1.z.array(
|
|
17
|
-
uuid: zod_1.z.string().uuid(),
|
|
18
|
-
name: zod_1.z.string(),
|
|
19
|
-
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
20
|
-
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
21
|
-
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
22
|
-
})),
|
|
16
|
+
templates: zod_1.z.array(models_1.SubscriptionTemplateSchema),
|
|
23
17
|
}),
|
|
24
18
|
});
|
|
25
19
|
})(GetSubscriptionTemplatesCommand || (exports.GetSubscriptionTemplatesCommand = GetSubscriptionTemplatesCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./actions"), exports);
|
|
17
18
|
__exportStar(require("./create-template.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-subscription-template.command"), exports);
|
|
19
20
|
__exportStar(require("./get-template.command"), exports);
|