@tmlmobilidade/interfaces 20251217.1540.37 → 20251218.110.37

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.
@@ -17,13 +17,13 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
17
17
  findById(id: string, options?: FindOptions): Promise<{
18
18
  permissions: ({
19
19
  scope: "agencies";
20
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
20
+ action: "create" | "update" | "delete" | "read" | "lock";
21
21
  } | {
22
22
  scope: "alerts_scheduled";
23
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
23
+ action: "create" | "update" | "delete" | "read" | "lock";
24
24
  } | {
25
25
  scope: "alerts_realtime";
26
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
26
+ action: "create" | "update" | "delete" | "read" | "lock";
27
27
  resources: {
28
28
  agency_ids: string[];
29
29
  };
@@ -38,7 +38,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
38
38
  action: "read";
39
39
  } | {
40
40
  scope: "gtfs_validations";
41
- action: "create" | "read" | "request_approval";
41
+ action: "create" | "read" | "lock" | "request_approval";
42
42
  resources: {
43
43
  agency_ids: string[];
44
44
  };
@@ -47,29 +47,35 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
47
47
  action: "read_links" | "read_wiki";
48
48
  } | {
49
49
  scope: "organizations";
50
- action: "create" | "update" | "delete" | "read";
50
+ action: "create" | "update" | "delete" | "read" | "lock";
51
51
  } | {
52
52
  scope: "performance";
53
53
  action: "read";
54
54
  } | {
55
55
  scope: "plans";
56
- action: "create" | "update" | "delete" | "read" | "toggle_lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
56
+ action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
57
57
  resources: {
58
58
  agency_ids: string[];
59
59
  };
60
60
  } | {
61
61
  scope: "roles";
62
- action: "create" | "update" | "delete" | "read";
62
+ action: "create" | "update" | "delete" | "read" | "lock";
63
63
  } | {
64
64
  scope: "stops";
65
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
65
+ action: "create" | "update" | "delete" | "read" | "lock";
66
66
  resources: {
67
67
  municipality_ids: string[];
68
68
  agency_ids: string[];
69
69
  };
70
70
  } | {
71
71
  scope: "users";
72
- action: "create" | "update" | "delete" | "read";
72
+ action: "create" | "update" | "delete" | "read" | "lock";
73
+ } | {
74
+ scope: "dates";
75
+ action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
76
+ resources: {
77
+ agency_ids: string[];
78
+ };
73
79
  })[];
74
80
  created_at: number & {
75
81
  __brand: "UnixTimestamp";
@@ -79,6 +85,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
79
85
  __brand: "UnixTimestamp";
80
86
  };
81
87
  updated_by?: string | undefined;
88
+ is_locked: boolean;
82
89
  name: string;
83
90
  _id: string;
84
91
  }>;
