@remnawave/backend-contract 0.3.1 → 0.3.3

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.
Files changed (25) hide show
  1. package/build/backend/commands/subscription-template/get-template.command.d.ts +22 -8
  2. package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
  3. package/build/backend/commands/subscription-template/get-template.command.js +3 -1
  4. package/build/backend/commands/subscription-template/update-template.command.d.ts +23 -3
  5. package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
  6. package/build/backend/commands/subscription-template/update-template.command.js +4 -1
  7. package/build/backend/constants/subscription-template/index.d.ts +0 -1
  8. package/build/backend/constants/subscription-template/index.d.ts.map +1 -1
  9. package/build/backend/constants/subscription-template/index.js +0 -1
  10. package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts +5 -3
  11. package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts.map +1 -1
  12. package/build/backend/constants/subscription-template/template-type/template-type.constant.js +4 -2
  13. package/build/frontend/commands/subscription-template/get-template.command.js +3 -1
  14. package/build/frontend/commands/subscription-template/update-template.command.js +4 -1
  15. package/build/frontend/constants/subscription-template/index.js +0 -1
  16. package/build/frontend/constants/subscription-template/template-type/template-type.constant.js +4 -2
  17. package/package.json +1 -1
  18. package/build/backend/constants/subscription-template/subscription-type/index.d.ts +0 -2
  19. package/build/backend/constants/subscription-template/subscription-type/index.d.ts.map +0 -1
  20. package/build/backend/constants/subscription-template/subscription-type/index.js +0 -17
  21. package/build/backend/constants/subscription-template/subscription-type/subscription-type.constant.d.ts +0 -10
  22. package/build/backend/constants/subscription-template/subscription-type/subscription-type.constant.d.ts.map +0 -1
  23. package/build/backend/constants/subscription-template/subscription-type/subscription-type.constant.js +0 -11
  24. package/build/frontend/constants/subscription-template/subscription-type/index.js +0 -17
  25. package/build/frontend/constants/subscription-template/subscription-type/subscription-type.constant.js +0 -11
@@ -3,37 +3,51 @@ export declare namespace GetSubscriptionTemplateCommand {
3
3
  const url: (subscriptionType: string) => string;
4
4
  const TSQ_url: string;
5
5
  const RequestSchema: z.ZodObject<{
6
- subscriptionType: z.ZodNativeEnum<{
7
- readonly CLASH: "clash";
8
- readonly STASH: "stash";
9
- readonly SINGBOX: "singbox";
10
- readonly SINGBOX_LEGACY: "singbox_legacy";
11
- readonly MIHOMO: "mihomo";
6
+ templateType: z.ZodNativeEnum<{
7
+ readonly STASH: "STASH";
8
+ readonly SINGBOX: "SINGBOX";
9
+ readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
10
+ readonly MIHOMO: "MIHOMO";
12
11
  }>;
13
12
  }, "strip", z.ZodTypeAny, {
14
- subscriptionType: "clash" | "stash" | "singbox" | "singbox_legacy" | "mihomo";
13
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
15
14
  }, {
16
- subscriptionType: "clash" | "stash" | "singbox" | "singbox_legacy" | "mihomo";
15
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
17
16
  }>;
18
17
  type Request = z.infer<typeof RequestSchema>;
19
18
  const ResponseSchema: z.ZodObject<{
20
19
  response: z.ZodObject<{
20
+ uuid: z.ZodString;
21
+ templateType: z.ZodNativeEnum<{
22
+ readonly STASH: "STASH";
23
+ readonly SINGBOX: "SINGBOX";
24
+ readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
25
+ readonly MIHOMO: "MIHOMO";
26
+ }>;
21
27
  templateJson: z.ZodNullable<z.ZodUnknown>;
22
28
  encodedTemplateYaml: z.ZodNullable<z.ZodString>;
23
29
  }, "strip", z.ZodTypeAny, {
30
+ uuid: string;
31
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
24
32
  encodedTemplateYaml: string | null;
25
33
  templateJson?: unknown;
26
34
  }, {
35
+ uuid: string;
36
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
27
37
  encodedTemplateYaml: string | null;
28
38
  templateJson?: unknown;
29
39
  }>;
30
40
  }, "strip", z.ZodTypeAny, {
31
41
  response: {
42
+ uuid: string;
43
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
32
44
  encodedTemplateYaml: string | null;
33
45
  templateJson?: unknown;
34
46
  };
35
47
  }, {
36
48
  response: {
49
+ uuid: string;
50
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
37
51
  encodedTemplateYaml: string | null;
38
52
  templateJson?: unknown;
39
53
  };
@@ -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;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,sCAA0C,CAAC;IACpD,MAAM,OAAO,QAA2B,CAAC;IAEzC,MAAM,aAAa;;;;;;;;;;;;MAExB,CAAC;IAEH,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"}
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;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,sCAA0C,CAAC;IACpD,MAAM,OAAO,QAA2B,CAAC;IAEzC,MAAM,aAAa;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -9,10 +9,12 @@ var GetSubscriptionTemplateCommand;
9
9
  GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET_INFO;
10
10
  GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':subscriptionType');
11
11
  GetSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
12
- subscriptionType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TYPE),
12
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
13
13
  });
