@autofleet/shtinker 0.0.11 → 0.0.12

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/types.d.ts CHANGED
@@ -23,3 +23,18 @@ export interface AuditLogPayload {
23
23
  entityId: string;
24
24
  rows: AuditLogRow[];
25
25
  }
26
+ export declare enum Action {
27
+ CREATE = "create",
28
+ BULK_CREATE = "bulk-create",
29
+ DELETE = "delete",
30
+ UPDATE = "update",
31
+ CANCEL = "cancel",
32
+ FAIL = "fail",
33
+ UNASSIGN = "unassign",
34
+ REASSIGN = "reassign"
35
+ }
36
+ export declare enum EntityType {
37
+ RIDE = "Ride",
38
+ VEHICLE = "vehicle",
39
+ DRIVER = "driver"
40
+ }
package/dist/types.js CHANGED
@@ -1,2 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityType = exports.Action = void 0;
4
+ var Action;
5
+ (function (Action) {
6
+ Action["CREATE"] = "create";
7
+ Action["BULK_CREATE"] = "bulk-create";
8
+ Action["DELETE"] = "delete";
9
+ Action["UPDATE"] = "update";
10
+ Action["CANCEL"] = "cancel";
11
+ Action["FAIL"] = "fail";
12
+ Action["UNASSIGN"] = "unassign";
13
+ Action["REASSIGN"] = "reassign";
14
+ })(Action = exports.Action || (exports.Action = {}));
15
+ var EntityType;
16
+ (function (EntityType) {
17
+ EntityType["RIDE"] = "Ride";
18
+ EntityType["VEHICLE"] = "vehicle";
19
+ EntityType["DRIVER"] = "driver";
20
+ })(EntityType = exports.EntityType || (exports.EntityType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/shtinker",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/types.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable no-shadow */
1
2
  import { Sequelize } from 'sequelize-typescript';
2
3
  import RabbitMq from '@autofleet/rabbit';
3
4
 
@@ -27,3 +28,20 @@ export interface AuditLogPayload {
27
28
  entityId: string;
28
29
  rows: AuditLogRow[];
29
30
  }
31
+
32
+ export enum Action {
33
+ CREATE = 'create',
34
+ BULK_CREATE = 'bulk-create',
35
+ DELETE = 'delete',
36
+ UPDATE = 'update',
37
+ CANCEL = 'cancel',
38
+ FAIL = 'fail',
39
+ UNASSIGN = 'unassign',
40
+ REASSIGN = 'reassign',
41
+ }
42
+
43
+ export enum EntityType {
44
+ RIDE = 'Ride',
45
+ VEHICLE = 'vehicle',
46
+ DRIVER = 'driver',
47
+ }