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 +1 -0
- package/package.json +1 -1
- package/src/api/discounts/put.ts +4 -0
- package/src/api/index.ts +1 -0
- package/src/api/products/post.ts +1 -0
- package/src/api/products/put.ts +2 -1
- package/src/api/users/put.ts +3 -0
- package/src/interfaces/Api.ts +5 -0
- package/tsconfig.json +5 -2
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
package/src/api/discounts/put.ts
CHANGED
|
@@ -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,
|
package/src/api/products/post.ts
CHANGED
package/src/api/products/put.ts
CHANGED
|
@@ -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 = {
|
package/src/api/users/put.ts
CHANGED
|
@@ -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> {
|
package/src/interfaces/Api.ts
CHANGED
|
@@ -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"
|
|
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
|
}
|