14
14
  GetSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
15
15
  response: zod_1.z.object({
16
+ uuid: zod_1.z.string().uuid(),
17
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
16
18
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
17
19
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
18
20
  }),
@@ -3,37 +3,57 @@ export declare namespace UpdateSubscriptionTemplateCommand {
3
3
  const url: "/api/subscription-templates/update-template";
4
4
  const TSQ_url: "/api/subscription-templates/update-template";
5
5
  const RequestSchema: z.ZodObject<{
6
- subscriptionTemplateUuid: z.ZodString;
6
+ templateType: z.ZodNativeEnum<{
7
+ readonly STASH: "STASH";
8
+ readonly SINGBOX: "SINGBOX";
9
+ readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
10
+ readonly MIHOMO: "MIHOMO";
11
+ }>;
7
12
  templateJson: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
8
13
  encodedTemplateYaml: z.ZodOptional<z.ZodString>;
9
14
  }, "strip", z.ZodTypeAny, {
10
- subscriptionTemplateUuid: string;
15
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
11
16
  templateJson?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
12
17
  encodedTemplateYaml?: string | undefined;
13
18
  }, {
14
- subscriptionTemplateUuid: string;
19
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
15
20
  templateJson?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
16
21
  encodedTemplateYaml?: string | undefined;
17
22
  }>;
18
23
  type Request = z.infer<typeof RequestSchema>;
19
24
  const ResponseSchema: z.ZodObject<{
20
25
  response: z.ZodObject<{
26
+ uuid: z.ZodString;
27
+ templateType: z.ZodNativeEnum<{
28
+ readonly STASH: "STASH";
29
+ readonly SINGBOX: "SINGBOX";
30
+ readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
31
+ readonly MIHOMO: "MIHOMO";
32
+ }>;
21
33
  templateJson: z.ZodNullable<z.ZodUnknown>;
22
34
  encodedTemplateYaml: z.ZodNullable<z.ZodString>;
23
35
  }, "strip", z.ZodTypeAny, {
36
+ uuid: string;
37
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
24
38
  encodedTemplateYaml: string | null;
25
39
  templateJson?: unknown;
26
40
  }, {
41
+ uuid: string;
42
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
27
43
  encodedTemplateYaml: string | null;
28
44
  templateJson?: unknown;
29
45
  }>;
30
46
  }, "strip", z.ZodTypeAny, {
31
47
  response: {
48
+ uuid: string;
49
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
32
50
  encodedTemplateYaml: string | null;
33
51
  templateJson?: unknown;
34
52
  };
35
53
  }, {
36
54
  response: {
55
+ uuid: string;
56
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
37
57
  encodedTemplateYaml: string | null;
38
58
  templateJson?: unknown;
39
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"update-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/update-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+CAAiD,CAAC;IAC3D,MAAM,OAAO,+CAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;MAIxB,CAAC;IAEH,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"}
1
+ {"version":3,"file":"update-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/update-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+CAAiD,CAAC;IAC3D,MAAM,OAAO,+CAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;MAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -2,18 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateSubscriptionTemplateCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
5
6
  const api_1 = require("../../api");
6
7
  var UpdateSubscriptionTemplateCommand;
7
8
  (function (UpdateSubscriptionTemplateCommand) {
8
9
  UpdateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.UPDATE_TEMPLATE;
9
10
  UpdateSubscriptionTemplateCommand.TSQ_url = UpdateSubscriptionTemplateCommand.url;
10
11
  UpdateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
11
- subscriptionTemplateUuid: zod_1.z.string().uuid(),
12
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
12
13
  templateJson: zod_1.z.optional(zod_1.z.object({}).passthrough()),
13
14
  encodedTemplateYaml: zod_1.z.optional(zod_1.z.string()),
14
15
  });
15
16
  UpdateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
16
17
  response: zod_1.z.object({
18
+ uuid: zod_1.z.string().uuid(),
19
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
17
20
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
18
21
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
19
22
  }),
@@ -1,3 +1,2 @@
1
- export * from './subscription-type';
2
1
  export * from './template-type';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -14,5 +14,4 @@ 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("./subscription-type"), exports);
18
17
  __exportStar(require("./template-type"), exports);
@@ -1,7 +1,9 @@
1
1
  export declare const SUBSCRIPTION_TEMPLATE_TYPE: {
2
- readonly YAML: "yaml";
3
- readonly JSON: "json";
2
+ readonly STASH: "STASH";
3
+ readonly SINGBOX: "SINGBOX";
4
+ readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
5
+ readonly MIHOMO: "MIHOMO";
4
6
  };
5
7
  export type TSubscriptionTemplateType = [keyof typeof SUBSCRIPTION_TEMPLATE_TYPE][number];
6
- export declare const SUBSCRIPTION_TEMPLATE_TYPE_VALUES: ("yaml" | "json")[];
8
+ export declare const SUBSCRIPTION_TEMPLATE_TYPE_VALUES: ("STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO")[];
7
9
  //# sourceMappingURL=template-type.constant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-type.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-template/template-type/template-type.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1F,eAAO,MAAM,iCAAiC,qBAA4C,CAAC"}
1
+ {"version":3,"file":"template-type.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-template/template-type/template-type.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1F,eAAO,MAAM,iCAAiC,uDAA4C,CAAC"}
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SUBSCRIPTION_TEMPLATE_TYPE_VALUES = exports.SUBSCRIPTION_TEMPLATE_TYPE = void 0;
4
4
  exports.SUBSCRIPTION_TEMPLATE_TYPE = {
5
- YAML: 'yaml',
6
- JSON: 'json',
5
+ STASH: 'STASH',
6
+ SINGBOX: 'SINGBOX',
7
+ SINGBOX_LEGACY: 'SINGBOX_LEGACY',
8
+ MIHOMO: 'MIHOMO',
7
9
  };
8
10
  exports.SUBSCRIPTION_TEMPLATE_TYPE_VALUES = Object.values(exports.SUBSCRIPTION_TEMPLATE_TYPE);
@@ -9,10 +9,12 @@ var GetSubscriptionTemplateCommand;
9
9
  GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET_INFO;
10
10
  GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':subscriptionType');
11
11
  GetSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
12
- subscriptionType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TYPE),
12
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
13
13
  });
