@squidcloud/backend 1.0.2 → 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.
- package/dist/backend/src/actions.d.ts +3 -3
- package/dist/backend/src/metadata.d.ts +4 -4
- package/dist/backend/src/service.d.ts +2 -1
- package/dist/common/src/application.types.d.ts +87 -2
- package/dist/common/src/bundle-data.types.d.ts +3 -1
- package/dist/common/src/document.types.d.ts +6 -0
- package/dist/common/src/index.d.ts +7 -6
- package/dist/common/src/mutation.types.d.ts +3 -1
- package/dist/common/src/query/query-context.d.ts +3 -3
- package/dist/common/src/schema/schema.types.d.ts +1 -0
- package/dist/common/src/utils/array.d.ts +1 -0
- package/dist/common/src/utils/assert.d.ts +2 -2
- package/dist/common/src/utils/nullish.d.ts +1 -0
- package/dist/common/src/webhook-response.d.ts +7 -0
- package/dist/index.js +5 -5
- package/dist/typescript-client/src/data.manager.d.ts +3 -1
- package/dist/typescript-client/src/query/query-subscription.manager.d.ts +1 -0
- package/dist/typescript-client/src/rpc.manager.d.ts +1 -0
- package/dist/typescript-client/src/squid.d.ts +1 -0
- package/package.json +3 -2
- package/dist/common/src/utils/isDefined.d.ts +0 -1
|
@@ -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
|
|
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
|
+
"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",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"lodash": "^4.17.21"
|
|
19
|
+
"lodash": "^4.17.21",
|
|
20
|
+
"encoding": "^0.1.13"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@types/lodash": "^4.14.190",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isDefined<T>(t: T | undefined | null): t is T;
|