@remnawave/backend-contract 2.9.0 → 2.9.1

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 (206) hide show
  1. package/build/backend/commands/api-tokens/delete.command.d.ts +0 -8
  2. package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
  3. package/build/backend/commands/api-tokens/delete.command.js +0 -3
  4. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +0 -18
  5. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -1
  6. package/build/backend/commands/config-profiles/delete-config-profile.command.js +0 -5
  7. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +0 -18
  8. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -1
  9. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +0 -5
  10. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +0 -18
  11. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -1
  12. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +0 -5
  13. package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +0 -18
  14. package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -1
  15. package/build/backend/commands/external-squads/delete-external-squad.command.js +0 -5
  16. package/build/backend/commands/hosts/delete.command.d.ts +0 -18
  17. package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/delete.command.js +0 -5
  19. package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts +0 -104
  20. package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts.map +1 -1
  21. package/build/backend/commands/infra-billing/delete-bill-record.command.js +0 -7
  22. package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts +0 -743
  23. package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts.map +1 -1
  24. package/build/backend/commands/infra-billing/delete-billing-node.command.js +0 -14
  25. package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts +0 -18
  26. package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts.map +1 -1
  27. package/build/backend/commands/infra-billing/delete-infra-provider.command.js +0 -5
  28. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -18
  29. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -1
  30. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -5
  31. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -18
  32. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -1
  33. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -5
  34. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +0 -18
  35. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -1
  36. package/build/backend/commands/internal-squads/delete-internal-squad.command.js +0 -5
  37. package/build/backend/commands/ip-control/drop-connections.command.d.ts +0 -18
  38. package/build/backend/commands/ip-control/drop-connections.command.d.ts.map +1 -1
  39. package/build/backend/commands/ip-control/drop-connections.command.js +0 -5
  40. package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts +0 -18
  41. package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts.map +1 -1
  42. package/build/backend/commands/node-plugins/delete-node-plugin.command.js +0 -5
  43. package/build/backend/commands/node-plugins/executor.command.d.ts +0 -18
  44. package/build/backend/commands/node-plugins/executor.command.d.ts.map +1 -1
  45. package/build/backend/commands/node-plugins/executor.command.js +0 -5
  46. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +0 -711
  47. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
  48. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +0 -8
  49. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  50. package/build/backend/commands/nodes/actions/disable.command.js +2 -4
  51. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  52. package/build/backend/commands/nodes/actions/enable.command.js +2 -4
  53. package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +0 -18
  54. package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -1
  55. package/build/backend/commands/nodes/actions/reset-traffic.command.js +0 -5
  56. package/build/backend/commands/nodes/actions/restart-all.command.d.ts +0 -18
  57. package/build/backend/commands/nodes/actions/restart-all.command.d.ts.map +1 -1
  58. package/build/backend/commands/nodes/actions/restart-all.command.js +0 -5
  59. package/build/backend/commands/nodes/actions/restart.command.d.ts +0 -18
  60. package/build/backend/commands/nodes/actions/restart.command.d.ts.map +1 -1
  61. package/build/backend/commands/nodes/actions/restart.command.js +0 -5
  62. package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts +0 -18
  63. package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts.map +1 -1
  64. package/build/backend/commands/nodes/bulk-actions/actions.command.js +0 -5
  65. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +0 -18
  66. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
  67. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +0 -5
  68. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts +0 -18
  69. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts.map +1 -1
  70. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.js +0 -5
  71. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  72. package/build/backend/commands/nodes/create.command.js +2 -4
  73. package/build/backend/commands/nodes/delete.command.d.ts +0 -18
  74. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
  75. package/build/backend/commands/nodes/delete.command.js +0 -5
  76. package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
  77. package/build/backend/commands/nodes/get-node.command.js +2 -4
  78. package/build/backend/commands/nodes/node.response.d.ts +581 -0
  79. package/build/backend/commands/nodes/node.response.d.ts.map +1 -0
  80. package/build/backend/commands/nodes/node.response.js +8 -0
  81. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  82. package/build/backend/commands/nodes/update.command.js +2 -3
  83. package/build/backend/commands/passkeys/delete-passkey.command.d.ts +0 -53
  84. package/build/backend/commands/passkeys/delete-passkey.command.d.ts.map +1 -1
  85. package/build/backend/commands/passkeys/delete-passkey.command.js +0 -22
  86. package/build/backend/commands/snippets/delete-snippet.command.d.ts +0 -44
  87. package/build/backend/commands/snippets/delete-snippet.command.d.ts.map +1 -1
  88. package/build/backend/commands/snippets/delete-snippet.command.js +0 -7
  89. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts +0 -18
  90. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map +1 -1
  91. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.js +0 -5
  92. package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +0 -18
  93. package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -1
  94. package/build/backend/commands/subscription-template/delete-subscription-template.command.js +0 -5
  95. package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
  96. package/build/backend/commands/users/actions/disable-user.command.js +2 -4
  97. package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
  98. package/build/backend/commands/users/actions/enable-user.command.js +2 -4
  99. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
  100. package/build/backend/commands/users/actions/reset-user-traffic.command.js +2 -4
  101. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  102. package/build/backend/commands/users/actions/revoke-user-subscription.command.js +2 -4
  103. package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts +0 -18
  104. package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts.map +1 -1
  105. package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.js +0 -5
  106. package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +0 -18
  107. package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts.map +1 -1
  108. package/build/backend/commands/users/bulk/bulk-delete-users.command.js +0 -5
  109. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts +0 -18
  110. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts.map +1 -1
  111. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +0 -5
  112. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +0 -18
  113. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts.map +1 -1
  114. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +0 -5
  115. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +0 -18
  116. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts.map +1 -1
  117. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +0 -5
  118. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts +0 -18
  119. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -1
  120. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +0 -5
  121. package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +0 -18
  122. package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
  123. package/build/backend/commands/users/bulk/bulk-update-users.command.js +0 -5
  124. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts +0 -18
  125. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts.map +1 -1
  126. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +0 -5
  127. package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.d.ts +0 -19
  128. package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.d.ts.map +1 -1
  129. package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +0 -6
  130. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +0 -18
  131. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
  132. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +0 -5
  133. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  134. package/build/backend/commands/users/create-user.command.js +2 -3
  135. package/build/backend/commands/users/delete-user.command.d.ts +0 -18
  136. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
  137. package/build/backend/commands/users/delete-user.command.js +0 -5
  138. package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts.map +1 -1
  139. package/build/backend/commands/users/get-by/get-user-by-id.command.js +2 -4
  140. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
  141. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.js +2 -4
  142. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
  143. package/build/backend/commands/users/get-by/get-user-by-username.command.js +2 -4
  144. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  145. package/build/backend/commands/users/get-user-by-uuid.command.js +2 -4
  146. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  147. package/build/backend/commands/users/update-user.command.js +2 -3
  148. package/build/backend/commands/users/user.response.d.ts +214 -0
  149. package/build/backend/commands/users/user.response.d.ts.map +1 -0
  150. package/build/backend/commands/users/user.response.js +11 -0
  151. package/build/frontend/commands/api-tokens/delete.command.js +0 -3
  152. package/build/frontend/commands/config-profiles/delete-config-profile.command.js +0 -5
  153. package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +0 -5
  154. package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +0 -5
  155. package/build/frontend/commands/external-squads/delete-external-squad.command.js +0 -5
  156. package/build/frontend/commands/hosts/delete.command.js +0 -5
  157. package/build/frontend/commands/infra-billing/delete-bill-record.command.js +0 -7
  158. package/build/frontend/commands/infra-billing/delete-billing-node.command.js +0 -14
  159. package/build/frontend/commands/infra-billing/delete-infra-provider.command.js +0 -5
  160. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -5
  161. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -5
  162. package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +0 -5
  163. package/build/frontend/commands/ip-control/drop-connections.command.js +0 -5
  164. package/build/frontend/commands/node-plugins/delete-node-plugin.command.js +0 -5
  165. package/build/frontend/commands/node-plugins/executor.command.js +0 -5
  166. package/build/frontend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +0 -8
  167. package/build/frontend/commands/nodes/actions/disable.command.js +2 -4
  168. package/build/frontend/commands/nodes/actions/enable.command.js +2 -4
  169. package/build/frontend/commands/nodes/actions/reset-traffic.command.js +0 -5
  170. package/build/frontend/commands/nodes/actions/restart-all.command.js +0 -5
  171. package/build/frontend/commands/nodes/actions/restart.command.js +0 -5
  172. package/build/frontend/commands/nodes/bulk-actions/actions.command.js +0 -5
  173. package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +0 -5
  174. package/build/frontend/commands/nodes/bulk-actions/profile-modification.command.js +0 -5
  175. package/build/frontend/commands/nodes/create.command.js +2 -4
  176. package/build/frontend/commands/nodes/delete.command.js +0 -5
  177. package/build/frontend/commands/nodes/get-node.command.js +2 -4
  178. package/build/frontend/commands/nodes/node.response.js +8 -0
  179. package/build/frontend/commands/nodes/update.command.js +2 -3
  180. package/build/frontend/commands/passkeys/delete-passkey.command.js +0 -22
  181. package/build/frontend/commands/snippets/delete-snippet.command.js +0 -7
  182. package/build/frontend/commands/subscription-page-configs/delete-subpage-config.command.js +0 -5
  183. package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +0 -5
  184. package/build/frontend/commands/users/actions/disable-user.command.js +2 -4
  185. package/build/frontend/commands/users/actions/enable-user.command.js +2 -4
  186. package/build/frontend/commands/users/actions/reset-user-traffic.command.js +2 -4
  187. package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +2 -4
  188. package/build/frontend/commands/users/bulk/bulk-delete-users-by-status.command.js +0 -5
  189. package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +0 -5
  190. package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +0 -5
  191. package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +0 -5
  192. package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +0 -5
  193. package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +0 -5
  194. package/build/frontend/commands/users/bulk/bulk-update-users.command.js +0 -5
  195. package/build/frontend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +0 -5
  196. package/build/frontend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +0 -6
  197. package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +0 -5
  198. package/build/frontend/commands/users/create-user.command.js +2 -3
  199. package/build/frontend/commands/users/delete-user.command.js +0 -5
  200. package/build/frontend/commands/users/get-by/get-user-by-id.command.js +2 -4
  201. package/build/frontend/commands/users/get-by/get-user-by-short-uuid.command.js +2 -4
  202. package/build/frontend/commands/users/get-by/get-user-by-username.command.js +2 -4
  203. package/build/frontend/commands/users/get-user-by-uuid.command.js +2 -4
  204. package/build/frontend/commands/users/update-user.command.js +2 -3
  205. package/build/frontend/commands/users/user.response.js +11 -0
  206. package/package.json +1 -1