14
14
  GetSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
15
15
  response: zod_1.z.object({
16
+ uuid: zod_1.z.string().uuid(),
17
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
16
18
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
17
19
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
18
20
  }),
@@ -2,18 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateSubscriptionTemplateCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
5
6
  const api_1 = require("../../api");
6
7
  var UpdateSubscriptionTemplateCommand;
7
8
  (function (UpdateSubscriptionTemplateCommand) {
8
9
  UpdateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.UPDATE_TEMPLATE;
9
10
  UpdateSubscriptionTemplateCommand.TSQ_url = UpdateSubscriptionTemplateCommand.url;
10
11
  UpdateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
11
- subscriptionTemplateUuid: zod_1.z.string().uuid(),
12
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
12
13
  templateJson: zod_1.z.optional(zod_1.z.object({}).passthrough()),
13
14
  encodedTemplateYaml: zod_1.z.optional(zod_1.z.string()),
14
15
  });
15
16
  UpdateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
16
17
  response: zod_1.z.object({
18
+ uuid: zod_1.z.string().uuid(),
19
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
17
20
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
18
21
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
19
22
  }),
@@ -14,5 +14,4 @@ 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("./subscription-type"), exports);
18
17
  __exportStar(require("./template-type"), exports);
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SUBSCRIPTION_TEMPLATE_TYPE_VALUES = exports.SUBSCRIPTION_TEMPLATE_TYPE = void 0;
4
4
  exports.SUBSCRIPTION_TEMPLATE_TYPE = {
5
- YAML: 'yaml',
6
- JSON: 'json',
5
+ STASH: 'STASH',
6
+ SINGBOX: 'SINGBOX',
7
+ SINGBOX_LEGACY: 'SINGBOX_LEGACY',
8
+ MIHOMO: 'MIHOMO',
7
9
  };
