washday-sdk 0.0.89 → 0.0.91

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.
@@ -11,7 +11,7 @@ import { generateQueryParamsStr } from "../../utils/apiUtils";
11
11
  import axiosInstance from "../axiosInstance";
12
12
  const GET_ORDERS_CFDI_PREVIEW = (orderID) => `api/order/${orderID}/preview/cfdi`;
13
13
  const GET_SET_CFDI = 'api/cfdi';
14
- export const getList = function (storeId, params) {
14
+ export const getList = function (params) {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
16
  try {
17
17
  const config = {
package/dist/api/index.js CHANGED
@@ -55,7 +55,8 @@ const WashdayClient = function WashdayClient(apiToken) {
55
55
  getGlobalCFDIPreview: cfdiEndpoints.getModule.getGlobalCFDIPreview,
56
56
  getCFDIPreviewByOrderId: cfdiEndpoints.getModule.getCFDIPreviewByOrderId,
57
57
  createCFDI: cfdiEndpoints.postModule.createCFDI,
58
- createGlobalCFDI: cfdiEndpoints.postModule.createGlobalCFDI
58
+ createGlobalCFDI: cfdiEndpoints.postModule.createGlobalCFDI,
59
+ cancelCFDI: cfdiEndpoints.deleteModule.cancelCFDI
59
60
  });
60
61
  this.review = bindMethods(this, {
61
62
  getList: reviewsEndpoints.getModule.getList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.89",
3
+ "version": "0.0.91",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -4,7 +4,7 @@ import axiosInstance from "../axiosInstance";
4
4
  const GET_ORDERS_CFDI_PREVIEW = (orderID: string) => `api/order/${orderID}/preview/cfdi`;
5
5
  const GET_SET_CFDI = 'api/cfdi';
6
6
 
7
- export const getList = async function (this: WashdayClientInstance, storeId: string, params: {
7
+ export const getList = async function (this: WashdayClientInstance, params: {
8
8
  query?: string;
9
9
  storeId?: string;
10
10
  fromDate?: string;
package/src/api/index.ts CHANGED
@@ -61,7 +61,8 @@ const WashdayClient: WashdayClientConstructor = function WashdayClient(this: Was
61
61
  getGlobalCFDIPreview: cfdiEndpoints.getModule.getGlobalCFDIPreview,
62
62
  getCFDIPreviewByOrderId: cfdiEndpoints.getModule.getCFDIPreviewByOrderId,
63
63
  createCFDI: cfdiEndpoints.postModule.createCFDI,
64
- createGlobalCFDI: cfdiEndpoints.postModule.createGlobalCFDI
64
+ createGlobalCFDI: cfdiEndpoints.postModule.createGlobalCFDI,
65
+ cancelCFDI: cfdiEndpoints.deleteModule.cancelCFDI
65
66
  });
66
67
  this.review = bindMethods(this, {
67
68
  getList: reviewsEndpoints.getModule.getList,
@@ -48,6 +48,7 @@ export interface WashdayClientInstance {
48
48
  getCFDIPreviewByOrderId: typeof cfdiEndpoints.getModule.getCFDIPreviewByOrderId,
49
49
  createCFDI: typeof cfdiEndpoints.postModule.createCFDI,
50
50
  createGlobalCFDI: typeof cfdiEndpoints.postModule.createGlobalCFDI
51
+ cancelCFDI: typeof cfdiEndpoints.deleteModule.cancelCFDI
51
52
  }
52
53
  review: {
53
54
  getList: typeof reviewsEndpoints.getModule.getList;