teraprox-core-sdk 0.3.8 → 0.3.10

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.mts CHANGED
@@ -106,17 +106,17 @@ declare class NullToastService implements ToastService {
106
106
  }
107
107
  declare class NullHttpController implements HttpController {
108
108
  private logAndResolve;
109
- get(path?: string): Promise<never[]>;
110
- post(path?: string): Promise<never[]>;
111
- put(path?: string): Promise<never[]>;
112
- patch(path?: string): Promise<never[]>;
113
- delete(path?: string, id?: string | number): Promise<never[]>;
114
- deleteSimple(path?: string): Promise<never[]>;
115
- save(path?: string): Promise<never[]>;
116
- read(path?: string, id?: string | number): Promise<never[]>;
117
- readAll(path?: string): Promise<never[]>;
118
- readAllwithPage(path?: string): Promise<never[]>;
119
- bulkDelete(path?: string): Promise<never[]>;
109
+ get(path?: string): Promise<any[]>;
110
+ post(path?: string): Promise<any[]>;
111
+ put(path?: string): Promise<any[]>;
112
+ patch(path?: string): Promise<any[]>;
113
+ delete(path?: string, id?: string | number): Promise<any[]>;
114
+ deleteSimple(path?: string): Promise<any[]>;
115
+ save(path?: string): Promise<any[]>;
116
+ read(path?: string, id?: string | number): Promise<any[]>;
117
+ readAll(path?: string): Promise<any[]>;
118
+ readAllwithPage(path?: string): Promise<any[]>;
119
+ bulkDelete(path?: string): Promise<any[]>;
120
120
  }
121
121
  declare const NullCoreService: CoreService;
122
122
 
package/dist/index.d.ts CHANGED
@@ -106,17 +106,17 @@ declare class NullToastService implements ToastService {
106
106
  }
107
107
  declare class NullHttpController implements HttpController {
108
108
  private logAndResolve;
109
- get(path?: string): Promise<never[]>;
110
- post(path?: string): Promise<never[]>;
111
- put(path?: string): Promise<never[]>;
112
- patch(path?: string): Promise<never[]>;
113
- delete(path?: string, id?: string | number): Promise<never[]>;
114
- deleteSimple(path?: string): Promise<never[]>;
115
- save(path?: string): Promise<never[]>;
116
- read(path?: string, id?: string | number): Promise<never[]>;
117
- readAll(path?: string): Promise<never[]>;
118
- readAllwithPage(path?: string): Promise<never[]>;
119
- bulkDelete(path?: string): Promise<never[]>;
109
+ get(path?: string): Promise<any[]>;
110
+ post(path?: string): Promise<any[]>;
111
+ put(path?: string): Promise<any[]>;
112
+ patch(path?: string): Promise<any[]>;
113
+ delete(path?: string, id?: string | number): Promise<any[]>;
114
+ deleteSimple(path?: string): Promise<any[]>;
115
+ save(path?: string): Promise<any[]>;
116
+ read(path?: string, id?: string | number): Promise<any[]>;
117
+ readAll(path?: string): Promise<any[]>;
118
+ readAllwithPage(path?: string): Promise<any[]>;
119
+ bulkDelete(path?: string): Promise<any[]>;
120
120
  }
121
121
  declare const NullCoreService: CoreService;
122
122
 
package/dist/index.js CHANGED
@@ -389,7 +389,9 @@ var CoreServiceBuilder = class {
389
389
  controller.context = context;
390
390
  return controller;
391
391
  }
392
- const envHost = typeof process !== "undefined" && process.env ? process.env.REACT_APP_TERAPROX_GATEWAY_HOST || process.env.VITE_TERAPROX_GATEWAY_HOST : void 0;
392
+ const _globalObject = typeof window !== "undefined" ? window : globalThis;
393
+ const globalProcess = _globalObject.process || { env: {} };
394
+ const envHost = globalProcess.env ? globalProcess.env.REACT_APP_TERAPROX_GATEWAY_HOST || globalProcess.env.VITE_TERAPROX_GATEWAY_HOST : void 0;
393
395
  const hostHeader = this._gatewayHost || envHost || context;
394
396
  const extraHeaders = { "x-teraprox-host": hostHeader };
395
397
  return this._tracing ? new TracingHttpAdapter(endpoint, extraHeaders) : new FetchHttpAdapter(endpoint, extraHeaders);
package/dist/index.mjs CHANGED
@@ -284,7 +284,9 @@ var CoreServiceBuilder = class {
284
284
  controller.context = context;
285
285
  return controller;
286
286
  }
287
- const envHost = typeof process !== "undefined" && process.env ? process.env.REACT_APP_TERAPROX_GATEWAY_HOST || process.env.VITE_TERAPROX_GATEWAY_HOST : void 0;
287
+ const _globalObject = typeof window !== "undefined" ? window : globalThis;
288
+ const globalProcess = _globalObject.process || { env: {} };
289
+ const envHost = globalProcess.env ? globalProcess.env.REACT_APP_TERAPROX_GATEWAY_HOST || globalProcess.env.VITE_TERAPROX_GATEWAY_HOST : void 0;
288
290
  const hostHeader = this._gatewayHost || envHost || context;
289
291
  const extraHeaders = { "x-teraprox-host": hostHeader };
290
292
  return this._tracing ? new TracingHttpAdapter(endpoint, extraHeaders) : new FetchHttpAdapter(endpoint, extraHeaders);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teraprox-core-sdk",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "Contrato tipado Core ↔ Federados — interfaces, context, hooks e componentes compartilhados",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,7 +33,8 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "qr-scanner": "^1.4.2"
36
+ "qr-scanner": "^1.4.2",
37
+ "teraprox-core-sdk": "^0.3.8"
37
38
  },
38
39
  "peerDependencies": {
39
40
  "@reduxjs/toolkit": ">=1.9.0",