@navservice/usuario 1.47.0 → 1.49.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.
package/build/es/index.js CHANGED
@@ -2192,12 +2192,28 @@ axios.HttpStatusCode = helpers_HttpStatusCode;
2192
2192
  axios.default = axios;
2193
2193
  const lib_axios = axios;
2194
2194
  (function(TypeControllerUsuario) {
2195
+ TypeControllerUsuario.PlanNameEnum = [
2196
+ "FREE",
2197
+ "ESSENTIAL",
2198
+ "BUSINESS",
2199
+ "ULTIMATE"
2200
+ ];
2195
2201
  TypeControllerUsuario.AppEnum = [
2196
2202
  "service-usuario",
2197
2203
  "service-pages",
2198
2204
  "service-assinatura",
2199
2205
  "service-bucket"
2200
2206
  ];
2207
+ TypeControllerUsuario.AssinaturaStatusEnum = [
2208
+ "active",
2209
+ "canceled",
2210
+ "incomplete",
2211
+ "incomplete_expired",
2212
+ "past_due",
2213
+ "paused",
2214
+ "trialing",
2215
+ "unpaid"
2216
+ ];
2201
2217
  TypeControllerUsuario.UsuarioTipoEnum = [
2202
2218
  "padrao"
2203
2219
  ];
@@ -2217,6 +2233,8 @@ const lib_axios = axios;
2217
2233
  };
2218
2234
  v4["enum"](TypeControllerUsuario.AppEnum);
2219
2235
  v4["enum"](TypeControllerUsuario.UsuarioTipoEnum);
2236
+ v4["enum"](TypeControllerUsuario.AssinaturaStatusEnum);
2237
+ v4["enum"](TypeControllerUsuario.PlanNameEnum);
2220
2238
  })(_usuario_TypeControllerUsuario || (_usuario_TypeControllerUsuario = {}));
2221
2239
  const _usuario = _usuario_TypeControllerUsuario;
2222
2240
  var _usuario_TypeControllerUsuario;
@@ -2,6 +2,7 @@ import { AxiosResponse } from "axios";
2
2
  import z4 from "zod/v4";
3
3
  import t from "..";
4
4
  export declare const input: (meta: t.Geral.FormularioZod.Describe) => string;
5
+ import { TypesCore } from "@navservice/core";
5
6
  declare namespace TypeControllerUsuario {
6
7
  const UsuarioBaseSchema: z4.ZodObject<{
7
8
  _id: z4.ZodString;
@@ -15,19 +16,6 @@ declare namespace TypeControllerUsuario {
15
16
  excluido: z4.ZodUnion<readonly [z4.ZodLiteral<0>, z4.ZodLiteral<1>]>;
16
17
  ativo: z4.ZodUnion<readonly [z4.ZodLiteral<0>, z4.ZodLiteral<1>]>;
17
18
  }, z4.core.$strip>;
18
- interface Auth {
19
- data: {
20
- usuario: {
21
- _id: string;
22
- email: string;
23
- nome?: string;
24
- imagem?: string;
25
- token?: string;
26
- data_criacao?: number;
27
- ativo?: 0 | 1;
28
- };
29
- };
30
- }
31
19
  namespace Register {
32
20
  const route: "/api/usuario/auth/register";
33
21
  const InputSchema: z4.ZodObject<{
@@ -51,7 +39,7 @@ declare namespace TypeControllerUsuario {
51
39
  }, z4.core.$strip>;
52
40
  }, z4.core.$strip>;
53
41
  type Input = z4.infer<typeof InputSchema>;
54
- type Output = Auth;
42
+ type Output = TypesCore.Controller.Usuario.Auth;
55
43
  type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
56
44
  }
57
45
  namespace RegisterLoginGoogle {
@@ -74,7 +62,7 @@ declare namespace TypeControllerUsuario {
74
62
  }, z4.core.$strip>;
75
63
  }, z4.core.$strip>;
76
64
  type Input = z4.infer<typeof InputSchema>;
77
- type Output = Auth;
65
+ type Output = TypesCore.Controller.Usuario.Auth;
78
66
  type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
79
67
  }
80
68
  namespace Login {
@@ -98,7 +86,7 @@ declare namespace TypeControllerUsuario {
98
86
  }, z4.core.$strip>;
99
87
  }, z4.core.$strip>;
100
88
  type Input = z4.infer<typeof InputSchema>;
101
- type Output = Auth;
89
+ type Output = TypesCore.Controller.Usuario.Auth;
102
90
  type Response = AxiosResponse<t.Geral.Response.C.Output<Output>>;
103
91
  }
104
92
  namespace BuscarPeloFiltro {
@@ -34,6 +34,7 @@ declare namespace t {
34
34
  Bindings: {
35
35
  PUBLIC_GOOGLE_CLIENT_ID_AUTH0?: string;
36
36
  PUBLIC_BASE_URL_SERVICE_USUARIO?: string;
37
+ PUBLIC_BASE_URL_SERVICE_ASSINATURA?: string;
37
38
  CORS_ORIGIN?: string;
38
39
  JSON_WEB_TOKEN_AUTH_USER?: string;
39
40
  GOOGLE_CLIENT_ID_AUTH0?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navservice/usuario",
3
- "version": "1.47.0",
3
+ "version": "1.49.0",
4
4
  "description": "Service de autenticação de usuários unificado",
5
5
  "type": "module",
6
6
  "main": "./build/lib/index.js",