@remnawave/backend-contract 0.3.2 → 0.3.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.
Files changed (24) hide show
  1. package/build/backend/commands/subscription-template/get-template.command.d.ts +8 -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 -3
  4. package/build/backend/commands/subscription-template/update-template.command.d.ts +8 -8
  5. package/build/backend/commands/subscription-template/update-template.command.js +2 -2
  6. package/build/backend/constants/subscription-template/index.d.ts +0 -1
  7. package/build/backend/constants/subscription-template/index.d.ts.map +1 -1
  8. package/build/backend/constants/subscription-template/index.js +0 -1
  9. package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts +5 -3
  10. package/build/backend/constants/subscription-template/template-type/template-type.constant.d.ts.map +1 -1
  11. package/build/backend/constants/subscription-template/template-type/template-type.constant.js +4 -2
  12. package/build/frontend/commands/subscription-template/get-template.command.js +3 -3
  13. package/build/frontend/commands/subscription-template/update-template.command.js +2 -2
  14. package/build/frontend/constants/subscription-template/index.js +0 -1
  15. package/build/frontend/constants/subscription-template/template-type/template-type.constant.js +4 -2
  16. package/package.json +1 -1
  17. package/build/backend/constants/subscription-template/subscription-type/index.d.ts +0 -2
  18. package/build/backend/constants/subscription-template/subscription-type/index.d.ts.map +0 -1
  19. package/build/backend/constants/subscription-template/subscription-type/index.js +0 -17
  20. package/build/backend/constants/subscription-template/subscription-type/subscription-type.constant.d.ts +0 -9
  21. package/build/backend/constants/subscription-template/subscription-type/subscription-type.constant.d.ts.map +0 -1
  22. package/build/backend/constants/subscription-template/subscription-type/subscription-type.constant.js +0 -10
  23. package/build/frontend/constants/subscription-template/subscription-type/index.js +0 -17
  24. package/build/frontend/constants/subscription-template/subscription-type/subscription-type.constant.js +0 -10
@@ -3,22 +3,22 @@ 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<{
6
+ templateType: z.ZodNativeEnum<{
7
7
  readonly STASH: "STASH";
8
8
  readonly SINGBOX: "SINGBOX";
9
9
  readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
10
10
  readonly MIHOMO: "MIHOMO";
11
11
  }>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
13
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
14
14
  }, {
15
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
15
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
16
16
  }>;
17
17
  type Request = z.infer<typeof RequestSchema>;
