@squidcloud/backend 1.0.3 → 1.0.4

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.
@@ -77,7 +77,8 @@ export declare class DataManager {
77
77
  * result for document with id='a'.
78
78
  */
79
79
  private readonly outgoingMutationsEmpty;
80
- private readonly docsToResync;
80
+ private readonly failedDocsToResync;
81
+ private readonly refreshDocIdToTimestamp;
81
82
  private deleteExpiredTimestampsInterval;
82
83
  private handleIncomingMessagesForTests;
83
84
  constructor(documentStore: DocumentStore, mutationSender: MutationSender, socketManager: SocketManagerInterface, querySubscriptionManager: QuerySubscriptionManager, queryBuilderFactory: QueryBuilderFactory, lockManager: LockManager, destructManager: DestructManager, documentIdentityService: DocumentIdentityService);
@@ -148,6 +149,7 @@ export declare class DataManager {
148
149
  private sendMutationsForIntegration;
149
150
  private removeOutgoingMutation;
150
151
  private resyncFailedUpdates;
152
+ private refreshUpdatedDocuments;
151
153
  private groupOutgoingMutationsByIntegrationId;
152
154
  /**
153
155
  * Handles the case that due to some change (an incoming or outgoing change to a document), a document becomes orphan.
@@ -51,6 +51,7 @@ export declare class QuerySubscriptionManager {
51
51
  private allOngoingQueriesGotServerResult;
52
52
  private completeAllSupportedQueries;
53
53
  private predestruct;
54
+ unsubscribe(): void;
54
55
  hasSubscription(clientRequestId: ClientRequestId): boolean;
55
56
  /** Sends the query request to the server and makes sure to unsubscribe once the subject completes. */
56
57
  private sendQueryToServer;
@@ -7,6 +7,7 @@ export declare class RpcManager {
7
7
  private readonly staticHeaders;
8
8
  private readonly onGoingRpcsCounter;
9
9
  constructor(rpcEndpoint: string, socketManager: SocketManagerInterface, destructManager: DestructManager, apiKey?: ApiKey);
10
+ awaitAllSettled(): Promise<void>;
10
11
  setStaticHeader(key: string, value: string): void;
11
12
  deleteStaticHeader(key: string): void;
12
13
  getEndpoint(): string;
@@ -46,4 +46,5 @@ export declare class Squid {
46
46
  callApi<T = any>(integrationId: IntegrationId, endpointId: ApiEndpointId, request?: Record<string, any>): Promise<T>;
47
47
  graphql(integrationId: IntegrationId): GraphQLClient;
48
48
  destruct(): Promise<void>;
49
+ unsubscribe(): Promise<void>;
49
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/backend",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Squid Cloud's backend SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/backend/src/index.d.ts",
@@ -1 +0,0 @@
1
- export declare function isDefined<T>(t: T | undefined | null): t is T;