@adventurelabs/scout-core 2.0.14 → 2.0.15
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/client/index.d.ts +2 -1
- package/dist/client/index.js +2 -1
- package/dist/helpers/document_templates.d.ts +1 -0
- package/dist/helpers/document_templates.js +4 -1
- package/dist/helpers/document_templates.queries.d.ts +1 -0
- package/dist/helpers/document_templates.queries.js +11 -0
- package/dist/helpers/maintenance_requests_server.d.ts +7 -0
- package/dist/helpers/user_last_activity.d.ts +5 -0
- package/dist/helpers/user_last_activity.js +12 -0
- package/dist/helpers/user_last_activity_server.d.ts +5 -0
- package/dist/helpers/user_last_activity_server.js +6 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useInfiniteQuery.d.ts +9 -4
- package/dist/hooks/useInfiniteQuery.js +319 -905
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +2 -1
- package/dist/types/db.d.ts +1 -0
- package/dist/types/supabase.d.ts +59 -10
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { server_get_connectivity_by_device_id as get_connectivity_by_device_id,
|
|
|
23
23
|
export type { HerdConnectivityTimeRangeResponse } from "../helpers/connectivity.queries";
|
|
24
24
|
export { transferDeviceToHerd as transfer_device_to_herd } from "../helpers/deviceTransfer";
|
|
25
25
|
export { serverCreateDevice as create_device, serverDeleteDeviceById as delete_device_by_id, get_devices_by_herd, serverUpdateDevice as update_device, } from "../helpers/devices";
|
|
26
|
-
export { server_create_document_template as create_document_template, server_get_document_template_by_id as get_document_template_by_id, server_get_document_templates_by_localization as get_document_templates_by_localization, server_get_document_templates as get_document_templates, server_update_document_template as update_document_template, } from "../helpers/document_templates";
|
|
26
|
+
export { server_create_document_template as create_document_template, server_get_document_template_by_id as get_document_template_by_id, server_get_document_templates_by_localization as get_document_templates_by_localization, server_get_document_templates_by_system_tag as get_document_templates_by_system_tag, server_get_document_templates as get_document_templates, server_update_document_template as update_document_template, } from "../helpers/document_templates";
|
|
27
27
|
export { server_search_embeddings_vertex_multimodal_001 as search_embeddings_vertex_multimodal_001 } from "../helpers/embeddings";
|
|
28
28
|
export { server_delete_event as delete_event, server_get_event_by_id as get_event_by_id, server_get_total_events_by_herd as get_total_events_by_herd, server_insert_event as insert_event, server_match_events_by_vertex_embedding as match_events_by_vertex_embedding, server_update_event as update_event, } from "../helpers/events";
|
|
29
29
|
export { server_create_battery_cycle_count as create_battery_cycle_count, server_delete_battery_cycle_count as delete_battery_cycle_count, server_get_battery_cycle_counts_by_battery_id as get_battery_cycle_counts_by_battery_id, server_update_battery_cycle_count as update_battery_cycle_count, } from "../helpers/battery_cycle_counts";
|
|
@@ -71,6 +71,7 @@ export { server_get_points_balance_for_user_id as get_points_balance_for_user_id
|
|
|
71
71
|
export { server_create_sensor_pose as create_sensor_pose, server_create_sensor_poses as create_sensor_poses, server_delete_sensor_pose as delete_sensor_pose, server_get_sensor_pose_by_id as get_sensor_pose_by_id, server_get_sensor_poses_by_part_id as get_sensor_poses_by_part_id, server_update_sensor_pose as update_sensor_pose, } from "../helpers/sensor_poses_server";
|
|
72
72
|
export { server_create_session_incident as create_session_incident, server_delete_session_incident as delete_session_incident, server_get_session_incident_by_id as get_session_incident_by_id, server_get_session_incidents_by_session_id as get_session_incidents_by_session_id, server_update_session_incident as update_session_incident, } from "../helpers/session_incidents_server";
|
|
73
73
|
export { server_create_user_credential as create_user_credential, server_delete_user_credential as delete_user_credential, server_get_user_credential_by_id as get_user_credential_by_id, server_get_user_credentials_by_user_id as get_user_credentials_by_user_id, server_update_user_credential as update_user_credential, } from "../helpers/user_credentials_server";
|
|
74
|
+
export { server_get_user_last_activity_by_user_id as get_user_last_activity_by_user_id, } from "../helpers/user_last_activity_server";
|
|
74
75
|
export { server_create_version_software as create_version_software, server_delete_version_software as delete_version_software, server_get_versions_software_by_system_with_build_urls as get_versions_software_by_system_with_build_urls, server_get_versions_software_by_system as get_versions_software_by_system, server_get_versions_software_with_build_urls as get_versions_software_with_build_urls, server_get_versions_software as get_versions_software, server_update_version_software as update_version_software, } from "../helpers/versions_software_server";
|
|
75
76
|
export { generateSignedUrl, generateSignedUrlsBatch, } from "../helpers/storage";
|
|
76
77
|
export { verify_client_abilities_token } from "../helpers/client_abilities_token";
|
package/dist/server/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export { server_get_chat_messages as get_chat_messages, server_insert_chat_messa
|
|
|
23
23
|
export { server_get_connectivity_by_device_id as get_connectivity_by_device_id, server_get_connectivity_by_session_id as get_connectivity_by_session_id, server_get_connectivity_for_artifact as get_connectivity_for_artifact, server_get_connectivity_for_herd_time_range as get_connectivity_for_herd_time_range, server_insert_connectivity as insert_connectivity, server_update_connectivity as update_connectivity, } from "../helpers/connectivity";
|
|
24
24
|
export { transferDeviceToHerd as transfer_device_to_herd } from "../helpers/deviceTransfer";
|
|
25
25
|
export { serverCreateDevice as create_device, serverDeleteDeviceById as delete_device_by_id, get_devices_by_herd, serverUpdateDevice as update_device, } from "../helpers/devices";
|
|
26
|
-
export { server_create_document_template as create_document_template, server_get_document_template_by_id as get_document_template_by_id, server_get_document_templates_by_localization as get_document_templates_by_localization, server_get_document_templates as get_document_templates, server_update_document_template as update_document_template, } from "../helpers/document_templates";
|
|
26
|
+
export { server_create_document_template as create_document_template, server_get_document_template_by_id as get_document_template_by_id, server_get_document_templates_by_localization as get_document_templates_by_localization, server_get_document_templates_by_system_tag as get_document_templates_by_system_tag, server_get_document_templates as get_document_templates, server_update_document_template as update_document_template, } from "../helpers/document_templates";
|
|
27
27
|
export { server_search_embeddings_vertex_multimodal_001 as search_embeddings_vertex_multimodal_001 } from "../helpers/embeddings";
|
|
28
28
|
export { server_delete_event as delete_event, server_get_event_by_id as get_event_by_id, server_get_total_events_by_herd as get_total_events_by_herd, server_insert_event as insert_event, server_match_events_by_vertex_embedding as match_events_by_vertex_embedding, server_update_event as update_event, } from "../helpers/events";
|
|
29
29
|
export { server_create_battery_cycle_count as create_battery_cycle_count, server_delete_battery_cycle_count as delete_battery_cycle_count, server_get_battery_cycle_counts_by_battery_id as get_battery_cycle_counts_by_battery_id, server_update_battery_cycle_count as update_battery_cycle_count, } from "../helpers/battery_cycle_counts";
|
|
@@ -70,6 +70,7 @@ export { server_get_points_balance_for_user_id as get_points_balance_for_user_id
|
|
|
70
70
|
export { server_create_sensor_pose as create_sensor_pose, server_create_sensor_poses as create_sensor_poses, server_delete_sensor_pose as delete_sensor_pose, server_get_sensor_pose_by_id as get_sensor_pose_by_id, server_get_sensor_poses_by_part_id as get_sensor_poses_by_part_id, server_update_sensor_pose as update_sensor_pose, } from "../helpers/sensor_poses_server";
|
|
71
71
|
export { server_create_session_incident as create_session_incident, server_delete_session_incident as delete_session_incident, server_get_session_incident_by_id as get_session_incident_by_id, server_get_session_incidents_by_session_id as get_session_incidents_by_session_id, server_update_session_incident as update_session_incident, } from "../helpers/session_incidents_server";
|
|
72
72
|
export { server_create_user_credential as create_user_credential, server_delete_user_credential as delete_user_credential, server_get_user_credential_by_id as get_user_credential_by_id, server_get_user_credentials_by_user_id as get_user_credentials_by_user_id, server_update_user_credential as update_user_credential, } from "../helpers/user_credentials_server";
|
|
73
|
+
export { server_get_user_last_activity_by_user_id as get_user_last_activity_by_user_id, } from "../helpers/user_last_activity_server";
|
|
73
74
|
export { server_create_version_software as create_version_software, server_delete_version_software as delete_version_software, server_get_versions_software_by_system_with_build_urls as get_versions_software_by_system_with_build_urls, server_get_versions_software_by_system as get_versions_software_by_system, server_get_versions_software_with_build_urls as get_versions_software_with_build_urls, server_get_versions_software as get_versions_software, server_update_version_software as update_version_software, } from "../helpers/versions_software_server";
|
|
74
75
|
// Storage and tokens
|
|
75
76
|
export { generateSignedUrl, generateSignedUrlsBatch, } from "../helpers/storage";
|
package/dist/types/db.d.ts
CHANGED
|
@@ -203,6 +203,7 @@ export type IPartWithProduct = IPart & {
|
|
|
203
203
|
product?: IProduct | null;
|
|
204
204
|
};
|
|
205
205
|
export type IUserCredential = Database["public"]["Tables"]["user_credentials"]["Row"];
|
|
206
|
+
export type IUserLastActivity = Database["public"]["Tables"]["user_last_activity"]["Row"];
|
|
206
207
|
export type IHerdCredential = Database["public"]["Tables"]["herd_credentials"]["Row"];
|
|
207
208
|
export type IPointsForUser = Database["public"]["Tables"]["points_for_user"]["Row"];
|
|
208
209
|
export type ICertificate = Database["public"]["Tables"]["certificates"]["Row"];
|
package/dist/types/supabase.d.ts
CHANGED
|
@@ -1152,6 +1152,7 @@ export type Database = {
|
|
|
1152
1152
|
issuer_id: number | null;
|
|
1153
1153
|
localization_id: number | null;
|
|
1154
1154
|
name: string;
|
|
1155
|
+
system_tag: string | null;
|
|
1155
1156
|
uses_expiry: boolean;
|
|
1156
1157
|
};
|
|
1157
1158
|
Insert: {
|
|
@@ -1168,6 +1169,7 @@ export type Database = {
|
|
|
1168
1169
|
issuer_id?: number | null;
|
|
1169
1170
|
localization_id?: number | null;
|
|
1170
1171
|
name: string;
|
|
1172
|
+
system_tag?: string | null;
|
|
1171
1173
|
uses_expiry?: boolean;
|
|
1172
1174
|
};
|
|
1173
1175
|
Update: {
|
|
@@ -1184,6 +1186,7 @@ export type Database = {
|
|
|
1184
1186
|
issuer_id?: number | null;
|
|
1185
1187
|
localization_id?: number | null;
|
|
1186
1188
|
name?: string;
|
|
1189
|
+
system_tag?: string | null;
|
|
1187
1190
|
uses_expiry?: boolean;
|
|
1188
1191
|
};
|
|
1189
1192
|
Relationships: [
|
|
@@ -1393,6 +1396,7 @@ export type Database = {
|
|
|
1393
1396
|
embedding: string;
|
|
1394
1397
|
event_id: number | null;
|
|
1395
1398
|
frame_index: number;
|
|
1399
|
+
frame_index_end: number;
|
|
1396
1400
|
id: number;
|
|
1397
1401
|
origin_heading: number | null;
|
|
1398
1402
|
origin_height: number | null;
|
|
@@ -1403,6 +1407,7 @@ export type Database = {
|
|
|
1403
1407
|
sensor_roll: number | null;
|
|
1404
1408
|
sensor_yaw: number | null;
|
|
1405
1409
|
timestamp_observation: string | null;
|
|
1410
|
+
timestamp_observation_end: string | null;
|
|
1406
1411
|
};
|
|
1407
1412
|
Insert: {
|
|
1408
1413
|
artifact_id?: number | null;
|
|
@@ -1410,6 +1415,7 @@ export type Database = {
|
|
|
1410
1415
|
embedding: string;
|
|
1411
1416
|
event_id?: number | null;
|
|
1412
1417
|
frame_index?: number;
|
|
1418
|
+
frame_index_end?: number;
|
|
1413
1419
|
id?: number;
|
|
1414
1420
|
origin_heading?: number | null;
|
|
1415
1421
|
origin_height?: number | null;
|
|
@@ -1420,6 +1426,7 @@ export type Database = {
|
|
|
1420
1426
|
sensor_roll?: number | null;
|
|
1421
1427
|
sensor_yaw?: number | null;
|
|
1422
1428
|
timestamp_observation?: string | null;
|
|
1429
|
+
timestamp_observation_end?: string | null;
|
|
1423
1430
|
};
|
|
1424
1431
|
Update: {
|
|
1425
1432
|
artifact_id?: number | null;
|
|
@@ -1427,6 +1434,7 @@ export type Database = {
|
|
|
1427
1434
|
embedding?: string;
|
|
1428
1435
|
event_id?: number | null;
|
|
1429
1436
|
frame_index?: number;
|
|
1437
|
+
frame_index_end?: number;
|
|
1430
1438
|
id?: number;
|
|
1431
1439
|
origin_heading?: number | null;
|
|
1432
1440
|
origin_height?: number | null;
|
|
@@ -1437,6 +1445,7 @@ export type Database = {
|
|
|
1437
1445
|
sensor_roll?: number | null;
|
|
1438
1446
|
sensor_yaw?: number | null;
|
|
1439
1447
|
timestamp_observation?: string | null;
|
|
1448
|
+
timestamp_observation_end?: string | null;
|
|
1440
1449
|
};
|
|
1441
1450
|
Relationships: [
|
|
1442
1451
|
{
|
|
@@ -2168,6 +2177,7 @@ export type Database = {
|
|
|
2168
2177
|
image: string | null;
|
|
2169
2178
|
is_serviceable: boolean;
|
|
2170
2179
|
part_id: number | null;
|
|
2180
|
+
post_remediation_media_uri: string | null;
|
|
2171
2181
|
remediation_completed_at: string | null;
|
|
2172
2182
|
remediation_completed_user_id: string | null;
|
|
2173
2183
|
remediation_notes: string | null;
|
|
@@ -2185,6 +2195,7 @@ export type Database = {
|
|
|
2185
2195
|
image?: string | null;
|
|
2186
2196
|
is_serviceable?: boolean;
|
|
2187
2197
|
part_id?: number | null;
|
|
2198
|
+
post_remediation_media_uri?: string | null;
|
|
2188
2199
|
remediation_completed_at?: string | null;
|
|
2189
2200
|
remediation_completed_user_id?: string | null;
|
|
2190
2201
|
remediation_notes?: string | null;
|
|
@@ -2202,6 +2213,7 @@ export type Database = {
|
|
|
2202
2213
|
image?: string | null;
|
|
2203
2214
|
is_serviceable?: boolean;
|
|
2204
2215
|
part_id?: number | null;
|
|
2216
|
+
post_remediation_media_uri?: string | null;
|
|
2205
2217
|
remediation_completed_at?: string | null;
|
|
2206
2218
|
remediation_completed_user_id?: string | null;
|
|
2207
2219
|
remediation_notes?: string | null;
|
|
@@ -4837,6 +4849,32 @@ export type Database = {
|
|
|
4837
4849
|
}
|
|
4838
4850
|
];
|
|
4839
4851
|
};
|
|
4852
|
+
user_last_activity: {
|
|
4853
|
+
Row: {
|
|
4854
|
+
inserted_at: string;
|
|
4855
|
+
last_active_at: string;
|
|
4856
|
+
user_id: string;
|
|
4857
|
+
};
|
|
4858
|
+
Insert: {
|
|
4859
|
+
inserted_at?: string;
|
|
4860
|
+
last_active_at?: string;
|
|
4861
|
+
user_id: string;
|
|
4862
|
+
};
|
|
4863
|
+
Update: {
|
|
4864
|
+
inserted_at?: string;
|
|
4865
|
+
last_active_at?: string;
|
|
4866
|
+
user_id?: string;
|
|
4867
|
+
};
|
|
4868
|
+
Relationships: [
|
|
4869
|
+
{
|
|
4870
|
+
foreignKeyName: "user_last_activity_user_id_fkey";
|
|
4871
|
+
columns: ["user_id"];
|
|
4872
|
+
isOneToOne: true;
|
|
4873
|
+
referencedRelation: "users";
|
|
4874
|
+
referencedColumns: ["id"];
|
|
4875
|
+
}
|
|
4876
|
+
];
|
|
4877
|
+
};
|
|
4840
4878
|
users: {
|
|
4841
4879
|
Row: {
|
|
4842
4880
|
auto_approve_sessions: boolean;
|
|
@@ -5249,6 +5287,12 @@ export type Database = {
|
|
|
5249
5287
|
isSetofReturn: false;
|
|
5250
5288
|
};
|
|
5251
5289
|
};
|
|
5290
|
+
custom_access_token_hook: {
|
|
5291
|
+
Args: {
|
|
5292
|
+
event: Json;
|
|
5293
|
+
};
|
|
5294
|
+
Returns: Json;
|
|
5295
|
+
};
|
|
5252
5296
|
delete_all_orphaned_sessions: {
|
|
5253
5297
|
Args: {
|
|
5254
5298
|
min_age_seconds?: number;
|
|
@@ -6095,6 +6139,7 @@ export type Database = {
|
|
|
6095
6139
|
image: string | null;
|
|
6096
6140
|
is_serviceable: boolean;
|
|
6097
6141
|
part_id: number | null;
|
|
6142
|
+
post_remediation_media_uri: string | null;
|
|
6098
6143
|
remediation_completed_at: string | null;
|
|
6099
6144
|
remediation_completed_user_id: string | null;
|
|
6100
6145
|
remediation_notes: string | null;
|
|
@@ -6929,6 +6974,10 @@ export type Database = {
|
|
|
6929
6974
|
event_id: number | null;
|
|
6930
6975
|
artifact_id: number | null;
|
|
6931
6976
|
confidence: number | null;
|
|
6977
|
+
frame_index: number | null;
|
|
6978
|
+
frame_index_end: number | null;
|
|
6979
|
+
timestamp_observation: string | null;
|
|
6980
|
+
timestamp_observation_end: string | null;
|
|
6932
6981
|
};
|
|
6933
6982
|
event_and_tags: {
|
|
6934
6983
|
id: number | null;
|
|
@@ -7134,9 +7183,9 @@ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
|
7134
7183
|
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
7135
7184
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
7136
7185
|
schema: keyof DatabaseWithoutInternals;
|
|
7137
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
7186
|
+
}, TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
7138
7187
|
schema: keyof DatabaseWithoutInternals;
|
|
7139
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
7188
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never) = never> = DefaultSchemaTableNameOrOptions extends {
|
|
7140
7189
|
schema: keyof DatabaseWithoutInternals;
|
|
7141
7190
|
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
7142
7191
|
Row: infer R;
|
|
@@ -7145,9 +7194,9 @@ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
|
7145
7194
|
} ? R : never : never;
|
|
7146
7195
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
7147
7196
|
schema: keyof DatabaseWithoutInternals;
|
|
7148
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
7197
|
+
}, TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
7149
7198
|
schema: keyof DatabaseWithoutInternals;
|
|
7150
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
7199
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
|
|
7151
7200
|
schema: keyof DatabaseWithoutInternals;
|
|
7152
7201
|
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
7153
7202
|
Insert: infer I;
|
|
@@ -7156,9 +7205,9 @@ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
|
|
|
7156
7205
|
} ? I : never : never;
|
|
7157
7206
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
7158
7207
|
schema: keyof DatabaseWithoutInternals;
|
|
7159
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
7208
|
+
}, TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
7160
7209
|
schema: keyof DatabaseWithoutInternals;
|
|
7161
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
7210
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
|
|
7162
7211
|
schema: keyof DatabaseWithoutInternals;
|
|
7163
7212
|
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
7164
7213
|
Update: infer U;
|
|
@@ -7167,16 +7216,16 @@ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
|
|
|
7167
7216
|
} ? U : never : never;
|
|
7168
7217
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
7169
7218
|
schema: keyof DatabaseWithoutInternals;
|
|
7170
|
-
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
7219
|
+
}, EnumName extends (DefaultSchemaEnumNameOrOptions extends {
|
|
7171
7220
|
schema: keyof DatabaseWithoutInternals;
|
|
7172
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
7221
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never) = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
7173
7222
|
schema: keyof DatabaseWithoutInternals;
|
|
7174
7223
|
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
7175
7224
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
7176
7225
|
schema: keyof DatabaseWithoutInternals;
|
|
7177
|
-
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
7226
|
+
}, CompositeTypeName extends (PublicCompositeTypeNameOrOptions extends {
|
|
7178
7227
|
schema: keyof DatabaseWithoutInternals;
|
|
7179
|
-
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
7228
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never) = never> = PublicCompositeTypeNameOrOptions extends {
|
|
7180
7229
|
schema: keyof DatabaseWithoutInternals;
|
|
7181
7230
|
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
7182
7231
|
export declare const Constants: {
|