@stackone/core 1.36.0 → 1.37.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.
@@ -0,0 +1,123 @@
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
+ }
@@ -1,3 +1,4 @@
1
+ import { ErrorCode } from './codes';
1
2
  export interface ILogger {
2
3
  debug({ category, message, traceId, context, }: {
3
4
  category?: string;
@@ -11,17 +12,20 @@ export interface ILogger {
11
12
  traceId?: string;
12
13
  context?: Record<string, unknown>;
13
14
  }): void;
14
- warning({ category, message, traceId, context, }: {
15
+ warning({ category, message, traceId, error, code, context, }: {
15
16
  category?: string;
16
17
  message: string;
17
18
  traceId?: string;
19
+ error?: LogError;
20
+ code?: ErrorCode;
18
21
  context?: Record<string, unknown>;
19
22
  }): void;
20
- error({ category, message, traceId, error, context, }: {
23
+ error({ category, message, traceId, error, code, context, }: {
21
24
  category?: string;
22
25
  message: string;
23
26
  traceId?: string;
24
27
  error?: LogError;
28
+ code: ErrorCode;
25
29
  context?: Record<string, unknown>;
26
30
  }): void;
27
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/core",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.mjs",