@@ -12,9 +12,4 @@ var BulkAllExtendExpirationDateCommand;
12
12
  BulkAllExtendExpirationDateCommand.RequestBodySchema = zod_1.z.object({
13
13
  extendDays: zod_1.z.number().int().min(1, 'Extend days must be greater than 0'),
14
14
  });
15
- BulkAllExtendExpirationDateCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- eventSent: zod_1.z.boolean(),
18
- }),
19
- });
20
15
  })(BulkAllExtendExpirationDateCommand || (exports.BulkAllExtendExpirationDateCommand = BulkAllExtendExpirationDateCommand = {}));
@@ -1,25 +1,6 @@
1
- import { z } from 'zod';
2
1
  export declare namespace BulkAllResetTrafficUsersCommand {
3
2
  const url: "/api/users/bulk/all/reset-traffic";
4
3
  const TSQ_url: "/api/users/bulk/all/reset-traffic";
5
4
  const endpointDetails: import("../../../constants").EndpointDetails;
6
- const ResponseSchema: z.ZodObject<{
7
- response: z.ZodObject<{
8
- eventSent: z.ZodBoolean;
9
- }, "strip", z.ZodTypeAny, {
10
- eventSent: boolean;
11
- }, {
12
- eventSent: boolean;
13
- }>;
14
- }, "strip", z.ZodTypeAny, {
15
- response: {
16
- eventSent: boolean;
17
- };
18
- }, {
19
- response: {
20
- eventSent: boolean;
21
- };
22
- }>;
23
- type Response = z.infer<typeof ResponseSchema>;
24
5
  }
