@squidcloud/client 1.0.57 → 1.0.59

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/common/src/api-call.context.d.ts +12 -12
  2. package/dist/common/src/api.types.d.ts +24 -24
  3. package/dist/common/src/application.schemas.d.ts +1029 -883
  4. package/dist/common/src/application.types.d.ts +212 -206
  5. package/dist/common/src/auth.types.d.ts +4 -0
  6. package/dist/common/src/backend-function.schemas.d.ts +3 -3
  7. package/dist/common/src/backend-function.types.d.ts +7 -7
  8. package/dist/common/src/backend-run.types.d.ts +53 -53
  9. package/dist/common/src/bundle-api.types.d.ts +66 -66
  10. package/dist/common/src/bundle-data.types.d.ts +52 -52
  11. package/dist/common/src/communication.types.d.ts +4 -4
  12. package/dist/common/src/context.types.d.ts +32 -31
  13. package/dist/common/src/distributed-lock.context.d.ts +5 -5
  14. package/dist/common/src/document.types.d.ts +37 -35
  15. package/dist/common/src/graphql.context.d.ts +6 -6
  16. package/dist/common/src/graphql.types.d.ts +11 -11
  17. package/dist/common/src/http-status.enum.d.ts +50 -50
  18. package/dist/common/src/index.d.ts +52 -51
  19. package/dist/common/src/integration.types.d.ts +404 -351
  20. package/dist/common/src/logger.types.d.ts +21 -21
  21. package/dist/common/src/metrics.types.d.ts +58 -58
  22. package/dist/common/src/mutation.context.d.ts +10 -10
  23. package/dist/common/src/mutation.schemas.d.ts +5 -5
  24. package/dist/common/src/mutation.types.d.ts +72 -72
  25. package/dist/common/src/named-query.context.d.ts +4 -4
  26. package/dist/common/src/named-query.schemas.d.ts +3 -3
  27. package/dist/common/src/named-query.types.d.ts +9 -9
  28. package/dist/common/src/query/index.d.ts +2 -2
  29. package/dist/common/src/query/query-context.d.ts +37 -37
  30. package/dist/common/src/query/simple-query-builder.d.ts +137 -137
  31. package/dist/common/src/query.schemas.d.ts +5 -5
  32. package/dist/common/src/query.types.d.ts +118 -118
  33. package/dist/common/src/regions.d.ts +22 -22
  34. package/dist/common/src/schema/schema.types.d.ts +54 -54
  35. package/dist/common/src/secret.schemas.d.ts +6 -6
  36. package/dist/common/src/secret.types.d.ts +40 -40
  37. package/dist/common/src/security.types.d.ts +3 -3
  38. package/dist/common/src/socket.schemas.d.ts +3 -3
  39. package/dist/common/src/socket.types.d.ts +100 -100
  40. package/dist/common/src/time-units.d.ts +5 -5
  41. package/dist/common/src/trigger.types.d.ts +15 -15
  42. package/dist/common/src/types.d.ts +15 -15
  43. package/dist/common/src/utils/array.d.ts +8 -8
  44. package/dist/common/src/utils/assert.d.ts +8 -8
  45. package/dist/common/src/utils/error.d.ts +4 -4
  46. package/dist/common/src/utils/http.d.ts +2 -2
  47. package/dist/common/src/utils/id.d.ts +2 -2
  48. package/dist/common/src/utils/lock.manager.d.ts +14 -14
  49. package/dist/common/src/utils/nullish.d.ts +1 -1
  50. package/dist/common/src/utils/object.d.ts +6 -6
  51. package/dist/common/src/utils/serialization.d.ts +6 -6
  52. package/dist/common/src/utils/transforms.d.ts +18 -18
  53. package/dist/common/src/utils/url.d.ts +1 -1
  54. package/dist/common/src/utils/validation.d.ts +30 -30
  55. package/dist/common/src/webhook-response.d.ts +7 -7
  56. package/dist/index.js +6 -6
  57. package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +1239 -1239
  58. package/dist/typescript-client/src/api.manager.d.ts +14 -14
  59. package/dist/typescript-client/src/auth.manager.d.ts +23 -17
  60. package/dist/typescript-client/src/backend-function.manager.d.ts +13 -13
  61. package/dist/typescript-client/src/collection-reference.d.ts +65 -65
  62. package/dist/typescript-client/src/collection-reference.factory.d.ts +16 -16
  63. package/dist/typescript-client/src/data.manager.d.ts +172 -172
  64. package/dist/typescript-client/src/destruct.manager.d.ts +12 -12
  65. package/dist/typescript-client/src/distributed-lock.manager.d.ts +19 -19
  66. package/dist/typescript-client/src/document-identity.service.d.ts +12 -12
  67. package/dist/typescript-client/src/document-reference.d.ts +134 -134
  68. package/dist/typescript-client/src/document-reference.factory.d.ts +9 -9
  69. package/dist/typescript-client/src/document-store.d.ts +11 -11
  70. package/dist/typescript-client/src/graphql-client.d.ts +12 -12
  71. package/dist/typescript-client/src/graphql-client.factory.d.ts +9 -9
  72. package/dist/typescript-client/src/index.d.ts +8 -8
  73. package/dist/typescript-client/src/mutation/mutation-sender.d.ts +11 -11
  74. package/dist/typescript-client/src/named-query.manager.d.ts +13 -13
  75. package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +72 -72
  76. package/dist/typescript-client/src/query/query-builder.factory.d.ts +83 -83
  77. package/dist/typescript-client/src/query/query-subscription.manager.d.ts +59 -59
  78. package/dist/typescript-client/src/query/query.types.d.ts +14 -14
  79. package/dist/typescript-client/src/rpc.manager.d.ts +27 -27
  80. package/dist/typescript-client/src/socket.manager.d.ts +24 -24
  81. package/dist/typescript-client/src/squid.d.ts +187 -186
  82. package/dist/typescript-client/src/state/action.applier.d.ts +7 -7
  83. package/dist/typescript-client/src/state/actions.d.ts +29 -29
  84. package/dist/typescript-client/src/state/path_trie.d.ts +27 -27
  85. package/dist/typescript-client/src/state/state.service.d.ts +22 -22
  86. package/dist/typescript-client/src/state/state.service.spec.d.ts +1 -1
  87. package/dist/typescript-client/src/testing/setup-tests.d.ts +1 -1
  88. package/dist/typescript-client/src/types.d.ts +2 -2
  89. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- export declare function unchanged(any: any): any;
