@serialized/serialized-client
Advanced tools
Comparing version 3.12.2 to 3.12.3
import { AxiosInstance, AxiosRequestConfig } from "axios"; | ||
import { SerializedConfig } from "./"; | ||
export declare class BaseClient { | ||
readonly axiosClient: AxiosInstance; | ||
private config; | ||
constructor(config: any); | ||
constructor(config: SerializedConfig); | ||
protected axiosConfig(tenantId?: string): AxiosRequestConfig; | ||
} |
@@ -17,2 +17,4 @@ "use strict"; | ||
Accept: 'application/json', | ||
'Serialized-Access-Key': config.accessKey, | ||
'Serialized-Secret-Access-Key': config.secretAccessKey | ||
} | ||
@@ -42,6 +44,3 @@ }); | ||
return { | ||
headers: Object.assign({ | ||
'Serialized-Access-Key': this.config.accessKey, | ||
'Serialized-Secret-Access-Key': this.config.secretAccessKey | ||
}, additionalHeaders) | ||
headers: Object.assign({}, additionalHeaders) | ||
}; | ||
@@ -48,0 +47,0 @@ }; |
@@ -50,9 +50,2 @@ import { BaseClient } from "./"; | ||
} | ||
export interface SequenceNumberTracker { | ||
readonly lastConsumedSequenceNumber: number; | ||
updateLastConsumedSequenceNumber(currentSequenceNumber: number): void; | ||
} | ||
export interface FeedEntryHandler { | ||
handle(feedEntry: FeedEntry): void; | ||
} | ||
export declare class FeedsClient extends BaseClient { | ||
@@ -59,0 +52,0 @@ loadOverview(): Promise<LoadFeedsOverviewResponse>; |
import { BaseClient } from "./"; | ||
export declare type ProjectionSort = 'projectionId' | 'reference' | 'createdAt' | 'updatedAt' | '-projectionId' | '-reference' | '-createdAt' | '-updatedAt' | '+projectionId' | '+reference' | '+createdAt' | '+updatedAt'; | ||
export interface ListSingleProjectionOptions { | ||
reference?: string; | ||
tenantId?: string; | ||
sort?: string; | ||
sort?: ProjectionSort; | ||
skip?: number; | ||
@@ -6,0 +8,0 @@ limit?: number; |
@@ -163,2 +163,5 @@ "use strict"; | ||
} | ||
if (options.reference !== undefined) { | ||
params.set('reference', options.reference); | ||
} | ||
if (options.skip !== undefined) { | ||
@@ -165,0 +168,0 @@ params.set('skip', options.skip.toString()); |
interface SerializedConfig { | ||
readonly accessKey: string; | ||
readonly secretAccessKey: string; | ||
readonly client?: { | ||
baseUrl?: string; | ||
}; | ||
} | ||
export { SerializedConfig }; |
@@ -6,3 +6,3 @@ { | ||
"author": "Mattias Holmqvist", | ||
"version": "3.12.2", | ||
"version": "3.12.3", | ||
"main": "dist/index.js", | ||
@@ -9,0 +9,0 @@ "types": "dist/index.d.ts", |
79103
1610