@squidcloud/backend 1.0.8 → 1.0.9

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.
Files changed (89) hide show
  1. package/dist/index.js +6 -10
  2. package/package.json +2 -2
  3. package/dist/backend/src/actions.d.ts +0 -13
  4. package/dist/backend/src/index.d.ts +0 -3
  5. package/dist/backend/src/metadata.d.ts +0 -234
  6. package/dist/backend/src/project.d.ts +0 -4
  7. package/dist/backend/src/service.d.ts +0 -18
  8. package/dist/common/src/api-call.context.d.ts +0 -17
  9. package/dist/common/src/api.types.d.ts +0 -10
  10. package/dist/common/src/application.schemas.d.ts +0 -608
  11. package/dist/common/src/application.types.d.ts +0 -197
  12. package/dist/common/src/backend-function.schemas.d.ts +0 -3
  13. package/dist/common/src/backend-function.types.d.ts +0 -7
  14. package/dist/common/src/backend-run.types.d.ts +0 -60
  15. package/dist/common/src/bundle-api.types.d.ts +0 -66
  16. package/dist/common/src/bundle-data.types.d.ts +0 -47
  17. package/dist/common/src/communication.types.d.ts +0 -4
  18. package/dist/common/src/context.types.d.ts +0 -21
  19. package/dist/common/src/document.types.d.ts +0 -35
  20. package/dist/common/src/executable.context.d.ts +0 -4
  21. package/dist/common/src/graphql.context.d.ts +0 -14
  22. package/dist/common/src/graphql.types.d.ts +0 -8
  23. package/dist/common/src/http-status.enum.d.ts +0 -50
  24. package/dist/common/src/index.d.ts +0 -50
  25. package/dist/common/src/integration.types.d.ts +0 -249
  26. package/dist/common/src/logger.types.d.ts +0 -22
  27. package/dist/common/src/metrics.schemas.d.ts +0 -3
  28. package/dist/common/src/metrics.types.d.ts +0 -65
  29. package/dist/common/src/mutation.context.d.ts +0 -11
  30. package/dist/common/src/mutation.schemas.d.ts +0 -5
  31. package/dist/common/src/mutation.types.d.ts +0 -72
  32. package/dist/common/src/named-query.context.d.ts +0 -4
  33. package/dist/common/src/named-query.schemas.d.ts +0 -3
  34. package/dist/common/src/named-query.types.d.ts +0 -9
  35. package/dist/common/src/query/index.d.ts +0 -2
  36. package/dist/common/src/query/query-context.d.ts +0 -38
  37. package/dist/common/src/query/simple-query-builder.d.ts +0 -14
  38. package/dist/common/src/query.schemas.d.ts +0 -5
  39. package/dist/common/src/query.types.d.ts +0 -118
  40. package/dist/common/src/regions.d.ts +0 -17
  41. package/dist/common/src/schema/schema.types.d.ts +0 -54
  42. package/dist/common/src/secret.schemas.d.ts +0 -6
  43. package/dist/common/src/secret.types.d.ts +0 -38
  44. package/dist/common/src/socket.schemas.d.ts +0 -3
  45. package/dist/common/src/socket.types.d.ts +0 -68
  46. package/dist/common/src/time-units.d.ts +0 -5
  47. package/dist/common/src/trigger.types.d.ts +0 -15
  48. package/dist/common/src/types.d.ts +0 -15
  49. package/dist/common/src/utils/array.d.ts +0 -8
  50. package/dist/common/src/utils/assert.d.ts +0 -8
  51. package/dist/common/src/utils/error.d.ts +0 -4
  52. package/dist/common/src/utils/id.d.ts +0 -1
  53. package/dist/common/src/utils/lock.manager.d.ts +0 -14
  54. package/dist/common/src/utils/nullish.d.ts +0 -1
  55. package/dist/common/src/utils/object.d.ts +0 -6
  56. package/dist/common/src/utils/serialization.d.ts +0 -6
  57. package/dist/common/src/utils/transforms.d.ts +0 -18
  58. package/dist/common/src/utils/url.d.ts +0 -1
  59. package/dist/common/src/utils/validation.d.ts +0 -30
  60. package/dist/common/src/webhook-response.d.ts +0 -7
  61. package/dist/index.js.LICENSE.txt +0 -38
  62. package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +0 -1239
  63. package/dist/typescript-client/src/api.manager.d.ts +0 -14
  64. package/dist/typescript-client/src/backend-function.manager.d.ts +0 -13
  65. package/dist/typescript-client/src/collection-reference.d.ts +0 -19
  66. package/dist/typescript-client/src/collection-reference.factory.d.ts +0 -16
  67. package/dist/typescript-client/src/data.manager.d.ts +0 -164
  68. package/dist/typescript-client/src/destruct.manager.d.ts +0 -9
  69. package/dist/typescript-client/src/document-identity.service.d.ts +0 -12
  70. package/dist/typescript-client/src/document-reference.d.ts +0 -23
  71. package/dist/typescript-client/src/document-reference.factory.d.ts +0 -9
  72. package/dist/typescript-client/src/document-store.d.ts +0 -11
  73. package/dist/typescript-client/src/graphql-client.d.ts +0 -9
  74. package/dist/typescript-client/src/graphql-client.factory.d.ts +0 -9
  75. package/dist/typescript-client/src/index.d.ts +0 -7
  76. package/dist/typescript-client/src/mutation/mutation-sender.d.ts +0 -11
  77. package/dist/typescript-client/src/named-query.manager.d.ts +0 -13
  78. package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +0 -35
  79. package/dist/typescript-client/src/query/query-builder.factory.d.ts +0 -37
  80. package/dist/typescript-client/src/query/query-subscription.manager.d.ts +0 -59
  81. package/dist/typescript-client/src/query/query.types.d.ts +0 -7
  82. package/dist/typescript-client/src/rpc.manager.d.ts +0 -24
  83. package/dist/typescript-client/src/socket.manager.d.ts +0 -27
  84. package/dist/typescript-client/src/squid.d.ts +0 -51
  85. package/dist/typescript-client/src/state/action.applier.d.ts +0 -7
  86. package/dist/typescript-client/src/state/actions.d.ts +0 -29
  87. package/dist/typescript-client/src/state/path_trie.d.ts +0 -27
  88. package/dist/typescript-client/src/state/state.service.d.ts +0 -22
  89. package/dist/typescript-client/src/types.d.ts +0 -2