18
18
  const ResponseSchema: z.ZodObject<{
19
19
  response: z.ZodObject<{
20
20
  uuid: z.ZodString;
21
- subscriptionType: z.ZodNativeEnum<{
21
+ templateType: z.ZodNativeEnum<{
22
22
  readonly STASH: "STASH";
23
23
  readonly SINGBOX: "SINGBOX";
24
24
  readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
@@ -28,26 +28,26 @@ export declare namespace GetSubscriptionTemplateCommand {
28
28
  encodedTemplateYaml: z.ZodNullable<z.ZodString>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  uuid: string;
31
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
31
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
32
32
  encodedTemplateYaml: string | null;
33
33
  templateJson?: unknown;
34
34
  }, {
35
35
  uuid: string;
36
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
36
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
37
37
  encodedTemplateYaml: string | null;
38
38
  templateJson?: unknown;
39
39
  }>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  response: {
42
42
  uuid: string;
43
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
43
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
44
44
  encodedTemplateYaml: string | null;
45
45
  templateJson?: unknown;
46
46
  };
47
47
  }, {
48
48
  response: {
49
49
  uuid: string;
50
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
50
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
51
51
  encodedTemplateYaml: string | null;
52
52
  templateJson?: unknown;
53
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,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,QAAuB,CAAC;IAErC,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"}
@@ -7,14 +7,14 @@ const api_1 = require("../../api");
7
7
  var GetSubscriptionTemplateCommand;
8
8
  (function (GetSubscriptionTemplateCommand) {
9
9
  GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET_INFO;
10
- GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':subscriptionType');
10
+ GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':templateType');
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
16
  uuid: zod_1.z.string().uuid(),
17
- subscriptionType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TYPE),
17
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
18
18
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
19
19
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
20
20
  }),
@@ -3,7 +3,7 @@ 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
- subscriptionType: z.ZodNativeEnum<{
6
+ templateType: z.ZodNativeEnum<{
7
7
  readonly STASH: "STASH";
8
8
  readonly SINGBOX: "SINGBOX";
9
9
  readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
@@ -12,11 +12,11 @@ export declare namespace UpdateSubscriptionTemplateCommand {
12
12
  templateJson: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
13
13
  encodedTemplateYaml: z.ZodOptional<z.ZodString>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
15
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
16
16
  templateJson?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
17
17
  encodedTemplateYaml?: string | undefined;
18
18
  }, {
19
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
19
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
20
20
  templateJson?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
21
21
  encodedTemplateYaml?: string | undefined;
22
22
  }>;
@@ -24,7 +24,7 @@ export declare namespace UpdateSubscriptionTemplateCommand {
24
24
  const ResponseSchema: z.ZodObject<{
25
25
  response: z.ZodObject<{
26
26
  uuid: z.ZodString;
27
- subscriptionType: z.ZodNativeEnum<{
27
+ templateType: z.ZodNativeEnum<{
28
28
  readonly STASH: "STASH";
29
29
  readonly SINGBOX: "SINGBOX";
30
30
  readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
@@ -34,26 +34,26 @@ export declare namespace UpdateSubscriptionTemplateCommand {
34
34
  encodedTemplateYaml: z.ZodNullable<z.ZodString>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  uuid: string;
37
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
37
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
38
38
  encodedTemplateYaml: string | null;
39
39
  templateJson?: unknown;
40
40
  }, {
41
41
  uuid: string;
42
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
42
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
43
43
  encodedTemplateYaml: string | null;
44
44
  templateJson?: unknown;
45
45
  }>;
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  response: {
48
48
  uuid: string;
49
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
49
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
50
50
  encodedTemplateYaml: string | null;
51
51
  templateJson?: unknown;
52
52
  };
53
53
  }, {
54
54
  response: {
55
55
  uuid: string;
56
- subscriptionType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
56
+ templateType: "STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO";
57
57
  encodedTemplateYaml: string | null;
58
58
  templateJson?: unknown;
59
59
  };
@@ -9,14 +9,14 @@ var UpdateSubscriptionTemplateCommand;
9
9
  UpdateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.UPDATE_TEMPLATE;
10
10
  UpdateSubscriptionTemplateCommand.TSQ_url = UpdateSubscriptionTemplateCommand.url;
11
11
  UpdateSubscriptionTemplateCommand.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
  templateJson: zod_1.z.optional(zod_1.z.object({}).passthrough()),
14
14
  encodedTemplateYaml: zod_1.z.optional(zod_1.z.string()),
15
15
  });
16
16
  UpdateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
17
17
  response: zod_1.z.object({
18
18
  uuid: zod_1.z.string().uuid(),
19
- subscriptionType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TYPE),
19
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
20
20
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
21
21
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
22
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);
@@ -7,14 +7,14 @@ const api_1 = require("../../api");
7
7
  var GetSubscriptionTemplateCommand;
8
8
  (function (GetSubscriptionTemplateCommand) {
9
9
  GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET_INFO;
10
- GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':subscriptionType');
10
+ GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':templateType');
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
16
  uuid: zod_1.z.string().uuid(),
17
- subscriptionType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TYPE),
17
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
18
18
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
19
19
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
20
20
  }),
@@ -9,14 +9,14 @@ var UpdateSubscriptionTemplateCommand;
9
9
  UpdateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.UPDATE_TEMPLATE;
10
10
  UpdateSubscriptionTemplateCommand.TSQ_url = UpdateSubscriptionTemplateCommand.url;
11
11
  UpdateSubscriptionTemplateCommand.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
  templateJson: zod_1.z.optional(zod_1.z.object({}).passthrough()),
14
14
  encodedTemplateYaml: zod_1.z.optional(zod_1.z.string()),
15
15
  });
16
16
  UpdateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
17
17
  response: zod_1.z.object({
18
18
  uuid: zod_1.z.string().uuid(),
19
- subscriptionType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TYPE),
19
+ templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
20
20
  templateJson: zod_1.z.nullable(zod_1.z.unknown()),
21
21
  encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
22
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.2",
3
+ "version": "0.3.4",
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,9 +0,0 @@
1
- export declare const SUBSCRIPTION_TYPE: {
2
- readonly STASH: "STASH";
3
- readonly SINGBOX: "SINGBOX";
4
- readonly SINGBOX_LEGACY: "SINGBOX_LEGACY";
5
- readonly MIHOMO: "MIHOMO";
6
- };
7
- export type TSubscriptionType = [keyof typeof SUBSCRIPTION_TYPE][number];
8
- export declare const SUBSCRIPTION_TYPE_VALUES: ("STASH" | "SINGBOX" | "SINGBOX_LEGACY" | "MIHOMO")[];
9
- //# 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;;;;;CAKpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AACzE,eAAO,MAAM,wBAAwB,uDAAmC,CAAC"}
@@ -1,10 +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
- STASH: 'STASH',
6
- SINGBOX: 'SINGBOX',
7
- SINGBOX_LEGACY: 'SINGBOX_LEGACY',
8
- MIHOMO: 'MIHOMO',
9
- };
10
- 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,10 +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
- STASH: 'STASH',
6
- SINGBOX: 'SINGBOX',
7
- SINGBOX_LEGACY: 'SINGBOX_LEGACY',
8
- MIHOMO: 'MIHOMO',
9
- };
10
- exports.SUBSCRIPTION_TYPE_VALUES = Object.values(exports.SUBSCRIPTION_TYPE);