creem-datafast 0.1.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,43 @@
1
+ import { I as IdempotencyStore, c as CreemDataFastOptions, C as CreemDataFastClient } from './types-4FOgdKj_.js';
2
+ export { d as CheckoutCustomFieldInput, e as CheckoutCustomerInput, f as CheckoutMetadata, g as CreateCheckoutContext, h as CreateCheckoutParams, i as CreateCheckoutResult, j as CreemCheckoutCreateRequest, k as CreemCheckoutResponse, l as CreemSdkClientLike, D as DataFastPaymentPayload, m as DataFastTracking, H as HandleWebhookParams, n as HandleWebhookResult, o as HeadersLike, p as IgnoredWebhookResult, L as LoggerLike, M as MetadataValue, P as ProcessedWebhookResult, R as RequestLike, q as RetryConfig, S as SupportedWebhookEvent } from './types-4FOgdKj_.js';
3
+
4
+ declare class CreemDataFastError extends Error {
5
+ constructor(message: string, options?: ErrorOptions);
6
+ }
7
+ declare class InvalidCreemSignatureError extends CreemDataFastError {
8
+ }
9
+ declare class MissingTrackingError extends CreemDataFastError {
10
+ }
11
+ declare class DataFastRequestError extends CreemDataFastError {
12
+ readonly details: {
13
+ status?: number;
14
+ statusText?: string;
15
+ requestId?: string;
16
+ retryable: boolean;
17
+ responseBody?: unknown;
18
+ };
19
+ constructor(message: string, details: {
20
+ status?: number;
21
+ statusText?: string;
22
+ requestId?: string;
23
+ retryable: boolean;
24
+ responseBody?: unknown;
25
+ }, errorOptions?: ErrorOptions);
26
+ get status(): number | undefined;
27
+ get statusText(): string | undefined;
28
+ get requestId(): string | undefined;
29
+ get retryable(): boolean;
30
+ get responseBody(): unknown;
31
+ }
32
+
33
+ declare class MemoryIdempotencyStore implements IdempotencyStore {
34
+ private readonly values;
35
+ private getActiveEntry;
36
+ claim(key: string, ttlSeconds?: number): Promise<boolean>;
37
+ complete(key: string, ttlSeconds?: number): Promise<void>;
38
+ release(key: string): Promise<void>;
39
+ }
40
+
41
+ declare function createCreemDataFast(options: CreemDataFastOptions): CreemDataFastClient;
42
+
43
+ export { CreemDataFastClient, CreemDataFastError, CreemDataFastOptions, DataFastRequestError, IdempotencyStore, InvalidCreemSignatureError, MemoryIdempotencyStore, MissingTrackingError, createCreemDataFast };