@go-avro/avro-js 0.0.2-beta.11 → 0.0.2-beta.13
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.
|
@@ -23,6 +23,6 @@ export declare class AvroQueryClient {
|
|
|
23
23
|
}, cancelToken?: CancelToken): Promise<Boolean>;
|
|
24
24
|
logout(cancelToken?: CancelToken): Promise<void>;
|
|
25
25
|
fetchJobs(companyGuid: string, amt?: number, knownIds?: string[], unknownIds?: string[], keyword?: string, offset?: number, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
26
|
-
fetchEvents(companyGuid: string, amt?: number,
|
|
26
|
+
fetchEvents(companyGuid: string, amt?: number, knownIds?: string[], unknownIds?: string[], keyword?: string, offset?: number, unbilled?: boolean, billed?: boolean, paid?: boolean, jobId?: string | null, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
27
27
|
fetchBills(companyGuid: string, amt?: number, known_ids?: string[], unknown_ids?: string[], keyword?: string, offset?: number, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
28
28
|
}
|
|
@@ -112,7 +112,7 @@ export class AvroQueryClient {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
catch (error) {
|
|
115
|
-
|
|
115
|
+
throw new StandardError(0, `Error checking cancellation (${typeof cancelToken}): ${error}`);
|
|
116
116
|
}
|
|
117
117
|
return null;
|
|
118
118
|
};
|
|
@@ -224,12 +224,13 @@ export class AvroQueryClient {
|
|
|
224
224
|
throw new StandardError(500, 'Failed to fetch jobs');
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
fetchEvents(companyGuid, amt = 50,
|
|
227
|
+
fetchEvents(companyGuid, amt = 50, knownIds = [], unknownIds = [], keyword = '', offset = 0, unbilled = true, billed = true, paid = true, jobId = null, cancelToken, headers = {}) {
|
|
228
228
|
const body = {
|
|
229
229
|
amt,
|
|
230
|
-
known_ids,
|
|
231
|
-
unknown_ids,
|
|
230
|
+
known_ids: knownIds,
|
|
231
|
+
unknown_ids: unknownIds,
|
|
232
232
|
query: keyword,
|
|
233
|
+
job_id: jobId,
|
|
233
234
|
};
|
|
234
235
|
if (!companyGuid) {
|
|
235
236
|
return Promise.reject(new StandardError(400, 'Company GUID is required'));
|