@seidor-cloud-produtos/orbit-backend-lib 2.0.96 → 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,
@@ -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.96",
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",