@gigapay-dev/contracts 1.8.6 → 3.0.0

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 (314) hide show
  1. package/README.md +1 -0
  2. package/build/domains/admin/index.d.ts +150 -0
  3. package/build/domains/admin/index.d.ts.map +1 -0
  4. package/build/domains/admin/index.js +72 -0
  5. package/build/domains/admin/index.js.map +1 -0
  6. package/build/domains/auth/commands.d.ts +294 -0
  7. package/build/domains/auth/commands.d.ts.map +1 -0
  8. package/build/domains/auth/commands.js +116 -0
  9. package/build/domains/auth/commands.js.map +1 -0
  10. package/build/domains/auth/dtos.d.ts +37 -0
  11. package/build/domains/auth/dtos.d.ts.map +1 -0
  12. package/build/domains/auth/dtos.js +26 -0
  13. package/build/domains/auth/dtos.js.map +1 -0
  14. package/build/domains/auth/events.d.ts +35 -0
  15. package/build/domains/auth/events.d.ts.map +1 -0
  16. package/build/domains/auth/events.js +24 -0
  17. package/build/domains/auth/events.js.map +1 -0
  18. package/build/domains/auth/index.d.ts +165 -0
  19. package/build/domains/auth/index.d.ts.map +1 -0
  20. package/build/{commands/products → domains/auth}/index.js +12 -6
  21. package/build/domains/auth/index.js.map +1 -0
  22. package/build/domains/auth/queries.d.ts +75 -0
  23. package/build/domains/auth/queries.d.ts.map +1 -0
  24. package/build/domains/auth/queries.js +25 -0
  25. package/build/domains/auth/queries.js.map +1 -0
  26. package/build/domains/catalog/commands.d.ts +255 -0
  27. package/build/domains/catalog/commands.d.ts.map +1 -0
  28. package/build/domains/catalog/commands.js +82 -0
  29. package/build/domains/catalog/commands.js.map +1 -0
  30. package/build/domains/catalog/dtos.d.ts +89 -0
  31. package/build/domains/catalog/dtos.d.ts.map +1 -0
  32. package/build/domains/catalog/dtos.js +43 -0
  33. package/build/domains/catalog/dtos.js.map +1 -0
  34. package/build/domains/catalog/index.d.ts +194 -0
  35. package/build/domains/catalog/index.d.ts.map +1 -0
  36. package/build/{commands/payment-methods → domains/catalog}/index.js +11 -4
  37. package/build/domains/catalog/index.js.map +1 -0
  38. package/build/domains/catalog/queries.d.ts +168 -0
  39. package/build/domains/catalog/queries.d.ts.map +1 -0
  40. package/build/domains/catalog/queries.js +29 -0
  41. package/build/domains/catalog/queries.js.map +1 -0
  42. package/build/domains/config/index.d.ts +40 -0
  43. package/build/domains/config/index.d.ts.map +1 -0
  44. package/build/domains/config/index.js +18 -0
  45. package/build/domains/config/index.js.map +1 -0
  46. package/build/domains/orders/commands.d.ts +262 -0
  47. package/build/domains/orders/commands.d.ts.map +1 -0
  48. package/build/domains/orders/commands.js +47 -0
  49. package/build/domains/orders/commands.js.map +1 -0
  50. package/build/domains/orders/dtos.d.ts +112 -0
  51. package/build/domains/orders/dtos.d.ts.map +1 -0
  52. package/build/domains/orders/dtos.js +44 -0
  53. package/build/domains/orders/dtos.js.map +1 -0
  54. package/build/domains/orders/events.d.ts +21 -0
  55. package/build/domains/orders/events.d.ts.map +1 -0
  56. package/build/domains/orders/events.js +19 -0
  57. package/build/domains/orders/events.js.map +1 -0
  58. package/build/domains/orders/index.d.ts +381 -0
  59. package/build/domains/orders/index.d.ts.map +1 -0
  60. package/build/domains/orders/index.js +28 -0
  61. package/build/domains/orders/index.js.map +1 -0
  62. package/build/domains/orders/queries.d.ts +532 -0
  63. package/build/domains/orders/queries.d.ts.map +1 -0
  64. package/build/domains/orders/queries.js +40 -0
  65. package/build/domains/orders/queries.js.map +1 -0
  66. package/build/domains/payments/index.d.ts +96 -0
  67. package/build/domains/payments/index.d.ts.map +1 -0
  68. package/build/domains/payments/index.js +34 -0
  69. package/build/domains/payments/index.js.map +1 -0
  70. package/build/domains/products/commands.d.ts +302 -0
  71. package/build/domains/products/commands.d.ts.map +1 -0
  72. package/build/domains/products/commands.js +101 -0
  73. package/build/domains/products/commands.js.map +1 -0
  74. package/build/domains/products/dtos.d.ts +122 -0
  75. package/build/domains/products/dtos.d.ts.map +1 -0
  76. package/build/domains/products/dtos.js +54 -0
  77. package/build/domains/products/dtos.js.map +1 -0
  78. package/build/domains/products/index.d.ts +276 -0
  79. package/build/domains/products/index.d.ts.map +1 -0
  80. package/build/{commands/auth → domains/products}/index.js +11 -5
  81. package/build/domains/products/index.js.map +1 -0
  82. package/build/domains/products/queries.d.ts +334 -0
  83. package/build/domains/products/queries.d.ts.map +1 -0
  84. package/build/domains/products/queries.js +41 -0
  85. package/build/domains/products/queries.js.map +1 -0
  86. package/build/domains/promo-codes/index.d.ts +92 -0
  87. package/build/domains/promo-codes/index.d.ts.map +1 -0
  88. package/build/domains/promo-codes/index.js +40 -0
  89. package/build/domains/promo-codes/index.js.map +1 -0
  90. package/build/domains/stats/index.d.ts +274 -0
  91. package/build/domains/stats/index.d.ts.map +1 -0
  92. package/build/domains/stats/index.js +76 -0
  93. package/build/domains/stats/index.js.map +1 -0
  94. package/build/domains/users/dtos.d.ts +9 -0
  95. package/build/domains/users/dtos.d.ts.map +1 -0
  96. package/build/domains/users/dtos.js +11 -0
  97. package/build/domains/users/dtos.js.map +1 -0
  98. package/build/domains/users/index.d.ts +101 -0
  99. package/build/domains/users/index.d.ts.map +1 -0
  100. package/build/domains/users/index.js +52 -0
  101. package/build/domains/users/index.js.map +1 -0
  102. package/build/index.d.ts +1310 -1
  103. package/build/index.d.ts.map +1 -0
  104. package/build/index.js +35 -1
  105. package/build/index.js.map +1 -0
  106. package/build/shared/api-response.d.ts +17 -0
  107. package/build/shared/api-response.d.ts.map +1 -0
  108. package/build/shared/api-response.js +22 -0
  109. package/build/shared/api-response.js.map +1 -0
  110. package/build/shared/common.d.ts +14 -0
  111. package/build/shared/common.d.ts.map +1 -0
  112. package/build/shared/common.js +8 -0
  113. package/build/shared/common.js.map +1 -0
  114. package/build/shared/errors.d.ts +34 -0
  115. package/build/shared/errors.d.ts.map +1 -0
  116. package/build/shared/errors.js +36 -0
  117. package/build/shared/errors.js.map +1 -0
  118. package/build/shared/index.d.ts +7 -0
  119. package/build/shared/index.d.ts.map +1 -0
  120. package/build/{commands/orders → shared}/index.js +7 -6
  121. package/build/shared/index.js.map +1 -0
  122. package/build/shared/money.d.ts +32 -0
  123. package/build/shared/money.d.ts.map +1 -0
  124. package/build/shared/money.js +20 -0
  125. package/build/shared/money.js.map +1 -0
  126. package/build/shared/pagination.d.ts +27 -0
  127. package/build/shared/pagination.d.ts.map +1 -0
  128. package/build/shared/pagination.js +22 -0
  129. package/build/shared/pagination.js.map +1 -0
  130. package/build/shared/types.d.ts +20 -0
  131. package/build/shared/types.d.ts.map +1 -0
  132. package/build/{types.js → shared/types.js} +1 -0
  133. package/build/shared/types.js.map +1 -0
  134. package/package.json +41 -15
  135. package/build/commands/api-response.d.ts +0 -18
  136. package/build/commands/api-response.js +0 -13
  137. package/build/commands/auth/confirm.d.ts +0 -11
  138. package/build/commands/auth/confirm.js +0 -11
  139. package/build/commands/auth/endpoints.d.ts +0 -114
  140. package/build/commands/auth/endpoints.js +0 -50
  141. package/build/commands/auth/index.d.ts +0 -5
  142. package/build/commands/auth/login.d.ts +0 -20
  143. package/build/commands/auth/login.js +0 -11
  144. package/build/commands/auth/profile.d.ts +0 -18
  145. package/build/commands/auth/profile.js +0 -10
  146. package/build/commands/auth/register.d.ts +0 -12
  147. package/build/commands/auth/register.js +0 -11
  148. package/build/commands/auth/reset.d.ts +0 -12
  149. package/build/commands/auth/reset.js +0 -9
  150. package/build/commands/consts.d.ts +0 -1
  151. package/build/commands/consts.js +0 -4
  152. package/build/commands/index.d.ts +0 -13
  153. package/build/commands/index.js +0 -29
  154. package/build/commands/orders/create.d.ts +0 -95
  155. package/build/commands/orders/create.js +0 -40
  156. package/build/commands/orders/endpoints.d.ts +0 -726
  157. package/build/commands/orders/endpoints.js +0 -47
  158. package/build/commands/orders/enums.d.ts +0 -7
  159. package/build/commands/orders/enums.js +0 -25
  160. package/build/commands/orders/index.d.ts +0 -6
  161. package/build/commands/orders/query.d.ts +0 -103
  162. package/build/commands/orders/query.js +0 -45
  163. package/build/commands/orders/read.d.ts +0 -230
  164. package/build/commands/orders/read.js +0 -81
  165. package/build/commands/orders/update.d.ts +0 -23
  166. package/build/commands/orders/update.js +0 -16
  167. package/build/commands/pagination.d.ts +0 -12
  168. package/build/commands/pagination.js +0 -11
  169. package/build/commands/payment-methods/create.d.ts +0 -45
  170. package/build/commands/payment-methods/create.js +0 -22
  171. package/build/commands/payment-methods/endpoints.d.ts +0 -536
  172. package/build/commands/payment-methods/endpoints.js +0 -63
  173. package/build/commands/payment-methods/index.d.ts +0 -4
  174. package/build/commands/payment-methods/read.d.ts +0 -71
  175. package/build/commands/payment-methods/read.js +0 -28
  176. package/build/commands/payment-methods/update.d.ts +0 -45
  177. package/build/commands/payment-methods/update.js +0 -19
  178. package/build/commands/products/create.d.ts +0 -229
  179. package/build/commands/products/create.js +0 -122
  180. package/build/commands/products/endpoints.d.ts +0 -1881
  181. package/build/commands/products/endpoints.js +0 -99
  182. package/build/commands/products/enums.d.ts +0 -19
  183. package/build/commands/products/enums.js +0 -27
  184. package/build/commands/products/index.d.ts +0 -6
  185. package/build/commands/products/query.d.ts +0 -79
  186. package/build/commands/products/query.js +0 -55
  187. package/build/commands/products/read.d.ts +0 -1178
  188. package/build/commands/products/read.js +0 -231
  189. package/build/commands/products/update.d.ts +0 -78
  190. package/build/commands/products/update.js +0 -10
  191. package/build/commands/promocode-activations/create.d.ts +0 -18
  192. package/build/commands/promocode-activations/create.js +0 -10
  193. package/build/commands/promocode-activations/index.d.ts +0 -3
  194. package/build/commands/promocode-activations/index.js +0 -19
  195. package/build/commands/promocode-activations/read.d.ts +0 -21
  196. package/build/commands/promocode-activations/read.js +0 -14
  197. package/build/commands/promocode-activations/update.d.ts +0 -18
  198. package/build/commands/promocode-activations/update.js +0 -10
  199. package/build/commands/promocodes/create.d.ts +0 -39
  200. package/build/commands/promocodes/create.js +0 -18
  201. package/build/commands/promocodes/endpoints.d.ts +0 -353
  202. package/build/commands/promocodes/endpoints.js +0 -46
  203. package/build/commands/promocodes/enums.d.ts +0 -5
  204. package/build/commands/promocodes/enums.js +0 -9
  205. package/build/commands/promocodes/index.d.ts +0 -5
  206. package/build/commands/promocodes/index.js +0 -21
  207. package/build/commands/promocodes/read.d.ts +0 -45
  208. package/build/commands/promocodes/read.js +0 -23
  209. package/build/commands/promocodes/update.d.ts +0 -33
  210. package/build/commands/promocodes/update.js +0 -16
  211. package/build/commands/refresh-sessions/create.d.ts +0 -24
  212. package/build/commands/refresh-sessions/create.js +0 -13
  213. package/build/commands/refresh-sessions/enums.d.ts +0 -3
  214. package/build/commands/refresh-sessions/enums.js +0 -8
  215. package/build/commands/refresh-sessions/index.d.ts +0 -4
  216. package/build/commands/refresh-sessions/index.js +0 -20
  217. package/build/commands/refresh-sessions/read.d.ts +0 -27
  218. package/build/commands/refresh-sessions/read.js +0 -17
  219. package/build/commands/refresh-sessions/update.d.ts +0 -24
  220. package/build/commands/refresh-sessions/update.js +0 -16
  221. package/build/commands/settings/endpoints.d.ts +0 -108
  222. package/build/commands/settings/endpoints.js +0 -43
  223. package/build/commands/settings/index.d.ts +0 -3
  224. package/build/commands/settings/index.js +0 -19
  225. package/build/commands/settings/read.d.ts +0 -18
  226. package/build/commands/settings/read.js +0 -10
  227. package/build/commands/settings/update.d.ts +0 -18
  228. package/build/commands/settings/update.js +0 -10
  229. package/build/commands/stats/endpoints.d.ts +0 -67
  230. package/build/commands/stats/endpoints.js +0 -13
  231. package/build/commands/stats/index.d.ts +0 -3
  232. package/build/commands/stats/index.js +0 -19
  233. package/build/commands/stats/query.d.ts +0 -31
  234. package/build/commands/stats/query.js +0 -15
  235. package/build/commands/stats/read.d.ts +0 -30
  236. package/build/commands/stats/read.js +0 -17
  237. package/build/commands/users/create.d.ts +0 -42
  238. package/build/commands/users/create.js +0 -19
  239. package/build/commands/users/endpoints.d.ts +0 -403
  240. package/build/commands/users/endpoints.js +0 -39
  241. package/build/commands/users/enums.d.ts +0 -6
  242. package/build/commands/users/enums.js +0 -10
  243. package/build/commands/users/index.d.ts +0 -6
  244. package/build/commands/users/index.js +0 -22
  245. package/build/commands/users/query.d.ts +0 -52
  246. package/build/commands/users/query.js +0 -21
  247. package/build/commands/users/read.d.ts +0 -60
  248. package/build/commands/users/read.js +0 -28
  249. package/build/commands/users/update.d.ts +0 -42
  250. package/build/commands/users/update.js +0 -19
  251. package/build/types.d.ts +0 -8
  252. package/commands/api-response.ts +0 -10
  253. package/commands/auth/confirm.ts +0 -10
  254. package/commands/auth/endpoints.ts +0 -51
  255. package/commands/auth/index.ts +0 -5
  256. package/commands/auth/login.ts +0 -13
  257. package/commands/auth/profile.ts +0 -10
  258. package/commands/auth/register.ts +0 -8
  259. package/commands/auth/reset.ts +0 -9
  260. package/commands/consts.ts +0 -1
  261. package/commands/index.ts +0 -13
  262. package/commands/orders/create.ts +0 -41
  263. package/commands/orders/endpoints.ts +0 -51
  264. package/commands/orders/enums.ts +0 -25
  265. package/commands/orders/index.ts +0 -6
  266. package/commands/orders/query.ts +0 -46
  267. package/commands/orders/read.ts +0 -83
  268. package/commands/orders/update.ts +0 -16
  269. package/commands/pagination.ts +0 -8
  270. package/commands/payment-methods/create.ts +0 -19
  271. package/commands/payment-methods/endpoints.ts +0 -67
  272. package/commands/payment-methods/index.ts +0 -4
  273. package/commands/payment-methods/read.ts +0 -30
  274. package/commands/payment-methods/update.ts +0 -19
  275. package/commands/products/create.ts +0 -134
  276. package/commands/products/endpoints.ts +0 -108
  277. package/commands/products/enums.ts +0 -33
  278. package/commands/products/index.ts +0 -6
  279. package/commands/products/query.ts +0 -52
  280. package/commands/products/read.ts +0 -268
  281. package/commands/products/update.ts +0 -11
  282. package/commands/promocode-activations/create.ts +0 -10
  283. package/commands/promocode-activations/index.ts +0 -3
  284. package/commands/promocode-activations/read.ts +0 -11
  285. package/commands/promocode-activations/update.ts +0 -10
  286. package/commands/promocodes/create.ts +0 -18
  287. package/commands/promocodes/endpoints.ts +0 -62
  288. package/commands/promocodes/enums.ts +0 -9
  289. package/commands/promocodes/index.ts +0 -5
  290. package/commands/promocodes/read.ts +0 -20
  291. package/commands/promocodes/update.ts +0 -16
  292. package/commands/refresh-sessions/create.ts +0 -13
  293. package/commands/refresh-sessions/enums.ts +0 -4
  294. package/commands/refresh-sessions/index.ts +0 -4
  295. package/commands/refresh-sessions/read.ts +0 -14
  296. package/commands/refresh-sessions/update.ts +0 -13
  297. package/commands/settings/endpoints.ts +0 -52
  298. package/commands/settings/index.ts +0 -3
  299. package/commands/settings/read.ts +0 -10
  300. package/commands/settings/update.ts +0 -10
  301. package/commands/stats/endpoints.ts +0 -23
  302. package/commands/stats/index.ts +0 -3
  303. package/commands/stats/query.ts +0 -18
  304. package/commands/stats/read.ts +0 -14
  305. package/commands/users/create.ts +0 -19
  306. package/commands/users/endpoints.ts +0 -47
  307. package/commands/users/enums.ts +0 -10
  308. package/commands/users/index.ts +0 -6
  309. package/commands/users/query.ts +0 -20
  310. package/commands/users/read.ts +0 -25
  311. package/commands/users/update.ts +0 -19
  312. package/index.ts +0 -1
  313. package/tsconfig.json +0 -111
  314. package/types.ts +0 -9
