@wyocrm/sdk 5.0.42 → 5.0.43
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.
- package/build/index.d.ts +7 -7
- package/build/index.js.LICENSE.txt +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare module '@wyocrm/sdk/index' {
|
|
|
6
6
|
}
|
|
7
7
|
declare module '@wyocrm/sdk/services' {
|
|
8
8
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
9
|
-
import { ICustomerOptions, ICustomer, ITransaction, IOrder, ICouponItem, IApiResponse, IFileUploadRequest, ICharge, IObjectResponse } from '@wyocrm/sdk/types';
|
|
9
|
+
import { ICustomerOptions, ICustomer, ITransaction, IOrder, ICouponItem, IApiResponse, IFileUploadRequest, ICharge, IObjectResponse, IQueryResponse } from '@wyocrm/sdk/types';
|
|
10
10
|
import { QueryBuilder } from '@wyocrm/sdk/utils';
|
|
11
11
|
export interface IServiceOptions {
|
|
12
12
|
merchantGuid: string;
|
|
@@ -31,9 +31,9 @@ declare module '@wyocrm/sdk/services' {
|
|
|
31
31
|
getCustomerById(id: number, axiosConfig?: AxiosRequestConfig): Promise<ICustomer>;
|
|
32
32
|
getCouponsByCustomerId(id: number, axiosConfig?: AxiosRequestConfig): Promise<IApiResponse<ICouponItem>>;
|
|
33
33
|
searchCustomers(keyword: string, builder: QueryBuilder<ICustomer>, axiosConfig?: AxiosRequestConfig): Promise<ICustomer[]>;
|
|
34
|
-
queryCustomers(builder: QueryBuilder<ICustomer>, searchKeywords?: string, axiosConfig?: AxiosRequestConfig): Promise<ICustomer[]
|
|
35
|
-
queryTransactions(query: QueryBuilder<ITransaction>, axiosConfig?: AxiosRequestConfig): Promise<ITransaction[]
|
|
36
|
-
queryOrders(query: QueryBuilder<IOrder>, axiosConfig?: AxiosRequestConfig): Promise<IOrder[]
|
|
34
|
+
queryCustomers(builder: QueryBuilder<ICustomer>, searchKeywords?: string, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ICustomer[]>>;
|
|
35
|
+
queryTransactions(query: QueryBuilder<ITransaction>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ITransaction[]>>;
|
|
36
|
+
queryOrders(query: QueryBuilder<IOrder>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<IOrder[]>>;
|
|
37
37
|
createCharge(terminalId: string, amount: number, invoiceRefId: string, description: string, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<ICharge>>;
|
|
38
38
|
getCharge(chargeGuid: string, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<ICharge>>;
|
|
39
39
|
}
|
|
@@ -45,9 +45,9 @@ declare module '@wyocrm/sdk/services' {
|
|
|
45
45
|
getCustomerById(id: number, axiosConfig?: AxiosRequestConfig): Promise<any>;
|
|
46
46
|
getCouponsByCustomerId(id: number, axiosConfig?: AxiosRequestConfig): Promise<any>;
|
|
47
47
|
searchCustomers(keyword: string, builder: QueryBuilder<ICustomer>, axiosConfig?: AxiosRequestConfig): Promise<any>;
|
|
48
|
-
queryCustomers(builder: QueryBuilder<ICustomer>, searchKeywords?: string, axiosConfig?: AxiosRequestConfig): Promise<
|
|
49
|
-
queryTransactions(builder: QueryBuilder<ITransaction>, axiosConfig?: AxiosRequestConfig): Promise<
|
|
50
|
-
queryOrders(builder: QueryBuilder<IOrder>, axiosConfig?: AxiosRequestConfig): Promise<
|
|
48
|
+
queryCustomers(builder: QueryBuilder<ICustomer>, searchKeywords?: string, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ICustomer[]>>;
|
|
49
|
+
queryTransactions(builder: QueryBuilder<ITransaction>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ITransaction[]>>;
|
|
50
|
+
queryOrders(builder: QueryBuilder<IOrder>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<IOrder[]>>;
|
|
51
51
|
createCharge(terminalId: string, amount: number, invoiceRefId: string, description: string, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<ICharge>>;
|
|
52
52
|
getCharge(chargeGuid: string, axiosConfig?: AxiosRequestConfig): Promise<IObjectResponse<ICharge>>;
|
|
53
53
|
}
|