25
6
  //# sourceMappingURL=bulk-all-reset-traffic-users.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bulk-all-reset-traffic-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk-all/bulk-all-reset-traffic-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,qCAAwC,CAAC;IAClD,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"bulk-all-reset-traffic-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk-all/bulk-all-reset-traffic-users.command.ts"],"names":[],"mappings":"AAGA,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,qCAAwC,CAAC;IAClD,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;CACL"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BulkAllResetTrafficUsersCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const api_1 = require("../../../api");
6
5
  const constants_1 = require("../../../constants");
7
6
  var BulkAllResetTrafficUsersCommand;
@@ -9,9 +8,4 @@ var BulkAllResetTrafficUsersCommand;
9
8
  BulkAllResetTrafficUsersCommand.url = api_1.REST_API.USERS.BULK.ALL.RESET_TRAFFIC;
10
9
  BulkAllResetTrafficUsersCommand.TSQ_url = BulkAllResetTrafficUsersCommand.url;
11
10
  BulkAllResetTrafficUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.ALL.RESET_TRAFFIC, 'post', 'Reset user used traffic for all users', { scope: 'bulk-all-reset-traffic', kind: 'write' });
12
- BulkAllResetTrafficUsersCommand.ResponseSchema = zod_1.z.object({
13
- response: zod_1.z.object({
14
- eventSent: zod_1.z.boolean(),
15
- }),
16
- });
17
11
  })(BulkAllResetTrafficUsersCommand || (exports.BulkAllResetTrafficUsersCommand = BulkAllResetTrafficUsersCommand = {}));