@@ -1,353 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PromoCodeEndpoints: {
3
- create: {
4
- method: "POST";
5
- path: string;
6
- request: z.ZodObject<{
7
- value: z.ZodString;
8
- discountValue: z.ZodString;
9
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
13
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
14
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
17
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
18
- }, "strip", z.ZodTypeAny, {
19
- value: string;
20
- type: "USER" | "AD" | "SYSTEM";
21
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
22
- discountValue: string;
23
- createdAt?: Date | null | undefined;
24
- updatedAt?: Date | null | undefined;
25
- expiredAt?: Date | null | undefined;
26
- startedAt?: Date | null | undefined;
27
- deletedAt?: Date | null | undefined;
28
- activationLimit?: number | null | undefined;
29
- activationPerUserLimit?: number | null | undefined;
30
- }, {
31
- value: string;
32
- type: "USER" | "AD" | "SYSTEM";
33
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
34
- discountValue: string;
35
- createdAt?: Date | null | undefined;
36
- updatedAt?: Date | null | undefined;
37
- expiredAt?: Date | null | undefined;
38
- startedAt?: Date | null | undefined;
39
- deletedAt?: Date | null | undefined;
40
- activationLimit?: number | null | undefined;
41
- activationPerUserLimit?: number | null | undefined;
42
- }>;
43
- response: z.ZodObject<{
44
- id: z.ZodNumber;
45
- value: z.ZodString;
46
- activated: z.ZodNumber;
47
- discountValue: z.ZodString;
48
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
49
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
50
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
51
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
52
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
53
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
56
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
57
- }, "strip", z.ZodTypeAny, {
58
- value: string;
59
- type: "USER" | "AD" | "SYSTEM";
60
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
61
- id: number;
62
- discountValue: string;
63
- activated: number;
64
- createdAt?: Date | null | undefined;
65
- updatedAt?: Date | null | undefined;
66
- expiredAt?: Date | null | undefined;
67
- startedAt?: Date | null | undefined;
68
- deletedAt?: Date | null | undefined;
69
- activationLimit?: number | null | undefined;
70
- activationPerUserLimit?: number | null | undefined;
71
- }, {
72
- value: string;
73
- type: "USER" | "AD" | "SYSTEM";
74
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
75
- id: number;
76
- discountValue: string;
77
- activated: number;
78
- createdAt?: Date | null | undefined;
79
- updatedAt?: Date | null | undefined;
80
- expiredAt?: Date | null | undefined;
81
- startedAt?: Date | null | undefined;
82
- deletedAt?: Date | null | undefined;
83
- activationLimit?: number | null | undefined;
84
- activationPerUserLimit?: number | null | undefined;
85
- }>;
86
- };
87
- list: {
88
- method: "GET";
89
- path: string;
90
- request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
91
- response: z.ZodArray<z.ZodObject<{
92
- id: z.ZodNumber;
93
- value: z.ZodString;
94
- activated: z.ZodNumber;
95
- discountValue: z.ZodString;
96
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
97
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
98
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
99
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
100
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
101
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
103
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
104
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
105
- }, "strip", z.ZodTypeAny, {
106
- value: string;
107
- type: "USER" | "AD" | "SYSTEM";
108
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
109
- id: number;
110
- discountValue: string;
111
- activated: number;
112
- createdAt?: Date | null | undefined;
113
- updatedAt?: Date | null | undefined;
114
- expiredAt?: Date | null | undefined;
115
- startedAt?: Date | null | undefined;
116
- deletedAt?: Date | null | undefined;
117
- activationLimit?: number | null | undefined;
118
- activationPerUserLimit?: number | null | undefined;
119
- }, {
120
- value: string;
121
- type: "USER" | "AD" | "SYSTEM";
122
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
123
- id: number;
124
- discountValue: string;
125
- activated: number;
126
- createdAt?: Date | null | undefined;
127
- updatedAt?: Date | null | undefined;
128
- expiredAt?: Date | null | undefined;
129
- startedAt?: Date | null | undefined;
130
- deletedAt?: Date | null | undefined;
131
- activationLimit?: number | null | undefined;
132
- activationPerUserLimit?: number | null | undefined;
133
- }>, "many">;
134
- };
135
- getById: {
136
- method: "GET";
137
- path: string;
138
- request: z.ZodObject<{
139
- id: z.ZodNumber;
140
- }, "strip", z.ZodTypeAny, {
141
- id: number;
142
- }, {
143
- id: number;
144
- }>;
145
- response: z.ZodObject<{
146
- id: z.ZodNumber;
147
- value: z.ZodString;
148
- activated: z.ZodNumber;
149
- discountValue: z.ZodString;
150
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
151
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
152
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
153
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
154
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
155
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
158
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
159
- }, "strip", z.ZodTypeAny, {
160
- value: string;
161
- type: "USER" | "AD" | "SYSTEM";
162
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
163
- id: number;
164
- discountValue: string;
165
- activated: number;
166
- createdAt?: Date | null | undefined;
167
- updatedAt?: Date | null | undefined;
168
- expiredAt?: Date | null | undefined;
169
- startedAt?: Date | null | undefined;
170
- deletedAt?: Date | null | undefined;
171
- activationLimit?: number | null | undefined;
172
- activationPerUserLimit?: number | null | undefined;
173
- }, {
174
- value: string;
175
- type: "USER" | "AD" | "SYSTEM";
176
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
177
- id: number;
178
- discountValue: string;
179
- activated: number;
180
- createdAt?: Date | null | undefined;
181
- updatedAt?: Date | null | undefined;
182
- expiredAt?: Date | null | undefined;
183
- startedAt?: Date | null | undefined;
184
- deletedAt?: Date | null | undefined;
185
- activationLimit?: number | null | undefined;
186
- activationPerUserLimit?: number | null | undefined;
187
- }>;
188
- };
189
- getByValue: {
190
- method: "GET";
191
- path: string;
192
- request: z.ZodObject<{
193
- value: z.ZodString;
194
- }, "strip", z.ZodTypeAny, {
195
- value: string;
196
- }, {
197
- value: string;
198
- }>;
199
- response: z.ZodObject<{
200
- id: z.ZodNumber;
201
- value: z.ZodString;
202
- activated: z.ZodNumber;
203
- discountValue: z.ZodString;
204
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
205
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
206
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
207
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
208
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
209
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
210
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
211
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
212
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
213
- }, "strip", z.ZodTypeAny, {
214
- value: string;
215
- type: "USER" | "AD" | "SYSTEM";
216
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
217
- id: number;
218
- discountValue: string;
219
- activated: number;
220
- createdAt?: Date | null | undefined;
221
- updatedAt?: Date | null | undefined;
222
- expiredAt?: Date | null | undefined;
223
- startedAt?: Date | null | undefined;
224
- deletedAt?: Date | null | undefined;
225
- activationLimit?: number | null | undefined;
226
- activationPerUserLimit?: number | null | undefined;
227
- }, {
228
- value: string;
229
- type: "USER" | "AD" | "SYSTEM";
230
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
231
- id: number;
232
- discountValue: string;
233
- activated: number;
234
- createdAt?: Date | null | undefined;
235
- updatedAt?: Date | null | undefined;
236
- expiredAt?: Date | null | undefined;
237
- startedAt?: Date | null | undefined;
238
- deletedAt?: Date | null | undefined;
239
- activationLimit?: number | null | undefined;
240
- activationPerUserLimit?: number | null | undefined;
241
- }>;
242
- };
243
- update: {
244
- method: "PATCH";
245
- path: string;
246
- request: z.ZodObject<{
247
- id: z.ZodNumber;
248
- body: z.ZodObject<{
249
- value: z.ZodOptional<z.ZodString>;
250
- discountValue: z.ZodOptional<z.ZodString>;
251
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
252
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
253
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
254
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
255
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
256
- type: z.ZodOptional<z.ZodEnum<["USER", "AD", "SYSTEM"]>>;
257
- status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>>;
258
- }, "strip", z.ZodTypeAny, {
259
- value?: string | undefined;
260
- type?: "USER" | "AD" | "SYSTEM" | undefined;
261
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
262
- discountValue?: string | undefined;
263
- expiredAt?: Date | null | undefined;
264
- startedAt?: Date | null | undefined;
265
- deletedAt?: Date | null | undefined;
266
- activationLimit?: number | null | undefined;
267
- activationPerUserLimit?: number | null | undefined;
268
- }, {
269
- value?: string | undefined;
270
- type?: "USER" | "AD" | "SYSTEM" | undefined;
271
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
272
- discountValue?: string | undefined;
273
- expiredAt?: Date | null | undefined;
274
- startedAt?: Date | null | undefined;
275
- deletedAt?: Date | null | undefined;
276
- activationLimit?: number | null | undefined;
277
- activationPerUserLimit?: number | null | undefined;
278
- }>;
279
- }, "strip", z.ZodTypeAny, {
280
- id: number;
281
- body: {
282
- value?: string | undefined;
283
- type?: "USER" | "AD" | "SYSTEM" | undefined;
284
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
285
- discountValue?: string | undefined;
286
- expiredAt?: Date | null | undefined;
287
- startedAt?: Date | null | undefined;
288
- deletedAt?: Date | null | undefined;
289
- activationLimit?: number | null | undefined;
290
- activationPerUserLimit?: number | null | undefined;
291
- };
292
- }, {
293
- id: number;
294
- body: {
295
- value?: string | undefined;
296
- type?: "USER" | "AD" | "SYSTEM" | undefined;
297
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
298
- discountValue?: string | undefined;
299
- expiredAt?: Date | null | undefined;
300
- startedAt?: Date | null | undefined;
301
- deletedAt?: Date | null | undefined;
302
- activationLimit?: number | null | undefined;
303
- activationPerUserLimit?: number | null | undefined;
304
- };
305
- }>;
306
- response: z.ZodObject<{
307
- id: z.ZodNumber;
308
- value: z.ZodString;
309
- activated: z.ZodNumber;
310
- discountValue: z.ZodString;
311
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
312
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
313
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
314
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
315
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
316
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
317
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
318
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
319
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
320
- }, "strip", z.ZodTypeAny, {
321
- value: string;
322
- type: "USER" | "AD" | "SYSTEM";
323
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
324
- id: number;
325
- discountValue: string;
326
- activated: number;
327
- createdAt?: Date | null | undefined;
328
- updatedAt?: Date | null | undefined;
329
- expiredAt?: Date | null | undefined;
330
- startedAt?: Date | null | undefined;
331
- deletedAt?: Date | null | undefined;
332
- activationLimit?: number | null | undefined;
333
- activationPerUserLimit?: number | null | undefined;
334
- }, {
335
- value: string;
336
- type: "USER" | "AD" | "SYSTEM";
337
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
338
- id: number;
339
- discountValue: string;
340
- activated: number;
341
- createdAt?: Date | null | undefined;
342
- updatedAt?: Date | null | undefined;
343
- expiredAt?: Date | null | undefined;
344
- startedAt?: Date | null | undefined;
345
- deletedAt?: Date | null | undefined;
346
- activationLimit?: number | null | undefined;
347
- activationPerUserLimit?: number | null | undefined;
348
- }>;
349
- };
350
- };
351
- export type PromoCodeEndpointKey = keyof typeof PromoCodeEndpoints;
352
- export type GetPromoCodeRequest<K extends PromoCodeEndpointKey> = z.infer<typeof PromoCodeEndpoints[K]["request"]>;
353
- export type GetPromoCodeResponse<K extends PromoCodeEndpointKey> = z.infer<typeof PromoCodeEndpoints[K]["response"]>;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PromoCodeEndpoints = void 0;
4
- const zod_1 = require("zod");
5
- const create_1 = require("./create");
6
- const read_1 = require("./read");
7
- const update_1 = require("./update");
8
- exports.PromoCodeEndpoints = {
9
- create: {
10
- method: "POST",
11
- path: "/promo-codes",
12
- request: create_1.PromoCodeCreateSchema,
13
- response: read_1.PromoCodeReadResponseSchema,
14
- },
15
- list: {
16
- method: "GET",
17
- path: "/promo-codes",
18
- request: zod_1.z.object({}),
19
- response: zod_1.z.array(read_1.PromoCodeReadResponseSchema),
20
- },
21
- getById: {
22
- method: "GET",
23
- path: "/promo-codes/:id",
24
- request: zod_1.z.object({
25
- id: zod_1.z.coerce.number().positive(),
26
- }),
27
- response: read_1.PromoCodeReadResponseSchema,
28
- },
29
- getByValue: {
30
- method: "GET",
31
- path: "/promo-codes/value/:value",
32
- request: zod_1.z.object({
33
- value: zod_1.z.string(),
34
- }),
35
- response: read_1.PromoCodeReadResponseSchema,
36
- },
37
- update: {
38
- method: "PATCH",
39
- path: "/promo-codes/:id",
40
- request: zod_1.z.object({
41
- id: zod_1.z.coerce.number().positive(),
42
- body: update_1.PromoCodeUpdateSchema,
43
- }),
44
- response: read_1.PromoCodeReadResponseSchema,
45
- },
46
- };
@@ -1,5 +0,0 @@
1
- import z from "zod";
2
- export declare const PromoCodeType: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
3
- export declare const PromoCodeStatus: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
4
- export type PromoCodeType = z.infer<typeof PromoCodeType>;
5
- export type PromoCodeStatus = z.infer<typeof PromoCodeStatus>;
@@ -1,9 +0,0 @@
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.PromoCodeStatus = exports.PromoCodeType = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.PromoCodeType = zod_1.default.enum(["USER", "AD", "SYSTEM"]);
9
- exports.PromoCodeStatus = zod_1.default.enum(["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]);
@@ -1,5 +0,0 @@
1
- export * from "./create";
2
- export * from "./read";
3
- export * from "./update";
4
- export * from "./enums";
5
- export * from "./endpoints";
@@ -1,21 +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("./create"), exports);
18
- __exportStar(require("./read"), exports);
19
- __exportStar(require("./update"), exports);
20
- __exportStar(require("./enums"), exports);
21
- __exportStar(require("./endpoints"), exports);
@@ -1,45 +0,0 @@
1
- import z from "zod";
2
- export declare const PromoCodeReadResponseSchema: z.ZodObject<{
3
- id: z.ZodNumber;
4
- value: z.ZodString;
5
- activated: z.ZodNumber;
6
- discountValue: z.ZodString;
7
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
15
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
16
- }, "strip", z.ZodTypeAny, {
17
- value: string;
18
- type: "USER" | "AD" | "SYSTEM";
19
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
20
- id: number;
21
- discountValue: string;
22
- activated: number;
23
- createdAt?: Date | null | undefined;
24
- updatedAt?: Date | null | undefined;
25
- expiredAt?: Date | null | undefined;
26
- startedAt?: Date | null | undefined;
27
- deletedAt?: Date | null | undefined;
28
- activationLimit?: number | null | undefined;
29
- activationPerUserLimit?: number | null | undefined;
30
- }, {
31
- value: string;
32
- type: "USER" | "AD" | "SYSTEM";
33
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
34
- id: number;
35
- discountValue: string;
36
- activated: number;
37
- createdAt?: Date | null | undefined;
38
- updatedAt?: Date | null | undefined;
39
- expiredAt?: Date | null | undefined;
40
- startedAt?: Date | null | undefined;
41
- deletedAt?: Date | null | undefined;
42
- activationLimit?: number | null | undefined;
43
- activationPerUserLimit?: number | null | undefined;
44
- }>;
45
- export type PromoCodeReadResponse = z.infer<typeof PromoCodeReadResponseSchema>;
@@ -1,23 +0,0 @@
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.PromoCodeReadResponseSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const enums_1 = require("./enums");
9
- exports.PromoCodeReadResponseSchema = zod_1.default.object({
10
- id: zod_1.default.coerce.number().positive(),
11
- value: zod_1.default.string(),
12
- activated: zod_1.default.coerce.number(),
13
- discountValue: zod_1.default.string(),
14
- startedAt: zod_1.default.coerce.date().nullable().optional(),
15
- expiredAt: zod_1.default.coerce.date().nullable().optional(),
16
- createdAt: zod_1.default.coerce.date().nullable().optional(),
17
- deletedAt: zod_1.default.coerce.date().nullable().optional(),
18
- updatedAt: zod_1.default.coerce.date().nullable().optional(),
19
- activationLimit: zod_1.default.coerce.number().positive().nullable().optional(),
20
- activationPerUserLimit: zod_1.default.coerce.number().positive().nullable().optional(),
21
- type: enums_1.PromoCodeType,
22
- status: enums_1.PromoCodeStatus,
23
- });
@@ -1,33 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PromoCodeUpdateSchema: z.ZodObject<{
3
- value: z.ZodOptional<z.ZodString>;
4
- discountValue: z.ZodOptional<z.ZodString>;
5
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
- type: z.ZodOptional<z.ZodEnum<["USER", "AD", "SYSTEM"]>>;
11
- status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>>;
12
- }, "strip", z.ZodTypeAny, {
13
- value?: string | undefined;
14
- type?: "USER" | "AD" | "SYSTEM" | undefined;
15
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
16
- discountValue?: string | undefined;
17
- expiredAt?: Date | null | undefined;
18
- startedAt?: Date | null | undefined;
19
- deletedAt?: Date | null | undefined;
20
- activationLimit?: number | null | undefined;
21
- activationPerUserLimit?: number | null | undefined;
22
- }, {
23
- value?: string | undefined;
24
- type?: "USER" | "AD" | "SYSTEM" | undefined;
25
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
26
- discountValue?: string | undefined;
27
- expiredAt?: Date | null | undefined;
28
- startedAt?: Date | null | undefined;
29
- deletedAt?: Date | null | undefined;
30
- activationLimit?: number | null | undefined;
31
- activationPerUserLimit?: number | null | undefined;
32
- }>;
33
- export type PromoCodeUpdate = z.infer<typeof PromoCodeUpdateSchema>;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PromoCodeUpdateSchema = void 0;
4
- const zod_1 = require("zod");
5
- const enums_1 = require("./enums");
6
- exports.PromoCodeUpdateSchema = zod_1.z.object({
7
- value: zod_1.z.string().optional(),
8
- discountValue: zod_1.z.string().optional(),
9
- startedAt: zod_1.z.coerce.date().nullable().optional(),
10
- expiredAt: zod_1.z.coerce.date().nullable().optional(),
11
- activationLimit: zod_1.z.coerce.number().positive().nullable().optional(),
12
- activationPerUserLimit: zod_1.z.coerce.number().positive().nullable().optional(),
13
- deletedAt: zod_1.z.coerce.date().nullable().optional(),
14
- type: enums_1.PromoCodeType.optional(),
15
- status: enums_1.PromoCodeStatus.optional(),
16
- });
@@ -1,24 +0,0 @@
1
- import { z } from "zod";
2
- export declare const RefreshSessionCreateSchema: z.ZodObject<{
3
- userId: z.ZodNumber;
4
- refreshToken: z.ZodString;
5
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
7
- IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- }, "strip", z.ZodTypeAny, {
10
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
11
- userId: number;
12
- refreshToken: string;
13
- expiredAt?: Date | null | undefined;
14
- IP?: string | null | undefined;
15
- UA?: string | null | undefined;
16
- }, {
17
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
18
- userId: number;
19
- refreshToken: string;
20
- expiredAt?: Date | null | undefined;
21
- IP?: string | null | undefined;
22
- UA?: string | null | undefined;
23
- }>;
24
- export type RefreshSessionCreate = z.infer<typeof RefreshSessionCreateSchema>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RefreshSessionCreateSchema = void 0;
4
- const zod_1 = require("zod");
5
- const enums_1 = require("./enums");
6
- exports.RefreshSessionCreateSchema = zod_1.z.object({
7
- userId: zod_1.z.number(),
8
- refreshToken: zod_1.z.string(),
9
- expiredAt: zod_1.z.coerce.date().nullable().optional(),
10
- status: enums_1.RefreshSessionStatus,
11
- IP: zod_1.z.string().nullable().optional(),
12
- UA: zod_1.z.string().nullable().optional(),
13
- });
@@ -1,3 +0,0 @@
1
- import z from "zod";
2
- export declare const RefreshSessionStatus: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
3
- export type RefreshSessionStatus = z.infer<typeof RefreshSessionStatus>;
@@ -1,8 +0,0 @@
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.RefreshSessionStatus = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.RefreshSessionStatus = zod_1.default.enum(['ACTIVE', 'EXPIRED', 'BLOCKED', 'TERMINATED']);
@@ -1,4 +0,0 @@
1
- export * from './create';
2
- export * from './read';
3
- export * from './update';
4
- export * from './enums';
@@ -1,20 +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("./create"), exports);
18
- __exportStar(require("./read"), exports);
19
- __exportStar(require("./update"), exports);
20
- __exportStar(require("./enums"), exports);