8
10
  exports.SUBSCRIPTION_TEMPLATE_TYPE_VALUES = Object.values(exports.SUBSCRIPTION_TEMPLATE_TYPE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
@@ -1,2 +0,0 @@
1
- export * from './subscription-type.constant';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-template/subscription-type/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
@@ -1,17 +0,0 @@
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("./subscription-type.constant"), exports);
@@ -1,10 +0,0 @@
1
- export declare const SUBSCRIPTION_TYPE: {
2
- readonly CLASH: "clash";
3
- readonly STASH: "stash";
4
- readonly SINGBOX: "singbox";
5
- readonly SINGBOX_LEGACY: "singbox_legacy";
6
- readonly MIHOMO: "mihomo";
7
- };
8
- export type TSubscriptionType = [keyof typeof SUBSCRIPTION_TYPE][number];
9
- export declare const SUBSCRIPTION_TYPE_VALUES: ("clash" | "stash" | "singbox" | "singbox_legacy" | "mihomo")[];
10
- //# sourceMappingURL=subscription-type.constant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription-type.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-template/subscription-type/subscription-type.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AACzE,eAAO,MAAM,wBAAwB,iEAAmC,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUBSCRIPTION_TYPE_VALUES = exports.SUBSCRIPTION_TYPE = void 0;
4
- exports.SUBSCRIPTION_TYPE = {
5
- CLASH: 'clash',
6
- STASH: 'stash',
7
- SINGBOX: 'singbox',
8
- SINGBOX_LEGACY: 'singbox_legacy',
9
- MIHOMO: 'mihomo',
10
- };
11
- exports.SUBSCRIPTION_TYPE_VALUES = Object.values(exports.SUBSCRIPTION_TYPE);
@@ -1,17 +0,0 @@
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("./subscription-type.constant"), exports);
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUBSCRIPTION_TYPE_VALUES = exports.SUBSCRIPTION_TYPE = void 0;
4
- exports.SUBSCRIPTION_TYPE = {
5
- CLASH: 'clash',
6
- STASH: 'stash',
7
- SINGBOX: 'singbox',
8
- SINGBOX_LEGACY: 'singbox_legacy',
9
- MIHOMO: 'mihomo',
10
- };
11
- exports.SUBSCRIPTION_TYPE_VALUES = Object.values(exports.SUBSCRIPTION_TYPE);