@@ -45,24 +45,6 @@ export declare namespace BulkAllUpdateUsersCommand {
45
45
  email?: string | null | undefined;
46
46
  hwidDeviceLimit?: number | null | undefined;
47
47
  }>;
48
- const ResponseSchema: z.ZodObject<{
49
- response: z.ZodObject<{
50
- eventSent: z.ZodBoolean;
51
- }, "strip", z.ZodTypeAny, {
52
- eventSent: boolean;
53
- }, {
54
- eventSent: boolean;
55
- }>;
56
- }, "strip", z.ZodTypeAny, {
57
- response: {
58
- eventSent: boolean;
59
- };
60
- }, {
61
- response: {
62
- eventSent: boolean;
63
- };
64
- }>;
65
48
  type RequestBody = z.infer<typeof RequestBodySchema>;
66
- type Response = z.infer<typeof ResponseSchema>;
67
49
  }
68
50
  //# sourceMappingURL=bulk-all-update-users.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bulk-all-update-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk-all/bulk-all-update-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2C5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"bulk-all-update-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk-all/bulk-all-update-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2C5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
@@ -42,9 +42,4 @@ var BulkAllUpdateUsersCommand;
42
42
  .nullable()),
43
43
  hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
44
44
  });
45
- BulkAllUpdateUsersCommand.ResponseSchema = zod_1.z.object({
46
- response: zod_1.z.object({
47
- eventSent: zod_1.z.boolean(),
48
- }),
49
- });
50
45
  })(BulkAllUpdateUsersCommand || (exports.BulkAllUpdateUsersCommand = BulkAllUpdateUsersCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkJ5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkJ5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
7
  const models_1 = require("../../models");
8
+ const user_response_1 = require("./user.response");
8
9
  var CreateUserCommand;
9
10
  (function (CreateUserCommand) {
10
11
  CreateUserCommand.url = api_1.REST_API.USERS.CREATE;
@@ -133,7 +134,5 @@ var CreateUserCommand;
133
134
  .optional(zod_1.z.nullable(zod_1.z.string().uuid()))
134
135
  .describe('Optional. External squad UUID.'),
135
136
  });
136
- CreateUserCommand.ResponseSchema = zod_1.z.object({
137
- response: models_1.ExtendedUsersSchema,
138
- });
137
+ CreateUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
139
138
  })(CreateUserCommand || (exports.CreateUserCommand = CreateUserCommand = {}));
@@ -10,24 +10,6 @@ export declare namespace DeleteUserCommand {
10
10
  }, {
11
11
  uuid: string;
12
12
  }>;
13
- const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<{
15
- isDeleted: z.ZodBoolean;
16
- }, "strip", z.ZodTypeAny, {
17
- isDeleted: boolean;
18
- }, {
19
- isDeleted: boolean;
20
- }>;
21
- }, "strip", z.ZodTypeAny, {
22
- response: {
23
- isDeleted: boolean;
24
- };
25
- }, {
26
- response: {
27
- isDeleted: boolean;
28
- };
29
- }>;
30
13
  type RequestParam = z.infer<typeof RequestParamSchema>;
31
- type Response = z.infer<typeof ResponseSchema>;
32
14
  }
33
15
  //# sourceMappingURL=delete-user.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/delete-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"delete-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/delete-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;CACjE"}
@@ -12,9 +12,4 @@ var DeleteUserCommand;
12
12
  DeleteUserCommand.RequestParamSchema = zod_1.z.object({
13
13
  uuid: zod_1.z.string().uuid(),
14
14
  });
