@gomomento/sdk-core 1.12.8
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.
- package/dist/src/auth/credential-provider.d.ts +83 -0
- package/dist/src/auth/credential-provider.js +82 -0
- package/dist/src/auth/index.d.ts +1 -0
- package/dist/src/auth/index.js +18 -0
- package/dist/src/config/logging/default-momento-logger.d.ts +24 -0
- package/dist/src/config/logging/default-momento-logger.js +69 -0
- package/dist/src/config/logging/index.d.ts +3 -0
- package/dist/src/config/logging/index.js +20 -0
- package/dist/src/config/logging/momento-logger.d.ts +10 -0
- package/dist/src/config/logging/momento-logger.js +3 -0
- package/dist/src/config/logging/noop-momento-logger.d.ts +11 -0
- package/dist/src/config/logging/noop-momento-logger.js +34 -0
- package/dist/src/config/transport/grpc-configuration.d.ts +41 -0
- package/dist/src/config/transport/grpc-configuration.js +3 -0
- package/dist/src/config/transport/index.d.ts +2 -0
- package/dist/src/config/transport/index.js +19 -0
- package/dist/src/config/transport/transport-strategy.d.ts +77 -0
- package/dist/src/config/transport/transport-strategy.js +60 -0
- package/dist/src/errors/error-utils.d.ts +2 -0
- package/dist/src/errors/error-utils.js +12 -0
- package/dist/src/errors/errors.d.ts +140 -0
- package/dist/src/errors/errors.js +229 -0
- package/dist/src/errors/index.d.ts +2 -0
- package/dist/src/errors/index.js +19 -0
- package/dist/src/index.d.ts +57 -0
- package/dist/src/index.js +137 -0
- package/dist/src/internal/clients/auth/AbstractAuthClient.d.ts +10 -0
- package/dist/src/internal/clients/auth/AbstractAuthClient.js +13 -0
- package/dist/src/internal/clients/auth/IAuthClient.d.ts +4 -0
- package/dist/src/internal/clients/auth/IAuthClient.js +3 -0
- package/dist/src/internal/clients/auth/index.d.ts +2 -0
- package/dist/src/internal/clients/auth/index.js +19 -0
- package/dist/src/internal/clients/cache/AbstractCacheClient.d.ts +638 -0
- package/dist/src/internal/clients/cache/AbstractCacheClient.js +870 -0
- package/dist/src/internal/clients/cache/ICacheClient.d.ts +45 -0
- package/dist/src/internal/clients/cache/ICacheClient.js +3 -0
- package/dist/src/internal/clients/cache/IControlClient.d.ts +7 -0
- package/dist/src/internal/clients/cache/IControlClient.js +3 -0
- package/dist/src/internal/clients/cache/IDataClient.d.ts +29 -0
- package/dist/src/internal/clients/cache/IDataClient.js +3 -0
- package/dist/src/internal/clients/cache/index.d.ts +4 -0
- package/dist/src/internal/clients/cache/index.js +21 -0
- package/dist/src/internal/clients/index.d.ts +3 -0
- package/dist/src/internal/clients/index.js +20 -0
- package/dist/src/internal/clients/ping/AbstractPingClient.d.ts +25 -0
- package/dist/src/internal/clients/ping/AbstractPingClient.js +29 -0
- package/dist/src/internal/clients/ping/IPingClient.d.ts +3 -0
- package/dist/src/internal/clients/ping/IPingClient.js +3 -0
- package/dist/src/internal/clients/ping/index.d.ts +2 -0
- package/dist/src/internal/clients/ping/index.js +19 -0
- package/dist/src/internal/subscription-state.d.ts +15 -0
- package/dist/src/internal/subscription-state.js +38 -0
- package/dist/src/internal/utils/auth.d.ts +25 -0
- package/dist/src/internal/utils/auth.js +50 -0
- package/dist/src/internal/utils/collections.d.ts +1 -0
- package/dist/src/internal/utils/collections.js +8 -0
- package/dist/src/internal/utils/display.d.ts +2 -0
- package/dist/src/internal/utils/display.js +30 -0
- package/dist/src/internal/utils/index.d.ts +7 -0
- package/dist/src/internal/utils/index.js +24 -0
- package/dist/src/internal/utils/object.d.ts +1 -0
- package/dist/src/internal/utils/object.js +8 -0
- package/dist/src/internal/utils/sleep.d.ts +1 -0
- package/dist/src/internal/utils/sleep.js +6 -0
- package/dist/src/internal/utils/string.d.ts +2 -0
- package/dist/src/internal/utils/string.js +17 -0
- package/dist/src/internal/utils/validators.d.ts +13 -0
- package/dist/src/internal/utils/validators.js +105 -0
- package/dist/src/internal/vendor/printf/README.md +31 -0
- package/dist/src/internal/vendor/printf/printf.d.ts +9 -0
- package/dist/src/internal/vendor/printf/printf.js +478 -0
- package/dist/src/messages/cache-info.d.ts +5 -0
- package/dist/src/messages/cache-info.js +13 -0
- package/dist/src/messages/responses/cache-delete.d.ts +61 -0
- package/dist/src/messages/responses/cache-delete.js +54 -0
- package/dist/src/messages/responses/cache-dictionary-fetch.d.ts +120 -0
- package/dist/src/messages/responses/cache-dictionary-fetch.js +162 -0
- package/dist/src/messages/responses/cache-dictionary-get-field.d.ts +123 -0
- package/dist/src/messages/responses/cache-dictionary-get-field.js +143 -0
- package/dist/src/messages/responses/cache-dictionary-get-fields.d.ts +122 -0
- package/dist/src/messages/responses/cache-dictionary-get-fields.js +173 -0
- package/dist/src/messages/responses/cache-dictionary-increment.d.ts +69 -0
- package/dist/src/messages/responses/cache-dictionary-increment.js +68 -0
- package/dist/src/messages/responses/cache-dictionary-remove-field.d.ts +61 -0
- package/dist/src/messages/responses/cache-dictionary-remove-field.js +54 -0
- package/dist/src/messages/responses/cache-dictionary-remove-fields.d.ts +61 -0
- package/dist/src/messages/responses/cache-dictionary-remove-fields.js +54 -0
- package/dist/src/messages/responses/cache-dictionary-set-field.d.ts +61 -0
- package/dist/src/messages/responses/cache-dictionary-set-field.js +54 -0
- package/dist/src/messages/responses/cache-dictionary-set-fields.d.ts +61 -0
- package/dist/src/messages/responses/cache-dictionary-set-fields.js +54 -0
- package/dist/src/messages/responses/cache-flush.d.ts +61 -0
- package/dist/src/messages/responses/cache-flush.js +54 -0
- package/dist/src/messages/responses/cache-get.d.ts +86 -0
- package/dist/src/messages/responses/cache-get.js +88 -0
- package/dist/src/messages/responses/cache-increment.d.ts +69 -0
- package/dist/src/messages/responses/cache-increment.js +68 -0
- package/dist/src/messages/responses/cache-list-concatenate-back.d.ts +69 -0
- package/dist/src/messages/responses/cache-list-concatenate-back.js +68 -0
- package/dist/src/messages/responses/cache-list-concatenate-front.d.ts +69 -0
- package/dist/src/messages/responses/cache-list-concatenate-front.js +68 -0
- package/dist/src/messages/responses/cache-list-fetch.d.ts +92 -0
- package/dist/src/messages/responses/cache-list-fetch.js +96 -0
- package/dist/src/messages/responses/cache-list-length.d.ts +84 -0
- package/dist/src/messages/responses/cache-list-length.js +78 -0
- package/dist/src/messages/responses/cache-list-pop-back.d.ts +86 -0
- package/dist/src/messages/responses/cache-list-pop-back.js +88 -0
- package/dist/src/messages/responses/cache-list-pop-front.d.ts +86 -0
- package/dist/src/messages/responses/cache-list-pop-front.js +88 -0
- package/dist/src/messages/responses/cache-list-push-back.d.ts +69 -0
- package/dist/src/messages/responses/cache-list-push-back.js +68 -0
- package/dist/src/messages/responses/cache-list-push-front.d.ts +69 -0
- package/dist/src/messages/responses/cache-list-push-front.js +68 -0
- package/dist/src/messages/responses/cache-list-remove-value.d.ts +61 -0
- package/dist/src/messages/responses/cache-list-remove-value.js +54 -0
- package/dist/src/messages/responses/cache-list-retain.d.ts +61 -0
- package/dist/src/messages/responses/cache-list-retain.js +54 -0
- package/dist/src/messages/responses/cache-set-add-element.d.ts +71 -0
- package/dist/src/messages/responses/cache-set-add-element.js +54 -0
- package/dist/src/messages/responses/cache-set-add-elements.d.ts +65 -0
- package/dist/src/messages/responses/cache-set-add-elements.js +61 -0
- package/dist/src/messages/responses/cache-set-fetch.d.ts +111 -0
- package/dist/src/messages/responses/cache-set-fetch.js +121 -0
- package/dist/src/messages/responses/cache-set-if-not-exists.d.ts +74 -0
- package/dist/src/messages/responses/cache-set-if-not-exists.js +63 -0
- package/dist/src/messages/responses/cache-set-remove-element.d.ts +61 -0
- package/dist/src/messages/responses/cache-set-remove-element.js +54 -0
- package/dist/src/messages/responses/cache-set-remove-elements.d.ts +65 -0
- package/dist/src/messages/responses/cache-set-remove-elements.js +61 -0
- package/dist/src/messages/responses/cache-set.d.ts +61 -0
- package/dist/src/messages/responses/cache-set.js +54 -0
- package/dist/src/messages/responses/cache-sorted-set-fetch.d.ts +107 -0
- package/dist/src/messages/responses/cache-sorted-set-fetch.js +124 -0
- package/dist/src/messages/responses/cache-sorted-set-get-rank.d.ts +81 -0
- package/dist/src/messages/responses/cache-sorted-set-get-rank.js +78 -0
- package/dist/src/messages/responses/cache-sorted-set-get-score.d.ts +118 -0
- package/dist/src/messages/responses/cache-sorted-set-get-score.js +131 -0
- package/dist/src/messages/responses/cache-sorted-set-get-scores.d.ts +109 -0
- package/dist/src/messages/responses/cache-sorted-set-get-scores.js +148 -0
- package/dist/src/messages/responses/cache-sorted-set-increment-score.d.ts +69 -0
- package/dist/src/messages/responses/cache-sorted-set-increment-score.js +68 -0
- package/dist/src/messages/responses/cache-sorted-set-put-element.d.ts +61 -0
- package/dist/src/messages/responses/cache-sorted-set-put-element.js +54 -0
- package/dist/src/messages/responses/cache-sorted-set-put-elements.d.ts +61 -0
- package/dist/src/messages/responses/cache-sorted-set-put-elements.js +54 -0
- package/dist/src/messages/responses/cache-sorted-set-remove-element.d.ts +61 -0
- package/dist/src/messages/responses/cache-sorted-set-remove-element.js +54 -0
- package/dist/src/messages/responses/cache-sorted-set-remove-elements.d.ts +61 -0
- package/dist/src/messages/responses/cache-sorted-set-remove-elements.js +54 -0
- package/dist/src/messages/responses/create-cache.d.ts +77 -0
- package/dist/src/messages/responses/create-cache.js +61 -0
- package/dist/src/messages/responses/create-signing-key.d.ts +71 -0
- package/dist/src/messages/responses/create-signing-key.js +76 -0
- package/dist/src/messages/responses/delete-cache.d.ts +61 -0
- package/dist/src/messages/responses/delete-cache.js +54 -0
- package/dist/src/messages/responses/generate-api-token.d.ts +50 -0
- package/dist/src/messages/responses/generate-api-token.js +52 -0
- package/dist/src/messages/responses/grpc-response-types.d.ts +41 -0
- package/dist/src/messages/responses/grpc-response-types.js +53 -0
- package/dist/src/messages/responses/list-caches.d.ts +70 -0
- package/dist/src/messages/responses/list-caches.js +69 -0
- package/dist/src/messages/responses/list-signing-keys.d.ts +68 -0
- package/dist/src/messages/responses/list-signing-keys.js +68 -0
- package/dist/src/messages/responses/response-base.d.ts +43 -0
- package/dist/src/messages/responses/response-base.js +50 -0
- package/dist/src/messages/responses/revoke-signing-key.d.ts +61 -0
- package/dist/src/messages/responses/revoke-signing-key.js +54 -0
- package/dist/src/messages/responses/topic-item.d.ts +27 -0
- package/dist/src/messages/responses/topic-item.js +43 -0
- package/dist/src/messages/responses/topic-publish.d.ts +61 -0
- package/dist/src/messages/responses/topic-publish.js +54 -0
- package/dist/src/messages/responses/topic-subscribe.d.ts +69 -0
- package/dist/src/messages/responses/topic-subscribe.js +72 -0
- package/dist/src/messages/signing-key.d.ts +9 -0
- package/dist/src/messages/signing-key.js +21 -0
- package/dist/src/utils/cache-call-options.d.ts +99 -0
- package/dist/src/utils/cache-call-options.js +9 -0
- package/dist/src/utils/collection-ttl.d.ts +78 -0
- package/dist/src/utils/collection-ttl.js +102 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/dist/src/utils/index.js +20 -0
- package/dist/src/utils/topic-call-options.d.ts +19 -0
- package/dist/src/utils/topic-call-options.js +3 -0
- package/package.json +53 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.normalizeSdkError = void 0;
|
4
|
+
const errors_1 = require("./errors");
|
5
|
+
function normalizeSdkError(error) {
|
6
|
+
if (error instanceof errors_1.SdkError) {
|
7
|
+
return error;
|
8
|
+
}
|
9
|
+
return new errors_1.UnknownError(error.message);
|
10
|
+
}
|
11
|
+
exports.normalizeSdkError = normalizeSdkError;
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZXJyb3JzL2Vycm9yLXV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFDQUFnRDtBQUVoRCxTQUFnQixpQkFBaUIsQ0FBQyxLQUFZO0lBQzVDLElBQUksS0FBSyxZQUFZLGlCQUFRLEVBQUU7UUFDN0IsT0FBTyxLQUFLLENBQUM7S0FDZDtJQUNELE9BQU8sSUFBSSxxQkFBWSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUN6QyxDQUFDO0FBTEQsOENBS0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1Nka0Vycm9yLCBVbmtub3duRXJyb3J9IGZyb20gJy4vZXJyb3JzJztcblxuZXhwb3J0IGZ1bmN0aW9uIG5vcm1hbGl6ZVNka0Vycm9yKGVycm9yOiBFcnJvcik6IFNka0Vycm9yIHtcbiAgaWYgKGVycm9yIGluc3RhbmNlb2YgU2RrRXJyb3IpIHtcbiAgICByZXR1cm4gZXJyb3I7XG4gIH1cbiAgcmV0dXJuIG5ldyBVbmtub3duRXJyb3IoZXJyb3IubWVzc2FnZSk7XG59XG4iXX0=
|
@@ -0,0 +1,140 @@
|
|
1
|
+
export declare enum MomentoErrorCode {
|
2
|
+
INVALID_ARGUMENT_ERROR = "INVALID_ARGUMENT_ERROR",
|
3
|
+
UNKNOWN_SERVICE_ERROR = "UNKNOWN_SERVICE_ERROR",
|
4
|
+
ALREADY_EXISTS_ERROR = "ALREADY_EXISTS_ERROR",
|
5
|
+
NOT_FOUND_ERROR = "NOT_FOUND_ERROR",
|
6
|
+
INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
|
7
|
+
PERMISSION_ERROR = "PERMISSION_ERROR",
|
8
|
+
AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
|
9
|
+
CANCELLED_ERROR = "CANCELLED_ERROR",
|
10
|
+
LIMIT_EXCEEDED_ERROR = "LIMIT_EXCEEDED_ERROR",
|
11
|
+
BAD_REQUEST_ERROR = "BAD_REQUEST_ERROR",
|
12
|
+
TIMEOUT_ERROR = "TIMEOUT_ERROR",
|
13
|
+
SERVER_UNAVAILABLE = "SERVER_UNAVAILABLE",
|
14
|
+
CLIENT_RESOURCE_EXHAUSTED = "CLIENT_RESOURCE_EXHAUSTED",
|
15
|
+
FAILED_PRECONDITION_ERROR = "FAILED_PRECONDITION_ERROR",
|
16
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
17
|
+
}
|
18
|
+
export declare class MomentoGrpcErrorDetails {
|
19
|
+
readonly code: number;
|
20
|
+
readonly details: string;
|
21
|
+
readonly metadata?: object;
|
22
|
+
constructor(code: number, details: string, metadata?: object);
|
23
|
+
}
|
24
|
+
export declare class MomentoErrorTransportDetails {
|
25
|
+
readonly grpc: MomentoGrpcErrorDetails;
|
26
|
+
constructor(grpc: MomentoGrpcErrorDetails);
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Base class for all errors thrown by the sdk
|
30
|
+
*/
|
31
|
+
export declare abstract class SdkError extends Error {
|
32
|
+
protected readonly _errorCode: MomentoErrorCode;
|
33
|
+
protected readonly _messageWrapper: string;
|
34
|
+
private readonly _transportDetails;
|
35
|
+
constructor(message: string, code?: number, metadata?: object | undefined, stack?: string | undefined);
|
36
|
+
wrappedErrorMessage(): string;
|
37
|
+
errorCode(): MomentoErrorCode;
|
38
|
+
transportDetails(): MomentoErrorTransportDetails;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Error that occurs when trying to create a cache with the same name as an existing cache. To resolve this error,
|
42
|
+
* either delete the existing cache and make a new one, or change the name of the cache you are trying to create to
|
43
|
+
* one that doesn't already exist
|
44
|
+
*/
|
45
|
+
export declare class AlreadyExistsError extends SdkError {
|
46
|
+
_errorCode: MomentoErrorCode;
|
47
|
+
_messageWrapper: string;
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* Error when authentication with Cache Service fails
|
51
|
+
*/
|
52
|
+
export declare class AuthenticationError extends SdkError {
|
53
|
+
_errorCode: MomentoErrorCode;
|
54
|
+
_messageWrapper: string;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* Error raised in response to an invalid request
|
58
|
+
*/
|
59
|
+
export declare class BadRequestError extends SdkError {
|
60
|
+
_errorCode: MomentoErrorCode;
|
61
|
+
_messageWrapper: string;
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* Error when an operation with Cache Service was cancelled
|
65
|
+
*/
|
66
|
+
export declare class CancelledError extends SdkError {
|
67
|
+
_errorCode: MomentoErrorCode;
|
68
|
+
_messageWrapper: string;
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Error raised when system in not in a state required for the operation's success
|
72
|
+
*/
|
73
|
+
export declare class FailedPreconditionError extends SdkError {
|
74
|
+
_errorCode: MomentoErrorCode;
|
75
|
+
_messageWrapper: string;
|
76
|
+
}
|
77
|
+
/**
|
78
|
+
* Cache Service encountered an unexpected exception while trying to fulfill the request
|
79
|
+
*/
|
80
|
+
export declare class InternalServerError extends SdkError {
|
81
|
+
_errorCode: MomentoErrorCode;
|
82
|
+
_messageWrapper: string;
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* Represents errors thrown when invalid parameters are passed to the Momento Cache
|
86
|
+
*/
|
87
|
+
export declare class InvalidArgumentError extends SdkError {
|
88
|
+
_errorCode: MomentoErrorCode;
|
89
|
+
_messageWrapper: string;
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* Error when calls are throttled due to request limit rate
|
93
|
+
*/
|
94
|
+
export declare class LimitExceededError extends SdkError {
|
95
|
+
_errorCode: MomentoErrorCode;
|
96
|
+
_messageWrapper: string;
|
97
|
+
}
|
98
|
+
/**
|
99
|
+
* Error that occurs when trying to get a cache that doesn't exist. To resolve, make sure that the cache you are trying
|
100
|
+
* to get exists. If it doesn't create it first and then try again
|
101
|
+
*/
|
102
|
+
export declare class NotFoundError extends SdkError {
|
103
|
+
_errorCode: MomentoErrorCode;
|
104
|
+
_messageWrapper: string;
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* Insufficient permissions to perform an operation on Cache Service
|
108
|
+
*/
|
109
|
+
export declare class PermissionError extends SdkError {
|
110
|
+
_errorCode: MomentoErrorCode;
|
111
|
+
_messageWrapper: string;
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* Server was unable to handle the request.
|
115
|
+
*/
|
116
|
+
export declare class ServerUnavailableError extends SdkError {
|
117
|
+
_errorCode: MomentoErrorCode;
|
118
|
+
_messageWrapper: string;
|
119
|
+
}
|
120
|
+
/**
|
121
|
+
* Error when an operation did not complete in time
|
122
|
+
*/
|
123
|
+
export declare class TimeoutError extends SdkError {
|
124
|
+
_errorCode: MomentoErrorCode;
|
125
|
+
_messageWrapper: string;
|
126
|
+
}
|
127
|
+
/**
|
128
|
+
* Error raised when the underlying cause in unknown
|
129
|
+
*/
|
130
|
+
export declare class UnknownError extends SdkError {
|
131
|
+
_errorCode: MomentoErrorCode;
|
132
|
+
_messageWrapper: string;
|
133
|
+
}
|
134
|
+
/**
|
135
|
+
* Error raised when the service returns an unknown response
|
136
|
+
*/
|
137
|
+
export declare class UnknownServiceError extends SdkError {
|
138
|
+
_errorCode: MomentoErrorCode;
|
139
|
+
_messageWrapper: string;
|
140
|
+
}
|
@@ -0,0 +1,229 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UnknownServiceError = exports.UnknownError = exports.TimeoutError = exports.ServerUnavailableError = exports.PermissionError = exports.NotFoundError = exports.LimitExceededError = exports.InvalidArgumentError = exports.InternalServerError = exports.FailedPreconditionError = exports.CancelledError = exports.BadRequestError = exports.AuthenticationError = exports.AlreadyExistsError = exports.SdkError = exports.MomentoErrorTransportDetails = exports.MomentoGrpcErrorDetails = exports.MomentoErrorCode = void 0;
|
4
|
+
var MomentoErrorCode;
|
5
|
+
(function (MomentoErrorCode) {
|
6
|
+
// Invalid argument passed to Momento client
|
7
|
+
MomentoErrorCode["INVALID_ARGUMENT_ERROR"] = "INVALID_ARGUMENT_ERROR";
|
8
|
+
// Service returned an unknown response
|
9
|
+
MomentoErrorCode["UNKNOWN_SERVICE_ERROR"] = "UNKNOWN_SERVICE_ERROR";
|
10
|
+
// Cache with specified name already exists
|
11
|
+
MomentoErrorCode["ALREADY_EXISTS_ERROR"] = "ALREADY_EXISTS_ERROR";
|
12
|
+
// Cache with specified name doesn't exist
|
13
|
+
MomentoErrorCode["NOT_FOUND_ERROR"] = "NOT_FOUND_ERROR";
|
14
|
+
// An unexpected error occurred while trying to fulfill the request
|
15
|
+
MomentoErrorCode["INTERNAL_SERVER_ERROR"] = "INTERNAL_SERVER_ERROR";
|
16
|
+
// Insufficient permissions to perform operation
|
17
|
+
MomentoErrorCode["PERMISSION_ERROR"] = "PERMISSION_ERROR";
|
18
|
+
// Invalid authentication credentials to connect to cache service
|
19
|
+
MomentoErrorCode["AUTHENTICATION_ERROR"] = "AUTHENTICATION_ERROR";
|
20
|
+
// Request was cancelled by the server
|
21
|
+
MomentoErrorCode["CANCELLED_ERROR"] = "CANCELLED_ERROR";
|
22
|
+
// Request rate, bandwidth, or object size exceeded the limits for the account
|
23
|
+
MomentoErrorCode["LIMIT_EXCEEDED_ERROR"] = "LIMIT_EXCEEDED_ERROR";
|
24
|
+
// Request was invalid
|
25
|
+
MomentoErrorCode["BAD_REQUEST_ERROR"] = "BAD_REQUEST_ERROR";
|
26
|
+
// Client's configured timeout was exceeded
|
27
|
+
MomentoErrorCode["TIMEOUT_ERROR"] = "TIMEOUT_ERROR";
|
28
|
+
// Server was unable to handle the request
|
29
|
+
MomentoErrorCode["SERVER_UNAVAILABLE"] = "SERVER_UNAVAILABLE";
|
30
|
+
// A client resource (most likely memory) was exhausted
|
31
|
+
MomentoErrorCode["CLIENT_RESOURCE_EXHAUSTED"] = "CLIENT_RESOURCE_EXHAUSTED";
|
32
|
+
// System is not in a state required for the operation's execution
|
33
|
+
MomentoErrorCode["FAILED_PRECONDITION_ERROR"] = "FAILED_PRECONDITION_ERROR";
|
34
|
+
// Unknown error has occurred
|
35
|
+
MomentoErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
36
|
+
})(MomentoErrorCode = exports.MomentoErrorCode || (exports.MomentoErrorCode = {}));
|
37
|
+
class MomentoGrpcErrorDetails {
|
38
|
+
constructor(code, details, metadata) {
|
39
|
+
this.code = code;
|
40
|
+
this.details = details;
|
41
|
+
this.metadata = metadata;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
exports.MomentoGrpcErrorDetails = MomentoGrpcErrorDetails;
|
45
|
+
class MomentoErrorTransportDetails {
|
46
|
+
constructor(grpc) {
|
47
|
+
this.grpc = grpc;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
exports.MomentoErrorTransportDetails = MomentoErrorTransportDetails;
|
51
|
+
/**
|
52
|
+
* Base class for all errors thrown by the sdk
|
53
|
+
*/
|
54
|
+
class SdkError extends Error {
|
55
|
+
constructor(message, code = 0, metadata = undefined, stack = undefined) {
|
56
|
+
super(message);
|
57
|
+
const grpcDetails = new MomentoGrpcErrorDetails(code, message, metadata);
|
58
|
+
this._transportDetails = new MomentoErrorTransportDetails(grpcDetails);
|
59
|
+
this.stack = stack !== null && stack !== void 0 ? stack : undefined;
|
60
|
+
}
|
61
|
+
wrappedErrorMessage() {
|
62
|
+
return `${this._messageWrapper}: ${this.message}`;
|
63
|
+
}
|
64
|
+
errorCode() {
|
65
|
+
return this._errorCode;
|
66
|
+
}
|
67
|
+
transportDetails() {
|
68
|
+
return this._transportDetails;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
exports.SdkError = SdkError;
|
72
|
+
/**
|
73
|
+
* Error that occurs when trying to create a cache with the same name as an existing cache. To resolve this error,
|
74
|
+
* either delete the existing cache and make a new one, or change the name of the cache you are trying to create to
|
75
|
+
* one that doesn't already exist
|
76
|
+
*/
|
77
|
+
class AlreadyExistsError extends SdkError {
|
78
|
+
constructor() {
|
79
|
+
super(...arguments);
|
80
|
+
this._errorCode = MomentoErrorCode.ALREADY_EXISTS_ERROR;
|
81
|
+
this._messageWrapper = 'A cache with the specified name already exists. To resolve this error, either delete the existing cache and make a new one, or use a different name';
|
82
|
+
}
|
83
|
+
}
|
84
|
+
exports.AlreadyExistsError = AlreadyExistsError;
|
85
|
+
/**
|
86
|
+
* Error when authentication with Cache Service fails
|
87
|
+
*/
|
88
|
+
class AuthenticationError extends SdkError {
|
89
|
+
constructor() {
|
90
|
+
super(...arguments);
|
91
|
+
this._errorCode = MomentoErrorCode.AUTHENTICATION_ERROR;
|
92
|
+
this._messageWrapper = 'Invalid authentication credentials to connect to cache service';
|
93
|
+
}
|
94
|
+
}
|
95
|
+
exports.AuthenticationError = AuthenticationError;
|
96
|
+
/**
|
97
|
+
* Error raised in response to an invalid request
|
98
|
+
*/
|
99
|
+
class BadRequestError extends SdkError {
|
100
|
+
constructor() {
|
101
|
+
super(...arguments);
|
102
|
+
this._errorCode = MomentoErrorCode.BAD_REQUEST_ERROR;
|
103
|
+
this._messageWrapper = 'The request was invalid; please contact us at support@momentohq.com';
|
104
|
+
}
|
105
|
+
}
|
106
|
+
exports.BadRequestError = BadRequestError;
|
107
|
+
/**
|
108
|
+
* Error when an operation with Cache Service was cancelled
|
109
|
+
*/
|
110
|
+
class CancelledError extends SdkError {
|
111
|
+
constructor() {
|
112
|
+
super(...arguments);
|
113
|
+
this._errorCode = MomentoErrorCode.CANCELLED_ERROR;
|
114
|
+
this._messageWrapper = 'The request was cancelled by the server; please contact us at support@momentohq.com';
|
115
|
+
}
|
116
|
+
}
|
117
|
+
exports.CancelledError = CancelledError;
|
118
|
+
/**
|
119
|
+
* Error raised when system in not in a state required for the operation's success
|
120
|
+
*/
|
121
|
+
class FailedPreconditionError extends SdkError {
|
122
|
+
constructor() {
|
123
|
+
super(...arguments);
|
124
|
+
this._errorCode = MomentoErrorCode.FAILED_PRECONDITION_ERROR;
|
125
|
+
this._messageWrapper = "System is not in a state required for the operation's execution";
|
126
|
+
}
|
127
|
+
}
|
128
|
+
exports.FailedPreconditionError = FailedPreconditionError;
|
129
|
+
/**
|
130
|
+
* Cache Service encountered an unexpected exception while trying to fulfill the request
|
131
|
+
*/
|
132
|
+
class InternalServerError extends SdkError {
|
133
|
+
constructor() {
|
134
|
+
super(...arguments);
|
135
|
+
this._errorCode = MomentoErrorCode.INTERNAL_SERVER_ERROR;
|
136
|
+
this._messageWrapper = 'An unexpected error occurred while trying to fulfill the request; please contact us at support@momentohq.com';
|
137
|
+
}
|
138
|
+
}
|
139
|
+
exports.InternalServerError = InternalServerError;
|
140
|
+
/**
|
141
|
+
* Represents errors thrown when invalid parameters are passed to the Momento Cache
|
142
|
+
*/
|
143
|
+
class InvalidArgumentError extends SdkError {
|
144
|
+
constructor() {
|
145
|
+
super(...arguments);
|
146
|
+
this._errorCode = MomentoErrorCode.INVALID_ARGUMENT_ERROR;
|
147
|
+
this._messageWrapper = 'Invalid argument passed to Momento client';
|
148
|
+
}
|
149
|
+
}
|
150
|
+
exports.InvalidArgumentError = InvalidArgumentError;
|
151
|
+
/**
|
152
|
+
* Error when calls are throttled due to request limit rate
|
153
|
+
*/
|
154
|
+
class LimitExceededError extends SdkError {
|
155
|
+
constructor() {
|
156
|
+
super(...arguments);
|
157
|
+
this._errorCode = MomentoErrorCode.LIMIT_EXCEEDED_ERROR;
|
158
|
+
this._messageWrapper = 'Request rate, bandwidth, or object size exceeded the limits for this account. To resolve this error, reduce your usage as appropriate or contact us at support@momentohq.com to request a limit increase';
|
159
|
+
}
|
160
|
+
}
|
161
|
+
exports.LimitExceededError = LimitExceededError;
|
162
|
+
/**
|
163
|
+
* Error that occurs when trying to get a cache that doesn't exist. To resolve, make sure that the cache you are trying
|
164
|
+
* to get exists. If it doesn't create it first and then try again
|
165
|
+
*/
|
166
|
+
class NotFoundError extends SdkError {
|
167
|
+
constructor() {
|
168
|
+
super(...arguments);
|
169
|
+
this._errorCode = MomentoErrorCode.NOT_FOUND_ERROR;
|
170
|
+
this._messageWrapper = 'A cache with the specified name does not exist. To resolve this error, make sure you have created the cache before attempting to use it';
|
171
|
+
}
|
172
|
+
}
|
173
|
+
exports.NotFoundError = NotFoundError;
|
174
|
+
/**
|
175
|
+
* Insufficient permissions to perform an operation on Cache Service
|
176
|
+
*/
|
177
|
+
class PermissionError extends SdkError {
|
178
|
+
constructor() {
|
179
|
+
super(...arguments);
|
180
|
+
this._errorCode = MomentoErrorCode.PERMISSION_ERROR;
|
181
|
+
this._messageWrapper = 'Insufficient permissions to perform an operation on a cache';
|
182
|
+
}
|
183
|
+
}
|
184
|
+
exports.PermissionError = PermissionError;
|
185
|
+
/**
|
186
|
+
* Server was unable to handle the request.
|
187
|
+
*/
|
188
|
+
class ServerUnavailableError extends SdkError {
|
189
|
+
constructor() {
|
190
|
+
super(...arguments);
|
191
|
+
this._errorCode = MomentoErrorCode.SERVER_UNAVAILABLE;
|
192
|
+
this._messageWrapper = 'The server was unable to handle the request; consider retrying. If the error persists, please contact us at support@momentohq.com';
|
193
|
+
}
|
194
|
+
}
|
195
|
+
exports.ServerUnavailableError = ServerUnavailableError;
|
196
|
+
/**
|
197
|
+
* Error when an operation did not complete in time
|
198
|
+
*/
|
199
|
+
class TimeoutError extends SdkError {
|
200
|
+
constructor() {
|
201
|
+
super(...arguments);
|
202
|
+
this._errorCode = MomentoErrorCode.TIMEOUT_ERROR;
|
203
|
+
this._messageWrapper = "The client's configured timeout was exceeded; you may need to use a Configuration with more lenient timeouts";
|
204
|
+
}
|
205
|
+
}
|
206
|
+
exports.TimeoutError = TimeoutError;
|
207
|
+
/**
|
208
|
+
* Error raised when the underlying cause in unknown
|
209
|
+
*/
|
210
|
+
class UnknownError extends SdkError {
|
211
|
+
constructor() {
|
212
|
+
super(...arguments);
|
213
|
+
this._errorCode = MomentoErrorCode.UNKNOWN_ERROR;
|
214
|
+
this._messageWrapper = 'Unknown error has occurred';
|
215
|
+
}
|
216
|
+
}
|
217
|
+
exports.UnknownError = UnknownError;
|
218
|
+
/**
|
219
|
+
* Error raised when the service returns an unknown response
|
220
|
+
*/
|
221
|
+
class UnknownServiceError extends SdkError {
|
222
|
+
constructor() {
|
223
|
+
super(...arguments);
|
224
|
+
this._errorCode = MomentoErrorCode.UNKNOWN_SERVICE_ERROR;
|
225
|
+
this._messageWrapper = 'Service returned an unknown response; please contact us at support@momentohq.com';
|
226
|
+
}
|
227
|
+
}
|
228
|
+
exports.UnknownServiceError = UnknownServiceError;
|
229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vycm9yQ29kZS5USU1FT1VUX0VSUk9SO1xuICBfbWVzc2FnZVdyYXBwZXIgPVxuICAgIFwiVGhlIGNsaWVudCdzIGNvbmZpZ3VyZWQgdGltZW91dCB3YXMgZXhjZWVkZWQ7IHlvdSBtYXkgbmVlZCB0byB1c2UgYSBDb25maWd1cmF0aW9uIHdpdGggbW9yZSBsZW5pZW50IHRpbWVvdXRzXCI7XG59XG5cbi8qKlxuICogRXJyb3IgcmFpc2VkIHdoZW4gdGhlIHVuZGVybHlpbmcgY2F1c2UgaW4gdW5rbm93blxuICovXG5leHBvcnQgY2xhc3MgVW5rbm93bkVycm9yIGV4dGVuZHMgU2RrRXJyb3Ige1xuICBfZXJyb3JDb2RlID0gTW9tZW50b0Vycm9yQ29kZS5VTktOT1dOX0VSUk9SO1xuICBfbWVzc2FnZVdyYXBwZXIgPSAnVW5rbm93biBlcnJvciBoYXMgb2NjdXJyZWQnO1xufVxuXG4vKipcbiAqIEVycm9yIHJhaXNlZCB3aGVuIHRoZSBzZXJ2aWNlIHJldHVybnMgYW4gdW5rbm93biByZXNwb25zZVxuICovXG5leHBvcnQgY2xhc3MgVW5rbm93blNlcnZpY2VFcnJvciBleHRlbmRzIFNka0Vycm9yIHtcbiAgX2Vycm9yQ29kZSA9IE1vbWVudG9FcnJvckNvZGUuVU5LTk9XTl9TRVJWSUNFX0VSUk9SO1xuICBfbWVzc2FnZVdyYXBwZXIgPVxuICAgICdTZXJ2aWNlIHJldHVybmVkIGFuIHVua25vd24gcmVzcG9uc2U7IHBsZWFzZSBjb250YWN0IHVzIGF0IHN1cHBvcnRAbW9tZW50b2hxLmNvbSc7XG59XG4iXX0=
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./error-utils"), exports);
|
18
|
+
__exportStar(require("./errors"), exports);
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZXJyb3JzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxnREFBOEI7QUFDOUIsMkNBQXlCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lcnJvci11dGlscyc7XG5leHBvcnQgKiBmcm9tICcuL2Vycm9ycyc7XG4iXX0=
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import * as CacheGet from './messages/responses/cache-get';
|
2
|
+
import * as CacheListConcatenateBack from './messages/responses/cache-list-concatenate-back';
|
3
|
+
import * as CacheListConcatenateFront from './messages/responses/cache-list-concatenate-front';
|
4
|
+
import * as CacheListFetch from './messages/responses/cache-list-fetch';
|
5
|
+
import * as CacheListLength from './messages/responses/cache-list-length';
|
6
|
+
import * as CacheListPopBack from './messages/responses/cache-list-pop-back';
|
7
|
+
import * as CacheListPopFront from './messages/responses/cache-list-pop-front';
|
8
|
+
import * as CacheListPushBack from './messages/responses/cache-list-push-back';
|
9
|
+
import * as CacheListPushFront from './messages/responses/cache-list-push-front';
|
10
|
+
import * as CacheListRemoveValue from './messages/responses/cache-list-remove-value';
|
11
|
+
import * as CacheListRetain from './messages/responses/cache-list-retain';
|
12
|
+
import * as CacheSet from './messages/responses/cache-set';
|
13
|
+
import * as CacheDelete from './messages/responses/cache-delete';
|
14
|
+
import * as CacheFlush from './messages/responses/cache-flush';
|
15
|
+
import * as CreateCache from './messages/responses/create-cache';
|
16
|
+
import * as DeleteCache from './messages/responses/delete-cache';
|
17
|
+
import * as ListCaches from './messages/responses/list-caches';
|
18
|
+
import * as CreateSigningKey from './messages/responses/create-signing-key';
|
19
|
+
import * as ListSigningKeys from './messages/responses/list-signing-keys';
|
20
|
+
import * as RevokeSigningKey from './messages/responses/revoke-signing-key';
|
21
|
+
import * as CacheSetFetch from './messages/responses/cache-set-fetch';
|
22
|
+
import * as CacheDictionaryFetch from './messages/responses/cache-dictionary-fetch';
|
23
|
+
import * as CacheDictionarySetField from './messages/responses/cache-dictionary-set-field';
|
24
|
+
import * as CacheDictionarySetFields from './messages/responses/cache-dictionary-set-fields';
|
25
|
+
import * as CacheDictionaryGetField from './messages/responses/cache-dictionary-get-field';
|
26
|
+
import * as CacheDictionaryGetFields from './messages/responses/cache-dictionary-get-fields';
|
27
|
+
import * as CacheDictionaryRemoveField from './messages/responses/cache-dictionary-remove-field';
|
28
|
+
import * as CacheDictionaryRemoveFields from './messages/responses/cache-dictionary-remove-fields';
|
29
|
+
import * as CacheDictionaryIncrement from './messages/responses/cache-dictionary-increment';
|
30
|
+
import * as CacheSetAddElements from './messages/responses/cache-set-add-elements';
|
31
|
+
import * as CacheSetAddElement from './messages/responses/cache-set-add-element';
|
32
|
+
import * as CacheSetRemoveElements from './messages/responses/cache-set-remove-elements';
|
33
|
+
import * as CacheSetRemoveElement from './messages/responses/cache-set-remove-element';
|
34
|
+
import * as CacheIncrement from './messages/responses/cache-increment';
|
35
|
+
import * as CacheSetIfNotExists from './messages/responses/cache-set-if-not-exists';
|
36
|
+
import * as CacheSortedSetPutElement from './messages/responses/cache-sorted-set-put-element';
|
37
|
+
import * as CacheSortedSetPutElements from './messages/responses/cache-sorted-set-put-elements';
|
38
|
+
import * as CacheSortedSetFetch from './messages/responses/cache-sorted-set-fetch';
|
39
|
+
import * as CacheSortedSetGetRank from './messages/responses/cache-sorted-set-get-rank';
|
40
|
+
import * as CacheSortedSetGetScore from './messages/responses/cache-sorted-set-get-score';
|
41
|
+
import * as CacheSortedSetGetScores from './messages/responses/cache-sorted-set-get-scores';
|
42
|
+
import * as CacheSortedSetIncrementScore from './messages/responses/cache-sorted-set-increment-score';
|
43
|
+
import * as CacheSortedSetRemoveElement from './messages/responses/cache-sorted-set-remove-element';
|
44
|
+
import * as CacheSortedSetRemoveElements from './messages/responses/cache-sorted-set-remove-elements';
|
45
|
+
import * as TopicPublish from './messages/responses/topic-publish';
|
46
|
+
import * as TopicSubscribe from './messages/responses/topic-subscribe';
|
47
|
+
import { TopicItem } from './messages/responses/topic-item';
|
48
|
+
import * as GenerateApiToken from './messages/responses/generate-api-token';
|
49
|
+
import { CacheInfo } from './messages/cache-info';
|
50
|
+
import { SubscribeCallOptions, CollectionTtl, SortedSetOrder } from './utils';
|
51
|
+
import { CredentialProvider, StringMomentoTokenProvider, EnvMomentoTokenProvider } from './auth/credential-provider';
|
52
|
+
import { MomentoErrorCode, SdkError, AlreadyExistsError, AuthenticationError, CancelledError, FailedPreconditionError, LimitExceededError, InternalServerError, InvalidArgumentError, UnknownServiceError, ServerUnavailableError, TimeoutError, BadRequestError, PermissionError, NotFoundError, UnknownError } from './errors';
|
53
|
+
export { MomentoLogger, MomentoLoggerFactory, } from './config/logging/momento-logger';
|
54
|
+
export { DefaultMomentoLoggerFactory, DefaultMomentoLogger, DefaultMomentoLoggerLevel, } from './config/logging/default-momento-logger';
|
55
|
+
export { NoopMomentoLogger, NoopMomentoLoggerFactory, } from './config/logging/noop-momento-logger';
|
56
|
+
export { SetOptions, SetIfNotExistsOptions, IncrementOptions, } from './internal/clients/cache/ICacheClient';
|
57
|
+
export { CollectionTtl, SortedSetOrder, CredentialProvider, StringMomentoTokenProvider, EnvMomentoTokenProvider, CacheGet, CacheListConcatenateBack, CacheListConcatenateFront, CacheListFetch, CacheListLength, CacheListPopBack, CacheListPopFront, CacheListPushBack, CacheListPushFront, CacheListRemoveValue, CacheListRetain, CacheSet, CacheSetIfNotExists, CacheDelete, CacheFlush, CreateCache, DeleteCache, ListCaches, CacheIncrement, CreateSigningKey, ListSigningKeys, RevokeSigningKey, CacheSetFetch, CacheDictionaryFetch, CacheDictionarySetField, CacheDictionarySetFields, CacheDictionaryGetField, CacheDictionaryGetFields, CacheDictionaryRemoveField, CacheDictionaryRemoveFields, CacheDictionaryIncrement, CacheSetAddElements, CacheSetAddElement, CacheSetRemoveElements, CacheSetRemoveElement, CacheSortedSetPutElement, CacheSortedSetPutElements, CacheSortedSetFetch, CacheSortedSetGetRank, CacheSortedSetGetScore, CacheSortedSetGetScores, CacheSortedSetIncrementScore, CacheSortedSetRemoveElement, CacheSortedSetRemoveElements, CacheInfo, TopicPublish, TopicSubscribe, TopicItem, SubscribeCallOptions, GenerateApiToken, MomentoErrorCode, SdkError, AlreadyExistsError, AuthenticationError, CancelledError, FailedPreconditionError, LimitExceededError, InternalServerError, InvalidArgumentError, UnknownServiceError, ServerUnavailableError, TimeoutError, BadRequestError, PermissionError, NotFoundError, UnknownError, };
|