washday-sdk 0.0.183 → 0.0.184

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/dist/api/index.js CHANGED
@@ -254,6 +254,7 @@ const WashdayClient = function WashdayClient(apiToken) {
254
254
  exportCustomersReport: csvExportEndpoints.getModule.exportCustomersReport,
255
255
  exportSuppliesReport: csvExportEndpoints.getModule.exportSuppliesReport,
256
256
  exportDiscountCodesReport: csvExportEndpoints.getModule.exportDiscountCodesReport,
257
+ exportStaffReport: csvExportEndpoints.getModule.exportStaffReport,
257
258
  exportProductSalesReport: csvExportEndpoints.getModule.exportProductSalesReport,
258
259
  exportPaymentLinesReport: csvExportEndpoints.getModule.exportPaymentLinesReport,
259
260
  exportUnpaidOrdersReportCSV: csvExportEndpoints.getModule.exportUnpaidOrdersReportCSV,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.183",
3
+ "version": "0.0.184",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -48,6 +48,10 @@ export const updateDiscountCodeById = async function (this: WashdayClientInstanc
48
48
  products?: string[];
49
49
  buyAndGetConditions?: any;
50
50
  freeProductSetting?: any;
51
+ name?: string;
52
+ code?: string;
53
+ fromDate?: string;
54
+ toDate?: string;
51
55
  }): Promise<any> {
52
56
  try {
53
57
  const config = {
package/src/api/index.ts CHANGED
@@ -261,6 +261,7 @@ const WashdayClient: WashdayClientConstructor = function WashdayClient(this: Was
261
261
  exportCustomersReport: csvExportEndpoints.getModule.exportCustomersReport,
262
262
  exportSuppliesReport: csvExportEndpoints.getModule.exportSuppliesReport,
263
263
  exportDiscountCodesReport: csvExportEndpoints.getModule.exportDiscountCodesReport,
264
+ exportStaffReport: csvExportEndpoints.getModule.exportStaffReport,
264
265
  exportProductSalesReport: csvExportEndpoints.getModule.exportProductSalesReport,
265
266
  exportPaymentLinesReport: csvExportEndpoints.getModule.exportPaymentLinesReport,
266
267
  exportUnpaidOrdersReportCSV: csvExportEndpoints.getModule.exportUnpaidOrdersReportCSV,
@@ -26,6 +26,7 @@ export const create = async function (this: WashdayClientInstance, data: {
26
26
  productSupplies: Array<any>
27
27
  isOutsourced?: boolean
28
28
  outsourcingPartner?: string
29
+ barcode?: string
29
30
  }): Promise<any> {
30
31
  try {
31
32
  const config = {
@@ -34,7 +34,8 @@ export const updateById = async function (this: WashdayClientInstance, id: strin
34
34
  invoice_product_unit_key?: string
35
35
  invoice_product_unit_name?: string
36
36
  isOutsourced?: boolean
37
- outsourcingPartner?: string
37
+ outsourcingPartner?: string,
38
+ barcode?: string
38
39
  }): Promise<any> {
39
40
  try {
40
41
  const config = {
@@ -17,6 +17,9 @@ interface userDTO {
17
17
  email?: string
18
18
  name?: string
19
19
  phoneNumber?: string
20
+ currentPassword?: string;
21
+ newPassword?: string;
22
+ confirmNewPassword?: string;
20
23
  }
21
24
 
22
25
  export const updateUserById = async function (this: WashdayClientInstance, userId: string, data: userDTO): Promise<any> {
@@ -245,6 +245,11 @@ export interface WashdayClientInstance {
245
245
  exportProductSalesReport: typeof csvExportEndpoints.getModule.exportProductSalesReport;
246
246
  exportPaymentLinesReport: typeof csvExportEndpoints.getModule.exportPaymentLinesReport;
247
247
  exportUnpaidOrdersReportCSV: typeof csvExportEndpoints.getModule.exportUnpaidOrdersReportCSV;
248
+ exportOrdersList: typeof csvExportEndpoints.getModule.exportOrdersList,
249
+ exportProductsList: typeof csvExportEndpoints.getModule.exportProductsList,
250
+ exportCleanedOrdersReport: typeof csvExportEndpoints.getModule.exportCleanedOrdersReport,
251
+ exportSalesReport: typeof csvExportEndpoints.getModule.exportSalesReport,
252
+ exportStaffReport: typeof csvExportEndpoints.getModule.exportStaffReport,
248
253
  };
249
254
  pdf: {
250
255
  exportUnpaidOrdersReportPDF: typeof pdfExportEndpoints.getModule.exportUnpaidOrdersReportPDF;
package/tsconfig.json CHANGED
@@ -5,7 +5,10 @@
5
5
  "strict": true,
6
6
  "esModuleInterop": true,
7
7
  "moduleResolution": "node",
8
- "outDir": "dist" // Specify the output directory for JavaScript files
8
+ "outDir": "dist",
9
+ "skipLibCheck": true,
10
+ "lib": ["esnext"]
9
11
  },
10
- "include": ["src/**/*.ts"]
12
+ "include": ["src/**/*.ts"],
13
+ "exclude": ["node_modules"]
11
14
  }