@pc-nexus/models 0.8.0-next.10 → 0.8.0-next.11
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/package.json +1 -1
- package/types/pc-nexus-models.d.ts +10 -6
package/package.json
CHANGED
|
@@ -618,11 +618,15 @@ interface NxTextInputs {
|
|
|
618
618
|
weight?: NxTextWeight;
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
|
|
622
|
-
scope?:
|
|
623
|
-
|
|
624
|
-
context
|
|
625
|
-
|
|
621
|
+
type RealtimeOptions = {
|
|
622
|
+
scope?: "self" | "global";
|
|
623
|
+
} | {
|
|
624
|
+
scope: "context";
|
|
625
|
+
context: RealtimeContext;
|
|
626
|
+
} | {
|
|
627
|
+
scope: "token";
|
|
628
|
+
token: string;
|
|
629
|
+
};
|
|
626
630
|
type RealtimePublishOptions = RealtimeOptions;
|
|
627
631
|
type RealtimeSubscribeOptions = RealtimeOptions;
|
|
628
632
|
type RealtimeScope = "self" | "global" | "token" | "context";
|
|
@@ -631,7 +635,7 @@ interface RealtimePublishResult {
|
|
|
631
635
|
}
|
|
632
636
|
type RealtimeContext = "project" | "workitem" | "sprint" | "product" | "idea" | "ticket" | "space" | "page" | "library" | "testcase" | "testplan" | "baseline" | "release" | "plan" | "widget" | "dashboard" | "entry";
|
|
633
637
|
interface RealtimeSubscribeCallback<TPayload = unknown> {
|
|
634
|
-
(payload?: TPayload):
|
|
638
|
+
(payload?: TPayload): void;
|
|
635
639
|
}
|
|
636
640
|
interface RealtimeSubscribeParams<TPayload = unknown> {
|
|
637
641
|
channel: string;
|