@seidor-cloud-produtos/orbit-backend-lib 2.0.95 → 2.0.97

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.
@@ -10,7 +10,7 @@ class BaseAuditLogger {
10
10
  this.gateway = gateway;
11
11
  }
12
12
  buildParams(type, authorizerHeaders, trace) {
13
- trace?.ids.push(authorizerHeaders.traceId);
13
+ trace.ids.push(authorizerHeaders.traceId);
14
14
  return {
15
15
  type,
16
16
  trace,
@@ -121,7 +121,7 @@ export declare class LoggerOrbit extends LoggerGateway {
121
121
  */
122
122
  protected buildDefaultProps(params?: LogOrbitParamsInput): LogOrbitProperties;
123
123
  }
124
- export declare class BaseAuditOrbitLogger {
124
+ export declare class AuditOrbitLoggerGateway {
125
125
  private static instance;
126
126
  protected constructor();
127
127
  static getInstance(queue: Queue, props?: LoggerOrbitProps): LoggerOrbit;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseAuditOrbitLogger = exports.LoggerOrbit = void 0;
3
+ exports.AuditOrbitLoggerGateway = exports.LoggerOrbit = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const logger_1 = tslib_1.__importStar(require("../../application/logger"));
6
6
  const log_error_1 = tslib_1.__importDefault(require("../../domain/errors/log-error"));
@@ -100,7 +100,7 @@ class LoggerOrbit extends logger_1.default {
100
100
  }
101
101
  }
102
102
  exports.LoggerOrbit = LoggerOrbit;
103
- class BaseAuditOrbitLogger {
103
+ class AuditOrbitLoggerGateway {
104
104
  static instance;
105
105
  constructor() { }
106
106
  static getInstance(queue, props) {
@@ -117,4 +117,4 @@ class BaseAuditOrbitLogger {
117
117
  return props;
118
118
  }
119
119
  }
120
- exports.BaseAuditOrbitLogger = BaseAuditOrbitLogger;
120
+ exports.AuditOrbitLoggerGateway = AuditOrbitLoggerGateway;
@@ -74,11 +74,11 @@ export declare const traceSchema: z.ZodObject<{
74
74
  "x-trace-id"?: string | undefined;
75
75
  }>;
76
76
  export declare const tenantSchema: z.ZodObject<{
77
- tenantname: z.ZodString;
77
+ tenantname: z.ZodOptional<z.ZodString>;
78
78
  }, "strip", z.ZodTypeAny, {
79
- tenantname: string;
79
+ tenantname?: string | undefined;
80
80
  }, {
81
- tenantname: string;
81
+ tenantname?: string | undefined;
82
82
  }>;
83
83
  export declare const integrationHeaders: z.ZodObject<z.objectUtil.extendShape<{
84
84
  tenantid: z.ZodString;
@@ -100,21 +100,21 @@ export declare const authorizerHeaders: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
100
100
  }, {
101
101
  "x-trace-id": z.ZodDefault<z.ZodString>;
102
102
  }>>, {
103
- tenantname: z.ZodString;
103
+ tenantname: z.ZodOptional<z.ZodString>;
104
104
  }>, "strip", z.ZodTypeAny, {
105
105
  "x-trace-id": string;
106
106
  username: string;
107
107
  tenantid: string;
108
108
  useremail: string;
109
- tenantname: string;
110
109
  userid?: string | undefined;
110
+ tenantname?: string | undefined;
111
111
  }, {
112
112
  username: string;
113
113
  tenantid: string;
114
114
  useremail: string;
115
- tenantname: string;
116
115
  "x-trace-id"?: string | undefined;
117
116
  userid?: string | undefined;
117
+ tenantname?: string | undefined;
118
118
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
119
119
  "app-name": z.ZodString;
120
120
  "app-id": z.ZodString;
@@ -123,19 +123,19 @@ export declare const authorizerHeaders: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
123
123
  }, {
124
124
  "x-trace-id": z.ZodDefault<z.ZodString>;
125
125
  }>>, {
126
- tenantname: z.ZodString;
126
+ tenantname: z.ZodOptional<z.ZodString>;
127
127
  }>, "strip", z.ZodTypeAny, {
128
128
  "app-id": string;
129
129
  "app-name": string;
130
130
  "x-trace-id": string;
131
131
  tenantid: string;
132
- tenantname: string;
132
+ tenantname?: string | undefined;
133
133
  }, {
134
134
  "app-id": string;
135
135
  "app-name": string;
136
136
  tenantid: string;
137
- tenantname: string;
138
137
  "x-trace-id"?: string | undefined;
138
+ tenantname?: string | undefined;
139
139
  }>]>;
140
140
  export declare const authorizerHeadersWithFiscalIds: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
141
141
  username: z.ZodString;
@@ -49,7 +49,7 @@ const fiscalIdsSchema = zod_1.z.object({
49
49
  }))),
50
50
  });
51
51
  exports.tenantSchema = zod_1.z.object({
52
- tenantname: zod_1.z.string(),
52
+ tenantname: zod_1.z.string().optional(),
53
53
  });
54
54
  exports.integrationHeaders = exports.tenantIdSchema.merge(exports.traceSchema);
55
55
  exports.authorizerHeaders = zod_1.z.union([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seidor-cloud-produtos/orbit-backend-lib",
3
- "version": "2.0.95",
3
+ "version": "2.0.97",
4
4
  "description": "Internal lib for backend components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",