@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pc-nexus/models",
3
- "version": "0.8.0-next.10",
3
+ "version": "0.8.0-next.11",
4
4
  "main": "src/public-api.ts",
5
5
  "types": "src/public-api.ts",
6
6
  "peerDependencies": {},
@@ -618,11 +618,15 @@ interface NxTextInputs {
618
618
  weight?: NxTextWeight;
619
619
  }
620
620
 
621
- interface RealtimeOptions {
622
- scope?: RealtimeScope;
623
- token?: string;
624
- context?: RealtimeContext;
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): any;
638
+ (payload?: TPayload): void;
635
639
  }
636
640
  interface RealtimeSubscribeParams<TPayload = unknown> {
637
641
  channel: string;