@@ -94,13 +101,13 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
94
101
  findMany(filter?: Filter<Role>, options?: FindOptions): Promise<{
95
102
  permissions: ({
96
103
  scope: "agencies";
97
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
104
+ action: "create" | "update" | "delete" | "read" | "lock";
98
105
  } | {
99
106
  scope: "alerts_scheduled";
100
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
107
+ action: "create" | "update" | "delete" | "read" | "lock";
101
108
  } | {
102
109
  scope: "alerts_realtime";
103
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
110
+ action: "create" | "update" | "delete" | "read" | "lock";
104
111
  resources: {
105
112
  agency_ids: string[];
106
113
  };
@@ -115,7 +122,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
115
122
  action: "read";
116
123
  } | {
117
124
  scope: "gtfs_validations";
118
- action: "create" | "read" | "request_approval";
125
+ action: "create" | "read" | "lock" | "request_approval";
119
126
  resources: {
120
127
  agency_ids: string[];
121
128
  };
@@ -124,29 +131,35 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
124
131
  action: "read_links" | "read_wiki";
125
132
  } | {
126
133
  scope: "organizations";
127
- action: "create" | "update" | "delete" | "read";
134
+ action: "create" | "update" | "delete" | "read" | "lock";
128
135
  } | {
129
136
  scope: "performance";
130
137
  action: "read";
131
138
  } | {
132
139
  scope: "plans";
133
- action: "create" | "update" | "delete" | "read" | "toggle_lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
140
+ action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
134
141
  resources: {
135
142
  agency_ids: string[];
136
143
  };
137
144
  } | {
138
145
  scope: "roles";
139
- action: "create" | "update" | "delete" | "read";
146
+ action: "create" | "update" | "delete" | "read" | "lock";
140
147
  } | {
141
148
  scope: "stops";
142
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
149
+ action: "create" | "update" | "delete" | "read" | "lock";
143
150
  resources: {
144
151
  municipality_ids: string[];
145
152
  agency_ids: string[];
146
153
  };
147
154
  } | {
148
155
  scope: "users";
149
- action: "create" | "update" | "delete" | "read";
156
+ action: "create" | "update" | "delete" | "read" | "lock";
157
+ } | {
158
+ scope: "dates";
159
+ action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
160
+ resources: {
161
+ agency_ids: string[];
162
+ };
150
163
  })[];
151
164
  created_at: number & {
152
165
  __brand: "UnixTimestamp";
@@ -156,6 +169,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
156
169
  __brand: "UnixTimestamp";
157
170
  };
158
171
  updated_by?: string | undefined;
172
+ is_locked: boolean;
159
173
  name: string;
160
174
  _id: string;
161
175
  }[]>;
@@ -167,13 +181,13 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
167
181
  findOne(filter: Filter<Role>): Promise<{
168
182
  permissions: ({
169
183
  scope: "agencies";
170
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
184
+ action: "create" | "update" | "delete" | "read" | "lock";
171
185
  } | {
172
186
  scope: "alerts_scheduled";
173
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
187
+ action: "create" | "update" | "delete" | "read" | "lock";
174
188
  } | {
175
189
  scope: "alerts_realtime";
176
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
190
+ action: "create" | "update" | "delete" | "read" | "lock";
177
191
  resources: {
178
192
  agency_ids: string[];
179
193
  };
@@ -188,7 +202,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
188
202
  action: "read";
189
203
  } | {
190
204
  scope: "gtfs_validations";
191
- action: "create" | "read" | "request_approval";
205
+ action: "create" | "read" | "lock" | "request_approval";
192
206
  resources: {
193
207
  agency_ids: string[];
194
208
  };
@@ -197,29 +211,35 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
197
211
  action: "read_links" | "read_wiki";
198
212
  } | {
199
213
  scope: "organizations";
200
- action: "create" | "update" | "delete" | "read";
214
+ action: "create" | "update" | "delete" | "read" | "lock";
201
215
  } | {
202
216
  scope: "performance";
203
217
  action: "read";
204
218
  } | {
205
219
  scope: "plans";
206
- action: "create" | "update" | "delete" | "read" | "toggle_lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
220
+ action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
207
221
  resources: {
208
222
  agency_ids: string[];
209
223
  };
210
224
  } | {
211
225
  scope: "roles";
212
- action: "create" | "update" | "delete" | "read";
226
+ action: "create" | "update" | "delete" | "read" | "lock";
213
227
  } | {
214
228
  scope: "stops";
215
- action: "create" | "update" | "delete" | "read" | "toggle_lock";
229
+ action: "create" | "update" | "delete" | "read" | "lock";
216
230
  resources: {
217
231
  municipality_ids: string[];
218
232
  agency_ids: string[];
219
233
  };
220
234
  } | {
221
235
  scope: "users";
222
- action: "create" | "update" | "delete" | "read";
236
+ action: "create" | "update" | "delete" | "read" | "lock";
237
+ } | {
238
+ scope: "dates";
239
+ action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
240
+ resources: {
241
+ agency_ids: string[];
242
+ };
223
243
  })[];
224
244
  created_at: number & {
225
245
  __brand: "UnixTimestamp";
@@ -229,6 +249,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
229
249
  __brand: "UnixTimestamp";
230
250
  };
231
251
  updated_by?: string | undefined;
252
+ is_locked: boolean;
232
253
  name: string;
233
254
  _id: string;
234
255
  }>;