@adventurelabs/scout-core 1.4.72 → 1.4.73
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Database } from "../types/supabase";
|
|
2
|
-
import { IHerdInvitation, Role } from "../types/db";
|
|
2
|
+
import { IHerdInvitation, IHerdInvitationWithHerdSlug, Role } from "../types/db";
|
|
3
3
|
import { IWebResponseCompatible } from "../types/requests";
|
|
4
4
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
5
5
|
export declare function server_create_herd_invitation(herd_id: number, email: string, role: Role, expires_at?: string | null): Promise<IWebResponseCompatible<IHerdInvitation | null>>;
|
|
6
6
|
export declare function accept_herd_invitations_for_current_user(invitation_ids: number[], supabaseClient?: SupabaseClient<Database>): Promise<IWebResponseCompatible<IHerdInvitation[]>>;
|
|
7
|
-
export declare function server_get_herd_invitations_for_current_user(): Promise<IWebResponseCompatible<
|
|
7
|
+
export declare function server_get_herd_invitations_for_current_user(): Promise<IWebResponseCompatible<IHerdInvitationWithHerdSlug[]>>;
|
|
8
8
|
export declare function server_get_herd_invitations_by_herd(herd_id: number, supabaseClient?: SupabaseClient<Database>): Promise<IWebResponseCompatible<IHerdInvitation[]>>;
|
|
9
9
|
export declare function reject_herd_invitations_for_current_user(invitation_ids: number[], supabaseClient?: SupabaseClient<Database>): Promise<IWebResponseCompatible<IHerdInvitation[]>>;
|
|
10
10
|
export declare function server_revoke_herd_invitations(invitation_ids: number[], supabaseClient?: SupabaseClient<Database>): Promise<IWebResponseCompatible<IHerdInvitation[]>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -76,5 +76,5 @@ export * from "./supabase/middleware";
|
|
|
76
76
|
export * from "./supabase/server";
|
|
77
77
|
export * from "./api_keys/actions";
|
|
78
78
|
export type { HerdModule, IHerdModule } from "./types/herd_module";
|
|
79
|
-
export type { IDevice, IEvent, IUser, IHerd, IHerdPrettyLocation, IEventWithTags, IZoneWithActions, ICredential, CredentialInsert, CredentialUpdate, ICertificate, CertificateInsert, CertificateUpdate, IUserAndRole, IUserProfileRow, IHerdInvitation, IHerdAllowedDomain, IUserRolePerHerd, HerdInvitationStatus, IApiKeyScout, ILayer, IHeartbeat, IProvider, IConnectivity, ISession, ISessionWithCoordinates, IConnectivityWithCoordinates, IObservation, ObservationInsert, ObservationUpdate, IAnalysisJob, IAnalysisTask, AnalysisWorkStatus, } from "./types/db";
|
|
79
|
+
export type { IDevice, IEvent, IUser, IHerd, IHerdPrettyLocation, IEventWithTags, IZoneWithActions, ICredential, CredentialInsert, CredentialUpdate, ICertificate, CertificateInsert, CertificateUpdate, IUserAndRole, IUserProfileRow, IHerdInvitation, IHerdInvitationWithHerdSlug, IHerdAllowedDomain, IUserRolePerHerd, HerdInvitationStatus, IApiKeyScout, ILayer, IHeartbeat, IProvider, IConnectivity, ISession, ISessionWithCoordinates, IConnectivityWithCoordinates, IObservation, ObservationInsert, ObservationUpdate, IAnalysisJob, IAnalysisTask, AnalysisWorkStatus, } from "./types/db";
|
|
80
80
|
export { EnumSessionsVisibility } from "./types/events";
|
|
@@ -2665,20 +2665,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2665
2665
|
};
|
|
2666
2666
|
get_herd_invitations_for_current_user: {
|
|
2667
2667
|
Args: never;
|
|
2668
|
-
Returns:
|
|
2669
|
-
accepted_at: string | null;
|
|
2670
|
-
created_at: string;
|
|
2671
|
-
email: string;
|
|
2672
|
-
expires_at: string | null;
|
|
2673
|
-
herd_id: number;
|
|
2674
|
-
id: number;
|
|
2675
|
-
invited_by: string;
|
|
2676
|
-
role: Database["public"]["Enums"]["role"];
|
|
2677
|
-
status: Database["public"]["Enums"]["herd_invitation_status"];
|
|
2678
|
-
}[];
|
|
2668
|
+
Returns: Database["public"]["CompositeTypes"]["herd_invitation_with_herd_slug"][];
|
|
2679
2669
|
SetofOptions: {
|
|
2680
2670
|
from: "*";
|
|
2681
|
-
to: "
|
|
2671
|
+
to: "herd_invitation_with_herd_slug";
|
|
2682
2672
|
isOneToOne: false;
|
|
2683
2673
|
isSetofReturn: true;
|
|
2684
2674
|
};
|
|
@@ -3391,6 +3381,18 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
3391
3381
|
event_data: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"] | null;
|
|
3392
3382
|
artifact_data: Database["public"]["Tables"]["artifacts"]["Row"] | null;
|
|
3393
3383
|
};
|
|
3384
|
+
herd_invitation_with_herd_slug: {
|
|
3385
|
+
id: number | null;
|
|
3386
|
+
email: string | null;
|
|
3387
|
+
herd_id: number | null;
|
|
3388
|
+
role: Database["public"]["Enums"]["role"] | null;
|
|
3389
|
+
invited_by: string | null;
|
|
3390
|
+
status: Database["public"]["Enums"]["herd_invitation_status"] | null;
|
|
3391
|
+
created_at: string | null;
|
|
3392
|
+
accepted_at: string | null;
|
|
3393
|
+
expires_at: string | null;
|
|
3394
|
+
herd_slug: string | null;
|
|
3395
|
+
};
|
|
3394
3396
|
herds_pretty_location: {
|
|
3395
3397
|
id: number | null;
|
|
3396
3398
|
inserted_at: string | null;
|
package/dist/types/db.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export type IAction = Database["public"]["Tables"]["actions"]["Row"];
|
|
|
28
28
|
export type IZone = Database["public"]["Tables"]["zones"]["Row"];
|
|
29
29
|
export type IUserRolePerHerd = Database["public"]["Tables"]["users_roles_per_herd"]["Row"];
|
|
30
30
|
export type IHerdInvitation = Database["public"]["Tables"]["herd_invitations"]["Row"];
|
|
31
|
+
export type IHerdInvitationWithHerdSlug = Database["public"]["CompositeTypes"]["herd_invitation_with_herd_slug"];
|
|
31
32
|
export type IHerdAllowedDomain = Database["public"]["Tables"]["herd_allowed_domains"]["Row"];
|
|
32
33
|
export type HerdInvitationStatus = Database["public"]["Enums"]["herd_invitation_status"];
|
|
33
34
|
export type IHerd = Database["public"]["Tables"]["herds"]["Row"];
|
package/dist/types/supabase.d.ts
CHANGED
|
@@ -2762,20 +2762,10 @@ export type Database = {
|
|
|
2762
2762
|
};
|
|
2763
2763
|
get_herd_invitations_for_current_user: {
|
|
2764
2764
|
Args: never;
|
|
2765
|
-
Returns:
|
|
2766
|
-
accepted_at: string | null;
|
|
2767
|
-
created_at: string;
|
|
2768
|
-
email: string;
|
|
2769
|
-
expires_at: string | null;
|
|
2770
|
-
herd_id: number;
|
|
2771
|
-
id: number;
|
|
2772
|
-
invited_by: string;
|
|
2773
|
-
role: Database["public"]["Enums"]["role"];
|
|
2774
|
-
status: Database["public"]["Enums"]["herd_invitation_status"];
|
|
2775
|
-
}[];
|
|
2765
|
+
Returns: Database["public"]["CompositeTypes"]["herd_invitation_with_herd_slug"][];
|
|
2776
2766
|
SetofOptions: {
|
|
2777
2767
|
from: "*";
|
|
2778
|
-
to: "
|
|
2768
|
+
to: "herd_invitation_with_herd_slug";
|
|
2779
2769
|
isOneToOne: false;
|
|
2780
2770
|
isSetofReturn: true;
|
|
2781
2771
|
};
|
|
@@ -3488,6 +3478,18 @@ export type Database = {
|
|
|
3488
3478
|
event_data: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"] | null;
|
|
3489
3479
|
artifact_data: Database["public"]["Tables"]["artifacts"]["Row"] | null;
|
|
3490
3480
|
};
|
|
3481
|
+
herd_invitation_with_herd_slug: {
|
|
3482
|
+
id: number | null;
|
|
3483
|
+
email: string | null;
|
|
3484
|
+
herd_id: number | null;
|
|
3485
|
+
role: Database["public"]["Enums"]["role"] | null;
|
|
3486
|
+
invited_by: string | null;
|
|
3487
|
+
status: Database["public"]["Enums"]["herd_invitation_status"] | null;
|
|
3488
|
+
created_at: string | null;
|
|
3489
|
+
accepted_at: string | null;
|
|
3490
|
+
expires_at: string | null;
|
|
3491
|
+
herd_slug: string | null;
|
|
3492
|
+
};
|
|
3491
3493
|
herds_pretty_location: {
|
|
3492
3494
|
id: number | null;
|
|
3493
3495
|
inserted_at: string | null;
|