@squidcloud/client 1.0.148 → 1.0.150

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 (110) hide show
  1. package/dist/cjs/index.js +8793 -8818
  2. package/dist/common/src/ai-assistant.types.d.ts +25 -25
  3. package/dist/common/src/ai-chatbot.context.d.ts +12 -12
  4. package/dist/common/src/ai-chatbot.schemas.d.ts +1 -1
  5. package/dist/common/src/ai-chatbot.types.d.ts +27 -27
  6. package/dist/common/src/api-call.context.d.ts +13 -13
  7. package/dist/common/src/api.types.d.ts +4 -4
  8. package/dist/common/src/application.schemas.d.ts +66 -66
  9. package/dist/common/src/application.types.d.ts +141 -143
  10. package/dist/common/src/backend-function.schemas.d.ts +1 -1
  11. package/dist/common/src/backend-function.types.d.ts +1 -1
  12. package/dist/common/src/backend-run.types.d.ts +2 -2
  13. package/dist/common/src/bundle-api.types.d.ts +41 -43
  14. package/dist/common/src/bundle-data.types.d.ts +5 -5
  15. package/dist/common/src/communication.types.d.ts +10 -8
  16. package/dist/common/src/context.types.d.ts +40 -40
  17. package/dist/common/src/distributed-lock.context.d.ts +4 -4
  18. package/dist/common/src/document.types.d.ts +22 -22
  19. package/dist/common/src/graphql.context.d.ts +7 -7
  20. package/dist/common/src/graphql.types.d.ts +9 -9
  21. package/dist/common/src/heartbeat.types.d.ts +1 -1
  22. package/dist/common/src/http-status.enum.d.ts +50 -50
  23. package/dist/common/src/index.d.ts +54 -57
  24. package/dist/common/src/integrations/ai_chatbot.types.d.ts +31 -31
  25. package/dist/common/src/integrations/api.types.d.ts +80 -80
  26. package/dist/common/src/integrations/auth.types.d.ts +47 -47
  27. package/dist/common/src/integrations/database.types.d.ts +274 -274
  28. package/dist/common/src/integrations/index.d.ts +134 -134
  29. package/dist/common/src/integrations/observability.types.d.ts +23 -23
  30. package/dist/common/src/logger.types.d.ts +21 -21
  31. package/dist/common/src/metrics.types.d.ts +1 -1
  32. package/dist/common/src/mutation.context.d.ts +14 -14
  33. package/dist/common/src/mutation.schemas.d.ts +1 -1
  34. package/dist/common/src/mutation.types.d.ts +53 -53
  35. package/dist/common/src/native-query.context.d.ts +7 -7
  36. package/dist/common/src/native-query.types.d.ts +16 -16
  37. package/dist/common/src/query/base-query-builder.d.ts +147 -147
  38. package/dist/common/src/query/index.d.ts +4 -4
  39. package/dist/common/src/query/pagination.d.ts +62 -62
  40. package/dist/common/src/query/query-context.d.ts +137 -137
  41. package/dist/common/src/query/serialized-query.types.d.ts +24 -24
  42. package/dist/common/src/query.types.d.ts +64 -64
  43. package/dist/common/src/regions.d.ts +1 -1
  44. package/dist/common/src/schema/schema.types.d.ts +54 -54
  45. package/dist/common/src/secret.schemas.d.ts +1 -1
  46. package/dist/common/src/secret.types.d.ts +22 -22
  47. package/dist/common/src/security.types.d.ts +1 -1
  48. package/dist/common/src/socket.schemas.d.ts +1 -1
  49. package/dist/common/src/socket.types.d.ts +5 -5
  50. package/dist/common/src/time-units.d.ts +1 -1
  51. package/dist/common/src/trigger.types.d.ts +1 -1
  52. package/dist/common/src/types.d.ts +14 -14
  53. package/dist/common/src/utils/array.d.ts +1 -1
  54. package/dist/common/src/utils/assert.d.ts +1 -1
  55. package/dist/common/src/utils/error.d.ts +4 -4
  56. package/dist/common/src/utils/global.utils.d.ts +1 -1
  57. package/dist/common/src/utils/http.d.ts +2 -2
  58. package/dist/common/src/utils/id.d.ts +2 -2
  59. package/dist/common/src/utils/lock.manager.d.ts +14 -14
  60. package/dist/common/src/utils/object.d.ts +5 -5
  61. package/dist/common/src/utils/serialization.d.ts +5 -5
  62. package/dist/common/src/utils/transforms.d.ts +18 -18
  63. package/dist/common/src/utils/url.d.ts +1 -1
  64. package/dist/common/src/utils/validation.d.ts +25 -25
  65. package/dist/common/src/webhook-response.d.ts +1 -1
  66. package/dist/common/src/websocket.impl.d.ts +21 -21
  67. package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +1239 -1239
  68. package/dist/typescript-client/src/ai-assistant-client.d.ts +73 -73
  69. package/dist/typescript-client/src/ai-chatbot-client.d.ts +174 -174
  70. package/dist/typescript-client/src/ai-chatbot-client.factory.d.ts +8 -8
  71. package/dist/typescript-client/src/ai.types.d.ts +61 -61
  72. package/dist/typescript-client/src/api.manager.d.ts +11 -11
  73. package/dist/typescript-client/src/auth.manager.d.ts +26 -26
  74. package/dist/typescript-client/src/backend-function.manager.d.ts +9 -9
  75. package/dist/typescript-client/src/client-id.service.d.ts +27 -27
  76. package/dist/typescript-client/src/collection-reference.d.ts +80 -80
  77. package/dist/typescript-client/src/collection-reference.factory.d.ts +13 -13
  78. package/dist/typescript-client/src/connection-details.d.ts +23 -23
  79. package/dist/typescript-client/src/data.manager.d.ts +174 -174
  80. package/dist/typescript-client/src/destruct.manager.d.ts +12 -12
  81. package/dist/typescript-client/src/distributed-lock.manager.d.ts +16 -16
  82. package/dist/typescript-client/src/document-identity.service.d.ts +12 -12
  83. package/dist/typescript-client/src/document-reference.d.ts +140 -140
  84. package/dist/typescript-client/src/document-reference.factory.d.ts +13 -13
  85. package/dist/typescript-client/src/document-store.d.ts +14 -14
  86. package/dist/typescript-client/src/graphql-client.d.ts +14 -14
  87. package/dist/typescript-client/src/graphql-client.factory.d.ts +11 -11
  88. package/dist/typescript-client/src/index.d.ts +9 -9
  89. package/dist/typescript-client/src/mutation/mutation-sender.d.ts +10 -10
  90. package/dist/typescript-client/src/native-query-manager.d.ts +7 -7
  91. package/dist/typescript-client/src/query/deserializer.d.ts +3 -3
  92. package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +161 -161
  93. package/dist/typescript-client/src/query/local-query-manager.d.ts +9 -9
  94. package/dist/typescript-client/src/query/query-builder.factory.d.ts +77 -77
  95. package/dist/typescript-client/src/query/query-sender.d.ts +33 -33
  96. package/dist/typescript-client/src/query/query-subscription.manager.d.ts +131 -131
  97. package/dist/typescript-client/src/query/query.types.d.ts +49 -49
  98. package/dist/typescript-client/src/rate-limiter.d.ts +32 -32
  99. package/dist/typescript-client/src/rpc.manager.d.ts +30 -30
  100. package/dist/typescript-client/src/secret.client.d.ts +22 -22
  101. package/dist/typescript-client/src/socket.manager.d.ts +43 -43
  102. package/dist/typescript-client/src/squid.d.ts +238 -269
  103. package/dist/typescript-client/src/state/state.service.spec.d.ts +1 -1
  104. package/dist/typescript-client/src/testing/setup-tests.d.ts +1 -1
  105. package/dist/typescript-client/src/types.d.ts +2 -2
  106. package/package.json +2 -2
  107. package/dist/common/src/named-query.context.d.ts +0 -4
  108. package/dist/common/src/named-query.schemas.d.ts +0 -1
  109. package/dist/common/src/named-query.types.d.ts +0 -1
  110. package/dist/typescript-client/src/named-query.manager.d.ts +0 -11
