@wyocrm/sdk 5.0.43 → 5.0.45

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 CHANGED
@@ -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<IQueryResponse<ICustomer[]>>;
35
- queryTransactions(query: QueryBuilder<ITransaction>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ITransaction[]>>;
36
- queryOrders(query: QueryBuilder<IOrder>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<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<IQueryResponse<ICustomer[]>>;
49
- queryTransactions(builder: QueryBuilder<ITransaction>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<ITransaction[]>>;
50
- queryOrders(builder: QueryBuilder<IOrder>, axiosConfig?: AxiosRequestConfig): Promise<IQueryResponse<IOrder[]>>;
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
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @wyocrm/sdk v5.0.43
3
+ * @wyocrm/sdk v5.0.45
4
4
  * undefined
5
5
  *
6
6
  * Copyright (c) Steven Lee and project contributors.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyocrm/sdk",
3
- "version": "5.0.43",
3
+ "version": "5.0.45",
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
- "release": "npm run update && npm run build && npm run dts && npm run post:build && npm publish --access public && rm -rf build",
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",