@eway-crm/connector 1.0.255 → 1.0.256
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.
|
@@ -39,7 +39,7 @@ export declare class ApiConnection {
|
|
|
39
39
|
* @param config Optional. Additional config for the request.
|
|
40
40
|
* @param catchGlobally Optional. If true, raises this the global error handler each time the promise is rejected.
|
|
41
41
|
*/
|
|
42
|
-
readonly askCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<
|
|
42
|
+
readonly askCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<TResult>;
|
|
43
43
|
/**
|
|
44
44
|
* Creates a promise for async file upload using binary stream
|
|
45
45
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -59,7 +59,7 @@ export declare class ApiConnection {
|
|
|
59
59
|
* @param errorCallback Optional. Handler callback for any other failures. If not supplied, the global error handler is used.
|
|
60
60
|
* @param config Optional. Additional config for the request.
|
|
61
61
|
*/
|
|
62
|
-
readonly callCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, successCallback: (res:
|
|
62
|
+
readonly callCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, successCallback: (res: TResult) => void, unsuccessCallback?: (e: IApiResult) => void, errorCallback?: (e: TUnionError) => void, config?: AxiosRequestConfig) => void;
|
|
63
63
|
/**
|
|
64
64
|
* Asynchronously uploads file using binary stream
|
|
65
65
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -39,7 +39,7 @@ export declare class ApiConnection {
|
|
|
39
39
|
* @param config Optional. Additional config for the request.
|
|
40
40
|
* @param catchGlobally Optional. If true, raises this the global error handler each time the promise is rejected.
|
|
41
41
|
*/
|
|
42
|
-
readonly askCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<
|
|
42
|
+
readonly askCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<TResult>;
|
|
43
43
|
/**
|
|
44
44
|
* Creates a promise for async file upload using binary stream
|
|
45
45
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -59,7 +59,7 @@ export declare class ApiConnection {
|
|
|
59
59
|
* @param errorCallback Optional. Handler callback for any other failures. If not supplied, the global error handler is used.
|
|
60
60
|
* @param config Optional. Additional config for the request.
|
|
61
61
|
*/
|
|
62
|
-
readonly callCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, successCallback: (res:
|
|
62
|
+
readonly callCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, successCallback: (res: TResult) => void, unsuccessCallback?: (e: IApiResult) => void, errorCallback?: (e: TUnionError) => void, config?: AxiosRequestConfig) => void;
|
|
63
63
|
/**
|
|
64
64
|
* Asynchronously uploads file using binary stream
|
|
65
65
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
package/lib/index.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ declare class ApiConnection {
|
|
|
172
172
|
* @param config Optional. Additional config for the request.
|
|
173
173
|
* @param catchGlobally Optional. If true, raises this the global error handler each time the promise is rejected.
|
|
174
174
|
*/
|
|
175
|
-
readonly askCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<
|
|
175
|
+
readonly askCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, config?: AxiosRequestConfig, catchGlobally?: boolean) => Promise<TResult>;
|
|
176
176
|
/**
|
|
177
177
|
* Creates a promise for async file upload using binary stream
|
|
178
178
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|
|
@@ -192,7 +192,7 @@ declare class ApiConnection {
|
|
|
192
192
|
* @param errorCallback Optional. Handler callback for any other failures. If not supplied, the global error handler is used.
|
|
193
193
|
* @param config Optional. Additional config for the request.
|
|
194
194
|
*/
|
|
195
|
-
readonly callCustomUploadMethod: (file: File, data: Record<string, string>, methodName: string, successCallback: (res:
|
|
195
|
+
readonly callCustomUploadMethod: <TResult extends IApiResult>(file: File, data: Record<string, string>, methodName: string, successCallback: (res: TResult) => void, unsuccessCallback?: (e: IApiResult) => void, errorCallback?: (e: TUnionError) => void, config?: AxiosRequestConfig) => void;
|
|
196
196
|
/**
|
|
197
197
|
* Asynchronously uploads file using binary stream
|
|
198
198
|
* @param itemGuid Item identificator. Ex. '9ac561be-9b7d-4938-8e55-4cce97142483'.
|