@@ -1,29 +0,0 @@
1
- import { StateLeafNode } from './action.applier';
2
- export declare enum ActionType {
3
- DELETE_PATH = "DELETE_PATH",
4
- SET_PATH = "SET_PATH",
5
- BATCH_ACTION = "BATCH_ACTION"
6
- }
7
- export declare interface BaseAction {
8
- type: ActionType;
9
- }
10
- export declare interface PathAction extends BaseAction {
11
- path: string[];
12
- }
13
- export type DeletePathAction = PathAction;
14
- export declare interface SetPathAction extends PathAction {
15
- payload?: StateLeafNode;
16
- }
17
- export declare interface BatchAction extends BaseAction {
18
- payload: BaseAction[];
19
- }
20
- export declare interface StateMessage {
21
- type: 'ACTIONS';
22
- payload: BaseAction[];
23
- }
24
- export declare function isPathAction(action: BaseAction): action is PathAction;
25
- export declare function isSetPathAction(action: BaseAction): action is SetPathAction;
26
- export declare function isDeletePathAction(action: BaseAction): action is DeletePathAction;
27
- export declare function isBatchAction(action: BaseAction): action is BatchAction;
28
- export declare function extractAllPathActions(action: BaseAction): PathAction[];
29
- export declare function getSingleAction(actions: BaseAction[]): BaseAction;
@@ -1,27 +0,0 @@
1
- import { BaseAction } from './actions';
2
- export declare class PathTrie<T> {
3
- private root;
4
- getOrCreatePathTrieNode(path: string[], nodeData?: T): PathTrieNode<T>;
5
- getPathTrieNode(path: string[]): PathTrieNode<T> | undefined;
6
- getPathTrie(path: string[]): PathTrie<T> | undefined;
7
- /**
8
- * If the callback returns false, it will not iterate into the children of the current node.
9
- */
10
- iterateBfs(callback: (data: T, path: string[]) => void | boolean): void;
11
- removeNode(path: string[]): void;
12
- clearNodeData(path: string[]): void;
13
- getNodeList(path: string[]): Array<PathTrieNode<T>>;
14
- private iterateInternal;
15
- }
16
- export declare class PathTrieNode<T> {
17
- children: Map<string, PathTrieNode<T>>;
18
- nodeData: T | undefined;
19
- }
20
- /**
21
- * Returns a trie which contains all the paths affected by the action. For
22
- * example, if the action contains a path action applied on path [A, B, C], then
23
- * [A], [A, B], [A, B, C] will be in the returned trie. Moreover, if
24
- * subscriptionTree is provided and contains [A, B, C, ...], then [A, B, C, ...]
25
- * will also be included in the returned trie.
26
- */
27
- export declare function getPathTrieFromAction(action: BaseAction, subscriptionTree?: PathTrie<{}>): PathTrie<boolean>;
@@ -1,22 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { State, StateLeafNode } from './action.applier';
3
- import { BaseAction } from './actions';
4
- export declare class StateService {
5
- private readonly subscriptionsTree;
6
- private state;
7
- private batchCount;
8
- private readonly batchedActions;
9
- dispatch(action: BaseAction): void;
10
- runInBatch(fn: () => unknown): void;
11
- observePath<T>(path: string[], pathsToExcludeFn?: () => Array<string[]>): Observable<T>;
12
- setKeyInPath<T extends State>(path: string[], key: keyof T & string, value: T[keyof T] & StateLeafNode, noopIfSame?: boolean): void;
13
- setPartial<T extends State>(path: string[], partialState: Partial<T>, noopIfSame?: boolean): void;
14
- setInPath(path: string[], payload: StateLeafNode, noopIfSame?: boolean): void;
15
- pushToArray(path: string[], payload: StateLeafNode): void;
16
- deletePath(path: string[]): void;
17
- getState(): State;
18
- getStateInPath<T extends StateLeafNode>(path: string[]): T;
19
- destroy(): void;
20
- private getOrCreateSubjectForPath;
21
- private dispatchSubscriptions;
22
- }
@@ -1,2 +0,0 @@
1
- export type TransactionId = string;
2
- export declare const NOOP_FN: (fn: () => any) => any;