@rivascva/dt-idl 1.1.125 → 1.1.127

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/dist/index.d.ts CHANGED
@@ -1247,7 +1247,7 @@ interface components$1 {
1247
1247
  message: string;
1248
1248
  };
1249
1249
  /** @enum {string} */
1250
- ErrorCode: "ERROR" | "EMAIL_ALREADY_EXISTS";
1250
+ ErrorCode: "ERROR" | "USER_ALREADY_EXISTS" | "USER_NOT_FOUND";
1251
1251
  };
1252
1252
  responses: {
1253
1253
  /** @description Login success */
@@ -1695,7 +1695,7 @@ declare const isTradeServiceError: (error: unknown) => error is {
1695
1695
  };
1696
1696
  declare const isUserServiceError: (error: unknown) => error is {
1697
1697
  status: number;
1698
- code: "ERROR" | "EMAIL_ALREADY_EXISTS";
1698
+ code: "ERROR" | "USER_ALREADY_EXISTS" | "USER_NOT_FOUND";
1699
1699
  message: string;
1700
1700
  };
1701
1701
  declare const isAssetServiceError: (error: unknown) => error is {
@@ -22,8 +22,13 @@ func GetAuthMiddleware(accessTokenSecret string) func(http.Handler) http.Handler
22
22
 
23
23
  return func(next http.Handler) http.Handler {
24
24
  return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
25
- // check if the request path is a login endpoint
26
- if slices.Contains([]string{"/v1/auth/login", "/v1/auth/login/firebase"}, r.URL.Path) {
25
+ // check if the request path is no-auth endpoint
26
+ endpoints := []string{
27
+ "/v1/auth/login/firebase",
28
+ "/v1/auth/signup/firebase",
29
+ "/v1/images",
30
+ }
31
+ if slices.Contains(endpoints, r.URL.Path) {
27
32
  next.ServeHTTP(w, r)
28
33
  return
29
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.125",
3
+ "version": "1.1.127",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -311,7 +311,8 @@ components:
311
311
  type: string
312
312
  enum:
313
313
  - ERROR
314
- - EMAIL_ALREADY_EXISTS
314
+ - USER_ALREADY_EXISTS
315
+ - USER_NOT_FOUND
315
316
 
316
317
  responses:
317
318
  LoginSuccess:
@@ -173,7 +173,7 @@ export interface components {
173
173
  message: string;
174
174
  };
175
175
  /** @enum {string} */
176
- ErrorCode: "ERROR" | "EMAIL_ALREADY_EXISTS";
176
+ ErrorCode: "ERROR" | "USER_ALREADY_EXISTS" | "USER_NOT_FOUND";
177
177
  };
178
178
  responses: {
179
179
  /** @description Login success */