2
- export declare function booleanToInt(boolean: boolean): number;
3
- export declare function intToBoolean(int: number): boolean;
4
- export declare function stringToNumber(string: string): number;
5
- export declare function numberToString(number: number): string;
6
- export declare function bufferToString(buffer: ArrayBuffer): string;
7
- export declare function stringToBuffer(string: string): ArrayBuffer;
8
- export declare function stringToJSON(string: string): JSON;
9
- export declare function JSONToString(json: JSON): string;
10
- export declare function moneyStringToNumber(money: string): number;
11
- export declare function daysPastEpochToDate(days: number): Date;
12
- export declare function msToDate(ms: number): Date;
13
- export declare function isoStringToDate(string: string): Date;
14
- export declare function base64ToString(string: string): string;
15
- export declare function base64ToBinary(string: string): string;
16
- export declare function debeziumStringToInterval(string: string): Record<string, number>;
17
- export declare function msPastMidnightToTimeString(ms: number): string;
18
- export declare function dateToTimeString(date: Date): string;
1
+ export declare function unchanged(any: any): any;
2
+ export declare function booleanToInt(boolean: boolean): number;
3
+ export declare function intToBoolean(int: number): boolean;
4
+ export declare function stringToNumber(string: string): number;
5
+ export declare function numberToString(number: number): string;
6
+ export declare function bufferToString(buffer: ArrayBuffer): string;
7
+ export declare function stringToBuffer(string: string): ArrayBuffer;
8
+ export declare function stringToJSON(string: string): JSON;
9
+ export declare function JSONToString(json: JSON): string;
10
+ export declare function moneyStringToNumber(money: string): number;
11
+ export declare function daysPastEpochToDate(days: number): Date;
12
+ export declare function msToDate(ms: number): Date;
13
+ export declare function isoStringToDate(string: string): Date;
14
+ export declare function base64ToString(string: string): string;
15
+ export declare function base64ToBinary(string: string): string;
16
+ export declare function kafkaConnectStringToInterval(string: string): Record<string, number>;
17
+ export declare function msPastMidnightToTimeString(ms: number): string;
18
+ export declare function dateToTimeString(date: Date): string;
@@ -1 +1 @@
1
- export declare function appendQueryParams(url: string, queryParams: Record<string, any>): string;
1
+ export declare function appendQueryParams(url: string, queryParams: Record<string, any>): string;
@@ -1,30 +1,30 @@
1
- /**
2
- * This file contains general validators for the different objects being received from the client. The parameters are
3
- * usually of type 'any' to make sure there are no assumptions that the object has the correct type.
4
- * Also, this file should avoid importing from other files that are not for validation to avoid circular deps.
5
- */
6
- import { OpenIdProvider } from '../application.types';
7
- import { HttpStatus } from '../http-status.enum';
8
- export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED;
9
- export declare class ValidationError extends Error {
10
- readonly statusCode: StatusCode;
11
- readonly details?: any;
12
- constructor(error: string, statusCode: StatusCode, details?: Record<string, any>);
13
- }
14
- export declare function validateFieldSort(fieldSort: any): void;
15
- export declare function validateOpenIdProvider(openIdProvider: OpenIdProvider | undefined): OpenIdProvider;
16
- export declare function validateOpenIdProviderType(providerType: any): void;
17
- export declare function validateMutations(mutations: any): void;
18
- export declare function validateQueryLimit(limit: any): void;
19
- /** Returns true if the value is not an empty string (undefined/null are considered empty). */
20
- export declare function isNotEmpty(value: string | undefined | null): value is string;
21
- /**
22
- * All type names returned by 'typeof' supported by JavaScript:
23
- * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof}.
24
- * and a few other supported types.
25
- */
26
- export type JavascriptTypeName = 'undefined' | 'object' | 'boolean' | 'number' | 'bigint' | 'string' | 'symbol' | 'function';
27
- /** Returns true if 'typeof' of the 'value' is 'type' or 'type[]'. */
28
- export declare function isRightType(value: unknown, type: JavascriptTypeName): boolean;
29
- /** Returns true if 'obj' has only keys listed in the 'keys'. Object can't be an array. */
30
- export declare function hasOnlyKeys(obj: object, keys: string[]): boolean;
1
+ /**
2
+ * This file contains general validators for the different objects being received from the client. The parameters are
3
+ * usually of type 'any' to make sure there are no assumptions that the object has the correct type.
4
+ * Also, this file should avoid importing from other files that are not for validation to avoid circular deps.
5
+ */
6
+ import { OpenIdProvider } from '../application.types';
7
+ import { HttpStatus } from '../http-status.enum';
8
+ export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED;
9
+ export declare class ValidationError extends Error {
10
+ readonly statusCode: StatusCode;
11
+ readonly details?: any;
12
+ constructor(error: string, statusCode: StatusCode, details?: Record<string, any>);
13
+ }
14
+ export declare function validateFieldSort(fieldSort: any): void;
15
+ export declare function validateOpenIdProvider(openIdProvider: OpenIdProvider | undefined): OpenIdProvider;
16
+ export declare function validateOpenIdProviderType(providerType: any): void;
17
+ export declare function validateMutations(mutations: any): void;
18
+ export declare function validateQueryLimit(limit: any): void;
19
+ /** Returns true if the value is not an empty string (undefined/null are considered empty). */
20
+ export declare function isNotEmpty(value: string | undefined | null): value is string;
21
+ /**
22
+ * All type names returned by 'typeof' supported by JavaScript:
23
+ * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof}.
24
+ * and a few other supported types.
25
+ */
26
+ export type JavascriptTypeName = 'undefined' | 'object' | 'boolean' | 'number' | 'bigint' | 'string' | 'symbol' | 'function';
27
+ /** Returns true if 'typeof' of the 'value' is 'type' or 'type[]'. */
28
+ export declare function isRightType(value: unknown, type: JavascriptTypeName): boolean;
29
+ /** Returns true if 'obj' has only keys listed in the 'keys'. Object can't be an array. */
30
+ export declare function hasOnlyKeys(obj: object, keys: string[]): boolean;
@@ -1,7 +1,7 @@
1
- export interface WebhookResponse {
2
- headers: Record<string, any>;
3
- body: any;
4
- statusCode: number;
5
- __isWebhookResponse__: true;
6
- }
7
- export declare function isWebhookResponse(response: any): response is WebhookResponse;
1
+ export interface WebhookResponse {
2
+ headers: Record<string, any>;
3
+ body: any;
4
+ statusCode: number;
5
+ __isWebhookResponse__: true;
6
+ }
7
+ export declare function isWebhookResponse(response: any): response is WebhookResponse;