washday-sdk 0.0.158 → 0.0.160
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/auth/post.js +12 -0
- package/dist/api/index.js +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/util.js +18 -1
- package/package.json +1 -1
- package/src/api/auth/post.ts +20 -0
- package/src/api/index.ts +1 -0
- package/src/interfaces/Api.ts +1 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/util.ts +19 -1
- package/dist/api/axiosInstance.d.ts +0 -2
- package/dist/api/cashierbox/delete.d.ts +0 -2
- package/dist/api/cashierbox/get.d.ts +0 -7
- package/dist/api/cashierbox/post.d.ts +0 -11
- package/dist/api/cashierbox/put.d.ts +0 -4
- package/dist/api/companies/get.d.ts +0 -2
- package/dist/api/companies/post.d.ts +0 -3
- package/dist/api/companies/put.d.ts +0 -4
- package/dist/api/countries/get.d.ts +0 -2
- package/dist/api/countries/post.d.ts +0 -0
- package/dist/api/countries/put.d.ts +0 -0
- package/dist/api/csv/get.d.ts +0 -11
- package/dist/api/csv/index.d.ts +0 -1
- package/dist/api/customers/delete.d.ts +0 -2
- package/dist/api/customers/get.d.ts +0 -28
- package/dist/api/customers/index.d.ts +0 -4
- package/dist/api/customers/post.d.ts +0 -18
- package/dist/api/customers/put.d.ts +0 -18
- package/dist/api/discounts/get.d.ts +0 -6
- package/dist/api/discounts/post.d.ts +0 -3
- package/dist/api/discounts/put.d.ts +0 -3
- package/dist/api/index.d.ts +0 -7
- package/dist/api/inventory/delete.d.ts +0 -2
- package/dist/api/inventory/get.d.ts +0 -7
- package/dist/api/inventory/index.d.ts +0 -4
- package/dist/api/inventory/post.d.ts +0 -7
- package/dist/api/inventory/put.d.ts +0 -8
- package/dist/api/products/delete.d.ts +0 -3
- package/dist/api/products/get.d.ts +0 -2
- package/dist/api/products/index.d.ts +0 -4
- package/dist/api/products/post.d.ts +0 -27
- package/dist/api/products/put.d.ts +0 -21
- package/dist/api/sections/delete.d.ts +0 -2
- package/dist/api/sections/get.d.ts +0 -7
- package/dist/api/sections/index.d.ts +0 -4
- package/dist/api/sections/post.d.ts +0 -7
- package/dist/api/sections/put.d.ts +0 -8
- package/dist/api/staff/delete.d.ts +0 -2
- package/dist/api/staff/get.d.ts +0 -3
- package/dist/api/staff/post.d.ts +0 -2
- package/dist/api/staff/put.d.ts +0 -2
- package/dist/api/stores/get.d.ts +0 -12
- package/dist/api/stores/post.d.ts +0 -4
- package/dist/api/stores/put.d.ts +0 -6
- package/dist/api/stripe/get.d.ts +0 -0
- package/dist/api/stripe/post.d.ts +0 -6
- package/dist/api/stripe/put.d.ts +0 -0
- package/dist/api/supplies/delete.d.ts +0 -2
- package/dist/api/supplies/get.d.ts +0 -7
- package/dist/api/supplies/post.d.ts +0 -11
- package/dist/api/supplies/put.d.ts +0 -6
- package/dist/api/users/put.d.ts +0 -10
- package/dist/enum/index.d.ts +0 -10
- package/dist/index.d.ts +0 -3
- package/dist/interfaces/Api.d.ts +0 -3
- package/dist/interfaces/Company.d.ts +0 -0
- package/dist/interfaces/Customer.d.ts +0 -47
- package/dist/interfaces/Order.d.ts +0 -91
- package/dist/interfaces/Permission.d.ts +0 -22
- package/dist/interfaces/Product.d.ts +0 -51
- package/dist/interfaces/Section.d.ts +0 -13
- package/dist/interfaces/Store.d.ts +0 -323
- package/dist/interfaces/StoreImage.d.ts +0 -8
- package/dist/interfaces/User.d.ts +0 -38
- package/dist/utils/apiUtils.d.ts +0 -3
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/orders/calculateOrderTotal.d.ts +0 -5
- package/dist/utils/orders/calculateTotalTaxesIncluded.d.ts +0 -9
- package/dist/utils/orders/calculateTotalTaxesOverPrice.d.ts +0 -8
- package/dist/utils/orders/helpers.d.ts +0 -15
- package/dist/utils/orders/index.d.ts +0 -2
- package/dist/utils/receipt/generateReceiptHTML.d.ts +0 -0
- package/dist/utils/util.d.ts +0 -0
package/dist/api/auth/post.js
CHANGED
|
@@ -94,6 +94,18 @@ export const regularUserLogin = function (params) {
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
|
+
export const companySignUp = function (params) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
try {
|
|
100
|
+
const config = {};
|
|
101
|
+
return yield axiosInstance.post(`${REGULAR_USER_AUTH}/register`, params, config);
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
console.error('Error fetching companySignUp:', error);
|
|
105
|
+
throw error;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
};
|
|
97
109
|
export const regularUserTokenLogin = function (params) {
|
|
98
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
111
|
try {
|
package/dist/api/index.js
CHANGED
|
@@ -86,6 +86,7 @@ const WashdayClient = function WashdayClient(apiToken) {
|
|
|
86
86
|
forgotPassword: authEndpoints.postModule.customersAppForgotPassword,
|
|
87
87
|
customersAppForgotPassword: authEndpoints.postModule.customersAppForgotPassword,
|
|
88
88
|
customersAppChangePassword: authEndpoints.postModule.customersAppChangePassword,
|
|
89
|
+
companySignUp: authEndpoints.postModule.companySignUp,
|
|
89
90
|
});
|
|
90
91
|
this.orders = bindMethods(this, {
|
|
91
92
|
getList: ordersEndpoints.getModule.getList,
|
package/dist/utils/index.js
CHANGED
package/dist/utils/util.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// export function truncateOrFill(str: string, n: number, side: string = 'right') {
|
|
3
2
|
// let needSpacesQty = n - str.length;
|
|
4
3
|
// let whiteSpace = '';
|
|
@@ -44,3 +43,21 @@
|
|
|
44
43
|
// console.log(e);
|
|
45
44
|
// }
|
|
46
45
|
// };
|
|
46
|
+
// Function to get a formatted address
|
|
47
|
+
export function getFormattedAddress(address) {
|
|
48
|
+
const { street, neighborhood, postalCode, city, state, country } = address;
|
|
49
|
+
let formatted = '';
|
|
50
|
+
if (street)
|
|
51
|
+
formatted += street;
|
|
52
|
+
if (neighborhood)
|
|
53
|
+
formatted += `, ${neighborhood}`;
|
|
54
|
+
if (city)
|
|
55
|
+
formatted += `, ${city}`;
|
|
56
|
+
if (state)
|
|
57
|
+
formatted += `, ${state}`;
|
|
58
|
+
if (postalCode)
|
|
59
|
+
formatted += `, ${postalCode}`;
|
|
60
|
+
if (country)
|
|
61
|
+
formatted += `, ${country}`;
|
|
62
|
+
return formatted.trim();
|
|
63
|
+
}
|
package/package.json
CHANGED
package/src/api/auth/post.ts
CHANGED
|
@@ -111,6 +111,26 @@ export const regularUserLogin = async function (this: WashdayClientInstance, par
|
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
+
export const companySignUp = async function (this: WashdayClientInstance, params: {
|
|
115
|
+
email: string,
|
|
116
|
+
password: string,
|
|
117
|
+
companyName: string,
|
|
118
|
+
name: string,
|
|
119
|
+
phoneNumber: string,
|
|
120
|
+
country: string,
|
|
121
|
+
city: string,
|
|
122
|
+
languagePreference: string,
|
|
123
|
+
isActive: boolean
|
|
124
|
+
}): Promise<any> {
|
|
125
|
+
try {
|
|
126
|
+
const config = {};
|
|
127
|
+
return await axiosInstance.post(`${REGULAR_USER_AUTH}/register`, params, config);
|
|
128
|
+
} catch (error) {
|
|
129
|
+
console.error('Error fetching companySignUp:', error);
|
|
130
|
+
throw error;
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
114
134
|
|
|
115
135
|
export const regularUserTokenLogin = async function (this: WashdayClientInstance, params: {
|
|
116
136
|
token: string
|
package/src/api/index.ts
CHANGED
|
@@ -93,6 +93,7 @@ const WashdayClient: WashdayClientConstructor = function WashdayClient(this: Was
|
|
|
93
93
|
forgotPassword: authEndpoints.postModule.customersAppForgotPassword,
|
|
94
94
|
customersAppForgotPassword: authEndpoints.postModule.customersAppForgotPassword,
|
|
95
95
|
customersAppChangePassword: authEndpoints.postModule.customersAppChangePassword,
|
|
96
|
+
companySignUp: authEndpoints.postModule.companySignUp,
|
|
96
97
|
});
|
|
97
98
|
this.orders = bindMethods(this, {
|
|
98
99
|
getList: ordersEndpoints.getModule.getList,
|
package/src/interfaces/Api.ts
CHANGED
|
@@ -68,6 +68,7 @@ export interface WashdayClientInstance {
|
|
|
68
68
|
forgotPassword: typeof authEndpoints.postModule.forgotPassword;
|
|
69
69
|
customersAppForgotPassword: typeof authEndpoints.postModule.customersAppForgotPassword;
|
|
70
70
|
customersAppChangePassword: typeof authEndpoints.postModule.customersAppChangePassword;
|
|
71
|
+
companySignUp: typeof authEndpoints.postModule.companySignUp;
|
|
71
72
|
}
|
|
72
73
|
review: {
|
|
73
74
|
getList: typeof reviewsEndpoints.getModule.getList;
|
package/src/utils/index.ts
CHANGED
package/src/utils/util.ts
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
// : whiteSpace + str;
|
|
15
15
|
// }
|
|
16
16
|
|
|
17
|
+
import { IAddress } from "../interfaces/Customer";
|
|
18
|
+
|
|
17
19
|
// export const formatMoneyString = (
|
|
18
20
|
// amount: string | number = 0,
|
|
19
21
|
// decimalCount: number = 2,
|
|
@@ -44,4 +46,20 @@
|
|
|
44
46
|
// } catch (e) {
|
|
45
47
|
// console.log(e);
|
|
46
48
|
// }
|
|
47
|
-
// };
|
|
49
|
+
// };
|
|
50
|
+
|
|
51
|
+
// Function to get a formatted address
|
|
52
|
+
export function getFormattedAddress(address: IAddress): string {
|
|
53
|
+
const { street, neighborhood, postalCode, city, state, country } = address;
|
|
54
|
+
|
|
55
|
+
let formatted = '';
|
|
56
|
+
|
|
57
|
+
if (street) formatted += street;
|
|
58
|
+
if (neighborhood) formatted += `, ${neighborhood}`;
|
|
59
|
+
if (city) formatted += `, ${city}`;
|
|
60
|
+
if (state) formatted += `, ${state}`;
|
|
61
|
+
if (postalCode) formatted += `, ${postalCode}`;
|
|
62
|
+
if (country) formatted += `, ${country}`;
|
|
63
|
+
|
|
64
|
+
return formatted.trim();
|
|
65
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const getCashierboxesByStoreId: (this: WashdayClientInstance, storeId: string, queryParams?: string) => Promise<any>;
|
|
3
|
-
export declare const getCashierboxesById: (this: WashdayClientInstance, storeId: string, id: string, queryParams?: string) => Promise<any>;
|
|
4
|
-
export declare const getCashierBoxMovementsHistory: (this: WashdayClientInstance, storeId: string, id: string, params?: {
|
|
5
|
-
pageNum: number;
|
|
6
|
-
limit: number;
|
|
7
|
-
}) => Promise<any>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const createCashierBox: (this: WashdayClientInstance, storeId: string, data: {
|
|
3
|
-
name: string;
|
|
4
|
-
}) => Promise<any>;
|
|
5
|
-
export declare const addCashierBoxMovement: (this: WashdayClientInstance, storeId: string, id: string, data: {
|
|
6
|
-
type: string;
|
|
7
|
-
date: Date;
|
|
8
|
-
amount: number;
|
|
9
|
-
notes?: string;
|
|
10
|
-
paymentMethod: string;
|
|
11
|
-
}) => Promise<any>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const updateCompanyTaxInfoCertificates: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
|
|
3
|
-
export declare const updateCFDIOrgLogo: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const updateCompanyById: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
|
|
3
|
-
export declare const updateCompanyLogoById: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
|
|
4
|
-
export declare const updateCompanyTaxInfoById: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
|
|
File without changes
|
|
File without changes
|
package/dist/api/csv/get.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const exportCustomersList: (this: WashdayClientInstance, params: {
|
|
3
|
-
searchTerm?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
phone?: string;
|
|
6
|
-
email?: string;
|
|
7
|
-
fromDate?: string;
|
|
8
|
-
toDate?: string;
|
|
9
|
-
limit: string;
|
|
10
|
-
pageNum: string;
|
|
11
|
-
}) => Promise<any>;
|
package/dist/api/csv/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as getModule from './get';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
import { ICustomer } from "../../interfaces/Customer";
|
|
3
|
-
import { IOrderInfo } from "../../interfaces/Order";
|
|
4
|
-
export declare const getList: (this: WashdayClientInstance, params: {
|
|
5
|
-
searchTerm?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
phone?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
fromDate?: string;
|
|
10
|
-
toDate?: string;
|
|
11
|
-
limit: string;
|
|
12
|
-
pageNum: string;
|
|
13
|
-
}) => Promise<any>;
|
|
14
|
-
export declare const getCustomerById: (this: WashdayClientInstance, customerId: string) => Promise<{
|
|
15
|
-
customer: ICustomer;
|
|
16
|
-
orderInfo: IOrderInfo;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const getCustomerHighlightsById: (this: WashdayClientInstance, customerId: string) => Promise<{
|
|
19
|
-
customer: ICustomer;
|
|
20
|
-
orderInfo: IOrderInfo;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const getCustomerOrders: (this: WashdayClientInstance, customerId: string, params: {
|
|
23
|
-
limit: string;
|
|
24
|
-
pageNum: string;
|
|
25
|
-
}) => Promise<{
|
|
26
|
-
orders: any;
|
|
27
|
-
totalRowsCount: any;
|
|
28
|
-
}>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const create: (this: WashdayClientInstance, data: {
|
|
3
|
-
name: string;
|
|
4
|
-
phone?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
address?: string;
|
|
7
|
-
notes?: string;
|
|
8
|
-
privateNotes?: string;
|
|
9
|
-
discount: number;
|
|
10
|
-
credit: number;
|
|
11
|
-
rfc?: string;
|
|
12
|
-
invoiceInfo?: {
|
|
13
|
-
legal_name?: string;
|
|
14
|
-
tax_system?: string;
|
|
15
|
-
zipCode?: string;
|
|
16
|
-
};
|
|
17
|
-
isActive: boolean;
|
|
18
|
-
}) => Promise<any>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const updateById: (this: WashdayClientInstance, id: string, data: {
|
|
3
|
-
name?: string;
|
|
4
|
-
phone?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
address?: string;
|
|
7
|
-
notes?: string;
|
|
8
|
-
privateNotes?: string;
|
|
9
|
-
discount?: number;
|
|
10
|
-
credit?: number;
|
|
11
|
-
rfc?: string;
|
|
12
|
-
invoiceInfo?: {
|
|
13
|
-
legal_name?: string;
|
|
14
|
-
tax_system?: string;
|
|
15
|
-
zipCode?: string;
|
|
16
|
-
};
|
|
17
|
-
isActive?: boolean;
|
|
18
|
-
}) => Promise<any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const getDiscountCodes: (this: WashdayClientInstance, storeId: string, params?: string) => Promise<any>;
|
|
3
|
-
export declare const getAutomaticDiscounts: (this: WashdayClientInstance, storeId: string, params?: string) => Promise<any>;
|
|
4
|
-
export declare const getDiscountCodeById: (this: WashdayClientInstance, storeId: string, discountId: string) => Promise<any>;
|
|
5
|
-
export declare const getAutomaticDiscountById: (this: WashdayClientInstance, storeId: string, discountId: string) => Promise<any>;
|
|
6
|
-
export declare const verifyDiscountCode: (this: WashdayClientInstance, storeId: string, code: string) => Promise<any>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const createAutomaticDiscount: (this: WashdayClientInstance, storeId: string, data: any) => Promise<any>;
|
|
3
|
-
export declare const createDiscountCode: (this: WashdayClientInstance, storeId: string, data: any) => Promise<any>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const deleteDiscountCodeById: (this: WashdayClientInstance, storeId: string, discountId: string) => Promise<any>;
|
|
3
|
-
export declare const deleteAutomaticDiscountById: (this: WashdayClientInstance, storeId: string, discountId: string) => Promise<any>;
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const getInventory: (this: WashdayClientInstance, storeId: string, queryParams?: string) => Promise<any>;
|
|
3
|
-
export declare const getInventoryById: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
|
|
4
|
-
export declare const getHistoryById: (this: WashdayClientInstance, storeId: string, id: string, params?: {
|
|
5
|
-
pageNum: number;
|
|
6
|
-
limit: number;
|
|
7
|
-
}) => Promise<any>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const updateById: (this: WashdayClientInstance, storeId: string, id: string, data: {
|
|
3
|
-
alertOnStock: number;
|
|
4
|
-
}) => Promise<any>;
|
|
5
|
-
export declare const addStock: (this: WashdayClientInstance, storeId: string, id: string, data: {
|
|
6
|
-
newStock: number;
|
|
7
|
-
date: string;
|
|
8
|
-
}) => Promise<any>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const deleteById: (this: WashdayClientInstance, id: string) => Promise<any>;
|
|
3
|
-
export declare const deleteProductSupplyById: (this: WashdayClientInstance, id: string, productSupplyId: string) => Promise<any>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const create: (this: WashdayClientInstance, data: {
|
|
3
|
-
name: string;
|
|
4
|
-
price: number;
|
|
5
|
-
expressPrice: number;
|
|
6
|
-
type: 'normal' | 'weight';
|
|
7
|
-
pieces: number;
|
|
8
|
-
sku?: string;
|
|
9
|
-
overlayText: string;
|
|
10
|
-
order: number;
|
|
11
|
-
taxExemptOne: boolean;
|
|
12
|
-
taxExemptTwo: boolean;
|
|
13
|
-
taxExemptThree: boolean;
|
|
14
|
-
showInApp: boolean;
|
|
15
|
-
image: string;
|
|
16
|
-
store: string;
|
|
17
|
-
section: string;
|
|
18
|
-
invoice_description: string;
|
|
19
|
-
invoice_product_key: string;
|
|
20
|
-
invoice_product_unit_key: string;
|
|
21
|
-
invoice_product_unit_name: string;
|
|
22
|
-
productSupplies: Array<any>;
|
|
23
|
-
}) => Promise<any>;
|
|
24
|
-
export declare const createProductSupply: (this: WashdayClientInstance, id: string, data: {
|
|
25
|
-
supplyId: string;
|
|
26
|
-
usageAmount: number;
|
|
27
|
-
}) => Promise<any>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const bulkUpdate: (this: WashdayClientInstance, storeId: string, data: any) => Promise<any>;
|
|
3
|
-
export declare const updateById: (this: WashdayClientInstance, id: string, data: {
|
|
4
|
-
name?: string;
|
|
5
|
-
price?: number;
|
|
6
|
-
expressPrice?: number;
|
|
7
|
-
type?: 'normal' | 'weight';
|
|
8
|
-
pieces?: number;
|
|
9
|
-
sku?: string;
|
|
10
|
-
overlayText?: string;
|
|
11
|
-
order?: number;
|
|
12
|
-
taxExemptOne?: boolean;
|
|
13
|
-
taxExemptTwo?: boolean;
|
|
14
|
-
taxExemptThree?: boolean;
|
|
15
|
-
showInApp?: boolean;
|
|
16
|
-
image?: string;
|
|
17
|
-
invoice_product_key?: string;
|
|
18
|
-
invoice_description?: string;
|
|
19
|
-
invoice_product_unit_key?: string;
|
|
20
|
-
invoice_product_unit_name?: string;
|
|
21
|
-
}) => Promise<any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const getList: (this: WashdayClientInstance, params?: {
|
|
3
|
-
storeId?: string;
|
|
4
|
-
isActive?: string;
|
|
5
|
-
products?: boolean;
|
|
6
|
-
}) => Promise<any>;
|
|
7
|
-
export declare const getById: (this: WashdayClientInstance, id: string) => Promise<any>;
|
package/dist/api/staff/get.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const getStoreStaff: (this: WashdayClientInstance, storeId: string, queryParams?: string) => Promise<any>;
|
|
3
|
-
export declare const getStoreStaffById: (this: WashdayClientInstance, storeId: string, staffId: string) => Promise<any>;
|
package/dist/api/staff/post.d.ts
DELETED
package/dist/api/staff/put.d.ts
DELETED
package/dist/api/stores/get.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
import { IStore } from "../../interfaces/Store";
|
|
3
|
-
export declare const getStores: (this: WashdayClientInstance, params: {
|
|
4
|
-
isActive?: string;
|
|
5
|
-
}) => Promise<{
|
|
6
|
-
stores: IStore[];
|
|
7
|
-
}>;
|
|
8
|
-
export declare const getStoreReviewLink: (this: WashdayClientInstance, storeId: string) => Promise<any>;
|
|
9
|
-
export declare const getStoreById: (this: WashdayClientInstance, storeId: string) => Promise<{
|
|
10
|
-
store: IStore;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const getStoreImages: (this: WashdayClientInstance, storeId: string) => Promise<any>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const createStoreImage: (this: WashdayClientInstance, data: any) => Promise<any>;
|
|
3
|
-
export declare const createStore: (this: WashdayClientInstance, data: any) => Promise<any>;
|
|
4
|
-
export declare const copyStore: (this: WashdayClientInstance, copyStoreId: string) => Promise<any>;
|
package/dist/api/stores/put.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
import { IStore } from "../../interfaces/Store";
|
|
3
|
-
export declare const updateStoreById: (this: WashdayClientInstance, storeId: string, data: IStore) => Promise<{
|
|
4
|
-
store: IStore;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const deleteStoreById: (this: WashdayClientInstance, storeId: string) => Promise<any>;
|
package/dist/api/stripe/get.d.ts
DELETED
|
File without changes
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const createCreateSuscriptionCheckoutSession: (this: WashdayClientInstance, data: {
|
|
3
|
-
priceId: string;
|
|
4
|
-
}) => Promise<any>;
|
|
5
|
-
export declare const createCustomerPortalSession: (this: WashdayClientInstance, data?: any) => Promise<any>;
|
|
6
|
-
export declare const createCFDISuscrptionCheckoutSession: (this: WashdayClientInstance, data?: any) => Promise<any>;
|
package/dist/api/stripe/put.d.ts
DELETED
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const getSupplies: (this: WashdayClientInstance, storeId: string, queryParams?: string) => Promise<any>;
|
|
3
|
-
export declare const getSupplyById: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
|
|
4
|
-
export declare const getSupplyHistory: (this: WashdayClientInstance, storeId: string, id: string, params?: {
|
|
5
|
-
pageNum: number;
|
|
6
|
-
limit: number;
|
|
7
|
-
}) => Promise<any>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
export declare const createSupply: (this: WashdayClientInstance, storeId: string, data: {
|
|
3
|
-
name: string;
|
|
4
|
-
code: string;
|
|
5
|
-
purchaseUnit: string;
|
|
6
|
-
usageUnit: string;
|
|
7
|
-
usageFactor: number;
|
|
8
|
-
stock: number;
|
|
9
|
-
alertOnStock: number;
|
|
10
|
-
supplyActivityHistory: [];
|
|
11
|
-
}) => Promise<any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
import { ISupplies } from "../../interfaces/Store";
|
|
3
|
-
export declare const updateSupplyById: (this: WashdayClientInstance, storeId: string, id: string, data: ISupplies) => Promise<any>;
|
|
4
|
-
export declare const addSupplyStock: (this: WashdayClientInstance, storeId: string, id: string, data: {
|
|
5
|
-
newStock: number;
|
|
6
|
-
}) => Promise<any>;
|
package/dist/api/users/put.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { WashdayClientInstance } from "../../interfaces/Api";
|
|
2
|
-
interface userDTO {
|
|
3
|
-
printer?: {
|
|
4
|
-
name: string;
|
|
5
|
-
paperSize: string;
|
|
6
|
-
};
|
|
7
|
-
freshChatRestoreID?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const updateUserById: (this: WashdayClientInstance, userId: string, data: userDTO) => Promise<any>;
|
|
10
|
-
export {};
|
package/dist/enum/index.d.ts
DELETED
package/dist/index.d.ts
DELETED
package/dist/interfaces/Api.d.ts
DELETED
|
File without changes
|