@@ -1,134 +1,134 @@
1
- export * from './ai_chatbot.types';
2
- export * from './api.types';
3
- export * from './auth.types';
4
- export * from './database.types';
5
- export * from './observability.types';
6
- import { IntegrationId } from '../communication.types';
7
- import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
8
- import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema, TestGraphQLDataConnectionRequest } from './api.types';
9
- import { Auth0IntegrationConfig, CognitoIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
10
- import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PinotIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
11
- import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
12
- export declare enum IntegrationCategory {
13
- 'database' = "database",
14
- 'api' = "api",
15
- 'observability' = "observability",
16
- 'crm' = "crm",
17
- 'auth' = "auth",
18
- 'ai' = "ai"
19
- }
20
- export declare enum IntegrationType {
21
- 'built_in_db' = "built_in_db",
22
- 'mongo' = "mongo",
23
- 'mysql' = "mysql",
24
- 'mssql' = "mssql",
25
- 'postgres' = "postgres",
26
- 'cockroach' = "cockroach",
27
- 'api' = "api",
28
- 'graphql' = "graphql",
29
- 'snowflake' = "snowflake",
30
- 'datadog' = "datadog",
31
- 'newrelic' = "newrelic",
32
- 'auth0' = "auth0",
33
- 'jwt_rsa' = "jwt_rsa",
34
- 'jwt_hmac' = "jwt_hmac",
35
- 'ai_chatbot' = "ai_chatbot",
36
- 'cognito' = "cognito",
37
- 'okta' = "okta",
38
- 'algolia' = "algolia",
39
- 'elastic_observability' = "elastic_observability",
40
- 'elastic_search' = "elastic_search",
41
- 'elastic_enterprise_search' = "elastic_enterprise_search",
42
- 'sentry' = "sentry",
43
- 'sap_hana' = "sap_hana",
44
- 'salesforce_crm' = "salesforce_crm",
45
- 'documentdb' = "documentdb",
46
- 'dynamodb' = "dynamodb",
47
- 'cassandra' = "cassandra",
48
- 'clickhouse' = "clickhouse",
49
- 'alloydb' = "alloydb",
50
- 'spanner' = "spanner",
51
- 'db2' = "db2",
52
- 'mariadb' = "mariadb",
53
- 'oracledb' = "oracledb",
54
- 'pinot' = "pinot",
55
- 'redis' = "redis",
56
- 'xata' = "xata",
57
- 'azure_sql' = "azure_sql",
58
- 'azure_postgresql' = "azure_postgresql",
59
- 'azure_cosmosdb' = "azure_cosmosdb",
60
- 'firestore' = "firestore",
61
- 'bigquery' = "bigquery",
62
- 'cloudsql' = "cloudsql"
63
- }
64
- export declare enum IntegrationSchemaType {
65
- 'data' = "data",
66
- 'api' = "api",
67
- 'graphql' = "graphql"
68
- }
69
- export interface IntegrationConfigTypes {
70
- [IntegrationType.built_in_db]: InternalIntegrationConfig;
71
- [IntegrationType.mongo]: MongoIntegrationConfig;
72
- [IntegrationType.mysql]: MySqlIntegrationConfig;
73
- [IntegrationType.bigquery]: BigQueryIntegrationConfig;
74
- [IntegrationType.oracledb]: OracleIntegrationConfig;
75
- [IntegrationType.pinot]: PinotIntegrationConfig;
76
- [IntegrationType.mssql]: MssqlIntegrationConfig;
77
- [IntegrationType.postgres]: PostgresIntegrationConfig;
78
- [IntegrationType.cockroach]: CockroachIntegrationConfig;
79
- [IntegrationType.snowflake]: SnowflakeIntegrationConfig;
80
- [IntegrationType.api]: HttpApiIntegrationConfig;
81
- [IntegrationType.graphql]: GraphQLIntegrationConfig;
82
- [IntegrationType.datadog]: DatadogIntegrationConfig;
83
- [IntegrationType.newrelic]: NewRelicIntegrationConfig;
84
- [IntegrationType.auth0]: Auth0IntegrationConfig;
85
- [IntegrationType.jwt_rsa]: JwtRsaIntegrationConfig;
86
- [IntegrationType.jwt_hmac]: JwtHmacIntegrationConfig;
87
- [IntegrationType.ai_chatbot]: AiChatbotIntegrationConfig;
88
- [IntegrationType.cognito]: CognitoIntegrationConfig;
89
- [IntegrationType.okta]: OktaIntegrationConfig;
90
- }
91
- export interface IntegrationSchemaTypes {
92
- [IntegrationType.built_in_db]: IntegrationDataSchema;
93
- [IntegrationType.mongo]: IntegrationDataSchema;
94
- [IntegrationType.mysql]: IntegrationDataSchema;
95
- [IntegrationType.oracledb]: IntegrationDataSchema;
96
- [IntegrationType.bigquery]: IntegrationDataSchema;
97
- [IntegrationType.pinot]: IntegrationDataSchema;
98
- [IntegrationType.mssql]: IntegrationDataSchema;
99
- [IntegrationType.postgres]: IntegrationDataSchema;
100
- [IntegrationType.cockroach]: IntegrationDataSchema;
101
- [IntegrationType.snowflake]: IntegrationDataSchema;
102
- [IntegrationType.api]: IntegrationApiSchema;
103
- [IntegrationType.graphql]: IntegrationGraphQLSchema;
104
- }
105
- export type IntegrationTypeWithConfig = keyof IntegrationConfigTypes;
106
- export type IntegrationSchemaKeys = keyof IntegrationSchemaTypes;
107
- export type IntegrationConfig = IntegrationConfigTypes[IntegrationTypeWithConfig];
108
- export type IntegrationSchema = IntegrationSchemaTypes[IntegrationSchemaKeys];
109
- export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb, IntegrationType.pinot];
110
- export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
111
- export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
112
- export declare const ApiIntegrationTypes: readonly [IntegrationType.api, IntegrationType.graphql];
113
- export declare const ObservabilityIntegrationTypes: readonly [IntegrationType.datadog, IntegrationType.newrelic];
114
- export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta];
115
- export type ApiIntegrationType = (typeof ApiIntegrationTypes)[number];
116
- export type ApiIntegrationConfig = IntegrationConfigTypes[ApiIntegrationType];
117
- export type ObservabilityIntegrationType = (typeof ObservabilityIntegrationTypes)[number];
118
- export type ObservabilityIntegrationConfig = IntegrationConfigTypes[ObservabilityIntegrationType];
119
- export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
120
- export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
121
- export declare function isDataIntegrationType(type: unknown): type is DatabaseIntegrationType;
122
- export declare function isDataIntegration(integration: any): integration is BaseDatabaseIntegrationConfig;
123
- export declare function isAuthIntegrationType(type: IntegrationType): type is AuthIntegrationType;
124
- export declare function isAuthIntegration(integration: any): integration is AuthIntegrationConfig;
125
- export interface BaseIntegrationConfig {
126
- id: IntegrationId;
127
- type: IntegrationTypeWithConfig;
128
- creationDate: Date;
129
- updateDate: Date;
130
- }
131
- export interface BaseIntegrationSchema {
132
- type: IntegrationSchemaType;
133
- }
134
- export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest;
1
+ export * from './ai_chatbot.types';
2
+ export * from './api.types';
3
+ export * from './auth.types';
4
+ export * from './database.types';
5
+ export * from './observability.types';
6
+ import { IntegrationId } from '../communication.types';
7
+ import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
8
+ import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema, TestGraphQLDataConnectionRequest } from './api.types';
9
+ import { Auth0IntegrationConfig, CognitoIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
10
+ import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PinotIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig, TestDataConnectionRequest } from './database.types';
11
+ import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
12
+ export declare enum IntegrationCategory {
13
+ 'database' = "database",
14
+ 'api' = "api",
15
+ 'observability' = "observability",
16
+ 'crm' = "crm",
17
+ 'auth' = "auth",
18
+ 'ai' = "ai"
19
+ }
20
+ export declare enum IntegrationType {
21
+ 'built_in_db' = "built_in_db",
22
+ 'mongo' = "mongo",
23
+ 'mysql' = "mysql",
24
+ 'mssql' = "mssql",
25
+ 'postgres' = "postgres",
26
+ 'cockroach' = "cockroach",
27
+ 'api' = "api",
28
+ 'graphql' = "graphql",
29
+ 'snowflake' = "snowflake",
30
+ 'datadog' = "datadog",
31
+ 'newrelic' = "newrelic",
32
+ 'auth0' = "auth0",
33
+ 'jwt_rsa' = "jwt_rsa",
34
+ 'jwt_hmac' = "jwt_hmac",
35
+ 'ai_chatbot' = "ai_chatbot",
36
+ 'cognito' = "cognito",
37
+ 'okta' = "okta",
38
+ 'algolia' = "algolia",
39
+ 'elastic_observability' = "elastic_observability",
40
+ 'elastic_search' = "elastic_search",
41
+ 'elastic_enterprise_search' = "elastic_enterprise_search",
42
+ 'sentry' = "sentry",
43
+ 'sap_hana' = "sap_hana",
44
+ 'salesforce_crm' = "salesforce_crm",
45
+ 'documentdb' = "documentdb",
46
+ 'dynamodb' = "dynamodb",
47
+ 'cassandra' = "cassandra",
48
+ 'clickhouse' = "clickhouse",
49
+ 'alloydb' = "alloydb",
50
+ 'spanner' = "spanner",
51
+ 'db2' = "db2",
52
+ 'mariadb' = "mariadb",
53
+ 'oracledb' = "oracledb",
54
+ 'pinot' = "pinot",
55
+ 'redis' = "redis",
56
+ 'xata' = "xata",
57
+ 'azure_sql' = "azure_sql",
58
+ 'azure_postgresql' = "azure_postgresql",
59
+ 'azure_cosmosdb' = "azure_cosmosdb",
60
+ 'firestore' = "firestore",
61
+ 'bigquery' = "bigquery",
62
+ 'cloudsql' = "cloudsql"
63
+ }
64
+ export declare enum IntegrationSchemaType {
65
+ 'data' = "data",
66
+ 'api' = "api",
67
+ 'graphql' = "graphql"
68
+ }
69
+ export interface IntegrationConfigTypes {
70
+ [IntegrationType.built_in_db]: InternalIntegrationConfig;
71
+ [IntegrationType.mongo]: MongoIntegrationConfig;
72
+ [IntegrationType.mysql]: MySqlIntegrationConfig;
73
+ [IntegrationType.bigquery]: BigQueryIntegrationConfig;
74
+ [IntegrationType.oracledb]: OracleIntegrationConfig;
75
+ [IntegrationType.pinot]: PinotIntegrationConfig;
76
+ [IntegrationType.mssql]: MssqlIntegrationConfig;
77
+ [IntegrationType.postgres]: PostgresIntegrationConfig;
78
+ [IntegrationType.cockroach]: CockroachIntegrationConfig;
79
+ [IntegrationType.snowflake]: SnowflakeIntegrationConfig;
80
+ [IntegrationType.api]: HttpApiIntegrationConfig;
81
+ [IntegrationType.graphql]: GraphQLIntegrationConfig;
82
+ [IntegrationType.datadog]: DatadogIntegrationConfig;
83
+ [IntegrationType.newrelic]: NewRelicIntegrationConfig;
84
+ [IntegrationType.auth0]: Auth0IntegrationConfig;
85
+ [IntegrationType.jwt_rsa]: JwtRsaIntegrationConfig;
86
+ [IntegrationType.jwt_hmac]: JwtHmacIntegrationConfig;
87
+ [IntegrationType.ai_chatbot]: AiChatbotIntegrationConfig;
88
+ [IntegrationType.cognito]: CognitoIntegrationConfig;
89
+ [IntegrationType.okta]: OktaIntegrationConfig;
90
+ }
91
+ export interface IntegrationSchemaTypes {
92
+ [IntegrationType.built_in_db]: IntegrationDataSchema;
93
+ [IntegrationType.mongo]: IntegrationDataSchema;
94
+ [IntegrationType.mysql]: IntegrationDataSchema;
95
+ [IntegrationType.oracledb]: IntegrationDataSchema;
96
+ [IntegrationType.bigquery]: IntegrationDataSchema;
97
+ [IntegrationType.pinot]: IntegrationDataSchema;
98
+ [IntegrationType.mssql]: IntegrationDataSchema;
99
+ [IntegrationType.postgres]: IntegrationDataSchema;
100
+ [IntegrationType.cockroach]: IntegrationDataSchema;
101
+ [IntegrationType.snowflake]: IntegrationDataSchema;
102
+ [IntegrationType.api]: IntegrationApiSchema;
103
+ [IntegrationType.graphql]: IntegrationGraphQLSchema;
104
+ }
105
+ export type IntegrationTypeWithConfig = keyof IntegrationConfigTypes;
106
+ export type IntegrationSchemaKeys = keyof IntegrationSchemaTypes;
107
+ export type IntegrationConfig = IntegrationConfigTypes[IntegrationTypeWithConfig];
108
+ export type IntegrationSchema = IntegrationSchemaTypes[IntegrationSchemaKeys];
109
+ export declare const DatabaseIntegrationTypes: readonly [IntegrationType.built_in_db, IntegrationType.mongo, IntegrationType.mysql, IntegrationType.bigquery, IntegrationType.mssql, IntegrationType.postgres, IntegrationType.cockroach, IntegrationType.snowflake, IntegrationType.oracledb, IntegrationType.pinot];
110
+ export type DatabaseIntegrationType = (typeof DatabaseIntegrationTypes)[number];
111
+ export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrationType];
112
+ export declare const ApiIntegrationTypes: readonly [IntegrationType.api, IntegrationType.graphql];
113
+ export declare const ObservabilityIntegrationTypes: readonly [IntegrationType.datadog, IntegrationType.newrelic];
114
+ export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta];
115
+ export type ApiIntegrationType = (typeof ApiIntegrationTypes)[number];
116
+ export type ApiIntegrationConfig = IntegrationConfigTypes[ApiIntegrationType];
117
+ export type ObservabilityIntegrationType = (typeof ObservabilityIntegrationTypes)[number];
118
+ export type ObservabilityIntegrationConfig = IntegrationConfigTypes[ObservabilityIntegrationType];
119
+ export type AuthIntegrationType = (typeof AuthIntegrationTypes)[number];
120
+ export type AuthIntegrationConfig = IntegrationConfigTypes[AuthIntegrationType];
121
+ export declare function isDataIntegrationType(type: unknown): type is DatabaseIntegrationType;
122
+ export declare function isDataIntegration(integration: any): integration is BaseDatabaseIntegrationConfig;
123
+ export declare function isAuthIntegrationType(type: IntegrationType): type is AuthIntegrationType;
124
+ export declare function isAuthIntegration(integration: any): integration is AuthIntegrationConfig;
125
+ export interface BaseIntegrationConfig {
126
+ id: IntegrationId;
127
+ type: IntegrationTypeWithConfig;
128
+ creationDate: Date;
129
+ updateDate: Date;
130
+ }
131
+ export interface BaseIntegrationSchema {
132
+ type: IntegrationSchemaType;
133
+ }
134
+ export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest;
@@ -1,23 +1,23 @@
1
- import { BaseIntegrationConfig, IntegrationType } from './index';
2
- export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
3
- type: IntegrationType.datadog;
4
- configuration: DatadogIntegrationConfiguration;
5
- }
6
- export interface DatadogIntegrationConfiguration {
7
- apiKey: string;
8
- appKey: string;
9
- datadogRegion: DatadogRegion;
10
- }
11
- export type DatadogRegion = 'us1' | 'us3' | 'us5' | 'eu1' | 'us1-fed' | 'ap1';
12
- export interface NewRelicIntegrationConfig extends BaseIntegrationConfig {
13
- type: IntegrationType.newrelic;
14
- configuration: NewRelicIntegrationConfiguration;
15
- }
16
- export declare const datadogRegionMap: Record<DatadogRegion, string>;
17
- export declare const datadogLogsUrlMap: Record<DatadogRegion, string>;
18
- export type NewRelicRegion = 'worldwide' | 'eu';
19
- export interface NewRelicIntegrationConfiguration {
20
- apiKey: string;
21
- newRelicRegion: NewRelicRegion;
22
- }
23
- export declare const newRelicRegionMap: Record<NewRelicRegion, string>;
1
+ import { BaseIntegrationConfig, IntegrationType } from './index';
2
+ export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
3
+ type: IntegrationType.datadog;
4
+ configuration: DatadogIntegrationConfiguration;
5
+ }
6
+ export interface DatadogIntegrationConfiguration {
7
+ apiKey: string;
8
+ appKey: string;
9
+ datadogRegion: DatadogRegion;
10
+ }
11
+ export type DatadogRegion = 'us1' | 'us3' | 'us5' | 'eu1' | 'us1-fed' | 'ap1';
12
+ export interface NewRelicIntegrationConfig extends BaseIntegrationConfig {
13
+ type: IntegrationType.newrelic;
14
+ configuration: NewRelicIntegrationConfiguration;
15
+ }
16
+ export declare const datadogRegionMap: Record<DatadogRegion, string>;
17
+ export declare const datadogLogsUrlMap: Record<DatadogRegion, string>;
18
+ export type NewRelicRegion = 'worldwide' | 'eu';
19
+ export interface NewRelicIntegrationConfiguration {
20
+ apiKey: string;
21
+ newRelicRegion: NewRelicRegion;
22
+ }
23
+ export declare const newRelicRegionMap: Record<NewRelicRegion, string>;
@@ -1,21 +1,21 @@
1
- export type LoggerContext = Record<string, any>;
2
- export interface Logger {
3
- trace(message: string, context?: LoggerContext): void;
4
- debug(message: string, context?: LoggerContext): void;
5
- info(message: string, context?: LoggerContext): void;
6
- warn(message: string, context?: LoggerContext): void;
7
- error(message: string, context?: LoggerContext): void;
8
- log(record: LogRecord): void;
9
- }
10
- export declare enum LogLevel {
11
- TRACE = "trace",
12
- DEBUG = "debug",
13
- INFO = "info",
14
- WARN = "warn",
15
- ERROR = "error"
16
- }
17
- export interface LogRecord {
18
- level?: LogLevel;
19
- message?: string;
20
- [key: string]: any;
21
- }
1
+ export type LoggerContext = Record<string, any>;
2
+ export interface Logger {
3
+ trace(message: string, context?: LoggerContext): void;
4
+ debug(message: string, context?: LoggerContext): void;
5
+ info(message: string, context?: LoggerContext): void;
6
+ warn(message: string, context?: LoggerContext): void;
7
+ error(message: string, context?: LoggerContext): void;
8
+ log(record: LogRecord): void;
9
+ }
10
+ export declare enum LogLevel {
11
+ TRACE = "trace",
12
+ DEBUG = "debug",
13
+ INFO = "info",
14
+ WARN = "warn",
15
+ ERROR = "error"
16
+ }
17
+ export interface LogRecord {
18
+ level?: LogLevel;
19
+ message?: string;
20
+ [key: string]: any;
21
+ }
@@ -1 +1 @@
1
- export type MetricType = 'count' | 'gauge';
1
+ export type MetricType = 'count' | 'gauge';
@@ -1,14 +1,14 @@
1
- import { BeforeAndAfterDocs } from './document.types';
2
- import { Mutation, MutationType } from './mutation.types';
3
- import { Paths } from './types';
4
- /** The mutation context that will be provided to the security function. */
5
- export declare class MutationContext<T = any> {
6
- readonly mutation: Mutation<T>;
7
- readonly beforeAndAfterDocs: BeforeAndAfterDocs<T>;
8
- readonly serverTimeStamp: Date;
9
- getMutationType(): MutationType;
10
- get before(): T | undefined;
11
- get after(): T | undefined;
12
- /** Returns true if the mutation affects the provided path. */
13
- affectsPath(path: Paths<T>): boolean;
14
- }
1
+ import { BeforeAndAfterDocs } from './document.types';
2
+ import { Mutation, MutationType } from './mutation.types';
3
+ import { Paths } from './types';
4
+ /** The mutation context that will be provided to the security function. */
5
+ export declare class MutationContext<T = any> {
6
+ readonly mutation: Mutation<T>;
7
+ readonly beforeAndAfterDocs: BeforeAndAfterDocs<T>;
8
+ readonly serverTimeStamp: Date;
9
+ getMutationType(): MutationType;
10
+ get before(): T | undefined;
11
+ get after(): T | undefined;
12
+ /** Returns true if the mutation affects the provided path. */
13
+ affectsPath(path: Paths<T>): boolean;
14
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,53 +1,53 @@
1
- import { SquidDocIdObj } from './document.types';
2
- /** A mutation on a document. */
3
- export type Mutation<T = any> = UpdateMutation<T> | InsertMutation<T> | DeleteMutation;
4
- /** The mutation type. */
5
- export type MutationType = 'insert' | 'update' | 'delete';
6
- interface BaseMutation {
7
- type: MutationType;
8
- squidDocIdObj: SquidDocIdObj;
9
- }
10
- export interface DeleteMutation extends BaseMutation {
11
- type: 'delete';
12
- }
13
- export interface UpdateMutation<T = any> extends BaseMutation {
14
- type: 'update';
15
- /** The updated properties */
16
- properties: {
17
- [key in keyof T & string]?: Array<PropertyMutation<T[key]>>;
18
- };
19
- }
20
- export interface InsertMutation<T = any> extends BaseMutation {
21
- type: 'insert';
22
- /** The inserted document */
23
- properties: T;
24
- }
25
- /** A representation of a single property update */
26
- export type PropertyMutation<Value = any> = ApplyNumericFnPropertyMutation | ApplyStringFnPropertyMutation | ValueUpdatePropertyMutation<Value> | RemovePropertyMutation;
27
- /** A value update property mutation */
28
- export interface ValueUpdatePropertyMutation<Value = any> {
29
- type: 'update';
30
- value: Value;
31
- }
32
- /** Applying a numeric function to a property */
33
- export interface ApplyNumericFnPropertyMutation {
34
- type: 'applyNumericFn';
35
- fn: 'increment';
36
- value: number;
37
- }
38
- /** A property update that removes a property from a document */
39
- export interface RemovePropertyMutation {
40
- type: 'removeProperty';
41
- }
42
- interface ApplyExtendString {
43
- type: 'applyStringFn';
44
- fn: 'extendString';
45
- value: string;
46
- }
47
- interface ApplyTrimString {
48
- type: 'applyStringFn';
49
- fn: 'trim';
50
- }
51
- /** A property mutation that modifies a string */
52
- export type ApplyStringFnPropertyMutation = ApplyExtendString | ApplyTrimString;
53
- export {};
1
+ import { SquidDocIdObj } from './document.types';
2
+ /** A mutation on a document. */
3
+ export type Mutation<T = any> = UpdateMutation<T> | InsertMutation<T> | DeleteMutation;
4
+ /** The mutation type. */
5
+ export type MutationType = 'insert' | 'update' | 'delete';
6
+ interface BaseMutation {
7
+ type: MutationType;
8
+ squidDocIdObj: SquidDocIdObj;
9
+ }
10
+ export interface DeleteMutation extends BaseMutation {
11
+ type: 'delete';
12
+ }
13
+ export interface UpdateMutation<T = any> extends BaseMutation {
14
+ type: 'update';
15
+ /** The updated properties */
16
+ properties: {
17
+ [key in keyof T & string]?: Array<PropertyMutation<T[key]>>;
18
+ };
19
+ }
20
+ export interface InsertMutation<T = any> extends BaseMutation {
21
+ type: 'insert';
22
+ /** The inserted document */
23
+ properties: T;
24
+ }
25
+ /** A representation of a single property update */
26
+ export type PropertyMutation<Value = any> = ApplyNumericFnPropertyMutation | ApplyStringFnPropertyMutation | ValueUpdatePropertyMutation<Value> | RemovePropertyMutation;
27
+ /** A value update property mutation */
28
+ export interface ValueUpdatePropertyMutation<Value = any> {
29
+ type: 'update';
30
+ value: Value;
31
+ }
32
+ /** Applying a numeric function to a property */
33
+ export interface ApplyNumericFnPropertyMutation {
34
+ type: 'applyNumericFn';
35
+ fn: 'increment';
36
+ value: number;
37
+ }
38
+ /** A property update that removes a property from a document */
39
+ export interface RemovePropertyMutation {
40
+ type: 'removeProperty';
41
+ }
42
+ interface ApplyExtendString {
43
+ type: 'applyStringFn';
44
+ fn: 'extendString';
45
+ value: string;
46
+ }
47
+ interface ApplyTrimString {
48
+ type: 'applyStringFn';
49
+ fn: 'trim';
50
+ }
51
+ /** A property mutation that modifies a string */
52
+ export type ApplyStringFnPropertyMutation = ApplyExtendString | ApplyTrimString;
53
+ export {};
@@ -1,7 +1,7 @@
1
- import { ClientId } from './communication.types';
2
- /** The context provided to the secure native query function. */
3
- export declare class NativeQueryContext {
4
- readonly query: string;
5
- readonly params: Record<string, any>;
6
- readonly clientId: ClientId;
7
- }
1
+ import { ClientId } from './communication.types';
2
+ /** The context provided to the secure native query function. */
3
+ export declare class NativeQueryContext {
4
+ readonly query: string;
5
+ readonly params: Record<string, any>;
6
+ readonly clientId: ClientId;
7
+ }
@@ -1,16 +1,16 @@
1
- export type NativeQueryRequestType = 'relational' | 'mongo';
2
- interface BaseNativeQueryRequest {
3
- type: NativeQueryRequestType;
4
- }
5
- export interface RelationalNativeQueryRequest extends BaseNativeQueryRequest {
6
- type: 'relational';
7
- query: string;
8
- params: Record<string, any>;
9
- }
10
- export interface MongoNativeQueryRequest extends BaseNativeQueryRequest {
11
- type: 'mongo';
12
- collectionName: string;
13
- aggregationPipeline: Array<any | undefined>;
14
- }
15
- export type NativeQueryRequest = RelationalNativeQueryRequest | MongoNativeQueryRequest;
16
- export {};
1
+ export type NativeQueryRequestType = 'relational' | 'mongo';
2
+ interface BaseNativeQueryRequest {
3
+ type: NativeQueryRequestType;
4
+ }
5
+ export interface RelationalNativeQueryRequest extends BaseNativeQueryRequest {
6
+ type: 'relational';
7
+ query: string;
8
+ params: Record<string, any>;
9
+ }
10
+ export interface MongoNativeQueryRequest extends BaseNativeQueryRequest {
11
+ type: 'mongo';
12
+ collectionName: string;
13
+ aggregationPipeline: Array<any | undefined>;
14
+ }
15
+ export type NativeQueryRequest = RelationalNativeQueryRequest | MongoNativeQueryRequest;
16
+ export {};