digikhata-mashreq-sdk 0.1.1

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 (203) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +37 -0
  3. package/lib/module/App.js +41 -0
  4. package/lib/module/App.js.map +1 -0
  5. package/lib/module/app/assets/Icons/Bill.png +0 -0
  6. package/lib/module/app/assets/Icons/Cash.png +0 -0
  7. package/lib/module/app/assets/Icons/Expense.png +0 -0
  8. package/lib/module/app/assets/Icons/Staff.png +0 -0
  9. package/lib/module/app/assets/Icons/Stock.png +0 -0
  10. package/lib/module/app/assets/images/bill.png +0 -0
  11. package/lib/module/app/assets/images/book.png +0 -0
  12. package/lib/module/app/assets/images/digiKhataSolo256.png +0 -0
  13. package/lib/module/app/assets/images/money.png +0 -0
  14. package/lib/module/app/assets/images/staff.png +0 -0
  15. package/lib/module/app/assets/images/stock.png +0 -0
  16. package/lib/module/app/assets/images/svgviewer-png-output-white.png +0 -0
  17. package/lib/module/app/components/Balance.js +153 -0
  18. package/lib/module/app/components/Balance.js.map +1 -0
  19. package/lib/module/app/components/CountryPhoneInput.js +271 -0
  20. package/lib/module/app/components/CountryPhoneInput.js.map +1 -0
  21. package/lib/module/app/components/Entries.js +89 -0
  22. package/lib/module/app/components/Entries.js.map +1 -0
  23. package/lib/module/app/components/SearchBar.js +70 -0
  24. package/lib/module/app/components/SearchBar.js.map +1 -0
  25. package/lib/module/app/components/Transaction.js +108 -0
  26. package/lib/module/app/components/Transaction.js.map +1 -0
  27. package/lib/module/app/components/User.js +109 -0
  28. package/lib/module/app/components/User.js.map +1 -0
  29. package/lib/module/app/components/index.js +10 -0
  30. package/lib/module/app/components/index.js.map +1 -0
  31. package/lib/module/app/database/clients.js +149 -0
  32. package/lib/module/app/database/clients.js.map +1 -0
  33. package/lib/module/app/database/database.js +9 -0
  34. package/lib/module/app/database/database.js.map +1 -0
  35. package/lib/module/app/database/schema.js +525 -0
  36. package/lib/module/app/database/schema.js.map +1 -0
  37. package/lib/module/app/navigation/BottomTabs/BottomTabs.js +29 -0
  38. package/lib/module/app/navigation/BottomTabs/BottomTabs.js.map +1 -0
  39. package/lib/module/app/navigation/Drawer/Drawer.js +13 -0
  40. package/lib/module/app/navigation/Drawer/Drawer.js.map +1 -0
  41. package/lib/module/app/navigation/HomeStack/HomeStack.js +36 -0
  42. package/lib/module/app/navigation/HomeStack/HomeStack.js.map +1 -0
  43. package/lib/module/app/navigation/Root.js +26 -0
  44. package/lib/module/app/navigation/Root.js.map +1 -0
  45. package/lib/module/app/navigation/index.js +7 -0
  46. package/lib/module/app/navigation/index.js.map +1 -0
  47. package/lib/module/app/redux/Store.js +10 -0
  48. package/lib/module/app/redux/Store.js.map +1 -0
  49. package/lib/module/app/redux/reducers/client/client_actions.js +2 -0
  50. package/lib/module/app/redux/reducers/client/client_actions.js.map +1 -0
  51. package/lib/module/app/redux/reducers/client/client_reducers.js +26 -0
  52. package/lib/module/app/redux/reducers/client/client_reducers.js.map +1 -0
  53. package/lib/module/app/redux/reducers/client/client_types.js +7 -0
  54. package/lib/module/app/redux/reducers/client/client_types.js.map +1 -0
  55. package/lib/module/app/screens/AddScreen.js +200 -0
  56. package/lib/module/app/screens/AddScreen.js.map +1 -0
  57. package/lib/module/app/screens/Banks.js +126 -0
  58. package/lib/module/app/screens/Banks.js.map +1 -0
  59. package/lib/module/app/screens/CustomerEntries.js +475 -0
  60. package/lib/module/app/screens/CustomerEntries.js.map +1 -0
  61. package/lib/module/app/screens/Customers.js +233 -0
  62. package/lib/module/app/screens/Customers.js.map +1 -0
  63. package/lib/module/app/screens/Entry.js +696 -0
  64. package/lib/module/app/screens/Entry.js.map +1 -0
  65. package/lib/module/app/screens/HomeScreen.js +176 -0
  66. package/lib/module/app/screens/HomeScreen.js.map +1 -0
  67. package/lib/module/app/screens/SelectBusiness.js +201 -0
  68. package/lib/module/app/screens/SelectBusiness.js.map +1 -0
  69. package/lib/module/app/screens/Splash.js +51 -0
  70. package/lib/module/app/screens/Splash.js.map +1 -0
  71. package/lib/module/app/screens/Suppliers.js +222 -0
  72. package/lib/module/app/screens/Suppliers.js.map +1 -0
  73. package/lib/module/app/screens/TransactionDetails.js +301 -0
  74. package/lib/module/app/screens/TransactionDetails.js.map +1 -0
  75. package/lib/module/app/screens/index.js +14 -0
  76. package/lib/module/app/screens/index.js.map +1 -0
  77. package/lib/module/app/themes/config.js +156 -0
  78. package/lib/module/app/themes/config.js.map +1 -0
  79. package/lib/module/app/utils/countries.json +1930 -0
  80. package/lib/module/declarations.d.js +2 -0
  81. package/lib/module/declarations.d.js.map +1 -0
  82. package/lib/module/index.js +5 -0
  83. package/lib/module/index.js.map +1 -0
  84. package/lib/module/package.json +1 -0
  85. package/lib/typescript/babel.config.d.ts +10 -0
  86. package/lib/typescript/babel.config.d.ts.map +1 -0
  87. package/lib/typescript/eslint.config.d.mts +3 -0
  88. package/lib/typescript/eslint.config.d.mts.map +1 -0
  89. package/lib/typescript/package.json +1 -0
  90. package/lib/typescript/src/App.d.ts +2 -0
  91. package/lib/typescript/src/App.d.ts.map +1 -0
  92. package/lib/typescript/src/app/components/Balance.d.ts +8 -0
  93. package/lib/typescript/src/app/components/Balance.d.ts.map +1 -0
  94. package/lib/typescript/src/app/components/CountryPhoneInput.d.ts +6 -0
  95. package/lib/typescript/src/app/components/CountryPhoneInput.d.ts.map +1 -0
  96. package/lib/typescript/src/app/components/Entries.d.ts +4 -0
  97. package/lib/typescript/src/app/components/Entries.d.ts.map +1 -0
  98. package/lib/typescript/src/app/components/SearchBar.d.ts +6 -0
  99. package/lib/typescript/src/app/components/SearchBar.d.ts.map +1 -0
  100. package/lib/typescript/src/app/components/Transaction.d.ts +11 -0
  101. package/lib/typescript/src/app/components/Transaction.d.ts.map +1 -0
  102. package/lib/typescript/src/app/components/User.d.ts +10 -0
  103. package/lib/typescript/src/app/components/User.d.ts.map +1 -0
  104. package/lib/typescript/src/app/components/index.d.ts +8 -0
  105. package/lib/typescript/src/app/components/index.d.ts.map +1 -0
  106. package/lib/typescript/src/app/database/clients.d.ts +9 -0
  107. package/lib/typescript/src/app/database/clients.d.ts.map +1 -0
  108. package/lib/typescript/src/app/database/database.d.ts +3 -0
  109. package/lib/typescript/src/app/database/database.d.ts.map +1 -0
  110. package/lib/typescript/src/app/database/schema.d.ts +2 -0
  111. package/lib/typescript/src/app/database/schema.d.ts.map +1 -0
  112. package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts +2 -0
  113. package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts.map +1 -0
  114. package/lib/typescript/src/app/navigation/Drawer/Drawer.d.ts +2 -0
  115. package/lib/typescript/src/app/navigation/Drawer/Drawer.d.ts.map +1 -0
  116. package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts +2 -0
  117. package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts.map +1 -0
  118. package/lib/typescript/src/app/navigation/Root.d.ts +2 -0
  119. package/lib/typescript/src/app/navigation/Root.d.ts.map +1 -0
  120. package/lib/typescript/src/app/navigation/index.d.ts +5 -0
  121. package/lib/typescript/src/app/navigation/index.d.ts.map +1 -0
  122. package/lib/typescript/src/app/redux/Store.d.ts +2 -0
  123. package/lib/typescript/src/app/redux/Store.d.ts.map +1 -0
  124. package/lib/typescript/src/app/redux/reducers/client/client_actions.d.ts +1 -0
  125. package/lib/typescript/src/app/redux/reducers/client/client_actions.d.ts.map +1 -0
  126. package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts +3 -0
  127. package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts.map +1 -0
  128. package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts +5 -0
  129. package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts.map +1 -0
  130. package/lib/typescript/src/app/screens/AddScreen.d.ts +5 -0
  131. package/lib/typescript/src/app/screens/AddScreen.d.ts.map +1 -0
  132. package/lib/typescript/src/app/screens/Banks.d.ts +2 -0
  133. package/lib/typescript/src/app/screens/Banks.d.ts.map +1 -0
  134. package/lib/typescript/src/app/screens/CustomerEntries.d.ts +5 -0
  135. package/lib/typescript/src/app/screens/CustomerEntries.d.ts.map +1 -0
  136. package/lib/typescript/src/app/screens/Customers.d.ts +4 -0
  137. package/lib/typescript/src/app/screens/Customers.d.ts.map +1 -0
  138. package/lib/typescript/src/app/screens/Entry.d.ts +5 -0
  139. package/lib/typescript/src/app/screens/Entry.d.ts.map +1 -0
  140. package/lib/typescript/src/app/screens/HomeScreen.d.ts +4 -0
  141. package/lib/typescript/src/app/screens/HomeScreen.d.ts.map +1 -0
  142. package/lib/typescript/src/app/screens/SelectBusiness.d.ts +4 -0
  143. package/lib/typescript/src/app/screens/SelectBusiness.d.ts.map +1 -0
  144. package/lib/typescript/src/app/screens/Splash.d.ts +4 -0
  145. package/lib/typescript/src/app/screens/Splash.d.ts.map +1 -0
  146. package/lib/typescript/src/app/screens/Suppliers.d.ts +4 -0
  147. package/lib/typescript/src/app/screens/Suppliers.d.ts.map +1 -0
  148. package/lib/typescript/src/app/screens/TransactionDetails.d.ts +5 -0
  149. package/lib/typescript/src/app/screens/TransactionDetails.d.ts.map +1 -0
  150. package/lib/typescript/src/app/screens/index.d.ts +12 -0
  151. package/lib/typescript/src/app/screens/index.d.ts.map +1 -0
  152. package/lib/typescript/src/app/themes/config.d.ts +63 -0
  153. package/lib/typescript/src/app/themes/config.d.ts.map +1 -0
  154. package/lib/typescript/src/index.d.ts +3 -0
  155. package/lib/typescript/src/index.d.ts.map +1 -0
  156. package/package.json +154 -0
  157. package/src/App.js +41 -0
  158. package/src/app/assets/Icons/Bill.png +0 -0
  159. package/src/app/assets/Icons/Cash.png +0 -0
  160. package/src/app/assets/Icons/Expense.png +0 -0
  161. package/src/app/assets/Icons/Staff.png +0 -0
  162. package/src/app/assets/Icons/Stock.png +0 -0
  163. package/src/app/assets/images/bill.png +0 -0
  164. package/src/app/assets/images/book.png +0 -0
  165. package/src/app/assets/images/digiKhataSolo256.png +0 -0
  166. package/src/app/assets/images/money.png +0 -0
  167. package/src/app/assets/images/staff.png +0 -0
  168. package/src/app/assets/images/stock.png +0 -0
  169. package/src/app/assets/images/svgviewer-png-output-white.png +0 -0
  170. package/src/app/components/Balance.js +122 -0
  171. package/src/app/components/CountryPhoneInput.js +286 -0
  172. package/src/app/components/Entries.js +75 -0
  173. package/src/app/components/SearchBar.js +64 -0
  174. package/src/app/components/Transaction.js +91 -0
  175. package/src/app/components/User.js +85 -0
  176. package/src/app/components/index.js +15 -0
  177. package/src/app/database/clients.js +207 -0
  178. package/src/app/database/database.js +9 -0
  179. package/src/app/database/schema.js +525 -0
  180. package/src/app/navigation/BottomTabs/BottomTabs.js +27 -0
  181. package/src/app/navigation/Drawer/Drawer.js +10 -0
  182. package/src/app/navigation/HomeStack/HomeStack.js +43 -0
  183. package/src/app/navigation/Root.js +32 -0
  184. package/src/app/navigation/index.js +9 -0
  185. package/src/app/redux/Store.js +9 -0
  186. package/src/app/redux/reducers/client/client_actions.js +0 -0
  187. package/src/app/redux/reducers/client/client_reducers.js +30 -0
  188. package/src/app/redux/reducers/client/client_types.js +5 -0
  189. package/src/app/screens/AddScreen.js +185 -0
  190. package/src/app/screens/Banks.js +151 -0
  191. package/src/app/screens/CustomerEntries.js +402 -0
  192. package/src/app/screens/Customers.js +240 -0
  193. package/src/app/screens/Entry.js +658 -0
  194. package/src/app/screens/HomeScreen.js +146 -0
  195. package/src/app/screens/SelectBusiness.js +177 -0
  196. package/src/app/screens/Splash.js +43 -0
  197. package/src/app/screens/Suppliers.js +228 -0
  198. package/src/app/screens/TransactionDetails.js +199 -0
  199. package/src/app/screens/index.js +23 -0
  200. package/src/app/themes/config.js +185 -0
  201. package/src/app/utils/countries.json +1930 -0
  202. package/src/declarations.d.ts +1 -0
  203. package/src/index.tsx +3 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=declarations.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["declarations.d.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import App from "./App.js";
4
+ export default App;
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["App"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,GAAG,MAAM,UAAO;AAEvB,eAAeA,GAAG","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,10 @@
1
+ export let overrides: ({
2
+ exclude: RegExp;
3
+ presets: string[];
4
+ include?: undefined;
5
+ } | {
6
+ include: RegExp;
7
+ presets: string[];
8
+ exclude?: undefined;
9
+ })[];
10
+ //# sourceMappingURL=babel.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"babel.config.d.ts","sourceRoot":"","sources":["../../babel.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
2
+ export default _default;
3
+ //# sourceMappingURL=eslint.config.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.mts","sourceRoot":"","sources":["../../eslint.config.mjs"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.js"],"names":[],"mappings":"AA6BA,uEAWC"}
@@ -0,0 +1,8 @@
1
+ export default function Balance({ greenTitle, redTitle, greenValue, redValue, rightColor }: {
2
+ greenTitle: any;
3
+ redTitle: any;
4
+ greenValue: any;
5
+ redValue: any;
6
+ rightColor?: string | undefined;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=Balance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Balance.d.ts","sourceRoot":"","sources":["../../../../../src/app/components/Balance.js"],"names":[],"mappings":"AAMA;;;;;;4CA6CC"}
@@ -0,0 +1,6 @@
1
+ export default function CountryPhoneInput({ initialCountryCode, phonePlaceholder, onChange, }: {
2
+ initialCountryCode?: string | undefined;
3
+ phonePlaceholder?: string | undefined;
4
+ onChange: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=CountryPhoneInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CountryPhoneInput.d.ts","sourceRoot":"","sources":["../../../../../src/app/components/CountryPhoneInput.js"],"names":[],"mappings":"AAcA;;;;4CA0JC"}
@@ -0,0 +1,4 @@
1
+ export default function Entries({ marginTop }: {
2
+ marginTop: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=Entries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Entries.d.ts","sourceRoot":"","sources":["../../../../../src/app/components/Entries.js"],"names":[],"mappings":"AAIA;;4CA0CC"}
@@ -0,0 +1,6 @@
1
+ export default SearchBar;
2
+ declare function SearchBar({ placeholder, onChangeText }: {
3
+ placeholder?: string | undefined;
4
+ onChangeText: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=SearchBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../src/app/components/SearchBar.js"],"names":[],"mappings":";AAKA;;;4CAkCC"}
@@ -0,0 +1,11 @@
1
+ export default function Transaction({ date, notes, billNo, isAttachment, balance, firstCell, secondCell, onPress }: {
2
+ date: any;
3
+ notes: any;
4
+ billNo: any;
5
+ isAttachment: any;
6
+ balance: any;
7
+ firstCell: any;
8
+ secondCell: any;
9
+ onPress: any;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=Transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../../src/app/components/Transaction.js"],"names":[],"mappings":"AAKA;;;;;;;;;4CA0CC"}
@@ -0,0 +1,10 @@
1
+ export default function User({ name, addedAt, amount, type, avatarColor, onPress, clientType }: {
2
+ name: any;
3
+ addedAt: any;
4
+ amount: any;
5
+ type: any;
6
+ avatarColor?: string | undefined;
7
+ onPress: any;
8
+ clientType: any;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=User.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../../src/app/components/User.js"],"names":[],"mappings":"AAIA;;;;;;;;4CAqBC"}
@@ -0,0 +1,8 @@
1
+ import Balance from "./Balance";
2
+ import Entries from "./Entries";
3
+ import SearchBar from "./SearchBar";
4
+ import User from "./User";
5
+ import CountryPhoneInput from "./CountryPhoneInput";
6
+ import Transaction from "./Transaction";
7
+ export { Balance, Entries, SearchBar, User, CountryPhoneInput, Transaction };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/components/index.js"],"names":[],"mappings":"oBAAoB,WAAW;oBACX,WAAW;sBACT,aAAa;iBAClB,QAAQ;8BACK,qBAAqB;wBAC3B,eAAe"}
@@ -0,0 +1,9 @@
1
+ export function addClient(name: any, phoneNum: any, type: any): Promise<any>;
2
+ export function getAllClients(): Promise<any>;
3
+ export function deleteClientById(id: any): Promise<any>;
4
+ export function getClientsByType(type: any): Promise<any>;
5
+ export function addTransaction(customer_id: any, amount: any, subamount: any, notes: any, date: any, local_path: any): Promise<any>;
6
+ export function getClientDetails(id: any): Promise<any>;
7
+ export function getClientTransactions(client_id: any): Promise<any>;
8
+ export function addTransactionImages(trxId: any, local_path: any): Promise<any>;
9
+ //# sourceMappingURL=clients.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../../../../src/app/database/clients.js"],"names":[],"mappings":"AAEO,6EAoBN;AAEM,8CAmBN;AAEM,wDAmBN;AAEM,0DA+BN;AAEM,oIAWN;AAEM,wDAmBN;AAEM,oEAwDN;AAGM,gFAWN"}
@@ -0,0 +1,3 @@
1
+ export default db;
2
+ declare const db: any;
3
+ //# sourceMappingURL=database.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../../../../src/app/database/database.js"],"names":[],"mappings":";AAEA,sBAIE"}
@@ -0,0 +1,2 @@
1
+ export function createTables(): void;
2
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/app/database/schema.js"],"names":[],"mappings":"AAGO,qCAygBN"}
@@ -0,0 +1,2 @@
1
+ export default function BottomTabs(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=BottomTabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BottomTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/app/navigation/BottomTabs/BottomTabs.js"],"names":[],"mappings":"AAUA,8EAgBC"}
@@ -0,0 +1,2 @@
1
+ export default function Drawer(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../../src/app/navigation/Drawer/Drawer.js"],"names":[],"mappings":"AAGA,0EAMC"}
@@ -0,0 +1,2 @@
1
+ export default function HomeStack(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=HomeStack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HomeStack.d.ts","sourceRoot":"","sources":["../../../../../../src/app/navigation/HomeStack/HomeStack.js"],"names":[],"mappings":"AAQA,6EAkCC"}
@@ -0,0 +1,2 @@
1
+ export default function Root(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../../../../../src/app/navigation/Root.js"],"names":[],"mappings":"AAWA,wEAoBC"}
@@ -0,0 +1,5 @@
1
+ import BottomTabs from "./BottomTabs/BottomTabs";
2
+ import Drawer from "./Drawer/Drawer";
3
+ import HomeStack from "./HomeStack/HomeStack";
4
+ export { BottomTabs, Drawer, HomeStack };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/navigation/index.js"],"names":[],"mappings":"uBAAuB,yBAAyB;mBAC7B,iBAAiB;sBACd,uBAAuB"}
@@ -0,0 +1,2 @@
1
+ export const store: any;
2
+ //# sourceMappingURL=Store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../../../../src/app/redux/Store.js"],"names":[],"mappings":"AAIA,wBAIE"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=client_actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client_actions.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/redux/reducers/client/client_actions.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export default clientReducer;
2
+ declare const clientReducer: any;
3
+ //# sourceMappingURL=client_reducers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client_reducers.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/redux/reducers/client/client_reducers.js"],"names":[],"mappings":";AAWA,iCAgBG"}
@@ -0,0 +1,5 @@
1
+ export const HOME_CUSTOMERS: "HOME_CUSTOMERS";
2
+ export const CLIENT_DETAILS: "CLIENT_DETAILS";
3
+ export const HOME_SUPPLIERS: "HOME_SUPPLIERS";
4
+ export const SUPPLIER_DETAILS: "SUPPLIER_DETAILS";
5
+ //# sourceMappingURL=client_types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client_types.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/redux/reducers/client/client_types.js"],"names":[],"mappings":"AAAA,6BAA8B,gBAAgB,CAAC;AAC/C,6BAA8B,gBAAgB,CAAC;AAE/C,6BAA8B,gBAAgB,CAAC;AAC/C,+BAAgC,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export default function AddScreen({ navigation, route }: {
2
+ navigation: any;
3
+ route: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=AddScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddScreen.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/AddScreen.js"],"names":[],"mappings":"AAUA;;;4CAuGC"}
@@ -0,0 +1,2 @@
1
+ export default function Banks(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Banks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Banks.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/Banks.js"],"names":[],"mappings":"AASA,yEAyEC"}
@@ -0,0 +1,5 @@
1
+ export default function CustomerEntries({ navigation, route }: {
2
+ navigation: any;
3
+ route: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=CustomerEntries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerEntries.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/CustomerEntries.js"],"names":[],"mappings":"AASA;;;4CA0NC"}
@@ -0,0 +1,4 @@
1
+ export default function Customers({ navigation }: {
2
+ navigation: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=Customers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Customers.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/Customers.js"],"names":[],"mappings":"AAWA;;4CAgKC"}
@@ -0,0 +1,5 @@
1
+ export default function Entry({ navigation, route }: {
2
+ navigation: any;
3
+ route: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=Entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Entry.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/Entry.js"],"names":[],"mappings":"AAYA;;;4CAwcC"}
@@ -0,0 +1,4 @@
1
+ export default function HomeScreen({ navigation }: {
2
+ navigation: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=HomeScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HomeScreen.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/HomeScreen.js"],"names":[],"mappings":"AAaA;;4CA2FC"}
@@ -0,0 +1,4 @@
1
+ export default function SelectBusiness({ navigation }: {
2
+ navigation: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=SelectBusiness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectBusiness.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/SelectBusiness.js"],"names":[],"mappings":"AAOA;;4CAiEC"}
@@ -0,0 +1,4 @@
1
+ export default function Splash({ navigation }: {
2
+ navigation: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=Splash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Splash.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/Splash.js"],"names":[],"mappings":"AAQA;;4CAkCC"}
@@ -0,0 +1,4 @@
1
+ export default function Suppliers({ navigation }: {
2
+ navigation: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=Suppliers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Suppliers.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/Suppliers.js"],"names":[],"mappings":"AAWA;;4CAmJC"}
@@ -0,0 +1,5 @@
1
+ export default function TransactionDetails({ navigation, route }: {
2
+ navigation: any;
3
+ route: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=TransactionDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionDetails.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/TransactionDetails.js"],"names":[],"mappings":"AAUA;;;4CAuHC"}
@@ -0,0 +1,12 @@
1
+ import Splash from "./Splash";
2
+ import HomeScreen from "./HomeScreen";
3
+ import Banks from "./Banks";
4
+ import Customers from "./Customers";
5
+ import Suppliers from "./Suppliers";
6
+ import AddScreen from "./AddScreen";
7
+ import CustomerEntries from "./CustomerEntries";
8
+ import SelectBusiness from "./SelectBusiness";
9
+ import Entry from "./Entry";
10
+ import TransactionDetails from "./TransactionDetails";
11
+ export { Splash, HomeScreen, Banks, Customers, Suppliers, AddScreen, CustomerEntries, SelectBusiness, Entry, TransactionDetails };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/screens/index.js"],"names":[],"mappings":"mBAAmB,UAAU;uBACN,cAAc;kBACnB,SAAS;sBACL,aAAa;sBACb,aAAa;sBACb,aAAa;4BACP,mBAAmB;2BACpB,kBAAkB;kBAC3B,SAAS;+BACI,sBAAsB"}
@@ -0,0 +1,63 @@
1
+ export function getAvatar(name: any): any;
2
+ export function formatDateTime(dateTimeStr: any): string;
3
+ export function mergeDateTime(dateObj: any): string;
4
+ export const APP_NAME: "DigiKhata";
5
+ export const PLATFORM: "ios" | "android" | "windows" | "macos" | "web";
6
+ export const WP: any;
7
+ export const HP: any;
8
+ export const MOBILE_WIDTH: number;
9
+ export const MOBILE_HEIGHT: number;
10
+ export namespace COLORS {
11
+ let primaryColor: string;
12
+ let textColor: string;
13
+ let backgroundColor: string;
14
+ let primaryRGB: string;
15
+ let secondaryColor: string;
16
+ let territoryColor: string;
17
+ let primaryColor2: string;
18
+ let secondaryColor2: string;
19
+ let territoryColor2: string;
20
+ let lightGrey: string;
21
+ let darkGrey: string;
22
+ let grey: string;
23
+ let gray: string;
24
+ let blackColor: string;
25
+ let whiteColor: string;
26
+ let borderColor: string;
27
+ let redColor: string;
28
+ let greenColor: string;
29
+ let yellowColor: string;
30
+ let circle1: string;
31
+ let circle2: string;
32
+ let circle3: string;
33
+ let circle4: string;
34
+ let circle5: string;
35
+ let primary_circle1: string;
36
+ let primary_circle2: string;
37
+ let primary_circle3: string;
38
+ let primary_circle4: string;
39
+ let dark_orange: string;
40
+ let primaryGreen: string;
41
+ let primaryRed: string;
42
+ let primaryOrange: string;
43
+ let primaryYellow: string;
44
+ let dark_golden: string;
45
+ }
46
+ export const FONT_NORMAL: "29LTBukra-Regular";
47
+ export const FONT_MEDIUM: "29LTBukra-Medium";
48
+ export const FONT_BOLD: "29LTBukra-Bold";
49
+ export namespace TEXT_SIZES {
50
+ let h1: number;
51
+ let h2: number;
52
+ let h3: number;
53
+ let info_1: number;
54
+ let info_2: number;
55
+ }
56
+ export const EXPENSE_COLORS: string[];
57
+ export const MONTHS: string[];
58
+ export const DAYS: {
59
+ value: string;
60
+ label: string;
61
+ }[];
62
+ export function isPdfFile(uri: any): boolean;
63
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/app/themes/config.js"],"names":[],"mappings":"AA0HA,0CAUC;AAED,yDAoBC;AAED,oDAeC;AAvJD,uBAAwB,WAAW,CAAC;AACpC,uEAAoC;AACpC,qBAAsC;AACtC,qBAAuC;AACvC,kCAA2D;AAC3D,mCAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2C7D,0BAA2B,mBAAmB,CAAC;AAC/C,0BAA2B,kBAAkB,CAAC;AAC9C,wBAAyB,gBAAgB,CAAC;;;;;;;;AAU1C,sCAcE;AAGF,8BAaE;AAEF;;;IAQE;AAqDK,6CAWN"}
@@ -0,0 +1,3 @@
1
+ import App from './App';
2
+ export default App;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe,GAAG,CAAC"}
package/package.json ADDED
@@ -0,0 +1,154 @@
1
+ {
2
+ "name": "digikhata-mashreq-sdk",
3
+ "version": "0.1.1",
4
+ "description": "An SDK to seamlessly integrate the DigiKhata mobile application inside the Mashreq App. This package provides ready-to-use methods, utilities, and components to enable smooth embedding, communication, and interaction between DigiKhata and Mashreq’s ecosystem, ensuring a unified user experience with minimal development effort.",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "lib",
18
+ "android",
19
+ "ios",
20
+ "cpp",
21
+ "*.podspec",
22
+ "react-native.config.js",
23
+ "!ios/build",
24
+ "!android/build",
25
+ "!android/gradle",
26
+ "!android/gradlew",
27
+ "!android/gradlew.bat",
28
+ "!android/local.properties",
29
+ "!**/__tests__",
30
+ "!**/__fixtures__",
31
+ "!**/__mocks__",
32
+ "!**/.*"
33
+ ],
34
+ "scripts": {
35
+ "example": "yarn workspace digikhata-mashreq-sdk-example",
36
+ "test": "jest",
37
+ "typecheck": "tsc",
38
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
39
+ "clean": "del-cli lib",
40
+ "prepare": "bob build",
41
+ "release": "release-it --only-version"
42
+ },
43
+ "keywords": [
44
+ "react-native",
45
+ "ios",
46
+ "android"
47
+ ],
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/saudrehan279/digikhata-mashreq-sdk.git"
51
+ },
52
+ "author": "Saud Rehan <saoodrehan@gmail.com> (https://github.com/saudrehan279)",
53
+ "license": "MIT",
54
+ "bugs": {
55
+ "url": "https://github.com/saudrehan279/digikhata-mashreq-sdk/issues"
56
+ },
57
+ "homepage": "https://github.com/saudrehan279/digikhata-mashreq-sdk#readme",
58
+ "publishConfig": {
59
+ "registry": "https://registry.npmjs.org/"
60
+ },
61
+ "devDependencies": {
62
+ "@commitlint/config-conventional": "^19.8.1",
63
+ "@eslint/compat": "^1.3.2",
64
+ "@eslint/eslintrc": "^3.3.1",
65
+ "@eslint/js": "^9.35.0",
66
+ "@evilmartians/lefthook": "^1.12.3",
67
+ "@react-native/babel-preset": "0.81.1",
68
+ "@react-native/eslint-config": "^0.81.1",
69
+ "@release-it/conventional-changelog": "^10.0.1",
70
+ "@types/jest": "^29.5.14",
71
+ "@types/react": "^19.1.12",
72
+ "commitlint": "^19.8.1",
73
+ "del-cli": "^6.0.0",
74
+ "eslint": "^9.35.0",
75
+ "eslint-config-prettier": "^10.1.8",
76
+ "eslint-plugin-prettier": "^5.5.4",
77
+ "jest": "^29.7.0",
78
+ "prettier": "^3.6.2",
79
+ "react": "19.0.0",
80
+ "react-native": "0.79.6",
81
+ "react-native-builder-bob": "^0.40.13",
82
+ "release-it": "^19.0.4",
83
+ "typescript": "^5.9.2"
84
+ },
85
+ "peerDependencies": {
86
+ "react": "*",
87
+ "react-native": "*"
88
+ },
89
+ "workspaces": [
90
+ "example"
91
+ ],
92
+ "packageManager": "yarn@3.6.1",
93
+ "jest": {
94
+ "preset": "react-native",
95
+ "modulePathIgnorePatterns": [
96
+ "<rootDir>/example/node_modules",
97
+ "<rootDir>/lib/"
98
+ ]
99
+ },
100
+ "commitlint": {
101
+ "extends": [
102
+ "@commitlint/config-conventional"
103
+ ]
104
+ },
105
+ "release-it": {
106
+ "git": {
107
+ "commitMessage": "chore: release ${version}",
108
+ "tagName": "v${version}"
109
+ },
110
+ "npm": {
111
+ "publish": true
112
+ },
113
+ "github": {
114
+ "release": true
115
+ },
116
+ "plugins": {
117
+ "@release-it/conventional-changelog": {
118
+ "preset": {
119
+ "name": "angular"
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "prettier": {
125
+ "quoteProps": "consistent",
126
+ "singleQuote": true,
127
+ "tabWidth": 2,
128
+ "trailingComma": "es5",
129
+ "useTabs": false
130
+ },
131
+ "react-native-builder-bob": {
132
+ "source": "src",
133
+ "output": "lib",
134
+ "targets": [
135
+ [
136
+ "module",
137
+ {
138
+ "esm": true
139
+ }
140
+ ],
141
+ [
142
+ "typescript",
143
+ {
144
+ "project": "tsconfig.build.json"
145
+ }
146
+ ]
147
+ ]
148
+ },
149
+ "create-react-native-library": {
150
+ "languages": "js",
151
+ "type": "library",
152
+ "version": "0.54.2"
153
+ }
154
+ }