@stackone/core 1.37.0 → 1.38.0
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ErrorCode } from './codes';
|
|
2
1
|
export interface ILogger {
|
|
3
2
|
debug({ category, message, traceId, context, }: {
|
|
4
3
|
category?: string;
|
|
@@ -17,7 +16,7 @@ export interface ILogger {
|
|
|
17
16
|
message: string;
|
|
18
17
|
traceId?: string;
|
|
19
18
|
error?: LogError;
|
|
20
|
-
code?:
|
|
19
|
+
code?: string;
|
|
21
20
|
context?: Record<string, unknown>;
|
|
22
21
|
}): void;
|
|
23
22
|
error({ category, message, traceId, error, code, context, }: {
|
|
@@ -25,7 +24,7 @@ export interface ILogger {
|
|
|
25
24
|
message: string;
|
|
26
25
|
traceId?: string;
|
|
27
26
|
error?: LogError;
|
|
28
|
-
code:
|
|
27
|
+
code: string;
|
|
29
28
|
context?: Record<string, unknown>;
|
|
30
29
|
}): void;
|
|
31
30
|
}
|
package/package.json
CHANGED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
export declare enum ErrorCode {
|
|
2
|
-
AccountConnectorNotFoundError = 0,
|
|
3
|
-
AccountCreationError = 1,
|
|
4
|
-
AccountCumulativeLinkedAccountsError = 2,
|
|
5
|
-
AccountIntegrationInactiveError = 3,
|
|
6
|
-
AccountRemoveError = 4,
|
|
7
|
-
AccountSoftDeleteError = 5,
|
|
8
|
-
AccountTriggerTokenCreationError = 6,
|
|
9
|
-
AccountUpdateCredentialsError = 7,
|
|
10
|
-
AccountUpdateError = 8,
|
|
11
|
-
AdvancedLogSettingsError = 9,
|
|
12
|
-
AdvancedLogSettingsParseError = 10,
|
|
13
|
-
AdvancedLogWriteError = 11,
|
|
14
|
-
AsyncCallsHandlerError = 12,
|
|
15
|
-
AsyncCallsInitializationError = 13,
|
|
16
|
-
AsyncCallsQueueLifecycleError = 14,
|
|
17
|
-
AsyncCallsSubscribeError = 15,
|
|
18
|
-
AsyncCallsWorkerError = 16,
|
|
19
|
-
BackgroundCallsConsumerError = 17,
|
|
20
|
-
BundleResponseDataExtractionError = 18,
|
|
21
|
-
CacheClientCommandError = 19,
|
|
22
|
-
CacheClientDeleteError = 20,
|
|
23
|
-
CacheClientError = 21,
|
|
24
|
-
CacheClientInvalidTTL = 22,
|
|
25
|
-
CacheClientListError = 23,
|
|
26
|
-
CacheClientNotInitialized = 24,
|
|
27
|
-
CacheClientPublishError = 25,
|
|
28
|
-
CacheClientReadError = 26,
|
|
29
|
-
CacheClientRedisNotReady = 27,
|
|
30
|
-
CacheClientScriptError = 28,
|
|
31
|
-
CacheClientScriptExecuteError = 29,
|
|
32
|
-
CacheClientScriptLoadError = 30,
|
|
33
|
-
CacheClientSubscribeError = 31,
|
|
34
|
-
CacheClientUnsubscribeError = 32,
|
|
35
|
-
CacheClientWriteError = 33,
|
|
36
|
-
ConcurrencyManagerInitializationError = 34,
|
|
37
|
-
ConcurrencyManagerRedisEventsEmitError = 35,
|
|
38
|
-
ConcurrencyManagerRegistrationFailed = 36,
|
|
39
|
-
ConnectorsRegistryLoadError = 37,
|
|
40
|
-
ConnectorNotFound = 38,
|
|
41
|
-
CursorConfigurationError = 39,
|
|
42
|
-
DataSyncIncrementalRunError = 40,
|
|
43
|
-
DataSyncRequestParamsError = 41,
|
|
44
|
-
DataSyncRunDataDeleteError = 42,
|
|
45
|
-
DataSyncScheduledRunError = 43,
|
|
46
|
-
DecodeBase64Error = 44,
|
|
47
|
-
DynamoDBDeleteItemError = 45,
|
|
48
|
-
DynamoDBGetItemError = 46,
|
|
49
|
-
DynamoDBItemSizeCalculationError = 47,
|
|
50
|
-
DynamoDBItemSizeCheckError = 48,
|
|
51
|
-
DynamoDBPutItemError = 49,
|
|
52
|
-
DynamoDBQueryError = 50,
|
|
53
|
-
EnumValuesParseError = 51,
|
|
54
|
-
EventClientResolveError = 52,
|
|
55
|
-
FeaturesClientError = 53,
|
|
56
|
-
FeaturesClientNotReady = 54,
|
|
57
|
-
FieldConfigListError = 55,
|
|
58
|
-
FieldMappingLambdaInvocationError = 56,
|
|
59
|
-
GetAuthConfigError = 57,
|
|
60
|
-
GlobalExceptionFilterError = 58,
|
|
61
|
-
HttpRequestError = 59,
|
|
62
|
-
HttpTransportInstanceCreateError = 60,
|
|
63
|
-
IntegrationAuthKeyMissing = 61,
|
|
64
|
-
IntegrationCreateError = 62,
|
|
65
|
-
IntegrationRemoveError = 63,
|
|
66
|
-
IntegrationUpdateError = 64,
|
|
67
|
-
InvalidSkipResolveCondition = 65,
|
|
68
|
-
KafkaClientResetError = 66,
|
|
69
|
-
LambdaExecutionError = 67,
|
|
70
|
-
LoadCustomFieldConfigsError = 68,
|
|
71
|
-
LogResponseMiddlewareError = 69,
|
|
72
|
-
MemoryStorePruneError = 70,
|
|
73
|
-
MergeJsonFileError = 71,
|
|
74
|
-
MetadataEvaluationError = 72,
|
|
75
|
-
MigrationError = 73,
|
|
76
|
-
MonitoringJobError = 74,
|
|
77
|
-
MonitoringJobNotFound = 75,
|
|
78
|
-
MonitoringJobRemoveError = 76,
|
|
79
|
-
MonitoringMaintenanceError = 77,
|
|
80
|
-
ObjectSizeCalculationError = 78,
|
|
81
|
-
Oauth2StrategyError = 79,
|
|
82
|
-
OlapClientConsumerError = 80,
|
|
83
|
-
OlapClientIngestionError = 81,
|
|
84
|
-
OlapClientProducerError = 82,
|
|
85
|
-
OlapClientSchemaValidationError = 83,
|
|
86
|
-
OlapRequestLogMiddlewareError = 84,
|
|
87
|
-
OlapRequestLogWriteError = 85,
|
|
88
|
-
OpenIDConnectStrategyError = 86,
|
|
89
|
-
PersistentStoreDeleteAllError = 87,
|
|
90
|
-
PersistentStoreDeleteError = 88,
|
|
91
|
-
PersistentStoreWriteConfigError = 89,
|
|
92
|
-
ProcessorInvalidAction = 90,
|
|
93
|
-
QueueManagerInitializationError = 91,
|
|
94
|
-
QueueManagerJoinAndWaitTurnError = 92,
|
|
95
|
-
QueueManagerLengthError = 93,
|
|
96
|
-
QueueManagerPopError = 94,
|
|
97
|
-
RateLimitManagerInitializationError = 95,
|
|
98
|
-
RateLimiterReleaseRequestFailed = 96,
|
|
99
|
-
RedisClientError = 97,
|
|
100
|
-
RefreshTokenMissingProject = 98,
|
|
101
|
-
S3StorageUploadError = 99,
|
|
102
|
-
ScriptManagerExecutionError = 100,
|
|
103
|
-
ScriptManagerLoadingError = 101,
|
|
104
|
-
SecretsDecryptionError = 102,
|
|
105
|
-
SecretsEncryptionError = 103,
|
|
106
|
-
SecretsKeyRetrievalError = 104,
|
|
107
|
-
SecretsValueEncryptionError = 105,
|
|
108
|
-
SettingsReadError = 106,
|
|
109
|
-
StepFunctionExecutionError = 107,
|
|
110
|
-
TemporaryStoreWriteConfigError = 108,
|
|
111
|
-
TokenMaintenanceError = 109,
|
|
112
|
-
UnifiedRequestInterceptorError = 110,
|
|
113
|
-
UncaughtExceptionError = 111,
|
|
114
|
-
UnhandledRejectionError = 112,
|
|
115
|
-
VersionNotSupported = 113,
|
|
116
|
-
WebhookActiveCheckOperationNotFound = 114,
|
|
117
|
-
WebhookConfigNotFound = 115,
|
|
118
|
-
WebhookEventsInitializationError = 116,
|
|
119
|
-
WebhookProcessorError = 117,
|
|
120
|
-
WebhookReceiverRemoveError = 118,
|
|
121
|
-
WebhookSigningSecretNotFound = 119,
|
|
122
|
-
WriteJsonFileError = 120
|
|
123
|
-
}
|