washday-sdk 1.6.86 → 1.6.88

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 (182) hide show
  1. package/dist/api/attendance/delete.d.ts +0 -0
  2. package/dist/api/attendance/get.d.ts +25 -0
  3. package/dist/api/attendance/index.d.ts +3 -0
  4. package/dist/api/attendance/post.d.ts +4 -0
  5. package/dist/api/attendance/put.d.ts +8 -0
  6. package/dist/api/auth/get.d.ts +2 -0
  7. package/dist/api/auth/index.d.ts +2 -0
  8. package/dist/api/auth/post.d.ts +72 -0
  9. package/dist/api/axiosInstance.d.ts +4 -0
  10. package/dist/api/cashierbox/delete.d.ts +7 -0
  11. package/dist/api/cashierbox/get.d.ts +7 -0
  12. package/dist/api/cashierbox/post.d.ts +11 -0
  13. package/dist/api/cashierbox/put.d.ts +11 -0
  14. package/dist/api/cashups/delete.d.ts +2 -0
  15. package/dist/api/cashups/get.d.ts +8 -0
  16. package/dist/api/cashups/index.d.ts +3 -0
  17. package/dist/api/cashups/post.d.ts +11 -0
  18. package/dist/api/cashups/put.d.ts +0 -0
  19. package/dist/api/cfdi/delete.d.ts +5 -0
  20. package/dist/api/cfdi/get.d.ts +17 -0
  21. package/dist/api/cfdi/index.d.ts +3 -0
  22. package/dist/api/cfdi/post.d.ts +38 -0
  23. package/dist/api/cfdi/put.d.ts +0 -0
  24. package/dist/api/companies/get.d.ts +8 -0
  25. package/dist/api/companies/post.d.ts +14 -0
  26. package/dist/api/companies/put.d.ts +7 -0
  27. package/dist/api/config/get.d.ts +4 -0
  28. package/dist/api/config/index.d.ts +1 -0
  29. package/dist/api/countries/get.d.ts +2 -0
  30. package/dist/api/countries/post.d.ts +0 -0
  31. package/dist/api/countries/put.d.ts +0 -0
  32. package/dist/api/csv/get.d.ts +113 -0
  33. package/dist/api/csv/index.d.ts +1 -0
  34. package/dist/api/customers/delete.d.ts +3 -0
  35. package/dist/api/customers/get.d.ts +38 -0
  36. package/dist/api/customers/index.d.ts +5 -0
  37. package/dist/api/customers/patch.d.ts +3 -0
  38. package/dist/api/customers/post.d.ts +23 -0
  39. package/dist/api/customers/put.d.ts +31 -0
  40. package/dist/api/discounts/get.d.ts +14 -0
  41. package/dist/api/discounts/post.d.ts +3 -0
  42. package/dist/api/discounts/put.d.ts +18 -0
  43. package/dist/api/googleMaps/index.d.ts +1 -0
  44. package/dist/api/googleMaps/post.d.ts +10 -0
  45. package/dist/api/index.d.ts +6 -0
  46. package/dist/api/index.js +6 -0
  47. package/dist/api/integrations/delete.d.ts +0 -0
  48. package/dist/api/integrations/get.d.ts +14 -0
  49. package/dist/api/integrations/index.d.ts +2 -0
  50. package/dist/api/integrations/post.d.ts +40 -0
  51. package/dist/api/integrations/put.d.ts +0 -0
  52. package/dist/api/intercom/index.d.ts +1 -0
  53. package/dist/api/intercom/post.d.ts +17 -0
  54. package/dist/api/inventory/delete.d.ts +2 -0
  55. package/dist/api/inventory/get.d.ts +7 -0
  56. package/dist/api/inventory/index.d.ts +4 -0
  57. package/dist/api/inventory/post.d.ts +7 -0
  58. package/dist/api/inventory/put.d.ts +8 -0
  59. package/dist/api/invoiceModule/delete.d.ts +3 -0
  60. package/dist/api/invoiceModule/get.d.ts +9 -0
  61. package/dist/api/invoiceModule/index.d.ts +3 -0
  62. package/dist/api/invoiceModule/post.d.ts +6 -0
  63. package/dist/api/order/delete.d.ts +4 -0
  64. package/dist/api/order/get.d.ts +67 -0
  65. package/dist/api/order/index.d.ts +5 -0
  66. package/dist/api/order/patch.d.ts +13 -0
  67. package/dist/api/order/post.d.ts +52 -0
  68. package/dist/api/order/put.d.ts +55 -0
  69. package/dist/api/outsourcedOrders/delete.d.ts +2 -0
  70. package/dist/api/outsourcedOrders/get.d.ts +20 -0
  71. package/dist/api/outsourcedOrders/index.d.ts +4 -0
  72. package/dist/api/outsourcedOrders/post.d.ts +15 -0
  73. package/dist/api/outsourcedOrders/put.d.ts +12 -0
  74. package/dist/api/partners/delete.d.ts +2 -0
  75. package/dist/api/partners/get.d.ts +3 -0
  76. package/dist/api/partners/index.d.ts +4 -0
  77. package/dist/api/partners/post.d.ts +9 -0
  78. package/dist/api/partners/put.d.ts +9 -0
  79. package/dist/api/pdf/get.d.ts +8 -0
  80. package/dist/api/pdf/index.d.ts +1 -0
  81. package/dist/api/products/delete.d.ts +4 -0
  82. package/dist/api/products/get.d.ts +3 -0
  83. package/dist/api/products/index.d.ts +4 -0
  84. package/dist/api/products/post.d.ts +47 -0
  85. package/dist/api/products/put.d.ts +35 -0
  86. package/dist/api/publics/get.d.ts +4 -0
  87. package/dist/api/publics/index.d.ts +1 -0
  88. package/dist/api/reports/get.d.ts +130 -0
  89. package/dist/api/reports/index.d.ts +1 -0
  90. package/dist/api/reviews/delete.d.ts +0 -0
  91. package/dist/api/reviews/get.d.ts +5 -0
  92. package/dist/api/reviews/index.d.ts +1 -0
  93. package/dist/api/reviews/post.d.ts +0 -0
  94. package/dist/api/reviews/put.d.ts +0 -0
  95. package/dist/api/routes/delete.d.ts +2 -0
  96. package/dist/api/routes/get.d.ts +65 -0
  97. package/dist/api/routes/index.d.ts +5 -0
  98. package/dist/api/routes/patch.d.ts +7 -0
  99. package/dist/api/routes/post.d.ts +21 -0
  100. package/dist/api/routes/put.d.ts +11 -0
  101. package/dist/api/sections/delete.d.ts +2 -0
  102. package/dist/api/sections/get.d.ts +13 -0
  103. package/dist/api/sections/index.d.ts +4 -0
  104. package/dist/api/sections/post.d.ts +7 -0
  105. package/dist/api/sections/put.d.ts +8 -0
  106. package/dist/api/staff/delete.d.ts +2 -0
  107. package/dist/api/staff/get.d.ts +7 -0
  108. package/dist/api/staff/post.d.ts +2 -0
  109. package/dist/api/staff/put.d.ts +3 -0
  110. package/dist/api/stores/get.d.ts +25 -0
  111. package/dist/api/stores/post.d.ts +4 -0
  112. package/dist/api/stores/put.d.ts +12 -0
  113. package/dist/api/stripe/get.d.ts +0 -0
  114. package/dist/api/stripe/post.d.ts +19 -0
  115. package/dist/api/stripe/put.d.ts +0 -0
  116. package/dist/api/supplies/delete.d.ts +2 -0
  117. package/dist/api/supplies/get.d.ts +7 -0
  118. package/dist/api/supplies/post.d.ts +11 -0
  119. package/dist/api/supplies/put.d.ts +6 -0
  120. package/dist/api/updates/get.d.ts +8 -0
  121. package/dist/api/updates/index.d.ts +2 -0
  122. package/dist/api/updates/post.d.ts +2 -0
  123. package/dist/api/users/delete.d.ts +2 -0
  124. package/dist/api/users/get.d.ts +2 -0
  125. package/dist/api/users/post.d.ts +4 -0
  126. package/dist/api/users/put.d.ts +21 -0
  127. package/dist/api/websiteBuilder/get.d.ts +6 -0
  128. package/dist/api/websiteBuilder/get.js +41 -0
  129. package/dist/api/websiteBuilder/index.d.ts +2 -0
  130. package/dist/api/websiteBuilder/index.js +2 -0
  131. package/dist/api/websiteBuilder/put.d.ts +3 -0
  132. package/dist/api/websiteBuilder/put.js +26 -0
  133. package/dist/api/websiteBuilder/response.d.ts +1 -0
  134. package/dist/api/websiteBuilder/response.js +6 -0
  135. package/dist/enum/index.d.ts +39 -0
  136. package/dist/index.d.ts +20 -0
  137. package/dist/index.js +1 -0
  138. package/dist/interfaces/Api.d.ts +434 -0
  139. package/dist/interfaces/Apple.d.ts +65 -0
  140. package/dist/interfaces/Attendance.d.ts +124 -0
  141. package/dist/interfaces/Auth.d.ts +8 -0
  142. package/dist/interfaces/Cfdi.d.ts +62 -0
  143. package/dist/interfaces/Company.d.ts +196 -0
  144. package/dist/interfaces/Config.d.ts +13 -0
  145. package/dist/interfaces/Customer.d.ts +68 -0
  146. package/dist/interfaces/DomainUrls.d.ts +10 -0
  147. package/dist/interfaces/GoogleMaps.d.ts +84 -0
  148. package/dist/interfaces/InvoiceModule.d.ts +100 -0
  149. package/dist/interfaces/Order.d.ts +255 -0
  150. package/dist/interfaces/Permission.d.ts +32 -0
  151. package/dist/interfaces/Product.d.ts +113 -0
  152. package/dist/interfaces/Route.d.ts +66 -0
  153. package/dist/interfaces/Section.d.ts +13 -0
  154. package/dist/interfaces/Store.d.ts +416 -0
  155. package/dist/interfaces/StoreImage.d.ts +8 -0
  156. package/dist/interfaces/User.d.ts +40 -0
  157. package/dist/interfaces/WebsiteBuilder.d.ts +72 -0
  158. package/dist/interfaces/WebsiteBuilder.js +1 -0
  159. package/dist/utils/apiUtils.d.ts +3 -0
  160. package/dist/utils/index.d.ts +2 -0
  161. package/dist/utils/orders/calculateOrderTotal.d.ts +5 -0
  162. package/dist/utils/orders/calculateTotalTaxesIncluded.d.ts +1 -0
  163. package/dist/utils/orders/calculateTotalTaxesOverPrice.d.ts +11 -0
  164. package/dist/utils/orders/helpers.d.ts +44 -0
  165. package/dist/utils/orders/index.d.ts +3 -0
  166. package/dist/utils/receipt/generateReceiptHTML.d.ts +0 -0
  167. package/dist/utils/util.d.ts +2 -0
  168. package/package.json +2 -1
  169. package/src/api/index.ts +8 -2
  170. package/src/api/stores/get.ts +1 -1
  171. package/src/api/websiteBuilder/get.ts +34 -0
  172. package/src/api/websiteBuilder/index.ts +2 -0
  173. package/src/api/websiteBuilder/put.ts +24 -0
  174. package/src/api/websiteBuilder/response.ts +7 -0
  175. package/src/index.ts +1 -0
  176. package/src/interfaces/Api.ts +7 -1
  177. package/src/interfaces/StoreReceptionValidation.contract.test.ts +16 -3
  178. package/src/interfaces/WebsiteBuilder.ts +89 -0
  179. package/test/sdk.publishWorkflow.test.ts +12 -0
  180. package/test/storeReceptionValidation.contract.test.ts +13 -3
  181. package/test/websiteBuilder.test.ts +162 -0
  182. package/tsconfig.json +1 -0
File without changes
@@ -0,0 +1,25 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const getHistory: (this: WashdayClientInstance, params: {
3
+ userId?: string;
4
+ storeId?: string;
5
+ startDate?: string;
6
+ endDate?: string;
7
+ pageNum?: string;
8
+ limit?: string;
9
+ }) => Promise<any>;
10
+ export declare const getStatus: (this: WashdayClientInstance, params?: {
11
+ storeId?: string;
12
+ userId?: string;
13
+ }) => Promise<any>;
14
+ export declare const getStoreReport: (this: WashdayClientInstance, storeId: string, params?: {
15
+ startDate?: string;
16
+ endDate?: string;
17
+ employeeId?: string;
18
+ pageNum?: string | number;
19
+ limit?: string | number;
20
+ }) => Promise<any>;
21
+ export declare const exportStoreReport: (this: WashdayClientInstance, storeId: string, params?: {
22
+ startDate?: string;
23
+ endDate?: string;
24
+ employeeId?: string;
25
+ }) => Promise<any>;
@@ -0,0 +1,3 @@
1
+ export * as getModule from './get';
2
+ export * as postModule from './post';
3
+ export * as putModule from './put';
@@ -0,0 +1,4 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import type { ClockInRequest, ClockOutRequest } from "../../interfaces/Attendance";
3
+ export declare const clockIn: (this: WashdayClientInstance, data: ClockInRequest) => Promise<any>;
4
+ export declare const clockOut: (this: WashdayClientInstance, data: ClockOutRequest) => Promise<any>;
@@ -0,0 +1,8 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export interface UpdateAttendanceEntryRequest {
3
+ timestamp?: string;
4
+ notes?: string;
5
+ reason: string;
6
+ editorId?: string;
7
+ }
8
+ export declare const updateById: (this: WashdayClientInstance, id: string, data: UpdateAttendanceEntryRequest) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const getSignupCountrySuggestion: (this: WashdayClientInstance) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ export * as getModule from './get';
2
+ export * as postModule from './post';
@@ -0,0 +1,72 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { AppleAuthenticationCredential } from "../../interfaces/Apple";
3
+ export declare const customerLoginToken: (this: WashdayClientInstance, params: {
4
+ token: string;
5
+ }) => Promise<any>;
6
+ export declare const appleLogin: (this: WashdayClientInstance, params: {
7
+ companyId: string;
8
+ storeId: string;
9
+ credentials: AppleAuthenticationCredential;
10
+ }) => Promise<any>;
11
+ export declare const facebookLogin: (this: WashdayClientInstance, params: {
12
+ companyId: string;
13
+ storeId: string;
14
+ accessToken: string;
15
+ authToken: string;
16
+ }) => Promise<any>;
17
+ export declare const customerRegularLogin: (this: WashdayClientInstance, params: {
18
+ companyId: string;
19
+ storeId: string;
20
+ email: string;
21
+ password: string;
22
+ }) => Promise<any>;
23
+ export declare const customerSignUp: (this: WashdayClientInstance, params: {
24
+ storeId: string;
25
+ companyId: string;
26
+ name: string;
27
+ phone: string;
28
+ email: string;
29
+ password: string;
30
+ }) => Promise<any>;
31
+ export declare const googleLogin: (this: WashdayClientInstance, params: {
32
+ companyId: string;
33
+ storeId: string;
34
+ credentials: {
35
+ email: string;
36
+ verified_email: boolean;
37
+ name: string;
38
+ give_name: string;
39
+ locale: string;
40
+ };
41
+ }) => Promise<any>;
42
+ export declare const regularUserLogin: (this: WashdayClientInstance, params: {
43
+ email: string;
44
+ password: string;
45
+ }) => Promise<any>;
46
+ export declare const companySignUp: (this: WashdayClientInstance, params: {
47
+ email: string;
48
+ password: string;
49
+ companyName: string;
50
+ name: string;
51
+ phoneNumber: string;
52
+ country: string;
53
+ city: string;
54
+ languagePreference: string;
55
+ isActive: boolean;
56
+ }) => Promise<any>;
57
+ export declare const regularUserTokenLogin: (this: WashdayClientInstance, params: {
58
+ token: string;
59
+ }) => Promise<any>;
60
+ export declare const forgotPassword: (this: WashdayClientInstance, params: {
61
+ email: string;
62
+ }) => Promise<any>;
63
+ export declare const customersAppForgotPassword: (this: WashdayClientInstance, companyId: string, params: {
64
+ email: string;
65
+ }) => Promise<any>;
66
+ export declare const customersAppChangePassword: (this: WashdayClientInstance, params: {
67
+ password: string;
68
+ token: string | null;
69
+ }) => Promise<any>;
70
+ export declare const pinLogin: (this: WashdayClientInstance, data: {
71
+ pinCode: string;
72
+ }) => Promise<any>;
@@ -0,0 +1,4 @@
1
+ import { AxiosInstance } from 'axios';
2
+ export declare const getAxiosInstance: (env?: string, clientId?: string, clientSecret?: string) => AxiosInstance;
3
+ declare const _default: AxiosInstance;
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const deleteCashierBoxById: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
3
+ export declare const deleteCashierBoxMovementById: (this: WashdayClientInstance, { storeId, cashierBoxId, movementId }: {
4
+ storeId: string;
5
+ cashierBoxId: string;
6
+ movementId: string;
7
+ }) => Promise<any>;
@@ -0,0 +1,7 @@
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>;
@@ -0,0 +1,11 @@
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>;
@@ -0,0 +1,11 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const updateCashierBoxById: (this: WashdayClientInstance, storeId: string, id: string, data: {
3
+ name: string;
4
+ }) => Promise<any>;
5
+ export declare const updateCashierBoxMovementById: (this: WashdayClientInstance, { storeId, cashierBoxId, id }: {
6
+ storeId: string;
7
+ cashierBoxId: string;
8
+ id: string;
9
+ }, data: {
10
+ name: string;
11
+ }) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const deleteCashUpReport: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
@@ -0,0 +1,8 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const getList: (this: WashdayClientInstance, storeId: string, params: {
3
+ pageNum?: string;
4
+ limit?: string;
5
+ cashierBoxId?: string;
6
+ }) => Promise<any>;
7
+ export declare const getById: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
8
+ export declare const getPreviewDataForCashClose: (this: WashdayClientInstance, storeId: string, id: string) => Promise<any>;
@@ -0,0 +1,3 @@
1
+ export * as deleteModule from './delete';
2
+ export * as getModule from './get';
3
+ export * as postModule from './post';
@@ -0,0 +1,11 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const create: (this: WashdayClientInstance, storeId: string, id: string, data: {
3
+ cashierBox: string;
4
+ startingCash: number;
5
+ declaredCash: number;
6
+ declaredCard: number;
7
+ declaredTransfer: number;
8
+ declaredMercadoPago: number;
9
+ cashToBank: number;
10
+ notes: string;
11
+ }) => Promise<any>;
File without changes
@@ -0,0 +1,5 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const cancelCFDI: (this: WashdayClientInstance, id: string, data: {
3
+ motive: string;
4
+ substitution?: string;
5
+ }) => Promise<any>;
@@ -0,0 +1,17 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const getList: (this: WashdayClientInstance, params: {
3
+ query?: string;
4
+ storeId?: string;
5
+ fromDate?: string;
6
+ toDate?: string;
7
+ limit?: string;
8
+ pageNum?: string;
9
+ }) => Promise<any>;
10
+ export declare const getCFDIPreviewByOrderId: (this: WashdayClientInstance, id: string) => Promise<any>;
11
+ export declare const downloadCFDIPDF: (this: WashdayClientInstance, id: string) => Promise<any>;
12
+ export declare const downloadCFDIZIP: (this: WashdayClientInstance, id: string) => Promise<any>;
13
+ export declare const sendCFDIByEmail: (this: WashdayClientInstance, id: string) => Promise<any>;
14
+ export declare const getCFDIPreview: (this: WashdayClientInstance, params: {
15
+ ordersID?: string[];
16
+ customer?: string;
17
+ }) => Promise<any>;
@@ -0,0 +1,3 @@
1
+ export * as deleteModule from './delete';
2
+ export * as getModule from './get';
3
+ export * as postModule from './post';
@@ -0,0 +1,38 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { GlobalByPaymentMethodCFDIPayload, SearchGlobalByPaymentMethodCandidatesPayload } from "../../interfaces/Cfdi";
3
+ export declare const createCFDI: (this: WashdayClientInstance, data: {
4
+ ordersID: string[];
5
+ CFDIInfo: {
6
+ use: string;
7
+ payment_method: string;
8
+ payment_form: string;
9
+ sendEmailInvoice?: boolean;
10
+ date: string;
11
+ env?: "prod" | "dev";
12
+ global?: {
13
+ periodicity: "";
14
+ months: "";
15
+ year: "";
16
+ };
17
+ };
18
+ customer?: string;
19
+ }) => Promise<any>;
20
+ export declare const createGlobalCFDI: (this: WashdayClientInstance, data: {
21
+ ordersID: string[];
22
+ CFDIInfo: {
23
+ sendEmailInvoice: boolean;
24
+ use: string;
25
+ payment_method: string;
26
+ payment_form: string;
27
+ date: string;
28
+ global: {
29
+ periodicity: string;
30
+ months: string;
31
+ year: string;
32
+ };
33
+ };
34
+ customer?: string;
35
+ }) => Promise<any>;
36
+ export declare const searchGlobalByPaymentMethodCandidates: (this: WashdayClientInstance, data: SearchGlobalByPaymentMethodCandidatesPayload) => Promise<any>;
37
+ export declare const previewGlobalByPaymentMethodCFDI: (this: WashdayClientInstance, data: GlobalByPaymentMethodCFDIPayload) => Promise<any>;
38
+ export declare const createGlobalByPaymentMethodCFDI: (this: WashdayClientInstance, data: GlobalByPaymentMethodCFDIPayload) => Promise<any>;
File without changes
@@ -0,0 +1,8 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { GetAvailableBillingExtraPackagesRequest, GetAvailableSubscriptionPlansRequest, GetCFDIAddonStatusRequest } from "../../interfaces/Company";
3
+ export declare const getCompanyById: (this: WashdayClientInstance, companyId: string) => Promise<any>;
4
+ export declare const getCompanyOrdersMetrics: (this: WashdayClientInstance) => Promise<any>;
5
+ export declare const getGarmentAttributeCatalogs: (this: WashdayClientInstance, companyId: string) => Promise<any>;
6
+ export declare const getCFDIAddonStatus: (this: WashdayClientInstance, data: GetCFDIAddonStatusRequest) => Promise<any>;
7
+ export declare const getAvailableSubscriptionPlans: (this: WashdayClientInstance, data?: GetAvailableSubscriptionPlansRequest) => Promise<any>;
8
+ export declare const getAvailableBillingExtraPackages: (this: WashdayClientInstance, data?: GetAvailableBillingExtraPackagesRequest) => Promise<any>;
@@ -0,0 +1,14 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { ApplySubscriptionPlanChangeRequest, CFDIAddonToggleRequest, PreviewSubscriptionPlanChangeRequest } from "../../interfaces/Company";
3
+ export declare const updateCompanyTaxInfoCertificates: (this: WashdayClientInstance, companyId: string, data: FormData) => Promise<any>;
4
+ export declare const updateCFDIOrgLogo: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
5
+ export declare const enableBillingOverage: (this: WashdayClientInstance, data: {
6
+ companyId: string;
7
+ }) => Promise<import("axios").AxiosResponse<any, any, {}>>;
8
+ export declare const disableBillingOverage: (this: WashdayClientInstance, data: {
9
+ companyId: string;
10
+ }) => Promise<import("axios").AxiosResponse<any, any, {}>>;
11
+ export declare const enableCFDIAddon: (this: WashdayClientInstance, data: CFDIAddonToggleRequest) => Promise<any>;
12
+ export declare const disableCFDIAddon: (this: WashdayClientInstance, data: CFDIAddonToggleRequest) => Promise<any>;
13
+ export declare const previewSubscriptionPlanChange: (this: WashdayClientInstance, data: PreviewSubscriptionPlanChangeRequest) => Promise<any>;
14
+ export declare const changeSubscriptionPlan: (this: WashdayClientInstance, data: ApplySubscriptionPlanChangeRequest) => Promise<any>;
@@ -0,0 +1,7 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { UpdateCompanySubscriptionBillingInfoPayload, UpdateGarmentAttributeCatalogsRequest } from "../../interfaces/Company";
3
+ export declare const updateCompanyById: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
4
+ export declare const updateCompanyLogoById: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
5
+ export declare const updateCompanyTaxInfoById: (this: WashdayClientInstance, companyId: string, data: any) => Promise<any>;
6
+ export declare const updateCompanySubscriptionBillingInfoById: (this: WashdayClientInstance, companyId: string, data: UpdateCompanySubscriptionBillingInfoPayload) => Promise<any>;
7
+ export declare const updateGarmentAttributeCatalogsById: (this: WashdayClientInstance, companyId: string, data: UpdateGarmentAttributeCatalogsRequest) => Promise<any>;
@@ -0,0 +1,4 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const getTaxPresets: (this: WashdayClientInstance, params?: {
3
+ country?: string;
4
+ }) => Promise<any>;
@@ -0,0 +1 @@
1
+ export * as getModule from "./get";
@@ -0,0 +1,2 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const getCountries: (this: WashdayClientInstance) => Promise<any>;
File without changes
File without changes
@@ -0,0 +1,113 @@
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
+ createdIn?: string;
12
+ }) => Promise<any>;
13
+ export declare const exportOrdersList: (this: WashdayClientInstance, params: {
14
+ storeId: string | undefined;
15
+ status: string | undefined;
16
+ name: string | undefined;
17
+ phone: string | undefined;
18
+ email: string | undefined;
19
+ fromDate: string | undefined;
20
+ toDate: string | undefined;
21
+ sequence: string | undefined;
22
+ pageNum: string | undefined;
23
+ limit: string | undefined;
24
+ sequenceSort: string;
25
+ cleanedDateTime: string | undefined;
26
+ readyDateTime: string | undefined;
27
+ collectedDateTime: string | undefined;
28
+ q: string | undefined;
29
+ assignedEmployee?: string | undefined;
30
+ }) => Promise<any>;
31
+ export declare const exportProductsList: (this: WashdayClientInstance, storeId: string) => Promise<any>;
32
+ export declare const exportCleanedOrdersReport: (this: WashdayClientInstance, storeId: string, params: {
33
+ fromDate?: string;
34
+ toDate?: string;
35
+ timezone?: string;
36
+ }) => Promise<any>;
37
+ export declare const exportSalesReport: (this: WashdayClientInstance, storeId: string, params: {
38
+ fromDate?: string;
39
+ toDate?: string;
40
+ timezone?: string;
41
+ type: "daily" | "month" | "year";
42
+ }) => Promise<any>;
43
+ export declare const exportCustomersReport: (this: WashdayClientInstance, storeId: string, params: {
44
+ fromDate?: string;
45
+ toDate?: string;
46
+ sortBy?: "lastOrderDate";
47
+ sortOrder?: "asc" | "desc";
48
+ }) => Promise<any>;
49
+ export declare const exportSuppliesReport: (this: WashdayClientInstance, storeId: string, params: {
50
+ fromDate?: string;
51
+ toDate?: string;
52
+ }) => Promise<any>;
53
+ export declare const exportDiscountCodesReport: (this: WashdayClientInstance, storeId: string, params: {}) => Promise<any>;
54
+ export declare const exportStaffReport: (this: WashdayClientInstance, storeId: string, params: {
55
+ fromDate?: string;
56
+ toDate?: string;
57
+ }) => Promise<any>;
58
+ export declare const exportProductSalesReport: (this: WashdayClientInstance, storeId: string, params: {
59
+ fromDate?: string;
60
+ toDate?: string;
61
+ timezone?: string;
62
+ groupBySection?: boolean;
63
+ }) => Promise<any>;
64
+ export declare const exportPaymentLinesReport: (this: WashdayClientInstance, storeId: string, params: {
65
+ fromDate?: string;
66
+ toDate?: string;
67
+ timezone?: string;
68
+ }) => Promise<any>;
69
+ export declare const exportOutsourcingReport: (this: WashdayClientInstance, storeId: string, params: {
70
+ statuses?: string | string[];
71
+ sequence?: string;
72
+ partnerId?: string;
73
+ dateFrom?: string;
74
+ dateTo?: string;
75
+ dateField?: "sentDate" | "receivedDate" | "createdAt" | "updatedAt";
76
+ sortBy?: "sentDate" | "receivedDate" | "createdAt" | "updatedAt" | "outsourcedOrderSequence";
77
+ sortDirection?: "asc" | "desc";
78
+ timezone?: string;
79
+ }) => Promise<any>;
80
+ export declare const exportCashierBoxMovementsReport: (this: WashdayClientInstance, storeId: string, params: {
81
+ cashierBoxId?: string;
82
+ fromDate?: string;
83
+ toDate?: string;
84
+ timezone?: string;
85
+ }) => Promise<any>;
86
+ export declare const exportCashUpReportsByDateRange: (this: WashdayClientInstance, storeId: string, params: {
87
+ fromDate?: string;
88
+ toDate?: string;
89
+ cashierBoxId?: string;
90
+ }) => Promise<any>;
91
+ export declare const exportUnpaidOrdersReportCSV: (this: WashdayClientInstance, storeId: string, params: {
92
+ fromDate?: string;
93
+ toDate?: string;
94
+ timezone?: string;
95
+ customerName?: string;
96
+ }) => Promise<any>;
97
+ export declare const exportAttendanceReport: (this: WashdayClientInstance, storeId: string, params: {
98
+ fromDate?: string;
99
+ toDate?: string;
100
+ employeeId?: string;
101
+ }) => Promise<any>;
102
+ export declare const exportScheduledDeliveriesReport: (this: WashdayClientInstance, companyId: string, params: {
103
+ storeId?: string;
104
+ dateFrom?: string;
105
+ dateTo?: string;
106
+ includeDelivered?: string;
107
+ }) => Promise<any>;
108
+ export declare const exportServicesToDeliverReport: (this: WashdayClientInstance, companyId: string, params: {
109
+ storeId?: string;
110
+ dateFrom?: string;
111
+ dateTo?: string;
112
+ hideReady?: string;
113
+ }) => Promise<any>;
@@ -0,0 +1 @@
1
+ export * as getModule from './get';
@@ -0,0 +1,3 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const deleteByIdCustomersApp: (this: WashdayClientInstance, id: string) => Promise<any>;
3
+ export declare const deleteById: (this: WashdayClientInstance, id: string) => Promise<any>;
@@ -0,0 +1,38 @@
1
+ import { GenericAbortSignal } from "axios";
2
+ import { WashdayClientInstance } from "../../interfaces/Api";
3
+ import { ICustomer } from "../../interfaces/Customer";
4
+ import { IOrderInfo } from "../../interfaces/Order";
5
+ export declare const getList: (this: WashdayClientInstance, params: {
6
+ searchTerm?: string;
7
+ name?: string;
8
+ phone?: string;
9
+ email?: string;
10
+ fromDate?: string;
11
+ toDate?: string;
12
+ limit: string;
13
+ pageNum: string;
14
+ createdIn?: string;
15
+ includeOrderMetrics?: string;
16
+ signal?: GenericAbortSignal;
17
+ }, options?: {
18
+ signal?: GenericAbortSignal;
19
+ }) => Promise<any>;
20
+ export declare const getCustomerById: (this: WashdayClientInstance, customerId: string) => Promise<{
21
+ customer: ICustomer;
22
+ orderInfo: IOrderInfo;
23
+ }>;
24
+ export declare const getCustomerHighlightsById: (this: WashdayClientInstance, customerId: string) => Promise<{
25
+ customer: ICustomer;
26
+ orderInfo: IOrderInfo;
27
+ }>;
28
+ export declare const getCustomerOrders: (this: WashdayClientInstance, customerId: string, params: {
29
+ limit: string;
30
+ pageNum: string;
31
+ }) => Promise<{
32
+ orders: any;
33
+ totalRowsCount: any;
34
+ }>;
35
+ export declare const getCustomerByIdCustomersApp: (this: WashdayClientInstance, customerId: string) => Promise<{
36
+ customer: ICustomer;
37
+ }>;
38
+ export declare const getCustomerLoyaltyHistory: (this: WashdayClientInstance, customerId: string) => Promise<any>;
@@ -0,0 +1,5 @@
1
+ export * as deleteModule from './delete';
2
+ export * as getModule from './get';
3
+ export * as patchModule from './patch';
4
+ export * as postModule from './post';
5
+ export * as putModule from './put';
@@ -0,0 +1,3 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { UpdateCustomersAppCustomerAddressPayload, UpdateCustomersAppCustomerAddressResponse } from "../../interfaces/Customer";
3
+ export declare const updateAddressCustomersApp: (this: WashdayClientInstance, payload: UpdateCustomersAppCustomerAddressPayload) => Promise<UpdateCustomersAppCustomerAddressResponse>;
@@ -0,0 +1,23 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const create: (this: WashdayClientInstance, data: {
3
+ name: string;
4
+ lastName?: string;
5
+ phone?: string;
6
+ phoneCountryCode?: string;
7
+ phoneCountryName?: string;
8
+ email?: string;
9
+ address?: string;
10
+ notes?: string;
11
+ privateNotes?: string;
12
+ discount: number;
13
+ credit: number;
14
+ rfc?: string;
15
+ invoiceInfo?: {
16
+ legal_name?: string;
17
+ tax_system?: string;
18
+ zipCode?: string;
19
+ };
20
+ isActive: boolean;
21
+ createdIn?: string;
22
+ }) => Promise<any>;
23
+ export declare const bulkCreate: (this: WashdayClientInstance, storeId: string, data: any) => Promise<any>;
@@ -0,0 +1,31 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ export declare const updateById: (this: WashdayClientInstance, id: string, data: {
3
+ name?: string;
4
+ lastName?: string;
5
+ phone?: string;
6
+ phoneCountryCode?: string;
7
+ phoneCountryName?: string;
8
+ email?: string;
9
+ address?: string;
10
+ notes?: string;
11
+ privateNotes?: string;
12
+ discount?: number;
13
+ credit?: number;
14
+ rfc?: string;
15
+ invoiceInfo?: {
16
+ legal_name?: string;
17
+ tax_system?: string;
18
+ zipCode?: string;
19
+ };
20
+ isActive?: boolean;
21
+ }) => Promise<any>;
22
+ export declare const updateByIdCustomersApp: (this: WashdayClientInstance, id: string, data: {
23
+ name?: string;
24
+ lastName?: string;
25
+ phone?: string;
26
+ phoneCountryCode?: string;
27
+ phoneCountryName?: string;
28
+ address?: string;
29
+ notes?: string;
30
+ customersAppPushNotificationToken?: string;
31
+ }) => Promise<any>;
@@ -0,0 +1,14 @@
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?: {}) => 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, params?: {
7
+ orderSubtotal?: number;
8
+ currentDate?: string;
9
+ }) => Promise<any>;
10
+ export declare const verifyDiscountCodeCustomersApp: (this: WashdayClientInstance, storeId: string, code: string, params?: {
11
+ orderSubtotal?: number;
12
+ currentDate?: string;
13
+ }) => Promise<any>;
14
+ export declare const getAvailableAutomaticDiscounts: (this: WashdayClientInstance, storeId: string, date: string) => Promise<any>;
@@ -0,0 +1,3 @@
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>;
@@ -0,0 +1,18 @@
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>;
4
+ export declare const updateAutomaticDiscountById: (this: WashdayClientInstance, storeId: string, discountId: string, data: {
5
+ products: string[];
6
+ }) => Promise<any>;
7
+ export declare const updateDiscountCodeById: (this: WashdayClientInstance, storeId: string, discountId: string, data: {
8
+ products?: string[];
9
+ buyAndGetConditions?: any;
10
+ freeProductSetting?: any;
11
+ name?: string;
12
+ code?: string;
13
+ fromDate?: string;
14
+ toDate?: string;
15
+ applyOnceOnOrder?: boolean;
16
+ applyToAllProducts?: boolean;
17
+ minimumOrderSubtotal?: number;
18
+ }) => Promise<any>;
@@ -0,0 +1 @@
1
+ export * as postModule from "./post";
@@ -0,0 +1,10 @@
1
+ import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { GoogleMapsAutocompletePayload, GoogleMapsAutocompleteResponse, GoogleMapsGeocodePayload, GoogleMapsGeocodeResponse, GoogleMapsPlaceDetailsPayload, GoogleMapsPlaceDetailsResponse, GoogleMapsReverseGeocodePayload, GoogleMapsReverseGeocodeResponse } from "../../interfaces/GoogleMaps";
3
+ export declare const autocompleteCustomersApp: (this: WashdayClientInstance, payload: GoogleMapsAutocompletePayload) => Promise<GoogleMapsAutocompleteResponse>;
4
+ export declare const placeDetailsCustomersApp: (this: WashdayClientInstance, payload: GoogleMapsPlaceDetailsPayload) => Promise<GoogleMapsPlaceDetailsResponse>;
5
+ export declare const geocodeCustomersApp: (this: WashdayClientInstance, payload: GoogleMapsGeocodePayload) => Promise<GoogleMapsGeocodeResponse>;
6
+ export declare const reverseGeocodeCustomersApp: (this: WashdayClientInstance, payload: GoogleMapsReverseGeocodePayload) => Promise<GoogleMapsReverseGeocodeResponse>;
7
+ export declare const autocomplete: (this: WashdayClientInstance, payload: GoogleMapsAutocompletePayload) => Promise<GoogleMapsAutocompleteResponse>;
8
+ export declare const placeDetails: (this: WashdayClientInstance, payload: GoogleMapsPlaceDetailsPayload) => Promise<GoogleMapsPlaceDetailsResponse>;
9
+ export declare const geocode: (this: WashdayClientInstance, payload: GoogleMapsGeocodePayload) => Promise<GoogleMapsGeocodeResponse>;
10
+ export declare const reverseGeocode: (this: WashdayClientInstance, payload: GoogleMapsReverseGeocodePayload) => Promise<GoogleMapsReverseGeocodeResponse>;
@@ -0,0 +1,6 @@
1
+ import { WashdayClientInstance } from "../interfaces/Api";
2
+ type WashdayClientConstructor = {
3
+ new (apiToken: string | null, env?: string, clientId?: string, clientSecret?: string): WashdayClientInstance;
4
+ };
5
+ declare const WashdayClient: WashdayClientConstructor;
6
+ export default WashdayClient;