@go-avro/avro-js 0.0.2-beta.3 → 0.0.2-beta.4
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.
|
@@ -22,5 +22,5 @@ export declare class AvroQueryClient {
|
|
|
22
22
|
password: string;
|
|
23
23
|
}, cancelToken?: CancelToken): Promise<Boolean>;
|
|
24
24
|
logout(cancelToken?: CancelToken): Promise<void>;
|
|
25
|
-
fetchJobs(companyGuid: string, amt?: number, knownIds?: string[], unknownIds?: string[], keyword?: string, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
25
|
+
fetchJobs(companyGuid: string, amt?: number, knownIds?: string[], unknownIds?: string[], keyword?: string, offset?: number, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
26
26
|
}
|
|
@@ -197,7 +197,7 @@ export class AvroQueryClient {
|
|
|
197
197
|
throw new StandardError(500, 'Logout failed');
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
fetchJobs(companyGuid, amt = 50, knownIds = [], unknownIds = [], keyword = '', cancelToken, headers = {}) {
|
|
200
|
+
fetchJobs(companyGuid, amt = 50, knownIds = [], unknownIds = [], keyword = '', offset = 0, cancelToken, headers = {}) {
|
|
201
201
|
const body = {
|
|
202
202
|
amt,
|
|
203
203
|
known_ids: knownIds,
|
|
@@ -207,7 +207,7 @@ export class AvroQueryClient {
|
|
|
207
207
|
if (!companyGuid) {
|
|
208
208
|
return Promise.reject(new StandardError(400, 'Company GUID is required'));
|
|
209
209
|
}
|
|
210
|
-
return this._fetch('POST', `/company/${companyGuid}/jobs?amt=${amt}`, body, cancelToken, headers)
|
|
210
|
+
return this._fetch('POST', `/company/${companyGuid}/jobs?amt=${amt}&offset=${offset}`, body, cancelToken, headers)
|
|
211
211
|
.then(response => {
|
|
212
212
|
if (!response || !Array.isArray(response)) {
|
|
213
213
|
throw new StandardError(400, 'Invalid jobs response');
|