15
- DeleteUserCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- isDeleted: zod_1.z.boolean(),
18
- }),
19
- });
20
15
  })(DeleteUserCommand || (exports.DeleteUserCommand = DeleteUserCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-id.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-id.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,wBAA2B,CAAC;IACrC,MAAM,OAAO,QAAa,CAAC;IAE3B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-by-id.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-id.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,wBAA2B,CAAC;IACrC,MAAM,OAAO,QAAa,CAAC;IAE3B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,7 +4,7 @@ exports.GetUserByIdCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../../api");
6
6
  const constants_1 = require("../../../constants");
7
- const models_1 = require("../../../models");
7
+ const user_response_1 = require("../user.response");
8
8
  var GetUserByIdCommand;
9
9
  (function (GetUserByIdCommand) {
10
10
  GetUserByIdCommand.url = api_1.REST_API.USERS.GET_BY.ID;
@@ -13,7 +13,5 @@ var GetUserByIdCommand;
13
13
  GetUserByIdCommand.RequestParamSchema = zod_1.z.object({
14
14
  id: zod_1.z.coerce.bigint(),
15
15
  });
16
- GetUserByIdCommand.ResponseSchema = zod_1.z.object({
17
- response: models_1.ExtendedUsersSchema,
18
- });
16
+ GetUserByIdCommand.ResponseSchema = user_response_1.UserResponseSchema;
19
17
  })(GetUserByIdCommand || (exports.GetUserByIdCommand = GetUserByIdCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,7 +4,7 @@ exports.GetUserByShortUuidCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../../api");
6
6
  const constants_1 = require("../../../constants");
7
- const models_1 = require("../../../models");
7
+ const user_response_1 = require("../user.response");
8
8
  var GetUserByShortUuidCommand;
9
9
  (function (GetUserByShortUuidCommand) {
10
10
  GetUserByShortUuidCommand.url = api_1.REST_API.USERS.GET_BY.SHORT_UUID;
@@ -13,7 +13,5 @@ var GetUserByShortUuidCommand;
13
13
  GetUserByShortUuidCommand.RequestParamSchema = zod_1.z.object({
14
14
  shortUuid: zod_1.z.string(),
15
15
  });
16
- GetUserByShortUuidCommand.ResponseSchema = zod_1.z.object({
17
- response: models_1.ExtendedUsersSchema,
18
- });
16
+ GetUserByShortUuidCommand.ResponseSchema = user_response_1.UserResponseSchema;
19
17
  })(GetUserByShortUuidCommand || (exports.GetUserByShortUuidCommand = GetUserByShortUuidCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,7 +4,7 @@ exports.GetUserByUsernameCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../../api");
6
6
  const constants_1 = require("../../../constants");
7
- const models_1 = require("../../../models");
7
+ const user_response_1 = require("../user.response");
8
8
  var GetUserByUsernameCommand;
9
9
  (function (GetUserByUsernameCommand) {
10
10
  GetUserByUsernameCommand.url = api_1.REST_API.USERS.GET_BY.USERNAME;
@@ -13,7 +13,5 @@ var GetUserByUsernameCommand;
13
13
  GetUserByUsernameCommand.RequestParamSchema = zod_1.z.object({
14
14
  username: zod_1.z.string(),
15
15
  });
16
- GetUserByUsernameCommand.ResponseSchema = zod_1.z.object({
17
- response: models_1.ExtendedUsersSchema,
18
- });
16
+ GetUserByUsernameCommand.ResponseSchema = user_response_1.UserResponseSchema;
19
17
  })(GetUserByUsernameCommand || (exports.GetUserByUsernameCommand = GetUserByUsernameCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,7 +4,7 @@ exports.GetUserByUuidCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
7
+ const user_response_1 = require("./user.response");
8
8
  var GetUserByUuidCommand;
9
9
  (function (GetUserByUuidCommand) {
10
10
  GetUserByUuidCommand.url = api_1.REST_API.USERS.GET_BY_UUID;
@@ -13,7 +13,5 @@ var GetUserByUuidCommand;
13
13
  GetUserByUuidCommand.RequestParamSchema = zod_1.z.object({
14
14
  uuid: zod_1.z.string().uuid(),
15
15
  });
16
- GetUserByUuidCommand.ResponseSchema = zod_1.z.object({
17
- response: models_1.ExtendedUsersSchema,
18
- });
16
+ GetUserByUuidCommand.ResponseSchema = user_response_1.UserResponseSchema;
19
17
  })(GetUserByUuidCommand || (exports.GetUserByUuidCommand = GetUserByUuidCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6ExB,CAAC;IAEA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6ExB,CAAC;IAEA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
7
  const models_1 = require("../../models");
8
+ const user_response_1 = require("./user.response");
8
9
  var UpdateUserCommand;
9
10
  (function (UpdateUserCommand) {
10
11
  UpdateUserCommand.url = api_1.REST_API.USERS.UPDATE;
@@ -75,7 +76,5 @@ var UpdateUserCommand;
75
76
  .refine((data) => data.uuid || data.username, {
76
77
  message: 'Either uuid or username must be provided',
77
78
  });
78
- UpdateUserCommand.ResponseSchema = zod_1.z.object({
79
- response: models_1.ExtendedUsersSchema,
80
- });
79
+ UpdateUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
81
80
  })(UpdateUserCommand || (exports.UpdateUserCommand = UpdateUserCommand = {}));
@@ -0,0 +1,214 @@
1
+ import z from 'zod';
2
+ export declare const UserResponseSchema: z.ZodObject<{
3
+ response: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ id: z.ZodNumber;
6
+ shortUuid: z.ZodString;
7
+ username: z.ZodString;
8
+ status: z.ZodDefault<z.ZodNativeEnum<{
9
+ readonly ACTIVE: "ACTIVE";
10
+ readonly DISABLED: "DISABLED";
11
+ readonly LIMITED: "LIMITED";
12
+ readonly EXPIRED: "EXPIRED";
13
+ }>>;
14
+ trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
15
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
16
+ readonly NO_RESET: "NO_RESET";
17
+ readonly DAY: "DAY";
18
+ readonly WEEK: "WEEK";
19
+ readonly MONTH: "MONTH";
20
+ readonly MONTH_ROLLING: "MONTH_ROLLING";
21
+ }>>;
22
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
23
+ telegramId: z.ZodNullable<z.ZodNumber>;
24
+ email: z.ZodNullable<z.ZodString>;
25
+ description: z.ZodNullable<z.ZodString>;
26
+ tag: z.ZodNullable<z.ZodString>;
27
+ hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
28
+ externalSquadUuid: z.ZodNullable<z.ZodString>;
29
+ trojanPassword: z.ZodString;
30
+ vlessUuid: z.ZodString;
31
+ ssPassword: z.ZodString;
32
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
33
+ subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
34
+ lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
35
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
36
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
37
+ } & {
38
+ subscriptionUrl: z.ZodString;
39
+ activeInternalSquads: z.ZodArray<z.ZodObject<{
40
+ uuid: z.ZodString;
41
+ name: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ uuid: string;
44
+ name: string;
45
+ }, {
46
+ uuid: string;
47
+ name: string;
48
+ }>, "many">;
49
+ userTraffic: z.ZodObject<{
50
+ usedTrafficBytes: z.ZodNumber;
51
+ lifetimeUsedTrafficBytes: z.ZodNumber;
52
+ onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
53
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
54
+ lastConnectedNodeUuid: z.ZodNullable<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ usedTrafficBytes: number;
57
+ lifetimeUsedTrafficBytes: number;
58
+ onlineAt: Date | null;
59
+ firstConnectedAt: Date | null;
60
+ lastConnectedNodeUuid: string | null;
61
+ }, {
62
+ usedTrafficBytes: number;
63
+ lifetimeUsedTrafficBytes: number;
64
+ onlineAt: string | null;
65
+ firstConnectedAt: string | null;
66
+ lastConnectedNodeUuid: string | null;
67
+ }>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
70
+ uuid: string;
71
+ expireAt: Date;
72
+ createdAt: Date;
73
+ updatedAt: Date;
74
+ description: string | null;
75
+ username: string;
76
+ tag: string | null;
77
+ id: number;
78
+ shortUuid: string;
79
+ trafficLimitBytes: number;
80
+ trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING";
81
+ telegramId: number | null;
82
+ email: string | null;
83
+ hwidDeviceLimit: number | null;
84
+ externalSquadUuid: string | null;
85
+ trojanPassword: string;
86
+ vlessUuid: string;
87
+ ssPassword: string;
88
+ lastTriggeredThreshold: number;
89
+ subRevokedAt: Date | null;
90
+ lastTrafficResetAt: Date | null;
91
+ subscriptionUrl: string;
92
+ activeInternalSquads: {
93
+ uuid: string;
94
+ name: string;
95
+ }[];
96
+ userTraffic: {
97
+ usedTrafficBytes: number;
98
+ lifetimeUsedTrafficBytes: number;
99
+ onlineAt: Date | null;
100
+ firstConnectedAt: Date | null;
101
+ lastConnectedNodeUuid: string | null;
102
+ };
103
+ }, {
104
+ uuid: string;
105
+ expireAt: string;
106
+ createdAt: string;
107
+ updatedAt: string;
108
+ description: string | null;
109
+ username: string;
110
+ tag: string | null;
111
+ id: number;
112
+ shortUuid: string;
113
+ telegramId: number | null;
114
+ email: string | null;
115
+ hwidDeviceLimit: number | null;
116
+ externalSquadUuid: string | null;
117
+ trojanPassword: string;
118
+ vlessUuid: string;
119
+ ssPassword: string;
120
+ subRevokedAt: string | null;
121
+ lastTrafficResetAt: string | null;
122
+ subscriptionUrl: string;
123
+ activeInternalSquads: {
124
+ uuid: string;
125
+ name: string;
126
+ }[];
127
+ userTraffic: {
128
+ usedTrafficBytes: number;
129
+ lifetimeUsedTrafficBytes: number;
130
+ onlineAt: string | null;
131
+ firstConnectedAt: string | null;
132
+ lastConnectedNodeUuid: string | null;
133
+ };
134
+ status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
135
+ trafficLimitBytes?: number | undefined;
136
+ trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING" | undefined;
137
+ lastTriggeredThreshold?: number | undefined;
138
+ }>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ response: {
141
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
142
+ uuid: string;
143
+ expireAt: Date;
144
+ createdAt: Date;
145
+ updatedAt: Date;
146
+ description: string | null;
147
+ username: string;
148
+ tag: string | null;
149
+ id: number;
150
+ shortUuid: string;
151
+ trafficLimitBytes: number;
152
+ trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING";
153
+ telegramId: number | null;
154
+ email: string | null;
155
+ hwidDeviceLimit: number | null;
156
+ externalSquadUuid: string | null;
157
+ trojanPassword: string;
158
+ vlessUuid: string;
159
+ ssPassword: string;
160
+ lastTriggeredThreshold: number;
161
+ subRevokedAt: Date | null;
162
+ lastTrafficResetAt: Date | null;
163
+ subscriptionUrl: string;
164
+ activeInternalSquads: {
165
+ uuid: string;
166
+ name: string;
167
+ }[];
168
+ userTraffic: {
169
+ usedTrafficBytes: number;
170
+ lifetimeUsedTrafficBytes: number;
171
+ onlineAt: Date | null;
172
+ firstConnectedAt: Date | null;
173
+ lastConnectedNodeUuid: string | null;
174
+ };
175
+ };
176
+ }, {
177
+ response: {
178
+ uuid: string;
179
+ expireAt: string;
180
+ createdAt: string;
181
+ updatedAt: string;
182
+ description: string | null;
183
+ username: string;
184
+ tag: string | null;
185
+ id: number;
186
+ shortUuid: string;
187
+ telegramId: number | null;
188
+ email: string | null;
189
+ hwidDeviceLimit: number | null;
190
+ externalSquadUuid: string | null;
191
+ trojanPassword: string;
192
+ vlessUuid: string;
193
+ ssPassword: string;
194
+ subRevokedAt: string | null;
195
+ lastTrafficResetAt: string | null;
196
+ subscriptionUrl: string;
197
+ activeInternalSquads: {
198
+ uuid: string;
199
+ name: string;
200
+ }[];
201
+ userTraffic: {
202
+ usedTrafficBytes: number;
203
+ lifetimeUsedTrafficBytes: number;
204
+ onlineAt: string | null;
205
+ firstConnectedAt: string | null;
206
+ lastConnectedNodeUuid: string | null;
207
+ };
208
+ status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
209
+ trafficLimitBytes?: number | undefined;
210
+ trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING" | undefined;
211
+ lastTriggeredThreshold?: number | undefined;
212
+ };
213
+ }>;
214
+ //# sourceMappingURL=user.response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.response.d.ts","sourceRoot":"","sources":["../../../../commands/users/user.response.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UserResponseSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const extended_users_schema_1 = require("../../models/extended-users.schema");
9
+ exports.UserResponseSchema = zod_1.default.object({
10
+ response: extended_users_schema_1.ExtendedUsersSchema,
11
+ });
@@ -12,7 +12,4 @@ var DeleteApiTokenCommand;
12
12
  DeleteApiTokenCommand.RequestParamSchema = zod_1.z.object({
13
13
  uuid: zod_1.z.string().uuid().describe('UUID of the API token'),
14
14
  });
15
- DeleteApiTokenCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.boolean(),
17
- });
18
15
  })(DeleteApiTokenCommand || (exports.DeleteApiTokenCommand = DeleteApiTokenCommand = {}));
@@ -12,9 +12,4 @@ var DeleteConfigProfileCommand;
12
12
  DeleteConfigProfileCommand.RequestParamSchema = zod_1.z.object({
13
13
  uuid: zod_1.z.string().uuid().describe('UUID of the config profile'),
14
14
  });
15
- DeleteConfigProfileCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- isDeleted: zod_1.z.boolean(),
18
- }),
19
- });
20
15
  })(DeleteConfigProfileCommand || (exports.DeleteConfigProfileCommand = DeleteConfigProfileCommand = {}));
