@autofleet/shtinker 0.0.9-beta.1 → 0.0.9-beta3

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.
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const network_1 = __importDefault(require("@autofleet/network"));
7
+ const auditMs = new network_1.default({ serviceName: 'AUDIT_MS', timeout: 1000 * 60 });
8
+ const getByEntityId = (entityId) => {
9
+ const { data } = auditMs.get(`api/v1/audit-logs/${entityId}`);
10
+ return data;
11
+ };
12
+ exports.default = {
13
+ getByEntityId,
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/shtinker",
3
- "version": "0.0.9-beta.1",
3
+ "version": "0.0.9-beta3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/audit-ms.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as Network from '@autofleet/network';
1
+ import Network from '@autofleet/network';
2
2
 
3
3
  const auditMs = new Network({ serviceName: 'AUDIT_MS', timeout: 1000 * 60 });
4
4
 
package/tsconfig.json CHANGED
@@ -7,13 +7,6 @@
7
7
  "esModuleInterop": true,
8
8
  "experimentalDecorators": true,
9
9
  "emitDecoratorMetadata": true,
10
- "allowJs": true,
11
- "baseUrl": ".",
12
- "paths": {
13
- "*": [
14
- "node_modules/*"
15
- ]
16
- }
17
10
  },
18
11
  "exclude": ["node_modules", "**/*.test.ts", "dist"]
19
12
  }
@@ -1,12 +0,0 @@
1
- export const testEnvironment: string;
2
- export const roots: string[];
3
- export const transform: {
4
- '^.+\\.tsx?$': string;
5
- };
6
- export const testRegex: string;
7
- export const moduleFileExtensions: string[];
8
- export namespace coverageThreshold {
9
- namespace global {
10
- const lines: number;
11
- }
12
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const Network = __importStar(require("@autofleet/network"));
27
- const auditMs = new Network({ serviceName: 'AUDIT_MS', timeout: 1000 * 60 });
28
- const getByEntityId = (entityId) => {
29
- const { data } = auditMs.get(`api/v1/audit-logs/${entityId}`);
30
- return data;
31
- };
32
- exports.default = {
33
- getByEntityId,
34
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes