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.
Files changed (83) hide show
  1. package/dist/api/auth/post.js +12 -0
  2. package/dist/api/index.js +1 -0
  3. package/dist/utils/index.js +1 -0
  4. package/dist/utils/util.js +18 -1
  5. package/package.json +1 -1
  6. package/src/api/auth/post.ts +20 -0
  7. package/src/api/index.ts +1 -0
  8. package/src/interfaces/Api.ts +1 -0
  9. package/src/utils/index.ts +2 -0
  10. package/src/utils/util.ts +19 -1
  11. package/dist/api/axiosInstance.d.ts +0 -2
  12. package/dist/api/cashierbox/delete.d.ts +0 -2
  13. package/dist/api/cashierbox/get.d.ts +0 -7
  14. package/dist/api/cashierbox/post.d.ts +0 -11
  15. package/dist/api/cashierbox/put.d.ts +0 -4
  16. package/dist/api/companies/get.d.ts +0 -2
  17. package/dist/api/companies/post.d.ts +0 -3
  18. package/dist/api/companies/put.d.ts +0 -4
  19. package/dist/api/countries/get.d.ts +0 -2
  20. package/dist/api/countries/post.d.ts +0 -0
  21. package/dist/api/countries/put.d.ts +0 -0
  22. package/dist/api/csv/get.d.ts +0 -11
  23. package/dist/api/csv/index.d.ts +0 -1
  24. package/dist/api/customers/delete.d.ts +0 -2
  25. package/dist/api/customers/get.d.ts +0 -28
  26. package/dist/api/customers/index.d.ts +0 -4
  27. package/dist/api/customers/post.d.ts +0 -18
  28. package/dist/api/customers/put.d.ts +0 -18
  29. package/dist/api/discounts/get.d.ts +0 -6
  30. package/dist/api/discounts/post.d.ts +0 -3
  31. package/dist/api/discounts/put.d.ts +0 -3
  32. package/dist/api/index.d.ts +0 -7
  33. package/dist/api/inventory/delete.d.ts +0 -2
  34. package/dist/api/inventory/get.d.ts +0 -7
  35. package/dist/api/inventory/index.d.ts +0 -4
  36. package/dist/api/inventory/post.d.ts +0 -7
  37. package/dist/api/inventory/put.d.ts +0 -8
  38. package/dist/api/products/delete.d.ts +0 -3
  39. package/dist/api/products/get.d.ts +0 -2
  40. package/dist/api/products/index.d.ts +0 -4
  41. package/dist/api/products/post.d.ts +0 -27
  42. package/dist/api/products/put.d.ts +0 -21
  43. package/dist/api/sections/delete.d.ts +0 -2
  44. package/dist/api/sections/get.d.ts +0 -7
  45. package/dist/api/sections/index.d.ts +0 -4
  46. package/dist/api/sections/post.d.ts +0 -7
  47. package/dist/api/sections/put.d.ts +0 -8
  48. package/dist/api/staff/delete.d.ts +0 -2
  49. package/dist/api/staff/get.d.ts +0 -3
  50. package/dist/api/staff/post.d.ts +0 -2
  51. package/dist/api/staff/put.d.ts +0 -2
  52. package/dist/api/stores/get.d.ts +0 -12
  53. package/dist/api/stores/post.d.ts +0 -4
  54. package/dist/api/stores/put.d.ts +0 -6
  55. package/dist/api/stripe/get.d.ts +0 -0
  56. package/dist/api/stripe/post.d.ts +0 -6
  57. package/dist/api/stripe/put.d.ts +0 -0
  58. package/dist/api/supplies/delete.d.ts +0 -2
  59. package/dist/api/supplies/get.d.ts +0 -7
  60. package/dist/api/supplies/post.d.ts +0 -11
  61. package/dist/api/supplies/put.d.ts +0 -6
  62. package/dist/api/users/put.d.ts +0 -10
  63. package/dist/enum/index.d.ts +0 -10
  64. package/dist/index.d.ts +0 -3
  65. package/dist/interfaces/Api.d.ts +0 -3
  66. package/dist/interfaces/Company.d.ts +0 -0
  67. package/dist/interfaces/Customer.d.ts +0 -47
  68. package/dist/interfaces/Order.d.ts +0 -91
  69. package/dist/interfaces/Permission.d.ts +0 -22
  70. package/dist/interfaces/Product.d.ts +0 -51
  71. package/dist/interfaces/Section.d.ts +0 -13
  72. package/dist/interfaces/Store.d.ts +0 -323
  73. package/dist/interfaces/StoreImage.d.ts +0 -8
  74. package/dist/interfaces/User.d.ts +0 -38
  75. package/dist/utils/apiUtils.d.ts +0 -3
  76. package/dist/utils/index.d.ts +0 -1
  77. package/dist/utils/orders/calculateOrderTotal.d.ts +0 -5
  78. package/dist/utils/orders/calculateTotalTaxesIncluded.d.ts +0 -9
  79. package/dist/utils/orders/calculateTotalTaxesOverPrice.d.ts +0 -8
  80. package/dist/utils/orders/helpers.d.ts +0 -15
  81. package/dist/utils/orders/index.d.ts +0 -2
  82. package/dist/utils/receipt/generateReceiptHTML.d.ts +0 -0
  83. package/dist/utils/util.d.ts +0 -0
@@ -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,
@@ -1 +1,2 @@
1
1
  export { applyDiscountToProducts, calculateOrderTotal } from './orders';
2
+ export { getFormattedAddress } from './util';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.158",
3
+ "version": "0.0.160",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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,
@@ -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;
@@ -2,3 +2,5 @@ export {
2
2
  applyDiscountToProducts,
3
3
  calculateOrderTotal
4
4
  } from './orders';
5
+
6
+ export { getFormattedAddress } from './util';
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,2 +0,0 @@
1
- declare const _default: AxiosInstance;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const deleteCashierBoxById: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
@@ -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,4 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const updateCashierBoxById: (this: WashdayClientInstance, storeId: string, id: string, data: {
3
- name: string;
4
- }) => Promise<any>;
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const getCompanyById: (this: WashdayClientInstance, companyId: string) => 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>;
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const getCountries: (this: WashdayClientInstance) => Promise<any>;
File without changes
File without changes
@@ -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>;
@@ -1 +0,0 @@
1
- export * as getModule from './get';
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const deleteById: (this: WashdayClientInstance, id: string) => Promise<any>;
@@ -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,4 +0,0 @@
1
- export * as deleteModule from './delete';
2
- export * as getModule from './get';
3
- export * as postModule from './post';
4
- export * as putModule from './put';
@@ -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>;
@@ -1,7 +0,0 @@
1
- type WashdayClientConstructor = {
2
- new (apiToken: string): {
3
- apiToken: string;
4
- };
5
- };
6
- declare const WashdayClient: WashdayClientConstructor;
7
- export default WashdayClient;
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const deleteById: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
@@ -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,4 +0,0 @@
1
- export * as deleteModule from './delete';
2
- export * as getModule from './get';
3
- export * as postModule from './post';
4
- export * as putModule from './put';
@@ -1,7 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const create: (this: WashdayClientInstance, storeId: string, data: {
3
- product: string;
4
- stock: number;
5
- alertOnStock: number;
6
- stockActivityHistory: Array<any>;
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,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const getById: (this: WashdayClientInstance, id: string) => Promise<any>;
@@ -1,4 +0,0 @@
1
- export * as deleteModule from './delete';
2
- export * as getModule from './get';
3
- export * as postModule from './post';
4
- export * as putModule from './put';
@@ -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,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const deleteById: (this: WashdayClientInstance, id: string) => 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>;
@@ -1,4 +0,0 @@
1
- export * as deleteModule from './delete';
2
- export * as getModule from './get';
3
- export * as postModule from './post';
4
- export * as putModule from './put';
@@ -1,7 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const create: (this: WashdayClientInstance, data: {
3
- name: string;
4
- order: number;
5
- boxColor: string;
6
- store: string;
7
- }) => Promise<any>;
@@ -1,8 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const updateById: (this: WashdayClientInstance, id: string, data: {
3
- name?: string;
4
- order?: number;
5
- boxColor?: string;
6
- showInApp?: boolean;
7
- product?: any;
8
- }) => Promise<any>;
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const deleteStoreStaffById: (this: WashdayClientInstance, storeId: string, staffId: string) => Promise<any>;
@@ -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>;
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const createStoreStaff: (this: WashdayClientInstance, storeId: string, data: any) => Promise<any>;
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const updateStoreStaffById: (this: WashdayClientInstance, storeId: string, staffId: string, data: any) => Promise<any>;
@@ -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>;
@@ -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>;
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>;
File without changes
@@ -1,2 +0,0 @@
1
- import { WashdayClientInstance } from "../../interfaces/Api";
2
- export declare const deleteSupplyById: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
@@ -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>;
@@ -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 {};
@@ -1,10 +0,0 @@
1
- export declare enum DiscountCodeTypes {
2
- PERCENTAGE = "percentage",
3
- NUMBER = "number",
4
- FREE_DELIVERY = "freeDelivery",
5
- BUY_X_GET_Y = "buyXGetY"
6
- }
7
- export declare enum BuyAndGetConditionsTypes {
8
- PERCENTAGE = "percentage",
9
- FREE = "free"
10
- }
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import * as utils from './utils';
2
- import WashdayClient from './api';
3
- export { WashdayClient, utils };
@@ -1,3 +0,0 @@
1
- export type WashdayClientInstance = {
2
- apiToken: string;
3
- };
File without changes