@@ -12,9 +12,4 @@ var AddUsersToExternalSquadCommand;
12
12
  AddUsersToExternalSquadCommand.RequestParamSchema = zod_1.z.object({
13
13
  uuid: zod_1.z.string().uuid().describe('UUID of the external squad'),
14
14
  });
15
- AddUsersToExternalSquadCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- eventSent: zod_1.z.boolean(),
18
- }),
19
- });
20
15
  })(AddUsersToExternalSquadCommand || (exports.AddUsersToExternalSquadCommand = AddUsersToExternalSquadCommand = {}));
@@ -12,9 +12,4 @@ var DeleteUsersFromExternalSquadCommand;
12
12
  DeleteUsersFromExternalSquadCommand.RequestParamSchema = zod_1.z.object({
13
13
  uuid: zod_1.z.string().uuid().describe('UUID of the external squad'),
14
14
  });
15
- DeleteUsersFromExternalSquadCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- eventSent: zod_1.z.boolean(),
18
- }),
19
- });
20
15
  })(DeleteUsersFromExternalSquadCommand || (exports.DeleteUsersFromExternalSquadCommand = DeleteUsersFromExternalSquadCommand = {}));
@@ -12,9 +12,4 @@ var DeleteExternalSquadCommand;
12
12
  DeleteExternalSquadCommand.RequestParamSchema = zod_1.z.object({
13
13
  uuid: zod_1.z.string().uuid().describe('UUID of the external squad'),
14
14
  });
