@wyocrm/sdk 5.0.42 → 5.0.44
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 +2 -2
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyocrm/sdk",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.44",
|
|
4
4
|
"description": "wyo sdk",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dts": "npm-dts generate -o build/index.d.ts",
|
|
12
12
|
"post:build": "node ./scripts/post-build.js",
|
|
13
13
|
"test": "jest",
|
|
14
|
-
"
|
|
14
|
+
"r": "npm run update && npm run build && npm run dts && npm run post:build && npm publish --access public && rm -rf build",
|
|
15
15
|
"coverage": "npm run test --coverage",
|
|
16
16
|
"trypublish": "npm publish || true",
|
|
17
17
|
"gen:index": "node ./scripts/generateIndex.js",
|