@tmlmobilidade/interfaces 20250917.1116.49 → 20250917.1256.45

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.
@@ -24,8 +24,8 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
24
24
  };
25
25
  name: string;
26
26
  permissions: {
27
- scope: string;
28
27
  action: string;
28
+ scope: string;
29
29
  resource?: Record<string, any> | null | undefined;
30
30
  }[];
31
31
  created_by?: string | undefined;
@@ -34,7 +34,6 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
34
34
  municipality_id: string;
35
35
  is_locked: boolean;
36
36
  comments: ({
37
- _id: string;
38
37
  created_at: number & {
39
38
  __brand: "UnixTimestamp";
40
39
  };
@@ -43,10 +42,10 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
43
42
  };
44
43
  message: string;
45
44
  type: "note";
45
+ _id?: string | undefined;
46
46
  created_by?: string | undefined;
47
47
  updated_by?: string | undefined;
48
48
  } | {
49
- _id: string;
50
49
  created_at: number & {
51
50
  __brand: "UnixTimestamp";
52
51
  };
@@ -55,11 +54,24 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
55
54
  };
56
55
  type: "field_changed";
57
56
  field: string;
57
+ _id?: string | undefined;
58
58
  created_by?: string | undefined;
59
59
  updated_by?: string | undefined;
60
60
  curr_value?: any;
61
61
  metadata?: Record<string, unknown> | null | undefined;
62
62
  prev_value?: any;
63
+ } | {
64
+ created_at: number & {
65
+ __brand: "UnixTimestamp";
66
+ };
67
+ updated_at: number & {
68
+ __brand: "UnixTimestamp";
69
+ };
70
+ type: "crud";
71
+ action: "create" | "update" | "delete" | "archived" | "restored";
72
+ _id?: string | undefined;
73
+ created_by?: string | undefined;
74
+ updated_by?: string | undefined;
63
75
  })[];
64
76
  is_archived: boolean;
65
77
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
@@ -121,7 +133,6 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
121
133
  municipality_id: string;
122
134
  is_locked: boolean;
123
135
  comments: ({
124
- _id: string;
125
136
  created_at: number & {
126
137
  __brand: "UnixTimestamp";
127
138
  };
@@ -130,10 +141,10 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
130
141
  };
131
142
  message: string;
132
143
  type: "note";
144
+ _id?: string | undefined;
133
145
  created_by?: string | undefined;
134
146
  updated_by?: string | undefined;
135
147
  } | {
136
- _id: string;
137
148
  created_at: number & {
138
149
  __brand: "UnixTimestamp";
139
150
  };
@@ -142,11 +153,24 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
142
153
  };
143
154
  type: "field_changed";
144
155
  field: string;
156
+ _id?: string | undefined;
145
157
  created_by?: string | undefined;
146
158
  updated_by?: string | undefined;
147
159
  curr_value?: any;
148
160
  metadata?: Record<string, unknown> | null | undefined;
149
161
  prev_value?: any;
162
+ } | {
163
+ created_at: number & {
164
+ __brand: "UnixTimestamp";
165
+ };
166
+ updated_at: number & {
167
+ __brand: "UnixTimestamp";
168
+ };
169
+ type: "crud";
170
+ action: "create" | "update" | "delete" | "archived" | "restored";
171
+ _id?: string | undefined;
172
+ created_by?: string | undefined;
173
+ updated_by?: string | undefined;
150
174
  })[];
151
175
  is_archived: boolean;
152
176
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/interfaces",
3
- "version": "20250917.1116.49",
3
+ "version": "20250917.1256.45",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",