15
- DeleteExternalSquadCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- isDeleted: zod_1.z.boolean(),
18
- }),
19
- });
20
15
  })(DeleteExternalSquadCommand || (exports.DeleteExternalSquadCommand = DeleteExternalSquadCommand = {}));
@@ -12,9 +12,4 @@ var DeleteHostCommand;
12
12
  DeleteHostCommand.RequestParamSchema = zod_1.z.object({
13
13
  uuid: zod_1.z.string().uuid(),
14
14
  });
15
- DeleteHostCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- isDeleted: zod_1.z.boolean(),
18
- }),
19
- });
20
15
  })(DeleteHostCommand || (exports.DeleteHostCommand = DeleteHostCommand = {}));
@@ -4,7 +4,6 @@ exports.DeleteInfraBillingRecordCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
8
7
  var DeleteInfraBillingRecordCommand;
9
8
  (function (DeleteInfraBillingRecordCommand) {
10
9
  DeleteInfraBillingRecordCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_BILLING_HISTORY;
@@ -13,10 +12,4 @@ var DeleteInfraBillingRecordCommand;
13
12
  DeleteInfraBillingRecordCommand.RequestParamSchema = zod_1.z.object({
14
13
  uuid: zod_1.z.string().uuid(),
15
14
  });
16
- DeleteInfraBillingRecordCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.object({
18
- records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
19
- total: zod_1.z.number(),
20
- }),
21
- });
22
15
  })(DeleteInfraBillingRecordCommand || (exports.DeleteInfraBillingRecordCommand = DeleteInfraBillingRecordCommand = {}));
@@ -4,7 +4,6 @@ exports.DeleteInfraBillingNodeCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
8
7
  var DeleteInfraBillingNodeCommand;
9
8
  (function (DeleteInfraBillingNodeCommand) {
10
9
  DeleteInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_BILLING_NODE;
@@ -13,17 +12,4 @@ var DeleteInfraBillingNodeCommand;
13
12
  DeleteInfraBillingNodeCommand.RequestParamSchema = zod_1.z.object({
14
13
  uuid: zod_1.z.string().uuid(),
15
14
  });
16
- DeleteInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.object({
18
- totalBillingNodes: zod_1.z.number(),
19
- billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
20
- availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
21
- totalAvailableBillingNodes: zod_1.z.number(),
22
- stats: zod_1.z.object({
23
- upcomingNodesCount: zod_1.z.number(),
24
- currentMonthPayments: zod_1.z.number(),
25
- totalSpent: zod_1.z.number(),
26
- }),
27
- }),
28
- });
29
15
  })(DeleteInfraBillingNodeCommand || (exports.DeleteInfraBillingNodeCommand = DeleteInfraBillingNodeCommand = {}));