@adventurelabs/scout-core 2.0.5 → 2.0.7
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/helpers/documents.d.ts +1 -0
- package/dist/helpers/documents.js +6 -0
- package/dist/helpers/documents_server.d.ts +35 -0
- package/dist/helpers/documents_server.js +5 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/types/db.d.ts +8 -3
- package/dist/types/supabase.d.ts +15 -6
- package/dist/types/supabase.js +5 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare function get_documents_by_device_id(client: SupabaseClient<Databa
|
|
|
7
7
|
export declare function get_documents_by_user_id(client: SupabaseClient<Database>, user_id: string): Promise<IWebResponseCompatible<IDocument[]>>;
|
|
8
8
|
export declare function get_documents_by_product_id(client: SupabaseClient<Database>, product_id: number): Promise<IWebResponseCompatible<IDocument[]>>;
|
|
9
9
|
export declare function get_documents_by_operating_context_id(client: SupabaseClient<Database>, operating_context_id: number): Promise<IWebResponseCompatible<IDocument[]>>;
|
|
10
|
+
export declare function get_documents_by_region_conflict_id(client: SupabaseClient<Database>, region_conflict_id: number): Promise<IWebResponseCompatible<IDocument[]>>;
|
|
10
11
|
export declare function get_document_by_id(client: SupabaseClient<Database>, document_id: number): Promise<IWebResponseCompatible<IDocument | null>>;
|
|
11
12
|
export declare function create_document(client: SupabaseClient<Database>, row: DocumentInsert): Promise<IWebResponseCompatible<IDocument | null>>;
|
|
12
13
|
export declare function update_document(client: SupabaseClient<Database>, document_id: number, patch: DocumentUpdate): Promise<IWebResponseCompatible<IDocument | null>>;
|
|
@@ -15,6 +15,9 @@ function assert_document_insert(row) {
|
|
|
15
15
|
if (owner_count !== 1) {
|
|
16
16
|
return IWebResponse.error("exactly one document owner is required").to_compatible();
|
|
17
17
|
}
|
|
18
|
+
if (row.region_conflict_id != null && row.operating_context_id == null) {
|
|
19
|
+
return IWebResponse.error("region_conflict_id requires operating_context_id").to_compatible();
|
|
20
|
+
}
|
|
18
21
|
return null;
|
|
19
22
|
}
|
|
20
23
|
async function get_documents_by(client, column, value) {
|
|
@@ -43,6 +46,9 @@ export async function get_documents_by_product_id(client, product_id) {
|
|
|
43
46
|
export async function get_documents_by_operating_context_id(client, operating_context_id) {
|
|
44
47
|
return get_documents_by(client, "operating_context_id", operating_context_id);
|
|
45
48
|
}
|
|
49
|
+
export async function get_documents_by_region_conflict_id(client, region_conflict_id) {
|
|
50
|
+
return get_documents_by(client, "region_conflict_id", region_conflict_id);
|
|
51
|
+
}
|
|
46
52
|
export async function get_document_by_id(client, document_id) {
|
|
47
53
|
const { data, error } = await client
|
|
48
54
|
.from("documents")
|
|
@@ -14,6 +14,7 @@ export declare function server_get_documents_by_herd_id(herd_id: number): Promis
|
|
|
14
14
|
lifecycle_reason: string | null;
|
|
15
15
|
operating_context_id: number | null;
|
|
16
16
|
product_id: number | null;
|
|
17
|
+
region_conflict_id: number | null;
|
|
17
18
|
related_herd_id: number | null;
|
|
18
19
|
size_bytes: number | null;
|
|
19
20
|
template_id: number | null;
|
|
@@ -39,6 +40,7 @@ export declare function server_get_documents_by_device_id(device_id: number): Pr
|
|
|
39
40
|
lifecycle_reason: string | null;
|
|
40
41
|
operating_context_id: number | null;
|
|
41
42
|
product_id: number | null;
|
|
43
|
+
region_conflict_id: number | null;
|
|
42
44
|
related_herd_id: number | null;
|
|
43
45
|
size_bytes: number | null;
|
|
44
46
|
template_id: number | null;
|
|
@@ -64,6 +66,7 @@ export declare function server_get_documents_by_user_id(user_id: string): Promis
|
|
|
64
66
|
lifecycle_reason: string | null;
|
|
65
67
|
operating_context_id: number | null;
|
|
66
68
|
product_id: number | null;
|
|
69
|
+
region_conflict_id: number | null;
|
|
67
70
|
related_herd_id: number | null;
|
|
68
71
|
size_bytes: number | null;
|
|
69
72
|
template_id: number | null;
|
|
@@ -89,6 +92,7 @@ export declare function server_get_documents_by_product_id(product_id: number):
|
|
|
89
92
|
lifecycle_reason: string | null;
|
|
90
93
|
operating_context_id: number | null;
|
|
91
94
|
product_id: number | null;
|
|
95
|
+
region_conflict_id: number | null;
|
|
92
96
|
related_herd_id: number | null;
|
|
93
97
|
size_bytes: number | null;
|
|
94
98
|
template_id: number | null;
|
|
@@ -114,6 +118,33 @@ export declare function server_get_documents_by_operating_context_id(operating_c
|
|
|
114
118
|
lifecycle_reason: string | null;
|
|
115
119
|
operating_context_id: number | null;
|
|
116
120
|
product_id: number | null;
|
|
121
|
+
region_conflict_id: number | null;
|
|
122
|
+
related_herd_id: number | null;
|
|
123
|
+
size_bytes: number | null;
|
|
124
|
+
template_id: number | null;
|
|
125
|
+
updated_at: string;
|
|
126
|
+
updated_by: string | null;
|
|
127
|
+
uri: string;
|
|
128
|
+
user_id: string | null;
|
|
129
|
+
valid_from: string | null;
|
|
130
|
+
valid_to: string | null;
|
|
131
|
+
}[]>>;
|
|
132
|
+
export declare function server_get_documents_by_region_conflict_id(region_conflict_id: number): Promise<import("../types").IWebResponseCompatible<{
|
|
133
|
+
approved_at: string | null;
|
|
134
|
+
approved_by: string | null;
|
|
135
|
+
created_at: string;
|
|
136
|
+
created_by: string | null;
|
|
137
|
+
device_id: number | null;
|
|
138
|
+
herd_id: number | null;
|
|
139
|
+
id: number;
|
|
140
|
+
is_approved: boolean;
|
|
141
|
+
lifecycle: import("../types").Database["public"]["Enums"]["entity_lifecycle"];
|
|
142
|
+
lifecycle_changed_at: string;
|
|
143
|
+
lifecycle_changed_by: string | null;
|
|
144
|
+
lifecycle_reason: string | null;
|
|
145
|
+
operating_context_id: number | null;
|
|
146
|
+
product_id: number | null;
|
|
147
|
+
region_conflict_id: number | null;
|
|
117
148
|
related_herd_id: number | null;
|
|
118
149
|
size_bytes: number | null;
|
|
119
150
|
template_id: number | null;
|
|
@@ -139,6 +170,7 @@ export declare function server_get_document_by_id(document_id: number): Promise<
|
|
|
139
170
|
lifecycle_reason: string | null;
|
|
140
171
|
operating_context_id: number | null;
|
|
141
172
|
product_id: number | null;
|
|
173
|
+
region_conflict_id: number | null;
|
|
142
174
|
related_herd_id: number | null;
|
|
143
175
|
size_bytes: number | null;
|
|
144
176
|
template_id: number | null;
|
|
@@ -164,6 +196,7 @@ export declare function server_create_document(row: DocumentInsert): Promise<imp
|
|
|
164
196
|
lifecycle_reason: string | null;
|
|
165
197
|
operating_context_id: number | null;
|
|
166
198
|
product_id: number | null;
|
|
199
|
+
region_conflict_id: number | null;
|
|
167
200
|
related_herd_id: number | null;
|
|
168
201
|
size_bytes: number | null;
|
|
169
202
|
template_id: number | null;
|
|
@@ -189,6 +222,7 @@ export declare function server_update_document(document_id: number, patch: Docum
|
|
|
189
222
|
lifecycle_reason: string | null;
|
|
190
223
|
operating_context_id: number | null;
|
|
191
224
|
product_id: number | null;
|
|
225
|
+
region_conflict_id: number | null;
|
|
192
226
|
related_herd_id: number | null;
|
|
193
227
|
size_bytes: number | null;
|
|
194
228
|
template_id: number | null;
|
|
@@ -214,6 +248,7 @@ export declare function server_delete_document(document_id: number): Promise<imp
|
|
|
214
248
|
lifecycle_reason: string | null;
|
|
215
249
|
operating_context_id: number | null;
|
|
216
250
|
product_id: number | null;
|
|
251
|
+
region_conflict_id: number | null;
|
|
217
252
|
related_herd_id: number | null;
|
|
218
253
|
size_bytes: number | null;
|
|
219
254
|
template_id: number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { newServerClient } from "../supabase/server";
|
|
2
|
-
import { create_document, delete_document, get_document_by_id, get_documents_by_device_id, get_documents_by_herd_id, get_documents_by_operating_context_id, get_documents_by_product_id, get_documents_by_user_id, update_document, } from "./documents";
|
|
2
|
+
import { create_document, delete_document, get_document_by_id, get_documents_by_device_id, get_documents_by_herd_id, get_documents_by_operating_context_id, get_documents_by_product_id, get_documents_by_region_conflict_id, get_documents_by_user_id, update_document, } from "./documents";
|
|
3
3
|
export async function server_get_documents_by_herd_id(herd_id) {
|
|
4
4
|
const client = await newServerClient();
|
|
5
5
|
return get_documents_by_herd_id(client, herd_id);
|
|
@@ -20,6 +20,10 @@ export async function server_get_documents_by_operating_context_id(operating_con
|
|
|
20
20
|
const client = await newServerClient();
|
|
21
21
|
return get_documents_by_operating_context_id(client, operating_context_id);
|
|
22
22
|
}
|
|
23
|
+
export async function server_get_documents_by_region_conflict_id(region_conflict_id) {
|
|
24
|
+
const client = await newServerClient();
|
|
25
|
+
return get_documents_by_region_conflict_id(client, region_conflict_id);
|
|
26
|
+
}
|
|
23
27
|
export async function server_get_document_by_id(document_id) {
|
|
24
28
|
const client = await newServerClient();
|
|
25
29
|
return get_document_by_id(client, document_id);
|
package/dist/server/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export { server_get_analysis_task_by_id as get_analysis_task_by_id, server_get_a
|
|
|
57
57
|
export { server_is_scout_email_valid as is_scout_email_valid, server_isCurrentUserPlatformSuperadmin as isCurrentUserPlatformSuperadmin, } from "../helpers/auth_server";
|
|
58
58
|
export { server_create_certificate_by_device as create_certificate_by_device, server_create_certificate_by_part as create_certificate_by_part, server_delete_certificate_by_device as delete_certificate_by_device, server_delete_certificate_by_part as delete_certificate_by_part, server_get_certificate_by_device as get_certificate_by_device, server_get_certificate_by_part as get_certificate_by_part, server_get_certificates_by_device as get_certificates_by_device, server_get_certificates_by_part as get_certificates_by_part, server_update_certificate_by_device as update_certificate_by_device, server_update_certificate_by_part as update_certificate_by_part, } from "../helpers/certificates_server";
|
|
59
59
|
export { server_create_contact as create_contact, server_get_contact_by_id as get_contact_by_id, server_get_contacts_by_herd_id as get_contacts_by_herd_id, server_update_contact as update_contact, } from "../helpers/contacts_server";
|
|
60
|
-
export { server_create_document as create_document, server_delete_document as delete_document, server_get_document_by_id as get_document_by_id, server_get_documents_by_device_id as get_documents_by_device_id, server_get_documents_by_herd_id as get_documents_by_herd_id, server_get_documents_by_operating_context_id as get_documents_by_operating_context_id, server_get_documents_by_product_id as get_documents_by_product_id, server_get_documents_by_user_id as get_documents_by_user_id, server_update_document as update_document, } from "../helpers/documents_server";
|
|
60
|
+
export { server_create_document as create_document, server_delete_document as delete_document, server_get_document_by_id as get_document_by_id, server_get_documents_by_device_id as get_documents_by_device_id, server_get_documents_by_herd_id as get_documents_by_herd_id, server_get_documents_by_operating_context_id as get_documents_by_operating_context_id, server_get_documents_by_product_id as get_documents_by_product_id, server_get_documents_by_region_conflict_id as get_documents_by_region_conflict_id, server_get_documents_by_user_id as get_documents_by_user_id, server_update_document as update_document, } from "../helpers/documents_server";
|
|
61
61
|
export { server_create_herd_credential as create_herd_credential, server_delete_herd_credential as delete_herd_credential, server_get_herd_credential_by_id as get_herd_credential_by_id, server_get_herd_credentials_by_herd_id as get_herd_credentials_by_herd_id, server_update_herd_credential as update_herd_credential, } from "../helpers/herd_credentials_server";
|
|
62
62
|
export { server_update_artifact_lifecycle as update_artifact_lifecycle, server_update_contact_lifecycle as update_contact_lifecycle, server_update_device_lifecycle as update_device_lifecycle, server_update_event_lifecycle as update_event_lifecycle, server_update_herd_allowed_domain_lifecycle as update_herd_allowed_domain_lifecycle, server_update_part_lifecycle as update_part_lifecycle, server_update_session_lifecycle as update_session_lifecycle, server_update_user_lifecycle as update_user_lifecycle, server_update_user_role_per_herd_lifecycle as update_user_role_per_herd_lifecycle, } from "../helpers/lifecycle_server";
|
|
63
63
|
export { server_create_maintenance_request as create_maintenance_request, server_delete_maintenance_request as delete_maintenance_request, server_get_maintenance_request_by_id as get_maintenance_request_by_id, server_get_maintenance_requests_by_device_id as get_maintenance_requests_by_device_id, server_get_maintenance_requests_by_herd_id as get_maintenance_requests_by_herd_id, server_get_maintenance_requests_by_part_id as get_maintenance_requests_by_part_id, server_get_maintenance_requests_count_by_herd_id as get_maintenance_requests_count_by_herd_id, server_update_maintenance_request as update_maintenance_request, } from "../helpers/maintenance_requests_server";
|
package/dist/server/index.js
CHANGED
|
@@ -57,7 +57,7 @@ export { server_get_analysis_task_by_id as get_analysis_task_by_id, server_get_a
|
|
|
57
57
|
export { server_is_scout_email_valid as is_scout_email_valid, server_isCurrentUserPlatformSuperadmin as isCurrentUserPlatformSuperadmin, } from "../helpers/auth_server";
|
|
58
58
|
export { server_create_certificate_by_device as create_certificate_by_device, server_create_certificate_by_part as create_certificate_by_part, server_delete_certificate_by_device as delete_certificate_by_device, server_delete_certificate_by_part as delete_certificate_by_part, server_get_certificate_by_device as get_certificate_by_device, server_get_certificate_by_part as get_certificate_by_part, server_get_certificates_by_device as get_certificates_by_device, server_get_certificates_by_part as get_certificates_by_part, server_update_certificate_by_device as update_certificate_by_device, server_update_certificate_by_part as update_certificate_by_part, } from "../helpers/certificates_server";
|
|
59
59
|
export { server_create_contact as create_contact, server_get_contact_by_id as get_contact_by_id, server_get_contacts_by_herd_id as get_contacts_by_herd_id, server_update_contact as update_contact, } from "../helpers/contacts_server";
|
|
60
|
-
export { server_create_document as create_document, server_delete_document as delete_document, server_get_document_by_id as get_document_by_id, server_get_documents_by_device_id as get_documents_by_device_id, server_get_documents_by_herd_id as get_documents_by_herd_id, server_get_documents_by_operating_context_id as get_documents_by_operating_context_id, server_get_documents_by_product_id as get_documents_by_product_id, server_get_documents_by_user_id as get_documents_by_user_id, server_update_document as update_document, } from "../helpers/documents_server";
|
|
60
|
+
export { server_create_document as create_document, server_delete_document as delete_document, server_get_document_by_id as get_document_by_id, server_get_documents_by_device_id as get_documents_by_device_id, server_get_documents_by_herd_id as get_documents_by_herd_id, server_get_documents_by_operating_context_id as get_documents_by_operating_context_id, server_get_documents_by_product_id as get_documents_by_product_id, server_get_documents_by_region_conflict_id as get_documents_by_region_conflict_id, server_get_documents_by_user_id as get_documents_by_user_id, server_update_document as update_document, } from "../helpers/documents_server";
|
|
61
61
|
export { server_create_herd_credential as create_herd_credential, server_delete_herd_credential as delete_herd_credential, server_get_herd_credential_by_id as get_herd_credential_by_id, server_get_herd_credentials_by_herd_id as get_herd_credentials_by_herd_id, server_update_herd_credential as update_herd_credential, } from "../helpers/herd_credentials_server";
|
|
62
62
|
export { server_update_artifact_lifecycle as update_artifact_lifecycle, server_update_contact_lifecycle as update_contact_lifecycle, server_update_device_lifecycle as update_device_lifecycle, server_update_event_lifecycle as update_event_lifecycle, server_update_herd_allowed_domain_lifecycle as update_herd_allowed_domain_lifecycle, server_update_part_lifecycle as update_part_lifecycle, server_update_session_lifecycle as update_session_lifecycle, server_update_user_lifecycle as update_user_lifecycle, server_update_user_role_per_herd_lifecycle as update_user_role_per_herd_lifecycle, } from "../helpers/lifecycle_server";
|
|
63
63
|
export { server_create_maintenance_request as create_maintenance_request, server_delete_maintenance_request as delete_maintenance_request, server_get_maintenance_request_by_id as get_maintenance_request_by_id, server_get_maintenance_requests_by_device_id as get_maintenance_requests_by_device_id, server_get_maintenance_requests_by_herd_id as get_maintenance_requests_by_herd_id, server_get_maintenance_requests_by_part_id as get_maintenance_requests_by_part_id, server_get_maintenance_requests_count_by_herd_id as get_maintenance_requests_count_by_herd_id, server_update_maintenance_request as update_maintenance_request, } from "../helpers/maintenance_requests_server";
|
package/dist/types/db.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ export interface OperatingContextListOptions {
|
|
|
109
109
|
limit?: number;
|
|
110
110
|
after_id?: number;
|
|
111
111
|
}
|
|
112
|
+
export type OperatingContextOperationPeriod = Database["public"]["Enums"]["operating_context_operation_period"];
|
|
112
113
|
export interface GeographyPoint {
|
|
113
114
|
type: "Point";
|
|
114
115
|
coordinates: [number, number];
|
|
@@ -117,6 +118,10 @@ export interface GeographyPolygon {
|
|
|
117
118
|
type: "Polygon";
|
|
118
119
|
coordinates: number[][][];
|
|
119
120
|
}
|
|
121
|
+
export interface GeographyMultiPolygon {
|
|
122
|
+
type: "MultiPolygon";
|
|
123
|
+
coordinates: number[][][][];
|
|
124
|
+
}
|
|
120
125
|
export interface LifecyclePatch {
|
|
121
126
|
lifecycle?: EntityLifecycle;
|
|
122
127
|
lifecycle_reason?: string | null;
|
|
@@ -131,7 +136,7 @@ export type OperatingContextEquipmentCategoryCreateInput = Pick<OperatingContext
|
|
|
131
136
|
export type OperatingContextEquipmentCategoryUpdateInput = Partial<OperatingContextEquipmentCategoryCreateInput> & LifecyclePatch;
|
|
132
137
|
export type OperatingContextEquipmentItemCreateInput = Pick<OperatingContextEquipmentItemInsert, "equipment_category_id" | "name">;
|
|
133
138
|
export type OperatingContextEquipmentItemUpdateInput = Partial<OperatingContextEquipmentItemCreateInput> & LifecyclePatch;
|
|
134
|
-
export type OperatingContextCreateInput = Pick<OperatingContextInsert, "herd_id" | "operating_context_type_id" | "name" | "description" | "local_notes" | "valid_from" | "valid_to" | "
|
|
139
|
+
export type OperatingContextCreateInput = Pick<OperatingContextInsert, "herd_id" | "operating_context_type_id" | "name" | "description" | "local_notes" | "valid_from" | "valid_to" | "operation_period" | "distance_max_from_home" | "altitude_agl_max" | "involves_third_party_land">;
|
|
135
140
|
export type OperatingContextUpdateInput = Partial<Omit<OperatingContextCreateInput, "herd_id">> & LifecyclePatch;
|
|
136
141
|
export type OperatingContextPayloadCreateInput = Pick<OperatingContextPayloadInsert, "operating_context_id" | "payload_type" | "weight_kg" | "description">;
|
|
137
142
|
export type OperatingContextPayloadUpdateInput = Partial<Omit<OperatingContextPayloadCreateInput, "operating_context_id">> & LifecyclePatch;
|
|
@@ -144,7 +149,7 @@ export type OperatingContextEquipmentRequirementUpdateInput = Partial<Pick<Opera
|
|
|
144
149
|
export interface OperatingContextRegionCreateInput {
|
|
145
150
|
operating_context_id: number;
|
|
146
151
|
is_exclusion: boolean;
|
|
147
|
-
region: GeographyPolygon | string;
|
|
152
|
+
region: GeographyPolygon | GeographyMultiPolygon | string;
|
|
148
153
|
name?: string | null;
|
|
149
154
|
weather_origin?: GeographyPoint | string | null;
|
|
150
155
|
}
|
|
@@ -167,7 +172,7 @@ export interface OperatingContextRegionConflictCreateInput {
|
|
|
167
172
|
conflict_type_id: number;
|
|
168
173
|
name: string;
|
|
169
174
|
description?: string | null;
|
|
170
|
-
location?: GeographyPoint | GeographyPolygon | string | null;
|
|
175
|
+
location?: GeographyPoint | GeographyPolygon | GeographyMultiPolygon | string | null;
|
|
171
176
|
}
|
|
172
177
|
export type OperatingContextRegionConflictUpdateInput = Partial<Omit<OperatingContextRegionConflictCreateInput, "operating_context_region_id" | "herd_id">> & LifecyclePatch;
|
|
173
178
|
export type OperatingContextRegionConflictContactCreateInput = Pick<OperatingContextRegionConflictContactInsert, "operating_context_region_conflict_id" | "contact_id" | "herd_id">;
|
package/dist/types/supabase.d.ts
CHANGED
|
@@ -1186,6 +1186,7 @@ export type Database = {
|
|
|
1186
1186
|
lifecycle_reason: string | null;
|
|
1187
1187
|
operating_context_id: number | null;
|
|
1188
1188
|
product_id: number | null;
|
|
1189
|
+
region_conflict_id: number | null;
|
|
1189
1190
|
related_herd_id: number | null;
|
|
1190
1191
|
size_bytes: number | null;
|
|
1191
1192
|
template_id: number | null;
|
|
@@ -1211,6 +1212,7 @@ export type Database = {
|
|
|
1211
1212
|
lifecycle_reason?: string | null;
|
|
1212
1213
|
operating_context_id?: number | null;
|
|
1213
1214
|
product_id?: number | null;
|
|
1215
|
+
region_conflict_id?: number | null;
|
|
1214
1216
|
related_herd_id?: number | null;
|
|
1215
1217
|
size_bytes?: number | null;
|
|
1216
1218
|
template_id?: number | null;
|
|
@@ -1236,6 +1238,7 @@ export type Database = {
|
|
|
1236
1238
|
lifecycle_reason?: string | null;
|
|
1237
1239
|
operating_context_id?: number | null;
|
|
1238
1240
|
product_id?: number | null;
|
|
1241
|
+
region_conflict_id?: number | null;
|
|
1239
1242
|
related_herd_id?: number | null;
|
|
1240
1243
|
size_bytes?: number | null;
|
|
1241
1244
|
template_id?: number | null;
|
|
@@ -1296,6 +1299,13 @@ export type Database = {
|
|
|
1296
1299
|
referencedRelation: "products";
|
|
1297
1300
|
referencedColumns: ["id"];
|
|
1298
1301
|
},
|
|
1302
|
+
{
|
|
1303
|
+
foreignKeyName: "documents_region_conflict_id_fkey";
|
|
1304
|
+
columns: ["region_conflict_id"];
|
|
1305
|
+
isOneToOne: false;
|
|
1306
|
+
referencedRelation: "operating_context_region_conflicts";
|
|
1307
|
+
referencedColumns: ["id"];
|
|
1308
|
+
},
|
|
1299
1309
|
{
|
|
1300
1310
|
foreignKeyName: "documents_related_herd_id_fkey";
|
|
1301
1311
|
columns: ["related_herd_id"];
|
|
@@ -3307,8 +3317,7 @@ export type Database = {
|
|
|
3307
3317
|
local_notes: string | null;
|
|
3308
3318
|
name: string;
|
|
3309
3319
|
operating_context_type_id: number;
|
|
3310
|
-
|
|
3311
|
-
time_of_day_start: string | null;
|
|
3320
|
+
operation_period: Database["public"]["Enums"]["operating_context_operation_period"];
|
|
3312
3321
|
updated_at: string;
|
|
3313
3322
|
updated_by: string | null;
|
|
3314
3323
|
valid_from: string;
|
|
@@ -3330,8 +3339,7 @@ export type Database = {
|
|
|
3330
3339
|
local_notes?: string | null;
|
|
3331
3340
|
name: string;
|
|
3332
3341
|
operating_context_type_id: number;
|
|
3333
|
-
|
|
3334
|
-
time_of_day_start?: string | null;
|
|
3342
|
+
operation_period: Database["public"]["Enums"]["operating_context_operation_period"];
|
|
3335
3343
|
updated_at?: string;
|
|
3336
3344
|
updated_by?: string | null;
|
|
3337
3345
|
valid_from: string;
|
|
@@ -3353,8 +3361,7 @@ export type Database = {
|
|
|
3353
3361
|
local_notes?: string | null;
|
|
3354
3362
|
name?: string;
|
|
3355
3363
|
operating_context_type_id?: number;
|
|
3356
|
-
|
|
3357
|
-
time_of_day_start?: string | null;
|
|
3364
|
+
operation_period?: Database["public"]["Enums"]["operating_context_operation_period"];
|
|
3358
3365
|
updated_at?: string;
|
|
3359
3366
|
updated_by?: string | null;
|
|
3360
3367
|
valid_from?: string;
|
|
@@ -6733,6 +6740,7 @@ export type Database = {
|
|
|
6733
6740
|
herd_invitation_status: "pending" | "accepted" | "revoked" | "expired";
|
|
6734
6741
|
link_type: "wifi" | "ocusync" | "lte" | "satellite" | "mesh" | "lora" | "unknown";
|
|
6735
6742
|
media_type: "image" | "video" | "audio" | "text";
|
|
6743
|
+
operating_context_operation_period: "day_only" | "night_only" | "day_and_night";
|
|
6736
6744
|
operating_context_payload_type: "drop_supply" | "drop_firestarter" | "other";
|
|
6737
6745
|
operating_context_risk_probability: "extremely_improbable" | "improbable" | "unlikely" | "occasional" | "frequent";
|
|
6738
6746
|
operating_context_risk_severity: "negligible" | "minor" | "major" | "hazardous" | "catastrophic";
|
|
@@ -7068,6 +7076,7 @@ export declare const Constants: {
|
|
|
7068
7076
|
readonly herd_invitation_status: readonly ["pending", "accepted", "revoked", "expired"];
|
|
7069
7077
|
readonly link_type: readonly ["wifi", "ocusync", "lte", "satellite", "mesh", "lora", "unknown"];
|
|
7070
7078
|
readonly media_type: readonly ["image", "video", "audio", "text"];
|
|
7079
|
+
readonly operating_context_operation_period: readonly ["day_only", "night_only", "day_and_night"];
|
|
7071
7080
|
readonly operating_context_payload_type: readonly ["drop_supply", "drop_firestarter", "other"];
|
|
7072
7081
|
readonly operating_context_risk_probability: readonly ["extremely_improbable", "improbable", "unlikely", "occasional", "frequent"];
|
|
7073
7082
|
readonly operating_context_risk_severity: readonly ["negligible", "minor", "major", "hazardous", "catastrophic"];
|
package/dist/types/supabase.js
CHANGED
|
@@ -47,6 +47,11 @@ export const Constants = {
|
|
|
47
47
|
"unknown",
|
|
48
48
|
],
|
|
49
49
|
media_type: ["image", "video", "audio", "text"],
|
|
50
|
+
operating_context_operation_period: [
|
|
51
|
+
"day_only",
|
|
52
|
+
"night_only",
|
|
53
|
+
"day_and_night",
|
|
54
|
+
],
|
|
50
55
|
operating_context_payload_type: [
|
|
51
56
|
"drop_supply",
|
|
52
57
|
"drop_firestarter",
|